sqllogictest
Artifact Content
Not logged in

Artifact 9f12aaad1bf50c6457452205d12d03b69f627d2d:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-0
SELECT DISTINCT 59 * + + COUNT( * ) + 2 * + 74 AS col0, - 41 * - 3 + - + COUNT( * ) + COUNT( - + 61 ) + 67 + + + NULLIF ( 53, - 94 ) * - + COALESCE ( - ( + + 10 ), + COUNT( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) DIV - 1 + 47 + ( - 83 ) * - COUNT( - 52 ) AS col0
----
207
-210

skipif mysql # not compatible
query II rowsort label-0
SELECT DISTINCT 59 * + + COUNT ( * ) + 2 * + 74 AS col0, - 41 * - 3 + - + COUNT ( * ) + COUNT ( - + 61 ) + 67 + + + NULLIF ( 53, - 94 ) * - + COALESCE ( - ( + + 10 ), + COUNT ( * ) * - 77 * - + 38 * + 37 + - - 22 * + - 45 * + 29 - + + 62 ) / - 1 + 47 + ( - 83 ) * - COUNT ( - 52 ) AS col0
----
207
-210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1
SELECT CASE - + 55 WHEN + 44 THEN NULL ELSE + + 12 + + 10 + - - 81 END * + 9 + + 68 + + CAST( NULL AS SIGNED ), 63 - 52 col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-1
SELECT CASE - + 55 WHEN + 44 THEN NULL ELSE + + 12 + + 10 + - - 81 END * + 9 + + 68 + + CAST ( NULL AS INTEGER ), 63 - 52 col0
----
NULL
11

query II rowsort
SELECT 17 * 51 AS col0, CASE + 21 WHEN COALESCE ( ( 36 ), + + 42 + 82 + + 73 * 21 ) THEN - + 2 * - - 44 * 32 WHEN + 4 * - 15 + 42 THEN NULL END + + - ( - 56 )
----
867
NULL

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

skipif mysql # not compatible
query I rowsort label-3
SELECT 91 + - MAX ( + 92 ) + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4
SELECT SUM( + 60 ), - 73 AS col0
----
60
-73

skipif mysql # not compatible
query II rowsort label-4
SELECT SUM ( + 60 ), - 73 AS col0
----
60
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5
SELECT ALL + 46 - - 87 * - 5 * - COUNT( * ) + - + 14 AS col2, 98 col2
----
467
98

skipif mysql # not compatible
query II rowsort label-5
SELECT ALL + 46 - - 87 * - 5 * - COUNT ( * ) + - + 14 AS col2, 98 col2
----
467
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT - 5 + COUNT( ( - + 75 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6
SELECT - 5 + COUNT ( ( - + 75 ) ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7
SELECT ALL - 1 * - - 87 AS col1, 63 - MAX( - 18 )
----
-87
81

skipif mysql # not compatible
query II rowsort label-7
SELECT ALL - 1 * - - 87 AS col1, 63 - MAX ( - 18 )
----
-87
81

query II rowsort
SELECT - 76 * 17 * - 94 + - 68 col0, 58 AS col2
----
121380
58

query I rowsort
SELECT - 86 + - 93 AS col1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL + AVG ( + 47 ) * 12 * CASE - 85 WHEN - 85 THEN - COUNT( * ) * - - 55 + - 51 + - COALESCE ( + - 46, + 0 ) / + + CASE - CASE - - 70 WHEN - 89 THEN - 41 + + + COALESCE ( + + 37, 61, 47 * + 79 + + 35 + - 80 ) END WHEN + - 62 THEN NULL WHEN + 62 THEN + 18 END * + 14 ELSE NULL END + - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + AVG ( + 47 ) * 12 * CASE - 85 WHEN - 85 THEN - COUNT ( * ) * - - 55 + - 51 + - COALESCE ( + - 46, + 0 ) / + + CASE - CASE - - 70 WHEN - 89 THEN - 41 + + + COALESCE ( + + 37, 61, 47 * + 79 + + 35 + - 80 ) END WHEN + - 62 THEN NULL WHEN + 62 THEN + 18 END * + 14 ELSE NULL END + - + 0
----
NULL

query I rowsort
SELECT - - 96 + 96
----
192

query I rowsort
SELECT NULLIF ( - - 68, - - 80 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT - COUNT( * ) + CASE 75 WHEN 96 THEN - 51 WHEN ( - ( 4 ) ) * - 51 THEN COUNT( * ) * + 91 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT - COUNT ( * ) + CASE 75 WHEN 96 THEN - 51 WHEN ( - ( 4 ) ) * - 51 THEN COUNT ( * ) * + 91 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT DISTINCT - 94 DIV + 45
----
-2

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT - 94 / + 45
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT DISTINCT + 82 + - + 66 + + - 2 - 26 + - COALESCE ( 61, - - 74 * + 23 * 31 * + MIN( DISTINCT - 42 ), - 0 + - 23 * 52 ) * - COUNT( * ) * + 30 * - - 19 * + 11 * 75 * + 37
----
1061354238

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + 82 + - + 66 + + - 2 - 26 + - COALESCE ( 61, - - 74 * + 23 * 31 * + MIN ( DISTINCT - 42 ), - 0 + - 23 * 52 ) * - COUNT ( * ) * + 30 * - - 19 * + 11 * 75 * + 37
----
1061354238

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL + 49 + + ( COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL + 49 + + ( COUNT ( * ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT - - 44 + + - COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-17
SELECT - - 44 + + - COUNT ( * ) AS col1
----
43

query I rowsort
SELECT - + 69 + + + 52 + + 75 AS col1
----
58

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

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

query I rowsort
SELECT - - 94 + + 66
----
160

query I rowsort
SELECT ALL + 89 + - 23
----
66

query I rowsort
SELECT - + 20 + + 90 * + 76 + - + 71 AS col1
----
6749

query I rowsort
SELECT ALL - 97 * + 64 AS col1
----
-6208

query I rowsort
SELECT + 66 + - + 49
----
17

query I rowsort
SELECT ALL - + 70 * + + 42 AS col0
----
-2940

query I rowsort
SELECT ( - - 71 ) AS col1
----
71

query I rowsort
SELECT + NULLIF ( - 89, + 3 * + 63 - - - 74 * + 59 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-28
SELECT + 95 + - 76 - - 89 + - - 93 - - + 83 DIV 90 + + + COALESCE ( + 37, + CAST( + 62 AS SIGNED ) ) AS col0
----
238

skipif mysql # not compatible
query I rowsort label-28
SELECT + 95 + - 76 - - 89 + - - 93 - - + 83 / 90 + + + COALESCE ( + 37, + CAST ( + 62 AS INTEGER ) ) AS col0
----
238

query II rowsort
SELECT ALL 55 * + 23 - 28 AS col0, 69
----
1237
69

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-31
SELECT - COUNT( * ) * - CAST( + 80 AS SIGNED ) + + + 95 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-31
SELECT - COUNT ( * ) * - CAST ( + 80 AS INTEGER ) + + + 95 AS col0
----
175

query I rowsort
SELECT + 88 * + 89 col0
----
7832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-33
SELECT + 11 * + - 3 + - 36 - + + COUNT( * ) - 30 * + + CAST( - 57 AS SIGNED ) AS col0
----
1640

skipif mysql # not compatible
query I rowsort label-33
SELECT + 11 * + - 3 + - 36 - + + COUNT ( * ) - 30 * + + CAST ( - 57 AS INTEGER ) AS col0
----
1640

query I rowsort
SELECT DISTINCT + NULLIF ( - + 31, + 86 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL COALESCE ( - + 8, 70 * + + 48, + CASE + - 14 WHEN - 83 THEN 43 END ) * + MIN( - 1 ) + 74
----
82

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL COALESCE ( - + 8, 70 * + + 48, + CASE + - 14 WHEN - 83 THEN 43 END ) * + MIN ( - 1 ) + 74
----
82

query II rowsort
SELECT DISTINCT + 68 AS col1, 9 AS col0
----
68
9

query I rowsort
SELECT + 16 * + 73
----
1168

query I rowsort
SELECT ALL 87 * + 41 * ( - 65 ) AS col0
----
-231855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-39
SELECT + 93 * + + 98 * + CAST( - + 93 AS SIGNED ) AS col1
----
-847602

skipif mysql # not compatible
query I rowsort label-39
SELECT + 93 * + + 98 * + CAST ( - + 93 AS INTEGER ) AS col1
----
-847602

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

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

query I rowsort
SELECT - 72 * - + 72 - + 28 AS col2
----
5156

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL + CASE - - 63 WHEN 3 THEN + 27 ELSE 67 + COUNT( * ) * - 98 + 32 + - - 11 * 75 * + 6 END
----
4951

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL + CASE - - 63 WHEN 3 THEN + 27 ELSE 67 + COUNT ( * ) * - 98 + 32 + - - 11 * 75 * + 6 END
----
4951

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL CASE - COUNT( * ) WHEN 93 THEN - 49 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL CASE - COUNT ( * ) WHEN 93 THEN - 49 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT ALL - 28 * SUM( - 18 * 62 ) + 20 col2
----
31268

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL - 28 * SUM ( - 18 * 62 ) + 20 col2
----
31268

onlyif mysql # DIV for integer division: 
query I rowsort label-45
SELECT ALL 78 * 53 + + 95 DIV - 79
----
4133

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL 78 * 53 + + 95 / - 79
----
4133

query I rowsort
SELECT DISTINCT + 53 * + 20
----
1060

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT SUM( DISTINCT 14 )
----
14

skipif mysql # not compatible
query I rowsort label-47
SELECT SUM ( DISTINCT 14 )
----
14

query I rowsort
SELECT - ( + CASE + ( - 40 ) WHEN - 20 THEN + NULLIF ( + 10, 44 ) / 79 - + 53 END ) * + 55 AS col1
----
NULL

query I rowsort
SELECT ALL ( - 10 ) col0
----
-10

query I rowsort
SELECT DISTINCT + 26 + - 77 * 83 AS col2
----
-6365

query I rowsort
SELECT DISTINCT 37 * + 88 AS col0
----
3256

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT ALL + COUNT( * ) + 97 col0
----
98

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL + COUNT ( * ) + 97 col0
----
98

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

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

query I rowsort
SELECT DISTINCT + 35 * + 27 AS col0
----
945

query I rowsort
SELECT ALL NULLIF ( 44, - 70 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT - ( + 64 ) + 87 DIV 89 col2
----
-64

skipif mysql # not compatible
query I rowsort label-57
SELECT - ( + 64 ) + 87 / 89 col2
----
-64

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

skipif mysql # not compatible
query I rowsort label-58
SELECT - 19 / COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL + 8 - - 25 * CASE 62 WHEN - 31 THEN NULL WHEN + 95 * - 69 + 50 THEN - 11 + + 81 WHEN 94 THEN - 86 WHEN 15 * COUNT( * ) - + 53 THEN 68 - + 83 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL + 8 - - 25 * CASE 62 WHEN - 31 THEN NULL WHEN + 95 * - 69 + 50 THEN - 11 + + 81 WHEN 94 THEN - 86 WHEN 15 * COUNT ( * ) - + 53 THEN 68 - + 83 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - ( ( 45 ) ) * 13
----
-585

query I rowsort
SELECT - NULLIF ( - 54, AVG ( DISTINCT + 88 ) )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-62
SELECT DISTINCT + MIN( - 40 ) DIV CAST( 58 + 49 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT + MIN ( - 40 ) / CAST ( 58 + 49 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT - 83 - - 22 AS col1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT + 89 DIV 66
----
1

skipif mysql # not compatible
query I rowsort label-64
SELECT + 89 / 66
----
1

query I rowsort
SELECT - 0 * 53
----
0

query I rowsort
SELECT ALL + 46 - 26
----
20

query I rowsort
SELECT ALL 47 - 61
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT COALESCE ( - 61, - COUNT( * ) * - 13 ) * 34
----
-2074

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT COALESCE ( - 61, - COUNT ( * ) * - 13 ) * 34
----
-2074

query I rowsort
SELECT ALL + 19 * 41 AS col0
----
779

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT 19 DIV - 12 + 90
----
89

skipif mysql # not compatible
query I rowsort label-70
SELECT 19 / - 12 + 90
----
89

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

skipif mysql # not compatible
query I rowsort label-71
SELECT 83 * - COUNT ( * ) - + COUNT ( * ) * 94 AS col0
----
-177

query I rowsort
SELECT - 68 * + 59 + 39
----
-3973

query I rowsort
SELECT ( 34 ) * 42
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT 25 + 54 * + ( MIN( - 24 ) ) AS col0
----
-1271

skipif mysql # not compatible
query I rowsort label-74
SELECT 25 + 54 * + ( MIN ( - 24 ) ) AS col0
----
-1271

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-75
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( 90 - 27 * + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT CAST ( NULL AS REAL ) + ( 90 - 27 * + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT - 6 * + CASE 47 WHEN COUNT( DISTINCT 82 ) THEN COUNT( ALL + 49 ) + 62 END + COUNT( * ) / + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT - 6 * + CASE 47 WHEN COUNT ( DISTINCT 82 ) THEN COUNT ( ALL + 49 ) + 62 END + COUNT ( * ) / + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-77
SELECT ALL - CAST( SUM( 80 ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - CAST ( SUM ( 80 ) AS INTEGER )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT COALESCE ( - CASE 35 WHEN 41 * SUM( ALL 37 ) THEN 39 WHEN + AVG ( ALL 58 ) THEN NULL END, + 80 - + 52 ) DIV - 17 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-78
SELECT COALESCE ( - CASE 35 WHEN 41 * SUM ( ALL 37 ) THEN 39 WHEN + AVG ( ALL 58 ) THEN NULL END, + 80 - + 52 ) / - 17 AS col0
----
-1

query I rowsort
SELECT ALL + CASE 52 WHEN 55 THEN - 79 END + + 23
----
NULL

query I rowsort
SELECT DISTINCT 92 * 12
----
1104

query I rowsort
SELECT - COALESCE ( - 77, 66 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT MIN( DISTINCT - 1 ) + - 77 * + 8 AS col0
----
-617

skipif mysql # not compatible
query I rowsort label-82
SELECT MIN ( DISTINCT - 1 ) + - 77 * + 8 AS col0
----
-617

query I rowsort
SELECT + 19 * - 76
----
-1444

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT ALL COUNT( + 71 ) + ( + 96 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL COUNT ( + 71 ) + ( + 96 ) AS col0
----
97

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

query I rowsort
SELECT 63 * 90
----
5670

query I rowsort
SELECT 50 + 14 AS col1
----
64

query I rowsort
SELECT DISTINCT 11 * - NULLIF ( 55, - 97 ) AS col1
----
-605

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

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL COUNT ( * ) + 34 AS col2
----
35

query I rowsort
SELECT + 50 * - 64 + 28 AS col2
----
-3172

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT COUNT( * ) - 86 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-91
SELECT COUNT ( * ) - 86 AS col1
----
-85

query I rowsort
SELECT - + 56 col2
----
-56

query I rowsort
SELECT 43 + 17 * + NULLIF ( + 25 * - 11 - - 33, - 96 )
----
-4071

query I rowsort
SELECT ALL + 42 + + 93
----
135

query I rowsort
SELECT DISTINCT + 31 * 92 AS col2
----
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL + 72 + + 92 * + ( COUNT( ALL - 90 ) )
----
164

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + 72 + + 92 * + ( COUNT ( ALL - 90 ) )
----
164

query I rowsort
SELECT DISTINCT NULLIF ( + 33, 14 ) - 43 * 41
----
-1730

query I rowsort
SELECT 12 + + 96 AS col2
----
108

query I rowsort
SELECT ALL 18 - 26 AS col0
----
-8

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

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT - MAX ( 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT - + COALESCE ( - ( 55 ), COUNT( * ) * 68 + COALESCE ( - SUM( + 12 ), 34 - 70, 20 + - 55, 90 ), + 26, 53 + SUM( + 56 ) )
----
55

skipif mysql # not compatible
query I rowsort label-101
SELECT - + COALESCE ( - ( 55 ), COUNT ( * ) * 68 + COALESCE ( - SUM ( + 12 ), 34 - 70, 20 + - 55, 90 ), + 26, 53 + SUM ( + 56 ) )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT ( - 51 ) + 43 DIV 66 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-102
SELECT ( - 51 ) + 43 / 66 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT - COUNT( * ) * SUM( - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-103
SELECT - COUNT ( * ) * SUM ( - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT SUM( 31 ) * 70
----
2170

skipif mysql # not compatible
query I rowsort label-104
SELECT SUM ( 31 ) * 70
----
2170

query I rowsort
SELECT DISTINCT + 15 * - 1
----
-15

query I rowsort
SELECT 7 * - + 84
----
-588

query I rowsort
SELECT DISTINCT 83 * + 52
----
4316

query I rowsort
SELECT ALL - 87 * + - 40
----
3480

query I rowsort
SELECT 26 + - + 53 + 43
----
16

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

skipif mysql # not compatible
query I rowsort label-110
SELECT SUM ( 68 ) AS col1
----
68

query I rowsort
SELECT ( - 51 ) * - ( 88 + 86 ) AS col0
----
8874

onlyif mysql # DIV for integer division: 
query I rowsort label-112
SELECT 45 + + - 73 DIV + 8 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-112
SELECT 45 + + - 73 / + 8 AS col2
----
36

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

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - 42 + + COUNT ( * ) AS col1
----
-41

query I rowsort
SELECT DISTINCT - 61 + 51 AS col1
----
-10

query I rowsort
SELECT 35 * - 10
----
-350

query I rowsort
SELECT ALL - 15 * + + 53 AS col1
----
-795

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-117
SELECT ALL - COALESCE ( + 86, - 19 DIV ( - 60 ), 82 * COUNT( * ) ) + 61
----
-25

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - COALESCE ( + 86, - 19 / ( - 60 ), 82 * COUNT ( * ) ) + 61
----
-25

query I rowsort
SELECT ALL + 88 + 5
----
93

query I rowsort
SELECT ALL 51 + + + 53
----
104

query I rowsort
SELECT 43 * 54 + - 22
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL + MAX( DISTINCT + ( ( + NULLIF ( CASE - 26 WHEN 21 THEN NULL WHEN 61 THEN 32 ELSE 6 END, 81 ) ) ) ) * + 26 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + MAX ( DISTINCT + ( ( + NULLIF ( CASE - 26 WHEN 21 THEN NULL WHEN 61 THEN 32 ELSE 6 END, 81 ) ) ) ) * + 26 AS col2
----
156

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

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

query I rowsort
SELECT DISTINCT 4 + - 99
----
-95

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

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

query I rowsort
SELECT ALL - 71 - + 83
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT + 10 * + 5 + COALESCE ( NULLIF ( - 38, + 54 * ( AVG ( 34 ) ) ), ( + 93 ) - 66 ) * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-126
SELECT + 10 * + 5 + COALESCE ( NULLIF ( - 38, + 54 * ( AVG ( 34 ) ) ), ( + 93 ) - 66 ) * COUNT ( * )
----
12

query I rowsort
SELECT ALL 49 * - 24 col2
----
-1176

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT 34 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-128
SELECT 34 / 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT ALL 89 DIV COUNT( * ) DIV 29
----
3

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL 89 / COUNT ( * ) / 29
----
3

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

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

query I rowsort
SELECT - 76 * + 89
----
-6764

query I rowsort
SELECT 14 - + 79 * - CASE 87 - 95 WHEN - 10 * - 34 THEN 99 WHEN 9 * 69 + 98 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 29 * + + 20 * + 60 + + 98 * - 21 AS col1
----
32742

query I rowsort
SELECT ALL - 16 * + + 90 AS col1
----
-1440

query I rowsort
SELECT DISTINCT 78 * - + 5
----
-390

query I rowsort
SELECT ALL NULLIF ( - 79, + - ( 39 ) ) * 39
----
-3081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-137
SELECT - CASE + 46 WHEN - + 84 * MIN( DISTINCT CAST( NULL AS SIGNED ) * + 55 ) THEN 15 - + 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-137
SELECT - CASE + 46 WHEN - + 84 * MIN ( DISTINCT CAST ( NULL AS INTEGER ) * + 55 ) THEN 15 - + 9 ELSE NULL END
----
NULL

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

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

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

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

query II rowsort
SELECT ALL 55 AS col0, - 47
----
55
-47

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

query I rowsort
SELECT - 23 * 18 AS col2
----
-414

query I rowsort
SELECT DISTINCT 29 + ( 75 ) * - 31
----
-2296

query I rowsort
SELECT - 58 * - + NULLIF ( - 49, + 21 ) col2
----
-2842

query I rowsort
SELECT ALL 64 + 48
----
112

query I rowsort
SELECT + 70 + + 3 AS col0
----
73

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

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

query I rowsort
SELECT DISTINCT + 95 * + 7 + + 73
----
738

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL + 46 * - + CASE NULLIF ( 64, 13 ) WHEN + 12 - - 65 * - ( - 94 ) THEN AVG ( DISTINCT - 89 ) * - 35 WHEN 67 THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL + 46 * - + CASE NULLIF ( 64, 13 ) WHEN + 12 - - 65 * - ( - 94 ) THEN AVG ( DISTINCT - 89 ) * - 35 WHEN 67 THEN NULL END + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT ALL 29 * + ( - - 52 ) + - 73
----
1435

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL 97 * + 68 * - 90 + - COUNT( * )
----
-593641

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL 97 * + 68 * - 90 + - COUNT ( * )
----
-593641

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT - NULLIF ( + + 2, - + COUNT( * ) ) - 6
----
-8

skipif mysql # not compatible
query I rowsort label-155
SELECT - NULLIF ( + + 2, - + COUNT ( * ) ) - 6
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT NULLIF ( - 27, + MAX( 7 ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-156
SELECT NULLIF ( - 27, + MAX ( 7 ) ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-157
SELECT + + COUNT( * ), - 23 + - + COUNT( * ) col0
----
1
-24

skipif mysql # not compatible
query II rowsort label-157
SELECT + + COUNT ( * ), - 23 + - + COUNT ( * ) col0
----
1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT DISTINCT COUNT( * ) * + + 75 - 44
----
31

skipif mysql # not compatible
query I rowsort label-158
SELECT DISTINCT COUNT ( * ) * + + 75 - 44
----
31

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

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

query I rowsort
SELECT - - 22 * + - 5 AS col0
----
-110

query I rowsort
SELECT + COALESCE ( - 25, + 98 + - 33, - 58 ) col2
----
-25

query I rowsort
SELECT ALL - + 3 * ( + 31 ) * - ( 56 * 32 )
----
166656

query I rowsort
SELECT DISTINCT + 53 * + - 83 - 32 + - 29
----
-4460

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT + 82 * - - 56 * + 19 * 8 - 31 * NULLIF ( 58 - COUNT( * ) * 71, 75 + 78 ) - 51 * - 14 AS col2
----
699101

skipif mysql # not compatible
query I rowsort label-164
SELECT + 82 * - - 56 * + 19 * 8 - 31 * NULLIF ( 58 - COUNT ( * ) * 71, 75 + 78 ) - 51 * - 14 AS col2
----
699101

query I rowsort
SELECT - 47 + 32 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT - - CASE 51 WHEN 1 * COALESCE ( - COUNT( * ) - 26, + 61, 64 ) THEN - 92 WHEN MAX( 21 ) THEN NULL END * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - - CASE 51 WHEN 1 * COALESCE ( - COUNT ( * ) - 26, + 61, 64 ) THEN - 92 WHEN MAX ( 21 ) THEN NULL END * - 70
----
NULL

query I rowsort
SELECT + - 20 * + 22
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-168
SELECT + + COUNT( * ) - CAST( NULL AS SIGNED ) / + COALESCE ( - CASE CASE 85 WHEN + 59 THEN 50 END WHEN + 74 THEN 16 END, 41, - SUM( - 2 ) + 3 ) * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT + + COUNT ( * ) - CAST ( NULL AS INTEGER ) / + COALESCE ( - CASE CASE 85 WHEN + 59 THEN 50 END WHEN + 74 THEN 16 END, 41, - SUM ( - 2 ) + 3 ) * 20 AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 16, 21 * + 64 * 94 + - 79 AS col0
----
16
126257

query II rowsort
SELECT DISTINCT 94, 96 AS col0
----
94
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-171
SELECT ALL - MAX( ALL + 20 ) DIV 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL - MAX ( ALL + 20 ) / 21 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT - + 60 + 75 + 18 - + 49 * - CASE - COALESCE ( COUNT( * ), ( + SUM( DISTINCT - 26 ) ) + - 12 * 64 ) WHEN NULLIF ( 35, + 78 ) THEN + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT - + 60 + 75 + 18 - + 49 * - CASE - COALESCE ( COUNT ( * ), ( + SUM ( DISTINCT - 26 ) ) + - 12 * 64 ) WHEN NULLIF ( 35, + 78 ) THEN + 29 END
----
NULL

query I rowsort
SELECT DISTINCT + CASE + - 36 WHEN + 61 * 11 THEN NULL WHEN - 10 + + ( 4 ) THEN NULL ELSE 67 END AS col2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT ALL + ( + 5 ) DIV - 29 * ( 61 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL + ( + 5 ) / - 29 * ( 61 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT - 0 * - CAST( - 75 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-175
SELECT - 0 * - CAST ( - 75 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT + 6 + - NULLIF ( - + COUNT( * ), + - 55 ) * 31
----
37

skipif mysql # not compatible
query I rowsort label-176
SELECT + 6 + - NULLIF ( - + COUNT ( * ), + - 55 ) * 31
----
37

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

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

query I rowsort
SELECT + 70 * + 95 AS col2
----
6650

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT + MIN( ALL 19 ) + - + 73 col0
----
-54

skipif mysql # not compatible
query I rowsort label-179
SELECT + MIN ( ALL 19 ) + - + 73 col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT - CASE - 98 WHEN + 75 + - COALESCE ( 73, COUNT( * ), 72 + 50 ) THEN NULL WHEN SUM( ALL 84 ) THEN + 75 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT - CASE - 98 WHEN + 75 + - COALESCE ( 73, COUNT ( * ), 72 + 50 ) THEN NULL WHEN SUM ( ALL 84 ) THEN + 75 ELSE NULL END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT + COUNT( * ) DIV + - 76 * ( + + 96 ) * - MAX( - 79 * - 16 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-182
SELECT + COUNT ( * ) / + - 76 * ( + + 96 ) * - MAX ( - 79 * - 16 ) col2
----
0

query I rowsort
SELECT ALL ( + 41 ) + - ( + CASE 70 WHEN 66 THEN - CASE AVG ( ALL + 10 ) WHEN AVG ( DISTINCT 42 ) THEN 67 * 69 WHEN - 48 THEN - 52 END * - 45 END )
----
NULL

query I rowsort
SELECT ALL 10 + - + 27 - - + 65 + 2 AS col1
----
50

query I rowsort
SELECT + 16 * - 65 * 5
----
-5200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-186
SELECT DISTINCT 87 DIV + 67 + + 84 * + SUM( DISTINCT 54 )
----
4537

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT 87 / + 67 + + 84 * + SUM ( DISTINCT 54 )
----
4537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-187
SELECT ALL 62 DIV 15 - - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL 62 / 15 - - - COUNT ( * ) AS col1
----
3

query II rowsort
SELECT + 80 * + + 45 AS col1, + 20
----
3600
20

query I rowsort
SELECT CASE + 31 WHEN + 21 + - NULLIF ( - NULLIF ( - 31, 44 ), 7 ) THEN 79 END * - 97 + 0 AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT ALL 72 DIV 30 * ( 34 ) * 72 - 34 AS col0
----
4862

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL 72 / 30 * ( 34 ) * 72 - 34 AS col0
----
4862

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT DISTINCT + COUNT( * ) * + 20, 24 * 20 AS col2
----
20
480

skipif mysql # not compatible
query II rowsort label-192
SELECT DISTINCT + COUNT ( * ) * + 20, 24 * 20 AS col2
----
20
480

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT - - ( - 10 ) + - - COUNT( * ) * + + ( 65 )
----
55

skipif mysql # not compatible
query I rowsort label-193
SELECT - - ( - 10 ) + - - COUNT ( * ) * + + ( 65 )
----
55

query I rowsort
SELECT + + 5 * + NULLIF ( - + 22, + + ( 83 ) ) AS col0
----
-110

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT + + COUNT( 91 ) DIV + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-196
SELECT + + COUNT ( 91 ) / + 35 AS col1
----
0

query I rowsort
SELECT - 37 + 1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT DISTINCT + 27 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT + 27 / + 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT - 94 DIV + + NULLIF ( + 22, - ( 16 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-199
SELECT - 94 / + + NULLIF ( + 22, - ( 16 ) )
----
-4

query I rowsort
SELECT ALL + 78 + + 95 * 24 * - 53 + 15
----
-120747

query I rowsort
SELECT ALL - + 92 + + 97 AS col2
----
5

query I rowsort
SELECT DISTINCT + - 21 + - + 47 AS col0
----
-68

query II rowsort
SELECT ALL + 19 + - 91 * + 87 AS col2, 84 AS col0
----
-7898
84

query I rowsort
SELECT 45 * + 97
----
4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT ALL + CAST( - + ( - + 22 ) AS SIGNED ) + - + COUNT( DISTINCT 22 ) + 79 * 75
----
5946

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + CAST ( - + ( - + 22 ) AS INTEGER ) + - + COUNT ( DISTINCT 22 ) + 79 * 75
----
5946

query II rowsort
SELECT ALL 8 col1, 4
----
8
4

query I rowsort
SELECT DISTINCT - ( - 48 ) + + 39
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ALL + MAX( - - 86 ) + - - COUNT( * ) * 29
----
115

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL + MAX ( - - 86 ) + - - COUNT ( * ) * 29
----
115

query I rowsort
SELECT ALL 34 + + - 62
----
-28

query I rowsort
SELECT 34 + + 11 + + - 98
----
-53

query I rowsort
SELECT ALL - 57 - - - 92 AS col0
----
-149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-212
SELECT ( + + 1 ) * + + 95 * + 69 + + COALESCE ( 39, + CAST( NULL AS SIGNED ) * COUNT( * ) + 7 * + 61, + 22, + 16 + - 42 * CAST( NULL AS SIGNED ) )
----
6594

skipif mysql # not compatible
query I rowsort label-212
SELECT ( + + 1 ) * + + 95 * + 69 + + COALESCE ( 39, + CAST ( NULL AS INTEGER ) * COUNT ( * ) + 7 * + 61, + 22, + 16 + - 42 * CAST ( NULL AS INTEGER ) )
----
6594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT 60 + - 43 * + CAST( + 54 AS SIGNED ) AS col0
----
-2262

skipif mysql # not compatible
query I rowsort label-213
SELECT 60 + - 43 * + CAST ( + 54 AS INTEGER ) AS col0
----
-2262

query I rowsort
SELECT DISTINCT - 48 * + 87 * - 88
----
367488

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL + 94 - - MAX( ALL + 6 ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL + 94 - - MAX ( ALL + 6 ) AS col1
----
100

query I rowsort
SELECT DISTINCT - + 70 * - 85
----
5950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-217
SELECT DISTINCT - CASE + 42 WHEN - 76 * - ( + MAX( ALL - 9 ) ) + - SUM( + 93 ) THEN 32 WHEN MIN( DISTINCT ( COALESCE ( + 93, ( 40 ) ) ) ) * - 76 THEN + 81 + - 12 ELSE COUNT( * ) END DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - CASE + 42 WHEN - 76 * - ( + MAX ( ALL - 9 ) ) + - SUM ( + 93 ) THEN 32 WHEN MIN ( DISTINCT ( COALESCE ( + 93, ( 40 ) ) ) ) * - 76 THEN + 81 + - 12 ELSE COUNT ( * ) END / 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT + 63 * - ( - + 52 ) * 50 * + - ( + COALESCE ( 54, - 35, 96 * - COUNT( * ) ) ) * - COUNT( 5 ) AS col2
----
8845200

skipif mysql # not compatible
query I rowsort label-218
SELECT + 63 * - ( - + 52 ) * 50 * + - ( + COALESCE ( 54, - 35, 96 * - COUNT ( * ) ) ) * - COUNT ( 5 ) AS col2
----
8845200

query II rowsort
SELECT 0, - 62 + - 84 col2
----
0
-146

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT 32 * + 24 * 22 * + + MAX( + 52 )
----
878592

skipif mysql # not compatible
query I rowsort label-221
SELECT 32 * + 24 * 22 * + + MAX ( + 52 )
----
878592

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + + 87 * + 8 + + MIN( 65 ) + + 0 * - MAX( + 36 ) + + ( 75 ) col0
----
836

skipif mysql # not compatible
query I rowsort label-223
SELECT + + 87 * + 8 + + MIN ( 65 ) + + 0 * - MAX ( + 36 ) + + ( 75 ) col0
----
836

query I rowsort
SELECT ALL 95 * - + 38 + - 75
----
-3685

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT 12 * + + 66 * - NULLIF ( CAST( - - 95 AS SIGNED ), 12 ) col1
----
-75240

skipif mysql # not compatible
query I rowsort label-225
SELECT 12 * + + 66 * - NULLIF ( CAST ( - - 95 AS INTEGER ), 12 ) col1
----
-75240

query I rowsort
SELECT ALL - 87 + 51 AS col1
----
-36

query I rowsort
SELECT ALL - - 31 + 15
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL - COUNT( * ) + 23 + NULLIF ( - 93, + - 38 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL - COUNT ( * ) + 23 + NULLIF ( - 93, + - 38 ) AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT DISTINCT 66 + + 85 DIV + - 25 + + 91 DIV + 62 col0
----
64

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT 66 + + 85 / + - 25 + + 91 / + 62 col0
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT + COUNT( * ) + - 18 + 54 - 88 * - 11
----
1005

skipif mysql # not compatible
query I rowsort label-231
SELECT + COUNT ( * ) + - 18 + 54 - 88 * - 11
----
1005

onlyif mysql # aggregate syntax: 
query II rowsort label-232
SELECT ALL 84 + - 35 + - 47 AS col2, + COUNT( * ) * + 9 * + 94
----
2
846

skipif mysql # not compatible
query II rowsort label-232
SELECT ALL 84 + - 35 + - 47 AS col2, + COUNT ( * ) * + 9 * + 94
----
2
846

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT - 28 DIV + + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-234
SELECT - 28 / + + 53 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT - CAST( NULL AS SIGNED ) * + + 22 * - 66 + + 83 + - COALESCE ( - 11, + ( + COALESCE ( + 94, + CAST( NULL AS SIGNED ) * 64, + 24 ) ) + 81 / COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT - CAST ( NULL AS INTEGER ) * + + 22 * - 66 + + 83 + - COALESCE ( - 11, + ( + COALESCE ( + 94, + CAST ( NULL AS INTEGER ) * 64, + 24 ) ) + 81 / COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT 51 * COUNT( * ) * + 90
----
4590

skipif mysql # not compatible
query I rowsort label-236
SELECT 51 * COUNT ( * ) * + 90
----
4590

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT DISTINCT + 15 DIV + + 60
----
0

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT + 15 / + + 60
----
0

query I rowsort
SELECT COALESCE ( + 5, + 40, + 54 ) + - 33 - - 73
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT ALL COUNT( 20 ) + + + 43 * - 62, - 71 AS col1
----
-2665
-71

skipif mysql # not compatible
query II rowsort label-239
SELECT ALL COUNT ( 20 ) + + + 43 * - 62, - 71 AS col1
----
-2665
-71

query I rowsort
SELECT ALL - 97 * - 5 AS col2
----
485

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL 53 + + - COUNT( + 71 )
----
52

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL 53 + + - COUNT ( + 71 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT DISTINCT 70 / + 66 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT DISTINCT 70 / + 66 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 24 - + 26 AS col1
----
-2

query I rowsort
SELECT 51 + - - 5 * - 17 AS col0
----
-34

query II rowsort
SELECT 54 * - + 63, - 0 AS col0
----
-3402
0

query II rowsort
SELECT ALL 14 AS col2, 17 AS col2
----
14
17

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT 70 + - 90 + + COUNT( * ) - + 46 + + COUNT( * ) * + - 51 * - 70 AS col2
----
3505

skipif mysql # not compatible
query I rowsort label-247
SELECT 70 + - 90 + + COUNT ( * ) - + 46 + + COUNT ( * ) * + - 51 * - 70 AS col2
----
3505

query II rowsort
SELECT ALL + 25 - - 96 AS col2, + 68
----
121
68

query I rowsort
SELECT 41 * + 41 * - 58
----
-97498

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-251
SELECT 79 + + COALESCE ( + 19, - 30 * + 68, - COALESCE ( + 74, + 66 * 50, COUNT( * ) ) * ( 27 ), 73 ) DIV + 37
----
79

skipif mysql # not compatible
query I rowsort label-251
SELECT 79 + + COALESCE ( + 19, - 30 * + 68, - COALESCE ( + 74, + 66 * 50, COUNT ( * ) ) * ( 27 ), 73 ) / + 37
----
79

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

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

query II rowsort
SELECT 17 AS col1, 6 AS col0
----
17
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-254
SELECT ALL + ( 18 ) - + 96 - - - SUM( + 87 ) - 7 + 11 DIV ( + 88 + 58 ) DIV + 56 AS col0
----
-172

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL + ( 18 ) - + 96 - - - SUM ( + 87 ) - 7 + 11 / ( + 88 + 58 ) / + 56 AS col0
----
-172

query I rowsort
SELECT 66 * + + 14
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT DISTINCT MAX( DISTINCT 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT MAX ( DISTINCT 83 ) AS col0
----
83

query II rowsort
SELECT 30, + 87 AS col0
----
30
87

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL COALESCE ( - + SUM( ALL + 79 ), 43 ) * + 8 - + 68 * + 64 AS col0
----
-4984

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL COALESCE ( - + SUM ( ALL + 79 ), 43 ) * + 8 - + 68 * + 64 AS col0
----
-4984

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

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

query I rowsort
SELECT - ( - NULLIF ( + 19, 30 / - + 39 * - + 85 * 82 ) )
----
19

query II rowsort
SELECT + 94 AS col2, + 5 - + 96 * + 47 * + 86
----
94
-388027

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT - 83 DIV + - 3 - + 42 + COALESCE ( - 93, - 36 + 58 )
----
-108

skipif mysql # not compatible
query I rowsort label-262
SELECT - 83 / + - 3 - + 42 + COALESCE ( - 93, - 36 + 58 )
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-263
SELECT DISTINCT + CASE - - 62 WHEN - CASE - 1 WHEN - - 49 THEN - + CAST( + 57 AS SIGNED ) / 59 WHEN COUNT( * ) * 86 + + 58 THEN NULL ELSE CAST( NULL AS SIGNED ) END * + 56 + - MAX( DISTINCT 20 ) * - ( 14 * - 55 ) THEN 10 END * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT + CASE - - 62 WHEN - CASE - 1 WHEN - - 49 THEN - + CAST ( + 57 AS INTEGER ) / 59 WHEN COUNT ( * ) * 86 + + 58 THEN NULL ELSE CAST ( NULL AS INTEGER ) END * + 56 + - MAX ( DISTINCT 20 ) * - ( 14 * - 55 ) THEN 10 END * - 41
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT - ( + COUNT( * ) ) * + - NULLIF ( + 74, - COALESCE ( - 11, - 63 ) ) + - 77
----
-3

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT - ( + COUNT ( * ) ) * + - NULLIF ( + 74, - COALESCE ( - 11, - 63 ) ) + - 77
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-266
SELECT - + COUNT( * ) DIV + 29 + + 71 - - 9 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-266
SELECT - + COUNT ( * ) / + 29 + + 71 - - 9 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT + - COUNT( * ) * - 35 * + 59 + - ( - 76 )
----
2141

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT + - COUNT ( * ) * - 35 * + 59 + - ( - 76 )
----
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT DISTINCT - 0 * - 57 * + MIN( + 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT - 0 * - 57 * + MIN ( + 24 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT ALL - 96 * - SUM( DISTINCT - 70 ) + - - 89 + - - 94 * - + 82
----
-14339

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - 96 * - SUM ( DISTINCT - 70 ) + - - 89 + - - 94 * - + 82
----
-14339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-270
SELECT ALL - 3 * - + ( + 62 ) + COUNT( * ) AS col1, - CASE - - 22 WHEN CAST( NULL AS SIGNED ) + 60 THEN 34 WHEN - COUNT( * ) + 7 THEN NULL WHEN - 35 * 47 THEN CASE 45 WHEN + 6 * + COUNT( * ) + - 35 THEN + 78 + + 34 ELSE - 12 END * - 52 ELSE 68 END * 75 + 48 * - 54 AS col2
----
187
-7692

skipif mysql # not compatible
query II rowsort label-270
SELECT ALL - 3 * - + ( + 62 ) + COUNT ( * ) AS col1, - CASE - - 22 WHEN CAST ( NULL AS INTEGER ) + 60 THEN 34 WHEN - COUNT ( * ) + 7 THEN NULL WHEN - 35 * 47 THEN CASE 45 WHEN + 6 * + COUNT ( * ) + - 35 THEN + 78 + + 34 ELSE - 12 END * - 52 ELSE 68 END * 75 + 48 * - 54 AS col2
----
187
-7692

query I rowsort
SELECT DISTINCT + - 96 * + 54 * - - 28 + - - 76 AS col0
----
-145076

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT - + 30 * + + 85 * + - 26 * + - MIN( ALL + 51 ) + 76 + 26 * COUNT( * )
----
-3381198

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - + 30 * + + 85 * + - 26 * + - MIN ( ALL + 51 ) + 76 + 26 * COUNT ( * )
----
-3381198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-273
SELECT - + 67 * 4 + - CAST( NULL AS SIGNED ) + - 77, - 25 * + COUNT( * ) AS col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-273
SELECT - + 67 * 4 + - CAST ( NULL AS INTEGER ) + - 77, - 25 * + COUNT ( * ) AS col0
----
NULL
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-274
SELECT ALL + 8 AS col2, MAX( ALL + 30 ) DIV + - 28
----
8
-1

skipif mysql # not compatible
query II rowsort label-274
SELECT ALL + 8 AS col2, MAX ( ALL + 30 ) / + - 28
----
8
-1

query I rowsort
SELECT COALESCE ( - - 32, + + 64 )
----
32

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

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

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

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

query I rowsort
SELECT + 71 * + 30
----
2130

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT ALL MIN( ALL + + 37 ) * + 31 - 88 AS col1
----
1059

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL MIN ( ALL + + 37 ) * + 31 - 88 AS col1
----
1059

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL 29 * - 20 * 44 * COALESCE ( - 87, - COUNT( * ), + 55 )
----
2220240

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL 29 * - 20 * 44 * COALESCE ( - 87, - COUNT ( * ), + 55 )
----
2220240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-281
SELECT + 41 * - NULLIF ( - 5, - CAST( NULL AS DECIMAL ) ) AS col2
----
205

skipif mysql # not compatible
query I rowsort label-281
SELECT + 41 * - NULLIF ( - 5, - CAST ( NULL AS REAL ) ) AS col2
----
205

query I rowsort
SELECT DISTINCT 64 * 48
----
3072

query I rowsort
SELECT ALL ( + ( ( + 19 ) ) ) - + 60 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT - ( CASE 36 WHEN COUNT( - 63 ) + + 20 - COUNT( DISTINCT 66 ) THEN NULL ELSE COALESCE ( MIN( ALL + 1 ), 98, 14, 72 ) * - 13 + - 6 * - 37 END )
----
-209

skipif mysql # not compatible
query I rowsort label-284
SELECT - ( CASE 36 WHEN COUNT ( - 63 ) + + 20 - COUNT ( DISTINCT 66 ) THEN NULL ELSE COALESCE ( MIN ( ALL + 1 ), 98, 14, 72 ) * - 13 + - 6 * - 37 END )
----
-209

query I rowsort
SELECT + 5 * + + 21 * 30 * - 85
----
-267750

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-287
SELECT ALL - 66 DIV - + 32
----
2

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL - 66 / - + 32
----
2

query I rowsort
SELECT + 57 - ( + 17 ) AS col1
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL CASE - + 49 WHEN + 86 / 47 * + 78 + + + ( - 32 ) + + 43 THEN - ( 4 ) WHEN + 22 THEN - NULLIF ( + COUNT( * ), 68 + + COUNT( * ) * 95 ) WHEN 11 * + 92 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL CASE - + 49 WHEN + 86 / 47 * + 78 + + + ( - 32 ) + + 43 THEN - ( 4 ) WHEN + 22 THEN - NULLIF ( + COUNT ( * ), 68 + + COUNT ( * ) * 95 ) WHEN 11 * + 92 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-291
SELECT - 10 * + CAST( - 72 AS SIGNED ) AS col1, CASE - 17 WHEN - + 40 THEN NULL ELSE + + 96 END - - COUNT( * ) * + 86 AS col1
----
720
182

skipif mysql # not compatible
query II rowsort label-291
SELECT - 10 * + CAST ( - 72 AS INTEGER ) AS col1, CASE - 17 WHEN - + 40 THEN NULL ELSE + + 96 END - - COUNT ( * ) * + 86 AS col1
----
720
182

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL COALESCE ( + 94, MAX( ALL - + 34 ) )
----
94

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL COALESCE ( + 94, MAX ( ALL - + 34 ) )
----
94

query II rowsort
SELECT ALL + 94 * + 78 AS col1, + 13 - - + 63
----
7332
76

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT ALL - MAX( 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL - MAX ( 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT - + COALESCE ( - CAST( + ( + - NULLIF ( - 45, + COALESCE ( - 43, MIN( ALL + 27 ), COUNT( * ) ) * - 22 ) ) AS SIGNED ), 66 * 43 )
----
45

skipif mysql # not compatible
query I rowsort label-297
SELECT - + COALESCE ( - CAST ( + ( + - NULLIF ( - 45, + COALESCE ( - 43, MIN ( ALL + 27 ), COUNT ( * ) ) * - 22 ) ) AS INTEGER ), 66 * 43 )
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT - + 26 * MIN( - 26 ) * + CASE + - 57 WHEN 58 / - COUNT( DISTINCT - 89 ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 70 END + - CASE WHEN NOT 22 IS NULL THEN + 74 END AS col2
----
47246

skipif mysql # not compatible
query I rowsort label-299
SELECT - + 26 * MIN ( - 26 ) * + CASE + - 57 WHEN 58 / - COUNT ( DISTINCT - 89 ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 70 END + - CASE WHEN NOT 22 IS NULL THEN + 74 END AS col2
----
47246

query I rowsort
SELECT DISTINCT - + 27 + - 23 col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-301
SELECT DISTINCT 99 * - SUM( DISTINCT 46 ), COUNT( * ) * 5 AS col2
----
-4554
5

skipif mysql # not compatible
query II rowsort label-301
SELECT DISTINCT 99 * - SUM ( DISTINCT 46 ), COUNT ( * ) * 5 AS col2
----
-4554
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-302
SELECT ALL 60 / ( - CAST( - 83 AS SIGNED ) ) + - + 74 + CAST( NULL AS DECIMAL ) - - 10 + - 71 * ( 57 ) * 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL 60 / ( - CAST ( - 83 AS INTEGER ) ) + - + 74 + CAST ( NULL AS REAL ) - - 10 + - 71 * ( 57 ) * 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-303
SELECT ALL - 6 DIV + 62 + + ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - 6 / + 62 + + ( COUNT ( * ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-304
SELECT ALL - ( + + 44 ) DIV + 66 + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL - ( + + 44 ) / + 66 + - 54
----
-54

query I rowsort
SELECT - ( - + COALESCE ( + - 12, 15, - 40 ) ) + + 54
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-306
SELECT ALL - - 85 DIV - 69, 3 * - 62 AS col2
----
-1
-186

skipif mysql # not compatible
query II rowsort label-306
SELECT ALL - - 85 / - 69, 3 * - 62 AS col2
----
-1
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT + SUM( - + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-307
SELECT + SUM ( - + 90 ) AS col1
----
-90

query I rowsort
SELECT - COALESCE ( 93, - ( 23 ), - 92 * - 96 ) * + + 58 + + ( 1 + - 46 * 93 ) + + 67 * ( - 47 ) AS col0
----
-12820

query I rowsort
SELECT - + 66 * - 10 + 79
----
739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-310
SELECT + - 60 * + AVG ( + - 70 ) * + + 99 * - + CAST( NULL AS SIGNED ) * - COUNT( * ) + 47 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT + - 60 * + AVG ( + - 70 ) * + + 99 * - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 47 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT DISTINCT + - COUNT( * ) * 94 - + - 0 + - + 65
----
-159

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT + - COUNT ( * ) * 94 - + - 0 + - + 65
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-312
SELECT ALL 22 * CASE 72 WHEN + - COALESCE ( - - CASE + 9 WHEN + 19 THEN - 98 + - 44 * 10 END, - 31 + + COALESCE ( + MAX( ALL - 89 ), 75 ) * - 43, - ( CAST( 68 AS SIGNED ) ) + + 35 * 6 ) THEN 9 * + 37 END * 79 - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL 22 * CASE 72 WHEN + - COALESCE ( - - CASE + 9 WHEN + 19 THEN - 98 + - 44 * 10 END, - 31 + + COALESCE ( + MAX ( ALL - 89 ), 75 ) * - 43, - ( CAST ( 68 AS INTEGER ) ) + + 35 * 6 ) THEN 9 * + 37 END * 79 - - 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-313
SELECT - 24 * - 22 DIV - COUNT( * ) AS col1, + COUNT( * ) + MAX( ALL - - 36 )
----
-528
37

skipif mysql # not compatible
query II rowsort label-313
SELECT - 24 * - 22 / - COUNT ( * ) AS col1, + COUNT ( * ) + MAX ( ALL - - 36 )
----
-528
37

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT 61 * + 76 - + 39 + - 58 DIV + 58 AS col1
----
4596

skipif mysql # not compatible
query I rowsort label-315
SELECT 61 * + 76 - + 39 + - 58 / + 58 AS col1
----
4596

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT + MAX( ALL 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-316
SELECT + MAX ( ALL 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT CASE 63 WHEN - 47 + - 78 + - 0 * - - 47 * - ( - - 9 ) / - ( + 19 ) + - COUNT( * ) THEN NULL WHEN + ( 71 ) THEN MAX( DISTINCT 18 ) ELSE NULLIF ( - 79, - 94 ) + 49 END AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-317
SELECT CASE 63 WHEN - 47 + - 78 + - 0 * - - 47 * - ( - - 9 ) / - ( + 19 ) + - COUNT ( * ) THEN NULL WHEN + ( 71 ) THEN MAX ( DISTINCT 18 ) ELSE NULLIF ( - 79, - 94 ) + 49 END AS col1
----
-30

query I rowsort
SELECT - 5 + - + 85 AS col0
----
-90

query I rowsort
SELECT - 64 * - 81 * + 32 AS col1
----
165888

onlyif mysql # aggregate syntax: 
query II rowsort label-320
SELECT COUNT( + - 46 ) * + 18 * + 13 - COUNT( * ) + - - 50, 86 AS col2
----
283
86

skipif mysql # not compatible
query II rowsort label-320
SELECT COUNT ( + - 46 ) * + 18 * + 13 - COUNT ( * ) + - - 50, 86 AS col2
----
283
86

query I rowsort
SELECT + 87 * 85
----
7395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-322
SELECT - CAST( 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-322
SELECT - CAST ( 34 AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT + COUNT( DISTINCT + - 32 ) + - - 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-323
SELECT + COUNT ( DISTINCT + - 32 ) + - - 76 AS col2
----
77

query I rowsort
SELECT + 34 + + + 35 * + - 20 * - 94
----
65834

query I rowsort
SELECT ALL 45 * - 8
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT 75 * + MAX( + 28 ) * COUNT( * )
----
2100

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT 75 * + MAX ( + 28 ) * COUNT ( * )
----
2100

query I rowsort
SELECT DISTINCT CASE + NULLIF ( - 27, - ( 61 ) + - - AVG ( ALL + 2 ) * - ( - 30 ) ) WHEN 32 THEN NULL ELSE COALESCE ( 60, 16 * 28 ) END AS col1
----
60

query I rowsort
SELECT + 98 * 79
----
7742

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

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

query I rowsort
SELECT ALL 10 * + 50 AS col2
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT MAX( ALL + 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-331
SELECT MAX ( ALL + 92 ) AS col1
----
92

query I rowsort
SELECT + 80 + + 47
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-333
SELECT 63 col1, COUNT( * ) col1
----
63
1

skipif mysql # not compatible
query II rowsort label-333
SELECT 63 col1, COUNT ( * ) col1
----
63
1

query I rowsort
SELECT DISTINCT NULLIF ( 73, + + 3 + + - 90 ) + + 73
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT ALL + 77 + COUNT( * ) * + - CASE - 14 WHEN + 43 * - 42 + 63 THEN - - COUNT( * ) ELSE - 21 + 88 * 1 END AS col0
----
10

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL + 77 + COUNT ( * ) * + - CASE - 14 WHEN + 43 * - 42 + 63 THEN - - COUNT ( * ) ELSE - 21 + 88 * 1 END AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT + SUM( 87 ) * + + 31 * + COUNT( * ), 54 col2
----
2697
54

skipif mysql # not compatible
query II rowsort label-336
SELECT + SUM ( 87 ) * + + 31 * + COUNT ( * ), 54 col2
----
2697
54

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT CASE + - 45 WHEN + + 37 * - - 63 THEN NULL WHEN - 17 THEN NULL ELSE 59 + + 90 * - 66 * COUNT( * ) END AS col0
----
-5881

skipif mysql # not compatible
query I rowsort label-337
SELECT CASE + - 45 WHEN + + 37 * - - 63 THEN NULL WHEN - 17 THEN NULL ELSE 59 + + 90 * - 66 * COUNT ( * ) END AS col0
----
-5881

query I rowsort
SELECT ALL - 2 + 87 * - 70
----
-6092

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT MIN( ALL 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT MIN ( ALL 96 ) AS col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT DISTINCT CASE - CAST( 89 AS SIGNED ) WHEN - + 11 THEN NULL WHEN + CASE + 25 WHEN + COALESCE ( - COUNT( * ), - 79, + AVG ( 45 ) ) THEN 90 + CAST( 38 AS SIGNED ) WHEN CASE - COUNT( * ) WHEN - 49 THEN 28 WHEN - NULLIF ( 29, - 33 * - 47 ) / - 88 + - 23 THEN NULL END THEN NULL END THEN 95 WHEN ( - 58 ) THEN NULL END + + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT CASE - CAST ( 89 AS INTEGER ) WHEN - + 11 THEN NULL WHEN + CASE + 25 WHEN + COALESCE ( - COUNT ( * ), - 79, + AVG ( 45 ) ) THEN 90 + CAST ( 38 AS INTEGER ) WHEN CASE - COUNT ( * ) WHEN - 49 THEN 28 WHEN - NULLIF ( 29, - 33 * - 47 ) / - 88 + - 23 THEN NULL END THEN NULL END THEN 95 WHEN ( - 58 ) THEN NULL END + + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-341
SELECT ALL + 11 * MIN( DISTINCT + 56 ) DIV - - COALESCE ( + 37, 75 * - 44 * - - 81 * COUNT( * ) + - ( - 8 ) * + 58 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL + 11 * MIN ( DISTINCT + 56 ) / - - COALESCE ( + 37, 75 * - 44 * - - 81 * COUNT ( * ) + - ( - 8 ) * + 58 ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-342
SELECT DISTINCT - COUNT( * ) AS col2, 36 DIV ( + 24 ) + + 93
----
-1
94

skipif mysql # not compatible
query II rowsort label-342
SELECT DISTINCT - COUNT ( * ) AS col2, 36 / ( + 24 ) + + 93
----
-1
94

query I rowsort
SELECT ALL 6 + - 67 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT DISTINCT + 83 + - - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT + 83 + - - COUNT ( * )
----
84

query I rowsort
SELECT 56 * + 44
----
2464

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT ALL - 50 * COUNT( + - 32 ) AS col2, NULLIF ( - 92, - 17 / 58 * 74 / + 19 ) * COUNT( * ) col1
----
-50
-92

skipif mysql # not compatible
query II rowsort label-346
SELECT ALL - 50 * COUNT ( + - 32 ) AS col2, NULLIF ( - 92, - 17 / 58 * 74 / + 19 ) * COUNT ( * ) col1
----
-50
-92

query I rowsort
SELECT + 72 * + 2 * + 35
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL - MAX( DISTINCT + - ( + - 48 ) ) * + 54
----
-2592

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL - MAX ( DISTINCT + - ( + - 48 ) ) * + 54
----
-2592

query I rowsort
SELECT ALL + COALESCE ( + 43, 39, + - 65 ) - + - 12 col0
----
55

query II rowsort
SELECT + 64 col1, 80 AS col2
----
64
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-351
SELECT - - COUNT( * ) * + 70 * - 58 + - 81 * 48 / - + COUNT( * ) * + + NULLIF ( - - COUNT( * ), 30 * + 17 ) - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-351
SELECT - - COUNT ( * ) * + 70 * - 58 + - 81 * 48 / - + COUNT ( * ) * + + NULLIF ( - - COUNT ( * ), 30 * + 17 ) - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 39 - - - 50 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL 17 * - + CAST( NULL AS SIGNED ) * 93 + + 14 + 14 + - + 12 * - 63 * + + 27 * - CASE + 79 WHEN - 51 THEN NULL WHEN - 22 * 46 + + 15 THEN NULL ELSE 56 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL 17 * - + CAST ( NULL AS INTEGER ) * 93 + + 14 + 14 + - + 12 * - 63 * + + 27 * - CASE + 79 WHEN - 51 THEN NULL WHEN - 22 * 46 + + 15 THEN NULL ELSE 56 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT DISTINCT - CASE 36 WHEN - 43 * + 14 THEN NULL ELSE + COUNT( * ) * - 22 END
----
22

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT - CASE 36 WHEN - 43 * + 14 THEN NULL ELSE + COUNT ( * ) * - 22 END
----
22

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT DISTINCT + 84 DIV 71 col1
----
1

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT + 84 / 71 col1
----
1

query I rowsort
SELECT 44 * - + 84 * - 23
----
85008

query I rowsort
SELECT 80 * - + 9
----
-720

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

skipif mysql # not compatible
query I rowsort label-359
SELECT + CAST ( NULL AS INTEGER ) * 84 + + 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-360
SELECT DISTINCT + 48 * - COALESCE ( + COUNT( * ), 16 ) AS col1, + 22 AS col2
----
-48
22

skipif mysql # not compatible
query II rowsort label-360
SELECT DISTINCT + 48 * - COALESCE ( + COUNT ( * ), 16 ) AS col1, + 22 AS col2
----
-48
22

query I rowsort
SELECT ALL + 75 * + 50 * - + 77
----
-288750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-362
SELECT 70 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT 70 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 66 * - 98 AS col2
----
-6468

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT ALL - 3 + + 67 + 77 + - 42 + + - 21 DIV 53 + + 27
----
126

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - 3 + + 67 + 77 + - 42 + + - 21 / 53 + + 27
----
126

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

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

query II rowsort
SELECT CASE - 22 WHEN - 92 THEN NULL WHEN - 11 * 86 THEN NULL ELSE + 36 END * 9 col2, + 71 AS col0
----
324
71

query II rowsort
SELECT 69 * - - 97 AS col1, 71 col0
----
6693
71

query I rowsort
SELECT DISTINCT 4 + - 52
----
-48

query I rowsort
SELECT 55 - 52 + - 54
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-371
SELECT ALL - - COUNT( * ) + + 17, 26 + CASE - + COUNT( * ) WHEN - + 48 THEN + 83 WHEN + CAST( - SUM( ALL CAST( 55 AS SIGNED ) ) AS SIGNED ) + + 96 * COUNT( * ) THEN NULL ELSE 26 END * 56 AS col1
----
18
1482

skipif mysql # not compatible
query II rowsort label-371
SELECT ALL - - COUNT ( * ) + + 17, 26 + CASE - + COUNT ( * ) WHEN - + 48 THEN + 83 WHEN + CAST ( - SUM ( ALL CAST ( 55 AS INTEGER ) ) AS INTEGER ) + + 96 * COUNT ( * ) THEN NULL ELSE 26 END * 56 AS col1
----
18
1482

query I rowsort
SELECT DISTINCT 51 * - 32 * - 77 AS col2
----
125664

onlyif mysql # aggregate syntax: 
query II rowsort label-373
SELECT ALL 90 + + 4 + - - 46 * - 31 AS col0, + 26 + - - 73 * + CASE - + COUNT( * ) WHEN 97 + - ( + 62 ) THEN NULL WHEN + 64 THEN NULL WHEN - 31 THEN 90 * 57 + + 57 * + 22 END AS col2
----
-1332
NULL

skipif mysql # not compatible
query II rowsort label-373
SELECT ALL 90 + + 4 + - - 46 * - 31 AS col0, + 26 + - - 73 * + CASE - + COUNT ( * ) WHEN 97 + - ( + 62 ) THEN NULL WHEN + 64 THEN NULL WHEN - 31 THEN 90 * 57 + + 57 * + 22 END AS col2
----
-1332
NULL

query I rowsort
SELECT ALL - 54 * - 99 AS col1
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT ( MIN( 30 ) ) - - 90 + 13 * - 14 * + 34 * CASE 10 WHEN + 87 * - 67 THEN + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT ( MIN ( 30 ) ) - - 90 + 13 * - 14 * + 34 * CASE 10 WHEN + 87 * - 67 THEN + 16 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT ALL + CAST( - - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL + CAST ( - - 11 AS INTEGER )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-377
SELECT 71 - - COUNT( * ), + 10 * + + CAST( NULL AS SIGNED ) / - 62 AS col1
----
72
NULL

skipif mysql # not compatible
query II rowsort label-377
SELECT 71 - - COUNT ( * ), + 10 * + + CAST ( NULL AS INTEGER ) / - 62 AS col1
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT - COUNT( - 42 ) * + - 96 - + 57 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-378
SELECT - COUNT ( - 42 ) * + - 96 - + 57 AS col2
----
39

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

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT ALL + 30 - 90 - 24 + - + 3 AS col2, 80 * + ( + + 55 ) + + - COUNT( * )
----
-87
4399

skipif mysql # not compatible
query II rowsort label-380
SELECT ALL + 30 - 90 - 24 + - + 3 AS col2, 80 * + ( + + 55 ) + + - COUNT ( * )
----
-87
4399

query I rowsort
SELECT 4 + 74 col2
----
78

query I rowsort
SELECT 50 + - 50 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT CASE + - NULLIF ( - 42, - - COUNT( * ) * - 17 / 66 ) WHEN 43 THEN + COUNT( * ) WHEN 7 THEN NULL ELSE 77 END * + 41 col0
----
3157

skipif mysql # not compatible
query I rowsort label-383
SELECT CASE + - NULLIF ( - 42, - - COUNT ( * ) * - 17 / 66 ) WHEN 43 THEN + COUNT ( * ) WHEN 7 THEN NULL ELSE 77 END * + 41 col0
----
3157

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-384
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 29 / 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-384
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 29 / 55 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-385
SELECT DISTINCT ( 54 ) DIV - + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT ( 54 ) / - + 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT DISTINCT - COUNT( * ) * + 90 - + - 37 + + 64 + 46 * 9
----
425

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - COUNT ( * ) * + 90 - + - 37 + + 64 + 46 * 9
----
425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-387
SELECT - + 40 * - + 7 * - + 5 * 35 + 35 - + 94 + - 24 * 46 DIV + 67 * - COUNT( * )
----
-49043

skipif mysql # not compatible
query I rowsort label-387
SELECT - + 40 * - + 7 * - + 5 * 35 + 35 - + 94 + - 24 * 46 / + 67 * - COUNT ( * )
----
-49043

query I rowsort
SELECT DISTINCT 41 * + + 77 col0
----
3157

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-390
SELECT MAX( - 66 ) / + 4 + + CASE 35 WHEN - SUM( DISTINCT - 95 ) THEN 0 * COUNT( * ) * AVG ( DISTINCT CAST( + 5 AS DECIMAL ) ) * + 74 + + 63 END + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT MAX ( - 66 ) / + 4 + + CASE 35 WHEN - SUM ( DISTINCT - 95 ) THEN 0 * COUNT ( * ) * AVG ( DISTINCT CAST ( + 5 AS REAL ) ) * + 74 + + 63 END + + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-391
SELECT ALL NULLIF ( MAX( DISTINCT 68 ), + SUM( ALL + CAST( - 25 AS SIGNED ) ) / + NULLIF ( - 47, + - 43 * 92 - - 84 ) + + 20 / 48 ) * - 7 AS col2
----
-476

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL NULLIF ( MAX ( DISTINCT 68 ), + SUM ( ALL + CAST ( - 25 AS INTEGER ) ) / + NULLIF ( - 47, + - 43 * 92 - - 84 ) + + 20 / 48 ) * - 7 AS col2
----
-476

query I rowsort
SELECT ALL + 35 + 47
----
82

query I rowsort
SELECT + 94 * - 47 - + 7
----
-4425

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT COUNT( * ), 98 + - + COALESCE ( - + 38, + 29 ) AS col2
----
1
136

skipif mysql # not compatible
query II rowsort label-394
SELECT COUNT ( * ), 98 + - + COALESCE ( - + 38, + 29 ) AS col2
----
1
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT ALL - 8 + 55 + + 12 + + ( CAST( - 12 AS SIGNED ) ) * + 96 * - COUNT( * ) * + + 54 AS col0
----
62267

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL - 8 + 55 + + 12 + + ( CAST ( - 12 AS INTEGER ) ) * + 96 * - COUNT ( * ) * + + 54 AS col0
----
62267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-396
SELECT 35 * 0 DIV + 55 * + - 20 + - 41 + - COUNT( * ) - + + 87 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-396
SELECT 35 * 0 / + 55 * + - 20 + - 41 + - COUNT ( * ) - + + 87 AS col2
----
-129

query I rowsort
SELECT ALL + COALESCE ( 89, + ( + 65 ) * - - 4 ) col1
----
89

query I rowsort
SELECT - 81 + 4 AS col2
----
-77

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

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + COUNT ( * ) + + 3 AS col1
----
4

query I rowsort
SELECT - ( - + COALESCE ( - + 98, + + ( + + 45 ) ) ) + - - ( 82 ) - - 36 * + + 40
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL - MAX( ALL 32 ) + 91 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL - MAX ( ALL 32 ) + 91 AS col2
----
59

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

skipif mysql # not compatible
query I rowsort label-402
SELECT ( - 19 ) * - COUNT ( * ) + 50 AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT ALL 33 DIV + 51 col1
----
0

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL 33 / + 51 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT DISTINCT - 90 + - MIN( + - 10 ) * - 65 * - - 38 AS col1
----
-24790

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT - 90 + - MIN ( + - 10 ) * - 65 * - - 38 AS col1
----
-24790

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT DISTINCT + NULLIF ( - + MAX( - 89 ), 29 * + + 25 + + 99 ) * - ( + ( - 84 ) ) + - 10 AS col1
----
7466

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT + NULLIF ( - + MAX ( - 89 ), 29 * + + 25 + + 99 ) * - ( + ( - 84 ) ) + - 10 AS col1
----
7466

query I rowsort
SELECT DISTINCT + 27 + COALESCE ( + - 75, - 3 * 1, + 53 )
----
-48

query I rowsort
SELECT DISTINCT + 16 * - 16 AS col0
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT - + 89 + + SUM( - 22 ) + 65 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-409
SELECT - + 89 + + SUM ( - 22 ) + 65 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-410
SELECT ALL - 6 AS col1, ( + 46 ) * + CASE 31 WHEN + NULLIF ( 70, - 32 ) * - COUNT( * ) + - + 87 + - AVG ( ALL 53 ) * - 26 THEN NULL WHEN COALESCE ( + 83, ( 19 ) ) / - MIN( ALL + ( - 18 ) ) THEN 59 * ( CAST( NULL AS SIGNED ) / 76 ) END + CAST( COUNT( ALL - 30 ) AS SIGNED )
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-410
SELECT ALL - 6 AS col1, ( + 46 ) * + CASE 31 WHEN + NULLIF ( 70, - 32 ) * - COUNT ( * ) + - + 87 + - AVG ( ALL 53 ) * - 26 THEN NULL WHEN COALESCE ( + 83, ( 19 ) ) / - MIN ( ALL + ( - 18 ) ) THEN 59 * ( CAST ( NULL AS INTEGER ) / 76 ) END + CAST ( COUNT ( ALL - 30 ) AS INTEGER )
----
-6
NULL

query II rowsort
SELECT + 30 AS col2, 26 AS col0
----
30
26

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT - - 14 + - MAX( ALL + 24 ) AS col2, + 62 AS col0
----
-10
62

skipif mysql # not compatible
query II rowsort label-412
SELECT - - 14 + - MAX ( ALL + 24 ) AS col2, + 62 AS col0
----
-10
62

query I rowsort
SELECT DISTINCT + CASE + - 99 WHEN + ( + - 48 ) THEN NULL WHEN - 12 THEN 59 WHEN - - NULLIF ( + ( - - 50 ), + 64 * - 46 ) * 94 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-414
SELECT - - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-414
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

query II rowsort
SELECT ALL - 34 - + - 91 * + 22 AS col0, + 91 * + ( 63 ) AS col1
----
1968
5733

onlyif mysql # aggregate syntax: 
query II rowsort label-416
SELECT - + 37 + COUNT( - + 51 ) AS col2, 43 AS col2
----
-36
43

skipif mysql # not compatible
query II rowsort label-416
SELECT - + 37 + COUNT ( - + 51 ) AS col2, 43 AS col2
----
-36
43

onlyif mysql # DIV for integer division: 
query III rowsort label-417
SELECT DISTINCT - 37 AS col0, + 10 DIV + 42 AS col0, - 16 AS col0
----
-37
0
-16

skipif mysql # not compatible
query III rowsort label-417
SELECT DISTINCT - 37 AS col0, + 10 / + 42 AS col0, - 16 AS col0
----
-37
0
-16

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

skipif mysql # not compatible
query I rowsort label-418
SELECT + + COUNT ( 11 ) * + COUNT ( * ) * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL 69 * + + 10 - + 25 AS col0
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT ALL - SUM( - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL - SUM ( - 55 )
----
55

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

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

query I rowsort
SELECT - 96 * + 81 - - + 50
----
-7726

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + 66 + MAX( DISTINCT + + 36 ) + + 4 col2
----
106

skipif mysql # not compatible
query I rowsort label-423
SELECT + 66 + MAX ( DISTINCT + + 36 ) + + 4 col2
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-424
SELECT ALL 35 * 86 + 62 + - 69 * + + 64 * - + COALESCE ( - - 62, + COUNT( * ) * - + ( 54 ) DIV - NULLIF ( 96 + + CAST( - 99 AS SIGNED ) * + COUNT( * ), 73 DIV 64 ), - 44 DIV - 13 + - 47 ) * 28 AS col0
----
7669248

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL 35 * 86 + 62 + - 69 * + + 64 * - + COALESCE ( - - 62, + COUNT ( * ) * - + ( 54 ) / - NULLIF ( 96 + + CAST ( - 99 AS INTEGER ) * + COUNT ( * ), 73 / 64 ), - 44 / - 13 + - 47 ) * 28 AS col0
----
7669248

query II rowsort
SELECT ALL + 9 AS col1, - 79 col1
----
9
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-426
SELECT SUM( - + 25 ) * 74 + - CAST( NULL AS SIGNED ) - 57 + + 22 / + - 15 - - + 2 * - 93 + + AVG ( ALL - - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-426
SELECT SUM ( - + 25 ) * 74 + - CAST ( NULL AS INTEGER ) - 57 + + 22 / + - 15 - - + 2 * - 93 + + AVG ( ALL - - 73 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-427
SELECT + 34 DIV + 42 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-427
SELECT + 34 / + 42 - + + COUNT ( * )
----
-1

query II rowsort
SELECT ALL + 25 AS col1, - 50 + - + 33 - + COALESCE ( - COALESCE ( + - 59, - 33 + + - 95 ), + 25 ) + - 86
----
25
-228

query I rowsort
SELECT + 59 * + ( + 52 )
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL COUNT( * ) * 22 * + ( + COUNT( * ) ) + - + 17
----
5

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL COUNT ( * ) * 22 * + ( + COUNT ( * ) ) + - + 17
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT + 28 + - SUM( 18 ) + - + 35 - + ( + 58 ) * - + 88
----
5079

skipif mysql # not compatible
query I rowsort label-432
SELECT + 28 + - SUM ( 18 ) + - + 35 - + ( + 58 ) * - + 88
----
5079

onlyif mysql # DIV for integer division: 
query I rowsort label-433
SELECT DISTINCT 34 DIV + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT 34 / + 82 AS col0
----
0

query II rowsort
SELECT ALL + 24 AS col0, - 83 * + 17 AS col0
----
24
-1411

query I rowsort
SELECT + 27 * - 3 + - 61
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-436
SELECT ( - - 98 ) DIV 13 - 92 * NULLIF ( + 60, + 42 + + 83 + - 53 ) + + + 23 AS col0
----
-5490

skipif mysql # not compatible
query I rowsort label-436
SELECT ( - - 98 ) / 13 - 92 * NULLIF ( + 60, + 42 + + 83 + - 53 ) + + + 23 AS col0
----
-5490

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT CASE + 71 WHEN - 83 + 89 THEN NULL ELSE + COUNT( * ) - + + 82 END
----
-81

skipif mysql # not compatible
query I rowsort label-437
SELECT CASE + 71 WHEN - 83 + 89 THEN NULL ELSE + COUNT ( * ) - + + 82 END
----
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-438
SELECT 40 * 55 * NULLIF ( 45, - CAST( 81 AS SIGNED ) ) / - COALESCE ( + ( 25 ), + 41 ) * - 24 * + NULLIF ( 86 * 78, 74 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-438
SELECT 40 * 55 * NULLIF ( 45, - CAST ( 81 AS INTEGER ) ) / - COALESCE ( + ( 25 ), + 41 ) * - 24 * + NULLIF ( 86 * 78, 74 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-439
SELECT ALL 46 * 25 + ( - 83 ) + - CAST( NULL AS SIGNED ) + - + 72 * - 12 * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL 46 * 25 + ( - 83 ) + - CAST ( NULL AS INTEGER ) + - + 72 * - 12 * 52
----
NULL

query I rowsort
SELECT + 92 * + + 55 AS col2
----
5060

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT + CASE - 94 WHEN + + COUNT( * ) + - 68 + + - 83 + CASE 21 WHEN + 18 + + ( - + AVG ( + - 90 ) ) + 0 THEN NULL ELSE - 16 END * - NULLIF ( NULLIF ( + 27, 7 + 98 ), 26 ) THEN - 16 * + 37 WHEN + 27 THEN 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT + CASE - 94 WHEN + + COUNT ( * ) + - 68 + + - 83 + CASE 21 WHEN + 18 + + ( - + AVG ( + - 90 ) ) + 0 THEN NULL ELSE - 16 END * - NULLIF ( NULLIF ( + 27, 7 + 98 ), 26 ) THEN - 16 * + 37 WHEN + 27 THEN 88 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( - 81, - 44 * - 68 * + + 71 ) AS col1
----
-81

query I rowsort
SELECT + ( - 4 ) * - 67 AS col0
----
268

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT DISTINCT CASE + + 38 WHEN - COUNT( * ) * 26 + 33 + + 23 THEN - 51 WHEN - + 4 * + 48 THEN NULL END * - + 40 + + + 52 + - 28 / + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT CASE + + 38 WHEN - COUNT ( * ) * 26 + 33 + + 23 THEN - 51 WHEN - + 4 * + 48 THEN NULL END * - + 40 + + + 52 + - 28 / + 83 AS col2
----
NULL

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

query I rowsort
SELECT ALL 83 * 55 + + 45 AS col0
----
4610

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT ALL 89 * + 15 + + NULLIF ( ( - COUNT( * ) ), - 61 ) col1, 60 * + ( + - 97 ) * - + 19 * + - 40 + - ( - 2 + + ( - 37 + + 97 ) ) col0
----
1334
-4423258

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL 89 * + 15 + + NULLIF ( ( - COUNT ( * ) ), - 61 ) col1, 60 * + ( + - 97 ) * - + 19 * + - 40 + - ( - 2 + + ( - 37 + + 97 ) ) col0
----
1334
-4423258

query I rowsort
SELECT ALL - 86 * - 73 - + 40 + - 35 * + 61 AS col0
----
4103

query I rowsort
SELECT NULLIF ( + + 84, + 79 + 48 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-450
SELECT - + 8, 47 + - 47 * - COUNT( * ) + COUNT( - ( - 67 ) ) + + 50 * - 81 - + NULLIF ( 77, COUNT( * ) - - 70 ) AS col0
----
-8
-4032

skipif mysql # not compatible
query II rowsort label-450
SELECT - + 8, 47 + - 47 * - COUNT ( * ) + COUNT ( - ( - 67 ) ) + + 50 * - 81 - + NULLIF ( 77, COUNT ( * ) - - 70 ) AS col0
----
-8
-4032

query II rowsort
SELECT ALL - 52 AS col0, + 77
----
-52
77

query I rowsort
SELECT + + ( + 39 ) - + 31
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT - + NULLIF ( ( - COUNT( * ) ), + - NULLIF ( - - 60, + - ( + + CASE + COUNT( ALL + 4 ) WHEN - 88 THEN + + 60 + 77 * - 55 END ) ) * 37 )
----
1

skipif mysql # not compatible
query I rowsort label-453
SELECT - + NULLIF ( ( - COUNT ( * ) ), + - NULLIF ( - - 60, + - ( + + CASE + COUNT ( ALL + 4 ) WHEN - 88 THEN + + 60 + 77 * - 55 END ) ) * 37 )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT DISTINCT 56 / - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT 56 / - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL MAX( ALL + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL MAX ( ALL + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-457
SELECT DISTINCT COUNT( * ) AS col2, 46 DIV - 53
----
1
0

skipif mysql # not compatible
query II rowsort label-457
SELECT DISTINCT COUNT ( * ) AS col2, 46 / - 53
----
1
0

query I rowsort
SELECT - - 33 * - 13
----
-429

onlyif mysql # aggregate syntax: 
query III rowsort label-459
SELECT DISTINCT - 92 col0, COALESCE ( 16, 27 ) AS col0, - COUNT( * )
----
-92
16
-1

skipif mysql # not compatible
query III rowsort label-459
SELECT DISTINCT - 92 col0, COALESCE ( 16, 27 ) AS col0, - COUNT ( * )
----
-92
16
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-460
SELECT ALL - - 34 * - ( - 8 ) - + 16 + + COUNT( * ) * - 86 DIV - + 59 AS col1
----
257

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL - - 34 * - ( - 8 ) - + 16 + + COUNT ( * ) * - 86 / - + 59 AS col1
----
257

query II rowsort
SELECT ALL + 67 AS col0, + 40 AS col0
----
67
40

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT - 27 - - MAX( - 66 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-462
SELECT - 27 - - MAX ( - 66 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT - 71 + - NULLIF ( - COALESCE ( - - COUNT( * ), + 31 * - CASE - 8 WHEN - - 80 THEN + + 91 ELSE NULL END ), + 40 ) * + + 8 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-463
SELECT - 71 + - NULLIF ( - COALESCE ( - - COUNT ( * ), + 31 * - CASE - 8 WHEN - - 80 THEN + + 91 ELSE NULL END ), + 40 ) * + + 8 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-464
SELECT - MIN( ALL 21 ) DIV - 61 - + - 96 AS col1, CAST( + - 82 AS SIGNED ) AS col2
----
96
-82

skipif mysql # not compatible
query II rowsort label-464
SELECT - MIN ( ALL 21 ) / - 61 - + - 96 AS col1, CAST ( + - 82 AS INTEGER ) AS col2
----
96
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT - + CASE + 57 WHEN + 14 + + 9 + - CASE + + 36 WHEN + + ( - 13 ) * + 61 THEN NULL WHEN - 69 THEN - - COUNT( + 18 ) END THEN - ( + 35 ) * 55 ELSE NULL END / 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT - + CASE + 57 WHEN + 14 + + 9 + - CASE + + 36 WHEN + + ( - 13 ) * + 61 THEN NULL WHEN - 69 THEN - - COUNT ( + 18 ) END THEN - ( + 35 ) * 55 ELSE NULL END / 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT DISTINCT - 45 + - + ( COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT - 45 + - + ( COUNT ( * ) )
----
-46

query II rowsort
SELECT ALL + 46, - 88 * - 28 AS col1
----
46
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT MAX( DISTINCT + + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-468
SELECT MAX ( DISTINCT + + 91 ) AS col1
----
91

query I rowsort
SELECT + - 75 * + - 84
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT - 41 + + 67 * + MAX( ALL - - 25 ) + NULLIF ( + 47, + 33 )
----
1681

skipif mysql # not compatible
query I rowsort label-470
SELECT - 41 + + 67 * + MAX ( ALL - - 25 ) + NULLIF ( + 47, + 33 )
----
1681

query I rowsort
SELECT DISTINCT 12 + - 97
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-472
SELECT - ( - CAST( NULL AS SIGNED ) ) + - 56 * + - 71 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-472
SELECT - ( - CAST ( NULL AS INTEGER ) ) + - 56 * + - 71 * + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL + 80 + MIN( ALL - ( + 1 ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL + 80 + MIN ( ALL - ( + 1 ) ) AS col0
----
79

query I rowsort
SELECT - ( - ( 69 ) ) * + 89 + - - COALESCE ( - 59, - + 20 ) + + 90 col0
----
6172

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT DISTINCT 30 DIV - - 85 + - - 70 + 60 * - 24 * - + 85 AS col2
----
122470

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT 30 / - - 85 + - - 70 + 60 * - 24 * - + 85 AS col2
----
122470

query I rowsort
SELECT + CASE 60 WHEN + 20 * + - 67 THEN NULL ELSE + 50 + 11 END col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-477
SELECT ALL + NULLIF ( + CAST( COUNT( * ) AS SIGNED ), - 65 + 45 * + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL + NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - 65 + 45 * + 61 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-478
SELECT ALL + 51 DIV + 51 + + - MAX( - 63 ) col2
----
64

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL + 51 / + 51 + + - MAX ( - 63 ) col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-479
SELECT ALL - 44 * + NULLIF ( + 58, + - MAX( + - CAST( NULL AS SIGNED ) ) + 80 * - + ( 15 ) * - ( + 65 ) ) AS col2
----
-2552

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL - 44 * + NULLIF ( + 58, + - MAX ( + - CAST ( NULL AS INTEGER ) ) + 80 * - + ( 15 ) * - ( + 65 ) ) AS col2
----
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT 95 * - ( - 42 ) * + COUNT( * ) + - ( 33 ) AS col2
----
3957

skipif mysql # not compatible
query I rowsort label-480
SELECT 95 * - ( - 42 ) * + COUNT ( * ) + - ( 33 ) AS col2
----
3957

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL 87 + - ( + 64 ) + - 0 - - ( 2 ) * - ( + COUNT( * ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL 87 + - ( + 64 ) + - 0 - - ( 2 ) * - ( + COUNT ( * ) ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-482
SELECT ALL + 72 - 65, + 2 * + + COUNT( * ) AS col0
----
7
2

skipif mysql # not compatible
query II rowsort label-482
SELECT ALL + 72 - 65, + 2 * + + COUNT ( * ) AS col0
----
7
2

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT 45 * - 1 + - SUM( + 88 )
----
-133

skipif mysql # not compatible
query I rowsort label-483
SELECT 45 * - 1 + - SUM ( + 88 )
----
-133

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

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL 33 - + 31 - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 10 * - 9
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-486
SELECT - 47 * + COALESCE ( - 26, COUNT( * ) - - 35, + 94 * + 65 ) * + 47 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-486
SELECT - 47 * + COALESCE ( - 26, COUNT ( * ) - - 35, + 94 * + 65 ) * + 47 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT COUNT( * ) * - - SUM( + + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-487
SELECT COUNT ( * ) * - - SUM ( + + 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT DISTINCT - CASE - - 31 WHEN COUNT( * ) * 85 + - 6 + - + 95 + 64 THEN COALESCE ( 35, 65 - - - 0 ) * NULLIF ( 23, 13 + 26 ) + - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT - CASE - - 31 WHEN COUNT ( * ) * 85 + - 6 + - + 95 + 64 THEN COALESCE ( 35, 65 - - - 0 ) * NULLIF ( 23, 13 + 26 ) + - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-489
SELECT ( + 68 ) DIV 39, + ( - 83 ) + - 95 DIV - 44 AS col0
----
1
-81

skipif mysql # not compatible
query II rowsort label-489
SELECT ( + 68 ) / 39, + ( - 83 ) + - 95 / - 44 AS col0
----
1
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT + + NULLIF ( + 99, + - ( - SUM( ALL - - CAST( - - 45 AS SIGNED ) ) ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-490
SELECT + + NULLIF ( + 99, + - ( - SUM ( ALL - - CAST ( - - 45 AS INTEGER ) ) ) ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-491
SELECT - 3 * + CAST( 92 AS SIGNED ) - + - CAST( + 13 AS SIGNED ) * 28 + - + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-491
SELECT - 3 * + CAST ( 92 AS INTEGER ) - + - CAST ( + 13 AS INTEGER ) * 28 + - + COUNT ( * )
----
87

query I rowsort
SELECT 56 + 78 - + - ( + 84 ) * - 57
----
-4654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL 45 * - MIN( DISTINCT - ( + 72 ) ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL 45 * - MIN ( DISTINCT - ( + 72 ) ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) - + 28 + + 40, - + CASE 15 WHEN 67 * 63 + + - COUNT( + 88 ) THEN - - 80 + 87 END, 35 + - 79 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) - + 28 + + 40, - + CASE 15 WHEN 67 * 63 + + - COUNT ( + 88 ) THEN - - 80 + 87 END, 35 + - 79 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-495
SELECT 48 * - 85 + + COUNT( * ) AS col1, - ( + 59 ) * COUNT( + 90 )
----
-4079
-59

skipif mysql # not compatible
query II rowsort label-495
SELECT 48 * - 85 + + COUNT ( * ) AS col1, - ( + 59 ) * COUNT ( + 90 )
----
-4079
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT - COALESCE ( + + 0, 44 * + + COUNT( * ) - - 54, 69 - + - 50 ) + ( + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT - COALESCE ( + + 0, 44 * + + COUNT ( * ) - - 54, 69 - + - 50 ) + ( + 4 ) AS col0
----
4

query III rowsort
SELECT ( 88 ), 62 AS col0, + + 30 col0
----
88
62
30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-499
SELECT + CAST( + 55 AS SIGNED ) AS col0, - 9
----
55
-9

skipif mysql # not compatible
query II rowsort label-499
SELECT + CAST ( + 55 AS INTEGER ) AS col0, - 9
----
55
-9

query I rowsort
SELECT ALL - 99 + 4
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-501
SELECT DISTINCT 57 + - CAST( NULL AS SIGNED ) - + 83 * + 17 / 15 * CAST( - ( - - COUNT( * ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT 57 + - CAST ( NULL AS INTEGER ) - + 83 * + 17 / 15 * CAST ( - ( - - COUNT ( * ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT 35 + COALESCE ( + 25, - - 25 ) AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-503
SELECT DISTINCT 91, COUNT( DISTINCT 31 ) DIV - - 89 * + 98 AS col2
----
91
0

skipif mysql # not compatible
query II rowsort label-503
SELECT DISTINCT 91, COUNT ( DISTINCT 31 ) / - - 89 * + 98 AS col2
----
91
0

query I rowsort
SELECT DISTINCT - 3 + + 49
----
46

query I rowsort
SELECT ALL + 48 + + COALESCE ( + - ( - 17 ), - ( - 23 ) - + + 96 - - + 3 * + ( + + COALESCE ( - ( - + ( - 61 ) ), - 98, - 62 ) ) - + 90 ) AS col0
----
65

query I rowsort
SELECT DISTINCT - 21 + - 54
----
-75

query I rowsort
SELECT 89 * - - 73
----
6497

query I rowsort
SELECT DISTINCT + 3 + - 28 * + 59 AS col1
----
-1649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-509
SELECT 5 + + + 11 * + - 69 + + - CASE - - 77 WHEN CAST( NULL AS SIGNED ) THEN - + ( + - 28 ) WHEN 31 THEN NULL END * + + COUNT( + - 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT 5 + + + 11 * + - 69 + + - CASE - - 77 WHEN CAST ( NULL AS INTEGER ) THEN - + ( + - 28 ) WHEN 31 THEN NULL END * + + COUNT ( + - 6 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 85 + 13 AS col2
----
98

query I rowsort
SELECT 79 * - 94
----
-7426

query I rowsort
SELECT DISTINCT + 4 - + 91
----
-87

query I rowsort
SELECT 14 * + + 29 AS col2
----
406

query I rowsort
SELECT DISTINCT - ( - - 10 )
----
-10

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

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT ALL - SUM( - 81 ) * - - 16 AS col1, - 76 + + COUNT( * ) + + 26 * + + 15
----
1296
315

skipif mysql # not compatible
query II rowsort label-516
SELECT ALL - SUM ( - 81 ) * - - 16 AS col1, - 76 + + COUNT ( * ) + + 26 * + + 15
----
1296
315

query I rowsort
SELECT 4 * + 46 AS col0
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-518
SELECT + - COALESCE ( + 27, + 92 - - - 68, 39 DIV - + 3 * + COUNT( DISTINCT + 68 ) ), 81 * ( + 80 ) + + 86 + - 82 * COALESCE ( 25 * 95 + 35, + 54 ) AS col2
----
-27
-191054

skipif mysql # not compatible
query II rowsort label-518
SELECT + - COALESCE ( + 27, + 92 - - - 68, 39 / - + 3 * + COUNT ( DISTINCT + 68 ) ), 81 * ( + 80 ) + + 86 + - 82 * COALESCE ( 25 * 95 + 35, + 54 ) AS col2
----
-27
-191054

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT + 63 - - + 67 * COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT + 63 - - + 67 * COUNT ( * )
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT NULLIF ( COUNT( * ), - - CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-520
SELECT NULLIF ( COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) AS col0
----
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT - 87 DIV 81
----
-1

skipif mysql # not compatible
query I rowsort label-522
SELECT - 87 / 81
----
-1

query I rowsort
SELECT - - CASE 5 WHEN + 61 / + 28 THEN 46 - - - 46 ELSE NULL END
----
NULL

query I rowsort
SELECT - 62 - - 69
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL 2 * + 39 + + 39 + + ( + COUNT( * ) ) * 21 * - - NULLIF ( 56, - COALESCE ( - 50, + + 32 * - - 34, - 59 ) ) AS col2
----
1293

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL 2 * + 39 + + 39 + + ( + COUNT ( * ) ) * 21 * - - NULLIF ( 56, - COALESCE ( - 50, + + 32 * - - 34, - 59 ) ) AS col2
----
1293

query I rowsort
SELECT ALL 6 + + + 82 AS col2
----
88

query I rowsort
SELECT 73 - - + 66 * - 74
----
-4811

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT - 89 + + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-528
SELECT - 89 + + COUNT ( * )
----
-88

query II rowsort
SELECT - ( 52 ) + + 54, - 80 AS col0
----
2
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT ALL - 4 + + COUNT( * ) + + 52 * + COUNT( * ) * + 62 - - 30 - - 3 * + 90 + COUNT( * ) + - + 98
----
3424

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL - 4 + + COUNT ( * ) + + 52 * + COUNT ( * ) * + 62 - - 30 - - 3 * + 90 + COUNT ( * ) + - + 98
----
3424

query I rowsort
SELECT - COALESCE ( 65, + 62 ) AS col2
----
-65

query I rowsort
SELECT ALL 18 * + 15
----
270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT CASE 67 WHEN - 50 * ( CAST( + NULLIF ( + + 25, - - 63 + + + 49 ) AS SIGNED ) ) + - ( - + CAST( - + 20 AS SIGNED ) ) + - + 16 + - 19 + - COUNT( * ) THEN + 81 + 57 * 97 END + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT CASE 67 WHEN - 50 * ( CAST ( + NULLIF ( + + 25, - - 63 + + + 49 ) AS INTEGER ) ) + - ( - + CAST ( - + 20 AS INTEGER ) ) + - + 16 + - 19 + - COUNT ( * ) THEN + 81 + 57 * 97 END + - 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT + COUNT( ALL + 78 ) + - - ( - 25 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-534
SELECT + COUNT ( ALL + 78 ) + - - ( - 25 ) AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT DISTINCT 5 DIV + - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT 5 / + - 86 AS col2
----
0

query I rowsort
SELECT ALL + 90 * 68 * - 15 * 67
----
-6150600

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

skipif mysql # not compatible
query I rowsort label-537
SELECT + ( - COUNT ( * ) ) + + 81 AS col1
----
80

query I rowsort
SELECT + COALESCE ( + 93, 13 )
----
93

query I rowsort
SELECT - 74 * + ( - 79 )
----
5846

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-540
SELECT CAST( 8 AS SIGNED ) * - MAX( ALL - - 87 ) * + 57 + - COALESCE ( - + 88, - ( + + COUNT( * ) ) + + + 31 + + 10 + - 23 * - COUNT( * ) ) + + 28
----
-39556

skipif mysql # not compatible
query I rowsort label-540
SELECT CAST ( 8 AS INTEGER ) * - MAX ( ALL - - 87 ) * + 57 + - COALESCE ( - + 88, - ( + + COUNT ( * ) ) + + + 31 + + 10 + - 23 * - COUNT ( * ) ) + + 28
----
-39556

query I rowsort
SELECT NULLIF ( + 75, 77 )
----
75

query I rowsort
SELECT ALL + CASE - 29 WHEN 76 - 92 THEN - 54 ELSE + 75 END AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-543
SELECT + 62 DIV - COUNT( DISTINCT 43 )
----
-62

skipif mysql # not compatible
query I rowsort label-543
SELECT + 62 / - COUNT ( DISTINCT 43 )
----
-62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-545
SELECT - 39 * - CASE WHEN NOT ( - MAX( - 39 ) ) >= NULL THEN + 92 ELSE NULL END + 64 + + 84 / + + CASE - - 76 WHEN + + 67 * + NULLIF ( - 88, NULLIF ( MIN( DISTINCT + CAST( 28 AS SIGNED ) ), - 79 ) ) THEN NULL ELSE + 17 + + COUNT( * ) / AVG ( DISTINCT + 15 ) END - COALESCE ( - CAST( - 91 AS SIGNED ), + ( - COUNT( * ) ) + 2, + 43 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT - 39 * - CASE WHEN NOT ( - MAX ( - 39 ) ) >= NULL THEN + 92 ELSE NULL END + 64 + + 84 / + + CASE - - 76 WHEN + + 67 * + NULLIF ( - 88, NULLIF ( MIN ( DISTINCT + CAST ( 28 AS INTEGER ) ), - 79 ) ) THEN NULL ELSE + 17 + + COUNT ( * ) / AVG ( DISTINCT + 15 ) END - COALESCE ( - CAST ( - 91 AS INTEGER ), + ( - COUNT ( * ) ) + 2, + 43 ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 44 * + 34 * 53 * 84 AS col2
----
-6660192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-548
SELECT ALL + MIN( ALL - 81 ) AS col2, 53 + - - COALESCE ( - NULLIF ( + 21, + + 3 + 66 ), + 34, + CAST( NULL AS SIGNED ), - COUNT( - COALESCE ( + - 66, - 20, 80 ) ) + 53 ) AS col2
----
-81
32

skipif mysql # not compatible
query II rowsort label-548
SELECT ALL + MIN ( ALL - 81 ) AS col2, 53 + - - COALESCE ( - NULLIF ( + 21, + + 3 + 66 ), + 34, + CAST ( NULL AS INTEGER ), - COUNT ( - COALESCE ( + - 66, - 20, 80 ) ) + 53 ) AS col2
----
-81
32

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT - COUNT( * ) + - COUNT( * ) + - + COUNT( * ) + + - ( 96 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-549
SELECT - COUNT ( * ) + - COUNT ( * ) + - + COUNT ( * ) + + - ( 96 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT - - MAX( ALL + 98 ) + - MAX( + 85 ) AS col1, - 68 col2
----
13
-68

skipif mysql # not compatible
query II rowsort label-550
SELECT - - MAX ( ALL + 98 ) + - MAX ( + 85 ) AS col1, - 68 col2
----
13
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-551
SELECT ALL + - CAST( - 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + - CAST ( - 46 AS INTEGER )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT - 48 * - - 38 * COUNT( - 73 ) + + 64 + - 66 AS col2
----
-1826

skipif mysql # not compatible
query I rowsort label-552
SELECT - 48 * - - 38 * COUNT ( - 73 ) + + 64 + - 66 AS col2
----
-1826

query I rowsort
SELECT ALL - 5 * 16 + 33
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-554
SELECT - + 91 * + 14 * + COUNT( DISTINCT - + 80 ) - CAST( + + 79 AS SIGNED ) AS col2
----
-1353

skipif mysql # not compatible
query I rowsort label-554
SELECT - + 91 * + 14 * + COUNT ( DISTINCT - + 80 ) - CAST ( + + 79 AS INTEGER ) AS col2
----
-1353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT DISTINCT 6 * - 45 * + 73 + - - 64 - - + CAST( + - 26 AS SIGNED )
----
-19672

skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT 6 * - 45 * + 73 + - - 64 - - + CAST ( + - 26 AS INTEGER )
----
-19672

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT - 36 * - + 78 * MIN( + + 93 ) * + + 37 + + - 93 AS col1
----
9662235

skipif mysql # not compatible
query I rowsort label-556
SELECT - 36 * - + 78 * MIN ( + + 93 ) * + + 37 + + - 93 AS col1
----
9662235

query I rowsort
SELECT - 94 + - - 46
----
-48

query I rowsort
SELECT DISTINCT + + 68 col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT + COUNT( * ) * + - 67 + - ( - - 67 ) + 97 * - 43 AS col0
----
-4305

skipif mysql # not compatible
query I rowsort label-559
SELECT + COUNT ( * ) * + - 67 + - ( - - 67 ) + 97 * - 43 AS col0
----
-4305

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT + CASE - 13 WHEN - COALESCE ( + 16, - 70 ) THEN - - COUNT( * ) + - - 91 + - COUNT( * ) WHEN - 73 + + 88 + + + 50 / - - 56 + + 36 + - + COUNT( * ) * - ( COUNT( * ) + - 77 ) THEN NULL END * - 56 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT + CASE - 13 WHEN - COALESCE ( + 16, - 70 ) THEN - - COUNT ( * ) + - - 91 + - COUNT ( * ) WHEN - 73 + + 88 + + + 50 / - - 56 + + 36 + - + COUNT ( * ) * - ( COUNT ( * ) + - 77 ) THEN NULL END * - 56 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-561
SELECT ALL - SUM( DISTINCT - 97 ) * + CAST( SUM( + 30 ) AS SIGNED ) + + + 33 + + ( ( 66 ) ) col2
----
3009

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL - SUM ( DISTINCT - 97 ) * + CAST ( SUM ( + 30 ) AS INTEGER ) + + + 33 + + ( ( 66 ) ) col2
----
3009

query I rowsort
SELECT ALL + + 72 + - - ( + + 94 ) - 52 * - 63 * - 24 AS col0
----
-78458

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-563
SELECT + + ( + CASE - CASE - 67 WHEN + 89 THEN + + 7 ELSE + 35 + - + 76 END WHEN + - 85 * + + 77 THEN NULL WHEN + 52 THEN + 1 WHEN - SUM( DISTINCT - 63 ) THEN NULL END ) * ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT + + ( + CASE - CASE - 67 WHEN + 89 THEN + + 7 ELSE + 35 + - + 76 END WHEN + - 85 * + + 77 THEN NULL WHEN + 52 THEN + 1 WHEN - SUM ( DISTINCT - 63 ) THEN NULL END ) * ( CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT 36 * + SUM( DISTINCT - - 84 ) AS col2
----
3024

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT 36 * + SUM ( DISTINCT - - 84 ) AS col2
----
3024

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT DISTINCT + COUNT( * ) - 47 AS col0, - 21 * 75 + - 82 * 34 * - + 83 col2
----
-46
229829

skipif mysql # not compatible
query II rowsort label-565
SELECT DISTINCT + COUNT ( * ) - 47 AS col0, - 21 * 75 + - 82 * 34 * - + 83 col2
----
-46
229829

onlyif mysql # aggregate syntax: 
query II rowsort label-566
SELECT 37 AS col1, - 34 - + COUNT( * )
----
37
-35

skipif mysql # not compatible
query II rowsort label-566
SELECT 37 AS col1, - 34 - + COUNT ( * )
----
37
-35

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

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT DISTINCT SUM( ALL + 97 ) * + + 19, + 74 * 98 AS col1
----
1843
7252

skipif mysql # not compatible
query II rowsort label-568
SELECT DISTINCT SUM ( ALL + 97 ) * + + 19, + 74 * 98 AS col1
----
1843
7252

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

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

query I rowsort
SELECT ALL 64 * + 7 AS col0
----
448

query I rowsort
SELECT ALL 23 * - + 67 col2
----
-1541

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT + 29 DIV 41 col1
----
0

skipif mysql # not compatible
query I rowsort label-572
SELECT + 29 / 41 col1
----
0

query I rowsort
SELECT ALL - 86 * - - 72
----
-6192

query I rowsort
SELECT + 22 * + - 72
----
-1584

query I rowsort
SELECT ALL 28 * + 26 * + - 35
----
-25480

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT DISTINCT COUNT( DISTINCT 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT COUNT ( DISTINCT 29 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT + ( + COUNT( ALL 1 ) ) - + ( 87 ) + - 72 col0
----
-158

skipif mysql # not compatible
query I rowsort label-577
SELECT + ( + COUNT ( ALL 1 ) ) - + ( 87 ) + - 72 col0
----
-158

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - 68 + + 8 + - COUNT( + 20 ) + + 46 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-579
SELECT - 68 + + 8 + - COUNT ( + 20 ) + + 46 AS col2
----
-15

query I rowsort
SELECT ALL ( - 92 ) * + 2 AS col2
----
-184

query I rowsort
SELECT + 56 * + 35 AS col0
----
1960

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-582
SELECT 60 / CAST( NULL AS DECIMAL ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT 60 / CAST ( NULL AS REAL ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-583
SELECT ALL + CASE CAST( NULL AS DECIMAL ) WHEN + 79 THEN + COUNT( * ) + - SUM( - - 39 ) END * - 70 * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL + CASE CAST ( NULL AS REAL ) WHEN + 79 THEN + COUNT ( * ) + - SUM ( - - 39 ) END * - 70 * + + 52
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT + - 49 DIV 24 col0
----
-2

skipif mysql # not compatible
query I rowsort label-584
SELECT + - 49 / 24 col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT ALL - 51 DIV - 54 + + 1
----
1

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - 51 / - 54 + + 1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-586
SELECT DISTINCT + COUNT( * ) DIV - + 33 + - - 7 + - 20 + - 18 + 51 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT + COUNT ( * ) / - + 33 + - - 7 + - 20 + - 18 + 51 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-587
SELECT ALL - CASE + 1 WHEN + ( + COALESCE ( + + 50, - - 36 + - - 61 + + CAST( NULL AS SIGNED ) ) ) THEN + + 65 WHEN MIN( + 7 ) - COALESCE ( - - 7, 63 ) + - 80 THEN NULL END / 6 + - 22 / - 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - CASE + 1 WHEN + ( + COALESCE ( + + 50, - - 36 + - - 61 + + CAST ( NULL AS INTEGER ) ) ) THEN + + 65 WHEN MIN ( + 7 ) - COALESCE ( - - 7, 63 ) + - 80 THEN NULL END / 6 + - 22 / - 8 col0
----
NULL

query I rowsort
SELECT ALL 39 * - COALESCE ( + - 88, - + 23 ) col0
----
3432

onlyif mysql # DIV for integer division: 
query I rowsort label-589
SELECT - 78 DIV - 87 * - 71
----
0

skipif mysql # not compatible
query I rowsort label-589
SELECT - 78 / - 87 * - 71
----
0

query I rowsort
SELECT + - 72 * - ( + 38 ) AS col1
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT - 92 * - ( + CASE - 52 WHEN - + 45 THEN + - 44 * + COUNT( * ) + + 98 / + - 96 - + 21 WHEN - + 90 THEN - 16 * - COUNT( * ) + + + 34 WHEN - 65 * + MIN( COALESCE ( 37, COALESCE ( - 22, + 71 * 34 ) ) ) + 61 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT - 92 * - ( + CASE - 52 WHEN - + 45 THEN + - 44 * + COUNT ( * ) + + 98 / + - 96 - + 21 WHEN - + 90 THEN - 16 * - COUNT ( * ) + + + 34 WHEN - 65 * + MIN ( COALESCE ( 37, COALESCE ( - 22, + 71 * 34 ) ) ) + 61 THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT + + NULLIF ( - 17, - ( - 6 ) ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-593
SELECT - - 23 DIV + NULLIF ( - 31, + 49 - 85 + - COUNT( * ) + 77 * + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-593
SELECT - - 23 / + NULLIF ( - 31, + 49 - 85 + - COUNT ( * ) + 77 * + 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-594
SELECT ALL - CAST( NULL AS SIGNED ) / - - 15 + COALESCE ( - + 88, 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL - CAST ( NULL AS INTEGER ) / - - 15 + COALESCE ( - + 88, 42 ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-596
SELECT + 2, 20 * - + COUNT( * ) AS col1
----
2
-20

skipif mysql # not compatible
query II rowsort label-596
SELECT + 2, 20 * - + COUNT ( * ) AS col1
----
2
-20

query I rowsort
SELECT DISTINCT - 85 * 0 - - - 88 + + + 72 + - 80 AS col1
----
-96

query II rowsort
SELECT + 37 * + 40 + + 60 + 22 * + + 40 + - 48 col1, 23 * 33
----
2372
759

query I rowsort
SELECT - ( 98 ) * + 60 + - 17 AS col2
----
-5897

query I rowsort
SELECT DISTINCT + 99 * ( - 88 ) * 39 * 19
----
-6455592

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT 73 + - NULLIF ( + - COUNT( * ), - 96 * 34 + - + 1 + - + 37 * - 50 )
----
74

skipif mysql # not compatible
query I rowsort label-601
SELECT 73 + - NULLIF ( + - COUNT ( * ), - 96 * 34 + - + 1 + - + 37 * - 50 )
----
74

query I rowsort
SELECT ALL + 90 * + ( + ( - 46 ) ) col2
----
-4140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT 79 - - - 20 + + - CAST( - SUM( + 13 ) AS SIGNED ) * 85
----
1164

skipif mysql # not compatible
query I rowsort label-603
SELECT 79 - - - 20 + + - CAST ( - SUM ( + 13 ) AS INTEGER ) * 85
----
1164

onlyif mysql # aggregate syntax: 
query II rowsort label-604
SELECT ALL 46 AS col1, + 58 * + CASE + - ( - - 27 ) WHEN ( + 45 ) / + + AVG ( 91 ) THEN - + 89 ELSE + COUNT( * ) END AS col1
----
46
58

skipif mysql # not compatible
query II rowsort label-604
SELECT ALL 46 AS col1, + 58 * + CASE + - ( - - 27 ) WHEN ( + 45 ) / + + AVG ( 91 ) THEN - + 89 ELSE + COUNT ( * ) END AS col1
----
46
58

query III rowsort
SELECT ALL 49 AS col2, 32 * + CASE - 43 WHEN - 16 THEN NULL WHEN + 75 THEN NULL WHEN ( + 51 ) THEN - 39 END AS col1, - - 80 * 3
----
49
NULL
240

query I rowsort
SELECT 98 + - + 39 + + 32 AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-607
SELECT 4 * 61 * - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-607
SELECT 4 * 61 * - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT DISTINCT 34 DIV 11 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT 34 / 11 AS col2
----
3

query II rowsort
SELECT DISTINCT 8, 42 * - + 55 + + 56 AS col1
----
8
-2254

query I rowsort
SELECT 88 + - 3
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT 23 - - - 32 DIV + 92 col2
----
23

skipif mysql # not compatible
query I rowsort label-611
SELECT 23 - - - 32 / + 92 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL - CASE + 78 WHEN + 73 * - 0 * + + 4 * + 36 / AVG ( - - 90 ) + 85 THEN - - 96 * COUNT( * ) + - 29 END / 85 - + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - CASE + 78 WHEN + 73 * - 0 * + + 4 * + 36 / AVG ( - - 90 ) + 85 THEN - - 96 * COUNT ( * ) + - 29 END / 85 - + 55 AS col2
----
NULL

query I rowsort
SELECT 30 * + - 71
----
-2130

query I rowsort
SELECT ALL 33 * + 43
----
1419

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

skipif mysql # not compatible
query I rowsort label-615
SELECT 49 / + 94 / - ( COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT COUNT( * ) + - 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-616
SELECT COUNT ( * ) + - 49 AS col0
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-617
SELECT ALL CAST( NULL AS DECIMAL ) * 87 * + 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL CAST ( NULL AS REAL ) * 87 * + 89 col0
----
NULL

query I rowsort
SELECT ALL + 83 + + + 59 AS col2
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-619
SELECT COUNT( * ) + + - 60 DIV + 84 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-619
SELECT COUNT ( * ) + + - 60 / + 84 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT + COALESCE ( 50, + - 27, - + ( - 8 ) + - 17 * + ( CASE - 66 WHEN + - ( - 37 ) THEN - + 25 * 27 - + 2 END ) DIV + 74 + COUNT( * ) + - COUNT( * ) * + NULLIF ( 17, COUNT( * ) * 47 + - 6 ) ) * 12 AS col2
----
600

skipif mysql # not compatible
query I rowsort label-620
SELECT + COALESCE ( 50, + - 27, - + ( - 8 ) + - 17 * + ( CASE - 66 WHEN + - ( - 37 ) THEN - + 25 * 27 - + 2 END ) / + 74 + COUNT ( * ) + - COUNT ( * ) * + NULLIF ( 17, COUNT ( * ) * 47 + - 6 ) ) * 12 AS col2
----
600

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-621
SELECT + 1 AS col2, 0 + - - 4 - - - 76 - + CASE WHEN NOT + 40 IS NOT NULL THEN + ( - 0 ) ELSE + ( - + COUNT( DISTINCT 89 ) ) END * 26 + - COALESCE ( 7, - + COALESCE ( 37, 18, - ( + COUNT( DISTINCT 37 ) ) DIV 98 + 26 ) * - 52 + ( 43 ), COUNT( * ) * + COUNT( * ) ) * 32 col0
----
1
-270

skipif mysql # not compatible
query II rowsort label-621
SELECT + 1 AS col2, 0 + - - 4 - - - 76 - + CASE WHEN NOT + 40 IS NOT NULL THEN + ( - 0 ) ELSE + ( - + COUNT ( DISTINCT 89 ) ) END * 26 + - COALESCE ( 7, - + COALESCE ( 37, 18, - ( + COUNT ( DISTINCT 37 ) ) / 98 + 26 ) * - 52 + ( 43 ), COUNT ( * ) * + COUNT ( * ) ) * 32 col0
----
1
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT COALESCE ( + 26, - ( COUNT( * ) ) + + 12 * 71 ) * - COUNT( * ) + + 81
----
55

skipif mysql # not compatible
query I rowsort label-622
SELECT COALESCE ( + 26, - ( COUNT ( * ) ) + + 12 * 71 ) * - COUNT ( * ) + + 81
----
55

query II rowsort
SELECT + + ( - + 42 ) col0, - 41 AS col1
----
-42
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT ALL - + SUM( DISTINCT 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-625
SELECT ALL - + SUM ( DISTINCT 61 )
----
-61

query I rowsort
SELECT ( + 42 ) + - + ( + 66 )
----
-24

query I rowsort
SELECT ALL + ( - + 20 ) * 41 AS col2
----
-820

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT - 42 + - 32 DIV - + 44
----
-42

skipif mysql # not compatible
query I rowsort label-628
SELECT - 42 + - 32 / - + 44
----
-42

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

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL 12 - - 41 * - 23 / - CAST ( NULL AS INTEGER ) * - 20 + - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL - COALESCE ( + 60, - - ( - - COUNT( * ) ), - + 40 - + - 7 * - 35 * - 74, 99 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL - COALESCE ( + 60, - - ( - - COUNT ( * ) ), - + 40 - + - 7 * - 35 * - 74, 99 ) col2
----
-60

query II rowsort
SELECT DISTINCT - 46, - 82 AS col0
----
-46
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT COUNT( * ) * - 65 + 79 - - - 97 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-632
SELECT COUNT ( * ) * - 65 + 79 - - - 97 AS col2
----
-83

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

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

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

query I rowsort
SELECT 97 * 19
----
1843

query I rowsort
SELECT + 5 + - 25
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-637
SELECT ( - + NULLIF ( + CAST( NULL AS DECIMAL ), 37 * + 7 + + 63 * + - 42 ) ) / - + 17 + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-637
SELECT ( - + NULLIF ( + CAST ( NULL AS REAL ), 37 * + 7 + + 63 * + - 42 ) ) / - + 17 + 25
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT ALL - 31 DIV + + 29 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL - 31 / + + 29 AS col0
----
-1

query I rowsort
SELECT 98 * - 88
----
-8624

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-641
SELECT ALL - CAST( - 84 AS SIGNED ) * + - 0 DIV + 25
----
0

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL - CAST ( - 84 AS INTEGER ) * + - 0 / + 25
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-642
SELECT 85 + + 98 AS col0, - COUNT( * ) * + 59 * - ( - 56 ) * - 15 * 53 AS col2
----
183
2626680

skipif mysql # not compatible
query II rowsort label-642
SELECT 85 + + 98 AS col0, - COUNT ( * ) * + 59 * - ( - 56 ) * - 15 * 53 AS col2
----
183
2626680

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT 23 + - 83 * + - 39 - - - 6 + - 61 + + 58 * 31 + + COUNT( * ) * 77
----
5068

skipif mysql # not compatible
query I rowsort label-643
SELECT 23 + - 83 * + - 39 - - - 6 + - 61 + + 58 * 31 + + COUNT ( * ) * 77
----
5068

query I rowsort
SELECT DISTINCT - 68 * - NULLIF ( + 47, - AVG ( DISTINCT - 93 ) ) * 98 AS col0
----
313208

query I rowsort
SELECT 97 * + 69 col2
----
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT 33 + - - CASE + + 64 WHEN - COUNT( * ) THEN - 66 / - 82 * - + 74 * 15 * - ( 27 ) + - COUNT( * ) + 51 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT 33 + - - CASE + + 64 WHEN - COUNT ( * ) THEN - 66 / - 82 * - + 74 * 15 * - ( 27 ) + - COUNT ( * ) + 51 END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 39 * + 26 col1
----
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL - CASE 4 WHEN - SUM( + 98 ) - - 39 THEN + 69 * + + 91 END + + 55 + COUNT( * ) / ( 89 ) * ( - COUNT( * ) ) + - 70 + - + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL - CASE 4 WHEN - SUM ( + 98 ) - - 39 THEN + 69 * + + 91 END + + 55 + COUNT ( * ) / ( 89 ) * ( - COUNT ( * ) ) + - 70 + - + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT DISTINCT - 69 + 35 + - 73 * MIN( - ( - - ( + - ( - ( + 71 ) ) ) ) ) * + 71 AS col2
----
367959

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT - 69 + 35 + - 73 * MIN ( - ( - - ( + - ( - ( + 71 ) ) ) ) ) * + 71 AS col2
----
367959

query I rowsort
SELECT 29 + 95
----
124

query I rowsort
SELECT ALL - 51 + + 22 + + 53
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-652
SELECT ALL + ( - 49 ) + + + 42 AS col0, 0 DIV + 64 AS col1
----
-7
0

skipif mysql # not compatible
query II rowsort label-652
SELECT ALL + ( - 49 ) + + + 42 AS col0, 0 / + 64 AS col1
----
-7
0

query I rowsort
SELECT ALL 21 + - + 22 + + + 46
----
45

query I rowsort
SELECT ALL 80 + - 1 AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-655
SELECT DISTINCT - + 83 DIV - + 71
----
1

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT - + 83 / - + 71
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT MAX( DISTINCT + ( 7 ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-656
SELECT MAX ( DISTINCT + ( 7 ) ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT COUNT( * ) + - + 68 * 30 + - 16 AS col1
----
-2055

skipif mysql # not compatible
query I rowsort label-657
SELECT COUNT ( * ) + - + 68 * 30 + - 16 AS col1
----
-2055

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL COUNT( * ) * - 25 + - 22 + + 35 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL COUNT ( * ) * - 25 + - 22 + + 35 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-659
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + CAST( NULL AS DECIMAL ) ) - + COALESCE ( - - 16, - 78 + - 99 + 64 / 66 + + + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + CAST ( NULL AS REAL ) ) - + COALESCE ( - - 16, - 78 + - 99 + 64 / 66 + + + 54 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT DISTINCT + ( + 65 ) DIV + 47
----
1

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + ( + 65 ) / + 47
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT DISTINCT + COUNT( ALL + 9 ) * 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT + COUNT ( ALL + 9 ) * 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT + - COUNT( * ) * 13 * + - 53
----
689

skipif mysql # not compatible
query I rowsort label-662
SELECT + - COUNT ( * ) * 13 * + - 53
----
689

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT + NULLIF ( - 36, + + CASE + - 94 WHEN - 1 * 97 THEN - 43 + + 35 + - ( + 51 ) * 96 * CAST( - 54 AS SIGNED ) + - 91 * CAST( NULL AS SIGNED ) WHEN - - 84 THEN NULL END )
----
-36

skipif mysql # not compatible
query I rowsort label-664
SELECT + NULLIF ( - 36, + + CASE + - 94 WHEN - 1 * 97 THEN - 43 + + 35 + - ( + 51 ) * 96 * CAST ( - 54 AS INTEGER ) + - 91 * CAST ( NULL AS INTEGER ) WHEN - - 84 THEN NULL END )
----
-36

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

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

query I rowsort
SELECT DISTINCT + CASE - 57 WHEN - 54 THEN - 39 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL 82 * + 51 * + 61 + - 10 - COUNT( * )
----
255091

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL 82 * + 51 * + 61 + - 10 - COUNT ( * )
----
255091

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT DISTINCT 70 DIV - 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT 70 / - 84 col1
----
0

query I rowsort
SELECT + 82 * - 85 * - 42 col0
----
292740

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

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL - CAST ( NULL AS REAL ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 5 * + - ( ( ( 41 ) ) ) col1
----
-205

onlyif mysql # aggregate syntax: 
query II rowsort label-672
SELECT + COUNT( * ) AS col0, + 86 * 78 * + - 90 AS col1
----
1
-603720

skipif mysql # not compatible
query II rowsort label-672
SELECT + COUNT ( * ) AS col0, + 86 * 78 * + - 90 AS col1
----
1
-603720

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT + NULLIF ( + NULLIF ( + 11, - - 68 + + + 54 + + 23 + - COALESCE ( + 49, - COUNT( * ) ) - - 41 * - - COUNT( * ) ), + COUNT( * ) ) + - - CASE - - 86 WHEN - 57 THEN - 79 + + + 50 * - 73 WHEN 8 + + COUNT( ALL NULLIF ( 23, 19 ) + 34 / + 92 ) THEN ( ( - 18 ) ) + 55 WHEN 34 THEN - 81 * 19 + + 82 END + - 0 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-673
SELECT + NULLIF ( + NULLIF ( + 11, - - 68 + + + 54 + + 23 + - COALESCE ( + 49, - COUNT ( * ) ) - - 41 * - - COUNT ( * ) ), + COUNT ( * ) ) + - - CASE - - 86 WHEN - 57 THEN - 79 + + + 50 * - 73 WHEN 8 + + COUNT ( ALL NULLIF ( 23, 19 ) + 34 / + 92 ) THEN ( ( - 18 ) ) + 55 WHEN 34 THEN - 81 * 19 + + 82 END + - 0 * + 91
----
NULL

query I rowsort
SELECT - 52 * + + 99 AS col2
----
-5148

query I rowsort
SELECT + 40 + + + 18
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT COUNT( * ) + ( - 27 ) * + - COUNT( * ) * 20 AS col2
----
541

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT COUNT ( * ) + ( - 27 ) * + - COUNT ( * ) * 20 AS col2
----
541

query I rowsort
SELECT DISTINCT 63 + 70 + 55 * + 14 * - 53
----
-40677

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT ALL + 92 DIV - 90 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL + 92 / - 90 AS col0
----
-1

query II rowsort
SELECT 96 AS col1, - 50
----
96
-50

query I rowsort
SELECT ALL 98 + - - 28 col0
----
126

query I rowsort
SELECT DISTINCT - 19 + 53 AS col0
----
34

query I rowsort
SELECT ALL + 65 + 4 AS col0
----
69

query II rowsort
SELECT 12 AS col0, + 70 AS col0
----
12
70

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL COUNT( DISTINCT + + 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL COUNT ( DISTINCT + + 39 ) AS col0
----
1

query II rowsort
SELECT 83 AS col1, 36 + 54
----
83
90

query I rowsort
SELECT + 56 + - 57
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT - 62 + + COALESCE ( - + 60, + 93 DIV 21 + + - 57 ) * - NULLIF ( - 57, - 1 ) + - 25
----
-3507

skipif mysql # not compatible
query I rowsort label-687
SELECT - 62 + + COALESCE ( - + 60, + 93 / 21 + + - 57 ) * - NULLIF ( - 57, - 1 ) + - 25
----
-3507

query I rowsort
SELECT DISTINCT - 20 + - - 29 + - 61 AS col2
----
-52

query I rowsort
SELECT ALL + + 18 + + 78 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-690
SELECT - MAX( + - 84 ) * - + 74 + CAST( + 22 AS SIGNED ) + + + CAST( + + 0 AS SIGNED ) - 79 col1
----
-6273

skipif mysql # not compatible
query I rowsort label-690
SELECT - MAX ( + - 84 ) * - + 74 + CAST ( + 22 AS INTEGER ) + + + CAST ( + + 0 AS INTEGER ) - 79 col1
----
-6273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-691
SELECT ALL - + 6 * + - NULLIF ( + CAST( + - MAX( 79 ) AS SIGNED ), 49 ) + + - CAST( NULL AS SIGNED ) * - 27 + 94 + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL - + 6 * + - NULLIF ( + CAST ( + - MAX ( 79 ) AS INTEGER ), 49 ) + + - CAST ( NULL AS INTEGER ) * - 27 + 94 + 1 AS col2
----
NULL

query I rowsort
SELECT ALL - 24 - + + 2
----
-26

query I rowsort
SELECT - + 60 * - 80 AS col0
----
4800

onlyif mysql # DIV for integer division: 
query I rowsort label-694
SELECT - + 11 DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-694
SELECT - + 11 / + 41 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-695
SELECT + + 87 * + COUNT( * ) - - + 89 DIV - 66 + + - 42 + + + 59 * + + 86
----
5118

skipif mysql # not compatible
query I rowsort label-695
SELECT + + 87 * + COUNT ( * ) - - + 89 / - 66 + + - 42 + + + 59 * + + 86
----
5118

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT ALL + 89 DIV + 57 col0
----
1

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + 89 / + 57 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-697
SELECT + 5 * + 87 / - CASE + CAST( NULL AS SIGNED ) WHEN - - 25 THEN NULL WHEN + CAST( - - 50 AS DECIMAL ) THEN + - 35 ELSE NULL END + + 49 * 39 - - ( + 85 ) - + MIN( DISTINCT + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-697
SELECT + 5 * + 87 / - CASE + CAST ( NULL AS INTEGER ) WHEN - - 25 THEN NULL WHEN + CAST ( - - 50 AS REAL ) THEN + - 35 ELSE NULL END + + 49 * 39 - - ( + 85 ) - + MIN ( DISTINCT + 21 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-698
SELECT + 17 DIV SUM( + 48 ) + 80
----
80

skipif mysql # not compatible
query I rowsort label-698
SELECT + 17 / SUM ( + 48 ) + 80
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-699
SELECT - CAST( NULL AS SIGNED ) / + - 31 * - + COUNT( * ) + - 67 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-699
SELECT - CAST ( NULL AS INTEGER ) / + - 31 * - + COUNT ( * ) + - 67 + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT - - 34 + 61 + + - 70
----
25

query I rowsort
SELECT ALL 71 * + 88 AS col1
----
6248

onlyif mysql # aggregate syntax: 
query II rowsort label-703
SELECT + 42 * - 48 + + - COALESCE ( + - COUNT( * ), - COUNT( * ) ) + - 17 col2, ( 36 ) col2
----
-2032
36

skipif mysql # not compatible
query II rowsort label-703
SELECT + 42 * - 48 + + - COALESCE ( + - COUNT ( * ), - COUNT ( * ) ) + - 17 col2, ( 36 ) col2
----
-2032
36

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL - COUNT( * ) * 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - COUNT ( * ) * 43 AS col1
----
-43

query I rowsort
SELECT - 1 * - 90 + + COALESCE ( 44, - 88, 11 ) + + 77
----
211

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

skipif mysql # not compatible
query I rowsort label-706
SELECT NULLIF ( - 32, + CAST ( - - CAST ( - - 32 AS INTEGER ) AS INTEGER ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + MAX( + 34 ) + - 16 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-707
SELECT + MAX ( + 34 ) + - 16 AS col1
----
18

query I rowsort
SELECT - 19 * - 47 + - - 1
----
894

query I rowsort
SELECT + 92 * + + 30 * + 82
----
226320

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL 81 * - + MIN( ( 2 ) ) + 89
----
-73

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL 81 * - + MIN ( ( 2 ) ) + 89
----
-73

query I rowsort
SELECT CASE + + 48 WHEN + 77 * 86 + - 82 + + 64 THEN + - 88 WHEN + 13 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-712
SELECT - NULLIF ( - 76, NULLIF ( - CAST( NULL AS SIGNED ), 5 ) + ( 50 ) + + - 91 / + - 6 ) AS col0, 18 - + 26 - + - 6 - + CASE + 49 WHEN - CASE 74 WHEN 13 THEN - - 6 END THEN NULL ELSE + COUNT( * ) END * 27
----
76
-29

skipif mysql # not compatible
query II rowsort label-712
SELECT - NULLIF ( - 76, NULLIF ( - CAST ( NULL AS INTEGER ), 5 ) + ( 50 ) + + - 91 / + - 6 ) AS col0, 18 - + 26 - + - 6 - + CASE + 49 WHEN - CASE 74 WHEN 13 THEN - - 6 END THEN NULL ELSE + COUNT ( * ) END * 27
----
76
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-713
SELECT + 56 DIV + - ( + 90 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-713
SELECT + 56 / + - ( + 90 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT MAX( ALL - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-714
SELECT MAX ( ALL - 95 ) AS col2
----
-95

query I rowsort
SELECT ALL 44 - 98 + ( - 62 )
----
-116

query I rowsort
SELECT + - ( + - 33 ) + - 3
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-717
SELECT ALL + 95 DIV - 43
----
-2

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL + 95 / - 43
----
-2

query II rowsort
SELECT + 9 * + + 72, - 59 AS col2
----
648
-59

query I rowsort
SELECT 54 + + ( 87 )
----
141

query II rowsort
SELECT - 45 + + 48, 93 AS col1
----
3
93

query II rowsort
SELECT - 58 * - 31 + 56 * - 68 col1, 47 AS col2
----
-2010
47

query I rowsort
SELECT DISTINCT + - 69 * + 6
----
-414

query I rowsort
SELECT 88 * - 36
----
-3168

query I rowsort
SELECT ALL + NULLIF ( - + ( + - ( + 42 ) ), 43 ) + - 77 AS col2
----
-35

query I rowsort
SELECT 4 - - 40 col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT DISTINCT - SUM( DISTINCT - 9 ) col1
----
9

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - SUM ( DISTINCT - 9 ) col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT ALL - CASE COUNT( * ) WHEN - 46 THEN 45 * - + 13 + - + ( - 46 ) WHEN + 18 THEN - 5 + - - COUNT( * ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - CASE COUNT ( * ) WHEN - 46 THEN 45 * - + 13 + - + ( - 46 ) WHEN + 18 THEN - 5 + - - COUNT ( * ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-728
SELECT DISTINCT - COALESCE ( - CAST( NULL AS SIGNED ), 15 DIV - + 23 + + 92 ) DIV 8
----
-11

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT - COALESCE ( - CAST ( NULL AS INTEGER ), 15 / - + 23 + + 92 ) / 8
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT DISTINCT 46 + + - 33 + + - 29 - - COUNT( * ) + - + 98 + 51 col1
----
-62

skipif mysql # not compatible
query I rowsort label-729
SELECT DISTINCT 46 + + - 33 + + - 29 - - COUNT ( * ) + - + 98 + 51 col1
----
-62

query I rowsort
SELECT 39 * + 75
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL - 92 * NULLIF ( - 18, - 99 / + 50 + COUNT( * ) / 2 )
----
1656

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - 92 * NULLIF ( - 18, - 99 / + 50 + COUNT ( * ) / 2 )
----
1656

query I rowsort
SELECT 13 + + 91 + - - 77
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT COUNT( * ) - + 52 * + 29 * + + 10 col1
----
-15079

skipif mysql # not compatible
query I rowsort label-733
SELECT COUNT ( * ) - + 52 * + 29 * + + 10 col1
----
-15079

query II rowsort
SELECT 21 AS col2, - 34 col2
----
21
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-735
SELECT 38 * CAST( - 12 AS SIGNED ) + 2
----
-454

skipif mysql # not compatible
query I rowsort label-735
SELECT 38 * CAST ( - 12 AS INTEGER ) + 2
----
-454

query II rowsort
SELECT 64, 65 + + + 92 AS col2
----
64
157

query II rowsort
SELECT - 74 AS col1, 76 * + - 38 AS col0
----
-74
-2888

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT COUNT( * ) * + NULLIF ( COUNT( * ), 40 * 7 ) * - ( + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-738
SELECT COUNT ( * ) * + NULLIF ( COUNT ( * ), 40 * 7 ) * - ( + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT DISTINCT + ( 51 ) - MAX( ALL + - 53 ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT + ( 51 ) - MAX ( ALL + - 53 ) AS col0
----
104

query I rowsort
SELECT ALL + 4 - - 71
----
75

query I rowsort
SELECT 0 * + - 82 col1
----
0

query I rowsort
SELECT DISTINCT + 66 * - + 5 col1
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT 92 DIV - 66
----
-1

skipif mysql # not compatible
query I rowsort label-743
SELECT 92 / - 66
----
-1

query I rowsort
SELECT 79 * 25
----
1975

query I rowsort
SELECT + 15 * 40
----
600

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

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - COUNT ( DISTINCT - 79 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-747
SELECT + 42 DIV + 67 col0
----
0

skipif mysql # not compatible
query I rowsort label-747
SELECT + 42 / + 67 col0
----
0

query I rowsort
SELECT ALL + 72 + + - 19 AS col2
----
53

query I rowsort
SELECT - 82 - 96 + + 79 AS col1
----
-99

query III rowsort
SELECT - 39, - 14 + - 62 AS col2, + 42 AS col2
----
-39
-76
42

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + COUNT( * ) + - - 38 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-751
SELECT + COUNT ( * ) + - - 38 AS col2
----
39

query I rowsort
SELECT ALL - ( - 95 ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-753
SELECT DISTINCT + COALESCE ( + - COUNT( ALL - CAST( NULL AS SIGNED ) ), 62 )
----
0

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT + COALESCE ( + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), 62 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL - COUNT( * ) + + - 2 + - ( - - 32 ) + + - 25 - 49 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL - COUNT ( * ) + + - 2 + - ( - - 32 ) + + - 25 - 49 AS col1
----
-109

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT DISTINCT - 89 + - COUNT( * ) + 32, 75 AS col1
----
-58
75

skipif mysql # not compatible
query II rowsort label-756
SELECT DISTINCT - 89 + - COUNT ( * ) + 32, 75 AS col1
----
-58
75

query II rowsort
SELECT 24 AS col2, - 90 + - 48 - - 25 AS col1
----
24
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT CASE + - CASE - 8 WHEN + SUM( 56 ) * - - CASE - 1 WHEN 15 + + 49 * + 50 - + 80 * COUNT( * ) THEN - + 0 * - 56 + + 2 * + 49 END + + 51 + - + CAST( NULL AS SIGNED ) + COUNT( * ) THEN 8 ELSE NULL END WHEN + COALESCE ( + 60, - MAX( 21 ), + COUNT( * ) * 74 ) THEN 95 * - 96 END * COALESCE ( CAST( NULL AS SIGNED ) / + 14, + 25 ) + + ( 37 + - 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT CASE + - CASE - 8 WHEN + SUM ( 56 ) * - - CASE - 1 WHEN 15 + + 49 * + 50 - + 80 * COUNT ( * ) THEN - + 0 * - 56 + + 2 * + 49 END + + 51 + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN 8 ELSE NULL END WHEN + COALESCE ( + 60, - MAX ( 21 ), + COUNT ( * ) * 74 ) THEN 95 * - 96 END * COALESCE ( CAST ( NULL AS INTEGER ) / + 14, + 25 ) + + ( 37 + - 37 ) AS col2
----
NULL

query I rowsort
SELECT 17 - + 59
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-760
SELECT 33 * + - NULLIF ( - + 54, - + 89 ) * - CAST( - - 14 AS SIGNED ), + 91 AS col0
----
-24948
91

skipif mysql # not compatible
query II rowsort label-760
SELECT 33 * + - NULLIF ( - + 54, - + 89 ) * - CAST ( - - 14 AS INTEGER ), + 91 AS col0
----
-24948
91

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT - ( + 97 ) * - + CASE - 52 WHEN - 60 + COUNT( * ) THEN + 45 ELSE NULL END + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-761
SELECT - ( + 97 ) * - + CASE - 52 WHEN - 60 + COUNT ( * ) THEN + 45 ELSE NULL END + 16
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT + ( - COALESCE ( - 9, + - 85 * - 5 DIV + 67 ) ) * + 44
----
396

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + ( - COALESCE ( - 9, + - 85 * - 5 / + 67 ) ) * + 44
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL - ( COALESCE ( + + COUNT( * ), + 81 ) ) * - - CASE - 75 WHEN - 32 + + + 24 * - COUNT( DISTINCT - 84 ) THEN NULL ELSE + + 87 + 51 END + - SUM( DISTINCT - - 36 ) AS col1
----
-174

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - ( COALESCE ( + + COUNT ( * ), + 81 ) ) * - - CASE - 75 WHEN - 32 + + + 24 * - COUNT ( DISTINCT - 84 ) THEN NULL ELSE + + 87 + 51 END + - SUM ( DISTINCT - - 36 ) AS col1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT DISTINCT 40 * - MAX( - 5 )
----
200

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT 40 * - MAX ( - 5 )
----
200

query I rowsort
SELECT ALL + 33 - + 80 col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-766
SELECT COUNT( * ) AS col2, - 26 DIV - ( - + 80 ) col2
----
1
0

skipif mysql # not compatible
query II rowsort label-766
SELECT COUNT ( * ) AS col2, - 26 / - ( - + 80 ) col2
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT 13 DIV + + 49
----
0

skipif mysql # not compatible
query I rowsort label-767
SELECT 13 / + + 49
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-768
SELECT COUNT( * ) * - 15 * + 74 + 33 col2, 86 * + CASE + COUNT( * ) WHEN - - 89 THEN - + 8 + + COUNT( * ) END + - COUNT( ALL 7 ) AS col0
----
-1077
NULL

skipif mysql # not compatible
query II rowsort label-768
SELECT COUNT ( * ) * - 15 * + 74 + 33 col2, 86 * + CASE + COUNT ( * ) WHEN - - 89 THEN - + 8 + + COUNT ( * ) END + - COUNT ( ALL 7 ) AS col0
----
-1077
NULL

query I rowsort
SELECT ALL + ( + + 16 ) - - + 47 + + + 62 col0
----
125

query II rowsort
SELECT DISTINCT - 97, ( - - 89 ) AS col2
----
-97
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-771
SELECT 67 + - 64 + 36 + + 6 * + + SUM( ALL - 36 ) + + COALESCE ( - 87, + + 46 DIV 21 * - CAST( NULL AS SIGNED ) DIV + - 63 ) - + + 50 DIV + COUNT( * ) + + 33
----
-281

skipif mysql # not compatible
query I rowsort label-771
SELECT 67 + - 64 + 36 + + 6 * + + SUM ( ALL - 36 ) + + COALESCE ( - 87, + + 46 / 21 * - CAST ( NULL AS INTEGER ) / + - 63 ) - + + 50 / + COUNT ( * ) + + 33
----
-281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-772
SELECT 38 DIV - + COUNT( - CAST( + 20 AS SIGNED ) ) AS col1, + 19
----
-38
19

skipif mysql # not compatible
query II rowsort label-772
SELECT 38 / - + COUNT ( - CAST ( + 20 AS INTEGER ) ) AS col1, + 19
----
-38
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-773
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, - 89 * COALESCE ( ( - ( + - COALESCE ( NULLIF ( + 5, 48 * + 46 * + ( - - 99 ) ), - 3 + + 34 ) ) ), 64 * COUNT( * ) * COUNT( * ) + + MAX( 63 ) + + - 64, + + 17 ) * 91 AS col1
----
NULL
-40495

skipif mysql # not compatible
query II rowsort label-773
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, - 89 * COALESCE ( ( - ( + - COALESCE ( NULLIF ( + 5, 48 * + 46 * + ( - - 99 ) ), - 3 + + 34 ) ) ), 64 * COUNT ( * ) * COUNT ( * ) + + MAX ( 63 ) + + - 64, + + 17 ) * 91 AS col1
----
NULL
-40495

query I rowsort
SELECT DISTINCT - 61 * + 83
----
-5063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-775
SELECT ALL - + COALESCE ( - 13, - - NULLIF ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + - 64 / + - 69 + + 20 ) ) * MIN( - + 58 ) * - + CASE + - 27 WHEN 11 THEN NULL WHEN - COUNT( * ) THEN - CASE + + MIN( ALL 93 ) WHEN + COUNT( * ) THEN - 73 * - + 26 WHEN + + MIN( 96 ) THEN 90 * ( ( + 47 ) ) END ELSE NULL END + - 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL - + COALESCE ( - 13, - - NULLIF ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + - 64 / + - 69 + + 20 ) ) * MIN ( - + 58 ) * - + CASE + - 27 WHEN 11 THEN NULL WHEN - COUNT ( * ) THEN - CASE + + MIN ( ALL 93 ) WHEN + COUNT ( * ) THEN - 73 * - + 26 WHEN + + MIN ( 96 ) THEN 90 * ( ( + 47 ) ) END ELSE NULL END + - 14 col2
----
NULL

query I rowsort
SELECT DISTINCT + + 69 * + 84 * - 12 * + + 28 * + 78
----
-151901568

onlyif mysql # DIV for integer division: 
query II rowsort label-777
SELECT - 27 AS col1, - 96 DIV - - 66 - - + 49 AS col2
----
-27
48

skipif mysql # not compatible
query II rowsort label-777
SELECT - 27 AS col1, - 96 / - - 66 - - + 49 AS col2
----
-27
48

query I rowsort
SELECT ALL + + ( - - 70 ) * 19
----
1330

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-779
SELECT - + AVG ( 53 ) * + CAST( NULL AS DECIMAL ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT - + AVG ( 53 ) * + CAST ( NULL AS REAL ) * + 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-780
SELECT - ( CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-780
SELECT - ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT ALL 96 + - 86 AS col1
----
10

query I rowsort
SELECT ALL + 43 + 14
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT - + ( ( - + 76 ) ) - 69 DIV + 47
----
75

skipif mysql # not compatible
query I rowsort label-783
SELECT - + ( ( - + 76 ) ) - 69 / + 47
----
75

query I rowsort
SELECT - 80 + - 54
----
-134

query II rowsort
SELECT + 12, - 81 AS col0
----
12
-81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT ALL + - 15 + 2 DIV - 25 col1
----
-15

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + - 15 + 2 / - 25 col1
----
-15

query I rowsort
SELECT - - CASE - - ( + 21 ) WHEN + - AVG ( DISTINCT - 52 ) THEN NULL ELSE + - 78 * + 14 * 43 END * - - 70
----
-3286920

query I rowsort
SELECT + - 55 + - - 57 - - + 42
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 69 * + 84
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT - - COALESCE ( NULLIF ( - - 86, - - 66 ), - COALESCE ( 69, ( + 45 ), - 73 * + 34 + + + 90 + + 59 + + 1 DIV + - ( - 95 ) * + 59 + - 21 * - 68 DIV AVG ( NULLIF ( - 55, - 91 ) ) + 75 ) )
----
86

skipif mysql # not compatible
query I rowsort label-791
SELECT - - COALESCE ( NULLIF ( - - 86, - - 66 ), - COALESCE ( 69, ( + 45 ), - 73 * + 34 + + + 90 + + 59 + + 1 / + - ( - 95 ) * + 59 + - 21 * - 68 / AVG ( NULLIF ( - 55, - 91 ) ) + 75 ) )
----
86

query I rowsort
SELECT + + 80 + - - 13 + 24 AS col2
----
117

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-794
SELECT + - 5 + - 33, 40 - - 75 + - CAST( NULL AS SIGNED ) AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-794
SELECT + - 5 + - 33, 40 - - 75 + - CAST ( NULL AS INTEGER ) AS col2
----
-38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT DISTINCT COUNT( ALL - 32 ) + + 81 + + + 18
----
100

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT COUNT ( ALL - 32 ) + + 81 + + + 18
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL - 9 * + 25 * + - SUM( DISTINCT - 0 ) * + + 93
----
0

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL - 9 * + 25 * + - SUM ( DISTINCT - 0 ) * + + 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT + NULLIF ( + 7, 50 + + COUNT( * ) ) col1
----
7

skipif mysql # not compatible
query I rowsort label-797
SELECT + NULLIF ( + 7, 50 + + COUNT ( * ) ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ( - CASE + 62 WHEN + - ( 8 ) * MAX( 99 ) + - - 99 + 34 THEN - SUM( DISTINCT + - 75 ) END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT ( - CASE + 62 WHEN + - ( 8 ) * MAX ( 99 ) + - - 99 + 34 THEN - SUM ( DISTINCT + - 75 ) END ) col0
----
NULL

query I rowsort
SELECT + 70 * + CASE + + 4 WHEN 47 * - 35 THEN - 84 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-800
SELECT - SUM( DISTINCT - CAST( 13 AS SIGNED ) ) * + - 39 - + + 19 AS col0
----
-526

skipif mysql # not compatible
query I rowsort label-800
SELECT - SUM ( DISTINCT - CAST ( 13 AS INTEGER ) ) * + - 39 - + + 19 AS col0
----
-526

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT + 87 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-801
SELECT + 87 / - 95 AS col0
----
0

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

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

query II rowsort
SELECT + ( 37 ) AS col0, + 74 AS col1
----
37
74

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT + 51 - - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-804
SELECT + 51 - - COUNT ( * ) AS col0
----
52

query I rowsort
SELECT + 10 * + 39 AS col1
----
390

query I rowsort
SELECT ALL 21 * - - 38 AS col2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT + 27 - + MAX( + 51 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-807
SELECT + 27 - + MAX ( + 51 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT + ( - 27 ) col2, COUNT( * ) * - - MIN( DISTINCT - 9 )
----
-27
-9

skipif mysql # not compatible
query II rowsort label-808
SELECT + ( - 27 ) col2, COUNT ( * ) * - - MIN ( DISTINCT - 9 )
----
-27
-9

query I rowsort
SELECT ALL + NULLIF ( + 26, COALESCE ( + 73, 2 ) + + 69 )
----
26

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

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

query II rowsort
SELECT ALL 85 * + - 68 AS col2, 1 - + + 27
----
-5780
-26

query I rowsort
SELECT - ( - 82 ) - 49 + - COALESCE ( + + 98, - ( + ( 95 ) ) ) AS col2
----
-65

query I rowsort
SELECT - 96 * + 43 - - 73 + 83 AS col1
----
-3972

onlyif mysql # DIV for integer division: 
query II rowsort label-814
SELECT - 97 DIV + 46 AS col2, 26 DIV - 79 col2
----
-2
0

skipif mysql # not compatible
query II rowsort label-814
SELECT - 97 / + 46 AS col2, 26 / - 79 col2
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT DISTINCT 54 * - 85 * + 62 * ( - 36 ) + ( COUNT( - - 50 ) ) AS col0
----
10244881

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT 54 * - 85 * + 62 * ( - 36 ) + ( COUNT ( - - 50 ) ) AS col0
----
10244881

onlyif mysql # aggregate syntax: 
query II rowsort label-816
SELECT - 55 + - 42 * 68 + - CASE 89 WHEN - 80 THEN - 95 END, 94 + - + COUNT( DISTINCT 65 ) AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-816
SELECT - 55 + - 42 * 68 + - CASE 89 WHEN - 80 THEN - 95 END, 94 + - + COUNT ( DISTINCT 65 ) AS col1
----
NULL
93

query I rowsort
SELECT - 68 + + 16
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL + NULLIF ( + 31, + 64 ) + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + NULLIF ( + 31, + 64 ) + - COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-819
SELECT - - COUNT( - - 98 ) AS col1, 90 col1
----
1
90

skipif mysql # not compatible
query II rowsort label-819
SELECT - - COUNT ( - - 98 ) AS col1, 90 col1
----
1
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-820
SELECT - + 89 + - CASE 19 WHEN + - 37 DIV COUNT( * ) + + - 92 + + NULLIF ( - COUNT( * ), - 75 ) * - 36 + + - 55 + - + 92 + - - 90 DIV + 90 - + 73 + - 25 + - 82 THEN NULL WHEN ( 13 ) + + 26 THEN - 27 * + - 61 DIV - SUM( 57 ) + - CAST( NULL AS SIGNED ) ELSE NULLIF ( - 87, 97 ) END * 90 col1
----
7741

skipif mysql # not compatible
query I rowsort label-820
SELECT - + 89 + - CASE 19 WHEN + - 37 / COUNT ( * ) + + - 92 + + NULLIF ( - COUNT ( * ), - 75 ) * - 36 + + - 55 + - + 92 + - - 90 / + 90 - + 73 + - 25 + - 82 THEN NULL WHEN ( 13 ) + + 26 THEN - 27 * + - 61 / - SUM ( 57 ) + - CAST ( NULL AS INTEGER ) ELSE NULLIF ( - 87, 97 ) END * 90 col1
----
7741

query I rowsort
SELECT - - ( 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT CASE + COUNT( * ) WHEN + 92 THEN COALESCE ( + + ( - - 36 ), 40, + 96 / - 38 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT CASE + COUNT ( * ) WHEN + 92 THEN COALESCE ( + + ( - - 36 ), 40, + 96 / - 38 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 74, + 82 ) * - ( 11 ) AS col0
----
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT - 13 * - CASE CAST( NULL AS SIGNED ) WHEN - COUNT( ALL - 73 ) THEN - - 9 * - 90 + - - 24 END * - - CAST( NULL AS SIGNED ) - + + 67 * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT - 13 * - CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( ALL - 73 ) THEN - - 9 * - 90 + - - 24 END * - - CAST ( NULL AS INTEGER ) - + + 67 * - 55
----
NULL

query I rowsort
SELECT - + 51 + 19 AS col0
----
-32

query I rowsort
SELECT ALL + - 87 + + + 5 AS col1
----
-82

query I rowsort
SELECT ALL - 60 * - 74 - + 99 AS col0
----
4341

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT - + 49 + + MAX( - - 64 ) * ( - 3 ) AS col0
----
-241

skipif mysql # not compatible
query I rowsort label-828
SELECT - + 49 + + MAX ( - - 64 ) * ( - 3 ) AS col0
----
-241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-829
SELECT - - CAST( 24 AS SIGNED ) + - 16, - COUNT( * ) + + COUNT( 69 ) * 48 AS col2
----
8
47

skipif mysql # not compatible
query II rowsort label-829
SELECT - - CAST ( 24 AS INTEGER ) + - 16, - COUNT ( * ) + + COUNT ( 69 ) * 48 AS col2
----
8
47

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT + MIN( DISTINCT - 87 ) - - - 80 * - 21
----
1593

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + MIN ( DISTINCT - 87 ) - - - 80 * - 21
----
1593

query I rowsort
SELECT - 81 + 82 + - 0 AS col0
----
1

query I rowsort
SELECT DISTINCT 87 * + - 48 AS col0
----
-4176

query II rowsort
SELECT 70 * 25 * 82 + - 55 AS col1, + CASE + 88 WHEN 60 THEN NULL ELSE + 49 END AS col0
----
143445
49

query I rowsort
SELECT - 10 * - 18 AS col0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT ALL + 79 * CAST( + - ( - 19 ) AS SIGNED ) * 3 AS col1
----
4503

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + 79 * CAST ( + - ( - 19 ) AS INTEGER ) * 3 AS col1
----
4503

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT - 52 DIV 58 + - 16 DIV - - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-836
SELECT - 52 / 58 + - 16 / - - 98 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-837
SELECT 77 * - 14 * - ( + - 53 ) AS col1, - ( - COUNT( * ) ) + 0 DIV - 9 AS col0
----
-57134
1

skipif mysql # not compatible
query II rowsort label-837
SELECT 77 * - 14 * - ( + - 53 ) AS col1, - ( - COUNT ( * ) ) + 0 / - 9 AS col0
----
-57134
1

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ( COUNT( * ) ) * - NULLIF ( COUNT( * ), + + 40 ) + - + COALESCE ( + 79, 44 )
----
-80

skipif mysql # not compatible
query I rowsort label-838
SELECT ( COUNT ( * ) ) * - NULLIF ( COUNT ( * ), + + 40 ) + - + COALESCE ( + 79, 44 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT CASE + 69 WHEN - 36 + - 51 + - ( + 43 ) / + 94 THEN COUNT( * ) WHEN + 32 + + 89 * - 25 * - - 79 THEN NULL ELSE - 57 END / - + CASE - CAST( NULL AS SIGNED ) WHEN + - 76 THEN - 90 * - CAST( NULL AS SIGNED ) * 32 * - 21 * + - 94 + + - 6 + - 3 END * - COALESCE ( 8 * - 69 + 67, + 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT CASE + 69 WHEN - 36 + - 51 + - ( + 43 ) / + 94 THEN COUNT ( * ) WHEN + 32 + + 89 * - 25 * - - 79 THEN NULL ELSE - 57 END / - + CASE - CAST ( NULL AS INTEGER ) WHEN + - 76 THEN - 90 * - CAST ( NULL AS INTEGER ) * 32 * - 21 * + - 94 + + - 6 + - 3 END * - COALESCE ( 8 * - 69 + 67, + 52 )
----
NULL

query I rowsort
SELECT DISTINCT + 34 + - - 11 AS col2
----
45

query I rowsort
SELECT ALL 56 + 71 * + - 68
----
-4772

query I rowsort
SELECT ALL 0 + 59 AS col1
----
59

query II rowsort
SELECT + 73, 34 + 77 - ( - 9 ) AS col0
----
73
120

query I rowsort
SELECT DISTINCT 18 + - + 62
----
-44

query I rowsort
SELECT - ( - NULLIF ( - - 45, 91 ) )
----
45

query I rowsort
SELECT ALL + 41 + + 4 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT DISTINCT 40 * - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT 40 * - - COUNT ( * )
----
40

query I rowsort
SELECT + 19 - 67 * ( 0 )
----
19

query I rowsort
SELECT 92 * + 46 * - CASE + 81 WHEN + 43 THEN NULL ELSE - ( 64 ) END AS col2
----
270848

query I rowsort
SELECT DISTINCT CASE - - 78 WHEN - 26 * - 90 + - 84 + - + 66 * + + 45 * - + 22 THEN NULL ELSE + 88 + + + 68 END AS col0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-851
SELECT - 97 AS col2, - CAST( + 65 AS SIGNED ) * + 81 AS col0
----
-97
-5265

skipif mysql # not compatible
query II rowsort label-851
SELECT - 97 AS col2, - CAST ( + 65 AS INTEGER ) * + 81 AS col0
----
-97
-5265

query II rowsort
SELECT - + 69, + 2 AS col2
----
-69
2

query I rowsort
SELECT ALL + - 85 - + - 0 + 4 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT MIN( DISTINCT - 83 ) * + - ( + 8 ) AS col1
----
664

skipif mysql # not compatible
query I rowsort label-854
SELECT MIN ( DISTINCT - 83 ) * + - ( + 8 ) AS col1
----
664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT 2 + - - ( 14 ) + + 56 * CAST( - + COUNT( * ) AS SIGNED ) * + 94 AS col1
----
-5248

skipif mysql # not compatible
query I rowsort label-855
SELECT 2 + - - ( 14 ) + + 56 * CAST ( - + COUNT ( * ) AS INTEGER ) * + 94 AS col1
----
-5248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-856
SELECT 95 * - 35 * + 48 DIV + - COUNT( * ) - 24
----
159576

skipif mysql # not compatible
query I rowsort label-856
SELECT 95 * - 35 * + 48 / + - COUNT ( * ) - 24
----
159576

query I rowsort
SELECT ALL + 37 * + ( + - 78 )
----
-2886

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT + 64 * COUNT( * ) col2
----
64

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT + 64 * COUNT ( * ) col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-859
SELECT MIN( ALL - 93 ) DIV 1
----
-93

skipif mysql # not compatible
query I rowsort label-859
SELECT MIN ( ALL - 93 ) / 1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL + NULLIF ( - 78, + + COUNT( * ) ) * + 56
----
-4368

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL + NULLIF ( - 78, + + COUNT ( * ) ) * + 56
----
-4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT 23 * - + CAST( - + 56 AS SIGNED ) * - - MIN( - 62 )
----
-79856

skipif mysql # not compatible
query I rowsort label-861
SELECT 23 * - + CAST ( - + 56 AS INTEGER ) * - - MIN ( - 62 )
----
-79856

query I rowsort
SELECT 61 - 57
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT 68 + + 55 + SUM( DISTINCT - COALESCE ( - - 7, + 37 + - 98 + + 35 ) )
----
116

skipif mysql # not compatible
query I rowsort label-863
SELECT 68 + + 55 + SUM ( DISTINCT - COALESCE ( - - 7, + 37 + - 98 + + 35 ) )
----
116

query I rowsort
SELECT DISTINCT + ( - 59 ) * 87
----
-5133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-865
SELECT ALL - COALESCE ( 80, - ( CAST( + + 64 AS SIGNED ) ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - COALESCE ( 80, - ( CAST ( + + 64 AS INTEGER ) ) ) AS col1
----
-80

query I rowsort
SELECT 58 * 70 AS col1
----
4060

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-868
SELECT DISTINCT 33 + + - 42 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - - COALESCE ( 33, + - 9 * 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT 33 + + - 42 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COALESCE ( 33, + - 9 * 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL 92 + + MAX( + 54 )
----
146

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL 92 + + MAX ( + 54 )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT MIN( DISTINCT + 31 ) * + + MIN( 23 )
----
713

skipif mysql # not compatible
query I rowsort label-870
SELECT MIN ( DISTINCT + 31 ) * + + MIN ( 23 )
----
713

query I rowsort
SELECT ALL - 84 + 91
----
7

query I rowsort
SELECT DISTINCT + 30 + + 2 AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT 67 DIV 26
----
2

skipif mysql # not compatible
query I rowsort label-873
SELECT 67 / 26
----
2

query I rowsort
SELECT NULLIF ( - 35, + 35 ) * - 36
----
1260

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

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

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

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

query I rowsort
SELECT DISTINCT + 78 + - 90
----
-12

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-879
SELECT ALL + + 21 + - MAX( DISTINCT + - 24 ) DIV - + MAX( DISTINCT 14 ) * - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + + 21 + - MAX ( DISTINCT + - 24 ) / - + MAX ( DISTINCT 14 ) * - COUNT ( * )
----
22

query I rowsort
SELECT ( 19 ) col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-881
SELECT ALL SUM( + + ( - 2 ) ) + + + 0 AS col1, 84
----
-2
84

skipif mysql # not compatible
query II rowsort label-881
SELECT ALL SUM ( + + ( - 2 ) ) + + + 0 AS col1, 84
----
-2
84

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT ALL - MAX( ALL - ( + 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL - MAX ( ALL - ( + 0 ) ) AS col2
----
0

query I rowsort
SELECT 89 * - 8 + + + 53 AS col1
----
-659

query I rowsort
SELECT + - 4 * - 8 + - + 9 - + 92 * + 60 + + 0 * - + 61 + + 44 AS col0
----
-5453

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL - ( + - COUNT( ALL + 90 ) ) - 53
----
-52

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL - ( + - COUNT ( ALL + 90 ) ) - 53
----
-52

query I rowsort
SELECT DISTINCT 74 * + 85 + + 90 AS col0
----
6380

query I rowsort
SELECT ALL 92 * 56 col0
----
5152

query I rowsort
SELECT - 19 * + 42 AS col1
----
-798

query I rowsort
SELECT 9 * + 0 AS col2
----
0

query I rowsort
SELECT ALL 59 * - 30 * + 70
----
-123900

query I rowsort
SELECT 97 + 97
----
194

query I rowsort
SELECT 61 + - 3
----
58

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

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

query I rowsort
SELECT 68 * 45 AS col0
----
3060

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT DISTINCT + 33 DIV 8
----
4

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT + 33 / 8
----
4

query I rowsort
SELECT ALL - 15 * + 94
----
-1410

query I rowsort
SELECT ALL 10 + + - 51 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL + COUNT( * ) + - ( - 9 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL + COUNT ( * ) + - ( - 9 ) AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT + 68 + + - ( - 62 ) + - + COUNT( * ) * - CASE + 61 WHEN + 85 THEN - 35 ELSE - 40 END DIV - + 76 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-899
SELECT + 68 + + - ( - 62 ) + - + COUNT ( * ) * - CASE + 61 WHEN + 85 THEN - 35 ELSE - 40 END / - + 76 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT - 74 - MIN( 13 )
----
-87

skipif mysql # not compatible
query I rowsort label-900
SELECT - 74 - MIN ( 13 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-901
SELECT + COUNT( * ) * ( + COUNT( * ) ), + 82 DIV + 5 + 60 col0
----
1
76

skipif mysql # not compatible
query II rowsort label-901
SELECT + COUNT ( * ) * ( + COUNT ( * ) ), + 82 / + 5 + 60 col0
----
1
76

query I rowsort
SELECT COALESCE ( - 84, - - 31 * 20 * 98 * 38 + 43 )
----
-84

query I rowsort
SELECT ALL 3 * + 0 * - 2
----
0

query I rowsort
SELECT ALL 18 * - 2 + 94
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT ALL + ( - ( 20 ) ) * + + 44 + + 0 + 26 + 80 * - + COUNT( ALL - 51 ) * + + 82
----
-7414

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL + ( - ( 20 ) ) * + + 44 + + 0 + 26 + 80 * - + COUNT ( ALL - 51 ) * + + 82
----
-7414

query I rowsort
SELECT DISTINCT + ( - 2 ) col1
----
-2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-908
SELECT ALL + + COALESCE ( ( - 84 ), - - 38, - 79 * - 90 * COUNT( + 19 ) + 47 + + COUNT( * ) ) * - 36 - - + CAST( - ( 80 ) AS SIGNED ) DIV 39 AS col1
----
3022

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + + COALESCE ( ( - 84 ), - - 38, - 79 * - 90 * COUNT ( + 19 ) + 47 + + COUNT ( * ) ) * - 36 - - + CAST ( - ( 80 ) AS INTEGER ) / 39 AS col1
----
3022

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - - SUM( - NULLIF ( + + 70, + 24 + - 92 / + 78 ) ) * + 98
----
-6860

skipif mysql # not compatible
query I rowsort label-909
SELECT - - SUM ( - NULLIF ( + + 70, + 24 + - 92 / + 78 ) ) * + 98
----
-6860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-910
SELECT ALL - COUNT( * ) * - - 2 - + SUM( 76 ) - COUNT( * ) + 87 * - CAST( + + 75 AS SIGNED ) + + 56
----
-6548

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL - COUNT ( * ) * - - 2 - + SUM ( 76 ) - COUNT ( * ) + 87 * - CAST ( + + 75 AS INTEGER ) + + 56
----
-6548

query I rowsort
SELECT + + 63 + + + 81
----
144

query II rowsort
SELECT DISTINCT - ( + 72 ) * + + 93, + 71 AS col0
----
-6696
71

query I rowsort
SELECT DISTINCT - 39 * + 31 AS col0
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT - 17 * - MIN( DISTINCT - - 62 ) - 37 - + 81 * 31 + + 22 + + 22 + - 40 + - 13 * + ( - 6 )
----
-1412

skipif mysql # not compatible
query I rowsort label-914
SELECT - 17 * - MIN ( DISTINCT - - 62 ) - 37 - + 81 * 31 + + 22 + + 22 + - 40 + - 13 * + ( - 6 )
----
-1412

query I rowsort
SELECT ALL - ( - 67 ) AS col0
----
67

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

query I rowsort
SELECT - 17 - + 78 AS col0
----
-95

query I rowsort
SELECT - - 26 * - 14
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT MAX( ALL - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-919
SELECT MAX ( ALL - 56 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-920
SELECT - 35 DIV + 49 AS col0, 56 + - 72 * + + ( + COUNT( - 63 ) ) * + 7 - - 98
----
0
-350

skipif mysql # not compatible
query II rowsort label-920
SELECT - 35 / + 49 AS col0, 56 + - 72 * + + ( + COUNT ( - 63 ) ) * + 7 - - 98
----
0
-350

query I rowsort
SELECT + 41 + - 33 AS col0
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL 23 + + + 12 + + + CASE - + MIN( ALL - 7 ) WHEN 6 THEN - + COALESCE ( + 12, 74 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL 23 + + + 12 + + + CASE - + MIN ( ALL - 7 ) WHEN 6 THEN - + COALESCE ( + 12, 74 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT + NULLIF ( + 63, - 74 ) + + - 82 DIV + COALESCE ( + 32, - ( + 91 ) ) - + 13 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-924
SELECT + NULLIF ( + 63, - 74 ) + + - 82 / + COALESCE ( + 32, - ( + 91 ) ) - + 13 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-925
SELECT - COALESCE ( + 20, + SUM( - 35 ) * + 78, 30 DIV + - 51 * + 69 * - CASE + 83 WHEN CAST( + - 29 AS SIGNED ) THEN 64 * 35 END + - MAX( ALL + 5 ) DIV - - 87 - - NULLIF ( - - 46, + 4 ) + 67 + - + 39 + + - 34 * - + 25 + + - 79 )
----
-20

skipif mysql # not compatible
query I rowsort label-925
SELECT - COALESCE ( + 20, + SUM ( - 35 ) * + 78, 30 / + - 51 * + 69 * - CASE + 83 WHEN CAST ( + - 29 AS INTEGER ) THEN 64 * 35 END + - MAX ( ALL + 5 ) / - - 87 - - NULLIF ( - - 46, + 4 ) + 67 + - + 39 + + - 34 * - + 25 + + - 79 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT 16 + + MIN( 16 ) * + + 23 * - 59 AS col0
----
-21696

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT 16 + + MIN ( 16 ) * + + 23 * - 59 AS col0
----
-21696

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

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

query I rowsort
SELECT ALL 87 + + - 89
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-929
SELECT - MIN( DISTINCT - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-929
SELECT - MIN ( DISTINCT - 75 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-930
SELECT - ( ( - ( 22 ) ) ) AS col0, + MIN( - - 19 )
----
22
19

skipif mysql # not compatible
query II rowsort label-930
SELECT - ( ( - ( 22 ) ) ) AS col0, + MIN ( - - 19 )
----
22
19

query II rowsort
SELECT + 51 + + ( - + 43 ) * - ( - ( - 10 ) ) + - 39 AS col1, 79
----
442
79

query II rowsort
SELECT 72 AS col0, + 23 + + 87
----
72
110

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT 86 + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT 86 + - COUNT ( * )
----
85

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-935
SELECT ALL - 85 DIV COALESCE ( + - 75, + ( - CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL - 85 / COALESCE ( + - 75, + ( - CAST ( NULL AS INTEGER ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT + 15 DIV - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-936
SELECT + 15 / - 16 AS col1
----
0

query I rowsort
SELECT ALL 21 + + 66 + + 91
----
178

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

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

query I rowsort
SELECT - 45 * 10 - + 93 AS col1
----
-543

query I rowsort
SELECT - + 17 * 36
----
-612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-941
SELECT + + 3 DIV + 26 * + - 90 * + COUNT( * ) + - 28 * - NULLIF ( + 58, - + COALESCE ( - 53, 7, 96 ) DIV - 37 ) AS col1
----
1624

skipif mysql # not compatible
query I rowsort label-941
SELECT + + 3 / + 26 * + - 90 * + COUNT ( * ) + - 28 * - NULLIF ( + 58, - + COALESCE ( - 53, 7, 96 ) / - 37 ) AS col1
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT - - COUNT( * ) * - 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-942
SELECT - - COUNT ( * ) * - 19 AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-943
SELECT + + 73 + - + 48 DIV COUNT( * ) * 20 + - NULLIF ( 21, + MIN( + 63 ) + COUNT( * ) )
----
-908

skipif mysql # not compatible
query I rowsort label-943
SELECT + + 73 + - + 48 / COUNT ( * ) * 20 + - NULLIF ( 21, + MIN ( + 63 ) + COUNT ( * ) )
----
-908

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-945
SELECT + MIN( 86 ) DIV + 58
----
1

skipif mysql # not compatible
query I rowsort label-945
SELECT + MIN ( 86 ) / + 58
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT - 64 * - NULLIF ( - CAST( ( + CAST( NULL AS SIGNED ) ) AS SIGNED ), - 42 ) + - 61 * 68 * + 41 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT - 64 * - NULLIF ( - CAST ( ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ), - 42 ) + - 61 * 68 * + 41 + - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - COUNT( * ) - + 24 * - 71 AS col0
----
1703

skipif mysql # not compatible
query I rowsort label-947
SELECT - COUNT ( * ) - + 24 * - 71 AS col0
----
1703

query I rowsort
SELECT ALL + + COALESCE ( - - 23, + - ( - 63 ) ) col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-949
SELECT DISTINCT + CASE + + CAST( NULL AS SIGNED ) WHEN 84 THEN - 64 / + ( - 64 ) * + + 94 / + + 45 WHEN - NULLIF ( + 9, + 52 ) * + + 26 + + ( 82 ) + 70 + + + 87 * + 20 + - 75 THEN ( + 72 ) WHEN - SUM( ALL + 28 ) THEN NULL END * + - CAST( - 56 AS SIGNED ) + + 17 * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT + CASE + + CAST ( NULL AS INTEGER ) WHEN 84 THEN - 64 / + ( - 64 ) * + + 94 / + + 45 WHEN - NULLIF ( + 9, + 52 ) * + + 26 + + ( 82 ) + 70 + + + 87 * + 20 + - 75 THEN ( + 72 ) WHEN - SUM ( ALL + 28 ) THEN NULL END * + - CAST ( - 56 AS INTEGER ) + + 17 * 79 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 96 * + 48
----
4608

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

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

query II rowsort
SELECT ALL + 60, + 30 AS col2
----
60
30

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT + - 46 + - 51 + - CASE + 47 WHEN AVG ( - 25 ) THEN - - 44 WHEN - - COALESCE ( + 8, 4, + 8 ) * + + 62 * + 20 * + 71 * + 4 * + + 91 THEN - 42 * - COUNT( * ) * - + 14 END * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT + - 46 + - 51 + - CASE + 47 WHEN AVG ( - 25 ) THEN - - 44 WHEN - - COALESCE ( + 8, 4, + 8 ) * + + 62 * + 20 * + 71 * + 4 * + + 91 THEN - 42 * - COUNT ( * ) * - + 14 END * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT MAX( - - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-954
SELECT MAX ( - - 95 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT - 90 * + + 94 + + 41 * MIN( DISTINCT - + 62 ) * - 46, + 8 AS col0
----
108472
8

skipif mysql # not compatible
query II rowsort label-955
SELECT - 90 * + + 94 + + 41 * MIN ( DISTINCT - + 62 ) * - 46, + 8 AS col0
----
108472
8

query I rowsort
SELECT - 10 * + - 6 AS col1
----
60

query I rowsort
SELECT - 80 * - 53 * 11 AS col1
----
46640

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL + - COUNT( DISTINCT - COALESCE ( - 41, - 89 * + + ( 73 ), + - 11 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL + - COUNT ( DISTINCT - COALESCE ( - 41, - 89 * + + ( 73 ), + - 11 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT DISTINCT - + 23 * COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) ) + + + COALESCE ( + 89, - CAST( NULL AS SIGNED ) * 51 * + - 17 + 45 ) + + - 77
----
-11

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT - + 23 * COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + + + COALESCE ( + 89, - CAST ( NULL AS INTEGER ) * 51 * + - 17 + 45 ) + + - 77
----
-11

query I rowsort
SELECT DISTINCT ( - ( + - 11 ) )
----
11

query I rowsort
SELECT 48 * ( 81 ) AS col0
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL - 16 + + 39 + - + MIN( DISTINCT 8 ) * + 89 - 56 - - 94 AS col2
----
-651

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL - 16 + + 39 + - + MIN ( DISTINCT 8 ) * + 89 - 56 - - 94 AS col2
----
-651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT 38 + - + 86 DIV + ( + - COUNT( * ) )
----
124

skipif mysql # not compatible
query I rowsort label-963
SELECT 38 + - + 86 / + ( + - COUNT ( * ) )
----
124

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

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

query II rowsort
SELECT 51 * 43, 95 AS col0
----
2193
95

query I rowsort
SELECT 57 + 0 + - 36
----
21

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

query I rowsort
SELECT DISTINCT + 98 + 77 * - 38 - 98 * 33 + + 17
----
-6045

query I rowsort
SELECT ALL + 80 - + 56
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT 92 + + COUNT( * ) + - CASE - - 42 WHEN - 61 THEN + - 42 ELSE 29 END * + + 89 * - 25
----
64618

skipif mysql # not compatible
query I rowsort label-970
SELECT 92 + + COUNT ( * ) + - CASE - - 42 WHEN - 61 THEN + - 42 ELSE 29 END * + + 89 * - 25
----
64618

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT 11 * SUM( + 72 ) AS col0
----
792

skipif mysql # not compatible
query I rowsort label-972
SELECT 11 * SUM ( + 72 ) AS col0
----
792

query I rowsort
SELECT - 56 + 82
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT 67 + - 62 + - + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-974
SELECT 67 + - 62 + - + COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT - 39 + - SUM( 9 ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-975
SELECT - 39 + - SUM ( 9 ) col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL - COALESCE ( - 20, COUNT( * ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL - COALESCE ( - 20, COUNT ( * ) ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-977
SELECT - 42 * 91 + 75 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-977
SELECT - 42 * 91 + 75 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-978
SELECT - 28 DIV 78 * + 37 * - 69 * + 87 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-978
SELECT - 28 / 78 * + 37 * - 69 * + 87 * - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT DISTINCT 98 DIV COALESCE ( - 21, + - 46 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT 98 / COALESCE ( - 21, + - 46 ) AS col2
----
-4

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

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

query I rowsort
SELECT - 86 * + 17
----
-1462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-982
SELECT - COUNT( + 68 ) DIV + 52 * - 89 + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-982
SELECT - COUNT ( + 68 ) / + 52 * - 89 + - 50
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-983
SELECT - 69 + + 9 + - + 59, + 3 * - SUM( ( - 37 ) ) col0
----
-119
111

skipif mysql # not compatible
query II rowsort label-983
SELECT - 69 + + 9 + - + 59, + 3 * - SUM ( ( - 37 ) ) col0
----
-119
111

query I rowsort
SELECT DISTINCT + ( - 10 ) + - - 4
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-985
SELECT + COALESCE ( 18, - 65 * + - SUM( ALL - 12 ) + CASE ( 53 ) WHEN - 1 THEN NULL ELSE + + CASE - 71 WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE 43 * + + 92 END DIV + - 95 END * - - SUM( - 73 ) ) AS col0, 2 + + ( + CASE - + COUNT( * ) WHEN - - 68 THEN + - CASE 11 WHEN 88 THEN - 87 WHEN + 61 + + 51 THEN NULL ELSE COUNT( * ) + 94 END + - 18 WHEN - 63 THEN - ( - 63 ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END )
----
18
NULL

skipif mysql # not compatible
query II rowsort label-985
SELECT + COALESCE ( 18, - 65 * + - SUM ( ALL - 12 ) + CASE ( 53 ) WHEN - 1 THEN NULL ELSE + + CASE - 71 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE 43 * + + 92 END / + - 95 END * - - SUM ( - 73 ) ) AS col0, 2 + + ( + CASE - + COUNT ( * ) WHEN - - 68 THEN + - CASE 11 WHEN 88 THEN - 87 WHEN + 61 + + 51 THEN NULL ELSE COUNT ( * ) + 94 END + - 18 WHEN - 63 THEN - ( - 63 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END )
----
18
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-986
SELECT ALL 94 * + + NULLIF ( - - 74, - 92 * - NULLIF ( + 5, + + 84 ) * + + 40 / 68 + CAST( + + 91 AS SIGNED ) - + ( - COALESCE ( - - 39, - - AVG ( ALL - 41 ) ) ) + - CAST( + 64 AS SIGNED ) * + 89 )
----
6956

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL 94 * + + NULLIF ( - - 74, - 92 * - NULLIF ( + 5, + + 84 ) * + + 40 / 68 + CAST ( + + 91 AS INTEGER ) - + ( - COALESCE ( - - 39, - - AVG ( ALL - 41 ) ) ) + - CAST ( + 64 AS INTEGER ) * + 89 )
----
6956

query I rowsort
SELECT ALL - COALESCE ( - - 35, + 7 )
----
-35

query I rowsort
SELECT ALL - 29 + + 8
----
-21

query II rowsort
SELECT - 97 AS col0, - 22 AS col2
----
-97
-22

query II rowsort
SELECT 93 + + 88 * + 82 AS col1, + 94
----
7309
94

query I rowsort
SELECT 96 * - 45
----
-4320

query I rowsort
SELECT 2 + + - 56 AS col1
----
-54

query I rowsort
SELECT ALL + 85 * + - 57
----
-4845

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT 73 DIV 38 col1
----
1

skipif mysql # not compatible
query I rowsort label-994
SELECT 73 / 38 col1
----
1

query I rowsort
SELECT DISTINCT + 12 - - 45
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT ALL + 85 * + SUM( ALL - + 39 ), 58 AS col2
----
-3315
58

skipif mysql # not compatible
query II rowsort label-996
SELECT ALL + 85 * + SUM ( ALL - + 39 ), 58 AS col2
----
-3315
58

query II rowsort
SELECT - 22 col0, 26 col0
----
-22
26

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

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

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

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL + COUNT ( * ) - + - COUNT ( * ) + + - 59 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT ALL COUNT( * ) AS col0, 25 + - 27 * - 16 AS col1
----
1
457

skipif mysql # not compatible
query II rowsort label-1000
SELECT ALL COUNT ( * ) AS col0, 25 + - 27 * - 16 AS col1
----
1
457

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1001
SELECT ALL + CASE - COUNT( * ) WHEN - - ( + + 94 ) * - 1 / 69 THEN - + 50 + + CAST( NULL AS DECIMAL ) + 73 / CASE + 51 WHEN - COALESCE ( + - 85, - 60 * NULLIF ( ( + 26 ), - + 46 ) * - COUNT( * ) + - AVG ( DISTINCT - - 95 ) / + 11 * COUNT( * ) ) * - 89 * + 10 + - + SUM( + 29 ) THEN NULL ELSE 25 END + + 31 * 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL + CASE - COUNT ( * ) WHEN - - ( + + 94 ) * - 1 / 69 THEN - + 50 + + CAST ( NULL AS REAL ) + 73 / CASE + 51 WHEN - COALESCE ( + - 85, - 60 * NULLIF ( ( + 26 ), - + 46 ) * - COUNT ( * ) + - AVG ( DISTINCT - - 95 ) / + 11 * COUNT ( * ) ) * - 89 * + 10 + - + SUM ( + 29 ) THEN NULL ELSE 25 END + + 31 * 23 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT ALL 29 * + - 43 * - - 57 AS col2, 44 * 72 * + 5 + + COUNT( * ) AS col0
----
-71079
15841

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL 29 * + - 43 * - - 57 AS col2, 44 * 72 * + 5 + + COUNT ( * ) AS col0
----
-71079
15841

query II rowsort
SELECT DISTINCT - - 69, 57 AS col1
----
69
57

query I rowsort
SELECT + 17 * 58
----
986

query I rowsort
SELECT ALL + - 35 * 99 + - + 83 * - + 46 AS col2
----
353

query I rowsort
SELECT ( - 50 ) AS col2
----
-50

query I rowsort
SELECT ALL 96 * + 2 col2
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1008
SELECT + 11 / - NULLIF ( - COUNT( * ), 81 + + 10 ) + CAST( NULL AS SIGNED ) + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 11 / - NULLIF ( - COUNT ( * ), 81 + + 10 ) + CAST ( NULL AS INTEGER ) + 89
----
NULL

query II rowsort
SELECT + + 17 AS col2, 15
----
17
15

query I rowsort
SELECT - 83 + - 66 AS col0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT SUM( DISTINCT - 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1011
SELECT SUM ( DISTINCT - 79 ) AS col1
----
-79

query I rowsort
SELECT + - 63 - + - 39
----
-24

query II rowsort
SELECT ALL + 7 * + - 21 + + 68, - 53 AS col0
----
-79
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT + COALESCE ( + 53, COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-1014
SELECT + COALESCE ( + 53, COUNT ( * ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT + SUM( NULLIF ( - + 48, - 29 ) ) + 58 * + 65 AS col0
----
3722

skipif mysql # not compatible
query I rowsort label-1015
SELECT + SUM ( NULLIF ( - + 48, - 29 ) ) + 58 * + 65 AS col0
----
3722

query I rowsort
SELECT ALL 64 * - 70 AS col1
----
-4480

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT COUNT ( - 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - COUNT( * ) - - 73 + - 41 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1018
SELECT - COUNT ( * ) - - 73 + - 41 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT DISTINCT 99 * - + COUNT( * ) * + - 77
----
7623

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT 99 * - + COUNT ( * ) * + - 77
----
7623

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT DISTINCT 57 * 62 * COUNT( * )
----
3534

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT 57 * 62 * COUNT ( * )
----
3534

query I rowsort
SELECT - 28 * + 59 * 73 AS col0
----
-120596

query I rowsort
SELECT ALL + NULLIF ( - + 55, + + 20 )
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT 39 * MAX( ALL + 34 ) AS col2
----
1326

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT 39 * MAX ( ALL + 34 ) AS col2
----
1326

query I rowsort
SELECT ALL 56 - - 17
----
73

query I rowsort
SELECT - 68 * 17 AS col2
----
-1156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1027
SELECT - COALESCE ( + ( + CAST( NULL AS SIGNED ) ), - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1027
SELECT - COALESCE ( + ( + CAST ( NULL AS INTEGER ) ), - 45 ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT - 21 + + 54 * 93 * - 56 * CAST( - 64 AS SIGNED ) AS col0
----
17998827

skipif mysql # not compatible
query I rowsort label-1028
SELECT - 21 + + 54 * 93 * - 56 * CAST ( - 64 AS INTEGER ) AS col0
----
17998827

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

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

query I rowsort
SELECT + ( 42 ) + - NULLIF ( - 21, 28 ) + - + ( - 6 ) - + 96
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1031
SELECT ALL + 54 * + 24, 61 + + 75 - COUNT( DISTINCT 60 ) * 71 - + 97 AS col0
----
1296
-32

skipif mysql # not compatible
query II rowsort label-1031
SELECT ALL + 54 * + 24, 61 + + 75 - COUNT ( DISTINCT 60 ) * 71 - + 97 AS col0
----
1296
-32

query I rowsort
SELECT - 61 + + 18 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1033
SELECT ALL - 5 DIV + - 73 - + 94 + 37 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - 5 / + - 73 - + 94 + 37 AS col1
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1034
SELECT DISTINCT + - 34 * - 71 AS col2, - CAST( NULL AS DECIMAL )
----
2414
NULL

skipif mysql # not compatible
query II rowsort label-1034
SELECT DISTINCT + - 34 * - 71 AS col2, - CAST ( NULL AS REAL )
----
2414
NULL

query I rowsort
SELECT - + 34 + + 90 AS col0
----
56

query I rowsort
SELECT - - 28 + - 47 AS col0
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-1037
SELECT - + 84 DIV - + NULLIF ( - 70, + 52 ) AS col0, 94
----
-1
94

skipif mysql # not compatible
query II rowsort label-1037
SELECT - + 84 / - + NULLIF ( - 70, + 52 ) AS col0, 94
----
-1
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1038
SELECT - + ( - + 93 ) DIV + COUNT( * ) + + 99 col2
----
192

skipif mysql # not compatible
query I rowsort label-1038
SELECT - + ( - + 93 ) / + COUNT ( * ) + + 99 col2
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT ALL - 29 DIV 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL - 29 / 44 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1040
SELECT DISTINCT - + MAX( - 50 ) / - 69 * - - 75 + - CASE - + SUM( ALL 71 ) WHEN + + 12 THEN + 75 + - - 55 WHEN + - CAST( + COALESCE ( - ( + NULLIF ( + + 26, + 80 ) ), + MAX( 75 ), - + 98, - 63 * - 81 + SUM( 47 ) ) AS SIGNED ) * MIN( DISTINCT + 87 ) * + - 28 + + - 16 THEN NULL END + 32 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT - + MAX ( - 50 ) / - 69 * - - 75 + - CASE - + SUM ( ALL 71 ) WHEN + + 12 THEN + 75 + - - 55 WHEN + - CAST ( + COALESCE ( - ( + NULLIF ( + + 26, + 80 ) ), + MAX ( 75 ), - + 98, - 63 * - 81 + SUM ( 47 ) ) AS INTEGER ) * MIN ( DISTINCT + 87 ) * + - 28 + + - 16 THEN NULL END + 32 * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 48 * 13
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT + - COUNT( * ) * 40 + - + 51 + + 93 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1042
SELECT + - COUNT ( * ) * 40 + - + 51 + + 93 AS col0
----
2

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

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

skipif mysql # not compatible
query I rowsort label-1044
SELECT + COUNT ( * ) + - 90 * - 94 AS col1
----
8461

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL 86 * + COUNT( * ) * + 49 - + 13 * - 5
----
4279

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL 86 * + COUNT ( * ) * + 49 - + 13 * - 5
----
4279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1046
SELECT + CAST( - 85 AS SIGNED ) * + 89
----
-7565

skipif mysql # not compatible
query I rowsort label-1046
SELECT + CAST ( - 85 AS INTEGER ) * + 89
----
-7565

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL + 94 * - CASE 8 WHEN + 37 * - SUM( 8 ) * + SUM( ALL - 64 ) THEN NULL WHEN - COALESCE ( + ( - 57 ), - 54 ) THEN - - 58 + - 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + 94 * - CASE 8 WHEN + 37 * - SUM ( 8 ) * + SUM ( ALL - 64 ) THEN NULL WHEN - COALESCE ( + ( - 57 ), - 54 ) THEN - - 58 + - 86 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT CASE MIN( DISTINCT - + 24 ) WHEN 46 / - NULLIF ( - COUNT( * ), + AVG ( DISTINCT + 74 ) * - 37 ) THEN + 63 * CASE - COUNT( * ) WHEN + COALESCE ( + + 71, - NULLIF ( + - COUNT( * ), + 40 ) + 45 * - 64 + + 47 - + 8, + 9 ) - 37 THEN + ( + 61 ) / MIN( - NULLIF ( + 62, 67 ) ) END * + + ( - 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT CASE MIN ( DISTINCT - + 24 ) WHEN 46 / - NULLIF ( - COUNT ( * ), + AVG ( DISTINCT + 74 ) * - 37 ) THEN + 63 * CASE - COUNT ( * ) WHEN + COALESCE ( + + 71, - NULLIF ( + - COUNT ( * ), + 40 ) + 45 * - 64 + + 47 - + 8, + 9 ) - 37 THEN + ( + 61 ) / MIN ( - NULLIF ( + 62, 67 ) ) END * + + ( - 20 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1049
SELECT + CASE - 98 WHEN - NULLIF ( + 0, - + CASE - 76 WHEN 69 THEN - + COUNT( * ) - - COUNT( * ) WHEN - - 72 + - - 46 - - 84 THEN 34 ELSE NULL END + ( 96 ) ) * + - ( + + 75 ) + 97 THEN NULL ELSE - + 39 END + 32 col0, + COUNT( * ) * - + 17 * - 84
----
-7
1428

skipif mysql # not compatible
query II rowsort label-1049
SELECT + CASE - 98 WHEN - NULLIF ( + 0, - + CASE - 76 WHEN 69 THEN - + COUNT ( * ) - - COUNT ( * ) WHEN - - 72 + - - 46 - - 84 THEN 34 ELSE NULL END + ( 96 ) ) * + - ( + + 75 ) + 97 THEN NULL ELSE - + 39 END + 32 col0, + COUNT ( * ) * - + 17 * - 84
----
-7
1428

query I rowsort
SELECT + 68 * + 37
----
2516

query I rowsort
SELECT + COALESCE ( - 69, 60 - 58 ) - ( + 9 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1052
SELECT - CAST( 73 AS SIGNED ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-1052
SELECT - CAST ( 73 AS INTEGER ) col2
----
-73

query I rowsort
SELECT - CASE + - 56 WHEN - 89 THEN + - 0 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT + 32 DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1054
SELECT + 32 / + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT 58 * COUNT( * ) / + 78 + 89 * CASE - COUNT( ALL - + 81 ) WHEN 29 THEN + 25 END - 92 / - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT 58 * COUNT ( * ) / + 78 + 89 * CASE - COUNT ( ALL - + 81 ) WHEN 29 THEN + 25 END - 92 / - 84
----
NULL

query I rowsort
SELECT + 9 * 21 AS col2
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT COUNT( * ) + - 20 + - 67 * - 13
----
852

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT COUNT ( * ) + - 20 + - 67 * - 13
----
852

query I rowsort
SELECT ALL - 18 + + 55
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT + MIN( 98 ) * + CASE - 8 WHEN 35 * + MAX( + 70 ) + + - COUNT( * ) - 65 THEN + 47 WHEN - 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT + MIN ( 98 ) * + CASE - 8 WHEN 35 * + MAX ( + 70 ) + + - COUNT ( * ) - 65 THEN + 47 WHEN - 91 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1060
SELECT DISTINCT 46 + - - CAST( + + 30 AS SIGNED ) * 29 * 64 DIV - + 13 + + 73 + + + 51 - 97
----
-4210

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT 46 + - - CAST ( + + 30 AS INTEGER ) * 29 * 64 / - + 13 + + 73 + + + 51 - 97
----
-4210

query I rowsort
SELECT DISTINCT NULLIF ( - + 68, 17 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT - + MAX( ALL 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-1062
SELECT - + MAX ( ALL 80 )
----
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1064
SELECT ALL + + 27 + + + 34 + + + COALESCE ( 45, + + 67 + - - 36, - + CASE + ( + CAST( 79 AS SIGNED ) ) WHEN + 11 THEN NULL WHEN + 58 THEN + 21 * 99 ELSE NULL END ) + ( + 62 ) DIV - 33 col1
----
105

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + + 27 + + + 34 + + + COALESCE ( 45, + + 67 + - - 36, - + CASE + ( + CAST ( 79 AS INTEGER ) ) WHEN + 11 THEN NULL WHEN + 58 THEN + 21 * 99 ELSE NULL END ) + ( + 62 ) / - 33 col1
----
105

query II rowsort
SELECT 1 - 92 * 38 AS col1, + 38 AS col2
----
-3495
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT ALL 7 AS col1, 61 - - CASE 2 WHEN + 33 - 65 THEN + COUNT( * ) WHEN + - 43 - - + 70 - 15 * + 96 * 65 * - + 80 / - 25 * - - COUNT( * ) THEN NULL ELSE NULL END + + 64 + + 71 * + + ( - COUNT( * ) ) / - CASE - 36 WHEN 30 THEN NULL ELSE 57 + - ( - 61 ) * - + 51 END * + 66 * - 71 - + NULLIF ( + NULLIF ( + 66, - 1 ), + 86 * 82 ) AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-1067
SELECT ALL 7 AS col1, 61 - - CASE 2 WHEN + 33 - 65 THEN + COUNT ( * ) WHEN + - 43 - - + 70 - 15 * + 96 * 65 * - + 80 / - 25 * - - COUNT ( * ) THEN NULL ELSE NULL END + + 64 + + 71 * + + ( - COUNT ( * ) ) / - CASE - 36 WHEN 30 THEN NULL ELSE 57 + - ( - 61 ) * - + 51 END * + 66 * - 71 - + NULLIF ( + NULLIF ( + 66, - 1 ), + 86 * 82 ) AS col1
----
7
NULL

query I rowsort
SELECT - 75 * + 30
----
-2250

query I rowsort
SELECT DISTINCT - - 14 * - - 98 + - - 93
----
1465

onlyif mysql # DIV for integer division: 
query I rowsort label-1070
SELECT DISTINCT + 0 DIV - + 15
----
0

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT + 0 / - + 15
----
0

query I rowsort
SELECT ALL + 41 + - 78 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT ALL + 95, + MIN( DISTINCT + 24 ) AS col2
----
95
24

skipif mysql # not compatible
query II rowsort label-1072
SELECT ALL + 95, + MIN ( DISTINCT + 24 ) AS col2
----
95
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1073
SELECT DISTINCT - - COUNT( * ) * ( + 64 ), 70 + - + 50 DIV ( - + 55 ) AS col2
----
64
70

skipif mysql # not compatible
query II rowsort label-1073
SELECT DISTINCT - - COUNT ( * ) * ( + 64 ), 70 + - + 50 / ( - + 55 ) AS col2
----
64
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT + NULLIF ( - + 81, 32 - + MAX( - 75 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-1074
SELECT + NULLIF ( - + 81, 32 - + MAX ( - 75 ) )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1075
SELECT - 64 DIV ( + 84 ) + + + 51 - - 98 + + COUNT( * ) AS col2, + 72 + CAST( - 21 AS SIGNED )
----
150
51

skipif mysql # not compatible
query II rowsort label-1075
SELECT - 64 / ( + 84 ) + + + 51 - - 98 + + COUNT ( * ) AS col2, + 72 + CAST ( - 21 AS INTEGER )
----
150
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1076
SELECT 61 + - + 24 + COUNT( * ) DIV - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1076
SELECT 61 + - + 24 + COUNT ( * ) / - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT ALL + 98 - - 32 AS col0
----
130

query II rowsort
SELECT 67 * - 68 * + ( - 8 ), 36 AS col2
----
36448
36

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

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

query I rowsort
SELECT 95 + - 16 * + - 54 AS col0
----
959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT COUNT( * ) * + SUM( 70 ) + + CAST( COALESCE ( 37, COUNT( * ) ) AS SIGNED ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-1081
SELECT COUNT ( * ) * + SUM ( 70 ) + + CAST ( COALESCE ( 37, COUNT ( * ) ) AS INTEGER ) AS col1
----
107

query I rowsort
SELECT ALL - 63 * + COALESCE ( - 8, 87 + 19 )
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1083
SELECT + 81 * + 45 * - MIN( DISTINCT CAST( 83 AS SIGNED ) ) + - COUNT( * ) * - + 38 + - + 89 + - - COALESCE ( + 35, 33 ) + - 91 AS col1, 36 + - 9 AS col0
----
-302642
27

skipif mysql # not compatible
query II rowsort label-1083
SELECT + 81 * + 45 * - MIN ( DISTINCT CAST ( 83 AS INTEGER ) ) + - COUNT ( * ) * - + 38 + - + 89 + - - COALESCE ( + 35, 33 ) + - 91 AS col1, 36 + - 9 AS col0
----
-302642
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT COUNT( * ) - - 48 + + 36 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1084
SELECT COUNT ( * ) - - 48 + + 36 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1085
SELECT DISTINCT COUNT( * ) + - SUM( ALL CAST( - - 4 AS SIGNED ) ) * + ( - - 61 ) AS col0
----
-243

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT COUNT ( * ) + - SUM ( ALL CAST ( - - 4 AS INTEGER ) ) * + ( - - 61 ) AS col0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT - COALESCE ( - 10, - 14, COUNT( + 42 ) ) col1
----
10

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - COALESCE ( - 10, - 14, COUNT ( + 42 ) ) col1
----
10

query II rowsort
SELECT DISTINCT - 69 col0, 76 + 52
----
-69
128

onlyif mysql # aggregate syntax: 
query II rowsort label-1088
SELECT ALL ( + - COUNT( * ) ) + - 19 * 58, + 18 * + 71 AS col1
----
-1103
1278

skipif mysql # not compatible
query II rowsort label-1088
SELECT ALL ( + - COUNT ( * ) ) + - 19 * 58, + 18 * + 71 AS col1
----
-1103
1278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1089
SELECT 56 AS col0, 57 + - COUNT( * ) * ( 68 ) + + + CAST( NULL AS SIGNED ) AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1089
SELECT 56 AS col0, 57 + - COUNT ( * ) * ( 68 ) + + + CAST ( NULL AS INTEGER ) AS col0
----
56
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1090
SELECT ALL + 91 + - 56 + - - 28 * + 7 / + - CASE + - COUNT( * ) WHEN - + 81 THEN + CAST( + 46 AS SIGNED ) WHEN + + 88 THEN NULL WHEN + 67 THEN NULL WHEN + 56 THEN + 61 + - 1 / 28 * ( - 6 ) * - - 68 END + + + COUNT( * ) AS col0, 82
----
NULL
82

skipif mysql # not compatible
query II rowsort label-1090
SELECT ALL + 91 + - 56 + - - 28 * + 7 / + - CASE + - COUNT ( * ) WHEN - + 81 THEN + CAST ( + 46 AS INTEGER ) WHEN + + 88 THEN NULL WHEN + 67 THEN NULL WHEN + 56 THEN + 61 + - 1 / 28 * ( - 6 ) * - - 68 END + + + COUNT ( * ) AS col0, 82
----
NULL
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT 27 DIV + + 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-1091
SELECT 27 / + + 72 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL + 67 + - 20 + - + COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + 67 + - 20 + - + COUNT ( * ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL + 97 + - 92 * - - 57 + + COUNT( * ) AS col1
----
-5146

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL + 97 + - 92 * - - 57 + + COUNT ( * ) AS col1
----
-5146

query I rowsort
SELECT - 79 - + 41 * + + 17 * + 17 * + - 97 + 54
----
1149328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT ALL - 23 / 4 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - 23 / 4 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( - - 82, 97 + - + 12 ) + 15 + + - 80 AS col1
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL ( - NULLIF ( + 41, + NULLIF ( + 49, COUNT( * ) * 10 ) ) ) + + COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL ( - NULLIF ( + 41, + NULLIF ( + 49, COUNT ( * ) * 10 ) ) ) + + COUNT ( * ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1098
SELECT ALL 76 + + COUNT( * ) + + CASE + COUNT( * ) WHEN + + COUNT( * ) THEN - - ( 67 ) + + - COUNT( * ) * - 91 DIV COUNT( * ) WHEN + + 84 DIV 49 + - 93 + - + CASE WHEN NOT + 21 > ( 77 + - CAST( NULL AS SIGNED ) + - ( + NULLIF ( - CASE 35 WHEN - 92 + CAST( - - 97 AS SIGNED ) + ( + + 53 ) THEN + 25 * - 30 WHEN - 78 THEN - 10 ELSE + NULLIF ( 92, - ( + CASE - 52 WHEN - COUNT( * ) THEN NULL WHEN - 25 THEN 86 * COUNT( * ) + + 47 * 30 ELSE ( AVG ( 79 ) ) END ) ) + 35 END, - 96 ) ) + 70 ) THEN - CAST( 86 AS SIGNED ) WHEN 22 DIV 74 + COUNT( * ) IS NULL THEN NULL END THEN 18 + - CAST( + 38 AS SIGNED ) DIV - 84 END AS col1
----
235

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL 76 + + COUNT ( * ) + + CASE + COUNT ( * ) WHEN + + COUNT ( * ) THEN - - ( 67 ) + + - COUNT ( * ) * - 91 / COUNT ( * ) WHEN + + 84 / 49 + - 93 + - + CASE WHEN NOT + 21 > ( 77 + - CAST ( NULL AS INTEGER ) + - ( + NULLIF ( - CASE 35 WHEN - 92 + CAST ( - - 97 AS INTEGER ) + ( + + 53 ) THEN + 25 * - 30 WHEN - 78 THEN - 10 ELSE + NULLIF ( 92, - ( + CASE - 52 WHEN - COUNT ( * ) THEN NULL WHEN - 25 THEN 86 * COUNT ( * ) + + 47 * 30 ELSE ( AVG ( 79 ) ) END ) ) + 35 END, - 96 ) ) + 70 ) THEN - CAST ( 86 AS INTEGER ) WHEN 22 / 74 + COUNT ( * ) IS NULL THEN NULL END THEN 18 + - CAST ( + 38 AS INTEGER ) / - 84 END AS col1
----
235

query I rowsort
SELECT + 45 + ( 79 ) col2
----
124

query I rowsort
SELECT 85 * + - ( - - 36 )
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT COUNT( * ) + - + SUM( DISTINCT - ( 17 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT COUNT ( * ) + - + SUM ( DISTINCT - ( 17 ) ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT NULLIF ( - - MAX( ALL + + 83 ), + + 25 * + - 81 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1102
SELECT NULLIF ( - - MAX ( ALL + + 83 ), + + 25 * + - 81 ) AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1103
SELECT ALL - 71 - + - 41 * 58 * - 8, + MIN( + 23 ) * - - 59 * + CASE - COUNT( DISTINCT - + 45 ) WHEN - COUNT( * ) THEN + 11 * + 82 DIV 79 END + + 0 AS col0
----
-19095
14927

skipif mysql # not compatible
query II rowsort label-1103
SELECT ALL - 71 - + - 41 * 58 * - 8, + MIN ( + 23 ) * - - 59 * + CASE - COUNT ( DISTINCT - + 45 ) WHEN - COUNT ( * ) THEN + 11 * + 82 / 79 END + + 0 AS col0
----
-19095
14927

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT ( - ( - 58 ) ) + - SUM( DISTINCT - + NULLIF ( + 42, - - 23 / - 89 / - 65 + + + 51 ) ) + 10 AS col2, ( + 88 )
----
110
88

skipif mysql # not compatible
query II rowsort label-1104
SELECT ( - ( - 58 ) ) + - SUM ( DISTINCT - + NULLIF ( + 42, - - 23 / - 89 / - 65 + + + 51 ) ) + 10 AS col2, ( + 88 )
----
110
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT ALL + 90 - COUNT( * ) DIV - 62 AS col1
----
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT 84 + + CASE - NULLIF ( 13, + 83 ) WHEN COUNT( * ) THEN 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT 84 + + CASE - NULLIF ( 13, + 83 ) WHEN COUNT ( * ) THEN 18 END
----
NULL

query II rowsort
SELECT - ( + + 75 ) AS col2, 1 * - 47 AS col0
----
-75
-47

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

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL MIN ( ALL 97 )
----
97

query II rowsort
SELECT - 9 AS col0, 83 AS col1
----
-9
83

query I rowsort
SELECT - NULLIF ( + + 65, + 50 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1111
SELECT CASE + + 80 WHEN - 27 * + + CAST( NULL AS SIGNED ) * + - 85 + - 51 + 92 THEN - 27 ELSE NULL END * + CASE ( - COUNT( * ) ) WHEN - COUNT( * ) THEN + - 52 * + 66 + + 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT CASE + + 80 WHEN - 27 * + + CAST ( NULL AS INTEGER ) * + - 85 + - 51 + 92 THEN - 27 ELSE NULL END * + CASE ( - COUNT ( * ) ) WHEN - COUNT ( * ) THEN + - 52 * + 66 + + 65 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT SUM( DISTINCT - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1112
SELECT SUM ( DISTINCT - 92 ) AS col1
----
-92

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

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - COUNT ( * ) * + 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + SUM( DISTINCT 48 ) col2
----
48

skipif mysql # not compatible
query I rowsort label-1114
SELECT + SUM ( DISTINCT 48 ) col2
----
48

query I rowsort
SELECT ALL - COALESCE ( 32, ( - 6 ) )
----
-32

query I rowsort
SELECT ALL - 40 * - 29 AS col0
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT 21 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1117
SELECT 21 + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1119
SELECT ALL + 95 + - - CAST( MIN( ALL 41 ) AS SIGNED ) * + 12 + + + 48 * 44 * + + ( + 15 ) + 59 col0
----
32326

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + 95 + - - CAST ( MIN ( ALL 41 ) AS INTEGER ) * + 12 + + + 48 * 44 * + + ( + 15 ) + 59 col0
----
32326

query II rowsort
SELECT DISTINCT + 22 + NULLIF ( + + 94, 97 ) + + 72 * 8 * - 71 AS col1, 86
----
-40780
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT 95 * - - COALESCE ( - + 3, - - COUNT( * ) * 14 * - ( - 56 ) * 54 ) + - 85
----
-370

skipif mysql # not compatible
query I rowsort label-1121
SELECT 95 * - - COALESCE ( - + 3, - - COUNT ( * ) * 14 * - ( - 56 ) * 54 ) + - 85
----
-370

query I rowsort
SELECT DISTINCT - 59 + + 27 AS col2
----
-32

query I rowsort
SELECT 30 - 69 * + 64
----
-4386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1124
SELECT ALL - SUM( ALL + COALESCE ( + 44, + 24 + + 94 + 49 ) ) * - NULLIF ( CAST( 34 AS SIGNED ), + MIN( ALL - 8 ) ) * + 48 AS col1
----
71808

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - SUM ( ALL + COALESCE ( + 44, + 24 + + 94 + 49 ) ) * - NULLIF ( CAST ( 34 AS INTEGER ), + MIN ( ALL - 8 ) ) * + 48 AS col1
----
71808

query I rowsort
SELECT ALL 64 + - - 55
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL COALESCE ( - + 3, - COUNT( DISTINCT + 85 ) + - - 34 + - SUM( DISTINCT - 64 ) * - 71 - - + 97 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL COALESCE ( - + 3, - COUNT ( DISTINCT + 85 ) + - - 34 + - SUM ( DISTINCT - 64 ) * - 71 - - + 97 ) AS col0
----
-3

query I rowsort
SELECT DISTINCT - 33 * - 50
----
1650

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT DISTINCT + - 43 - - 53 AS col1, NULLIF ( + 27, + COUNT( * ) / - 51 ) * - 3 * + SUM( ALL + 68 )
----
10
-5508

skipif mysql # not compatible
query II rowsort label-1128
SELECT DISTINCT + - 43 - - 53 AS col1, NULLIF ( + 27, + COUNT ( * ) / - 51 ) * - 3 * + SUM ( ALL + 68 )
----
10
-5508

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT - COUNT( * ) - COALESCE ( - SUM( DISTINCT 95 ), 0 * + 94 + 60 + 80 )
----
94

skipif mysql # not compatible
query I rowsort label-1130
SELECT - COUNT ( * ) - COALESCE ( - SUM ( DISTINCT 95 ), 0 * + 94 + 60 + 80 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1131
SELECT - + 61 * + 46 * + - 72 * + - CAST( + SUM( DISTINCT 48 ) AS SIGNED )
----
-9697536

skipif mysql # not compatible
query I rowsort label-1131
SELECT - + 61 * + 46 * + - 72 * + - CAST ( + SUM ( DISTINCT 48 ) AS INTEGER )
----
-9697536

query I rowsort
SELECT DISTINCT 20 col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT DISTINCT + 17 * AVG ( ALL - CAST( NULL AS SIGNED ) ) * CAST( - 91 AS SIGNED ) + AVG ( DISTINCT - 30 ) * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT + 17 * AVG ( ALL - CAST ( NULL AS INTEGER ) ) * CAST ( - 91 AS INTEGER ) + AVG ( DISTINCT - 30 ) * + 68 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT + 50 * + COUNT( * ) * 68
----
3400

skipif mysql # not compatible
query I rowsort label-1134
SELECT + 50 * + COUNT ( * ) * 68
----
3400

query I rowsort
SELECT + - 78 - ( + 40 )
----
-118

query I rowsort
SELECT DISTINCT 98 * + - 20 AS col1
----
-1960

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

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

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

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

query I rowsort
SELECT ALL 81 * - 76 * - 6 AS col0
----
36936

query I rowsort
SELECT DISTINCT 40 * + - 22 * + 7 AS col2
----
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT COUNT( * ) * - 64 + + 30 + - 95 * + 22 AS col0
----
-2124

skipif mysql # not compatible
query I rowsort label-1141
SELECT COUNT ( * ) * - 64 + + 30 + - 95 * + 22 AS col0
----
-2124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1142
SELECT + NULLIF ( + 65, + 35 - - CAST( + 58 AS SIGNED ) ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1142
SELECT + NULLIF ( + 65, + 35 - - CAST ( + 58 AS INTEGER ) ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1143
SELECT ALL + 37 AS col1, - 47 - + MIN( - 86 ) AS col2
----
37
39

skipif mysql # not compatible
query II rowsort label-1143
SELECT ALL + 37 AS col1, - 47 - + MIN ( - 86 ) AS col2
----
37
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL 18 * + 81 + + 42 * + ( + 64 ) * COUNT( ALL - 64 ) AS col1
----
4146

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL 18 * + 81 + + 42 * + ( + 64 ) * COUNT ( ALL - 64 ) AS col1
----
4146

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT + COUNT( * ) * - 81 + - 45 + + ( - 7 ) + - - 99
----
-34

skipif mysql # not compatible
query I rowsort label-1145
SELECT + COUNT ( * ) * - 81 + - 45 + + ( - 7 ) + - - 99
----
-34

query I rowsort
SELECT + 46 - - ( + + 65 )
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1147
SELECT 8 DIV 34 * NULLIF ( - 59, - - CAST( COUNT( * ) AS SIGNED ) * - + 17 * - 37 + + - 29 DIV - + 95 * + 78 * CAST( + - 34 AS SIGNED ) * - + 90 + + - 83 + COUNT( * ) DIV - - COUNT( DISTINCT - 46 ) ) + 57 * - - 51 * + 26, + 79 col0
----
75582
79

skipif mysql # not compatible
query II rowsort label-1147
SELECT 8 / 34 * NULLIF ( - 59, - - CAST ( COUNT ( * ) AS INTEGER ) * - + 17 * - 37 + + - 29 / - + 95 * + 78 * CAST ( + - 34 AS INTEGER ) * - + 90 + + - 83 + COUNT ( * ) / - - COUNT ( DISTINCT - 46 ) ) + 57 * - - 51 * + 26, + 79 col0
----
75582
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + COALESCE ( + COUNT( * ), + 32, 58 - - + 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1148
SELECT + COALESCE ( + COUNT ( * ), + 32, 58 - - + 79 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1149
SELECT - 39 * + + ( + CAST( - + 20 AS SIGNED ) ), 57 AS col0
----
780
57

skipif mysql # not compatible
query II rowsort label-1149
SELECT - 39 * + + ( + CAST ( - + 20 AS INTEGER ) ), 57 AS col0
----
780
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1150
SELECT CASE - ( - ( + - 48 ) ) WHEN + 99 THEN NULL WHEN - 57 / + COUNT( * ) + - ( SUM( - + 15 ) ) + 21 - - - 37 + + CASE 1 WHEN - + 71 / + 16 + + 92 + - - 38 * - + 53 THEN + 62 WHEN + + ( - 92 ) * 64 * 36 THEN NULL ELSE NULL END / - 54 + + - 84 + + COUNT( * ) - - 31 * - 60 + + 16 THEN CAST( + 39 AS SIGNED ) + + 76 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1150
SELECT CASE - ( - ( + - 48 ) ) WHEN + 99 THEN NULL WHEN - 57 / + COUNT ( * ) + - ( SUM ( - + 15 ) ) + 21 - - - 37 + + CASE 1 WHEN - + 71 / + 16 + + 92 + - - 38 * - + 53 THEN + 62 WHEN + + ( - 92 ) * 64 * 36 THEN NULL ELSE NULL END / - 54 + + - 84 + + COUNT ( * ) - - 31 * - 60 + + 16 THEN CAST ( + 39 AS INTEGER ) + + 76 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1151
SELECT ALL - 29 * + COUNT( * ) / 97 + 4 + + 74 * CAST( NULL AS DECIMAL ) * - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL - 29 * + COUNT ( * ) / 97 + 4 + + 74 * CAST ( NULL AS REAL ) * - + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT ALL + 45 * COUNT( * ) + - 80
----
-35

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + 45 * COUNT ( * ) + - 80
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-1153
SELECT + 3 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-1153
SELECT + 3 / - - 86
----
0

query I rowsort
SELECT 9 * - + 93 + - 16 + 12 AS col1
----
-841

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1155
SELECT ALL + 18 * + - CAST( NULL AS DECIMAL ) + 91 + - 86 * + 75 * + 46 + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + 18 * + - CAST ( NULL AS REAL ) + 91 + - 86 * + 75 * + 46 + + 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1156
SELECT DISTINCT COUNT( * ) * 6 DIV 4 DIV - 51 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT COUNT ( * ) * 6 / 4 / - 51 / 17
----
0

query II rowsort
SELECT ALL + 62 AS col1, + 68
----
62
68

query I rowsort
SELECT NULLIF ( + 36, - ( 39 ) * - ( - + 61 ) ) AS col1
----
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1160
SELECT CAST( - + 47 AS SIGNED )
----
-47

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

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

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

query I rowsort
SELECT - - 51 + + 91 + + - 69 * 89
----
-5999

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT - SUM( - 46 ) * - ( - NULLIF ( - 51, + COUNT( * ) ) ) + 87
----
-2259

skipif mysql # not compatible
query I rowsort label-1163
SELECT - SUM ( - 46 ) * - ( - NULLIF ( - 51, + COUNT ( * ) ) ) + 87
----
-2259

query II rowsort
SELECT ALL - 58, 29 + + - 50 AS col2
----
-58
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT DISTINCT + + 91 DIV + 91 + + - COALESCE ( + 31, + - 44 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT + + 91 / + 91 + + - COALESCE ( + 31, + - 44 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT COUNT( * ) * 15 - 11 - COUNT( * ) + - 44 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1166
SELECT COUNT ( * ) * 15 - 11 - COUNT ( * ) + - 44 AS col1
----
-41

query I rowsort
SELECT - + 74 + - + COALESCE ( - 75, - - 8 ) + - ( + - 33 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT - + 68 - + COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1168
SELECT - + 68 - + COUNT ( * ) AS col1
----
-69

query I rowsort
SELECT ALL + 88 * - 71 + + 42
----
-6206

query I rowsort
SELECT DISTINCT + - 86 * - 76 AS col2
----
6536

query II rowsort
SELECT ALL - 4 AS col1, 72
----
-4
72

query I rowsort
SELECT - 57 + + 1
----
-56

query I rowsort
SELECT ALL + + 36 * 63 AS col1
----
2268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1174
SELECT ALL - CAST( NULL AS SIGNED ) col0, COUNT( * )
----
NULL
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1175
SELECT ALL + 39 + + CASE ( COUNT( * ) ) WHEN - 95 THEN NULL ELSE - 36 END + - CAST( - 67 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL + 39 + + CASE ( COUNT ( * ) ) WHEN - 95 THEN NULL ELSE - 36 END + - CAST ( - 67 AS INTEGER )
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1176
SELECT - NULLIF ( - + 56, + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) * 25 / - + 78 )
----
56

skipif mysql # not compatible
query I rowsort label-1176
SELECT - NULLIF ( - + 56, + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) * 25 / - + 78 )
----
56

query I rowsort
SELECT ALL - 76 + - 43
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT + COUNT( * ) + - 34
----
-33

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT + COUNT ( * ) + - 34
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT - CAST( NULL AS SIGNED ) * - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT - CAST ( NULL AS INTEGER ) * - 37 AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 72, + 4 ) + - 36 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT DISTINCT COUNT( * ) * 90, 2 AS col1
----
90
2

skipif mysql # not compatible
query II rowsort label-1181
SELECT DISTINCT COUNT ( * ) * 90, 2 AS col1
----
90
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1182
SELECT ALL + 1 DIV - 49 + NULLIF ( + + ( + + 48 ), - 46 ) DIV - + 73 + + 52 + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL + 1 / - 49 + NULLIF ( + + ( + + 48 ), - 46 ) / - + 73 + + 52 + - COUNT ( * )
----
51

query I rowsort
SELECT + 62 * - - 71 col2
----
4402

query I rowsort
SELECT DISTINCT 27 * - 73 AS col2
----
-1971

onlyif mysql # aggregate syntax: 
query II rowsort label-1185
SELECT + 26 * + - NULLIF ( + + 71, 88 * COUNT( * ) + COUNT( * ) + 53 ) col0, MAX( DISTINCT + ( 2 ) ) + - 35
----
-1846
-33

skipif mysql # not compatible
query II rowsort label-1185
SELECT + 26 * + - NULLIF ( + + 71, 88 * COUNT ( * ) + COUNT ( * ) + 53 ) col0, MAX ( DISTINCT + ( 2 ) ) + - 35
----
-1846
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT + COUNT( * ) * CASE - COUNT( * ) WHEN 75 + 3 THEN - 11 * - COALESCE ( 55, + CASE - 43 WHEN - COUNT( * ) THEN - 22 * SUM( + ( + + 81 ) ) + + 97 * + + 96 - 33 END ) / 32 * - - COUNT( * ) + + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT + COUNT ( * ) * CASE - COUNT ( * ) WHEN 75 + 3 THEN - 11 * - COALESCE ( 55, + CASE - 43 WHEN - COUNT ( * ) THEN - 22 * SUM ( + ( + + 81 ) ) + + 97 * + + 96 - 33 END ) / 32 * - - COUNT ( * ) + + 96 END
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1188
SELECT ALL - ( + + 52 ) AS col0, - CAST( NULL AS DECIMAL )
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-1188
SELECT ALL - ( + + 52 ) AS col0, - CAST ( NULL AS REAL )
----
-52
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL + 83 * + + MAX( DISTINCT 84 )
----
6972

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL + 83 * + + MAX ( DISTINCT 84 )
----
6972

query I rowsort
SELECT 62 + ( + 32 ) * - 79 + 52
----
-2414

query I rowsort
SELECT ALL + 34 * 1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT ALL - CASE - 65 WHEN + - 32 * + 94 THEN 34 + - 24 + + - 92 * 53 ELSE + 74 END + + COUNT( * ) + - 57 + MAX( ALL + 4 ) * + 68 * 90 AS col0
----
24350

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - CASE - 65 WHEN + - 32 * + 94 THEN 34 + - 24 + + - 92 * 53 ELSE + 74 END + + COUNT ( * ) + - 57 + MAX ( ALL + 4 ) * + 68 * 90 AS col0
----
24350

query I rowsort
SELECT - 41 * - 39
----
1599

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT DISTINCT + 40 + 93 DIV + - 99 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT + 40 + 93 / + - 99 AS col1
----
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT 8 DIV - - 4 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1196
SELECT 8 / - - 4 AS col1
----
2

query I rowsort
SELECT ALL - 7 + + 45
----
38

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1200
SELECT 33 AS col2, NULLIF ( - - CAST( 23 AS SIGNED ), + 52 )
----
33
23

skipif mysql # not compatible
query II rowsort label-1200
SELECT 33 AS col2, NULLIF ( - - CAST ( 23 AS INTEGER ), + 52 )
----
33
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT ALL + 35 * COUNT( * ) col1
----
35

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL + 35 * COUNT ( * ) col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1202
SELECT ALL + COALESCE ( - COUNT( * ), - 53 * 20 ) * - + 52 AS col2, 52 * - + 43 + - - 27 + CAST( NULL AS SIGNED ) AS col2
----
52
NULL

skipif mysql # not compatible
query II rowsort label-1202
SELECT ALL + COALESCE ( - COUNT ( * ), - 53 * 20 ) * - + 52 AS col2, 52 * - + 43 + - - 27 + CAST ( NULL AS INTEGER ) AS col2
----
52
NULL

query I rowsort
SELECT 1 - 76 col0
----
-75

query I rowsort
SELECT ALL + 36 * 43
----
1548

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT ALL - ( - 7 ) + + ( + COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - ( - 7 ) + + ( + COUNT ( * ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT 11 - SUM( - COALESCE ( ( - 92 ), + + 94 ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1206
SELECT 11 - SUM ( - COALESCE ( ( - 92 ), + + 94 ) ) AS col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1207
SELECT ALL 47 AS col1, COALESCE ( + - CAST( NULL AS SIGNED ), COUNT( + - 75 ) * - - 17 * - ( 64 ) + + COUNT( * ) )
----
47
-1087

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL 47 AS col1, COALESCE ( + - CAST ( NULL AS INTEGER ), COUNT ( + - 75 ) * - - 17 * - ( 64 ) + + COUNT ( * ) )
----
47
-1087

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT ALL + COUNT( * ) - + 9 * - ( 14 ) AS col0
----
127

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL + COUNT ( * ) - + 9 * - ( 14 ) AS col0
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT 46 DIV - - 5 + - 85 + + 89 + - 42 + + 11
----
-18

skipif mysql # not compatible
query I rowsort label-1209
SELECT 46 / - - 5 + - 85 + + 89 + - 42 + + 11
----
-18

query II rowsort
SELECT 9 * + 22 - 79, - 77 * + 82 AS col0
----
119
-6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT 17 * CAST( NULL AS SIGNED ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT 17 * CAST ( NULL AS INTEGER ) * 65
----
NULL

query I rowsort
SELECT DISTINCT 73 * + - 33
----
-2409

query I rowsort
SELECT ALL 91 * + 68
----
6188

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

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL 67 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT + MAX( - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1215
SELECT + MAX ( - 59 ) AS col2
----
-59

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

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

query I rowsort
SELECT ALL - 12 * 67 AS col0
----
-804

onlyif mysql # DIV for integer division: 
query II rowsort label-1219
SELECT 76, 13 * 39 DIV 15 col1
----
76
33

skipif mysql # not compatible
query II rowsort label-1219
SELECT 76, 13 * 39 / 15 col1
----
76
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT NULLIF ( + - CAST( - + NULLIF ( 46, - 77 ) AS SIGNED ), + 61 * 12 + + + 17 ) * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-1220
SELECT NULLIF ( + - CAST ( - + NULLIF ( 46, - 77 ) AS INTEGER ), + 61 * 12 + + + 17 ) * - COUNT ( * )
----
-46

query I rowsort
SELECT - COALESCE ( + 72, + 41, 26 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT 7 * - 49 + + + MAX( DISTINCT + 80 ) AS col0
----
-263

skipif mysql # not compatible
query I rowsort label-1222
SELECT 7 * - 49 + + + MAX ( DISTINCT + 80 ) AS col0
----
-263

query II rowsort
SELECT ALL - - 47, - 54 col0
----
47
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT CASE - COUNT( * ) WHEN - + MAX( + - 2 ) THEN NULL WHEN + 48 * + 13 - - + 55 + 21 * 6 THEN 21 WHEN - - 6 THEN NULL END + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1224
SELECT CASE - COUNT ( * ) WHEN - + MAX ( + - 2 ) THEN NULL WHEN + 48 * + 13 - - + 55 + 21 * 6 THEN 21 WHEN - - 6 THEN NULL END + + 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL - ( + + 61 ) * + COUNT( + + 33 )
----
-61

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - ( + + 61 ) * + COUNT ( + + 33 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL - 11 + + - COUNT( DISTINCT + 25 )
----
-12

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL - 11 + + - COUNT ( DISTINCT + 25 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT + + 41 * - - 77 + COUNT( * ) + - 40 + - - 28 - + - 26 + 89 * + 80 + 25 AS col0
----
10317

skipif mysql # not compatible
query I rowsort label-1227
SELECT + + 41 * - - 77 + COUNT ( * ) + - 40 + - - 28 - + - 26 + 89 * + 80 + 25 AS col0
----
10317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1228
SELECT ( - 6 ) + + + COALESCE ( 70, 53 DIV - 96 * - MIN( 28 ) + - + 43 - + 94 )
----
64

skipif mysql # not compatible
query I rowsort label-1228
SELECT ( - 6 ) + + + COALESCE ( 70, 53 / - 96 * - MIN ( 28 ) + - + 43 - + 94 )
----
64

query II rowsort
SELECT DISTINCT 82 AS col2, - 28
----
82
-28

query I rowsort
SELECT ALL - 77 + + - 36 - - 34
----
-79

query II rowsort
SELECT 92 AS col2, + 54
----
92
54

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

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

query I rowsort
SELECT 27 * - - 4 * + - 38 AS col1
----
-4104

query I rowsort
SELECT 30 + - - NULLIF ( + 22, 9 * + + 20 + 11 ) + + + 56
----
108

query I rowsort
SELECT 1 * + - 0 AS col2
----
0

query I rowsort
SELECT 36 * - COALESCE ( - + 90, + - 58 ) AS col2
----
3240

query I rowsort
SELECT - 33 + 13
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT - 21 * 58 * - COUNT( * )
----
1218

skipif mysql # not compatible
query I rowsort label-1238
SELECT - 21 * 58 * - COUNT ( * )
----
1218

query I rowsort
SELECT NULLIF ( + 89, 28 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL + CASE 43 WHEN - 60 THEN - - 24 + 46 + - COUNT( * ) * + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + CASE 43 WHEN - 60 THEN - - 24 + 46 + - COUNT ( * ) * + 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1241
SELECT + 66 AS col0, 14 * - + MAX( DISTINCT 66 )
----
66
-924

skipif mysql # not compatible
query II rowsort label-1241
SELECT + 66 AS col0, 14 * - + MAX ( DISTINCT 66 )
----
66
-924

query II rowsort
SELECT ALL + + 81 AS col0, 2 * + 40
----
81
80

query II rowsort
SELECT ALL + 40 AS col2, 50 * - + 95 * - 69 AS col1
----
40
327750

query II rowsort
SELECT 9 col0, 89 AS col1
----
9
89

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1246
SELECT + - 45 * 71 + + + CAST( - 49 AS SIGNED ) + - ( - 32 ) AS col2, 34
----
-3212
34

skipif mysql # not compatible
query II rowsort label-1246
SELECT + - 45 * 71 + + + CAST ( - 49 AS INTEGER ) + - ( - 32 ) AS col2, 34
----
-3212
34

query I rowsort
SELECT ALL - 80 * 39 + 82 AS col2
----
-3038

onlyif mysql # aggregate syntax: 
query II rowsort label-1248
SELECT ALL - 44 * - ( + - 22 ) + 11 AS col2, - SUM( DISTINCT - 1 ) AS col1
----
-957
1

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL - 44 * - ( + - 22 ) + 11 AS col2, - SUM ( DISTINCT - 1 ) AS col1
----
-957
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT + - NULLIF ( COUNT( DISTINCT + 24 ), + NULLIF ( 54, - 60 ) / - - 7 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1249
SELECT + - NULLIF ( COUNT ( DISTINCT + 24 ), + NULLIF ( 54, - 60 ) / - - 7 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT DISTINCT + ( + CAST( + + COUNT( * ) AS SIGNED ) ) * 33 + - 22
----
11

skipif mysql # not compatible
query I rowsort label-1250
SELECT DISTINCT + ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) * 33 + - 22
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL + + MIN( - - 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + + MIN ( - - 73 ) AS col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1252
SELECT ALL COUNT( * ) * - 8 DIV 17 + 9 * - 76 AS col2
----
-684

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL COUNT ( * ) * - 8 / 17 + 9 * - 76 AS col2
----
-684

query I rowsort
SELECT - 76 * - 3
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT ALL + - COUNT( * ) AS col0, CASE - - 64 WHEN 31 THEN - + 14 * + 47 * 89 + - 94 * + CASE - 14 WHEN 99 THEN NULL ELSE + + 38 / AVG ( DISTINCT NULLIF ( - 60, - 7 ) ) END END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1254
SELECT ALL + - COUNT ( * ) AS col0, CASE - - 64 WHEN 31 THEN - + 14 * + 47 * 89 + - 94 * + CASE - 14 WHEN 99 THEN NULL ELSE + + 38 / AVG ( DISTINCT NULLIF ( - 60, - 7 ) ) END END
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1255
SELECT - CAST( 91 AS SIGNED ) DIV + 57 col0
----
-1

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

query I rowsort
SELECT + - 79 + 99 + - - 33
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT + 50 * 17 + + CASE + - 53 WHEN + + 31 THEN NULLIF ( 33, + 57 + - ( - - CASE 2 WHEN - - 32 THEN - 33 ELSE NULL END ) ) END + + 83 + 7 * 19 * - COUNT( * ) * - 87 * + - ( 79 ) * - CASE - CASE WHEN + 24 IS NULL THEN - + 16 END WHEN 48 + - - 96 THEN NULL WHEN - 67 THEN NULL ELSE - - 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1257
SELECT + 50 * 17 + + CASE + - 53 WHEN + + 31 THEN NULLIF ( 33, + 57 + - ( - - CASE 2 WHEN - - 32 THEN - 33 ELSE NULL END ) ) END + + 83 + 7 * 19 * - COUNT ( * ) * - 87 * + - ( 79 ) * - CASE - CASE WHEN + 24 IS NULL THEN - + 16 END WHEN 48 + - - 96 THEN NULL WHEN - 67 THEN NULL ELSE - - 79 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL + 99 + + COUNT( DISTINCT 15 )
----
100

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL + 99 + + COUNT ( DISTINCT 15 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT SUM( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-1259
SELECT SUM ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT - NULLIF ( COUNT( * ), - - 98 / - ( - 50 ) + 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1260
SELECT - NULLIF ( COUNT ( * ), - - 98 / - ( - 50 ) + 58 ) AS col2
----
-1

query II rowsort
SELECT ALL ( + 51 ) AS col2, 79 AS col0
----
51
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT DISTINCT SUM( + 97 ) * + - 83
----
-8051

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT SUM ( + 97 ) * + - 83
----
-8051

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

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

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

skipif mysql # not compatible
query I rowsort label-1264
SELECT - COUNT ( * ) * + - CAST ( + 43 AS INTEGER )
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL CASE + COUNT( * ) WHEN + 76 THEN - 14 + + - 54 * + + 25 * ( 91 ) END * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL CASE + COUNT ( * ) WHEN + 76 THEN - 14 + + - 54 * + + 25 * ( 91 ) END * + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT ALL COUNT( 22 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL COUNT ( 22 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT + 21 DIV COALESCE ( - 94, 12 + - - 28 + - ( ( + AVG ( DISTINCT - 12 ) ) ) + - 92 * + 29, + 10 DIV - - 65 * - NULLIF ( - COALESCE ( + ( - - 55 ), 65 ), - 51 ) DIV - 66 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1268
SELECT + 21 / COALESCE ( - 94, 12 + - - 28 + - ( ( + AVG ( DISTINCT - 12 ) ) ) + - 92 * + 29, + 10 / - - 65 * - NULLIF ( - COALESCE ( + ( - - 55 ), 65 ), - 51 ) / - 66 ) AS col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1270
SELECT + 97 - - - CAST( 43 AS SIGNED ) + 46 * + 36 AS col1
----
1710

skipif mysql # not compatible
query I rowsort label-1270
SELECT + 97 - - - CAST ( 43 AS INTEGER ) + 46 * + 36 AS col1
----
1710

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT ALL + 10 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + 10 / - 79 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1272
SELECT DISTINCT + 1 DIV + + 73 col0, 18 + - 2 col0
----
0
16

skipif mysql # not compatible
query II rowsort label-1272
SELECT DISTINCT + 1 / + + 73 col0, 18 + - 2 col0
----
0
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT DISTINCT ( - ( + 93 ) ) DIV - - 63 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT ( - ( + 93 ) ) / - - 63 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT - COALESCE ( - COUNT( * ), 63 ) * + - 19 + - COUNT( * ) + 93
----
73

skipif mysql # not compatible
query I rowsort label-1274
SELECT - COALESCE ( - COUNT ( * ), 63 ) * + - 19 + - COUNT ( * ) + 93
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1275
SELECT - COUNT( * ) * - 76 + + COALESCE ( - ( MAX( DISTINCT + + 30 ) ), + 4 + + CAST( - 21 AS SIGNED ), 40 )
----
46

skipif mysql # not compatible
query I rowsort label-1275
SELECT - COUNT ( * ) * - 76 + + COALESCE ( - ( MAX ( DISTINCT + + 30 ) ), + 4 + + CAST ( - 21 AS INTEGER ), 40 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + - ( - COUNT( * ) ) * NULLIF ( + 88, + 64 / + - 83 + - + SUM( DISTINCT + 84 ) * - 74 ) col0
----
88

skipif mysql # not compatible
query I rowsort label-1276
SELECT + - ( - COUNT ( * ) ) * NULLIF ( + 88, + 64 / + - 83 + - + SUM ( DISTINCT + 84 ) * - 74 ) col0
----
88

query I rowsort
SELECT + 62 + + 49
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT + MIN( ALL + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1278
SELECT + MIN ( ALL + 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT ALL - SUM( + - 4 ) DIV + 30 + 93 - - 41 + - + 63 * 64
----
-3898

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL - SUM ( + - 4 ) / + 30 + 93 - - 41 + - + 63 * 64
----
-3898

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1280
SELECT ALL 19 DIV + - 68 * - MIN( 25 ) + - 9 * + 91 + + MIN( DISTINCT - 16 )
----
-835

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL 19 / + - 68 * - MIN ( 25 ) + - 9 * + 91 + + MIN ( DISTINCT - 16 )
----
-835

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1281
SELECT ALL - COALESCE ( 88, - COALESCE ( COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ), - 53 * 0 + - + CAST( NULL AS SIGNED ) ) ) DIV 26 + + + 37 + + 19 * 62 + COUNT( * ) col0
----
1213

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - COALESCE ( 88, - COALESCE ( COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ), - 53 * 0 + - + CAST ( NULL AS INTEGER ) ) ) / 26 + + + 37 + + 19 * 62 + COUNT ( * ) col0
----
1213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1282
SELECT DISTINCT + COUNT( * ) DIV + 35 + - SUM( 48 ) + + + 5
----
-43

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT + COUNT ( * ) / + 35 + - SUM ( 48 ) + + + 5
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1283
SELECT DISTINCT - 76 DIV + COUNT( DISTINCT + + 76 ) + - + 15 + + 64 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT - 76 / + COUNT ( DISTINCT + + 76 ) + - + 15 + + 64 AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1284
SELECT + - 19 DIV + COUNT( * ) + - - 0 + + 24 * + 41 col2, ( - COUNT( * ) )
----
965
-1

skipif mysql # not compatible
query II rowsort label-1284
SELECT + - 19 / + COUNT ( * ) + - - 0 + + 24 * + 41 col2, ( - COUNT ( * ) )
----
965
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT + + MIN( ALL - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT + + MIN ( ALL - 54 ) AS col1
----
-54

query I rowsort
SELECT + - 89 + 77
----
-12

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

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

query II rowsort
SELECT + ( - 44 ) AS col2, 33
----
-44
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT - 48 + - 88 + COUNT( + ( - 77 ) )
----
-135

skipif mysql # not compatible
query I rowsort label-1289
SELECT - 48 + - 88 + COUNT ( + ( - 77 ) )
----
-135

query I rowsort
SELECT ALL - 4 * - 32 - - 3 AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT + 6 * + 80 - - + MAX( DISTINCT 59 ) - COUNT( + 20 )
----
538

skipif mysql # not compatible
query I rowsort label-1291
SELECT + 6 * + 80 - - + MAX ( DISTINCT 59 ) - COUNT ( + 20 )
----
538

query I rowsort
SELECT - - 89 * + NULLIF ( - 51, + 59 ) AS col1
----
-4539

query II rowsort
SELECT ALL 54 * - - 99 AS col1, - 63
----
5346
-63

query I rowsort
SELECT - 87 + 47 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT NULLIF ( - 40, - COUNT( ALL + ( + 59 ) ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1295
SELECT NULLIF ( - 40, - COUNT ( ALL + ( + 59 ) ) ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL + COUNT( * ) * + + 51 - 99 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + COUNT ( * ) * + + 51 - 99 AS col0
----
-48

query I rowsort
SELECT + 40 * - 23
----
-920

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - 86 * + + COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT 11 + - + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-1299
SELECT 11 + - + COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1300
SELECT ( 65 ) DIV + - 14 AS col1, NULLIF ( + COUNT( * ), + SUM( ALL + - 46 ) + - CAST( NULL AS SIGNED ) )
----
-4
1

skipif mysql # not compatible
query II rowsort label-1300
SELECT ( 65 ) / + - 14 AS col1, NULLIF ( + COUNT ( * ), + SUM ( ALL + - 46 ) + - CAST ( NULL AS INTEGER ) )
----
-4
1

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

skipif mysql # not compatible
query I rowsort label-1301
SELECT COUNT ( * ) + + + COUNT ( - + 88 ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1302
SELECT CAST( + + 3 AS SIGNED ) + - CAST( NULL AS SIGNED ) / - 0 + + CASE + + SUM( DISTINCT - 63 ) WHEN + + COALESCE ( COUNT( * ), - - ( - - ( SUM( DISTINCT + + 98 ) ) ) ) THEN + - 44 WHEN + 97 THEN NULL ELSE NULL END * + NULLIF ( + 28, - 81 + - + CAST( NULL AS SIGNED ) ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT CAST ( + + 3 AS INTEGER ) + - CAST ( NULL AS INTEGER ) / - 0 + + CASE + + SUM ( DISTINCT - 63 ) WHEN + + COALESCE ( COUNT ( * ), - - ( - - ( SUM ( DISTINCT + + 98 ) ) ) ) THEN + - 44 WHEN + 97 THEN NULL ELSE NULL END * + NULLIF ( + 28, - 81 + - + CAST ( NULL AS INTEGER ) ) * 74
----
NULL

query II rowsort
SELECT ALL 98 AS col2, 80
----
98
80

query II rowsort
SELECT ALL 49 AS col1, 66
----
49
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1305
SELECT 30 * - + CAST( - 8 AS SIGNED ) AS col2
----
240

skipif mysql # not compatible
query I rowsort label-1305
SELECT 30 * - + CAST ( - 8 AS INTEGER ) AS col2
----
240

query I rowsort
SELECT 36 + 71
----
107

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT MIN ( ALL + + 31 ) + + ( COUNT ( * ) ) AS col0
----
32

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

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

query II rowsort
SELECT 73 AS col2, + 57
----
73
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT DISTINCT ( 35 ) * + - 69 * + SUM( + 72 )
----
-173880

skipif mysql # not compatible
query I rowsort label-1310
SELECT DISTINCT ( 35 ) * + - 69 * + SUM ( + 72 )
----
-173880

onlyif mysql # aggregate syntax: 
query II rowsort label-1311
SELECT ALL 20, - 41 + + 28 + 56 + - COUNT( * ) + - 74 AS col0
----
20
-32

skipif mysql # not compatible
query II rowsort label-1311
SELECT ALL 20, - 41 + + 28 + 56 + - COUNT ( * ) + - 74 AS col0
----
20
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT ALL 8 + + - 70 + SUM( - 60 )
----
-122

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL 8 + + - 70 + SUM ( - 60 )
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1313
SELECT COUNT( * ) * CASE - COUNT( ALL 47 ) WHEN + 79 - - 40 THEN - 23 WHEN + CAST( - 19 AS SIGNED ) THEN + 15 + ( - - 27 ) * - CAST( NULL AS SIGNED ) DIV + 97 * - 32 * 90 WHEN - 54 + - 79 THEN - 23 DIV + 91 - - - 33 + COALESCE ( 7, + CASE + 78 WHEN 5 THEN - 34 WHEN CAST( - 92 AS SIGNED ) THEN 71 * - 38 END DIV 94 - + 89 ) * + COUNT( * ) WHEN 48 DIV + + COALESCE ( - + COUNT( * ), + CASE 39 WHEN CAST( NULL AS DECIMAL ) * 51 THEN NULL WHEN 83 THEN ( + 82 ) ELSE - 86 * 78 END ) + 28 THEN - ( - 59 ) - - 78 ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1313
SELECT COUNT ( * ) * CASE - COUNT ( ALL 47 ) WHEN + 79 - - 40 THEN - 23 WHEN + CAST ( - 19 AS INTEGER ) THEN + 15 + ( - - 27 ) * - CAST ( NULL AS INTEGER ) / + 97 * - 32 * 90 WHEN - 54 + - 79 THEN - 23 / + 91 - - - 33 + COALESCE ( 7, + CASE + 78 WHEN 5 THEN - 34 WHEN CAST ( - 92 AS INTEGER ) THEN 71 * - 38 END / 94 - + 89 ) * + COUNT ( * ) WHEN 48 / + + COALESCE ( - + COUNT ( * ), + CASE 39 WHEN CAST ( NULL AS REAL ) * 51 THEN NULL WHEN 83 THEN ( + 82 ) ELSE - 86 * 78 END ) + 28 THEN - ( - 59 ) - - 78 ELSE + COUNT ( * ) END AS col2
----
1

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

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

query II rowsort
SELECT - - 83, 84 AS col1
----
83
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT + 16 + - 55 - + + MIN( 47 ) * ( + - 16 ) * - 12 * - 13 AS col0
----
117273

skipif mysql # not compatible
query I rowsort label-1316
SELECT + 16 + - 55 - + + MIN ( 47 ) * ( + - 16 ) * - 12 * - 13 AS col0
----
117273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1317
SELECT ALL - ( + + 67 ) + 16 + + 32 + - CASE CAST( NULL AS SIGNED ) WHEN - 56 THEN + MAX( + 61 ) ELSE NULL END + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL - ( + + 67 ) + 16 + + 32 + - CASE CAST ( NULL AS INTEGER ) WHEN - 56 THEN + MAX ( + 61 ) ELSE NULL END + 62 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT ALL + 6 + 25 DIV - ( - + 99 )
----
6

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL + 6 + 25 / - ( - + 99 )
----
6

query I rowsort
SELECT ALL 13 + ( - + 68 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT + 36 * - 57 + + + 53 + 40 DIV + 41 * + - ( - 2 ) col2
----
-1999

skipif mysql # not compatible
query I rowsort label-1320
SELECT + 36 * - 57 + + + 53 + 40 / + 41 * + - ( - 2 ) col2
----
-1999

query II rowsort
SELECT + 35 AS col2, - 72 AS col0
----
35
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1322
SELECT ALL - 23 DIV - 82 * + NULLIF ( - - 20, CASE 31 WHEN + 90 + + + MAX( DISTINCT - 21 ) + COUNT( * ) * + 3 THEN 86 ELSE + + 61 * - 84 + + - COUNT( * ) END )
----
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL - 23 / - 82 * + NULLIF ( - - 20, CASE 31 WHEN + 90 + + + MAX ( DISTINCT - 21 ) + COUNT ( * ) * + 3 THEN 86 ELSE + + 61 * - 84 + + - COUNT ( * ) END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT + ( - COUNT( * ) ) - 44 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1323
SELECT + ( - COUNT ( * ) ) - 44 AS col0
----
-45

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

skipif mysql # not compatible
query I rowsort label-1324
SELECT + MAX ( 27 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1325
SELECT ALL - CAST( 89 AS SIGNED ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL - CAST ( 89 AS INTEGER ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1326
SELECT + CAST( NULL AS SIGNED ), 88 * + 82 - + 86 AS col1
----
NULL
7130

skipif mysql # not compatible
query II rowsort label-1326
SELECT + CAST ( NULL AS INTEGER ), 88 * + 82 - + 86 AS col1
----
NULL
7130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1327
SELECT 31 - + 7 + 63 * - + NULLIF ( 57, CAST( + 86 AS SIGNED ) + + - MAX( DISTINCT - + 65 ) ) AS col0, 45 - + 75 DIV - 79 AS col2
----
-3567
45

skipif mysql # not compatible
query II rowsort label-1327
SELECT 31 - + 7 + 63 * - + NULLIF ( 57, CAST ( + 86 AS INTEGER ) + + - MAX ( DISTINCT - + 65 ) ) AS col0, 45 - + 75 / - 79 AS col2
----
-3567
45

query I rowsort
SELECT ALL + + 0 - - 9 AS col0
----
9

query II rowsort
SELECT + + 54 AS col1, 10
----
54
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT + 78 * - COUNT( * ) + + 79 + + 50 + + SUM( - 59 ) * 55 * + 22 + + - 49
----
-71388

skipif mysql # not compatible
query I rowsort label-1330
SELECT + 78 * - COUNT ( * ) + + 79 + + 50 + + SUM ( - 59 ) * 55 * + 22 + + - 49
----
-71388

query I rowsort
SELECT 0 - 76
----
-76

query I rowsort
SELECT ALL 82 * - 95
----
-7790

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1333
SELECT CAST( NULL AS SIGNED ) + + 91 AS col1, 54 * 59 col0
----
NULL
3186

skipif mysql # not compatible
query II rowsort label-1333
SELECT CAST ( NULL AS INTEGER ) + + 91 AS col1, 54 * 59 col0
----
NULL
3186

query I rowsort
SELECT 40 * 56
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT COUNT( * ) + - 35 + - 70 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-1335
SELECT COUNT ( * ) + - 35 + - 70 AS col1
----
-104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT 19 * - NULLIF ( 84, + 72 ) * - ( CASE + + COUNT( * ) WHEN 62 THEN NULL ELSE - 57 END ) + + + 40 + + + 13 + - 45
----
-90964

skipif mysql # not compatible
query I rowsort label-1337
SELECT 19 * - NULLIF ( 84, + 72 ) * - ( CASE + + COUNT ( * ) WHEN 62 THEN NULL ELSE - 57 END ) + + + 40 + + + 13 + - 45
----
-90964

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

query I rowsort
SELECT DISTINCT - 1 * ( - + 1 ) * + - 73
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT 55 * + - COUNT( + + 62 )
----
-55

skipif mysql # not compatible
query I rowsort label-1341
SELECT 55 * + - COUNT ( + + 62 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1342
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 31 AS col1, + 55 + - + 54 AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1342
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 31 AS col1, + 55 + - + 54 AS col2
----
NULL
1

query I rowsort
SELECT 36 - + ( + + 93 )
----
-57

query I rowsort
SELECT ALL - 93 + - NULLIF ( - 62, - + 95 ) + 92 col1
----
61

query I rowsort
SELECT 45 + - 16
----
29

query I rowsort
SELECT 81 * + 50 AS col2
----
4050

query I rowsort
SELECT 55 * + 62
----
3410

query I rowsort
SELECT ALL 2 + - 88
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL - 35 + + MIN( + 67 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - 35 + + MIN ( + 67 ) AS col1
----
32

query I rowsort
SELECT DISTINCT + + 85 + - 14
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1351
SELECT ALL - COALESCE ( - CAST( AVG ( + 15 ) AS SIGNED ), - - 1 DIV + 88 - - + CASE - 89 WHEN + - COALESCE ( + 11, - ( - 13 ) * + + COALESCE ( - + 68, AVG ( + + 82 ) * + + COUNT( * ) * - NULLIF ( ( 51 ), - - 88 + + 22 ), + 10 ) * - 28 + + 14 - - - 83 - + + CAST( NULL AS SIGNED ) * - 5 ) THEN NULL WHEN - NULLIF ( MIN( 70 ), 4 ) - - + AVG ( ALL + 93 ) THEN + 37 * 46 + 6 WHEN + 52 THEN - NULLIF ( + ( + CAST( - 35 AS SIGNED ) ), + NULLIF ( CAST( 55 AS SIGNED ), - 43 + 28 ) * - 19 ) * - 48 END )
----
15

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL - COALESCE ( - CAST ( AVG ( + 15 ) AS INTEGER ), - - 1 / + 88 - - + CASE - 89 WHEN + - COALESCE ( + 11, - ( - 13 ) * + + COALESCE ( - + 68, AVG ( + + 82 ) * + + COUNT ( * ) * - NULLIF ( ( 51 ), - - 88 + + 22 ), + 10 ) * - 28 + + 14 - - - 83 - + + CAST ( NULL AS INTEGER ) * - 5 ) THEN NULL WHEN - NULLIF ( MIN ( 70 ), 4 ) - - + AVG ( ALL + 93 ) THEN + 37 * 46 + 6 WHEN + 52 THEN - NULLIF ( + ( + CAST ( - 35 AS INTEGER ) ), + NULLIF ( CAST ( 55 AS INTEGER ), - 43 + 28 ) * - 19 ) * - 48 END )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1352
SELECT ALL MIN( DISTINCT NULLIF ( - - 7, 89 + + - 32 ) ) + + + ( - 88 ) + - 66 DIV + COALESCE ( + 28, 93 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL MIN ( DISTINCT NULLIF ( - - 7, 89 + + - 32 ) ) + + + ( - 88 ) + - 66 / + COALESCE ( + 28, 93 ) AS col1
----
-83

query II rowsort
SELECT - 67 - 75, + 30 col0
----
-142
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1354
SELECT ALL + 44 + 63 - - COUNT( * ) * 90 / + CAST( NULL AS SIGNED ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1354
SELECT ALL + 44 + 63 - - COUNT ( * ) * 90 / + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL - 94 + + 88 + + SUM( - 48 ) + + - NULLIF ( + COUNT( * ), - ( + COUNT( DISTINCT 84 ) ) )
----
-55

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - 94 + + 88 + + SUM ( - 48 ) + + - NULLIF ( + COUNT ( * ), - ( + COUNT ( DISTINCT 84 ) ) )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - 56 * 4 - COUNT( * )
----
-225

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 56 * 4 - COUNT ( * )
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT COUNT( * ) + + + NULLIF ( COUNT( * ), - 97 + + 81 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1357
SELECT COUNT ( * ) + + + NULLIF ( COUNT ( * ), - 97 + + 81 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1358
SELECT 34 DIV - 85 - COALESCE ( + 21, - 10, - 40 + 47 + - 96 * + + CAST( NULL AS SIGNED ) * - - 95 ) + COALESCE ( - 28, + 90 + 35 * - NULLIF ( + MAX( DISTINCT - 93 ), + 59 DIV 67 ) ) + COALESCE ( - 23, - MIN( 94 ) + CASE 98 WHEN - SUM( DISTINCT + + 81 ) * 58 + - 63 THEN + - 53 WHEN + + MAX( DISTINCT + 37 ) THEN NULL END ) * + 83
----
-1958

skipif mysql # not compatible
query I rowsort label-1358
SELECT 34 / - 85 - COALESCE ( + 21, - 10, - 40 + 47 + - 96 * + + CAST ( NULL AS INTEGER ) * - - 95 ) + COALESCE ( - 28, + 90 + 35 * - NULLIF ( + MAX ( DISTINCT - 93 ), + 59 / 67 ) ) + COALESCE ( - 23, - MIN ( 94 ) + CASE 98 WHEN - SUM ( DISTINCT + + 81 ) * 58 + - 63 THEN + - 53 WHEN + + MAX ( DISTINCT + 37 ) THEN NULL END ) * + 83
----
-1958

query I rowsort
SELECT ALL + 60 * + 36 - - 92 AS col1
----
2252

query I rowsort
SELECT 77 * - 43 * + + 32 AS col2
----
-105952

query I rowsort
SELECT DISTINCT - 74 * 35 - - 58 + - 38 AS col0
----
-2570

query I rowsort
SELECT + 6 * + 62 AS col1
----
372

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT - 89 DIV + - 74 * 1 + + - 56 col0
----
-55

skipif mysql # not compatible
query I rowsort label-1363
SELECT - 89 / + - 74 * 1 + + - 56 col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT ALL + - CASE 87 WHEN + CAST( NULL AS SIGNED ) THEN CAST( 79 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + - CASE 87 WHEN + CAST ( NULL AS INTEGER ) THEN CAST ( 79 AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + 52 + - + 81 + - + 97 + + 35 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT - 34 * - ( CASE - 21 WHEN 65 THEN + + 52 * + 55 * - ( 65 ) * + 92 * - COUNT( * ) ELSE 94 END ) * 32
----
102272

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 34 * - ( CASE - 21 WHEN 65 THEN + + 52 * + 55 * - ( 65 ) * + 92 * - COUNT ( * ) ELSE 94 END ) * 32
----
102272

query I rowsort
SELECT DISTINCT 40 * - 53
----
-2120

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1369
SELECT + 4 * ( 27 ) col2, 12 + + + 85 * + COUNT( * ) AS col0, - 66
----
108
97
-66

skipif mysql # not compatible
query III rowsort label-1369
SELECT + 4 * ( 27 ) col2, 12 + + + 85 * + COUNT ( * ) AS col0, - 66
----
108
97
-66

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

skipif mysql # not compatible
query I rowsort label-1370
SELECT MAX ( - 6 )
----
-6

query I rowsort
SELECT ALL - 87 + - + 55 AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT COUNT( 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1372
SELECT COUNT ( 61 ) AS col2
----
1

query II rowsort
SELECT ALL + 24 + + + 10 * - + 60, 48 + - 16 AS col2
----
-576
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT - COUNT( * ) * + 48 * + COALESCE ( - COUNT( * ), - 81 DIV - - 49 ) + 15
----
63

skipif mysql # not compatible
query I rowsort label-1375
SELECT - COUNT ( * ) * + 48 * + COALESCE ( - COUNT ( * ), - 81 / - - 49 ) + 15
----
63

query I rowsort
SELECT ALL 32 + 91 AS col1
----
123

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

query II rowsort
SELECT 22 AS col2, 68
----
22
68

query I rowsort
SELECT + 15 + + + 90 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1380
SELECT - COALESCE ( - + CASE + 94 WHEN + - 89 + - - 85 THEN - 32 WHEN + - AVG ( ALL - CAST( + 5 AS SIGNED ) ) + - CAST( NULL AS SIGNED ) + 23 + ( - CASE - NULLIF ( + + 3, - + COUNT( * ) ) WHEN - 53 * - + 54 THEN NULL ELSE + 61 END ) + NULLIF ( - COUNT( * ), + COUNT( * ) + - COUNT( * ) + 93 ) * - 62 THEN 43 + + + 85 ELSE NULL END, 47 * - 26 + - 65 + 43 ) + - 46
----
1198

skipif mysql # not compatible
query I rowsort label-1380
SELECT - COALESCE ( - + CASE + 94 WHEN + - 89 + - - 85 THEN - 32 WHEN + - AVG ( ALL - CAST ( + 5 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) + 23 + ( - CASE - NULLIF ( + + 3, - + COUNT ( * ) ) WHEN - 53 * - + 54 THEN NULL ELSE + 61 END ) + NULLIF ( - COUNT ( * ), + COUNT ( * ) + - COUNT ( * ) + 93 ) * - 62 THEN 43 + + + 85 ELSE NULL END, 47 * - 26 + - 65 + 43 ) + - 46
----
1198

query I rowsort
SELECT ALL + 52 + - 12
----
40

query I rowsort
SELECT DISTINCT - 79 * + - 93 AS col1
----
7347

query I rowsort
SELECT ALL + 25 + + 61
----
86

query I rowsort
SELECT - + 78 + + - 64 + - ( + 56 )
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-1385
SELECT + 47, + COUNT( * ) AS col1
----
47
1

skipif mysql # not compatible
query II rowsort label-1385
SELECT + 47, + COUNT ( * ) AS col1
----
47
1

query I rowsort
SELECT ALL - + 20 * - - COALESCE ( + - 55, - 58 ) + - 46
----
1054

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT - 18 DIV - ( + ( - 11 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1387
SELECT - 18 / - ( + ( - 11 ) ) AS col1
----
-1

query I rowsort
SELECT - ( - 80 ) + 81 AS col2
----
161

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - COUNT( + 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1390
SELECT - COUNT ( + 55 ) AS col0
----
-1

query I rowsort
SELECT ALL - + 28 * - 60
----
1680

query I rowsort
SELECT - + ( 57 ) * - 57 + + 80 * - 6 + - 90
----
2679

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + 3 * 63 * + 31 * - 29 * 70 * ( + COUNT( * ) )
----
-11893770

skipif mysql # not compatible
query I rowsort label-1393
SELECT + 3 * 63 * + 31 * - 29 * 70 * ( + COUNT ( * ) )
----
-11893770

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

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

query I rowsort
SELECT - 47 - 67 - - 47 - - 88 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT - - 76 * ( - - COUNT( * ) ) + + 65 + - + 79 * + COUNT( * ) * + 86 * - - 88 + 29 col0
----
-597702

skipif mysql # not compatible
query I rowsort label-1396
SELECT - - 76 * ( - - COUNT ( * ) ) + + 65 + - + 79 * + COUNT ( * ) * + 86 * - - 88 + 29 col0
----
-597702

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ( SUM( DISTINCT - 15 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1397
SELECT ( SUM ( DISTINCT - 15 ) ) AS col1
----
-15

query I rowsort
SELECT ALL + 55 * - - 15 + - - 88 col0
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT - 97 * 95 + - COUNT( * )
----
-9216

skipif mysql # not compatible
query I rowsort label-1399
SELECT - 97 * 95 + - COUNT ( * )
----
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT DISTINCT + CAST( + MAX( DISTINCT 20 ) AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT + CAST ( + MAX ( DISTINCT 20 ) AS INTEGER ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT ALL - COALESCE ( - NULLIF ( COUNT( * ), + 6 ), + + 23 ) * - 12 * + 49 + COUNT( 93 ) + + 7
----
-580

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL - COALESCE ( - NULLIF ( COUNT ( * ), + 6 ), + + 23 ) * - 12 * + 49 + COUNT ( 93 ) + + 7
----
-580

query I rowsort
SELECT + 75 * - 10 AS col2
----
-750

query II rowsort
SELECT + NULLIF ( - 23, 48 * - + 97 / - 84 ) - + 36 AS col0, - 73 AS col0
----
-59
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-1404
SELECT ALL + COUNT( * ), 33 * + - 17 AS col1
----
1
-561

skipif mysql # not compatible
query II rowsort label-1404
SELECT ALL + COUNT ( * ), 33 * + - 17 AS col1
----
1
-561

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1405
SELECT + 39 DIV - 53, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-1405
SELECT + 39 / - 53, COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT + 97 + - 39 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1407
SELECT + CAST( NULL AS SIGNED ) AS col1, MAX( + - 99 )
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-1407
SELECT + CAST ( NULL AS INTEGER ) AS col1, MAX ( + - 99 )
----
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT + 15 * - COALESCE ( CASE NULLIF ( + 36, + 59 + + - COALESCE ( + + 30, 64 ) - - 58 * - 8 ) WHEN + - ( - CASE - 82 WHEN - 39 THEN 3 / - 63 / 86 * - 77 END ) + - 73 THEN NULL WHEN + NULLIF ( - - 58, + COALESCE ( 9, + - AVG ( DISTINCT - 66 ) * - 80 ) ) / + 32 THEN NULL ELSE COUNT( * ) END, + 67, - + 27 ) * + 36
----
-540

skipif mysql # not compatible
query I rowsort label-1408
SELECT + 15 * - COALESCE ( CASE NULLIF ( + 36, + 59 + + - COALESCE ( + + 30, 64 ) - - 58 * - 8 ) WHEN + - ( - CASE - 82 WHEN - 39 THEN 3 / - 63 / 86 * - 77 END ) + - 73 THEN NULL WHEN + NULLIF ( - - 58, + COALESCE ( 9, + - AVG ( DISTINCT - 66 ) * - 80 ) ) / + 32 THEN NULL ELSE COUNT ( * ) END, + 67, - + 27 ) * + 36
----
-540

query I rowsort
SELECT ALL 85 * - + 52 AS col1
----
-4420

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1410
SELECT - ( - NULLIF ( - 40, - 22 * - COUNT( DISTINCT - 13 ) ) ) AS col0, + MAX( DISTINCT 57 ) DIV + - 87
----
-40
0

skipif mysql # not compatible
query II rowsort label-1410
SELECT - ( - NULLIF ( - 40, - 22 * - COUNT ( DISTINCT - 13 ) ) ) AS col0, + MAX ( DISTINCT 57 ) / + - 87
----
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1411
SELECT ALL CAST( + + 88 AS SIGNED ) * - + 56 + 98 * 21
----
-2870

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL CAST ( + + 88 AS INTEGER ) * - + 56 + 98 * 21
----
-2870

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1413
SELECT ALL 68, COUNT( + + 11 ) AS col2
----
68
1

skipif mysql # not compatible
query II rowsort label-1413
SELECT ALL 68, COUNT ( + + 11 ) AS col2
----
68
1

query I rowsort
SELECT ALL CASE - 20 WHEN - - 67 * - + 31 THEN + 76 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 19 * + ( - + 31 ) AS col0
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT + MAX( DISTINCT - - 72 ) - - - 77
----
-5

skipif mysql # not compatible
query I rowsort label-1416
SELECT + MAX ( DISTINCT - - 72 ) - - - 77
----
-5

query I rowsort
SELECT - 58 * 26 * 15 * - + 64 AS col1
----
1447680

onlyif mysql # aggregate syntax: 
query II rowsort label-1418
SELECT - 20, 64 + - + 75 * - - 57 - - COUNT( 78 ) * + + 10 col2
----
-20
-4201

skipif mysql # not compatible
query II rowsort label-1418
SELECT - 20, 64 + - + 75 * - - 57 - - COUNT ( 78 ) * + + 10 col2
----
-20
-4201

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - COUNT( + - 0 ) * - - 39 * - MAX( + - 30 ) AS col0
----
-1170

skipif mysql # not compatible
query I rowsort label-1419
SELECT - COUNT ( + - 0 ) * - - 39 * - MAX ( + - 30 ) AS col0
----
-1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1420
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) + + + 96 * 27 * - 64 / + + 22 * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1420
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) + + + 96 * 27 * - 64 / + + 22 * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT - COALESCE ( + - COUNT( * ), - 21 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1421
SELECT - COALESCE ( + - COUNT ( * ), - 21 ) AS col2
----
1

query I rowsort
SELECT + - 56 * - + 83 AS col2
----
4648

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1424
SELECT ALL - COUNT( * ) col0, 71 * + CAST( NULL AS SIGNED ) + - MAX( DISTINCT - + 94 ) + - - 39 * 44 col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1424
SELECT ALL - COUNT ( * ) col0, 71 * + CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT - + 94 ) + - - 39 * 44 col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT ALL - 11 * - + 75 * - CAST( NULL AS SIGNED ) * - - CAST( 24 AS SIGNED ) * + + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - 11 * - + 75 * - CAST ( NULL AS INTEGER ) * - - CAST ( 24 AS INTEGER ) * + + 77 AS col0
----
NULL

query I rowsort
SELECT - 65 - - + 74 AS col1
----
9

query II rowsort
SELECT - - 37 AS col0, - CASE + - 32 WHEN + AVG ( ALL 39 ) / 56 THEN - - 8 END
----
37
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1429
SELECT MAX( ALL - + CAST( NULL AS SIGNED ) ) + - 19 * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT MAX ( ALL - + CAST ( NULL AS INTEGER ) ) + - 19 * + + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1430
SELECT ALL - CASE - - MIN( - + 49 ) WHEN - + CASE - 36 WHEN + 21 * - - COUNT( * ) + + COUNT( * ) THEN 97 END * + 44 THEN - 78 * + - 18 * 78 + + 80 * COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + - 33 + + - 38 * 34 THEN NULL END * - 26 + 61 AS col2, - 9 AS col2
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL - CASE - - MIN ( - + 49 ) WHEN - + CASE - 36 WHEN + 21 * - - COUNT ( * ) + + COUNT ( * ) THEN 97 END * + 44 THEN - 78 * + - 18 * 78 + + 80 * COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + - 33 + + - 38 * 34 THEN NULL END * - 26 + 61 AS col2, - 9 AS col2
----
NULL
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT - - 86 * - COUNT( * ) + + 65 - + 5 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1431
SELECT - - 86 * - COUNT ( * ) + + 65 - + 5 AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT + CASE - 90 WHEN - 54 / 59 + + 50 * + 69 THEN + - ( - + CAST( NULL AS SIGNED ) ) WHEN - 83 THEN NULL ELSE NULL END + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT + CASE - 90 WHEN - 54 / 59 + + 50 * + 69 THEN + - ( - + CAST ( NULL AS INTEGER ) ) WHEN - 83 THEN NULL ELSE NULL END + 9
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1434
SELECT ALL - 23 + - 27 - + + COUNT( * ) + + COUNT( * ) + 88 * - + CAST( + 2 AS SIGNED ) AS col1, + 36 AS col1
----
-226
36

skipif mysql # not compatible
query II rowsort label-1434
SELECT ALL - 23 + - 27 - + + COUNT ( * ) + + COUNT ( * ) + 88 * - + CAST ( + 2 AS INTEGER ) AS col1, + 36 AS col1
----
-226
36

query I rowsort
SELECT ALL + 69 + + 54 * + 77
----
4227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT - 93 * + + ( - + COALESCE ( - + 15, + 83, MAX( + CAST( NULL AS SIGNED ) ), + + COUNT( * ) ) ) + + + 26
----
-1369

skipif mysql # not compatible
query I rowsort label-1436
SELECT - 93 * + + ( - + COALESCE ( - + 15, + 83, MAX ( + CAST ( NULL AS INTEGER ) ), + + COUNT ( * ) ) ) + + + 26
----
-1369

query I rowsort
SELECT DISTINCT - 42 + 93 + + - 46
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT 69 * - + ( + 11 ) + + 8 * - + 83 * COUNT( ALL + - 3 ) + + + 23 + 4
----
-1396

skipif mysql # not compatible
query I rowsort label-1438
SELECT 69 * - + ( + 11 ) + + 8 * - + 83 * COUNT ( ALL + - 3 ) + + + 23 + 4
----
-1396

query I rowsort
SELECT 39 * + 97 * - 91 AS col2
----
-344253

query I rowsort
SELECT 61 * + 87 + - 3
----
5304

onlyif mysql # aggregate syntax: 
query II rowsort label-1441
SELECT 64 * - 31, COUNT( * ) + - 49 AS col2
----
-1984
-48

skipif mysql # not compatible
query II rowsort label-1441
SELECT 64 * - 31, COUNT ( * ) + - 49 AS col2
----
-1984
-48

query I rowsort
SELECT + 23 * + 50 + + 98 * - - 65 AS col0
----
7520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1443
SELECT ALL COUNT( * ) DIV 88 * - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL COUNT ( * ) / 88 * - 79 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1444
SELECT + 60 * ( + MAX( DISTINCT + + 82 ) ) + 98, - 76 AS col1
----
5018
-76

skipif mysql # not compatible
query II rowsort label-1444
SELECT + 60 * ( + MAX ( DISTINCT + + 82 ) ) + 98, - 76 AS col1
----
5018
-76

query I rowsort
SELECT + ( + + 88 ) + - - 52 AS col2
----
140

query I rowsort
SELECT - 60 * + 61 AS col2
----
-3660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1447
SELECT ALL - 7 DIV + COUNT( * ) AS col1
----
-7

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1448
SELECT + COUNT( - 61 ) + 87 + + 86 DIV + + 19
----
92

skipif mysql # not compatible
query I rowsort label-1448
SELECT + COUNT ( - 61 ) + 87 + + 86 / + + 19
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1449
SELECT - COUNT( * ) DIV - 18 * - 11 AS col2, 15 * - 76 AS col1
----
0
-1140

skipif mysql # not compatible
query II rowsort label-1449
SELECT - COUNT ( * ) / - 18 * - 11 AS col2, 15 * - 76 AS col1
----
0
-1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT - - CAST( - 98 AS SIGNED ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1450
SELECT - - CAST ( - 98 AS INTEGER ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1451
SELECT + COALESCE ( - ( - + 5 ), + 6 ) DIV - ( - - CAST( + ( + 45 ) AS SIGNED ) ) + + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1451
SELECT + COALESCE ( - ( - + 5 ), + 6 ) / - ( - - CAST ( + ( + 45 ) AS INTEGER ) ) + + - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT - 36 + 97 AS col1, 54 * + 12 AS col0
----
61
648

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL - COUNT( 2 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - COUNT ( 2 ) AS col2
----
-1

query I rowsort
SELECT - 76 * - 65
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT + ( 92 ) + + - 16 + + + 82 + CASE - 9 WHEN - 83 * - + ( + 34 ) * + 62 THEN + COUNT( DISTINCT 0 ) / ( - 1 ) + ( - COUNT( * ) ) + + - 67 - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT + ( 92 ) + + - 16 + + + 82 + CASE - 9 WHEN - 83 * - + ( + 34 ) * + 62 THEN + COUNT ( DISTINCT 0 ) / ( - 1 ) + ( - COUNT ( * ) ) + + - 67 - - COUNT ( * ) END AS col1
----
NULL

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

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

query I rowsort
SELECT 44 + - + 69 col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1458
SELECT ALL + - SUM( 73 ) + - CAST( NULL AS SIGNED ) - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL + - SUM ( 73 ) + - CAST ( NULL AS INTEGER ) - + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT ALL - CAST( + + 68 AS SIGNED ) + - - 98 + - 51
----
-21

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL - CAST ( + + 68 AS INTEGER ) + - - 98 + - 51
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT DISTINCT + 82 * - NULLIF ( 64, - COALESCE ( - + COUNT( * ), + CAST( NULL AS SIGNED ) ) )
----
-5248

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + 82 * - NULLIF ( 64, - COALESCE ( - + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) )
----
-5248

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

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT - MAX ( 49 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT DISTINCT 81 + CAST( 62 AS SIGNED ) * 48 AS col0
----
3057

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT 81 + CAST ( 62 AS INTEGER ) * 48 AS col0
----
3057

query I rowsort
SELECT ALL + 65 * - 49 * - ( + 36 )
----
114660

query I rowsort
SELECT ALL - 37 + + ( + - AVG ( - CASE - - ( + - 19 ) WHEN + 83 + + + 61 + - 53 / 87 THEN + 79 WHEN - - 33 THEN NULL ELSE NULL END ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1465
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) * 1, 66 AS col0
----
1
66

skipif mysql # not compatible
query II rowsort label-1465
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) * 1, 66 AS col0
----
1
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1466
SELECT COUNT( * ) * COALESCE ( - - 23, - ( - - CAST( - 89 AS SIGNED ) ) * + COALESCE ( - 95, + - 20, + COUNT( * ) + NULLIF ( - COUNT( * ), + ( 28 ) * 87 + + - AVG ( 29 ) * + 92 ), - + 75 ), - - COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1466
SELECT COUNT ( * ) * COALESCE ( - - 23, - ( - - CAST ( - 89 AS INTEGER ) ) * + COALESCE ( - 95, + - 20, + COUNT ( * ) + NULLIF ( - COUNT ( * ), + ( 28 ) * 87 + + - AVG ( 29 ) * + 92 ), - + 75 ), - - COUNT ( * ) ) AS col0
----
23

query I rowsort
SELECT 74 * 9 AS col1
----
666

query I rowsort
SELECT ALL + 65 * - + 46
----
-2990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1469
SELECT DISTINCT - 11 * + COALESCE ( - CAST( NULL AS SIGNED ), - 38 + - ( + 76 ) ) AS col2
----
1254

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT - 11 * + COALESCE ( - CAST ( NULL AS INTEGER ), - 38 + - ( + 76 ) ) AS col2
----
1254

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

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

query I rowsort
SELECT ALL + 38 - + 69
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT 64 * - + 51 * COUNT( * )
----
-3264

skipif mysql # not compatible
query I rowsort label-1472
SELECT 64 * - + 51 * COUNT ( * )
----
-3264

query I rowsort
SELECT ALL + 75 - - - 96 AS col2
----
-21

query I rowsort
SELECT ALL - COALESCE ( + 26, + + 62 ) AS col2
----
-26

query I rowsort
SELECT DISTINCT + 75 - + 14 AS col2
----
61

query I rowsort
SELECT 64 * - 35 AS col2
----
-2240

query I rowsort
SELECT DISTINCT + 78 * + + 41
----
3198

query I rowsort
SELECT 20 * + 83
----
1660

query I rowsort
SELECT ALL 37 * - 48 AS col1
----
-1776

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

skipif mysql # not compatible
query I rowsort label-1480
SELECT + MIN ( 49 )
----
49

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

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

query II rowsort
SELECT ALL - 10 AS col2, 7
----
-10
7

query I rowsort
SELECT DISTINCT + CASE + + ( - 37 ) WHEN - - 9 + 76 THEN - 6 * + - 1 WHEN + 72 THEN NULL ELSE - 5 END AS col2
----
-5

query II rowsort
SELECT ALL 77, + 16 AS col0
----
77
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + COUNT( * ) * - - 43 + + 28 + - 42 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-1485
SELECT + COUNT ( * ) * - - 43 + + 28 + - 42 AS col1
----
29

query I rowsort
SELECT ALL + 84 * 49 AS col0
----
4116

query II rowsort
SELECT 61, 84 + 40 AS col2
----
61
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1488
SELECT + + 40 DIV + 56 + + - MAX( + ( - 28 ) ) DIV + + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1488
SELECT + + 40 / + 56 + + - MAX ( + ( - 28 ) ) / + + 67 AS col1
----
0

query I rowsort
SELECT - + 54 + - 76
----
-130

query I rowsort
SELECT ALL 66 + - 72 AS col2
----
-6

query I rowsort
SELECT + 36 * - 52
----
-1872

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT ALL - + 17 DIV - + 10
----
1

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - + 17 / - + 10
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1493
SELECT ALL 10 + + MIN( - 36 ) * - ( 70 ) * + 6 * + 36 * + - 6 + - 98, - 65 col2
----
-3266008
-65

skipif mysql # not compatible
query II rowsort label-1493
SELECT ALL 10 + + MIN ( - 36 ) * - ( 70 ) * + 6 * + 36 * + - 6 + - 98, - 65 col2
----
-3266008
-65

query I rowsort
SELECT ALL - ( - 16 ) * - 24
----
-384

query I rowsort
SELECT + - 13 + - 66 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL 40 + COUNT( 55 ) * + + 11
----
51

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL 40 + COUNT ( 55 ) * + + 11
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1497
SELECT + NULLIF ( - - CAST( NULL AS DECIMAL ), 9 - - 76 ) + + 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT + NULLIF ( - - CAST ( NULL AS REAL ), 9 - - 76 ) + + 73 col1
----
NULL

query II rowsort
SELECT ALL 34 * - 21 AS col0, 22
----
-714
22

query I rowsort
SELECT + 98 + - ( + 81 ) AS col0
----
17

query I rowsort
SELECT + NULLIF ( + 99, - - NULLIF ( + 76, + - 2 ) ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1501
SELECT + 9 * + 10 * + 49 * + 89 - + 54 * + MAX( 57 ) + COUNT( * ) - + NULLIF ( - 80, - 83 * 34 ) AS col1, + 95 col0
----
389493
95

skipif mysql # not compatible
query II rowsort label-1501
SELECT + 9 * + 10 * + 49 * + 89 - + 54 * + MAX ( 57 ) + COUNT ( * ) - + NULLIF ( - 80, - 83 * 34 ) AS col1, + 95 col0
----
389493
95

query I rowsort
SELECT ALL 28 * + 94 * 8 - 30 * + 98 + - + 2 AS col2
----
18114

query II rowsort
SELECT ( - 38 ) AS col1, 95 AS col2
----
-38
95

query I rowsort
SELECT ALL - 34 * + 83
----
-2822

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT + 52 DIV 9 + 91 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1505
SELECT + 52 / 9 + 91 AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1506
SELECT + COUNT( * ) DIV + 62 + + 68 + + + 60 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-1506
SELECT + COUNT ( * ) / + 62 + + 68 + + + 60 AS col1
----
128

query I rowsort
SELECT - 14 * + - 84
----
1176

query I rowsort
SELECT ALL - 35 * 14 * + + 25 AS col0
----
-12250

query I rowsort
SELECT + 26 + 22 + + 45 + - 40
----
53

query I rowsort
SELECT - 90 * + 17 AS col0
----
-1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1511
SELECT + 27 * - 67 + + COUNT( * ) + 20 + + 20 DIV - COUNT( * )
----
-1808

skipif mysql # not compatible
query I rowsort label-1511
SELECT + 27 * - 67 + + COUNT ( * ) + 20 + + 20 / - COUNT ( * )
----
-1808

query I rowsort
SELECT - 95 * 93 - - 8 AS col0
----
-8827

onlyif mysql # aggregate syntax: 
query II rowsort label-1513
SELECT DISTINCT + 3 * - - 9 + CASE - 44 WHEN + + 39 THEN NULL WHEN - 49 * - 4 THEN - COUNT( + 0 ) END AS col0, + ( - 8 ) * 87 * - + 0 - 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1513
SELECT DISTINCT + 3 * - - 9 + CASE - 44 WHEN + + 39 THEN NULL WHEN - 49 * - 4 THEN - COUNT ( + 0 ) END AS col0, + ( - 8 ) * 87 * - + 0 - 0 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1514
SELECT ALL - 74 * 41 + 74 DIV 79 + + COALESCE ( + + 49, - + 98 ) AS col2, ( 48 ) * MIN( - + 82 )
----
-2985
-3936

skipif mysql # not compatible
query II rowsort label-1514
SELECT ALL - 74 * 41 + 74 / 79 + + COALESCE ( + + 49, - + 98 ) AS col2, ( 48 ) * MIN ( - + 82 )
----
-2985
-3936

query II rowsort
SELECT - - 19 + + + 50 AS col1, 52 AS col2
----
69
52

query I rowsort
SELECT - 98 * + + 65 * - 17 * + 28 + - ( - 43 ) AS col2
----
3032163

onlyif mysql # DIV for integer division: 
query I rowsort label-1517
SELECT + 67 + - - 57 DIV 27
----
69

skipif mysql # not compatible
query I rowsort label-1517
SELECT + 67 + - - 57 / 27
----
69

query I rowsort
SELECT ALL - 72 + + 49 * 9 * - 72 AS col1
----
-31824

query I rowsort
SELECT - - 92 + + 88
----
180

query I rowsort
SELECT ALL + 37 + 21 + + - 18
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1521
SELECT DISTINCT - 78 * 70 - + NULLIF ( + 1, - 40 * - 32 ) / 88 + - ( + CASE + + 22 WHEN CAST( NULL AS SIGNED ) - + COUNT( * ) / - - 98 * 93 THEN + CAST( NULL AS SIGNED ) / SUM( + 45 ) / - + 68 WHEN - + 95 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT - 78 * 70 - + NULLIF ( + 1, - 40 * - 32 ) / 88 + - ( + CASE + + 22 WHEN CAST ( NULL AS INTEGER ) - + COUNT ( * ) / - - 98 * 93 THEN + CAST ( NULL AS INTEGER ) / SUM ( + 45 ) / - + 68 WHEN - + 95 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT + 28 * 13 * - - 73 * + MAX( ALL + 60 ) * - + 95 * 5 AS col0
----
-757302000

skipif mysql # not compatible
query I rowsort label-1522
SELECT + 28 * 13 * - - 73 * + MAX ( ALL + 60 ) * - + 95 * 5 AS col0
----
-757302000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT ALL CAST( 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL CAST ( 50 AS INTEGER )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - SUM( - - 27 ) * + 44 AS col2
----
-1188

skipif mysql # not compatible
query I rowsort label-1524
SELECT - SUM ( - - 27 ) * + 44 AS col2
----
-1188

query I rowsort
SELECT + ( + + 68 ) + - 74
----
-6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT ALL 86 DIV - 7
----
-12

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL 86 / - 7
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT - 92 * - CAST( - + 22 AS SIGNED )
----
-2024

skipif mysql # not compatible
query I rowsort label-1528
SELECT - 92 * - CAST ( - + 22 AS INTEGER )
----
-2024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT + CASE + + 11 WHEN + + ( - 32 ) THEN NULL ELSE - 69 * - - 69 + 75 DIV 77 + ( + + 36 ) END * ( - COUNT( DISTINCT 87 ) ) * - + 35
----
-165375

skipif mysql # not compatible
query I rowsort label-1529
SELECT + CASE + + 11 WHEN + + ( - 32 ) THEN NULL ELSE - 69 * - - 69 + 75 / 77 + ( + + 36 ) END * ( - COUNT ( DISTINCT 87 ) ) * - + 35
----
-165375

query I rowsort
SELECT ALL 27 * + 53
----
1431

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT + 11 DIV 44 - - 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1531
SELECT + 11 / 44 - - 11 AS col2
----
11

query I rowsort
SELECT + 85 - + - 77 AS col0
----
162

query I rowsort
SELECT + 2 * - 31
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1534
SELECT 67 * - - CASE - - 32 WHEN - 19 - + 9 + + CASE 89 WHEN 34 * + COUNT( ALL 21 ) THEN + - ( 61 ) WHEN 28 THEN NULL WHEN + 81 THEN 87 ELSE NULL END THEN + 80 WHEN COUNT( * ) * - - 64 + - COALESCE ( - 20, - 46 - - COALESCE ( - 19, 58 ) ) THEN - 2 + - 28 + - + ( + - 73 ) * - 54 * + CAST( NULL AS DECIMAL ) * - 39 ELSE NULL END + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT 67 * - - CASE - - 32 WHEN - 19 - + 9 + + CASE 89 WHEN 34 * + COUNT ( ALL 21 ) THEN + - ( 61 ) WHEN 28 THEN NULL WHEN + 81 THEN 87 ELSE NULL END THEN + 80 WHEN COUNT ( * ) * - - 64 + - COALESCE ( - 20, - 46 - - COALESCE ( - 19, 58 ) ) THEN - 2 + - 28 + - + ( + - 73 ) * - 54 * + CAST ( NULL AS REAL ) * - 39 ELSE NULL END + + 91
----
NULL

query I rowsort
SELECT DISTINCT 26 * - - 40 AS col1
----
1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1536
SELECT ALL + 28 DIV 81 + - MAX( DISTINCT + 15 ) + - - NULLIF ( + 50, + + ( COUNT( * ) ) - + + 2 )
----
35

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL + 28 / 81 + - MAX ( DISTINCT + 15 ) + - - NULLIF ( + 50, + + ( COUNT ( * ) ) - + + 2 )
----
35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1538
SELECT ALL - SUM( ALL 51 ) DIV ( 94 ) * + 92 - + 62
----
-62

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - SUM ( ALL 51 ) / ( 94 ) * + 92 - + 62
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1539
SELECT 27 DIV - COUNT( * ) + + - 15 col1, ( 22 ) + - 79
----
-42
-57

skipif mysql # not compatible
query II rowsort label-1539
SELECT 27 / - COUNT ( * ) + + - 15 col1, ( 22 ) + - 79
----
-42
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1540
SELECT - 55 * - - 74 * + + NULLIF ( COALESCE ( - 1, - COUNT( * ) - - + ( - - 94 ) ), - 60 * - CASE + 66 WHEN + - 65 THEN - AVG ( ALL - CAST( NULL AS SIGNED ) ) ELSE - 67 END + COUNT( 23 ) + + NULLIF ( + 49, 5 ) ) + - + 18 + - 21 AS col2
----
4031

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 55 * - - 74 * + + NULLIF ( COALESCE ( - 1, - COUNT ( * ) - - + ( - - 94 ) ), - 60 * - CASE + 66 WHEN + - 65 THEN - AVG ( ALL - CAST ( NULL AS INTEGER ) ) ELSE - 67 END + COUNT ( 23 ) + + NULLIF ( + 49, 5 ) ) + - + 18 + - 21 AS col2
----
4031

query I rowsort
SELECT ALL 99 + - 58 * 54 * - 21 * + 97
----
6379983

query I rowsort
SELECT DISTINCT 3 + - 49
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT COUNT( * ) DIV - + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1543
SELECT COUNT ( * ) / - + 77 AS col1
----
0

query I rowsort
SELECT 37 * + + 44 * - 80 AS col0
----
-130240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1545
SELECT DISTINCT 61 * - - ( + 14 ) * COUNT( * ) + - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT 61 * - - ( + 14 ) * COUNT ( * ) + - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1546
SELECT ALL - 96 AS col1, SUM( DISTINCT - - 16 ) * - 30 + - ( - ( - COUNT( * ) ) ) + + + 16 + - - 57 * + + 20 + 4 DIV 59 + + 47 - - 85 * - 67
----
-96
-4973

skipif mysql # not compatible
query II rowsort label-1546
SELECT ALL - 96 AS col1, SUM ( DISTINCT - - 16 ) * - 30 + - ( - ( - COUNT ( * ) ) ) + + + 16 + - - 57 * + + 20 + 4 / 59 + + 47 - - 85 * - 67
----
-96
-4973

query I rowsort
SELECT + NULLIF ( 41, + 37 * + 1 ) - 60
----
-19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT ALL 88 + + CAST( - + COUNT( * ) AS SIGNED ) + + - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL 88 + + CAST ( - + COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT + - 16 - 64 - + CASE 55 WHEN COUNT( * ) * - + 74 + + + SUM( + 70 ) - - 3 + + - COUNT( * ) THEN NULL WHEN + 98 THEN + 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT + - 16 - 64 - + CASE 55 WHEN COUNT ( * ) * - + 74 + + + SUM ( + 70 ) - - 3 + + - COUNT ( * ) THEN NULL WHEN + 98 THEN + 30 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT CASE + 46 WHEN + - 5 THEN NULLIF ( + + 37, - COUNT( * ) / + COALESCE ( ( + 48 ), 12 / - 20, - 76 * + 30 * ( + 57 ) + + ( - 71 ) ) + COALESCE ( 82, - 55 * + COUNT( * ) * - - 32 + - 58 ) + + 88 ) + NULLIF ( - + ( - 24 ), + + 66 * + + AVG ( + - 82 ) + - + ( 0 ) + - 86 ) WHEN + COUNT( * ) THEN NULL END * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT CASE + 46 WHEN + - 5 THEN NULLIF ( + + 37, - COUNT ( * ) / + COALESCE ( ( + 48 ), 12 / - 20, - 76 * + 30 * ( + 57 ) + + ( - 71 ) ) + COALESCE ( 82, - 55 * + COUNT ( * ) * - - 32 + - 58 ) + + 88 ) + NULLIF ( - + ( - 24 ), + + 66 * + + AVG ( + - 82 ) + - + ( 0 ) + - 86 ) WHEN + COUNT ( * ) THEN NULL END * - 45
----
NULL

query I rowsort
SELECT 49 + + 64 * + 57 + + + ( 21 ) AS col1
----
3718

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT ALL + 6 - + COUNT( NULLIF ( - 43, - 79 ) ) + 48 + - 65 * COUNT( * ) - + - 72 + + 35 + + ( - COUNT( * ) ) DIV 77 * COUNT( * ) * 55 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL + 6 - + COUNT ( NULLIF ( - 43, - 79 ) ) + 48 + - 65 * COUNT ( * ) - + - 72 + + 35 + + ( - COUNT ( * ) ) / 77 * COUNT ( * ) * 55 AS col0
----
95

query I rowsort
SELECT DISTINCT - 52 * + ( 41 ) * - - 19 + + 95 AS col0
----
-40413

query I rowsort
SELECT 58 + + + 58
----
116

query I rowsort
SELECT 64 * - 22 AS col0
----
-1408

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

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

query II rowsort
SELECT 38 col1, - 23 * 12 + - 13
----
38
-289

query I rowsort
SELECT 83 + 64 AS col1
----
147

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1561
SELECT 54 DIV CAST( 40 AS SIGNED ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1561
SELECT 54 / CAST ( 40 AS INTEGER ) col2
----
1

query I rowsort
SELECT 90 * + 91 col1
----
8190

query I rowsort
SELECT 64 + + 35
----
99

query II rowsort
SELECT 54 AS col0, + 87
----
54
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1565
SELECT 73 + 71 DIV + 91 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1565
SELECT 73 + 71 / + 91 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT COUNT( * ) - + + 47 * + 91
----
-4276

skipif mysql # not compatible
query I rowsort label-1566
SELECT COUNT ( * ) - + + 47 * + 91
----
-4276

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT DISTINCT + MIN( COALESCE ( + 58, 69 DIV + 76 + + - 2 + 59 ) ) + - + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT + MIN ( COALESCE ( + 58, 69 / + 76 + + - 2 + 59 ) ) + - + COUNT ( * ) AS col0
----
57

query II rowsort
SELECT - 95 AS col0, + 12 + 5 - + + 50
----
-95
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1572
SELECT + COUNT( * ) AS col0, + 98 AS col1
----
1
98

skipif mysql # not compatible
query II rowsort label-1572
SELECT + COUNT ( * ) AS col0, + 98 AS col1
----
1
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT + 53 + - - ( + + NULLIF ( COUNT( * ), 91 + - 80 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT + 53 + - - ( + + NULLIF ( COUNT ( * ), 91 + - 80 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 5 + 9 * - + 80
----
-725

query II rowsort
SELECT + - ( 7 ) AS col0, - 50 * - 29 AS col0
----
-7
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL + MAX( - - 67 ) * 50
----
3350

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL + MAX ( - - 67 ) * 50
----
3350

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - ( - - NULLIF ( 30, - + COUNT( * ) / + COUNT( * ) + + + 55 ) ) + - COUNT( DISTINCT + 48 ) * 92 col2
----
-122

skipif mysql # not compatible
query I rowsort label-1577
SELECT - ( - - NULLIF ( 30, - + COUNT ( * ) / + COUNT ( * ) + + + 55 ) ) + - COUNT ( DISTINCT + 48 ) * 92 col2
----
-122

query I rowsort
SELECT ALL - - CASE + 25 WHEN 87 THEN + - 50 * + - 27 / + + 75 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT 44 + 27 - - COUNT( * ) + - 86 * 7 col1
----
-530

skipif mysql # not compatible
query I rowsort label-1579
SELECT 44 + 27 - - COUNT ( * ) + - 86 * 7 col1
----
-530

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT DISTINCT + 78 DIV + 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT + 78 / + 87 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT - 43 * + + MAX( + + 24 ) + + 13 - + - 82 AS col1
----
-937

skipif mysql # not compatible
query I rowsort label-1581
SELECT - 43 * + + MAX ( + + 24 ) + + 13 - + - 82 AS col1
----
-937

query I rowsort
SELECT ALL + 29 * + 48
----
1392

query I rowsort
SELECT - - ( - + 43 ) col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT DISTINCT + COUNT( + 64 ) DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + COUNT ( + 64 ) / + 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL MIN( DISTINCT - 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL MIN ( DISTINCT - 77 ) AS col1
----
-77

query II rowsort
SELECT 83 * + + 89 AS col1, 76 * - 4 AS col2
----
7387
-304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL + NULLIF ( + AVG ( + + CASE COALESCE ( - + 52, + - 55 ) WHEN + 58 THEN + 59 END ), - 25 ) + CAST( 2 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + NULLIF ( + AVG ( + + CASE COALESCE ( - + 52, + - 55 ) WHEN + 58 THEN + 59 END ), - 25 ) + CAST ( 2 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 31 + - - 11
----
42

query I rowsort
SELECT 5 + + + 47 + + 73 * - 26 - + 52 AS col0
----
-1898

query I rowsort
SELECT ALL + 13 * + ( + 51 ) AS col0
----
663

onlyif mysql # DIV for integer division: 
query II rowsort label-1591
SELECT - 64 DIV + 35 + - - 6 + + ( - - 97 ) AS col1, - 23
----
102
-23

skipif mysql # not compatible
query II rowsort label-1591
SELECT - 64 / + 35 + - - 6 + + ( - - 97 ) AS col1, - 23
----
102
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT NULLIF ( - COUNT( ALL 15 ), - 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1592
SELECT NULLIF ( - COUNT ( ALL 15 ), - 59 ) AS col1
----
-1

query I rowsort
SELECT NULLIF ( + 69, - ( + 95 ) ) col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1594
SELECT ALL + + 89 * + + 95 * - CAST( NULL AS SIGNED ) + + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + + 89 * + + 95 * - CAST ( NULL AS INTEGER ) + + - 98 AS col1
----
NULL

query I rowsort
SELECT - 58 * - ( 95 ) + - 12
----
5498

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT - COUNT( ALL - 23 ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-1596
SELECT - COUNT ( ALL - 23 ) * 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL COALESCE ( 21, + + 51 ) * CASE + 68 WHEN 43 THEN NULL WHEN 20 + - 49 * + - ( + ( - 22 ) ) * - 25 + + 75 / + 72 + 20 * + 33 THEN COUNT( * ) END * - 6 + + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL COALESCE ( 21, + + 51 ) * CASE + 68 WHEN 43 THEN NULL WHEN 20 + - 49 * + - ( + ( - 22 ) ) * - 25 + + 75 / + 72 + 20 * + 33 THEN COUNT ( * ) END * - 6 + + - 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT - + 79 DIV - + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT - + 79 / - + 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT DISTINCT 25 * + + 49 * 58 * COALESCE ( - + 40, COUNT( * ) ) * - COUNT( * ) - - + 58 - - 89
----
2842147

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT 25 * + + 49 * 58 * COALESCE ( - + 40, COUNT ( * ) ) * - COUNT ( * ) - - + 58 - - 89
----
2842147

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + MIN( - + 74 ) - + NULLIF ( - + 85, - - 95 * 82 )
----
11

skipif mysql # not compatible
query I rowsort label-1600
SELECT + MIN ( - + 74 ) - + NULLIF ( - + 85, - - 95 * 82 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT ALL + 41 DIV - 4 col1
----
-10

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL + 41 / - 4 col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL + 49 * + + COUNT( * ) col1
----
49

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL + 49 * + + COUNT ( * ) col1
----
49

query I rowsort
SELECT + NULLIF ( 79, 25 * 86 ) * 85 AS col1
----
6715

query II rowsort
SELECT + + NULLIF ( + 67, + 41 ), 30 * - + 13 AS col2
----
67
-390

query I rowsort
SELECT + + 92 col2
----
92

query I rowsort
SELECT + - 5 * + 23 * - 72 AS col1
----
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL + + NULLIF ( - COALESCE ( - 66, - COUNT( * ) * + + 63 + 86 ), 15 * - NULLIF ( + 99, - COUNT( * ) ) + COUNT( * ) + 51 ) * + 2
----
132

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + + NULLIF ( - COALESCE ( - 66, - COUNT ( * ) * + + 63 + 86 ), 15 * - NULLIF ( + 99, - COUNT ( * ) ) + COUNT ( * ) + 51 ) * + 2
----
132

query I rowsort
SELECT DISTINCT + ( ( + 59 ) )
----
59

query I rowsort
SELECT DISTINCT + ( 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT - CASE - 44 WHEN ( 78 ) THEN AVG ( ALL + 76 ) / MIN( ALL + 91 ) * + - 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1610
SELECT - CASE - 44 WHEN ( 78 ) THEN AVG ( ALL + 76 ) / MIN ( ALL + 91 ) * + - 22 END
----
NULL

query I rowsort
SELECT DISTINCT 69 + - 7 + 20 AS col1
----
82

query I rowsort
SELECT - ( - 72 ) AS col2
----
72

query I rowsort
SELECT ALL 4 + + + 33 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1614
SELECT - 92 - - 63 + + 57, NULLIF ( COALESCE ( COALESCE ( + + 65, - - 68 + - - 80 + - 84, 33 * COUNT( * ) ), - 73 ), - CAST( NULL AS SIGNED ) ) AS col0
----
28
65

skipif mysql # not compatible
query II rowsort label-1614
SELECT - 92 - - 63 + + 57, NULLIF ( COALESCE ( COALESCE ( + + 65, - - 68 + - - 80 + - 84, 33 * COUNT ( * ) ), - 73 ), - CAST ( NULL AS INTEGER ) ) AS col0
----
28
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT - COALESCE ( + COUNT( * ), - 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-1615
SELECT - COALESCE ( + COUNT ( * ), - 60 )
----
-1

query I rowsort
SELECT ALL 68 + 4 + - 34
----
38

query I rowsort
SELECT DISTINCT ( + 20 ) + - 36
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL - COUNT( * ) + + 40
----
39

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL - COUNT ( * ) + + 40
----
39

query I rowsort
SELECT ALL 62 * 9
----
558

query I rowsort
SELECT DISTINCT 20 * - + 87
----
-1740

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1622
SELECT ALL - COUNT( * ) DIV + + 37 AS col2
----
0

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

query I rowsort
SELECT DISTINCT 55 + - - 19 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1624
SELECT ALL 90 + COUNT( * ) + 93 * COUNT( * ) DIV + 65
----
92

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL 90 + COUNT ( * ) + 93 * COUNT ( * ) / + 65
----
92

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

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - 16 + 40 AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT - 95 + + - 26 - + - 69 + + CASE + 41 WHEN + CAST( 64 AS SIGNED ) / - 48 * + - 7 * SUM( DISTINCT + 20 ) * + + COUNT( * ) + 54 THEN + + CAST( - COUNT( * ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1627
SELECT - 95 + + - 26 - + - 69 + + CASE + 41 WHEN + CAST ( 64 AS INTEGER ) / - 48 * + - 7 * SUM ( DISTINCT + 20 ) * + + COUNT ( * ) + 54 THEN + + CAST ( - COUNT ( * ) AS INTEGER ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT ALL + 71 DIV + 89 + + 73 - - + 47 - - 63 * + ( 79 )
----
5097

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL + 71 / + 89 + + 73 - - + 47 - - 63 * + ( 79 )
----
5097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL - + 82 / + + 45 - - + 62 + + CAST( - - CASE + 72 WHEN - 33 / 61 THEN - COUNT( * ) END AS SIGNED ) * + 75 * - 2 + - 56 * - 39 + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - + 82 / + + 45 - - + 62 + + CAST ( - - CASE + 72 WHEN - 33 / 61 THEN - COUNT ( * ) END AS INTEGER ) * + 75 * - 2 + - 56 * - 39 + - 90 AS col2
----
NULL

query I rowsort
SELECT ALL + 44 * + 15
----
660

query II rowsort
SELECT DISTINCT + 63, 73 AS col2
----
63
73

onlyif mysql # aggregate syntax: 
query II rowsort label-1632
SELECT ALL + + 15 AS col1, - SUM( - 21 ) col2
----
15
21

skipif mysql # not compatible
query II rowsort label-1632
SELECT ALL + + 15 AS col1, - SUM ( - 21 ) col2
----
15
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT + + 89 * - 87 + + - ( - NULLIF ( + 67, - 52 ) ) * - - 96 * - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT + + 89 * - 87 + + - ( - NULLIF ( + 67, - 52 ) ) * - - 96 * - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - + 84 * + - 80
----
6720

query I rowsort
SELECT - 37 + - + 24 * 33
----
-829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1636
SELECT - COUNT( ALL CAST( + ( - - 60 ) AS SIGNED ) ) + 54 DIV + 99
----
-1

skipif mysql # not compatible
query I rowsort label-1636
SELECT - COUNT ( ALL CAST ( + ( - - 60 ) AS INTEGER ) ) + 54 / + 99
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1637
SELECT - 25 DIV 95 + + MAX( DISTINCT 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1637
SELECT - 25 / 95 + + MAX ( DISTINCT 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT + + 55 * + - 41 + - + 43 * - COUNT( * ) + + + 31 + - 44 AS col0
----
-2225

skipif mysql # not compatible
query I rowsort label-1638
SELECT + + 55 * + - 41 + - + 43 * - COUNT ( * ) + + + 31 + - 44 AS col0
----
-2225

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

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - 68 / + - 66
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1640
SELECT DISTINCT + 27 * CAST( NULL AS DECIMAL ) * - 94 * + 84 + - 61 * 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT + 27 * CAST ( NULL AS REAL ) * - 94 * + 84 + - 61 * 92 AS col0
----
NULL

query I rowsort
SELECT ALL 40 * 16
----
640

query I rowsort
SELECT DISTINCT 33 * - ( + - 95 ) + 26 - + + 45 * 52 * - 7 AS col2
----
19541

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT ALL 2 * - + 76 * - 34 + 8 + + NULLIF ( - + 1, - - 82 - COUNT( ALL 26 ) / + COALESCE ( - - 20, + + COUNT( * ) / - - 46 ) * + ( + 60 ) / + + 31 + + - 31 + + 59 )
----
5175

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL 2 * - + 76 * - 34 + 8 + + NULLIF ( - + 1, - - 82 - COUNT ( ALL 26 ) / + COALESCE ( - - 20, + + COUNT ( * ) / - - 46 ) * + ( + 60 ) / + + 31 + + - 31 + + 59 )
----
5175

query I rowsort
SELECT CASE WHEN NULL IS NULL THEN - 61 ELSE - ( 43 ) END AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT NULLIF ( - 58, - 28 * + ( - 73 ) + - 49 + + - NULLIF ( - - 75, - COALESCE ( - COUNT( * ), + 87 ) ) + - 31 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1645
SELECT NULLIF ( - 58, - 28 * + ( - 73 ) + - 49 + + - NULLIF ( - - 75, - COALESCE ( - COUNT ( * ), + 87 ) ) + - 31 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT 12 * - 19 * + - 59 * 12 + - 8 + + + 24 + - COUNT( * ) col1
----
161439

skipif mysql # not compatible
query I rowsort label-1646
SELECT 12 * - 19 * + - 59 * 12 + - 8 + + + 24 + - COUNT ( * ) col1
----
161439

query I rowsort
SELECT + 92 + 93 + 11 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT - 62 * - - COUNT( * ) + + 37
----
-25

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - 62 * - - COUNT ( * ) + + 37
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1649
SELECT DISTINCT 13 * + - 59 + - 37 + + COUNT( * ) - - 35 DIV 11 * 47 * + 29 + 91 * + 97
----
12113

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT 13 * + - 59 + - 37 + + COUNT ( * ) - - 35 / 11 * 47 * + 29 + 91 * + 97
----
12113

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1651
SELECT ALL + NULLIF ( - 62, ( + 81 ) ) * - - 3 DIV + - COUNT( * ) + - COUNT( * )
----
185

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + NULLIF ( - 62, ( + 81 ) ) * - - 3 / + - COUNT ( * ) + - COUNT ( * )
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT + COUNT( * ) + + ( - 15 )
----
-14

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + COUNT ( * ) + + ( - 15 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT 18 DIV 11
----
1

skipif mysql # not compatible
query I rowsort label-1653
SELECT 18 / 11
----
1

query I rowsort
SELECT ALL 14 + - 92 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT 89 * 95 * + - ( 82 ) * - 30 + COUNT( * ) * + 65 * + CAST( NULL AS SIGNED ) / 50 + + ( + + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT 89 * 95 * + - ( 82 ) * - 30 + COUNT ( * ) * + 65 * + CAST ( NULL AS INTEGER ) / 50 + + ( + + 80 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1656
SELECT 8 DIV - 25, ( + 85 ) AS col1
----
0
85

skipif mysql # not compatible
query II rowsort label-1656
SELECT 8 / - 25, ( + 85 ) AS col1
----
0
85

query II rowsort
SELECT 14 * - 92, - 79 AS col2
----
-1288
-79

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

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT 2 * + 0 * + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT 98 * COUNT( * ) + - + 17
----
81

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT 98 * COUNT ( * ) + - + 17
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1660
SELECT + CAST( NULL AS SIGNED ) / + + CAST( + SUM( 14 ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT + CAST ( NULL AS INTEGER ) / + + CAST ( + SUM ( 14 ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 15 * - + 8 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT DISTINCT 25 * + - COUNT( * ) + + 27 col0
----
2

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT 25 * + - COUNT ( * ) + + 27 col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1663
SELECT 50 + - COUNT( * ) + COALESCE ( + 10, + + ( - + 9 ), - 6 DIV 0 * + 71 - - - 70 ) * MAX( 26 ) AS col0
----
309

skipif mysql # not compatible
query I rowsort label-1663
SELECT 50 + - COUNT ( * ) + COALESCE ( + 10, + + ( - + 9 ), - 6 / 0 * + 71 - - - 70 ) * MAX ( 26 ) AS col0
----
309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT - NULLIF ( + COUNT( * ), 38 ) * - 22 - - 67 DIV + 37 * + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1664
SELECT - NULLIF ( + COUNT ( * ), 38 ) * - 22 - - 67 / + 37 * + COUNT ( * ) AS col1
----
23

query I rowsort
SELECT 98 + - 28 + - 9 AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-1666
SELECT + - 30 * - CASE - - 47 WHEN + ( 87 ) - - 64 THEN NULL WHEN - 38 THEN + - COUNT( * ) + - COALESCE ( ( - COUNT( * ) ), - - COUNT( * ) * 5 + + 65 ) / - ( COUNT( * ) ) END + - 98, 31 + + 9 col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-1666
SELECT + - 30 * - CASE - - 47 WHEN + ( 87 ) - - 64 THEN NULL WHEN - 38 THEN + - COUNT ( * ) + - COALESCE ( ( - COUNT ( * ) ), - - COUNT ( * ) * 5 + + 65 ) / - ( COUNT ( * ) ) END + - 98, 31 + + 9 col2
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT MIN( ALL 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1667
SELECT MIN ( ALL 22 ) AS col2
----
22

query I rowsort
SELECT + 62 * - 9 * + 55 + + 16 AS col1
----
-30674

query II rowsort
SELECT ALL 54 + 22 AS col2, 34 - 26 col0
----
76
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT - 98 * + COALESCE ( + 26, 46 * - 8 + + COUNT( * ) + + - CASE - + COUNT( * ) WHEN + ( COUNT( * ) ) THEN 57 * 0 + 92 ELSE - + 91 END ) * - - 27 * - 65 + + 18 * 85
----
4473270

skipif mysql # not compatible
query I rowsort label-1670
SELECT - 98 * + COALESCE ( + 26, 46 * - 8 + + COUNT ( * ) + + - CASE - + COUNT ( * ) WHEN + ( COUNT ( * ) ) THEN 57 * 0 + 92 ELSE - + 91 END ) * - - 27 * - 65 + + 18 * 85
----
4473270

query I rowsort
SELECT ALL - + 36 + 46 + - + 76 AS col2
----
-66

query I rowsort
SELECT - 38 - + 24
----
-62

query I rowsort
SELECT + 47 * + 30 - 16
----
1394

query II rowsort
SELECT ALL - 38 AS col1, - 63
----
-38
-63

query I rowsort
SELECT 74 * + + COALESCE ( - 87, 59 ) col1
----
-6438

query I rowsort
SELECT 9 * - 84 AS col1
----
-756

query I rowsort
SELECT DISTINCT - 71 + 85
----
14

query I rowsort
SELECT DISTINCT - COALESCE ( - 46, + 2 * - - 20 - + - 48 + + 73 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT 99 - - COUNT( * ) + NULLIF ( - 97, - + 49 )
----
3

skipif mysql # not compatible
query I rowsort label-1679
SELECT 99 - - COUNT ( * ) + NULLIF ( - 97, - + 49 )
----
3

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

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

query I rowsort
SELECT ALL + 17 + - 64
----
-47

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

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL - 54 - + COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT 89 + - COUNT( ALL + - 74 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1683
SELECT 89 + - COUNT ( ALL + - 74 ) AS col0
----
88

query I rowsort
SELECT 24 * 85
----
2040

query I rowsort
SELECT 34 * - NULLIF ( - 60, + - 82 )
----
2040

query I rowsort
SELECT ALL - 81 * + 18
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT 18 + + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1687
SELECT 18 + + COUNT ( * ) AS col1
----
19

query I rowsort
SELECT 24 * - + 87
----
-2088

query I rowsort
SELECT 14 * 26 AS col2
----
364

query I rowsort
SELECT CASE 98 WHEN 43 THEN + 66 END + 43 AS col2
----
NULL

query I rowsort
SELECT 39 * ( 8 * 3 )
----
936

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT DISTINCT - 38 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - 38 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL COUNT( * ) * 70 + NULLIF ( 64 + 4, - 39 + 65 )
----
138

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL COUNT ( * ) * 70 + NULLIF ( 64 + 4, - 39 + 65 )
----
138

query I rowsort
SELECT ALL 47 * + 77
----
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT MIN( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-1696
SELECT MIN ( DISTINCT 68 )
----
68

query I rowsort
SELECT ALL 25 * 21 + 26 AS col1
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT 74 + + 40 * COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-1698
SELECT 74 + + 40 * COUNT ( * )
----
114

query I rowsort
SELECT ALL 50 * - 84 + 76
----
-4124

query I rowsort
SELECT CASE 57 WHEN - 63 * - 4 THEN 26 ELSE NULL END / + 30
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT + 69 DIV 30 + 80
----
82

skipif mysql # not compatible
query I rowsort label-1701
SELECT + 69 / 30 + 80
----
82

query I rowsort
SELECT + COALESCE ( + 39, - 82 )
----
39

query I rowsort
SELECT 64 + + 55
----
119

query I rowsort
SELECT 48 * + 49 - 76 * - 45
----
5772

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT 9 - 4 DIV 2 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1705
SELECT 9 - 4 / 2 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT ALL + 91 * 8 + 40 DIV ( 17 * + 45 ) AS col1
----
728

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + 91 * 8 + 40 / ( 17 * + 45 ) AS col1
----
728

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

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

query I rowsort
SELECT DISTINCT 4 + 67 AS col2
----
71

query I rowsort
SELECT ALL 39 - - 78 * - 89
----
-6903

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT + COUNT( - 49 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1710
SELECT + COUNT ( - 49 ) col0
----
1

query I rowsort
SELECT - 9 + - 37
----
-46

query I rowsort
SELECT + CASE - ( AVG ( 15 ) ) WHEN 99 * - 68 THEN + 77 * - 27 ELSE ( + 93 ) + - 89 END AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1713
SELECT 86 * - MAX( - 70 * 39 ) + CASE + 59 + + COALESCE ( - 24, 7 * + CAST( + 1 AS SIGNED ) + CAST( NULL AS SIGNED ) * 64 ) WHEN + 54 * 49 THEN + ( + ( 34 ) ) * 79 ELSE 50 + 0 END DIV - 50
----
234779

skipif mysql # not compatible
query I rowsort label-1713
SELECT 86 * - MAX ( - 70 * 39 ) + CASE + 59 + + COALESCE ( - 24, 7 * + CAST ( + 1 AS INTEGER ) + CAST ( NULL AS INTEGER ) * 64 ) WHEN + 54 * 49 THEN + ( + ( 34 ) ) * 79 ELSE 50 + 0 END / - 50
----
234779

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT SUM( + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT SUM ( + 93 ) AS col1
----
93

query I rowsort
SELECT DISTINCT 38 * + 53
----
2014

query I rowsort
SELECT - 49 * + 92
----
-4508

query I rowsort
SELECT ALL NULLIF ( - 18, - 2 )
----
-18

query I rowsort
SELECT ALL + 96 * 59 AS col1
----
5664

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT ALL + - NULLIF ( - 27, - 16 * + 78 ) DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL + - NULLIF ( - 27, - 16 * + 78 ) / - 72
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL CASE - 65 WHEN MAX( DISTINCT + 76 ) + 85 THEN NULL WHEN + MAX( DISTINCT 23 ) THEN - COUNT( 51 ) + MAX( ALL 64 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL CASE - 65 WHEN MAX ( DISTINCT + 76 ) + 85 THEN NULL WHEN + MAX ( DISTINCT 23 ) THEN - COUNT ( 51 ) + MAX ( ALL 64 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + + 74 * 80 AS col2
----
5920

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT - + COUNT( * ) - ( - 46 ) * 14 AS col1
----
643

skipif mysql # not compatible
query I rowsort label-1723
SELECT - + COUNT ( * ) - ( - 46 ) * 14 AS col1
----
643

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - 17 * MAX( ALL + 41 ) col2
----
-697

skipif mysql # not compatible
query I rowsort label-1724
SELECT - 17 * MAX ( ALL + 41 ) col2
----
-697

query I rowsort
SELECT ALL - + 44 + - 72 AS col0
----
-116

query I rowsort
SELECT ALL + 30 + + 82
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT DISTINCT - 72 + - 76 DIV 32
----
-74

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT - 72 + - 76 / 32
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT DISTINCT + - 32 + + NULLIF ( NULLIF ( CASE 92 WHEN COUNT( * ) + + 50 / 51 THEN - 62 WHEN 11 THEN 58 WHEN AVG ( ALL 56 ) THEN NULL END, 86 ), 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT + - 32 + + NULLIF ( NULLIF ( CASE 92 WHEN COUNT ( * ) + + 50 / 51 THEN - 62 WHEN 11 THEN 58 WHEN AVG ( ALL 56 ) THEN NULL END, 86 ), 93 ) AS col2
----
NULL

query I rowsort
SELECT - - 44 + 41 * + 73 AS col2
----
3037

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

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - 39 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1731
SELECT + + ( + MAX ( - 86 ) )
----
-86

query I rowsort
SELECT - 20 * + 74 AS col0
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT - - 26 + + ( - COUNT( * ) - 35 )
----
-10

skipif mysql # not compatible
query I rowsort label-1733
SELECT - - 26 + + ( - COUNT ( * ) - 35 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT + + CASE - 17 WHEN COUNT( * ) * 35 THEN - 22 * + 3 WHEN 7 THEN + 2 - 78 * ( 25 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT + + CASE - 17 WHEN COUNT ( * ) * 35 THEN - 22 * + 3 WHEN 7 THEN + 2 - 78 * ( 25 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT COUNT( * ) * + 39 + - 5
----
34

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT COUNT ( * ) * + 39 + - 5
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT DISTINCT CAST( 33 AS SIGNED ) * - 80 + 69
----
-2571

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT CAST ( 33 AS INTEGER ) * - 80 + 69
----
-2571

onlyif mysql # DIV for integer division: 
query I rowsort label-1737
SELECT ALL + 89 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL + 89 / + 78
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT + COALESCE ( + ( SUM( ALL 7 ) ), - COUNT( * ) + + 14, - 71 + 61 )
----
7

skipif mysql # not compatible
query I rowsort label-1738
SELECT + COALESCE ( + ( SUM ( ALL 7 ) ), - COUNT ( * ) + + 14, - 71 + 61 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT + 71 * + 25 * COUNT( * ) AS col2
----
1775

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT + 71 * + 25 * COUNT ( * ) AS col2
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT ALL + MAX( - + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + MAX ( - + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT + CASE + 54 WHEN + 88 THEN 86 * ( - ( + MAX( ALL - 79 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT + CASE + 54 WHEN + 88 THEN 86 * ( - ( + MAX ( ALL - 79 ) ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1742
SELECT - ( SUM( DISTINCT - NULLIF ( 85, CAST( NULL AS SIGNED ) ) ) ) DIV + COALESCE ( MIN( + 28 ) * + 97 - 85, 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1742
SELECT - ( SUM ( DISTINCT - NULLIF ( 85, CAST ( NULL AS INTEGER ) ) ) ) / + COALESCE ( MIN ( + 28 ) * + 97 - 85, 63 ) AS col0
----
0

query I rowsort
SELECT CASE + - 36 WHEN 90 THEN ( - 99 ) WHEN + 11 * AVG ( 11 ) + - 26 THEN - ( 32 ) / 46 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + COUNT( * ) - 73 - 38 * + 97
----
-3758

skipif mysql # not compatible
query I rowsort label-1744
SELECT + COUNT ( * ) - 73 - 38 * + 97
----
-3758

query I rowsort
SELECT + 27 * + ( + 48 )
----
1296

query I rowsort
SELECT + 86 * + 99 AS col1
----
8514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1747
SELECT + COUNT( * ) DIV - + 69 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1749
SELECT ALL + 54 * + 97 - 76 DIV + COUNT( * )
----
5162

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL + 54 * + 97 - 76 / + COUNT ( * )
----
5162

query I rowsort
SELECT + 91 * 14 * 93 AS col1
----
118482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1751
SELECT CASE + COUNT( * ) WHEN - CASE + CAST( + 71 AS SIGNED ) WHEN + ( 9 ) THEN 74 * - 83 WHEN + SUM( ALL 69 ) - 15 THEN NULL END THEN NULL WHEN + 60 THEN 6 * - 92 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT CASE + COUNT ( * ) WHEN - CASE + CAST ( + 71 AS INTEGER ) WHEN + ( 9 ) THEN 74 * - 83 WHEN + SUM ( ALL 69 ) - 15 THEN NULL END THEN NULL WHEN + 60 THEN 6 * - 92 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT + 26 * CASE - MAX( + 83 ) WHEN + 15 THEN - 80 WHEN 43 * + MAX( DISTINCT 14 ) THEN - COUNT( 22 ) ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT + 26 * CASE - MAX ( + 83 ) WHEN + 15 THEN - 80 WHEN 43 * + MAX ( DISTINCT 14 ) THEN - COUNT ( 22 ) ELSE NULL END * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 43 - + - 58 * - 81
----
-4655

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL NULLIF ( - 79, NULLIF ( + 73, 27 + + COALESCE ( 51 - 37, COALESCE ( - 6, 15 / 52, COUNT( 22 ) / - 79 ) + + 74 ) ) * 40 )
----
-79

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL NULLIF ( - 79, NULLIF ( + 73, 27 + + COALESCE ( 51 - 37, COALESCE ( - 6, 15 / 52, COUNT ( 22 ) / - 79 ) + + 74 ) ) * 40 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + 90 * COUNT( + 2 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 90 * COUNT ( + 2 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT - SUM( DISTINCT + 10 ) * - 5 col2
----
50

skipif mysql # not compatible
query I rowsort label-1756
SELECT - SUM ( DISTINCT + 10 ) * - 5 col2
----
50

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

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

query I rowsort
SELECT ALL 5 * + 96
----
480

query I rowsort
SELECT ALL - 37 + - ( + ( COALESCE ( + 71, - 7 ) ) ) + + 65
----
-43

query I rowsort
SELECT + 79 + - - 31 col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT + CASE 53 WHEN 84 / + 24 THEN + MIN( DISTINCT 8 ) WHEN - 10 THEN AVG ( DISTINCT 30 ) / 81 WHEN + ( + 63 ) THEN 57 - - 48 * CAST( + CAST( NULL AS SIGNED ) * + 12 AS SIGNED ) END + 62 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT + CASE 53 WHEN 84 / + 24 THEN + MIN ( DISTINCT 8 ) WHEN - 10 THEN AVG ( DISTINCT 30 ) / 81 WHEN + ( + 63 ) THEN 57 - - 48 * CAST ( + CAST ( NULL AS INTEGER ) * + 12 AS INTEGER ) END + 62 / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 62 - + 86 AS col1
----
-148

query I rowsort
SELECT ALL - 34 + COALESCE ( 63, 85 ) AS col0
----
29

query I rowsort
SELECT ALL 76 + - 69
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1765
SELECT ALL - - COUNT( * ) + - 72 DIV + 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL - - COUNT ( * ) + - 72 / + 16 AS col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT DISTINCT - 43 + + - 97 DIV 66
----
-44

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT - 43 + + - 97 / 66
----
-44

query I rowsort
SELECT - + 15 + - 86 * + 41
----
-3541

onlyif mysql # DIV for integer division: 
query I rowsort label-1768
SELECT DISTINCT + 52 DIV - + ( - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT + 52 / - + ( - 98 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1769
SELECT ALL - 93 + + CASE 76 WHEN - COUNT( * ) THEN NULL ELSE - 13 * + 41 END + - NULLIF ( 5, ( + 25 ) * CAST( NULL AS SIGNED ) + 54 ) DIV 43 AS col1
----
-626

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - 93 + + CASE 76 WHEN - COUNT ( * ) THEN NULL ELSE - 13 * + 41 END + - NULLIF ( 5, ( + 25 ) * CAST ( NULL AS INTEGER ) + 54 ) / 43 AS col1
----
-626

query I rowsort
SELECT ALL - - 29 * + COALESCE ( + 91, 61, 92 ) AS col1
----
2639

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

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

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

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT + 0 - + - 23 / COUNT ( * )
----
23

query I rowsort
SELECT 99 + + 13 AS col0
----
112

query I rowsort
SELECT ALL - ( - 46 ) AS col0
----
46

query I rowsort
SELECT 83 * 52
----
4316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1776
SELECT + 22 DIV - 89 * - 50 + - COUNT( * ) * + 1
----
-1

skipif mysql # not compatible
query I rowsort label-1776
SELECT + 22 / - 89 * - 50 + - COUNT ( * ) * + 1
----
-1

query II rowsort
SELECT 23, - 39 col0
----
23
-39

query I rowsort
SELECT 99 + - 65 * + 34 AS col2
----
-2111

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT 22 DIV 80 - 62 * - 74 col2
----
4588

skipif mysql # not compatible
query I rowsort label-1779
SELECT 22 / 80 - 62 * - 74 col2
----
4588

query I rowsort
SELECT ( - - 33 ) - + 97 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1781
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * + - AVG ( DISTINCT 80 ) * + CAST( NULL AS SIGNED ) + + COUNT( DISTINCT - 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * + - AVG ( DISTINCT 80 ) * + CAST ( NULL AS INTEGER ) + + COUNT ( DISTINCT - 98 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - - 6 )
----
-6

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT NULLIF ( - 34, 88 + 26 DIV 85 ) DIV + 18
----
-1

skipif mysql # not compatible
query I rowsort label-1785
SELECT NULLIF ( - 34, 88 + 26 / 85 ) / + 18
----
-1

query I rowsort
SELECT 34 + - 71 + - 47
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL - COUNT( * ) * - - 26 * - 37 * 88 AS col2
----
84656

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL - COUNT ( * ) * - - 26 * - 37 * 88 AS col2
----
84656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT ALL - CASE + 65 WHEN - 79 THEN 22 + CAST( - CASE - 69 WHEN 89 + 10 THEN + 21 * - 20 + - 40 WHEN - 24 + 61 * 97 THEN NULL WHEN 20 + 2 THEN NULL ELSE NULL END - 97 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL - CASE + 65 WHEN - 79 THEN 22 + CAST ( - CASE - 69 WHEN 89 + 10 THEN + 21 * - 20 + - 40 WHEN - 24 + 61 * 97 THEN NULL WHEN 20 + 2 THEN NULL ELSE NULL END - 97 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT COUNT( * ) + + COUNT( * ) - 99 * + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-1789
SELECT COUNT ( * ) + + COUNT ( * ) - 99 * + COUNT ( * )
----
-97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT 17 DIV + ( - - 60 ) * COALESCE ( 12 + + 39 * 17, + 10 - 48, - COALESCE ( - ( 0 ), 39 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT 17 / + ( - - 60 ) * COALESCE ( 12 + + 39 * 17, + 10 - 48, - COALESCE ( - ( 0 ), 39 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT COALESCE ( + 1, 0, 36 ) * COUNT( * ) + 27
----
28

skipif mysql # not compatible
query I rowsort label-1792
SELECT COALESCE ( + 1, 0, 36 ) * COUNT ( * ) + 27
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT ALL 2 + 81 - COUNT( DISTINCT 88 )
----
82

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL 2 + 81 - COUNT ( DISTINCT 88 )
----
82

query II rowsort
SELECT + 12 AS col1, 91 + + 63
----
12
154

query I rowsort
SELECT ALL ( + + 54 ) + 32 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1796
SELECT 19 DIV + + 36 + - + COUNT( * ) + NULLIF ( - 17, - COUNT( * ) * - 67 )
----
-18

skipif mysql # not compatible
query I rowsort label-1796
SELECT 19 / + + 36 + - + COUNT ( * ) + NULLIF ( - 17, - COUNT ( * ) * - 67 )
----
-18

query II rowsort
SELECT 70 AS col2, - 76 * 51 col0
----
70
-3876

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

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - 5 + - COUNT ( * ) - - 19 AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT ALL + NULLIF ( + + ( - 35 ), 2 ) + + 91 DIV 78
----
-34

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + NULLIF ( + + ( - 35 ), 2 ) + + 91 / 78
----
-34

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

skipif mysql # not compatible
query I rowsort label-1800
SELECT - CAST ( + AVG ( DISTINCT - 52 ) AS INTEGER ) col2
----
52

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

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

query I rowsort
SELECT ALL ( - - 78 ) + - - ( 78 )
----
156

query I rowsort
SELECT - 79 - + ( + 10 )
----
-89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL + MAX( ALL + - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + MAX ( ALL + - 78 )
----
-78

query II rowsort
SELECT + 86 AS col2, - 20 + + 53 + 78
----
86
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT + SUM( DISTINCT 3 ) + + - MAX( ALL 9 ) + + COUNT( * ) * 73
----
67

skipif mysql # not compatible
query I rowsort label-1807
SELECT + SUM ( DISTINCT 3 ) + + - MAX ( ALL 9 ) + + COUNT ( * ) * 73
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT + NULLIF ( - 90, 61 - MIN( - 46 + - 52 ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1808
SELECT + NULLIF ( - 90, 61 - MIN ( - 46 + - 52 ) ) AS col2
----
-90

query I rowsort
SELECT ALL + 29 * + 61
----
1769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT + CAST( NULL AS SIGNED ) * - ( - 72 ) + + COUNT( 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT + CAST ( NULL AS INTEGER ) * - ( - 72 ) + + COUNT ( 30 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1811
SELECT ALL - NULLIF ( + 38, - 13 + COUNT( * ) * 44 ) DIV - 21
----
1

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - NULLIF ( + 38, - 13 + COUNT ( * ) * 44 ) / - 21
----
1

query I rowsort
SELECT - 38 + + - 43
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1813
SELECT 18 * + 58 AS col0, MAX( + CAST( - 67 AS SIGNED ) ) DIV COUNT( * ) + COUNT( - 50 ) col1
----
1044
-66

skipif mysql # not compatible
query II rowsort label-1813
SELECT 18 * + 58 AS col0, MAX ( + CAST ( - 67 AS INTEGER ) ) / COUNT ( * ) + COUNT ( - 50 ) col1
----
1044
-66

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

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL - 26 / COUNT ( * )
----
-26

query I rowsort
SELECT ( + 46 ) * - 91
----
-4186

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

skipif mysql # not compatible
query I rowsort label-1816
SELECT + COUNT ( ALL - 5 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT DISTINCT - CASE - + COUNT( * ) WHEN MAX( - - 54 ) - - 21 / - 29 THEN 4 * COUNT( * ) WHEN 27 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT - CASE - + COUNT ( * ) WHEN MAX ( - - 54 ) - - 21 / - 29 THEN 4 * COUNT ( * ) WHEN 27 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT 8 * + - 95
----
-760

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT ALL 80 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL 80 / - 62
----
-1

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

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

query I rowsort
SELECT 18 * - 39 col2
----
-702

query I rowsort
SELECT ALL - CASE - 95 WHEN - 68 THEN + 50 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT DISTINCT + CASE + + 86 WHEN + 61 * - 43 THEN 89 + + MIN( ALL - 51 ) END * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + CASE + + 86 WHEN + 61 * - 43 THEN 89 + + MIN ( ALL - 51 ) END * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL - COUNT( DISTINCT 9 ) + 62 + - CASE + 54 WHEN ( - 19 ) THEN 17 END + + 48 / 68 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - COUNT ( DISTINCT 9 ) + 62 + - CASE + 54 WHEN ( - 19 ) THEN 17 END + + 48 / 68 * - 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1825
SELECT ALL + 36 * - + ( + 20 ) * - COALESCE ( + CAST( NULL AS SIGNED ), 18 * 6 ) + + MAX( ALL + 33 )
----
77793

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL + 36 * - + ( + 20 ) * - COALESCE ( + CAST ( NULL AS INTEGER ), 18 * 6 ) + + MAX ( ALL + 33 )
----
77793

query I rowsort
SELECT ALL + 64 + + + 3
----
67

query I rowsort
SELECT 64 * + + ( + 8 ) * 63 + 64
----
32320

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT ALL - ( COUNT( * ) ) AS col2, 57 * + 65 * COUNT( * )
----
-1
3705

skipif mysql # not compatible
query II rowsort label-1828
SELECT ALL - ( COUNT ( * ) ) AS col2, 57 * + 65 * COUNT ( * )
----
-1
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL - 45 * - + MIN( - - 51 )
----
2295

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL - 45 * - + MIN ( - - 51 )
----
2295

query I rowsort
SELECT DISTINCT 9 + - + ( 78 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT DISTINCT + + COUNT( * ) + 5 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + + COUNT ( * ) + 5 AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT ALL - - 38 DIV 40 * - 96
----
0

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - - 38 / 40 * - 96
----
0

query I rowsort
SELECT ALL - 54 + - 3 * + + 85
----
-309

query I rowsort
SELECT - 97 - + 92 AS col2
----
-189

query I rowsort
SELECT DISTINCT - + ( - + 75 ) * - 37
----
-2775

query II rowsort
SELECT DISTINCT + + 25 + + 61 AS col1, 13 + - - 35
----
86
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT 44 * + 10 * ( - - 70 ) + COALESCE ( 38 + 99, 90 - 15 DIV - 96 )
----
30937

skipif mysql # not compatible
query I rowsort label-1837
SELECT 44 * + 10 * ( - - 70 ) + COALESCE ( 38 + 99, 90 - 15 / - 96 )
----
30937

query I rowsort
SELECT - COALESCE ( - 39, + 14 + + 98, 92 - + 35 ) AS col2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT ALL 94 - + 10 DIV - 68
----
94

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL 94 - + 10 / - 68
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1840
SELECT - CASE WHEN NOT + 0 BETWEEN + MIN( ALL CASE 3 WHEN 84 THEN - 60 * 42 ELSE NULL END ) * 55 AND + 34 THEN + 19 + - 10 WHEN NULL <= ( NULL ) THEN COUNT( * ) ELSE CAST( NULL AS SIGNED ) END + + 1 * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT - CASE WHEN NOT + 0 BETWEEN + MIN ( ALL CASE 3 WHEN 84 THEN - 60 * 42 ELSE NULL END ) * 55 AND + 34 THEN + 19 + - 10 WHEN NULL <= ( NULL ) THEN COUNT ( * ) ELSE CAST ( NULL AS INTEGER ) END + + 1 * - 6
----
NULL

query I rowsort
SELECT 36 + + ( + - 80 ) AS col2
----
-44

query II rowsort
SELECT + 47 - + 95 AS col2, + 46 AS col2
----
-48
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT ALL - 2 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - 2 / - - 80
----
0

query I rowsort
SELECT + 86 * + - 49 AS col1
----
-4214

query I rowsort
SELECT ALL + - 83 - + + 25
----
-108

query I rowsort
SELECT + 27 + 36 + + ( + ( + 79 ) ) * + ( + 19 ) AS col0
----
1564

query I rowsort
SELECT + 40 + - + ( + 81 )
----
-41

query I rowsort
SELECT ALL 75 * 4 col1
----
300

query II rowsort
SELECT 62, - ( 46 ) AS col0
----
62
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + 86 * + + SUM( ALL + 79 )
----
6794

skipif mysql # not compatible
query I rowsort label-1850
SELECT + 86 * + + SUM ( ALL + 79 )
----
6794

query I rowsort
SELECT + 74 + + + 67
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT + 50 * + + CASE + COUNT( * ) WHEN - - 51 * + COALESCE ( 78, + MAX( ALL 68 ) + 74, 52 ) * 48 + COALESCE ( + 56, 30, 32 ) THEN NULL WHEN + 4 THEN + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT + 50 * + + CASE + COUNT ( * ) WHEN - - 51 * + COALESCE ( 78, + MAX ( ALL 68 ) + 74, 52 ) * 48 + COALESCE ( + 56, 30, 32 ) THEN NULL WHEN + 4 THEN + 45 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 72 * + 63 + - 18 col2
----
4518

query I rowsort
SELECT ( 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT + COUNT( * ) + + - 6 + + 21 + - 68 + + + 35 + COUNT( * ) * - 53 * + ( 43 )
----
-2296

skipif mysql # not compatible
query I rowsort label-1855
SELECT + COUNT ( * ) + + - 6 + + 21 + - 68 + + + 35 + COUNT ( * ) * - 53 * + ( 43 )
----
-2296

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT ALL - 45 * COUNT( * ) + 57 AS col1, - MAX( - 34 )
----
12
34

skipif mysql # not compatible
query II rowsort label-1856
SELECT ALL - 45 * COUNT ( * ) + 57 AS col1, - MAX ( - 34 )
----
12
34

query I rowsort
SELECT COALESCE ( 79, 9 + 90 + - + 36 )
----
79

query I rowsort
SELECT + 84 + 72 AS col1
----
156

query I rowsort
SELECT ALL - 5 * - - 32 col2
----
-160

query I rowsort
SELECT 69 * + 57 + - 36
----
3897

query I rowsort
SELECT ALL + 68 * 33 + 64 AS col2
----
2308

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT COALESCE ( + 28, + 52, + MAX( - 73 ) ) * - 92 col0
----
-2576

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT COALESCE ( + 28, + 52, + MAX ( - 73 ) ) * - 92 col0
----
-2576

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT - 88 * - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT - 88 * - COUNT ( * )
----
88

query I rowsort
SELECT ALL 19 * ( + 56 ) + - 88 AS col1
----
976

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT + NULLIF ( - + 67, - MAX( ALL 72 ) ) * - + 25 + 27 col2
----
1702

skipif mysql # not compatible
query I rowsort label-1865
SELECT + NULLIF ( - + 67, - MAX ( ALL 72 ) ) * - + 25 + 27 col2
----
1702

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1867
SELECT - CAST( - 31 AS SIGNED ) + - + 72 * - 7 + COUNT( * )
----
536

skipif mysql # not compatible
query I rowsort label-1867
SELECT - CAST ( - 31 AS INTEGER ) + - + 72 * - 7 + COUNT ( * )
----
536

query II rowsort
SELECT ALL + + 21 AS col1, 27 + - 34
----
21
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1869
SELECT + 30 AS col1, - 49 + + CAST( 86 AS SIGNED ) * 18 * + SUM( DISTINCT 25 )
----
30
38651

skipif mysql # not compatible
query II rowsort label-1869
SELECT + 30 AS col1, - 49 + + CAST ( 86 AS INTEGER ) * 18 * + SUM ( DISTINCT 25 )
----
30
38651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1870
SELECT - 95 + 30 + - CASE - COUNT( * ) WHEN CAST( CAST( - 35 AS SIGNED ) AS DECIMAL ) THEN NULL ELSE - 90 END * ( 32 * + ( + ( - MAX( 41 ) ) ) )
----
-118145

skipif mysql # not compatible
query I rowsort label-1870
SELECT - 95 + 30 + - CASE - COUNT ( * ) WHEN CAST ( CAST ( - 35 AS INTEGER ) AS REAL ) THEN NULL ELSE - 90 END * ( 32 * + ( + ( - MAX ( 41 ) ) ) )
----
-118145

query I rowsort
SELECT + 43 * 37 + - 37 + - 89
----
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - - 17 * - CASE - 19 WHEN + 21 + - 91 + - 41 THEN - COUNT( * ) * 92 WHEN 44 THEN NULL ELSE NULL END * + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT - - 17 * - CASE - 19 WHEN + 21 + - 91 + - 41 THEN - COUNT ( * ) * 92 WHEN 44 THEN NULL ELSE NULL END * + 67 AS col1
----
NULL

query I rowsort
SELECT - - 11 * + 8 * - - 67
----
5896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1874
SELECT - 31 * 14 * - CAST( - + 54 AS SIGNED ) + - ( - 19 ) AS col1
----
-23417

skipif mysql # not compatible
query I rowsort label-1874
SELECT - 31 * 14 * - CAST ( - + 54 AS INTEGER ) + - ( - 19 ) AS col1
----
-23417

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT - 14 col1, - 27 + + COUNT( * )
----
-14
-26

skipif mysql # not compatible
query II rowsort label-1875
SELECT - 14 col1, - 27 + + COUNT ( * )
----
-14
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - MIN( + 78 ) * - 13 AS col2
----
1014

skipif mysql # not compatible
query I rowsort label-1876
SELECT - MIN ( + 78 ) * - 13 AS col2
----
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT - + 10 * + 60 * - NULLIF ( - + 43, 96 ) * COUNT( * ) AS col2
----
-25800

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT - + 10 * + 60 * - NULLIF ( - + 43, 96 ) * COUNT ( * ) AS col2
----
-25800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1878
SELECT DISTINCT - + 93 DIV + 76 * + CAST( - ( + + COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT - + 93 / + 76 * + CAST ( - ( + + COUNT ( * ) ) AS INTEGER )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT ALL - ( 1 ) DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL - ( 1 ) / - - 96
----
0

query I rowsort
SELECT + + 85 + + 18
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT - + COUNT( * ) - - 48 + - - 22 * - 37 * - - COUNT( * ) - COUNT( * ) * 10 * 39
----
-1157

skipif mysql # not compatible
query I rowsort label-1881
SELECT - + COUNT ( * ) - - 48 + - - 22 * - 37 * - - COUNT ( * ) - COUNT ( * ) * 10 * 39
----
-1157

onlyif mysql # DIV for integer division: 
query I rowsort label-1882
SELECT + + COALESCE ( 12, - 7 ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT + + COALESCE ( 12, - 7 ) / - 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1883
SELECT - 57 - 48 - + CAST( 94 AS SIGNED ) - COUNT( * )
----
-200

skipif mysql # not compatible
query I rowsort label-1883
SELECT - 57 - 48 - + CAST ( 94 AS INTEGER ) - COUNT ( * )
----
-200

onlyif mysql # DIV for integer division: 
query III rowsort label-1884
SELECT ALL 18 AS col0, + 36 + 1 - - - 48, 61 + - ( 83 ) + NULLIF ( COALESCE ( 2, ( + 11 ), 88 DIV 71, 5 DIV 15 ), 32 * 86 ) AS col1
----
18
-11
-20

skipif mysql # not compatible
query III rowsort label-1884
SELECT ALL 18 AS col0, + 36 + 1 - - - 48, 61 + - ( 83 ) + NULLIF ( COALESCE ( 2, ( + 11 ), 88 / 71, 5 / 15 ), 32 * 86 ) AS col1
----
18
-11
-20

query I rowsort
SELECT - 75 * - 52 AS col2
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL - MAX( DISTINCT + 27 ) + - - 42 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL - MAX ( DISTINCT + 27 ) + - - 42 AS col2
----
15

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1888
SELECT + 51 DIV + CAST( + 50 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1888
SELECT + 51 / + CAST ( + 50 AS INTEGER )
----
1

query I rowsort
SELECT ALL ( + 90 ) + + - 56 AS col0
----
34

query I rowsort
SELECT ALL 21 + - 77 + 32
----
-24

query I rowsort
SELECT - NULLIF ( + 1, 30 * - + 86 + + - 68 + + 79 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-1892
SELECT + COUNT ( * ) - + 75 AS col0
----
-74

query I rowsort
SELECT DISTINCT 68 + - 27
----
41

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

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

query I rowsort
SELECT + 9 * - + 77
----
-693

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + CASE + 65 WHEN + - CASE COUNT( * ) WHEN - - 23 THEN NULL WHEN + - 18 THEN - 61 END THEN 32 * - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT + CASE + 65 WHEN + - CASE COUNT ( * ) WHEN - - 23 THEN NULL WHEN + - 18 THEN - 61 END THEN 32 * - 3 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT + ( - - COUNT( * ) ) * - 73 + + 79
----
6

skipif mysql # not compatible
query I rowsort label-1898
SELECT + ( - - COUNT ( * ) ) * - 73 + + 79
----
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT ALL + 24 DIV + + 87 + 6
----
6

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL + 24 / + + 87 + 6
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT CAST( - 90 AS SIGNED ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-1901
SELECT CAST ( - 90 AS INTEGER ) col1
----
-90

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1904
SELECT + NULLIF ( + COUNT( * ), + 76 + - COUNT( * ) ) DIV - COUNT( * ) + - + 45 * - 20 AS col1
----
899

skipif mysql # not compatible
query I rowsort label-1904
SELECT + NULLIF ( + COUNT ( * ), + 76 + - COUNT ( * ) ) / - COUNT ( * ) + - + 45 * - 20 AS col1
----
899

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT DISTINCT + - 44 AS col1, - MAX( + 61 ) col2
----
-44
-61

skipif mysql # not compatible
query II rowsort label-1905
SELECT DISTINCT + - 44 AS col1, - MAX ( + 61 ) col2
----
-44
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1906
SELECT ALL 83 DIV + 76 - + 70 + - - CASE + 70 WHEN + - 24 THEN + CASE WHEN CASE - COUNT( * ) WHEN 68 THEN MIN( DISTINCT CAST( CAST( + 85 AS SIGNED ) AS SIGNED ) ) * - 69 END <> AVG ( + 62 ) THEN NULL ELSE 59 * MIN( ALL 92 * 73 ) END + + 85 * CAST( + 64 AS SIGNED ) ELSE 53 END + 34 * 68 - - COUNT( * ) AS col0
----
2297

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL 83 / + 76 - + 70 + - - CASE + 70 WHEN + - 24 THEN + CASE WHEN CASE - COUNT ( * ) WHEN 68 THEN MIN ( DISTINCT CAST ( CAST ( + 85 AS INTEGER ) AS INTEGER ) ) * - 69 END <> AVG ( + 62 ) THEN NULL ELSE 59 * MIN ( ALL 92 * 73 ) END + + 85 * CAST ( + 64 AS INTEGER ) ELSE 53 END + 34 * 68 - - COUNT ( * ) AS col0
----
2297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT + - 21 - + ( + ( - CAST( - + 70 AS SIGNED ) ) ) * + 50 + + 6 AS col2
----
-3515

skipif mysql # not compatible
query I rowsort label-1907
SELECT + - 21 - + ( + ( - CAST ( - + 70 AS INTEGER ) ) ) * + 50 + + 6 AS col2
----
-3515

query I rowsort
SELECT + - 63 * 14 AS col1
----
-882

query II rowsort
SELECT + ( - - 71 ) col0, 10 * + 15
----
71
150

query I rowsort
SELECT + 87 * + + ( + - 54 ) * + 45 - - + 38 * + 28
----
-210346

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT DISTINCT 71 DIV 22 * + - ( 54 ) AS col2
----
-162

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT 71 / 22 * + - ( 54 ) AS col2
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1912
SELECT COUNT( DISTINCT - 44 ) * - 62 * + + 64 + - 8 DIV + 6 + 81 AS col0
----
-3888

skipif mysql # not compatible
query I rowsort label-1912
SELECT COUNT ( DISTINCT - 44 ) * - 62 * + + 64 + - 8 / + 6 + 81 AS col0
----
-3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL + + 20 * CAST( NULL AS SIGNED ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + + 20 * CAST ( NULL AS INTEGER ) * - 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT - 59 + 98 + - + 99 + - - ( + 31 ) + - ( ( - 16 ) ) DIV 65
----
-29

skipif mysql # not compatible
query I rowsort label-1914
SELECT - 59 + 98 + - + 99 + - - ( + 31 ) + - ( ( - 16 ) ) / 65
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1915
SELECT ALL COALESCE ( + + 2, + - 13, + 67 + + + ( - - NULLIF ( 49, 88 * 2 ) ) - + 98 * 22, 95 + 60 ) DIV - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL COALESCE ( + + 2, + - 13, + 67 + + + ( - - NULLIF ( 49, 88 * 2 ) ) - + 98 * 22, 95 + 60 ) / - COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1916
SELECT ALL + - CAST( + + 27 AS SIGNED ) * + 83 * 54 * + CASE ( CASE 50 WHEN - CAST( + 61 AS SIGNED ) THEN - 10 ELSE - 27 / - COALESCE ( 69, + NULLIF ( + 82, + 23 ) + COALESCE ( - 29 + + 27, 33 + - 4 * + 23 ) * - NULLIF ( - 8, 9 ), + 57 ) END ) WHEN + 14 * 18 THEN NULL ELSE 25 END * MIN( DISTINCT + 8 ) - COUNT( * ) * ( 68 + 74 )
----
-24202942

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL + - CAST ( + + 27 AS INTEGER ) * + 83 * 54 * + CASE ( CASE 50 WHEN - CAST ( + 61 AS INTEGER ) THEN - 10 ELSE - 27 / - COALESCE ( 69, + NULLIF ( + 82, + 23 ) + COALESCE ( - 29 + + 27, 33 + - 4 * + 23 ) * - NULLIF ( - 8, 9 ), + 57 ) END ) WHEN + 14 * 18 THEN NULL ELSE 25 END * MIN ( DISTINCT + 8 ) - COUNT ( * ) * ( 68 + 74 )
----
-24202942

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT - SUM( + 83 ) * 73
----
-6059

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - SUM ( + 83 ) * 73
----
-6059

query I rowsort
SELECT ALL - 11 * 53 AS col1
----
-583

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

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

query I rowsort
SELECT DISTINCT ( 3 ) * - + 79 AS col1
----
-237

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

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

query I rowsort
SELECT 45 + ( + 39 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + 24 * + - 96 * + COUNT( 21 ) + 29 + + 76
----
-2199

skipif mysql # not compatible
query I rowsort label-1924
SELECT + 24 * + - 96 * + COUNT ( 21 ) + 29 + + 76
----
-2199

query I rowsort
SELECT ALL - COALESCE ( - - 17, - - 35 * - 26 * - 84 * - ( + 23 ) ) AS col0
----
-17

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

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

query I rowsort
SELECT 35 + - 34
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT 22 + NULLIF ( - + 33, COUNT( * ) + + - 56 ) * + NULLIF ( 45, + COALESCE ( - 12, - 45 * - 12 ) / - 67 - NULLIF ( 86, - 6 ) ) AS col2
----
-1463

skipif mysql # not compatible
query I rowsort label-1928
SELECT 22 + NULLIF ( - + 33, COUNT ( * ) + + - 56 ) * + NULLIF ( 45, + COALESCE ( - 12, - 45 * - 12 ) / - 67 - NULLIF ( 86, - 6 ) ) AS col2
----
-1463

query I rowsort
SELECT ALL + - 40 + 91 * 5
----
415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT - CASE 42 WHEN - COUNT( * ) THEN NULL ELSE - - 64 DIV - 37 + + ( - 33 ) * + COUNT( * ) END + 97 * + 80
----
7794

skipif mysql # not compatible
query I rowsort label-1930
SELECT - CASE 42 WHEN - COUNT ( * ) THEN NULL ELSE - - 64 / - 37 + + ( - 33 ) * + COUNT ( * ) END + 97 * + 80
----
7794

query I rowsort
SELECT 11 - + 72 * + 16 + + + 2 * 76 + - + 43 AS col0
----
-1032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT - 84 * - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL - 77 + + - MAX( DISTINCT - + 64 )
----
-13

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - 77 + + - MAX ( DISTINCT - + 64 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT ALL - SUM( DISTINCT + 41 ) + + 42 + 34 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL - SUM ( DISTINCT + 41 ) + + 42 + 34 AS col0
----
35

query I rowsort
SELECT ALL + 77 + 25 AS col2
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-1936
SELECT ALL + 4 DIV - + 26, 44 AS col0
----
0
44

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL + 4 / - + 26, 44 AS col0
----
0
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1937
SELECT ALL CAST( NULL AS DECIMAL ) + - 8 col0, NULLIF ( 93, - COUNT( * ) + - - SUM( 59 ) ) * SUM( DISTINCT + 74 )
----
NULL
6882

skipif mysql # not compatible
query II rowsort label-1937
SELECT ALL CAST ( NULL AS REAL ) + - 8 col0, NULLIF ( 93, - COUNT ( * ) + - - SUM ( 59 ) ) * SUM ( DISTINCT + 74 )
----
NULL
6882

query I rowsort
SELECT 34 * 63 AS col0
----
2142

query I rowsort
SELECT ALL + ( - 40 ) + - 81
----
-121

query I rowsort
SELECT 24 + 83 AS col0
----
107

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

skipif mysql # not compatible
query I rowsort label-1941
SELECT COUNT ( * ) + + 46 + + 32 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT ALL 73 - + - NULLIF ( - 94, 28 DIV 3 ) + COALESCE ( 87, 20 ) DIV 7 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL 73 - + - NULLIF ( - 94, 28 / 3 ) + COALESCE ( 87, 20 ) / 7 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT - 23 * + 99 + - 78 + + - 38 DIV 68 * - 73 AS col2
----
-2355

skipif mysql # not compatible
query I rowsort label-1943
SELECT - 23 * + 99 + - 78 + + - 38 / 68 * - 73 AS col2
----
-2355

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT 86 / - + 81 * 83 + SUM( + - 54 ) + - 65 * 18 + + CASE ( ( - 23 ) ) WHEN - 30 * 66 + - 35 THEN + 39 WHEN + COUNT( * ) THEN 75 * - 35 + 96 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT 86 / - + 81 * 83 + SUM ( + - 54 ) + - 65 * 18 + + CASE ( ( - 23 ) ) WHEN - 30 * 66 + - 35 THEN + 39 WHEN + COUNT ( * ) THEN 75 * - 35 + 96 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1946
SELECT MAX( 41 ) * + ( + 9 ) - - CAST( + ( - 83 ) AS SIGNED ) + CAST( 39 AS SIGNED ) * 64 AS col1
----
2782

skipif mysql # not compatible
query I rowsort label-1946
SELECT MAX ( 41 ) * + ( + 9 ) - - CAST ( + ( - 83 ) AS INTEGER ) + CAST ( 39 AS INTEGER ) * 64 AS col1
----
2782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1947
SELECT DISTINCT - CASE + NULLIF ( - - 7, + COALESCE ( + + 11, - NULLIF ( + + 82, + ( 33 ) ) + CAST( NULL AS SIGNED ) ) ) WHEN - COUNT( * ) THEN 46 / - MAX( ALL + ( 59 ) ) END * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT - CASE + NULLIF ( - - 7, + COALESCE ( + + 11, - NULLIF ( + + 82, + ( 33 ) ) + CAST ( NULL AS INTEGER ) ) ) WHEN - COUNT ( * ) THEN 46 / - MAX ( ALL + ( 59 ) ) END * 36
----
NULL

query I rowsort
SELECT DISTINCT - + NULLIF ( - - 43, 34 ) AS col0
----
-43

query I rowsort
SELECT ALL + 45 * - ( + 69 )
----
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT COALESCE ( + 44, COUNT( * ) ) + - 96
----
-52

skipif mysql # not compatible
query I rowsort label-1950
SELECT COALESCE ( + 44, COUNT ( * ) ) + - 96
----
-52

query I rowsort
SELECT + 23 * + 16 + + 9 AS col2
----
377

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT 57 + + - 57 DIV 91 DIV 77 - + 43 + + + 43 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1952
SELECT 57 + + - 57 / 91 / 77 - + 43 + + + 43 AS col0
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-1953
SELECT 88 DIV 22 + + + 0 AS col1, 34 AS col1
----
4
34

skipif mysql # not compatible
query II rowsort label-1953
SELECT 88 / 22 + + + 0 AS col1, 34 AS col1
----
4
34

query I rowsort
SELECT DISTINCT 72 + - - 50 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT 18 * - + 55 + - - 77 + + COUNT( * ) AS col0
----
-912

skipif mysql # not compatible
query I rowsort label-1955
SELECT 18 * - + 55 + - - 77 + + COUNT ( * ) AS col0
----
-912

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

skipif mysql # not compatible
query I rowsort label-1956
SELECT - COUNT ( ALL + - ( + ( - 45 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL + 38 + + 49 + - - 24 + - + 40 + - COUNT( * ) + - + 49 * 17 * 16 * 81 * NULLIF ( - MAX( ALL - 24 ) + SUM( DISTINCT 24 ), 35 )
----
-51819194

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + 38 + + 49 + - - 24 + - + 40 + - COUNT ( * ) + - + 49 * 17 * 16 * 81 * NULLIF ( - MAX ( ALL - 24 ) + SUM ( DISTINCT 24 ), 35 )
----
-51819194

query I rowsort
SELECT DISTINCT - 80 * 15 AS col0
----
-1200

query I rowsort
SELECT 27 * + 37 * - 78
----
-77922

query II rowsort
SELECT ALL 17 AS col0, 70 + - + 99 AS col1
----
17
-29

query I rowsort
SELECT ALL + 82 + - + 52 AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT ALL NULLIF ( - 22, 81 * + COUNT( * ) + - 2 * ( + COUNT( DISTINCT - 78 ) ) * - COUNT( * ) + 66 / + NULLIF ( 20 - 48, + 30 + - 75 * + CAST( + MIN( - 93 ) AS SIGNED ) ) ) * - 29
----
638

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL NULLIF ( - 22, 81 * + COUNT ( * ) + - 2 * ( + COUNT ( DISTINCT - 78 ) ) * - COUNT ( * ) + 66 / + NULLIF ( 20 - 48, + 30 + - 75 * + CAST ( + MIN ( - 93 ) AS INTEGER ) ) ) * - 29
----
638

query I rowsort
SELECT 43 + - 12 AS col0
----
31

query I rowsort
SELECT ALL - ( 61 ) + 20 col0
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-1965
SELECT ALL 82 col1, + 45 DIV - NULLIF ( 13, 27 )
----
82
-3

skipif mysql # not compatible
query II rowsort label-1965
SELECT ALL 82 col1, + 45 / - NULLIF ( 13, 27 )
----
82
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT - MAX( ALL + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-1966
SELECT - MAX ( ALL + 99 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT DISTINCT - 1 - 37 + + - 83 * COUNT( DISTINCT 3 ) DIV + CASE WHEN NOT NULL IS NOT NULL THEN - 41 END * COUNT( * ) + 2 * 96 * - CASE ( - ( + 93 ) ) WHEN - 62 THEN NULL ELSE + NULLIF ( + 25, 77 + + COUNT( * ) ) END
----
-4836

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT - 1 - 37 + + - 83 * COUNT ( DISTINCT 3 ) / + CASE WHEN NOT NULL IS NOT NULL THEN - 41 END * COUNT ( * ) + 2 * 96 * - CASE ( - ( + 93 ) ) WHEN - 62 THEN NULL ELSE + NULLIF ( + 25, 77 + + COUNT ( * ) ) END
----
-4836

query I rowsort
SELECT ALL + 46 * + 83 AS col2
----
3818

query I rowsort
SELECT 52 * 58 AS col2
----
3016

query I rowsort
SELECT DISTINCT + 29 * + 64 col2
----
1856

onlyif mysql # DIV for integer division: 
query I rowsort label-1971
SELECT DISTINCT + 56 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT + 56 / + - 98
----
0

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

skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT - COUNT ( * ) * + 54 AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1973
SELECT 71 - + CAST( NULL AS SIGNED ) / CAST( NULL AS DECIMAL ) + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT 71 - + CAST ( NULL AS INTEGER ) / CAST ( NULL AS REAL ) + + 65 AS col1
----
NULL

query I rowsort
SELECT ALL - 47 * ( + 41 ) AS col2
----
-1927

onlyif mysql # DIV for integer division: 
query II rowsort label-1975
SELECT 42 * 15 DIV - 11 AS col2, - 78 AS col0
----
-57
-78

skipif mysql # not compatible
query II rowsort label-1975
SELECT 42 * 15 / - 11 AS col2, - 78 AS col0
----
-57
-78

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

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

query II rowsort
SELECT + 60 AS col1, 40
----
60
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT 61 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT 61 / + 65
----
0

query I rowsort
SELECT 97 * - 54 AS col1
----
-5238

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT ALL + CASE 98 WHEN + - 83 * 58 THEN + COUNT( * ) * COALESCE ( - 22, + 61, - 50 ) WHEN + 98 + 79 * 38 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL + CASE 98 WHEN + - 83 * 58 THEN + COUNT ( * ) * COALESCE ( - 22, + 61, - 50 ) WHEN + 98 + 79 * 38 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL - CASE + 51 WHEN - + MAX( 10 ) * + COUNT( + - 5 ) + NULLIF ( - 73, COUNT( * ) * 29 ) + COUNT( * ) * - 5 THEN + 29 END / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - CASE + 51 WHEN - + MAX ( 10 ) * + COUNT ( + - 5 ) + NULLIF ( - 73, COUNT ( * ) * 29 ) + COUNT ( * ) * - 5 THEN + 29 END / 13
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1985
SELECT - + 5 * - + CAST( CASE - - 76 WHEN 78 THEN - 47 - + ( + 88 ) ELSE NULL END AS SIGNED ) * - ( 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT - + 5 * - + CAST ( CASE - - 76 WHEN 78 THEN - 47 - + ( + 88 ) ELSE NULL END AS INTEGER ) * - ( 33 ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 14 * - ( + 37 ) + 19 - + + 33 col0
----
504

query II rowsort
SELECT DISTINCT + + 99, 29 AS col1
----
99
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT - NULLIF ( - COUNT( DISTINCT NULLIF ( - - 61, - 2 + - - 80 ) ), - ( - + MIN( DISTINCT 28 ) ) ) + - 47 * 96
----
-4511

skipif mysql # not compatible
query I rowsort label-1988
SELECT - NULLIF ( - COUNT ( DISTINCT NULLIF ( - - 61, - 2 + - - 80 ) ), - ( - + MIN ( DISTINCT 28 ) ) ) + - 47 * 96
----
-4511

query I rowsort
SELECT - 17 - 70 + + 23 AS col1
----
-64

query II rowsort
SELECT + 0 col0, 13 * 66 * + 6
----
0
5148

query I rowsort
SELECT DISTINCT - + 61 * + ( - 35 ) + 58 AS col2
----
2193

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT MIN( 34 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-1992
SELECT MIN ( 34 ) col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL + + CASE - + NULLIF ( - + 81, 27 + + MIN( DISTINCT - - 48 ) + + COUNT( * ) ) WHEN + 62 + 61 THEN - 44 * + 36 + 13 * + NULLIF ( 72 - - 34, + 60 * + 41 + - 43 ) END * + 47 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + + CASE - + NULLIF ( - + 81, 27 + + MIN ( DISTINCT - - 48 ) + + COUNT ( * ) ) WHEN + 62 + 61 THEN - 44 * + 36 + 13 * + NULLIF ( 72 - - 34, + 60 * + 41 + - 43 ) END * + 47 + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT DISTINCT + 89 * - ( + 66 ) DIV 1 AS col0
----
-5874

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT + 89 * - ( + 66 ) / 1 AS col0
----
-5874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT ALL - + CASE 20 WHEN - 33 THEN NULL WHEN - 0 THEN CAST( + 17 AS SIGNED ) / - - 38 + - + 48 END * - ( + 73 ) + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - + CASE 20 WHEN - 33 THEN NULL WHEN - 0 THEN CAST ( + 17 AS INTEGER ) / - - 38 + - + 48 END * - ( + 73 ) + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT + CASE - COUNT( * ) WHEN + CASE - + 53 WHEN + + SUM( ALL + 89 ) THEN 93 ELSE NULL END / ( + 51 ) THEN NULL WHEN 53 THEN NULL ELSE + CASE 91 WHEN + 22 / + 48 THEN 55 END + MIN( 92 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + CASE - + 53 WHEN + + SUM ( ALL + 89 ) THEN 93 ELSE NULL END / ( + 51 ) THEN NULL WHEN 53 THEN NULL ELSE + CASE 91 WHEN + 22 / + 48 THEN 55 END + MIN ( 92 ) END
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1998
SELECT ALL - ( + COUNT( * ) ) * 90 + + + 23 DIV + 76 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - ( + COUNT ( * ) ) * 90 + + + 23 / + 76 AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1999
SELECT DISTINCT + 5 * COALESCE ( + + COALESCE ( - ( - + ( NULLIF ( - 48, + COUNT( + 96 ) ) ) ), 27 + + 97 ), + COUNT( * ) ) + CAST( - 18 AS SIGNED ) * 78 + - 63 * + 40 AS col1
----
-4164

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + 5 * COALESCE ( + + COALESCE ( - ( - + ( NULLIF ( - 48, + COUNT ( + 96 ) ) ) ), 27 + + 97 ), + COUNT ( * ) ) + CAST ( - 18 AS INTEGER ) * 78 + - 63 * + 40 AS col1
----
-4164

query I rowsort
SELECT 14 * - COALESCE ( + ( - - 90 ), 64 + + 51 ) + 83 * + + COALESCE ( ( + ( + 95 ) ), + 45 ) AS col2
----
6625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT + 57 + + - CAST( 23 AS SIGNED ) col1
----
34

skipif mysql # not compatible
query I rowsort label-2001
SELECT + 57 + + - CAST ( 23 AS INTEGER ) col1
----
34

query I rowsort
SELECT + 68 + + 90
----
158

query I rowsort
SELECT + 74 * + - 73 AS col0
----
-5402

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2005
SELECT DISTINCT 9 DIV - COALESCE ( + 48, - - CAST( 99 AS SIGNED ) DIV ( + 93 ), + 37 * CASE - 99 WHEN 77 THEN NULL ELSE 67 * + CASE - 93 WHEN + COUNT( * ) THEN NULL ELSE - 32 END - + 96 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT 9 / - COALESCE ( + 48, - - CAST ( 99 AS INTEGER ) / ( + 93 ), + 37 * CASE - 99 WHEN 77 THEN NULL ELSE 67 * + CASE - 93 WHEN + COUNT ( * ) THEN NULL ELSE - 32 END - + 96 END ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT + 21 + - - CASE + - 7 WHEN + - 69 THEN - + 46 * + 57 - ( - COUNT( * ) ) * - 74 * 23 WHEN + COALESCE ( - NULLIF ( 17, - 16 ), 91 * + 25, 15 ) THEN - 88 ELSE + 61 END - NULLIF ( - 59, + 99 ) * - 46
----
-2632

skipif mysql # not compatible
query I rowsort label-2006
SELECT + 21 + - - CASE + - 7 WHEN + - 69 THEN - + 46 * + 57 - ( - COUNT ( * ) ) * - 74 * 23 WHEN + COALESCE ( - NULLIF ( 17, - 16 ), 91 * + 25, 15 ) THEN - 88 ELSE + 61 END - NULLIF ( - 59, + 99 ) * - 46
----
-2632

query I rowsort
SELECT ALL 32 * + 83 col2
----
2656

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT + 38 * - 97 DIV - 95
----
38

skipif mysql # not compatible
query I rowsort label-2008
SELECT + 38 * - 97 / - 95
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT DISTINCT MAX( DISTINCT - + 81 ) - + 89
----
-170

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT MAX ( DISTINCT - + 81 ) - + 89
----
-170

query I rowsort
SELECT ALL NULLIF ( - 92, - - 33 ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT - MIN( - 95 ) + - - MAX( ALL + 90 ) + - 98 + - 18 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2011
SELECT - MIN ( - 95 ) + - - MAX ( ALL + 90 ) + - 98 + - 18 AS col0
----
69

query I rowsort
SELECT + 78 * + ( 59 ) col2
----
4602

query I rowsort
SELECT + 96 + + 57 col1
----
153

query I rowsort
SELECT - ( - - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT + MIN( DISTINCT - 94 ) + - 97 + + - 20 AS col2
----
-211

skipif mysql # not compatible
query I rowsort label-2015
SELECT + MIN ( DISTINCT - 94 ) + - 97 + + - 20 AS col2
----
-211

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT - - 84 + + - 54 DIV + + 54 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2016
SELECT - - 84 + + - 54 / + + 54 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT - - COUNT( - 87 ) * - - 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - - COUNT ( - 87 ) * - - 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - COUNT( * ) + - 89 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-2018
SELECT - COUNT ( * ) + - 89 AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2019
SELECT - COALESCE ( - 82, + 9 DIV - NULLIF ( + + 77, 48 * + COUNT( * ) + 67 + + ( + 2 ) ) + 74 DIV 45, + 26 ) DIV 18 + + 59
----
63

skipif mysql # not compatible
query I rowsort label-2019
SELECT - COALESCE ( - 82, + 9 / - NULLIF ( + + 77, 48 * + COUNT ( * ) + 67 + + ( + 2 ) ) + 74 / 45, + 26 ) / 18 + + 59
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL + 23 / 5 + NULLIF ( 35, + 2 ) + + - MIN( + COALESCE ( + - 97, 44 - 94 ) ) * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL + 23 / 5 + NULLIF ( 35, + 2 ) + + - MIN ( + COALESCE ( + - 97, 44 - 94 ) ) * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - + 57 * - 11 * + COUNT( * )
----
627

skipif mysql # not compatible
query I rowsort label-2021
SELECT - + 57 * - 11 * + COUNT ( * )
----
627

query I rowsort
SELECT CASE + 0 WHEN 9 * - 99 THEN ( - 19 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2023
SELECT - + 7 DIV + 27 AS col1, 84
----
0
84

skipif mysql # not compatible
query II rowsort label-2023
SELECT - + 7 / + 27 AS col1, 84
----
0
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL - 94 * - + CASE - + CAST( NULL AS SIGNED ) WHEN + 52 THEN NULL WHEN + 90 THEN + CAST( + + ( + - MIN( DISTINCT + 3 ) ) AS SIGNED ) END + 54 + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - 94 * - + CASE - + CAST ( NULL AS INTEGER ) WHEN + 52 THEN NULL WHEN + 90 THEN + CAST ( + + ( + - MIN ( DISTINCT + 3 ) ) AS INTEGER ) END + 54 + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT - 50 * - NULLIF ( COALESCE ( + MAX( ALL - 46 ), + COUNT( * ) ), COUNT( * ) / + + 13 ) * + + NULLIF ( - 24, - ( + 26 ) ) * - 81 + + COUNT( * )
----
-4471199

skipif mysql # not compatible
query I rowsort label-2025
SELECT - 50 * - NULLIF ( COALESCE ( + MAX ( ALL - 46 ), + COUNT ( * ) ), COUNT ( * ) / + + 13 ) * + + NULLIF ( - 24, - ( + 26 ) ) * - 81 + + COUNT ( * )
----
-4471199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2026
SELECT DISTINCT + COUNT( DISTINCT 29 ) / - NULLIF ( + - CAST( NULL AS SIGNED ), - 44 * + 24 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT + COUNT ( DISTINCT 29 ) / - NULLIF ( + - CAST ( NULL AS INTEGER ), - 44 * + 24 ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 88 * 44 + - 97 AS col0
----
3775

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT + 13 * + NULLIF ( - 58, + + 59 ) + + SUM( DISTINCT - 12 ) AS col1
----
-766

skipif mysql # not compatible
query I rowsort label-2028
SELECT + 13 * + NULLIF ( - 58, + + 59 ) + + SUM ( DISTINCT - 12 ) AS col1
----
-766

query I rowsort
SELECT ALL + NULLIF ( 7, + + 26 + + 29 )
----
7

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

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

query I rowsort
SELECT - 78 + + - 8 AS col1
----
-86

query I rowsort
SELECT DISTINCT + ( - NULLIF ( + + 92, 51 ) ) AS col0
----
-92

query I rowsort
SELECT - 92 * - 16
----
1472

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

query II rowsort
SELECT NULLIF ( + 54, - 97 ), - 12 col0
----
54
-12

query I rowsort
SELECT ALL 56 * 79 * + 26
----
115024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2037
SELECT + 15 DIV - 52 * - - MIN( DISTINCT - 8 )
----
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT + 15 / - 52 * - - MIN ( DISTINCT - 8 )
----
0

query I rowsort
SELECT ALL - 47 * 1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2039
SELECT + 32 + COUNT( ALL 99 ) * - 47 DIV + 91, - 0 col2
----
32
0

skipif mysql # not compatible
query II rowsort label-2039
SELECT + 32 + COUNT ( ALL 99 ) * - 47 / + 91, - 0 col2
----
32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT COUNT( DISTINCT + NULLIF ( 53, 12 * + - ( + 3 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2040
SELECT COUNT ( DISTINCT + NULLIF ( 53, 12 * + - ( + 3 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2041
SELECT + CAST( NULL AS SIGNED ) + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT + CAST ( NULL AS INTEGER ) + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + MIN( DISTINCT - + 60 ) * - 68
----
4080

skipif mysql # not compatible
query I rowsort label-2042
SELECT + MIN ( DISTINCT - + 60 ) * - 68
----
4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT + ( - - 20 ) - - CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2043
SELECT + ( - - 20 ) - - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
21

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

query I rowsort
SELECT 3 + + 76 * 11 * + 95 * + ( 28 ) + 31
----
2223794

query I rowsort
SELECT ALL 43 * - + 41 AS col1
----
-1763

query I rowsort
SELECT ALL 54 + + 66 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT ALL + 27 + - - COUNT( 88 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL + 27 + - - COUNT ( 88 ) AS col0
----
28

query I rowsort
SELECT - CASE - 89 WHEN ( - 52 ) THEN - 90 ELSE + 15 + 17 END AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2050
SELECT ALL 93 * + + 69 DIV - - ( - 1 ) + - 87 * SUM( ALL 9 ) * + 78 * - 73
----
4451985

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL 93 * + + 69 / - - ( - 1 ) + - 87 * SUM ( ALL 9 ) * + 78 * - 73
----
4451985

onlyif mysql # DIV for integer division: 
query I rowsort label-2051
SELECT 17 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2051
SELECT 17 / - 68 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2052
SELECT - 37 - - 11 DIV + MIN( + 43 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2052
SELECT - 37 - - 11 / + MIN ( + 43 ) AS col1
----
-37

query I rowsort
SELECT ALL + 83 * - 33 * + 47 + + + 32 * - 78
----
-131229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT + CASE - 24 WHEN + + 12 + + - 88 THEN + 3 * - 77 + + + 21 + - CASE - - COALESCE ( - CASE - 45 WHEN 26 THEN - 84 WHEN 36 THEN + COUNT( * ) * - MIN( + 99 ) ELSE NULL END, + 10 ) WHEN 91 THEN 70 WHEN CAST( 9 AS SIGNED ) * - COUNT( * ) + + 21 THEN COUNT( * ) ELSE NULL END + + 81 WHEN 97 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT + CASE - 24 WHEN + + 12 + + - 88 THEN + 3 * - 77 + + + 21 + - CASE - - COALESCE ( - CASE - 45 WHEN 26 THEN - 84 WHEN 36 THEN + COUNT ( * ) * - MIN ( + 99 ) ELSE NULL END, + 10 ) WHEN 91 THEN 70 WHEN CAST ( 9 AS INTEGER ) * - COUNT ( * ) + + 21 THEN COUNT ( * ) ELSE NULL END + + 81 WHEN 97 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ( + - 36 ) * + 31 AS col2
----
-1116

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2057
SELECT - 85 - CAST( MAX( - + 37 ) AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-2057
SELECT - 85 - CAST ( MAX ( - + 37 ) AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ( - + MAX( NULLIF ( - 49, + 75 ) ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2058
SELECT ( - + MAX ( NULLIF ( - 49, + 75 ) ) ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL - 92 + ( - 74 ) * + SUM( + 27 ) - + 19 * - + 60
----
-950

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL - 92 + ( - 74 ) * + SUM ( + 27 ) - + 19 * - + 60
----
-950

query I rowsort
SELECT DISTINCT + 33 + + - 94 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ALL - 0 + - COUNT( * ) * - 44 * - 22
----
-968

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL - 0 + - COUNT ( * ) * - 44 * - 22
----
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col2
----
2

query II rowsort
SELECT DISTINCT - 6 AS col0, + 70 + + 47 + + + 59
----
-6
176

query I rowsort
SELECT ALL - 51 + - + 23 * - + 59 AS col0
----
1306

query I rowsort
SELECT ALL + 7 * 9 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - 6 * - SUM( + + 54 ) + - ( + - 36 ) + 51
----
411

skipif mysql # not compatible
query I rowsort label-2066
SELECT - 6 * - SUM ( + + 54 ) + - ( + - 36 ) + 51
----
411

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT 45 + + - ( 45 ) - - COUNT( * ) * - 34 AS col1, 25
----
-34
25

skipif mysql # not compatible
query II rowsort label-2067
SELECT 45 + + - ( 45 ) - - COUNT ( * ) * - 34 AS col1, 25
----
-34
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT - ( + 24 ) * + 96 / CASE + - ( 0 ) WHEN - - 56 THEN - COUNT( * ) END - + + 67 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT - ( + 24 ) * + 96 / CASE + - ( 0 ) WHEN - - 56 THEN - COUNT ( * ) END - + + 67 col0
----
NULL

query I rowsort
SELECT ALL - + CASE + - 45 WHEN - + ( - 97 ) THEN + - 64 WHEN + 83 * - - 85 + - COALESCE ( - 26, - 47 ) - - 75 THEN + 0 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2070
SELECT ALL - 98 AS col0, COUNT( * ) * + + CAST( NULL AS SIGNED ) + - 96 / 41 AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-2070
SELECT ALL - 98 AS col0, COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - 96 / 41 AS col0
----
-98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - COUNT( * ) * - - 18 + + 77 + + 40 - - 96 * - + 68 * + - COUNT( * ) AS col0
----
6627

skipif mysql # not compatible
query I rowsort label-2071
SELECT - COUNT ( * ) * - - 18 + + 77 + + 40 - - 96 * - + 68 * + - COUNT ( * ) AS col0
----
6627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT ALL - COALESCE ( - 84, - CAST( 91 AS SIGNED ) )
----
84

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL - COALESCE ( - 84, - CAST ( 91 AS INTEGER ) )
----
84

query I rowsort
SELECT 43 * + 99 * - 24
----
-102168

query I rowsort
SELECT ALL - 87 * 73
----
-6351

onlyif mysql # DIV for integer division: 
query II rowsort label-2075
SELECT ALL + 87 DIV + 40 AS col1, NULLIF ( 64, 85 DIV - 2 - 93 DIV + - 58 )
----
2
64

skipif mysql # not compatible
query II rowsort label-2075
SELECT ALL + 87 / + 40 AS col1, NULLIF ( 64, 85 / - 2 - 93 / + - 58 )
----
2
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT 62 + + SUM( ALL - + 46 ) + + ( - 55 )
----
-39

skipif mysql # not compatible
query I rowsort label-2076
SELECT 62 + + SUM ( ALL - + 46 ) + + ( - 55 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN + 7 THEN - - 12 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN + 7 THEN - - 12 END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2078
SELECT ( - 49 ) * + 34 + + MIN( + CAST( + 50 AS SIGNED ) ) + - - 37 AS col1
----
-1579

skipif mysql # not compatible
query I rowsort label-2078
SELECT ( - 49 ) * + 34 + + MIN ( + CAST ( + 50 AS INTEGER ) ) + - - 37 AS col1
----
-1579

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT 61 + + + 0 * - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2079
SELECT 61 + + + 0 * - COUNT ( * ) AS col1
----
61

query I rowsort
SELECT ALL - 16 * 93
----
-1488

query I rowsort
SELECT DISTINCT - 43 + - 39 AS col1
----
-82

query II rowsort
SELECT - 0 AS col1, + 88 AS col2
----
0
88

query II rowsort
SELECT DISTINCT 60 + + + 75 AS col0, 32 AS col2
----
135
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2084
SELECT ALL COUNT( * ) + 49 * 83 DIV 43 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL COUNT ( * ) + 49 * 83 / 43 AS col0
----
95

query I rowsort
SELECT ALL 95 + 2 AS col1
----
97

query I rowsort
SELECT 1 + + - 87 AS col2
----
-86

query I rowsort
SELECT + COALESCE ( + 54, - + 29 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL COUNT( * ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL COUNT ( * ) + 39
----
40

query I rowsort
SELECT 80 * + 81
----
6480

query I rowsort
SELECT NULLIF ( + + 36, - 67 )
----
36

query I rowsort
SELECT 11 + - - ( - 93 ) * + 43 AS col1
----
-3988

query I rowsort
SELECT ALL + + 25 + + CASE + 5 WHEN + 40 THEN NULL WHEN + + 29 THEN 13 END - - - 52 * - + 23
----
NULL

query I rowsort
SELECT - 10 + 10 AS col0
----
0

query I rowsort
SELECT ALL - 55 - - 11 + + 38 - - 51
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2095
SELECT ALL + ( - 75 ) * - 62 + - 54 + + 51 * - CAST( NULL AS SIGNED ) * + 13 - - COUNT( - - 60 ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + ( - 75 ) * - 62 + - 54 + + 51 * - CAST ( NULL AS INTEGER ) * + 13 - - COUNT ( - - 60 ) * 13
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2096
SELECT + COUNT( * ) + - 97 AS col0, 7 AS col0
----
-96
7

skipif mysql # not compatible
query II rowsort label-2096
SELECT + COUNT ( * ) + - 97 AS col0, 7 AS col0
----
-96
7

query I rowsort
SELECT DISTINCT 11 * - 85 AS col2
----
-935

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2099
SELECT COUNT( * ) * - 90 + ( ( - 40 ) ) + + CAST( 6 AS SIGNED ) * + 26 * 7, + 35 AS col0
----
962
35

skipif mysql # not compatible
query II rowsort label-2099
SELECT COUNT ( * ) * - 90 + ( ( - 40 ) ) + + CAST ( 6 AS INTEGER ) * + 26 * 7, + 35 AS col0
----
962
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2100
SELECT + + COUNT( * ) / COUNT( * ) / + + 91 * + COALESCE ( + 7, + + 61 / + 44 ) * - 65 * + + CAST( NULL AS SIGNED ) + 31 + + + ( 51 ) - + COUNT( * ) / + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2100
SELECT + + COUNT ( * ) / COUNT ( * ) / + + 91 * + COALESCE ( + 7, + + 61 / + 44 ) * - 65 * + + CAST ( NULL AS INTEGER ) + 31 + + + ( 51 ) - + COUNT ( * ) / + 67
----
NULL

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

query I rowsort
SELECT ALL - COALESCE ( - - 41, 75 * - 26 * - - 60 * 73 * + + 37, - + 59 )
----
-41

query I rowsort
SELECT ALL - - 56 col0
----
56

query I rowsort
SELECT DISTINCT + 1 * 8 * 89 * + + 73 AS col2
----
51976

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT + MIN( 38 ), COUNT( ALL - + COALESCE ( - - 1, - 27 ) ) * + - 10 AS col2
----
38
-10

skipif mysql # not compatible
query II rowsort label-2105
SELECT + MIN ( 38 ), COUNT ( ALL - + COALESCE ( - - 1, - 27 ) ) * + - 10 AS col2
----
38
-10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT DISTINCT 15 + - COUNT( * ), - 7 AS col0
----
14
-7

skipif mysql # not compatible
query II rowsort label-2107
SELECT DISTINCT 15 + - COUNT ( * ), - 7 AS col0
----
14
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT COUNT( * ) * - 91 - + ( + 98 ) * 52
----
-5187

skipif mysql # not compatible
query I rowsort label-2108
SELECT COUNT ( * ) * - 91 - + ( + 98 ) * 52
----
-5187

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

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

query I rowsort
SELECT ALL + 84 * - - 7 * - 28
----
-16464

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT - ( - - 37 ) DIV + + 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT - ( - - 37 ) / + + 41 AS col0
----
0

query I rowsort
SELECT ALL 37 + - 70 AS col0
----
-33

query I rowsort
SELECT ALL + 57 + 23
----
80

query I rowsort
SELECT ALL + ( + 66 ) + + - 22 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2115
SELECT DISTINCT - COUNT( * ) DIV 84 AS col2, + 52
----
0
52

skipif mysql # not compatible
query II rowsort label-2115
SELECT DISTINCT - COUNT ( * ) / 84 AS col2, + 52
----
0
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2116
SELECT DISTINCT + 12 + + COUNT( * ), 2 * - - MAX( + 11 ) * - 80 AS col2
----
13
-1760

skipif mysql # not compatible
query II rowsort label-2116
SELECT DISTINCT + 12 + + COUNT ( * ), 2 * - - MAX ( + 11 ) * - 80 AS col2
----
13
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT ALL - COUNT( * ) + COUNT( + NULLIF ( + 43, 94 ) ) * + COALESCE ( + COUNT( * ), + 79 + + - 17 + - + 45 ) + + 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - COUNT ( * ) + COUNT ( + NULLIF ( + 43, 94 ) ) * + COALESCE ( + COUNT ( * ), + 79 + + - 17 + - + 45 ) + + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT - + 44 * - 14 - + + 63 + COUNT( * ) + - 74 * - 12
----
1442

skipif mysql # not compatible
query I rowsort label-2118
SELECT - + 44 * - 14 - + + 63 + COUNT ( * ) + - 74 * - 12
----
1442

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT - COUNT( + 11 ) - - 47
----
46

skipif mysql # not compatible
query I rowsort label-2119
SELECT - COUNT ( + 11 ) - - 47
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT CASE - 79 WHEN + 46 + - + COUNT( * ) + + COUNT( * ) + + 63 * + + 66 / MIN( + 4 ) * - COUNT( * ) + + 39 - 77 * - 78 THEN 54 - + 54 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT CASE - 79 WHEN + 46 + - + COUNT ( * ) + + COUNT ( * ) + + 63 * + + 66 / MIN ( + 4 ) * - COUNT ( * ) + + 39 - 77 * - 78 THEN 54 - + 54 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 6 - + 79 + - 5 * + 19 - 7 AS col2
----
-175

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT DISTINCT + MAX( + - 35 ) - - 14 + - 91 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT + MAX ( + - 35 ) - - 14 + - 91 AS col0
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT - + 45 * + COUNT( * ) + + - 21 * + 53 AS col0
----
-1158

skipif mysql # not compatible
query I rowsort label-2124
SELECT - + 45 * + COUNT ( * ) + + - 21 * + 53 AS col0
----
-1158

query I rowsort
SELECT DISTINCT - ( 73 )
----
-73

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

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL + 23 * - + COUNT ( * ) AS col2
----
-23

query I rowsort
SELECT - + ( + 14 ) - + 29 * + 23 AS col1
----
-681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2128
SELECT - CAST( + 2 AS SIGNED ) * + 35 * + 54 AS col1
----
-3780

skipif mysql # not compatible
query I rowsort label-2128
SELECT - CAST ( + 2 AS INTEGER ) * + 35 * + 54 AS col1
----
-3780

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT DISTINCT - 57 DIV + + 21 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - 57 / + + 21 AS col0
----
-2

query I rowsort
SELECT + - 18 * + 50 * + 76
----
-68400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT DISTINCT - COUNT( * ) DIV 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - COUNT ( * ) / 32 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL + ( MIN( + + ( 36 ) ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL + ( MIN ( + + ( 36 ) ) ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2133
SELECT + 18 * + SUM( ALL - COALESCE ( - 7, CAST( 99 AS SIGNED ), - 97 * + - 58 * - 59 ) ) - 82 + - COALESCE ( - + 59, 17 * ( + COUNT( COALESCE ( - 37, 26 * - 48 ) ) + - 53 ) ) * - 20 * + COUNT( * ) AS col2
----
-1136

skipif mysql # not compatible
query I rowsort label-2133
SELECT + 18 * + SUM ( ALL - COALESCE ( - 7, CAST ( 99 AS INTEGER ), - 97 * + - 58 * - 59 ) ) - 82 + - COALESCE ( - + 59, 17 * ( + COUNT ( COALESCE ( - 37, 26 * - 48 ) ) + - 53 ) ) * - 20 * + COUNT ( * ) AS col2
----
-1136

query I rowsort
SELECT - 86 + 6
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2135
SELECT + 92 * - CAST( - 94 AS SIGNED ) AS col1
----
8648

skipif mysql # not compatible
query I rowsort label-2135
SELECT + 92 * - CAST ( - 94 AS INTEGER ) AS col1
----
8648

query I rowsort
SELECT ALL 97 * - 40 AS col2
----
-3880

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

query I rowsort
SELECT - ( - + 34 ) * - 76 + - 68 col2
----
-2652

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT + COUNT( ALL - 54 ) + 60 AS col1, 61 AS col2
----
61
61

skipif mysql # not compatible
query II rowsort label-2139
SELECT + COUNT ( ALL - 54 ) + 60 AS col1, 61 AS col2
----
61
61

query I rowsort
SELECT DISTINCT 91 * 42 * + 80 * + + 13 col1
----
3974880

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT COUNT( * ) * + 23 * 25 * 25 + 57 * + 12
----
15059

skipif mysql # not compatible
query I rowsort label-2141
SELECT COUNT ( * ) * + 23 * 25 * 25 + 57 * + 12
----
15059

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2143
SELECT ALL 80 * + ( - 66 ) + 66 AS col0, CAST( - - 56 AS SIGNED )
----
-5214
56

skipif mysql # not compatible
query II rowsort label-2143
SELECT ALL 80 * + ( - 66 ) + 66 AS col0, CAST ( - - 56 AS INTEGER )
----
-5214
56

query II rowsort
SELECT ALL - 1 * + 94 + 31 AS col1, - 87 AS col1
----
-63
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2145
SELECT + CASE + 51 WHEN - 96 THEN - + ( - 99 ) * - COUNT( DISTINCT - 78 ) + + - CAST( 6 AS SIGNED ) WHEN + 56 THEN - 59 ELSE - 35 END
----
-35

skipif mysql # not compatible
query I rowsort label-2145
SELECT + CASE + 51 WHEN - 96 THEN - + ( - 99 ) * - COUNT ( DISTINCT - 78 ) + + - CAST ( 6 AS INTEGER ) WHEN + 56 THEN - 59 ELSE - 35 END
----
-35

query I rowsort
SELECT DISTINCT 67 * 33 + - 35 * 81
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT MIN( DISTINCT + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2147
SELECT MIN ( DISTINCT + 34 ) AS col0
----
34

query II rowsort
SELECT - 54 + + - ( + 0 ) AS col2, - 29 + + + 97 AS col0
----
-54
68

query I rowsort
SELECT + 66 * + 71
----
4686

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT + + COALESCE ( + 77, 5 DIV - 51 ) DIV - - 27 + + - 70 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-2151
SELECT + + COALESCE ( + 77, 5 / - 51 ) / - - 27 + + - 70 AS col2
----
-68

query I rowsort
SELECT ALL + + 87 - 11 AS col0
----
76

query I rowsort
SELECT - 1 - + + 39 - + 32 * + 1 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2154
SELECT - 6 / + - CASE 38 WHEN - 63 * - CAST( NULL AS SIGNED ) * + 73 THEN - - MAX( DISTINCT - 40 ) + + CAST( NULL AS SIGNED ) WHEN 10 * - - 87 + - 75 * + 99 / - COUNT( - 83 ) THEN NULL END * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 6 / + - CASE 38 WHEN - 63 * - CAST ( NULL AS INTEGER ) * + 73 THEN - - MAX ( DISTINCT - 40 ) + + CAST ( NULL AS INTEGER ) WHEN 10 * - - 87 + - 75 * + 99 / - COUNT ( - 83 ) THEN NULL END * - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL + CASE 22 WHEN - 35 * + + COUNT( * ) + + 49 THEN 6 * 35 * - + 32 / 61 WHEN 79 * + 31 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + CASE 22 WHEN - 35 * + + COUNT ( * ) + + 49 THEN 6 * 35 * - + 32 / 61 WHEN 79 * + 31 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT - + CAST( + 87 AS SIGNED ) + - + CASE - 76 WHEN 15 THEN NULL ELSE - + 1 END + + + 72 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2156
SELECT - + CAST ( + 87 AS INTEGER ) + - + CASE - 76 WHEN 15 THEN NULL ELSE - + 1 END + + + 72 AS col0
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT - - COUNT( * ) + - + NULLIF ( + COUNT( * ), ( - CASE 26 WHEN + 86 THEN + 53 / - - ( 39 ) * + 67 * + COUNT( * ) WHEN - 91 THEN 9 * - 62 ELSE NULL END ) ) + 75 * 37
----
2775

skipif mysql # not compatible
query I rowsort label-2158
SELECT - - COUNT ( * ) + - + NULLIF ( + COUNT ( * ), ( - CASE 26 WHEN + 86 THEN + 53 / - - ( 39 ) * + 67 * + COUNT ( * ) WHEN - 91 THEN 9 * - 62 ELSE NULL END ) ) + 75 * 37
----
2775

query I rowsort
SELECT ALL + 11 * + 98
----
1078

query I rowsort
SELECT - 17 + + 6 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT - 22 * - COUNT( * ) * + COALESCE ( - - 8, 31 ) + 80 AS col0
----
256

skipif mysql # not compatible
query I rowsort label-2161
SELECT - 22 * - COUNT ( * ) * + COALESCE ( - - 8, 31 ) + 80 AS col0
----
256

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

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT + + 40 + - COUNT ( * ) col1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT + CAST( 69 AS SIGNED ) * - 67 + + 52 col2
----
-4571

skipif mysql # not compatible
query I rowsort label-2163
SELECT + CAST ( 69 AS INTEGER ) * - 67 + + 52 col2
----
-4571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2164
SELECT ALL CASE + 62 WHEN + 59 THEN + 65 ELSE + 71 + + + 75 / + 32 END / COUNT( * ) + - CASE + CAST( NULL AS SIGNED ) WHEN ( COUNT( * ) ) * 12 THEN + - CAST( NULL AS SIGNED ) END + CASE - 85 - + COALESCE ( + COUNT( * ) + - 50, ( - 90 ) + + ( + 51 ), - 83 ) WHEN 3 THEN 11 / + COALESCE ( - 5 * - 50, + 29 + 8 ) WHEN - 61 + - 24 THEN + COUNT( * ) ELSE COUNT( * ) / 30 END * + NULLIF ( 84 * + 59, + 95 + COALESCE ( + 51, 12 ) ) / - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL CASE + 62 WHEN + 59 THEN + 65 ELSE + 71 + + + 75 / + 32 END / COUNT ( * ) + - CASE + CAST ( NULL AS INTEGER ) WHEN ( COUNT ( * ) ) * 12 THEN + - CAST ( NULL AS INTEGER ) END + CASE - 85 - + COALESCE ( + COUNT ( * ) + - 50, ( - 90 ) + + ( + 51 ), - 83 ) WHEN 3 THEN 11 / + COALESCE ( - 5 * - 50, + 29 + 8 ) WHEN - 61 + - 24 THEN + COUNT ( * ) ELSE COUNT ( * ) / 30 END * + NULLIF ( 84 * + 59, + 95 + COALESCE ( + 51, 12 ) ) / - 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT - 62 DIV - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT - 62 / - 87 AS col1
----
0

query I rowsort
SELECT ALL + 29 + 22
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2167
SELECT + COUNT( * ) DIV CASE - + 62 WHEN + 86 THEN NULL ELSE + - 51 * - 68 * + 36 DIV 17 + - COUNT( * ) + + 83 - 84 END + 38 * + 53 col2
----
2014

skipif mysql # not compatible
query I rowsort label-2167
SELECT + COUNT ( * ) / CASE - + 62 WHEN + 86 THEN NULL ELSE + - 51 * - 68 * + 36 / 17 + - COUNT ( * ) + + 83 - 84 END + 38 * + 53 col2
----
2014

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT ALL 26 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL 26 / + 30
----
0

query I rowsort
SELECT ALL 44 + + 76 col0
----
120

query I rowsort
SELECT ALL COALESCE ( 45, - 71, - 42 ) + 2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT 79 * 83 DIV - + 64
----
-102

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT 79 * 83 / - + 64
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL COUNT( DISTINCT + 49 ) + + ( + 60 )
----
61

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL COUNT ( DISTINCT + 49 ) + + ( + 60 )
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT + ( + NULLIF ( - 14, + 90 * - CASE - COUNT( * ) WHEN + 45 * + 75 THEN 26 * - + 1 / + - 90 * 97 END * + - MAX( DISTINCT 13 ) + + COUNT( * ) ) ) * 60 - + 95
----
-935

skipif mysql # not compatible
query I rowsort label-2174
SELECT + ( + NULLIF ( - 14, + 90 * - CASE - COUNT ( * ) WHEN + 45 * + 75 THEN 26 * - + 1 / + - 90 * 97 END * + - MAX ( DISTINCT 13 ) + + COUNT ( * ) ) ) * 60 - + 95
----
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT COALESCE ( + 65, - MIN( 55 ) ) * - 98
----
-6370

skipif mysql # not compatible
query I rowsort label-2175
SELECT COALESCE ( + 65, - MIN ( 55 ) ) * - 98
----
-6370

query I rowsort
SELECT 31 * 2
----
62

query I rowsort
SELECT DISTINCT + 6 * + - 23
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2178
SELECT ALL 7 - - AVG ( CAST( NULL AS DECIMAL ) ) * - + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL 7 - - AVG ( CAST ( NULL AS REAL ) ) * - + 20 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT NULLIF ( - 15, + COUNT( + 93 ) * CASE + 25 WHEN - COUNT( * ) * + 1 + - NULLIF ( + NULLIF ( + 33, - COUNT( * ) ), - CAST( - + 11 AS SIGNED ) - + ( - 1 ) ) THEN + 16 END * 54 )
----
-15

skipif mysql # not compatible
query I rowsort label-2179
SELECT NULLIF ( - 15, + COUNT ( + 93 ) * CASE + 25 WHEN - COUNT ( * ) * + 1 + - NULLIF ( + NULLIF ( + 33, - COUNT ( * ) ), - CAST ( - + 11 AS INTEGER ) - + ( - 1 ) ) THEN + 16 END * 54 )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2180
SELECT DISTINCT - 74 * + 15 col1, - 87 DIV + ( - 26 ) * - - COUNT( * )
----
-1110
3

skipif mysql # not compatible
query II rowsort label-2180
SELECT DISTINCT - 74 * + 15 col1, - 87 / + ( - 26 ) * - - COUNT ( * )
----
-1110
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + SUM( ALL - ( - + 61 ) ) + 31
----
92

skipif mysql # not compatible
query I rowsort label-2181
SELECT + SUM ( ALL - ( - + 61 ) ) + 31
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT ALL + 63 DIV + 99 - - 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + 63 / + 99 - - 39 AS col0
----
39

query I rowsort
SELECT - 79 * - 95 * ( 75 ) + - 88
----
562787

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ALL + MIN( + 71 ) + 20
----
91

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL + MIN ( + 71 ) + 20
----
91

query I rowsort
SELECT 34 * - 79 + - - 33 AS col0
----
-2653

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2186
SELECT + 59 * 31 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT + 59 * 31 * CAST ( NULL AS REAL ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2187
SELECT 81 / + COUNT ( * )
----
81

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

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

query I rowsort
SELECT ALL - 97 + 25 AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT 62 - + 74 + + CAST( NULL AS SIGNED ) * - CAST( - 60 AS SIGNED ) * + 79 - 33 + 68 * - + 4 + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT 62 - + 74 + + CAST ( NULL AS INTEGER ) * - CAST ( - 60 AS INTEGER ) * + 79 - 33 + 68 * - + 4 + 42 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT - SUM( - - 12 ) + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - SUM ( - - 12 ) + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL + 25 + - - COUNT( * ) + + NULLIF ( NULLIF ( - 69, ( - COUNT( * ) ) ), + ( - 22 ) ) * + 43 * 46 col1
----
-136456

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + 25 + - - COUNT ( * ) + + NULLIF ( NULLIF ( - 69, ( - COUNT ( * ) ) ), + ( - 22 ) ) * + 43 * 46 col1
----
-136456

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

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

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

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

query I rowsort
SELECT ALL - ( - - 8 ) AS col2
----
-8

query I rowsort
SELECT 71 + - - 36 AS col1
----
107

query I rowsort
SELECT 77 * - 39 * - 75 * - 77 AS col1
----
-17342325

query II rowsort
SELECT 48 AS col1, + 4
----
48
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2199
SELECT + COUNT( * ) * - - 28 + 72 * - 76 + + CASE + 21 WHEN ( 68 ) THEN + 51 * + 26 + + - 1 WHEN - 96 * - 71 + + + 42 + + 12 * + 42 THEN + COUNT( * ) DIV + 20 - + 45 ELSE - 56 * + 21 + 33 END AS col1
----
-6587

skipif mysql # not compatible
query I rowsort label-2199
SELECT + COUNT ( * ) * - - 28 + 72 * - 76 + + CASE + 21 WHEN ( 68 ) THEN + 51 * + 26 + + - 1 WHEN - 96 * - 71 + + + 42 + + 12 * + 42 THEN + COUNT ( * ) / + 20 - + 45 ELSE - 56 * + 21 + 33 END AS col1
----
-6587

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

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL - CASE COUNT ( * ) WHEN - + 86 THEN + - 58 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT 2 * + + 34 AS col2
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2203
SELECT 6 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2203
SELECT 6 + CAST ( NULL AS REAL ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2204
SELECT + ( + COUNT ( * ) ) / 97 * + 56
----
0

query I rowsort
SELECT ALL - 96 * - + 53 AS col1
----
5088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2206
SELECT ALL - 38 * 81 + + CASE + 67 WHEN COUNT( * ) THEN NULL ELSE + 34 DIV + - 44 + + 39 END + - 58 AS col1
----
-3097

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL - 38 * 81 + + CASE + 67 WHEN COUNT ( * ) THEN NULL ELSE + 34 / + - 44 + + 39 END + - 58 AS col1
----
-3097

query I rowsort
SELECT 33 * 63 + - 11 col2
----
2068

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT + 18 * - 63 + + 43 DIV + 25 AS col2
----
-1133

skipif mysql # not compatible
query I rowsort label-2208
SELECT + 18 * - 63 + + 43 / + 25 AS col2
----
-1133

query I rowsort
SELECT - + 4 * 6 * - 12 + + - 72
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT - 27 DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2210
SELECT - 27 / 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL 66 * MAX( 45 ) * - - ( 54 ) + - 22 * - + 7 - + 0 + 68 AS col1
----
160602

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL 66 * MAX ( 45 ) * - - ( 54 ) + - 22 * - + 7 - + 0 + 68 AS col1
----
160602

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - COUNT( * ) * - 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2212
SELECT - COUNT ( * ) * - 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT - 5, COUNT( DISTINCT 31 ) * COUNT( * ) + ( + - 57 ) AS col0
----
-5
-56

skipif mysql # not compatible
query II rowsort label-2213
SELECT - 5, COUNT ( DISTINCT 31 ) * COUNT ( * ) + ( + - 57 ) AS col0
----
-5
-56

query I rowsort
SELECT DISTINCT - 33 * + 58 AS col1
----
-1914

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT + 77 * 3 DIV - 20
----
-11

skipif mysql # not compatible
query I rowsort label-2215
SELECT + 77 * 3 / - 20
----
-11

query I rowsort
SELECT DISTINCT 51 + - 34
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT + 39 AS col0, + 58 + + + COUNT( * )
----
39
59

skipif mysql # not compatible
query II rowsort label-2217
SELECT + 39 AS col0, + 58 + + + COUNT ( * )
----
39
59

query I rowsort
SELECT ALL + 20 + - + 53 + 38 - - - ( + - 46 ) + + 17 * + 84
----
1479

query I rowsort
SELECT - 99 + + 59
----
-40

query II rowsort
SELECT ALL - 62 AS col0, - 9 * + 59
----
-62
-531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT + 18 / + - CASE + 47 WHEN COUNT( * ) * - - 54 THEN + 38 / - + 16 * + 73 * + 37 WHEN + + CAST( NULL AS SIGNED ) THEN COALESCE ( + - 44, + - SUM( ALL - 25 ) ) + + CAST( + 99 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT + 18 / + - CASE + 47 WHEN COUNT ( * ) * - - 54 THEN + 38 / - + 16 * + 73 * + 37 WHEN + + CAST ( NULL AS INTEGER ) THEN COALESCE ( + - 44, + - SUM ( ALL - 25 ) ) + + CAST ( + 99 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT + MAX( - - CASE + 67 WHEN - 93 THEN - 47 * - 14 END ) + - + 0 * CAST( - 19 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT + MAX ( - - CASE + 67 WHEN - 93 THEN - 47 * - 14 END ) + - + 0 * CAST ( - 19 AS INTEGER )
----
NULL

query I rowsort
SELECT - ( 75 ) - + - 0
----
-75

query I rowsort
SELECT DISTINCT 68 * + 85 AS col1
----
5780

query I rowsort
SELECT DISTINCT 80 * + 30 * + 37 col0
----
88800

query I rowsort
SELECT ALL - 93 + - + 97
----
-190

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

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL MIN ( - 52 )
----
-52

query I rowsort
SELECT - CASE 9 WHEN 63 + - + 98 THEN NULL ELSE 68 END
----
-68

query I rowsort
SELECT ALL 15 * + 25
----
375

query II rowsort
SELECT 96, + 52 * 88 + 43 AS col2
----
96
4619

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - 3 + - CASE + 83 WHEN + 54 - MAX( + ( - 86 ) ) * + + 39 * + ( 63 ) THEN - - 83 WHEN + - 51 + - 96 + 73 THEN NULL ELSE + 18 * + ( - 5 ) * + 92 - + CASE 26 + + COUNT( * ) WHEN 19 / 95 THEN 13 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT - 3 + - CASE + 83 WHEN + 54 - MAX ( + ( - 86 ) ) * + + 39 * + ( 63 ) THEN - - 83 WHEN + - 51 + - 96 + 73 THEN NULL ELSE + 18 * + ( - 5 ) * + 92 - + CASE 26 + + COUNT ( * ) WHEN 19 / 95 THEN 13 END END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT - COALESCE ( CAST( - COUNT( * ) AS SIGNED ), + + AVG ( DISTINCT 47 ) ) * - - CAST( NULL AS SIGNED ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT - COALESCE ( CAST ( - COUNT ( * ) AS INTEGER ), + + AVG ( DISTINCT 47 ) ) * - - CAST ( NULL AS INTEGER ) + + 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT + ( + 50 ) DIV 87 * - - ( + 15 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT + ( + 50 ) / 87 * - - ( + 15 ) AS col0
----
0

query I rowsort
SELECT CASE + 37 WHEN 9 THEN NULL WHEN - + ( 6 ) THEN + 54 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2235
SELECT 3 DIV SUM( DISTINCT - + 59 ) * COUNT( * ) + - 49 col2
----
-49

skipif mysql # not compatible
query I rowsort label-2235
SELECT 3 / SUM ( DISTINCT - + 59 ) * COUNT ( * ) + - 49 col2
----
-49

query I rowsort
SELECT - 31 * COALESCE ( 98, + - 92 )
----
-3038

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

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

query I rowsort
SELECT - 37 * + COALESCE ( 3, + - 4, + 76 ) col2
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-2239
SELECT + 2, COUNT( * ) * + + 4 AS col2
----
2
4

skipif mysql # not compatible
query II rowsort label-2239
SELECT + 2, COUNT ( * ) * + + 4 AS col2
----
2
4

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2241
SELECT ALL + - 64 * COALESCE ( - + 80, 12, - + 68, - 10 * - 51 ) + - COUNT( * ) DIV + 93 * - 82 AS col1
----
5120

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + - 64 * COALESCE ( - + 80, 12, - + 68, - 10 * - 51 ) + - COUNT ( * ) / + 93 * - 82 AS col1
----
5120

query I rowsort
SELECT + 98 * + ( 97 ) AS col1
----
9506

query I rowsort
SELECT - 67 + - - 48 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2244
SELECT 4, + 83 + + ( + COUNT( * ) ) AS col0
----
4
84

skipif mysql # not compatible
query II rowsort label-2244
SELECT 4, + 83 + + ( + COUNT ( * ) ) AS col0
----
4
84

query I rowsort
SELECT - 25 - - 36 + - - 50
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT - 38 - - 23 + COUNT( * ) + - - ( + COUNT( * ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2247
SELECT - 38 - - 23 + COUNT ( * ) + - - ( + COUNT ( * ) ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2248
SELECT ALL + COALESCE ( + 93, - 38 * + CASE + - 3 WHEN - 56 DIV 86 THEN NULL WHEN + 66 + + 90 THEN - + COUNT( * ) END + + 78 * 84 + + ( - 15 ), - NULLIF ( - + 11, 68 ) * 6 - - NULLIF ( 58, + 62 ), + 62 DIV CAST( NULL AS SIGNED ) )
----
93

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + COALESCE ( + 93, - 38 * + CASE + - 3 WHEN - 56 / 86 THEN NULL WHEN + 66 + + 90 THEN - + COUNT ( * ) END + + 78 * 84 + + ( - 15 ), - NULLIF ( - + 11, 68 ) * 6 - - NULLIF ( 58, + 62 ), + 62 / CAST ( NULL AS INTEGER ) )
----
93

query I rowsort
SELECT ALL - 28 * - 33 * - - 18 + 68 - + 72 * - 41 AS col2
----
19652

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT SUM( - - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT SUM ( - - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL 14 + 96 + - - 42 * + 71 + - COUNT( * ) AS col2
----
3091

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL 14 + 96 + - - 42 * + 71 + - COUNT ( * ) AS col2
----
3091

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - 83 + + SUM( 68 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-2252
SELECT - 83 + + SUM ( 68 ) AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2253
SELECT - - CAST( 76 AS SIGNED ) - - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2253
SELECT - - CAST ( 76 AS INTEGER ) - - COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT + 97 + + COALESCE ( - 99, + 53 ) * - COUNT( + - CAST( NULL AS SIGNED ) )
----
97

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 97 + + COALESCE ( - 99, + 53 ) * - COUNT ( + - CAST ( NULL AS INTEGER ) )
----
97

query II rowsort
SELECT + 29 AS col2, - 51 + + + 91 AS col0
----
29
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2256
SELECT ALL - 89 + 77 + - 0 + 81 - + 97 DIV 32
----
66

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL - 89 + 77 + - 0 + 81 - + 97 / 32
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT - + 83 * - + 37 * + + COUNT( * )
----
3071

skipif mysql # not compatible
query I rowsort label-2257
SELECT - + 83 * - + 37 * + + COUNT ( * )
----
3071

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT - - ( - 63 ) DIV + 7 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2258
SELECT - - ( - 63 ) / + 7 AS col0
----
-9

query I rowsort
SELECT DISTINCT - 97 + 40 + - 76 * - 65 * 74
----
365503

query I rowsort
SELECT ALL NULLIF ( + 2, + 69 - + 22 ) AS col2
----
2

query I rowsort
SELECT ALL + 97 * + + 84
----
8148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2262
SELECT + ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - + COALESCE ( - - 82, + NULLIF ( - 60, - 41 ), + CAST( NULL AS SIGNED ) - - 16, - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT + ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - + COALESCE ( - - 82, + NULLIF ( - 60, - 41 ), + CAST ( NULL AS INTEGER ) - - 16, - COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL SUM( ALL - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL SUM ( ALL - 61 )
----
-61

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

skipif mysql # not compatible
query I rowsort label-2264
SELECT - ( + COUNT ( ALL + + 88 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT - 91 - + COUNT( * ) * - 19
----
-72

skipif mysql # not compatible
query I rowsort label-2265
SELECT - 91 - + COUNT ( * ) * - 19
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL MAX( DISTINCT 65 ) * + COUNT( * ) + + - 17
----
48

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL MAX ( DISTINCT 65 ) * + COUNT ( * ) + + - 17
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2268
SELECT + CAST( CASE + 85 WHEN - NULLIF ( + 97, - 38 + 13 + - - CAST( NULL AS DECIMAL ) * - - 44 * - COALESCE ( + - 47, - - 36 * 15 + - SUM( DISTINCT + 70 ) ) * + 53 + - ( COUNT( * ) ) ) THEN 67 END AS SIGNED ) - - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT + CAST ( CASE + 85 WHEN - NULLIF ( + 97, - 38 + 13 + - - CAST ( NULL AS REAL ) * - - 44 * - COALESCE ( + - 47, - - 36 * 15 + - SUM ( DISTINCT + 70 ) ) * + 53 + - ( COUNT ( * ) ) ) THEN 67 END AS INTEGER ) - - 26
----
NULL

query I rowsort
SELECT + 73 * + - 35 AS col1
----
-2555

query I rowsort
SELECT ALL ( 43 ) * + - 32 * - 25
----
34400

query I rowsort
SELECT + 19 * + 93 AS col2
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL COUNT( * ) * 5 * ( + CASE - - 54 WHEN - 92 THEN NULL WHEN + - 42 THEN NULL WHEN - - 21 + - CASE 80 WHEN 89 THEN + - 39 WHEN - + 50 THEN NULL ELSE NULL END + - 8 * - + 22 * + 54 THEN NULL ELSE + 43 * 68 END )
----
14620

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL COUNT ( * ) * 5 * ( + CASE - - 54 WHEN - 92 THEN NULL WHEN + - 42 THEN NULL WHEN - - 21 + - CASE 80 WHEN 89 THEN + - 39 WHEN - + 50 THEN NULL ELSE NULL END + - 8 * - + 22 * + 54 THEN NULL ELSE + 43 * 68 END )
----
14620

onlyif mysql # DIV for integer division: 
query II rowsort label-2273
SELECT + 37 DIV - 95 AS col1, 41 + + 20 DIV + 23
----
0
41

skipif mysql # not compatible
query II rowsort label-2273
SELECT + 37 / - 95 AS col1, 41 + + 20 / + 23
----
0
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT CAST( + ( - - 45 ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-2274
SELECT CAST ( + ( - - 45 ) AS INTEGER )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2275
SELECT 36 * - 36 * - + COUNT( * ) - - 85 + ( - COUNT( * ) ) - COUNT( CAST( - - 4 AS SIGNED ) ) * - COALESCE ( - 15, + - 8 * - - 86 ) DIV 54 * - 53 + + 24 AS col0
----
1404

skipif mysql # not compatible
query I rowsort label-2275
SELECT 36 * - 36 * - + COUNT ( * ) - - 85 + ( - COUNT ( * ) ) - COUNT ( CAST ( - - 4 AS INTEGER ) ) * - COALESCE ( - 15, + - 8 * - - 86 ) / 54 * - 53 + + 24 AS col0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - 40 * + - 38 + - - COUNT( * ) * + 13
----
1533

skipif mysql # not compatible
query I rowsort label-2276
SELECT - 40 * + - 38 + - - COUNT ( * ) * + 13
----
1533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT - - SUM( 77 ) * 70 * - 98 + + 30 - + 43 * - 73 * - 59 * + CAST( NULL AS SIGNED ) - 10 + 50 + - - NULLIF ( COUNT( DISTINCT - 74 ), + NULLIF ( + + 52, - - ( + 87 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT - - SUM ( 77 ) * 70 * - 98 + + 30 - + 43 * - 73 * - 59 * + CAST ( NULL AS INTEGER ) - 10 + 50 + - - NULLIF ( COUNT ( DISTINCT - 74 ), + NULLIF ( + + 52, - - ( + 87 ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL + SUM( - + 5 ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL + SUM ( - + 5 ) col2
----
-5

query I rowsort
SELECT DISTINCT + ( - 30 ) * 41 + - - 72 + 79 AS col2
----
-1079

onlyif mysql # aggregate syntax: 
query II rowsort label-2280
SELECT + + 81 + - 9 * COUNT( * ) AS col2, + 4 AS col1
----
72
4

skipif mysql # not compatible
query II rowsort label-2280
SELECT + + 81 + - 9 * COUNT ( * ) AS col2, + 4 AS col1
----
72
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT + 74 * CASE - 89 WHEN - 89 + 93 THEN + - CASE 24 WHEN - 1 THEN + 38 + + ( + COUNT( * ) ) END END / + + 46 * COUNT( * ) - - ( + 22 ) * CAST( NULL AS SIGNED ) + + + ( - MIN( + 92 ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + 74 * CASE - 89 WHEN - 89 + 93 THEN + - CASE 24 WHEN - 1 THEN + 38 + + ( + COUNT ( * ) ) END END / + + 46 * COUNT ( * ) - - ( + 22 ) * CAST ( NULL AS INTEGER ) + + + ( - MIN ( + 92 ) ) * COUNT ( * )
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 92 + + ( - + 87 ) AS col0, 91 AS col2
----
-179
91

query I rowsort
SELECT - NULLIF ( ( + - 70 ), 3 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2285
SELECT + COUNT( * ) + + COUNT( * ), - 83 AS col1
----
2
-83

skipif mysql # not compatible
query II rowsort label-2285
SELECT + COUNT ( * ) + + COUNT ( * ), - 83 AS col1
----
2
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2286
SELECT CASE - - COALESCE ( + COUNT( * ), 55 ) WHEN 50 * - AVG ( + 24 ) THEN - COALESCE ( - 71, 98 * 85 * + CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * - 6 * + 26 + 62 ) WHEN + AVG ( CAST( NULL AS SIGNED ) ) - + COUNT( * ) * + 5 THEN NULL END * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT CASE - - COALESCE ( + COUNT ( * ), 55 ) WHEN 50 * - AVG ( + 24 ) THEN - COALESCE ( - 71, 98 * 85 * + CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * - 6 * + 26 + 62 ) WHEN + AVG ( CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) * + 5 THEN NULL END * - 83
----
NULL

query I rowsort
SELECT ALL + 99 - - 43 * 32 * ( - NULLIF ( - 51, + + 65 * - 29 * ( + + 43 ) + + 56 * 11 + - 10 * + 2 * + + 15 ) ) + - - 77 * + + 89
----
77128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT 97 + - ( COALESCE ( + COUNT( * ), - 71 ) ) + 12 - 86 + 24
----
46

skipif mysql # not compatible
query I rowsort label-2289
SELECT 97 + - ( COALESCE ( + COUNT ( * ), - 71 ) ) + 12 - 86 + 24
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2290
SELECT DISTINCT - 21 * CAST( + - 76 AS SIGNED ) * + ( 51 ) * - + 94 - + ( + COALESCE ( 57, + + 95 * - - COUNT( * ) * - - 42 * + + 14 + - 50 ) ) col0
----
-7651281

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT - 21 * CAST ( + - 76 AS INTEGER ) * + ( 51 ) * - + 94 - + ( + COALESCE ( 57, + + 95 * - - COUNT ( * ) * - - 42 * + + 14 + - 50 ) ) col0
----
-7651281

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT 80 * + COALESCE ( - 21, ( + COUNT( * ) ) ) * 7
----
-11760

skipif mysql # not compatible
query I rowsort label-2291
SELECT 80 * + COALESCE ( - 21, ( + COUNT ( * ) ) ) * 7
----
-11760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2292
SELECT 87 + ( - 72 ) * - CAST( + 23 AS SIGNED ) + + + 42, COALESCE ( COUNT( * ), 52 ) - - + COUNT( DISTINCT - 78 ) + + - 20 - + NULLIF ( 38, - - SUM( DISTINCT 97 ) + - 22 + 55 + 75 ) + - COUNT( 5 ) DIV + 24 * - 55 AS col1
----
1785
-56

skipif mysql # not compatible
query II rowsort label-2292
SELECT 87 + ( - 72 ) * - CAST ( + 23 AS INTEGER ) + + + 42, COALESCE ( COUNT ( * ), 52 ) - - + COUNT ( DISTINCT - 78 ) + + - 20 - + NULLIF ( 38, - - SUM ( DISTINCT 97 ) + - 22 + 55 + 75 ) + - COUNT ( 5 ) / + 24 * - 55 AS col1
----
1785
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT DISTINCT - CASE - MIN( ALL 63 ) WHEN - ( - SUM( ALL + - 74 ) ) * - COUNT( * ) + - 92 + + 87 * 87 * + - MAX( - 76 ) THEN - - 64 END * + + 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT - CASE - MIN ( ALL 63 ) WHEN - ( - SUM ( ALL + - 74 ) ) * - COUNT ( * ) + - 92 + + 87 * 87 * + - MAX ( - 76 ) THEN - - 64 END * + + 58 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2294
SELECT 96 + - + CASE - - 85 WHEN - + 42 THEN NULL WHEN + ( - 36 ) THEN - + 5 END + + ( - COUNT( * ) ) * + AVG ( DISTINCT - - 68 ) * - + 87 + + COUNT( * ) + 75 - - 90 + + ( + - CAST( CAST( 26 AS SIGNED ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT 96 + - + CASE - - 85 WHEN - + 42 THEN NULL WHEN + ( - 36 ) THEN - + 5 END + + ( - COUNT ( * ) ) * + AVG ( DISTINCT - - 68 ) * - + 87 + + COUNT ( * ) + 75 - - 90 + + ( + - CAST ( CAST ( 26 AS INTEGER ) AS REAL ) )
----
NULL

query II rowsort
SELECT ALL 33 AS col2, 21
----
33
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT + COUNT( * ) * + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + COUNT ( * ) * + 91 AS col2
----
91

query I rowsort
SELECT COALESCE ( + 18, 22 + + 81 ) * 8
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT NULLIF ( + - ( + + SUM( + 31 ) ), - 87 / + - 65 ) + + + 94 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2298
SELECT NULLIF ( + - ( + + SUM ( + 31 ) ), - 87 / + - 65 ) + + + 94 AS col2
----
63

query II rowsort
SELECT ALL 44 col0, - ( 52 ) AS col0
----
44
-52

query II rowsort
SELECT - 45 AS col1, - 37 col2
----
-45
-37

query I rowsort
SELECT 5 * + - 17 AS col2
----
-85

query I rowsort
SELECT ALL 72 + - 64
----
8

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT ALL MAX( ( + 39 ) ) + + - 38 DIV - + 7 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL MAX ( ( + 39 ) ) + + - 38 / - + 7 AS col1
----
44

query I rowsort
SELECT 78 * 77 AS col0
----
6006

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2307
SELECT ALL - 13 * + CAST( NULL AS DECIMAL ) + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - 13 * + CAST ( NULL AS REAL ) + + 58 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - - 35, 97 AS col1
----
35
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL - 63 + - COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - 63 + - COUNT ( * ) AS col2
----
-64

query I rowsort
SELECT 58 * - 77 * + 21
----
-93786

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

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

query I rowsort
SELECT ( - 96 ) - - + 19 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2313
SELECT + 91, - COALESCE ( + 21, - 56, - NULLIF ( - 71, + 48 / + 61 * - COUNT( * ) * + 43 * - - 5 + - CASE 66 WHEN + ( + 49 ) * - - COUNT( * ) + 64 THEN NULL ELSE 33 END - CASE + 34 WHEN - CASE + 63 WHEN CASE - 76 WHEN 23 THEN NULL ELSE + 77 * COUNT( * ) END THEN COUNT( * ) + 68 ELSE COUNT( * ) + - 95 END THEN + 21 END ) ) AS col2
----
91
-21

skipif mysql # not compatible
query II rowsort label-2313
SELECT + 91, - COALESCE ( + 21, - 56, - NULLIF ( - 71, + 48 / + 61 * - COUNT ( * ) * + 43 * - - 5 + - CASE 66 WHEN + ( + 49 ) * - - COUNT ( * ) + 64 THEN NULL ELSE 33 END - CASE + 34 WHEN - CASE + 63 WHEN CASE - 76 WHEN 23 THEN NULL ELSE + 77 * COUNT ( * ) END THEN COUNT ( * ) + 68 ELSE COUNT ( * ) + - 95 END THEN + 21 END ) ) AS col2
----
91
-21

query I rowsort
SELECT + 36 - - 10
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT - COALESCE ( + + CAST( COALESCE ( + 46, + - 45 + + SUM( DISTINCT - - 25 ) + + 69 + - 84 + + - COUNT( * ) / + 99 / 87 + - 3 * 94 + + NULLIF ( 45, - 24 * COUNT( * ) + - 43 ) ) AS SIGNED ), - ( + 22 ) ) * - CAST( CAST( NULL AS SIGNED ) + + 68 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT - COALESCE ( + + CAST ( COALESCE ( + 46, + - 45 + + SUM ( DISTINCT - - 25 ) + + 69 + - 84 + + - COUNT ( * ) / + 99 / 87 + - 3 * 94 + + NULLIF ( 45, - 24 * COUNT ( * ) + - 43 ) ) AS INTEGER ), - ( + 22 ) ) * - CAST ( CAST ( NULL AS INTEGER ) + + 68 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + - 96 AS col2, - 92 col1
----
-96
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT ALL COUNT( * ) - 47 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL COUNT ( * ) - 47 AS col2
----
-46

query I rowsort
SELECT ALL + - 54 - 29
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT - - SUM( - - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2319
SELECT - - SUM ( - - 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL - NULLIF ( + 18, COUNT( * ) * + 57 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL - NULLIF ( + 18, COUNT ( * ) * + 57 ) AS col1
----
-18

query I rowsort
SELECT DISTINCT 51 * - ( 87 ) * - - 41 * - 32 AS col0
----
5821344

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT 0 - - 28 + - + COUNT( ALL - 41 ) + + 29 * 48
----
1419

skipif mysql # not compatible
query I rowsort label-2322
SELECT 0 - - 28 + - + COUNT ( ALL - 41 ) + + 29 * 48
----
1419

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL - COUNT( * ) * CASE CASE + + 47 WHEN + 13 + - COUNT( * ) THEN - + 75 * + 97 - - - 83 * + - 95 - + 77 END WHEN 84 * 6 THEN NULL WHEN - 15 * + - 24 + + - 83 THEN - 23 ELSE + NULLIF ( - 17, + 1 + MIN( 7 + 22 ) ) END AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL - COUNT ( * ) * CASE CASE + + 47 WHEN + 13 + - COUNT ( * ) THEN - + 75 * + 97 - - - 83 * + - 95 - + 77 END WHEN 84 * 6 THEN NULL WHEN - 15 * + - 24 + + - 83 THEN - 23 ELSE + NULLIF ( - 17, + 1 + MIN ( 7 + 22 ) ) END AS col1
----
17

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

skipif mysql # not compatible
query I rowsort label-2325
SELECT - COUNT ( ALL + 5 ) AS col1
----
-1

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

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

query II rowsort
SELECT 25 * 3 AS col1, + 16 AS col1
----
75
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT 96 * + MIN( DISTINCT - 51 )
----
-4896

skipif mysql # not compatible
query I rowsort label-2328
SELECT 96 * + MIN ( DISTINCT - 51 )
----
-4896

query I rowsort
SELECT ALL 50 * - 13
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL SUM( 52 )
----
52

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL SUM ( 52 )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT 15 DIV - CASE - 34 WHEN 3 THEN NULL ELSE + 28 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT 15 / - CASE - 34 WHEN 3 THEN NULL ELSE + 28 END AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2332
SELECT DISTINCT COUNT( ALL - 85 ) AS col2, - CAST( NULL AS DECIMAL ) + + + 28 + 98
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2332
SELECT DISTINCT COUNT ( ALL - 85 ) AS col2, - CAST ( NULL AS REAL ) + + + 28 + 98
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT 5 DIV - + 96 col0
----
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT 5 / - + 96 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2334
SELECT ALL - CASE + 43 WHEN - CAST( NULL AS SIGNED ) * + 23 THEN ( - 22 ) * - SUM( + 26 ) - - 66 * - ( - - 90 ) END + 4 * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL - CASE + 43 WHEN - CAST ( NULL AS INTEGER ) * + 23 THEN ( - 22 ) * - SUM ( + 26 ) - - 66 * - ( - - 90 ) END + 4 * 95
----
NULL

query I rowsort
SELECT 12 - 98 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT CASE + 62 WHEN 46 THEN NULL WHEN - - 8 * - COUNT( * ) + 46 THEN NULL WHEN - NULLIF ( + + 45, + 24 * + 27 / + 22 ) + - 84 - + 7 THEN NULL ELSE + 83 END * - 24 AS col2
----
-1992

skipif mysql # not compatible
query I rowsort label-2336
SELECT CASE + 62 WHEN 46 THEN NULL WHEN - - 8 * - COUNT ( * ) + 46 THEN NULL WHEN - NULLIF ( + + 45, + 24 * + 27 / + 22 ) + - 84 - + 7 THEN NULL ELSE + 83 END * - 24 AS col2
----
-1992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2337
SELECT 21 - + 88 + - AVG ( - CAST( NULL AS SIGNED ) ) * - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT 21 - + 88 + - AVG ( - CAST ( NULL AS INTEGER ) ) * - + 59 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 24 ) * - + 70 * + - ( - - 52 ) AS col1
----
87360

query II rowsort
SELECT ALL + 45 + - 48, - 37 AS col2
----
-3
-37

query I rowsort
SELECT 31 + + 33 AS col2
----
64

query I rowsort
SELECT 49 + + 46 * + - 36
----
-1607

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT COUNT( DISTINCT - COALESCE ( 73, + ( 36 ) * 87 + + 53 + - ( + 28 ), + ( 93 ) * 35 + + 99 ) ) * + 96 - + + 71 + 3 * 48 * - + COUNT( 95 ) / 38 + + CASE + 88 WHEN 99 + - 38 THEN - 15 ELSE NULL END / COALESCE ( 65, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT COUNT ( DISTINCT - COALESCE ( 73, + ( 36 ) * 87 + + 53 + - ( + 28 ), + ( 93 ) * 35 + + 99 ) ) * + 96 - + + 71 + 3 * 48 * - + COUNT ( 95 ) / 38 + + CASE + 88 WHEN 99 + - 38 THEN - 15 ELSE NULL END / COALESCE ( 65, + COUNT ( * ) )
----
NULL

query II rowsort
SELECT + + 98 + + - ( + + ( ( - NULLIF ( + 49, - 12 ) ) ) ) + 33 * - 2 AS col2, 56
----
81
56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2344
SELECT ALL - CAST( NULL AS DECIMAL ) * + + MIN( + + 27 ) - - 85 * MIN( DISTINCT 44 ) * ( - 94 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - CAST ( NULL AS REAL ) * + + MIN ( + + 27 ) - - 85 * MIN ( DISTINCT 44 ) * ( - 94 ) col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2345
SELECT COALESCE ( + + 91, - + COUNT ( * ) ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2346
SELECT + 77 * ( - - 26 ) - 92 - - 56 * + + 95 - - CAST( NULL AS DECIMAL ) * + 25 + + 46 * - - CAST( - SUM( ALL - ( - 7 ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT + 77 * ( - - 26 ) - 92 - - 56 * + + 95 - - CAST ( NULL AS REAL ) * + 25 + + 46 * - - CAST ( - SUM ( ALL - ( - 7 ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2347
SELECT ALL COUNT( * ) * 7 * ( - 94 ) DIV + 35 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL COUNT ( * ) * 7 * ( - 94 ) / + 35 AS col2
----
-18

query I rowsort
SELECT ALL + - CASE + 9 WHEN + 88 THEN NULL WHEN + 88 THEN NULL WHEN + 42 THEN - 66 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2349
SELECT + 6 DIV - 65 + + COUNT( ALL + - 83 ) + + 37 + + 9 + + - 36 - 84 * 61 AS col0
----
-5113

skipif mysql # not compatible
query I rowsort label-2349
SELECT + 6 / - 65 + + COUNT ( ALL + - 83 ) + + 37 + + 9 + + - 36 - 84 * 61 AS col0
----
-5113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2350
SELECT ALL + SUM( - - 21 ) * + 34 - - 67 + - 89 * + CAST( NULL AS SIGNED ) / + COALESCE ( + - COUNT( * ), + 89 * - - 18 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + SUM ( - - 21 ) * + 34 - - 67 + - 89 * + CAST ( NULL AS INTEGER ) / + COALESCE ( + - COUNT ( * ), + 89 * - - 18 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT + 34 + 43 + + 77 AS col0
----
154

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

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

query I rowsort
SELECT ALL + 40 * + + 68 col0
----
2720

query I rowsort
SELECT 60 * - 35 + - 54 + - - 47
----
-2107

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2355
SELECT + 39 + - 19 DIV + COUNT( * ) col2, - 77 AS col2
----
20
-77

skipif mysql # not compatible
query II rowsort label-2355
SELECT + 39 + - 19 / + COUNT ( * ) col2, - 77 AS col2
----
20
-77

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

query I rowsort
SELECT + 68 + + - 47
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT - 33 DIV 12 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2359
SELECT - 33 / 12 AS col2
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT + ( COUNT( * ) ) + - 28 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2361
SELECT + ( COUNT ( * ) ) + - 28 AS col1
----
-27

query I rowsort
SELECT - COALESCE ( + - 42, - 77 ) AS col0
----
42

query I rowsort
SELECT DISTINCT 67 / - - CASE + 12 WHEN + 76 THEN 22 END
----
NULL

query I rowsort
SELECT ALL - 3 + 10 + - - 90 + + + 44 AS col0
----
141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT ALL COUNT( * ) + + 45 * + ( 86 ) - - + 7 AS col2
----
3878

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL COUNT ( * ) + + 45 * + ( 86 ) - - + 7 AS col2
----
3878

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - 90 + 27 + - COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2367
SELECT - 90 + 27 + - COUNT ( * ) AS col1
----
-64

query I rowsort
SELECT ALL 96 + + 17 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - CASE + MIN( - 35 ) WHEN 21 THEN 41 + 47 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT - CASE + MIN ( - 35 ) WHEN 21 THEN 41 + 47 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT - SUM( 73 ) + - 4 AS col2, NULLIF ( 3, 91 ) - 13 AS col1
----
-77
-10

skipif mysql # not compatible
query II rowsort label-2370
SELECT - SUM ( 73 ) + - 4 AS col2, NULLIF ( 3, 91 ) - 13 AS col1
----
-77
-10

query I rowsort
SELECT + 78 + - + 36 + - 74 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT COUNT( ALL - 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT COUNT ( ALL - 89 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT - 60 - - COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2374
SELECT - 60 - - COUNT ( * ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL CASE + 83 WHEN - MIN( DISTINCT - 83 ) THEN + 92 WHEN + 54 THEN NULL END
----
92

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL CASE + 83 WHEN - MIN ( DISTINCT - 83 ) THEN + 92 WHEN + 54 THEN NULL END
----
92

query I rowsort
SELECT ALL 36 + - 76
----
-40

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT - 24 * 98 DIV - COUNT( * )
----
2352

skipif mysql # not compatible
query I rowsort label-2378
SELECT - 24 * 98 / - COUNT ( * )
----
2352

query I rowsort
SELECT - 11 + 40 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT - - COALESCE ( + 29, 6 + COALESCE ( + - COUNT( * ), - 94, NULLIF ( - 39, - - 99 ) ) - + ( - 87 ), 82 )
----
29

skipif mysql # not compatible
query I rowsort label-2380
SELECT - - COALESCE ( + 29, 6 + COALESCE ( + - COUNT ( * ), - 94, NULLIF ( - 39, - - 99 ) ) - + ( - 87 ), 82 )
----
29

query I rowsort
SELECT 27 * - - 1 * + 38 + + 2 AS col1
----
1028

query I rowsort
SELECT DISTINCT + 63 * - 24 AS col1
----
-1512

query I rowsort
SELECT DISTINCT + + NULLIF ( + - 99, 5 ) AS col2
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-2384
SELECT - - NULLIF ( 64, - - 86 ) DIV + 81 * - + 18 AS col1, 77
----
0
77

skipif mysql # not compatible
query II rowsort label-2384
SELECT - - NULLIF ( 64, - - 86 ) / + 81 * - + 18 AS col1, 77
----
0
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2385
SELECT ALL - 72 * - + 83 * 94 AS col2, - COUNT( * ) AS col1
----
561744
-1

skipif mysql # not compatible
query II rowsort label-2385
SELECT ALL - 72 * - + 83 * 94 AS col2, - COUNT ( * ) AS col1
----
561744
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2386
SELECT - 42 AS col2, + 84 * COUNT( * ) * - 28
----
-42
-2352

skipif mysql # not compatible
query II rowsort label-2386
SELECT - 42 AS col2, + 84 * COUNT ( * ) * - 28
----
-42
-2352

query I rowsort
SELECT ALL + + 75 AS col2
----
75

query I rowsort
SELECT DISTINCT + - 95 * - ( + - 52 ) * - 62 * 91 * 45
----
1254216600

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT - - 75 DIV + + 18
----
4

skipif mysql # not compatible
query I rowsort label-2390
SELECT - - 75 / + + 18
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT + 87 * - COALESCE ( - 50, + CAST( + + 16 AS SIGNED ) ) * + NULLIF ( 86, - 9 ) - 34 * + 90 + - 28
----
371012

skipif mysql # not compatible
query I rowsort label-2391
SELECT + 87 * - COALESCE ( - 50, + CAST ( + + 16 AS INTEGER ) ) * + NULLIF ( 86, - 9 ) - 34 * + 90 + - 28
----
371012

query I rowsort
SELECT + 77 * 50
----
3850

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

query I rowsort
SELECT ALL + NULLIF ( + 92, + 37 + - 96 * + COALESCE ( 24, + + 42 ) ) AS col1
----
92

query I rowsort
SELECT + 21 * + 7
----
147

query I rowsort
SELECT ALL 98 * + 43 * NULLIF ( 75, - 34 + - + 82 ) + - - 99 - + 11
----
316138

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

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

query I rowsort
SELECT + 91 * ( - 34 ) AS col1
----
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT + SUM( 86 ) * - 24 + + + 96
----
-1968

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + SUM ( 86 ) * - 24 + + + 96
----
-1968

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

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

query I rowsort
SELECT ALL - 79 * + + 56 + 15 AS col1
----
-4409

query I rowsort
SELECT + 55 / CASE 10 WHEN + 90 - + 31 THEN 54 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL 42 + - + CASE - 38 WHEN 11 THEN NULL WHEN + - COUNT( * ) + + - 80 THEN 1 ELSE - ( - 70 ) END + - 45 + ( + 37 ) + + - 79 * + 2 * + - 29
----
4546

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 42 + - + CASE - 38 WHEN 11 THEN NULL WHEN + - COUNT ( * ) + + - 80 THEN 1 ELSE - ( - 70 ) END + - 45 + ( + 37 ) + + - 79 * + 2 * + - 29
----
4546

query II rowsort
SELECT DISTINCT 46 AS col0, ( + + 52 ) AS col0
----
46
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT - CAST( + + CAST( 2 AS SIGNED ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-2406
SELECT - CAST ( + + CAST ( 2 AS INTEGER ) AS INTEGER )
----
-2

query I rowsort
SELECT DISTINCT 48 - - 71 + + - 50 AS col0
----
69

query I rowsort
SELECT - 40 + + 13
----
-27

query I rowsort
SELECT ALL 79 - 41 AS col1
----
38

query II rowsort
SELECT - 64, - ( - 54 ) AS col0
----
-64
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT + 32 * 80 - + - MAX( - 71 ) AS col0
----
2489

skipif mysql # not compatible
query I rowsort label-2411
SELECT + 32 * 80 - + - MAX ( - 71 ) AS col0
----
2489

query I rowsort
SELECT DISTINCT - 34 * - - 60 + + 53 + + 44 * 38
----
-315

query I rowsort
SELECT ALL COALESCE ( + 23, - ( 69 ) * - + ( - ( 64 ) ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT COUNT( * ) + - 99 * + 87 * + 95 AS col2
----
-818234

skipif mysql # not compatible
query I rowsort label-2414
SELECT COUNT ( * ) + - 99 * + 87 * + 95 AS col2
----
-818234

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2416
SELECT + CASE - SUM( ALL + - 80 ) WHEN - CAST( NULL AS SIGNED ) THEN - - ( - - 9 ) WHEN + + 30 + - + COUNT( * ) THEN NULL ELSE 13 END + + 72 * - - 56 + - COUNT( * ) AS col0
----
4044

skipif mysql # not compatible
query I rowsort label-2416
SELECT + CASE - SUM ( ALL + - 80 ) WHEN - CAST ( NULL AS INTEGER ) THEN - - ( - - 9 ) WHEN + + 30 + - + COUNT ( * ) THEN NULL ELSE 13 END + + 72 * - - 56 + - COUNT ( * ) AS col0
----
4044

query I rowsort
SELECT DISTINCT 68 * + 56 - - - 61
----
3747

onlyif mysql # DIV for integer division: 
query II rowsort label-2418
SELECT DISTINCT - + 90 AS col1, 83 DIV - 87
----
-90
0

skipif mysql # not compatible
query II rowsort label-2418
SELECT DISTINCT - + 90 AS col1, 83 / - 87
----
-90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT 81 + + COUNT( * ) + 92 * - 45 * - 77 col1
----
318862

skipif mysql # not compatible
query I rowsort label-2419
SELECT 81 + + COUNT ( * ) + 92 * - 45 * - 77 col1
----
318862

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT - 39 DIV + 18 - - + 46 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2420
SELECT - 39 / + 18 - - + 46 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2421
SELECT + 5, + 20 + COALESCE ( + 30, - - COALESCE ( - + 18, - COUNT( * ) ), + + 9 - 91 DIV 11 ) - + + ( + - 21 ) AS col0
----
5
71

skipif mysql # not compatible
query II rowsort label-2421
SELECT + 5, + 20 + COALESCE ( + 30, - - COALESCE ( - + 18, - COUNT ( * ) ), + + 9 - 91 / 11 ) - + + ( + - 21 ) AS col0
----
5
71

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

skipif mysql # not compatible
query I rowsort label-2422
SELECT - 83 * + CAST ( NULL AS INTEGER ) * - 72
----
NULL

query I rowsort
SELECT 71 + - 2 * + 45 AS col1
----
-19

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

skipif mysql # not compatible
query I rowsort label-2424
SELECT + MIN ( DISTINCT - 82 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + 47 * + + 9 + + 14 - + ( + + NULLIF ( + COUNT( * ), + ( 86 ) * - ( + - 16 ) + - 74 * - - CASE - 82 WHEN + 23 / + - 86 + COUNT( ALL ( - + NULLIF ( - 23, - 12 ) ) ) + + 53 THEN 85 END ) ) + ( - 83 + 73 * + 88 )
----
6777

skipif mysql # not compatible
query I rowsort label-2425
SELECT + 47 * + + 9 + + 14 - + ( + + NULLIF ( + COUNT ( * ), + ( 86 ) * - ( + - 16 ) + - 74 * - - CASE - 82 WHEN + 23 / + - 86 + COUNT ( ALL ( - + NULLIF ( - 23, - 12 ) ) ) + + 53 THEN 85 END ) ) + ( - 83 + 73 * + 88 )
----
6777

query III rowsort
SELECT ALL - 48 AS col1, 54 * - + ( + - 75 ) AS col2, 44
----
-48
4050
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2427
SELECT ALL - 76 + - 77 - 51 + + + CAST( - 46 AS SIGNED ) * + + 64 * + 47 * CASE + + 91 WHEN - + 45 - - 95 + - 44 * + 78 / - COUNT( * ) THEN - 0 - - - 37 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - 76 + - 77 - 51 + + + CAST ( - 46 AS INTEGER ) * + + 64 * + 47 * CASE + + 91 WHEN - + 45 - - 95 + - 44 * + 78 / - COUNT ( * ) THEN - 0 - - - 37 ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT + 4 + COUNT( * ) * - 64
----
-60

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT + 4 + COUNT ( * ) * - 64
----
-60

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

skipif mysql # not compatible
query I rowsort label-2430
SELECT CAST ( NULL AS INTEGER ) * + 94 + - 93
----
NULL

query I rowsort
SELECT ALL - ( - - 81 )
----
-81

query I rowsort
SELECT 21 + - 26 * + 35 * - + 56 * + 54 - COALESCE ( + - 30, - 38, - - 95 )
----
2751891

query I rowsort
SELECT 24 * + 14 * - - 45 * - 22
----
-332640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2434
SELECT DISTINCT 43 - + CASE - COUNT( CAST( + 31 AS SIGNED ) ) WHEN - 35 THEN + + SUM( 83 ) / 54 WHEN - 27 + - 44 THEN + + 72 * - + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT 43 - + CASE - COUNT ( CAST ( + 31 AS INTEGER ) ) WHEN - 35 THEN + + SUM ( 83 ) / 54 WHEN - 27 + - 44 THEN + + 72 * - + 28 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT CASE - CAST( NULL AS SIGNED ) WHEN CAST( NULL AS SIGNED ) + 98 + + 42 - - NULLIF ( CASE - - 92 WHEN - + ( - + AVG ( + 8 ) ) * - 84 + - 52 + + 39 * + 66 THEN - 80 ELSE + 39 END, - 21 + + 7 ) * NULLIF ( + 66, - - 30 * + CASE 7 WHEN COALESCE ( 12, - NULLIF ( + 1, + 62 * - 67 ) + + 79 / COUNT( * ), + 55 + AVG ( ALL 19 ) * - 25 ) THEN + 17 WHEN + AVG ( + 13 ) * - COUNT( 47 ) THEN NULL END ) + + 36 * 50 THEN + COUNT( * ) * 42 END + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) + 98 + + 42 - - NULLIF ( CASE - - 92 WHEN - + ( - + AVG ( + 8 ) ) * - 84 + - 52 + + 39 * + 66 THEN - 80 ELSE + 39 END, - 21 + + 7 ) * NULLIF ( + 66, - - 30 * + CASE 7 WHEN COALESCE ( 12, - NULLIF ( + 1, + 62 * - 67 ) + + 79 / COUNT ( * ), + 55 + AVG ( ALL 19 ) * - 25 ) THEN + 17 WHEN + AVG ( + 13 ) * - COUNT ( 47 ) THEN NULL END ) + + 36 * 50 THEN + COUNT ( * ) * 42 END + 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT DISTINCT + 41 - + CAST( - MIN( 53 ) AS SIGNED ) col2
----
94

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

query I rowsort
SELECT ALL 42 * 75 * + - 80
----
-252000

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + 37 * + - 56 + 44 + - COUNT( * ) * + 27 * 27 * 89 * + 69 AS col0
----
-4478817

skipif mysql # not compatible
query I rowsort label-2438
SELECT + 37 * + - 56 + 44 + - COUNT ( * ) * + 27 * 27 * 89 * + 69 AS col0
----
-4478817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2439
SELECT + 7 + - COUNT( * ) - - 67 - 23 * - CAST( - 27 AS SIGNED ) DIV - MIN( + + 3 ) + + COUNT( * ) AS col2
----
281

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 7 + - COUNT ( * ) - - 67 - 23 * - CAST ( - 27 AS INTEGER ) / - MIN ( + + 3 ) + + COUNT ( * ) AS col2
----
281

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

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

query I rowsort
SELECT 78 + + - 57 + + - 0 AS col1
----
21

query I rowsort
SELECT - 73 * 39 * - 29 + + 26
----
82589

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2443
SELECT ALL 13 DIV - COALESCE ( - + 19, + - 4 - + + COUNT( * ) ) + COUNT( - 36 ) col0, - ( + + 34 )
----
1
-34

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL 13 / - COALESCE ( - + 19, + - 4 - + + COUNT ( * ) ) + COUNT ( - 36 ) col0, - ( + + 34 )
----
1
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2444
SELECT DISTINCT - 86 DIV + 38 + + CAST( - COUNT( * ) AS SIGNED ) + 97 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT - 86 / + 38 + + CAST ( - COUNT ( * ) AS INTEGER ) + 97 AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT 17 DIV 1 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2445
SELECT 17 / 1 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT NULLIF ( + 71, + CAST( 15 AS SIGNED ) ) + + 67 + - + NULLIF ( + 20, - + MIN( - 39 ) + 3 - - 76 * + 52 ) * - 24 AS col0
----
618

skipif mysql # not compatible
query I rowsort label-2446
SELECT NULLIF ( + 71, + CAST ( 15 AS INTEGER ) ) + + 67 + - + NULLIF ( + 20, - + MIN ( - 39 ) + 3 - - 76 * + 52 ) * - 24 AS col0
----
618

query I rowsort
SELECT - 53 * - 69 * - 19
----
-69483

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2448
SELECT + COUNT( * ) + - 30 DIV MIN( + 31 ) + + + 63 AS col0, 49 + + 93 + 87 * + + NULLIF ( + 4, 22 + 88 ) * + - 56
----
64
-19346

skipif mysql # not compatible
query II rowsort label-2448
SELECT + COUNT ( * ) + - 30 / MIN ( + 31 ) + + + 63 AS col0, 49 + + 93 + 87 * + + NULLIF ( + 4, 22 + 88 ) * + - 56
----
64
-19346

onlyif mysql # aggregate syntax: 
query II rowsort label-2449
SELECT DISTINCT - COUNT( * ) * + CASE 68 WHEN + 76 + + 3 * - 33 * - 43 * - 71 * 7 THEN - 32 + 26 + - 12 END + - 0 * - MAX( DISTINCT + 0 ) col1, 52 + + 3 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2449
SELECT DISTINCT - COUNT ( * ) * + CASE 68 WHEN + 76 + + 3 * - 33 * - 43 * - 71 * 7 THEN - 32 + 26 + - 12 END + - 0 * - MAX ( DISTINCT + 0 ) col1, 52 + + 3 AS col1
----
NULL
55

query II rowsort
SELECT 86 * - + 16 AS col0, + 15 AS col0
----
-1376
15

query I rowsort
SELECT DISTINCT 74 * 84 * - + 64 + - + 97
----
-397921

query I rowsort
SELECT ALL + 8 * - 91 + 82 AS col0
----
-646

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2453
SELECT ALL CAST( NULL AS SIGNED ) * + 45 + + 93, - 3 col2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2453
SELECT ALL CAST ( NULL AS INTEGER ) * + 45 + + 93, - 3 col2
----
NULL
-3

query I rowsort
SELECT ALL + ( - 37 ) + + 39 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT SUM( DISTINCT - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-2455
SELECT SUM ( DISTINCT - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2456
SELECT 34 * + CASE + 13 WHEN + + COUNT( * ) THEN NULL WHEN - - 20 THEN NULL ELSE - ( 25 ) END * COUNT( * ) AS col0, 27 * + 5
----
-850
135

skipif mysql # not compatible
query II rowsort label-2456
SELECT 34 * + CASE + 13 WHEN + + COUNT ( * ) THEN NULL WHEN - - 20 THEN NULL ELSE - ( 25 ) END * COUNT ( * ) AS col0, 27 * + 5
----
-850
135

query II rowsort
SELECT + 73 AS col0, 47 AS col0
----
73
47

query I rowsort
SELECT 24 - - 4 col1
----
28

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

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

query I rowsort
SELECT ALL - ( 36 ) col0
----
-36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT DISTINCT + 73 * - ( + + CAST( + 38 AS SIGNED ) ) AS col1
----
-2774

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + 73 * - ( + + CAST ( + 38 AS INTEGER ) ) AS col1
----
-2774

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT ALL - 82 DIV + ( - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL - 82 / + ( - 75 )
----
1

query I rowsort
SELECT + 54 + + 41
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL + ( - MAX( ALL + 77 ) ) * + - 21 AS col0
----
1617

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + ( - MAX ( ALL + 77 ) ) * + - 21 AS col0
----
1617

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

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

query II rowsort
SELECT - 24 * + + ( - 7 ), + COALESCE ( 2, - - 95 + 77, + 77 ) AS col1
----
168
2

query I rowsort
SELECT + 5 * 56 * 90 * + 83 col1
----
2091600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT DISTINCT + COALESCE ( - 36, + CAST( NULL AS SIGNED ) + + 73 - - + 6 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT + COALESCE ( - 36, + CAST ( NULL AS INTEGER ) + + 73 - - + 6 ) col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT - + SUM( DISTINCT 60 ) + + 19 + 86
----
45

skipif mysql # not compatible
query I rowsort label-2470
SELECT - + SUM ( DISTINCT 60 ) + + 19 + 86
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2471
SELECT ALL - 93 + - 15 * 44 + + - 77 * - - MIN( ALL - + ( + - 38 ) ) * + MIN( DISTINCT + + CAST( NULL AS DECIMAL ) ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL - 93 + - 15 * 44 + + - 77 * - - MIN ( ALL - + ( + - 38 ) ) * + MIN ( DISTINCT + + CAST ( NULL AS REAL ) ) + + 59
----
NULL

query I rowsort
SELECT ALL - + 76 * 65
----
-4940

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2473
SELECT + + 13 * - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT + + 13 * - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT - - COUNT( * ) + - - 16 * 4 * + 90 * 29 * 61
----
10189441

skipif mysql # not compatible
query I rowsort label-2474
SELECT - - COUNT ( * ) + - - 16 * 4 * + 90 * 29 * 61
----
10189441

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT + + 63 / - CASE 74 WHEN + 29 THEN NULL WHEN + + 6 / - 44 THEN COUNT( * ) + - COUNT( * ) * + 39 - - 3 - ( + MAX( DISTINCT + + 99 ) ) * 69 ELSE NULL END * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT + + 63 / - CASE 74 WHEN + 29 THEN NULL WHEN + + 6 / - 44 THEN COUNT ( * ) + - COUNT ( * ) * + 39 - - 3 - ( + MAX ( DISTINCT + + 99 ) ) * 69 ELSE NULL END * - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT - - 34 + - COUNT( 11 ) * + + 79 * - - 89 AS col0
----
-6997

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - - 34 + - COUNT ( 11 ) * + + 79 * - - 89 AS col0
----
-6997

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT 3 * + COUNT( * ) + + 81
----
84

skipif mysql # not compatible
query I rowsort label-2477
SELECT 3 * + COUNT ( * ) + + 81
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2478
SELECT ALL + 81 DIV - + 29
----
-2

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + 81 / - + 29
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT 22 * - + COUNT( * ) - + 5
----
-27

skipif mysql # not compatible
query I rowsort label-2479
SELECT 22 * - + COUNT ( * ) - + 5
----
-27

query I rowsort
SELECT - ( - 47 ) + ( + - 74 ) AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2481
SELECT - MIN( ALL + 12 ) DIV - + 5 + - ( - 63 ) + - + 79 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2481
SELECT - MIN ( ALL + 12 ) / - + 5 + - ( - 63 ) + - + 79 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2482
SELECT ( + COALESCE ( + 69, - CAST( NULL AS SIGNED ) ) ) col0, + 23 + + COUNT( ( + 4 ) )
----
69
24

skipif mysql # not compatible
query II rowsort label-2482
SELECT ( + COALESCE ( + 69, - CAST ( NULL AS INTEGER ) ) ) col0, + 23 + + COUNT ( ( + 4 ) )
----
69
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT + 26 + + 32 / - 61 - CAST( NULL AS SIGNED ) + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT + 26 + + 32 / - 61 - CAST ( NULL AS INTEGER ) + + 70
----
NULL

query I rowsort
SELECT ALL - 13 * - 9 - - + 10 * 89 * 43
----
38387

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT + 38 * + 33 DIV + COUNT( * ) AS col2
----
1254

skipif mysql # not compatible
query I rowsort label-2485
SELECT + 38 * + 33 / + COUNT ( * ) AS col2
----
1254

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL + MAX( ALL + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + MAX ( ALL + 15 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2488
SELECT + 90 + + CAST( NULL AS SIGNED ) AS col0, + 61 * - - ( - COUNT( * ) )
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-2488
SELECT + 90 + + CAST ( NULL AS INTEGER ) AS col0, + 61 * - - ( - COUNT ( * ) )
----
NULL
-61

query I rowsort
SELECT ALL + 36 * + 80 - - + 1
----
2881

query I rowsort
SELECT + 8 * + + 70
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT SUM( ALL + 95 ) * - + 6 * - 71 * + - 11 * - 32 + - 24 * - COUNT( * ) AS col2
----
14245464

skipif mysql # not compatible
query I rowsort label-2491
SELECT SUM ( ALL + 95 ) * - + 6 * - 71 * + - 11 * - 32 + - 24 * - COUNT ( * ) AS col2
----
14245464

query I rowsort
SELECT 87 * + 0 + - - ( 52 ) * - 86
----
-4472

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT NULLIF ( 46, - COUNT( * ) )
----
46

skipif mysql # not compatible
query I rowsort label-2493
SELECT NULLIF ( 46, - COUNT ( * ) )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2494
SELECT + 24 DIV - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2494
SELECT + 24 / - 52 AS col1
----
0

query I rowsort
SELECT DISTINCT + 79 * - - 84 * + 49
----
325164

query I rowsort
SELECT ALL 16 * + 57
----
912

query I rowsort
SELECT + 20 * + + 14 + 97 AS col2
----
377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT DISTINCT COALESCE ( + 57, + + 88, + ( NULLIF ( - + 3, - - CAST( NULL AS SIGNED ) ) ) ) * - 29 AS col1
----
-1653

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT COALESCE ( + 57, + + 88, + ( NULLIF ( - + 3, - - CAST ( NULL AS INTEGER ) ) ) ) * - 29 AS col1
----
-1653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT ALL - + 24 + + ( + 93 ) + - COUNT( * ) DIV + 52 + - 7
----
62

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - + 24 + + ( + 93 ) + - COUNT ( * ) / + 52 + - 7
----
62

query I rowsort
SELECT - 78 + + - 92 AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT - SUM( - COALESCE ( + 89, + + 70 ) ) + - + 99 + + 68 col0
----
58

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - SUM ( - COALESCE ( + 89, + + 70 ) ) + - + 99 + + 68 col0
----
58

query II rowsort
SELECT ALL + + 11 + 55 col0, + 59 AS col1
----
66
59

query I rowsort
SELECT - 5 + + - 70 + - + 60 AS col1
----
-135

query II rowsort
SELECT ALL - 62 + 92 AS col0, - 10 AS col1
----
30
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT + COUNT( * ) + 40 * - + 7 * - + 77
----
21561

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + COUNT ( * ) + 40 * - + 7 * - + 77
----
21561

query I rowsort
SELECT - 19 + + + 34 * + 22 - CASE - 48 WHEN 17 THEN NULL ELSE + 39 END
----
690

query I rowsort
SELECT DISTINCT + 34 + + 46
----
80

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

skipif mysql # not compatible
query I rowsort label-2508
SELECT - - COUNT ( * ) * 97
----
97

query I rowsort
SELECT ALL - 1 + 68 + + 74 * 81
----
6061

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT - + COALESCE ( + 45, + MIN( - - 73 ), + + 72, 39 )
----
-45

skipif mysql # not compatible
query I rowsort label-2510
SELECT - + COALESCE ( + 45, + MIN ( - - 73 ), + + 72, 39 )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL + 21 + - CASE CASE + 92 WHEN - + COUNT( * ) THEN + - MAX( + 74 ) ELSE + 92 * + 51 + + - CAST( NULL AS SIGNED ) * + 94 + 93 * - 59 END WHEN + 73 THEN + + CASE - 62 WHEN + 4 * - 14 * + + 61 + - 88 * 98 THEN COUNT( * ) + - 55 ELSE NULL END WHEN + - 75 * 62 THEN NULL WHEN + ( 92 ) * 53 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL + 21 + - CASE CASE + 92 WHEN - + COUNT ( * ) THEN + - MAX ( + 74 ) ELSE + 92 * + 51 + + - CAST ( NULL AS INTEGER ) * + 94 + 93 * - 59 END WHEN + 73 THEN + + CASE - 62 WHEN + 4 * - 14 * + + 61 + - 88 * 98 THEN COUNT ( * ) + - 55 ELSE NULL END WHEN + - 75 * 62 THEN NULL WHEN + ( 92 ) * 53 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT CASE + 34 WHEN - 78 / - 11 THEN + COUNT( 12 ) WHEN + 42 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT CASE + 34 WHEN - 78 / - 11 THEN + COUNT ( 12 ) WHEN + 42 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT ALL - ( 42 ) * 65 DIV + 21 + + + 21
----
-109

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL - ( 42 ) * 65 / + 21 + + + 21
----
-109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2514
SELECT - - 46 DIV 98, 22 DIV MAX( ALL 61 ) + 22 AS col0
----
0
22

skipif mysql # not compatible
query II rowsort label-2514
SELECT - - 46 / 98, 22 / MAX ( ALL 61 ) + 22 AS col0
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT ALL - MAX( + 78 ) - + MAX( DISTINCT + 50 ) col0
----
-128

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - MAX ( + 78 ) - + MAX ( DISTINCT + 50 ) col0
----
-128

query I rowsort
SELECT - 38 * - + 34 * 17 * - 56 col0
----
-1229984

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

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

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

skipif mysql # not compatible
query I rowsort label-2518
SELECT DISTINCT + COUNT ( * ) * - - 38 AS col2
----
38

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2520
SELECT DISTINCT + 9 DIV COUNT( * ) DIV + 77 AS col2, - 79 * + 58
----
0
-4582

skipif mysql # not compatible
query II rowsort label-2520
SELECT DISTINCT + 9 / COUNT ( * ) / + 77 AS col2, - 79 * + 58
----
0
-4582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2521
SELECT ALL + COALESCE ( - 13, - MIN( ALL - + 28 ) * 59, + + 95 ) DIV - 77 + - 49 col2
----
-49

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL + COALESCE ( - 13, - MIN ( ALL - + 28 ) * 59, + + 95 ) / - 77 + - 49 col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2522
SELECT COUNT( * ) DIV + - 49 * - 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT COUNT ( * ) / + - 49 * - 61 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2523
SELECT 40 * + ( - + COUNT( * ) ) AS col1, 56 * + - 20 * - - 20 col0
----
-40
-22400

skipif mysql # not compatible
query II rowsort label-2523
SELECT 40 * + ( - + COUNT ( * ) ) AS col1, 56 * + - 20 * - - 20 col0
----
-40
-22400

query I rowsort
SELECT DISTINCT 78 * - 64
----
-4992

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

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

query II rowsort
SELECT ALL - 30, 28 * - NULLIF ( + 12, - 17 ) col0
----
-30
-336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2527
SELECT ALL ( + 27 ) + - - 93 + - 82 DIV - - MAX( + - 2 ) + + 43
----
204

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL ( + 27 ) + - - 93 + - 82 / - - MAX ( + - 2 ) + + 43
----
204

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2528
SELECT ALL - + 84 AS col0, 72 DIV - 55 + + ( + + COUNT( * ) ) - + - 57
----
-84
57

skipif mysql # not compatible
query II rowsort label-2528
SELECT ALL - + 84 AS col0, 72 / - 55 + + ( + + COUNT ( * ) ) - + - 57
----
-84
57

query I rowsort
SELECT ALL 23 + 12 * + 48 + + 93 + - 73
----
619

query I rowsort
SELECT 53 * - - 77 * + 29 * - + 32 * 44
----
-166635392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2531
SELECT + 95 AS col2, - 48 * 91 + - - COUNT( * ) - - 25 DIV + MIN( 66 ) * COALESCE ( 10, 31 )
----
95
-4367

skipif mysql # not compatible
query II rowsort label-2531
SELECT + 95 AS col2, - 48 * 91 + - - COUNT ( * ) - - 25 / + MIN ( 66 ) * COALESCE ( 10, 31 )
----
95
-4367

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL - 66 + COUNT( * ) * 96 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - 66 + COUNT ( * ) * 96 AS col2
----
30

query I rowsort
SELECT DISTINCT - 74 * + + 82 AS col1
----
-6068

query I rowsort
SELECT DISTINCT 7 + - 52 AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT ALL - 5 + + NULLIF ( + COUNT( * ), CAST( - - 36 AS SIGNED ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL - 5 + + NULLIF ( + COUNT ( * ), CAST ( - - 36 AS INTEGER ) )
----
-4

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

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + + COUNT ( * ) * 76 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2537
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 34 + 83 + COUNT( * ) + + 6 * - + 21 AS col2, + 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-2537
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 34 + 83 + COUNT ( * ) + + 6 * - + 21 AS col2, + 46
----
NULL
46

query I rowsort
SELECT DISTINCT 35 * 32
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT DISTINCT COUNT( * ) * 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT COUNT ( * ) * 92 AS col0
----
92

query I rowsort
SELECT - 22 + - 12 AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT - 92 DIV - 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2541
SELECT - 92 / - 48 AS col2
----
1

query I rowsort
SELECT 50 + - 5 col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2543
SELECT ALL - - ( + ( CAST( NULL AS SIGNED ) ) ) - - + ( + SUM( DISTINCT - + 19 ) ) * + ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - - ( + ( CAST ( NULL AS INTEGER ) ) ) - - + ( + SUM ( DISTINCT - + 19 ) ) * + ( 91 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2544
SELECT 15 + - - COALESCE ( - 44, - COUNT( * ) DIV AVG ( ALL + + 93 ) ) AS col0, - 26
----
-29
-26

skipif mysql # not compatible
query II rowsort label-2544
SELECT 15 + - - COALESCE ( - 44, - COUNT ( * ) / AVG ( ALL + + 93 ) ) AS col0, - 26
----
-29
-26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2545
SELECT - 56 AS col1, COALESCE ( - - 55, - - 15, + - CAST( NULL AS SIGNED ) * 23 + - 19 + 52 DIV 50 )
----
-56
55

skipif mysql # not compatible
query II rowsort label-2545
SELECT - 56 AS col1, COALESCE ( - - 55, - - 15, + - CAST ( NULL AS INTEGER ) * 23 + - 19 + 52 / 50 )
----
-56
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL COUNT( * ) - 33 * + + 27
----
-890

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL COUNT ( * ) - 33 * + + 27
----
-890

query I rowsort
SELECT 34 + - 60
----
-26

query II rowsort
SELECT ALL 13 col2, - 32 AS col1
----
13
-32

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

query I rowsort
SELECT ALL + 96 * 95
----
9120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2551
SELECT ALL + CAST( NULL AS SIGNED ) * - ( + 61 ) col0
----
NULL

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

query I rowsort
SELECT 34 * - 94
----
-3196

query I rowsort
SELECT ALL + 96 * - + 3
----
-288

query II rowsort
SELECT 16 AS col1, 75
----
16
75

query I rowsort
SELECT 79 + - ( 77 ) AS col0
----
2

query I rowsort
SELECT 96 * + 52 + - - 87 AS col2
----
5079

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT 59, COUNT( ALL 54 ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-2557
SELECT 59, COUNT ( ALL 54 ) AS col0
----
59
1

query I rowsort
SELECT 69 + - 99 * - 9 AS col0
----
960

query I rowsort
SELECT ALL - 33 + + + 91 + 5 + + 14 * - 1 * + - 21 AS col2
----
357

query I rowsort
SELECT ALL - 24 + + - 95 AS col1
----
-119

query I rowsort
SELECT ALL 65 + - - 19 - - 28 AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-2562
SELECT 53, 16 - COUNT( * ) AS col1
----
53
15

skipif mysql # not compatible
query II rowsort label-2562
SELECT 53, 16 - COUNT ( * ) AS col1
----
53
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT ALL - 61 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - 61 / 90
----
0

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

skipif mysql # not compatible
query I rowsort label-2564
SELECT ( - 23 ) * - + ( 18 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2565
SELECT + 47 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT + 47 / - 92
----
0

query I rowsort
SELECT DISTINCT - 70 + + COALESCE ( - 6, + - 61 + - 94 * + 74, 1 ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2567
SELECT CASE - - 8 WHEN 39 - + 15 - + 18 + 93 + + CAST( NULL AS DECIMAL ) * + 30 * + + 32 * - 88 THEN + 70 + - ( 81 ) + + COUNT( * ) END * - MIN( ALL + - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT CASE - - 8 WHEN 39 - + 15 - + 18 + 93 + + CAST ( NULL AS REAL ) * + 30 * + + 32 * - 88 THEN + 70 + - ( 81 ) + + COUNT ( * ) END * - MIN ( ALL + - 90 )
----
NULL

query I rowsort
SELECT ALL + 95 + + - 44 AS col1
----
51

query I rowsort
SELECT ALL + 36 * + + 7 AS col1
----
252

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - 13 + - COUNT( * ) + - + 85 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2571
SELECT - 13 + - COUNT ( * ) + - + 85 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2572
SELECT 81 col1, + 42 * + + COALESCE ( + SUM( - 25 ), - 22 )
----
81
-1050

skipif mysql # not compatible
query II rowsort label-2572
SELECT 81 col1, + 42 * + + COALESCE ( + SUM ( - 25 ), - 22 )
----
81
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT ALL + + COUNT( * ) + - + 71 + 32 * + 72 AS col2
----
2234

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + + COUNT ( * ) + - + 71 + 32 * + 72 AS col2
----
2234

query II rowsort
SELECT ALL - 6, 42 col2
----
-6
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - COUNT( * ) + + - 53 * + 0 * - COALESCE ( 93, + 85, - 79 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2575
SELECT - COUNT ( * ) + + - 53 * + 0 * - COALESCE ( 93, + 85, - 79 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT ALL CASE - 69 WHEN ( - + ( - COUNT( * ) ) ) THEN NULL WHEN - 66 - + COALESCE ( + 27, 90 ) + + ( + ( NULLIF ( - CAST( + 83 AS SIGNED ), + + 69 * + - 33 / + - ( - - 94 ) ) ) ) * 73 * - + 91 * + + 6 * + 16 * + - 33 + + 35 - - 76 + - 66 THEN - 38 ELSE ( 25 ) END - + 82
----
-57

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL CASE - 69 WHEN ( - + ( - COUNT ( * ) ) ) THEN NULL WHEN - 66 - + COALESCE ( + 27, 90 ) + + ( + ( NULLIF ( - CAST ( + 83 AS INTEGER ), + + 69 * + - 33 / + - ( - - 94 ) ) ) ) * 73 * - + 91 * + + 6 * + 16 * + - 33 + + 35 - - 76 + - 66 THEN - 38 ELSE ( 25 ) END - + 82
----
-57

query II rowsort
SELECT DISTINCT 80 AS col0, 46
----
80
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2578
SELECT ALL CAST( NULL AS DECIMAL ) * + NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) - + + 44 ) / + 68 AS col2, - 32
----
NULL
-32

skipif mysql # not compatible
query II rowsort label-2578
SELECT ALL CAST ( NULL AS REAL ) * + NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) - + + 44 ) / + 68 AS col2, - 32
----
NULL
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT - + COUNT( * ) * + 28 * + + 44 + 2 + + 89
----
-1141

skipif mysql # not compatible
query I rowsort label-2579
SELECT - + COUNT ( * ) * + 28 * + + 44 + 2 + + 89
----
-1141

query II rowsort
SELECT 24, 78 * 20 AS col1
----
24
1560

query II rowsort
SELECT COALESCE ( - 56, + - 39 ) + + + 66 col0, 95
----
10
95

query I rowsort
SELECT ALL + 93 - - 48 * + ( + 81 ) AS col2
----
3981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT + 29 * + CAST( - 30 AS SIGNED )
----
-870

skipif mysql # not compatible
query I rowsort label-2583
SELECT + 29 * + CAST ( - 30 AS INTEGER )
----
-870

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT 61 AS col1, SUM( ALL + 79 ) + + 46 AS col1
----
61
125

skipif mysql # not compatible
query II rowsort label-2584
SELECT 61 AS col1, SUM ( ALL + 79 ) + + 46 AS col1
----
61
125

query I rowsort
SELECT ALL + 27 * + 11
----
297

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT + 68 * 36, + SUM( DISTINCT - 75 ) AS col2
----
2448
-75

skipif mysql # not compatible
query II rowsort label-2586
SELECT + 68 * 36, + SUM ( DISTINCT - 75 ) AS col2
----
2448
-75

query I rowsort
SELECT ALL 73 * 66 * ( + - 16 ) AS col1
----
-77088

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - COALESCE ( + 7, COUNT( DISTINCT - 2 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2588
SELECT - COALESCE ( + 7, COUNT ( DISTINCT - 2 ) ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2589
SELECT - MAX( ALL + 44 ) AS col0, + 18 * ( - COUNT( * ) )
----
-44
-18

skipif mysql # not compatible
query II rowsort label-2589
SELECT - MAX ( ALL + 44 ) AS col0, + 18 * ( - COUNT ( * ) )
----
-44
-18

query I rowsort
SELECT + 73 * + + ( 98 )
----
7154

query I rowsort
SELECT + 32 * - 81 AS col0
----
-2592

query I rowsort
SELECT - 37 * 6
----
-222

query I rowsort
SELECT NULLIF ( + 88, - 2 * ( + 52 ) + 66 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT ALL - 11 * + + 19 + + - 57 + - MAX( 75 ) * + 93 * + CAST( NULL AS SIGNED ) * + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - 11 * + + 19 + + - 57 + - MAX ( 75 ) * + 93 * + CAST ( NULL AS INTEGER ) * + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT DISTINCT + SUM( - 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-2595
SELECT DISTINCT + SUM ( - 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT - ( - MAX( DISTINCT + - 73 ) ) * 27 AS col0
----
-1971

skipif mysql # not compatible
query I rowsort label-2596
SELECT - ( - MAX ( DISTINCT + - 73 ) ) * 27 AS col0
----
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL + MAX( DISTINCT - 55 ) * 90 AS col2
----
-4950

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + MAX ( DISTINCT - 55 ) * 90 AS col2
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL + NULLIF ( + - 69, ( + COUNT( * ) ) * - 84 + + + 36 + - 57 * 82 / 83 )
----
-69

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + NULLIF ( + - 69, ( + COUNT ( * ) ) * - 84 + + + 36 + - 57 * 82 / 83 )
----
-69

query I rowsort
SELECT DISTINCT + 47 * 69 * + 14 AS col0
----
45402

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

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - 66 * + COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2601
SELECT NULLIF ( + 16, + 49 + COUNT( * ) * - 60 + - 54 + - MIN( - 9 ) ), - NULLIF ( - 55, - 86 ) - + 8 + - 93 * + COUNT( ALL + 40 ) * + - 68 AS col0
----
16
6371

skipif mysql # not compatible
query II rowsort label-2601
SELECT NULLIF ( + 16, + 49 + COUNT ( * ) * - 60 + - 54 + - MIN ( - 9 ) ), - NULLIF ( - 55, - 86 ) - + 8 + - 93 * + COUNT ( ALL + 40 ) * + - 68 AS col0
----
16
6371

query I rowsort
SELECT - - 29 + 29
----
58

query I rowsort
SELECT - - 85 * + 20
----
1700

query II rowsort
SELECT - 15 + 1 AS col0, 31
----
-14
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2605
SELECT ALL 68 DIV MIN( - 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL 68 / MIN ( - 41 )
----
-1

query II rowsort
SELECT - 38 * + 72 AS col0, + 60 AS col0
----
-2736
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT + - COALESCE ( COUNT( * ), + 71, SUM( - 87 ) * + 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + - COALESCE ( COUNT ( * ), + 71, SUM ( - 87 ) * + 38 ) AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT - 81 / + 39 / + COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL + 23 * - MIN( DISTINCT 72 ) - + 43
----
-1699

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL + 23 * - MIN ( DISTINCT 72 ) - + 43
----
-1699

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT ALL - - 50 DIV + + NULLIF ( 52, + ( - - 58 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - - 50 / + + NULLIF ( 52, + ( - - 58 ) ) AS col0
----
0

query I rowsort
SELECT - + 59 * + ( + 39 ) col2
----
-2301

query I rowsort
SELECT - 13 - + - 38
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL 57 * - CASE 72 WHEN - + COUNT( * ) THEN NULL WHEN - 82 THEN - CAST( - - 66 AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL 57 * - CASE 72 WHEN - + COUNT ( * ) THEN NULL WHEN - 82 THEN - CAST ( - - 66 AS INTEGER ) ELSE NULL END AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - 23 * + 61 AS col1
----
-1403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL CAST( NULLIF ( + 4, 92 ) AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL CAST ( NULLIF ( + 4, 92 ) AS INTEGER ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT DISTINCT 32 * + MIN( ALL + + 53 ) AS col1
----
1696

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT 32 * + MIN ( ALL + + 53 ) AS col1
----
1696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT - 56 + - 35 + - - 48 + + + CAST( NULL AS SIGNED ) * - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT - 56 + - 35 + - - 48 + + + CAST ( NULL AS INTEGER ) * - 93 AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2620
SELECT - COUNT ( * ), 62 AS col0
----
-1
62

query I rowsort
SELECT - 32 + 57
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2622
SELECT - CAST( - 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-2622
SELECT - CAST ( - 64 AS INTEGER )
----
64

query I rowsort
SELECT DISTINCT 61 + - 82 + + 83 AS col1
----
62

query I rowsort
SELECT ALL 96 + - 14 AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT ALL CAST( NULL AS SIGNED ) + + + AVG ( ALL - + 41 ) + + 31 + - 13 * CAST( NULL AS SIGNED ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL CAST ( NULL AS INTEGER ) + + + AVG ( ALL - + 41 ) + + 31 + - 13 * CAST ( NULL AS INTEGER ) + + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL MAX( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL MAX ( - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2627
SELECT DISTINCT 25 + 96 + - + COALESCE ( - 99, - 97, + - 10 * 30 * 24 ) AS col1, - COUNT( * ) * - 41
----
220
41

skipif mysql # not compatible
query II rowsort label-2627
SELECT DISTINCT 25 + 96 + - + COALESCE ( - 99, - 97, + - 10 * 30 * 24 ) AS col1, - COUNT ( * ) * - 41
----
220
41

query I rowsort
SELECT ALL 90 + + 68
----
158

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

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

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

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT 24 / + 71 + + + COUNT ( * ) * - 33 AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2631
SELECT + CASE 95 WHEN 6 - - ( - - 45 ) + COUNT( * ) * - 7 + CAST( + 79 AS SIGNED ) * - 14 + - ( 5 ) * 29 THEN - + 28 * - 61 + - 57 ELSE + 38 * + 44 END AS col2
----
1672

skipif mysql # not compatible
query I rowsort label-2631
SELECT + CASE 95 WHEN 6 - - ( - - 45 ) + COUNT ( * ) * - 7 + CAST ( + 79 AS INTEGER ) * - 14 + - ( 5 ) * 29 THEN - + 28 * - 61 + - 57 ELSE + 38 * + 44 END AS col2
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT CASE + + 64 WHEN 62 THEN + + COUNT( * ) ELSE NULL END / - - 25 + + MAX( ALL + + 54 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT CASE + + 64 WHEN 62 THEN + + COUNT ( * ) ELSE NULL END / - - 25 + + MAX ( ALL + + 54 ) col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT CAST( + - 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-2634
SELECT CAST ( + - 72 AS INTEGER )
----
-72

query I rowsort
SELECT - 24 + - + 32 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT + 0, - 39 * COUNT( * ) col1
----
0
-39

skipif mysql # not compatible
query II rowsort label-2636
SELECT + 0, - 39 * COUNT ( * ) col1
----
0
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - - COUNT( * ) + + MAX( + 46 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2637
SELECT - - COUNT ( * ) + + MAX ( + 46 ) AS col2
----
47

query II rowsort
SELECT ALL + 97 AS col1, + 62 - - + 73 + + - 15 AS col2
----
97
120

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

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

query I rowsort
SELECT + 0 * - 65 AS col1
----
0

query II rowsort
SELECT DISTINCT + 59 AS col2, 30 AS col1
----
59
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL + + MIN( COALESCE ( - 92, - - 89, - + 70 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + + MIN ( COALESCE ( - 92, - - 89, - + 70 ) ) AS col0
----
-92

query II rowsort
SELECT DISTINCT + - 1, + 81 * 92 - 26 AS col1
----
-1
7426

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - COALESCE ( COUNT( * ), + 7 * 21 + + 19 ) - - 48
----
47

skipif mysql # not compatible
query I rowsort label-2644
SELECT - COALESCE ( COUNT ( * ), + 7 * 21 + + 19 ) - - 48
----
47

query I rowsort
SELECT - 2 * - 87 AS col0
----
174

query I rowsort
SELECT ALL - + 97 * + 53
----
-5141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2647
SELECT - - 96 + - - 86 + + 18 * - ( - CAST( NULL AS SIGNED ) ) / + COUNT( 31 ) / 9 AS col0, 57 AS col1
----
NULL
57

skipif mysql # not compatible
query II rowsort label-2647
SELECT - - 96 + - - 86 + + 18 * - ( - CAST ( NULL AS INTEGER ) ) / + COUNT ( 31 ) / 9 AS col0, 57 AS col1
----
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL + - MAX( - 14 ) col1
----
14

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + - MAX ( - 14 ) col1
----
14

query I rowsort
SELECT - + 22 + + 85
----
63

query II rowsort
SELECT DISTINCT 77 AS col2, + ( + 48 ) * + 11 * - 22 AS col0
----
77
-11616

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT 47 * - 92 - + + 41 + + - COUNT( * )
----
-4366

skipif mysql # not compatible
query I rowsort label-2651
SELECT 47 * - 92 - + + 41 + + - COUNT ( * )
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL + - 18 + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + - 18 + - COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT 24 * - - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-2653
SELECT 24 * - - COUNT ( * ) AS col1
----
24

query I rowsort
SELECT 60 + COALESCE ( + 71, - + 58 + + 40, - + 5 ) AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT 34 * COUNT( * ) * 6
----
204

skipif mysql # not compatible
query I rowsort label-2655
SELECT 34 * COUNT ( * ) * 6
----
204

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

skipif mysql # not compatible
query I rowsort label-2656
SELECT 69 + - 45 - COUNT ( * ) AS col0
----
23

query I rowsort
SELECT ALL + 37 + + + NULLIF ( + - 34, - 85 * + 63 + - 67 )
----
3

query I rowsort
SELECT 59 * - 32
----
-1888

query I rowsort
SELECT ALL 14 * + 83 AS col1
----
1162

query I rowsort
SELECT DISTINCT - 92 * 18
----
-1656

query I rowsort
SELECT DISTINCT + 20 + - 17
----
3

query I rowsort
SELECT ALL - 65 * - 8 * 38 AS col0
----
19760

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT 74 * COUNT( * ) * 93 AS col1
----
6882

skipif mysql # not compatible
query I rowsort label-2663
SELECT 74 * COUNT ( * ) * 93 AS col1
----
6882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2664
SELECT COUNT( * ) * 87 AS col0, + COALESCE ( - + COALESCE ( 64, + - 44 * 90 + 46, 12 * + 4 * - + ( ( + + ( 35 ) ) ) * - CASE + 86 WHEN - 9 * + ( + 47 ) THEN - CASE COUNT( * ) WHEN + AVG ( ALL 43 ) THEN NULL ELSE + - COUNT( * ) END ELSE - CASE - 87 WHEN - 33 THEN NULL WHEN - 64 * - 64 + 68 THEN NULL ELSE 58 * + 30 + + 55 END END ), + CAST( NULL AS SIGNED ) * - MIN( 22 ) + + 41 ) + 4
----
87
-60

skipif mysql # not compatible
query II rowsort label-2664
SELECT COUNT ( * ) * 87 AS col0, + COALESCE ( - + COALESCE ( 64, + - 44 * 90 + 46, 12 * + 4 * - + ( ( + + ( 35 ) ) ) * - CASE + 86 WHEN - 9 * + ( + 47 ) THEN - CASE COUNT ( * ) WHEN + AVG ( ALL 43 ) THEN NULL ELSE + - COUNT ( * ) END ELSE - CASE - 87 WHEN - 33 THEN NULL WHEN - 64 * - 64 + 68 THEN NULL ELSE 58 * + 30 + + 55 END END ), + CAST ( NULL AS INTEGER ) * - MIN ( 22 ) + + 41 ) + 4
----
87
-60

query I rowsort
SELECT DISTINCT - COALESCE ( + 60, 69 ) AS col2
----
-60

query II rowsort
SELECT ALL + 58 * - - 33, + 45 * 48 AS col0
----
1914
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT + 93 * - SUM( + COALESCE ( - 4, + ( 10 ) ) ) AS col2
----
372

skipif mysql # not compatible
query I rowsort label-2667
SELECT + 93 * - SUM ( + COALESCE ( - 4, + ( 10 ) ) ) AS col2
----
372

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2668
SELECT ALL 63 DIV - 70 AS col0, + ( + 9 ) * + 13 - + 21 + + 33 - - 58 + - + 64 DIV + - 10 + + - 25 DIV 94 * MAX( DISTINCT - 89 ) AS col1
----
0
193

skipif mysql # not compatible
query II rowsort label-2668
SELECT ALL 63 / - 70 AS col0, + ( + 9 ) * + 13 - + 21 + + 33 - - 58 + - + 64 / + - 10 + + - 25 / 94 * MAX ( DISTINCT - 89 ) AS col1
----
0
193

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT DISTINCT + 25 * - 88 - COUNT( 8 ) AS col2
----
-2201

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT + 25 * - 88 - COUNT ( 8 ) AS col2
----
-2201

query I rowsort
SELECT ALL + 14 * + + 50 + + 83
----
783

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT 91 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2671
SELECT 91 / 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL 90 * + 68 + COUNT( * ) * 51
----
6171

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL 90 * + 68 + COUNT ( * ) * 51
----
6171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2673
SELECT - 41 * - SUM( - - 6 ) * + 86 * - 43 + CAST( + + COUNT( DISTINCT CAST( - 26 AS DECIMAL ) ) AS SIGNED ) * - + 4 + - COUNT( * ) col0
----
-909713

skipif mysql # not compatible
query I rowsort label-2673
SELECT - 41 * - SUM ( - - 6 ) * + 86 * - 43 + CAST ( + + COUNT ( DISTINCT CAST ( - 26 AS REAL ) ) AS INTEGER ) * - + 4 + - COUNT ( * ) col0
----
-909713

query I rowsort
SELECT - 33 - - 66
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT 71 DIV - - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2675
SELECT 71 / - - COUNT ( * ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2676
SELECT COALESCE ( + - ( + COUNT( * ) ), + + 31, - + 60 + + 10 + CAST( - + 1 AS SIGNED ) DIV 40 ) * + + COUNT( * ) * - 12 - - - 39 + - ( - 14 ) + - COALESCE ( - + COUNT( * ), CAST( + 89 AS SIGNED ) * - + 67 * - 73 + COUNT( * ) * + + 38, + CASE + CASE + 28 WHEN - + 15 THEN - 29 WHEN 92 THEN + 22 END WHEN 33 THEN - 43 DIV + CAST( NULL AS SIGNED ) WHEN - ( + 58 ) + 59 THEN CAST( NULL AS SIGNED ) + - 81 END ) * 30 * 21
----
617

skipif mysql # not compatible
query I rowsort label-2676
SELECT COALESCE ( + - ( + COUNT ( * ) ), + + 31, - + 60 + + 10 + CAST ( - + 1 AS INTEGER ) / 40 ) * + + COUNT ( * ) * - 12 - - - 39 + - ( - 14 ) + - COALESCE ( - + COUNT ( * ), CAST ( + 89 AS INTEGER ) * - + 67 * - 73 + COUNT ( * ) * + + 38, + CASE + CASE + 28 WHEN - + 15 THEN - 29 WHEN 92 THEN + 22 END WHEN 33 THEN - 43 / + CAST ( NULL AS INTEGER ) WHEN - ( + 58 ) + 59 THEN CAST ( NULL AS INTEGER ) + - 81 END ) * 30 * 21
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL + SUM( ALL - 88 ) * 89 AS col2
----
-7832

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL + SUM ( ALL - 88 ) * 89 AS col2
----
-7832

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL - MIN( DISTINCT - 64 ) col2
----
64

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL - MIN ( DISTINCT - 64 ) col2
----
64

query I rowsort
SELECT DISTINCT + 48 + - 11 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT 32 + 85, 59 + - COUNT( * ) + 97 * - + MAX( + 37 ) AS col1
----
117
-3531

skipif mysql # not compatible
query II rowsort label-2681
SELECT 32 + 85, 59 + - COUNT ( * ) + 97 * - + MAX ( + 37 ) AS col1
----
117
-3531

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL + 78 * NULLIF ( - - 26, - 14 + MAX( ALL + + 57 ) ) AS col1
----
2028

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + 78 * NULLIF ( - - 26, - 14 + MAX ( ALL + + 57 ) ) AS col1
----
2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT ALL + 69 + - COUNT( * ) + + ( - COALESCE ( - - 21, - 65 - + 22 + - COUNT( * ) * - - NULLIF ( + + 64, + 20 + 73 ) * - CAST( NULL AS SIGNED ) - - 81 + 51 + + NULLIF ( - ( - + 16 ), + - COUNT( ALL + - ( 91 ) ) * + NULLIF ( - 22, + COUNT( * ) ) / - + NULLIF ( - 59, - 51 / - - 30 * - 89 + - - 8 + + COUNT( * ) ) - COUNT( * ) ) * - 17 ) ) * - 25 * 84
----
44168

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + 69 + - COUNT ( * ) + + ( - COALESCE ( - - 21, - 65 - + 22 + - COUNT ( * ) * - - NULLIF ( + + 64, + 20 + 73 ) * - CAST ( NULL AS INTEGER ) - - 81 + 51 + + NULLIF ( - ( - + 16 ), + - COUNT ( ALL + - ( 91 ) ) * + NULLIF ( - 22, + COUNT ( * ) ) / - + NULLIF ( - 59, - 51 / - - 30 * - 89 + - - 8 + + COUNT ( * ) ) - COUNT ( * ) ) * - 17 ) ) * - 25 * 84
----
44168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2684
SELECT COALESCE ( 48, + - CASE - MAX( DISTINCT + 64 ) WHEN + 75 * - 47 * + 5 THEN MAX( 66 ) * + + 77 - - ( 25 ) + + 64 / 16 END ) - - - CASE 82 WHEN - COUNT( ALL - 59 ) THEN NULL WHEN - AVG ( - 63 ) * 70 + AVG ( ALL - - CAST( NULL AS SIGNED ) ) - + 83 * + 45 + - 95 + - - 37 * - ( + 9 ) * COUNT( * ) THEN - 95 END + + 22 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT COALESCE ( 48, + - CASE - MAX ( DISTINCT + 64 ) WHEN + 75 * - 47 * + 5 THEN MAX ( 66 ) * + + 77 - - ( 25 ) + + 64 / 16 END ) - - - CASE 82 WHEN - COUNT ( ALL - 59 ) THEN NULL WHEN - AVG ( - 63 ) * 70 + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) - + 83 * + 45 + - 95 + - - 37 * - ( + 9 ) * COUNT ( * ) THEN - 95 END + + 22 * 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL - 5 + + - COUNT( * ) + + NULLIF ( 58, ( - 24 ) + - + 79 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL - 5 + + - COUNT ( * ) + + NULLIF ( 58, ( - 24 ) + - + 79 ) AS col0
----
52

query I rowsort
SELECT 50 - - 13 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ALL 32 + - COALESCE ( + COUNT( * ), - 48 + COUNT( * ) + + 24 * - - 97 * 56 * 41, + 67 ) + + 83
----
114

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL 32 + - COALESCE ( + COUNT ( * ), - 48 + COUNT ( * ) + + 24 * - - 97 * 56 * 41, + 67 ) + + 83
----
114

query I rowsort
SELECT DISTINCT + 51 + 39 * - 47
----
-1782

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT 85 - + 11 * + ( + 67 ) * - 76 / + 34 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT 85 - + 11 * + ( + 67 ) * - 76 / + 34 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 59 + 73
----
132

query I rowsort
SELECT 94 - 40
----
54

query I rowsort
SELECT 68 + 77
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT ALL + 7 - - 44 + 5 * + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL + 7 - - 44 + 5 * + COUNT ( * ) AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2695
SELECT 75 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-2695
SELECT 75 / 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT 84 + + + CASE - 14 WHEN 37 THEN - - 44 + + ( 50 ) * - COUNT( * ) ELSE NULL END + COALESCE ( - COALESCE ( 75, + 93 * + + 98 ), + + 51 * + + 9 ) - - - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT 84 + + + CASE - 14 WHEN 37 THEN - - 44 + + ( 50 ) * - COUNT ( * ) ELSE NULL END + COALESCE ( - COALESCE ( 75, + 93 * + + 98 ), + + 51 * + + 9 ) - - - 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2697
SELECT COUNT( 27 ) + - COALESCE ( + - 36, + + ( 80 ) ) DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT COUNT ( 27 ) + - COALESCE ( + - 36, + + ( 80 ) ) / - 32
----
0

query I rowsort
SELECT ALL + - 31 * COALESCE ( + 40, + 28 ) + 17
----
-1223

query I rowsort
SELECT DISTINCT - + 30 col1
----
-30

query I rowsort
SELECT + - NULLIF ( - + 4, 58 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2701
SELECT - 39 DIV + 79 * - + 86 + + COUNT( * ) + + 90 DIV - COUNT( DISTINCT 61 )
----
-89

skipif mysql # not compatible
query I rowsort label-2701
SELECT - 39 / + 79 * - + 86 + + COUNT ( * ) + + 90 / - COUNT ( DISTINCT 61 )
----
-89

query I rowsort
SELECT + ( - NULLIF ( + 46, 13 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT DISTINCT - + 14 * - 24 * + 58 + ( 98 ) * - ( - 41 ) + + 53 + + + MIN( + ( 28 ) ) * + 11 AS col0
----
23867

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT - + 14 * - 24 * + 58 + ( 98 ) * - ( - 41 ) + + 53 + + + MIN ( + ( 28 ) ) * + 11 AS col0
----
23867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2704
SELECT DISTINCT + COALESCE ( 14, + 74 * - CAST( 63 AS SIGNED ) ) AS col0, + 28
----
14
28

skipif mysql # not compatible
query II rowsort label-2704
SELECT DISTINCT + COALESCE ( 14, + 74 * - CAST ( 63 AS INTEGER ) ) AS col0, + 28
----
14
28

query I rowsort
SELECT ALL + 52 * 85 + 14 * + 54 * - - 39 + + 40 AS col2
----
33944

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT COUNT( * ) * + 87 * + 60 + - ( - 57 )
----
5277

skipif mysql # not compatible
query I rowsort label-2706
SELECT COUNT ( * ) * + 87 * + 60 + - ( - 57 )
----
5277

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT ( + 13 ) * COUNT( * ) + - 96 col2
----
-83

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT ( + 13 ) * COUNT ( * ) + - 96 col2
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT ALL - 23 * - - 75 + + 42 DIV - 99
----
-1725

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL - 23 * - - 75 + + 42 / - 99
----
-1725

onlyif mysql # aggregate syntax: 
query II rowsort label-2709
SELECT + 51 AS col2, 99 + 70 * - ( - 74 ) * + 48 - MAX( + 54 ) + 23 AS col2
----
51
248708

skipif mysql # not compatible
query II rowsort label-2709
SELECT + 51 AS col2, 99 + 70 * - ( - 74 ) * + 48 - MAX ( + 54 ) + 23 AS col2
----
51
248708

query I rowsort
SELECT + 85 * + - 99
----
-8415

query I rowsort
SELECT ALL 9 + - 50 + - - ( 91 ) * + 3
----
232

query II rowsort
SELECT ALL 63, + 76 AS col1
----
63
76

query I rowsort
SELECT - 73 + - 30 AS col2
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT - CASE + + COUNT( * ) WHEN 1 THEN SUM( 56 ) END AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2714
SELECT - CASE + + COUNT ( * ) WHEN 1 THEN SUM ( 56 ) END AS col1
----
-56

query I rowsort
SELECT DISTINCT 72 * 4 AS col2
----
288

query I rowsort
SELECT - COALESCE ( + 88, + 6 + + 35 * + 96 * 90 - 23 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT + ( + MAX( DISTINCT - 16 ) ) * + + 5
----
-80

skipif mysql # not compatible
query I rowsort label-2717
SELECT + ( + MAX ( DISTINCT - 16 ) ) * + + 5
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT - 1 + - + 80 + 50 * - 73 + + ( + + 65 ) DIV - 48
----
-3732

skipif mysql # not compatible
query I rowsort label-2718
SELECT - 1 + - + 80 + 50 * - 73 + + ( + + 65 ) / - 48
----
-3732

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT - SUM( + + ( 16 ) ) - 22 + + COUNT( * ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - SUM ( + + ( 16 ) ) - 22 + + COUNT ( * ) col2
----
-37

query I rowsort
SELECT ALL COALESCE ( - 83, ( + + 43 ) )
----
-83

query II rowsort
SELECT ALL 40, - 42 AS col2
----
40
-42

query I rowsort
SELECT - 65 * 36 * + 71 AS col2
----
-166140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT - 83 DIV ( COUNT( * ) ) * + - ( - - 59 ) * - 96
----
-470112

skipif mysql # not compatible
query I rowsort label-2723
SELECT - 83 / ( COUNT ( * ) ) * + - ( - - 59 ) * - 96
----
-470112

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL MIN( ALL + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL MIN ( ALL + 63 ) AS col2
----
63

query I rowsort
SELECT + 19 - - 52 + - ( + 56 ) * + - 75 * - 13 + + 46 AS col2
----
-54483

onlyif mysql # aggregate syntax: 
query II rowsort label-2726
SELECT ALL - 72 AS col2, MIN( - 32 ) * - 5 + - 48 - - 27
----
-72
139

skipif mysql # not compatible
query II rowsort label-2726
SELECT ALL - 72 AS col2, MIN ( - 32 ) * - 5 + - 48 - - 27
----
-72
139

query I rowsort
SELECT + + 92 * 42 AS col2
----
3864

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT - + 75 DIV - 53
----
1

skipif mysql # not compatible
query I rowsort label-2729
SELECT - + 75 / - 53
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT - 11 DIV + 91 + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-2730
SELECT - 11 / + 91 + - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT - SUM( DISTINCT + 61 ) + - 32
----
-93

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT - SUM ( DISTINCT + 61 ) + - 32
----
-93

query II rowsort
SELECT ALL 27 AS col0, 1 AS col2
----
27
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT ALL - 14 * + 20 / + CAST( NULL AS SIGNED ) + 21 + - CAST( COUNT( ALL - + 54 ) AS SIGNED ) + + 10 * + 86 * + - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - 14 * + 20 / + CAST ( NULL AS INTEGER ) + 21 + - CAST ( COUNT ( ALL - + 54 ) AS INTEGER ) + + 10 * + 86 * + - 50 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT - 77 DIV 2
----
-38

skipif mysql # not compatible
query I rowsort label-2734
SELECT - 77 / 2
----
-38

query I rowsort
SELECT DISTINCT + 12 * + + ( + 81 ) AS col0
----
972

query II rowsort
SELECT ALL + 21 col1, + 22 AS col2
----
21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + - MIN( - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2737
SELECT + - MIN ( - 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT - COALESCE ( - + 98, 39 + - + 14, - COALESCE ( 83, - 48 + 64 - - COALESCE ( ( - 30 ), - COUNT( * ) * + 97 ) ) ) + - 47 DIV - ( + 84 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-2738
SELECT - COALESCE ( - + 98, 39 + - + 14, - COALESCE ( 83, - 48 + 64 - - COALESCE ( ( - 30 ), - COUNT ( * ) * + 97 ) ) ) + - 47 / - ( + 84 ) col0
----
98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT + + ( - - 76 ) * + 36 * - ( ( 36 ) ) - + 53 DIV + MAX( - 82 ) + - ( - 56 )
----
-98440

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + + ( - - 76 ) * + 36 * - ( ( 36 ) ) - + 53 / + MAX ( - 82 ) + - ( - 56 )
----
-98440

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

query I rowsort
SELECT DISTINCT + + 19 col2
----
19

query II rowsort
SELECT DISTINCT + 62 AS col2, 93
----
62
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - 98 + - SUM( DISTINCT - + 87 ) - 64 * + 21 AS col2
----
-1355

skipif mysql # not compatible
query I rowsort label-2744
SELECT - 98 + - SUM ( DISTINCT - + 87 ) - 64 * + 21 AS col2
----
-1355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL - 91 * + 68 - - CASE + 9 WHEN - 69 / + - 47 THEN NULL WHEN - + COUNT( + 75 ) THEN NULL ELSE 71 END + + - 13 + NULLIF ( 5, CAST( - 58 AS SIGNED ) * - + 10 + + - 52 ) - - 6 AS col2
----
-6119

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL - 91 * + 68 - - CASE + 9 WHEN - 69 / + - 47 THEN NULL WHEN - + COUNT ( + 75 ) THEN NULL ELSE 71 END + + - 13 + NULLIF ( 5, CAST ( - 58 AS INTEGER ) * - + 10 + + - 52 ) - - 6 AS col2
----
-6119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT CASE + ( - - 5 ) WHEN + - CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE - - COUNT( * ) * + CAST( NULL AS SIGNED ) + + 1 + MIN( ALL 59 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT CASE + ( - - 5 ) WHEN + - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 1 + MIN ( ALL 59 ) END
----
NULL

query I rowsort
SELECT ALL 71 * - - 3 - - - 44 AS col0
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT DISTINCT - 33 DIV + + 41 * - 43
----
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - 33 / + + 41 * - 43
----
0

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

query II rowsort
SELECT + 32 * + + 35 AS col1, 3
----
1120
3

query II rowsort
SELECT ALL 37 * 92 col2, - 94 + - 90 AS col2
----
3404
-184

query I rowsort
SELECT + NULLIF ( 24, - 33 * 66 ) - 54 AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2753
SELECT + 96 DIV + - COUNT( 11 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-2753
SELECT + 96 / + - COUNT ( 11 ) AS col1
----
-96

query I rowsort
SELECT + 2 * + 91 * + 55
----
10010

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL MIN( ALL - - 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL MIN ( ALL - - 83 ) AS col2
----
83

query I rowsort
SELECT ALL 95 * - 11 AS col2
----
-1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT ALL COALESCE ( + + COUNT( * ), + - 7 * - + 65 * + 22 DIV 24 + 74, - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL COALESCE ( + + COUNT ( * ), + - 7 * - + 65 * + 22 / 24 + 74, - 10 )
----
1

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

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

query I rowsort
SELECT + 42 * + + 12
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2760
SELECT + CAST( + - AVG ( ALL - + 99 ) AS SIGNED ) + COUNT( * ) + + - 17 DIV - 86 * + - 67 AS col1, + CASE - - NULLIF ( + 38, 26 ) WHEN + + COUNT( * ) * - 59 - MIN( ALL + 2 ) DIV - - 63 THEN NULL WHEN - + 94 THEN NULL ELSE - 58 + + 58 END DIV + 92 + 3 DIV 76
----
100
0

skipif mysql # not compatible
query II rowsort label-2760
SELECT + CAST ( + - AVG ( ALL - + 99 ) AS INTEGER ) + COUNT ( * ) + + - 17 / - 86 * + - 67 AS col1, + CASE - - NULLIF ( + 38, 26 ) WHEN + + COUNT ( * ) * - 59 - MIN ( ALL + 2 ) / - - 63 THEN NULL WHEN - + 94 THEN NULL ELSE - 58 + + 58 END / + 92 + 3 / 76
----
100
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT + 59 - + + 89 + + COUNT( * ) * + 49
----
19

skipif mysql # not compatible
query I rowsort label-2761
SELECT + 59 - + + 89 + + COUNT ( * ) * + 49
----
19

query I rowsort
SELECT + NULLIF ( - ( + 18 ), + 93 * 66 ) + + 25
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT + + 46 + NULLIF ( CAST( - + MAX( + + ( 2 ) ) AS SIGNED ), + 76 * - COUNT( * ) + 47 + 10 * + + 95 / - COUNT( * ) + 62 ) + + 49 * 59 + 52 + - 91 * - + COUNT( * )
----
3078

skipif mysql # not compatible
query I rowsort label-2763
SELECT + + 46 + NULLIF ( CAST ( - + MAX ( + + ( 2 ) ) AS INTEGER ), + 76 * - COUNT ( * ) + 47 + 10 * + + 95 / - COUNT ( * ) + 62 ) + + 49 * 59 + 52 + - 91 * - + COUNT ( * )
----
3078

query I rowsort
SELECT - ( + + 24 ) * + - ( 42 ) AS col1
----
1008

query I rowsort
SELECT ALL 69 + 95
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL - NULLIF ( + + 23, 18 * 29 + + 75 / - - 21 + + - ( + MAX( + 74 ) ) ) + + 14 * 15 + - 84 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL - NULLIF ( + + 23, 18 * 29 + + 75 / - - 21 + + - ( + MAX ( + 74 ) ) ) + + 14 * 15 + - 84 AS col1
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT DISTINCT - 7 + + - CASE + - 69 WHEN + + 19 + + - CAST( 89 AS SIGNED ) * + - 59 - - - 84 THEN NULL WHEN - CASE + 54 WHEN + 26 THEN - COUNT( + 18 ) WHEN + 81 THEN NULL END THEN + 40 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT - 7 + + - CASE + - 69 WHEN + + 19 + + - CAST ( 89 AS INTEGER ) * + - 59 - - - 84 THEN NULL WHEN - CASE + 54 WHEN + 26 THEN - COUNT ( + 18 ) WHEN + 81 THEN NULL END THEN + 40 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT SUM( DISTINCT - 70 ) + + 27 col1
----
-43

skipif mysql # not compatible
query I rowsort label-2768
SELECT SUM ( DISTINCT - 70 ) + + 27 col1
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2769
SELECT ALL - 74 + 14 + + 5 - + + CAST( NULL AS DECIMAL ) * - 24 * 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - 74 + 14 + + 5 - + + CAST ( NULL AS REAL ) * - 24 * 74 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT ALL - CAST( - - 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL - CAST ( - - 67 AS INTEGER ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2772
SELECT - 50 * - 97 + - - 21 + 49 - + - 62 AS col0, - 66 * COUNT( DISTINCT 88 ) + + + 72 * + 17
----
4982
1158

skipif mysql # not compatible
query II rowsort label-2772
SELECT - 50 * - 97 + - - 21 + 49 - + - 62 AS col0, - 66 * COUNT ( DISTINCT 88 ) + + + 72 * + 17
----
4982
1158

query I rowsort
SELECT 48 * 81
----
3888

query I rowsort
SELECT 14 * + - 8 * + 60 * - 59 * - 41 * 44 + - 12 + - 42
----
-715249974

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2775
SELECT ALL - - CAST( - - 21 AS SIGNED ) col2, 53 AS col0
----
21
53

skipif mysql # not compatible
query II rowsort label-2775
SELECT ALL - - CAST ( - - 21 AS INTEGER ) col2, 53 AS col0
----
21
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT + 29 + + ( + COALESCE ( 39, 79, - - 60 + + - COALESCE ( - - CASE - COUNT( * ) WHEN - - 95 * 64 THEN + ( + 33 ) * + 70 + + COUNT( ALL 73 ) WHEN + 6 THEN + 31 END, - 0 * + 66 ) ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-2776
SELECT + 29 + + ( + COALESCE ( 39, 79, - - 60 + + - COALESCE ( - - CASE - COUNT ( * ) WHEN - - 95 * 64 THEN + ( + 33 ) * + 70 + + COUNT ( ALL 73 ) WHEN + 6 THEN + 31 END, - 0 * + 66 ) ) ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2777
SELECT - MIN( ALL + CAST( + 62 AS SIGNED ) ) * - - 61 col1
----
-3782

skipif mysql # not compatible
query I rowsort label-2777
SELECT - MIN ( ALL + CAST ( + 62 AS INTEGER ) ) * - - 61 col1
----
-3782

query I rowsort
SELECT 15 * + 82 + 13 AS col2
----
1243

query II rowsort
SELECT ALL - + 71 * 83 * - 54, + 49 AS col2
----
318222
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + 78 + - 23 + - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2780
SELECT + 78 + - 23 + - COUNT ( * ) AS col1
----
54

query I rowsort
SELECT ALL + 67 * - 91 AS col2
----
-6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2782
SELECT + CASE + 81 WHEN CAST( NULL AS SIGNED ) + COUNT( * ) + - 63 / 53 / + 72 + CAST( NULL AS SIGNED ) THEN - 57 WHEN + 57 + - 40 + + - 79 - 33 THEN NULL ELSE NULL END * + - 82 + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT + CASE + 81 WHEN CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 63 / 53 / + 72 + CAST ( NULL AS INTEGER ) THEN - 57 WHEN + 57 + - 40 + + - 79 - 33 THEN NULL ELSE NULL END * + - 82 + + COUNT ( * ) col0
----
NULL

query II rowsort
SELECT + 49 AS col2, + 16
----
49
16

query II rowsort
SELECT ALL - COALESCE ( + + 59, 93 ), 46 AS col1
----
-59
46

query II rowsort
SELECT ALL - 43 AS col0, 80 AS col2
----
-43
80

query I rowsort
SELECT 78 * + 25 AS col0
----
1950

query I rowsort
SELECT ALL - 47 * - - 35 AS col0
----
-1645

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

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

query I rowsort
SELECT 85 + - 54 - 79 * + + 79 col0
----
-6210

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2790
SELECT + 58 AS col2, CAST( NULL AS DECIMAL )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-2790
SELECT + 58 AS col2, CAST ( NULL AS REAL )
----
58
NULL

query I rowsort
SELECT DISTINCT - 29 * - 51
----
1479

query I rowsort
SELECT 68 * + 5
----
340

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

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

query I rowsort
SELECT 75 * + 61 + - 84 + + 47
----
4538

query I rowsort
SELECT 84 + - 46 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT 94 + - 22 * - CAST( 67 AS SIGNED )
----
1568

skipif mysql # not compatible
query I rowsort label-2796
SELECT 94 + - 22 * - CAST ( 67 AS INTEGER )
----
1568

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

query I rowsort
SELECT ALL - 85 + - - 67
----
-18

query I rowsort
SELECT 84 * - 55 AS col2
----
-4620

query I rowsort
SELECT 19 + 32 AS col0
----
51

query I rowsort
SELECT ( 6 ) + + 54 AS col1
----
60

query I rowsort
SELECT ALL ( 90 ) + 9 AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2803
SELECT 3 DIV MIN( ALL - 13 )
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT 3 / MIN ( ALL - 13 )
----
0

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

skipif mysql # not compatible
query I rowsort label-2804
SELECT COUNT ( * ) + 40 AS col1
----
41

query I rowsort
SELECT 45 * - 85
----
-3825

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2806
SELECT ALL CASE 18 WHEN + 18 THEN - - 15 WHEN NULLIF ( - - 10, 82 ) THEN + ( - 67 ) ELSE + CAST( NULL AS SIGNED ) END + + COALESCE ( + 74, + - 90 DIV + 52 ) + - - COALESCE ( + 49, 44 * 53, - ( + - 88 ) )
----
138

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL CASE 18 WHEN + 18 THEN - - 15 WHEN NULLIF ( - - 10, 82 ) THEN + ( - 67 ) ELSE + CAST ( NULL AS INTEGER ) END + + COALESCE ( + 74, + - 90 / + 52 ) + - - COALESCE ( + 49, 44 * 53, - ( + - 88 ) )
----
138

query II rowsort
SELECT 58, 24 AS col1
----
58
24

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + 50 / 93 * - 33 * - 53 + CASE - 20 WHEN - 78 THEN 46 * 77 WHEN + MIN( - + 5 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT + 50 / 93 * - 33 * - 53 + CASE - 20 WHEN - 78 THEN 46 * 77 WHEN + MIN ( - + 5 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT ALL + 98 DIV + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + 98 / + 35 AS col1
----
2

query I rowsort
SELECT ALL - 23 + 77
----
54

query II rowsort
SELECT - - 14 AS col0, + 81 AS col1
----
14
81

query I rowsort
SELECT - 17 - - - ( - + 17 ) AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2816
SELECT DISTINCT - 21 + + - COUNT( + - 83 ) + - CAST( 89 AS SIGNED ) col0
----
-111

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT - 21 + + - COUNT ( + - 83 ) + - CAST ( 89 AS INTEGER ) col0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2817
SELECT - 8, COUNT( * ) DIV + 81 AS col2
----
-8
0

skipif mysql # not compatible
query II rowsort label-2817
SELECT - 8, COUNT ( * ) / + 81 AS col2
----
-8
0

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

query I rowsort
SELECT ALL + 2 * - 54
----
-108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2821
SELECT DISTINCT SUM( + + 23 ) * + CAST( NULL AS SIGNED ) * - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT SUM ( + + 23 ) * + CAST ( NULL AS INTEGER ) * - 86 AS col1
----
NULL

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

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

query I rowsort
SELECT - 3 * - 83 + + ( + - 83 ) + - 3 - + 80 AS col0
----
83

query I rowsort
SELECT 97 - + 1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT + SUM( - 86 ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-2825
SELECT + SUM ( - 86 ) col0
----
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT DISTINCT + MIN( + 76 ) * + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT + MIN ( + 76 ) * + + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT 87 + - - 7 - + - MIN( DISTINCT - 63 ) * 89 AS col0
----
-5513

skipif mysql # not compatible
query I rowsort label-2828
SELECT 87 + - - 7 - + - MIN ( DISTINCT - 63 ) * 89 AS col0
----
-5513

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT ALL 78 DIV + + 62
----
1

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL 78 / + + 62
----
1

query I rowsort
SELECT ALL + 43 * - 82 AS col2
----
-3526

onlyif mysql # aggregate syntax: 
query II rowsort label-2831
SELECT ALL - 16 + + 21 AS col0, - COUNT( * ) AS col0
----
5
-1

skipif mysql # not compatible
query II rowsort label-2831
SELECT ALL - 16 + + 21 AS col0, - COUNT ( * ) AS col0
----
5
-1

query I rowsort
SELECT ALL + 53 + + 96
----
149

query II rowsort
SELECT ALL - 80 + + 53 col0, 66 + + 51
----
-27
117

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

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

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

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

query I rowsort
SELECT 9 - - 13 AS col2
----
22

query I rowsort
SELECT DISTINCT CASE + - 65 WHEN - + 38 + - 37 THEN + - AVG ( - 64 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 17 * + 99 - ( + - 18 ) + ( - 45 ) - - - 85 * - 62
----
6926

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL - - 80 + - CASE - ( + + 89 ) WHEN - 48 THEN - 40 * + 33 / COUNT( * ) * + AVG ( + + 98 ) WHEN + 6 THEN + - 36 + - 20 * + 85 WHEN - - CASE ( - COUNT( * ) ) WHEN - 32 * - - 54 + + 63 THEN NULL WHEN + 11 - + 88 THEN 54 END THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL - - 80 + - CASE - ( + + 89 ) WHEN - 48 THEN - 40 * + 33 / COUNT ( * ) * + AVG ( + + 98 ) WHEN + 6 THEN + - 36 + - 20 * + 85 WHEN - - CASE ( - COUNT ( * ) ) WHEN - 32 * - - 54 + + 63 THEN NULL WHEN + 11 - + 88 THEN 54 END THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL - COALESCE ( 46, + MIN( 34 ), + 29 )
----
-46

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL - COALESCE ( 46, + MIN ( 34 ), + 29 )
----
-46

query I rowsort
SELECT - - 38 + + - 73 + + 54 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2842
SELECT ALL - 69 * - 76 + + 84 + - 19 * - CASE - 49 WHEN 12 THEN NULL ELSE ( + 64 ) DIV - 98 * - COUNT( * ) + - 10 * - + 37 + 18 * - 44 + + COUNT( * ) END AS col2
----
-2671

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - 69 * - 76 + + 84 + - 19 * - CASE - 49 WHEN 12 THEN NULL ELSE ( + 64 ) / - 98 * - COUNT ( * ) + - 10 * - + 37 + 18 * - 44 + + COUNT ( * ) END AS col2
----
-2671

query I rowsort
SELECT ALL + + 4 + 90 AS col0
----
94

query I rowsort
SELECT - 1 + 87 AS col0
----
86

query I rowsort
SELECT + 71 - + 80
----
-9

query I rowsort
SELECT + ( - + 74 ) - - - 36
----
-110

query I rowsort
SELECT ALL + 92 - 47 AS col2
----
45

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

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

query I rowsort
SELECT - + 11 + 15
----
4

query I rowsort
SELECT + - 36 + - 44
----
-80

query I rowsort
SELECT ALL + 31 * 83 + - + CASE + 26 WHEN + 12 THEN NULL WHEN - 89 + - 77 THEN - + 32 END
----
NULL

query I rowsort
SELECT + + 62 + 80 AS col2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT DISTINCT - 92 DIV - ( - 1 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT - 92 / - ( - 1 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + - MIN( ALL 20 ) + - + MAX( + + 11 ) - + - CASE ( + - 52 ) WHEN + NULLIF ( - - 25, + 53 + - 83 + - 95 ) THEN NULL ELSE - 86 END
----
-117

skipif mysql # not compatible
query I rowsort label-2854
SELECT + - MIN ( ALL 20 ) + - + MAX ( + + 11 ) - + - CASE ( + - 52 ) WHEN + NULLIF ( - - 25, + 53 + - 83 + - 95 ) THEN NULL ELSE - 86 END
----
-117

query I rowsort
SELECT ( - 97 ) AS col2
----
-97

query I rowsort
SELECT DISTINCT 73 * + 3
----
219

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL COUNT( * ) * - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL COUNT ( * ) * - 8 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2859
SELECT + NULLIF ( ( 19 ), - - 31 ) + - - 88 + - 20, - 69 DIV - + 56 + + + COUNT( * ) + + MIN( 55 ) * - CAST( + 26 AS SIGNED ) + + 12 AS col0
----
87
-1416

skipif mysql # not compatible
query II rowsort label-2859
SELECT + NULLIF ( ( 19 ), - - 31 ) + - - 88 + - 20, - 69 / - + 56 + + + COUNT ( * ) + + MIN ( 55 ) * - CAST ( + 26 AS INTEGER ) + + 12 AS col0
----
87
-1416

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT + COALESCE ( + MAX( - 89 ), + 37, + + ( 41 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-2860
SELECT + COALESCE ( + MAX ( - 89 ), + 37, + + ( 41 ) )
----
-89

query I rowsort
SELECT DISTINCT 37 * + ( + - 85 )
----
-3145

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT + 66 DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT + 66 / - 83 AS col2
----
0

query I rowsort
SELECT ALL ( 82 ) * 61 + - 33 col1
----
4969

query I rowsort
SELECT DISTINCT 8 * + 57 + 43
----
499

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2865
SELECT + COALESCE ( + 7, + - 87, - 74 DIV + CASE + 39 WHEN - COALESCE ( - 90, + 50, - 6 * + MIN( - 91 ) DIV + MIN( ALL + 65 ) * + 13 ) THEN - - 41 WHEN + ( + 35 ) THEN NULL WHEN + + 25 THEN - 63 WHEN 57 * + CASE 29 WHEN + - 38 THEN + 43 WHEN + - 77 DIV - 66 - + + 3 THEN + + CASE 33 WHEN + 82 + - 5 + - COUNT( * ) * - + 51 THEN NULL WHEN + 36 THEN NULL ELSE ( + 72 ) - - 66 END * 48 ELSE NULL END + 15 * - MAX( - 68 - - COALESCE ( 39, 16 + + 16 * + 64 ) ) THEN 52 + + 58 * COUNT( * ) END + 71 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2865
SELECT + COALESCE ( + 7, + - 87, - 74 / + CASE + 39 WHEN - COALESCE ( - 90, + 50, - 6 * + MIN ( - 91 ) / + MIN ( ALL + 65 ) * + 13 ) THEN - - 41 WHEN + ( + 35 ) THEN NULL WHEN + + 25 THEN - 63 WHEN 57 * + CASE 29 WHEN + - 38 THEN + 43 WHEN + - 77 / - 66 - + + 3 THEN + + CASE 33 WHEN + 82 + - 5 + - COUNT ( * ) * - + 51 THEN NULL WHEN + 36 THEN NULL ELSE ( + 72 ) - - 66 END * 48 ELSE NULL END + 15 * - MAX ( - 68 - - COALESCE ( 39, 16 + + 16 * + 64 ) ) THEN 52 + + 58 * COUNT ( * ) END + 71 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL + MAX( DISTINCT 2 )
----
2

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL + MAX ( DISTINCT 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT + CAST( NULL AS SIGNED ) / - 67 * - + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT + CAST ( NULL AS INTEGER ) / - 67 * - + 4 AS col1
----
NULL

query I rowsort
SELECT - 36 + + 91 * + - 99 AS col2
----
-9045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2869
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * 16 + - COUNT( * ) + COUNT( * ), - 70 * - 2 AS col1
----
-16
140

skipif mysql # not compatible
query II rowsort label-2869
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * 16 + - COUNT ( * ) + COUNT ( * ), - 70 * - 2 AS col1
----
-16
140

query I rowsort
SELECT + 24 + + - 53
----
-29

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT + 13 * MIN( - - 2 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT + 13 * MIN ( - - 2 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2874
SELECT DISTINCT ( - 58 ) DIV + 34 + - NULLIF ( + + 21, SUM( DISTINCT - - 13 ) * + 90 + + 26 + + - CAST( NULL AS SIGNED ) * + + ( - 38 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT ( - 58 ) / + 34 + - NULLIF ( + + 21, SUM ( DISTINCT - - 13 ) * + 90 + + 26 + + - CAST ( NULL AS INTEGER ) * + + ( - 38 ) )
----
-22

query II rowsort
SELECT ALL + 85 * + - 69 + + - 60, 64 AS col2
----
-5925
64

query I rowsort
SELECT ALL 2 * + 69 AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT DISTINCT - 74 * - COUNT( * ) * COALESCE ( - COUNT( * ), 37 - - - CAST( NULL AS SIGNED ) - + 55 ) + - - COUNT( * ) - 69
----
-142

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT - 74 * - COUNT ( * ) * COALESCE ( - COUNT ( * ), 37 - - - CAST ( NULL AS INTEGER ) - + 55 ) + - - COUNT ( * ) - 69
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT ALL + 96 * - 2 * - - CASE + MIN( ALL 44 ) WHEN + + 77 THEN 21 WHEN + AVG ( DISTINCT - 64 ) + + 25 THEN NULL ELSE NULL END AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2878
SELECT ALL + 96 * - 2 * - - CASE + MIN ( ALL 44 ) WHEN + + 77 THEN 21 WHEN + AVG ( DISTINCT - 64 ) + + 25 THEN NULL ELSE NULL END AS col1, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL COALESCE ( 37, + 87, - 20 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT - - COUNT( * ) + + COUNT( * ) * - + 60 * - + SUM( - - 23 )
----
1381

skipif mysql # not compatible
query I rowsort label-2880
SELECT - - COUNT ( * ) + + COUNT ( * ) * - + 60 * - + SUM ( - - 23 )
----
1381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2881
SELECT - 22 * - MIN( - - 23 ) * + CAST( + CASE - COALESCE ( - 0, 23 + 9 + - 41 ) WHEN + 63 THEN - + 66 * - + 79 WHEN + + 67 THEN NULL WHEN + - ( + COUNT( * ) ) THEN - - ( + 95 ) WHEN - - 40 THEN NULL ELSE NULL END AS SIGNED ) + - MAX( - 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT - 22 * - MIN ( - - 23 ) * + CAST ( + CASE - COALESCE ( - 0, 23 + 9 + - 41 ) WHEN + 63 THEN - + 66 * - + 79 WHEN + + 67 THEN NULL WHEN + - ( + COUNT ( * ) ) THEN - - ( + 95 ) WHEN - - 40 THEN NULL ELSE NULL END AS INTEGER ) + - MAX ( - 96 ) AS col1
----
NULL

query I rowsort
SELECT ALL 91 * + 7 AS col2
----
637

query II rowsort
SELECT DISTINCT 75 AS col0, + 17
----
75
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2884
SELECT - 44 + + + CASE COUNT( * ) WHEN - + 32 + + 63 THEN - SUM( 74 ) END + 2 AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2884
SELECT - 44 + + + CASE COUNT ( * ) WHEN - + 32 + + 63 THEN - SUM ( 74 ) END + 2 AS col1, + COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT DISTINCT COALESCE ( + 97, + 10, + 28 * - ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) ) col2
----
97

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT COALESCE ( + 97, + 10, + 28 * - ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) ) col2
----
97

query I rowsort
SELECT - + 74 * + 75 AS col1
----
-5550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2887
SELECT DISTINCT + CAST( + + 33 AS SIGNED ) * + 78, 48 AS col2
----
2574
48

skipif mysql # not compatible
query II rowsort label-2887
SELECT DISTINCT + CAST ( + + 33 AS INTEGER ) * + 78, 48 AS col2
----
2574
48

query I rowsort
SELECT - - 30 - + 11
----
19

query II rowsort
SELECT - 54 AS col2, + 18 - - 42
----
-54
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2890
SELECT ALL + - 85 * + 58 + - COUNT( * ) AS col0, 16 AS col1
----
-4931
16

skipif mysql # not compatible
query II rowsort label-2890
SELECT ALL + - 85 * + 58 + - COUNT ( * ) AS col0, 16 AS col1
----
-4931
16

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

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

query I rowsort
SELECT + 94 + + - 39 AS col2
----
55

query I rowsort
SELECT - NULLIF ( - 37, - 71 / - 19 * + 88 + + 56 * + 82 ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2894
SELECT - - 39 * - + CAST( - COUNT( * ) AS SIGNED ) + 57
----
96

skipif mysql # not compatible
query I rowsort label-2894
SELECT - - 39 * - + CAST ( - COUNT ( * ) AS INTEGER ) + 57
----
96

query I rowsort
SELECT + 7 + + 74
----
81

query I rowsort
SELECT ALL - 15 + + 4 AS col1
----
-11

query I rowsort
SELECT ALL - 88 * + 57
----
-5016

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2898
SELECT + NULLIF ( + - 27, + CAST( - ( COALESCE ( - - 48, 80 * - - NULLIF ( 29, - + 4 ) ) ) AS DECIMAL ) ) * 70 - - + CAST( CASE - - 41 WHEN - + 8 THEN - - 83 ELSE + 25 END AS SIGNED ) AS col2
----
-1865

skipif mysql # not compatible
query I rowsort label-2898
SELECT + NULLIF ( + - 27, + CAST ( - ( COALESCE ( - - 48, 80 * - - NULLIF ( 29, - + 4 ) ) ) AS REAL ) ) * 70 - - + CAST ( CASE - - 41 WHEN - + 8 THEN - - 83 ELSE + 25 END AS INTEGER ) AS col2
----
-1865

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT ALL 61 DIV 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL 61 / 55 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT ALL + 34 DIV - - 5 + + - 92 + + 27 - - 84
----
25

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL + 34 / - - 5 + + - 92 + + 27 - - 84
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT - ( 84 ) * - + AVG ( ALL - 20 ) * + - AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT - ( 84 ) * - + AVG ( ALL - 20 ) * + - AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 60 * ( - ( - 30 ) )
----
1800

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

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

query I rowsort
SELECT + CASE - - ( - + 90 ) WHEN + 67 THEN + 10 WHEN - + 68 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2905
SELECT ALL - 7 / 68 + - CAST( NULL AS SIGNED ) + MAX( 33 ) * 93 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - 7 / 68 + - CAST ( NULL AS INTEGER ) + MAX ( 33 ) * 93 * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT NULLIF ( + 34, + 76 + - + COUNT( * ) * + 1 ) * + 98 * - - 77 * 32 * - 73 col1, 18
----
-599333504
18

skipif mysql # not compatible
query II rowsort label-2906
SELECT NULLIF ( + 34, + 76 + - + COUNT ( * ) * + 1 ) * + 98 * - - 77 * 32 * - 73 col1, 18
----
-599333504
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2907
SELECT DISTINCT - CAST( NULL AS SIGNED ), + 50 - - COUNT( * ) AS col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-2907
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + 50 - - COUNT ( * ) AS col2
----
NULL
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2908
SELECT ( 72 ) + + COUNT( * ) + + COUNT( * ) AS col0, - 17 AS col0
----
74
-17

skipif mysql # not compatible
query II rowsort label-2908
SELECT ( 72 ) + + COUNT ( * ) + + COUNT ( * ) AS col0, - 17 AS col0
----
74
-17

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

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

query I rowsort
SELECT ALL ( + + 17 ) - - - 88 + + 93
----
22

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2912
SELECT ALL - 54 - 86 DIV + 24 - + 39
----
-96

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - 54 - 86 / + 24 - + 39
----
-96

query II rowsort
SELECT DISTINCT - - 96 AS col1, 51
----
96
51

query I rowsort
SELECT + 70 + + + 91 + + 14 * 52 * 80 * + 67 AS col2
----
3902241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2915
SELECT + COUNT( * ) DIV CAST( + - 19 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2915
SELECT + COUNT ( * ) / CAST ( + - 19 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT CAST( + - 55 AS SIGNED ) + + + 31 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2916
SELECT CAST ( + - 55 AS INTEGER ) + + + 31 AS col2
----
-24

query II rowsort
SELECT - 3, - 33 AS col1
----
-3
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT - COUNT( * ) - - 85
----
84

skipif mysql # not compatible
query I rowsort label-2918
SELECT - COUNT ( * ) - - 85
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT + - MIN( ALL - - 31 ) * + 49 * - + 55 + - 22 AS col0
----
83523

skipif mysql # not compatible
query I rowsort label-2919
SELECT + - MIN ( ALL - - 31 ) * + 49 * - + 55 + - 22 AS col0
----
83523

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2921
SELECT ALL + 14 DIV + 8, - CAST( - 30 AS SIGNED ) * - 87 + 29 AS col2
----
1
-2581

skipif mysql # not compatible
query II rowsort label-2921
SELECT ALL + 14 / + 8, - CAST ( - 30 AS INTEGER ) * - 87 + 29 AS col2
----
1
-2581

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT 69 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-2922
SELECT 69 / - 32
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2923
SELECT + 46 + - COUNT( * ), 39 AS col0
----
45
39

skipif mysql # not compatible
query II rowsort label-2923
SELECT + 46 + - COUNT ( * ), 39 AS col0
----
45
39

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

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

query I rowsort
SELECT + 69 - 27 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT 7 + 64 - + 40 + + - COALESCE ( 91, - 28 * - COUNT( * ) ) * + - 34 * + 23 AS col2
----
71193

skipif mysql # not compatible
query I rowsort label-2926
SELECT 7 + 64 - + 40 + + - COALESCE ( 91, - 28 * - COUNT ( * ) ) * + - 34 * + 23 AS col2
----
71193

query II rowsort
SELECT - 83 AS col1, - 72 AS col0
----
-83
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT DISTINCT + CASE + 50 WHEN COUNT( + 33 ) * - 63 * + 6 + - 65 + - + 83 * - 28 THEN - 8 ELSE - 27 * + + 79 END + - CASE - COALESCE ( - + COUNT( * ), + MAX( ALL + 49 ) ) WHEN + 32 * 77 THEN CASE - 76 WHEN - 19 THEN + 65 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT + CASE + 50 WHEN COUNT ( + 33 ) * - 63 * + 6 + - 65 + - + 83 * - 28 THEN - 8 ELSE - 27 * + + 79 END + - CASE - COALESCE ( - + COUNT ( * ), + MAX ( ALL + 49 ) ) WHEN + 32 * 77 THEN CASE - 76 WHEN - 19 THEN + 65 END END AS col2
----
NULL

query I rowsort
SELECT - 35 + 29 * - - 50
----
1415

onlyif mysql # aggregate syntax: 
query II rowsort label-2930
SELECT DISTINCT ( - - 15 ) + + NULLIF ( + 28, + MIN( ALL 54 ) ) + 31, COUNT( * ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-2930
SELECT DISTINCT ( - - 15 ) + + NULLIF ( + 28, + MIN ( ALL 54 ) ) + 31, COUNT ( * ) AS col2
----
74
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT 88 + - 94 - 91 + + ( - - 9 ) DIV + 89 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2931
SELECT 88 + - 94 - 91 + + ( - - 9 ) / + 89 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT - COUNT( - - 87 ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT - COUNT ( - - 87 ) + 15
----
14

query II rowsort
SELECT ALL + 30 + - 30 AS col1, 67 + - 45
----
0
22

onlyif mysql # DIV for integer division: 
query II rowsort label-2934
SELECT DISTINCT - 39 * 74, + 28 + 87 DIV + 11 AS col1
----
-2886
35

skipif mysql # not compatible
query II rowsort label-2934
SELECT DISTINCT - 39 * 74, + 28 + 87 / + 11 AS col1
----
-2886
35

query I rowsort
SELECT DISTINCT + ( 63 ) + - 83
----
-20

query I rowsort
SELECT 84 + 65 + + 77 AS col1
----
226

query I rowsort
SELECT DISTINCT + 85 + - 64 + + 24
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT ALL - 21 * 71 DIV + 91
----
-16

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - 21 * 71 / + 91
----
-16

query I rowsort
SELECT ALL + ( - 74 ) + - - 4
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL - COALESCE ( 27, + 7 * - COUNT( * ) * 58 + - 70, - - 69 * - + COUNT( * ) * - 4 * 58 + - + 76 )
----
-27

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - COALESCE ( 27, + 7 * - COUNT ( * ) * 58 + - 70, - - 69 * - + COUNT ( * ) * - 4 * 58 + - + 76 )
----
-27

query I rowsort
SELECT ALL + 67 - + + 46 col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT DISTINCT 6 DIV - - 34 * - + 10
----
0

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT 6 / - - 34 * - + 10
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT - ( + + 3 ) DIV 94 + + - 70
----
-70

skipif mysql # not compatible
query I rowsort label-2943
SELECT - ( + + 3 ) / 94 + + - 70
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2944
SELECT ALL - COUNT( ALL + 24 ) DIV - 73 + 59 * + 25 + 29 + 25 * - 59 * - + 82 - + 88 * + + COALESCE ( 87, + CAST( NULL AS SIGNED ), + - 69 - - 83 ) + + COUNT( * )
----
114799

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL - COUNT ( ALL + 24 ) / - 73 + 59 * + 25 + 29 + 25 * - 59 * - + 82 - + 88 * + + COALESCE ( 87, + CAST ( NULL AS INTEGER ), + - 69 - - 83 ) + + COUNT ( * )
----
114799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT + - CAST( - - 43 AS SIGNED ) * 75 + 29 AS col0
----
-3196

skipif mysql # not compatible
query I rowsort label-2945
SELECT + - CAST ( - - 43 AS INTEGER ) * 75 + 29 AS col0
----
-3196

query I rowsort
SELECT - 95 * 84 AS col2
----
-7980

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + ( + COUNT ( * ) ) * - + 81 / - 88 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT ALL 9 * + CAST( 52 AS SIGNED )
----
468

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL 9 * + CAST ( 52 AS INTEGER )
----
468

query I rowsort
SELECT ALL - 94 + - + 87 AS col2
----
-181

query I rowsort
SELECT - 53 + - 3 + - 80 * + + 23
----
-1896

query I rowsort
SELECT 32 * - 45
----
-1440

query I rowsort
SELECT - 67 + + 89
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT ALL 36 + - 98 + - CAST( 97 AS SIGNED ) AS col2
----
-159

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL 36 + - 98 + - CAST ( 97 AS INTEGER ) AS col2
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT ALL CASE ( - - COALESCE ( + COALESCE ( 91, 62, - 76 - - + ( - - 23 ), - 63 * - + 73 + + 97 - - - CAST( - + COUNT( * ) AS SIGNED ) ), 65 * + 20 * + 2 + - - 88 + 28 ) ) WHEN - 70 * + - 54 + - + 84 THEN + + CAST( NULL AS SIGNED ) WHEN + + NULLIF ( - + 65, AVG ( DISTINCT - 7 ) * + 23 ) + - 82 THEN + MAX( + - 44 ) ELSE - 97 END + 77
----
-20

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL CASE ( - - COALESCE ( + COALESCE ( 91, 62, - 76 - - + ( - - 23 ), - 63 * - + 73 + + 97 - - - CAST ( - + COUNT ( * ) AS INTEGER ) ), 65 * + 20 * + 2 + - - 88 + 28 ) ) WHEN - 70 * + - 54 + - + 84 THEN + + CAST ( NULL AS INTEGER ) WHEN + + NULLIF ( - + 65, AVG ( DISTINCT - 7 ) * + 23 ) + - 82 THEN + MAX ( + - 44 ) ELSE - 97 END + 77
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL 94 + + MIN( ALL - 29 ) + - + 46
----
19

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL 94 + + MIN ( ALL - 29 ) + - + 46
----
19

query I rowsort
SELECT ALL + + ( 7 ) + - 96 col1
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT ALL COUNT( ALL 92 ) + - 70 AS col0, + COUNT( * ) AS col1
----
-69
1

skipif mysql # not compatible
query II rowsort label-2959
SELECT ALL COUNT ( ALL 92 ) + - 70 AS col0, + COUNT ( * ) AS col1
----
-69
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT DISTINCT 14 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT 14 / 45 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT - ( 20 ) + - 98 + - 37 * - - MAX( 7 ) * + COUNT( * )
----
-377

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - ( 20 ) + - 98 + - 37 * - - MAX ( 7 ) * + COUNT ( * )
----
-377

query II rowsort
SELECT 74 AS col2, - 80 AS col2
----
74
-80

query I rowsort
SELECT 87 + + 9
----
96

query I rowsort
SELECT 23 * - 92
----
-2116

query I rowsort
SELECT 29 + + 47 * + - 87 col1
----
-4060

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT - 53 + - + COUNT( ALL - 59 ) + + 10 * - + 76 AS col1
----
-814

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT - 53 + - + COUNT ( ALL - 59 ) + + 10 * - + 76 AS col1
----
-814

query I rowsort
SELECT ALL + 99 + + 22 * + 51
----
1221

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2970
SELECT ALL - MIN( - 32 ) * COUNT( * ) * + 0 * ( + 27 ) * - - CAST( NULL AS SIGNED ) / + - 90 * + COALESCE ( 78, + 90 ) + + + COUNT( * ) - CAST( + 80 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL - MIN ( - 32 ) * COUNT ( * ) * + 0 * ( + 27 ) * - - CAST ( NULL AS INTEGER ) / + - 90 * + COALESCE ( 78, + 90 ) + + + COUNT ( * ) - CAST ( + 80 AS REAL )
----
NULL

query I rowsort
SELECT + 24 + + 84 AS col1
----
108

query I rowsort
SELECT - 6 - - 37
----
31

query I rowsort
SELECT - 18 * - + 61
----
1098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2974
SELECT - - CAST( - 23 AS SIGNED ) DIV + - 40 DIV + + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT - - CAST ( - 23 AS INTEGER ) / + - 40 / + + COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2975
SELECT + 88 AS col2, - 89 + COUNT( * ) - 76 AS col2
----
88
-164

skipif mysql # not compatible
query II rowsort label-2975
SELECT + 88 AS col2, - 89 + COUNT ( * ) - 76 AS col2
----
88
-164

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT - MIN( ALL + 24 ) * 95 AS col0
----
-2280

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - MIN ( ALL + 24 ) * 95 AS col0
----
-2280

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

skipif mysql # not compatible
query I rowsort label-2978
SELECT + MIN ( + + 11 )
----
11

query II rowsort
SELECT + 89 AS col2, 5
----
89
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2980
SELECT - 81 + - 12 + + COUNT( * ) DIV - + 89 + + 67 * - 50 + + + 87 * COUNT( * ) AS col2
----
-3356

skipif mysql # not compatible
query I rowsort label-2980
SELECT - 81 + - 12 + + COUNT ( * ) / - + 89 + + 67 * - 50 + + + 87 * COUNT ( * ) AS col2
----
-3356

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT - CAST( + CASE + 29 WHEN - - 85 THEN CAST( 49 AS SIGNED ) + + 97 WHEN + 21 * 25 * 59 THEN NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT - CAST ( + CASE + 29 WHEN - - 85 THEN CAST ( 49 AS INTEGER ) + + 97 WHEN + 21 * 25 * 59 THEN NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2983
SELECT - - 47 AS col1, - COUNT( * ) + + + 94 + 87
----
47
180

skipif mysql # not compatible
query II rowsort label-2983
SELECT - - 47 AS col1, - COUNT ( * ) + + + 94 + 87
----
47
180

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

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

query I rowsort
SELECT - - 51 + - + 6 * 76 AS col0
----
-405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2986
SELECT DISTINCT NULLIF ( 91, - - MAX( 72 ) * + 51 + - + NULLIF ( + - COUNT( - CAST( NULL AS SIGNED ) ), + - SUM( DISTINCT - ( - 89 ) ) ) * - + 42 * 17 / 3 ) * + ( + 15 )
----
1365

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT NULLIF ( 91, - - MAX ( 72 ) * + 51 + - + NULLIF ( + - COUNT ( - CAST ( NULL AS INTEGER ) ), + - SUM ( DISTINCT - ( - 89 ) ) ) * - + 42 * 17 / 3 ) * + ( + 15 )
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL + ( 15 ) + + SUM( + - COALESCE ( - 52, 1, 26 ) ) * - + 79 AS col0
----
-4093

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL + ( 15 ) + + SUM ( + - COALESCE ( - 52, 1, 26 ) ) * - + 79 AS col0
----
-4093

query II rowsort
SELECT - + 55, - 47 - 39 + 73 AS col1
----
-55
-13

query I rowsort
SELECT + - 2 + - 35 + + 51 + - - 68 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL COUNT( ALL 28 ) + - + 24 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL COUNT ( ALL 28 ) + - + 24 AS col0
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL COUNT( * ) * + - 39 * ( - 74 ) * - - 56
----
161616

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL COUNT ( * ) * + - 39 * ( - 74 ) * - - 56
----
161616

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

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

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

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

query I rowsort
SELECT + 20 + + 22
----
42

query I rowsort
SELECT + 96 + - 74
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2997
SELECT ALL CAST( + 77 AS SIGNED ) AS col2, - NULLIF ( + NULLIF ( - CASE + + 30 WHEN 23 THEN - AVG ( DISTINCT - 26 ) * + + NULLIF ( - ( COUNT( * ) ), + - 92 * - - 62 * 67 ) + + 39 + - + NULLIF ( 12, - - 7 ) END, + + 56 ), - 70 ) * + - 66
----
77
NULL

skipif mysql # not compatible
query II rowsort label-2997
SELECT ALL CAST ( + 77 AS INTEGER ) AS col2, - NULLIF ( + NULLIF ( - CASE + + 30 WHEN 23 THEN - AVG ( DISTINCT - 26 ) * + + NULLIF ( - ( COUNT ( * ) ), + - 92 * - - 62 * 67 ) + + 39 + - + NULLIF ( 12, - - 7 ) END, + + 56 ), - 70 ) * + - 66
----
77
NULL

query I rowsort
SELECT + 84 + 99 * - 96
----
-9420

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

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

query I rowsort
SELECT + 37 + - 38 * - 30 AS col0
----
1177

onlyif mysql # aggregate syntax: 
query II rowsort label-3001
SELECT ALL + 67 * 89 AS col2, - COUNT( * ) + + 88 * - 47 AS col1
----
5963
-4137

skipif mysql # not compatible
query II rowsort label-3001
SELECT ALL + 67 * 89 AS col2, - COUNT ( * ) + + 88 * - 47 AS col1
----
5963
-4137

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + MAX( + 18 ) * - COUNT( * ) + - 8 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3002
SELECT + MAX ( + 18 ) * - COUNT ( * ) + - 8 AS col2
----
-26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT CAST( + ( + - 11 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-3004
SELECT CAST ( + ( + - 11 ) AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + 47 / CASE + 34 WHEN + 96 + + COALESCE ( + ( + + 18 ), 69, 28 ) * + 75 THEN - - MIN( DISTINCT + NULLIF ( - 59, 90 * + ( + 63 ) * + 20 ) ) WHEN 67 THEN NULL ELSE NULL END + + COALESCE ( + + 4, + - 67 * - 74 - - 39 + + CASE - - 21 WHEN - + 96 THEN + + 68 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT + 47 / CASE + 34 WHEN + 96 + + COALESCE ( + ( + + 18 ), 69, 28 ) * + 75 THEN - - MIN ( DISTINCT + NULLIF ( - 59, 90 * + ( + 63 ) * + 20 ) ) WHEN 67 THEN NULL ELSE NULL END + + COALESCE ( + + 4, + - 67 * - 74 - - 39 + + CASE - - 21 WHEN - + 96 THEN + + 68 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT - 83 + - + CAST( 15 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3006
SELECT - 83 + - + CAST ( 15 AS INTEGER ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL 88 * + 93 * COUNT( * ) * - - ( 37 ) col2
----
302808

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL 88 * + 93 * COUNT ( * ) * - - ( 37 ) col2
----
302808

onlyif mysql # aggregate syntax: 
query II rowsort label-3008
SELECT + 94 * + 93 * - - MIN( + 89 ) AS col0, + MAX( - 24 ) * + 89 * + 7 AS col1
----
778038
-14952

skipif mysql # not compatible
query II rowsort label-3008
SELECT + 94 * + 93 * - - MIN ( + 89 ) AS col0, + MAX ( - 24 ) * + 89 * + 7 AS col1
----
778038
-14952

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - COUNT( * ) * - 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3009
SELECT - COUNT ( * ) * - 71 AS col1
----
71

query II rowsort
SELECT + 12 + 27 AS col0, 9 AS col2
----
39
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3012
SELECT + 34 DIV 53 + - NULLIF ( - 52, - 24 + + - CAST( NULL AS SIGNED ) DIV + COALESCE ( - + 65, - 86, - 8 * 57, + - 13 - - 42 * - 70 DIV - - MAX( - - ( + CAST( - + 33 AS DECIMAL ) ) ) * + 62 ) ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-3012
SELECT + 34 / 53 + - NULLIF ( - 52, - 24 + + - CAST ( NULL AS INTEGER ) / + COALESCE ( - + 65, - 86, - 8 * 57, + - 13 - - 42 * - 70 / - - MAX ( - - ( + CAST ( - + 33 AS REAL ) ) ) * + 62 ) ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT ALL 38 DIV - COALESCE ( COUNT( * ), COUNT( * ) + - 97 ) + 54
----
16

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL 38 / - COALESCE ( COUNT ( * ), COUNT ( * ) + - 97 ) + 54
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + + 47 * ( - + 59 ) - + ( + MAX( - 34 ) ) AS col1
----
-2739

skipif mysql # not compatible
query I rowsort label-3014
SELECT + + 47 * ( - + 59 ) - + ( + MAX ( - 34 ) ) AS col1
----
-2739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT ALL COUNT( * ) * + MAX( DISTINCT + 87 ) - - COUNT( * ) + + 42 * - 86 * + COUNT( * ) * - + 31 + - 31 + + CASE 60 WHEN - 73 * 71 THEN NULL ELSE + 12 END - COALESCE ( - 33, - - ( + CAST( NULL AS SIGNED ) ) - - ( + 15 ), - 99 * + 65 + - 58 ) AS col2
----
112074

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + 87 ) - - COUNT ( * ) + + 42 * - 86 * + COUNT ( * ) * - + 31 + - 31 + + CASE 60 WHEN - 73 * 71 THEN NULL ELSE + 12 END - COALESCE ( - 33, - - ( + CAST ( NULL AS INTEGER ) ) - - ( + 15 ), - 99 * + 65 + - 58 ) AS col2
----
112074

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT 66 * - ( + 25 ) + - + COUNT( * ) AS col2
----
-1651

skipif mysql # not compatible
query I rowsort label-3016
SELECT 66 * - ( + 25 ) + - + COUNT ( * ) AS col2
----
-1651

query I rowsort
SELECT DISTINCT + + 76 * + 72
----
5472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT + MAX( + - 84 ) * COUNT( * ) + - NULLIF ( - 79, - 12 * - 64 )
----
-5

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + MAX ( + - 84 ) * COUNT ( * ) + - NULLIF ( - 79, - 12 * - 64 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT - - 14 * - 16 * COALESCE ( + 54, - + COUNT( * ), - - COUNT( * ) + + - 17 )
----
-12096

skipif mysql # not compatible
query I rowsort label-3020
SELECT - - 14 * - 16 * COALESCE ( + 54, - + COUNT ( * ), - - COUNT ( * ) + + - 17 )
----
-12096

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - + COALESCE ( - 95, - CASE COUNT( * ) WHEN 22 THEN 12 END ) * - 28
----
-2660

skipif mysql # not compatible
query I rowsort label-3021
SELECT - + COALESCE ( - 95, - CASE COUNT ( * ) WHEN 22 THEN 12 END ) * - 28
----
-2660

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3023
SELECT ALL CASE - 30 WHEN ( + 69 ) THEN NULL WHEN 52 THEN + - CAST( + + 16 AS SIGNED ) * + MIN( ALL ( + + 98 ) ) + - 11 ELSE - 55 * - + 67 / + 48 * 20 - - + 80 + 26 END * 95 + - CAST( NULL AS SIGNED ) - + - 64 / - NULLIF ( + MAX( ALL 7 ), 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL CASE - 30 WHEN ( + 69 ) THEN NULL WHEN 52 THEN + - CAST ( + + 16 AS INTEGER ) * + MIN ( ALL ( + + 98 ) ) + - 11 ELSE - 55 * - + 67 / + 48 * 20 - - + 80 + 26 END * 95 + - CAST ( NULL AS INTEGER ) - + - 64 / - NULLIF ( + MAX ( ALL 7 ), 18 ) AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( - + 59 ) * - - 25
----
-1475

query I rowsort
SELECT ALL 49 - - - 86 + - - 4 + - + 93 * - 44
----
4059

query I rowsort
SELECT ALL + 9 * 4
----
36

query I rowsort
SELECT 12 + - + 4 + + 78 + + 97 + - 30 + + 77 + - CASE + 83 WHEN + 80 THEN + 25 + 22 ELSE NULL END / 90 * + + 51 * + 19 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 13 ) * + 63 + + 96 - + 12
----
903

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3030
SELECT ALL 6 + + + COUNT( * ) - - - CAST( - 67 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL 6 + + + COUNT ( * ) - - - CAST ( - 67 AS INTEGER )
----
74

query I rowsort
SELECT 47 - + 15 * + 4 + - 93 AS col2
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT DISTINCT 41 + - - 35 + - 21 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT 41 + - - 35 + - 21 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL + 56 + - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + 56 + - COUNT ( * ) AS col0
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + NULLIF ( + COUNT( 59 ), + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3035
SELECT + NULLIF ( + COUNT ( 59 ), + 12 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT 92 DIV 43 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3036
SELECT 92 / 43 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT - 6 DIV + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3037
SELECT - 6 / + 28 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT ALL + CAST( NULL AS SIGNED ) * 71 / - 95 + - 21 * - - 86 * + + AVG ( ALL 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL + CAST ( NULL AS INTEGER ) * 71 / - 95 + - 21 * - - 86 * + + AVG ( ALL 35 ) AS col0
----
NULL

query I rowsort
SELECT 82 * 78
----
6396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT + + CAST( - 58 AS SIGNED ) * + 98 - - 93 AS col0
----
-5591

skipif mysql # not compatible
query I rowsort label-3040
SELECT + + CAST ( - 58 AS INTEGER ) * + 98 - - 93 AS col0
----
-5591

query I rowsort
SELECT ALL + 4 + - 23 col2
----
-19

query I rowsort
SELECT 61 * - 92 * - 67 AS col2
----
376004

query I rowsort
SELECT DISTINCT + 13 * - - 92 * NULLIF ( 49, - 51 )
----
58604

query I rowsort
SELECT ALL - NULLIF ( 25, + + 58 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + COALESCE ( - + MIN( + 67 ), - 99 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3045
SELECT + COALESCE ( - + MIN ( + 67 ), - 99 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT + COUNT( * ) * 0 + + - 24 + - 86 * - 3 AS col0
----
234

skipif mysql # not compatible
query I rowsort label-3046
SELECT + COUNT ( * ) * 0 + + - 24 + - 86 * - 3 AS col0
----
234

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

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

query I rowsort
SELECT ALL - 88 - - 20 AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT + 79 + + 24 - 49 DIV 78
----
103

skipif mysql # not compatible
query I rowsort label-3049
SELECT + 79 + + 24 - 49 / 78
----
103

query I rowsort
SELECT DISTINCT + 94 * + 16 AS col2
----
1504

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT DISTINCT NULLIF ( - + 25, - + 16 ) DIV - - NULLIF ( + 43, 78 * - 44 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT NULLIF ( - + 25, - + 16 ) / - - NULLIF ( + 43, 78 * - 44 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3052
SELECT 22 + 86 + - ( - 15 ) + + - ( - ( + CAST( 90 AS SIGNED ) ) )
----
213

skipif mysql # not compatible
query I rowsort label-3052
SELECT 22 + 86 + - ( - 15 ) + + - ( - ( + CAST ( 90 AS INTEGER ) ) )
----
213

query II rowsort
SELECT ALL 6 AS col2, + 35 AS col1
----
6
35

query I rowsort
SELECT 28 * - 9
----
-252

query I rowsort
SELECT 41 + + 97 AS col1
----
138

query II rowsort
SELECT ALL 14 AS col2, 37 AS col1
----
14
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT 18 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3057
SELECT 18 / + 89 AS col1
----
0

query II rowsort
SELECT 8 AS col2, - 22 AS col0
----
8
-22

query II rowsort
SELECT ALL 71 AS col0, + 39 + + 38 AS col1
----
71
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT 31 DIV - ( + 63 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3061
SELECT 31 / - ( + 63 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT 67 + + ( + + COUNT( * ) ) * - 70 * + 83
----
-5743

skipif mysql # not compatible
query I rowsort label-3062
SELECT 67 + + ( + + COUNT ( * ) ) * - 70 * + 83
----
-5743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3063
SELECT 22, - COALESCE ( MAX( DISTINCT - CAST( - 59 AS SIGNED ) ), + + 20, 38, 43 + + 11 - - - 65 ) col0
----
22
-59

skipif mysql # not compatible
query II rowsort label-3063
SELECT 22, - COALESCE ( MAX ( DISTINCT - CAST ( - 59 AS INTEGER ) ), + + 20, 38, 43 + + 11 - - - 65 ) col0
----
22
-59

query I rowsort
SELECT ALL - 32 + + 26
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT ALL + 77 + + - CAST( NULL AS SIGNED ) + + ( 45 ) * 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + 77 + + - CAST ( NULL AS INTEGER ) + + ( 45 ) * 57 AS col1
----
NULL

query I rowsort
SELECT 47 + + ( + 26 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3067
SELECT ALL 82 AS col1, 39, COUNT( * ) + - + ( + 1 ) + + + 87 DIV 67 * - MIN( 43 ) * - + 85 AS col1
----
82
39
3655

skipif mysql # not compatible
query III rowsort label-3067
SELECT ALL 82 AS col1, 39, COUNT ( * ) + - + ( + 1 ) + + + 87 / 67 * - MIN ( 43 ) * - + 85 AS col1
----
82
39
3655

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3069
SELECT ALL COUNT( * ) * + 58 DIV ( - 93 ) AS col2, 88
----
0
88

skipif mysql # not compatible
query II rowsort label-3069
SELECT ALL COUNT ( * ) * + 58 / ( - 93 ) AS col2, 88
----
0
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT 14 + + SUM( + 84 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3070
SELECT 14 + + SUM ( + 84 ) AS col2
----
98

query I rowsort
SELECT - ( + ( 86 ) ) col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT - SUM( ALL - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-3072
SELECT - SUM ( ALL - 87 )
----
87

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

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

query II rowsort
SELECT + 79 AS col2, 74
----
79
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT 84 + - 3 AS col0, MAX( ALL - ( - 24 ) ) + - 42 col1
----
81
-18

skipif mysql # not compatible
query II rowsort label-3075
SELECT 84 + - 3 AS col0, MAX ( ALL - ( - 24 ) ) + - 42 col1
----
81
-18

query I rowsort
SELECT DISTINCT 54 * 32 + + 32 * - + 16 AS col0
----
1216

query II rowsort
SELECT ALL - 32, 62 AS col1
----
-32
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT COALESCE ( 60, 2 ) * - COALESCE ( - + COUNT( * ), - 45 * + + 66 )
----
60

skipif mysql # not compatible
query I rowsort label-3079
SELECT COALESCE ( 60, 2 ) * - COALESCE ( - + COUNT ( * ), - 45 * + + 66 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3080
SELECT DISTINCT - + CAST( - 87 AS SIGNED ) col0, 61 * + + 74
----
87
4514

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT - + CAST ( - 87 AS INTEGER ) col0, 61 * + + 74
----
87
4514

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT DISTINCT 76 * + + COALESCE ( + + ( + 47 ), + COUNT( * ), 68 * 73 ) + - 93 + 28 - + - CASE 77 WHEN - 99 THEN NULL ELSE 90 END
----
3597

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT 76 * + + COALESCE ( + + ( + 47 ), + COUNT ( * ), 68 * 73 ) + - 93 + 28 - + - CASE 77 WHEN - 99 THEN NULL ELSE 90 END
----
3597

query II rowsort
SELECT + 36 AS col2, + 54
----
36
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT ALL CASE - 45 WHEN - 21 + + + COALESCE ( - COUNT( * ), - 7, 53 + - - 77 * 41 ) THEN + COUNT( * ) WHEN - 77 THEN NULL WHEN - - 28 THEN - 0 END * MIN( ALL + 40 ) * - AVG ( ALL 93 ) + + 27 + - + 86 + + COUNT( * ) / 72 - + 22 AS col1, + 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-3083
SELECT ALL CASE - 45 WHEN - 21 + + + COALESCE ( - COUNT ( * ), - 7, 53 + - - 77 * 41 ) THEN + COUNT ( * ) WHEN - 77 THEN NULL WHEN - - 28 THEN - 0 END * MIN ( ALL + 40 ) * - AVG ( ALL 93 ) + + 27 + - + 86 + + COUNT ( * ) / 72 - + 22 AS col1, + 93
----
NULL
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT - 0 * + + 10 + + 78 + - CAST( NULL AS SIGNED ) + ( - + COALESCE ( - - MAX( + 3 ), - 11 * - 27 ) ) * - COUNT( ALL 74 ) + + 10 + - 18 / - 15 + + + 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT - 0 * + + 10 + + 78 + - CAST ( NULL AS INTEGER ) + ( - + COALESCE ( - - MAX ( + 3 ), - 11 * - 27 ) ) * - COUNT ( ALL 74 ) + + 10 + - 18 / - 15 + + + 59 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3086
SELECT + 77 * - COUNT ( * ) + - - 11 AS col1
----
-66

query I rowsort
SELECT ALL + 68 * 28
----
1904

query I rowsort
SELECT + 37 * 65 AS col1
----
2405

query I rowsort
SELECT + NULLIF ( + 84, - 57 ) AS col0
----
84

query I rowsort
SELECT + 2 * 33 * 96
----
6336

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

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

query I rowsort
SELECT + 71 * - 42 AS col2
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT - 89 + - - NULLIF ( - + 18, + AVG ( DISTINCT 97 ) * + COUNT( * ) * + - COUNT( * ) - COUNT( DISTINCT - - 67 ) ) col0
----
-107

skipif mysql # not compatible
query I rowsort label-3093
SELECT - 89 + - - NULLIF ( - + 18, + AVG ( DISTINCT 97 ) * + COUNT ( * ) * + - COUNT ( * ) - COUNT ( DISTINCT - - 67 ) ) col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL CASE 81 WHEN + 97 THEN COUNT( * ) WHEN + ( + 55 ) * - 91 THEN 79 + 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL CASE 81 WHEN + 97 THEN COUNT ( * ) WHEN + ( + 55 ) * - 91 THEN 79 + 17 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 68, 15 ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT - 24 DIV + - 64 col2
----
0

skipif mysql # not compatible
query I rowsort label-3096
SELECT - 24 / + - 64 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3097
SELECT + 53 DIV COALESCE ( ( 99 ), + COUNT( * ) ) DIV 46 * - + 82
----
0

skipif mysql # not compatible
query I rowsort label-3097
SELECT + 53 / COALESCE ( ( 99 ), + COUNT ( * ) ) / 46 * - + 82
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - - NULLIF ( 11, - AVG ( - - 32 ) * 14 + 14 ) + - - 21 + + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3099
SELECT - - NULLIF ( 11, - AVG ( - - 32 ) * 14 + 14 ) + - - 21 + + COUNT ( * ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-3100
SELECT - + 59 * 80 DIV - - 54, + 0 AS col0
----
-87
0

skipif mysql # not compatible
query II rowsort label-3100
SELECT - + 59 * 80 / - - 54, + 0 AS col0
----
-87
0

query I rowsort
SELECT - + 54 + + + 22
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT ALL + COUNT( * ) + + MAX( DISTINCT - - 17 )
----
18

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL + COUNT ( * ) + + MAX ( DISTINCT - - 17 )
----
18

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

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

query I rowsort
SELECT - - 35 + - 77 AS col2
----
-42

query II rowsort
SELECT ALL + 24 * + + 98 col1, + 85
----
2352
85

query I rowsort
SELECT DISTINCT + + 3 col2
----
3

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

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

query I rowsort
SELECT + 81 * - + 15 + - 25 * + 51 + + 28 * - 30
----
-3330

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

skipif mysql # not compatible
query I rowsort label-3109
SELECT - MAX ( - ( - + 48 ) )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT CAST( - CASE + - 49 WHEN ( - 98 ) THEN - 29 + 13 WHEN 52 + + 5 THEN + - 4 WHEN 79 * + 74 + + + 36 - + 56 THEN + 64 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT CAST ( - CASE + - 49 WHEN ( - 98 ) THEN - 29 + 13 WHEN 52 + + 5 THEN + - 4 WHEN 79 * + 74 + + + 36 - + 56 THEN + 64 END AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - + 8 * + + 83 AS col0, 50 AS col0
----
-664
50

query I rowsort
SELECT ALL - 3 * - 64 AS col0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT MIN( + 61 ) * - + 22 * + 74 + + - 52 - 9
----
-99369

skipif mysql # not compatible
query I rowsort label-3113
SELECT MIN ( + 61 ) * - + 22 * + 74 + + - 52 - 9
----
-99369

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT COALESCE ( + - 75, + - COUNT( * ), - 39 + - - 41 + + 16 + - + COUNT( * ) * + - 16 * COUNT( * ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3114
SELECT COALESCE ( + - 75, + - COUNT ( * ), - 39 + - - 41 + + 16 + - + COUNT ( * ) * + - 16 * COUNT ( * ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT CASE + COUNT( * ) WHEN - - SUM( - 60 ) * - 15 + 69 THEN 61 * COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3115
SELECT CASE + COUNT ( * ) WHEN - - SUM ( - 60 ) * - 15 + 69 THEN 61 * COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT 77 * + 38 + + - COUNT( * ) AS col0
----
2925

skipif mysql # not compatible
query I rowsort label-3116
SELECT 77 * + 38 + + - COUNT ( * ) AS col0
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL + 39 * + NULLIF ( 99, 14 + + COUNT( DISTINCT + 35 ) + - ( + 22 ) ) + - + 97 * + 46 col2
----
-601

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL + 39 * + NULLIF ( 99, 14 + + COUNT ( DISTINCT + 35 ) + - ( + 22 ) ) + - + 97 * + 46 col2
----
-601

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT CASE + COUNT( * ) WHEN - 31 + + 7 * - 25 THEN NULL ELSE - 96 * - 7 END AS col2
----
672

skipif mysql # not compatible
query I rowsort label-3118
SELECT CASE + COUNT ( * ) WHEN - 31 + + 7 * - 25 THEN NULL ELSE - 96 * - 7 END AS col2
----
672

query I rowsort
SELECT + 78 + 48 + - - 74
----
200

query I rowsort
SELECT + 84 * 59 AS col0
----
4956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3121
SELECT ALL ( + - 92 ) * + ( NULLIF ( + COUNT( * ), 22 ) ) + - 37 + - COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) + - 79 * - 53 / 86
----
-130
NULL

skipif mysql # not compatible
query II rowsort label-3121
SELECT ALL ( + - 92 ) * + ( NULLIF ( + COUNT ( * ), 22 ) ) + - 37 + - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) + - 79 * - 53 / 86
----
-130
NULL

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

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL 18 * + CAST ( - - ( + 76 ) AS INTEGER ) + - + 76 / + CAST ( NULL AS INTEGER ) * - - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT COUNT( ALL 23 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3123
SELECT COUNT ( ALL 23 ) col1
----
1

query II rowsort
SELECT + 12 * - 16 * + 12 col1, + 50
----
-2304
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT MAX( DISTINCT + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT MAX ( DISTINCT + 2 ) AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3126
SELECT - CAST( - + 60 AS SIGNED ) + ( + + MAX( + + 74 ) ) col0
----
134

skipif mysql # not compatible
query I rowsort label-3126
SELECT - CAST ( - + 60 AS INTEGER ) + ( + + MAX ( + + 74 ) ) col0
----
134

query II rowsort
SELECT - 92 AS col2, NULLIF ( - 95, 43 - - COALESCE ( - 58, 20 + - 38 ) )
----
-92
-95

query I rowsort
SELECT - + 25 + 27 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL + 19 - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL + 19 - COUNT ( * )
----
18

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

query I rowsort
SELECT DISTINCT + 86 * + + 23 AS col1
----
1978

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT DISTINCT + 75 DIV + 1 col1
----
75

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT + 75 / + 1 col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3133
SELECT - 52 * COUNT( * ) * 69, - 81 + - 23 col1
----
-3588
-104

skipif mysql # not compatible
query II rowsort label-3133
SELECT - 52 * COUNT ( * ) * 69, - 81 + - 23 col1
----
-3588
-104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3134
SELECT ALL 53 AS col1, + CAST( NULL AS SIGNED ) + - - 46 * - 85
----
53
NULL

skipif mysql # not compatible
query II rowsort label-3134
SELECT ALL 53 AS col1, + CAST ( NULL AS INTEGER ) + - - 46 * - 85
----
53
NULL

query II rowsort
SELECT - 64, + 4 * + + 73 * - 93 AS col1
----
-64
-27156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3136
SELECT + + 62 + - ( - COALESCE ( - 27, + 42 DIV - 33 + SUM( DISTINCT + 60 ) ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3136
SELECT + + 62 + - ( - COALESCE ( - 27, + 42 / - 33 + SUM ( DISTINCT + 60 ) ) ) AS col1
----
35

query I rowsort
SELECT - - ( + + 42 ) - 2 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL NULLIF ( - COUNT( * ), 73 + - 7 + + + 56 + MAX( DISTINCT - + 9 ) * - 13 + 65 + - 36 + + ( - + 37 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL NULLIF ( - COUNT ( * ), 73 + - 7 + + + 56 + MAX ( DISTINCT - + 9 ) * - 13 + 65 + - 36 + + ( - + 37 ) ) AS col1
----
-1

query I rowsort
SELECT COALESCE ( - 18, - 94 * - + 0, + 84, - - 17 * - 17 ) * - 71 AS col1
----
1278

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

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

query I rowsort
SELECT - 41 + - 91 AS col2
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3142
SELECT - ( 57 ) DIV COUNT( * ) + - COUNT( * ) - + COUNT( * ) + + COALESCE ( 81, - 3 - - CAST( NULL AS SIGNED ) DIV - 93 )
----
22

skipif mysql # not compatible
query I rowsort label-3142
SELECT - ( 57 ) / COUNT ( * ) + - COUNT ( * ) - + COUNT ( * ) + + COALESCE ( 81, - 3 - - CAST ( NULL AS INTEGER ) / - 93 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT 12 * COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3143
SELECT 12 * COUNT ( * ) AS col0
----
12

query I rowsort
SELECT + ( + + 42 ) * + - 71 + - 97 * - - 69 AS col1
----
-9675

query I rowsort
SELECT ALL + 45 + - 34
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT 38 * - ( - ( + + SUM( 34 ) ) ) * + ( + COALESCE ( - 58, + 61 ) ) * + 25 AS col2, + 9 AS col1
----
-1873400
9

skipif mysql # not compatible
query II rowsort label-3146
SELECT 38 * - ( - ( + + SUM ( 34 ) ) ) * + ( + COALESCE ( - 58, + 61 ) ) * + 25 AS col2, + 9 AS col1
----
-1873400
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3147
SELECT 37 - + 41 + COALESCE ( - COALESCE ( 86, + 37 DIV - 27 ), + + 98 * + 44 * 18 + 9 ) + - SUM( DISTINCT + 95 ) * - - SUM( + ( + 86 ) )
----
-8260

skipif mysql # not compatible
query I rowsort label-3147
SELECT 37 - + 41 + COALESCE ( - COALESCE ( 86, + 37 / - 27 ), + + 98 * + 44 * 18 + 9 ) + - SUM ( DISTINCT + 95 ) * - - SUM ( + ( + 86 ) )
----
-8260

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT 47 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-3148
SELECT 47 / - 42
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT CASE - - ( + SUM( DISTINCT 20 ) ) WHEN COUNT( * ) - - 39 + + - 12 * - - 34 * 6 * COUNT( * ) + COUNT( * ) THEN NULL WHEN - - CASE - + 58 WHEN + 82 + + 56 + + - 12 / - + CAST( NULL AS SIGNED ) THEN + 89 + - 1 * + 71 ELSE + 62 * - 75 END - - COALESCE ( - MAX( - - 88 ), 85 * - 70 - COUNT( + + 59 ), - - MIN( - 91 ) / - AVG ( DISTINCT - - 5 ) ) * + + 18 THEN + ( COUNT( * ) ) - + 42 * - 41 + + NULLIF ( - - 72, + 46 / + 97 * + - CAST( NULL AS SIGNED ) ) + + + 92 ELSE 56 END * 47 col0
----
2632

skipif mysql # not compatible
query I rowsort label-3149
SELECT CASE - - ( + SUM ( DISTINCT 20 ) ) WHEN COUNT ( * ) - - 39 + + - 12 * - - 34 * 6 * COUNT ( * ) + COUNT ( * ) THEN NULL WHEN - - CASE - + 58 WHEN + 82 + + 56 + + - 12 / - + CAST ( NULL AS INTEGER ) THEN + 89 + - 1 * + 71 ELSE + 62 * - 75 END - - COALESCE ( - MAX ( - - 88 ), 85 * - 70 - COUNT ( + + 59 ), - - MIN ( - 91 ) / - AVG ( DISTINCT - - 5 ) ) * + + 18 THEN + ( COUNT ( * ) ) - + 42 * - 41 + + NULLIF ( - - 72, + 46 / + 97 * + - CAST ( NULL AS INTEGER ) ) + + + 92 ELSE 56 END * 47 col0
----
2632

onlyif mysql # aggregate syntax: 
query II rowsort label-3150
SELECT MAX( ALL + 67 ) * - 23 * 60 AS col2, 29 AS col2
----
-92460
29

skipif mysql # not compatible
query II rowsort label-3150
SELECT MAX ( ALL + 67 ) * - 23 * 60 AS col2, 29 AS col2
----
-92460
29

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3152
SELECT CASE - 90 WHEN + + 54 + + 70 THEN - + 94 WHEN - COALESCE ( - + CASE 24 WHEN - 72 * 39 * - - COUNT( * ) + COUNT( * ) + 8 THEN - - 4 * - - 7 + + COUNT( * ) + + COUNT( * ) + - COUNT( * ) * 77 * - - 47 * - 27 * + 58 - + 8 + + + 48 + 14 ELSE NULL END, + + 6 * 13 + 92 ) THEN NULL ELSE - 83 END DIV - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3152
SELECT CASE - 90 WHEN + + 54 + + 70 THEN - + 94 WHEN - COALESCE ( - + CASE 24 WHEN - 72 * 39 * - - COUNT ( * ) + COUNT ( * ) + 8 THEN - - 4 * - - 7 + + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) * 77 * - - 47 * - 27 * + 58 - + 8 + + + 48 + 14 ELSE NULL END, + + 6 * 13 + 92 ) THEN NULL ELSE - 83 END / - COUNT ( * ) AS col1
----
83

query I rowsort
SELECT ALL + 11 * + 81
----
891

query I rowsort
SELECT - 14 - - - 12 * + 47 - - - 16 col2
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3155
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 2 * 76 + - 27 + + 71 + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 2 * 76 + - 27 + + 71 + + 26 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT + 80 + + CAST( - 76 AS SIGNED ) col1
----
4

skipif mysql # not compatible
query I rowsort label-3156
SELECT + 80 + + CAST ( - 76 AS INTEGER ) col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT 28 * - + 36 * + 56 / - + NULLIF ( CAST( NULL AS SIGNED ), - - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT 28 * - + 36 * + 56 / - + NULLIF ( CAST ( NULL AS INTEGER ), - - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - 73 + ( - COUNT( - - 18 ) ) + - 16 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3158
SELECT - 73 + ( - COUNT ( - - 18 ) ) + - 16 AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3159
SELECT 51 * - + 56 * 20 * 87 AS col1, COUNT( * ) - CAST( + + CASE ( 98 ) WHEN 37 * 52 THEN 38 ELSE 0 END AS SIGNED ) - - - 71
----
-4969440
-70

skipif mysql # not compatible
query II rowsort label-3159
SELECT 51 * - + 56 * 20 * 87 AS col1, COUNT ( * ) - CAST ( + + CASE ( 98 ) WHEN 37 * 52 THEN 38 ELSE 0 END AS INTEGER ) - - - 71
----
-4969440
-70

query II rowsort
SELECT DISTINCT - 3 + + - ( + 75 ) + - - 26 AS col0, + 16
----
-52
16

query I rowsort
SELECT COALESCE ( + - 78, 56, - 57 + - 12, 19 ) * + 13 col0
----
-1014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL - 69 + ( - 72 ) * - - 58 * CAST( + 21 AS SIGNED ) col2
----
-87765

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL - 69 + ( - 72 ) * - - 58 * CAST ( + 21 AS INTEGER ) col2
----
-87765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT + 84 DIV - 44 - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3163
SELECT + 84 / - 44 - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT COUNT( * ) * + - COUNT( 38 ) * + 50 + + - 67 + + 87 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT COUNT ( * ) * + - COUNT ( 38 ) * + 50 + + - 67 + + 87 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL - COUNT( * ) + - 48 - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - COUNT ( * ) + - 48 - COUNT ( * )
----
-50

query I rowsort
SELECT 10 * - 93
----
-930

query I rowsort
SELECT - 89 * 17
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT COUNT( * ) * 68 * - 4 AS col2
----
-272

skipif mysql # not compatible
query I rowsort label-3168
SELECT COUNT ( * ) * 68 * - 4 AS col2
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + MAX( DISTINCT 88 ) col2
----
88

skipif mysql # not compatible
query I rowsort label-3169
SELECT + MAX ( DISTINCT 88 ) col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3170
SELECT COUNT( ALL 95 ) DIV - + 42 AS col1, - 56 AS col1
----
0
-56

skipif mysql # not compatible
query II rowsort label-3170
SELECT COUNT ( ALL 95 ) / - + 42 AS col1, - 56 AS col1
----
0
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT - 4 DIV + + 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - 4 / + + 12 AS col0
----
0

query I rowsort
SELECT DISTINCT 19 + - 13
----
6

query I rowsort
SELECT DISTINCT + 32 + - 38 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3174
SELECT 23 AS col2, + ( 99 ) * - COALESCE ( - 85, - 22 * 23 * COUNT( * ) + SUM( + - 40 ) )
----
23
8415

skipif mysql # not compatible
query II rowsort label-3174
SELECT 23 AS col2, + ( 99 ) * - COALESCE ( - 85, - 22 * 23 * COUNT ( * ) + SUM ( + - 40 ) )
----
23
8415

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - 85 * + 69 + 57 + - COUNT( - 46 ) + - 78
----
-5887

skipif mysql # not compatible
query I rowsort label-3175
SELECT - 85 * + 69 + 57 + - COUNT ( - 46 ) + - 78
----
-5887

query I rowsort
SELECT 73 * 96 AS col2
----
7008

query I rowsort
SELECT DISTINCT + 42 * 55 AS col1
----
2310

query I rowsort
SELECT 47 + + 80
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT 14 * CASE - 77 WHEN 57 THEN + NULLIF ( - + SUM( ALL - 35 ), COALESCE ( + 17, - + 38 ) - + 94 + + 55 / - COALESCE ( - - 8, - 34 * + - 60 + MIN( ALL - 3 ), 69 - - 35 ) * + + 60 ) END - - 24 - + + 37 * - - 96 * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT 14 * CASE - 77 WHEN 57 THEN + NULLIF ( - + SUM ( ALL - 35 ), COALESCE ( + 17, - + 38 ) - + 94 + + 55 / - COALESCE ( - - 8, - 34 * + - 60 + MIN ( ALL - 3 ), 69 - - 35 ) * + + 60 ) END - - 24 - + + 37 * - - 96 * + 60
----
NULL

query I rowsort
SELECT ALL + 15 - 76 AS col2
----
-61

query I rowsort
SELECT 63 * 30 * + + 12
----
22680

query I rowsort
SELECT 72 + 34
----
106

query I rowsort
SELECT ALL + 24 * + 66 col2
----
1584

onlyif mysql # aggregate syntax: 
query II rowsort label-3184
SELECT + COUNT( * ) * + 81 + 31, - 58 AS col2
----
112
-58

skipif mysql # not compatible
query II rowsort label-3184
SELECT + COUNT ( * ) * + 81 + 31, - 58 AS col2
----
112
-58

query I rowsort
SELECT ALL + 15 * + - 82
----
-1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3186
SELECT SUM( + 48 ) * - 3 + - 73 + - ( + ( COUNT( * ) ) ) DIV - - 76 * + ( - CAST( 17 AS SIGNED ) ) - - 0 DIV - - 67 * 70 * + 66 + + - 11 DIV + 79
----
-217

skipif mysql # not compatible
query I rowsort label-3186
SELECT SUM ( + 48 ) * - 3 + - 73 + - ( + ( COUNT ( * ) ) ) / - - 76 * + ( - CAST ( 17 AS INTEGER ) ) - - 0 / - - 67 * 70 * + 66 + + - 11 / + 79
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT + 12 + + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3187
SELECT + 12 + + COUNT ( * ) AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT ALL - - 33 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - - 33 / - 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - 74 + + - ( - + 60 ) + - COUNT( * ) + - - 89 + - 55
----
19

skipif mysql # not compatible
query I rowsort label-3189
SELECT - 74 + + - ( - + 60 ) + - COUNT ( * ) + - - 89 + - 55
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3190
SELECT - 71 AS col0, ( + 62 ) * + CAST( + + 95 AS SIGNED ) * - + 30 * - + 96
----
-71
16963200

skipif mysql # not compatible
query II rowsort label-3190
SELECT - 71 AS col0, ( + 62 ) * + CAST ( + + 95 AS INTEGER ) * - + 30 * - + 96
----
-71
16963200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT + CAST( + 78 AS SIGNED ) + - 65 + 48
----
61

skipif mysql # not compatible
query I rowsort label-3191
SELECT + CAST ( + 78 AS INTEGER ) + - 65 + 48
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL COUNT( * ) * + - 27 - 16 * - 3
----
21

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL COUNT ( * ) * + - 27 - 16 * - 3
----
21

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

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

query I rowsort
SELECT ALL + 6 + - 42 * 78 AS col2
----
-3270

query II rowsort
SELECT - + 22, 89 AS col2
----
-22
89

query I rowsort
SELECT ALL + 84 + - + 59
----
25

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

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

query I rowsort
SELECT - 90 + ( + 21 ) AS col1
----
-69

query I rowsort
SELECT + 73 - - + 51 AS col2
----
124

query I rowsort
SELECT - + 37 col0
----
-37

query I rowsort
SELECT + 86 + - 40 * ( - + 84 ) + + 80 AS col1
----
3526

query I rowsort
SELECT ALL 67 * ( - + 89 )
----
-5963

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT + 81 * 40 + - COALESCE ( + 13, COUNT( * ) )
----
3227

skipif mysql # not compatible
query I rowsort label-3203
SELECT + 81 * 40 + - COALESCE ( + 13, COUNT ( * ) )
----
3227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT ALL 6 * CAST( NULL AS SIGNED ) - - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL 6 * CAST ( NULL AS INTEGER ) - - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3205
SELECT DISTINCT + 99 AS col1, - 19 + - NULLIF ( 2, + SUM( DISTINCT - 60 ) + + 1 * + CAST( NULL AS SIGNED ) ) * + ( - 36 ) * 54
----
99
3869

skipif mysql # not compatible
query II rowsort label-3205
SELECT DISTINCT + 99 AS col1, - 19 + - NULLIF ( 2, + SUM ( DISTINCT - 60 ) + + 1 * + CAST ( NULL AS INTEGER ) ) * + ( - 36 ) * 54
----
99
3869

query I rowsort
SELECT ALL 31 * + 72 * - 26 col2
----
-58032

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT COUNT( * ) / - COALESCE ( - ( 96 ), - - 77, + 84 ) + + 20 * 3 * - CASE ( + 89 ) WHEN 56 * 21 * + 22 * + 15 - - 35 * 9 * + 19 THEN + 27 / + + 18 + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT COUNT ( * ) / - COALESCE ( - ( 96 ), - - 77, + 84 ) + + 20 * 3 * - CASE ( + 89 ) WHEN 56 * 21 * + 22 * + 15 - - 35 * 9 * + 19 THEN + 27 / + + 18 + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL 7 * - - 82 * - MIN( + 86 ) * - CAST( NULL AS SIGNED ) + + - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL 7 * - - 82 * - MIN ( + 86 ) * - CAST ( NULL AS INTEGER ) + + - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT - COALESCE ( - SUM( ALL + 27 ), + 60, - 11 ) + - 56 + + 15 + - 40 * - 12
----
466

skipif mysql # not compatible
query I rowsort label-3209
SELECT - COALESCE ( - SUM ( ALL + 27 ), + 60, - 11 ) + - 56 + + 15 + - 40 * - 12
----
466

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT + 7 DIV + 9
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT + 7 / + 9
----
0

query I rowsort
SELECT ALL 71 * - 78 AS col2
----
-5538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT DISTINCT + COALESCE ( + CAST( + 14 AS SIGNED ), + COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT + COALESCE ( + CAST ( + 14 AS INTEGER ), + COUNT ( * ) ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT NULLIF ( - 49, + + COUNT( * ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3213
SELECT NULLIF ( - 49, + + COUNT ( * ) ) AS col2
----
-49

query II rowsort
SELECT ALL + 17 col0, CASE + 0 WHEN - 28 + - - 53 * - 13 THEN + 72 WHEN + - NULLIF ( 76, - - 91 * - - ( 54 ) ) - + 15 THEN - - 3 END * - + 85 col2
----
17
NULL

query II rowsort
SELECT + 86 AS col2, 45
----
86
45

query I rowsort
SELECT + 49 - - - 35 AS col2
----
14

query I rowsort
SELECT - - ( 95 ) * + 42 AS col0
----
3990

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT - + 14 AS col1, - 71 * + 51 + 34 + MAX( ALL 31 )
----
-14
-3556

skipif mysql # not compatible
query II rowsort label-3218
SELECT - + 14 AS col1, - 71 * + 51 + 34 + MAX ( ALL 31 )
----
-14
-3556

query I rowsort
SELECT ALL 59 + - - 11 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT 64 + COUNT( * ) * - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT 64 + COUNT ( * ) * - COUNT ( * )
----
63

query I rowsort
SELECT ALL + + 43 + 74
----
117

query I rowsort
SELECT - + 50 - - 26 + + + ( - 97 ) AS col0
----
-121

query I rowsort
SELECT ALL - ( - 88 ) AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT DISTINCT - + CAST( + 44 AS SIGNED ) * - 15
----
660

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - + CAST ( + 44 AS INTEGER ) * - 15
----
660

query I rowsort
SELECT - - 75 * 89 * - 49
----
-327075

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL 65 / - SUM( DISTINCT - + 78 ) * - 69 + - 46 + 2 / + + CASE + 39 WHEN 74 * ( - COALESCE ( - 91, - 17 + - 85 ) ) / 54 + COUNT( * ) THEN - 57 * + 29 + 24 END + 43 * 95 * 67 * + COUNT( DISTINCT - 57 ) + + SUM( + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL 65 / - SUM ( DISTINCT - + 78 ) * - 69 + - 46 + 2 / + + CASE + 39 WHEN 74 * ( - COALESCE ( - 91, - 17 + - 85 ) ) / 54 + COUNT ( * ) THEN - 57 * + 29 + 24 END + 43 * 95 * 67 * + COUNT ( DISTINCT - 57 ) + + SUM ( + 27 )
----
NULL

query I rowsort
SELECT ALL + + 51 + + + 45
----
96

query I rowsort
SELECT - 79 + 58 * 60 * + 61 * - 98
----
-20803519

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

query I rowsort
SELECT - 92 + 81
----
-11

query I rowsort
SELECT + 62 - + 9
----
53

query I rowsort
SELECT + + 92 + + ( - 99 ) col0
----
-7

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

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

query II rowsort
SELECT DISTINCT 49 * + - NULLIF ( + 27, - + 94 ) AS col1, 90 AS col2
----
-1323
90

query I rowsort
SELECT DISTINCT + - 9 + + - COALESCE ( - 41, - + 26 * + 96 + + 25, 32 + + 88 ) AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3236
SELECT DISTINCT 26 - - 23 + + COUNT( * ) DIV - + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT 26 - - 23 + + COUNT ( * ) / - + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT ALL 61 - - - COUNT( * ) + 87 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL 61 - - - COUNT ( * ) + 87 AS col1
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3239
SELECT - 39 DIV 76 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3239
SELECT - 39 / 76 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT - 96 * - - MAX( 77 ) AS col1
----
-7392

skipif mysql # not compatible
query I rowsort label-3240
SELECT - 96 * - - MAX ( 77 ) AS col1
----
-7392

query II rowsort
SELECT + ( + - 67 ), + 53 AS col0
----
-67
53

onlyif mysql # DIV for integer division: 
query I rowsort label-3242
SELECT ALL 70 DIV 21 - - 8
----
11

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL 70 / 21 - - 8
----
11

query I rowsort
SELECT + 66 * + - 32
----
-2112

query II rowsort
SELECT DISTINCT + ( - + 20 ) col1, + 12 col1
----
-20
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3245
SELECT CAST( 17 AS SIGNED ) AS col1, 38 AS col0
----
17
38

skipif mysql # not compatible
query II rowsort label-3245
SELECT CAST ( 17 AS INTEGER ) AS col1, 38 AS col0
----
17
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT + 35 * CAST( 71 AS SIGNED ) * - 54 + + 70
----
-134120

skipif mysql # not compatible
query I rowsort label-3246
SELECT + 35 * CAST ( 71 AS INTEGER ) * - 54 + + 70
----
-134120

query I rowsort
SELECT ALL 47 * - - 53
----
2491

query I rowsort
SELECT DISTINCT 59 * + 42 * - 64 AS col0
----
-158592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3249
SELECT ALL 26 DIV - 87 * - CAST( + 8 AS SIGNED ) + - SUM( DISTINCT + - 65 ) * - + COUNT( * ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL 26 / - 87 * - CAST ( + 8 AS INTEGER ) + - SUM ( DISTINCT + - 65 ) * - + COUNT ( * ) col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3250
SELECT + 38 * + - AVG ( DISTINCT - - 86 ) + 72 + 22 + - + MIN( + + 25 ) + + CASE 61 WHEN + 97 * + 8 THEN - - COALESCE ( - 84, ( - - 74 ) * - - 1, + COUNT( 74 ) * 65 + CAST( NULL AS DECIMAL ) + - 65 ) END * + 18 * 51 * NULLIF ( 58, + CAST( - 21 AS SIGNED ) * + 9 ) / + - NULLIF ( - 19, - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT + 38 * + - AVG ( DISTINCT - - 86 ) + 72 + 22 + - + MIN ( + + 25 ) + + CASE 61 WHEN + 97 * + 8 THEN - - COALESCE ( - 84, ( - - 74 ) * - - 1, + COUNT ( 74 ) * 65 + CAST ( NULL AS REAL ) + - 65 ) END * + 18 * 51 * NULLIF ( 58, + CAST ( - 21 AS INTEGER ) * + 9 ) / + - NULLIF ( - 19, - 99 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3251
SELECT + NULLIF ( - COUNT ( * ), + 13 + - - 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT ALL + COUNT( - 26 ) + - 88 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + COUNT ( - 26 ) + - 88 AS col2
----
-87

query I rowsort
SELECT DISTINCT ( - 41 ) + + ( - + 59 )
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3254
SELECT DISTINCT + NULLIF ( + 35, + 57 DIV + 69 DIV - 6 ) DIV ( + 29 ), 72 * 63 + + + 44 col0, + COUNT( * )
----
1
4580
1

skipif mysql # not compatible
query III rowsort label-3254
SELECT DISTINCT + NULLIF ( + 35, + 57 / + 69 / - 6 ) / ( + 29 ), 72 * 63 + + + 44 col0, + COUNT ( * )
----
1
4580
1

query I rowsort
SELECT DISTINCT + ( - + 48 ) + - - 39
----
-9

query II rowsort
SELECT ALL 93 + + 92, 59 * + 98 AS col1
----
185
5782

query II rowsort
SELECT 85 * - 93 col2, 16 * 82
----
-7905
1312

query I rowsort
SELECT ( - 63 ) + - 17 + + CASE - - 46 WHEN + + 90 THEN + + 23 END + + 49 * - 57 * + 78 + - 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-3259
SELECT 74 + + NULLIF ( + + 23, - - CAST( + 70 AS DECIMAL ) ) AS col1, COALESCE ( - 86, + ( 2 ) DIV CAST( NULL AS SIGNED ) + 26, - - 87 + + ( 78 ), + - 84 ) * - 28
----
97
2408

skipif mysql # not compatible
query II rowsort label-3259
SELECT 74 + + NULLIF ( + + 23, - - CAST ( + 70 AS REAL ) ) AS col1, COALESCE ( - 86, + ( 2 ) / CAST ( NULL AS INTEGER ) + 26, - - 87 + + ( 78 ), + - 84 ) * - 28
----
97
2408

query I rowsort
SELECT - COALESCE ( + 84, 22 ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3261
SELECT CAST( + + SUM( DISTINCT - 69 ) AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-3261
SELECT CAST ( + + SUM ( DISTINCT - 69 ) AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL - COUNT( * ) * + - 67 col0
----
67

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - COUNT ( * ) * + - 67 col0
----
67

query I rowsort
SELECT DISTINCT 78 - - - 43 + + + 48
----
83

query I rowsort
SELECT + 26 * 6
----
156

query I rowsort
SELECT 57 + 17
----
74

query I rowsort
SELECT 40 - + + 74 * 10
----
-700

query I rowsort
SELECT 76 * - 55
----
-4180

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT 47 + - - COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3268
SELECT 47 + - - COUNT ( * ) AS col0
----
48

query I rowsort
SELECT 82 + - 31 + + 94 AS col2
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT DISTINCT + 83 DIV + - 32 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT + 83 / + - 32 AS col1
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT 92 + + 3 + + COUNT( * ) * + + COUNT( + 97 ) - + 16 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3272
SELECT 92 + + 3 + + COUNT ( * ) * + + COUNT ( + 97 ) - + 16 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT 66 DIV - - 67
----
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT 66 / - - 67
----
0

query I rowsort
SELECT 72 + 70
----
142

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

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

query I rowsort
SELECT DISTINCT - 11 * + 20 * + 67
----
-14740

query I rowsort
SELECT ALL + 56 * 45
----
2520

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3279
SELECT 20 DIV + ( + CAST( 45 AS SIGNED ) ) + + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-3279
SELECT 20 / + ( + CAST ( 45 AS INTEGER ) ) + + - 98
----
-98

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

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

query I rowsort
SELECT ( + 83 ) + + 32 AS col1
----
115

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT 93 * + + 2 + - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT 93 * + + 2 + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 97 * 27
----
-2619

query I rowsort
SELECT CASE 71 WHEN 20 THEN 29 * 65 + 86 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT ALL + 53 + - ( 28 ) * - - CAST( NULL AS SIGNED ) + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + 53 + - ( 28 ) * - - CAST ( NULL AS INTEGER ) + 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT + 47 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT + 47 - + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT SUM( DISTINCT - + 82 ) - - - 35
----
-117

skipif mysql # not compatible
query I rowsort label-3290
SELECT SUM ( DISTINCT - + 82 ) - - - 35
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3291
SELECT - CAST( NULL AS SIGNED ) + - - 46 / + - 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT - CAST ( NULL AS INTEGER ) + - - 46 / + - 26 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT 89 / + CASE - - MAX( DISTINCT 31 ) WHEN + - MAX( DISTINCT + 3 ) THEN - CASE - ( 26 ) WHEN - 54 + + COUNT( * ) + - ( + NULLIF ( COUNT( * ), AVG ( DISTINCT - - 48 ) ) ) THEN + 73 + - 8 WHEN + 53 THEN + 72 ELSE NULL END END * COUNT( * ) - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT 89 / + CASE - - MAX ( DISTINCT 31 ) WHEN + - MAX ( DISTINCT + 3 ) THEN - CASE - ( 26 ) WHEN - 54 + + COUNT ( * ) + - ( + NULLIF ( COUNT ( * ), AVG ( DISTINCT - - 48 ) ) ) THEN + 73 + - 8 WHEN + 53 THEN + 72 ELSE NULL END END * COUNT ( * ) - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT NULLIF ( + + 16, - COALESCE ( - CASE - + 82 WHEN 91 THEN - + ( 28 ) WHEN + NULLIF ( 87, + 28 * + AVG ( ALL + 21 ) / COUNT( * ) + + + 4 * - 98 ) * - + 39 / - - 84 THEN + COUNT( * ) WHEN 52 THEN NULL END, + ( 27 ) * - 75 ) - 5 )
----
16

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT NULLIF ( + + 16, - COALESCE ( - CASE - + 82 WHEN 91 THEN - + ( 28 ) WHEN + NULLIF ( 87, + 28 * + AVG ( ALL + 21 ) / COUNT ( * ) + + + 4 * - 98 ) * - + 39 / - - 84 THEN + COUNT ( * ) WHEN 52 THEN NULL END, + ( 27 ) * - 75 ) - 5 )
----
16

query I rowsort
SELECT ALL ( + 77 ) - - 10 + - 10
----
77

query I rowsort
SELECT - 97 - 11
----
-108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT ( + + CASE - 8 WHEN + - 37 THEN NULL WHEN + 85 * CAST( - 42 AS SIGNED ) + 22 THEN COUNT( * ) * - + 79 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT ( + + CASE - 8 WHEN + - 37 THEN NULL WHEN + 85 * CAST ( - 42 AS INTEGER ) + 22 THEN COUNT ( * ) * - + 79 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT 69 - - + ( - - COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-3298
SELECT 69 - - + ( - - COUNT ( * ) )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT ALL + + 71 DIV 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL + + 71 / 50 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3300
SELECT ALL + COUNT( * ) / - - 5 + + 8 + + - CAST( NULL AS SIGNED ) * AVG ( 54 ) / 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + COUNT ( * ) / - - 5 + + 8 + + - CAST ( NULL AS INTEGER ) * AVG ( 54 ) / 35 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3301
SELECT ALL 98 AS col2, + COALESCE ( - CAST( NULL AS SIGNED ), 22 + - COUNT( DISTINCT 17 ) + + - 32 * COALESCE ( - 60, - - 2 ) ) * - 96 * - 38 col2
----
98
7080768

skipif mysql # not compatible
query II rowsort label-3301
SELECT ALL 98 AS col2, + COALESCE ( - CAST ( NULL AS INTEGER ), 22 + - COUNT ( DISTINCT 17 ) + + - 32 * COALESCE ( - 60, - - 2 ) ) * - 96 * - 38 col2
----
98
7080768

query I rowsort
SELECT ( - 51 ) + 52
----
1

query I rowsort
SELECT 82 + + 72
----
154

query I rowsort
SELECT 85 - - 67 AS col2
----
152

query I rowsort
SELECT 95 - + 61 * + - 3 AS col2
----
278

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

skipif mysql # not compatible
query I rowsort label-3306
SELECT - COALESCE ( 83, - - COUNT ( * ) ) AS col1
----
-83

query I rowsort
SELECT ALL 48 * - + 28 AS col2
----
-1344

query I rowsort
SELECT DISTINCT 7 + + - 10 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT 85 + + COUNT( * ) + + 30
----
116

skipif mysql # not compatible
query I rowsort label-3309
SELECT 85 + + COUNT ( * ) + + 30
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT DISTINCT + NULLIF ( - 73, - 7 + + - CAST( - 31 AS SIGNED ) )
----
-73

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT + NULLIF ( - 73, - 7 + + - CAST ( - 31 AS INTEGER ) )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3311
SELECT ALL + COUNT( * ) DIV + - 3 AS col2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3312
SELECT - CAST( - 2 AS SIGNED ) DIV - 1
----
-2

skipif mysql # not compatible
query I rowsort label-3312
SELECT - CAST ( - 2 AS INTEGER ) / - 1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3313
SELECT - CAST( + 56 AS SIGNED ) * 33 AS col2
----
-1848

skipif mysql # not compatible
query I rowsort label-3313
SELECT - CAST ( + 56 AS INTEGER ) * 33 AS col2
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3314
SELECT DISTINCT + NULLIF ( + 75, - + 81 / CASE + ( 55 ) WHEN + 73 THEN NULL WHEN 76 THEN NULL ELSE - + 48 - + 13 + - CAST( NULL AS DECIMAL ) * 16 + 6 * + 35 + - - COUNT( * ) END - - - 9 )
----
75

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + NULLIF ( + 75, - + 81 / CASE + ( 55 ) WHEN + 73 THEN NULL WHEN 76 THEN NULL ELSE - + 48 - + 13 + - CAST ( NULL AS REAL ) * 16 + 6 * + 35 + - - COUNT ( * ) END - - - 9 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL + 73 * + + 45 * COUNT( * ) + - ( + ( - MIN( + 29 ) ) ) + - MIN( DISTINCT + 29 )
----
3285

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL + 73 * + + 45 * COUNT ( * ) + - ( + ( - MIN ( + 29 ) ) ) + - MIN ( DISTINCT + 29 )
----
3285

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT DISTINCT + - 82 * - + 43 * 25 + - COALESCE ( + + 48, + 31 + CASE + 82 WHEN 25 THEN NULL WHEN + 21 + + 6 + - ( 91 ) THEN NULL WHEN - COALESCE ( - - 75, - - COUNT( * ) * + 85 * - COUNT( * ) + + + 17 + - + COUNT( * ) * 98 ) * + 6 / ( + - 48 ) / - + CASE + - 91 WHEN 20 * 9 + - 79 / - 23 - - 92 + + 41 THEN SUM( + 62 ) * + AVG ( - - 81 ) + 79 * + 89 END + 17 + + ( - + 60 ) * 52 + + + 70 THEN - - COUNT( * ) END ) AS col1, + 88 * - + 62
----
88102
-5456

skipif mysql # not compatible
query II rowsort label-3316
SELECT DISTINCT + - 82 * - + 43 * 25 + - COALESCE ( + + 48, + 31 + CASE + 82 WHEN 25 THEN NULL WHEN + 21 + + 6 + - ( 91 ) THEN NULL WHEN - COALESCE ( - - 75, - - COUNT ( * ) * + 85 * - COUNT ( * ) + + + 17 + - + COUNT ( * ) * 98 ) * + 6 / ( + - 48 ) / - + CASE + - 91 WHEN 20 * 9 + - 79 / - 23 - - 92 + + 41 THEN SUM ( + 62 ) * + AVG ( - - 81 ) + 79 * + 89 END + 17 + + ( - + 60 ) * 52 + + + 70 THEN - - COUNT ( * ) END ) AS col1, + 88 * - + 62
----
88102
-5456

query II rowsort
SELECT ALL - 42 * + + 38 + - + 82 + + 42, + 43 col1
----
-1636
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT + - 85 * + SUM( + ( 98 ) ) * + 93 + + ( MIN( DISTINCT - 92 ) ) * - + CAST( + 37 AS SIGNED ) * - + 50 + + - 82 + - MAX( + 27 )
----
-944999

skipif mysql # not compatible
query I rowsort label-3318
SELECT + - 85 * + SUM ( + ( 98 ) ) * + 93 + + ( MIN ( DISTINCT - 92 ) ) * - + CAST ( + 37 AS INTEGER ) * - + 50 + + - 82 + - MAX ( + 27 )
----
-944999

query I rowsort
SELECT - 23 * + - 45 + + - 78 + - + 69 AS col0
----
888

query I rowsort
SELECT + 15 * 3 - - 35 AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3321
SELECT - - COUNT( * ) + + 9 + 46 + COUNT( * ) - 70 * 33 DIV 99 * - + ( + - ( + MIN( - + 46 ) ) ) * - ( 99 ) AS col2
----
-104685

skipif mysql # not compatible
query I rowsort label-3321
SELECT - - COUNT ( * ) + + 9 + 46 + COUNT ( * ) - 70 * 33 / 99 * - + ( + - ( + MIN ( - + 46 ) ) ) * - ( 99 ) AS col2
----
-104685

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT + + MAX( ALL + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT + + MAX ( ALL + 21 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT - 58 + + COUNT( * ) AS col0, - 79 AS col2
----
-57
-79

skipif mysql # not compatible
query II rowsort label-3323
SELECT - 58 + + COUNT ( * ) AS col0, - 79 AS col2
----
-57
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + COUNT( * ) + + 98
----
99

skipif mysql # not compatible
query I rowsort label-3324
SELECT + COUNT ( * ) + + 98
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3325
SELECT ALL + - 39 * - + 56 - - SUM( DISTINCT - + 2 ), 8 AS col1
----
2182
8

skipif mysql # not compatible
query II rowsort label-3325
SELECT ALL + - 39 * - + 56 - - SUM ( DISTINCT - + 2 ), 8 AS col1
----
2182
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT DISTINCT + - SUM( DISTINCT + - 43 ), + 95 - 56 AS col0
----
43
39

skipif mysql # not compatible
query II rowsort label-3326
SELECT DISTINCT + - SUM ( DISTINCT + - 43 ), + 95 - 56 AS col0
----
43
39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3327
SELECT DISTINCT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT ALL + 80 DIV - - 1
----
80

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + 80 / - - 1
----
80

query II rowsort
SELECT 51 AS col1, 89 col1
----
51
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT + CAST( + COUNT( * ) AS SIGNED ) + - 21 * - 98 AS col1
----
2059

skipif mysql # not compatible
query I rowsort label-3331
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - 21 * - 98 AS col1
----
2059

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

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

query I rowsort
SELECT ALL - 28 * + ( + + ( + 87 ) )
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + MIN( DISTINCT + 39 ) + + 78 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-3334
SELECT + MIN ( DISTINCT + 39 ) + + 78 AS col0
----
117

query I rowsort
SELECT ALL 66 + - ( + 47 ) * ( - - 90 ) + 19 + + 6
----
-4139

query I rowsort
SELECT ALL 42 + - 49
----
-7

query I rowsort
SELECT - COALESCE ( + 11, - - 36 * - 96 ) col2
----
-11

query I rowsort
SELECT + 24 + + 84 - + 7 + - - 1 * - + ( + 45 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT + 30 + - 9 + - + SUM( DISTINCT - ( - NULLIF ( 76, + - 40 ) ) ) * - 77
----
5873

skipif mysql # not compatible
query I rowsort label-3339
SELECT + 30 + - 9 + - + SUM ( DISTINCT - ( - NULLIF ( 76, + - 40 ) ) ) * - 77
----
5873

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT - 6 + - NULLIF ( - - 59, 14 ) + 43 * 84 + - COUNT( * )
----
3546

skipif mysql # not compatible
query I rowsort label-3340
SELECT - 6 + - NULLIF ( - - 59, 14 ) + 43 * 84 + - COUNT ( * )
----
3546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3341
SELECT 80, ( + 89 ) + 14 DIV - 54 - 70 + - 4 + + COUNT( * ) AS col0
----
80
16

skipif mysql # not compatible
query II rowsort label-3341
SELECT 80, ( + 89 ) + 14 / - 54 - 70 + - 4 + + COUNT ( * ) AS col0
----
80
16

query I rowsort
SELECT - 82 + - 7 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3343
SELECT + 94 + + 77 * + - COUNT( * ) + 5 - + CAST( NULL AS SIGNED ) * - 85 + - - 45 + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT + 94 + + 77 * + - COUNT ( * ) + 5 - + CAST ( NULL AS INTEGER ) * - 85 + - - 45 + 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL SUM( ALL - 48 ) * - - 27 + 21 + - 95 * + 31
----
-4220

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL SUM ( ALL - 48 ) * - - 27 + 21 + - 95 * + 31
----
-4220

query II rowsort
SELECT DISTINCT + CASE - 24 WHEN + - AVG ( - 35 ) * 32 * 3 THEN NULL ELSE - NULLIF ( + 37, - 40 - + 1 ) END, - 69 AS col2
----
-37
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3346
SELECT DISTINCT MIN( 82 ) * - 64 * + 68 * + + 80 AS col0, - 0 * + 91 DIV - 20
----
-28549120
0

skipif mysql # not compatible
query II rowsort label-3346
SELECT DISTINCT MIN ( 82 ) * - 64 * + 68 * + + 80 AS col0, - 0 * + 91 / - 20
----
-28549120
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - COUNT( * ) * - ( - 14 * - 49 )
----
686

skipif mysql # not compatible
query I rowsort label-3347
SELECT - COUNT ( * ) * - ( - 14 * - 49 )
----
686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3348
SELECT DISTINCT + CASE - COUNT( * ) WHEN - 69 THEN CAST( - 38 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - 69 THEN CAST ( - 38 AS INTEGER ) END AS col1
----
NULL

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

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

query I rowsort
SELECT - 75 * 49 AS col0
----
-3675

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

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

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

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

query I rowsort
SELECT - 39 * 29 AS col0
----
-1131

query I rowsort
SELECT ALL - 59 * - 54 AS col2
----
3186

query I rowsort
SELECT ALL + CASE 18 WHEN 69 THEN 33 WHEN 97 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - 68 * - ( MAX( ALL + 25 ) ) col0
----
1700

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - 68 * - ( MAX ( ALL + 25 ) ) col0
----
1700

query I rowsort
SELECT - 21 - 4
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT - 27 DIV - 1 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 27 / - 1 AS col0
----
27

query I rowsort
SELECT ALL - 59 * 71 col0
----
-4189

query I rowsort
SELECT COALESCE ( 8, - ( ( 16 ) ), - 93 )
----
8

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

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

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

skipif mysql # not compatible
query I rowsort label-3362
SELECT COUNT ( * ) * 59 + - 90 AS col2
----
-31

query I rowsort
SELECT DISTINCT 86 * - 87 + ( 14 ) col0
----
-7468

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3365
SELECT DISTINCT 23 * 66 + + COUNT( * ) DIV 33 AS col0
----
1518

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT 23 * 66 + + COUNT ( * ) / 33 AS col0
----
1518

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT 91 DIV 39
----
2

skipif mysql # not compatible
query I rowsort label-3366
SELECT 91 / 39
----
2

query I rowsort
SELECT ALL + 6 + 96 * + 45
----
4326

query I rowsort
SELECT DISTINCT - 52 * + 75 AS col2
----
-3900

query I rowsort
SELECT ALL + 97 + 20 col2
----
117

query I rowsort
SELECT 75 + 75 AS col2
----
150

query I rowsort
SELECT ALL 95 * 67
----
6365

query I rowsort
SELECT DISTINCT 12 + + 7 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL CASE WHEN NOT + AVG ( - 59 ) > COUNT( ALL - 7 ) THEN 92 - 25 * 30 END + ( - 59 ) * + 29
----
-2369

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL CASE WHEN NOT + AVG ( - 59 ) > COUNT ( ALL - 7 ) THEN 92 - 25 * 30 END + ( - 59 ) * + 29
----
-2369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT DISTINCT + 80 + ( CAST( 79 AS SIGNED ) ) * - 9 AS col1
----
-631

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT + 80 + ( CAST ( 79 AS INTEGER ) ) * - 9 AS col1
----
-631

query I rowsort
SELECT 97 + 86
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-3376
SELECT DISTINCT - 99 DIV NULLIF ( 37, 85 * - 65 )
----
-2

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT - 99 / NULLIF ( 37, 85 * - 65 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT - - 69 DIV 23 + + 78
----
81

skipif mysql # not compatible
query I rowsort label-3377
SELECT - - 69 / 23 + + 78
----
81

query I rowsort
SELECT + 69 * 94 AS col1
----
6486

query I rowsort
SELECT 5 + + 46 col2
----
51

query I rowsort
SELECT ALL - NULLIF ( - 70, 49 * 71 + 34 * + 27 ) - 86
----
-16

query I rowsort
SELECT + 69 * - 28 + 42 AS col1
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT MIN( DISTINCT 13 ) * - 15 - - 14
----
-181

skipif mysql # not compatible
query I rowsort label-3382
SELECT MIN ( DISTINCT 13 ) * - 15 - - 14
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT 75 * - COUNT( 54 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT 75 * - COUNT ( 54 ) col2
----
-75

query I rowsort
SELECT DISTINCT 15 * 31 AS col2
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL - + MAX( ALL 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - + MAX ( ALL 18 ) AS col0
----
-18

query I rowsort
SELECT 74 + + 92
----
166

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

skipif mysql # not compatible
query I rowsort label-3387
SELECT 5 * - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT - 64 * COUNT( * ) + 54 * - 24
----
-1360

skipif mysql # not compatible
query I rowsort label-3388
SELECT - 64 * COUNT ( * ) + 54 * - 24
----
-1360

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

skipif mysql # not compatible
query I rowsort label-3389
SELECT - MIN ( ALL - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT 67 * + CASE - 55 WHEN - 22 / SUM( 26 ) THEN COALESCE ( + 68, + SUM( 37 ) + 36 ) ELSE 87 * + 95 END
----
553755

skipif mysql # not compatible
query I rowsort label-3390
SELECT 67 * + CASE - 55 WHEN - 22 / SUM ( 26 ) THEN COALESCE ( + 68, + SUM ( 37 ) + 36 ) ELSE 87 * + 95 END
----
553755

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT 58 * - COUNT( * ) + ( + 40 )
----
-18

skipif mysql # not compatible
query I rowsort label-3391
SELECT 58 * - COUNT ( * ) + ( + 40 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT + 43 + - 65 DIV + 28
----
41

skipif mysql # not compatible
query I rowsort label-3392
SELECT + 43 + - 65 / + 28
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT + 80 * - 94 - 14 DIV 75 AS col1
----
-7520

skipif mysql # not compatible
query I rowsort label-3393
SELECT + 80 * - 94 - 14 / 75 AS col1
----
-7520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL - CAST( ( - 24 ) AS SIGNED ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL - CAST ( ( - 24 ) AS INTEGER ) AS col1
----
24

query I rowsort
SELECT 46 * - 59 AS col2
----
-2714

query I rowsort
SELECT ALL - - 35 col0
----
35

query I rowsort
SELECT ALL - + 59 + 96
----
37

query I rowsort
SELECT DISTINCT 90 + NULLIF ( + 17, - 73 ) col0
----
107

query I rowsort
SELECT DISTINCT + 92 + + NULLIF ( - 58, ( - 6 ) * - 82 ) + 74 AS col1
----
108

query I rowsort
SELECT ALL - 38 + CASE + 84 WHEN 47 THEN 62 * 48 + ( 80 ) WHEN - 54 / 35 THEN NULL ELSE + 58 END
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT + 20 * - MIN( DISTINCT 57 )
----
-1140

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT + 20 * - MIN ( DISTINCT 57 )
----
-1140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT ALL + COUNT( * ) + + 38 - COALESCE ( + 54, COUNT( * ), - COUNT( * ) - 22 ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + COUNT ( * ) + + 38 - COALESCE ( + 54, COUNT ( * ), - COUNT ( * ) - 22 ) * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 75 * + - 31 col2
----
-2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3404
SELECT 85 * - 70 DIV COUNT( * ) AS col2
----
-5950

skipif mysql # not compatible
query I rowsort label-3404
SELECT 85 * - 70 / COUNT ( * ) AS col2
----
-5950

query I rowsort
SELECT 20 + - 29 * + 39 AS col0
----
-1111

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL SUM( DISTINCT - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL SUM ( DISTINCT - 19 ) AS col2
----
-19

query I rowsort
SELECT 7 + + 36 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT DISTINCT + MIN( ALL + 36 ) - 25 * - 3
----
111

skipif mysql # not compatible
query I rowsort label-3408
SELECT DISTINCT + MIN ( ALL + 36 ) - 25 * - 3
----
111

query I rowsort
SELECT 16 + - 21
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT COUNT( * ) + 72 + 6 * + 18
----
181

skipif mysql # not compatible
query I rowsort label-3410
SELECT COUNT ( * ) + 72 + 6 * + 18
----
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3411
SELECT 0 * + + COALESCE ( + 37, + ( COUNT( * ) ) ) DIV + ( 9 + 22 * 3 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3411
SELECT 0 * + + COALESCE ( + 37, + ( COUNT ( * ) ) ) / + ( 9 + 22 * 3 ) AS col0
----
0

query I rowsort
SELECT 35 * 29
----
1015

query I rowsort
SELECT ALL - 3 * - - 25 col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT SUM( ALL - - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT SUM ( ALL - - 95 )
----
95

query I rowsort
SELECT - - ( 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT + 67 + - - 9 + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3416
SELECT + 67 + - - 9 + - COUNT ( * )
----
75

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

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

query I rowsort
SELECT 20 * - 1 AS col2
----
-20

query I rowsort
SELECT DISTINCT + 76 * - 75 + - ( 71 ) AS col2
----
-5771

query I rowsort
SELECT ALL - 17 * - 11 + + 96
----
283

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT 43 * COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3421
SELECT 43 * COUNT ( * ) AS col1
----
43

query I rowsort
SELECT ALL - - ( - - 75 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT - 74 DIV + 65
----
-1

skipif mysql # not compatible
query I rowsort label-3423
SELECT - 74 / + 65
----
-1

query I rowsort
SELECT + ( 44 ) + 9 * 91
----
863

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 69 * + 57 * + COUNT( * )
----
3933

skipif mysql # not compatible
query I rowsort label-3425
SELECT 69 * + 57 * + COUNT ( * )
----
3933

query I rowsort
SELECT 7 * - 86 + + 69 col0
----
-533

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT DISTINCT - CASE - 66 WHEN - 0 THEN NULL WHEN 37 THEN - 88 + + COUNT( * ) ELSE 17 END AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - CASE - 66 WHEN - 0 THEN NULL WHEN 37 THEN - 88 + + COUNT ( * ) ELSE 17 END AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT ALL + 13 * - + 50 + MIN( DISTINCT + 65 ) AS col2
----
-585

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL + 13 * - + 50 + MIN ( DISTINCT + 65 ) AS col2
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT - 69 * - COUNT( * ) - 67 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - 69 * - COUNT ( * ) - 67 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL CASE + + 44 WHEN - 22 * 96 THEN - ( 22 ) WHEN - 77 THEN NULL END * - COUNT( DISTINCT + 41 ) + COALESCE ( - CASE WHEN NOT ( + 79 ) IS NULL THEN NULL ELSE + COUNT( * ) END, + MIN( ALL 90 ) * - 97 + + 77 * 61 ) / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL CASE + + 44 WHEN - 22 * 96 THEN - ( 22 ) WHEN - 77 THEN NULL END * - COUNT ( DISTINCT + 41 ) + COALESCE ( - CASE WHEN NOT ( + 79 ) IS NULL THEN NULL ELSE + COUNT ( * ) END, + MIN ( ALL 90 ) * - 97 + + 77 * 61 ) / + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 92 * - 5 + + ( + 75 ) * - 96
----
-7660

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

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

query I rowsort
SELECT ALL + 77 + - + 32
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + CASE + + ( - 48 ) WHEN 59 * - 90 - 72 THEN SUM( 81 ) WHEN - 44 - 80 THEN COUNT( * ) * - 22 + 83 WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT + CASE + + ( - 48 ) WHEN 59 * - 90 - 72 THEN SUM ( 81 ) WHEN - 44 - 80 THEN COUNT ( * ) * - 22 + 83 WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL 26 + COUNT( * ) + 91
----
118

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL 26 + COUNT ( * ) + 91
----
118

query I rowsort
SELECT DISTINCT 84 * - + 70
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT + COUNT( * ) - + 9 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3437
SELECT + COUNT ( * ) - + 9 AS col0
----
-8

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT ALL 42 - + ( + 7 ) + + 11 DIV 56 col0
----
35

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 42 - + ( + 7 ) + + 11 / 56 col0
----
35

query I rowsort
SELECT - NULLIF ( - ( 37 ), - AVG ( - 65 ) * + 59 )
----
37

query I rowsort
SELECT ALL + 80 * - 91
----
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT - 30 - 64 - + 23 DIV 58
----
-94

skipif mysql # not compatible
query I rowsort label-3444
SELECT - 30 - 64 - + 23 / 58
----
-94

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

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

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

skipif mysql # not compatible
query II rowsort label-3446
SELECT 10 AS col1, COUNT ( * ) * COUNT ( * ) AS col1
----
10
1

query I rowsort
SELECT - 6 - - 73
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT ALL 12 - + 82 - - 30 * - COUNT( * )
----
-100

skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL 12 - + 82 - - 30 * - COUNT ( * )
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT - COALESCE ( + + MIN( 28 ), - 32, 64 * MAX( ALL 65 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-3449
SELECT - COALESCE ( + + MIN ( 28 ), - 32, 64 * MAX ( ALL 65 ) )
----
-28

query I rowsort
SELECT - 0 * ( - 6 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT ALL + 71 * + 57 DIV COUNT( * )
----
4047

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + 71 * + 57 / COUNT ( * )
----
4047

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT - COALESCE ( + 31, - NULLIF ( 23, + COUNT( * ) * + 77 ) * - 98 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - COALESCE ( + 31, - NULLIF ( 23, + COUNT ( * ) * + 77 ) * - 98 ) * - 0
----
0

query I rowsort
SELECT - 76 * ( + + 60 ) AS col1
----
-4560

onlyif mysql # DIV for integer division: 
query II rowsort label-3454
SELECT - 35 AS col0, 62 * 91 - + 48 DIV 87 col1
----
-35
5642

skipif mysql # not compatible
query II rowsort label-3454
SELECT - 35 AS col0, 62 * 91 - + 48 / 87 col1
----
-35
5642

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

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

query II rowsort
SELECT ALL - 45, ( + + 93 ) AS col0
----
-45
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT - 9 * - CAST( NULL AS SIGNED ) / - - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT - 9 * - CAST ( NULL AS INTEGER ) / - - 4 AS col2
----
NULL

query II rowsort
SELECT ALL + 22, 9 * - + 9 AS col1
----
22
-81

query I rowsort
SELECT ALL - COALESCE ( + 48, - 39 ) AS col0
----
-48

query I rowsort
SELECT - NULLIF ( + ( - + 4 ), NULLIF ( ( - 74 ), 51 + 55 * 7 ) + 22 ) AS col2
----
4

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

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

query I rowsort
SELECT - + 3 * 56 * - 70
----
11760

query I rowsort
SELECT ALL + - 93 + + - ( - + 9 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT - + COUNT( + + 37 ) + 19
----
18

skipif mysql # not compatible
query I rowsort label-3464
SELECT - + COUNT ( + + 37 ) + 19
----
18

query II rowsort
SELECT - 0 AS col2, - 71 + + 1 * 57 AS col1
----
0
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT ALL 5 DIV - 86 + - 63 + - 77 AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL 5 / - 86 + - 63 + - 77 AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT - COUNT( * ) + 48 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-3467
SELECT - COUNT ( * ) + 48 AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT + 81 * 77 DIV + 41 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-3468
SELECT + 81 * 77 / + 41 AS col2
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT + 22 AS col2, - SUM( ALL + 38 ) * 2
----
22
-76

skipif mysql # not compatible
query II rowsort label-3469
SELECT + 22 AS col2, - SUM ( ALL + 38 ) * 2
----
22
-76

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT + - 37 DIV - 97 * - 9 * + 95 + 83 col1
----
83

skipif mysql # not compatible
query I rowsort label-3472
SELECT + - 37 / - 97 * - 9 * + 95 + 83 col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3473
SELECT ALL + 70 * + 69 + 94 DIV - 76
----
4829

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + 70 * + 69 + 94 / - 76
----
4829

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

skipif mysql # not compatible
query I rowsort label-3474
SELECT + + 1 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT ALL + CAST( + 83 AS SIGNED ) col0
----
83

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + CAST ( + 83 AS INTEGER ) col0
----
83

query II rowsort
SELECT - 7, 64 col1
----
-7
64

query I rowsort
SELECT + + 23 * - COALESCE ( 33, + 86 * + 4 ) + 49 AS col1
----
-710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL 80 * + 11 + + 11 + - 79 + CASE WHEN NOT ( SUM( - CAST( NULL AS SIGNED ) ) + 56 ) > ( - 5 ) THEN NULL WHEN - 97 * + 27 - + 14 NOT BETWEEN + CAST( NULL AS SIGNED ) * 62 AND + 94 THEN NULL ELSE COUNT( * ) END AS col2
----
813

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL 80 * + 11 + + 11 + - 79 + CASE WHEN NOT ( SUM ( - CAST ( NULL AS INTEGER ) ) + 56 ) > ( - 5 ) THEN NULL WHEN - 97 * + 27 - + 14 NOT BETWEEN + CAST ( NULL AS INTEGER ) * 62 AND + 94 THEN NULL ELSE COUNT ( * ) END AS col2
----
813

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT 84 * + COUNT( * ) + ( + - 28 ) * 59 AS col1
----
-1568

skipif mysql # not compatible
query I rowsort label-3479
SELECT 84 * + COUNT ( * ) + ( + - 28 ) * 59 AS col1
----
-1568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT 75 * CASE + - 99 WHEN - CASE + 54 WHEN - 24 THEN NULL ELSE MAX( - ( 16 ) ) * COALESCE ( - 96, 35 ) END THEN NULL WHEN COALESCE ( - CASE 24 WHEN 23 * - 82 THEN + 41 END, 11 ) THEN + 35 ELSE + CAST( + 67 AS SIGNED ) END * COUNT( * ) - + 17 * - 71
----
6232

skipif mysql # not compatible
query I rowsort label-3480
SELECT 75 * CASE + - 99 WHEN - CASE + 54 WHEN - 24 THEN NULL ELSE MAX ( - ( 16 ) ) * COALESCE ( - 96, 35 ) END THEN NULL WHEN COALESCE ( - CASE 24 WHEN 23 * - 82 THEN + 41 END, 11 ) THEN + 35 ELSE + CAST ( + 67 AS INTEGER ) END * COUNT ( * ) - + 17 * - 71
----
6232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT + CAST( - ( - ( + ( 42 ) ) ) AS SIGNED ) + + 10 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3481
SELECT + CAST ( - ( - ( + ( 42 ) ) ) AS INTEGER ) + + 10 AS col2
----
52

query I rowsort
SELECT - 17 * + COALESCE ( - - 37, 39 + 20 * 4 ) + + 29 * - 88 AS col0
----
-3181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT ALL + NULLIF ( - - 86, - 15 / CAST( - 99 AS SIGNED ) ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + NULLIF ( - - 86, - 15 / CAST ( - 99 AS INTEGER ) ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT 92 * + COUNT( * ) - + ( ( - 41 ) ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT 92 * + COUNT ( * ) - + ( ( - 41 ) ) AS col2
----
133

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

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

query I rowsort
SELECT + 6 + 97 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL COUNT( * ) * + 78 * + NULLIF ( + 92, 76 )
----
7176

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL COUNT ( * ) * + 78 * + NULLIF ( + 92, 76 )
----
7176

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - NULLIF ( 99, - 24 * COUNT( * ) )
----
-99

skipif mysql # not compatible
query I rowsort label-3488
SELECT - NULLIF ( 99, - 24 * COUNT ( * ) )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT + 12 + 82 + 32 DIV + 38 * - 58 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3489
SELECT + 12 + 82 + 32 / + 38 * - 58 AS col0
----
94

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3492
SELECT - COUNT( * ) * - CASE - - CAST( - + CASE + 99 WHEN AVG ( - 21 ) - + 75 THEN 64 END AS SIGNED ) WHEN - ( - 11 ) THEN - 30 * MIN( + 78 ) WHEN 43 * + 63 THEN + 74 + 46 END * ( - 79 ) + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT - COUNT ( * ) * - CASE - - CAST ( - + CASE + 99 WHEN AVG ( - 21 ) - + 75 THEN 64 END AS INTEGER ) WHEN - ( - 11 ) THEN - 30 * MIN ( + 78 ) WHEN 43 * + 63 THEN + 74 + 46 END * ( - 79 ) + + 8 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT - AVG ( ( ( - - 76 ) ) ) * + NULLIF ( - CASE + 8 WHEN - 22 THEN + 54 WHEN + ( 22 ) * 94 THEN NULL END + - CASE + COUNT( * ) WHEN NULLIF ( 59, CASE 1 WHEN CAST( + AVG ( DISTINCT + 44 ) AS SIGNED ) * + 76 THEN NULL ELSE ( - 29 ) / 36 END + - 37 ) THEN CASE 6 WHEN - COUNT( * ) THEN NULL ELSE 12 / + 1 END + - 35 WHEN - 23 * - NULLIF ( MIN( ALL 42 ), CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END, 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT - AVG ( ( ( - - 76 ) ) ) * + NULLIF ( - CASE + 8 WHEN - 22 THEN + 54 WHEN + ( 22 ) * 94 THEN NULL END + - CASE + COUNT ( * ) WHEN NULLIF ( 59, CASE 1 WHEN CAST ( + AVG ( DISTINCT + 44 ) AS INTEGER ) * + 76 THEN NULL ELSE ( - 29 ) / 36 END + - 37 ) THEN CASE 6 WHEN - COUNT ( * ) THEN NULL ELSE 12 / + 1 END + - 35 WHEN - 23 * - NULLIF ( MIN ( ALL 42 ), CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END, 97 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT COUNT( * ) * - 9 * - - ( - 61 ) + 80 DIV 31 AS col1
----
551

skipif mysql # not compatible
query I rowsort label-3494
SELECT COUNT ( * ) * - 9 * - - ( - 61 ) + 80 / 31 AS col1
----
551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3495
SELECT MAX( + 17 ), NULLIF ( - 42, 46 * + CAST( NULL AS SIGNED ) + - 53 * - 97 ) AS col0
----
17
-42

skipif mysql # not compatible
query II rowsort label-3495
SELECT MAX ( + 17 ), NULLIF ( - 42, 46 * + CAST ( NULL AS INTEGER ) + - 53 * - 97 ) AS col0
----
17
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + MIN( DISTINCT - 83 ) + - + 47 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + MIN ( DISTINCT - 83 ) + - + 47 AS col2
----
-130

query I rowsort
SELECT + - 81 + - 92 + - 82 AS col0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT DISTINCT + SUM( ALL + COALESCE ( 95, + - 82, 82 + 78 ) )
----
95

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + SUM ( ALL + COALESCE ( 95, + - 82, 82 + 78 ) )
----
95

query I rowsort
SELECT DISTINCT + 70 * - 37 * + 60
----
-155400

query I rowsort
SELECT - - 32 + 56 + + 35 - - 79 * - 89
----
-6908

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

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

query I rowsort
SELECT DISTINCT + 35 * + 17
----
595

onlyif mysql # DIV for integer division: 
query I rowsort label-3503
SELECT + 96 DIV + 46
----
2

skipif mysql # not compatible
query I rowsort label-3503
SELECT + 96 / + 46
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT ALL + 40 DIV 62 + + 48 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL + 40 / 62 + + 48 / + 80
----
0

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

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT COUNT ( * ) / + MAX ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) + 19 * 69 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 71 AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3507
SELECT + 45 * CASE COUNT( + CAST( NULL AS SIGNED ) ) WHEN 13 - + 95 * 9 THEN NULL WHEN + NULLIF ( 84, COUNT( DISTINCT ( 85 ) ) ) THEN NULL ELSE CAST( + 57 AS SIGNED ) END + 58
----
2623

skipif mysql # not compatible
query I rowsort label-3507
SELECT + 45 * CASE COUNT ( + CAST ( NULL AS INTEGER ) ) WHEN 13 - + 95 * 9 THEN NULL WHEN + NULLIF ( 84, COUNT ( DISTINCT ( 85 ) ) ) THEN NULL ELSE CAST ( + 57 AS INTEGER ) END + 58
----
2623

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL + + 65 * + - 75 * COUNT( - 99 ) + - 37 * + 90
----
-8205

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + + 65 * + - 75 * COUNT ( - 99 ) + - 37 * + 90
----
-8205

query I rowsort
SELECT ALL - + 86 - - + 53 AS col1
----
-33

query II rowsort
SELECT DISTINCT - 61 - 22 * + 83, 52 + + 93 AS col0
----
-1887
145

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

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

query I rowsort
SELECT DISTINCT - CASE + - 73 WHEN - + 62 * - 91 THEN - - 4 ELSE ( + 17 ) * + 51 END
----
-867

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

skipif mysql # not compatible
query I rowsort label-3513
SELECT COUNT ( * ) / - - 74 * + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT DISTINCT - CASE - 32 WHEN + + ( + - 26 ) + - MAX( 9 ) THEN - 42 * 76 + - 0 ELSE 91 END AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT - CASE - 32 WHEN + + ( + - 26 ) + - MAX ( 9 ) THEN - 42 * 76 + - 0 ELSE 91 END AS col1
----
-91

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

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

query I rowsort
SELECT 26 * - ( - 63 ) AS col1
----
1638

onlyif mysql # DIV for integer division: 
query I rowsort label-3517
SELECT 0 + 32 DIV + + 60 col0
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT 0 + 32 / + + 60 col0
----
0

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

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

query I rowsort
SELECT 10 + 26
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL 82 DIV - 61 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL 82 / - 61 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3521
SELECT 51 + + MAX( - + 87 ) DIV - - 38
----
49

skipif mysql # not compatible
query I rowsort label-3521
SELECT 51 + + MAX ( - + 87 ) / - - 38
----
49

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

skipif mysql # not compatible
query I rowsort label-3522
SELECT COUNT ( * ) * - 98
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT NULLIF ( - COUNT( * ), + ( + - AVG ( + 16 ) ) * - 98 - 34 ) - 87 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3523
SELECT NULLIF ( - COUNT ( * ), + ( + - AVG ( + 16 ) ) * - 98 - 34 ) - 87 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL MAX( + + 59 ) + + 87
----
146

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL MAX ( + + 59 ) + + 87
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT + COALESCE ( + NULLIF ( + 81, - 92 - + 98 + + 47 ), - 97 * ( 26 ) + 53, - 85 + 28 ) * ( - COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-3525
SELECT + COALESCE ( + NULLIF ( + 81, - 92 - + 98 + + 47 ), - 97 * ( 26 ) + 53, - 85 + 28 ) * ( - COUNT ( * ) )
----
-81

query I rowsort
SELECT DISTINCT + 64 + - 4 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL + NULLIF ( COUNT( * ), - 96 * - - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL + NULLIF ( COUNT ( * ), - 96 * - - 57 )
----
1

query I rowsort
SELECT DISTINCT 15 + + 88 * + 50 + + + 45 + + 40 * - 73
----
1540

query I rowsort
SELECT ALL ( - 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT - SUM( DISTINCT - 35 ) - + SUM( 67 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - SUM ( DISTINCT - 35 ) - + SUM ( 67 ) AS col1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT ALL - - SUM( - - 86 ) * - 44 + + 11 + - - NULLIF ( 22, + 28 ) - COUNT( * ) * - NULLIF ( CAST( NULLIF ( 89, + 19 ) AS SIGNED ) + + 22, 68 + - COUNT( 59 ) * + COUNT( * ) ) * + 52 * 86
----
492641

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL - - SUM ( - - 86 ) * - 44 + + 11 + - - NULLIF ( 22, + 28 ) - COUNT ( * ) * - NULLIF ( CAST ( NULLIF ( 89, + 19 ) AS INTEGER ) + + 22, 68 + - COUNT ( 59 ) * + COUNT ( * ) ) * + 52 * 86
----
492641

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT 77 + - + 23 * + COALESCE ( COUNT( * ), - MIN( ALL - 85 ) )
----
54

skipif mysql # not compatible
query I rowsort label-3532
SELECT 77 + - + 23 * + COALESCE ( COUNT ( * ), - MIN ( ALL - 85 ) )
----
54

query II rowsort
SELECT DISTINCT 80 AS col0, + 64 AS col0
----
80
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT CASE 1 WHEN - - 70 * - 77 + - 49 + - 3 * 41 THEN - 3 * 35 WHEN 95 THEN 32 ELSE 32 END DIV 97 - + 84
----
-84

skipif mysql # not compatible
query I rowsort label-3534
SELECT CASE 1 WHEN - - 70 * - 77 + - 49 + - 3 * 41 THEN - 3 * 35 WHEN 95 THEN 32 ELSE 32 END / 97 - + 84
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3535
SELECT ALL - 88 * 26 * COUNT( * ) * - MIN( ALL 20 ) DIV COUNT( * ) + + MAX( COALESCE ( 55, - 63 - 47 DIV + 76 ) )
----
45815

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - 88 * 26 * COUNT ( * ) * - MIN ( ALL 20 ) / COUNT ( * ) + + MAX ( COALESCE ( 55, - 63 - 47 / + 76 ) )
----
45815

query I rowsort
SELECT ALL + 29 * - + 98 AS col2
----
-2842

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT SUM( + NULLIF ( + 82, ( 69 ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-3537
SELECT SUM ( + NULLIF ( + 82, ( 69 ) ) )
----
82

query I rowsort
SELECT DISTINCT 26 * - 74 * + + 28
----
-53872

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT 11 * - COUNT( * ) + - 65 * - - 61
----
-3976

skipif mysql # not compatible
query I rowsort label-3540
SELECT 11 * - COUNT ( * ) + - 65 * - - 61
----
-3976

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT ALL - CAST( - - 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL - CAST ( - - 19 AS INTEGER )
----
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-3543
SELECT 90 AS col0, - 24 * + 43 + - 14 DIV - + 44 + - 11 DIV - 66 col0
----
90
-1032

skipif mysql # not compatible
query II rowsort label-3543
SELECT 90 AS col0, - 24 * + 43 + - 14 / - + 44 + - 11 / - 66 col0
----
90
-1032

query II rowsort
SELECT 26 AS col2, 41 * - - 19 + + 92
----
26
871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3545
SELECT 21 * + CASE - - 75 WHEN + 87 THEN - 55 + 90 - + MAX( DISTINCT 84 ) ELSE ( 74 ) * 85 END + CAST( - 32 AS SIGNED )
----
132058

skipif mysql # not compatible
query I rowsort label-3545
SELECT 21 * + CASE - - 75 WHEN + 87 THEN - 55 + 90 - + MAX ( DISTINCT 84 ) ELSE ( 74 ) * 85 END + CAST ( - 32 AS INTEGER )
----
132058

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3546
SELECT + COUNT( * ), 26 DIV - 1 AS col2
----
1
-26

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

query II rowsort
SELECT ALL - 71, - COALESCE ( + 60, - - 22 ) + 15 AS col2
----
-71
-45

query II rowsort
SELECT 7 AS col2, 1 AS col0
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL - CASE - 65 WHEN COUNT( * ) + + 20 + MAX( + - 37 ) THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - CASE - 65 WHEN COUNT ( * ) + + 20 + MAX ( + - 37 ) THEN - 92 END
----
NULL

query II rowsort
SELECT + 65, - 89 AS col2
----
65
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3551
SELECT 19 * CASE - + SUM( ALL + 94 ) WHEN 11 THEN NULL WHEN + ( - 98 ) THEN 76 * - ( - 96 * 46 ) WHEN - CASE 59 WHEN CAST( NULL AS SIGNED ) THEN - 10 WHEN 11 * COALESCE ( 19, 53 * 23 ) + 1 THEN COUNT( * ) END THEN NULL ELSE 77 END AS col2
----
1463

skipif mysql # not compatible
query I rowsort label-3551
SELECT 19 * CASE - + SUM ( ALL + 94 ) WHEN 11 THEN NULL WHEN + ( - 98 ) THEN 76 * - ( - 96 * 46 ) WHEN - CASE 59 WHEN CAST ( NULL AS INTEGER ) THEN - 10 WHEN 11 * COALESCE ( 19, 53 * 23 ) + 1 THEN COUNT ( * ) END THEN NULL ELSE 77 END AS col2
----
1463

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

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

query I rowsort
SELECT ALL - CASE - - 26 WHEN - 50 * - + 1 - - 64 THEN + 98 / - 13 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT - 58 + - + COUNT( * )
----
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT - ( ( + CASE + - COUNT( DISTINCT - 4 ) WHEN + - COUNT( * ) THEN 54 ELSE 2 END ) ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT - ( ( + CASE + - COUNT ( DISTINCT - 4 ) WHEN + - COUNT ( * ) THEN 54 ELSE 2 END ) ) col0
----
-54

query I rowsort
SELECT DISTINCT 88 + + 99
----
187

query II rowsort
SELECT - 34 col2, 70 AS col2
----
-34
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT - NULLIF ( + - CASE + - MAX( DISTINCT 86 ) WHEN - - MIN( ALL 64 ) + + COUNT( * ) THEN 92 WHEN + 55 THEN NULL ELSE 19 END, - 86 ) * - 42 AS col2
----
-798

skipif mysql # not compatible
query I rowsort label-3558
SELECT - NULLIF ( + - CASE + - MAX ( DISTINCT 86 ) WHEN - - MIN ( ALL 64 ) + + COUNT ( * ) THEN 92 WHEN + 55 THEN NULL ELSE 19 END, - 86 ) * - 42 AS col2
----
-798

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

query I rowsort
SELECT + 51 + + 73 + - 50 col0
----
74

query I rowsort
SELECT 40 - - 70 col0
----
110

query I rowsort
SELECT - - COALESCE ( - - 65, + 10 * - + 61 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3563
SELECT - ( SUM( DISTINCT + - 97 ) ) * + 66 AS col2, + 5 AS col1
----
6402
5

skipif mysql # not compatible
query II rowsort label-3563
SELECT - ( SUM ( DISTINCT + - 97 ) ) * + 66 AS col2, + 5 AS col1
----
6402
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL 4 + - MIN( DISTINCT - 27 )
----
31

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL 4 + - MIN ( DISTINCT - 27 )
----
31

query I rowsort
SELECT + 78 * - 80 + - 66 AS col0
----
-6306

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL 17 + SUM( ALL + + 81 ) * - 7 AS col1
----
-550

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL 17 + SUM ( ALL + + 81 ) * - 7 AS col1
----
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT 20 + - COUNT( * ) * - 55
----
75

skipif mysql # not compatible
query I rowsort label-3567
SELECT 20 + - COUNT ( * ) * - 55
----
75

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3569
SELECT - 8 AS col0, - COUNT( * ) + - + 52 DIV 60
----
-8
-1

skipif mysql # not compatible
query II rowsort label-3569
SELECT - 8 AS col0, - COUNT ( * ) + - + 52 / 60
----
-8
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT - COUNT( * ) * - 99 - - 4 - + + 22
----
81

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT - COUNT ( * ) * - 99 - - 4 - + + 22
----
81

query II rowsort
SELECT - 58 * - 74, 78 * + 16 * - 92 AS col1
----
4292
-114816

query II rowsort
SELECT + 91 AS col0, 29 * + + 33
----
91
957

query I rowsort
SELECT - ( 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT + - COUNT( ALL 76 ) + - 59 * - 1 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3574
SELECT + - COUNT ( ALL 76 ) + - 59 * - 1 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT - 91 * - + COUNT( * ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT - 91 * - + COUNT ( * ) AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT - - CASE - COUNT( * ) WHEN + COUNT( * ) + + 26 THEN - - CAST( - + 97 AS SIGNED ) ELSE 14 END AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3576
SELECT - - CASE - COUNT ( * ) WHEN + COUNT ( * ) + + 26 THEN - - CAST ( - + 97 AS INTEGER ) ELSE 14 END AS col2
----
14

query I rowsort
SELECT + + 22 + - 72 + - 62 AS col1
----
-112

query I rowsort
SELECT + - NULLIF ( 79, + 16 ) + 41
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT + ( - COALESCE ( - COUNT( * ), + 78, - 19 * 71 + - 41 + 81 ) ) - + 39 * + 35
----
-1364

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT + ( - COALESCE ( - COUNT ( * ), + 78, - 19 * 71 + - 41 + 81 ) ) - + 39 * + 35
----
-1364

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT DISTINCT 73 * 66 DIV + 58
----
83

skipif mysql # not compatible
query I rowsort label-3580
SELECT DISTINCT 73 * 66 / + 58
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3581
SELECT DISTINCT 8 DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT 8 / + + 62
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3582
SELECT + 14 * 26, - 79 * - - COUNT( * ) AS col0
----
364
-79

skipif mysql # not compatible
query II rowsort label-3582
SELECT + 14 * 26, - 79 * - - COUNT ( * ) AS col0
----
364
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL - COUNT( * ) * + NULLIF ( - + 80, + 88 * + 46 * + 84 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL - COUNT ( * ) * + NULLIF ( - + 80, + 88 * + 46 * + 84 ) col2
----
80

onlyif mysql # aggregate syntax: 
query III rowsort label-3584
SELECT + 25 * - COUNT( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN( ALL 72 ) ) + - 23 AS col1
----
-25
60
15

skipif mysql # not compatible
query III rowsort label-3584
SELECT + 25 * - COUNT ( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN ( ALL 72 ) ) + - 23 AS col1
----
-25
60
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3585
SELECT + 84 * - COUNT( * ) AS col1, 71 * + + 97 - + - 68 + - 9 + CAST( 55 AS SIGNED ) DIV 90
----
-84
6946

skipif mysql # not compatible
query II rowsort label-3585
SELECT + 84 * - COUNT ( * ) AS col1, 71 * + + 97 - + - 68 + - 9 + CAST ( 55 AS INTEGER ) / 90
----
-84
6946

query I rowsort
SELECT + 95 - - + 90 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT + NULLIF ( + ( - + 92 ), - - MAX( DISTINCT + 43 ) * + 97 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3587
SELECT + NULLIF ( + ( - + 92 ), - - MAX ( DISTINCT + 43 ) * + 97 ) AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT NULLIF ( + 26, + CAST( + 43 AS SIGNED ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3588
SELECT NULLIF ( + 26, + CAST ( + 43 AS INTEGER ) ) AS col1
----
26

query I rowsort
SELECT + 89 * 42 col1
----
3738

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT - MIN( DISTINCT + - 94 ) * + + 5 AS col1
----
470

skipif mysql # not compatible
query I rowsort label-3590
SELECT - MIN ( DISTINCT + - 94 ) * + + 5 AS col1
----
470

query I rowsort
SELECT ALL + 94 * 65 * + 90 + - + 84 AS col0
----
549816

query I rowsort
SELECT + 41 - - + NULLIF ( - NULLIF ( NULLIF ( + 93, - - 82 + - 69 ), - 40 ), - ( 23 ) * - 86 ) + 74
----
22

query I rowsort
SELECT DISTINCT - 84 * - + 61 + - 31 - - 61 + + - NULLIF ( - 79, - 77 ) * 71 * - 0
----
5154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT DISTINCT + ( - COALESCE ( ( - - 12 ), + - 93 * 43 ) ) * + 32 * - 60 + COUNT( * ) DIV - 21
----
23040

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT + ( - COALESCE ( ( - - 12 ), + - 93 * 43 ) ) * + 32 * - 60 + COUNT ( * ) / - 21
----
23040

query II rowsort
SELECT ALL + NULLIF ( - + 84, 42 ), - 52 AS col0
----
-84
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT COALESCE ( + 54, - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-3596
SELECT COALESCE ( + 54, - COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL - MIN( - 44 ) * - + 21 * - + MAX( + 18 ) + - 15 + 0 + NULLIF ( 69 + 67, + 47 + 26 / COUNT( * ) ) * + 48
----
23145

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - MIN ( - 44 ) * - + 21 * - + MAX ( + 18 ) + - 15 + 0 + NULLIF ( 69 + 67, + 47 + 26 / COUNT ( * ) ) * + 48
----
23145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT COALESCE ( - - COUNT( * ), - COALESCE ( + + 7, + 37 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3599
SELECT COALESCE ( - - COUNT ( * ), - COALESCE ( + + 7, + 37 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT - + 69 - - SUM( ALL - 77 ) AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-3600
SELECT - + 69 - - SUM ( ALL - 77 ) AS col2
----
-146

query I rowsort
SELECT DISTINCT + 93 * + + 3 - - 34 - - + 5 * + 15
----
388

onlyif mysql # DIV for integer division: 
query II rowsort label-3602
SELECT DISTINCT + 36 DIV 72 + - 78 col2, 47 * 10
----
-78
470

skipif mysql # not compatible
query II rowsort label-3602
SELECT DISTINCT + 36 / 72 + - 78 col2, 47 * 10
----
-78
470

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT ALL - 50 * 52 - COUNT( - 66 ) * + 80 + - COUNT( ALL + 65 ) + 98 * + 5 - + COUNT( * ) * + 27
----
-2218

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - 50 * 52 - COUNT ( - 66 ) * + 80 + - COUNT ( ALL + 65 ) + 98 * + 5 - + COUNT ( * ) * + 27
----
-2218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3604
SELECT - 76 * 74 - + + COUNT( * ) + - COALESCE ( - + 21, + 37, + 48 ) DIV 50
----
-5625

skipif mysql # not compatible
query I rowsort label-3604
SELECT - 76 * 74 - + + COUNT ( * ) + - COALESCE ( - + 21, + 37, + 48 ) / 50
----
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT ALL COALESCE ( + ( + - NULLIF ( 75, 62 ) ), + + 92 * - CAST( NULL AS SIGNED ) + - 16, - 49 + 62, 86 )
----
-75

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL COALESCE ( + ( + - NULLIF ( 75, 62 ) ), + + 92 * - CAST ( NULL AS INTEGER ) + - 16, - 49 + 62, 86 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT DISTINCT + + COALESCE ( - 10, - + 10 * + + 91 + 88 ) - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT + + COALESCE ( - 10, - + 10 * + + 91 + 88 ) - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL + COUNT( + + ( 93 ) ) - + - 98 * + 9 * 14 + + - 77
----
12272

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + COUNT ( + + ( 93 ) ) - + - 98 * + 9 * 14 + + - 77
----
12272

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3608
SELECT - + CAST( + 46 AS SIGNED ), + 32 AS col2
----
-46
32

skipif mysql # not compatible
query II rowsort label-3608
SELECT - + CAST ( + 46 AS INTEGER ), + 32 AS col2
----
-46
32

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

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT + COUNT ( * ) / + 60 * ( 15 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT + COUNT( * ) * + 43 AS col1, - 22
----
43
-22

skipif mysql # not compatible
query II rowsort label-3610
SELECT + COUNT ( * ) * + 43 AS col1, - 22
----
43
-22

query I rowsort
SELECT DISTINCT + CASE + 53 WHEN + 74 THEN 62 WHEN + 90 THEN - 1 ELSE NULL END / - 83 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT - + 91 - + + 46 DIV + 27 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3612
SELECT - + 91 - + + 46 / + 27 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT + MIN( DISTINCT + + 98 ) * - 81
----
-7938

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + MIN ( DISTINCT + + 98 ) * - 81
----
-7938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3614
SELECT - NULLIF ( ( + + 33 ), + ( 60 ) + - + COUNT( * ) * + + 41 + ( CASE COUNT( * ) WHEN CAST( + 14 AS SIGNED ) - COUNT( * ) THEN COUNT( * ) + 87 * 48 END + 62 ) * - 46 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3614
SELECT - NULLIF ( ( + + 33 ), + ( 60 ) + - + COUNT ( * ) * + + 41 + ( CASE COUNT ( * ) WHEN CAST ( + 14 AS INTEGER ) - COUNT ( * ) THEN COUNT ( * ) + 87 * 48 END + 62 ) * - 46 ) AS col1
----
-33

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

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

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

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

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

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

query II rowsort
SELECT - 91 col1, 81 AS col0
----
-91
81

query I rowsort
SELECT - 96 + + 41 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + COUNT( * ) - 34
----
-33

skipif mysql # not compatible
query I rowsort label-3620
SELECT + COUNT ( * ) - 34
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3621
SELECT ALL 96 AS col0, - CASE SUM( ALL - + 11 ) WHEN + 89 * 80 * - - 81 THEN 22 WHEN 76 THEN NULL WHEN 68 THEN + 62 * + ( + 80 ) WHEN 55 THEN NULL END + - 75 * + ( - COUNT( * ) + - 54 * 91 )
----
96
NULL

skipif mysql # not compatible
query II rowsort label-3621
SELECT ALL 96 AS col0, - CASE SUM ( ALL - + 11 ) WHEN + 89 * 80 * - - 81 THEN 22 WHEN 76 THEN NULL WHEN 68 THEN + 62 * + ( + 80 ) WHEN 55 THEN NULL END + - 75 * + ( - COUNT ( * ) + - 54 * 91 )
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT - 72 + + + 28 - + + CASE 40 WHEN - - 50 + - 7 THEN NULL WHEN - 90 THEN 59 WHEN + COUNT( * ) * 98 + - 55 THEN NULL END / - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT - 72 + + + 28 - + + CASE 40 WHEN - - 50 + - 7 THEN NULL WHEN - 90 THEN 59 WHEN + COUNT ( * ) * 98 + - 55 THEN NULL END / - 65 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3623
SELECT 58 * CASE CAST( NULL AS SIGNED ) WHEN + 64 * + - 28 + 32 * - CASE + MIN( ALL ( 82 ) ) WHEN - 75 + CAST( 74 + + 89 AS SIGNED ) / 45 THEN 47 * + 88 + 64 WHEN 53 THEN NULL END THEN 98 END + + 58 / + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT 58 * CASE CAST ( NULL AS INTEGER ) WHEN + 64 * + - 28 + 32 * - CASE + MIN ( ALL ( 82 ) ) WHEN - 75 + CAST ( 74 + + 89 AS INTEGER ) / 45 THEN 47 * + 88 + 64 WHEN 53 THEN NULL END THEN 98 END + + 58 / + 35
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3624
SELECT CAST ( - + MIN ( DISTINCT - - 66 ) AS INTEGER ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT ALL + 61 AS col2, + 40 * 39 * - 87 * - MIN( ALL 53 )
----
61
7193160

skipif mysql # not compatible
query II rowsort label-3625
SELECT ALL + 61 AS col2, + 40 * 39 * - 87 * - MIN ( ALL 53 )
----
61
7193160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3626
SELECT - AVG ( ALL - 61 ) * + 61 / + 23 + - + CASE + 44 WHEN + 87 * + + 75 - + 60 + - COUNT( * ) THEN 36 END + COUNT( * ) + - ( CAST( 23 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT - AVG ( ALL - 61 ) * + 61 / + 23 + - + CASE + 44 WHEN + 87 * + + 75 - + 60 + - COUNT ( * ) THEN 36 END + COUNT ( * ) + - ( CAST ( 23 AS INTEGER ) ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3628
SELECT ALL 49 DIV + - 74 + - - 55, SUM( - 99 ) AS col2
----
55
-99

skipif mysql # not compatible
query II rowsort label-3628
SELECT ALL 49 / + - 74 + - - 55, SUM ( - 99 ) AS col2
----
55
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT 22 DIV + + 53 + 71
----
71

skipif mysql # not compatible
query I rowsort label-3629
SELECT 22 / + + 53 + 71
----
71

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3631
SELECT + 6 * + 6 * 86 AS col2, + 17 * + - 64 * + COALESCE ( ( - - MAX( ALL 7 ) ), - MAX( DISTINCT 54 ) )
----
3096
-7616

skipif mysql # not compatible
query II rowsort label-3631
SELECT + 6 * + 6 * 86 AS col2, + 17 * + - 64 * + COALESCE ( ( - - MAX ( ALL 7 ) ), - MAX ( DISTINCT 54 ) )
----
3096
-7616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3632
SELECT CAST( - 7 AS SIGNED ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3632
SELECT CAST ( - 7 AS INTEGER ) AS col2
----
-7

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

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL CAST ( NULL AS INTEGER ) / - 8 AS col0
----
NULL

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

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

query II rowsort
SELECT ALL + 5 AS col0, - ( - 91 )
----
5
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3636
SELECT + MIN( + 12 ) DIV COUNT( * ) - + SUM( 66 )
----
-54

skipif mysql # not compatible
query I rowsort label-3636
SELECT + MIN ( + 12 ) / COUNT ( * ) - + SUM ( 66 )
----
-54

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3639
SELECT DISTINCT + - 81 AS col1, 4 * - 8 DIV 45 * SUM( + - ( 36 ) ) + - - 4
----
-81
4

skipif mysql # not compatible
query II rowsort label-3639
SELECT DISTINCT + - 81 AS col1, 4 * - 8 / 45 * SUM ( + - ( 36 ) ) + - - 4
----
-81
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3640
SELECT DISTINCT - 44 col1, + COUNT( DISTINCT 59 )
----
-44
1

skipif mysql # not compatible
query II rowsort label-3640
SELECT DISTINCT - 44 col1, + COUNT ( DISTINCT 59 )
----
-44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL - + CASE 75 WHEN + - 65 THEN + 80 + + 86 WHEN - 56 + - 13 THEN NULL WHEN - 12 * + 10 THEN + ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - + CASE 75 WHEN + - 65 THEN + 80 + + 86 WHEN - 56 + - 13 THEN NULL WHEN - 12 * + 10 THEN + ( COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + 73 * - 15 * - SUM( + ( - 61 ) ) AS col2
----
-66795

skipif mysql # not compatible
query I rowsort label-3642
SELECT + 73 * - 15 * - SUM ( + ( - 61 ) ) AS col2
----
-66795

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT + CASE + + COUNT( * ) WHEN - 21 * - ( + NULLIF ( + 38, + 37 + - + 59 * + 58 ) ) + + 35 THEN 79 * 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT + CASE + + COUNT ( * ) WHEN - 21 * - ( + NULLIF ( + 38, + 37 + - + 59 * + 58 ) ) + + 35 THEN 79 * 48 END
----
NULL

query II rowsort
SELECT + 3 col1, + 48 * - 39 AS col0
----
3
-1872

query I rowsort
SELECT 83 + 91 AS col0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT + - 2 * + MIN( - NULLIF ( + - 54, 48 ) ) * 10 * CASE - COUNT( * ) WHEN - 92 + 44 THEN - 5 WHEN - 88 THEN NULL END - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT + - 2 * + MIN ( - NULLIF ( + - 54, 48 ) ) * 10 * CASE - COUNT ( * ) WHEN - 92 + 44 THEN - 5 WHEN - 88 THEN NULL END - 50 AS col2
----
NULL

query I rowsort
SELECT - 49 + + 89 + + - 18 * - + 90
----
1660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3648
SELECT ALL + + 64 * + - CAST( - MAX( DISTINCT NULLIF ( - 26, + 14 ) ) AS SIGNED ) AS col2
----
-1664

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL + + 64 * + - CAST ( - MAX ( DISTINCT NULLIF ( - 26, + 14 ) ) AS INTEGER ) AS col2
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT COUNT( * ) * - - 71 * 17 * - - 88 AS col0
----
106216

skipif mysql # not compatible
query I rowsort label-3649
SELECT COUNT ( * ) * - - 71 * 17 * - - 88 AS col0
----
106216

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

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

query I rowsort
SELECT DISTINCT + 9 * + 58 AS col1
----
522

query I rowsort
SELECT + 12 + - + 83 * - 44 AS col0
----
3664

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL - ( + CASE - - 20 WHEN COALESCE ( - - MAX( 98 ), - 38 * - + 77 * 38 + 58 * + 91 ) THEN NULL WHEN - 46 THEN 91 ELSE NULL END ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - ( + CASE - - 20 WHEN COALESCE ( - - MAX ( 98 ), - 38 * - + 77 * 38 + 58 * + 91 ) THEN NULL WHEN - 46 THEN 91 ELSE NULL END ) + 96
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3654
SELECT 10 DIV + 20, - 43 * - 89 + 90 - + 18 AS col0
----
0
3899

skipif mysql # not compatible
query II rowsort label-3654
SELECT 10 / + 20, - 43 * - 89 + 90 - + 18 AS col0
----
0
3899

query I rowsort
SELECT 19 * + 65 * 57
----
70395

query I rowsort
SELECT DISTINCT + ( - + 64 ) + - - 53 col1
----
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT 45 * COALESCE ( - - 45, - CASE COUNT( * ) WHEN - MAX( + 92 ) * + 45 + 75 THEN 3 + + 82 WHEN SUM( 36 ) THEN NULL WHEN 53 THEN NULL END * 70 )
----
2025

skipif mysql # not compatible
query I rowsort label-3658
SELECT 45 * COALESCE ( - - 45, - CASE COUNT ( * ) WHEN - MAX ( + 92 ) * + 45 + 75 THEN 3 + + 82 WHEN SUM ( 36 ) THEN NULL WHEN 53 THEN NULL END * 70 )
----
2025

query I rowsort
SELECT 25 - + ( + 12 ) AS col2
----
13

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

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

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

skipif mysql # not compatible
query I rowsort label-3661
SELECT - CAST ( NULL AS INTEGER ) * - + 65 / - + COUNT ( - 32 ) - 84 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL 46 - - COUNT( * ) + + COALESCE ( + + 96, - COUNT( * ) + 46 ) + + - COUNT( * ) * + 18
----
125

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL 46 - - COUNT ( * ) + + COALESCE ( + + 96, - COUNT ( * ) + 46 ) + + - COUNT ( * ) * + 18
----
125

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

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

query I rowsort
SELECT DISTINCT + 20 - + + 59
----
-39

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

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

query I rowsort
SELECT 18 * + + 2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT 67 + - COUNT( DISTINCT - 23 ) col0
----
66

skipif mysql # not compatible
query I rowsort label-3667
SELECT 67 + - COUNT ( DISTINCT - 23 ) col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3668
SELECT - 94 DIV ( - ( ( 16 ) ) )
----
5

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 94 / ( - ( ( 16 ) ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT 10 * - + 26 + + - COUNT( * )
----
-261

skipif mysql # not compatible
query I rowsort label-3669
SELECT 10 * - + 26 + + - COUNT ( * )
----
-261

query I rowsort
SELECT DISTINCT + ( + 72 ) * - 12 * 77 + - - 76
----
-66452

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT + + NULLIF ( - 52, + COUNT( * ) ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-3671
SELECT + + NULLIF ( - 52, + COUNT ( * ) ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL - CAST( 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - CAST ( 14 AS INTEGER )
----
-14

query I rowsort
SELECT - 69 * NULLIF ( - 89, - 5 / - AVG ( - 47 ) ) * 85 - + + 15 AS col0
----
521970

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL + 80 + - - CASE COUNT( * ) WHEN - - 34 THEN - 83 WHEN - 94 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + 80 + - - CASE COUNT ( * ) WHEN - - 34 THEN - 83 WHEN - 94 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - 21 + - COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT ALL - COALESCE ( + - 6, 12 * 59 ) AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT - 36 - + 56 - + 36 + - + 77 DIV - 94 + 98
----
-30

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 36 - + 56 - + 36 + - + 77 / - 94 + 98
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL 79 + COUNT( - 44 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL 79 + COUNT ( - 44 ) AS col1
----
80

query I rowsort
SELECT 46 - ( - 82 )
----
128

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

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

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

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + COUNT ( * ) * - + 51 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN - 27 THEN NULL ELSE - 73 * - 14 + - + COUNT( * ) END + - 77 AS col0
----
944

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN - 27 THEN NULL ELSE - 73 * - 14 + - + COUNT ( * ) END + - 77 AS col0
----
944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - 97 * + 65 * + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 97 * + 65 * + + 15
----
NULL

query I rowsort
SELECT ALL - 58 + - - 99 col0
----
41

query I rowsort
SELECT 35 - 29
----
6

query I rowsort
SELECT 38 * 24
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT 45 - 59 + + + COUNT( DISTINCT - - 92 ) + + 42 * 13 + + - COALESCE ( - 61, + + 13 ) - SUM( ALL - NULLIF ( - 56, 42 ) ) * 21
----
-582

skipif mysql # not compatible
query I rowsort label-3687
SELECT 45 - 59 + + + COUNT ( DISTINCT - - 92 ) + + 42 * 13 + + - COALESCE ( - 61, + + 13 ) - SUM ( ALL - NULLIF ( - 56, 42 ) ) * 21
----
-582

query I rowsort
SELECT 28 * + + 73 AS col2
----
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT 35 + + COUNT( * ) * + + 28 * - 90 AS col1
----
-2485

skipif mysql # not compatible
query I rowsort label-3689
SELECT 35 + + COUNT ( * ) * + + 28 * - 90 AS col1
----
-2485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3690
SELECT 70 - - CASE 77 WHEN + - 52 THEN NULL WHEN - 72 THEN NULL ELSE + 8 * - CAST( + ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + COUNT( * ) + COALESCE ( + 65 + - 67 * - 4, + 60 ) END + + COALESCE ( - CAST( NULL AS SIGNED ), - CASE + 90 WHEN NULLIF ( - 79, 2 / + 70 + + 7 * 30 ) + + COUNT( * ) * + 26 THEN 90 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT 70 - - CASE 77 WHEN + - 52 THEN NULL WHEN - 72 THEN NULL ELSE + 8 * - CAST ( + ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + COUNT ( * ) + COALESCE ( + 65 + - 67 * - 4, + 60 ) END + + COALESCE ( - CAST ( NULL AS INTEGER ), - CASE + 90 WHEN NULLIF ( - 79, 2 / + 70 + + 7 * 30 ) + + COUNT ( * ) * + 26 THEN 90 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT 44 + + 76 + - - ( - 41 ) + + + ( + COUNT( * ) ) * + 47 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-3691
SELECT 44 + + 76 + - - ( - 41 ) + + + ( + COUNT ( * ) ) * + 47 AS col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT ALL - COALESCE ( - 13, - + 38 DIV 31 * + 38 * - - 90, + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL - COALESCE ( - 13, - + 38 / 31 * + 38 * - - 90, + 13 )
----
13

query II rowsort
SELECT COALESCE ( + 91, 25, 64 + + 93 + - 19 - + - 99, - + 36 ) AS col0, - 71 + + 44 AS col2
----
91
-27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3695
SELECT ALL - 89, CAST( NULL AS SIGNED ) * - 49 * - COUNT( * ) + + 40 - - 30 * - - SUM( ALL + 68 ) AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-3695
SELECT ALL - 89, CAST ( NULL AS INTEGER ) * - 49 * - COUNT ( * ) + + 40 - - 30 * - - SUM ( ALL + 68 ) AS col0
----
-89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT - 52 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 52 / - 85
----
0

query I rowsort
SELECT DISTINCT - 51 * 20 col2
----
-1020

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT DISTINCT - 78 DIV + 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT - 78 / + 27 AS col2
----
-2

query I rowsort
SELECT ALL + NULLIF ( - 14, + 17 + - 74 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT - 42 + - CAST( NULL AS SIGNED ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT - 42 + - CAST ( NULL AS INTEGER ) + + 59
----
NULL

query II rowsort
SELECT DISTINCT + + 21 AS col0, 28
----
21
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT + - 22 * - ( - - 10 ) + + COUNT( ALL + 44 ) * 71
----
291

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + - 22 * - ( - - 10 ) + + COUNT ( ALL + 44 ) * 71
----
291

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

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

query II rowsort
SELECT DISTINCT + 53 AS col0, - 24 * + 74 + 50 - - - 8 * NULLIF ( 61, + 42 ) col2
----
53
-2214

query I rowsort
SELECT - - 69 * - 15 AS col2
----
-1035

query I rowsort
SELECT DISTINCT + COALESCE ( + COALESCE ( - ( + 44 ), - 85 * - COALESCE ( + + ( 80 ), + + 48 * + 55 ) + 25 ), 86 - - ( + 39 ) )
----
-44

query II rowsort
SELECT - 64 * + 60 * + 76 + - 40 + + - 22 AS col2, + 37 * + - 16 + + - 15 col2
----
-291902
-607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT CASE - COUNT( * ) WHEN - COUNT( * ) THEN + 34 * SUM( - NULLIF ( + 95, - - 48 * - 48 + - + 93 * + ( - CAST( + 57 AS SIGNED ) ) ) ) ELSE NULL END col1
----
-3230

skipif mysql # not compatible
query I rowsort label-3708
SELECT CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN + 34 * SUM ( - NULLIF ( + 95, - - 48 * - 48 + - + 93 * + ( - CAST ( + 57 AS INTEGER ) ) ) ) ELSE NULL END col1
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT - - ( 55 ) * - 63 * + 24 + + 25 * + + MAX( DISTINCT + - 88 ) AS col2
----
-85360

skipif mysql # not compatible
query I rowsort label-3709
SELECT - - ( 55 ) * - 63 * + 24 + + 25 * + + MAX ( DISTINCT + - 88 ) AS col2
----
-85360

query I rowsort
SELECT + 17 + + + 58 * - - 89 * 70 AS col1
----
361357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3711
SELECT DISTINCT CAST( NULL AS SIGNED ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 10
----
NULL

query II rowsort
SELECT DISTINCT + 72 + - + 59, 52 AS col2
----
13
52

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

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

query I rowsort
SELECT DISTINCT ( + - 59 ) + + 65
----
6

query I rowsort
SELECT + 19 + - 61
----
-42

query I rowsort
SELECT + 7 * + + 51
----
357

query I rowsort
SELECT - CASE - - 24 WHEN + 34 + - 35 THEN 73 END AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-3718
SELECT 69 AS col0, - ( - COUNT ( * ) )
----
69
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3719
SELECT - COUNT( DISTINCT 20 ) + + 63 DIV + - 73 + + NULLIF ( + 86, - CAST( + 53 AS SIGNED ) + - - 65 ) + + 11 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3719
SELECT - COUNT ( DISTINCT 20 ) + + 63 / + - 73 + + NULLIF ( + 86, - CAST ( + 53 AS INTEGER ) + - - 65 ) + + 11 AS col2
----
96

query I rowsort
SELECT - NULLIF ( + 69, 53 )
----
-69

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

skipif mysql # not compatible
query I rowsort label-3721
SELECT - 65 + 32 + - COUNT ( * ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + 76 * - + 54 * + ( + + CASE - - 87 WHEN - - 8 + - - 71 THEN COUNT( * ) WHEN - COUNT( * ) * - 13 THEN NULL ELSE 78 END )
----
-320112

skipif mysql # not compatible
query I rowsort label-3722
SELECT + 76 * - + 54 * + ( + + CASE - - 87 WHEN - - 8 + - - 71 THEN COUNT ( * ) WHEN - COUNT ( * ) * - 13 THEN NULL ELSE 78 END )
----
-320112

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

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

query II rowsort
SELECT ALL 67 AS col0, 53
----
67
53

query II rowsort
SELECT + 11 * 20 AS col0, + 90 AS col0
----
220
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL - 64 * COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - 64 * COUNT ( * ) AS col1
----
-64

query II rowsort
SELECT ALL 76, - 78 col1
----
76
-78

query II rowsort
SELECT DISTINCT + 47 AS col2, 18 AS col0
----
47
18

query I rowsort
SELECT - 40 * - + 28 + 64 AS col1
----
1184

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL - 70 * 88 * - COUNT( * )
----
6160

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL - 70 * 88 * - COUNT ( * )
----
6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) - 49 - + 0 * COALESCE ( + 49, + 92 * CAST( NULL AS SIGNED ) * AVG ( - + 28 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) - 49 - + 0 * COALESCE ( + 49, + 92 * CAST ( NULL AS INTEGER ) * AVG ( - + 28 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3732
SELECT ALL + - COUNT( * ) AS col1, + 81 AS col0, + + ( - CAST( NULL AS SIGNED ) ) + + + ( + - 33 ) + - 30 * - ( + - 67 ) * + - CAST( NULL AS SIGNED ) AS col1
----
-1
81
NULL

skipif mysql # not compatible
query III rowsort label-3732
SELECT ALL + - COUNT ( * ) AS col1, + 81 AS col0, + + ( - CAST ( NULL AS INTEGER ) ) + + + ( + - 33 ) + - 30 * - ( + - 67 ) * + - CAST ( NULL AS INTEGER ) AS col1
----
-1
81
NULL

query I rowsort
SELECT - + 15 * 93
----
-1395

onlyif mysql # aggregate syntax: 
query II rowsort label-3734
SELECT SUM( DISTINCT 39 ), 64 AS col2
----
39
64

skipif mysql # not compatible
query II rowsort label-3734
SELECT SUM ( DISTINCT 39 ), 64 AS col2
----
39
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT DISTINCT + + 16 DIV - 20 * 5 + - 4 DIV 96 * - - 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + + 16 / - 20 * 5 + - 4 / 96 * - - 27 AS col2
----
0

query I rowsort
SELECT ALL - + 50 * - - ( 57 ) + + + 59 - 38 + - 72 + + 0 + 7 - 74 * + 63 + 79 AS col2
----
-7477

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT - ( COUNT( * ) ) - - 93 + + 82 + 89 * 48
----
4446

skipif mysql # not compatible
query I rowsort label-3737
SELECT - ( COUNT ( * ) ) - - 93 + + 82 + 89 * 48
----
4446

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + 43 / - CASE SUM( + - 6 ) WHEN + 29 THEN 65 ELSE NULL END / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + 43 / - CASE SUM ( + - 6 ) WHEN + 29 THEN 65 ELSE NULL END / - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT 74 * - 48 - + COUNT( * )
----
-3553

skipif mysql # not compatible
query I rowsort label-3739
SELECT 74 * - 48 - + COUNT ( * )
----
-3553

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ALL - 10 * - 1 * - + NULLIF ( + 66, + - MAX( 48 ) ) + 31 + + - 14 AS col1
----
-643

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - 10 * - 1 * - + NULLIF ( + 66, + - MAX ( 48 ) ) + 31 + + - 14 AS col1
----
-643

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT ALL + ( + 27 ) * - 47 * - 33 * - + 45 + - SUM( + 47 ) + 75
----
-1884437

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL + ( + 27 ) * - 47 * - 33 * - + 45 + - SUM ( + 47 ) + 75
----
-1884437

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + COALESCE ( + + 63, COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-3742
SELECT + COALESCE ( + + 63, COUNT ( * ) )
----
63

query I rowsort
SELECT COALESCE ( + + 44, - ( + 46 ) )
----
44

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

skipif mysql # not compatible
query I rowsort label-3744
SELECT - + 14 + + 26 + + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT SUM( ( - 36 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-3745
SELECT SUM ( ( - 36 ) )
----
-36

query I rowsort
SELECT ALL - + 53 * + 47 AS col0
----
-2491

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ( MIN( + 51 ) ) col1
----
51

skipif mysql # not compatible
query I rowsort label-3747
SELECT ( MIN ( + 51 ) ) col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT + - 33 - + 82 * - CAST( MAX( ALL + 33 ) AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT + - 33 - + 82 * - CAST ( MAX ( ALL + 33 ) AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + - 25, - 91 + - 14 )
----
-25

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

skipif mysql # not compatible
query I rowsort label-3750
SELECT + 78 + CAST ( + + 48 AS INTEGER ) col1
----
126

query I rowsort
SELECT - 89 * + + 52
----
-4628

query II rowsort
SELECT - 7 - - 18 AS col0, + 83 AS col2
----
11
83

query I rowsort
SELECT - ( + + NULLIF ( + + 50, - 73 / - + 50 ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT - 83 + 61 + - - 55 - + + 76 + + - 28 * - 72 + - CASE - + 67 WHEN - - 68 * NULLIF ( + 6, - 64 * 28 ) * + 94 THEN NULL WHEN - 16 + - 77 * - COUNT( * ) THEN 15 + 82 WHEN COUNT( * ) * ( 0 * 53 ) THEN - 28 + + 89 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT - 83 + 61 + - - 55 - + + 76 + + - 28 * - 72 + - CASE - + 67 WHEN - - 68 * NULLIF ( + 6, - 64 * 28 ) * + 94 THEN NULL WHEN - 16 + - 77 * - COUNT ( * ) THEN 15 + 82 WHEN COUNT ( * ) * ( 0 * 53 ) THEN - 28 + + 89 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3755
SELECT ALL 53 * - + MAX( ALL - NULLIF ( - 67, - 66 ) ), + 9 - 84 * COUNT( * ) AS col0
----
-3551
-75

skipif mysql # not compatible
query II rowsort label-3755
SELECT ALL 53 * - + MAX ( ALL - NULLIF ( - 67, - 66 ) ), + 9 - 84 * COUNT ( * ) AS col0
----
-3551
-75

query I rowsort
SELECT - 59 + - 23
----
-82

query I rowsort
SELECT DISTINCT 88 * + 73 AS col1
----
6424

query I rowsort
SELECT ALL 47 * - + 58 AS col1
----
-2726

query I rowsort
SELECT ALL 94 * - 15 AS col0
----
-1410

query I rowsort
SELECT 79 + - 58 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL 87 + 77 - COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL 87 + 77 - COUNT ( * )
----
163

query I rowsort
SELECT 98 * - 13 AS col2
----
-1274

query II rowsort
SELECT 72 + + 83 - - 46, - 13 col1
----
201
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-3764
SELECT ALL 21 + 82 AS col2, + 80 DIV + 53 AS col1
----
103
1

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL 21 + 82 AS col2, + 80 / + 53 AS col1
----
103
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3765
SELECT - + 21 DIV + 46 - - 67 * - MAX( + 80 ) + - 25 AS col0
----
-5385

skipif mysql # not compatible
query I rowsort label-3765
SELECT - + 21 / + 46 - - 67 * - MAX ( + 80 ) + - 25 AS col0
----
-5385

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + 22 * + + COUNT( * ) * - 71 + - + 30 - - 42 - 41 * + COUNT( * ) AS col2
----
-1591

skipif mysql # not compatible
query I rowsort label-3766
SELECT + 22 * + + COUNT ( * ) * - 71 + - + 30 - - 42 - 41 * + COUNT ( * ) AS col2
----
-1591

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL COALESCE ( + 25, - COUNT( * ), + 18 ) + 80 + + - COUNT( * ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL COALESCE ( + 25, - COUNT ( * ), + 18 ) + 80 + + - COUNT ( * ) AS col2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-3768
SELECT - 9 DIV + 94 + + + 96 * + 24
----
2304

skipif mysql # not compatible
query I rowsort label-3768
SELECT - 9 / + 94 + + + 96 * + 24
----
2304

query I rowsort
SELECT ALL - + 66 col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT 5 + + - 55 * - COUNT( * ) * - SUM( - 66 ) AS col0
----
3635

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT 5 + + - 55 * - COUNT ( * ) * - SUM ( - 66 ) AS col0
----
3635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3771
SELECT - 34 * + NULLIF ( - 86, + 73 * - CASE - + NULLIF ( + COUNT( * ), + 37 ) WHEN - 7 * 39 - - + 29 THEN + 37 * CAST( + COALESCE ( 56, - 56 - + 72, 92, + 10 * - 39 + 53 / 91 ) AS SIGNED ) WHEN - ( COUNT( * ) ) + 60 THEN - CAST( NULL AS SIGNED ) * 77 END ) * 20 + 70 * SUM( DISTINCT - 38 ) AS col2
----
55820

skipif mysql # not compatible
query I rowsort label-3771
SELECT - 34 * + NULLIF ( - 86, + 73 * - CASE - + NULLIF ( + COUNT ( * ), + 37 ) WHEN - 7 * 39 - - + 29 THEN + 37 * CAST ( + COALESCE ( 56, - 56 - + 72, 92, + 10 * - 39 + 53 / 91 ) AS INTEGER ) WHEN - ( COUNT ( * ) ) + 60 THEN - CAST ( NULL AS INTEGER ) * 77 END ) * 20 + 70 * SUM ( DISTINCT - 38 ) AS col2
----
55820

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3773
SELECT DISTINCT + 65 * + - COALESCE ( + - 16, + 74 ) - + - CASE - 29 WHEN 16 THEN 53 END / 15 * 95 col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3773
SELECT DISTINCT + 65 * + - COALESCE ( + - 16, + 74 ) - + - CASE - 29 WHEN 16 THEN 53 END / 15 * 95 col1, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT - 6 * - 28 AS col1, + MAX( DISTINCT COALESCE ( - 18, - 26 ) ) AS col0
----
168
-18

skipif mysql # not compatible
query II rowsort label-3774
SELECT - 6 * - 28 AS col1, + MAX ( DISTINCT COALESCE ( - 18, - 26 ) ) AS col0
----
168
-18

query I rowsort
SELECT 11 * - - 46 col1
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - - 84 * SUM( ALL + - 40 ) + + 98
----
-3262

skipif mysql # not compatible
query I rowsort label-3776
SELECT - - 84 * SUM ( ALL + - 40 ) + + 98
----
-3262

query II rowsort
SELECT 13 * - 90, - 95 col1
----
-1170
-95

query II rowsort
SELECT NULLIF ( + 83, 11 ) AS col2, 55 - - 16 AS col0
----
83
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT MIN( ALL - 79 ) * + + 9 * + COUNT( * )
----
-711

skipif mysql # not compatible
query I rowsort label-3779
SELECT MIN ( ALL - 79 ) * + + 9 * + COUNT ( * )
----
-711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT CAST( NULL AS SIGNED ) + + CAST( + 27 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT CAST ( NULL AS INTEGER ) + + CAST ( + 27 AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT 24 AS col0, + 43
----
24
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT 25 + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3784
SELECT 25 + COUNT ( * )
----
26

query I rowsort
SELECT 28 * + 95
----
2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT 35 + - 24 * - CAST( COUNT( * ) AS SIGNED ) - - 14 + - + COALESCE ( - ( - 42 ), + COUNT( * ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3786
SELECT 35 + - 24 * - CAST ( COUNT ( * ) AS INTEGER ) - - 14 + - + COALESCE ( - ( - 42 ), + COUNT ( * ) ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3787
SELECT ALL + 9 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

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

query I rowsort
SELECT 54 * + 64
----
3456

query I rowsort
SELECT DISTINCT + ( - - 70 ) * 10 AS col1
----
700

query I rowsort
SELECT 70 + - - 33
----
103

query II rowsort
SELECT DISTINCT 13, - 34 AS col2
----
13
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT - 19 + - + 12 + 28 * + + 66 - - + COUNT( * ) * COUNT( * )
----
1818

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT - 19 + - + 12 + 28 * + + 66 - - + COUNT ( * ) * COUNT ( * )
----
1818

onlyif mysql # aggregate syntax: 
query II rowsort label-3793
SELECT 24, ( 37 ) - - - COUNT( * ) AS col2
----
24
36

skipif mysql # not compatible
query II rowsort label-3793
SELECT 24, ( 37 ) - - - COUNT ( * ) AS col2
----
24
36

query I rowsort
SELECT 69 * - 14 col2
----
-966

query I rowsort
SELECT ALL 40 + - 43 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT NULLIF ( - + 42, - 42 ) + 98 AS col0, - COUNT( * ) + + ( 51 ) AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-3796
SELECT NULLIF ( - + 42, - 42 ) + 98 AS col0, - COUNT ( * ) + + ( 51 ) AS col0
----
NULL
50

query I rowsort
SELECT ALL - 88 + - - 87 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + COUNT( ALL + - 11 ) * + 48
----
48

skipif mysql # not compatible
query I rowsort label-3798
SELECT + COUNT ( ALL + - 11 ) * + 48
----
48

query I rowsort
SELECT DISTINCT 46 + - 72 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3800
SELECT + 96 AS col0, - COALESCE ( + 20, + 99 * 20 ) + + + COUNT( ALL 32 ) col1
----
96
-19

skipif mysql # not compatible
query II rowsort label-3800
SELECT + 96 AS col0, - COALESCE ( + 20, + 99 * 20 ) + + + COUNT ( ALL 32 ) col1
----
96
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3801
SELECT + + 2, 56 - + + 8 * - COUNT( ALL + 47 ) AS col2
----
2
64

skipif mysql # not compatible
query II rowsort label-3801
SELECT + + 2, 56 - + + 8 * - COUNT ( ALL + 47 ) AS col2
----
2
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3802
SELECT 90 - - + 72 * + COUNT( * ) AS col2, 62 * + + 53
----
162
3286

skipif mysql # not compatible
query II rowsort label-3802
SELECT 90 - - + 72 * + COUNT ( * ) AS col2, 62 * + + 53
----
162
3286

query I rowsort
SELECT - ( 99 ) * + 54 - 97 + - 12 * + 90
----
-6523

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT - - 94 DIV - 47 + - 43 + 56
----
11

skipif mysql # not compatible
query I rowsort label-3805
SELECT - - 94 / - 47 + - 43 + 56
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL ( + COUNT( * ) ) * COUNT( * ) - + + 10
----
-9

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL ( + COUNT ( * ) ) * COUNT ( * ) - + + 10
----
-9

query I rowsort
SELECT + + NULLIF ( 71, - 77 + 30 - 79 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3808
SELECT ALL - - CAST( NULL AS DECIMAL ) * ( + 94 ) * - 61 + - - CASE + 24 WHEN - 20 THEN NULL WHEN ( 80 ) THEN 82 END - + MIN( ALL 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - - CAST ( NULL AS REAL ) * ( + 94 ) * - 61 + - - CASE + 24 WHEN - 20 THEN NULL WHEN ( 80 ) THEN 82 END - + MIN ( ALL 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT DISTINCT 62 * - NULLIF ( - 36, - + 59 * - + ( + 22 ) * + 79 + - ( - COUNT( * ) ) ) * 95 col1
----
212040

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT 62 * - NULLIF ( - 36, - + 59 * - + ( + 22 ) * + 79 + - ( - COUNT ( * ) ) ) * 95 col1
----
212040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3810
SELECT ALL + + 85 * - COUNT( * ) DIV - COUNT( * ) + - 90 * + - COUNT( 57 ) - - COUNT( * )
----
176

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + + 85 * - COUNT ( * ) / - COUNT ( * ) + - 90 * + - COUNT ( 57 ) - - COUNT ( * )
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT DISTINCT - 7 AS col1, 15 * - 58 + + COUNT( * ) + - + 30
----
-7
-899

skipif mysql # not compatible
query II rowsort label-3811
SELECT DISTINCT - 7 AS col1, 15 * - 58 + + COUNT ( * ) + - + 30
----
-7
-899

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT 56 * 33 * + 23 - AVG ( DISTINCT + 0 ) + - 15 + 35 - + - CASE - COUNT( - 57 ) WHEN MIN( DISTINCT + + 22 ) + + + 49 THEN + 14 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT 56 * 33 * + 23 - AVG ( DISTINCT + 0 ) + - 15 + 35 - + - CASE - COUNT ( - 57 ) WHEN MIN ( DISTINCT + + 22 ) + + + 49 THEN + 14 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL 24 - - COALESCE ( - 35, + - SUM( - 39 ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL 24 - - COALESCE ( - 35, + - SUM ( - 39 ) ) AS col2
----
-11

query I rowsort
SELECT ( - - 9 ) / + 84 + + 16 + + - CASE - 60 WHEN + + 32 THEN + 21 END * - 86 * - 97 + - 91 * 25
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT ( + 88 ) * - 98 + - CAST( + + 13 AS SIGNED ) + - + 65 - + 65
----
-8767

skipif mysql # not compatible
query I rowsort label-3815
SELECT ( + 88 ) * - 98 + - CAST ( + + 13 AS INTEGER ) + - + 65 - + 65
----
-8767

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT - NULLIF ( + 9, COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - NULLIF ( + 9, COUNT ( * ) )
----
-9

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

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL CAST ( NULL AS INTEGER ) * - 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3819
SELECT DISTINCT - 23 DIV 84 DIV COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT - 23 / 84 / COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT 77 + - ( + 47 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT MIN( 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT MIN ( 84 ) AS col0
----
84

query I rowsort
SELECT ALL - 5 + - 8 col1
----
-13

query II rowsort
SELECT - 6 * - 7, - 50 AS col1
----
42
-50

query I rowsort
SELECT ALL - 33 + - + 20
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT - CASE - 66 WHEN - - CAST( NULL AS SIGNED ) * - 41 THEN 90 + 65 WHEN + 14 / ( - + COUNT( ALL - - 9 ) ) * - CAST( NULL AS SIGNED ) THEN - 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT - CASE - 66 WHEN - - CAST ( NULL AS INTEGER ) * - 41 THEN 90 + 65 WHEN + 14 / ( - + COUNT ( ALL - - 9 ) ) * - CAST ( NULL AS INTEGER ) THEN - 55 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + MAX( ALL 79 ) + - 2
----
77

skipif mysql # not compatible
query I rowsort label-3826
SELECT + MAX ( ALL 79 ) + - 2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL - 6 + - + SUM( ALL + 75 ) * + 58 * + 33
----
-143556

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - 6 + - + SUM ( ALL + 75 ) * + 58 * + 33
----
-143556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT - 70 + ( - - 80 ) * + 74 - + + 20 + - + ( + MAX( + 5 ) ) / + 13 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT - 70 + ( - - 80 ) * + 74 - + + 20 + - + ( + MAX ( + 5 ) ) / + 13 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL + COUNT( * ) + - 23 * - 3 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + COUNT ( * ) + - 23 * - 3 AS col2
----
70

query I rowsort
SELECT DISTINCT + 61 * - 75
----
-4575

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

query I rowsort
SELECT DISTINCT - - CASE + - 55 WHEN - AVG ( - 7 ) * + 6 * - 27 THEN - 76 + - 25 WHEN + 41 THEN - + 95 WHEN + 53 + - 22 * - 81 THEN + + 11 / 64 END + + CASE + 14 + 3 / - 93 WHEN 91 THEN NULL WHEN + 57 / 44 THEN 20 END AS col0
----
NULL

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

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

query I rowsort
SELECT - 9 + - + 48 AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3835
SELECT - COALESCE ( + + ( - - 47 ), 30, ( - + 46 ) * ( 76 ) * ( + 95 ) + - 35 - COUNT( * ) DIV ( - 92 ) DIV 45 ) + 10 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3835
SELECT - COALESCE ( + + ( - - 47 ), 30, ( - + 46 ) * ( 76 ) * ( + 95 ) + - 35 - COUNT ( * ) / ( - 92 ) / 45 ) + 10 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3836
SELECT - + MAX( DISTINCT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) + 47 col0, ( - - 93 ) AS col2
----
NULL
93

skipif mysql # not compatible
query II rowsort label-3836
SELECT - + MAX ( DISTINCT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) + 47 col0, ( - - 93 ) AS col2
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + + 70 * + 63 * 97 - - + CASE 39 WHEN - 76 THEN 64 / - 88 * - 13 * COUNT( * ) * ( + + 90 ) * 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT + + 70 * + 63 * 97 - - + CASE 39 WHEN - 76 THEN 64 / - 88 * - 13 * COUNT ( * ) * ( + + 90 ) * 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3838
SELECT - - 1 + - - ( COUNT( 38 ) ) AS col0, 5
----
2
5

skipif mysql # not compatible
query II rowsort label-3838
SELECT - - 1 + - - ( COUNT ( 38 ) ) AS col0, 5
----
2
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3839
SELECT + - 95 - - - COUNT( * ) + - 73 + - 56 + + 46 * - 78 * - 20 + - + 14 + + 68 AS col1, + CAST( - - 30 AS SIGNED )
----
71589
30

skipif mysql # not compatible
query II rowsort label-3839
SELECT + - 95 - - - COUNT ( * ) + - 73 + - 56 + + 46 * - 78 * - 20 + - + 14 + + 68 AS col1, + CAST ( - - 30 AS INTEGER )
----
71589
30

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT - + COALESCE ( - + 39, - - CAST( + + CASE + 34 WHEN - 22 THEN NULL WHEN + 53 + 50 THEN 26 / + + 49 * 7 - - + CAST( NULL AS SIGNED ) - 6 WHEN + 27 THEN 31 ELSE NULL END AS SIGNED ) + + MAX( DISTINCT 18 ) * - COUNT( DISTINCT - 10 ) ) + NULLIF ( 83 - 18, 58 ) col0
----
104

skipif mysql # not compatible
query I rowsort label-3841
SELECT - + COALESCE ( - + 39, - - CAST ( + + CASE + 34 WHEN - 22 THEN NULL WHEN + 53 + 50 THEN 26 / + + 49 * 7 - - + CAST ( NULL AS INTEGER ) - 6 WHEN + 27 THEN 31 ELSE NULL END AS INTEGER ) + + MAX ( DISTINCT 18 ) * - COUNT ( DISTINCT - 10 ) ) + NULLIF ( 83 - 18, 58 ) col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3842
SELECT ALL - 26 * - CAST( - - 73 AS SIGNED ) + - 57 - + + 46 * + COUNT( - 5 ) DIV - 78 * 13
----
1841

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL - 26 * - CAST ( - - 73 AS INTEGER ) + - 57 - + + 46 * + COUNT ( - 5 ) / - 78 * 13
----
1841

onlyif mysql # DIV for integer division: 
query I rowsort label-3843
SELECT ALL - 4 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 4 / - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL - + ( + + 70 ) * NULLIF ( COUNT( * ), - 89 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL - + ( + + 70 ) * NULLIF ( COUNT ( * ), - 89 ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + + 43 * + MIN( + - 7 ) AS col2
----
-301

skipif mysql # not compatible
query I rowsort label-3845
SELECT + + 43 * + MIN ( + - 7 ) AS col2
----
-301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT + 38 + + CASE - 17 WHEN MAX( + 81 ) THEN - + 42 + - 65 + + 25 * 21 WHEN + 14 THEN - COALESCE ( + COUNT( * ), - 41 ) * - - 73 / CAST( NULL AS SIGNED ) + 93 / 32 END * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT + 38 + + CASE - 17 WHEN MAX ( + 81 ) THEN - + 42 + - 65 + + 25 * 21 WHEN + 14 THEN - COALESCE ( + COUNT ( * ), - 41 ) * - - 73 / CAST ( NULL AS INTEGER ) + 93 / 32 END * - 7
----
NULL

query I rowsort
SELECT - 77 * + 11
----
-847

query II rowsort
SELECT + - 69 * + - 23, - NULLIF ( + - 75, + + 48 * 65 * + + 58 ) + 18 - + + 56 * + 34 + - 80 - + 92 AS col0
----
1587
-1983

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT COUNT( * ) * - - COUNT( * ) * COUNT( * ) + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-3849
SELECT COUNT ( * ) * - - COUNT ( * ) * COUNT ( * ) + - 99
----
-98

query I rowsort
SELECT + - 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT COUNT( * ) * + + COUNT( * ) * 19 * + 2 + + 17 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3851
SELECT COUNT ( * ) * + + COUNT ( * ) * 19 * + 2 + + 17 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3852
SELECT - 96 DIV 84 + + CAST( ( + - 64 ) AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3852
SELECT - 96 / 84 + + CAST ( ( + - 64 ) AS INTEGER ) AS col2
----
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL - 88 * + COALESCE ( + 83, + 61 * - COUNT( * ) ) * - 15 * 27 + - - 63
----
2958183

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - 88 * + COALESCE ( + 83, + 61 * - COUNT ( * ) ) * - 15 * 27 + - - 63
----
2958183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3855
SELECT ALL 33 * 14 + + - COALESCE ( - - ( - 73 ), + 26 + + - 65 + - 86 ) + - - 80 + - COUNT( * ) + - + 51 * + 57 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL 33 * 14 + + - COALESCE ( - - ( - 73 ), + 26 + + - 65 + - 86 ) + - - 80 + - COUNT ( * ) + - + 51 * + 57 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( - 93 ) + + 82 + + 58 AS col2
----
47

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

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT 58 * + - COUNT ( * ) + + COUNT ( * ) AS col0
----
-57

query I rowsort
SELECT + 65 * - 86
----
-5590

query I rowsort
SELECT ALL 71 * ( + - 94 )
----
-6674

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + 83 + + 66 + + 30 + - - 96 * CASE - COUNT( * ) WHEN 94 THEN 12 + + 15 WHEN + 15 + + 12 THEN NULL END - 9 * - 31 - + 17 + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT + 83 + + 66 + + 30 + - - 96 * CASE - COUNT ( * ) WHEN 94 THEN 12 + + 15 WHEN + 15 + + 12 THEN NULL END - 9 * - 31 - + 17 + - 72
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + CASE + 79 WHEN + 91 THEN + - 48 * 50 WHEN - + COUNT( * ) THEN NULL ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3862
SELECT + CASE + 79 WHEN + 91 THEN + - 48 * 50 WHEN - + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL MAX( DISTINCT + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL MAX ( DISTINCT + 75 )
----
75

query II rowsort
SELECT DISTINCT 45 * 25 + - 74 AS col0, + 76 AS col2
----
1051
76

query I rowsort
SELECT - ( - - 78 ) AS col2
----
-78

query I rowsort
SELECT ALL + 6 * 51 + - 21
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL CASE - 81 WHEN - 20 THEN MAX( - 92 ) + + + CASE COUNT( * ) WHEN + + COALESCE ( - + 0, - + COALESCE ( - - CAST( NULL AS SIGNED ), 44 - - 31 * 28 ) * - COUNT( * ), 50 ) + - 32 THEN 62 + + CASE 10 WHEN NULLIF ( + 72, COUNT( * ) ) + ( 93 ) THEN 38 * 60 + 8 ELSE NULL END / - 83 END WHEN 29 THEN + 14 WHEN - 55 THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL CASE - 81 WHEN - 20 THEN MAX ( - 92 ) + + + CASE COUNT ( * ) WHEN + + COALESCE ( - + 0, - + COALESCE ( - - CAST ( NULL AS INTEGER ), 44 - - 31 * 28 ) * - COUNT ( * ), 50 ) + - 32 THEN 62 + + CASE 10 WHEN NULLIF ( + 72, COUNT ( * ) ) + ( 93 ) THEN 38 * 60 + 8 ELSE NULL END / - 83 END WHEN 29 THEN + 14 WHEN - 55 THEN - 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT SUM( ALL - 99 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-3868
SELECT SUM ( ALL - 99 ) col0
----
-99

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

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

query I rowsort
SELECT + 99 * - 39
----
-3861

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT CASE + 40 WHEN - 92 + - + MAX( + 49 ) THEN NULL WHEN 31 THEN + 48 WHEN - + 91 - + - 0 THEN 93 / + - 94 + + 98 END / - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT CASE + 40 WHEN - 92 + - + MAX ( + 49 ) THEN NULL WHEN 31 THEN + 48 WHEN - + 91 - + - 0 THEN 93 / + - 94 + + 98 END / - 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT + - 5 DIV - - 35
----
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT + - 5 / - - 35
----
0

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

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

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

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

query I rowsort
SELECT - 29 + 61
----
32

query I rowsort
SELECT ALL + - 6 - + 27 * - + 34 + 4 col0
----
916

query II rowsort
SELECT - - 50 AS col0, + 40 AS col1
----
50
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT DISTINCT + MIN( + 52 ) col1
----
52

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT + MIN ( + 52 ) col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3879
SELECT DISTINCT COUNT( * ) AS col2, 21 * + 98 col0
----
1
2058

skipif mysql # not compatible
query II rowsort label-3879
SELECT DISTINCT COUNT ( * ) AS col2, 21 * + 98 col0
----
1
2058

query I rowsort
SELECT - + 98 * 60
----
-5880

query I rowsort
SELECT ( - 12 ) * - 80 - - 8 AS col1
----
968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT - CAST( - 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3882
SELECT - CAST ( - 89 AS INTEGER ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT 98 / - - CASE CAST( - 48 AS SIGNED ) WHEN COALESCE ( + 39, - 87 ) + - + CAST( NULL AS SIGNED ) + - 31 * + - 24 THEN - 13 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT 98 / - - CASE CAST ( - 48 AS INTEGER ) WHEN COALESCE ( + 39, - 87 ) + - + CAST ( NULL AS INTEGER ) + - 31 * + - 24 THEN - 13 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3884
SELECT DISTINCT - CASE + ( - CAST( + COUNT( * ) AS SIGNED ) ) WHEN + + 56 + + + 70 + + 27 THEN 17 ELSE - SUM( DISTINCT ( + 67 ) ) END + 21 * - MIN( DISTINCT - - 41 ), + 89 AS col1
----
-794
89

skipif mysql # not compatible
query II rowsort label-3884
SELECT DISTINCT - CASE + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) WHEN + + 56 + + + 70 + + 27 THEN 17 ELSE - SUM ( DISTINCT ( + 67 ) ) END + 21 * - MIN ( DISTINCT - - 41 ), + 89 AS col1
----
-794
89

query I rowsort
SELECT DISTINCT - 23 * - ( - + 9 ) AS col0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT ALL 25 + - 27 + + - ( - 6 ) * - CAST( 82 AS SIGNED ) AS col0
----
-494

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL 25 + - 27 + + - ( - 6 ) * - CAST ( 82 AS INTEGER ) AS col0
----
-494

query I rowsort
SELECT 70 * 5
----
350

query I rowsort
SELECT DISTINCT - 32 + - 83 AS col2
----
-115

query I rowsort
SELECT DISTINCT - 60 * + 40 AS col1
----
-2400

query I rowsort
SELECT ALL + 5 + - 32 col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3891
SELECT 60 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT 60 / + 81
----
0

query II rowsort
SELECT 34, - 60 AS col0
----
34
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3893
SELECT + 5 AS col2, 6 / + - COUNT( * ) + - CASE - + ( 46 ) WHEN + + 65 - - 88 THEN - - 77 WHEN - CAST( 22 AS SIGNED ) + ( + 42 ) THEN + 74 END
----
5
NULL

skipif mysql # not compatible
query II rowsort label-3893
SELECT + 5 AS col2, 6 / + - COUNT ( * ) + - CASE - + ( 46 ) WHEN + + 65 - - 88 THEN - - 77 WHEN - CAST ( 22 AS INTEGER ) + ( + 42 ) THEN + 74 END
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT 24 + + SUM( ALL + + 91 ) - 51 * COUNT( * ) * 21 AS col1
----
-956

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT 24 + + SUM ( ALL + + 91 ) - 51 * COUNT ( * ) * 21 AS col1
----
-956

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + 85 * 59 * + - SUM( ALL + + 74 ) + - 18 * - - 96 + + 57 AS col1
----
-372781

skipif mysql # not compatible
query I rowsort label-3895
SELECT + 85 * 59 * + - SUM ( ALL + + 74 ) + - 18 * - - 96 + + 57 AS col1
----
-372781

query I rowsort
SELECT ALL + 6 + + 66 + + + 56 col2
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-3897
SELECT + 16 AS col0, COUNT( - 30 ) + - 17 col1
----
16
-16

skipif mysql # not compatible
query II rowsort label-3897
SELECT + 16 AS col0, COUNT ( - 30 ) + - 17 col1
----
16
-16

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

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

query II rowsort
SELECT ALL 72 AS col1, 95 * + 36 AS col0
----
72
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT DISTINCT 70 - + - 77 + 64 + + COUNT( * ) - - 33 + + 30 + 96 - + 46 * 19 * COUNT( * ) * 32 / - SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT 70 - + - 77 + 64 + + COUNT ( * ) - - 33 + + 30 + 96 - + 46 * 19 * COUNT ( * ) * 32 / - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 7 + - 65 * 72
----
-4673

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - 16 + - CASE - + 52 WHEN + COUNT( * ) THEN - COUNT( * ) * + + 76 * - ( + 15 ) * + COUNT( * ) * + 50 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT - 16 + - CASE - + 52 WHEN + COUNT ( * ) THEN - COUNT ( * ) * + + 76 * - ( + 15 ) * + COUNT ( * ) * + 50 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3903
SELECT - - CASE + - 15 WHEN COUNT( * ) THEN + 0 + + 59 - - 9 * 25 DIV + COUNT( * ) WHEN + 41 THEN NULL ELSE - 81 END
----
-81

skipif mysql # not compatible
query I rowsort label-3903
SELECT - - CASE + - 15 WHEN COUNT ( * ) THEN + 0 + + 59 - - 9 * 25 / + COUNT ( * ) WHEN + 41 THEN NULL ELSE - 81 END
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL - CAST( + ( 81 ) AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - CAST ( + ( 81 ) AS INTEGER )
----
-81

query I rowsort
SELECT 95 + - 43 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + 34 * + MAX( DISTINCT - + 44 )
----
-1496

skipif mysql # not compatible
query I rowsort label-3906
SELECT + 34 * + MAX ( DISTINCT - + 44 )
----
-1496

onlyif mysql # aggregate syntax: 
query II rowsort label-3907
SELECT DISTINCT + 37 * COUNT( * ), - 37 * COUNT( * ) * + 86 + + + 12 AS col1
----
37
-3170

skipif mysql # not compatible
query II rowsort label-3907
SELECT DISTINCT + 37 * COUNT ( * ), - 37 * COUNT ( * ) * + 86 + + + 12 AS col1
----
37
-3170

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

skipif mysql # not compatible
query I rowsort label-3908
SELECT MAX ( + + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 34 * - - COALESCE ( - + COUNT( * ), - 68 )
----
-34

skipif mysql # not compatible
query I rowsort label-3909
SELECT 34 * - - COALESCE ( - + COUNT ( * ), - 68 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL SUM( 21 )
----
21

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL SUM ( 21 )
----
21

query I rowsort
SELECT 11 + - 52 AS col2
----
-41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT + NULLIF ( 37, + - CAST( + ( 56 ) AS SIGNED ) - - + COUNT( - 79 ) ) + + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-3913
SELECT + NULLIF ( 37, + - CAST ( + ( 56 ) AS INTEGER ) - - + COUNT ( - 79 ) ) + + COUNT ( * )
----
38

query II rowsort
SELECT - - 44, ( - ( - 66 ) ) col1
----
44
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT - 16 DIV - 94 + - SUM( DISTINCT - 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3915
SELECT - 16 / - 94 + - SUM ( DISTINCT - 39 ) AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT DISTINCT 85 DIV 49 * + - 63 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT 85 / 49 * + - 63 AS col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3917
SELECT ALL - COUNT( DISTINCT + 93 ) + - 27 DIV - - 86
----
-1

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - COUNT ( DISTINCT + 93 ) + - 27 / - - 86
----
-1

query I rowsort
SELECT - 73 + - 74 AS col0
----
-147

query I rowsort
SELECT 80 - + + 10 * 0 + - NULLIF ( 61, - 9 + - + 72 * - 31 + 67 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT + 61 + - COUNT( * ) * - - 82 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + 61 + - COUNT ( * ) * - - 82 AS col2
----
-21

query I rowsort
SELECT ALL 56 + 30 - 51 AS col1
----
35

query II rowsort
SELECT - 89, - 13 * - 81 AS col0
----
-89
1053

query II rowsort
SELECT DISTINCT - 36 + 91 AS col2, 22
----
55
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3924
SELECT ALL - COUNT( * ) + + 21 * + 77 col0, - COALESCE ( CASE + 23 WHEN + - 60 / + ( - COUNT( * ) ) THEN NULL ELSE + + ( ( - - MAX( + + CAST( NULL AS SIGNED ) ) ) ) END, + 4, 92 ) AS col2
----
1616
-4

skipif mysql # not compatible
query II rowsort label-3924
SELECT ALL - COUNT ( * ) + + 21 * + 77 col0, - COALESCE ( CASE + 23 WHEN + - 60 / + ( - COUNT ( * ) ) THEN NULL ELSE + + ( ( - - MAX ( + + CAST ( NULL AS INTEGER ) ) ) ) END, + 4, 92 ) AS col2
----
1616
-4

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

skipif mysql # not compatible
query I rowsort label-3925
SELECT ( CAST ( + 16 AS INTEGER ) ) / + ( CAST ( NULL AS INTEGER ) ) + - 22
----
NULL

query I rowsort
SELECT ALL - 46 * - - 96
----
-4416

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

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

query I rowsort
SELECT ALL - ( 50 ) col2
----
-50

query I rowsort
SELECT ALL - 19 + 1 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT + COUNT( * ) + + NULLIF ( COUNT( * ), + + MAX( ALL 2 ) + + - 7 ) * 34 - 31 col0
----
4

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( COUNT ( * ), + + MAX ( ALL 2 ) + + - 7 ) * 34 - 31 col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT ALL + 20 - COUNT( * ) AS col2, - 32 col0
----
19
-32

skipif mysql # not compatible
query II rowsort label-3931
SELECT ALL + 20 - COUNT ( * ) AS col2, - 32 col0
----
19
-32

query I rowsort
SELECT 88 * 0
----
0

query I rowsort
SELECT ALL + 74 * + + 9
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT + 2 - - 34 - + 22 * + + SUM( + 24 ) * - 5 + - - COUNT( * )
----
2677

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT + 2 - - 34 - + 22 * + + SUM ( + 24 ) * - 5 + - - COUNT ( * )
----
2677

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3935
SELECT 4 + - + 90 + - 71 + - + CAST( - 92 AS SIGNED ), - 98 * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-3935
SELECT 4 + - + 90 + - 71 + - + CAST ( - 92 AS INTEGER ), - 98 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL - NULLIF ( + 20, - COALESCE ( + + 48, + ( + - 1 ) ) + + COUNT( DISTINCT - 49 ) + + 75 - 81 - - - 30 ) * + 65
----
-1300

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - NULLIF ( + 20, - COALESCE ( + + 48, + ( + - 1 ) ) + + COUNT ( DISTINCT - 49 ) + + 75 - 81 - - - 30 ) * + 65
----
-1300

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT 79 DIV 27 * + COUNT( + + 37 )
----
2

skipif mysql # not compatible
query I rowsort label-3938
SELECT 79 / 27 * + COUNT ( + + 37 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3939
SELECT - 88 DIV - - 64 - + CAST( NULL AS DECIMAL ), 58 DIV - COUNT( * ) AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-3939
SELECT - 88 / - - 64 - + CAST ( NULL AS REAL ), 58 / - COUNT ( * ) AS col2
----
NULL
-58

query I rowsort
SELECT 10 * 82 * 39
----
31980

query I rowsort
SELECT + 97 + 44 AS col1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-3942
SELECT DISTINCT + CASE 11 WHEN + 23 THEN + 53 WHEN COUNT( * ) THEN NULL END AS col1, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3942
SELECT DISTINCT + CASE 11 WHEN + 23 THEN + 53 WHEN COUNT ( * ) THEN NULL END AS col1, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT ALL - - 35 * 25 AS col2, 33 * - 69 AS col1
----
875
-2277

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT COUNT( * ) * + 97 * + 74 + + 4
----
7182

skipif mysql # not compatible
query I rowsort label-3944
SELECT COUNT ( * ) * + 97 * + 74 + + 4
----
7182

query I rowsort
SELECT ALL 17 * 20
----
340

query I rowsort
SELECT DISTINCT 56 + + + 96 col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT - ( - NULLIF ( + ( + + COUNT( * ) ), ( - NULLIF ( - MAX( + 86 ), + - 39 * - 99 + - 42 + - - COUNT( * ) + 92 * 61 + 90 + + - 5 ) ) ) ) * + NULLIF ( + 30, 88 * + 28 ) * 85 AS col0
----
2550

skipif mysql # not compatible
query I rowsort label-3947
SELECT - ( - NULLIF ( + ( + + COUNT ( * ) ), ( - NULLIF ( - MAX ( + 86 ), + - 39 * - 99 + - 42 + - - COUNT ( * ) + 92 * 61 + 90 + + - 5 ) ) ) ) * + NULLIF ( + 30, 88 * + 28 ) * 85 AS col0
----
2550

query I rowsort
SELECT + + 6 + - + 31 * + 21 + ( - 58 )
----
-703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL + CASE - COUNT( * ) WHEN + 12 THEN + ( + CAST( NULL AS SIGNED ) ) - 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL + CASE - COUNT ( * ) WHEN + 12 THEN + ( + CAST ( NULL AS INTEGER ) ) - 82 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT + 71 * - 15 * + 5 + COUNT( * ) * + 63 AS col1
----
-5262

skipif mysql # not compatible
query I rowsort label-3950
SELECT + 71 * - 15 * + 5 + COUNT ( * ) * + 63 AS col1
----
-5262

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - COUNT( * ) + + COUNT( + + 81 ) + + 27 + - ( 78 ) + + + 24 + - 92 * COUNT( * ) + - + 95
----
-214

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - COUNT ( * ) + + COUNT ( + + 81 ) + + 27 + - ( 78 ) + + + 24 + - 92 * COUNT ( * ) + - + 95
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3952
SELECT DISTINCT NULLIF ( - + 98, + + ( CASE 38 WHEN + 44 THEN + CAST( NULL AS SIGNED ) WHEN - + 8 THEN NULL ELSE NULL END ) * + 72 ) + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT NULLIF ( - + 98, + + ( CASE 38 WHEN + 44 THEN + CAST ( NULL AS INTEGER ) WHEN - + 8 THEN NULL ELSE NULL END ) * + 72 ) + - COUNT ( * )
----
-99

query I rowsort
SELECT ALL + 51 + - 95 + 96 col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3954
SELECT + ( 41 ) * + - CAST( NULL AS SIGNED ) AS col0, - 98 * + 85 + - - 54 + 71
----
NULL
-8205

skipif mysql # not compatible
query II rowsort label-3954
SELECT + ( 41 ) * + - CAST ( NULL AS INTEGER ) AS col0, - 98 * + 85 + - - 54 + 71
----
NULL
-8205

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + COUNT( + 95 ) * - + ( ( + 44 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-3956
SELECT + COUNT ( + 95 ) * - + ( ( + 44 ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT CASE + + 90 WHEN + 44 THEN - COUNT( * ) * - 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT CASE + + 90 WHEN + 44 THEN - COUNT ( * ) * - 42 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3958
SELECT COALESCE ( - 90, 56 DIV - NULLIF ( + 78, - NULLIF ( - - 52, - 50 * - 32 ) ) + + 75, 75 * - MAX( + 68 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-3958
SELECT COALESCE ( - 90, 56 / - NULLIF ( + 78, - NULLIF ( - - 52, - 50 * - 32 ) ) + + 75, 75 * - MAX ( + 68 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT 88 * - COUNT( * ) + - - 22 * - - SUM( - + 46 ) * - 78
----
78848

skipif mysql # not compatible
query I rowsort label-3959
SELECT 88 * - COUNT ( * ) + - - 22 * - - SUM ( - + 46 ) * - 78
----
78848

query I rowsort
SELECT - 36 * + + 56 AS col2
----
-2016

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT ALL - 15 * - MIN( - 62 ) AS col2, - 42
----
-930
-42

skipif mysql # not compatible
query II rowsort label-3961
SELECT ALL - 15 * - MIN ( - 62 ) AS col2, - 42
----
-930
-42

query II rowsort
SELECT ALL + 14 AS col1, - 88 AS col2
----
14
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT ALL 58 * + - 22 - + + 71 - + - 90 + - - 89 * 73 + - 50 + + COUNT( - 66 ) * - 75 * + 41 * CAST( NULL AS SIGNED ) + 40 / + - 71 / - 88 / COALESCE ( 46, 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL 58 * + - 22 - + + 71 - + - 90 + - - 89 * 73 + - 50 + + COUNT ( - 66 ) * - 75 * + 41 * CAST ( NULL AS INTEGER ) + 40 / + - 71 / - 88 / COALESCE ( 46, 33 ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( - + ( 69 ) ) * - + 27 * - 41 - - - 24 + - 24 AS col1
----
-76431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3965
SELECT - COALESCE ( - COALESCE ( - COUNT( * ), 4 * - 18 + 23 - 85 - + 73, + - 97, + 35 / + COUNT( * ) + + 64 ), 67 * - 49 + 92 * 13 ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT - COALESCE ( - COALESCE ( - COUNT ( * ), 4 * - 18 + 23 - 85 - + 73, + - 97, + 35 / + COUNT ( * ) + + 64 ), 67 * - 49 + 92 * 13 ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3966
SELECT 88 * - 72 - + 86 AS col0, - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + 43 )
----
-6422
NULL

skipif mysql # not compatible
query II rowsort label-3966
SELECT 88 * - 72 - + 86 AS col0, - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + 43 )
----
-6422
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + COALESCE ( + 83, - 67 * - 87, SUM( + - 87 ) * - - 84 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3967
SELECT + COALESCE ( + 83, - 67 * - 87, SUM ( + - 87 ) * - - 84 ) AS col0
----
83

query I rowsort
SELECT NULLIF ( - + 8, 73 * + - 41 - - 79 * - 38 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + ( - ( - + 14 ) ) * + COUNT( * ) * - NULLIF ( - 0, 59 )
----
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT + ( - ( - + 14 ) ) * + COUNT ( * ) * - NULLIF ( - 0, 59 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3970
SELECT - 70 * COALESCE ( + + CAST( NULL AS SIGNED ), - - COUNT( * ) / + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT - 70 * COALESCE ( + + CAST ( NULL AS INTEGER ), - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + 40 + 3
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT ALL + + 95, + COUNT( - 67 ) * 8 col2
----
95
8

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL + + 95, + COUNT ( - 67 ) * 8 col2
----
95
8

query I rowsort
SELECT DISTINCT + - NULLIF ( + 9, + 91 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT ALL + - CASE CAST( NULL AS SIGNED ) WHEN - + 24 + + 84 / COUNT( * ) THEN - - 3 * + + 93 + - - 82 WHEN - 7 * - - 91 THEN NULL WHEN - 38 * COUNT( * ) - + 80 THEN - 73 ELSE - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + - CASE CAST ( NULL AS INTEGER ) WHEN - + 24 + + 84 / COUNT ( * ) THEN - - 3 * + + 93 + - - 82 WHEN - 7 * - - 91 THEN NULL WHEN - 38 * COUNT ( * ) - + 80 THEN - 73 ELSE - COUNT ( * ) END
----
1

query I rowsort
SELECT DISTINCT + 16 * - ( 3 ) + + 93
----
45

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

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

query I rowsort
SELECT ALL - 96 + 94 AS col2
----
-2

query I rowsort
SELECT - - 91 + + 93 + 84 * - + 32 AS col1
----
-2504

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT - 89 DIV 49 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3979
SELECT - 89 / 49 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - 12 * COUNT( * ) * + 17 + - 77 + - - NULLIF ( 82, 76 * - 24 * - - 76 + + - COUNT( * ) ) + - 96 AS col0
----
-295

skipif mysql # not compatible
query I rowsort label-3980
SELECT - 12 * COUNT ( * ) * + 17 + - 77 + - - NULLIF ( 82, 76 * - 24 * - - 76 + + - COUNT ( * ) ) + - 96 AS col0
----
-295

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

skipif mysql # not compatible
query I rowsort label-3981
SELECT - COUNT ( - - 79 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - - COUNT( * ) + 54 + + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3982
SELECT - - COUNT ( * ) + 54 + + + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - + 66 + SUM( DISTINCT + - 72 ) - 4 * - + 69
----
138

skipif mysql # not compatible
query I rowsort label-3983
SELECT - + 66 + SUM ( DISTINCT + - 72 ) - 4 * - + 69
----
138

query I rowsort
SELECT ALL - + 28 + + 49 AS col0
----
21

query I rowsort
SELECT DISTINCT + + 66 + + 12 col2
----
78

query I rowsort
SELECT ALL 8 + - 79 AS col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3987
SELECT ALL 62, + 67 DIV - COUNT( * ) + + + 61 * - - 10 AS col1
----
62
543

skipif mysql # not compatible
query II rowsort label-3987
SELECT ALL 62, + 67 / - COUNT ( * ) + + + 61 * - - 10 AS col1
----
62
543

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT NULLIF ( - + SUM( 18 ), - 81 + - 95 )
----
-18

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT NULLIF ( - + SUM ( 18 ), - 81 + - 95 )
----
-18

query I rowsort
SELECT ALL + 19 + + 40 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3990
SELECT - CASE + 0 WHEN + 70 THEN NULL WHEN - COUNT( * ) THEN ( - + 22 ) * + CAST( NULL AS SIGNED ) + + 41 * + - 26 + CASE - + 8 WHEN - COUNT( * ) * COUNT( * ) THEN 36 * 39 + ( - 82 ) WHEN + + 69 / + 34 THEN NULL WHEN CAST( NULL AS SIGNED ) * 83 THEN ( - 37 ) ELSE COUNT( * ) END ELSE - 45 END * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-3990
SELECT - CASE + 0 WHEN + 70 THEN NULL WHEN - COUNT ( * ) THEN ( - + 22 ) * + CAST ( NULL AS INTEGER ) + + 41 * + - 26 + CASE - + 8 WHEN - COUNT ( * ) * COUNT ( * ) THEN 36 * 39 + ( - 82 ) WHEN + + 69 / + 34 THEN NULL WHEN CAST ( NULL AS INTEGER ) * 83 THEN ( - 37 ) ELSE COUNT ( * ) END ELSE - 45 END * COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT + COUNT( * ) + 54 * 25 AS col0
----
1351

skipif mysql # not compatible
query I rowsort label-3991
SELECT + COUNT ( * ) + 54 * 25 AS col0
----
1351

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

skipif mysql # not compatible
query I rowsort label-3992
SELECT + ( + COUNT ( * ) ) + - ( - + 75 ) * - COUNT ( * ) AS col0
----
-74

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

skipif mysql # not compatible
query I rowsort label-3993
SELECT + 36 + - - COUNT ( * ) AS col1
----
37

query I rowsort
SELECT - COALESCE ( + 99, - NULLIF ( - - ( 13 ), + + 5 ) ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3995
SELECT DISTINCT + 1 * + - 63 AS col1, 43 + - COUNT( * ) * - + 10 col2
----
-63
53

skipif mysql # not compatible
query II rowsort label-3995
SELECT DISTINCT + 1 * + - 63 AS col1, 43 + - COUNT ( * ) * - + 10 col2
----
-63
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3996
SELECT ALL + NULLIF ( - ( - - 97 ), + COUNT( * ) ) col1, 27 DIV + COUNT( 52 )
----
-97
27

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL + NULLIF ( - ( - - 97 ), + COUNT ( * ) ) col1, 27 / + COUNT ( 52 )
----
-97
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3997
SELECT 20 DIV + SUM( ALL + 18 ) + - + 52 * + 16 + - - 6 + 71, + 67 AS col0
----
-754
67

skipif mysql # not compatible
query II rowsort label-3997
SELECT 20 / + SUM ( ALL + 18 ) + - + 52 * + 16 + - - 6 + 71, + 67 AS col0
----
-754
67

query I rowsort
SELECT + 76 + - + 57 col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT + CAST( - + 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-3999
SELECT + CAST ( - + 66 AS INTEGER )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT ALL 58 DIV - - 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL 58 / - - 78 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4001
SELECT + 64 DIV - 72 * - CAST( + 6 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 64 / - 72 * - CAST ( + 6 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT + 70 DIV + + 38 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4002
SELECT + 70 / + + 38 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4003
SELECT CAST( NULL AS DECIMAL ) * + 62 * COUNT( * ) + + COALESCE ( + + 9, + 56, + 42 * - 82 / - 85 + + + 85 / 35 * + - 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT CAST ( NULL AS REAL ) * + 62 * COUNT ( * ) + + COALESCE ( + + 9, + 56, + 42 * - 82 / - 85 + + + 85 / 35 * + - 60 ) AS col0
----
NULL

query I rowsort
SELECT - 46 * - 25 * + 47 AS col1
----
54050

query I rowsort
SELECT - 97 * - 26 + 82 + 67
----
2671

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT ALL 22 DIV + 78 * - + 89 col0
----
0

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL 22 / + 78 * - + 89 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4007
SELECT DISTINCT ( 15 ) * - COUNT( * ) * - 18 * + CAST( NULL AS SIGNED ) + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT ( 15 ) * - COUNT ( * ) * - 18 * + CAST ( NULL AS INTEGER ) + - 89 AS col0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT DISTINCT + 62 * - COUNT( DISTINCT - + 26 ) + - 95 + - + 55 + + 47
----
-165

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + 62 * - COUNT ( DISTINCT - + 26 ) + - 95 + - + 55 + + 47
----
-165

query I rowsort
SELECT + 90 * 78 * + - 46 * 75
----
-24219000

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - + 76 * - COUNT( * ) * + - 82 + + 96 AS col0
----
-6136

skipif mysql # not compatible
query I rowsort label-4012
SELECT - + 76 * - COUNT ( * ) * + - 82 + + 96 AS col0
----
-6136

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + 19 * + 37 * + + 0 + SUM( 78 ) * + COUNT( DISTINCT - - NULLIF ( + 4, + - 38 ) ) * ( - 54 )
----
-4212

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + 19 * + 37 * + + 0 + SUM ( 78 ) * + COUNT ( DISTINCT - - NULLIF ( + 4, + - 38 ) ) * ( - 54 )
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT + + CASE - + 60 WHEN - 48 * ( + 53 ) THEN - 63 - - - 84 + + ( - COUNT( * ) ) - - 74 / + 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT + + CASE - + 60 WHEN - 48 * ( + 53 ) THEN - 63 - - - 84 + + ( - COUNT ( * ) ) - - 74 / + 86 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT + COUNT( * ) * + 30, - 79 - COUNT( * ) AS col1
----
30
-80

skipif mysql # not compatible
query II rowsort label-4015
SELECT + COUNT ( * ) * + 30, - 79 - COUNT ( * ) AS col1
----
30
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4016
SELECT - CAST( - - COALESCE ( + 45, - 35 ) AS SIGNED ) + 37
----
-8

skipif mysql # not compatible
query I rowsort label-4016
SELECT - CAST ( - - COALESCE ( + 45, - 35 ) AS INTEGER ) + 37
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4017
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) + - - 29 / - CAST( NULL AS SIGNED ) AS col2, + 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-4017
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) + - - 29 / - CAST ( NULL AS INTEGER ) AS col2, + 56
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT SUM( + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT SUM ( + 88 ) AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT DISTINCT - 93 * - - CASE 72 WHEN + 66 * + + CAST( - - 89 AS SIGNED ) * + 83 / + - 80 THEN NULL ELSE + - 75 END * + 29
----
202275

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - 93 * - - CASE 72 WHEN + 66 * + + CAST ( - - 89 AS INTEGER ) * + 83 / + - 80 THEN NULL ELSE + - 75 END * + 29
----
202275

query I rowsort
SELECT ALL + + 88 - + 74
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL - 49 - - COUNT( * ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - 49 - - COUNT ( * ) col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT + 28 - + 69 * + CAST( + + 96 AS SIGNED )
----
-6596

skipif mysql # not compatible
query I rowsort label-4022
SELECT + 28 - + 69 * + CAST ( + + 96 AS INTEGER )
----
-6596

query III rowsort
SELECT 63 * + 22 * NULLIF ( - 28, - 33 ) AS col2, + 46 * + ( + 60 ) AS col1, + 17 + + 94 * + 83 - - 2 AS col2
----
-38808
2760
7821

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT SUM( ALL + + 43 ) * - + 4 col1
----
-172

skipif mysql # not compatible
query I rowsort label-4024
SELECT SUM ( ALL + + 43 ) * - + 4 col1
----
-172

query I rowsort
SELECT 2 * 31
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4026
SELECT 8 DIV ( - 34 ) * + MAX( ALL - 20 ) + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-4026
SELECT 8 / ( - 34 ) * + MAX ( ALL - 20 ) + - 88
----
-88

query I rowsort
SELECT DISTINCT + 33 * + 32
----
1056

query I rowsort
SELECT ALL + 88 - - + 6
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT MAX( ALL - 38 ) * + - 39 AS col2
----
1482

skipif mysql # not compatible
query I rowsort label-4029
SELECT MAX ( ALL - 38 ) * + - 39 AS col2
----
1482

onlyif mysql # aggregate syntax: 
query II rowsort label-4030
SELECT ALL 43, - COUNT( * ) * + - 54 + - - 47 AS col0
----
43
101

skipif mysql # not compatible
query II rowsort label-4030
SELECT ALL 43, - COUNT ( * ) * + - 54 + - - 47 AS col0
----
43
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT 79 * + COUNT( * ) * + 24
----
1896

skipif mysql # not compatible
query I rowsort label-4031
SELECT 79 * + COUNT ( * ) * + 24
----
1896

query I rowsort
SELECT 14 * - 45
----
-630

query II rowsort
SELECT ALL 55 AS col2, + 19 AS col0
----
55
19

query II rowsort
SELECT 27 col2, + 59
----
27
59

query I rowsort
SELECT 4 * - - 80 AS col2
----
320

query I rowsort
SELECT ALL - NULLIF ( + 21, + 34 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT DISTINCT - SUM( + 8 ) * - ( 15 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT - SUM ( + 8 ) * - ( 15 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 71 ) + - 71 col1
----
0

query I rowsort
SELECT DISTINCT - ( + ( - NULLIF ( 39, - 41 ) ) ) AS col1
----
39

query I rowsort
SELECT ALL - 53 * 55 AS col1
----
-2915

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4041
SELECT DISTINCT + CASE + + ( - - NULLIF ( + - 92, + + 87 * 4 * - AVG ( ALL CAST( 1 AS DECIMAL ) ) ) ) WHEN + - 95 THEN NULL WHEN + 69 THEN - + ( - 1 ) WHEN - 0 + 3 * - 69 * + 85 + - 73 + + 40 * - + SUM( + 49 ) * + COUNT( * ) THEN NULL END + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT + CASE + + ( - - NULLIF ( + - 92, + + 87 * 4 * - AVG ( ALL CAST ( 1 AS REAL ) ) ) ) WHEN + - 95 THEN NULL WHEN + 69 THEN - + ( - 1 ) WHEN - 0 + 3 * - 69 * + 85 + - 73 + + 40 * - + SUM ( + 49 ) * + COUNT ( * ) THEN NULL END + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - 40 + NULLIF ( + ( - - MAX( ALL - 89 ) ), + ( 40 ) )
----
-129

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - 40 + NULLIF ( + ( - - MAX ( ALL - 89 ) ), + ( 40 ) )
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL - NULLIF ( 0, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL - NULLIF ( 0, COUNT ( * ) )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4045
SELECT + 44 DIV - 60 col0
----
0

skipif mysql # not compatible
query I rowsort label-4045
SELECT + 44 / - 60 col0
----
0

query I rowsort
SELECT ALL - 96 + 92 col2
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT ALL 40 * - COUNT( * ) * 41 * + + 25 * + 71 AS col1
----
-2911000

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL 40 * - COUNT ( * ) * 41 * + + 25 * + 71 AS col1
----
-2911000

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT - 10 DIV - + 4 - + 68 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4049
SELECT - 10 / - + 4 - + 68 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL - - MAX( ALL - - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - - MAX ( ALL - - 60 )
----
60

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT ALL - - 67 AS col2, SUM( 79 ) * - - COUNT( * ) * + 46
----
67
3634

skipif mysql # not compatible
query II rowsort label-4052
SELECT ALL - - 67 AS col2, SUM ( 79 ) * - - COUNT ( * ) * + 46
----
67
3634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4053
SELECT DISTINCT COUNT( * ) - - 51 DIV + 75 * - 50 col0
----
1

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT COUNT ( * ) - - 51 / + 75 * - 50 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4054
SELECT ALL + 36 AS col1, SUM( DISTINCT + - 80 )
----
36
-80

skipif mysql # not compatible
query II rowsort label-4054
SELECT ALL + 36 AS col1, SUM ( DISTINCT + - 80 )
----
36
-80

query I rowsort
SELECT + COALESCE ( + 92, + - 30 ) AS col1
----
92

query I rowsort
SELECT ALL - 53 - + 51
----
-104

query I rowsort
SELECT + 17 * 78 + - 87 * 41
----
-2241

query I rowsort
SELECT 98 * + ( + 95 ) + 98
----
9408

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4059
SELECT 3 - CAST( NULL AS DECIMAL ) / - + CAST( 5 AS SIGNED ) / - - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT 3 - CAST ( NULL AS REAL ) / - + CAST ( 5 AS INTEGER ) / - - 9 AS col2
----
NULL

query II rowsort
SELECT 97 AS col1, ( + 54 ) AS col2
----
97
54

query I rowsort
SELECT - 40 + - - 27 AS col1
----
-13

query I rowsort
SELECT ALL - 56 * + 43
----
-2408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT 48 DIV - COUNT( - 70 )
----
-48

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT 48 / - COUNT ( - 70 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL SUM( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL SUM ( 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT 14 * + + ( - CAST( + + 15 AS SIGNED ) )
----
-210

skipif mysql # not compatible
query I rowsort label-4065
SELECT 14 * + + ( - CAST ( + + 15 AS INTEGER ) )
----
-210

query I rowsort
SELECT 17 + - - 77 AS col1
----
94

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

skipif mysql # not compatible
query I rowsort label-4067
SELECT - COUNT ( DISTINCT - - 91 )
----
-1

query I rowsort
SELECT 24 * - + ( - + 58 )
----
1392

query I rowsort
SELECT ALL - 85 + + 7 * + + 83 + - ( - 41 ) AS col0
----
537

query I rowsort
SELECT ALL + 94 + + 26
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4071
SELECT COALESCE ( + - SUM( 20 ), COUNT( * ) DIV 74 * - 10 * CAST( NULL AS SIGNED ) * - 11 - + 37 - - + 68 * 28 * + + 57 )
----
-20

skipif mysql # not compatible
query I rowsort label-4071
SELECT COALESCE ( + - SUM ( 20 ), COUNT ( * ) / 74 * - 10 * CAST ( NULL AS INTEGER ) * - 11 - + 37 - - + 68 * 28 * + + 57 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL + MAX( DISTINCT - 4 ) * - + 31 - + COUNT( * ) + + 55
----
178

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + MAX ( DISTINCT - 4 ) * - + 31 - + COUNT ( * ) + + 55
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT - 72 * + 31 + - + 53 + + MAX( ALL - 28 ) + - ( - - 38 ) * 29
----
-3415

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - 72 * + 31 + - + 53 + + MAX ( ALL - 28 ) + - ( - - 38 ) * 29
----
-3415

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT - 22 * + COUNT( * ) + + 37 col2
----
15

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT - 22 * + COUNT ( * ) + + 37 col2
----
15

query I rowsort
SELECT ALL - ( 43 ) AS col0
----
-43

query I rowsort
SELECT + 32 * 83 * - 99 col0
----
-262944

query I rowsort
SELECT DISTINCT + + 7 AS col2
----
7

query II rowsort
SELECT + 51, 22 AS col1
----
51
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4079
SELECT - + 39 * 33 * + COUNT( ALL + 44 ) + 59 * - - CAST( - 6 AS SIGNED ) AS col0, 42
----
-1641
42

skipif mysql # not compatible
query II rowsort label-4079
SELECT - + 39 * 33 * + COUNT ( ALL + 44 ) + 59 * - - CAST ( - 6 AS INTEGER ) AS col0, 42
----
-1641
42

query II rowsort
SELECT - 99 * - 19, - 85 - + 86 AS col0
----
1881
-171

query I rowsort
SELECT ALL - + 23 * + 4 + + 9 + - 19 col0
----
-102

query I rowsort
SELECT ALL - NULLIF ( 30, + 34 ) * - 61 AS col2
----
1830

query II rowsort
SELECT ALL + + 91 AS col2, 75 + 33
----
91
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT + COUNT( * ) * - + 28
----
-28

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + COUNT ( * ) * - + 28
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4085
SELECT ALL + + 74 AS col2, COUNT( * ) + - - 14 / - CAST( NULL AS SIGNED )
----
74
NULL

skipif mysql # not compatible
query II rowsort label-4085
SELECT ALL + + 74 AS col2, COUNT ( * ) + - - 14 / - CAST ( NULL AS INTEGER )
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + COUNT( * ) * + MAX( + + 15 ) + + 66
----
81

skipif mysql # not compatible
query I rowsort label-4086
SELECT + COUNT ( * ) * + MAX ( + + 15 ) + + 66
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL - 88 * - 85 - - + COUNT( * ) - MAX( 96 )
----
7385

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - 88 * - 85 - - + COUNT ( * ) - MAX ( 96 )
----
7385

query I rowsort
SELECT ( - 89 ) col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT NULLIF ( - 22, 88 / - COUNT( * ) + + 63 + + 0 + + 27 + + NULLIF ( - 33, + 21 ) / ( + + 80 ) ) * - 52 + 13 * 93
----
2353

skipif mysql # not compatible
query I rowsort label-4089
SELECT NULLIF ( - 22, 88 / - COUNT ( * ) + + 63 + + 0 + + 27 + + NULLIF ( - 33, + 21 ) / ( + + 80 ) ) * - 52 + 13 * 93
----
2353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT - ( - - CAST( NULL AS SIGNED ) ) * + - 90 * + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * + - 90 * + 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT + MAX( 81 ) * - 15
----
-1215

skipif mysql # not compatible
query I rowsort label-4091
SELECT + MAX ( 81 ) * - 15
----
-1215

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT ALL ( - 1 ) DIV 10 - 40
----
-40

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL ( - 1 ) / 10 - 40
----
-40

query I rowsort
SELECT + - ( + 98 ) + + 71 AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4094
SELECT ALL - 72 DIV CAST( - COUNT( * ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL - 72 / CAST ( - COUNT ( * ) AS INTEGER )
----
72

query II rowsort
SELECT DISTINCT 78 * - + 28 AS col0, 92
----
-2184
92

query I rowsort
SELECT ALL 7 * - 56 AS col0
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ALL SUM( DISTINCT + - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL SUM ( DISTINCT + - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT + COUNT( * ) * NULLIF ( 94, - 1 )
----
94

skipif mysql # not compatible
query I rowsort label-4098
SELECT + COUNT ( * ) * NULLIF ( 94, - 1 )
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-4099
SELECT + 54 * - - 19 AS col1, - 35 DIV 75
----
1026
0

skipif mysql # not compatible
query II rowsort label-4099
SELECT + 54 * - - 19 AS col1, - 35 / 75
----
1026
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4100
SELECT + MAX( - + 72 ) - COUNT( * ) + 7 + - MAX( ALL - 93 ) DIV - COUNT( * ) * + 1 + + + 39 * + 69 AS col1, COUNT( * ) col0
----
2532
1

skipif mysql # not compatible
query II rowsort label-4100
SELECT + MAX ( - + 72 ) - COUNT ( * ) + 7 + - MAX ( ALL - 93 ) / - COUNT ( * ) * + 1 + + + 39 * + 69 AS col1, COUNT ( * ) col0
----
2532
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4101
SELECT ALL SUM( + - 23 ) col2, + 22
----
-23
22

skipif mysql # not compatible
query II rowsort label-4101
SELECT ALL SUM ( + - 23 ) col2, + 22
----
-23
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT - 53 + + SUM( - 43 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - 53 + + SUM ( - 43 ) AS col2
----
-96

query I rowsort
SELECT ALL 69 + + - 61 AS col2
----
8

query I rowsort
SELECT - ( + NULLIF ( + 64, - 43 ) )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4105
SELECT DISTINCT - CAST( 40 AS SIGNED ) + 15 col2, - NULLIF ( + + 35, + 73 + 60 ) AS col2
----
-25
-35

skipif mysql # not compatible
query II rowsort label-4105
SELECT DISTINCT - CAST ( 40 AS INTEGER ) + 15 col2, - NULLIF ( + + 35, + 73 + 60 ) AS col2
----
-25
-35

query I rowsort
SELECT + 51 * - + COALESCE ( - 81, - 12, - 4 )
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL + + MIN( 83 ) * 30
----
2490

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + + MIN ( 83 ) * 30
----
2490

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT COUNT( - 73 ), 88 AS col0
----
1
88

skipif mysql # not compatible
query II rowsort label-4108
SELECT COUNT ( - 73 ), 88 AS col0
----
1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT MIN( - ( 45 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-4109
SELECT MIN ( - ( 45 ) )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT ALL + - 47 / - - 44 + + - 11 - + 22 - CAST( NULL AS SIGNED ) - - - 51 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL + - 47 / - - 44 + + - 11 - + 22 - CAST ( NULL AS INTEGER ) - - - 51 * 93
----
NULL

query I rowsort
SELECT DISTINCT + + ( - + 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT DISTINCT - + 82 * - + 60 - - MIN( DISTINCT + 96 )
----
5016

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT - + 82 * - + 60 - - MIN ( DISTINCT + 96 )
----
5016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4113
SELECT + 15 * - 15 + - 70 + - 40 / AVG ( ALL - + 41 ) - CASE 82 WHEN - 42 * - COUNT( * ) / - - 77 / + 36 - - 21 + - - 62 * + 7 THEN NULL WHEN + ( + CASE - - 1 WHEN - 50 + + - CAST( - + 76 AS SIGNED ) THEN - CASE - 82 WHEN - 67 THEN + 29 WHEN + 92 THEN + COUNT( * ) END ELSE - 48 END ) * - 63 THEN NULL WHEN 13 * CASE 99 WHEN 89 + - ( - COUNT( * ) ) * CAST( NULLIF ( COALESCE ( - AVG ( ALL 28 ), + 25 * 75 + - 78, NULLIF ( - 95, ( - ( - COUNT( DISTINCT 56 ) ) ) + - MAX( 78 ) ) ), 26 + 54 ) / - CAST( 41 AS SIGNED ) AS SIGNED ) THEN - 53 * + 66 END THEN - 27 ELSE NULL END * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT + 15 * - 15 + - 70 + - 40 / AVG ( ALL - + 41 ) - CASE 82 WHEN - 42 * - COUNT ( * ) / - - 77 / + 36 - - 21 + - - 62 * + 7 THEN NULL WHEN + ( + CASE - - 1 WHEN - 50 + + - CAST ( - + 76 AS INTEGER ) THEN - CASE - 82 WHEN - 67 THEN + 29 WHEN + 92 THEN + COUNT ( * ) END ELSE - 48 END ) * - 63 THEN NULL WHEN 13 * CASE 99 WHEN 89 + - ( - COUNT ( * ) ) * CAST ( NULLIF ( COALESCE ( - AVG ( ALL 28 ), + 25 * 75 + - 78, NULLIF ( - 95, ( - ( - COUNT ( DISTINCT 56 ) ) ) + - MAX ( 78 ) ) ), 26 + 54 ) / - CAST ( 41 AS INTEGER ) AS INTEGER ) THEN - 53 * + 66 END THEN - 27 ELSE NULL END * 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT - 72 * + CAST( - 88 AS SIGNED ) + - - 32 AS col1
----
6368

skipif mysql # not compatible
query I rowsort label-4114
SELECT - 72 * + CAST ( - 88 AS INTEGER ) + - - 32 AS col1
----
6368

query I rowsort
SELECT DISTINCT + ( + - 52 )
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-4116
SELECT DISTINCT + 59 * - - 55 DIV + - 5 AS col0, 91 AS col1
----
-649
91

skipif mysql # not compatible
query II rowsort label-4116
SELECT DISTINCT + 59 * - - 55 / + - 5 AS col0, 91 AS col1
----
-649
91

query I rowsort
SELECT ALL + ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT + - COUNT( * ) * + 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT + - COUNT ( * ) * + 1 AS col1
----
-1

query I rowsort
SELECT - + 32 * + ( + + 81 ) AS col0
----
-2592

query I rowsort
SELECT ALL + 56 * - 69 col1
----
-3864

query II rowsort
SELECT NULLIF ( + 34, 78 ), - 33 AS col2
----
34
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT - ( ( - 7 ) ) DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT - ( ( - 7 ) ) / - 60
----
0

query I rowsort
SELECT ALL + 44 * 83 + - 28 + - 29 * - - 5 - + - 90 AS col0
----
3569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT - CAST( - - 95 AS SIGNED ) + + 90 + + 60
----
55

skipif mysql # not compatible
query I rowsort label-4124
SELECT - CAST ( - - 95 AS INTEGER ) + + 90 + + 60
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4125
SELECT COUNT( - ( 82 ) ), 47 * - COALESCE ( - CAST( NULL AS SIGNED ), - 68, 49 DIV - 41 ) - - MIN( + - 90 ) + + 34 AS col2
----
1
3140

skipif mysql # not compatible
query II rowsort label-4125
SELECT COUNT ( - ( 82 ) ), 47 * - COALESCE ( - CAST ( NULL AS INTEGER ), - 68, 49 / - 41 ) - - MIN ( + - 90 ) + + 34 AS col2
----
1
3140

query I rowsort
SELECT + 30 * - 78 AS col1
----
-2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4127
SELECT ALL - MIN( DISTINCT + CAST( - 50 AS SIGNED ) ) * - 23 + + 50 - - 98 + + + COUNT( * ) * 32 + + 97 + 86 col0
----
-787

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - MIN ( DISTINCT + CAST ( - 50 AS INTEGER ) ) * - 23 + + 50 - - 98 + + + COUNT ( * ) * 32 + + 97 + 86 col0
----
-787

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT COUNT( - + 58 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4128
SELECT COUNT ( - + 58 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4130
SELECT ALL 49 AS col2, - 64 * 3 + 59 * 45 + + 70 - + - CAST( NULL AS SIGNED ) AS col0
----
49
NULL

skipif mysql # not compatible
query II rowsort label-4130
SELECT ALL 49 AS col2, - 64 * 3 + 59 * 45 + + 70 - + - CAST ( NULL AS INTEGER ) AS col0
----
49
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT + 94 + 31 + COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-4131
SELECT + 94 + 31 + COUNT ( * )
----
126

query I rowsort
SELECT + 88 + + - 89
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT DISTINCT CASE COUNT( * ) WHEN + + 87 THEN NULL WHEN - + 49 THEN MIN( - 50 ) + ( + 27 ) END * + - 84 - - - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT CASE COUNT ( * ) WHEN + + 87 THEN NULL WHEN - + 49 THEN MIN ( - 50 ) + ( + 27 ) END * + - 84 - - - 86 AS col2
----
NULL

query I rowsort
SELECT - 58 * + 63 AS col2
----
-3654

onlyif mysql # aggregate syntax: 
query II rowsort label-4135
SELECT 51 AS col2, - MAX( - 23 ) AS col2
----
51
23

skipif mysql # not compatible
query II rowsort label-4135
SELECT 51 AS col2, - MAX ( - 23 ) AS col2
----
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL 46 + + 89 * + COUNT( * ) - + 66 + - 58 + - + MAX( ALL + - 4 )
----
15

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL 46 + + 89 * + COUNT ( * ) - + 66 + - 58 + - + MAX ( ALL + - 4 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT 94, COUNT( * ) AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-4137
SELECT 94, COUNT ( * ) AS col1
----
94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT 68 * COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4138
SELECT 68 * COUNT ( * ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT 33 * - + NULLIF ( 56, - COUNT( * ) * - 40 )
----
-1848

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT 33 * - + NULLIF ( 56, - COUNT ( * ) * - 40 )
----
-1848

query I rowsort
SELECT ALL - ( - + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT MAX( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT MAX ( DISTINCT 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL + COUNT( * ) * + 10 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + COUNT ( * ) * + 10 AS col0
----
10

query II rowsort
SELECT ALL - 11, 83 AS col2
----
-11
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4144
SELECT + + 55, 47 + + 46 + + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
55
94

skipif mysql # not compatible
query II rowsort label-4144
SELECT + + 55, 47 + + 46 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
55
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT 88 * + 71 + - CAST( 59 AS SIGNED ) AS col0
----
6189

skipif mysql # not compatible
query I rowsort label-4145
SELECT 88 * + 71 + - CAST ( 59 AS INTEGER ) AS col0
----
6189

query I rowsort
SELECT + 26 * + - 3 * - 80 * - 75 * - + 35 AS col2
----
16380000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4147
SELECT + + COUNT( * ) * - - CASE - + 33 WHEN - + ( - 24 ) THEN + 22 + - ( 18 ) WHEN - - 56 THEN 93 * + + 27 WHEN + 54 * + - COALESCE ( - 48, CAST( COUNT( * ) AS SIGNED ), - NULLIF ( 15, - 92 ) + + COALESCE ( - COALESCE ( + + 0, + 10 ), 43 ) ) + + 14 * 34 THEN 53 + + 18 END * 4 + 83 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT + + COUNT ( * ) * - - CASE - + 33 WHEN - + ( - 24 ) THEN + 22 + - ( 18 ) WHEN - - 56 THEN 93 * + + 27 WHEN + 54 * + - COALESCE ( - 48, CAST ( COUNT ( * ) AS INTEGER ), - NULLIF ( 15, - 92 ) + + COALESCE ( - COALESCE ( + + 0, + 10 ), 43 ) ) + + 14 * 34 THEN 53 + + 18 END * 4 + 83 * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - - 18 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL - MAX( - - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - MAX ( - - 39 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT - 58 DIV 30 + 83 + + + 93 - + - COUNT( * ) AS col0
----
176

skipif mysql # not compatible
query I rowsort label-4150
SELECT - 58 / 30 + 83 + + + 93 - + - COUNT ( * ) AS col0
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT ALL AVG ( ALL + 0 ) * - 89 * + CAST( NULL AS SIGNED ) * - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL AVG ( ALL + 0 ) * - 89 * + CAST ( NULL AS INTEGER ) * - + 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4152
SELECT ALL - + 36, 14 * - + ( + CAST( NULL AS SIGNED ) ) col2
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-4152
SELECT ALL - + 36, 14 * - + ( + CAST ( NULL AS INTEGER ) ) col2
----
-36
NULL

query I rowsort
SELECT ALL 76 * - 41
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL - + SUM( DISTINCT - 89 ) + - 97 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - + SUM ( DISTINCT - 89 ) + - 97 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT - - COALESCE ( 33, 75, - 52 ) * - + 2 * + 65 + + 37 - 97 + 1 * - - 20 - + COUNT( * ) + + 14 AS col1
----
-4317

skipif mysql # not compatible
query I rowsort label-4155
SELECT - - COALESCE ( 33, 75, - 52 ) * - + 2 * + 65 + + 37 - 97 + 1 * - - 20 - + COUNT ( * ) + + 14 AS col1
----
-4317

query I rowsort
SELECT DISTINCT + 52 + - 19 AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4157
SELECT ALL - SUM( - 83 ) + - 36 + + + 35 AS col2, CAST( + CASE + NULLIF ( - 78, - 99 + 89 ) WHEN NULLIF ( + - 29, 41 ) * - 67 THEN - ( - 91 ) END AS SIGNED )
----
82
NULL

skipif mysql # not compatible
query II rowsort label-4157
SELECT ALL - SUM ( - 83 ) + - 36 + + + 35 AS col2, CAST ( + CASE + NULLIF ( - 78, - 99 + 89 ) WHEN NULLIF ( + - 29, 41 ) * - 67 THEN - ( - 91 ) END AS INTEGER )
----
82
NULL

query I rowsort
SELECT DISTINCT + 43 + - 2 AS col1
----
41

query I rowsort
SELECT 98 * + NULLIF ( 63, + + ( + + 98 ) + - + 38 + - AVG ( + + 33 ) * + 52 / - - 23 ) * + ( 69 ) AS col0
----
426006

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL + COUNT( * ) * 40 * + 86 AS col2
----
3440

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL + COUNT ( * ) * 40 * + 86 AS col2
----
3440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4161
SELECT DISTINCT - SUM( ALL CAST( NULL AS SIGNED ) ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT - SUM ( ALL CAST ( NULL AS INTEGER ) ) + - 93
----
NULL

query I rowsort
SELECT ALL + 26 * - 36
----
-936

query I rowsort
SELECT DISTINCT 41 + - - 83 AS col0
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT 42 DIV - - 51 * - 77 * - ( - + 94 ) * 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT 42 / - - 51 * - 77 * - ( - + 94 ) * 85 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT 13 * + + ( - - CAST( - ( 65 ) AS SIGNED ) ) col2
----
-845

skipif mysql # not compatible
query I rowsort label-4165
SELECT 13 * + + ( - - CAST ( - ( 65 ) AS INTEGER ) ) col2
----
-845

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL + COUNT( * ) - - COUNT( * ) * - ( + 79 ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + COUNT ( * ) - - COUNT ( * ) * - ( + 79 ) col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT 23 - 5 * - 35 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT 23 - 5 * - 35 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 32 - - 7 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT 68 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4169
SELECT 68 / 91 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4170
SELECT ALL 40 DIV - - ( + + COUNT( DISTINCT 2 ) ) col2
----
40

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL 40 / - - ( + + COUNT ( DISTINCT 2 ) ) col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT 39 * + MIN( ALL CAST( NULL AS SIGNED ) ) * 85 + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT 39 * + MIN ( ALL CAST ( NULL AS INTEGER ) ) * 85 + - 66
----
NULL

query I rowsort
SELECT ALL + 36 - - 34
----
70

query II rowsort
SELECT 47 * + + 95 col1, - 83 * - + 72 - 82 AS col2
----
4465
5894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT ALL - MAX( DISTINCT - 34 ) DIV - + ( ( + 84 ) ) * + CASE - 64 WHEN 67 * 88 * - 63 THEN ( - - 52 ) WHEN 2 + + 9 * - + 91 THEN NULL ELSE + 80 DIV + 29 + - 97 * - + 0 * MIN( 93 ) - - + 64 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL - MAX ( DISTINCT - 34 ) / - + ( ( + 84 ) ) * + CASE - 64 WHEN 67 * 88 * - 63 THEN ( - - 52 ) WHEN 2 + + 9 * - + 91 THEN NULL ELSE + 80 / + 29 + - 97 * - + 0 * MIN ( 93 ) - - + 64 END AS col2
----
0

query I rowsort
SELECT DISTINCT + 19 - - ( - 37 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT ALL - - 2 / + 95 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - - 2 / + 95 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT ALL CAST( NULL AS SIGNED ) * 3 - + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL CAST ( NULL AS INTEGER ) * 3 - + 23 AS col0
----
NULL

query I rowsort
SELECT + 27 * - 69 col2
----
-1863

query I rowsort
SELECT 26 + - 76
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL - NULLIF ( 13, - MAX( ALL 26 ) ) * + ( + ( - 92 ) )
----
1196

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL - NULLIF ( 13, - MAX ( ALL 26 ) ) * + ( + ( - 92 ) )
----
1196

query I rowsort
SELECT 46 * - 77 AS col1
----
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - COUNT( * ) * 93 * - + 7 + 40
----
691

skipif mysql # not compatible
query I rowsort label-4182
SELECT - COUNT ( * ) * 93 * - + 7 + 40
----
691

query I rowsort
SELECT 26 * + 46 col2
----
1196

query I rowsort
SELECT ALL - 25 * + 85 + - 53 + 77 AS col0
----
-2101

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT ALL - COUNT( * ) + - ( + MIN( - 77 ) ) + 76 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - COUNT ( * ) + - ( + MIN ( - 77 ) ) + 76 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4186
SELECT - 17 + + 24 AS col2, - ( - COUNT( * ) ) + - + 94 AS col0
----
7
-93

skipif mysql # not compatible
query II rowsort label-4186
SELECT - 17 + + 24 AS col2, - ( - COUNT ( * ) ) + - + 94 AS col0
----
7
-93

query I rowsort
SELECT + COALESCE ( + 27, - 84 - + 20 ) * + 23
----
621

onlyif mysql # aggregate syntax: 
query II rowsort label-4188
SELECT + - MIN( - - 68 ), + 18 * 79 + 43 col0
----
-68
1465

skipif mysql # not compatible
query II rowsort label-4188
SELECT + - MIN ( - - 68 ), + 18 * 79 + 43 col0
----
-68
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL 10 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL 10 + + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT MAX( ALL + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4190
SELECT MAX ( ALL + 19 ) AS col0
----
19

query I rowsort
SELECT 98 + 70
----
168

query I rowsort
SELECT 33 * - 61
----
-2013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT CAST( NULL AS SIGNED ) * - COALESCE ( - - 96, + 85, 88 + + + NULLIF ( + - 94, 72 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT CAST ( NULL AS INTEGER ) * - COALESCE ( - - 96, + 85, 88 + + + NULLIF ( + - 94, 72 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL COUNT( * ) + - + SUM( ALL 68 ) + - - 65 * + 51 AS col2
----
3248

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL COUNT ( * ) + - + SUM ( ALL 68 ) + - - 65 * + 51 AS col2
----
3248

query I rowsort
SELECT DISTINCT 83 + - 78 - + 53 AS col2
----
-48

query I rowsort
SELECT + NULLIF ( - 27, + + 82 ) AS col1
----
-27

query II rowsort
SELECT DISTINCT - 59, 25 + - 73 AS col2
----
-59
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL - SUM( - - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL - SUM ( - - 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT COUNT( * ) + - + 53
----
-52

skipif mysql # not compatible
query I rowsort label-4199
SELECT COUNT ( * ) + - + 53
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - NULLIF ( 4, - NULLIF ( 75, MAX( + 3 ) ) ) col2
----
-4

skipif mysql # not compatible
query I rowsort label-4200
SELECT - NULLIF ( 4, - NULLIF ( 75, MAX ( + 3 ) ) ) col2
----
-4

query I rowsort
SELECT 67 * - 12 + 7 AS col2
----
-797

query I rowsort
SELECT - 58 * 12 AS col1
----
-696

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4203
SELECT - 29 + - SUM( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT - 29 + - SUM ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - COUNT( * ) - + 13 + - 40
----
-54

skipif mysql # not compatible
query I rowsort label-4204
SELECT - COUNT ( * ) - + 13 + - 40
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - 5 + - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4205
SELECT - 5 + - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - SUM( - 1 ) + 68
----
69

skipif mysql # not compatible
query I rowsort label-4206
SELECT - SUM ( - 1 ) + 68
----
69

query I rowsort
SELECT ALL CASE 57 WHEN 78 THEN - ( - 64 ) WHEN - 56 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL COUNT( + + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL COUNT ( + + 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL - 32 * COALESCE ( + + 12, - 68, 38 * - COUNT( * ) )
----
-384

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - 32 * COALESCE ( + + 12, - 68, 38 * - COUNT ( * ) )
----
-384

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4210
SELECT - ( - - 48 ) * - NULLIF ( 64, - MAX( 20 ) * - - 35 * 53 * - CAST( NULL AS DECIMAL ) + + + SUM( + + 35 ) + + MAX( - 51 ) ) * + 37
----
113664

skipif mysql # not compatible
query I rowsort label-4210
SELECT - ( - - 48 ) * - NULLIF ( 64, - MAX ( 20 ) * - - 35 * 53 * - CAST ( NULL AS REAL ) + + + SUM ( + + 35 ) + + MAX ( - 51 ) ) * + 37
----
113664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT NULLIF ( + + 3, CAST( NULL AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-4211
SELECT NULLIF ( + + 3, CAST ( NULL AS INTEGER ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4212
SELECT + + CAST( 91 AS SIGNED ) + 11 DIV + + 97 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4212
SELECT + + CAST ( 91 AS INTEGER ) + 11 / + + 97 AS col0
----
91

query II rowsort
SELECT - 82 AS col2, 90 AS col1
----
-82
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT + 8 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT + 8 / + 83 AS col2
----
0

query I rowsort
SELECT DISTINCT 96 + 67 AS col0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL + 24 + - + COUNT( * ) - - 25 * 65 AS col1
----
1648

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL + 24 + - + COUNT ( * ) - - 25 * 65 AS col1
----
1648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4217
SELECT - - COALESCE ( + 42, + + 27 * - 76 + + 61 + - + COUNT( * ) * - ( + 3 ) DIV + 90 * - 64 )
----
42

skipif mysql # not compatible
query I rowsort label-4217
SELECT - - COALESCE ( + 42, + + 27 * - 76 + + 61 + - + COUNT ( * ) * - ( + 3 ) / + 90 * - 64 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL + + ( + + ( + NULLIF ( + + CAST( NULL AS SIGNED ), - 40 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL + + ( + + ( + NULLIF ( + + CAST ( NULL AS INTEGER ), - 40 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4219
SELECT DISTINCT COUNT( * ) * + + 22 * + 29 + + MIN( DISTINCT - ( + 86 ) ) + + + CASE - ( COUNT( * ) ) WHEN + - 98 - ( + COUNT( * ) ) + - 94 THEN NULL WHEN - 93 THEN + - 62 END + ( + 36 ) * 64 AS col0, - 71 + - CASE - COUNT( * ) WHEN - COUNT( * ) + COALESCE ( + COUNT( - + 46 ), + ( - 69 ) * - 27 + 24 * - 6 ) THEN + 26 + + 61 END + + 47 * + 35 col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4219
SELECT DISTINCT COUNT ( * ) * + + 22 * + 29 + + MIN ( DISTINCT - ( + 86 ) ) + + + CASE - ( COUNT ( * ) ) WHEN + - 98 - ( + COUNT ( * ) ) + - 94 THEN NULL WHEN - 93 THEN + - 62 END + ( + 36 ) * 64 AS col0, - 71 + - CASE - COUNT ( * ) WHEN - COUNT ( * ) + COALESCE ( + COUNT ( - + 46 ), + ( - 69 ) * - 27 + 24 * - 6 ) THEN + 26 + + 61 END + + 47 * + 35 col1
----
NULL
NULL

query I rowsort
SELECT + - 44 * 59 + 69 AS col1
----
-2527

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT SUM( 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4221
SELECT SUM ( 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4222
SELECT DISTINCT - 31 * + - 7 + + 84 + - MAX( - 35 ) DIV + 84 AS col1
----
301

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT - 31 * + - 7 + + 84 + - MAX ( - 35 ) / + 84 AS col1
----
301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4223
SELECT ALL + - COUNT( * ) AS col0, CAST( - CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ) * - + 28 + 12 AS col0
----
-1
40

skipif mysql # not compatible
query II rowsort label-4223
SELECT ALL + - COUNT ( * ) AS col0, CAST ( - CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ) * - + 28 + 12 AS col0
----
-1
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT + + ( + + 22 ) * 94 * - CAST( NULL AS SIGNED ) * - 78 + - 11 + - COUNT( * ) + 87 * - 53 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT + + ( + + 22 ) * 94 * - CAST ( NULL AS INTEGER ) * - 78 + - 11 + - COUNT ( * ) + 87 * - 53 col1
----
NULL

query I rowsort
SELECT + + 61 - - 72 col2
----
133

query I rowsort
SELECT ALL 70 * 41 + - 76
----
2794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT ALL - CAST( NULL AS SIGNED ) * + - 36 * - 27 + - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 36 * - 27 + - + 53
----
NULL

query I rowsort
SELECT CASE + 85 WHEN + 42 THEN + 35 / + + 45 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 71 * 98 AS col2
----
6958

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT - NULLIF ( + + 50, AVG ( DISTINCT + ( 61 ) ) ) * 66 + 37 * - ( ( 18 ) ) * - + 67 - + 83 DIV - 50 AS col2
----
41323

skipif mysql # not compatible
query I rowsort label-4230
SELECT - NULLIF ( + + 50, AVG ( DISTINCT + ( 61 ) ) ) * 66 + 37 * - ( ( 18 ) ) * - + 67 - + 83 / - 50 AS col2
----
41323

query I rowsort
SELECT + 35 * - 2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4232
SELECT CASE + 38 WHEN COUNT( * ) * + 37 THEN 38 / 55 / - COUNT( * ) + + ( + 97 ) + + MAX( ALL CAST( + + 31 AS SIGNED ) ) - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT CASE + 38 WHEN COUNT ( * ) * + 37 THEN 38 / 55 / - COUNT ( * ) + + ( + 97 ) + + MAX ( ALL CAST ( + + 31 AS INTEGER ) ) - 59 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4233
SELECT - COUNT( DISTINCT 73 ) DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4233
SELECT - COUNT ( DISTINCT 73 ) / + 52 AS col2
----
0

query II rowsort
SELECT + ( 88 ) AS col2, + 64 AS col2
----
88
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4235
SELECT - 35 + - 63 AS col0, SUM( + 37 ) + - ( + CASE 5 WHEN CAST( 1 AS DECIMAL ) + + 97 THEN - 58 ELSE 98 * 12 END ) AS col2
----
-98
-1139

skipif mysql # not compatible
query II rowsort label-4235
SELECT - 35 + - 63 AS col0, SUM ( + 37 ) + - ( + CASE 5 WHEN CAST ( 1 AS REAL ) + + 97 THEN - 58 ELSE 98 * 12 END ) AS col2
----
-98
-1139

query II rowsort
SELECT ALL + 6 AS col2, + 88 + + - 16 AS col1
----
6
72

query I rowsort
SELECT + 5 * 48
----
240

query I rowsort
SELECT ALL COALESCE ( 92, - - 32, - 74 ) * + 15
----
1380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL CASE 55 WHEN 33 THEN 78 * 70 WHEN - 31 THEN 12 + 34 ELSE 17 + - 51 * + 38 * - - ( + CAST( + 50 AS SIGNED ) ) END
----
-96883

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL CASE 55 WHEN 33 THEN 78 * 70 WHEN - 31 THEN 12 + 34 ELSE 17 + - 51 * + 38 * - - ( + CAST ( + 50 AS INTEGER ) ) END
----
-96883

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT + COUNT( * ) DIV + 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT + COUNT ( * ) / + 15 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL NULLIF ( - ( 26 ), - COUNT( * ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL NULLIF ( - ( 26 ), - COUNT ( * ) ) AS col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4242
SELECT - COUNT( DISTINCT - 58 ) DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4242
SELECT - COUNT ( DISTINCT - 58 ) / 73 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4243
SELECT ALL + 50, - 11 DIV 47 + + - SUM( 83 ) AS col1
----
50
-83

skipif mysql # not compatible
query II rowsort label-4243
SELECT ALL + 50, - 11 / 47 + + - SUM ( 83 ) AS col1
----
50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT - MIN( - 78 ) * - + 82 + + + 25 + - MIN( 45 ) * + - COUNT( * ) + - NULLIF ( - 72, CASE - + CASE + - 55 WHEN + 70 THEN - + 45 + + - ( 81 ) * + 7 END WHEN 74 + 98 * - 28 + + 53 THEN + COUNT( * ) END ) - - 42 + - + 15 * + NULLIF ( 67, - 94 ) * + 5
----
-11237

skipif mysql # not compatible
query I rowsort label-4244
SELECT - MIN ( - 78 ) * - + 82 + + + 25 + - MIN ( 45 ) * + - COUNT ( * ) + - NULLIF ( - 72, CASE - + CASE + - 55 WHEN + 70 THEN - + 45 + + - ( 81 ) * + 7 END WHEN 74 + 98 * - 28 + + 53 THEN + COUNT ( * ) END ) - - 42 + - + 15 * + NULLIF ( 67, - 94 ) * + 5
----
-11237

query I rowsort
SELECT + 23 - + 17 * 92 - + 69 AS col1
----
-1610

query II rowsort
SELECT - 49 col1, + 3
----
-49
3

query I rowsort
SELECT ALL - - 72 + + 95 AS col2
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT + CAST( NULL AS SIGNED ) - + - COUNT( * ) + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) + - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL CASE + - 66 WHEN + + 38 THEN NULL WHEN ( - + CASE WHEN COUNT( * ) <= - - 10 + + 83 THEN COUNT( * ) * ( + 55 ) * - 45 + - - 70 / + COUNT( * ) - - - 35 END ) THEN + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL CASE + - 66 WHEN + + 38 THEN NULL WHEN ( - + CASE WHEN COUNT ( * ) <= - - 10 + + 83 THEN COUNT ( * ) * ( + 55 ) * - 45 + - - 70 / + COUNT ( * ) - - - 35 END ) THEN + 68 END
----
NULL

query I rowsort
SELECT - - 98 * + 93
----
9114

query I rowsort
SELECT DISTINCT - 87 + + 47
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT - SUM( ALL 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4252
SELECT - SUM ( ALL 14 )
----
-14

query I rowsort
SELECT ALL 28 + + - 96
----
-68

query I rowsort
SELECT ALL - 37 + - 60
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT + + 30 + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + + 30 + + COUNT ( * )
----
31

query II rowsort
SELECT - - 42, 64 AS col2
----
42
64

query I rowsort
SELECT DISTINCT - 51 + - 9 * - ( - 64 ) + - - 7 AS col0
----
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL + COUNT( DISTINCT - 72 ) + + COALESCE ( + - 82, + + 37 + 5 * - + 44 + - 67, 49 ) + + 95
----
14

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + COUNT ( DISTINCT - 72 ) + + COALESCE ( + - 82, + + 37 + 5 * - + 44 + - 67, 49 ) + + 95
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4259
SELECT - - 32, 1 + - - COUNT( * ) - 47 * COUNT( * ) DIV - 54 AS col0
----
32
2

skipif mysql # not compatible
query II rowsort label-4259
SELECT - - 32, 1 + - - COUNT ( * ) - 47 * COUNT ( * ) / - 54 AS col0
----
32
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4260
SELECT DISTINCT - 94 DIV + + 8 - NULLIF ( - - 39, + 35 + - 10 - + 84 + + - 21 DIV - COUNT( * ) - - 2 + - COUNT( * ) * - 85 + ( - + 17 ) ) + + - 12 * - + 4 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT - 94 / + + 8 - NULLIF ( - - 39, + 35 + - 10 - + 84 + + - 21 / - COUNT ( * ) - - 2 + - COUNT ( * ) * - 85 + ( - + 17 ) ) + + - 12 * - + 4 AS col2
----
-2

query II rowsort
SELECT - 71 * + 38 AS col0, 57 AS col2
----
-2698
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL + CASE 18 WHEN + COALESCE ( - COUNT( * ), 97, - + COUNT( * ) ) THEN + 12 * + + 87 END / - + COUNT( DISTINCT - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + CASE 18 WHEN + COALESCE ( - COUNT ( * ), 97, - + COUNT ( * ) ) THEN + 12 * + + 87 END / - + COUNT ( DISTINCT - 67 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4263
SELECT ALL CAST( + NULLIF ( + - COUNT( * ), + 65 - + 60 ) AS SIGNED ) * - COALESCE ( COUNT( * ), + + MAX( DISTINCT - + 24 ) + 64 ) * + - 19 - - COALESCE ( - + COALESCE ( 33, - 85 ), 14 ) DIV + 45 + + 67
----
48

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL CAST ( + NULLIF ( + - COUNT ( * ), + 65 - + 60 ) AS INTEGER ) * - COALESCE ( COUNT ( * ), + + MAX ( DISTINCT - + 24 ) + 64 ) * + - 19 - - COALESCE ( - + COALESCE ( 33, - 85 ), 14 ) / + 45 + + 67
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4264
SELECT - 71 * + 44 DIV - 4 * COUNT( * ) - - ( - 94 ) * - MAX( + 61 ) AS col1
----
6515

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 71 * + 44 / - 4 * COUNT ( * ) - - ( - 94 ) * - MAX ( + 61 ) AS col1
----
6515

query I rowsort
SELECT 26 * - 2 col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4266
SELECT ALL - 4 * + COUNT( * ) AS col1, - 85 * - ( + 73 ) AS col0
----
-4
6205

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL - 4 * + COUNT ( * ) AS col1, - 85 * - ( + 73 ) AS col0
----
-4
6205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4267
SELECT COUNT( - 30 ) * + - 69 + + 80 - - - 23 DIV 30 * + - 61 + + 19 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4267
SELECT COUNT ( - 30 ) * + - 69 + + 80 - - - 23 / 30 * + - 61 + + 19 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4268
SELECT + 27 * - 97 * + COUNT( * ) * + 6 - ( CAST( NULL AS SIGNED ) ) / + 18 * + CAST( NULL AS SIGNED ) * + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT + 27 * - 97 * + COUNT ( * ) * + 6 - ( CAST ( NULL AS INTEGER ) ) / + 18 * + CAST ( NULL AS INTEGER ) * + - 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT 11 * - MIN( - 44 ) * 1 - + 21
----
463

skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT 11 * - MIN ( - 44 ) * 1 - + 21
----
463

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT 67 - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-4270
SELECT 67 - COUNT ( * )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT ALL 57 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL 57 / - 72
----
0

query I rowsort
SELECT - 12 * - 44 + - 35 * - + 49
----
2243

onlyif mysql # DIV for integer division: 
query I rowsort label-4273
SELECT + 81 DIV - - 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4273
SELECT + 81 / - - 40 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL - 49 + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - 49 + + COUNT ( * )
----
-48

query I rowsort
SELECT + 20 + - - 96
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 73 + 36 AS col1
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4278
SELECT + 48 DIV - + 59 AS col1, - COUNT( ( + 56 ) ) * + - SUM( 2 )
----
0
2

skipif mysql # not compatible
query II rowsort label-4278
SELECT + 48 / - + 59 AS col1, - COUNT ( ( + 56 ) ) * + - SUM ( 2 )
----
0
2

query I rowsort
SELECT ALL COALESCE ( + - 72, + 89 ) + - + 74 * - - 71 + - 69 + 41
----
-5354

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT COUNT( - - 90 ) + 50 col2, 3 AS col2
----
51
3

skipif mysql # not compatible
query II rowsort label-4280
SELECT COUNT ( - - 90 ) + 50 col2, 3 AS col2
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL + COALESCE ( - + NULLIF ( 58, 8 ), CASE - 74 WHEN + 26 * - 24 + - 67 + + - ( + 7 ) + - + MAX( DISTINCT + 60 ) * + 24 * - + 84 THEN 25 END ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + COALESCE ( - + NULLIF ( 58, 8 ), CASE - 74 WHEN + 26 * - 24 + - 67 + + - ( + 7 ) + - + MAX ( DISTINCT + 60 ) * + 24 * - + 84 THEN 25 END ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4282
SELECT DISTINCT + 14 - 90 AS col1, CAST( NULL AS SIGNED )
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-4282
SELECT DISTINCT + 14 - 90 AS col1, CAST ( NULL AS INTEGER )
----
-76
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4283
SELECT MIN( DISTINCT + 16 ) col2, CAST( - COUNT( * ) AS SIGNED ) col2
----
16
-1

skipif mysql # not compatible
query II rowsort label-4283
SELECT MIN ( DISTINCT + 16 ) col2, CAST ( - COUNT ( * ) AS INTEGER ) col2
----
16
-1

query I rowsort
SELECT ALL + + 53 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL ( - COUNT( * ) ) * - + 35 * + 54
----
1890

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL ( - COUNT ( * ) ) * - + 35 * + 54
----
1890

onlyif mysql # aggregate syntax: 
query II rowsort label-4286
SELECT DISTINCT + 89 * - ( + 11 ) AS col1, + COUNT( * ) + + + 69 + - 16 * 47
----
-979
-682

skipif mysql # not compatible
query II rowsort label-4286
SELECT DISTINCT + 89 * - ( + 11 ) AS col1, + COUNT ( * ) + + + 69 + - 16 * 47
----
-979
-682

query I rowsort
SELECT 36 * 32
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT ALL + MIN( DISTINCT + - ( + 77 ) ) * 30 col2, 74
----
-2310
74

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL + MIN ( DISTINCT + - ( + 77 ) ) * 30 col2, 74
----
-2310
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT CAST( NULL AS SIGNED ) * - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT CAST ( NULL AS INTEGER ) * - 8 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT - 67 DIV - 62 + 86 DIV + + 38 col0
----
3

skipif mysql # not compatible
query I rowsort label-4290
SELECT - 67 / - 62 + 86 / + + 38 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL - 17 - - 98 + + COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - 17 - - 98 + + COUNT ( * ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT 26 DIV + 25 col2
----
1

skipif mysql # not compatible
query I rowsort label-4292
SELECT 26 / + 25 col2
----
1

query I rowsort
SELECT - 4 * ( - + 36 ) + - 68 AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT DISTINCT + 35 DIV 1
----
35

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + 35 / 1
----
35

query I rowsort
SELECT ALL + 18 * + 9 AS col0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT 51 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT 51 / + + 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL - CAST( NULL AS SIGNED ) / + + 51 * + + ( 55 ) * - ( - 55 ) + - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - CAST ( NULL AS INTEGER ) / + + 51 * + + ( 55 ) * - ( - 55 ) + - - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL 70 + + 27 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL - 18 * - COUNT( * ) * - 34 * + 22 * + 51
----
-686664

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - 18 * - COUNT ( * ) * - 34 * + 22 * + 51
----
-686664

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT COUNT( * ) * + COALESCE ( + 91, + 59, - 37 ) + - + 96 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4300
SELECT COUNT ( * ) * + COALESCE ( + 91, + 59, - 37 ) + - + 96 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT + 55 * MAX( - 38 )
----
-2090

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + 55 * MAX ( - 38 )
----
-2090

onlyif mysql # aggregate syntax: 
query II rowsort label-4302
SELECT MAX( DISTINCT 50 ) * - 71 AS col0, ( + - 0 ) AS col2
----
-3550
0

skipif mysql # not compatible
query II rowsort label-4302
SELECT MAX ( DISTINCT 50 ) * - 71 AS col0, ( + - 0 ) AS col2
----
-3550
0

query I rowsort
SELECT ALL + 46 + + 69 AS col2
----
115

query II rowsort
SELECT 30 AS col0, 57 + + 66 + + + 29 AS col1
----
30
152

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT - COUNT( * ) + + 43 + - 51 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - COUNT ( * ) + + 43 + - 51 AS col2
----
-9

query I rowsort
SELECT ALL - 17 + - 0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT - NULLIF ( NULLIF ( - - COALESCE ( + 27, MIN( ( - 78 ) ) * + 7 DIV - 79 - 71 ), - COUNT( * ) + - + 61 ), - 28 * - CASE - 35 WHEN + 48 + 62 THEN - 44 WHEN + 93 THEN NULL ELSE 54 END * - MAX( ALL + - 66 ) * 23 DIV + + 50 - - 97 - + 66 DIV + + COUNT( * ) + + 98 + + COUNT( * ) ) col2
----
-27

skipif mysql # not compatible
query I rowsort label-4307
SELECT - NULLIF ( NULLIF ( - - COALESCE ( + 27, MIN ( ( - 78 ) ) * + 7 / - 79 - 71 ), - COUNT ( * ) + - + 61 ), - 28 * - CASE - 35 WHEN + 48 + 62 THEN - 44 WHEN + 93 THEN NULL ELSE 54 END * - MAX ( ALL + - 66 ) * 23 / + + 50 - - 97 - + 66 / + + COUNT ( * ) + + 98 + + COUNT ( * ) ) col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT DISTINCT ( - 99 ) DIV - 25 + + COUNT( ALL + + 80 ) + - - COUNT( * ) * + 34 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT ( - 99 ) / - 25 + + COUNT ( ALL + + 80 ) + - - COUNT ( * ) * + 34 AS col1
----
38

query I rowsort
SELECT ALL + 76 - 15 AS col1
----
61

query I rowsort
SELECT 72 - - 48 - - 95 + + - 80 * 14
----
-905

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - SUM( + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL - SUM ( + 14 )
----
-14

query III rowsort
SELECT ALL 80, + CASE + 60 WHEN - 50 / - 84 THEN 21 END AS col0, - 27 AS col0
----
80
NULL
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT - MIN( - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4313
SELECT - MIN ( - 64 ) AS col0
----
64

query I rowsort
SELECT ALL 87 - + 35 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT 95 * - MAX( 81 ) * + 18
----
-138510

skipif mysql # not compatible
query I rowsort label-4315
SELECT 95 * - MAX ( 81 ) * + 18
----
-138510

query III rowsort
SELECT ALL + 99 * - - 39 * - 41 AS col1, 4 + - 91 + - 8, 97 AS col1
----
-158301
-95
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT ALL 64 col2, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL 64 col2, COUNT ( * )
----
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + 83 - + + ( - 84 ) * 0 * COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + 83 - + + ( - 84 ) * 0 * COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT MAX( DISTINCT + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4319
SELECT MAX ( DISTINCT + 67 )
----
67

query I rowsort
SELECT + 66 * + 65 * 71
----
304590

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT - COUNT( * ) - - 38 - + + 2 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4321
SELECT - COUNT ( * ) - - 38 - + + 2 AS col1
----
35

query II rowsort
SELECT + 36 * - 38 AS col2, 27
----
-1368
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4323
SELECT - MAX( ALL 2 ) AS col1, - 66 + - 48 * - 54 * COALESCE ( - + CASE - 44 WHEN - NULLIF ( + - 75, + 74 * + - 2 + 9 / + + 41 - + 53 ) THEN - 80 WHEN - + CAST( - + ( - 99 ) AS DECIMAL ) THEN NULL ELSE NULL END, ( + 39 ) ) * - - CAST( NULL AS SIGNED )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4323
SELECT - MAX ( ALL 2 ) AS col1, - 66 + - 48 * - 54 * COALESCE ( - + CASE - 44 WHEN - NULLIF ( + - 75, + 74 * + - 2 + 9 / + + 41 - + 53 ) THEN - 80 WHEN - + CAST ( - + ( - 99 ) AS REAL ) THEN NULL ELSE NULL END, ( + 39 ) ) * - - CAST ( NULL AS INTEGER )
----
-2
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT - 0 DIV 54 + - 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4324
SELECT - 0 / 54 + - 82 AS col0
----
-82

query I rowsort
SELECT ALL + 49 * 80
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL - COUNT( - 97 ) * - - 21 + 64
----
43

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - COUNT ( - 97 ) * - - 21 + 64
----
43

query I rowsort
SELECT ALL + 10 * 77 + - 67
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT COALESCE ( 29, - 64 * - + COUNT( * ) * + COUNT( ALL 84 ) )
----
29

skipif mysql # not compatible
query I rowsort label-4328
SELECT COALESCE ( 29, - 64 * - + COUNT ( * ) * + COUNT ( ALL 84 ) )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT - 76 * + CAST( + 68 AS SIGNED ) AS col0
----
-5168

skipif mysql # not compatible
query I rowsort label-4329
SELECT - 76 * + CAST ( + 68 AS INTEGER ) AS col0
----
-5168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT CASE + 68 WHEN - ( - SUM( ALL + - 50 ) ) + 92 / - + COUNT( * ) THEN + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT CASE + 68 WHEN - ( - SUM ( ALL + - 50 ) ) + 92 / - + COUNT ( * ) THEN + + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4331
SELECT - 28 DIV + ( - COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-4331
SELECT - 28 / + ( - COUNT ( * ) )
----
28

query I rowsort
SELECT ALL 12 * - - 33 + - + 41 AS col1
----
355

query II rowsort
SELECT - NULLIF ( + 80, + 50 + + 42 * - 32 + - 28 ) + - 0, 83 AS col1
----
-80
83

query I rowsort
SELECT - - 10 * 8
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT - 30 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT - 30 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT - - 66 + COALESCE ( 12, + CAST( - - 83 AS SIGNED ), + 53 )
----
78

skipif mysql # not compatible
query I rowsort label-4336
SELECT - - 66 + COALESCE ( 12, + CAST ( - - 83 AS INTEGER ), + 53 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - MIN( - - 51 ) * + 84
----
-4284

skipif mysql # not compatible
query I rowsort label-4337
SELECT - MIN ( - - 51 ) * + 84
----
-4284

query I rowsort
SELECT DISTINCT - - 24 * 83 - - + 61 AS col0
----
2053

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT DISTINCT + 64 * 23 DIV + + NULLIF ( + + 24, - 32 )
----
61

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + 64 * 23 / + + NULLIF ( + + 24, - 32 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT - 19 + NULLIF ( - ( + 76 ), 92 * - MAX( 93 ) ) AS col0, 19
----
-95
19

skipif mysql # not compatible
query II rowsort label-4340
SELECT - 19 + NULLIF ( - ( + 76 ), 92 * - MAX ( 93 ) ) AS col0, 19
----
-95
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL COALESCE ( - + 8, ( MIN( ALL 49 ) ), + 77 + + COUNT( * ) + 35 * - 39 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL COALESCE ( - + 8, ( MIN ( ALL 49 ) ), + 77 + + COUNT ( * ) + 35 * - 39 ) AS col0
----
-8

query I rowsort
SELECT DISTINCT - + 44 * + - 16 col0
----
704

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4343
SELECT CAST( - CAST( ( + ( + - 80 ) ) AS DECIMAL ) AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-4343
SELECT CAST ( - CAST ( ( + ( + - 80 ) ) AS REAL ) AS INTEGER )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT NULLIF ( - + CAST( NULL AS SIGNED ), 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT NULLIF ( - + CAST ( NULL AS INTEGER ), 84 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4345
SELECT + - 9 + + 85, - 95 DIV + - 49 AS col2
----
76
1

skipif mysql # not compatible
query II rowsort label-4345
SELECT + - 9 + + 85, - 95 / + - 49 AS col2
----
76
1

query I rowsort
SELECT ALL 48 * - 21 * 26 AS col0
----
-26208

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT - MAX( + 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4347
SELECT - MAX ( + 60 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - ( CASE NULLIF ( 27, - - COUNT( * ) * - 21 / CASE + - 72 WHEN 59 THEN - 39 WHEN 27 THEN NULL END / - + 97 ) WHEN - - NULLIF ( - + 98, - CASE 0 WHEN - COUNT( * ) * + COUNT( 95 ) + COUNT( * ) / 68 THEN NULL WHEN 91 THEN NULL ELSE 61 END ) / + 75 THEN 52 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT - ( CASE NULLIF ( 27, - - COUNT ( * ) * - 21 / CASE + - 72 WHEN 59 THEN - 39 WHEN 27 THEN NULL END / - + 97 ) WHEN - - NULLIF ( - + 98, - CASE 0 WHEN - COUNT ( * ) * + COUNT ( 95 ) + COUNT ( * ) / 68 THEN NULL WHEN 91 THEN NULL ELSE 61 END ) / + 75 THEN 52 END ) AS col2
----
NULL

query I rowsort
SELECT ALL 1 * + 26 * - 30 AS col0
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT + 6 + - 37 * - COUNT( * ) - + 25 + + - 85 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4350
SELECT + 6 + - 37 * - COUNT ( * ) - + 25 + + - 85 AS col2
----
-67

query I rowsort
SELECT ALL - 45 + - + 62
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL + ( - - 46 ) + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL + ( - - 46 ) + COUNT ( * )
----
47

query I rowsort
SELECT ALL 94 + + 62 + 78 * 71
----
5694

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL 53 + + 33 * 6 * 55 + + 71 - + COALESCE ( + 94, - 44, + 44 ) * - - ( - COUNT( * ) ) AS col1
----
11108

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL 53 + + 33 * 6 * 55 + + 71 - + COALESCE ( + 94, - 44, + 44 ) * - - ( - COUNT ( * ) ) AS col1
----
11108

query I rowsort
SELECT - ( 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT - 70 DIV - + 65
----
1

skipif mysql # not compatible
query I rowsort label-4356
SELECT - 70 / - + 65
----
1

query II rowsort
SELECT NULLIF ( - 14, 7 ) * 14 + 86 + - + 51 AS col1, + 62 AS col0
----
-161
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT CAST( + SUM( - 11 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-4358
SELECT CAST ( + SUM ( - 11 ) AS INTEGER )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT ALL 33 / 22 / 75 + + 61 - - - NULLIF ( COALESCE ( - 16, ( 6 ) * 59, + 71 + + 87 * 21 ), - - 4 + 54 / + 80 ) * + SUM( - + CAST( 78 AS SIGNED ) ) + - 50 - - + ( - 69 ) * CAST( NULL AS SIGNED ) / - 72 + - 82 + + 29 * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL 33 / 22 / 75 + + 61 - - - NULLIF ( COALESCE ( - 16, ( 6 ) * 59, + 71 + + 87 * 21 ), - - 4 + 54 / + 80 ) * + SUM ( - + CAST ( 78 AS INTEGER ) ) + - 50 - - + ( - 69 ) * CAST ( NULL AS INTEGER ) / - 72 + - 82 + + 29 * + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT + CASE COUNT( * ) WHEN + AVG ( 26 ) THEN NULL WHEN - 33 * + CASE - 49 WHEN - - CASE - - COALESCE ( + 98, + AVG ( ALL - 44 ) + - COALESCE ( 2, CAST( NULL AS SIGNED ) + 10 - + 32 + - AVG ( ALL 15 ) * - + 78 * 98 / - + 98 * + + 14 + + 49 * 51 ) ) WHEN - 72 * - - 18 / ( - + 33 ) THEN NULL ELSE + 46 * + 26 END THEN NULL WHEN 10 THEN ( 5 ) ELSE NULL END / CASE - 52 * 32 WHEN COUNT( * ) THEN 41 ELSE 99 END + 71 THEN NULL ELSE 24 - + 93 END
----
-69

skipif mysql # not compatible
query I rowsort label-4360
SELECT + CASE COUNT ( * ) WHEN + AVG ( 26 ) THEN NULL WHEN - 33 * + CASE - 49 WHEN - - CASE - - COALESCE ( + 98, + AVG ( ALL - 44 ) + - COALESCE ( 2, CAST ( NULL AS INTEGER ) + 10 - + 32 + - AVG ( ALL 15 ) * - + 78 * 98 / - + 98 * + + 14 + + 49 * 51 ) ) WHEN - 72 * - - 18 / ( - + 33 ) THEN NULL ELSE + 46 * + 26 END THEN NULL WHEN 10 THEN ( 5 ) ELSE NULL END / CASE - 52 * 32 WHEN COUNT ( * ) THEN 41 ELSE 99 END + 71 THEN NULL ELSE 24 - + 93 END
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4361
SELECT ALL COUNT( * ) DIV + 39 + - COUNT( * ) DIV + + ( + 39 ) * + 59 DIV - CAST( - 6 AS SIGNED ) - - - 92 + + + ( + 84 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL COUNT ( * ) / + 39 + - COUNT ( * ) / + + ( + 39 ) * + 59 / - CAST ( - 6 AS INTEGER ) - - - 92 + + + ( + 84 ) AS col2
----
-8

query II rowsort
SELECT + 8 AS col0, + 64
----
8
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT + 16 * + CAST( - ( - 26 ) AS SIGNED ) AS col2
----
416

skipif mysql # not compatible
query I rowsort label-4363
SELECT + 16 * + CAST ( - ( - 26 ) AS INTEGER ) AS col2
----
416

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT DISTINCT 83 DIV + 93 + 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT 83 / + 93 + 31 AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL + CAST( NULL AS SIGNED ) / - - 91 + + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 91 + + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + COUNT( * ) + 83 + 2 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4366
SELECT + COUNT ( * ) + 83 + 2 AS col2
----
86

query I rowsort
SELECT ALL 79 * + 39
----
3081

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT - 17 * 89 + - 73 DIV + + 56 + 82
----
-1432

skipif mysql # not compatible
query I rowsort label-4368
SELECT - 17 * 89 + - 73 / + + 56 + 82
----
-1432

query I rowsort
SELECT - - 38 * 42 AS col2
----
1596

query I rowsort
SELECT DISTINCT + 63 * - 21 - + 36 col2
----
-1359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4371
SELECT ALL + - ( - NULLIF ( + CAST( NULL AS DECIMAL ), - COUNT( * ) ) ) * - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + - ( - NULLIF ( + CAST ( NULL AS REAL ), - COUNT ( * ) ) ) * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT DISTINCT COUNT( * ) AS col2, 25 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT COUNT ( * ) AS col2, 25 AS col0
----
1
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4373
SELECT COUNT( * ) * - 86 DIV ( 70 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4373
SELECT COUNT ( * ) * - 86 / ( 70 ) AS col1
----
-1

query I rowsort
SELECT - 96 * - 54 AS col1
----
5184

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT ALL + 33 * - ( - - 50 ), 82 + + COUNT( * ) - - + 16 * + 25 / 52 * 60 * + + CASE + ( - 11 ) WHEN 43 * + 52 - + - 75 + COUNT( * ) THEN - 32 / + - 43 ELSE NULL END col0
----
-1650
NULL

skipif mysql # not compatible
query II rowsort label-4375
SELECT ALL + 33 * - ( - - 50 ), 82 + + COUNT ( * ) - - + 16 * + 25 / 52 * 60 * + + CASE + ( - 11 ) WHEN 43 * + 52 - + - 75 + COUNT ( * ) THEN - 32 / + - 43 ELSE NULL END col0
----
-1650
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT COUNT( * ) - - - COUNT( * ) - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT COUNT ( * ) - - - COUNT ( * ) - - COUNT ( * )
----
1

query I rowsort
SELECT ALL - + 41 * - 61 AS col2
----
2501

query I rowsort
SELECT 32 * 69 AS col2
----
2208

query I rowsort
SELECT DISTINCT - 76 + + + 60 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT DISTINCT - 31 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT - 31 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 45 + - 10 * + + 60 AS col0
----
-555

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT ALL - ( + + 38 ) + + 72 + 7 - + CAST( - 27 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL - ( + + 38 ) + + 72 + 7 - + CAST ( - 27 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL 53 + - - 75 * NULLIF ( COUNT( * ), + 23 ) AS col2
----
128

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL 53 + - - 75 * NULLIF ( COUNT ( * ), + 23 ) AS col2
----
128

query II rowsort
SELECT 51 col0, COALESCE ( - 97, - ( - 45 ) + + 6 ) + - + 70 AS col1
----
51
-167

query I rowsort
SELECT 71 - - 81 AS col2
----
152

query II rowsort
SELECT - 41, 41 AS col0
----
-41
41

query II rowsort
SELECT 60, + 71 AS col0
----
60
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT ALL - 14 + CAST( - 40 AS SIGNED ) * - + 82
----
3266

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - 14 + CAST ( - 40 AS INTEGER ) * - + 82
----
3266

onlyif mysql # aggregate syntax: 
query II rowsort label-4389
SELECT 32 AS col0, COUNT( 40 ) + - + 76 AS col0
----
32
-75

skipif mysql # not compatible
query II rowsort label-4389
SELECT 32 AS col0, COUNT ( 40 ) + - + 76 AS col0
----
32
-75

query II rowsort
SELECT - 97 AS col1, 24 + COALESCE ( + 52, 80, + 12 ) AS col1
----
-97
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT 93 + + - 27 - - CAST( NULL AS SIGNED ) * CAST( 5 AS SIGNED ) - + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT 93 + + - 27 - - CAST ( NULL AS INTEGER ) * CAST ( 5 AS INTEGER ) - + - 69
----
NULL

query II rowsort
SELECT 76 AS col0, + ( - 37 ) + 35
----
76
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL 11 * + ( + - 44 ) * COUNT( * ) * 6 AS col0
----
-2904

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL 11 * + ( + - 44 ) * COUNT ( * ) * 6 AS col0
----
-2904

query II rowsort
SELECT 46 AS col1, + 63 + ( 39 ) + - 70 AS col0
----
46
32

query I rowsort
SELECT ALL 5 - 47
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT 70, MAX( DISTINCT - 31 ) * + 26 AS col0
----
70
-806

skipif mysql # not compatible
query II rowsort label-4396
SELECT 70, MAX ( DISTINCT - 31 ) * + 26 AS col0
----
70
-806

query I rowsort
SELECT ALL 51 * ( 12 )
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT + 73 * + 23 + + COUNT( * )
----
1680

skipif mysql # not compatible
query I rowsort label-4398
SELECT + 73 * + 23 + + COUNT ( * )
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-4399
SELECT - 42, - MIN( ALL - 57 ) * SUM( DISTINCT - 16 ) AS col0
----
-42
-912

skipif mysql # not compatible
query II rowsort label-4399
SELECT - 42, - MIN ( ALL - 57 ) * SUM ( DISTINCT - 16 ) AS col0
----
-42
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4400
SELECT + 53 AS col0, NULLIF ( 57, 49 ) DIV + COUNT( * ) + + + 8 col2
----
53
65

skipif mysql # not compatible
query II rowsort label-4400
SELECT + 53 AS col0, NULLIF ( 57, 49 ) / + COUNT ( * ) + + + 8 col2
----
53
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4401
SELECT + ( 50 ) + + COALESCE ( - + CAST( 14 AS SIGNED ), - 5 + + - 18 ) - - + COUNT( * ) + + COUNT( * ) * - 70 - - 58 * + ( NULLIF ( - 26, - - 94 ) ) + + - 55 + + 66 * MAX( DISTINCT + 56 ) * - 97 col0
----
-360108

skipif mysql # not compatible
query I rowsort label-4401
SELECT + ( 50 ) + + COALESCE ( - + CAST ( 14 AS INTEGER ), - 5 + + - 18 ) - - + COUNT ( * ) + + COUNT ( * ) * - 70 - - 58 * + ( NULLIF ( - 26, - - 94 ) ) + + - 55 + + 66 * MAX ( DISTINCT + 56 ) * - 97 col0
----
-360108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT CAST( NULL AS SIGNED ) * + - 20 + - + ( - 95 ) + - + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT CAST ( NULL AS INTEGER ) * + - 20 + - + ( - 95 ) + - + 5
----
NULL

query III rowsort
SELECT DISTINCT - - ( - + 17 ) AS col0, - 33 + 79 AS col2, + + 49
----
-17
46
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4404
SELECT + 87 + CAST( + COUNT( * ) AS SIGNED ) DIV + 51 * NULLIF ( + + 16, - 40 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4404
SELECT + 87 + CAST ( + COUNT ( * ) AS INTEGER ) / + 51 * NULLIF ( + + 16, - 40 ) AS col0
----
87

query II rowsort
SELECT ALL - + 57 AS col1, 96 AS col1
----
-57
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + 10 * 72 + COUNT( - - 21 ) * ( 85 )
----
805

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 10 * 72 + COUNT ( - - 21 ) * ( 85 )
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL COALESCE ( - - COUNT( * ), 64 ) * 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL COALESCE ( - - COUNT ( * ), 64 ) * 32 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4408
SELECT DISTINCT - - 79 col0, CAST( NULL AS SIGNED ) + - ( + 37 )
----
79
NULL

skipif mysql # not compatible
query II rowsort label-4408
SELECT DISTINCT - - 79 col0, CAST ( NULL AS INTEGER ) + - ( + 37 )
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT - 98 * + 8 + - MIN( DISTINCT - - 0 ) * 88 AS col1
----
-784

skipif mysql # not compatible
query I rowsort label-4409
SELECT - 98 * + 8 + - MIN ( DISTINCT - - 0 ) * 88 AS col1
----
-784

query I rowsort
SELECT ALL 97 * - - 62
----
6014

query II rowsort
SELECT 49 * - + 2 AS col2, + 48 AS col0
----
-98
48

query II rowsort
SELECT - 37 + + 91, 11 * - 58 + + 99 AS col1
----
54
-539

onlyif mysql # DIV for integer division: 
query II rowsort label-4413
SELECT + 49 col0, + 43 DIV + + 61 AS col2
----
49
0

skipif mysql # not compatible
query II rowsort label-4413
SELECT + 49 col0, + 43 / + + 61 AS col2
----
49
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT 39 + MAX( - - 3 ) + 6 * + CAST( NULL AS SIGNED ) + + 24 + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT 39 + MAX ( - - 3 ) + 6 * + CAST ( NULL AS INTEGER ) + + 24 + - 12 AS col2
----
NULL

query I rowsort
SELECT ALL - + ( 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT - COALESCE ( - ( - 52 ), + 57 ) * + - 10 + - 89 + - 39 + - 88 DIV 36 * 34 * + 69 + - 29 - - - MAX( + 76 )
----
-4405

skipif mysql # not compatible
query I rowsort label-4416
SELECT - COALESCE ( - ( - 52 ), + 57 ) * + - 10 + - 89 + - 39 + - 88 / 36 * 34 * + 69 + - 29 - - - MAX ( + 76 )
----
-4405

query II rowsort
SELECT + 3 + - 26 col0, 39 - 7 AS col1
----
-23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - NULLIF ( 31, MAX( ALL + 85 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4418
SELECT - NULLIF ( 31, MAX ( ALL + 85 ) ) AS col2
----
-31

query I rowsort
SELECT ALL - + 39 + + 53
----
14

query I rowsort
SELECT ( - 80 ) + - + 19 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4421
SELECT 45 DIV + COUNT( * ) AS col2, + 95 + + 12 * - CAST( + - 95 AS SIGNED ) DIV 94 AS col0
----
45
107

skipif mysql # not compatible
query II rowsort label-4421
SELECT 45 / + COUNT ( * ) AS col2, + 95 + + 12 * - CAST ( + - 95 AS INTEGER ) / 94 AS col0
----
45
107

query I rowsort
SELECT ALL - 27 + + 71
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT 61 + + COUNT( * ) * - COUNT( * ) * - + 14 col2
----
75

skipif mysql # not compatible
query I rowsort label-4423
SELECT 61 + + COUNT ( * ) * - COUNT ( * ) * - + 14 col2
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4424
SELECT DISTINCT + 0 DIV - 11 col2, 48 AS col2
----
0
48

skipif mysql # not compatible
query II rowsort label-4424
SELECT DISTINCT + 0 / - 11 col2, 48 AS col2
----
0
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) / 40
----
NULL

query I rowsort
SELECT 71 + + ( - 86 ) + 99 AS col0
----
84

query I rowsort
SELECT ALL - 27 + + 7 + + 82 * - 33 col2
----
-2726

query I rowsort
SELECT DISTINCT + 73 * + 82 AS col1
----
5986

query I rowsort
SELECT 57 + - 85 * 52 + - 91 - + 17 * - 8
----
-4318

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL - COUNT( * ) - 70 + - - 2 col0
----
-69

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - COUNT ( * ) - 70 + - - 2 col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT 92 + 5 DIV + + 93 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4431
SELECT 92 + 5 / + + 93 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT 96 * + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4432
SELECT 96 * + COUNT ( * ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT - 68 DIV - 57 + + + 71
----
72

skipif mysql # not compatible
query I rowsort label-4433
SELECT - 68 / - 57 + + + 71
----
72

query I rowsort
SELECT NULLIF ( - + 63, + 60 )
----
-63

query II rowsort
SELECT 11 + + - 10, 49 AS col2
----
1
49

query I rowsort
SELECT ( 86 ) * 41
----
3526

query I rowsort
SELECT + 18 * + - 44 AS col2
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - COUNT( * ) + - 46 + + SUM( - - 13 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4438
SELECT - COUNT ( * ) + - 46 + + SUM ( - - 13 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT + 60 * - 47 col0
----
-2820

query I rowsort
SELECT - 85 * - 6 + - - 14
----
524

query I rowsort
SELECT ALL 24 * + 68
----
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-4442
SELECT DISTINCT + - 37 * COUNT( * ) + + 25 AS col0, SUM( ALL + - NULLIF ( 9, - + 73 ) )
----
-12
-9

skipif mysql # not compatible
query II rowsort label-4442
SELECT DISTINCT + - 37 * COUNT ( * ) + + 25 AS col0, SUM ( ALL + - NULLIF ( 9, - + 73 ) )
----
-12
-9

query I rowsort
SELECT ALL + - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT - + 77 * - COUNT( * ) * COUNT( * ) * - 45 AS col2
----
-3465

skipif mysql # not compatible
query I rowsort label-4444
SELECT - + 77 * - COUNT ( * ) * COUNT ( * ) * - 45 AS col2
----
-3465

query I rowsort
SELECT + + 72 * + 11
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT - - COUNT( * ) * - 31 + 85 + - 53 * + 57 * + + 39 * - 41 AS col0
----
4830633

skipif mysql # not compatible
query I rowsort label-4446
SELECT - - COUNT ( * ) * - 31 + 85 + - 53 * + 57 * + + 39 * - 41 AS col0
----
4830633

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL - ( + 1 ) * + 87 - + + 82 + + 84 + + ( COUNT( * ) )
----
-84

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - ( + 1 ) * + 87 - + + 82 + + 84 + + ( COUNT ( * ) )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT + + 22 DIV - ( + + 79 ) * + 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4448
SELECT + + 22 / - ( + + 79 ) * + 29 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4449
SELECT ALL 27 DIV + 89 AS col0, + COALESCE ( + + 54, COUNT( DISTINCT - 18 ) + - COUNT( * ) + + CAST( NULL AS SIGNED ) + 40 + - - CAST( NULL AS SIGNED ) * - 84 * 94 ) + 90 * - 22
----
0
-1926

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL 27 / + 89 AS col0, + COALESCE ( + + 54, COUNT ( DISTINCT - 18 ) + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 40 + - - CAST ( NULL AS INTEGER ) * - 84 * 94 ) + 90 * - 22
----
0
-1926

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT ALL - 42 + - + ( - 56 ) DIV 59 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - 42 + - + ( - 56 ) / 59 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT - 83 + + + SUM( DISTINCT - 94 ) - + 74 AS col1
----
-251

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - 83 + + + SUM ( DISTINCT - 94 ) - + 74 AS col1
----
-251

query I rowsort
SELECT DISTINCT + ( - - 58 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT DISTINCT + 9 + + MAX( + 13 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT + 9 + + MAX ( + 13 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT - MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 30 + - 93
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL 42 + - 68 - - + 21 - + 20 * + + MAX( + 45 ) AS col0
----
-905

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL 42 + - 68 - - + 21 - + 20 * + + MAX ( + 45 ) AS col0
----
-905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4457
SELECT - ( - 50 ) DIV COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4457
SELECT - ( - 50 ) / COUNT ( * ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4458
SELECT ALL 18 + COUNT( * ) DIV - + 97 * - + ( - - CASE + 59 WHEN - ( + 8 ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE - 90 * - COUNT( * ) END ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL 18 + COUNT ( * ) / - + 97 * - + ( - - CASE + 59 WHEN - ( + 8 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE - 90 * - COUNT ( * ) END ) AS col2
----
18

query I rowsort
SELECT + 0 + 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT DISTINCT MAX( DISTINCT + 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT MAX ( DISTINCT + 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT + ( COUNT( * ) ) + - MAX( DISTINCT + 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-4461
SELECT + ( COUNT ( * ) ) + - MAX ( DISTINCT + 50 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4462
SELECT ALL 82 - ( + + 34 ) AS col1, - 62 + CAST( NULL AS SIGNED ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-4462
SELECT ALL 82 - ( + + 34 ) AS col1, - 62 + CAST ( NULL AS INTEGER ) AS col0
----
48
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT DISTINCT + 51 DIV + 28 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT + 51 / + 28 AS col0
----
1

query II rowsort
SELECT 1 col1, 73 AS col0
----
1
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT - 46 - + 12 * COUNT( * ) - + - 21 DIV 47 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-4465
SELECT - 46 - + 12 * COUNT ( * ) - + - 21 / 47 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + 58 * - COUNT( DISTINCT - + 11 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4466
SELECT + 58 * - COUNT ( DISTINCT - + 11 ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4467
SELECT DISTINCT 69 DIV - + 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT 69 / - + 58 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4468
SELECT ALL MIN( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL MIN ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT - ( - ( + 42 ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4470
SELECT + 10 DIV + SUM( ALL + 10 ), CAST( NULLIF ( + 99, 8 + 82 + - + 50 * - CAST( NULL AS SIGNED ) - + COUNT( * ) + 39 ) AS SIGNED ) + - COUNT( * ) col2
----
1
98

skipif mysql # not compatible
query II rowsort label-4470
SELECT + 10 / + SUM ( ALL + 10 ), CAST ( NULLIF ( + 99, 8 + 82 + - + 50 * - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + 39 ) AS INTEGER ) + - COUNT ( * ) col2
----
1
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT - 16 DIV - 39 col0
----
0

skipif mysql # not compatible
query I rowsort label-4471
SELECT - 16 / - 39 col0
----
0

query I rowsort
SELECT ALL - 24 * 7
----
-168

query I rowsort
SELECT - 28 * - 74 AS col1
----
2072

query I rowsort
SELECT ALL + 47 * 62
----
2914

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT DISTINCT + - COUNT( * ) * + - 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT + - COUNT ( * ) * + - 39 AS col0
----
39

query I rowsort
SELECT DISTINCT + 20 * + 90 AS col1
----
1800

query II rowsort
SELECT ALL + 10, 39 AS col1
----
10
39

query I rowsort
SELECT - - CASE ( - 60 ) WHEN + 46 THEN - 54 WHEN - 18 + - - 62 THEN - 55 ELSE NULL END * + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4479
SELECT DISTINCT - - ( + 15 ) DIV 59 + - 85 + - SUM( DISTINCT + + 56 ) AS col0, - 18 AS col1
----
-141
-18

skipif mysql # not compatible
query II rowsort label-4479
SELECT DISTINCT - - ( + 15 ) / 59 + - 85 + - SUM ( DISTINCT + + 56 ) AS col0, - 18 AS col1
----
-141
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-4480
SELECT 57 AS col0, 60 DIV + 57 AS col1
----
57
1

skipif mysql # not compatible
query II rowsort label-4480
SELECT 57 AS col0, 60 / + 57 AS col1
----
57
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT ALL + + 70 * - - 17 + + 69 - + 63 * + COUNT( * ) * 63 + - 89 - - COUNT( * ) * + + 37 DIV NULLIF ( 3, COUNT( * ) ) + - 40 AS col1
----
-2827

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + + 70 * - - 17 + + 69 - + 63 * + COUNT ( * ) * 63 + - 89 - - COUNT ( * ) * + + 37 / NULLIF ( 3, COUNT ( * ) ) + - 40 AS col1
----
-2827

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL + SUM( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + SUM ( - 94 )
----
-94

query I rowsort
SELECT - + 86 * - 83 * 37 * + 21 + 7 * - 49
----
5545883

query I rowsort
SELECT - 72 + + 97
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4485
SELECT 74, - COUNT( * ) * 35 * + + 17 AS col1
----
74
-595

skipif mysql # not compatible
query II rowsort label-4485
SELECT 74, - COUNT ( * ) * 35 * + + 17 AS col1
----
74
-595

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT DISTINCT - 43 DIV ( - 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT - 43 / ( - 50 ) AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4487
SELECT ALL - CAST( NULL AS DECIMAL ) * - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL - CAST ( NULL AS REAL ) * - 19 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT ALL 5 * + 97 - + + ( - 38 ) DIV + + 80
----
485

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL 5 * + 97 - + + ( - 38 ) / + + 80
----
485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4489
SELECT COALESCE ( 97, + - COUNT( * ) * 8 + - - 83 DIV 44 + + 92 )
----
97

skipif mysql # not compatible
query I rowsort label-4489
SELECT COALESCE ( 97, + - COUNT ( * ) * 8 + - - 83 / 44 + + 92 )
----
97

query I rowsort
SELECT + 30 * - + 28 col0
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT + COUNT( * ) * - 68 * - 25 * + 64 * COUNT( * ) + - - 95 + ( + 22 )
----
108917

skipif mysql # not compatible
query I rowsort label-4491
SELECT + COUNT ( * ) * - 68 * - 25 * + 64 * COUNT ( * ) + - - 95 + ( + 22 )
----
108917

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - COALESCE ( - 50, + ( + - 33 ) ) + - - MAX( DISTINCT - 2 ) + + 26 col1
----
74

skipif mysql # not compatible
query I rowsort label-4492
SELECT - COALESCE ( - 50, + ( + - 33 ) ) + - - MAX ( DISTINCT - 2 ) + + 26 col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4493
SELECT ALL CAST( 3 AS SIGNED ) AS col0, + ( - SUM( + 63 ) ) AS col2
----
3
-63

skipif mysql # not compatible
query II rowsort label-4493
SELECT ALL CAST ( 3 AS INTEGER ) AS col0, + ( - SUM ( + 63 ) ) AS col2
----
3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT + COALESCE ( + CASE - + 44 WHEN - 90 THEN NULL ELSE + - 86 * + 60 + - COUNT( * ) END, 85, 22 ) + + 36
----
-5125

skipif mysql # not compatible
query I rowsort label-4494
SELECT + COALESCE ( + CASE - + 44 WHEN - 90 THEN NULL ELSE + - 86 * + 60 + - COUNT ( * ) END, 85, 22 ) + + 36
----
-5125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT - CAST( - 94 AS SIGNED ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4495
SELECT - CAST ( - 94 AS INTEGER ) AS col0
----
94

query I rowsort
SELECT + 22 + 14
----
36

query I rowsort
SELECT ALL 28 * - + ( + + 6 ) col1
----
-168

query I rowsort
SELECT + 34 * 63
----
2142

query I rowsort
SELECT + 40 * - + 4
----
-160

query II rowsort
SELECT + 99 + + + NULLIF ( + 46, + 48 * - + 69 + - + 63 ) * + + 76 AS col0, 99 AS col0
----
3595
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - ( SUM( ALL - + 15 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4501
SELECT - ( SUM ( ALL - + 15 ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT ALL MIN( + - 55 ), 17 - - ( - - 39 ) AS col0
----
-55
56

skipif mysql # not compatible
query II rowsort label-4502
SELECT ALL MIN ( + - 55 ), 17 - - ( - - 39 ) AS col0
----
-55
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + ( - NULLIF ( + 23, - COUNT( * ) ) ) + + - 16 * + 24
----
-407

skipif mysql # not compatible
query I rowsort label-4503
SELECT + ( - NULLIF ( + 23, - COUNT ( * ) ) ) + + - 16 * + 24
----
-407

query I rowsort
SELECT ALL 92 * - + 75
----
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + 4 + 11 + 59 * + 12 * + 62 * + + COUNT( * ) * COUNT( DISTINCT + 76 ) AS col0
----
43911

skipif mysql # not compatible
query I rowsort label-4505
SELECT + 4 + 11 + 59 * + 12 * + 62 * + + COUNT ( * ) * COUNT ( DISTINCT + 76 ) AS col0
----
43911

query I rowsort
SELECT DISTINCT 19 * - ( + - 97 ) AS col1
----
1843

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4507
SELECT ALL + 91 + + + 88 + 50 DIV - 88 + + 69 col1, - COUNT( * ) * + 20 AS col2, 19 * + 97
----
248
-20
1843

skipif mysql # not compatible
query III rowsort label-4507
SELECT ALL + 91 + + + 88 + 50 / - 88 + + 69 col1, - COUNT ( * ) * + 20 AS col2, 19 * + 97
----
248
-20
1843

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4508
SELECT ALL - 10 + - ( + 8 ) + + CAST( NULL AS SIGNED ) AS col0, 84 * 14 AS col0
----
NULL
1176

skipif mysql # not compatible
query II rowsort label-4508
SELECT ALL - 10 + - ( + 8 ) + + CAST ( NULL AS INTEGER ) AS col0, 84 * 14 AS col0
----
NULL
1176

query I rowsort
SELECT - 76 + - 76 + + 30 AS col1
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4510
SELECT - + 53 DIV + MIN( + 13 ) + + CASE CAST( NULL AS SIGNED ) WHEN - 93 DIV + 39 DIV + 16 * 32 * - - CAST( NULL AS SIGNED ) * - 88 THEN NULL ELSE 29 END + - + 54 DIV ( - NULLIF ( + 68, - 92 * + SUM( DISTINCT 95 ) * 67 DIV - 43 + - 73 + - 69 + + 58 * - 22 * 25 + - 5 * - CAST( NULL AS SIGNED ) + + 29 * - - ( + 51 ) ) ) * COUNT( * ) + + + 14 * + - 65 + 37
----
-848

skipif mysql # not compatible
query I rowsort label-4510
SELECT - + 53 / + MIN ( + 13 ) + + CASE CAST ( NULL AS INTEGER ) WHEN - 93 / + 39 / + 16 * 32 * - - CAST ( NULL AS INTEGER ) * - 88 THEN NULL ELSE 29 END + - + 54 / ( - NULLIF ( + 68, - 92 * + SUM ( DISTINCT 95 ) * 67 / - 43 + - 73 + - 69 + + 58 * - 22 * 25 + - 5 * - CAST ( NULL AS INTEGER ) + + 29 * - - ( + 51 ) ) ) * COUNT ( * ) + + + 14 * + - 65 + 37
----
-848

query I rowsort
SELECT 45 + 95 AS col1
----
140

query I rowsort
SELECT + 42 * 33
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL - 64 + CASE - - 81 WHEN + 2 THEN + MAX( - 72 ) - - COUNT( * ) END - + 21 * - - 32 / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - 64 + CASE - - 81 WHEN + 2 THEN + MAX ( - 72 ) - - COUNT ( * ) END - + 21 * - - 32 / 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4514
SELECT ALL 30 DIV 4 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL 30 / 4 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4515
SELECT COUNT( * ) / + - CASE + ( + 93 ) WHEN + 83 * - - 79 THEN + - AVG ( + + 10 ) / + 87 * + 33 WHEN + + 40 + - - NULLIF ( + + NULLIF ( - + 81, 79 ), + - 44 ) + - - 74 THEN NULL ELSE + + 71 * + 75 + + + CAST( NULL AS SIGNED ) * - 97 + + + COUNT( * ) * - 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT COUNT ( * ) / + - CASE + ( + 93 ) WHEN + 83 * - - 79 THEN + - AVG ( + + 10 ) / + 87 * + 33 WHEN + + 40 + - - NULLIF ( + + NULLIF ( - + 81, 79 ), + - 44 ) + - - 74 THEN NULL ELSE + + 71 * + 75 + + + CAST ( NULL AS INTEGER ) * - 97 + + + COUNT ( * ) * - 55 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT ALL + - 95 + + + COALESCE ( - COUNT( - + 39 ), + 35 )
----
-96

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + - 95 + + + COALESCE ( - COUNT ( - + 39 ), + 35 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL - NULLIF ( + 18, - CAST( NULL AS SIGNED ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - NULLIF ( + 18, - CAST ( NULL AS INTEGER ) ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL - 14 + + - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - 14 + + - COUNT ( * )
----
-15

query I rowsort
SELECT DISTINCT - + CASE NULLIF ( 78, - 57 + - 53 ) WHEN - 17 + + + ( + 97 ) THEN + + 40 ELSE + 77 - - - 37 END AS col0
----
-40

query I rowsort
SELECT 51 - - 88 AS col0
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT ALL - 68 DIV 5
----
-13

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - 68 / 5
----
-13

query I rowsort
SELECT DISTINCT + 14 - - 99
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT DISTINCT - CASE - SUM( DISTINCT - 33 ) WHEN NULLIF ( - 55, - 55 ) - SUM( ALL 31 ) THEN NULL WHEN - - 92 THEN + 98 WHEN + 70 * + 8 THEN - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT - CASE - SUM ( DISTINCT - 33 ) WHEN NULLIF ( - 55, - 55 ) - SUM ( ALL 31 ) THEN NULL WHEN - - 92 THEN + 98 WHEN + 70 * + 8 THEN - 24 END
----
NULL

query I rowsort
SELECT DISTINCT - 50 * - 23
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL + COUNT( - 20 ) - + + CASE - + COUNT( * ) WHEN 97 THEN - ( + - ( + COUNT( * ) ) ) + - 81 + - + SUM( DISTINCT + + 97 ) + - 85 * + - 72 * 40 WHEN NULLIF ( - 85, COUNT( * ) + - - 38 ) * - 49 + 13 + + - 32 THEN NULL ELSE - COUNT( * ) END AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + COUNT ( - 20 ) - + + CASE - + COUNT ( * ) WHEN 97 THEN - ( + - ( + COUNT ( * ) ) ) + - 81 + - + SUM ( DISTINCT + + 97 ) + - 85 * + - 72 * 40 WHEN NULLIF ( - 85, COUNT ( * ) + - - 38 ) * - 49 + 13 + + - 32 THEN NULL ELSE - COUNT ( * ) END AS col1
----
2

query I rowsort
SELECT DISTINCT - 41 * - 14
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT 80 * - COALESCE ( COUNT( + - 52 ), + 95 ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-4527
SELECT 80 * - COALESCE ( COUNT ( + - 52 ), + 95 ) col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT ALL - 69 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL - 69 / + 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT 86 DIV + 6 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4529
SELECT 86 / + 6 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + COUNT( * ) * - 64 + - - 57
----
-7

skipif mysql # not compatible
query I rowsort label-4530
SELECT + COUNT ( * ) * - 64 + - - 57
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4531
SELECT 76 DIV + MAX( ALL 75 ) AS col2, 72 AS col2
----
1
72

skipif mysql # not compatible
query II rowsort label-4531
SELECT 76 / + MAX ( ALL 75 ) AS col2, 72 AS col2
----
1
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4532
SELECT COUNT( * ) DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT COUNT ( * ) / + 75 AS col0
----
0

query I rowsort
SELECT 86 + + + 70
----
156

query II rowsort
SELECT 21 * 96 * + + 45 AS col2, ( - - 26 )
----
90720
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4535
SELECT 95 + - 20 * + 63 * + 44 + + 81 AS col0, MAX( ALL + 19 )
----
-55264
19

skipif mysql # not compatible
query II rowsort label-4535
SELECT 95 + - 20 * + 63 * + 44 + + 81 AS col0, MAX ( ALL + 19 )
----
-55264
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4536
SELECT COUNT( * ) DIV NULLIF ( ( - 28 ), + + COUNT( * ) * + + 58 + + + 4 + + + 13 * - CASE - 34 WHEN - - ( NULLIF ( + COUNT( * ), - 30 - - 80 ) ) THEN 65 + 21 DIV 84 + + 12 * - CAST( NULL AS DECIMAL ) WHEN MIN( DISTINCT 99 ) + - COUNT( * ) THEN CASE - - 57 WHEN + 51 + - 55 * - 76 THEN + 6 END ELSE 86 DIV + 60 + - 86 END ) * 51 * + - 67 * - 86 + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-4536
SELECT COUNT ( * ) / NULLIF ( ( - 28 ), + + COUNT ( * ) * + + 58 + + + 4 + + + 13 * - CASE - 34 WHEN - - ( NULLIF ( + COUNT ( * ), - 30 - - 80 ) ) THEN 65 + 21 / 84 + + 12 * - CAST ( NULL AS REAL ) WHEN MIN ( DISTINCT 99 ) + - COUNT ( * ) THEN CASE - - 57 WHEN + 51 + - 55 * - 76 THEN + 6 END ELSE 86 / + 60 + - 86 END ) * 51 * + - 67 * - 86 + - 94
----
-94

query I rowsort
SELECT 5 + + + 75 AS col1
----
80

query II rowsort
SELECT - 14, + 77 AS col1
----
-14
77

query I rowsort
SELECT ALL + 7 + - 30
----
-23

query II rowsort
SELECT 5 AS col1, 7 AS col2
----
5
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL CASE + + COUNT( 36 ) WHEN 87 THEN NULLIF ( 78, + 58 ) + 9 + + - 22 WHEN + 16 THEN + - 3 * + 80 + - 65 + - 84 + - 30 + - 93 * + COUNT( * ) * + - 98 + + - 36 - 86 - - 33 * + 74 + - 77 * - 99 ELSE NULL END + + 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL CASE + + COUNT ( 36 ) WHEN 87 THEN NULLIF ( 78, + 58 ) + 9 + + - 22 WHEN + 16 THEN + - 3 * + 80 + - 65 + - 84 + - 30 + - 93 * + COUNT ( * ) * + - 98 + + - 36 - 86 - - 33 * + 74 + - 77 * - 99 ELSE NULL END + + 13 col1
----
NULL

query I rowsort
SELECT DISTINCT + 37 * 22 * + 5 + - 17 AS col2
----
4053

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4543
SELECT ALL + MIN( - - ( + + 44 ) ) + CAST( NULL AS DECIMAL ) - + ( 11 ) - COUNT( * ) + 34 + + 29 - + 53 * + - NULLIF ( ( - CAST( 93 AS SIGNED ) ), + 65 ) / + 95 + + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL + MIN ( - - ( + + 44 ) ) + CAST ( NULL AS REAL ) - + ( 11 ) - COUNT ( * ) + 34 + + 29 - + 53 * + - NULLIF ( ( - CAST ( 93 AS INTEGER ) ), + 65 ) / + 95 + + 2
----
NULL

query I rowsort
SELECT 1 - 63
----
-62

query I rowsort
SELECT + 40 * + + 4 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT MIN( - 91 ) + COUNT( * ) * - 97 col1
----
-188

skipif mysql # not compatible
query I rowsort label-4546
SELECT MIN ( - 91 ) + COUNT ( * ) * - 97 col1
----
-188

query I rowsort
SELECT ALL + NULLIF ( 50, - 43 ) AS col1
----
50

query I rowsort
SELECT DISTINCT 19 * - - 20
----
380

query I rowsort
SELECT ALL 93 + + 20
----
113

query I rowsort
SELECT + - COALESCE ( + 46, + 59 - + 32 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4551
SELECT ALL - - NULLIF ( + + MAX( + 33 ), - MIN( ALL 29 ) ), COUNT( * ) AS col0
----
33
1

skipif mysql # not compatible
query II rowsort label-4551
SELECT ALL - - NULLIF ( + + MAX ( + 33 ), - MIN ( ALL 29 ) ), COUNT ( * ) AS col0
----
33
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT DISTINCT + 21 DIV 95 * 91 + - COUNT( * ) + - 51 DIV 60
----
-1

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT + 21 / 95 * 91 + - COUNT ( * ) + - 51 / 60
----
-1

query I rowsort
SELECT - 20 + 44 * + 25 * - + 22 * + 47 AS col0
----
-1137420

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - MAX( ALL + 17 ) * + 66 + + 46
----
-1076

skipif mysql # not compatible
query I rowsort label-4554
SELECT - MAX ( ALL + 17 ) * + 66 + + 46
----
-1076

query II rowsort
SELECT - 91 AS col2, 52
----
-91
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4556
SELECT 49 DIV NULLIF ( - - 67, + 24 * MAX( - CAST( NULL AS SIGNED ) ) ) * + ( + ( ( + 79 ) ) ) + + - 47 + - COUNT( DISTINCT + + CASE 46 WHEN - CAST( 59 AS SIGNED ) THEN - - 33 ELSE NULL END ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4556
SELECT 49 / NULLIF ( - - 67, + 24 * MAX ( - CAST ( NULL AS INTEGER ) ) ) * + ( + ( ( + 79 ) ) ) + + - 47 + - COUNT ( DISTINCT + + CASE 46 WHEN - CAST ( 59 AS INTEGER ) THEN - - 33 ELSE NULL END ) AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4557
SELECT DISTINCT - MIN( - 43 ) DIV + MIN( 44 )
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - MIN ( - 43 ) / + MIN ( 44 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT ALL - COUNT( + - 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - COUNT ( + - 47 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + CASE - 13 WHEN + + 63 * - 42 THEN + 20 * + 14 + - ( - ( - - 9 ) ) + AVG ( - 28 ) END / 3 - + 27 * - - COUNT( * ) * 7 * 72 * 29 / + 48 + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT + CASE - 13 WHEN + + 63 * - 42 THEN + 20 * + 14 + - ( - ( - - 9 ) ) + AVG ( - 28 ) END / 3 - + 27 * - - COUNT ( * ) * 7 * 72 * 29 / + 48 + - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + NULLIF ( 76, - 71 * - + COUNT( DISTINCT + 34 ) ) * - 21 + 92
----
-1504

skipif mysql # not compatible
query I rowsort label-4560
SELECT + NULLIF ( 76, - 71 * - + COUNT ( DISTINCT + 34 ) ) * - 21 + 92
----
-1504

query I rowsort
SELECT ( + 32 ) + - 57 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL + 27 * - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL + 27 * - COUNT ( * )
----
-27

query I rowsort
SELECT DISTINCT 24 * - - 84
----
2016

onlyif mysql # aggregate syntax: 
query II rowsort label-4564
SELECT ALL - COUNT( * ) AS col0, - 4 + - 50
----
-1
-54

skipif mysql # not compatible
query II rowsort label-4564
SELECT ALL - COUNT ( * ) AS col0, - 4 + - 50
----
-1
-54

query I rowsort
SELECT DISTINCT 18 * + 27 AS col1
----
486

query I rowsort
SELECT DISTINCT - ( - + 74 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4567
SELECT NULLIF ( COUNT( + 26 ), + NULLIF ( - + 75, - COUNT( ALL - + 98 ) ) * + - 48 ) * + CAST( NULL AS SIGNED ) + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT NULLIF ( COUNT ( + 26 ), + NULLIF ( - + 75, - COUNT ( ALL - + 98 ) ) * + - 48 ) * + CAST ( NULL AS INTEGER ) + + 83 AS col1
----
NULL

query I rowsort
SELECT 5 + 69 AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4569
SELECT 30 AS col0, 29 * COUNT( * ) - + 71 + - 36
----
30
-78

skipif mysql # not compatible
query II rowsort label-4569
SELECT 30 AS col0, 29 * COUNT ( * ) - + 71 + - 36
----
30
-78

query I rowsort
SELECT ALL - 38 + 73
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4571
SELECT ALL + ( - + 99 ) * + COALESCE ( 12, + + 83 * - 5 + - - COUNT( * ) + + CAST( NULL AS SIGNED ) + + 15 * + 27 * - 43 DIV - - CAST( + + MIN( + 95 ) AS SIGNED ) * + COUNT( * ) ) col0
----
-1188

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + ( - + 99 ) * + COALESCE ( 12, + + 83 * - 5 + - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 15 * + 27 * - 43 / - - CAST ( + + MIN ( + 95 ) AS INTEGER ) * + COUNT ( * ) ) col0
----
-1188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT COALESCE ( - - 64, + + 53 * + 43 DIV - CAST( - 3 AS SIGNED ) * COUNT( * ) + + 57 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT COALESCE ( - - 64, + + 53 * + 43 / - CAST ( - 3 AS INTEGER ) * COUNT ( * ) + + 57 ) AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - + 42 / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - + 42 / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4574
SELECT DISTINCT + 20 + - - ( - COUNT( ALL - 79 ) ), + NULLIF ( 91, CAST( + - 38 AS SIGNED ) + - 40 ) + + SUM( DISTINCT - 37 ) AS col2
----
19
54

skipif mysql # not compatible
query II rowsort label-4574
SELECT DISTINCT + 20 + - - ( - COUNT ( ALL - 79 ) ), + NULLIF ( 91, CAST ( + - 38 AS INTEGER ) + - 40 ) + + SUM ( DISTINCT - 37 ) AS col2
----
19
54

query I rowsort
SELECT - 69 + - 56 + 82 + 12 * + ( - 65 ) + 41 * 93 + - + 60 col1
----
2930

query I rowsort
SELECT ALL + 2 * + + 86 AS col0
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT SUM( DISTINCT COALESCE ( - - 45, - + 29, + + 26 * - + 23, 51 + - 22 + + 36 * - + 37 DIV - 71 DIV 72 ) )
----
45

skipif mysql # not compatible
query I rowsort label-4577
SELECT SUM ( DISTINCT COALESCE ( - - 45, - + 29, + + 26 * - + 23, 51 + - 22 + + 36 * - + 37 / - 71 / 72 ) )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4578
SELECT - + 88 DIV + SUM( + 42 )
----
-2

skipif mysql # not compatible
query I rowsort label-4578
SELECT - + 88 / + SUM ( + 42 )
----
-2

query II rowsort
SELECT 45, 2 col2
----
45
2

query II rowsort
SELECT 82, 57 AS col0
----
82
57

query I rowsort
SELECT ALL - - 16 + + - 99 AS col0
----
-83

query I rowsort
SELECT ALL + - 53 + - ( 66 ) + - 50 * 53 AS col2
----
-2769

query I rowsort
SELECT + + 39 * - 37
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT CASE COUNT( * ) WHEN - COUNT( + + 22 ) THEN + 36 WHEN - - COUNT( * ) / + + 54 + + 17 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT CASE COUNT ( * ) WHEN - COUNT ( + + 22 ) THEN + 36 WHEN - - COUNT ( * ) / + + 54 + + 17 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4585
SELECT ALL 82 DIV + - 27 AS col2, 8
----
-3
8

skipif mysql # not compatible
query II rowsort label-4585
SELECT ALL 82 / + - 27 AS col2, 8
----
-3
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT - 52 * - 68 * + CASE - - CASE + CASE + 59 WHEN - - 39 * - 88 THEN 37 - + 92 + + 83 * - ( + 48 ) + MAX( - + 30 ) + + + 60 * - 88 - 49 + + 47 END WHEN - 87 THEN + + 79 - - + 83 WHEN - CASE + 85 WHEN - - COUNT( * ) THEN - + 28 WHEN + 13 - + + COUNT( * ) THEN - 68 + + 32 END THEN NULL ELSE NULL END WHEN ( - 74 ) THEN + + COUNT( * ) * - CAST( + 77 AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 52 * - 68 * + CASE - - CASE + CASE + 59 WHEN - - 39 * - 88 THEN 37 - + 92 + + 83 * - ( + 48 ) + MAX ( - + 30 ) + + + 60 * - 88 - 49 + + 47 END WHEN - 87 THEN + + 79 - - + 83 WHEN - CASE + 85 WHEN - - COUNT ( * ) THEN - + 28 WHEN + 13 - + + COUNT ( * ) THEN - 68 + + 32 END THEN NULL ELSE NULL END WHEN ( - 74 ) THEN + + COUNT ( * ) * - CAST ( + 77 AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT - 14 - - + COUNT( * ) + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT - 14 - - + COUNT ( * ) + COUNT ( * ) AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT DISTINCT + CASE 50 WHEN - - COUNT( DISTINCT + + 48 ) * + COUNT( * ) + + - 36 * CAST( + CAST( + 68 AS SIGNED ) AS SIGNED ) * - - 44 + + 14 + 8 THEN + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT + CASE 50 WHEN - - COUNT ( DISTINCT + + 48 ) * + COUNT ( * ) + + - 36 * CAST ( + CAST ( + 68 AS INTEGER ) AS INTEGER ) * - - 44 + + 14 + 8 THEN + 42 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4589
SELECT - + NULLIF ( - ( - - COALESCE ( 93, + 48 DIV - - CAST( NULL AS SIGNED ) - - COUNT( DISTINCT + - 22 ) + - + 36 ) ), 68 )
----
93

skipif mysql # not compatible
query I rowsort label-4589
SELECT - + NULLIF ( - ( - - COALESCE ( 93, + 48 / - - CAST ( NULL AS INTEGER ) - - COUNT ( DISTINCT + - 22 ) + - + 36 ) ), 68 )
----
93

query II rowsort
SELECT + + ( 92 ) + COALESCE ( 11, 13, 56 ), - 27 col2
----
103
-27

query II rowsort
SELECT DISTINCT + 59 col2, 37 + + 41 AS col1
----
59
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT + + 37 + - ( - COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-4592
SELECT + + 37 + - ( - COUNT ( * ) )
----
38

query I rowsort
SELECT ALL - 32 * 74 * 20 + + + 47 + - 90 AS col2
----
-47403

query II rowsort
SELECT - 20 AS col1, 82
----
-20
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT + 10 * + CAST( NULL AS SIGNED ) * + CASE + SUM( + 26 ) WHEN - 19 THEN ( 33 ) ELSE + 53 END * + 1 * ( 30 ) * + - 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT + 10 * + CAST ( NULL AS INTEGER ) * + CASE + SUM ( + 26 ) WHEN - 19 THEN ( 33 ) ELSE + 53 END * + 1 * ( 30 ) * + - 99 col2
----
NULL

query III rowsort
SELECT + 70, + 23 col1, NULLIF ( - + 38, + 44 ) AS col0
----
70
23
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + 68 * + 56 * - - ( COUNT( 54 ) ) + - 26
----
3782

skipif mysql # not compatible
query I rowsort label-4597
SELECT + 68 * + 56 * - - ( COUNT ( 54 ) ) + - 26
----
3782

query II rowsort
SELECT ALL 83 * - - 69 AS col1, + 55 AS col2
----
5727
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4599
SELECT + CASE WHEN CAST( NULL AS SIGNED ) IS NULL THEN - 15 WHEN NOT COUNT( * ) >= + 78 * - 78 DIV 48 + + 14 THEN 9 END DIV + 17 - 43
----
-43

skipif mysql # not compatible
query I rowsort label-4599
SELECT + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN - 15 WHEN NOT COUNT ( * ) >= + 78 * - 78 / 48 + + 14 THEN 9 END / + 17 - 43
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT + ( - 70 ) DIV 10 + - + 97 col2
----
-104

skipif mysql # not compatible
query I rowsort label-4600
SELECT + ( - 70 ) / 10 + - + 97 col2
----
-104

query I rowsort
SELECT + NULLIF ( + 23, 67 * 39 ) * - 98 + 47 AS col2
----
-2207

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT CASE + 78 WHEN - + 24 THEN + 27 * + - 50 * - + NULLIF ( 43, + + COUNT( + 82 ) + - + COUNT( * ) + COALESCE ( - 84, 4 ) ) - + - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT CASE + 78 WHEN - + 24 THEN + 27 * + - 50 * - + NULLIF ( 43, + + COUNT ( + 82 ) + - + COUNT ( * ) + COALESCE ( - 84, 4 ) ) - + - 72 END
----
NULL

query I rowsort
SELECT ALL - 66 * 76 + + 27
----
-4989

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4604
SELECT + CAST( NULL AS SIGNED ) - + - CASE + 13 WHEN - 99 / 12 THEN - 31 ELSE - - 2 - + CAST( - 24 AS DECIMAL ) + + - 82 + + 18 END * + 64 + + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT + CAST ( NULL AS INTEGER ) - + - CASE + 13 WHEN - 99 / 12 THEN - 31 ELSE - - 2 - + CAST ( - 24 AS REAL ) + + - 82 + + 18 END * + 64 + + - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT COALESCE ( MAX( - + 70 ), + + COUNT( * ), - 48 * - + ( - + 26 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4605
SELECT COALESCE ( MAX ( - + 70 ), + + COUNT ( * ), - 48 * - + ( - + 26 ) ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4606
SELECT ALL ( 12 ) * + 26 + + NULLIF ( + 8, + COUNT( * ) / 23 * CAST( + 43 AS SIGNED ) / - 68 * - 54 + 26 )
----
320

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL ( 12 ) * + 26 + + NULLIF ( + 8, + COUNT ( * ) / 23 * CAST ( + 43 AS INTEGER ) / - 68 * - 54 + 26 )
----
320

query I rowsort
SELECT ALL - ( + 85 ) * - 6
----
510

query I rowsort
SELECT ALL + 66 * 81 + 72
----
5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4609
SELECT + 64 DIV COUNT( * ) * - - 45 col0
----
2880

skipif mysql # not compatible
query I rowsort label-4609
SELECT + 64 / COUNT ( * ) * - - 45 col0
----
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT ALL 29 * + ( 43 ) DIV + - COUNT( * ) + + 69 + - 81 - 9 + - + 87
----
-1355

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL 29 * + ( 43 ) / + - COUNT ( * ) + + 69 + - 81 - 9 + - + 87
----
-1355

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4611
SELECT DISTINCT + COALESCE ( SUM( DISTINCT - 27 ), - 20 + 12 ) * + - 78 * + 10 + 88 + + 5 + + - 7 AS col0, + 71 DIV - 78 AS col2
----
21146
0

skipif mysql # not compatible
query II rowsort label-4611
SELECT DISTINCT + COALESCE ( SUM ( DISTINCT - 27 ), - 20 + 12 ) * + - 78 * + 10 + 88 + + 5 + + - 7 AS col0, + 71 / - 78 AS col2
----
21146
0

query I rowsort
SELECT ALL + 50 * + 18 + + + 75
----
975

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL MAX( DISTINCT + - 39 ) * + COALESCE ( + - 74, - 21 )
----
2886

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL MAX ( DISTINCT + - 39 ) * + COALESCE ( + - 74, - 21 )
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT MIN( DISTINCT + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4614
SELECT MIN ( DISTINCT + 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT 43 * - 32 + + - COUNT( * ) DIV + 62 col1
----
-1376

skipif mysql # not compatible
query I rowsort label-4615
SELECT 43 * - 32 + + - COUNT ( * ) / + 62 col1
----
-1376

query II rowsort
SELECT - 34 - - 88 AS col2, 22
----
54
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT - ( COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4617
SELECT - ( COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT + 4 + + 60 * - 32
----
-1916

query I rowsort
SELECT - 10 * - 7
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT ( - 42 ), SUM( 4 ) - + COUNT( * ) col2
----
-42
3

skipif mysql # not compatible
query II rowsort label-4620
SELECT ( - 42 ), SUM ( 4 ) - + COUNT ( * ) col2
----
-42
3

query I rowsort
SELECT ALL - 79 + + + 93 + + - 84
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - 27 + COUNT( * ) + - ( + CASE - + MAX( ALL + 29 ) WHEN - 75 THEN - AVG ( + + 19 ) ELSE NULL END ) * + 90 * - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 27 + COUNT ( * ) + - ( + CASE - + MAX ( ALL + 29 ) WHEN - 75 THEN - AVG ( + + 19 ) ELSE NULL END ) * + 90 * - + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - + MAX( 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-4623
SELECT - + MAX ( 18 ) col0
----
-18

query I rowsort
SELECT - - 32 * - 28 col2
----
-896

query I rowsort
SELECT ALL + 27 * + 74 * + 58 + - + ( + - 88 ) AS col1
----
115972

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4626
SELECT - + CASE - 29 WHEN + + 8 THEN NULL ELSE ( SUM( + + 14 ) ) END + 38, 77 - - 47 DIV - 88 - - NULLIF ( 83, - ( + ( + - 8 ) ) * 44 + - 83 ) * + ( 68 ) AS col1
----
24
5721

skipif mysql # not compatible
query II rowsort label-4626
SELECT - + CASE - 29 WHEN + + 8 THEN NULL ELSE ( SUM ( + + 14 ) ) END + 38, 77 - - 47 / - 88 - - NULLIF ( 83, - ( + ( + - 8 ) ) * 44 + - 83 ) * + ( 68 ) AS col1
----
24
5721

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT - ( MAX( 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4627
SELECT - ( MAX ( 98 ) ) AS col2
----
-98

query I rowsort
SELECT - - 72 * - 47
----
-3384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT - 85 * - ( - CAST( NULL AS SIGNED ) ) / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 85 * - ( - CAST ( NULL AS INTEGER ) ) / 49
----
NULL

query I rowsort
SELECT - 25 - + 76 AS col2
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT - 33 * - + 42 + NULLIF ( + + COUNT( * ), - 21 * - + 8 + - + 53 )
----
1387

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - 33 * - + 42 + NULLIF ( + + COUNT ( * ), - 21 * - + 8 + - + 53 )
----
1387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4632
SELECT ALL - + 33 / - + 80 * 34 * 6 + - ( - + CASE CAST( + - AVG ( + 71 ) AS SIGNED ) WHEN + 70 THEN NULL WHEN + + 28 THEN + 51 END ), SUM( + 60 ) * 86 AS col2
----
NULL
5160

skipif mysql # not compatible
query II rowsort label-4632
SELECT ALL - + 33 / - + 80 * 34 * 6 + - ( - + CASE CAST ( + - AVG ( + 71 ) AS INTEGER ) WHEN + 70 THEN NULL WHEN + + 28 THEN + 51 END ), SUM ( + 60 ) * 86 AS col2
----
NULL
5160

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT - 52 * 8 AS col0, 41 * + 23 * - CASE ( 69 ) WHEN - 65 THEN - + 60 + - + 49 WHEN + 86 / - 72 * 57 * 4 + - MIN( ALL + + 31 ) THEN NULL ELSE - - ( 69 ) END AS col0
----
-416
-65067

skipif mysql # not compatible
query II rowsort label-4633
SELECT - 52 * 8 AS col0, 41 * + 23 * - CASE ( 69 ) WHEN - 65 THEN - + 60 + - + 49 WHEN + 86 / - 72 * 57 * 4 + - MIN ( ALL + + 31 ) THEN NULL ELSE - - ( 69 ) END AS col0
----
-416
-65067

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - - NULLIF ( MIN( DISTINCT - + ( - - 71 ) ), + 72 - 41 ) * COUNT( * ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-4634
SELECT - - NULLIF ( MIN ( DISTINCT - + ( - - 71 ) ), + 72 - 41 ) * COUNT ( * ) col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-4635
SELECT + 89 DIV - - 91 - + 48 - + 10 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4635
SELECT + 89 / - - 91 - + 48 - + 10 AS col2
----
-58

query I rowsort
SELECT DISTINCT + ( + 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT + 48 - - + 96 * 70 * MIN( ALL + 82 ) + 29
----
551117

skipif mysql # not compatible
query I rowsort label-4637
SELECT + 48 - - + 96 * 70 * MIN ( ALL + 82 ) + 29
----
551117

query I rowsort
SELECT + 88 * + 25 + + + ( 65 ) AS col1
----
2265

query I rowsort
SELECT + 24 * - 26 AS col1
----
-624

query I rowsort
SELECT + 26 * + + 62 + - 84 AS col2
----
1528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4641
SELECT DISTINCT SUM( + 4 ) DIV - - 96 + + - 71 AS col0, - 46
----
-71
-46

skipif mysql # not compatible
query II rowsort label-4641
SELECT DISTINCT SUM ( + 4 ) / - - 96 + + - 71 AS col0, - 46
----
-71
-46

query I rowsort
SELECT DISTINCT + 20 * - 38 * 45
----
-34200

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT - 50 * + - COUNT( * ) * - 92 + + 40 * + 40
----
-3000

skipif mysql # not compatible
query I rowsort label-4643
SELECT - 50 * + - COUNT ( * ) * - 92 + + 40 * + 40
----
-3000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL CAST( COUNT( ALL + 42 ) AS SIGNED ) + - - COUNT( CAST( + + 57 AS SIGNED ) ) * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL CAST ( COUNT ( ALL + 42 ) AS INTEGER ) + - - COUNT ( CAST ( + + 57 AS INTEGER ) ) * - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4645
SELECT 44 AS col0, + COUNT( * ) + 92 * ( - 18 ) DIV + 86 AS col1
----
44
-18

skipif mysql # not compatible
query II rowsort label-4645
SELECT 44 AS col0, + COUNT ( * ) + 92 * ( - 18 ) / + 86 AS col1
----
44
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT NULLIF ( + - ( - 44 ), 58 ) + ( 25 ) + - NULLIF ( ( - SUM( - 84 ) ), - - 17 ) + - + 47 * + - 97 AS col1
----
4544

skipif mysql # not compatible
query I rowsort label-4646
SELECT NULLIF ( + - ( - 44 ), 58 ) + ( 25 ) + - NULLIF ( ( - SUM ( - 84 ) ), - - 17 ) + - + 47 * + - 97 AS col1
----
4544

query I rowsort
SELECT 40 + - 37
----
3

query I rowsort
SELECT ALL 16 - 67
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT 46 * COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4649
SELECT 46 * COUNT ( * ) AS col1
----
46

query II rowsort
SELECT + 65, - 97 AS col2
----
65
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT DISTINCT 58 DIV 13 - + 27 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT 58 / 13 - + 27 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT - - COUNT( * ), - CASE - COUNT( * ) WHEN - + COUNT( * ) THEN NULL ELSE COUNT( * ) / + COUNT( * ) END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4652
SELECT - - COUNT ( * ), - CASE - COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL ELSE COUNT ( * ) / + COUNT ( * ) END AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT ALL - COALESCE ( + 92, 82 ) - MAX( + 6 ) - - 25, + 53 AS col1
----
-73
53

skipif mysql # not compatible
query II rowsort label-4653
SELECT ALL - COALESCE ( + 92, 82 ) - MAX ( + 6 ) - - 25, + 53 AS col1
----
-73
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT DISTINCT 85 * - + CAST( - NULLIF ( - 80, 57 ) AS SIGNED )
----
-6800

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT 85 * - + CAST ( - NULLIF ( - 80, 57 ) AS INTEGER )
----
-6800

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT + ( - 20 ) / + NULLIF ( CASE + 91 WHEN - 34 THEN + 15 END, - - 53 * + MAX( - 63 ) ) + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT + ( - 20 ) / + NULLIF ( CASE + 91 WHEN - 34 THEN + 15 END, - - 53 * + MAX ( - 63 ) ) + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4656
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 18 AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4656
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 18 AS col1
----
NULL
18

query II rowsort
SELECT - - 78 AS col2, - 24
----
78
-24

query I rowsort
SELECT - 43 + + 76
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4659
SELECT - 25, 82 * - COUNT( * ) + + 66 + + - 36 DIV + 76 + + - 91 * 17 AS col2
----
-25
-1563

skipif mysql # not compatible
query II rowsort label-4659
SELECT - 25, 82 * - COUNT ( * ) + + 66 + + - 36 / + 76 + + - 91 * 17 AS col2
----
-25
-1563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT 24 * + - 73 + + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT 24 * + - 73 + + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT - 98 AS col2, - 53 + - - 57 * 25
----
-98
1372

query I rowsort
SELECT + 9 + - 35 * 54 AS col0
----
-1881

query II rowsort
SELECT DISTINCT 76 col0, + 37 + 54 AS col0
----
76
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4664
SELECT - 59 + + - 71 - - + 95 DIV - 62
----
-131

skipif mysql # not compatible
query I rowsort label-4664
SELECT - 59 + + - 71 - - + 95 / - 62
----
-131

query I rowsort
SELECT 99 - + 76
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT 70 DIV 34
----
2

skipif mysql # not compatible
query I rowsort label-4666
SELECT 70 / 34
----
2

query I rowsort
SELECT 5 + + 66
----
71

query I rowsort
SELECT ALL - 6 + - 27 + - - 67
----
34

query I rowsort
SELECT 76 * ( 19 )
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT COUNT( * ) + - + 83 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4670
SELECT COUNT ( * ) + - + 83 AS col2
----
-82

query I rowsort
SELECT DISTINCT - ( + + 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT - 61 + - - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - 61 + - - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT ALL + ( ( + 21 ) ) + ( COUNT( * ) ) - - + COUNT( * ) + - + 10 * - + ( + 62 ) AS col1, - 86
----
643
-86

skipif mysql # not compatible
query II rowsort label-4673
SELECT ALL + ( ( + 21 ) ) + ( COUNT ( * ) ) - - + COUNT ( * ) + - + 10 * - + ( + 62 ) AS col1, - 86
----
643
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT 21 * - - COUNT( * ) * 83 AS col2
----
1743

skipif mysql # not compatible
query I rowsort label-4674
SELECT 21 * - - COUNT ( * ) * 83 AS col2
----
1743

query I rowsort
SELECT ALL + 43 - - 13 * + + 45
----
628

query I rowsort
SELECT DISTINCT - ( + - 66 ) * 41
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT 20 - + 52 * - 20 * COALESCE ( 60, - 54 - - + COUNT( * ) * + 14 ) * - 74 + + 47 AS col0
----
-4617533

skipif mysql # not compatible
query I rowsort label-4677
SELECT 20 - + 52 * - 20 * COALESCE ( 60, - 54 - - + COUNT ( * ) * + 14 ) * - 74 + + 47 AS col0
----
-4617533

query I rowsort
SELECT ALL 10 * + 38
----
380

query I rowsort
SELECT DISTINCT - 98 * + ( + - 27 )
----
2646

query I rowsort
SELECT ALL + 71 - - 4 AS col2
----
75

query I rowsort
SELECT 14 * 84
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL - + COALESCE ( + 88, - COUNT( * ) ) * 18 + 42
----
-1542

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - + COALESCE ( + 88, - COUNT ( * ) ) * 18 + 42
----
-1542

query I rowsort
SELECT - 31 - 91
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4684
SELECT 93 * - + 8 * + + CASE 27 WHEN 61 THEN NULL WHEN + 5 THEN NULL WHEN - MIN( + + 66 ) * - 74 THEN - - 77 ELSE NULL END * COUNT( DISTINCT + + 20 ) - + CAST( NULL AS SIGNED ) + - - 91 * + + MAX( DISTINCT 4 ) * - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT 93 * - + 8 * + + CASE 27 WHEN 61 THEN NULL WHEN + 5 THEN NULL WHEN - MIN ( + + 66 ) * - 74 THEN - - 77 ELSE NULL END * COUNT ( DISTINCT + + 20 ) - + CAST ( NULL AS INTEGER ) + - - 91 * + + MAX ( DISTINCT 4 ) * - 42 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4685
SELECT + 40 * - + CAST( NULL AS DECIMAL ) + + + 78 + + SUM( + 65 ) * - COUNT( ALL - + 58 ) * - 31 + 87 * + 8 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT + 40 * - + CAST ( NULL AS REAL ) + + + 78 + + SUM ( + 65 ) * - COUNT ( ALL - + 58 ) * - 31 + 87 * + 8 + - 48
----
NULL

query I rowsort
SELECT + 98 + + - 1
----
97

query I rowsort
SELECT ALL - 44 * 44 + 99 AS col1
----
-1837

query I rowsort
SELECT + 7 * 63 AS col2
----
441

query I rowsort
SELECT 62 * - NULLIF ( - - NULLIF ( + + 13, 36 ), + + 68 * + + 32 )
----
-806

query I rowsort
SELECT DISTINCT 60 + + 81 AS col2
----
141

query I rowsort
SELECT ALL 4 + ( - 62 ) * - 67
----
4158

query I rowsort
SELECT - 56 * - 32 * - + 28 AS col1
----
-50176

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT - 92 + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - 92 + COUNT ( * )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4694
SELECT ALL 89 + + 87 + - 60 + + CAST( + 51 AS SIGNED ) col1, + COUNT( 72 ) + - COUNT( DISTINCT + - 22 )
----
167
0

skipif mysql # not compatible
query II rowsort label-4694
SELECT ALL 89 + + 87 + - 60 + + CAST ( + 51 AS INTEGER ) col1, + COUNT ( 72 ) + - COUNT ( DISTINCT + - 22 )
----
167
0

query II rowsort
SELECT 75, + 11 AS col0
----
75
11

query I rowsort
SELECT 86 - - 2 col1
----
88

query I rowsort
SELECT DISTINCT 18 + - 9 * + + ( 72 ) AS col1
----
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT + CAST( + 41 AS SIGNED ) + - 48 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4698
SELECT + CAST ( + 41 AS INTEGER ) + - 48 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT ALL 94 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL 94 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT - NULLIF ( + + 24, - - SUM( - 58 ) ) col1
----
-24

skipif mysql # not compatible
query I rowsort label-4700
SELECT - NULLIF ( + + 24, - - SUM ( - 58 ) ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT - 17 * - 95 * - - ( - COUNT( * ) ) AS col1
----
-1615

skipif mysql # not compatible
query I rowsort label-4701
SELECT - 17 * - 95 * - - ( - COUNT ( * ) ) AS col1
----
-1615

query I rowsort
SELECT 48 * + ( 4 ) + + 17 AS col1
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT - 34 - + - COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4703
SELECT - 34 - + - COUNT ( * ) AS col1
----
-33

query I rowsort
SELECT COALESCE ( - 20, - - 30 * - + 25 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT - 79 * - + 62 * - - 15 + - MIN( ALL - 7 ) AS col2
----
73477

skipif mysql # not compatible
query I rowsort label-4705
SELECT - 79 * - + 62 * - - 15 + - MIN ( ALL - 7 ) AS col2
----
73477

query I rowsort
SELECT COALESCE ( - 3, + 92 + - 87 )
----
-3

query I rowsort
SELECT DISTINCT + ( 51 ) col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL COUNT( * ) * + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL COUNT ( * ) * + - 94
----
-94

query II rowsort
SELECT ALL + 94 col1, - 25 AS col2
----
94
-25

query I rowsort
SELECT - 75 + + - 71 + - 28 * + 10 AS col1
----
-426

query I rowsort
SELECT ALL 81 * + 52 AS col1
----
4212

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT ALL + 12 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL + 12 / - 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT - SUM( - + 95 ) DIV - - 91
----
1

skipif mysql # not compatible
query I rowsort label-4713
SELECT - SUM ( - + 95 ) / - - 91
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT ALL + SUM( - ( ( - 44 ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL + SUM ( - ( ( - 44 ) ) )
----
44

query I rowsort
SELECT - 98 * - 91 + + - 7 AS col1
----
8911

query I rowsort
SELECT - 46 * - 11 AS col1
----
506

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT - 16 + - + 54 - - CASE + - 93 WHEN - + 50 + + 1 * + 69 THEN - 74 * - - COUNT( - 11 ) / + - 31 + 20 / 91 + - CASE + 82 WHEN + MAX( ALL + + 76 ) THEN NULL ELSE - 98 END + - + ( + 72 ) / - 24 * - ( - 43 ) * - COALESCE ( - - 57, 45 ) ELSE NULL END AS col0, + 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-4717
SELECT - 16 + - + 54 - - CASE + - 93 WHEN - + 50 + + 1 * + 69 THEN - 74 * - - COUNT ( - 11 ) / + - 31 + 20 / 91 + - CASE + 82 WHEN + MAX ( ALL + + 76 ) THEN NULL ELSE - 98 END + - + ( + 72 ) / - 24 * - ( - 43 ) * - COALESCE ( - - 57, 45 ) ELSE NULL END AS col0, + 75
----
NULL
75

query II rowsort
SELECT 72 AS col1, - 76
----
72
-76

query I rowsort
SELECT + + 70 + 56
----
126

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4720
SELECT + - 54 * + + 71 * - + 22 * 28 / + COUNT( * ) * - CAST( NULL AS DECIMAL ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT + - 54 * + + 71 * - + 22 * 28 / + COUNT ( * ) * - CAST ( NULL AS REAL ) * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT DISTINCT + - NULLIF ( - + MIN( + + 57 ), + 51 )
----
57

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + - NULLIF ( - + MIN ( + + 57 ), + 51 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT ALL + ( - MIN( DISTINCT - 33 ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL + ( - MIN ( DISTINCT - 33 ) ) AS col2
----
33

query I rowsort
SELECT + + ( - - 44 ) * + + NULLIF ( 70, + 64 ) - - 93 + + 71
----
3244

query I rowsort
SELECT DISTINCT 30 + + 91 * - 66
----
-5976

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - 5 * - + COUNT( * ) + - + MIN( - 40 )
----
45

skipif mysql # not compatible
query I rowsort label-4725
SELECT - 5 * - + COUNT ( * ) + - + MIN ( - 40 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4726
SELECT ALL - + ( + + ( + + SUM( ALL - CAST( - 61 AS SIGNED ) ) ) ) + - 43 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - + ( + + ( + + SUM ( ALL - CAST ( - 61 AS INTEGER ) ) ) ) + - 43 AS col2
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4727
SELECT - 62 - 68 - - + 44 - + 74 + CAST( - + 74 AS SIGNED ) - COUNT( * ) DIV - + ( - 58 ) AS col2
----
-234

skipif mysql # not compatible
query I rowsort label-4727
SELECT - 62 - 68 - - + 44 - + 74 + CAST ( - + 74 AS INTEGER ) - COUNT ( * ) / - + ( - 58 ) AS col2
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT - + 32 DIV + COUNT( 80 )
----
-32

skipif mysql # not compatible
query I rowsort label-4728
SELECT - + 32 / + COUNT ( 80 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT + - 52 + ( - COUNT( - 14 ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4729
SELECT + - 52 + ( - COUNT ( - 14 ) ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT - + COALESCE ( 26, + 49 ) AS col2, - COUNT( * )
----
-26
-1

skipif mysql # not compatible
query II rowsort label-4730
SELECT - + COALESCE ( 26, + 49 ) AS col2, - COUNT ( * )
----
-26
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT ALL CAST( NULL AS SIGNED ) / - 43 * + AVG ( + - 64 ) * + + NULLIF ( - + 18, + 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL CAST ( NULL AS INTEGER ) / - 43 * + AVG ( + - 64 ) * + + NULLIF ( - + 18, + 70 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + COALESCE ( 70, + 89 + 24 ) ) + 49 AS col1
----
119

query I rowsort
SELECT ALL ( - 39 ) AS col1
----
-39

query I rowsort
SELECT + 89 + + 40
----
129

query II rowsort
SELECT DISTINCT 0 + + 51 + - - 47 + - 57 + - 97 + 86 AS col2, 88
----
30
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT COUNT( ALL - + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT COUNT ( ALL - + 93 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT + 17 * - 98 * CAST( - 23 AS SIGNED ) AS col0
----
38318

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 17 * - 98 * CAST ( - 23 AS INTEGER ) AS col0
----
38318

query I rowsort
SELECT + 35 + + 55 * - 66
----
-3595

query II rowsort
SELECT + 23 * - 56 AS col1, + 62 * - - CASE 16 WHEN - 24 THEN 68 WHEN COALESCE ( - AVG ( + 89 ), + 31 ) THEN NULL END * + - 40 AS col1
----
-1288
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4740
SELECT CAST( NULL AS SIGNED ) AS col1, NULLIF ( + 46, - 79 * 4 ) AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-4740
SELECT CAST ( NULL AS INTEGER ) AS col1, NULLIF ( + 46, - 79 * 4 ) AS col1
----
NULL
46

query I rowsort
SELECT + ( - + 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4742
SELECT CAST( + 12 AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4742
SELECT CAST ( + 12 AS INTEGER ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT + COUNT( * ) * - + 3 * COALESCE ( 62, 83, 59 + + + 94 ) * - 29
----
5394

skipif mysql # not compatible
query I rowsort label-4743
SELECT + COUNT ( * ) * - + 3 * COALESCE ( 62, 83, 59 + + + 94 ) * - 29
----
5394

query II rowsort
SELECT 62 AS col2, 86 col0
----
62
86

query II rowsort
SELECT + - 5 * + + 6 AS col1, + 10 + 66 * - + 93 * 64 col2
----
-30
-392822

onlyif mysql # aggregate syntax: 
query II rowsort label-4746
SELECT 5 AS col2, - MAX( ALL - + 50 ) AS col1
----
5
50

skipif mysql # not compatible
query II rowsort label-4746
SELECT 5 AS col2, - MAX ( ALL - + 50 ) AS col1
----
5
50

query I rowsort
SELECT ALL + 44 * 38 * - 36 + 79 + - 54 * - + 50 * + 59 + - 11
----
99176

query I rowsort
SELECT 13 * + 93 - - 5 AS col0
----
1214

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT + + MAX( - - ( - 92 ) ) * - 78 - + ( + 46 ) - + - 74 + 71 + ( + - 52 ) AS col2
----
7223

skipif mysql # not compatible
query I rowsort label-4749
SELECT + + MAX ( - - ( - 92 ) ) * - 78 - + ( + 46 ) - + - 74 + 71 + ( + - 52 ) AS col2
----
7223

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + - NULLIF ( - + 45, + + COUNT( * ) + - 48 )
----
45

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + - NULLIF ( - + 45, + + COUNT ( * ) + - 48 )
----
45

query II rowsort
SELECT + - 99 AS col0, 48 * - + 80 + + + 66
----
-99
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL + 87 * + ( - 30 ) * + - COUNT( ALL + - 63 ) * - 72 + - - 71 AS col1
----
-187849

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + 87 * + ( - 30 ) * + - COUNT ( ALL + - 63 ) * - 72 + - - 71 AS col1
----
-187849

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT - - 72 - + MIN( DISTINCT - + 32 ) DIV + - 53 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4753
SELECT - - 72 - + MIN ( DISTINCT - + 32 ) / + - 53 AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT - 25 DIV + - 9
----
2

skipif mysql # not compatible
query I rowsort label-4754
SELECT - 25 / + - 9
----
2

query I rowsort
SELECT - + 98 - 30 AS col0
----
-128

query II rowsort
SELECT ALL 62 col2, 57
----
62
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT - CAST( + + 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-4757
SELECT - CAST ( + + 66 AS INTEGER )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4758
SELECT + 23 AS col2, CAST( + CAST( - NULLIF ( - + COUNT( * ), - 55 ) AS DECIMAL ) AS SIGNED ) AS col1
----
23
1

skipif mysql # not compatible
query II rowsort label-4758
SELECT + 23 AS col2, CAST ( + CAST ( - NULLIF ( - + COUNT ( * ), - 55 ) AS REAL ) AS INTEGER ) AS col1
----
23
1

query II rowsort
SELECT ALL 46 AS col2, + 63
----
46
63

query II rowsort
SELECT ALL - 61 AS col0, 58 * 44
----
-61
2552

query I rowsort
SELECT - 9 + + NULLIF ( 30, 97 ) + 42 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT COUNT( * ) * 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4762
SELECT COUNT ( * ) * 71 AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4763
SELECT 95 + + 12 + - + COUNT( * ) - + 21 - 84 DIV 72 DIV + 32 col2, + 77
----
85
77

skipif mysql # not compatible
query II rowsort label-4763
SELECT 95 + + 12 + - + COUNT ( * ) - + 21 - 84 / 72 / + 32 col2, + 77
----
85
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT COALESCE ( COUNT( * ), 69 ) + + + 34
----
35

skipif mysql # not compatible
query I rowsort label-4764
SELECT COALESCE ( COUNT ( * ), 69 ) + + + 34
----
35

query I rowsort
SELECT 20 + - 44 * - - 79 AS col1
----
-3456

query I rowsort
SELECT ALL 87 * 78 col1
----
6786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - MAX( DISTINCT + 23 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - MAX ( DISTINCT + 23 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT DISTINCT - 31 DIV + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT - 31 / + 40 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT 49 DIV + 2
----
24

skipif mysql # not compatible
query I rowsort label-4769
SELECT 49 / + 2
----
24

query I rowsort
SELECT 49 / + + CASE - 47 WHEN - + 87 - + - 60 THEN + + 40 END - 91
----
NULL

query I rowsort
SELECT ALL 51 * - 19
----
-969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT - 89 * CAST( NULL AS SIGNED ) + ( SUM( - 9 ) ) * + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT - 89 * CAST ( NULL AS INTEGER ) + ( SUM ( - 9 ) ) * + - 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4773
SELECT CASE 91 WHEN + 4 / - 54 - + COUNT( * ) THEN + - 95 END + + 98 AS col0, + 51 + - 54 AS col1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4773
SELECT CASE 91 WHEN + 4 / - 54 - + COUNT ( * ) THEN + - 95 END + + 98 AS col0, + 51 + - 54 AS col1
----
NULL
-3

query I rowsort
SELECT DISTINCT 45 + + - ( - + 17 ) + + 93 AS col2
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT 17 * - 4 + - 74 DIV + + 68
----
-69

skipif mysql # not compatible
query I rowsort label-4775
SELECT 17 * - 4 + - 74 / + + 68
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4776
SELECT - 11 * + 9 + - COUNT( * ) DIV 82 * - - ( - COUNT( * ) ) + - 2, - ( 83 ) + - + 84 + 3 * + 6 * - 6 AS col0
----
-101
-275

skipif mysql # not compatible
query II rowsort label-4776
SELECT - 11 * + 9 + - COUNT ( * ) / 82 * - - ( - COUNT ( * ) ) + - 2, - ( 83 ) + - + 84 + 3 * + 6 * - 6 AS col0
----
-101
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL + 37 * NULLIF ( + - 86, - COUNT( * ) ) AS col0
----
-3182

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + 37 * NULLIF ( + - 86, - COUNT ( * ) ) AS col0
----
-3182

query I rowsort
SELECT DISTINCT - 20 + + 32
----
12

query I rowsort
SELECT DISTINCT - - 8 col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT + + ( NULLIF ( + + 40, + COUNT( * ) ) ) * - 91 + CAST( CASE - - CAST( NULL AS SIGNED ) WHEN + + 29 THEN + 38 WHEN 70 + - COUNT( * ) * - 73 THEN + - COUNT( * ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT + + ( NULLIF ( + + 40, + COUNT ( * ) ) ) * - 91 + CAST ( CASE - - CAST ( NULL AS INTEGER ) WHEN + + 29 THEN + 38 WHEN 70 + - COUNT ( * ) * - 73 THEN + - COUNT ( * ) END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 87 + - ( + 97 ) * - - 67 + 32
----
-6380

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4782
SELECT DISTINCT 52 + COUNT( * ) + + - CASE 66 WHEN - 81 THEN + 92 * ( - + 62 ) ELSE - + 81 END + MIN( DISTINCT - ( + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT 52 + COUNT ( * ) + + - CASE 66 WHEN - 81 THEN + 92 * ( - + 62 ) ELSE - + 81 END + MIN ( DISTINCT - ( + CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT DISTINCT + 65 * 49 AS col0
----
3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT DISTINCT CASE + 29 WHEN - 36 THEN - 88 + + 21 * - - 74 WHEN - 78 THEN NULL ELSE NULL END + + COALESCE ( CASE - 84 WHEN + 90 * - - 76 + + + 91 THEN - + 50 / AVG ( - 74 ) + CAST( NULL AS SIGNED ) * - 99 + 40 * SUM( + - 33 ) + - 62 WHEN + 79 THEN NULL END, 49 ) + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT CASE + 29 WHEN - 36 THEN - 88 + + 21 * - - 74 WHEN - 78 THEN NULL ELSE NULL END + + COALESCE ( CASE - 84 WHEN + 90 * - - 76 + + + 91 THEN - + 50 / AVG ( - 74 ) + CAST ( NULL AS INTEGER ) * - 99 + 40 * SUM ( + - 33 ) + - 62 WHEN + 79 THEN NULL END, 49 ) + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT + ( + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) / + MAX( - + 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT + ( + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) / + MAX ( - + 32 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT 6 + - + CAST( - 29 AS SIGNED ) col1
----
35

skipif mysql # not compatible
query I rowsort label-4786
SELECT 6 + - + CAST ( - 29 AS INTEGER ) col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4787
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 8, + ( - 6 ) * + 57 AS col1
----
NULL
-342

skipif mysql # not compatible
query II rowsort label-4787
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 8, + ( - 6 ) * + 57 AS col1
----
NULL
-342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT ALL - 72 - + 82 + - CAST( - - 10 AS SIGNED ) + 56 + + 38 * - - ( + 8 )
----
196

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL - 72 - + 82 + - CAST ( - - 10 AS INTEGER ) + 56 + + 38 * - - ( + 8 )
----
196

query I rowsort
SELECT 86 * + - 79
----
-6794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT ALL - 61 * - - CAST( - 66 AS SIGNED ) * ( - 43 ) + - 79
----
-173197

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - 61 * - - CAST ( - 66 AS INTEGER ) * ( - 43 ) + - 79
----
-173197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT DISTINCT + COUNT( * ) * 99 * COUNT( * ) + + 67 + COUNT( * ) DIV - COUNT( * ) AS col0
----
165

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + COUNT ( * ) * 99 * COUNT ( * ) + + 67 + COUNT ( * ) / - COUNT ( * ) AS col0
----
165

query I rowsort
SELECT 15 * 17 AS col1
----
255

query II rowsort
SELECT - 17 AS col0, + 35
----
-17
35

query I rowsort
SELECT ( - 92 ) - - + 93 * - + 24 + - 60 - 62 AS col0
----
-2446

query I rowsort
SELECT 24 * 10 AS col0
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT 30 + 5 + CAST( - COUNT( * ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-4796
SELECT 30 + 5 + CAST ( - COUNT ( * ) AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT 40 + - MIN( + 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4797
SELECT 40 + - MIN ( + 39 ) AS col0
----
1

query I rowsort
SELECT 14 * - + 10 * 82 AS col0
----
-11480

query I rowsort
SELECT 20 + + 35
----
55

query II rowsort
SELECT - 37, 82 * - + 33 AS col2
----
-37
-2706

query I rowsort
SELECT 39 * + + 24
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT COUNT( * ) + - 57 + + 14 * 36 - + 88 + - 23 * - 93 + + COUNT( * ) - + + 64
----
2436

skipif mysql # not compatible
query I rowsort label-4802
SELECT COUNT ( * ) + - 57 + + 14 * 36 - + 88 + - 23 * - 93 + + COUNT ( * ) - + + 64
----
2436

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT DISTINCT + ( + 76 ) * 20 DIV 36 + ( ( + 0 ) ) col2
----
42

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + ( + 76 ) * 20 / 36 + ( ( + 0 ) ) col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT 55 + - SUM( + CAST( - 84 AS SIGNED ) ) AS col1
----
139

skipif mysql # not compatible
query I rowsort label-4804
SELECT 55 + - SUM ( + CAST ( - 84 AS INTEGER ) ) AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL COUNT( DISTINCT + - 81 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL COUNT ( DISTINCT + - 81 ) col1
----
1

query I rowsort
SELECT ALL - 26 * 99
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT 65 + - MAX( DISTINCT + + 23 )
----
42

skipif mysql # not compatible
query I rowsort label-4807
SELECT 65 + - MAX ( DISTINCT + + 23 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT COUNT( * ) AS col0, + 95 + 7
----
1
102

skipif mysql # not compatible
query II rowsort label-4808
SELECT COUNT ( * ) AS col0, + 95 + 7
----
1
102

onlyif mysql # aggregate syntax: 
query II rowsort label-4809
SELECT + 61 AS col2, SUM( + + ( + 43 ) )
----
61
43

skipif mysql # not compatible
query II rowsort label-4809
SELECT + 61 AS col2, SUM ( + + ( + 43 ) )
----
61
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT + 35 * + 14 + - + 32 - + CASE - - 61 WHEN + COUNT( * ) THEN NULL WHEN 4 THEN - 6 * - 10 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4810
SELECT + 35 * + 14 + - + 32 - + CASE - - 61 WHEN + COUNT ( * ) THEN NULL WHEN 4 THEN - 6 * - 10 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT - MAX( + ( - + 84 ) ) * 8 + - 44 + 3 AS col1
----
631

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT - MAX ( + ( - + 84 ) ) * 8 + - 44 + 3 AS col1
----
631

query II rowsort
SELECT + + 37 col0, - 16
----
37
-16

query II rowsort
SELECT - 28 AS col0, - 36 * 94
----
-28
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT 53 * + + SUM( 75 ) + - 38 + + 23 + - 45 - - - 36
----
3879

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT 53 * + + SUM ( 75 ) + - 38 + + 23 + - 45 - - - 36
----
3879

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL - - 91 * - COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - - 91 * - COUNT ( * ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT + - 43 * - 71 + + COUNT( * )
----
3054

skipif mysql # not compatible
query I rowsort label-4816
SELECT + - 43 * - 71 + + COUNT ( * )
----
3054

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT ALL SUM( 60 ) * - 59 + + + COUNT( * ) AS col0
----
-3539

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL SUM ( 60 ) * - 59 + + + COUNT ( * ) AS col0
----
-3539

query I rowsort
SELECT 31 + 90 AS col2
----
121

query I rowsort
SELECT CASE - 10 WHEN 61 THEN - 51 ELSE NULL END * - + 46
----
NULL

query I rowsort
SELECT + 7 * 7 AS col0
----
49

query I rowsort
SELECT + 51 - - 53 AS col2
----
104

query II rowsort
SELECT DISTINCT + 29, 75 AS col2
----
29
75

query I rowsort
SELECT ALL - 15 - - 25 col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4824
SELECT + COUNT( * ) AS col0, - 25 + + - 30 - + 37 + + 19 + + - 4 + - COUNT( * ) - - 67 + + ( + + 99 ) * - - 55 * - - SUM( ALL + 23 ) * - COUNT( * ) + + - 7 DIV 85 * - - 74
----
1
-125246

skipif mysql # not compatible
query II rowsort label-4824
SELECT + COUNT ( * ) AS col0, - 25 + + - 30 - + 37 + + 19 + + - 4 + - COUNT ( * ) - - 67 + + ( + + 99 ) * - - 55 * - - SUM ( ALL + 23 ) * - COUNT ( * ) + + - 7 / 85 * - - 74
----
1
-125246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4825
SELECT + 52 * - 53 + - + COUNT( * ) * + - 73, + 63 + - CAST( NULL AS SIGNED ) * + 88 - + 75 * - - 8 col0
----
-2683
NULL

skipif mysql # not compatible
query II rowsort label-4825
SELECT + 52 * - 53 + - + COUNT ( * ) * + - 73, + 63 + - CAST ( NULL AS INTEGER ) * + 88 - + 75 * - - 8 col0
----
-2683
NULL

query I rowsort
SELECT + 14 - + - 51 AS col1
----
65

query I rowsort
SELECT + 30 * 74 AS col1
----
2220

query I rowsort
SELECT + ( + + 76 ) + 61 AS col0
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT - 26 * + COALESCE ( - + 81, 91 ) * 61 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT - 26 * + COALESCE ( - + 81, 91 ) * 61 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4830
SELECT ALL 76 * + CAST( NULL AS SIGNED ), - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4830
SELECT ALL 76 * + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - 88 * + + 49 * + COUNT( 45 )
----
-4312

skipif mysql # not compatible
query I rowsort label-4831
SELECT - 88 * + + 49 * + COUNT ( 45 )
----
-4312

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT + 0 * + 14 DIV + + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT + 0 * + 14 / + + 30 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4833
SELECT + 58 + - COUNT( 35 ) + ( + - 91 ) DIV + 58 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4833
SELECT + 58 + - COUNT ( 35 ) + ( + - 91 ) / + 58 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL 40 * SUM( - CAST( 68 AS SIGNED ) ) AS col2
----
-2720

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL 40 * SUM ( - CAST ( 68 AS INTEGER ) ) AS col2
----
-2720

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT + 52 DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT + 52 / - - 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 40 + + 73
----
113

query I rowsort
SELECT - 98 * + 79 * + 32
----
-247744

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4839
SELECT ALL - 22 + ( - + CAST( + - 55 AS SIGNED ) ) AS col1, + 85
----
33
85

skipif mysql # not compatible
query II rowsort label-4839
SELECT ALL - 22 + ( - + CAST ( + - 55 AS INTEGER ) ) AS col1, + 85
----
33
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4840
SELECT + 10 + - 86 + + - 42 * - + 92 DIV - 90
----
-118

skipif mysql # not compatible
query I rowsort label-4840
SELECT + 10 + - 86 + + - 42 * - + 92 / - 90
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT DISTINCT 33 + + CAST( NULL AS SIGNED ) + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT 33 + + CAST ( NULL AS INTEGER ) + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - 95 * - - MAX( + 70 )
----
-6650

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - 95 * - - MAX ( + 70 )
----
-6650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT - 62 + + CAST( NULL AS SIGNED ) * 65 + + - COUNT( * ) + COALESCE ( + 64, 91 * 17 * + 3 ) / 72 / + COALESCE ( + COUNT( * ), + - COALESCE ( - CAST( + 25 AS SIGNED ), - - CASE + - COALESCE ( + - 10, + 35 ) WHEN + + 78 THEN NULL ELSE - 21 * - 74 END ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT - 62 + + CAST ( NULL AS INTEGER ) * 65 + + - COUNT ( * ) + COALESCE ( + 64, 91 * 17 * + 3 ) / 72 / + COALESCE ( + COUNT ( * ), + - COALESCE ( - CAST ( + 25 AS INTEGER ), - - CASE + - COALESCE ( + - 10, + 35 ) WHEN + + 78 THEN NULL ELSE - 21 * - 74 END ) ) AS col2
----
NULL

query II rowsort
SELECT ALL 2 + + + 36 col1, - 41 + 48 * + 61
----
38
2887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4845
SELECT DISTINCT CASE - 53 WHEN + 28 THEN NULL ELSE - COUNT( * ) END, + CAST( NULL AS SIGNED ) + 31 + NULLIF ( 2, - + COALESCE ( + 43, - - 91, - - 97 ) * - - 79 ) col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4845
SELECT DISTINCT CASE - 53 WHEN + 28 THEN NULL ELSE - COUNT ( * ) END, + CAST ( NULL AS INTEGER ) + 31 + NULLIF ( 2, - + COALESCE ( + 43, - - 91, - - 97 ) * - - 79 ) col0
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4846
SELECT ALL + 40 + - 94 + + CASE + - 54 WHEN - + CAST( - - 61 AS SIGNED ) * - 84 + - + 88 THEN - 50 + + - 42 + - COUNT( * ) WHEN + 34 THEN NULL WHEN - 40 + - 32 THEN + 78 ELSE MIN( ALL 10 ) + - 49 END - 89 + - 61 * - CAST( NULL AS SIGNED ) * + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + 40 + - 94 + + CASE + - 54 WHEN - + CAST ( - - 61 AS INTEGER ) * - 84 + - + 88 THEN - 50 + + - 42 + - COUNT ( * ) WHEN + 34 THEN NULL WHEN - 40 + - 32 THEN + 78 ELSE MIN ( ALL 10 ) + - 49 END - 89 + - 61 * - CAST ( NULL AS INTEGER ) * + 79 AS col0
----
NULL

query II rowsort
SELECT + + 39 * + + 58 * + - 21 - + 77, NULLIF ( + 63, - 57 * 23 ) AS col2
----
-47579
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL - 71 * - COUNT( * ) * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - 71 * - COUNT ( * ) * + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT - SUM( DISTINCT 69 ) + + 91 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4849
SELECT - SUM ( DISTINCT 69 ) + + 91 AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4850
SELECT ALL + MIN( ALL - 62 ) AS col0, 93 * + COALESCE ( 18, + COUNT( * ) )
----
-62
1674

skipif mysql # not compatible
query II rowsort label-4850
SELECT ALL + MIN ( ALL - 62 ) AS col0, 93 * + COALESCE ( 18, + COUNT ( * ) )
----
-62
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - - COUNT( - 11 ) + - 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4851
SELECT - - COUNT ( - 11 ) + - 61 AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT ALL + ( - 12 ) DIV 63 + + 54 * - 27 - - 87 AS col0
----
-1371

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + ( - 12 ) / 63 + + 54 * - 27 - - 87 AS col0
----
-1371

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT + ( COUNT( * ) ), - 50 + - 36 AS col0
----
1
-86

skipif mysql # not compatible
query II rowsort label-4853
SELECT + ( COUNT ( * ) ), - 50 + - 36 AS col0
----
1
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT ALL + 55 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + 55 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + COUNT( * ) * - 53 + - 66
----
-119

skipif mysql # not compatible
query I rowsort label-4855
SELECT + COUNT ( * ) * - 53 + - 66
----
-119

query I rowsort
SELECT - 71 * 93 AS col2
----
-6603

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4857
SELECT - ( - CAST( NULL AS DECIMAL ) ) * - 58 / 24 + + 38 + - - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT - ( - CAST ( NULL AS REAL ) ) * - 58 / 24 + + 38 + - - 46
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4858
SELECT DISTINCT + 87 * + 58 DIV - COUNT( * ) - - + 91, 86 + + 56 AS col2
----
-4955
142

skipif mysql # not compatible
query II rowsort label-4858
SELECT DISTINCT + 87 * + 58 / - COUNT ( * ) - - + 91, 86 + + 56 AS col2
----
-4955
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT ALL + + CAST( + 46 AS SIGNED ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + + CAST ( + 46 AS INTEGER ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - 75 * + ( - COUNT( DISTINCT + 63 ) ) + 56 + - 11
----
120

skipif mysql # not compatible
query I rowsort label-4860
SELECT - 75 * + ( - COUNT ( DISTINCT + 63 ) ) + 56 + - 11
----
120

query II rowsort
SELECT - + 1 * 73 + ( + 22 ) AS col0, ( - 54 ) * - - 49 AS col0
----
-51
-2646

onlyif mysql # DIV for integer division: 
query II rowsort label-4862
SELECT + + 67 * - + 28 AS col1, + COALESCE ( 50, + 29 * - + 87 + + 7 DIV + 5 ) + + + 24
----
-1876
74

skipif mysql # not compatible
query II rowsort label-4862
SELECT + + 67 * - + 28 AS col1, + COALESCE ( 50, + 29 * - + 87 + + 7 / + 5 ) + + + 24
----
-1876
74

query I rowsort
SELECT ALL + ( 99 ) * + 79
----
7821

query I rowsort
SELECT - + 98 * - 65 * + - 27 * 25 * + 83 - 1 * 49
----
-356879299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4865
SELECT + MAX( ALL 39 ) + - ( - - 6 ) DIV 74
----
39

skipif mysql # not compatible
query I rowsort label-4865
SELECT + MAX ( ALL 39 ) + - ( - - 6 ) / 74
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4866
SELECT DISTINCT - CASE + 8 WHEN - + 34 * - 13 + + - 25 DIV - 84 * - NULLIF ( + 25, + 6 ) THEN + 76 * + 98 DIV - 32 * - - 93 ELSE 56 END * 18 DIV 63 * - 49 + - 16 + - - COUNT( - 93 ) * - 45
----
723

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - CASE + 8 WHEN - + 34 * - 13 + + - 25 / - 84 * - NULLIF ( + 25, + 6 ) THEN + 76 * + 98 / - 32 * - - 93 ELSE 56 END * 18 / 63 * - 49 + - 16 + - - COUNT ( - 93 ) * - 45
----
723

query I rowsort
SELECT 89 * ( - ( + + ( - - 28 ) ) ) + 84
----
-2408

query I rowsort
SELECT ALL + 44 * + 70 + + 23 AS col2
----
3103

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL 28 * 41 + 87 / - + CASE - - 99 WHEN + 33 THEN - - COALESCE ( 55, + 59, + 69 ) - + 50 + - - 22 - 68 WHEN - 52 + - 10 THEN NULL ELSE NULL END + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL 28 * 41 + 87 / - + CASE - - 99 WHEN + 33 THEN - - COALESCE ( 55, + 59, + 69 ) - + 50 + - - 22 - 68 WHEN - 52 + - 10 THEN NULL ELSE NULL END + + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - ( + ( 82 ) )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT - CAST( - + 94 AS SIGNED ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4871
SELECT - CAST ( - + 94 AS INTEGER ) AS col1
----
94

query I rowsort
SELECT ALL 87 * + 60 col2
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT MIN( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-4873
SELECT MIN ( - 3 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4874
SELECT + MAX( DISTINCT 32 ) + 21 DIV + 41 - - 56 AS col2, + 66
----
88
66

skipif mysql # not compatible
query II rowsort label-4874
SELECT + MAX ( DISTINCT 32 ) + 21 / + 41 - - 56 AS col2, + 66
----
88
66

query I rowsort
SELECT + 10 * - 30 AS col2
----
-300

query I rowsort
SELECT DISTINCT 22 * - + ( + 1 ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4877
SELECT DISTINCT NULLIF ( - + CAST( NULL AS SIGNED ), + 5 ) + 72 * - 49 * 33 * MIN( ALL - 0 ) * 57 / + - 42 + 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT NULLIF ( - + CAST ( NULL AS INTEGER ), + 5 ) + 72 * - 49 * 33 * MIN ( ALL - 0 ) * 57 / + - 42 + 12 col2
----
NULL

query I rowsort
SELECT ALL 92 + - 36
----
56

query I rowsort
SELECT ALL 27 + - 39
----
-12

query I rowsort
SELECT DISTINCT 86 * + - 83 AS col1
----
-7138

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL - + NULLIF ( + 73, + COUNT( * ) * - ( - 68 ) ) - - - 66 AS col1
----
-139

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - + NULLIF ( + 73, + COUNT ( * ) * - ( - 68 ) ) - - - 66 AS col1
----
-139

query I rowsort
SELECT + + 64 + - 90 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4883
SELECT - - MAX( DISTINCT + 71 ) + + - 66, - 95 AS col0
----
5
-95

skipif mysql # not compatible
query II rowsort label-4883
SELECT - - MAX ( DISTINCT + 71 ) + + - 66, - 95 AS col0
----
5
-95

query I rowsort
SELECT - + 14 + + + 55 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL + 9 - - + SUM( ALL + 51 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + 9 - - + SUM ( ALL + 51 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + - 45 * - 53 * COUNT( * ) AS col1
----
2385

skipif mysql # not compatible
query I rowsort label-4886
SELECT + - 45 * - 53 * COUNT ( * ) AS col1
----
2385

query I rowsort
SELECT DISTINCT + - 23 * - 93
----
2139

query I rowsort
SELECT DISTINCT - ( + 51 ) col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT ALL 3 - + CAST( - 20 AS SIGNED ) + + 88 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL 3 - + CAST ( - 20 AS INTEGER ) + + 88 AS col1
----
111

query I rowsort
SELECT DISTINCT - - 11 * - 31
----
-341

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4891
SELECT DISTINCT - - CAST( NULL AS SIGNED ), 23 + + 46 AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-4891
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), 23 + + 46 AS col2
----
NULL
69

query I rowsort
SELECT DISTINCT - ( - 64 ) AS col1
----
64

query I rowsort
SELECT ALL - 82 * - 64
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT ALL - MIN( 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL - MIN ( 70 ) AS col0
----
-70

query I rowsort
SELECT 63 + + - 6 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL - SUM( + - 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - SUM ( + - 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT - + SUM( - + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT - + SUM ( - + 16 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4898
SELECT DISTINCT - 12 AS col1, + COUNT( * ) DIV + + ( - 10 ) AS col1
----
-12
0

skipif mysql # not compatible
query II rowsort label-4898
SELECT DISTINCT - 12 AS col1, + COUNT ( * ) / + + ( - 10 ) AS col1
----
-12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT + 39 + - MIN( - 65 )
----
104

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT + 39 + - MIN ( - 65 )
----
104

query I rowsort
SELECT DISTINCT - 84 + - 60
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4901
SELECT 30 DIV + + COUNT( DISTINCT - 12 )
----
30

skipif mysql # not compatible
query I rowsort label-4901
SELECT 30 / + + COUNT ( DISTINCT - 12 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT 3 * - 86 + - + ( COUNT( * ) )
----
-259

skipif mysql # not compatible
query I rowsort label-4902
SELECT 3 * - 86 + - + ( COUNT ( * ) )
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL - MAX( + 16 ) + + - 55
----
-71

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - MAX ( + 16 ) + + - 55
----
-71

query II rowsort
SELECT 44 AS col0, + 92 AS col1
----
44
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT 20 DIV 10 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4905
SELECT 20 / 10 AS col2
----
2

query I rowsort
SELECT 3 * - - 30 + 87
----
177

query I rowsort
SELECT 59 - - ( 97 ) AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT 65 * - NULLIF ( + COUNT( * ), 93 ) * + 39
----
-2535

skipif mysql # not compatible
query I rowsort label-4908
SELECT 65 * - NULLIF ( + COUNT ( * ), 93 ) * + 39
----
-2535

query I rowsort
SELECT DISTINCT - 22 + - 40 AS col2
----
-62

query I rowsort
SELECT ALL + 67 * - + 83
----
-5561

query I rowsort
SELECT DISTINCT - 13 * - 23 * - ( - 99 ) AS col0
----
29601

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT ALL 44, 89 * + + ( - MIN( + + 56 ) ) AS col0
----
44
-4984

skipif mysql # not compatible
query II rowsort label-4912
SELECT ALL 44, 89 * + + ( - MIN ( + + 56 ) ) AS col0
----
44
-4984

query I rowsort
SELECT 55 * + 68 * 82 AS col2
----
306680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4914
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 35 AS col0, 62 DIV + 22 AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-4914
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 35 AS col0, 62 / + 22 AS col2
----
NULL
2

query I rowsort
SELECT DISTINCT 75 - + 92
----
-17

query II rowsort
SELECT 74, - 14 AS col0
----
74
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT ALL CAST( NULL AS SIGNED ) - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL CAST ( NULL AS INTEGER ) - - 2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4918
SELECT ALL 20 * - 90 + - + 22 - + 6 DIV + COALESCE ( MAX( - - 49 ), + 11 + 43, + + 66 * + ( + 47 ) + 61 * ( 97 ) + + + 82 )
----
-1822

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL 20 * - 90 + - + 22 - + 6 / + COALESCE ( MAX ( - - 49 ), + 11 + 43, + + 66 * + ( + 47 ) + 61 * ( 97 ) + + + 82 )
----
-1822

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT 68 + - 51 + - 60 + - 38 DIV + - 66 * - 3 * + COALESCE ( + 89, 27, - - 4 )
----
-43

skipif mysql # not compatible
query I rowsort label-4919
SELECT 68 + - 51 + - 60 + - 38 / + - 66 * - 3 * + COALESCE ( + 89, 27, - - 4 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT + 21 * + - COALESCE ( + MAX( DISTINCT 66 ), COUNT( * ) ) AS col1
----
-1386

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + 21 * + - COALESCE ( + MAX ( DISTINCT 66 ), COUNT ( * ) ) AS col1
----
-1386

query I rowsort
SELECT - 4 + + 58 col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT 29 * - 91 + - 89 DIV 53 AS col0
----
-2640

skipif mysql # not compatible
query I rowsort label-4922
SELECT 29 * - 91 + - 89 / 53 AS col0
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT ALL 48 * - - COALESCE ( + + 47, 18 DIV + 77 ) AS col1
----
2256

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL 48 * - - COALESCE ( + + 47, 18 / + 77 ) AS col1
----
2256

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - COUNT( * ) + + - SUM( + + 10 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4924
SELECT - COUNT ( * ) + + - SUM ( + + 10 ) AS col2
----
-11

query I rowsort
SELECT ALL + 77 * + 7
----
539

query I rowsort
SELECT ALL + 28 * - 68 AS col1
----
-1904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4927
SELECT + CAST( + - 31 AS SIGNED ) + + COUNT( * ) DIV + COUNT( * ) + - 3 + - COUNT( * ), 49 * - - 17 AS col2
----
-34
833

skipif mysql # not compatible
query II rowsort label-4927
SELECT + CAST ( + - 31 AS INTEGER ) + + COUNT ( * ) / + COUNT ( * ) + - 3 + - COUNT ( * ), 49 * - - 17 AS col2
----
-34
833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4928
SELECT CAST( NULL AS SIGNED ) * - + ( + + 35 ) + + COUNT( + - 13 ) + - 9 * + 58 * + + COUNT( + 16 ), 98 * + 11 AS col1
----
NULL
1078

skipif mysql # not compatible
query II rowsort label-4928
SELECT CAST ( NULL AS INTEGER ) * - + ( + + 35 ) + + COUNT ( + - 13 ) + - 9 * + 58 * + + COUNT ( + 16 ), 98 * + 11 AS col1
----
NULL
1078

query I rowsort
SELECT 17 * 41 * - - 5
----
3485

query I rowsort
SELECT + 11 * - + 4 + + 15 + 35 * - 24 AS col2
----
-869

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4931
SELECT + 10 AS col0, CAST( + ( + + 5 ) AS SIGNED )
----
10
5

skipif mysql # not compatible
query II rowsort label-4931
SELECT + 10 AS col0, CAST ( + ( + + 5 ) AS INTEGER )
----
10
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT 6 DIV + + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4932
SELECT 6 / + + COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT - COUNT( * ) + ( + 28 ) + 34 + 49 col0
----
110

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT - COUNT ( * ) + ( + 28 ) + 34 + 49 col0
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT - 33 DIV - - 81 + 49
----
49

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 33 / - - 81 + 49
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4935
SELECT ALL - 12 + + - 69 + MAX( ALL + + 34 ) - + 48 - - 73, 75 AS col2
----
-22
75

skipif mysql # not compatible
query II rowsort label-4935
SELECT ALL - 12 + + - 69 + MAX ( ALL + + 34 ) - + 48 - - 73, 75 AS col2
----
-22
75

query I rowsort
SELECT 55 + + COALESCE ( + + 12, + 32 )
----
67

query I rowsort
SELECT - 51 * - 26 + + 65 + + 47
----
1438

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT ALL + 98 * + 37, - SUM( DISTINCT + 11 ) AS col2
----
3626
-11

skipif mysql # not compatible
query II rowsort label-4938
SELECT ALL + 98 * + 37, - SUM ( DISTINCT + 11 ) AS col2
----
3626
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4939
SELECT 26 * CASE - - 27 WHEN COUNT( * ) THEN + 16 WHEN - 1 * + COALESCE ( + - 54, CAST( NULL AS SIGNED ), ( - 43 ) + COUNT( * ) + 38 + - ( 35 ) - + COUNT( * ), - + 28 ) * 69 * 45 THEN - + 33 * - + CAST( NULL AS SIGNED ) - + 85 / - + 36 * COALESCE ( + - 57, - 33 + + - ( - AVG ( 30 ) ), - + 97 ) END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT 26 * CASE - - 27 WHEN COUNT ( * ) THEN + 16 WHEN - 1 * + COALESCE ( + - 54, CAST ( NULL AS INTEGER ), ( - 43 ) + COUNT ( * ) + 38 + - ( 35 ) - + COUNT ( * ), - + 28 ) * 69 * 45 THEN - + 33 * - + CAST ( NULL AS INTEGER ) - + 85 / - + 36 * COALESCE ( + - 57, - 33 + + - ( - AVG ( 30 ) ), - + 97 ) END + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 59 + + 37
----
96

query I rowsort
SELECT ALL + 99 * 34 * 1 col2
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT 68 + - - NULLIF ( + - 62, + + 76 * + 17 ) + + 18 + - ( + 87 ) + + COUNT( * ) + - 92 * - - 92 + + - 64 * 95 * + COALESCE ( - - 90, - - ( 60 ) ) AS col0
----
-555726

skipif mysql # not compatible
query I rowsort label-4942
SELECT 68 + - - NULLIF ( + - 62, + + 76 * + 17 ) + + 18 + - ( + 87 ) + + COUNT ( * ) + - 92 * - - 92 + + - 64 * 95 * + COALESCE ( - - 90, - - ( 60 ) ) AS col0
----
-555726

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT + 13 * - 30 * + 36 * - 92 + COUNT( * ) AS col1
----
1291681

skipif mysql # not compatible
query I rowsort label-4943
SELECT + 13 * - 30 * + 36 * - 92 + COUNT ( * ) AS col1
----
1291681

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT - CASE COUNT( * ) WHEN + 95 * + 11 * + 42 / - ( + 24 ) + - - 66 + 0 + 11 * + + 83 * + AVG ( - 79 ) THEN + COUNT( * ) / ( COUNT( * ) ) - + + 48 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT - CASE COUNT ( * ) WHEN + 95 * + 11 * + 42 / - ( + 24 ) + - - 66 + 0 + 11 * + + 83 * + AVG ( - 79 ) THEN + COUNT ( * ) / ( COUNT ( * ) ) - + + 48 END col1
----
NULL

query II rowsort
SELECT DISTINCT - 91 - - 11 col0, - 17 * - 4
----
-80
68

query I rowsort
SELECT ALL + 36 * - 98
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT MAX( - + 20 ) * - - 60 * - - MAX( DISTINCT 24 ) + + + 38
----
-28762

skipif mysql # not compatible
query I rowsort label-4947
SELECT MAX ( - + 20 ) * - - 60 * - - MAX ( DISTINCT 24 ) + + + 38
----
-28762

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT 48 - + + SUM( - 13 )
----
61

skipif mysql # not compatible
query I rowsort label-4948
SELECT 48 - + + SUM ( - 13 )
----
61

query II rowsort
SELECT 64 * + 47, + 7 AS col0
----
3008
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT 99 + 53 + 25 * 13 DIV 37 col0
----
160

skipif mysql # not compatible
query I rowsort label-4950
SELECT 99 + 53 + 25 * 13 / 37 col0
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-4951
SELECT DISTINCT - 50 * - 66 AS col0, + COUNT( * ) AS col1
----
3300
1

skipif mysql # not compatible
query II rowsort label-4951
SELECT DISTINCT - 50 * - 66 AS col0, + COUNT ( * ) AS col1
----
3300
1

query I rowsort
SELECT ALL + 92 * + 60
----
5520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4953
SELECT - CAST( - 83 AS SIGNED ) DIV + 5 + + COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-4953
SELECT - CAST ( - 83 AS INTEGER ) / + 5 + + COUNT ( * ) AS col0
----
17

query I rowsort
SELECT - - 12 * - - 76 col1
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4955
SELECT ALL + ( + ( - 62 ) ) * 29 * + - CAST( - COUNT( * ) AS SIGNED )
----
-1798

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL + ( + ( - 62 ) ) * 29 * + - CAST ( - COUNT ( * ) AS INTEGER )
----
-1798

query I rowsort
SELECT - - 44 col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4957
SELECT ALL - 16 + - 58 AS col1, SUM( 20 )
----
-74
20

skipif mysql # not compatible
query II rowsort label-4957
SELECT ALL - 16 + - 58 AS col1, SUM ( 20 )
----
-74
20

query I rowsort
SELECT + - 10 * - 17
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL + - 79 * COUNT( * ) + - 47 + + + COUNT( * )
----
-125

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL + - 79 * COUNT ( * ) + - 47 + + + COUNT ( * )
----
-125

query I rowsort
SELECT + - NULLIF ( + - 67, - 51 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL + COUNT( * ) * + 79 + + - SUM( ALL ( - - 63 ) ) * + COUNT( * ) + - CASE - - 36 WHEN 66 THEN + + CASE - 27 WHEN + + 68 + 2 THEN - + 66 WHEN 36 THEN 12 ELSE NULL END * - + 58 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + COUNT ( * ) * + 79 + + - SUM ( ALL ( - - 63 ) ) * + COUNT ( * ) + - CASE - - 36 WHEN 66 THEN + + CASE - 27 WHEN + + 68 + 2 THEN - + 66 WHEN 36 THEN 12 ELSE NULL END * - + 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL + 81 * 49 + - SUM( DISTINCT - + 11 ) AS col0
----
3980

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL + 81 * 49 + - SUM ( DISTINCT - + 11 ) AS col0
----
3980

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT + COUNT( ALL - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + COUNT ( ALL - 61 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT CASE + + 84 WHEN + - CASE 74 WHEN 71 THEN + - 71 / + 26 WHEN - COUNT( * ) + + + COUNT( * ) THEN NULL ELSE NULL END * - CAST( - 73 AS SIGNED ) * COUNT( * ) THEN COUNT( - + 38 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT CASE + + 84 WHEN + - CASE 74 WHEN 71 THEN + - 71 / + 26 WHEN - COUNT ( * ) + + + COUNT ( * ) THEN NULL ELSE NULL END * - CAST ( - 73 AS INTEGER ) * COUNT ( * ) THEN COUNT ( - + 38 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4965
SELECT - 10 * - 83 + 52 DIV COUNT( * ) + - 31 AS col2
----
851

skipif mysql # not compatible
query I rowsort label-4965
SELECT - 10 * - 83 + 52 / COUNT ( * ) + - 31 AS col2
----
851

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT CASE + COUNT( * ) WHEN + - 90 THEN - COUNT( * ) ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4966
SELECT CASE + COUNT ( * ) WHEN + - 90 THEN - COUNT ( * ) ELSE COUNT ( * ) END AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT + 6 * 28 DIV 67 col0
----
2

skipif mysql # not compatible
query I rowsort label-4967
SELECT + 6 * 28 / 67 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4968
SELECT + CASE - 82 WHEN - 19 THEN + - 52 * - CAST( NULL AS SIGNED ) WHEN + 5 THEN NULL WHEN + 27 * + CAST( NULL AS SIGNED ) THEN 60 END * SUM( + + 2 ) AS col1, 63 AS col2
----
NULL
63

skipif mysql # not compatible
query II rowsort label-4968
SELECT + CASE - 82 WHEN - 19 THEN + - 52 * - CAST ( NULL AS INTEGER ) WHEN + 5 THEN NULL WHEN + 27 * + CAST ( NULL AS INTEGER ) THEN 60 END * SUM ( + + 2 ) AS col1, 63 AS col2
----
NULL
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4969
SELECT CASE + 76 WHEN + ( + 89 ) THEN + 45 * + 96 * 3 WHEN + + 72 * - 95 + - 83 + - 24 THEN 36 WHEN + + 58 - - MAX( 53 ) THEN + 18 / + 38 + - 66 END, - 3 AS col0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4969
SELECT CASE + 76 WHEN + ( + 89 ) THEN + 45 * + 96 * 3 WHEN + + 72 * - 95 + - 83 + - 24 THEN 36 WHEN + + 58 - - MAX ( 53 ) THEN + 18 / + 38 + - 66 END, - 3 AS col0
----
NULL
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4970
SELECT ALL 53 * - COUNT( * ) - - 61 AS col1, 19 + + 48 AS col1
----
8
67

skipif mysql # not compatible
query II rowsort label-4970
SELECT ALL 53 * - COUNT ( * ) - - 61 AS col1, 19 + + 48 AS col1
----
8
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + 70 - + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4971
SELECT + 70 - + COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT CASE - COUNT( * ) WHEN 42 THEN - MIN( + 40 ) WHEN + - 12 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT CASE - COUNT ( * ) WHEN 42 THEN - MIN ( + 40 ) WHEN + - 12 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT + 71 * - SUM( ALL + + 8 ) + + 67
----
-501

skipif mysql # not compatible
query I rowsort label-4973
SELECT + 71 * - SUM ( ALL + + 8 ) + + 67
----
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL + 35 * - ( - MIN( + 98 ) ) - - + 49 AS col2
----
3479

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + 35 * - ( - MIN ( + 98 ) ) - - + 49 AS col2
----
3479

query I rowsort
SELECT ALL + 68 * - + 96 AS col2
----
-6528

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT + ( - + SUM( ALL 4 ) ) AS col1, + 45 + COUNT( * ) * 53 AS col1
----
-4
98

skipif mysql # not compatible
query II rowsort label-4976
SELECT + ( - + SUM ( ALL 4 ) ) AS col1, + 45 + COUNT ( * ) * 53 AS col1
----
-4
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4977
SELECT ALL + 0 AS col2, + 73 + + 63 + + 44 + + + 10 / - 11 / + CAST( NULL AS DECIMAL ) + COUNT( * ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4977
SELECT ALL + 0 AS col2, + 73 + + 63 + + 44 + + + 10 / - 11 / + CAST ( NULL AS REAL ) + COUNT ( * ) col1
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4978
SELECT + CAST( NULL AS SIGNED ) AS col2, NULLIF ( - 67, + COALESCE ( + 54, + AVG ( ALL - 70 ), + 97 ) * + 56 ) - - 30 - 38 AS col0, ( + 16 ) AS col0
----
NULL
-75
16

skipif mysql # not compatible
query III rowsort label-4978
SELECT + CAST ( NULL AS INTEGER ) AS col2, NULLIF ( - 67, + COALESCE ( + 54, + AVG ( ALL - 70 ), + 97 ) * + 56 ) - - 30 - 38 AS col0, ( + 16 ) AS col0
----
NULL
-75
16

query I rowsort
SELECT ALL 4 * + - 44
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT - CAST( NULL AS SIGNED ) * - 89 * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT - CAST ( NULL AS INTEGER ) * - 89 * 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT COUNT( ALL - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-4981
SELECT COUNT ( ALL - 62 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT COUNT( * ) AS col2, + 63 col0
----
1
63

skipif mysql # not compatible
query II rowsort label-4982
SELECT COUNT ( * ) AS col2, + 63 col0
----
1
63

query I rowsort
SELECT DISTINCT - 50 * 5 * ( 52 )
----
-13000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4984
SELECT 78 * + CAST( 39 AS SIGNED ) + + + 10 AS col1, 53 - - - 91 AS col1
----
3052
-38

skipif mysql # not