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 # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-0
SELECT ALL CAST( NULL AS DECIMAL ) * - COUNT( * ) / + + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ) / + + 20 AS col2
----
NULL

query I rowsort
SELECT - 10 * + 42 AS col2
----
-420

query I rowsort
SELECT + 22 * + + 99 * NULLIF ( - 38, + 21 )
----
-82764

query I rowsort
SELECT + 39 + - 98 + + ( - 49 ) AS col0
----
-108

query II rowsort
SELECT - 96 AS col0, 92 * - - 43 AS col1
----
-96
3956

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT + 82 + + + 32 DIV 65 col1
----
82

skipif mysql # not compatible
query I rowsort label-5
SELECT + 82 + + + 32 / 65 col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT + MAX( + 96 ) DIV - + 97 + + 84 + - 34 DIV - 50 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6
SELECT + MAX ( + 96 ) / - + 97 + + 84 + - 34 / - 50 AS col1
----
84

query I rowsort
SELECT ALL 56 + + + ( 15 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT ALL + + 6 DIV + + 10
----
0

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL + + 6 / + + 10
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9
SELECT ALL - CASE 87 WHEN MIN( 79 ) / - 41 + + ( + - 46 ) THEN 57 * - CAST( + 55 AS SIGNED ) ELSE 3 END
----
-3

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - CASE 87 WHEN MIN ( 79 ) / - 41 + + ( + - 46 ) THEN 57 * - CAST ( + 55 AS INTEGER ) ELSE 3 END
----
-3

query I rowsort
SELECT ALL - 37 + - + 88 AS col1
----
-125

query I rowsort
SELECT ALL - 20 * - 69
----
1380

onlyif mysql # DIV for integer division: 
query I rowsort label-12
SELECT + 85 * - + 35 + + + 46 DIV + - 96 + - 93
----
-3068

skipif mysql # not compatible
query I rowsort label-12
SELECT + 85 * - + 35 + + + 46 / + - 96 + - 93
----
-3068

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT + 97 DIV - + 99 + - + 16 + 31 col2
----
15

skipif mysql # not compatible
query I rowsort label-13
SELECT + 97 / - + 99 + - + 16 + 31 col2
----
15

query I rowsort
SELECT ALL - 76 * 84 + + 32 + + 41 * 4 col2
----
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT - COALESCE ( - + 25, + - 23 - + COUNT( * ) + 55 + 91 + + - 89 ) + - 72 * - 68 - + 46 AS col2
----
4875

skipif mysql # not compatible
query I rowsort label-15
SELECT - COALESCE ( - + 25, + - 23 - + COUNT ( * ) + 55 + 91 + + - 89 ) + - 72 * - 68 - + 46 AS col2
----
4875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-16
SELECT + ( 71 ) * 10 DIV COUNT( * ) AS col1
----
710

skipif mysql # not compatible
query I rowsort label-16
SELECT + ( 71 ) * 10 / COUNT ( * ) AS col1
----
710

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-18
SELECT - + CAST( 51 AS SIGNED ) * 50 * + ( ( + 14 ) ) * - + ( CAST( 60 AS SIGNED ) ) * 88 + - 96 DIV + 35 + 80 + + 91 * 9 AS col0
----
188496897

skipif mysql # not compatible
query I rowsort label-18
SELECT - + CAST ( 51 AS INTEGER ) * 50 * + ( ( + 14 ) ) * - + ( CAST ( 60 AS INTEGER ) ) * 88 + - 96 / + 35 + 80 + + 91 * 9 AS col0
----
188496897

query I rowsort
SELECT ALL - + 96 * - ( + 25 ) - 6 * + + 72 + 18 * - 95 AS col2
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT DISTINCT - COUNT( DISTINCT + + 72 ) * 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT - COUNT ( DISTINCT + + 72 ) * 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT - + 55 * + COUNT( * ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-21
SELECT - + 55 * + COUNT ( * ) col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-22
SELECT ALL + COUNT( * ) DIV - 84 * + + 39 - - 98
----
98

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + COUNT ( * ) / - 84 * + + 39 - - 98
----
98

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-24
SELECT COALESCE ( + 37, - + 56 * + + 49 * + COALESCE ( + NULLIF ( - CAST( + 92 AS SIGNED ), + 78 + + 87 ), - 80 ) * + 70 + 19 )
----
37

skipif mysql # not compatible
query I rowsort label-24
SELECT COALESCE ( + 37, - + 56 * + + 49 * + COALESCE ( + NULLIF ( - CAST ( + 92 AS INTEGER ), + 78 + + 87 ), - 80 ) * + 70 + 19 )
----
37

query I rowsort
SELECT - NULLIF ( + 58, + 0 ) * 9 + + + 49 + 79 * - 61
----
-5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-26
SELECT - 36 - ( CASE SUM( ALL 55 ) WHEN - CAST( NULL AS SIGNED ) * - - COALESCE ( + 30, MAX( - 17 ) / + CAST( - 66 AS SIGNED ) + 93 ) + 17 THEN - NULLIF ( + 43, + 47 ) + 83 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-26
SELECT - 36 - ( CASE SUM ( ALL 55 ) WHEN - CAST ( NULL AS INTEGER ) * - - COALESCE ( + 30, MAX ( - 17 ) / + CAST ( - 66 AS INTEGER ) + 93 ) + 17 THEN - NULLIF ( + 43, + 47 ) + 83 END ) AS col2
----
NULL

query I rowsort
SELECT CASE + + 32 WHEN - + 58 + - AVG ( ALL 60 ) + + 38 THEN - 78 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT + MIN( DISTINCT - 90 ) * + 89 * - 20 AS col2
----
160200

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT + MIN ( DISTINCT - 90 ) * + 89 * - 20 AS col2
----
160200

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT 63 * ( - - 53 ) - COUNT( - + 79 ) AS col0
----
3338

skipif mysql # not compatible
query I rowsort label-29
SELECT 63 * ( - - 53 ) - COUNT ( - + 79 ) AS col0
----
3338

query I rowsort
SELECT - 88 * - + 14 AS col2
----
1232

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-32
SELECT DISTINCT NULLIF ( 18, + 77 ) * - 45 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT NULLIF ( 18, + 77 ) * - 45 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 28 + 30 AS col1
----
2

query I rowsort
SELECT + 34 - - 50 col1
----
84

query I rowsort
SELECT ALL 40 + + 98 + + 48
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-36
SELECT DISTINCT 81 AS col2, 57 - 11 + + CASE - + 17 WHEN - - COUNT( + 45 ) THEN CAST( NULL AS SIGNED ) + 34 ELSE NULL END * 45
----
81
NULL

skipif mysql # not compatible
query II rowsort label-36
SELECT DISTINCT 81 AS col2, 57 - 11 + + CASE - + 17 WHEN - - COUNT ( + 45 ) THEN CAST ( NULL AS INTEGER ) + 34 ELSE NULL END * 45
----
81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-37
SELECT ALL 92 + + COALESCE ( - + CASE + + 78 WHEN 90 - + + 77 + - COUNT( * ) / - COUNT( * ) + - + 94 THEN - - 87 * + + 81 WHEN - CAST( + 62 AS SIGNED ) * - 6 THEN NULL WHEN 90 THEN 74 END, 22 ) + CAST( ( 3 ) AS SIGNED ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL 92 + + COALESCE ( - + CASE + + 78 WHEN 90 - + + 77 + - COUNT ( * ) / - COUNT ( * ) + - + 94 THEN - - 87 * + + 81 WHEN - CAST ( + 62 AS INTEGER ) * - 6 THEN NULL WHEN 90 THEN 74 END, 22 ) + CAST ( ( 3 ) AS INTEGER ) AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT + 98 + - CASE + - ( + 69 ) WHEN + ( + 79 ) THEN - 39 * - MAX( 60 ) * + 79 WHEN CASE - 10 WHEN - 51 * - ( - 95 ) THEN NULL ELSE - 6 + 46 END THEN NULL ELSE - 86 END AS col2
----
184

skipif mysql # not compatible
query I rowsort label-38
SELECT + 98 + - CASE + - ( + 69 ) WHEN + ( + 79 ) THEN - 39 * - MAX ( 60 ) * + 79 WHEN CASE - 10 WHEN - 51 * - ( - 95 ) THEN NULL ELSE - 6 + 46 END THEN NULL ELSE - 86 END AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT + COUNT( * ) * - - 21 col0
----
21

skipif mysql # not compatible
query I rowsort label-39
SELECT + COUNT ( * ) * - - 21 col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-40
SELECT - ( - + NULLIF ( - + SUM( DISTINCT + 48 ), ( - 98 ) ) ), 45 * + + 41 + 26 AS col1
----
-48
1871

skipif mysql # not compatible
query II rowsort label-40
SELECT - ( - + NULLIF ( - + SUM ( DISTINCT + 48 ), ( - 98 ) ) ), 45 * + + 41 + 26 AS col1
----
-48
1871

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL MAX( DISTINCT - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL MAX ( DISTINCT - 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT - ( + COALESCE ( + COUNT( * ), + 56 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-42
SELECT - ( + COALESCE ( + COUNT ( * ), + 56 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-43
SELECT ALL + 71 - + 47 + + MAX( + - 87 ) DIV 1 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + 71 - + 47 + + MAX ( + - 87 ) / 1 AS col0
----
-63

query I rowsort
SELECT + - 85 + + 59 * + + 63 + - + 92
----
3540

query II rowsort
SELECT ALL + 26 col0, 51
----
26
51

query I rowsort
SELECT + + 11 + - 22 * + 7 * 98 col1
----
-15081

query I rowsort
SELECT ALL ( + 5 ) * + 19
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-48
SELECT - 60 * 34 * NULLIF ( + CASE - 8 WHEN + CASE + 52 WHEN + 40 - COUNT( * ) THEN NULL ELSE + COUNT( * ) * + 2 END * - 70 THEN NULL WHEN 82 THEN NULL ELSE - 31 END, - COUNT( * ) + + ( 2 + AVG ( + 51 - - CAST( NULL AS SIGNED ) ) ) ) + 52 AS col0
----
63292

skipif mysql # not compatible
query I rowsort label-48
SELECT - 60 * 34 * NULLIF ( + CASE - 8 WHEN + CASE + 52 WHEN + 40 - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) * + 2 END * - 70 THEN NULL WHEN 82 THEN NULL ELSE - 31 END, - COUNT ( * ) + + ( 2 + AVG ( + 51 - - CAST ( NULL AS INTEGER ) ) ) ) + 52 AS col0
----
63292

query I rowsort
SELECT ALL 99 * + + 79 AS col2
----
7821

onlyif mysql # aggregate syntax: 
query II rowsort label-50
SELECT - 46 AS col2, 34 * COUNT( DISTINCT + 58 ) AS col2
----
-46
34

skipif mysql # not compatible
query II rowsort label-50
SELECT - 46 AS col2, 34 * COUNT ( DISTINCT + 58 ) AS col2
----
-46
34

onlyif mysql # DIV for integer division: 
query II rowsort label-51
SELECT 37 AS col0, + 47 DIV + 16
----
37
2

skipif mysql # not compatible
query II rowsort label-51
SELECT 37 AS col0, + 47 / + 16
----
37
2

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT + 65 * - COUNT( * ) + + 52 + + + 28 AS col2, + 41 * + MAX( 95 ) AS col1
----
15
3895

skipif mysql # not compatible
query II rowsort label-52
SELECT + 65 * - COUNT ( * ) + + 52 + + + 28 AS col2, + 41 * + MAX ( 95 ) AS col1
----
15
3895

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL + - 61 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL + - 61 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT ALL - NULLIF ( - ( + - MAX( DISTINCT 97 ) ), - 74 * 69 - 75 * MAX( 77 ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL - NULLIF ( - ( + - MAX ( DISTINCT 97 ) ), - 74 * 69 - 75 * MAX ( 77 ) ) AS col2
----
-97

query II rowsort
SELECT DISTINCT - + 83 AS col1, - 84 + ( - - 74 ) col0
----
-83
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT - COUNT( 16 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT - COUNT ( 16 ) col0
----
-1

query I rowsort
SELECT DISTINCT - - 23 * + + COALESCE ( 35, - - 41 ) + - 21
----
784

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-60
SELECT CASE + 6 WHEN - 18 * 95 * CAST( + 28 AS SIGNED ) + + 2 THEN - - 23 + + + 6 + - - 50 END / + ( - COUNT( DISTINCT 12 ) ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT CASE + 6 WHEN - 18 * 95 * CAST ( + 28 AS INTEGER ) + + 2 THEN - - 23 + + + 6 + - - 50 END / + ( - COUNT ( DISTINCT 12 ) ) + - 52
----
NULL

query I rowsort
SELECT 93 * + + 27 + - ( + 77 ) AS col1
----
2434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-62
SELECT DISTINCT - + 56 * COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), + 21 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT - + 56 * COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + 21 ) AS col1
----
-56

query I rowsort
SELECT ALL + + 94 + 71 AS col2
----
165

query I rowsort
SELECT 41 * - 13
----
-533

onlyif mysql # aggregate syntax: 
query II rowsort label-65
SELECT ALL + 67 + 41 AS col2, - COUNT( - 43 )
----
108
-1

skipif mysql # not compatible
query II rowsort label-65
SELECT ALL + 67 + 41 AS col2, - COUNT ( - 43 )
----
108
-1

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

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

query I rowsort
SELECT - 73 * + 42 - + 68 AS col2
----
-3134

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

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT COUNT ( * ) + + 44 AS col1
----
45

query I rowsort
SELECT ALL - 95 + - ( + - 7 )
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-70
SELECT DISTINCT - 13 + NULLIF ( 0, 38 ) * + 10 - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT - 13 + NULLIF ( 0, 38 ) * + 10 - - CAST ( NULL AS REAL ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT ALL - 68 + 47 - + - CAST( - 68 AS SIGNED ) + - 11 + - SUM( DISTINCT + 66 ) * - 67 * + - 5 AS col2
----
-22210

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - 68 + 47 - + - CAST ( - 68 AS INTEGER ) + - 11 + - SUM ( DISTINCT + 66 ) * - 67 * + - 5 AS col2
----
-22210

onlyif mysql # aggregate syntax: 
query II rowsort label-73
SELECT 47 + SUM( 46 ), + 64 * - 22 AS col2
----
93
-1408

skipif mysql # not compatible
query II rowsort label-73
SELECT 47 + SUM ( 46 ), + 64 * - 22 AS col2
----
93
-1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-74
SELECT 21 / CAST( NULL AS SIGNED ) * - 15 * - + COUNT( * ) * + + 7 AS col0, 82 * + 57 * - 9
----
NULL
-42066

skipif mysql # not compatible
query II rowsort label-74
SELECT 21 / CAST ( NULL AS INTEGER ) * - 15 * - + COUNT ( * ) * + + 7 AS col0, 82 * + 57 * - 9
----
NULL
-42066

query I rowsort
SELECT 57 + 96 AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT 28 * 31 DIV 62 * + - 95 col0
----
-1330

skipif mysql # not compatible
query I rowsort label-76
SELECT 28 * 31 / 62 * + - 95 col0
----
-1330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-77
SELECT DISTINCT + ( + + 42 ) / + - AVG ( + CAST( NULL AS SIGNED ) ) * 35 - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT + ( + + 42 ) / + - AVG ( + CAST ( NULL AS INTEGER ) ) * 35 - 13
----
NULL

query I rowsort
SELECT ALL - 68 + + + 15
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT 47 DIV + 81 * - 36 * - + 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-79
SELECT 47 / + 81 * - 36 * - + 10 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT ALL + 96 * - - MAX( 97 ) AS col0
----
9312

skipif mysql # not compatible
query I rowsort label-80
SELECT ALL + 96 * - - MAX ( 97 ) AS col0
----
9312

query I rowsort
SELECT ALL 86 * - 77
----
-6622

query I rowsort
SELECT DISTINCT 4 * - 79
----
-316

query I rowsort
SELECT DISTINCT - 51 - - 3
----
-48

query I rowsort
SELECT DISTINCT + ( + 26 ) col0
----
26

query I rowsort
SELECT 74 * + 46
----
3404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-86
SELECT - + NULLIF ( + - 89, + + 85 + CAST( NULL AS SIGNED ) + + + COUNT( * ) )
----
89

skipif mysql # not compatible
query I rowsort label-86
SELECT - + NULLIF ( + - 89, + + 85 + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) )
----
89

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

query I rowsort
SELECT ALL - 93 * + + 57
----
-5301

query I rowsort
SELECT 53 * + 14
----
742

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ALL 33 * - + 72 + + 82 * + COUNT( * ) * + - 61 AS col0
----
-7378

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL 33 * - + 72 + + 82 * + COUNT ( * ) * + - 61 AS col0
----
-7378

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT DISTINCT CASE + CASE - 30 WHEN ( + + 72 ) / - 70 THEN COUNT( * ) WHEN - 79 THEN - COUNT( * ) * 21 + - 76 + + + 44 + - 8 * - 13 * + 23 END WHEN - 82 THEN COUNT( * ) WHEN + CASE 42 WHEN 15 + - 36 THEN NULL ELSE - NULLIF ( - 15, 52 ) END + + 18 THEN - 4 + + 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT CASE + CASE - 30 WHEN ( + + 72 ) / - 70 THEN COUNT ( * ) WHEN - 79 THEN - COUNT ( * ) * 21 + - 76 + + + 44 + - 8 * - 13 * + 23 END WHEN - 82 THEN COUNT ( * ) WHEN + CASE 42 WHEN 15 + - 36 THEN NULL ELSE - NULLIF ( - 15, 52 ) END + + 18 THEN - 4 + + 14 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-92
SELECT 96 DIV + COUNT( * ) + + 15 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-92
SELECT 96 / + COUNT ( * ) + + 15 AS col2
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT - - 14 DIV CASE + 4 WHEN 50 THEN NULL WHEN + + 23 THEN NULL ELSE 43 END + - - 54 * ( - 99 )
----
-5346

skipif mysql # not compatible
query I rowsort label-93
SELECT - - 14 / CASE + 4 WHEN 50 THEN NULL WHEN + + 23 THEN NULL ELSE 43 END + - - 54 * ( - 99 )
----
-5346

onlyif mysql # aggregate syntax: 
query II rowsort label-94
SELECT - 73 * + + 41 AS col2, - COALESCE ( + - 13, - + 9 * + COUNT( * ) )
----
-2993
13

skipif mysql # not compatible
query II rowsort label-94
SELECT - 73 * + + 41 AS col2, - COALESCE ( + - 13, - + 9 * + COUNT ( * ) )
----
-2993
13

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL - 41 + - 68 - 98 * - NULLIF ( - COUNT( 41 ), - 89 ) * + SUM( DISTINCT - 86 ) AS col2
----
8319

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL - 41 + - 68 - 98 * - NULLIF ( - COUNT ( 41 ), - 89 ) * + SUM ( DISTINCT - 86 ) AS col2
----
8319

query I rowsort
SELECT + NULLIF ( - 27, + 4 * 84 ) AS col1
----
-27

query I rowsort
SELECT - + 28 * 22 * - 61 + 25 AS col1
----
37601

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT ALL - MAX( 95 ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL - MAX ( 95 ) col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT DISTINCT COALESCE ( NULLIF ( + - 12, + 48 / - 74 - MIN( ALL - 13 ) + - - 27 ), + + ( + COUNT( * ) ), 61 * ( CASE 25 WHEN 47 / 35 THEN - COUNT( NULLIF ( 33, 78 ) ) + + 54 * + 97 ELSE MAX( 66 ) END ) + + COUNT( * ) ) + - 63 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT COALESCE ( NULLIF ( + - 12, + 48 / - 74 - MIN ( ALL - 13 ) + - - 27 ), + + ( + COUNT ( * ) ), 61 * ( CASE 25 WHEN 47 / 35 THEN - COUNT ( NULLIF ( 33, 78 ) ) + + 54 * + 97 ELSE MAX ( 66 ) END ) + + COUNT ( * ) ) + - 63 AS col1
----
-75

query I rowsort
SELECT ALL - 0 + + 84
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-101
SELECT 38 * + + CAST( - 36 AS SIGNED )
----
-1368

skipif mysql # not compatible
query I rowsort label-101
SELECT 38 * + + CAST ( - 36 AS INTEGER )
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT + MIN( - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-102
SELECT + MIN ( - 6 ) AS col2
----
-6

query I rowsort
SELECT ALL + 36 + + 59
----
95

query I rowsort
SELECT ( + 20 ) * + 44
----
880

query I rowsort
SELECT ALL + 27 * - + 4
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT + MAX( - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-106
SELECT + MAX ( - 7 ) AS col1
----
-7

query I rowsort
SELECT ALL + 37 + + 44 * - 63
----
-2735

query I rowsort
SELECT 73 * + 55 AS col1
----
4015

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT + COALESCE ( COUNT( * ), COUNT( * ) * + 86 + + ( - 22 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-109
SELECT + COALESCE ( COUNT ( * ), COUNT ( * ) * + 86 + + ( - 22 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-110
SELECT ALL CAST( - 45 AS SIGNED ) - - MAX( 1 ) * COUNT( * ) + + + 18 + + 86 + + ( - - COUNT( * ) ) DIV - 85
----
60

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL CAST ( - 45 AS INTEGER ) - - MAX ( 1 ) * COUNT ( * ) + + + 18 + + 86 + + ( - - COUNT ( * ) ) / - 85
----
60

query I rowsort
SELECT 63 * + + 23
----
1449

query I rowsort
SELECT ALL - 37 - 68
----
-105

query II rowsort
SELECT 15, ( + + 7 ) * + 37 * + 14 + + + 1 AS col0
----
15
3627

query II rowsort
SELECT ALL 39, 62 AS col2
----
39
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL CASE - 28 WHEN - + NULLIF ( CASE + 74 WHEN 48 / - 24 + + + 69 THEN NULL WHEN + 23 THEN - 43 WHEN + 72 THEN + - COUNT( * ) END, + 70 * 25 ) * 89 THEN - CAST( NULL AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL CASE - 28 WHEN - + NULLIF ( CASE + 74 WHEN 48 / - 24 + + + 69 THEN NULL WHEN + 23 THEN - 43 WHEN + 72 THEN + - COUNT ( * ) END, + 70 * 25 ) * 89 THEN - CAST ( NULL AS INTEGER ) END col0
----
NULL

query I rowsort
SELECT 82 - 30
----
52

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

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

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

skipif mysql # not compatible
query I rowsort label-118
SELECT - + 78 / 66
----
-1

query I rowsort
SELECT - - 8 + 40
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-120
SELECT ALL - - 27 DIV - 7 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - - 27 / - 7 AS col0
----
-3

query I rowsort
SELECT ALL 22 * + 32 AS col0
----
704

query I rowsort
SELECT ALL + - 15 * + + 56
----
-840

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

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

query II rowsort
SELECT ALL 4 AS col0, - COALESCE ( 33, 72 ) + + NULLIF ( - 6, - ( 51 ) )
----
4
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT ALL - CAST( NULL AS SIGNED ) + - - 44 + + 6 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 44 + + 6 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT - MIN( DISTINCT - 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-126
SELECT - MIN ( DISTINCT - 51 ) AS col1
----
51

query I rowsort
SELECT 90 * 89 + 74 AS col0
----
8084

query II rowsort
SELECT DISTINCT + - 20 AS col0, 70 AS col0
----
-20
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT - + 23 DIV 1 DIV + MIN( DISTINCT + 67 ) + - - 59 + + 55 * 84 - + 11 * - 44 AS col1
----
5163

skipif mysql # not compatible
query I rowsort label-129
SELECT - + 23 / 1 / + MIN ( DISTINCT + 67 ) + - - 59 + + 55 * 84 - + 11 * - 44 AS col1
----
5163

query II rowsort
SELECT ALL + - 27 * - 35 + + - 1, + 96 AS col1
----
944
96

query I rowsort
SELECT DISTINCT + 28 * - 4 + 12 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-132
SELECT ( 43 ) AS col1, - 50 * + CASE - 24 WHEN + + SUM( ALL 72 ) * + - 12 THEN + 28 ELSE ( SUM( ALL - 59 ) ) - + CASE - + 7 WHEN COUNT( * ) THEN - 87 ELSE NULL END + 68 END
----
43
NULL

skipif mysql # not compatible
query II rowsort label-132
SELECT ( 43 ) AS col1, - 50 * + CASE - 24 WHEN + + SUM ( ALL 72 ) * + - 12 THEN + 28 ELSE ( SUM ( ALL - 59 ) ) - + CASE - + 7 WHEN COUNT ( * ) THEN - 87 ELSE NULL END + 68 END
----
43
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-133
SELECT ALL CASE - 30 WHEN - 23 THEN NULL ELSE CASE + NULLIF ( - + 27, - - MAX( - - ( - 71 ) ) + - 75 ) WHEN - 88 THEN NULL WHEN - COUNT( * ) THEN 64 + - 58 * - 40 WHEN + COUNT( * ) THEN NULL ELSE - ( + 70 ) DIV 5 + ( 54 ) END END * - 72 + - 83 * - 85 AS col1
----
4175

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL CASE - 30 WHEN - 23 THEN NULL ELSE CASE + NULLIF ( - + 27, - - MAX ( - - ( - 71 ) ) + - 75 ) WHEN - 88 THEN NULL WHEN - COUNT ( * ) THEN 64 + - 58 * - 40 WHEN + COUNT ( * ) THEN NULL ELSE - ( + 70 ) / 5 + ( 54 ) END END * - 72 + - 83 * - 85 AS col1
----
4175

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT - 65 DIV - 54 - + 88 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-134
SELECT - 65 / - 54 - + 88 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT + 59 - 84 * + CASE - COUNT( * ) WHEN 38 * - 45 * + ( - 58 ) THEN + - 33 * + - 93 / + - COUNT( * ) * 13 + 96 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-135
SELECT + 59 - 84 * + CASE - COUNT ( * ) WHEN 38 * - 45 * + ( - 58 ) THEN + - 33 * + - 93 / + - COUNT ( * ) * 13 + 96 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 82 * 64
----
5248

query II rowsort
SELECT ALL - ( + + 57 ) * 86 - + 42 + ( - - 33 ) + + - 29, - 58 AS col1
----
-4940
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT + MAX( - + 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-138
SELECT + MAX ( - + 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT NULLIF ( + + 33, CASE - + COUNT( ALL + 36 ) WHEN + 79 THEN NULL WHEN - 36 + + + 44 + - 63 THEN NULL WHEN - + ( + - 24 ) THEN NULL ELSE + 97 + - + 16 * - - 33 * + 30 END ) * + 34 + 56 AS col1
----
1178

skipif mysql # not compatible
query I rowsort label-139
SELECT NULLIF ( + + 33, CASE - + COUNT ( ALL + 36 ) WHEN + 79 THEN NULL WHEN - 36 + + + 44 + - 63 THEN NULL WHEN - + ( + - 24 ) THEN NULL ELSE + 97 + - + 16 * - - 33 * + 30 END ) * + 34 + 56 AS col1
----
1178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CASE 35 WHEN + COUNT( * ) THEN NULL ELSE - 12 * + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CASE 35 WHEN + COUNT ( * ) THEN NULL ELSE - 12 * + - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT + COUNT( * ) + + 68 + + + 70 + COALESCE ( - CASE - - 21 WHEN + 11 THEN - 31 WHEN + + COUNT( ALL COALESCE ( - 39, 10, - 0 ) ) THEN NULL END, + 48 + 89 ) * 69
----
9592

skipif mysql # not compatible
query I rowsort label-141
SELECT + COUNT ( * ) + + 68 + + + 70 + COALESCE ( - CASE - - 21 WHEN + 11 THEN - 31 WHEN + + COUNT ( ALL COALESCE ( - 39, 10, - 0 ) ) THEN NULL END, + 48 + 89 ) * 69
----
9592

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

skipif mysql # not compatible
query I rowsort label-142
SELECT MAX ( DISTINCT - 14 )
----
-14

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-144
SELECT + 88 * + - 29 + 31 * + + 66 AS col2, + SUM( DISTINCT - - 9 ) col1
----
-506
9

skipif mysql # not compatible
query II rowsort label-144
SELECT + 88 * + - 29 + 31 * + + 66 AS col2, + SUM ( DISTINCT - - 9 ) col1
----
-506
9

query I rowsort
SELECT - NULLIF ( - 60, - - 66 / + + 5 * + - 25 ) + - 45
----
15

query I rowsort
SELECT + + 21 + 85 + 67 - + 29 * 37 * + 18 * 95 AS col1
----
-1834657

query I rowsort
SELECT - + 60 col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT DISTINCT 27 * - + COUNT( * ) + 82
----
55

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT 27 * - + COUNT ( * ) + 82
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL - CASE + + CASE COUNT( * ) WHEN + - 91 THEN + ( + 78 ) * + 69 + + 32 + - COALESCE ( + 82, 8 ) * - 14 * 32 / + COUNT( * ) ELSE NULL END WHEN - 59 * + 24 THEN + 25 - + 3 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL - CASE + + CASE COUNT ( * ) WHEN + - 91 THEN + ( + 78 ) * + 69 + + 32 + - COALESCE ( + 82, 8 ) * - 14 * 32 / + COUNT ( * ) ELSE NULL END WHEN - 59 * + 24 THEN + 25 - + 3 END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL - SUM( - 76 ) * - + COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - SUM ( - 76 ) * - + COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT DISTINCT 50 + - 8
----
42

query I rowsort
SELECT - ( + - 54 ) col0
----
54

query I rowsort
SELECT - 98 + + - 84 * + - 96 AS col2
----
7966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-155
SELECT ALL + + CASE - ( + 51 ) WHEN 8 THEN 11 / 28 + + COALESCE ( COUNT( * ), 83, + CAST( + 36 AS DECIMAL ) ) + - + CAST( - + 54 AS SIGNED ) / 48 + 5 END + 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL + + CASE - ( + 51 ) WHEN 8 THEN 11 / 28 + + COALESCE ( COUNT ( * ), 83, + CAST ( + 36 AS REAL ) ) + - + CAST ( - + 54 AS INTEGER ) / 48 + 5 END + 72 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT ALL - NULLIF ( COUNT( * ), + 27 * - 58 ) + + 71
----
70

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL - NULLIF ( COUNT ( * ), + 27 * - 58 ) + + 71
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT - 51 + 31 * - - ( - + MIN( ALL - 5 ) ) * + 49 AS col1
----
7544

skipif mysql # not compatible
query I rowsort label-157
SELECT - 51 + 31 * - - ( - + MIN ( ALL - 5 ) ) * + 49 AS col1
----
7544

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT COALESCE ( - - 42, COUNT( * ) + - 89 + - 39 * + 1 * - + 84 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-158
SELECT COALESCE ( - - 42, COUNT ( * ) + - 89 + - 39 * + 1 * - + 84 ) AS col2
----
42

query II rowsort
SELECT - - 14 + 53 col1, ( + 1 ) + + 91 * 89
----
67
8100

onlyif mysql # aggregate syntax: 
query II rowsort label-160
SELECT ALL - 50 * 84, 10 - + - 2 * COUNT( * ) AS col2
----
-4200
12

skipif mysql # not compatible
query II rowsort label-160
SELECT ALL - 50 * 84, 10 - + - 2 * COUNT ( * ) AS col2
----
-4200
12

query II rowsort
SELECT ( + 71 ) AS col1, - 72 * + 42 AS col1
----
71
-3024

query I rowsort
SELECT ALL - - 74 + - 70
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-163
SELECT DISTINCT - 22 DIV - - ( ( + ( + 72 ) ) ) AS col2, 95 DIV 86 * + 9
----
0
9

skipif mysql # not compatible
query II rowsort label-163
SELECT DISTINCT - 22 / - - ( ( + ( + 72 ) ) ) AS col2, 95 / 86 * + 9
----
0
9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT + 54 * CASE 94 WHEN + - 82 - + COUNT( DISTINCT - - 80 ) + 3 * - 93 * 90 + COUNT( * ) THEN + + 8 WHEN 21 * - 97 - + + MIN( ALL + - 20 ) THEN COALESCE ( 83, 21, - 32 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT + 54 * CASE 94 WHEN + - 82 - + COUNT ( DISTINCT - - 80 ) + 3 * - 93 * 90 + COUNT ( * ) THEN + + 8 WHEN 21 * - 97 - + + MIN ( ALL + - 20 ) THEN COALESCE ( 83, 21, - 32 ) END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-168
SELECT ALL - 51 DIV + + NULLIF ( 15, + + CAST( + - 90 AS SIGNED ) DIV 6 + 93 ) - 97 - - ( + 49 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL - 51 / + + NULLIF ( 15, + + CAST ( + - 90 AS INTEGER ) / 6 + 93 ) - 97 - - ( + 49 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT + ( - SUM( - 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-169
SELECT + ( - SUM ( - 35 ) )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-170
SELECT ALL MAX( 81 ) DIV - 76 - + + CASE + - 23 WHEN - 53 DIV - 79 + + + 6 * - 68 THEN + + 0 * + + 97 WHEN + + 62 + + - 12 + + 50 * - 69 + + 18 THEN ( + 87 ) * 98 + - CASE 44 WHEN + 46 THEN COUNT( * ) WHEN + ( 43 ) THEN NULL END * 38 WHEN 48 * + COUNT( * ) THEN NULL ELSE + 17 - COUNT( * ) * 38 END + MIN( 10 + - 45 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL MAX ( 81 ) / - 76 - + + CASE + - 23 WHEN - 53 / - 79 + + + 6 * - 68 THEN + + 0 * + + 97 WHEN + + 62 + + - 12 + + 50 * - 69 + + 18 THEN ( + 87 ) * 98 + - CASE 44 WHEN + 46 THEN COUNT ( * ) WHEN + ( 43 ) THEN NULL END * 38 WHEN 48 * + COUNT ( * ) THEN NULL ELSE + 17 - COUNT ( * ) * 38 END + MIN ( 10 + - 45 ) AS col1
----
-15

query I rowsort
SELECT - 52 * - 81
----
4212

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-172
SELECT ALL 64 * + - ( - 71 ) * + CASE 26 WHEN + 80 * - 44 / + - 93 * 95 / 39 * - 23 + - - 0 THEN + CAST( + 24 AS DECIMAL ) / + + 3 * - NULLIF ( + 24, 21 ) + + 11 WHEN 17 THEN NULL WHEN - 36 - - 16 * 36 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL 64 * + - ( - 71 ) * + CASE 26 WHEN + 80 * - 44 / + - 93 * 95 / 39 * - 23 + - - 0 THEN + CAST ( + 24 AS REAL ) / + + 3 * - NULLIF ( + 24, 21 ) + + 11 WHEN 17 THEN NULL WHEN - 36 - - 16 * 36 THEN NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT DISTINCT - 92 DIV - 33 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT - 92 / - 33 AS col2
----
2

query I rowsort
SELECT ALL 28 * - ( - 8 ) AS col1
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT 98 DIV - 51 col1
----
-1

skipif mysql # not compatible
query I rowsort label-176
SELECT 98 / - 51 col1
----
-1

query II rowsort
SELECT + 34 * - - 70 - - - 90 AS col2, 16 - + 98 AS col0
----
2290
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-178
SELECT 67 * - NULLIF ( + 49, + 0 * MIN( - + 77 ) DIV - COUNT( * ) - - 38 + + AVG ( ALL 62 ) + + + ( + 48 ) DIV 22 + - - 30 ) - - COUNT( * ) + + 14 DIV + 67
----
-3282

skipif mysql # not compatible
query I rowsort label-178
SELECT 67 * - NULLIF ( + 49, + 0 * MIN ( - + 77 ) / - COUNT ( * ) - - 38 + + AVG ( ALL 62 ) + + + ( + 48 ) / 22 + - - 30 ) - - COUNT ( * ) + + 14 / + 67
----
-3282

query I rowsort
SELECT ALL - 61 * - 76 AS col2
----
4636

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

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

query I rowsort
SELECT ALL - + 77 AS col1
----
-77

query I rowsort
SELECT ALL - 70 + 33
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-183
SELECT ALL CAST( - 65 AS SIGNED ) + + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL CAST ( - 65 AS INTEGER ) + + COUNT ( * )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-184
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 34 - + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-184
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 34 - + 36 AS col1
----
NULL

query I rowsort
SELECT 82 * - - 50 AS col0
----
4100

query I rowsort
SELECT DISTINCT 52 + + ( - - 21 )
----
73

query I rowsort
SELECT ALL 57 + - + ( + + 93 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-188
SELECT 31 + + CAST( - 29 AS SIGNED ) AS col2, - 92 * CAST( NULL AS SIGNED ) + + + 21 + - - 69 AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-188
SELECT 31 + + CAST ( - 29 AS INTEGER ) AS col2, - 92 * CAST ( NULL AS INTEGER ) + + + 21 + - - 69 AS col1
----
2
NULL

query I rowsort
SELECT ALL + 54 * 18 - - 39 AS col1
----
1011

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT MIN( DISTINCT - - 48 ) + + + ( - 58 )
----
-10

skipif mysql # not compatible
query I rowsort label-190
SELECT MIN ( DISTINCT - - 48 ) + + + ( - 58 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-191
SELECT - - 7 AS col0, + CAST( - 62 AS SIGNED ) AS col2, + 83 AS col2
----
7
-62
83

skipif mysql # not compatible
query III rowsort label-191
SELECT - - 7 AS col0, + CAST ( - 62 AS INTEGER ) AS col2, + 83 AS col2
----
7
-62
83

query II rowsort
SELECT - 46 AS col0, CASE 27 WHEN - 71 * 23 + - - AVG ( + 32 ) - - 47 THEN - ( + 13 ) END
----
-46
NULL

query I rowsort
SELECT 76 * - + 17 AS col2
----
-1292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT ALL + 78 / - - ( 32 ) * - - COUNT( * ) * - + CASE + + COUNT( * ) WHEN + COUNT( * ) * + - SUM( - + 83 ) - + 34 * - 3 * 77 THEN + CASE - + 87 WHEN COUNT( DISTINCT + - 40 ) + + 57 THEN NULL WHEN - 22 THEN + 81 * COUNT( * ) WHEN + 0 THEN NULL END - - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL + 78 / - - ( 32 ) * - - COUNT ( * ) * - + CASE + + COUNT ( * ) WHEN + COUNT ( * ) * + - SUM ( - + 83 ) - + 34 * - 3 * 77 THEN + CASE - + 87 WHEN COUNT ( DISTINCT + - 40 ) + + 57 THEN NULL WHEN - 22 THEN + 81 * COUNT ( * ) WHEN + 0 THEN NULL END - - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT - 69 * - COUNT( * ) * - 14 * + 67 + - + COUNT( ALL - 23 ) * - + 77 - + 74 AS col2
----
-64719

skipif mysql # not compatible
query I rowsort label-195
SELECT - 69 * - COUNT ( * ) * - 14 * + 67 + - + COUNT ( ALL - 23 ) * - + 77 - + 74 AS col2
----
-64719

onlyif mysql # DIV for integer division: 
query II rowsort label-196
SELECT ALL - 27 AS col2, 77 DIV + ( - + 28 )
----
-27
-2

skipif mysql # not compatible
query II rowsort label-196
SELECT ALL - 27 AS col2, 77 / + ( - + 28 )
----
-27
-2

query I rowsort
SELECT 63 * + + 58
----
3654

query II rowsort
SELECT DISTINCT - 98 AS col0, + 29 + - 32
----
-98
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT ALL + 78 DIV - 43 col0
----
-1

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + 78 / - 43 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT + 18 DIV + 77 - + 54 + - 36 * - 87
----
3078

skipif mysql # not compatible
query I rowsort label-200
SELECT + 18 / + 77 - + 54 + - 36 * - 87
----
3078

query I rowsort
SELECT DISTINCT + 60 * + + 80
----
4800

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

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

query I rowsort
SELECT 53 * + ( - 17 )
----
-901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-204
SELECT + 30 * + + 22 DIV - CASE + - 55 WHEN 78 + 68 * + MAX( ALL - 29 ) THEN NULL ELSE - COUNT( * ) * - + ( - COUNT( * ) ) END + + COUNT( * )
----
661

skipif mysql # not compatible
query I rowsort label-204
SELECT + 30 * + + 22 / - CASE + - 55 WHEN 78 + 68 * + MAX ( ALL - 29 ) THEN NULL ELSE - COUNT ( * ) * - + ( - COUNT ( * ) ) END + + COUNT ( * )
----
661

query II rowsort
SELECT 44 AS col2, + 17 AS col1
----
44
17

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

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

query I rowsort
SELECT 72 + - + 36
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-208
SELECT ALL - COUNT( * ), - 77 * - 50 AS col0
----
-1
3850

skipif mysql # not compatible
query II rowsort label-208
SELECT ALL - COUNT ( * ), - 77 * - 50 AS col0
----
-1
3850

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT ALL + 43 + + + 68 DIV 33
----
45

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL + 43 + + + 68 / 33
----
45

query I rowsort
SELECT DISTINCT - 88 * 81
----
-7128

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT ( - ( + - 11 ) ) * + COALESCE ( - SUM( DISTINCT 28 ), + + CASE + - 5 WHEN + MIN( 75 ) * 86 * + CASE + 35 WHEN + 64 - - MIN( 92 ) THEN NULL WHEN 52 THEN NULL ELSE 81 + + 73 * - CASE 79 WHEN + 51 THEN + 62 * 69 END END * 80 THEN COUNT( * ) * NULLIF ( + NULLIF ( + 84, 17 ), 58 / + 21 ) WHEN - 97 + 9 * - 31 THEN - 26 * 28 + + 6 WHEN - 64 THEN + 54 END ) + 54
----
-254

skipif mysql # not compatible
query I rowsort label-211
SELECT ( - ( + - 11 ) ) * + COALESCE ( - SUM ( DISTINCT 28 ), + + CASE + - 5 WHEN + MIN ( 75 ) * 86 * + CASE + 35 WHEN + 64 - - MIN ( 92 ) THEN NULL WHEN 52 THEN NULL ELSE 81 + + 73 * - CASE 79 WHEN + 51 THEN + 62 * 69 END END * 80 THEN COUNT ( * ) * NULLIF ( + NULLIF ( + 84, 17 ), 58 / + 21 ) WHEN - 97 + 9 * - 31 THEN - 26 * 28 + + 6 WHEN - 64 THEN + 54 END ) + 54
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT COUNT( * ) * + 17 * - + 56 * + 92 + + CASE + 10 WHEN 41 - - + COUNT( * ) THEN + 46 / + 51 - + + 85 * - 84 * 65 ELSE NULL END + + 39 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-212
SELECT COUNT ( * ) * + 17 * - + 56 * + 92 + + CASE + 10 WHEN 41 - - + COUNT ( * ) THEN + 46 / + 51 - + + 85 * - 84 * 65 ELSE NULL END + + 39 + 4
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-213
SELECT ALL + + 8 DIV 73 DIV 27 + + 74
----
74

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL + + 8 / 73 / 27 + + 74
----
74

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-215
SELECT 66 + - 15 * - + 3 - - + ( + ( - 87 ) ) * - - COUNT( * ) - - 6 DIV 42
----
24

skipif mysql # not compatible
query I rowsort label-215
SELECT 66 + - 15 * - + 3 - - + ( + ( - 87 ) ) * - - COUNT ( * ) - - 6 / 42
----
24

query I rowsort
SELECT DISTINCT 45 * 70 + - 78
----
3072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-217
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) * - + 12 * - + MIN( - + 96 ) * 24 + - 80 + - + 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-217
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) * - + 12 * - + MIN ( - + 96 ) * 24 + - 80 + - + 78 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ( - 92 ) * + MAX( - - 11 ) * 9 + - 25
----
-9133

skipif mysql # not compatible
query I rowsort label-218
SELECT ( - 92 ) * + MAX ( - - 11 ) * 9 + - 25
----
-9133

query II rowsort
SELECT DISTINCT 72 + 20 * + ( - 36 ), + 99 AS col1
----
-648
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-220
SELECT DISTINCT + - 66 * + 52 * 96 * 0 * + 37 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT + - 66 * + 52 * 96 * 0 * + 37 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT - COUNT( ALL - 77 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-221
SELECT - COUNT ( ALL - 77 ) AS col1
----
-1

query I rowsort
SELECT 22 * - 27
----
-594

onlyif mysql # DIV for integer division: 
query I rowsort label-223
SELECT DISTINCT + 0 DIV + 4 * 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + 0 / + 4 * 99 AS col0
----
0

query I rowsort
SELECT + 83 + + + 96
----
179

query I rowsort
SELECT DISTINCT - 31 - + 53
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-226
SELECT ALL 57 DIV - - 89 - - 82 + SUM( + + 34 ) - 66, + 15 DIV + 34 * - + 95 col1
----
50
0

skipif mysql # not compatible
query II rowsort label-226
SELECT ALL 57 / - - 89 - - 82 + SUM ( + + 34 ) - 66, + 15 / + 34 * - + 95 col1
----
50
0

query I rowsort
SELECT 2 * CASE + 41 WHEN - 75 THEN NULL WHEN - + 50 + 71 THEN + + 15 * + 19 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT COUNT( * ) + + + 92 * + 38
----
3497

skipif mysql # not compatible
query I rowsort label-228
SELECT COUNT ( * ) + + + 92 * + 38
----
3497

query I rowsort
SELECT DISTINCT 53 * + ( 19 ) * + 64 + + 49 AS col0
----
64497

query II rowsort
SELECT ALL 88 * - 69 AS col2, + 51 + - - 60 + 6 AS col1
----
-6072
117

query I rowsort
SELECT DISTINCT 17 * + - 22 * 18 AS col2
----
-6732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-232
SELECT + NULLIF ( - 43, - + CASE + 54 WHEN + 98 + + - COUNT( * ) + COUNT( * ) THEN - - 78 * 81 WHEN - 99 THEN + 81 DIV - 74 WHEN + COUNT( * ) * + + CAST( 40 AS SIGNED ) + 11 * + 61 THEN + 30 END ) DIV 13
----
-3

skipif mysql # not compatible
query I rowsort label-232
SELECT + NULLIF ( - 43, - + CASE + 54 WHEN + 98 + + - COUNT ( * ) + COUNT ( * ) THEN - - 78 * 81 WHEN - 99 THEN + 81 / - 74 WHEN + COUNT ( * ) * + + CAST ( 40 AS INTEGER ) + 11 * + 61 THEN + 30 END ) / 13
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-233
SELECT + 52 DIV + COUNT( * ) + - 19
----
33

skipif mysql # not compatible
query I rowsort label-233
SELECT + 52 / + COUNT ( * ) + - 19
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-234
SELECT - 99 * + - 49, COALESCE ( + COUNT( * ), + + 50 * - - 87 + - 46, COUNT( * ) ) AS col1
----
4851
1

skipif mysql # not compatible
query II rowsort label-234
SELECT - 99 * + - 49, COALESCE ( + COUNT ( * ), + + 50 * - - 87 + - 46, COUNT ( * ) ) AS col1
----
4851
1

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT - 16 + - 34 + + - 81 DIV - 57 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-235
SELECT - 16 + - 34 + + - 81 / - 57 AS col1
----
-49

query I rowsort
SELECT ALL ( + 1 ) * + + 69 * + 90 + - 59 + - 39 AS col0
----
6112

query I rowsort
SELECT DISTINCT 45 * + + 16 + + NULLIF ( + 91, + - 98 )
----
811

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-238
SELECT ALL + 5 * - CASE - 27 WHEN ( 26 ) + + 90 + 49 * + 14 * - 13 + 19 + CAST( 34 AS DECIMAL ) + - + 77 + - NULLIF ( + 0, - - 11 ) / - - COUNT( * ) THEN NULL WHEN 79 * + 1 THEN + ( 48 ) * COALESCE ( - 26, - 87 ) ELSE NULL END / - 40 + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + 5 * - CASE - 27 WHEN ( 26 ) + + 90 + 49 * + 14 * - 13 + 19 + CAST ( 34 AS REAL ) + - + 77 + - NULLIF ( + 0, - - 11 ) / - - COUNT ( * ) THEN NULL WHEN 79 * + 1 THEN + ( 48 ) * COALESCE ( - 26, - 87 ) ELSE NULL END / - 40 + + 87
----
NULL

query I rowsort
SELECT DISTINCT + 38 * + 51 + + 11 AS col2
----
1949

onlyif mysql # aggregate syntax: 
query II rowsort label-240
SELECT DISTINCT + 1 * MIN( - 85 ) + + - ( 20 ) + - + 52 * 17 * + 42, + 23 col0
----
-37233
23

skipif mysql # not compatible
query II rowsort label-240
SELECT DISTINCT + 1 * MIN ( - 85 ) + + - ( 20 ) + - + 52 * 17 * + 42, + 23 col0
----
-37233
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT + - ( COUNT( * ) ) * + 48 * - 72 AS col2
----
3456

skipif mysql # not compatible
query I rowsort label-242
SELECT + - ( COUNT ( * ) ) * + 48 * - 72 AS col2
----
3456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-243
SELECT + + 65 * - + 56 * CAST( NULL AS DECIMAL ) + - - ( - + COUNT( * ) ) * - - ( 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-243
SELECT + + 65 * - + 56 * CAST ( NULL AS REAL ) + - - ( - + COUNT ( * ) ) * - - ( 47 )
----
NULL

query I rowsort
SELECT - + 9 * - + 66
----
594

query I rowsort
SELECT DISTINCT + 87 * + + 6 AS col0
----
522

query II rowsort
SELECT 23 * + + 21 * 61 - + 80 + 5 + - 27 * + 48 col0, + 1 AS col0
----
28092
1

query I rowsort
SELECT DISTINCT + + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-248
SELECT - 35 + + 84 col1, 41 * + NULLIF ( 88, - 65 ) * + COUNT( * )
----
49
3608

skipif mysql # not compatible
query II rowsort label-248
SELECT - 35 + + 84 col1, 41 * + NULLIF ( 88, - 65 ) * + COUNT ( * )
----
49
3608

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL - - CASE + - 65 WHEN - 10 THEN NULL WHEN - - 53 THEN NULL WHEN + COALESCE ( COALESCE ( ( 86 ), SUM( - 15 ), 67 ), - COUNT( * ) + - 95, 50 ) + + - 2 + - - ( - 91 ) * 55 THEN 25 ELSE SUM( 56 ) * COUNT( * ) END - ( - COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - - CASE + - 65 WHEN - 10 THEN NULL WHEN - - 53 THEN NULL WHEN + COALESCE ( COALESCE ( ( 86 ), SUM ( - 15 ), 67 ), - COUNT ( * ) + - 95, 50 ) + + - 2 + - - ( - 91 ) * 55 THEN 25 ELSE SUM ( 56 ) * COUNT ( * ) END - ( - COUNT ( * ) )
----
57

query II rowsort
SELECT ALL - ( 9 ) AS col0, 3
----
-9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ALL - 71 * + + ( - + SUM( 46 ) )
----
3266

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - 71 * + + ( - + SUM ( 46 ) )
----
3266

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT - 2 + 9 + + SUM( ALL 48 ) * + ( - 82 ) AS col1
----
-3929

skipif mysql # not compatible
query I rowsort label-252
SELECT - 2 + 9 + + SUM ( ALL 48 ) * + ( - 82 ) AS col1
----
-3929

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL MAX( 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL MAX ( 2 ) AS col0
----
2

query I rowsort
SELECT DISTINCT + 44 * 17 + + 29 * - 57
----
-905

query I rowsort
SELECT + - 33 + + ( + + 46 ) + + 70 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-256
SELECT + + COALESCE ( - 7, - 76, CASE + 55 WHEN + 63 - + + 81 + - 17 THEN - + 41 WHEN + COUNT( * ) - + 44 THEN NULL WHEN + COUNT( * ) DIV - 82 * + 75 DIV 49 THEN NULL ELSE - + 2 END DIV - 76 + ( + 24 ) ) * - 77
----
539

skipif mysql # not compatible
query I rowsort label-256
SELECT + + COALESCE ( - 7, - 76, CASE + 55 WHEN + 63 - + + 81 + - 17 THEN - + 41 WHEN + COUNT ( * ) - + 44 THEN NULL WHEN + COUNT ( * ) / - 82 * + 75 / 49 THEN NULL ELSE - + 2 END / - 76 + ( + 24 ) ) * - 77
----
539

query I rowsort
SELECT ALL + - 88 * + 13 + - 36
----
-1180

query II rowsort
SELECT ALL - ( 54 ), NULLIF ( + 3, 89 ) - 15 AS col0
----
-54
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-259
SELECT - + 47 + - 93 AS col2, + MAX( ALL 53 ) * + - 60 + + + 20 - + COUNT( * )
----
-140
-3161

skipif mysql # not compatible
query II rowsort label-259
SELECT - + 47 + - 93 AS col2, + MAX ( ALL 53 ) * + - 60 + + + 20 - + COUNT ( * )
----
-140
-3161

query I rowsort
SELECT + NULLIF ( + 92, + 58 + - - 52 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-261
SELECT ALL 98, 98 - - 93 * + + 69 + SUM( - 66 ) col1
----
98
6449

skipif mysql # not compatible
query II rowsort label-261
SELECT ALL 98, 98 - - 93 * + + 69 + SUM ( - 66 ) col1
----
98
6449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-262
SELECT ALL - CAST( - 3 AS SIGNED ) * 31
----
93

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL - CAST ( - 3 AS INTEGER ) * 31
----
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT + NULLIF ( + 15, + 53 * COUNT( * ) + - 87 * - 70 - - 81 ) + - 83 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-264
SELECT + NULLIF ( + 15, + 53 * COUNT ( * ) + - 87 * - 70 - - 81 ) + - 83 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT 70 + - - MAX( - 1 ) + + 18
----
87

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT 70 + - - MAX ( - 1 ) + + 18
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT - COUNT( * ) + + 89 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-266
SELECT - COUNT ( * ) + + 89 AS col1
----
88

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

query I rowsort
SELECT ALL 5 + + 43 - - 86
----
134

query I rowsort
SELECT + 11 + - 42 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-270
SELECT 94 AS col2, - MIN( DISTINCT - - 66 ) * 46
----
94
-3036

skipif mysql # not compatible
query II rowsort label-270
SELECT 94 AS col2, - MIN ( DISTINCT - - 66 ) * 46
----
94
-3036

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT + ( + + 85 ) + + - 84 - - 20 - + ( MAX( - 31 ) )
----
52

skipif mysql # not compatible
query I rowsort label-271
SELECT + ( + + 85 ) + + - 84 - - 20 - + ( MAX ( - 31 ) )
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT ALL 41 DIV + 47 + - NULLIF ( + 73, - 64 ) + + 20 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL 41 / + 47 + - NULLIF ( + 73, - 64 ) + + 20 AS col2
----
-53

query I rowsort
SELECT + ( + COALESCE ( - 20, 74 ) ) AS col1
----
-20

query I rowsort
SELECT + 57 + - 21 * 20 * + 97 AS col1
----
-40683

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL MIN( ALL - 28 ) * + - 39 * + 14 AS col1
----
15288

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL MIN ( ALL - 28 ) * + - 39 * + 14 AS col1
----
15288

query I rowsort
SELECT + 33 + + 54
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-277
SELECT + + 39 DIV - + 79 * + COALESCE ( - COUNT( * ), - - 77 ) + - - 56 * - - 94 col0
----
5264

skipif mysql # not compatible
query I rowsort label-277
SELECT + + 39 / - + 79 * + COALESCE ( - COUNT ( * ), - - 77 ) + - - 56 * - - 94 col0
----
5264

query I rowsort
SELECT - 49 * 17 * + 35 AS col1
----
-29155

query II rowsort
SELECT + 7 AS col1, - 49 * 87 + + 23 AS col0
----
7
-4240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-280
SELECT ALL - + COUNT( * ) DIV 24 + + 80
----
80

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - + COUNT ( * ) / 24 + + 80
----
80

query I rowsort
SELECT + + 61 * ( ( - 35 ) ) AS col1
----
-2135

query II rowsort
SELECT + + 59, 74 AS col2
----
59
74

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT + - NULLIF ( - - SUM( 86 ), - ( + + ( + 13 ) ) + + 64 - - 95 / - 65 * - ( - 59 ) ) * MIN( ALL - - 47 ) * - 82 + - 32 + - - MIN( ALL 69 )
----
331481

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT + - NULLIF ( - - SUM ( 86 ), - ( + + ( + 13 ) ) + + 64 - - 95 / - 65 * - ( - 59 ) ) * MIN ( ALL - - 47 ) * - 82 + - 32 + - - MIN ( ALL 69 )
----
331481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-284
SELECT - + 11 + - + NULLIF ( + MAX( + + 95 ), CAST( + 8 AS SIGNED ) + - CAST( - - 7 AS SIGNED ) / - + 49 - - 36 ) AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-284
SELECT - + 11 + - + NULLIF ( + MAX ( + + 95 ), CAST ( + 8 AS INTEGER ) + - CAST ( - - 7 AS INTEGER ) / - + 49 - - 36 ) AS col1
----
-106

query I rowsort
SELECT ALL + 6 * 42 + + 11 + - 35
----
228

query I rowsort
SELECT + 95 * + 10
----
950

query I rowsort
SELECT DISTINCT + - 36 * 94 AS col1
----
-3384

query II rowsort
SELECT - 14, + 77 AS col2
----
-14
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-289
SELECT COALESCE ( CAST( + 61 AS SIGNED ), + 87 + + + COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-289
SELECT COALESCE ( CAST ( + 61 AS INTEGER ), + 87 + + + COUNT ( * ) )
----
61

query I rowsort
SELECT - + 59 + 30 AS col2
----
-29

query I rowsort
SELECT DISTINCT NULLIF ( - 51, - - 38 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT ALL CASE ( - 30 ) WHEN + 71 THEN NULL WHEN 19 * - - 14 + + 48 + AVG ( ALL - 89 ) / + + 44 + 60 THEN NULL WHEN - 8 THEN SUM( DISTINCT + 35 ) / + 86 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT ALL CASE ( - 30 ) WHEN + 71 THEN NULL WHEN 19 * - - 14 + + 48 + AVG ( ALL - 89 ) / + + 44 + 60 THEN NULL WHEN - 8 THEN SUM ( DISTINCT + 35 ) / + 86 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 46 + 72 - - 50
----
168

query I rowsort
SELECT 82 + - 60
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT DISTINCT + 1 + - NULLIF ( + + 4, + + COUNT( - 94 ) + - + 91 + 36 * + 2 ) + + 45, + 88 AS col2
----
42
88

skipif mysql # not compatible
query II rowsort label-295
SELECT DISTINCT + 1 + - NULLIF ( + + 4, + + COUNT ( - 94 ) + - + 91 + 36 * + 2 ) + + 45, + 88 AS col2
----
42
88

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT ALL - 47 + + ( - COALESCE ( - 10, + SUM( 47 ), 1 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-296
SELECT ALL - 47 + + ( - COALESCE ( - 10, + SUM ( 47 ), 1 ) )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-297
SELECT DISTINCT - 29 + + + CASE - NULLIF ( + 53, - + 48 ) WHEN + COUNT( * ) + 44 - + + 87 + + + COUNT( * ) + - ( COUNT( DISTINCT - 72 ) ) - + 75 * 1 - + ( - 51 ) * + 34 / + 95 THEN NULL WHEN - ( - 11 ) * - CAST( NULL AS SIGNED ) THEN 0 - + NULLIF ( ( 82 ), - COUNT( * ) ) * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - 29 + + + CASE - NULLIF ( + 53, - + 48 ) WHEN + COUNT ( * ) + 44 - + + 87 + + + COUNT ( * ) + - ( COUNT ( DISTINCT - 72 ) ) - + 75 * 1 - + ( - 51 ) * + 34 / + 95 THEN NULL WHEN - ( - 11 ) * - CAST ( NULL AS INTEGER ) THEN 0 - + NULLIF ( ( 82 ), - COUNT ( * ) ) * COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-298
SELECT 75 - - CAST( NULL AS SIGNED ) * 11 + + 56 + + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT 75 - - CAST ( NULL AS INTEGER ) * 11 + + 56 + + + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT + 2 + COUNT( * ) * COALESCE ( + - 74, + - 12, - 26 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT + 2 + COUNT ( * ) * COALESCE ( + - 74, + - 12, - 26 ) AS col0
----
-72

query I rowsort
SELECT ALL + 84 + 50
----
134

query I rowsort
SELECT DISTINCT - 29 + - 27 AS col1
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-302
SELECT ALL 51 + - 54 DIV 47 * - - 60 AS col1, - 24
----
-9
-24

skipif mysql # not compatible
query II rowsort label-302
SELECT ALL 51 + - 54 / 47 * - - 60 AS col1, - 24
----
-9
-24

query I rowsort
SELECT NULLIF ( 38, + 20 ) * + 6
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL 15 - - 23 + + COUNT( * ) + + - 31 * + 42 AS col1
----
-1263

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL 15 - - 23 + + COUNT ( * ) + + - 31 * + 42 AS col1
----
-1263

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-306
SELECT COUNT( * ) * COUNT( DISTINCT + - 72 ) * ( + COUNT( * ) ) DIV - 91 DIV - COUNT( * ) + + + COUNT( * ) - + 2 + + ( - 42 ) * + 59 AS col1
----
-2479

skipif mysql # not compatible
query I rowsort label-306
SELECT COUNT ( * ) * COUNT ( DISTINCT + - 72 ) * ( + COUNT ( * ) ) / - 91 / - COUNT ( * ) + + + COUNT ( * ) - + 2 + + ( - 42 ) * + 59 AS col1
----
-2479

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT MIN( ALL 48 )
----
48

skipif mysql # not compatible
query I rowsort label-307
SELECT MIN ( ALL 48 )
----
48

query II rowsort
SELECT + ( - + 57 ), 89 + - 52 - + ( 76 ) * 82 AS col0
----
-57
-6195

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT + ( + ( + COUNT( * ) ) ) + - - ( - NULLIF ( 71, - 74 ) ) + + + 29 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-309
SELECT + ( + ( + COUNT ( * ) ) ) + - - ( - NULLIF ( 71, - 74 ) ) + + + 29 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-310
SELECT - 67 * - 20 * + - COUNT( * ) + + 67 AS col0, - ( - COALESCE ( - 36, - 93 - CAST( NULL AS SIGNED ), + COUNT( * ) - - - 98 * + 0 ) ) col2
----
-1273
-36

skipif mysql # not compatible
query II rowsort label-310
SELECT - 67 * - 20 * + - COUNT ( * ) + + 67 AS col0, - ( - COALESCE ( - 36, - 93 - CAST ( NULL AS INTEGER ), + COUNT ( * ) - - - 98 * + 0 ) ) col2
----
-1273
-36

query I rowsort
SELECT + NULLIF ( 18, - 50 ) AS col0
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-313
SELECT + 33 + + - 32 - - CASE - COUNT( * ) WHEN + COUNT( * ) / + 3 * - + 62 + - 54 + + - CAST( NULL AS SIGNED ) THEN + NULLIF ( + - 89, - + 43 ) + + 87 ELSE + - COALESCE ( + - COUNT( * ), COUNT( * ) + + 57 * + 14, - + ( - 90 ) ) + - ( + CASE SUM( + 59 ) WHEN 14 + - 58 THEN NULL ELSE + CASE 56 WHEN - 0 THEN - 12 WHEN - 3 * - CAST( NULL AS SIGNED ) + 50 THEN 36 * + 49 + ( - 93 ) END END ) * - 89 END * - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-313
SELECT + 33 + + - 32 - - CASE - COUNT ( * ) WHEN + COUNT ( * ) / + 3 * - + 62 + - 54 + + - CAST ( NULL AS INTEGER ) THEN + NULLIF ( + - 89, - + 43 ) + + 87 ELSE + - COALESCE ( + - COUNT ( * ), COUNT ( * ) + + 57 * + 14, - + ( - 90 ) ) + - ( + CASE SUM ( + 59 ) WHEN 14 + - 58 THEN NULL ELSE + CASE 56 WHEN - 0 THEN - 12 WHEN - 3 * - CAST ( NULL AS INTEGER ) + 50 THEN 36 * + 49 + ( - 93 ) END END ) * - 89 END * - 40 AS col1
----
NULL

query I rowsort
SELECT ALL - 50 + 48 + 36 * - + NULLIF ( - 53, - 54 ) AS col2
----
1906

query I rowsort
SELECT ALL - 14 + 88 AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT ALL + 60 + + 90 DIV - - 72
----
61

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + 60 + + 90 / - - 72
----
61

query I rowsort
SELECT 76 - + + 41 + - 75 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-318
SELECT CAST( NULL AS SIGNED ) * 41 * + - CAST( NULL AS DECIMAL ) * + + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT CAST ( NULL AS INTEGER ) * 41 * + - CAST ( NULL AS REAL ) * + + 27 AS col2
----
NULL

query I rowsort
SELECT 82 * - 96 AS col0
----
-7872

query I rowsort
SELECT + 2 * - 1 * + - 95 - 21 + - 51 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL + 15 + - + ( - 90 ) * - 90 - COUNT( - 36 ) - - - COUNT( * ) AS col0
----
-8087

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL + 15 + - + ( - 90 ) * - 90 - COUNT ( - 36 ) - - - COUNT ( * ) AS col0
----
-8087

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT 72 * COUNT( * ) * - 95
----
-6840

skipif mysql # not compatible
query I rowsort label-322
SELECT 72 * COUNT ( * ) * - 95
----
-6840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-323
SELECT ( - CAST( COUNT( - 33 ) AS SIGNED ) ) + - 11 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-323
SELECT ( - CAST ( COUNT ( - 33 ) AS INTEGER ) ) + - 11 AS col1
----
-12

query II rowsort
SELECT ALL 62, - 19 + 30 AS col2
----
62
11

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT ALL - NULLIF ( + 39, COUNT( * ) ) + + COALESCE ( - 71, + 19 ) + - 86 + + 33 AS col1
----
-163

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL - NULLIF ( + 39, COUNT ( * ) ) + + COALESCE ( - 71, + 19 ) + - 86 + + 33 AS col1
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL SUM( DISTINCT - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL SUM ( DISTINCT - 23 )
----
-23

query I rowsort
SELECT 10 * + 81
----
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT 81 + + COALESCE ( 86, - + CASE - 89 WHEN - AVG ( ALL 79 ) + + - ( - 61 ) - 23 * + + 88 + + - 8 * - 13 + + 46 THEN + + 4 + - 59 WHEN + - 54 THEN NULL END DIV + - 44 * + 53 + + - MIN( DISTINCT 65 ) - - 98, + 97 * ( NULLIF ( - 47, + ( 89 ) ) * + COUNT( * ) ) + 15 ) + + 88 * 17 AS col0
----
1663

skipif mysql # not compatible
query I rowsort label-328
SELECT 81 + + COALESCE ( 86, - + CASE - 89 WHEN - AVG ( ALL 79 ) + + - ( - 61 ) - 23 * + + 88 + + - 8 * - 13 + + 46 THEN + + 4 + - 59 WHEN + - 54 THEN NULL END / + - 44 * + 53 + + - MIN ( DISTINCT 65 ) - - 98, + 97 * ( NULLIF ( - 47, + ( 89 ) ) * + COUNT ( * ) ) + 15 ) + + 88 * 17 AS col0
----
1663

query I rowsort
SELECT 97 + + 57
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT 35 * - MIN( DISTINCT + + 46 )
----
-1610

skipif mysql # not compatible
query I rowsort label-330
SELECT 35 * - MIN ( DISTINCT + + 46 )
----
-1610

query I rowsort
SELECT 6 + + - 65 * + 8 AS col2
----
-514

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT 17 - + ( MIN( DISTINCT + 80 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-332
SELECT 17 - + ( MIN ( DISTINCT + 80 ) )
----
-63

query I rowsort
SELECT DISTINCT - 0 * + 10 AS col0
----
0

query I rowsort
SELECT + 75 + 32
----
107

query I rowsort
SELECT ALL - - 27 col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-336
SELECT 97 DIV - + 44 DIV + - COUNT( * ), ( - 0 ) AS col1
----
2
0

skipif mysql # not compatible
query II rowsort label-336
SELECT 97 / - + 44 / + - COUNT ( * ), ( - 0 ) AS col1
----
2
0

query I rowsort
SELECT DISTINCT + - 57 * + + 13
----
-741

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-338
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT - COUNT( * ) + + - NULLIF ( + 90, 34 ) * + - 53 * + 23 AS col1
----
109709

skipif mysql # not compatible
query I rowsort label-339
SELECT - COUNT ( * ) + + - NULLIF ( + 90, 34 ) * + - 53 * + 23 AS col1
----
109709

query I rowsort
SELECT 45 * - 12 * + + 54 - - 96 AS col2
----
-29064

query I rowsort
SELECT ( 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT - 2 * - 92 + MAX( ALL 72 ) * + 41
----
3136

skipif mysql # not compatible
query I rowsort label-342
SELECT - 2 * - 92 + MAX ( ALL 72 ) * + 41
----
3136

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL + + 71 * 59 + - - COUNT( * ) + - + 10
----
4180

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + + 71 * 59 + - - COUNT ( * ) + - + 10
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL SUM( - + COALESCE ( - 63, - - 38 ) ) + 48 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL SUM ( - + COALESCE ( - 63, - - 38 ) ) + 48 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL COUNT( 3 ) + 94 * + 33 + - + COUNT( * )
----
3102

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL COUNT ( 3 ) + 94 * + 33 + - + COUNT ( * )
----
3102

query I rowsort
SELECT + 40 + + 48 AS col0
----
88

query II rowsort
SELECT 49 AS col2, + 65
----
49
65

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT + COUNT( * ) * + 44 * + - 67
----
-2948

skipif mysql # not compatible
query I rowsort label-351
SELECT + COUNT ( * ) * + 44 * + - 67
----
-2948

query I rowsort
SELECT ALL 88 + + 48
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT + COUNT( DISTINCT - 13 ) * + 65 * ( - 46 ) AS col2
----
-2990

skipif mysql # not compatible
query I rowsort label-353
SELECT + COUNT ( DISTINCT - 13 ) * + 65 * ( - 46 ) AS col2
----
-2990

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT + 98 * - 50 + - - COUNT( + 56 )
----
-4899

skipif mysql # not compatible
query I rowsort label-354
SELECT + 98 * - 50 + - - COUNT ( + 56 )
----
-4899

query II rowsort
SELECT 66, 2 AS col0
----
66
2

query I rowsort
SELECT + 88 + + 3
----
91

query I rowsort
SELECT ALL 52 + + ( 33 )
----
85

query I rowsort
SELECT ALL - 29 - - 24 - 80
----
-85

query I rowsort
SELECT - NULLIF ( + 21, + ( - - 1 ) + - 28 ) AS col1
----
-21

query I rowsort
SELECT + 58 + + 94 * - CASE ( + 19 ) WHEN + 84 THEN + 41 END * - 91
----
NULL

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

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

query II rowsort
SELECT DISTINCT 23, - 92 + + - 0 * + - 77 - 6 col2
----
23
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-363
SELECT - 10 + - - 62 * MIN( - 99 ) AS col0, 16 col0
----
-6148
16

skipif mysql # not compatible
query II rowsort label-363
SELECT - 10 + - - 62 * MIN ( - 99 ) AS col0, 16 col0
----
-6148
16

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT - COALESCE ( - 62, 1, - NULLIF ( + ( COUNT( * ) ), 13 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-364
SELECT - COALESCE ( - 62, 1, - NULLIF ( + ( COUNT ( * ) ), 13 ) ) AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-365
SELECT + 80 DIV + MIN( ALL 60 )
----
1

skipif mysql # not compatible
query I rowsort label-365
SELECT + 80 / + MIN ( ALL 60 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-366
SELECT - COUNT( ALL - CAST( + 82 AS DECIMAL ) ) * + 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-366
SELECT - COUNT ( ALL - CAST ( + 82 AS REAL ) ) * + 47 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT - CASE 22 WHEN NULLIF ( + SUM( DISTINCT - 80 ), - COUNT( * ) ) / - 45 THEN + 88 / - - 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT - CASE 22 WHEN NULLIF ( + SUM ( DISTINCT - 80 ), - COUNT ( * ) ) / - 45 THEN + 88 / - - 0 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT - COUNT( * ) + + 69 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-368
SELECT - COUNT ( * ) + + 69 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT COUNT( + 73 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT COUNT ( + 73 ) col2
----
1

query I rowsort
SELECT ALL NULLIF ( 6, - 62 * - - 74 ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-371
SELECT COALESCE ( + 20, COUNT( * ), + 16 + - 35 + + 54, - 89 + + 91 + - COALESCE ( CAST( + 48 AS SIGNED ), - - 52 ) + - - 59 + + - 65 + + 65 - - 42 * + SUM( + COALESCE ( + 50, 27 ) ) )
----
20

skipif mysql # not compatible
query I rowsort label-371
SELECT COALESCE ( + 20, COUNT ( * ), + 16 + - 35 + + 54, - 89 + + 91 + - COALESCE ( CAST ( + 48 AS INTEGER ), - - 52 ) + - - 59 + + - 65 + + 65 - - 42 * + SUM ( + COALESCE ( + 50, 27 ) ) )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-372
SELECT ALL - COUNT( * ), + 83 * 88 AS col0
----
-1
7304

skipif mysql # not compatible
query II rowsort label-372
SELECT ALL - COUNT ( * ), + 83 * 88 AS col0
----
-1
7304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-373
SELECT - 86 * 85 * - ( - CASE - + ( - 1 ) WHEN - + MAX( DISTINCT + 99 ) THEN ( NULLIF ( + - 44, - 87 / - 35 + COUNT( + - ( + + NULLIF ( + 1, 38 - + NULLIF ( 85, - 41 ) ) ) ) + 4 + + 20 ) ) * 28 END ) * - CAST( + 1 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-373
SELECT - 86 * 85 * - ( - CASE - + ( - 1 ) WHEN - + MAX ( DISTINCT + 99 ) THEN ( NULLIF ( + - 44, - 87 / - 35 + COUNT ( + - ( + + NULLIF ( + 1, 38 - + NULLIF ( 85, - 41 ) ) ) ) + 4 + + 20 ) ) * 28 END ) * - CAST ( + 1 AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 48, ( 21 ) col0
----
-48
21

query II rowsort
SELECT DISTINCT + 86 AS col1, 3 + - 92
----
86
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT + - SUM( - - 64 ) * - SUM( ALL + 24 ) * - 45
----
-69120

skipif mysql # not compatible
query I rowsort label-376
SELECT + - SUM ( - - 64 ) * - SUM ( ALL + 24 ) * - 45
----
-69120

query II rowsort
SELECT - - 49 * + + 27, - COALESCE ( - - 85, 54 + - - 53 * - 43 ) col0
----
1323
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT - + 47 * CAST( + NULLIF ( + + CAST( + - CASE 42 WHEN COUNT( * ) THEN + 1 ELSE NULL END AS SIGNED ), 45 ) AS SIGNED ) - - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT - + 47 * CAST ( + NULLIF ( + + CAST ( + - CASE 42 WHEN COUNT ( * ) THEN + 1 ELSE NULL END AS INTEGER ), 45 ) AS INTEGER ) - - - 72
----
NULL

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

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

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

query I rowsort
SELECT ALL 79 * - 78 + + - 71 * 4 * + 14 + + 19
----
-10119

query I rowsort
SELECT ALL + + CASE 17 WHEN - + 12 THEN - 13 END * + 41 / - 88 / 35 + 2 AS col1
----
NULL

query I rowsort
SELECT ALL 67 * + 80 + + - ( + - 59 ) - - 46 * 77 * 93 + + 75 AS col0
----
334900

onlyif mysql # aggregate syntax: 
query III rowsort label-384
SELECT + 55 AS col1, 45 - + 9 * - 96 AS col0, - COUNT( * ) * + ( + 64 ) * + 53 + - COUNT( * ) AS col2
----
55
909
-3393

skipif mysql # not compatible
query III rowsort label-384
SELECT + 55 AS col1, 45 - + 9 * - 96 AS col0, - COUNT ( * ) * + ( + 64 ) * + 53 + - COUNT ( * ) AS col2
----
55
909
-3393

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

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

query I rowsort
SELECT + ( - 19 ) * - 97 * + 93 + 40 - + 95 AS col0
----
171344

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

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

query I rowsort
SELECT - 47 + COALESCE ( - + 81, + 95 + 31 )
----
-128

query I rowsort
SELECT DISTINCT + NULLIF ( - 82, - + 94 + + + 37 )
----
-82

query I rowsort
SELECT ALL + 25 * - - 11
----
275

query I rowsort
SELECT + 17 + - 38 * - 49 AS col2
----
1879

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

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT ALL COUNT( ALL 72 ) * + 14 * 7
----
98

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL COUNT ( ALL 72 ) * + 14 * 7
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT - ( 11 ) * + 67 + 24 * - MAX( DISTINCT - 9 ) AS col0
----
-521

skipif mysql # not compatible
query I rowsort label-394
SELECT - ( 11 ) * + 67 + 24 * - MAX ( DISTINCT - 9 ) AS col0
----
-521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-395
SELECT + 10 * 78 * + COUNT( * ) DIV + COUNT( * ) AS col2
----
780

skipif mysql # not compatible
query I rowsort label-395
SELECT + 10 * 78 * + COUNT ( * ) / + COUNT ( * ) AS col2
----
780

query I rowsort
SELECT - NULLIF ( 85, - 28 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT MAX( + + 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-397
SELECT MAX ( + + 76 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT MAX( 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-398
SELECT MAX ( 68 ) AS col2
----
68

query I rowsort
SELECT + 57 + - 22 AS col0
----
35

query I rowsort
SELECT + 74 * + 43
----
3182

query I rowsort
SELECT ALL 0 * - 57 + + 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT + - ( - - SUM( ALL + - 96 ) ) - + 67
----
29

skipif mysql # not compatible
query I rowsort label-402
SELECT + - ( - - SUM ( ALL + - 96 ) ) - + 67
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL + ( - - 73 ) * SUM( ALL - + 79 ) AS col0
----
-5767

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL + ( - - 73 ) * SUM ( ALL - + 79 ) AS col0
----
-5767

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT + + 84 DIV ( - 95 ) + - - 2
----
2

skipif mysql # not compatible
query I rowsort label-405
SELECT + + 84 / ( - 95 ) + - - 2
----
2

query II rowsort
SELECT + 46 + - 33 AS col0, 29 AS col0
----
13
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-407
SELECT + 59 + - - 50 - + CAST( + 71 AS SIGNED ) * - 78 AS col1
----
5647

skipif mysql # not compatible
query I rowsort label-407
SELECT + 59 + - - 50 - + CAST ( + 71 AS INTEGER ) * - 78 AS col1
----
5647

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT + 73 + - SUM( 65 )
----
8

skipif mysql # not compatible
query I rowsort label-408
SELECT + 73 + - SUM ( 65 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT ALL 14 DIV - - 85 + + 45 + - 23 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL 14 / - - 85 + + 45 + - 23 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT + + COUNT( - 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-410
SELECT + + COUNT ( - 74 ) AS col0
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT DISTINCT 74 + + ( + 16 ) + + 55 DIV 46 * - 11 + 75 + + 88
----
242

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT 74 + + ( + 16 ) + + 55 / 46 * - 11 + 75 + + 88
----
242

onlyif mysql # DIV for integer division: 
query I rowsort label-413
SELECT + 43 * + + 61 + - - 47 DIV - - 54 + 50
----
2673

skipif mysql # not compatible
query I rowsort label-413
SELECT + 43 * + + 61 + - - 47 / - - 54 + 50
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT - 62 * - 71 + + 40 + - + COUNT( - 99 ) AS col2
----
4441

skipif mysql # not compatible
query I rowsort label-414
SELECT - 62 * - 71 + + 40 + - + COUNT ( - 99 ) AS col2
----
4441

query I rowsort
SELECT + 56 * + + NULLIF ( - 20, - - 71 + - + 40 ) * 9 * + 87 + + 26
----
-876934

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

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

query I rowsort
SELECT ALL 77 - + 8
----
69

query II rowsort
SELECT 10 col1, 40 * + + 87 AS col2
----
10
3480

query II rowsort
SELECT + 46 AS col0, 71 * 82
----
46
5822

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

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

query I rowsort
SELECT 1 * 69
----
69

query II rowsort
SELECT + 11 AS col2, 31 AS col0
----
11
31

onlyif mysql # DIV for integer division: 
query I rowsort label-423
SELECT 90 DIV + 29
----
3

skipif mysql # not compatible
query I rowsort label-423
SELECT 90 / + 29
----
3

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

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

query I rowsort
SELECT 0 * + 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-426
SELECT 16 + - 6 DIV - ( - - 6 ) * + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-426
SELECT 16 + - 6 / - ( - - 6 ) * + - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT COUNT( * ) * - MAX( DISTINCT + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-427
SELECT COUNT ( * ) * - MAX ( DISTINCT + 63 )
----
-63

query I rowsort
SELECT 41 + + 60
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-429
SELECT DISTINCT 39 AS col0, - NULLIF ( + + COALESCE ( - 18, - 84 * - 70 - - 89 + COUNT( * ) ), + + 27 - + 24 ) * + 45 + + 42 + - 10
----
39
842

skipif mysql # not compatible
query II rowsort label-429
SELECT DISTINCT 39 AS col0, - NULLIF ( + + COALESCE ( - 18, - 84 * - 70 - - 89 + COUNT ( * ) ), + + 27 - + 24 ) * + 45 + + 42 + - 10
----
39
842

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT 51 * + 6 - CASE - - COUNT( * ) WHEN - - 44 * - + 22 + - 79 + + - 37 THEN + 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT 51 * + 6 - CASE - - COUNT ( * ) WHEN - - 44 * - + 22 + - 79 + + - 37 THEN + 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL - MIN( 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - MIN ( 55 ) AS col0
----
-55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL - 16 + + ( 76 ) + - COUNT( * ) * + - 19 * - + 8 + 48 * + 94
----
4420

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - 16 + + ( 76 ) + - COUNT ( * ) * + - 19 * - + 8 + 48 * + 94
----
4420

query I rowsort
SELECT ALL - 36 + NULLIF ( + 42, + AVG ( 34 ) ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-435
SELECT - COALESCE ( - 16, + 75 * + - 50 * + 35 - + - 24, + - 35 * MIN( + + 91 ) * - 95 DIV - - 5 + 14 - + - 25 )
----
16

skipif mysql # not compatible
query I rowsort label-435
SELECT - COALESCE ( - 16, + 75 * + - 50 * + 35 - + - 24, + - 35 * MIN ( + + 91 ) * - 95 / - - 5 + 14 - + - 25 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-436
SELECT ALL - 67 + + 80 + CAST( + - COUNT( * ) AS SIGNED ) + + 41 * + 11 col1
----
463

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL - 67 + + 80 + CAST ( + - COUNT ( * ) AS INTEGER ) + + 41 * + 11 col1
----
463

query I rowsort
SELECT - ( - ( - 36 ) ) * + - 40 AS col0
----
1440

query II rowsort
SELECT - 17, + 53 AS col2
----
-17
53

query I rowsort
SELECT ALL 63 + + 36 * 96 AS col2
----
3519

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT 89 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-440
SELECT 89 / - 32
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT - ( - 31 ) * 55 + + CASE - CAST( + 68 AS SIGNED ) WHEN + + 34 THEN - - 2 * - MIN( DISTINCT - ( - 0 ) ) / 88 - - 56 + - + 0 + + COUNT( * ) + + COUNT( * ) + + 57 * + 56 * CASE + 67 WHEN 41 * 17 + 35 THEN - 24 WHEN + ( COALESCE ( + 58, 94 * COUNT( * ) + 72 * - 31 ) ) + + 4 THEN 2 * - ( 31 ) + 15 ELSE NULL END / - 60 + 86 WHEN - 54 THEN COALESCE ( + 95, 67, 6 ) + + COUNT( * ) ELSE NULL END + COUNT( * ) / 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT - ( - 31 ) * 55 + + CASE - CAST ( + 68 AS INTEGER ) WHEN + + 34 THEN - - 2 * - MIN ( DISTINCT - ( - 0 ) ) / 88 - - 56 + - + 0 + + COUNT ( * ) + + COUNT ( * ) + + 57 * + 56 * CASE + 67 WHEN 41 * 17 + 35 THEN - 24 WHEN + ( COALESCE ( + 58, 94 * COUNT ( * ) + 72 * - 31 ) ) + + 4 THEN 2 * - ( 31 ) + 15 ELSE NULL END / - 60 + 86 WHEN - 54 THEN COALESCE ( + 95, 67, 6 ) + + COUNT ( * ) ELSE NULL END + COUNT ( * ) / 25 AS col2
----
NULL

query II rowsort
SELECT 55 AS col0, + 23 + - 18
----
55
5

query I rowsort
SELECT 82 * 13 AS col0
----
1066

query I rowsort
SELECT ALL - 40 - - 79
----
39

query I rowsort
SELECT DISTINCT 47 * - + 5 AS col0
----
-235

onlyif mysql # DIV for integer division: 
query II rowsort label-446
SELECT DISTINCT - + 52, 95 DIV + 92 AS col2
----
-52
1

skipif mysql # not compatible
query II rowsort label-446
SELECT DISTINCT - + 52, 95 / + 92 AS col2
----
-52
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-447
SELECT CAST( + ( + 67 ) AS SIGNED ) * 24 * + 94 * - 2
----
-302304

skipif mysql # not compatible
query I rowsort label-447
SELECT CAST ( + ( + 67 ) AS INTEGER ) * 24 * + 94 * - 2
----
-302304

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT DISTINCT 71 * + 65 * + - 83 * COUNT( + + 93 ) AS col0
----
-383045

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT 71 * + 65 * + - 83 * COUNT ( + + 93 ) AS col0
----
-383045

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT DISTINCT - MIN( - - ( - - 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT - MIN ( - - ( - - 7 ) )
----
-7

query II rowsort
SELECT 34 * 51 - + 63 * + 93 AS col2, + 34 AS col2
----
-4125
34

query I rowsort
SELECT 81 * + 50 AS col1
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT 36 * + 44 * + - COUNT( * ) * + 47 AS col2
----
-74448

skipif mysql # not compatible
query I rowsort label-452
SELECT 36 * + 44 * + - COUNT ( * ) * + 47 AS col2
----
-74448

query I rowsort
SELECT 6 * - 4 * + 50 AS col2
----
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-454
SELECT DISTINCT 22 DIV - + COALESCE ( COUNT( * ), - 61, 64 * 14 + - + 21 + + + CAST( NULL AS SIGNED ), + 38 ) AS col0, + 81 AS col2
----
-22
81

skipif mysql # not compatible
query II rowsort label-454
SELECT DISTINCT 22 / - + COALESCE ( COUNT ( * ), - 61, 64 * 14 + - + 21 + + + CAST ( NULL AS INTEGER ), + 38 ) AS col0, + 81 AS col2
----
-22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT ALL MAX( DISTINCT + 73 ) + + 82
----
155

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL MAX ( DISTINCT + 73 ) + + 82
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT 25 DIV + - 4 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-456
SELECT 25 / + - 4 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-457
SELECT ALL 57 + - 40 - - 74 - - CASE COUNT( * ) WHEN 98 THEN NULL ELSE COUNT( * ) DIV - + ( - 17 ) - - - 41 + + NULLIF ( - 92, + - 97 - - 86 + + CAST( NULL AS SIGNED ) ) + ( COUNT( * ) ) END * + - ( - - 27 ), ( 84 ) AS col0
----
3655
84

skipif mysql # not compatible
query II rowsort label-457
SELECT ALL 57 + - 40 - - 74 - - CASE COUNT ( * ) WHEN 98 THEN NULL ELSE COUNT ( * ) / - + ( - 17 ) - - - 41 + + NULLIF ( - 92, + - 97 - - 86 + + CAST ( NULL AS INTEGER ) ) + ( COUNT ( * ) ) END * + - ( - - 27 ), ( 84 ) AS col0
----
3655
84

query I rowsort
SELECT ALL + 63 + + 41
----
104

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

skipif mysql # not compatible
query I rowsort label-459
SELECT COUNT ( * ) * - 15 / - - 84 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT 51 DIV 14 * 78
----
234

skipif mysql # not compatible
query I rowsort label-460
SELECT 51 / 14 * 78
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT COUNT( + + 78 ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-461
SELECT COUNT ( + + 78 ) + - 18
----
-17

query II rowsort
SELECT ALL + 31 + + - 74 col0, + 22 AS col1
----
-43
22

query I rowsort
SELECT 97 - NULLIF ( - 79, 83 ) + + 22
----
198

query I rowsort
SELECT - 19 * + 31 * - 29
----
17081

query I rowsort
SELECT DISTINCT - 40 + + - 85
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-466
SELECT DISTINCT + 29 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + 29 / + 61
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT DISTINCT - 37 + + - 96 * - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT - 37 + + - 96 * - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT - NULLIF ( + - NULLIF ( - + 5, + NULLIF ( - - 52, + - COUNT( * ) ) * - COUNT( + 18 ) / + 99 - - 86 ), - - 32 ) + - 71
----
-76

skipif mysql # not compatible
query I rowsort label-469
SELECT - NULLIF ( + - NULLIF ( - + 5, + NULLIF ( - - 52, + - COUNT ( * ) ) * - COUNT ( + 18 ) / + 99 - - 86 ), - - 32 ) + - 71
----
-76

query I rowsort
SELECT ALL - + 43 - - ( - 55 )
----
-98

query I rowsort
SELECT - - 24 + 41
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT + - 44 * + - 53 * - COUNT( * ) * 17 AS col0
----
-39644

skipif mysql # not compatible
query I rowsort label-472
SELECT + - 44 * + - 53 * - COUNT ( * ) * 17 AS col0
----
-39644

query I rowsort
SELECT + + ( + 27 ) + 61 AS col2
----
88

query I rowsort
SELECT + 17 + + 72
----
89

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

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL 23 / - + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-476
SELECT + COUNT ( DISTINCT 13 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT DISTINCT + 48 * COUNT( * ) * - 44 + - COUNT( * )
----
-2113

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT + 48 * COUNT ( * ) * - 44 + - COUNT ( * )
----
-2113

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT DISTINCT + COUNT( * ) * - 30 + + 38 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT + COUNT ( * ) * - 30 + + 38 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-479
SELECT + CASE + COUNT( - CAST( - 67 AS SIGNED ) ) WHEN - + 1 * - CAST( NULL AS SIGNED ) + ( + COUNT( * ) ) + + 18 THEN + 72 WHEN + - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-479
SELECT + CASE + COUNT ( - CAST ( - 67 AS INTEGER ) ) WHEN - + 1 * - CAST ( NULL AS INTEGER ) + ( + COUNT ( * ) ) + + 18 THEN + 72 WHEN + - COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT - 80 * - 43 * + 34 col2
----
116960

onlyif mysql # aggregate syntax: 
query II rowsort label-481
SELECT COUNT( * ), 44 + + + 64 AS col0
----
1
108

skipif mysql # not compatible
query II rowsort label-481
SELECT COUNT ( * ), 44 + + + 64 AS col0
----
1
108

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT - 0 * - 95 + - 98 + 68 * - COUNT( * )
----
-166

skipif mysql # not compatible
query I rowsort label-483
SELECT - 0 * - 95 + - 98 + 68 * - COUNT ( * )
----
-166

query I rowsort
SELECT + + 22 * 19
----
418

query I rowsort
SELECT ALL - - 20 * - + 17 AS col0
----
-340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-486
SELECT ALL + - 85 * - 81 * + 38 * - - SUM( + - 47 ) + + 5 DIV + 72 + - 49 AS col0
----
-12296659

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + - 85 * - 81 * + 38 * - - SUM ( + - 47 ) + + 5 / + 72 + - 49 AS col0
----
-12296659

query I rowsort
SELECT ALL - 41 + 16 AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-488
SELECT ALL 67 AS col0, + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
67
-1

skipif mysql # not compatible
query II rowsort label-488
SELECT ALL 67 AS col0, + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
67
-1

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

query II rowsort
SELECT - 68 AS col0, 59 col2
----
-68
59

query I rowsort
SELECT - + 64 + + - 68 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT + - 95 * - 13 + MIN( + - 11 )
----
1224

skipif mysql # not compatible
query I rowsort label-492
SELECT + - 95 * - 13 + MIN ( + - 11 )
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT - - CASE + + COUNT( * ) WHEN + + 8 THEN NULL ELSE ( + 43 ) END
----
43

skipif mysql # not compatible
query I rowsort label-493
SELECT - - CASE + + COUNT ( * ) WHEN + + 8 THEN NULL ELSE ( + 43 ) END
----
43

query I rowsort
SELECT - 98 + 13
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT DISTINCT MAX( + - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT MAX ( + - 33 ) AS col2
----
-33

query I rowsort
SELECT ALL + 34 * - 40 * + 22 AS col0
----
-29920

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT DISTINCT - - 74 - 84 - 92 * + ( COUNT( + 35 ) ) * - 43
----
3946

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - - 74 - 84 - 92 * + ( COUNT ( + 35 ) ) * - 43
----
3946

query I rowsort
SELECT ALL ( - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL - MIN( - 73 ) * COUNT( * ) + + COALESCE ( + + 37, 28, + 38 )
----
110

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - MIN ( - 73 ) * COUNT ( * ) + + COALESCE ( + + 37, 28, + 38 )
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-500
SELECT - MIN( ALL 42 ) * - CASE + 44 WHEN + + 87 + 33 + - AVG ( ALL + + 6 ) * + + 63 * - AVG ( + + 6 ) THEN NULL ELSE - 33 * 29 DIV + 29 END * - - 22
----
-30492

skipif mysql # not compatible
query I rowsort label-500
SELECT - MIN ( ALL 42 ) * - CASE + 44 WHEN + + 87 + 33 + - AVG ( ALL + + 6 ) * + + 63 * - AVG ( + + 6 ) THEN NULL ELSE - 33 * 29 / + 29 END * - - 22
----
-30492

query I rowsort
SELECT + 11 * - 14
----
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT CAST( 25 AS SIGNED ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-502
SELECT CAST ( 25 AS INTEGER ) AS col1
----
25

query I rowsort
SELECT ALL + 80 * - - 33 AS col1
----
2640

onlyif mysql # DIV for integer division: 
query I rowsort label-504
SELECT DISTINCT 46 DIV - - 84 + 2
----
2

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT 46 / - - 84 + 2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-505
SELECT ALL 39 DIV + + 86 + 20 * - COUNT( * ) AS col1, 92
----
-20
92

skipif mysql # not compatible
query II rowsort label-505
SELECT ALL 39 / + + 86 + 20 * - COUNT ( * ) AS col1, 92
----
-20
92

query II rowsort
SELECT + 68, - 41 AS col2
----
68
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-507
SELECT 8 * - - 51 DIV - COUNT( * ) - - 83 AS col2
----
-325

skipif mysql # not compatible
query I rowsort label-507
SELECT 8 * - - 51 / - COUNT ( * ) - - 83 AS col2
----
-325

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-509
SELECT DISTINCT - 89 DIV 95 + + CAST( - 63 AS SIGNED ), 88 * + CAST( - + 58 AS SIGNED ) AS col2
----
-63
-5104

skipif mysql # not compatible
query II rowsort label-509
SELECT DISTINCT - 89 / 95 + + CAST ( - 63 AS INTEGER ), 88 * + CAST ( - + 58 AS INTEGER ) AS col2
----
-63
-5104

query I rowsort
SELECT - 92 * + - 71
----
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT + 57 * + COUNT( DISTINCT - - 74 )
----
57

skipif mysql # not compatible
query I rowsort label-511
SELECT + 57 * + COUNT ( DISTINCT - - 74 )
----
57

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

query I rowsort
SELECT ALL ( + 79 ) - + 79 + + - 90 col0
----
-90

query I rowsort
SELECT DISTINCT + 12 * + 36 * - 50
----
-21600

query II rowsort
SELECT ALL - 59 AS col1, - 61
----
-59
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT - 51, + NULLIF ( + 99, + - 33 + - 39 + - COUNT( * ) / + 86 * 86 * 77 + + 61 * + COUNT( * ) * 23 ) AS col0
----
-51
99

skipif mysql # not compatible
query II rowsort label-516
SELECT - 51, + NULLIF ( + 99, + - 33 + - 39 + - COUNT ( * ) / + 86 * 86 * 77 + + 61 * + COUNT ( * ) * 23 ) AS col0
----
-51
99

onlyif mysql # aggregate syntax: 
query II rowsort label-517
SELECT ALL - + COUNT( * ) col0, 80 / 64 - + COALESCE ( - COUNT( * ), + 23 ) * - 75 + - COALESCE ( - 31, + 94 ) - 96 + - COUNT( * ) * CASE + - 45 WHEN + 96 + - - ( - COUNT( * ) ) + + 44 THEN 11 * - 61 WHEN + - COUNT( + ( 79 ) ) THEN + + 63 WHEN COUNT( * ) THEN NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-517
SELECT ALL - + COUNT ( * ) col0, 80 / 64 - + COALESCE ( - COUNT ( * ), + 23 ) * - 75 + - COALESCE ( - 31, + 94 ) - 96 + - COUNT ( * ) * CASE + - 45 WHEN + 96 + - - ( - COUNT ( * ) ) + + 44 THEN 11 * - 61 WHEN + - COUNT ( + ( 79 ) ) THEN + + 63 WHEN COUNT ( * ) THEN NULL END
----
-1
NULL

query I rowsort
SELECT + + 40 * 87 + + 19 AS col2
----
3499

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

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

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

query II rowsort
SELECT - + 41 AS col1, 88
----
-41
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-522
SELECT 29 + - CAST( NULL AS DECIMAL ) + - CASE 72 WHEN ( - CAST( NULL AS SIGNED ) ) THEN - 55 * + 42 + - 58 WHEN + 19 * - ( + 83 ) THEN NULL WHEN - 73 THEN - 73 * + COUNT( * ) + CASE + 93 WHEN - 80 / + 48 + + CASE WHEN ( NULL ) >= NULL THEN + - SUM( DISTINCT - ( + 16 ) ) END THEN - 87 / - 51 END ELSE 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-522
SELECT 29 + - CAST ( NULL AS REAL ) + - CASE 72 WHEN ( - CAST ( NULL AS INTEGER ) ) THEN - 55 * + 42 + - 58 WHEN + 19 * - ( + 83 ) THEN NULL WHEN - 73 THEN - 73 * + COUNT ( * ) + CASE + 93 WHEN - 80 / + 48 + + CASE WHEN ( NULL ) >= NULL THEN + - SUM ( DISTINCT - ( + 16 ) ) END THEN - 87 / - 51 END ELSE 37 END
----
NULL

query I rowsort
SELECT 44 * - 1 AS col1
----
-44

query I rowsort
SELECT 88 * - 98 * - 83 * + 6
----
4294752

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT DISTINCT + ( - 95 ) * - 2 * + COUNT( * )
----
190

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT + ( - 95 ) * - 2 * + COUNT ( * )
----
190

onlyif mysql # aggregate syntax: 
query II rowsort label-526
SELECT DISTINCT - CASE - - 0 WHEN COUNT( * ) THEN NULL ELSE - 23 END, 99 * - 75 AS col0
----
23
-7425

skipif mysql # not compatible
query II rowsort label-526
SELECT DISTINCT - CASE - - 0 WHEN COUNT ( * ) THEN NULL ELSE - 23 END, 99 * - 75 AS col0
----
23
-7425

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-527
SELECT CAST( + 83 AS SIGNED ) - + 83 DIV + 23 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-527
SELECT CAST ( + 83 AS INTEGER ) - + 83 / + 23 AS col1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-528
SELECT ALL 20 AS col0, 6 * COUNT( * )
----
20
6

skipif mysql # not compatible
query II rowsort label-528
SELECT ALL 20 AS col0, 6 * COUNT ( * )
----
20
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-529
SELECT + 6 + - CASE 90 WHEN 88 THEN - MIN( - 57 ) DIV + CAST( NULL AS SIGNED ) * + ( + 25 ) + 34 + + 49 * 23 + + 44 * 34 ELSE + 71 * + 25 END AS col2, 22 * 75 AS col1
----
-1769
1650

skipif mysql # not compatible
query II rowsort label-529
SELECT + 6 + - CASE 90 WHEN 88 THEN - MIN ( - 57 ) / + CAST ( NULL AS INTEGER ) * + ( + 25 ) + 34 + + 49 * 23 + + 44 * 34 ELSE + 71 * + 25 END AS col2, 22 * 75 AS col1
----
-1769
1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT + CAST( + 66 AS SIGNED ) + - 67 col0
----
-1

skipif mysql # not compatible
query I rowsort label-530
SELECT + CAST ( + 66 AS INTEGER ) + - 67 col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-531
SELECT ALL + 11 + - CASE 53 WHEN 7 THEN - + 65 ELSE - 30 DIV - + 70 + + + 79 END + 70 * - + 79
----
-5598

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + 11 + - CASE 53 WHEN 7 THEN - + 65 ELSE - 30 / - + 70 + + + 79 END + 70 * - + 79
----
-5598

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-532
SELECT CAST( 30 AS SIGNED ) + - 75 + 0 + + 90 DIV 68
----
-44

skipif mysql # not compatible
query I rowsort label-532
SELECT CAST ( 30 AS INTEGER ) + - 75 + 0 + + 90 / 68
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT SUM( - 17 ) * + 75
----
-1275

skipif mysql # not compatible
query I rowsort label-533
SELECT SUM ( - 17 ) * + 75
----
-1275

query II rowsort
SELECT 19 + 37 AS col0, + 57
----
56
57

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT DISTINCT - ( - 22 ) DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT - ( - 22 ) / + 94 AS col0
----
0

query I rowsort
SELECT ALL - 76 + 43
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT DISTINCT + 31 + COUNT( * ) - - COUNT( * ) + - 27 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT + 31 + COUNT ( * ) - - COUNT ( * ) + - 27 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT ALL - CAST( 97 AS SIGNED ) + - COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL - CAST ( 97 AS INTEGER ) + - COUNT ( * ) AS col1
----
-98

query I rowsort
SELECT 35 * + - ( - + 90 ) col2
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT 41 + COUNT( * ) * 9
----
50

skipif mysql # not compatible
query I rowsort label-540
SELECT 41 + COUNT ( * ) * 9
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT DISTINCT + ( - 71 ) * COALESCE ( 53, - ( + - COALESCE ( - + 36, - COUNT( * ), COUNT( * ) ) ) + 79 ) - - - 31 AS col0
----
-3794

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT + ( - 71 ) * COALESCE ( 53, - ( + - COALESCE ( - + 36, - COUNT ( * ), COUNT ( * ) ) ) + 79 ) - - - 31 AS col0
----
-3794

query I rowsort
SELECT ALL + 14 - + - 21 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT MAX( ( - 53 ) ) * - COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-543
SELECT MAX ( ( - 53 ) ) * - COUNT ( * ) col1
----
53

query I rowsort
SELECT ALL - ( - 6 )
----
6

query II rowsort
SELECT - ( - 39 ) AS col2, 24
----
39
24

query I rowsort
SELECT 97 * - 48 + 62
----
-4594

query I rowsort
SELECT 20 * - - 92 + + 35 + - 44 AS col2
----
1831

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT ALL 13 DIV - ( + + 22 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL 13 / - ( + + 22 ) AS col0
----
0

query I rowsort
SELECT 43 + + 59 + 99 AS col1
----
201

query I rowsort
SELECT ALL - ( + 63 ) * ( 54 )
----
-3402

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-552
SELECT DISTINCT 2 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT 2 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT - COUNT( * ) + + - 75 * + - ( 79 ) col2
----
5924

skipif mysql # not compatible
query I rowsort label-553
SELECT - COUNT ( * ) + + - 75 * + - ( 79 ) col2
----
5924

query I rowsort
SELECT 69 * - 47 + - 92 AS col0
----
-3335

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT 12 + + 49 + + - COUNT( * ) * - - 75 - + 22 * - 4 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-555
SELECT 12 + + 49 + + - COUNT ( * ) * - - 75 - + 22 * - 4 AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-556
SELECT + 64 - + + MIN( + 74 ) AS col1, 2 AS col2
----
-10
2

skipif mysql # not compatible
query II rowsort label-556
SELECT + 64 - + + MIN ( + 74 ) AS col1, 2 AS col2
----
-10
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT 92 * + 95 + + + COUNT( * ) - + - 30 * + 90
----
11441

skipif mysql # not compatible
query I rowsort label-558
SELECT 92 * + 95 + + + COUNT ( * ) - + - 30 * + 90
----
11441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-559
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * 64 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-559
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * 64 AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT ALL COUNT( + 48 ) + NULLIF ( + - COUNT( * ), - 97 * + 49 * + 48 ) - 63 AS col2, - 85 * - 6 AS col2
----
-63
510

skipif mysql # not compatible
query II rowsort label-560
SELECT ALL COUNT ( + 48 ) + NULLIF ( + - COUNT ( * ), - 97 * + 49 * + 48 ) - 63 AS col2, - 85 * - 6 AS col2
----
-63
510

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

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

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

skipif mysql # not compatible
query I rowsort label-562
SELECT CAST ( NULL AS INTEGER ) / - 46 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT 58 * + 85 col2
----
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL COUNT( * ) + + 57 * + 50 + + 80
----
2931

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL COUNT ( * ) + + 57 * + 50 + + 80
----
2931

query I rowsort
SELECT ALL 93 * - 90
----
-8370

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL ( + CASE - 15 WHEN + + 41 * 86 THEN 65 WHEN - 14 THEN - 71 ELSE - - 31 + SUM( DISTINCT + 31 ) END ) - + 95
----
-33

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL ( + CASE - 15 WHEN + + 41 * 86 THEN 65 WHEN - 14 THEN - 71 ELSE - - 31 + SUM ( DISTINCT + 31 ) END ) - + 95
----
-33

query I rowsort
SELECT NULLIF ( - 98, - 63 + 6 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL + COUNT( * ) * - + 33 * 84 - + 20 AS col1
----
-2792

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL + COUNT ( * ) * - + 33 * 84 - + 20 AS col1
----
-2792

query II rowsort
SELECT NULLIF ( + - 55, + 77 ) AS col0, 92 AS col1
----
-55
92

query II rowsort
SELECT ALL 87 * 68 - 69 AS col2, 29 AS col1
----
5847
29

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT - 39 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-572
SELECT - 39 / 65 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL COUNT ( * ) / - + 28
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-574
SELECT + CASE COUNT( * ) WHEN - - 38 * MAX( + 99 ) THEN + 55 * SUM( ALL + - 8 ) WHEN + 99 * - 50 + - ( + - SUM( - CAST( NULL AS SIGNED ) ) ) THEN - - 5 - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-574
SELECT + CASE COUNT ( * ) WHEN - - 38 * MAX ( + 99 ) THEN + 55 * SUM ( ALL + - 8 ) WHEN + 99 * - 50 + - ( + - SUM ( - CAST ( NULL AS INTEGER ) ) ) THEN - - 5 - 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT + - MAX( DISTINCT - 60 ) + + - 24 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-575
SELECT + - MAX ( DISTINCT - 60 ) + + - 24 AS col0
----
36

query I rowsort
SELECT 68 * 57 * - 78 - 4
----
-302332

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT - COUNT( * ) - + 77 + + 8 + - 47 + + + COUNT( * ) * + + 27 * + - 44 + + 24 * + + 25 AS col1
----
-705

skipif mysql # not compatible
query I rowsort label-577
SELECT - COUNT ( * ) - + 77 + + 8 + - 47 + + + COUNT ( * ) * + + 27 * + - 44 + + 24 * + + 25 AS col1
----
-705

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT ALL + + 34 * + 17 + - 11 - + - 39 + - + NULLIF ( - - 1, + 12 ) DIV - 73 AS col1
----
606

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL + + 34 * + 17 + - 11 - + - 39 + - + NULLIF ( - - 1, + 12 ) / - 73 AS col1
----
606

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT - COUNT( + 46 ) * - MAX( 71 ) + - 56 * - COUNT( * ) * - - 2 AS col1
----
183

skipif mysql # not compatible
query I rowsort label-579
SELECT - COUNT ( + 46 ) * - MAX ( 71 ) + - 56 * - COUNT ( * ) * - - 2 AS col1
----
183

query I rowsort
SELECT + + 2 * 92 + + COALESCE ( - + 94, + + 59 )
----
90

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-582
SELECT DISTINCT + CAST( - - 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT + CAST ( - - 0 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT - - 16 * - 19
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL + + MIN( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL + + MIN ( 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT DISTINCT + NULLIF ( - 20, - 38 + ( - 85 ) + COUNT( * ) * - ( + NULLIF ( + NULLIF ( AVG ( DISTINCT - + 47 ), - 58 ), - - COUNT( * ) ) ) + 45 + - 17 - 78 + 83 * - COUNT( * ) + - + 66 * + 47 * CAST( NULL AS SIGNED ) / COALESCE ( - 25, + 21 ) ) * - + COUNT( * ) + - 8 + 60 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT + NULLIF ( - 20, - 38 + ( - 85 ) + COUNT ( * ) * - ( + NULLIF ( + NULLIF ( AVG ( DISTINCT - + 47 ), - 58 ), - - COUNT ( * ) ) ) + 45 + - 17 - 78 + 83 * - COUNT ( * ) + - + 66 * + 47 * CAST ( NULL AS INTEGER ) / COALESCE ( - 25, + 21 ) ) * - + COUNT ( * ) + - 8 + 60 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT 55 * 65 - + + 9 + COUNT( * ) + COUNT( * ) AS col2
----
3568

skipif mysql # not compatible
query I rowsort label-586
SELECT 55 * 65 - + + 9 + COUNT ( * ) + COUNT ( * ) AS col2
----
3568

query II rowsort
SELECT + COALESCE ( + - 51, + + 77 + + 22, - 41 ) * + 96 AS col0, 58
----
-4896
58

query II rowsort
SELECT ALL + 40, - CASE WHEN NOT + 26 BETWEEN + - 95 * + 70 / - + 96 AND - ( + - 84 ) THEN NULL WHEN + 7 BETWEEN ( + NULLIF ( + 97, + - 26 * + 45 * 0 ) ) AND NULL THEN - 34 ELSE NULL END col1
----
40
NULL

query II rowsort
SELECT + 93 col1, 2
----
93
2

query II rowsort
SELECT - - 27 AS col0, 38 AS col1
----
27
38

query I rowsort
SELECT ALL - 11 + 45 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT MIN( DISTINCT 97 )
----
97

skipif mysql # not compatible
query I rowsort label-592
SELECT MIN ( DISTINCT 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL - COUNT( * ) * + 38 col1
----
-38

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - COUNT ( * ) * + 38 col1
----
-38

query I rowsort
SELECT - - 15 + + + 0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-595
SELECT ALL COUNT( * ) + - 96, 71 DIV 46 AS col0
----
-95
1

skipif mysql # not compatible
query II rowsort label-595
SELECT ALL COUNT ( * ) + - 96, 71 / 46 AS col0
----
-95
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL + 49 * - MIN( + 84 ) col0
----
-4116

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL + 49 * - MIN ( + 84 ) col0
----
-4116

query I rowsort
SELECT - NULLIF ( + 51, 50 )
----
-51

query I rowsort
SELECT + 5 + 12 + + 89 AS col1
----
106

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

skipif mysql # not compatible
query I rowsort label-600
SELECT + 81 + - + CAST ( NULL AS INTEGER ) - + - 18 AS col0
----
NULL

query I rowsort
SELECT + 69 + - 8 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT ALL 39 * + ( 16 ) * - COUNT( * ) AS col1
----
-624

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL 39 * + ( 16 ) * - COUNT ( * ) AS col1
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + 45 + - + MIN( DISTINCT + + 72 ) + - 42 * - - 87 * - 68 AS col2
----
248445

skipif mysql # not compatible
query I rowsort label-603
SELECT + 45 + - + MIN ( DISTINCT + + 72 ) + - 42 * - - 87 * - 68 AS col2
----
248445

query I rowsort
SELECT + ( + + 15 ) col0
----
15

query I rowsort
SELECT ALL 4 * - 66 * + 52
----
-13728

query I rowsort
SELECT + 15 + + CASE + COALESCE ( 95, - + 89 + - - 51 ) WHEN + 0 THEN - 92 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-607
SELECT + 27 * + CASE COUNT( * ) WHEN + COUNT( * ) THEN 58 DIV 54 WHEN - 35 * - - 67 THEN - - CAST( + 15 AS SIGNED ) + 0 * - 12 + - + 49 END
----
27

skipif mysql # not compatible
query I rowsort label-607
SELECT + 27 * + CASE COUNT ( * ) WHEN + COUNT ( * ) THEN 58 / 54 WHEN - 35 * - - 67 THEN - - CAST ( + 15 AS INTEGER ) + 0 * - 12 + - + 49 END
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + COALESCE ( + 30, 8 * - 9 - 21 + - COALESCE ( + COUNT( * ), + + ( - + ( + - COUNT( DISTINCT + + 13 ) ) ), - 24 ) - 63, - 84 ) * - - MAX( DISTINCT - 34 ) + + SUM( ( - 45 ) )
----
-1065

skipif mysql # not compatible
query I rowsort label-608
SELECT + COALESCE ( + 30, 8 * - 9 - 21 + - COALESCE ( + COUNT ( * ), + + ( - + ( + - COUNT ( DISTINCT + + 13 ) ) ), - 24 ) - 63, - 84 ) * - - MAX ( DISTINCT - 34 ) + + SUM ( ( - 45 ) )
----
-1065

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT + 47 * NULLIF ( + 6, - COUNT( * ) ) AS col0
----
282

skipif mysql # not compatible
query I rowsort label-609
SELECT + 47 * NULLIF ( + 6, - COUNT ( * ) ) AS col0
----
282

query I rowsort
SELECT 22 * - 37 + + + 59 + + 96 AS col1
----
-659

onlyif mysql # aggregate syntax: 
query II rowsort label-611
SELECT DISTINCT + - MIN( + 79 ) AS col0, 31
----
-79
31

skipif mysql # not compatible
query II rowsort label-611
SELECT DISTINCT + - MIN ( + 79 ) AS col0, 31
----
-79
31

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT + MIN( ALL 68 )
----
68

skipif mysql # not compatible
query I rowsort label-612
SELECT + MIN ( ALL 68 )
----
68

query I rowsort
SELECT + 79 + - 82
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-614
SELECT + - CAST( - - 89 AS SIGNED ) * COUNT( * ) + + 46 + + + COUNT( * ) DIV + + 74
----
-43

skipif mysql # not compatible
query I rowsort label-614
SELECT + - CAST ( - - 89 AS INTEGER ) * COUNT ( * ) + + 46 + + + COUNT ( * ) / + + 74
----
-43

query I rowsort
SELECT ALL 27 * + 8 + 68 + - 78
----
206

onlyif mysql # aggregate syntax: 
query II rowsort label-616
SELECT + NULLIF ( + - 8, + 87 - + NULLIF ( - ( - NULLIF ( + 56, - 36 * 97 * + + MIN( + 27 ) ) ), 88 ) + ( + + 24 ) - - 73 * + - 85 * NULLIF ( NULLIF ( - + 79, + 28 + 8 ), 86 / 2 * - 5 / - - 21 ) + + 57 ) - + 60, - 66 AS col0
----
-68
-66

skipif mysql # not compatible
query II rowsort label-616
SELECT + NULLIF ( + - 8, + 87 - + NULLIF ( - ( - NULLIF ( + 56, - 36 * 97 * + + MIN ( + 27 ) ) ), 88 ) + ( + + 24 ) - - 73 * + - 85 * NULLIF ( NULLIF ( - + 79, + 28 + 8 ), 86 / 2 * - 5 / - - 21 ) + + 57 ) - + 60, - 66 AS col0
----
-68
-66

query I rowsort
SELECT - CASE + 18 WHEN - + 47 + 56 + ( + - 14 ) THEN - 0 + 36 WHEN - 84 THEN - 97 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT - - ( 89 ) * 70 * - + 95 + + ( - CAST( NULL AS SIGNED ) ) + + 56 * 82 * ( - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT - - ( 89 ) * 70 * - + 95 + + ( - CAST ( NULL AS INTEGER ) ) + + 56 * 82 * ( - COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 75 ) * + - 39 + + 51 * - + 99
----
-7974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT - + COUNT( * ) + 45 + + 58 DIV + 87
----
44

skipif mysql # not compatible
query I rowsort label-620
SELECT - + COUNT ( * ) + 45 + + 58 / + 87
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL + 11 * COUNT( * ) + 86 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL + 11 * COUNT ( * ) + 86 AS col1
----
97

query I rowsort
SELECT - 93 * + - 21 + - 99 + - - 68 + 99 * - 48
----
-2830

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT DISTINCT + 97 * - 13 - + 56 + - - MIN( 1 ) AS col2
----
-1316

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT + 97 * - 13 - + 56 + - - MIN ( 1 ) AS col2
----
-1316

query I rowsort
SELECT ALL + ( - 1 ) * + + ( + 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT - ( - - 85 ) * - 56 + - CAST( COUNT( * ) AS SIGNED ) AS col1
----
4759

skipif mysql # not compatible
query I rowsort label-625
SELECT - ( - - 85 ) * - 56 + - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
4759

query I rowsort
SELECT ALL ( - - 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT DISTINCT + 12 * 2 - + 77 + + MIN( ALL - - 45 ) * + 35 AS col0
----
1522

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT + 12 * 2 - + 77 + + MIN ( ALL - - 45 ) * + 35 AS col0
----
1522

query I rowsort
SELECT DISTINCT ( 32 ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT - 67 * - + 76 + 54 DIV 81 DIV - 60 AS col0
----
5092

skipif mysql # not compatible
query I rowsort label-629
SELECT - 67 * - + 76 + 54 / 81 / - 60 AS col0
----
5092

query I rowsort
SELECT - 76 * + 18
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT MIN( DISTINCT + 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-631
SELECT MIN ( DISTINCT + 72 ) AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT - 93 DIV 40
----
-2

skipif mysql # not compatible
query I rowsort label-632
SELECT - 93 / 40
----
-2

query I rowsort
SELECT DISTINCT + 72 * - 93 AS col1
----
-6696

query II rowsort
SELECT ALL 5 AS col2, - 72 AS col2
----
5
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT ALL - NULLIF ( - - 25, - 42 ) - - - 96 + + CAST( NULL AS SIGNED ) * + 79 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - NULLIF ( - - 25, - 42 ) - - - 96 + + CAST ( NULL AS INTEGER ) * + 79 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT 99 * SUM( ALL - 51 ) AS col2
----
-5049

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT 99 * SUM ( ALL - 51 ) AS col2
----
-5049

query I rowsort
SELECT 60 * + 11
----
660

query I rowsort
SELECT ALL + 55 * - 4 AS col1
----
-220

query I rowsort
SELECT DISTINCT - 0 * - 99
----
0

query I rowsort
SELECT 44 + - - 39 * + - 54 AS col2
----
-2062

query I rowsort
SELECT 50 * 9 AS col0
----
450

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

query I rowsort
SELECT ALL - ( - - 17 ) + + 73 + - + 80
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-644
SELECT 66 DIV + - ( + MAX( DISTINCT 2 ) ) - - 83 * COALESCE ( + 49, 90 ) - + 22 - - COALESCE ( + - ( - CAST( NULL AS SIGNED ) ), CASE + 2 WHEN 65 THEN - + 13 * - 8 WHEN + CASE + 46 WHEN + + 54 THEN - - 11 WHEN - 81 THEN - 62 DIV - 58 ELSE NULL END * - - 15 THEN COUNT( * ) - - COUNT( * ) ELSE - - 45 + + ( + 66 ) END )
----
4123

skipif mysql # not compatible
query I rowsort label-644
SELECT 66 / + - ( + MAX ( DISTINCT 2 ) ) - - 83 * COALESCE ( + 49, 90 ) - + 22 - - COALESCE ( + - ( - CAST ( NULL AS INTEGER ) ), CASE + 2 WHEN 65 THEN - + 13 * - 8 WHEN + CASE + 46 WHEN + + 54 THEN - - 11 WHEN - 81 THEN - 62 / - 58 ELSE NULL END * - - 15 THEN COUNT ( * ) - - COUNT ( * ) ELSE - - 45 + + ( + 66 ) END )
----
4123

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT COUNT( * ) * - - 18 * + 19 AS col0
----
342

skipif mysql # not compatible
query I rowsort label-645
SELECT COUNT ( * ) * - - 18 * + 19 AS col0
----
342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-646
SELECT ALL - 69 + + - COUNT( * ) - 4 + - 23 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - 69 + + - COUNT ( * ) - 4 + - 23 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT ALL - 89 + CASE - 11 WHEN - 27 * + ( - MIN( ALL 57 ) ) + MAX( DISTINCT - + 39 ) THEN - 57 WHEN + + 71 * - 28 - + 41 THEN NULL END * + 10 + - NULLIF ( - 42, - 89 / + 35 + - 90 ) - + MAX( DISTINCT + 85 ) * - + COUNT( * ) + - MIN( - 57 ) * 34 * MIN( ALL - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - 89 + CASE - 11 WHEN - 27 * + ( - MIN ( ALL 57 ) ) + MAX ( DISTINCT - + 39 ) THEN - 57 WHEN + + 71 * - 28 - + 41 THEN NULL END * + 10 + - NULLIF ( - 42, - 89 / + 35 + - 90 ) - + MAX ( DISTINCT + 85 ) * - + COUNT ( * ) + - MIN ( - 57 ) * 34 * MIN ( ALL - 77 )
----
NULL

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

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

query I rowsort
SELECT + ( 31 ) + + 51
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT - 83 DIV + 48 - - - 26 - + 65 * + 32 + 56 DIV + - 76 + + - 29 AS col1
----
-2136

skipif mysql # not compatible
query I rowsort label-650
SELECT - 83 / + 48 - - - 26 - + 65 * + 32 + 56 / + - 76 + + - 29 AS col1
----
-2136

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT ALL + ( - 26 ) * + COUNT( * ) * - 76
----
1976

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL + ( - 26 ) * + COUNT ( * ) * - 76
----
1976

query I rowsort
SELECT ALL 96 + - 88
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-653
SELECT ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-653
SELECT ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-654
SELECT ALL + 95 + + MAX( ALL 73 ), 8 DIV 38 AS col1
----
168
0

skipif mysql # not compatible
query II rowsort label-654
SELECT ALL + 95 + + MAX ( ALL 73 ), 8 / 38 AS col1
----
168
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-655
SELECT - CAST( - 76 AS SIGNED ) * - CAST( NULL AS SIGNED ) + 38 + + + 34, - 95 + - + 98 AS col1
----
NULL
-193

skipif mysql # not compatible
query II rowsort label-655
SELECT - CAST ( - 76 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + 38 + + + 34, - 95 + - + 98 AS col1
----
NULL
-193

query I rowsort
SELECT ALL 53 * + 81 AS col1
----
4293

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

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

query I rowsort
SELECT ALL 80 - - - 84
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT 36 * - COALESCE ( + + 52, MAX( DISTINCT 14 ) - COUNT( * ) + CASE + 43 WHEN + 76 + - ( + 59 ) THEN NULL ELSE - MIN( DISTINCT 9 ) END + - + MAX( + 28 ) * + - 22 - - COUNT( * ) )
----
-1872

skipif mysql # not compatible
query I rowsort label-659
SELECT 36 * - COALESCE ( + + 52, MAX ( DISTINCT 14 ) - COUNT ( * ) + CASE + 43 WHEN + 76 + - ( + 59 ) THEN NULL ELSE - MIN ( DISTINCT 9 ) END + - + MAX ( + 28 ) * + - 22 - - COUNT ( * ) )
----
-1872

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-660
SELECT ALL + - 74 * + + 32 + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + 49, - CAST( CAST( 15 AS SIGNED ) AS SIGNED ) DIV - CAST( - + COALESCE ( - 70, - 19 DIV + 73 ) AS SIGNED ) * - 81 + + - 23 AS col2
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-660
SELECT ALL + - 74 * + + 32 + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + 49, - CAST ( CAST ( 15 AS INTEGER ) AS INTEGER ) / - CAST ( - + COALESCE ( - 70, - 19 / + 73 ) AS INTEGER ) * - 81 + + - 23 AS col2
----
NULL
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-661
SELECT ( + ( - - 84 ) ) DIV MIN( ALL - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-661
SELECT ( + ( - - 84 ) ) / MIN ( ALL - 98 )
----
0

query I rowsort
SELECT DISTINCT 98 - 27
----
71

query I rowsort
SELECT - ( - 72 ) * - 76 + - + 81
----
-5553

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT ALL 91 AS col2, CASE - COUNT( * ) WHEN 70 - 72 THEN + 61 / + - 60 WHEN 50 / - - 13 THEN + 19 WHEN + + 72 THEN NULL END
----
91
NULL

skipif mysql # not compatible
query II rowsort label-664
SELECT ALL 91 AS col2, CASE - COUNT ( * ) WHEN 70 - 72 THEN + 61 / + - 60 WHEN 50 / - - 13 THEN + 19 WHEN + + 72 THEN NULL END
----
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-665
SELECT 86 AS col0, + ( - 50 ) + - + ( + CASE + 77 WHEN CAST( + 14 AS SIGNED ) THEN + 89 WHEN - 81 * - 25 THEN NULL END ) - + 21 * COUNT( DISTINCT - 32 ) AS col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-665
SELECT 86 AS col0, + ( - 50 ) + - + ( + CASE + 77 WHEN CAST ( + 14 AS INTEGER ) THEN + 89 WHEN - 81 * - 25 THEN NULL END ) - + 21 * COUNT ( DISTINCT - 32 ) AS col0
----
86
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-666
SELECT - 93 col0, 82 * 21 - + + 22 AS col1, - ( + - COUNT( * ) ) * - - CAST( - + 81 AS SIGNED ) * - MIN( + - CAST( 67 AS SIGNED ) ) AS col2
----
-93
1700
-5427

skipif mysql # not compatible
query III rowsort label-666
SELECT - 93 col0, 82 * 21 - + + 22 AS col1, - ( + - COUNT ( * ) ) * - - CAST ( - + 81 AS INTEGER ) * - MIN ( + - CAST ( 67 AS INTEGER ) ) AS col2
----
-93
1700
-5427

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-668
SELECT COALESCE ( + 22, + 32 ) + 75 AS col1, 1 DIV - - NULLIF ( + 68, - + 17 )
----
97
0

skipif mysql # not compatible
query II rowsort label-668
SELECT COALESCE ( + 22, + 32 ) + 75 AS col1, 1 / - - NULLIF ( + 68, - + 17 )
----
97
0

query I rowsort
SELECT 54 + - 60 + - - 88
----
82

query I rowsort
SELECT ALL + 86 * + + 19
----
1634

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

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

query II rowsort
SELECT 34 + - 24 AS col0, ( 85 ) AS col2
----
10
85

query I rowsort
SELECT 44 * - - 53
----
2332

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-674
SELECT 79 + 21 + + - 42 DIV + - 25 + + ( 25 ) AS col2, - 91 + + COUNT( * )
----
126
-90

skipif mysql # not compatible
query II rowsort label-674
SELECT 79 + 21 + + - 42 / + - 25 + + ( 25 ) AS col2, - 91 + + COUNT ( * )
----
126
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-675
SELECT DISTINCT 23, + COUNT( * ) * - MIN( DISTINCT 6 ) AS col2
----
23
-6

skipif mysql # not compatible
query II rowsort label-675
SELECT DISTINCT 23, + COUNT ( * ) * - MIN ( DISTINCT 6 ) AS col2
----
23
-6

query II rowsort
SELECT 10, 57 AS col1
----
10
57

query I rowsort
SELECT ALL - 87 + + + 5
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-678
SELECT - 28 AS col1, 74 - COUNT( * ) + - - 22 + + - 22 + - 74 - - 58 * NULLIF ( + ( + 98 ), + 60 ) * + 65 + + - 18 DIV - - 39 + + 61 + + CAST( ( 27 ) AS SIGNED ) * + 48 col1
----
-28
370816

skipif mysql # not compatible
query II rowsort label-678
SELECT - 28 AS col1, 74 - COUNT ( * ) + - - 22 + + - 22 + - 74 - - 58 * NULLIF ( + ( + 98 ), + 60 ) * + 65 + + - 18 / - - 39 + + 61 + + CAST ( ( 27 ) AS INTEGER ) * + 48 col1
----
-28
370816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-679
SELECT MIN( ALL - NULLIF ( 47, + 49 - - + 10 ) ) DIV - ( - + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-679
SELECT MIN ( ALL - NULLIF ( 47, + 49 - - + 10 ) ) / - ( - + 51 )
----
0

query I rowsort
SELECT 69 + - + 89 * 85
----
-7496

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT ALL + 51 DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL + 51 / 31
----
1

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

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

query I rowsort
SELECT ALL + 9 * + 64 AS col2
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT DISTINCT MAX( DISTINCT + COALESCE ( + CASE - 95 WHEN 30 / - 59 THEN - - 70 ELSE NULL END, + 19 * 41 ) ) AS col0
----
779

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT MAX ( DISTINCT + COALESCE ( + CASE - 95 WHEN 30 / - 59 THEN - - 70 ELSE NULL END, + 19 * 41 ) ) AS col0
----
779

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT - 65 DIV 9 col1
----
-7

skipif mysql # not compatible
query I rowsort label-685
SELECT - 65 / 9 col1
----
-7

query I rowsort
SELECT ALL + 40 + 48 AS col1
----
88

query I rowsort
SELECT DISTINCT - 81 + 76
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT DISTINCT - 39 * - - 91 + 80 * 16 + 59 + COUNT( * )
----
-2209

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - 39 * - - 91 + 80 * 16 + 59 + COUNT ( * )
----
-2209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-689
SELECT DISTINCT + 25 * - NULLIF ( - CAST( 84 AS SIGNED ), + 68 / - 40 * 66 ) + + COUNT( * ) col1
----
2101

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT + 25 * - NULLIF ( - CAST ( 84 AS INTEGER ), + 68 / - 40 * 66 ) + + COUNT ( * ) col1
----
2101

query II rowsort
SELECT + 11, 43 * - - ( 42 ) AS col0
----
11
1806

query II rowsort
SELECT + + 79, 76 - + - 91 AS col1
----
79
167

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT + ( 23 ) * + COUNT( * ) + 54 - + 55 col0
----
22

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT + ( 23 ) * + COUNT ( * ) + 54 - + 55 col0
----
22

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

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

query I rowsort
SELECT ALL - 33 * - ( + + 36 ) + - ( 14 )
----
1174

query I rowsort
SELECT ALL - + 59 * - 37 - ( ( + 47 ) )
----
2136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-696
SELECT 3, COUNT( * ) * - 21 * 46 DIV + 12 AS col0
----
3
-80

skipif mysql # not compatible
query II rowsort label-696
SELECT 3, COUNT ( * ) * - 21 * 46 / + 12 AS col0
----
3
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT DISTINCT - COALESCE ( 11, - CAST( 75 AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT - COALESCE ( 11, - CAST ( 75 AS INTEGER ) )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-698
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 88, COUNT( * ) DIV CAST( + + MIN( - 8 ) AS SIGNED ) col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-698
SELECT DISTINCT CAST ( NULL AS REAL ) * 88, COUNT ( * ) / CAST ( + + MIN ( - 8 ) AS INTEGER ) col2
----
NULL
0

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

skipif mysql # not compatible
query I rowsort label-699
SELECT + 53 / ( + + COUNT ( * ) )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-700
SELECT DISTINCT CAST( - 26 AS SIGNED ) * + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT CAST ( - 26 AS INTEGER ) * + COUNT ( * ) AS col1
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT + MAX( DISTINCT + 56 ) * 88 AS col0
----
4928

skipif mysql # not compatible
query I rowsort label-702
SELECT + MAX ( DISTINCT + 56 ) * 88 AS col0
----
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT ALL 81 DIV + 64 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL 81 / + 64 AS col0
----
1

query I rowsort
SELECT - 92 * - + 55 * - + 42 AS col1
----
-212520

query I rowsort
SELECT ALL + 55 + + 65 + + 66 * - + 64 AS col2
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT - COALESCE ( 26, MAX( + 82 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-706
SELECT - COALESCE ( 26, MAX ( + 82 ) ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-707
SELECT ALL 21 * - - CAST( + CAST( 30 AS DECIMAL ) AS SIGNED ) * + - 9 AS col1, - 17
----
-5670
-17

skipif mysql # not compatible
query II rowsort label-707
SELECT ALL 21 * - - CAST ( + CAST ( 30 AS REAL ) AS INTEGER ) * + - 9 AS col1, - 17
----
-5670
-17

query I rowsort
SELECT ALL + 28 + - - 68 * - 93
----
-6296

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

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

query I rowsort
SELECT ALL 38 + + 26 + - 0 * - 45 + - 3
----
61

query I rowsort
SELECT ALL COALESCE ( + 43, - - NULLIF ( + 74, - + 2 ), - 72 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT + 11 + - MIN( - - 64 ) + + + 19 * - 30 AS col0
----
-623

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT + 11 + - MIN ( - - 64 ) + + + 19 * - 30 AS col0
----
-623

query I rowsort
SELECT + 2 + - CASE + 64 WHEN 49 THEN - 92 * - - 81 END - - - AVG ( ALL 69 ) + 11
----
NULL

query I rowsort
SELECT - 72 * + - 45
----
3240

query I rowsort
SELECT + 16 + 97
----
113

query I rowsort
SELECT - + 2 col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT ALL - + 8 - COUNT( * ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - + 8 - COUNT ( * ) AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-718
SELECT - + 56 DIV - 83 + 80
----
80

skipif mysql # not compatible
query I rowsort label-718
SELECT - + 56 / - 83 + 80
----
80

query I rowsort
SELECT ALL 16 * + 21 - 86 * 74 AS col1
----
-6028

query I rowsort
SELECT - 74 * + + 61 + - COALESCE ( 9, 42 + 75, - - ( + NULLIF ( 0, 90 * + 26 * - + 0 * + - 95 / - 11 / - + 6 ) ) ) * + 74
----
-5180

query I rowsort
SELECT DISTINCT - 34 * - + 32 AS col1
----
1088

query I rowsort
SELECT - 41 * - 64
----
2624

onlyif mysql # aggregate syntax: 
query II rowsort label-723
SELECT + 11 * + SUM( + 9 ), - 92 AS col1
----
99
-92

skipif mysql # not compatible
query II rowsort label-723
SELECT + 11 * + SUM ( + 9 ), - 92 AS col1
----
99
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-724
SELECT - MAX( + - CAST( 86 AS SIGNED ) ) * COUNT( + 21 ) AS col1, + 56 AS col0
----
86
56

skipif mysql # not compatible
query II rowsort label-724
SELECT - MAX ( + - CAST ( 86 AS INTEGER ) ) * COUNT ( + 21 ) AS col1, + 56 AS col0
----
86
56

query I rowsort
SELECT DISTINCT + - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT DISTINCT + 4 * - 8 * + + MAX( + 75 ) AS col0
----
-2400

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT + 4 * - 8 * + + MAX ( + 75 ) AS col0
----
-2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-727
SELECT ALL + CAST( - COALESCE ( + 22, + MIN( ALL + + 27 ), + 16 ) AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL + CAST ( - COALESCE ( + 22, + MIN ( ALL + + 27 ), + 16 ) AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT ALL - 59 * 39 AS col0
----
-2301

query I rowsort
SELECT 23 * - 84 * + 6 + - 82 AS col2
----
-11674

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT - COALESCE ( - + 46, - 45 ) * - - 46 * + 30 + - + 74 DIV - 82 col0
----
63480

skipif mysql # not compatible
query I rowsort label-730
SELECT - COALESCE ( - + 46, - 45 ) * - - 46 * + 30 + - + 74 / - 82 col0
----
63480

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-732
SELECT + 69 * + CASE - + 67 WHEN - 6 DIV + 17 - MAX( ALL - - CAST( NULL AS SIGNED ) ) THEN - COUNT( DISTINCT + - 80 ) + + 49 + COUNT( DISTINCT + - 25 ) DIV ( - 11 ) * + 4 - - 54 * 93 WHEN 70 THEN ( - + ( COUNT( * ) ) ) ELSE + 35 END AS col0
----
2415

skipif mysql # not compatible
query I rowsort label-732
SELECT + 69 * + CASE - + 67 WHEN - 6 / + 17 - MAX ( ALL - - CAST ( NULL AS INTEGER ) ) THEN - COUNT ( DISTINCT + - 80 ) + + 49 + COUNT ( DISTINCT + - 25 ) / ( - 11 ) * + 4 - - 54 * 93 WHEN 70 THEN ( - + ( COUNT ( * ) ) ) ELSE + 35 END AS col0
----
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT ALL 66 * - COALESCE ( 36, CASE - 55 WHEN 52 THEN NULL ELSE + - 94 * 76 END * COUNT( * ) ) * - 70 * 82 + 42
----
13638282

skipif mysql # not compatible
query I rowsort label-733
SELECT ALL 66 * - COALESCE ( 36, CASE - 55 WHEN 52 THEN NULL ELSE + - 94 * 76 END * COUNT ( * ) ) * - 70 * 82 + 42
----
13638282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-734
SELECT + 80 + - + 87 DIV 33 - + + SUM( ALL - 94 )
----
172

skipif mysql # not compatible
query I rowsort label-734
SELECT + 80 + - + 87 / 33 - + + SUM ( ALL - 94 )
----
172

query I rowsort
SELECT DISTINCT 29 * 86 + - 61 * 18
----
1396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-736
SELECT DISTINCT 80 + + ( ( - + COALESCE ( + 31, + ( - 80 ), + COUNT( * ) * - + 7 + - 45 DIV 88 * + 28, - + 12 ) ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT 80 + + ( ( - + COALESCE ( + 31, + ( - 80 ), + COUNT ( * ) * - + 7 + - 45 / 88 * + 28, - + 12 ) ) ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-737
SELECT + CAST( NULL AS SIGNED ) + 89 + - COUNT( * ) * - MIN( ALL - 46 ) * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT + CAST ( NULL AS INTEGER ) + 89 + - COUNT ( * ) * - MIN ( ALL - 46 ) * + 55
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT + 97 DIV - + COUNT( 19 )
----
-97

skipif mysql # not compatible
query I rowsort label-738
SELECT + 97 / - + COUNT ( 19 )
----
-97

query I rowsort
SELECT + 56 + + 71 AS col2
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT DISTINCT - 90 DIV - 53
----
1

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - 90 / - 53
----
1

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

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL + COUNT ( * ) - 25 * COUNT ( * ) * - 65 AS col0
----
1626

query I rowsort
SELECT - + NULLIF ( - 27, + - 69 ) AS col2
----
27

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-744
SELECT ALL - 57 - - 98 * 16 AS col2, ( + 10 ) DIV - 70
----
1511
0

skipif mysql # not compatible
query II rowsort label-744
SELECT ALL - 57 - - 98 * 16 AS col2, ( + 10 ) / - 70
----
1511
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT + + 77 + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-746
SELECT + + 77 + + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT SUM( + + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-747
SELECT SUM ( + + 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL 42 * 13 + - + COUNT( * ) * - 70 AS col1
----
616

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL 42 * 13 + - + COUNT ( * ) * - 70 AS col1
----
616

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

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

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

query II rowsort
SELECT 64 AS col0, - 21 * + + 55
----
64
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT + - MAX( ALL + + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-752
SELECT + - MAX ( ALL + + 20 )
----
-20

query II rowsort
SELECT ALL + + 69 AS col2, + ( - - 26 ) * 9
----
69
234

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT 21 * - COUNT( * ) + + - 18 + - 89 AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-754
SELECT 21 * - COUNT ( * ) + + - 18 + - 89 AS col0
----
-128

query I rowsort
SELECT + 8 * 72 AS col2
----
576

query II rowsort
SELECT ALL - + 83 AS col2, - NULLIF ( - 87, + 32 + + 92 ) * - ( - 94 ) + + - 3 + + - NULLIF ( - 99, + 7 * 49 ) + - + 62
----
-83
8212

query II rowsort
SELECT ALL - - 92 AS col1, 86 + + + 55 AS col1
----
92
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT - + COUNT( * ) / - ( MIN( 11 ) ) + - 4 * + - 96 * 79 * 57 * 60 + COUNT( * ) + - - CASE 90 WHEN + + COUNT( - 46 ) + - 33 THEN NULL WHEN + CASE 62 WHEN + 63 - - 3 + + + 70 THEN NULL WHEN + 5 THEN - 94 * + 69 - - COUNT( * ) - - - 38 + + 85 + - 97 * - COALESCE ( - + 1, 80 + 59 * + + 10 - ( 70 ) + 7, - 39 * + 44 ) * 57 / 37 * 73 ELSE 74 END THEN 6 * - CAST( NULL AS SIGNED ) + 85 * + 60 END / 19
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT - + COUNT ( * ) / - ( MIN ( 11 ) ) + - 4 * + - 96 * 79 * 57 * 60 + COUNT ( * ) + - - CASE 90 WHEN + + COUNT ( - 46 ) + - 33 THEN NULL WHEN + CASE 62 WHEN + 63 - - 3 + + + 70 THEN NULL WHEN + 5 THEN - 94 * + 69 - - COUNT ( * ) - - - 38 + + 85 + - 97 * - COALESCE ( - + 1, 80 + 59 * + + 10 - ( 70 ) + 7, - 39 * + 44 ) * 57 / 37 * 73 ELSE 74 END THEN 6 * - CAST ( NULL AS INTEGER ) + 85 * + 60 END / 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT MAX( 41 ) col0
----
41

skipif mysql # not compatible
query I rowsort label-759
SELECT MAX ( 41 ) col0
----
41

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

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - 27 * + COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT DISTINCT - 18 * + 25 col1
----
-450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT - ( - - 68 ) DIV MAX( DISTINCT + CAST( + + 27 AS SIGNED ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - ( - - 68 ) / MAX ( DISTINCT + CAST ( + + 27 AS INTEGER ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL + 54 + - COUNT( * ) - 94
----
-41

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + 54 + - COUNT ( * ) - 94
----
-41

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

query I rowsort
SELECT ALL - 27 * - 66 col2
----
1782

onlyif mysql # DIV for integer division: 
query II rowsort label-766
SELECT 34 DIV 71, ( - 17 ) AS col2
----
0
-17

skipif mysql # not compatible
query II rowsort label-766
SELECT 34 / 71, ( - 17 ) AS col2
----
0
-17

query II rowsort
SELECT 55 * + 26 + + ( + - 99 ) AS col0, - 21 AS col2
----
1331
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-768
SELECT 44 * - - CAST( NULL AS SIGNED ) * + - 86 * 30 AS col0, + 24 AS col1
----
NULL
24

skipif mysql # not compatible
query II rowsort label-768
SELECT 44 * - - CAST ( NULL AS INTEGER ) * + - 86 * 30 AS col0, + 24 AS col1
----
NULL
24

onlyif mysql # DIV for integer division: 
query I rowsort label-769
SELECT 79 + 34 DIV + 55 - ( - 56 )
----
135

skipif mysql # not compatible
query I rowsort label-769
SELECT 79 + 34 / + 55 - ( - 56 )
----
135

query I rowsort
SELECT ALL - 55 + 9 + - 80 * - 26 + 36 AS col2
----
2070

query I rowsort
SELECT ALL - 37 + 38
----
1

query I rowsort
SELECT DISTINCT - COALESCE ( 52, - + 28 )
----
-52

query I rowsort
SELECT ALL - 55 + - 19 + + - 68 + - 66
----
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT DISTINCT 86 + - COUNT( * ) col1
----
85

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT 86 + - COUNT ( * ) col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-775
SELECT ALL 21 + - - 2 * 1 * 25 AS col1, - ( - 11 ) * CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + + + ( + 0 )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-775
SELECT ALL 21 + - - 2 * 1 * 25 AS col1, - ( - 11 ) * CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + + + ( + 0 )
----
71
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-776
SELECT 95 * 91 AS col1, 4 * - COUNT( * ) * + 46 col1
----
8645
-184

skipif mysql # not compatible
query II rowsort label-776
SELECT 95 * 91 AS col1, 4 * - COUNT ( * ) * + 46 col1
----
8645
-184

query I rowsort
SELECT DISTINCT - 11 - - 93 + - 78 * - 26
----
2110

query I rowsort
SELECT 7 * - 83 * + - 72
----
41832

query I rowsort
SELECT ALL - 61 - 74 AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT MIN( DISTINCT - - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-780
SELECT MIN ( DISTINCT - - 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT + 28 - + - 24 * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT + 28 - + - 24 * COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL - 17 * + 6 * + 50 + COUNT( * ) - 21 * + 17 * + + 15 AS col1
----
-10454

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - 17 * + 6 * + 50 + COUNT ( * ) - 21 * + 17 * + + 15 AS col1
----
-10454

onlyif mysql # aggregate syntax: 
query II rowsort label-783
SELECT ALL - COUNT( * ) - - 9, 14 AS col0
----
8
14

skipif mysql # not compatible
query II rowsort label-783
SELECT ALL - COUNT ( * ) - - 9, 14 AS col0
----
8
14

query I rowsort
SELECT DISTINCT - ( + + 75 )
----
-75

query II rowsort
SELECT ALL 73 - 66 AS col1, 9 + + 67 AS col2
----
7
76

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT 80 * + MIN( DISTINCT - + 26 ) AS col1
----
-2080

skipif mysql # not compatible
query I rowsort label-786
SELECT 80 * + MIN ( DISTINCT - + 26 ) AS col1
----
-2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-787
SELECT ALL MIN( - 59 ) DIV CAST( ( + - 46 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL MIN ( - 59 ) / CAST ( ( + - 46 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT + 0 + - COUNT( * ) * + - 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-788
SELECT + 0 + - COUNT ( * ) * + - 49 AS col1
----
49

query I rowsort
SELECT + 9 * - 97 + ( - NULLIF ( + 25, 22 * 99 * + 27 / - 97 ) )
----
-898

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

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

query I rowsort
SELECT ALL 76 * - 27
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL + COUNT( * ) + MAX( ALL 23 ) - - 47 * - 73 * + - 95 * + - 15 * + - 78 AS col0
----
381355674

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + COUNT ( * ) + MAX ( ALL 23 ) - - 47 * - 73 * + - 95 * + - 15 * + - 78 AS col0
----
381355674

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT - + 18 DIV - - 97 * + 28 + + 78 + + + 3 col1
----
81

skipif mysql # not compatible
query I rowsort label-793
SELECT - + 18 / - - 97 * + 28 + + 78 + + + 3 col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-794
SELECT DISTINCT - CAST( 3 AS SIGNED ) + + - 55 DIV + COUNT( * ) - + NULLIF ( + 31, CAST( NULL AS SIGNED ) DIV 88 * + + 34 + - AVG ( ALL + 71 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - CAST ( 3 AS INTEGER ) + + - 55 / + COUNT ( * ) - + NULLIF ( + 31, CAST ( NULL AS INTEGER ) / 88 * + + 34 + - AVG ( ALL + 71 ) )
----
-89

query I rowsort
SELECT 28 + - - 84 * - 16
----
-1316

query II rowsort
SELECT DISTINCT - ( - 74 ) AS col2, - 87
----
74
-87

query I rowsort
SELECT ALL + 68 + - - ( 64 ) + + 99 * - 81 AS col2
----
-7887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-798
SELECT DISTINCT 64 + + 30 + + CAST( + CASE + + 99 WHEN + 44 * - + 65 THEN - 48 WHEN - 73 THEN - - 8 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT 64 + + 30 + + CAST ( + CASE + + 99 WHEN + 44 * - + 65 THEN - 48 WHEN - 73 THEN - - 8 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT COUNT( * ) + + + NULLIF ( - + 81, + COUNT( DISTINCT - 17 ) * - 49 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-799
SELECT COUNT ( * ) + + + NULLIF ( - + 81, + COUNT ( DISTINCT - 17 ) * - 49 ) AS col1
----
-80

query I rowsort
SELECT 79 * + + 35
----
2765

query I rowsort
SELECT DISTINCT 99 + - 37
----
62

query I rowsort
SELECT ALL + 69 + 88 AS col2
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT ALL + 96 DIV + 2
----
48

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + 96 / + 2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-804
SELECT 69 DIV + 32 * ( - ( + COUNT( * ) ) ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-804
SELECT 69 / + 32 * ( - ( + COUNT ( * ) ) ) col0
----
-2

query I rowsort
SELECT DISTINCT 63 + + 43 AS col0
----
106

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

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

query I rowsort
SELECT ALL + 69 * + 72
----
4968

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

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

query I rowsort
SELECT 95 - + ( NULLIF ( - 87, - 61 ) ) AS col1
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-810
SELECT 4 * COALESCE ( + 77, + 38, + 26 * - 69 + - - MIN( DISTINCT - - 17 ) ), 83 AS col0
----
308
83

skipif mysql # not compatible
query II rowsort label-810
SELECT 4 * COALESCE ( + 77, + 38, + 26 * - 69 + - - MIN ( DISTINCT - - 17 ) ), 83 AS col0
----
308
83

query I rowsort
SELECT 78 + + + 54
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT MIN( + - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT MIN ( + - 16 ) AS col2
----
-16

query I rowsort
SELECT - 91 + - 77 AS col0
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-814
SELECT - NULLIF ( + + 32, + 95 ) + 27 DIV - - COALESCE ( 70, + 75, ( + 17 ) + - 7 ) + - 53 * + 92 AS col1
----
-4908

skipif mysql # not compatible
query I rowsort label-814
SELECT - NULLIF ( + + 32, + 95 ) + 27 / - - COALESCE ( 70, + 75, ( + 17 ) + - 7 ) + - 53 * + 92 AS col1
----
-4908

query II rowsort
SELECT ALL 13, 41 AS col0
----
13
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-816
SELECT DISTINCT CAST( + 21 AS SIGNED ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT CAST ( + 21 AS INTEGER ) AS col2
----
21

query I rowsort
SELECT + 54 + + 62 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL + + 96 * MIN( + + 42 ) AS col1
----
4032

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + + 96 * MIN ( + + 42 ) AS col1
----
4032

query I rowsort
SELECT + 68 + - 45 AS col0
----
23

query I rowsort
SELECT DISTINCT - 55 * 48 AS col0
----
-2640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-821
SELECT - + 50 * + COUNT( * ) DIV - NULLIF ( 87, 31 + COUNT( * ) * 69 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-821
SELECT - + 50 * + COUNT ( * ) / - NULLIF ( 87, 31 + COUNT ( * ) * 69 ) AS col1
----
0

query I rowsort
SELECT + 81 + - + 89
----
-8

query I rowsort
SELECT ALL 65 + + 95 AS col1
----
160

query I rowsort
SELECT DISTINCT - 6 + 77 * + - 15 AS col0
----
-1161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-825
SELECT ALL - CAST( 15 AS SIGNED ) + 73
----
58

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL - CAST ( 15 AS INTEGER ) + 73
----
58

query I rowsort
SELECT ALL + 62 + + - 43 AS col2
----
19

query I rowsort
SELECT ALL + 3 + + 86 * - 92
----
-7909

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-828
SELECT ALL 82 DIV NULLIF ( - + 11, ( - 66 ) * - + 90 + + 4 ) * - COUNT( * ) * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL 82 / NULLIF ( - + 11, ( - 66 ) * - + 90 + + 4 ) * - COUNT ( * ) * 0 AS col0
----
0

query I rowsort
SELECT ALL 11 * - + 63 + + 66
----
-627

query II rowsort
SELECT ALL + 24 AS col0, - ( + + 5 ) AS col2
----
24
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT + ( - SUM( DISTINCT + - 1 ) ) + 70 * + 93 + COUNT( * )
----
6512

skipif mysql # not compatible
query I rowsort label-831
SELECT + ( - SUM ( DISTINCT + - 1 ) ) + 70 * + 93 + COUNT ( * )
----
6512

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT + COALESCE ( + + COUNT( * ), - + SUM( DISTINCT + - 57 ) + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-832
SELECT + COALESCE ( + + COUNT ( * ), - + SUM ( DISTINCT + - 57 ) + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT 75 * + 2 * - - 11
----
1650

query I rowsort
SELECT + ( + 58 ) * 67
----
3886

query II rowsort
SELECT ALL + 43 AS col2, 89 * + 49
----
43
4361

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL + SUM( ALL + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + SUM ( ALL + 27 ) AS col2
----
27

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

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

skipif mysql # not compatible
query I rowsort label-839
SELECT MAX ( + + 48 )
----
48

query I rowsort
SELECT ALL + 78 * 67
----
5226

query I rowsort
SELECT DISTINCT + ( - - 90 ) * - ( + 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT - + 40 DIV - - NULLIF ( + - COUNT( * ), + 44 )
----
40

skipif mysql # not compatible
query I rowsort label-842
SELECT - + 40 / - - NULLIF ( + - COUNT ( * ), + 44 )
----
40

query I rowsort
SELECT + 69 * + 12 * + + 7
----
5796

query I rowsort
SELECT - 39 * 13 AS col0
----
-507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-845
SELECT ALL + + 94 * + - 8 + 37 + - COUNT( * ) + + 69 + + 86 + - 35 DIV - 89 + 4 * 1 * + CAST( 57 AS SIGNED ) * ( - - 97 ), 25 AS col0
----
21555
25

skipif mysql # not compatible
query II rowsort label-845
SELECT ALL + + 94 * + - 8 + 37 + - COUNT ( * ) + + 69 + + 86 + - 35 / - 89 + 4 * 1 * + CAST ( 57 AS INTEGER ) * ( - - 97 ), 25 AS col0
----
21555
25

query II rowsort
SELECT - - 96 AS col2, + 97 AS col1
----
96
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-847
SELECT 27 AS col1, 17 AS col2, - COALESCE ( - 66, - ( + CAST( NULL AS SIGNED ) ) ) * - - COUNT( * ) AS col1
----
27
17
66

skipif mysql # not compatible
query III rowsort label-847
SELECT 27 AS col1, 17 AS col2, - COALESCE ( - 66, - ( + CAST ( NULL AS INTEGER ) ) ) * - - COUNT ( * ) AS col1
----
27
17
66

query II rowsort
SELECT DISTINCT 4 AS col0, 40 * - 96 AS col1
----
4
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT - 96 DIV + ( + + 8 ) + + + 22
----
10

skipif mysql # not compatible
query I rowsort label-849
SELECT - 96 / + ( + + 8 ) + + + 22
----
10

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

skipif mysql # not compatible
query I rowsort label-850
SELECT - 66 / + COUNT ( * )
----
-66

query I rowsort
SELECT - - 63 - - 40 + + 80
----
183

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

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + 57 * + - ( COUNT ( * ) ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-853
SELECT DISTINCT - NULLIF ( 53, - CAST( NULL AS SIGNED ) * + 50 ) + - ( + 44 )
----
-97

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT - NULLIF ( 53, - CAST ( NULL AS INTEGER ) * + 50 ) + - ( + 44 )
----
-97

query II rowsort
SELECT ALL 21, ( + 87 ) AS col1
----
21
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-856
SELECT - + CAST( NULL AS SIGNED ), - 47 * 9 AS col2
----
NULL
-423

skipif mysql # not compatible
query II rowsort label-856
SELECT - + CAST ( NULL AS INTEGER ), - 47 * 9 AS col2
----
NULL
-423

query I rowsort
SELECT ALL + 33 + - 14
----
19

query I rowsort
SELECT - 85 + - 51 AS col2
----
-136

query I rowsort
SELECT - 55 - 87
----
-142

query I rowsort
SELECT DISTINCT + 83 * - 90
----
-7470

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL + 96 * + + 52 * + + ( + MIN( ALL 53 ) ) col2
----
264576

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL + 96 * + + 52 * + + ( + MIN ( ALL 53 ) ) col2
----
264576

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-864
SELECT - 40 + + 47 AS col2, 9 - - 84 + + COUNT( * ) AS col2, + 49 DIV - 3 col2
----
7
94
-16

skipif mysql # not compatible
query III rowsort label-864
SELECT - 40 + + 47 AS col2, 9 - - 84 + + COUNT ( * ) AS col2, + 49 / - 3 col2
----
7
94
-16

query I rowsort
SELECT - ( 37 ) + - + 19
----
-56

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

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

query I rowsort
SELECT ALL + 96 * + 28
----
2688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-868
SELECT - 81 DIV - MAX( - + 27 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-868
SELECT - 81 / - MAX ( - + 27 ) AS col2
----
-3

query I rowsort
SELECT + 86 * 56
----
4816

query II rowsort
SELECT - 98 * 34 AS col2, 66 AS col0
----
-3332
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-871
SELECT CAST( 59 AS SIGNED ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-871
SELECT CAST ( 59 AS INTEGER ) AS col0
----
59

query I rowsort
SELECT + 39 + - + 17
----
22

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

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

query I rowsort
SELECT + 56 * + 55
----
3080

query II rowsort
SELECT ALL 62 * - 23 AS col1, 91 * - 46
----
-1426
-4186

onlyif mysql # DIV for integer division: 
query I rowsort label-876
SELECT DISTINCT - 61 DIV + - 82 * 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-876
SELECT DISTINCT - 61 / + - 82 * 28 AS col0
----
0

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

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

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

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

query I rowsort
SELECT + 40 + + + 82
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT - COUNT( * ) * - SUM( + 45 ) + - 86 + - 6 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-881
SELECT - COUNT ( * ) * - SUM ( + 45 ) + - 86 + - 6 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT 65 * + 82 * + COUNT( * ) AS col1
----
5330

skipif mysql # not compatible
query I rowsort label-882
SELECT 65 * + 82 * + COUNT ( * ) AS col1
----
5330

query I rowsort
SELECT + 36 * - 86 * - 40 + 85 AS col1
----
123925

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT - + 70 * - + 20 + + 66 + + 97 + CASE 75 WHEN 95 THEN - + 52 + COUNT( * ) WHEN + COALESCE ( - 9, - COUNT( * ) - + 67, - 70 * + 1 - - 16 + - - 85 ) + - COALESCE ( + - 1, 57 / - 69 ) THEN NULL WHEN - 62 * + ( + 13 ) + - 12 THEN NULL END + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT - + 70 * - + 20 + + 66 + + 97 + CASE 75 WHEN 95 THEN - + 52 + COUNT ( * ) WHEN + COALESCE ( - 9, - COUNT ( * ) - + 67, - 70 * + 1 - - 16 + - - 85 ) + - COALESCE ( + - 1, 57 / - 69 ) THEN NULL WHEN - 62 * + ( + 13 ) + - 12 THEN NULL END + + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 97 + + - 81 AS col1
----
16

query I rowsort
SELECT + NULLIF ( - + 86, - + 67 / 9 ) + 46
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT ALL - + 29 * 92 DIV - 92
----
29

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - + 29 * 92 / - 92
----
29

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

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

query I rowsort
SELECT 34 + - 85 + + + 18 col0
----
-33

query I rowsort
SELECT ALL 86 + - + 42 AS col1
----
44

query I rowsort
SELECT ALL 0 + 59 + + - 64 * - 46 AS col1
----
3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT COUNT( * ) + + CAST( + + 26 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-892
SELECT COUNT ( * ) + + CAST ( + + 26 AS INTEGER )
----
27

query II rowsort
SELECT ALL - 45 * - 7 AS col1, 84
----
315
84

query I rowsort
SELECT 14 * + - 49
----
-686

query I rowsort
SELECT ALL + - 50 + + 70 AS col0
----
20

query I rowsort
SELECT - - COALESCE ( 78, - 69 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT DISTINCT + - 25 * - COUNT( DISTINCT + 68 )
----
25

skipif mysql # not compatible
query I rowsort label-897
SELECT DISTINCT + - 25 * - COUNT ( DISTINCT + 68 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT 92 + - + 72 + 92, - 73 - + COALESCE ( - - COUNT( * ), - 1 ) AS col0
----
112
-74

skipif mysql # not compatible
query II rowsort label-898
SELECT 92 + - + 72 + 92, - 73 - + COALESCE ( - - COUNT ( * ), - 1 ) AS col0
----
112
-74

query I rowsort
SELECT 63 * 33
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT DISTINCT + MIN( - - 93 ) - 41
----
52

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT + MIN ( - - 93 ) - 41
----
52

query II rowsort
SELECT DISTINCT 91, + 16 + + 47 AS col1
----
91
63

query I rowsort
SELECT 89 * - 74 * + + 85
----
-559810

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

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

query I rowsort
SELECT 79 * - + 63
----
-4977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT DISTINCT - CASE 15 WHEN - 4 + - ( - COALESCE ( COALESCE ( 9, - - 41, + 45 ), 74 + 19 + + 16 ) ) + + ( 20 ) THEN + 30 + 40 + - COUNT( * ) / - CAST( NULL AS SIGNED ) WHEN + 90 + - 87 * + 7 THEN NULL END * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT - CASE 15 WHEN - 4 + - ( - COALESCE ( COALESCE ( 9, - - 41, + 45 ), 74 + 19 + + 16 ) ) + + ( 20 ) THEN + 30 + 40 + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) WHEN + 90 + - 87 * + 7 THEN NULL END * 95
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-906
SELECT + 61 AS col2, COUNT( * ) * + 62
----
61
62

skipif mysql # not compatible
query II rowsort label-906
SELECT + 61 AS col2, COUNT ( * ) * + 62
----
61
62

query I rowsort
SELECT ALL - CASE + 83 WHEN + + 56 + + + 65 - - 37 * - 34 / CASE + + 97 WHEN - - 84 - 18 THEN 97 / + + 22 * - + 38 ELSE - 49 END * - 19 THEN - 35 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 48 * - + 67
----
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT 98 - - SUM( ALL + 49 )
----
147

skipif mysql # not compatible
query I rowsort label-909
SELECT 98 - - SUM ( ALL + 49 )
----
147

query I rowsort
SELECT ALL - 75 * - 5 AS col2
----
375

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT - COALESCE ( - 1, - MAX( 41 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - COALESCE ( - 1, - MAX ( 41 ) ) AS col0
----
1

query II rowsort
SELECT DISTINCT - 75 AS col2, + 51
----
-75
51

query I rowsort
SELECT ALL + 3 + - 96 AS col0
----
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-914
SELECT 23 DIV + 35 * - 30 AS col1, 85 AS col1
----
0
85

skipif mysql # not compatible
query II rowsort label-914
SELECT 23 / + 35 * - 30 AS col1, 85 AS col1
----
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT 97 + 26 + COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-915
SELECT 97 + 26 + COUNT ( * )
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT MAX( ALL - - 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-916
SELECT MAX ( ALL - - 12 ) AS col0
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT + + COALESCE ( + - 68, + NULLIF ( - + COALESCE ( - + COUNT( + 64 ), - 31 * + + 75 ), + + 25 ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-918
SELECT + + COALESCE ( + - 68, + NULLIF ( - + COALESCE ( - + COUNT ( + 64 ), - 31 * + + 75 ), + + 25 ) ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT CAST( + COALESCE ( 78, SUM( 28 ) / - 9 + - 74 + - 61 * + 44 / - CAST( NULL AS SIGNED ) * + 15 * CAST( COUNT( * ) AS SIGNED ), 3 + 95 ) AS SIGNED ) + - 80 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-919
SELECT CAST ( + COALESCE ( 78, SUM ( 28 ) / - 9 + - 74 + - 61 * + 44 / - CAST ( NULL AS INTEGER ) * + 15 * CAST ( COUNT ( * ) AS INTEGER ), 3 + 95 ) AS INTEGER ) + - 80 AS col2
----
-2

query I rowsort
SELECT - 60 * + + 60
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT + ( MAX( DISTINCT + 98 ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-921
SELECT + ( MAX ( DISTINCT + 98 ) ) AS col2
----
98

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

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

query I rowsort
SELECT DISTINCT + 68 + - 85 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT ( - 42 ) * - 8 * + - COUNT( * )
----
-336

skipif mysql # not compatible
query I rowsort label-924
SELECT ( - 42 ) * - 8 * + - COUNT ( * )
----
-336

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-925
SELECT ALL - + 23 DIV + 86 * + 45, + COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-925
SELECT ALL - + 23 / + 86 * + 45, + COUNT ( * ) col1
----
0
1

query I rowsort
SELECT DISTINCT + CASE + - 86 WHEN + 65 THEN + 65 END + 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT DISTINCT + 18 + - COALESCE ( + + 68, + - 3, + 90 * + COALESCE ( - 40, + - 33 ) + - 33 - 89 + 7, 91 + - + 8 + + SUM( - 76 ) ) + + 19 * - - 79
----
1451

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT + 18 + - COALESCE ( + + 68, + - 3, + 90 * + COALESCE ( - 40, + - 33 ) + - 33 - 89 + 7, 91 + - + 8 + + SUM ( - 76 ) ) + + 19 * - - 79
----
1451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-928
SELECT ALL + COUNT( * ) * ( - 42 ), CAST( NULL AS SIGNED ) + - - 55 * - 20 * - COALESCE ( + ( 64 ), 35 * + 50 ) / + 25 + + - 73 + + 55 * + - 35 AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL + COUNT ( * ) * ( - 42 ), CAST ( NULL AS INTEGER ) + - - 55 * - 20 * - COALESCE ( + ( 64 ), 35 * + 50 ) / + 25 + + - 73 + + 55 * + - 35 AS col1
----
-42
NULL

query I rowsort
SELECT + 76 * - 35
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL + 25 - + COUNT( DISTINCT + 17 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL + 25 - + COUNT ( DISTINCT + 17 ) AS col0
----
24

query I rowsort
SELECT 59 - 17 AS col2
----
42

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

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

query I rowsort
SELECT 5 - + 69
----
-64

query II rowsort
SELECT ALL COALESCE ( - - 33, 81 + - + 95 + + + 39 + + - 26 ) AS col0, 33
----
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT - SUM( - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-935
SELECT - SUM ( - 37 )
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT ( 11 ) + + + COALESCE ( - ( 36 ), + COUNT( DISTINCT 86 ) * - 82 * + ( + - 33 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-937
SELECT ( 11 ) + + + COALESCE ( - ( 36 ), + COUNT ( DISTINCT 86 ) * - 82 * + ( + - 33 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT 98 - + 96 * - MAX( - 89 ) AS col2
----
-8446

skipif mysql # not compatible
query I rowsort label-938
SELECT 98 - + 96 * - MAX ( - 89 ) AS col2
----
-8446

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - SUM( DISTINCT 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-939
SELECT - SUM ( DISTINCT 39 ) AS col2
----
-39

query I rowsort
SELECT 14 * + 25 * + + 51 * + 88 AS col0
----
1570800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-941
SELECT ALL - 79 * - CAST( + + 98 AS SIGNED ) AS col1
----
7742

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL - 79 * - CAST ( + + 98 AS INTEGER ) AS col1
----
7742

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT 4 DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-942
SELECT 4 / 77 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT 13 * MIN( 69 ) * + 33 AS col1
----
29601

skipif mysql # not compatible
query I rowsort label-943
SELECT 13 * MIN ( 69 ) * + 33 AS col1
----
29601

query I rowsort
SELECT DISTINCT - 82 * + - 42 + - - ( - + 52 ) AS col1
----
3392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT + 85 * + CAST( NULL AS SIGNED ) * + 3 * ( - 74 ) + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT + 85 * + CAST ( NULL AS INTEGER ) * + 3 * ( - 74 ) + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT + COALESCE ( + 88, 32 * - COUNT( 34 ) * + + 91, - 3 )
----
88

skipif mysql # not compatible
query I rowsort label-946
SELECT + COALESCE ( + 88, 32 * - COUNT ( 34 ) * + + 91, - 3 )
----
88

query I rowsort
SELECT + 85 * 31 AS col2
----
2635

query I rowsort
SELECT - 91 * - 65
----
5915

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-949
SELECT - 72 / + 72 * - 49 + - + ( + CAST( NULL AS SIGNED ) ) AS col0, 64 - CAST( + - 39 AS SIGNED ) + + 79
----
NULL
182

skipif mysql # not compatible
query II rowsort label-949
SELECT - 72 / + 72 * - 49 + - + ( + CAST ( NULL AS INTEGER ) ) AS col0, 64 - CAST ( + - 39 AS INTEGER ) + + 79
----
NULL
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT ALL - + CAST( NULL AS SIGNED ) * - 98 + + MAX( + - 66 ) * - 65 * MAX( DISTINCT + 5 ) * + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 98 + + MAX ( + - 66 ) * - 65 * MAX ( DISTINCT + 5 ) * + - 77
----
NULL

query I rowsort
SELECT - 58 - - - 40
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-952
SELECT DISTINCT - ( - COUNT( * ) ) * + + 36 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * 59 - COUNT( * ) AS col1, 11 * - 36 AS col0
----
NULL
-396

skipif mysql # not compatible
query II rowsort label-952
SELECT DISTINCT - ( - COUNT ( * ) ) * + + 36 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 59 - COUNT ( * ) AS col1, 11 * - 36 AS col0
----
NULL
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - COALESCE ( + 79, 54 - - 84 * - 11 ) * 9 + - CASE 68 WHEN + 83 * 17 THEN + + SUM( DISTINCT - ( 70 ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - COALESCE ( + 79, 54 - - 84 * - 11 ) * 9 + - CASE 68 WHEN + 83 * 17 THEN + + SUM ( DISTINCT - ( 70 ) ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT DISTINCT + - NULLIF ( + 40, - SUM( 58 ) ) * - + MAX( DISTINCT 6 ) AS col1
----
240

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT + - NULLIF ( + 40, - SUM ( 58 ) ) * - + MAX ( DISTINCT 6 ) AS col1
----
240

query I rowsort
SELECT - + 14 + + + 42 + 76
----
104

query I rowsort
SELECT - - 9 - + 15 * + - 32
----
489

query I rowsort
SELECT + - 51 * 74 AS col2
----
-3774

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT - + COUNT( * ) * + 80 + + + 94
----
14

skipif mysql # not compatible
query I rowsort label-958
SELECT - + COUNT ( * ) * + 80 + + + 94
----
14

query I rowsort
SELECT + NULLIF ( 78, AVG ( DISTINCT - 81 ) ) - ( + 35 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-960
SELECT - 78 * - - CAST( NULL AS SIGNED ) * + + 43 - 64 * - - 30 + - COUNT( * ) * - 57 + + 37 + + - 99 + + COUNT( * ) / - - 78 + 17 * 50 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-960
SELECT - 78 * - - CAST ( NULL AS INTEGER ) * + + 43 - 64 * - - 30 + - COUNT ( * ) * - 57 + + 37 + + - 99 + + COUNT ( * ) / - - 78 + 17 * 50 col2
----
NULL

query I rowsort
SELECT DISTINCT + 63 * - + 29 AS col2
----
-1827

query I rowsort
SELECT + - 10 * + ( + - 88 ) + + 15 + - 97
----
798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-963
SELECT ALL 82 AS col2, 79 - + - ( CASE + 22 WHEN + 82 THEN NULL WHEN - + 6 THEN COALESCE ( + MAX( + 46 ), - 74 + - 51, + - CAST( NULL AS DECIMAL ) + 9 / + CAST( NULL AS SIGNED ) ) * - 45 * + 25 END ) / + 83 * - + 90
----
82
NULL

skipif mysql # not compatible
query II rowsort label-963
SELECT ALL 82 AS col2, 79 - + - ( CASE + 22 WHEN + 82 THEN NULL WHEN - + 6 THEN COALESCE ( + MAX ( + 46 ), - 74 + - 51, + - CAST ( NULL AS REAL ) + 9 / + CAST ( NULL AS INTEGER ) ) * - 45 * + 25 END ) / + 83 * - + 90
----
82
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-964
SELECT DISTINCT ( - MIN( DISTINCT - 99 ) ), + 29 col2
----
99
29

skipif mysql # not compatible
query II rowsort label-964
SELECT DISTINCT ( - MIN ( DISTINCT - 99 ) ), + 29 col2
----
99
29

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT - SUM( DISTINCT + 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-965
SELECT - SUM ( DISTINCT + 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-966
SELECT + 64 + - 49 + - 82 + - 11 - + 40, CAST( 21 AS SIGNED ) + 11 + 28 * COUNT( * ) col0
----
-118
60

skipif mysql # not compatible
query II rowsort label-966
SELECT + 64 + - 49 + - 82 + - 11 - + 40, CAST ( 21 AS INTEGER ) + 11 + 28 * COUNT ( * ) col0
----
-118
60

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT - SUM( DISTINCT - + 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-967
SELECT - SUM ( DISTINCT - + 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-968
SELECT + 40 + - 9 + + - SUM( + 53 ) + + 7 - + 69 * + 80 + - - 64 + - CASE ( + - 45 ) WHEN - 3 THEN - ( 64 ) + - COUNT( DISTINCT - CASE + - 67 WHEN + 32 THEN 33 - + 91 WHEN + - 8 + - + ( - 29 ) THEN NULL ELSE NULL END ) + 50 * - - SUM( - 31 ) * 42 * + + 76 * - - ( - + 15 ) END, + 75 AS col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-968
SELECT + 40 + - 9 + + - SUM ( + 53 ) + + 7 - + 69 * + 80 + - - 64 + - CASE ( + - 45 ) WHEN - 3 THEN - ( 64 ) + - COUNT ( DISTINCT - CASE + - 67 WHEN + 32 THEN 33 - + 91 WHEN + - 8 + - + ( - 29 ) THEN NULL ELSE NULL END ) + 50 * - - SUM ( - 31 ) * 42 * + + 76 * - - ( - + 15 ) END, + 75 AS col2
----
NULL
75

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

query II rowsort
SELECT DISTINCT 98 AS col2, NULLIF ( 27, - - 99 ) AS col0
----
98
27

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ALL - 20 + + + ( - + MIN( - 28 ) )
----
8

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL - 20 + + + ( - + MIN ( - 28 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT + 45 + + - COUNT( DISTINCT - 35 )
----
44

skipif mysql # not compatible
query I rowsort label-972
SELECT + 45 + + - COUNT ( DISTINCT - 35 )
----
44

query I rowsort
SELECT DISTINCT 74 + 96 AS col1
----
170

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT ALL - CAST( NULL AS SIGNED ) + + 58 + + ( 47 ) * COUNT( * ) * + 33 + + 93 - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - CAST ( NULL AS INTEGER ) + + 58 + + ( 47 ) * COUNT ( * ) * + 33 + + 93 - 14
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-978
SELECT + ( + - 1 ) - + CAST( - 36 AS SIGNED ) DIV - 72 + + 14 + + 15 * + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-978
SELECT + ( + - 1 ) - + CAST ( - 36 AS INTEGER ) / - 72 + + 14 + + 15 * + - COUNT ( * )
----
-2

query II rowsort
SELECT + NULLIF ( + 6, - 39 + + - 37 / + - 88 + + + 53 / 67 + + 51 ) AS col2, + 9 col0
----
6
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT ALL + 11 DIV + 30 + - NULLIF ( - + 75, ( COUNT( * ) ) * + 1 + 85 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + 11 / + 30 + - NULLIF ( - + 75, ( COUNT ( * ) ) * + 1 + 85 ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-981
SELECT ALL - 28 DIV + 21 + + 29 AS col1, - CAST( 24 AS SIGNED ) AS col1
----
28
-24

skipif mysql # not compatible
query II rowsort label-981
SELECT ALL - 28 / + 21 + + 29 AS col1, - CAST ( 24 AS INTEGER ) AS col1
----
28
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT + 38 * - MAX( 2 )
----
-76

skipif mysql # not compatible
query I rowsort label-982
SELECT + 38 * - MAX ( 2 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT ALL COUNT( * ) * - 39 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL COUNT ( * ) * - 39 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT + NULLIF ( + 52, + - 61 * - + 82 + - COUNT( * ) - - + 50 + - 90 - + - MIN( ALL 51 ) * + - 75 + + CAST( - - 17 AS SIGNED ) + + - 7 + + 51 + + 87 * - - 0 / MIN( DISTINCT 44 ) - - 86 + 2 ) - + COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-984
SELECT + NULLIF ( + 52, + - 61 * - + 82 + - COUNT ( * ) - - + 50 + - 90 - + - MIN ( ALL 51 ) * + - 75 + + CAST ( - - 17 AS INTEGER ) + + - 7 + + 51 + + 87 * - - 0 / MIN ( DISTINCT 44 ) - - 86 + 2 ) - + COUNT ( * ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-985
SELECT ALL - 36 DIV + 38 + + 54
----
54

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL - 36 / + 38 + + 54
----
54

query II rowsort
SELECT ALL 22 * - + 1 - 96 + + 78 * + - ( + ( + 11 ) ) - 47 + + - 33 * - 90 AS col0, - 64 AS col0
----
1947
-64

query I rowsort
SELECT ALL + + 13 AS col1
----
13

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

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

query I rowsort
SELECT ALL NULLIF ( 21, - 29 - 71 ) * + 58 - - + 38
----
1256

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT DISTINCT + CAST( - 4 AS SIGNED ) * + 65 + - 82 * + 50 * + 38 + - 37 + - + 13 AS col2
----
-156110

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT + CAST ( - 4 AS INTEGER ) * + 65 + - 82 * + 50 * + 38 + - 37 + - + 13 AS col2
----
-156110

query I rowsort
SELECT DISTINCT + - 37 AS col0
----
-37

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

query I rowsort
SELECT ALL + - 68 * 47 - - 39 AS col0
----
-3157

onlyif mysql # aggregate syntax: 
query II rowsort label-995
SELECT + COUNT( * ), 11 + - 5 AS col1
----
1
6

skipif mysql # not compatible
query II rowsort label-995
SELECT + COUNT ( * ), 11 + - 5 AS col1
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT - + 78 * - COUNT( * ) + - 94 - + 43 * - 89 - + - 37
----
3848

skipif mysql # not compatible
query I rowsort label-996
SELECT - + 78 * - COUNT ( * ) + - 94 - + 43 * - 89 - + - 37
----
3848

query I rowsort
SELECT - NULLIF ( - ( - ( - 91 ) ), + 19 + - 2 - + 73 ) AS col1
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-998
SELECT COUNT( * ), CAST( - COUNT( * ) AS SIGNED ) + - 76 + + - COUNT( * ) + + 36 AS col1
----
1
-42

skipif mysql # not compatible
query II rowsort label-998
SELECT COUNT ( * ), CAST ( - COUNT ( * ) AS INTEGER ) + - 76 + + - COUNT ( * ) + + 36 AS col1
----
1
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT - CAST( NULL AS SIGNED ) / ( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT - CAST ( NULL AS INTEGER ) / ( 92 )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT - CAST( - 65 AS SIGNED ) - + 90 + ( 75 )
----
50

skipif mysql # not compatible
query I rowsort label-1001
SELECT - CAST ( - 65 AS INTEGER ) - + 90 + ( 75 )
----
50

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

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT + COUNT ( * ) / + 16 * - - 68 AS col0
----
0

query I rowsort
SELECT DISTINCT + 34 + + + 13
----
47

query I rowsort
SELECT ALL 98 + 82 * - 4 col1
----
-230

query I rowsort
SELECT - 4 * + - 31
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL - 16 + COUNT( DISTINCT + + ( - 66 ) ) + + MAX( ALL + COALESCE ( - - 57, - + 81 ) ) * - + 48 * + - 32 + + COUNT( * ) * 0 AS col2
----
87537

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - 16 + COUNT ( DISTINCT + + ( - 66 ) ) + + MAX ( ALL + COALESCE ( - - 57, - + 81 ) ) * - + 48 * + - 32 + + COUNT ( * ) * 0 AS col2
----
87537

query I rowsort
SELECT + 80 * + 13
----
1040

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1008
SELECT ALL + 44 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL + 44 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1009
SELECT ALL - COUNT( - 97 ) + COALESCE ( + CAST( NULL AS SIGNED ), - 28, + 22 + + CASE - 14 WHEN + 18 / 38 THEN + + 22 - - 99 WHEN - + NULLIF ( + - ( CAST( - 65 AS SIGNED ) ), + ( - COUNT( * ) ) ) THEN NULL ELSE NULL END )
----
-29

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL - COUNT ( - 97 ) + COALESCE ( + CAST ( NULL AS INTEGER ), - 28, + 22 + + CASE - 14 WHEN + 18 / 38 THEN + + 22 - - 99 WHEN - + NULLIF ( + - ( CAST ( - 65 AS INTEGER ) ), + ( - COUNT ( * ) ) ) THEN NULL ELSE NULL END )
----
-29

query I rowsort
SELECT 97 + + + 4 * 6 * 61
----
1561

query I rowsort
SELECT 33 - - 92
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ALL 32 + - + SUM( - - 44 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1012
SELECT ALL 32 + - + SUM ( - - 44 ) AS col1
----
-12

query I rowsort
SELECT DISTINCT 74 col0
----
74

query I rowsort
SELECT DISTINCT + 26 * 93 * - 33
----
-79794

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT - COALESCE ( - COUNT( DISTINCT 79 ), + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT - COALESCE ( - COUNT ( DISTINCT 79 ), + 12 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT + CAST( NULL AS SIGNED ) + + - ( + + 3 ) + + COALESCE ( + 55, + COUNT( + 7 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT + CAST ( NULL AS INTEGER ) + + - ( + + 3 ) + + COALESCE ( + 55, + COUNT ( + 7 ) )
----
NULL

query I rowsort
SELECT ALL - 70 - - 8 AS col1
----
-62

query I rowsort
SELECT ALL 97 - + 71 AS col2
----
26

query I rowsort
SELECT - 95 * + 27 + - - 82 + + + 85 + + 49 - - + 7 * - 19 AS col1
----
-2482

query I rowsort
SELECT NULLIF ( - 78, 68 ) AS col2
----
-78

query II rowsort
SELECT + + 1 AS col0, 75
----
1
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1022
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * 36
----
-36

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * 36
----
-36

query I rowsort
SELECT 34 * 24
----
816

query I rowsort
SELECT + 3 * 43 AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT MIN( 98 ) - - 16 * + + 40 + + 56 AS col0
----
794

skipif mysql # not compatible
query I rowsort label-1025
SELECT MIN ( 98 ) - - 16 * + + 40 + + 56 AS col0
----
794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1026
SELECT CAST( NULL AS SIGNED ) + - 62 + - - 73 + + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1026
SELECT CAST ( NULL AS INTEGER ) + - 62 + - - 73 + + + 91
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1028
SELECT MAX( 23 ) * + + 65 * + COUNT( * ) + + MAX( DISTINCT + 29 ) + - 99 * - + 22 * - - 51 + - - 35 - - + CAST( NULL AS SIGNED ) / + 96 / - AVG ( + 28 ) * - 34 * - ( 92 ) / - + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT MAX ( 23 ) * + + 65 * + COUNT ( * ) + + MAX ( DISTINCT + 29 ) + - 99 * - + 22 * - - 51 + - - 35 - - + CAST ( NULL AS INTEGER ) / + 96 / - AVG ( + 28 ) * - 34 * - ( 92 ) / - + 46 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT ALL - - 3 DIV + - ( ( - 81 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL - - 3 / + - ( ( - 81 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1030
SELECT + ( - MIN( ALL + 35 ) ) * - AVG ( ALL - 61 ) - - ( + + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT + ( - MIN ( ALL + 35 ) ) * - AVG ( ALL - 61 ) - - ( + + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT - COUNT( * ) * + - 41 * - ( - - 61 ) + + - 25 + - 46
----
-2572

skipif mysql # not compatible
query I rowsort label-1031
SELECT - COUNT ( * ) * + - 41 * - ( - - 61 ) + + - 25 + - 46
----
-2572

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT 98 + - + MAX( ( - 43 ) ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-1033
SELECT 98 + - + MAX ( ( - 43 ) ) AS col2
----
141

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1035
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + 23 DIV + - 98
----
1

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + 23 / + - 98
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT ALL + MAX( 83 ) + - - CAST( + 89 AS SIGNED )
----
172

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL + MAX ( 83 ) + - - CAST ( + 89 AS INTEGER )
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-1037
SELECT 13 * - COUNT( * ), 40 col2
----
-13
40

skipif mysql # not compatible
query II rowsort label-1037
SELECT 13 * - COUNT ( * ), 40 col2
----
-13
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT MAX( DISTINCT - 19 ) + 10 * - COUNT( * ) * - 54
----
521

skipif mysql # not compatible
query I rowsort label-1038
SELECT MAX ( DISTINCT - 19 ) + 10 * - COUNT ( * ) * - 54
----
521

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT 32 DIV ( - - 41 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT 32 / ( - - 41 ) AS col2
----
0

query I rowsort
SELECT 38 + ( 25 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1041
SELECT DISTINCT 44 - - COUNT( * ) AS col1, + CAST( NULL AS DECIMAL ) * ( ( - 77 ) )
----
45
NULL

skipif mysql # not compatible
query II rowsort label-1041
SELECT DISTINCT 44 - - COUNT ( * ) AS col1, + CAST ( NULL AS REAL ) * ( ( - 77 ) )
----
45
NULL

query I rowsort
SELECT ALL 2 * - + 81 * + 23
----
-3726

query I rowsort
SELECT 80 - - - 74 - + 35 * + 7
----
-239

query I rowsort
SELECT - 95 - - + 19 * + 71 + + + 15 AS col2
----
1269

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT CASE - 53 WHEN + - 8 THEN + 16 ELSE + 7 END * + 71 * - + SUM( DISTINCT 83 )
----
-41251

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT CASE - 53 WHEN + - 8 THEN + 16 ELSE + 7 END * + 71 * - + SUM ( DISTINCT 83 )
----
-41251

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT 49 * + 47 - - + 24 + MIN( + 95 ) AS col2
----
2422

skipif mysql # not compatible
query I rowsort label-1046
SELECT 49 * + 47 - - + 24 + MIN ( + 95 ) AS col2
----
2422

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT DISTINCT - - 59 * COUNT( * ) * + + 29, 38 col2
----
1711
38

skipif mysql # not compatible
query II rowsort label-1047
SELECT DISTINCT - - 59 * COUNT ( * ) * + + 29, 38 col2
----
1711
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1048
SELECT DISTINCT - CAST( CAST( - 26 AS SIGNED ) AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT - CAST ( CAST ( - 26 AS INTEGER ) AS INTEGER ) AS col0
----
26

query I rowsort
SELECT ALL 98 * 4 AS col0
----
392

query I rowsort
SELECT DISTINCT 55 + 78 + 54 AS col0
----
187

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

skipif mysql # not compatible
query I rowsort label-1051
SELECT + COUNT ( * ) / - + 6 * + 44
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1053
SELECT DISTINCT 82 + + CAST( - MIN( - 43 ) AS SIGNED ) + - COALESCE ( - 78, 96 * - CAST( - 3 AS SIGNED ) + 53 + - 65 DIV - 27 ) + - 86 + - ( - 12 ) DIV + COUNT( * )
----
129

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT 82 + + CAST ( - MIN ( - 43 ) AS INTEGER ) + - COALESCE ( - 78, 96 * - CAST ( - 3 AS INTEGER ) + 53 + - 65 / - 27 ) + - 86 + - ( - 12 ) / + COUNT ( * )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT MAX( ALL 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1054
SELECT MAX ( ALL 17 ) AS col0
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1055
SELECT ALL 23 + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL 23 + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1056
SELECT 98 * 63 DIV + COUNT( * )
----
6174

skipif mysql # not compatible
query I rowsort label-1056
SELECT 98 * 63 / + COUNT ( * )
----
6174

query I rowsort
SELECT ALL 34 + + 83 AS col2
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1058
SELECT ALL SUM( 85 ) * + + 1, + 72 AS col1
----
85
72

skipif mysql # not compatible
query II rowsort label-1058
SELECT ALL SUM ( 85 ) * + + 1, + 72 AS col1
----
85
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL 87 + - 35 * + SUM( ALL - 80 ) AS col0
----
2887

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL 87 + - 35 * + SUM ( ALL - 80 ) AS col0
----
2887

query I rowsort
SELECT + 98 * 43 col0
----
4214

query I rowsort
SELECT - 75 * + 76 AS col1
----
-5700

query II rowsort
SELECT ALL 1 AS col2, 68
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT - NULLIF ( - COUNT( * ), + 88 * - AVG ( ALL 65 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1064
SELECT - NULLIF ( - COUNT ( * ), + 88 * - AVG ( ALL 65 ) )
----
1

query I rowsort
SELECT + 15 - + 0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL COALESCE ( 14, + COUNT( * ) ) - - 48 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL COALESCE ( 14, + COUNT ( * ) ) - - 48 AS col1
----
62

query I rowsort
SELECT - 91 + - 53
----
-144

query I rowsort
SELECT ALL - 54 * 61
----
-3294

onlyif mysql # aggregate syntax: 
query II rowsort label-1069
SELECT - 74 AS col0, + MAX( ALL - 92 ) + - + 48 AS col1
----
-74
-140

skipif mysql # not compatible
query II rowsort label-1069
SELECT - 74 AS col0, + MAX ( ALL - 92 ) + - + 48 AS col1
----
-74
-140

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

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

query I rowsort
SELECT + 79 + - 41 * - 88
----
3687

query II rowsort
SELECT 19 AS col1, 80 AS col0
----
19
80

query I rowsort
SELECT - - 67 - - - 95
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1074
SELECT - + CASE + 69 WHEN + COUNT( * ) DIV - 35 + - - 65 * + 91 THEN NULL ELSE - 85 DIV + 95 - - + NULLIF ( + 83, + + NULLIF ( - 96, + ( + 4 ) ) ) + CAST( + 69 AS SIGNED ) * + + COUNT( + 38 ) END - - + COUNT( * ) + - + 62 * 53 * - - 26
----
-85587

skipif mysql # not compatible
query I rowsort label-1074
SELECT - + CASE + 69 WHEN + COUNT ( * ) / - 35 + - - 65 * + 91 THEN NULL ELSE - 85 / + 95 - - + NULLIF ( + 83, + + NULLIF ( - 96, + ( + 4 ) ) ) + CAST ( + 69 AS INTEGER ) * + + COUNT ( + 38 ) END - - + COUNT ( * ) + - + 62 * 53 * - - 26
----
-85587

onlyif mysql # DIV for integer division: 
query I rowsort label-1075
SELECT - - 18 * + + 69 + 46 - 65 DIV + + 55 AS col0
----
1287

skipif mysql # not compatible
query I rowsort label-1075
SELECT - - 18 * + + 69 + 46 - 65 / + + 55 AS col0
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - COALESCE ( - 92, - COUNT( * ) ) * - COUNT( * ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-1076
SELECT - COALESCE ( - 92, - COUNT ( * ) ) * - COUNT ( * ) col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1077
SELECT - 29 + + 73 + + CASE + - 94 WHEN + 22 * + COUNT( * ) THEN NULL ELSE - 44 * 38 * CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT - 29 + + 73 + + CASE + - 94 WHEN + 22 * + COUNT ( * ) THEN NULL ELSE - 44 * 38 * CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT - + 40 DIV + - COALESCE ( - 71, 49, - + 19 ) * - 25 * + 13 + + - 63 + + - 73 AS col1
----
-136

skipif mysql # not compatible
query I rowsort label-1078
SELECT - + 40 / + - COALESCE ( - 71, 49, - + 19 ) * - 25 * + 13 + + - 63 + + - 73 AS col1
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1079
SELECT DISTINCT - 57 * ( - MAX( + 24 ) ) + CAST( + 41 AS SIGNED ) AS col1
----
1409

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT - 57 * ( - MAX ( + 24 ) ) + CAST ( + 41 AS INTEGER ) AS col1
----
1409

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1080
SELECT + - CAST( NULL AS DECIMAL ) + - COUNT( * ) + - - COUNT( * ), 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-1080
SELECT + - CAST ( NULL AS REAL ) + - COUNT ( * ) + - - COUNT ( * ), 46 AS col2
----
NULL
46

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1082
SELECT - 40 + + 86 * + COALESCE ( + COUNT( * ), + MAX( DISTINCT + 96 ) DIV ( 65 ), - 6 * + NULLIF ( + 80, + 59 + + 43 ) ), + 54 AS col0
----
46
54

skipif mysql # not compatible
query II rowsort label-1082
SELECT - 40 + + 86 * + COALESCE ( + COUNT ( * ), + MAX ( DISTINCT + 96 ) / ( 65 ), - 6 * + NULLIF ( + 80, + 59 + + 43 ) ), + 54 AS col0
----
46
54

query I rowsort
SELECT DISTINCT - 83 * 76
----
-6308

query I rowsort
SELECT + 60 * + - 75 * - 23 + + + 61
----
103561

query I rowsort
SELECT - 88 * - - 12
----
-1056

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT 57 * - + 38 + SUM( + ( + 38 ) )
----
-2128

skipif mysql # not compatible
query I rowsort label-1087
SELECT 57 * - + 38 + SUM ( + ( + 38 ) )
----
-2128

query I rowsort
SELECT ALL - ( + + ( 56 ) ) * 5 + - - 70 + 21 + + 21
----
-168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT + 75 - + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1090
SELECT + 75 - + COUNT ( * ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1091
SELECT ALL COUNT( 11 ) DIV + 64 + + 77 + 28 col2
----
105

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL COUNT ( 11 ) / + 64 + + 77 + 28 col2
----
105

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

skipif mysql # not compatible
query I rowsort label-1092
SELECT + 22 * CAST ( NULL AS INTEGER ) * + - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT + 15 * + 49 + 20 + + - 82 + + + SUM( - 93 ) AS col1
----
580

skipif mysql # not compatible
query I rowsort label-1093
SELECT + 15 * + 49 + 20 + + - 82 + + + SUM ( - 93 ) AS col1
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT ALL COALESCE ( - - 74, - 54 * ( ( + - 1 ) ) + - SUM( + 60 ) ) * - ( + 82 ) AS col2
----
-6068

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL COALESCE ( - - 74, - 54 * ( ( + - 1 ) ) + - SUM ( + 60 ) ) * - ( + 82 ) AS col2
----
-6068

onlyif mysql # aggregate syntax: 
query II rowsort label-1095
SELECT ALL + 85 * + - 51 col0, - 49 + 19 * - 89 + + COUNT( * ) AS col1
----
-4335
-1739

skipif mysql # not compatible
query II rowsort label-1095
SELECT ALL + 85 * + - 51 col0, - 49 + 19 * - 89 + + COUNT ( * ) AS col1
----
-4335
-1739

query I rowsort
SELECT + 15 + 79
----
94

query I rowsort
SELECT DISTINCT 39 * 5 AS col1
----
195

query I rowsort
SELECT ALL 77 * + 57 - + 47 AS col1
----
4342

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1099
SELECT + COUNT( * ) DIV + + 54 AS col1, COUNT( * ) + ( + + 91 ) * + 20 * 9 AS col1
----
0
16381

skipif mysql # not compatible
query II rowsort label-1099
SELECT + COUNT ( * ) / + + 54 AS col1, COUNT ( * ) + ( + + 91 ) * + 20 * 9 AS col1
----
0
16381

query I rowsort
SELECT + 85 * + 11
----
935

query I rowsort
SELECT - 47 + - 27
----
-74

query I rowsort
SELECT + 86 * COALESCE ( + + 98, - 71 ) * + + 55
----
463540

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT + NULLIF ( NULLIF ( - 77, + - COUNT( * ) ), - 21 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + NULLIF ( NULLIF ( - 77, + - COUNT ( * ) ), - 21 ) AS col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1104
SELECT DISTINCT - 39 + - COUNT( * ) DIV - 15 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT - 39 + - COUNT ( * ) / - 15 AS col1
----
-39

query I rowsort
SELECT - - NULLIF ( - 97, + COALESCE ( + + 70, - ( + 76 ) + - 86 + + - 69 + - - 25 + + 91 ) * - 12 )
----
-97

query I rowsort
SELECT ALL + 6 + - - 81 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + + 0 - - COUNT( ALL - 33 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1107
SELECT + + 0 - - COUNT ( ALL - 33 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1108
SELECT + - NULLIF ( 91, COUNT( * ) ) - + 50 + 58 + - 79 DIV 77 + - - 71
----
-13

skipif mysql # not compatible
query I rowsort label-1108
SELECT + - NULLIF ( 91, COUNT ( * ) ) - + 50 + 58 + - 79 / 77 + - - 71
----
-13

query I rowsort
SELECT - 76 * 19 * 50 * - - 55
----
-3971000

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT - + 46 * ( ( 74 ) ) * - - 46 + - 23 * - 83 + + COUNT( * ) AS col2
----
-154674

skipif mysql # not compatible
query I rowsort label-1110
SELECT - + 46 * ( ( 74 ) ) * - - 46 + - 23 * - 83 + + COUNT ( * ) AS col2
----
-154674

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1112
SELECT ALL - + MIN( DISTINCT - CAST( - + 80 AS SIGNED ) ) DIV 23 + + - 82
----
-85

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL - + MIN ( DISTINCT - CAST ( - + 80 AS INTEGER ) ) / 23 + + - 82
----
-85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT - COUNT( ALL - 64 ) * + 42 - 76
----
-118

skipif mysql # not compatible
query I rowsort label-1114
SELECT - COUNT ( ALL - 64 ) * + 42 - 76
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1115
SELECT ALL 25 DIV - + 22 + 28 * + COUNT( * ) + 11 * 16
----
203

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL 25 / - + 22 + 28 * + COUNT ( * ) + 11 * 16
----
203

query II rowsort
SELECT ALL - 81 col0, - 77
----
-81
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1117
SELECT + 29, CAST( - 98 AS SIGNED ) * + 58 AS col1
----
29
-5684

skipif mysql # not compatible
query II rowsort label-1117
SELECT + 29, CAST ( - 98 AS INTEGER ) * + 58 AS col1
----
29
-5684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1118
SELECT 36 * - ( 95 ) AS col1, CAST( NULL AS SIGNED ) + + 19 + - + 98 + COUNT( * ) + + 69 + 30 * + 97
----
-3420
NULL

skipif mysql # not compatible
query II rowsort label-1118
SELECT 36 * - ( 95 ) AS col1, CAST ( NULL AS INTEGER ) + + 19 + - + 98 + COUNT ( * ) + + 69 + 30 * + 97
----
-3420
NULL

query I rowsort
SELECT 13 * + 69 AS col0
----
897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1120
SELECT DISTINCT - CAST( - CAST( - 30 AS SIGNED ) AS SIGNED ) - - + 12 + - 36
----
-54

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - CAST ( - CAST ( - 30 AS INTEGER ) AS INTEGER ) - - + 12 + - 36
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT 26 * - - ( 24 ) * + COUNT( * )
----
624

skipif mysql # not compatible
query I rowsort label-1121
SELECT 26 * - - ( 24 ) * + COUNT ( * )
----
624

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

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

query II rowsort
SELECT ALL - 3, 7 AS col0
----
-3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT DISTINCT - CASE 31 WHEN - - 25 THEN + COUNT( * ) WHEN - + 4 * - 27 THEN 39 WHEN + COUNT( * ) THEN NULL ELSE - - 13 * - + 11 * - 44 END
----
-6292

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT - CASE 31 WHEN - - 25 THEN + COUNT ( * ) WHEN - + 4 * - 27 THEN 39 WHEN + COUNT ( * ) THEN NULL ELSE - - 13 * - + 11 * - 44 END
----
-6292

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT SUM( DISTINCT + 42 ) * - 63 * + 1 * 38 - - 38 AS col0
----
-100510

skipif mysql # not compatible
query I rowsort label-1125
SELECT SUM ( DISTINCT + 42 ) * - 63 * + 1 * 38 - - 38 AS col0
----
-100510

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

query I rowsort
SELECT 32 + - NULLIF ( 22, 13 * + 56 ) * + NULLIF ( + + 81, 37 ) * - - 74 * 10 + - 86 AS col1
----
-1318734

query I rowsort
SELECT ALL 26 * + 62
----
1612

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT CASE + - SUM( + ( + CASE + 73 WHEN + 63 * 41 THEN - 98 END ) ) WHEN + MAX( 22 ) THEN 79 + + + 29 + - - COALESCE ( + 10, - COUNT( * ) + - 6 ) * - + 57 WHEN 74 + + 40 * 71 / - + 16 THEN ( 99 ) + + 7 END * - 97, 44 * - 93 + - 23 col0
----
NULL
-4115

skipif mysql # not compatible
query II rowsort label-1129
SELECT CASE + - SUM ( + ( + CASE + 73 WHEN + 63 * 41 THEN - 98 END ) ) WHEN + MAX ( 22 ) THEN 79 + + + 29 + - - COALESCE ( + 10, - COUNT ( * ) + - 6 ) * - + 57 WHEN 74 + + 40 * 71 / - + 16 THEN ( 99 ) + + 7 END * - 97, 44 * - 93 + - 23 col0
----
NULL
-4115

onlyif mysql # DIV for integer division: 
query II rowsort label-1130
SELECT ( - 40 ) DIV + + 17 col2, + 36 AS col1
----
-2
36

skipif mysql # not compatible
query II rowsort label-1130
SELECT ( - 40 ) / + + 17 col2, + 36 AS col1
----
-2
36

query I rowsort
SELECT ALL + 70 + - 42
----
28

query I rowsort
SELECT ALL + 1 + 28 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1133
SELECT ALL + CAST( NULL AS SIGNED ) + - 96 + SUM( - 47 ) + + 6 * - + 46 + + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL + CAST ( NULL AS INTEGER ) + - 96 + SUM ( - 47 ) + + 6 * - + 46 + + 65 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1134
SELECT + 10 AS col2, - 63 - - + ( + 14 ) + - 7 * COUNT( * )
----
10
-56

skipif mysql # not compatible
query II rowsort label-1134
SELECT + 10 AS col2, - 63 - - + ( + 14 ) + - 7 * COUNT ( * )
----
10
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT 93 DIV 76 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1135
SELECT 93 / 76 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT - MAX( ALL 55 ) + - 18 * 17 - - ( 99 ) col1
----
-262

skipif mysql # not compatible
query I rowsort label-1136
SELECT - MAX ( ALL 55 ) + - 18 * 17 - - ( 99 ) col1
----
-262

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT - 73 DIV - 88 + + - 61
----
-61

skipif mysql # not compatible
query I rowsort label-1137
SELECT - 73 / - 88 + + - 61
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1138
SELECT - 47 - + 11 * + 69 * - MIN( DISTINCT - + 50 ) AS col1, - 42
----
-37997
-42

skipif mysql # not compatible
query II rowsort label-1138
SELECT - 47 - + 11 * + 69 * - MIN ( DISTINCT - + 50 ) AS col1, - 42
----
-37997
-42

query I rowsort
SELECT + COALESCE ( - + 44, 65 + + 47 + + 77 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT + 27 + - 28 - COUNT( * ) + 38
----
36

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT + 27 + - 28 - COUNT ( * ) + 38
----
36

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

skipif mysql # not compatible
query I rowsort label-1141
SELECT - ( + + MAX ( + + 78 ) )
----
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-1142
SELECT DISTINCT + 8 AS col1, + 97 DIV 40
----
8
2

skipif mysql # not compatible
query II rowsort label-1142
SELECT DISTINCT + 8 AS col1, + 97 / 40
----
8
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT DISTINCT + ( - NULLIF ( - 54, 83 ) ) * + + NULLIF ( - - CASE - 64 WHEN + - 13 THEN NULL WHEN - + COUNT( * ) + - - 93 THEN - - 97 ELSE NULL END, + + 38 ) * 90 + + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT + ( - NULLIF ( - 54, 83 ) ) * + + NULLIF ( - - CASE - 64 WHEN + - 13 THEN NULL WHEN - + COUNT ( * ) + - - 93 THEN - - 97 ELSE NULL END, + + 38 ) * 90 + + 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL - 33 - + COUNT( DISTINCT - + 17 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL - 33 - + COUNT ( DISTINCT - + 17 ) AS col1
----
-34

query I rowsort
SELECT + + 41 * - 58 * - 89 + - + 21 AS col1
----
211621

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT DISTINCT COALESCE ( - + 96, + 68 * - SUM( + + 71 ) ) * 60 - - + 62 AS col2
----
-5698

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT COALESCE ( - + 96, + 68 * - SUM ( + + 71 ) ) * 60 - - + 62 AS col2
----
-5698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1147
SELECT ( 92 ) / - + COUNT( * ) + + CAST( + 45 AS SIGNED ) + - + 23 + COALESCE ( + - COUNT( * ), 20 ) + + CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) + MAX( - COALESCE ( - + 54, + NULLIF ( - - 14, + - 1 ) ) ) * MAX( - - 37 ) / + ( + 95 ) * - 20 * - 2 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT ( 92 ) / - + COUNT ( * ) + + CAST ( + 45 AS INTEGER ) + - + 23 + COALESCE ( + - COUNT ( * ), 20 ) + + CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) + MAX ( - COALESCE ( - + 54, + NULLIF ( - - 14, + - 1 ) ) ) * MAX ( - - 37 ) / + ( + 95 ) * - 20 * - 2 * + 77
----
NULL

query II rowsort
SELECT 11, + 44 AS col0
----
11
44

query I rowsort
SELECT 36 * 13 * - 2 AS col0
----
-936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT CAST( NULL AS SIGNED ) + - 69 * - 96 / 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1150
SELECT CAST ( NULL AS INTEGER ) + - 69 * - 96 / 93
----
NULL

query I rowsort
SELECT ALL - CASE - 74 WHEN + 83 THEN NULL ELSE 22 END AS col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT 26 DIV - 26 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1152
SELECT 26 / - 26 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT ALL - COUNT( * ) col1, + NULLIF ( + 98, - 26 )
----
-1
98

skipif mysql # not compatible
query II rowsort label-1153
SELECT ALL - COUNT ( * ) col1, + NULLIF ( + 98, - 26 )
----
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT - COUNT( * ) * - + 14 + 50
----
64

skipif mysql # not compatible
query I rowsort label-1154
SELECT - COUNT ( * ) * - + 14 + 50
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT 22 + - 10 DIV 8 - 15
----
6

skipif mysql # not compatible
query I rowsort label-1155
SELECT 22 + - 10 / 8 - 15
----
6

query I rowsort
SELECT 58 - + - 38 * - 63 AS col1
----
-2336

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

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

query I rowsort
SELECT 67 + + 46 * + + 11
----
573

query I rowsort
SELECT DISTINCT + 50 + 70 col0
----
120

query I rowsort
SELECT 57 + - 36 AS col2
----
21

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

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT MAX ( - - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT DISTINCT + + COUNT( * ) + + + 86 + - + 57
----
30

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT + + COUNT ( * ) + + + 86 + - + 57
----
30

query I rowsort
SELECT ALL - 50 + + 2 * 66 AS col0
----
82

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

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

query I rowsort
SELECT DISTINCT ( 96 )
----
96

query II rowsort
SELECT + 83 AS col2, + 57 AS col1
----
83
57

query II rowsort
SELECT + 5, + 68 AS col0
----
5
68

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1169
SELECT MIN( 17 ) + - 61 * CAST( 54 AS SIGNED ) * ( + 15 ) DIV + 87 + - 23 + 71 + + COUNT( * ) AS col1
----
-501

skipif mysql # not compatible
query I rowsort label-1169
SELECT MIN ( 17 ) + - 61 * CAST ( 54 AS INTEGER ) * ( + 15 ) / + 87 + - 23 + 71 + + COUNT ( * ) AS col1
----
-501

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1171
SELECT 92, 62 DIV - + 44 + - 70 AS col0
----
92
-71

skipif mysql # not compatible
query II rowsort label-1171
SELECT 92, 62 / - + 44 + - 70 AS col0
----
92
-71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT ALL - - 83 DIV 42 * - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL - - 83 / 42 * - 92 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1174
SELECT CAST( NULL AS SIGNED ) * + + 13 * 67 - - CASE + 94 WHEN - 39 + 16 THEN - 45 * 17 * + 82 * - + 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT CAST ( NULL AS INTEGER ) * + + 13 * 67 - - CASE + 94 WHEN - 39 + 16 THEN - 45 * 17 * + 82 * - + 44 END AS col0
----
NULL

query I rowsort
SELECT 49 + + 27
----
76

query II rowsort
SELECT + ( + 39 ) + + 99 - 39, - ( + 5 ) AS col1
----
99
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL - CASE + 48 WHEN 55 / - - NULLIF ( SUM( DISTINCT - 7 ), + - 10 ) + + - ( + CASE + 96 WHEN - 86 + 23 THEN NULL ELSE - 84 END ) THEN + 89 WHEN 95 * - + COUNT( * ) THEN 88 + 6 END - + 11 - + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL - CASE + 48 WHEN 55 / - - NULLIF ( SUM ( DISTINCT - 7 ), + - 10 ) + + - ( + CASE + 96 WHEN - 86 + 23 THEN NULL ELSE - 84 END ) THEN + 89 WHEN 95 * - + COUNT ( * ) THEN 88 + 6 END - + 11 - + 97 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1178
SELECT - 78 - - CAST( NULL AS SIGNED ) / 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1178
SELECT - 78 - - CAST ( NULL AS INTEGER ) / 61
----
NULL

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

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

query I rowsort
SELECT ALL + NULLIF ( + - 33, + - 6 ) col2
----
-33

query I rowsort
SELECT + - 60 + - 17
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1182
SELECT + - 2 DIV + + COUNT( * ) + + 31
----
29

skipif mysql # not compatible
query I rowsort label-1182
SELECT + - 2 / + + COUNT ( * ) + + 31
----
29

query I rowsort
SELECT + 46 * + + 89
----
4094

query I rowsort
SELECT + 52 + + 34 * 39
----
1378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1185
SELECT + CASE 21 WHEN - + 51 * - 47 + + 76 * - ( - 45 ) - + COUNT( * ) * - 16 THEN NULL WHEN + - ( COUNT( * ) ) * CASE + COUNT( * ) WHEN - COUNT( * ) THEN - MIN( ALL - + 67 ) ELSE NULL END * 65 * - COALESCE ( 67, + COALESCE ( + CASE 70 WHEN - 88 * 15 THEN + COALESCE ( 89, - + ( - COUNT( * ) ) + + 4 + - 8 / + - 96 * 13 * + 95 ) + 70 + + 33 WHEN - 48 THEN - 80 ELSE 62 END, - 83 ), - 3 * - COUNT( * ) - + 62 + + + 45 / + 32 * - 99 + 48 + 1 * 98 * COUNT( * ), 77 * 0 ) * - CAST( ( 60 ) + - COALESCE ( + MAX( ALL + 70 ), 17 ) AS SIGNED ) - - 92 * - 3 + 95 THEN NULL ELSE 65 END AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1185
SELECT + CASE 21 WHEN - + 51 * - 47 + + 76 * - ( - 45 ) - + COUNT ( * ) * - 16 THEN NULL WHEN + - ( COUNT ( * ) ) * CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN - MIN ( ALL - + 67 ) ELSE NULL END * 65 * - COALESCE ( 67, + COALESCE ( + CASE 70 WHEN - 88 * 15 THEN + COALESCE ( 89, - + ( - COUNT ( * ) ) + + 4 + - 8 / + - 96 * 13 * + 95 ) + 70 + + 33 WHEN - 48 THEN - 80 ELSE 62 END, - 83 ), - 3 * - COUNT ( * ) - + 62 + + + 45 / + 32 * - 99 + 48 + 1 * 98 * COUNT ( * ), 77 * 0 ) * - CAST ( ( 60 ) + - COALESCE ( + MAX ( ALL + 70 ), 17 ) AS INTEGER ) - - 92 * - 3 + 95 THEN NULL ELSE 65 END AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL - CASE - 93 WHEN 61 * - + 75 - + 51 + - CAST( NULL AS SIGNED ) * - COUNT( * ) * 22 THEN + 37 / - 93 * + 67 * - 69 * - - 58 + - 92 WHEN - - COUNT( * ) - + 45 + - COALESCE ( + 8, + 40 ) * 86 / ( 63 ) THEN + 36 * + 79 * 29 * + 5 ELSE NULL END * ( - CAST( NULL AS SIGNED ) ) * 11 - - + 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - CASE - 93 WHEN 61 * - + 75 - + 51 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 22 THEN + 37 / - 93 * + 67 * - 69 * - - 58 + - 92 WHEN - - COUNT ( * ) - + 45 + - COALESCE ( + 8, + 40 ) * 86 / ( 63 ) THEN + 36 * + 79 * 29 * + 5 ELSE NULL END * ( - CAST ( NULL AS INTEGER ) ) * 11 - - + 59 col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT DISTINCT + COUNT( CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT CASE 20 WHEN - 30 - ( 49 ) THEN + 20 + + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1189
SELECT CASE 20 WHEN - 30 - ( 49 ) THEN + 20 + + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT CASE 3 WHEN - 66 THEN - - 95 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT - 96 * + - COUNT( + 20 ) - - - COALESCE ( + 24, - 91 ) col0
----
72

skipif mysql # not compatible
query I rowsort label-1191
SELECT - 96 * + - COUNT ( + 20 ) - - - COALESCE ( + 24, - 91 ) col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1192
SELECT ALL + 26 * + + CAST( - - 97 AS SIGNED ) col1
----
2522

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + 26 * + + CAST ( - - 97 AS INTEGER ) col1
----
2522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1193
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col2, 33 + - + ( + 11 ) * + COUNT( * ) col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-1193
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col2, 33 + - + ( + 11 ) * + COUNT ( * ) col1
----
NULL
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1194
SELECT + MAX( DISTINCT + + 83 ) AS col2, + 58 AS col0
----
83
58

skipif mysql # not compatible
query II rowsort label-1194
SELECT + MAX ( DISTINCT + + 83 ) AS col2, + 58 AS col0
----
83
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT + ( COUNT( * ) ), COUNT( ALL + - 29 ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-1195
SELECT + ( COUNT ( * ) ), COUNT ( ALL + - 29 ) col1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT + 56 * + + CAST( + + 4 AS SIGNED ) col0
----
224

skipif mysql # not compatible
query I rowsort label-1196
SELECT + 56 * + + CAST ( + + 4 AS INTEGER ) col0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT COALESCE ( NULLIF ( + + COUNT( * ), - 5 ), + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1197
SELECT COALESCE ( NULLIF ( + + COUNT ( * ), - 5 ), + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT COALESCE ( - + 16, - 19 + 67 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL COUNT( * ) * 11 + - 62
----
-51

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL COUNT ( * ) * 11 + - 62
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT CASE - 65 WHEN + + COUNT( * ) THEN + 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT CASE - 65 WHEN + + COUNT ( * ) THEN + 18 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1201
SELECT DISTINCT + CASE - COUNT( * ) WHEN + - 12 THEN 45 * - CAST( 71 AS DECIMAL ) ELSE NULL END * + 39 * 12 * - + ( - SUM( 9 ) ) - - - NULLIF ( + 41, + 16 ) + + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + - 12 THEN 45 * - CAST ( 71 AS REAL ) ELSE NULL END * + 39 * 12 * - + ( - SUM ( 9 ) ) - - - NULLIF ( + 41, + 16 ) + + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT ALL COUNT( * ) * 82 + + 96 + - + 29 + - COALESCE ( - 89, 37 * - COUNT( * ) ) * + NULLIF ( 63, COUNT( * ) + - 15 + - 27 )
----
5756

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL COUNT ( * ) * 82 + + 96 + - + 29 + - COALESCE ( - 89, 37 * - COUNT ( * ) ) * + NULLIF ( 63, COUNT ( * ) + - 15 + - 27 )
----
5756

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT SUM( ALL 84 ), 53 * + COUNT( * ) + 64 AS col0
----
84
117

skipif mysql # not compatible
query II rowsort label-1203
SELECT SUM ( ALL 84 ), 53 * + COUNT ( * ) + 64 AS col0
----
84
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL 39 * - 9 * + 27 + + 67 + 37 * - - 72 * - 15 * - - 56 * SUM( ALL 22 )
----
-49240130

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL 39 * - 9 * + 27 + + 67 + 37 * - - 72 * - 15 * - - 56 * SUM ( ALL 22 )
----
-49240130

query I rowsort
SELECT ALL - 34 * 82 * - 80 + + 58
----
223098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1206
SELECT DISTINCT - COUNT( + 79 ) DIV 22 * - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT - COUNT ( + 79 ) / 22 * - 67 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1207
SELECT + COUNT( * ) * 3 + + ( + - CAST( NULL AS SIGNED ) ) + + - 3 - 81 - ( - CASE - 31 WHEN - - MIN( 54 ) + + + 15 THEN NULL ELSE 11 / COALESCE ( + CASE - 32 WHEN 56 THEN - 21 END, + + 37 - - + 23, - 0 ) END ) * + CAST( + 64 AS SIGNED ) AS col2, 14 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-1207
SELECT + COUNT ( * ) * 3 + + ( + - CAST ( NULL AS INTEGER ) ) + + - 3 - 81 - ( - CASE - 31 WHEN - - MIN ( 54 ) + + + 15 THEN NULL ELSE 11 / COALESCE ( + CASE - 32 WHEN 56 THEN - 21 END, + + 37 - - + 23, - 0 ) END ) * + CAST ( + 64 AS INTEGER ) AS col2, 14 AS col2
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT + - COUNT( * ) + - + 55
----
-56

skipif mysql # not compatible
query I rowsort label-1208
SELECT + - COUNT ( * ) + - + 55
----
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-1209
SELECT - - 7 DIV + 13 AS col0, 75 AS col0
----
0
75

skipif mysql # not compatible
query II rowsort label-1209
SELECT - - 7 / + 13 AS col0, 75 AS col0
----
0
75

query I rowsort
SELECT - + 38 + - + 42
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-1211
SELECT - + 33 * COUNT( DISTINCT 32 ) AS col2, 53 col1
----
-33
53

skipif mysql # not compatible
query II rowsort label-1211
SELECT - + 33 * COUNT ( DISTINCT 32 ) AS col2, 53 col1
----
-33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL + + 22 - + COALESCE ( + COUNT( * ), 45 * SUM( DISTINCT 44 ) ) + + + ( - + 76 ) + - 92
----
-147

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL + + 22 - + COALESCE ( + COUNT ( * ), 45 * SUM ( DISTINCT 44 ) ) + + + ( - + 76 ) + - 92
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL ( MAX( ALL + 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL ( MAX ( ALL + 63 ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1214
SELECT DISTINCT - 99 - - NULLIF ( - 70, - CAST( + + 69 AS SIGNED ) ), - 96 * MAX( DISTINCT - 74 ) * 27 col1
----
-169
191808

skipif mysql # not compatible
query II rowsort label-1214
SELECT DISTINCT - 99 - - NULLIF ( - 70, - CAST ( + + 69 AS INTEGER ) ), - 96 * MAX ( DISTINCT - 74 ) * 27 col1
----
-169
191808

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT SUM( ALL + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT SUM ( ALL + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - COUNT( * ) + + + 71 * 6 + - 19
----
406

skipif mysql # not compatible
query I rowsort label-1216
SELECT - COUNT ( * ) + + + 71 * 6 + - 19
----
406

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL - MIN( ALL 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL - MIN ( ALL 37 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL - CAST( 31 AS SIGNED ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL - CAST ( 31 AS INTEGER ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT - - 6 * - 81 + + COUNT( * ) + - 61
----
-546

skipif mysql # not compatible
query I rowsort label-1219
SELECT - - 6 * - 81 + + COUNT ( * ) + - 61
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT - + MAX( + 27 ) * + 78 + - 39 AS col0
----
-2145

skipif mysql # not compatible
query I rowsort label-1220
SELECT - + MAX ( + 27 ) * + 78 + - 39 AS col0
----
-2145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1221
SELECT - + COALESCE ( + SUM( DISTINCT + CAST( NULL AS SIGNED ) ), 56, + 28 ) + + 67 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1221
SELECT - + COALESCE ( + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ), 56, + 28 ) + + 67 AS col1
----
11

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1223
SELECT + - SUM( + 22 ) + ( COALESCE ( - 13, + SUM( DISTINCT 16 ) - CAST( NULL AS SIGNED ), MAX( ALL + - 82 ) * CASE + 69 WHEN + + COUNT( * ) THEN + NULLIF ( 67, - - COUNT( * ) ) WHEN - 16 THEN COUNT( * ) + - 26 ELSE NULL END ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1223
SELECT + - SUM ( + 22 ) + ( COALESCE ( - 13, + SUM ( DISTINCT 16 ) - CAST ( NULL AS INTEGER ), MAX ( ALL + - 82 ) * CASE + 69 WHEN + + COUNT ( * ) THEN + NULLIF ( 67, - - COUNT ( * ) ) WHEN - 16 THEN COUNT ( * ) + - 26 ELSE NULL END ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT ALL - 51 * + + COUNT( * ) + 9
----
-42

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - 51 * + + COUNT ( * ) + 9
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT - 23 DIV 65 * - 78 * - 48
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT - 23 / 65 * - 78 * - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL COALESCE ( - + COUNT( * ), 74 * + 20 * + 15, COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL COALESCE ( - + COUNT ( * ), 74 * + 20 * + 15, COUNT ( * ) ) AS col1
----
-1

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

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

query I rowsort
SELECT DISTINCT ( - ( - NULLIF ( + 39, 82 + - 19 * - 60 ) ) ) AS col1
----
39

query I rowsort
SELECT ALL - ( + - ( - 40 ) ) * 30
----
-1200

query I rowsort
SELECT + 93 * + 19
----
1767

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT ALL + NULLIF ( - 24, - - 84 + - + 95 + + 36 ) DIV - - 80 + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL + NULLIF ( - 24, - - 84 + - + 95 + + 36 ) / - - 80 + 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT - 92 * + COUNT( * ) + + + 18
----
-74

skipif mysql # not compatible
query I rowsort label-1232
SELECT - 92 * + COUNT ( * ) + + + 18
----
-74

query I rowsort
SELECT - 33 + + 26 AS col0
----
-7

query I rowsort
SELECT + 39 * - - 72
----
2808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT CAST( - 78 AS SIGNED ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-1235
SELECT CAST ( - 78 AS INTEGER ) AS col0
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT ALL - 21 DIV + NULLIF ( + 54, + - COUNT( * ) ) + - - 91
----
91

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL - 21 / + NULLIF ( + 54, + - COUNT ( * ) ) + - - 91
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT + COALESCE ( 23, 44 + - ( 74 ) ) DIV + 8 - + 14 + - + 11 * + - 14 col2
----
142

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT + COALESCE ( 23, 44 + - ( 74 ) ) / + 8 - + 14 + - + 11 * + - 14 col2
----
142

query I rowsort
SELECT ALL 97 * - 32 * - - 54
----
-167616

query I rowsort
SELECT 68 * + - 42 * 82 + 69 AS col0
----
-234123

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT ALL 66 DIV 80 * + + 33 + + 80
----
80

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL 66 / 80 * + + 33 + + 80
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT + 60 DIV + ( - 71 ) + 27 * - 95
----
-2565

skipif mysql # not compatible
query I rowsort label-1241
SELECT + 60 / + ( - 71 ) + 27 * - 95
----
-2565

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1242
SELECT ALL SUM( - 8 ) * - 59 + + 39 + - ( - + 55 ), 94 * - - 30 DIV 10 AS col1
----
566
282

skipif mysql # not compatible
query II rowsort label-1242
SELECT ALL SUM ( - 8 ) * - 59 + + 39 + - ( - + 55 ), 94 * - - 30 / 10 AS col1
----
566
282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1243
SELECT + CAST( + + ( + SUM( - 69 ) ) AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-1243
SELECT + CAST ( + + ( + SUM ( - 69 ) ) AS INTEGER )
----
-69

query I rowsort
SELECT + 55 + + + 68 AS col2
----
123

query I rowsort
SELECT ALL 61 * 83 AS col0
----
5063

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

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

query II rowsort
SELECT + 86 + - 3 + 8 AS col0, - 90
----
91
-90

query II rowsort
SELECT + NULLIF ( + 65, + 28 ) AS col2, 21
----
65
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1250
SELECT 62 * - CAST( NULL AS SIGNED ) + - 35 + + 80 + + 9 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1250
SELECT 62 * - CAST ( NULL AS INTEGER ) + - 35 + + 80 + + 9 * + 32
----
NULL

query II rowsort
SELECT + 53 * + 59 + + 47, ( + 95 ) + - 13 + + 66 * + 10 AS col2
----
3174
742

onlyif mysql # DIV for integer division: 
query I rowsort label-1252
SELECT ALL - 7 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL - 7 / - 75
----
0

query I rowsort
SELECT 1 + + - 24
----
-23

query I rowsort
SELECT ALL + 96 - 9 AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1255
SELECT + 89 * + + CAST( + 69 AS SIGNED ) AS col2
----
6141

skipif mysql # not compatible
query I rowsort label-1255
SELECT + 89 * + + CAST ( + 69 AS INTEGER ) AS col2
----
6141

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL - 15 - COUNT( ( 59 ) ) * - - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - 15 - COUNT ( ( 59 ) ) * - - COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1257
SELECT ALL + COUNT( * ) DIV + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + COUNT ( * ) / + 94 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT - 16 DIV 52 - - MAX( DISTINCT + + COALESCE ( - 80, - + NULLIF ( + 26, + 50 ) ) ) - + 85
----
-165

skipif mysql # not compatible
query I rowsort label-1258
SELECT - 16 / 52 - - MAX ( DISTINCT + + COALESCE ( - 80, - + NULLIF ( + 26, + 50 ) ) ) - + 85
----
-165

query I rowsort
SELECT - 55 * - 82 * + 92 + - 9
----
414911

query II rowsort
SELECT 70 + ( - 79 ) AS col1, + 46
----
-9
46

query I rowsort
SELECT 58 * - - CASE - 25 WHEN - 84 THEN NULL ELSE + - 94 END + + 35 * 36
----
-4192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1262
SELECT COALESCE ( + - CAST( - + 14 AS SIGNED ), + 99 )
----
14

skipif mysql # not compatible
query I rowsort label-1262
SELECT COALESCE ( + - CAST ( - + 14 AS INTEGER ), + 99 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT 17 + 40 + - ( + 4 ) + + COUNT( * ) * - 98, 34 + + + 65 AS col1
----
-45
99

skipif mysql # not compatible
query II rowsort label-1263
SELECT 17 + 40 + - ( + 4 ) + + COUNT ( * ) * - 98, 34 + + + 65 AS col1
----
-45
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT - 9, - COUNT( * ) * 30 - - + 98 AS col1
----
-9
68

skipif mysql # not compatible
query II rowsort label-1264
SELECT - 9, - COUNT ( * ) * 30 - - + 98 AS col1
----
-9
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL 5 * + + 9 * - ( - COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL 5 * + + 9 * - ( - COUNT ( * ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT 32 + + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-1266
SELECT 32 + + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT 26 - - SUM( + 86 ) + - + 32 - + 60 - - - 57 * + - 11 AS col1
----
647

skipif mysql # not compatible
query I rowsort label-1267
SELECT 26 - - SUM ( + 86 ) + - + 32 - + 60 - - - 57 * + - 11 AS col1
----
647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT DISTINCT + 63 + CAST( - - 0 AS SIGNED ) * 61 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT + 63 + CAST ( - - 0 AS INTEGER ) * 61 AS col0
----
63

query I rowsort
SELECT 77 + 11 AS col0
----
88

query I rowsort
SELECT DISTINCT + 91 * + + 29 * - 99 AS col1
----
-261261

query I rowsort
SELECT ALL - 36 + - - 57 * + + 88 AS col1
----
4980

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT 67 DIV 54 * - 1 * - 87 DIV - 1 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-1272
SELECT 67 / 54 * - 1 * - 87 / - 1 AS col0
----
-87

query I rowsort
SELECT DISTINCT 15 + + - 4 - - - 44
----
-33

query I rowsort
SELECT DISTINCT + 91 * - 13
----
-1183

query I rowsort
SELECT 50 * - + 94
----
-4700

query I rowsort
SELECT ALL + 73 * 29 AS col1
----
2117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1277
SELECT SUM( 87 ) DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-1277
SELECT SUM ( 87 ) / - 73
----
-1

query II rowsort
SELECT 47 * 33 + + 71 + 17 * 9, 93 col0
----
1775
93

query II rowsort
SELECT ALL - ( + - 15 ), 67 AS col2
----
15
67

query I rowsort
SELECT DISTINCT - + 38 AS col2
----
-38

query I rowsort
SELECT - 55 * - + 86 + - 50
----
4680

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + COALESCE ( 78, + 1, + COUNT( * ) ) col1
----
78

skipif mysql # not compatible
query I rowsort label-1283
SELECT + COALESCE ( 78, + 1, + COUNT ( * ) ) col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT + + MIN( ALL - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-1284
SELECT + + MIN ( ALL - 42 )
----
-42

query I rowsort
SELECT ALL 83 * + 74 AS col2
----
6142

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT 26 * + - CASE ( COUNT( * ) ) WHEN 61 THEN - + 84 WHEN - - NULLIF ( 89, COALESCE ( COUNT( * ), + 44 * + 72 ) - + 47 + 86 * - 73 + + + 67 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT 26 * + - CASE ( COUNT ( * ) ) WHEN 61 THEN - + 84 WHEN - - NULLIF ( 89, COALESCE ( COUNT ( * ), + 44 * + 72 ) - + 47 + 86 * - 73 + + + 67 ) THEN NULL END
----
NULL

query I rowsort
SELECT + 23 * - 10
----
-230

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1289
SELECT + 80 + - 98 AS col2, COUNT( + 32 )
----
-18
1

skipif mysql # not compatible
query II rowsort label-1289
SELECT + 80 + - 98 AS col2, COUNT ( + 32 )
----
-18
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1290
SELECT ALL - COUNT( * ) * - - CASE 91 WHEN CASE 83 WHEN + 3 THEN - CAST( COUNT( * ) AS SIGNED ) + 84 WHEN - - 71 THEN NULL END THEN NULL WHEN + - COUNT( * ) * - CAST( NULL AS SIGNED ) THEN NULL ELSE + 99 END
----
-99

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL - COUNT ( * ) * - - CASE 91 WHEN CASE 83 WHEN + 3 THEN - CAST ( COUNT ( * ) AS INTEGER ) + 84 WHEN - - 71 THEN NULL END THEN NULL WHEN + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 99 END
----
-99

query I rowsort
SELECT - 89 * + 53 * + 74
----
-349058

query I rowsort
SELECT ALL 99 + + 73
----
172

query I rowsort
SELECT ALL ( + 47 ) + 82 AS col1
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1294
SELECT COALESCE ( + ( - - COUNT( * ) ), + 65 ) + + 63 - - 64 + - 21 + - 7 DIV + 66
----
107

skipif mysql # not compatible
query I rowsort label-1294
SELECT COALESCE ( + ( - - COUNT ( * ) ), + 65 ) + + 63 - - 64 + - 21 + - 7 / + 66
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1295
SELECT - 34 AS col0, AVG ( DISTINCT CAST( NULL AS SIGNED ) ) / - + 80
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-1295
SELECT - 34 AS col0, AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) / - + 80
----
-34
NULL

query I rowsort
SELECT 67 * + + 86 AS col0
----
5762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT 71 + CAST( + 26 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-1297
SELECT 71 + CAST ( + 26 AS INTEGER )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1298
SELECT ALL + 77 * - CASE + MIN( DISTINCT - 7 ) WHEN + 68 THEN - COUNT( * ) * 84 - - 25 * - - 76 + + - 53 + + 53 WHEN ( 5 ) * + 71 / - 73 * + 3 + + + AVG ( + - 83 ) - + ( - 29 ) + 92 * 41 + - 50 * + + 30 + - 59 * + CASE + - 25 WHEN 85 + 20 * + 67 / + - 99 * + - COUNT( * ) THEN + 22 ELSE + CASE + 84 WHEN + 76 THEN NULL WHEN 79 * 92 THEN NULL WHEN - 21 THEN + + 10 / + 97 * + CAST( - 8 AS SIGNED ) ELSE + 63 END END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL + 77 * - CASE + MIN ( DISTINCT - 7 ) WHEN + 68 THEN - COUNT ( * ) * 84 - - 25 * - - 76 + + - 53 + + 53 WHEN ( 5 ) * + 71 / - 73 * + 3 + + + AVG ( + - 83 ) - + ( - 29 ) + 92 * 41 + - 50 * + + 30 + - 59 * + CASE + - 25 WHEN 85 + 20 * + 67 / + - 99 * + - COUNT ( * ) THEN + 22 ELSE + CASE + 84 WHEN + 76 THEN NULL WHEN 79 * 92 THEN NULL WHEN - 21 THEN + + 10 / + 97 * + CAST ( - 8 AS INTEGER ) ELSE + 63 END END THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1299
SELECT - 91 AS col2, + COUNT( * ) * + 74 * - 4 * - 83 * + 98 * - CAST( CAST( - 53 AS SIGNED ) AS SIGNED ) AS col1
----
-91
127606192

skipif mysql # not compatible
query II rowsort label-1299
SELECT - 91 AS col2, + COUNT ( * ) * + 74 * - 4 * - 83 * + 98 * - CAST ( CAST ( - 53 AS INTEGER ) AS INTEGER ) AS col1
----
-91
127606192

onlyif mysql # aggregate syntax: 
query II rowsort label-1300
SELECT CASE - + 91 WHEN + 85 THEN 74 + + NULLIF ( + + 94, - 72 ) ELSE NULL END * ( + MIN( + + 2 ) ) * + AVG ( ALL + - 65 ) + 65 AS col1, - 50
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-1300
SELECT CASE - + 91 WHEN + 85 THEN 74 + + NULLIF ( + + 94, - 72 ) ELSE NULL END * ( + MIN ( + + 2 ) ) * + AVG ( ALL + - 65 ) + 65 AS col1, - 50
----
NULL
-50

query I rowsort
SELECT 70 + - + 89
----
-19

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

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

query I rowsort
SELECT ALL + 5 * - 98 AS col2
----
-490

onlyif mysql # aggregate syntax: 
query III rowsort label-1304
SELECT + COUNT( * ) AS col0, 90 * - - 31 AS col1, COUNT( + + 65 )
----
1
2790
1

skipif mysql # not compatible
query III rowsort label-1304
SELECT + COUNT ( * ) AS col0, 90 * - - 31 AS col1, COUNT ( + + 65 )
----
1
2790
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT NULLIF ( 43, SUM( + 75 ) + + + 41 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-1305
SELECT NULLIF ( 43, SUM ( + 75 ) + + + 41 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT 95 * COUNT( * ) * - 65 AS col1
----
-6175

skipif mysql # not compatible
query I rowsort label-1306
SELECT 95 * COUNT ( * ) * - 65 AS col1
----
-6175

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT 51 DIV 47 + 37 col1
----
38

skipif mysql # not compatible
query I rowsort label-1307
SELECT 51 / 47 + 37 col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1308
SELECT DISTINCT - COALESCE ( + 73, 89 ), - MAX( DISTINCT + + 87 ) AS col1
----
-73
-87

skipif mysql # not compatible
query II rowsort label-1308
SELECT DISTINCT - COALESCE ( + 73, 89 ), - MAX ( DISTINCT + + 87 ) AS col1
----
-73
-87

query I rowsort
SELECT 82 + + 9 col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT 85 * - CASE 57 * 18 WHEN - 73 THEN + SUM( - 98 ) - 58 ELSE - 64 END
----
5440

skipif mysql # not compatible
query I rowsort label-1310
SELECT 85 * - CASE 57 * 18 WHEN - 73 THEN + SUM ( - 98 ) - 58 ELSE - 64 END
----
5440

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

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

query I rowsort
SELECT 92 + 35
----
127

query I rowsort
SELECT ALL 13 * 29 - + 85
----
292

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT DISTINCT + 61 DIV + 12 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT + 61 / + 12 AS col1
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1315
SELECT - NULLIF ( + 73, - 71 + 75 ) DIV COUNT( * ) + COUNT( * ) * 15
----
-58

skipif mysql # not compatible
query I rowsort label-1315
SELECT - NULLIF ( + 73, - 71 + 75 ) / COUNT ( * ) + COUNT ( * ) * 15
----
-58

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

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

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

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

query I rowsort
SELECT - 30 * + 28
----
-840

query I rowsort
SELECT + 36 + 18
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT - 6 * NULLIF ( 28, + 22 * COUNT( * ) + 21 )
----
-168

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 6 * NULLIF ( 28, + 22 * COUNT ( * ) + 21 )
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1321
SELECT - 69 * + 44 + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * + 91
----
-3036

skipif mysql # not compatible
query I rowsort label-1321
SELECT - 69 * + 44 + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 91
----
-3036

query I rowsort
SELECT DISTINCT - 99 + - 12 AS col0
----
-111

query I rowsort
SELECT ALL 88 * 20
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT - MIN( DISTINCT 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1324
SELECT - MIN ( DISTINCT 54 ) AS col2
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT - 64 - + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-1326
SELECT - 64 - + COUNT ( * )
----
-65

query I rowsort
SELECT - 40 * - 44
----
1760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * - 92
----
-92

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * - 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT + 22 + 40 * COUNT( * ) col1
----
62

skipif mysql # not compatible
query I rowsort label-1329
SELECT + 22 + 40 * COUNT ( * ) col1
----
62

query I rowsort
SELECT DISTINCT 87 * - 2 AS col1
----
-174

query I rowsort
SELECT DISTINCT 45 + + 31
----
76

query I rowsort
SELECT ALL 80 - 87 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + COUNT( * ) + - 47
----
-46

skipif mysql # not compatible
query I rowsort label-1333
SELECT + COUNT ( * ) + - 47
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1334
SELECT + ( 4 ) DIV - ( NULLIF ( + COUNT( * ), + SUM( + 72 ) ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1334
SELECT + ( 4 ) / - ( NULLIF ( + COUNT ( * ), + SUM ( + 72 ) ) ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1335
SELECT ALL MIN( + 93 ) DIV NULLIF ( + 11 + 27 * 6, - 75 + + 48 )
----
0

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL MIN ( + 93 ) / NULLIF ( + 11 + 27 * 6, - 75 + + 48 )
----
0

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

query I rowsort
SELECT ALL 44 - 26 AS col2
----
18

query I rowsort
SELECT DISTINCT 79 - 93
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT ALL 38 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL 38 / 94
----
0

query I rowsort
SELECT + 44 * 38 AS col0
----
1672

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT - 50 + - 30 DIV 16 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1341
SELECT - 50 + - 30 / 16 AS col0
----
-51

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT + 96 DIV + 10 col1
----
9

skipif mysql # not compatible
query I rowsort label-1344
SELECT + 96 / + 10 col1
----
9

query I rowsort
SELECT ALL 2 * 74 col0
----
148

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

query I rowsort
SELECT DISTINCT + COALESCE ( 86, 26 * - 31, - 47 ) col2
----
86

query I rowsort
SELECT ALL 2 * + 38 AS col0
----
76

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT - 76 DIV + 13 - 55 col2
----
-60

skipif mysql # not compatible
query I rowsort label-1350
SELECT - 76 / + 13 - 55 col2
----
-60

query I rowsort
SELECT - 60 * 14 AS col0
----
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT + + COALESCE ( + CAST( NULL AS SIGNED ), + 69, 11 * 64 + 21 )
----
69

skipif mysql # not compatible
query I rowsort label-1352
SELECT + + COALESCE ( + CAST ( NULL AS INTEGER ), + 69, 11 * 64 + 21 )
----
69

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT - - 78 * ( 90 DIV 63 )
----
78

skipif mysql # not compatible
query I rowsort label-1354
SELECT - - 78 * ( 90 / 63 )
----
78

query I rowsort
SELECT ALL + 1 * + 17 + 18 * - ( 44 ) AS col2
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT DISTINCT + - 7 * + CASE + 7 WHEN - ( COUNT( * ) ) * 13 - ( - 29 ) THEN - ( 74 ) END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT + - 7 * + CASE + 7 WHEN - ( COUNT ( * ) ) * 13 - ( - 29 ) THEN - ( 74 ) END + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1357
SELECT ALL - - 29 DIV + COUNT( - 13 + 89 )
----
29

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL - - 29 / + COUNT ( - 13 + 89 )
----
29

query I rowsort
SELECT ALL + 22 * + 75 + 18 AS col0
----
1668

query I rowsort
SELECT ALL + 15 * - 49 + 5
----
-730

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

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

query I rowsort
SELECT - - 51 + 83 AS col0
----
134

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

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

query I rowsort
SELECT - 17 + - 7 * - ( + 90 * ( 5 ) + 16 )
----
3245

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT - CASE - 58 WHEN NULLIF ( 48, + MAX( 27 ) ) THEN 68 WHEN + 56 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1364
SELECT - CASE - 58 WHEN NULLIF ( 48, + MAX ( 27 ) ) THEN 68 WHEN + 56 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1365
SELECT DISTINCT CAST( - 64 AS SIGNED ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT CAST ( - 64 AS INTEGER ) col0
----
-64

query I rowsort
SELECT - 10 * - 83 AS col1
----
830

query I rowsort
SELECT ALL ( 18 ) col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT + COALESCE ( 89, ( - ( - COALESCE ( 62, MIN( DISTINCT 58 ) ) ) ) ) * 96 + + 12 AS col2
----
8556

skipif mysql # not compatible
query I rowsort label-1368
SELECT + COALESCE ( 89, ( - ( - COALESCE ( 62, MIN ( DISTINCT 58 ) ) ) ) ) * 96 + + 12 AS col2
----
8556

query I rowsort
SELECT - ( - - 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT - SUM( - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1370
SELECT - SUM ( - 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1371
SELECT - CAST( - 80 AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1371
SELECT - CAST ( - 80 AS INTEGER ) AS col2
----
80

query I rowsort
SELECT - 20 * 65 * + 21
----
-27300

query I rowsort
SELECT ALL 32 * - 74
----
-2368

query I rowsort
SELECT DISTINCT - 69 * + 85 AS col2
----
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT - 60 * - NULLIF ( 1, + 74 + + 66 ) * ( 2 * COUNT( * ) ) AS col1
----
120

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT - 60 * - NULLIF ( 1, + 74 + + 66 ) * ( 2 * COUNT ( * ) ) AS col1
----
120

query I rowsort
SELECT 95 + - 43 * + 98
----
-4119

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT + CASE + 23 WHEN + 35 THEN 70 WHEN 8 * 19 THEN 48 WHEN + 46 + - 19 THEN COUNT( * ) ELSE - 68 END col1
----
-68

skipif mysql # not compatible
query I rowsort label-1378
SELECT + CASE + 23 WHEN + 35 THEN 70 WHEN 8 * 19 THEN 48 WHEN + 46 + - 19 THEN COUNT ( * ) ELSE - 68 END col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1379
SELECT + COALESCE ( + - 98, - 90 * 52 ) DIV + 20 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1379
SELECT + COALESCE ( + - 98, - 90 * 52 ) / + 20 AS col2
----
-4

query I rowsort
SELECT ALL + 62 + - 7 * 19 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT 99 - + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1381
SELECT 99 - + COUNT ( * ) AS col2
----
98

query I rowsort
SELECT ALL - + 27 col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1383
SELECT - CAST( + + MAX( DISTINCT - 20 ) AS SIGNED ) DIV 87 + 94 * - 19
----
-1786

skipif mysql # not compatible
query I rowsort label-1383
SELECT - CAST ( + + MAX ( DISTINCT - 20 ) AS INTEGER ) / 87 + 94 * - 19
----
-1786

query I rowsort
SELECT 78 + 21 + + 56 * - 85 AS col1
----
-4661

query I rowsort
SELECT DISTINCT - 5 * 86 col1
----
-430

query I rowsort
SELECT DISTINCT 12 + 33
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT ALL - 36 + COUNT( * ) * 63 col2
----
27

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL - 36 + COUNT ( * ) * 63 col2
----
27

query I rowsort
SELECT DISTINCT 21 * - 78
----
-1638

query I rowsort
SELECT + 60 + CASE + 88 WHEN + 84 / 1 THEN - 57 * + 88 ELSE NULL END * + NULLIF ( 72, 32 + ( 24 ) * 94 ) AS col0
----
NULL

query I rowsort
SELECT - ( - 35 ) + ( + 10 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT + - MAX( DISTINCT + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-1391
SELECT + - MAX ( DISTINCT + 87 )
----
-87

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

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

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

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL - COUNT ( * ) * + - 46 AS col0
----
46

query II rowsort
SELECT ALL 83, + 97 AS col2
----
83
97

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

skipif mysql # not compatible
query II rowsort label-1395
SELECT - 84 AS col1, COUNT ( * )
----
-84
1

query I rowsort
SELECT DISTINCT - 64 * 38 AS col0
----
-2432

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT MIN( - 64 ) - + ( + 0 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-1397
SELECT MIN ( - 64 ) - + ( + 0 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT 86 * + 25 * + 39 * COALESCE ( 60 * 92, ( - COUNT( * ) ) )
----
462852000

skipif mysql # not compatible
query I rowsort label-1398
SELECT 86 * + 25 * + 39 * COALESCE ( 60 * 92, ( - COUNT ( * ) ) )
----
462852000

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL - 46 * - COUNT( * ) * + 67 col0
----
3082

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - 46 * - COUNT ( * ) * + 67 col0
----
3082

query I rowsort
SELECT 57 + - 85 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT 70 * 15 * + COUNT( * ) col1
----
1050

skipif mysql # not compatible
query I rowsort label-1401
SELECT 70 * 15 * + COUNT ( * ) col1
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-1402
SELECT 76 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-1402
SELECT 76 / - 88
----
0

query I rowsort
SELECT ALL + 46 * - ( 68 )
----
-3128

query I rowsort
SELECT 92 + + 15 - - ( 64 ) * 69 AS col1
----
4523

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT 95 - 39 + + 36 * - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-1405
SELECT 95 - 39 + + 36 * - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1406
SELECT ALL COUNT( ALL + - 91 ) DIV - 12
----
0

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL COUNT ( ALL + - 91 ) / - 12
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT 1 + - 89 * - ( + CAST( - 40 AS SIGNED ) ) + + 17
----
-3542

skipif mysql # not compatible
query I rowsort label-1407
SELECT 1 + - 89 * - ( + CAST ( - 40 AS INTEGER ) ) + + 17
----
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT ALL + COUNT( * ) + + + COUNT( ALL - - 66 ) + 98
----
100

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + COUNT ( * ) + + + COUNT ( ALL - - 66 ) + 98
----
100

query I rowsort
SELECT 11 * + - NULLIF ( - 11, - 12 + 32 ) AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT - COALESCE ( + + SUM( 85 ), 16, + 96 + COALESCE ( ( + NULLIF ( - 2, + COUNT( * ) + 85 ) ) + + 55, - 95, - 60 * + 50, - 7 * ( - COUNT( * ) ) ) * 35 )
----
-85

skipif mysql # not compatible
query I rowsort label-1410
SELECT - COALESCE ( + + SUM ( 85 ), 16, + 96 + COALESCE ( ( + NULLIF ( - 2, + COUNT ( * ) + 85 ) ) + + 55, - 95, - 60 * + 50, - 7 * ( - COUNT ( * ) ) ) * 35 )
----
-85

query I rowsort
SELECT 67 + - 8
----
59

query I rowsort
SELECT - 81 * 41 AS col1
----
-3321

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT NULLIF ( - 49, - + 8 * ( 4 / COALESCE ( 57 / - ( + COUNT( * ) ), 36 * 29 ) ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1415
SELECT NULLIF ( - 49, - + 8 * ( 4 / COALESCE ( 57 / - ( + COUNT ( * ) ), 36 * 29 ) ) ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL - 56 * COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - 56 * COUNT ( * ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT DISTINCT + 98 + COUNT( * ) * 91
----
189

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT + 98 + COUNT ( * ) * 91
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL - - COUNT( * ) + - 84 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL - - COUNT ( * ) + - 84 AS col2
----
-83

query I rowsort
SELECT ALL - ( - 69 ) AS col0
----
69

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

query I rowsort
SELECT ALL + 65 + + - 71 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT + - MIN( ALL 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1422
SELECT + - MIN ( ALL 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT DISTINCT - COUNT( ALL + ( - 94 ) ) - - 43
----
42

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - COUNT ( ALL + ( - 94 ) ) - - 43
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT DISTINCT - ( + COALESCE ( - 79, - 96, 15, - COUNT( * ) + ( 63 ) ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT - ( + COALESCE ( - 79, - 96, 15, - COUNT ( * ) + ( 63 ) ) ) AS col1
----
79

query I rowsort
SELECT ALL + 24 - + - 56
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ( - ( + SUM( - 42 ) ) ) * 91
----
3822

skipif mysql # not compatible
query I rowsort label-1426
SELECT ( - ( + SUM ( - 42 ) ) ) * 91
----
3822

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

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT + COUNT ( * ) / 20
----
0

query I rowsort
SELECT DISTINCT + 33 * + 14
----
462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT + CAST( 36 AS SIGNED ) * + CAST( + 80 AS SIGNED ) - 42
----
2838

skipif mysql # not compatible
query I rowsort label-1429
SELECT + CAST ( 36 AS INTEGER ) * + CAST ( + 80 AS INTEGER ) - 42
----
2838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1430
SELECT ALL CAST( - SUM( - + 27 ) AS SIGNED ) - - 97
----
124

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL CAST ( - SUM ( - + 27 ) AS INTEGER ) - - 97
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT DISTINCT - NULLIF ( 38, - COUNT( * ) - - - 62 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT - NULLIF ( 38, - COUNT ( * ) - - - 62 ) col1
----
-38

query I rowsort
SELECT DISTINCT 87 * - 17 AS col2
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT MAX( - - 77 ) + + 53 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-1433
SELECT MAX ( - - 77 ) + + 53 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT MAX( DISTINCT - + 10 ) * NULLIF ( ( 41 ), + 77 ) * - 13 - MIN( ALL + 86 )
----
5244

skipif mysql # not compatible
query I rowsort label-1434
SELECT MAX ( DISTINCT - + 10 ) * NULLIF ( ( 41 ), + 77 ) * - 13 - MIN ( ALL + 86 )
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT MIN( 5 ) * + 25 * + MIN( DISTINCT + 90 )
----
11250

skipif mysql # not compatible
query I rowsort label-1435
SELECT MIN ( 5 ) * + 25 * + MIN ( DISTINCT + 90 )
----
11250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1436
SELECT CAST( + 4 AS SIGNED ) + + + 85 * - 70 AS col2
----
-5946

skipif mysql # not compatible
query I rowsort label-1436
SELECT CAST ( + 4 AS INTEGER ) + + + 85 * - 70 AS col2
----
-5946

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT DISTINCT 21 + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT 21 + + COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT DISTINCT + SUM( DISTINCT 16 ) + + 12 * + 12
----
160

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + SUM ( DISTINCT 16 ) + + 12 * + 12
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - 50 + - 57 * + CASE + - 8 WHEN + COUNT( * ) - + 21 THEN - 70 + + 99 END * - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT - 50 + - 57 * + CASE + - 8 WHEN + COUNT ( * ) - + 21 THEN - 70 + + 99 END * - 46 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1440
SELECT ALL + COUNT( * ) + 54 + + CASE - 9 WHEN + 3 THEN + 85 - CAST( 64 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + COUNT ( * ) + 54 + + CASE - 9 WHEN + 3 THEN + 85 - CAST ( 64 AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1441
SELECT - COALESCE ( COUNT( * ), 96 DIV 30 * + 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-1441
SELECT - COALESCE ( COUNT ( * ), 96 / 30 * + 83 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT - COALESCE ( - 39, - 6 DIV + 35 + 47 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1442
SELECT - COALESCE ( - 39, - 6 / + 35 + 47 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT - 26 * + COUNT( DISTINCT CASE - 15 WHEN 72 THEN 66 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1443
SELECT - 26 * + COUNT ( DISTINCT CASE - 15 WHEN 72 THEN 66 END ) AS col1
----
0

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

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

query I rowsort
SELECT ALL + - 65 + 19 * + - 66 AS col0
----
-1319

query I rowsort
SELECT DISTINCT 44 * ( 39 ) + + - 10 AS col0
----
1706

query II rowsort
SELECT DISTINCT 53 + 54, 84 AS col1
----
107
84

query I rowsort
SELECT - ( + + 38 ) + + + 88 col1
----
50

query I rowsort
SELECT ALL + 69 + 10 * CASE + - COALESCE ( - ( - 51 ), 30 ) WHEN - 23 THEN 83 * - 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL ( 74 ) + + COUNT( * ) + MIN( 41 ) - + 78
----
38

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL ( 74 ) + + COUNT ( * ) + MIN ( 41 ) - + 78
----
38

query I rowsort
SELECT COALESCE ( COALESCE ( + 24, + 92 + 7 ), 44 )
----
24

query I rowsort
SELECT - 68 + - - 81 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1453
SELECT - - COUNT( * ) - - NULLIF ( + - 11, - 46 / + CAST( CAST( NULL AS DECIMAL ) + 65 AS SIGNED ) ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-1453
SELECT - - COUNT ( * ) - - NULLIF ( + - 11, - 46 / + CAST ( CAST ( NULL AS REAL ) + 65 AS INTEGER ) ) col2
----
-10

query I rowsort
SELECT + + 33 - 76
----
-43

query I rowsort
SELECT ALL 97 * + 44 - + ( 80 ) AS col2
----
4188

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

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

query I rowsort
SELECT - + 89 * - 60 AS col1
----
5340

query I rowsort
SELECT ALL + - ( + + 54 ) * 6 * + + 97
----
-31428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT + CAST( + 96 AS SIGNED ) * - 63
----
-6048

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT + CAST ( + 96 AS INTEGER ) * - 63
----
-6048

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT ALL + 41 AS col0, - SUM( 77 ) + - 87 + 54 AS col0
----
41
-110

skipif mysql # not compatible
query II rowsort label-1460
SELECT ALL + 41 AS col0, - SUM ( 77 ) + - 87 + 54 AS col0
----
41
-110

query I rowsort
SELECT + ( - 6 ) * ( + CASE WHEN ( - 3 ) NOT BETWEEN NULL AND ( NULL ) THEN + 98 * 43 ELSE - 93 + - 40 * + 68 END ) * 57 AS col0
----
962046

query I rowsort
SELECT + 40 + - - 31 col1
----
71

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

skipif mysql # not compatible
query I rowsort label-1463
SELECT + CAST ( NULL AS INTEGER ) * 6 * - + 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT - COALESCE ( 81, + ( 45 ) DIV + 54 * + 27 ) * + MIN( 99 * 23 )
----
-184437

skipif mysql # not compatible
query I rowsort label-1464
SELECT - COALESCE ( 81, + ( 45 ) / + 54 * + 27 ) * + MIN ( 99 * 23 )
----
-184437

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1466
SELECT ALL 39 DIV 21 * - 22 AS col2, - 35 AS col0
----
-22
-35

skipif mysql # not compatible
query II rowsort label-1466
SELECT ALL 39 / 21 * - 22 AS col2, - 35 AS col0
----
-22
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1467
SELECT - ( + 75 ) DIV 85 * - 47 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT - ( + 75 ) / 85 * - 47 * + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT CASE - 62 WHEN - - COUNT( * ) THEN 15 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT CASE - 62 WHEN - - COUNT ( * ) THEN 15 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1469
SELECT 92 * + + SUM( DISTINCT + - 93 ) + + - CAST( 30 AS SIGNED ) * 57 AS col2
----
-10266

skipif mysql # not compatible
query I rowsort label-1469
SELECT 92 * + + SUM ( DISTINCT + - 93 ) + + - CAST ( 30 AS INTEGER ) * 57 AS col2
----
-10266

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1470
SELECT + CAST( 21 AS SIGNED ) DIV - - NULLIF ( + 82, - 17 + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT + CAST ( 21 AS INTEGER ) / - - NULLIF ( + 82, - 17 + 59 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1471
SELECT ALL 75 * + 15 + - + COALESCE ( + 35, - NULLIF ( - 13, 32 + + CASE + 76 WHEN CASE 7 WHEN 21 * - 84 THEN + 88 * CAST( NULL AS SIGNED ) + - COUNT( DISTINCT 38 ) WHEN + 85 THEN NULL END + + 45 THEN NULL WHEN - 93 - 51 * 93 THEN 71 * - 60 + 80 END ) * ( 43 + 39 ) + - 72, COUNT( * ) * 77 ) + - 76 col1
----
1014

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL 75 * + 15 + - + COALESCE ( + 35, - NULLIF ( - 13, 32 + + CASE + 76 WHEN CASE 7 WHEN 21 * - 84 THEN + 88 * CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT 38 ) WHEN + 85 THEN NULL END + + 45 THEN NULL WHEN - 93 - 51 * 93 THEN 71 * - 60 + 80 END ) * ( 43 + 39 ) + - 72, COUNT ( * ) * 77 ) + - 76 col1
----
1014

query I rowsort
SELECT DISTINCT + NULLIF ( + 92, - 30 * - 59 ) AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1473
SELECT ALL COALESCE ( COUNT( * ), COUNT( * ) * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), 8 * CAST( CAST( NULL AS DECIMAL ) / - CAST( NULL AS SIGNED ) AS SIGNED ) + 54 ) * 30
----
30

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL COALESCE ( COUNT ( * ), COUNT ( * ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), 8 * CAST ( CAST ( NULL AS REAL ) / - CAST ( NULL AS INTEGER ) AS INTEGER ) + 54 ) * 30
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1474
SELECT ALL + 98 * 68 + - + COUNT( * ) AS col0, - 66 + + CAST( NULL AS SIGNED ) + 35
----
6663
NULL

skipif mysql # not compatible
query II rowsort label-1474
SELECT ALL + 98 * 68 + - + COUNT ( * ) AS col0, - 66 + + CAST ( NULL AS INTEGER ) + 35
----
6663
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT DISTINCT 38 * + MAX( + - 60 )
----
-2280

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT 38 * + MAX ( + - 60 )
----
-2280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1476
SELECT + 50 * - CAST( NULL AS SIGNED ) / - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 50 * - CAST ( NULL AS INTEGER ) / - - 94
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1477
SELECT - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT - ( - CAST ( NULL AS REAL ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT ALL - 21 * + - SUM( - 68 ) + + + 68 + + COUNT( * ) + 5 * + 70
----
-1009

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - 21 * + - SUM ( - 68 ) + + + 68 + + COUNT ( * ) + 5 * + 70
----
-1009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1480
SELECT + COALESCE ( - 75, - 1 DIV + 50 * - - CAST( 88 AS SIGNED ) * 29 ) - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-1480
SELECT + COALESCE ( - 75, - 1 / + 50 * - - CAST ( 88 AS INTEGER ) * 29 ) - COUNT ( * )
----
-76

query I rowsort
SELECT + ( 88 ) * - ( 83 ) * + 50 * 33 AS col0
----
-12051600

query I rowsort
SELECT - COALESCE ( 79, + - 67 )
----
-79

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1484
SELECT - 37 + - 81 DIV - 84 + + COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 37 + - 81 / - 84 + + COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT - CASE + - 92 WHEN - 41 THEN + 45 * MAX( 22 ) WHEN + 22 * 18 + - ( NULLIF ( 83, + 52 + 70 ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT - CASE + - 92 WHEN - 41 THEN + 45 * MAX ( 22 ) WHEN + 22 * 18 + - ( NULLIF ( 83, + 52 + 70 ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT 42 + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT 42 + - COUNT ( * )
----
41

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

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

query I rowsort
SELECT DISTINCT + 18 - + 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT ALL - COUNT( + 12 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - COUNT ( + 12 ) AS col0
----
-1

query I rowsort
SELECT - + COALESCE ( 19, - 27 )
----
-19

query I rowsort
SELECT - - 79 * - 32 AS col1
----
-2528

query I rowsort
SELECT - CASE - 12 WHEN 31 THEN NULL WHEN - 60 THEN NULL ELSE - + CASE 85 WHEN + 87 * + 24 THEN NULL ELSE - 73 END + - 8 END AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT - + 88 + - 69 + + + 34 + - 23 * - CASE + 42 WHEN 22 + COUNT( * ) / + 20 THEN - 41 * + 81 END / 26 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT - + 88 + - 69 + + + 34 + - 23 * - CASE + 42 WHEN 22 + COUNT ( * ) / + 20 THEN - 41 * + 81 END / 26 * 57
----
NULL

query I rowsort
SELECT DISTINCT + 55 * 4 * + 56
----
12320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT - 42 * + + CASE + 86 WHEN + 67 THEN - 72 - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT - 42 * + + CASE + 86 WHEN + 67 THEN - 72 - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL + NULLIF ( + + 9, - COALESCE ( - 90, + 50 + 57 * 23, + 13 * 92 + ( + NULLIF ( 71, 65 ) ) ) + + COUNT( * ) * 94 )
----
9

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL + NULLIF ( + + 9, - COALESCE ( - 90, + 50 + 57 * 23, + 13 * 92 + ( + NULLIF ( 71, 65 ) ) ) + + COUNT ( * ) * 94 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1498
SELECT + 72 DIV COUNT( * ) * - 35 - + SUM( ALL - + ( 51 ) ) + 60
----
-2409

skipif mysql # not compatible
query I rowsort label-1498
SELECT + 72 / COUNT ( * ) * - 35 - + SUM ( ALL - + ( 51 ) ) + 60
----
-2409

onlyif mysql # aggregate syntax: 
query II rowsort label-1499
SELECT + COUNT( * ) AS col1, - 76 AS col1
----
1
-76

skipif mysql # not compatible
query II rowsort label-1499
SELECT + COUNT ( * ) AS col1, - 76 AS col1
----
1
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - 28 + + - NULLIF ( + + 75, AVG ( DISTINCT - + ( - 52 ) ) ) * COUNT( * )
----
-103

skipif mysql # not compatible
query I rowsort label-1500
SELECT - 28 + + - NULLIF ( + + 75, AVG ( DISTINCT - + ( - 52 ) ) ) * COUNT ( * )
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-1501
SELECT ALL + COUNT( * ) * - + 64, - ( - 57 ) * - 58 + + 4 AS col0
----
-64
-3302

skipif mysql # not compatible
query II rowsort label-1501
SELECT ALL + COUNT ( * ) * - + 64, - ( - 57 ) * - 58 + + 4 AS col0
----
-64
-3302

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1503
SELECT DISTINCT - COUNT( * ) col2, + 1 DIV + 22 * 26 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-1503
SELECT DISTINCT - COUNT ( * ) col2, + 1 / + 22 * 26 AS col1
----
-1
0

query II rowsort
SELECT + 35 AS col2, ( - 25 ) * + 0 + 88 col0
----
35
88

query I rowsort
SELECT ALL - 96 + + 1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT CAST( NULL AS SIGNED ) * - - 52 - - + 72 + - 77 * - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT CAST ( NULL AS INTEGER ) * - - 52 - - + 72 + - 77 * - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT SUM( ALL - 50 ) - + 89 AS col2
----
-139

skipif mysql # not compatible
query I rowsort label-1507
SELECT SUM ( ALL - 50 ) - + 89 AS col2
----
-139

query II rowsort
SELECT + 96, 87 col2
----
96
87

onlyif mysql # DIV for integer division: 
query II rowsort label-1509
SELECT 55 AS col2, 88 * 19 DIV + + 1 + 7
----
55
1679

skipif mysql # not compatible
query II rowsort label-1509
SELECT 55 AS col2, 88 * 19 / + + 1 + 7
----
55
1679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1510
SELECT ALL - COALESCE ( + 70, CASE - 52 WHEN + 30 / + 41 THEN 17 WHEN - CASE WHEN ( ( + 38 ) ) BETWEEN - 79 AND ( - COUNT( * ) * - CAST( + 61 / COUNT( * ) AS SIGNED ) ) THEN + NULLIF ( 97, 24 ) WHEN NOT ( + 68 ) NOT IN ( - ( - 11 ) ) THEN NULL ELSE + 52 END THEN NULL END * 38 + + ( - 83 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL - COALESCE ( + 70, CASE - 52 WHEN + 30 / + 41 THEN 17 WHEN - CASE WHEN ( ( + 38 ) ) BETWEEN - 79 AND ( - COUNT ( * ) * - CAST ( + 61 / COUNT ( * ) AS INTEGER ) ) THEN + NULLIF ( 97, 24 ) WHEN NOT ( + 68 ) NOT IN ( - ( - 11 ) ) THEN NULL ELSE + 52 END THEN NULL END * 38 + + ( - 83 ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT SUM( DISTINCT ( + 48 ) ) * - 89 + + 47
----
-4225

skipif mysql # not compatible
query I rowsort label-1511
SELECT SUM ( DISTINCT ( + 48 ) ) * - 89 + + 47
----
-4225

query I rowsort
SELECT 21 * + 28 AS col0
----
588

query I rowsort
SELECT 95 + - - 30
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT - 89 * + COUNT( * ) - MIN( ALL - + 28 ) + - - 44 - + 94 + + 28 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-1514
SELECT - 89 * + COUNT ( * ) - MIN ( ALL - + 28 ) + - - 44 - + 94 + + 28 AS col2
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1515
SELECT DISTINCT 85 DIV + 43 AS col2, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-1515
SELECT DISTINCT 85 / + 43 AS col2, + COUNT ( * ) AS col0
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1516
SELECT 4 + + CAST( NULL AS SIGNED ) + - 90 + - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT 4 + + CAST ( NULL AS INTEGER ) + - 90 + - + 30
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1517
SELECT 40 - 83 DIV - - 32 + 33 AS col0, + 66
----
71
66

skipif mysql # not compatible
query II rowsort label-1517
SELECT 40 - 83 / - - 32 + 33 AS col0, + 66
----
71
66

query I rowsort
SELECT 11 * 95
----
1045

onlyif mysql # aggregate syntax: 
query II rowsort label-1519
SELECT ALL 20 * - + COUNT( * ) AS col2, 29
----
-20
29

skipif mysql # not compatible
query II rowsort label-1519
SELECT ALL 20 * - + COUNT ( * ) AS col2, 29
----
-20
29

query I rowsort
SELECT ALL ( + 9 ) - + 74 AS col0
----
-65

query I rowsort
SELECT ALL 5 * - + ( - 84 )
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1522
SELECT - 74 + - - CASE - 32 WHEN ( 80 ) / + CAST( NULL AS SIGNED ) + + 27 * 81 THEN - CAST( NULL AS SIGNED ) * ( 92 ) + - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT - 74 + - - CASE - 32 WHEN ( 80 ) / + CAST ( NULL AS INTEGER ) + + 27 * 81 THEN - CAST ( NULL AS INTEGER ) * ( 92 ) + - 43 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT ALL 44 * - 56 DIV COUNT( * ) AS col2
----
-2464

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL 44 * - 56 / COUNT ( * ) AS col2
----
-2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1524
SELECT DISTINCT 51 AS col2, + CASE + - ( + CAST( + COUNT( * ) AS SIGNED ) ) WHEN + - 35 + - 11 THEN NULL WHEN 41 THEN 59 END
----
51
NULL

skipif mysql # not compatible
query II rowsort label-1524
SELECT DISTINCT 51 AS col2, + CASE + - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) WHEN + - 35 + - 11 THEN NULL WHEN 41 THEN 59 END
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + COALESCE ( 45, - 73, - MIN( DISTINCT 59 ) * - ( 50 ) ) * 16
----
720

skipif mysql # not compatible
query I rowsort label-1525
SELECT + COALESCE ( 45, - 73, - MIN ( DISTINCT 59 ) * - ( 50 ) ) * 16
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT - 36 + + COUNT( * ) + 64
----
29

skipif mysql # not compatible
query I rowsort label-1526
SELECT - 36 + + COUNT ( * ) + 64
----
29

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

query I rowsort
SELECT - 50 + + + 85 + 2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1529
SELECT 75 AS col1, + 49 * + 82 + NULLIF ( + - NULLIF ( - 98, COUNT( * ) + - SUM( 94 ) * COUNT( * ) ), + AVG ( DISTINCT - ( 19 ) ) + 3 ) AS col2
----
75
4116

skipif mysql # not compatible
query II rowsort label-1529
SELECT 75 AS col1, + 49 * + 82 + NULLIF ( + - NULLIF ( - 98, COUNT ( * ) + - SUM ( 94 ) * COUNT ( * ) ), + AVG ( DISTINCT - ( 19 ) ) + 3 ) AS col2
----
75
4116

query I rowsort
SELECT + 24 + + 74
----
98

query II rowsort
SELECT ALL 19, 33 AS col1
----
19
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1532
SELECT 13, - 48 * - CAST( 92 AS SIGNED ) + - - 64 * CAST( 13 AS SIGNED ) + - COUNT( * ) * - 27 AS col1
----
13
5275

skipif mysql # not compatible
query II rowsort label-1532
SELECT 13, - 48 * - CAST ( 92 AS INTEGER ) + - - 64 * CAST ( 13 AS INTEGER ) + - COUNT ( * ) * - 27 AS col1
----
13
5275

query I rowsort
SELECT ALL - NULLIF ( - + 54, + - 77 ) AS col2
----
54

query II rowsort
SELECT DISTINCT + 75 col2, + 29 * - 44
----
75
-1276

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT + ( - COUNT( * ) ) + - + 87 + + 92 * - - 62 * - COUNT( * )
----
-5792

skipif mysql # not compatible
query I rowsort label-1536
SELECT + ( - COUNT ( * ) ) + - + 87 + + 92 * - - 62 * - COUNT ( * )
----
-5792

query I rowsort
SELECT DISTINCT - + 18 * - ( + 32 )
----
576

query II rowsort
SELECT DISTINCT 9 AS col0, 50
----
9
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1539
SELECT COUNT( * ) DIV - + CAST( NULL AS SIGNED ), - COALESCE ( 66, + 22 DIV COALESCE ( NULLIF ( 73, - 70 + 86 ), - 62 ) ) AS col2
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-1539
SELECT COUNT ( * ) / - + CAST ( NULL AS INTEGER ), - COALESCE ( 66, + 22 / COALESCE ( NULLIF ( 73, - 70 + 86 ), - 62 ) ) AS col2
----
NULL
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1540
SELECT + NULLIF ( + + ( 52 ), - + 78 + - + 89 ) * 59 * + CAST( 8 AS SIGNED ) AS col0
----
24544

skipif mysql # not compatible
query I rowsort label-1540
SELECT + NULLIF ( + + ( 52 ), - + 78 + - + 89 ) * 59 * + CAST ( 8 AS INTEGER ) AS col0
----
24544

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

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

query I rowsort
SELECT + ( - 8 ) + + + 33 + + 61 * 46
----
2831

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - 36 - + 16 - - COUNT( * ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-1543
SELECT - 36 - + 16 - - COUNT ( * ) col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1544
SELECT DISTINCT 5 * - CAST( + 36 AS SIGNED ) + - + 59 - 69 * + + 22
----
-1757

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT 5 * - CAST ( + 36 AS INTEGER ) + - + 59 - 69 * + + 22
----
-1757

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT + 55 / - 83 + - + 79 / 65 + + + 57 + + ( + 42 ) + - 13 * - CASE 10 * - 59 WHEN COUNT( * ) * 88 + 33 * + 65 THEN + 12 * 12 WHEN 52 * 56 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT + 55 / - 83 + - + 79 / 65 + + + 57 + + ( + 42 ) + - 13 * - CASE 10 * - 59 WHEN COUNT ( * ) * 88 + 33 * + 65 THEN + 12 * 12 WHEN 52 * 56 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1546
SELECT + COUNT( * ) * + ( - COUNT( * ) ) - - 39 + - 65 + CASE + 73 WHEN 11 / + COUNT( * ) THEN - CAST( 71 AS SIGNED ) ELSE 53 + ( COUNT( * ) ) / - 23 END + 16 * + 91 * + CASE COUNT( * ) / 55 WHEN 9 + COUNT( * ) * + COUNT( * ) THEN MIN( ALL ( + 49 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) - - 39 + - 65 + CASE + 73 WHEN 11 / + COUNT ( * ) THEN - CAST ( 71 AS INTEGER ) ELSE 53 + ( COUNT ( * ) ) / - 23 END + 16 * + 91 * + CASE COUNT ( * ) / 55 WHEN 9 + COUNT ( * ) * + COUNT ( * ) THEN MIN ( ALL ( + 49 ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1547
SELECT DISTINCT 69 + + + 78 + + 99 * - MIN( - 31 ) / - MIN( ALL + 38 ) * 39 + CAST( NULL AS SIGNED ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT 69 + + + 78 + + 99 * - MIN ( - 31 ) / - MIN ( ALL + 38 ) * 39 + CAST ( NULL AS INTEGER ) * 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL + NULLIF ( COUNT( * ), - 70 ) + + 57
----
58

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL + NULLIF ( COUNT ( * ), - 70 ) + + 57
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT 86 + - 87 DIV 88 + + 91 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-1549
SELECT 86 + - 87 / 88 + + 91 AS col0
----
177

query I rowsort
SELECT ALL 4 * + - 48 * 59 AS col1
----
-11328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1551
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) * + - 58 * - 91 + - 96 * - AVG ( + 69 ) + + 87 * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1551
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * + - 58 * - 91 + - 96 * - AVG ( + 69 ) + + 87 * 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT ALL - ( + + 96 ) DIV + - ( 28 ) - - + 72
----
75

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL - ( + + 96 ) / + - ( 28 ) - - + 72
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1553
SELECT ALL - CAST( - 6 AS SIGNED ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - CAST ( - 6 AS INTEGER ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - SUM( 76 ) / + CASE + 72 WHEN + - 36 THEN 43 END / - - 6 + MIN( DISTINCT 9 + 12 / - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT - SUM ( 76 ) / + CASE + 72 WHEN + - 36 THEN 43 END / - - 6 + MIN ( DISTINCT 9 + 12 / - 92 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1555
SELECT ALL + 29 + + - 33 + CAST( - 67 AS SIGNED ) * + - CAST( + 84 AS SIGNED ) + - + ( + 8 ) DIV - 4
----
5626

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + 29 + + - 33 + CAST ( - 67 AS INTEGER ) * + - CAST ( + 84 AS INTEGER ) + - + ( + 8 ) / - 4
----
5626

query I rowsort
SELECT ALL - 65 + - ( 35 )
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT DISTINCT + COALESCE ( - 63, - - 71 * + + 54 * COUNT( * ) ) + + + 88 - + CAST( + MAX( - 76 ) AS SIGNED ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT + COALESCE ( - 63, - - 71 * + + 54 * COUNT ( * ) ) + + + 88 - + CAST ( + MAX ( - 76 ) AS INTEGER ) AS col0
----
101

query I rowsort
SELECT 30 + + 33
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT DISTINCT - SUM( ALL 87 ) * - - 16
----
-1392

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT - SUM ( ALL 87 ) * - - 16
----
-1392

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT - 11 - 70 DIV - - ( 90 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT - 11 - 70 / - - ( 90 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1561
SELECT 20 * - + 95 AS col2, COUNT( * ) + + + MAX( 64 ) AS col0
----
-1900
65

skipif mysql # not compatible
query II rowsort label-1561
SELECT 20 * - + 95 AS col2, COUNT ( * ) + + + MAX ( 64 ) AS col0
----
-1900
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT - CASE + 8 WHEN - - MIN( - + 61 ) THEN + + ( - 25 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT - CASE + 8 WHEN - - MIN ( - + 61 ) THEN + + ( - 25 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT DISTINCT 14 - + 14 + ( - - NULLIF ( - + 89, + 93 * COALESCE ( 14, + 72 * 60 + + 27, COUNT( * ) ) * COALESCE ( 84, - NULLIF ( - 37, 95 ) + + 51 ) + 44 ) ) - + 61 * COUNT( * )
----
-150

skipif mysql # not compatible
query I rowsort label-1563
SELECT DISTINCT 14 - + 14 + ( - - NULLIF ( - + 89, + 93 * COALESCE ( 14, + 72 * 60 + + 27, COUNT ( * ) ) * COALESCE ( 84, - NULLIF ( - 37, 95 ) + + 51 ) + 44 ) ) - + 61 * COUNT ( * )
----
-150

query I rowsort
SELECT DISTINCT - 40 * + 85 * ( + 9 )
----
-30600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT NULLIF ( - - SUM( + - 68 ), CAST( NULL AS SIGNED ) ) * - + NULLIF ( - - 85, - - CAST( NULL AS SIGNED ) )
----
5780

skipif mysql # not compatible
query I rowsort label-1565
SELECT NULLIF ( - - SUM ( + - 68 ), CAST ( NULL AS INTEGER ) ) * - + NULLIF ( - - 85, - - CAST ( NULL AS INTEGER ) )
----
5780

query I rowsort
SELECT + 25 - - - 45 + - 81
----
-101

query I rowsort
SELECT 8 - + 66
----
-58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1569
SELECT DISTINCT - 40 DIV - 11 + 8 * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT - 40 / - 11 + 8 * - COUNT ( * )
----
-5

query I rowsort
SELECT DISTINCT NULLIF ( 24, 38 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1571
SELECT ALL SUM( - 32 ) AS col2, 44 / + - CASE - - 47 WHEN - ( - + ( 51 ) ) * 34 + 78 THEN ( + 35 ) WHEN 11 * + 14 THEN NULL ELSE NULL END / - 50
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-1571
SELECT ALL SUM ( - 32 ) AS col2, 44 / + - CASE - - 47 WHEN - ( - + ( 51 ) ) * 34 + 78 THEN ( + 35 ) WHEN 11 * + 14 THEN NULL ELSE NULL END / - 50
----
-32
NULL

query I rowsort
SELECT ( + 74 ) + 6 - + 23 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT DISTINCT CAST( 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT CAST ( 2 AS INTEGER )
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1574
SELECT ALL - + NULLIF ( + 54, + ( 37 ) ) DIV CAST( 92 AS SIGNED ) + - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - + NULLIF ( + 54, + ( 37 ) ) / CAST ( 92 AS INTEGER ) + - 89 AS col2
----
-89

query I rowsort
SELECT 77 - 27 - + - 81 + 52 + 57 * 38 + - 27
----
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT + 58 + + NULLIF ( - 18, + 8 * COUNT( * ) - + + COUNT( * ) ) + + NULLIF ( - 20, - 38 - 61 )
----
20

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + 58 + + NULLIF ( - 18, + 8 * COUNT ( * ) - + + COUNT ( * ) ) + + NULLIF ( - 20, - 38 - 61 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1577
SELECT 54 DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1577
SELECT 54 / + 66 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-1578
SELECT - 50 * COUNT( * ) AS col0, ( + 60 ) DIV + 28, - COALESCE ( 36, + 51 ) AS col0
----
-50
2
-36

skipif mysql # not compatible
query III rowsort label-1578
SELECT - 50 * COUNT ( * ) AS col0, ( + 60 ) / + 28, - COALESCE ( 36, + 51 ) AS col0
----
-50
2
-36

query II rowsort
SELECT 85 + - 49, - 82 * 28 AS col1
----
36
-2296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1580
SELECT - CAST( 21 AS SIGNED ) * - - 82 col0
----
-1722

skipif mysql # not compatible
query I rowsort label-1580
SELECT - CAST ( 21 AS INTEGER ) * - - 82 col0
----
-1722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1581
SELECT DISTINCT - 22 + - - CASE + 52 WHEN 88 * - + CASE COUNT( * ) WHEN NULLIF ( 67, COALESCE ( 57, 39 * - 44 ) * 69 ) THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( * ) ELSE NULL END THEN COUNT( * ) * - ( 1 ) + 3 WHEN - 78 THEN 86 * 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - 22 + - - CASE + 52 WHEN 88 * - + CASE COUNT ( * ) WHEN NULLIF ( 67, COALESCE ( 57, 39 * - 44 ) * 69 ) THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) ELSE NULL END THEN COUNT ( * ) * - ( 1 ) + 3 WHEN - 78 THEN 86 * 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL COUNT( * ) + COALESCE ( 48, - + 37 + + - 79 ) * + 78 * + COALESCE ( - + 79, NULLIF ( - 76, 38 + + AVG ( 61 ) ) * - 25 )
----
-295775

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL COUNT ( * ) + COALESCE ( 48, - + 37 + + - 79 ) * + 78 * + COALESCE ( - + 79, NULLIF ( - 76, 38 + + AVG ( 61 ) ) * - 25 )
----
-295775

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT - SUM( - + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1583
SELECT - SUM ( - + 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT CASE + - 97 WHEN 42 + - AVG ( + 77 ) THEN 35 * - SUM( ALL + 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT CASE + - 97 WHEN 42 + - AVG ( + 77 ) THEN 35 * - SUM ( ALL + 75 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT ALL 93 + 90 DIV ( COUNT( * ) ) AS col0
----
183

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL 93 + 90 / ( COUNT ( * ) ) AS col0
----
183

query I rowsort
SELECT + 98 * + 14 AS col2
----
1372

onlyif mysql # aggregate syntax: 
query II rowsort label-1587
SELECT ALL + 24 AS col1, - MIN( DISTINCT + 68 ) AS col0
----
24
-68

skipif mysql # not compatible
query II rowsort label-1587
SELECT ALL + 24 AS col1, - MIN ( DISTINCT + 68 ) AS col0
----
24
-68

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

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + COUNT ( - 88 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1589
SELECT ALL - COUNT( - 53 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL - COUNT ( - 53 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT CASE 0 WHEN - AVG ( DISTINCT - 44 ) / COUNT( * ) * - + 87 / + + ( 36 ) + ( 44 + 59 ) THEN NULL WHEN - COUNT( * ) THEN 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT CASE 0 WHEN - AVG ( DISTINCT - 44 ) / COUNT ( * ) * - + 87 / + + ( 36 ) + ( 44 + 59 ) THEN NULL WHEN - COUNT ( * ) THEN 96 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1591
SELECT ALL NULLIF ( + - ( + 32 ), + 76 / - 75 * - 43 ) * - 28 + + + CAST( + 31 AS SIGNED )
----
927

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL NULLIF ( + - ( + 32 ), + 76 / - 75 * - 43 ) * - 28 + + + CAST ( + 31 AS INTEGER )
----
927

query I rowsort
SELECT + 68 * 72
----
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT ALL + MIN( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + MIN ( - 7 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1594
SELECT + NULLIF ( MAX( - 12 ), COUNT( * ) * - COALESCE ( - 29, - 18, CAST( + COUNT( * ) AS SIGNED ) ) - 50 * 32 ) + + 59
----
47

skipif mysql # not compatible
query I rowsort label-1594
SELECT + NULLIF ( MAX ( - 12 ), COUNT ( * ) * - COALESCE ( - 29, - 18, CAST ( + COUNT ( * ) AS INTEGER ) ) - 50 * 32 ) + + 59
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT CASE + 90 WHEN - + ( + + ( + 48 ) ) THEN + 39 WHEN + - CAST( - AVG ( + ( 0 ) ) AS SIGNED ) - 66 THEN 36 * - 90 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT CASE + 90 WHEN - + ( + + ( + 48 ) ) THEN + 39 WHEN + - CAST ( - AVG ( + ( 0 ) ) AS INTEGER ) - 66 THEN 36 * - 90 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT + 67 * SUM( ALL + 95 ) AS col2
----
6365

skipif mysql # not compatible
query I rowsort label-1596
SELECT + 67 * SUM ( ALL + 95 ) AS col2
----
6365

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1598
SELECT - CAST( + ( + CASE + COALESCE ( + 31, + - 17 - 46, - - 39 * 56 ) WHEN 6 * COUNT( * ) - + 64 THEN NULL WHEN CASE COUNT( DISTINCT 27 ) WHEN 11 + 9 THEN - 75 END * ( + 40 * ( + 29 * CAST( NULL AS DECIMAL ) ) + COALESCE ( 22 + 75, - 44 * - ( 49 ) ) * - COUNT( * ) ) THEN COUNT( * ) ELSE NULL END ) AS SIGNED ) * 36 - 49 * - MAX( + 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1598
SELECT - CAST ( + ( + CASE + COALESCE ( + 31, + - 17 - 46, - - 39 * 56 ) WHEN 6 * COUNT ( * ) - + 64 THEN NULL WHEN CASE COUNT ( DISTINCT 27 ) WHEN 11 + 9 THEN - 75 END * ( + 40 * ( + 29 * CAST ( NULL AS REAL ) ) + COALESCE ( 22 + 75, - 44 * - ( 49 ) ) * - COUNT ( * ) ) THEN COUNT ( * ) ELSE NULL END ) AS INTEGER ) * 36 - 49 * - MAX ( + 2 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL + COUNT( 17 )
----
1

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL + COUNT ( 17 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1600
SELECT ALL + 7 / + CASE 11 WHEN - 43 * - ( - - CAST( NULL AS DECIMAL ) ) THEN - - COUNT( * ) + + CAST( NULL AS SIGNED ) * 7 END * + AVG ( + 76 + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + 7 / + CASE 11 WHEN - 43 * - ( - - CAST ( NULL AS REAL ) ) THEN - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 7 END * + AVG ( + 76 + 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT ALL + MIN( - ( 41 ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL + MIN ( - ( 41 ) ) AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1602
SELECT - SUM( - 79 ) DIV 51 AS col2, 95
----
1
95

skipif mysql # not compatible
query II rowsort label-1602
SELECT - SUM ( - 79 ) / 51 AS col2, 95
----
1
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1603
SELECT + 23 + MIN( - 98 ) DIV 5
----
4

skipif mysql # not compatible
query I rowsort label-1603
SELECT + 23 + MIN ( - 98 ) / 5
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT - NULLIF ( 1, + + ( + 1 ) ) * + 65 * + + COUNT( * ) * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT - NULLIF ( 1, + + ( + 1 ) ) * + 65 * + + COUNT ( * ) * 5
----
NULL

query I rowsort
SELECT - + 6 * + + 97
----
-582

query I rowsort
SELECT ALL COALESCE ( + + ( + - 27 ), - 13 + + 18 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT + 80 * - COUNT( * ) * - 71 + - 79
----
5601

skipif mysql # not compatible
query I rowsort label-1607
SELECT + 80 * - COUNT ( * ) * - 71 + - 79
----
5601

query I rowsort
SELECT ALL - NULLIF ( 54, - + 23 / + 88 + - 54 )
----
-54

query II rowsort
SELECT ALL + 87 AS col1, - 23 + - 48 - + NULLIF ( + 12, + 25 ) * + + 21
----
87
-323

query I rowsort
SELECT DISTINCT + + 46 + 72 AS col1
----
118

query I rowsort
SELECT ALL - 34 + - 78 AS col0
----
-112

query I rowsort
SELECT ALL + - CASE WHEN 99 BETWEEN NULL AND NULL THEN NULL ELSE - 14 + - - ( 65 ) END + - 52 AS col1
----
-103

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

skipif mysql # not compatible
query I rowsort label-1613
SELECT DISTINCT + + 34 * + ( + COUNT ( * ) ) AS col2
----
34

query I rowsort
SELECT - + 54 + + 41 AS col2
----
-13

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

skipif mysql # not compatible
query II rowsort label-1615
SELECT - 15, - CAST ( NULL AS INTEGER ) - - 2 AS col0
----
-15
NULL

query II rowsort
SELECT - 27 AS col2, 14 * - + 71
----
-27
-994

query II rowsort
SELECT ALL 38, 63 AS col0
----
38
63

query I rowsort
SELECT + + 73 * + 21
----
1533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1619
SELECT DISTINCT + CAST( - COALESCE ( ( + + 13 ), - - 4 * - - 12 - - 93 + COUNT( * ) ) AS SIGNED ) + + 17 * 92 AS col1
----
1551

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + CAST ( - COALESCE ( ( + + 13 ), - - 4 * - - 12 - - 93 + COUNT ( * ) ) AS INTEGER ) + + 17 * 92 AS col1
----
1551

query I rowsort
SELECT ALL - 93 + 6 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL - CASE 17 WHEN - - 55 * - 56 + + 93 THEN NULL WHEN - 87 * 30 THEN - SUM( - 16 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL - CASE 17 WHEN - - 55 * - 56 + + 93 THEN NULL WHEN - 87 * 30 THEN - SUM ( - 16 ) END AS col2
----
NULL

query I rowsort
SELECT - ( - - 25 ) + 70
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT + 83 / - - 23 * + 83 * + 95 * - - 86 * - CASE + + COUNT( * ) WHEN - 82 THEN 36 END * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + 83 / - - 23 * + 83 * + 95 * - - 86 * - CASE + + COUNT ( * ) WHEN - 82 THEN 36 END * 60
----
NULL

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

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

query I rowsort
SELECT + 51 + + 33 AS col0
----
84

query I rowsort
SELECT ALL + 65 + - 8 + + 24
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1628
SELECT - ( + MAX( ALL - 0 ) ) + - NULLIF ( MIN( ALL - 63 ), COUNT( * ) ) - + CAST( NULL AS SIGNED ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT - ( + MAX ( ALL - 0 ) ) + - NULLIF ( MIN ( ALL - 63 ), COUNT ( * ) ) - + CAST ( NULL AS INTEGER ) * - 83
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT - COUNT( * ) + + + COUNT( * ) * 23 * + COUNT( * ) * - 36 * + COUNT( * ) * + 86 + 78 - 73 * 68 AS col2
----
-76095

skipif mysql # not compatible
query I rowsort label-1630
SELECT - COUNT ( * ) + + + COUNT ( * ) * 23 * + COUNT ( * ) * - 36 * + COUNT ( * ) * + 86 + 78 - 73 * 68 AS col2
----
-76095

query I rowsort
SELECT + 45 - - - 21 AS col2
----
24

query I rowsort
SELECT DISTINCT 51 * + - ( + 38 ) AS col2
----
-1938

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT + 59 DIV 84 + 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1633
SELECT + 59 / 84 + 27 AS col1
----
27

query I rowsort
SELECT DISTINCT - 93 * + 90 AS col1
----
-8370

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT - 14 * - + COUNT( * ) + + 25 * 69
----
1739

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 14 * - + COUNT ( * ) + + 25 * 69
----
1739

query I rowsort
SELECT + 79 * + - 20
----
-1580

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

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

query I rowsort
SELECT + CASE - 95 WHEN - 87 THEN - 3 WHEN + - 29 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT + COUNT( * ) + + - COALESCE ( - NULLIF ( SUM( ( + - 7 ) ), - 4 ), + 15, - NULLIF ( 22, - 44 * - 54 ) ) * + 46 AS col1
----
-321

skipif mysql # not compatible
query I rowsort label-1640
SELECT + COUNT ( * ) + + - COALESCE ( - NULLIF ( SUM ( ( + - 7 ) ), - 4 ), + 15, - NULLIF ( 22, - 44 * - 54 ) ) * + 46 AS col1
----
-321

query I rowsort
SELECT ALL ( 34 ) * - 3
----
-102

query I rowsort
SELECT + - 84 + 67 AS col0
----
-17

query I rowsort
SELECT DISTINCT 42 * + 86
----
3612

query I rowsort
SELECT + - 51 * + + 77
----
-3927

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL + SUM( 28 )
----
28

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + SUM ( 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT DISTINCT + SUM( DISTINCT + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT + SUM ( DISTINCT + 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT ALL + COUNT( * ) * + COUNT( * ) * - 62 + COUNT( * ) AS col2, 0 * + COUNT( * ) + + SUM( - 78 ) * + - 57 * 27 AS col1
----
-61
120042

skipif mysql # not compatible
query II rowsort label-1647
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - 62 + COUNT ( * ) AS col2, 0 * + COUNT ( * ) + + SUM ( - 78 ) * + - 57 * 27 AS col1
----
-61
120042

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT - ( - 10 ) * + + 18 + 33 + - + 37 * + ( + CASE - ( + + SUM( + 23 ) ) WHEN + 34 THEN NULL WHEN 4 * 67 THEN - 61 WHEN - 84 THEN NULL ELSE NULL END ) + - 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - ( - 10 ) * + + 18 + 33 + - + 37 * + ( + CASE - ( + + SUM ( + 23 ) ) WHEN + 34 THEN NULL WHEN 4 * 67 THEN - 61 WHEN - 84 THEN NULL ELSE NULL END ) + - 46 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT - + MAX( - 17 ) + + - ( + 40 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1649
SELECT - + MAX ( - 17 ) + + - ( + 40 ) AS col1
----
-23

query I rowsort
SELECT ALL 57 * 87 + - - 90 AS col0
----
5049

query I rowsort
SELECT + + 83 * 87 * + 50 - + 91
----
360959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1652
SELECT + + 25 - - 59 * + - 40 * - 27 + 81 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT + + 25 - - 59 * + - 40 * - 27 + 81 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1653
SELECT - + COUNT( * ) * - COUNT( * ), - COUNT( * ) * 67 * - 0 + - 72 AS col1
----
1
-72

skipif mysql # not compatible
query II rowsort label-1653
SELECT - + COUNT ( * ) * - COUNT ( * ), - COUNT ( * ) * 67 * - 0 + - 72 AS col1
----
1
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT ALL - + 44 DIV 42 * + 67 - + 14 + 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - + 44 / 42 * + 67 - + 14 + 81 AS col2
----
0

query I rowsort
SELECT - 2 + 12 AS col0
----
10

query I rowsort
SELECT ALL - + ( - 25 ) + + + 9
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT ALL + + 56 * + - 9 / + CASE + 33 WHEN + 70 THEN - 0 WHEN - CAST( 64 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + + 56 * + - 9 / + CASE + 33 WHEN + 70 THEN - 0 WHEN - CAST ( 64 AS INTEGER ) THEN NULL END
----
NULL

query II rowsort
SELECT DISTINCT - + 94 + 51, 47 AS col0
----
-43
47

query I rowsort
SELECT 99 - + ( - 18 ) AS col1
----
117

query I rowsort
SELECT ALL + 79 - + ( - 40 ) col1
----
119

query I rowsort
SELECT 79 * - 99 * - 32 AS col2
----
250272

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT COUNT( * ) + 90 * - - 64 + - ( + CASE 55 WHEN + 8 * - - 30 THEN 93 WHEN - 1 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT COUNT ( * ) + 90 * - - 64 + - ( + CASE 55 WHEN + 8 * - - 30 THEN 93 WHEN - 1 THEN NULL ELSE NULL END )
----
NULL

query II rowsort
SELECT DISTINCT 83 AS col1, 76 * + 55
----
83
4180

query I rowsort
SELECT ALL - 97 - 43
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT ALL + 34 DIV - 20 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + 34 / - 20 col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1666
SELECT 11 DIV + 50 * + 29 * 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1666
SELECT 11 / + 50 * + 29 * 47 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1667
SELECT DISTINCT + 25 DIV + + 97 col1
----
0

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + 25 / + + 97 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1668
SELECT COUNT( * ) * + + ( - 32 ), - 39 * + - 38 * - 82 * - + MAX( + - 51 ) AS col1
----
-32
-6197724

skipif mysql # not compatible
query II rowsort label-1668
SELECT COUNT ( * ) * + + ( - 32 ), - 39 * + - 38 * - 82 * - + MAX ( + - 51 ) AS col1
----
-32
-6197724

query I rowsort
SELECT ALL - 8 * + 14 * - + 70
----
7840

query I rowsort
SELECT 20 + + + 93 + 8
----
121

query I rowsort
SELECT ALL ( 89 ) * - 86
----
-7654

query I rowsort
SELECT 29 + - ( 73 ) AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT ALL COALESCE ( - 10, 28 + - + 63, - 19 + + 48 * - CAST( NULL AS SIGNED ) + 12 ) + + 80
----
70

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL COALESCE ( - 10, 28 + - + 63, - 19 + + 48 * - CAST ( NULL AS INTEGER ) + 12 ) + + 80
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1674
SELECT DISTINCT - SUM( 84 ) + + - 1 DIV - + 33 + + 52 + + COUNT( * ) + - + COALESCE ( 77, + 76 ) AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - SUM ( 84 ) + + - 1 / - + 33 + + 52 + + COUNT ( * ) + - + COALESCE ( 77, + 76 ) AS col1
----
-108

query I rowsort
SELECT DISTINCT - ( 44 ) + - 93
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL MAX( + + 47 ) + - 63
----
-16

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL MAX ( + + 47 ) + - 63
----
-16

query I rowsort
SELECT 83 + 10 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL - 9 + COUNT( * ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - 9 + COUNT ( * ) col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-1679
SELECT 29 + - ( - COUNT( * ) ) AS col0, 90
----
30
90

skipif mysql # not compatible
query II rowsort label-1679
SELECT 29 + - ( - COUNT ( * ) ) AS col0, 90
----
30
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - SUM( ALL - + 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-1680
SELECT - SUM ( ALL - + 95 ) col2
----
95

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

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL + 18 / + + COUNT ( * ) * + ( - - MAX ( ( + + CAST ( NULL AS INTEGER ) ) ) ) col1
----
NULL

query I rowsort
SELECT ALL - 59 + + ( - + 66 ) + + - 70 AS col1
----
-195

query I rowsort
SELECT 63 + 12 AS col2
----
75

query I rowsort
SELECT ( ( - 59 ) ) + - ( + + 54 ) AS col1
----
-113

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

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL 0 / - + CAST ( NULL AS REAL ) * COUNT ( * ) + - + 18 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL 74 + - 66 + - COUNT( * ) - - 17 + + + 72
----
96

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL 74 + - 66 + - COUNT ( * ) - - 17 + + + 72
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1687
SELECT DISTINCT - 66 - - 65 DIV - 24 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT - 66 - - 65 / - 24 AS col0
----
-68

query II rowsort
SELECT ALL - 19 AS col2, - 99 + + + ( - 67 ) AS col2
----
-19
-166

query I rowsort
SELECT 78 + 96 AS col1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT - CASE - COUNT( * ) WHEN + COUNT( * ) THEN + - 39 + - ( + + COUNT( ALL + 22 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN + - 39 + - ( + + COUNT ( ALL + 22 ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT - 19 + - 89 + + 32 DIV - - 44
----
-108

skipif mysql # not compatible
query I rowsort label-1691
SELECT - 19 + - 89 + + 32 / - - 44
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT 79 DIV 83 col2
----
0

skipif mysql # not compatible
query I rowsort label-1692
SELECT 79 / 83 col2
----
0

query I rowsort
SELECT 15 * - 74 AS col1
----
-1110

query I rowsort
SELECT 85 + 96 col2
----
181

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

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

query I rowsort
SELECT ( - + 30 ) + 68 AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1697
SELECT COUNT( * ) + - COUNT( * ) + 93 + - 76 * + 32 * + 14 + 59 + 66 + 44 * 14 DIV + 49 + - 50 DIV - 87
----
-33818

skipif mysql # not compatible
query I rowsort label-1697
SELECT COUNT ( * ) + - COUNT ( * ) + 93 + - 76 * + 32 * + 14 + 59 + 66 + 44 * 14 / + 49 + - 50 / - 87
----
-33818

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT ALL + ( + MAX( DISTINCT - 56 ) ) * - 24 * 20 AS col0
----
26880

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + ( + MAX ( DISTINCT - 56 ) ) * - 24 * 20 AS col0
----
26880

query I rowsort
SELECT 20 + + 26 AS col2
----
46

query II rowsort
SELECT ALL 89 col2, + 91 AS col2
----
89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT 30 + - 68 + + 15 + + 46 * 93 + 27 - + COUNT( * ) + + 90 * MIN( ALL 1 ) - + 99
----
4272

skipif mysql # not compatible
query I rowsort label-1702
SELECT 30 + - 68 + + 15 + + 46 * 93 + 27 - + COUNT ( * ) + + 90 * MIN ( ALL 1 ) - + 99
----
4272

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

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

query I rowsort
SELECT 39 + + 96 AS col1
----
135

query I rowsort
SELECT ALL + 76 + + 38 + 8 AS col0
----
122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1706
SELECT NULLIF ( - 57, 97 + NULLIF ( - - CAST( - 96 AS DECIMAL ), + 79 * - + 97 - + 70 ) * 14 * + 50 ) + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-1706
SELECT NULLIF ( - 57, 97 + NULLIF ( - - CAST ( - 96 AS REAL ), + 79 * - + 97 - + 70 ) * 14 * + 50 ) + COUNT ( * )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1707
SELECT 55 + 23 AS col2, CAST( NULL AS SIGNED ) * + + 4 + + COALESCE ( + - ( ( + 2 ) ), 42 * + 66 + + + 56 ) + - 5 AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-1707
SELECT 55 + 23 AS col2, CAST ( NULL AS INTEGER ) * + + 4 + + COALESCE ( + - ( ( + 2 ) ), 42 * + 66 + + + 56 ) + - 5 AS col0
----
78
NULL

query I rowsort
SELECT 29 * + 27 * - - 82 AS col2
----
64206

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT 45 + + - 44 + + 24 DIV - 51 * 38 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1709
SELECT 45 + + - 44 + + 24 / - 51 * 38 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1710
SELECT ALL - 45 * - 64 + + - ( 64 ) + - + MAX( - 41 ) AS col0, + CAST( NULL AS SIGNED ) + - 62 + - 91
----
2857
NULL

skipif mysql # not compatible
query II rowsort label-1710
SELECT ALL - 45 * - 64 + + - ( 64 ) + - + MAX ( - 41 ) AS col0, + CAST ( NULL AS INTEGER ) + - 62 + - 91
----
2857
NULL

query II rowsort
SELECT ALL 82 * - 83 + ( + - 26 ) AS col1, - 14 AS col2
----
-6832
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT + - SUM( DISTINCT + 82 ) * 29 * + + 51 + - - 61 * - + 78
----
-126036

skipif mysql # not compatible
query I rowsort label-1712
SELECT + - SUM ( DISTINCT + 82 ) * 29 * + + 51 + - - 61 * - + 78
----
-126036

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT 98 DIV 51 * + 91 + - 33 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1713
SELECT 98 / 51 * + 91 + - 33 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT SUM( DISTINCT - 2 ) * - + 18 + + 17 + - 14
----
39

skipif mysql # not compatible
query I rowsort label-1714
SELECT SUM ( DISTINCT - 2 ) * - + 18 + + 17 + - 14
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT 29 * - ( COALESCE ( + 34, - + 56 * + 82 DIV + 31, + NULLIF ( 22, - 46 ) + - 61 + + 37 DIV 62 ) )
----
-986

skipif mysql # not compatible
query I rowsort label-1715
SELECT 29 * - ( COALESCE ( + 34, - + 56 * + 82 / + 31, + NULLIF ( 22, - 46 ) + - 61 + + 37 / 62 ) )
----
-986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1716
SELECT ALL - + 52 * + CAST( NULL AS SIGNED ) * + 60 * - + CASE - 64 WHEN - SUM( ALL COALESCE ( + 81, 56 ) ) + + 58 * - 73 / CAST( 40 AS SIGNED ) THEN 49 * 19 WHEN - 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - + 52 * + CAST ( NULL AS INTEGER ) * + 60 * - + CASE - 64 WHEN - SUM ( ALL COALESCE ( + 81, 56 ) ) + + 58 * - 73 / CAST ( 40 AS INTEGER ) THEN 49 * 19 WHEN - 1 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1717
SELECT ALL - CAST( NULL AS SIGNED ) * - 39 + - 88 + AVG ( ALL - 71 ) * NULLIF ( + 44, ( + 43 ) ) * + - 52 * 39 + + 97 * ( 73 - COUNT( * ) ) * 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - CAST ( NULL AS INTEGER ) * - 39 + - 88 + AVG ( ALL - 71 ) * NULLIF ( + 44, ( + 43 ) ) * + - 52 * 39 + + 97 * ( 73 - COUNT ( * ) ) * 2 col2
----
NULL

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

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

query I rowsort
SELECT 75 + + 37 * 33
----
1296

query I rowsort
SELECT 3 * + ( + + 70 ) + + 94 + 16
----
320

onlyif mysql # DIV for integer division: 
query II rowsort label-1721
SELECT ALL + 65, 5 DIV - - 65 col0
----
65
0

skipif mysql # not compatible
query II rowsort label-1721
SELECT ALL + 65, 5 / - - 65 col0
----
65
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1722
SELECT DISTINCT + - ( - SUM( ALL + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT + - ( - SUM ( ALL + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1723
SELECT ALL + 79 * - COUNT( DISTINCT - 70 ) + + 59 + MIN( + - 60 ) * + + CAST( NULLIF ( 27, - 15 * - 8 ) AS SIGNED )
----
-1640

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL + 79 * - COUNT ( DISTINCT - 70 ) + + 59 + MIN ( + - 60 ) * + + CAST ( NULLIF ( 27, - 15 * - 8 ) AS INTEGER )
----
-1640

query I rowsort
SELECT - - 17 * + 27
----
459

query I rowsort
SELECT + CASE 88 WHEN + 0 THEN + 25 WHEN - + NULLIF ( + 34, 70 ) * - ( - + 22 ) THEN NULL ELSE - + 93 END
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1726
SELECT ALL + ( 91 ), CASE - CASE 82 WHEN + - CAST( + 27 AS SIGNED ) THEN + 49 WHEN - 15 * - - 22 - AVG ( ALL 98 ) THEN - COUNT( * ) + - COALESCE ( 73, + 34, 95, CASE COUNT( * ) WHEN 80 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN - COUNT( * ) + + CAST( NULL AS SIGNED ) * - 38 ELSE NULL END * 30 ) ELSE COUNT( * ) END WHEN + 56 * COALESCE ( ( 36 ) / + 32, 45 / 17 ) + - 55 * + COALESCE ( 47, 98, + COUNT( * ) ) THEN ( 9 ) + - 94 WHEN + 28 / 37 THEN CASE ( - 19 ) WHEN 80 THEN NULL ELSE 22 END / + 59 WHEN 58 + 88 THEN NULL END col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-1726
SELECT ALL + ( 91 ), CASE - CASE 82 WHEN + - CAST ( + 27 AS INTEGER ) THEN + 49 WHEN - 15 * - - 22 - AVG ( ALL 98 ) THEN - COUNT ( * ) + - COALESCE ( 73, + 34, 95, CASE COUNT ( * ) WHEN 80 THEN NULL WHEN CAST ( NULL AS REAL ) THEN - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 38 ELSE NULL END * 30 ) ELSE COUNT ( * ) END WHEN + 56 * COALESCE ( ( 36 ) / + 32, 45 / 17 ) + - 55 * + COALESCE ( 47, 98, + COUNT ( * ) ) THEN ( 9 ) + - 94 WHEN + 28 / 37 THEN CASE ( - 19 ) WHEN 80 THEN NULL ELSE 22 END / + 59 WHEN 58 + 88 THEN NULL END col2
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT + - 25 + 4 - + 36 * SUM( 88 ) AS col1
----
-3189

skipif mysql # not compatible
query I rowsort label-1727
SELECT + - 25 + 4 - + 36 * SUM ( 88 ) AS col1
----
-3189

query II rowsort
SELECT + 18, - 89 AS col0
----
18
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT + - 77 AS col2, - CASE + + 71 WHEN + 14 THEN NULL WHEN + 11 * + - 5 + + COUNT( - 25 ) THEN + 46 END * - MIN( - + 36 )
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-1729
SELECT + - 77 AS col2, - CASE + + 71 WHEN + 14 THEN NULL WHEN + 11 * + - 5 + + COUNT ( - 25 ) THEN + 46 END * - MIN ( - + 36 )
----
-77
NULL

query II rowsort
SELECT - 2, + 86 + - 78 AS col0
----
-2
8

query I rowsort
SELECT - 21 - 7
----
-28

query I rowsort
SELECT + 4 * - ( + 13 )
----
-52

query I rowsort
SELECT DISTINCT 28 * + 13
----
364

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

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

query I rowsort
SELECT DISTINCT - 52 * 50 AS col1
----
-2600

query I rowsort
SELECT DISTINCT 92 * 35 AS col0
----
3220

onlyif mysql # DIV for integer division: 
query II rowsort label-1737
SELECT + 33 DIV + 28 AS col2, - 87 + - 89 AS col1
----
1
-176

skipif mysql # not compatible
query II rowsort label-1737
SELECT + 33 / + 28 AS col2, - 87 + - 89 AS col1
----
1
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1738
SELECT + 38 / CASE + - CAST( NULL AS SIGNED ) WHEN + + 63 * + - COUNT( * ) * 78 + + - 86 THEN NULL WHEN - + COUNT( + - COALESCE ( + 61, - 99 * - 84 * 31 + 94 * + 32 ) ) THEN CAST( 7 AS SIGNED ) * + NULLIF ( COUNT( * ) * + 60, 49 / + NULLIF ( + MAX( DISTINCT + 3 ), - 63 * 29 ) ) END / 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT + 38 / CASE + - CAST ( NULL AS INTEGER ) WHEN + + 63 * + - COUNT ( * ) * 78 + + - 86 THEN NULL WHEN - + COUNT ( + - COALESCE ( + 61, - 99 * - 84 * 31 + 94 * + 32 ) ) THEN CAST ( 7 AS INTEGER ) * + NULLIF ( COUNT ( * ) * + 60, 49 / + NULLIF ( + MAX ( DISTINCT + 3 ), - 63 * 29 ) ) END / 61
----
NULL

query I rowsort
SELECT + 50 * - - 47 AS col0
----
2350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL CAST( NULL AS SIGNED ) + AVG ( 68 ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL CAST ( NULL AS INTEGER ) + AVG ( 68 ) * 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT + 2 DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT + 2 / 28
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1742
SELECT ALL 14 + - + 7 * + COALESCE ( + - 71, + ( - 39 ), - + SUM( + 1 ) * + 44 + - + CASE - 59 WHEN - 9 + + MAX( - 17 ) THEN - 9 WHEN 25 THEN NULL ELSE NULL END + CAST( NULL AS SIGNED ) )
----
511

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL 14 + - + 7 * + COALESCE ( + - 71, + ( - 39 ), - + SUM ( + 1 ) * + 44 + - + CASE - 59 WHEN - 9 + + MAX ( - 17 ) THEN - 9 WHEN 25 THEN NULL ELSE NULL END + CAST ( NULL AS INTEGER ) )
----
511

query I rowsort
SELECT + 79 * - 41
----
-3239

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT COALESCE ( - COUNT( * ), - - 82 * + 35 - + ( + COUNT( - 94 ) ), + - 85 ) + - 27 * + 24 AS col0
----
-649

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT COALESCE ( - COUNT ( * ), - - 82 * + 35 - + ( + COUNT ( - 94 ) ), + - 85 ) + - 27 * + 24 AS col0
----
-649

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT - 99 * - ( COUNT( * ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT - 99 * - ( COUNT ( * ) ) AS col1
----
99

query I rowsort
SELECT - - 73 * 72 AS col1
----
5256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT DISTINCT ( COUNT( * ) ) * - + 33 + + NULLIF ( 48, + + CAST( - 0 AS SIGNED ) + + 4 )
----
15

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT ( COUNT ( * ) ) * - + 33 + + NULLIF ( 48, + + CAST ( - 0 AS INTEGER ) + + 4 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1748
SELECT - + 4 DIV + + 42 + - - MAX( - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-1748
SELECT - + 4 / + + 42 + - - MAX ( - 95 ) AS col2
----
-95

query II rowsort
SELECT ALL - 18 * + + 54 AS col0, + 73 - + 23
----
-972
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT - 46 * 99 * + 98 * + MAX( - 98 )
----
43736616

skipif mysql # not compatible
query I rowsort label-1750
SELECT - 46 * 99 * + 98 * + MAX ( - 98 )
----
43736616

query I rowsort
SELECT ALL + + NULLIF ( 51, - 63 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT + COUNT( DISTINCT - CASE + 41 WHEN + 77 THEN NULL WHEN + 63 THEN - 48 + 14 ELSE NULL END ) * - 9 + - + 64 + ( COUNT( * ) ) + + 7 * - COUNT( * ) * 19 AS col1
----
-196

skipif mysql # not compatible
query I rowsort label-1752
SELECT + COUNT ( DISTINCT - CASE + 41 WHEN + 77 THEN NULL WHEN + 63 THEN - 48 + 14 ELSE NULL END ) * - 9 + - + 64 + ( COUNT ( * ) ) + + 7 * - COUNT ( * ) * 19 AS col1
----
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-1753
SELECT - COALESCE ( MIN( - - CASE WHEN NOT NULL IS NOT NULL THEN 68 ELSE NULL END ), 17 + 93 ) AS col0, + 87 * - - COUNT( * )
----
-68
87

skipif mysql # not compatible
query II rowsort label-1753
SELECT - COALESCE ( MIN ( - - CASE WHEN NOT NULL IS NOT NULL THEN 68 ELSE NULL END ), 17 + 93 ) AS col0, + 87 * - - COUNT ( * )
----
-68
87

query I rowsort
SELECT 62 * + 31 + 65 + - 22
----
1965

onlyif mysql # DIV for integer division: 
query I rowsort label-1755
SELECT ALL - - 25 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL - - 25 / - 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT - + 96 + - 97 * COUNT( * ) * - CASE - 43 WHEN + - 41 THEN NULL WHEN + 69 THEN + 1 + + - 41 WHEN - 88 / 7 + + - 20 * COUNT( * ) THEN + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1756
SELECT - + 96 + - 97 * COUNT ( * ) * - CASE - 43 WHEN + - 41 THEN NULL WHEN + 69 THEN + 1 + + - 41 WHEN - 88 / 7 + + - 20 * COUNT ( * ) THEN + 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT + 79 * - + COUNT( * ) * + 69 col1
----
-5451

skipif mysql # not compatible
query I rowsort label-1757
SELECT + 79 * - + COUNT ( * ) * + 69 col1
----
-5451

query I rowsort
SELECT COALESCE ( 90, - + 21 ) * + 1 + - ( + 72 ) AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT + 75 DIV - ( 29 )
----
-2

skipif mysql # not compatible
query I rowsort label-1759
SELECT + 75 / - ( 29 )
----
-2

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

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

query I rowsort
SELECT - - 19 * - 84 * + + 84 - + + 3 AS col2
----
-134067

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT + - ( + 76 ) * + COUNT( * ) * + 4 * + 97 + COUNT( * ) AS col2
----
-29487

skipif mysql # not compatible
query I rowsort label-1762
SELECT + - ( + 76 ) * + COUNT ( * ) * + 4 * + 97 + COUNT ( * ) AS col2
----
-29487

query I rowsort
SELECT - 93 * COALESCE ( + + ( + - 51 ), + 17 ) AS col0
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT DISTINCT - 66 * COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT - 66 * COUNT ( * ) AS col0
----
-66

query I rowsort
SELECT ALL ( - - 74 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT DISTINCT CAST( 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT CAST ( 59 AS INTEGER )
----
59

query I rowsort
SELECT + 21 + - ( - 63 )
----
84

query I rowsort
SELECT - 50 + - 63 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT MAX( - - 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1769
SELECT MAX ( - - 82 ) AS col2
----
82

query I rowsort
SELECT - 27 + 67 * - - 45 AS col2
----
2988

query I rowsort
SELECT + 32 * 39 AS col0
----
1248

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

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col2
----
2

query II rowsort
SELECT ALL 94 AS col1, + 82 AS col2
----
94
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT - COUNT( * ) + - - 41
----
40

skipif mysql # not compatible
query I rowsort label-1774
SELECT - COUNT ( * ) + - - 41
----
40

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

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

query I rowsort
SELECT DISTINCT + 4 * - 13
----
-52

query I rowsort
SELECT ALL 67 + 38 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + 73 + CASE + 38 WHEN + COUNT( + 18 ) THEN + 8 END + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT + 73 + CASE + 38 WHEN + COUNT ( + 18 ) THEN + 8 END + - 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1779
SELECT ALL COALESCE ( 66, - CAST( - 81 AS SIGNED ) * COUNT( * ) ) * + - 63
----
-4158

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL COALESCE ( 66, - CAST ( - 81 AS INTEGER ) * COUNT ( * ) ) * + - 63
----
-4158

query I rowsort
SELECT - 61 * + 65
----
-3965

query I rowsort
SELECT + 25 + - 80
----
-55

query I rowsort
SELECT ALL 77 + + 6 AS col1
----
83

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

skipif mysql # not compatible
query I rowsort label-1783
SELECT - COUNT ( 38 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT ( 74 ) DIV 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1784
SELECT ( 74 ) / 52 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - 30 / - COUNT ( * )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1786
SELECT + 6 * + - 59 + - NULLIF ( - + ( + - 65 ), + CAST( NULL AS SIGNED ) / 82 + + 75 ) + - 12 + 95 * - - 37 AS col2, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - MAX( ALL 71 * 2 )
----
3084
NULL

skipif mysql # not compatible
query II rowsort label-1786
SELECT + 6 * + - 59 + - NULLIF ( - + ( + - 65 ), + CAST ( NULL AS INTEGER ) / 82 + + 75 ) + - 12 + 95 * - - 37 AS col2, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - MAX ( ALL 71 * 2 )
----
3084
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT + 79, 42 * 62 + + - COUNT( - - 60 ) col2
----
79
2603

skipif mysql # not compatible
query II rowsort label-1787
SELECT + 79, 42 * 62 + + - COUNT ( - - 60 ) col2
----
79
2603

query I rowsort
SELECT + ( + 29 ) * + COALESCE ( - - ( - 55 ), + 61 * 54 * - 12 ) col2
----
-1595

query I rowsort
SELECT DISTINCT - 28 - 99 + 14 col1
----
-113

query I rowsort
SELECT ALL - + 22 * + CASE 81 WHEN + - 99 THEN NULL ELSE + - 80 END AS col1
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT - 14 * ( - - COUNT( * ) ) + + 33 + 46
----
65

skipif mysql # not compatible
query I rowsort label-1791
SELECT - 14 * ( - - COUNT ( * ) ) + + 33 + 46
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT DISTINCT - 78 * - - 73 * CASE + ( - 22 ) WHEN ( - + 46 ) THEN + - 50 ELSE MIN( - 3 ) END AS col2
----
17082

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - 78 * - - 73 * CASE + ( - 22 ) WHEN ( - + 46 ) THEN + - 50 ELSE MIN ( - 3 ) END AS col2
----
17082

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1794
SELECT + 46 * + 97 * + 77 * + 13 DIV - + COUNT( * )
----
-4466462

skipif mysql # not compatible
query I rowsort label-1794
SELECT + 46 * + 97 * + 77 * + 13 / - + COUNT ( * )
----
-4466462

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT + + COUNT( ALL - 32 )
----
1

skipif mysql # not compatible
query I rowsort label-1795
SELECT + + COUNT ( ALL - 32 )
----
1

query I rowsort
SELECT COALESCE ( + - 44, - + 65 ) + - 99
----
-143

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

skipif mysql # not compatible
query I rowsort label-1797
SELECT + COUNT ( ALL + 69 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1798
SELECT ALL - MAX( 92 ) * + 74 AS col1, + 96
----
-6808
96

skipif mysql # not compatible
query II rowsort label-1798
SELECT ALL - MAX ( 92 ) * + 74 AS col1, + 96
----
-6808
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT - 12 DIV - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1799
SELECT - 12 / - 28 AS col0
----
0

query I rowsort
SELECT 40 * - 93 AS col1
----
-3720

query I rowsort
SELECT ALL + 89 + - 76 + 98 AS col1
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1802
SELECT 20 DIV 91 * COALESCE ( - 15, - ( + - COALESCE ( - 39, + + MIN( 42 ) - COUNT( * ) * 90, - 4, - ( - 1 ) + - CASE + 49 WHEN - 40 - - 97 * 22 THEN 34 * + 1 WHEN 44 * 71 - 83 * - MIN( + 31 ) THEN ( 50 ) * 78 ELSE NULL END * 27 ) ) + 11 )
----
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT 20 / 91 * COALESCE ( - 15, - ( + - COALESCE ( - 39, + + MIN ( 42 ) - COUNT ( * ) * 90, - 4, - ( - 1 ) + - CASE + 49 WHEN - 40 - - 97 * 22 THEN 34 * + 1 WHEN 44 * 71 - 83 * - MIN ( + 31 ) THEN ( 50 ) * 78 ELSE NULL END * 27 ) ) + 11 )
----
0

query I rowsort
SELECT + 1 * + 19 + - - 92 * 44 * + 41
----
165987

query I rowsort
SELECT ALL + 44 + 93 - + 48 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1805
SELECT 55 * - 43, 60 * + NULLIF ( + 33, + + 2 + - COALESCE ( 94, - 7 * + 10 / - 72, 26 ) - + 48 + + 75 + 40 * COUNT( * ) ) AS col0
----
-2365
1980

skipif mysql # not compatible
query II rowsort label-1805
SELECT 55 * - 43, 60 * + NULLIF ( + 33, + + 2 + - COALESCE ( 94, - 7 * + 10 / - 72, 26 ) - + 48 + + 75 + 40 * COUNT ( * ) ) AS col0
----
-2365
1980

query I rowsort
SELECT 58 - + 54
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL - 45 + COALESCE ( - + 18, - COUNT( * ), 95 + 13 )
----
-63

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL - 45 + COALESCE ( - + 18, - COUNT ( * ), 95 + 13 )
----
-63

query I rowsort
SELECT 35 - + 4
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT MIN( + NULLIF ( ( - - 74 ), 58 ) ) * - 85
----
-6290

skipif mysql # not compatible
query I rowsort label-1809
SELECT MIN ( + NULLIF ( ( - - 74 ), 58 ) ) * - 85
----
-6290

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL + COUNT( * ) * - - 7
----
7

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL + COUNT ( * ) * - - 7
----
7

query I rowsort
SELECT DISTINCT - 32 - + 82
----
-114

query I rowsort
SELECT DISTINCT ( 46 ) AS col0
----
46

query I rowsort
SELECT DISTINCT + ( + 73 ) * + - 4
----
-292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1815
SELECT + + ( - - COUNT( * ) ) DIV 72 + - 74 + - + 66
----
-140

skipif mysql # not compatible
query I rowsort label-1815
SELECT + + ( - - COUNT ( * ) ) / 72 + - 74 + - + 66
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT + CASE - COUNT( * ) WHEN - 75 - + AVG ( + 49 ) THEN + 80 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1816
SELECT + CASE - COUNT ( * ) WHEN - 75 - + AVG ( + 49 ) THEN + 80 END AS col1
----
NULL

query I rowsort
SELECT + + NULLIF ( + + 92, 0 + - 51 ) AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT 32 + - 6 DIV + 11
----
32

skipif mysql # not compatible
query I rowsort label-1818
SELECT 32 + - 6 / + 11
----
32

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

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

query I rowsort
SELECT ALL 41 + 0 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT DISTINCT + + 53 + + + 43 DIV 14
----
56

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT + + 53 + + + 43 / 14
----
56

query I rowsort
SELECT ( 66 ) + ( 62 ) AS col2
----
128

query I rowsort
SELECT ALL NULLIF ( + 19, + + 21 ) + + 78 + 55
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT 21 * - 13 + COUNT( * )
----
-272

skipif mysql # not compatible
query I rowsort label-1824
SELECT 21 * - 13 + COUNT ( * )
----
-272

query I rowsort
SELECT + 97 * + 73 - + 36 * + 34 AS col2
----
5857

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT DISTINCT + 76 + ( MAX( + 42 ) ) + 81 + - - 72 AS col0
----
271

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT + 76 + ( MAX ( + 42 ) ) + 81 + - - 72 AS col0
----
271

query I rowsort
SELECT DISTINCT ( + 40 ) * - 26 AS col2
----
-1040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1828
SELECT 58 + COUNT( * ) + - ( - COALESCE ( + 73, 91 * - 58 DIV - - 53 ) )
----
132

skipif mysql # not compatible
query I rowsort label-1828
SELECT 58 + COUNT ( * ) + - ( - COALESCE ( + 73, 91 * - 58 / - - 53 ) )
----
132

query I rowsort
SELECT ALL - 59 - - - 48 + - - 60 AS col0
----
-47

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

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

query I rowsort
SELECT + 37 + + 87 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - COUNT( * ) + 65
----
64

skipif mysql # not compatible
query I rowsort label-1832
SELECT - COUNT ( * ) + 65
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT - 78 DIV + - ( + + 43 )
----
1

skipif mysql # not compatible
query I rowsort label-1833
SELECT - 78 / + - ( + + 43 )
----
1

query I rowsort
SELECT - 90 + + 92
----
2

query I rowsort
SELECT DISTINCT - 3 * + 41 AS col0
----
-123

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT - 69 DIV + + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1837
SELECT - 69 / + + 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT + - 89 * COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + - 89 * COUNT ( * )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1839
SELECT - + 9 + 67 + - + CAST( - + 23 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-1839
SELECT - + 9 + 67 + - + CAST ( - + 23 AS INTEGER )
----
81

query II rowsort
SELECT ALL 37, 50 AS col1
----
37
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1841
SELECT + COUNT( * ) + - CASE + 62 WHEN 83 THEN - 5 * - - CAST( 39 AS DECIMAL ) END + 26 + - 66 - ( - - ( CAST( - - CAST( - CASE - + 78 WHEN + 3 THEN + 76 * - 16 WHEN CASE 72 WHEN - COUNT( * ) THEN + 65 WHEN 35 * 98 - 25 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 10 + 27 END THEN + 46 * ( COALESCE ( 43, 30 + 24 * NULLIF ( + 64 + 57, - 61 / 76 ) ) * - 49 ) WHEN 58 + + 77 THEN NULL WHEN 58 THEN NULL END AS SIGNED ) AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT + COUNT ( * ) + - CASE + 62 WHEN 83 THEN - 5 * - - CAST ( 39 AS REAL ) END + 26 + - 66 - ( - - ( CAST ( - - CAST ( - CASE - + 78 WHEN + 3 THEN + 76 * - 16 WHEN CASE 72 WHEN - COUNT ( * ) THEN + 65 WHEN 35 * 98 - 25 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 10 + 27 END THEN + 46 * ( COALESCE ( 43, 30 + 24 * NULLIF ( + 64 + 57, - 61 / 76 ) ) * - 49 ) WHEN 58 + + 77 THEN NULL WHEN 58 THEN NULL END AS INTEGER ) AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT - + 6 * + 60
----
-360

query I rowsort
SELECT - ( + 45 ) * 74 col2
----
-3330

query I rowsort
SELECT ALL - 46 * + 79 AS col0
----
-3634

query I rowsort
SELECT ALL + ( NULLIF ( 24, + 56 + 46 / 99 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT COALESCE ( - 1, + + 42 * + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1846
SELECT COALESCE ( - 1, + + 42 * + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + + 7 * - COUNT( * ) * + COUNT( * ) * + 82
----
-574

skipif mysql # not compatible
query I rowsort label-1847
SELECT + + 7 * - COUNT ( * ) * + COUNT ( * ) * + 82
----
-574

query II rowsort
SELECT DISTINCT + 75 AS col0, - 98 AS col2
----
75
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-1849
SELECT COALESCE ( - 75, + + COUNT( DISTINCT + ( + 21 ) ) * + 20 ) AS col2, - 6 col1
----
-75
-6

skipif mysql # not compatible
query II rowsort label-1849
SELECT COALESCE ( - 75, + + COUNT ( DISTINCT + ( + 21 ) ) * + 20 ) AS col2, - 6 col1
----
-75
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT - 27 + - - 11 * 44 * COUNT( * ) * 99 col2
----
47889

skipif mysql # not compatible
query I rowsort label-1850
SELECT - 27 + - - 11 * 44 * COUNT ( * ) * 99 col2
----
47889

query I rowsort
SELECT + 92 * - - 19 AS col1
----
1748

query I rowsort
SELECT + 56 * + + 49 AS col1
----
2744

query I rowsort
SELECT ALL 68 * + 94
----
6392

query I rowsort
SELECT + ( - 53 ) + 31
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT + NULLIF ( ( CAST( - - 19 AS SIGNED ) ), 84 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-1855
SELECT + NULLIF ( ( CAST ( - - 19 AS INTEGER ) ), 84 ) col1
----
19

query I rowsort
SELECT + 96 - - 41
----
137

query I rowsort
SELECT + 2 * - + ( - + 45 )
----
90

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

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

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

query I rowsort
SELECT + 66 * + NULLIF ( + 81, - + 31 )
----
5346

onlyif mysql # aggregate syntax: 
query II rowsort label-1861
SELECT ALL + COUNT( * ) AS col1, + 82
----
1
82

skipif mysql # not compatible
query II rowsort label-1861
SELECT ALL + COUNT ( * ) AS col1, + 82
----
1
82

query I rowsort
SELECT + + 18 * - 16 col1
----
-288

query I rowsort
SELECT + 16 - - - 62
----
-46

query I rowsort
SELECT + 29 - - 18 AS col0
----
47

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

skipif mysql # not compatible
query I rowsort label-1865
SELECT - SUM ( ALL 81 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1866
SELECT - CAST( NULL AS SIGNED ) / - - 61 AS col1, + NULLIF ( CAST( NULL AS DECIMAL ), + + 80 ) * + + 36
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1866
SELECT - CAST ( NULL AS INTEGER ) / - - 61 AS col1, + NULLIF ( CAST ( NULL AS REAL ), + + 80 ) * + + 36
----
NULL
NULL

query I rowsort
SELECT ALL - 58 + + 18 AS col0
----
-40

query I rowsort
SELECT - - 47 * - 93 AS col1
----
-4371

onlyif mysql # aggregate syntax: 
query II rowsort label-1869
SELECT - 56 * - 66, 38 + + COUNT( DISTINCT + 76 ) + + 73 AS col2
----
3696
112

skipif mysql # not compatible
query II rowsort label-1869
SELECT - 56 * - 66, 38 + + COUNT ( DISTINCT + 76 ) + + 73 AS col2
----
3696
112

query I rowsort
SELECT ALL + - ( + 71 ) + 41 AS col2
----
-30

query I rowsort
SELECT DISTINCT COALESCE ( 9, 67 * 42, - - 40, + - 15 + + 25 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL - 97 + MIN( DISTINCT - 78 ) AS col2
----
-175

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL - 97 + MIN ( DISTINCT - 78 ) AS col2
----
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1873
SELECT - + CAST( + + 8 AS SIGNED ) - - - COUNT( * ) * COUNT( * ) AS col0, - 46 AS col2
----
-9
-46

skipif mysql # not compatible
query II rowsort label-1873
SELECT - + CAST ( + + 8 AS INTEGER ) - - - COUNT ( * ) * COUNT ( * ) AS col0, - 46 AS col2
----
-9
-46

query II rowsort
SELECT DISTINCT - 79, 91 AS col1
----
-79
91

query I rowsort
SELECT ALL - + 36 + + 74
----
38

query II rowsort
SELECT DISTINCT + 59 AS col0, 93 * + 99 AS col2
----
59
9207

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT 51 DIV 87 + + 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1877
SELECT 51 / 87 + + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT - 87 + + + 69 * - + COALESCE ( - + ( - 6 ), + 24 - + 17, 70 + - 0 * COUNT( * ), - 15 ) + + 47
----
-454

skipif mysql # not compatible
query I rowsort label-1878
SELECT - 87 + + + 69 * - + COALESCE ( - + ( - 6 ), + 24 - + 17, 70 + - 0 * COUNT ( * ), - 15 ) + + 47
----
-454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1879
SELECT 30 * - 64 + 2 + - CASE + + 78 WHEN COUNT( DISTINCT - + 11 ) THEN - + 81 + + - 46 * + 97 DIV + - 96 ELSE - ( + + 91 ) END
----
-1827

skipif mysql # not compatible
query I rowsort label-1879
SELECT 30 * - 64 + 2 + - CASE + + 78 WHEN COUNT ( DISTINCT - + 11 ) THEN - + 81 + + - 46 * + 97 / + - 96 ELSE - ( + + 91 ) END
----
-1827

query I rowsort
SELECT - 80 * 54 * + 85
----
-367200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT ALL + CASE - 82 WHEN MAX( 69 ) THEN - 8 WHEN + ( - COALESCE ( - COUNT( * ), 96 * CAST( + 65 AS SIGNED ) + - CAST( - 7 AS SIGNED ) ) ) + 97 THEN + - 46 * + 29 - - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + CASE - 82 WHEN MAX ( 69 ) THEN - 8 WHEN + ( - COALESCE ( - COUNT ( * ), 96 * CAST ( + 65 AS INTEGER ) + - CAST ( - 7 AS INTEGER ) ) ) + 97 THEN + - 46 * + 29 - - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL 27 * + ( + 67 ) * + - 2 * + MIN( ALL + 68 )
----
-246024

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL 27 * + ( + 67 ) * + - 2 * + MIN ( ALL + 68 )
----
-246024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1883
SELECT - 33 + 20 DIV ( + - MIN( DISTINCT - - 10 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1883
SELECT - 33 + 20 / ( + - MIN ( DISTINCT - - 10 ) ) AS col2
----
-35

query II rowsort
SELECT + COALESCE ( 3, - 14 + ( + 0 ) ) AS col1, - 94 * + 65 AS col0
----
3
-6110

query I rowsort
SELECT DISTINCT - 40 * - 35
----
1400

onlyif mysql # DIV for integer division: 
query II rowsort label-1886
SELECT 48 DIV + + 84 AS col0, + 85 AS col1
----
0
85

skipif mysql # not compatible
query II rowsort label-1886
SELECT 48 / + + 84 AS col0, + 85 AS col1
----
0
85

query I rowsort
SELECT 54 * + 93 AS col2
----
5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1888
SELECT + CAST( ( + 59 ) AS SIGNED ) * MIN( - 52 ) * + - NULLIF ( - - 12, + 17 ) * + + COALESCE ( COUNT( * ), 4 ) * 97 + + 90 * - - 90 * - 63 * - COUNT( * ) + + - COUNT( * ) * ( ( - 51 ) ) - 38 * ( - 79 ) + 36 DIV + 86
----
4084505

skipif mysql # not compatible
query I rowsort label-1888
SELECT + CAST ( ( + 59 ) AS INTEGER ) * MIN ( - 52 ) * + - NULLIF ( - - 12, + 17 ) * + + COALESCE ( COUNT ( * ), 4 ) * 97 + + 90 * - - 90 * - 63 * - COUNT ( * ) + + - COUNT ( * ) * ( ( - 51 ) ) - 38 * ( - 79 ) + 36 / + 86
----
4084505

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

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT - MAX ( 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL - COALESCE ( NULLIF ( + 30, + 14 ), - 17 + + 54, 75 + NULLIF ( - 46, - COUNT( * ) ) )
----
-30

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL - COALESCE ( NULLIF ( + 30, + 14 ), - 17 + + 54, 75 + NULLIF ( - 46, - COUNT ( * ) ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT COUNT( * ) * + 55 * - 44
----
-2420

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT COUNT ( * ) * + 55 * - 44
----
-2420

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1893
SELECT + COUNT( * ) + - CASE + 6 WHEN ( - - 73 ) THEN NULL ELSE CAST( NULL AS SIGNED ) * 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT + COUNT ( * ) + - CASE + 6 WHEN ( - - 73 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL 44 + + COUNT( * ) * + 24
----
68

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL 44 + + COUNT ( * ) * + 24
----
68

query I rowsort
SELECT NULLIF ( - 89, - 19 + + 24 ) + - 89 * - + 47 AS col0
----
4094

query I rowsort
SELECT ALL + 70 + + 73 * 86 AS col0
----
6348

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + 40 + - 10 + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1897
SELECT + 40 + - 10 + + + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-1898
SELECT DISTINCT - 68 + - 14 AS col1, 19 * - MAX( ( - 11 ) ) * - - 16 AS col0
----
-82
3344

skipif mysql # not compatible
query II rowsort label-1898
SELECT DISTINCT - 68 + - 14 AS col1, 19 * - MAX ( ( - 11 ) ) * - - 16 AS col0
----
-82
3344

query I rowsort
SELECT ALL - + 96 + - + 64 col1
----
-160

query I rowsort
SELECT 7 + - 84
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1901
SELECT ALL COUNT( * ) + - 23 AS col2, + 55 * - + COUNT( 11 )
----
-22
-55

skipif mysql # not compatible
query II rowsort label-1901
SELECT ALL COUNT ( * ) + - 23 AS col2, + 55 * - + COUNT ( 11 )
----
-22
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1902
SELECT - 90 + - + 6 AS col1, 17 * - 0 * + - 42 * + NULLIF ( + + CAST( NULL AS SIGNED ), 98 * + 11 / + + 12 * - 13 ) AS col1
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1902
SELECT - 90 + - + 6 AS col1, 17 * - 0 * + - 42 * + NULLIF ( + + CAST ( NULL AS INTEGER ), 98 * + 11 / + + 12 * - 13 ) AS col1
----
-96
NULL

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

skipif mysql # not compatible
query I rowsort label-1903
SELECT MAX ( + 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT - ( - 83 ) + - 79 / - - COUNT( * ) + + - CASE + 57 WHEN - 7 + - COALESCE ( - + 33, + COUNT( * ) + + 48 + - NULLIF ( + 7, + CAST( NULL AS SIGNED ) ) + + - CASE + COUNT( * ) WHEN MAX( + 8 ) + 91 THEN 49 + - 79 * + 98 ELSE - 10 END + 30 ) THEN 60 + + 53 * ( 74 + + COUNT( * ) / + 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT - ( - 83 ) + - 79 / - - COUNT ( * ) + + - CASE + 57 WHEN - 7 + - COALESCE ( - + 33, + COUNT ( * ) + + 48 + - NULLIF ( + 7, + CAST ( NULL AS INTEGER ) ) + + - CASE + COUNT ( * ) WHEN MAX ( + 8 ) + 91 THEN 49 + - 79 * + 98 ELSE - 10 END + 30 ) THEN 60 + + 53 * ( 74 + + COUNT ( * ) / + 9 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1905
SELECT ALL COUNT( + 9 ) DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL COUNT ( + 9 ) / - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT + COUNT( * ) + - COALESCE ( + COUNT( * ), - 90 ) * - MAX( - 73 ) * 55 + 34 + + MIN( DISTINCT + 73 ) AS col2
----
-3907

skipif mysql # not compatible
query I rowsort label-1906
SELECT + COUNT ( * ) + - COALESCE ( + COUNT ( * ), - 90 ) * - MAX ( - 73 ) * 55 + 34 + + MIN ( DISTINCT + 73 ) AS col2
----
-3907

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT ALL + COALESCE ( 3, - - COUNT( * ), + + ( - - COUNT( DISTINCT + CAST( - 17 AS SIGNED ) ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + COALESCE ( 3, - - COUNT ( * ), + + ( - - COUNT ( DISTINCT + CAST ( - 17 AS INTEGER ) ) ) )
----
3

query II rowsort
SELECT 94 AS col2, 83 * - 50 AS col1
----
94
-4150

onlyif mysql # DIV for integer division: 
query II rowsort label-1909
SELECT DISTINCT ( + - ( 54 ) ) - - + 97 + + ( 21 ) * - ( + 20 ), ( + - ( - + 17 ) ) DIV + - 65 + 33 AS col1
----
-377
33

skipif mysql # not compatible
query II rowsort label-1909
SELECT DISTINCT ( + - ( 54 ) ) - - + 97 + + ( 21 ) * - ( + 20 ), ( + - ( - + 17 ) ) / + - 65 + 33 AS col1
----
-377
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1910
SELECT ALL + 99 DIV 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + 99 / 52 AS col2
----
1

query I rowsort
SELECT DISTINCT - 45 - - + 57
----
12

query II rowsort
SELECT + 79, + 44 + ( + 12 ) AS col1
----
79
56

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

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

query I rowsort
SELECT 74 * 94
----
6956

query II rowsort
SELECT ALL - 10, 52 - + - 26 AS col2
----
-10
78

query II rowsort
SELECT 7 AS col1, - 37 AS col0
----
7
-37

query I rowsort
SELECT DISTINCT + 9 * + 17 * 9 AS col1
----
1377

query II rowsort
SELECT ALL - 44 AS col2, 85 + 51 * + + 1
----
-44
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1919
SELECT DISTINCT - 15 AS col0, - CASE + - CAST( NULL AS SIGNED ) WHEN 47 + - + COUNT( * ) * 13 THEN 61 * 56 END AS col1
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-1919
SELECT DISTINCT - 15 AS col0, - CASE + - CAST ( NULL AS INTEGER ) WHEN 47 + - + COUNT ( * ) * 13 THEN 61 * 56 END AS col1
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT 89 + - + 90 * - + COUNT( * ) * - NULLIF ( MAX( + 24 ), - 81 + 48 ) AS col1
----
-2071

skipif mysql # not compatible
query I rowsort label-1920
SELECT 89 + - + 90 * - + COUNT ( * ) * - NULLIF ( MAX ( + 24 ), - 81 + 48 ) AS col1
----
-2071

query II rowsort
SELECT + 8 AS col0, + 89
----
8
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1922
SELECT + 10 AS col1, COUNT( * )
----
10
1

skipif mysql # not compatible
query II rowsort label-1922
SELECT + 10 AS col1, COUNT ( * )
----
10
1

query II rowsort
SELECT 45, ( 98 ) AS col0
----
45
98

query II rowsort
SELECT + 60 col1, 46 AS col0
----
60
46

query I rowsort
SELECT ALL + - 32 + + 55 AS col1
----
23

query I rowsort
SELECT ( COALESCE ( - 7, - 97 ) ) + + 2 AS col1
----
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1929
SELECT ALL + + COUNT( * ) + 80 * - 76 col0, + 30 * 97 * + - CAST( 43 AS SIGNED ) * 32 * 40 + - 54 + COALESCE ( CAST( NULL AS SIGNED ), + 54, - ( - - COUNT( DISTINCT - ( - - 91 ) ) ) ) DIV NULLIF ( - 37, - 68 * 84 + + CAST( COUNT( * ) AS SIGNED ) ) * 75
----
-6079
-160166529

skipif mysql # not compatible
query II rowsort label-1929
SELECT ALL + + COUNT ( * ) + 80 * - 76 col0, + 30 * 97 * + - CAST ( 43 AS INTEGER ) * 32 * 40 + - 54 + COALESCE ( CAST ( NULL AS INTEGER ), + 54, - ( - - COUNT ( DISTINCT - ( - - 91 ) ) ) ) / NULLIF ( - 37, - 68 * 84 + + CAST ( COUNT ( * ) AS INTEGER ) ) * 75
----
-6079
-160166529

query II rowsort
SELECT - + 98, 36 AS col2
----
-98
36

query I rowsort
SELECT DISTINCT - + 27 + + 24 + 54 * + ( ( + 81 ) ) - + 47 AS col2
----
4324

onlyif mysql # DIV for integer division: 
query II rowsort label-1932
SELECT + 61 DIV - ( + - 7 ) AS col1, - 70
----
8
-70

skipif mysql # not compatible
query II rowsort label-1932
SELECT + 61 / - ( + - 7 ) AS col1, - 70
----
8
-70

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

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

query I rowsort
SELECT ALL 80 - + 62 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT DISTINCT + 12 * - NULLIF ( 91, - NULLIF ( + COUNT( * ), 36 + 60 ) + + - ( - 15 ) ) / 45 + - + 49 + + - ( - COUNT( * ) ) * - 68 + + + ( CASE - + 83 WHEN + + 8 THEN 86 WHEN + COUNT( * ) THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT + 12 * - NULLIF ( 91, - NULLIF ( + COUNT ( * ), 36 + 60 ) + + - ( - 15 ) ) / 45 + - + 49 + + - ( - COUNT ( * ) ) * - 68 + + + ( CASE - + 83 WHEN + + 8 THEN 86 WHEN + COUNT ( * ) THEN NULL END ) AS col1
----
NULL

query II rowsort
SELECT - + 78 AS col1, 6 AS col2
----
-78
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT 93 * + - SUM( DISTINCT 12 ) - - - 16 + + 86 * 57 + - 92 AS col0
----
3678

skipif mysql # not compatible
query I rowsort label-1937
SELECT 93 * + - SUM ( DISTINCT 12 ) - - - 16 + + 86 * 57 + - 92 AS col0
----
3678

query I rowsort
SELECT COALESCE ( + + NULLIF ( + 92, - 75 ), 4 ) - 75
----
17

query II rowsort
SELECT 58 - + 47 + + 53 + - 56 AS col2, 33 * + + 69 + + 19 + - 97 col0
----
8
2199

query I rowsort
SELECT + 4 + - 95 col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT - 80 DIV + 97 + - 76 + + - 83
----
-159

skipif mysql # not compatible
query I rowsort label-1941
SELECT - 80 / + 97 + - 76 + + - 83
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1942
SELECT + ( CAST( NULL AS DECIMAL ) ) / - + CAST( + 42 AS SIGNED ) * - + 47 - - 62 + + ( - 28 ) + 68 + - 83 + + 42 * - 63 * + 1 + + 79 + 81 col2, CAST( NULL AS DECIMAL ) * COUNT( * ) - - 89
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1942
SELECT + ( CAST ( NULL AS REAL ) ) / - + CAST ( + 42 AS INTEGER ) * - + 47 - - 62 + + ( - 28 ) + 68 + - 83 + + 42 * - 63 * + 1 + + 79 + 81 col2, CAST ( NULL AS REAL ) * COUNT ( * ) - - 89
----
NULL
NULL

query I rowsort
SELECT + 97 + - - 18
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-1944
SELECT + 5 DIV - - 53 - 9 + 9 - 67 * + 2 * COALESCE ( - + 12, + + 26, + 47 ) AS col1
----
1608

skipif mysql # not compatible
query I rowsort label-1944
SELECT + 5 / - - 53 - 9 + 9 - 67 * + 2 * COALESCE ( - + 12, + + 26, + 47 ) AS col1
----
1608

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT + ( - 54 ) DIV + + 3 + - 65
----
-83

skipif mysql # not compatible
query I rowsort label-1945
SELECT + ( - 54 ) / + + 3 + - 65
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1946
SELECT + COALESCE ( + + 55, + 13 + + 55 * + - 91 DIV + 41 )
----
55

skipif mysql # not compatible
query I rowsort label-1946
SELECT + COALESCE ( + + 55, + 13 + + 55 * + - 91 / + 41 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT ALL 61 * + + CASE + + ( + + 64 ) WHEN - + 89 + + + COUNT( * ) THEN 43 WHEN - 91 THEN - + 47 * COUNT( * ) * - 84 + + + ( - 85 ) * + 93 * 43 + 48 + - ( 72 ) + + 83 + - 60 ELSE - 62 END * 37 + 21 DIV 8 AS col0
----
-139932

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 61 * + + CASE + + ( + + 64 ) WHEN - + 89 + + + COUNT ( * ) THEN 43 WHEN - 91 THEN - + 47 * COUNT ( * ) * - 84 + + + ( - 85 ) * + 93 * 43 + 48 + - ( 72 ) + + 83 + - 60 ELSE - 62 END * 37 + 21 / 8 AS col0
----
-139932

query I rowsort
SELECT ALL 29 * + + 63 + 36 AS col0
----
1863

query I rowsort
SELECT ALL 49 * + 9 * + - 57
----
-25137

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1950
SELECT - 61 DIV + 57 AS col1, + 12 - + 79 + NULLIF ( - COUNT( * ), + 39 * 15 + - SUM( ALL - 7 ) * COUNT( * ) + - 80 ) + + 71 AS col1
----
-1
3

skipif mysql # not compatible
query II rowsort label-1950
SELECT - 61 / + 57 AS col1, + 12 - + 79 + NULLIF ( - COUNT ( * ), + 39 * 15 + - SUM ( ALL - 7 ) * COUNT ( * ) + - 80 ) + + 71 AS col1
----
-1
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1951
SELECT - COALESCE ( + 32, MIN( DISTINCT - 78 ) + + - 92, - 44 + - + COUNT( DISTINCT - - 67 ) * - + 65 + - - 95 * + 75 DIV - NULLIF ( + 59, - 51 DIV + 32 + + 3 + + - 46 ) * - ( + 94 ) ) + + 99 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-1951
SELECT - COALESCE ( + 32, MIN ( DISTINCT - 78 ) + + - 92, - 44 + - + COUNT ( DISTINCT - - 67 ) * - + 65 + - - 95 * + 75 / - NULLIF ( + 59, - 51 / + 32 + + 3 + + - 46 ) * - ( + 94 ) ) + + 99 AS col0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1952
SELECT MIN( ALL 83 ) col2, + 44 AS col2
----
83
44

skipif mysql # not compatible
query II rowsort label-1952
SELECT MIN ( ALL 83 ) col2, + 44 AS col2
----
83
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT - COALESCE ( - - 70, + 66, + 48 ) * + ( - MIN( 27 ) )
----
1890

skipif mysql # not compatible
query I rowsort label-1953
SELECT - COALESCE ( - - 70, + 66, + 48 ) * + ( - MIN ( 27 ) )
----
1890

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT ALL 98 * - + 93 * + 34 * 20 + + 87 DIV - - 64 col1
----
-6197519

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL 98 * - + 93 * + 34 * 20 + + 87 / - - 64 col1
----
-6197519

query II rowsort
SELECT + ( - 51 ), 8 * 25 AS col2
----
-51
200

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

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

query II rowsort
SELECT - ( - 76 ) * - 59 + + 63, 2 AS col0
----
-4421
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - 65 * 67 * - + COUNT( * ) * - NULLIF ( + ( - 69 ), + 71 + + 14 + - 51 * 51 * - 18 * - COUNT( DISTINCT + 62 ) )
----
300495

skipif mysql # not compatible
query I rowsort label-1958
SELECT - 65 * 67 * - + COUNT ( * ) * - NULLIF ( + ( - 69 ), + 71 + + 14 + - 51 * 51 * - 18 * - COUNT ( DISTINCT + 62 ) )
----
300495

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL + 88 * 34 - - ( - ( + + MAX( DISTINCT - 50 ) ) ) + + 9 + 8 * - - 16 + - 82 AS col1
----
3097

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL + 88 * 34 - - ( - ( + + MAX ( DISTINCT - 50 ) ) ) + + 9 + 8 * - - 16 + - 82 AS col1
----
3097

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1960
SELECT - - COUNT( + + ( + 76 ) ) - - - 0 AS col2, - 79 DIV SUM( ALL - 35 ) * 80 AS col0
----
1
160

skipif mysql # not compatible
query II rowsort label-1960
SELECT - - COUNT ( + + ( + 76 ) ) - - - 0 AS col2, - 79 / SUM ( ALL - 35 ) * 80 AS col0
----
1
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT - 11 + - - COALESCE ( + ( + CAST( + NULLIF ( - - MIN( DISTINCT + - 56 ), - 6 ) AS SIGNED ) ), NULLIF ( ( COUNT( * ) ), ( + AVG ( - 15 ) ) ) + + - COUNT( * ), 6 + + 16 ) + + 71 * 73
----
5116

skipif mysql # not compatible
query I rowsort label-1961
SELECT - 11 + - - COALESCE ( + ( + CAST ( + NULLIF ( - - MIN ( DISTINCT + - 56 ), - 6 ) AS INTEGER ) ), NULLIF ( ( COUNT ( * ) ), ( + AVG ( - 15 ) ) ) + + - COUNT ( * ), 6 + + 16 ) + + 71 * 73
----
5116

query I rowsort
SELECT + 81 - - 29 AS col0
----
110

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1965
SELECT ALL + NULLIF ( - 69, + 92 + - 97 + - 54 - + 68 ) DIV - 51, 27 * - 56 * + + NULLIF ( 32, - 32 * 99 * - CAST( - 23 AS SIGNED ) ) AS col2
----
1
-48384

skipif mysql # not compatible
query II rowsort label-1965
SELECT ALL + NULLIF ( - 69, + 92 + - 97 + - 54 - + 68 ) / - 51, 27 * - 56 * + + NULLIF ( 32, - 32 * 99 * - CAST ( - 23 AS INTEGER ) ) AS col2
----
1
-48384

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

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

query I rowsort
SELECT - 45 * 92
----
-4140

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT - 4 DIV + - 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1968
SELECT - 4 / + - 51 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT + 10 + + + ( 34 ) + + + 25 + 76 * 3 DIV - - 78 + + 49 + + + 64 AS col0
----
184

skipif mysql # not compatible
query I rowsort label-1969
SELECT + 10 + + + ( 34 ) + + + 25 + 76 * 3 / - - 78 + + 49 + + + 64 AS col0
----
184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1970
SELECT - MIN( ALL + COALESCE ( 22, + - 66 - + COALESCE ( + 62, - - 18 ) DIV - 63 DIV - - 7 DIV + 87 ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1970
SELECT - MIN ( ALL + COALESCE ( 22, + - 66 - + COALESCE ( + 62, - - 18 ) / - 63 / - - 7 / + 87 ) ) AS col1
----
-22

query I rowsort
SELECT + ( + 3 ) + 68 * 63 AS col1
----
4287

query I rowsort
SELECT ALL 9 * - 54 AS col0
----
-486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1973
SELECT CAST( - - COALESCE ( - COUNT( * ), + 9, - ( + 12 ) + - - 6 - + AVG ( ALL + - 53 ) ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1973
SELECT CAST ( - - COALESCE ( - COUNT ( * ), + 9, - ( + 12 ) + - - 6 - + AVG ( ALL + - 53 ) ) AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT ALL 57 DIV + 11 + - NULLIF ( - 5, + 0 ) + - + 22
----
-12

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL 57 / + 11 + - NULLIF ( - 5, + 0 ) + - + 22
----
-12

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

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

query II rowsort
SELECT ALL + 19, 56 * + 53 AS col1
----
19
2968

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1978
SELECT DISTINCT COUNT( * ) DIV 78 + - 51 + - 45 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT COUNT ( * ) / 78 + - 51 + - 45 AS col0
----
-96

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

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

query I rowsort
SELECT - 90 * + 47
----
-4230

query I rowsort
SELECT ALL 96 * - + 49 AS col2
----
-4704

query I rowsort
SELECT ( - 79 ) AS col0
----
-79

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT ALL + COALESCE ( 69, + - COUNT( * ) ) * CAST( NULL AS SIGNED ) + + + ( + MIN( ALL 98 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL + COALESCE ( 69, + - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) + + + ( + MIN ( ALL 98 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT + - 19 * - + 76 * + ( + MAX( - 49 ) ) col2
----
-70756

skipif mysql # not compatible
query I rowsort label-1985
SELECT + - 19 * - + 76 * + ( + MAX ( - 49 ) ) col2
----
-70756

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + + 44 - MAX( DISTINCT + 0 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1986
SELECT + + 44 - MAX ( DISTINCT + 0 ) AS col2
----
44

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

query I rowsort
SELECT DISTINCT 94 * - 1 * 78
----
-7332

onlyif mysql # DIV for integer division: 
query I rowsort label-1989
SELECT + 82 DIV + 28 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1989
SELECT + 82 / + 28 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1990
SELECT - MIN( ALL + CAST( - 27 AS SIGNED ) ) * - 63 + - - COALESCE ( - ( ( + - 91 ) ), + ( 80 ) * - 22 * COUNT( * ) * - + NULLIF ( + + 95, 29 + + + 51 - + COUNT( * ) / - 55 * + 71 / + + 58 * + 99 ) + 17 ) * 27 AS col1
----
756

skipif mysql # not compatible
query I rowsort label-1990
SELECT - MIN ( ALL + CAST ( - 27 AS INTEGER ) ) * - 63 + - - COALESCE ( - ( ( + - 91 ) ), + ( 80 ) * - 22 * COUNT ( * ) * - + NULLIF ( + + 95, 29 + + + 51 - + COUNT ( * ) / - 55 * + 71 / + + 58 * + 99 ) + 17 ) * 27 AS col1
----
756

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL - MIN( DISTINCT + 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - MIN ( DISTINCT + 58 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT - - ( + ( 99 ) ) + - 27 + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1993
SELECT - - ( + ( 99 ) ) + - 27 + COUNT ( * ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL + - 88 * ( - ( - COUNT( * ) ) ) - + + MIN( ALL 41 ) * - 34 AS col0
----
1306

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + - 88 * ( - ( - COUNT ( * ) ) ) - + + MIN ( ALL 41 ) * - 34 AS col0
----
1306

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT DISTINCT + 59, + ( - + SUM( + 77 ) ) * - - 34 AS col1
----
59
-2618

skipif mysql # not compatible
query II rowsort label-1995
SELECT DISTINCT + 59, + ( - + SUM ( + 77 ) ) * - - 34 AS col1
----
59
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT - - MIN( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-1996
SELECT - - MIN ( - 84 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT ALL - - 18 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL - - 18 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT NULLIF ( 35, COUNT( * ) + + 23 )
----
35

skipif mysql # not compatible
query I rowsort label-1998
SELECT NULLIF ( 35, COUNT ( * ) + + 23 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1999
SELECT 37 AS col2, 3 * - 71 + + 48 + + 81 + + 65 + - CASE + - NULLIF ( + 60, 93 ) WHEN + + 84 THEN 16 WHEN - 81 THEN CAST( NULL AS SIGNED ) - + 21 * + 25 END AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-1999
SELECT 37 AS col2, 3 * - 71 + + 48 + + 81 + + 65 + - CASE + - NULLIF ( + 60, 93 ) WHEN + + 84 THEN 16 WHEN - 81 THEN CAST ( NULL AS INTEGER ) - + 21 * + 25 END AS col1
----
37
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2000
SELECT ALL 72, 59 + CAST( NULL AS SIGNED ) * 52 / + + AVG ( ALL NULLIF ( - 66, 86 ) ) col0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-2000
SELECT ALL 72, 59 + CAST ( NULL AS INTEGER ) * 52 / + + AVG ( ALL NULLIF ( - 66, 86 ) ) col0
----
72
NULL

query II rowsort
SELECT 18 AS col0, 20 col2
----
18
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT ALL + CAST( 97 AS SIGNED ) + - 40
----
57

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + CAST ( 97 AS INTEGER ) + - 40
----
57

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT MIN( DISTINCT + + 42 ) - - 60
----
102

skipif mysql # not compatible
query I rowsort label-2005
SELECT MIN ( DISTINCT + + 42 ) - - 60
----
102

query I rowsort
SELECT DISTINCT + 23 + ( - 92 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT COALESCE ( 9, + MIN( ALL + 73 ), COUNT( * ) * + 11 * - + COUNT( * ) + + ( - 36 ) ) * - + 85 AS col1
----
-765

skipif mysql # not compatible
query I rowsort label-2007
SELECT COALESCE ( 9, + MIN ( ALL + 73 ), COUNT ( * ) * + 11 * - + COUNT ( * ) + + ( - 36 ) ) * - + 85 AS col1
----
-765

query I rowsort
SELECT ALL + 5 + + 82 + + 38
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-2009
SELECT - ( + 62 ) DIV 61 * 4 - - 82 * + - 13 * + 56
----
-59700

skipif mysql # not compatible
query I rowsort label-2009
SELECT - ( + 62 ) / 61 * 4 - - 82 * + - 13 * + 56
----
-59700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2010
SELECT ALL - 54 AS col2, - CAST( - - 80 AS SIGNED ) * + COALESCE ( - COUNT( 50 ), ( - 72 ), + 14 ) col0
----
-54
80

skipif mysql # not compatible
query II rowsort label-2010
SELECT ALL - 54 AS col2, - CAST ( - - 80 AS INTEGER ) * + COALESCE ( - COUNT ( 50 ), ( - 72 ), + 14 ) col0
----
-54
80

query I rowsort
SELECT DISTINCT 55 * - + 11 * - 42 AS col0
----
25410

query I rowsort
SELECT NULLIF ( + 4, - 72 ) * + 14 + 0
----
56

query I rowsort
SELECT ALL - 6 + - 33
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT - NULLIF ( + - 36, 69 * - 27 + - CASE + COALESCE ( + - COUNT( * ), + - 61 ) WHEN - - 4 THEN 14 ELSE NULL END * - - 21 + + + CASE + 24 WHEN - + 43 THEN NULLIF ( 14, - - 94 ) + + 99 WHEN + ( - 62 ) - - 85 THEN 94 * 81 ELSE NULL END )
----
36

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT - NULLIF ( + - 36, 69 * - 27 + - CASE + COALESCE ( + - COUNT ( * ), + - 61 ) WHEN - - 4 THEN 14 ELSE NULL END * - - 21 + + + CASE + 24 WHEN - + 43 THEN NULLIF ( 14, - - 94 ) + + 99 WHEN + ( - 62 ) - - 85 THEN 94 * 81 ELSE NULL END )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL NULLIF ( - + CASE - - 34 WHEN + - 42 THEN NULL WHEN + 44 THEN 56 END, + 35 - - 60 / - - COUNT( * ) ) - + 30 + + 2 + - - 24 + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL NULLIF ( - + CASE - - 34 WHEN + - 42 THEN NULL WHEN + 44 THEN 56 END, + 35 - - 60 / - - COUNT ( * ) ) - + 30 + + 2 + - - 24 + + 57
----
NULL

query II rowsort
SELECT + + 4 AS col1, 60
----
4
60

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

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - ( - SUM ( 22 ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT 96 + + - COUNT( * ) col1
----
95

skipif mysql # not compatible
query I rowsort label-2018
SELECT 96 + + - COUNT ( * ) col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - ( + 88 ) * - CASE 11 WHEN + + COALESCE ( + COUNT( * ), 37 * + - ( - + NULLIF ( - 47, 38 ) ) * - 84 * - 33 * + - 3 * + 46 ) THEN NULL WHEN + COUNT( * ) THEN + ( - 61 ) * - - 45 ELSE NULL END + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT - ( + 88 ) * - CASE 11 WHEN + + COALESCE ( + COUNT ( * ), 37 * + - ( - + NULLIF ( - 47, 38 ) ) * - 84 * - 33 * + - 3 * + 46 ) THEN NULL WHEN + COUNT ( * ) THEN + ( - 61 ) * - - 45 ELSE NULL END + 1
----
NULL

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

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

query II rowsort
SELECT + 58 AS col2, + 85 - + 92 + - + ( - - 52 ) * + 86
----
58
-4479

query I rowsort
SELECT - 30 + + - 53 col1
----
-83

query I rowsort
SELECT ALL 13 * + 86 * - 26 + 80
----
-28988

query I rowsort
SELECT - 57 * 58 + + 13 * - 6
----
-3384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2025
SELECT + 96 + - COUNT( 74 ) * + + 21 AS col0, + COUNT( * ) - + SUM( ALL + + NULLIF ( + + COALESCE ( + 70, 66 ), CAST( NULL AS SIGNED ) * - 67 * - 85 + 5 * 48 ) ) AS col2
----
75
-69

skipif mysql # not compatible
query II rowsort label-2025
SELECT + 96 + - COUNT ( 74 ) * + + 21 AS col0, + COUNT ( * ) - + SUM ( ALL + + NULLIF ( + + COALESCE ( + 70, 66 ), CAST ( NULL AS INTEGER ) * - 67 * - 85 + 5 * 48 ) ) AS col2
----
75
-69

query II rowsort
SELECT + 43 AS col2, + 62 + + 39
----
43
101

onlyif mysql # aggregate syntax: 
query II rowsort label-2027
SELECT COALESCE ( 95, + 68 + - NULLIF ( - - 71, + COUNT( * ) ) ) + + 96 col0, - 35 + COUNT( - - 62 ) + + 26
----
191
-8

skipif mysql # not compatible
query II rowsort label-2027
SELECT COALESCE ( 95, + 68 + - NULLIF ( - - 71, + COUNT ( * ) ) ) + + 96 col0, - 35 + COUNT ( - - 62 ) + + 26
----
191
-8

query I rowsort
SELECT 84 - + 70 - - 16
----
30

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

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL 80 + 45 + COUNT ( * ) AS col0
----
126

query I rowsort
SELECT DISTINCT 91 + + ( - 1 ) * 39
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL - MIN( ALL + 70 ) * + 33 - + + 77
----
-2387

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL - MIN ( ALL + 70 ) * + 33 - + + 77
----
-2387

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT DISTINCT 68 + + 45 DIV - 32
----
67

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT 68 + + 45 / - 32
----
67

query I rowsort
SELECT ALL + 37 + + 31 + 57 + - + 7 col0
----
118

query I rowsort
SELECT 2 + 98
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT AVG ( - - 74 ) * - ( - - CASE + 39 WHEN + - CAST( NULL AS SIGNED ) * NULLIF ( + + 7, + - 91 ) + - - 67 + + 93 THEN NULL WHEN 64 THEN + 13 * - + 69 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT AVG ( - - 74 ) * - ( - - CASE + 39 WHEN + - CAST ( NULL AS INTEGER ) * NULLIF ( + + 7, + - 91 ) + - - 67 + + 93 THEN NULL WHEN 64 THEN + 13 * - + 69 END ) AS col0
----
NULL

query I rowsort
SELECT 9 * - 14 * - 88 * + 64
----
709632

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT COUNT( * ) + - - 54 + - ( + - 59 ) - - - 22 + + 16 * + + 10 * + 45
----
7292

skipif mysql # not compatible
query I rowsort label-2038
SELECT COUNT ( * ) + - - 54 + - ( + - 59 ) - - - 22 + + 16 * + + 10 * + 45
----
7292

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT DISTINCT + 92 - + - CASE SUM( + 58 ) WHEN + - 96 THEN - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT + 92 - + - CASE SUM ( + 58 ) WHEN + - 96 THEN - 35 END
----
NULL

query I rowsort
SELECT 99 * - + 43
----
-4257

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL + MAX( 79 ) * 26 AS col1
----
2054

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL + MAX ( 79 ) * 26 AS col1
----
2054

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT DISTINCT + 20 DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT + 20 / + 95
----
0

query I rowsort
SELECT DISTINCT - 50 col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL 28 * + + 14 + - - ( - COUNT( * ) ) AS col2
----
391

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL 28 * + + 14 + - - ( - COUNT ( * ) ) AS col2
----
391

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL - - 52 * 63 - MAX( DISTINCT + 66 )
----
3210

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - - 52 * 63 - MAX ( DISTINCT + 66 )
----
3210

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + MIN( 11 ) - + + 4 * + + 17 + 10 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-2046
SELECT + MIN ( 11 ) - + + 4 * + + 17 + 10 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT ALL + + COUNT( * ) * - 65
----
-65

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL + + COUNT ( * ) * - 65
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT - + CASE 76 WHEN + + 36 + - NULLIF ( + 77, - 30 * + CAST( NULL AS SIGNED ) ) + + 81 + 52 + + 36 * - COUNT( * ) THEN - 34 * - + MAX( DISTINCT - - 51 ) END / + 49 - + CAST( - 56 AS SIGNED ) / 98 / - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT - + CASE 76 WHEN + + 36 + - NULLIF ( + 77, - 30 * + CAST ( NULL AS INTEGER ) ) + + 81 + 52 + + 36 * - COUNT ( * ) THEN - 34 * - + MAX ( DISTINCT - - 51 ) END / + 49 - + CAST ( - 56 AS INTEGER ) / 98 / - 17 AS col0
----
NULL

query I rowsort
SELECT - 5 * - 20
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2050
SELECT ALL - 95 * 38, CAST( NULL AS SIGNED ) col0
----
-3610
NULL

skipif mysql # not compatible
query II rowsort label-2050
SELECT ALL - 95 * 38, CAST ( NULL AS INTEGER ) col0
----
-3610
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2051
SELECT + COALESCE ( + 55, - CAST( NULL AS SIGNED ), 73 ) + 67 + COUNT( ALL CASE + 51 WHEN + 80 + 39 + - 16 THEN + + 68 * - 31 * 47 * 10 WHEN + 87 * - 6 THEN + 25 * - + 60 ELSE NULL END ) + + 66 AS col1, ( + 5 ) * + 68
----
188
340

skipif mysql # not compatible
query II rowsort label-2051
SELECT + COALESCE ( + 55, - CAST ( NULL AS INTEGER ), 73 ) + 67 + COUNT ( ALL CASE + 51 WHEN + 80 + 39 + - 16 THEN + + 68 * - 31 * 47 * 10 WHEN + 87 * - 6 THEN + 25 * - + 60 ELSE NULL END ) + + 66 AS col1, ( + 5 ) * + 68
----
188
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2052
SELECT DISTINCT - - ( 6 ) * - NULLIF ( + 96, 36 ) AS col0, 19 DIV COUNT( - - 67 ) + - 22
----
-576
-3

skipif mysql # not compatible
query II rowsort label-2052
SELECT DISTINCT - - ( 6 ) * - NULLIF ( + 96, 36 ) AS col0, 19 / COUNT ( - - 67 ) + - 22
----
-576
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT + - COUNT( * ) * 18 - + MAX( ALL + ( 73 ) ) + 9 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2053
SELECT + - COUNT ( * ) * 18 - + MAX ( ALL + ( 73 ) ) + 9 AS col0
----
-82

query I rowsort
SELECT - + ( 7 ) * 36 + 11
----
-241

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

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

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

query I rowsort
SELECT ALL 57 + ( + + 24 ) + + 26 AS col2
----
107

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

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 92 + + 70
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL 50 + 40 * COUNT( * ) * - 40 + + 87 AS col1
----
-1463

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL 50 + 40 * COUNT ( * ) * - 40 + + 87 AS col1
----
-1463

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

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

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

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

query I rowsort
SELECT ALL 27 + + 73
----
100

query I rowsort
SELECT DISTINCT 85 * - + 54
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT - SUM( ALL - - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2065
SELECT - SUM ( ALL - - 54 ) AS col1
----
-54

query I rowsort
SELECT - 14 * - 27 * - 79 * + 58
----
-1731996

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + MIN( DISTINCT 91 ) + 89 + ( ( 8 ) )
----
188

skipif mysql # not compatible
query I rowsort label-2067
SELECT + MIN ( DISTINCT 91 ) + 89 + ( ( 8 ) )
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2068
SELECT ALL + NULLIF ( 54, + CAST( + 81 AS SIGNED ) + - 96 ) - + COALESCE ( CAST( NULL AS SIGNED ), + 78, - - COUNT( * ) DIV + COUNT( * ) - + + 97 + - 2 ) * - 77 AS col2, 1
----
6060
1

skipif mysql # not compatible
query II rowsort label-2068
SELECT ALL + NULLIF ( 54, + CAST ( + 81 AS INTEGER ) + - 96 ) - + COALESCE ( CAST ( NULL AS INTEGER ), + 78, - - COUNT ( * ) / + COUNT ( * ) - + + 97 + - 2 ) * - 77 AS col2, 1
----
6060
1

query I rowsort
SELECT + 55 - + 86 AS col1
----
-31

query I rowsort
SELECT DISTINCT + COALESCE ( + 82, 97 ) * - 29 AS col1
----
-2378

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

query I rowsort
SELECT - 7 + + 25 + ( + 45 ) * - 49
----
-2187

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL COUNT( * ) * + 91 * + 84 * + + 7
----
53508

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL COUNT ( * ) * + 91 * + 84 * + + 7
----
53508

query II rowsort
SELECT + ( + 95 ) * + 39 AS col1, 58
----
3705
58

query II rowsort
SELECT 99 AS col1, 99 * + 20 AS col2
----
99
1980

query I rowsort
SELECT ALL + - 79 AS col1
----
-79

query I rowsort
SELECT ALL + ( + 79 ) * + 93 - + 94
----
7253

query I rowsort
SELECT + - 96 + + 67
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2079
SELECT + - CAST( COUNT( * ) AS SIGNED ) DIV + 86 - - ( + NULLIF ( + - 88, - 23 ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2079
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) / + 86 - - ( + NULLIF ( + - 88, - 23 ) ) AS col0
----
-88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT + 7 * + 9 * 8 / 4 + - - 4 * 62 * 7 + + + 25 + + COALESCE ( + 40, - 83, - ( - + 76 ) ) / + ( - 24 ) * - 54 + - 57 * + + SUM( DISTINCT + + 68 ) + - CASE - 77 WHEN 33 THEN - CASE - 3 WHEN COALESCE ( MIN( ALL + 33 ), ( + 60 ) ) THEN - ( 33 ) ELSE NULL END + COALESCE ( 40, CASE + 82 WHEN 2 THEN - 53 * 57 WHEN - 94 + - CAST( NULL AS SIGNED ) * 77 THEN 24 * - COUNT( * ) WHEN + ( COUNT( * ) ) THEN + SUM( - 76 ) END * 87 + - COUNT( ALL - 67 ) ) END + 3 * + CAST( 69 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT + 7 * + 9 * 8 / 4 + - - 4 * 62 * 7 + + + 25 + + COALESCE ( + 40, - 83, - ( - + 76 ) ) / + ( - 24 ) * - 54 + - 57 * + + SUM ( DISTINCT + + 68 ) + - CASE - 77 WHEN 33 THEN - CASE - 3 WHEN COALESCE ( MIN ( ALL + 33 ), ( + 60 ) ) THEN - ( 33 ) ELSE NULL END + COALESCE ( 40, CASE + 82 WHEN 2 THEN - 53 * 57 WHEN - 94 + - CAST ( NULL AS INTEGER ) * 77 THEN 24 * - COUNT ( * ) WHEN + ( COUNT ( * ) ) THEN + SUM ( - 76 ) END * 87 + - COUNT ( ALL - 67 ) ) END + 3 * + CAST ( 69 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 58 * 59
----
-3422

query I rowsort
SELECT ALL + - 45 col0
----
-45

query I rowsort
SELECT ALL 50 * 59
----
2950

query I rowsort
SELECT - - ( - - 41 ) * 22
----
902

query II rowsort
SELECT DISTINCT + + 68, 79 AS col0
----
68
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT - + 80 + + ( 18 ) + + - ( + 36 ) + + 82 * - ( + 45 ) * - MIN( 77 )
----
284032

skipif mysql # not compatible
query I rowsort label-2088
SELECT - + 80 + + ( 18 ) + + - ( + 36 ) + + 82 * - ( + 45 ) * - MIN ( 77 )
----
284032

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

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL + + ( - 29 ) / COUNT ( * )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT - - 64 DIV - 40 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2090
SELECT - - 64 / - 40 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2091
SELECT + + SUM( ALL - - ( 45 ) ) AS col0, COUNT( * ) AS col2
----
45
1

skipif mysql # not compatible
query II rowsort label-2091
SELECT + + SUM ( ALL - - ( 45 ) ) AS col0, COUNT ( * ) AS col2
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ALL 98 * + - 28 * 91 * 66 + - 20 * - 76 * - - ( + ( + - COUNT( * ) ) ) + - + 71 col2
----
-16482055

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL 98 * + - 28 * 91 * 66 + - 20 * - 76 * - - ( + ( + - COUNT ( * ) ) ) + - + 71 col2
----
-16482055

query I rowsort
SELECT + ( - - 11 ) * - + 36 + - 62 + + + 42
----
-416

query I rowsort
SELECT ALL + - 23 * + 86
----
-1978

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + - 6 * + 3 * - SUM( ALL 79 ) * + 97 * - 7 + 52 AS col0
----
-965486

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + - 6 * + 3 * - SUM ( ALL 79 ) * + 97 * - 7 + 52 AS col0
----
-965486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT DISTINCT 16 * 84 + - ( - CAST( - 29 AS SIGNED ) )
----
1315

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT 16 * 84 + - ( - CAST ( - 29 AS INTEGER ) )
----
1315

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2097
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + + 82 + + 55 + + + 34 * - ( + 5 ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT CAST ( NULL AS REAL ) * + + 82 + + 55 + + + 34 * - ( + 5 ) * + 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL 91 * - - 10 * + CASE COUNT( * ) WHEN + 3 THEN + - MIN( DISTINCT - ( - 31 ) ) + - 22 * - CAST( NULL AS SIGNED ) ELSE NULL END + + 58 + + COUNT( ALL + 46 ) * 3 * 22 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL 91 * - - 10 * + CASE COUNT ( * ) WHEN + 3 THEN + - MIN ( DISTINCT - ( - 31 ) ) + - 22 * - CAST ( NULL AS INTEGER ) ELSE NULL END + + 58 + + COUNT ( ALL + 46 ) * 3 * 22 * 42
----
NULL

query I rowsort
SELECT ALL + 82 * + 59 col1
----
4838

query I rowsort
SELECT - 9 + - - 93 - + 21
----
63

query I rowsort
SELECT + 91 - 80 AS col2
----
11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL 73 - - - 95 * - COUNT( * ) - + + SUM( ALL - 3 ) - COUNT( * ) col0
----
170

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL 73 - - - 95 * - COUNT ( * ) - + + SUM ( ALL - 3 ) - COUNT ( * ) col0
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2105
SELECT ALL + 47 DIV 68 col1, - COUNT( * ) + - 8
----
0
-9

skipif mysql # not compatible
query II rowsort label-2105
SELECT ALL + 47 / 68 col1, - COUNT ( * ) + - 8
----
0
-9

query I rowsort
SELECT + 55 + 21 * + - 20 * 48
----
-20105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT DISTINCT CAST( + 32 AS SIGNED ) * + - 39
----
-1248

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT CAST ( + 32 AS INTEGER ) * + - 39
----
-1248

onlyif mysql # DIV for integer division: 
query I rowsort label-2108
SELECT ALL 37 - - 69 DIV + - 13 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL 37 - - 69 / + - 13 AS col0
----
32

query I rowsort
SELECT - 2 * + - 51 AS col1
----
102

query I rowsort
SELECT + 7 + + - 12 + 66 * 8 * - 20 AS col0
----
-10565

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT + 19 DIV - ( + 46 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 19 / - ( + 46 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2112
SELECT + 25 DIV - 13 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2112
SELECT + 25 / - 13 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2113
SELECT + 84 + - 97 + - 82 - + COALESCE ( + 77, - COUNT( * ) * - 13 / - - 0 + - 46 + 10 * + NULLIF ( + 47, + COALESCE ( + - NULLIF ( - 10, ( ( - 87 ) ) ), 84 ) ) * + + 5 * 19 ) * + 83 * CAST( NULL AS SIGNED ) / + 97 / 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT + 84 + - 97 + - 82 - + COALESCE ( + 77, - COUNT ( * ) * - 13 / - - 0 + - 46 + 10 * + NULLIF ( + 47, + COALESCE ( + - NULLIF ( - 10, ( ( - 87 ) ) ), 84 ) ) * + + 5 * 19 ) * + 83 * CAST ( NULL AS INTEGER ) / + 97 / 26
----
NULL

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

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

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

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

query II rowsort
SELECT DISTINCT 11 * + + 58 AS col2, + 9 * - 52
----
638
-468

query II rowsort
SELECT ALL 34 + 71 * 26 * 69 AS col1, - ( - + 85 ) * - 72
----
127408
-6120

query I rowsort
SELECT ALL - 48 + 38 col0
----
-10

query I rowsort
SELECT ALL + - 76 + 35
----
-41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2121
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS SIGNED ) * + 98 + - ( MAX( DISTINCT + - 33 ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 98 + - ( MAX ( DISTINCT + - 33 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL CASE + - 61 WHEN 74 * - + 50 / - 92 * 6 THEN - 63 WHEN - + 86 * + 86 + ( - 95 ) + - ( 60 ) THEN - 85 END + - COUNT( + 29 ) + + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL CASE + - 61 WHEN 74 * - + 50 / - 92 * 6 THEN - 63 WHEN - + 86 * + 86 + ( - 95 ) + - ( 60 ) THEN - 85 END + - COUNT ( + 29 ) + + - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT - 75 * + 22 * + COUNT( * ) - - 21 + COUNT( * )
----
-1628

skipif mysql # not compatible
query I rowsort label-2123
SELECT - 75 * + 22 * + COUNT ( * ) - - 21 + COUNT ( * )
----
-1628

query I rowsort
SELECT ALL + 27 + + 53
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL - ( + + 47 ) * + 64 * + 79 - COUNT( * )
----
-237633

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - ( + + 47 ) * + 64 * + 79 - COUNT ( * )
----
-237633

query I rowsort
SELECT DISTINCT - - 68
----
68

query I rowsort
SELECT 30 * 22 + 77 * - - 68 AS col0
----
5896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2128
SELECT DISTINCT + 5 - + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2, - 30
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-2128
SELECT DISTINCT + 5 - + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2, - 30
----
NULL
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2129
SELECT DISTINCT - 32 DIV - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT - 32 / - COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL - NULLIF ( 65, - 45 - MIN( DISTINCT + - 1 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL - NULLIF ( 65, - 45 - MIN ( DISTINCT + - 1 ) )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT 77 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2131
SELECT 77 / + 92 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2132
SELECT 12 * + + MAX( 2 ) * AVG ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT 12 * + + MAX ( 2 ) * AVG ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 42 * - - 85 + - 40
----
3530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2134
SELECT DISTINCT + ( - 80 ) * COALESCE ( + 54, - + 62 * + - 87 - + SUM( + + 66 ) + + - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) + + 36 * 51 + + CASE - 29 WHEN - - 53 THEN 2 - - - 12 * + 22 ELSE NULL END + - 30 * + 20 * + - 9 - - + 31, + 72 + - 92 + + COUNT( * ) DIV + 67 ) col0
----
-4320

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT + ( - 80 ) * COALESCE ( + 54, - + 62 * + - 87 - + SUM ( + + 66 ) + + - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) + + 36 * 51 + + CASE - 29 WHEN - - 53 THEN 2 - - - 12 * + 22 ELSE NULL END + - 30 * + 20 * + - 9 - - + 31, + 72 + - 92 + + COUNT ( * ) / + 67 ) col0
----
-4320

query I rowsort
SELECT DISTINCT + 61 * 48
----
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT COUNT( * ) * 83 * - 93 AS col0
----
-7719

skipif mysql # not compatible
query I rowsort label-2136
SELECT COUNT ( * ) * 83 * - 93 AS col0
----
-7719

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2137
SELECT ALL 90 AS col2, - CAST( 47 AS SIGNED )
----
90
-47

skipif mysql # not compatible
query II rowsort label-2137
SELECT ALL 90 AS col2, - CAST ( 47 AS INTEGER )
----
90
-47

query II rowsort
SELECT DISTINCT 41 col1, + ( - 19 ) AS col0
----
41
-19

query I rowsort
SELECT 89 * + 8
----
712

query I rowsort
SELECT 92 + - - 96 AS col2
----
188

query I rowsort
SELECT 98 - - 32 AS col0
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-2142
SELECT 1 * + - 48 DIV + 21 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2142
SELECT 1 * + - 48 / + 21 AS col2
----
-2

query I rowsort
SELECT 37 * + 32 AS col0
----
1184

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

query II rowsort
SELECT - 57 col1, 55
----
-57
55

query II rowsort
SELECT DISTINCT + - 82 + 11 * + + 87 AS col0, 63 AS col0
----
875
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2147
SELECT ALL - 74 + COUNT( DISTINCT 42 ) AS col1, SUM( - 63 )
----
-73
-63

skipif mysql # not compatible
query II rowsort label-2147
SELECT ALL - 74 + COUNT ( DISTINCT 42 ) AS col1, SUM ( - 63 )
----
-73
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT - NULLIF ( + 47, + - 0 + CAST( NULL AS SIGNED ) * - + 60 * ( - 31 ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-2148
SELECT - NULLIF ( + 47, + - 0 + CAST ( NULL AS INTEGER ) * - + 60 * ( - 31 ) ) AS col1
----
-47

query I rowsort
SELECT ALL + + 32 + - 55 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT - - 69 + - 69 * MAX( + NULLIF ( - 21, - 7 ) )
----
1518

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - - 69 + - 69 * MAX ( + NULLIF ( - 21, - 7 ) )
----
1518

query I rowsort
SELECT ALL - 19 + + - 50
----
-69

query I rowsort
SELECT ALL 41 * + 13 col2
----
533

onlyif mysql # DIV for integer division: 
query I rowsort label-2153
SELECT + 15 * 7 DIV + + 78
----
1

skipif mysql # not compatible
query I rowsort label-2153
SELECT + 15 * 7 / + + 78
----
1

query I rowsort
SELECT ALL - 17 * 50 AS col2
----
-850

query I rowsort
SELECT ALL 68 + 45
----
113

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

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

query II rowsort
SELECT - 51 + + - 85 * - 6 AS col2, 3 col2
----
459
3

query II rowsort
SELECT DISTINCT - - 25, 64 + - 30 AS col1
----
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL + 56 * COUNT( * ) * + ( - CASE - 28 WHEN + MIN( - + 36 ) * - 65 + - 65 + + 57 + + 8 * + 73 * + 59 THEN + 60 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + 56 * COUNT ( * ) * + ( - CASE - 28 WHEN + MIN ( - + 36 ) * - 65 + - 65 + + 57 + + 8 * + 73 * + 59 THEN + 60 END )
----
NULL

query I rowsort
SELECT ALL + 98 + + - 95 + - 71 * NULLIF ( - 34, + 62 ) AS col2
----
2417

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT ALL - COUNT( * ) + + - 18
----
-19

skipif mysql # not compatible
query I rowsort label-2161
SELECT ALL - COUNT ( * ) + + - 18
----
-19

query I rowsort
SELECT - 1 + - + 49
----
-50

query I rowsort
SELECT DISTINCT - + 75 col1
----
-75

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

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

query I rowsort
SELECT 67 * - + 44 AS col2
----
-2948

query I rowsort
SELECT ALL 4 * 92 AS col2
----
368

query I rowsort
SELECT 10 * + + 35 + - + 68
----
282

query II rowsort
SELECT DISTINCT 21 * 59 AS col1, - 85 * + 64 + + 32
----
1239
-5408

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT + MIN( - + 38 ) * 33 + - + 4 + - 71
----
-1329

skipif mysql # not compatible
query I rowsort label-2169
SELECT + MIN ( - + 38 ) * 33 + - + 4 + - 71
----
-1329

onlyif mysql # aggregate syntax: 
query II rowsort label-2170
SELECT 16 AS col0, CASE 48 WHEN + + COUNT( * ) THEN NULL WHEN - 44 THEN + 48 + 12 ELSE NULL END
----
16
NULL

skipif mysql # not compatible
query II rowsort label-2170
SELECT 16 AS col0, CASE 48 WHEN + + COUNT ( * ) THEN NULL WHEN - 44 THEN + 48 + 12 ELSE NULL END
----
16
NULL

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

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

query I rowsort
SELECT ALL 68 * - 22
----
-1496

query II rowsort
SELECT 97 AS col0, + 51 * + 43 AS col2
----
97
2193

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT 18 + + MIN( 94 ) AS col0
----
112

skipif mysql # not compatible
query I rowsort label-2175
SELECT 18 + + MIN ( 94 ) AS col0
----
112

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

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - COUNT ( ALL + + 30 ) AS col1
----
-1

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

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

query II rowsort
SELECT ALL 90 AS col1, - 40
----
90
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2179
SELECT CAST( - 69 AS SIGNED ) + - ( + 9 ) + + 58 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-2179
SELECT CAST ( - 69 AS INTEGER ) + - ( + 9 ) + + 58 AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT COUNT( * ) DIV + 17 * - 35 * - ( - + 81 ) * - + 57 * 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT COUNT ( * ) / + 17 * - 35 * - ( - + 81 ) * - + 57 * 17 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2181
SELECT ALL - ( + - 8 ) + - COALESCE ( + 14, - COUNT( - 88 ) ), NULLIF ( - - 97, CASE + + 18 WHEN + SUM( ALL - - 10 ) + 25 THEN 52 WHEN + - 70 THEN NULL END ) + - + 77 DIV - ( + 18 ) AS col1
----
-6
101

skipif mysql # not compatible
query II rowsort label-2181
SELECT ALL - ( + - 8 ) + - COALESCE ( + 14, - COUNT ( - 88 ) ), NULLIF ( - - 97, CASE + + 18 WHEN + SUM ( ALL - - 10 ) + 25 THEN 52 WHEN + - 70 THEN NULL END ) + - + 77 / - ( + 18 ) AS col1
----
-6
101

query I rowsort
SELECT 43 + + 37 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT DISTINCT - 75 DIV + 68 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT - 75 / + 68 AS col2
----
-1

query I rowsort
SELECT 53 + + 42 + - 6 * - 62
----
467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2185
SELECT 27 DIV - 78 * - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2185
SELECT 27 / - 78 * - + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT ALL COUNT( DISTINCT - 34 ) + + 60 + 68 * + COUNT( * ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL COUNT ( DISTINCT - 34 ) + + 60 + 68 * + COUNT ( * ) AS col2
----
129

query I rowsort
SELECT DISTINCT - 30 + 59 * - - 48
----
2802

query I rowsort
SELECT + 33 * - 88 col2
----
-2904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT ALL - CAST( NULL AS SIGNED ) + CASE - 77 WHEN - 24 THEN - 36 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - CAST ( NULL AS INTEGER ) + CASE - 77 WHEN - 24 THEN - 36 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - 42 + - - 54 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT ALL - 12 * - + 6 - - - 93 * MAX( + 81 ) AS col0
----
-7461

skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL - 12 * - + 6 - - - 93 * MAX ( + 81 ) AS col0
----
-7461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT - CAST( 85 AS SIGNED ) + - 24 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-2192
SELECT - CAST ( 85 AS INTEGER ) + - 24 AS col2
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT - 10 AS col2, - 83 + COUNT( * ) * - 91
----
-10
-174

skipif mysql # not compatible
query II rowsort label-2193
SELECT - 10 AS col2, - 83 + COUNT ( * ) * - 91
----
-10
-174

query I rowsort
SELECT NULLIF ( + 10, + + 58 ) AS col1
----
10

query I rowsort
SELECT - 69 + - 3 AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2196
SELECT 61 AS col1, + CAST( - 48 AS SIGNED ) * + + 6 DIV - + NULLIF ( + COUNT( * ), 70 )
----
61
288

skipif mysql # not compatible
query II rowsort label-2196
SELECT 61 AS col1, + CAST ( - 48 AS INTEGER ) * + + 6 / - + NULLIF ( + COUNT ( * ), 70 )
----
61
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2197
SELECT - 72 AS col2, CAST( NULL AS SIGNED ) * + 30 * + 52 * - COUNT( * )
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-2197
SELECT - 72 AS col2, CAST ( NULL AS INTEGER ) * + 30 * + 52 * - COUNT ( * )
----
-72
NULL

query I rowsort
SELECT ALL + 88 + + 30 AS col1
----
118

query I rowsort
SELECT ( - 66 ) col1
----
-66

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

skipif mysql # not compatible
query II rowsort label-2200
SELECT + COUNT ( * ), COUNT ( * ) / - 29 AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL - SUM( DISTINCT + - 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - SUM ( DISTINCT + - 69 ) AS col1
----
69

query I rowsort
SELECT - + 7 * - 93 * - 95 AS col2
----
-61845

query II rowsort
SELECT - - 44, 94 col1
----
44
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL + 27 - - COUNT( DISTINCT - 8 ) + MIN( ALL + + 59 )
----
87

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL + 27 - - COUNT ( DISTINCT - 8 ) + MIN ( ALL + + 59 )
----
87

query II rowsort
SELECT DISTINCT + 19, 34 AS col2
----
19
34

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2207
SELECT ALL CAST( NULL AS SIGNED ) - - 46 + - 8 * - 2 + - ( - - ( + 46 ) ) - + 63 * - ( + 41 ) * + - 25, 55 * + - 62 AS col1
----
NULL
-3410

skipif mysql # not compatible
query II rowsort label-2207
SELECT ALL CAST ( NULL AS INTEGER ) - - 46 + - 8 * - 2 + - ( - - ( + 46 ) ) - + 63 * - ( + 41 ) * + - 25, 55 * + - 62 AS col1
----
NULL
-3410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT + MIN( + - 74 ) * + + CAST( + NULLIF ( - CASE CAST( 96 AS SIGNED ) WHEN + COUNT( * ) - COUNT( * ) THEN 75 END, + ( - 11 ) * + CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT + MIN ( + - 74 ) * + + CAST ( + NULLIF ( - CASE CAST ( 96 AS INTEGER ) WHEN + COUNT ( * ) - COUNT ( * ) THEN 75 END, + ( - 11 ) * + CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2209
SELECT ALL - COUNT( * ) DIV - 34 + + CAST( - 6 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL - COUNT ( * ) / - 34 + + CAST ( - 6 AS INTEGER ) AS col1
----
-6

query I rowsort
SELECT DISTINCT + - 46 AS col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT DISTINCT + - 50 * + COUNT( * ) + - + 48 + 91 DIV + 94 + 62 * + + 27 * + 20 AS col0
----
33382

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + - 50 * + COUNT ( * ) + - + 48 + 91 / + 94 + 62 * + + 27 * + 20 AS col0
----
33382

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL + + CASE - + 12 WHEN - 66 + - + MAX( DISTINCT 21 ) THEN - 30 + 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL + + CASE - + 12 WHEN - 66 + - + MAX ( DISTINCT 21 ) THEN - 30 + 29 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2213
SELECT ALL + 63 * 9 - 85 + ( 31 ) * + - CAST( + 86 AS SIGNED ) AS col1, COUNT( * ) DIV + CAST( 57 AS SIGNED ) AS col1
----
-2184
0

skipif mysql # not compatible
query II rowsort label-2213
SELECT ALL + 63 * 9 - 85 + ( 31 ) * + - CAST ( + 86 AS INTEGER ) AS col1, COUNT ( * ) / + CAST ( 57 AS INTEGER ) AS col1
----
-2184
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT - - 80 DIV 31
----
2

skipif mysql # not compatible
query I rowsort label-2214
SELECT - - 80 / 31
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2215
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), + - 93 ) * + COUNT( DISTINCT - - ( - 85 ) ) - + - 47 AS col1, - 39 AS col2
----
-46
-39

skipif mysql # not compatible
query II rowsort label-2215
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), + - 93 ) * + COUNT ( DISTINCT - - ( - 85 ) ) - + - 47 AS col1, - 39 AS col2
----
-46
-39

query I rowsort
SELECT + 74 * + 94 col0
----
6956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT CASE + CAST( + + 59 AS SIGNED ) WHEN + 91 THEN + 31 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT CASE + CAST ( + + 59 AS INTEGER ) WHEN + 91 THEN + 31 END col0
----
NULL

query I rowsort
SELECT + ( - 25 ) * + - 44
----
1100

query II rowsort
SELECT ALL + ( - 15 ), 48 AS col0
----
-15
48

query I rowsort
SELECT ALL - 60 * + 32 AS col2
----
-1920

query I rowsort
SELECT DISTINCT + ( - 98 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT + NULLIF ( - + 88, CAST( NULL AS SIGNED ) + - - 13 * + 58 + - 26 )
----
-88

skipif mysql # not compatible
query I rowsort label-2222
SELECT + NULLIF ( - + 88, CAST ( NULL AS INTEGER ) + - - 13 * + 58 + - 26 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT CASE COUNT( * ) WHEN + 48 THEN - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT CASE COUNT ( * ) WHEN + 48 THEN - 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT CASE AVG ( ALL + 18 ) WHEN 40 * 57 THEN - 92 WHEN CASE ( - MAX( DISTINCT + + 66 ) ) WHEN 62 THEN - - 53 WHEN + - 18 THEN NULL END THEN - 88 ELSE 52 + + 67 END AS col0
----
119

skipif mysql # not compatible
query I rowsort label-2224
SELECT CASE AVG ( ALL + 18 ) WHEN 40 * 57 THEN - 92 WHEN CASE ( - MAX ( DISTINCT + + 66 ) ) WHEN 62 THEN - - 53 WHEN + - 18 THEN NULL END THEN - 88 ELSE 52 + + 67 END AS col0
----
119

query I rowsort
SELECT 61 * + 62 - 60 col1
----
3722

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT + COUNT( * ) * + + 0 * - 50
----
0

skipif mysql # not compatible
query I rowsort label-2226
SELECT + COUNT ( * ) * + + 0 * - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT COUNT( + + CASE - + 99 WHEN + 96 THEN + - 63 ELSE NULL END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2227
SELECT COUNT ( + + CASE - + 99 WHEN + 96 THEN + - 63 ELSE NULL END ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2228
SELECT + 72 * - CASE + 75 WHEN - - COUNT( * ) + - COUNT( * ) + ( - - 36 ) * + 56 THEN COUNT( * ) DIV + COUNT( * ) ELSE + - 99 * NULLIF ( - 35, - + ( - 37 ) ) + + + ( + 60 ) + - 59 + - - 5 + + COALESCE ( - + 8, - - NULLIF ( + COUNT( * ), ( - + 86 ) ) ) END, 77 * + - 5 + 8 AS col0
----
-249336
-377

skipif mysql # not compatible
query II rowsort label-2228
SELECT + 72 * - CASE + 75 WHEN - - COUNT ( * ) + - COUNT ( * ) + ( - - 36 ) * + 56 THEN COUNT ( * ) / + COUNT ( * ) ELSE + - 99 * NULLIF ( - 35, - + ( - 37 ) ) + + + ( + 60 ) + - 59 + - - 5 + + COALESCE ( - + 8, - - NULLIF ( + COUNT ( * ), ( - + 86 ) ) ) END, 77 * + - 5 + 8 AS col0
----
-249336
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL + 71 * 9 + 0 * + COALESCE ( - 37, + ( MAX( DISTINCT + 93 ) ) )
----
639

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + 71 * 9 + 0 * + COALESCE ( - 37, + ( MAX ( DISTINCT + 93 ) ) )
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT ALL + CASE - 61 WHEN 43 * - 28 + + + 38 THEN COUNT( * ) + 36 WHEN 8 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL + CASE - 61 WHEN 43 * - 28 + + + 38 THEN COUNT ( * ) + 36 WHEN 8 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - ( + ( 82 ) ) col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT ALL + 21 * + + COUNT( * ) + - CASE - + 10 WHEN SUM( ALL - ( + 23 ) ) THEN - 34 * - COUNT( * ) * - ( 24 ) + - 51 * 29 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL + 21 * + + COUNT ( * ) + - CASE - + 10 WHEN SUM ( ALL - ( + 23 ) ) THEN - 34 * - COUNT ( * ) * - ( 24 ) + - 51 * 29 ELSE NULL END AS col0
----
NULL

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

query I rowsort
SELECT ALL + 53 + + 3
----
56

query II rowsort
SELECT + 42 * 27 AS col1, 44
----
1134
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL COALESCE ( 92, ( - ( COALESCE ( ( 8 ), - + 14 ) ) ) ) * - 68 * 70 * - - 67 + - + COUNT( * )
----
-29340641

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL COALESCE ( 92, ( - ( COALESCE ( ( 8 ), - + 14 ) ) ) ) * - 68 * 70 * - - 67 + - + COUNT ( * )
----
-29340641

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT - + 97 DIV + 19
----
-5

skipif mysql # not compatible
query I rowsort label-2237
SELECT - + 97 / + 19
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2238
SELECT + - CAST( 30 AS SIGNED ) + + CASE - 83 WHEN 22 THEN NULL WHEN - + MAX( DISTINCT + ( + + 35 ) ) - - 48 - CAST( + 90 AS SIGNED ) THEN NULL ELSE + - 80 END AS col1, ( + - 13 ) + + CAST( NULL AS SIGNED ) + - 76 + - + CASE + + NULLIF ( - MAX( + NULLIF ( + 43, + 25 + + - CAST( NULL AS SIGNED ) ) ), - - COUNT( * ) ) WHEN 12 + + 36 * - + CAST( NULL AS SIGNED ) THEN NULL WHEN + 34 * + 10 THEN MIN( DISTINCT + 68 ) / 10 WHEN 31 - COUNT( * ) / + 16 THEN + 12 ELSE NULL END
----
-110
NULL

skipif mysql # not compatible
query II rowsort label-2238
SELECT + - CAST ( 30 AS INTEGER ) + + CASE - 83 WHEN 22 THEN NULL WHEN - + MAX ( DISTINCT + ( + + 35 ) ) - - 48 - CAST ( + 90 AS INTEGER ) THEN NULL ELSE + - 80 END AS col1, ( + - 13 ) + + CAST ( NULL AS INTEGER ) + - 76 + - + CASE + + NULLIF ( - MAX ( + NULLIF ( + 43, + 25 + + - CAST ( NULL AS INTEGER ) ) ), - - COUNT ( * ) ) WHEN 12 + + 36 * - + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 34 * + 10 THEN MIN ( DISTINCT + 68 ) / 10 WHEN 31 - COUNT ( * ) / + 16 THEN + 12 ELSE NULL END
----
-110
NULL

query II rowsort
SELECT + + 11 + + - 41 * ( - 1 ) + 46, - ( - 49 ) AS col0
----
98
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2240
SELECT - + CAST( NULL AS DECIMAL ) * - 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2240
SELECT - + CAST ( NULL AS REAL ) * - 14 col1
----
NULL

query I rowsort
SELECT ALL + 42 * - 9 col1
----
-378

query I rowsort
SELECT - 29 * - 29 + 2
----
843

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT DISTINCT + 98 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + 98 / 69
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2244
SELECT - + 70 - + 60 * - ( + + 41 ) DIV - ( + - COUNT( * ) ) col2
----
2390

skipif mysql # not compatible
query I rowsort label-2244
SELECT - + 70 - + 60 * - ( + + 41 ) / - ( + - COUNT ( * ) ) col2
----
2390

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT - + 97 * - 58 * + COUNT( * )
----
5626

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT - + 97 * - 58 * + COUNT ( * )
----
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT - - COUNT( DISTINCT 41 ) + + 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2246
SELECT - - COUNT ( DISTINCT 41 ) + + 44 AS col0
----
45

query I rowsort
SELECT DISTINCT - 73 * - 82
----
5986

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT - 5 * - 73 * 71 / - 63 - - 60 + 10 + - 94 * - 96 * + SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT - 5 * - 73 * 71 / - 63 - - 60 + 10 + - 94 * - 96 * + SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT - COUNT( * ) * 72 + - + NULLIF ( 30, + - ( + 38 ) + + - 65 ) + + + ( + ( + 47 ) ) + + + 5
----
-50

skipif mysql # not compatible
query I rowsort label-2250
SELECT - COUNT ( * ) * 72 + - + NULLIF ( 30, + - ( + 38 ) + + - 65 ) + + + ( + ( + 47 ) ) + + + 5
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-2251
SELECT DISTINCT + - 55 * 73 * - + ( + COUNT( * ) ) * + + 48 + COUNT( * ) * COALESCE ( + + 40, + + SUM( + 33 ) * + 20 * COUNT( DISTINCT - 67 ) + + 88 ) - - - 50, 61 + 57 AS col1
----
192710
118

skipif mysql # not compatible
query II rowsort label-2251
SELECT DISTINCT + - 55 * 73 * - + ( + COUNT ( * ) ) * + + 48 + COUNT ( * ) * COALESCE ( + + 40, + + SUM ( + 33 ) * + 20 * COUNT ( DISTINCT - 67 ) + + 88 ) - - - 50, 61 + 57 AS col1
----
192710
118

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

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

query II rowsort
SELECT DISTINCT + 63 AS col0, 18
----
63
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT - ( - 11 ) DIV + - 36 + + 70 + - 70
----
0

skipif mysql # not compatible
query I rowsort label-2254
SELECT - ( - 11 ) / + - 36 + + 70 + - 70
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2255
SELECT + 9 DIV ( - 19 ) AS col1, + 33
----
0
33

skipif mysql # not compatible
query II rowsort label-2255
SELECT + 9 / ( - 19 ) AS col1, + 33
----
0
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2256
SELECT ALL + 21 DIV ( - - COALESCE ( - + 27, 75 ) ) + - CAST( 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL + 21 / ( - - COALESCE ( - + 27, 75 ) ) + - CAST ( 9 AS INTEGER )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT + COUNT( * ), + 71 + + MAX( DISTINCT - + 42 ) col2
----
1
29

skipif mysql # not compatible
query II rowsort label-2257
SELECT + COUNT ( * ), + 71 + + MAX ( DISTINCT - + 42 ) col2
----
1
29

query I rowsort
SELECT + 85 * + 29
----
2465

query I rowsort
SELECT - 55 * - 65 AS col0
----
3575

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT ALL - 30 * MIN( 12 ) * - 3
----
1080

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL - 30 * MIN ( 12 ) * - 3
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT DISTINCT - COALESCE ( 97, COUNT( * ) - 85, + - 55 ) * - 86
----
8342

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT - COALESCE ( 97, COUNT ( * ) - 85, + - 55 ) * - 86
----
8342

query I rowsort
SELECT ( - - 97 ) + 66 AS col0
----
163

query II rowsort
SELECT DISTINCT - 14 AS col2, 42
----
-14
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2264
SELECT + 21 * - 25 + - COUNT( * ) * 98 * - 1 + + - 26 + + + ( 83 ) AS col2, - 16
----
-370
-16

skipif mysql # not compatible
query II rowsort label-2264
SELECT + 21 * - 25 + - COUNT ( * ) * 98 * - 1 + + - 26 + + + ( 83 ) AS col2, - 16
----
-370
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2265
SELECT ALL 7 + - COUNT( 68 ) AS col2, 53 DIV - 65
----
6
0

skipif mysql # not compatible
query II rowsort label-2265
SELECT ALL 7 + - COUNT ( 68 ) AS col2, 53 / - 65
----
6
0

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

query I rowsort
SELECT 5 * - + 89
----
-445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2268
SELECT ALL COUNT( * ) * CAST( - 45 AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL COUNT ( * ) * CAST ( - 45 AS INTEGER ) AS col0
----
-45

query I rowsort
SELECT DISTINCT + 13 * - - ( - 29 ) * - 50 + + - AVG ( - - CASE 96 WHEN + 58 THEN - - 84 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT DISTINCT 78 * 51 * ( SUM( ALL + 88 ) ) AS col0
----
350064

skipif mysql # not compatible
query I rowsort label-2270
SELECT DISTINCT 78 * 51 * ( SUM ( ALL + 88 ) ) AS col0
----
350064

onlyif mysql # aggregate syntax: 
query II rowsort label-2271
SELECT DISTINCT + 69 AS col0, + 61 * SUM( + - ( + + 81 ) )
----
69
-4941

skipif mysql # not compatible
query II rowsort label-2271
SELECT DISTINCT + 69 AS col0, + 61 * SUM ( + - ( + + 81 ) )
----
69
-4941

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT ALL - CASE + 3 WHEN + - 91 * + + 47 + 56 THEN NULL ELSE + 87 * - - 43 DIV 64 DIV - 87 * CASE 1 WHEN + 3 * + - 61 DIV - + 80 THEN NULL WHEN - 7 * + - ( - 77 ) THEN NULL WHEN + 2 THEN NULL ELSE + COALESCE ( + 63, + + 37 ) END END - + - 27 col1
----
27

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - CASE + 3 WHEN + - 91 * + + 47 + 56 THEN NULL ELSE + 87 * - - 43 / 64 / - 87 * CASE 1 WHEN + 3 * + - 61 / - + 80 THEN NULL WHEN - 7 * + - ( - 77 ) THEN NULL WHEN + 2 THEN NULL ELSE + COALESCE ( + 63, + + 37 ) END END - + - 27 col1
----
27

query I rowsort
SELECT + 27 * - - 96
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL + ( COUNT( * ) ) * 32 * ( + - 49 ) AS col2
----
-1568

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + ( COUNT ( * ) ) * 32 * ( + - 49 ) AS col2
----
-1568

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2275
SELECT ALL CASE 97 WHEN - - 76 THEN NULL ELSE - CAST( NULL AS SIGNED ) END AS col1, 62 + - 38
----
NULL
24

skipif mysql # not compatible
query II rowsort label-2275
SELECT ALL CASE 97 WHEN - - 76 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END AS col1, 62 + - 38
----
NULL
24

query II rowsort
SELECT DISTINCT - 46 AS col1, - ( - 42 ) AS col2
----
-46
42

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

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

query I rowsort
SELECT + ( - 27 ) col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT + 54 + - COALESCE ( COUNT( * ), + 79 + + 61 )
----
53

skipif mysql # not compatible
query I rowsort label-2279
SELECT + 54 + - COALESCE ( COUNT ( * ), + 79 + + 61 )
----
53

query I rowsort
SELECT ALL + 19 - - + 9 AS col0
----
28

query II rowsort
SELECT + 30 AS col1, - 13 * + - 32
----
30
416

query II rowsort
SELECT - + 97 AS col1, - 84 AS col1
----
-97
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT COALESCE ( + + ( + - COUNT( * ) ), + MAX( DISTINCT - COALESCE ( + 17, + + 87 ) ), 94, 63 * - + MAX( + - 97 ) ) * + 19
----
-19

skipif mysql # not compatible
query I rowsort label-2283
SELECT COALESCE ( + + ( + - COUNT ( * ) ), + MAX ( DISTINCT - COALESCE ( + 17, + + 87 ) ), 94, 63 * - + MAX ( + - 97 ) ) * + 19
----
-19

query I rowsort
SELECT DISTINCT - 36 * - 22 AS col0
----
792

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT DISTINCT 8 DIV + 43 - + - 69 * + 44 AS col1
----
3036

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT 8 / + 43 - + - 69 * + 44 AS col1
----
3036

query I rowsort
SELECT ALL 45 * + 61
----
2745

query I rowsort
SELECT ALL + 88 + - 53
----
35

query I rowsort
SELECT 18 + 55 - 35
----
38

query I rowsort
SELECT DISTINCT + 15 + CASE 0 WHEN 41 + - 39 + - 15 * NULLIF ( 38, 11 ) + + 81 THEN NULL ELSE + + 74 END col1
----
89

query I rowsort
SELECT 88 * 3 + + + 60 AS col1
----
324

query I rowsort
SELECT 31 * - + 59 * + + 2 AS col2
----
-3658

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2292
SELECT ALL + ( + - 82 ) + - CAST( NULL AS SIGNED ) + - 26 AS col0, 23 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2292
SELECT ALL + ( + - 82 ) + - CAST ( NULL AS INTEGER ) + - 26 AS col0, 23 AS col1
----
NULL
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2293
SELECT - 26 DIV - + 44 * + - ( - 6 ) * - - 78 + + 45
----
45

skipif mysql # not compatible
query I rowsort label-2293
SELECT - 26 / - + 44 * + - ( - 6 ) * - - 78 + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT DISTINCT + 44 * CASE WHEN NOT 49 < - 50 THEN NULL WHEN 72 + + - COUNT( * ) NOT BETWEEN NULL AND - + COUNT( * ) + + - 95 * + ( COALESCE ( 33, - 16, 66 + - ( + - 5 ) * + 69 + 46 ) ) THEN - 73 - + 99 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT + 44 * CASE WHEN NOT 49 < - 50 THEN NULL WHEN 72 + + - COUNT ( * ) NOT BETWEEN NULL AND - + COUNT ( * ) + + - 95 * + ( COALESCE ( 33, - 16, 66 + - ( + - 5 ) * + 69 + 46 ) ) THEN - 73 - + 99 END col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 76 ) + 69 AS col2
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL + 53 - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + 53 - - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL - COUNT( DISTINCT 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - COUNT ( DISTINCT 43 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT - 43 * + COALESCE ( - CAST( NULL AS SIGNED ), - 82, - - MAX( + 43 ) * - ( MAX( DISTINCT - 74 ) ) ) - - MIN( 51 )
----
3577

skipif mysql # not compatible
query I rowsort label-2299
SELECT - 43 * + COALESCE ( - CAST ( NULL AS INTEGER ), - 82, - - MAX ( + 43 ) * - ( MAX ( DISTINCT - 74 ) ) ) - - MIN ( 51 )
----
3577

query II rowsort
SELECT 71 * + + ( + - ( + 91 ) ), 78 AS col0
----
-6461
78

query II rowsort
SELECT ALL - - 85 * + 77, - 48 AS col0
----
6545
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT + 44 DIV + 47 * - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT + 44 / + 47 * - 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT + + CASE - 58 WHEN - 34 THEN NULL WHEN - + 73 THEN - 72 ELSE NULL END * - - NULLIF ( COUNT( * ), - + 23 + 34 - - + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT + + CASE - 58 WHEN - 34 THEN NULL WHEN - + 73 THEN - 72 ELSE NULL END * - - NULLIF ( COUNT ( * ), - + 23 + 34 - - + 80 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2304
SELECT + 11 / + SUM ( DISTINCT - 30 ) + - ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT DISTINCT COUNT( DISTINCT + ( + - 90 ) ) DIV - - 63
----
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT COUNT ( DISTINCT + ( + - 90 ) ) / - - 63
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2306
SELECT 91 + 45 DIV MAX( ALL + + 32 ), - 81 DIV + 86 AS col1
----
92
0

skipif mysql # not compatible
query II rowsort label-2306
SELECT 91 + 45 / MAX ( ALL + + 32 ), - 81 / + 86 AS col1
----
92
0

query I rowsort
SELECT - 91 + - - 43 * - + 58
----
-2585

query I rowsort
SELECT + ( 64 ) * + 56 AS col2
----
3584

query I rowsort
SELECT 68 + + 68 AS col0
----
136

query I rowsort
SELECT + 74 - + - ( - - 50 ) AS col1
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL NULLIF ( + CAST( + 73 AS SIGNED ), - 9 * - 65 * + - 48 ) * 32 * - + 27
----
-63072

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL NULLIF ( + CAST ( + 73 AS INTEGER ), - 9 * - 65 * + - 48 ) * 32 * - + 27
----
-63072

query I rowsort
SELECT ALL - 7 * + 6
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2313
SELECT + 27 DIV 91 * - 92 + - - 64 + MAX( DISTINCT + NULLIF ( 26, 91 * + - 67 * 27 + - + 42 + + - 91 ) ) col0, 72 DIV + + COALESCE ( + 5, + - 51 ) AS col0
----
90
14

skipif mysql # not compatible
query II rowsort label-2313
SELECT + 27 / 91 * - 92 + - - 64 + MAX ( DISTINCT + NULLIF ( 26, 91 * + - 67 * 27 + - + 42 + + - 91 ) ) col0, 72 / + + COALESCE ( + 5, + - 51 ) AS col0
----
90
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT DISTINCT 96 + + 37 DIV 68
----
96

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT 96 + + 37 / 68
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL MAX( + 53 ) + + ( - + 37 ) * - + 68
----
2569

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL MAX ( + 53 ) + + ( - + 37 ) * - + 68
----
2569

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

query I rowsort
SELECT 2 * - - 18 AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT 8 DIV - - 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2319
SELECT 8 / - - 21 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT 2 * - + 68 + + + 67 + - - 86 * 61 * + CAST( + + 25 AS SIGNED ) * + ( 85 )
----
11147681

skipif mysql # not compatible
query I rowsort label-2320
SELECT 2 * - + 68 + + + 67 + - - 86 * 61 * + CAST ( + + 25 AS INTEGER ) * + ( 85 )
----
11147681

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL - COUNT( * ) * + - 69
----
69

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - COUNT ( * ) * + - 69
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT ALL 55 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL 55 / - 96 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2323
SELECT ALL 84 * - ( - 13 ) + COUNT( * ) DIV + 8
----
1092

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL 84 * - ( - 13 ) + COUNT ( * ) / + 8
----
1092

query I rowsort
SELECT ALL + 57 * 67 AS col2
----
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT - 34 * - - 55 - 26 - + - MIN( - + 75 ) * 98 + + 67
----
-9179

skipif mysql # not compatible
query I rowsort label-2325
SELECT - 34 * - - 55 - 26 - + - MIN ( - + 75 ) * 98 + + 67
----
-9179

query I rowsort
SELECT + NULLIF ( - 68, 42 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT - MAX( ALL - + ( - 37 ) ) - 27 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2327
SELECT - MAX ( ALL - + ( - 37 ) ) - 27 AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2328
SELECT COUNT( DISTINCT - 68 ) * + - 93 + + 32 + + - 87 DIV 87
----
-62

skipif mysql # not compatible
query I rowsort label-2328
SELECT COUNT ( DISTINCT - 68 ) * + - 93 + + 32 + + - 87 / 87
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2329
SELECT ALL - 90 * - COUNT( * ) * - + 72 - + - 52 + + CAST( NULL AS SIGNED ) + 87 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - 90 * - COUNT ( * ) * - + 72 - + - 52 + + CAST ( NULL AS INTEGER ) + 87 + 95
----
NULL

query I rowsort
SELECT ALL + + 16 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - - COUNT( * ) + 11 + + - COUNT( * ) * - 24
----
36

skipif mysql # not compatible
query I rowsort label-2331
SELECT - - COUNT ( * ) + 11 + + - COUNT ( * ) * - 24
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL + - MIN( ALL - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL + - MIN ( ALL - 57 )
----
57

query I rowsort
SELECT ALL - 63 * + 31
----
-1953

query I rowsort
SELECT - 9 + + 66 + - 51 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL - - 91 * + 24 + - + SUM( - 1 )
----
2185

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL - - 91 * + 24 + - + SUM ( - 1 )
----
2185

query I rowsort
SELECT - 36 + - 65
----
-101

query I rowsort
SELECT - - NULLIF ( 65, + 98 * - ( 51 ) + - 5 / - 31 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL + + 78 + + COUNT( * ) col1
----
79

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL + + 78 + + COUNT ( * ) col1
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL - ( - 23 ) * - ( - MAX( DISTINCT 27 ) ) + - ( 47 ) AS col1
----
574

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - ( - 23 ) * - ( - MAX ( DISTINCT 27 ) ) + - ( 47 ) AS col1
----
574

query I rowsort
SELECT DISTINCT + - ( 86 ) * + - 53 AS col0
----
4558

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT - + 49 + + - 28 - - COUNT( * ) * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - + 49 + + - 28 - - COUNT ( * ) * COUNT ( * )
----
-76

query II rowsort
SELECT ALL + ( - - 25 ) + - 11, - 5 AS col2
----
14
-5

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

skipif mysql # not compatible
query I rowsort label-2344
SELECT - - MAX ( ALL - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL COUNT( ALL - ( - 95 ) ) + + - 79 col1
----
-78

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL COUNT ( ALL - ( - 95 ) ) + + - 79 col1
----
-78

query I rowsort
SELECT - 82 * - 3
----
246

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2348
SELECT - 80 - + 44 DIV COUNT( * ) AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 80 - + 44 / COUNT ( * ) AS col2
----
-124

query I rowsort
SELECT ALL 50 + 43 * - + 68
----
-2874

query I rowsort
SELECT - 56 * 81
----
-4536

query I rowsort
SELECT + 62 * + + 65 * 26 AS col1
----
104780

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT - MAX( - + 68 ), - ( + 51 ) * + 10 * + 1 AS col1
----
68
-510

skipif mysql # not compatible
query II rowsort label-2352
SELECT - MAX ( - + 68 ), - ( + 51 ) * + 10 * + 1 AS col1
----
68
-510

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT DISTINCT - ( - 51 ) * - COALESCE ( COUNT( * ), - 29 * 44 * + - ( - 97 ) + - + ( ( - - 66 ) ) + - 34, + 55 ) + 81, 63 AS col2
----
30
63

skipif mysql # not compatible
query II rowsort label-2353
SELECT DISTINCT - ( - 51 ) * - COALESCE ( COUNT ( * ), - 29 * 44 * + - ( - 97 ) + - + ( ( - - 66 ) ) + - 34, + 55 ) + 81, 63 AS col2
----
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT DISTINCT 3 * + COUNT( * ) * + - 90 AS col0
----
-270

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT 3 * + COUNT ( * ) * + - 90 AS col0
----
-270

query I rowsort
SELECT + 26 * - - 36 * - + 84
----
-78624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2356
SELECT ALL 96 - NULLIF ( + 97, + 66 * - + COUNT( ALL 89 ) DIV 21 + - AVG ( ALL ( + - 47 ) ) - - - 12 + - 75 * - - 32 * 78 - - 41 ) + - COUNT( ALL - 15 ) + - + 24 * - 85 - - COUNT( DISTINCT - 20 ) * 9 DIV - 10 AS col2
----
2038

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL 96 - NULLIF ( + 97, + 66 * - + COUNT ( ALL 89 ) / 21 + - AVG ( ALL ( + - 47 ) ) - - - 12 + - 75 * - - 32 * 78 - - 41 ) + - COUNT ( ALL - 15 ) + - + 24 * - 85 - - COUNT ( DISTINCT - 20 ) * 9 / - 10 AS col2
----
2038

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + COUNT( * ) - + 77
----
-76

skipif mysql # not compatible
query I rowsort label-2357
SELECT + COUNT ( * ) - + 77
----
-76

query I rowsort
SELECT + NULLIF ( + - 97, 49 ) + + 65
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT + 78 DIV - 18 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2359
SELECT + 78 / - 18 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2360
SELECT ALL + 91 AS col2, 9 + - SUM( ALL 96 ) + 53 * - 45 AS col1
----
91
-2472

skipif mysql # not compatible
query II rowsort label-2360
SELECT ALL + 91 AS col2, 9 + - SUM ( ALL 96 ) + 53 * - 45 AS col1
----
91
-2472

query I rowsort
SELECT + 90 * + 53
----
4770

onlyif mysql # aggregate syntax: 
query II rowsort label-2362
SELECT + 96 * + 20 AS col2, COUNT( * )
----
1920
1

skipif mysql # not compatible
query II rowsort label-2362
SELECT + 96 * + 20 AS col2, COUNT ( * )
----
1920
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2365
SELECT ALL + COUNT( * ) col2, + COALESCE ( + 43, - CASE 81 WHEN - 20 * COUNT( * ) THEN 60 ELSE NULL END ) DIV 92
----
1
0

skipif mysql # not compatible
query II rowsort label-2365
SELECT ALL + COUNT ( * ) col2, + COALESCE ( + 43, - CASE 81 WHEN - 20 * COUNT ( * ) THEN 60 ELSE NULL END ) / 92
----
1
0

query I rowsort
SELECT 72 * - 16 + - 60 AS col2
----
-1212

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

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

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

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

query I rowsort
SELECT DISTINCT + 81 * + - 41
----
-3321

onlyif mysql # DIV for integer division: 
query I rowsort label-2370
SELECT DISTINCT - 14 DIV + - 10 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT - 14 / + - 10 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT + 84 DIV - ( + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-2371
SELECT + 84 / - ( + 75 )
----
-1

query II rowsort
SELECT + 75 col0, 91 * + 40 AS col2
----
75
3640

query I rowsort
SELECT DISTINCT + 81 * - 6 * + 79
----
-38394

query II rowsort
SELECT ALL + 39 AS col2, 84
----
39
84

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

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

query I rowsort
SELECT DISTINCT 85 * + 58 * - - 48 AS col2
----
236640

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT + COALESCE ( ( + 7 ), - MIN( DISTINCT - 27 ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2377
SELECT + COALESCE ( ( + 7 ), - MIN ( DISTINCT - 27 ) ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2378
SELECT - - 62 * COUNT( * ) col1, 82 AS col2
----
62
82

skipif mysql # not compatible
query II rowsort label-2378
SELECT - - 62 * COUNT ( * ) col1, 82 AS col2
----
62
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2379
SELECT + 73 * - 68 AS col2, 73 + - CASE + 26 WHEN + - 50 THEN 56 * - 2 ELSE - 62 END + + COALESCE ( 9, + 45 DIV + - 86, - COUNT( + - 58 ) ) DIV + COUNT( * ) - - 43
----
-4964
187

skipif mysql # not compatible
query II rowsort label-2379
SELECT + 73 * - 68 AS col2, 73 + - CASE + 26 WHEN + - 50 THEN 56 * - 2 ELSE - 62 END + + COALESCE ( 9, + 45 / + - 86, - COUNT ( + - 58 ) ) / + COUNT ( * ) - - 43
----
-4964
187

query II rowsort
SELECT ALL + - ( - 86 ) AS col2, - 59 AS col1
----
86
-59

query I rowsort
SELECT ALL + 6 * + 2 + - + 34 col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-2382
SELECT + COALESCE ( 59, + 57 * + 44 ), + COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-2382
SELECT + COALESCE ( 59, + 57 * + 44 ), + COUNT ( * ) AS col0
----
59
1

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

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

query I rowsort
SELECT DISTINCT + 35 * + + 4 * + 87 + - 39 AS col2
----
12141

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT + COUNT( * ) * + 86 + - 36 + 47 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT + COUNT ( * ) * + 86 + - 36 + 47 AS col0
----
97

query I rowsort
SELECT DISTINCT - 74 * 24 AS col2
----
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL - - COALESCE ( + - 4, + 62 ) * - MAX( - + 18 ) * - 30 + - 63 + + 30
----
2127

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - - COALESCE ( + - 4, + 62 ) * - MAX ( - + 18 ) * - 30 + - 63 + + 30
----
2127

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2389
SELECT + + COALESCE ( 36, - 95 + - 68 + + + NULLIF ( + 36, + 24 * AVG ( ALL + 70 ) ), + 39 + + - CASE - + 69 WHEN + 22 THEN 34 END - 11 * - + 79 DIV 69 * + 53 - + CASE - 23 WHEN - 83 DIV COALESCE ( + + 41, + COUNT( * ), + 74 ) * - + ( + 10 ) + + + 23 - - 45 + - 41 + - + 85 + COUNT( * ) THEN - NULLIF ( COUNT( * ), 65 + - 45 ) WHEN 81 * + 68 THEN + SUM( 86 ) * - 93 ELSE NULL END - - 25 DIV - COUNT( - ( 93 ) * 49 ) ) + + 3
----
39

skipif mysql # not compatible
query I rowsort label-2389
SELECT + + COALESCE ( 36, - 95 + - 68 + + + NULLIF ( + 36, + 24 * AVG ( ALL + 70 ) ), + 39 + + - CASE - + 69 WHEN + 22 THEN 34 END - 11 * - + 79 / 69 * + 53 - + CASE - 23 WHEN - 83 / COALESCE ( + + 41, + COUNT ( * ), + 74 ) * - + ( + 10 ) + + + 23 - - 45 + - 41 + - + 85 + COUNT ( * ) THEN - NULLIF ( COUNT ( * ), 65 + - 45 ) WHEN 81 * + 68 THEN + SUM ( 86 ) * - 93 ELSE NULL END - - 25 / - COUNT ( - ( 93 ) * 49 ) ) + + 3
----
39

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

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

query I rowsort
SELECT + - 25 * 8 * + + 4 * 58
----
-46400

query II rowsort
SELECT - + 23 col2, 81 AS col0
----
-23
81

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

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

query I rowsort
SELECT + 62 - CASE - 87 WHEN + 7 * 65 THEN NULL ELSE + 24 END
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL + NULLIF ( + COUNT( * ), - 23 ) * + + 7
----
7

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL + NULLIF ( + COUNT ( * ), - 23 ) * + + 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2396
SELECT DISTINCT + CASE - 33 WHEN - 24 THEN COUNT( * ) ELSE COALESCE ( - + 1, - 48, - 59 * + - 50 ) * ( + CAST( NULL AS SIGNED ) ) * + 28 + 83 END * - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT + CASE - 33 WHEN - 24 THEN COUNT ( * ) ELSE COALESCE ( - + 1, - 48, - 59 * + - 50 ) * ( + CAST ( NULL AS INTEGER ) ) * + 28 + 83 END * - 32 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT ALL - MIN( + CAST( NULL AS SIGNED ) ) * - - SUM( - + 2 ) + + 32 * + 23 / - 4 * + 36 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - MIN ( + CAST ( NULL AS INTEGER ) ) * - - SUM ( - + 2 ) + + 32 * + 23 / - 4 * + 36 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 39 * - NULLIF ( - + 71, 75 * 7 / - + 94 + - 71 + 35 ) AS col0
----
2769

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT + COUNT( * ) - - - 52
----
-51

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT + COUNT ( * ) - - - 52
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT 65 + + - 69 - - - 16 * - + COUNT( ALL + 79 ) col0
----
12

skipif mysql # not compatible
query I rowsort label-2400
SELECT 65 + + - 69 - - - 16 * - + COUNT ( ALL + 79 ) col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2401
SELECT 36 * - + COUNT( * ), - 44 AS col0
----
-36
-44

skipif mysql # not compatible
query II rowsort label-2401
SELECT 36 * - + COUNT ( * ), - 44 AS col0
----
-36
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT ALL - CAST( 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL - CAST ( 63 AS INTEGER )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL 31 * COALESCE ( - COUNT( * ), - + 21 )
----
-31

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 31 * COALESCE ( - COUNT ( * ), - + 21 )
----
-31

query I rowsort
SELECT 62 * + 82 * + 82
----
416888

query I rowsort
SELECT DISTINCT + 22 * + 21 * + - 26
----
-12012

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT CAST( - NULLIF ( 92, - - COALESCE ( 8, + - 38 ) ) AS SIGNED ) * + - 17 * + 56
----
87584

skipif mysql # not compatible
query I rowsort label-2406
SELECT CAST ( - NULLIF ( 92, - - COALESCE ( 8, + - 38 ) ) AS INTEGER ) * + - 17 * + 56
----
87584

query I rowsort
SELECT + ( + 35 ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL SUM( ALL + - 70 ) + - 25 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL SUM ( ALL + - 70 ) + - 25 AS col0
----
-95

query I rowsort
SELECT - 44 + + - 51 * 54 AS col0
----
-2798

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT DISTINCT - ( 13 ) DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT - ( 13 ) / + + 62
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2412
SELECT DISTINCT - 58 + - 83 + + - 59 - + 27 - - COUNT( * ) DIV 60 AS col1
----
-227

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT - 58 + - 83 + + - 59 - + 27 - - COUNT ( * ) / 60 AS col1
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT ALL COUNT( * ) + + CASE + 7 WHEN 96 / + 7 + 27 THEN NULL WHEN - 72 THEN NULL WHEN + + 13 * - 40 THEN CAST( NULL AS SIGNED ) ELSE ( - 82 ) END + - 46 * - - 61 AS col1
----
-2887

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL COUNT ( * ) + + CASE + 7 WHEN 96 / + 7 + 27 THEN NULL WHEN - 72 THEN NULL WHEN + + 13 * - 40 THEN CAST ( NULL AS INTEGER ) ELSE ( - 82 ) END + - 46 * - - 61 AS col1
----
-2887

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL - 20 + - COUNT( * ) * - 11 + 4 col0
----
-5

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL - 20 + - COUNT ( * ) * - 11 + 4 col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2415
SELECT DISTINCT - 9 DIV - + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT - 9 / - + 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT ALL - + 11 + SUM( - 9 ) + - - 36 - - 31 col1, + 50
----
47
50

skipif mysql # not compatible
query II rowsort label-2416
SELECT ALL - + 11 + SUM ( - 9 ) + - - 36 - - 31 col1, + 50
----
47
50

query I rowsort
SELECT ALL - ( + ( - 18 ) ) + + - 66 - + 64 AS col0
----
-112

query I rowsort
SELECT DISTINCT - - 85
----
85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL COUNT( * ) - - + 85 * + - 44 AS col0
----
-3739

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL COUNT ( * ) - - + 85 * + - 44 AS col0
----
-3739

query I rowsort
SELECT ALL - 71 - - 86 * - 54 + + 18 AS col0
----
-4697

query I rowsort
SELECT ALL + 7 * - 51 AS col2
----
-357

query II rowsort
SELECT 14 AS col2, - ( - - 74 ) * - 11
----
14
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT ( - MAX( + CAST( NULL AS SIGNED ) ) ) * + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT ( - MAX ( + CAST ( NULL AS INTEGER ) ) ) * + 45 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2426
SELECT DISTINCT + 26 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + 26 / 41
----
0

query I rowsort
SELECT 36 - - 9 * 21
----
225

query I rowsort
SELECT DISTINCT + 90 * - 62 AS col2
----
-5580

onlyif mysql # aggregate syntax: 
query II rowsort label-2429
SELECT - 37 col1, - COALESCE ( COUNT( * ), + 91 )
----
-37
-1

skipif mysql # not compatible
query II rowsort label-2429
SELECT - 37 col1, - COALESCE ( COUNT ( * ), + 91 )
----
-37
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT 62 DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-2431
SELECT 62 / 35
----
1

query I rowsort
SELECT ALL + 63 + 97 AS col0
----
160

query I rowsort
SELECT DISTINCT + 90 * 94 col0
----
8460

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

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

query I rowsort
SELECT 77 + 30
----
107

query I rowsort
SELECT 81 - - 43
----
124

query II rowsort
SELECT ALL 1, + 78 * + + 0 AS col1
----
1
0

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

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

query I rowsort
SELECT 0 * 3 * - 25 + - 69 * - + 13 AS col1
----
897

query I rowsort
SELECT ALL 33 * - 3 + 16
----
-83

query I rowsort
SELECT 9 * + 87
----
783

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL 92 * + 18 + 86 + - 52 * - CAST( NULL AS SIGNED ) + - + 43 / + CAST( 69 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL 92 * + 18 + 86 + - 52 * - CAST ( NULL AS INTEGER ) + - + 43 / + CAST ( 69 AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT 12 * + - 26 * + 41 AS col2
----
-12792

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT SUM( - + COALESCE ( - - 76, + - 87 ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2446
SELECT SUM ( - + COALESCE ( - - 76, + - 87 ) ) AS col2
----
-76

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

query II rowsort
SELECT + + 14, + 90 AS col0
----
14
90

query II rowsort
SELECT ALL 74 - - + 73 * 71, - 29 AS col1
----
5257
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2450
SELECT ALL - 47 AS col1, - NULLIF ( + - 39, + COALESCE ( - 41, - COUNT( * ) ) * + - 63 ) + NULLIF ( 15, + - COUNT( * ) * COUNT( * ) * - 43 ) AS col1
----
-47
54

skipif mysql # not compatible
query II rowsort label-2450
SELECT ALL - 47 AS col1, - NULLIF ( + - 39, + COALESCE ( - 41, - COUNT ( * ) ) * + - 63 ) + NULLIF ( 15, + - COUNT ( * ) * COUNT ( * ) * - 43 ) AS col1
----
-47
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT - + 97 * 61 - 58 + + + COUNT( * ) DIV - 61
----
-5975

skipif mysql # not compatible
query I rowsort label-2451
SELECT - + 97 * 61 - 58 + + + COUNT ( * ) / - 61
----
-5975

query I rowsort
SELECT DISTINCT - ( + 81 )
----
-81

query I rowsort
SELECT 37 - + + 44 col1
----
-7

query II rowsort
SELECT ALL + + 10, - 2 col1
----
10
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2455
SELECT ALL + 64 DIV 42 * - 0
----
0

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL + 64 / 42 * - 0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + MAX( - CASE + 30 WHEN 17 THEN - + 51 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2457
SELECT + MAX ( - CASE + 30 WHEN 17 THEN - + 51 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - 6 * + COUNT( * ) - - 4
----
-2

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 6 * + COUNT ( * ) - - 4
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2459
SELECT + 86 * 52, AVG ( + - CAST( NULL AS SIGNED ) ) / - + COUNT( * ) AS col0
----
4472
NULL

skipif mysql # not compatible
query II rowsort label-2459
SELECT + 86 * 52, AVG ( + - CAST ( NULL AS INTEGER ) ) / - + COUNT ( * ) AS col0
----
4472
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT ALL 91 DIV 41
----
2

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL 91 / 41
----
2

query I rowsort
SELECT + 74 + 27
----
101

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

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

query I rowsort
SELECT + 91 * ( - 32 )
----
-2912

query I rowsort
SELECT + 20 + - 97
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT - 31 + + 76 + + 94 + + + COUNT( * ) + + - 47 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT - 31 + + 76 + + 94 + + + COUNT ( * ) + + - 47 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL + 77 + - - 9 DIV NULLIF ( + - 79, COALESCE ( + + ( - 69 ), - 75 ) ) * 22 * + - 25 + 56 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL + 77 + - - 9 / NULLIF ( + - 79, COALESCE ( + + ( - 69 ), - 75 ) ) * 22 * + - 25 + 56 AS col1
----
133

query II rowsort
SELECT - ( + 51 ) AS col1, ( - 24 )
----
-51
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2468
SELECT - SUM( + 68 ) + + 36 + + - SUM( ALL + 58 ) DIV - 28 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2468
SELECT - SUM ( + 68 ) + + 36 + + - SUM ( ALL + 58 ) / - 28 AS col1
----
-30

query I rowsort
SELECT DISTINCT 13 + 54
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT - COALESCE ( CASE COUNT( * ) WHEN - 20 THEN - 96 WHEN 40 THEN NULL ELSE + + 43 END, - 24 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2470
SELECT - COALESCE ( CASE COUNT ( * ) WHEN - 20 THEN - 96 WHEN 40 THEN NULL ELSE + + 43 END, - 24 ) AS col1
----
-43

query I rowsort
SELECT ALL + 14 + + 63 AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT + - 39 + + 85, + COUNT( * ) + - + 63 AS col0
----
46
-62

skipif mysql # not compatible
query II rowsort label-2472
SELECT + - 39 + + 85, + COUNT ( * ) + - + 63 AS col0
----
46
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2473
SELECT ALL - - NULLIF ( - + 79, + COUNT( * ) + - 5 + - 36 ) * - 62 * NULLIF ( 66, - + COUNT( * ) * - 61 * 51 * + - NULLIF ( + 62, - 40 * ( - 22 ) + 49 + + 92 ) * - CAST( NULL AS DECIMAL ) - - 22 + + 26 + + 30 * + + 40 ) * 20 + + 68 DIV - 87 + MAX( ALL + 66 ) * + 87
----
6471102

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL - - NULLIF ( - + 79, + COUNT ( * ) + - 5 + - 36 ) * - 62 * NULLIF ( 66, - + COUNT ( * ) * - 61 * 51 * + - NULLIF ( + 62, - 40 * ( - 22 ) + 49 + + 92 ) * - CAST ( NULL AS REAL ) - - 22 + + 26 + + 30 * + + 40 ) * 20 + + 68 / - 87 + MAX ( ALL + 66 ) * + 87
----
6471102

query I rowsort
SELECT DISTINCT 18 * + 16
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT ALL - + 0 * + 40 + - 35 DIV + ( 70 )
----
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - + 0 * + 40 + - 35 / + ( 70 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2476
SELECT DISTINCT + - 77 * - COALESCE ( + 66, + 14 ) AS col2, SUM( - 23 )
----
5082
-23

skipif mysql # not compatible
query II rowsort label-2476
SELECT DISTINCT + - 77 * - COALESCE ( + 66, + 14 ) AS col2, SUM ( - 23 )
----
5082
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL + - 80 * 9 * - NULLIF ( - 58, + + 86 * 65 ) * - - 59 + - - 90 + - 5 / - - CASE + MIN( DISTINCT + - 42 ) WHEN + NULLIF ( 64, + - 16 + ( 53 ) ) THEN - 28 - 7 WHEN + 38 * + 12 * + 45 + + 33 THEN NULL WHEN - 87 * + - 20 - + 60 THEN NULL ELSE NULL END / - - ( + 41 ) * + 99 + MAX( ALL - 12 ) + + COUNT( * ) + + 70 * - + COUNT( * ) + 70 * - 92 - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + - 80 * 9 * - NULLIF ( - 58, + + 86 * 65 ) * - - 59 + - - 90 + - 5 / - - CASE + MIN ( DISTINCT + - 42 ) WHEN + NULLIF ( 64, + - 16 + ( 53 ) ) THEN - 28 - 7 WHEN + 38 * + 12 * + 45 + + 33 THEN NULL WHEN - 87 * + - 20 - + 60 THEN NULL ELSE NULL END / - - ( + 41 ) * + 99 + MAX ( ALL - 12 ) + + COUNT ( * ) + + 70 * - + COUNT ( * ) + 70 * - 92 - 86 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2479
SELECT - COUNT ( * ) * - 79 + - 90 AS col2
----
-11

query I rowsort
SELECT DISTINCT + 36 * + + 70 - - + 19 AS col0
----
2539

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

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

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL CAST ( NULL AS INTEGER ) * 72
----
NULL

query I rowsort
SELECT - 91 + - 11 * 60 AS col0
----
-751

query I rowsort
SELECT DISTINCT - 85 * 3 AS col0
----
-255

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

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

query I rowsort
SELECT NULLIF ( 62, - 34 ) * 44 * + 89 + + 46 AS col1
----
242838

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT NULLIF ( 43, + NULLIF ( MAX( DISTINCT + 17 ), 44 / 70 ) + - COUNT( * ) + + + 13 + AVG ( 13 ) * + 80 * 16 * + + 13 + + 0 ) AS col0, 52
----
43
52

skipif mysql # not compatible
query II rowsort label-2488
SELECT NULLIF ( 43, + NULLIF ( MAX ( DISTINCT + 17 ), 44 / 70 ) + - COUNT ( * ) + + + 13 + AVG ( 13 ) * + 80 * 16 * + + 13 + + 0 ) AS col0, 52
----
43
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT + 97 DIV 11
----
8

skipif mysql # not compatible
query I rowsort label-2489
SELECT + 97 / 11
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2490
SELECT + CASE 42 WHEN + 3 THEN + 6 ELSE NULL END + - + 38 AS col1, + COUNT( * ) - + - COUNT( 36 )
----
NULL
2

skipif mysql # not compatible
query II rowsort label-2490
SELECT + CASE 42 WHEN + 3 THEN + 6 ELSE NULL END + - + 38 AS col1, + COUNT ( * ) - + - COUNT ( 36 )
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT SUM( DISTINCT + + NULLIF ( 68, - 32 + - 42 + 96 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-2491
SELECT SUM ( DISTINCT + + NULLIF ( 68, - 32 + - 42 + 96 ) ) AS col1
----
68

query I rowsort
SELECT + 32 * + 39
----
1248

query I rowsort
SELECT - 44 * + 74 AS col0
----
-3256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2494
SELECT + 61 DIV + SUM( 26 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2494
SELECT + 61 / + SUM ( 26 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT SUM( ALL - ( 22 ) ) AS col0, 50
----
-22
50

skipif mysql # not compatible
query II rowsort label-2495
SELECT SUM ( ALL - ( 22 ) ) AS col0, 50
----
-22
50

query I rowsort
SELECT ALL 8 + + 54 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT MAX( ALL 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2497
SELECT MAX ( ALL 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - MIN( DISTINCT + - 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2498
SELECT - MIN ( DISTINCT + - 18 ) AS col1
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT - MIN( - 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-2500
SELECT - MIN ( - 71 ) AS col2
----
71

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

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

query I rowsort
SELECT DISTINCT 13 + - + 61 AS col1
----
-48

query I rowsort
SELECT ALL 72 + + + 52 AS col2
----
124

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2504
SELECT - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + ( 88 ) - + 92 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL 65 * - + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL 65 * - + COUNT ( * )
----
-65

query II rowsort
SELECT 68, 15 + - 93 AS col2
----
68
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT 77 + - - 10 + + 94 * - 18 + - CAST( - 31 AS SIGNED ) AS col0
----
-1574

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT 77 + - - 10 + + 94 * - 18 + - CAST ( - 31 AS INTEGER ) AS col0
----
-1574

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2510
SELECT + - 35 * - 61 + - COUNT( * ) AS col2, 12 + + 18
----
2134
30

skipif mysql # not compatible
query II rowsort label-2510
SELECT + - 35 * - 61 + - COUNT ( * ) AS col2, 12 + + 18
----
2134
30

query I rowsort
SELECT ALL 7 * + 44 + + - 64 * 20 AS col2
----
-972

query I rowsort
SELECT ALL + ( + + 85 ) - - - 83 AS col2
----
2

query II rowsort
SELECT DISTINCT - 90 AS col0, - 4 AS col0
----
-90
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + + COUNT( * ) + 61 + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2514
SELECT + + COUNT ( * ) + 61 + COUNT ( * ) AS col1
----
63

query I rowsort
SELECT ( - - 79 )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2516
SELECT ALL + 18 DIV 92 - + MAX( ALL - + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + 18 / 92 - + MAX ( ALL - + 91 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2517
SELECT DISTINCT MAX( DISTINCT - 76 ) DIV + 61 + + + 98
----
97

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT MAX ( DISTINCT - 76 ) / + 61 + + + 98
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2518
SELECT + - 28, - 1 * - COUNT( * ) AS col1
----
-28
1

skipif mysql # not compatible
query II rowsort label-2518
SELECT + - 28, - 1 * - COUNT ( * ) AS col1
----
-28
1

query I rowsort
SELECT + + 8 * 22 AS col0
----
176

query I rowsort
SELECT - - 2 * 41 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2521
SELECT NULLIF ( + - 38, 26 * - 4 - - 71 ), + ( - CASE - + 17 WHEN 26 - + + NULLIF ( - 54, + - 26 / + COUNT( + 52 ) + 23 * 23 + + + 72 * + + SUM( DISTINCT 80 ) + + - 96 + COUNT( * ) - + ( - - 19 ) / 1 * + + 20 + 43 + + + 55 + AVG ( + 73 ) * - + 96 ) THEN NULL WHEN - 96 THEN + ( 91 ) ELSE + CASE + - 49 WHEN - 74 * - 14 THEN + ( 43 ) * COUNT( * ) WHEN + 45 THEN + COUNT( * ) - + ( CAST( - 24 AS SIGNED ) ) ELSE 64 + ( COUNT( * ) ) END END ) AS col1
----
-38
-65

skipif mysql # not compatible
query II rowsort label-2521
SELECT NULLIF ( + - 38, 26 * - 4 - - 71 ), + ( - CASE - + 17 WHEN 26 - + + NULLIF ( - 54, + - 26 / + COUNT ( + 52 ) + 23 * 23 + + + 72 * + + SUM ( DISTINCT 80 ) + + - 96 + COUNT ( * ) - + ( - - 19 ) / 1 * + + 20 + 43 + + + 55 + AVG ( + 73 ) * - + 96 ) THEN NULL WHEN - 96 THEN + ( 91 ) ELSE + CASE + - 49 WHEN - 74 * - 14 THEN + ( 43 ) * COUNT ( * ) WHEN + 45 THEN + COUNT ( * ) - + ( CAST ( - 24 AS INTEGER ) ) ELSE 64 + ( COUNT ( * ) ) END END ) AS col1
----
-38
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2522
SELECT ALL 9 DIV + 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL 9 / + 96 col1
----
0

query I rowsort
SELECT 67 * - - 42
----
2814

onlyif mysql # DIV for integer division: 
query II rowsort label-2524
SELECT + 64 AS col0, 80 DIV 33 AS col0
----
64
2

skipif mysql # not compatible
query II rowsort label-2524
SELECT + 64 AS col0, 80 / 33 AS col0
----
64
2

query I rowsort
SELECT - 24 * - 32 + 5
----
773

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

skipif mysql # not compatible
query I rowsort label-2526
SELECT COUNT ( * ) / 42 AS col0
----
0

query I rowsort
SELECT 56 * - - NULLIF ( + 45, 31 ) AS col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT - COUNT( ALL - + 18 ) * COUNT( * ) * + 55 - + - 1
----
-54

skipif mysql # not compatible
query I rowsort label-2528
SELECT - COUNT ( ALL - + 18 ) * COUNT ( * ) * + 55 - + - 1
----
-54

query II rowsort
SELECT + 11 AS col0, ( 49 ) AS col1
----
11
49

query II rowsort
SELECT 46 AS col2, 27 * 9 col0
----
46
243

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT ALL + 49 + 50 DIV 38 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL + 49 + 50 / 38 AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2532
SELECT 46 + SUM( DISTINCT - 90 ) + 32 col1, - 71 AS col2
----
-12
-71

skipif mysql # not compatible
query II rowsort label-2532
SELECT 46 + SUM ( DISTINCT - 90 ) + 32 col1, - 71 AS col2
----
-12
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL + MAX( ALL - 10 ) + - - 15 * 10 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL + MAX ( ALL - 10 ) + - - 15 * 10 AS col1
----
140

query I rowsort
SELECT 55 * - 48 AS col1
----
-2640

query II rowsort
SELECT ALL - 76 + 4 col0, CASE + 91 WHEN - 64 THEN - 4 END * COALESCE ( - 56, 67, + 94 + - 53 )
----
-72
NULL

query II rowsort
SELECT + 74 col0, 94
----
74
94

query I rowsort
SELECT ALL + 49 + + + 62 * - 16
----
-943

query I rowsort
SELECT + 59 * - 57 - - + 92
----
-3271

query I rowsort
SELECT 45 + - 47 + - 98 + 39 * 69 * 23 + + 57
----
61850

query I rowsort
SELECT 81 - + - 10 AS col0
----
91

query I rowsort
SELECT ALL - 77 * + 44
----
-3388

query I rowsort
SELECT ALL + 14 + 63
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT COUNT( * ) * - 45 + + + 34
----
-11

skipif mysql # not compatible
query I rowsort label-2543
SELECT COUNT ( * ) * - 45 + + + 34
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT COUNT( * ) * + + ( - + 54 ) * 27 col0
----
-1458

skipif mysql # not compatible
query I rowsort label-2544
SELECT COUNT ( * ) * + + ( - + 54 ) * 27 col0
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT MAX( ALL 1 ) + - 81 * + - 77 - 82
----
6156

skipif mysql # not compatible
query I rowsort label-2545
SELECT MAX ( ALL 1 ) + - 81 * + - 77 - 82
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT ALL + 14 + + COUNT( ALL 84 )
----
15

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + 14 + + COUNT ( ALL 84 )
----
15

query I rowsort
SELECT 90 + - 15
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT ALL 51 - + 68 * - + 53 + + CAST( - + 69 AS SIGNED ) AS col0
----
3586

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL 51 - + 68 * - + 53 + + CAST ( - + 69 AS INTEGER ) AS col0
----
3586

onlyif mysql # aggregate syntax: 
query II rowsort label-2549
SELECT + 21 * 89 col2, 19 * 82 / - - CASE + 50 WHEN - 73 THEN NULL WHEN - MAX( + - 2 ) THEN + - 91 END - + 28 AS col1
----
1869
NULL

skipif mysql # not compatible
query II rowsort label-2549
SELECT + 21 * 89 col2, 19 * 82 / - - CASE + 50 WHEN - 73 THEN NULL WHEN - MAX ( + - 2 ) THEN + - 91 END - + 28 AS col1
----
1869
NULL

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

query II rowsort
SELECT ALL + 99 col1, 66 AS col1
----
99
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT 74 + - 87 * - MAX( 5 ) AS col2
----
509

skipif mysql # not compatible
query I rowsort label-2552
SELECT 74 + - 87 * - MAX ( 5 ) AS col2
----
509

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + COALESCE ( - 42, 22 + + - COUNT( + 95 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-2553
SELECT + COALESCE ( - 42, 22 + + - COUNT ( + 95 ) )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT ALL - 92 DIV + + 58 + - 6 col1
----
-7

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - 92 / + + 58 + - 6 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT + 88 * + COUNT( - 39 )
----
88

skipif mysql # not compatible
query I rowsort label-2555
SELECT + 88 * + COUNT ( - 39 )
----
88

query I rowsort
SELECT 64 * + - 7
----
-448

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2558
SELECT ALL + 17 - + 79 + 32 DIV - 17 - COALESCE ( + 38, + 46 * - - 57 * 25 ) + + + 1 + - 76 * - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL + 17 - + 79 + 32 / - 17 - COALESCE ( + 38, + 46 * - - 57 * 25 ) + + + 1 + - 76 * - COUNT ( * )
----
-24

query I rowsort
SELECT 66 * - 17 AS col0
----
-1122

query I rowsort
SELECT 97 + - 55 col1
----
42

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

skipif mysql # not compatible
query I rowsort label-2561
SELECT COUNT ( * ) + - + 50 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL - SUM( + + COALESCE ( + + CASE + 66 WHEN - 14 THEN + 50 WHEN - 25 + 19 THEN - 17 END, 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL - SUM ( + + COALESCE ( + + CASE + 66 WHEN - 14 THEN + 50 WHEN - 25 + 19 THEN - 17 END, 31 ) )
----
-31

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2564
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col2, 92
----
NULL
92

skipif mysql # not compatible
query II rowsort label-2564
SELECT ALL - + CAST ( NULL AS REAL ) AS col2, 92
----
NULL
92

query I rowsort
SELECT 66 - - ( 53 ) - + ( - 21 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT + COUNT( * ) * + + 10 - - 11 + + 94 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-2566
SELECT + COUNT ( * ) * + + 10 - - 11 + + 94 AS col0
----
115

query I rowsort
SELECT - ( + + 67 ) * + 68 + + - 20
----
-4576

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2569
SELECT + + 27 DIV + 31 * - - COUNT( * ) + + 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2569
SELECT + + 27 / + 31 * - - COUNT ( * ) + + 98 AS col1
----
98

query I rowsort
SELECT 45 + - - 5 AS col0
----
50

query I rowsort
SELECT 4 * - 23 AS col2
----
-92

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

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

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

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL - 17 + + - COUNT ( * ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL COALESCE ( COUNT( * ), - + COUNT( * ) * + COUNT( * ) ) / CASE - + 37 WHEN + COUNT( * ) THEN NULL WHEN - 46 THEN - 19 * + 92 / - 30 * - 5 + + 1 ELSE NULL END + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL COALESCE ( COUNT ( * ), - + COUNT ( * ) * + COUNT ( * ) ) / CASE - + 37 WHEN + COUNT ( * ) THEN NULL WHEN - 46 THEN - 19 * + 92 / - 30 * - 5 + + 1 ELSE NULL END + 31 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 68 + - 56 AS col2
----
12

query I rowsort
SELECT ALL + 45 + - 13 + + 26
----
58

query I rowsort
SELECT DISTINCT 61 + + - 39 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT ( - + 60 ) DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2578
SELECT ( - + 60 ) / + 79 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT + CAST( CAST( 4 AS SIGNED ) AS SIGNED ) * - - 6 + + - 7 * + CASE 56 WHEN - CASE - - 33 WHEN - 29 THEN - - ( - 31 ) * - - 30 + 76 * - 30 ELSE NULL END * - COUNT( * ) + - 1 THEN NULLIF ( + + CAST( SUM( ALL - 71 ) AS SIGNED ), - MAX( - 95 ) ) WHEN - - MAX( 9 ) * - + COUNT( * ) * - 96 + + 80 THEN + 8 * + 36 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT + CAST ( CAST ( 4 AS INTEGER ) AS INTEGER ) * - - 6 + + - 7 * + CASE 56 WHEN - CASE - - 33 WHEN - 29 THEN - - ( - 31 ) * - - 30 + 76 * - 30 ELSE NULL END * - COUNT ( * ) + - 1 THEN NULLIF ( + + CAST ( SUM ( ALL - 71 ) AS INTEGER ), - MAX ( - 95 ) ) WHEN - - MAX ( 9 ) * - + COUNT ( * ) * - 96 + + 80 THEN + 8 * + 36 END + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 45 + + 5
----
50

query I rowsort
SELECT ( - + 34 ) * - 45 AS col1
----
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2582
SELECT ( + 79 ) * + + 33 * + CAST( NULL AS SIGNED ) + + COUNT( ALL + + 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT ( + 79 ) * + + 33 * + CAST ( NULL AS INTEGER ) + + COUNT ( ALL + + 38 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT 0 + SUM( 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2583
SELECT 0 + SUM ( 84 ) AS col0
----
84

query I rowsort
SELECT ALL + 18 + 18 AS col2
----
36

query I rowsort
SELECT 80 * + 21 AS col2
----
1680

query I rowsort
SELECT ALL + 82 - - 0 * ( + 76 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2587
SELECT DISTINCT - 1 - + SUM( ALL CAST( NULL AS DECIMAL ) ) + + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - 1 - + SUM ( ALL CAST ( NULL AS REAL ) ) + + - 88 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT - 99 - - 67 + + CAST( 55 AS SIGNED ) - + 55 + - 10 - ( - + 51 ) + - NULLIF ( + SUM( + 23 ), 87 ) * - 12 * - MAX( + 8 ) + COUNT( * ) AS col2
----
-2198

skipif mysql # not compatible
query I rowsort label-2588
SELECT - 99 - - 67 + + CAST ( 55 AS INTEGER ) - + 55 + - 10 - ( - + 51 ) + - NULLIF ( + SUM ( + 23 ), 87 ) * - 12 * - MAX ( + 8 ) + COUNT ( * ) AS col2
----
-2198

query I rowsort
SELECT - 12 - + 20 + + + 12 * - 11 AS col2
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT - + 75 * - 18 * - NULLIF ( + - ( - COUNT( * ) ), - 90 )
----
-1350

skipif mysql # not compatible
query I rowsort label-2590
SELECT - + 75 * - 18 * - NULLIF ( + - ( - COUNT ( * ) ), - 90 )
----
-1350

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL ( - 82 ) + + COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL ( - 82 ) + + COUNT ( * ) AS col2
----
-81

query I rowsort
SELECT + - ( 39 ) - + + 85 + - - 17 * + 82 AS col1
----
1270

query I rowsort
SELECT + 71 * 36 + + + ( + 32 )
----
2588

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT + 85 DIV + 6
----
14

skipif mysql # not compatible
query I rowsort label-2594
SELECT + 85 / + 6
----
14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT DISTINCT CASE - SUM( - 81 ) WHEN CAST( 18 AS SIGNED ) THEN + CAST( - COALESCE ( + COUNT( ALL + 12 ), - 13 + - 36 + - COUNT( * ) * - COUNT( * ) ) AS SIGNED ) WHEN + 29 THEN NULL ELSE NULL END * - - 94 + - - 85 * + + 99 + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT CASE - SUM ( - 81 ) WHEN CAST ( 18 AS INTEGER ) THEN + CAST ( - COALESCE ( + COUNT ( ALL + 12 ), - 13 + - 36 + - COUNT ( * ) * - COUNT ( * ) ) AS INTEGER ) WHEN + 29 THEN NULL ELSE NULL END * - - 94 + - - 85 * + + 99 + - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT + NULLIF ( + COUNT( * ), - - 67 * 23 * + 10 ) * + 86 DIV COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2597
SELECT + NULLIF ( + COUNT ( * ), - - 67 * 23 * + 10 ) * + 86 / COUNT ( * ) AS col2
----
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT CASE WHEN NULL IS NULL THEN CAST( - COUNT( * ) AS SIGNED ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2599
SELECT CASE WHEN NULL IS NULL THEN CAST ( - COUNT ( * ) AS INTEGER ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT + CAST( + CASE COUNT( * ) WHEN + 36 THEN + - 19 WHEN - COALESCE ( - 44, + 43 / - COUNT( * ) ) THEN - COUNT( * ) + - 24 END AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT + CAST ( + CASE COUNT ( * ) WHEN + 36 THEN + - 19 WHEN - COALESCE ( - 44, + 43 / - COUNT ( * ) ) THEN - COUNT ( * ) + - 24 END AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT + 55 - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-2601
SELECT + 55 - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL NULLIF ( + - 97, - - 87 ) * - - NULLIF ( + + 42, ( - COUNT( * ) ) ) AS col0
----
-4074

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL NULLIF ( + - 97, - - 87 ) * - - NULLIF ( + + 42, ( - COUNT ( * ) ) ) AS col0
----
-4074

query I rowsort
SELECT DISTINCT + CASE WHEN NULL IS NULL THEN - 79 END
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-2604
SELECT DISTINCT + 38, 2 + 14 + + + 37 + - SUM( + 82 ) AS col2
----
38
-29

skipif mysql # not compatible
query II rowsort label-2604
SELECT DISTINCT + 38, 2 + 14 + + + 37 + - SUM ( + 82 ) AS col2
----
38
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL COUNT( * ) * - 81 * - 10
----
810

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL COUNT ( * ) * - 81 * - 10
----
810

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2607
SELECT + MAX( - CAST( NULL AS DECIMAL ) ) + 74 / + COUNT( * ) - 2 + + COUNT( * ) + 18 + + 67 + + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT + MAX ( - CAST ( NULL AS REAL ) ) + 74 / + COUNT ( * ) - 2 + + COUNT ( * ) + 18 + + 67 + + + 99 AS col0
----
NULL

query I rowsort
SELECT - 77 - 57
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT + ( + 81 ) * + + MAX( - 10 ) AS col0
----
-810

skipif mysql # not compatible
query I rowsort label-2609
SELECT + ( + 81 ) * + + MAX ( - 10 ) AS col0
----
-810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT - 30 + CAST( - COALESCE ( - + ( 63 ), 4 ) AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-2610
SELECT - 30 + CAST ( - COALESCE ( - + ( 63 ), 4 ) AS INTEGER )
----
33

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT - - 65 DIV - + 14 - + 1 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2612
SELECT - - 65 / - + 14 - + 1 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL COUNT( DISTINCT - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL COUNT ( DISTINCT - 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT + MIN( ALL 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT + MIN ( ALL 49 ) AS col1
----
49

query I rowsort
SELECT - + 46 + - + 67
----
-113

query I rowsort
SELECT ALL - ( - - 75 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2617
SELECT + 72 + - MIN( DISTINCT 65 ) - + 56 + + 80 DIV - 75
----
-50

skipif mysql # not compatible
query I rowsort label-2617
SELECT + 72 + - MIN ( DISTINCT 65 ) - + 56 + + 80 / - 75
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT - MIN( 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-2618
SELECT - MIN ( 3 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2619
SELECT - + COUNT( ALL + ( CAST( NULL AS SIGNED ) ) ) AS col1
----
0

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

query I rowsort
SELECT - - 77 + + ( - 12 ) + + 69
----
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2621
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) + 69 * - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 69 * - - 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2622
SELECT DISTINCT - 3 AS col2, 2 * - - COUNT( + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) + + COUNT( * ) AS col2
----
-3
1

skipif mysql # not compatible
query II rowsort label-2622
SELECT DISTINCT - 3 AS col2, 2 * - - COUNT ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + COUNT ( * ) AS col2
----
-3
1

query I rowsort
SELECT - - 28 + 23 col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2624
SELECT ALL - 25 DIV COUNT( * ) + + + 8 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - 25 / COUNT ( * ) + + + 8 AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT ALL 29 DIV + - NULLIF ( - 12, + 18 - - COUNT( * ) ) + + - 27 + + - 87
----
-112

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL 29 / + - NULLIF ( - 12, + 18 - - COUNT ( * ) ) + + - 27 + + - 87
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-2626
SELECT 81 * 98 + - 0 - COUNT( * ) col2, 97 + + COUNT( * ) AS col1
----
7937
98

skipif mysql # not compatible
query II rowsort label-2626
SELECT 81 * 98 + - 0 - COUNT ( * ) col2, 97 + + COUNT ( * ) AS col1
----
7937
98

query I rowsort
SELECT ALL + COALESCE ( - 22, + - 87 * - + 62 * - 31 + - 43, - 56 + + 90 ) col2
----
-22

query I rowsort
SELECT + 47 * + 18 + + - 35 AS col1
----
811

onlyif mysql # aggregate syntax: 
query II rowsort label-2629
SELECT + 67 + + + 41 - + - SUM( + + 41 ) AS col0, 71 + - 18 * - 57 * - 86 + + 87
----
149
-88078

skipif mysql # not compatible
query II rowsort label-2629
SELECT + 67 + + + 41 - + - SUM ( + + 41 ) AS col0, 71 + - 18 * - 57 * - 86 + + 87
----
149
-88078

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT ALL - 18 * - COALESCE ( 55, - - COUNT( * ), 18 * + + 59 ) AS col2
----
990

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - 18 * - COALESCE ( 55, - - COUNT ( * ), 18 * + + 59 ) AS col2
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + SUM( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-2631
SELECT + SUM ( 96 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT CAST( + 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-2632
SELECT CAST ( + 23 AS INTEGER )
----
23

query I rowsort
SELECT + 84 * - - 43 + + + 85 * - ( + 65 ) + - + 17 + 86 AS col0
----
-1844

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT + 61 - 4 DIV + - 9 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2634
SELECT + 61 - 4 / + - 9 AS col1
----
61

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

query I rowsort
SELECT ALL + 55 * + 17
----
935

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

skipif mysql # not compatible
query I rowsort label-2637
SELECT + ( COUNT ( ALL - 63 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT + 1 + + COUNT( * ) - + ( + - 25 )
----
27

skipif mysql # not compatible
query I rowsort label-2638
SELECT + 1 + + COUNT ( * ) - + ( + - 25 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2639
SELECT - CAST( - 81 AS SIGNED ) * - 34
----
-2754

skipif mysql # not compatible
query I rowsort label-2639
SELECT - CAST ( - 81 AS INTEGER ) * - 34
----
-2754

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT CASE - COUNT( * ) WHEN 34 * + 40 * - + 69 THEN + 56 * - NULLIF ( - + 20, 87 ) * + + NULLIF ( + 87, - CASE + 37 WHEN CASE - 14 WHEN - 90 / + 48 THEN - AVG ( DISTINCT + 29 ) * - - 10 * - CASE - 26 WHEN + - COUNT( * ) + - - 46 THEN - 40 + + 98 + - 51 ELSE + COUNT( * ) END END THEN NULL WHEN COALESCE ( + - 77, - 77 ) * 19 + 34 THEN + 68 + + 4 END * 32 - - ( - + 63 ) + + COUNT( * ) * MIN( 21 ) * 55 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT CASE - COUNT ( * ) WHEN 34 * + 40 * - + 69 THEN + 56 * - NULLIF ( - + 20, 87 ) * + + NULLIF ( + 87, - CASE + 37 WHEN CASE - 14 WHEN - 90 / + 48 THEN - AVG ( DISTINCT + 29 ) * - - 10 * - CASE - 26 WHEN + - COUNT ( * ) + - - 46 THEN - 40 + + 98 + - 51 ELSE + COUNT ( * ) END END THEN NULL WHEN COALESCE ( + - 77, - 77 ) * 19 + 34 THEN + 68 + + 4 END * 32 - - ( - + 63 ) + + COUNT ( * ) * MIN ( 21 ) * 55 ) END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT ALL 7 * CAST( - - ( - 97 ) AS SIGNED ) * + 68
----
-46172

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL 7 * CAST ( - - ( - 97 ) AS INTEGER ) * + 68
----
-46172

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT ( + 52 ) + - COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT ( + 52 ) + - COUNT ( * ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT - 80 * MIN( DISTINCT + + 30 )
----
-2400

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT - 80 * MIN ( DISTINCT + + 30 )
----
-2400

query II rowsort
SELECT 10 * + 70, CASE 92 WHEN + 36 THEN - + 82 WHEN - + 90 THEN NULL ELSE - 79 END AS col1
----
700
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT ALL 64 + + COUNT( * ) * + - COUNT( * ) * - - 46 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL 64 + + COUNT ( * ) * + - COUNT ( * ) * - - 46 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT - SUM( + 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - SUM ( + 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT DISTINCT - - 53 + - 10 + + + MAX( DISTINCT + + 20 ) * - + 14 AS col1
----
-237

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT - - 53 + - 10 + + + MAX ( DISTINCT + + 20 ) * - + 14 AS col1
----
-237

query I rowsort
SELECT NULLIF ( - 99, + 12 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2650
SELECT + 56 * + + 13 * 19 * + 77 * + CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT + 56 * + + 13 * 19 * + 77 * + CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2651
SELECT COUNT( * ) + + + 58 AS col2, + 39 + 68 + + + 53 - - + 34
----
59
194

skipif mysql # not compatible
query II rowsort label-2651
SELECT COUNT ( * ) + + + 58 AS col2, + 39 + 68 + + + 53 - - + 34
----
59
194

query I rowsort
SELECT - 31 * + 86 + + 6
----
-2660

query I rowsort
SELECT - - COALESCE ( + - 23, + 54 ) AS col2
----
-23

query I rowsort
SELECT ALL + 87 + - 33
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2655
SELECT MAX( DISTINCT - 11 ) AS col0, 83 + - 93 - - + COUNT( * ) + - MIN( ALL - + 56 ) + + 67 * - 99 + - COUNT( * ) DIV - 58 AS col2
----
-11
-6586

skipif mysql # not compatible
query II rowsort label-2655
SELECT MAX ( DISTINCT - 11 ) AS col0, 83 + - 93 - - + COUNT ( * ) + - MIN ( ALL - + 56 ) + + 67 * - 99 + - COUNT ( * ) / - 58 AS col2
----
-11
-6586

query II rowsort
SELECT 97 * - 45, + ( - 45 ) AS col1
----
-4365
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2657
SELECT + 97 - 32 + - ( + 67 ) + COUNT( * ) * - 63 - 55 + - CASE ( - MIN( DISTINCT + 90 ) ) WHEN 39 THEN NULL WHEN + 36 THEN 49 ELSE NULL END + 44 * - - CASE WHEN NOT NULL IS NOT NULL THEN 48 WHEN NOT ( NULL ) BETWEEN + 92 AND + ( COUNT( * ) ) + + CAST( NULL AS SIGNED ) THEN NULL END + + 6 + + NULLIF ( + 96, + COALESCE ( 97, + + 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT + 97 - 32 + - ( + 67 ) + COUNT ( * ) * - 63 - 55 + - CASE ( - MIN ( DISTINCT + 90 ) ) WHEN 39 THEN NULL WHEN + 36 THEN 49 ELSE NULL END + 44 * - - CASE WHEN NOT NULL IS NOT NULL THEN 48 WHEN NOT ( NULL ) BETWEEN + 92 AND + ( COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) THEN NULL END + + 6 + + NULLIF ( + 96, + COALESCE ( 97, + + 54 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2658
SELECT ALL - 37 DIV + - ( - 56 ) * - + 76 * - + 14 + + CAST( - 94 AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - 37 / + - ( - 56 ) * - + 76 * - + 14 + + CAST ( - 94 AS INTEGER ) AS col0
----
-94

query I rowsort
SELECT ALL 76 + - 61 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2660
SELECT DISTINCT - CASE - - 52 WHEN - 60 * - CASE 54 WHEN - 85 THEN - + 60 WHEN - 41 * + - 94 THEN NULL ELSE NULL END + - 47 * + - 5 - - ( - 27 ) + - 51 + 37 / 58 * COUNT( DISTINCT - 0 ) THEN NULL WHEN + 60 * + CAST( NULL AS SIGNED ) THEN - 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT - CASE - - 52 WHEN - 60 * - CASE 54 WHEN - 85 THEN - + 60 WHEN - 41 * + - 94 THEN NULL ELSE NULL END + - 47 * + - 5 - - ( - 27 ) + - 51 + 37 / 58 * COUNT ( DISTINCT - 0 ) THEN NULL WHEN + 60 * + CAST ( NULL AS INTEGER ) THEN - 54 END
----
NULL

query II rowsort
SELECT ALL + + 73 + 23, + 36 AS col0
----
96
36

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

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

query I rowsort
SELECT ALL NULLIF ( + 97, + + 69 ) AS col0
----
97

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

skipif mysql # not compatible
query I rowsort label-2664
SELECT 39 + COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT 75 * + MAX( DISTINCT - 69 ) * 51
----
-263925

skipif mysql # not compatible
query I rowsort label-2665
SELECT 75 * + MAX ( DISTINCT - 69 ) * 51
----
-263925

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT 23, ( + + MAX( + + 50 ) ) * - 87 * + + 12 + - - 11 AS col2
----
23
-52189

skipif mysql # not compatible
query II rowsort label-2666
SELECT 23, ( + + MAX ( + + 50 ) ) * - 87 * + + 12 + - - 11 AS col2
----
23
-52189

query I rowsort
SELECT 84 - 82 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT 65 * 21 * + COUNT( ALL 88 )
----
1365

skipif mysql # not compatible
query I rowsort label-2668
SELECT 65 * 21 * + COUNT ( ALL 88 )
----
1365

query I rowsort
SELECT 0 * - 10 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2670
SELECT + 80 * - 78 + - COUNT( * ) + - MAX( - 94 ), 47 col2
----
-6147
47

skipif mysql # not compatible
query II rowsort label-2670
SELECT + 80 * - 78 + - COUNT ( * ) + - MAX ( - 94 ), 47 col2
----
-6147
47

query I rowsort
SELECT DISTINCT - 41 * + - 30 AS col0
----
1230

query I rowsort
SELECT 90 * 98 AS col0
----
8820

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT - COALESCE ( 57, - 77, - COUNT( * ) * + COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - COALESCE ( 57, - 77, - COUNT ( * ) * + COUNT ( * ) )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT 9 DIV - + 37 * 45
----
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT 9 / - + 37 * 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ( 15 ) * + - MIN( DISTINCT + + ( + 67 ) ) + - - COUNT( * ) AS col1
----
-1004

skipif mysql # not compatible
query I rowsort label-2675
SELECT ( 15 ) * + - MIN ( DISTINCT + + ( + 67 ) ) + - - COUNT ( * ) AS col1
----
-1004

query II rowsort
SELECT + 39 AS col2, - 12 AS col2
----
39
-12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2678
SELECT COUNT( * ) DIV ( + 13 ) * - COUNT( + + 51 ) + 41 + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2678
SELECT COUNT ( * ) / ( + 13 ) * - COUNT ( + + 51 ) + 41 + COUNT ( * ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT 5 + ( 39 ) + - - 47 + - - 79 DIV + 70 col0
----
92

skipif mysql # not compatible
query I rowsort label-2679
SELECT 5 + ( 39 ) + - - 47 + - - 79 / + 70 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL MIN( - - 57 ) * + 48 col2
----
2736

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL MIN ( - - 57 ) * + 48 col2
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - 65 + + - 33 * + - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2681
SELECT - 65 + + - 33 * + - COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL - 73 + 41 + - COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL - 73 + 41 + - COUNT ( * ) AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT - + 68 * - 97 + + 81 + - 19 DIV + - 66 col1
----
6677

skipif mysql # not compatible
query I rowsort label-2683
SELECT - + 68 * - 97 + + 81 + - 19 / + - 66 col1
----
6677

query I rowsort
SELECT + NULLIF ( - + 72, + 35 / + + 4 )
----
-72

query I rowsort
SELECT ALL - 18 + 53 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + ( AVG ( + 60 ) ) + + 80 - - CASE + - 27 WHEN + 46 THEN 60 + COUNT( * ) WHEN 39 * - - 59 * + - 56 + - 61 * + 99 * - 7 + + + 36 THEN NULL WHEN - 99 / + 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2686
SELECT + ( AVG ( + 60 ) ) + + 80 - - CASE + - 27 WHEN + 46 THEN 60 + COUNT ( * ) WHEN 39 * - - 59 * + - 56 + - 61 * + 99 * - 7 + + + 36 THEN NULL WHEN - 99 / + 67 THEN NULL END
----
NULL

query I rowsort
SELECT + 15 + - 21
----
-6

query II rowsort
SELECT ( + ( - 44 ) ) AS col0, - 62 col0
----
-44
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT + COUNT( * ) + 46 * 75
----
3451

skipif mysql # not compatible
query I rowsort label-2689
SELECT + COUNT ( * ) + 46 * 75
----
3451

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT 35 * + 61 * + - 23 * - CASE 20 WHEN - 67 THEN 73 + + MAX( + 36 ) ELSE + 80 END col2
----
3928400

skipif mysql # not compatible
query I rowsort label-2690
SELECT 35 * + 61 * + - 23 * - CASE 20 WHEN - 67 THEN 73 + + MAX ( + 36 ) ELSE + 80 END col2
----
3928400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2691
SELECT - 81 + - COUNT( * ) * - 15 DIV + NULLIF ( - COALESCE ( 75, 34 ), + 97 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2691
SELECT - 81 + - COUNT ( * ) * - 15 / + NULLIF ( - COALESCE ( 75, 34 ), + 97 ) AS col1
----
-81

query I rowsort
SELECT ALL ( + 4 ) + - 86 * 34
----
-2920

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + 31 * 70 + 38 * - COUNT( * )
----
2132

skipif mysql # not compatible
query I rowsort label-2693
SELECT + 31 * 70 + 38 * - COUNT ( * )
----
2132

query I rowsort
SELECT + 70 + 71 + - 72
----
69

query I rowsort
SELECT DISTINCT 97 * 20
----
1940

query II rowsort
SELECT 0, + 51 col0
----
0
51

query I rowsort
SELECT ALL 32 - + 28
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2698
SELECT MAX( ALL - ( + 7 ) ) / + + CAST( NULL AS SIGNED ) + - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT MAX ( ALL - ( + 7 ) ) / + + CAST ( NULL AS INTEGER ) + - 14 AS col2
----
NULL

query I rowsort
SELECT CASE + + 49 WHEN 41 THEN 32 END + - 97 * + - 7 AS col0
----
NULL

query I rowsort
SELECT 80 + + 82 AS col0
----
162

query I rowsort
SELECT ( - 19 ) + ( - + 14 ) AS col1
----
-33

query I rowsort
SELECT ALL - NULLIF ( - NULLIF ( + + 78, + COALESCE ( 19, - 69 + 16 ) ), + CASE - ( 3 ) WHEN 29 / + - NULLIF ( - 58, AVG ( + 12 ) + - 34 ) + - - 9 THEN - 62 WHEN 57 * 20 THEN NULL WHEN + 50 THEN NULL END * - - 57 + + 86 ) * 52 AS col2
----
4056

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT 0 * + 53 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT 0 * + 53 * + + COUNT ( * )
----
0

query I rowsort
SELECT 55 * + + 89 + 1 AS col2
----
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL - CASE - 15 WHEN + 14 - + - 31 THEN CASE - - 0 WHEN ( - 52 ) + 95 THEN - COUNT( * ) + + + 53 + - MAX( + + 29 ) * + 36 WHEN + 6 THEN NULL ELSE NULL END + - 99 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - CASE - 15 WHEN + 14 - + - 31 THEN CASE - - 0 WHEN ( - 52 ) + 95 THEN - COUNT ( * ) + + + 53 + - MAX ( + + 29 ) * + 36 WHEN + 6 THEN NULL ELSE NULL END + - 99 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT MIN( DISTINCT - 33 ) * + 66 + + 90
----
-2088

skipif mysql # not compatible
query I rowsort label-2706
SELECT MIN ( DISTINCT - 33 ) * + 66 + + 90
----
-2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2707
SELECT - 54 + - 57 + + + CASE + - 82 WHEN + + SUM( ALL 64 ) / - COUNT( DISTINCT + - 10 ) THEN + 43 ELSE + 12 + + CAST( NULL AS SIGNED ) END * + 14 * + CASE WHEN ( 94 ) IS NULL THEN NULL ELSE + - COUNT( * ) * - 61 + + - 63 + ( + 91 ) END AS col2, - 55
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-2707
SELECT - 54 + - 57 + + + CASE + - 82 WHEN + + SUM ( ALL 64 ) / - COUNT ( DISTINCT + - 10 ) THEN + 43 ELSE + 12 + + CAST ( NULL AS INTEGER ) END * + 14 * + CASE WHEN ( 94 ) IS NULL THEN NULL ELSE + - COUNT ( * ) * - 61 + + - 63 + ( + 91 ) END AS col2, - 55
----
NULL
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT 81 * 94 + 3 DIV - 95 AS col0
----
7614

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT 81 * 94 + 3 / - 95 AS col0
----
7614

query I rowsort
SELECT - 18 * 65 AS col2
----
-1170

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

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

query I rowsort
SELECT ALL - 0 * 63 * 10 + - 99 - + 57 AS col0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT ALL + 49 * - + 41 + + 93 + - 75 DIV - 40 + + 26
----
-1889

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + 49 * - + 41 + + 93 + - 75 / - 40 + + 26
----
-1889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT + - 47 * + 11 + + 99 + 46 - CAST( NULL AS SIGNED ) * 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT + - 47 * + 11 + + 99 + 46 - CAST ( NULL AS INTEGER ) * 45 AS col2
----
NULL

query II rowsort
SELECT - - 42 + 73 AS col0, 12 + + 14 + - + 43
----
115
-17

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

skipif mysql # not compatible
query I rowsort label-2715
SELECT MIN ( + 37 )
----
37

query I rowsort
SELECT + ( - - 48 ) * - 57 + - ( + - 33 ) + - 37 AS col1
----
-2740

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL + + 24 * 31 + - - COUNT( * )
----
745

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + + 24 * 31 + - - COUNT ( * )
----
745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT - 13 / - CAST( NULL AS SIGNED ) * - + 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT - 13 / - CAST ( NULL AS INTEGER ) * - + 19 AS col2
----
NULL

query I rowsort
SELECT + 22 * - 94 * + 20
----
-41360

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT DISTINCT - 79 - + ( + + MAX( + NULLIF ( + 36, 2 ) ) ) + - ( + MAX( - + 24 ) ) + + 97 * + 96, 63 * - - 30 AS col1
----
9221
1890

skipif mysql # not compatible
query II rowsort label-2720
SELECT DISTINCT - 79 - + ( + + MAX ( + NULLIF ( + 36, 2 ) ) ) + - ( + MAX ( - + 24 ) ) + + 97 * + 96, 63 * - - 30 AS col1
----
9221
1890

query I rowsort
SELECT ALL - 46 - + 58 + 5 * - + 17 AS col2
----
-189

query I rowsort
SELECT - - 40 * - 81
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL - 35 * COUNT( * ) * 93 + COALESCE ( + 45, - - 34, COUNT( * ) )
----
-3210

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - 35 * COUNT ( * ) * 93 + COALESCE ( + 45, - - 34, COUNT ( * ) )
----
-3210

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

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

query I rowsort
SELECT - 68 * - 24 * + + 14 * 15 + - 12 AS col2
----
342708

query I rowsort
SELECT - NULLIF ( + 93, - 87 )
----
-93

query II rowsort
SELECT + 91 + + + 0 AS col2, ( - 10 )
----
91
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT + 85 DIV + MIN( DISTINCT + - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-2728
SELECT + 85 / + MIN ( DISTINCT + - 70 )
----
-1

query I rowsort
SELECT ALL 90 * + 59 AS col1
----
5310

query I rowsort
SELECT ALL 84 + + + 76 AS col1
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-2731
SELECT ALL COUNT( * ) * - - 44 AS col2, - 8
----
44
-8

skipif mysql # not compatible
query II rowsort label-2731
SELECT ALL COUNT ( * ) * - - 44 AS col2, - 8
----
44
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT + ( - + 1 ) DIV + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2732
SELECT + ( - + 1 ) / + 20 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2733
SELECT + CAST( - - COUNT( * ) AS SIGNED ) * - COALESCE ( + 14, ( 47 ) * - 38 DIV 68 DIV 30 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2733
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) * - COALESCE ( + 14, ( 47 ) * - 38 / 68 / 30 ) AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2734
SELECT CAST( + 49 AS SIGNED ) AS col1, - 25 + COUNT( * ) AS col2
----
49
-24

skipif mysql # not compatible
query II rowsort label-2734
SELECT CAST ( + 49 AS INTEGER ) AS col1, - 25 + COUNT ( * ) AS col2
----
49
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT ALL - CASE - CASE + 31 WHEN + CAST( NULL AS SIGNED ) + + - 69 THEN NULL ELSE + - 22 END WHEN 4 THEN + + 40 + + - 72 + 2 WHEN + + COUNT( * ) / + 2 THEN 51 WHEN + + 81 THEN NULL ELSE NULL END / 71 + - 85 + + 24 * + MIN( ALL 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL - CASE - CASE + 31 WHEN + CAST ( NULL AS INTEGER ) + + - 69 THEN NULL ELSE + - 22 END WHEN 4 THEN + + 40 + + - 72 + 2 WHEN + + COUNT ( * ) / + 2 THEN 51 WHEN + + 81 THEN NULL ELSE NULL END / 71 + - 85 + + 24 * + MIN ( ALL 72 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2736
SELECT CAST( - - 86 AS SIGNED ) AS col2, + 73
----
86
73

skipif mysql # not compatible
query II rowsort label-2736
SELECT CAST ( - - 86 AS INTEGER ) AS col2, + 73
----
86
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2737
SELECT + 18 DIV + + COUNT( * ), 85 col2
----
18
85

skipif mysql # not compatible
query II rowsort label-2737
SELECT + 18 / + + COUNT ( * ), 85 col2
----
18
85

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT 25 * + 10 - - COUNT( * ) AS col2, - COALESCE ( 56, - 35, - 75 ) AS col1
----
251
-56

skipif mysql # not compatible
query II rowsort label-2739
SELECT 25 * + 10 - - COUNT ( * ) AS col2, - COALESCE ( 56, - 35, - 75 ) AS col1
----
251
-56

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

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

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

query I rowsort
SELECT + 71 * - 44 + ( + - 38 )
----
-3162

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2743
SELECT + - 36 + 62 * + + 3 + MIN( + - 35 ) * 43 * - 30 * - 4 * - 91 * - - 20, 60 DIV 33 DIV + 32 AS col0
----
328692150
0

skipif mysql # not compatible
query II rowsort label-2743
SELECT + - 36 + 62 * + + 3 + MIN ( + - 35 ) * 43 * - 30 * - 4 * - 91 * - - 20, 60 / 33 / + 32 AS col0
----
328692150
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT - + COUNT( - 95 ) + 53 + - ( + - 38 ) * + COALESCE ( + - 59, + 50 * + 29 + 25 ) - 7
----
-2197

skipif mysql # not compatible
query I rowsort label-2744
SELECT - + COUNT ( - 95 ) + 53 + - ( + - 38 ) * + COALESCE ( + - 59, + 50 * + 29 + 25 ) - 7
----
-2197

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT - 97 * + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT - 97 * + COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2746
SELECT + ( + 6 ) * 17 * - 80 * - 56 DIV - - 8 + - COUNT( * ) AS col2, + 29
----
57119
29

skipif mysql # not compatible
query II rowsort label-2746
SELECT + ( + 6 ) * 17 * - 80 * - 56 / - - 8 + - COUNT ( * ) AS col2, + 29
----
57119
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT - SUM( DISTINCT - - 61 ) * + COALESCE ( + - 16, 46 * - 47 )
----
976

skipif mysql # not compatible
query I rowsort label-2747
SELECT - SUM ( DISTINCT - - 61 ) * + COALESCE ( + - 16, 46 * - 47 )
----
976

query I rowsort
SELECT + 30 + - 44 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT - 99 + 25 DIV 86
----
-99

skipif mysql # not compatible
query I rowsort label-2749
SELECT - 99 + 25 / 86
----
-99

query I rowsort
SELECT - 13 + 33
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2751
SELECT ALL + + 99 DIV + + COUNT( * ) + + 21 * COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL + + 99 / + + COUNT ( * ) + + 21 * COUNT ( * )
----
120

query I rowsort
SELECT - 27 + + 95
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2753
SELECT - + CAST( + - 36 AS SIGNED ), CAST( + + CASE - 36 WHEN - 59 * - - 90 - + + 38 - + 86 - + 10 THEN NULL WHEN + 9 * - 29 / - - 58 THEN - 42 END AS SIGNED ) AS col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-2753
SELECT - + CAST ( + - 36 AS INTEGER ), CAST ( + + CASE - 36 WHEN - 59 * - - 90 - + + 38 - + 86 - + 10 THEN NULL WHEN + 9 * - 29 / - - 58 THEN - 42 END AS INTEGER ) AS col0
----
36
NULL

query II rowsort
SELECT - - 59 + + 24 + + + 80 AS col0, + 98 * 22 AS col1
----
163
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT ALL - 0 DIV - + 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL - 0 / - + 87 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT - 32 * COUNT( DISTINCT 44 ) * ( - 68 ) AS col1
----
2176

skipif mysql # not compatible
query I rowsort label-2756
SELECT - 32 * COUNT ( DISTINCT 44 ) * ( - 68 ) AS col1
----
2176

query I rowsort
SELECT ALL + 0 * + + 41 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2758
SELECT - 97 + - + 67 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT - 97 + - + 67 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2759
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, 70 * + + 99
----
NULL
6930

skipif mysql # not compatible
query II rowsort label-2759
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, 70 * + + 99
----
NULL
6930

query I rowsort
SELECT + 79 * 28 AS col2
----
2212

query I rowsort
SELECT 19 + 77
----
96

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

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

query II rowsort
SELECT DISTINCT 72 AS col0, 84 * - 73
----
72
-6132

query II rowsort
SELECT 96 + 1 * - 0 AS col0, - 65 * - 21 AS col0
----
96
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL COALESCE ( + MIN( ALL 2 ), + + 96 * + ( NULLIF ( 70, 32 ) ) + - 61 + + - 64 ) + - + 20 + - 27 + - 86
----
-131

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL COALESCE ( + MIN ( ALL 2 ), + + 96 * + ( NULLIF ( 70, 32 ) ) + - 61 + + - 64 ) + - + 20 + - 27 + - 86
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT COUNT( * ) + - 39 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-2766
SELECT COUNT ( * ) + - 39 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL + 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + 92 + + COUNT ( * )
----
93

query I rowsort
SELECT 15 + + 25
----
40

query I rowsort
SELECT DISTINCT 24 * + 63 AS col0
----
1512

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT COUNT( * ) * 32 + - SUM( ALL 46 ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-2771
SELECT COUNT ( * ) * 32 + - SUM ( ALL 46 ) AS col2
----
-14

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

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

query I rowsort
SELECT 54 + - 49 * + - 0 AS col1
----
54

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

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

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

query I rowsort
SELECT ALL 87 - - + 90 AS col2
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT + SUM( DISTINCT - 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2777
SELECT + SUM ( DISTINCT - 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT 79 * - 82 * - - 83 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT 79 * - 82 * - - 83 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT ALL 31 DIV 7
----
4

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL 31 / 7
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL - ( CASE - - 91 WHEN + + 10 * ( + COUNT( * ) ) THEN - 4 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL - ( CASE - - 91 WHEN + + 10 * ( + COUNT ( * ) ) THEN - 4 ELSE NULL END )
----
NULL

query I rowsort
SELECT + 23 * 65 AS col2
----
1495

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT DISTINCT COUNT( DISTINCT + 68 ) * - 32, + 24 AS col0
----
-32
24

skipif mysql # not compatible
query II rowsort label-2783
SELECT DISTINCT COUNT ( DISTINCT + 68 ) * - 32, + 24 AS col0
----
-32
24

query I rowsort
SELECT 79 * 40
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT + + COUNT( * ) * + 5 * + CASE - + 11 WHEN + - COUNT( * ) THEN NULL WHEN + 14 THEN COUNT( * ) ELSE NULL END / + ( + + 25 ) + + 72 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT + + COUNT ( * ) * + 5 * + CASE - + 11 WHEN + - COUNT ( * ) THEN NULL WHEN + 14 THEN COUNT ( * ) ELSE NULL END / + ( + + 25 ) + + 72 * - 66
----
NULL

query I rowsort
SELECT DISTINCT + 24 * 88 col0
----
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2787
SELECT 90 DIV + CASE 42 WHEN - - COUNT( * ) - - 19 * 70 DIV - NULLIF ( + 99, - CASE 44 WHEN + 97 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE + 56 * - + 27 END ) + - MAX( ALL + CAST( NULL AS SIGNED ) ) THEN + + MIN( DISTINCT + + 74 ) WHEN + ( 70 ) * - 17 + - 95 - + 97 * + 63 THEN NULL ELSE - + 24 END
----
-3

skipif mysql # not compatible
query I rowsort label-2787
SELECT 90 / + CASE 42 WHEN - - COUNT ( * ) - - 19 * 70 / - NULLIF ( + 99, - CASE 44 WHEN + 97 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 56 * - + 27 END ) + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) THEN + + MIN ( DISTINCT + + 74 ) WHEN + ( 70 ) * - 17 + - 95 - + 97 * + 63 THEN NULL ELSE - + 24 END
----
-3

query I rowsort
SELECT ALL 15 + + - 97 * 90 * ( + 67 ) AS col1
----
-584895

query I rowsort
SELECT ALL 74 + - 95 AS col1
----
-21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT 16 + - + 70 DIV + 44 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2791
SELECT 16 + - + 70 / + 44 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT 99 * + COUNT( ( - 54 ) )
----
99

skipif mysql # not compatible
query I rowsort label-2792
SELECT 99 * + COUNT ( ( - 54 ) )
----
99

query I rowsort
SELECT 9 - - - 26 - + 18 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2794
SELECT DISTINCT - SUM( + + 84 ) DIV - - 60 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT - SUM ( + + 84 ) / - - 60 AS col2
----
-1

query I rowsort
SELECT ALL + 97 + + 1 - - 69 * - 66 * - + 33
----
150380

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2796
SELECT DISTINCT + CASE - - ( + 52 ) WHEN + ( - - COUNT( - - 52 ) ) + + 63 THEN - 20 WHEN + 13 * - 76 - 23 + - CAST( ( + + MAX( ALL 48 ) ) AS DECIMAL ) THEN NULL END * - ( + 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT + CASE - - ( + 52 ) WHEN + ( - - COUNT ( - - 52 ) ) + + 63 THEN - 20 WHEN + 13 * - 76 - 23 + - CAST ( ( + + MAX ( ALL 48 ) ) AS REAL ) THEN NULL END * - ( + 81 ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2798
SELECT DISTINCT + CAST( - - 64 AS SIGNED ) - 80 * - 40 AS col0, 59 col0
----
3264
59

skipif mysql # not compatible
query II rowsort label-2798
SELECT DISTINCT + CAST ( - - 64 AS INTEGER ) - 80 * - 40 AS col0, 59 col0
----
3264
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2799
SELECT 69 DIV - 91 * CAST( - 54 AS SIGNED ) * COALESCE ( 30, - 20 * CASE - 86 WHEN - + CAST( NULL AS SIGNED ) THEN SUM( ALL - - 21 ) * + + 46 DIV - + COUNT( * ) * COUNT( * ) + + 36 END ) * - COUNT( ALL - 69 ) + 78 + 52 + 32 + + + 46 * - 91 * + 28 - + 42
----
-117088

skipif mysql # not compatible
query I rowsort label-2799
SELECT 69 / - 91 * CAST ( - 54 AS INTEGER ) * COALESCE ( 30, - 20 * CASE - 86 WHEN - + CAST ( NULL AS INTEGER ) THEN SUM ( ALL - - 21 ) * + + 46 / - + COUNT ( * ) * COUNT ( * ) + + 36 END ) * - COUNT ( ALL - 69 ) + 78 + 52 + 32 + + + 46 * - 91 * + 28 - + 42
----
-117088

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT ALL - - COUNT( ALL - 8 ), 8 AS col2
----
1
8

skipif mysql # not compatible
query II rowsort label-2800
SELECT ALL - - COUNT ( ALL - 8 ), 8 AS col2
----
1
8

query I rowsort
SELECT + 41 * 74 + 79 + - 18 AS col0
----
3095

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL - + 8 * - - CASE + COUNT( * ) WHEN + 83 * + COUNT( * ) THEN 75 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL - + 8 * - - CASE + COUNT ( * ) WHEN + 83 * + COUNT ( * ) THEN 75 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT + 7 DIV - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT + 7 / - 25 AS col0
----
0

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

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

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

query I rowsort
SELECT - 48 + 35
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2807
SELECT DISTINCT + - 3 + + - 46 DIV + 85 - 29 + 85 AS col1, + COUNT( * ) AS col2
----
53
1

skipif mysql # not compatible
query II rowsort label-2807
SELECT DISTINCT + - 3 + + - 46 / + 85 - 29 + 85 AS col1, + COUNT ( * ) AS col2
----
53
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT ALL COUNT( * ) + + COUNT( DISTINCT 92 )
----
2

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL COUNT ( * ) + + COUNT ( DISTINCT 92 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL 45 + + ( 11 ) * - - 45 * - COUNT( * )
----
-450

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL 45 + + ( 11 ) * - - 45 * - COUNT ( * )
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT DISTINCT 49 + + COUNT( * ) + + 52 AS col2
----
102

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT 49 + + COUNT ( * ) + + 52 AS col2
----
102

query I rowsort
SELECT 71 * + 84 AS col2
----
5964

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

query II rowsort
SELECT DISTINCT 16, 47 * 17 AS col2
----
16
799

query I rowsort
SELECT + 2 + - + 69 AS col1
----
-67

query I rowsort
SELECT ALL - 38 * + 75
----
-2850

query I rowsort
SELECT ALL 25 * + 47
----
1175

onlyif mysql # aggregate syntax: 
query II rowsort label-2817
SELECT DISTINCT COUNT( * ) AS col0, - COALESCE ( + CASE MAX( - + 66 ) WHEN 42 + 51 THEN - 62 * + - 85 * + + 82 END, - MIN( - - 75 ), 66 ) col2
----
1
75

skipif mysql # not compatible
query II rowsort label-2817
SELECT DISTINCT COUNT ( * ) AS col0, - COALESCE ( + CASE MAX ( - + 66 ) WHEN 42 + 51 THEN - 62 * + - 85 * + + 82 END, - MIN ( - - 75 ), 66 ) col2
----
1
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT - 72 * + + CASE 88 WHEN + 99 / - - 94 THEN + 41 + + - COALESCE ( 91, + - 28 + COALESCE ( - 24, - 53, + ( + CAST( - - ( - SUM( - ( - - 43 ) ) ) AS SIGNED ) ) ), - + 35 ) ELSE COALESCE ( + COUNT( * ), + 75, + 93 ) + + 50 END AS col2
----
-3672

skipif mysql # not compatible
query I rowsort label-2818
SELECT - 72 * + + CASE 88 WHEN + 99 / - - 94 THEN + 41 + + - COALESCE ( 91, + - 28 + COALESCE ( - 24, - 53, + ( + CAST ( - - ( - SUM ( - ( - - 43 ) ) ) AS INTEGER ) ) ), - + 35 ) ELSE COALESCE ( + COUNT ( * ), + 75, + 93 ) + + 50 END AS col2
----
-3672

query I rowsort
SELECT + 83 + - 18
----
65

query I rowsort
SELECT + 36 * - + 7
----
-252

query I rowsort
SELECT + 53 + + - 35 - + 52 col2
----
-34

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

skipif mysql # not compatible
query I rowsort label-2822
SELECT - ( + MIN ( 94 ) )
----
-94

query I rowsort
SELECT ALL + - 85 * 50
----
-4250

query I rowsort
SELECT - + 48 + - 55 * - 70 * + 0 * - COALESCE ( + + 6, - 67 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT + NULLIF ( + NULLIF ( - NULLIF ( - - 25, - - 11 * - 84 ), + COALESCE ( + CASE + COUNT( * ) WHEN 32 THEN NULL ELSE - CAST( NULL AS SIGNED ) + COUNT( * ) END, 79 * + + 3, - + 97 * + 31 * - 99 * 29, - + 23, + SUM( - 72 ) + - COUNT( * ) + + 80 / - + COALESCE ( + - 21, - 52, - NULLIF ( ( + + 42 ), + 0 * - + 25 + 20 ) ) - + 70 * + 38 * + - 77 + + 8 * - - 84 * - 51 / 26 * CASE - 62 WHEN - ( CAST( - 29 AS SIGNED ) ) THEN NULL ELSE - + COUNT( * ) END * 51 ) + 7 ), + ( 33 ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-2825
SELECT + NULLIF ( + NULLIF ( - NULLIF ( - - 25, - - 11 * - 84 ), + COALESCE ( + CASE + COUNT ( * ) WHEN 32 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + COUNT ( * ) END, 79 * + + 3, - + 97 * + 31 * - 99 * 29, - + 23, + SUM ( - 72 ) + - COUNT ( * ) + + 80 / - + COALESCE ( + - 21, - 52, - NULLIF ( ( + + 42 ), + 0 * - + 25 + 20 ) ) - + 70 * + 38 * + - 77 + + 8 * - - 84 * - 51 / 26 * CASE - 62 WHEN - ( CAST ( - 29 AS INTEGER ) ) THEN NULL ELSE - + COUNT ( * ) END * 51 ) + 7 ), + ( 33 ) ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-2826
SELECT ALL + COUNT( * ) AS col1, + 89
----
1
89

skipif mysql # not compatible
query II rowsort label-2826
SELECT ALL + COUNT ( * ) AS col1, + 89
----
1
89

query I rowsort
SELECT ALL - 18 * + 49
----
-882

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT 7 DIV + 35 + 40 - NULLIF ( + 28, - 78 * COALESCE ( - 22, + - 43 * + 84 ) ) + 47 + - 48 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-2828
SELECT 7 / + 35 + 40 - NULLIF ( + 28, - 78 * COALESCE ( - 22, + - 43 * + 84 ) ) + 47 + - 48 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT + CAST( - 85 AS SIGNED ) + + 57
----
-28

skipif mysql # not compatible
query I rowsort label-2829
SELECT + CAST ( - 85 AS INTEGER ) + + 57
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2830
SELECT ALL 93 * 17 + - 82 DIV 20 * - + 41 * 63 AS col1
----
11913

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL 93 * 17 + - 82 / 20 * - + 41 * 63 AS col1
----
11913

query I rowsort
SELECT DISTINCT + + 53 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2832
SELECT ALL ( - 96 ) * + 99 + 2 * - - CAST( - 25 AS SIGNED ) * + + 34 / + 73 + - 54 + + CASE + ( + + 36 ) WHEN SUM( + 5 ) THEN - - 41 END * - - 13 * + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL ( - 96 ) * + 99 + 2 * - - CAST ( - 25 AS INTEGER ) * + + 34 / + 73 + - 54 + + CASE + ( + + 36 ) WHEN SUM ( + 5 ) THEN - - 41 END * - - 13 * + 30 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT - + 97 DIV 68 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2833
SELECT - + 97 / 68 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT ALL - COUNT( - 51 ) DIV + 5 * - 36 - COUNT( * ) + + MAX( DISTINCT + + 26 )
----
25

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL - COUNT ( - 51 ) / + 5 * - 36 - COUNT ( * ) + + MAX ( DISTINCT + + 26 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2835
SELECT + 98 col0, 13 + + CASE + 77 WHEN + 67 THEN 64 END - - CAST( NULL AS SIGNED ) + - - COUNT( * ) * + - 72 * + COALESCE ( - 33, + 29 * ( + 99 ) + + CAST( 97 AS SIGNED ), + - MIN( + - 92 ) * + - 39 * - 99 + - 2 / - 88 * - 1 / 74 * + 34 ) + + - COUNT( * ) AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-2835
SELECT + 98 col0, 13 + + CASE + 77 WHEN + 67 THEN 64 END - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) * + - 72 * + COALESCE ( - 33, + 29 * ( + 99 ) + + CAST ( 97 AS INTEGER ), + - MIN ( + - 92 ) * + - 39 * - 99 + - 2 / - 88 * - 1 / 74 * + 34 ) + + - COUNT ( * ) AS col0
----
98
NULL

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

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

query I rowsort
SELECT + 38 * - 13 AS col2
----
-494

onlyif mysql # aggregate syntax: 
query II rowsort label-2838
SELECT + CASE - 43 WHEN - 14 THEN + 80 END, COUNT( ALL - + 18 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2838
SELECT + CASE - 43 WHEN - 14 THEN + 80 END, COUNT ( ALL - + 18 ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT DISTINCT CAST( 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT CAST ( 17 AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2840
SELECT ALL COUNT( * ) AS col0, 80 * + 6 * + 72 AS col2
----
1
34560

skipif mysql # not compatible
query II rowsort label-2840
SELECT ALL COUNT ( * ) AS col0, 80 * + 6 * + 72 AS col2
----
1
34560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT + MAX( - ( 81 ) ) + - + CAST( - - 51 AS SIGNED ) + 19 + 91 + 90 * 66 + + 65 + - - 0 + - 77 AS col0
----
5906

skipif mysql # not compatible
query I rowsort label-2841
SELECT + MAX ( - ( 81 ) ) + - + CAST ( - - 51 AS INTEGER ) + 19 + 91 + 90 * 66 + + 65 + - - 0 + - 77 AS col0
----
5906

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

skipif mysql # not compatible
query I rowsort label-2842
SELECT - NULLIF ( - NULLIF ( - + COUNT ( * ), - ( - 6 ) ), 24 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2843
SELECT ALL 32 AS col1, + CAST( - 46 AS SIGNED ) col0
----
32
-46

skipif mysql # not compatible
query II rowsort label-2843
SELECT ALL 32 AS col1, + CAST ( - 46 AS INTEGER ) col0
----
32
-46

query II rowsort
SELECT 60 AS col1, 35
----
60
35

query I rowsort
SELECT + 12 * - - ( + 69 ) * - 90 AS col2
----
-74520

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL COUNT( * ) * 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL COUNT ( * ) * 18 AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT ALL - CAST( NULL AS SIGNED ) * + 6 / ( - 35 ) - + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - CAST ( NULL AS INTEGER ) * + 6 / ( - 35 ) - + + 44 AS col0
----
NULL

query I rowsort
SELECT + - COALESCE ( + 65, - - 34 * NULLIF ( - 59, + - 86 ) + + 58 + + - ( + 49 ) + + 5 + + 81 ) + + NULLIF ( + 23, + - 88 )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2849
SELECT - 70 AS col2, - NULLIF ( 3, 64 ) - + 2 + COUNT( ALL + + 16 )
----
-70
-4

skipif mysql # not compatible
query II rowsort label-2849
SELECT - 70 AS col2, - NULLIF ( 3, 64 ) - + 2 + COUNT ( ALL + + 16 )
----
-70
-4

query I rowsort
SELECT + ( + + 66 ) * + 31
----
2046

query I rowsort
SELECT - 50 * ( - 97 ) AS col0
----
4850

query I rowsort
SELECT + + 50 - + - 43
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT DISTINCT 11 DIV - - 17 + + 17 * - 91 * - 47 * + 23 * + - COALESCE ( + 68, - 53 )
----
-113716876

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT 11 / - - 17 + + 17 * - 91 * - 47 * + 23 * + - COALESCE ( + 68, - 53 )
----
-113716876

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT ALL - ( - 53 ) DIV + - 72 + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL - ( - 53 ) / + - 72 + - 11
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2855
SELECT - 57 DIV + 29 + + - COUNT( * ) * - 62 * + ( 82 ) - - - COUNT( * ) * - 81 + + 87 * + - 93 col2
----
-2927

skipif mysql # not compatible
query I rowsort label-2855
SELECT - 57 / + 29 + + - COUNT ( * ) * - 62 * + ( 82 ) - - - COUNT ( * ) * - 81 + + 87 * + - 93 col2
----
-2927

query I rowsort
SELECT ALL + + 48 * - ( + 58 ) AS col0
----
-2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL - + 86 * 72 + + 68 + - CAST( + ( - 47 ) AS SIGNED ) * COUNT( DISTINCT + ( - 13 ) ) + 84 AS col1
----
-5993

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL - + 86 * 72 + + 68 + - CAST ( + ( - 47 ) AS INTEGER ) * COUNT ( DISTINCT + ( - 13 ) ) + 84 AS col1
----
-5993

query I rowsort
SELECT + - ( - - ( - 33 ) ) * - - ( - + 24 ) * + - ( - 4 ) + 74 + + - ( 60 )
----
-3154

query II rowsort
SELECT 33 AS col1, 92
----
33
92

query I rowsort
SELECT ALL + - 73 + + + 91
----
18

query I rowsort
SELECT + + CASE 83 WHEN - 45 * - 10 THEN + - 73 END AS col2
----
NULL

query I rowsort
SELECT 99 + - - 64
----
163

query I rowsort
SELECT 9 + + 96 + 53 AS col1
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT ALL - 10 - + 39 DIV + 78
----
-10

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL - 10 - + 39 / + 78
----
-10

query I rowsort
SELECT - ( + 27 ) * - + 34 + + 0 - 71 + - 54 AS col0
----
793

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT 25 * + - MIN( CAST( NULL AS SIGNED ) ) * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT 25 * + - MIN ( CAST ( NULL AS INTEGER ) ) * 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL - CASE - NULLIF ( - - MIN( 28 ), + NULLIF ( + ( 53 ), - - 32 ) / + 13 + - 27 - 21 * + + COUNT( * ) ) WHEN - 3 THEN + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - CASE - NULLIF ( - - MIN ( 28 ), + NULLIF ( + ( 53 ), - - 32 ) / + 13 + - 27 - 21 * + + COUNT ( * ) ) WHEN - 3 THEN + 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT SUM( - - CASE - ( + + 93 ) WHEN 82 + + + ( - 3 ) * + 91 * ( - + 16 ) THEN 90 + - 48 END ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT SUM ( - - CASE - ( + + 93 ) WHEN 82 + + + ( - 3 ) * + 91 * ( - + 16 ) THEN 90 + - 48 END ) * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( + 96 ) * + + 21 * + ( - + 54 ) AS col0
----
-108864

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

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

query I rowsort
SELECT DISTINCT + 3 * - 93 AS col2
----
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2872
SELECT 31 + + - 5 AS col0, - MAX( - - ( + CAST( NULL AS SIGNED ) ) ) col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-2872
SELECT 31 + + - 5 AS col0, - MAX ( - - ( + CAST ( NULL AS INTEGER ) ) ) col1
----
26
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT ALL + 60 + 73 col2, - COUNT( * )
----
133
-1

skipif mysql # not compatible
query II rowsort label-2873
SELECT ALL + 60 + 73 col2, - COUNT ( * )
----
133
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL MAX( 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL MAX ( 37 ) AS col0
----
37

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT ALL + 10 + - COUNT( * ) - CAST( + + 75 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + 10 + - COUNT ( * ) - CAST ( + + 75 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT ALL 70 + + COUNT( * ) col1, - 26
----
71
-26

skipif mysql # not compatible
query II rowsort label-2878
SELECT ALL 70 + + COUNT ( * ) col1, - 26
----
71
-26

query I rowsort
SELECT ALL - 41 * + 32
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT DISTINCT - SUM( DISTINCT + - 41 ) + + + 91
----
132

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT - SUM ( DISTINCT + - 41 ) + + + 91
----
132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT COUNT( * ) * + 14 + + 17 + 76 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-2882
SELECT COUNT ( * ) * + 14 + + 17 + 76 AS col2
----
107

query II rowsort
SELECT DISTINCT + 17 + + ( 2 ) AS col2, + 58 * ( NULLIF ( - - 47, - ( + 89 ) ) )
----
19
2726

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

skipif mysql # not compatible
query I rowsort label-2884
SELECT CAST ( NULL AS INTEGER ) * - 96 AS col1
----
NULL

query I rowsort
SELECT 72 + + - 29 * 42 + + 2 * 9
----
-1128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT ALL - 84 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - 84 - - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - COALESCE ( ( + 31 ), 57 ) AS col1
----
-31

query I rowsort
SELECT ALL 9 - + 20
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT 67 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT 67 / + 81
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT 25 DIV - 25
----
-1

skipif mysql # not compatible
query I rowsort label-2890
SELECT 25 / - 25
----
-1

query I rowsort
SELECT ALL 2 * 14 col2
----
28

query I rowsort
SELECT + 35 * - 25 * + + NULLIF ( + 94, - ( + 24 ) ) - 98
----
-82348

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2894
SELECT 15 DIV - - 61 col1
----
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT 15 / - - 61 col1
----
0

query II rowsort
SELECT + 70 AS col1, 69
----
70
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2896
SELECT ALL - CASE + CASE + COUNT( * ) WHEN + + AVG ( ALL 95 ) THEN NULL WHEN CAST( NULL AS SIGNED ) + - ( + - ( 20 ) ) THEN NULL WHEN 41 THEN 19 + + 26 + + ( ( + + 53 ) ) * 39 * - MAX( - 31 ) * 38 ELSE NULL END WHEN 78 THEN NULL WHEN - 86 + COUNT( * ) THEN + 26 ELSE - - NULLIF ( COUNT( * ), + + CASE + 53 WHEN 0 THEN - COUNT( * ) * - - ( 31 ) - 7 * + - COUNT( * ) END * COUNT( * ) * + CAST( NULL AS DECIMAL ) - ( - ( ( + - 85 ) ) ) ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - CASE + CASE + COUNT ( * ) WHEN + + AVG ( ALL 95 ) THEN NULL WHEN CAST ( NULL AS INTEGER ) + - ( + - ( 20 ) ) THEN NULL WHEN 41 THEN 19 + + 26 + + ( ( + + 53 ) ) * 39 * - MAX ( - 31 ) * 38 ELSE NULL END WHEN 78 THEN NULL WHEN - 86 + COUNT ( * ) THEN + 26 ELSE - - NULLIF ( COUNT ( * ), + + CASE + 53 WHEN 0 THEN - COUNT ( * ) * - - ( 31 ) - 7 * + - COUNT ( * ) END * COUNT ( * ) * + CAST ( NULL AS REAL ) - ( - ( ( + - 85 ) ) ) ) END AS col1
----
-1

query I rowsort
SELECT 60 * COALESCE ( - 82, + + 85 )
----
-4920

query I rowsort
SELECT ALL - ( 37 ) AS col1
----
-37

query I rowsort
SELECT 50 * - 76 AS col2
----
-3800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2900
SELECT 23, CAST( + - 27 AS SIGNED ) DIV - 81 + - COUNT( * ) AS col2
----
23
-1

skipif mysql # not compatible
query II rowsort label-2900
SELECT 23, CAST ( + - 27 AS INTEGER ) / - 81 + - COUNT ( * ) AS col2
----
23
-1

query II rowsort
SELECT DISTINCT 87 AS col2, - 66 AS col1
----
87
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT ALL 39 AS col1, + SUM( ALL + 51 ) AS col0
----
39
51

skipif mysql # not compatible
query II rowsort label-2902
SELECT ALL 39 AS col1, + SUM ( ALL + 51 ) AS col0
----
39
51

query I rowsort
SELECT 33 + + 79
----
112

query I rowsort
SELECT 40 * - + COALESCE ( + ( 75 ), + - 12 )
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT SUM( - 1 ) + 14
----
13

skipif mysql # not compatible
query I rowsort label-2905
SELECT SUM ( - 1 ) + 14
----
13

query I rowsort
SELECT ALL - 31 + + 30 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2907
SELECT - CAST( NULLIF ( AVG ( - 12 ), - 93 / + 38 ) AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-2907
SELECT - CAST ( NULLIF ( AVG ( - 12 ), - 93 / + 38 ) AS INTEGER )
----
12

query I rowsort
SELECT DISTINCT - - 57 + + 4 col0
----
61

query I rowsort
SELECT DISTINCT - 81 + + 37 + 14 col0
----
-30

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

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

query I rowsort
SELECT DISTINCT + + 44 * + 98 AS col1
----
4312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2912
SELECT ALL - 48 + + CAST( 2 AS SIGNED ) * + + 26 AS col0, 87
----
4
87

skipif mysql # not compatible
query II rowsort label-2912
SELECT ALL - 48 + + CAST ( 2 AS INTEGER ) * + + 26 AS col0, 87
----
4
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT - - NULLIF ( - - SUM( - + 18 ), - 73 - + 91 * - - 29 * + 26 )
----
-18

skipif mysql # not compatible
query I rowsort label-2913
SELECT - - NULLIF ( - - SUM ( - + 18 ), - 73 - + 91 * - - 29 * + 26 )
----
-18

query I rowsort
SELECT + NULLIF ( + - 3, 80 ) * - 13 - + + 57 col0
----
-18

query I rowsort
SELECT - + 50 col1
----
-50

query II rowsort
SELECT ALL - 87 - - 99 + 36 - + 89 AS col2, + 64 AS col2
----
-41
64

query I rowsort
SELECT - 87 - + - 75 col2
----
-12

query I rowsort
SELECT - NULLIF ( - - 43, + - 86 * + - 69 )
----
-43

query I rowsort
SELECT ALL 89 * ( + 82 ) + - 93 - + 40 col1
----
7165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT DISTINCT NULLIF ( - - 19, 70 + - 70 + - 40 * + COUNT( * ) * 68 ) * - CASE - + 62 WHEN 25 THEN NULL WHEN 92 * - MAX( ALL 11 ) THEN - + CASE - 21 WHEN - - 58 THEN NULL WHEN - + 65 + - COALESCE ( 7, + + 24, - 52 ) THEN + COUNT( ALL - ( + 6 ) ) * 68 / + + COUNT( * ) * - 53 + - + 54 * + + ( MIN( + 65 ) ) * - + NULLIF ( 77, - 48 ) + + + COUNT( * ) END WHEN - - CAST( NULL AS SIGNED ) THEN - 83 - + MAX( + 68 ) END + + - 66 + - COUNT( * ) / SUM( DISTINCT + + 74 ) / + + 81 + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT NULLIF ( - - 19, 70 + - 70 + - 40 * + COUNT ( * ) * 68 ) * - CASE - + 62 WHEN 25 THEN NULL WHEN 92 * - MAX ( ALL 11 ) THEN - + CASE - 21 WHEN - - 58 THEN NULL WHEN - + 65 + - COALESCE ( 7, + + 24, - 52 ) THEN + COUNT ( ALL - ( + 6 ) ) * 68 / + + COUNT ( * ) * - 53 + - + 54 * + + ( MIN ( + 65 ) ) * - + NULLIF ( 77, - 48 ) + + + COUNT ( * ) END WHEN - - CAST ( NULL AS INTEGER ) THEN - 83 - + MAX ( + 68 ) END + + - 66 + - COUNT ( * ) / SUM ( DISTINCT + + 74 ) / + + 81 + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + MAX( ALL + - 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2921
SELECT + MAX ( ALL + - 17 ) AS col0
----
-17

query II rowsort
SELECT ALL 61 * 70 AS col1, + 84
----
4270
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT 47 DIV - - 29 - + 27 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2923
SELECT 47 / - - 29 - + 27 AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2924
SELECT + 49 - - 67 DIV + + 24 + NULLIF ( - 64, - + COUNT( * ) - + 77 + - COUNT( * ) DIV - + CASE + - CASE - - 65 WHEN - CAST( 38 AS SIGNED ) + + - 83 THEN 91 WHEN - 95 THEN NULL END WHEN + + 39 THEN - 32 * + 41 ELSE 64 END * + - ( + 29 ) * + 87 + + - 79 * - + 50 * + - 81 + - 81 DIV 16 * + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + + + 11 ) + - 11 + + COUNT( DISTINCT 36 ) + - - 8 DIV 29 * - COUNT( * ) * + 33
----
-23

skipif mysql # not compatible
query I rowsort label-2924
SELECT + 49 - - 67 / + + 24 + NULLIF ( - 64, - + COUNT ( * ) - + 77 + - COUNT ( * ) / - + CASE + - CASE - - 65 WHEN - CAST ( 38 AS INTEGER ) + + - 83 THEN 91 WHEN - 95 THEN NULL END WHEN + + 39 THEN - 32 * + 41 ELSE 64 END * + - ( + 29 ) * + 87 + + - 79 * - + 50 * + - 81 + - 81 / 16 * + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + + 11 ) + - 11 + + COUNT ( DISTINCT 36 ) + - - 8 / 29 * - COUNT ( * ) * + 33
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT 57 DIV - 78 + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2925
SELECT 57 / - 78 + 18 AS col0
----
18

query I rowsort
SELECT + 13 + 53 AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2927
SELECT ALL NULLIF ( + 54, + - MIN( - 29 ) ) * + ( - - 59 ) * 66 * - 51 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL NULLIF ( + 54, + - MIN ( - 29 ) ) * + ( - - 59 ) * 66 * - 51 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2928
SELECT + 7 DIV - ( + ( + - CAST( 28 AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2928
SELECT + 7 / - ( + ( + - CAST ( 28 AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2929
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + 20 * - COUNT( * ) + COUNT( * ) + + - 92 * + 22 AS col2
----
-2003

skipif mysql # not compatible
query I rowsort label-2929
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + 20 * - COUNT ( * ) + COUNT ( * ) + + - 92 * + 22 AS col2
----
-2003

query II rowsort
SELECT + 54 * 12 AS col1, 26 + - 45 AS col2
----
648
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT + 71 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2931
SELECT + 71 / 79 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2932
SELECT - SUM( + - ( + 69 ) ) DIV + 95 - 25
----
-25

skipif mysql # not compatible
query I rowsort label-2932
SELECT - SUM ( + - ( + 69 ) ) / + 95 - 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT DISTINCT COUNT( * ) * 20 + + - 11 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT COUNT ( * ) * 20 + + - 11 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2934
SELECT ALL 41 * + CAST( NULL AS SIGNED ), + ( - + 67 ) AS col1
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-2934
SELECT ALL 41 * + CAST ( NULL AS INTEGER ), + ( - + 67 ) AS col1
----
NULL
-67

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

skipif mysql # not compatible
query I rowsort label-2935
SELECT COUNT ( - 98 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2936
SELECT - CAST( - 26 AS SIGNED ) * - + 87 + - 95 AS col0, + 20 col2
----
-2357
20

skipif mysql # not compatible
query II rowsort label-2936
SELECT - CAST ( - 26 AS INTEGER ) * - + 87 + - 95 AS col0, + 20 col2
----
-2357
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT - COUNT( * ) + + 66 + + 41 + - - 27 * - 29 AS col1
----
-677

skipif mysql # not compatible
query I rowsort label-2937
SELECT - COUNT ( * ) + + 66 + + 41 + - - 27 * - 29 AS col1
----
-677

query I rowsort
SELECT DISTINCT - 91 + 68 + ( + 11 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT + NULLIF ( - + COUNT( * ), - 27 ) * + + 69 * - 48 + + 48 + + MAX( 81 )
----
3441

skipif mysql # not compatible
query I rowsort label-2939
SELECT + NULLIF ( - + COUNT ( * ), - 27 ) * + + 69 * - 48 + + 48 + + MAX ( 81 )
----
3441

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL - MIN( ALL + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - MIN ( ALL + 26 )
----
-26

query II rowsort
SELECT ALL - - 71 * + + 54 AS col1, - 10 + - 99
----
3834
-109

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

query I rowsort
SELECT + - 2 + - 25
----
-27

query I rowsort
SELECT - 5 - 82 * - 41 * + 56 + + - 66 AS col2
----
188201

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

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

query I rowsort
SELECT ALL - 58 * - NULLIF ( - 6, - + 40 ) * NULLIF ( - 10, - 42 ) + + - 52 AS col0
----
3428

onlyif mysql # aggregate syntax: 
query II rowsort label-2947
SELECT DISTINCT - + 29 * - 15 - + - 68 - - 72 col2, COUNT( 72 ) col0
----
575
1

skipif mysql # not compatible
query II rowsort label-2947
SELECT DISTINCT - + 29 * - 15 - + - 68 - - 72 col2, COUNT ( 72 ) col0
----
575
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT ALL + CASE - 48 WHEN AVG ( ALL - 54 ) THEN NULL ELSE - - COUNT( * ) DIV 60 END - + 48 DIV - 21 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + CASE - 48 WHEN AVG ( ALL - 54 ) THEN NULL ELSE - - COUNT ( * ) / 60 END - + 48 / - 21 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2949
SELECT ALL - 98 * - - NULLIF ( + 37, 30 + - ( CAST( - - 64 AS SIGNED ) ) * COUNT( * ) * - + CAST( + 17 AS SIGNED ) + - + NULLIF ( + COUNT( * ), - COUNT( 56 ) ) ) AS col2, 67 * 46 + - 12 + - 73 AS col0
----
-3626
2997

skipif mysql # not compatible
query II rowsort label-2949
SELECT ALL - 98 * - - NULLIF ( + 37, 30 + - ( CAST ( - - 64 AS INTEGER ) ) * COUNT ( * ) * - + CAST ( + 17 AS INTEGER ) + - + NULLIF ( + COUNT ( * ), - COUNT ( 56 ) ) ) AS col2, 67 * 46 + - 12 + - 73 AS col0
----
-3626
2997

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL + MIN( DISTINCT + 83 ) - - 45
----
128

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + MIN ( DISTINCT + 83 ) - - 45
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT - + 37 * + CAST( + + 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2951
SELECT - + 37 * + CAST ( + + 0 AS INTEGER ) AS col0
----
0

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

query II rowsort
SELECT - 47 AS col2, - 50 + + 88
----
-47
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2954
SELECT 15 * - ( - 87 ) + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT 15 * - ( - 87 ) + CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2956
SELECT CAST( NULL AS SIGNED ), + 97 + - CAST( NULL AS SIGNED ) - + 93 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2956
SELECT CAST ( NULL AS INTEGER ), + 97 + - CAST ( NULL AS INTEGER ) - + 93 AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT 52 DIV - ( 82 ) + 91 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2957
SELECT 52 / - ( 82 ) + 91 AS col1
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-2958
SELECT - 20 DIV + 36 * - 9, 73 AS col1
----
0
73

skipif mysql # not compatible
query II rowsort label-2958
SELECT - 20 / + 36 * - 9, 73 AS col1
----
0
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT ALL - COUNT( * ) DIV - - 69 + 2 * ( + - 26 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL - COUNT ( * ) / - - 69 + 2 * ( + - 26 ) AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT DISTINCT - 54 DIV - - SUM( DISTINCT + - 33 ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - 54 / - - SUM ( DISTINCT + - 33 ) + + COUNT ( * ) AS col2
----
2

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT ALL - 21 DIV 48 + - COUNT( DISTINCT - - ( + + 55 ) ) * + + 34
----
-34

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - 21 / 48 + - COUNT ( DISTINCT - - ( + + 55 ) ) * + + 34
----
-34

query I rowsort
SELECT - 30 * - 75
----
2250

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

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

query I rowsort
SELECT ALL 19 * 5 + 72
----
167

query I rowsort
SELECT DISTINCT 56 * 90 * - 82 * 65 + 37 + + 40 + + + 90
----
-26863033

query I rowsort
SELECT 90 * 44 - - 8
----
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + 50 * + 36 - + COALESCE ( 31 + + 66, 12 * 51 + 19, - 10 + - COUNT( * ), + 76 + 38 )
----
1703

skipif mysql # not compatible
query I rowsort label-2968
SELECT + 50 * + 36 - + COALESCE ( 31 + + 66, 12 * 51 + 19, - 10 + - COUNT ( * ), + 76 + 38 )
----
1703

query I rowsort
SELECT ALL 68 * 54 - + 26
----
3646

query I rowsort
SELECT 27 * + 73 + - 62
----
1909

query I rowsort
SELECT 10 + 10 * - 69
----
-680

query I rowsort
SELECT 13 - 8 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL COUNT( * ) * - CASE - 44 WHEN 92 THEN 35 * - 96 WHEN + 68 THEN - 48 / - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL COUNT ( * ) * - CASE - 44 WHEN 92 THEN 35 * - 96 WHEN + 68 THEN - 48 / - 67 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2974
SELECT CASE 38 WHEN - 28 THEN 98 * CASE ( - 93 ) WHEN - 94 THEN 24 END WHEN + 23 + 49 THEN - NULLIF ( 99, - 88 + + 27 * CASE WHEN NOT 33 * 73 + COUNT( * ) * 83 NOT BETWEEN NULL AND NULL THEN - 44 WHEN NOT 33 * CAST( NULL AS SIGNED ) + 95 IS NOT NULL THEN - ( - NULLIF ( COUNT( * ), - 57 * COUNT( + 79 DIV - 26 ) ) ) * + 24 ELSE - 92 * - MIN( 58 ) END ) + 74 WHEN COUNT( * ) - 21 * + 49 THEN - 4 + + 8 DIV 61 ELSE 40 END * 60 col2
----
2400

skipif mysql # not compatible
query I rowsort label-2974
SELECT CASE 38 WHEN - 28 THEN 98 * CASE ( - 93 ) WHEN - 94 THEN 24 END WHEN + 23 + 49 THEN - NULLIF ( 99, - 88 + + 27 * CASE WHEN NOT 33 * 73 + COUNT ( * ) * 83 NOT BETWEEN NULL AND NULL THEN - 44 WHEN NOT 33 * CAST ( NULL AS INTEGER ) + 95 IS NOT NULL THEN - ( - NULLIF ( COUNT ( * ), - 57 * COUNT ( + 79 / - 26 ) ) ) * + 24 ELSE - 92 * - MIN ( 58 ) END ) + 74 WHEN COUNT ( * ) - 21 * + 49 THEN - 4 + + 8 / 61 ELSE 40 END * 60 col2
----
2400

query I rowsort
SELECT 19 * 85 AS col0
----
1615

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

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

query I rowsort
SELECT DISTINCT 33 * ( 76 )
----
2508

query I rowsort
SELECT DISTINCT 51 * 85
----
4335

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2979
SELECT CAST( 23 AS SIGNED ) + COALESCE ( 16 + 33 * COALESCE ( 87, 50 DIV - 69 - 0 * 7, 63 + + 19 ), - 0 )
----
2910

skipif mysql # not compatible
query I rowsort label-2979
SELECT CAST ( 23 AS INTEGER ) + COALESCE ( 16 + 33 * COALESCE ( 87, 50 / - 69 - 0 * 7, 63 + + 19 ), - 0 )
----
2910

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

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

query I rowsort
SELECT DISTINCT + ( - 32 ) + 56 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL - COUNT( * ) + 47 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - COUNT ( * ) + 47 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT 24 - + CASE + 67 WHEN - 91 THEN COALESCE ( + COUNT( * ), + NULLIF ( 65, + 94 ) * + 5 + 18, 0 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT 24 - + CASE + 67 WHEN - 91 THEN COALESCE ( + COUNT ( * ), + NULLIF ( 65, + 94 ) * + 5 + 18, 0 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 57 + - 86 AS col2
----
-29

query I rowsort
SELECT 34 - - 14 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT 53 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT 53 / + 98
----
0

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

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

query I rowsort
SELECT 33 + 79 col1
----
112

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT MAX( ALL 65 ) - - CASE + 61 + 74 WHEN 23 THEN 63 ELSE - 20 * 63 END
----
-1195

skipif mysql # not compatible
query I rowsort label-2991
SELECT MAX ( ALL 65 ) - - CASE + 61 + 74 WHEN 23 THEN 63 ELSE - 20 * 63 END
----
-1195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT DISTINCT + 13 DIV + MIN( - 97 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT + 13 / + MIN ( - 97 ) AS col0
----
0

query I rowsort
SELECT ALL - 58 + 79 AS col2
----
21

query I rowsort
SELECT 22 * - 13 + 59
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL COUNT( DISTINCT ( 81 ) ) + 29 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL COUNT ( DISTINCT ( 81 ) ) + 29 AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2996
SELECT ALL - ( MIN( - COALESCE ( 51, + 0 DIV + 44 + 95, 99 * - 83 ) ) )
----
51

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - ( MIN ( - COALESCE ( 51, + 0 / + 44 + 95, 99 * - 83 ) ) )
----
51

query I rowsort
SELECT ALL 82 * + 3
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT DISTINCT - + COUNT( - 89 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT - + COUNT ( - 89 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT + CASE 69 WHEN 90 * 51 THEN + 39 * - 14 WHEN 14 * ( - 70 * MAX( - 94 ) ) THEN NULLIF ( + COUNT( * ), 55 + 26 ) ELSE NULL END - - 91 * 85
----
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + CASE 69 WHEN 90 * 51 THEN + 39 * - 14 WHEN 14 * ( - 70 * MAX ( - 94 ) ) THEN NULLIF ( + COUNT ( * ), 55 + 26 ) ELSE NULL END - - 91 * 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT + COALESCE ( - 74, + COUNT( * ), 81 * - COUNT( * ) ) + - 93 * 19 AS col1
----
-1841

skipif mysql # not compatible
query I rowsort label-3000
SELECT + COALESCE ( - 74, + COUNT ( * ), 81 * - COUNT ( * ) ) + - 93 * 19 AS col1
----
-1841

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

query I rowsort
SELECT - 92 + + 23 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT MIN( - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-3003
SELECT MIN ( - 19 ) AS col1
----
-19

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3005
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - 70 + + 52 THEN - 21 / 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - 70 + + 52 THEN - 21 / 14 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL + + 95 * ( - MIN( - 73 ) * 16 )
----
110960

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + + 95 * ( - MIN ( - 73 ) * 16 )
----
110960

query I rowsort
SELECT - 54 + 63 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT CAST( + 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-3009
SELECT CAST ( + 29 AS INTEGER )
----
29

query I rowsort
SELECT - 67 + 15 * + 91
----
1298

query I rowsort
SELECT 71 * + 48
----
3408

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT ALL 51 DIV + 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL 51 / + 98 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT DISTINCT + 48 DIV + 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + 48 / + 53 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT + COALESCE ( MIN( - 3 ), COUNT( * ) + 78 ) + 48 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3014
SELECT + COALESCE ( MIN ( - 3 ), COUNT ( * ) + 78 ) + 48 AS col2
----
45

query I rowsort
SELECT ALL 78 * 40
----
3120

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT 51 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT 51 / 61
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3017
SELECT + CAST( 76 AS SIGNED ) * - 19 col2
----
-1444

skipif mysql # not compatible
query I rowsort label-3017
SELECT + CAST ( 76 AS INTEGER ) * - 19 col2
----
-1444

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3019
SELECT ALL COUNT( * ) + 57 DIV MIN( - 40 * 62 )
----
1

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL COUNT ( * ) + 57 / MIN ( - 40 * 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT - MAX( DISTINCT - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3020
SELECT - MAX ( DISTINCT - 63 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT ALL ( ( + CAST( + 49 AS SIGNED ) ) ) + + 57
----
106

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL ( ( + CAST ( + 49 AS INTEGER ) ) ) + + 57
----
106

query I rowsort
SELECT 34 + + 92 + - 68
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL COUNT( DISTINCT 36 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL COUNT ( DISTINCT 36 ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT 37 + COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT 37 + COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT + 44 + + COUNT( * ) - - 24 * CASE 76 WHEN 50 * 85 THEN MAX( DISTINCT - 4 ) - + COALESCE ( + 57, 51 + - CASE 16 - + 70 WHEN - COUNT( * ) - COUNT( * ) THEN 32 + ( - 34 ) ELSE NULL END / + COALESCE ( + MAX( 79 ), 56 ) ) * 22 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT + 44 + + COUNT ( * ) - - 24 * CASE 76 WHEN 50 * 85 THEN MAX ( DISTINCT - 4 ) - + COALESCE ( + 57, 51 + - CASE 16 - + 70 WHEN - COUNT ( * ) - COUNT ( * ) THEN 32 + ( - 34 ) ELSE NULL END / + COALESCE ( + MAX ( 79 ), 56 ) ) * 22 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - COALESCE ( + 93, - 61 ) ) + 34
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT 69 + + SUM( DISTINCT + 97 ) * 68
----
6665

skipif mysql # not compatible
query I rowsort label-3027
SELECT 69 + + SUM ( DISTINCT + 97 ) * 68
----
6665

query I rowsort
SELECT CASE - 98 WHEN + 59 THEN 26 ELSE - 37 + + 63 END AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT COUNT( * ) DIV - + 8 + + 73 col2
----
73

skipif mysql # not compatible
query I rowsort label-3029
SELECT COUNT ( * ) / - + 8 + + 73 col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT CASE - 71 WHEN 35 THEN CAST( 70 AS SIGNED ) - ( 89 ) WHEN 5 * + 84 THEN + AVG ( 9 ) WHEN CAST( NULL AS SIGNED ) * 6 + 91 THEN 1 + + 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT CASE - 71 WHEN 35 THEN CAST ( 70 AS INTEGER ) - ( 89 ) WHEN 5 * + 84 THEN + AVG ( 9 ) WHEN CAST ( NULL AS INTEGER ) * 6 + 91 THEN 1 + + 40 END AS col2
----
NULL

query I rowsort
SELECT 88 + + + 60
----
148

query I rowsort
SELECT ALL 80 * + + NULLIF ( - 61, + 56 * 28 ) - - 28
----
-4852

query I rowsort
SELECT 59 * - 49
----
-2891

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT 55 * + SUM( DISTINCT 92 ) - - 10 * 74
----
5800

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT 55 * + SUM ( DISTINCT 92 ) - - 10 * 74
----
5800

query I rowsort
SELECT 84 * + - 49 AS col0
----
-4116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT DISTINCT + CAST( + 73 AS SIGNED ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + CAST ( + 73 AS INTEGER ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT 98 * + 8 * COUNT( * ) - - 45
----
829

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT 98 * + 8 * COUNT ( * ) - - 45
----
829

onlyif mysql # DIV for integer division: 
query I rowsort label-3038
SELECT - - 26 DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-3038
SELECT - - 26 / + - 47
----
0

query I rowsort
SELECT - - 15 * - 60 * 83 + + 41 AS col2
----
-74659

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - - NULLIF ( + COUNT( * ), + 51 + - COALESCE ( 45, - ( - 99 ), + COALESCE ( 72, - 72 + 19 ) ) / + 83 ) + 41 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3040
SELECT - - NULLIF ( + COUNT ( * ), + 51 + - COALESCE ( 45, - ( - 99 ), + COALESCE ( 72, - 72 + 19 ) ) / + 83 ) + 41 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT + COUNT( DISTINCT 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT + COUNT ( DISTINCT 40 ) AS col0
----
1

query I rowsort
SELECT - + 40 * - NULLIF ( 76, 78 ) col2
----
3040

query I rowsort
SELECT + - 76 * - + 12
----
912

query I rowsort
SELECT - - ( + 62 ) * - 7 - + 73 col0
----
-507

query I rowsort
SELECT ALL 82 * + 88 AS col1
----
7216

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

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

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

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

query I rowsort
SELECT DISTINCT + 46 * + 10 * + 9 AS col1
----
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL + 88 + SUM( - 53 ) + + COUNT( 25 ) * + 22
----
57

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL + 88 + SUM ( - 53 ) + + COUNT ( 25 ) * + 22
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3050
SELECT - 9 + + 17 + COUNT( * ) * CASE NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) ) WHEN + ( + 88 ) THEN NULL WHEN - 19 THEN - 87 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT - 9 + + 17 + COUNT ( * ) * CASE NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) WHEN + ( + 88 ) THEN NULL WHEN - 19 THEN - 87 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 13 * - - 55 AS col2
----
715

query I rowsort
SELECT + + 8 + 40
----
48

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

skipif mysql # not compatible
query I rowsort label-3053
SELECT - MAX ( DISTINCT - 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT - CAST( + + 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-3054
SELECT - CAST ( + + 29 AS INTEGER )
----
-29

query I rowsort
SELECT ALL 71 + - 8 AS col2
----
63

query I rowsort
SELECT + + 58 * - + 6
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL MIN( DISTINCT - 84 ) + + 23
----
-61

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL MIN ( DISTINCT - 84 ) + + 23
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT + - 51 * - COUNT( + 91 )
----
51

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT + - 51 * - COUNT ( + 91 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT - CASE 25 WHEN 18 + + 12 THEN 76 WHEN ( COUNT( * ) ) THEN - 33 + + NULLIF ( - 5, + 0 * + COALESCE ( COUNT( * ), - COALESCE ( 18, + 25, - 79 - - COUNT( * ) ) - 86 ) ) * - 33 WHEN 0 + - 74 THEN + 15 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT - CASE 25 WHEN 18 + + 12 THEN 76 WHEN ( COUNT ( * ) ) THEN - 33 + + NULLIF ( - 5, + 0 * + COALESCE ( COUNT ( * ), - COALESCE ( 18, + 25, - 79 - - COUNT ( * ) ) - 86 ) ) * - 33 WHEN 0 + - 74 THEN + 15 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT DISTINCT + SUM( - 63 ) + + + 19
----
-44

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT + SUM ( - 63 ) + + + 19
----
-44

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

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL 85 / ( COUNT ( * ) )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT ALL - CAST( + + 26 AS SIGNED ) + 82 * 67 AS col2
----
5468

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL - CAST ( + + 26 AS INTEGER ) + 82 * 67 AS col2
----
5468

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT - CASE - 74 WHEN - 82 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT - CASE - 74 WHEN - 82 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT ALL 49 DIV 13
----
3

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL 49 / 13
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT + 61 DIV + - ( + + 64 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT + 61 / + - ( + + 64 ) col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT + 31 + - 55 + + - MIN( ALL + CAST( 97 AS SIGNED ) ) + - 69 * - 24
----
1535

skipif mysql # not compatible
query I rowsort label-3067
SELECT + 31 + - 55 + + - MIN ( ALL + CAST ( 97 AS INTEGER ) ) + - 69 * - 24
----
1535

query I rowsort
SELECT ALL 43 - - - 98
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT - CASE 29 WHEN MAX( ALL 99 ) THEN COUNT( * ) + ( + 29 ) WHEN 55 THEN NULL ELSE 59 END col0
----
-59

skipif mysql # not compatible
query I rowsort label-3069
SELECT - CASE 29 WHEN MAX ( ALL 99 ) THEN COUNT ( * ) + ( + 29 ) WHEN 55 THEN NULL ELSE 59 END col0
----
-59

query I rowsort
SELECT + 25 - ( - 5 ) - 4 AS col0
----
26

query I rowsort
SELECT ALL 30 * + 85
----
2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT ALL CAST( 0 AS SIGNED ) * - COUNT( * ) + + 79
----
79

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL CAST ( 0 AS INTEGER ) * - COUNT ( * ) + + 79
----
79

query I rowsort
SELECT DISTINCT 48 * - 67 * + NULLIF ( 68, NULLIF ( - 1, + 31 ) )
----
-218688

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT DISTINCT + NULLIF ( + 87, + - CASE 18 WHEN - 72 / - MIN( ALL + 99 ) THEN NULL WHEN 27 THEN 8 + - 89 WHEN - COUNT( * ) THEN - 19 + 78 WHEN - 86 THEN NULL ELSE NULL END ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT + NULLIF ( + 87, + - CASE 18 WHEN - 72 / - MIN ( ALL + 99 ) THEN NULL WHEN 27 THEN 8 + - 89 WHEN - COUNT ( * ) THEN - 19 + 78 WHEN - 86 THEN NULL ELSE NULL END ) AS col2
----
87

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT + CAST( 41 AS SIGNED ) * - - 54 + + 53 AS col1
----
2267

skipif mysql # not compatible
query I rowsort label-3077
SELECT + CAST ( 41 AS INTEGER ) * - - 54 + + 53 AS col1
----
2267

query I rowsort
SELECT 32 * + + ( + - 83 ) + + 18 AS col2
----
-2638

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - - MAX( ALL + - 5 ) + + + NULLIF ( 66, 92 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3080
SELECT - - MAX ( ALL + - 5 ) + + + NULLIF ( 66, 92 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL + MAX( + + 83 ) * NULLIF ( COUNT( * ), + 36 )
----
83

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL + MAX ( + + 83 ) * NULLIF ( COUNT ( * ), + 36 )
----
83

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

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

query II rowsort
SELECT ALL + - 83 AS col0, 58 AS col2
----
-83
58

query II rowsort
SELECT DISTINCT + + 92 AS col2, + 6 + + 44 AS col2
----
92
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT - + 3 * MIN( DISTINCT + + 6 ) - 88
----
-106

skipif mysql # not compatible
query I rowsort label-3085
SELECT - + 3 * MIN ( DISTINCT + + 6 ) - 88
----
-106

query I rowsort
SELECT DISTINCT 15 * + 10
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT + - 72 * ( COUNT( * ) ) - 67 + - COUNT( * )
----
-140

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT + - 72 * ( COUNT ( * ) ) - 67 + - COUNT ( * )
----
-140

query I rowsort
SELECT - 20 * + - 86 + + 27 * - 91 AS col0
----
-737

query I rowsort
SELECT - COALESCE ( + + 98, - 18 + 76 ) + 55
----
-43

query II rowsort
SELECT + - 32 AS col2, - 46 AS col1
----
-32
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT ALL - + ( - 78 ) DIV - + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - + ( - 78 ) / - + 84 AS col0
----
0

query II rowsort
SELECT - 10 col1, - 93
----
-10
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3093
SELECT ALL + - ( 66 ) * + COALESCE ( MIN( - CAST( NULL AS SIGNED ) ), + 76, - 2 * ( + 3 ) - - 78, + CAST( NULL AS SIGNED ) - + 11 ) + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL + - ( 66 ) * + COALESCE ( MIN ( - CAST ( NULL AS INTEGER ) ), + 76, - 2 * ( + 3 ) - - 78, + CAST ( NULL AS INTEGER ) - + 11 ) + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT DISTINCT - + COALESCE ( + COALESCE ( - 75, ( + 66 ) + - 43 ), 72 * 24 ) DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT - + COALESCE ( + COALESCE ( - 75, ( + 66 ) + - 43 ), 72 * 24 ) / + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT DISTINCT - 10 * MAX( ALL 31 ) + - COUNT( * )
----
-311

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - 10 * MAX ( ALL 31 ) + - COUNT ( * )
----
-311

query II rowsort
SELECT ALL + 14 AS col0, - 28 AS col2
----
14
-28

query I rowsort
SELECT ALL + 44 * 55 + + 17 col0
----
2437

query II rowsort
SELECT DISTINCT ( - 57 ), + 52 * + 17 col1
----
-57
884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT ALL CAST( + NULLIF ( 8, - 51 - 88 ) AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL CAST ( + NULLIF ( 8, - 51 - 88 ) AS INTEGER )
----
8

query II rowsort
SELECT DISTINCT - 44 * + + 11 AS col2, ( + - 34 ) AS col1
----
-484
-34

query I rowsort
SELECT + 20 * + - 46
----
-920

query I rowsort
SELECT + 37 + - 14
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ALL - 26 - + COUNT( * ) + + + 28 + + 31 + + 26 * SUM( DISTINCT 21 * 49 ) * CASE - 45 + 51 WHEN - 87 / - 38 THEN NULL WHEN - COUNT( * ) + 52 THEN 91 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL - 26 - + COUNT ( * ) + + + 28 + + 31 + + 26 * SUM ( DISTINCT 21 * 49 ) * CASE - 45 + 51 WHEN - 87 / - 38 THEN NULL WHEN - COUNT ( * ) + 52 THEN 91 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT - 49 + + - 62 * ( - 98 ) + COUNT( DISTINCT 59 ) * + 78 AS col0
----
6105

skipif mysql # not compatible
query I rowsort label-3104
SELECT - 49 + + - 62 * ( - 98 ) + COUNT ( DISTINCT 59 ) * + 78 AS col0
----
6105

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT - MIN( + 89 ) AS col0, + 47 * + 62 + + 58 AS col0
----
-89
2972

skipif mysql # not compatible
query II rowsort label-3105
SELECT - MIN ( + 89 ) AS col0, + 47 * + 62 + + 58 AS col0
----
-89
2972

query I rowsort
SELECT + COALESCE ( + + 62, + - 22 ) + + ( - 77 ) AS col1
----
-15

query I rowsort
SELECT - 84 * - - 77
----
-6468

query I rowsort
SELECT ALL - 27 - 90 + + - 8 * - - 35 * 86 AS col2
----
-24197

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT DISTINCT 30 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT 30 / - 37
----
0

query I rowsort
SELECT 87 * - + 7
----
-609

query I rowsort
SELECT 94 + + 28
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT 0 DIV - 98 + - 60
----
-60

skipif mysql # not compatible
query I rowsort label-3112
SELECT 0 / - 98 + - 60
----
-60

query I rowsort
SELECT ALL 29 * - + NULLIF ( + - 9, + ( - 97 ) + 47 ) AS col2
----
261

query I rowsort
SELECT DISTINCT - 46 * COALESCE ( - 62, - 76 ) + 41 * 50 AS col2
----
4902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3115
SELECT 67 + - CAST( + 46 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3115
SELECT 67 + - CAST ( + 46 AS INTEGER )
----
21

query I rowsort
SELECT ALL 72 * - 76
----
-5472

query I rowsort
SELECT NULLIF ( - 23, - 33 ) * 61 col1
----
-1403

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

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL - COUNT ( * ) * + - 20 AS col0
----
20

query I rowsort
SELECT ALL 55 + + 58 - 48
----
65

query I rowsort
SELECT DISTINCT 59 + 7 - + - 51
----
117

query I rowsort
SELECT ALL - + 64 col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL 3 + + MIN( DISTINCT COALESCE ( - 58, + 18 * ( 14 ) - 7 ) ) * + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL 3 + + MIN ( DISTINCT COALESCE ( - 58, + 18 * ( 14 ) - 7 ) ) * + COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT + + 78 * MAX( - 5 ) * - 40 - NULLIF ( - 16 + 25 * 46, 11 / - 66 ) * MAX( DISTINCT 81 * + 41 ) AS col2
----
-3750414

skipif mysql # not compatible
query I rowsort label-3123
SELECT + + 78 * MAX ( - 5 ) * - 40 - NULLIF ( - 16 + 25 * 46, 11 / - 66 ) * MAX ( DISTINCT 81 * + 41 ) AS col2
----
-3750414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3124
SELECT - 70 + + CAST( + CASE 85 WHEN 42 * + 80 THEN NULL WHEN - 76 THEN NULL ELSE - ( COUNT( * ) ) END AS SIGNED ) DIV + 89 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3124
SELECT - 70 + + CAST ( + CASE 85 WHEN 42 * + 80 THEN NULL WHEN - 76 THEN NULL ELSE - ( COUNT ( * ) ) END AS INTEGER ) / + 89 AS col2
----
-70

query I rowsort
SELECT DISTINCT - 86 + + - COALESCE ( 3, + + 51 + - ( 82 - 61 ), + 30 * + 5 ) * 74 AS col1
----
-308

query II rowsort
SELECT ALL 44 + - 6 AS col1, + 40
----
38
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT DISTINCT + MIN( 6 ) * - 73
----
-438

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + MIN ( 6 ) * - 73
----
-438

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT 49 * 16 DIV 56
----
14

skipif mysql # not compatible
query I rowsort label-3128
SELECT 49 * 16 / 56
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT DISTINCT + 25 + - ( 9 ) * - 7 + - 59 * COUNT( * ) col1
----
29

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT + 25 + - ( 9 ) * - 7 + - 59 * COUNT ( * ) col1
----
29

query I rowsort
SELECT DISTINCT - + 50 * - CASE - + 15 WHEN - 21 * ( + 54 ) + + 51 THEN NULL WHEN - 56 + + 44 THEN 56 + 1 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT DISTINCT + 45 + 52 + + 79 + - + 10 DIV 68
----
176

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT + 45 + 52 + + 79 + - + 10 / 68
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT + + SUM( ALL 83 )
----
83

skipif mysql # not compatible
query I rowsort label-3133
SELECT + + SUM ( ALL 83 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3134
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) / 53 + SUM( - - 6 ) / - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) / 53 + SUM ( - - 6 ) / - 59 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - 38, - 81 ) * - + 83 * + 62 * + 28
----
5475344

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT 62 DIV - + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT 62 / - + 75 AS col2
----
0

query II rowsort
SELECT 16 AS col0, + 64 AS col1
----
16
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT ALL + 95 DIV - 88
----
-1

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + 95 / - 88
----
-1

query II rowsort
SELECT - 72 AS col2, + 15 + 1
----
-72
16

query I rowsort
SELECT 97 * 61
----
5917

query I rowsort
SELECT ALL - 5 * - 43 AS col0
----
215

query I rowsort
SELECT 68 + 24 col2
----
92

query I rowsort
SELECT ALL - 96 * 59
----
-5664

query I rowsort
SELECT 77 + - 59
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT 22 * COUNT( DISTINCT - 34 )
----
22

skipif mysql # not compatible
query I rowsort label-3145
SELECT 22 * COUNT ( DISTINCT - 34 )
----
22

query I rowsort
SELECT DISTINCT + 51 + - 82
----
-31

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

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

query I rowsort
SELECT ALL - 83 + + - ( 90 ) + + 50 AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT + SUM( DISTINCT NULLIF ( - - 0, 47 * + 66 + - 56 ) ) + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3149
SELECT + SUM ( DISTINCT NULLIF ( - - 0, 47 * + 66 + - 56 ) ) + 91 AS col2
----
91

query I rowsort
SELECT ALL + - COALESCE ( + + 2, + + 16 ) + 41 - + 37 + + 37 * - 13
----
-479

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT 3 * - - 53 + 90 + + + SUM( 49 ) * + 45
----
2454

skipif mysql # not compatible
query I rowsort label-3151
SELECT 3 * - - 53 + 90 + + + SUM ( 49 ) * + 45
----
2454

query II rowsort
SELECT DISTINCT - + 53, - 72 AS col0
----
-53
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT + 82 DIV 70 + - 48 DIV + + COUNT( * ) + + + 17 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3153
SELECT + 82 / 70 + - 48 / + + COUNT ( * ) + + + 17 AS col1
----
-30

query I rowsort
SELECT ALL - - 74 + + ( 1 ) - 22 + + - 95 * 63
----
-5932

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT - + COUNT( * ) * + + MAX( + - ( - + 41 ) ) + ( 40 ) + + 92 * - 58 AS col1
----
-5337

skipif mysql # not compatible
query I rowsort label-3155
SELECT - + COUNT ( * ) * + + MAX ( + - ( - + 41 ) ) + ( 40 ) + + 92 * - 58 AS col1
----
-5337

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT CASE - - 10 WHEN - 8 + + - 95 THEN MIN( + ( 71 ) ) WHEN 97 * 26 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT CASE - - 10 WHEN - 8 + + - 95 THEN MIN ( + ( 71 ) ) WHEN 97 * 26 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT + + CASE 2 WHEN 98 THEN + + COUNT( * ) * + 26 - 69 + + 70 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT + + CASE 2 WHEN 98 THEN + + COUNT ( * ) * + 26 - 69 + + 70 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3159
SELECT + MIN( - CAST( NULL AS DECIMAL ) ) * - 82 + COALESCE ( + + 9, 22 - + 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3159
SELECT + MIN ( - CAST ( NULL AS REAL ) ) * - 82 + COALESCE ( + + 9, 22 - + 58 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT ALL + 57 + + 81 DIV 45 * - 82
----
-25

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + 57 + + 81 / 45 * - 82
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3161
SELECT DISTINCT 33 * - + 46 + - - COALESCE ( - + NULLIF ( - + 26, + CAST( - 99 AS SIGNED ) * + 63 - - 35 ), CAST( NULL AS SIGNED ) + + COUNT( * ), - 2 ) * - 86 col1
----
-3754

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT 33 * - + 46 + - - COALESCE ( - + NULLIF ( - + 26, + CAST ( - 99 AS INTEGER ) * + 63 - - 35 ), CAST ( NULL AS INTEGER ) + + COUNT ( * ), - 2 ) * - 86 col1
----
-3754

query I rowsort
SELECT ALL - 40 * - 6 AS col1
----
240

query I rowsort
SELECT DISTINCT - - 32 + - + 41
----
-9

query I rowsort
SELECT 64 + - 9 col0
----
55

query I rowsort
SELECT ALL - 96 * + 38 AS col2
----
-3648

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT DISTINCT - 38 * MAX( - + 12 ) AS col1, 28 AS col0
----
456
28

skipif mysql # not compatible
query II rowsort label-3166
SELECT DISTINCT - 38 * MAX ( - + 12 ) AS col1, 28 AS col0
----
456
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - 2 * 90 + + 59 * 63 * + COUNT( * )
----
3537

skipif mysql # not compatible
query I rowsort label-3167
SELECT - 2 * 90 + + 59 * 63 * + COUNT ( * )
----
3537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT ALL - - CAST( 72 AS SIGNED ) col2
----
72

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL - - CAST ( 72 AS INTEGER ) col2
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT - MAX( ALL - 38 ) * + 80 * + 7
----
21280

skipif mysql # not compatible
query I rowsort label-3170
SELECT - MAX ( ALL - 38 ) * + 80 * + 7
----
21280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT 67 - + CASE + + 41 WHEN - + 86 THEN + - CASE 52 WHEN 48 * NULLIF ( 59, 47 ) + - CAST( NULL AS SIGNED ) THEN NULL ELSE 94 END + - 51 * 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 67 - + CASE + + 41 WHEN - + 86 THEN + - CASE 52 WHEN 48 * NULLIF ( 59, 47 ) + - CAST ( NULL AS INTEGER ) THEN NULL ELSE 94 END + - 51 * 12 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3172
SELECT + CASE 53 WHEN 1 THEN + + CASE + COUNT( * ) WHEN 73 THEN NULL WHEN 85 THEN + 45 * - 5 + + COUNT( * ) * + 58 ELSE 3 * + 76 END WHEN + COUNT( * ) / - 52 THEN NULL ELSE CAST( NULL AS SIGNED ) * + ( 67 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT + CASE 53 WHEN 1 THEN + + CASE + COUNT ( * ) WHEN 73 THEN NULL WHEN 85 THEN + 45 * - 5 + + COUNT ( * ) * + 58 ELSE 3 * + 76 END WHEN + COUNT ( * ) / - 52 THEN NULL ELSE CAST ( NULL AS INTEGER ) * + ( 67 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT ALL 2 - - ( 93 ) + - CAST( - COUNT( * ) AS SIGNED ) col2
----
96

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL 2 - - ( 93 ) + - CAST ( - COUNT ( * ) AS INTEGER ) col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT AVG ( DISTINCT CASE - - CAST( NULL AS SIGNED ) WHEN - 23 THEN NULL WHEN + 50 THEN - 42 ELSE NULL END ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT AVG ( DISTINCT CASE - - CAST ( NULL AS INTEGER ) WHEN - 23 THEN NULL WHEN + 50 THEN - 42 ELSE NULL END ) * 53
----
NULL

query I rowsort
SELECT 88 * + CASE 9 WHEN 34 THEN 71 - - - 37 * 61 ELSE - 53 END AS col1
----
-4664

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3177
SELECT 88 AS col1, + 37 DIV + COALESCE ( - COUNT( * ), 23 * + ( 17 ) * - CAST( - NULLIF ( + 73, 11 * - ( - 10 * 83 ) ) + COUNT( * ) AS SIGNED ) + - ( 35 + CAST( - 17 AS SIGNED ) * 60 ) ) AS col1
----
88
-37

skipif mysql # not compatible
query II rowsort label-3177
SELECT 88 AS col1, + 37 / + COALESCE ( - COUNT ( * ), 23 * + ( 17 ) * - CAST ( - NULLIF ( + 73, 11 * - ( - 10 * 83 ) ) + COUNT ( * ) AS INTEGER ) + - ( 35 + CAST ( - 17 AS INTEGER ) * 60 ) ) AS col1
----
88
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3178
SELECT ALL 66 DIV 64, + 64 * + 50 * + + CASE - 95 WHEN - COUNT( * ) * - ( 70 ) THEN NULL WHEN ( - 4 ) THEN NULL ELSE + 12 DIV + 16 + + 43 END AS col2
----
1
137600

skipif mysql # not compatible
query II rowsort label-3178
SELECT ALL 66 / 64, + 64 * + 50 * + + CASE - 95 WHEN - COUNT ( * ) * - ( 70 ) THEN NULL WHEN ( - 4 ) THEN NULL ELSE + 12 / + 16 + + 43 END AS col2
----
1
137600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3179
SELECT + CASE + 67 WHEN - + 95 THEN + CAST( NULL AS SIGNED ) / + + 58 ELSE NULL END + + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT + CASE + 67 WHEN - + 95 THEN + CAST ( NULL AS INTEGER ) / + + 58 ELSE NULL END + + + 14
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT DISTINCT 19 * - - COUNT( * ) * + - 24
----
-456

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT 19 * - - COUNT ( * ) * + - 24
----
-456

query I rowsort
SELECT + NULLIF ( + 56, - 93 ) - + - ( + 14 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT - ( + 1 ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-3184
SELECT - ( + 1 ) / 33
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3185
SELECT + NULLIF ( - COUNT( * ), NULLIF ( - CAST( 87 AS SIGNED ), - + 77 ) ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3185
SELECT + NULLIF ( - COUNT ( * ), NULLIF ( - CAST ( 87 AS INTEGER ), - + 77 ) ) * + COUNT ( * )
----
-1

query II rowsort
SELECT - 48 + 94 AS col2, ( - 28 )
----
46
-28

query II rowsort
SELECT ALL 74, 66 + - 88 AS col2
----
74
-22

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

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

query I rowsort
SELECT ALL + 37 + - - 62 * - 9 * - 0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3190
SELECT - CAST( NULL AS SIGNED ) * + - 76, 7 AS col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-3190
SELECT - CAST ( NULL AS INTEGER ) * + - 76, 7 AS col1
----
NULL
7

query II rowsort
SELECT - 38, + 43 AS col2
----
-38
43

query I rowsort
SELECT CASE 69 WHEN - - 28 * + - 20 * - - 87 THEN NULL WHEN + - 15 THEN 24 - - 13 END
----
NULL

query II rowsort
SELECT DISTINCT - 58 AS col1, - 87 + - 32
----
-58
-119

query I rowsort
SELECT ALL - CASE 61 WHEN - + 70 THEN + CASE 62 WHEN 21 THEN NULL WHEN 14 + 60 * 25 THEN - 73 END WHEN - 28 THEN NULL END + + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT - - 41 + - 98 + - COUNT( * ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-3195
SELECT - - 41 + - 98 + - COUNT ( * ) AS col1
----
-58

query I rowsort
SELECT DISTINCT + - 84 + + 64 AS col2
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3197
SELECT - - SUM( + - 43 ) DIV - + 32 + ( - + 6 ) + + 13 + - 25
----
-17

skipif mysql # not compatible
query I rowsort label-3197
SELECT - - SUM ( + - 43 ) / - + 32 + ( - + 6 ) + + 13 + - 25
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3198
SELECT ALL + 33 * - + COUNT( * ) - 51 DIV + 96 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + 33 * - + COUNT ( * ) - 51 / + 96 AS col2
----
-33

query II rowsort
SELECT + - 86 AS col2, 73
----
-86
73

query I rowsort
SELECT ALL + CASE - + 15 WHEN + 4 + - 72 * 89 THEN + 95 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - 9 * - 95 * + COUNT( * ) + - 82 AS col2
----
773

skipif mysql # not compatible
query I rowsort label-3201
SELECT - 9 * - 95 * + COUNT ( * ) + - 82 AS col2
----
773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3202
SELECT DISTINCT CASE WHEN NOT ( NULL ) IS NULL AND NULL NOT BETWEEN + + 72 AND ( NULL ) THEN - CAST( 30 AS SIGNED ) / + 95 END * SUM( 52 * 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT CASE WHEN NOT ( NULL ) IS NULL AND NULL NOT BETWEEN + + 72 AND ( NULL ) THEN - CAST ( 30 AS INTEGER ) / + 95 END * SUM ( 52 * 17 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3203
SELECT ALL + 68, + ( MAX( ALL + 99 ) ) + + - COALESCE ( CAST( 98 AS SIGNED ), + 20 + ( COALESCE ( 7, NULLIF ( + 74, 54 ) * 1 ) + - 20 ) DIV 0 ) AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-3203
SELECT ALL + 68, + ( MAX ( ALL + 99 ) ) + + - COALESCE ( CAST ( 98 AS INTEGER ), + 20 + ( COALESCE ( 7, NULLIF ( + 74, 54 ) * 1 ) + - 20 ) / 0 ) AS col0
----
68
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3204
SELECT - - MAX( DISTINCT 35 ) * + + ( - NULLIF ( - MIN( CAST( 74 AS SIGNED ) ), + 90 + ( - 45 ) * - ( + 73 ) ) )
----
2590

skipif mysql # not compatible
query I rowsort label-3204
SELECT - - MAX ( DISTINCT 35 ) * + + ( - NULLIF ( - MIN ( CAST ( 74 AS INTEGER ) ), + 90 + ( - 45 ) * - ( + 73 ) ) )
----
2590

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT - 89 + 48 DIV - 52 * + 24 + 16 DIV 94 * + 98
----
-89

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 89 + 48 / - 52 * + 24 + 16 / 94 * + 98
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3206
SELECT + 74 col1, CAST( 25 AS SIGNED ) DIV - + 26 + COUNT( * ) + - ( + 67 )
----
74
-66

skipif mysql # not compatible
query II rowsort label-3206
SELECT + 74 col1, CAST ( 25 AS INTEGER ) / - + 26 + COUNT ( * ) + - ( + 67 )
----
74
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3207
SELECT - NULLIF ( + COUNT( - - 22 ), + 32 ) DIV + 98 + - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-3207
SELECT - NULLIF ( + COUNT ( - - 22 ), + 32 ) / + 98 + - + 31
----
-31

query I rowsort
SELECT ALL 20 * - + 27 * - ( - - 44 ) AS col2
----
23760

onlyif mysql # aggregate syntax: 
query II rowsort label-3209
SELECT ALL 79 * 8 AS col0, - 71 + - COUNT( + 82 ) * - 14
----
632
-57

skipif mysql # not compatible
query II rowsort label-3209
SELECT ALL 79 * 8 AS col0, - 71 + - COUNT ( + 82 ) * - 14
----
632
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT - SUM( DISTINCT - - 71 ) - - 5
----
-66

skipif mysql # not compatible
query I rowsort label-3210
SELECT - SUM ( DISTINCT - - 71 ) - - 5
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL + COUNT( + 77 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + COUNT ( + 77 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT NULLIF ( + 47, + + COUNT( * ) + + CASE + ( 47 ) WHEN 22 THEN ( - 17 ) * NULLIF ( + 18 - - 42, MAX( ALL + 71 ) ) WHEN - COALESCE ( COUNT( * ), ( ( - 77 ) ) ) THEN NULL WHEN - 2 THEN NULL ELSE 14 END + - ( ( - 98 ) + ( 6 ) ) ) * CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT NULLIF ( + 47, + + COUNT ( * ) + + CASE + ( 47 ) WHEN 22 THEN ( - 17 ) * NULLIF ( + 18 - - 42, MAX ( ALL + 71 ) ) WHEN - COALESCE ( COUNT ( * ), ( ( - 77 ) ) ) THEN NULL WHEN - 2 THEN NULL ELSE 14 END + - ( ( - 98 ) + ( 6 ) ) ) * CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 22 * + 59
----
1298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT + CASE + + CAST( NULL AS SIGNED ) WHEN NULLIF ( + ( + NULLIF ( 42, - ( 69 ) * - 44 ) ), - 21 * 12 + 1 ) * - 4 + 51 * - 23 THEN NULL WHEN 39 THEN - 67 * CASE COUNT( * ) * 11 WHEN 53 + ( + 33 + + 76 ) * + ( 38 * 84 ) THEN 27 ELSE NULL END END * + COALESCE ( 2, 49 + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT + CASE + + CAST ( NULL AS INTEGER ) WHEN NULLIF ( + ( + NULLIF ( 42, - ( 69 ) * - 44 ) ), - 21 * 12 + 1 ) * - 4 + 51 * - 23 THEN NULL WHEN 39 THEN - 67 * CASE COUNT ( * ) * 11 WHEN 53 + ( + 33 + + 76 ) * + ( 38 * 84 ) THEN 27 ELSE NULL END END * + COALESCE ( 2, 49 + 36 )
----
NULL

query I rowsort
SELECT + 7 - + 19 - - 92 AS col0
----
80

query I rowsort
SELECT + 24 * + 52 AS col2
----
1248

query I rowsort
SELECT ALL 18 + - 94
----
-76

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL 70 + - NULLIF ( 64, MIN( + - ( - 35 ) ) ) + + 9 + + 16
----
31

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL 70 + - NULLIF ( 64, MIN ( + - ( - 35 ) ) ) + + 9 + + 16
----
31

query I rowsort
SELECT + + 76 + - ( + + 96 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT - - 70 - + - 95 * COUNT( * ) * - COUNT( * ) * 1
----
-25

skipif mysql # not compatible
query I rowsort label-3222
SELECT - - 70 - + - 95 * COUNT ( * ) * - COUNT ( * ) * 1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT ALL - CASE - 54 WHEN - 7 * + - 89 * - + COUNT( * ) * - 20 * + CAST( + 6 AS SIGNED ) - + 31 * CAST( NULL AS SIGNED ) THEN NULL WHEN - CASE 45 WHEN COUNT( * ) / ( + ( - 81 ) / 44 ) THEN - 21 + - 70 END THEN + 15 * 45 END * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL - CASE - 54 WHEN - 7 * + - 89 * - + COUNT ( * ) * - 20 * + CAST ( + 6 AS INTEGER ) - + 31 * CAST ( NULL AS INTEGER ) THEN NULL WHEN - CASE 45 WHEN COUNT ( * ) / ( + ( - 81 ) / 44 ) THEN - 21 + - 70 END THEN + 15 * 45 END * - 98
----
NULL

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

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

query I rowsort
SELECT + + NULLIF ( - ( - 63 ), + 30 ) + - 93 + 20 AS col1
----
-10

query II rowsort
SELECT + 66 * + 27, 53 AS col1
----
1782
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT DISTINCT COALESCE ( + + COUNT( * ), - 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT COALESCE ( + + COUNT ( * ), - 87 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3228
SELECT + MAX( ALL - 60 ) + + - CAST( + - COUNT( * ) AS SIGNED ) DIV - + 73 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3228
SELECT + MAX ( ALL - 60 ) + + - CAST ( + - COUNT ( * ) AS INTEGER ) / - + 73 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3229
SELECT - 93 + + COUNT( * ) + MAX( - - 18 ) + - 65 + 47 * - COUNT( * ) * CAST( NULL AS SIGNED ) * - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT - 93 + + COUNT ( * ) + MAX ( - - 18 ) + - 65 + 47 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3230
SELECT ALL - COUNT( * ) * - 57 DIV + 84 * - - NULLIF ( - - 63, 54 * - + 54 + 81 * - 87 + + 61 ) + + COUNT( 83 ) * + 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - COUNT ( * ) * - 57 / + 84 * - - NULLIF ( - - 63, 54 * - + 54 + 81 * - 87 + + 61 ) + + COUNT ( 83 ) * + 48 AS col0
----
48

query I rowsort
SELECT - + 43 * - 20 * + 65 AS col1
----
55900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3232
SELECT DISTINCT + COALESCE ( + COUNT( * ), + COALESCE ( 25, - CAST( 28 AS SIGNED ) * - 95 - 67 - - ( 42 ) ) ) DIV - 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT + COALESCE ( + COUNT ( * ), + COALESCE ( 25, - CAST ( 28 AS INTEGER ) * - 95 - 67 - - ( 42 ) ) ) / - 77 col0
----
0

query I rowsort
SELECT - - 69 * - 59 AS col0
----
-4071

query I rowsort
SELECT - 21 + + 95 + 56 col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT + - CASE ( + COUNT( * ) ) WHEN + MAX( - 28 ) THEN - - 31 + 63 WHEN - 65 + 96 THEN + ( - COALESCE ( + ( COUNT( * ) ), 57 ) ) WHEN 4 - 94 * - 73 THEN - 80 ELSE 31 * 42 END + 85
----
-1217

skipif mysql # not compatible
query I rowsort label-3235
SELECT + - CASE ( + COUNT ( * ) ) WHEN + MAX ( - 28 ) THEN - - 31 + 63 WHEN - 65 + 96 THEN + ( - COALESCE ( + ( COUNT ( * ) ), 57 ) ) WHEN 4 - 94 * - 73 THEN - 80 ELSE 31 * 42 END + 85
----
-1217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT - 31 * + + CAST( + NULLIF ( + 88, 89 * + + 74 ) AS SIGNED ) + + 57 AS col1
----
-2671

skipif mysql # not compatible
query I rowsort label-3236
SELECT - 31 * + + CAST ( + NULLIF ( + 88, 89 * + + 74 ) AS INTEGER ) + + 57 AS col1
----
-2671

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - - COUNT( * ) + + 39
----
40

skipif mysql # not compatible
query I rowsort label-3237
SELECT - - COUNT ( * ) + + 39
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3238
SELECT ALL + 13 * 12, 70 * + + 30 + COUNT( ALL 87 ) * - 57 col1
----
156
2043

skipif mysql # not compatible
query II rowsort label-3238
SELECT ALL + 13 * 12, 70 * + + 30 + COUNT ( ALL 87 ) * - 57 col1
----
156
2043

query I rowsort
SELECT - 52 * + 20 + + 54
----
-986

query I rowsort
SELECT DISTINCT + - 89 * + + 67
----
-5963

query I rowsort
SELECT 69 * 13 * 22
----
19734

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT 72 + - - 20 + + 99 + - 12 + + MIN( - NULLIF ( ( 87 ), 54 ) ) / + 57 * + COUNT( * ) * - CASE 45 + 78 WHEN ( - 47 ) * - ( NULLIF ( 62, 95 ) + COUNT( * ) ) THEN + 76 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT 72 + - - 20 + + 99 + - 12 + + MIN ( - NULLIF ( ( 87 ), 54 ) ) / + 57 * + COUNT ( * ) * - CASE 45 + 78 WHEN ( - 47 ) * - ( NULLIF ( 62, 95 ) + COUNT ( * ) ) THEN + 76 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT ALL - COALESCE ( - - 78, + 55 - + CAST( NULL AS SIGNED ) + + 23 * + 9 )
----
-78

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - COALESCE ( - - 78, + 55 - + CAST ( NULL AS INTEGER ) + + 23 * + 9 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT ALL - 36 + - - COALESCE ( + COUNT( * ), - NULLIF ( - 69, + + 55 ), + 80 ) col1
----
-35

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL - 36 + - - COALESCE ( + COUNT ( * ), - NULLIF ( - 69, + + 55 ), + 80 ) col1
----
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT COUNT( * ) * + + COUNT( * ) + - 35 + - COUNT( * ) + 34 + + COUNT( * ) * + 68 + + 62
----
129

skipif mysql # not compatible
query I rowsort label-3246
SELECT COUNT ( * ) * + + COUNT ( * ) + - 35 + - COUNT ( * ) + 34 + + COUNT ( * ) * + 68 + + 62
----
129

query I rowsort
SELECT 68 + ( 71 ) AS col0
----
139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL COUNT( * ) + + 96
----
97

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL COUNT ( * ) + + 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT 97 * + + CASE + ( + COUNT( ALL + + 56 ) ) WHEN - 54 THEN 49 + + 37 * 60 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT 97 * + + CASE + ( + COUNT ( ALL + + 56 ) ) WHEN - 54 THEN 49 + + 37 * 60 END col1
----
NULL

query I rowsort
SELECT ALL - 46 * - 30
----
1380

query I rowsort
SELECT DISTINCT + 92 + - 48 AS col1
----
44

query II rowsort
SELECT ALL 79 AS col1, 54
----
79
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3254
SELECT COALESCE ( + COUNT( * ), 1 DIV 3 DIV + 53 * - 33 ) + 86
----
87

skipif mysql # not compatible
query I rowsort label-3254
SELECT COALESCE ( + COUNT ( * ), 1 / 3 / + 53 * - 33 ) + 86
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL + COUNT( DISTINCT 23 ) + + 57 + - 90 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL + COUNT ( DISTINCT 23 ) + + 57 + - 90 AS col2
----
-32

query I rowsort
SELECT DISTINCT - 19 + - 5 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT DISTINCT COALESCE ( + - 54, - 6 DIV + + 60 + - 85 ) + NULLIF ( + - 15, 43 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT COALESCE ( + - 54, - 6 / + + 60 + - 85 ) + NULLIF ( + - 15, 43 ) AS col1
----
-69

query I rowsort
SELECT ALL CASE - 50 WHEN + + 67 * + + 92 + 69 THEN - - 65 * + + 54 - + + 85 ELSE NULL END
----
NULL

query II rowsort
SELECT - 98 + - - ( + + 15 ) col2, - ( + 54 ) * 78 - - + 35 col0
----
-83
-4177

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

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

query I rowsort
SELECT ALL 81 - 93
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3262
SELECT 48 AS col1, CASE COALESCE ( - - 1, 61 ) WHEN 5 * + 15 - + 93 + ( + 45 ) THEN + 15 END + + SUM( + 36 ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-3262
SELECT 48 AS col1, CASE COALESCE ( - - 1, 61 ) WHEN 5 * + 15 - + 93 + ( + 45 ) THEN + 15 END + + SUM ( + 36 ) AS col0
----
48
NULL

query I rowsort
SELECT ALL 95 * + 22 AS col1
----
2090

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + 64 * + 14 + + NULLIF ( - 51, - - MAX( + 74 ) ) * - - COUNT( * )
----
845

skipif mysql # not compatible
query I rowsort label-3264
SELECT + 64 * + 14 + + NULLIF ( - 51, - - MAX ( + 74 ) ) * - - COUNT ( * )
----
845

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT DISTINCT + 53 * + CASE + 99 WHEN + 97 THEN NULL WHEN + ( + 72 ) THEN + + SUM( DISTINCT + - 9 ) + 32 * + 54 END + + COUNT( DISTINCT + 6 + - 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT + 53 * + CASE + 99 WHEN + 97 THEN NULL WHEN + ( + 72 ) THEN + + SUM ( DISTINCT + - 9 ) + 32 * + 54 END + + COUNT ( DISTINCT + 6 + - 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3266
SELECT ALL - 57, ( 87 ) * + SUM( 87 ) * - 32 + 64 + - COUNT( * ) + + 22 AS col0
----
-57
-242123

skipif mysql # not compatible
query II rowsort label-3266
SELECT ALL - 57, ( 87 ) * + SUM ( 87 ) * - 32 + 64 + - COUNT ( * ) + + 22 AS col0
----
-57
-242123

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL - 20 * - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - 20 * - COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT ALL - COUNT( * ) * + + 64
----
-64

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL - COUNT ( * ) * + + 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT 46 * MIN( - 1 ) + - 97 + + 16
----
-127

skipif mysql # not compatible
query I rowsort label-3269
SELECT 46 * MIN ( - 1 ) + - 97 + + 16
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT - ( - COUNT( - + 56 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3270
SELECT - ( - COUNT ( - + 56 ) )
----
1

query I rowsort
SELECT DISTINCT - 76 * 33 col2
----
-2508

query II rowsort
SELECT + 14 AS col2, + 39 AS col2
----
14
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT ALL - + 99 DIV + - 43
----
2

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - + 99 / + - 43
----
2

query I rowsort
SELECT + - COALESCE ( 24, + 46 + 1 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3275
SELECT ALL - 76 / - CASE - - CASE - 33 WHEN CAST( NULL AS SIGNED ) * - ( - + 55 ) - + 47 THEN NULL ELSE CASE + 10 WHEN 46 / 18 THEN NULL WHEN - 66 THEN 80 + - 7 END END WHEN - 52 THEN + 69 WHEN 21 / 94 THEN + NULLIF ( + CASE + 62 WHEN 24 THEN 82 ELSE - 91 + 35 * 95 END, + 79 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL - 76 / - CASE - - CASE - 33 WHEN CAST ( NULL AS INTEGER ) * - ( - + 55 ) - + 47 THEN NULL ELSE CASE + 10 WHEN 46 / 18 THEN NULL WHEN - 66 THEN 80 + - 7 END END WHEN - 52 THEN + 69 WHEN 21 / 94 THEN + NULLIF ( + CASE + 62 WHEN 24 THEN 82 ELSE - 91 + 35 * 95 END, + 79 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3276
SELECT 71 * + + 90 + MAX( - - 32 ) * 14 DIV + COUNT( * ) col1
----
6838

skipif mysql # not compatible
query I rowsort label-3276
SELECT 71 * + + 90 + MAX ( - - 32 ) * 14 / + COUNT ( * ) col1
----
6838

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT SUM( ALL + 7 ) + - - 81
----
88

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT SUM ( ALL + 7 ) + - - 81
----
88

query I rowsort
SELECT ALL - ( - ( - 83 ) ) AS col0
----
-83

query I rowsort
SELECT ALL 43 + - 66 * 74 AS col1
----
-4841

onlyif mysql # aggregate syntax: 
query II rowsort label-3280
SELECT 4 + + 65 AS col2, COUNT( * ) col1
----
69
1

skipif mysql # not compatible
query II rowsort label-3280
SELECT 4 + + 65 AS col2, COUNT ( * ) col1
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT + SUM( + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3281
SELECT + SUM ( + 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT - 51 * + - 66 * + NULLIF ( COUNT( * ), SUM( - 42 ) + + 23 ) + + + COUNT( * ) + + 37 + - 42 * + 8 AS col1
----
3068

skipif mysql # not compatible
query I rowsort label-3282
SELECT - 51 * + - 66 * + NULLIF ( COUNT ( * ), SUM ( - 42 ) + + 23 ) + + + COUNT ( * ) + + 37 + - 42 * + 8 AS col1
----
3068

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ALL 1 * + - COUNT( * ) * - - NULLIF ( + + 91, - CASE + SUM( + - 78 ) WHEN 56 * + + 57 THEN COUNT( * ) * SUM( DISTINCT 97 ) ELSE NULL END - COUNT( * ) )
----
-91

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL 1 * + - COUNT ( * ) * - - NULLIF ( + + 91, - CASE + SUM ( + - 78 ) WHEN 56 * + + 57 THEN COUNT ( * ) * SUM ( DISTINCT 97 ) ELSE NULL END - COUNT ( * ) )
----
-91

query I rowsort
SELECT 94 * ( - 24 )
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL + COUNT( * ) + - - 75 - - MAX( - 85 ) * - 50 * + 55 AS col1
----
233826

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + COUNT ( * ) + - - 75 - - MAX ( - 85 ) * - 50 * + 55 AS col1
----
233826

query II rowsort
SELECT DISTINCT - ( + - 98 ) AS col2, 32 * + 98 AS col0
----
98
3136

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT ALL - ( 85 ) + 17 + - 85 - 58 DIV + - 50 + + - 73
----
-225

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - ( 85 ) + 17 + - 85 - 58 / + - 50 + + - 73
----
-225

query I rowsort
SELECT 88 * - - 32 * + - 16 + - 29 * + 7
----
-45259

query I rowsort
SELECT 32 * + 65 AS col1
----
2080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3290
SELECT COALESCE ( - - 68, + 29, - + ( COALESCE ( - 5, + 29, 25, + 80 DIV COUNT( * ) ) ) ) - 55 * 93
----
-5047

skipif mysql # not compatible
query I rowsort label-3290
SELECT COALESCE ( - - 68, + 29, - + ( COALESCE ( - 5, + 29, 25, + 80 / COUNT ( * ) ) ) ) - 55 * 93
----
-5047

query I rowsort
SELECT DISTINCT - COALESCE ( - 11, + 17, ( 19 ) ) * + - 25 * 55
----
-15125

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT 46 - - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3292
SELECT 46 - - COUNT ( * ) AS col0
----
47

query I rowsort
SELECT DISTINCT ( - - 62 )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT ALL - - 35 DIV - 79 col1
----
0

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - - 35 / - 79 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ( + MAX( + ( 2 ) ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3295
SELECT ( + MAX ( + ( 2 ) ) ) AS col0
----
2

query I rowsort
SELECT DISTINCT - 80 * - + 32 * - 55 AS col2
----
-140800

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT - 28 + + + MIN( DISTINCT 39 ) + + COALESCE ( + 18, + CASE + + 61 WHEN + 77 * ( 51 ) * + MAX( ALL 85 ) THEN + 11 ELSE - 65 + + CASE 12 + - 37 WHEN 41 + 4 / 68 THEN - 76 END END ) col0
----
29

skipif mysql # not compatible
query I rowsort label-3298
SELECT - 28 + + + MIN ( DISTINCT 39 ) + + COALESCE ( + 18, + CASE + + 61 WHEN + 77 * ( 51 ) * + MAX ( ALL 85 ) THEN + 11 ELSE - 65 + + CASE 12 + - 37 WHEN 41 + 4 / 68 THEN - 76 END END ) col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT 64 + + MIN( - + 37 ) * - + COALESCE ( 43, - COUNT( * ) )
----
1655

skipif mysql # not compatible
query I rowsort label-3299
SELECT 64 + + MIN ( - + 37 ) * - + COALESCE ( 43, - COUNT ( * ) )
----
1655

query I rowsort
SELECT - 55 + + 33 AS col2
----
-22

query I rowsort
SELECT ALL CASE WHEN NULL IS NOT NULL THEN - 72 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ( + - 63 ) + - COUNT( DISTINCT - 65 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3302
SELECT ( + - 63 ) + - COUNT ( DISTINCT - 65 ) AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3303
SELECT ALL + 28 + - 39 / CAST( NULL AS SIGNED ) * 20, + SUM( DISTINCT + - 55 ) AS col2
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL + 28 + - 39 / CAST ( NULL AS INTEGER ) * 20, + SUM ( DISTINCT + - 55 ) AS col2
----
NULL
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + + COUNT( * ) + COUNT( * ) + - 7 + + 63 * + 53 + + COUNT( * ) * - 93 AS col2
----
3241

skipif mysql # not compatible
query I rowsort label-3304
SELECT + + COUNT ( * ) + COUNT ( * ) + - 7 + + 63 * + 53 + + COUNT ( * ) * - 93 AS col2
----
3241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3305
SELECT ALL - COALESCE ( - 27, - - COUNT( * ) * + SUM( - + 45 ) * + - COUNT( * ) * + COUNT( * ) DIV + CAST( + 27 AS SIGNED ) + CAST( 92 AS SIGNED ), 86 DIV + 51 + 92 DIV 79 ) + + 83
----
110

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - COALESCE ( - 27, - - COUNT ( * ) * + SUM ( - + 45 ) * + - COUNT ( * ) * + COUNT ( * ) / + CAST ( + 27 AS INTEGER ) + CAST ( 92 AS INTEGER ), 86 / + 51 + 92 / 79 ) + + 83
----
110

query I rowsort
SELECT DISTINCT 84 * + 51 + + 33
----
4317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3307
SELECT + - CASE WHEN NOT NULL IS NULL THEN 12 ELSE NULL END / - - SUM( ALL + ( CAST( + 63 AS SIGNED ) ) ) + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT + - CASE WHEN NOT NULL IS NULL THEN 12 ELSE NULL END / - - SUM ( ALL + ( CAST ( + 63 AS INTEGER ) ) ) + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT COALESCE ( - 42, + 25, ( - MAX( ALL + 33 ) ) * - ( + 98 ), + + 32 )
----
-42

skipif mysql # not compatible
query I rowsort label-3308
SELECT COALESCE ( - 42, + 25, ( - MAX ( ALL + 33 ) ) * - ( + 98 ), + + 32 )
----
-42

query I rowsort
SELECT + 26 * + 14
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT CASE + 81 WHEN + - 44 / - COUNT( * ) THEN + - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT CASE + 81 WHEN + - 44 / - COUNT ( * ) THEN + - 32 END
----
NULL

query I rowsort
SELECT + 8 + - COALESCE ( ( 85 ), + 35, + + 51 ) AS col0
----
-77

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

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

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

skipif mysql # not compatible
query I rowsort label-3313
SELECT NULLIF ( COUNT ( * ), - 73 + + 11 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT 91 * + CASE - + 78 WHEN - COUNT( * ) THEN CASE + - 97 WHEN + + 72 / COUNT( * ) + - 40 THEN NULL WHEN - 71 THEN - 49 + ( COALESCE ( 85, CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN - ( - 33 ) * + ( 61 - 29 ) END / - ( 59 ) + COUNT( * ), + 3 * ( 41 * MAX( DISTINCT - 60 ) ) ) ) * - MIN( DISTINCT 47 ) END WHEN - 76 THEN COALESCE ( 70, - 85 * + COUNT( * ) ) * 12 + + 79 / - CAST( + 94 + ( 77 ) AS SIGNED ) ELSE NULL END * - 34 + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT 91 * + CASE - + 78 WHEN - COUNT ( * ) THEN CASE + - 97 WHEN + + 72 / COUNT ( * ) + - 40 THEN NULL WHEN - 71 THEN - 49 + ( COALESCE ( 85, CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN - ( - 33 ) * + ( 61 - 29 ) END / - ( 59 ) + COUNT ( * ), + 3 * ( 41 * MAX ( DISTINCT - 60 ) ) ) ) * - MIN ( DISTINCT 47 ) END WHEN - 76 THEN COALESCE ( 70, - 85 * + COUNT ( * ) ) * 12 + + 79 / - CAST ( + 94 + ( 77 ) AS INTEGER ) ELSE NULL END * - 34 + 99 AS col1
----
NULL

query I rowsort
SELECT ALL + 38 * - + 76 + + 60 col0
----
-2828

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT + CASE WHEN NOT NULL = + 66 THEN + + 50 * - COUNT( * ) / ( - + 26 ) * + CASE - + 89 WHEN - 42 THEN 70 END END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT + CASE WHEN NOT NULL = + 66 THEN + + 50 * - COUNT ( * ) / ( - + 26 ) * + CASE - + 89 WHEN - 42 THEN 70 END END * COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT + 26 AS col2, - 92
----
26
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT CASE COUNT( * ) WHEN 38 THEN + + NULLIF ( + 72, - COALESCE ( - COUNT( * ), + 36 ) * + 30 + + 9 + + AVG ( DISTINCT 24 ) ) + 40 / 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT CASE COUNT ( * ) WHEN 38 THEN + + NULLIF ( + 72, - COALESCE ( - COUNT ( * ), + 36 ) * + 30 + + 9 + + AVG ( DISTINCT 24 ) ) + 40 / 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT ( - + 31 ) * - COUNT( * ) + - ( - 31 )
----
62

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT ( - + 31 ) * - COUNT ( * ) + - ( - 31 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT DISTINCT + COUNT( * ) * 43 * + COUNT( * ) - 53 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT + COUNT ( * ) * 43 * + COUNT ( * ) - 53 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT MAX( ALL + + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-3321
SELECT MAX ( ALL + + 69 )
----
69

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

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

query I rowsort
SELECT + 30 + + 63 + + 40
----
133

query I rowsort
SELECT DISTINCT - ( - 34 ) * - 42 - + 83 * - ( - 48 ) * 64 AS col1
----
-256404

query I rowsort
SELECT ALL - 11 * + 33 AS col0
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL + COUNT( ALL 50 ) * + 93 + - 75 + - - 56 - + COUNT( * ) + + + 69
----
142

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL + COUNT ( ALL 50 ) * + 93 + - 75 + - - 56 - + COUNT ( * ) + + + 69
----
142

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

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

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

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

query I rowsort
SELECT - 46 + - - 63 + + 26 * 40 col1
----
1057

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL COALESCE ( + + MAX( DISTINCT - 16 ), 69 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL COALESCE ( + + MAX ( DISTINCT - 16 ), 69 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - 60 + - MIN( ALL - 88 ) + - 92 + + 70 - - 7 * + 9 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3331
SELECT - 60 + - MIN ( ALL - 88 ) + - 92 + + 70 - - 7 * + 9 AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT DISTINCT - ( + CASE ( + - 33 ) WHEN + 38 * + - 83 * + CAST( NULL AS SIGNED ) THEN + 74 * - + 21 + + COALESCE ( + 46, + 81 * 90 ) + 79 * - 70 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - ( + CASE ( + - 33 ) WHEN + 38 * + - 83 * + CAST ( NULL AS INTEGER ) THEN + 74 * - + 21 + + COALESCE ( + 46, + 81 * 90 ) + 79 * - 70 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - - COUNT( * ) * + 46 col0
----
46

skipif mysql # not compatible
query I rowsort label-3333
SELECT - - COUNT ( * ) * + 46 col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT - - 31 + CASE AVG ( - 26 ) WHEN + - 67 THEN NULL WHEN - 96 - 38 THEN NULL ELSE + - SUM( 5 ) END
----
26

skipif mysql # not compatible
query I rowsort label-3334
SELECT - - 31 + CASE AVG ( - 26 ) WHEN + - 67 THEN NULL WHEN - 96 - 38 THEN NULL ELSE + - SUM ( 5 ) END
----
26

query I rowsort
SELECT ALL - + 28 + + 60 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL + 76 + - 30 + - 96 * - ( + 45 ) * - - MAX( + 45 ) + 99 + + 14 AS col1
----
194559

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL + 76 + - 30 + - 96 * - ( + 45 ) * - - MAX ( + 45 ) + 99 + + 14 AS col1
----
194559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3337
SELECT - 76 * - + CAST( + 58 AS SIGNED ) * - MAX( + 67 )
----
-295336

skipif mysql # not compatible
query I rowsort label-3337
SELECT - 76 * - + CAST ( + 58 AS INTEGER ) * - MAX ( + 67 )
----
-295336

query I rowsort
SELECT - CASE + + 29 WHEN + 94 THEN + 9 WHEN + 26 THEN + 92 END * 55
----
NULL

query I rowsort
SELECT ALL + - 40 + - 30 * + + 81
----
-2470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3340
SELECT - + COUNT( * ) DIV 54 DIV 41 + ( 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3340
SELECT - + COUNT ( * ) / 54 / 41 + ( 26 )
----
26

query I rowsort
SELECT + + 5 * + 59 * - COALESCE ( - + 34, - + 2 ) AS col0
----
10030

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - COUNT( * ) * COUNT( 99 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3342
SELECT - COUNT ( * ) * COUNT ( 99 ) AS col2
----
-1

query I rowsort
SELECT + 8 * + 64
----
512

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3344
SELECT CAST( - + 90 AS SIGNED ), 34 + + 31 col0
----
-90
65

skipif mysql # not compatible
query II rowsort label-3344
SELECT CAST ( - + 90 AS INTEGER ), 34 + + 31 col0
----
-90
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3345
SELECT ALL + CAST( - - 44 AS SIGNED ) DIV - - 67 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL + CAST ( - - 44 AS INTEGER ) / - - 67 + COUNT ( * ) AS col2
----
1

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

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

query I rowsort
SELECT + CASE - + 29 WHEN + 77 - - - 23 - 96 + - 74 THEN - 35 ELSE + 3 * 73 END
----
219

query I rowsort
SELECT + NULLIF ( 61, - 37 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3349
SELECT ALL NULLIF ( MIN( - 80 ), - COUNT( 99 ) * 23 - 55 + - ( + + CASE + CAST( - NULLIF ( COUNT( * ), 59 ) AS SIGNED ) WHEN 63 * 7 THEN 61 + 39 END ) + ( - NULLIF ( + 86, - 34 ) ) * - 85 ) DIV 34 - - 75 col2
----
73

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL NULLIF ( MIN ( - 80 ), - COUNT ( 99 ) * 23 - 55 + - ( + + CASE + CAST ( - NULLIF ( COUNT ( * ), 59 ) AS INTEGER ) WHEN 63 * 7 THEN 61 + 39 END ) + ( - NULLIF ( + 86, - 34 ) ) * - 85 ) / 34 - - 75 col2
----
73

query I rowsort
SELECT DISTINCT + ( + + 89 )
----
89

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

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

query I rowsort
SELECT + 42 * + 16
----
672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3353
SELECT 24 DIV + 87 + COUNT( * )
----
1

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

query I rowsort
SELECT + NULLIF ( - - 13, 63 * + 36 - + 6 ) AS col1
----
13

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3356
SELECT ALL + 77, MAX( DISTINCT + ( - + ( - 60 ) ) ) col2
----
77
60

skipif mysql # not compatible
query II rowsort label-3356
SELECT ALL + 77, MAX ( DISTINCT + ( - + ( - 60 ) ) ) col2
----
77
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT + COUNT( * ) * 93 * + - 35
----
-3255

skipif mysql # not compatible
query I rowsort label-3357
SELECT + COUNT ( * ) * 93 * + - 35
----
-3255

query II rowsort
SELECT DISTINCT + 89, 72 AS col1
----
89
72

onlyif mysql # aggregate syntax: 
query III rowsort label-3359
SELECT ALL + 93 AS col2, - 23 + 64 - 33 * 2 + + COUNT( ALL - 95 ), - - 16 AS col0
----
93
-24
16

skipif mysql # not compatible
query III rowsort label-3359
SELECT ALL + 93 AS col2, - 23 + 64 - 33 * 2 + + COUNT ( ALL - 95 ), - - 16 AS col0
----
93
-24
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3360
SELECT ALL 70 DIV - - ( ( + 15 ) ) * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL 70 / - - ( ( + 15 ) ) * + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3361
SELECT + COUNT( * ) * + - 86 + + COALESCE ( - - 23, - 11 DIV + COUNT( * ), - 38 )
----
-63

skipif mysql # not compatible
query I rowsort label-3361
SELECT + COUNT ( * ) * + - 86 + + COALESCE ( - - 23, - 11 / + COUNT ( * ), - 38 )
----
-63

query I rowsort
SELECT + - 91 - - - 71 * - 78 AS col2
----
5447

onlyif mysql # DIV for integer division: 
query I rowsort label-3363
SELECT ALL + 21 DIV - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL + 21 / - 47 AS col1
----
0

query I rowsort
SELECT + + COALESCE ( - 72, - 43 * + 16 + + 31 + + + 1 ) * 62 + - + 60 + - 60 * 14 * + 92 * - 37
----
2854836

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT - + ( + 20 ) * + 68 + - CASE + 94 WHEN - COALESCE ( + COALESCE ( 54, COUNT( * ) * + + 44 * 44, + 83, NULLIF ( + 82, 43 * + MIN( - 55 * 92 ) ) ), 57 * + 77 ) THEN 26 + - 39 / 0 END * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT - + ( + 20 ) * + 68 + - CASE + 94 WHEN - COALESCE ( + COALESCE ( 54, COUNT ( * ) * + + 44 * 44, + 83, NULLIF ( + 82, 43 * + MIN ( - 55 * 92 ) ) ), 57 * + 77 ) THEN 26 + - 39 / 0 END * 93
----
NULL

query I rowsort
SELECT + - 41 * + - NULLIF ( + 1, - - AVG ( DISTINCT - 68 ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL + 48 * - 33 + COUNT( * )
----
-1583

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + 48 * - 33 + COUNT ( * )
----
-1583

query II rowsort
SELECT - + 91 AS col2, + 53
----
-91
53

query I rowsort
SELECT 50 * + 24 - + 66 * + 92 AS col0
----
-4872

query II rowsort
SELECT DISTINCT 26 AS col1, 3 + + 99 AS col2
----
26
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL + ( - - 22 ) + - + ( CASE - + 91 WHEN + AVG ( DISTINCT + 46 ) THEN NULL WHEN + 13 THEN NULL ELSE - 59 END ) * - - COALESCE ( - - COUNT( * ), 38 * - 54, 48 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL + ( - - 22 ) + - + ( CASE - + 91 WHEN + AVG ( DISTINCT + 46 ) THEN NULL WHEN + 13 THEN NULL ELSE - 59 END ) * - - COALESCE ( - - COUNT ( * ), 38 * - 54, 48 ) AS col0
----
81

query I rowsort
SELECT 24 - - 3 * - 43 AS col1
----
-105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3373
SELECT ALL COALESCE ( 87, ( - - 57 ), - 6 DIV 20 ) + + - COALESCE ( + 79, - + NULLIF ( + + 36, MAX( 75 ) * + MAX( - 38 ) ), - 0, 18 * COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL COALESCE ( 87, ( - - 57 ), - 6 / 20 ) + + - COALESCE ( + 79, - + NULLIF ( + + 36, MAX ( 75 ) * + MAX ( - 38 ) ), - 0, 18 * COUNT ( * ) )
----
8

query I rowsort
SELECT ALL - - 92 + + - CASE - 41 WHEN + 75 THEN + 22 ELSE - 41 END
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT + COUNT( * ) + + MIN( DISTINCT 31 )
----
32

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + COUNT ( * ) + + MIN ( DISTINCT 31 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT DISTINCT - NULLIF ( 23, - COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT - NULLIF ( 23, - COUNT ( * ) )
----
-23

query I rowsort
SELECT + 27 + - 80 * - - 23
----
-1813

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3378
SELECT COUNT( CAST( - + 1 AS DECIMAL ) ) - COUNT( - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-3378
SELECT COUNT ( CAST ( - + 1 AS REAL ) ) - COUNT ( - 55 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT 78 * SUM( DISTINCT - - 59 ) col1
----
4602

skipif mysql # not compatible
query I rowsort label-3380
SELECT 78 * SUM ( DISTINCT - - 59 ) col1
----
4602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT 81 + - CAST( - 86 AS SIGNED ) AS col1
----
167

skipif mysql # not compatible
query I rowsort label-3381
SELECT 81 + - CAST ( - 86 AS INTEGER ) AS col1
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT 87 + + 76 + + ( - - COUNT( * ) ) AS col0
----
164

skipif mysql # not compatible
query I rowsort label-3382
SELECT 87 + + 76 + + ( - - COUNT ( * ) ) AS col0
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3383
SELECT ALL + MAX( - - CASE 75 WHEN 78 / 19 THEN NULL WHEN + ( - 55 ) THEN + + 39 END ) * - NULLIF ( + COUNT( * ), COUNT( * ) / + + 40 - 2 + COALESCE ( CASE CAST( - 98 AS SIGNED ) WHEN - 97 / 44 THEN NULL ELSE - 12 * 22 END, 61, MIN( 90 ) * 56 + - COALESCE ( 66 + 1, 13 / - 8 + - COUNT( * ) ) * - 21 ) ) + COUNT( DISTINCT 44 ) * + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL + MAX ( - - CASE 75 WHEN 78 / 19 THEN NULL WHEN + ( - 55 ) THEN + + 39 END ) * - NULLIF ( + COUNT ( * ), COUNT ( * ) / + + 40 - 2 + COALESCE ( CASE CAST ( - 98 AS INTEGER ) WHEN - 97 / 44 THEN NULL ELSE - 12 * 22 END, 61, MIN ( 90 ) * 56 + - COALESCE ( 66 + 1, 13 / - 8 + - COUNT ( * ) ) * - 21 ) ) + COUNT ( DISTINCT 44 ) * + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT 97 + + COUNT( * ) - 61 * + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-3384
SELECT 97 + + COUNT ( * ) - 61 * + COUNT ( * ) AS col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT ALL + 19 DIV + NULLIF ( + 46, ( + + 86 ) * + - 15 + + 6 ) * + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL + 19 / + NULLIF ( + 46, ( + + 86 ) * + - 15 + + 6 ) * + 49 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3386
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2, 40, - 1 AS col1
----
NULL
40
-1

skipif mysql # not compatible
query III rowsort label-3386
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2, 40, - 1 AS col1
----
NULL
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT 6 + + - 36 * - + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3387
SELECT 6 + + - 36 * - + COUNT ( * )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3388
SELECT 87 DIV 27 * + + 74
----
222

skipif mysql # not compatible
query I rowsort label-3388
SELECT 87 / 27 * + + 74
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-3389
SELECT 22 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-3389
SELECT 22 / 59
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3391
SELECT DISTINCT - ( - - 0 ), + 36 * + 81 * CASE - 76 WHEN - AVG ( - ( - + 92 ) ) THEN + - 92 * - CASE + 13 WHEN - COALESCE ( CAST( 70 AS SIGNED ), - 46 ) THEN - 93 * 78 END ELSE NULL END col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3391
SELECT DISTINCT - ( - - 0 ), + 36 * + 81 * CASE - 76 WHEN - AVG ( - ( - + 92 ) ) THEN + - 92 * - CASE + 13 WHEN - COALESCE ( CAST ( 70 AS INTEGER ), - 46 ) THEN - 93 * 78 END ELSE NULL END col2
----
0
NULL

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

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

query I rowsort
SELECT 22 * + 39 * 14 AS col1
----
12012

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3394
SELECT DISTINCT - ( - 72 ) col1, + CASE + CAST( - 82 AS DECIMAL ) WHEN 79 THEN - AVG ( ALL + 52 ) END + 84 + 8 + 84 + + 18 col0
----
72
NULL

skipif mysql # not compatible
query II rowsort label-3394
SELECT DISTINCT - ( - 72 ) col1, + CASE + CAST ( - 82 AS REAL ) WHEN 79 THEN - AVG ( ALL + 52 ) END + 84 + 8 + 84 + + 18 col0
----
72
NULL

query I rowsort
SELECT DISTINCT 29 * - + 79
----
-2291

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT COALESCE ( - NULLIF ( + ( COUNT( * ) ), - 16 * - - NULLIF ( - MIN( - - 65 ), MIN( DISTINCT 76 ) ) + - 62 + - + 94 + 38 ), 44 * 37 ) * + 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3396
SELECT COALESCE ( - NULLIF ( + ( COUNT ( * ) ), - 16 * - - NULLIF ( - MIN ( - - 65 ), MIN ( DISTINCT 76 ) ) + - 62 + - + 94 + 38 ), 44 * 37 ) * + 47 AS col1
----
-47

query I rowsort
SELECT + NULLIF ( + 27, - 62 - - 72 * - 42 * + 69 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT 45 * MIN( - 77 ) * 99 + - COUNT( ALL 38 ) + 96 AS col1
----
-342940

skipif mysql # not compatible
query I rowsort label-3398
SELECT 45 * MIN ( - 77 ) * 99 + - COUNT ( ALL 38 ) + 96 AS col1
----
-342940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT COUNT( * ) * ( 53 ) * + 9 - + + CAST( NULL AS SIGNED ) + + CASE - COALESCE ( + 71, - 33 ) WHEN + 24 THEN ( - ( ( - 32 ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT COUNT ( * ) * ( 53 ) * + 9 - + + CAST ( NULL AS INTEGER ) + + CASE - COALESCE ( + 71, - 33 ) WHEN + 24 THEN ( - ( ( - 32 ) ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3400
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col0, 24 * + 37 AS col0
----
-1
888

skipif mysql # not compatible
query II rowsort label-3400
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0, 24 * + 37 AS col0
----
-1
888

query I rowsort
SELECT 70 * + 48 * + 80 AS col0
----
268800

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT COUNT( * ) * COUNT( ALL - 39 ) + + - 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3402
SELECT COUNT ( * ) * COUNT ( ALL - 39 ) + + - 30 AS col0
----
-29

query I rowsort
SELECT ALL - 98 + + 94
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT COUNT( * ) + - 76 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3404
SELECT COUNT ( * ) + - 76 AS col2
----
-75

query I rowsort
SELECT ALL + 18 + + 58
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3406
SELECT ALL + SUM( ALL - 13 ) DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL + SUM ( ALL - 13 ) / + 52 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT - COALESCE ( 50, + 82 DIV 20 )
----
-50

skipif mysql # not compatible
query I rowsort label-3407
SELECT - COALESCE ( 50, + 82 / 20 )
----
-50

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT + 97 DIV 15 + + 58 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3409
SELECT + 97 / 15 + + 58 AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT 16 + + COUNT( * ) AS col1, - 32 + - + 79
----
17
-111

skipif mysql # not compatible
query II rowsort label-3410
SELECT 16 + + COUNT ( * ) AS col1, - 32 + - + 79
----
17
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT 18 * 34 + - 3 DIV + 59 DIV + 68 DIV + 64 AS col0
----
612

skipif mysql # not compatible
query I rowsort label-3411
SELECT 18 * 34 + - 3 / + 59 / + 68 / + 64 AS col0
----
612

query I rowsort
SELECT - ( - 15 ) + 43
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3413
SELECT 8 + - 34 DIV - 6 + - + 66 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3413
SELECT 8 + - 34 / - 6 + - + 66 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT CASE + - 16 WHEN - - 83 THEN 64 WHEN - 85 * - 76 THEN NULL ELSE - MAX( ALL 66 ) END * + 77 AS col1
----
-5082

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT CASE + - 16 WHEN - - 83 THEN 64 WHEN - 85 * - 76 THEN NULL ELSE - MAX ( ALL 66 ) END * + 77 AS col1
----
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT - 55 - SUM( ALL 69 ) AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT - 55 - SUM ( ALL 69 ) AS col1
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT - COUNT( * ) AS col1, 24 + 0 * 60 * + + 40
----
-1
24

skipif mysql # not compatible
query II rowsort label-3416
SELECT - COUNT ( * ) AS col1, 24 + 0 * 60 * + + 40
----
-1
24

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

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

query II rowsort
SELECT DISTINCT 57 AS col1, ( 20 ) AS col0
----
57
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3419
SELECT DISTINCT - 54, + 92 DIV - 28 + - 86 AS col0, + - COUNT( * ) AS col2
----
-54
-89
-1

skipif mysql # not compatible
query III rowsort label-3419
SELECT DISTINCT - 54, + 92 / - 28 + - 86 AS col0, + - COUNT ( * ) AS col2
----
-54
-89
-1

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

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - SUM ( - 81 )
----
81

query I rowsort
SELECT 41 * 54
----
2214

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT 47 DIV + + 30 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3422
SELECT 47 / + + 30 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3423
SELECT ALL - CAST( NULL AS SIGNED ) * - + 42 + - 56 * + + 91 * 36 + + - 69 - - + CAST( + 56 AS DECIMAL ) + + - ( CASE - 14 WHEN - 82 THEN NULL ELSE 42 / + 41 + - 45 * COUNT( * ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 42 + - 56 * + + 91 * 36 + + - 69 - - + CAST ( + 56 AS REAL ) + + - ( CASE - 14 WHEN - 82 THEN NULL ELSE 42 / + 41 + - 45 * COUNT ( * ) END ) AS col0
----
NULL

query I rowsort
SELECT - 96 * 45 + - 63 + 58 AS col2
----
-4325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3425
SELECT 28 * + ( - - COUNT( + 33 ) ) DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT 28 * + ( - - COUNT ( + 33 ) ) / 93 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT - 18 DIV 52 + - 62 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 18 / 52 + - 62 AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3427
SELECT - 79 DIV + CAST( 50 AS SIGNED ) * - COUNT( * ) + + + 39 * 29 + + + 81
----
1213

skipif mysql # not compatible
query I rowsort label-3427
SELECT - 79 / + CAST ( 50 AS INTEGER ) * - COUNT ( * ) + + + 39 * 29 + + + 81
----
1213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3428
SELECT DISTINCT + 56, - CAST( NULL AS SIGNED ) * 81 * CASE WHEN NULL IS NULL THEN ( 95 ) ELSE 65 * - + 46 END AS col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-3428
SELECT DISTINCT + 56, - CAST ( NULL AS INTEGER ) * 81 * CASE WHEN NULL IS NULL THEN ( 95 ) ELSE 65 * - + 46 END AS col0
----
56
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT DISTINCT - - 44 * 22 + COALESCE ( + + 76, 24, + - 81 * - + 94 * 67 ) - + 40 - - NULLIF ( + + ( - CASE + 17 WHEN - 19 THEN NULL WHEN 89 THEN NULL ELSE 25 + 76 * 79 END ), + 26 - CASE - 78 WHEN 41 THEN + 3 * - 10 + 94 ELSE NULL END ) DIV + 95 col2
----
941

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - - 44 * 22 + COALESCE ( + + 76, 24, + - 81 * - + 94 * 67 ) - + 40 - - NULLIF ( + + ( - CASE + 17 WHEN - 19 THEN NULL WHEN 89 THEN NULL ELSE 25 + 76 * 79 END ), + 26 - CASE - 78 WHEN 41 THEN + 3 * - 10 + 94 ELSE NULL END ) / + 95 col2
----
941

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT + CASE - AVG ( + 19 ) WHEN + + CASE + 60 WHEN - + 19 THEN COUNT( * ) END * + 71 THEN 90 - - 56 WHEN + + 88 + 88 + 96 * SUM( DISTINCT + 0 ) THEN - 86 + 46 * - COUNT( * ) WHEN 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT + CASE - AVG ( + 19 ) WHEN + + CASE + 60 WHEN - + 19 THEN COUNT ( * ) END * + 71 THEN 90 - - 56 WHEN + + 88 + 88 + 96 * SUM ( DISTINCT + 0 ) THEN - 86 + 46 * - COUNT ( * ) WHEN 21 THEN NULL END
----
NULL

query I rowsort
SELECT + - 84 col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT - COUNT( - 26 ) + + 82 - - 93 * + + ( ( + 37 ) ) + - 13 * + 47 * - 8 AS col0
----
8410

skipif mysql # not compatible
query I rowsort label-3432
SELECT - COUNT ( - 26 ) + + 82 - - 93 * + + ( ( + 37 ) ) + - 13 * + 47 * - 8 AS col0
----
8410

query I rowsort
SELECT + 65 * - 83
----
-5395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3434
SELECT ALL - + AVG ( 90 ) - - + CASE AVG ( - 64 ) WHEN - 99 + ( + ( + + 40 ) ) + - 41 * 0 + AVG ( + - 66 ) + 87 THEN CASE + ( + ( + 64 ) ) WHEN - 32 THEN - 43 * + 81 WHEN 42 THEN + 66 * CASE - COUNT( * ) * - 63 WHEN CAST( 69 AS SIGNED ) * - 39 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN 49 ELSE NULL END ELSE COUNT( * ) END + COUNT( * ) / 97 WHEN + 40 * + 89 THEN + 59 / 27 + - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL - + AVG ( 90 ) - - + CASE AVG ( - 64 ) WHEN - 99 + ( + ( + + 40 ) ) + - 41 * 0 + AVG ( + - 66 ) + 87 THEN CASE + ( + ( + 64 ) ) WHEN - 32 THEN - 43 * + 81 WHEN 42 THEN + 66 * CASE - COUNT ( * ) * - 63 WHEN CAST ( 69 AS INTEGER ) * - 39 THEN NULL WHEN CAST ( NULL AS REAL ) THEN 49 ELSE NULL END ELSE COUNT ( * ) END + COUNT ( * ) / 97 WHEN + 40 * + 89 THEN + 59 / 27 + - 72 END
----
NULL

query II rowsort
SELECT 51, - 96 AS col2
----
51
-96

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

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

query I rowsort
SELECT ALL - + 4 * + - 45
----
180

query I rowsort
SELECT + - 57 - + 95
----
-152

query II rowsort
SELECT ALL - 43 AS col0, 92
----
-43
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT ( - - COALESCE ( + COUNT( * ), + 14 * - 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT ( - - COALESCE ( + COUNT ( * ), + 14 * - 42 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT + 67 DIV - NULLIF ( + MIN( - NULLIF ( - 19, 30 ) ), 70 + - 48 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-3441
SELECT + 67 / - NULLIF ( + MIN ( - NULLIF ( - 19, 30 ) ), 70 + - 48 ) col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3442
SELECT - CAST( NULL AS SIGNED ) + + SUM( 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT - CAST ( NULL AS INTEGER ) + + SUM ( 86 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3443
SELECT + 2 * 99 DIV - CAST( + 59 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-3443
SELECT + 2 * 99 / - CAST ( + 59 AS INTEGER )
----
-3

query I rowsort
SELECT + NULLIF ( 51, 83 / + ( - 60 ) ) + 73 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + 19 - - - MIN( + + 84 ) * - 65 * 89 * + - 45
----
-21867281

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 19 - - - MIN ( + + 84 ) * - 65 * 89 * + - 45
----
-21867281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3446
SELECT ALL COUNT( * ) DIV + ( + NULLIF ( ( - + ( - 11 ) ), + 56 DIV + - CAST( NULL AS SIGNED ) * - 48 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL COUNT ( * ) / + ( + NULLIF ( ( - + ( - 11 ) ), + 56 / + - CAST ( NULL AS INTEGER ) * - 48 ) ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT + 31 DIV 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3447
SELECT + 31 / 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + 90 + + COUNT( ALL + + 63 )
----
91

skipif mysql # not compatible
query I rowsort label-3448
SELECT + 90 + + COUNT ( ALL + + 63 )
----
91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3450
SELECT - NULLIF ( - ( ( - 10 ) ), - COUNT( * ) ), COUNT( * ) AS col1
----
-10
1

skipif mysql # not compatible
query II rowsort label-3450
SELECT - NULLIF ( - ( ( - 10 ) ), - COUNT ( * ) ), COUNT ( * ) AS col1
----
-10
1

query I rowsort
SELECT DISTINCT 19 * + 29 AS col0
----
551

query I rowsort
SELECT + 59 + + 73 + - 63 + - 73 + 96
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3453
SELECT + 77 * 95 DIV - - 27 AS col0
----
270

skipif mysql # not compatible
query I rowsort label-3453
SELECT + 77 * 95 / - - 27 AS col0
----
270

query II rowsort
SELECT DISTINCT 83 + - 85 AS col1, 67
----
-2
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT 2 DIV + + 88 + 95 DIV - 1 + - + ( + 68 ) AS col0
----
-163

skipif mysql # not compatible
query I rowsort label-3455
SELECT 2 / + + 88 + 95 / - 1 + - + ( + 68 ) AS col0
----
-163

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3456
SELECT ( + 35 ) AS col1, 15 DIV + SUM( ALL - - 68 ) AS col0
----
35
0

skipif mysql # not compatible
query II rowsort label-3456
SELECT ( + 35 ) AS col1, 15 / + SUM ( ALL - - 68 ) AS col0
----
35
0

query I rowsort
SELECT + 41 + 25 AS col0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT ALL 49 * + + COUNT( * ) + + 50 + + + 42 AS col2, 90
----
141
90

skipif mysql # not compatible
query II rowsort label-3458
SELECT ALL 49 * + + COUNT ( * ) + + 50 + + + 42 AS col2, 90
----
141
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL + - SUM( DISTINCT 78 ) * - + 72 AS col1
----
5616

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL + - SUM ( DISTINCT 78 ) * - + 72 AS col1
----
5616

query II rowsort
SELECT + 70 - 68 * 96 * - - 12 AS col0, + 73
----
-78266
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT - NULLIF ( - MIN( ( + 22 ) ), + ( + - 56 ) + 44 * 34 / - 18 + - - NULLIF ( + 70, + 55 + 1 ) * - + 1 ) * 4 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3462
SELECT - NULLIF ( - MIN ( ( + 22 ) ), + ( + - 56 ) + 44 * 34 / - 18 + - - NULLIF ( + 70, + 55 + 1 ) * - + 1 ) * 4 AS col1
----
88

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

query I rowsort
SELECT - + 77 * + - 29 AS col2
----
2233

query I rowsort
SELECT - 15 + 23 * + 70
----
1595

query I rowsort
SELECT DISTINCT + - 85 AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3467
SELECT - 85 * - 67 + - 95 - + - 56 + + 65 - - NULLIF ( 58, + COUNT( * ) ) + - NULLIF ( + 55, - + NULLIF ( + - 26, + 2 ) DIV 38 ) * 64 DIV - 52
----
5846

skipif mysql # not compatible
query I rowsort label-3467
SELECT - 85 * - 67 + - 95 - + - 56 + + 65 - - NULLIF ( 58, + COUNT ( * ) ) + - NULLIF ( + 55, - + NULLIF ( + - 26, + 2 ) / 38 ) * 64 / - 52
----
5846

query I rowsort
SELECT - 42 + - ( + + 52 ) AS col1
----
-94

query I rowsort
SELECT - 26 * 33
----
-858

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT DISTINCT CAST( - - 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT CAST ( - - 80 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT DISTINCT - SUM( + ( + 38 ) ) * + + 22 * - + COUNT( - 88 ) AS col2
----
836

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT - SUM ( + ( + 38 ) ) * + + 22 * - + COUNT ( - 88 ) AS col2
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT + COUNT( * ) + - 35 - - 65 * - ( + 98 ) * + 93 + + 18 + + COUNT( * ) AS col0
----
-592425

skipif mysql # not compatible
query I rowsort label-3472
SELECT + COUNT ( * ) + - 35 - - 65 * - ( + 98 ) * + 93 + + 18 + + COUNT ( * ) AS col0
----
-592425

query I rowsort
SELECT ALL - ( - - 58 ) * - + 53 AS col1
----
3074

query I rowsort
SELECT - 90 * - 70
----
6300

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT + 96 + + + 82 DIV - 18
----
92

skipif mysql # not compatible
query I rowsort label-3475
SELECT + 96 + + + 82 / - 18
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3476
SELECT ALL 78 + + - 83 DIV 8 col0, - SUM( + 19 )
----
68
-19

skipif mysql # not compatible
query II rowsort label-3476
SELECT ALL 78 + + - 83 / 8 col0, - SUM ( + 19 )
----
68
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3477
SELECT - COUNT( * ), 1 * - - NULLIF ( + + 55, CASE COUNT( - ( - 71 ) ) WHEN + + NULLIF ( 4, + + COALESCE ( 90, 34 + ( - 96 ) - - 14 * - 30 ) * ( 41 * 30 ) ) + COUNT( * ) THEN NULL ELSE NULLIF ( 93, 63 + 3 ) / 77 + + COUNT( * ) END + - 46 ) + + 63 col2
----
-1
118

skipif mysql # not compatible
query II rowsort label-3477
SELECT - COUNT ( * ), 1 * - - NULLIF ( + + 55, CASE COUNT ( - ( - 71 ) ) WHEN + + NULLIF ( 4, + + COALESCE ( 90, 34 + ( - 96 ) - - 14 * - 30 ) * ( 41 * 30 ) ) + COUNT ( * ) THEN NULL ELSE NULLIF ( 93, 63 + 3 ) / 77 + + COUNT ( * ) END + - 46 ) + + 63 col2
----
-1
118

query I rowsort
SELECT ALL 30 + - - 7 AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT ALL - MAX( ALL - 3 ) + COUNT( * ) AS col1, + 19 AS col2
----
4
19

skipif mysql # not compatible
query II rowsort label-3479
SELECT ALL - MAX ( ALL - 3 ) + COUNT ( * ) AS col1, + 19 AS col2
----
4
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3480
SELECT - 24 - 64 * 5 DIV 7 * - - 17 + + 66 DIV + 94 AS col1
----
-789

skipif mysql # not compatible
query I rowsort label-3480
SELECT - 24 - 64 * 5 / 7 * - - 17 + + 66 / + 94 AS col1
----
-789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT + COUNT( * ) * + + NULLIF ( - 99, CASE + 89 WHEN + + 77 + - 77 THEN COUNT( * ) ELSE NULL END * + SUM( DISTINCT + ( 77 ) ) ) * - CAST( - + ( 70 ) AS SIGNED ) + COUNT( 23 ) + + 99 * + 43 AS col2
----
-2672

skipif mysql # not compatible
query I rowsort label-3481
SELECT + COUNT ( * ) * + + NULLIF ( - 99, CASE + 89 WHEN + + 77 + - 77 THEN COUNT ( * ) ELSE NULL END * + SUM ( DISTINCT + ( 77 ) ) ) * - CAST ( - + ( 70 ) AS INTEGER ) + COUNT ( 23 ) + + 99 * + 43 AS col2
----
-2672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3482
SELECT ALL ( - + COUNT( * ) ) DIV - 45 - 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL ( - + COUNT ( * ) ) / - 45 - 17 AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3483
SELECT - CASE CASE - 18 WHEN + COUNT( * ) THEN - MIN( ALL + 16 ) END WHEN 38 THEN - - 57 ELSE + - COUNT( * ) - + - 57 - - NULLIF ( - COUNT( * ), + CAST( NULL AS SIGNED ) + 68 * + 18 ) DIV - 55 END AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3483
SELECT - CASE CASE - 18 WHEN + COUNT ( * ) THEN - MIN ( ALL + 16 ) END WHEN 38 THEN - - 57 ELSE + - COUNT ( * ) - + - 57 - - NULLIF ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) + 68 * + 18 ) / - 55 END AS col1
----
-56

query I rowsort
SELECT - 0 - 11
----
-11

query II rowsort
SELECT - NULLIF ( 22, - 65 * + 43 + - + 11 ) AS col1, - 16 * - 80 * + + 73 AS col1
----
-22
93440

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3487
SELECT DISTINCT 29 + + - COUNT( COALESCE ( + + CAST( + 12 AS SIGNED ), - 18 ) ) + - + ( + COALESCE ( MAX( ALL - - COALESCE ( - 5, + ( - + 72 ) DIV - 93, + - 87, - 84 ) ), 34 * - COUNT( * ), 59 * - 75 + 52 * - 77, - 96 ) )
----
33

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT 29 + + - COUNT ( COALESCE ( + + CAST ( + 12 AS INTEGER ), - 18 ) ) + - + ( + COALESCE ( MAX ( ALL - - COALESCE ( - 5, + ( - + 72 ) / - 93, + - 87, - 84 ) ), 34 * - COUNT ( * ), 59 * - 75 + 52 * - 77, - 96 ) )
----
33

query I rowsort
SELECT COALESCE ( - + 2, - COALESCE ( 81, - 98 * + ( + 30 ), + + 83 ) * + 65 + + 20 + - 49 * 74 * 91 ) * + 27 + + 94 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL - 13 + - 72 * + COUNT( * ) + + + 1 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - 13 + - 72 * + COUNT ( * ) + + + 1 AS col1
----
-84

query I rowsort
SELECT DISTINCT - ( - 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3491
SELECT + MAX( + - 0 ) DIV - - 2 - - - 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3491
SELECT + MAX ( + - 0 ) / - - 2 - - - 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3492
SELECT ALL - + AVG ( - CASE - - 58 WHEN - 58 THEN + 49 END ) AS col0, - 68 * - COUNT( * ) + + 76
----
NULL
144

skipif mysql # not compatible
query II rowsort label-3492
SELECT ALL - + AVG ( - CASE - - 58 WHEN - 58 THEN + 49 END ) AS col0, - 68 * - COUNT ( * ) + + 76
----
NULL
144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT - COUNT( 83 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3494
SELECT - COUNT ( 83 ) col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL - + SUM( 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL - + SUM ( 59 )
----
-59

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

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

query I rowsort
SELECT + 77 * - 82 * + + 56 * - 65
----
22982960

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT 17 DIV - 72 - + 13 DIV - 83 col0
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT 17 / - 72 - + 13 / - 83 col0
----
0

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

skipif mysql # not compatible
query I rowsort label-3500
SELECT + MIN ( 85 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT 62 DIV - 34 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3501
SELECT 62 / - 34 AS col2
----
-1

query II rowsort
SELECT - 83 * + + 99 + - 44, - CASE + 79 WHEN 93 + - - 53 + + 32 THEN NULL WHEN - 17 + - 68 THEN + - NULLIF ( + NULLIF ( 72, 61 ), ( + 36 ) ) ELSE + 36 END AS col0
----
-8261
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT + - NULLIF ( 4, - 41 * - - 98 * + 51 ) * - MIN( DISTINCT + 41 )
----
164

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT + - NULLIF ( 4, - 41 * - - 98 * + 51 ) * - MIN ( DISTINCT + 41 )
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT ALL 1 * + - COALESCE ( - 98, + 18 - + + COALESCE ( + 28, + + ( 41 ) + - - 16 ) * - + MAX( ALL - + 1 ), + - 68 * - + 52 + - - CAST( + 48 AS SIGNED ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL 1 * + - COALESCE ( - 98, + 18 - + + COALESCE ( + 28, + + ( 41 ) + - - 16 ) * - + MAX ( ALL - + 1 ), + - 68 * - + 52 + - - CAST ( + 48 AS INTEGER ) ) AS col1
----
98

query I rowsort
SELECT 85 * + 59 + - + 46 * 73 + 42 AS col2
----
1699

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL - 1 * + - 11 * + + CASE - + 89 WHEN + 71 THEN ( - 8 ) * + + 37 WHEN - 27 THEN NULL WHEN + 29 / + 89 THEN - COALESCE ( + - 30, - COUNT( * ), - + 31 ) * 97 * 93 WHEN 88 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - 1 * + - 11 * + + CASE - + 89 WHEN + 71 THEN ( - 8 ) * + + 37 WHEN - 27 THEN NULL WHEN + 29 / + 89 THEN - COALESCE ( + - 30, - COUNT ( * ), - + 31 ) * 97 * 93 WHEN 88 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT - 90, NULLIF ( + 78, + - 71 ) + + 2 AS col0
----
-90
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT COUNT( * ) * + + 16 col0
----
16

skipif mysql # not compatible
query I rowsort label-3509
SELECT COUNT ( * ) * + + 16 col0
----
16

query I rowsort
SELECT ALL + 29 + - - 36 + - 62
----
3

query I rowsort
SELECT DISTINCT COALESCE ( + ( + 58 ), - 77 ) * - 63 * - 11 * - 76
----
-3054744

query I rowsort
SELECT 22 - - 0
----
22

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3514
SELECT DISTINCT 10 AS col0, + NULLIF ( COALESCE ( - - 43, ( 47 ) * 98 ), COUNT( * ) - - 69 * + 24 )
----
10
43

skipif mysql # not compatible
query II rowsort label-3514
SELECT DISTINCT 10 AS col0, + NULLIF ( COALESCE ( - - 43, ( 47 ) * 98 ), COUNT ( * ) - - 69 * + 24 )
----
10
43

query II rowsort
SELECT - 12 AS col1, + 79 AS col0
----
-12
79

query I rowsort
SELECT 21 + - + 95
----
-74

query I rowsort
SELECT 31 + + + 47
----
78

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

skipif mysql # not compatible
query I rowsort label-3518
SELECT AVG ( DISTINCT - 26 ) - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 40 + - + 0 col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT 76 - CAST( 75 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3520
SELECT 76 - CAST ( 75 AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ALL - 66 + - 99
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-3522
SELECT - 26, COUNT( * ) * + - ( - + 47 ) + COUNT( * ) col2
----
-26
48

skipif mysql # not compatible
query II rowsort label-3522
SELECT - 26, COUNT ( * ) * + - ( - + 47 ) + COUNT ( * ) col2
----
-26
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT SUM( ALL + 61 ) + 11 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3523
SELECT SUM ( ALL + 61 ) + 11 AS col0
----
72

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3527
SELECT - 48 + + - 50 DIV - - CASE - 45 WHEN 4 + - 69 * 3 THEN NULL WHEN + - 37 DIV 35 * 32 + + + NULLIF ( 35, - - CAST( NULL AS SIGNED ) * + 59 + 9 ) + + + 54 DIV 67 THEN + 67 + 73 WHEN - NULLIF ( 37, + CAST( ( 3 ) AS SIGNED ) DIV 58 ) * 26 THEN NULL ELSE 98 + - COUNT( * ) END * - 55
----
-48

skipif mysql # not compatible
query I rowsort label-3527
SELECT - 48 + + - 50 / - - CASE - 45 WHEN 4 + - 69 * 3 THEN NULL WHEN + - 37 / 35 * 32 + + + NULLIF ( 35, - - CAST ( NULL AS INTEGER ) * + 59 + 9 ) + + + 54 / 67 THEN + 67 + 73 WHEN - NULLIF ( 37, + CAST ( ( 3 ) AS INTEGER ) / 58 ) * 26 THEN NULL ELSE 98 + - COUNT ( * ) END * - 55
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT MAX( - 89 ) + - - 2
----
-87

skipif mysql # not compatible
query I rowsort label-3528
SELECT MAX ( - 89 ) + - - 2
----
-87

query I rowsort
SELECT 39 * - + 40
----
-1560

query I rowsort
SELECT - NULLIF ( + - 59, + - 70 * + 73 ) * - - 82 * - 72
----
-348336

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT 1 * + + 97 * + 79 + + COUNT( * ) + 80
----
7744

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT 1 * + + 97 * + 79 + + COUNT ( * ) + 80
----
7744

onlyif mysql # aggregate syntax: 
query II rowsort label-3532
SELECT ALL COUNT( * ) - - 15 col1, 3 AS col0
----
16
3

skipif mysql # not compatible
query II rowsort label-3532
SELECT ALL COUNT ( * ) - - 15 col1, 3 AS col0
----
16
3

query I rowsort
SELECT - 75 * 32
----
-2400

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3535
SELECT ALL - NULLIF ( + - 52, - COUNT( * ) * - + CAST( NULL AS DECIMAL ) * - + 60 )
----
52

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - NULLIF ( + - 52, - COUNT ( * ) * - + CAST ( NULL AS REAL ) * - + 60 )
----
52

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

skipif mysql # not compatible
query I rowsort label-3536
SELECT COUNT ( * ) + COUNT ( * ) + - + 70 AS col1
----
-68

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

query I rowsort
SELECT 83 * - 8 + - 5
----
-669

query I rowsort
SELECT - 34 - - CASE + + 63 WHEN - ( 31 ) THEN + + 71 END + - - 33
----
NULL

query I rowsort
SELECT 87 * - 93
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT COUNT( + 46 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3541
SELECT COUNT ( + 46 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL COUNT( * ) + + 2 * - 74 col1
----
-147

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL COUNT ( * ) + + 2 * - 74 col1
----
-147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL - CASE 73 WHEN - - 27 + + CASE + + AVG ( ALL 93 ) WHEN 82 + + 36 - 90 THEN NULL WHEN - - 36 + - 58 THEN + 82 WHEN - CASE ( + - ( - 41 ) ) WHEN - + 53 + 80 / - 13 THEN 97 ELSE NULL END + - 40 THEN + 1 * - 60 ELSE + 77 END + - 38 * ( - COUNT( * ) ) THEN NULL WHEN 95 THEN 19 * 21 END + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL - CASE 73 WHEN - - 27 + + CASE + + AVG ( ALL 93 ) WHEN 82 + + 36 - 90 THEN NULL WHEN - - 36 + - 58 THEN + 82 WHEN - CASE ( + - ( - 41 ) ) WHEN - + 53 + 80 / - 13 THEN 97 ELSE NULL END + - 40 THEN + 1 * - 60 ELSE + 77 END + - 38 * ( - COUNT ( * ) ) THEN NULL WHEN 95 THEN 19 * 21 END + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT 34 * - 76 + + COUNT( * )
----
-2583

skipif mysql # not compatible
query I rowsort label-3545
SELECT 34 * - 76 + + COUNT ( * )
----
-2583

query I rowsort
SELECT 41 + + 61
----
102

query II rowsort
SELECT 12 * + 8 AS col0, + ( - + 31 )
----
96
-31

query II rowsort
SELECT 47 * + - ( + + 68 ) AS col0, 68 + + - 22 + + + 73 AS col1
----
-3196
119

query I rowsort
SELECT DISTINCT 60 * - 11 AS col0
----
-660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3550
SELECT 57 + - MAX( DISTINCT - 61 ) + + 64 + - 30 + COUNT( * ) / - CAST( NULL AS SIGNED ) + - + 67 * - MAX( + 64 ) * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT 57 + - MAX ( DISTINCT - 61 ) + + 64 + - 30 + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - + 67 * - MAX ( + 64 ) * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT ALL 95 * NULLIF ( + - 99, - MIN( + + 52 ) )
----
-9405

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL 95 * NULLIF ( + - 99, - MIN ( + + 52 ) )
----
-9405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3552
SELECT 66 + + COALESCE ( - 87, - COUNT( * ), - + 89, 92 DIV 88 + + 28 + - COUNT( * ) )
----
-21

skipif mysql # not compatible
query I rowsort label-3552
SELECT 66 + + COALESCE ( - 87, - COUNT ( * ), - + 89, 92 / 88 + + 28 + - COUNT ( * ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT + 18 * - COUNT( ALL - 6 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-3553
SELECT + 18 * - COUNT ( ALL - 6 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL ( - - 85 ) * + 18 * + COALESCE ( SUM( - 33 ), + 97 + + 23 ) * + + ( 72 ) - - - ( - 1 ) * - 73 AS col0
----
-3635353

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL ( - - 85 ) * + 18 * + COALESCE ( SUM ( - 33 ), + 97 + + 23 ) * + + ( 72 ) - - - ( - 1 ) * - 73 AS col0
----
-3635353

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT ( + 6 ) - + + CASE 67 WHEN - COUNT( * ) THEN - 24 - 91 WHEN 79 + 0 + - - 4 THEN NULL END + + ( + 41 ) * 34 + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT ( + 6 ) - + + CASE 67 WHEN - COUNT ( * ) THEN - 24 - 91 WHEN 79 + 0 + - - 4 THEN NULL END + + ( + 41 ) * 34 + 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT ALL 52 - + NULLIF ( 99, + + 58 * + + ( - 55 ) * + + 96 + + CAST( - - 20 AS SIGNED ) )
----
-47

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL 52 - + NULLIF ( 99, + + 58 * + + ( - 55 ) * + + 96 + + CAST ( - - 20 AS INTEGER ) )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT DISTINCT CASE - COUNT( * ) WHEN 83 + + 69 THEN - 96 + - 55 * + + CAST( + - 35 AS SIGNED ) + + COUNT( ALL - 83 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT CASE - COUNT ( * ) WHEN 83 + + 69 THEN - 96 + - 55 * + + CAST ( + - 35 AS INTEGER ) + + COUNT ( ALL - 83 ) END col0
----
NULL

query I rowsort
SELECT - 23 - + - 71
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - MAX( ALL 24 ) * 66 + 11 AS col0
----
-1573

skipif mysql # not compatible
query I rowsort label-3559
SELECT - MAX ( ALL 24 ) * 66 + 11 AS col0
----
-1573

query I rowsort
SELECT - - 34 + + 5
----
39

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

query I rowsort
SELECT DISTINCT - 42 * - 83 + + 4 * + 37 AS col2
----
3634

query II rowsort
SELECT + ( 81 ) AS col1, - 94 + 47
----
81
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT - CAST( - - 6 AS SIGNED ) * COUNT( DISTINCT 5 ) * 25
----
-150

skipif mysql # not compatible
query I rowsort label-3564
SELECT - CAST ( - - 6 AS INTEGER ) * COUNT ( DISTINCT 5 ) * 25
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT ALL - - MAX( 39 ) * - + 37 + - 72 + - - COUNT( * ) AS col1, 46
----
-1514
46

skipif mysql # not compatible
query II rowsort label-3565
SELECT ALL - - MAX ( 39 ) * - + 37 + - 72 + - - COUNT ( * ) AS col1, 46
----
-1514
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - COUNT( * ) * - - SUM( ALL + + 82 ) + - 97
----
-179

skipif mysql # not compatible
query I rowsort label-3566
SELECT - COUNT ( * ) * - - SUM ( ALL + + 82 ) + - 97
----
-179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3567
SELECT - 62 DIV + ( + 41 ) - + 17 * + - MIN( - - 42 )
----
713

skipif mysql # not compatible
query I rowsort label-3567
SELECT - 62 / + ( + 41 ) - + 17 * + - MIN ( - - 42 )
----
713

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT + - COUNT( * ) + + - 10, 47 AS col2
----
-11
47

skipif mysql # not compatible
query II rowsort label-3568
SELECT + - COUNT ( * ) + + - 10, 47 AS col2
----
-11
47

query I rowsort
SELECT DISTINCT - 70 * - 79 + - + 77
----
5453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT + + 57 * - + 97 + - NULLIF ( + 98, + NULLIF ( - + CAST( - 59 AS SIGNED ), + - 96 * - 91 ) ) AS col2
----
-5627

skipif mysql # not compatible
query I rowsort label-3570
SELECT + + 57 * - + 97 + - NULLIF ( + 98, + NULLIF ( - + CAST ( - 59 AS INTEGER ), + - 96 * - 91 ) ) AS col2
----
-5627

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT CASE 78 WHEN - 73 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT CASE 78 WHEN - 73 THEN + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL - CASE + ( + + 38 ) WHEN - 43 + - 4 THEN NULL WHEN - 94 THEN - - 58 / + 44 ELSE NULL END / + AVG ( DISTINCT + 8 ) * - ( - 9 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT - 49 * 91 + + SUM( - 79 ) * - 8
----
-3827

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - 49 * 91 + + SUM ( - 79 ) * - 8
----
-3827

query I rowsort
SELECT DISTINCT + 66 * 42 + - - 96 * + 73 col2
----
9780

query II rowsort
SELECT ALL + 16 * + + COALESCE ( - + 54, + - 24 ) + + 28 - + 28 col2, 65
----
-864
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL + MAX( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL + MAX ( 22 )
----
22

query I rowsort
SELECT + NULLIF ( 59, + 91 * ( + + 52 ) + 47 + - - ( + - 89 ) * + 34 * - + 97 )
----
59

query I rowsort
SELECT - 48 + + 48 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3580
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ), 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-3580
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ), 46 AS col1
----
NULL
46

query I rowsort
SELECT ALL 19 * 42 AS col2
----
798

query I rowsort
SELECT - 25 + - ( + 4 ) AS col1
----
-29

query I rowsort
SELECT + 30 * - - 27
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT MIN( DISTINCT - - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-3584
SELECT MIN ( DISTINCT - - 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT MIN( ALL - + COALESCE ( 32, - 22 ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-3585
SELECT MIN ( ALL - + COALESCE ( 32, - 22 ) ) AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3586
SELECT ALL 64 * 42 - + COUNT( * ) + 58 DIV CAST( - + 46 AS SIGNED ) AS col0
----
2686

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL 64 * 42 - + COUNT ( * ) + 58 / CAST ( - + 46 AS INTEGER ) AS col0
----
2686

onlyif mysql # aggregate syntax: 
query II rowsort label-3587
SELECT ALL 66 AS col1, + COUNT( * ) AS col1
----
66
1

skipif mysql # not compatible
query II rowsort label-3587
SELECT ALL 66 AS col1, + COUNT ( * ) AS col1
----
66
1

query I rowsort
SELECT ALL 41 * + 8 AS col1
----
328

query I rowsort
SELECT ALL 53 - + - 98
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + COUNT( * ) + COALESCE ( - 55, + NULLIF ( + 13, + 31 * 50 * - + 41 ) + - 91 + - + 47 * - COUNT( * ), 12 + - COALESCE ( + 44, - 6 ) * + 19 + - SUM( DISTINCT 76 ) + - 26 * - 25, - 54 + 22 ) + CASE + MAX( 73 ) WHEN - 33 THEN NULL WHEN 48 - 39 THEN - 19 END * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT + COUNT ( * ) + COALESCE ( - 55, + NULLIF ( + 13, + 31 * 50 * - + 41 ) + - 91 + - + 47 * - COUNT ( * ), 12 + - COALESCE ( + 44, - 6 ) * + 19 + - SUM ( DISTINCT 76 ) + - 26 * - 25, - 54 + 22 ) + CASE + MAX ( 73 ) WHEN - 33 THEN NULL WHEN 48 - 39 THEN - 19 END * - 27 AS col2
----
NULL

query I rowsort
SELECT - 99 * + 83 AS col0
----
-8217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT ALL 5 * - CAST( - 15 AS SIGNED ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL 5 * - CAST ( - 15 AS INTEGER ) AS col2
----
75

query I rowsort
SELECT + 11 + + - 7 AS col1
----
4

query I rowsort
SELECT + - 43 * 19
----
-817

query I rowsort
SELECT + 21 + 12 * ( - - 36 ) AS col1
----
453

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT - - CAST( - - 91 AS SIGNED ) - CAST( NULL AS SIGNED ) * CAST( + 99 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT - - CAST ( - - 91 AS INTEGER ) - CAST ( NULL AS INTEGER ) * CAST ( + 99 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + + 68 * + 24 AS col2
----
1632

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3599
SELECT ALL + 5 * + 75 - 22 col0, COUNT( - 68 ) AS col1
----
353
1

skipif mysql # not compatible
query II rowsort label-3599
SELECT ALL + 5 * + 75 - 22 col0, COUNT ( - 68 ) AS col1
----
353
1

query II rowsort
SELECT - - 22, 70 AS col1
----
22
70

query I rowsort
SELECT ALL - 30 * + + 73 * - 65 - + + 82 + - - 98
----
142366

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT + + COUNT( * ) + - + NULLIF ( 53, - 96 ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-3602
SELECT + + COUNT ( * ) + - + NULLIF ( 53, - 96 ) col2
----
-52

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

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

query I rowsort
SELECT - - 44 + - 2
----
42

query I rowsort
SELECT - + CASE 61 WHEN + - CASE WHEN NOT NULL IS NOT NULL THEN 80 END THEN - 10 * - - 83 + ( AVG ( - 59 ) ) ELSE NULL END + - 79
----
NULL

query I rowsort
SELECT ALL - 47 + + - 61 * + + 79 AS col0
----
-4866

query I rowsort
SELECT + + 67 + 26
----
93

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

query II rowsort
SELECT ALL - 98 * + - 7 * 71, - 69 AS col1
----
48706
-69

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3611
SELECT ALL - 37 * + - CASE 9 WHEN - 7 * 92 * - 58 + + COUNT( * ) + - - 27 + - 49 + - 76 * - 6 / + - 75 THEN CAST( NULL AS DECIMAL ) - + 46 - 64 WHEN + + 66 THEN + 59 WHEN COUNT( * ) THEN NULL END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - 37 * + - CASE 9 WHEN - 7 * 92 * - 58 + + COUNT ( * ) + - - 27 + - 49 + - 76 * - 6 / + - 75 THEN CAST ( NULL AS REAL ) - + 46 - 64 WHEN + + 66 THEN + 59 WHEN COUNT ( * ) THEN NULL END + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3612
SELECT 70 DIV - ( COUNT( * ) ) + + + 65, 15 * COUNT( * ) * + 76 + 4 AS col0
----
-5
1144

skipif mysql # not compatible
query II rowsort label-3612
SELECT 70 / - ( COUNT ( * ) ) + + + 65, 15 * COUNT ( * ) * + 76 + 4 AS col0
----
-5
1144

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3613
SELECT DISTINCT - ( + CASE + CASE 92 WHEN 71 + 5 + - CAST( NULL AS SIGNED ) * + 89 THEN + + 89 + - 58 WHEN + + 54 - 46 THEN + 5 * + 13 ELSE NULL END WHEN - 68 * + + CAST( NULL AS DECIMAL ) THEN - 22 WHEN - 96 THEN NULL ELSE NULL END ) * 30 * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT - ( + CASE + CASE 92 WHEN 71 + 5 + - CAST ( NULL AS INTEGER ) * + 89 THEN + + 89 + - 58 WHEN + + 54 - 46 THEN + 5 * + 13 ELSE NULL END WHEN - 68 * + + CAST ( NULL AS REAL ) THEN - 22 WHEN - 96 THEN NULL ELSE NULL END ) * 30 * - 32
----
NULL

query I rowsort
SELECT - 54 * 2 + - - ( - 69 )
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-3615
SELECT + COALESCE ( 97, 87 * + - 35 DIV + 98 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3615
SELECT + COALESCE ( 97, 87 * + - 35 / + 98 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3616
SELECT DISTINCT + 89 DIV + 50 - - + 33 + + CASE + COUNT( * ) WHEN - CAST( 99 AS DECIMAL ) THEN NULL ELSE - 0 * - 85 - + 98 END AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT + 89 / + 50 - - + 33 + + CASE + COUNT ( * ) WHEN - CAST ( 99 AS REAL ) THEN NULL ELSE - 0 * - 85 - + 98 END AS col1
----
-64

query I rowsort
SELECT - 84 - NULLIF ( - 33, - 28 * - + 7 ) + 87
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT 71 * - 55 * + 56 + COUNT( * )
----
-218679

skipif mysql # not compatible
query I rowsort label-3618
SELECT 71 * - 55 * + 56 + COUNT ( * )
----
-218679

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT ALL + 80 DIV + + 8
----
10

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL + 80 / + + 8
----
10

query I rowsort
SELECT 41 * - + 8 * + + 54
----
-17712

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

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

query I rowsort
SELECT DISTINCT 6 * - 11 * + 19 AS col0
----
-1254

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT DISTINCT + 89 DIV + + 12 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT + 89 / + + 12 AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT ALL - CAST( NULL AS SIGNED ) - - 52 / + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - CAST ( NULL AS INTEGER ) - - 52 / + 90
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT + 22 * - 43 * - - COUNT( ALL 40 ) * - NULLIF ( - + 91, 93 + COUNT( * ) ) + - + 93, 56 + 42 AS col1
----
-86179
98

skipif mysql # not compatible
query II rowsort label-3625
SELECT + 22 * - 43 * - - COUNT ( ALL 40 ) * - NULLIF ( - + 91, 93 + COUNT ( * ) ) + - + 93, 56 + 42 AS col1
----
-86179
98

onlyif mysql # aggregate syntax: 
query II rowsort label-3626
SELECT 44 * - 15 - - 26 + COUNT( * ) AS col1, - 98 AS col1
----
-633
-98

skipif mysql # not compatible
query II rowsort label-3626
SELECT 44 * - 15 - - 26 + COUNT ( * ) AS col1, - 98 AS col1
----
-633
-98

query II rowsort
SELECT + ( - 50 ) AS col2, + 38
----
-50
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL 72 + - 44 + + - 57 + 53 - + + 11 * - ( + - ( NULLIF ( + 4, - + COUNT( * ) / + CASE - + ( - + 14 ) WHEN + 38 THEN 56 * + 74 / - COUNT( + + 73 ) / + 91 + 73 + CASE WHEN + 78 <= 14 * ( 98 ) THEN NULL WHEN NOT 70 IS NULL THEN NULL ELSE - 59 END ELSE NULL END * ( 62 ) + + 93 ) ) ) + + MAX( 73 ) * COALESCE ( 36, 80 ) * - 80 AS col2
----
-210260

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL 72 + - 44 + + - 57 + 53 - + + 11 * - ( + - ( NULLIF ( + 4, - + COUNT ( * ) / + CASE - + ( - + 14 ) WHEN + 38 THEN 56 * + 74 / - COUNT ( + + 73 ) / + 91 + 73 + CASE WHEN + 78 <= 14 * ( 98 ) THEN NULL WHEN NOT 70 IS NULL THEN NULL ELSE - 59 END ELSE NULL END * ( 62 ) + + 93 ) ) ) + + MAX ( 73 ) * COALESCE ( 36, 80 ) * - 80 AS col2
----
-210260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT DISTINCT + COALESCE ( + - 97, + ( + + 64 ) + - - 11 + - CAST( + 89 AS SIGNED ) ) + 56 - - CAST( NULL AS SIGNED ) + - + 32 / + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + COALESCE ( + - 97, + ( + + 64 ) + - - 11 + - CAST ( + 89 AS INTEGER ) ) + 56 - - CAST ( NULL AS INTEGER ) + - + 32 / + 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT ALL SUM( DISTINCT 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL SUM ( DISTINCT 97 ) AS col2
----
97

query I rowsort
SELECT - - 14 col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT 16 - - MAX( ALL - + NULLIF ( - - 15, - 86 / 14 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3632
SELECT 16 - - MAX ( ALL - + NULLIF ( - - 15, - 86 / 14 ) )
----
1

query I rowsort
SELECT ALL 51 + - 22 + + 49 AS col0
----
78

query I rowsort
SELECT ( + + 30 ) - + 27 + + 93 AS col1
----
96

query I rowsort
SELECT ALL - 57 + + 43 * 72 AS col2
----
3039

query I rowsort
SELECT DISTINCT - 99 * - 59 col0
----
5841

query I rowsort
SELECT ALL + + 53 + + 7 col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT DISTINCT - COUNT( * ) * + 46 * + - 7 AS col0
----
322

skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - COUNT ( * ) * + 46 * + - 7 AS col0
----
322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3639
SELECT 84 DIV + 73 + + COUNT( * ) * + + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3639
SELECT 84 / + 73 + + COUNT ( * ) * + + 36 AS col2
----
37

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

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

query I rowsort
SELECT ALL - ( - - 84 ) AS col0
----
-84

query I rowsort
SELECT ALL + 76 * 62 AS col0
----
4712

query I rowsort
SELECT ALL - ( + + COALESCE ( + 1, + 78 * - 89 * 92 + 38 ) ) AS col2
----
-1

query I rowsort
SELECT 76 * 46 AS col2
----
3496

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL + 76 * - 0 * - + COALESCE ( + - NULLIF ( - MAX( ALL + 84 ), 69 ), 37, MAX( ALL - + 24 ), 84 * + 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL + 76 * - 0 * - + COALESCE ( + - NULLIF ( - MAX ( ALL + 84 ), 69 ), 37, MAX ( ALL - + 24 ), 84 * + 80 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT 46 + - + NULLIF ( + ( + + 24 ), - COUNT( * ) ) + - 97 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3646
SELECT 46 + - + NULLIF ( + ( + + 24 ), - COUNT ( * ) ) + - 97 AS col1
----
-75

query I rowsort
SELECT 56 + + 39
----
95

query I rowsort
SELECT + 92 * 25 + + 63 AS col1
----
2363

query I rowsort
SELECT 75 + + 10
----
85

query II rowsort
SELECT ALL - 13 + + 9 + 78, ( + 18 ) + + + 61 AS col2
----
74
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT - 25 + + + ( + + 24 ) + - ( 13 ) * 70 - - - COUNT( * ) - - + 35
----
-877

skipif mysql # not compatible
query I rowsort label-3651
SELECT - 25 + + + ( + + 24 ) + - ( 13 ) * 70 - - - COUNT ( * ) - - + 35
----
-877

onlyif mysql # DIV for integer division: 
query I rowsort label-3652
SELECT ALL + - ( - ( + - 20 ) ) DIV 8 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL + - ( - ( + - 20 ) ) / 8 AS col0
----
-2

query I rowsort
SELECT DISTINCT + 55 + + CASE - - 88 WHEN + ( + 75 ) * 80 THEN + 62 * - - NULLIF ( + - NULLIF ( - - 59, + 95 ), + 50 ) - 69 / 54 * 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL + SUM( - 80 ) * - 16 col0
----
1280

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + SUM ( - 80 ) * - 16 col0
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - MIN( ALL - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3655
SELECT - MIN ( ALL - 70 ) AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3656
SELECT + CAST( + + 82 AS SIGNED ) + - - 34, 77 AS col0
----
116
77

skipif mysql # not compatible
query II rowsort label-3656
SELECT + CAST ( + + 82 AS INTEGER ) + - - 34, 77 AS col0
----
116
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL + - 88 + + 95 * + 58 + - NULLIF ( + - 2, - COUNT( * ) ) * 5 AS col2
----
5432

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + - 88 + + 95 * + 58 + - NULLIF ( + - 2, - COUNT ( * ) ) * 5 AS col2
----
5432

query I rowsort
SELECT + 92 + 87 col2
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT CAST( - 71 AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3659
SELECT CAST ( - 71 AS INTEGER ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + CASE + SUM( + + 43 ) WHEN 59 THEN NULL WHEN + CASE + 83 WHEN - + 6 THEN - 94 * 32 END THEN - 15 END - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT + CASE + SUM ( + + 43 ) WHEN 59 THEN NULL WHEN + CASE + 83 WHEN - + 6 THEN - 94 * 32 END THEN - 15 END - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL 45 * 25 + - + 93 + COUNT( * ) + - ( - 65 )
----
1098

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL 45 * 25 + - + 93 + COUNT ( * ) + - ( - 65 )
----
1098

query I rowsort
SELECT + 19 + + 43 + + - 86
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3663
SELECT - + NULLIF ( - 87, + COUNT( ALL + 44 ) * + + 59 ), 8 * - CAST( NULL AS SIGNED ) AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-3663
SELECT - + NULLIF ( - 87, + COUNT ( ALL + 44 ) * + + 59 ), 8 * - CAST ( NULL AS INTEGER ) AS col2
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT ALL + + 9 + + ( COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL + + 9 + + ( COUNT ( * ) )
----
10

query II rowsort
SELECT ALL - 97, 63 * - - 0 col0
----
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL 85 - + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL 85 - + + COUNT ( * )
----
84

query I rowsort
SELECT 0 + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT - MAX( + 39 ) + - 17 AS col2, - 98 + + + 30 + - 26
----
-56
-94

skipif mysql # not compatible
query II rowsort label-3668
SELECT - MAX ( + 39 ) + - 17 AS col2, - 98 + + + 30 + - 26
----
-56
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT ALL - 15 * 97 DIV - 92 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - 15 * 97 / - 92 AS col2
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL - 4 / + CASE + 6 WHEN - + 31 + COUNT( * ) + + 11 * 71 THEN + COUNT( * ) WHEN 84 THEN + + COUNT( * ) WHEN - - 20 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL - 4 / + CASE + 6 WHEN - + 31 + COUNT ( * ) + + 11 * 71 THEN + COUNT ( * ) WHEN 84 THEN + + COUNT ( * ) WHEN - - 20 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3672
SELECT DISTINCT COUNT( DISTINCT - 14 ) DIV - ( + 79 ) * + 51 + - 49 + ( + + ( - 77 ) )
----
-126

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT COUNT ( DISTINCT - 14 ) / - ( + 79 ) * + 51 + - 49 + ( + + ( - 77 ) )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT 10 + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3673
SELECT 10 + - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3674
SELECT + 84 DIV + 95 AS col0, SUM( ALL 27 ) * 63 * - CASE WHEN + 47 <> NULL THEN + - COUNT( * ) WHEN NOT NULL IS NOT NULL THEN NULL END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3674
SELECT + 84 / + 95 AS col0, SUM ( ALL 27 ) * 63 * - CASE WHEN + 47 <> NULL THEN + - COUNT ( * ) WHEN NOT NULL IS NOT NULL THEN NULL END
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3675
SELECT + CASE + 71 WHEN - CAST( + 36 AS SIGNED ) + - NULLIF ( + 64, 38 + + - 91 ) THEN 49 + + + 92 + - + 36 WHEN COUNT( - 63 ) THEN SUM( + + 43 ) - - 42 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT + CASE + 71 WHEN - CAST ( + 36 AS INTEGER ) + - NULLIF ( + 64, 38 + + - 91 ) THEN 49 + + + 92 + - + 36 WHEN COUNT ( - 63 ) THEN SUM ( + + 43 ) - - 42 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT - 66 + - COALESCE ( 67, 98 DIV + + 18 ) AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-3676
SELECT - 66 + - COALESCE ( 67, 98 / + + 18 ) AS col0
----
-133

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT + COUNT( * ), - 14 AS col1
----
1
-14

skipif mysql # not compatible
query II rowsort label-3677
SELECT + COUNT ( * ), - 14 AS col1
----
1
-14

query II rowsort
SELECT ALL + 12 AS col0, 70 + ( NULLIF ( - + 21, - 53 ) ) + + 85 + + 53 + + 1 * - 39
----
12
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT ALL CAST( - - 72 AS SIGNED ) * 67 * + + 68 AS col1
----
328032

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL CAST ( - - 72 AS INTEGER ) * 67 * + + 68 AS col1
----
328032

query I rowsort
SELECT ALL NULLIF ( 19, + 59 + 80 * + ( + 69 ) ) * + + 85 - + 90 AS col1
----
1525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3681
SELECT DISTINCT + 98 AS col0, + COALESCE ( + - MIN( - + 28 ), - + 79 + - CAST( + - COUNT( * ) AS SIGNED ) DIV CAST( + + COUNT( DISTINCT - 33 ) AS SIGNED ), + 19 - + - 56 - - ( - 35 ) * + ( + + 31 ), - COUNT( * ) * - 43 )
----
98
28

skipif mysql # not compatible
query II rowsort label-3681
SELECT DISTINCT + 98 AS col0, + COALESCE ( + - MIN ( - + 28 ), - + 79 + - CAST ( + - COUNT ( * ) AS INTEGER ) / CAST ( + + COUNT ( DISTINCT - 33 ) AS INTEGER ), + 19 - + - 56 - - ( - 35 ) * + ( + + 31 ), - COUNT ( * ) * - 43 )
----
98
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3682
SELECT ALL + 2 AS col1, CAST( + 62 AS SIGNED ) AS col0
----
2
62

skipif mysql # not compatible
query II rowsort label-3682
SELECT ALL + 2 AS col1, CAST ( + 62 AS INTEGER ) AS col0
----
2
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3683
SELECT + 18 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-3683
SELECT + 18 / 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3684
SELECT + 24 + ( - - 90 ) DIV ( 73 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3684
SELECT + 24 + ( - - 90 ) / ( 73 ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3685
SELECT DISTINCT + 14 col0, 15 - + - 73 DIV 42 * 59 + - 17 * - + 62 * + 36 - - 37 * + 69 - + 71 + 61
----
14
40561

skipif mysql # not compatible
query II rowsort label-3685
SELECT DISTINCT + 14 col0, 15 - + - 73 / 42 * 59 + - 17 * - + 62 * + 36 - - 37 * + 69 - + 71 + 61
----
14
40561

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

skipif mysql # not compatible
query I rowsort label-3686
SELECT SUM ( DISTINCT - 2 )
----
-2

query I rowsort
SELECT - NULLIF ( ( - 49 ), - + 96 + - ( + - 86 ) ) * + 14
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT + CASE 27 WHEN ( - 73 ) THEN NULL WHEN COUNT( * ) * SUM( DISTINCT + 35 ) THEN + + ( + 61 ) * + 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT + CASE 27 WHEN ( - 73 ) THEN NULL WHEN COUNT ( * ) * SUM ( DISTINCT + 35 ) THEN + + ( + 61 ) * + 42 END AS col1
----
NULL

query I rowsort
SELECT + 26 * - 28 + + + 70
----
-658

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT 45 * 25 + - 23 * - 12 * - + SUM( - - 56 ) + + 70
----
-14261

skipif mysql # not compatible
query I rowsort label-3691
SELECT 45 * 25 + - 23 * - 12 * - + SUM ( - - 56 ) + + 70
----
-14261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3692
SELECT SUM( DISTINCT - 76 ) col0, CAST( SUM( - NULLIF ( + - 2, - - 15 ) ) AS SIGNED ) * - NULLIF ( - 32, + 52 ) AS col2
----
-76
64

skipif mysql # not compatible
query II rowsort label-3692
SELECT SUM ( DISTINCT - 76 ) col0, CAST ( SUM ( - NULLIF ( + - 2, - - 15 ) ) AS INTEGER ) * - NULLIF ( - 32, + 52 ) AS col2
----
-76
64

query I rowsort
SELECT ALL 44 * - 85 + 84
----
-3656

query II rowsort
SELECT + 31 AS col2, + 59 col0
----
31
59

query I rowsort
SELECT ALL + 42 * + + 71 AS col2
----
2982

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3696
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * + - 58 + + + 7 + 71 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * + - 58 + + + 7 + 71 AS col2
----
20

query I rowsort
SELECT ALL + + 36 + 77 + - + 7 + - - 48 * - 66 AS col1
----
-3062

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

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

query I rowsort
SELECT ALL - 51 + 8 AS col2
----
-43

query I rowsort
SELECT DISTINCT + - 86 + - 50
----
-136

query I rowsort
SELECT - 90 * + 43 AS col2
----
-3870

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL - COUNT( ALL + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - COUNT ( ALL + 62 )
----
-1

query II rowsort
SELECT ALL 73 AS col2, 52 AS col2
----
73
52

query I rowsort
SELECT ALL - NULLIF ( - - 90, + 0 ) * + - 40 - - 12 - 25 AS col2
----
3587

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL - + 69 - + + 14 * + CASE + - 38 WHEN + 43 * + COUNT( * ) * - CAST( 53 AS SIGNED ) THEN + MAX( DISTINCT + 80 ) / CASE - - 9 WHEN ( 68 ) THEN - COUNT( * ) END - 60 + 90 ELSE NULL END * - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - + 69 - + + 14 * + CASE + - 38 WHEN + 43 * + COUNT ( * ) * - CAST ( 53 AS INTEGER ) THEN + MAX ( DISTINCT + 80 ) / CASE - - 9 WHEN ( 68 ) THEN - COUNT ( * ) END - 60 + 90 ELSE NULL END * - 90 AS col0
----
NULL

query I rowsort
SELECT ALL + 75 * + - 29 AS col2
----
-2175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3708
SELECT - 6 - + 59 * + 38 DIV COUNT( * )
----
-2248

skipif mysql # not compatible
query I rowsort label-3708
SELECT - 6 - + 59 * + 38 / COUNT ( * )
----
-2248

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT + 75 * + + COUNT( * ) * + + 56 * + - SUM( 66 )
----
-277200

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 75 * + + COUNT ( * ) * + + 56 * + - SUM ( 66 )
----
-277200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3710
SELECT ALL + 58 * - + CASE + - 27 WHEN - ( - 98 ) * + + CAST( - 59 AS DECIMAL ) * - MAX( ALL + 88 ) THEN NULL ELSE - - COUNT( * ) * + CASE + + ( - 88 ) WHEN + - 8 / - COALESCE ( + COUNT( * ), + - 92 * + + 1 + - + 52, 17 / - + 3 ) THEN 75 * 35 WHEN 41 * - COUNT( * ) THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + 58 * - + CASE + - 27 WHEN - ( - 98 ) * + + CAST ( - 59 AS REAL ) * - MAX ( ALL + 88 ) THEN NULL ELSE - - COUNT ( * ) * + CASE + + ( - 88 ) WHEN + - 8 / - COALESCE ( + COUNT ( * ), + - 92 * + + 1 + - + 52, 17 / - + 3 ) THEN 75 * 35 WHEN 41 * - COUNT ( * ) THEN NULL END END
----
NULL

query I rowsort
SELECT - ( + + 37 ) + - 62
----
-99

query I rowsort
SELECT - + 38 col1
----
-38

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

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

query II rowsort
SELECT DISTINCT + ( 24 ) * 31 + + 57 * + - 38 * - 97 AS col0, - 86 * - 39 * - 91 * 51 * + + 33 + 77 AS col0
----
210846
-513675085

query I rowsort
SELECT DISTINCT + 3 * 50
----
150

query I rowsort
SELECT ALL ( - 70 ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3717
SELECT DISTINCT ( 39 ), COALESCE ( + + MAX( + 70 ), - 49 + + + CAST( + 77 AS SIGNED ), + 5 ) AS col1
----
39
70

skipif mysql # not compatible
query II rowsort label-3717
SELECT DISTINCT ( 39 ), COALESCE ( + + MAX ( + 70 ), - 49 + + + CAST ( + 77 AS INTEGER ), + 5 ) AS col1
----
39
70

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3720
SELECT + CASE + + CASE - 43 WHEN - COUNT( * ) * + CAST( NULL AS SIGNED ) * - MIN( - - 51 ) THEN - 19 + 7 + - 15 * - - 65 WHEN + 90 THEN - + 98 END WHEN + 47 * - COUNT( * ) * + + 99 + - 90 THEN + NULLIF ( - - COUNT( * ), - - 11 * + 54 + - + 38 ) * + 91 + AVG ( DISTINCT + 78 ) WHEN 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT + CASE + + CASE - 43 WHEN - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - MIN ( - - 51 ) THEN - 19 + 7 + - 15 * - - 65 WHEN + 90 THEN - + 98 END WHEN + 47 * - COUNT ( * ) * + + 99 + - 90 THEN + NULLIF ( - - COUNT ( * ), - - 11 * + 54 + - + 38 ) * + 91 + AVG ( DISTINCT + 78 ) WHEN 66 THEN NULL END
----
NULL

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

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

query I rowsort
SELECT - 12 * + 32
----
-384

query I rowsort
SELECT + 18 * + + 50
----
900

query I rowsort
SELECT ( + + 83 ) col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT 58 DIV 5 - + 80
----
-69

skipif mysql # not compatible
query I rowsort label-3725
SELECT 58 / 5 - + 80
----
-69

query I rowsort
SELECT DISTINCT + ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL 78 * + COUNT( * ) + - - 41
----
119

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL 78 * + COUNT ( * ) + - - 41
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3728
SELECT ( - CAST( NULL AS SIGNED ) ) / + 79 * + + MAX( - + 9 ) * - + 53 + 19 + + COUNT( * ) * - 77 * - + 74 * 68 - - + ( 47 ) / + CASE + 96 WHEN + 44 THEN + + COALESCE ( - 39, + 6 ) + + 19 + - 92 * + 81 * 77 WHEN + ( 80 ) + - 76 THEN - 75 ELSE - 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT ( - CAST ( NULL AS INTEGER ) ) / + 79 * + + MAX ( - + 9 ) * - + 53 + 19 + + COUNT ( * ) * - 77 * - + 74 * 68 - - + ( 47 ) / + CASE + 96 WHEN + 44 THEN + + COALESCE ( - 39, + 6 ) + + 19 + - 92 * + 81 * 77 WHEN + ( 80 ) + - 76 THEN - 75 ELSE - 67 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 40 * + 39 + + 8
----
1568

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT + 35 DIV - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT + 35 / - 50 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL 15 * - - 91 * + 85 + 55 + + SUM( - 65 )
----
116015

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL 15 * - - 91 * + 85 + 55 + + SUM ( - 65 )
----
116015

onlyif mysql # DIV for integer division: 
query I rowsort label-3732
SELECT + 60 + - - 69 - - + 43 DIV - 6 AS col2
----
122

skipif mysql # not compatible
query I rowsort label-3732
SELECT + 60 + - - 69 - - + 43 / - 6 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT + CASE - 68 WHEN - 75 THEN NULL WHEN - COUNT( DISTINCT - 71 ) / + 64 THEN - 70 * - + 36 + + - MIN( DISTINCT + 73 ) ELSE NULL END + 58 - - ( 62 ) - + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT + CASE - 68 WHEN - 75 THEN NULL WHEN - COUNT ( DISTINCT - 71 ) / + 64 THEN - 70 * - + 36 + + - MIN ( DISTINCT + 73 ) ELSE NULL END + 58 - - ( 62 ) - + 0 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3734
SELECT - - COUNT( * ) * + NULLIF ( - NULLIF ( 68, - + ( + + 76 ) / 40 * COUNT( * ) ), COUNT( * ) + CAST( - MIN( + 8 ) AS SIGNED ) ) * + 6
----
-408

skipif mysql # not compatible
query I rowsort label-3734
SELECT - - COUNT ( * ) * + NULLIF ( - NULLIF ( 68, - + ( + + 76 ) / 40 * COUNT ( * ) ), COUNT ( * ) + CAST ( - MIN ( + 8 ) AS INTEGER ) ) * + 6
----
-408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT + + NULLIF ( - 94, + + 87 * - COUNT( * ) + COUNT( * ) - + + 42 / 7 / CAST( - 61 AS SIGNED ) * - 25 ) * - COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3735
SELECT + + NULLIF ( - 94, + + 87 * - COUNT ( * ) + COUNT ( * ) - + + 42 / 7 / CAST ( - 61 AS INTEGER ) * - 25 ) * - COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT - - 99 * - + 8 + - 15 + + COUNT( * ) AS col0
----
-806

skipif mysql # not compatible
query I rowsort label-3736
SELECT - - 99 * - + 8 + - 15 + + COUNT ( * ) AS col0
----
-806

query II rowsort
SELECT - + 59 + - + 95 AS col2, + 57
----
-154
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL - - COUNT( * ) * + ( - ( - 45 ) ) + 22 * + + 44 AS col0
----
1013

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - - COUNT ( * ) * + ( - ( - 45 ) ) + 22 * + + 44 AS col0
----
1013

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT SUM( ALL - - COALESCE ( - 18, - + 24 ) ) * - MAX( DISTINCT + 35 )
----
630

skipif mysql # not compatible
query I rowsort label-3739
SELECT SUM ( ALL - - COALESCE ( - 18, - + 24 ) ) * - MAX ( DISTINCT + 35 )
----
630

query I rowsort
SELECT - 4 + + COALESCE ( + - 68, - 56, + - 51 )
----
-72

query I rowsort
SELECT + 73 + + + 46 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT COUNT( * ) * 42 * - COUNT( * ) * - - 19
----
-798

skipif mysql # not compatible
query I rowsort label-3742
SELECT COUNT ( * ) * 42 * - COUNT ( * ) * - - 19
----
-798

query I rowsort
SELECT DISTINCT 2 col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3744
SELECT - 83 AS col2, CAST( NULL AS SIGNED ) col2
----
-83
NULL

skipif mysql # not compatible
query II rowsort label-3744
SELECT - 83 AS col2, CAST ( NULL AS INTEGER ) col2
----
-83
NULL

query II rowsort
SELECT DISTINCT 36 AS col2, + 65 + - - 80 col1
----
36
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT 66 DIV + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3746
SELECT 66 / + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT DISTINCT - 44 + 27
----
-17

query I rowsort
SELECT DISTINCT - 35 * + 99 * + - 48 AS col0
----
166320

query I rowsort
SELECT ALL + 17 + + 65
----
82

query I rowsort
SELECT 56 + + + 33
----
89

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3752
SELECT 66 + - CAST( NULL AS SIGNED ) + + 35 - + 22 + + SUM( - - 53 ) + + 60 * + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT 66 + - CAST ( NULL AS INTEGER ) + + 35 - + 22 + + SUM ( - - 53 ) + + 60 * + + 4
----
NULL

query I rowsort
SELECT DISTINCT - 72 * 85
----
-6120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT ALL + 18 + + - 47 - - 53 / - 20 * + ( NULLIF ( - COUNT( * ), - + COUNT( * ) ) ) + - 28 + + 51 * + CAST( NULL AS SIGNED ) - - 27 - + - 60 * - COUNT( * ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + 18 + + - 47 - - 53 / - 20 * + ( NULLIF ( - COUNT ( * ), - + COUNT ( * ) ) ) + - 28 + + 51 * + CAST ( NULL AS INTEGER ) - - 27 - + - 60 * - COUNT ( * ) * - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL - 54 * - + 47 * + ( - - COUNT( * ) )
----
2538

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - 54 * - + 47 * + ( - - COUNT ( * ) )
----
2538

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT ALL + 82 + - COALESCE ( 87, - + 74, 49 DIV + 43 + - 94 + - 6 - 15 + + + 32 ) + - - 77
----
72

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + 82 + - COALESCE ( 87, - + 74, 49 / + 43 + - 94 + - 6 - 15 + + + 32 ) + - - 77
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3758
SELECT 81 * - COUNT( ( + CAST( NULL AS DECIMAL ) ) ) * 0 + 51 - - 42 - + + COUNT( * ) + 5 * + 81 * - 82
----
-33118

skipif mysql # not compatible
query I rowsort label-3758
SELECT 81 * - COUNT ( ( + CAST ( NULL AS REAL ) ) ) * 0 + 51 - - 42 - + + COUNT ( * ) + 5 * + 81 * - 82
----
-33118

query I rowsort
SELECT 16 + + - 99 AS col2
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT DISTINCT 34 DIV 47 * - ( + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT 34 / 47 * - ( + - COUNT ( * ) )
----
0

query II rowsort
SELECT ALL - + 89, - 27 AS col0
----
-89
-27

query II rowsort
SELECT + - 37 AS col0, 68
----
-37
68

query I rowsort
SELECT - - 74 * 31 + - 44 + 25 * 77
----
4175

query I rowsort
SELECT 96 * 30
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT SUM( DISTINCT - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-3765
SELECT SUM ( DISTINCT - 32 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT - 77 * - - 24 + - 53 + + COALESCE ( - COUNT( * ), 90 ) AS col0
----
-1902

skipif mysql # not compatible
query I rowsort label-3766
SELECT - 77 * - - 24 + - 53 + + COALESCE ( - COUNT ( * ), 90 ) AS col0
----
-1902

query I rowsort
SELECT ALL + 43 - 99
----
-56

query I rowsort
SELECT 14 * - 58
----
-812

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

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT - COUNT ( * ) / + + 69
----
0

query I rowsort
SELECT ( + + 96 ) * + + 10 * 50 AS col2
----
48000

query I rowsort
SELECT ALL + 99 * 70
----
6930

query I rowsort
SELECT DISTINCT - 41 * + 5
----
-205

query I rowsort
SELECT ALL 78 - - - 27 * 39 * 59 AS col1
----
-62049

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3774
SELECT + 44 DIV 18 + - - 22 + 50 + + 44 + + 37 * - COALESCE ( + 58, - - 59 ) col0, COUNT( * )
----
-2028
1

skipif mysql # not compatible
query II rowsort label-3774
SELECT + 44 / 18 + - - 22 + 50 + + 44 + + 37 * - COALESCE ( + 58, - - 59 ) col0, COUNT ( * )
----
-2028
1

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

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL SUM ( 28 )
----
28

query I rowsort
SELECT - + COALESCE ( + 10, + 16 + + + 65 )
----
-10

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

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

query I rowsort
SELECT 62 * - 79
----
-4898

query II rowsort
SELECT ( 33 ) * 88 AS col0, 11 + - 72
----
2904
-61

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

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

query I rowsort
SELECT 54 - + 17 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL - 76 * - - 98 * + COUNT( * ) + 87
----
-7361

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL - 76 * - - 98 * + COUNT ( * ) + 87
----
-7361

onlyif mysql # DIV for integer division: 
query II rowsort label-3783
SELECT DISTINCT + 65 + 30 * - 84 + 29 - 21 DIV - 81 * + + 9 + - - 10 AS col2, + 99 - 93 AS col0
----
-2416
6

skipif mysql # not compatible
query II rowsort label-3783
SELECT DISTINCT + 65 + 30 * - 84 + 29 - 21 / - 81 * + + 9 + - - 10 AS col2, + 99 - 93 AS col0
----
-2416
6

query I rowsort
SELECT ALL 13 + 95 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT ALL 31 + CAST( COUNT( * ) AS SIGNED ) * - 52 col0
----
-21

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL 31 + CAST ( COUNT ( * ) AS INTEGER ) * - 52 col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT CAST( - 27 AS SIGNED ) + + - NULLIF ( - - 50, + 35 * + - 27 )
----
-77

skipif mysql # not compatible
query I rowsort label-3786
SELECT CAST ( - 27 AS INTEGER ) + + - NULLIF ( - - 50, + 35 * + - 27 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT 95 * + 26 * - COUNT( * ) col0
----
-2470

skipif mysql # not compatible
query I rowsort label-3787
SELECT 95 * + 26 * - COUNT ( * ) col0
----
-2470

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT 1 + 85 + 8 - CAST( NULL AS SIGNED ) * - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT 1 + 85 + 8 - CAST ( NULL AS INTEGER ) * - - 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT DISTINCT + 4 DIV - 36 col0
----
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + 4 / - 36 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT DISTINCT 30 + COUNT( ALL + - 25 )
----
31

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT 30 + COUNT ( ALL + - 25 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL + MAX( ALL 44 ) * - + 21 * + + 88
----
-81312

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + MAX ( ALL 44 ) * - + 21 * + + 88
----
-81312

query I rowsort
SELECT DISTINCT 64 * + CASE - 0 WHEN - - 33 THEN + 74 ELSE ( 46 ) END + 53
----
2997

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT + ( + - COUNT( ALL - 50 ) ) * - + COUNT( - 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + ( + - COUNT ( ALL - 50 ) ) * - + COUNT ( - 23 ) AS col2
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-3796
SELECT 81 - - + COUNT ( * ) AS col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3797
SELECT 84 * + + 47 AS col0, - 22 DIV COUNT( * ) * - 27 AS col1
----
3948
594

skipif mysql # not compatible
query II rowsort label-3797
SELECT 84 * + + 47 AS col0, - 22 / COUNT ( * ) * - 27 AS col1
----
3948
594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3798
SELECT ALL - COALESCE ( + 97, + COALESCE ( ( - 75 ), - 83 - - 30 DIV + - COUNT( * ) ) + 19 + - - 61, - - 99 * - ( + NULLIF ( + CAST( - - 62 AS SIGNED ), ( - - 14 ) + - 6 + - 42 ) ) ) * + ( - 25 ) AS col1
----
2425

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - COALESCE ( + 97, + COALESCE ( ( - 75 ), - 83 - - 30 / + - COUNT ( * ) ) + 19 + - - 61, - - 99 * - ( + NULLIF ( + CAST ( - - 62 AS INTEGER ), ( - - 14 ) + - 6 + - 42 ) ) ) * + ( - 25 ) AS col1
----
2425

query I rowsort
SELECT DISTINCT - ( + - 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - 1 * + - COUNT( * ) - + - 97 * 73
----
7082

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - 1 * + - COUNT ( * ) - + - 97 * 73
----
7082

query I rowsort
SELECT - 79 - - + 18 AS col1
----
-61

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

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

query II rowsort
SELECT - 41 * - ( - 27 ) + - + 80 AS col1, - 61 AS col0
----
-1187
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT DISTINCT + - CASE + - 95 WHEN 30 * - + COUNT( * ) - - 52 + - SUM( + 50 ) THEN - 74 WHEN 76 THEN + 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT + - CASE + - 95 WHEN 30 * - + COUNT ( * ) - - 52 + - SUM ( + 50 ) THEN - 74 WHEN 76 THEN + 5 END AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 90, - 76, - - 75 * - 89 + - COALESCE ( + 64, + - 17 ) ) col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + - 93 * + - 8 + - COUNT( * ) * 90 - + 70 AS col2
----
584

skipif mysql # not compatible
query I rowsort label-3806
SELECT + - 93 * + - 8 + - COUNT ( * ) * 90 - + 70 AS col2
----
584

query I rowsort
SELECT - - 82 + - 58
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3808
SELECT + 42 - + 21 + - 14 * + 60 AS col1, COUNT( * ) DIV 9 DIV + + 79 col0
----
-819
0

skipif mysql # not compatible
query II rowsort label-3808
SELECT + 42 - + 21 + - 14 * + 60 AS col1, COUNT ( * ) / 9 / + + 79 col0
----
-819
0

query I rowsort
SELECT - 79 * - 85 + 87 + - + 99 AS col1
----
6703

query I rowsort
SELECT DISTINCT - 38 * + + 90 * - + ( + + 41 ) AS col0
----
140220

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT ALL + 27 + + 65 * CASE 99 WHEN + COUNT( * ) * 5 + + 51 THEN + CASE - 24 WHEN 89 + - + 0 THEN 98 END ELSE NULL END + - + SUM( DISTINCT + 14 ) AS col0, - 61 AS col0
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-3811
SELECT ALL + 27 + + 65 * CASE 99 WHEN + COUNT ( * ) * 5 + + 51 THEN + CASE - 24 WHEN 89 + - + 0 THEN 98 END ELSE NULL END + - + SUM ( DISTINCT + 14 ) AS col0, - 61 AS col0
----
NULL
-61

query I rowsort
SELECT + 8 + + - 42
----
-34

query I rowsort
SELECT ALL - ( + + NULLIF ( + + 10, + 13 * - 21 ) )
----
-10

query I rowsort
SELECT ALL 52 + - - 20 * 31
----
672

query I rowsort
SELECT + 22 + + 5
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3816
SELECT DISTINCT 32, - CAST( NULL AS SIGNED ) AS col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-3816
SELECT DISTINCT 32, - CAST ( NULL AS INTEGER ) AS col1
----
32
NULL

query I rowsort
SELECT - COALESCE ( + 10, - 98 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - MIN( DISTINCT - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-3818
SELECT - MIN ( DISTINCT - 89 )
----
89

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

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

query I rowsort
SELECT ALL 60 + - - 42 AS col2
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-3821
SELECT DISTINCT 65 - ( - ( 18 ) ) DIV 29 - - 92
----
157

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT 65 - ( - ( 18 ) ) / 29 - - 92
----
157

query I rowsort
SELECT ALL 24 * - 50 AS col0
----
-1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3823
SELECT - COALESCE ( 48, + ( COUNT( * ) ) - + 39 DIV - 43 * 49 * 99, - 9 + + - 53 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3823
SELECT - COALESCE ( 48, + ( COUNT ( * ) ) - + 39 / - 43 * 49 * 99, - 9 + + - 53 ) AS col0
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + ( COUNT( * ) ) * - + 74 * + 21 AS col0
----
-1554

skipif mysql # not compatible
query I rowsort label-3825
SELECT + ( COUNT ( * ) ) * - + 74 * + 21 AS col0
----
-1554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3826
SELECT - 88 * 93 DIV + + COUNT( 7 )
----
-8184

skipif mysql # not compatible
query I rowsort label-3826
SELECT - 88 * 93 / + + COUNT ( 7 )
----
-8184

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT + ( COUNT( * ) ) + - 99 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3827
SELECT + ( COUNT ( * ) ) + - 99 AS col1
----
-98

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

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

query II rowsort
SELECT ALL + 65 AS col2, 30 AS col2
----
65
30

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3831
SELECT + 52 * COUNT( * ) * + - CAST( NULL AS SIGNED ) / - CASE - 41 WHEN + COUNT( * ) THEN - - 11 END * + 35 + + COUNT( + COALESCE ( - + 30, - + 94 + - 29 + - 17 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT + 52 * COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / - CASE - 41 WHEN + COUNT ( * ) THEN - - 11 END * + 35 + + COUNT ( + COALESCE ( - + 30, - + 94 + - 29 + - 17 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT - + 37 * - + 87 + 31 + SUM( - 83 ) * + 37 AS col2
----
179

skipif mysql # not compatible
query I rowsort label-3832
SELECT - + 37 * - + 87 + 31 + SUM ( - 83 ) * + 37 AS col2
----
179

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT ALL + + 7 AS col2, SUM( - + 47 ) + + - 91 AS col1
----
7
-138

skipif mysql # not compatible
query II rowsort label-3833
SELECT ALL + + 7 AS col2, SUM ( - + 47 ) + + - 91 AS col1
----
7
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3834
SELECT COUNT( * ) DIV + 59 * - 85 + - 84 + + 78 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3834
SELECT COUNT ( * ) / + 59 * - 85 + - 84 + + 78 AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3835
SELECT ALL - 83 DIV + 75
----
-1

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - 83 / + 75
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3836
SELECT - + CAST( + + MAX( DISTINCT - 80 ) AS SIGNED ) + 19 + ( + 77 )
----
176

skipif mysql # not compatible
query I rowsort label-3836
SELECT - + CAST ( + + MAX ( DISTINCT - 80 ) AS INTEGER ) + 19 + ( + 77 )
----
176

query I rowsort
SELECT ALL + - 73 AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3838
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 44 - + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 44 - + 8 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT - + 22 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT - + 22 / - 94 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT - ( - - CASE - 17 WHEN - - 15 THEN NULL WHEN - 89 THEN 18 DIV 71 ELSE - + 31 END ) * - - 55 col1
----
1705

skipif mysql # not compatible
query I rowsort label-3840
SELECT - ( - - CASE - 17 WHEN - - 15 THEN NULL WHEN - 89 THEN 18 / 71 ELSE - + 31 END ) * - - 55 col1
----
1705

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT ALL + 29 * COUNT( * ) + COUNT( * ) + 86 DIV - 63 + - 44
----
-15

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + 29 * COUNT ( * ) + COUNT ( * ) + 86 / - 63 + - 44
----
-15

query I rowsort
SELECT DISTINCT 97 * 77 + + 18 * 44
----
8261

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL 35 * - + NULLIF ( - - 43, NULLIF ( - 33, + 20 ) * - + 89 * + 20 - 14 ) + - + COUNT( 98 ) + + 75 AS col0
----
-1431

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL 35 * - + NULLIF ( - - 43, NULLIF ( - 33, + 20 ) * - + 89 * + 20 - 14 ) + - + COUNT ( 98 ) + + 75 AS col0
----
-1431

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL - MAX( + 59 ) * + + 79 + + 87
----
-4574

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL - MAX ( + 59 ) * + + 79 + + 87
----
-4574

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT COUNT( * ) * + + 16 + COUNT( * ) + - 93 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT COUNT ( * ) * + + 16 + COUNT ( * ) + - 93 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3847
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) - - CASE 91 WHEN - AVG ( DISTINCT - - 97 ) THEN NULL ELSE - COALESCE ( - + 46, - COUNT( * ) ) END
----
46

skipif mysql # not compatible
query I rowsort label-3847
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) - - CASE 91 WHEN - AVG ( DISTINCT - - 97 ) THEN NULL ELSE - COALESCE ( - + 46, - COUNT ( * ) ) END
----
46

query I rowsort
SELECT + ( 96 ) * + + 43 AS col0
----
4128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3849
SELECT COUNT( * ), + CASE CAST( NULL AS DECIMAL ) WHEN + + 30 THEN - - CASE - + 95 WHEN - + CAST( 79 AS SIGNED ) THEN - COUNT( - + 70 ) + 34 END * + 44 * - 50 ELSE NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3849
SELECT COUNT ( * ), + CASE CAST ( NULL AS REAL ) WHEN + + 30 THEN - - CASE - + 95 WHEN - + CAST ( 79 AS INTEGER ) THEN - COUNT ( - + 70 ) + 34 END * + 44 * - 50 ELSE NULL END AS col1
----
1
NULL

query I rowsort
SELECT - COALESCE ( - ( + 70 ), - + 66 + 71 ) AS col2
----
70

query II rowsort
SELECT - 37 AS col1, + ( - 3 ) * - 23 * + 66 * - 7
----
-37
-31878

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL 37 * COUNT( * ) * - + COUNT( * ) + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL 37 * COUNT ( * ) * - + COUNT ( * ) + COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT - ( + COUNT( * ) ) * - 73 - - - 48 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3853
SELECT - ( + COUNT ( * ) ) * - 73 - - - 48 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3854
SELECT ALL 36 - - CAST( 29 AS SIGNED ) + + COUNT( * ) AS col2
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - COUNT( * ) - - COALESCE ( + + ( - 83 ), + 46 + + NULLIF ( - - 39, 95 ) ) + - + 10 * + - CASE 25 WHEN + + ( 50 ) THEN 8 * + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT - COUNT ( * ) - - COALESCE ( + + ( - 83 ), + 46 + + NULLIF ( - - 39, 95 ) ) + - + 10 * + - CASE 25 WHEN + + ( 50 ) THEN 8 * + - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3856
SELECT ALL CAST( NULL AS SIGNED ) col0, + COUNT( * ) / + ( - 77 ) * + + 1 * 76 * 67 * AVG ( + + CAST( NULL AS SIGNED ) ) * - 28 + + - 30 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3856
SELECT ALL CAST ( NULL AS INTEGER ) col0, + COUNT ( * ) / + ( - 77 ) * + + 1 * 76 * 67 * AVG ( + + CAST ( NULL AS INTEGER ) ) * - 28 + + - 30 AS col2
----
NULL
NULL

query I rowsort
SELECT ALL - 95 * - 76 * + - 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3858
SELECT DISTINCT + 41 * + + 3 col0, - CAST( + - 81 AS SIGNED ) * - 72 AS col0
----
123
-5832

skipif mysql # not compatible
query II rowsort label-3858
SELECT DISTINCT + 41 * + + 3 col0, - CAST ( + - 81 AS INTEGER ) * - 72 AS col0
----
123
-5832

query II rowsort
SELECT ALL 10, 25 * - 67 AS col0
----
10
-1675

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT - 82 + - - MAX( 60 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3860
SELECT - 82 + - - MAX ( 60 ) AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT + 88 DIV - + MIN( + 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3861
SELECT + 88 / - + MIN ( + 59 ) AS col1
----
-1

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

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

query I rowsort
SELECT + ( 61 ) + + 13
----
74

query I rowsort
SELECT + 64 - - NULLIF ( + 1, - 37 ) AS col2
----
65

query I rowsort
SELECT ALL ( + - 26 ) * 42 * + 40
----
-43680

query I rowsort
SELECT + 28 * 99 * 68
----
188496

query II rowsort
SELECT 4 AS col2, + 85 * + 90 AS col2
----
4
7650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3868
SELECT - 4 DIV COUNT( * ) * - 78 + + 88 + + + 73
----
473

skipif mysql # not compatible
query I rowsort label-3868
SELECT - 4 / COUNT ( * ) * - 78 + + 88 + + + 73
----
473

query II rowsort
SELECT ALL - 1, 23 col1
----
-1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - 88 * NULLIF ( - NULLIF ( - 14, + 63 * - 81 ), - - 59 * + + 69 + - + 87 + + + 38 ) + 50 + + - MAX( DISTINCT - + ( - 95 ) ) AS col0
----
-1277

skipif mysql # not compatible
query I rowsort label-3870
SELECT - 88 * NULLIF ( - NULLIF ( - 14, + 63 * - 81 ), - - 59 * + + 69 + - + 87 + + + 38 ) + 50 + + - MAX ( DISTINCT - + ( - 95 ) ) AS col0
----
-1277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3871
SELECT ALL MAX( ALL + - 76 ) + + + 25 + - + 61 + - - 39 + - COUNT( * ) DIV - 34
----
-73

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL MAX ( ALL + - 76 ) + + + 25 + - + 61 + - - 39 + - COUNT ( * ) / - 34
----
-73

query I rowsort
SELECT DISTINCT - COALESCE ( + 95, - 59 + + 10 * - 36 ) * + 77
----
-7315

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3874
SELECT ALL - 60 + - ( ( - 64 ) ) DIV - + ( + - COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL - 60 + - ( ( - 64 ) ) / - + ( + - COUNT ( * ) )
----
4

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

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

query I rowsort
SELECT ALL + - 95 + + 68
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT CAST( + + 21 AS SIGNED ) - + + CASE + AVG ( DISTINCT + 17 ) WHEN - 10 + ( + 16 ) THEN 44 + SUM( 65 ) WHEN 60 / + 73 * 29 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT CAST ( + + 21 AS INTEGER ) - + + CASE + AVG ( DISTINCT + 17 ) WHEN - 10 + ( + 16 ) THEN 44 + SUM ( 65 ) WHEN 60 / + 73 * 29 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 19 AS col1, 1 AS col2
----
-19
1

query I rowsort
SELECT ALL - + 82 * 30
----
-2460

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT + CASE + 46 WHEN 53 - - COUNT( * ) THEN + 87 ELSE NULL END / + + ( 89 ) + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + CASE + 46 WHEN 53 - - COUNT ( * ) THEN + 87 ELSE NULL END / + + ( 89 ) + - 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT - 95 * 37 DIV - 89 + + 29 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3881
SELECT - 95 * 37 / - 89 + + 29 AS col1
----
68

query I rowsort
SELECT NULLIF ( - 72, 79 )
----
-72

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

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

query II rowsort
SELECT ALL + 26 * - - 96 AS col0, + 97 AS col0
----
2496
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT COUNT( * ) * + 52 + 52 col0
----
104

skipif mysql # not compatible
query I rowsort label-3885
SELECT COUNT ( * ) * + 52 + 52 col0
----
104

query I rowsort
SELECT ALL 54 - + - 70 * + 69
----
4884

query I rowsort
SELECT ALL + 99 - ( + 1 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT COUNT( * ) + - 54 * + SUM( ALL + 46 ) * 43 - - 56 + + ( + 62 )
----
-106693

skipif mysql # not compatible
query I rowsort label-3888
SELECT COUNT ( * ) + - 54 * + SUM ( ALL + 46 ) * 43 - - 56 + + ( + 62 )
----
-106693

query I rowsort
SELECT 75 * - 72 AS col2
----
-5400

query I rowsort
SELECT 10 * 46 * - 65 AS col1
----
-29900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT 13 + - - 61 + 78 * - 60 * - 96 * + CAST( - + 31 AS SIGNED ) * COUNT( + - 75 )
----
-13927606

skipif mysql # not compatible
query I rowsort label-3891
SELECT 13 + - - 61 + 78 * - 60 * - 96 * + CAST ( - + 31 AS INTEGER ) * COUNT ( + - 75 )
----
-13927606

query I rowsort
SELECT 29 + + + 66 + COALESCE ( - 74, 65 ) AS col1
----
21

query I rowsort
SELECT 0 * - - 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL 23 * MAX( ALL - 9 )
----
-207

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL 23 * MAX ( ALL - 9 )
----
-207

query I rowsort
SELECT ALL - 65 * 63
----
-4095

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3896
SELECT 26 + - + 8 * + 32 AS col1, CAST( NULL AS SIGNED )
----
-230
NULL

skipif mysql # not compatible
query II rowsort label-3896
SELECT 26 + - + 8 * + 32 AS col1, CAST ( NULL AS INTEGER )
----
-230
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT - 72 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT - 72 / + 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT + COUNT( * ) + + - 54
----
-53

skipif mysql # not compatible
query I rowsort label-3898
SELECT + COUNT ( * ) + + - 54
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT 75 - + COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-3899
SELECT 75 - + COUNT ( * ) col2
----
74

query I rowsort
SELECT 6 + 8 - + 55 AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3901
SELECT + 95 + 63 AS col1, - CAST( NULL AS SIGNED ) / + 61 AS col1
----
158
NULL

skipif mysql # not compatible
query II rowsort label-3901
SELECT + 95 + 63 AS col1, - CAST ( NULL AS INTEGER ) / + 61 AS col1
----
158
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3902
SELECT 65 * - MAX( DISTINCT + 3 ) - 75 + + COALESCE ( 30, + 14 ) DIV - 67 AS col0
----
-270

skipif mysql # not compatible
query I rowsort label-3902
SELECT 65 * - MAX ( DISTINCT + 3 ) - 75 + + COALESCE ( 30, + 14 ) / - 67 AS col0
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-3903
SELECT ALL - 0 DIV - + ( - + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - 0 / - + ( - + 81 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT + 38 DIV + + 67 - + NULLIF ( - ( CASE 70 WHEN - 53 * - 68 THEN NULL WHEN + - COUNT( * ) THEN NULL ELSE 9 * 70 END ), ( - 39 ) * - + COUNT( * ) ) AS col1
----
630

skipif mysql # not compatible
query I rowsort label-3904
SELECT + 38 / + + 67 - + NULLIF ( - ( CASE 70 WHEN - 53 * - 68 THEN NULL WHEN + - COUNT ( * ) THEN NULL ELSE 9 * 70 END ), ( - 39 ) * - + COUNT ( * ) ) AS col1
----
630

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT 3 * COUNT( * ) + - 72 + - + 88 * ( 97 ) + - ( - - 78 ) + - ( + + 34 ) - + 31 + 48 * - 74
----
-12300

skipif mysql # not compatible
query I rowsort label-3906
SELECT 3 * COUNT ( * ) + - 72 + - + 88 * ( 97 ) + - ( - - 78 ) + - ( + + 34 ) - + 31 + 48 * - 74
----
-12300

query I rowsort
SELECT DISTINCT - 98 + - 49 - - - 2
----
-149

query I rowsort
SELECT DISTINCT + 81 + 68 AS col2
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-3909
SELECT + 27 * 71 DIV + - 1 + + 18
----
-1899

skipif mysql # not compatible
query I rowsort label-3909
SELECT + 27 * 71 / + - 1 + + 18
----
-1899

query II rowsort
SELECT DISTINCT 76 + + 89 AS col0, + 14 * 90
----
165
1260

query I rowsort
SELECT DISTINCT - + 80 AS col0
----
-80

query I rowsort
SELECT DISTINCT - - 3 AS col2
----
3

query I rowsort
SELECT ALL 7 - 1 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3914
SELECT MIN( + - 49 ) DIV + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3914
SELECT MIN ( + - 49 ) / + COUNT ( * ) AS col1
----
-49

query II rowsort
SELECT DISTINCT - 27 col1, 93
----
-27
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT ALL 1 DIV - 10 * + 4
----
0

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL 1 / - 10 * + 4
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT AVG ( - 30 ) - + CAST( NULL AS SIGNED ) / - 48 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT AVG ( - 30 ) - + CAST ( NULL AS INTEGER ) / - 48 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3918
SELECT COALESCE ( 73, - 37 DIV + SUM( DISTINCT + - 1 ) - 92 + + + 52 * 77 ) DIV - - COALESCE ( - SUM( DISTINCT 5 ), 20 )
----
-14

skipif mysql # not compatible
query I rowsort label-3918
SELECT COALESCE ( 73, - 37 / + SUM ( DISTINCT + - 1 ) - 92 + + + 52 * 77 ) / - - COALESCE ( - SUM ( DISTINCT 5 ), 20 )
----
-14

query I rowsort
SELECT ALL 59 * - + 25 AS col1
----
-1475

query I rowsort
SELECT 19 - 74 AS col2
----
-55

query II rowsort
SELECT ALL 66 AS col1, 17
----
66
17

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

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

query II rowsort
SELECT 16 AS col1, + 66 AS col1
----
16
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL - 60 + + - COUNT( * ) * - + SUM( ALL 76 ) + - + 69 + - 98
----
-151

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - 60 + + - COUNT ( * ) * - + SUM ( ALL 76 ) + - + 69 + - 98
----
-151

query I rowsort
SELECT ALL + ( - 89 ) + - 5 AS col2
----
-94

query II rowsort
SELECT 97 AS col2, 91 AS col0
----
97
91

query II rowsort
SELECT 33 AS col1, - 86
----
33
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - - 15 + MAX( + 63 )
----
78

skipif mysql # not compatible
query I rowsort label-3928
SELECT - - 15 + MAX ( + 63 )
----
78

query I rowsort
SELECT + COALESCE ( - + 6, 21, 27 + 55 ) AS col2
----
-6

query II rowsort
SELECT ALL - NULLIF ( + - 39, 35 ), 34 * - 78 * - - 20 + + 21 * - + 36 col2
----
39
-53796

query I rowsort
SELECT ALL + 13 + + + 34
----
47

query I rowsort
SELECT ALL - 54 + + 51 AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT ALL - - 24 DIV - ( - 48 ) - - ( + - SUM( + + 38 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - - 24 / - ( - 48 ) - - ( + - SUM ( + + 38 ) ) AS col0
----
-38

query II rowsort
SELECT - 10, + ( 82 ) col1
----
-10
82

query II rowsort
SELECT ALL 33, 28 - - 71 - - 65 AS col2
----
33
164

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3937
SELECT 51 AS col2, COUNT( * ) - 4
----
51
-3

skipif mysql # not compatible
query II rowsort label-3937
SELECT 51 AS col2, COUNT ( * ) - 4
----
51
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT ALL COUNT( * ) * + - 12 DIV + MIN( + 21 ) + - 63 + - 16 * + ( + NULLIF ( + 33, 11 ) ) AS col2
----
-591

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL COUNT ( * ) * + - 12 / + MIN ( + 21 ) + - 63 + - 16 * + ( + NULLIF ( + 33, 11 ) ) AS col2
----
-591

query I rowsort
SELECT - - 72 - + - 40 - + + 45 AS col0
----
67

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

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

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

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

query I rowsort
SELECT + + ( 92 ) - + 34
----
58

query I rowsort
SELECT 36 * - + 29 * + 65 + + 79
----
-67781

query I rowsort
SELECT - 31 * + 32 AS col2
----
-992

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + MAX( ALL - 35 ) + + - 11 col1
----
-46

skipif mysql # not compatible
query I rowsort label-3948
SELECT + MAX ( ALL - 35 ) + + - 11 col1
----
-46

query I rowsort
SELECT 0 * - 55 - - 46
----
46

query I rowsort
SELECT ALL 95 * - ( + 81 ) AS col2
----
-7695

query II rowsort
SELECT DISTINCT - 82 * - - 70, + 52 * - NULLIF ( 21, + - 46 ) AS col2
----
-5740
-1092

query I rowsort
SELECT ALL 59 * + - 15 AS col2
----
-885

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT ALL 24 * - 2 DIV + 70 + - 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL 24 * - 2 / + 70 + - 5 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT + 29 + + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 29 + + COUNT ( * ) AS col0
----
30

query I rowsort
SELECT DISTINCT + 37 * 77 + + 18
----
2867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3956
SELECT ALL - 48 * - - CAST( 40 AS SIGNED ) + + COUNT( * ) AS col0, 92 DIV - 36 + COALESCE ( - 52, + 31 DIV + + 54 * - - COALESCE ( ( + - CAST( NULL AS SIGNED ) ), 35, - - 21 - + - COUNT( * ) DIV - + NULLIF ( + 42, + 87 DIV + CASE - COUNT( * ) WHEN + 38 + + + 59 + ( + + COUNT( DISTINCT + + 73 ) ) THEN - 75 * 23 + 70 WHEN - MAX( ALL - 23 ) DIV + 74 - + 14 THEN NULL END * 56 + 21 DIV COUNT( * ) ) ) + - COALESCE ( - 28 - + 26, + 2, + 72 + + CAST( 75 + - 15 AS SIGNED ) ) ) * + COUNT( * ) AS col2
----
-1919
-54

skipif mysql # not compatible
query II rowsort label-3956
SELECT ALL - 48 * - - CAST ( 40 AS INTEGER ) + + COUNT ( * ) AS col0, 92 / - 36 + COALESCE ( - 52, + 31 / + + 54 * - - COALESCE ( ( + - CAST ( NULL AS INTEGER ) ), 35, - - 21 - + - COUNT ( * ) / - + NULLIF ( + 42, + 87 / + CASE - COUNT ( * ) WHEN + 38 + + + 59 + ( + + COUNT ( DISTINCT + + 73 ) ) THEN - 75 * 23 + 70 WHEN - MAX ( ALL - 23 ) / + 74 - + 14 THEN NULL END * 56 + 21 / COUNT ( * ) ) ) + - COALESCE ( - 28 - + 26, + 2, + 72 + + CAST ( 75 + - 15 AS INTEGER ) ) ) * + COUNT ( * ) AS col2
----
-1919
-54

query I rowsort
SELECT + 5 + + NULLIF ( - - ( - 98 ), + - 73 / - 34 + 22 - - 67 * - 50 ) * + + 45 AS col0
----
-4405

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ALL COUNT( * ) + + + 38 - + + 92 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL COUNT ( * ) + + + 38 - + + 92 AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3959
SELECT + 23 DIV + - COUNT( * ) AS col2, 28 * - COUNT( * ) * + + 80
----
-23
-2240

skipif mysql # not compatible
query II rowsort label-3959
SELECT + 23 / + - COUNT ( * ) AS col2, 28 * - COUNT ( * ) * + + 80
----
-23
-2240

query I rowsort
SELECT + 82 + + 31
----
113

query I rowsort
SELECT ALL 88 + 94 * - + 78 * - 76 AS col2
----
557320

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

skipif mysql # not compatible
query I rowsort label-3962
SELECT + 70 * + + CAST ( NULL AS INTEGER ) * - 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3963
SELECT + - ( - 14 ) * - + CASE + CAST( NULL AS SIGNED ) WHEN 40 THEN NULL WHEN - + ( - - 84 ) + + + COUNT( * ) THEN + + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3963
SELECT + - ( - 14 ) * - + CASE + CAST ( NULL AS INTEGER ) WHEN 40 THEN NULL WHEN - + ( - - 84 ) + + + COUNT ( * ) THEN + + 34 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3964
SELECT DISTINCT + 5 DIV 89 * + - NULLIF ( 21, CAST( + 13 AS SIGNED ) ) + + 87 + - 99 + - - ( MIN( - - 95 ) ) * - + 94 * - 28 * 39, 86 + - 2 AS col0
----
9751548
84

skipif mysql # not compatible
query II rowsort label-3964
SELECT DISTINCT + 5 / 89 * + - NULLIF ( 21, CAST ( + 13 AS INTEGER ) ) + + 87 + - 99 + - - ( MIN ( - - 95 ) ) * - + 94 * - 28 * 39, 86 + - 2 AS col0
----
9751548
84

query II rowsort
SELECT DISTINCT - + 63 + + 60 AS col2, + 81 * - + 9
----
-3
-729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3966
SELECT - - 87 + 42 DIV - + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-3966
SELECT - - 87 + 42 / - + COUNT ( * )
----
45

query I rowsort
SELECT + + 42 * 62 * - 18
----
-46872

query I rowsort
SELECT + 9 + + + 46
----
55

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

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

query II rowsort
SELECT ALL - - 83 - + COALESCE ( + 98, - 85, - 52 ) AS col2, 7 AS col0
----
-15
7

query I rowsort
SELECT + 87 * + - 30 + 36 AS col2
----
-2574

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT + 38 DIV - + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT + 38 / - + 77 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT - + 10 + + 34 + + 76 + - - 32 * + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3973
SELECT - + 10 + + 34 + + 76 + - - 32 * + - COUNT ( * )
----
68

query I rowsort
SELECT ALL + + 4 * + 87
----
348

query I rowsort
SELECT - 96 + - - 47 * + 57 + + 51
----
2634

query I rowsort
SELECT + 72 * + 83 AS col0
----
5976

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT - ( - ( - + 18 ) ) * - MAX( - 64 ) * + 28 + - + 11
----
-32267

skipif mysql # not compatible
query I rowsort label-3977
SELECT - ( - ( - + 18 ) ) * - MAX ( - 64 ) * + 28 + - + 11
----
-32267

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT - 36 DIV + COALESCE ( - ( - 95 ), 14 * - 49 * + 98, + COUNT( * ) ) + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT - 36 / + COALESCE ( - ( - 95 ), 14 * - 49 * + 98, + COUNT ( * ) ) + - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL + SUM( DISTINCT COALESCE ( + 61, - COALESCE ( - ( - 56 ), + 84 ) + + 64 ) ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL + SUM ( DISTINCT COALESCE ( + 61, - COALESCE ( - ( - 56 ), + 84 ) + + 64 ) ) AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT - 36 DIV - 25 col2
----
1

skipif mysql # not compatible
query I rowsort label-3981
SELECT - 36 / - 25 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL - 3 * - - 24 + + - COUNT( * ) + + 18 * - - 62 AS col1
----
1043

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL - 3 * - - 24 + + - COUNT ( * ) + + 18 * - - 62 AS col1
----
1043

query I rowsort
SELECT - 12 * 44
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ALL 52 * COUNT( * ) + - + COUNT( * ) + + COALESCE ( + 17, + NULLIF ( + 10, - SUM( - + 26 ) ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL 52 * COUNT ( * ) + - + COUNT ( * ) + + COALESCE ( + 17, + NULLIF ( + 10, - SUM ( - + 26 ) ) ) AS col2
----
68

query I rowsort
SELECT DISTINCT + 59 * + + 46 + - COALESCE ( 87, 54 ) * - 81 + - 67 * 78 AS col1
----
4535

query I rowsort
SELECT ALL 0 + - NULLIF ( + 87, - - 82 * + ( 47 ) * + 63 + + 47 ) * - 26 * - 4
----
-9048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3987
SELECT DISTINCT CASE - MIN( 32 ) WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE 20 + + COALESCE ( 94, - 82, + 24 ) * + CASE COUNT( * ) WHEN 11 * 25 - - 58 + - 81 + ( 52 ) THEN + 91 WHEN - 82 THEN NULL ELSE + CASE WHEN + 22 >= - - 32 THEN + 73 * 7 + MIN( ALL - + 16 ) ELSE NULL END END * + 76 * - - 44 * - ( + COUNT( * ) ) * ( MIN( ALL 30 ) ) END + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT CASE - MIN ( 32 ) WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE 20 + + COALESCE ( 94, - 82, + 24 ) * + CASE COUNT ( * ) WHEN 11 * 25 - - 58 + - 81 + ( 52 ) THEN + 91 WHEN - 82 THEN NULL ELSE + CASE WHEN + 22 >= - - 32 THEN + 73 * 7 + MIN ( ALL - + 16 ) ELSE NULL END END * + 76 * - - 44 * - ( + COUNT ( * ) ) * ( MIN ( ALL 30 ) ) END + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT - CASE - + 36 WHEN 85 THEN NULL WHEN + 80 + 51 - + ( - 4 ) THEN + - 55 * - 9 / - COUNT( * ) / + 17 + - 98 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT - CASE - + 36 WHEN 85 THEN NULL WHEN + 80 + 51 - + ( - 4 ) THEN + - 55 * - 9 / - COUNT ( * ) / + 17 + - 98 ELSE NULL END
----
NULL

query I rowsort
SELECT 9 - 74 AS col2
----
-65

query I rowsort
SELECT ALL NULLIF ( 6, - 64 ) * 95
----
570

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT COUNT( * ) + - ( - + 83 ) - + 91 - 78 * + - 81 * + COUNT( * ) * - 16, + 97 * - + 36 AS col1
----
-101095
-3492

skipif mysql # not compatible
query II rowsort label-3991
SELECT COUNT ( * ) + - ( - + 83 ) - + 91 - 78 * + - 81 * + COUNT ( * ) * - 16, + 97 * - + 36 AS col1
----
-101095
-3492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3992
SELECT ALL + COALESCE ( + - 27, - 16 ) * - - ( - - 15 ) * - COUNT( * ) + - 98 + - 14 * - NULLIF ( + NULLIF ( + 55, + + 33 ), 27 * + + 39 - - 5 + 9 / + 7 + CAST( NULL AS SIGNED ) ) * + 83 + + ( + - 81 ) / - + CAST( NULL AS SIGNED ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL + COALESCE ( + - 27, - 16 ) * - - ( - - 15 ) * - COUNT ( * ) + - 98 + - 14 * - NULLIF ( + NULLIF ( + 55, + + 33 ), 27 * + + 39 - - 5 + 9 / + 7 + CAST ( NULL AS INTEGER ) ) * + 83 + + ( + - 81 ) / - + CAST ( NULL AS INTEGER ) + 80
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT DISTINCT 83 - - - 57 + + - 18 + 9 * - MIN( ALL - 39 ) * + - NULLIF ( + COALESCE ( + 54, - 76 + - MAX( DISTINCT + 19 ), + 6 ), + 8 ) / CASE - COUNT( * ) WHEN 43 THEN 67 * 34 WHEN + ( 33 ) + - COUNT( * ) + + 32 THEN NULL END / - 58 + 41 + + MIN( + 31 ) + - 2 AS col0, ( + 20 ) * COUNT( * ) + 88 AS col2
----
NULL
108

skipif mysql # not compatible
query II rowsort label-3993
SELECT DISTINCT 83 - - - 57 + + - 18 + 9 * - MIN ( ALL - 39 ) * + - NULLIF ( + COALESCE ( + 54, - 76 + - MAX ( DISTINCT + 19 ), + 6 ), + 8 ) / CASE - COUNT ( * ) WHEN 43 THEN 67 * 34 WHEN + ( 33 ) + - COUNT ( * ) + + 32 THEN NULL END / - 58 + 41 + + MIN ( + 31 ) + - 2 AS col0, ( + 20 ) * COUNT ( * ) + 88 AS col2
----
NULL
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3994
SELECT ALL 58 DIV - MAX( + 3 ) * + COUNT( * ) + + 32 AS col1, - 78 + - + 67
----
13
-145

skipif mysql # not compatible
query II rowsort label-3994
SELECT ALL 58 / - MAX ( + 3 ) * + COUNT ( * ) + + 32 AS col1, - 78 + - + 67
----
13
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT - SUM( DISTINCT 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - SUM ( DISTINCT 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT + ( - COUNT( * ) ) - - - 92 + + COALESCE ( - 26, - ( + MIN( ALL + 14 ) ) ) * - 3 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3996
SELECT + ( - COUNT ( * ) ) - - - 92 + + COALESCE ( - 26, - ( + MIN ( ALL + 14 ) ) ) * - 3 AS col0
----
-15

query I rowsort
SELECT ALL + 52 - + 9 + + + 92 * + 42 * 81 AS col2
----
313027

query I rowsort
SELECT 73 * + + 74 col1
----
5402

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT ALL 24 DIV + + 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL 24 / + + 27 AS col1
----
0

query I rowsort
SELECT - - 19 col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4001
SELECT DISTINCT 42 * + 77 * - + 71 * CAST( + - COUNT( + 4 ) AS SIGNED ) * - 58
----
-13317612

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT 42 * + 77 * - + 71 * CAST ( + - COUNT ( + 4 ) AS INTEGER ) * - 58
----
-13317612

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT CASE - - COALESCE ( + COUNT( * ), + ( - 15 ) ) WHEN - - COUNT( * ) THEN NULL WHEN + + 50 THEN NULL ELSE - + 78 END * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT CASE - - COALESCE ( + COUNT ( * ), + ( - 15 ) ) WHEN - - COUNT ( * ) THEN NULL WHEN + + 50 THEN NULL ELSE - + 78 END * 22 AS col2
----
NULL

query I rowsort
SELECT 99 * 77
----
7623

query II rowsort
SELECT - 13 AS col2, - 18 * + 64 AS col1
----
-13
-1152

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL - 76 * COALESCE ( 74, - 84 + NULLIF ( + 85, + COUNT( * ) - - 9 ) - 7 )
----
-5624

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL - 76 * COALESCE ( 74, - 84 + NULLIF ( + 85, + COUNT ( * ) - - 9 ) - 7 )
----
-5624

query I rowsort
SELECT 22 * + 46 - 45 AS col2
----
967

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - COUNT( * ) + + MIN( ALL - 18 ) + 28 - + 14 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - COUNT ( * ) + + MIN ( ALL - 18 ) + 28 - + 14 AS col0
----
-5

query I rowsort
SELECT + 54 * - - ( 20 ) * 63 + + 88
----
68128

query I rowsort
SELECT 29 * + + 68
----
1972

query I rowsort
SELECT ALL 42 + + 78
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT 37 DIV + - 79 - - 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4012
SELECT 37 / + - 79 - - 45 AS col2
----
45

query II rowsort
SELECT 14 AS col2, 29 AS col0
----
14
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4014
SELECT ALL + 10 + - 51, + MIN( DISTINCT 10 ) + - 10 col2
----
-41
0

skipif mysql # not compatible
query II rowsort label-4014
SELECT ALL + 10 + - 51, + MIN ( DISTINCT 10 ) + - 10 col2
----
-41
0

query I rowsort
SELECT 19 - + 51
----
-32

query I rowsort
SELECT ALL - 46 + - - 64 * - + 46 AS col1
----
-2990

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT - MAX( DISTINCT 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT - MAX ( DISTINCT 10 ) AS col2
----
-10

query I rowsort
SELECT 45 * ( - 17 ) AS col0
----
-765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4020
SELECT ALL + NULLIF ( - + 70, + SUM( - + 24 ) ) + 48 + - 26 + + COALESCE ( - 37, + COALESCE ( 31, - 77 - - SUM( 88 ), - COUNT( * ) ) - + + 50 ) + - - 15 + 51 * + + 15 * + COALESCE ( 87, 98 + + 33 - + - MIN( ALL 26 ) + - 30 * - 36 DIV 92 * + - 26, - + 58, - 87 )
----
66485

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL + NULLIF ( - + 70, + SUM ( - + 24 ) ) + 48 + - 26 + + COALESCE ( - 37, + COALESCE ( 31, - 77 - - SUM ( 88 ), - COUNT ( * ) ) - + + 50 ) + - - 15 + 51 * + + 15 * + COALESCE ( 87, 98 + + 33 - + - MIN ( ALL 26 ) + - 30 * - 36 / 92 * + - 26, - + 58, - 87 )
----
66485

query I rowsort
SELECT 47 * - 52 + + - ( 99 ) - + - 7 * - NULLIF ( + 77, + + 88 ) AS col2
----
-3082

query I rowsort
SELECT 35 * - 85 AS col0
----
-2975

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

skipif mysql # not compatible
query II rowsort label-4023
SELECT ALL - 70 AS col2, COUNT ( * )
----
-70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT + - 80 - - 71 + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + - 80 - - 71 + COUNT ( * )
----
-8

query II rowsort
SELECT ALL 89 AS col0, + ( + - 35 ) AS col1
----
89
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-4026
SELECT 65 + 79 + - 38 + + 11 col1, 77 DIV 72 AS col0
----
117
1

skipif mysql # not compatible
query II rowsort label-4026
SELECT 65 + 79 + - 38 + + 11 col1, 77 / 72 AS col0
----
117
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT - 62 AS col0, MAX( ALL 29 ) col0
----
-62
29

skipif mysql # not compatible
query II rowsort label-4028
SELECT - 62 AS col0, MAX ( ALL 29 ) col0
----
-62
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT 84 * - COUNT( * ) + + 27 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4029
SELECT 84 * - COUNT ( * ) + + 27 AS col2
----
-57

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4031
SELECT CAST( + 46 AS SIGNED ) DIV - - 78 + - 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4031
SELECT CAST ( + 46 AS INTEGER ) / - - 78 + - 11 AS col0
----
-11

query I rowsort
SELECT 98 + 44 AS col2
----
142

query I rowsort
SELECT 44 + + 57 AS col0
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4034
SELECT 47 DIV + COUNT( * ) + - 94 * 62 * - 95 AS col1
----
553707

skipif mysql # not compatible
query I rowsort label-4034
SELECT 47 / + COUNT ( * ) + - 94 * 62 * - 95 AS col1
----
553707

query I rowsort
SELECT - 55 + 18 * - 97 + - 36 AS col2
----
-1837

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4037
SELECT ( + 38 ) + - + CAST( + + 53 AS DECIMAL ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT ( + 38 ) + - + CAST ( + + 53 AS REAL ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 67 + - 95 + - - ( + 38 ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT 94 DIV + 88 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4039
SELECT 94 / + 88 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT ALL 72 + + - 65 AS col1, COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-4040
SELECT ALL 72 + + - 65 AS col1, COUNT ( * )
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL COALESCE ( + + 88, + 30 + 7 ) * - 80 + - 8 * + + SUM( ALL - + 38 )
----
-6736

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL COALESCE ( + + 88, + 30 + 7 ) * - 80 + - 8 * + + SUM ( ALL - + 38 )
----
-6736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT DISTINCT 69 * + 2 / + 28 * - CAST( + 44 AS SIGNED ) * + 87 + - CAST( NULL AS SIGNED ) + - 50 / + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT 69 * + 2 / + 28 * - CAST ( + 44 AS INTEGER ) * + 87 + - CAST ( NULL AS INTEGER ) + - 50 / + 76
----
NULL

query I rowsort
SELECT ALL - 65 * 99 * - 45 + + - 56 + 54 * 75 * + 30 AS col2
----
411019

onlyif mysql # aggregate syntax: 
query II rowsort label-4044
SELECT ALL - 88 * COUNT( * ) + + 55 AS col2, ( + - 85 )
----
-33
-85

skipif mysql # not compatible
query II rowsort label-4044
SELECT ALL - 88 * COUNT ( * ) + + 55 AS col2, ( + - 85 )
----
-33
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT + 6 + COALESCE ( COUNT( * ), 67 )
----
7

skipif mysql # not compatible
query I rowsort label-4045
SELECT + 6 + COALESCE ( COUNT ( * ), 67 )
----
7

query I rowsort
SELECT COALESCE ( 41, - + 96 ) AS col0
----
41

query I rowsort
SELECT + 70 * + + 58 AS col0
----
4060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT COUNT( * ) * + 88 + + 99 DIV + + COUNT( 27 ) + + - 2 AS col2
----
185

skipif mysql # not compatible
query I rowsort label-4048
SELECT COUNT ( * ) * + 88 + + 99 / + + COUNT ( 27 ) + + - 2 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT MIN( + COALESCE ( 73, + ( - 14 ) + 28 ) )
----
73

skipif mysql # not compatible
query I rowsort label-4049
SELECT MIN ( + COALESCE ( 73, + ( - 14 ) + 28 ) )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT ALL + 22 * + - 61 - + 18 AS col0, COUNT( * )
----
-1360
1

skipif mysql # not compatible
query II rowsort label-4050
SELECT ALL + 22 * + - 61 - + 18 AS col0, COUNT ( * )
----
-1360
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT + NULLIF ( + ( + + 91 ), + CAST( + - 36 AS SIGNED ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4051
SELECT + NULLIF ( + ( + + 91 ), + CAST ( + - 36 AS INTEGER ) ) AS col2
----
91

query I rowsort
SELECT DISTINCT - 70 * + ( 25 )
----
-1750

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4053
SELECT DISTINCT - CAST( 62 AS SIGNED ) * 32 DIV - 10
----
198

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT - CAST ( 62 AS INTEGER ) * 32 / - 10
----
198

query I rowsort
SELECT + - 5 * + ( - 41 ) - - + 9
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT - - 99 * - - 8 + + CAST( NULL AS SIGNED ) * - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT - - 99 * - - 8 + + CAST ( NULL AS INTEGER ) * - 49 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 94 * + COALESCE ( - 55, + 20 )
----
5170

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - 76 * - 5 - SUM( + + 48 ) * 0 * + 66
----
380

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 76 * - 5 - SUM ( + + 48 ) * 0 * + 66
----
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT - CAST( + + COUNT( - - 60 ) AS SIGNED ) * + - 69
----
69

skipif mysql # not compatible
query I rowsort label-4058
SELECT - CAST ( + + COUNT ( - - 60 ) AS INTEGER ) * + - 69
----
69

query I rowsort
SELECT ALL NULLIF ( - 56, + 21 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4060
SELECT ALL + - MIN( - 88 ) / - ( + + CAST( NULL AS SIGNED ) ) * 58 AS col0, - CASE + 54 WHEN 8 * 71 + SUM( ALL - 86 ) THEN - - 94 / ( + 75 ) * - - 33 / 1 / + ( - 33 ) + - COUNT( * ) + - 61 + - 85 WHEN 38 THEN - 50 WHEN + COALESCE ( + + 62, 57 * 41, 55 ) + + 33 THEN - CAST( NULL AS SIGNED ) + + - 21 + + 94 * CAST( 70 AS SIGNED ) * COUNT( ALL - 29 ) END + - CASE - MIN( 58 ) WHEN 36 THEN 10 WHEN ( 71 ) * + COUNT( * ) THEN NULL ELSE NULL END * + 55 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4060
SELECT ALL + - MIN ( - 88 ) / - ( + + CAST ( NULL AS INTEGER ) ) * 58 AS col0, - CASE + 54 WHEN 8 * 71 + SUM ( ALL - 86 ) THEN - - 94 / ( + 75 ) * - - 33 / 1 / + ( - 33 ) + - COUNT ( * ) + - 61 + - 85 WHEN 38 THEN - 50 WHEN + COALESCE ( + + 62, 57 * 41, 55 ) + + 33 THEN - CAST ( NULL AS INTEGER ) + + - 21 + + 94 * CAST ( 70 AS INTEGER ) * COUNT ( ALL - 29 ) END + - CASE - MIN ( 58 ) WHEN 36 THEN 10 WHEN ( 71 ) * + COUNT ( * ) THEN NULL ELSE NULL END * + 55 AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT - CAST( NULL AS SIGNED ) - + + CASE + ( - 99 ) WHEN - + ( 34 ) * - + 14 + + 88 * + - CASE + CAST( COALESCE ( + ( - - 11 ), + 84, + - 12 ) AS SIGNED ) WHEN + - 54 THEN 39 + - 31 ELSE NULL END - 91 THEN NULL ELSE + COUNT( * ) + + NULLIF ( 25, - 40 + - - 65 ) END * - 0 - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT - CAST ( NULL AS INTEGER ) - + + CASE + ( - 99 ) WHEN - + ( 34 ) * - + 14 + + 88 * + - CASE + CAST ( COALESCE ( + ( - - 11 ), + 84, + - 12 ) AS INTEGER ) WHEN + - 54 THEN 39 + - 31 ELSE NULL END - 91 THEN NULL ELSE + COUNT ( * ) + + NULLIF ( 25, - 40 + - - 65 ) END * - 0 - + 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT - 30 - + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4062
SELECT - 30 - + COUNT ( * ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT + CASE - ( 47 ) WHEN + ( - 48 ) + - ( + + 25 ) * - 54 THEN 86 ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4063
SELECT + CASE - ( 47 ) WHEN + ( - 48 ) + - ( + + 25 ) * - 54 THEN 86 ELSE COUNT ( * ) END AS col0
----
1

query I rowsort
SELECT ALL + - 97 + + + 98 AS col2
----
1

query II rowsort
SELECT - CASE + 19 WHEN + 50 THEN - 58 END * + 29 AS col0, - 68
----
NULL
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT - + 85 + + ( + 66 ) - ( 61 ) * 57 * + COUNT( * ) * + 19 - 42
----
-66124

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - + 85 + + ( + 66 ) - ( 61 ) * 57 * + COUNT ( * ) * + 19 - 42
----
-66124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4068
SELECT ALL + CAST( - 53 AS SIGNED ), 27 AS col0
----
-53
27

skipif mysql # not compatible
query II rowsort label-4068
SELECT ALL + CAST ( - 53 AS INTEGER ), 27 AS col0
----
-53
27

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

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + ( - 9 ) + + COUNT ( * ) AS col1
----
-8

query I rowsort
SELECT ALL 49 * - - 99
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL 48 + + 97 + + 72 * + ( COUNT( * ) )
----
217

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL 48 + + 97 + + 72 * + ( COUNT ( * ) )
----
217

query II rowsort
SELECT + 54 * + ( - - 27 ), 75 - + + 68 AS col2
----
1458
7

query I rowsort
SELECT DISTINCT - 37 * + ( 49 ) * - 61
----
110593

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL ( - MIN( DISTINCT 47 ) ) + + 19 * 29
----
504

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL ( - MIN ( DISTINCT 47 ) ) + + 19 * 29
----
504

query I rowsort
SELECT + 89 * - - 27 AS col2
----
2403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4076
SELECT - 18 - - + MAX( DISTINCT + 95 ) DIV 78 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4076
SELECT - 18 - - + MAX ( DISTINCT + 95 ) / 78 AS col2
----
-17

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

onlyif mysql # aggregate syntax: 
query III rowsort label-4078
SELECT ALL + 74 AS col1, MAX( - 95 ) - 61 AS col2, + 90 AS col0
----
74
-156
90

skipif mysql # not compatible
query III rowsort label-4078
SELECT ALL + 74 AS col1, MAX ( - 95 ) - 61 AS col2, + 90 AS col0
----
74
-156
90

query I rowsort
SELECT - 95 + - - 10 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4080
SELECT + ( + + SUM( ALL + 79 ) ), 1 * + 12 + + 57 col1
----
79
69

skipif mysql # not compatible
query II rowsort label-4080
SELECT + ( + + SUM ( ALL + 79 ) ), 1 * + 12 + + 57 col1
----
79
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4081
SELECT CAST( - + CAST( - 16 AS DECIMAL ) AS SIGNED ) col2
----
16

skipif mysql # not compatible
query I rowsort label-4081
SELECT CAST ( - + CAST ( - 16 AS REAL ) AS INTEGER ) col2
----
16

query I rowsort
SELECT 47 * 13 + + 13 + + 23 * + 22 * - 61 * 3
----
-91974

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4083
SELECT + 77 DIV - SUM( ALL 68 ), - COUNT( * ) + - 47 AS col1
----
-1
-48

skipif mysql # not compatible
query II rowsort label-4083
SELECT + 77 / - SUM ( ALL 68 ), - COUNT ( * ) + - 47 AS col1
----
-1
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT 84 DIV 17 + + ( + ( + 18 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4084
SELECT 84 / 17 + + ( + ( + 18 ) ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT + NULLIF ( 42, + COUNT( * ) + - 93 * + + 76 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4085
SELECT + NULLIF ( 42, + COUNT ( * ) + - 93 * + + 76 ) AS col0
----
42

query II rowsort
SELECT ALL 35 * 79 * - 80, 68 AS col2
----
-221200
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL COALESCE ( 83, + + COUNT( * ) + COUNT( * ) ) * - 8
----
-664

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL COALESCE ( 83, + + COUNT ( * ) + COUNT ( * ) ) * - 8
----
-664

query I rowsort
SELECT + 17 + + 55 AS col0
----
72

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

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

query II rowsort
SELECT ALL + 8 col0, - 14
----
8
-14

query I rowsort
SELECT + - 59 + 2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT - 7 * - - COUNT( ALL + + 8 ) AS col1, COUNT( * )
----
-7
1

skipif mysql # not compatible
query II rowsort label-4092
SELECT - 7 * - - COUNT ( ALL + + 8 ) AS col1, COUNT ( * )
----
-7
1

query I rowsort
SELECT - COALESCE ( + 84, 72 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT + 74 * + ( + + 88 ) DIV 44
----
148

skipif mysql # not compatible
query I rowsort label-4094
SELECT + 74 * + ( + + 88 ) / 44
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT DISTINCT 37 * 49 + 98 + - 31 * + CAST( NULL AS SIGNED ) + + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT 37 * 49 + 98 + - 31 * + CAST ( NULL AS INTEGER ) + + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL + - NULLIF ( COUNT( * ), - - 40 * + - COUNT( * ) + + 50 + + - AVG ( ALL 72 ) + - + 65 / 47 * 0 + - 93 + - 71 / - 54 + 3 - 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + - NULLIF ( COUNT ( * ), - - 40 * + - COUNT ( * ) + + 50 + + - AVG ( ALL 72 ) + - + 65 / 47 * 0 + - 93 + - 71 / - 54 + 3 - 57 ) AS col1
----
-1

query II rowsort
SELECT ALL + 48 AS col1, + 7
----
48
7

query II rowsort
SELECT - - 43 + + - 51 + 2 AS col1, - 56 + - + 86
----
-6
-142

query I rowsort
SELECT ALL - - 62 * + 2 * + 33 AS col0
----
4092

query I rowsort
SELECT DISTINCT 45 * - - 71 + + ( 93 ) + - + 38 + + 0 * - 15 col1
----
3250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT ALL + CAST( NULL AS SIGNED ) * + - ( 28 ) + CAST( NULL AS SIGNED ) * - 42 * - 30 * COUNT( ALL - 15 ) + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL + CAST ( NULL AS INTEGER ) * + - ( 28 ) + CAST ( NULL AS INTEGER ) * - 42 * - 30 * COUNT ( ALL - 15 ) + 78
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4103
SELECT - + 74, 85 * + CAST( NULL AS DECIMAL ) * - + 87 / 95 AS col2
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-4103
SELECT - + 74, 85 * + CAST ( NULL AS REAL ) * - + 87 / 95 AS col2
----
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT + 76 + - 26 + 3 * - ( 37 ) * + + MIN( + 16 )
----
-1726

skipif mysql # not compatible
query I rowsort label-4104
SELECT + 76 + - 26 + 3 * - ( 37 ) * + + MIN ( + 16 )
----
-1726

query II rowsort
SELECT - 21 AS col2, - 78
----
-21
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT NULLIF ( - CAST( 46 AS SIGNED ), 32 + + 30 + - 68 )
----
-46

skipif mysql # not compatible
query I rowsort label-4106
SELECT NULLIF ( - CAST ( 46 AS INTEGER ), 32 + + 30 + - 68 )
----
-46

query II rowsort
SELECT ALL + 63, 76 AS col2
----
63
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT - 90 + - 88 DIV + - 60 + + 47 DIV - 18
----
-91

skipif mysql # not compatible
query I rowsort label-4108
SELECT - 90 + - 88 / + - 60 + + 47 / - 18
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL + 5 + 64 + - 6 * - + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + 5 + 64 + - 6 * - + COUNT ( * )
----
75

query I rowsort
SELECT ALL - 47 + 41 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - COUNT( 62 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4111
SELECT - COUNT ( 62 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL MIN( ALL ( - 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL MIN ( ALL ( - 60 ) )
----
-60

query I rowsort
SELECT 20 + + 22
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT 23 * - - COUNT( * ), 26 AS col2
----
23
26

skipif mysql # not compatible
query II rowsort label-4114
SELECT 23 * - - COUNT ( * ), 26 AS col2
----
23
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4115
SELECT COUNT( * ) + - 8 col2, - 11
----
-7
-11

skipif mysql # not compatible
query II rowsort label-4115
SELECT COUNT ( * ) + - 8 col2, - 11
----
-7
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4116
SELECT 39 + - MIN( - 61 ) + + CAST( NULL AS SIGNED ) * - ( 64 ) * 71 + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT 39 + - MIN ( - 61 ) + + CAST ( NULL AS INTEGER ) * - ( 64 ) * 71 + 19
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT 10 * + + CAST( - 70 AS SIGNED )
----
-700

skipif mysql # not compatible
query I rowsort label-4117
SELECT 10 * + + CAST ( - 70 AS INTEGER )
----
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT CASE WHEN ( ( NOT NULL IS NOT NULL ) ) OR NOT - + 39 IS NOT NULL THEN CASE + 5 WHEN - 24 * + 25 + - + 12 * - 45 - + 4 + 87 THEN + - MAX( + - 1 ) * + 27 - - 79 WHEN - 93 THEN NULL ELSE NULL END + + - 44 + 20 * - 19 - + 2 END + 19 + + 50 * - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT CASE WHEN ( ( NOT NULL IS NOT NULL ) ) OR NOT - + 39 IS NOT NULL THEN CASE + 5 WHEN - 24 * + 25 + - + 12 * - 45 - + 4 + 87 THEN + - MAX ( + - 1 ) * + 27 - - 79 WHEN - 93 THEN NULL ELSE NULL END + + - 44 + 20 * - 19 - + 2 END + 19 + + 50 * - + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4119
SELECT ALL - COUNT( * ) * - CASE + 65 WHEN - - COUNT( * ) THEN - 42 * - - 52 + + 46 + - + 63 * + 6 + + 80 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - COUNT ( * ) * - CASE + 65 WHEN - - COUNT ( * ) THEN - 42 * - - 52 + + 46 + - + 63 * + 6 + + 80 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 61 - + - 39, - 79 AS col0
----
100
-79

query I rowsort
SELECT 79 * + + 5 + + 19 * + - 47 AS col2
----
-498

query II rowsort
SELECT 48 * 56 AS col1, - 79 col1
----
2688
-79

query I rowsort
SELECT ALL + 88 * - + 57
----
-5016

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT + 85 DIV + 58 + - CASE WHEN NOT + 25 IS NULL THEN - 68 + + 93 + + ( - 73 ) END AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4124
SELECT + 85 / + 58 + - CASE WHEN NOT + 25 IS NULL THEN - 68 + + 93 + + ( - 73 ) END AS col0
----
49

query I rowsort
SELECT DISTINCT - ( - - ( + 4 ) ) col0
----
-4

query I rowsort
SELECT 38 * - 68
----
-2584

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT NULLIF ( - + 10, + - 17 ) * COUNT( * ) + - SUM( DISTINCT - 96 ) * - 15 + MAX( ALL - + 40 )
----
-1490

skipif mysql # not compatible
query I rowsort label-4127
SELECT NULLIF ( - + 10, + - 17 ) * COUNT ( * ) + - SUM ( DISTINCT - 96 ) * - 15 + MAX ( ALL - + 40 )
----
-1490

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + - MIN( ALL - - 96 ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-4128
SELECT + - MIN ( ALL - - 96 ) col2
----
-96

query I rowsort
SELECT - ( + - 36 ) * - 44 AS col2
----
-1584

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT ALL + - 31 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + - 31 / - 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT 42 * + - COUNT( * ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-4131
SELECT 42 * + - COUNT ( * ) col0
----
-42

query I rowsort
SELECT ALL - 53 + 55 AS col2
----
2

query I rowsort
SELECT ALL + 83 + + + 17 + - - 49 + + 42 * + 67 * - + 23 * - - 82
----
-5307055

query I rowsort
SELECT + 85 * - - 43
----
3655

query I rowsort
SELECT ALL 68 + + 8 * - + 44 AS col0
----
-284

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - MAX( ALL - 6 ) + - - 54
----
60

skipif mysql # not compatible
query I rowsort label-4136
SELECT - MAX ( ALL - 6 ) + - - 54
----
60

query I rowsort
SELECT ALL - NULLIF ( 6, + + 66 + 41 )
----
-6

query I rowsort
SELECT 91 + - ( 99 ) + 48 * - 24 + - 4
----
-1164

query I rowsort
SELECT ALL 48 + + ( + 27 ) - - 37 * + + 35 + + NULLIF ( + 58, - 82 )
----
1428

query I rowsort
SELECT ALL + 76 + - - 69 * - 72
----
-4892

query I rowsort
SELECT + 1 * + 68 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4142
SELECT + 14 - + COUNT( + 77 ) DIV - - 39 * COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4142
SELECT + 14 - + COUNT ( + 77 ) / - - 39 * COUNT ( * )
----
14

query I rowsort
SELECT 32 - - 93
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4144
SELECT ( COUNT( * ) ) * + 61 DIV 34 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4144
SELECT ( COUNT ( * ) ) * + 61 / 34 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT 13 + + - 52 * + - COUNT( - 53 ) - 20, 11 + 68 AS col1
----
45
79

skipif mysql # not compatible
query II rowsort label-4145
SELECT 13 + + - 52 * + - COUNT ( - 53 ) - 20, 11 + 68 AS col1
----
45
79

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

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

query I rowsort
SELECT DISTINCT ( - 83 ) * + - 86 + + ( - - 54 ) AS col2
----
7192

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT ALL + 29 DIV + - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + 29 / + - 58 AS col2
----
0

query I rowsort
SELECT DISTINCT - 11 * - 40 * - 76 AS col2
----
-33440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4150
SELECT COALESCE ( 14, SUM( ALL - 60 ) ) + + 13 + + 75 + - CAST( NULL AS SIGNED ) * - - COALESCE ( - 1, 3 * 13 * 82 + - 1, COALESCE ( - AVG ( + ( - 45 ) ), + - 23 + - - COUNT( * ) ) ) + - 11 * 11 / + SUM( 13 ) AS col2, - 97 * 11 + + 29 * - 4
----
NULL
-1183

skipif mysql # not compatible
query II rowsort label-4150
SELECT COALESCE ( 14, SUM ( ALL - 60 ) ) + + 13 + + 75 + - CAST ( NULL AS INTEGER ) * - - COALESCE ( - 1, 3 * 13 * 82 + - 1, COALESCE ( - AVG ( + ( - 45 ) ), + - 23 + - - COUNT ( * ) ) ) + - 11 * 11 / + SUM ( 13 ) AS col2, - 97 * 11 + + 29 * - 4
----
NULL
-1183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4151
SELECT COUNT( * ), - CAST( NULL AS SIGNED ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4151
SELECT COUNT ( * ), - CAST ( NULL AS INTEGER ) col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4152
SELECT ( MAX( DISTINCT - 65 ) ) DIV - 25 - + + COUNT( * ) DIV - + 23 col2
----
2

skipif mysql # not compatible
query I rowsort label-4152
SELECT ( MAX ( DISTINCT - 65 ) ) / - 25 - + + COUNT ( * ) / - + 23 col2
----
2

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

skipif mysql # not compatible
query I rowsort label-4153
SELECT SUM ( DISTINCT 31 )
----
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + 47 + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4155
SELECT + 47 + + COUNT ( * )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT ALL + CAST( + MIN( DISTINCT - 8 ) AS SIGNED ) * + 67 + - - COUNT( * ) + + + COUNT( * ) AS col0
----
-534

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + CAST ( + MIN ( DISTINCT - 8 ) AS INTEGER ) * + 67 + - - COUNT ( * ) + + + COUNT ( * ) AS col0
----
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL + COUNT( * ) + NULLIF ( + 94, 53 )
----
95

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + COUNT ( * ) + NULLIF ( + 94, 53 )
----
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL - 80 + - 97 - + COALESCE ( ( - + MIN( + 19 ) ), + + ( - COUNT( * ) ) * + - 23 * + 31 ) * - - NULLIF ( - 71, 87 - - - 90 + + 15 ) AS col0
----
-1526

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL - 80 + - 97 - + COALESCE ( ( - + MIN ( + 19 ) ), + + ( - COUNT ( * ) ) * + - 23 * + 31 ) * - - NULLIF ( - 71, 87 - - - 90 + + 15 ) AS col0
----
-1526

query I rowsort
SELECT + 85 * 81 col2
----
6885

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

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

query I rowsort
SELECT + 12 + + 62
----
74

query I rowsort
SELECT + 54 * - - 93 * - 16
----
-80352

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT + MAX( DISTINCT - 85 ) * COUNT( * ) * - 24
----
2040

skipif mysql # not compatible
query I rowsort label-4164
SELECT + MAX ( DISTINCT - 85 ) * COUNT ( * ) * - 24
----
2040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4165
SELECT ALL 78 col2, 40 * - - 17 / CAST( NULL AS SIGNED ) * + 7
----
78
NULL

skipif mysql # not compatible
query II rowsort label-4165
SELECT ALL 78 col2, 40 * - - 17 / CAST ( NULL AS INTEGER ) * + 7
----
78
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT + 72 + - 83 * - CAST( NULL AS SIGNED ) + ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT + 72 + - 83 * - CAST ( NULL AS INTEGER ) + ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4167
SELECT + 36 + - CAST( + - CASE 8 WHEN - - 64 THEN NULL ELSE MIN( + + 92 ) + - 9 / + - NULLIF ( - - 95, - 54 ) END AS SIGNED ) + - + 16 * - + 16
----
384

skipif mysql # not compatible
query I rowsort label-4167
SELECT + 36 + - CAST ( + - CASE 8 WHEN - - 64 THEN NULL ELSE MIN ( + + 92 ) + - 9 / + - NULLIF ( - - 95, - 54 ) END AS INTEGER ) + - + 16 * - + 16
----
384

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT DISTINCT + 43 * - - 25 DIV + - COALESCE ( COUNT( * ), + - 88, 85 )
----
-1075

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT + 43 * - - 25 / + - COALESCE ( COUNT ( * ), + - 88, 85 )
----
-1075

query II rowsort
SELECT DISTINCT 95 AS col2, + 30 + - - 71 AS col0
----
95
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + 88 * 20 * - MAX( DISTINCT + + 64 )
----
-112640

skipif mysql # not compatible
query I rowsort label-4171
SELECT + 88 * 20 * - MAX ( DISTINCT + + 64 )
----
-112640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4172
SELECT ALL 52, NULLIF ( - NULLIF ( + 71, 80 ), + - CAST( NULL AS SIGNED ) * - 40 ) * 76 AS col2
----
52
-5396

skipif mysql # not compatible
query II rowsort label-4172
SELECT ALL 52, NULLIF ( - NULLIF ( + 71, 80 ), + - CAST ( NULL AS INTEGER ) * - 40 ) * 76 AS col2
----
52
-5396

query II rowsort
SELECT - CASE + + 30 WHEN - 97 THEN - 96 ELSE NULL END, 62 * - + CASE - 35 WHEN + 1 THEN 83 + 32 WHEN - 60 THEN ( 57 ) END col1
----
NULL
NULL

query II rowsort
SELECT - 54 AS col1, 56
----
-54
56

query I rowsort
SELECT ALL 52 + + 22 AS col2
----
74

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

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

query II rowsort
SELECT 92 AS col0, - 78 + - 78
----
92
-156

query I rowsort
SELECT ALL NULLIF ( - 60, - 26 * 85 * + ( - 32 ) )
----
-60

query II rowsort
SELECT + 20 AS col2, - ( - 48 )
----
20
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4180
SELECT ALL 7 * + ( + CAST( - 51 AS SIGNED ) ) + + 27 + - ( COUNT( * ) ) col1, 85 AS col0
----
-331
85

skipif mysql # not compatible
query II rowsort label-4180
SELECT ALL 7 * + ( + CAST ( - 51 AS INTEGER ) ) + + 27 + - ( COUNT ( * ) ) col1, 85 AS col0
----
-331
85

query I rowsort
SELECT - 28 * - 19
----
532

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

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

query II rowsort
SELECT ALL + - 63 * + + 31 + - + CASE + + 45 WHEN + ( - + 32 ) THEN + - CASE + COALESCE ( 2, + 83 * - 85 * + 19 ) WHEN - 39 + - 54 / + 4 THEN 47 WHEN + + 35 THEN + 52 - 81 + - 46 * ( + 55 ) + 70 * - 96 - + + 75 * + - 2 END * 71 * 96 - 60 + + 13 * - 22 ELSE NULL END + - 26 + - 71 * - 36 col1, + 10 AS col2
----
NULL
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT - 67 DIV + 8
----
-8

skipif mysql # not compatible
query I rowsort label-4184
SELECT - 67 / + 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT MIN( DISTINCT + ( + + 12 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4185
SELECT MIN ( DISTINCT + ( + + 12 ) ) AS col1
----
12

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

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

query I rowsort
SELECT - + 43 * - 12 AS col1
----
516

query II rowsort
SELECT + 6 AS col2, 47 * - 4
----
6
-188

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

skipif mysql # not compatible
query I rowsort label-4189
SELECT NULLIF ( + COUNT ( * ), - - 98 * - ( + + 20 ) )
----
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT + - 88 * - 19 - + - 77 + - 6 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT + - 88 * - 19 - + - 77 + - 6 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 58 * + 68 AS col1
----
-3944

query I rowsort
SELECT - 31 + - 28 * + ( + + 22 )
----
-647

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT - 24 DIV - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4197
SELECT - 24 / - 35 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4198
SELECT ALL - 56 DIV - 10, 38 AS col1
----
5
38

skipif mysql # not compatible
query II rowsort label-4198
SELECT ALL - 56 / - 10, 38 AS col1
----
5
38

query II rowsort
SELECT DISTINCT ( - - 41 ) AS col2, - 26
----
41
-26

query II rowsort
SELECT - CASE - + 2 WHEN - 33 THEN AVG ( ALL - 63 ) END, - 15 AS col1
----
NULL
-15

query I rowsort
SELECT ALL 12 * + + 25 col1
----
300

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4204
SELECT + 94 DIV + - 41
----
-2

skipif mysql # not compatible
query I rowsort label-4204
SELECT + 94 / + - 41
----
-2

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

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL MAX ( - 1 )
----
-1

query I rowsort
SELECT ALL 17 + + - 38 + 75 * 50
----
3729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT ALL 99 * + - CAST( NULL AS SIGNED ) * - ( - - COUNT( + + ( 48 ) ) ) * + SUM( - ( + 73 ) ) + - 44 + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL 99 * + - CAST ( NULL AS INTEGER ) * - ( - - COUNT ( + + ( 48 ) ) ) * + SUM ( - ( + 73 ) ) + - 44 + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT + CASE WHEN 77 >= NULL THEN 76 ELSE - 47 * - ( 14 ) - - ( 47 ) * + + ( - - 32 ) * - 93 + - 58 * - - 99 + + 40 + 57 - SUM( ALL + 96 ) + + 42 * 89 + - - 81 * + 91 END col1
----
-133846

skipif mysql # not compatible
query I rowsort label-4208
SELECT + CASE WHEN 77 >= NULL THEN 76 ELSE - 47 * - ( 14 ) - - ( 47 ) * + + ( - - 32 ) * - 93 + - 58 * - - 99 + + 40 + 57 - SUM ( ALL + 96 ) + + 42 * 89 + - - 81 * + 91 END col1
----
-133846

query I rowsort
SELECT ALL + 5 * - 7 AS col2
----
-35

query I rowsort
SELECT + 4 + + 64 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT + - 56 * - 80 + - COUNT( * )
----
4479

skipif mysql # not compatible
query I rowsort label-4211
SELECT + - 56 * - 80 + - COUNT ( * )
----
4479

query I rowsort
SELECT DISTINCT + 61 * + - NULLIF ( + 3, - 0 ) * - - 6 AS col2
----
-1098

onlyif mysql # DIV for integer division: 
query I rowsort label-4213
SELECT + 53 DIV 97 + + + ( - 28 ) + - 3
----
-31

skipif mysql # not compatible
query I rowsort label-4213
SELECT + 53 / 97 + + + ( - 28 ) + - 3
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4214
SELECT 27 * - 37 col1, CAST( NULL AS SIGNED ) * - NULLIF ( 4, + 90 - 2 - + + 0 * - 25 ) AS col2
----
-999
NULL

skipif mysql # not compatible
query II rowsort label-4214
SELECT 27 * - 37 col1, CAST ( NULL AS INTEGER ) * - NULLIF ( 4, + 90 - 2 - + + 0 * - 25 ) AS col2
----
-999
NULL

query II rowsort
SELECT ( - - 12 ) AS col0, - 81
----
12
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4216
SELECT ALL + CAST( - CASE WHEN NOT 88 IS NOT NULL THEN NULL ELSE - - 84 * - 88 + + AVG ( ALL + + CASE - CAST( NULL AS DECIMAL ) WHEN 50 THEN - 30 ELSE NULL END ) END AS SIGNED ) / - - 54 - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL + CAST ( - CASE WHEN NOT 88 IS NOT NULL THEN NULL ELSE - - 84 * - 88 + + AVG ( ALL + + CASE - CAST ( NULL AS REAL ) WHEN 50 THEN - 30 ELSE NULL END ) END AS INTEGER ) / - - 54 - + 14
----
NULL

query I rowsort
SELECT ALL - 78 - + 27 AS col1
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT NULLIF ( 71, - + AVG ( DISTINCT + NULLIF ( - + 35, 56 ) ) ) DIV + + 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4218
SELECT NULLIF ( 71, - + AVG ( DISTINCT + NULLIF ( - + 35, 56 ) ) ) / + + 62 AS col0
----
1

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

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

query I rowsort
SELECT + 94 + + 15 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT COALESCE ( COUNT( - NULLIF ( + 12, - 32 ) ), + 69 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4221
SELECT COALESCE ( COUNT ( - NULLIF ( + 12, - 32 ) ), + 69 ) AS col2
----
1

query II rowsort
SELECT ( 99 ) AS col2, + 43 * + 26 AS col1
----
99
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL - COUNT( * ) * - - 48 + - 96 - COUNT( * ) AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - COUNT ( * ) * - - 48 + - 96 - COUNT ( * ) AS col1
----
-145

query I rowsort
SELECT 76 * - + CASE 71 WHEN 86 THEN 8 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 43 * 47
----
-2021

query I rowsort
SELECT ALL - ( - 74 ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4227
SELECT DISTINCT - CASE 37 WHEN + CAST( NULL AS SIGNED ) + + COUNT( * ) THEN - - 46 + - 45 WHEN + + 96 THEN NULL WHEN CASE - 44 WHEN 18 + - CAST( NULL AS SIGNED ) + - 42 * + 34 + - ( - - 40 ) * - CAST( NULL AS SIGNED ) - 18 THEN - - COUNT( * ) * + COUNT( * ) WHEN - 35 THEN + 13 - COUNT( * ) ELSE NULL END THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - CASE 37 WHEN + CAST ( NULL AS INTEGER ) + + COUNT ( * ) THEN - - 46 + - 45 WHEN + + 96 THEN NULL WHEN CASE - 44 WHEN 18 + - CAST ( NULL AS INTEGER ) + - 42 * + 34 + - ( - - 40 ) * - CAST ( NULL AS INTEGER ) - 18 THEN - - COUNT ( * ) * + COUNT ( * ) WHEN - 35 THEN + 13 - COUNT ( * ) ELSE NULL END THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4228
SELECT 54 * COUNT( * ) DIV - COUNT( * ) AS col0, - 14 + + - 75 + + 99
----
-54
10

skipif mysql # not compatible
query II rowsort label-4228
SELECT 54 * COUNT ( * ) / - COUNT ( * ) AS col0, - 14 + + - 75 + + 99
----
-54
10

query I rowsort
SELECT 57 + + 41
----
98

query II rowsort
SELECT ALL 85 col2, + 55 + 7 AS col0
----
85
62

query II rowsort
SELECT - 42 AS col0, + 8 + + 46 - + 39
----
-42
15

query I rowsort
SELECT 54 + - 62
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4233
SELECT - 99 col1, 9 + COUNT( * ) AS col2
----
-99
10

skipif mysql # not compatible
query II rowsort label-4233
SELECT - 99 col1, 9 + COUNT ( * ) AS col2
----
-99
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT ALL + 98 DIV + 17 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + 98 / + 17 AS col1
----
5

query II rowsort
SELECT - 52 AS col1, 40 AS col2
----
-52
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT 64 * - COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT 64 * - COUNT ( * ) AS col1
----
-64

query I rowsort
SELECT ALL 23 + - 34
----
-11

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

skipif mysql # not compatible
query I rowsort label-4238
SELECT 79 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT DISTINCT - 53 + + - COUNT( * ) - - COUNT( + 14 ) DIV + ( + 73 ) + + 23 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT - 53 + + - COUNT ( * ) - - COUNT ( + 14 ) / + ( + 73 ) + + 23 AS col1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT 98 + + COUNT( * ) * + + 23 + 44 DIV ( - 11 ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-4240
SELECT 98 + + COUNT ( * ) * + + 23 + 44 / ( - 11 ) AS col0
----
117

query I rowsort
SELECT 69 * + 77
----
5313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4242
SELECT 73 DIV - COUNT( * ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4242
SELECT 73 / - COUNT ( * ) AS col0
----
-73

query I rowsort
SELECT - 58 + + + 86 + - ( - 72 ) AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4244
SELECT ALL - 42 - - - 99 DIV - + COUNT( * ) AS col2, 51 + - 52 + - CAST( NULL AS SIGNED ) * + 51 * + ( 73 ) + + 12 AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-4244
SELECT ALL - 42 - - - 99 / - + COUNT ( * ) AS col2, 51 + - 52 + - CAST ( NULL AS INTEGER ) * + 51 * + ( 73 ) + + 12 AS col2
----
57
NULL

query II rowsort
SELECT - 51 AS col0, 96 * + + NULLIF ( + ( + - 1 ), 41 ) * + + 45 + + 42 - - 59 * - 66 * + + 87 - + 77 AS col0
----
-51
-343133

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT COUNT( ALL - 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4246
SELECT COUNT ( ALL - 97 ) AS col1
----
1

query II rowsort
SELECT ALL - + 68 AS col1, ( - 68 ) AS col1
----
-68
-68

query I rowsort
SELECT ALL - ( + - 73 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT + + CAST( - 81 AS SIGNED ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4249
SELECT + + CAST ( - 81 AS INTEGER ) AS col0
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-4250
SELECT 91 * - 88 * + 26 AS col2, - 49 + 20 DIV - 77 AS col2
----
-208208
-49

skipif mysql # not compatible
query II rowsort label-4250
SELECT 91 * - 88 * + 26 AS col2, - 49 + 20 / - 77 AS col2
----
-208208
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT - 8 * - ( NULLIF ( + 77, 6 ) ) - + + 54 + - CASE CASE - - CAST( + 25 AS SIGNED ) WHEN + 79 / - + COUNT( * ) + 69 - - - 12 + + - 26 * - 69 THEN 47 * + 97 END WHEN + 79 THEN - 72 * - 90 + + 32 * - + 25 ELSE NULL END - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT - 8 * - ( NULLIF ( + 77, 6 ) ) - + + 54 + - CASE CASE - - CAST ( + 25 AS INTEGER ) WHEN + 79 / - + COUNT ( * ) + 69 - - - 12 + + - 26 * - 69 THEN 47 * + 97 END WHEN + 79 THEN - 72 * - 90 + + 32 * - + 25 ELSE NULL END - + 91
----
NULL

query II rowsort
SELECT + 85 col1, + 52 AS col0
----
85
52

query I rowsort
SELECT DISTINCT - 99 * - - 25 * 21 * - 92 AS col1
----
4781700

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT 14 * + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4254
SELECT 14 * + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT DISTINCT - 55 * 43 + + + SUM( - - 55 ) * - 59 col1
----
-5610

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT - 55 * 43 + + + SUM ( - - 55 ) * - 59 col1
----
-5610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT - + ( 23 ) + + 48 + + - CAST( NULL AS SIGNED ) - + MIN( ALL 69 ) * + ( + + 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - + ( 23 ) + + 48 + + - CAST ( NULL AS INTEGER ) - + MIN ( ALL 69 ) * + ( + + 1 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 2 + 12 * + ( + - ( + + 2 ) ) AS col0
----
-22

query I rowsort
SELECT 22 + - 1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT DISTINCT - MIN( + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT - MIN ( + 88 )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4260
SELECT DISTINCT COUNT( * ) + + + 9 AS col1, + 41 AS col2
----
10
41

skipif mysql # not compatible
query II rowsort label-4260
SELECT DISTINCT COUNT ( * ) + + + 9 AS col1, + 41 AS col2
----
10
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT + MAX( DISTINCT + 4 ) AS col0, + 70
----
4
70

skipif mysql # not compatible
query II rowsort label-4261
SELECT + MAX ( DISTINCT + 4 ) AS col0, + 70
----
4
70

query I rowsort
SELECT ALL - 39 + 40 + + 5
----
6

query I rowsort
SELECT 3 * - 36 * + - 98 + + 12 + + 68
----
10664

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT MIN( ALL - 82 ) + + 72 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT MIN ( ALL - 82 ) + + 72 AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT DISTINCT - 12 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - 12 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 94 * 87 AS col0
----
8178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL - COUNT( * ) + - + CAST( - 57 AS SIGNED ) col2
----
56

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - COUNT ( * ) + - + CAST ( - 57 AS INTEGER ) col2
----
56

query I rowsort
SELECT + 89 * + 78 * 20 + - 59 + - - 49 AS col0
----
138830

query I rowsort
SELECT 69 - + - 0 * - 31 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT MIN( - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT MIN ( - 29 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT 82 + - 24, COUNT( * ) + + - 22 col0
----
58
-21

skipif mysql # not compatible
query II rowsort label-4271
SELECT 82 + - 24, COUNT ( * ) + + - 22 col0
----
58
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT COUNT( * ) * CAST( + 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-4272
SELECT COUNT ( * ) * CAST ( + 56 AS INTEGER )
----
56

query I rowsort
SELECT ALL + COALESCE ( 30, + 68 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT - 9 - COUNT( * ) * 29 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-4274
SELECT - 9 - COUNT ( * ) * 29 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL CASE - 0 WHEN - SUM( ALL - + 8 ) + 61 * - 21 THEN - 44 END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL CASE - 0 WHEN - SUM ( ALL - + 8 ) + 61 * - 21 THEN - 44 END * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 22 - + 37
----
-59

query II rowsort
SELECT - 75 * 21, 28 + - 39 * + 83 - - - ( + 36 ) * - 88 AS col2
----
-1575
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL + 61 * + COUNT( * ) + 31
----
92

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL + 61 * + COUNT ( * ) + 31
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4279
SELECT - 93 * - + 94 - + NULLIF ( + 76, + - 24 + - + 30 ) DIV COUNT( * )
----
8666

skipif mysql # not compatible
query I rowsort label-4279
SELECT - 93 * - + 94 - + NULLIF ( + 76, + - 24 + - + 30 ) / COUNT ( * )
----
8666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4280
SELECT - 81 * 47 + + 81 + - 40 * COALESCE ( + 94, - 77 * 67 - - 41 * - ( + - 37 ) * - MAX( 84 ) + 8 - CAST( - - 95 AS SIGNED ) + - COUNT( * ) * - - 10 * - MAX( - - 27 ), + SUM( ALL - 92 ) DIV + COUNT( * ) * - + CAST( MAX( DISTINCT 8 ) AS SIGNED ) + - - 16 + + + AVG ( - 85 ) DIV + SUM( - CAST( 21 AS SIGNED ) ) ) DIV 30 AS col2
----
-3851

skipif mysql # not compatible
query I rowsort label-4280
SELECT - 81 * 47 + + 81 + - 40 * COALESCE ( + 94, - 77 * 67 - - 41 * - ( + - 37 ) * - MAX ( 84 ) + 8 - CAST ( - - 95 AS INTEGER ) + - COUNT ( * ) * - - 10 * - MAX ( - - 27 ), + SUM ( ALL - 92 ) / + COUNT ( * ) * - + CAST ( MAX ( DISTINCT 8 ) AS INTEGER ) + - - 16 + + + AVG ( - 85 ) / + SUM ( - CAST ( 21 AS INTEGER ) ) ) / 30 AS col2
----
-3851

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL + SUM( 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + SUM ( 7 )
----
7

query I rowsort
SELECT - + 31 + + - 72 AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT DISTINCT + CASE - - COUNT( * ) WHEN - 70 * + 22 + + - 62 THEN 40 WHEN ( + ( - 94 ) ) THEN NULL ELSE ( + - 91 ) END
----
-91

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT + CASE - - COUNT ( * ) WHEN - 70 * + 22 + + - 62 THEN 40 WHEN ( + ( - 94 ) ) THEN NULL ELSE ( + - 91 ) END
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL + 38 * CASE - + 85 WHEN - 8 THEN NULL WHEN + MAX( 33 ) * + + 77 THEN NULL ELSE - + CASE - + MIN( DISTINCT + 41 ) WHEN - 32 + + - 64 THEN + 30 / + AVG ( ALL 98 ) ELSE NULL END END + + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + 38 * CASE - + 85 WHEN - 8 THEN NULL WHEN + MAX ( 33 ) * + + 77 THEN NULL ELSE - + CASE - + MIN ( DISTINCT + 41 ) WHEN - 32 + + - 64 THEN + 30 / + AVG ( ALL 98 ) ELSE NULL END END + + - 20
----
NULL

query I rowsort
SELECT - 96 * - 72
----
6912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT + + 24 * + 62 + - - CAST( - - 54 AS SIGNED ) - + 70
----
1472

skipif mysql # not compatible
query I rowsort label-4286
SELECT + + 24 * + 62 + - - CAST ( - - 54 AS INTEGER ) - + 70
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL COUNT( * ) * - 79 + + 2 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL COUNT ( * ) * - 79 + + 2 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + COUNT( * ) * + 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4288
SELECT + COUNT ( * ) * + 20 AS col0
----
20

query I rowsort
SELECT + ( + 47 ) * 3 AS col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT CASE 83 WHEN + + COUNT( * ) / - - CASE - 87 WHEN + ( - + 17 ) THEN - 25 * 25 END * - - 2 THEN - 84 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT CASE 83 WHEN + + COUNT ( * ) / - - CASE - 87 WHEN + ( - + 17 ) THEN - 25 * 25 END * - - 2 THEN - 84 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4291
SELECT MIN( DISTINCT - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT MIN ( DISTINCT - - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + 82 * + 40 AS col0
----
3280

query I rowsort
SELECT ALL 46 - 99 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4294
SELECT + 28 DIV COUNT( - + ( + 15 ) )
----
28

skipif mysql # not compatible
query I rowsort label-4294
SELECT + 28 / COUNT ( - + ( + 15 ) )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT - 34 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-4295
SELECT - 34 / + 48
----
0

query I rowsort
SELECT ALL - 36 * - - 51 AS col1
----
-1836

query I rowsort
SELECT ALL 10 - 29
----
-19

query I rowsort
SELECT ALL + + 17 * - + 3 AS col0
----
-51

query I rowsort
SELECT - ( + 9 ) * + 22 AS col2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - 20 + 73 - + - COALESCE ( + 22, 62, - 81 * - + SUM( ALL 15 ) ) col1
----
75

skipif mysql # not compatible
query I rowsort label-4300
SELECT - 20 + 73 - + - COALESCE ( + 22, 62, - 81 * - + SUM ( ALL 15 ) ) col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - - 96 + COUNT( * ) * - + COUNT( * ) * + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4301
SELECT - - 96 + COUNT ( * ) * - + COUNT ( * ) * + COUNT ( * ) AS col0
----
95

query I rowsort
SELECT - + 21 * + + 20 AS col1
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4303
SELECT - 47 AS col2, + 78 + 16 DIV COUNT( * ) * 39 + + + 96 + - 89 + 5 + ( + NULLIF ( + CAST( + 40 AS SIGNED ), 31 ) )
----
-47
754

skipif mysql # not compatible
query II rowsort label-4303
SELECT - 47 AS col2, + 78 + 16 / COUNT ( * ) * 39 + + + 96 + - 89 + 5 + ( + NULLIF ( + CAST ( + 40 AS INTEGER ), 31 ) )
----
-47
754

query I rowsort
SELECT ALL ( 90 ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4305
SELECT ALL CAST( + + 59 AS SIGNED ) + + 63 * MIN( + - 41 ), 42 col0
----
-2524
42

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL CAST ( + + 59 AS INTEGER ) + + 63 * MIN ( + - 41 ), 42 col0
----
-2524
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT - ( + COUNT( DISTINCT - 93 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT - ( + COUNT ( DISTINCT - 93 ) )
----
-1

query I rowsort
SELECT ALL - NULLIF ( + 88, CASE 22 WHEN + 87 / + 35 * - 47 + 24 THEN NULL WHEN + 26 THEN NULL ELSE - 44 END ) + + 44
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT - - 43, + COUNT( * ) col2
----
43
1

skipif mysql # not compatible
query II rowsort label-4308
SELECT - - 43, + COUNT ( * ) col2
----
43
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT DISTINCT 99 DIV + 64 - + + 56 + + NULLIF ( - 70, - COUNT( * ) ) - COUNT( * ) col2
----
-126

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT 99 / + 64 - + + 56 + + NULLIF ( - 70, - COUNT ( * ) ) - COUNT ( * ) col2
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT ALL - CASE 14 WHEN - 37 * - 54 THEN + 56 ELSE + - 26 - - 17 + + - 21 END * 82 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL - CASE 14 WHEN - 37 * - 54 THEN + 56 ELSE + - 26 - - 17 + + - 21 END * 82 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4311
SELECT + - CAST( - 21 AS SIGNED ) col2
----
21

skipif mysql # not compatible
query I rowsort label-4311
SELECT + - CAST ( - 21 AS INTEGER ) col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4312
SELECT - - COUNT( * ) * + 2 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-4312
SELECT - - COUNT ( * ) * + 2 / - + 65
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4313
SELECT ALL 70 DIV 57 + + + CAST( + 87 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL 70 / 57 + + + CAST ( + 87 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + COALESCE ( - - 86, - COUNT( * ) + + 33 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4314
SELECT + COALESCE ( - - 86, - COUNT ( * ) + + 33 ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4315
SELECT - 42 DIV COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4315
SELECT - 42 / COUNT ( * ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + 48 * - NULLIF ( - 80, 54 - + - 26 ) * - COUNT( * )
----
-3840

skipif mysql # not compatible
query I rowsort label-4316
SELECT + 48 * - NULLIF ( - 80, 54 - + - 26 ) * - COUNT ( * )
----
-3840

query II rowsort
SELECT ALL + 18 AS col2, 60
----
18
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4318
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 66 + + 40
----
NULL
106

skipif mysql # not compatible
query II rowsort label-4318
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 66 + + 40
----
NULL
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4319
SELECT - COALESCE ( - 47, - + COUNT( * ), + - CAST( - 4 AS SIGNED ) ) * 37 + - SUM( ALL + 37 ) AS col1
----
1702

skipif mysql # not compatible
query I rowsort label-4319
SELECT - COALESCE ( - 47, - + COUNT ( * ), + - CAST ( - 4 AS INTEGER ) ) * 37 + - SUM ( ALL + 37 ) AS col1
----
1702

query I rowsort
SELECT DISTINCT + 96 col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4321
SELECT + COUNT( * ) AS col2, 0 AS col1
----
1
0

skipif mysql # not compatible
query II rowsort label-4321
SELECT + COUNT ( * ) AS col2, 0 AS col1
----
1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4322
SELECT ALL 19 DIV COUNT( * ) * + 23 - - 45
----
482

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL 19 / COUNT ( * ) * + 23 - - 45
----
482

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + COUNT( * ) * + + 25 * - 69 - - 15 - - COUNT( ALL 68 ) col1
----
-1709

skipif mysql # not compatible
query I rowsort label-4323
SELECT + COUNT ( * ) * + + 25 * - 69 - - 15 - - COUNT ( ALL 68 ) col1
----
-1709

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT + 94 AS col1, + MAX( ALL + - 26 ) * + - 85 + - 81 * + - 56 + + - 9
----
94
6737

skipif mysql # not compatible
query II rowsort label-4324
SELECT + 94 AS col1, + MAX ( ALL + - 26 ) * + - 85 + - 81 * + - 56 + + - 9
----
94
6737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT + ( + - CAST( + + ( + - 66 ) AS SIGNED ) )
----
66

skipif mysql # not compatible
query I rowsort label-4325
SELECT + ( + - CAST ( + + ( + - 66 ) AS INTEGER ) )
----
66

query I rowsort
SELECT + ( + 48 )
----
48

query II rowsort
SELECT ( 20 ) AS col1, 77 AS col0
----
20
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT ALL 46 DIV + ( 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL 46 / + ( 56 ) AS col0
----
0

query I rowsort
SELECT - 52 * 79 AS col1
----
-4108

query I rowsort
SELECT NULLIF ( - - 75, + 21 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT + CAST( - 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-4331
SELECT + CAST ( - 76 AS INTEGER )
----
-76

query I rowsort
SELECT ALL - 77 * + 20
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT 98 * + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-4333
SELECT 98 * + COUNT ( * ) AS col2
----
98

query II rowsort
SELECT - + 63 AS col0, 57
----
-63
57

query I rowsort
SELECT 51 * 43 AS col0
----
2193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4336
SELECT ALL - COALESCE ( - + 51, + 34 * - - NULLIF ( + 57, - + 1 ) * COUNT( + - 38 ) + - - 53 * 8 + 32, COALESCE ( + 0, + 26 * COUNT( * ) DIV - 24 + + - COUNT( * ) * + 31, - - 11 ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL - COALESCE ( - + 51, + 34 * - - NULLIF ( + 57, - + 1 ) * COUNT ( + - 38 ) + - - 53 * 8 + 32, COALESCE ( + 0, + 26 * COUNT ( * ) / - 24 + + - COUNT ( * ) * + 31, - - 11 ) ) AS col2
----
51

query I rowsort
SELECT ( 88 ) * - 42 AS col1
----
-3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT 27 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT 27 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4339
SELECT - ( - - MAX( ALL CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT - ( - - MAX ( ALL CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT 17 * MIN( - 44 ) * 86 * - - 38 + + + 84 AS col0
----
-2444380

skipif mysql # not compatible
query I rowsort label-4340
SELECT 17 * MIN ( - 44 ) * 86 * - - 38 + + + 84 AS col0
----
-2444380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4341
SELECT - CAST( NULL AS SIGNED ) AS col0, 7 AS col0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-4341
SELECT - CAST ( NULL AS INTEGER ) AS col0, 7 AS col0
----
NULL
7

query I rowsort
SELECT 20 * + + 50
----
1000

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT DISTINCT + NULLIF ( 64, + AVG ( ALL 11 ) ) + + ( + 97 ), COUNT( * ) + + 21 + - - 90 * - COALESCE ( 70, - 81, 0 ) * + - 15 AS col0
----
161
94522

skipif mysql # not compatible
query II rowsort label-4343
SELECT DISTINCT + NULLIF ( 64, + AVG ( ALL 11 ) ) + + ( + 97 ), COUNT ( * ) + + 21 + - - 90 * - COALESCE ( 70, - 81, 0 ) * + - 15 AS col0
----
161
94522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT DISTINCT + CASE + + ( - 62 ) WHEN - 8 + - CAST( NULL AS SIGNED ) + 13 + + 70 * - + 28 THEN - 47 ELSE - 14 END AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + CASE + + ( - 62 ) WHEN - 8 + - CAST ( NULL AS INTEGER ) + 13 + + 70 * - + 28 THEN - 47 ELSE - 14 END AS col0
----
-14

query I rowsort
SELECT 97 - 88 AS col1
----
9

query I rowsort
SELECT DISTINCT ( + - 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4347
SELECT ALL - 55 AS col1, 71 + + ( + 2 ) * 45 * + - CAST( - NULLIF ( + - 46, + ( + 4 ) + + + MIN( - + 10 ) * + ( + 2 ) * - CASE + 88 WHEN 64 THEN + MAX( DISTINCT 95 ) + + - COUNT( * ) + 83 + 29 WHEN - 89 THEN NULL WHEN 61 / - COUNT( * ) THEN 27 * 6 ELSE 7 * - + 40 * - 58 * + COUNT( * ) END ) AS SIGNED ) AS col1
----
-55
-4069

skipif mysql # not compatible
query II rowsort label-4347
SELECT ALL - 55 AS col1, 71 + + ( + 2 ) * 45 * + - CAST ( - NULLIF ( + - 46, + ( + 4 ) + + + MIN ( - + 10 ) * + ( + 2 ) * - CASE + 88 WHEN 64 THEN + MAX ( DISTINCT 95 ) + + - COUNT ( * ) + 83 + 29 WHEN - 89 THEN NULL WHEN 61 / - COUNT ( * ) THEN 27 * 6 ELSE 7 * - + 40 * - 58 * + COUNT ( * ) END ) AS INTEGER ) AS col1
----
-55
-4069

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT + 20 - - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-4348
SELECT + 20 - - COUNT ( * )
----
21

query I rowsort
SELECT ( + 73 ) + + 79 AS col1
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL - 18 + - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - 18 + - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - - SUM( - 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4351
SELECT - - SUM ( - 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT MIN( DISTINCT + 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4352
SELECT MIN ( DISTINCT + 46 ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4353
SELECT - 87 + + + 22 + + 90 - + CAST( + - 62 AS SIGNED ) * + MAX( - - 61 ) * - 53 + + 2 - - COALESCE ( + 81, - - SUM( DISTINCT + - 20 ) * - 86 ) AS col2
----
-200338

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 87 + + + 22 + + 90 - + CAST ( + - 62 AS INTEGER ) * + MAX ( - - 61 ) * - 53 + + 2 - - COALESCE ( + 81, - - SUM ( DISTINCT + - 20 ) * - 86 ) AS col2
----
-200338

query I rowsort
SELECT 66 * - + 90
----
-5940

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT - - 87 * + + 13 + - 12 DIV 91
----
1131

skipif mysql # not compatible
query I rowsort label-4355
SELECT - - 87 * + + 13 + - 12 / 91
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT - COUNT( DISTINCT + COALESCE ( - 95, - - 81 + - 56, - 87 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT - COUNT ( DISTINCT + COALESCE ( - 95, - - 81 + - 56, - 87 ) ) AS col0
----
-1

query II rowsort
SELECT ALL + 8 - 44 AS col2, NULLIF ( + 63, - + 10 ) AS col2
----
-36
63

query I rowsort
SELECT DISTINCT - 53 * - 59 col2
----
3127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4359
SELECT 82 + - - CAST( 13 AS SIGNED ) AS col1, CASE - 27 WHEN + 19 + 21 * + CASE - 9 WHEN - - 6 THEN NULL WHEN + + 33 THEN NULL WHEN - 25 * + 47 THEN + + COUNT( * ) * 31 + 57 END + + 71 THEN 15 * + COUNT( * ) * 37 - NULLIF ( - COUNT( * ), + - 58 / + + 98 * - 34 + - + 76 * + 90 + + 39 / - + COUNT( * ) ) WHEN + 79 THEN NULL ELSE NULL END * ( 27 ) + + 88 AS col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4359
SELECT 82 + - - CAST ( 13 AS INTEGER ) AS col1, CASE - 27 WHEN + 19 + 21 * + CASE - 9 WHEN - - 6 THEN NULL WHEN + + 33 THEN NULL WHEN - 25 * + 47 THEN + + COUNT ( * ) * 31 + 57 END + + 71 THEN 15 * + COUNT ( * ) * 37 - NULLIF ( - COUNT ( * ), + - 58 / + + 98 * - 34 + - + 76 * + 90 + + 39 / - + COUNT ( * ) ) WHEN + 79 THEN NULL ELSE NULL END * ( 27 ) + + 88 AS col0
----
95
NULL

query I rowsort
SELECT ALL + 8 - + CASE - CASE + 7 WHEN - 44 THEN - 31 WHEN - - ( + 73 ) THEN + 89 END WHEN 64 THEN + 30 * 40 + AVG ( ALL 12 ) END * + 56 + 53 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4361
SELECT 81 / - + 11 * + 43 * - 35 + - 98 - 90 + - CAST( NULL AS SIGNED ) * + MIN( 5 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT 81 / - + 11 * + 43 * - 35 + - 98 - 90 + - CAST ( NULL AS INTEGER ) * + MIN ( 5 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT 72 DIV - + 33
----
-2

skipif mysql # not compatible
query I rowsort label-4362
SELECT 72 / - + 33
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4363
SELECT 8 DIV + 40 * - NULLIF ( COUNT( * ), - + 85 * - 20 + - - 48 * COUNT( * ) - 24 * - CAST( NULL AS SIGNED ) * 76 * - 76 ) AS col2, + COALESCE ( + 71, - CAST( NULL AS SIGNED ) + ( - ( 39 ) ) ) + + 64 AS col0
----
0
135

skipif mysql # not compatible
query II rowsort label-4363
SELECT 8 / + 40 * - NULLIF ( COUNT ( * ), - + 85 * - 20 + - - 48 * COUNT ( * ) - 24 * - CAST ( NULL AS INTEGER ) * 76 * - 76 ) AS col2, + COALESCE ( + 71, - CAST ( NULL AS INTEGER ) + ( - ( 39 ) ) ) + + 64 AS col0
----
0
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL - 36 * SUM( - 47 )
----
1692

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL - 36 * SUM ( - 47 )
----
1692

query I rowsort
SELECT DISTINCT - CASE - + 65 WHEN + - 33 * - - 22 + 34 * + 36 THEN 94 + + CASE - ( 76 ) WHEN - 93 / - + 84 THEN NULL WHEN 78 * + - 51 THEN NULL ELSE + 72 END + - 57 END AS col1
----
NULL

query I rowsort
SELECT ALL + 45 * + 10
----
450

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT 63 + + - 25, + 9 * - - COALESCE ( - + 96, COUNT( * ) + 58 ) + - 96 + - COUNT( * ) AS col1
----
38
-961

skipif mysql # not compatible
query II rowsort label-4367
SELECT 63 + + - 25, + 9 * - - COALESCE ( - + 96, COUNT ( * ) + 58 ) + - 96 + - COUNT ( * ) AS col1
----
38
-961

query I rowsort
SELECT ALL + 23 + - 98 AS col0
----
-75

query I rowsort
SELECT - 2 * + ( 72 ) + - - 24 AS col0
----
-120

query I rowsort
SELECT 96 + + 41 col0
----
137

query I rowsort
SELECT DISTINCT - ( - 0 ) * 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL 85 + + 69 * - 73 * - - MIN( - 56 ) + 85 AS col0
----
282242

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL 85 + + 69 * - 73 * - - MIN ( - 56 ) + 85 AS col0
----
282242

query I rowsort
SELECT 86 - - 50
----
136

query II rowsort
SELECT ALL - 83 + 13 AS col1, - 68 + 50 AS col0
----
-70
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT ALL + COUNT( * ) + - 99 DIV + + 64 col0
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + COUNT ( * ) + - 99 / + + 64 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - - CASE + - 79 WHEN + COUNT( * ) THEN - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT - - CASE + - 79 WHEN + COUNT ( * ) THEN - 14 END
----
NULL

query I rowsort
SELECT ALL - - 91 * - + 63 + 28 + + 19 - - ( - 99 )
----
-5785

query I rowsort
SELECT DISTINCT 70 + + 8 + + + 24 + + ( + 45 ) * - + 99 AS col0
----
-4353

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL 74 + COUNT( * ) + - COALESCE ( - MAX( - - 7 ), + + 67 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL 74 + COUNT ( * ) + - COALESCE ( - MAX ( - - 7 ), + + 67 ) col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT - - NULLIF ( - - 13, + 18 + COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-4380
SELECT - - NULLIF ( - - 13, + 18 + COUNT ( * ) )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4381
SELECT + COUNT( * ) + - COUNT( * ) * - 86, 99 AS col1
----
87
99

skipif mysql # not compatible
query II rowsort label-4381
SELECT + COUNT ( * ) + - COUNT ( * ) * - 86, 99 AS col1
----
87
99

query I rowsort
SELECT ALL 88 + - - 2 * 78 * NULLIF ( 7, + - 26 ) col2
----
1180

query I rowsort
SELECT ALL ( - 59 ) AS col1
----
-59

query I rowsort
SELECT 3 + + + 29 AS col2
----
32

query I rowsort
SELECT 34 * + 98 + 48 * + 27 AS col0
----
4628

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT DISTINCT + 56 DIV - 99 + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT + 56 / - 99 + 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT 80 + - NULLIF ( + + COUNT( * ), + AVG ( - ( + 36 ) ) * + 42 + - 16 + + 32 * + - 72 * - 67 * - + ( + 40 ) + - 31 * + ( - 96 ) * + NULLIF ( COUNT( * ), + 0 ) + ( + 25 ) + - + 78 ) * 71 * + 8 * - COUNT( * )
----
648

skipif mysql # not compatible
query I rowsort label-4387
SELECT 80 + - NULLIF ( + + COUNT ( * ), + AVG ( - ( + 36 ) ) * + 42 + - 16 + + 32 * + - 72 * - 67 * - + ( + 40 ) + - 31 * + ( - 96 ) * + NULLIF ( COUNT ( * ), + 0 ) + ( + 25 ) + - + 78 ) * 71 * + 8 * - COUNT ( * )
----
648

query I rowsort
SELECT ALL + 6 - + 69 + + + ( + NULLIF ( 57, - - 29 ) ) AS col0
----
-6

query II rowsort
SELECT DISTINCT 72 AS col2, 46 - + + 29
----
72
17

query I rowsort
SELECT 73 * 46
----
3358

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT - SUM( DISTINCT - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4391
SELECT - SUM ( DISTINCT - 91 )
----
91

query II rowsort
SELECT ALL 78, + 99 AS col0
----
78
99

query II rowsort
SELECT DISTINCT - 15, 50 col0
----
-15
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT NULLIF ( - + COUNT( * ), + + COUNT( * ) + COALESCE ( - 97, + 24 * + + 51 * - + 18 / 63 * 61 ) + + + 95 + SUM( ALL 35 ) - + + 80 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4394
SELECT NULLIF ( - + COUNT ( * ), + + COUNT ( * ) + COALESCE ( - 97, + 24 * + + 51 * - + 18 / 63 * 61 ) + + + 95 + SUM ( ALL 35 ) - + + 80 ) AS col1
----
-1

query I rowsort
SELECT ALL 71 * - 41 AS col1
----
-2911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4396
SELECT COALESCE ( + - 68, + 54 - CASE NULLIF ( + 70, + + AVG ( DISTINCT + 34 ) ) WHEN + 64 * - COUNT( * ) * + CASE + 51 WHEN - COUNT( * ) * - 40 * ( - SUM( - 89 ) ) + - 67 + + + 16 + - 63 THEN NULL WHEN + 12 + - - 6 THEN + + COUNT( * ) * + NULLIF ( + 3, + - 22 + - CAST( NULL AS SIGNED ) * 25 ) * + COUNT( * ) + + 0 + 85 + + + 74 + 61 END THEN NULL ELSE + 5 END ) col2, - 14
----
-68
-14

skipif mysql # not compatible
query II rowsort label-4396
SELECT COALESCE ( + - 68, + 54 - CASE NULLIF ( + 70, + + AVG ( DISTINCT + 34 ) ) WHEN + 64 * - COUNT ( * ) * + CASE + 51 WHEN - COUNT ( * ) * - 40 * ( - SUM ( - 89 ) ) + - 67 + + + 16 + - 63 THEN NULL WHEN + 12 + - - 6 THEN + + COUNT ( * ) * + NULLIF ( + 3, + - 22 + - CAST ( NULL AS INTEGER ) * 25 ) * + COUNT ( * ) + + 0 + 85 + + + 74 + 61 END THEN NULL ELSE + 5 END ) col2, - 14
----
-68
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + COUNT( * ) * + 6 - + 40 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4397
SELECT + COUNT ( * ) * + 6 - + 40 AS col1
----
-34

query I rowsort
SELECT ALL - COALESCE ( + ( - 44 ), + 45 * + 1 + - 61 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + COUNT( * ) - 85 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4399
SELECT + COUNT ( * ) - 85 AS col2
----
-84

query I rowsort
SELECT ALL 35 * - 83
----
-2905

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4401
SELECT DISTINCT + 21 AS col2, CAST( NULL AS SIGNED )
----
21
NULL

skipif mysql # not compatible
query II rowsort label-4401
SELECT DISTINCT + 21 AS col2, CAST ( NULL AS INTEGER )
----
21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT COUNT( ALL - 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4402
SELECT COUNT ( ALL - 53 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4403
SELECT COUNT( * ) AS col2, SUM( ALL - 44 )
----
1
-44

skipif mysql # not compatible
query II rowsort label-4403
SELECT COUNT ( * ) AS col2, SUM ( ALL - 44 )
----
1
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL - 3 * + 96 + + + COUNT( * )
----
-287

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - 3 * + 96 + + + COUNT ( * )
----
-287

query II rowsort
SELECT ALL + 92 * - + 16 * + 55 + ( 46 ) * + - 45 AS col1, + 51 col0
----
-83030
51

query I rowsort
SELECT ALL - + 30 * + 11
----
-330

query II rowsort
SELECT - + 98 * - 2 * + 10, + 50 AS col1
----
1960
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL 13 * + CASE 20 WHEN + 47 * + COUNT( ALL - 39 ) THEN - + COUNT( * ) * - 48 / 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL 13 * + CASE 20 WHEN + 47 * + COUNT ( ALL - 39 ) THEN - + COUNT ( * ) * - 48 / 51 END
----
NULL

query I rowsort
SELECT DISTINCT + - 18 col0
----
-18

query II rowsort
SELECT DISTINCT + - 18 + 64 - 91 AS col1, + 26 AS col0
----
-45
26

query I rowsort
SELECT DISTINCT + - 1 * - 19
----
19

query I rowsort
SELECT ALL - - 38 * 3
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT + 84 + + - 92 + - MAX( - - 39 )
----
-47

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT + 84 + + - 92 + - MAX ( - - 39 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT DISTINCT + - COUNT( * ) + - + NULLIF ( + - 9, + - 40 ) + CASE MIN( ALL - 33 ) WHEN NULLIF ( - 98, - NULLIF ( - 76, - - 9 * - + 64 ) ) THEN + - 10 / + 32 + + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + - COUNT ( * ) + - + NULLIF ( + - 9, + - 40 ) + CASE MIN ( ALL - 33 ) WHEN NULLIF ( - 98, - NULLIF ( - 76, - - 9 * - + 64 ) ) THEN + - 10 / + 32 + + 5 END
----
NULL

query I rowsort
SELECT ( + ( - 14 ) )
----
-14

query II rowsort
SELECT 20 AS col0, - NULLIF ( - + 59, + 10 ) * - - 64 + + - 28 AS col1
----
20
3748

query I rowsort
SELECT - - 21 + 66 * - 20
----
-1299

query I rowsort
SELECT + + 16 * 34 AS col2
----
544

query I rowsort
SELECT ALL - 35 - + - 30 + + ( + 92 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT - SUM( - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - SUM ( - 93 ) AS col1
----
93

query I rowsort
SELECT DISTINCT + 62 * - - 53
----
3286

query I rowsort
SELECT ALL 54 * - + 85 AS col1
----
-4590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT + CAST( 66 AS SIGNED ) + - 37
----
29

skipif mysql # not compatible
query I rowsort label-4423
SELECT + CAST ( 66 AS INTEGER ) + - 37
----
29

query I rowsort
SELECT - ( + 10 ) AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT + 18 DIV - + 84 * + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT + 18 / - + 84 * + 77 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT ALL COUNT( * ) DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL COUNT ( * ) / + 27
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT + CAST( NULL AS SIGNED ) / - ( - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT + CAST ( NULL AS INTEGER ) / - ( - 58 )
----
NULL

query I rowsort
SELECT + COALESCE ( 64, 63 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + 82 + MIN( ALL 65 ) * + 93 + - - COUNT( * ) - - - 47 + - + NULLIF ( + - 74, - - COUNT( * ) * - - 20 * - 87 * 48 + NULLIF ( - 9, + + SUM( DISTINCT + 3 ) ) ) * 28 AS col2
----
8153

skipif mysql # not compatible
query I rowsort label-4429
SELECT + 82 + MIN ( ALL 65 ) * + 93 + - - COUNT ( * ) - - - 47 + - + NULLIF ( + - 74, - - COUNT ( * ) * - - 20 * - 87 * 48 + NULLIF ( - 9, + + SUM ( DISTINCT + 3 ) ) ) * 28 AS col2
----
8153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4430
SELECT ALL + 76 DIV COUNT( * ) + + - MIN( ALL - + 70 ) * MIN( DISTINCT 81 ) * - 2 AS col1
----
-11264

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + 76 / COUNT ( * ) + + - MIN ( ALL - + 70 ) * MIN ( DISTINCT 81 ) * - 2 AS col1
----
-11264

query I rowsort
SELECT + 75 + + 21
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL MIN( - 26 ) * - 32 * - - 93 * - COALESCE ( + 52, MIN( + - 21 ) ) + + + MAX( + 21 )
----
-4023531

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL MIN ( - 26 ) * - 32 * - - 93 * - COALESCE ( + 52, MIN ( + - 21 ) ) + + + MAX ( + 21 )
----
-4023531

query I rowsort
SELECT + 93 * + - 96 * + 78 AS col1
----
-696384

query I rowsort
SELECT 19 * 12 + - 51 - + 10
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4435
SELECT DISTINCT + - 45 * - - 1 DIV COUNT( * ) + CAST( 30 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT + - 45 * - - 1 / COUNT ( * ) + CAST ( 30 AS INTEGER )
----
-15

query I rowsort
SELECT DISTINCT NULLIF ( + 83, + 46 - + 63 ) * + 26 AS col0
----
2158

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4437
SELECT COUNT( ALL - 84 ) * + 29 + - 36 AS col0, COALESCE ( COALESCE ( + - 14, - - 40 + 22 * + SUM( + + NULLIF ( - 54, - 0 ) ) + SUM( - - 17 ) * - + 68 ), + 40 + - 4 + + - COALESCE ( - - COUNT( - 0 ), - - 72, - - 20 + + 7, + 17 DIV - + 80 ) DIV + + ( + 1 ), - + 99, - + 65 DIV ( + NULLIF ( - - 84, + - NULLIF ( - 83, - ( ( COUNT( * ) ) ) * - - SUM( ( 3 ) ) * - ( 72 ) + 2 ) * 10 ) ) * COALESCE ( 46 * + 86, + 59 * - 64 + - 49 * NULLIF ( - 87, 61 DIV 44 ) ) ) + - 94 AS col1
----
-7
-108

skipif mysql # not compatible
query II rowsort label-4437
SELECT COUNT ( ALL - 84 ) * + 29 + - 36 AS col0, COALESCE ( COALESCE ( + - 14, - - 40 + 22 * + SUM ( + + NULLIF ( - 54, - 0 ) ) + SUM ( - - 17 ) * - + 68 ), + 40 + - 4 + + - COALESCE ( - - COUNT ( - 0 ), - - 72, - - 20 + + 7, + 17 / - + 80 ) / + + ( + 1 ), - + 99, - + 65 / ( + NULLIF ( - - 84, + - NULLIF ( - 83, - ( ( COUNT ( * ) ) ) * - - SUM ( ( 3 ) ) * - ( 72 ) + 2 ) * 10 ) ) * COALESCE ( 46 * + 86, + 59 * - 64 + - 49 * NULLIF ( - 87, 61 / 44 ) ) ) + - 94 AS col1
----
-7
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT ALL 47 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL 47 / 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4439
SELECT - + CAST( NULL AS SIGNED ) + - 83 col0, + 7 * 18
----
NULL
126

skipif mysql # not compatible
query II rowsort label-4439
SELECT - + CAST ( NULL AS INTEGER ) + - 83 col0, + 7 * 18
----
NULL
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT + CASE 21 WHEN 60 / - 69 * - + 47 THEN - 72 ELSE + + ( - COUNT( * ) ) END * 34 * - 37
----
1258

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT + CASE 21 WHEN 60 / - 69 * - + 47 THEN - 72 ELSE + + ( - COUNT ( * ) ) END * 34 * - 37
----
1258

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL - SUM( + + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - SUM ( + + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT - 2 * SUM( ALL - + 90 ) + 90 AS col2
----
270

skipif mysql # not compatible
query I rowsort label-4442
SELECT - 2 * SUM ( ALL - + 90 ) + 90 AS col2
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT - + 61 * - ( + 12 ) * + 42 + + COUNT( * ) + 1 AS col0
----
30746

skipif mysql # not compatible
query I rowsort label-4443
SELECT - + 61 * - ( + 12 ) * + 42 + + COUNT ( * ) + 1 AS col0
----
30746

query I rowsort
SELECT - 80 * + 11 AS col2
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT + 37 * - - 37 + - COUNT( * ) + - 88
----
1280

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + 37 * - - 37 + - COUNT ( * ) + - 88
----
1280

query I rowsort
SELECT ALL + ( + + 86 ) AS col2
----
86

query I rowsort
SELECT ALL ( 75 ) col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT DISTINCT CAST( ( + + 40 ) AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT CAST ( ( + + 40 ) AS INTEGER ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4449
SELECT - NULLIF ( + ( 7 ), - - COUNT( * ) ) * COUNT( * ), + 99 * - 33 * - COUNT( * ) * 86 AS col0
----
-7
280962

skipif mysql # not compatible
query II rowsort label-4449
SELECT - NULLIF ( + ( 7 ), - - COUNT ( * ) ) * COUNT ( * ), + 99 * - 33 * - COUNT ( * ) * 86 AS col0
----
-7
280962

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - 42 * + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4450
SELECT - 42 * + - COUNT ( * )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4451
SELECT ALL CAST( + 35 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL CAST ( + 35 AS INTEGER ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + COUNT( * ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + COUNT ( * ) * - 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT COALESCE ( 46, - COUNT( * ) ) * + COUNT( - + 30 ) + + + ( - + 19 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4453
SELECT COALESCE ( 46, - COUNT ( * ) ) * + COUNT ( - + 30 ) + + + ( - + 19 ) AS col1
----
27

query II rowsort
SELECT 26, 21 AS col2
----
26
21

query I rowsort
SELECT DISTINCT - ( 43 ) + - 33
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4456
SELECT 36 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT 36 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT ALL 34 + CAST( NULL AS SIGNED ) + + 83 + 15 * - 79 * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL 34 + CAST ( NULL AS INTEGER ) + + 83 + 15 * - 79 * + 90
----
NULL

query II rowsort
SELECT 42 * - 73 * + 94 col0, + 45
----
-288204
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT COUNT( * ) - - - 82
----
-81

skipif mysql # not compatible
query I rowsort label-4459
SELECT COUNT ( * ) - - - 82
----
-81

query I rowsort
SELECT ALL - + 84 + ( 79 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT 40 * 56 DIV - + ( + 40 )
----
-56

skipif mysql # not compatible
query I rowsort label-4461
SELECT 40 * 56 / - + ( + 40 )
----
-56

query I rowsort
SELECT DISTINCT - 95 * + - 46 + 24 AS col2
----
4394

query I rowsort
SELECT DISTINCT - 84 - 72
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4464
SELECT COUNT( ALL - + 2 ) + 10 + + 2 * + + 15, 13 AS col0
----
41
13

skipif mysql # not compatible
query II rowsort label-4464
SELECT COUNT ( ALL - + 2 ) + 10 + + 2 * + + 15, 13 AS col0
----
41
13

query I rowsort
SELECT DISTINCT 36 * - + 40
----
-1440

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT DISTINCT - NULLIF ( - 11, COUNT( * ) ), - 49 AS col0
----
11
-49

skipif mysql # not compatible
query II rowsort label-4466
SELECT DISTINCT - NULLIF ( - 11, COUNT ( * ) ), - 49 AS col0
----
11
-49

query I rowsort
SELECT - COALESCE ( - - 46, - ( - - 83 ) ) AS col2
----
-46

query I rowsort
SELECT ( + 30 ) + 31
----
61

query I rowsort
SELECT ALL 21 * + 78
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT - SUM( ALL - - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4470
SELECT - SUM ( ALL - - 99 ) AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT - 78 DIV - 25 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4471
SELECT - 78 / - 25 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT + ( - COUNT( + ( - 69 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4472
SELECT + ( - COUNT ( + ( - 69 ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT + CAST( NULL AS SIGNED ) * 20 + - 59 * + 22 + + ( + + 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT + CAST ( NULL AS INTEGER ) * 20 + - 59 * + 22 + + ( + + 38 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT - - CAST( - ( - 60 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-4474
SELECT - - CAST ( - ( - 60 ) AS INTEGER )
----
60

query II rowsort
SELECT + 83 * + - 44 + - 45 - - ( - + 14 ), 18 + + 84 AS col1
----
-3711
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT 66 DIV 19
----
3

skipif mysql # not compatible
query I rowsort label-4476
SELECT 66 / 19
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT 2 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-4477
SELECT 2 / 62
----
0

query I rowsort
SELECT ALL - 17 + - ( 13 ) * 40 AS col1
----
-537

query I rowsort
SELECT 11 * 16 * + 87 AS col2
----
15312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT CAST( - + 64 AS SIGNED ) + - - 74 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4480
SELECT CAST ( - + 64 AS INTEGER ) + - - 74 AS col2
----
10

query I rowsort
SELECT ALL + 45 * - ( 18 ) col2
----
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT DISTINCT 53 + + 68 + CAST( NULL AS SIGNED ) * + - COUNT( DISTINCT 37 ) + + + SUM( ALL - - 70 ) + 12 * - + ( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT DISTINCT 53 + + 68 + CAST ( NULL AS INTEGER ) * + - COUNT ( DISTINCT 37 ) + + + SUM ( ALL - - 70 ) + 12 * - + ( 79 )
----
NULL

query I rowsort
SELECT ALL 12 + - - 69
----
81

query II rowsort
SELECT DISTINCT 71 + - + 92 + ( 70 ) AS col1, + 0
----
49
0

query I rowsort
SELECT 7 - - + 74 AS col0
----
81

query I rowsort
SELECT ALL + 45 * + + 75
----
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT SUM( DISTINCT + 26 ) + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4487
SELECT SUM ( DISTINCT + 26 ) + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT 17 + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4488
SELECT 17 + + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT 97 + COUNT( * ) + - + ( - 5 ) + - 1 * + 55 + + 43
----
91

skipif mysql # not compatible
query I rowsort label-4489
SELECT 97 + COUNT ( * ) + - + ( - 5 ) + - 1 * + 55 + + 43
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT 41 AS col2, + COUNT( * )
----
41
1

skipif mysql # not compatible
query II rowsort label-4490
SELECT 41 AS col2, + COUNT ( * )
----
41
1

query I rowsort
SELECT ALL + 55 + - 50
----
5

query I rowsort
SELECT 7 + 7
----
14

query II rowsort
SELECT ALL 55 AS col1, - 4 AS col2
----
55
-4

query I rowsort
SELECT ALL - 83 * 46 AS col2
----
-3818

query I rowsort
SELECT ALL - ( - 99 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT ALL COUNT( * ) * - + 24 * + + CAST( + + 46 AS SIGNED ) - + - 61
----
-1043

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL COUNT ( * ) * - + 24 * + + CAST ( + + 46 AS INTEGER ) - + - 61
----
-1043

query I rowsort
SELECT 55 + - 28
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT ALL - 55 * + CASE + 27 WHEN + CAST( - COUNT( * ) AS SIGNED ) * - + 62 * + COUNT( * ) THEN 91 * 42 WHEN + - 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - 55 * + CASE + 27 WHEN + CAST ( - COUNT ( * ) AS INTEGER ) * - + 62 * + COUNT ( * ) THEN 91 * 42 WHEN + - 30 THEN NULL END
----
NULL

query I rowsort
SELECT + + 57 col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT + + CAST( - - 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-4500
SELECT + + CAST ( - - 63 AS INTEGER )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - COUNT( 25 ) * - 15 - - 70 - + 22 + + COALESCE ( + MIN( ALL + 21 ), - COUNT( ALL + - 22 ) * + 3 + 8 ) * - + 32 * 73 * - COUNT( * )
----
49119

skipif mysql # not compatible
query I rowsort label-4501
SELECT - COUNT ( 25 ) * - 15 - - 70 - + 22 + + COALESCE ( + MIN ( ALL + 21 ), - COUNT ( ALL + - 22 ) * + 3 + 8 ) * - + 32 * 73 * - COUNT ( * )
----
49119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4502
SELECT ALL - + 43, CAST( NULL AS SIGNED ) AS col0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-4502
SELECT ALL - + 43, CAST ( NULL AS INTEGER ) AS col0
----
-43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT 8 AS col0, + 68 + + + MAX( ALL 37 ) AS col2
----
8
105

skipif mysql # not compatible
query II rowsort label-4503
SELECT 8 AS col0, + 68 + + + MAX ( ALL 37 ) AS col2
----
8
105

query I rowsort
SELECT 11 + - 15
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4505
SELECT ALL 65 DIV + COALESCE ( COALESCE ( + COUNT( * ), + ( 54 ), 15, 31 * + + COUNT( * ) * - COALESCE ( CAST( + + 66 AS SIGNED ), COUNT( * ) ) * + 17 ), 95 * - 89 * + 22 * - - COUNT( 6 ) * - COUNT( * ) + - + 43 - - CAST( NULL AS SIGNED ) * COUNT( * ) ) + + 18 * + - ( + 11 ) * + 49 + 19 + - CAST( + 37 AS SIGNED ) * + 49 * - 11 * - + MAX( DISTINCT - 27 ) * - + COUNT( * ) - - + 79, - 70 - - 96 + + ( + COUNT( * ) ) * COUNT( * ) AS col1
----
-548000
27

skipif mysql # not compatible
query II rowsort label-4505
SELECT ALL 65 / + COALESCE ( COALESCE ( + COUNT ( * ), + ( 54 ), 15, 31 * + + COUNT ( * ) * - COALESCE ( CAST ( + + 66 AS INTEGER ), COUNT ( * ) ) * + 17 ), 95 * - 89 * + 22 * - - COUNT ( 6 ) * - COUNT ( * ) + - + 43 - - CAST ( NULL AS INTEGER ) * COUNT ( * ) ) + + 18 * + - ( + 11 ) * + 49 + 19 + - CAST ( + 37 AS INTEGER ) * + 49 * - 11 * - + MAX ( DISTINCT - 27 ) * - + COUNT ( * ) - - + 79, - 70 - - 96 + + ( + COUNT ( * ) ) * COUNT ( * ) AS col1
----
-548000
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT ALL - NULLIF ( CAST( NULL AS SIGNED ), 53 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), 53 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT DISTINCT - 12 DIV + 63 * + 25
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - 12 / + 63 * + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + 90 * + COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + 90 * + COUNT ( * ) col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + MIN( DISTINCT - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-4509
SELECT + MIN ( DISTINCT - 75 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT ALL + SUM( CASE + - 15 WHEN 9 * + - 39 / + 8 THEN - 44 / - NULLIF ( + 33, - - 45 / - 54 ) ELSE - CAST( NULL AS SIGNED ) + - 97 + 88 END ) / + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL + SUM ( CASE + - 15 WHEN 9 * + - 39 / + 8 THEN - 44 / - NULLIF ( + 33, - - 45 / - 54 ) ELSE - CAST ( NULL AS INTEGER ) + - 97 + 88 END ) / + + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT + + COUNT( * ) * - 19 + 25 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4511
SELECT + + COUNT ( * ) * - 19 + 25 AS col0
----
6

query I rowsort
SELECT - ( + - 54 ) AS col2
----
54

query I rowsort
SELECT - 85 + - 18 * + 43 AS col2
----
-859

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL COUNT( DISTINCT - + 63 ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL COUNT ( DISTINCT - + 63 ) + - 97
----
-96

query I rowsort
SELECT ALL - + ( - 88 ) AS col0
----
88

query I rowsort
SELECT + - 94 * 61 + ( - - 28 ) + + 19 + - ( + - 91 ) AS col0
----
-5596

query I rowsort
SELECT + 30 * - + 47 AS col2
----
-1410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT ALL 36 + - CAST( + 53 AS SIGNED ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL 36 + - CAST ( + 53 AS INTEGER ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT 59 + SUM( + 90 ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT 59 + SUM ( + 90 ) AS col1
----
149

query I rowsort
SELECT DISTINCT 71 + - 74
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT - NULLIF ( + COUNT( * ), COUNT( * ) * - 11 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4521
SELECT - NULLIF ( + COUNT ( * ), COUNT ( * ) * - 11 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4522
SELECT ALL - ( + + CAST( + 85 AS DECIMAL ) ) + + 38 + + ( - CAST( NULL AS SIGNED ) ) + - 49 * - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL - ( + + CAST ( + 85 AS REAL ) ) + + 38 + + ( - CAST ( NULL AS INTEGER ) ) + - 49 * - 68
----
NULL

query I rowsort
SELECT DISTINCT 23 + - 79 col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - 53 + + SUM( 5 )
----
-48

skipif mysql # not compatible
query I rowsort label-4524
SELECT - 53 + + SUM ( 5 )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4525
SELECT + MIN( + - 62 ) * - + COUNT( * ) - + MIN( DISTINCT - 87 ) * COUNT( DISTINCT - 56 ), 4 * 14 AS col2
----
149
56

skipif mysql # not compatible
query II rowsort label-4525
SELECT + MIN ( + - 62 ) * - + COUNT ( * ) - + MIN ( DISTINCT - 87 ) * COUNT ( DISTINCT - 56 ), 4 * 14 AS col2
----
149
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - CASE MIN( + 26 ) WHEN - + COUNT( ALL - + 15 ) THEN + 33 + - - 28 + + 32 WHEN + - 67 + - ( + ( + 52 ) ) + + + COUNT( * ) * + 21 THEN NULL WHEN + + 32 * - 53 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT - CASE MIN ( + 26 ) WHEN - + COUNT ( ALL - + 15 ) THEN + 33 + - - 28 + + 32 WHEN + - 67 + - ( + ( + 52 ) ) + + + COUNT ( * ) * + 21 THEN NULL WHEN + + 32 * - 53 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT - CASE 30 WHEN - COUNT( * ) + 48 * + - 11 THEN ( + ( 41 ) ) * - - 71 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT - CASE 30 WHEN - COUNT ( * ) + 48 * + - 11 THEN ( + ( 41 ) ) * - - 71 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - COUNT( * ) + + + 36 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4528
SELECT - COUNT ( * ) + + + 36 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL SUM( ALL - + 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL SUM ( ALL - + 51 ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL 22 - + 0 - - + 4 * + ( + COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL 22 - + 0 - - + 4 * + ( + COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT + 34 * ( - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4531
SELECT + 34 * ( - COUNT ( * ) )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT DISTINCT COUNT( + 72 ), 96 + + - 86 + MAX( DISTINCT - 87 ) * 5 AS col0
----
1
-425

skipif mysql # not compatible
query II rowsort label-4532
SELECT DISTINCT COUNT ( + 72 ), 96 + + - 86 + MAX ( DISTINCT - 87 ) * 5 AS col0
----
1
-425

onlyif mysql # aggregate syntax: 
query II rowsort label-4533
SELECT ALL 16 * + 63, COUNT( * ) + + + 63 AS col0
----
1008
64

skipif mysql # not compatible
query II rowsort label-4533
SELECT ALL 16 * + 63, COUNT ( * ) + + + 63 AS col0
----
1008
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL SUM( DISTINCT - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL SUM ( DISTINCT - 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL 51 * + CASE - + 43 WHEN + 77 THEN + COUNT( + - 17 ) WHEN 26 * 33 THEN + - 79 ELSE + - ( + + 81 ) * + 3 END
----
-12393

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL 51 * + CASE - + 43 WHEN + 77 THEN + COUNT ( + - 17 ) WHEN 26 * 33 THEN + - 79 ELSE + - ( + + 81 ) * + 3 END
----
-12393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4536
SELECT DISTINCT + + ( + COUNT( * ) ) AS col0, - CAST( NULL AS SIGNED ) / + 97 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4536
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col0, - CAST ( NULL AS INTEGER ) / + 97 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT CASE 28 WHEN + + COUNT( * ) + - 3 * + 76 THEN - - 50 * + 79 - 26 ELSE NULL END / + 66 - - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT CASE 28 WHEN + + COUNT ( * ) + - 3 * + 76 THEN - - 50 * + 79 - 26 ELSE NULL END / + 66 - - 94 AS col1
----
NULL

query I rowsort
SELECT - + 38 * + 63 + + NULLIF ( - 76, 1 ) AS col1
----
-2470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT - CAST( NULL AS SIGNED ) + + + AVG ( + 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT - CAST ( NULL AS INTEGER ) + + + AVG ( + 43 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4540
SELECT ALL + COALESCE ( COUNT( * ), + + COUNT( * ) - 45 + 5 + + 9 DIV CAST( + - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + COALESCE ( COUNT ( * ), + + COUNT ( * ) - 45 + 5 + + 9 / CAST ( + - COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT - COALESCE ( 55, - COALESCE ( + 97, + 54 * - 94 ), COUNT( * ) ) * + 39 AS col1
----
-2145

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT - COALESCE ( 55, - COALESCE ( + 97, + 54 * - 94 ), COUNT ( * ) ) * + 39 AS col1
----
-2145

query I rowsort
SELECT 5 * + 80 + 87 + - - 64
----
551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4543
SELECT - + 88 DIV - COUNT( * ) * COUNT( * ) + + + 13 + - MIN( DISTINCT - 0 ) - 21 - + 17 - CASE - + 51 WHEN - 46 THEN NULL ELSE - 39 + + 77 * - - 7 END * + 77, COUNT( * ) AS col2
----
-38437
1

skipif mysql # not compatible
query II rowsort label-4543
SELECT - + 88 / - COUNT ( * ) * COUNT ( * ) + + + 13 + - MIN ( DISTINCT - 0 ) - 21 - + 17 - CASE - + 51 WHEN - 46 THEN NULL ELSE - 39 + + 77 * - - 7 END * + 77, COUNT ( * ) AS col2
----
-38437
1

query I rowsort
SELECT ALL - - 12 * + 8
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT DISTINCT - COUNT( * ) * - 73 * - 64 + 75 * 54 + 48 AS col2
----
-574

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - COUNT ( * ) * - 73 * - 64 + 75 * 54 + 48 AS col2
----
-574

query I rowsort
SELECT - + 44 + + 65 * + 9 - 28
----
513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT - 69 * + 43 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT - 69 * + 43 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 12 * - 28 + + 27 col1
----
-309

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT + 53 * - 10 * + COUNT( * ) + - - 24 AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-4549
SELECT + 53 * - 10 * + COUNT ( * ) + - - 24 AS col0
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT 82 * 8 - + COUNT( * ) * ( - + 21 ) * + COUNT( * ) + 90 col1
----
767

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT 82 * 8 - + COUNT ( * ) * ( - + 21 ) * + COUNT ( * ) + 90 col1
----
767

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - COUNT( * ) + + + 22 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4551
SELECT - COUNT ( * ) + + + 22 AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT ALL - 99 * COUNT( * ) + + 86 * 46 DIV + - 21
----
-287

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL - 99 * COUNT ( * ) + + 86 * 46 / + - 21
----
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT SUM( - 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4553
SELECT SUM ( - 86 ) AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT ALL + COUNT( 29 ) / - 27 / + ( - - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + COUNT ( 29 ) / - 27 / + ( - - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4555
SELECT + 0 DIV 98 DIV + 33 DIV + COALESCE ( + COUNT( * ), - + COUNT( * ) + + CAST( NULL AS SIGNED ) - + 92 - + ( 17 ) * - - 67 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT + 0 / 98 / + 33 / + COALESCE ( + COUNT ( * ), - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + 92 - + ( 17 ) * - - 67 ) AS col2
----
0

query I rowsort
SELECT ( - 9 ) * - 63 + + + 29
----
596

query I rowsort
SELECT + 77 * - 22 AS col0
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT MAX( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4558
SELECT MAX ( 17 )
----
17

query I rowsort
SELECT + 41 + + 87 * 66
----
5783

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT COUNT( DISTINCT + - 27 ) * + 70
----
70

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT COUNT ( DISTINCT + - 27 ) * + 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL COALESCE ( + 1, + + MAX( - + ( - 64 ) ) * + NULLIF ( - 32, + 7 / COUNT( * ) * - + 14 * 57 ), + + 22 * + 32 ) - 25 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL COALESCE ( + 1, + + MAX ( - + ( - 64 ) ) * + NULLIF ( - 32, + 7 / COUNT ( * ) * - + 14 * 57 ), + + 22 * + 32 ) - 25 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT COUNT( * ) * - 46 * 1
----
-46

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT COUNT ( * ) * - 46 * 1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT - CASE COUNT( ALL - 82 ) WHEN - COUNT( * ) / - + 62 THEN NULL WHEN + 81 THEN + 45 - - 98 + - 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT - CASE COUNT ( ALL - 82 ) WHEN - COUNT ( * ) / - + 62 THEN NULL WHEN + 81 THEN + 45 - - 98 + - 60 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT + COUNT( 91 ) + + - COUNT( - - 21 )
----
0

skipif mysql # not compatible
query I rowsort label-4564
SELECT + COUNT ( 91 ) + + - COUNT ( - - 21 )
----
0

query I rowsort
SELECT + 75 * NULLIF ( 3, 42 ) AS col1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT + 39 + NULLIF ( - ( + 13 ), - + COUNT( * ) ) col1
----
26

skipif mysql # not compatible
query I rowsort label-4566
SELECT + 39 + NULLIF ( - ( + 13 ), - + COUNT ( * ) ) col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT - COALESCE ( - 82, - - 48 * + 55 * - + 96 + COUNT( * ) + - 72 * + - COUNT( * ) + - - 54 + - COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-4567
SELECT - COALESCE ( - 82, - - 48 * + 55 * - + 96 + COUNT ( * ) + - 72 * + - COUNT ( * ) + - - 54 + - COUNT ( * ) )
----
82

query I rowsort
SELECT ALL - 72 * + 68
----
-4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4569
SELECT DISTINCT SUM( - 53 ) DIV - - 11 AS col1, ( + 97 )
----
-4
97

skipif mysql # not compatible
query II rowsort label-4569
SELECT DISTINCT SUM ( - 53 ) / - - 11 AS col1, ( + 97 )
----
-4
97

query I rowsort
SELECT DISTINCT + 45 * 33 + ( + - 63 )
----
1422

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT + 6 DIV - + 39 + - SUM( 36 ) - + COUNT( * ) * + 99 + + ( + 52 ) + + 42 + - 0 col1
----
-41

skipif mysql # not compatible
query I rowsort label-4571
SELECT + 6 / - + 39 + - SUM ( 36 ) - + COUNT ( * ) * + 99 + + ( + 52 ) + + 42 + - 0 col1
----
-41

query II rowsort
SELECT ALL + - 48, 53 col1
----
-48
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4573
SELECT ALL NULLIF ( + 66, - 89 + - MIN( - - COALESCE ( - - CAST( 53 AS SIGNED ), 55 ) ) + - 49 DIV + 86 - + 29 * - COUNT( * ) ) DIV COALESCE ( - COUNT( * ), 59 * + + 21 ) + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL NULLIF ( + 66, - 89 + - MIN ( - - COALESCE ( - - CAST ( 53 AS INTEGER ), 55 ) ) + - 49 / + 86 - + 29 * - COUNT ( * ) ) / COALESCE ( - COUNT ( * ), 59 * + + 21 ) + - COUNT ( * )
----
-67

query I rowsort
SELECT - ( 16 ) + + 24
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT + 75 * - + MAX( - 81 ) * 47 AS col1
----
285525

skipif mysql # not compatible
query I rowsort label-4575
SELECT + 75 * - + MAX ( - 81 ) * 47 AS col1
----
285525

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + COUNT( * ) * - 46 * - 36 + + + 32
----
1688

skipif mysql # not compatible
query I rowsort label-4576
SELECT + COUNT ( * ) * - 46 * - 36 + + + 32
----
1688

onlyif mysql # aggregate syntax: 
query II rowsort label-4577
SELECT + + 20 col1, - NULLIF ( + - 2, COUNT( * ) )
----
20
2

skipif mysql # not compatible
query II rowsort label-4577
SELECT + + 20 col1, - NULLIF ( + - 2, COUNT ( * ) )
----
20
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4578
SELECT + COALESCE ( COUNT( * ), + - CAST( 45 AS SIGNED ) ) * + - 89 + - 38 AS col2, + 60 + + 8
----
-127
68

skipif mysql # not compatible
query II rowsort label-4578
SELECT + COALESCE ( COUNT ( * ), + - CAST ( 45 AS INTEGER ) ) * + - 89 + - 38 AS col2, + 60 + + 8
----
-127
68

query I rowsort
SELECT ALL - - 10 + 86
----
96

query I rowsort
SELECT ALL + 71 + 66 * - 14 AS col0
----
-853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT CAST( NULL AS SIGNED ) + 61 / + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT CAST ( NULL AS INTEGER ) + 61 / + - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT + 32 AS col0, 48
----
32
48

query I rowsort
SELECT ALL + + 84 + + 64
----
148

query I rowsort
SELECT DISTINCT + 4 + - - 54 AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT 11 * - + CAST( NULL AS SIGNED ) * - 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT 11 * - + CAST ( NULL AS INTEGER ) * - 71 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL + 69 - + MIN( DISTINCT + 88 )
----
-19

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + 69 - + MIN ( DISTINCT + 88 )
----
-19

query I rowsort
SELECT 1 * 40 * + 81 AS col2
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT COUNT( * ) * + 75 * 84
----
6300

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( * ) * + 75 * 84
----
6300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT COUNT( * ) DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT COUNT ( * ) / - 83 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT DISTINCT - 42 DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT - 42 / + 85 AS col1
----
0

query I rowsort
SELECT 16 * + - 93
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL - ( - - NULLIF ( 53, + COUNT( * ) + + NULLIF ( - 44, - 68 ) + + 79 * + + 80 ) ) * - - 67
----
-3551

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - ( - - NULLIF ( 53, + COUNT ( * ) + + NULLIF ( - 44, - 68 ) + + 79 * + + 80 ) ) * - - 67
----
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT 30 + + 18 + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4593
SELECT 30 + + 18 + COUNT ( * )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4594
SELECT ALL + 43 * + + 70, - ( - AVG ( - + 78 ) ) * CASE - - 50 WHEN - 19 THEN - CAST( NULL AS SIGNED ) * 74 + + 24 WHEN + 46 THEN NULL ELSE NULL END + 62 * 39 AS col1
----
3010
NULL

skipif mysql # not compatible
query II rowsort label-4594
SELECT ALL + 43 * + + 70, - ( - AVG ( - + 78 ) ) * CASE - - 50 WHEN - 19 THEN - CAST ( NULL AS INTEGER ) * 74 + + 24 WHEN + 46 THEN NULL ELSE NULL END + 62 * 39 AS col1
----
3010
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL + COUNT( * ) * 40 + + 30 + - + 1 + + 81 AS col0
----
150

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL + COUNT ( * ) * 40 + + 30 + - + 1 + + 81 AS col0
----
150

query I rowsort
SELECT DISTINCT + 16 + + 30 + 84 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL COALESCE ( - + 29, - ( - COUNT( * ) ) ) + 37
----
8

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL COALESCE ( - + 29, - ( - COUNT ( * ) ) ) + 37
----
8

query I rowsort
SELECT - 6 * + 93
----
-558

query I rowsort
SELECT ALL 76 + + - 81 * 57
----
-4541

query I rowsort
SELECT 58 + + - 73
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + CASE + + 89 WHEN 9 THEN - 57 WHEN + - NULLIF ( + + COALESCE ( - 82, - 81 + + 71 / 10 ), MAX( + 81 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT + CASE + + 89 WHEN 9 THEN - 57 WHEN + - NULLIF ( + + COALESCE ( - 82, - 81 + + 71 / 10 ), MAX ( + 81 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL + CASE - 17 WHEN - NULLIF ( 65, + ( - 99 ) ) THEN - - COALESCE ( + 21, + 15 + - + 22, + 16 ) END + COUNT( - 9 ) / - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL + CASE - 17 WHEN - NULLIF ( 65, + ( - 99 ) ) THEN - - COALESCE ( + 21, + 15 + - + 22, + 16 ) END + COUNT ( - 9 ) / - 59
----
NULL

query II rowsort
SELECT 48 * 10 AS col1, - 67 AS col1
----
480
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4604
SELECT + 81 * 48 AS col2, + COUNT( * )
----
3888
1

skipif mysql # not compatible
query II rowsort label-4604
SELECT + 81 * 48 AS col2, + COUNT ( * )
----
3888
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4605
SELECT ALL 21 DIV + 81 + - ( 13 ) DIV - SUM( - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL 21 / + 81 + - ( 13 ) / - SUM ( - 39 )
----
0

query II rowsort
SELECT ALL + 42 + + - 68 + - 19 * + + 73 AS col2, 88 col2
----
-1413
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4607
SELECT CAST( NULL AS DECIMAL ) / 94 - + 4 * + 82 * + 80 + + COALESCE ( - + 26, - - ( - 54 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4607
SELECT CAST ( NULL AS REAL ) / 94 - + 4 * + 82 * + 80 + + COALESCE ( - + 26, - - ( - 54 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL 48 * + COUNT( * ) - - 18
----
66

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 48 * + COUNT ( * ) - - 18
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT ALL 87 * 66 AS col0, COUNT( * ) AS col0
----
5742
1

skipif mysql # not compatible
query II rowsort label-4609
SELECT ALL 87 * 66 AS col0, COUNT ( * ) AS col0
----
5742
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT ALL + COUNT( DISTINCT + 75 ) + - 56 * - ( - COUNT( * ) ) + 12 DIV - + 68 * - 78 * 5 * + COALESCE ( + 62, - - 96 ) DIV 59
----
-55

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL + COUNT ( DISTINCT + 75 ) + - 56 * - ( - COUNT ( * ) ) + 12 / - + 68 * - 78 * 5 * + COALESCE ( + 62, - - 96 ) / 59
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4611
SELECT NULLIF ( + + 61, - - 71 + + + ( 4 ) + - COUNT( * ) * - 59 ) AS col0, - 16
----
61
-16

skipif mysql # not compatible
query II rowsort label-4611
SELECT NULLIF ( + + 61, - - 71 + + + ( 4 ) + - COUNT ( * ) * - 59 ) AS col0, - 16
----
61
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4612
SELECT DISTINCT + 48 - - CASE - CASE 86 WHEN + + 12 THEN NULL WHEN + 32 * + + 35 THEN NULL WHEN MAX( ALL + + 89 ) + - + 96 + + - COUNT( * ) + + - 83 - + - 83 + + 79 THEN - + 90 + 52 / COUNT( * ) + + 97 ELSE NULL END WHEN - - 69 * CAST( + 88 AS SIGNED ) / 91 / ( - 97 ) / + 86 + - 61 * + 1 + + CAST( NULL AS DECIMAL ) * + MIN( + 95 ) + MIN( DISTINCT + 14 ) + - 54 THEN + 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + 48 - - CASE - CASE 86 WHEN + + 12 THEN NULL WHEN + 32 * + + 35 THEN NULL WHEN MAX ( ALL + + 89 ) + - + 96 + + - COUNT ( * ) + + - 83 - + - 83 + + 79 THEN - + 90 + 52 / COUNT ( * ) + + 97 ELSE NULL END WHEN - - 69 * CAST ( + 88 AS INTEGER ) / 91 / ( - 97 ) / + 86 + - 61 * + 1 + + CAST ( NULL AS REAL ) * + MIN ( + 95 ) + MIN ( DISTINCT + 14 ) + - 54 THEN + 0 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4613
SELECT + 17, + COUNT( * ) + + 1 * COUNT( * ) AS col1
----
17
2

skipif mysql # not compatible
query II rowsort label-4613
SELECT + 17, + COUNT ( * ) + + 1 * COUNT ( * ) AS col1
----
17
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT 83 - COUNT( * ) + + 28 + + - 18 + - + 19 * + 41
----
-687

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT 83 - COUNT ( * ) + + 28 + + - 18 + - + 19 * + 41
----
-687

query I rowsort
SELECT DISTINCT - ( + - ( - 30 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT - MIN( DISTINCT + - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - MIN ( DISTINCT + - 6 ) AS col1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4617
SELECT ALL + 37 * + 29 / - + CAST( NULL AS DECIMAL ) AS col1, - 55 AS col0
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-4617
SELECT ALL + 37 * + 29 / - + CAST ( NULL AS REAL ) AS col1, - 55 AS col0
----
NULL
-55

query I rowsort
SELECT 36 * - - 2 * + ( + 4 ) AS col1
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4619
SELECT DISTINCT + CAST( + 22 AS SIGNED ) * + + SUM( ALL 53 ) AS col1
----
1166

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + CAST ( + 22 AS INTEGER ) * + + SUM ( ALL 53 ) AS col1
----
1166

query II rowsort
SELECT - 48 AS col2, 16 col2
----
-48
16

query I rowsort
SELECT ALL - 38 * - 51
----
1938

query I rowsort
SELECT 26 * 50
----
1300

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT 32 + + 43 * COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4623
SELECT 32 + + 43 * COUNT ( * )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4624
SELECT 43 AS col0, ( - CAST( + COUNT( * ) AS SIGNED ) ) AS col0
----
43
-1

skipif mysql # not compatible
query II rowsort label-4624
SELECT 43 AS col0, ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0
----
43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL + 66 + MIN( ALL - 18 ) + - 92
----
-44

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL + 66 + MIN ( ALL - 18 ) + - 92
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4626
SELECT 42 + ( + 13 ) AS col2, - COUNT( * ) AS col1
----
55
-1

skipif mysql # not compatible
query II rowsort label-4626
SELECT 42 + ( + 13 ) AS col2, - COUNT ( * ) AS col1
----
55
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT 51 + ( + + SUM( 12 ) )
----
63

skipif mysql # not compatible
query I rowsort label-4627
SELECT 51 + ( + + SUM ( 12 ) )
----
63

query I rowsort
SELECT DISTINCT 66 col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL CASE - 21 WHEN + 70 THEN - COUNT( * ) * 25 ELSE COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL CASE - 21 WHEN + 70 THEN - COUNT ( * ) * 25 ELSE COUNT ( * ) END AS col1
----
1

query I rowsort
SELECT 61 + 77 AS col2
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT ALL + CAST( 56 AS SIGNED ) + + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + CAST ( 56 AS INTEGER ) + + COUNT ( * ) AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT DISTINCT 50 DIV - 21
----
-2

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT 50 / - 21
----
-2

query I rowsort
SELECT ALL - 3 + 30 AS col1
----
27

query I rowsort
SELECT ALL 68 + 35 * - 63
----
-2137

query I rowsort
SELECT 76 + + 1
----
77

query I rowsort
SELECT 51 * 26
----
1326

query I rowsort
SELECT ALL + 30 + 49 * - COALESCE ( + 89 * 31 + + 7 * 80, + 7 - 36 ) AS col1
----
-162601

query I rowsort
SELECT DISTINCT - 76 * + 62 col2
----
-4712

query I rowsort
SELECT - 38 + 40
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL COUNT( * ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL COUNT ( * ) + 71
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT - ( + 40 ) + + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-4641
SELECT - ( + 40 ) + + COUNT ( * )
----
-39

query I rowsort
SELECT DISTINCT + 13 * 67
----
871

query I rowsort
SELECT CASE 27 WHEN + 3 THEN NULL WHEN - 47 / + 80 THEN NULL ELSE 80 + 71 * - 1 END
----
9

query I rowsort
SELECT ALL 41 * + 51 - 80
----
2011

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL + NULLIF ( COUNT( * ), + COUNT( 34 ) * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL + NULLIF ( COUNT ( * ), + COUNT ( 34 ) * COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 34 * + 5 - 94
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + 60 + 48 * COUNT( * ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-4647
SELECT + 60 + 48 * COUNT ( * ) AS col1
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT COALESCE ( 30, 26 DIV 95 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4648
SELECT COALESCE ( 30, 26 / 95 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT CASE 76 WHEN ( - 80 ) THEN + MIN( DISTINCT 37 ) ELSE 45 END
----
45

skipif mysql # not compatible
query I rowsort label-4649
SELECT CASE 76 WHEN ( - 80 ) THEN + MIN ( DISTINCT 37 ) ELSE 45 END
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT 5 * + 49 + MIN( ALL - 16 ) AS col1
----
229

skipif mysql # not compatible
query I rowsort label-4650
SELECT 5 * + 49 + MIN ( ALL - 16 ) AS col1
----
229

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT ALL - ( - 92 ) * 59 - - COALESCE ( + 52 + 86, 72 ) DIV - 60 AS col2
----
5426

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - ( - 92 ) * 59 - - COALESCE ( + 52 + 86, 72 ) / - 60 AS col2
----
5426

query I rowsort
SELECT - 48 * 52 AS col0
----
-2496

query I rowsort
SELECT + 54 * - 51
----
-2754

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT - 84 DIV 75 + 44
----
43

skipif mysql # not compatible
query I rowsort label-4654
SELECT - 84 / 75 + 44
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT - 46 DIV 47 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4655
SELECT - 46 / 47 + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT + 18 + COUNT( * ) * - 4
----
14

skipif mysql # not compatible
query I rowsort label-4656
SELECT + 18 + COUNT ( * ) * - 4
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + CASE 94 WHEN 81 THEN 91 + + 3 / NULLIF ( 53, - 9 / 55 - 68 ) WHEN ( + COUNT( * ) ) + 65 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT + CASE 94 WHEN 81 THEN 91 + + 3 / NULLIF ( 53, - 9 / 55 - 68 ) WHEN ( + COUNT ( * ) ) + 65 THEN NULL END col1
----
NULL

query I rowsort
SELECT ALL 59 * 80
----
4720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4659
SELECT + 70 DIV + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-4659
SELECT + 70 / + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT ( COALESCE ( 18, 88 ) ) * + MAX( + 77 + 5 ) AS col0
----
1476

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT ( COALESCE ( 18, 88 ) ) * + MAX ( + 77 + 5 ) AS col0
----
1476

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT COUNT( - 41 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4661
SELECT COUNT ( - 41 ) col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4662
SELECT + 34 DIV - COUNT( * ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-4662
SELECT + 34 / - COUNT ( * ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT - COUNT( * ) + + CASE - 49 WHEN - 59 * + 47 THEN NULL WHEN - 28 + 52 * 8 THEN + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT - COUNT ( * ) + + CASE - 49 WHEN - 59 * + 47 THEN NULL WHEN - 28 + 52 * 8 THEN + 50 END
----
NULL

query I rowsort
SELECT ALL - 97 * 58 + - 58
----
-5684

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + NULLIF ( 25, 66 + COUNT( * ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4665
SELECT + NULLIF ( 25, 66 + COUNT ( * ) ) AS col0
----
25

query I rowsort
SELECT - 16 * - 95 AS col0
----
1520

query I rowsort
SELECT - ( - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL - 7 * MAX( DISTINCT 18 * ( 89 * + 51 ) )
----
-571914

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL - 7 * MAX ( DISTINCT 18 * ( 89 * + 51 ) )
----
-571914

query I rowsort
SELECT + 80 * + 61
----
4880

query I rowsort
SELECT ALL 86 + + 78
----
164

query I rowsort
SELECT DISTINCT ( 10 ) + 73
----
83

query I rowsort
SELECT DISTINCT - 94 * 5 AS col2
----
-470

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT ALL + 35 + - 92 DIV + 45 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + 35 + - 92 / + 45 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL - + COUNT( * ) * 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL - + COUNT ( * ) * 18 AS col1
----
-18

query I rowsort
SELECT - ( + 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - MIN( ALL + 26 ) * 46 col1
----
-1196

skipif mysql # not compatible
query I rowsort label-4676
SELECT - MIN ( ALL + 26 ) * 46 col1
----
-1196

query I rowsort
SELECT DISTINCT - 33 * + 98 AS col1
----
-3234

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4678
SELECT - 63 DIV + NULLIF ( + 99, ( + 27 ) + CAST( ( 27 ) AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT - 63 / + NULLIF ( + 99, ( + 27 ) + CAST ( ( 27 ) AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL NULLIF ( + CASE COUNT( * ) WHEN + 40 THEN NULL ELSE 7 + MAX( DISTINCT 93 ) END, - 31 * 99 + 22 )
----
100

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL NULLIF ( + CASE COUNT ( * ) WHEN + 40 THEN NULL ELSE 7 + MAX ( DISTINCT 93 ) END, - 31 * 99 + 22 )
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT - COALESCE ( MIN( + CAST( NULL AS SIGNED ) ), 52, COUNT( DISTINCT + 10 ) * 64 + 51 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-4680
SELECT - COALESCE ( MIN ( + CAST ( NULL AS INTEGER ) ), 52, COUNT ( DISTINCT + 10 ) * 64 + 51 ) col1
----
-52

query I rowsort
SELECT DISTINCT - - 78 * - 91 AS col0
----
-7098

query I rowsort
SELECT - + 59 + 42 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - - 53 * COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4683
SELECT - - 53 * COUNT ( * ) AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4684
SELECT DISTINCT + MAX( - COALESCE ( 21, 73 ) ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT + MAX ( - COALESCE ( 21, 73 ) ) / 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT - 66 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 66 / - 72
----
0

query I rowsort
SELECT DISTINCT + - 86 * + 97 AS col1
----
-8342

query I rowsort
SELECT CASE ( - 12 ) WHEN - 15 - 36 THEN 87 + - 99 ELSE 47 END * + 29 - - 55
----
1418

query I rowsort
SELECT + 49 * - 43
----
-2107

query I rowsort
SELECT ALL + ( - 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT - 42 / - COALESCE ( + 73, + 73 * 23 ) + CAST( NULL AS SIGNED ) * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - 42 / - COALESCE ( + 73, + 73 * 23 ) + CAST ( NULL AS INTEGER ) * + 13 AS col1
----
NULL

query I rowsort
SELECT - 94 * 84 AS col1
----
-7896

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT ALL - 65 * + MIN( + 10 )
----
-650

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL - 65 * + MIN ( + 10 )
----
-650

query I rowsort
SELECT DISTINCT - 56 * + 66 AS col2
----
-3696

query I rowsort
SELECT ( 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT DISTINCT + CAST( + 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + CAST ( + 96 AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT ALL + MIN( + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL + MIN ( + 98 ) AS col0
----
98

query I rowsort
SELECT - 58 * 77 * - 27 col0
----
120582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT + NULLIF ( + - SUM( DISTINCT 4 ), + CAST( 24 AS SIGNED ) ) + + MAX( - 53 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4698
SELECT + NULLIF ( + - SUM ( DISTINCT 4 ), + CAST ( 24 AS INTEGER ) ) + + MAX ( - 53 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ( COALESCE ( COUNT( * ), + ( ( - 82 ) ), + 59 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4699
SELECT ( COALESCE ( COUNT ( * ), + ( ( - 82 ) ), + 59 ) ) col2
----
1

query I rowsort
SELECT + 28 * + 38
----
1064

query I rowsort
SELECT - 41 * 32 + + 99
----
-1213

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT + 59 * + COUNT( 46 ) + - 72
----
-13

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + 59 * + COUNT ( 46 ) + - 72
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL - ( - - COUNT( * ) ) * + 79 + - 63 col1
----
-142

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - ( - - COUNT ( * ) ) * + 79 + - 63 col1
----
-142

query I rowsort
SELECT ALL 75 * + ( - 83 ) * - ( 97 )
----
603825

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL + 26 * COUNT( * ) * 33 + 77 col2
----
935

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + 26 * COUNT ( * ) * 33 + 77 col2
----
935

query I rowsort
SELECT ALL ( - 94 ) * ( + 62 ) + 36 AS col0
----
-5792

query I rowsort
SELECT DISTINCT 4 * - 16
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT COUNT( * ) * COALESCE ( + ( CAST( - 11 AS SIGNED ) ), - COUNT( * ), CAST( + 70 AS SIGNED ) * 73, 92 ) * 48 + ( 28 ) * + MAX( NULLIF ( + 41, + 29 / 77 + - 75 ) ) AS col0
----
620

skipif mysql # not compatible
query I rowsort label-4708
SELECT COUNT ( * ) * COALESCE ( + ( CAST ( - 11 AS INTEGER ) ), - COUNT ( * ), CAST ( + 70 AS INTEGER ) * 73, 92 ) * 48 + ( 28 ) * + MAX ( NULLIF ( + 41, + 29 / 77 + - 75 ) ) AS col0
----
620

query I rowsort
SELECT ALL 40 * 13 + + 11 AS col1
----
531

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL 42 * + - COALESCE ( + SUM( DISTINCT - 14 ), - 41 )
----
588

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL 42 * + - COALESCE ( + SUM ( DISTINCT - 14 ), - 41 )
----
588

query I rowsort
SELECT 64 + - + 79
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT 7 DIV + + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4712
SELECT 7 / + + 23 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4713
SELECT DISTINCT + CAST( - 84 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + CAST ( - 84 AS INTEGER ) AS col0
----
-84

query I rowsort
SELECT ALL - ( - 93 ) + + ( - 91 ) AS col2
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4715
SELECT + 34 + - 55 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT + 34 + - 55 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL SUM( ALL - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL SUM ( ALL - 9 )
----
-9

query I rowsort
SELECT 33 + - - 82 AS col1
----
115

query I rowsort
SELECT 64 * - - 62 AS col1
----
3968

query I rowsort
SELECT 25 * + - 72
----
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT 56 + - 77 DIV 34 col1
----
54

skipif mysql # not compatible
query I rowsort label-4720
SELECT 56 + - 77 / 34 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL 67 * + - NULLIF ( - COUNT( ALL 63 ), ( 43 ) ) + 45
----
112

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL 67 * + - NULLIF ( - COUNT ( ALL 63 ), ( 43 ) ) + 45
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT COUNT( * ) * 64 + - 8 * - COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4722
SELECT COUNT ( * ) * 64 + - 8 * - COUNT ( * ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4723
SELECT DISTINCT - 60 * 42 * COALESCE ( - 27 * - CAST( NULL AS DECIMAL ), + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT - 60 * 42 * COALESCE ( - 27 * - CAST ( NULL AS REAL ), + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 83 * - 10 + + 75
----
-755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT + CAST( NULL AS SIGNED ) / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL ( - CASE + 88 WHEN + CASE 20 WHEN ( ( + 70 ) ) THEN - 63 ELSE - 65 END * - 10 THEN NULLIF ( - 45, - 76 * 44 + + 76 ) * - 8 - - COUNT( * ) END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL ( - CASE + 88 WHEN + CASE 20 WHEN ( ( + 70 ) ) THEN - 63 ELSE - 65 END * - 10 THEN NULLIF ( - 45, - 76 * 44 + + 76 ) * - 8 - - COUNT ( * ) END ) col2
----
NULL

query I rowsort
SELECT DISTINCT - CASE + + 20 WHEN 22 THEN + 38 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL MIN( DISTINCT 88 ) * - 91 * 74 AS col0
----
-592592

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL MIN ( DISTINCT 88 ) * - 91 * 74 AS col0
----
-592592

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT 26 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT 26 / + + 64
----
0

query I rowsort
SELECT DISTINCT + 96 + + ( + 90 )
----
186

onlyif mysql # aggregate syntax: 
query II rowsort label-4731
SELECT ALL - 71 AS col2, - 51 + + COUNT( * ) AS col0
----
-71
-50

skipif mysql # not compatible
query II rowsort label-4731
SELECT ALL - 71 AS col2, - 51 + + COUNT ( * ) AS col0
----
-71
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT CAST( NULL AS SIGNED ) * 4 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT CAST ( NULL AS INTEGER ) * 4 col2
----
NULL

query I rowsort
SELECT 45 + 72
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4734
SELECT 52 DIV - + COUNT( ALL 79 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4734
SELECT 52 / - + COUNT ( ALL 79 ) AS col2
----
-52

query I rowsort
SELECT DISTINCT + ( + + 77 ) + - ( - CASE - 2 WHEN 99 THEN NULL WHEN 56 * + 65 + 12 THEN - ( 22 ) ELSE NULL END )
----
NULL

query I rowsort
SELECT 61 * - 77 AS col0
----
-4697

query I rowsort
SELECT ALL - COALESCE ( + + 35, + 67 ) + 18 * ( 2 * + 60 )
----
2125

query I rowsort
SELECT ALL + 79 + - 65 AS col2
----
14

query I rowsort
SELECT 35 * - 89
----
-3115

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT - CASE + 19 WHEN + COUNT( * ) THEN 53 * + 83 WHEN - 19 THEN NULL ELSE + COUNT( * ) END + + COUNT( * ) * - 26 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - CASE + 19 WHEN + COUNT ( * ) THEN 53 * + 83 WHEN - 19 THEN NULL ELSE + COUNT ( * ) END + + COUNT ( * ) * - 26 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT ALL - 7 * - + NULLIF ( - SUM( DISTINCT - 95 ), NULLIF ( 58, CAST( NULL AS SIGNED ) + MIN( - 90 ) * 53 ) - 44 )
----
665

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - 7 * - + NULLIF ( - SUM ( DISTINCT - 95 ), NULLIF ( 58, CAST ( NULL AS INTEGER ) + MIN ( - 90 ) * 53 ) - 44 )
----
665

query I rowsort
SELECT ALL - 34 + + 70 + - + 81 * + 70
----
-5634

query I rowsort
SELECT ALL + ( - - 70 ) + + 35 + 85 AS col0
----
190

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT + 99 AS col0, + NULLIF ( + 51, - MIN( ALL 0 ) * - 84 + + 58 * + COALESCE ( NULLIF ( - 0, 48 ), + 46 * + 12 - + 30 ) )
----
99
51

skipif mysql # not compatible
query II rowsort label-4744
SELECT + 99 AS col0, + NULLIF ( + 51, - MIN ( ALL 0 ) * - 84 + + 58 * + COALESCE ( NULLIF ( - 0, 48 ), + 46 * + 12 - + 30 ) )
----
99
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4745
SELECT ALL 51 + + 13 + - + 4 DIV 6
----
64

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL 51 + + 13 + - + 4 / 6
----
64

query I rowsort
SELECT ALL + 7 * 96
----
672

query I rowsort
SELECT + 55 * - 30 + + + 66
----
-1584

query I rowsort
SELECT DISTINCT - COALESCE ( + 45, - 57 )
----
-45

query I rowsort
SELECT ALL - 35 - 83 col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT COUNT( * ) + 37 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4750
SELECT COUNT ( * ) + 37 AS col1
----
38

query I rowsort
SELECT ALL - + NULLIF ( + 1, - + NULLIF ( 72, 70 ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT CAST( NULL AS SIGNED ) * ( 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT CAST ( NULL AS INTEGER ) * ( 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT + CASE + + 32 WHEN 32 THEN NULL WHEN - 72 THEN COUNT( * ) + - AVG ( 29 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT + CASE + + 32 WHEN 32 THEN NULL WHEN - 72 THEN COUNT ( * ) + - AVG ( 29 ) END
----
NULL

query I rowsort
SELECT - ( - NULLIF ( + 67, - 76 ) ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL + CASE - - 88 WHEN ( + 69 ) THEN NULL ELSE - COUNT( * ) * - 7 END * - COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL + CASE - - 88 WHEN ( + 69 ) THEN NULL ELSE - COUNT ( * ) * - 7 END * - COUNT ( * ) AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL + - 19 DIV - 64 + + ( + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL + - 19 / - 64 + + ( + 48 )
----
48

query I rowsort
SELECT DISTINCT - 50 * + 21
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT SUM( ALL - + 96 ) * - 81 col2
----
7776

skipif mysql # not compatible
query I rowsort label-4758
SELECT SUM ( ALL - + 96 ) * - 81 col2
----
7776

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4759
SELECT ALL + NULLIF ( + CASE 77 WHEN 37 THEN + 0 - - 76 WHEN + 66 * CAST( NULL AS DECIMAL ) THEN - 67 * + COUNT( 11 * 44 ) ELSE NULL END, NULLIF ( 93, + 66 * 24 + 73 ) * - ( - 46 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + NULLIF ( + CASE 77 WHEN 37 THEN + 0 - - 76 WHEN + 66 * CAST ( NULL AS REAL ) THEN - 67 * + COUNT ( 11 * 44 ) ELSE NULL END, NULLIF ( 93, + 66 * 24 + 73 ) * - ( - 46 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL COUNT( * ) * - 21 col1
----
-21

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL COUNT ( * ) * - 21 col1
----
-21

query II rowsort
SELECT + 1 AS col1, + 59 AS col1
----
1
59

query II rowsort
SELECT - + 25 AS col2, + 22 + + CASE 75 WHEN 2 THEN - 15 * + 2 ELSE 92 * 47 END AS col1
----
-25
4346

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT 12 / COUNT( - - ( + 93 ) ) * ( + CASE 71 WHEN 62 THEN 86 WHEN - 18 THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT 12 / COUNT ( - - ( + 93 ) ) * ( + CASE 71 WHEN 62 THEN 86 WHEN - 18 THEN NULL ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 31 * 59
----
1829

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT + 48 - + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-4765
SELECT + 48 - + + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL CASE - - 85 WHEN + - 13 + + ( - NULLIF ( 57, COUNT( * ) * 55 ) ) THEN - 85 - + 14 END / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL CASE - - 85 WHEN + - 13 + + ( - NULLIF ( 57, COUNT ( * ) * 55 ) ) THEN - 85 - + 14 END / - COUNT ( * )
----
NULL

query I rowsort
SELECT 81 * + 94 AS col0
----
7614

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4768
SELECT DISTINCT CASE - - ( - CAST( NULL AS DECIMAL ) ) WHEN - 47 * 55 THEN NULL WHEN - 66 * - 9 THEN NULL ELSE 0 * - NULLIF ( - 90, ( MIN( DISTINCT 86 ) ) - COUNT( DISTINCT 35 ) ) END
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT CASE - - ( - CAST ( NULL AS REAL ) ) WHEN - 47 * 55 THEN NULL WHEN - 66 * - 9 THEN NULL ELSE 0 * - NULLIF ( - 90, ( MIN ( DISTINCT 86 ) ) - COUNT ( DISTINCT 35 ) ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL + 10 + ( + + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL + 10 + ( + + COUNT ( * ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - MAX( DISTINCT 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4770
SELECT - MAX ( DISTINCT 62 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT COUNT( * ) * - - 82 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4771
SELECT COUNT ( * ) * - - 82 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT 10 + CASE 45 WHEN + 40 * - COUNT( * ) THEN 60 + + CAST( 86 AS SIGNED ) * + COUNT( * ) END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT 10 + CASE 45 WHEN + 40 * - COUNT ( * ) THEN 60 + + CAST ( 86 AS INTEGER ) * + COUNT ( * ) END + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT DISTINCT ( + 84 ) + + NULLIF ( - 26, NULLIF ( - 50, - 21 + + 46 ) * - CAST( 38 AS SIGNED ) ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT ( + 84 ) + + NULLIF ( - 26, NULLIF ( - 50, - 21 + + 46 ) * - CAST ( 38 AS INTEGER ) ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT 55 * NULLIF ( - COUNT( * ), - NULLIF ( - COUNT( * ), - 75 + 61 * 61 ) - 18 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4774
SELECT 55 * NULLIF ( - COUNT ( * ), - NULLIF ( - COUNT ( * ), - 75 + 61 * 61 ) - 18 ) AS col2
----
-55

query I rowsort
SELECT ALL ( + 58 ) + + 84
----
142

query I rowsort
SELECT CASE - 82 WHEN 62 THEN NULL ELSE + CASE 90 WHEN 97 THEN COALESCE ( 56, - 42 * 73 - 73 ) + + 47 * + 20 END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4777
SELECT COALESCE ( - + 7, + ( CAST( + NULLIF ( + 23, 63 + + 69 ) AS SIGNED ) ), + SUM( - NULLIF ( + 95, - 73 ) ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4777
SELECT COALESCE ( - + 7, + ( CAST ( + NULLIF ( + 23, 63 + + 69 ) AS INTEGER ) ), + SUM ( - NULLIF ( + 95, - 73 ) ) ) AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT NULLIF ( SUM( ALL - - 91 ), - CASE 85 WHEN 68 + 11 THEN - 44 + + CAST( NULL AS SIGNED ) WHEN + ( + 28 ) THEN NULL END * - 24 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4778
SELECT NULLIF ( SUM ( ALL - - 91 ), - CASE 85 WHEN 68 + 11 THEN - 44 + + CAST ( NULL AS INTEGER ) WHEN + ( + 28 ) THEN NULL END * - 24 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL 77 * + + 27 * COUNT( * ) + - + NULLIF ( 98, + 51 * 68 ) * + 77
----
-5467

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL 77 * + + 27 * COUNT ( * ) + - + NULLIF ( 98, + 51 * 68 ) * + 77
----
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-4780
SELECT 11 DIV + - ( + 56 ) * - + 78 + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4780
SELECT 11 / + - ( + 56 ) * - + 78 + 16 AS col2
----
16

query I rowsort
SELECT DISTINCT ( - - 91 ) * - 66 + + - 74 * ( - 14 * - 16 )
----
-22582

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL - COALESCE ( + CASE - COUNT( - 20 ) WHEN - 15 * 44 THEN NULL WHEN - 23 + - 10 / SUM( DISTINCT + 38 ) THEN COUNT( * ) END, ( 17 ) * + 89, + 46 + 6 * + COUNT( * ) ) AS col1
----
-1513

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - COALESCE ( + CASE - COUNT ( - 20 ) WHEN - 15 * 44 THEN NULL WHEN - 23 + - 10 / SUM ( DISTINCT + 38 ) THEN COUNT ( * ) END, ( 17 ) * + 89, + 46 + 6 * + COUNT ( * ) ) AS col1
----
-1513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT 54 + - CAST( NULL AS SIGNED ) * + MIN( + + 78 ) + MAX( + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT 54 + - CAST ( NULL AS INTEGER ) * + MIN ( + + 78 ) + MAX ( + 46 )
----
NULL

query I rowsort
SELECT ALL + 5 * 86 * 3 + - - ( ( + 2 ) )
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL 64 * COUNT( * ) * - + 45 + - 27
----
-2907

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL 64 * COUNT ( * ) * - + 45 + - 27
----
-2907

query I rowsort
SELECT 70 * - 82
----
-5740

query I rowsort
SELECT ALL - COALESCE ( 19, - - 17 ) col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4788
SELECT MIN( ALL CAST( NULL AS SIGNED ) ), 35 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-4788
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ), 35 AS col2
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - 22 * COUNT( * ) * ( - COUNT( * ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4789
SELECT - 22 * COUNT ( * ) * ( - COUNT ( * ) ) AS col0
----
22

query I rowsort
SELECT - 27 * + - 28 * + + 44
----
33264

query I rowsort
SELECT - 39 - 95
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL + COUNT( DISTINCT - 22 )
----
1

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL + COUNT ( DISTINCT - 22 )
----
1

query I rowsort
SELECT DISTINCT + 54 * - 31 AS col2
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT ALL + SUM( DISTINCT + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL + SUM ( DISTINCT + 81 ) AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT DISTINCT + ( - CAST( + - 10 AS SIGNED ) )
----
10

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT + ( - CAST ( + - 10 AS INTEGER ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - - 16 - - COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4796
SELECT - - 16 - - COUNT ( * ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - + ( COUNT( ALL - 14 ) ) - 40 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4797
SELECT - + ( COUNT ( ALL - 14 ) ) - 40 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4798
SELECT - - 71 + + CASE 94 WHEN + + COUNT( * ) THEN - 89 WHEN - 56 * + 80 - COUNT( * ) * - 4 THEN + COUNT( * ) DIV - 44 ELSE MAX( DISTINCT 89 ) END AS col0
----
160

skipif mysql # not compatible
query I rowsort label-4798
SELECT - - 71 + + CASE 94 WHEN + + COUNT ( * ) THEN - 89 WHEN - 56 * + 80 - COUNT ( * ) * - 4 THEN + COUNT ( * ) / - 44 ELSE MAX ( DISTINCT 89 ) END AS col0
----
160

query I rowsort
SELECT + 83 * 53 + - - 61 AS col2
----
4460

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - MIN( + - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4800
SELECT - MIN ( + - 63 ) AS col2
----
63

query I rowsort
SELECT - ( - 71 ) + 51
----
122

query I rowsort
SELECT ALL 76 + + + 22
----
98

query II rowsort
SELECT - 46 + + + 79 AS col0, 58 + - - 78 - + 54
----
33
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT DISTINCT - 67 DIV 86 * - 1 DIV + 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT - 67 / 86 * - 1 / + 13 AS col0
----
0

query I rowsort
SELECT DISTINCT NULLIF ( - 78, + 18 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + + COUNT( * ) + - + 56 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-4806
SELECT + + COUNT ( * ) + - + 56 AS col0
----
-55

query I rowsort
SELECT ALL + 75 + + 55
----
130

query I rowsort
SELECT DISTINCT 95 + - 18 AS col2
----
77

query I rowsort
SELECT + 24 + - - 57 AS col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT ALL 30 + + 16 DIV + 77
----
30

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL 30 + + 16 / + 77
----
30

query I rowsort
SELECT - 35 * - 68
----
2380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4812
SELECT - COALESCE ( 40, + + 58 * - - CAST( + + 29 AS SIGNED ) * 15 )
----
-40

skipif mysql # not compatible
query I rowsort label-4812
SELECT - COALESCE ( 40, + + 58 * - - CAST ( + + 29 AS INTEGER ) * 15 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + COALESCE ( - 4, - COUNT( - 84 ) + - + ( 75 ) + 27 * 57 * ( - 60 ) ) + 74
----
70

skipif mysql # not compatible
query I rowsort label-4813
SELECT + COALESCE ( - 4, - COUNT ( - 84 ) + - + ( 75 ) + 27 * 57 * ( - 60 ) ) + 74
----
70

query I rowsort
SELECT ALL 82 + + 27 AS col0
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-4815
SELECT + 88 DIV 36 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4815
SELECT + 88 / 36 AS col0
----
2

query I rowsort
SELECT + CASE - 94 WHEN - - 94 THEN - + NULLIF ( + - 45, + 52 * - 69 ) END * + 0 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT ALL 60 DIV 99 * 1 - - + 92 * + - 4
----
-368

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL 60 / 99 * 1 - - + 92 * + - 4
----
-368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT + CASE - + ( - 7 ) WHEN + 95 THEN NULL ELSE 41 + - CASE CAST( COUNT( * ) AS SIGNED ) WHEN 66 THEN NULL WHEN - 27 THEN - 57 ELSE 63 + + CASE + 63 WHEN 96 THEN - ( - 23 ) + - 32 ELSE NULL END END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT + CASE - + ( - 7 ) WHEN + 95 THEN NULL ELSE 41 + - CASE CAST ( COUNT ( * ) AS INTEGER ) WHEN 66 THEN NULL WHEN - 27 THEN - 57 ELSE 63 + + CASE + 63 WHEN 96 THEN - ( - 23 ) + - 32 ELSE NULL END END END AS col1
----
NULL

query I rowsort
SELECT ALL 57 * - 59 col0
----
-3363

query I rowsort
SELECT ALL 97 * ( + 73 ) - 78 col1
----
7003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT + CASE - 80 WHEN 8 THEN ( CAST( - 57 AS SIGNED ) ) * 24 WHEN 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT + CASE - 80 WHEN 8 THEN ( CAST ( - 57 AS INTEGER ) ) * 24 WHEN 79 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4822
SELECT + 47 / - - COUNT( * ) + - + SUM( ALL + CAST( ( ( 17 ) ) AS SIGNED ) ) - ( 49 ) * - CASE COUNT( * ) - 58 WHEN 1 THEN 34 + - 48 WHEN - 62 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT + 47 / - - COUNT ( * ) + - + SUM ( ALL + CAST ( ( ( 17 ) ) AS INTEGER ) ) - ( 49 ) * - CASE COUNT ( * ) - 58 WHEN 1 THEN 34 + - 48 WHEN - 62 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 98 * 80 * - - NULLIF ( - 81, + 96 * 91 ) * 68 AS col1
----
-43182720

query I rowsort
SELECT ALL 10 * 65 AS col0
----
650

query I rowsort
SELECT + 15 + + 94 AS col2
----
109

query I rowsort
SELECT ALL 21 * + 1
----
21

query I rowsort
SELECT - - 61 * + - 95 * + - 67
----
388265

query I rowsort
SELECT - 35 * - 25 + + + 75 AS col0
----
950

query I rowsort
SELECT + NULLIF ( + - 31, 92 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT - - COUNT( * ) - 69 * 62 col1
----
-4277

skipif mysql # not compatible
query I rowsort label-4830
SELECT - - COUNT ( * ) - 69 * 62 col1
----
-4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4831
SELECT - 64 + - + CAST( 50 AS SIGNED ) * - COUNT( ALL + 26 ) / + 80 + - CAST( NULL AS SIGNED ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT - 64 + - + CAST ( 50 AS INTEGER ) * - COUNT ( ALL + 26 ) / + 80 + - CAST ( NULL AS INTEGER ) * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + COUNT( - - 30 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4832
SELECT + COUNT ( - - 30 ) col0
----
1

query I rowsort
SELECT + 8 * - 88 * 56 * 66 col2
----
-2601984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4834
SELECT - 77 + - + CAST( + - 12 AS DECIMAL ) + + + CASE 65 WHEN + ( CASE - ( CAST( 71 AS SIGNED ) ) WHEN MIN( ALL 9 ) THEN 47 * 64 END ) THEN 49 WHEN COUNT( * ) THEN NULL WHEN 90 THEN 90 ELSE NULL END * 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT - 77 + - + CAST ( + - 12 AS REAL ) + + + CASE 65 WHEN + ( CASE - ( CAST ( 71 AS INTEGER ) ) WHEN MIN ( ALL 9 ) THEN 47 * 64 END ) THEN 49 WHEN COUNT ( * ) THEN NULL WHEN 90 THEN 90 ELSE NULL END * 67 col1
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 18, 69, 7 ) AS col1
----
-18

query I rowsort
SELECT - + 34 * - 6
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL 60 * + 92 + - 80 * - ( MIN( - 66 ) ) + - COUNT( * ) AS col1
----
239

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL 60 * + 92 + - 80 * - ( MIN ( - 66 ) ) + - COUNT ( * ) AS col1
----
239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4838
SELECT ALL + - 86 * - COUNT( * ) + 22 + + 79 * 38 * CAST( NULL AS SIGNED ) + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + - 86 * - COUNT ( * ) + 22 + + 79 * 38 * CAST ( NULL AS INTEGER ) + 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT ( + + COUNT( ALL 98 ) ) AS col0, 36 AS col2
----
1
36

skipif mysql # not compatible
query II rowsort label-4839
SELECT ( + + COUNT ( ALL 98 ) ) AS col0, 36 AS col2
----
1
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT + - 47 * 29 * - COUNT( * ) + 18 col1
----
1381

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT + - 47 * 29 * - COUNT ( * ) + 18 col1
----
1381

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT - + 99 * - MAX( DISTINCT 28 ) * + + 96 + - ( 93 ) + NULLIF ( - 79, 25 ) AS col1
----
265940

skipif mysql # not compatible
query I rowsort label-4841
SELECT - + 99 * - MAX ( DISTINCT 28 ) * + + 96 + - ( 93 ) + NULLIF ( - 79, 25 ) AS col1
----
265940

query II rowsort
SELECT - 21 AS col0, - 36 col2
----
-21
-36

query I rowsort
SELECT ALL + 47 + + 82 AS col2
----
129

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4844
SELECT DISTINCT CAST( NULL AS DECIMAL ) col1, 2 DIV - 48 * - 13 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4844
SELECT DISTINCT CAST ( NULL AS REAL ) col1, 2 / - 48 * - 13 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT - 12 - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4845
SELECT - 12 - COUNT ( * ) AS col0
----
-13

query II rowsort
SELECT 31 AS col2, + 17 AS col1
----
31
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT ALL + CAST( NULL AS SIGNED ) + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + CAST ( NULL AS INTEGER ) + + 8 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL 76 - + 73 - 93 * - + 67 * - - CASE - 67 WHEN MAX( 24 ) THEN - 3 * + 18 WHEN - COUNT( * ) THEN 35 ELSE NULL END * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL 76 - + 73 - 93 * - + 67 * - - CASE - 67 WHEN MAX ( 24 ) THEN - 3 * + 18 WHEN - COUNT ( * ) THEN 35 ELSE NULL END * 25
----
NULL

query I rowsort
SELECT - 82 * 69 * - NULLIF ( 18, + 2 * + - 32 - + 56 + 77 * - 83 )
----
101844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4851
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) DIV + 96 + - 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) / + 96 + - 98 AS col2
----
-98

query I rowsort
SELECT 44 + - - 89
----
133

query I rowsort
SELECT ALL - 48 * 35 col2
----
-1680

query I rowsort
SELECT 51 * 3
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT 86 * + SUM( 8 ) AS col2
----
688

skipif mysql # not compatible
query I rowsort label-4855
SELECT 86 * + SUM ( 8 ) AS col2
----
688

query II rowsort
SELECT DISTINCT - 28 AS col0, - 66
----
-28
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT + CAST( NULL AS SIGNED ) / + + 93 + 50 + + 31 * + 99 / + 17 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT + CAST ( NULL AS INTEGER ) / + + 93 + 50 + + 31 * + 99 / + 17 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 79 + 14 AS col2
----
93

query I rowsort
SELECT ALL - 85 * - 86
----
7310

query I rowsort
SELECT DISTINCT - NULLIF ( - 22, - 26 * 92 + - 39 * + - 47 )
----
22

query II rowsort
SELECT 69 col1, 1
----
69
1

query I rowsort
SELECT 87 * - - 58 * - + 51
----
-257346

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT COALESCE ( + COUNT( * ), MAX( 98 ) + - 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4863
SELECT COALESCE ( + COUNT ( * ), MAX ( 98 ) + - 82 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL 22 * + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL 22 * + + COUNT ( * )
----
22

query I rowsort
SELECT - 61 * + 15 AS col0
----
-915

query I rowsort
SELECT + 1 - - 78
----
79

query II rowsort
SELECT + - 25, 6 col2
----
-25
6

query I rowsort
SELECT ALL - 69 + - CASE + 63 WHEN - 24 THEN NULL ELSE + 49 END
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT MIN( - 59 ) + - 59 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT MIN ( - 59 ) + - 59 AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT DISTINCT - - MIN( DISTINCT - 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT - - MIN ( DISTINCT - 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL - ( + 81 ) + - 79 + - COUNT( * ) - + + 18 * 62
----
-1277

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - ( + 81 ) + - 79 + - COUNT ( * ) - + + 18 * 62
----
-1277

query I rowsort
SELECT ALL ( 17 ) + - + 41 * + 37 AS col0
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT + 50 + - COUNT( * ) * + + 9
----
41

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + 50 + - COUNT ( * ) * + + 9
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4874
SELECT - + 50 * + CAST( NULL AS SIGNED ) * - COUNT( * ) + + - NULLIF ( + 72, - 92 ) + CASE COUNT( DISTINCT 71 ) - SUM( + 67 ) * + 11 WHEN 71 * - 10 THEN 10 * - 99 + + 76 WHEN + 47 - + 27 / + 70 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT - + 50 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + - NULLIF ( + 72, - 92 ) + CASE COUNT ( DISTINCT 71 ) - SUM ( + 67 ) * + 11 WHEN 71 * - 10 THEN 10 * - 99 + + 76 WHEN + 47 - + 27 / + 70 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 25 - - 26 AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4876
SELECT COUNT( * ) * - ( - 52 ) * 89 AS col1, 60 * 48 DIV + 46 + + 72 AS col2
----
4628
134

skipif mysql # not compatible
query II rowsort label-4876
SELECT COUNT ( * ) * - ( - 52 ) * 89 AS col1, 60 * 48 / + 46 + + 72 AS col2
----
4628
134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4877
SELECT 28 AS col1, CASE WHEN NOT ( + NULLIF ( - 35, - - 7 ) ) = ( NULL ) THEN NULLIF ( 0, + CAST( NULL AS DECIMAL ) + + 24 ) * COUNT( * ) ELSE NULL END col0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-4877
SELECT 28 AS col1, CASE WHEN NOT ( + NULLIF ( - 35, - - 7 ) ) = ( NULL ) THEN NULLIF ( 0, + CAST ( NULL AS REAL ) + + 24 ) * COUNT ( * ) ELSE NULL END col0
----
28
NULL

query I rowsort
SELECT - ( + 83 ) * + + 9 AS col2
----
-747

query I rowsort
SELECT + 17 + + + 58 AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4880
SELECT - COUNT( * ), + 29 AS col1
----
-1
29

skipif mysql # not compatible
query II rowsort label-4880
SELECT - COUNT ( * ), + 29 AS col1
----
-1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + + MAX( DISTINCT - 56 ) + - MAX( - 35 ) + + 66 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + + MAX ( DISTINCT - 56 ) + - MAX ( - 35 ) + + 66 AS col0
----
45

query I rowsort
SELECT ALL - 79 * + 78 * - 18 * ( + - 53 ) AS col1
----
-5878548

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT - 61 * - - 71 * + COUNT( 33 )
----
-4331

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - 61 * - - 71 * + COUNT ( 33 )
----
-4331

query I rowsort
SELECT ALL - 89 * + 85
----
-7565

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT + 34 - + 31 + - 38 + COUNT( * ) + - 34 * - ( + 70 ) AS col0
----
2346

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT + 34 - + 31 + - 38 + COUNT ( * ) + - 34 * - ( + 70 ) AS col0
----
2346

query II rowsort
SELECT 80 + + 30 AS col0, - 89
----
110
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT CASE - COUNT( * ) WHEN - 10 * 77 * + - COUNT( + - 98 ) + + 3 + 27 * + 19 THEN - CASE - 47 WHEN - 37 / - 21 THEN ( + 7 ) / - 88 WHEN 61 THEN NULL END / + CASE + 28 * - 65 WHEN - 61 THEN 87 END END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT CASE - COUNT ( * ) WHEN - 10 * 77 * + - COUNT ( + - 98 ) + + 3 + 27 * + 19 THEN - CASE - 47 WHEN - 37 / - 21 THEN ( + 7 ) / - 88 WHEN 61 THEN NULL END / + CASE + 28 * - 65 WHEN - 61 THEN 87 END END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 76 + + 51
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT DISTINCT MIN( - 16 ), + 53 AS col0
----
-16
53

skipif mysql # not compatible
query II rowsort label-4889
SELECT DISTINCT MIN ( - 16 ), + 53 AS col0
----
-16
53

query I rowsort
SELECT ALL + NULLIF ( 12, 36 ) * - - 73 AS col1
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT 86 * + - COUNT( + 41 ) * 24
----
-2064

skipif mysql # not compatible
query I rowsort label-4891
SELECT 86 * + - COUNT ( + 41 ) * 24
----
-2064

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT DISTINCT COUNT( * ) * + COUNT( * ) col1, - 24 AS col2
----
1
-24

skipif mysql # not compatible
query II rowsort label-4892
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col1, - 24 AS col2
----
1
-24

query II rowsort
SELECT ALL 80 + - - 87, 6 col0
----
167
6

query I rowsort
SELECT + 49 * + ( + 6 ) AS col0
----
294

query I rowsort
SELECT 99 + + 89 AS col2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT COALESCE ( - + 64, COUNT( * ), - 55 * - COUNT( * ), - 97 * - 31 ) * + 84 AS col0
----
-5376

skipif mysql # not compatible
query I rowsort label-4896
SELECT COALESCE ( - + 64, COUNT ( * ), - 55 * - COUNT ( * ), - 97 * - 31 ) * + 84 AS col0
----
-5376

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4897
SELECT ALL - 73 + + 14 / AVG ( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - 73 + + 14 / AVG ( ALL - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4898
SELECT - + COALESCE ( - - COUNT( * ), 45 ) DIV 78 * - 73 + + - ( - + 25 ) + - 38 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4898
SELECT - + COALESCE ( - - COUNT ( * ), 45 ) / 78 * - 73 + + - ( - + 25 ) + - 38 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT + - COUNT( + 92 ) + - - 77
----
76

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT + - COUNT ( + 92 ) + - - 77
----
76

query I rowsort
SELECT ALL - - 6 * 30
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT 38 + + ( - - MAX( DISTINCT - 69 ) ) * + NULLIF ( - 21, + 78 ) * - ( SUM( - 73 ) ) col0
----
105815

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT 38 + + ( - - MAX ( DISTINCT - 69 ) ) * + NULLIF ( - 21, + 78 ) * - ( SUM ( - 73 ) ) col0
----
105815

onlyif mysql # aggregate syntax: 
query II rowsort label-4902
SELECT ALL + - 93 + + COUNT( * ), + ( - 47 ) + + + SUM( ALL 94 ) AS col2
----
-92
47

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL + - 93 + + COUNT ( * ), + ( - 47 ) + + + SUM ( ALL 94 ) AS col2
----
-92
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT ALL - - CAST( - - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - - CAST ( - - 15 AS INTEGER )
----
15

query I rowsort
SELECT ALL 65 + 8
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT 27 * - COUNT( * ) + CAST( 78 AS SIGNED ) + - 54 - - 31
----
28

skipif mysql # not compatible
query I rowsort label-4905
SELECT 27 * - COUNT ( * ) + CAST ( 78 AS INTEGER ) + - 54 - - 31
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ( CASE + 70 WHEN + 56 * 94 * + + 10 - + 49 + + COUNT( * ) / + COUNT( * ) + 32 / COUNT( * ) THEN NULL WHEN - AVG ( - 71 ) - - 4 THEN NULL ELSE COALESCE ( + 3, 16 - 76, + 54 ) END ) * 21
----
63

skipif mysql # not compatible
query I rowsort label-4906
SELECT ( CASE + 70 WHEN + 56 * 94 * + + 10 - + 49 + + COUNT ( * ) / + COUNT ( * ) + 32 / COUNT ( * ) THEN NULL WHEN - AVG ( - 71 ) - - 4 THEN NULL ELSE COALESCE ( + 3, 16 - 76, + 54 ) END ) * 21
----
63

query I rowsort
SELECT DISTINCT - 38 - 77 AS col1
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4908
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2, + MIN( DISTINCT + 31 ) * 41 * - 3 + 81
----
NULL
-3732

skipif mysql # not compatible
query II rowsort label-4908
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2, + MIN ( DISTINCT + 31 ) * 41 * - 3 + 81
----
NULL
-3732

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT + COALESCE ( COUNT( * ), - 1, - - 67 * + 62, - 88 + + 59 ) * + - 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4909
SELECT + COALESCE ( COUNT ( * ), - 1, - - 67 * + 62, - 88 + + 59 ) * + - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT ALL MAX( ALL 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL MAX ( ALL 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT - SUM( - 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-4911
SELECT - SUM ( - 73 ) AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT - CAST( NULL AS SIGNED ) / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT - CAST ( NULL AS INTEGER ) / 96
----
NULL

query II rowsort
SELECT - 35 col2, - 85 + 52
----
-35
-33

query I rowsort
SELECT + 99 - + + 97 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4915
SELECT DISTINCT 63 DIV + ( + COUNT( * ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT 63 / + ( + COUNT ( * ) ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT + CAST( COUNT( * ) AS SIGNED ) - + + 65
----
-64

skipif mysql # not compatible
query I rowsort label-4916
SELECT + CAST ( COUNT ( * ) AS INTEGER ) - + + 65
----
-64

query I rowsort
SELECT DISTINCT 98 + + 56
----
154

query I rowsort
SELECT + 39 + 67 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - 45 - - + 57 - + COALESCE ( + 8, - MAX( DISTINCT + COALESCE ( + 29, + 5 - - 5 ) ) ) * 22 col0
----
-164

skipif mysql # not compatible
query I rowsort label-4919
SELECT - 45 - - + 57 - + COALESCE ( + 8, - MAX ( DISTINCT + COALESCE ( + 29, + 5 - - 5 ) ) ) * 22 col0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT - COALESCE ( COUNT( * ), + 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-4920
SELECT - COALESCE ( COUNT ( * ), + 88 )
----
-1

query I rowsort
SELECT + COALESCE ( - 45, - 35 ) + + 57
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - 21 - COALESCE ( + 33, 29, + 74 ) + + COUNT( * ) * + 38 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4922
SELECT - 21 - COALESCE ( + 33, 29, + 74 ) + + COUNT ( * ) * + 38 AS col2
----
-16

query I rowsort
SELECT - 39 * + 87 AS col1
----
-3393

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ALL + COUNT( * ) * + 38 + - 68 + + - COUNT( * ) + + - 88 * COALESCE ( 5, + 8 ) + - 60 col1
----
-531

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL + COUNT ( * ) * + 38 + - 68 + + - COUNT ( * ) + + - 88 * COALESCE ( 5, + 8 ) + - 60 col1
----
-531

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT ALL 44 * COUNT( * ) + - 11, 11 AS col0
----
33
11

skipif mysql # not compatible
query II rowsort label-4925
SELECT ALL 44 * COUNT ( * ) + - 11, 11 AS col0
----
33
11

query II rowsort
SELECT ALL + 96, 42 + - 70 * + COALESCE ( + - 11, - 75 ) col2
----
96
812

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT ALL + - 65 * + MAX( - 5 ) * 24 + - 34 + - 90 - + + 10 * + + 69 - MAX( 69 ) AS col2
----
6917

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + - 65 * + MAX ( - 5 ) * 24 + - 34 + - 90 - + + 10 * + + 69 - MAX ( 69 ) AS col2
----
6917

query II rowsort
SELECT 46 AS col2, - 37
----
46
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - MIN( ALL - + ( - + 76 ) ) * - COUNT( * ) + + 68
----
144

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - MIN ( ALL - + ( - + 76 ) ) * - COUNT ( * ) + + 68
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - + 56 * 51 + + 98 + + - 97 + - 52 + + COUNT( * ) + + 93 * 14 * - 54
----
-73214

skipif mysql # not compatible
query I rowsort label-4930
SELECT - + 56 * 51 + + 98 + + - 97 + - 52 + + COUNT ( * ) + + 93 * 14 * - 54
----
-73214

query I rowsort
SELECT DISTINCT + + 33 * 57 + + + 16
----
1897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT + CASE 49 WHEN - NULLIF ( + SUM( ALL + 84 ), + 72 + + + CAST( NULL AS SIGNED ) ) THEN NULL ELSE - - 72 END
----
72

skipif mysql # not compatible
query I rowsort label-4932
SELECT + CASE 49 WHEN - NULLIF ( + SUM ( ALL + 84 ), + 72 + + + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - - 72 END
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4933
SELECT - - 49 DIV - 42 + 5 + + 25 DIV - - 46 - + MIN( DISTINCT 28 )
----
-24

skipif mysql # not compatible
query I rowsort label-4933
SELECT - - 49 / - 42 + 5 + + 25 / - - 46 - + MIN ( DISTINCT 28 )
----
-24

query I rowsort
SELECT ALL + 1 * - - 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - 85 - + 52 * - 95 - + COUNT( * ) AS col1
----
4854

skipif mysql # not compatible
query I rowsort label-4935
SELECT - 85 - + 52 * - 95 - + COUNT ( * ) AS col1
----
4854

onlyif mysql # aggregate syntax: 
query II rowsort label-4936
SELECT + + COUNT( * ) AS col0, 8
----
1
8

skipif mysql # not compatible
query II rowsort label-4936
SELECT + + COUNT ( * ) AS col0, 8
----
1
8

onlyif mysql # DIV for integer division: 
query II rowsort label-4937
SELECT - 50 AS col2, 73 DIV - 46 - 80 col0
----
-50
-81

skipif mysql # not compatible
query II rowsort label-4937
SELECT - 50 AS col2, 73 / - 46 - 80 col0
----
-50
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT - + 62 DIV 97 * - ( - 26 ) DIV + 44 + + - 16
----
-16

skipif mysql # not compatible
query I rowsort label-4938
SELECT - + 62 / 97 * - ( - 26 ) / + 44 + + - 16
----
-16

query I rowsort
SELECT ALL - 56 * + - 82
----
4592

query I rowsort
SELECT DISTINCT + 98 * + 43
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL + 34 * 22 - + COUNT( ALL + 40 ) AS col0
----
747

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + 34 * 22 - + COUNT ( ALL + 40 ) AS col0
----
747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4942
SELECT ALL + - CASE - 39 WHEN - 85 * - + COALESCE ( + COUNT( DISTINCT - 57 ), 66 ) + CAST( 66 AS SIGNED ) / 87 THEN AVG ( 99 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL + - CASE - 39 WHEN - 85 * - + COALESCE ( + COUNT ( DISTINCT - 57 ), 66 ) + CAST ( 66 AS INTEGER ) / 87 THEN AVG ( 99 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - 53 + + - MAX( DISTINCT - 54 ) * 77 AS col2
----
4105

skipif mysql # not compatible
query I rowsort label-4943
SELECT - 53 + + - MAX ( DISTINCT - 54 ) * 77 AS col2
----
4105

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT + COALESCE ( - 50, - + CASE 22 WHEN - + NULLIF ( + - MAX( DISTINCT - 60 ), 82 ) / - 34 * - 78 THEN 33 * 24 + 45 ELSE 58 END, 84 ) * COALESCE ( CASE + 14 WHEN + 12 THEN NULL WHEN + 74 + 14 THEN + 97 END, ( - 37 ) ) col2
----
1850

skipif mysql # not compatible
query I rowsort label-4944
SELECT + COALESCE ( - 50, - + CASE 22 WHEN - + NULLIF ( + - MAX ( DISTINCT - 60 ), 82 ) / - 34 * - 78 THEN 33 * 24 + 45 ELSE 58 END, 84 ) * COALESCE ( CASE + 14 WHEN + 12 THEN NULL WHEN + 74 + 14 THEN + 97 END, ( - 37 ) ) col2
----
1850

query I rowsort
SELECT ALL + ( - + ( - - 21 ) ) AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT - 76 * - MAX( + 36 ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 76 * - MAX ( + 36 ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4947
SELECT + COALESCE ( + - MAX( + - 46 ), COALESCE ( + 21, 75 * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) DIV - NULLIF ( + COALESCE ( 13, - CASE 78 WHEN + ( - COUNT( 78 ) ) THEN NULL ELSE 47 - 30 END * NULLIF ( - 66, CAST( COUNT( * ) AS SIGNED ) * COUNT( - NULLIF ( + 75, 78 + - 88 ) ) + 83 ) ), - 76 * ( + 1 * + COUNT( * ) ) ) + - COALESCE ( ( 10 ), - 7 ) ) - 19 ) - ( - COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-4947
SELECT + COALESCE ( + - MAX ( + - 46 ), COALESCE ( + 21, 75 * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / - NULLIF ( + COALESCE ( 13, - CASE 78 WHEN + ( - COUNT ( 78 ) ) THEN NULL ELSE 47 - 30 END * NULLIF ( - 66, CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( - NULLIF ( + 75, 78 + - 88 ) ) + 83 ) ), - 76 * ( + 1 * + COUNT ( * ) ) ) + - COALESCE ( ( 10 ), - 7 ) ) - 19 ) - ( - COUNT ( * ) )
----
47

query I rowsort
SELECT - ( - - COALESCE ( - 14, - - 39 * 22 * 68 ) ) AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4949
SELECT + CAST( - 50 AS SIGNED ) * 97 * - 58 + 82 + - + SUM( ALL + - 44 )
----
281426

skipif mysql # not compatible
query I rowsort label-4949
SELECT + CAST ( - 50 AS INTEGER ) * 97 * - 58 + 82 + - + SUM ( ALL + - 44 )
----
281426

query I rowsort
SELECT + ( 61 ) + + 32 col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL COUNT( * ) * 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL COUNT ( * ) * 56 AS col2
----
56

query I rowsort
SELECT ALL 57 + + 10 AS col1
----
67

query I rowsort
SELECT DISTINCT ( + 54 ) + + 39
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT COALESCE ( 34, + 33 + 54 + + COUNT( * ), 91 ) + + 94 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT COALESCE ( 34, + 33 + 54 + + COUNT ( * ), 91 ) + + 94 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT + 22 + + NULLIF ( + MAX( ALL - ( + - 46 ) ), - 28 )
----
68

skipif mysql # not compatible
query I rowsort label-4955
SELECT + 22 + + NULLIF ( + MAX ( ALL - ( + - 46 ) ), - 28 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT DISTINCT 45 + - COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT 45 + - COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL COUNT( * ) + - SUM( - ( - + CASE + 58 WHEN - 94 THEN - 70 + - + 29 / + ( 7 ) END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL COUNT ( * ) + - SUM ( - ( - + CASE + 58 WHEN - 94 THEN - 70 + - + 29 / + ( 7 ) END ) ) AS col1
----
NULL

query I rowsort
SELECT + 58 * - 72 AS col1
----
-4176

query I rowsort
SELECT DISTINCT - 45 + + 7 AS col1
----
-38

query I rowsort
SELECT ALL + + 30 * - 64
----
-1920

query II rowsort
SELECT DISTINCT + + 5 + 71 col0, - 35 * + 71 * + + CASE WHEN 11 IS NOT NULL THEN + 81 END
----
76
-201285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4962
SELECT - - NULLIF ( + ( - + NULLIF ( - 19, + - 36 ) ), 16 * 52 * - 26 * + 89 ) * + CAST( 32 AS SIGNED ) AS col0
----
608

skipif mysql # not compatible
query I rowsort label-4962
SELECT - - NULLIF ( + ( - + NULLIF ( - 19, + - 36 ) ), 16 * 52 * - 26 * + 89 ) * + CAST ( 32 AS INTEGER ) AS col0
----
608

onlyif mysql # aggregate syntax: 
query II rowsort label-4963
SELECT - + 27 * - COUNT( * ), + 35 - - 4 + NULLIF ( 18, + ( - 89 ) * 21 * COUNT( * ) + + 3 * - COUNT( * ) ) * + 61 AS col0
----
27
1137

skipif mysql # not compatible
query II rowsort label-4963
SELECT - + 27 * - COUNT ( * ), + 35 - - 4 + NULLIF ( 18, + ( - 89 ) * 21 * COUNT ( * ) + + 3 * - COUNT ( * ) ) * + 61 AS col0
----
27
1137

query II rowsort
SELECT - 17 + 0 AS col0, - 81 * 33 AS col0
----
-17
-2673

query I rowsort
SELECT + 34 * + 52 + - - 61
----
1829

onlyif mysql # DIV for integer division: 
query I rowsort label-4966
SELECT ALL + COALESCE ( - - NULLIF ( - 70, - ( + ( - 86 ) ) ), 10 ) DIV + 78 - - 10 col1
----
10

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + COALESCE ( - - NULLIF ( - 70, - ( + ( - 86 ) ) ), 10 ) / + 78 - - 10 col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4967
SELECT + CAST( + COUNT( * ) AS SIGNED ) * - - 44
----
44

skipif mysql # not compatible
query I rowsort label-4967
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * - - 44
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT - COUNT( * ) DIV 67 * - 31 + - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4968
SELECT - COUNT ( * ) / 67 * - 31 + - 34 AS col2
----
-34

query I rowsort
SELECT - 88 - + 28 * - ( - 16 ) + - - 24
----
-512

query I rowsort
SELECT DISTINCT + - ( 95 ) col2
----
-95

query I rowsort
SELECT ALL + ( - 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL - + COALESCE ( - CASE + 16 WHEN COUNT( * ) / 26 THEN + 99 END, - NULLIF ( 64, 98 ) ) * 66
----
4224

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - + COALESCE ( - CASE + 16 WHEN COUNT ( * ) / 26 THEN + 99 END, - NULLIF ( 64, 98 ) ) * 66
----
4224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4973
SELECT 74 DIV MIN( ALL + 11 ) col2, + ( + 27 ) + - + 38 + 9 AS col1
----
6
-2

skipif mysql # not compatible
query II rowsort label-4973
SELECT 74 / MIN ( ALL + 11 ) col2, + ( + 27 ) + - + 38 + 9 AS col1
----
6
-2

query I rowsort
SELECT ALL - 30 * - 41
----
1230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4975
SELECT 45 * + 71 * NULLIF ( + 44, - - 19 + - ( + COUNT( * ) ) DIV + 72 + - - 78 ) DIV - 11 + 29 col2
----
-12751

skipif mysql # not compatible
query I rowsort label-4975
SELECT 45 * + 71 * NULLIF ( + 44, - - 19 + - ( + COUNT ( * ) ) / + 72 + - - 78 ) / - 11 + 29 col2
----
-12751

query I rowsort
SELECT 80 + - 1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - NULLIF ( + + 37, - COUNT( * ) ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - NULLIF ( + + 37, - COUNT ( * ) ) col2
----
-37

query I rowsort
SELECT DISTINCT - 3 * - 12
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT 64 DIV + + 21
----
3

skipif mysql # not compatible
query I rowsort label-4979
SELECT 64 / + + 21
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT 99 DIV - + 89 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4980
SELECT 99 / - + 89 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT 70 * CASE 77 WHEN - SUM( ALL - - 51 ) * + + 37 + + 59 / - + 71 THEN - COUNT( * ) - - 12 / - COUNT( ALL - ( - ( 90 ) ) ) WHEN 65 + + 32 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT 70 * CASE 77 WHEN - SUM ( ALL - - 51 ) * + + 37 + + 59 / - + 71 THEN - COUNT ( * ) - - 12 / - COUNT ( ALL - ( - ( 90 ) ) ) WHEN 65 + + 32 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 58 + + + 57 * + 27 AS col2
----
1597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4983
SELECT 38 col2, + 15 + CASE - COUNT( * ) WHEN - - 2 THEN + ( + 78 ) + + 82 + - 21 + + 77 / 30 ELSE NULL END + 56 * + ( - CAST( NULL AS SIGNED ) / 94 ) col1
----
38
NULL

skipif mysql # not compatible
query II rowsort label-4983
SELECT 38 col2, + 15 + CASE - COUNT ( * ) WHEN - - 2 THEN + ( + 78 ) + + 82 + - 21 + + 77 / 30 ELSE NULL END + 56 * + ( - CAST ( NULL AS INTEGER ) / 94 ) col1
----
38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL 64 + - - COUNT( * ) * + + ( COUNT( * ) ) * - - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL 64 + - - COUNT ( * ) * + + ( COUNT ( * ) ) * - - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT + COUNT( * ) + 69 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + COUNT ( * ) + 69 AS col2
----
70

query I rowsort
SELECT ALL 4 + - + 2 + CASE - 6 WHEN + 83 THEN + COALESCE ( 83, + 61 * - 8 * - - 61 ) ELSE - 5 * - 99 END * - 59
----
-29203

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT 95 - + 2 + + COUNT( * ), - COALESCE ( 42, - COALESCE ( 33, + ( 52 ) ) ) AS col0
----
94
-42

skipif mysql # not compatible
query II rowsort label-4987
SELECT 95 - + 2 + + COUNT ( * ), - COALESCE ( 42, - COALESCE ( 33, + ( 52 ) ) ) AS col0
----
94
-42

query II rowsort
SELECT ALL 54, + 24 AS col0
----
54
24

query II rowsort
SELECT ALL 58 AS col2, - 40
----
58
-40

query I rowsort
SELECT ALL 56 * - ( - + 74 )
----
4144

query I rowsort
SELECT COALESCE ( + 66, + + 40 + 76 * 11 ) - - NULLIF ( - 39, - 15 ) * - 87 + + 54
----
3513

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL - 16 - - ( - 0 ) / - 35 + + 33 + - 32 - + 68 * + 24 * MAX( + 59 ) * - 70 / CASE + 60 WHEN 2 + 15 THEN 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - 16 - - ( - 0 ) / - 35 + + 33 + - 32 - + 68 * + 24 * MAX ( + 59 ) * - 70 / CASE + 60 WHEN 2 + 15 THEN 32 END
----
NULL

query I rowsort
SELECT - COALESCE ( + 65, + 72 * + 80 * + - 1 + + 38 )
----
-65

query I rowsort
SELECT ALL + 36 - 82
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT COUNT( * ) AS col0, 98 AS col0
----
1
98

skipif mysql # not compatible
query II rowsort label-4995
SELECT COUNT ( * ) AS col0, 98 AS col0
----
1
98

query I rowsort
SELECT - 92 - - 49
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT - COUNT( - 45 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4997
SELECT - COUNT ( - 45 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT DISTINCT + COUNT( * ) AS col0, - 91
----
1
-91

skipif mysql # not compatible
query II rowsort label-4998
SELECT DISTINCT + COUNT ( * ) AS col0, - 91
----
1
-91

query I rowsort
SELECT - 19 - 65
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL 89 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL 89 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT - 58 DIV - + 23 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5001
SELECT - 58 / - + 23 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + ( SUM( DISTINCT + + 56 ) ) * + - ( - + 85 ) * - 59 - 37 AS col2
----
-280877

skipif mysql # not compatible
query I rowsort label-5002
SELECT + ( SUM ( DISTINCT + + 56 ) ) * + - ( - + 85 ) * - 59 - 37 AS col2
----
-280877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT + CAST( - - 92 AS SIGNED ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5003
SELECT + CAST ( - - 92 AS INTEGER ) AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5004
SELECT - + 12 DIV 67 + NULLIF ( + - CASE + - 72 WHEN + CASE - ( 71 ) WHEN - 16 THEN + CASE - 58 WHEN ( + 2 ) THEN NULL WHEN + COUNT( * ) THEN COALESCE ( - 84, 28 ) * CASE - ( - 96 ) * 68 WHEN 96 DIV + 83 THEN 50 + 46 * + MIN( + 35 ) END WHEN + 47 THEN - 58 * ( 31 ) END DIV 85 END DIV 11 THEN 78 WHEN CAST( NULL AS DECIMAL ) + + 37 THEN NULL ELSE + 63 + COALESCE ( 59 + 26 * + COUNT( * ), + NULLIF ( + 88, 71 * + COALESCE ( 53, - COUNT( ( - NULLIF ( - 88, + ( 60 ) ) ) ), + 72 ) ) + 35, ( 71 ) + - COALESCE ( 50, - 31 * + 51 ) ) DIV - 89 END, AVG ( ALL + 71 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-5004
SELECT - + 12 / 67 + NULLIF ( + - CASE + - 72 WHEN + CASE - ( 71 ) WHEN - 16 THEN + CASE - 58 WHEN ( + 2 ) THEN NULL WHEN + COUNT ( * ) THEN COALESCE ( - 84, 28 ) * CASE - ( - 96 ) * 68 WHEN 96 / + 83 THEN 50 + 46 * + MIN ( + 35 ) END WHEN + 47 THEN - 58 * ( 31 ) END / 85 END / 11 THEN 78 WHEN CAST ( NULL AS REAL ) + + 37 THEN NULL ELSE + 63 + COALESCE ( 59 + 26 * + COUNT ( * ), + NULLIF ( + 88, 71 * + COALESCE ( 53, - COUNT ( ( - NULLIF ( - 88, + ( 60 ) ) ) ), + 72 ) ) + 35, ( 71 ) + - COALESCE ( 50, - 31 * + 51 ) ) / - 89 END, AVG ( ALL + 71 ) )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5005
SELECT DISTINCT COUNT( * ) * - - SUM( ALL - 32 ) AS col2, 35
----
-32
35

skipif mysql # not compatible
query II rowsort label-5005
SELECT DISTINCT COUNT ( * ) * - - SUM ( ALL - 32 ) AS col2, 35
----
-32
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT + 85 + ( + SUM( ALL + - 28 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5006
SELECT + 85 + ( + SUM ( ALL + - 28 ) ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT ALL + NULLIF ( - 38, 97 ) DIV - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + NULLIF ( - 38, 97 ) / - 66 AS col2
----
0

query I rowsort
SELECT + ( - - 83 ) * 9 AS col2
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT ALL + MAX( DISTINCT - + 74 ) * - MAX( + 43 ) * 13 * - COUNT( * ) + - COUNT( * ) AS col1
----
-41367

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL + MAX ( DISTINCT - + 74 ) * - MAX ( + 43 ) * 13 * - COUNT ( * ) + - COUNT ( * ) AS col1
----
-41367

query I rowsort
SELECT + 8 * - + 52 AS col1
----
-416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT - 10 * - 11 * NULLIF ( COUNT( * ), 42 ) + - + 7 DIV 96 + - 84 * 70
----
-5770

skipif mysql # not compatible
query I rowsort label-5011
SELECT - 10 * - 11 * NULLIF ( COUNT ( * ), 42 ) + - + 7 / 96 + - 84 * 70
----
-5770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5012
SELECT - + 4 / + COUNT( * ) + - - 71 * - + CAST( + 66 AS DECIMAL ) * 45 * + 71 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT - + 4 / + COUNT ( * ) + - - 71 * - + CAST ( + 66 AS REAL ) * 45 * + 71 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 90 * 40
----
3600

query I rowsort
SELECT 61 - + 37 AS col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5015
SELECT ALL - 99 col0, - CAST( NULL AS SIGNED ) * + 32 AS col2
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-5015
SELECT ALL - 99 col0, - CAST ( NULL AS INTEGER ) * + 32 AS col2
----
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT DISTINCT 47 + + MIN( ALL - 87 )
----
-40

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT 47 + + MIN ( ALL - 87 )
----
-40

query II rowsort
SELECT 10 AS col2, 37
----
10
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL + COUNT( * ) + + 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + COUNT ( * ) + + 59 AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5019
SELECT + ( 68 ) * + 15 - - + MAX( ALL - 83 ) * - 99 AS col1, - COUNT( * ) * 80 * 10
----
9237
-800

skipif mysql # not compatible
query II rowsort label-5019
SELECT + ( 68 ) * + 15 - - + MAX ( ALL - 83 ) * - 99 AS col1, - COUNT ( * ) * 80 * 10
----
9237
-800

query II rowsort
SELECT 18, + 78 AS col2
----
18
78

query I rowsort
SELECT ALL - 99 + - + 9 + - 43
----
-151

query I rowsort
SELECT 63 * 69 * - 19 + - 87
----
-82680

query I rowsort
SELECT 5 - 16 col2
----
-11

query I rowsort
SELECT + 29 * - 16 * ( + 74 ) + 29
----
-34307

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT 15 + - 69 - + COUNT( 36 )
----
-55

skipif mysql # not compatible
query I rowsort label-5025
SELECT 15 + - 69 - + COUNT ( 36 )
----
-55

query I rowsort
SELECT ALL + 27 + - + 78 + + - 20 * - 68 + - - 26 col1
----
1335

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT - 91 AS col2, + 16 * COUNT( * ) AS col0
----
-91
16

skipif mysql # not compatible
query II rowsort label-5027
SELECT - 91 AS col2, + 16 * COUNT ( * ) AS col0
----
-91
16

query II rowsort
SELECT 4, + 9 col2
----
4
9

query I rowsort
SELECT 95 + - + ( - + 59 )
----
154

query I rowsort
SELECT 30 * 26 * - NULLIF ( - 7, 4 + - 42 + + 9 ) * 87 * - + 13
----
-6175260

query I rowsort
SELECT DISTINCT - 82 + + 9
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5032
SELECT ALL SUM( ALL - - 79 ) AS col1, + ( 11 ) AS col2
----
79
11

skipif mysql # not compatible
query II rowsort label-5032
SELECT ALL SUM ( ALL - - 79 ) AS col1, + ( 11 ) AS col2
----
79
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT DISTINCT - 9 * + COUNT( DISTINCT + 24 ) DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT - 9 * + COUNT ( DISTINCT + 24 ) / - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT 24 + - + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5034
SELECT 24 + - + COUNT ( * ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT ALL 93 - 75 * + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL 93 - 75 * + COUNT ( * )
----
18

query II rowsort
SELECT - - 91 AS col0, 42 AS col0
----
91
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT - COUNT( DISTINCT - 61 ) + - 23
----
-24

skipif mysql # not compatible
query I rowsort label-5037
SELECT - COUNT ( DISTINCT - 61 ) + - 23
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT - NULLIF ( + COUNT( * ), 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-5038
SELECT - NULLIF ( + COUNT ( * ), 58 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5039
SELECT MAX( DISTINCT - 18 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT MAX ( DISTINCT - 18 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT COUNT( * ) + + 51 + - 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5040
SELECT COUNT ( * ) + + 51 + - 51 AS col2
----
1

query I rowsort
SELECT - 52 + + 75
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT - COUNT( * ), + 85 AS col2
----
-1
85

skipif mysql # not compatible
query II rowsort label-5042
SELECT - COUNT ( * ), + 85 AS col2
----
-1
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5043
SELECT - - 72 * + - ( + - 97 ) + - + CAST( - - 6 AS SIGNED ) * - 42, 60 AS col0
----
7236
60

skipif mysql # not compatible
query II rowsort label-5043
SELECT - - 72 * + - ( + - 97 ) + - + CAST ( - - 6 AS INTEGER ) * - 42, 60 AS col0
----
7236
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + + 71 * 94 * - COUNT( * ) + + 57 + 22 * + 33
----
-5891

skipif mysql # not compatible
query I rowsort label-5044
SELECT + + 71 * 94 * - COUNT ( * ) + + 57 + 22 * + 33
----
-5891

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL COUNT( ALL - 42 ) * - 53 + - + 64 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL COUNT ( ALL - 42 ) * - 53 + - + 64 AS col1
----
-117

query II rowsort
SELECT + 0 + - 13 col0, 55 * + 75 * - 94 AS col0
----
-13
-387750

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT DISTINCT 0 DIV + - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT 0 / + - 18 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT ( + ( 32 ) ) * COALESCE ( - 97, + 30 * + 91 ) + - CASE 24 WHEN + 20 + + ( + 19 ) / + COUNT( * ) THEN + 33 + - 5 ELSE 20 + 33 END AS col2
----
-3157

skipif mysql # not compatible
query I rowsort label-5048
SELECT ( + ( 32 ) ) * COALESCE ( - 97, + 30 * + 91 ) + - CASE 24 WHEN + 20 + + ( + 19 ) / + COUNT ( * ) THEN + 33 + - 5 ELSE 20 + 33 END AS col2
----
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL 35 * - COUNT( ALL - 22 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL 35 * - COUNT ( ALL - 22 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT MAX( + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-5050
SELECT MAX ( + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - 22 + - NULLIF ( + + 39, - CASE + + 8 WHEN - 57 THEN + 30 ELSE - COUNT( * ) * - - 91 END * - + 68 * 0 - 31 / 37 )
----
-61

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 22 + - NULLIF ( + + 39, - CASE + + 8 WHEN - 57 THEN + 30 ELSE - COUNT ( * ) * - - 91 END * - + 68 * 0 - 31 / 37 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-5052
SELECT MIN( DISTINCT - 10 ) AS col0, 69 + + 66 + 80 * - ( + 39 )
----
-10
-2985

skipif mysql # not compatible
query II rowsort label-5052
SELECT MIN ( DISTINCT - 10 ) AS col0, 69 + + 66 + 80 * - ( + 39 )
----
-10
-2985

query I rowsort
SELECT ALL - ( - - ( - - 5 ) ) - - - 61 * - - 56 * - 54
----
184459

query I rowsort
SELECT - 56 * + + 36 * + + ( + - 84 ) AS col2
----
169344

query I rowsort
SELECT + + 45 + - 13 * + 3
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL + COUNT( * ) * ( 8 ) + - 63 * - 4 * 78
----
19664

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + COUNT ( * ) * ( 8 ) + - 63 * - 4 * 78
----
19664

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT + - 28 DIV 72 * - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT + - 28 / 72 * - 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - 83 * - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5058
SELECT - 83 * - COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5059
SELECT - + 53 - COALESCE ( + 61, - - 59, 28 ) + COUNT( * ) DIV COUNT( DISTINCT - 3 ) - + 72 + - COUNT( * )
----
-186

skipif mysql # not compatible
query I rowsort label-5059
SELECT - + 53 - COALESCE ( + 61, - - 59, 28 ) + COUNT ( * ) / COUNT ( DISTINCT - 3 ) - + 72 + - COUNT ( * )
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL + ( + COALESCE ( + 36, ( - 35 ), - 19 + + + 2 - - 70 ) ) * + COUNT( * ) + + 88 - 33 * 96 col0
----
-3044

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + ( + COALESCE ( + 36, ( - 35 ), - 19 + + + 2 - - 70 ) ) * + COUNT ( * ) + + 88 - 33 * 96 col0
----
-3044

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT - 40 - + 7 * - MAX( ALL + 54 ) AS col2
----
338

skipif mysql # not compatible
query I rowsort label-5061
SELECT - 40 - + 7 * - MAX ( ALL + 54 ) AS col2
----
338

query I rowsort
SELECT ALL 10 * - + 63 * + 58 AS col2
----
-36540

query I rowsort
SELECT - 63 * - 88 col0
----
5544

query I rowsort
SELECT ALL - 82 * 7 AS col0
----
-574

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT - + 1 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-5065
SELECT - + 1 / - 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT - + 38 - 40 col0, MIN( ALL - 47 )
----
-78
-47

skipif mysql # not compatible
query II rowsort label-5066
SELECT - + 38 - 40 col0, MIN ( ALL - 47 )
----
-78
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT - - 27 * + 10 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT - - 27 * + 10 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - - COUNT( * ) * - 67 + + 47 - + COUNT( * ) * - 78 * + 2
----
136

skipif mysql # not compatible
query I rowsort label-5068
SELECT - - COUNT ( * ) * - 67 + + 47 - + COUNT ( * ) * - 78 * + 2
----
136

query I rowsort
SELECT - - 63 - - 2 AS col0
----
65

query I rowsort
SELECT - + 80 col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5071
SELECT ALL + SUM( DISTINCT 24 ) DIV + + 48 * + - 24 + COUNT( * ) + + 29 + 58 AS col0, - 72 col0
----
88
-72

skipif mysql # not compatible
query II rowsort label-5071
SELECT ALL + SUM ( DISTINCT 24 ) / + + 48 * + - 24 + COUNT ( * ) + + 29 + 58 AS col0, - 72 col0
----
88
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5072
SELECT DISTINCT + 27 DIV 52 * MIN( ALL 13 ) + 21 * 75 AS col0
----
1575

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT + 27 / 52 * MIN ( ALL 13 ) + 21 * 75 AS col0
----
1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT ALL COUNT( * ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 99 * + 4
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + COALESCE ( + COUNT( * ), COUNT( * ) * - 70 * 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5075
SELECT + COALESCE ( + COUNT ( * ), COUNT ( * ) * - 70 * 4 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5076
SELECT SUM( - - 85 ) * 77 + - CAST( + 68 AS SIGNED ) * - + 53 * - - 73 + SUM( DISTINCT - 37 ) + + 72
----
269672

skipif mysql # not compatible
query I rowsort label-5076
SELECT SUM ( - - 85 ) * 77 + - CAST ( + 68 AS INTEGER ) * - + 53 * - - 73 + SUM ( DISTINCT - 37 ) + + 72
----
269672

query I rowsort
SELECT - ( + 32 ) + - 25 AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT - 33 * 67 * - CAST( + + 93 AS SIGNED ) + - - 91 * + - 17 AS col0
----
204076

skipif mysql # not compatible
query I rowsort label-5078
SELECT - 33 * 67 * - CAST ( + + 93 AS INTEGER ) + - - 91 * + - 17 AS col0
----
204076

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT + ( + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5079
SELECT + ( + - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + 56 col0
----
56

query I rowsort
SELECT + 33 + + - 74 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL COUNT( * ) * - - 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL COUNT ( * ) * - - 41 AS col0
----
41

query I rowsort
SELECT + 45 * + CASE - + 66 WHEN 20 * + 61 * - ( + 67 ) THEN NULL WHEN + 1 THEN + + 66 END * + 78 * 44 AS col0
----
NULL

query I rowsort
SELECT CASE + - 62 WHEN + 49 THEN + - 85 * - - 49 * + 11 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT 37 * - + COUNT( * ) + + - 51
----
-88

skipif mysql # not compatible
query I rowsort label-5085
SELECT 37 * - + COUNT ( * ) + + - 51
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + + 99 * - 63 * COUNT( DISTINCT - 57 )
----
-6237

skipif mysql # not compatible
query I rowsort label-5086
SELECT + + 99 * - 63 * COUNT ( DISTINCT - 57 )
----
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL SUM( ALL - - NULLIF ( - 11, - 56 ) ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL SUM ( ALL - - NULLIF ( - 11, - 56 ) ) * - 0 AS col0
----
0

query I rowsort
SELECT + 25 + + ( + + 35 )
----
60

query I rowsort
SELECT DISTINCT ( 32 ) * + 52
----
1664

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT - + MIN( 92 ) col1
----
-92

skipif mysql # not compatible
query I rowsort label-5090
SELECT - + MIN ( 92 ) col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL + 11 + - CAST( + 83 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL + 11 + - CAST ( + 83 AS INTEGER )
----
-72

query I rowsort
SELECT ALL + 53 + + + 16 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT 10 + - - MAX( - 33 )
----
-23

skipif mysql # not compatible
query I rowsort label-5093
SELECT 10 + - - MAX ( - 33 )
----
-23

query I rowsort
SELECT + 5 * - 66 col0
----
-330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5095
SELECT ALL 44 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL 44 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT 0 * + 93 - + COUNT( DISTINCT - 69 ) + 13
----
12

skipif mysql # not compatible
query I rowsort label-5096
SELECT 0 * + 93 - + COUNT ( DISTINCT - 69 ) + 13
----
12

query I rowsort
SELECT + 88 + + 6 + + 60 * + 14 * - 97 * ( - + ( + + 94 ) ) + - + 71 col2
----
7659143

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL - ( + + 6 ) + + COUNT( * ) + 36 col1
----
31

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL - ( + + 6 ) + + COUNT ( * ) + 36 col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT + 59 + - + CASE - 20 WHEN NULLIF ( + ( 98 ), + - COUNT( * ) ) * - 66 / - ( + 74 ) THEN NULL WHEN - + 48 THEN NULL ELSE - 93 END AS col1
----
152

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + 59 + - + CASE - 20 WHEN NULLIF ( + ( 98 ), + - COUNT ( * ) ) * - 66 / - ( + 74 ) THEN NULL WHEN - + 48 THEN NULL ELSE - 93 END AS col1
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT ALL CAST( NULL AS SIGNED ) / - - NULLIF ( - + 5, + 7 * - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL CAST ( NULL AS INTEGER ) / - - NULLIF ( - + 5, + 7 * - 31 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT - ( - 89 ) + - + COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT - ( - 89 ) + - + COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT COUNT( * ) * + 14
----
14

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT COUNT ( * ) * + 14
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT COUNT( * ) DIV + - 50 col2
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT COUNT ( * ) / + - 50 col2
----
0

query II rowsort
SELECT - - 72 AS col1, 33 AS col2
----
72
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5105
SELECT CASE - COUNT( * ) WHEN COUNT( * ) * - - 36 THEN NULL WHEN MIN( ALL CAST( NULL AS SIGNED ) ) THEN NULL ELSE 81 END - + 71 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5105
SELECT CASE - COUNT ( * ) WHEN COUNT ( * ) * - - 36 THEN NULL WHEN MIN ( ALL CAST ( NULL AS INTEGER ) ) THEN NULL ELSE 81 END - + 71 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5106
SELECT - 17 DIV - + MIN( + 87 ) + CAST( + ( + 39 ) AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-5106
SELECT - 17 / - + MIN ( + 87 ) + CAST ( + ( + 39 ) AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT DISTINCT + 95 - + COALESCE ( + 74, + 97 * + + COUNT( * ) + - + 60, - + 60 ) AS col2, ( 69 ) * 64 * + 79 AS col0
----
21
348864

skipif mysql # not compatible
query II rowsort label-5107
SELECT DISTINCT + 95 - + COALESCE ( + 74, + 97 * + + COUNT ( * ) + - + 60, - + 60 ) AS col2, ( 69 ) * 64 * + 79 AS col0
----
21
348864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT ALL - 40 / - 38 * + - CASE + 42 WHEN + 8 / - COALESCE ( - 6, - CAST( + 24 AS SIGNED ) + COUNT( * ) + ( 35 ) ) + + COUNT( * ) + + - 24 / - 51 THEN - MIN( ( 98 ) ) + + 36 WHEN + 72 THEN NULL WHEN COUNT( * ) / 31 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - 40 / - 38 * + - CASE + 42 WHEN + 8 / - COALESCE ( - 6, - CAST ( + 24 AS INTEGER ) + COUNT ( * ) + ( 35 ) ) + + COUNT ( * ) + + - 24 / - 51 THEN - MIN ( ( 98 ) ) + + 36 WHEN + 72 THEN NULL WHEN COUNT ( * ) / 31 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 15 + + 60 + 60
----
135

query I rowsort
SELECT - 29 * - + 35 + - 11 AS col2
----
1004

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - ( + COUNT( - 16 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - ( + COUNT ( - 16 ) ) AS col1
----
-1

query I rowsort
SELECT 95 * + 42 col1
----
3990

query I rowsort
SELECT DISTINCT + 95 - - - 47 col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT + 50 * + CASE 26 WHEN + - 81 + - 44 THEN NULL WHEN COUNT( * ) * + - COALESCE ( - 94, + + COUNT( * ) ) + CASE - 50 WHEN + + 86 THEN + - ( + - 3 ) * 50 ELSE + 33 END + + ( - 65 ) THEN - MIN( 74 ) ELSE - NULLIF ( 30, - MIN( DISTINCT - 81 ) ) END
----
-1500

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT + 50 * + CASE 26 WHEN + - 81 + - 44 THEN NULL WHEN COUNT ( * ) * + - COALESCE ( - 94, + + COUNT ( * ) ) + CASE - 50 WHEN + + 86 THEN + - ( + - 3 ) * 50 ELSE + 33 END + + ( - 65 ) THEN - MIN ( 74 ) ELSE - NULLIF ( 30, - MIN ( DISTINCT - 81 ) ) END
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT NULLIF ( + + CASE + 1 WHEN - 90 THEN + COUNT( * ) END, - - 81 ) * + 45 / - - NULLIF ( + COUNT( * ), + NULLIF ( + COUNT( * ), - 97 ) ) + + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT NULLIF ( + + CASE + 1 WHEN - 90 THEN + COUNT ( * ) END, - - 81 ) * + 45 / - - NULLIF ( + COUNT ( * ), + NULLIF ( + COUNT ( * ), - 97 ) ) + + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT - 16 * - 96 + ( + + COUNT( * ) ) + + + 78 DIV + + 23
----
1540

skipif mysql # not compatible
query I rowsort label-5116
SELECT - 16 * - 96 + ( + + COUNT ( * ) ) + + + 78 / + + 23
----
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5117
SELECT 23 * + - 0 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5117
SELECT 23 * + - 0 / - COUNT ( * )
----
0

query I rowsort
SELECT 59 * - 16
----
-944

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT ALL - MIN( - + 10 ) AS col1, - COUNT( * ) + - MIN( + 51 )
----
10
-52

skipif mysql # not compatible
query II rowsort label-5119
SELECT ALL - MIN ( - + 10 ) AS col1, - COUNT ( * ) + - MIN ( + 51 )
----
10
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5120
SELECT DISTINCT + - 35 + - - 50 + + + 27 * + + 16 * - 99 + - CASE 74 WHEN 30 THEN - CASE + 37 WHEN + - 4 THEN - 69 * 15 WHEN + - CAST( COUNT( * ) AS SIGNED ) + + 11 THEN NULL END / - 49 WHEN COUNT( * ) * - 30 THEN NULL ELSE NULL END * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + - 35 + - - 50 + + + 27 * + + 16 * - 99 + - CASE 74 WHEN 30 THEN - CASE + 37 WHEN + - 4 THEN - 69 * 15 WHEN + - CAST ( COUNT ( * ) AS INTEGER ) + + 11 THEN NULL END / - 49 WHEN COUNT ( * ) * - 30 THEN NULL ELSE NULL END * + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL - 82 + - + 42
----
-124

query I rowsort
SELECT 38 * + - 11 * - 26 AS col1
----
10868

query I rowsort
SELECT ALL 28 * + 96 * 47
----
126336

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT - COUNT( * ) * 23 * - - 84
----
-1932

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT - COUNT ( * ) * 23 * - - 84
----
-1932

query I rowsort
SELECT - 2 + + + 14
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT ALL 55 + + 28 * - + 53 DIV + 52
----
27

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL 55 + + 28 * - + 53 / + 52
----
27

query II rowsort
SELECT 17 - + + 46 AS col0, 5
----
-29
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL + COUNT( * ) - + 49 - - + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL + COUNT ( * ) - + 49 - - + COUNT ( * )
----
-47

query I rowsort
SELECT 43 + - 16 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5130
SELECT 86 * + NULLIF ( - ( + 45 ), - NULLIF ( + CAST( - ( + 68 ) AS SIGNED ), SUM( DISTINCT + 47 ) + + COALESCE ( COUNT( * ), - + 68 * - MIN( 92 ) * - COALESCE ( 41 * - ( - 62 ), - COUNT( + 7 ) ) ) * ( + ( - 5 ) / 23 ) ) )
----
-3870

skipif mysql # not compatible
query I rowsort label-5130
SELECT 86 * + NULLIF ( - ( + 45 ), - NULLIF ( + CAST ( - ( + 68 ) AS INTEGER ), SUM ( DISTINCT + 47 ) + + COALESCE ( COUNT ( * ), - + 68 * - MIN ( 92 ) * - COALESCE ( 41 * - ( - 62 ), - COUNT ( + 7 ) ) ) * ( + ( - 5 ) / 23 ) ) )
----
-3870

query I rowsort
SELECT 8 - 31
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT DISTINCT 70 DIV + 83 * - 39 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT 70 / + 83 * - 39 * - + COUNT ( * )
----
0

query I rowsort
SELECT 89 * - 98 col1
----
-8722

query I rowsort
SELECT 24 * 93 AS col2
----
2232

query I rowsort
SELECT ALL - 36 * + 31 AS col1
----
-1116

query II rowsort
SELECT ALL 70 col1, 42 AS col1
----
70
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT - COUNT( ALL 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-5137
SELECT - COUNT ( ALL 3 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT DISTINCT 34 DIV - + 81 col1
----
0

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT 34 / - + 81 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5139
SELECT 8 + + - CAST( NULL AS SIGNED ) * - + 84 + 39 * + + 55 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT 8 + + - CAST ( NULL AS INTEGER ) * - + 84 + 39 * + + 55 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 69 * - 48 AS col0
----
-3312

query I rowsort
SELECT + 25 * 76 + 80 AS col1
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT 30 - 46 + + ( - + COUNT( - 85 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-5142
SELECT 30 - 46 + + ( - + COUNT ( - 85 ) )
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT 73 DIV 23 + + NULLIF ( - COUNT( * ), + 96 ) * - 75
----
78

skipif mysql # not compatible
query I rowsort label-5143
SELECT 73 / 23 + + NULLIF ( - COUNT ( * ), + 96 ) * - 75
----
78

query I rowsort
SELECT 40 * 78
----
3120

query I rowsort
SELECT ALL - ( + - 4 )
----
4

query I rowsort
SELECT 20 + + - 52 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5147
SELECT COUNT( * ), 97 AS col0
----
1
97

skipif mysql # not compatible
query II rowsort label-5147
SELECT COUNT ( * ), 97 AS col0
----
1
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5148
SELECT 30 + + 72 * + - NULLIF ( - 46, - - ( - + MIN( + CAST( NULL AS SIGNED ) ) ) + 25 * COUNT( * ) ) + + NULLIF ( + 8, - 6 ) * + 11
----
3430

skipif mysql # not compatible
query I rowsort label-5148
SELECT 30 + + 72 * + - NULLIF ( - 46, - - ( - + MIN ( + CAST ( NULL AS INTEGER ) ) ) + 25 * COUNT ( * ) ) + + NULLIF ( + 8, - 6 ) * + 11
----
3430

query I rowsort
SELECT DISTINCT - 75 * + 16 + - - 53 AS col1
----
-1147

query I rowsort
SELECT ALL - 55 * + 23 * 40 AS col1
----
-50600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5151
SELECT - - COUNT( * ) * 73 + 99 - - + 35 + - - COUNT( * ) + + CAST( + - 99 AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-5151
SELECT - - COUNT ( * ) * 73 + 99 - - + 35 + - - COUNT ( * ) + + CAST ( + - 99 AS INTEGER )
----
109

query I rowsort
SELECT ALL + + 8 * 72 + 28 * + + 26 + + - ( - 23 ) * ( + 81 )
----
3167

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5153
SELECT DISTINCT + COALESCE ( - 68, + 45 ) AS col1, CAST( NULL AS SIGNED ) * - 23 / - - 12 + + 58 + - 2
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-5153
SELECT DISTINCT + COALESCE ( - 68, + 45 ) AS col1, CAST ( NULL AS INTEGER ) * - 23 / - - 12 + + 58 + - 2
----
-68
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT - 60 * SUM( - 48 ) DIV + 54
----
53

skipif mysql # not compatible
query I rowsort label-5154
SELECT - 60 * SUM ( - 48 ) / + 54
----
53

query I rowsort
SELECT - 29 + + 63 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL - 94 * COUNT( * ) - 26 * + - 86
----
2142

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - 94 * COUNT ( * ) - 26 * + - 86
----
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - 43 + SUM( DISTINCT - 3 ) + + 8 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-5157
SELECT - 43 + SUM ( DISTINCT - 3 ) + + 8 AS col2
----
-38

query I rowsort
SELECT DISTINCT - + 70 * - + 91
----
6370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT - - COUNT( * ) * + 19 DIV - MAX( ALL + 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5159
SELECT - - COUNT ( * ) * + 19 / - MAX ( ALL + 66 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT + + ( - 18 ) + + 6 + - COUNT( * ) * MAX( DISTINCT + 2 ) * - 63 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-5160
SELECT + + ( - 18 ) + + 6 + - COUNT ( * ) * MAX ( DISTINCT + 2 ) * - 63 AS col0
----
114

query I rowsort
SELECT ALL + 70 + - + 97 * 57 - + - 20
----
-5439

query I rowsort
SELECT - + 64 + + 26 AS col0
----
-38

query I rowsort
SELECT DISTINCT NULLIF ( - 33, + AVG ( - 84 ) / + 38 ) AS col0
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-5164
SELECT ALL 62 DIV - + 46 + + 86, - COALESCE ( - 6, 45 ) AS col1
----
85
6

skipif mysql # not compatible
query II rowsort label-5164
SELECT ALL 62 / - + 46 + + 86, - COALESCE ( - 6, 45 ) AS col1
----
85
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5165
SELECT DISTINCT ( + COUNT( + + 41 ) ) col2, - 72 DIV + 34 + - 12 AS col0
----
1
-14

skipif mysql # not compatible
query II rowsort label-5165
SELECT DISTINCT ( + COUNT ( + + 41 ) ) col2, - 72 / + 34 + - 12 AS col0
----
1
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL + 9 - + MIN( - + 77 )
----
86

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + 9 - + MIN ( - + 77 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT - 89 DIV + 99 + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-5167
SELECT - 89 / + 99 + - 37
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL CAST( NULL AS SIGNED ) / - + MAX( ALL - + ( - 35 ) ) + + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL CAST ( NULL AS INTEGER ) / - + MAX ( ALL - + ( - 35 ) ) + + 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5169
SELECT - + COUNT( * ) + + 53 + 52 col2, 5 + - - 56 + + CASE - 21 WHEN - 66 THEN NULL WHEN 72 + 96 + + 57 THEN - COUNT( * ) ELSE NULL END + - 92 col2
----
104
NULL

skipif mysql # not compatible
query II rowsort label-5169
SELECT - + COUNT ( * ) + + 53 + 52 col2, 5 + - - 56 + + CASE - 21 WHEN - 66 THEN NULL WHEN 72 + 96 + + 57 THEN - COUNT ( * ) ELSE NULL END + - 92 col2
----
104
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5170
SELECT DISTINCT COUNT( * ) * - + COALESCE ( - - 95, - + 57, - 70 * + - 21 * 14 + - 74 - COUNT( * ) DIV + AVG ( ALL + - 92 ) DIV - 49 DIV 21 )
----
-95

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT COUNT ( * ) * - + COALESCE ( - - 95, - + 57, - 70 * + - 21 * 14 + - 74 - COUNT ( * ) / + AVG ( ALL + - 92 ) / - 49 / 21 )
----
-95

query I rowsort
SELECT + 70 * + 52
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL - 77 * + COUNT( * ) * 86
----
-6622

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - 77 * + COUNT ( * ) * 86
----
-6622

query I rowsort
SELECT + 88 + - 98 + - 64 col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT 94 * - COALESCE ( 17, 28 * - + COUNT( * ) ) AS col2
----
-1598

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT 94 * - COALESCE ( 17, 28 * - + COUNT ( * ) ) AS col2
----
-1598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT + 64 + - SUM( - CAST( NULL AS SIGNED ) ) + - + 36 * - - NULLIF ( 70, - 76 + - 56 / CASE - + MAX( ALL + 53 ) WHEN + + 83 + - 22 * + 46 * - + ( - 39 ) THEN 88 WHEN MAX( + 26 ) + - 70 THEN + 20 * - COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) ELSE NULL END ) * + CASE + MIN( + 54 ) * 8 WHEN NULLIF ( + 17, + 77 ) THEN 69 WHEN - COUNT( * ) * - 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT + 64 + - SUM ( - CAST ( NULL AS INTEGER ) ) + - + 36 * - - NULLIF ( 70, - 76 + - 56 / CASE - + MAX ( ALL + 53 ) WHEN + + 83 + - 22 * + 46 * - + ( - 39 ) THEN 88 WHEN MAX ( + 26 ) + - 70 THEN + 20 * - COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) ELSE NULL END ) * + CASE + MIN ( + 54 ) * 8 WHEN NULLIF ( + 17, + 77 ) THEN 69 WHEN - COUNT ( * ) * - 13 THEN NULL END
----
NULL

query II rowsort
SELECT ALL 28 * - - 47, 65 AS col0
----
1316
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT + CAST( NULL AS SIGNED ) - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT + CAST ( NULL AS INTEGER ) - + 53
----
NULL

query II rowsort
SELECT ALL 82 AS col1, 2 col2
----
82
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT - 71 DIV + + 65 + + 96 * 32
----
3071

skipif mysql # not compatible
query I rowsort label-5179
SELECT - 71 / + + 65 + + 96 * 32
----
3071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5180
SELECT ( CAST( + 31 AS SIGNED ) )
----
31

skipif mysql # not compatible
query I rowsort label-5180
SELECT ( CAST ( + 31 AS INTEGER ) )
----
31

query I rowsort
SELECT + 4 * + + 37 col1
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5182
SELECT ALL - 25 DIV + NULLIF ( 39, + - 12 ) + + MAX( + + 50 ) * 75
----
3750

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - 25 / + NULLIF ( 39, + - 12 ) + + MAX ( + + 50 ) * 75
----
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT + CASE - 37 WHEN + - 73 * + 1 THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-5183
SELECT + CASE - 37 WHEN + - 73 * + 1 THEN NULL ELSE + COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5184
SELECT + ( - COUNT( * ) ) * - CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) + - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT + ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) + - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT - COUNT( * ) * + 80 + - 80 + - + 27
----
-187

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT - COUNT ( * ) * + 80 + - 80 + - + 27
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL + 48 * - - COALESCE ( - ( 50 ), - MIN( DISTINCT - - 79 ) + + 80 - + + 1 ) + + + COUNT( * )
----
-2399

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + 48 * - - COALESCE ( - ( 50 ), - MIN ( DISTINCT - - 79 ) + + 80 - + + 1 ) + + + COUNT ( * )
----
-2399

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT DISTINCT 76 * - + COUNT( * ) + - 35 col1
----
-111

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT 76 * - + COUNT ( * ) + - 35 col1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT DISTINCT - + 65 * - + COUNT( * ) + - - 68
----
133

skipif mysql # not compatible
query I rowsort label-5188
SELECT DISTINCT - + 65 * - + COUNT ( * ) + - - 68
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5189
SELECT DISTINCT - 98 * + 77 - - - MAX( ALL - CAST( + 26 AS SIGNED ) ) AS col2
----
-7520

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - 98 * + 77 - - - MAX ( ALL - CAST ( + 26 AS INTEGER ) ) AS col2
----
-7520

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + + COUNT( * ) * + - COALESCE ( 74, + 47 ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-5190
SELECT + + COUNT ( * ) * + - COALESCE ( 74, + 47 ) col1
----
-74

query I rowsort
SELECT - + 29 * - + 11 * - 41
----
-13079

query I rowsort
SELECT + - 60 * 59 col2
----
-3540

query II rowsort
SELECT 94, - 47 - + 9 AS col0
----
94
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT + - SUM( ALL + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5194
SELECT + - SUM ( ALL + 95 ) AS col1
----
-95

query I rowsort
SELECT + 80 * + 34 + - 6 AS col2
----
2714

query I rowsort
SELECT - 50 * + + 48
----
-2400

query I rowsort
SELECT ALL + - 33 AS col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5198
SELECT DISTINCT + + 72 AS col1, 80 + + 50 - - MAX( ALL - + 59 ) DIV - + 78 * + 47 + 19
----
72
149

skipif mysql # not compatible
query II rowsort label-5198
SELECT DISTINCT + + 72 AS col1, 80 + + 50 - - MAX ( ALL - + 59 ) / - + 78 * + 47 + 19
----
72
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT ALL - 49 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - 49 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 55 col1
----
55

query I rowsort
SELECT ALL - - 1 * - 22
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5202
SELECT + - ( + ( 10 ) ) + + 79 DIV + - COUNT( * ) + - 11 + + 88 + - + 50
----
-62

skipif mysql # not compatible
query I rowsort label-5202
SELECT + - ( + ( 10 ) ) + + 79 / + - COUNT ( * ) + - 11 + + 88 + - + 50
----
-62

query I rowsort
SELECT - - 53 - + - 74
----
127

query II rowsort
SELECT - ( - 90 ) col0, + 71 * - + 92 col0
----
90
-6532

query I rowsort
SELECT - + 83 + - 99 AS col2
----
-182

query I rowsort
SELECT DISTINCT + 56 * 36
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL + MIN( ALL 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + MIN ( ALL 27 )
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-5208
SELECT ALL + 54 * + ( + 69 ), - CASE - + 11 WHEN - ( + 21 ) THEN NULL ELSE + 52 DIV + 9 + - 70 END AS col2
----
3726
65

skipif mysql # not compatible
query II rowsort label-5208
SELECT ALL + 54 * + ( + 69 ), - CASE - + 11 WHEN - ( + 21 ) THEN NULL ELSE + 52 / + 9 + - 70 END AS col2
----
3726
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5209
SELECT DISTINCT ( 62 ) col0, - COALESCE ( + 88, ( + + 84 ) + - CAST( NULL AS SIGNED ) ) AS col1
----
62
-88

skipif mysql # not compatible
query II rowsort label-5209
SELECT DISTINCT ( 62 ) col0, - COALESCE ( + 88, ( + + 84 ) + - CAST ( NULL AS INTEGER ) ) AS col1
----
62
-88

query I rowsort
SELECT - 23 + 7
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5211
SELECT ALL CAST( - 49 AS SIGNED ), 79 AS col0
----
-49
79

skipif mysql # not compatible
query II rowsort label-5211
SELECT ALL CAST ( - 49 AS INTEGER ), 79 AS col0
----
-49
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT ALL + 9 DIV - - 51
----
0

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + 9 / - - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - ( - + 21 ) * + ( - CASE - 78 WHEN - - 79 THEN + 37 ELSE NULL END ) * 13 * + 41 + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT - ( - + 21 ) * + ( - CASE - 78 WHEN - - 79 THEN + 37 ELSE NULL END ) * 13 * + 41 + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT - 11 + + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5214
SELECT - 11 + + COUNT ( * ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT - 87 + - MIN( ALL + 82 )
----
-169

skipif mysql # not compatible
query I rowsort label-5215
SELECT - 87 + - MIN ( ALL + 82 )
----
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT - 4 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT - 4 / + 83
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5217
SELECT ALL ( + + ( - 80 ) ) + - - 50 + + COUNT( * ) DIV + - 96 + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL ( + + ( - 80 ) ) + - - 50 + + COUNT ( * ) / + - 96 + + COUNT ( * )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT + 86 * MIN( + + 55 ) AS col2, + 55 AS col1
----
4730
55

skipif mysql # not compatible
query II rowsort label-5218
SELECT + 86 * MIN ( + + 55 ) AS col2, + 55 AS col1
----
4730
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5219
SELECT DISTINCT + 92 + - + 98 + + + 20 / + - ( - CAST( NULL AS SIGNED ) ) - - 58 + - 23 + + MIN( DISTINCT + + 7 ) + + 49 + - + 46 * - 75 * - 98 * - 38 * 66 - 40 + 44 * - 17 * + COUNT( * ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + 92 + - + 98 + + + 20 / + - ( - CAST ( NULL AS INTEGER ) ) - - 58 + - 23 + + MIN ( DISTINCT + + 7 ) + + 49 + - + 46 * - 75 * - 98 * - 38 * 66 - 40 + 44 * - 17 * + COUNT ( * ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 10 * - 24 AS col0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL - COUNT( * ) * - NULLIF ( - + 68, - 51 + - - 48 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL - COUNT ( * ) * - NULLIF ( - + 68, - 51 + - - 48 ) AS col1
----
-68

query I rowsort
SELECT ALL 62 + 71 * 7 * 39 * + - 17 * 86
----
-28337884

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT 11 * - 45 * 34 + + COUNT( * ) + - - 46 * + 53
----
-14391

skipif mysql # not compatible
query I rowsort label-5223
SELECT 11 * - 45 * 34 + + COUNT ( * ) + - - 46 * + 53
----
-14391

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT 65 - + COUNT( * ) * 18 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5224
SELECT 65 - + COUNT ( * ) * 18 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL - + COUNT( DISTINCT 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL - + COUNT ( DISTINCT 27 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT - COUNT( - 3 ) / AVG ( - 46 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT - COUNT ( - 3 ) / AVG ( - 46 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT CAST( NULL AS SIGNED ) * - + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT CAST ( NULL AS INTEGER ) * - + 16 AS col1
----
NULL

query I rowsort
SELECT ALL 95 - - + 19 + + + 85
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT - COUNT( ALL - 83 ) + 45
----
44

skipif mysql # not compatible
query I rowsort label-5229
SELECT - COUNT ( ALL - 83 ) + 45
----
44

query II rowsort
SELECT + - ( + 23 ) AS col1, 51
----
-23
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT DISTINCT - CAST( 16 AS SIGNED ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - CAST ( 16 AS INTEGER ) col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT - 12 * + 8 - 37 + COUNT( * ) AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - 12 * + 8 - 37 + COUNT ( * ) AS col0
----
-132

query I rowsort
SELECT ALL - - 22 col0
----
22

query I rowsort
SELECT DISTINCT 66 * - 37 AS col2
----
-2442

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT - 5 + - - 2 DIV + - 20 * - 18 + + 38 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5235
SELECT - 5 + - - 2 / + - 20 * - 18 + + 38 AS col1
----
33

query I rowsort
SELECT ALL + 62 - - - 19 * 83 AS col2
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT + 14 * + NULLIF ( ( COUNT( * ) ), + 95 )
----
14

skipif mysql # not compatible
query I rowsort label-5237
SELECT + 14 * + NULLIF ( ( COUNT ( * ) ), + 95 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT CAST( - NULLIF ( - + 77, + - 81 ) AS SIGNED ) + - + 9 - 7 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5238
SELECT CAST ( - NULLIF ( - + 77, + - 81 ) AS INTEGER ) + - + 9 - 7 AS col0
----
61

query I rowsort
SELECT DISTINCT - - 6 AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT - 80 DIV + 7 + + - 17
----
-28

skipif mysql # not compatible
query I rowsort label-5240
SELECT - 80 / + 7 + + - 17
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5241
SELECT + 6 * + 75 + - 57 + + COUNT( * ) DIV COUNT( * ) AS col2, - 27
----
394
-27

skipif mysql # not compatible
query II rowsort label-5241
SELECT + 6 * + 75 + - 57 + + COUNT ( * ) / COUNT ( * ) AS col2, - 27
----
394
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5242
SELECT - 64 * - 75 * + 37, + 52 * 67 - + + COUNT( * ) AS col2
----
177600
3483

skipif mysql # not compatible
query II rowsort label-5242
SELECT - 64 * - 75 * + 37, + 52 * 67 - + + COUNT ( * ) AS col2
----
177600
3483

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT CASE + 20 WHEN + 38 * - + 49 * - 20 THEN - ( + + SUM( + ( - 91 ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT CASE + 20 WHEN + 38 * - + 49 * - 20 THEN - ( + + SUM ( + ( - 91 ) ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 56, + 99 AS col2
----
-56
99

query I rowsort
SELECT 14 * + + 16
----
224

query II rowsort
SELECT ALL 13 AS col2, + 97
----
13
97

query I rowsort
SELECT 95 + + 48 AS col1
----
143

query I rowsort
SELECT ( + - 42 ) * - 47 col0
----
1974

query I rowsort
SELECT 40 * + 5
----
200

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT DISTINCT + COUNT( * ) + + + 35 + + 22 * 33 - + 57 * - - 32 AS col1, - 15 * 11 - + 99 AS col0
----
-1062
-264

skipif mysql # not compatible
query II rowsort label-5250
SELECT DISTINCT + COUNT ( * ) + + + 35 + + 22 * 33 - + 57 * - - 32 AS col1, - 15 * 11 - + 99 AS col0
----
-1062
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT SUM( 62 ) + 22 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5251
SELECT SUM ( 62 ) + 22 AS col1
----
84

query I rowsort
SELECT DISTINCT + 6 + - 25 col1
----
-19

query I rowsort
SELECT 39 + + COALESCE ( 57, + 57 * 5 ) * ( - 59 ) col2
----
-3324

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT ALL - ( ( - - COUNT( * ) ) ) + - 12 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL - ( ( - - COUNT ( * ) ) ) + - 12 AS col2
----
-13

query I rowsort
SELECT DISTINCT 95 col0
----
95

query II rowsort
SELECT ALL 47 AS col2, 24 * + - 55
----
47
-1320

query I rowsort
SELECT 32 - + 5
----
27

query I rowsort
SELECT 68 * - 90 AS col1
----
-6120

query I rowsort
SELECT ALL - 43 - + + 72 AS col1
----
-115

query I rowsort
SELECT + - 78 * + 8 + + + 74 col1
----
-550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5261
SELECT 46 * COALESCE ( + 44, + + 37 DIV - 82 DIV - + SUM( - 99 ) + - MIN( ALL + 89 ), + - 93 DIV + + 30 DIV + - COALESCE ( 81, 48 * 30 ) ) AS col0
----
2024

skipif mysql # not compatible
query I rowsort label-5261
SELECT 46 * COALESCE ( + 44, + + 37 / - 82 / - + SUM ( - 99 ) + - MIN ( ALL + 89 ), + - 93 / + + 30 / + - COALESCE ( 81, 48 * 30 ) ) AS col0
----
2024

query I rowsort
SELECT - 53 * + 85 AS col0
----
-4505

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL - 63 * - 15 + - COUNT( * ) + + + ( + + 12 )
----
956

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - 63 * - 15 + - COUNT ( * ) + + + ( + + 12 )
----
956

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + + SUM( ALL 66 )
----
66

skipif mysql # not compatible
query I rowsort label-5264
SELECT + + SUM ( ALL 66 )
----
66

query I rowsort
SELECT ALL - - 21 - + ( + 30 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5266
SELECT + 6, NULLIF ( ( - 31 ), + 77 * - - COUNT( * ) * - 69 / COUNT( * ) * - 27 + + + 17 ) * - ( + 26 ) AS col0
----
6
806

skipif mysql # not compatible
query II rowsort label-5266
SELECT + 6, NULLIF ( ( - 31 ), + 77 * - - COUNT ( * ) * - 69 / COUNT ( * ) * - 27 + + + 17 ) * - ( + 26 ) AS col0
----
6
806

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5267
SELECT DISTINCT + - COUNT( * ) * + 61 * COUNT( * ) * 39 AS col0, 68 DIV - 78 col1
----
-2379
0

skipif mysql # not compatible
query II rowsort label-5267
SELECT DISTINCT + - COUNT ( * ) * + 61 * COUNT ( * ) * 39 AS col0, 68 / - 78 col1
----
-2379
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT + 3 * COUNT( 58 )
----
3

skipif mysql # not compatible
query I rowsort label-5268
SELECT + 3 * COUNT ( 58 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT ALL - + 72, 93 + + + 56 + COUNT( * ) * + - ( - - 40 ) col2
----
-72
109

skipif mysql # not compatible
query II rowsort label-5269
SELECT ALL - + 72, 93 + + + 56 + COUNT ( * ) * + - ( - - 40 ) col2
----
-72
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT DISTINCT - + SUM( ALL + 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5270
SELECT DISTINCT - + SUM ( ALL + 97 ) AS col2
----
-97

query II rowsort
SELECT - 13 AS col1, 55 * 35
----
-13
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT NULLIF ( - COUNT( * ), - - 95 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5272
SELECT NULLIF ( - COUNT ( * ), - - 95 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 39 * - ( - NULLIF ( 40, - CASE 9 WHEN 91 * - 90 * 8 + + 73 + - 23 * - 40 THEN + 85 END ) ) AS col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL + COUNT( * ) + - 23 * 45
----
-1034

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL + COUNT ( * ) + - 23 * 45
----
-1034

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT + 5 * 90 DIV + + 76
----
5

skipif mysql # not compatible
query I rowsort label-5275
SELECT + 5 * 90 / + + 76
----
5

query I rowsort
SELECT DISTINCT 84 + - + 86
----
-2

query I rowsort
SELECT 98 + + 33
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT 18 * - 63 - - COUNT( * )
----
-1133

skipif mysql # not compatible
query I rowsort label-5278
SELECT 18 * - 63 - - COUNT ( * )
----
-1133

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT 52 DIV + + 9
----
5

skipif mysql # not compatible
query I rowsort label-5279
SELECT 52 / + + 9
----
5

query I rowsort
SELECT 23 * - + 44 AS col0
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT DISTINCT 5 + - 17 + + COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT 5 + - 17 + + COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT - CASE + - COUNT( * ) WHEN - + COUNT( * ) THEN - 27 END
----
27

skipif mysql # not compatible
query I rowsort label-5282
SELECT - CASE + - COUNT ( * ) WHEN - + COUNT ( * ) THEN - 27 END
----
27

query I rowsort
SELECT + 34 + + 39 * - 45
----
-1721

query I rowsort
SELECT ALL + 56 * + - 73 AS col1
----
-4088

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - NULLIF ( + 81, + 66 * - 81 * + COUNT( * ) )
----
-81

skipif mysql # not compatible
query I rowsort label-5285
SELECT - NULLIF ( + 81, + 66 * - 81 * + COUNT ( * ) )
----
-81

query II rowsort
SELECT DISTINCT - 11 - - 69, 79 col1
----
58
79

query I rowsort
SELECT ALL + 57 * 80 * - 85 AS col1
----
-387600

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT DISTINCT 16 - + 76 * - COUNT( ALL + 98 ) + + - 48 + + 59
----
103

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT 16 - + 76 * - COUNT ( ALL + 98 ) + + - 48 + + 59
----
103

query I rowsort
SELECT + + ( - + 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5290
SELECT DISTINCT + CAST( + - 36 AS SIGNED ) * - 76 * + 17 * 16 + - + COUNT( * ) * - 58 - + 84 DIV - + ( + + 97 ) * 67 AS col2
----
744250

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + CAST ( + - 36 AS INTEGER ) * - 76 * + 17 * 16 + - + COUNT ( * ) * - 58 - + 84 / - + ( + + 97 ) * 67 AS col2
----
744250

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT - + 62 DIV 85 * 5
----
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT - + 62 / 85 * 5
----
0

query I rowsort
SELECT - ( 82 ) * 29 col0
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT + 11 * - COUNT( * ) + - 57 * + 8
----
-467

skipif mysql # not compatible
query I rowsort label-5293
SELECT + 11 * - COUNT ( * ) + - 57 * + 8
----
-467

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5294
SELECT + COUNT( * ) DIV - - 85 * 38 DIV + - 80 + + + 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5294
SELECT + COUNT ( * ) / - - 85 * 38 / + - 80 + + + 7 AS col0
----
7

query I rowsort
SELECT ALL - - 44 * 52 + 34
----
2322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5296
SELECT - ( - 19 ) DIV - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-5296
SELECT - ( - 19 ) / - COUNT ( * )
----
-19

query I rowsort
SELECT + + 90 * - 63 AS col1
----
-5670

query I rowsort
SELECT - - 79 + + 80
----
159

query I rowsort
SELECT - - 21 * - 14 AS col0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT + + 72 * + 86 + + SUM( - - 8 ) + + 13 * + 58 AS col2
----
6954

skipif mysql # not compatible
query I rowsort label-5300
SELECT + + 72 * + 86 + + SUM ( - - 8 ) + + 13 * + 58 AS col2
----
6954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT 30 * COUNT( * ) * - - CASE 75 WHEN + - 31 THEN + SUM( ALL 95 ) END + 70 + + + COUNT( * ) + - - 90 - CAST( + SUM( - 60 ) AS SIGNED ) / 24 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT 30 * COUNT ( * ) * - - CASE 75 WHEN + - 31 THEN + SUM ( ALL 95 ) END + 70 + + + COUNT ( * ) + - - 90 - CAST ( + SUM ( - 60 ) AS INTEGER ) / 24 * - + COUNT ( * )
----
NULL

query I rowsort
SELECT + + 55 + - 15 + 13 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT DISTINCT + 48 * + NULLIF ( + + COUNT( * ), + + SUM( - + 97 ) + 85 ) + 39 + + - 85 - + 99
----
-97

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT + 48 * + NULLIF ( + + COUNT ( * ), + + SUM ( - + 97 ) + 85 ) + 39 + + - 85 - + 99
----
-97

query I rowsort
SELECT - 88 * - - 51 * - 45
----
201960

query I rowsort
SELECT ALL - NULLIF ( + 11, 42 ) * - 23 * + 78 + + 6 * 61 AS col0
----
20100

query II rowsort
SELECT ALL 68 AS col0, 26 AS col0
----
68
26

query I rowsort
SELECT + 58 * 65
----
3770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT CAST( + 35 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT CAST ( + 35 AS INTEGER ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT MAX( ALL + - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-5309
SELECT MAX ( ALL + - 91 )
----
-91

query I rowsort
SELECT ALL 16 - + 76 AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5311
SELECT - 22 - - COUNT( * ) + - ( - + MAX( DISTINCT + NULLIF ( + + 29, + 74 + - 75 + + ( + 9 ) + + + CAST( NULL AS SIGNED ) / + + 10 ) ) ) + - + 65 + - CASE + 82 WHEN + - CASE 7 WHEN + - 18 THEN + MAX( DISTINCT - 29 ) ELSE - 11 - - SUM( ALL 45 ) * - 1 END THEN NULL WHEN 78 THEN + COUNT( * ) / 95 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT - 22 - - COUNT ( * ) + - ( - + MAX ( DISTINCT + NULLIF ( + + 29, + 74 + - 75 + + ( + 9 ) + + + CAST ( NULL AS INTEGER ) / + + 10 ) ) ) + - + 65 + - CASE + 82 WHEN + - CASE 7 WHEN + - 18 THEN + MAX ( DISTINCT - 29 ) ELSE - 11 - - SUM ( ALL 45 ) * - 1 END THEN NULL WHEN 78 THEN + COUNT ( * ) / 95 END AS col0
----
NULL

query I rowsort
SELECT + 28 * - + 30 AS col1
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT + 39 + + + COUNT( * ) + + ( + 33 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5313
SELECT + 39 + + + COUNT ( * ) + + ( + 33 ) AS col2
----
73

query I rowsort
SELECT + 92 * + - 61 col1
----
-5612

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT - MIN( DISTINCT 4 ) * + 39
----
-156

skipif mysql # not compatible
query I rowsort label-5315
SELECT - MIN ( DISTINCT 4 ) * + 39
----
-156

query I rowsort
SELECT + ( - 59 ) * 49
----
-2891

query I rowsort
SELECT + 85 + - + 43
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-5318
SELECT ALL 57 col2, - COUNT( * )
----
57
-1

skipif mysql # not compatible
query II rowsort label-5318
SELECT ALL 57 col2, - COUNT ( * )
----
57
-1

query II rowsort
SELECT ALL 80 AS col2, + 20 * + 2
----
80
40

query I rowsort
SELECT DISTINCT ( - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL + COUNT( * ) * + - ( + 50 ) + + COUNT( * ) + 53 + - 84
----
-80

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL + COUNT ( * ) * + - ( + 50 ) + + COUNT ( * ) + 53 + - 84
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + + 0 * - - MAX( ALL ( - 82 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5322
SELECT + + 0 * - - MAX ( ALL ( - 82 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT - - SUM( - 19 ) + + 37 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5323
SELECT - - SUM ( - 19 ) + + 37 AS col2
----
18

query I rowsort
SELECT DISTINCT - 72 * CASE + 62 WHEN 72 - 10 THEN - 4 END * 2 + - 5 AS col0
----
571

query I rowsort
SELECT - 60 * + 88 AS col1
----
-5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5326
SELECT DISTINCT - 90 DIV - - 90 + - 96 DIV + ( + ( - 41 ) ) DIV - COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - 90 / - - 90 + - 96 / + ( + ( - 41 ) ) / - COUNT ( * ) AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5327
SELECT DISTINCT + - 60 DIV - 83 * COUNT( * ) * 50 * - 21 * NULLIF ( ( CAST( 46 AS SIGNED ) ), - + COALESCE ( - + MIN( ALL - - 16 ), - 7 + + + 91 DIV + 56 ) * 66 * - 16 ) * - - COUNT( + 18 ) + + 32
----
32

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT + - 60 / - 83 * COUNT ( * ) * 50 * - 21 * NULLIF ( ( CAST ( 46 AS INTEGER ) ), - + COALESCE ( - + MIN ( ALL - - 16 ), - 7 + + + 91 / + 56 ) * 66 * - 16 ) * - - COUNT ( + 18 ) + + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - CASE + 99 WHEN - + 77 * 2 + + 46 + + - 51 * + 76 THEN - COALESCE ( - 67, + ( - 26 ) * SUM( 94 ), - 99 ) WHEN - + 69 * - + AVG ( DISTINCT + 93 ) THEN NULL WHEN 88 - + - NULLIF ( 49, - 30 ) * COUNT( * ) THEN + 8 * + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT - CASE + 99 WHEN - + 77 * 2 + + 46 + + - 51 * + 76 THEN - COALESCE ( - 67, + ( - 26 ) * SUM ( 94 ), - 99 ) WHEN - + 69 * - + AVG ( DISTINCT + 93 ) THEN NULL WHEN 88 - + - NULLIF ( 49, - 30 ) * COUNT ( * ) THEN + 8 * + 96 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT ALL + NULLIF ( + COALESCE ( - 38, 97 * - 42 + 59 ), + 25 ) DIV + 12 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL + NULLIF ( + COALESCE ( - 38, 97 * - 42 + 59 ), + 25 ) / + 12 AS col1
----
-3

query I rowsort
SELECT - 6 * 85 col2
----
-510

query I rowsort
SELECT 53 * - 8 AS col1
----
-424

query I rowsort
SELECT ALL - ( 11 ) + + 25 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5333
SELECT 55 * CAST( NULL AS SIGNED ) - - + ( ( - CASE - 8 WHEN - - 33 THEN + 16 END ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT 55 * CAST ( NULL AS INTEGER ) - - + ( ( - CASE - 8 WHEN - - 33 THEN + 16 END ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5334
SELECT - COALESCE ( - - COALESCE ( + - 22, + 92 + + + 22 * + - 85 ), - - COUNT( * ) * 91 + + 58, - + 21 ) * - - 81 - - 45 + - - 68 + 28 DIV - 31 * - 12, + 72 AS col0
----
1895
72

skipif mysql # not compatible
query II rowsort label-5334
SELECT - COALESCE ( - - COALESCE ( + - 22, + 92 + + + 22 * + - 85 ), - - COUNT ( * ) * 91 + + 58, - + 21 ) * - - 81 - - 45 + - - 68 + 28 / - 31 * - 12, + 72 AS col0
----
1895
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5335
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5336
SELECT ALL - ( + + COALESCE ( + - 93, 57 * - + MAX( + 15 ), ( - - COUNT( 55 ) ) ) ), ( - 96 ) AS col1
----
93
-96

skipif mysql # not compatible
query II rowsort label-5336
SELECT ALL - ( + + COALESCE ( + - 93, 57 * - + MAX ( + 15 ), ( - - COUNT ( 55 ) ) ) ), ( - 96 ) AS col1
----
93
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT 32 + + + COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5337
SELECT 32 + + + COUNT ( * ) AS col0
----
33

query I rowsort
SELECT 93 * + + 32 - - 20
----
2996

query I rowsort
SELECT 74 + 21 AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT ( - CAST( NULL AS SIGNED ) ) - + CASE - 86 WHEN - + 99 * - + ( + 36 ) * - + NULLIF ( + 49, + 88 * - 5 ) + - + 12 THEN ( + - 26 ) * ( - - 81 ) * - 31 + + 44 * - 57 + + 10 END - + 47 + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT ( - CAST ( NULL AS INTEGER ) ) - + CASE - 86 WHEN - + 99 * - + ( + 36 ) * - + NULLIF ( + 49, + 88 * - 5 ) + - + 12 THEN ( + - 26 ) * ( - - 81 ) * - 31 + + 44 * - 57 + + 10 END - + 47 + 62
----
NULL

query II rowsort
SELECT 75, - 41 * 29 * - 61 * + 96 + - 99 AS col0
----
75
6962685

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT ALL 95, + MIN( - 69 ) + 34 AS col0
----
95
-35

skipif mysql # not compatible
query II rowsort label-5342
SELECT ALL 95, + MIN ( - 69 ) + 34 AS col0
----
95
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT CASE + NULLIF ( - ( - ( + - ( 11 ) ) ), - - 0 ) WHEN + - COUNT( * ) THEN NULL ELSE + 57 END + + + 6 * - - 21
----
183

skipif mysql # not compatible
query I rowsort label-5343
SELECT CASE + NULLIF ( - ( - ( + - ( 11 ) ) ), - - 0 ) WHEN + - COUNT ( * ) THEN NULL ELSE + 57 END + + + 6 * - - 21
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5344
SELECT - 99 AS col1, CAST( + 87 AS SIGNED ) AS col2
----
-99
87

skipif mysql # not compatible
query II rowsort label-5344
SELECT - 99 AS col1, CAST ( + 87 AS INTEGER ) AS col2
----
-99
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT ALL 0, COUNT( * ) - + 1
----
0
0

skipif mysql # not compatible
query II rowsort label-5345
SELECT ALL 0, COUNT ( * ) - + 1
----
0
0

query I rowsort
SELECT ALL - 84 * 16
----
-1344

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT DISTINCT COALESCE ( + 86, + 30 * - 67 + - - COUNT( * ) + + 9, ( - + ( + 98 ) ) * - 3 ) * 14
----
1204

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT COALESCE ( + 86, + 30 * - 67 + - - COUNT ( * ) + + 9, ( - + ( + 98 ) ) * - 3 ) * 14
----
1204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5348
SELECT CAST( NULL AS SIGNED ) + - ( - 72 ) + + - 15 AS col2, + CAST( NULL AS SIGNED ) * - 31 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5348
SELECT CAST ( NULL AS INTEGER ) + - ( - 72 ) + + - 15 AS col2, + CAST ( NULL AS INTEGER ) * - 31 AS col1
----
NULL
NULL

query II rowsort
SELECT DISTINCT 19, + 80 AS col1
----
19
80

query I rowsort
SELECT ALL - 34 * - 65 * + 76 + + - 12 + + 78 AS col2
----
168026

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5351
SELECT + COUNT( * ) DIV 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT + COUNT ( * ) / 78 AS col2
----
0

query I rowsort
SELECT 13 * - - 78 + 79 AS col1
----
1093

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT + 22 * + 76 + COUNT( * ) * - - 51
----
1723

skipif mysql # not compatible
query I rowsort label-5353
SELECT + 22 * + 76 + COUNT ( * ) * - - 51
----
1723

onlyif mysql # aggregate syntax: 
query II rowsort label-5354
SELECT - + 59 AS col2, - 86 + - + COUNT( * )
----
-59
-87

skipif mysql # not compatible
query II rowsort label-5354
SELECT - + 59 AS col2, - 86 + - + COUNT ( * )
----
-59
-87

query I rowsort
SELECT DISTINCT - 41 + + 83
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT ALL - 82 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - 82 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + - 35 * 49 + + - 92 * 7 + + CASE - 90 WHEN + 79 * 4 THEN + 47 ELSE NULL END, 5 AS col0
----
NULL
5

query I rowsort
SELECT + 81 - 38 * + - 46 + + 61
----
1890

query I rowsort
SELECT DISTINCT - - 50 AS col0
----
50

query I rowsort
SELECT ALL 64 * - 39
----
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5361
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 35 AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5361
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 35 AS col0
----
NULL
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT + 38 + + - CAST( NULL AS SIGNED ) + 62 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT + 38 + + - CAST ( NULL AS INTEGER ) + 62 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT - COUNT( + + 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT - COUNT ( + + 36 ) AS col1
----
-1

query I rowsort
SELECT ALL + + ( - 57 ) - - 59 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL COUNT( + 37 ) * - 94 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL COUNT ( + 37 ) * - 94 AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT 60 * AVG ( ALL + 4 ) * - CAST( NULL AS SIGNED ) + - 47 + - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT 60 * AVG ( ALL + 4 ) * - CAST ( NULL AS INTEGER ) + - 47 + - - 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5367
SELECT DISTINCT COALESCE ( MAX( 49 ), 12 + - 93 - + 85 DIV - - 32 DIV + - 72, - 21 ) * - 69 + 13 * - COUNT( * )
----
-3394

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT COALESCE ( MAX ( 49 ), 12 + - 93 - + 85 / - - 32 / + - 72, - 21 ) * - 69 + 13 * - COUNT ( * )
----
-3394

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT - COUNT( * ) * - COUNT( * ) + + + ( + + 30 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5368
SELECT - COUNT ( * ) * - COUNT ( * ) + + + ( + + 30 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL COALESCE ( + 22, 11 + - - 21 * 83 ) - + - 43 + - COUNT( 10 ) + 42 * + - 96 AS col1
----
-3968

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL COALESCE ( + 22, 11 + - - 21 * 83 ) - + - 43 + - COUNT ( 10 ) + 42 * + - 96 AS col1
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT + ( - 16 ) - + - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + ( - 16 ) - + - COUNT ( * ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT + MAX( DISTINCT + + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-5371
SELECT + MAX ( DISTINCT + + 52 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT 68 + - CAST( - 65 AS SIGNED )
----
133

skipif mysql # not compatible
query I rowsort label-5372
SELECT 68 + - CAST ( - 65 AS INTEGER )
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT CAST( NULL AS SIGNED ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT CAST ( NULL AS INTEGER ) * - 56
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT DISTINCT + 15 DIV - 16
----
0

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT + 15 / - 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT DISTINCT MAX( DISTINCT - + 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT MAX ( DISTINCT - + 98 ) AS col1
----
-98

query I rowsort
SELECT ALL + 98 * + 27
----
2646

query I rowsort
SELECT ALL + 35 * - 13 col2
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT 57 - - - 3 + 76 + + 50 + - 98 * 81 + + + NULLIF ( - 24, + - 54 + - 99 ) + 35 * + 65 * COUNT( * ) AS col1
----
-5507

skipif mysql # not compatible
query I rowsort label-5378
SELECT 57 - - - 3 + 76 + + 50 + - 98 * 81 + + + NULLIF ( - 24, + - 54 + - 99 ) + 35 * + 65 * COUNT ( * ) AS col1
----
-5507

query I rowsort
SELECT - CASE - 62 WHEN 74 THEN NULL WHEN 3 * COALESCE ( + 62, - 65 + + 53 ) THEN + 9 END * 56 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT ( + COUNT( * ) ) - + NULLIF ( - + 44, 11 * - - 82 * COUNT( + 0 ) + + COUNT( * ) ) - + CAST( - 36 AS SIGNED ) * 89 * 3
----
9657

skipif mysql # not compatible
query I rowsort label-5380
SELECT ( + COUNT ( * ) ) - + NULLIF ( - + 44, 11 * - - 82 * COUNT ( + 0 ) + + COUNT ( * ) ) - + CAST ( - 36 AS INTEGER ) * 89 * 3
----
9657

onlyif mysql # aggregate syntax: 
query II rowsort label-5381
SELECT DISTINCT + 5 + - ( - - 89 ) AS col1, SUM( ALL + + 20 ) * - - 15 - CASE - - ( + + 74 ) WHEN + + 29 THEN + COUNT( * ) * + + 89 + - - 65 + + CASE 76 WHEN + COUNT( * ) + - 95 + + 72 - - 61 + + 8 * - 97 - 72 / + 65 THEN NULL WHEN 86 / COUNT( * ) + 71 THEN + 53 + 33 END ELSE - 88 END
----
-84
388

skipif mysql # not compatible
query II rowsort label-5381
SELECT DISTINCT + 5 + - ( - - 89 ) AS col1, SUM ( ALL + + 20 ) * - - 15 - CASE - - ( + + 74 ) WHEN + + 29 THEN + COUNT ( * ) * + + 89 + - - 65 + + CASE 76 WHEN + COUNT ( * ) + - 95 + + 72 - - 61 + + 8 * - 97 - 72 / + 65 THEN NULL WHEN 86 / COUNT ( * ) + 71 THEN + 53 + 33 END ELSE - 88 END
----
-84
388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL CAST( + COALESCE ( + 78, 7, 45 ) AS SIGNED ) + + + 36
----
114

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL CAST ( + COALESCE ( + 78, 7, 45 ) AS INTEGER ) + + + 36
----
114

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5383
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT + CAST ( NULL AS REAL ) + 56
----
NULL

query II rowsort
SELECT 76 - 77 AS col2, - 69 + + - ( - 48 )
----
-1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ( - 95 ) + COUNT( * ) * 91
----
-4

skipif mysql # not compatible
query I rowsort label-5385
SELECT ( - 95 ) + COUNT ( * ) * 91
----
-4

query I rowsort
SELECT ALL - 53 + - ( - 27 ) - - + 76 * + 21 AS col1
----
1570

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT - COALESCE ( 2, + SUM( + 79 ) + - 81 ) col0, + COUNT( * )
----
-2
1

skipif mysql # not compatible
query II rowsort label-5387
SELECT - COALESCE ( 2, + SUM ( + 79 ) + - 81 ) col0, + COUNT ( * )
----
-2
1

query I rowsort
SELECT ( - + 63 ) * + 45 + + - 84
----
-2919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5389
SELECT ALL COALESCE ( + ( + COUNT( ALL - - 8 ) ), NULLIF ( - - 48, - 49 * + AVG ( - 81 ) * + 32 * NULLIF ( + - 91, MIN( + 85 ) * + - 74 + + COUNT( * ) + - CAST( + CASE COUNT( ALL 95 ) WHEN - - 1 THEN + COUNT( * ) WHEN COALESCE ( MAX( DISTINCT + 4 ), - 49 + + 95, MIN( 98 ), + SUM( DISTINCT 19 ) / 79 + CASE CASE 9 WHEN 46 THEN + 28 / ( - 46 ) + - COUNT( * ) END WHEN - ( - ( + 65 ) ) + CAST( - 74 + - 67 AS SIGNED ) * 9 THEN 32 WHEN 37 * + ( - 21 ) THEN NULL END * COUNT( * ) ) THEN + 72 ELSE ( + 24 ) + 44 END AS DECIMAL ) ) ) ) * - ( 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL COALESCE ( + ( + COUNT ( ALL - - 8 ) ), NULLIF ( - - 48, - 49 * + AVG ( - 81 ) * + 32 * NULLIF ( + - 91, MIN ( + 85 ) * + - 74 + + COUNT ( * ) + - CAST ( + CASE COUNT ( ALL 95 ) WHEN - - 1 THEN + COUNT ( * ) WHEN COALESCE ( MAX ( DISTINCT + 4 ), - 49 + + 95, MIN ( 98 ), + SUM ( DISTINCT 19 ) / 79 + CASE CASE 9 WHEN 46 THEN + 28 / ( - 46 ) + - COUNT ( * ) END WHEN - ( - ( + 65 ) ) + CAST ( - 74 + - 67 AS INTEGER ) * 9 THEN 32 WHEN 37 * + ( - 21 ) THEN NULL END * COUNT ( * ) ) THEN + 72 ELSE ( + 24 ) + 44 END AS REAL ) ) ) ) * - ( 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT - 78 + COALESCE ( + 10, - - 46, COUNT( * ) )
----
-68

skipif mysql # not compatible
query I rowsort label-5390
SELECT - 78 + COALESCE ( + 10, - - 46, COUNT ( * ) )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5391
SELECT MAX( + 58 ) AS col0, COUNT( * ) + - + COUNT( * )
----
58
0

skipif mysql # not compatible
query II rowsort label-5391
SELECT MAX ( + 58 ) AS col0, COUNT ( * ) + - + COUNT ( * )
----
58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT + 36 * CAST( NULL AS SIGNED ) * + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT + 36 * CAST ( NULL AS INTEGER ) * + + 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL + + 15 * + SUM( DISTINCT + - 29 )
----
-435

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + + 15 * + SUM ( DISTINCT + - 29 )
----
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT DISTINCT + ( + NULLIF ( - COUNT( * ), + COUNT( * ) / - 47 / - 21 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT + ( + NULLIF ( - COUNT ( * ), + COUNT ( * ) / - 47 / - 21 ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT ALL 29 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL 29 / 45 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT + 52 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-5396
SELECT + 52 / - 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT + COUNT( * ) * - 85 * 39 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT + COUNT ( * ) * - 85 * 39 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 99 + + 37
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT MAX( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5399
SELECT MAX ( 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT + MIN( ALL - + 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-5400
SELECT + MIN ( ALL - + 70 ) AS col1
----
-70

query I rowsort
SELECT ALL 87 * + 47
----
4089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5402
SELECT + COUNT( DISTINCT - + 62 ) * - ( ( - COALESCE ( - - COALESCE ( - COUNT( * ), - + 87 ), 34 * - - CAST( NULL AS SIGNED ) + 82, + 42 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5402
SELECT + COUNT ( DISTINCT - + 62 ) * - ( ( - COALESCE ( - - COALESCE ( - COUNT ( * ), - + 87 ), 34 * - - CAST ( NULL AS INTEGER ) + 82, + 42 ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5403
SELECT COUNT( * ) * - + 44 - 72, CAST( NULL AS DECIMAL ) * - + 48 AS col0
----
-116
NULL

skipif mysql # not compatible
query II rowsort label-5403
SELECT COUNT ( * ) * - + 44 - 72, CAST ( NULL AS REAL ) * - + 48 AS col0
----
-116
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL CAST( NULL AS SIGNED ) * - 43 * + - MAX( - 78 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL CAST ( NULL AS INTEGER ) * - 43 * + - MAX ( - 78 ) col2
----
NULL

query II rowsort
SELECT DISTINCT + 0 AS col1, 48 * + - 60 * + + 9
----
0
-25920

query I rowsort
SELECT DISTINCT 16 * - 99 + 29 + 3 * + 96
----
-1267

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT DISTINCT + COUNT( * ) AS col0, MAX( ALL - 99 )
----
1
-99

skipif mysql # not compatible
query II rowsort label-5407
SELECT DISTINCT + COUNT ( * ) AS col0, MAX ( ALL - 99 )
----
1
-99

query II rowsort
SELECT + 4 * - + 96 + - 9 col1, 56 AS col2
----
-393
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5409
SELECT + 95 AS col0, + COUNT( * ) + + + COUNT( * ) AS col0
----
95
2

skipif mysql # not compatible
query II rowsort label-5409
SELECT + 95 AS col0, + COUNT ( * ) + + + COUNT ( * ) AS col0
----
95
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL MAX( + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL MAX ( + 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT + ( + 34 ) * - + CAST( NULL AS SIGNED ) * - + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT + ( + 34 ) * - + CAST ( NULL AS INTEGER ) * - + 34 AS col2
----
NULL

query I rowsort
SELECT ALL - - 85 + + 90 * - 59 AS col0
----
-5225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT CAST( - + 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-5413
SELECT CAST ( - + 3 AS INTEGER )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT ALL + 43 + - 65 DIV 60 * - 67 + + 22 * 97 + - + 26 DIV ( + 66 ) - + 4 AS col2
----
2240

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + 43 + - 65 / 60 * - 67 + + 22 * 97 + - + 26 / ( + 66 ) - + 4 AS col2
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL + + 72 * COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL + + 72 * COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT - + 21 * + + 36 * ( - CAST( NULL AS SIGNED ) ) * - + ( + + COUNT( * ) ) + - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5416
SELECT - + 21 * + + 36 * ( - CAST ( NULL AS INTEGER ) ) * - + ( + + COUNT ( * ) ) + - 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT 83 + + + COUNT( * ) + - 27 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT 83 + + + COUNT ( * ) + - 27 AS col0
----
57

query I rowsort
SELECT DISTINCT - + 59 + 44
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT - + 43 * 58 + - + 74 + + 26 * + + COUNT( * ) AS col0
----
-2542

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - + 43 * 58 + - + 74 + + 26 * + + COUNT ( * ) AS col0
----
-2542

query I rowsort
SELECT - 79 + + 27 * 79 * 85 * + - 66
----
-11966209

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT - COUNT( ALL 25 ) + NULLIF ( + 45, - ( - 62 ) / + COUNT( * ) * + - 95 ) AS col0, + 41
----
44
41

skipif mysql # not compatible
query II rowsort label-5421
SELECT - COUNT ( ALL 25 ) + NULLIF ( + 45, - ( - 62 ) / + COUNT ( * ) * + - 95 ) AS col0, + 41
----
44
41

query II rowsort
SELECT 52 col2, - 3 * 45
----
52
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - 67 * ( + COUNT( * ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5423
SELECT - 67 * ( + COUNT ( * ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5424
SELECT ALL + COUNT( * ) - COUNT( * ) DIV + 5 + 50 + - ( - - 87 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + COUNT ( * ) - COUNT ( * ) / + 5 + 50 + - ( - - 87 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT CASE 69 WHEN MAX( DISTINCT + - 47 ) THEN - 79 * + - ( 66 ) / + + 60 * - 53 - 4 + - 43 + - - 37 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT CASE 69 WHEN MAX ( DISTINCT + - 47 ) THEN - 79 * + - ( 66 ) / + + 60 * - 53 - 4 + - 43 + - - 37 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 19 - - - 12
----
7

query I rowsort
SELECT ALL NULLIF ( 33, + + 98 + + 52 + + 14 * + 34 ) AS col2
----
33

query I rowsort
SELECT - + 45 + - + 99 AS col1
----
-144

query I rowsort
SELECT ALL ( + 2 ) AS col1
----
2

query I rowsort
SELECT - 56 + 75 AS col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT DISTINCT - 42 DIV - 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - 42 / - 41 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT 97 * SUM( ALL + - 34 ) + ( + 76 ) * ( + MAX( + - 50 ) ) AS col1
----
-7098

skipif mysql # not compatible
query I rowsort label-5432
SELECT 97 * SUM ( ALL + - 34 ) + ( + 76 ) * ( + MAX ( + - 50 ) ) AS col1
----
-7098

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT - COUNT( * ) * + 30 * - + 47 AS col2
----
1410

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT - COUNT ( * ) * + 30 * - + 47 AS col2
----
1410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5434
SELECT - COUNT( * ) DIV - COUNT( * ) + + MIN( - ( - - 10 ) ) + + 16 DIV 67 * + 59
----
-9

skipif mysql # not compatible
query I rowsort label-5434
SELECT - COUNT ( * ) / - COUNT ( * ) + + MIN ( - ( - - 10 ) ) + + 16 / 67 * + 59
----
-9

query I rowsort
SELECT + 51 * 77 - - 6
----
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT - 75 + + MIN( ALL - 95 )
----
-170

skipif mysql # not compatible
query I rowsort label-5436
SELECT - 75 + + MIN ( ALL - 95 )
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT + COUNT( DISTINCT + 64 ) + - CASE WHEN NOT NULL BETWEEN NULL AND 63 THEN + 71 ELSE + - ( - COALESCE ( + 54, + - 85 + - - COUNT( * ) ) ) END * - COUNT( * ) + ( 93 ) + + - 58 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5437
SELECT + COUNT ( DISTINCT + 64 ) + - CASE WHEN NOT NULL BETWEEN NULL AND 63 THEN + 71 ELSE + - ( - COALESCE ( + 54, + - 85 + - - COUNT ( * ) ) ) END * - COUNT ( * ) + ( 93 ) + + - 58 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5438
SELECT COUNT( * ) * - - 0 + + 35 + - - 25 + 41 * - 24 DIV + COUNT( * ) + SUM( ALL - CAST( + - 43 AS SIGNED ) )
----
-881

skipif mysql # not compatible
query I rowsort label-5438
SELECT COUNT ( * ) * - - 0 + + 35 + - - 25 + 41 * - 24 / + COUNT ( * ) + SUM ( ALL - CAST ( + - 43 AS INTEGER ) )
----
-881

query I rowsort
SELECT ALL 87 * 3 * - - 86 + + 48 * + + 65
----
25566

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT DISTINCT 86 DIV + + 3
----
28

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT 86 / + + 3
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5441
SELECT DISTINCT 50 * + CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT 50 * + CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * )
----
49

query I rowsort
SELECT ( ( - NULLIF ( + - 76, - - 57 * 85 ) ) )
----
76

query II rowsort
SELECT ( 10 ) AS col1, 47 * + 47
----
10
2209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT ALL 24 * - ( - 99 ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL 24 * - ( - 99 ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + ( - 78 ) * + NULLIF ( - COUNT( * ), - 33 * - 60 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5445
SELECT + ( - 78 ) * + NULLIF ( - COUNT ( * ), - 33 * - 60 ) AS col1
----
78

query I rowsort
SELECT + 91 + + - 96
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT 71 * - + 11 + 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT 71 * - + 11 + 80 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5448
SELECT + ( - + 92 ), + ( + - COUNT( * ) ) DIV + COUNT( * ) + + 25 AS col0
----
-92
24

skipif mysql # not compatible
query II rowsort label-5448
SELECT + ( - + 92 ), + ( + - COUNT ( * ) ) / + COUNT ( * ) + + 25 AS col0
----
-92
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + - ( + + COUNT( * ) ) * - 47
----
47

skipif mysql # not compatible
query I rowsort label-5449
SELECT + - ( + + COUNT ( * ) ) * - 47
----
47

query I rowsort
SELECT ALL 28 * - + 29
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT + CASE - + 91 WHEN + + COUNT( * ) * + + 45 THEN + + 44 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT + CASE - + 91 WHEN + + COUNT ( * ) * + + 45 THEN + + 44 END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT DISTINCT COUNT( * ) * 15 * + 28 + 25 * + 64
----
2020

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT COUNT ( * ) * 15 * + 28 + 25 * + 64
----
2020

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + COALESCE ( COUNT( * ), + COUNT( * ) ) + - - 87 * + 46 + - 63 AS col2
----
3940

skipif mysql # not compatible
query I rowsort label-5453
SELECT + COALESCE ( COUNT ( * ), + COUNT ( * ) ) + - - 87 * + 46 + - 63 AS col2
----
3940

query I rowsort
SELECT + - 17 * + 0 + - 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT - NULLIF ( + COUNT( * ), + + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-5455
SELECT - NULLIF ( + COUNT ( * ), + + 75 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - - COUNT( * ) + + 48
----
49

skipif mysql # not compatible
query I rowsort label-5456
SELECT - - COUNT ( * ) + + 48
----
49

query I rowsort
SELECT DISTINCT - 4 - - 5 AS col2
----
1

query I rowsort
SELECT 47 + - 75 + - 94 AS col2
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-5459
SELECT + COALESCE ( - 46, ( + 45 ) * - ( NULLIF ( 30, 31 ) ) + + 71 ) DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT + COALESCE ( - 46, ( + 45 ) * - ( NULLIF ( 30, 31 ) ) + + 71 ) / + 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT DISTINCT + COALESCE ( + + NULLIF ( - - 68, + - COUNT( DISTINCT + 62 ) ), - COUNT( * ), - SUM( ALL - 5 ) * ( 69 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + COALESCE ( + + NULLIF ( - - 68, + - COUNT ( DISTINCT + 62 ) ), - COUNT ( * ), - SUM ( ALL - 5 ) * ( 69 ) ) AS col1
----
68

query II rowsort
SELECT DISTINCT + 77 * 53 AS col1, 25 AS col0
----
4081
25

query I rowsort
SELECT 62 * + CASE - + 80 WHEN - 36 THEN 72 WHEN + + AVG ( ALL - 85 ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT 78 + - + 96 AS col2
----
-18

query I rowsort
SELECT 52 * + - 72
----
-3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5465
SELECT ALL - COALESCE ( + + 84, - - 88, - 93 * 17 * + ( + - 54 ) * NULLIF ( 62, - COUNT( * ) * + CASE + 33 WHEN + 99 THEN - 86 WHEN + 24 - - COUNT( * ) THEN - CAST( NULL AS SIGNED ) WHEN + - 91 * 4 * + CAST( 29 AS DECIMAL ) + + + COUNT( 11 ) * - ( + 69 ) * + 80 THEN NULL ELSE NULL END + SUM( CAST( NULL AS SIGNED ) ) ) - COUNT( * ) + COUNT( * ) * 47 ) + 63 * 25 AS col0
----
1491

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - COALESCE ( + + 84, - - 88, - 93 * 17 * + ( + - 54 ) * NULLIF ( 62, - COUNT ( * ) * + CASE + 33 WHEN + 99 THEN - 86 WHEN + 24 - - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN + - 91 * 4 * + CAST ( 29 AS REAL ) + + + COUNT ( 11 ) * - ( + 69 ) * + 80 THEN NULL ELSE NULL END + SUM ( CAST ( NULL AS INTEGER ) ) ) - COUNT ( * ) + COUNT ( * ) * 47 ) + 63 * 25 AS col0
----
1491

query I rowsort
SELECT DISTINCT + 84 + - 48 col1
----
36

query I rowsort
SELECT ALL + 39 + 2 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT - SUM( DISTINCT + 43 ) + + COUNT( * ) * - 36 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT - SUM ( DISTINCT + 43 ) + + COUNT ( * ) * - 36 AS col2
----
-79

query I rowsort
SELECT 77 * - 31 AS col0
----
-2387

query I rowsort
SELECT ALL 33 + 50 * + 62 AS col1
----
3133

query I rowsort
SELECT 58 - + 14
----
44

query I rowsort
SELECT ALL - 76 + + + 11
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5473
SELECT 67 + 61 * - - COALESCE ( + NULLIF ( - 59, 93 + - - CAST( - - 50 AS SIGNED ) ), + + MAX( 27 ), - 86, - + 15 )
----
-3532

skipif mysql # not compatible
query I rowsort label-5473
SELECT 67 + 61 * - - COALESCE ( + NULLIF ( - 59, 93 + - - CAST ( - - 50 AS INTEGER ) ), + + MAX ( 27 ), - 86, - + 15 )
----
-3532

query I rowsort
SELECT 2 * - - 92
----
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT ALL - COUNT( ALL + - NULLIF ( - - 27, - + 34 * + CAST( NULL AS SIGNED ) + + 43 + - ( 31 ) + - 18 ) ) * - 49 + + 95
----
144

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL - COUNT ( ALL + - NULLIF ( - - 27, - + 34 * + CAST ( NULL AS INTEGER ) + + 43 + - ( 31 ) + - 18 ) ) * - 49 + + 95
----
144

query II rowsort
SELECT + 91 AS col2, - ( - 18 )
----
91
18

query II rowsort
SELECT 68 AS col1, - 20 AS col0
----
68
-20

query II rowsort
SELECT DISTINCT - 54 AS col1, 42
----
-54
42

query I rowsort
SELECT DISTINCT - 68 - + 6
----
-74

query I rowsort
SELECT - 0 + - 38 + 0 AS col1
----
-38

query I rowsort
SELECT ALL + 35 * + 48 + + - 34
----
1646

query II rowsort
SELECT + 9 * NULLIF ( + - 52, + 10 / 39 ), 11 + + + 47 col2
----
-468
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5483
SELECT ALL - 24 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL - 24 / - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT 61 + + 54 + + 91 + + + 45 * 93 + + CASE - - 8 WHEN + 34 * 73 THEN COUNT( ALL - + 50 ) WHEN 25 THEN NULL ELSE NULL END * + ( - MIN( ALL + + 87 ) ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT 61 + + 54 + + 91 + + + 45 * 93 + + CASE - - 8 WHEN + 34 * 73 THEN COUNT ( ALL - + 50 ) WHEN 25 THEN NULL ELSE NULL END * + ( - MIN ( ALL + + 87 ) ) + - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT COUNT( * ) * 37 col0
----
37

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( * ) * 37 col0
----
37

query II rowsort
SELECT + 66 + + - NULLIF ( - - 96, + 13 * - 32 ) + - 99 * + 74 + - 71, - 98 AS col0
----
-7427
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT - - 19 * + NULLIF ( - + COUNT( ALL + - CASE - 81 WHEN - - 53 * - 32 * - 10 THEN + 62 ELSE - - 27 END ), - + 7 + + 47 ) * - - MAX( ALL - 10 ) - + + COUNT( * ) + + - 68 * 42 * 39 + + + COUNT( * ) + COUNT( ALL - 60 ) * 20 - + 37 AS col2
----
-111211

skipif mysql # not compatible
query I rowsort label-5487
SELECT - - 19 * + NULLIF ( - + COUNT ( ALL + - CASE - 81 WHEN - - 53 * - 32 * - 10 THEN + 62 ELSE - - 27 END ), - + 7 + + 47 ) * - - MAX ( ALL - 10 ) - + + COUNT ( * ) + + - 68 * 42 * 39 + + + COUNT ( * ) + COUNT ( ALL - 60 ) * 20 - + 37 AS col2
----
-111211

query I rowsort
SELECT 84 * + 50 AS col1
----
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL 28 * - COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL 28 * - COUNT ( * ) AS col1
----
-28

query I rowsort
SELECT DISTINCT + ( - - 68 )
----
68

query I rowsort
SELECT + 25 * - 11 AS col1
----
-275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5492
SELECT ALL CASE - COUNT( 39 ) WHEN - - CASE + COUNT( * ) WHEN + 0 THEN NULL WHEN + + CASE - + 90 WHEN + + 9 THEN NULL ELSE + 44 * - 32 - + 78 + + - 93 END / - 60 + - SUM( ALL 82 ) THEN + + 81 ELSE NULL END THEN - 36 / - - CAST( - + 42 AS DECIMAL ) * MAX( ALL - ( + - 16 ) ) + 45 + + 48 WHEN - 73 THEN + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL CASE - COUNT ( 39 ) WHEN - - CASE + COUNT ( * ) WHEN + 0 THEN NULL WHEN + + CASE - + 90 WHEN + + 9 THEN NULL ELSE + 44 * - 32 - + 78 + + - 93 END / - 60 + - SUM ( ALL 82 ) THEN + + 81 ELSE NULL END THEN - 36 / - - CAST ( - + 42 AS REAL ) * MAX ( ALL - ( + - 16 ) ) + 45 + + 48 WHEN - 73 THEN + COUNT ( * ) END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT CAST( NULL AS SIGNED ) + - 57 + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-5493
SELECT CAST ( NULL AS INTEGER ) + - 57 + + 35
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5494
SELECT 0 DIV + + 23 + 88 AS col2, 79 * + + COUNT( * ) * - 92 * + 71 * - 78 AS col1
----
88
40250184

skipif mysql # not compatible
query II rowsort label-5494
SELECT 0 / + + 23 + 88 AS col2, 79 * + + COUNT ( * ) * - 92 * + 71 * - 78 AS col1
----
88
40250184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5495
SELECT + SUM( 64 ) + 60 * + COUNT( * ) + CASE + MAX( ALL 10 ) WHEN - - COUNT( * ) THEN - + CAST( NULL AS DECIMAL ) - - 58 WHEN + + SUM( ALL - 65 ) THEN - + 89 * - + 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT + SUM ( 64 ) + 60 * + COUNT ( * ) + CASE + MAX ( ALL 10 ) WHEN - - COUNT ( * ) THEN - + CAST ( NULL AS REAL ) - - 58 WHEN + + SUM ( ALL - 65 ) THEN - + 89 * - + 63 END
----
NULL

query I rowsort
SELECT 30 * + - 31
----
-930

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT 79, + COUNT( * ) col2
----
79
1

skipif mysql # not compatible
query II rowsort label-5497
SELECT 79, + COUNT ( * ) col2
----
79
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5498
SELECT ALL + 79 DIV - CAST( - - MIN( + 45 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL + 79 / - CAST ( - - MIN ( + 45 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5499
SELECT CASE - 25 WHEN - - 51 / + 38 * + ( - ( - + CAST( - NULLIF ( 9, + 2 + - - 75 + - 92 * - 40 ) AS SIGNED ) ) ) THEN - - ( - 69 ) * + 46 + 23 * ( - COUNT( * ) ) + + ( - MIN( DISTINCT - 23 ) ) WHEN + COUNT( * ) * + COUNT( * ) THEN NULL ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5499
SELECT CASE - 25 WHEN - - 51 / + 38 * + ( - ( - + CAST ( - NULLIF ( 9, + 2 + - - 75 + - 92 * - 40 ) AS INTEGER ) ) ) THEN - - ( - 69 ) * + 46 + 23 * ( - COUNT ( * ) ) + + ( - MIN ( DISTINCT - 23 ) ) WHEN + COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5500
SELECT ALL ( + 30 ) DIV + 72 - - COUNT( * ), COUNT( * ) * + 88 * - 50 AS col0
----
1
-4400

skipif mysql # not compatible
query II rowsort label-5500
SELECT ALL ( + 30 ) / + 72 - - COUNT ( * ), COUNT ( * ) * + 88 * - 50 AS col0
----
1
-4400

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT ALL - 7 + + 56, COUNT( * ) * + - 82 * COUNT( * ) * 63 AS col1
----
49
-5166

skipif mysql # not compatible
query II rowsort label-5501
SELECT ALL - 7 + + 56, COUNT ( * ) * + - 82 * COUNT ( * ) * 63 AS col1
----
49
-5166

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT ALL 10 DIV - + 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL 10 / - + 99 col1
----
0

query I rowsort
SELECT DISTINCT 69 + - 8 col0
----
61

query I rowsort
SELECT ALL 79 * + 59 + 3 AS col1
----
4664

query I rowsort
SELECT DISTINCT 45 * - 31 AS col0
----
-1395

query II rowsort
SELECT ALL - 41 col0, 63 AS col2
----
-41
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT 8 DIV + 5 + + 8 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5507
SELECT 8 / + 5 + + 8 AS col0
----
9

query I rowsort
SELECT ALL + 16 * + 33 - + ( - - 64 ) + + 65 * - 80
----
-4736

query I rowsort
SELECT 92 + 71 * + + 90
----
6482

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL - MAX( - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL - MAX ( - 5 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT 8 * 23 * - - 15 + COALESCE ( + - ( - - 87 ), + 88 DIV - 21 - - 48 ) + ( + - 10 ) + - - 66 * + 10 - + - 18
----
3341

skipif mysql # not compatible
query I rowsort label-5511
SELECT 8 * 23 * - - 15 + COALESCE ( + - ( - - 87 ), + 88 / - 21 - - 48 ) + ( + - 10 ) + - - 66 * + 10 - + - 18
----
3341

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5512
SELECT + 49, 56 * CAST( NULL AS SIGNED ) + - + 89 * + 91 AS col1
----
49
NULL

skipif mysql # not compatible
query II rowsort label-5512
SELECT + 49, 56 * CAST ( NULL AS INTEGER ) + - + 89 * + 91 AS col1
----
49
NULL

query I rowsort
SELECT ALL - COALESCE ( + ( 96 ), - + 33 ) * 74 - + 68 AS col0
----
-7172

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT + MAX( DISTINCT - ( ( - 37 ) ) )
----
37

skipif mysql # not compatible
query I rowsort label-5514
SELECT + MAX ( DISTINCT - ( ( - 37 ) ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + - CASE - + 23 WHEN 26 THEN - SUM( + - 22 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT + - CASE - + 23 WHEN 26 THEN - SUM ( + - 22 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5516
SELECT + - 7 col1, 89 * + + 89 * - + 86 + + 26 DIV + 98 + + + COUNT( * ) + 29 + - COUNT( * ) * + SUM( DISTINCT + 47 ) + - 85 AS col1
----
-7
-681308

skipif mysql # not compatible
query II rowsort label-5516
SELECT + - 7 col1, 89 * + + 89 * - + 86 + + 26 / + 98 + + + COUNT ( * ) + 29 + - COUNT ( * ) * + SUM ( DISTINCT + 47 ) + - 85 AS col1
----
-7
-681308

query II rowsort
SELECT 40 AS col2, - ( + + 49 ) + - 91 AS col2
----
40
-140

query I rowsort
SELECT - - 57 * - - 50 + - 83 AS col0
----
2767

query I rowsort
SELECT DISTINCT + - 57 * 17
----
-969

query I rowsort
SELECT ALL - - 94 * - - 36 AS col0
----
3384

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT - - COUNT( * ) + - MIN( DISTINCT + 89 ) * + + 27 AS col0, - 61
----
-2402
-61

skipif mysql # not compatible
query II rowsort label-5521
SELECT - - COUNT ( * ) + - MIN ( DISTINCT + 89 ) * + + 27 AS col0, - 61
----
-2402
-61

query II rowsort
SELECT 77, - 1 AS col0
----
77
-1

query I rowsort
SELECT + - 82 * - 62 * - - 11
----
55924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5524
SELECT DISTINCT 15 + + + COUNT( * ) + + 54 DIV - - ( + ( + COUNT( * ) ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT 15 + + + COUNT ( * ) + + 54 / - - ( + ( + COUNT ( * ) ) ) AS col2
----
70

query I rowsort
SELECT - 89 * 30
----
-2670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT + 59 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT + 59 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT DISTINCT 5 * + + 54 * - + 76 * - CAST( COUNT( - 98 ) AS SIGNED ) col0
----
20520

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT 5 * + + 54 * - + 76 * - CAST ( COUNT ( - 98 ) AS INTEGER ) col0
----
20520

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL 64 + + MIN( + 24 )
----
88

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL 64 + + MIN ( + 24 )
----
88

query I rowsort
SELECT + 70 + 79 AS col1
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5530
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) + + 62, + 57 AS col0
----
61
57

skipif mysql # not compatible
query II rowsort label-5530
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) + + 62, + 57 AS col0
----
61
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5531
SELECT ALL + COUNT( * ) * + 4, 93 + 92 - - 23 + + 20 AS col2
----
4
228

skipif mysql # not compatible
query II rowsort label-5531
SELECT ALL + COUNT ( * ) * + 4, 93 + 92 - - 23 + + 20 AS col2
----
4
228

onlyif mysql # aggregate syntax: 
query II rowsort label-5532
SELECT + COUNT( * ) * - 36 AS col0, - 5 AS col0
----
-36
-5

skipif mysql # not compatible
query II rowsort label-5532
SELECT + COUNT ( * ) * - 36 AS col0, - 5 AS col0
----
-36
-5

query II rowsort
SELECT DISTINCT 58 + - + 3 AS col0, 86 AS col2
----
55
86

query I rowsort
SELECT DISTINCT 70 * - - 84
----
5880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5535
SELECT ALL 28 + NULLIF ( - - CAST( NULL AS SIGNED ), + 64 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL 28 + NULLIF ( - - CAST ( NULL AS INTEGER ), + 64 ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT + COUNT( * ) * - 78 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5536
SELECT + COUNT ( * ) * - 78 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + ( + 16 ) + + + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-5537
SELECT + ( + 16 ) + + + COUNT ( * ) AS col1
----
17

query I rowsort
SELECT + 92 + + 67 AS col0
----
159

query I rowsort
SELECT ALL 98 + - 68
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT - 69 + + 36 + COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5540
SELECT - 69 + + 36 + COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5541
SELECT + ( + 84 ) * + MIN( ( + NULLIF ( - ( - 44 ), 56 ) ) ) - ( + 89 ) AS col1, 52
----
3607
52

skipif mysql # not compatible
query II rowsort label-5541
SELECT + ( + 84 ) * + MIN ( ( + NULLIF ( - ( - 44 ), 56 ) ) ) - ( + 89 ) AS col1, 52
----
3607
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + ( + MIN( 62 ) )
----
62

skipif mysql # not compatible
query I rowsort label-5542
SELECT + ( + MIN ( 62 ) )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5543
SELECT ALL 21 DIV + 61 AS col1, - COUNT( * ) - - - 90 + - 78 * - - 3
----
0
-325

skipif mysql # not compatible
query II rowsort label-5543
SELECT ALL 21 / + 61 AS col1, - COUNT ( * ) - - - 90 + - 78 * - - 3
----
0
-325

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5544
SELECT DISTINCT + 39 * + ( + NULLIF ( + 25, 88 ) ) - CASE + 70 WHEN - CAST( NULLIF ( + - 40, 26 * - 25 ) AS SIGNED ) + + - 41 THEN - NULLIF ( + 63, + - ( 69 ) * 11 ) END AS col0, ( + 59 ) col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-5544
SELECT DISTINCT + 39 * + ( + NULLIF ( + 25, 88 ) ) - CASE + 70 WHEN - CAST ( NULLIF ( + - 40, 26 * - 25 ) AS INTEGER ) + + - 41 THEN - NULLIF ( + 63, + - ( 69 ) * 11 ) END AS col0, ( + 59 ) col1
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL + COUNT( * ) * + - 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + COUNT ( * ) * + - 27 AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5546
SELECT ALL - 49 * + - 78, + CASE + 25 WHEN - + 3 THEN + COUNT( + CASE + + 58 WHEN ( + 92 ) THEN + CAST( - ( - + 88 ) AS SIGNED ) + - + 74 ELSE NULL END ) * 90 + - COUNT( * ) WHEN 86 THEN - MIN( + 94 ) ELSE NULL END + 2 AS col2
----
3822
NULL

skipif mysql # not compatible
query II rowsort label-5546
SELECT ALL - 49 * + - 78, + CASE + 25 WHEN - + 3 THEN + COUNT ( + CASE + + 58 WHEN ( + 92 ) THEN + CAST ( - ( - + 88 ) AS INTEGER ) + - + 74 ELSE NULL END ) * 90 + - COUNT ( * ) WHEN 86 THEN - MIN ( + 94 ) ELSE NULL END + 2 AS col2
----
3822
NULL

query I rowsort
SELECT ALL 91 * 19 AS col1
----
1729

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL + SUM( - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + SUM ( - 21 )
----
-21

query II rowsort
SELECT + 35 + - 70, 67 AS col2
----
-35
67

query II rowsort
SELECT ( - 54 ) col0, ( - + 20 )
----
-54
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + SUM( - 78 ) * + - 36 + + - 20 col0
----
2788

skipif mysql # not compatible
query I rowsort label-5551
SELECT + SUM ( - 78 ) * + - 36 + + - 20 col0
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT DISTINCT NULLIF ( - COUNT( * ), + 2 ) * + 31 + + COUNT( * ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT NULLIF ( - COUNT ( * ), + 2 ) * + 31 + + COUNT ( * ) col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT - - ( + - COUNT( * ) ) + - + COUNT( ALL + 77 ) * + 57 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-5553
SELECT - - ( + - COUNT ( * ) ) + - + COUNT ( ALL + 77 ) * + 57 AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT ALL + COALESCE ( - CASE + 10 WHEN - CAST( - 67 AS SIGNED ) THEN 37 + + 60 + 46 WHEN + 11 / + 7 + + 3 THEN - 21 * + CASE 55 WHEN - - 21 / + 4 * ( + 39 ) + + 41 + + 52 * - - 55 + + - 20 THEN + 10 + - ( + 29 ) END - + 2 * - + 43 END, CASE - 70 WHEN 77 + - 5 * + ( 74 ) THEN - 15 END, 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL + COALESCE ( - CASE + 10 WHEN - CAST ( - 67 AS INTEGER ) THEN 37 + + 60 + 46 WHEN + 11 / + 7 + + 3 THEN - 21 * + CASE 55 WHEN - - 21 / + 4 * ( + 39 ) + + 41 + + 52 * - - 55 + + - 20 THEN + 10 + - ( + 29 ) END - + 2 * - + 43 END, CASE - 70 WHEN 77 + - 5 * + ( 74 ) THEN - 15 END, 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT - CAST( NULL AS SIGNED ) * - + 29 * + 41 / + + NULLIF ( - 98, + + AVG ( + 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT - CAST ( NULL AS INTEGER ) * - + 29 * + 41 / + + NULLIF ( - 98, + + AVG ( + 53 ) )
----
NULL

query I rowsort
SELECT - 51 + - - 17 * - + 78 * + - 61 AS col0
----
80835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5557
SELECT - SUM( - ( + COALESCE ( - 72, + 41 * - - 15 * 8 DIV 25 ) ) ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-5557
SELECT - SUM ( - ( + COALESCE ( - 72, + 41 * - - 15 * 8 / 25 ) ) ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - ( - + 72 ) - + COUNT( * ) * - 40
----
112

skipif mysql # not compatible
query I rowsort label-5558
SELECT - ( - + 72 ) - + COUNT ( * ) * - 40
----
112

query I rowsort
SELECT ALL + - 79 * + 61 AS col2
----
-4819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT DISTINCT 16 * + + 2 + + 85 - - + CAST( NULL AS SIGNED ) / 26 + + 79 + - 28 + + 27 * + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT 16 * + + 2 + + 85 - - + CAST ( NULL AS INTEGER ) / 26 + + 79 + - 28 + + 27 * + 80 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 29 * COALESCE ( + 71, + 75, + - 12 ) AS col1
----
2059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5562
SELECT ALL 66 * CAST( - COUNT( * ) AS SIGNED ) + 81
----
15

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL 66 * CAST ( - COUNT ( * ) AS INTEGER ) + 81
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5563
SELECT + ( + 83 ), 85 + - - 18 + 73 - - + NULLIF ( - - COUNT( * ), + 51 ) * - 66 * - - 7 AS col1
----
83
-286

skipif mysql # not compatible
query II rowsort label-5563
SELECT + ( + 83 ), 85 + - - 18 + 73 - - + NULLIF ( - - COUNT ( * ), + 51 ) * - 66 * - - 7 AS col1
----
83
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT + 25 * COUNT( ALL + 14 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT + 25 * COUNT ( ALL + 14 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT - COUNT( * ) + COUNT( * ) * - - 21 - + 29 AS col0, - 17 AS col1
----
-9
-17

skipif mysql # not compatible
query II rowsort label-5565
SELECT - COUNT ( * ) + COUNT ( * ) * - - 21 - + 29 AS col0, - 17 AS col1
----
-9
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT DISTINCT 76 / - AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT 76 / - AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 34 + + 65
----
31

query I rowsort
SELECT - 93 * 12 AS col0
----
-1116

query I rowsort
SELECT - 11 + + + 15
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT + 16 DIV + + 15
----
1

skipif mysql # not compatible
query I rowsort label-5570
SELECT + 16 / + + 15
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5571
SELECT DISTINCT - 35 DIV + NULLIF ( - 39, 60 * - 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT - 35 / + NULLIF ( - 39, 60 * - 56 ) AS col0
----
0

query I rowsort
SELECT + 51 + 42 + - 82
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5573
SELECT - CAST( NULL AS SIGNED ), 61 + - 90 - MIN( DISTINCT - 53 ) * 73 * + 99 * CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5573
SELECT - CAST ( NULL AS INTEGER ), 61 + - 90 - MIN ( DISTINCT - 53 ) * 73 * + 99 * CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL 75 - + + 86
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT - 80 + 98 + - SUM( + + 25 ) + + - 98 + - 43 * - 56
----
2303

skipif mysql # not compatible
query I rowsort label-5575
SELECT - 80 + 98 + - SUM ( + + 25 ) + + - 98 + - 43 * - 56
----
2303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL CASE + 19 WHEN + - CAST( NULL AS SIGNED ) + 35 THEN NULL WHEN - + 39 * + 26 / 60 * - 63 + COUNT( * ) - 35 * - 32 THEN - ( - - 10 ) END * + + 7 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL CASE + 19 WHEN + - CAST ( NULL AS INTEGER ) + 35 THEN NULL WHEN - + 39 * + 26 / 60 * - 63 + COUNT ( * ) - 35 * - 32 THEN - ( - - 10 ) END * + + 7 * 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT + CAST( + - 36 AS SIGNED ) + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-5577
SELECT + CAST ( + - 36 AS INTEGER ) + - COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5578
SELECT - COALESCE ( - 89, - + 0, - COUNT( * ) * + 84 DIV + - 87 + 37 + - 55 * + 21 * - + 48 * - 12 )
----
89

skipif mysql # not compatible
query I rowsort label-5578
SELECT - COALESCE ( - 89, - + 0, - COUNT ( * ) * + 84 / + - 87 + 37 + - 55 * + 21 * - + 48 * - 12 )
----
89

query I rowsort
SELECT DISTINCT + 63 * - 51 AS col1
----
-3213

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT ALL SUM( + 27 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL SUM ( + 27 ) col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT + 9 + COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5581
SELECT + 9 + COUNT ( * ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5582
SELECT - CAST( NULL AS SIGNED ) + - + ( - 54 ) AS col2, 93
----
NULL
93

skipif mysql # not compatible
query II rowsort label-5582
SELECT - CAST ( NULL AS INTEGER ) + - + ( - 54 ) AS col2, 93
----
NULL
93

query I rowsort
SELECT + 27 * - + 92 col0
----
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT COUNT( * ) - - - ( 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-5584
SELECT COUNT ( * ) - - - ( 50 )
----
-49

query II rowsort
SELECT ALL - 63, 36 AS col2
----
-63
36

query II rowsort
SELECT ALL - 66 AS col1, + 87
----
-66
87

query II rowsort
SELECT + 99, 32 AS col1
----
99
32

query I rowsort
SELECT + ( - 51 ) * + 82 + + - 88 AS col0
----
-4270

query II rowsort
SELECT DISTINCT - 31 AS col0, 35
----
-31
35

query II rowsort
SELECT 88, 84 AS col0
----
88
84

query II rowsort
SELECT ALL - - 11 AS col2, - 15 AS col1
----
11
-15

query I rowsort
SELECT ALL 94 * - 95 * - 57
----
509010

query I rowsort
SELECT ALL + + 19 * + 70 * - + 61 * 11 + + ( + 51 )
----
-892379

query I rowsort
SELECT - 77 * - 4
----
308

query I rowsort
SELECT ALL 52 + + 76
----
128

query I rowsort
SELECT DISTINCT + 19 + + 59
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT DISTINCT - - ( + 2 ) + + - 65 * COUNT( * ) - - 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT - - ( + 2 ) + + - 65 * COUNT ( * ) - - 64 AS col2
----
1

query I rowsort
SELECT ALL 41 * + 88
----
3608

query I rowsort
SELECT ALL - 36 + + 28 * + 6
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5600
SELECT - CAST( + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT - CAST ( + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5601
SELECT DISTINCT - + CAST( + + COUNT( * ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT - + CAST ( + + COUNT ( * ) AS INTEGER ) col2
----
-1

query II rowsort
SELECT 77 + 96, + ( - 59 ) * + 83 + + - 47 AS col2
----
173
-4944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5603
SELECT ALL + 21 - + 36 + + 0 DIV + COUNT( * ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL + 21 - + 36 + + 0 / + COUNT ( * ) col2
----
-15

query II rowsort
SELECT 61 - + 71 col1, 32 - - 46 AS col2
----
-10
78

query I rowsort
SELECT 96 * + + 4
----
384

query I rowsort
SELECT ALL - 48 * + - ( + 33 ) * - + 2 + + - 27 AS col0
----
-3195

onlyif mysql # aggregate syntax: 
query II rowsort label-5607
SELECT DISTINCT - 30 * 76, COUNT( * ) AS col2
----
-2280
1

skipif mysql # not compatible
query II rowsort label-5607
SELECT DISTINCT - 30 * 76, COUNT ( * ) AS col2
----
-2280
1

query II rowsort
SELECT 86 * + 31 * - - 76 * + 62 AS col1, 74 * + + ( - 70 ) AS col0
----
12562192
-5180

query II rowsort
SELECT ALL - 49 * + 61 AS col2, + 39 + - 88
----
-2989
-49

query II rowsort
SELECT DISTINCT - 31 * - - 82, - 88 AS col1
----
-2542
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT 2 * + CASE + 42 WHEN - COUNT( * ) * + 64 THEN NULL ELSE - 22 END
----
-44

skipif mysql # not compatible
query I rowsort label-5611
SELECT 2 * + CASE + 42 WHEN - COUNT ( * ) * + 64 THEN NULL ELSE - 22 END
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT 37 * - + 66 col2, COALESCE ( + COUNT( * ), 68 * - - 95 + - - ( 67 ) )
----
-2442
1

skipif mysql # not compatible
query II rowsort label-5612
SELECT 37 * - + 66 col2, COALESCE ( + COUNT ( * ), 68 * - - 95 + - - ( 67 ) )
----
-2442
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL - SUM( + - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - SUM ( + - 66 ) AS col2
----
66

query I rowsort
SELECT ALL 83 + + 58
----
141

query I rowsort
SELECT - 53 * + - 36
----
1908

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT - CASE NULLIF ( - COUNT( * ), - - 18 + - COUNT( * ) + - SUM( DISTINCT - + 50 ) ) WHEN - 35 THEN - 1 + + ( 22 ) WHEN + 36 + + 31 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT - CASE NULLIF ( - COUNT ( * ), - - 18 + - COUNT ( * ) + - SUM ( DISTINCT - + 50 ) ) WHEN - 35 THEN - 1 + + ( 22 ) WHEN + 36 + + 31 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL - CAST( + 40 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL - CAST ( + 40 AS INTEGER ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT + - COUNT( DISTINCT - ( + 41 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5618
SELECT + - COUNT ( DISTINCT - ( + 41 ) )
----
-1

query I rowsort
SELECT - - 29 * 97 + + - 91 + + 30 * + + 31 AS col2
----
3652

query I rowsort
SELECT + CASE - 45 WHEN - + 13 + - 9 THEN ( 99 ) * 85 + 66 * ( ( + 54 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT 51 * - 28 * - - COUNT( * ) * 39 + COUNT( * )
----
-55691

skipif mysql # not compatible
query I rowsort label-5621
SELECT 51 * - 28 * - - COUNT ( * ) * 39 + COUNT ( * )
----
-55691

query I rowsort
SELECT 54 * - 3 * + - 27
----
4374

query I rowsort
SELECT ALL - - ( 56 )
----
56

query I rowsort
SELECT ALL 13 * - - 54 - 3 + 79 * + 84
----
7335

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT - 82 + + 83 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5625
SELECT - 82 + + 83 + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5626
SELECT + + 28 * + 18 + + + 45 * MAX( + 70 ) * 41 + + 51, 38 AS col2
----
129705
38

skipif mysql # not compatible
query II rowsort label-5626
SELECT + + 28 * + 18 + + + 45 * MAX ( + 70 ) * 41 + + 51, 38 AS col2
----
129705
38

query II rowsort
SELECT + - 14 * - 67 * NULLIF ( - 93, - 55 ) * + 78 + - 97, 23 col2
----
-6804349
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5628
SELECT ALL - COUNT( * ), 40 + - + 58 AS col2
----
-1
-18

skipif mysql # not compatible
query II rowsort label-5628
SELECT ALL - COUNT ( * ), 40 + - + 58 AS col2
----
-1
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT 96 DIV + 47 col2
----
2

skipif mysql # not compatible
query I rowsort label-5629
SELECT 96 / + 47 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT COUNT( ALL 70 ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5630
SELECT COUNT ( ALL 70 ) * - COUNT ( * ) AS col0
----
-1

query II rowsort
SELECT - 10, - ( + 69 ) AS col2
----
-10
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5632
SELECT ALL + 90 - CASE - 66 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - + 8 - - 66 THEN + 76 + 29 - 94 + - ( + + 26 ) * + 33 WHEN - 27 * AVG ( DISTINCT - 73 ) THEN - MAX( + 40 ) / CASE + - 57 WHEN + 54 + + 28 THEN 33 + - 65 WHEN + - 73 + - 21 THEN COUNT( ALL - + ( + 63 ) ) * 75 * - 87 / + 29 + - 25 ELSE NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL + 90 - CASE - 66 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - + 8 - - 66 THEN + 76 + 29 - 94 + - ( + + 26 ) * + 33 WHEN - 27 * AVG ( DISTINCT - 73 ) THEN - MAX ( + 40 ) / CASE + - 57 WHEN + 54 + + 28 THEN 33 + - 65 WHEN + - 73 + - 21 THEN COUNT ( ALL - + ( + 63 ) ) * 75 * - 87 / + 29 + - 25 ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT ALL COUNT( * ) AS col1, - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-5633
SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT DISTINCT SUM( DISTINCT + - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT SUM ( DISTINCT + - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT ( + - 86 ) + COUNT( * ) AS col2, + 71
----
-85
71

skipif mysql # not compatible
query II rowsort label-5635
SELECT ( + - 86 ) + COUNT ( * ) AS col2, + 71
----
-85
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5636
SELECT - COUNT( * ) col1, NULLIF ( COUNT( * ), + 4 ) + + + 0 AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-5636
SELECT - COUNT ( * ) col1, NULLIF ( COUNT ( * ), + 4 ) + + + 0 AS col0
----
-1
1

query I rowsort
SELECT - 86 * + 39 AS col2
----
-3354

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT + COUNT( ALL + 26 ) + - - 56 + + CASE - NULLIF ( + 90, - - 13 * 93 ) WHEN + 79 + + 94 THEN + - 18 END + + 11 + COUNT( * ) + - 26 / + - 43 * - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT + COUNT ( ALL + 26 ) + - - 56 + + CASE - NULLIF ( + 90, - - 13 * 93 ) WHEN + 79 + + 94 THEN + - 18 END + + 11 + COUNT ( * ) + - 26 / + - 43 * - 15 AS col1
----
NULL

query I rowsort
SELECT + 74 + + + 69
----
143

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5640
SELECT - 87, COUNT( * ) + 12 + - + 74 / + SUM( + + 65 ) + - 93 - - CAST( NULL AS DECIMAL ) * + + 1 * - COUNT( * ) AS col2
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-5640
SELECT - 87, COUNT ( * ) + 12 + - + 74 / + SUM ( + + 65 ) + - 93 - - CAST ( NULL AS REAL ) * + + 1 * - COUNT ( * ) AS col2
----
-87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL SUM( ALL + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL SUM ( ALL + 57 )
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5642
SELECT - 50 * - + ( + - CASE - CAST( NULL AS DECIMAL ) WHEN - - 4 THEN - + 32 ELSE + NULLIF ( - + 50, - - 7 / 4 ) END ) AS col2
----
2500

skipif mysql # not compatible
query I rowsort label-5642
SELECT - 50 * - + ( + - CASE - CAST ( NULL AS REAL ) WHEN - - 4 THEN - + 32 ELSE + NULLIF ( - + 50, - - 7 / 4 ) END ) AS col2
----
2500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT - 67 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT - 67 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( 88 ) * - + 48 * + 25 AS col2
----
105600

query I rowsort
SELECT DISTINCT - COALESCE ( - 53, 33 ) + - + 31 AS col2
----
22

query I rowsort
SELECT - + 90 + 46 + + 64 + + + 77 AS col1
----
97

query I rowsort
SELECT - COALESCE ( - - 54, 44 * + + 92 + - ( - - 38 ), 57 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT ALL + 40 * 28 + - COUNT( * ) + - - 86 AS col2
----
1205

skipif mysql # not compatible
query I rowsort label-5648
SELECT ALL + 40 * 28 + - COUNT ( * ) + - - 86 AS col2
----
1205

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT - + 30 DIV + 49 * + 47 DIV COALESCE ( - 4, + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT - + 30 / + 49 * + 47 / COALESCE ( - 4, + 61 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5650
SELECT - - 55 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT - - 55 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT CAST( NULL AS SIGNED ) * 81 + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT CAST ( NULL AS INTEGER ) * 81 + - 22
----
NULL

query I rowsort
SELECT ALL 60 * - 66 + - 37
----
-3997

onlyif mysql # aggregate syntax: 
query II rowsort label-5653
SELECT COUNT( * ) AS col2, + 68 + + + COUNT( * ) + - - COUNT( * ) - 75 * + 37 * - 91 * 58 AS col0
----
1
14646520

skipif mysql # not compatible
query II rowsort label-5653
SELECT COUNT ( * ) AS col2, + 68 + + + COUNT ( * ) + - - COUNT ( * ) - 75 * + 37 * - 91 * 58 AS col0
----
1
14646520

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - 28 + - - 79 + + 38 + + - CASE - SUM( ALL - 88 ) WHEN - + 69 * 97 THEN - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT - 28 + - - 79 + + 38 + + - CASE - SUM ( ALL - 88 ) WHEN - + 69 * 97 THEN - 65 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT + 3 + + 69 + + 16 * + - 96 + - ( + 55 ) + NULLIF ( + 34, ( - COUNT( 74 ) ) + + ( 90 ) + + 73 ) AS col1
----
-1485

skipif mysql # not compatible
query I rowsort label-5655
SELECT + 3 + + 69 + + 16 * + - 96 + - ( + 55 ) + NULLIF ( + 34, ( - COUNT ( 74 ) ) + + ( 90 ) + + 73 ) AS col1
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT CASE + COUNT( * ) WHEN + 79 THEN + 13 - + - 97 WHEN + ( COALESCE ( + 69, + 91, 93 ) ) THEN NULL WHEN + COALESCE ( - - 96, + + 79 + + 26 + 72, + 82 * - + 25 - + 76 ) THEN + 44 ELSE + - ( - + 74 ) END AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5656
SELECT CASE + COUNT ( * ) WHEN + 79 THEN + 13 - + - 97 WHEN + ( COALESCE ( + 69, + 91, 93 ) ) THEN NULL WHEN + COALESCE ( - - 96, + + 79 + + 26 + 72, + 82 * - + 25 - + 76 ) THEN + 44 ELSE + - ( - + 74 ) END AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT - COUNT( * ) * + NULLIF ( - 57, - 64 / + COUNT( 47 ) * - + COALESCE ( - 96, - 61 + 30 ) + 57 ) + + + COUNT( * ) * - COUNT( * ) * + 27
----
30

skipif mysql # not compatible
query I rowsort label-5657
SELECT - COUNT ( * ) * + NULLIF ( - 57, - 64 / + COUNT ( 47 ) * - + COALESCE ( - 96, - 61 + 30 ) + 57 ) + + + COUNT ( * ) * - COUNT ( * ) * + 27
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5658
SELECT - COUNT( - 72 ) * - 33 DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT - COUNT ( - 72 ) * - 33 / - 69 AS col1
----
0

query I rowsort
SELECT ALL + 48 * - 57
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT DISTINCT + ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT DISTINCT + 28 col0, + 39 AS col1
----
28
39

query II rowsort
SELECT ALL COALESCE ( - 61, - 25, 50 * 48 ) * - 16, + 22 AS col2
----
976
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5663
SELECT - NULLIF ( - + 83, + + NULLIF ( - 96, CAST( NULL AS DECIMAL ) ) / - + 4 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5663
SELECT - NULLIF ( - + 83, + + NULLIF ( - 96, CAST ( NULL AS REAL ) ) / - + 4 ) AS col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT + 86 DIV 21
----
4

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 86 / 21
----
4

query I rowsort
SELECT + ( - 4 ) * - 9
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - 33 * - - 19 + + COUNT( * )
----
-626

skipif mysql # not compatible
query I rowsort label-5666
SELECT - 33 * - - 19 + + COUNT ( * )
----
-626

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5667
SELECT + 74 * - 96 * + CAST( + + 46 AS SIGNED ), - 49 AS col0
----
-326784
-49

skipif mysql # not compatible
query II rowsort label-5667
SELECT + 74 * - 96 * + CAST ( + + 46 AS INTEGER ), - 49 AS col0
----
-326784
-49

query I rowsort
SELECT - 80 + + 97 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL COUNT( + 78 ) + - 29
----
-28

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL COUNT ( + 78 ) + - 29
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT DISTINCT COUNT( ALL + 16 )
----
1

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT COUNT ( ALL + 16 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5671
SELECT + 74 * - 60 col2, COUNT( * ) * 52
----
-4440
52

skipif mysql # not compatible
query II rowsort label-5671
SELECT + 74 * - 60 col2, COUNT ( * ) * 52
----
-4440
52

onlyif mysql # DIV for integer division: 
query II rowsort label-5672
SELECT - 66, + 72 * + - 83 + + 60 DIV - + 22 AS col2
----
-66
-5978

skipif mysql # not compatible
query II rowsort label-5672
SELECT - 66, + 72 * + - 83 + + 60 / - + 22 AS col2
----
-66
-5978

query II rowsort
SELECT - - 14, 31 AS col2
----
14
31

query I rowsort
SELECT ALL + 73 + + 4 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - + 93 - + ( - COUNT( * ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5675
SELECT - + 93 - + ( - COUNT ( * ) ) AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT ALL - 78 DIV 60 * 64 + + 97 - 35 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - 78 / 60 * 64 + + 97 - 35 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5677
SELECT ALL + + 81, 0 + + + 78 * - SUM( 0 ) AS col2
----
81
0

skipif mysql # not compatible
query II rowsort label-5677
SELECT ALL + + 81, 0 + + + 78 * - SUM ( 0 ) AS col2
----
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT + COUNT( DISTINCT + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + COUNT ( DISTINCT + 71 )
----
1

query I rowsort
SELECT ALL + - ( + 52 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT + 69 * - 52 + + + COUNT( * ) AS col2
----
-3587

skipif mysql # not compatible
query I rowsort label-5680
SELECT + 69 * - 52 + + + COUNT ( * ) AS col2
----
-3587

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT - + 91 DIV 66
----
-1

skipif mysql # not compatible
query I rowsort label-5681
SELECT - + 91 / 66
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL + COUNT( * ) * + + 87
----
87

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL + COUNT ( * ) * + + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT - 17 + - + MAX( ( 82 ) ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-5683
SELECT - 17 + - + MAX ( ( 82 ) ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT - 93 + + 75 - - + 55 * 52 * 96 * ( + 75 ) + + MAX( - - 85 )
----
20592067

skipif mysql # not compatible
query I rowsort label-5684
SELECT - 93 + + 75 - - + 55 * 52 * 96 * ( + 75 ) + + MAX ( - - 85 )
----
20592067

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL COALESCE ( + - 25, - 31 ) * - - 13 + + - ( 40 ) - 51 + + - NULLIF ( 64, + COUNT( * ) + - 22 ) + - CASE + 17 WHEN 59 THEN - 10 END + + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL COALESCE ( + - 25, - 31 ) * - - 13 + + - ( 40 ) - 51 + + - NULLIF ( 64, + COUNT ( * ) + - 22 ) + - CASE + 17 WHEN 59 THEN - 10 END + + 33 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5686
SELECT ( + COUNT( * ) ) * - CASE + 54 WHEN + - 75 THEN CAST( NULL AS SIGNED ) / - 69 + - + 41 WHEN + COUNT( - + 81 ) THEN 4 ELSE NULL END + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT ( + COUNT ( * ) ) * - CASE + 54 WHEN + - 75 THEN CAST ( NULL AS INTEGER ) / - 69 + - + 41 WHEN + COUNT ( - + 81 ) THEN 4 ELSE NULL END + 69 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT DISTINCT + COUNT( * ) + + CAST( + 73 AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT + COUNT ( * ) + + CAST ( + 73 AS INTEGER ) AS col1
----
74

query I rowsort
SELECT 95 + - 14 * - 11 AS col2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT 2 * + - COUNT( 77 ) * + 50
----
-100

skipif mysql # not compatible
query I rowsort label-5689
SELECT 2 * + - COUNT ( 77 ) * + 50
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT COALESCE ( + 88, - 22 * + COUNT( * ) - 3, + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - + COUNT( - 4 ) * + - 56 ) * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT COALESCE ( + 88, - 22 * + COUNT ( * ) - 3, + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - + COUNT ( - 4 ) * + - 56 ) * + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 40 + - 19 AS col0
----
21

query I rowsort
SELECT DISTINCT + 0 + - 24 col1
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5693
SELECT ALL CAST( NULL AS DECIMAL ) + - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL CAST ( NULL AS REAL ) + - 90 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5694
SELECT NULLIF ( - 90, - MIN( + - CAST( + 54 AS SIGNED ) ) + - 98 ) * 38 AS col1
----
-3420

skipif mysql # not compatible
query I rowsort label-5694
SELECT NULLIF ( - 90, - MIN ( + - CAST ( + 54 AS INTEGER ) ) + - 98 ) * 38 AS col1
----
-3420

query I rowsort
SELECT DISTINCT 32 + - + 25
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT ALL CAST( NULL AS SIGNED ) + + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL CAST ( NULL AS INTEGER ) + + - 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5697
SELECT COUNT( * ) + + 99 + 18 DIV - 55
----
100

skipif mysql # not compatible
query I rowsort label-5697
SELECT COUNT ( * ) + + 99 + 18 / - 55
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT + 28 - - + 26 * + 43 + 91 + - ( - COUNT( * ) ) * ( + - 22 ) col0
----
1215

skipif mysql # not compatible
query I rowsort label-5698
SELECT + 28 - - + 26 * + 43 + 91 + - ( - COUNT ( * ) ) * ( + - 22 ) col0
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT - COUNT( DISTINCT + 64 ) + - - 81 * + 57 AS col0
----
4616

skipif mysql # not compatible
query I rowsort label-5699
SELECT - COUNT ( DISTINCT + 64 ) + - - 81 * + 57 AS col0
----
4616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5700
SELECT 80 - + + CASE - 96 WHEN 1 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - - COUNT( * ) + - 30 END * + 90 - + CAST( + 73 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5700
SELECT 80 - + + CASE - 96 WHEN 1 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - - COUNT ( * ) + - 30 END * + 90 - + CAST ( + 73 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 46 * 52 * - - 16 * + ( + + 35 )
----
-1339520

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + 94 * + - 95 + COALESCE ( - 73, 69 * + COUNT( * ) ) - - ( + SUM( DISTINCT - - 54 ) )
----
-8949

skipif mysql # not compatible
query I rowsort label-5702
SELECT + 94 * + - 95 + COALESCE ( - 73, 69 * + COUNT ( * ) ) - - ( + SUM ( DISTINCT - - 54 ) )
----
-8949

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT 73 - + 34 + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT 73 - + 34 + - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-5704
SELECT + COUNT( * ) * - 32 + + + COUNT( * ) + 96 + + 39 AS col2, 32 AS col0
----
104
32

skipif mysql # not compatible
query II rowsort label-5704
SELECT + COUNT ( * ) * - 32 + + + COUNT ( * ) + 96 + + 39 AS col2, 32 AS col0
----
104
32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5705
SELECT ALL CAST( - - 67 AS SIGNED ) AS col0, 88 - + + 67 DIV + 26
----
67
86

skipif mysql # not compatible
query II rowsort label-5705
SELECT ALL CAST ( - - 67 AS INTEGER ) AS col0, 88 - + + 67 / + 26
----
67
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5706
SELECT - 21 + + 75 * - 9 DIV + CASE - 69 WHEN 72 THEN NULL WHEN + MIN( DISTINCT 26 ) * + 40 + + 68 DIV + - 3 THEN - 86 ELSE COUNT( ALL - 27 ) END
----
-696

skipif mysql # not compatible
query I rowsort label-5706
SELECT - 21 + + 75 * - 9 / + CASE - 69 WHEN 72 THEN NULL WHEN + MIN ( DISTINCT 26 ) * + 40 + + 68 / + - 3 THEN - 86 ELSE COUNT ( ALL - 27 ) END
----
-696

query I rowsort
SELECT ALL - ( + 44 ) * + 30 * + - 52
----
68640

query I rowsort
SELECT - 35 + - + 14 AS col0
----
-49

query I rowsort
SELECT - 62 * + 23 AS col1
----
-1426

query I rowsort
SELECT 31 * 61 + + + 38 * + 43
----
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT + CASE 6 WHEN - + MIN( - 51 ) THEN NULL ELSE - - ( + + 99 ) + 17 END * - 64 + + + 86 + COUNT( * ) + MAX( ALL + 19 )
----
-7318

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT + CASE 6 WHEN - + MIN ( - 51 ) THEN NULL ELSE - - ( + + 99 ) + 17 END * - 64 + + + 86 + COUNT ( * ) + MAX ( ALL + 19 )
----
-7318

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT + 29 * - + 18 AS col1, CASE - 16 WHEN ( 79 ) THEN NULL WHEN 88 THEN AVG ( ALL - ( + - 41 ) ) + + 8 ELSE + + COUNT( DISTINCT + 88 ) * + - 13 * - 33 END
----
-522
429

skipif mysql # not compatible
query II rowsort label-5712
SELECT + 29 * - + 18 AS col1, CASE - 16 WHEN ( 79 ) THEN NULL WHEN 88 THEN AVG ( ALL - ( + - 41 ) ) + + 8 ELSE + + COUNT ( DISTINCT + 88 ) * + - 13 * - 33 END
----
-522
429

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT ALL + COUNT( * ) * - ( - 74 ) * + 23
----
1702

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL + COUNT ( * ) * - ( - 74 ) * + 23
----
1702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT DISTINCT - CAST( - ( - CASE + + 6 WHEN + SUM( - + 44 ) THEN 76 END ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - CAST ( - ( - CASE + + 6 WHEN + SUM ( - + 44 ) THEN 76 END ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT DISTINCT 81 * COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT 81 * COUNT ( * )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT 12 DIV + 66 col2
----
0

skipif mysql # not compatible
query I rowsort label-5716
SELECT 12 / + 66 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5717
SELECT ALL - 86 + - CAST( - + MIN( + - ( 42 ) ) AS SIGNED ) AS col1
----
-128

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL - 86 + - CAST ( - + MIN ( + - ( 42 ) ) AS INTEGER ) AS col1
----
-128

query I rowsort
SELECT ( 50 ) + - 43 - + 25
----
-18

query I rowsort
SELECT 95 * - 79
----
-7505

onlyif mysql # DIV for integer division: 
query I rowsort label-5720
SELECT 37 DIV + 35 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5720
SELECT 37 / + 35 AS col0
----
1

query I rowsort
SELECT - 63 * - + 13 + 66 * - - 24
----
2403

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT DISTINCT + COUNT( * ) + - + COALESCE ( + - 64, + 29 - + + 46, - 71 + + 22 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT + COUNT ( * ) + - + COALESCE ( + - 64, + 29 - + + 46, - 71 + + 22 ) AS col1
----
65

query I rowsort
SELECT 27 + + 92 * - - COALESCE ( - 49, 61 )
----
-4481

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT DISTINCT - MIN( 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT - MIN ( 57 ) AS col1
----
-57

query I rowsort
SELECT 37 + 27
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT DISTINCT 32 + ( + NULLIF ( 97, SUM( DISTINCT + + 25 ) ) ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT 32 + ( + NULLIF ( 97, SUM ( DISTINCT + + 25 ) ) ) AS col0
----
129

query I rowsort
SELECT DISTINCT + CASE 79 WHEN - 34 * 90 THEN + 36 + + + 74 ELSE NULL END - 48 col1
----
NULL

query II rowsort
SELECT 20 AS col0, + 1
----
20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5729
SELECT + CAST( + 4 AS SIGNED ) * + 12 + - COALESCE ( - 48, - + 31 DIV - + 34 * - ( COUNT( * ) ), - 93 * - 24 + + 89 * - + COUNT( * ) )
----
96

skipif mysql # not compatible
query I rowsort label-5729
SELECT + CAST ( + 4 AS INTEGER ) * + 12 + - COALESCE ( - 48, - + 31 / - + 34 * - ( COUNT ( * ) ), - 93 * - 24 + + 89 * - + COUNT ( * ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL + ( NULLIF ( + + MIN( DISTINCT + 3 ), - SUM( + - 76 ) - - + ( + 29 ) ) ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL + ( NULLIF ( + + MIN ( DISTINCT + 3 ), - SUM ( + - 76 ) - - + ( + 29 ) ) ) AS col1
----
3

query II rowsort
SELECT - + 51 AS col0, 97 AS col1
----
-51
97

query I rowsort
SELECT 95 + - 15 + - 61 + - 65
----
-46

query II rowsort
SELECT ALL 73 AS col1, NULLIF ( + - 73, 37 - + + 38 ) AS col0
----
73
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT - 92 DIV - + 68
----
1

skipif mysql # not compatible
query I rowsort label-5734
SELECT - 92 / - + 68
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT DISTINCT + SUM( - - 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT + SUM ( - - 43 ) AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5736
SELECT DISTINCT - 23 DIV + 13 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - 23 / + 13 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT DISTINCT SUM( - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT SUM ( - + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT + ( + MAX( DISTINCT 3 ) ) col1
----
3

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + ( + MAX ( DISTINCT 3 ) ) col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5739
SELECT SUM( + 57 ) - + CAST( + 88 AS SIGNED ) * 75 + 57
----
-6486

skipif mysql # not compatible
query I rowsort label-5739
SELECT SUM ( + 57 ) - + CAST ( + 88 AS INTEGER ) * 75 + 57
----
-6486

onlyif mysql # aggregate syntax: 
query II rowsort label-5740
SELECT - - 43 AS col1, MAX( + 40 ) AS col0
----
43
40

skipif mysql # not compatible
query II rowsort label-5740
SELECT - - 43 AS col1, MAX ( + 40 ) AS col0
----
43
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT - CAST( - - 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-5741
SELECT - CAST ( - - 66 AS INTEGER )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT + NULLIF ( - CASE + COALESCE ( + + MIN( ALL 20 ), + + COUNT( * ) ) WHEN 95 - - ( - 66 ) THEN + CASE - + ( - 60 ) WHEN 79 * + - 21 THEN NULL WHEN - NULLIF ( - + 41, 26 ) THEN NULL ELSE - + 78 END WHEN - 31 THEN - COALESCE ( - 50, - 18 ) END, + 18 * - 94 * 99 ) * - 21 + - COALESCE ( - + 72, - ( + - 13 ) * 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT + NULLIF ( - CASE + COALESCE ( + + MIN ( ALL 20 ), + + COUNT ( * ) ) WHEN 95 - - ( - 66 ) THEN + CASE - + ( - 60 ) WHEN 79 * + - 21 THEN NULL WHEN - NULLIF ( - + 41, 26 ) THEN NULL ELSE - + 78 END WHEN - 31 THEN - COALESCE ( - 50, - 18 ) END, + 18 * - 94 * 99 ) * - 21 + - COALESCE ( - + 72, - ( + - 13 ) * 23 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL SUM( ALL + 62 ) * + 82 * - CASE WHEN NULL >= NULL THEN 87 END / - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL SUM ( ALL + 62 ) * + 82 * - CASE WHEN NULL >= NULL THEN 87 END / - - 70
----
NULL

query I rowsort
SELECT ALL - + 75 col2
----
-75

query I rowsort
SELECT + 70 * - 50 * - 59
----
206500

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5746
SELECT + NULLIF ( - 28, - MAX( ALL + - 57 ) ) AS col0, - 12 DIV - 21 * 5
----
-28
0

skipif mysql # not compatible
query II rowsort label-5746
SELECT + NULLIF ( - 28, - MAX ( ALL + - 57 ) ) AS col0, - 12 / - 21 * 5
----
-28
0

query I rowsort
SELECT + 99 * - + ( - + 9 )
----
891

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5748
SELECT - SUM( - 50 ) DIV + ( - 60 ) - - ( 37 ) + - - 47, 27 col0
----
84
27

skipif mysql # not compatible
query II rowsort label-5748
SELECT - SUM ( - 50 ) / + ( - 60 ) - - ( 37 ) + - - 47, 27 col0
----
84
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT SUM( + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-5749
SELECT SUM ( + 37 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5750
SELECT - NULLIF ( + + 75, + 58 ) * + 16 - - CAST( + 48 AS SIGNED ) DIV + 48 + + 47 + + 63 + - MIN( - + ( - - ( - 5 ) ) ) + + 70 * + 68 AS col1
----
3666

skipif mysql # not compatible
query I rowsort label-5750
SELECT - NULLIF ( + + 75, + 58 ) * + 16 - - CAST ( + 48 AS INTEGER ) / + 48 + + 47 + + 63 + - MIN ( - + ( - - ( - 5 ) ) ) + + 70 * + 68 AS col1
----
3666

query I rowsort
SELECT ALL + 71 * + 21 + - 42 + - 38
----
1411

query I rowsort
SELECT ALL - 88 * + 12 + + 22
----
-1034

query I rowsort
SELECT ALL 27 * + - 50 AS col1
----
-1350

query I rowsort
SELECT + 9 + 27 * + - 51 * + + 31 AS col2
----
-42678

query I rowsort
SELECT + 68 * - 45 AS col2
----
-3060

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT - 73 * + COUNT( * ) col0, 73 * - 47 * + 98 AS col1
----
-73
-336238

skipif mysql # not compatible
query II rowsort label-5756
SELECT - 73 * + COUNT ( * ) col0, 73 * - 47 * + 98 AS col1
----
-73
-336238

query I rowsort
SELECT + 44 * 46 * - 16 col0
----
-32384

query I rowsort
SELECT ALL + ( + - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-5759
SELECT COUNT( + 18 ), 25 col2
----
1
25

skipif mysql # not compatible
query II rowsort label-5759
SELECT COUNT ( + 18 ), 25 col2
----
1
25

query I rowsort
SELECT - 67 * - + 73
----
4891

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5761
SELECT ALL - 86 DIV 90 DIV + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - 86 / 90 / + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT - - CAST( - - COUNT( DISTINCT CAST( - - 79 AS SIGNED ) ) AS SIGNED ) - + 62
----
-61

skipif mysql # not compatible
query I rowsort label-5762
SELECT - - CAST ( - - COUNT ( DISTINCT CAST ( - - 79 AS INTEGER ) ) AS INTEGER ) - + 62
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5763
SELECT DISTINCT + 74 DIV - + ( - COUNT( * ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT + 74 / - + ( - COUNT ( * ) ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - + COUNT( * ) + + 77
----
76

skipif mysql # not compatible
query I rowsort label-5764
SELECT - + COUNT ( * ) + + 77
----
76

query I rowsort
SELECT - 95 + + 85
----
-10

query I rowsort
SELECT DISTINCT - 17 col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL ( MAX( + 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL ( MAX ( + 27 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT + + COUNT( * ) + - COUNT( DISTINCT - 92 ) + - - 26
----
26

skipif mysql # not compatible
query I rowsort label-5768
SELECT + + COUNT ( * ) + - COUNT ( DISTINCT - 92 ) + - - 26
----
26

query I rowsort
SELECT - + CASE + 31 WHEN 29 THEN NULL ELSE + 28 END * - - 95 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT - + 56 * 22 + - + 8 + - COUNT( + - 68 ) + + 34 AS col1
----
-1207

skipif mysql # not compatible
query I rowsort label-5770
SELECT - + 56 * 22 + - + 8 + - COUNT ( + - 68 ) + + 34 AS col1
----
-1207

query I rowsort
SELECT - - 45 + - NULLIF ( + - 3, + 6 )
----
48

query I rowsort
SELECT - 26 - + + 39 + 47 + - 95 AS col0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT - CASE - 21 WHEN - COUNT( * ) THEN + 8 END + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT - CASE - 21 WHEN - COUNT ( * ) THEN + 8 END + 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5774
SELECT - 84 + - ( - 87 ) + - 69 * + COUNT( * ) * - 86 + 3 + - - 71 * - 30 AS col1, + COUNT( * )
----
3810
1

skipif mysql # not compatible
query II rowsort label-5774
SELECT - 84 + - ( - 87 ) + - 69 * + COUNT ( * ) * - 86 + 3 + - - 71 * - 30 AS col1, + COUNT ( * )
----
3810
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + 53 * - COUNT( * ) * + - ( + MIN( ALL - - 19 ) ) + + - 43
----
964

skipif mysql # not compatible
query I rowsort label-5775
SELECT + 53 * - COUNT ( * ) * + - ( + MIN ( ALL - - 19 ) ) + + - 43
----
964

query II rowsort
SELECT DISTINCT ( - 70 ), + 91 col1
----
-70
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT ALL + - 46 + - - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL + - 46 + - - COUNT ( * )
----
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5778
SELECT - - 29 + - COALESCE ( - - ( - 94 ), + CAST( 44 AS SIGNED ) + - + 80 + 20 DIV - 7 * - - CAST( NULL AS SIGNED ) - 93 DIV + + 77 * + + ( 65 ) ), - 52 AS col2
----
123
-52

skipif mysql # not compatible
query II rowsort label-5778
SELECT - - 29 + - COALESCE ( - - ( - 94 ), + CAST ( 44 AS INTEGER ) + - + 80 + 20 / - 7 * - - CAST ( NULL AS INTEGER ) - 93 / + + 77 * + + ( 65 ) ), - 52 AS col2
----
123
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + + 54 + - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5779
SELECT + + 54 + - COUNT ( * ) AS col2
----
53

query I rowsort
SELECT + - 79 + 43
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT - MAX( DISTINCT - 27 ) * + NULLIF ( ( + 13 ), + ( - - 67 ) + 17 * 49 + - 91 ) AS col2
----
351

skipif mysql # not compatible
query I rowsort label-5781
SELECT - MAX ( DISTINCT - 27 ) * + NULLIF ( ( + 13 ), + ( - - 67 ) + 17 * 49 + - 91 ) AS col2
----
351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT + 87 * - 54 * + - 17 DIV + COUNT( * )
----
79866

skipif mysql # not compatible
query I rowsort label-5782
SELECT + 87 * - 54 * + - 17 / + COUNT ( * )
----
79866

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT 31 * 7 * - CASE + 43 WHEN + ( + + COUNT( * ) ) THEN NULL WHEN 25 + + COUNT( * ) / - COUNT( * ) * - 83 THEN + 42 ELSE NULL END / - 14 + COUNT( ALL + 10 ) * + ( - - 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT 31 * 7 * - CASE + 43 WHEN + ( + + COUNT ( * ) ) THEN NULL WHEN 25 + + COUNT ( * ) / - COUNT ( * ) * - 83 THEN + 42 ELSE NULL END / - 14 + COUNT ( ALL + 10 ) * + ( - - 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT COUNT( * ) * NULLIF ( 11, - + 60 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT COUNT ( * ) * NULLIF ( 11, - + 60 ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT - 34 / CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT - 34 / CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5786
SELECT - 18 DIV + MIN( + 60 ) + 75
----
75

skipif mysql # not compatible
query I rowsort label-5786
SELECT - 18 / + MIN ( + 60 ) + 75
----
75

onlyif mysql # DIV for integer division: 
query III rowsort label-5787
SELECT ALL - 44 DIV 90 * 44 * + 98 + 38 AS col2, 80 AS col0, - + 15 + - + 85 AS col2
----
38
80
-100

skipif mysql # not compatible
query III rowsort label-5787
SELECT ALL - 44 / 90 * 44 * + 98 + 38 AS col2, 80 AS col0, - + 15 + - + 85 AS col2
----
38
80
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT ALL - 96 * + + COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL - 96 * + + COUNT ( * ) AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5789
SELECT + 4 / + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5789
SELECT + 4 / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( COALESCE ( + - 68, + - 62 ) )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5791
SELECT ALL + CASE ( + 3 ) WHEN - 70 - + COUNT( * ) THEN 16 + 3 END * - - 47 - + COUNT( * ) - + + 51, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5791
SELECT ALL + CASE ( + 3 ) WHEN - 70 - + COUNT ( * ) THEN 16 + 3 END * - - 47 - + COUNT ( * ) - + + 51, - COUNT ( * ) AS col1
----
NULL
-1

query II rowsort
SELECT - 92 * + ( + 85 ) AS col1, 4 AS col0
----
-7820
4

query I rowsort
SELECT + ( - + 69 )
----
-69

query I rowsort
SELECT - CASE 50 WHEN + + 93 THEN - 31 * + + 95 END * + + 60 - 97
----
NULL

query II rowsort
SELECT ALL + 91 AS col1, - 64 + + 32 AS col2
----
91
-32

query I rowsort
SELECT + 85 + - 73 AS col0
----
12

query I rowsort
SELECT + NULLIF ( 57, 8 - 71 ) AS col2
----
57

query I rowsort
SELECT + 50 * - - ( 36 )
----
1800

query I rowsort
SELECT + 62 * - - 27
----
1674

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5800
SELECT NULLIF ( NULLIF ( + 21, - COUNT( * ) * COUNT( * ) ), MIN( ALL + - CAST( - - 54 AS DECIMAL ) ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5800
SELECT NULLIF ( NULLIF ( + 21, - COUNT ( * ) * COUNT ( * ) ), MIN ( ALL + - CAST ( - - 54 AS REAL ) ) ) AS col2
----
21

query I rowsort
SELECT DISTINCT 73 * - COALESCE ( + 97, + 59 ) * - 52
----
368212

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT CASE - 36 WHEN - + 68 THEN NULL ELSE - 76 DIV + 86 END
----
0

skipif mysql # not compatible
query I rowsort label-5802
SELECT CASE - 36 WHEN - + 68 THEN NULL ELSE - 76 / + 86 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT + 14 * - COUNT( * ) * + CASE 79 WHEN - 1 THEN + - 18 - 49 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT + 14 * - COUNT ( * ) * + CASE 79 WHEN - 1 THEN + - 18 - 49 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT ALL - 45 DIV - - 22 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - 45 / - - 22 AS col1
----
-2

query I rowsort
SELECT + - 34 + 54 + + 35 + + ( + 21 ) * - 69
----
-1394

query I rowsort
SELECT ALL + ( 90 ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5807
SELECT + + CASE 93 WHEN - - 71 * + - 44 * - 3 - 75 THEN COUNT( * ) * - + CAST( NULL AS SIGNED ) / + ( 83 ) END + 26 * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT + + CASE 93 WHEN - - 71 * + - 44 * - 3 - 75 THEN COUNT ( * ) * - + CAST ( NULL AS INTEGER ) / + ( 83 ) END + 26 * - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT + - 90 DIV COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5808
SELECT + - 90 / COUNT ( * ) AS col0
----
-90

query I rowsort
SELECT - - 85 * 34 AS col0
----
2890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5810
SELECT + ( - - 83 ) * CASE - + 96 WHEN - 39 * + CAST( NULL AS SIGNED ) THEN - + 39 WHEN ( 33 ) + + AVG ( DISTINCT + + 42 ) + MIN( + 10 ) / + 37 THEN - + 71 + + 64 + 11 + COUNT( * ) * 63 * 16 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT + ( - - 83 ) * CASE - + 96 WHEN - 39 * + CAST ( NULL AS INTEGER ) THEN - + 39 WHEN ( 33 ) + + AVG ( DISTINCT + + 42 ) + MIN ( + 10 ) / + 37 THEN - + 71 + + 64 + 11 + COUNT ( * ) * 63 * 16 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5811
SELECT - 24 + - 97 - - COUNT( * ) - + ( + 56 ) DIV + + ( 48 ) AS col0
----
-121

skipif mysql # not compatible
query I rowsort label-5811
SELECT - 24 + - 97 - - COUNT ( * ) - + ( + 56 ) / + + ( 48 ) AS col0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT + ( + NULLIF ( - COALESCE ( 15, + - MIN( - 34 ) ), - 87 + - ( - 55 ) + - 73 ) ) DIV - 51 col0
----
0

skipif mysql # not compatible
query I rowsort label-5812
SELECT + ( + NULLIF ( - COALESCE ( 15, + - MIN ( - 34 ) ), - 87 + - ( - 55 ) + - 73 ) ) / - 51 col0
----
0

query I rowsort
SELECT - 37 + - 27 + - + 93 + 7 - - 6 col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL - 60 * - + COUNT( * ) + + COUNT( * ) * 45 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - 60 * - + COUNT ( * ) + + COUNT ( * ) * 45 AS col0
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-5815
SELECT - - 14 AS col0, ( - + 62 ) DIV 41
----
14
-1

skipif mysql # not compatible
query II rowsort label-5815
SELECT - - 14 AS col0, ( - + 62 ) / 41
----
14
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT ALL + 69 DIV 43 * + 7
----
7

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + 69 / 43 * + 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL - 89 * COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - 89 * COUNT ( * )
----
-89

query I rowsort
SELECT - 70 - - - 25 + + + 84
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT ALL - + 39 * 10 + + 55 DIV 20 DIV + 59 AS col0
----
-390

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - + 39 * 10 + + 55 / 20 / + 59 AS col0
----
-390

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5820
SELECT 32 * - - COALESCE ( + + 13, COUNT( * ), + 4 ) AS col2, CAST( NULL AS DECIMAL )
----
416
NULL

skipif mysql # not compatible
query II rowsort label-5820
SELECT 32 * - - COALESCE ( + + 13, COUNT ( * ), + 4 ) AS col2, CAST ( NULL AS REAL )
----
416
NULL

query I rowsort
SELECT 31 * + - 10 * 99 AS col0
----
-30690

onlyif mysql # aggregate syntax: 
query II rowsort label-5822
SELECT - 99, + 39 - + 8 + SUM( ALL 10 ) AS col2
----
-99
41

skipif mysql # not compatible
query II rowsort label-5822
SELECT - 99, + 39 - + 8 + SUM ( ALL 10 ) AS col2
----
-99
41

query I rowsort
SELECT 21 - - - 16
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT DISTINCT - MIN( ALL 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT - MIN ( ALL 24 ) AS col1
----
-24

query I rowsort
SELECT ALL 75 * 29 AS col2
----
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT ALL + ( 16 ) - - COUNT( * ) * - 98 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL + ( 16 ) - - COUNT ( * ) * - 98 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT 11 * - - MIN( + - NULLIF ( 11, - - 59 ) )
----
-121

skipif mysql # not compatible
query I rowsort label-5827
SELECT 11 * - - MIN ( + - NULLIF ( 11, - - 59 ) )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT 20 + - COUNT( * ) - COUNT( * ) + - 45
----
-27

skipif mysql # not compatible
query I rowsort label-5828
SELECT 20 + - COUNT ( * ) - COUNT ( * ) + - 45
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT ALL - 91 AS col0, + MIN( DISTINCT - + 56 ) col2
----
-91
-56

skipif mysql # not compatible
query II rowsort label-5829
SELECT ALL - 91 AS col0, + MIN ( DISTINCT - + 56 ) col2
----
-91
-56

query I rowsort
SELECT 30 + - 27
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5831
SELECT ( + 64 ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT ( + 64 ) * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 74 * + 43 AS col2
----
3182

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5833
SELECT 46 * 43 AS col2, ( - 63 ) DIV + 50 + - 31 + 8 + - COUNT( - 19 ) + - 24 AS col0
----
1978
-49

skipif mysql # not compatible
query II rowsort label-5833
SELECT 46 * 43 AS col2, ( - 63 ) / + 50 + - 31 + 8 + - COUNT ( - 19 ) + - 24 AS col0
----
1978
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT ALL - 81, COUNT( * ) * + 83 * 49 * + + 9 AS col0
----
-81
36603

skipif mysql # not compatible
query II rowsort label-5834
SELECT ALL - 81, COUNT ( * ) * + 83 * 49 * + + 9 AS col0
----
-81
36603

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT + 88 AS col2, - COUNT( * )
----
88
-1

skipif mysql # not compatible
query II rowsort label-5835
SELECT + 88 AS col2, - COUNT ( * )
----
88
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT + MAX( - 2 ) * - CASE - 91 WHEN + ( COUNT( * ) ) THEN NULL ELSE 58 END * - ( - 38 ) * - 69 - - + 57 + + 55 - 10 col2
----
-304050

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT + MAX ( - 2 ) * - CASE - 91 WHEN + ( COUNT ( * ) ) THEN NULL ELSE 58 END * - ( - 38 ) * - 69 - - + 57 + + 55 - 10 col2
----
-304050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5837
SELECT - 72 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT - 72 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - + ( + 38 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT DISTINCT - ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - ( + - COUNT ( * ) )
----
1

query I rowsort
SELECT 3 * 1 + + 36 col1
----
39

query II rowsort
SELECT ALL - 62 AS col2, + 94 * - 12
----
-62
-1128

query I rowsort
SELECT + - ( - 35 ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL - COUNT( * ) + - ( 62 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL - COUNT ( * ) + - ( 62 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL + 73 + - - 96 * 58 * SUM( + 5 )
----
27913

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL + 73 + - - 96 * 58 * SUM ( + 5 )
----
27913

query I rowsort
SELECT - NULLIF ( - + 74, + - 57 ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5846
SELECT ALL - 93 + 35 DIV + + 72 + + 95 DIV + + 17 - + + 97 AS col1, - COUNT( * )
----
-185
-1

skipif mysql # not compatible
query II rowsort label-5846
SELECT ALL - 93 + 35 / + + 72 + + 95 / + + 17 - + + 97 AS col1, - COUNT ( * )
----
-185
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT 21 DIV - 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5847
SELECT 21 / - 68 AS col2
----
0

query I rowsort
SELECT 8 + - - 1 AS col1
----
9

query II rowsort
SELECT ALL - 57 col1, - 60 col1
----
-57
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT 0 + - + 21 * COUNT( * ) + + 76 + COUNT( * ) + - 43 * 77
----
-3255

skipif mysql # not compatible
query I rowsort label-5850
SELECT 0 + - + 21 * COUNT ( * ) + + 76 + COUNT ( * ) + - 43 * 77
----
-3255

query I rowsort
SELECT 21 + - 16
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT DISTINCT 52 / + 21 / CASE - CASE - 18 WHEN - - 74 * + ( - 0 ) THEN + 49 ELSE + 92 * 14 + - + CASE - COUNT( * ) WHEN 33 + + 94 THEN + 72 + - + 30 + + 97 + 88 WHEN 49 THEN NULL ELSE NULL END END WHEN - 56 THEN - ( + + ( - ( - + 33 ) ) ) * - 85 * COUNT( * ) * 53 * 13 + - 51 * COUNT( * ) * + ( - 30 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT 52 / + 21 / CASE - CASE - 18 WHEN - - 74 * + ( - 0 ) THEN + 49 ELSE + 92 * 14 + - + CASE - COUNT ( * ) WHEN 33 + + 94 THEN + 72 + - + 30 + + 97 + 88 WHEN 49 THEN NULL ELSE NULL END END WHEN - 56 THEN - ( + + ( - ( - + 33 ) ) ) * - 85 * COUNT ( * ) * 53 * 13 + - 51 * COUNT ( * ) * + ( - 30 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL COUNT( * ) - 31 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL COUNT ( * ) - 31 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT 40 + COUNT( * ) * + 28
----
68

skipif mysql # not compatible
query I rowsort label-5854
SELECT 40 + COUNT ( * ) * + 28
----
68

query I rowsort
SELECT 56 * + 62 * + - 55
----
-190960

query I rowsort
SELECT ALL - ( 83 ) AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5857
SELECT 46 * CAST( + 43 AS SIGNED ) * - MIN( 20 )
----
-39560

skipif mysql # not compatible
query I rowsort label-5857
SELECT 46 * CAST ( + 43 AS INTEGER ) * - MIN ( 20 )
----
-39560

query I rowsort
SELECT ALL ( + 76 ) * + 63
----
4788

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5859
SELECT DISTINCT + NULLIF ( - MAX( 65 ), + 49 ) * - 94 + - 95 + - 53 - COUNT( * ), + 81 DIV 75 col1
----
5961
1

skipif mysql # not compatible
query II rowsort label-5859
SELECT DISTINCT + NULLIF ( - MAX ( 65 ), + 49 ) * - 94 + - 95 + - 53 - COUNT ( * ), + 81 / 75 col1
----
5961
1

query I rowsort
SELECT 62 + - ( - 5 )
----
67

query I rowsort
SELECT DISTINCT - ( - + 42 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5862
SELECT ALL - + 14 + + 89 AS col0, CASE - 98 WHEN - CAST( - 80 AS SIGNED ) THEN + 6 ELSE NULL END * + 31 / - + 97 * - COUNT( * ) * + MAX( ALL - 39 ) AS col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-5862
SELECT ALL - + 14 + + 89 AS col0, CASE - 98 WHEN - CAST ( - 80 AS INTEGER ) THEN + 6 ELSE NULL END * + 31 / - + 97 * - COUNT ( * ) * + MAX ( ALL - 39 ) AS col0
----
75
NULL

query I rowsort
SELECT + 9 + - 97 + 98 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT 74 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT 74 / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 92 + 43 col0, + 89
----
135
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT + ( - + ( - - 30 ) ) AS col0, MIN( DISTINCT + - 87 )
----
-30
-87

skipif mysql # not compatible
query II rowsort label-5866
SELECT + ( - + ( - - 30 ) ) AS col0, MIN ( DISTINCT + - 87 )
----
-30
-87

query I rowsort
SELECT ALL + + 23 + ( + 29 ) + + 70
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL - 13 + + - MIN( DISTINCT + 38 )
----
-51

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - 13 + + - MIN ( DISTINCT + 38 )
----
-51

query I rowsort
SELECT DISTINCT + - 72 + - 1 * + + 47
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT + 72 + - - COUNT( * ) col2
----
73

skipif mysql # not compatible
query I rowsort label-5870
SELECT + 72 + - - COUNT ( * ) col2
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5871
SELECT - + 30 DIV - COUNT( * ) + 99
----
129

skipif mysql # not compatible
query I rowsort label-5871
SELECT - + 30 / - COUNT ( * ) + 99
----
129

query I rowsort
SELECT - - 56 * 19 + - - 88
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT + - 75 + - + MIN( DISTINCT - 25 ) * - MAX( + 32 )
----
-875

skipif mysql # not compatible
query I rowsort label-5873
SELECT + - 75 + - + MIN ( DISTINCT - 25 ) * - MAX ( + 32 )
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT DISTINCT COUNT( * ) * - + 27 * + 46
----
-1242

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT COUNT ( * ) * - + 27 * + 46
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT + 87 * + - 20 * - - COUNT( - 29 )
----
-1740

skipif mysql # not compatible
query I rowsort label-5875
SELECT + 87 * + - 20 * - - COUNT ( - 29 )
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT ALL ( - CASE 51 WHEN + ( + COUNT( * ) ) THEN - 30 / - 77 END ) * ( 95 ) - + 53 * + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL ( - CASE 51 WHEN + ( + COUNT ( * ) ) THEN - 30 / - 77 END ) * ( 95 ) - + 53 * + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT - CASE + 85 WHEN 83 THEN NULL WHEN + CASE - + 94 WHEN - 0 * 99 * - COUNT( * ) / 90 - - 78 * 31 * - SUM( ALL 12 ) THEN NULLIF ( - + 36, - - 38 ) * ( 79 ) + - 86 + 97 ELSE NULL END / CASE - 17 WHEN - - 51 THEN - 59 * 23 ELSE + 20 END + 64 THEN + - COUNT( * ) WHEN 61 * + 73 * + + 59 - 50 THEN + NULLIF ( NULLIF ( + - 40, + 26 ), - COUNT( - + 47 ) ) * - 5 ELSE - 21 END col2
----
21

skipif mysql # not compatible
query I rowsort label-5877
SELECT - CASE + 85 WHEN 83 THEN NULL WHEN + CASE - + 94 WHEN - 0 * 99 * - COUNT ( * ) / 90 - - 78 * 31 * - SUM ( ALL 12 ) THEN NULLIF ( - + 36, - - 38 ) * ( 79 ) + - 86 + 97 ELSE NULL END / CASE - 17 WHEN - - 51 THEN - 59 * 23 ELSE + 20 END + 64 THEN + - COUNT ( * ) WHEN 61 * + 73 * + + 59 - 50 THEN + NULLIF ( NULLIF ( + - 40, + 26 ), - COUNT ( - + 47 ) ) * - 5 ELSE - 21 END col2
----
21

query I rowsort
SELECT + 93 - - 56 + - 7 col0
----
142

query II rowsort
SELECT 88 AS col0, 60 AS col1
----
88
60

query II rowsort
SELECT DISTINCT 57 AS col2, - 58 AS col1
----
57
-58

query I rowsort
SELECT + 69 - + ( - 13 ) * + 31 - - 7
----
479

query I rowsort
SELECT - ( - 81 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5883
SELECT 4 AS col2, 5 - + COUNT( * )
----
4
4

skipif mysql # not compatible
query II rowsort label-5883
SELECT 4 AS col2, 5 - + COUNT ( * )
----
4
4

query I rowsort
SELECT - NULLIF ( + 9, - 78 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5885
SELECT DISTINCT - 65 DIV - 43 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT - 65 / - 43 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ALL COUNT( * ) * - 91 + + + 13 + - 90 AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL COUNT ( * ) * - 91 + + + 13 + - 90 AS col1
----
-168

query I rowsort
SELECT + 91 - 54 AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT ALL 97 DIV - + 84 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL 97 / - + 84 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5889
SELECT - 9 DIV SUM( - + 89 ), - 62 - + 10 AS col1
----
0
-72

skipif mysql # not compatible
query II rowsort label-5889
SELECT - 9 / SUM ( - + 89 ), - 62 - + 10 AS col1
----
0
-72

query II rowsort
SELECT + 85 AS col1, 89 AS col1
----
85
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5891
SELECT + 55 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT + 55 + - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5892
SELECT + 42 AS col2, - 46 DIV MIN( CAST( - 51 AS SIGNED ) ) AS col2
----
42
0

skipif mysql # not compatible
query II rowsort label-5892
SELECT + 42 AS col2, - 46 / MIN ( CAST ( - 51 AS INTEGER ) ) AS col2
----
42
0

query I rowsort
SELECT - - 23 - + - 81
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5894
SELECT ALL 83 * + 6 - - 81 + ( 64 ) + 42 + - NULLIF ( - 25, + COALESCE ( - 68, 71 * 42 * - + 64 - 3 + - ( - 2 ) ) ) / - + 63 * - + 75 + + 8 + - 27 * + CASE - 35 WHEN - CAST( + + 54 AS DECIMAL ) * + COUNT( * ) THEN + COUNT( * ) * - 98 WHEN AVG ( DISTINCT + 47 ) THEN NULL END + + CAST( - MAX( + 48 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL 83 * + 6 - - 81 + ( 64 ) + 42 + - NULLIF ( - 25, + COALESCE ( - 68, 71 * 42 * - + 64 - 3 + - ( - 2 ) ) ) / - + 63 * - + 75 + + 8 + - 27 * + CASE - 35 WHEN - CAST ( + + 54 AS REAL ) * + COUNT ( * ) THEN + COUNT ( * ) * - 98 WHEN AVG ( DISTINCT + 47 ) THEN NULL END + + CAST ( - MAX ( + 48 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ALL NULLIF ( + 0, - ( - AVG ( - + ( - 21 ) ) ) ) * - + 20 + - + NULLIF ( 72, 23 ) + - ( - COALESCE ( + 20, + 66 ) ) * - COUNT( * ) + - 81 + - 72 + - + 7 * + 60 + COALESCE ( - + 34, - 19 )
----
-699

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL NULLIF ( + 0, - ( - AVG ( - + ( - 21 ) ) ) ) * - + 20 + - + NULLIF ( 72, 23 ) + - ( - COALESCE ( + 20, + 66 ) ) * - COUNT ( * ) + - 81 + - 72 + - + 7 * + 60 + COALESCE ( - + 34, - 19 )
----
-699

query I rowsort
SELECT DISTINCT + + 69 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT ALL - - CAST( NULL AS SIGNED ) * + 80 + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 80 + + 75
----
NULL

query I rowsort
SELECT ALL - 56 * + 76
----
-4256

query I rowsort
SELECT - 61 + + 46 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT + NULLIF ( + - ( COUNT( * ) ), - + NULLIF ( + + 43, 62 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5900
SELECT + NULLIF ( + - ( COUNT ( * ) ), - + NULLIF ( + + 43, 62 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT MAX( DISTINCT 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5901
SELECT MAX ( DISTINCT 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT - + 1 * ( - COUNT( DISTINCT - + NULLIF ( - + 83, + NULLIF ( - 43, - 91 + + 85 ) ) ) ) * 53
----
53

skipif mysql # not compatible
query I rowsort label-5902
SELECT - + 1 * ( - COUNT ( DISTINCT - + NULLIF ( - + 83, + NULLIF ( - 43, - 91 + + 85 ) ) ) ) * 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT + 99 * - + SUM( ALL - ( 15 ) ) * + 87 + - 24 + 37 / 7 * - 80 + 76 + + 77 * + + COUNT( * ) * - CASE 18 WHEN - 50 THEN NULL WHEN - + 42 + - + 35 THEN 82 - - - 96 * 19 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT + 99 * - + SUM ( ALL - ( 15 ) ) * + 87 + - 24 + 37 / 7 * - 80 + 76 + + 77 * + + COUNT ( * ) * - CASE 18 WHEN - 50 THEN NULL WHEN - + 42 + - + 35 THEN 82 - - - 96 * 19 END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5904
SELECT + 11 * - - 70 + - - 35 - + NULLIF ( - + 19, - NULLIF ( - - 36, - + 31 DIV 45 * + + 2 + - - COUNT( * ) * AVG ( 44 ) * + 53 ) ) DIV - COUNT( * ) AS col2
----
786

skipif mysql # not compatible
query I rowsort label-5904
SELECT + 11 * - - 70 + - - 35 - + NULLIF ( - + 19, - NULLIF ( - - 36, - + 31 / 45 * + + 2 + - - COUNT ( * ) * AVG ( 44 ) * + 53 ) ) / - COUNT ( * ) AS col2
----
786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT DISTINCT + + CAST( + - AVG ( + - 82 ) AS SIGNED ) * 61 - + + 26 * + + 16 - - 40 + + ( 42 ) * - - 4
----
4794

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT + + CAST ( + - AVG ( + - 82 ) AS INTEGER ) * 61 - + + 26 * + + 16 - - 40 + + ( 42 ) * - - 4
----
4794

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL - - COUNT( * ) * + 52 * + + 29 AS col2
----
1508

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - - COUNT ( * ) * + 52 * + + 29 AS col2
----
1508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT - CAST( 61 AS SIGNED ) * 80 * - SUM( - CAST( + 19 AS SIGNED ) ) AS col0
----
-92720

skipif mysql # not compatible
query I rowsort label-5907
SELECT - CAST ( 61 AS INTEGER ) * 80 * - SUM ( - CAST ( + 19 AS INTEGER ) ) AS col0
----
-92720

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT ALL - 30 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - 30 / + 43
----
0

query I rowsort
SELECT DISTINCT 53 * - 32 - - 9 AS col0
----
-1687

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT - 45, ( - + MAX( ALL - + 2 ) ) AS col2
----
-45
2

skipif mysql # not compatible
query II rowsort label-5910
SELECT - 45, ( - + MAX ( ALL - + 2 ) ) AS col2
----
-45
2

query I rowsort
SELECT ALL 3 * - 33 col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT COUNT( + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-5912
SELECT COUNT ( + 65 )
----
1

query II rowsort
SELECT - 93 + + 31 AS col0, + 49
----
-62
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT MIN( DISTINCT + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5914
SELECT MIN ( DISTINCT + 98 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT ALL CAST( + ( 35 ) AS SIGNED ) col1
----
35

skipif mysql # not compatible
query I rowsort label-5915
SELECT ALL CAST ( + ( 35 ) AS INTEGER ) col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5916
SELECT + 34 * + + 38, SUM( DISTINCT CASE - 60 WHEN 5 / 94 * - 58 + 24 THEN 85 ELSE + 98 * + 14 END ) - - + COUNT( * ) + 80 AS col0
----
1292
1453

skipif mysql # not compatible
query II rowsort label-5916
SELECT + 34 * + + 38, SUM ( DISTINCT CASE - 60 WHEN 5 / 94 * - 58 + 24 THEN 85 ELSE + 98 * + 14 END ) - - + COUNT ( * ) + 80 AS col0
----
1292
1453

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - 45 + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5917
SELECT - 45 + + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT - 63 * - COUNT( * ) AS col0, 62 * COUNT( * )
----
63
62

skipif mysql # not compatible
query II rowsort label-5918
SELECT - 63 * - COUNT ( * ) AS col0, 62 * COUNT ( * )
----
63
62

query I rowsort
SELECT ALL + 78 + - 47
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5920
SELECT + 98 * - - 61 DIV + + COUNT( * ) AS col0
----
5978

skipif mysql # not compatible
query I rowsort label-5920
SELECT + 98 * - - 61 / + + COUNT ( * ) AS col0
----
5978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5921
SELECT ALL 9 + 19 + SUM( DISTINCT + ( - 3 ) ) + - 72 DIV SUM( ALL - - 8 ) * - 10
----
115

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL 9 + 19 + SUM ( DISTINCT + ( - 3 ) ) + - 72 / SUM ( ALL - - 8 ) * - 10
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT + 15 + - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-5922
SELECT + 15 + - COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5923
SELECT ALL MAX( - - 48 ), 12 AS col2
----
48
12

skipif mysql # not compatible
query II rowsort label-5923
SELECT ALL MAX ( - - 48 ), 12 AS col2
----
48
12

query I rowsort
SELECT ALL 50 + - 0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5925
SELECT + CAST( 80 AS SIGNED ) + CASE WHEN NOT + 42 > ( - + 22 ) THEN NULL ELSE - AVG ( 24 ) / + - 94 * + + ( + CAST( NULL AS SIGNED ) ) END * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT + CAST ( 80 AS INTEGER ) + CASE WHEN NOT + 42 > ( - + 22 ) THEN NULL ELSE - AVG ( 24 ) / + - 94 * + + ( + CAST ( NULL AS INTEGER ) ) END * 49
----
NULL

query I rowsort
SELECT + 32 * + 1 AS col0
----
32

query I rowsort
SELECT 80 * ( + 14 ) * - 63 + + 20 + 51
----
-70489

query I rowsort
SELECT + ( + - 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL - 35 * 19 * 69 * + COUNT( * )
----
-45885

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - 35 * 19 * 69 * + COUNT ( * )
----
-45885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5930
SELECT ALL ( CAST( NULL AS SIGNED ) ) / + 96 + 32 - - 9 / 12 * - 63 * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL ( CAST ( NULL AS INTEGER ) ) / + 96 + 32 - - 9 / 12 * - 63 * - 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5931
SELECT ALL + + 0 DIV COUNT( - 11 ) + + + 44 + - 31
----
13

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL + + 0 / COUNT ( - 11 ) + + + 44 + - 31
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5932
SELECT + 41 + - COUNT( * ) * - CAST( NULL AS SIGNED ) / + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT + 41 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 25
----
NULL

query I rowsort
SELECT 96 * 70 AS col2
----
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + COUNT( ALL - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-5934
SELECT + COUNT ( ALL - 79 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT - 64 * + 37 + - COUNT( * ) col1
----
-2369

skipif mysql # not compatible
query I rowsort label-5935
SELECT - 64 * + 37 + - COUNT ( * ) col1
----
-2369

query I rowsort
SELECT ALL - - ( - 18 )
----
-18

query I rowsort
SELECT 73 * - 84 * + + 70 * - - 62 + + 46 AS col0
----
-26612834

query I rowsort
SELECT + 97 * 34 + + 54 * - 27 * + - 68 - - 95 AS col1
----
102537

query I rowsort
SELECT - 82 * + 26 AS col2
----
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT - 91 + - CASE - ( + 37 ) WHEN + 94 * + + COUNT( * ) THEN NULL ELSE + - 49 * + 54 + - + 40 * ( - 85 ) END
----
-845

skipif mysql # not compatible
query I rowsort label-5940
SELECT - 91 + - CASE - ( + 37 ) WHEN + 94 * + + COUNT ( * ) THEN NULL ELSE + - 49 * + 54 + - + 40 * ( - 85 ) END
----
-845

query I rowsort
SELECT ALL - - 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT - - 30 * + + COUNT( DISTINCT 59 ) - + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT - - 30 * + + COUNT ( DISTINCT 59 ) - + COUNT ( * ) AS col2
----
29

query II rowsort
SELECT DISTINCT 9 * 81 AS col0, - 33 * - - ( + 80 ) AS col1
----
729
-2640

query I rowsort
SELECT ALL - + NULLIF ( - + 59, - - 31 * 82 / + - 2 + 96 ) AS col0
----
59

query I rowsort
SELECT DISTINCT 36 * - 55 AS col0
----
-1980

query I rowsort
SELECT DISTINCT - - 49 AS col1
----
49

query II rowsort
SELECT 94 AS col0, 18 AS col1
----
94
18

query II rowsort
SELECT - 95 AS col0, ( - + 6 )
----
-95
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5949
SELECT + NULLIF ( + - CAST( - + 86 AS SIGNED ), + 74 ) * + - 38 + - + 85 + - 43
----
-3396

skipif mysql # not compatible
query I rowsort label-5949
SELECT + NULLIF ( + - CAST ( - + 86 AS INTEGER ), + 74 ) * + - 38 + - + 85 + - 43
----
-3396

query I rowsort
SELECT 30 * + 90
----
2700

query I rowsort
SELECT 66 + - ( + COALESCE ( 68, + 98, + 9 * + + 19 * - 81, - + 42 ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5952
SELECT DISTINCT + 65 + COUNT( * ) + - CAST( + 99 AS SIGNED ) * - + 47 AS col2
----
4719

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT + 65 + COUNT ( * ) + - CAST ( + 99 AS INTEGER ) * - + 47 AS col2
----
4719

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT ALL + 47 + 60 * + 7 * + COUNT( DISTINCT 59 )
----
467

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + 47 + 60 * + 7 * + COUNT ( DISTINCT 59 )
----
467

query I rowsort
SELECT 56 * + 59
----
3304

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT DISTINCT + MAX( - 39 ) + + - COUNT( * ) * + 91 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT + MAX ( - 39 ) + + - COUNT ( * ) * + 91 AS col0
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5956
SELECT SUM( DISTINCT - 78 ) DIV COUNT( * ) DIV - - 25
----
-3

skipif mysql # not compatible
query I rowsort label-5956
SELECT SUM ( DISTINCT - 78 ) / COUNT ( * ) / - - 25
----
-3

query I rowsort
SELECT ALL + 47 + + 17
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5958
SELECT 46 - COUNT( DISTINCT + 61 ) AS col2, + 19 - COUNT( * ) DIV - 49, - 71 AS col0
----
45
19
-71

skipif mysql # not compatible
query III rowsort label-5958
SELECT 46 - COUNT ( DISTINCT + 61 ) AS col2, + 19 - COUNT ( * ) / - 49, - 71 AS col0
----
45
19
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT COUNT( ALL ( + 45 ) ) * - 38
----
-38

skipif mysql # not compatible
query I rowsort label-5959
SELECT COUNT ( ALL ( + 45 ) ) * - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT 55 + SUM( 12 )
----
67

skipif mysql # not compatible
query I rowsort label-5960
SELECT 55 + SUM ( 12 )
----
67

query II rowsort
SELECT - 29 AS col1, - 70
----
-29
-70

query II rowsort
SELECT ALL 30, - 5 col1
----
30
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT 65 + MIN( ALL + 44 )
----
109

skipif mysql # not compatible
query I rowsort label-5963
SELECT 65 + MIN ( ALL + 44 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL - COUNT( * ) - 49 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL - COUNT ( * ) - 49 AS col2
----
-50

query I rowsort
SELECT + 30 - - 11 - + - 29
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT 52 * - - SUM( DISTINCT + + 80 ) AS col0
----
4160

skipif mysql # not compatible
query I rowsort label-5966
SELECT 52 * - - SUM ( DISTINCT + + 80 ) AS col0
----
4160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT ALL 8 * - 57 * - CAST( + 87 AS SIGNED ) AS col0
----
39672

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL 8 * - 57 * - CAST ( + 87 AS INTEGER ) AS col0
----
39672

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT ALL COUNT( * ) - - 8 + + 2 * + + 85 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL COUNT ( * ) - - 8 + + 2 * + + 85 AS col0
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5969
SELECT 87 * + - COUNT( * ) + + 12 AS col0, + 50 - + CAST( - 84 AS DECIMAL ) / + + 35 - + 35 + + - CAST( NULL AS SIGNED ) + + - MIN( + + 56 )
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-5969
SELECT 87 * + - COUNT ( * ) + + 12 AS col0, + 50 - + CAST ( - 84 AS REAL ) / + + 35 - + 35 + + - CAST ( NULL AS INTEGER ) + + - MIN ( + + 56 )
----
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5970
SELECT ALL - 74 * ( + - 72 ) * 88 - + COUNT( * ) AS col2, - 15 AS col2
----
468863
-15

skipif mysql # not compatible
query II rowsort label-5970
SELECT ALL - 74 * ( + - 72 ) * 88 - + COUNT ( * ) AS col2, - 15 AS col2
----
468863
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5971
SELECT ALL + CAST( NULL AS DECIMAL ) * - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + CAST ( NULL AS REAL ) * - 38 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - CASE - 49 WHEN - 97 THEN - 86 + + - 92 WHEN + - 61 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - ( - - 9 ) AS col1
----
-9

query I rowsort
SELECT ALL - ( + 1 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - + 20 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT CASE NULLIF ( - 5, + ( + + 58 ) * - 57 ) WHEN - 81 THEN NULL WHEN - 25 THEN + ( - + MAX( DISTINCT - 8 ) ) WHEN 11 + + 18 + - ( - ( - 28 ) ) - NULLIF ( - ( - + 19 ), + 60 ) * + - 91 THEN 13 ELSE - 21 END + - 20 * - 10 AS col1
----
179

skipif mysql # not compatible
query I rowsort label-5976
SELECT CASE NULLIF ( - 5, + ( + + 58 ) * - 57 ) WHEN - 81 THEN NULL WHEN - 25 THEN + ( - + MAX ( DISTINCT - 8 ) ) WHEN 11 + + 18 + - ( - ( - 28 ) ) - NULLIF ( - ( - + 19 ), + 60 ) * + - 91 THEN 13 ELSE - 21 END + - 20 * - 10 AS col1
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5977
SELECT - MIN( ALL + 40 ) DIV - + CAST( - MIN( - - 20 ) AS SIGNED ) + - - 21 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-5977
SELECT - MIN ( ALL + 40 ) / - + CAST ( - MIN ( - - 20 ) AS INTEGER ) + - - 21 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5978
SELECT 90 DIV + + 93 + + + COUNT( * ) * COALESCE ( - - 75, + 83, + - 48 * - COUNT( * ) DIV 29 )
----
75

skipif mysql # not compatible
query I rowsort label-5978
SELECT 90 / + + 93 + + + COUNT ( * ) * COALESCE ( - - 75, + 83, + - 48 * - COUNT ( * ) / 29 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT ALL 38 DIV - 96 col0
----
0

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL 38 / - 96 col0
----
0

query I rowsort
SELECT 77 + 14 AS col0
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-5981
SELECT + + 92, + ( 66 ) DIV - 10 AS col2
----
92
-6

skipif mysql # not compatible
query II rowsort label-5981
SELECT + + 92, + ( 66 ) / - 10 AS col2
----
92
-6

query I rowsort
SELECT - 82 * + - 6 AS col1
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + SUM( DISTINCT - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-5983
SELECT + SUM ( DISTINCT - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL - MIN( ALL - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - MIN ( ALL - 43 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT CAST( NULL AS SIGNED ) + - 79 + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT CAST ( NULL AS INTEGER ) + - 79 + + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT COUNT( * ) * 44
----
44

skipif mysql # not compatible
query I rowsort label-5986
SELECT COUNT ( * ) * 44
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5987
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - + CAST( - + 88 AS DECIMAL ) ) - - 41 * - 6 * + ( 5 ) * + COALESCE ( CAST( NULL AS SIGNED ), + - ( + CASE + + CASE - + 87 WHEN - 17 * 54 + + 42 + - - 63 + + 5 * ( ( - 18 ) ) + + 87 THEN - + ( + 91 ) + + + COUNT( * ) + - + ( 41 ) + - - COUNT( * ) END WHEN ( - - COUNT( * ) ) / + 35 + - 63 + + 7 * + - 4 / + 29 / + - 55 THEN - 28 ELSE 16 END ) ) + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - + CAST ( - + 88 AS REAL ) ) - - 41 * - 6 * + ( 5 ) * + COALESCE ( CAST ( NULL AS INTEGER ), + - ( + CASE + + CASE - + 87 WHEN - 17 * 54 + + 42 + - - 63 + + 5 * ( ( - 18 ) ) + + 87 THEN - + ( + 91 ) + + + COUNT ( * ) + - + ( 41 ) + - - COUNT ( * ) END WHEN ( - - COUNT ( * ) ) / + 35 + - 63 + + 7 * + - 4 / + 29 / + - 55 THEN - 28 ELSE 16 END ) ) + 49
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 41, 68 ) * - 77 + - 82 * + + 25 AS col2
----
-5207

query I rowsort
SELECT ALL 4 + + 94 * - 72
----
-6764

query I rowsort
SELECT 56 + - 71 + 77 * 17
----
1294

query I rowsort
SELECT ALL 98 + + 27 + + ( + - 99 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT NULLIF ( - COUNT( * ), - + 47 * - 16 / + - 79 + + COUNT( 87 ) ) + - 17 col1
----
-18

skipif mysql # not compatible
query I rowsort label-5992
SELECT NULLIF ( - COUNT ( * ), - + 47 * - 16 / + - 79 + + COUNT ( 87 ) ) + - 17 col1
----
-18

query II rowsort
SELECT 20, + 0 AS col0
----
20
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5994
SELECT 23 AS col2, 46 * COUNT( * )
----
23
46

skipif mysql # not compatible
query II rowsort label-5994
SELECT 23 AS col2, 46 * COUNT ( * )
----
23
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT ( + 16 ) + + - ( + ( - - 63 ) ) + - - NULLIF ( - 43, 92 ) * + COUNT( * ) * - - 11 + ( - + 10 ) AS col2
----
-530

skipif mysql # not compatible
query I rowsort label-5995
SELECT ( + 16 ) + + - ( + ( - - 63 ) ) + - - NULLIF ( - 43, 92 ) * + COUNT ( * ) * - - 11 + ( - + 10 ) AS col2
----
-530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT 91 - - CAST( NULL AS SIGNED ) + + - 88 + + NULLIF ( - 66, - 67 + - 31 + 57 / - 76 + ( 31 ) * - 76 * + 50 ) * 48 * - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT 91 - - CAST ( NULL AS INTEGER ) + + - 88 + + NULLIF ( - 66, - 67 + - 31 + 57 / - 76 + ( 31 ) * - 76 * + 50 ) * 48 * - + 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5997
SELECT 65 + + - COALESCE ( 3, + - 26, + CAST( + - 83 AS SIGNED ) + CAST( COUNT( * ) AS SIGNED ) * - - 59 * + + 80 * + 56 DIV + - 71 + ( + 12 ) + - MIN( DISTINCT - 34 ) + - + COUNT( * ) * CAST( NULL AS SIGNED ) ) + 67 + COUNT( * ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-5997
SELECT 65 + + - COALESCE ( 3, + - 26, + CAST ( + - 83 AS INTEGER ) + CAST ( COUNT ( * ) AS INTEGER ) * - - 59 * + + 80 * + 56 / + - 71 + ( + 12 ) + - MIN ( DISTINCT - 34 ) + - + COUNT ( * ) * CAST ( NULL AS INTEGER ) ) + 67 + COUNT ( * ) AS col1
----
130

query I rowsort
SELECT 0 + + + 60 AS col0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-5999
SELECT DISTINCT COUNT( * ), + ( - + 78 ) * - 54 * 42 * - MIN( DISTINCT 85 ) * - ( 44 ) + 78 AS col0
----
1
661621038

skipif mysql # not compatible
query II rowsort label-5999
SELECT DISTINCT COUNT ( * ), + ( - + 78 ) * - 54 * 42 * - MIN ( DISTINCT 85 ) * - ( 44 ) + 78 AS col0
----
1
661621038

query I rowsort
SELECT 81 + - 16
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT - COUNT( * ) + 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6001
SELECT - COUNT ( * ) + 1 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL COALESCE ( COUNT( * ), + + 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL COALESCE ( COUNT ( * ), + + 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT ALL + + ( 10 ) - - MIN( ALL - 40 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL + + ( 10 ) - - MIN ( ALL - 40 ) AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT - 53 DIV + 4 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6004
SELECT - 53 / + 4 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT - 27 + - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6005
SELECT - 27 + - COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL - 94 * - NULLIF ( + 46, + NULLIF ( + 80, + 35 ) / - + 38 * - - COUNT( DISTINCT - + 0 ) )
----
4324

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - 94 * - NULLIF ( + 46, + NULLIF ( + 80, + 35 ) / - + 38 * - - COUNT ( DISTINCT - + 0 ) )
----
4324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6007
SELECT - 67 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT - 67 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT - - 83 * - ( SUM( DISTINCT + 64 ) ) * 24 * + - ( 84 ) * + COUNT( * ) + - - 87 AS col0
----
10709079

skipif mysql # not compatible
query I rowsort label-6008
SELECT - - 83 * - ( SUM ( DISTINCT + 64 ) ) * 24 * + - ( 84 ) * + COUNT ( * ) + - - 87 AS col0
----
10709079

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT + + COUNT( * ) + NULLIF ( - COUNT( * ), + ( + 82 ) ) + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6009
SELECT + + COUNT ( * ) + NULLIF ( - COUNT ( * ), + ( + 82 ) ) + 16 AS col2
----
16

query I rowsort
SELECT - - 43 col0
----
43

query I rowsort
SELECT - COALESCE ( - 15, + + 37 )
----
15

query I rowsort
SELECT ALL + 34 * - 30 AS col2
----
-1020

query I rowsort
SELECT DISTINCT + - 68 col1
----
-68

query II rowsort
SELECT ALL + + 47 AS col2, 1 AS col0
----
47
1

query I rowsort
SELECT ALL ( - 30 ) * + + 15
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT - 4 * 63 * + 94 + + ( COUNT( * ) ) AS col2
----
-23687

skipif mysql # not compatible
query I rowsort label-6016
SELECT - 4 * 63 * + 94 + + ( COUNT ( * ) ) AS col2
----
-23687

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6017
SELECT ALL + - 13 AS col2, - 11 + - 69 - - + MIN( + - CAST( - + 38 AS SIGNED ) )
----
-13
-42

skipif mysql # not compatible
query II rowsort label-6017
SELECT ALL + - 13 AS col2, - 11 + - 69 - - + MIN ( + - CAST ( - + 38 AS INTEGER ) )
----
-13
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6018
SELECT ALL + - 46 * - 96 * 38 * + + CAST( + - 76 AS SIGNED ) AS col2
----
-12753408

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL + - 46 * - 96 * 38 * + + CAST ( + - 76 AS INTEGER ) AS col2
----
-12753408

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT COUNT( * ) col0, 76 * 4 - - 44 AS col1
----
1
348

skipif mysql # not compatible
query II rowsort label-6019
SELECT COUNT ( * ) col0, 76 * 4 - - 44 AS col1
----
1
348

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT - - 96 * 81 * - - COUNT( * ) AS col0
----
7776

skipif mysql # not compatible
query I rowsort label-6020
SELECT - - 96 * 81 * - - COUNT ( * ) AS col0
----
7776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT 37 * + - 91 + - CAST( + 17 AS SIGNED ) * 70 + COUNT( * ) - - MIN( ALL 66 ) + - - 6 AS col2
----
-4484

skipif mysql # not compatible
query I rowsort label-6021
SELECT 37 * + - 91 + - CAST ( + 17 AS INTEGER ) * 70 + COUNT ( * ) - - MIN ( ALL 66 ) + - - 6 AS col2
----
-4484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT + CAST( 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-6022
SELECT + CAST ( 63 AS INTEGER )
----
63

query I rowsort
SELECT ALL - + 58 * + 34 - + + 4 + - 42 - 28
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT + MIN( + CASE 19 WHEN 88 THEN 2 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT + MIN ( + CASE 19 WHEN 88 THEN 2 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6025
SELECT ALL 20 * - 98 + + CASE COALESCE ( 48, CAST( - 38 AS SIGNED ) * + - CASE + 92 WHEN + 89 THEN 84 * + COUNT( * ) - + 8 WHEN 41 THEN + - 20 + + 98 + + MAX( ALL + 30 ) * + 92 * 85 ELSE NULL END, - 69 ) WHEN + 77 * - ( - 67 ) - 47 - - COUNT( * ) THEN NULL WHEN - 4 THEN NULL ELSE - 16 - - COUNT( * ) END
----
-1975

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL 20 * - 98 + + CASE COALESCE ( 48, CAST ( - 38 AS INTEGER ) * + - CASE + 92 WHEN + 89 THEN 84 * + COUNT ( * ) - + 8 WHEN 41 THEN + - 20 + + 98 + + MAX ( ALL + 30 ) * + 92 * 85 ELSE NULL END, - 69 ) WHEN + 77 * - ( - 67 ) - 47 - - COUNT ( * ) THEN NULL WHEN - 4 THEN NULL ELSE - 16 - - COUNT ( * ) END
----
-1975

onlyif mysql # aggregate syntax: 
query II rowsort label-6026
SELECT MIN( - 27 ) AS col0, 37 col2
----
-27
37

skipif mysql # not compatible
query II rowsort label-6026
SELECT MIN ( - 27 ) AS col0, 37 col2
----
-27
37

query I rowsort
SELECT + 75 - - 87 + - 97 * 11 AS col0
----
-905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT - 4 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT - 4 * - CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT + ( - 56 ) AS col1, 63 * + 53 + + 25, - - 0 + 56 AS col2
----
-56
3364
56

query I rowsort
SELECT + 80 * - ( + 95 ) AS col0
----
-7600

query I rowsort
SELECT ALL 51 * 97 AS col0
----
4947

query I rowsort
SELECT ALL 27 * + + 94 * + + 7 * - 6 AS col2
----
-106596

query II rowsort
SELECT ALL 38 - 61 AS col0, 96 AS col0
----
-23
96

query I rowsort
SELECT DISTINCT 97 - + 14
----
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6035
SELECT - ( + - 29 ), COALESCE ( 11, - 30 + + - CAST( + 64 AS SIGNED ) ) + 41 - + ( 0 ) DIV + + 96 + 88 AS col0
----
29
140

skipif mysql # not compatible
query II rowsort label-6035
SELECT - ( + - 29 ), COALESCE ( 11, - 30 + + - CAST ( + 64 AS INTEGER ) ) + 41 - + ( 0 ) / + + 96 + 88 AS col0
----
29
140

onlyif mysql # aggregate syntax: 
query II rowsort label-6036
SELECT DISTINCT + COUNT( * ) * - 72 AS col1, COUNT( * )
----
-72
1

skipif mysql # not compatible
query II rowsort label-6036
SELECT DISTINCT + COUNT ( * ) * - 72 AS col1, COUNT ( * )
----
-72
1

query I rowsort
SELECT ALL 91 * - - 65 * - 90
----
-532350

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL COALESCE ( - 17, + ( - + COUNT( * ) ) * + 56 * - 86 * 12 )
----
-17

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL COALESCE ( - 17, + ( - + COUNT ( * ) ) * + 56 * - 86 * 12 )
----
-17

query I rowsort
SELECT - COALESCE ( - 90, 5 )
----
90

query I rowsort
SELECT + + 68 + + 29 * CASE - + 98 WHEN + 75 THEN + - AVG ( DISTINCT 97 ) - + 28 ELSE NULL END * + + AVG ( DISTINCT - + NULLIF ( + 98, - 77 ) ) * - - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT - + COUNT( ALL - ( + + 54 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6041
SELECT - + COUNT ( ALL - ( + + 54 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT DISTINCT - + 23 * + CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT - + 23 * + CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

query I rowsort
SELECT - 14 - - - 27
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT + + ( - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT + + ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6045
SELECT 52 DIV + COALESCE ( - + 63, 60 ) + MAX( DISTINCT ( + 84 ) ) + - + 97 * + 64 AS col1
----
-6124

skipif mysql # not compatible
query I rowsort label-6045
SELECT 52 / + COALESCE ( - + 63, 60 ) + MAX ( DISTINCT ( + 84 ) ) + - + 97 * + 64 AS col1
----
-6124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6046
SELECT 41 DIV - MAX( - 54 ) + + 99 + 78 + - + 65 + + 37 AS col2, 93
----
149
93

skipif mysql # not compatible
query II rowsort label-6046
SELECT 41 / - MAX ( - 54 ) + + 99 + 78 + - + 65 + + 37 AS col2, 93
----
149
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6047
SELECT - 3 * + - 31 * + COUNT( * ) * COUNT( * ) * 42 * + ( 1 ) AS col1, + 33 + - 16 * + 82 AS col1, - 98 * + CAST( NULL AS SIGNED ) / - + 51
----
3906
-1279
NULL

skipif mysql # not compatible
query III rowsort label-6047
SELECT - 3 * + - 31 * + COUNT ( * ) * COUNT ( * ) * 42 * + ( 1 ) AS col1, + 33 + - 16 * + 82 AS col1, - 98 * + CAST ( NULL AS INTEGER ) / - + 51
----
3906
-1279
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT DISTINCT - 29 DIV + 66 * + 35 + - - 23 * - ( - 76 ) + 18 + - 87
----
1679

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT - 29 / + 66 * + 35 + - - 23 * - ( - 76 ) + 18 + - 87
----
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT DISTINCT + + 52 * 59 * + 41 * + + COUNT( * ) AS col0
----
125788

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT + + 52 * 59 * + 41 * + + COUNT ( * ) AS col0
----
125788

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT + MIN( ALL - 88 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6050
SELECT + MIN ( ALL - 88 ) AS col0
----
-88

query I rowsort
SELECT ALL + ( 53 ) AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT DISTINCT + 54 DIV - 68 + + 83 - 39 * + - 54
----
2189

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT + 54 / - 68 + + 83 - 39 * + - 54
----
2189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6053
SELECT DISTINCT - ( + 4 ) DIV - 56 + + - 23 * - COUNT( * ) + - + 6 DIV 25
----
23

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT - ( + 4 ) / - 56 + + - 23 * - COUNT ( * ) + - + 6 / 25
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT + COALESCE ( - 18, - 44 * + + COALESCE ( - + 0, - COALESCE ( + 94, 82, + + COUNT( * ) ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-6054
SELECT + COALESCE ( - 18, - 44 * + + COALESCE ( - + 0, - COALESCE ( + 94, 82, + + COUNT ( * ) ) ) )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6055
SELECT ALL 84 * - 7 + + 78 - + MAX( 34 ) + - 37 DIV + 87
----
-544

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL 84 * - 7 + + 78 - + MAX ( 34 ) + - 37 / + 87
----
-544

query I rowsort
SELECT DISTINCT + NULLIF ( + 17, - 37 ) AS col0
----
17

query I rowsort
SELECT - 80 + - 60 AS col2
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT - 43 * - COUNT( * ) col2
----
43

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - 43 * - COUNT ( * ) col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6059
SELECT ALL + COALESCE ( - NULLIF ( + 2, - 96 ), - - 70 DIV 90 * 87 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL + COALESCE ( - NULLIF ( + 2, - 96 ), - - 70 / 90 * 87 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + COUNT( * ) * 36 + - - 50 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6060
SELECT + COUNT ( * ) * 36 + - - 50 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT ( + CAST( + 15 AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-6061
SELECT ( + CAST ( + 15 AS INTEGER ) )
----
15

query I rowsort
SELECT - 33 + - 65
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL 40 * + MIN( DISTINCT - 26 ) - + - COUNT( * ) + 49
----
-990

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL 40 * + MIN ( DISTINCT - 26 ) - + - COUNT ( * ) + 49
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT MAX( ( + - 91 ) ) + 56
----
-35

skipif mysql # not compatible
query I rowsort label-6064
SELECT MAX ( ( + - 91 ) ) + 56
----
-35

query I rowsort
SELECT ALL - 16 - - - 64 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT 74 * COUNT( ALL 47 )
----
74

skipif mysql # not compatible
query I rowsort label-6066
SELECT 74 * COUNT ( ALL 47 )
----
74

query I rowsort
SELECT 9 + - 53 col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6068
SELECT DISTINCT 78 DIV - COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT 78 / - COUNT ( * ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT - COALESCE ( + 34, + + ( + + 97 ) * + + ( + CAST( - 26 AS SIGNED ) ) + - 9 + - + ( - COUNT( * ) ) * + - 96 ) + + - 52 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-6069
SELECT - COALESCE ( + 34, + + ( + + 97 ) * + + ( + CAST ( - 26 AS INTEGER ) ) + - 9 + - + ( - COUNT ( * ) ) * + - 96 ) + + - 52 AS col0
----
-86

query I rowsort
SELECT - 19 + + 43
----
24

query I rowsort
SELECT ALL 46 + 93
----
139

query I rowsort
SELECT ALL ( - 48 ) col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT DISTINCT COUNT( + 98 ) + + 72 + + CAST( NULL AS SIGNED ) * + 65 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT COUNT ( + 98 ) + + 72 + + CAST ( NULL AS INTEGER ) * + 65 col0
----
NULL

query I rowsort
SELECT + 42 * + 97 AS col1
----
4074

query I rowsort
SELECT 65 + + + 43 AS col2
----
108

query I rowsort
SELECT ALL - 51 + 62 + - 85
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT MIN( DISTINCT - ( + ( + 29 ) ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6077
SELECT MIN ( DISTINCT - ( + ( + 29 ) ) ) AS col0
----
-29

query I rowsort
SELECT ALL 91 + + + 95 AS col1
----
186

query I rowsort
SELECT - 74 + + + 59 AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - COALESCE ( + 48, 96, - COUNT( * ) + + + MAX( DISTINCT - + 53 ) * - COALESCE ( - 23, - 24 * - 78 ) ) + 64
----
16

skipif mysql # not compatible
query I rowsort label-6080
SELECT - COALESCE ( + 48, 96, - COUNT ( * ) + + + MAX ( DISTINCT - + 53 ) * - COALESCE ( - 23, - 24 * - 78 ) ) + 64
----
16

query II rowsort
SELECT - 82 col1, 68
----
-82
68

query II rowsort
SELECT 12 col0, - 31
----
12
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6083
SELECT ALL CASE + COUNT( - 59 ) WHEN - + 65 THEN NULL ELSE + - CAST( 93 AS SIGNED ) + - - 73 + - - ( - CAST( NULL AS SIGNED ) ) * - + 1 / + 12 END + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL CASE + COUNT ( - 59 ) WHEN - + 65 THEN NULL ELSE + - CAST ( 93 AS INTEGER ) + - - 73 + - - ( - CAST ( NULL AS INTEGER ) ) * - + 1 / + 12 END + 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT + NULLIF ( + - COUNT( * ), COUNT( * ) ) * + 78 AS col0, - 30
----
-78
-30

skipif mysql # not compatible
query II rowsort label-6084
SELECT + NULLIF ( + - COUNT ( * ), COUNT ( * ) ) * + 78 AS col0, - 30
----
-78
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6085
SELECT ALL - COUNT( * ) * + - ( + 74 ) + - - 33 + - 47 * - - 61, + 78 * - 11 + + 67 AS col1
----
-2760
-791

skipif mysql # not compatible
query II rowsort label-6085
SELECT ALL - COUNT ( * ) * + - ( + 74 ) + - - 33 + - 47 * - - 61, + 78 * - 11 + + 67 AS col1
----
-2760
-791

query I rowsort
SELECT DISTINCT 93 + 95
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT + 99 * - - 74 * + 60 * - - COUNT( * ) + - + 64
----
439496

skipif mysql # not compatible
query I rowsort label-6087
SELECT + 99 * - - 74 * + 60 * - - COUNT ( * ) + - + 64
----
439496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6088
SELECT 68 DIV + + COALESCE ( + 96, 69 * 99 * + 51 + - - CAST( 38 AS SIGNED ) + + COUNT( * ) + + 8 )
----
0

skipif mysql # not compatible
query I rowsort label-6088
SELECT 68 / + + COALESCE ( + 96, 69 * 99 * + 51 + - - CAST ( 38 AS INTEGER ) + + COUNT ( * ) + + 8 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6089
SELECT ALL - 29 - + + 69 DIV - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL - 29 - + + 69 / - COUNT ( * )
----
40

query I rowsort
SELECT ALL - 20 * - 11 AS col2
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6091
SELECT 29 * + - 71 / 83 - - + CASE 29 WHEN + 60 + - - COUNT( * ) * + 38 + CASE + MAX( DISTINCT + + 16 ) WHEN - 79 THEN - 89 + 96 WHEN - 79 * 99 + - ( - SUM( + 46 ) ) + - - 46 * COUNT( * ) THEN NULL END THEN + 89 * MIN( DISTINCT + 35 ) + + 65 - - CAST( - COALESCE ( - - 34, - COUNT( * ) + - + 9 ) AS SIGNED ) WHEN + - 65 THEN 21 END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT 29 * + - 71 / 83 - - + CASE 29 WHEN + 60 + - - COUNT ( * ) * + 38 + CASE + MAX ( DISTINCT + + 16 ) WHEN - 79 THEN - 89 + 96 WHEN - 79 * 99 + - ( - SUM ( + 46 ) ) + - - 46 * COUNT ( * ) THEN NULL END THEN + 89 * MIN ( DISTINCT + 35 ) + + 65 - - CAST ( - COALESCE ( - - 34, - COUNT ( * ) + - + 9 ) AS INTEGER ) WHEN + - 65 THEN 21 END + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 47 - 16
----
-63

query I rowsort
SELECT 65 * 59
----
3835

query I rowsort
SELECT ALL - ( 74 ) AS col1
----
-74

query I rowsort
SELECT ALL - ( + ( 17 ) ) AS col0
----
-17

query I rowsort
SELECT 19 * - 6
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT DISTINCT MIN( ALL + ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT MIN ( ALL + ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL - SUM( ALL - + 21 ) * - 71
----
-1491

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - SUM ( ALL - + 21 ) * - 71
----
-1491

query I rowsort
SELECT DISTINCT - 13 * + 4 * 87 AS col2
----
-4524

query I rowsort
SELECT - ( + + 83 )
----
-83

query II rowsort
SELECT ALL - 66 + + 38 AS col1, - 76 * 22 * - 80 AS col0
----
-28
133760

query I rowsort
SELECT ( - ( + 14 ) ) + 92 AS col1
----
78

query I rowsort
SELECT + 96 * - 46
----
-4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6104
SELECT DISTINCT 75 DIV + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT 75 / + COUNT ( * )
----
75

query I rowsort
SELECT ALL 80 + - 46 AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT ALL ( 72 ) + 36 * 20 AS col0, - COUNT( * ) * - COALESCE ( + 21, + 75, - 44 )
----
792
21

skipif mysql # not compatible
query II rowsort label-6106
SELECT ALL ( 72 ) + 36 * 20 AS col0, - COUNT ( * ) * - COALESCE ( + 21, + 75, - 44 )
----
792
21

query I rowsort
SELECT - 63 + 22
----
-41

query I rowsort
SELECT - 32 * + 66 col2
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT MAX( 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6109
SELECT MAX ( 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6110
SELECT DISTINCT + COUNT( * ) DIV + 56 - + + 25
----
-25

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT + COUNT ( * ) / + 56 - + + 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + 39 + + COUNT( * ) + - 72 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + 39 + + COUNT ( * ) + - 72 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT DISTINCT - MAX( DISTINCT - 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT - MAX ( DISTINCT - 93 ) AS col0
----
93

query I rowsort
SELECT DISTINCT 25 * + 21 * 74 AS col1
----
38850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL + 89 + - AVG ( - 57 ) * - - 81 * + 30 + + CAST( NULL AS SIGNED ) * + COUNT( * ) * 37 * + - 77 / + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + 89 + - AVG ( - 57 ) * - - 81 * + 30 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 37 * + - 77 / + 45 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT + CAST( NULL AS SIGNED ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT + CAST ( NULL AS INTEGER ) + + 56
----
NULL

query I rowsort
SELECT DISTINCT - CASE 89 WHEN - 15 * + 68 + + + 19 + - 67 * - + ( + 80 ) THEN + 44 + - 70 * - 68 ELSE NULL END
----
NULL

query I rowsort
SELECT 84 * 27 AS col0
----
2268

query I rowsort
SELECT ALL + 98 * - 59 * + - 4 AS col0
----
23128

query I rowsort
SELECT - ( + 41 ) + - 5 AS col1
----
-46

query I rowsort
SELECT ALL 68 * - - 88
----
5984

query I rowsort
SELECT - 80 * + 86
----
-6880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6122
SELECT + CASE - - 27 WHEN + MIN( ALL + + 33 ) + - + 10 - + 20 + - COUNT( * ) / + 16 + 72 * - 70 + + CASE - COUNT( 88 ) WHEN COALESCE ( - - CAST( - 55 AS SIGNED ), - 14 ) + 49 + + 74 THEN COUNT( DISTINCT - 46 ) + - - 4 * ( + 31 ) / + 71 + + 12 END * - + 60 / - 66 THEN NULL WHEN - - 32 + + NULLIF ( 58, - COALESCE ( ( - 88 ), + MIN( 30 ), 87 ) ) THEN + 41 END + + ( MIN( ALL + 52 ) ) * - NULLIF ( + ( - + 60 ), + 74 * 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT + CASE - - 27 WHEN + MIN ( ALL + + 33 ) + - + 10 - + 20 + - COUNT ( * ) / + 16 + 72 * - 70 + + CASE - COUNT ( 88 ) WHEN COALESCE ( - - CAST ( - 55 AS INTEGER ), - 14 ) + 49 + + 74 THEN COUNT ( DISTINCT - 46 ) + - - 4 * ( + 31 ) / + 71 + + 12 END * - + 60 / - 66 THEN NULL WHEN - - 32 + + NULLIF ( 58, - COALESCE ( ( - 88 ), + MIN ( 30 ), 87 ) ) THEN + 41 END + + ( MIN ( ALL + 52 ) ) * - NULLIF ( + ( - + 60 ), + 74 * 83 )
----
NULL

query I rowsort
SELECT + 50 * - + 3 AS col1
----
-150

query I rowsort
SELECT ALL - 26 * - 64 col2
----
1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6125
SELECT CASE 45 WHEN + 71 * + 38 * 12 + + - 92 THEN MIN( ALL 88 ) ELSE NULL END * - 44 + - ( - - COUNT( * ) ) * 62 + + CAST( NULLIF ( + NULLIF ( 97, CASE + COUNT( * ) WHEN + 13 THEN - 33 ELSE NULL END ), - + COUNT( * ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT CASE 45 WHEN + 71 * + 38 * 12 + + - 92 THEN MIN ( ALL 88 ) ELSE NULL END * - 44 + - ( - - COUNT ( * ) ) * 62 + + CAST ( NULLIF ( + NULLIF ( 97, CASE + COUNT ( * ) WHEN + 13 THEN - 33 ELSE NULL END ), - + COUNT ( * ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6126
SELECT - 32 DIV - + 19
----
1

skipif mysql # not compatible
query I rowsort label-6126
SELECT - 32 / - + 19
----
1

query II rowsort
SELECT + 62 * - 36 + + 26 AS col0, 89 AS col1
----
-2206
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT ALL + ( + 39 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL + ( + 39 ) / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL - - MAX( ALL 90 ) + + + 72 + - 90 + + 50 * + + 80 * - 23 * 35 * - 98 AS col2
----
315560072

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - - MAX ( ALL 90 ) + + + 72 + - 90 + + 50 * + + 80 * - 23 * 35 * - 98 AS col2
----
315560072

query I rowsort
SELECT DISTINCT - 67 + 71 AS col1
----
4

query I rowsort
SELECT ( + 53 ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT - + COALESCE ( + 80, - CAST( + 84 AS SIGNED ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6132
SELECT - + COALESCE ( + 80, - CAST ( + 84 AS INTEGER ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6133
SELECT - MIN( DISTINCT + - 31 ) + COUNT( DISTINCT 20 ) + - + 2 - + COALESCE ( + - 16, + 1 DIV 6, - COUNT( * ) + - + 77 ) + + 67
----
113

skipif mysql # not compatible
query I rowsort label-6133
SELECT - MIN ( DISTINCT + - 31 ) + COUNT ( DISTINCT 20 ) + - + 2 - + COALESCE ( + - 16, + 1 / 6, - COUNT ( * ) + - + 77 ) + + 67
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT ALL + + 87 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + + 87 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6135
SELECT - - 29 * + - COUNT( * ) + - 63, - COUNT( * ) AS col0
----
-92
-1

skipif mysql # not compatible
query II rowsort label-6135
SELECT - - 29 * + - COUNT ( * ) + - 63, - COUNT ( * ) AS col0
----
-92
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT - 38 AS col0, + COUNT( * ) AS col2
----
-38
1

skipif mysql # not compatible
query II rowsort label-6136
SELECT - 38 AS col0, + COUNT ( * ) AS col2
----
-38
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6137
SELECT + + 48 + + 7 DIV SUM( DISTINCT 28 ) * 77 col0, + CASE - 50 WHEN + 95 + + + 80 THEN 7 ELSE NULL END AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-6137
SELECT + + 48 + + 7 / SUM ( DISTINCT 28 ) * 77 col0, + CASE - 50 WHEN + 95 + + + 80 THEN 7 ELSE NULL END AS col1
----
48
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT ALL CAST( 19 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL CAST ( 19 AS INTEGER ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6139
SELECT - CASE 21 WHEN + + 25 + - COUNT( * ) - 26 * - + 78 + + COALESCE ( - - 40, + 88 * + - ( + 89 ) - + 27 * 95 * 10, + + MAX( - - 21 ), - 27 - - 16 + + 23 * CAST( NULL AS SIGNED ) ) * + ( 83 ) THEN NULL ELSE + 5 END
----
-5

skipif mysql # not compatible
query I rowsort label-6139
SELECT - CASE 21 WHEN + + 25 + - COUNT ( * ) - 26 * - + 78 + + COALESCE ( - - 40, + 88 * + - ( + 89 ) - + 27 * 95 * 10, + + MAX ( - - 21 ), - 27 - - 16 + + 23 * CAST ( NULL AS INTEGER ) ) * + ( 83 ) THEN NULL ELSE + 5 END
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6140
SELECT ALL + 74 + - 71 DIV + 76 * + 13 * COUNT( * ) + + - MAX( DISTINCT - ( + 80 ) ) * + 69 * 36 * + COALESCE ( + 94, CASE + + CAST( NULL AS SIGNED ) WHEN + + 51 THEN + + MIN( DISTINCT + 13 ) + + - 78 + + 44 * - 55 * - 36 * - - 27 ELSE NULL END ) AS col1
----
18679754

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL + 74 + - 71 / + 76 * + 13 * COUNT ( * ) + + - MAX ( DISTINCT - ( + 80 ) ) * + 69 * 36 * + COALESCE ( + 94, CASE + + CAST ( NULL AS INTEGER ) WHEN + + 51 THEN + + MIN ( DISTINCT + 13 ) + + - 78 + + 44 * - 55 * - 36 * - - 27 ELSE NULL END ) AS col1
----
18679754

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - 70 * + COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6141
SELECT - 70 * + COUNT ( * ) AS col0
----
-70

query I rowsort
SELECT - - CASE - + 68 WHEN - 66 THEN - 5 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6143
SELECT ALL - ( + - MAX( - NULLIF ( - 6, 31 ) ) ) AS col2, 73 AS col0
----
6
73

skipif mysql # not compatible
query II rowsort label-6143
SELECT ALL - ( + - MAX ( - NULLIF ( - 6, 31 ) ) ) AS col2, 73 AS col0
----
6
73

query I rowsort
SELECT ALL + 93 - 84 AS col1
----
9

query III rowsort
SELECT - 94, ( - + 58 ) col1, - - ( NULLIF ( + 96, + + 69 ) ) AS col0
----
-94
-58
96

query I rowsort
SELECT ALL + + 95 - - - 74
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6147
SELECT - 36 * 0 + + + 51 AS col2, - COUNT( * )
----
51
-1

skipif mysql # not compatible
query II rowsort label-6147
SELECT - 36 * 0 + + + 51 AS col2, - COUNT ( * )
----
51
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL + COUNT( - - 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL + COUNT ( - - 4 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT + + 47 DIV 72 - + 53 - 43 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6150
SELECT + + 47 / 72 - + 53 - 43 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT DISTINCT 69 * - - CASE - 29 WHEN - - AVG ( ALL - 31 ) + - + COALESCE ( + + 41, 27, + COUNT( * ) + - + COUNT( * ) ) + 31 * - COUNT( * ) THEN NULL WHEN - + 2 THEN NULL ELSE + 59 END
----
4071

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT 69 * - - CASE - 29 WHEN - - AVG ( ALL - 31 ) + - + COALESCE ( + + 41, 27, + COUNT ( * ) + - + COUNT ( * ) ) + 31 * - COUNT ( * ) THEN NULL WHEN - + 2 THEN NULL ELSE + 59 END
----
4071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6152
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 23 AS col1, CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6152
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 23 AS col1, CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6153
SELECT ALL + 2 DIV + - 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + 2 / + - 25 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT ALL 80 * COUNT( ( - 63 ) )
----
80

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL 80 * COUNT ( ( - 63 ) )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT ALL + 30 * COALESCE ( - + 18, - + 72 + CAST( 67 AS SIGNED ) ) AS col0
----
-540

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL + 30 * COALESCE ( - + 18, - + 72 + CAST ( 67 AS INTEGER ) ) AS col0
----
-540

query I rowsort
SELECT + COALESCE ( + 77, + 32 * + 14 + + 55 ) + 4
----
81

query II rowsort
SELECT ALL + 29 AS col0, 58 + 21
----
29
79

query I rowsort
SELECT DISTINCT 27 * + 31 col0
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + 50 + + - COUNT( * ) + + 68 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-6159
SELECT + 50 + + - COUNT ( * ) + + 68 AS col2
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT + CAST( NULL AS SIGNED ) * 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6160
SELECT + CAST ( NULL AS INTEGER ) * 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6161
SELECT ALL 8 * - ( + 87 ) + - COALESCE ( COUNT( * ), 49 ) + - 27 AS col0, MAX( ALL - - 86 ) AS col0
----
-724
86

skipif mysql # not compatible
query II rowsort label-6161
SELECT ALL 8 * - ( + 87 ) + - COALESCE ( COUNT ( * ), 49 ) + - 27 AS col0, MAX ( ALL - - 86 ) AS col0
----
-724
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT DISTINCT MAX( DISTINCT - + 79 ) * - 86 + + 60 AS col1
----
6854

skipif mysql # not compatible
query I rowsort label-6162
SELECT DISTINCT MAX ( DISTINCT - + 79 ) * - 86 + + 60 AS col1
----
6854

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL - 81 * 45 + + 55 - - - SUM( - NULLIF ( - 17, + 24 ) ) AS col0
----
-3607

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - 81 * 45 + + 55 - - - SUM ( - NULLIF ( - 17, + 24 ) ) AS col0
----
-3607

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6164
SELECT + CAST( NULL AS SIGNED ) AS col2, 25 AS col0
----
NULL
25

skipif mysql # not compatible
query II rowsort label-6164
SELECT + CAST ( NULL AS INTEGER ) AS col2, 25 AS col0
----
NULL
25

query II rowsort
SELECT + 90 * - 21, + 42 AS col1
----
-1890
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6166
SELECT ALL + 84, COALESCE ( - - COUNT( * ), 52, 64 * + 99 + + 75 ) + + - 85 AS col2
----
84
-84

skipif mysql # not compatible
query II rowsort label-6166
SELECT ALL + 84, COALESCE ( - - COUNT ( * ), 52, 64 * + 99 + + 75 ) + + - 85 AS col2
----
84
-84

query I rowsort
SELECT ALL + 70 * + 27 + + + 54
----
1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6168
SELECT + + 58 DIV COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6168
SELECT + + 58 / COUNT ( * )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6169
SELECT - + MAX( - - 3 ) * 3 + + 79 + + ( + 13 ) + + 23 + + 70 DIV + 31 + + COUNT( ALL 89 )
----
109

skipif mysql # not compatible
query I rowsort label-6169
SELECT - + MAX ( - - 3 ) * 3 + + 79 + + ( + 13 ) + + 23 + + 70 / + 31 + + COUNT ( ALL 89 )
----
109

query II rowsort
SELECT DISTINCT - 91 AS col2, + ( + 31 ) * + + 39
----
-91
1209

query I rowsort
SELECT - 1 * - - 34 AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6172
SELECT ALL 55 AS col2, 37 * - CASE - 66 WHEN + 72 * - + 82 * + 6 * CAST( NULL AS SIGNED ) THEN NULL WHEN - 57 * - ( 41 ) * - - COUNT( * ) - + 91 THEN - 29 * + + 30 END AS col1
----
55
NULL

skipif mysql # not compatible
query II rowsort label-6172
SELECT ALL 55 AS col2, 37 * - CASE - 66 WHEN + 72 * - + 82 * + 6 * CAST ( NULL AS INTEGER ) THEN NULL WHEN - 57 * - ( 41 ) * - - COUNT ( * ) - + 91 THEN - 29 * + + 30 END AS col1
----
55
NULL

query I rowsort
SELECT - ( + + ( - 64 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL COUNT( * ) * 7
----
7

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL COUNT ( * ) * 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6175
SELECT DISTINCT - 91 * - COALESCE ( - 20, + 42 ) - - CAST( - 54 AS SIGNED ) + 42 + COUNT( * ) + + CAST( NULL AS SIGNED ) * - - AVG ( DISTINCT 39 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT - 91 * - COALESCE ( - 20, + 42 ) - - CAST ( - 54 AS INTEGER ) + 42 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - - AVG ( DISTINCT 39 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT 97 * COUNT( * ) - + 89
----
8

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT 97 * COUNT ( * ) - + 89
----
8

query II rowsort
SELECT ALL - 32, ( 82 ) AS col1
----
-32
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6178
SELECT - + 65 col2, + CAST( - 70 AS SIGNED )
----
-65
-70

skipif mysql # not compatible
query II rowsort label-6178
SELECT - + 65 col2, + CAST ( - 70 AS INTEGER )
----
-65
-70

query I rowsort
SELECT - + 51 * - 65 * 8 AS col1
----
26520

onlyif mysql # DIV for integer division: 
query II rowsort label-6180
SELECT - + 7 + + 92 * + + ( - - 14 ), 19 DIV 43 * 53 DIV - 52 AS col1
----
1281
0

skipif mysql # not compatible
query II rowsort label-6180
SELECT - + 7 + + 92 * + + ( - - 14 ), 19 / 43 * 53 / - 52 AS col1
----
1281
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL + - 67 * - + 76 + + SUM( - + 94 )
----
4998

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + - 67 * - + 76 + + SUM ( - + 94 )
----
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT - 70 * + + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6182
SELECT - 70 * + + COUNT ( * ) AS col2
----
-70

query I rowsort
SELECT ALL + 25 * + 35 * 13
----
11375

query I rowsort
SELECT DISTINCT + 88 * ( + + 25 )
----
2200

query I rowsort
SELECT DISTINCT + 16 * + + 79
----
1264

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT COUNT( + 81 ) + + + 20 + + 71
----
92

skipif mysql # not compatible
query I rowsort label-6186
SELECT COUNT ( + 81 ) + + + 20 + + 71
----
92

query I rowsort
SELECT ALL + 98 * - 84 AS col1
----
-8232

query I rowsort
SELECT 90 * - 44 * - + 85 * + + 26 col1
----
8751600

query I rowsort
SELECT 93 + 34 * + + 72 * 75 + - ( + ( - 95 ) ) * + 39
----
187398

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT ALL + COUNT( * ) + + 41 col1
----
42

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + COUNT ( * ) + + 41 col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT 9 DIV + + ( + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-6191
SELECT 9 / + + ( + 81 )
----
0

query I rowsort
SELECT 83 + + + 26 - - 75 AS col0
----
184

query II rowsort
SELECT ALL - ( - 90 ) AS col0, - 15
----
90
-15

query I rowsort
SELECT ALL 15 * 64
----
960

query I rowsort
SELECT ALL 32 + + 96
----
128

query I rowsort
SELECT ALL ( - - 56 ) + 23 + 44 AS col0
----
123

query I rowsort
SELECT DISTINCT + 90 + - 93 * 28 * + 85
----
-221250

query I rowsort
SELECT DISTINCT ( - + 11 ) * + + 32
----
-352

query I rowsort
SELECT DISTINCT + 81 + + 27 AS col1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6200
SELECT NULLIF ( - - MAX( + 40 ), - 14 ) + + 6 + MIN( 31 ) AS col0, - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6200
SELECT NULLIF ( - - MAX ( + 40 ), - 14 ) + + 6 + MIN ( 31 ) AS col0, - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
77
NULL

query I rowsort
SELECT ALL ( - COALESCE ( + + 44, + 83 * + 26, 34 ) ) + + 68
----
24

query I rowsort
SELECT 27 + + 19 * + + 26 col2
----
521

query I rowsort
SELECT 87 * + 16 + - - NULLIF ( + 32, 1 )
----
1424

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT 16 - - - 71 * - MIN( ALL + 9 ) AS col0
----
655

skipif mysql # not compatible
query I rowsort label-6204
SELECT 16 - - - 71 * - MIN ( ALL + 9 ) AS col0
----
655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6205
SELECT - CASE - + CAST( NULL AS SIGNED ) WHEN + 72 THEN - 86 * - + 59 WHEN + NULLIF ( 74, + + 92 ) - + + ( 64 ) THEN NULL END * - CAST( NULL AS SIGNED ) * 86 / + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT - CASE - + CAST ( NULL AS INTEGER ) WHEN + 72 THEN - 86 * - + 59 WHEN + NULLIF ( 74, + + 92 ) - + + ( 64 ) THEN NULL END * - CAST ( NULL AS INTEGER ) * 86 / + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT 65 + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6206
SELECT 65 + COUNT ( * ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6207
SELECT ALL 68 - - MAX( ALL 11 ) - 53 + CASE - 56 WHEN COUNT( * ) + - + 7 * - 62 THEN + 72 WHEN - CAST( + COUNT( * ) AS DECIMAL ) THEN NULL ELSE NULL END * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL 68 - - MAX ( ALL 11 ) - 53 + CASE - 56 WHEN COUNT ( * ) + - + 7 * - 62 THEN + 72 WHEN - CAST ( + COUNT ( * ) AS REAL ) THEN NULL ELSE NULL END * - 12
----
NULL

query I rowsort
SELECT - 43 * - 84 * - 96 * 88 * + 0 AS col2
----
0

query I rowsort
SELECT + 52 + + 48 + - 37 AS col1
----
63

query I rowsort
SELECT DISTINCT - 35 * - - 64 + + 73 * + ( 7 ) AS col1
----
-1729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6211
SELECT DISTINCT 30 / CASE 54 WHEN NULLIF ( - + 75, - 31 ) + - 83 + - - 80 THEN + CAST( + + MAX( ALL - 70 ) AS SIGNED ) WHEN 17 * - COUNT( * ) + + 48 THEN - + 62 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT 30 / CASE 54 WHEN NULLIF ( - + 75, - 31 ) + - 83 + - - 80 THEN + CAST ( + + MAX ( ALL - 70 ) AS INTEGER ) WHEN 17 * - COUNT ( * ) + + 48 THEN - + 62 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6212
SELECT 34 + + 17 + + + 56 DIV 85 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-6212
SELECT 34 + + 17 + + + 56 / 85 AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT - 18 DIV - - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6213
SELECT - 18 / - - 63 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6214
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN - 60 + + - SUM( ALL - - 0 ) - + 50 + + - CAST( NULL AS DECIMAL ) + + 68 / + - SUM( - + ( + 8 ) ) * 44 * - + 20 * - - 95 * 77 * - CAST( NULL AS SIGNED ) / - + MIN( + 55 ) / + CAST( NULL AS DECIMAL ) THEN NULL WHEN - 65 / + + 75 * 3 + - 60 - - 26 * - + 85 + + - 96 THEN 19 ELSE 56 END + 33 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6214
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN - 60 + + - SUM ( ALL - - 0 ) - + 50 + + - CAST ( NULL AS REAL ) + + 68 / + - SUM ( - + ( + 8 ) ) * 44 * - + 20 * - - 95 * 77 * - CAST ( NULL AS INTEGER ) / - + MIN ( + 55 ) / + CAST ( NULL AS REAL ) THEN NULL WHEN - 65 / + + 75 * 3 + - 60 - - 26 * - + 85 + + - 96 THEN 19 ELSE 56 END + 33 AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT DISTINCT + 58 * - - 79 * - CAST( NULL AS SIGNED ) * + 89 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT + 58 * - - 79 * - CAST ( NULL AS INTEGER ) * + 89 * + 52
----
NULL

query I rowsort
SELECT ALL 71 * - 81
----
-5751

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL 15 * MAX( - 70 ) * CASE - 86 WHEN SUM( - - 74 ) / 42 + 18 * 18 / + COUNT( * ) THEN NULL ELSE ( - 91 ) END AS col0
----
95550

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL 15 * MAX ( - 70 ) * CASE - 86 WHEN SUM ( - - 74 ) / 42 + 18 * 18 / + COUNT ( * ) THEN NULL ELSE ( - 91 ) END AS col0
----
95550

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT CASE + 88 WHEN + NULLIF ( - 37, + + ( - 82 ) - COUNT( * ) * + 24 / - 55 - + 89 ) THEN + NULLIF ( - + 36, 97 ) - 5 + + - 32 WHEN + 51 - + 21 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT CASE + 88 WHEN + NULLIF ( - 37, + + ( - 82 ) - COUNT ( * ) * + 24 / - 55 - + 89 ) THEN + NULLIF ( - + 36, 97 ) - 5 + + - 32 WHEN + 51 - + 21 THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT ALL - 39 * 63 DIV - 8 AS col1
----
307

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL - 39 * 63 / - 8 AS col1
----
307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6220
SELECT ALL - COUNT( * ) DIV + 25 * CAST( 21 AS SIGNED ) * + 78 * 52 * + 57
----
0

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL - COUNT ( * ) / + 25 * CAST ( 21 AS INTEGER ) * + 78 * 52 * + 57
----
0

query II rowsort
SELECT DISTINCT 10 + ( - 91 ) AS col2, - 0 + + 95 + - - 80
----
-81
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT 0 * - - NULLIF ( - COUNT( * ), - 60 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6222
SELECT 0 * - - NULLIF ( - COUNT ( * ), - 60 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT + MAX( DISTINCT - + 63 ) + 31 + 22 * - 21 + 30
----
-464

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + MAX ( DISTINCT - + 63 ) + 31 + 22 * - 21 + 30
----
-464

onlyif mysql # DIV for integer division: 
query I rowsort label-6224
SELECT ALL + 39 + + 11 + + + 62 DIV + 20
----
53

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + 39 + + 11 + + + 62 / + 20
----
53

query II rowsort
SELECT - 52, 5 AS col2
----
-52
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT ALL 9 + + - CAST( + 57 AS SIGNED ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL 9 + + - CAST ( + 57 AS INTEGER ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-6227
SELECT DISTINCT - NULLIF ( ( - 50 ), + 26 ) * + 5 * 7 * - 12 + - + 44 col2, 33 + + COUNT( * )
----
-21044
34

skipif mysql # not compatible
query II rowsort label-6227
SELECT DISTINCT - NULLIF ( ( - 50 ), + 26 ) * + 5 * 7 * - 12 + - + 44 col2, 33 + + COUNT ( * )
----
-21044
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL - 67 * + 25 * - COALESCE ( - 61, + COUNT( - 21 ) ) AS col0
----
-102175

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL - 67 * + 25 * - COALESCE ( - 61, + COUNT ( - 21 ) ) AS col0
----
-102175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6229
SELECT ALL + COUNT( * ) * - 14 * + + 43 + - CAST( - - 50 AS SIGNED ) + ( COUNT( * ) ) AS col2
----
-651

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + COUNT ( * ) * - 14 * + + 43 + - CAST ( - - 50 AS INTEGER ) + ( COUNT ( * ) ) AS col2
----
-651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6230
SELECT ALL - CAST( + - CASE - 70 WHEN + + 39 THEN NULL WHEN - 98 * + - COUNT( * ) THEN - 96 WHEN - COUNT( * ) THEN 94 * - 19 WHEN - - ( - CASE 0 WHEN + + 84 + + + 71 THEN + + 86 * - COUNT( * ) WHEN - 47 + - 42 * - 65 THEN - - 19 * - SUM( + 4 ) * 37 ELSE + - CAST( - + 59 AS SIGNED ) + + - ( - 82 ) END ) * - SUM( + CAST( NULL AS DECIMAL ) ) / 75 THEN NULL ELSE COUNT( * ) END AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL - CAST ( + - CASE - 70 WHEN + + 39 THEN NULL WHEN - 98 * + - COUNT ( * ) THEN - 96 WHEN - COUNT ( * ) THEN 94 * - 19 WHEN - - ( - CASE 0 WHEN + + 84 + + + 71 THEN + + 86 * - COUNT ( * ) WHEN - 47 + - 42 * - 65 THEN - - 19 * - SUM ( + 4 ) * 37 ELSE + - CAST ( - + 59 AS INTEGER ) + + - ( - 82 ) END ) * - SUM ( + CAST ( NULL AS REAL ) ) / 75 THEN NULL ELSE COUNT ( * ) END AS INTEGER ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 66 * 5 + ( + + 68 ) AS col0
----
398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6232
SELECT + ( - - 57 ) * + 28 + + + 48 * + 5 + - COUNT( * ) DIV - 99 * + + 25
----
1836

skipif mysql # not compatible
query I rowsort label-6232
SELECT + ( - - 57 ) * + 28 + + + 48 * + 5 + - COUNT ( * ) / - 99 * + + 25
----
1836

query II rowsort
SELECT DISTINCT - + 35 AS col2, 34 * + 94
----
-35
3196

query II rowsort
SELECT ALL - - 74 AS col1, - 98 AS col0
----
74
-98

query I rowsort
SELECT DISTINCT 48 * + 79 * - - 77
----
291984

query I rowsort
SELECT + 22 * + 9 AS col2
----
198

query I rowsort
SELECT 80 * - 49 - + 81 AS col0
----
-4001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6238
SELECT ALL + 86 DIV - + NULLIF ( - + CAST( + + COUNT( * ) AS SIGNED ), - 7 * 65 )
----
86

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL + 86 / - + NULLIF ( - + CAST ( + + COUNT ( * ) AS INTEGER ), - 7 * 65 )
----
86

query I rowsort
SELECT + 40 * - 19
----
-760

onlyif mysql # aggregate syntax: 
query II rowsort label-6240
SELECT ALL - 6 * + SUM( DISTINCT + - 51 ) col1, + 44
----
306
44

skipif mysql # not compatible
query II rowsort label-6240
SELECT ALL - 6 * + SUM ( DISTINCT + - 51 ) col1, + 44
----
306
44

query I rowsort
SELECT + ( + + 56 ) col2
----
56

query I rowsort
SELECT ALL - 95 * - 45
----
4275

query I rowsort
SELECT - 89 * + 27 + - 43 * + - 66 * + 7 * - 37 * - 52 AS col2
----
38219781

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT + MIN( ALL + 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6244
SELECT + MIN ( ALL + 15 ) AS col1
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6245
SELECT + - 3 AS col2, 43 * - CAST( NULL AS DECIMAL ) AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6245
SELECT + - 3 AS col2, 43 * - CAST ( NULL AS REAL ) AS col1
----
-3
NULL

query I rowsort
SELECT - - 75 * + + 65 - + 33 + 58
----
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT + MAX( ALL - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6247
SELECT + MAX ( ALL - 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT DISTINCT - + 42, + 78 + - + COUNT( * ) col0
----
-42
77

skipif mysql # not compatible
query II rowsort label-6248
SELECT DISTINCT - + 42, + 78 + - + COUNT ( * ) col0
----
-42
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6249
SELECT - 85 AS col0, ( + COUNT( ALL - 82 ) )
----
-85
1

skipif mysql # not compatible
query II rowsort label-6249
SELECT - 85 AS col0, ( + COUNT ( ALL - 82 ) )
----
-85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL MAX( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL MAX ( DISTINCT + 79 )
----
79

query I rowsort
SELECT DISTINCT - 1 * 88 * - 98 * - - 74 col1
----
638176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6252
SELECT + 43 * - - CASE - 47 WHEN - COUNT( * ) THEN - - 75 * - 73 + 27 / - - 48 WHEN MIN( DISTINCT - - 23 ) THEN - 19 END + + + CAST( - MIN( - + 89 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT + 43 * - - CASE - 47 WHEN - COUNT ( * ) THEN - - 75 * - 73 + 27 / - - 48 WHEN MIN ( DISTINCT - - 23 ) THEN - 19 END + + + CAST ( - MIN ( - + 89 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6253
SELECT ALL CASE - 12 WHEN + COUNT( * ) THEN + - 0 * CAST( - 42 AS SIGNED ) ELSE 63 * + - 10 * - ( 80 ) * CASE + - 53 WHEN - 54 THEN + 50 END * 55 + 21 + - COUNT( * ) + + 48 + + 16 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL CASE - 12 WHEN + COUNT ( * ) THEN + - 0 * CAST ( - 42 AS INTEGER ) ELSE 63 * + - 10 * - ( 80 ) * CASE + - 53 WHEN - 54 THEN + 50 END * 55 + 21 + - COUNT ( * ) + + 48 + + 16 END AS col0
----
NULL

query I rowsort
SELECT + CASE - 92 WHEN 25 THEN - 0 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL 58 + MIN( + 11 ) * - + 69 col2
----
-701

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL 58 + MIN ( + 11 ) * - + 69 col2
----
-701

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL 69 + + COUNT( * ) col2
----
70

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL 69 + + COUNT ( * ) col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6257
SELECT + ( ( + COUNT( * ) ) ) + - + 50 - - + 58 * + 54 + + 34 DIV + COALESCE ( + + 97, 87 )
----
3083

skipif mysql # not compatible
query I rowsort label-6257
SELECT + ( ( + COUNT ( * ) ) ) + - + 50 - - + 58 * + 54 + + 34 / + COALESCE ( + + 97, 87 )
----
3083

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL COUNT( * ) + 35 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL COUNT ( * ) + 35 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT + ( ( - SUM( DISTINCT + - 50 ) ) ) + + 50 * - - COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-6259
SELECT + ( ( - SUM ( DISTINCT + - 50 ) ) ) + + 50 * - - COUNT ( * )
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT + 16 DIV - 5 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6260
SELECT + 16 / - 5 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT + COUNT( * ) + - 46 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6261
SELECT + COUNT ( * ) + - 46 AS col1
----
-45

query II rowsort
SELECT - 33 * - 8 AS col1, 11 col1
----
264
11

query I rowsort
SELECT ALL 98 + - 98
----
0

query I rowsort
SELECT ALL 9 + - 99
----
-90

query I rowsort
SELECT DISTINCT 68 * - - 61 AS col2
----
4148

query I rowsort
SELECT + 80 + - 61 * - 83
----
5143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6267
SELECT ALL + ( + 63 ) + - - NULLIF ( + 22, - - COUNT( * ) + 28 ) - + ( - + 67 ) * + CAST( + + 98 AS SIGNED ) * - 41
----
-269121

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL + ( + 63 ) + - - NULLIF ( + 22, - - COUNT ( * ) + 28 ) - + ( - + 67 ) * + CAST ( + + 98 AS INTEGER ) * - 41
----
-269121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6268
SELECT + 73 + - NULLIF ( + 71, + 60 ) AS col2, 53 + + CAST( NULL AS SIGNED )
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6268
SELECT + 73 + - NULLIF ( + 71, + 60 ) AS col2, 53 + + CAST ( NULL AS INTEGER )
----
2
NULL

query I rowsort
SELECT DISTINCT 97 - 46 + - 44 * - - 72 AS col2
----
-3117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6270
SELECT 0 DIV - NULLIF ( - - 35, + 29 * + COUNT( * ) ) + - 96 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6270
SELECT 0 / - NULLIF ( - - 35, + 29 * + COUNT ( * ) ) + - 96 AS col2
----
-96

query I rowsort
SELECT DISTINCT - ( - 60 ) * - 29 * 11 - - - 61 AS col0
----
-19201

query I rowsort
SELECT - - 96 * 85 AS col2
----
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL - + COUNT( * ) * 17
----
-17

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL - + COUNT ( * ) * 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL 65 * + - 56 - + SUM( DISTINCT - 2 ) * 6 AS col1
----
-3628

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL 65 * + - 56 - + SUM ( DISTINCT - 2 ) * 6 AS col1
----
-3628

query I rowsort
SELECT + - ( - - 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT DISTINCT - 57 * - COUNT( * ) + - 74 + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT - 57 * - COUNT ( * ) + - 74 + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT - - 46 DIV - + 37
----
-1

skipif mysql # not compatible
query I rowsort label-6277
SELECT - - 46 / - + 37
----
-1

query I rowsort
SELECT - 61 * + ( + - 66 ) col0
----
4026

onlyif mysql # aggregate syntax: 
query II rowsort label-6279
SELECT ALL + + COALESCE ( COUNT( * ), - ( + 73 ) ) AS col2, 52
----
1
52

skipif mysql # not compatible
query II rowsort label-6279
SELECT ALL + + COALESCE ( COUNT ( * ), - ( + 73 ) ) AS col2, 52
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT - - MIN( DISTINCT 58 ) - + 7
----
51

skipif mysql # not compatible
query I rowsort label-6280
SELECT - - MIN ( DISTINCT 58 ) - + 7
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6281
SELECT - 74 * COALESCE ( CASE - 41 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + + 96 * - MAX( + - 61 ) + + - 58 THEN - 63 DIV - 0 + + + COUNT( * ) ELSE NULL END, + + 93 + - + 72 - + COALESCE ( + 45, CAST( NULL AS SIGNED ) ) ) col2
----
1776

skipif mysql # not compatible
query I rowsort label-6281
SELECT - 74 * COALESCE ( CASE - 41 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 96 * - MAX ( + - 61 ) + + - 58 THEN - 63 / - 0 + + + COUNT ( * ) ELSE NULL END, + + 93 + - + 72 - + COALESCE ( + 45, CAST ( NULL AS INTEGER ) ) ) col2
----
1776

query I rowsort
SELECT - - 94 + 65 + + 74
----
233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6283
SELECT ALL + ( + COALESCE ( 46, - MIN( ALL + + CAST( + + 46 AS SIGNED ) ) * + 15 * 93 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + ( + COALESCE ( 46, - MIN ( ALL + + CAST ( + + 46 AS INTEGER ) ) * + 15 * 93 ) ) AS col1
----
46

query I rowsort
SELECT - + 19 + + 64 / - CASE + + 95 WHEN + + 14 THEN - + 38 - - 80 + - - 73 WHEN + - 27 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6285
SELECT ALL + 85 * - - COUNT( * ) DIV - 91 + - 27, 67 * 15 AS col1
----
-27
1005

skipif mysql # not compatible
query II rowsort label-6285
SELECT ALL + 85 * - - COUNT ( * ) / - 91 + - 27, 67 * 15 AS col1
----
-27
1005

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT - 36 + COUNT( * ) + - 75 + 81, + 58 * + + 29 AS col2
----
-29
1682

skipif mysql # not compatible
query II rowsort label-6286
SELECT - 36 + COUNT ( * ) + - 75 + 81, + 58 * + + 29 AS col2
----
-29
1682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6287
SELECT DISTINCT 19 * - + 8 * - 17 + CAST( - 63 AS SIGNED ) + - - 73 AS col2
----
2594

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT 19 * - + 8 * - 17 + CAST ( - 63 AS INTEGER ) + - - 73 AS col2
----
2594

query I rowsort
SELECT DISTINCT ( 21 ) * + ( - 36 ) AS col1
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL + + ( COUNT( * ) ) * - - 49 + + 19 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL + + ( COUNT ( * ) ) * - - 49 + + 19 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT DISTINCT - + COUNT( * ) * 6 + - + ( 36 )
----
-42

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT - + COUNT ( * ) * 6 + - + ( 36 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT + 40 + + + ( 3 ) + AVG ( DISTINCT + 3 ) - + - 15 / - CAST( NULL AS SIGNED ) * ( + + 38 ) * + SUM( ALL + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT + 40 + + + ( 3 ) + AVG ( DISTINCT + 3 ) - + - 15 / - CAST ( NULL AS INTEGER ) * ( + + 38 ) * + SUM ( ALL + 16 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT DISTINCT CAST( - 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT CAST ( - 15 AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL - COUNT( - 48 ) * + - 55
----
55

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL - COUNT ( - 48 ) * + - 55
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6294
SELECT ALL NULLIF ( - + 64, + 49 * - COALESCE ( + 53, + 81 ) + 18 ) + 96 + 44 + - 77 * 68 DIV - + 98 + 11 * + 31 AS col1
----
470

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL NULLIF ( - + 64, + 49 * - COALESCE ( + 53, + 81 ) + 18 ) + 96 + 44 + - 77 * 68 / - + 98 + 11 * + 31 AS col1
----
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6295
SELECT + 34 + - - 10 - - CASE - 64 WHEN + + 5 * - 42 * - COUNT( * ) + + CAST( NULL AS SIGNED ) THEN + + COUNT( * ) * + + MIN( + - 15 ) - + 98 + - - 1 / + 39 + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT + 34 + - - 10 - - CASE - 64 WHEN + + 5 * - 42 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN + + COUNT ( * ) * + + MIN ( + - 15 ) - + 98 + - - 1 / + 39 + 62 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6296
SELECT - NULLIF ( + NULLIF ( - - COUNT( * ), 72 * 78 * ( + 92 ) + 53 - COUNT( ALL + - 29 ) * - CAST( MIN( ALL + 30 ) AS SIGNED ) ), 1 * 61 ) * - 9 + - - 30 + + + ( - - CASE + 82 WHEN + 85 * 11 THEN COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT - NULLIF ( + NULLIF ( - - COUNT ( * ), 72 * 78 * ( + 92 ) + 53 - COUNT ( ALL + - 29 ) * - CAST ( MIN ( ALL + 30 ) AS INTEGER ) ), 1 * 61 ) * - 9 + - - 30 + + + ( - - CASE + 82 WHEN + 85 * 11 THEN COUNT ( * ) ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL + 67 * - 46
----
-3082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT ALL CAST( - - 3 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL CAST ( - - 3 AS INTEGER ) AS col1
----
3

query I rowsort
SELECT DISTINCT - 95 - - - 90 AS col1
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6300
SELECT ALL 56 - + 36 + SUM( ALL + - CAST( NULLIF ( 89, 33 ) AS SIGNED ) ) DIV + 26 - - 91
----
108

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL 56 - + 36 + SUM ( ALL + - CAST ( NULLIF ( 89, 33 ) AS INTEGER ) ) / + 26 - - 91
----
108

query II rowsort
SELECT 43, + 32 AS col0
----
43
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + COUNT( * ) * + 42
----
42

skipif mysql # not compatible
query I rowsort label-6302
SELECT + COUNT ( * ) * + 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL ( + - COUNT( * ) ) * + 27
----
-27

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL ( + - COUNT ( * ) ) * + 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT + 14 - - 80 + - COUNT( * ) * + ( + 61 )
----
33

skipif mysql # not compatible
query I rowsort label-6304
SELECT + 14 - - 80 + - COUNT ( * ) * + ( + 61 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT - ( + CAST( 91 AS SIGNED ) ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-6305
SELECT - ( + CAST ( 91 AS INTEGER ) ) col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL COUNT( 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL COUNT ( 89 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL ( - 38 ) * 71 - - - COUNT( * )
----
-2699

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL ( - 38 ) * 71 - - - COUNT ( * )
----
-2699

query I rowsort
SELECT + 84 * - 95 AS col2
----
-7980

query I rowsort
SELECT + 1 + - 92 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6310
SELECT + 16 * + 30 - 81 * COUNT( CAST( 16 AS SIGNED ) * - 48 + - 67 * 10 )
----
399

skipif mysql # not compatible
query I rowsort label-6310
SELECT + 16 * + 30 - 81 * COUNT ( CAST ( 16 AS INTEGER ) * - 48 + - 67 * 10 )
----
399

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT ALL + 42 DIV 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL + 42 / 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT + 53 * 59 + COUNT( * )
----
3128

skipif mysql # not compatible
query I rowsort label-6312
SELECT + 53 * 59 + COUNT ( * )
----
3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT + 48 * - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT + 48 * - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - MIN( DISTINCT 80 ) * + 10
----
-800

skipif mysql # not compatible
query I rowsort label-6314
SELECT - MIN ( DISTINCT 80 ) * + 10
----
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6315
SELECT + CAST( COALESCE ( 80, 26 * MIN( ALL - 44 ) ) AS SIGNED ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6315
SELECT + CAST ( COALESCE ( 80, 26 * MIN ( ALL - 44 ) ) AS INTEGER ) AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT ALL 78 DIV 4 + 33
----
52

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL 78 / 4 + 33
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6317
SELECT CAST( ( - NULLIF ( + 33, - COUNT( * ) / 26 ) ) AS SIGNED ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6317
SELECT CAST ( ( - NULLIF ( + 33, - COUNT ( * ) / 26 ) ) AS INTEGER ) AS col2
----
-33

query I rowsort
SELECT CASE 41 WHEN 97 * - 87 THEN NULL WHEN - 51 THEN ( - 50 ) END * + 49 AS col0
----
NULL

query I rowsort
SELECT ALL + 70 + 8
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL 0 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL 0 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT ALL + 52 * + MIN( ALL - 57 ) AS col0
----
-2964

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL + 52 * + MIN ( ALL - 57 ) AS col0
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT DISTINCT 35 + ( 82 + COUNT( * ) )
----
118

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT 35 + ( 82 + COUNT ( * ) )
----
118

query I rowsort
SELECT ALL - 7 + - 22 * 12
----
-271

query I rowsort
SELECT DISTINCT - NULLIF ( NULLIF ( + 83, + 6 ), - 92 )
----
-83

query I rowsort
SELECT 10 * + ( + 9 )
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6326
SELECT DISTINCT - COALESCE ( - 28, ( 73 ) DIV + 78 + 96 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT - COALESCE ( - 28, ( 73 ) / + 78 + 96 ) AS col0
----
28

query I rowsort
SELECT 84 - - 22
----
106

query I rowsort
SELECT ALL + 8 + 41
----
49

query I rowsort
SELECT 99 * 88
----
8712

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT DISTINCT + COUNT( - 85 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT + COUNT ( - 85 ) * COUNT ( * )
----
1

query I rowsort
SELECT ALL - ( + NULLIF ( 89, + 8 + 93 ) ) * + 74 AS col1
----
-6586

query I rowsort
SELECT ALL - COALESCE ( - 12, - 65 ) * - 69
----
-828

query I rowsort
SELECT 93 + 7
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL + COUNT( * ) - 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL + COUNT ( * ) - 61 AS col2
----
-60

query I rowsort
SELECT DISTINCT + NULLIF ( 82, - 64 * + 75 ) * + 43
----
3526

query I rowsort
SELECT 8 + - 20 AS col1
----
-12

query I rowsort
SELECT ALL + 18 * + 51 AS col2
----
918

query I rowsort
SELECT 18 + + 45 AS col1
----
63

query I rowsort
SELECT 24 * 96 AS col1
----
2304

query I rowsort
SELECT 28 + - 70 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT COUNT( * ) * - COUNT( DISTINCT 82 * 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6341
SELECT COUNT ( * ) * - COUNT ( DISTINCT 82 * 14 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT ALL 96 DIV + 19 col2
----
5

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL 96 / + 19 col2
----
5

query I rowsort
SELECT 53 + 90 * ( 16 )
----
1493

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT ALL - SUM( DISTINCT 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL - SUM ( DISTINCT 32 ) AS col0
----
-32

query I rowsort
SELECT - + ( + 64 ) col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6346
SELECT ALL - 24 DIV - COUNT( - ( 2 ) * 89 )
----
24

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - 24 / - COUNT ( - ( 2 ) * 89 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT 65 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6347
SELECT 65 / 84 AS col2
----
0

query I rowsort
SELECT 8 * 27 AS col2
----
216

query I rowsort
SELECT + ( + 35 ) AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6350
SELECT COUNT( * ) DIV - 60 + 98 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6350
SELECT COUNT ( * ) / - 60 + 98 AS col2
----
98

query I rowsort
SELECT DISTINCT + 5 + ( 77 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL ( - COUNT( * ) ) + 2 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL ( - COUNT ( * ) ) + 2 * - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL + COUNT( ALL - 8 ) + - 2 * - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + COUNT ( ALL - 8 ) + - 2 * - COUNT ( * ) AS col2
----
3

query I rowsort
SELECT - 85 * 6 - 17 * + 53 AS col2
----
-1411

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6355
SELECT + - 4 DIV COUNT( * ) + - ( NULLIF ( 59, + 87 + 19 ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6355
SELECT + - 4 / COUNT ( * ) + - ( NULLIF ( 59, + 87 + 19 ) ) AS col2
----
-63

query I rowsort
SELECT 44 + + ( + 23 ) AS col0
----
67

query I rowsort
SELECT DISTINCT - - 10 AS col2
----
10

query I rowsort
SELECT ALL + 31 + 2 AS col0
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6359
SELECT CAST( NULL AS DECIMAL ) * + 12 + 12 * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT CAST ( NULL AS REAL ) * + 12 + 12 * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT - ( COUNT( * ) ) - - 43 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6360
SELECT - ( COUNT ( * ) ) - - 43 AS col1
----
42

query I rowsort
SELECT 83 + 79
----
162

query I rowsort
SELECT ALL - 76 - + 83
----
-159

query I rowsort
SELECT ALL + NULLIF ( - 99, - NULLIF ( - 12, - 18 ) + 2 ) * 80
----
-7920

query I rowsort
SELECT DISTINCT 45 - + 45 + - 13 AS col1
----
-13

query I rowsort
SELECT DISTINCT + 4 * - 41 * - 7
----
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL - SUM( 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - SUM ( 38 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6367
SELECT 19 + - + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6367
SELECT 19 + - + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6368
SELECT 49 * + + CASE - CAST( - 16 AS SIGNED ) WHEN - 47 THEN NULL WHEN 51 + 74 * + 70 THEN NULL ELSE + 34 * MAX( DISTINCT + 73 ) - + CAST( NULL AS SIGNED ) END + CAST( NULL AS SIGNED ) * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT 49 * + + CASE - CAST ( - 16 AS INTEGER ) WHEN - 47 THEN NULL WHEN 51 + 74 * + 70 THEN NULL ELSE + 34 * MAX ( DISTINCT + 73 ) - + CAST ( NULL AS INTEGER ) END + CAST ( NULL AS INTEGER ) * + 69
----
NULL

query I rowsort
SELECT 99 * + 48
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT 34 * - COUNT( * ) * + 34 col1
----
-1156

skipif mysql # not compatible
query I rowsort label-6370
SELECT 34 * - COUNT ( * ) * + 34 col1
----
-1156

query I rowsort
SELECT 38 + - - 87 - - 88 AS col2
----
213

query I rowsort
SELECT 47 * + 23 * - 8 AS col0
----
-8648

query I rowsort
SELECT 24 * 74
----
1776

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT DISTINCT - 59 DIV + COALESCE ( - 71, 42 DIV - 48, 12 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT - 59 / + COALESCE ( - 71, 42 / - 48, 12 ) col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6375
SELECT ALL - 42 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - 42 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 87 * + 99
----
8613

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6377
SELECT CAST( NULL AS DECIMAL ) * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT CAST ( NULL AS REAL ) * - 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT 59 + CAST( + ( - ( 35 ) ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-6378
SELECT 59 + CAST ( + ( - ( 35 ) ) AS INTEGER )
----
24

query I rowsort
SELECT 63 * + 22 AS col0
----
1386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6380
SELECT - ( - + 98 ) DIV - ( COUNT( DISTINCT 36 ) - - 87 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6380
SELECT - ( - + 98 ) / - ( COUNT ( DISTINCT 36 ) - - 87 ) AS col2
----
-1

query I rowsort
SELECT ALL + 78 + + 78 * 30
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT - 44 - + COUNT( * ) * - 85
----
41

skipif mysql # not compatible
query I rowsort label-6382
SELECT - 44 - + COUNT ( * ) * - 85
----
41

query I rowsort
SELECT - 53 + + 57 + + 66
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6384
SELECT - 57 - - - 75 - - 42 / + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6384
SELECT - 57 - - - 75 - - 42 / + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT DISTINCT + 34 * + 48 * - 65 col2
----
-106080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT ALL - 76 + + NULLIF ( 90, + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL - 76 + + NULLIF ( 90, + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) + COUNT ( * )
----
15

query I rowsort
SELECT ALL + 96 + - - 90 + 35 * + 48
----
1866

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT - COUNT( * ) + - 36
----
-37

skipif mysql # not compatible
query I rowsort label-6388
SELECT - COUNT ( * ) + - 36
----
-37

query I rowsort
SELECT + 83 * 46 * 53 - 71
----
202283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT + - CAST( + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-6390
SELECT + - CAST ( + 22 AS INTEGER )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT - 58 * - 30 * - 8 + + 49 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT - 58 * - 30 * - 8 + + 49 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT - ( - CAST( + 5 AS SIGNED ) ) * + 99
----
495

skipif mysql # not compatible
query I rowsort label-6392
SELECT - ( - CAST ( + 5 AS INTEGER ) ) * + 99
----
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6393
SELECT DISTINCT - + COUNT( * ) DIV + ( 83 ) * 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT - + COUNT ( * ) / + ( 83 ) * 7 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6394
SELECT ALL + + CAST( 15 AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL + + CAST ( 15 AS INTEGER ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6395
SELECT ALL + 74 col1, SUM( - 56 ) * 72 AS col1
----
74
-4032

skipif mysql # not compatible
query II rowsort label-6395
SELECT ALL + 74 col1, SUM ( - 56 ) * 72 AS col1
----
74
-4032

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT + 98 DIV 91 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6396
SELECT + 98 / 91 AS col2
----
1

query I rowsort
SELECT DISTINCT 4 * + 65 * - 8
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL + SUM( + - 72 ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL + SUM ( + - 72 ) col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT COUNT( + 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6399
SELECT COUNT ( + 25 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT MIN( - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6400
SELECT MIN ( - 85 ) AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6401
SELECT + CASE - 10 WHEN 18 DIV COUNT( * ) THEN NULL WHEN COALESCE ( - 50, 14 * - 51, - CAST( NULL AS DECIMAL ) ) + - 24 THEN 80 * 47 ELSE 36 * COUNT( * ) - - SUM( 71 + 94 DIV CASE 54 DIV - COALESCE ( 63, + 61, + 55 ) WHEN + 68 THEN NULL WHEN - 64 THEN 69 ELSE ( + 33 ) * + NULLIF ( + 62, ( + 64 ) ) END ) END DIV - 81 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6401
SELECT + CASE - 10 WHEN 18 / COUNT ( * ) THEN NULL WHEN COALESCE ( - 50, 14 * - 51, - CAST ( NULL AS REAL ) ) + - 24 THEN 80 * 47 ELSE 36 * COUNT ( * ) - - SUM ( 71 + 94 / CASE 54 / - COALESCE ( 63, + 61, + 55 ) WHEN + 68 THEN NULL WHEN - 64 THEN 69 ELSE ( + 33 ) * + NULLIF ( + 62, ( + 64 ) ) END ) END / - 81 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT COUNT( + - 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6402
SELECT COUNT ( + - 34 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT + 39 - 28 + + 13 + 10 DIV - 54 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6403
SELECT + 39 - 28 + + 13 + 10 / - 54 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6404
SELECT + 45 * NULLIF ( CAST( NULL AS SIGNED ), - 28 ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT + 45 * NULLIF ( CAST ( NULL AS INTEGER ), - 28 ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT MIN( - ( - + 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6405
SELECT MIN ( - ( - + 0 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6406
SELECT + 57 AS col1, + CAST( - 15 AS SIGNED ) * 57 col0
----
57
-855

skipif mysql # not compatible
query II rowsort label-6406
SELECT + 57 AS col1, + CAST ( - 15 AS INTEGER ) * 57 col0
----
57
-855

query I rowsort
SELECT - NULLIF ( 77, 48 * + 69 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT - NULLIF ( 60, + COUNT( * ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6408
SELECT - NULLIF ( 60, + COUNT ( * ) ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT - ( + - SUM( - - 68 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6409
SELECT - ( + - SUM ( - - 68 ) ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6410
SELECT - ( - COALESCE ( - 44, - 51 + NULLIF ( - CAST( 77 AS SIGNED ), + 3 + 55 ) * MAX( DISTINCT 47 + 80 ) ) ) * 26 - 74
----
-1218

skipif mysql # not compatible
query I rowsort label-6410
SELECT - ( - COALESCE ( - 44, - 51 + NULLIF ( - CAST ( 77 AS INTEGER ), + 3 + 55 ) * MAX ( DISTINCT 47 + 80 ) ) ) * 26 - 74
----
-1218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT ALL - 55 + - MIN( ALL CAST( NULL AS SIGNED ) ) * + ( 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - 55 + - MIN ( ALL CAST ( NULL AS INTEGER ) ) * + ( 49 ) AS col2
----
NULL

query I rowsort
SELECT + 61 - + 6 + + 2 + - 18 * + 46
----
-771

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT + 31 + + 42 DIV - 79 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6413
SELECT + 31 + + 42 / - 79 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT - COALESCE ( + SUM( DISTINCT + + 99 ), 42 ) - - 33
----
-66

skipif mysql # not compatible
query I rowsort label-6414
SELECT - COALESCE ( + SUM ( DISTINCT + + 99 ), 42 ) - - 33
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT - 13 * - COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6415
SELECT - 13 * - COUNT ( * ) AS col0
----
13

query I rowsort
SELECT ALL 19 + - 40
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT + 25 + - COUNT( * ) col0
----
24

skipif mysql # not compatible
query I rowsort label-6417
SELECT + 25 + - COUNT ( * ) col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6418
SELECT - 34 AS col1, - MAX( ALL 88 ) AS col0
----
-34
-88

skipif mysql # not compatible
query II rowsort label-6418
SELECT - 34 AS col1, - MAX ( ALL 88 ) AS col0
----
-34
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6419
SELECT + COUNT( * ) + - CASE + 57 WHEN - ( + 4 ) + ( + 88 ) THEN 9 * - 61 + - COALESCE ( ( 55 ), 84 - 51 * + 57, + CAST( + COUNT( * ) AS SIGNED ) ) / 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT + COUNT ( * ) + - CASE + 57 WHEN - ( + 4 ) + ( + 88 ) THEN 9 * - 61 + - COALESCE ( ( 55 ), 84 - 51 * + 57, + CAST ( + COUNT ( * ) AS INTEGER ) ) / 90 END
----
NULL

query I rowsort
SELECT - - 22 - + 47 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ALL + 5 + - 37 + 18 + MIN( DISTINCT + ( + 89 ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL + 5 + - 37 + 18 + MIN ( DISTINCT + ( + 89 ) ) AS col0
----
75

query I rowsort
SELECT ALL - 25 + - ( + 66 ) + 93 AS col2
----
2

query I rowsort
SELECT ALL + + 39 + - 36 col1
----
3

query I rowsort
SELECT - - ( + - 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT - - ( + + 64 ) + - COUNT( * ) * 20
----
44

skipif mysql # not compatible
query I rowsort label-6425
SELECT - - ( + + 64 ) + - COUNT ( * ) * 20
----
44

query I rowsort
SELECT ALL + - NULLIF ( - 9, - ( + 79 ) ) + - CASE WHEN NULL NOT BETWEEN ( ( 59 ) + + 96 * + 8 ) AND ( 15 * 52 ) THEN - 39 + + 35 ELSE 0 END col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6427
SELECT - 88 AS col1, COUNT( * ) DIV + + 26 * 2
----
-88
0

skipif mysql # not compatible
query II rowsort label-6427
SELECT - 88 AS col1, COUNT ( * ) / + + 26 * 2
----
-88
0

query I rowsort
SELECT - - 84 + - 71 col1
----
13

query I rowsort
SELECT DISTINCT - 73 * + - ( 75 ) AS col0
----
5475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6430
SELECT + + 67 DIV 89 + - 25 * COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-6430
SELECT + + 67 / 89 + - 25 * COUNT ( * ) AS col1
----
-25

query I rowsort
SELECT - - 34 + + 84
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL - COUNT( * ) * 16
----
-16

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL - COUNT ( * ) * 16
----
-16

query I rowsort
SELECT - 3 - - 10 AS col2
----
7

query I rowsort
SELECT - - 85 * - 62
----
-5270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6435
SELECT - 38 * - - CASE COUNT( * ) WHEN 7 THEN NULL ELSE - 66 END + + COALESCE ( 37, 7 + + 49, + 36 + 82 DIV 42, ( + 3 ) DIV + 85 ) col0
----
2545

skipif mysql # not compatible
query I rowsort label-6435
SELECT - 38 * - - CASE COUNT ( * ) WHEN 7 THEN NULL ELSE - 66 END + + COALESCE ( 37, 7 + + 49, + 36 + 82 / 42, ( + 3 ) / + 85 ) col0
----
2545

query I rowsort
SELECT ( - 3 ) AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT - NULLIF ( 75, + 33 ) DIV + 96 + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6437
SELECT - NULLIF ( 75, + 33 ) / + 96 + 0 AS col2
----
0

query I rowsort
SELECT - 22 * - - 89
----
-1958

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT + 27 * COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6439
SELECT + 27 * COUNT ( * ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT 50 * + CAST( 24 AS SIGNED ) + - + 52
----
1148

skipif mysql # not compatible
query I rowsort label-6440
SELECT 50 * + CAST ( 24 AS INTEGER ) + - + 52
----
1148

query I rowsort
SELECT ( + + 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT DISTINCT - COUNT( - - 39 ) * - + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT - COUNT ( - - 39 ) * - + 66 AS col0
----
66

query I rowsort
SELECT ALL CASE - 8 WHEN - 70 - 64 THEN - 98 - 47 END * + 61
----
NULL

query I rowsort
SELECT - 91 + - + 40 AS col2
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ( MAX( - + 14 ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-6445
SELECT ( MAX ( - + 14 ) ) AS col2
----
-14

query I rowsort
SELECT + 85 + + - 98
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6447
SELECT ALL - CAST( NULL AS SIGNED ) * + 40 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL - CAST ( NULL AS INTEGER ) * + 40 * COUNT ( * )
----
NULL

query I rowsort
SELECT + NULLIF ( - 91, - 82 ) * 54 * - 84 + 66
----
412842

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT + MAX( ALL - - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-6449
SELECT + MAX ( ALL - - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT - 32 * - + COUNT( ALL 64 )
----
32

skipif mysql # not compatible
query I rowsort label-6450
SELECT - 32 * - + COUNT ( ALL 64 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT 24 * - 95 + + 98 - + - 40 * COUNT( * )
----
-2142

skipif mysql # not compatible
query I rowsort label-6451
SELECT 24 * - 95 + + 98 - + - 40 * COUNT ( * )
----
-2142

query I rowsort
SELECT + COALESCE ( - ( - + 53 ), 10 * 4 ) + + 79
----
132

query I rowsort
SELECT DISTINCT 78 + - ( 31 ) + 92 + 64 col1
----
203

query I rowsort
SELECT 53 * - 26 * - 43 AS col1
----
59254

query I rowsort
SELECT + NULLIF ( - - 69, - 29 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6456
SELECT ALL - 76 + + ( + 33 ) * + CASE - CASE 87 WHEN - 12 THEN COUNT( * ) + - 16 END WHEN 28 + - CAST( NULL AS SIGNED ) THEN - 79 + 76 WHEN 99 + - ( - SUM( - 5 ) ) THEN 69 + 73 ELSE 77 * 35 END
----
88859

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL - 76 + + ( + 33 ) * + CASE - CASE 87 WHEN - 12 THEN COUNT ( * ) + - 16 END WHEN 28 + - CAST ( NULL AS INTEGER ) THEN - 79 + 76 WHEN 99 + - ( - SUM ( - 5 ) ) THEN 69 + 73 ELSE 77 * 35 END
----
88859

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT SUM( - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT SUM ( - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT DISTINCT MAX( DISTINCT + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT MAX ( DISTINCT + 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6459
SELECT ALL 92 + + + COUNT( * ) DIV + COUNT( * ) + 8 + 98 col0
----
199

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL 92 + + + COUNT ( * ) / + COUNT ( * ) + 8 + 98 col0
----
199

query I rowsort
SELECT ALL 32 * + 26 AS col2
----
832

query I rowsort
SELECT - + NULLIF ( - 56, + 60 ) AS col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6462
SELECT 63 + + + COUNT( + 95 ) + + + 5 DIV + 1
----
69

skipif mysql # not compatible
query I rowsort label-6462
SELECT 63 + + + COUNT ( + 95 ) + + + 5 / + 1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT - 89 DIV - 73 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6463
SELECT - 89 / - 73 AS col1
----
1

query II rowsort
SELECT ALL 59 - - 2 AS col0, + 6
----
61
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT + COUNT( * ) * 44 - - 23
----
67

skipif mysql # not compatible
query I rowsort label-6465
SELECT + COUNT ( * ) * 44 - - 23
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6466
SELECT ( - - COUNT( * ) ) - - COUNT( * ) DIV - 64
----
1

skipif mysql # not compatible
query I rowsort label-6466
SELECT ( - - COUNT ( * ) ) - - COUNT ( * ) / - 64
----
1

query I rowsort
SELECT + 55 - - + 47
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6468
SELECT ALL CAST( - 61 AS SIGNED ) AS col0, MAX( ALL + 92 ) AS col0
----
-61
92

skipif mysql # not compatible
query II rowsort label-6468
SELECT ALL CAST ( - 61 AS INTEGER ) AS col0, MAX ( ALL + 92 ) AS col0
----
-61
92

query I rowsort
SELECT - ( 18 ) * - 92 * + 17 + - 99
----
28053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6470
SELECT ALL + 52 DIV + + MAX( ALL - 83 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL + 52 / + + MAX ( ALL - 83 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT - SUM( ALL + + 88 ) + 85
----
-3

skipif mysql # not compatible
query I rowsort label-6471
SELECT - SUM ( ALL + + 88 ) + 85
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT 81 DIV - 67 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6472
SELECT 81 / - 67 AS col0
----
-1

query I rowsort
SELECT 11 + - - 27
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT 39 * 21 * + 58 + + NULLIF ( MAX( ALL 29 ), 70 ) - + COUNT( * ) * + 86
----
47445

skipif mysql # not compatible
query I rowsort label-6474
SELECT 39 * 21 * + 58 + + NULLIF ( MAX ( ALL 29 ), 70 ) - + COUNT ( * ) * + 86
----
47445

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT ALL - COALESCE ( + + NULLIF ( - 35, 26 * - 84 ), + COUNT( * ) * + 90, - SUM( 18 ) )
----
35

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL - COALESCE ( + + NULLIF ( - 35, 26 * - 84 ), + COUNT ( * ) * + 90, - SUM ( 18 ) )
----
35

query I rowsort
SELECT ALL + 63 * + 11 * 67 AS col1
----
46431

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT 38 DIV 5
----
7

skipif mysql # not compatible
query I rowsort label-6477
SELECT 38 / 5
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT - COUNT( * ) * 99 + + 40 + + 44
----
-15

skipif mysql # not compatible
query I rowsort label-6478
SELECT - COUNT ( * ) * 99 + + 40 + + 44
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT DISTINCT + COUNT( * ) * + 29
----
29

skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT + COUNT ( * ) * + 29
----
29

query I rowsort
SELECT ALL - 91 * + 24 AS col0
----
-2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT ALL - CAST( 43 AS SIGNED ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL - CAST ( 43 AS INTEGER ) AS col0
----
-43

query II rowsort
SELECT + 98, - 29 - + 79 col0
----
98
-108

query I rowsort
SELECT ALL + 18 + - 26 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT 37 * - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6484
SELECT 37 * - COUNT ( * ) AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT ALL + 55 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + 55 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 0 + 38 AS col1
----
38

query I rowsort
SELECT DISTINCT - COALESCE ( - + 46, + - ( + 40 ) ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT + 73 + + - 4 * COALESCE ( - 72, + 11 + COUNT( * ) )
----
361

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT + 73 + + - 4 * COALESCE ( - 72, + 11 + COUNT ( * ) )
----
361

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT 27 DIV + 1
----
27

skipif mysql # not compatible
query I rowsort label-6489
SELECT 27 / + 1
----
27

query I rowsort
SELECT 63 * 82 col2
----
5166

query I rowsort
SELECT - 84 * + 94 - - ( + 50 ) AS col0
----
-7846

onlyif mysql # DIV for integer division: 
query II rowsort label-6492
SELECT + 18 AS col1, - 14 + 23 + - + 95 * + 42 * - 31 * COALESCE ( + 17, COALESCE ( - 78, + ( 71 ) DIV 31, ( 73 ) * - 61 ) )
----
18
2102739

skipif mysql # not compatible
query II rowsort label-6492
SELECT + 18 AS col1, - 14 + 23 + - + 95 * + 42 * - 31 * COALESCE ( + 17, COALESCE ( - 78, + ( 71 ) / 31, ( 73 ) * - 61 ) )
----
18
2102739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT 43 - + 7 - - - 68 + + ( + 1 ) - + ( 15 ) * 67 * + CAST( + AVG ( DISTINCT 52 ) AS SIGNED ) AS col2
----
-52291

skipif mysql # not compatible
query I rowsort label-6493
SELECT 43 - + 7 - - - 68 + + ( + 1 ) - + ( 15 ) * 67 * + CAST ( + AVG ( DISTINCT 52 ) AS INTEGER ) AS col2
----
-52291

query I rowsort
SELECT ALL + 29 * - + 26 * - ( + 90 ) AS col1
----
67860

query I rowsort
SELECT 53 + - + 99 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT ALL + 56 + + COUNT( * ) + - 64 * - 97 + 6
----
6271

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL + 56 + + COUNT ( * ) + - 64 * - 97 + 6
----
6271

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT NULLIF ( - 49, + MAX( - + 84 ) ) * - - COALESCE ( 55, 89 ) * SUM( DISTINCT + 31 ) + + 16 AS col1
----
-83529

skipif mysql # not compatible
query I rowsort label-6497
SELECT NULLIF ( - 49, + MAX ( - + 84 ) ) * - - COALESCE ( 55, 89 ) * SUM ( DISTINCT + 31 ) + + 16 AS col1
----
-83529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6498
SELECT ALL 90 + + MAX( - 75 ) + + 19 + + 18 * CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) * + 66
----
1222

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL 90 + + MAX ( - 75 ) + + 19 + + 18 * CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * + 66
----
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL 77 - 85 + - COUNT( * ) * - 21 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL 77 - 85 + - COUNT ( * ) * - 21 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL - 56 * + + MAX( ALL 91 ) col0
----
-5096

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL - 56 * + + MAX ( ALL 91 ) col0
----
-5096

query I rowsort
SELECT DISTINCT + 97 - - 70
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT + CAST( + 19 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6502
SELECT + CAST ( + 19 AS INTEGER ) AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT + 13 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-6503
SELECT + 13 / + 40
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6504
SELECT 78 * + 64 + - 78, + 35 - COALESCE ( 26, - 81 * + 2 + - ( - COUNT( * ) - - 74 * - 17 ) ) + + COUNT( * ) * - 12 AS col0
----
4914
-3

skipif mysql # not compatible
query II rowsort label-6504
SELECT 78 * + 64 + - 78, + 35 - COALESCE ( 26, - 81 * + 2 + - ( - COUNT ( * ) - - 74 * - 17 ) ) + + COUNT ( * ) * - 12 AS col0
----
4914
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT + COUNT( * ) + + + 45 + - ( 54 ) * - 33 * + 31
----
55288

skipif mysql # not compatible
query I rowsort label-6505
SELECT + COUNT ( * ) + + + 45 + - ( 54 ) * - 33 * + 31
----
55288

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT - 96 * + - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6506
SELECT - 96 * + - COUNT ( * ) AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6507
SELECT DISTINCT + CAST( + 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT + CAST ( + 54 AS INTEGER )
----
54

query I rowsort
SELECT 26 + - 96 col2
----
-70

query II rowsort
SELECT DISTINCT 57, NULLIF ( + 10, + - AVG ( ALL + + 19 ) ) col2
----
57
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL - NULLIF ( + 14, + 99 * + 59 / - - COUNT( * ) ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - NULLIF ( + 14, + 99 * + 59 / - - COUNT ( * ) ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT DISTINCT 11 * - + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT 11 * - + COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT DISTINCT 50 * - COALESCE ( - COALESCE ( + 77, 89 ), 45 * - 26 ) * + COUNT( * ) AS col1
----
3850

skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT 50 * - COALESCE ( - COALESCE ( + 77, 89 ), 45 * - 26 ) * + COUNT ( * ) AS col1
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT 26 * + COUNT( * ) + - + 80 + - + 1 + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT 26 * + COUNT ( * ) + - + 80 + - + 1 + 55 AS col2
----
0

query II rowsort
SELECT ALL 47 col0, 42
----
47
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6515
SELECT - 24 / - CAST( NULL AS SIGNED ) / + + AVG ( - 91 ) + + 23 * - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT - 24 / - CAST ( NULL AS INTEGER ) / + + AVG ( - 91 ) + + 23 * - + 77
----
NULL

query II rowsort
SELECT ALL - 57 AS col2, 9 col1
----
-57
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6517
SELECT ALL + 32 DIV COUNT( DISTINCT 28 )
----
32

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL + 32 / COUNT ( DISTINCT 28 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT + MAX( DISTINCT - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-6518
SELECT + MAX ( DISTINCT - 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6519
SELECT ALL + MIN( ALL - 38 ) * + CAST( - CASE - + 60 WHEN + 51 THEN COALESCE ( - CASE - ( 22 ) WHEN - 81 * 1 + + ( 54 ) * - 64 THEN + CAST( 1 AS SIGNED ) ELSE NULL END, 10 * 98 ) * 22 ELSE 15 END AS SIGNED ) + - 30 AS col1
----
540

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL + MIN ( ALL - 38 ) * + CAST ( - CASE - + 60 WHEN + 51 THEN COALESCE ( - CASE - ( 22 ) WHEN - 81 * 1 + + ( 54 ) * - 64 THEN + CAST ( 1 AS INTEGER ) ELSE NULL END, 10 * 98 ) * 22 ELSE 15 END AS INTEGER ) + - 30 AS col1
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT - CAST( 79 AS SIGNED ) * - 92 + + 37 * - 42 + + 61 * 13
----
6507

skipif mysql # not compatible
query I rowsort label-6520
SELECT - CAST ( 79 AS INTEGER ) * - 92 + + 37 * - 42 + + 61 * 13
----
6507

query I rowsort
SELECT + CASE - 11 WHEN + 63 / - 67 THEN - 79 ELSE - + 9 END AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6522
SELECT + 80 * + 80 * + 6 + CAST( NULL AS SIGNED ) + 84 + + - COUNT( * ) * 15 * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6522
SELECT + 80 * + 80 * + 6 + CAST ( NULL AS INTEGER ) + 84 + + - COUNT ( * ) * 15 * + 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6523
SELECT ALL + CAST( NULL AS SIGNED ) * 4 + + + 51 / + 59 + AVG ( ALL - 65 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + CAST ( NULL AS INTEGER ) * 4 + + + 51 / + 59 + AVG ( ALL - 65 ) col1
----
NULL

query I rowsort
SELECT 63 + + 76 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6525
SELECT + CASE AVG ( DISTINCT - + 41 ) WHEN + 12 THEN - CASE + NULLIF ( + 77, 29 * + 30 ) WHEN 52 - - 22 THEN NULL WHEN 69 THEN 21 WHEN CAST( 92 AS SIGNED ) THEN NULL END - + 73 WHEN + ( MIN( + 20 ) ) THEN - COUNT( * ) ELSE + 73 END
----
73

skipif mysql # not compatible
query I rowsort label-6525
SELECT + CASE AVG ( DISTINCT - + 41 ) WHEN + 12 THEN - CASE + NULLIF ( + 77, 29 * + 30 ) WHEN 52 - - 22 THEN NULL WHEN 69 THEN 21 WHEN CAST ( 92 AS INTEGER ) THEN NULL END - + 73 WHEN + ( MIN ( + 20 ) ) THEN - COUNT ( * ) ELSE + 73 END
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT - COALESCE ( NULLIF ( + ( - 51 ), + + COUNT( * ) ), - + 24 ) + 86 * 98 col1
----
8479

skipif mysql # not compatible
query I rowsort label-6526
SELECT - COALESCE ( NULLIF ( + ( - 51 ), + + COUNT ( * ) ), - + 24 ) + 86 * 98 col1
----
8479

query I rowsort
SELECT - COALESCE ( - ( - 89 ), - 74 * 87 ) - - + 14
----
-75

query I rowsort
SELECT ALL - 10 * + 6 - + 77 AS col1
----
-137

query I rowsort
SELECT DISTINCT ( + COALESCE ( 6, + 18 ) ) * - 22 AS col2
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL 54 * - - COUNT( * ) - + - 59
----
113

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL 54 * - - COUNT ( * ) - + - 59
----
113

query I rowsort
SELECT ALL 2 * + + COALESCE ( - 43, - 11 * 20 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-6532
SELECT ALL + 7 AS col0, COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-6532
SELECT ALL + 7 AS col0, COUNT ( * )
----
7
1

query I rowsort
SELECT - 72 + 67
----
-5

query I rowsort
SELECT - ( + 19 )
----
-19

query I rowsort
SELECT + - 6 * - + 11 + + 44
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL + - 16 - + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL + - 16 - + COUNT ( * )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT + 83 * - CAST( NULL AS SIGNED ) * + 79 + - - 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT + 83 * - CAST ( NULL AS INTEGER ) * + 79 + - - 93 AS col0
----
NULL

query II rowsort
SELECT - 23 AS col1, 90
----
-23
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6539
SELECT - 67, CAST( COALESCE ( ( - 93 ), 21 ) AS SIGNED ) AS col2
----
-67
-93

skipif mysql # not compatible
query II rowsort label-6539
SELECT - 67, CAST ( COALESCE ( ( - 93 ), 21 ) AS INTEGER ) AS col2
----
-67
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-6540
SELECT 91 AS col0, COUNT( ALL + 60 ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-6540
SELECT 91 AS col0, COUNT ( ALL + 60 ) AS col0
----
91
1

query I rowsort
SELECT + 80 * ( 21 ) col1
----
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-6542
SELECT - - 96 + + 31 + + 13 DIV 92
----
127

skipif mysql # not compatible
query I rowsort label-6542
SELECT - - 96 + + 31 + + 13 / 92
----
127

query I rowsort
SELECT ALL - 52 * + COALESCE ( - 99, + 98 ) AS col1
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT COUNT( - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-6544
SELECT COUNT ( - 87 )
----
1

query I rowsort
SELECT + 69 + 71 - 89 + - - 77 AS col1
----
128

query I rowsort
SELECT ALL ( + 10 ) col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6547
SELECT - COUNT( * ) / - + CAST( NULL AS DECIMAL ) + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT - COUNT ( * ) / - + CAST ( NULL AS REAL ) + - 85 AS col2
----
NULL

query II rowsort
SELECT 83 AS col0, 12 AS col1
----
83
12

query I rowsort
SELECT + 96 * + ( COALESCE ( + 93, - + CASE 79 WHEN 88 THEN NULL ELSE 48 END * + 12 ) ) + + NULLIF ( 39, + 26 )
----
8967

query II rowsort
SELECT 27 AS col0, + ( 84 ) * - 88 + + 91
----
27
-7301

query I rowsort
SELECT - 54 - 39 * + + 93 * + - 59 * - 53
----
-11341683

query II rowsort
SELECT ALL ( + ( + 5 ) ), 3 AS col2
----
5
3

query I rowsort
SELECT DISTINCT ( 55 ) AS col2
----
55

query II rowsort
SELECT DISTINCT 21 * 11 AS col1, + 28
----
231
28

query I rowsort
SELECT DISTINCT + 73 + - 59
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT + ( - MAX( DISTINCT - + 42 ) ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6556
SELECT + ( - MAX ( DISTINCT - + 42 ) ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6557
SELECT + MAX( DISTINCT 16 ) AS col2, ( + NULLIF ( + 53, - - 17 + 34 * - COUNT( * ) ) ) + 94 AS col2
----
16
147

skipif mysql # not compatible
query II rowsort label-6557
SELECT + MAX ( DISTINCT 16 ) AS col2, ( + NULLIF ( + 53, - - 17 + 34 * - COUNT ( * ) ) ) + 94 AS col2
----
16
147

onlyif mysql # aggregate syntax: 
query II rowsort label-6558
SELECT ( - COUNT( * ) ) AS col1, - 43
----
-1
-43

skipif mysql # not compatible
query II rowsort label-6558
SELECT ( - COUNT ( * ) ) AS col1, - 43
----
-1
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6559
SELECT ALL 20 * 82 DIV + + 71
----
23

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL 20 * 82 / + + 71
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6560
SELECT 56 DIV - - 53 + 22 + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6560
SELECT 56 / - - 53 + 22 + - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT 7 * - - COUNT( * ) - 94
----
-87

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT 7 * - - COUNT ( * ) - 94
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT + CAST( - + 59 AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6562
SELECT + CAST ( - + 59 AS INTEGER ) AS col0
----
-59

query I rowsort
SELECT DISTINCT + COALESCE ( + 37, - - 78, - 77 ) col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT 66 * - COUNT( * ) + + 25 * + - 29 * NULLIF ( + MIN( - 19 ), - 75 ) * 54 + NULLIF ( 7, 97 + + 88 ) * - 19
----
743651

skipif mysql # not compatible
query I rowsort label-6564
SELECT 66 * - COUNT ( * ) + + 25 * + - 29 * NULLIF ( + MIN ( - 19 ), - 75 ) * 54 + NULLIF ( 7, 97 + + 88 ) * - 19
----
743651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6565
SELECT ALL COALESCE ( + 74, 31 - + 40 * ( CAST( - - 40 AS SIGNED ) ) * 79 + NULLIF ( AVG ( DISTINCT - 60 ), 0 + - 4 ), 23 + + 58 ) * + CAST( NULL AS SIGNED ) - - MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL COALESCE ( + 74, 31 - + 40 * ( CAST ( - - 40 AS INTEGER ) ) * 79 + NULLIF ( AVG ( DISTINCT - 60 ), 0 + - 4 ), 23 + + 58 ) * + CAST ( NULL AS INTEGER ) - - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT + 0 * - - 29 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6566
SELECT + 0 * - - 29 + - COUNT ( * )
----
-1

query I rowsort
SELECT + + 30 * - 37 - + 31 AS col2
----
-1141

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT - 51 * + 77 + 73 + + 9 * + - 2 + + + CASE - 74 WHEN - 52 + COALESCE ( 84, COUNT( * ), 1 ) THEN ( - 21 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT - 51 * + 77 + 73 + + 9 * + - 2 + + + CASE - 74 WHEN - 52 + COALESCE ( 84, COUNT ( * ), 1 ) THEN ( - 21 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6569
SELECT - 55 * - 11 * + 20 + 8 DIV - + 4 + - - 49 + COUNT( * ) + + 65 * 59 AS col2
----
15983

skipif mysql # not compatible
query I rowsort label-6569
SELECT - 55 * - 11 * + 20 + 8 / - + 4 + - - 49 + COUNT ( * ) + + 65 * 59 AS col2
----
15983

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL COUNT( * ) * COUNT( ALL + 80 ) * 11
----
11

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL COUNT ( * ) * COUNT ( ALL + 80 ) * 11
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6571
SELECT - + COUNT( * ) DIV + 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6571
SELECT - + COUNT ( * ) / + 27 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT + 8 + + COUNT( * ) + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 8 + + COUNT ( * ) + - COUNT ( * )
----
8

query I rowsort
SELECT + - 51 * - 66
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT + COUNT( * ) * + 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + COUNT ( * ) * + 95 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6575
SELECT - MAX( - 81 ) - + 98 - - ( - ( - SUM( DISTINCT - + 55 ) ) ) - + COALESCE ( - CASE - 82 WHEN 22 DIV 29 THEN + 38 * + 17 WHEN CAST( NULL AS SIGNED ) THEN - 28 WHEN 9 THEN COUNT( * ) + - 38 ELSE NULL END, + COUNT( * ), - ( 54 ) DIV 69 + + COUNT( * ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6575
SELECT - MAX ( - 81 ) - + 98 - - ( - ( - SUM ( DISTINCT - + 55 ) ) ) - + COALESCE ( - CASE - 82 WHEN 22 / 29 THEN + 38 * + 17 WHEN CAST ( NULL AS INTEGER ) THEN - 28 WHEN 9 THEN COUNT ( * ) + - 38 ELSE NULL END, + COUNT ( * ), - ( 54 ) / 69 + + COUNT ( * ) ) AS col1
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6576
SELECT - MIN( CAST( - 49 AS SIGNED ) ) + - 43
----
6

skipif mysql # not compatible
query I rowsort label-6576
SELECT - MIN ( CAST ( - 49 AS INTEGER ) ) + - 43
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6577
SELECT ALL - + 96 + 90 + COUNT( * ) DIV + 2 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - + 96 + 90 + COUNT ( * ) / + 2 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6578
SELECT ALL + MAX( ALL + 89 ) + + + COUNT( ALL - CAST( - - CAST( - 6 AS DECIMAL ) AS SIGNED ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL + MAX ( ALL + 89 ) + + + COUNT ( ALL - CAST ( - - CAST ( - 6 AS REAL ) AS INTEGER ) ) AS col2
----
90

query II rowsort
SELECT - 24 + - + 67 AS col2, 26
----
-91
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6580
SELECT - COUNT( * ) + - ( + CASE - + 81 WHEN - CAST( 61 AS SIGNED ) THEN + + 88 - + 52 DIV + 74 ELSE - CAST( + 21 AS SIGNED ) END ) * 78
----
1637

skipif mysql # not compatible
query I rowsort label-6580
SELECT - COUNT ( * ) + - ( + CASE - + 81 WHEN - CAST ( 61 AS INTEGER ) THEN + + 88 - + 52 / + 74 ELSE - CAST ( + 21 AS INTEGER ) END ) * 78
----
1637

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT - MIN( ALL + 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6581
SELECT - MIN ( ALL + 62 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT DISTINCT + CAST( + MIN( ALL 39 ) AS SIGNED ) + - + 23 - + COUNT( * ) + 22 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + CAST ( + MIN ( ALL 39 ) AS INTEGER ) + - + 23 - + COUNT ( * ) + 22 AS col2
----
37

query I rowsort
SELECT - 57 + + 49 AS col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT - 63 DIV - 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6584
SELECT - 63 / - 20 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6585
SELECT - NULLIF ( 55, - COUNT( * ) + - COUNT( * ) + + + 90 ) + - MAX( + + 34 ) DIV + 2
----
-72

skipif mysql # not compatible
query I rowsort label-6585
SELECT - NULLIF ( 55, - COUNT ( * ) + - COUNT ( * ) + + + 90 ) + - MAX ( + + 34 ) / + 2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT ALL CAST( + + 6 AS SIGNED ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL CAST ( + + 6 AS INTEGER ) AS col1
----
6

query I rowsort
SELECT 34 + - 17
----
17

query II rowsort
SELECT + 4 col1, 75 AS col1
----
4
75

query I rowsort
SELECT 53 + - - ( + 20 ) col2
----
73

query I rowsort
SELECT ALL 14 - - 9 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT ALL 73 DIV + - 43 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6591
SELECT ALL 73 / + - 43 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6592
SELECT ALL - CASE WHEN NOT + CAST( 64 AS SIGNED ) <= - 56 THEN + - 67 + + 75 ELSE ( 65 ) END AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL - CASE WHEN NOT + CAST ( 64 AS INTEGER ) <= - 56 THEN + - 67 + + 75 ELSE ( 65 ) END AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT COUNT( - 9 ) + + 55 + + 6
----
62

skipif mysql # not compatible
query I rowsort label-6593
SELECT COUNT ( - 9 ) + + 55 + + 6
----
62

query I rowsort
SELECT ALL 67 * - 9
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ( 17 ) * 65 - 1 + - 8 * + COUNT( DISTINCT - 60 ) + + - COUNT( * ) AS col0
----
1095

skipif mysql # not compatible
query I rowsort label-6595
SELECT ( 17 ) * 65 - 1 + - 8 * + COUNT ( DISTINCT - 60 ) + + - COUNT ( * ) AS col0
----
1095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6596
SELECT + COALESCE ( - CASE 20 WHEN + CAST( + + 18 AS SIGNED ) + - + 82 THEN NULL WHEN + - 78 * + - 11 - 54 + 27 THEN COUNT( * ) * COUNT( * ) END, + MAX( - 9 ), + CASE + CASE - 43 WHEN 30 THEN NULL ELSE 10 END WHEN 63 - + 77 THEN NULL WHEN - ( - 56 ) * + CAST( NULL AS SIGNED ) THEN - 93 DIV 74 END ) DIV - 92 + - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6596
SELECT + COALESCE ( - CASE 20 WHEN + CAST ( + + 18 AS INTEGER ) + - + 82 THEN NULL WHEN + - 78 * + - 11 - 54 + 27 THEN COUNT ( * ) * COUNT ( * ) END, + MAX ( - 9 ), + CASE + CASE - 43 WHEN 30 THEN NULL ELSE 10 END WHEN 63 - + 77 THEN NULL WHEN - ( - 56 ) * + CAST ( NULL AS INTEGER ) THEN - 93 / 74 END ) / - 92 + - 28 AS col1
----
-28

query I rowsort
SELECT ALL 13 * 58 * 8 * - 91
----
-548912

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT 62 * + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-6598
SELECT 62 * + COUNT ( * )
----
62

query I rowsort
SELECT 97 + + 19
----
116

query I rowsort
SELECT 68 + + + 21 AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6601
SELECT 4 * 86 DIV 75 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6601
SELECT 4 * 86 / 75 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6602
SELECT + + COUNT( - 86 ) * + - COUNT( * ) + - 25 col0, COUNT( * ) AS col1
----
-26
1

skipif mysql # not compatible
query II rowsort label-6602
SELECT + + COUNT ( - 86 ) * + - COUNT ( * ) + - 25 col0, COUNT ( * ) AS col1
----
-26
1

query I rowsort
SELECT + 49 + 35 - + 15
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT 45 * - COUNT( * ) + 26 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6604
SELECT 45 * - COUNT ( * ) + 26 AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6605
SELECT COALESCE ( + COUNT( ALL + 79 ), 45 - MAX( DISTINCT 33 ), 68 DIV 10 ) * 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6605
SELECT COALESCE ( + COUNT ( ALL + 79 ), 45 - MAX ( DISTINCT 33 ), 68 / 10 ) * 7 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6606
SELECT 63 DIV 53 * - 48
----
-48

skipif mysql # not compatible
query I rowsort label-6606
SELECT 63 / 53 * - 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT COALESCE ( - 62, 89, + - 21 + + 76 + - - COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-6607
SELECT COALESCE ( - 62, 89, + - 21 + + 76 + - - COUNT ( * ) )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6608
SELECT ( - - ( - COUNT( * ) ) ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-6608
SELECT ( - - ( - COUNT ( * ) ) ) / + 75
----
0

query I rowsort
SELECT - 29 + + - 68
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6610
SELECT 42 DIV - - SUM( DISTINCT 34 )
----
1

skipif mysql # not compatible
query I rowsort label-6610
SELECT 42 / - - SUM ( DISTINCT 34 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT - 77 * + + 58 + - - ( 64 ) + MAX( DISTINCT 11 ) DIV - COUNT( * ) + + 61 + 11 * ( - 21 )
----
-4583

skipif mysql # not compatible
query I rowsort label-6611
SELECT - 77 * + + 58 + - - ( 64 ) + MAX ( DISTINCT 11 ) / - COUNT ( * ) + + 61 + 11 * ( - 21 )
----
-4583

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT - COUNT( ALL + - 39 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6612
SELECT - COUNT ( ALL + - 39 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 33 + + 3 AS col0
----
36

query I rowsort
SELECT + 95 * + 19
----
1805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6615
SELECT ALL + 0 + + 77 DIV + SUM( + + 65 ), 25 - 89 + + COUNT( * ) + - - CAST( + 10 AS SIGNED ) * + 64 * - 97 AS col1
----
1
-62143

skipif mysql # not compatible
query II rowsort label-6615
SELECT ALL + 0 + + 77 / + SUM ( + + 65 ), 25 - 89 + + COUNT ( * ) + - - CAST ( + 10 AS INTEGER ) * + 64 * - 97 AS col1
----
1
-62143

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT - - CASE - 32 WHEN NULLIF ( 25, + COUNT( * ) * + - 24 + 70 ) THEN NULL ELSE - 76 END AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6616
SELECT - - CASE - 32 WHEN NULLIF ( 25, + COUNT ( * ) * + - 24 + 70 ) THEN NULL ELSE - 76 END AS col1
----
-76

query II rowsort
SELECT 82 AS col2, 61 + 71 * + + 28
----
82
2049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6618
SELECT DISTINCT - COUNT( * ) DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT - COUNT ( * ) / 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6619
SELECT DISTINCT - - COUNT( * ) * + - NULLIF ( + 78, - ( + ( AVG ( - 23 ) ) ) ) DIV - 22 * + COUNT( * ) + + SUM( + 90 )
----
93

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT - - COUNT ( * ) * + - NULLIF ( + 78, - ( + ( AVG ( - 23 ) ) ) ) / - 22 * + COUNT ( * ) + + SUM ( + 90 )
----
93

query I rowsort
SELECT ALL + 40 + + 71 col0
----
111

query I rowsort
SELECT ALL + 59 + + 35 AS col2
----
94

query II rowsort
SELECT 25 AS col1, 36 + + + NULLIF ( - 63, - 38 )
----
25
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT 53 + + + CASE + 41 WHEN 24 THEN - CASE + + 83 WHEN - - 78 * + CAST( - + COUNT( * ) AS SIGNED ) THEN NULL WHEN 19 - 8 THEN + 84 * 3 END * 6 END + - CASE - COUNT( * ) WHEN + 38 / - ( + 2 ) THEN - 45 WHEN - 90 + 99 THEN + CAST( CASE - 73 WHEN CASE 20 WHEN 36 THEN NULL WHEN COUNT( * ) + - 96 THEN - 55 ELSE + 29 END * + 41 THEN NULL ELSE 26 END AS SIGNED ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT 53 + + + CASE + 41 WHEN 24 THEN - CASE + + 83 WHEN - - 78 * + CAST ( - + COUNT ( * ) AS INTEGER ) THEN NULL WHEN 19 - 8 THEN + 84 * 3 END * 6 END + - CASE - COUNT ( * ) WHEN + 38 / - ( + 2 ) THEN - 45 WHEN - 90 + 99 THEN + CAST ( CASE - 73 WHEN CASE 20 WHEN 36 THEN NULL WHEN COUNT ( * ) + - 96 THEN - 55 ELSE + 29 END * + 41 THEN NULL ELSE 26 END AS INTEGER ) END col0
----
NULL

query I rowsort
SELECT 56 * + 14
----
784

query II rowsort
SELECT 63 + - + 4 AS col0, 70 * 93
----
59
6510

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT 46 - - 54 * ( + - 81 ) + - 81 - + 94 DIV - 58 + + - COALESCE ( 66, + 83 ) + 79 * 52
----
-366

skipif mysql # not compatible
query I rowsort label-6626
SELECT 46 - - 54 * ( + - 81 ) + - 81 - + 94 / - 58 + + - COALESCE ( 66, + 83 ) + 79 * 52
----
-366

query I rowsort
SELECT 82 * - 84
----
-6888

onlyif mysql # DIV for integer division: 
query II rowsort label-6628
SELECT DISTINCT + 11 DIV - 88, + NULLIF ( - 47, + 38 ) AS col1
----
0
-47

skipif mysql # not compatible
query II rowsort label-6628
SELECT DISTINCT + 11 / - 88, + NULLIF ( - 47, + 38 ) AS col1
----
0
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6629
SELECT 72 * - COUNT( * ) DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6629
SELECT 72 * - COUNT ( * ) / - 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT ALL MIN( DISTINCT 44 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL MIN ( DISTINCT 44 ) AS col2
----
44

query I rowsort
SELECT DISTINCT + 93 - + 29 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT MAX( 27 ) * - 43 - + - MAX( ALL 25 )
----
-1136

skipif mysql # not compatible
query I rowsort label-6632
SELECT MAX ( 27 ) * - 43 - + - MAX ( ALL 25 )
----
-1136

query I rowsort
SELECT ALL - ( + 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT 71 * + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6634
SELECT 71 * + COUNT ( * ) AS col0
----
71

query I rowsort
SELECT DISTINCT - ( - 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL - COALESCE ( - 92, + NULLIF ( 8, - + COUNT( * ) ) )
----
92

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - COALESCE ( - 92, + NULLIF ( 8, - + COUNT ( * ) ) )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT DISTINCT - 21 + + 19 + - 49 DIV + 64
----
-2

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - 21 + + 19 + - 49 / + 64
----
-2

query I rowsort
SELECT 47 * + - 11 + - - 55 col2
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL COUNT( * ) + + + 38 + - - ( + 32 )
----
71

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL COUNT ( * ) + + + 38 + - - ( + 32 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT MIN( 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6640
SELECT MIN ( 3 ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT + CAST( + + 82 AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6641
SELECT + CAST ( + + 82 AS INTEGER ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6642
SELECT DISTINCT 5 + - 71, - 86 + - COUNT( * ) + - COUNT( * ) * - 89 AS col2
----
-66
2

skipif mysql # not compatible
query II rowsort label-6642
SELECT DISTINCT 5 + - 71, - 86 + - COUNT ( * ) + - COUNT ( * ) * - 89 AS col2
----
-66
2

query I rowsort
SELECT ALL + 4 + + 72
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT COUNT( * ) + - 36 + + 10 + - + 55 * + 58 AS col2
----
-3215

skipif mysql # not compatible
query I rowsort label-6644
SELECT COUNT ( * ) + - 36 + + 10 + - + 55 * + 58 AS col2
----
-3215

query I rowsort
SELECT DISTINCT - COALESCE ( 14, + 22 ) AS col1
----
-14

query I rowsort
SELECT DISTINCT - 98 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT - 70 * + - 32 + + 24 + COUNT( * ) AS col2
----
2265

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 70 * + - 32 + + 24 + COUNT ( * ) AS col2
----
2265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6648
SELECT ALL + CAST( 24 AS SIGNED ) + + + 12
----
36

skipif mysql # not compatible
query I rowsort label-6648
SELECT ALL + CAST ( 24 AS INTEGER ) + + + 12
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT DISTINCT + 11 + 62 + + ( - + 48 ) DIV + ( - 25 ) - - 89 + 42
----
205

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT + 11 + 62 + + ( - + 48 ) / + ( - 25 ) - - 89 + 42
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6650
SELECT 18 - 29 + - MAX( NULLIF ( + + 1, + 91 * - ( 32 ) ) ) + + + COALESCE ( 44, - 74 * COALESCE ( 14, 10 DIV + 1 + + 95 ) ) * MAX( 31 ) AS col1
----
1352

skipif mysql # not compatible
query I rowsort label-6650
SELECT 18 - 29 + - MAX ( NULLIF ( + + 1, + 91 * - ( 32 ) ) ) + + + COALESCE ( 44, - 74 * COALESCE ( 14, 10 / + 1 + + 95 ) ) * MAX ( 31 ) AS col1
----
1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6651
SELECT - + COALESCE ( + COALESCE ( 51, + - 48, + CASE COUNT( * ) WHEN - 38 * - COUNT( ALL + - CAST( NULL AS SIGNED ) ) + ( - COUNT( * ) ) THEN NULL WHEN 82 THEN - COUNT( * ) DIV + 70 END, 73 + - 84 DIV 91 ), COUNT( * ) * + 37 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-6651
SELECT - + COALESCE ( + COALESCE ( 51, + - 48, + CASE COUNT ( * ) WHEN - 38 * - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) + ( - COUNT ( * ) ) THEN NULL WHEN 82 THEN - COUNT ( * ) / + 70 END, 73 + - 84 / 91 ), COUNT ( * ) * + 37 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + + COUNT( * ) + 16 * 87 AS col0
----
1393

skipif mysql # not compatible
query I rowsort label-6652
SELECT + + COUNT ( * ) + 16 * 87 AS col0
----
1393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL 4 - 63 col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL 98 * - - NULLIF ( - COUNT( * ), 83 * + NULLIF ( + - 71, + + 16 ) * + 81 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 98 * - - NULLIF ( - COUNT ( * ), 83 * + NULLIF ( + - 71, + + 16 ) * + 81 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT + NULLIF ( + COUNT( * ), NULLIF ( 55, + + MAX( DISTINCT + 42 ) ) ) * 59 - - COUNT( * ) + - + 3 + 4 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6656
SELECT + NULLIF ( + COUNT ( * ), NULLIF ( 55, + + MAX ( DISTINCT + 42 ) ) ) * 59 - - COUNT ( * ) + - + 3 + 4 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6657
SELECT ALL CAST( NULL AS SIGNED ) / ( - + 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL CAST ( NULL AS INTEGER ) / ( - + 56 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL MIN( - - 22 ) - - - ( + 5 )
----
17

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL MIN ( - - 22 ) - - - ( + 5 )
----
17

query II rowsort
SELECT 84, + 53 col1
----
84
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6660
SELECT ALL COUNT( * ), + 67 AS col1
----
1
67

skipif mysql # not compatible
query II rowsort label-6660
SELECT ALL COUNT ( * ), + 67 AS col1
----
1
67

query I rowsort
SELECT DISTINCT 3 * 42 col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT - COALESCE ( + 32, + COUNT( * ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6662
SELECT - COALESCE ( + 32, + COUNT ( * ) )
----
-32

query I rowsort
SELECT ALL 38 * 77
----
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT + COUNT( * ) + - COUNT( * ) - + 13 * + - 81 * - 41 AS col2
----
-43173

skipif mysql # not compatible
query I rowsort label-6664
SELECT + COUNT ( * ) + - COUNT ( * ) - + 13 * + - 81 * - 41 AS col2
----
-43173

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT - COALESCE ( + 28, + 34 * - + 45 + - COUNT( ALL - 65 ) - + + 72 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-6665
SELECT - COALESCE ( + 28, + 34 * - + 45 + - COUNT ( ALL - 65 ) - + + 72 ) col0
----
-28

query I rowsort
SELECT + 37 + + NULLIF ( + 98, + - 34 ) AS col1
----
135

query I rowsort
SELECT - 2 * ( - 37 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6668
SELECT + NULLIF ( + + CASE CAST( - 79 AS SIGNED ) WHEN - CASE - + 10 WHEN NULLIF ( - - CAST( + 89 AS SIGNED ), - COUNT( 66 ) * 15 ) THEN NULL WHEN + 82 THEN NULL WHEN 43 / + CASE 37 * MIN( - 79 ) WHEN + 41 * 1 THEN COUNT( * ) + 19 / + COUNT( ALL + 11 * + 36 ) END THEN NULL ELSE COUNT( * ) + + 17 END THEN - 69 / 29 END, - 84 * - COALESCE ( - 51, + 94 ) ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT + NULLIF ( + + CASE CAST ( - 79 AS INTEGER ) WHEN - CASE - + 10 WHEN NULLIF ( - - CAST ( + 89 AS INTEGER ), - COUNT ( 66 ) * 15 ) THEN NULL WHEN + 82 THEN NULL WHEN 43 / + CASE 37 * MIN ( - 79 ) WHEN + 41 * 1 THEN COUNT ( * ) + 19 / + COUNT ( ALL + 11 * + 36 ) END THEN NULL ELSE COUNT ( * ) + + 17 END THEN - 69 / 29 END, - 84 * - COALESCE ( - 51, + 94 ) ) + 0
----
NULL

query I rowsort
SELECT - 19 - ( 99 ) * - + ( 85 ) + 80 AS col1
----
8476

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT DISTINCT MIN( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT MIN ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT - + SUM( ALL - - 69 ) + - SUM( + 70 )
----
-139

skipif mysql # not compatible
query I rowsort label-6671
SELECT - + SUM ( ALL - - 69 ) + - SUM ( + 70 )
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT ALL + COUNT( * ) * - 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL + COUNT ( * ) * - 23 AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6673
SELECT + + COUNT( * ) DIV + 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-6673
SELECT + + COUNT ( * ) / + 52 col1
----
0

query I rowsort
SELECT - - 39 + 49 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL - - 98 * + ( + 52 ) + 98 * - ( 7 ) * + COUNT( * ) + + 6
----
4416

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - - 98 * + ( + 52 ) + 98 * - ( 7 ) * + COUNT ( * ) + + 6
----
4416

query I rowsort
SELECT - 22 * 56 * + + 8 + - + 48 AS col2
----
-9904

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL - 1 * + - MIN( - + 15 ) - 13 + + 47 + - 88 - + 61 AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL - 1 * + - MIN ( - + 15 ) - 13 + + 47 + - 88 - + 61 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL + COUNT( DISTINCT 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + COUNT ( DISTINCT 67 ) AS col0
----
1

query I rowsort
SELECT ALL + - 34 * + 55
----
-1870

onlyif mysql # aggregate syntax: 
query II rowsort label-6680
SELECT - COUNT( * ) AS col1, - ( - 64 )
----
-1
64

skipif mysql # not compatible
query II rowsort label-6680
SELECT - COUNT ( * ) AS col1, - ( - 64 )
----
-1
64

query I rowsort
SELECT DISTINCT ( + + 25 )
----
25

query I rowsort
SELECT ALL + ( - - 38 ) * + 78 AS col2
----
2964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6683
SELECT DISTINCT ( CASE - - COUNT( * ) WHEN - - 94 THEN + SUM( DISTINCT + 94 ) WHEN + 65 THEN NULL ELSE - 84 * 30 DIV 56 END ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT ( CASE - - COUNT ( * ) WHEN - - 94 THEN + SUM ( DISTINCT + 94 ) WHEN + 65 THEN NULL ELSE - 84 * 30 / 56 END ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6684
SELECT DISTINCT CAST( - + ( + CAST( - + COALESCE ( + + 93, - 38 ) AS SIGNED ) ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT CAST ( - + ( + CAST ( - + COALESCE ( + + 93, - 38 ) AS INTEGER ) ) AS INTEGER )
----
93

query I rowsort
SELECT - ( 14 ) col1
----
-14

query I rowsort
SELECT + 50 + - - 70 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT + NULLIF ( 89, + + 60 + - 68 + 46 + - - 34 DIV + + 41 ) + - 44 DIV - 93 * - - 43 * 2
----
89

skipif mysql # not compatible
query I rowsort label-6687
SELECT + NULLIF ( 89, + + 60 + - 68 + 46 + - - 34 / + + 41 ) + - 44 / - 93 * - - 43 * 2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT - CASE - COUNT( * ) WHEN + 70 + - 85 + + 21 THEN + - 79 * + + 6 * - 89 WHEN - 97 + - 76 * 11 THEN - NULLIF ( 84, 85 ) * + 44 - NULLIF ( NULLIF ( + 74, 18 ), 83 ) / 2 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT - CASE - COUNT ( * ) WHEN + 70 + - 85 + + 21 THEN + - 79 * + + 6 * - 89 WHEN - 97 + - 76 * 11 THEN - NULLIF ( 84, 85 ) * + 44 - NULLIF ( NULLIF ( + 74, 18 ), 83 ) / 2 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6689
SELECT 56, + COALESCE ( - COUNT( DISTINCT - 38 ), - - 6 ) AS col1
----
56
-1

skipif mysql # not compatible
query II rowsort label-6689
SELECT 56, + COALESCE ( - COUNT ( DISTINCT - 38 ), - - 6 ) AS col1
----
56
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6690
SELECT + 2 / - - ( - + 67 ) * + CAST( NULL AS DECIMAL ) * - - 61 * + 75 * 12 + - + CASE + 38 WHEN - + 82 THEN - 71 + 99 / SUM( + ( + 95 ) ) WHEN MIN( ( 2 ) ) THEN NULL ELSE NULL END + + MIN( 69 ) * + 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT + 2 / - - ( - + 67 ) * + CAST ( NULL AS REAL ) * - - 61 * + 75 * 12 + - + CASE + 38 WHEN - + 82 THEN - 71 + 99 / SUM ( + ( + 95 ) ) WHEN MIN ( ( 2 ) ) THEN NULL ELSE NULL END + + MIN ( 69 ) * + 77 col2
----
NULL

query I rowsort
SELECT + 14 * - 58
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT + 20 + NULLIF ( MIN( ALL + COALESCE ( - 17, + 92 ) ), + + 48 * + - ( 18 ) + + - 30 ) * - - 37 AS col2
----
-609

skipif mysql # not compatible
query I rowsort label-6692
SELECT + 20 + NULLIF ( MIN ( ALL + COALESCE ( - 17, + 92 ) ), + + 48 * + - ( 18 ) + + - 30 ) * - - 37 AS col2
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL SUM( + + 31 ) * 8 AS col1
----
248

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL SUM ( + + 31 ) * 8 AS col1
----
248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6694
SELECT + ( - 78 ) * - + 27 - - CAST( NULL AS SIGNED ), + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6694
SELECT + ( - 78 ) * - + 27 - - CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT ALL 96 + 50
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT ALL 55 + + - COUNT( + + 14 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL 55 + + - COUNT ( + + 14 ) AS col1
----
54

query I rowsort
SELECT - ( + + 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT + 84 * - ( + ( 33 ) ) * + + COUNT( * ) AS col1
----
-2772

skipif mysql # not compatible
query I rowsort label-6698
SELECT + 84 * - ( + ( 33 ) ) * + + COUNT ( * ) AS col1
----
-2772

query I rowsort
SELECT DISTINCT 90 * - 36
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL COUNT( * ) * + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL COUNT ( * ) * + - 21
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6701
SELECT + 10 AS col2, CAST( NULL AS DECIMAL ) + 45 AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-6701
SELECT + 10 AS col2, CAST ( NULL AS REAL ) + 45 AS col0
----
10
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT ALL - - 19 DIV - 64 - - MAX( ALL - 43 ) + - ( + 81 ) AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL - - 19 / - 64 - - MAX ( ALL - 43 ) + - ( + 81 ) AS col2
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-6703
SELECT - 60, COUNT( * ) AS col1
----
-60
1

skipif mysql # not compatible
query II rowsort label-6703
SELECT - 60, COUNT ( * ) AS col1
----
-60
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6704
SELECT + 71 AS col2, 46 * + 98 + + - ( + 74 ) + COUNT( * ) + - 72 AS col2, - CAST( - - MIN( + 79 ) AS SIGNED ) + - COUNT( * ) AS col1
----
71
4363
-80

skipif mysql # not compatible
query III rowsort label-6704
SELECT + 71 AS col2, 46 * + 98 + + - ( + 74 ) + COUNT ( * ) + - 72 AS col2, - CAST ( - - MIN ( + 79 ) AS INTEGER ) + - COUNT ( * ) AS col1
----
71
4363
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT - 54 DIV - 54 - 8 col1
----
-7

skipif mysql # not compatible
query I rowsort label-6705
SELECT - 54 / - 54 - 8 col1
----
-7

query I rowsort
SELECT - - 52 * - 55 * - 84
----
240240

query II rowsort
SELECT DISTINCT + 28 AS col2, ( - 46 ) + - - 74
----
28
28

query IIII rowsort
SELECT 51, 94 AS col2, + 2 + - - 97 col1, + 70 * 82 AS col2
----
51
94
99
5740

onlyif mysql # DIV for integer division: 
query I rowsort label-6709
SELECT ALL 58 DIV - 22 - - + 58 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL 58 / - 22 - - + 58 AS col1
----
56

query I rowsort
SELECT ALL + + 87 * 43
----
3741

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT + + COALESCE ( + 41, - ( + SUM( ALL - 26 ) ) ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6711
SELECT + + COALESCE ( + 41, - ( + SUM ( ALL - 26 ) ) ) AS col2
----
41

query II rowsort
SELECT DISTINCT + 7 AS col1, 73 * - - 91 AS col1
----
7
6643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6713
SELECT ALL - 47 / + - CAST( NULL AS SIGNED ) * - 91 * - 86 - + 54 / - + 26 + - - COUNT( * ) + - ( 90 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL - 47 / + - CAST ( NULL AS INTEGER ) * - 91 * - 86 - + 54 / - + 26 + - - COUNT ( * ) + - ( 90 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT ALL + - CASE - COUNT( * ) WHEN + - COUNT( * ) THEN NULL ELSE - - 94 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL + - CASE - COUNT ( * ) WHEN + - COUNT ( * ) THEN NULL ELSE - - 94 * - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6715
SELECT - 50 * 78 + - + COALESCE ( MAX( DISTINCT + 42 ), - 15 ), - 11 AS col0
----
-3942
-11

skipif mysql # not compatible
query II rowsort label-6715
SELECT - 50 * 78 + - + COALESCE ( MAX ( DISTINCT + 42 ), - 15 ), - 11 AS col0
----
-3942
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6716
SELECT - + CAST( NULL AS DECIMAL ) * - - 87 * + 42 + + - 22 - 3 * - 96 * + - COUNT( * ), MAX( DISTINCT + 61 ) + + - 17 DIV + ( 85 ) + 29 col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6716
SELECT - + CAST ( NULL AS REAL ) * - - 87 * + 42 + + - 22 - 3 * - 96 * + - COUNT ( * ), MAX ( DISTINCT + 61 ) + + - 17 / + ( 85 ) + 29 col2
----
NULL
90

query II rowsort
SELECT + 1 AS col2, + 91 col1
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT - 68 + 50 - 99 * - COUNT( DISTINCT - - 79 ) * - - 93 * - 30 * 77 - + - COUNT( * )
----
-21268187

skipif mysql # not compatible
query I rowsort label-6718
SELECT - 68 + 50 - 99 * - COUNT ( DISTINCT - - 79 ) * - - 93 * - 30 * 77 - + - COUNT ( * )
----
-21268187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6719
SELECT - ( + COUNT( * ) ) * + + CAST( CAST( + MIN( 92 ) AS SIGNED ) AS SIGNED ) + 10 + 89 col0
----
7

skipif mysql # not compatible
query I rowsort label-6719
SELECT - ( + COUNT ( * ) ) * + + CAST ( CAST ( + MIN ( 92 ) AS INTEGER ) AS INTEGER ) + 10 + 89 col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6720
SELECT MIN( DISTINCT + 43 ) DIV CAST( 40 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6720
SELECT MIN ( DISTINCT + 43 ) / CAST ( 40 AS INTEGER ) AS col1
----
1

query II rowsort
SELECT + 79 AS col0, + 35 AS col0
----
79
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT + 91 + - 59 + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-6722
SELECT + 91 + - 59 + + COUNT ( * )
----
33

query II rowsort
SELECT ALL - 0 * + 49, + 48 AS col1
----
0
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6724
SELECT ALL - 51 / CAST( NULL AS SIGNED ) AS col2, 47 AS col1, - - 95 AS col1
----
NULL
47
95

skipif mysql # not compatible
query III rowsort label-6724
SELECT ALL - 51 / CAST ( NULL AS INTEGER ) AS col2, 47 AS col1, - - 95 AS col1
----
NULL
47
95

query I rowsort
SELECT 56 + + COALESCE ( 41, 31 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT DISTINCT - CASE COUNT( * ) WHEN ( + 12 ) THEN - 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT - CASE COUNT ( * ) WHEN ( + 12 ) THEN - 27 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT 81 + 77 + - - COUNT( * ) AS col2
----
159

skipif mysql # not compatible
query I rowsort label-6727
SELECT 81 + 77 + - - COUNT ( * ) AS col2
----
159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6728
SELECT 97 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT 97 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT DISTINCT - 61 * - - 65 * - ( + 89 ) / 91 * + CAST( NULL AS SIGNED ) + + + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT - 61 * - - 65 * - ( + 89 ) / 91 * + CAST ( NULL AS INTEGER ) + + + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL + 7 + + 20 + + 81 + - 79 * + 83 + - SUM( DISTINCT - - 74 ) + - + 59 AS col0
----
-6582

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + 7 + + 20 + + 81 + - 79 * + 83 + - SUM ( DISTINCT - - 74 ) + - + 59 AS col0
----
-6582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT DISTINCT + 34 + + COALESCE ( + + 45, + ( - - CAST( NULL AS SIGNED ) ), - - 94 ) - + 2 * - + COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT + 34 + + COALESCE ( + + 45, + ( - - CAST ( NULL AS INTEGER ) ), - - 94 ) - + 2 * - + COUNT ( * ) AS col2
----
81

query I rowsort
SELECT ALL - 80 * + - 36 col2
----
2880

query I rowsort
SELECT 87 * - 82
----
-7134

query I rowsort
SELECT DISTINCT - 62 * - 31
----
1922

query I rowsort
SELECT ALL + 7 + - 15
----
-8

query I rowsort
SELECT ALL 37 + + - 68 + - 66
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6737
SELECT DISTINCT + 90 + - 81 AS col0, 65 DIV 89 * + ( - COUNT( * ) )
----
9
0

skipif mysql # not compatible
query II rowsort label-6737
SELECT DISTINCT + 90 + - 81 AS col0, 65 / 89 * + ( - COUNT ( * ) )
----
9
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6738
SELECT ALL COALESCE ( - 93, - COUNT( * ) + + 29 + - COUNT( * ) ) + + - COUNT( * ) + 75 * - 76 - - - 25 - 51 + NULLIF ( CASE + 6 WHEN 46 + COUNT( * ) THEN + 5 + 35 WHEN 45 THEN ( - 7 ) - COUNT( * ) ELSE 47 / + 62 - CAST( NULL AS SIGNED ) * + 75 END, + 1 / 33 + - COUNT( * ) ) + AVG ( ALL - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL COALESCE ( - 93, - COUNT ( * ) + + 29 + - COUNT ( * ) ) + + - COUNT ( * ) + 75 * - 76 - - - 25 - 51 + NULLIF ( CASE + 6 WHEN 46 + COUNT ( * ) THEN + 5 + 35 WHEN 45 THEN ( - 7 ) - COUNT ( * ) ELSE 47 / + 62 - CAST ( NULL AS INTEGER ) * + 75 END, + 1 / 33 + - COUNT ( * ) ) + AVG ( ALL - 15 )
----
NULL

query I rowsort
SELECT + 32 + + 89
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6740
SELECT DISTINCT + ( + - 44 ) * 71 * - 73 + + CAST( - + ( - ( + + 62 ) ) AS SIGNED ) + - 8 + - - 96 DIV + + COALESCE ( COUNT( * ), 86, 2 ) AS col0
----
228202

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT + ( + - 44 ) * 71 * - 73 + + CAST ( - + ( - ( + + 62 ) ) AS INTEGER ) + - 8 + - - 96 / + + COALESCE ( COUNT ( * ), 86, 2 ) AS col0
----
228202

query II rowsort
SELECT ALL - ( 87 ) AS col1, - 78
----
-87
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT 55 + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-6742
SELECT 55 + COUNT ( * ) AS col0
----
56

query I rowsort
SELECT ALL + 6 - - 96
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT COUNT( * ) + - 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6744
SELECT COUNT ( * ) + - 64 AS col2
----
-63

query I rowsort
SELECT ALL ( 59 ) - + - 67 AS col1
----
126

query I rowsort
SELECT - 82 + + 92
----
10

query I rowsort
SELECT ALL 56 * + + 15 * + 64 * 7 AS col2
----
376320

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT DISTINCT + COUNT( * ) * - 50 + 37 * - COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT + COUNT ( * ) * - 50 + 37 * - COUNT ( * ) AS col1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT 96 DIV - 92 + - 24 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6749
SELECT 96 / - 92 + - 24 AS col0
----
-25

query I rowsort
SELECT NULLIF ( - 19, + 48 ) * 83 AS col2
----
-1577

onlyif mysql # aggregate syntax: 
query II rowsort label-6751
SELECT ALL - ( - COUNT( * ) ) AS col0, 49 * - 2
----
1
-98

skipif mysql # not compatible
query II rowsort label-6751
SELECT ALL - ( - COUNT ( * ) ) AS col0, 49 * - 2
----
1
-98

query I rowsort
SELECT DISTINCT - + 49 col0
----
-49

query I rowsort
SELECT + ( + + ( + - 49 ) )
----
-49

query II rowsort
SELECT ALL - 98 AS col1, - ( - 37 ) AS col2
----
-98
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT ALL 45 + + - 94 + + 7 + + COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL 45 + + - 94 + + 7 + + COUNT ( * ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL - COUNT( * ) * - - 28 col0
----
-28

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - COUNT ( * ) * - - 28 col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT DISTINCT 80 + - 30 * - 96 + - 98 * + + COUNT( * )
----
2862

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT 80 + - 30 * - 96 + - 98 * + + COUNT ( * )
----
2862

query II rowsort
SELECT + 90 AS col2, + ( - - 68 ) AS col0
----
90
68

query I rowsort
SELECT ALL - 47 + 33 AS col1
----
-14

query I rowsort
SELECT DISTINCT - COALESCE ( - - 43, + - ( + 42 ) + - 45 + - + 85 )
----
-43

query I rowsort
SELECT 78 + + 16 AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6762
SELECT DISTINCT 20 + - 58 + - COALESCE ( + 35, + 4 * 17 * - NULLIF ( + + 36, 86 - - COUNT( * ) ) + + + 75 - + + 42 ) + + + COUNT( * ) DIV - 27
----
-73

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT 20 + - 58 + - COALESCE ( + 35, + 4 * 17 * - NULLIF ( + + 36, 86 - - COUNT ( * ) ) + + + 75 - + + 42 ) + + + COUNT ( * ) / - 27
----
-73

query II rowsort
SELECT 16, + 86 AS col1
----
16
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6764
SELECT ALL 11, - CAST( 37 AS SIGNED ) + - + NULLIF ( - 28, + - 78 * + 18 * - + 63 - + 99 ) AS col0
----
11
-9

skipif mysql # not compatible
query II rowsort label-6764
SELECT ALL 11, - CAST ( 37 AS INTEGER ) + - + NULLIF ( - 28, + - 78 * + 18 * - + 63 - + 99 ) AS col0
----
11
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6765
SELECT DISTINCT + COUNT( * ) + + 90 DIV 3 - + 35 - - 24 DIV - + ( + ( ( + COALESCE ( - 56, - COUNT( * ) * + MAX( ALL + + CAST( + 37 AS SIGNED ) ) + 13 + 1, - CASE MIN( 15 ) WHEN - ( 20 ) THEN NULL ELSE 33 * + 70 + 22 END * + ( - 10 ) + - 0, COUNT( * ) ) ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT + COUNT ( * ) + + 90 / 3 - + 35 - - 24 / - + ( + ( ( + COALESCE ( - 56, - COUNT ( * ) * + MAX ( ALL + + CAST ( + 37 AS INTEGER ) ) + 13 + 1, - CASE MIN ( 15 ) WHEN - ( 20 ) THEN NULL ELSE 33 * + 70 + 22 END * + ( - 10 ) + - 0, COUNT ( * ) ) ) ) )
----
-4

query I rowsort
SELECT 22 + - + 99 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6767
SELECT 11 AS col1, + 7 * + COALESCE ( CAST( NULL AS SIGNED ), - 34, - 40, 31 * + 29 DIV - 4 * + - NULLIF ( + 16, - MAX( DISTINCT 25 ) * 80 ) )
----
11
-238

skipif mysql # not compatible
query II rowsort label-6767
SELECT 11 AS col1, + 7 * + COALESCE ( CAST ( NULL AS INTEGER ), - 34, - 40, 31 * + 29 / - 4 * + - NULLIF ( + 16, - MAX ( DISTINCT 25 ) * 80 ) )
----
11
-238

query I rowsort
SELECT + 21 * - 52 + - + 82 AS col0
----
-1174

onlyif mysql # aggregate syntax: 
query II rowsort label-6769
SELECT ALL - COALESCE ( + 62, - 9, + - 46 ) * 80 - + + 81, - COUNT( * ) col0
----
-5041
-1

skipif mysql # not compatible
query II rowsort label-6769
SELECT ALL - COALESCE ( + 62, - 9, + - 46 ) * 80 - + + 81, - COUNT ( * ) col0
----
-5041
-1

query II rowsort
SELECT 6 AS col1, + 49 AS col0
----
6
49

query I rowsort
SELECT ALL - + 78 - - 57
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL + CAST( 66 AS SIGNED ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + CAST ( 66 AS INTEGER ) AS col0
----
66

query I rowsort
SELECT DISTINCT - 18 * - - 47
----
-846

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6774
SELECT ALL 83 - - CASE + 19 WHEN + + 52 THEN NULL WHEN - 47 THEN 25 * - CAST( NULL AS DECIMAL ) END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL 83 - - CASE + 19 WHEN + + 52 THEN NULL WHEN - 47 THEN 25 * - CAST ( NULL AS REAL ) END * 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT DISTINCT MIN( + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT MIN ( + 81 ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6776
SELECT ALL - + 3 * - + 69 + - 11 DIV + + 43 AS col2
----
207

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - + 3 * - + 69 + - 11 / + + 43 AS col2
----
207

query II rowsort
SELECT 24, - 16 AS col1
----
24
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT MIN( DISTINCT 34 )
----
34

skipif mysql # not compatible
query I rowsort label-6778
SELECT MIN ( DISTINCT 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL MIN( ALL 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL MIN ( ALL 96 ) AS col0
----
96

query I rowsort
SELECT - + 30 * 22 AS col0
----
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT - 94 DIV - + 84 - + COUNT( * ) + - + 65 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-6781
SELECT - 94 / - + 84 - + COUNT ( * ) + - + 65 AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT DISTINCT 72 / 99 * - CAST( NULL AS SIGNED ) * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT 72 / 99 * - CAST ( NULL AS INTEGER ) * + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT - + COUNT( * ) - 45 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6783
SELECT - + COUNT ( * ) - 45 AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6784
SELECT + + 75 DIV 5
----
15

skipif mysql # not compatible
query I rowsort label-6784
SELECT + + 75 / 5
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT ALL - ( - 99 ) * - CAST( + COUNT( * ) AS SIGNED ) - CAST( - 71 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL - ( - 99 ) * - CAST ( + COUNT ( * ) AS INTEGER ) - CAST ( - 71 AS INTEGER )
----
-28

query I rowsort
SELECT - 59 * - ( + 26 ) AS col0
----
1534

onlyif mysql # DIV for integer division: 
query II rowsort label-6787
SELECT ALL + 59 DIV 13 - + 41 AS col0, ( - + 70 ) * + 73 * 18
----
-37
-91980

skipif mysql # not compatible
query II rowsort label-6787
SELECT ALL + 59 / 13 - + 41 AS col0, ( - + 70 ) * + 73 * 18
----
-37
-91980

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT DISTINCT + + 86 DIV 19 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT + + 86 / 19 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL COALESCE ( + 44, - + 60 ) * ( - COUNT( * ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL COALESCE ( + 44, - + 60 ) * ( - COUNT ( * ) ) AS col2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6790
SELECT + 87 DIV 17
----
5

skipif mysql # not compatible
query I rowsort label-6790
SELECT + 87 / 17
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL + 66 * 78 + + + 24 * - + COUNT( * ) AS col0
----
5124

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL + 66 * 78 + + + 24 * - + COUNT ( * ) AS col0
----
5124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6792
SELECT DISTINCT + COUNT( * ) * - 98 * - 63 + - 0 AS col2, - COUNT( * ) * + COALESCE ( 67, 45, - 92 + 29 + - 20 + - ( 29 ) DIV COUNT( * ) DIV ( + 64 ) * 39 )
----
6174
-67

skipif mysql # not compatible
query II rowsort label-6792
SELECT DISTINCT + COUNT ( * ) * - 98 * - 63 + - 0 AS col2, - COUNT ( * ) * + COALESCE ( 67, 45, - 92 + 29 + - 20 + - ( 29 ) / COUNT ( * ) / ( + 64 ) * 39 )
----
6174
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT DISTINCT COUNT( * ) * - 27 + + 63 + - 90 * + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT COUNT ( * ) * - 27 + + 63 + - 90 * + COUNT ( * )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6794
SELECT + 33 - + - CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6794
SELECT + 33 - + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
32

query I rowsort
SELECT ALL 39 * + ( + + 82 )
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT NULLIF ( - - 99, - COUNT( + - 63 ) )
----
99

skipif mysql # not compatible
query I rowsort label-6796
SELECT NULLIF ( - - 99, - COUNT ( + - 63 ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT COUNT( ALL - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-6797
SELECT COUNT ( ALL - 27 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT + SUM( 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-6798
SELECT + SUM ( 59 ) col0
----
59

query I rowsort
SELECT DISTINCT 16 * - 37 + + 25
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL 16 * + 42 + COALESCE ( - - COUNT( * ), + 66 + - - 49, - + 69 + - 80 )
----
673

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL 16 * + 42 + COALESCE ( - - COUNT ( * ), + 66 + - - 49, - + 69 + - 80 )
----
673

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT COUNT( DISTINCT - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-6801
SELECT COUNT ( DISTINCT - 83 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6802
SELECT + NULLIF ( + 26, + 11 ) * + - CASE + ( 30 ) WHEN CAST( - 12 AS SIGNED ) - CASE + + CAST( NULL AS SIGNED ) WHEN + + CAST( NULL AS SIGNED ) * + AVG ( 88 ) * - MAX( ALL - 92 ) + COUNT( * ) THEN ( + 70 ) * 99 ELSE NULL END THEN 96 * ( - 6 ) + 64 END * COUNT( * ) + - CASE + CAST( NULL AS SIGNED ) WHEN 50 THEN - MIN( DISTINCT - 19 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT + NULLIF ( + 26, + 11 ) * + - CASE + ( 30 ) WHEN CAST ( - 12 AS INTEGER ) - CASE + + CAST ( NULL AS INTEGER ) WHEN + + CAST ( NULL AS INTEGER ) * + AVG ( 88 ) * - MAX ( ALL - 92 ) + COUNT ( * ) THEN ( + 70 ) * 99 ELSE NULL END THEN 96 * ( - 6 ) + 64 END * COUNT ( * ) + - CASE + CAST ( NULL AS INTEGER ) WHEN 50 THEN - MIN ( DISTINCT - 19 ) END
----
NULL

query I rowsort
SELECT DISTINCT 90 + + + 39 * 44 AS col1
----
1806

query I rowsort
SELECT - 20 + + 1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6805
SELECT SUM( ALL 80 ) AS col0, + 16
----
80
16

skipif mysql # not compatible
query II rowsort label-6805
SELECT SUM ( ALL 80 ) AS col0, + 16
----
80
16

query I rowsort
SELECT + 25 + - + NULLIF ( - 97, 58 + + 70 )
----
122

query I rowsort
SELECT + 84 * + + 78
----
6552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT - ( CASE + + 15 WHEN - - 81 + - 21 THEN + 46 + - - 3 * - 78 WHEN - CAST( ( - COALESCE ( + 97, + COUNT( * ) ) ) AS SIGNED ) THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT - ( CASE + + 15 WHEN - - 81 + - 21 THEN + 46 + - - 3 * - 78 WHEN - CAST ( ( - COALESCE ( + 97, + COUNT ( * ) ) ) AS INTEGER ) THEN NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT ALL + CAST( - + 96 AS SIGNED ) * - COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL + CAST ( - + 96 AS INTEGER ) * - COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6810
SELECT ALL + COUNT( * ) DIV + 21 * + COUNT( * ) - + + 59 + + - 36 * + 14 + SUM( ALL - ( + 0 ) ) * - 94 AS col2
----
-563

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + COUNT ( * ) / + 21 * + COUNT ( * ) - + + 59 + + - 36 * + 14 + SUM ( ALL - ( + 0 ) ) * - 94 AS col2
----
-563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT - 41 * NULLIF ( + COUNT( * ), - 7 - MIN( ALL + 94 ) - - 95 ) - - COUNT( * ) + - ( - + CASE NULLIF ( - 14, + CAST( NULL AS SIGNED ) + + 30 ) WHEN + 4 * 21 THEN + CAST( 87 AS SIGNED ) + 21 ELSE NULL END ) / COALESCE ( - 5 * + 71, 79 + - 60 * + 61 ) * - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT - 41 * NULLIF ( + COUNT ( * ), - 7 - MIN ( ALL + 94 ) - - 95 ) - - COUNT ( * ) + - ( - + CASE NULLIF ( - 14, + CAST ( NULL AS INTEGER ) + + 30 ) WHEN + 4 * 21 THEN + CAST ( 87 AS INTEGER ) + 21 ELSE NULL END ) / COALESCE ( - 5 * + 71, 79 + - 60 * + 61 ) * - 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6812
SELECT - - 3 - - 91 col1, 45 + - - COUNT( * )
----
94
46

skipif mysql # not compatible
query II rowsort label-6812
SELECT - - 3 - - 91 col1, 45 + - - COUNT ( * )
----
94
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6813
SELECT - + COUNT( * ) - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT - + COUNT ( * ) - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT ALL + 65 DIV - 17 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL + 65 / - 17 AS col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6815
SELECT - ( COUNT( * ) ) + NULLIF ( + 25, - ( - - 75 ) + - - 14 ) + MAX( + 85 ) * - - CAST( NULL AS SIGNED ) + + 79 + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT - ( COUNT ( * ) ) + NULLIF ( + 25, - ( - - 75 ) + - - 14 ) + MAX ( + 85 ) * - - CAST ( NULL AS INTEGER ) + + 79 + - 35
----
NULL

query I rowsort
SELECT - + 85 * + 53 * 75
----
-337875

query I rowsort
SELECT - ( + 38 ) + 98
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6818
SELECT DISTINCT COUNT( * ) / + + COUNT( * ) + + 13 + - CASE 58 WHEN + COALESCE ( - + 5, - 93 ) THEN 85 ELSE NULL END * + - 2, CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6818
SELECT DISTINCT COUNT ( * ) / + + COUNT ( * ) + + 13 + - CASE 58 WHEN + COALESCE ( - + 5, - 93 ) THEN 85 ELSE NULL END * + - 2, CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query I rowsort
SELECT + NULLIF ( 50, - - 20 ) AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6820
SELECT ALL MAX( DISTINCT + - 84 ) DIV - 42 + - CASE + - ( + - COALESCE ( + + 54, + MAX( DISTINCT - - 58 ) ) ) WHEN 8 * - + 83 * - 22 THEN NULL WHEN 2 + CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 91 END
----
-89

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL MAX ( DISTINCT + - 84 ) / - 42 + - CASE + - ( + - COALESCE ( + + 54, + MAX ( DISTINCT - - 58 ) ) ) WHEN 8 * - + 83 * - 22 THEN NULL WHEN 2 + CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 91 END
----
-89

query I rowsort
SELECT + 10 + - 38
----
-28

query I rowsort
SELECT + COALESCE ( 0, + 66 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT + 86 + MAX( - + 58 ) * 0 + + 28 - + 28 * - - COUNT( * ) + - - ( + + 72 )
----
158

skipif mysql # not compatible
query I rowsort label-6823
SELECT + 86 + MAX ( - + 58 ) * 0 + + 28 - + 28 * - - COUNT ( * ) + - - ( + + 72 )
----
158

query I rowsort
SELECT - ( + 76 ) * - - 53
----
-4028

query I rowsort
SELECT + 3 * + 37
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6826
SELECT DISTINCT 87 * COALESCE ( + 33, - 21 * + COUNT( * ), - - COUNT( * ) ) * + CAST( NULL AS SIGNED ) + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT 87 * COALESCE ( + 33, - 21 * + COUNT ( * ), - - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + + 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6827
SELECT DISTINCT + 30 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT + 30 / 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ( SUM( DISTINCT - 91 ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-6828
SELECT ( SUM ( DISTINCT - 91 ) ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT ALL 49 * + - 23 + COUNT( * )
----
-1126

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL 49 * + - 23 + COUNT ( * )
----
-1126

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT + NULLIF ( + 56, 0 * + 29 * 18 * + 85 + - 36 + - COUNT( + + 84 ) )
----
56

skipif mysql # not compatible
query I rowsort label-6830
SELECT + NULLIF ( + 56, 0 * + 29 * 18 * + 85 + - 36 + - COUNT ( + + 84 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT DISTINCT 24 * - COALESCE ( + COUNT( * ), + - COUNT( * ) ) - + 92 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT 24 * - COALESCE ( + COUNT ( * ), + - COUNT ( * ) ) - + 92 AS col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT + SUM( ALL + 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6832
SELECT + SUM ( ALL + 28 ) AS col1
----
28

query I rowsort
SELECT NULLIF ( - 33, - + 58 ) AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6834
SELECT + 20 DIV - MAX( 88 )
----
0

skipif mysql # not compatible
query I rowsort label-6834
SELECT + 20 / - MAX ( 88 )
----
0

query I rowsort
SELECT - 32 * - 22 AS col1
----
704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6836
SELECT + CAST( 58 AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6836
SELECT + CAST ( 58 AS INTEGER ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL COUNT( DISTINCT + COALESCE ( + + 58, - 56 * + 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL COUNT ( DISTINCT + COALESCE ( + + 58, - 56 * + 97 ) )
----
1

query I rowsort
SELECT + 78 * 3
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT 99 DIV + 98 + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-6839
SELECT 99 / + 98 + - 92
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT - SUM( + + 26 ) * + 23 + + - 96 * + 68 col1
----
-7126

skipif mysql # not compatible
query I rowsort label-6840
SELECT - SUM ( + + 26 ) * + 23 + + - 96 * + 68 col1
----
-7126

onlyif mysql # aggregate syntax: 
query II rowsort label-6841
SELECT - 91, - ( + ( - MIN( DISTINCT - + 80 ) ) ) - + - 57 col1
----
-91
-23

skipif mysql # not compatible
query II rowsort label-6841
SELECT - 91, - ( + ( - MIN ( DISTINCT - + 80 ) ) ) - + - 57 col1
----
-91
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT - 62 + + + COUNT( DISTINCT + 6 ) + - + 57
----
-118

skipif mysql # not compatible
query I rowsort label-6842
SELECT - 62 + + + COUNT ( DISTINCT + 6 ) + - + 57
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT ALL COUNT( * ) + + 30
----
31

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL COUNT ( * ) + + 30
----
31

query I rowsort
SELECT DISTINCT 7 + 1
----
8

query I rowsort
SELECT DISTINCT - 20 + + 56 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6846
SELECT - CAST( NULL AS DECIMAL ) / - - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT - CAST ( NULL AS REAL ) / - - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT - 78 DIV + - 14
----
5

skipif mysql # not compatible
query I rowsort label-6847
SELECT - 78 / + - 14
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT ALL + MIN( 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL + MIN ( 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6849
SELECT DISTINCT - + COUNT( * ) DIV - COUNT( ALL - ( 97 ) ) + - 96 + + 93
----
-2

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT - + COUNT ( * ) / - COUNT ( ALL - ( 97 ) ) + - 96 + + 93
----
-2

query I rowsort
SELECT ALL + - 56 + + 45 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL - MAX( 51 ) + + 12
----
-39

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL - MAX ( 51 ) + + 12
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT + ( - + 19 ) * - 45 * + 7 / + 43 - + ( 81 ) * - CASE - - COUNT( * ) WHEN - 30 THEN NULL WHEN - 33 THEN - + 94 WHEN - + ( - - 68 ) THEN NULL END / - 60 + - - MAX( + 66 ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT + ( - + 19 ) * - 45 * + 7 / + 43 - + ( 81 ) * - CASE - - COUNT ( * ) WHEN - 30 THEN NULL WHEN - 33 THEN - + 94 WHEN - + ( - - 68 ) THEN NULL END / - 60 + - - MAX ( + 66 ) * - 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6853
SELECT ALL + COALESCE ( + 89, 45, + NULLIF ( 86, - COUNT( * ) + - - 75 * CAST( 19 AS SIGNED ) ) + - COUNT( * ) ) * - 27 AS col1, 33 + COUNT( NULLIF ( - + 93, - + 53 / 62 ) )
----
-2403
34

skipif mysql # not compatible
query II rowsort label-6853
SELECT ALL + COALESCE ( + 89, 45, + NULLIF ( 86, - COUNT ( * ) + - - 75 * CAST ( 19 AS INTEGER ) ) + - COUNT ( * ) ) * - 27 AS col1, 33 + COUNT ( NULLIF ( - + 93, - + 53 / 62 ) )
----
-2403
34

query I rowsort
SELECT DISTINCT + 43 * NULLIF ( - - 86, - - 14 )
----
3698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6855
SELECT ALL - 89 - + + 52 + 77 * + 18 col1, - CAST( NULL AS SIGNED ) - ( + COUNT( * ) ) / - 16 AS col2
----
1245
NULL

skipif mysql # not compatible
query II rowsort label-6855
SELECT ALL - 89 - + + 52 + 77 * + 18 col1, - CAST ( NULL AS INTEGER ) - ( + COUNT ( * ) ) / - 16 AS col2
----
1245
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT + 34 * COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT + 34 * COUNT ( * ) AS col1
----
34

query II rowsort
SELECT 27 AS col1, - 74 - 80
----
27
-154

query I rowsort
SELECT ALL + 89 - + 23 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT - 7 / - CASE - 79 WHEN + NULLIF ( 44, - + CASE + 34 WHEN - MIN( + 52 ) THEN - - COUNT( ALL 15 ) END ) * 97 THEN - 37 END * + - 96 * - 24 - + ( - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT - 7 / - CASE - 79 WHEN + NULLIF ( 44, - + CASE + 34 WHEN - MIN ( + 52 ) THEN - - COUNT ( ALL 15 ) END ) * 97 THEN - 37 END * + - 96 * - 24 - + ( - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6860
SELECT ALL - COUNT( * ), - 36 AS col1
----
-1
-36

skipif mysql # not compatible
query II rowsort label-6860
SELECT ALL - COUNT ( * ), - 36 AS col1
----
-1
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT 16 - - NULLIF ( - COUNT( * ), + 40 )
----
15

skipif mysql # not compatible
query I rowsort label-6861
SELECT 16 - - NULLIF ( - COUNT ( * ), + 40 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6862
SELECT 11 AS col0, CAST( NULL AS SIGNED ) + + + 9 AS col1
----
11
NULL

skipif mysql # not compatible
query II rowsort label-6862
SELECT 11 AS col0, CAST ( NULL AS INTEGER ) + + + 9 AS col1
----
11
NULL

query I rowsort
SELECT 97 * - ( - 24 ) AS col1
----
2328

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT 32 * - COUNT( * ) * - - 76 AS col0
----
-2432

skipif mysql # not compatible
query I rowsort label-6864
SELECT 32 * - COUNT ( * ) * - - 76 AS col0
----
-2432

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6865
SELECT + 59, + CAST( NULL AS SIGNED ) AS col2, + 97 AS col2
----
59
NULL
97

skipif mysql # not compatible
query III rowsort label-6865
SELECT + 59, + CAST ( NULL AS INTEGER ) AS col2, + 97 AS col2
----
59
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT DISTINCT - 45, - COUNT( DISTINCT + 8 ) * 97 + COUNT( * ) AS col2
----
-45
-96

skipif mysql # not compatible
query II rowsort label-6866
SELECT DISTINCT - 45, - COUNT ( DISTINCT + 8 ) * 97 + COUNT ( * ) AS col2
----
-45
-96

query I rowsort
SELECT DISTINCT - NULLIF ( - 67, 68 )
----
67

query I rowsort
SELECT ALL 72 * + + 4 AS col0
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT ALL - CASE - NULLIF ( + 45, - 82 + - + 5 + 15 ) WHEN + 42 THEN + 69 WHEN - 69 + 60 + 31 THEN NULL ELSE - 82 END DIV + - ( ( - 14 ) ) + + + 59 + + 47
----
111

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - CASE - NULLIF ( + 45, - 82 + - + 5 + 15 ) WHEN + 42 THEN + 69 WHEN - 69 + 60 + 31 THEN NULL ELSE - 82 END / + - ( ( - 14 ) ) + + + 59 + + 47
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6870
SELECT ALL - CASE 77 WHEN + 33 THEN NULL ELSE ( + - 99 ) * 25 DIV CASE 67 WHEN + - 24 THEN 67 WHEN + NULLIF ( 55, 99 ) THEN NULL WHEN + - 39 THEN 27 + - 89 * + CASE - 19 - COUNT( * ) WHEN - 37 DIV COALESCE ( + COUNT( * ), - 3 + ( 75 ) ) THEN 83 WHEN + COUNT( * ) THEN NULL END ELSE 34 END + 34 + 16 END
----
22

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL - CASE 77 WHEN + 33 THEN NULL ELSE ( + - 99 ) * 25 / CASE 67 WHEN + - 24 THEN 67 WHEN + NULLIF ( 55, 99 ) THEN NULL WHEN + - 39 THEN 27 + - 89 * + CASE - 19 - COUNT ( * ) WHEN - 37 / COALESCE ( + COUNT ( * ), - 3 + ( 75 ) ) THEN 83 WHEN + COUNT ( * ) THEN NULL END ELSE 34 END + 34 + 16 END
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-6871
SELECT DISTINCT - 72 DIV ( - 73 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT - 72 / ( - 73 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT ALL 66 * - COALESCE ( 95, - - CAST( NULL AS SIGNED ) ) * + 86 + + 54 col0
----
-539166

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL 66 * - COALESCE ( 95, - - CAST ( NULL AS INTEGER ) ) * + 86 + + 54 col0
----
-539166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6873
SELECT SUM( DISTINCT - 13 ) DIV + COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-6873
SELECT SUM ( DISTINCT - 13 ) / + COUNT ( * ) AS col2
----
-13

query I rowsort
SELECT - 32 * + - 77
----
2464

query I rowsort
SELECT 14 + 78 AS col2
----
92

query I rowsort
SELECT - 76 * - 15
----
1140

query II rowsort
SELECT ALL + 7 + + 80 * + - 18 * + 73 AS col2, - 66 * 86 * 64
----
-105113
-363264

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT - COUNT( * ) AS col0, + 48 + - - MAX( ALL + 46 ) + - - 63 + - 56 + + ( + + 18 ) col2
----
-1
119

skipif mysql # not compatible
query II rowsort label-6878
SELECT - COUNT ( * ) AS col0, + 48 + - - MAX ( ALL + 46 ) + - - 63 + - 56 + + ( + + 18 ) col2
----
-1
119

onlyif mysql # aggregate syntax: 
query II rowsort label-6879
SELECT DISTINCT 53 AS col2, 88 * + - COUNT( * ) AS col0
----
53
-88

skipif mysql # not compatible
query II rowsort label-6879
SELECT DISTINCT 53 AS col2, 88 * + - COUNT ( * ) AS col0
----
53
-88

query I rowsort
SELECT DISTINCT - + 54 + - 13 + + 16
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - MIN( + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-6881
SELECT - MIN ( + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT + COALESCE ( + - 63, + - 5 * + COUNT( 97 ), - 17 - + 84 ) AS col1, + 43 AS col1
----
-63
43

skipif mysql # not compatible
query II rowsort label-6882
SELECT + COALESCE ( + - 63, + - 5 * + COUNT ( 97 ), - 17 - + 84 ) AS col1, + 43 AS col1
----
-63
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6883
SELECT ALL + 71 + - 63 AS col1, - 58 * MIN( - 55 ) - 53 col1
----
8
3137

skipif mysql # not compatible
query II rowsort label-6883
SELECT ALL + 71 + - 63 AS col1, - 58 * MIN ( - 55 ) - 53 col1
----
8
3137

query I rowsort
SELECT ALL 79 + 96 AS col0
----
175

query I rowsort
SELECT - 92 + 76 AS col2
----
-16

query I rowsort
SELECT + 15 + - 89
----
-74

query II rowsort
SELECT - - 42, 42 * 38 AS col1
----
42
1596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6888
SELECT CAST( - 2 AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6888
SELECT CAST ( - 2 AS INTEGER ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT + 98 - - SUM( DISTINCT - + 94 )
----
4

skipif mysql # not compatible
query I rowsort label-6889
SELECT + 98 - - SUM ( DISTINCT - + 94 )
----
4

query I rowsort
SELECT ALL - 86 * 84
----
-7224

query II rowsort
SELECT ALL + 75 AS col0, + 8 col2
----
75
8

query I rowsort
SELECT 81 + 50 * 21 AS col2
----
1131

query II rowsort
SELECT ALL 80 - + 50 AS col1, 27 * - + 5 AS col2
----
30
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6894
SELECT CAST( - - 3 AS SIGNED ) + + COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6894
SELECT CAST ( - - 3 AS INTEGER ) + + COUNT ( * ) AS col2
----
4

query I rowsort
SELECT DISTINCT 72 * 83 - 48
----
5928

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT COUNT( * ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-6896
SELECT COUNT ( * ) * - 31
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-6897
SELECT - 41 DIV + 9 + 83
----
79

skipif mysql # not compatible
query I rowsort label-6897
SELECT - 41 / + 9 + 83
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT 26 + 62 DIV + ( - + 62 )
----
25

skipif mysql # not compatible
query I rowsort label-6898
SELECT 26 + 62 / + ( - + 62 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT ALL - 58 DIV + + 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - 58 / + + 62 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT MIN( ALL + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6900
SELECT MIN ( ALL + 42 ) AS col1
----
42

query I rowsort
SELECT 35 + - 89
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT + NULLIF ( + 73, + + 64 + + - 79 / - COUNT( * ) + + 20 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6902
SELECT + NULLIF ( + 73, + + 64 + + - 79 / - COUNT ( * ) + + 20 ) AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL - CAST( 61 AS SIGNED ) * - - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - CAST ( 61 AS INTEGER ) * - - COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL - MIN( + 4 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - MIN ( + 4 ) AS col2
----
-4

query II rowsort
SELECT DISTINCT - 68 * - + 20 AS col2, + 97 AS col2
----
1360
97

query I rowsort
SELECT ALL + CASE + + 80 WHEN + ( - - COALESCE ( 73, + 61 * + - ( - + 53 ) + + - 27 ) ) THEN + - 39 WHEN + 34 THEN NULL END col0
----
NULL

query I rowsort
SELECT + CASE + 63 WHEN 77 THEN NULL ELSE - + 53 END AS col0
----
-53

query I rowsort
SELECT + 1 * + COALESCE ( + - 97, - - 17 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT 41 * + + COUNT( * ) + - 75 + + + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6909
SELECT 41 * + + COUNT ( * ) + - 75 + + + COUNT ( * ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6910
SELECT DISTINCT - 36 + - 16 * - + 93 AS col0, 45 - - ( + SUM( - 52 ) ) col2
----
1452
-7

skipif mysql # not compatible
query II rowsort label-6910
SELECT DISTINCT - 36 + - 16 * - + 93 AS col0, 45 - - ( + SUM ( - 52 ) ) col2
----
1452
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT CASE 56 WHEN - + ( - 14 ) + + + 28 + 14 + 51 * COUNT( * ) + 11 + - COUNT( ALL - - 50 ) * + 46 * - - 80 + + 70 + + - 42 * - - 84 THEN - + 46 WHEN 50 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT CASE 56 WHEN - + ( - 14 ) + + + 28 + 14 + 51 * COUNT ( * ) + 11 + - COUNT ( ALL - - 50 ) * + 46 * - - 80 + + 70 + + - 42 * - - 84 THEN - + 46 WHEN 50 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6912
SELECT - COUNT( ALL 82 ) DIV + + 98 + MIN( + 61 ) - 53 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6912
SELECT - COUNT ( ALL 82 ) / + + 98 + MIN ( + 61 ) - 53 AS col2
----
8

query I rowsort
SELECT DISTINCT + 53 * + 19 * + ( + 18 )
----
18126

query I rowsort
SELECT ALL 49 + - 21 * + 50
----
-1001

query I rowsort
SELECT DISTINCT + 92 * 59
----
5428

query I rowsort
SELECT ALL - 34 + + + 25 * CASE + + 34 WHEN - + 40 THEN - 40 ELSE - + 2 * - 65 END * + 36 + + + 96 col0
----
117062

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT - SUM( DISTINCT + ( 69 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-6917
SELECT - SUM ( DISTINCT + ( 69 ) ) AS col1
----
-69

query I rowsort
SELECT + ( + - 80 ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6919
SELECT - 13 * + 7 + - CASE + + CASE - 89 WHEN COUNT( * ) THEN COUNT( * ) + CAST( - - 68 AS SIGNED ) WHEN - + 71 THEN NULL WHEN COALESCE ( - 80, - 11, - + 4 ) THEN NULL END WHEN - COUNT( * ) THEN + 46 END * + 51 * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT - 13 * + 7 + - CASE + + CASE - 89 WHEN COUNT ( * ) THEN COUNT ( * ) + CAST ( - - 68 AS INTEGER ) WHEN - + 71 THEN NULL WHEN COALESCE ( - 80, - 11, - + 4 ) THEN NULL END WHEN - COUNT ( * ) THEN + 46 END * + 51 * - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT DISTINCT - - COALESCE ( 12, - 58 ) * + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT - - COALESCE ( 12, - 58 ) * + COUNT ( * )
----
12

query I rowsort
SELECT ALL - 40 * 2 - - 70 AS col1
----
-10

query I rowsort
SELECT DISTINCT + 71 - - + 80 col1
----
151

query I rowsort
SELECT DISTINCT ( - ( - 61 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT + 3 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6924
SELECT + 3 * - COUNT ( * )
----
-3

query I rowsort
SELECT ALL 27 * + - 39
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT - COUNT( * ) * + + 69
----
-69

skipif mysql # not compatible
query I rowsort label-6926
SELECT - COUNT ( * ) * + + 69
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6927
SELECT + 99 DIV + COUNT( DISTINCT + 7 ) - - COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-6927
SELECT + 99 / + COUNT ( DISTINCT + 7 ) - - COUNT ( * )
----
100

query I rowsort
SELECT + 73 * + 30 AS col2
----
2190

query I rowsort
SELECT + 85 - - 18 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL MIN( + + 88 ) * - 75 * + - 99
----
653400

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL MIN ( + + 88 ) * - 75 * + - 99
----
653400

query II rowsort
SELECT ALL + 80 col1, + 95
----
80
95

query I rowsort
SELECT 63 * 69 + 58 + + 97 AS col2
----
4502

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT DISTINCT COUNT( * ) * + + 50
----
50

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT COUNT ( * ) * + + 50
----
50

query I rowsort
SELECT + 37 * - 23 * - COALESCE ( + - 75, + - 45, + - 67, - 3 )
----
-63825

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL + MIN( 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + MIN ( 57 ) AS col1
----
57

query I rowsort
SELECT + ( + 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL - 64 * COUNT( * ) * 37 + - - 16 + + 5 * MAX( ALL 27 )
----
-2217

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL - 64 * COUNT ( * ) * 37 + - - 16 + + 5 * MAX ( ALL 27 )
----
-2217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6938
SELECT + 31 - - + CASE + 11 WHEN + 89 + + SUM( + ( - 80 ) ) - + 79 * - - 52 * - - CAST( NULL AS DECIMAL ) / + AVG ( DISTINCT 95 ) * - 12 THEN + 52 - + 52 WHEN 95 + - 19 + + 78 * ( CAST( NULL AS SIGNED ) ) THEN 0 + 42 WHEN - 97 THEN 44 ELSE NULL END + - 87 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT + 31 - - + CASE + 11 WHEN + 89 + + SUM ( + ( - 80 ) ) - + 79 * - - 52 * - - CAST ( NULL AS REAL ) / + AVG ( DISTINCT 95 ) * - 12 THEN + 52 - + 52 WHEN 95 + - 19 + + 78 * ( CAST ( NULL AS INTEGER ) ) THEN 0 + 42 WHEN - 97 THEN 44 ELSE NULL END + - 87 / - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT + 43 * + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-6939
SELECT + 43 * + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT - COUNT( * ) - + 44 * - 9 AS col2
----
395

skipif mysql # not compatible
query I rowsort label-6940
SELECT - COUNT ( * ) - + 44 * - 9 AS col2
----
395

query I rowsort
SELECT + ( - - 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6942
SELECT - COUNT( * ) DIV - SUM( 5 ) AS col1, + 86
----
0
86

skipif mysql # not compatible
query II rowsort label-6942
SELECT - COUNT ( * ) / - SUM ( 5 ) AS col1, + 86
----
0
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT COALESCE ( + 96, - 72 + + 75 / + COUNT( * ), - 36 ) * + 48 + + ( + CASE 3 WHEN + - 98 THEN NULL WHEN - 87 THEN 5 * 6 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT COALESCE ( + 96, - 72 + + 75 / + COUNT ( * ), - 36 ) * + 48 + + ( + CASE 3 WHEN + - 98 THEN NULL WHEN - 87 THEN 5 * 6 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL + CASE + - 84 WHEN + 11 THEN NULL ELSE - COUNT( * ) * + 99 END * + 46 + + CASE + 37 WHEN 85 + - 15 + - 65 * - - 48 / + AVG ( ALL 92 ) * + 95 + - + 35 + + + 18 * + + 91 * - 38 THEN - 65 END + ( + 12 ) * 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL + CASE + - 84 WHEN + 11 THEN NULL ELSE - COUNT ( * ) * + 99 END * + 46 + + CASE + 37 WHEN 85 + - 15 + - 65 * - - 48 / + AVG ( ALL 92 ) * + 95 + - + 35 + + + 18 * + + 91 * - 38 THEN - 65 END + ( + 12 ) * 28 AS col0
----
NULL

query I rowsort
SELECT + ( 16 ) AS col1
----
16

query I rowsort
SELECT DISTINCT - 17 * 65 + - ( + ( + 37 ) ) - - ( - COALESCE ( 46, - - ( + 85 ) + ( - 76 ) + + - 25 * 63 + ( COALESCE ( - + 84, - ( 12 ) * 2, 37 * + 55 + 93 ) ) - + 40 * - 55, 29 ) ) + 40 AS col0
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT + - 11 * - + 63 + ( - COUNT( * ) ) AS col2
----
692

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT + - 11 * - + 63 + ( - COUNT ( * ) ) AS col2
----
692

onlyif mysql # aggregate syntax: 
query II rowsort label-6948
SELECT DISTINCT + COUNT( * ) col1, - 22 * 97
----
1
-2134

skipif mysql # not compatible
query II rowsort label-6948
SELECT DISTINCT + COUNT ( * ) col1, - 22 * 97
----
1
-2134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6949
SELECT DISTINCT - 46 * + COUNT( * ) DIV - - 77 + 21 col0
----
21

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - 46 * + COUNT ( * ) / - - 77 + 21 col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT ALL 54 * + MAX( - 34 ) + + 9
----
-1827

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL 54 * + MAX ( - 34 ) + + 9
----
-1827

query I rowsort
SELECT ALL + + 78 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6952
SELECT DISTINCT CAST( - + 31 AS SIGNED ) * - COUNT( * ) * + ( COUNT( * ) ) + + - 0 AS col1, 12 * - + 75
----
31
-900

skipif mysql # not compatible
query II rowsort label-6952
SELECT DISTINCT CAST ( - + 31 AS INTEGER ) * - COUNT ( * ) * + ( COUNT ( * ) ) + + - 0 AS col1, 12 * - + 75
----
31
-900

query I rowsort
SELECT + 52 * + + 72 AS col2
----
3744

query I rowsort
SELECT - - 85 * - 87 * 24 AS col0
----
-177480

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT - 27 AS col1, 97 * - 79 + 29 - - - CASE - COUNT( * ) WHEN + 8 * + 82 * - 63 * 23 THEN - + 96 - - NULLIF ( - 65, + - 28 ) + + MAX( - - 16 ) END
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-6955
SELECT - 27 AS col1, 97 * - 79 + 29 - - - CASE - COUNT ( * ) WHEN + 8 * + 82 * - 63 * 23 THEN - + 96 - - NULLIF ( - 65, + - 28 ) + + MAX ( - - 16 ) END
----
-27
NULL

query II rowsort
SELECT - + ( - - ( - - 6 ) ) * 2 AS col0, 8 * + + 76 + 2
----
-12
610

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT - 57 * COUNT( * ) + + 91 * + 56
----
5039

skipif mysql # not compatible
query I rowsort label-6957
SELECT - 57 * COUNT ( * ) + + 91 * + 56
----
5039

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT - 97 + 85 + MIN( ALL + - 76 ) + + 65 * + + 95 AS col1
----
6087

skipif mysql # not compatible
query I rowsort label-6958
SELECT - 97 + 85 + MIN ( ALL + - 76 ) + + 65 * + + 95 AS col1
----
6087

query I rowsort
SELECT DISTINCT 67 - + 28 + - CASE + 10 WHEN 76 THEN - 45 + + ( + 61 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT - COUNT( * ) + + 7 + + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6960
SELECT - COUNT ( * ) + + 7 + + COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6961
SELECT ALL + COUNT( * ) AS col2, 5
----
1
5

skipif mysql # not compatible
query II rowsort label-6961
SELECT ALL + COUNT ( * ) AS col2, 5
----
1
5

query I rowsort
SELECT DISTINCT - - 36 - NULLIF ( + 16, 34 ) AS col0
----
20

query I rowsort
SELECT ALL + ( - - 74 ) * + - 70 AS col1
----
-5180

query II rowsort
SELECT ALL 40, 47 * - + 72 AS col2
----
40
-3384

onlyif mysql # aggregate syntax: 
query II rowsort label-6965
SELECT DISTINCT + MAX( ALL - - NULLIF ( - 2, + NULLIF ( 77, - 41 ) ) ) * - 61 AS col1, 25 * 87 * - ( + + 10 ) + 50 * + 22 + + + COUNT( * )
----
122
-20649

skipif mysql # not compatible
query II rowsort label-6965
SELECT DISTINCT + MAX ( ALL - - NULLIF ( - 2, + NULLIF ( 77, - 41 ) ) ) * - 61 AS col1, 25 * 87 * - ( + + 10 ) + 50 * + 22 + + + COUNT ( * )
----
122
-20649

query I rowsort
SELECT ALL + 58 * + 29
----
1682

query I rowsort
SELECT ALL - COALESCE ( + 40, ( 96 ) ) * + 63
----
-2520

onlyif mysql # aggregate syntax: 
query II rowsort label-6968
SELECT + 97 + + 67, CASE - 60 WHEN + ( - COUNT( * ) ) THEN NULL WHEN + 45 / 30 * + - 86 / + NULLIF ( - ( - 96 ), 5 ) * - 85 THEN + - ( CASE + COALESCE ( 99, - COUNT( * ) * + 62 + MAX( ALL + 47 ) * + COUNT( * ) ) WHEN 31 THEN NULL ELSE 9 * 50 END ) ELSE NULL END / 75 - + ( + 5 + + 93 ) AS col2
----
164
NULL

skipif mysql # not compatible
query II rowsort label-6968
SELECT + 97 + + 67, CASE - 60 WHEN + ( - COUNT ( * ) ) THEN NULL WHEN + 45 / 30 * + - 86 / + NULLIF ( - ( - 96 ), 5 ) * - 85 THEN + - ( CASE + COALESCE ( 99, - COUNT ( * ) * + 62 + MAX ( ALL + 47 ) * + COUNT ( * ) ) WHEN 31 THEN NULL ELSE 9 * 50 END ) ELSE NULL END / 75 - + ( + 5 + + 93 ) AS col2
----
164
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT - COUNT( * ) + 45 AS col0, 9
----
44
9

skipif mysql # not compatible
query II rowsort label-6969
SELECT - COUNT ( * ) + 45 AS col0, 9
----
44
9

query I rowsort
SELECT ALL ( - 22 ) AS col1
----
-22

query I rowsort
SELECT - 61 + 15 AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT ALL - MIN( + 71 ) * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL - MIN ( + 71 ) * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT DISTINCT CAST( 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT CAST ( 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT COUNT( * ) * - 28 col1
----
-28

skipif mysql # not compatible
query I rowsort label-6974
SELECT COUNT ( * ) * - 28 col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT DISTINCT CASE + NULLIF ( + + 52, - 87 ) WHEN + NULLIF ( CAST( CASE 87 WHEN - 95 THEN + + COALESCE ( + 84, - - 65 + 53 ) + - - 76 / 52 ELSE + + 94 * 59 + 50 END AS SIGNED ), ( + 58 ) ) * 19 THEN - 14 WHEN + 79 * 83 + + 22 THEN NULL ELSE NULL END + COALESCE ( 41 + - 72, + 26 / 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT CASE + NULLIF ( + + 52, - 87 ) WHEN + NULLIF ( CAST ( CASE 87 WHEN - 95 THEN + + COALESCE ( + 84, - - 65 + 53 ) + - - 76 / 52 ELSE + + 94 * 59 + 50 END AS INTEGER ), ( + 58 ) ) * 19 THEN - 14 WHEN + 79 * 83 + + 22 THEN NULL ELSE NULL END + COALESCE ( 41 + - 72, + 26 / 88 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6976
SELECT ALL 13 + MAX( DISTINCT + 19 ) + - + 9 AS col1, - MIN( ALL 71 )
----
23
-71

skipif mysql # not compatible
query II rowsort label-6976
SELECT ALL 13 + MAX ( DISTINCT + 19 ) + - + 9 AS col1, - MIN ( ALL 71 )
----
23
-71

query I rowsort
SELECT DISTINCT ( + + 17 ) * + 59
----
1003

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL 7 * + 88 * COUNT( * )
----
616

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL 7 * + 88 * COUNT ( * )
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL 66 + 11 + 94 - + COUNT( * ) + + 91 AS col0
----
261

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL 66 + 11 + 94 - + COUNT ( * ) + + 91 AS col0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT 39 * - 2 * - - SUM( DISTINCT + 96 ) * - 70 * 12 + 93 - - 62 * + + 58 * - + 9 + - 71 * + ( 3 )
----
6257436

skipif mysql # not compatible
query I rowsort label-6980
SELECT 39 * - 2 * - - SUM ( DISTINCT + 96 ) * - 70 * 12 + 93 - - 62 * + + 58 * - + 9 + - 71 * + ( 3 )
----
6257436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT + + CAST( 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-6981
SELECT + + CAST ( 9 AS INTEGER )
----
9

query I rowsort
SELECT ALL - 95 + - + 36
----
-131

query I rowsort
SELECT 99 + - + 42 AS col2
----
57

query I rowsort
SELECT + 19 * 83 col0
----
1577

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6985
SELECT DISTINCT + ( + 42 ) DIV COUNT( - - NULLIF ( 7, + + ( 18 ) ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT + ( + 42 ) / COUNT ( - - NULLIF ( 7, + + ( 18 ) ) ) AS col2
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-6986
SELECT ALL 11 * 40, 89 DIV + 72 AS col2
----
440
1

skipif mysql # not compatible
query II rowsort label-6986
SELECT ALL 11 * 40, 89 / + 72 AS col2
----
440
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT 40 - - - SUM( ALL + + 95 )
----
-55

skipif mysql # not compatible
query I rowsort label-6987
SELECT 40 - - - SUM ( ALL + + 95 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL COUNT( - 45 ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL COUNT ( - 45 ) - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL + + 47 * - COUNT( ALL - - 14 ) * 44 AS col0
----
-2068

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + + 47 * - COUNT ( ALL - - 14 ) * 44 AS col0
----
-2068

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6990
SELECT 17 * + COUNT( * ) DIV COUNT( * ) DIV NULLIF ( + 96, - - 27 * + 91 + - 20 + - ( 24 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6990
SELECT 17 * + COUNT ( * ) / COUNT ( * ) / NULLIF ( + 96, - - 27 * + 91 + - 20 + - ( 24 ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL - NULLIF ( - 71, - 63 ) * 97 + COUNT( - 27 )
----
6888

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL - NULLIF ( - 71, - 63 ) * 97 + COUNT ( - 27 )
----
6888

query I rowsort
SELECT 48 + 80 + - + 11
----
117

query I rowsort
SELECT DISTINCT COALESCE ( - - 22, + 80 ) * 11
----
242

query I rowsort
SELECT 19 - - - ( + 75 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6995
SELECT ( + COUNT( * ) ) * 82 DIV 54 + 42 + - + 92 + - 88
----
-137

skipif mysql # not compatible
query I rowsort label-6995
SELECT ( + COUNT ( * ) ) * 82 / 54 + 42 + - + 92 + - 88
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT 26 * + COUNT( DISTINCT 85 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6996
SELECT 26 * + COUNT ( DISTINCT 85 ) AS col1
----
26

query I rowsort
SELECT 16 * + - 26
----
-416

query I rowsort
SELECT ALL + ( - + 65 ) * + - 5
----
325

query I rowsort
SELECT ALL - 99 + 30 AS col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7000
SELECT DISTINCT + 9 * + - COUNT( * ) * ( - - CAST( 18 AS SIGNED ) )
----
-162

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT + 9 * + - COUNT ( * ) * ( - - CAST ( 18 AS INTEGER ) )
----
-162

query II rowsort
SELECT 28 AS col2, ( + 37 ) AS col1
----
28
37

query I rowsort
SELECT 6 + 83 - 47
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL - COUNT( * ) * 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - COUNT ( * ) * 3 AS col0
----
-3

query I rowsort
SELECT 15 + - 21
----
-6

query I rowsort
SELECT ALL + 64 + 36
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT DISTINCT + SUM( DISTINCT + 14 ) * - 60 AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT + SUM ( DISTINCT + 14 ) * - 60 AS col0
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT 67 * + MIN( 55 )
----
3685

skipif mysql # not compatible
query I rowsort label-7007
SELECT 67 * + MIN ( 55 )
----
3685

query I rowsort
SELECT 41 - + 82
----
-41

query I rowsort
SELECT 37 * - 67 + + ( + 81 ) AS col2
----
-2398

query I rowsort
SELECT DISTINCT + 46 * 55 AS col2
----
2530

query I rowsort
SELECT DISTINCT - - ( + - 99 )
----
-99

query I rowsort
SELECT - 76 * - 39 * ( 27 )
----
80028

query I rowsort
SELECT 37 - + 56 * - + 62 AS col2
----
3509

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT + 99 * + 19 + + COUNT( * ) + 61 + - + 61 * + 74
----
-2571

skipif mysql # not compatible
query I rowsort label-7014
SELECT + 99 * + 19 + + COUNT ( * ) + 61 + - + 61 * + 74
----
-2571

query I rowsort
SELECT - 43 * + - 22 AS col2
----
946

query I rowsort
SELECT 14 * - 51 + + 88
----
-626

query I rowsort
SELECT + + ( - 39 ) AS col2
----
-39

query I rowsort
SELECT ALL 0 * ( + 83 ) * 22 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7019
SELECT 63 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT 63 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ( - ( + + 16 ) ) * - + MIN( ALL + 92 ) - + 57 + + 37
----
1452

skipif mysql # not compatible
query I rowsort label-7020
SELECT ( - ( + + 16 ) ) * - + MIN ( ALL + 92 ) - + 57 + + 37
----
1452

onlyif mysql # aggregate syntax: 
query II rowsort label-7021
SELECT + 11 * + + 95 + + - COUNT( * ) AS col1, CASE - 59 WHEN 45 * - - 6 * - - 96 * - + COUNT( * ) THEN COUNT( * ) ELSE NULL END AS col1
----
1044
NULL

skipif mysql # not compatible
query II rowsort label-7021
SELECT + 11 * + + 95 + + - COUNT ( * ) AS col1, CASE - 59 WHEN 45 * - - 6 * - - 96 * - + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END AS col1
----
1044
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT ALL - ( + 28 ) * - 40 * - + COUNT( * ) + - 19 col1, 14 AS col0
----
-1139
14

skipif mysql # not compatible
query II rowsort label-7022
SELECT ALL - ( + 28 ) * - 40 * - + COUNT ( * ) + - 19 col1, 14 AS col0
----
-1139
14

query I rowsort
SELECT 73 + - 89
----
-16

query II rowsort
SELECT DISTINCT - + 85, - 66 AS col1
----
-85
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7025
SELECT SUM( ALL + 97 ) DIV 89 * + 64 * + - 96 + - 56, - 57 - - COUNT( + - 99 ) AS col2
----
-6200
-56

skipif mysql # not compatible
query II rowsort label-7025
SELECT SUM ( ALL + 97 ) / 89 * + 64 * + - 96 + - 56, - 57 - - COUNT ( + - 99 ) AS col2
----
-6200
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7026
SELECT + 42 DIV + - ( - COALESCE ( + + 63, - - 80 ) ) * - 82
----
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT + 42 / + - ( - COALESCE ( + + 63, - - 80 ) ) * - 82
----
0

query I rowsort
SELECT ALL - 70 + + - 40 * - - ( - 78 ) + + 6 AS col1
----
3056

query I rowsort
SELECT 35 * - 92 AS col0
----
-3220

query I rowsort
SELECT ( - 48 ) + 72
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT ALL 50 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL 50 / 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT DISTINCT COUNT( * ) + - 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT COUNT ( * ) + - 29 AS col1
----
-28

query I rowsort
SELECT ALL - ( + 67 ) + - 21 + - + 33 * 51 + + 12 * 32 + + 42
----
-1345

query I rowsort
SELECT + 38 + - - 97
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL COALESCE ( 31, - COUNT( * ) ) + - 36 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL COALESCE ( 31, - COUNT ( * ) ) + - 36 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT DISTINCT ( + 95 ) + - COALESCE ( - + COUNT( * ), + 6, ( NULLIF ( - 76, + 60 + + 48 ) ) + + - ( + COUNT( * ) ) ) * + + ( - - 97 )
----
192

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT ( + 95 ) + - COALESCE ( - + COUNT ( * ), + 6, ( NULLIF ( - 76, + 60 + + 48 ) ) + + - ( + COUNT ( * ) ) ) * + + ( - - 97 )
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT ALL CAST( - 96 AS SIGNED ) * + 29 AS col1
----
-2784

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL CAST ( - 96 AS INTEGER ) * + 29 AS col1
----
-2784

onlyif mysql # aggregate syntax: 
query II rowsort label-7037
SELECT 76 AS col0, ( COALESCE ( + - 9, - + 10 * + - 26, + - 95 ) ) * + - SUM( DISTINCT + + 18 ) AS col1
----
76
162

skipif mysql # not compatible
query II rowsort label-7037
SELECT 76 AS col0, ( COALESCE ( + - 9, - + 10 * + - 26, + - 95 ) ) * + - SUM ( DISTINCT + + 18 ) AS col1
----
76
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT - 8 + + 17 * + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-7038
SELECT - 8 + + 17 * + COUNT ( * )
----
9

query I rowsort
SELECT - CASE + 97 WHEN + ( 39 ) + + CASE - 30 WHEN - 70 THEN ( - 45 ) / + 17 * - 11 END THEN + ( + 2 ) WHEN + + 94 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT + 96 + + CASE + 16 WHEN 61 THEN + MAX( + 3 ) / + COALESCE ( 41, + 95, - - ( - 16 ) ) WHEN + 62 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT + 96 + + CASE + 16 WHEN 61 THEN + MAX ( + 3 ) / + COALESCE ( 41, + 95, - - ( - 16 ) ) WHEN + 62 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT 24 AS col2, 86 col1
----
24
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT ALL - 78 * - 87 * + + 58 * - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL - 78 * - 87 * + + 58 * - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT CASE 68 WHEN - - MAX( ALL + 46 ) THEN - - 73 WHEN + CASE 62 WHEN - + 20 THEN + + 25 + - COUNT( ALL 67 ) * - AVG ( - 15 ) * - 94 + 45 ELSE NULL END THEN NULL WHEN - COUNT( * ) + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT CASE 68 WHEN - - MAX ( ALL + 46 ) THEN - - 73 WHEN + CASE 62 WHEN - + 20 THEN + + 25 + - COUNT ( ALL 67 ) * - AVG ( - 15 ) * - 94 + 45 ELSE NULL END THEN NULL WHEN - COUNT ( * ) + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7044
SELECT DISTINCT - 26 DIV + + 15
----
-1

skipif mysql # not compatible
query I rowsort label-7044
SELECT DISTINCT - 26 / + + 15
----
-1

query I rowsort
SELECT + ( + + 4 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7046
SELECT - + 87 DIV 10 + 92 col0
----
84

skipif mysql # not compatible
query I rowsort label-7046
SELECT - + 87 / 10 + 92 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL + COUNT( * ) * - 60 + + - 68 * 65 * - 28 * 46 * + 62
----
352963460

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL + COUNT ( * ) * - 60 + + - 68 * 65 * - 28 * 46 * + 62
----
352963460

query I rowsort
SELECT - - 7 * 77 + - 86 * 50 AS col1
----
-3761

query II rowsort
SELECT DISTINCT + - 89 AS col0, 18
----
-89
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7050
SELECT ALL + 18 AS col0, COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-7050
SELECT ALL + 18 AS col0, COUNT ( * )
----
18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT COUNT( * ) * - MAX( DISTINCT - 94 ) + - 74
----
20

skipif mysql # not compatible
query I rowsort label-7051
SELECT COUNT ( * ) * - MAX ( DISTINCT - 94 ) + - 74
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7052
SELECT - COUNT( * ) AS col2, + 9 AS col1
----
-1
9

skipif mysql # not compatible
query II rowsort label-7052
SELECT - COUNT ( * ) AS col2, + 9 AS col1
----
-1
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7053
SELECT ALL + - COUNT( * ) AS col1, ( - ( - 23 ) ) AS col1
----
-1
23

skipif mysql # not compatible
query II rowsort label-7053
SELECT ALL + - COUNT ( * ) AS col1, ( - ( - 23 ) ) AS col1
----
-1
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7054
SELECT ALL + 67 col2, MAX( 5 )
----
67
5

skipif mysql # not compatible
query II rowsort label-7054
SELECT ALL + 67 col2, MAX ( 5 )
----
67
5

query II rowsort
SELECT 34, + 22 AS col1
----
34
22

query I rowsort
SELECT + ( 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL + + COUNT( DISTINCT - 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + + COUNT ( DISTINCT - 33 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - + MIN( + - 18 ) * + 14 * - + 62 AS col1
----
-15624

skipif mysql # not compatible
query I rowsort label-7058
SELECT - + MIN ( + - 18 ) * + 14 * - + 62 AS col1
----
-15624

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT - - 74 * + 91 + SUM( ALL - 3 )
----
6731

skipif mysql # not compatible
query I rowsort label-7059
SELECT - - 74 * + 91 + SUM ( ALL - 3 )
----
6731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7060
SELECT - 83 * + 48 * - 61 - - 90 - - - ( + CAST( + ( + 15 ) AS SIGNED ) )
----
243099

skipif mysql # not compatible
query I rowsort label-7060
SELECT - 83 * + 48 * - 61 - - 90 - - - ( + CAST ( + ( + 15 ) AS INTEGER ) )
----
243099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7061
SELECT DISTINCT - 54 * + 21, 3 * COUNT( ALL + CAST( NULL AS SIGNED ) ) * 52 * + 63 AS col1
----
-1134
0

skipif mysql # not compatible
query II rowsort label-7061
SELECT DISTINCT - 54 * + 21, 3 * COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * 52 * + 63 AS col1
----
-1134
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL COUNT( ALL - - 52 ) + - ( - - ( - 4 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL COUNT ( ALL - - 52 ) + - ( - - ( - 4 ) ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT - COUNT( * ) * + MAX( + - 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT - COUNT ( * ) * + MAX ( + - 18 ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7064
SELECT COUNT( - 15 ) AS col0, COUNT( * ) + COUNT( + CAST( - - 44 AS SIGNED ) ) * 24 + - + MAX( ALL - 31 ) AS col1
----
1
56

skipif mysql # not compatible
query II rowsort label-7064
SELECT COUNT ( - 15 ) AS col0, COUNT ( * ) + COUNT ( + CAST ( - - 44 AS INTEGER ) ) * 24 + - + MAX ( ALL - 31 ) AS col1
----
1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT ( + + SUM( DISTINCT 81 ) ) + + 29
----
110

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT ( + + SUM ( DISTINCT 81 ) ) + + 29
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7066
SELECT + 8 DIV COUNT( - - 55 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7066
SELECT + 8 / COUNT ( - - 55 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7067
SELECT + 96 * 78 * + COUNT( * ), + COUNT( * ) * 54 + + 17 + + 60 AS col0
----
7488
131

skipif mysql # not compatible
query II rowsort label-7067
SELECT + 96 * 78 * + COUNT ( * ), + COUNT ( * ) * 54 + + 17 + + 60 AS col0
----
7488
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT + 55 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT + 55 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7069
SELECT ALL CAST( - 41 AS SIGNED ) AS col0, + 96 AS col1
----
-41
96

skipif mysql # not compatible
query II rowsort label-7069
SELECT ALL CAST ( - 41 AS INTEGER ) AS col0, + 96 AS col1
----
-41
96

query II rowsort
SELECT DISTINCT 84 * - - 23, 52 AS col2
----
1932
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7071
SELECT DISTINCT CASE WHEN NOT 60 IS NULL THEN + COUNT( * ) ELSE - 3 * - ( + - 3 ) END DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT CASE WHEN NOT 60 IS NULL THEN + COUNT ( * ) ELSE - 3 * - ( + - 3 ) END / + 44
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7072
SELECT ALL MAX( - + 69 ) col2, 68 AS col1
----
-69
68

skipif mysql # not compatible
query II rowsort label-7072
SELECT ALL MAX ( - + 69 ) col2, 68 AS col1
----
-69
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT DISTINCT - 92 * + CAST( - + 43 AS SIGNED )
----
3956

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT - 92 * + CAST ( - + 43 AS INTEGER )
----
3956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7074
SELECT - CAST( 54 AS SIGNED ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-7074
SELECT - CAST ( 54 AS INTEGER ) AS col0
----
-54

query I rowsort
SELECT + 1 * 49 AS col2
----
49

query I rowsort
SELECT + 13 + - - 49 * + 2 AS col2
----
111

query I rowsort
SELECT ALL 24 * + 20
----
480

query I rowsort
SELECT + - 33 + ( 54 ) + 43 * - + 21 * + + 34 AS col0
----
-30681

query I rowsort
SELECT + NULLIF ( + 97, - + 48 / - ( - - ( 37 ) ) + - + 95 * - 79 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7080
SELECT - 95 * CAST( NULL AS SIGNED ) + + CAST( - 35 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7080
SELECT - 95 * CAST ( NULL AS INTEGER ) + + CAST ( - 35 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT + MAX( + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-7081
SELECT + MAX ( + 57 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7082
SELECT ALL 36 DIV COUNT( * ) + 17 + - - 97 + SUM( - + 40 ) * - 54 + 48 + 72 col0
----
2430

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL 36 / COUNT ( * ) + 17 + - - 97 + SUM ( - + 40 ) * - 54 + 48 + 72 col0
----
2430

query I rowsort
SELECT ALL + ( + - 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - - ( - COUNT( * ) ) - 34 col1
----
-35

skipif mysql # not compatible
query I rowsort label-7084
SELECT - - ( - COUNT ( * ) ) - 34 col1
----
-35

query I rowsort
SELECT ALL + 20 * 72
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT - 97 DIV - 8 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7086
SELECT - 97 / - 8 AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7087
SELECT DISTINCT - - ( - MAX( + 25 ) ) DIV - - COALESCE ( CASE 10 WHEN + 92 THEN NULL ELSE + 93 END, 22 * + COUNT( * ) ) + 64
----
64

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT - - ( - MAX ( + 25 ) ) / - - COALESCE ( CASE 10 WHEN + 92 THEN NULL ELSE + 93 END, 22 * + COUNT ( * ) ) + 64
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7088
SELECT ALL - - 26 DIV + - CAST( - - COUNT( * ) AS SIGNED ) + + 56
----
30

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL - - 26 / + - CAST ( - - COUNT ( * ) AS INTEGER ) + + 56
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT ALL + + 60 DIV + + 67 + 30 + 92
----
122

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL + + 60 / + + 67 + 30 + 92
----
122

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7090
SELECT ALL COALESCE ( 51, - + 84 + 58 * 95, + 34 ) * - - CAST( NULL AS DECIMAL ) * - COUNT( 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL COALESCE ( 51, - + 84 + 58 * 95, + 34 ) * - - CAST ( NULL AS REAL ) * - COUNT ( 51 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7091
SELECT - 64 * + - MIN( - 57 ) + 83 + + ( + + 32 ) DIV 91 AS col2
----
-3565

skipif mysql # not compatible
query I rowsort label-7091
SELECT - 64 * + - MIN ( - 57 ) + 83 + + ( + + 32 ) / 91 AS col2
----
-3565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT ALL + + 56 + - COUNT( + CAST( NULL AS SIGNED ) ) * + + 61
----
56

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + + 56 + - COUNT ( + CAST ( NULL AS INTEGER ) ) * + + 61
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT ALL COUNT( * ) + 17 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL COUNT ( * ) + 17 AS col1
----
18

query I rowsort
SELECT 6 + + + 91
----
97

query I rowsort
SELECT 41 * 5 AS col2
----
205

query I rowsort
SELECT 15 + - + 44 AS col2
----
-29

query I rowsort
SELECT ALL + 68 - - 17 AS col2
----
85

query I rowsort
SELECT DISTINCT - 96 * - - 99 AS col0
----
-9504

query I rowsort
SELECT - 40 * 27 * + ( - 92 ) + - 98
----
99262

query I rowsort
SELECT 50 + + 39
----
89

query I rowsort
SELECT 60 + - + 56 AS col2
----
4

query II rowsort
SELECT DISTINCT 60, + 56 + - - 88 AS col2
----
60
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL + 78 * - + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL + 78 * - + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-7104
SELECT 38, + COUNT( * ) * + 91 AS col0
----
38
91

skipif mysql # not compatible
query II rowsort label-7104
SELECT 38, + COUNT ( * ) * + 91 AS col0
----
38
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT ALL 39 DIV + CASE - 29 WHEN + 53 + + - COUNT( * ) THEN NULL WHEN - 40 * + 26 + - 85 THEN NULL ELSE + 91 END
----
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL 39 / + CASE - 29 WHEN + 53 + + - COUNT ( * ) THEN NULL WHEN - 40 * + 26 + - 85 THEN NULL ELSE + 91 END
----
0

query I rowsort
SELECT 22 + - 76 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-7107
SELECT DISTINCT + 59 DIV - 34
----
-1

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + 59 / - 34
----
-1

query I rowsort
SELECT ALL 67 * - 46
----
-3082

query I rowsort
SELECT - 36 * 42 AS col2
----
-1512

query I rowsort
SELECT ALL + 15 + - 73 * - + 27 AS col2
----
1986

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL - COALESCE ( + 69, - - 53, + - 68 ) + + MIN( - 19 )
----
-88

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - COALESCE ( + 69, - - 53, + - 68 ) + + MIN ( - 19 )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT 89, - 76 + COUNT( * ) AS col0
----
89
-75

skipif mysql # not compatible
query II rowsort label-7112
SELECT 89, - 76 + COUNT ( * ) AS col0
----
89
-75

query I rowsort
SELECT ALL 28 * - 51 - - 48 col1
----
-1380

query I rowsort
SELECT ALL + 66 + - 68 AS col1
----
-2

query I rowsort
SELECT + ( 56 ) AS col2
----
56

query I rowsort
SELECT DISTINCT - CASE + 57 WHEN + 70 * + 47 / - 66 THEN - + 50 ELSE NULL END * - + 48 * + - 15
----
NULL

query I rowsort
SELECT 40 * 99 AS col1
----
3960

query II rowsort
SELECT + + 14 col1, + 84 AS col0
----
14
84

query II rowsort
SELECT ALL - + 78 AS col1, + 37 * - - 5 AS col2
----
-78
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT - 72 + 23 * + ( COUNT( - 80 ) ) * ( COUNT( * ) ) * + COUNT( * ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT - 72 + 23 * + ( COUNT ( - 80 ) ) * ( COUNT ( * ) ) * + COUNT ( * ) col1
----
-49

query I rowsort
SELECT + + ( 21 ) AS col0
----
21

query I rowsort
SELECT DISTINCT + 92 + + 0
----
92

query II rowsort
SELECT DISTINCT - 68, + 2 * - + 26 AS col1
----
-68
-52

query I rowsort
SELECT DISTINCT - - 83 + - 5 AS col2
----
78

query I rowsort
SELECT 41 + + 28 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL + ( - + 23 ) - + - ( 27 ) + + + COUNT( * ) col1
----
5

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + ( - + 23 ) - + - ( 27 ) + + + COUNT ( * ) col1
----
5

query I rowsort
SELECT 60 * - - 57 AS col1
----
3420

onlyif mysql # aggregate syntax: 
query II rowsort label-7128
SELECT ALL - NULLIF ( COUNT( * ), + ( 8 ) + - AVG ( 79 ) - - ( - 1 ) - 0 ) - 32 AS col0, + 99 col0
----
-33
99

skipif mysql # not compatible
query II rowsort label-7128
SELECT ALL - NULLIF ( COUNT ( * ), + ( 8 ) + - AVG ( 79 ) - - ( - 1 ) - 0 ) - 32 AS col0, + 99 col0
----
-33
99

query II rowsort
SELECT DISTINCT - ( - 38 ), 72 AS col0
----
38
72

query I rowsort
SELECT ALL - 9 * + - 53
----
477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT - 37 * - COUNT( * ) - - 85 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT - 37 * - COUNT ( * ) - - 85 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 50 * 0 * 64 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7133
SELECT ALL + 37 DIV + + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL + 37 / + + COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL MAX( + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL MAX ( + 28 )
----
28

query I rowsort
SELECT 34 + - 69
----
-35

query I rowsort
SELECT 50 * - - NULLIF ( - 97, - ( - 56 ) )
----
-4850

query I rowsort
SELECT 56 - + 94 + - - 7 AS col0
----
-31

query I rowsort
SELECT ALL + 47 + - + ( + 37 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT COUNT( * ) * - 48 * - - 45
----
-2160

skipif mysql # not compatible
query I rowsort label-7139
SELECT COUNT ( * ) * - 48 * - - 45
----
-2160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT ALL + CASE - - COUNT( * ) WHEN - + 77 THEN NULL WHEN + 26 * + - COALESCE ( + CAST( NULL AS SIGNED ), COALESCE ( + - COUNT( * ), 92, NULLIF ( - 5, 38 * 74 * + 39 ) + 88 ), MAX( ( 9 ) ) ) THEN - 12 * + + CAST( + - COUNT( DISTINCT - 71 ) AS SIGNED ) - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL + CASE - - COUNT ( * ) WHEN - + 77 THEN NULL WHEN + 26 * + - COALESCE ( + CAST ( NULL AS INTEGER ), COALESCE ( + - COUNT ( * ), 92, NULLIF ( - 5, 38 * 74 * + 39 ) + 88 ), MAX ( ( 9 ) ) ) THEN - 12 * + + CAST ( + - COUNT ( DISTINCT - 71 ) AS INTEGER ) - 15 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT DISTINCT 55 + + 32 + - - 24 DIV - 93
----
87

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT 55 + + 32 + - - 24 / - 93
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7142
SELECT + 34 DIV + + 39 * 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7142
SELECT + 34 / + + 39 * 15 AS col2
----
0

query I rowsort
SELECT ALL 73 + - - 65 + - + 24 AS col2
----
114

query I rowsort
SELECT - COALESCE ( + 20, - 51 ) - + 13 * + 46
----
-618

query I rowsort
SELECT ALL - 95 + 13
----
-82

query I rowsort
SELECT - 0 + - 81 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT 52 * - CASE + CASE + + AVG ( DISTINCT + 23 ) WHEN COALESCE ( - 98, 6 * COUNT( * ) + + 8 / - 88 + + - 40 + 71 - - 84 * - COUNT( * ) ) THEN + 38 END WHEN + - COALESCE ( - 2, + + 74 + - 74 + - 2, - 33 ) * - - 44 + + 8 THEN NULL WHEN 27 THEN NULL ELSE + 60 END + + 9 AS col0
----
-3111

skipif mysql # not compatible
query I rowsort label-7147
SELECT 52 * - CASE + CASE + + AVG ( DISTINCT + 23 ) WHEN COALESCE ( - 98, 6 * COUNT ( * ) + + 8 / - 88 + + - 40 + 71 - - 84 * - COUNT ( * ) ) THEN + 38 END WHEN + - COALESCE ( - 2, + + 74 + - 74 + - 2, - 33 ) * - - 44 + + 8 THEN NULL WHEN 27 THEN NULL ELSE + 60 END + + 9 AS col0
----
-3111

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT + 9 * - 29 * + + 62 * 52 + - CASE 49 WHEN 46 + - - NULLIF ( 48, + + 64 + COALESCE ( + COUNT( * ), + 76 - - COUNT( * ), - ( + 50 ) * + 15 ) + - + 96 * 43 * + + 40 ) THEN NULL WHEN 12 - + + 53 + - AVG ( ALL + + 66 ) + ( - 20 ) * - 19 THEN NULL ELSE - 87 + 15 END AS col1
----
-841392

skipif mysql # not compatible
query I rowsort label-7148
SELECT + 9 * - 29 * + + 62 * 52 + - CASE 49 WHEN 46 + - - NULLIF ( 48, + + 64 + COALESCE ( + COUNT ( * ), + 76 - - COUNT ( * ), - ( + 50 ) * + 15 ) + - + 96 * 43 * + + 40 ) THEN NULL WHEN 12 - + + 53 + - AVG ( ALL + + 66 ) + ( - 20 ) * - 19 THEN NULL ELSE - 87 + 15 END AS col1
----
-841392

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT MAX( DISTINCT 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7149
SELECT MAX ( DISTINCT 38 ) AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7150
SELECT MAX( 31 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT MAX ( 31 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - + NULLIF ( - ( - - 86 ), 2 ) ) AS col0
----
86

query I rowsort
SELECT 48 * + + 3 * + 2 + 54 * - 42
----
-1980

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT ALL - 97 * + - 83 - 81 DIV 16 + 41
----
8087

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL - 97 * + - 83 - 81 / 16 + 41
----
8087

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL - + 75 * - - 56 + - NULLIF ( + MAX( DISTINCT + 23 ), + - 55 ) + + 90 / + CASE - 50 WHEN - 26 - 94 THEN NULL WHEN + + AVG ( - - 76 ) THEN - - 7 END * + 35 * + 88 - + 77 - - + 97 + ( - - 34 ) * + + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL - + 75 * - - 56 + - NULLIF ( + MAX ( DISTINCT + 23 ), + - 55 ) + + 90 / + CASE - 50 WHEN - 26 - 94 THEN NULL WHEN + + AVG ( - - 76 ) THEN - - 7 END * + 35 * + 88 - + 77 - - + 97 + ( - - 34 ) * + + 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT DISTINCT + 18 * 72 * + 70 + 13, COALESCE ( + COUNT( * ), - - 29 ) AS col1
----
90733
1

skipif mysql # not compatible
query II rowsort label-7155
SELECT DISTINCT + 18 * 72 * + 70 + 13, COALESCE ( + COUNT ( * ), - - 29 ) AS col1
----
90733
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT - - 18 * + + 95 * - COUNT( * ) + - - CAST( - + 25 AS SIGNED ) + + 8 * + + 38 + 66 AS col0
----
-1365

skipif mysql # not compatible
query I rowsort label-7156
SELECT - - 18 * + + 95 * - COUNT ( * ) + - - CAST ( - + 25 AS INTEGER ) + + 8 * + + 38 + 66 AS col0
----
-1365

query I rowsort
SELECT + 86 + + - 40 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT CASE + COUNT( * ) WHEN 52 THEN NULL WHEN - 0 * 47 + - 12 + + - 15 * + + 0 + + + COUNT( * ) THEN 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT CASE + COUNT ( * ) WHEN 52 THEN NULL WHEN - 0 * 47 + - 12 + + - 15 * + + 0 + + + COUNT ( * ) THEN 63 END
----
NULL

query I rowsort
SELECT DISTINCT ( + 72 ) * - 11 AS col0
----
-792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7160
SELECT ALL + 56 * + 2 * COUNT( 68 ) - - - COUNT( * ) DIV COUNT( * ) - + - CAST( + 91 AS SIGNED ) AS col2
----
202

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL + 56 * + 2 * COUNT ( 68 ) - - - COUNT ( * ) / COUNT ( * ) - + - CAST ( + 91 AS INTEGER ) AS col2
----
202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7161
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT + CASE COUNT( * ) WHEN - - COUNT( * ) THEN NULL WHEN - + MAX( DISTINCT 2 ) THEN NULL ELSE - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7162
SELECT + CASE COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL WHEN - + MAX ( DISTINCT 2 ) THEN NULL ELSE - 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT MAX( DISTINCT + 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7163
SELECT MAX ( DISTINCT + 40 ) AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT ALL + 51 DIV - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL + 51 / - 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT MIN( 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7165
SELECT MIN ( 17 ) AS col1
----
17

query I rowsort
SELECT + 14 + 50
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT - 78 + + ( - SUM( NULLIF ( 97, 58 ) ) ) col2
----
-175

skipif mysql # not compatible
query I rowsort label-7167
SELECT - 78 + + ( - SUM ( NULLIF ( 97, 58 ) ) ) col2
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7168
SELECT - 96 * + + CAST( - 67 AS SIGNED )
----
6432

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 96 * + + CAST ( - 67 AS INTEGER )
----
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT + MIN( DISTINCT - + 80 ) + + + 92 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7169
SELECT + MIN ( DISTINCT - + 80 ) + + + 92 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7170
SELECT DISTINCT + AVG ( ALL + 96 ) * - 63 * 93 * + 76 * CAST( COUNT( * ) AS DECIMAL ) * + NULLIF ( - - 25, - - SUM( 1 ) ) + - - AVG ( ALL + + CASE 88 WHEN 34 THEN + + 6 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT + AVG ( ALL + 96 ) * - 63 * 93 * + 76 * CAST ( COUNT ( * ) AS REAL ) * + NULLIF ( - - 25, - - SUM ( 1 ) ) + - - AVG ( ALL + + CASE 88 WHEN 34 THEN + + 6 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7171
SELECT ALL - 15 + - - 4 - + + CAST( NULL AS SIGNED ) * + 30 / + CAST( NULL AS DECIMAL ) * + 29 - + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL - 15 + - - 4 - + + CAST ( NULL AS INTEGER ) * + 30 / + CAST ( NULL AS REAL ) * + 29 - + 36
----
NULL

query I rowsort
SELECT ALL 65 + + 75 AS col2
----
140

query I rowsort
SELECT - ( 81 ) + CASE - 66 WHEN + 96 / - 95 * + - 2 * - - ( 95 ) THEN - 0 / - + 3 * - - 32 END + 71
----
NULL

query I rowsort
SELECT - 27 + ( 71 )
----
44

query I rowsort
SELECT + 71 * - 34 * - - 69 col1
----
-166566

query I rowsort
SELECT ALL + 7 + + 8 AS col2
----
15

query I rowsort
SELECT - - 38 + 1 AS col0
----
39

query I rowsort
SELECT ALL - + 16 + - 31 + 84 + + 75
----
112

query I rowsort
SELECT DISTINCT 72 + + - 99 col2
----
-27

query I rowsort
SELECT ALL + 41 * + 91 - + 7
----
3724

query I rowsort
SELECT DISTINCT + + 79 - 62 AS col1
----
17

query I rowsort
SELECT ALL 74 - + - 4
----
78

query II rowsort
SELECT + 89 AS col1, + 42 AS col2
----
89
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7184
SELECT + MAX( - ( + - 20 ) ) DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7184
SELECT + MAX ( - ( + - 20 ) ) / 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT - + 25 * - 81 * - - ( - MIN( - 42 ) ) + CASE + 34 WHEN + 43 THEN - 18 END + - - 48 + + 62 / - COUNT( * ) + + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT - + 25 * - 81 * - - ( - MIN ( - 42 ) ) + CASE + 34 WHEN + 43 THEN - 18 END + - - 48 + + 62 / - COUNT ( * ) + + 62 AS col1
----
NULL

query I rowsort
SELECT + + 20 * - 83 AS col2
----
-1660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7187
SELECT ALL + 96 AS col1, CAST( + 35 AS SIGNED ) AS col1
----
96
35

skipif mysql # not compatible
query II rowsort label-7187
SELECT ALL + 96 AS col1, CAST ( + 35 AS INTEGER ) AS col1
----
96
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7188
SELECT DISTINCT + CASE 24 WHEN - - 1 * + 42 THEN - + 61 + - + 50 / + 67 WHEN - 34 * - 63 + MAX( + 1 ) * 36 + - + 24 THEN - COUNT( * ) * + CAST( + ( - 65 ) AS SIGNED ) + + 50 WHEN + + 37 THEN NULL ELSE NULL END, COALESCE ( + NULLIF ( + 45, 14 ), + 38 * - - COALESCE ( - 75, CAST( NULL AS SIGNED ), + COUNT( * ) ) * + CAST( NULL AS SIGNED ) + ( + SUM( DISTINCT 88 ) ) + - 66 ) + + 52 AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-7188
SELECT DISTINCT + CASE 24 WHEN - - 1 * + 42 THEN - + 61 + - + 50 / + 67 WHEN - 34 * - 63 + MAX ( + 1 ) * 36 + - + 24 THEN - COUNT ( * ) * + CAST ( + ( - 65 ) AS INTEGER ) + + 50 WHEN + + 37 THEN NULL ELSE NULL END, COALESCE ( + NULLIF ( + 45, 14 ), + 38 * - - COALESCE ( - 75, CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + ( + SUM ( DISTINCT 88 ) ) + - 66 ) + + 52 AS col0
----
NULL
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7189
SELECT COUNT( * ) * 53 + - SUM( ALL + 11 ) + + 60 * 51 AS col2, - 39 DIV + - 10 AS col0
----
3102
3

skipif mysql # not compatible
query II rowsort label-7189
SELECT COUNT ( * ) * 53 + - SUM ( ALL + 11 ) + + 60 * 51 AS col2, - 39 / + - 10 AS col0
----
3102
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7190
SELECT + MIN( 61 ), 52 + COUNT( * ) AS col2
----
61
53

skipif mysql # not compatible
query II rowsort label-7190
SELECT + MIN ( 61 ), 52 + COUNT ( * ) AS col2
----
61
53

query I rowsort
SELECT ALL + ( - 71 ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT + 9 * + + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7192
SELECT + 9 * + + COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL 20 * COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL 20 * COUNT ( * ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7194
SELECT + 26 DIV - + 95 col1, - CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7194
SELECT + 26 / - + 95 col1, - CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7195
SELECT ALL - COUNT( * ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL - COUNT ( * ) / 28
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7196
SELECT - NULLIF ( + 34, + 51 - + CAST( + - CAST( - 21 AS SIGNED ) AS SIGNED ) ) * - - COUNT( * ) + - 37 - + MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT - NULLIF ( + 34, + 51 - + CAST ( + - CAST ( - 21 AS INTEGER ) AS INTEGER ) ) * - - COUNT ( * ) + - 37 - + MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7197
SELECT + CAST( NULL AS SIGNED ) + 91 * 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT + CAST ( NULL AS INTEGER ) + 91 * 77 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 26 * + NULLIF ( 79, - 58 ), - 6 AS col1
----
2054
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7199
SELECT CAST( NULL AS SIGNED ) * - + ( 12 ) + COUNT( * ) + - + 66 + - COUNT( * ) + COUNT( * ) * + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT - NULLIF ( - ( 39 ), - 8 ) ) * - MAX( + 23 ) * 81 * ( 64 ) + - - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT CAST ( NULL AS INTEGER ) * - + ( 12 ) + COUNT ( * ) + - + 66 + - COUNT ( * ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT - NULLIF ( - ( 39 ), - 8 ) ) * - MAX ( + 23 ) * 81 * ( 64 ) + - - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT CASE + 23 WHEN - 39 * 95 THEN + 74 + - + MIN( ALL + + 89 ) * + 56 + - 70 WHEN + 78 / 70 THEN + - 25 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT CASE + 23 WHEN - 39 * 95 THEN + 74 + - + MIN ( ALL + + 89 ) * + 56 + - 70 WHEN + 78 / 70 THEN + - 25 END AS col2
----
NULL

query I rowsort
SELECT + 72 * + + 41
----
2952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7202
SELECT + 84 * - CAST( NULL AS SIGNED ) col1, 28 + COUNT( * ) + NULLIF ( - 5, + - 95 ) * - ( + CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7202
SELECT + 84 * - CAST ( NULL AS INTEGER ) col1, 28 + COUNT ( * ) + NULLIF ( - 5, + - 95 ) * - ( + CAST ( NULL AS INTEGER ) )
----
NULL
NULL

query I rowsort
SELECT DISTINCT ( 11 ) * + 54 * 75 + 34
----
44584

query I rowsort
SELECT ALL 25 * - + 11
----
-275

query I rowsort
SELECT + 36 * - + 72
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL - 37 * + 66 + - COUNT( * ) - - 56 * 74 AS col1
----
1701

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL - 37 * + 66 + - COUNT ( * ) - - 56 * 74 AS col1
----
1701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7207
SELECT ALL CASE CASE + + 10 WHEN 61 THEN NULL ELSE 14 + 95 * - 52 * + + 32 END WHEN 39 * - + SUM( 57 ) THEN + 52 * - CAST( NULL AS SIGNED ) + + 45 WHEN + 98 THEN + CASE + 13 WHEN - + 93 THEN NULL WHEN + 6 * - + 82 * + COUNT( * ) + 35 THEN CAST( 28 AS SIGNED ) ELSE - 69 END + + 10 * ( 71 * - CASE 12 * + COUNT( * ) WHEN + CASE 12 WHEN + 58 THEN + MAX( ALL 83 ) + 86 WHEN - COUNT( * ) + - CASE + COUNT( * ) WHEN - COALESCE ( 95, 18 / 18 - - 85 ) * + 70 + + ( - 46 ) * - ( + 65 * + 32 ) THEN 53 * + COUNT( * ) END / - 54 THEN NULL ELSE COUNT( * ) END - - 28 THEN NULL ELSE + 76 + + 64 END + - 95 ) ELSE - 13 END AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL CASE CASE + + 10 WHEN 61 THEN NULL ELSE 14 + 95 * - 52 * + + 32 END WHEN 39 * - + SUM ( 57 ) THEN + 52 * - CAST ( NULL AS INTEGER ) + + 45 WHEN + 98 THEN + CASE + 13 WHEN - + 93 THEN NULL WHEN + 6 * - + 82 * + COUNT ( * ) + 35 THEN CAST ( 28 AS INTEGER ) ELSE - 69 END + + 10 * ( 71 * - CASE 12 * + COUNT ( * ) WHEN + CASE 12 WHEN + 58 THEN + MAX ( ALL 83 ) + 86 WHEN - COUNT ( * ) + - CASE + COUNT ( * ) WHEN - COALESCE ( 95, 18 / 18 - - 85 ) * + 70 + + ( - 46 ) * - ( + 65 * + 32 ) THEN 53 * + COUNT ( * ) END / - 54 THEN NULL ELSE COUNT ( * ) END - - 28 THEN NULL ELSE + 76 + + 64 END + - 95 ) ELSE - 13 END AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-7208
SELECT - 98 AS col1, + 25 * + COUNT( * ) * - 78
----
-98
-1950

skipif mysql # not compatible
query II rowsort label-7208
SELECT - 98 AS col1, + 25 * + COUNT ( * ) * - 78
----
-98
-1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7210
SELECT + - 48 DIV - - 70 + ( + + 84 ) - - 95 * - + 80 * + - 67 * COUNT( * )
----
509284

skipif mysql # not compatible
query I rowsort label-7210
SELECT + - 48 / - - 70 + ( + + 84 ) - - 95 * - + 80 * + - 67 * COUNT ( * )
----
509284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7211
SELECT ALL + 25 * - SUM( ALL + - 73 ) + + COUNT( DISTINCT CAST( 60 AS SIGNED ) ) + + 52 + - 99 + + 9
----
1788

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL + 25 * - SUM ( ALL + - 73 ) + + COUNT ( DISTINCT CAST ( 60 AS INTEGER ) ) + + 52 + - 99 + + 9
----
1788

query I rowsort
SELECT - - ( + 34 ) col2
----
34

query I rowsort
SELECT + COALESCE ( + - 28, + 88 - + + NULLIF ( + - 13, + 64 ) + + - 33 ) col2
----
-28

query I rowsort
SELECT - - COALESCE ( 53, 72 )
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-7215
SELECT 23 - + 3 + - 25 DIV + - 74 + - 87 * + 53 + + 52 AS col0, - 64 col1
----
-4539
-64

skipif mysql # not compatible
query II rowsort label-7215
SELECT 23 - + 3 + - 25 / + - 74 + - 87 * + 53 + + 52 AS col0, - 64 col1
----
-4539
-64

query I rowsort
SELECT ALL + 12 * + 30 AS col2
----
360

query I rowsort
SELECT DISTINCT - 54 - - - 10 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT + SUM( - 55 ) * COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT + SUM ( - 55 ) * COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL - - 89 - 15 + + CASE + - COUNT( * ) WHEN - 11 THEN NULL WHEN 36 THEN + 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL - - 89 - 15 + + CASE + - COUNT ( * ) WHEN - 11 THEN NULL WHEN 36 THEN + 97 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7220
SELECT 46 DIV - COUNT( + 4 )
----
-46

skipif mysql # not compatible
query I rowsort label-7220
SELECT 46 / - COUNT ( + 4 )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7221
SELECT DISTINCT + 4 DIV + ( 39 ) * 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT + 4 / + ( 39 ) * 72 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT CAST( - + ( - NULLIF ( - 44, + + 50 ) ) AS SIGNED ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7222
SELECT CAST ( - + ( - NULLIF ( - 44, + + 50 ) ) AS INTEGER ) AS col1
----
-44

query II rowsort
SELECT + 99 + 39 AS col0, 26
----
138
26

query I rowsort
SELECT ALL - 59 * 65 AS col2
----
-3835

onlyif mysql # aggregate syntax: 
query II rowsort label-7225
SELECT ALL - 50 * 68 AS col2, + ( - NULLIF ( 95, - MAX( ALL - ( - 43 ) ) ) )
----
-3400
-95

skipif mysql # not compatible
query II rowsort label-7225
SELECT ALL - 50 * 68 AS col2, + ( - NULLIF ( 95, - MAX ( ALL - ( - 43 ) ) ) )
----
-3400
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7226
SELECT 50 * - 0 * 84 AS col0, 22 + 16 * + COUNT( * ) + + 31 col1
----
0
69

skipif mysql # not compatible
query II rowsort label-7226
SELECT 50 * - 0 * 84 AS col0, 22 + 16 * + COUNT ( * ) + + 31 col1
----
0
69

query II rowsort
SELECT DISTINCT - ( 69 ) AS col2, 55 * 33
----
-69
1815

query I rowsort
SELECT 40 * 16
----
640

query I rowsort
SELECT ALL - 15 + + 98
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT CASE - 23 WHEN 71 * COUNT( * ) THEN - 70 WHEN + 53 THEN - 58 END * 83 / + CASE 96 WHEN + ( 27 ) THEN + - 74 END * - 68 + + - 12 - + - 12 - - 71 * 36 * - - 94 + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT CASE - 23 WHEN 71 * COUNT ( * ) THEN - 70 WHEN + 53 THEN - 58 END * 83 / + CASE 96 WHEN + ( 27 ) THEN + - 74 END * - 68 + + - 12 - + - 12 - - 71 * 36 * - - 94 + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7231
SELECT DISTINCT + 42 + - - ( - 56 ) - 76 + 39 + MAX( ALL + 5 ) * - ( + 79 ) * + 65, - 6 - - - 51 * + - 30 * + 89 AS col1
----
-25726
136164

skipif mysql # not compatible
query II rowsort label-7231
SELECT DISTINCT + 42 + - - ( - 56 ) - 76 + 39 + MAX ( ALL + 5 ) * - ( + 79 ) * + 65, - 6 - - - 51 * + - 30 * + 89 AS col1
----
-25726
136164

query I rowsort
SELECT 75 * - 11 col1
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT ALL COUNT( * ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL COUNT ( * ) * - 28
----
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7234
SELECT ALL + 16 + - ( - 61 ) * + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL + 16 + - ( - 61 ) * + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT 16 * - + 86 + + COUNT( * ) AS col2
----
-1375

skipif mysql # not compatible
query I rowsort label-7235
SELECT 16 * - + 86 + + COUNT ( * ) AS col2
----
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT COUNT( * ) * - + 3
----
-3

skipif mysql # not compatible
query I rowsort label-7236
SELECT COUNT ( * ) * - + 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT 75 + + + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7237
SELECT 75 + + + COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7238
SELECT + 14 + - - 55 AS col0, + 39 * + MAX( ALL - 58 )
----
69
-2262

skipif mysql # not compatible
query II rowsort label-7238
SELECT + 14 + - - 55 AS col0, + 39 * + MAX ( ALL - 58 )
----
69
-2262

query I rowsort
SELECT ALL - ( - 8 ) * - + 27
----
-216

query I rowsort
SELECT + + COALESCE ( + + 77, 98 * - 28, - 60 ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7241
SELECT COALESCE ( - - 92, - 21 - - - 87, + + COUNT( * ) + CAST( NULL AS SIGNED ) )
----
92

skipif mysql # not compatible
query I rowsort label-7241
SELECT COALESCE ( - - 92, - 21 - - - 87, + + COUNT ( * ) + CAST ( NULL AS INTEGER ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - COUNT( 15 ) + + ( - + 56 )
----
-57

skipif mysql # not compatible
query I rowsort label-7242
SELECT - COUNT ( 15 ) + + ( - + 56 )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-7243
SELECT DISTINCT + 74 * 25 * - COUNT( * ) + + + COUNT( + 3 ), + 81 + 11 AS col1
----
-1849
92

skipif mysql # not compatible
query II rowsort label-7243
SELECT DISTINCT + 74 * 25 * - COUNT ( * ) + + + COUNT ( + 3 ), + 81 + 11 AS col1
----
-1849
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT 91 + 24 + COUNT( * ) * - + 71 + - 64 + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT 91 + 24 + COUNT ( * ) * - + 71 + - 64 + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7245
SELECT - MAX( DISTINCT + 85 ) + + COALESCE ( + + COUNT( * ), - 60 DIV - - 91 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7245
SELECT - MAX ( DISTINCT + 85 ) + + COALESCE ( + + COUNT ( * ), - 60 / - - 91 ) AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7246
SELECT DISTINCT - 14 * 65 AS col0, 52 * NULLIF ( + 75, + CAST( NULL AS SIGNED ) ) * - 90 AS col1
----
-910
-351000

skipif mysql # not compatible
query II rowsort label-7246
SELECT DISTINCT - 14 * 65 AS col0, 52 * NULLIF ( + 75, + CAST ( NULL AS INTEGER ) ) * - 90 AS col1
----
-910
-351000

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT SUM( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7247
SELECT SUM ( - 94 )
----
-94

query I rowsort
SELECT - NULLIF ( + - ( 36 ), + - 29 )
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7249
SELECT 60 + - 98, - CAST( NULL AS DECIMAL ) AS col1
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-7249
SELECT 60 + - 98, - CAST ( NULL AS REAL ) AS col1
----
-38
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT ALL + 31 DIV - 1
----
-31

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL + 31 / - 1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT - 52 + - + 33 + - CAST( + + 51 AS SIGNED ) * + 96
----
-4981

skipif mysql # not compatible
query I rowsort label-7251
SELECT - 52 + - + 33 + - CAST ( + + 51 AS INTEGER ) * + 96
----
-4981

query I rowsort
SELECT - AVG ( ALL - 55 ) / + CASE + - 20 WHEN + - 76 + 61 THEN + AVG ( ALL - 21 ) + + 38 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 67, - 62 + - - 0 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT - 19 * + SUM( + + 86 )
----
-1634

skipif mysql # not compatible
query I rowsort label-7254
SELECT - 19 * + SUM ( + + 86 )
----
-1634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7255
SELECT DISTINCT ( - 74 ) * + + CAST( + 66 AS SIGNED )
----
-4884

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT ( - 74 ) * + + CAST ( + 66 AS INTEGER )
----
-4884

query I rowsort
SELECT COALESCE ( + 79, 74 * 67 ) * + 86 * - ( + 81 ) AS col0
----
-550314

query II rowsort
SELECT + 79 AS col2, + 48 + 24 + - 82
----
79
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT + MIN( + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7258
SELECT + MIN ( + 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT 44 * - COALESCE ( 53, COUNT( * ), - - COUNT( * ), 89 DIV - 81 + + 78 * - + COALESCE ( + 92, 57 DIV + - COUNT( * ) ) * + COUNT( * ) - + + 68 + + CASE + NULLIF ( - ( 45 ), - - ( - + 31 ) ) WHEN + COUNT( * ) THEN NULL ELSE - 99 END DIV - + COUNT( * ) ) * - 18 * + 89
----
3735864

skipif mysql # not compatible
query I rowsort label-7259
SELECT 44 * - COALESCE ( 53, COUNT ( * ), - - COUNT ( * ), 89 / - 81 + + 78 * - + COALESCE ( + 92, 57 / + - COUNT ( * ) ) * + COUNT ( * ) - + + 68 + + CASE + NULLIF ( - ( 45 ), - - ( - + 31 ) ) WHEN + COUNT ( * ) THEN NULL ELSE - 99 END / - + COUNT ( * ) ) * - 18 * + 89
----
3735864

query I rowsort
SELECT DISTINCT 51 * + ( + + ( + + NULLIF ( - 81, 57 ) ) ) + - + 87 AS col1
----
-4218

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT COUNT( DISTINCT - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-7261
SELECT COUNT ( DISTINCT - 99 )
----
1

query I rowsort
SELECT ALL 26 * + 81 + - 90 * 16 col0
----
666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7263
SELECT MAX( + - ( + 56 ) ) * - 14 - - COALESCE ( 36, + - 27 + + 50 ) * + ( + + CAST( 44 AS SIGNED ) ) * + - CASE - 23 WHEN + 2 + 85 * + 92 THEN + AVG ( DISTINCT - 71 ) END + 77 * - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7263
SELECT MAX ( + - ( + 56 ) ) * - 14 - - COALESCE ( 36, + - 27 + + 50 ) * + ( + + CAST ( 44 AS INTEGER ) ) * + - CASE - 23 WHEN + 2 + 85 * + 92 THEN + AVG ( DISTINCT - 71 ) END + 77 * - 87 AS col2
----
NULL

query II rowsort
SELECT ALL - 49, 7 + - 65 AS col2
----
-49
-58

query II rowsort
SELECT DISTINCT + NULLIF ( + - 48, - ( - 62 ) + + 51 ) * - - 83, 17 col2
----
-3984
17

query I rowsort
SELECT ALL 63 * - - ( - 29 ) + 80
----
-1747

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT MIN( ALL + + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7267
SELECT MIN ( ALL + + 32 ) AS col0
----
32

query II rowsort
SELECT ALL - 39 AS col1, ( + 66 )
----
-39
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT + MAX( DISTINCT 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7269
SELECT + MAX ( DISTINCT 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT - + COUNT( * ) * + 64 * - 8 + - 26
----
486

skipif mysql # not compatible
query I rowsort label-7270
SELECT - + COUNT ( * ) * + 64 * - 8 + - 26
----
486

query II rowsort
SELECT ALL + + 34 AS col0, + 98 * - 40
----
34
-3920

query I rowsort
SELECT DISTINCT + 54 - + - 25
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT ALL + + 17 AS col2, COUNT( * ) - + - COUNT( * ) AS col0
----
17
2

skipif mysql # not compatible
query II rowsort label-7273
SELECT ALL + + 17 AS col2, COUNT ( * ) - + - COUNT ( * ) AS col0
----
17
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT DISTINCT + 26 DIV - - 37 col0
----
0

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT + 26 / - - 37 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - - 15 * + 0 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7275
SELECT - - 15 * + 0 * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7277
SELECT ( MAX( - + 96 ) ) AS col0, 70 + + + 65 col1
----
-96
135

skipif mysql # not compatible
query II rowsort label-7277
SELECT ( MAX ( - + 96 ) ) AS col0, 70 + + + 65 col1
----
-96
135

query I rowsort
SELECT - + 38 - 98 col0
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7279
SELECT - 81 * + 25 + - 96, + 36 DIV + COUNT( * ) AS col0
----
-2121
36

skipif mysql # not compatible
query II rowsort label-7279
SELECT - 81 * + 25 + - 96, + 36 / + COUNT ( * ) AS col0
----
-2121
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7280
SELECT DISTINCT + - COUNT( * ) + + 9 DIV + 12 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT + - COUNT ( * ) + + 9 / + 12 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7281
SELECT DISTINCT - COUNT( * ) AS col0, - 3
----
-1
-3

skipif mysql # not compatible
query II rowsort label-7281
SELECT DISTINCT - COUNT ( * ) AS col0, - 3
----
-1
-3

query I rowsort
SELECT + 3 - 51
----
-48

query I rowsort
SELECT + ( - 87 ) - - + 19
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - MIN( DISTINCT - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-7284
SELECT - MIN ( DISTINCT - 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7285
SELECT + 50 + 21 - + ( + 88 ) col2, + CAST( - CAST( + + NULLIF ( - 83, 83 ) AS SIGNED ) AS SIGNED ) + + 21 + 68 * - 17 * + 43 + - - 45 DIV ( + + 81 ) DIV + 70 + - + 6 + + 76
----
-17
-49534

skipif mysql # not compatible
query II rowsort label-7285
SELECT + 50 + 21 - + ( + 88 ) col2, + CAST ( - CAST ( + + NULLIF ( - 83, 83 ) AS INTEGER ) AS INTEGER ) + + 21 + 68 * - 17 * + 43 + - - 45 / ( + + 81 ) / + 70 + - + 6 + + 76
----
-17
-49534

query II rowsort
SELECT - ( 22 ), - 18 AS col2
----
-22
-18

query I rowsort
SELECT ( 49 ) col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7288
SELECT DISTINCT 16 DIV - 86 + - 6 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT 16 / - 86 + - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT + COUNT( - + 86 ) DIV + - 44 * 67 + - + 21 + + 28 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7289
SELECT + COUNT ( - + 86 ) / + - 44 * 67 + - + 21 + + 28 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7290
SELECT ALL 90 * 68 + - COUNT( * ) + + ( - - AVG ( + 24 ) ) / - NULLIF ( CAST( NULL AS SIGNED ), 85 * + MIN( ALL + 99 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL 90 * 68 + - COUNT ( * ) + + ( - - AVG ( + 24 ) ) / - NULLIF ( CAST ( NULL AS INTEGER ), 85 * + MIN ( ALL + 99 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 60 * - 22 AS col2
----
-1320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7292
SELECT 52 DIV COUNT( ALL - 44 ) + + + 18
----
70

skipif mysql # not compatible
query I rowsort label-7292
SELECT 52 / COUNT ( ALL - 44 ) + + + 18
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7293
SELECT + COUNT( CAST( NULL AS SIGNED ) ) * 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7293
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) * 21 AS col2
----
0

query II rowsort
SELECT - 66 + + ( 25 ) + + + 92 AS col0, - 42
----
51
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT + ( + ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7295
SELECT + ( + ( - COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT - 34 * - + COUNT( * ) + + 56 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7296
SELECT - 34 * - + COUNT ( * ) + + 56 AS col1
----
90

query I rowsort
SELECT + ( 56 ) * - 57
----
-3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7298
SELECT - MAX( + 48 ) * MIN( + 39 ) + - MAX( - CAST( NULL AS SIGNED ) ) + + + MAX( - - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT - MAX ( + 48 ) * MIN ( + 39 ) + - MAX ( - CAST ( NULL AS INTEGER ) ) + + + MAX ( - - 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT MIN( - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-7299
SELECT MIN ( - 11 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7300
SELECT COALESCE ( 77, - - CASE 27 WHEN - 11 THEN 79 WHEN - + COUNT( * ) THEN + + NULLIF ( - - CASE 18 WHEN + 36 * + 45 THEN NULL WHEN + - 50 + + - 27 + + MIN( + CAST( 15 AS DECIMAL ) ) / - 15 * AVG ( DISTINCT + 60 ) THEN 21 ELSE + 47 END, - 68 ) ELSE NULL END - - 37 )
----
77

skipif mysql # not compatible
query I rowsort label-7300
SELECT COALESCE ( 77, - - CASE 27 WHEN - 11 THEN 79 WHEN - + COUNT ( * ) THEN + + NULLIF ( - - CASE 18 WHEN + 36 * + 45 THEN NULL WHEN + - 50 + + - 27 + + MIN ( + CAST ( 15 AS REAL ) ) / - 15 * AVG ( DISTINCT + 60 ) THEN 21 ELSE + 47 END, - 68 ) ELSE NULL END - - 37 )
----
77

query I rowsort
SELECT ALL + 25 * - ( - + 38 ) * - 69
----
-65550

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT DISTINCT + CASE - 4 WHEN + MIN( + ( + + 92 ) ) / + - ( - + ( + + 45 ) ) + - 31 THEN + 0 ELSE - 74 END * - 43
----
3182

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT + CASE - 4 WHEN + MIN ( + ( + + 92 ) ) / + - ( - + ( + + 45 ) ) + - 31 THEN + 0 ELSE - 74 END * - 43
----
3182

onlyif mysql # DIV for integer division: 
query II rowsort label-7303
SELECT - 98 DIV - - 74, - 64 + - + 42 AS col1
----
-1
-106

skipif mysql # not compatible
query II rowsort label-7303
SELECT - 98 / - - 74, - 64 + - + 42 AS col1
----
-1
-106

query I rowsort
SELECT ALL 15 * 32 + - + 93 + 38 AS col2
----
425

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT ALL - + 27 DIV - 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL - + 27 / - 96 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7306
SELECT - 1 + COUNT( DISTINCT - CASE - 71 WHEN + 86 * + - 72 + - 92 THEN NULL WHEN + + 19 THEN - - 93 / 94 END ) + + 17 - - 72 + COUNT( * ) * - - 78 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT - 1 + COUNT ( DISTINCT - CASE - 71 WHEN + 86 * + - 72 + - 92 THEN NULL WHEN + + 19 THEN - - 93 / 94 END ) + + 17 - - 72 + COUNT ( * ) * - - 78 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT ALL 40 + - 51 AS col2, + COUNT( * ) * - + MAX( ALL ( - 48 ) )
----
-11
48

skipif mysql # not compatible
query II rowsort label-7307
SELECT ALL 40 + - 51 AS col2, + COUNT ( * ) * - + MAX ( ALL ( - 48 ) )
----
-11
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 51 * - ( + 41 ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 51 * - ( + 41 ) + 70
----
NULL

query I rowsort
SELECT - + 51 + 97 + 8 + + + 36 * + 9 AS col1
----
378

query I rowsort
SELECT + 80 + - 81 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL ( COUNT( - 8 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL ( COUNT ( - 8 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7312
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 89 + + + MAX( + + 39 )
----
NULL
128

skipif mysql # not compatible
query II rowsort label-7312
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 89 + + + MAX ( + + 39 )
----
NULL
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT ALL + 29 - ( + CAST( + 26 AS SIGNED ) ) col0
----
3

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL + 29 - ( + CAST ( + 26 AS INTEGER ) ) col0
----
3

query II rowsort
SELECT 56, - 28 AS col0
----
56
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7315
SELECT ALL 8 - + + 45 + + + 95 col0, MAX( - - 20 ) col1
----
58
20

skipif mysql # not compatible
query II rowsort label-7315
SELECT ALL 8 - + + 45 + + + 95 col0, MAX ( - - 20 ) col1
----
58
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + 90 * COUNT( * ) * MIN( - 49 ) AS col2
----
-4410

skipif mysql # not compatible
query I rowsort label-7316
SELECT + 90 * COUNT ( * ) * MIN ( - 49 ) AS col2
----
-4410

query I rowsort
SELECT ALL 48 * + + 4 AS col0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-7318
SELECT 94 DIV - 63 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7318
SELECT 94 / - 63 AS col0
----
-1

query I rowsort
SELECT DISTINCT - ( + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT 0 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT 0 * + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL 16 * + - 47
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT ALL - - SUM( DISTINCT - 32 ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL - - SUM ( DISTINCT - 32 ) col0
----
-32

query I rowsort
SELECT 36 * + - 49 col1
----
-1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7324
SELECT ALL + MIN( ALL - CAST( - 85 AS SIGNED ) ) * - 43 + + 70 * + ( - + 82 ) col0
----
-9395

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + MIN ( ALL - CAST ( - 85 AS INTEGER ) ) * - 43 + + 70 * + ( - + 82 ) col0
----
-9395

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ( - 39 ) + - MIN( ALL NULLIF ( 38, + - 58 + - + 63 ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7325
SELECT ( - 39 ) + - MIN ( ALL NULLIF ( 38, + - 58 + - + 63 ) ) AS col2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7326
SELECT + 22 DIV + - ( + + COALESCE ( 32, - 6 + - 21 + + 57 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7326
SELECT + 22 / + - ( + + COALESCE ( 32, - 6 + - 21 + + 57 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT NULLIF ( 26, COUNT( * ) ) * 46
----
1196

skipif mysql # not compatible
query I rowsort label-7327
SELECT NULLIF ( 26, COUNT ( * ) ) * 46
----
1196

query I rowsort
SELECT DISTINCT - - 84 AS col1
----
84

query I rowsort
SELECT DISTINCT - 74 + 8 col0
----
-66

query I rowsort
SELECT ALL + + 75 + 61 * - - ( - - ( - + 89 ) ) * 80 AS col2
----
-434245

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT - 72 * MAX( ALL + 59 ) * 86 AS col1
----
-365328

skipif mysql # not compatible
query I rowsort label-7331
SELECT - 72 * MAX ( ALL + 59 ) * 86 AS col1
----
-365328

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7332
SELECT ALL - 97, - ( - COALESCE ( 98, - 29 + - 99 ) ) * 63 * CAST( - 80 AS SIGNED ) * - 6 * - 85 AS col1
----
-97
-251899200

skipif mysql # not compatible
query II rowsort label-7332
SELECT ALL - 97, - ( - COALESCE ( 98, - 29 + - 99 ) ) * 63 * CAST ( - 80 AS INTEGER ) * - 6 * - 85 AS col1
----
-97
-251899200

query II rowsort
SELECT + 53 col2, 12
----
53
12

query II rowsort
SELECT - 87, 56 * - 19 AS col1
----
-87
-1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT DISTINCT CAST( 56 AS SIGNED ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT CAST ( 56 AS INTEGER ) AS col1
----
56

query I rowsort
SELECT + 8 * + 90
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - - CASE + 81 WHEN - - COUNT( * ) + - ( + + 45 ) * - 24 * - SUM( + - ( + 9 ) ) * 8 THEN NULL WHEN + AVG ( 60 ) THEN + 94 * + 3 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7337
SELECT - - CASE + 81 WHEN - - COUNT ( * ) + - ( + + 45 ) * - 24 * - SUM ( + - ( + 9 ) ) * 8 THEN NULL WHEN + AVG ( 60 ) THEN + 94 * + 3 ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7338
SELECT + CAST( + + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-7338
SELECT + CAST ( + + 10 AS INTEGER )
----
10

query I rowsort
SELECT ALL + + 71 + 11 + - 70 + ( + 10 ) AS col2
----
22

query I rowsort
SELECT - - 94 col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7341
SELECT 60 - ( + 28 ) * 94 + - 57 DIV 16 - - 2, COUNT( * ) * 68 * - MIN( ALL 92 ) col2
----
-2573
-6256

skipif mysql # not compatible
query II rowsort label-7341
SELECT 60 - ( + 28 ) * 94 + - 57 / 16 - - 2, COUNT ( * ) * 68 * - MIN ( ALL 92 ) col2
----
-2573
-6256

onlyif mysql # aggregate syntax: 
query II rowsort label-7342
SELECT 4 AS col0, - 13 * COUNT( * ) * - 80 AS col1
----
4
1040

skipif mysql # not compatible
query II rowsort label-7342
SELECT 4 AS col0, - 13 * COUNT ( * ) * - 80 AS col1
----
4
1040

query I rowsort
SELECT DISTINCT 91 + + ( + 41 ) AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT DISTINCT + COUNT( * ) - ( - - COUNT( ALL + 86 ) ) + + 73 * + + 38 + 20 * + 28 * 51
----
31334

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + COUNT ( * ) - ( - - COUNT ( ALL + 86 ) ) + + 73 * + + 38 + 20 * + 28 * 51
----
31334

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7345
SELECT DISTINCT 82, - 3 * + + 36 - - CAST( NULL AS DECIMAL ) * - 55 + + - 36 AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-7345
SELECT DISTINCT 82, - 3 * + + 36 - - CAST ( NULL AS REAL ) * - 55 + + - 36 AS col0
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL + 97 - + + COUNT( * ) - - - 25
----
71

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL + 97 - + + COUNT ( * ) - - - 25
----
71

query I rowsort
SELECT 98 * - 38
----
-3724

onlyif mysql # DIV for integer division: 
query I rowsort label-7348
SELECT ALL - 70 DIV + - 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL - 70 / + - 48 AS col2
----
1

query I rowsort
SELECT 69 + + 64
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT 78 + + - 60 * 82 * + 42 + - 69 - - + COALESCE ( + - 56, - + COUNT( * ) * + COALESCE ( - 35, 28 * + 50 * 49 ) )
----
-206687

skipif mysql # not compatible
query I rowsort label-7350
SELECT 78 + + - 60 * 82 * + 42 + - 69 - - + COALESCE ( + - 56, - + COUNT ( * ) * + COALESCE ( - 35, 28 * + 50 * 49 ) )
----
-206687

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL + COUNT( ALL - 81 ) - + MIN( + 44 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL + COUNT ( ALL - 81 ) - + MIN ( + 44 ) AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7352
SELECT 85 * + + 3 DIV COUNT( * )
----
255

skipif mysql # not compatible
query I rowsort label-7352
SELECT 85 * + + 3 / COUNT ( * )
----
255

query II rowsort
SELECT - 51, - 54 AS col2
----
-51
-54

query I rowsort
SELECT DISTINCT - 80 * - + 55 * - + 87 AS col2
----
-382800

query II rowsort
SELECT DISTINCT 57, 45 AS col1
----
57
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7356
SELECT 10 * CASE + 52 WHEN - - 45 + 24 + - 24 * + + CAST( NULL AS DECIMAL ) THEN 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT 10 * CASE + 52 WHEN - - 45 + 24 + - 24 * + + CAST ( NULL AS REAL ) THEN 54 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT - 25 * ( + 44 ) + - 64 + 58 + + 97 - - - 0 - - COUNT( * ) * - + MIN( + - COALESCE ( + 66, - 89 ) ) AS col1
----
-943

skipif mysql # not compatible
query I rowsort label-7357
SELECT - 25 * ( + 44 ) + - 64 + 58 + + 97 - - - 0 - - COUNT ( * ) * - + MIN ( + - COALESCE ( + 66, - 89 ) ) AS col1
----
-943

query I rowsort
SELECT ALL - NULLIF ( - + 38, - 62 + - + 10 ) AS col2
----
38

query II rowsort
SELECT DISTINCT - 90, 35 + - 82 AS col1
----
-90
-47

query I rowsort
SELECT + ( + ( 95 ) ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7361
SELECT 91 + - COUNT( * ) DIV + - 51
----
91

skipif mysql # not compatible
query I rowsort label-7361
SELECT 91 + - COUNT ( * ) / + - 51
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT SUM( + 40 ) + + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-7362
SELECT SUM ( + 40 ) + + + COUNT ( * )
----
41

query I rowsort
SELECT DISTINCT 46 + 73
----
119

query I rowsort
SELECT - 89 * 39
----
-3471

query II rowsort
SELECT ALL 73 + - 1 AS col0, + 20 AS col1
----
72
20

query I rowsort
SELECT DISTINCT + 45 + + ( + 29 )
----
74

query I rowsort
SELECT + 56 + - 69
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + - COUNT( 16 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7368
SELECT + - COUNT ( 16 ) col2
----
-1

query I rowsort
SELECT ALL + 21 * + 83 - + + 69
----
1674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT + ( + - 0 ) + + CAST( + + 97 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7370
SELECT + ( + - 0 ) + + CAST ( + + 97 AS INTEGER ) AS col0
----
97

query I rowsort
SELECT + NULLIF ( 32, 37 + + + 27 )
----
32

query I rowsort
SELECT ALL 75 + + - 60
----
15

query I rowsort
SELECT 9 + ( + 12 )
----
21

query II rowsort
SELECT - 33, + 80 * - + 30 - + 51 * - 95 AS col0
----
-33
2445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7375
SELECT MIN( DISTINCT - - 67 ) * + 88 + + - CASE - 67 WHEN ( - + 81 ) THEN NULL WHEN + 22 THEN - - 26 * - 39 * 83 + 1 * + 44 END + + - 36 + + COUNT( CAST( 40 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT MIN ( DISTINCT - - 67 ) * + 88 + + - CASE - 67 WHEN ( - + 81 ) THEN NULL WHEN + 22 THEN - - 26 * - 39 * 83 + 1 * + 44 END + + - 36 + + COUNT ( CAST ( 40 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 29 - - 24 + - - 12 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT + MAX( + 62 ) * + 26 AS col2
----
1612

skipif mysql # not compatible
query I rowsort label-7377
SELECT + MAX ( + 62 ) * + 26 AS col2
----
1612

onlyif mysql # aggregate syntax: 
query II rowsort label-7378
SELECT - 43 + - + 72 + - + COUNT( * ) * 27 + + 82 AS col1, NULLIF ( - 45, + 52 ) AS col0
----
-60
-45

skipif mysql # not compatible
query II rowsort label-7378
SELECT - 43 + - + 72 + - + COUNT ( * ) * 27 + + 82 AS col1, NULLIF ( - 45, + 52 ) AS col0
----
-60
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT DISTINCT 2 * + COALESCE ( + 50, + - COUNT( * ) + + 11 * + - COUNT( + + 42 ) * - NULLIF ( COUNT( * ), 94 ) - + 40 * - + 65 * + 42 * - COUNT( * ) * - + SUM( ALL 74 ), + 46 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT 2 * + COALESCE ( + 50, + - COUNT ( * ) + + 11 * + - COUNT ( + + 42 ) * - NULLIF ( COUNT ( * ), 94 ) - + 40 * - + 65 * + 42 * - COUNT ( * ) * - + SUM ( ALL 74 ), + 46 ) AS col2
----
100

query III rowsort
SELECT ALL 36 * + - 82 * - 34, - 84 * + 12 AS col0, 62 AS col2
----
100368
-1008
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7381
SELECT - 83 * + 49 AS col0, + MAX( CAST( + 47 AS SIGNED ) )
----
-4067
47

skipif mysql # not compatible
query II rowsort label-7381
SELECT - 83 * + 49 AS col0, + MAX ( CAST ( + 47 AS INTEGER ) )
----
-4067
47

query I rowsort
SELECT - 91 * - 1 + 81 * + + 77
----
6328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT COUNT( * ) * - 35 + CAST( + - 69 AS SIGNED ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-7383
SELECT COUNT ( * ) * - 35 + CAST ( + - 69 AS INTEGER ) AS col0
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7384
SELECT COALESCE ( + CAST( - MIN( DISTINCT 5 ) AS SIGNED ), - ( + CAST( - - 88 AS SIGNED ) ) DIV 5, 29 + - + NULLIF ( - 50, + + 58 ) ), 63 AS col0
----
-5
63

skipif mysql # not compatible
query II rowsort label-7384
SELECT COALESCE ( + CAST ( - MIN ( DISTINCT 5 ) AS INTEGER ), - ( + CAST ( - - 88 AS INTEGER ) ) / 5, 29 + - + NULLIF ( - 50, + + 58 ) ), 63 AS col0
----
-5
63

query I rowsort
SELECT - 78 * + 96 * - + 86
----
643968

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT + + 17 * + + 22 + 67 + - MIN( + - ( + - 62 ) ) + + 98 AS col1
----
477

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT + + 17 * + + 22 + 67 + - MIN ( + - ( + - 62 ) ) + + 98 AS col1
----
477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7387
SELECT ALL + CASE 41 WHEN - ( - - 5 ) THEN - COUNT( 19 ) - + CAST( - + 86 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL + CASE 41 WHEN - ( - - 5 ) THEN - COUNT ( 19 ) - + CAST ( - + 86 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT - - COUNT( * ) - - COUNT( * ) + 7
----
9

skipif mysql # not compatible
query I rowsort label-7388
SELECT - - COUNT ( * ) - - COUNT ( * ) + 7
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT ALL + COUNT( + + 6 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL + COUNT ( + + 6 ) col1
----
1

query I rowsort
SELECT - ( - 86 ) col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL - + 91 * COUNT( * ) * + + 68
----
-6188

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL - + 91 * COUNT ( * ) * + + 68
----
-6188

query I rowsort
SELECT - ( - 58 ) * - 23 + + - 32
----
-1366

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT - + 86 + 30 + - - COUNT( * ) + + 61
----
6

skipif mysql # not compatible
query I rowsort label-7393
SELECT - + 86 + 30 + - - COUNT ( * ) + + 61
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT + 81 * - + MIN( ALL - 55 ) AS col2
----
4455

skipif mysql # not compatible
query I rowsort label-7394
SELECT + 81 * - + MIN ( ALL - 55 ) AS col2
----
4455

query I rowsort
SELECT DISTINCT + + 12 AS col2
----
12

query I rowsort
SELECT ALL - ( + - 90 ) * - 54
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL + MAX( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + MAX ( + 34 )
----
34

query II rowsort
SELECT + ( + - 1 ) * 8, ( + 51 ) col0
----
-8
51

query I rowsort
SELECT - NULLIF ( 37, - - 67 - + ( + 87 ) ) + - + 11 AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT + CAST( NULL AS SIGNED ) / - + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT + CAST ( NULL AS INTEGER ) / - + 65 AS col1
----
NULL

query I rowsort
SELECT - 85 + - - 79
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL 97 * - 55 * COUNT( * ) AS col2
----
-5335

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL 97 * - 55 * COUNT ( * ) AS col2
----
-5335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT + 67 * - SUM( - + CAST( + - 63 AS SIGNED ) ) col0
----
-4221

skipif mysql # not compatible
query I rowsort label-7403
SELECT + 67 * - SUM ( - + CAST ( + - 63 AS INTEGER ) ) col0
----
-4221

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT - COUNT( DISTINCT 57 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7404
SELECT - COUNT ( DISTINCT 57 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + COUNT( * ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-7405
SELECT + COUNT ( * ) * 64
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7406
SELECT DISTINCT CAST( + 80 AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT CAST ( + 80 AS INTEGER ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL - 98 * - - SUM( + - COALESCE ( + 13, + 65 ) ) AS col1
----
1274

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - 98 * - - SUM ( + - COALESCE ( + 13, + 65 ) ) AS col1
----
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL SUM( - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL SUM ( - 4 ) AS col0
----
-4

query I rowsort
SELECT + 31 - - - ( 28 ) * + 84
----
-2321

query I rowsort
SELECT ALL + 35 * 59
----
2065

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT COALESCE ( - 63, - - ( 77 ) * 26 * + - 98 + ( + + 41 ) * 51 + 16 + - COUNT( * ) * - 44 + + - 75 + + 46 * 94 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT COALESCE ( - 63, - - ( 77 ) * 26 * + - 98 + ( + + 41 ) * 51 + 16 + - COUNT ( * ) * - 44 + + - 75 + + 46 * 94 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT + 95 + - 37 + - + SUM( ( + ( + + 0 ) ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7412
SELECT + 95 + - 37 + - + SUM ( ( + ( + + 0 ) ) ) AS col1
----
58

query I rowsort
SELECT - 77 - + 73 AS col1
----
-150

query II rowsort
SELECT 71 AS col2, + 70 AS col2
----
71
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT + 47 + + 57 - + 48 DIV + - 70
----
104

skipif mysql # not compatible
query I rowsort label-7415
SELECT + 47 + + 57 - + 48 / + - 70
----
104

query I rowsort
SELECT - 53 - 22
----
-75

query I rowsort
SELECT DISTINCT - - 31 + - 22
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7418
SELECT ALL + 20 * + CAST( - COUNT( * ) AS SIGNED ) DIV - 40 * - - 7
----
0

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + 20 * + CAST ( - COUNT ( * ) AS INTEGER ) / - 40 * - - 7
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL - COUNT( DISTINCT - + 53 ) + - - 94 - - 65 + + COUNT( * )
----
159

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - COUNT ( DISTINCT - + 53 ) + - - 94 - - 65 + + COUNT ( * )
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + - 51 + + COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7420
SELECT + - 51 + + COUNT ( * ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT DISTINCT + ( + - COUNT( * ) ) * - 70 * - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT + ( + - COUNT ( * ) ) * - 70 * - COUNT ( * )
----
-70

query II rowsort
SELECT 10 col2, 37 AS col2
----
10
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7423
SELECT + + 36 col0, CAST( - + 47 AS SIGNED )
----
36
-47

skipif mysql # not compatible
query II rowsort label-7423
SELECT + + 36 col0, CAST ( - + 47 AS INTEGER )
----
36
-47

query I rowsort
SELECT + 91 + - 94 * + + 26 AS col0
----
-2353

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT ALL + 4 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL + 4 / + 97 AS col1
----
0

query I rowsort
SELECT + - 99 * - 15 * - ( 70 ) * ( + CASE - 44 WHEN - 70 + - 27 THEN + 55 * + 8 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7427
SELECT + 55, + MAX( DISTINCT 67 ) DIV - 87 AS col2
----
55
0

skipif mysql # not compatible
query II rowsort label-7427
SELECT + 55, + MAX ( DISTINCT 67 ) / - 87 AS col2
----
55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT - 97 * - 52 + + SUM( + + 10 ) + - 43 - - - 51 * 29 AS col1
----
3532

skipif mysql # not compatible
query I rowsort label-7428
SELECT - 97 * - 52 + + SUM ( + + 10 ) + - 43 - - - 51 * 29 AS col1
----
3532

query I rowsort
SELECT - + 74 * 94 AS col1
----
-6956

query I rowsort
SELECT ALL + 69 * - + 90 AS col0
----
-6210

query I rowsort
SELECT 2 * + ( - 38 ) + - 92
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT - 15 - + - 87 * 32 - + 15 DIV + 44
----
2769

skipif mysql # not compatible
query I rowsort label-7432
SELECT - 15 - + - 87 * 32 - + 15 / + 44
----
2769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7433
SELECT - CASE + + ( + 94 ) WHEN - 12 * - 94 / + + ( + 60 ) + + - CASE CASE 98 WHEN + CAST( 70 AS DECIMAL ) + - + 29 - + - 20 THEN - + 84 END WHEN + COUNT( - - 31 ) + + + 90 * + 29 + - - CASE + 36 WHEN + 83 THEN + ( AVG ( 50 ) ) * 79 + 9 + + COUNT( * ) + - - 25 * + + 33 + - 14 + + - 51 * + 78 WHEN + 58 * - 77 + 55 * 86 THEN 92 * + 45 WHEN COUNT( 8 ) THEN NULL END * + CAST( 95 AS SIGNED ) THEN + 40 WHEN 43 + + NULLIF ( + CASE WHEN NOT NULL NOT BETWEEN - NULLIF ( + 79, - 52 ) AND ( NULL ) THEN - COUNT( * ) * 67 ELSE NULLIF ( + 90, 51 ) END, 67 * 79 ) THEN NULL END THEN 76 END + + 48 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT - CASE + + ( + 94 ) WHEN - 12 * - 94 / + + ( + 60 ) + + - CASE CASE 98 WHEN + CAST ( 70 AS REAL ) + - + 29 - + - 20 THEN - + 84 END WHEN + COUNT ( - - 31 ) + + + 90 * + 29 + - - CASE + 36 WHEN + 83 THEN + ( AVG ( 50 ) ) * 79 + 9 + + COUNT ( * ) + - - 25 * + + 33 + - 14 + + - 51 * + 78 WHEN + 58 * - 77 + 55 * 86 THEN 92 * + 45 WHEN COUNT ( 8 ) THEN NULL END * + CAST ( 95 AS INTEGER ) THEN + 40 WHEN 43 + + NULLIF ( + CASE WHEN NOT NULL NOT BETWEEN - NULLIF ( + 79, - 52 ) AND ( NULL ) THEN - COUNT ( * ) * 67 ELSE NULLIF ( + 90, 51 ) END, 67 * 79 ) THEN NULL END THEN 76 END + + 48 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT - 58 * + + COUNT( * ) + + 79 / + SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT - 58 * + + COUNT ( * ) + + 79 / + SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT 39 + - - 76 AS col0
----
115

query I rowsort
SELECT 13 * 49 * - + 41
----
-26117

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT COALESCE ( 39, - NULLIF ( - - 64, - COUNT( * ) ) ) + - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7437
SELECT COALESCE ( 39, - NULLIF ( - - 64, - COUNT ( * ) ) ) + - COUNT ( * ) AS col2
----
38

query I rowsort
SELECT 29 * + 6 AS col0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7439
SELECT - CAST( NULL AS SIGNED ) * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7439
SELECT - CAST ( NULL AS INTEGER ) * - 19
----
NULL

query I rowsort
SELECT - 9 + + + 16
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7441
SELECT DISTINCT 57 * - CASE 89 WHEN - + COUNT( * ) - + COUNT( * ) THEN NULL WHEN - + MIN( + + 96 ) THEN - MIN( - 7 ) END + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT 57 * - CASE 89 WHEN - + COUNT ( * ) - + COUNT ( * ) THEN NULL WHEN - + MIN ( + + 96 ) THEN - MIN ( - 7 ) END + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 5 * 59 * - 9
----
-2655

onlyif mysql # aggregate syntax: 
query II rowsort label-7443
SELECT - + SUM( 8 ) AS col0, - 70 * 77
----
-8
-5390

skipif mysql # not compatible
query II rowsort label-7443
SELECT - + SUM ( 8 ) AS col0, - 70 * 77
----
-8
-5390

query I rowsort
SELECT ALL - ( - + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7445
SELECT + COUNT( * ) DIV - 93 DIV + + 39 + - - 12 + + COUNT( * ) + + MIN( DISTINCT - ( + 90 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-7445
SELECT + COUNT ( * ) / - 93 / + + 39 + - - 12 + + COUNT ( * ) + + MIN ( DISTINCT - ( + 90 ) )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - SUM( DISTINCT + 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - SUM ( DISTINCT + 18 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - ( + + COUNT ( * ) )
----
-1

query II rowsort
SELECT 87 * - 31 AS col1, 97 + 4 * + + 18 AS col0
----
-2697
169

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT 88 DIV NULLIF ( + 76, + - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-7449
SELECT 88 / NULLIF ( + 76, + - 5 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7450
SELECT ALL - COUNT( * ) + + + CAST( + NULLIF ( 43, - - 14 - - + SUM( + 45 ) * - 10 ) AS SIGNED ) + - 44
----
-2

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - COUNT ( * ) + + + CAST ( + NULLIF ( 43, - - 14 - - + SUM ( + 45 ) * - 10 ) AS INTEGER ) + - 44
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7451
SELECT DISTINCT 61 DIV - NULLIF ( - ( - ( CAST( + 79 AS SIGNED ) ) ), 5 )
----
0

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT 61 / - NULLIF ( - ( - ( CAST ( + 79 AS INTEGER ) ) ), 5 )
----
0

query I rowsort
SELECT DISTINCT 79 + + 69 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT DISTINCT + COUNT( * ) * - 32
----
-32

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT + COUNT ( * ) * - 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL + 35 * - - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL + 35 * - - COUNT ( * )
----
35

query I rowsort
SELECT 3 + + + 78 AS col2
----
81

query I rowsort
SELECT 48 * - + 95
----
-4560

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7457
SELECT 19 * + 63 * + 64 AS col1, + 45 DIV NULLIF ( - 90, + + 70 ) + - COUNT( * )
----
76608
-1

skipif mysql # not compatible
query II rowsort label-7457
SELECT 19 * + 63 * + 64 AS col1, + 45 / NULLIF ( - 90, + + 70 ) + - COUNT ( * )
----
76608
-1

query II rowsort
SELECT 21 AS col0, - 54 * 29 AS col1
----
21
-1566

query I rowsort
SELECT 29 - - 48 AS col2
----
77

query I rowsort
SELECT ALL 30 * + + 93
----
2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7461
SELECT DISTINCT - MAX( - 20 ) DIV ( + 72 ) + - 29 DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - MAX ( - 20 ) / ( + 72 ) + - 29 / - 44
----
0

query I rowsort
SELECT 60 * - 28 * 21
----
-35280

onlyif mysql # aggregate syntax: 
query II rowsort label-7463
SELECT + 64 + - 9 + + 73 AS col1, COUNT( * )
----
128
1

skipif mysql # not compatible
query II rowsort label-7463
SELECT + 64 + - 9 + + 73 AS col1, COUNT ( * )
----
128
1

query I rowsort
SELECT 19 - + 51 AS col0
----
-32

query II rowsort
SELECT - + 7 col2, 82 + + 85 AS col0
----
-7
167

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT + COALESCE ( 88, - 55 ) + ( + 55 ) + + + COUNT( * ) * + 57 * + COUNT( * ) col1
----
200

skipif mysql # not compatible
query I rowsort label-7466
SELECT + COALESCE ( 88, - 55 ) + ( + 55 ) + + + COUNT ( * ) * + 57 * + COUNT ( * ) col1
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT 53 / + - CAST( NULL AS SIGNED ) / + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT 53 / + - CAST ( NULL AS INTEGER ) / + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL + - 5 * + COUNT( * ) + ( - 70 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL + - 5 * + COUNT ( * ) + ( - 70 ) AS col2
----
-75

query I rowsort
SELECT - 14 + + + 99 - 68
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT 30 DIV + - 83 + + COUNT( 21 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7470
SELECT 30 / + - 83 + + COUNT ( 21 ) AS col2
----
1

query I rowsort
SELECT + NULLIF ( + 85, - - 72 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT + - MIN( ALL + 11 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-7472
SELECT + - MIN ( ALL + 11 ) col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL + NULLIF ( + - 42, SUM( 68 ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL + NULLIF ( + - 42, SUM ( 68 ) ) AS col1
----
-42

query I rowsort
SELECT + 3 * - 95
----
-285

query I rowsort
SELECT + 72 * - 13 AS col0
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT + COUNT( + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT + COUNT ( + 77 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL 25 * + 68 + - - COUNT( * ) AS col1
----
1701

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL 25 * + 68 + - - COUNT ( * ) AS col1
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL 68 * + - 37 + - CASE COUNT( * ) WHEN + 22 THEN 6 ELSE + 61 * + 25 END AS col2
----
-4041

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL 68 * + - 37 + - CASE COUNT ( * ) WHEN + 22 THEN 6 ELSE + 61 * + 25 END AS col2
----
-4041

query I rowsort
SELECT ALL 74 * 77 + - 24 AS col1
----
5674

query I rowsort
SELECT + NULLIF ( + 61, + - 74 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7481
SELECT ALL + SUM( + - COALESCE ( - NULLIF ( - - COALESCE ( 63, + 75 ), + 27 * + 75 ), 31 ) ) AS col2, - 57 AS col2
----
63
-57

skipif mysql # not compatible
query II rowsort label-7481
SELECT ALL + SUM ( + - COALESCE ( - NULLIF ( - - COALESCE ( 63, + 75 ), + 27 * + 75 ), 31 ) ) AS col2, - 57 AS col2
----
63
-57

query I rowsort
SELECT - ( + 14 ) * + 37 + - ( - 73 )
----
-445

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT MIN( 96 ), + 86 + - 26 col2
----
96
60

skipif mysql # not compatible
query II rowsort label-7483
SELECT MIN ( 96 ), + 86 + - 26 col2
----
96
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT - 54 + - + MIN( DISTINCT 8 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7484
SELECT - 54 + - + MIN ( DISTINCT 8 ) AS col1
----
-62

query I rowsort
SELECT + 66 + + 35 AS col1
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT DISTINCT 72 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT 72 / - 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT 77 * 12 + 39 * 34 * + COUNT( * )
----
2250

skipif mysql # not compatible
query I rowsort label-7487
SELECT 77 * 12 + 39 * 34 * + COUNT ( * )
----
2250

query II rowsort
SELECT DISTINCT - 4 * + 99 AS col1, 6
----
-396
6

query II rowsort
SELECT DISTINCT 7 AS col2, + ( + - 88 ) AS col2
----
7
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7490
SELECT ALL COALESCE ( COUNT( * ), 55 + ( - - 55 ) ) - + CAST( NULL AS SIGNED ), + 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-7490
SELECT ALL COALESCE ( COUNT ( * ), 55 + ( - - 55 ) ) - + CAST ( NULL AS INTEGER ), + 46 AS col2
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL - 86 * + COUNT( + 63 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - 86 * + COUNT ( + 63 ) AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7492
SELECT 12, - 3 + - 39 DIV + CAST( + 64 AS SIGNED ) AS col1
----
12
-3

skipif mysql # not compatible
query II rowsort label-7492
SELECT 12, - 3 + - 39 / + CAST ( + 64 AS INTEGER ) AS col1
----
12
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL 0 * + MAX( DISTINCT - - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL 0 * + MAX ( DISTINCT - - 99 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT COUNT( DISTINCT - + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT COUNT ( DISTINCT - + 85 )
----
1

query I rowsort
SELECT DISTINCT - 41 * - NULLIF ( 37, + 23 ) AS col2
----
1517

query I rowsort
SELECT ALL - - 82 * - COALESCE ( - 58, 90, NULLIF ( - 73, + 62 ) )
----
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT SUM( - 36 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7497
SELECT SUM ( - 36 ) AS col2
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7498
SELECT - CAST( NULL AS DECIMAL ) + - 70 - - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT - CAST ( NULL AS REAL ) + - 70 - - 11
----
NULL

query I rowsort
SELECT - 57 * - 40
----
2280

onlyif mysql # aggregate syntax: 
query II rowsort label-7500
SELECT COUNT( * ), - 93 AS col0
----
1
-93

skipif mysql # not compatible
query II rowsort label-7500
SELECT COUNT ( * ), - 93 AS col0
----
1
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - 31 + COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-7501
SELECT - 31 + COUNT ( * ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT + MAX( ALL - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-7502
SELECT + MAX ( ALL - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT ALL - MIN( + + 32 ), COUNT( * ) col2
----
-32
1

skipif mysql # not compatible
query II rowsort label-7503
SELECT ALL - MIN ( + + 32 ), COUNT ( * ) col2
----
-32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL - 25 * - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL - 25 * - COUNT ( * ) AS col1
----
25

query II rowsort
SELECT ALL 74 AS col2, + 27 col2
----
74
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT - MIN( + - 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7506
SELECT - MIN ( + - 2 ) AS col1
----
2

query I rowsort
SELECT - - 87 * - + 93
----
-8091

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7508
SELECT ALL - 81 DIV + + 16 + - CAST( + + 56 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL - 81 / + + 16 + - CAST ( + + 56 AS INTEGER )
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT - - 70 DIV - 14 + - 1 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-7509
SELECT - - 70 / - 14 + - 1 AS col2
----
-6

query II rowsort
SELECT + 97, 21 + + 64 col0
----
97
85

query I rowsort
SELECT - - 24 col0
----
24

query I rowsort
SELECT - 73 * - 68 + - - 35
----
4999

onlyif mysql # DIV for integer division: 
query I rowsort label-7513
SELECT ALL - ( - 12 ) DIV - 75 + - 42 * 73 AS col0
----
-3066

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL - ( - 12 ) / - 75 + - 42 * 73 AS col0
----
-3066

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT ALL - COUNT( * ) * - - 66 * 98 + 39 * + 94 AS col1
----
-2802

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL - COUNT ( * ) * - - 66 * 98 + 39 * + 94 AS col1
----
-2802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7515
SELECT DISTINCT + 8 / + - MAX( ALL + + 13 ) + + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT + 8 / + - MAX ( ALL + + 13 ) + + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 46 * + - 57 - - 79 + - - 35 col0
----
-2508

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT - 32 DIV 23
----
-1

skipif mysql # not compatible
query I rowsort label-7517
SELECT - 32 / 23
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7518
SELECT ( - COUNT( * ) ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7518
SELECT ( - COUNT ( * ) ), - COUNT ( * )
----
-1
-1

query II rowsort
SELECT ( 45 ), + 94 * + 15 AS col1
----
45
1410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7520
SELECT - COUNT( * ) * - NULLIF ( - NULLIF ( + 40, + 76 ), 29 ) - + COUNT( * ) DIV + + 87
----
-40

skipif mysql # not compatible
query I rowsort label-7520
SELECT - COUNT ( * ) * - NULLIF ( - NULLIF ( + 40, + 76 ), 29 ) - + COUNT ( * ) / + + 87
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7521
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7521
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT + 42 * 74 AS col0
----
3108

query I rowsort
SELECT + ( - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL COUNT( DISTINCT + - 55 ) * ( - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL COUNT ( DISTINCT + - 55 ) * ( - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + COUNT( * ) * 90 * - - 79 * + 5 AS col1
----
35550

skipif mysql # not compatible
query I rowsort label-7525
SELECT + COUNT ( * ) * 90 * - - 79 * + 5 AS col1
----
35550

query I rowsort
SELECT + 83 + + - 63
----
20

query I rowsort
SELECT + 32 + + 42 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7528
SELECT + COALESCE ( - - 89, 41 * 51 ) + + - 81 + + ( + - 19 ) * 22 DIV + - COUNT( * ) col2
----
426

skipif mysql # not compatible
query I rowsort label-7528
SELECT + COALESCE ( - - 89, 41 * 51 ) + + - 81 + + ( + - 19 ) * 22 / + - COUNT ( * ) col2
----
426

query I rowsort
SELECT ALL NULLIF ( + 65, 29 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT DISTINCT 90 * + 23 - + MAX( + - 94 ) + + + COUNT( * )
----
2165

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT 90 * + 23 - + MAX ( + - 94 ) + + + COUNT ( * )
----
2165

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT + 59 DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7531
SELECT + 59 / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT + + 66 + + COUNT( * ) + + - 46 + + 73 - + COUNT( * ) - + COUNT( - + 45 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7532
SELECT + + 66 + + COUNT ( * ) + + - 46 + + 73 - + COUNT ( * ) - + COUNT ( - + 45 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT ALL + - 17 * - + 82 * 2 + - COUNT( * ) * + + 86 * + 75
----
-3662

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL + - 17 * - + 82 * 2 + - COUNT ( * ) * + + 86 * + 75
----
-3662

query I rowsort
SELECT ALL - 96 * - 14 + 1
----
1345

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + - ( + MIN( ALL - 20 ) ) + - - MAX( + 80 ) + + + 68 - + + 37 + + - 91 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7535
SELECT + - ( + MIN ( ALL - 20 ) ) + - - MAX ( + 80 ) + + + 68 - + + 37 + + - 91 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT - 27 * + + SUM( + - 12 )
----
324

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT - 27 * + + SUM ( + - 12 )
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT - + 16 + 35 + - 59 + - 52 + + 67 + - + 3 * - 54 * - 83 * + + ( COUNT( * ) ) AS col2
----
-13471

skipif mysql # not compatible
query I rowsort label-7537
SELECT - + 16 + 35 + - 59 + - 52 + + 67 + - + 3 * - 54 * - 83 * + + ( COUNT ( * ) ) AS col2
----
-13471

query I rowsort
SELECT + 35 + 71 AS col0
----
106

query I rowsort
SELECT 62 + - 52 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7540
SELECT MIN( + + 60 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT MIN ( + + 60 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 62 + 4 * + 84 AS col2
----
274

query II rowsort
SELECT - ( 0 ), + 22 * - + 19 AS col0
----
0
-418

query I rowsort
SELECT ALL + 59 * 86 + + 76 - + 73
----
5077

query I rowsort
SELECT DISTINCT 59 + - 7 - 65 * 17
----
-1053

query III rowsort
SELECT DISTINCT 63 + - 41, + 30 AS col2, + 26 AS col0
----
22
30
26

query I rowsort
SELECT ALL NULLIF ( - 40, + 44 ) AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7547
SELECT DISTINCT + - 87 + - 39 DIV + + 79
----
-87

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT + - 87 + - 39 / + + 79
----
-87

query I rowsort
SELECT DISTINCT + 76 + + + 66 AS col2
----
142

query II rowsort
SELECT + 21, - 33 AS col0
----
21
-33

query I rowsort
SELECT 3 + + + CASE 78 WHEN + 88 * - 92 THEN + 77 * + ( + NULLIF ( - 76, + + 76 ) ) * + + 78 * - 8 END * - + 66 * + 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7551
SELECT DISTINCT + ( ( - MAX( ALL + 75 ) ) ) - - - 65 * + - 66 AS col1, MIN( - 75 ) AS col1
----
4215
-75

skipif mysql # not compatible
query II rowsort label-7551
SELECT DISTINCT + ( ( - MAX ( ALL + 75 ) ) ) - - - 65 * + - 66 AS col1, MIN ( - 75 ) AS col1
----
4215
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL + 58 - + COUNT( * ) + ( - 92 ) * + - 78 * 29 + 97 AS col2
----
208258

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL + 58 - + COUNT ( * ) + ( - 92 ) * + - 78 * 29 + 97 AS col2
----
208258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT 22 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT 22 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT - NULLIF ( - COUNT( * ), + + 27 / + 47 ) * + NULLIF ( + 20, - 20 * 90 ) * - 40 * + + 24 AS col1
----
-19200

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + + 27 / + 47 ) * + NULLIF ( + 20, - 20 * 90 ) * - 40 * + + 24 AS col1
----
-19200

onlyif mysql # DIV for integer division: 
query II rowsort label-7555
SELECT ALL - 3, - 44 DIV + 62 AS col2
----
-3
0

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL - 3, - 44 / + 62 AS col2
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT 38 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT 38 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT DISTINCT - MIN( 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT - MIN ( 36 )
----
-36

query I rowsort
SELECT 22 * + - 13
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT SUM( - 57 ) * 40 * - 64 - + + ( + COALESCE ( - - 31, - 35 * + + 89 * - CASE + 28 WHEN - 79 THEN NULL ELSE - + 69 + - - ( - - 47 ) END, - 17, - ( + - 26 ) ) )
----
145889

skipif mysql # not compatible
query I rowsort label-7559
SELECT SUM ( - 57 ) * 40 * - 64 - + + ( + COALESCE ( - - 31, - 35 * + + 89 * - CASE + 28 WHEN - 79 THEN NULL ELSE - + 69 + - - ( - - 47 ) END, - 17, - ( + - 26 ) ) )
----
145889

query II rowsort
SELECT + 55, 35 AS col1
----
55
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7561
SELECT + COUNT( * ) + - COUNT( DISTINCT - + 32 ) DIV ( + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT + COUNT ( * ) + - COUNT ( DISTINCT - + 32 ) / ( + COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT + SUM( - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-7562
SELECT + SUM ( - 68 )
----
-68

query I rowsort
SELECT DISTINCT + 47 * - CASE - - 9 WHEN - 80 THEN NULL WHEN + 14 THEN 42 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL CASE - COUNT( * ) WHEN COUNT( * ) * 3 THEN NULL WHEN + 18 + + COUNT( * ) * - - 96 THEN NULL ELSE 42 END AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL CASE - COUNT ( * ) WHEN COUNT ( * ) * 3 THEN NULL WHEN + 18 + + COUNT ( * ) * - - 96 THEN NULL ELSE 42 END AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT - COUNT( * ) * - + 32 DIV - 22 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7565
SELECT - COUNT ( * ) * - + 32 / - 22 AS col1
----
-1

query I rowsort
SELECT + 2 + 72
----
74

query II rowsort
SELECT - + 61, 89 - - + 10 AS col0
----
-61
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT DISTINCT 81 + + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT 81 + + COUNT ( * )
----
82

query II rowsort
SELECT - + 51, 39 AS col2
----
-51
39

query I rowsort
SELECT 66 + + 33 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + 69 * - + COUNT( * ) * - + 31
----
2139

skipif mysql # not compatible
query I rowsort label-7571
SELECT + 69 * - + COUNT ( * ) * - + 31
----
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7572
SELECT ALL 8 * + 6 + COALESCE ( COUNT( * ), 24 DIV - - 27, + 83 * + 95 + + COALESCE ( - 93, - 57 ) ) + 39
----
88

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL 8 * + 6 + COALESCE ( COUNT ( * ), 24 / - - 27, + 83 * + 95 + + COALESCE ( - 93, - 57 ) ) + 39
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7573
SELECT 45 DIV - NULLIF ( - 55, - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT 45 / - NULLIF ( - 55, - COUNT ( * ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7574
SELECT DISTINCT - COALESCE ( - 28, CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - ( CASE + 61 WHEN + + 93 THEN NULL WHEN ( + 59 ) / - 24 / - + 22 THEN - NULLIF ( + 11, - ( COUNT( * ) ) + 32 ) END ) )
----
28

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT - COALESCE ( - 28, CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - ( CASE + 61 WHEN + + 93 THEN NULL WHEN ( + 59 ) / - 24 / - + 22 THEN - NULLIF ( + 11, - ( COUNT ( * ) ) + 32 ) END ) )
----
28

query I rowsort
SELECT ALL + 22 * - 68
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT 97 + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7576
SELECT 97 + COUNT ( * ) AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7577
SELECT DISTINCT - ( - - 16 ) - - 1 + - CAST( - - COUNT( * ) AS SIGNED ) * - 31 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT - ( - - 16 ) - - 1 + - CAST ( - - COUNT ( * ) AS INTEGER ) * - 31 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT - 0 DIV - 43 + + + 9 + + 86
----
95

skipif mysql # not compatible
query I rowsort label-7578
SELECT - 0 / - 43 + + + 9 + + 86
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT + 45 * + + CASE - COALESCE ( - 76, - - COUNT( * ) + + - 10, - + 55 ) WHEN - + 63 - + COUNT( DISTINCT - - 7 ) THEN NULL ELSE - - 97 END
----
4365

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT + 45 * + + CASE - COALESCE ( - 76, - - COUNT ( * ) + + - 10, - + 55 ) WHEN - + 63 - + COUNT ( DISTINCT - - 7 ) THEN NULL ELSE - - 97 END
----
4365

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT MIN( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-7580
SELECT MIN ( - 5 )
----
-5

query I rowsort
SELECT 57 * + + 59 AS col0
----
3363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7582
SELECT ALL + CAST( - MIN( ALL 64 ) AS SIGNED ) DIV - + 12 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + CAST ( - MIN ( ALL 64 ) AS INTEGER ) / - + 12 AS col1
----
5

query I rowsort
SELECT ALL - 28 * + - 59 AS col1
----
1652

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT 83 * - CASE - - 15 WHEN 57 THEN MAX( - - 0 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT 83 * - CASE - - 15 WHEN 57 THEN MAX ( - - 0 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL + - 63 + - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL + - 63 + - COUNT ( * ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-7586
SELECT ALL + - 46 * 90 + + - 99 + - - 59, COUNT( * ) AS col0
----
-4180
1

skipif mysql # not compatible
query II rowsort label-7586
SELECT ALL + - 46 * 90 + + - 99 + - - 59, COUNT ( * ) AS col0
----
-4180
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT - 51 * - 0 * MAX( 22 ) * - 28 + 59 + + 38
----
97

skipif mysql # not compatible
query I rowsort label-7587
SELECT - 51 * - 0 * MAX ( 22 ) * - 28 + 59 + + 38
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT ALL + 38 DIV - - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + 38 / - - 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT - + 34 + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT - + 34 + + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - - 63 + + + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7590
SELECT - - 63 + + + COUNT ( * ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT ALL - 94 + + - NULLIF ( 35, + + 56 DIV 51 ) DIV + ( 67 )
----
-94

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - 94 + + - NULLIF ( 35, + + 56 / 51 ) / + ( 67 )
----
-94

query I rowsort
SELECT + 88 * 15 + - 43
----
1277

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + - 8 * + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-7593
SELECT + - 8 * + - COUNT ( * )
----
8

query I rowsort
SELECT DISTINCT NULLIF ( - - 90, + 86 )
----
90

query I rowsort
SELECT DISTINCT + + 29 + - 35 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT ALL 97 + - 68 * 28 DIV + 21 + - 43 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL 97 + - 68 * 28 / + 21 + - 43 AS col0
----
-36

query I rowsort
SELECT + 67 + - + COALESCE ( - 47, - 33 ) * - 15 + + - 29
----
-667

query I rowsort
SELECT ALL + 42 * + 92
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7599
SELECT + 80 + COUNT( * ), - CAST( NULL AS SIGNED ) + MAX( DISTINCT 7 ) - - ( - NULLIF ( + 56, - ( - COUNT( * ) ) * 67 * + 32 + - + 22 ) ) * 32 AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-7599
SELECT + 80 + COUNT ( * ), - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 7 ) - - ( - NULLIF ( + 56, - ( - COUNT ( * ) ) * 67 * + 32 + - + 22 ) ) * 32 AS col2
----
81
NULL

query I rowsort
SELECT + 94 + - 19 AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT - + 87 + + CAST( - 99 AS SIGNED )
----
-186

skipif mysql # not compatible
query I rowsort label-7601
SELECT - + 87 + + CAST ( - 99 AS INTEGER )
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT + 38 + + 12 DIV + 14 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7602
SELECT + 38 + + 12 / + 14 AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT + 50 * 25 * COALESCE ( - 0, - 51 ), + ( - 51 ) * - - 54 * MAX( + 30 ) + 97 * + + 46 AS col2
----
0
-78158

skipif mysql # not compatible
query II rowsort label-7603
SELECT + 50 * 25 * COALESCE ( - 0, - 51 ), + ( - 51 ) * - - 54 * MAX ( + 30 ) + 97 * + + 46 AS col2
----
0
-78158

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT ALL 61 DIV 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL 61 / 52 AS col2
----
1

query I rowsort
SELECT + 19 * + - 85 AS col0
----
-1615

query I rowsort
SELECT ALL + 59 * + + 4 col0
----
236

query I rowsort
SELECT ( - + 56 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT + 83 + + COUNT( * ) - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-7608
SELECT + 83 + + COUNT ( * ) - + COUNT ( * )
----
83

query I rowsort
SELECT ( + - 26 ) * - 25 * + 82 - 35 * + + 87 AS col1
----
50255

query I rowsort
SELECT ALL 54 * + 8 AS col1
----
432

onlyif mysql # aggregate syntax: 
query II rowsort label-7611
SELECT ALL COUNT( * ) * + 64 + + 97 AS col2, + 59
----
161
59

skipif mysql # not compatible
query II rowsort label-7611
SELECT ALL COUNT ( * ) * + 64 + + 97 AS col2, + 59
----
161
59

query II rowsort
SELECT + ( - ( 76 ) ), + 4 - + 96 col1
----
-76
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-7613
SELECT ALL 44 * - 16 + MIN( + + 37 ) - - 93 + + - 79 * - - 62 * + - 72, SUM( ALL 23 ) AS col1
----
352082
23

skipif mysql # not compatible
query II rowsort label-7613
SELECT ALL 44 * - 16 + MIN ( + + 37 ) - - 93 + + - 79 * - - 62 * + - 72, SUM ( ALL 23 ) AS col1
----
352082
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7614
SELECT 87 * - CAST( + - COUNT( * ) AS SIGNED ) + + NULLIF ( - 68, + 68 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-7614
SELECT 87 * - CAST ( + - COUNT ( * ) AS INTEGER ) + + NULLIF ( - 68, + 68 ) col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL - COUNT( * ) * + 47 * + - MIN( ALL + 57 ) + - 41
----
2638

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL - COUNT ( * ) * + 47 * + - MIN ( ALL + 57 ) + - 41
----
2638

query I rowsort
SELECT DISTINCT 6 * - - 1 * 61 * - ( + - 14 ) + + 55
----
5179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7617
SELECT ALL + 86 * - MAX( + 56 ) * + - 40 + - CAST( NULL AS SIGNED ) + - 16 + - COUNT( NULLIF ( + CAST( - 99 AS DECIMAL ), - 2 ) ) + + + 8 - + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT ALL + 86 * - MAX ( + 56 ) * + - 40 + - CAST ( NULL AS INTEGER ) + - 16 + - COUNT ( NULLIF ( + CAST ( - 99 AS REAL ), - 2 ) ) + + + 8 - + 97 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 14 col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL - COUNT( * ) * + 38 + - + 59 + + 25 * + 52
----
1203

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - COUNT ( * ) * + 38 + - + 59 + + 25 * + 52
----
1203

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + + 92 * 4 + COUNT( * ) AS col2
----
369

skipif mysql # not compatible
query I rowsort label-7620
SELECT + + 92 * 4 + COUNT ( * ) AS col2
----
369

query I rowsort
SELECT + + ( + + 1 )
----
1

query II rowsort
SELECT + 9 AS col1, 17 AS col0
----
9
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7623
SELECT + 27 * MAX( DISTINCT ( 73 ) ) + ( - + 22 ) * - - CAST( 76 AS SIGNED ) + - COUNT( * ) AS col1
----
298

skipif mysql # not compatible
query I rowsort label-7623
SELECT + 27 * MAX ( DISTINCT ( 73 ) ) + ( - + 22 ) * - - CAST ( 76 AS INTEGER ) + - COUNT ( * ) AS col1
----
298

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + COUNT( * ) * 35 + - 60 + COUNT( * ) * + 98
----
73

skipif mysql # not compatible
query I rowsort label-7624
SELECT + COUNT ( * ) * 35 + - 60 + COUNT ( * ) * + 98
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT - COUNT( * ) * - 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7625
SELECT - COUNT ( * ) * - 49 AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7626
SELECT DISTINCT - 15 * CAST( + - 83 AS SIGNED ) AS col1, 46 AS col0
----
1245
46

skipif mysql # not compatible
query II rowsort label-7626
SELECT DISTINCT - 15 * CAST ( + - 83 AS INTEGER ) AS col1, 46 AS col0
----
1245
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT ALL - + 57 * - 84 + - - MIN( ALL + + 56 ) + SUM( + 3 ) DIV - COUNT( * ) AS col0
----
4841

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - + 57 * - 84 + - - MIN ( ALL + + 56 ) + SUM ( + 3 ) / - COUNT ( * ) AS col0
----
4841

query I rowsort
SELECT - 42 * + + 20 + 54 * - 0 col1
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT ALL + - CAST( - MIN( DISTINCT - 46 ) AS SIGNED ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + - CAST ( - MIN ( DISTINCT - 46 ) AS INTEGER ) AS col2
----
-46

query I rowsort
SELECT ALL - 20 * - ( 26 ) - + 66
----
454

query I rowsort
SELECT ALL + 13 * + + 73 * - 74 AS col1
----
-70226

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ( + - COUNT( ALL - 43 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7632
SELECT ( + - COUNT ( ALL - 43 ) ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT DISTINCT + 33 DIV - + COUNT( ALL 46 ) + + 79 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT + 33 / - + COUNT ( ALL 46 ) + + 79 AS col1
----
46

query I rowsort
SELECT ( + + 54 )
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT - - 16 DIV - - 24
----
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT - - 16 / - - 24
----
0

query I rowsort
SELECT + ( + NULLIF ( - ( + 40 ), - 98 * + 12 * - 58 ) )
----
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7637
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, CAST( + 0 AS SIGNED ) DIV + - 63
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7637
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, CAST ( + 0 AS INTEGER ) / + - 63
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT ALL ( + 99 ) AS col1, COUNT( * ) * - 16 + - 74
----
99
-90

skipif mysql # not compatible
query II rowsort label-7638
SELECT ALL ( + 99 ) AS col1, COUNT ( * ) * - 16 + - 74
----
99
-90

query I rowsort
SELECT ALL ( + 1 ) AS col0
----
1

query II rowsort
SELECT ALL 71 col1, + 82 AS col1
----
71
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7641
SELECT - MAX( + 0 ) AS col1, + 18 AS col2
----
0
18

skipif mysql # not compatible
query II rowsort label-7641
SELECT - MAX ( + 0 ) AS col1, + 18 AS col2
----
0
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT ALL CAST( + - 63 AS SIGNED ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL CAST ( + - 63 AS INTEGER ) col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT DISTINCT CAST( + 8 AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT CAST ( + 8 AS INTEGER ) AS col2
----
8

query I rowsort
SELECT + 96 * + + 61
----
5856

query I rowsort
SELECT - ( + 12 ) AS col0
----
-12

query I rowsort
SELECT - 60 * - COALESCE ( - ( + 8 ), 49 * ( - 17 ) ) * - + 74
----
35520

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT + MIN( - + ( 29 ) ) + 48 + + 74 col1
----
93

skipif mysql # not compatible
query I rowsort label-7647
SELECT + MIN ( - + ( 29 ) ) + 48 + + 74 col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT - CAST( - 45 AS SIGNED ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7648
SELECT - CAST ( - 45 AS INTEGER ) AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT DISTINCT 89 DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT 89 / 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL 65 / - ( + 64 ) * + 61 + - + CASE ( - 41 ) WHEN - - 96 - + - 83 - - 55 + + COUNT( * ) * 48 * + COALESCE ( + 20, - 35 ) THEN + - 57 + 26 + - - 5 ELSE NULL END - COUNT( * ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL 65 / - ( + 64 ) * + 61 + - + CASE ( - 41 ) WHEN - - 96 - + - 83 - - 55 + + COUNT ( * ) * 48 * + COALESCE ( + 20, - 35 ) THEN + - 57 + 26 + - - 5 ELSE NULL END - COUNT ( * ) * 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7651
SELECT ALL 34 DIV + COUNT( * ) + - 0 + - 37 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL 34 / + COUNT ( * ) + - 0 + - 37 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT + COUNT( * ) * + + 52
----
52

skipif mysql # not compatible
query I rowsort label-7652
SELECT + COUNT ( * ) * + + 52
----
52

query II rowsort
SELECT ALL + 2 AS col0, + 40
----
2
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT DISTINCT 34 DIV 72 + - 51
----
-51

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT 34 / 72 + - 51
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7655
SELECT ALL 2 DIV - + 60 DIV COUNT( * ) + + 54 * - COUNT( * ) * - 13 * 40
----
28080

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL 2 / - + 60 / COUNT ( * ) + + 54 * - COUNT ( * ) * - 13 * 40
----
28080

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ALL SUM( DISTINCT 84 ) * - 65 col2
----
-5460

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL SUM ( DISTINCT 84 ) * - 65 col2
----
-5460

query I rowsort
SELECT ALL 88 + - 25
----
63

query I rowsort
SELECT - 72 - - 39
----
-33

query II rowsort
SELECT + 43, 59 AS col1
----
43
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT - 86 * + NULLIF ( + + 49, 95 + + COUNT( * ) ) AS col2
----
-4214

skipif mysql # not compatible
query I rowsort label-7660
SELECT - 86 * + NULLIF ( + + 49, 95 + + COUNT ( * ) ) AS col2
----
-4214

query I rowsort
SELECT - ( + 52 ) * - 73 AS col0
----
3796

query I rowsort
SELECT DISTINCT + 36 * - + CASE - 72 WHEN 43 THEN - 48 WHEN - ( - - 8 ) THEN NULL END + + 40 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 19 * - + 47, 63 AS col1
----
893
63

onlyif mysql # aggregate syntax: 
query III rowsort label-7664
SELECT + - COUNT( * ), + COALESCE ( + 1, + COUNT( * ) ) AS col0, - COUNT( * )
----
-1
1
-1

skipif mysql # not compatible
query III rowsort label-7664
SELECT + - COUNT ( * ), + COALESCE ( + 1, + COUNT ( * ) ) AS col0, - COUNT ( * )
----
-1
1
-1

query I rowsort
SELECT DISTINCT - ( 29 )
----
-29

query I rowsort
SELECT + ( + 42 ) - - - 35 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7667
SELECT ALL - 92 col0, - CAST( NULL AS SIGNED ) * + 34 + 78 AS col1
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-7667
SELECT ALL - 92 col0, - CAST ( NULL AS INTEGER ) * + 34 + 78 AS col1
----
-92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - ( - + 4 ) + + - 89 * + - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-7668
SELECT - ( - + 4 ) + + - 89 * + - COUNT ( * )
----
93

query I rowsort
SELECT 31 + 42 + - 38
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT - 85 - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7670
SELECT - 85 - + COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL + 59 * - ( - - COUNT( * ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + 59 * - ( - - COUNT ( * ) ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT MAX( ALL 70 ) * + COUNT( * ) col0
----
70

skipif mysql # not compatible
query I rowsort label-7672
SELECT MAX ( ALL 70 ) * + COUNT ( * ) col0
----
70

query II rowsort
SELECT ALL + 10 * 31 col2, 71
----
310
71

query I rowsort
SELECT 32 + - - ( 58 )
----
90

query I rowsort
SELECT 51 + - - COALESCE ( + - NULLIF ( - + CASE - 17 WHEN + ( 10 ) THEN NULL WHEN ( + 58 ) * + 70 THEN 62 END, 54 / - ( - 87 ) ), + 87 ) - - 52 + 15 * + 54 * 69 * - ( 88 ) AS col0
----
-4918130

query I rowsort
SELECT 28 * - - ( + 5 ) col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT MIN( - 3 ) + - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7677
SELECT MIN ( - 3 ) + - - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT 41 * - COUNT( * ), - COALESCE ( 11, - ( MIN( DISTINCT - 53 ) ) ) * - - 26 + - 54 + + 99 AS col2
----
-41
-241

skipif mysql # not compatible
query II rowsort label-7678
SELECT 41 * - COUNT ( * ), - COALESCE ( 11, - ( MIN ( DISTINCT - 53 ) ) ) * - - 26 + - 54 + + 99 AS col2
----
-41
-241

query II rowsort
SELECT 77 + + 7 AS col0, + 39 AS col0
----
84
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT ALL - 23 + - + 99 DIV + 12 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - 23 + - + 99 / + 12 AS col0
----
-31

query I rowsort
SELECT ALL + 69 + + 44 AS col2
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + MIN( 83 ) - - + 48 - + - 96 + - - 37 * - ( + 46 ) + + + 95 + - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + MIN ( 83 ) - - + 48 - + - 96 + - - 37 * - ( + 46 ) + + + 95 + - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT ALL 1 * - - SUM( + - 47 ), 30 AS col2
----
-47
30

skipif mysql # not compatible
query II rowsort label-7683
SELECT ALL 1 * - - SUM ( + - 47 ), 30 AS col2
----
-47
30

query I rowsort
SELECT ALL + 24 + + COALESCE ( - 77, - 45, + 49 ) AS col0
----
-53

query I rowsort
SELECT ALL - 69 + + 18 + + 34 AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7686
SELECT NULLIF ( - + 63, MAX( 71 ) + + 87 ) DIV - COUNT( * ) + ( - COALESCE ( 48, 96 ) ) * - + 88 col1
----
4287

skipif mysql # not compatible
query I rowsort label-7686
SELECT NULLIF ( - + 63, MAX ( 71 ) + + 87 ) / - COUNT ( * ) + ( - COALESCE ( 48, 96 ) ) * - + 88 col1
----
4287

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7687
SELECT ALL + 97 * - 28 col1, + 63 DIV + - CASE - SUM( - - 29 ) WHEN 99 THEN NULL ELSE COUNT( * ) + - 47 END AS col0
----
-2716
1

skipif mysql # not compatible
query II rowsort label-7687
SELECT ALL + 97 * - 28 col1, + 63 / + - CASE - SUM ( - - 29 ) WHEN 99 THEN NULL ELSE COUNT ( * ) + - 47 END AS col0
----
-2716
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT 63 + + 74 + + - CAST( NULL AS SIGNED ) * + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT 63 + + 74 + + - CAST ( NULL AS INTEGER ) * + - 38
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7689
SELECT COUNT( DISTINCT - 18 ) AS col2, 79 * - 95 * - 88 AS col1, 9
----
1
660440
9

skipif mysql # not compatible
query III rowsort label-7689
SELECT COUNT ( DISTINCT - 18 ) AS col2, 79 * - 95 * - 88 AS col1, 9
----
1
660440
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT ALL + 90 - COALESCE ( - 22, + 14 - CAST( NULL AS SIGNED ) * - 46 + + 87 )
----
112

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + 90 - COALESCE ( - 22, + 14 - CAST ( NULL AS INTEGER ) * - 46 + + 87 )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL SUM( ALL 35 ) * + + 4 * + 21 * - 25 AS col1
----
-73500

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL SUM ( ALL 35 ) * + + 4 * + 21 * - 25 AS col1
----
-73500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7692
SELECT - 33 + COUNT( + 2 ) - + 34 + - - ( + + 75 ) + - CAST( 67 AS SIGNED ) * COUNT( * ) + 73 DIV + - 78 * + - 3 * - - 94 * 49 - 28
----
-86

skipif mysql # not compatible
query I rowsort label-7692
SELECT - 33 + COUNT ( + 2 ) - + 34 + - - ( + + 75 ) + - CAST ( 67 AS INTEGER ) * COUNT ( * ) + 73 / + - 78 * + - 3 * - - 94 * 49 - 28
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7693
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ), ( + + 75 ) AS col1
----
1
75

skipif mysql # not compatible
query II rowsort label-7693
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ), ( + + 75 ) AS col1
----
1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT COUNT( DISTINCT - 73 ) * - 5 + 15 - 16 + + 0 * 2 * + COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7694
SELECT COUNT ( DISTINCT - 73 ) * - 5 + 15 - 16 + + 0 * 2 * + COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT + + 53 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT 97 + - + MAX( ALL - 35 ) * + + 50
----
1847

skipif mysql # not compatible
query I rowsort label-7696
SELECT 97 + - + MAX ( ALL - 35 ) * + + 50
----
1847

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT - 60 * + COUNT( * ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7697
SELECT - 60 * + COUNT ( * ) AS col0
----
-60

query I rowsort
SELECT ALL + 14 * - + 36 + + + 53 AS col1
----
-451

query I rowsort
SELECT ( 15 ) * - 42
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT 92 * 33 + - COUNT( * ) AS col2
----
3035

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT 92 * 33 + - COUNT ( * ) AS col2
----
3035

query I rowsort
SELECT ALL - 72 + + - 89
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-7702
SELECT 97, COUNT( * ) * - 41 AS col2
----
97
-41

skipif mysql # not compatible
query II rowsort label-7702
SELECT 97, COUNT ( * ) * - 41 AS col2
----
97
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT COALESCE ( - + 84, + 23 + COUNT( 96 ) * + 14 ) - 58
----
-142

skipif mysql # not compatible
query I rowsort label-7703
SELECT COALESCE ( - + 84, + 23 + COUNT ( 96 ) * + 14 ) - 58
----
-142

query II rowsort
SELECT 5 AS col1, - 47 AS col2
----
5
-47

query I rowsort
SELECT ALL 37 + - 17 AS col1
----
20

query I rowsort
SELECT ALL + 0 + 71
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7707
SELECT ALL ( + COUNT( * ) ) DIV - 62 col1
----
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL ( + COUNT ( * ) ) / - 62 col1
----
0

query II rowsort
SELECT ALL - 37 + - 48 * - 14 + - - 54 col1, + 87
----
689
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT COUNT( * ) + + 73 + - 50
----
24

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT COUNT ( * ) + + 73 + - 50
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7710
SELECT ALL MAX( - + CAST( - 67 AS SIGNED ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL MAX ( - + CAST ( - 67 AS INTEGER ) ) AS col1
----
67

query II rowsort
SELECT - 94 AS col1, 8
----
-94
8

query II rowsort
SELECT 86, + 40 - 61 AS col1
----
86
-21

query I rowsort
SELECT + 95 * + 64 AS col0
----
6080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7714
SELECT - 77 + ( - 2 ) DIV - MIN( ALL - 76 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-7714
SELECT - 77 + ( - 2 ) / - MIN ( ALL - 76 ) col0
----
-77

query I rowsort
SELECT - 35 * 67
----
-2345

query I rowsort
SELECT - 53 + 64
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL MAX( + + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL MAX ( + + 3 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT ALL + COALESCE ( + 63, - CAST( 13 AS SIGNED ), - 45 ) * - CAST( + 85 AS SIGNED ) - + 39 * - - 35
----
-6720

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + COALESCE ( + 63, - CAST ( 13 AS INTEGER ), - 45 ) * - CAST ( + 85 AS INTEGER ) - + 39 * - - 35
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT - 95 * + + 23 + COUNT( * ) * 98 AS col0
----
-2087

skipif mysql # not compatible
query I rowsort label-7719
SELECT - 95 * + + 23 + COUNT ( * ) * 98 AS col0
----
-2087

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7720
SELECT ALL + 45, + CAST( NULL AS SIGNED ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-7720
SELECT ALL + 45, + CAST ( NULL AS INTEGER ) AS col2
----
45
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7721
SELECT ALL 70 * 31 - - 0 DIV + COUNT( ALL - 81 ) - + 17 * 20
----
1830

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL 70 * 31 - - 0 / + COUNT ( ALL - 81 ) - + 17 * 20
----
1830

query I rowsort
SELECT - 31 * - 72 AS col1
----
2232

query I rowsort
SELECT - + 3 - - 21 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT + + 65 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-7724
SELECT + + 65 / + 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT - + 54 * + - COUNT( * ) * + COUNT( * ) * - SUM( ALL + 5 )
----
-270

skipif mysql # not compatible
query I rowsort label-7725
SELECT - + 54 * + - COUNT ( * ) * + COUNT ( * ) * - SUM ( ALL + 5 )
----
-270

query II rowsort
SELECT ALL + + 41 AS col0, - ( + 37 ) * + 29
----
41
-1073

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7727
SELECT + + CAST( NULL AS SIGNED ) AS col1, 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7727
SELECT + + CAST ( NULL AS INTEGER ) AS col1, 55
----
NULL
55

query II rowsort
SELECT ALL + 81, 1 col0
----
81
1

query I rowsort
SELECT ALL 82 * - 24 + - 89 * - - 66 + + 67 col2
----
-7775

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT + - MIN( - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7730
SELECT + - MIN ( - 68 ) AS col2
----
68

query II rowsort
SELECT ALL + ( + 54 ) * - 39 AS col2, 38 AS col2
----
-2106
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT + 56 DIV ( 57 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7732
SELECT + 56 / ( 57 ) AS col2
----
0

query I rowsort
SELECT - 67 + + 80 * + 53
----
4173

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT + COALESCE ( - ( 27 ), - COUNT( * ), - - 14 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-7734
SELECT + COALESCE ( - ( 27 ), - COUNT ( * ), - - 14 ) AS col2
----
-27

query I rowsort
SELECT ALL 79 * + - 47 AS col0
----
-3713

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7736
SELECT ALL - 81 * - 40 + 60 + - CAST( NULL AS SIGNED ) col0, 11 DIV - - 98 * 60 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7736
SELECT ALL - 81 * - 40 + 60 + - CAST ( NULL AS INTEGER ) col0, 11 / - - 98 * 60 AS col1
----
NULL
0

query I rowsort
SELECT - 43 + + ( 23 ) col1
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7738
SELECT ALL 31 + + CAST( NULL AS DECIMAL ) + - 33 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL 31 + + CAST ( NULL AS REAL ) + - 33 * 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7739
SELECT ALL + 41 + - 60 - + COUNT( * ) * - 56 * + COALESCE ( CAST( NULL AS SIGNED ), - + COUNT( * ) ) * - + 97 + - 23 - - 78 + MAX( + 58 ), - COUNT( * ) AS col2
----
5526
-1

skipif mysql # not compatible
query II rowsort label-7739
SELECT ALL + 41 + - 60 - + COUNT ( * ) * - 56 * + COALESCE ( CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) * - + 97 + - 23 - - 78 + MAX ( + 58 ), - COUNT ( * ) AS col2
----
5526
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL 84 + + MIN( DISTINCT + 59 )
----
143

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL 84 + + MIN ( DISTINCT + 59 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT MIN( DISTINCT 43 )
----
43

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT MIN ( DISTINCT 43 )
----
43

query I rowsort
SELECT + ( - 53 ) + - + 2 + - 48 * 43 AS col0
----
-2119

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT - ( - - MAX( 18 ) )
----
-18

skipif mysql # not compatible
query I rowsort label-7743
SELECT - ( - - MAX ( 18 ) )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT DISTINCT COUNT( * ) / + 37 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT COUNT ( * ) / + 37 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( 52, 99 + - 40 ) col2
----
-52

query I rowsort
SELECT - 36 + - - 13
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT + 47 * COUNT( * ) * 99
----
4653

skipif mysql # not compatible
query I rowsort label-7747
SELECT + 47 * COUNT ( * ) * 99
----
4653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT DISTINCT 59 * - CAST( NULL AS SIGNED ) * - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT 59 * - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL 18 - + COALESCE ( - 24, - 52 * - 75, - 87 * 98 + + - 72 + - - 83 * + + COUNT( * ) ) - - 68
----
110

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL 18 - + COALESCE ( - 24, - 52 * - 75, - 87 * 98 + + - 72 + - - 83 * + + COUNT ( * ) ) - - 68
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-7750
SELECT - ( COUNT( * ) ) AS col0, COUNT( * ) * ( - 1 ) * + ( 59 )
----
-1
-59

skipif mysql # not compatible
query II rowsort label-7750
SELECT - ( COUNT ( * ) ) AS col0, COUNT ( * ) * ( - 1 ) * + ( 59 )
----
-1
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7751
SELECT DISTINCT 88 DIV - NULLIF ( 11, + 58 + 31 * + 1 * 4 + + - 99 )
----
-8

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT 88 / - NULLIF ( 11, + 58 + 31 * + 1 * 4 + + - 99 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7752
SELECT + - 49 DIV + ( + NULLIF ( - - 26, COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7752
SELECT + - 49 / + ( + NULLIF ( - - 26, COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7753
SELECT - - 44 * 95 * MIN( 77 ), + 41 + + CAST( - + 66 AS SIGNED ) AS col1
----
321860
-25

skipif mysql # not compatible
query II rowsort label-7753
SELECT - - 44 * 95 * MIN ( 77 ), + 41 + + CAST ( - + 66 AS INTEGER ) AS col1
----
321860
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7754
SELECT COALESCE ( + 43, CASE - - ( - ( 63 ) ) WHEN - COUNT( * ) THEN + - 29 ELSE + 49 DIV CAST( - - 61 AS SIGNED ) + + + 22 DIV 48 + + - COALESCE ( + - 38, + COALESCE ( 58, 48 * + 64 * ( - + 63 ), 1 * + - 82 ) * + 11 * 95 * + COALESCE ( + 72, - 75 ) + - - 53 * + 71 * 3 * 68 ) * + 81 END + - - 69 ) DIV - + 55 * - 62 + + ( ( ( + + 47 ) ) ) + + 74 + + MIN( - + 96 )
----
25

skipif mysql # not compatible
query I rowsort label-7754
SELECT COALESCE ( + 43, CASE - - ( - ( 63 ) ) WHEN - COUNT ( * ) THEN + - 29 ELSE + 49 / CAST ( - - 61 AS INTEGER ) + + + 22 / 48 + + - COALESCE ( + - 38, + COALESCE ( 58, 48 * + 64 * ( - + 63 ), 1 * + - 82 ) * + 11 * 95 * + COALESCE ( + 72, - 75 ) + - - 53 * + 71 * 3 * 68 ) * + 81 END + - - 69 ) / - + 55 * - 62 + + ( ( ( + + 47 ) ) ) + + 74 + + MIN ( - + 96 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT + + 74 - CAST( + 17 AS SIGNED ) * ( + 43 )
----
-657

skipif mysql # not compatible
query I rowsort label-7755
SELECT + + 74 - CAST ( + 17 AS INTEGER ) * ( + 43 )
----
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - + 69 * ( + COUNT( * ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7756
SELECT - + 69 * ( + COUNT ( * ) ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT ALL + + CAST( - - ( 92 ) AS SIGNED ) col0
----
92

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + + CAST ( - - ( 92 ) AS INTEGER ) col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT + MIN( + ( - - 84 ) ) + 40 + 86
----
210

skipif mysql # not compatible
query I rowsort label-7758
SELECT + MIN ( + ( - - 84 ) ) + 40 + 86
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT - - 68 DIV 33 - - 61 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7759
SELECT - - 68 / 33 - - 61 AS col0
----
63

query I rowsort
SELECT - 51 + - 15
----
-66

query I rowsort
SELECT - 95 * - 87 AS col1
----
8265

onlyif mysql # DIV for integer division: 
query I rowsort label-7762
SELECT DISTINCT + - 44 DIV + 30 + - + 14 + + 71 * 49 + - 88 AS col0
----
3376

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT + - 44 / + 30 + - + 14 + + 71 * 49 + - 88 AS col0
----
3376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT DISTINCT + 81 * - 63 * + COALESCE ( + 45, - 25 + 52 * + 99, 25 + + 38 + - SUM( - 82 ) ) + NULLIF ( - + CAST( + - CASE + CAST( - - COUNT( * ) AS SIGNED ) WHEN - + ( - - 1 ) THEN + 41 WHEN + 46 THEN 71 ELSE NULL END AS SIGNED ), COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT + 81 * - 63 * + COALESCE ( + 45, - 25 + 52 * + 99, 25 + + 38 + - SUM ( - 82 ) ) + NULLIF ( - + CAST ( + - CASE + CAST ( - - COUNT ( * ) AS INTEGER ) WHEN - + ( - - 1 ) THEN + 41 WHEN + 46 THEN 71 ELSE NULL END AS INTEGER ), COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7764
SELECT ALL + 88 DIV ( - - COUNT( + 14 ) ) * - COUNT( * ) + + 26 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL + 88 / ( - - COUNT ( + 14 ) ) * - COUNT ( * ) + + 26 AS col2
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7765
SELECT - 21 DIV 48 + - + COUNT( * ) - 37 col2, 41
----
-38
41

skipif mysql # not compatible
query II rowsort label-7765
SELECT - 21 / 48 + - + COUNT ( * ) - 37 col2, 41
----
-38
41

query I rowsort
SELECT - - 42 + - 58 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7767
SELECT + - ( - - 45 ) AS col0, 56 + + 81 DIV 95 + - - 7 * - MIN( 29 ) * - 33 - - 5 AS col1
----
-45
6760

skipif mysql # not compatible
query II rowsort label-7767
SELECT + - ( - - 45 ) AS col0, 56 + + 81 / 95 + - - 7 * - MIN ( 29 ) * - 33 - - 5 AS col1
----
-45
6760

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT ALL - COUNT( * ) * - - 73 * - - MAX( DISTINCT ( - 87 ) ) AS col2
----
6351

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL - COUNT ( * ) * - - 73 * - - MAX ( DISTINCT ( - 87 ) ) AS col2
----
6351

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT COUNT( * ) * - 25 * - 12 + COUNT( DISTINCT - 42 ) col0
----
301

skipif mysql # not compatible
query I rowsort label-7769
SELECT COUNT ( * ) * - 25 * - 12 + COUNT ( DISTINCT - 42 ) col0
----
301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7770
SELECT ( + COALESCE ( - - ( + - COUNT( * ) ), - 45 + - 57 + 14 + + + 0, + SUM( 66 ) * - CASE - - 66 WHEN ( NULLIF ( - 5, 54 + - 12 ) ) THEN + + CAST( - 14 AS SIGNED ) END ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7770
SELECT ( + COALESCE ( - - ( + - COUNT ( * ) ), - 45 + - 57 + 14 + + + 0, + SUM ( 66 ) * - CASE - - 66 WHEN ( NULLIF ( - 5, 54 + - 12 ) ) THEN + + CAST ( - 14 AS INTEGER ) END ) ) AS col1
----
-1

query I rowsort
SELECT + COALESCE ( - 57, + 87 + - 24, - + 49 ) + 16 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT ALL 37 * 61 * + 66 + COALESCE ( + 40, + COUNT( * ) ) AS col1
----
149002

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL 37 * 61 * + 66 + COALESCE ( + 40, + COUNT ( * ) ) AS col1
----
149002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT DISTINCT + 77 * + + 31 DIV - COUNT( * ) + 96
----
-2291

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT + 77 * + + 31 / - COUNT ( * ) + 96
----
-2291

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT ALL 25 DIV + 11 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL 25 / + 11 AS col1
----
2

query I rowsort
SELECT DISTINCT - 27 * - 40 + - 64 col2
----
1016

query I rowsort
SELECT DISTINCT 43 - 1 + 44 AS col1
----
86

query I rowsort
SELECT 47 * - + 18 AS col1
----
-846

query I rowsort
SELECT 83 * - 84 * 24 col0
----
-167328

onlyif mysql # DIV for integer division: 
query I rowsort label-7779
SELECT ALL - 65 DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL - 65 / 53
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7780
SELECT DISTINCT COUNT( ALL + 87 ) * + - 97 DIV - - 89 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT COUNT ( ALL + 87 ) * + - 97 / - - 89 col0
----
-1

query I rowsort
SELECT ALL 42 * + 61 AS col0
----
2562

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT COUNT( * ) + + 60 * + COUNT( DISTINCT + - 44 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-7782
SELECT COUNT ( * ) + + 60 * + COUNT ( DISTINCT + - 44 ) col2
----
61

query I rowsort
SELECT DISTINCT - 93 * - - 97
----
-9021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT 1 - + 23 - CAST( NULL AS SIGNED ) - + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT 1 - + 23 - CAST ( NULL AS INTEGER ) - + + 4
----
NULL

query I rowsort
SELECT ALL - 58 * - + 78 AS col0
----
4524

query I rowsort
SELECT 26 * - - 51 AS col0
----
1326

query I rowsort
SELECT - + ( + 19 )
----
-19

query II rowsort
SELECT 4 col2, 65 * + 41
----
4
2665

query I rowsort
SELECT 5 * + + 83 + ( 96 ) col2
----
511

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT - COUNT( * ) + - COUNT( * ) * + 51 - - - COUNT( * ) + + + 20 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7790
SELECT - COUNT ( * ) + - COUNT ( * ) * + 51 - - - COUNT ( * ) + + + 20 AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7791
SELECT 41 AS col0, - CAST( NULL AS SIGNED ) + - NULLIF ( 54, - - 55 ) AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-7791
SELECT 41 AS col0, - CAST ( NULL AS INTEGER ) + - NULLIF ( 54, - - 55 ) AS col0
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT 95 + - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7792
SELECT 95 + - COUNT ( * ) AS col2
----
94

query I rowsort
SELECT ALL 10 * 69 AS col1
----
690

query I rowsort
SELECT ALL + 26 + 18
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT + COUNT( * ) + + 7 + - - 42 * + + 9
----
386

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT + COUNT ( * ) + + 7 + - - 42 * + + 9
----
386

query I rowsort
SELECT ALL + 51 + 1
----
52

query I rowsort
SELECT DISTINCT - 93 + - - 52 AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7798
SELECT ALL + 82 * 99 * + - 63 * + CASE + 21 WHEN 66 THEN NULL WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) / - 89 * - CASE - ( - - CAST( - - 80 AS DECIMAL ) ) WHEN 18 THEN + + 59 END END / - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL + 82 * 99 * + - 63 * + CASE + 21 WHEN 66 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) / - 89 * - CASE - ( - - CAST ( - - 80 AS REAL ) ) WHEN 18 THEN + + 59 END END / - + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT - - MAX( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - - MAX ( 33 )
----
33

query I rowsort
SELECT - 55 - + 1 * ( 90 )
----
-145

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT ALL 99 + - + 23 - - 98 DIV 40
----
78

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL 99 + - + 23 - - 98 / 40
----
78

query I rowsort
SELECT ALL + 99 + + + 91
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT 77 * ( 79 ) * 14 * COUNT( * ) AS col2
----
85162

skipif mysql # not compatible
query I rowsort label-7803
SELECT 77 * ( 79 ) * 14 * COUNT ( * ) AS col2
----
85162

query II rowsort
SELECT + 13, + 80 col0
----
13
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL + 41 - - + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + 41 - - + COUNT ( * )
----
42

query I rowsort
SELECT 57 - - + 33 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ALL - MAX( DISTINCT + + 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - MAX ( DISTINCT + + 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL - 78 * + ( + COUNT( ALL - + 38 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - 78 * + ( + COUNT ( ALL - + 38 ) ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT 67 - - + COUNT( * ) * CASE + 89 WHEN + 55 THEN NULL WHEN + - 37 THEN - MIN( ALL - 13 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT 67 - - + COUNT ( * ) * CASE + 89 WHEN + 55 THEN NULL WHEN + - 37 THEN - MIN ( ALL - 13 ) END col1
----
NULL

query II rowsort
SELECT DISTINCT - 9, 87 AS col2
----
-9
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT CAST( NULL AS SIGNED ) + 17 - - + 41 + + MAX( + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT CAST ( NULL AS INTEGER ) + 17 - - + 41 + + MAX ( + 44 )
----
NULL

query I rowsort
SELECT ALL - 78 * NULLIF ( + + 71, - + 61 ) AS col2
----
-5538

query I rowsort
SELECT 57 + 0
----
57

query I rowsort
SELECT + 32 * + 44 + + 77
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT COUNT( * ) - 72
----
-71

skipif mysql # not compatible
query I rowsort label-7815
SELECT COUNT ( * ) - 72
----
-71

query I rowsort
SELECT 15 * 8 + + 30
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-7817
SELECT ALL - 79 * - 30 AS col0, + ( - - MIN( - + 57 ) )
----
2370
-57

skipif mysql # not compatible
query II rowsort label-7817
SELECT ALL - 79 * - 30 AS col0, + ( - - MIN ( - + 57 ) )
----
2370
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT 82 DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-7818
SELECT 82 / 32
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT ALL MIN( DISTINCT + 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL MIN ( DISTINCT + 86 ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT 1 + + CAST( NULL AS SIGNED ) + + 74 * + - 19 - - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT 1 + + CAST ( NULL AS INTEGER ) + + 74 * + - 19 - - 34 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT 7 * + 51 DIV 83 DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT 7 * + 51 / 83 / + 66 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT ALL + 34 DIV ( 93 )
----
0

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL + 34 / ( 93 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7823
SELECT + 19 AS col1, - 75 + + + COUNT( * ) AS col1
----
19
-74

skipif mysql # not compatible
query II rowsort label-7823
SELECT + 19 AS col1, - 75 + + + COUNT ( * ) AS col1
----
19
-74

query I rowsort
SELECT 40 * - 23 AS col0
----
-920

query I rowsort
SELECT ALL + + 63 + + + 81
----
144

query II rowsort
SELECT - 80 AS col1, 36 * 21 col2
----
-80
756

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT + 36 + - 38 + - 39 + - COUNT( * ) * + - 39
----
-2

skipif mysql # not compatible
query I rowsort label-7827
SELECT + 36 + - 38 + - 39 + - COUNT ( * ) * + - 39
----
-2

query I rowsort
SELECT 17 * 1 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7829
SELECT DISTINCT - NULLIF ( + - ( - COUNT( * ) ), 69 + + 18 ) + + 43 * 23 DIV 51
----
18

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT - NULLIF ( + - ( - COUNT ( * ) ), 69 + + 18 ) + + 43 * 23 / 51
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT ALL - ( - 20 ) * + CAST( 50 AS SIGNED ) + - 14 col1
----
986

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL - ( - 20 ) * + CAST ( 50 AS INTEGER ) + - 14 col1
----
986

query I rowsort
SELECT ALL + + 71 + 29 AS col2
----
100

query I rowsort
SELECT DISTINCT 98 * 14 AS col0
----
1372

onlyif mysql # aggregate syntax: 
query II rowsort label-7833
SELECT ALL - 55 + COUNT( * ) * + COUNT( * ) * 11 * + MAX( + - 37 ) AS col1, 60
----
-462
60

skipif mysql # not compatible
query II rowsort label-7833
SELECT ALL - 55 + COUNT ( * ) * + COUNT ( * ) * 11 * + MAX ( + - 37 ) AS col1, 60
----
-462
60

query I rowsort
SELECT 97 + 38 * 95 col1
----
3707

query I rowsort
SELECT DISTINCT + 44 + 24 AS col0
----
68

query II rowsort
SELECT 87, - 56 + - + 10 + - 71 AS col0
----
87
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT MAX( ALL 50 ) + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7837
SELECT MAX ( ALL 50 ) + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7838
SELECT COUNT( * ) AS col0, ( ( + + 83 ) ) + + COUNT( * ) AS col0
----
1
84

skipif mysql # not compatible
query II rowsort label-7838
SELECT COUNT ( * ) AS col0, ( ( + + 83 ) ) + + COUNT ( * ) AS col0
----
1
84

query II rowsort
SELECT DISTINCT - 9 AS col2, 10
----
-9
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT - 54 DIV - NULLIF ( + 3, + + 75 ) + - 97 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7840
SELECT - 54 / - NULLIF ( + 3, + + 75 ) + - 97 AS col2
----
-79

query I rowsort
SELECT ALL - 72 * + 67 + - + 31
----
-4855

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT + COUNT( * ), + 22 AS col0
----
1
22

skipif mysql # not compatible
query II rowsort label-7842
SELECT + COUNT ( * ), + 22 AS col0
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT 73 * - COUNT( * ) + 81 - - - 71 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7843
SELECT 73 * - COUNT ( * ) + 81 - - - 71 AS col1
----
-63

query I rowsort
SELECT ALL ( - ( + 18 ) ) * - ( + 65 ) AS col0
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + CASE + + 44 WHEN + + MAX( - + 24 ) THEN - 89 END + AVG ( DISTINCT + 36 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT + CASE + + 44 WHEN + + MAX ( - + 24 ) THEN - 89 END + AVG ( DISTINCT + 36 ) AS col2
----
NULL

query I rowsort
SELECT ALL 72 * 78
----
5616

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + MIN( ALL + - ( - 87 ) ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7847
SELECT + MIN ( ALL + - ( - 87 ) ) AS col1
----
87

query I rowsort
SELECT + 48 * ( - 45 )
----
-2160

query I rowsort
SELECT + ( + 55 ) * 3 * - 19 * - 62 AS col0
----
194370

query I rowsort
SELECT DISTINCT + ( 2 )
----
2

query I rowsort
SELECT DISTINCT + ( + 6 ) col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT DISTINCT - 29 * - 81 * CAST( - 74 AS SIGNED )
----
-173826

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT - 29 * - 81 * CAST ( - 74 AS INTEGER )
----
-173826

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT + COUNT( * ) * - 64 * - - 85
----
-5440

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT + COUNT ( * ) * - 64 * - - 85
----
-5440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7854
SELECT ALL + 48 + CASE - 75 WHEN - 60 THEN COALESCE ( 51, 66 ) + - ( + CAST( NULL AS SIGNED ) ) WHEN - 28 THEN NULL ELSE - COALESCE ( - 85, + 19 / + COUNT( * ) + - 67 * - 74 ) * - 66 * - + 42 + - - COUNT( * ) - + AVG ( 68 ) + + CAST( NULL AS SIGNED ) + - NULLIF ( - + MIN( + 49 ), + 95 + COUNT( * ) ) * - 40 * + - 98 - - - 20 END AS col1, 85 col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-7854
SELECT ALL + 48 + CASE - 75 WHEN - 60 THEN COALESCE ( 51, 66 ) + - ( + CAST ( NULL AS INTEGER ) ) WHEN - 28 THEN NULL ELSE - COALESCE ( - 85, + 19 / + COUNT ( * ) + - 67 * - 74 ) * - 66 * - + 42 + - - COUNT ( * ) - + AVG ( 68 ) + + CAST ( NULL AS INTEGER ) + - NULLIF ( - + MIN ( + 49 ), + 95 + COUNT ( * ) ) * - 40 * + - 98 - - - 20 END AS col1, 85 col1
----
NULL
85

query I rowsort
SELECT ALL - 84 + - + 92
----
-176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7856
SELECT COUNT( * ) * - 82 - 42, ( + CAST( NULL AS DECIMAL ) ) AS col1
----
-124
NULL

skipif mysql # not compatible
query II rowsort label-7856
SELECT COUNT ( * ) * - 82 - 42, ( + CAST ( NULL AS REAL ) ) AS col1
----
-124
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT - + 87 - - ( - MIN( DISTINCT + 91 ) ) AS col0
----
-178

skipif mysql # not compatible
query I rowsort label-7857
SELECT - + 87 - - ( - MIN ( DISTINCT + 91 ) ) AS col0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT DISTINCT COUNT( * ) * + 70 col2
----
70

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT COUNT ( * ) * + 70 col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT ALL - - CAST( + + 21 AS SIGNED ) + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL - - CAST ( + + 21 AS INTEGER ) + + COUNT ( * )
----
22

query I rowsort
SELECT ALL + - 36 + + 4 + - 41
----
-73

query I rowsort
SELECT - 61 - - 26 + + 54 AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT - 70 DIV 42
----
-1

skipif mysql # not compatible
query I rowsort label-7862
SELECT - 70 / 42
----
-1

query I rowsort
SELECT - 75 - 90 + + - 35
----
-200

query I rowsort
SELECT ALL - 24 + 24
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7865
SELECT ALL + 66 + - 53, - 21 * - COUNT( * ) AS col0
----
13
21

skipif mysql # not compatible
query II rowsort label-7865
SELECT ALL + 66 + - 53, - 21 * - COUNT ( * ) AS col0
----
13
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT - 28 * - COUNT( * ) * - 3
----
-84

skipif mysql # not compatible
query I rowsort label-7866
SELECT - 28 * - COUNT ( * ) * - 3
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7867
SELECT - + COUNT( * ) DIV 92 * - + 72 DIV 32 DIV 35, 28 * + 4 + 52 * + + 51 * + 34 AS col0
----
0
90280

skipif mysql # not compatible
query II rowsort label-7867
SELECT - + COUNT ( * ) / 92 * - + 72 / 32 / 35, 28 * + 4 + 52 * + + 51 * + 34 AS col0
----
0
90280

query I rowsort
SELECT - + 85 + + 17
----
-68

query I rowsort
SELECT + 20 + - + 18 + - 85
----
-83

query I rowsort
SELECT DISTINCT + - 64 - - ( 28 ) AS col1
----
-36

query I rowsort
SELECT DISTINCT - 72 * 48 * + 37 * + 46 - + 63
----
-5882175

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT + COUNT( ALL - - ( + 96 ) ) * + 56
----
56

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT + COUNT ( ALL - - ( + 96 ) ) * + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - MIN( DISTINCT + 98 ) - 96 + - + 57 - + 86 + + - 30 AS col1
----
-367

skipif mysql # not compatible
query I rowsort label-7873
SELECT - MIN ( DISTINCT + 98 ) - 96 + - + 57 - + 86 + + - 30 AS col1
----
-367

query I rowsort
SELECT ( - 51 ) AS col2
----
-51

query I rowsort
SELECT ( - + 98 ) AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7876
SELECT + ( 86 ) * NULLIF ( - + ( + 6 ), + - 96 ) * ( - + 23 ) * + + 80 - + + 69 + + COUNT( * ) / + 58 + CAST( NULL AS SIGNED ) + - 40 + SUM( - 54 ) * - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT + ( 86 ) * NULLIF ( - + ( + 6 ), + - 96 ) * ( - + 23 ) * + + 80 - + + 69 + + COUNT ( * ) / + 58 + CAST ( NULL AS INTEGER ) + - 40 + SUM ( - 54 ) * - 81 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7877
SELECT ALL + 31, - 68 * - 32 * + + CAST( NULL AS SIGNED ) AS col1
----
31
NULL

skipif mysql # not compatible
query II rowsort label-7877
SELECT ALL + 31, - 68 * - 32 * + + CAST ( NULL AS INTEGER ) AS col1
----
31
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7878
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-7878
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, 90
----
NULL
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT + CAST( NULL AS SIGNED ) - + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT + CAST ( NULL AS INTEGER ) - + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7880
SELECT DISTINCT 86 * - COUNT( + 54 ) + + 76 AS col0, - 96 * + + CAST( NULL AS SIGNED ) AS col1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-7880
SELECT DISTINCT 86 * - COUNT ( + 54 ) + + 76 AS col0, - 96 * + + CAST ( NULL AS INTEGER ) AS col1
----
-10
NULL

query II rowsort
SELECT ALL + 72 AS col2, - 15 + + 28 AS col1
----
72
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT ALL 61 * COUNT( * ) * + - 10 * + COUNT( * ) + + 87
----
-523

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL 61 * COUNT ( * ) * + - 10 * + COUNT ( * ) + + 87
----
-523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT - 23 - + 58 + MAX( - 27 ) + COALESCE ( - 58, + ( + 84 ) * + 93 - + MAX( - 35 ) + + CAST( SUM( 23 ) AS SIGNED ) + + + ( - - 57 ), - + 61 * - + 33 ) col2
----
-166

skipif mysql # not compatible
query I rowsort label-7883
SELECT - 23 - + 58 + MAX ( - 27 ) + COALESCE ( - 58, + ( + 84 ) * + 93 - + MAX ( - 35 ) + + CAST ( SUM ( 23 ) AS INTEGER ) + + + ( - - 57 ), - + 61 * - + 33 ) col2
----
-166

query I rowsort
SELECT + + 41 + + ( 10 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7885
SELECT ALL - - COALESCE ( COUNT( * ), ( - COALESCE ( + 80, + 27 ) ) * + COUNT( * ) ) * NULLIF ( + 13, + 45 ) - CAST( NULL AS SIGNED ) + - + COALESCE ( COALESCE ( + - 9, - + 24 * + 6 + - 29 ), 29 * - 13 + - 2, - ( - 85 ) + + COUNT( + 44 ) ) + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL - - COALESCE ( COUNT ( * ), ( - COALESCE ( + 80, + 27 ) ) * + COUNT ( * ) ) * NULLIF ( + 13, + 45 ) - CAST ( NULL AS INTEGER ) + - + COALESCE ( COALESCE ( + - 9, - + 24 * + 6 + - 29 ), 29 * - 13 + - 2, - ( - 85 ) + + COUNT ( + 44 ) ) + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7886
SELECT + COUNT( * ) + - 52 * ( + - 42 ) AS col2, + 4 * + 90 * - 26 + + 32 AS col0
----
2185
-9328

skipif mysql # not compatible
query II rowsort label-7886
SELECT + COUNT ( * ) + - 52 * ( + - 42 ) AS col2, + 4 * + 90 * - 26 + + 32 AS col0
----
2185
-9328

query I rowsort
SELECT ALL - COALESCE ( + 95, 78 )
----
-95

query I rowsort
SELECT - 73 + - - 39 + - 88
----
-122

onlyif mysql # aggregate syntax: 
query III rowsort label-7889
SELECT 72 AS col2, 29 * COUNT( * ) + - - COUNT( * ) + 92 + - 48, - + 96 col2
----
72
74
-96

skipif mysql # not compatible
query III rowsort label-7889
SELECT 72 AS col2, 29 * COUNT ( * ) + - - COUNT ( * ) + 92 + - 48, - + 96 col2
----
72
74
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT - + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7890
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7891
SELECT + - 14 * + 51 + - - 47 + 16 DIV + 94
----
-667

skipif mysql # not compatible
query I rowsort label-7891
SELECT + - 14 * + 51 + - - 47 + 16 / + 94
----
-667

query I rowsort
SELECT ALL + + 91 * - 24 AS col0
----
-2184

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT + 35 + - 54 DIV - - 53 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7893
SELECT + 35 + - 54 / - - 53 AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT - CAST( - - 47 AS SIGNED ) * 45 AS col0
----
-2115

skipif mysql # not compatible
query I rowsort label-7894
SELECT - CAST ( - - 47 AS INTEGER ) * 45 AS col0
----
-2115

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT 29 + + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7895
SELECT 29 + + - COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-7896
SELECT + 23, + 15 + - 29 + + COALESCE ( + + ( + - COUNT( * ) ), - 20 + - 99 * + 14 ) AS col0
----
23
-15

skipif mysql # not compatible
query II rowsort label-7896
SELECT + 23, + 15 + - 29 + + COALESCE ( + + ( + - COUNT ( * ) ), - 20 + - 99 * + 14 ) AS col0
----
23
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7897
SELECT ALL - COALESCE ( + COUNT( * ), + 1 + + 96 * - + 28, 69 * + - 21 + - 12 - - ( + 74 ) DIV - COALESCE ( + 98, - + COUNT( * ) * - 97 + - - COUNT( * ) ) * - MIN( DISTINCT + - 46 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - COALESCE ( + COUNT ( * ), + 1 + + 96 * - + 28, 69 * + - 21 + - 12 - - ( + 74 ) / - COALESCE ( + 98, - + COUNT ( * ) * - 97 + - - COUNT ( * ) ) * - MIN ( DISTINCT + - 46 ) ) AS col0
----
-1

query I rowsort
SELECT ALL - + 16 * 93
----
-1488

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT + 98 + - 27 + - 76 DIV 28
----
69

skipif mysql # not compatible
query I rowsort label-7899
SELECT + 98 + - 27 + - 76 / 28
----
69

query I rowsort
SELECT 47 + + 16
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7901
SELECT 57 + 0 + - COALESCE ( + COUNT( * ), - 22 DIV + + 3 ) * + + 4, - 31 + CAST( COUNT( - - 88 ) AS SIGNED ) DIV - 82 col1
----
53
-31

skipif mysql # not compatible
query II rowsort label-7901
SELECT 57 + 0 + - COALESCE ( + COUNT ( * ), - 22 / + + 3 ) * + + 4, - 31 + CAST ( COUNT ( - - 88 ) AS INTEGER ) / - 82 col1
----
53
-31

query I rowsort
SELECT ALL - 19 * 72 AS col2
----
-1368

onlyif mysql # DIV for integer division: 
query I rowsort label-7903
SELECT 47 DIV 7 + 48
----
54

skipif mysql # not compatible
query I rowsort label-7903
SELECT 47 / 7 + 48
----
54

query I rowsort
SELECT 76 * 43 * - 67 AS col1
----
-218956

query I rowsort
SELECT ALL + 47 * 78
----
3666

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + 58 * + COUNT( * ) + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-7906
SELECT + 58 * + COUNT ( * ) + - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT COUNT( * ) + - - 63 * - 6 AS col1
----
-377

skipif mysql # not compatible
query I rowsort label-7907
SELECT COUNT ( * ) + - - 63 * - 6 AS col1
----
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL + COUNT( * ) + - COUNT( * ) + - 96 + + + 75
----
-21

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + - 96 + + + 75
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7909
SELECT DISTINCT + 30 + 73 + - - CAST( - 37 AS SIGNED ) * COALESCE ( + 80, - ( + 54 ) + - 62 ) AS col2, - 5
----
-2857
-5

skipif mysql # not compatible
query II rowsort label-7909
SELECT DISTINCT + 30 + 73 + - - CAST ( - 37 AS INTEGER ) * COALESCE ( + 80, - ( + 54 ) + - 62 ) AS col2, - 5
----
-2857
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7910
SELECT MIN( ALL 89 ) * + 95 - + 31 * 0 + 73 + + 92 + - 5 DIV - - 85, ( + ( - 34 ) ) col2
----
8620
-34

skipif mysql # not compatible
query II rowsort label-7910
SELECT MIN ( ALL 89 ) * + 95 - + 31 * 0 + 73 + + 92 + - 5 / - - 85, ( + ( - 34 ) ) col2
----
8620
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7911
SELECT DISTINCT 71 + + 21 AS col1, + 28 * COUNT( * )
----
92
28

skipif mysql # not compatible
query II rowsort label-7911
SELECT DISTINCT 71 + + 21 AS col1, + 28 * COUNT ( * )
----
92
28

query I rowsort
SELECT ALL 5 + 19 * + 19
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT 17 * 6 * COUNT( - 33 ) col2
----
102

skipif mysql # not compatible
query I rowsort label-7913
SELECT 17 * 6 * COUNT ( - 33 ) col2
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL - - COUNT( ALL + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - - COUNT ( ALL + 17 )
----
1

query I rowsort
SELECT DISTINCT 65 + + 14
----
79

query I rowsort
SELECT ALL + 10 * + - ( + 96 ) AS col0
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT - 79 DIV - 26
----
3

skipif mysql # not compatible
query I rowsort label-7917
SELECT - 79 / - 26
----
3

query II rowsort
SELECT + 88 + + 30, 73 col1
----
118
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT DISTINCT - MIN( ( - 4 ) ) col0
----
4

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT - MIN ( ( - 4 ) ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL ( + SUM( ALL - 71 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL ( + SUM ( ALL - 71 ) )
----
-71

query II rowsort
SELECT ALL 76 - + 46 * ( - 4 ) AS col2, 57 * - 36
----
260
-2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7922
SELECT - CAST( + + 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-7922
SELECT - CAST ( + + 79 AS INTEGER )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7923
SELECT COALESCE ( + + SUM( DISTINCT - 98 ), + 10 / - 93 / - + 76 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT COALESCE ( + + SUM ( DISTINCT - 98 ), + 10 / - 93 / - + 76 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT + 73 - + ( 63 ) + + 90 - - 21 DIV + - 79 * - - 21 * + + 5
----
100

skipif mysql # not compatible
query I rowsort label-7924
SELECT + 73 - + ( 63 ) + + 90 - - 21 / + - 79 * - - 21 * + + 5
----
100

query I rowsort
SELECT - + 90 AS col0
----
-90

query I rowsort
SELECT ( - - ( - 76 ) )
----
-76

query I rowsort
SELECT 92 + - - 32 * + - 60 * + 0 * - + 41 AS col2
----
92

query II rowsort
SELECT - 62 AS col1, 80 * ( + 69 ) - - 71 + 58 * - 54 * 40 * + 70 AS col0
----
-62
-8764009

onlyif mysql # aggregate syntax: 
query II rowsort label-7929
SELECT 22 AS col0, - CASE MIN( + 65 ) WHEN - 22 THEN 3 END AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-7929
SELECT 22 AS col0, - CASE MIN ( + 65 ) WHEN - 22 THEN 3 END AS col1
----
22
NULL

query I rowsort
SELECT 5 - + 88 * + 78 + - - 34
----
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT 76 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT 76 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL - 15 + + 68 * - + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL - 15 + + 68 * - + COUNT ( * )
----
-83

query I rowsort
SELECT ALL 90 + - 22 - - 45 * 74
----
3398

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT - ( - + NULLIF ( + - 87, - - 64 * 33 + - 10 / - - 40 + - - 5 + - ( - COUNT( * ) ) ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT - ( - + NULLIF ( + - 87, - - 64 * 33 + - 10 / - - 40 + - - 5 + - ( - COUNT ( * ) ) ) ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7935
SELECT ALL + CAST( - 13 AS SIGNED ) * - 55 + 26 + - SUM( - 35 )
----
776

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL + CAST ( - 13 AS INTEGER ) * - 55 + 26 + - SUM ( - 35 )
----
776

query I rowsort
SELECT 1 * + 23 * + 29 AS col0
----
667

query I rowsort
SELECT ALL - NULLIF ( ( + - 38 ), + + 44 + + 0 )
----
38

query I rowsort
SELECT DISTINCT - ( + 60 ) AS col2
----
-60

query I rowsort
SELECT ALL - 89 + + 51 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT MAX( ALL + - 17 ) * - 89 + - + 71
----
1442

skipif mysql # not compatible
query I rowsort label-7940
SELECT MAX ( ALL + - 17 ) * - 89 + - + 71
----
1442

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT 27 * COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7941
SELECT 27 * COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7942
SELECT - 40 DIV + COUNT( - - 51 ) + 65 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7942
SELECT - 40 / + COUNT ( - - 51 ) + 65 AS col1
----
25

query I rowsort
SELECT DISTINCT - NULLIF ( + - 77, - + 95 * + - NULLIF ( + - 33, 93 ) )
----
77

query I rowsort
SELECT ALL + 53 + - 83 col1
----
-30

query I rowsort
SELECT 17 - - + 27
----
44

query I rowsort
SELECT - ( CASE + 69 WHEN 64 + 2 THEN NULL ELSE 64 END ) * 40 + 40 * - 93
----
-6280

query I rowsort
SELECT DISTINCT - 99 * + 69 col1
----
-6831

query I rowsort
SELECT 27 * ( + 70 * + 87 ) + 29
----
164459

query I rowsort
SELECT 16 + 80
----
96

query I rowsort
SELECT 52 * - 10 AS col2
----
-520

query I rowsort
SELECT 26 + 94 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT CASE 2 WHEN + COUNT( * ) / + 19 + + NULLIF ( 15, - 1 ) THEN NULL WHEN 84 THEN NULL ELSE 93 END - - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-7952
SELECT CASE 2 WHEN + COUNT ( * ) / + 19 + + NULLIF ( 15, - 1 ) THEN NULL WHEN 84 THEN NULL ELSE 93 END - - COUNT ( * )
----
94

query I rowsort
SELECT 27 * 8 + 39 * 7
----
489

query I rowsort
SELECT 71 - - 92
----
163

query I rowsort
SELECT 42 * 34 AS col0
----
1428

query I rowsort
SELECT ALL 86 * 68 AS col1
----
5848

query I rowsort
SELECT + 92 * - 53
----
-4876

query I rowsort
SELECT + ( + 12 ) + - 17
----
-5

query I rowsort
SELECT DISTINCT 15 * 86
----
1290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7960
SELECT + COUNT( * ) DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT + COUNT ( * ) / - 80 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL 50 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL 50 * COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT - COUNT( DISTINCT + 24 ) + 51 * ( 45 )
----
2294

skipif mysql # not compatible
query I rowsort label-7962
SELECT - COUNT ( DISTINCT + 24 ) + 51 * ( 45 )
----
2294

query I rowsort
SELECT + 32 + 80
----
112

query I rowsort
SELECT DISTINCT 44 + + 38 * 21 AS col2
----
842

query I rowsort
SELECT DISTINCT - 74 * 11 AS col0
----
-814

query I rowsort
SELECT ALL + 20 + 40 AS col2
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7967
SELECT ALL 78 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL 78 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT DISTINCT COUNT( * ) DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT COUNT ( * ) / - 95 AS col0
----
0

query I rowsort
SELECT ALL 96 + - 44
----
52

query I rowsort
SELECT + 2 + + 36 AS col0
----
38

query I rowsort
SELECT DISTINCT 8 + - 27 AS col1
----
-19

query I rowsort
SELECT + 78 + 39
----
117

query I rowsort
SELECT + 54 + + ( + 33 ) AS col0
----
87

query I rowsort
SELECT + 72 + 47
----
119

query I rowsort
SELECT DISTINCT 95 + + 2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT 21 DIV - 98 + 77
----
77

skipif mysql # not compatible
query I rowsort label-7976
SELECT 21 / - 98 + 77
----
77

query I rowsort
SELECT + 36 * 63 AS col1
----
2268

query I rowsort
SELECT DISTINCT 42 * 7
----
294

query I rowsort
SELECT - 11 * - 56 + - 40
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT + 71 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT + 71 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL + COUNT( ALL + ( + 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + COUNT ( ALL + ( + 47 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ALL + 44 * + 67 - COUNT( * )
----
2947

skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL + 44 * + 67 - COUNT ( * )
----
2947

query I rowsort
SELECT - 64 + - 81
----
-145

query I rowsort
SELECT CASE + 61 WHEN - 41 THEN NULL WHEN + 84 + + 92 * 58 THEN NULL ELSE 63 * - 94 + - 38 * 11 END
----
-6340

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT + + 77 DIV + 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7985
SELECT + + 77 / + 20 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT - + 71 * - COUNT( 86 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7986
SELECT - + 71 * - COUNT ( 86 ) AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7987
SELECT DISTINCT + 49 DIV 47 col2
----
1

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT + 49 / 47 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT + NULLIF ( COUNT( * ), ( - 44 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7988
SELECT + NULLIF ( COUNT ( * ), ( - 44 ) )
----
1

query I rowsort
SELECT + + 23 * + 63 + 4 AS col1
----
1453

query I rowsort
SELECT ALL + - 84 * - 95
----
7980

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT - NULLIF ( + 67, 74 ) DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-7991
SELECT - NULLIF ( + 67, 74 ) / + 68
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7992
SELECT ALL 71 DIV COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL 71 / COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT + MAX( + 16 ) * + 37 AS col2
----
592

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT + MAX ( + 16 ) * + 37 AS col2
----
592

query I rowsort
SELECT ALL - + 72 * - 49 AS col0
----
3528

query I rowsort
SELECT DISTINCT + + ( + 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + - COUNT( * ) * 2 + 15
----
13

skipif mysql # not compatible
query I rowsort label-7996
SELECT + - COUNT ( * ) * 2 + 15
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT DISTINCT + + MAX( ALL CASE 18 WHEN - 24 * + 81 + - 0 * 5 THEN + 95 WHEN 57 + 30 * 61 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT DISTINCT + + MAX ( ALL CASE 18 WHEN - 24 * + 81 + - 0 * 5 THEN + 95 WHEN 57 + 30 * 61 THEN NULL END )
----
NULL

query I rowsort
SELECT - + 69 * - 27 AS col0
----
1863

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7999
SELECT ALL - CASE ( + 84 ) WHEN + 83 - - 25 THEN NULL WHEN + 85 THEN - 77 - + NULLIF ( 22 + NULLIF ( + COUNT( * ), 71 ) * CAST( NULL AS DECIMAL ), - 67 ) END * + 64 + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - CASE ( + 84 ) WHEN + 83 - - 25 THEN NULL WHEN + 85 THEN - 77 - + NULLIF ( 22 + NULLIF ( + COUNT ( * ), 71 ) * CAST ( NULL AS REAL ), - 67 ) END * + 64 + 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT + 9 * - ( + CAST( 42 AS SIGNED ) * 67 ) - - 9
----
-25317

skipif mysql # not compatible
query I rowsort label-8000
SELECT + 9 * - ( + CAST ( 42 AS INTEGER ) * 67 ) - - 9
----
-25317

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - CASE + 74 WHEN 95 THEN - AVG ( + 86 ) / 62 + - COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT - CASE + 74 WHEN 95 THEN - AVG ( + 86 ) / 62 + - COUNT ( * ) END col2
----
NULL

query I rowsort
SELECT - + 9 * + ( 93 + 2 )
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + 87 + SUM( 84 ) AS col0
----
171

skipif mysql # not compatible
query I rowsort label-8003
SELECT + 87 + SUM ( 84 ) AS col0
----
171

query I rowsort
SELECT ALL - + 0 + 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT - COUNT( DISTINCT - 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-8005
SELECT - COUNT ( DISTINCT - 76 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ALL COUNT( + - 75 ) + 23 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL COUNT ( + - 75 ) + 23 AS col2
----
24

query I rowsort
SELECT - COALESCE ( - + 56, - 71 ) * + 83
----
4648

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT + 15 + - - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT + 15 + - - COUNT ( * )
----
16

query I rowsort
SELECT - NULLIF ( + 36, - 26 ) AS col2
----
-36

query I rowsort
SELECT ALL + 89 + + - 21
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT - ( MIN( - 18 ) ) * - MAX( ALL + 47 )
----
-846

skipif mysql # not compatible
query I rowsort label-8011
SELECT - ( MIN ( - 18 ) ) * - MAX ( ALL + 47 )
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT CASE + - 44 WHEN - 71 * - 27 THEN NULL WHEN COUNT( * ) * + AVG ( ALL + 75 ) THEN - 43 ELSE NULL END + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT CASE + - 44 WHEN - 71 * - 27 THEN NULL WHEN COUNT ( * ) * + AVG ( ALL + 75 ) THEN - 43 ELSE NULL END + 88
----
NULL

query I rowsort
SELECT DISTINCT 54 + 94
----
148

query I rowsort
SELECT ALL - 26 * 6
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT + COUNT( - 70 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT + COUNT ( - 70 ) - + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8016
SELECT ALL CAST( - + COUNT( ALL 10 ) AS SIGNED ) DIV - ( 89 + - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL CAST ( - + COUNT ( ALL 10 ) AS INTEGER ) / - ( 89 + - 35 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8017
SELECT DISTINCT 18 * CAST( 40 AS SIGNED )
----
720

skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT 18 * CAST ( 40 AS INTEGER )
----
720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8018
SELECT 54 DIV + ( 61 ) + CAST( 69 + ( - 11 ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-8018
SELECT 54 / + ( 61 ) + CAST ( 69 + ( - 11 ) AS INTEGER )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT + 52 + - 27 DIV 82
----
52

skipif mysql # not compatible
query I rowsort label-8019
SELECT + 52 + - 27 / 82
----
52

query I rowsort
SELECT + - 42 * - - 25 AS col0
----
-1050

query I rowsort
SELECT DISTINCT + 87 * + + 75
----
6525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT 42 + + - 52 + + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8022
SELECT 42 + + - 52 + + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL ( + - 50 ) * - 83 AS col2
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT - ( 72 ) - + COUNT( DISTINCT 89 + - 91 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8024
SELECT - ( 72 ) - + COUNT ( DISTINCT 89 + - 91 ) AS col0
----
-73

query I rowsort
SELECT ALL - - 42 col2
----
42

query I rowsort
SELECT 18 + - - 98 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL - + COUNT( DISTINCT - + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - + COUNT ( DISTINCT - + 59 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT ( + 91 ) * + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT ( + 91 ) * + COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT - 93 + 40 + - 35
----
-88

query I rowsort
SELECT ALL + 35 + 3 * ( + 88 * 26 + 9 )
----
6926

onlyif mysql # DIV for integer division: 
query I rowsort label-8031
SELECT ALL + 43 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL + 43 / + - 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT 18 DIV - - 31 * ( + 31 ) + + 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8032
SELECT 18 / - - 31 * ( + 31 ) + + 52 AS col2
----
52

query I rowsort
SELECT DISTINCT + NULLIF ( + 10, ( 21 ) / - 94 ) * - 36
----
-360

query I rowsort
SELECT ALL - 52 + + - 26 AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT ( + + ( + 34 ) ) DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8035
SELECT ( + + ( + 34 ) ) / 60 AS col2
----
0

query I rowsort
SELECT 95 + 21 * - 67 + 46 * + 79
----
2322

query I rowsort
SELECT DISTINCT - 75 * 34
----
-2550

query I rowsort
SELECT 5 + 69 AS col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-8039
SELECT - 14, + 54 + + - 75 - + 20 * COUNT( * ) AS col0
----
-14
-41

skipif mysql # not compatible
query II rowsort label-8039
SELECT - 14, + 54 + + - 75 - + 20 * COUNT ( * ) AS col0
----
-14
-41

query II rowsort
SELECT ALL 15, + 76 AS col1
----
15
76

query I rowsort
SELECT 82 + - 39 AS col1
----
43

query I rowsort
SELECT 85 * 81 AS col0
----
6885

query I rowsort
SELECT 91 + - 24
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT COUNT( * ) * + MAX( DISTINCT 88 ) * 3 AS col2
----
264

skipif mysql # not compatible
query I rowsort label-8044
SELECT COUNT ( * ) * + MAX ( DISTINCT 88 ) * 3 AS col2
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT + MIN( ALL - 15 ) - - + 60 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + MIN ( ALL - 15 ) - - + 60 AS col2
----
45

query I rowsort
SELECT 1 + - 10 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8047
SELECT DISTINCT 29 AS col2, + COUNT( * ) AS col0
----
29
1

skipif mysql # not compatible
query II rowsort label-8047
SELECT DISTINCT 29 AS col2, + COUNT ( * ) AS col0
----
29
1

query I rowsort
SELECT 17 + + 85
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT DISTINCT 38 AS col2, COUNT( - 28 )
----
38
1

skipif mysql # not compatible
query II rowsort label-8049
SELECT DISTINCT 38 AS col2, COUNT ( - 28 )
----
38
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8050
SELECT DISTINCT 40 AS col0, NULLIF ( 19, + 38 DIV - 15 ) DIV 50 + 73
----
40
73

skipif mysql # not compatible
query II rowsort label-8050
SELECT DISTINCT 40 AS col0, NULLIF ( 19, + 38 / - 15 ) / 50 + 73
----
40
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8051
SELECT DISTINCT + 40 * + COUNT( * ) * - CASE - 5 WHEN + 21 * + 81 THEN - CAST( - 24 AS DECIMAL ) + 34 WHEN 54 THEN NULL WHEN 12 / - ( AVG ( ALL 61 ) * - CAST( NULL AS SIGNED ) ) THEN NULL END / + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT + 40 * + COUNT ( * ) * - CASE - 5 WHEN + 21 * + 81 THEN - CAST ( - 24 AS REAL ) + 34 WHEN 54 THEN NULL WHEN 12 / - ( AVG ( ALL 61 ) * - CAST ( NULL AS INTEGER ) ) THEN NULL END / + 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8052
SELECT COUNT( * ) / 67 / - CAST( NULL AS SIGNED ) / - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8052
SELECT COUNT ( * ) / 67 / - CAST ( NULL AS INTEGER ) / - 58
----
NULL

query I rowsort
SELECT 55 * 94
----
5170

query I rowsort
SELECT 26 * 79
----
2054

query I rowsort
SELECT 61 + 37
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8056
SELECT 73 col0, - NULLIF ( CAST( NULL AS SIGNED ), SUM( - 69 ) ) + COUNT( * ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-8056
SELECT 73 col0, - NULLIF ( CAST ( NULL AS INTEGER ), SUM ( - 69 ) ) + COUNT ( * ) AS col0
----
73
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8057
SELECT 59, + COUNT( * ) * - COALESCE ( + 99, - 24 + 34 ) col2
----
59
-99

skipif mysql # not compatible
query II rowsort label-8057
SELECT 59, + COUNT ( * ) * - COALESCE ( + 99, - 24 + 34 ) col2
----
59
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8058
SELECT - 74 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-8058
SELECT - 74 / + 96
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8059
SELECT DISTINCT - - COUNT( * ), 74 * - 15 AS col2
----
1
-1110

skipif mysql # not compatible
query II rowsort label-8059
SELECT DISTINCT - - COUNT ( * ), 74 * - 15 AS col2
----
1
-1110

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL - CASE - + NULLIF ( + - 53, - 34 * 18 ) WHEN - 84 + 99 THEN - MAX( ALL - 49 ) / + 1 WHEN 86 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL - CASE - + NULLIF ( + - 53, - 34 * 18 ) WHEN - 84 + 99 THEN - MAX ( ALL - 49 ) / + 1 WHEN 86 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ALL + 25 + - MAX( 22 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL + 25 + - MAX ( 22 ) AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8062
SELECT + + 87 AS col2, 38 + - - COUNT( DISTINCT + CAST( - 98 AS SIGNED ) )
----
87
39

skipif mysql # not compatible
query II rowsort label-8062
SELECT + + 87 AS col2, 38 + - - COUNT ( DISTINCT + CAST ( - 98 AS INTEGER ) )
----
87
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT DISTINCT COUNT( DISTINCT - ( - 53 ) ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT COUNT ( DISTINCT - ( - 53 ) ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT + 23 * - ( + - 34 ) + + COUNT( * )
----
783

skipif mysql # not compatible
query I rowsort label-8064
SELECT + 23 * - ( + - 34 ) + + COUNT ( * )
----
783

query I rowsort
SELECT ALL - 64 + + 83
----
19

query II rowsort
SELECT + 25 AS col0, 37
----
25
37

query II rowsort
SELECT - 75, 10 AS col0
----
-75
10

query II rowsort
SELECT + 9, + ( - 96 ) AS col2
----
9
-96

query I rowsort
SELECT - 90 * 86
----
-7740

query I rowsort
SELECT ALL 60 + + 19
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - COUNT( DISTINCT - 21 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8071
SELECT - COUNT ( DISTINCT - 21 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8072
SELECT ALL + COUNT( * ) + ( - - COUNT( * ) ) + - 7 DIV + 84
----
2

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + COUNT ( * ) + ( - - COUNT ( * ) ) + - 7 / + 84
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL + 48 + COALESCE ( ( ( 30 ) ), COUNT( * ) ) + + 88 * 93 col2
----
8262

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + 48 + COALESCE ( ( ( 30 ) ), COUNT ( * ) ) + + 88 * 93 col2
----
8262

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT MAX( - 34 ) * 19
----
-646

skipif mysql # not compatible
query I rowsort label-8074
SELECT MAX ( - 34 ) * 19
----
-646

query I rowsort
SELECT ALL - + ( + - 59 ) col2
----
59

query I rowsort
SELECT - 29 * + 71 * - 69 * - 95 + + 70 + 39 AS col1
----
-13496636

onlyif mysql # DIV for integer division: 
query I rowsort label-8077
SELECT ALL 20 - 2 + + 32 - - 34 DIV + 37 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL 20 - 2 + + 32 - - 34 / + 37 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT CASE - - 72 WHEN 46 THEN NULL WHEN - 37 + 82 * - 74 THEN - 38 + + COUNT( * ) WHEN - 97 / + 79 THEN NULL ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT CASE - - 72 WHEN 46 THEN NULL WHEN - 37 + 82 * - 74 THEN - 38 + + COUNT ( * ) WHEN - 97 / + 79 THEN NULL ELSE NULL END + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 84 - + 36 AS col1
----
48

query I rowsort
SELECT 10 * + 82 AS col0
----
820

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL + CASE - 96 WHEN - - 52 THEN NULL ELSE + 88 END * - NULLIF ( + MIN( 69 ), - 64 - 17 / 57 )
----
-6072

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL + CASE - 96 WHEN - - 52 THEN NULL ELSE + 88 END * - NULLIF ( + MIN ( 69 ), - 64 - 17 / 57 )
----
-6072

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT 30 - + COUNT( * ) + 58 * - + 60 * 75
----
-260971

skipif mysql # not compatible
query I rowsort label-8082
SELECT 30 - + COUNT ( * ) + 58 * - + 60 * 75
----
-260971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8083
SELECT DISTINCT + 81 * 72 AS col2, - MAX( - + NULLIF ( 32, CAST( + 96 AS SIGNED ) ) ) / MIN( 36 + + 37 ) + + CAST( NULL AS SIGNED ) AS col2
----
5832
NULL

skipif mysql # not compatible
query II rowsort label-8083
SELECT DISTINCT + 81 * 72 AS col2, - MAX ( - + NULLIF ( 32, CAST ( + 96 AS INTEGER ) ) ) / MIN ( 36 + + 37 ) + + CAST ( NULL AS INTEGER ) AS col2
----
5832
NULL

query I rowsort
SELECT ALL - NULLIF ( - + 87, - 13 - + + 72 ) * 67
----
5829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8085
SELECT CAST( NULL AS SIGNED ) * + 62 / - 15 * 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8085
SELECT CAST ( NULL AS INTEGER ) * + 62 / - 15 * 72 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT - NULLIF ( COUNT( * ), - + NULLIF ( + + 1, - 55 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8086
SELECT - NULLIF ( COUNT ( * ), - + NULLIF ( + + 1, - 55 ) ) AS col0
----
-1

query I rowsort
SELECT 35 * 18
----
630

query I rowsort
SELECT ALL 11 + 55 * + + 11
----
616

query I rowsort
SELECT ALL + + 78 + - + 70 + + 20
----
28

query I rowsort
SELECT - - 23 - + 41 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT - + COALESCE ( NULLIF ( + - 86, + COUNT( * ) + 99 ), 74 * + 60 + 56, + COUNT( * ) * 63 + 26, COUNT( * ) ) * 59
----
5074

skipif mysql # not compatible
query I rowsort label-8091
SELECT - + COALESCE ( NULLIF ( + - 86, + COUNT ( * ) + 99 ), 74 * + 60 + 56, + COUNT ( * ) * 63 + 26, COUNT ( * ) ) * 59
----
5074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8092
SELECT ALL COUNT( * ) * 60 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL COUNT ( * ) * 60 / - 96 AS col1
----
0

query I rowsort
SELECT ALL - 82 * + COALESCE ( - NULLIF ( 57, - 69 * 57 ), - 91 + - NULLIF ( 28, + 71 ) ) - 9 + 48 * + 65
----
7785

query I rowsort
SELECT + - 2 col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8095
SELECT + COUNT( * ) DIV - - 60 * 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8095
SELECT + COUNT ( * ) / - - 60 * 86 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8096
SELECT - COUNT( * ) + - 64 DIV + 51 + + 47 + + 19 * - ( 2 * + ( 13 ) )
----
-449

skipif mysql # not compatible
query I rowsort label-8096
SELECT - COUNT ( * ) + - 64 / + 51 + + 47 + + 19 * - ( 2 * + ( 13 ) )
----
-449

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8097
SELECT + CAST( NULL AS DECIMAL ) * + 72 + - + 31 * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT + CAST ( NULL AS REAL ) * + 72 + - + 31 * 11
----
NULL

query I rowsort
SELECT ALL - 77 * + 79 col1
----
-6083

query I rowsort
SELECT + + 95 * - + 12 * 40 + 38
----
-45562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8100
SELECT + CAST( - SUM( + 34 ) AS SIGNED ) col2
----
-34

skipif mysql # not compatible
query I rowsort label-8100
SELECT + CAST ( - SUM ( + 34 ) AS INTEGER ) col2
----
-34

query I rowsort
SELECT ALL - 31 * + 44 + + - 27 + 31 AS col2
----
-1360

query I rowsort
SELECT - - ( + 71 ) + + + 69 AS col1
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8103
SELECT ALL + 66 * + 55 + - 28 + 27 + - COUNT( * ) DIV - 63
----
3629

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL + 66 * + 55 + - 28 + 27 + - COUNT ( * ) / - 63
----
3629

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT + + 47 + - COUNT( * ) - - MIN( ALL - - ( - 31 ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8104
SELECT + + 47 + - COUNT ( * ) - - MIN ( ALL - - ( - 31 ) ) AS col0
----
15

query II rowsort
SELECT ALL + + ( - - 27 ) AS col2, - 54 * - 54
----
27
2916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8106
SELECT - ( + - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8106
SELECT - ( + - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8107
SELECT - - 94 * - + 76 + - 53 + + - ( 98 ) * NULLIF ( + 15 * - 37, 63 ) DIV - ( 88 ) + 0 * + ( - ( COUNT( * ) ) ) AS col2
----
-7815

skipif mysql # not compatible
query I rowsort label-8107
SELECT - - 94 * - + 76 + - 53 + + - ( 98 ) * NULLIF ( + 15 * - 37, 63 ) / - ( 88 ) + 0 * + ( - ( COUNT ( * ) ) ) AS col2
----
-7815

query I rowsort
SELECT - 77 + - 25 AS col1
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8109
SELECT COUNT( * ) AS col2, 7 - + ( ( + SUM( + 95 ) ) ) - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8109
SELECT COUNT ( * ) AS col2, 7 - + ( ( + SUM ( + 95 ) ) ) - CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT + 8 + 30 col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8111
SELECT + CASE - CAST( + NULLIF ( - 53, 89 + 0 ) AS SIGNED ) WHEN CASE 40 WHEN + 71 THEN COUNT( * ) WHEN 62 + 95 THEN - 65 WHEN COUNT( * ) + - 92 THEN NULL END + + SUM( DISTINCT + 65 ) THEN MAX( + 37 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT + CASE - CAST ( + NULLIF ( - 53, 89 + 0 ) AS INTEGER ) WHEN CASE 40 WHEN + 71 THEN COUNT ( * ) WHEN 62 + 95 THEN - 65 WHEN COUNT ( * ) + - 92 THEN NULL END + + SUM ( DISTINCT + 65 ) THEN MAX ( + 37 ) END
----
NULL

query I rowsort
SELECT + 72 * - 78 col1
----
-5616

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT + 48 + 36 + + 27 * ( - 19 ) DIV - 3
----
255

skipif mysql # not compatible
query I rowsort label-8113
SELECT + 48 + 36 + + 27 * ( - 19 ) / - 3
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT SUM( - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8114
SELECT SUM ( - 91 ) AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT + 36 DIV + 99 DIV 43 * + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT + 36 / + 99 / 43 * + 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8116
SELECT + 42 * - ( - 57 ), COUNT( * ) AS col0
----
2394
1

skipif mysql # not compatible
query II rowsort label-8116
SELECT + 42 * - ( - 57 ), COUNT ( * ) AS col0
----
2394
1

query I rowsort
SELECT + 30 + + 53 col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8118
SELECT + 6 DIV + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8118
SELECT + 6 / + COUNT ( * ) AS col0
----
6

query I rowsort
SELECT ALL - 95 + + - 68
----
-163

query I rowsort
SELECT + 99 + + 60
----
159

query II rowsort
SELECT 98 AS col1, 40 + 46
----
98
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT - 30 + 97 + - COUNT( * ) * 94 + + 92 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT - 30 + 97 + - COUNT ( * ) * 94 + + 92 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8123
SELECT - CASE + + ( + 28 ) WHEN + 78 THEN - 4 DIV ( 48 ) WHEN COUNT( * ) * + 93 THEN ( 38 ) ELSE + 65 - 29 END + + 12 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8123
SELECT - CASE + + ( + 28 ) WHEN + 78 THEN - 4 / ( 48 ) WHEN COUNT ( * ) * + 93 THEN ( 38 ) ELSE + 65 - 29 END + + 12 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL 48 + - SUM( DISTINCT + - COALESCE ( - ( + ( + 51 ) ), 69, 21 ) ) * + ( COUNT( * ) * - COUNT( DISTINCT + 86 ) )
----
99

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL 48 + - SUM ( DISTINCT + - COALESCE ( - ( + ( + 51 ) ), 69, 21 ) ) * + ( COUNT ( * ) * - COUNT ( DISTINCT + 86 ) )
----
99

query I rowsort
SELECT - 92 + - + ( + 36 ) + - - 72 AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT + - 17 DIV - + 39
----
0

skipif mysql # not compatible
query I rowsort label-8126
SELECT + - 17 / - + 39
----
0

query I rowsort
SELECT - - 11 + - ( + - 58 ) * 83
----
4825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8128
SELECT + + 42 * - MAX( - - 31 ), CAST( NULL AS SIGNED ) + 40 AS col1
----
-1302
NULL

skipif mysql # not compatible
query II rowsort label-8128
SELECT + + 42 * - MAX ( - - 31 ), CAST ( NULL AS INTEGER ) + 40 AS col1
----
-1302
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT - + 36 + + + 75 + - + MAX( + 16 ) * 59 + 54 AS col1
----
-851

skipif mysql # not compatible
query I rowsort label-8129
SELECT - + 36 + + + 75 + - + MAX ( + 16 ) * 59 + 54 AS col1
----
-851

query I rowsort
SELECT + - 96 col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8131
SELECT ALL + COUNT( * ) DIV - - 81 + - 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + COUNT ( * ) / - - 81 + - 38 AS col1
----
-38

query I rowsort
SELECT DISTINCT + - ( - - NULLIF ( + 92, 37 ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT DISTINCT + + MIN( 99 ) col1
----
99

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT + + MIN ( 99 ) col1
----
99

query II rowsort
SELECT 15 * - 60 - + 80 AS col0, + 57 AS col0
----
-980
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT ALL + 71 * - CASE + + 50 WHEN COUNT( * ) / + 41 - + COALESCE ( CASE - 30 WHEN + CAST( NULL AS SIGNED ) + + 31 THEN 61 WHEN - 37 + + 62 THEN NULL END, ( 62 ) ) THEN + 79 + ( - 42 + + 49 ) / - 30 ELSE NULL END + AVG ( 15 ) * - COALESCE ( - 26 * + 53, + MAX( DISTINCT - 68 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL + 71 * - CASE + + 50 WHEN COUNT ( * ) / + 41 - + COALESCE ( CASE - 30 WHEN + CAST ( NULL AS INTEGER ) + + 31 THEN 61 WHEN - 37 + + 62 THEN NULL END, ( 62 ) ) THEN + 79 + ( - 42 + + 49 ) / - 30 ELSE NULL END + AVG ( 15 ) * - COALESCE ( - 26 * + 53, + MAX ( DISTINCT - 68 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT - 20 * - SUM( ALL + CASE - 72 WHEN 59 * + + CASE - 23 WHEN 11 THEN 69 * 75 END THEN NULL WHEN - 39 * - 39 THEN NULL ELSE CAST( NULL AS SIGNED ) END ) * + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT - 20 * - SUM ( ALL + CASE - 72 WHEN 59 * + + CASE - 23 WHEN 11 THEN 69 * 75 END THEN NULL WHEN - 39 * - 39 THEN NULL ELSE CAST ( NULL AS INTEGER ) END ) * + 13 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 53 * - 1 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT - CASE - - ( - + 81 ) WHEN COUNT( * ) THEN - - 3 * + 64 END * - 64 + + 12 * + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT - CASE - - ( - + 81 ) WHEN COUNT ( * ) THEN - - 3 * + 64 END * - 64 + + 12 * + 61 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - ( + 5 ) ) AS col2
----
-5

query I rowsort
SELECT - 60 * 7 AS col0
----
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-8141
SELECT + NULLIF ( - COUNT( * ), - 42 * + + 19 ), - SUM( 79 ) AS col1
----
-1
-79

skipif mysql # not compatible
query II rowsort label-8141
SELECT + NULLIF ( - COUNT ( * ), - 42 * + + 19 ), - SUM ( 79 ) AS col1
----
-1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT + COUNT( * ) * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-8142
SELECT + COUNT ( * ) * - 64
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT ALL + 8 DIV 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL + 8 / 32 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8144
SELECT + COUNT( * ) DIV ( 63 ) * - SUM( ALL - - 27 ) + 95 * 87 AS col1
----
8265

skipif mysql # not compatible
query I rowsort label-8144
SELECT + COUNT ( * ) / ( 63 ) * - SUM ( ALL - - 27 ) + 95 * 87 AS col1
----
8265

query I rowsort
SELECT - 54 * + - 72
----
3888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT 8 * + - 54 + + 7 + + NULLIF ( + - ( CAST( NULL AS SIGNED ) ), 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT 8 * + - 54 + + 7 + + NULLIF ( + - ( CAST ( NULL AS INTEGER ) ), 21 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8147
SELECT ALL 32 AS col2, + 51 - + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-8147
SELECT ALL 32 AS col2, + 51 - + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
32
NULL

query I rowsort
SELECT - 30 * + - 57 AS col0
----
1710

query I rowsort
SELECT ALL 18 + + - 43
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT ALL - CAST( NULL AS SIGNED ) + MAX( ALL - 5 ) + 69 + SUM( ALL + CAST( NULL AS SIGNED ) ) - 1 * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - CAST ( NULL AS INTEGER ) + MAX ( ALL - 5 ) + 69 + SUM ( ALL + CAST ( NULL AS INTEGER ) ) - 1 * - 61
----
NULL

query I rowsort
SELECT ALL 70 + - + 92
----
-22

query II rowsort
SELECT - 99 AS col1, 70
----
-99
70

query I rowsort
SELECT ALL 82 + - 95 * 83 AS col0
----
-7803

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT + 2 - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8154
SELECT + 2 - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8155
SELECT - 93 AS col0, COUNT( * ) AS col1
----
-93
1

skipif mysql # not compatible
query II rowsort label-8155
SELECT - 93 AS col0, COUNT ( * ) AS col1
----
-93
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8156
SELECT - 21, - MAX( ALL + + 81 ) * - 6 col0
----
-21
486

skipif mysql # not compatible
query II rowsort label-8156
SELECT - 21, - MAX ( ALL + + 81 ) * - 6 col0
----
-21
486

query I rowsort
SELECT DISTINCT - ( - - 90 ) + 18 + ( - - ( 84 ) )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8158
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8158
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 82 - - 9 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT - 52 - NULLIF ( 29, 22 - SUM( DISTINCT - 28 ) ) - 7
----
-88

skipif mysql # not compatible
query I rowsort label-8160
SELECT - 52 - NULLIF ( 29, 22 - SUM ( DISTINCT - 28 ) ) - 7
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8161
SELECT ALL COUNT( * ) DIV 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL COUNT ( * ) / 43 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT COUNT( * ) - - 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8162
SELECT COUNT ( * ) - - 32 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT + 94 * - 3 * + 16 * - COALESCE ( + COUNT( * ), + 76 * 24 ) - 82 * 83
----
-2294

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT + 94 * - 3 * + 16 * - COALESCE ( + COUNT ( * ), + 76 * 24 ) - 82 * 83
----
-2294

query I rowsort
SELECT ALL - 25 - - 96 AS col2
----
71

query I rowsort
SELECT 21 + - 59 + - 40
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8166
SELECT DISTINCT 71 * + 68, - MIN( - - 40 ) - COUNT( * ) col0
----
4828
-41

skipif mysql # not compatible
query II rowsort label-8166
SELECT DISTINCT 71 * + 68, - MIN ( - - 40 ) - COUNT ( * ) col0
----
4828
-41

query I rowsort
SELECT 11 - 32 AS col2
----
-21

query II rowsort
SELECT 57 - - 42 AS col1, + 46 AS col1
----
99
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT - 31 * + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT - 31 * + COUNT ( * ) AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8170
SELECT 59 + + SUM( DISTINCT + - ( + CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT 59 + + SUM ( DISTINCT + - ( + CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8171
SELECT 11 * - + 46 / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT 11 * - + 46 / + CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT 20 + + 42 col0, 18 AS col2
----
62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL + COUNT( * ) * - CASE 84 WHEN + 5 / - + 63 THEN NULL ELSE 67 * - COUNT( * ) + + 56 END
----
11

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + COUNT ( * ) * - CASE 84 WHEN + 5 / - + 63 THEN NULL ELSE 67 * - COUNT ( * ) + + 56 END
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL - MIN( - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL - MIN ( - 70 ) AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT 12 * - 31 * + - 5 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT 12 * - 31 * + - 5 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( NULLIF ( - 82, + - AVG ( ALL 59 ) * - + 55 - - 25 + - 37 * 87 ) ) * 81 AS col0
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT 26 * + 48 * - 35 * ( - MIN( + ( 44 ) ) ) * + 87 AS col2
----
167207040

skipif mysql # not compatible
query I rowsort label-8177
SELECT 26 * + 48 * - 35 * ( - MIN ( + ( 44 ) ) ) * + 87 AS col2
----
167207040

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT + COUNT( * ) * + SUM( DISTINCT - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT + COUNT ( * ) * + SUM ( DISTINCT - - 13 )
----
13

query I rowsort
SELECT ALL + 77 + 63 AS col2
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8180
SELECT ALL + CAST( NULL AS SIGNED ) * 19 * COALESCE ( ( - 30 ), ( - - 59 ) / + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL + CAST ( NULL AS INTEGER ) * 19 * COALESCE ( ( - 30 ), ( - - 59 ) / + COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT DISTINCT - 60 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT - 60 / 71 AS col2
----
0

query I rowsort
SELECT + 71 * + COALESCE ( 61, - 65, + - 42 * - 11 - + ( - ( - 46 ) ) ) + + 90 * + 51
----
8921

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT CASE + 32 WHEN - ( 47 ) - + + COUNT( * ) THEN - COALESCE ( + 3, - 69 ) WHEN - ( 84 ) * 58 THEN - ( - 44 ) / - 94 END / 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT CASE + 32 WHEN - ( 47 ) - + + COUNT ( * ) THEN - COALESCE ( + 3, - 69 ) WHEN - ( 84 ) * 58 THEN - ( - 44 ) / - 94 END / 23 AS col2
----
NULL

query I rowsort
SELECT + 74 * + 4
----
296

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT 87 + - + COUNT( + 67 )
----
86

skipif mysql # not compatible
query I rowsort label-8185
SELECT 87 + - + COUNT ( + 67 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT DISTINCT COALESCE ( COUNT( * ), - 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT COALESCE ( COUNT ( * ), - 49 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT DISTINCT + 87 * CASE - + 58 WHEN CAST( MIN( 25 ) AS SIGNED ) THEN NULL WHEN + + 9 THEN 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT + 87 * CASE - + 58 WHEN CAST ( MIN ( 25 ) AS INTEGER ) THEN NULL WHEN + + 9 THEN 70 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8188
SELECT ALL - COALESCE ( - 27, + - MIN( + 38 ) * + - 61 * - 82 * 57 DIV 67 ) col2
----
27

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL - COALESCE ( - 27, + - MIN ( + 38 ) * + - 61 * - 82 * 57 / 67 ) col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8189
SELECT ALL + 54 * + 33 AS col0, 65 / + CAST( NULL AS SIGNED ) - + - 53 - + 76 / - 46 * 13 * + 36 AS col0
----
1782
NULL

skipif mysql # not compatible
query II rowsort label-8189
SELECT ALL + 54 * + 33 AS col0, 65 / + CAST ( NULL AS INTEGER ) - + - 53 - + 76 / - 46 * 13 * + 36 AS col0
----
1782
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT - ( - 92 ), - COUNT( * ) - 66 - + - 28 col1
----
92
-39

skipif mysql # not compatible
query II rowsort label-8190
SELECT - ( - 92 ), - COUNT ( * ) - 66 - + - 28 col1
----
92
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT COUNT( * ) + - ( + COUNT( * ) ) * + - 80 col0
----
81

skipif mysql # not compatible
query I rowsort label-8191
SELECT COUNT ( * ) + - ( + COUNT ( * ) ) * + - 80 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT ( MAX( DISTINCT 42 ) ) * + + 83 * + + 95 * - ( + - 15 ) + + 93 * + 18
----
4969224

skipif mysql # not compatible
query I rowsort label-8192
SELECT ( MAX ( DISTINCT 42 ) ) * + + 83 * + + 95 * - ( + - 15 ) + + 93 * + 18
----
4969224

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT - 99 + - - 22 DIV 38
----
-99

skipif mysql # not compatible
query I rowsort label-8193
SELECT - 99 + - - 22 / 38
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT ALL SUM( ALL - 96 ), + 40 * - 35 AS col2
----
-96
-1400

skipif mysql # not compatible
query II rowsort label-8194
SELECT ALL SUM ( ALL - 96 ), + 40 * - 35 AS col2
----
-96
-1400

query I rowsort
SELECT ( CASE - 77 WHEN - 80 * 36 - + + 36 THEN - - 68 * - 75 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT DISTINCT COUNT( * ) / CAST( NULL AS SIGNED ) * + COALESCE ( + NULLIF ( - 34, - 50 * ( 66 ) ), COALESCE ( + ( - ( - 34 ) ), 88 * 57, 13 ) + CAST( NULL AS SIGNED ) ) * 48 - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT COUNT ( * ) / CAST ( NULL AS INTEGER ) * + COALESCE ( + NULLIF ( - 34, - 50 * ( 66 ) ), COALESCE ( + ( - ( - 34 ) ), 88 * 57, 13 ) + CAST ( NULL AS INTEGER ) ) * 48 - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8197
SELECT ALL - NULLIF ( + 70, + 43 + 44 ) * + - 51 + + NULLIF ( + ( COALESCE ( COUNT( * ), 59 DIV - 44 + - 10, COUNT( * ), 27 ) ), + 64 * ( 42 * + 82 ) ) * + 16 AS col1
----
3586

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL - NULLIF ( + 70, + 43 + 44 ) * + - 51 + + NULLIF ( + ( COALESCE ( COUNT ( * ), 59 / - 44 + - 10, COUNT ( * ), 27 ) ), + 64 * ( 42 * + 82 ) ) * + 16 AS col1
----
3586

query I rowsort
SELECT 30 * + 75
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL 55 * + COUNT( + 53 ) * + 95
----
5225

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL 55 * + COUNT ( + 53 ) * + 95
----
5225

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT 36 DIV - - 20
----
1

skipif mysql # not compatible
query I rowsort label-8200
SELECT 36 / - - 20
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT SUM( 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8201
SELECT SUM ( 95 ) AS col2
----
95

query I rowsort
SELECT ALL - 53 * + - 35 + + - 88 + + + 88
----
1855

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT 45 / CASE + AVG ( + 50 ) WHEN 35 THEN NULL WHEN - - 35 THEN + COUNT( * ) + - 23 + - 70 END - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT 45 / CASE + AVG ( + 50 ) WHEN 35 THEN NULL WHEN - - 35 THEN + COUNT ( * ) + - 23 + - 70 END - + 53
----
NULL

query I rowsort
SELECT 55 * 27 * + + 20 * 78
----
2316600

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT + 30 DIV 38 * + + 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 30 / 38 * + + 16 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT + 89 * - + 66 * - COUNT( * )
----
5874

skipif mysql # not compatible
query I rowsort label-8206
SELECT + 89 * - + 66 * - COUNT ( * )
----
5874

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT SUM( - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8207
SELECT SUM ( - 93 ) AS col0
----
-93

query I rowsort
SELECT ALL NULLIF ( 86, + 7 + - 91 ) * - 4
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT MAX( + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-8209
SELECT MAX ( + 53 ) AS col0
----
53

query I rowsort
SELECT ALL - 26 * 18 + - + 73 * 58
----
-4702

query II rowsort
SELECT DISTINCT - 43 * - 67 + 51 AS col0, 14
----
2932
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT ALL + SUM( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + SUM ( 51 )
----
51

query I rowsort
SELECT + 7 * - + 81 + + CASE - - 4 WHEN + 1 * - + 71 THEN - - 69 WHEN + 68 THEN NULL WHEN + 32 + - 92 THEN - 55 END / 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT MIN( + ( + - 49 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8214
SELECT MIN ( + ( + - 49 ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT - ( + 32 ) * - 74, - COUNT( * ) AS col0
----
2368
-1

skipif mysql # not compatible
query II rowsort label-8215
SELECT - ( + 32 ) * - 74, - COUNT ( * ) AS col0
----
2368
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT + COUNT( * ) * - 25 * + + COALESCE ( + 85, + 46 ) * - - 4
----
-8500

skipif mysql # not compatible
query I rowsort label-8216
SELECT + COUNT ( * ) * - 25 * + + COALESCE ( + 85, + 46 ) * - - 4
----
-8500

query I rowsort
SELECT - CASE 54 WHEN - 10 THEN 48 + - 24 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8218
SELECT CASE 72 WHEN 53 THEN + COUNT( * ) - - 92 WHEN - 63 THEN + 73 + + COALESCE ( + 88, - COUNT( ALL 78 ) + + 9, ( CASE 35 WHEN 5 THEN CAST( 80 AS SIGNED ) * CAST( 6 AS SIGNED ) END ) * + 93 + - ( COUNT( * ) ) ) + - 20 ELSE - 85 END * - ( + 88 ) + 5
----
7485

skipif mysql # not compatible
query I rowsort label-8218
SELECT CASE 72 WHEN 53 THEN + COUNT ( * ) - - 92 WHEN - 63 THEN + 73 + + COALESCE ( + 88, - COUNT ( ALL 78 ) + + 9, ( CASE 35 WHEN 5 THEN CAST ( 80 AS INTEGER ) * CAST ( 6 AS INTEGER ) END ) * + 93 + - ( COUNT ( * ) ) ) + - 20 ELSE - 85 END * - ( + 88 ) + 5
----
7485

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT + - 27 - - CASE - - 47 WHEN - ( + - 67 ) - NULLIF ( - 70, - COALESCE ( + 82, + NULLIF ( MAX( - 42 ), - 6 + + 67 ) + + 42 * + 45 ) ) / - 19 THEN + 73 ELSE NULL END * CASE 66 WHEN 79 * - ( COALESCE ( 19, + ( - 37 ) ) ) THEN 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + - 27 - - CASE - - 47 WHEN - ( + - 67 ) - NULLIF ( - 70, - COALESCE ( + 82, + NULLIF ( MAX ( - 42 ), - 6 + + 67 ) + + 42 * + 45 ) ) / - 19 THEN + 73 ELSE NULL END * CASE 66 WHEN 79 * - ( COALESCE ( 19, + ( - 37 ) ) ) THEN 85 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL - + 64 * 67 + + COUNT( * ) + 68 * + + CASE - 52 WHEN + - 33 THEN + - COUNT( * ) * - 95 ELSE NULL END * + 9 - - SUM( DISTINCT 13 ) * + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL - + 64 * 67 + + COUNT ( * ) + 68 * + + CASE - 52 WHEN + - 33 THEN + - COUNT ( * ) * - 95 ELSE NULL END * + 9 - - SUM ( DISTINCT 13 ) * + 34 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT - - 54 * + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-8221
SELECT - - 54 * + COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL - COUNT( * ) * ( - ( + COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL - COUNT ( * ) * ( - ( + COUNT ( * ) ) ) AS col0
----
1

query III rowsort
SELECT DISTINCT - 61 col2, 73 + - 63 * + 43 AS col2, + - 22 AS col0
----
-61
-2636
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT + MIN( + - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-8224
SELECT + MIN ( + - 68 )
----
-68

query I rowsort
SELECT ALL + ( + + 47 )
----
47

query I rowsort
SELECT DISTINCT + 58 - 32 col0
----
26

query II rowsort
SELECT ALL - 38, 60 AS col1
----
-38
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT ALL CAST( - 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL CAST ( - 0 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT DISTINCT - CASE - 13 WHEN + 5 - - + 44 + - 73 + - - CAST( + 20 AS SIGNED ) * + 25 + - ( 30 ) * + 18 THEN + 92 + 72 ELSE + 18 END AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT - CASE - 13 WHEN + 5 - - + 44 + - 73 + - - CAST ( + 20 AS INTEGER ) * + 25 + - ( 30 ) * + 18 THEN + 92 + 72 ELSE + 18 END AS col0
----
-18

query I rowsort
SELECT - 0 - - 45 - - NULLIF ( 59, - 81 + + 27 ) AS col2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT - 5 DIV 28 * ( 35 ) * - + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8231
SELECT - 5 / 28 * ( 35 ) * - + 58 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT ALL - + 72 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL - + 72 / 86 AS col2
----
0

query II rowsort
SELECT 56 AS col0, + 13 * + 0 AS col1
----
56
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT + ( COUNT( * ) ) * - 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8234
SELECT + ( COUNT ( * ) ) * - 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT SUM( ALL - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-8235
SELECT SUM ( ALL - 94 )
----
-94

query I rowsort
SELECT ALL - - 80 + + 14 AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT - + 62 - + 69 * + + CAST( NULL AS SIGNED ) + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8237
SELECT - + 62 - + 69 * + + CAST ( NULL AS INTEGER ) + + 43
----
NULL

query I rowsort
SELECT - - 3 * 23 AS col2
----
69

query I rowsort
SELECT ALL - 92 + + 68
----
-24

query I rowsort
SELECT ALL + - 67 * + NULLIF ( + 67, + ( 80 ) ) + - 52 + 58 * - 16
----
-5469

query I rowsort
SELECT ALL ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT DISTINCT - COUNT( * ) * 6
----
-6

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT - COUNT ( * ) * 6
----
-6

query I rowsort
SELECT - 20 * + 32 AS col2
----
-640

query I rowsort
SELECT - 37 + + - 80 AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT + NULLIF ( - - COUNT( ALL - + 99 ), + 53 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8245
SELECT + NULLIF ( - - COUNT ( ALL - + 99 ), + 53 ) AS col1
----
1

query I rowsort
SELECT ( 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - 42 * 55 * 76 * COUNT( ALL - 42 ) * - ( 59 ) * + COUNT( * ) + - COUNT( DISTINCT + 88 ) AS col2
----
10358039

skipif mysql # not compatible
query I rowsort label-8247
SELECT - 42 * 55 * 76 * COUNT ( ALL - 42 ) * - ( 59 ) * + COUNT ( * ) + - COUNT ( DISTINCT + 88 ) AS col2
----
10358039

query I rowsort
SELECT + NULLIF ( + 51, + 35 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL + COUNT( * ) * - 65 + 27
----
-38

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + COUNT ( * ) * - 65 + 27
----
-38

query I rowsort
SELECT ALL 85 * - + 0 + + 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT + 59 + + 70 + + 43 * - NULLIF ( - MIN( DISTINCT 93 ), - 51 ) + ( - 38 ) * NULLIF ( + 17, 25 ) AS col2
----
3482

skipif mysql # not compatible
query I rowsort label-8251
SELECT + 59 + + 70 + + 43 * - NULLIF ( - MIN ( DISTINCT 93 ), - 51 ) + ( - 38 ) * NULLIF ( + 17, 25 ) AS col2
----
3482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT ALL 65 DIV - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL 65 / - COUNT ( * )
----
-65

query I rowsort
SELECT ( + 75 )
----
75

query I rowsort
SELECT ( + 60 ) AS col0
----
60

query I rowsort
SELECT 87 * 60 + + 86
----
5306

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT + 23 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT + 23 / - 95
----
0

query I rowsort
SELECT + 41 + + + 15
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8258
SELECT - CAST( NULL AS SIGNED ) * - 81 AS col0, ( - - 45 ) * - + 58 - + + 92 + ( + - 13 ) AS col0
----
NULL
-2715

skipif mysql # not compatible
query II rowsort label-8258
SELECT - CAST ( NULL AS INTEGER ) * - 81 AS col0, ( - - 45 ) * - + 58 - + + 92 + ( + - 13 ) AS col0
----
NULL
-2715

query I rowsort
SELECT ALL + 20 * - 61 AS col2
----
-1220

query I rowsort
SELECT + - 9 * - ( - 53 )
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT 92 * - 6 + - + CASE - 49 WHEN - ( + 45 ) + - - 84 + - 53 + - + COUNT( * ) * 64 THEN NULL WHEN 92 THEN ( 25 ) WHEN 74 * - 53 THEN NULL END - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT 92 * - 6 + - + CASE - 49 WHEN - ( + 45 ) + - - 84 + - 53 + - + COUNT ( * ) * 64 THEN NULL WHEN 92 THEN ( 25 ) WHEN 74 * - 53 THEN NULL END - - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT ( - 70 ) col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + + 82 + - + COUNT( * ) * - + 79 * 11 + 31 AS col1
----
982

skipif mysql # not compatible
query I rowsort label-8263
SELECT + + 82 + - + COUNT ( * ) * - + 79 * 11 + 31 AS col1
----
982

query I rowsort
SELECT DISTINCT - 54 + + - 87
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8265
SELECT DISTINCT - 43 + - + 30 DIV - MIN( DISTINCT + 48 ), 55 + - 4 AS col2
----
-43
51

skipif mysql # not compatible
query II rowsort label-8265
SELECT DISTINCT - 43 + - + 30 / - MIN ( DISTINCT + 48 ), 55 + - 4 AS col2
----
-43
51

query I rowsort
SELECT ALL - + 44 + - 36 col0
----
-80

query I rowsort
SELECT - 48 + - 3 AS col2
----
-51

query I rowsort
SELECT ALL - 10 + - COALESCE ( + + 2, 15 - + + 2, + + 78 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT - 94 + - + MAX( + 7 ) AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT - 94 + - + MAX ( + 7 ) AS col0
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT DISTINCT - CAST( - 64 AS SIGNED ) col1
----
64

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT - CAST ( - 64 AS INTEGER ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ALL - MIN( + - 80 ) + + - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL - MIN ( + - 80 ) + + - COUNT ( * ) AS col1
----
79

query I rowsort
SELECT - NULLIF ( + + 56, 12 * - AVG ( DISTINCT - - 23 ) * - 4 + - + 58 )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT 20 * + 29 * - - COUNT( * ) AS col2, + 11 AS col2
----
580
11

skipif mysql # not compatible
query II rowsort label-8273
SELECT 20 * + 29 * - - COUNT ( * ) AS col2, + 11 AS col2
----
580
11

query II rowsort
SELECT ALL 6 AS col2, 92 * - 80
----
6
-7360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8275
SELECT 29 DIV - NULLIF ( 31, - MAX( - 0 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8275
SELECT 29 / - NULLIF ( 31, - MAX ( - 0 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT ALL + ( 59 ) + ( + 14 ) + + COUNT( 52 ) + - 89 * - - 61 AS col2
----
-5355

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL + ( 59 ) + ( + 14 ) + + COUNT ( 52 ) + - 89 * - - 61 AS col2
----
-5355

query I rowsort
SELECT DISTINCT + 63 + 22
----
85

query I rowsort
SELECT ALL 54 - NULLIF ( 75, - 90 )
----
-21

query I rowsort
SELECT DISTINCT - 91 * + 78 * + 5
----
-35490

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT 35 * MIN( ALL - 50 )
----
-1750

skipif mysql # not compatible
query I rowsort label-8280
SELECT 35 * MIN ( ALL - 50 )
----
-1750

query I rowsort
SELECT DISTINCT - 73 * + 80 AS col1
----
-5840

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8282
SELECT ALL - CAST( NULL AS SIGNED ), - 78 AS col2
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-8282
SELECT ALL - CAST ( NULL AS INTEGER ), - 78 AS col2
----
NULL
-78

query II rowsort
SELECT 66 AS col1, 14 + - + 34
----
66
-20

query I rowsort
SELECT 54 - - + ( + + 22 ) + - + 64 AS col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT 90 * CAST( + - 1 AS SIGNED ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8285
SELECT 90 * CAST ( + - 1 AS INTEGER ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT 61 * + 81 * + - COUNT( * ) * 81
----
-400221

skipif mysql # not compatible
query I rowsort label-8286
SELECT 61 * + 81 * + - COUNT ( * ) * 81
----
-400221

query I rowsort
SELECT DISTINCT - 73 * - 11 AS col1
----
803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8288
SELECT ALL - CAST( 6 AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - CAST ( 6 AS INTEGER ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT DISTINCT + 1 - - ( - + COUNT( * ) ) * 74 * + 6 AS col1
----
-443

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT + 1 - - ( - + COUNT ( * ) ) * 74 * + 6 AS col1
----
-443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8290
SELECT 63 * CAST( NULL AS SIGNED ) * + - 0 * + COUNT( * ) - + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT 63 * CAST ( NULL AS INTEGER ) * + - 0 * + COUNT ( * ) - + 35 AS col1
----
NULL

query I rowsort
SELECT ALL - - 76 col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT - COALESCE ( + 53, + 83 DIV + + 46 DIV - + NULLIF ( 49, 42 * + 91 ) DIV - 29 * - 28 - 92, - COALESCE ( ( 93 ), - 16 ) ) - + 65
----
-118

skipif mysql # not compatible
query I rowsort label-8292
SELECT - COALESCE ( + 53, + 83 / + + 46 / - + NULLIF ( 49, 42 * + 91 ) / - 29 * - 28 - 92, - COALESCE ( ( 93 ), - 16 ) ) - + 65
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8293
SELECT + ( COUNT( * ) ) DIV + 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8293
SELECT + ( COUNT ( * ) ) / + 47 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT 8 * - 59 + - 5 DIV + 5 AS col0
----
-473

skipif mysql # not compatible
query I rowsort label-8294
SELECT 8 * - 59 + - 5 / + 5 AS col0
----
-473

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT + COUNT( * ) * - 66 + + - 86 * - 11 AS col2
----
880

skipif mysql # not compatible
query I rowsort label-8295
SELECT + COUNT ( * ) * - 66 + + - 86 * - 11 AS col2
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT + CASE 91 WHEN + - 23 - COUNT( * ) THEN - - MAX( DISTINCT NULLIF ( 96, + - 31 ) ) END + - 41 * 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT + CASE 91 WHEN + - 23 - COUNT ( * ) THEN - - MAX ( DISTINCT NULLIF ( 96, + - 31 ) ) END + - 41 * 51 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT 88 DIV - 78 + - + 48
----
-49

skipif mysql # not compatible
query I rowsort label-8297
SELECT 88 / - 78 + - + 48
----
-49

query I rowsort
SELECT ALL 65 + + 3 col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8299
SELECT ALL + COUNT( * ) * 31 + + + 93 AS col2, + 22 AS col2
----
124
22

skipif mysql # not compatible
query II rowsort label-8299
SELECT ALL + COUNT ( * ) * 31 + + + 93 AS col2, + 22 AS col2
----
124
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT DISTINCT - 14 * - CASE 44 WHEN + 30 THEN ( - 15 ) * - + 35 WHEN + ( 34 ) * 87 + - 87 THEN NULL ELSE 43 DIV - 79 + + ( - 23 + - 85 ) END col0
----
-1512

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT - 14 * - CASE 44 WHEN + 30 THEN ( - 15 ) * - + 35 WHEN + ( 34 ) * 87 + - 87 THEN NULL ELSE 43 / - 79 + + ( - 23 + - 85 ) END col0
----
-1512

query II rowsort
SELECT 53 AS col1, 93 AS col1
----
53
93

query I rowsort
SELECT DISTINCT - ( + 7 ) AS col0
----
-7

query I rowsort
SELECT 57 * + 64
----
3648

query I rowsort
SELECT ALL - 65 + - 57 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT + 85 - - + 53 * + - COUNT( * ) * + 53 + + 89 * + ( + 21 )
----
-855

skipif mysql # not compatible
query I rowsort label-8305
SELECT + 85 - - + 53 * + - COUNT ( * ) * + 53 + + 89 * + ( + 21 )
----
-855

query I rowsort
SELECT ALL + 90 + 89 AS col0
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8307
SELECT CAST( - 61 AS SIGNED ) - + - COUNT( * ) * - ( - 26 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8307
SELECT CAST ( - 61 AS INTEGER ) - + - COUNT ( * ) * - ( - 26 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT 80 * - MIN( ALL 52 ) AS col0
----
-4160

skipif mysql # not compatible
query I rowsort label-8308
SELECT 80 * - MIN ( ALL 52 ) AS col0
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL + - NULLIF ( + + 99, + 48 ) * - MIN( DISTINCT - 5 )
----
-495

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL + - NULLIF ( + + 99, + 48 ) * - MIN ( DISTINCT - 5 )
----
-495

query II rowsort
SELECT ALL 1 AS col2, - ( - 13 )
----
1
13

query I rowsort
SELECT ALL 96 + - 22
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8312
SELECT DISTINCT COUNT( ALL 52 ) DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT COUNT ( ALL 52 ) / 63 AS col2
----
0

query I rowsort
SELECT ALL + 49 - + 25 + - + ( - 21 ) * - 96
----
-1992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8314
SELECT ALL CASE + + 67 WHEN - - 29 THEN NULL WHEN SUM( DISTINCT CAST( 41 AS SIGNED ) ) THEN COALESCE ( - 51, + 19 * COUNT( * ) / - 51 * - 42 + - CASE + 76 WHEN 71 * + CASE 61 * + 36 WHEN 15 * - COUNT( - 10 * 33 ) + - ( + 97 ) THEN + MAX( - 2 ) * + 61 WHEN 72 THEN NULL ELSE NULL END THEN + CAST( 5 AS SIGNED ) WHEN - 65 / CAST( + NULLIF ( 15, 3 ) AS SIGNED ) THEN NULL WHEN - 86 - + 47 THEN 19 END ) - 50 ELSE NULL END * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL CASE + + 67 WHEN - - 29 THEN NULL WHEN SUM ( DISTINCT CAST ( 41 AS INTEGER ) ) THEN COALESCE ( - 51, + 19 * COUNT ( * ) / - 51 * - 42 + - CASE + 76 WHEN 71 * + CASE 61 * + 36 WHEN 15 * - COUNT ( - 10 * 33 ) + - ( + 97 ) THEN + MAX ( - 2 ) * + 61 WHEN 72 THEN NULL ELSE NULL END THEN + CAST ( 5 AS INTEGER ) WHEN - 65 / CAST ( + NULLIF ( 15, 3 ) AS INTEGER ) THEN NULL WHEN - 86 - + 47 THEN 19 END ) - 50 ELSE NULL END * 45
----
NULL

query I rowsort
SELECT ( 80 ) + - + 41 + + 12 - + ( + 75 ) * - 61
----
4626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8316
SELECT 64 + + MIN( 26 ) + + 90 AS col1, + NULLIF ( + 72, 71 * + COALESCE ( + 77, 74, CAST( 43 AS SIGNED ) + 84 * 37 ) * SUM( 76 ) ) + COUNT( * ) col1
----
180
73

skipif mysql # not compatible
query II rowsort label-8316
SELECT 64 + + MIN ( 26 ) + + 90 AS col1, + NULLIF ( + 72, 71 * + COALESCE ( + 77, 74, CAST ( 43 AS INTEGER ) + 84 * 37 ) * SUM ( 76 ) ) + COUNT ( * ) col1
----
180
73

onlyif mysql # DIV for integer division: 
query II rowsort label-8317
SELECT ALL + 50 - - - 80 + 41 * 8, - 40 DIV 23 - 40 AS col0
----
298
-41

skipif mysql # not compatible
query II rowsort label-8317
SELECT ALL + 50 - - - 80 + 41 * 8, - 40 / 23 - 40 AS col0
----
298
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ( - 85 ) * - + MAX( 59 )
----
5015

skipif mysql # not compatible
query I rowsort label-8318
SELECT ( - 85 ) * - + MAX ( 59 )
----
5015

query I rowsort
SELECT 45 + - + COALESCE ( 83, - 59 )
----
-38

query I rowsort
SELECT + 95 * - + 9 * + 81 + + 64 AS col1
----
-69191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8321
SELECT ALL + 14 DIV MIN( DISTINCT + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + 14 / MIN ( DISTINCT + 31 )
----
0

query II rowsort
SELECT 61 * - 43 col0, + 57
----
-2623
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT - MAX( + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT - MAX ( + 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8324
SELECT DISTINCT + 33 / + CAST( + 11 AS DECIMAL ) / CASE - - 58 WHEN AVG ( DISTINCT + 30 ) + ( + 80 ) THEN NULL WHEN 38 THEN + CAST( 77 AS SIGNED ) * + 8 END / + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT + 33 / + CAST ( + 11 AS REAL ) / CASE - - 58 WHEN AVG ( DISTINCT + 30 ) + ( + 80 ) THEN NULL WHEN 38 THEN + CAST ( 77 AS INTEGER ) * + 8 END / + 2 AS col1
----
NULL

query I rowsort
SELECT ALL - ( - ( - - 67 ) ) AS col0
----
67

query I rowsort
SELECT 95 * + - 72
----
-6840

query I rowsort
SELECT DISTINCT + 42 * 48 * + 23 col1
----
46368

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - 67 + + ( + + COALESCE ( SUM( - 94 ), COUNT( - ( + 53 ) ), - 13 ) ) col0
----
-161

skipif mysql # not compatible
query I rowsort label-8328
SELECT - 67 + + ( + + COALESCE ( SUM ( - 94 ), COUNT ( - ( + 53 ) ), - 13 ) ) col0
----
-161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8329
SELECT CAST( NULL AS SIGNED ), 82 + - ( - - ( + 73 ) ) + + COUNT( * ) + - ( + 20 ) * + ( + - CASE + COUNT( * ) WHEN - COALESCE ( + 58, COUNT( * ) ) + COUNT( * ) THEN NULL WHEN - 8 THEN - 14 + COUNT( * ) ELSE NULL END ) * 41
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8329
SELECT CAST ( NULL AS INTEGER ), 82 + - ( - - ( + 73 ) ) + + COUNT ( * ) + - ( + 20 ) * + ( + - CASE + COUNT ( * ) WHEN - COALESCE ( + 58, COUNT ( * ) ) + COUNT ( * ) THEN NULL WHEN - 8 THEN - 14 + COUNT ( * ) ELSE NULL END ) * 41
----
NULL
NULL

query II rowsort
SELECT ALL - - 10, 87 AS col1
----
10
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT 56 + + + MIN( ALL - - 49 )
----
105

skipif mysql # not compatible
query I rowsort label-8331
SELECT 56 + + + MIN ( ALL - - 49 )
----
105

query I rowsort
SELECT ALL - - 48 + + - 30
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT ALL + 77 + + - 45 DIV - 76
----
77

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL + 77 + + - 45 / - 76
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8334
SELECT ALL 37 + + 64 DIV - + 76 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL 37 + + 64 / - + 76 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT ALL - + CAST( - 57 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - + CAST ( - 57 AS INTEGER ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT DISTINCT + 27 + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT + 27 + COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT 95 * + NULLIF ( - - 47, - + 29 / COUNT( * ) ) * + 55 * ( - + 73 ) * - 41 - 93 + + 75 AS col2
----
735005957

skipif mysql # not compatible
query I rowsort label-8337
SELECT 95 * + NULLIF ( - - 47, - + 29 / COUNT ( * ) ) * + 55 * ( - + 73 ) * - 41 - 93 + + 75 AS col2
----
735005957

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL + COALESCE ( + 28, COUNT( * ) ) * + 70 * + - 63
----
-123480

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL + COALESCE ( + 28, COUNT ( * ) ) * + 70 * + - 63
----
-123480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8339
SELECT - CAST( NULL AS SIGNED ), + CASE 6 WHEN + - SUM( - 93 ) * - 17 THEN NULL WHEN 50 + + COALESCE ( 57, + 78 + + 63 * - CASE 27 WHEN - MIN( + 49 ) * - 36 THEN NULL ELSE 67 END, - COUNT( * ) ) + 1 * 91 THEN NULL WHEN 61 / - 19 THEN 57 ELSE NULL END * + 39
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8339
SELECT - CAST ( NULL AS INTEGER ), + CASE 6 WHEN + - SUM ( - 93 ) * - 17 THEN NULL WHEN 50 + + COALESCE ( 57, + 78 + + 63 * - CASE 27 WHEN - MIN ( + 49 ) * - 36 THEN NULL ELSE 67 END, - COUNT ( * ) ) + 1 * 91 THEN NULL WHEN 61 / - 19 THEN 57 ELSE NULL END * + 39
----
NULL
NULL

query I rowsort
SELECT - 83 + - 9 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8341
SELECT ALL NULLIF ( + 47, + CASE + 6 WHEN + - 2 * - 18 THEN COUNT( ALL + 67 ) WHEN - 32 * CAST( - ( + COUNT( * ) ) AS SIGNED ) THEN NULL END ) * 19 AS col0
----
893

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL NULLIF ( + 47, + CASE + 6 WHEN + - 2 * - 18 THEN COUNT ( ALL + 67 ) WHEN - 32 * CAST ( - ( + COUNT ( * ) ) AS INTEGER ) THEN NULL END ) * 19 AS col0
----
893

onlyif mysql # aggregate syntax: 
query II rowsort label-8342
SELECT + 96 + - + 61 AS col0, 54 * + NULLIF ( - MAX( ALL - + 90 ), 32 ) * - NULLIF ( + 80, + 12 ) AS col0
----
35
-388800

skipif mysql # not compatible
query II rowsort label-8342
SELECT + 96 + - + 61 AS col0, 54 * + NULLIF ( - MAX ( ALL - + 90 ), 32 ) * - NULLIF ( + 80, + 12 ) AS col0
----
35
-388800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8343
SELECT + CASE 72 WHEN + - COUNT( ALL - CAST( 43 AS SIGNED ) ) THEN NULL WHEN - 27 THEN 78 * - 46 + - - 79 * 38 ELSE NULL END - + - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT + CASE 72 WHEN + - COUNT ( ALL - CAST ( 43 AS INTEGER ) ) THEN NULL WHEN - 27 THEN 78 * - 46 + - - 79 * 38 ELSE NULL END - + - 56 AS col1
----
NULL

query II rowsort
SELECT + 16 col0, 45 AS col0
----
16
45

query I rowsort
SELECT ALL 40 * + 18 AS col1
----
720

query II rowsort
SELECT DISTINCT + - 19 - + - 82 + + - 10 * 3 AS col0, 53 + - - 90 * + 16 AS col0
----
33
1493

query I rowsort
SELECT DISTINCT + 42 * - - 14 AS col1
----
588

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT ALL 78 DIV 40 * - + 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL 78 / 40 * - + 48 AS col1
----
-48

query I rowsort
SELECT + 37 + - 3 * 43 AS col1
----
-92

query I rowsort
SELECT + 7 * - 28 AS col1
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - MIN( - 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8351
SELECT - MIN ( - 58 ) AS col1
----
58

query I rowsort
SELECT ALL + 28 * 41 * 4 AS col2
----
4592

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT + ( 55 ) DIV COALESCE ( + 68, 2 )
----
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT + ( 55 ) / COALESCE ( + 68, 2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT DISTINCT 0 * + COALESCE ( 60, - ( + + 74 ), - + COALESCE ( + 35, + 43 + + CAST( NULL AS SIGNED ) * - + 29, - - COUNT( * ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT 0 * + COALESCE ( 60, - ( + + 74 ), - + COALESCE ( + 35, + 43 + + CAST ( NULL AS INTEGER ) * - + 29, - - COUNT ( * ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + ( - - COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8355
SELECT + ( - - COUNT ( * ) ) col1
----
1

query II rowsort
SELECT ALL 35 * 91, 13 AS col0
----
3185
13

query I rowsort
SELECT ALL + ( - + 74 ) AS col2
----
-74

query I rowsort
SELECT DISTINCT 28 * - 51 + 99 + 90 col2
----
-1239

query II rowsort
SELECT - 40 * - 54 AS col1, ( - 1 )
----
2160
-1

query I rowsort
SELECT - 99 * - 55 AS col1
----
5445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8361
SELECT + + COUNT( * ) DIV + 72 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8361
SELECT + + COUNT ( * ) / + 72 * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 55 - - - 99 * + + 68 AS col1
----
-6787

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8363
SELECT - 69 DIV 54 + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8363
SELECT - 69 / 54 + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL + 75 * 69 + + 6 AS col2
----
5181

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL + SUM( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + SUM ( 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT DISTINCT - + 43 * - + MIN( - 7 ) * - + ( + ( - - 68 ) ) + + 66 + + 86 * 75 AS col2
----
26984

skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT - + 43 * - + MIN ( - 7 ) * - + ( + ( - - 68 ) ) + + 66 + + 86 * 75 AS col2
----
26984

query I rowsort
SELECT ALL + - 77 * - 19 + - ( 65 )
----
1398

query I rowsort
SELECT ALL - + 11 * + 81 + + 61 col1
----
-830

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT + COUNT( + - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT + COUNT ( + - 36 )
----
1

query I rowsort
SELECT + + 43 col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT + COALESCE ( - 1, + COUNT( * ) * + 43 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8371
SELECT + COALESCE ( - 1, + COUNT ( * ) * + 43 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8372
SELECT + + 62 + - 52, + 28 * 4 * + 36 + - + COUNT( * ) * - COUNT( * ) AS col0
----
10
4033

skipif mysql # not compatible
query II rowsort label-8372
SELECT + + 62 + - 52, + 28 * 4 * + 36 + - + COUNT ( * ) * - COUNT ( * ) AS col0
----
10
4033

query I rowsort
SELECT - - COALESCE ( - 16, ( + 10 ), - 41, + - 58 * 52 - - 34 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT ALL 33 * - 4 + + ( - 22 ) - + - COUNT( * ) - - + 91 + - + 21 * - CASE - 20 WHEN + 16 * - 87 THEN NULL WHEN - 28 THEN NULL ELSE 61 END * - COUNT( * )
----
-1343

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL 33 * - 4 + + ( - 22 ) - + - COUNT ( * ) - - + 91 + - + 21 * - CASE - 20 WHEN + 16 * - 87 THEN NULL WHEN - 28 THEN NULL ELSE 61 END * - COUNT ( * )
----
-1343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8375
SELECT ALL + COUNT( * ) - CASE + COALESCE ( - + 15, ( NULLIF ( - + COUNT( * ), - 3 ) ) / - 67 / + + COALESCE ( - + 61, + - COUNT( * ), 64, 0 ) ) WHEN + SUM( DISTINCT CAST( NULL AS SIGNED ) ) THEN 14 * 55 END * 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + COUNT ( * ) - CASE + COALESCE ( - + 15, ( NULLIF ( - + COUNT ( * ), - 3 ) ) / - 67 / + + COALESCE ( - + 61, + - COUNT ( * ), 64, 0 ) ) WHEN + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN 14 * 55 END * 59 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8376
SELECT - + 43 * + COUNT( * ) + 55 + - 4 + - 91, 1 + - COUNT( - 28 ) + + 75 - + 24 - - ( + 55 ) * - 10 AS col1
----
-83
-499

skipif mysql # not compatible
query II rowsort label-8376
SELECT - + 43 * + COUNT ( * ) + 55 + - 4 + - 91, 1 + - COUNT ( - 28 ) + + 75 - + 24 - - ( + 55 ) * - 10 AS col1
----
-83
-499

query I rowsort
SELECT DISTINCT ( + 83 ) AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT ALL - ( - 5 ) - + CAST( - 77 AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - ( - 5 ) - + CAST ( - 77 AS INTEGER ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT ALL CAST( 87 AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL CAST ( 87 AS INTEGER ) AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8380
SELECT - 48 - CAST( NULL AS SIGNED ) + - SUM( - 16 ) * - + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8380
SELECT - 48 - CAST ( NULL AS INTEGER ) + - SUM ( - 16 ) * - + 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8381
SELECT - 7 * - - COUNT( * ) DIV - + CASE 66 WHEN - 62 + + 91 + - 92 THEN NULL ELSE + ( - - 90 ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8381
SELECT - 7 * - - COUNT ( * ) / - + CASE 66 WHEN - 62 + + 91 + - 92 THEN NULL ELSE + ( - - 90 ) END AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8382
SELECT ALL 66, COUNT( * ) DIV 10 * + 24 AS col2
----
66
0

skipif mysql # not compatible
query II rowsort label-8382
SELECT ALL 66, COUNT ( * ) / 10 * + 24 AS col2
----
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT - COUNT( * ) + - 92 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8383
SELECT - COUNT ( * ) + - 92 AS col1
----
-93

query I rowsort
SELECT + 77 + 36 * + - 14
----
-427

query II rowsort
SELECT ALL 23, - 46 AS col2
----
23
-46

query I rowsort
SELECT + ( 94 ) - + - 20 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT MIN( ALL + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT MIN ( ALL + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT 94 + + COUNT ( * )
----
95

query II rowsort
SELECT ALL 34, - 7 * + + 36 col1
----
34
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT - COALESCE ( 37, 0 * 70 + - 97 ) * - - CASE + 94 WHEN - - 63 THEN + 7 WHEN CAST( NULL AS SIGNED ) * + 53 + + 63 * + 69 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT - COALESCE ( 37, 0 * 70 + - 97 ) * - - CASE + 94 WHEN - - 63 THEN + 7 WHEN CAST ( NULL AS INTEGER ) * + 53 + + 63 * + 69 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8391
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT DISTINCT 40, - 55 AS col2
----
40
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT + COUNT( * ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-8393
SELECT + COUNT ( * ) + + 58
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8394
SELECT ALL + COUNT( * ) DIV - 53 + - + 93 * + + 9 AS col1
----
-837

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL + COUNT ( * ) / - 53 + - + 93 * + + 9 AS col1
----
-837

query I rowsort
SELECT - 93 - - - 75
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8396
SELECT ALL + - 52 DIV 82 + + - COALESCE ( + ( + + 12 ), + ( 34 ) ) + + + 97 * - NULLIF ( + 11, + + COUNT( * ) ) - - + COUNT( * )
----
-1078

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL + - 52 / 82 + + - COALESCE ( + ( + + 12 ), + ( 34 ) ) + + + 97 * - NULLIF ( + 11, + + COUNT ( * ) ) - - + COUNT ( * )
----
-1078

query I rowsort
SELECT + + ( - - 98 ) * - + 82
----
-8036

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT DISTINCT + - 99 DIV - 58 + + 44
----
45

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT + - 99 / - 58 + + 44
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-8399
SELECT 41 col1, 77 + - 56 DIV 17 + 34 AS col0
----
41
108

skipif mysql # not compatible
query II rowsort label-8399
SELECT 41 col1, 77 + - 56 / 17 + 34 AS col0
----
41
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT ALL - + 34 DIV + COUNT( * ) - - 51 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - + 34 / + COUNT ( * ) - - 51 AS col2
----
17

query I rowsort
SELECT + 42 * - 78
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + NULLIF ( - - 41, + - MIN( - 78 ) + + - 78 )
----
41

skipif mysql # not compatible
query I rowsort label-8402
SELECT + NULLIF ( - - 41, + - MIN ( - 78 ) + + - 78 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8403
SELECT - 69 DIV - ( - + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-8403
SELECT - 69 / - ( - + 71 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8404
SELECT + 39 DIV 17 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8404
SELECT + 39 / 17 AS col0
----
2

query II rowsort
SELECT DISTINCT - 16, 2 AS col2
----
-16
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8406
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0, + SUM( ALL 34 ) DIV + - 60 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8406
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, + SUM ( ALL 34 ) / + - 60 AS col0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT DISTINCT - ( - 95 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT - ( - 95 ) / + 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8408
SELECT + COUNT( * ) DIV - CAST( 71 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT + COUNT ( * ) / - CAST ( 71 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL - - COALESCE ( + 25, 81, - SUM( 30 ) ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL - - COALESCE ( + 25, 81, - SUM ( 30 ) ) AS col0
----
25

query I rowsort
SELECT DISTINCT - CASE + 50 WHEN - 91 THEN NULL ELSE - 23 * + - 93 * - - COALESCE ( 66, ( - - 45 ) ) + - 46 END AS col0
----
-141128

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT ALL 12 col1, COUNT( DISTINCT - 68 ) * + 2 - - 84 + 51
----
12
137

skipif mysql # not compatible
query II rowsort label-8411
SELECT ALL 12 col1, COUNT ( DISTINCT - 68 ) * + 2 - - 84 + 51
----
12
137

query I rowsort
SELECT 14 * + + ( + 61 ) * + - 96 AS col0
----
-81984

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT MAX( ALL + 48 ) + 76 + 51
----
175

skipif mysql # not compatible
query I rowsort label-8413
SELECT MAX ( ALL + 48 ) + 76 + 51
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT 35 + + COUNT( DISTINCT - 63 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-8414
SELECT 35 + + COUNT ( DISTINCT - 63 ) AS col1
----
36

query I rowsort
SELECT DISTINCT - 45 * + AVG ( ALL - + CASE + + 43 WHEN - + 95 THEN - 34 WHEN - ( + 2 ) / - ( 86 ) THEN NULL END ) * + 8 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - 71 * MIN( ALL + - ( - 71 ) ) + 13 - - - 91 AS col0
----
-5119

skipif mysql # not compatible
query I rowsort label-8416
SELECT - 71 * MIN ( ALL + - ( - 71 ) ) + 13 - - - 91 AS col0
----
-5119

query I rowsort
SELECT 83 * + 65 col0
----
5395

query II rowsort
SELECT ALL - 28 * - + 95 col2, - 84
----
2660
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT 54 + + + 88 + + COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-8419
SELECT 54 + + + 88 + + COUNT ( * )
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8420
SELECT 90 + + + CAST( NULL AS SIGNED ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT 90 + + + CAST ( NULL AS INTEGER ) + - 93
----
NULL

query I rowsort
SELECT 73 * + + 98
----
7154

onlyif mysql # DIV for integer division: 
query II rowsort label-8422
SELECT ALL - 28 + + + 32 AS col0, 42 DIV + - 47 * - 29 AS col2
----
4
0

skipif mysql # not compatible
query II rowsort label-8422
SELECT ALL - 28 + + + 32 AS col0, 42 / + - 47 * - 29 AS col2
----
4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT DISTINCT 83 DIV + 36 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT 83 / + 36 AS col0
----
2

query I rowsort
SELECT ALL + 56 + 55 AS col2
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8425
SELECT 63 DIV - NULLIF ( + ( - - SUM( ALL - 37 ) ), + - 76 + - + 34 ) AS col1, - MIN( DISTINCT + 90 ) AS col2
----
1
-90

skipif mysql # not compatible
query II rowsort label-8425
SELECT 63 / - NULLIF ( + ( - - SUM ( ALL - 37 ) ), + - 76 + - + 34 ) AS col1, - MIN ( DISTINCT + 90 ) AS col2
----
1
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT 99 + 7 + - 16 + - MIN( + 57 ) + - - MAX( DISTINCT + + 77 ) AS col1, - 14
----
110
-14

skipif mysql # not compatible
query II rowsort label-8426
SELECT 99 + 7 + - 16 + - MIN ( + 57 ) + - - MAX ( DISTINCT + + 77 ) AS col1, - 14
----
110
-14

query I rowsort
SELECT DISTINCT - 83 * - + 9 col1
----
747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT ALL + 29 + CAST( - 33 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + 29 + CAST ( - 33 AS INTEGER )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8429
SELECT 89 DIV - ( + - 35 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8429
SELECT 89 / - ( + - 35 ) AS col1
----
2

query I rowsort
SELECT ALL 99 * - ( + 45 ) AS col0
----
-4455

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT DISTINCT - 84 * COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT - 84 * COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL ( + + ( - 27 ) ) + - NULLIF ( + 75, COUNT( * ) ) * + COUNT( * ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL ( + + ( - 27 ) ) + - NULLIF ( + 75, COUNT ( * ) ) * + COUNT ( * ) AS col2
----
-102

query I rowsort
SELECT COALESCE ( + 53, - 47, + 13 )
----
53

query I rowsort
SELECT ALL - 47 * + 52
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL + 89 * - - MIN( 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + 89 * - - MIN ( 0 ) AS col1
----
0

query I rowsort
SELECT - 60 * + - 60 * + + 62 * + + 73 AS col0
----
16293600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8437
SELECT ALL + MIN( ALL - 7 ) DIV 5
----
-1

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL + MIN ( ALL - 7 ) / 5
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL - - NULLIF ( - 28, + SUM( DISTINCT + 84 ) + + 80 - - ( + 21 ) * - + 90 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - - NULLIF ( - 28, + SUM ( DISTINCT + 84 ) + + 80 - - ( + 21 ) * - + 90 ) AS col2
----
-28

query II rowsort
SELECT + ( - 59 ) AS col0, + 56
----
-59
56

query I rowsort
SELECT + 10 * 15
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL - COUNT( ALL - 45 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - COUNT ( ALL - 45 ) AS col1
----
-1

query I rowsort
SELECT + 53 - + 16 * 79 AS col0
----
-1211

query I rowsort
SELECT ALL + + 87 - - 24
----
111

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8444
SELECT CASE ( - 44 ) WHEN + - ( + 1 ) * - COALESCE ( 7, - 3 + - 31 * + COUNT( ALL + 68 ) * + - ( - COUNT( * ) ) + 53 * ( + 83 + COUNT( * ) ), + 32 ) * - 51 THEN + 21 WHEN + SUM( DISTINCT + 8 ) THEN 99 * CAST( 60 AS DECIMAL ) WHEN - MIN( - 14 ) THEN NULL ELSE NULL END * 17 + - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT CASE ( - 44 ) WHEN + - ( + 1 ) * - COALESCE ( 7, - 3 + - 31 * + COUNT ( ALL + 68 ) * + - ( - COUNT ( * ) ) + 53 * ( + 83 + COUNT ( * ) ), + 32 ) * - 51 THEN + 21 WHEN + SUM ( DISTINCT + 8 ) THEN 99 * CAST ( 60 AS REAL ) WHEN - MIN ( - 14 ) THEN NULL ELSE NULL END * 17 + - 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL 6 * + - COALESCE ( - 1, + 6 * - 69 * + + COUNT( * ) ) col1
----
6

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL 6 * + - COALESCE ( - 1, + 6 * - 69 * + + COUNT ( * ) ) col1
----
6

query I rowsort
SELECT - 76 * + + 52 AS col1
----
-3952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8447
SELECT ALL COUNT( * ) DIV + 47 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL COUNT ( * ) / + 47 / + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8448
SELECT DISTINCT - CAST( + + ( + - COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - CAST ( + + ( + - COUNT ( * ) ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT DISTINCT - MIN( DISTINCT + + 64 ) * ( + MAX( ALL 25 ) ) * 69 * + ( - 25 )
----
2760000

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT - MIN ( DISTINCT + + 64 ) * ( + MAX ( ALL 25 ) ) * 69 * + ( - 25 )
----
2760000

query I rowsort
SELECT + 7 * - 28 - - + 85
----
-111

query I rowsort
SELECT ALL 73 * + 95
----
6935

query I rowsort
SELECT + 12 * 77
----
924

query II rowsort
SELECT 77 AS col0, 50 * + 91
----
77
4550

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8454
SELECT 83 / - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT 83 / - - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT 90 + - 73 AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT DISTINCT + 87 DIV + 3 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT + 87 / + 3 AS col2
----
29

query I rowsort
SELECT ALL + 69 * 9 AS col1
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT - 14 + - MAX( + 2 )
----
-16

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - 14 + - MAX ( + 2 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ALL - 97 + + 17 * COUNT( * ) * + 98
----
1569

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL - 97 + + 17 * COUNT ( * ) * + 98
----
1569

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8460
SELECT 89 * COUNT( DISTINCT + 49 ) DIV - + 75
----
-1

skipif mysql # not compatible
query I rowsort label-8460
SELECT 89 * COUNT ( DISTINCT + 49 ) / - + 75
----
-1

query I rowsort
SELECT ALL - 24 + 58 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT ( + 9 ) + CASE + + 44 WHEN - - 68 * + + 66 THEN NULL ELSE - 13 * - + 31 + - 57 END * CAST( + + 50 AS SIGNED ) * - 35 + + - 38 * MAX( + + 53 ) + - 1
----
-607506

skipif mysql # not compatible
query I rowsort label-8462
SELECT ( + 9 ) + CASE + + 44 WHEN - - 68 * + + 66 THEN NULL ELSE - 13 * - + 31 + - 57 END * CAST ( + + 50 AS INTEGER ) * - 35 + + - 38 * MAX ( + + 53 ) + - 1
----
-607506

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8463
SELECT CAST( - 7 AS SIGNED ) - + 90 DIV + - 24
----
-4

skipif mysql # not compatible
query I rowsort label-8463
SELECT CAST ( - 7 AS INTEGER ) - + 90 / + - 24
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8464
SELECT ALL - 97 + CASE + - 50 WHEN 61 / + COUNT( ALL + CAST( - 88 AS DECIMAL ) ) * + 32 + 18 * + - 96 - 11 * CAST( - 22 AS SIGNED ) THEN 71 * - - 84 * - 56 + COUNT( DISTINCT 71 ) WHEN 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL - 97 + CASE + - 50 WHEN 61 / + COUNT ( ALL + CAST ( - 88 AS REAL ) ) * + 32 + 18 * + - 96 - 11 * CAST ( - 22 AS INTEGER ) THEN 71 * - - 84 * - 56 + COUNT ( DISTINCT 71 ) WHEN 80 THEN NULL END
----
NULL

query I rowsort
SELECT 79 + - 67 + + - 55
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT 89 + 16 DIV 19
----
89

skipif mysql # not compatible
query I rowsort label-8466
SELECT 89 + 16 / 19
----
89

query I rowsort
SELECT 98 + 33 AS col2
----
131

query I rowsort
SELECT ALL - 98 + + 76
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT 5 * - - COALESCE ( + + ( 9 ), 76, - - 61 + + - ( - + ( + 79 ) ) + 34 - - - MIN( + + 98 ) * + MIN( DISTINCT + 49 ) )
----
45

skipif mysql # not compatible
query I rowsort label-8469
SELECT 5 * - - COALESCE ( + + ( 9 ), 76, - - 61 + + - ( - + ( + 79 ) ) + 34 - - - MIN ( + + 98 ) * + MIN ( DISTINCT + 49 ) )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8470
SELECT DISTINCT COALESCE ( + 9, 92 ) AS col0, COUNT( * ) col2
----
9
1

skipif mysql # not compatible
query II rowsort label-8470
SELECT DISTINCT COALESCE ( + 9, 92 ) AS col0, COUNT ( * ) col2
----
9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL + MIN( DISTINCT - + 18 ) - + 21 * - - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL + MIN ( DISTINCT - + 18 ) - + 21 * - - COUNT ( * ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8472
SELECT COUNT( * ) - - 73 * - 45 + + ( - 57 ) AS col2, - 42
----
-3341
-42

skipif mysql # not compatible
query II rowsort label-8472
SELECT COUNT ( * ) - - 73 * - 45 + + ( - 57 ) AS col2, - 42
----
-3341
-42

query I rowsort
SELECT ALL 88 * ( + 4 )
----
352

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT ALL + - 27 - - + 8 DIV - - 71
----
-27

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL + - 27 - - + 8 / - - 71
----
-27

query I rowsort
SELECT ( + - 81 ) * + 68 - 3 * + 87 + - 1 AS col1
----
-5770

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT - SUM( 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-8476
SELECT - SUM ( 44 )
----
-44

query I rowsort
SELECT - - 58 + - 7 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL + - CASE - - 67 WHEN - + MIN( - - 58 ) THEN NULL WHEN + 53 THEN COUNT( * ) + COUNT( * ) * + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL + - CASE - - 67 WHEN - + MIN ( - - 58 ) THEN NULL WHEN + 53 THEN COUNT ( * ) + COUNT ( * ) * + 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT - 33 * - ( - MIN( + + 41 ) ) * - + ( - 76 )
----
-102828

skipif mysql # not compatible
query I rowsort label-8479
SELECT - 33 * - ( - MIN ( + + 41 ) ) * - + ( - 76 )
----
-102828

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT MIN( 19 ) * - 32 + + 80 col0
----
-528

skipif mysql # not compatible
query I rowsort label-8480
SELECT MIN ( 19 ) * - 32 + + 80 col0
----
-528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8481
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - NULLIF ( + COUNT( * ), MAX( DISTINCT - - 33 ) ) col0, 45 * 40
----
NULL
1800

skipif mysql # not compatible
query II rowsort label-8481
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - NULLIF ( + COUNT ( * ), MAX ( DISTINCT - - 33 ) ) col0, 45 * 40
----
NULL
1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT - MAX( ALL + CAST( 13 AS SIGNED ) ) + + COUNT( * ) - + 92 - - 26 * - 63 * 64 AS col0
----
-104936

skipif mysql # not compatible
query I rowsort label-8482
SELECT - MAX ( ALL + CAST ( 13 AS INTEGER ) ) + + COUNT ( * ) - + 92 - - 26 * - 63 * 64 AS col0
----
-104936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8483
SELECT ALL - 42 * - + 24 + - 63 + - + 75 * COALESCE ( + - CAST( + MIN( 14 ) AS SIGNED ), + COUNT( * ), + + CAST( NULL AS SIGNED ) * + + CASE 37 WHEN - 21 + - - COUNT( * ) THEN NULL WHEN 18 - NULLIF ( 54, + 26 + 38 ) THEN COUNT( * ) * 2 ELSE + 13 END DIV 53 + + 89 ) + 41 AS col0
----
2036

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - 42 * - + 24 + - 63 + - + 75 * COALESCE ( + - CAST ( + MIN ( 14 ) AS INTEGER ), + COUNT ( * ), + + CAST ( NULL AS INTEGER ) * + + CASE 37 WHEN - 21 + - - COUNT ( * ) THEN NULL WHEN 18 - NULLIF ( 54, + 26 + 38 ) THEN COUNT ( * ) * 2 ELSE + 13 END / 53 + + 89 ) + 41 AS col0
----
2036

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL - + 47 * - + COUNT( * ) + 42 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL - + 47 * - + COUNT ( * ) + 42 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT + CAST( + 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-8485
SELECT + CAST ( + 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8486
SELECT + + COUNT( * ) * 28 DIV - 26 + + 39 + 80 AS col0, NULLIF ( - 21, + + 43 DIV + + 34 ) * 40
----
118
-840

skipif mysql # not compatible
query II rowsort label-8486
SELECT + + COUNT ( * ) * 28 / - 26 + + 39 + 80 AS col0, NULLIF ( - 21, + + 43 / + + 34 ) * 40
----
118
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT - 80 * + 15 * + - 65 + - - NULLIF ( 27, 69 / + SUM( DISTINCT + - 67 ) )
----
78027

skipif mysql # not compatible
query I rowsort label-8487
SELECT - 80 * + 15 * + - 65 + - - NULLIF ( 27, 69 / + SUM ( DISTINCT + - 67 ) )
----
78027

onlyif mysql # DIV for integer division: 
query III rowsort label-8488
SELECT 88 AS col2, 62 DIV 74 AS col0, 11
----
88
0
11

skipif mysql # not compatible
query III rowsort label-8488
SELECT 88 AS col2, 62 / 74 AS col0, 11
----
88
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT + COUNT( * ) * + COALESCE ( + ( - ( - 82 ) ), 77, CASE - AVG ( DISTINCT + NULLIF ( + 35, + + 81 ) ) WHEN - 52 + + MAX( DISTINCT - 15 ) * + 61 THEN - 97 ELSE NULL END * 63 )
----
82

skipif mysql # not compatible
query I rowsort label-8489
SELECT + COUNT ( * ) * + COALESCE ( + ( - ( - 82 ) ), 77, CASE - AVG ( DISTINCT + NULLIF ( + 35, + + 81 ) ) WHEN - 52 + + MAX ( DISTINCT - 15 ) * + 61 THEN - 97 ELSE NULL END * 63 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT 54 * MAX( ALL ( + 2 ) ) + - 3 + + 52 AS col1
----
157

skipif mysql # not compatible
query I rowsort label-8490
SELECT 54 * MAX ( ALL ( + 2 ) ) + - 3 + + 52 AS col1
----
157

query II rowsort
SELECT DISTINCT + 15 AS col0, 22 AS col1
----
15
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + CASE - 82 WHEN + - COUNT( * ) + 29 THEN + + 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT + CASE - 82 WHEN + - COUNT ( * ) + 29 THEN + + 3 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 57 * + + 75 + - ( 37 ) AS col2
----
4238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT + NULLIF ( + COUNT( * ), 36 + 73 ) * + 57 - + 1 / + 50 * - + CAST( NULL AS SIGNED ) + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT + NULLIF ( + COUNT ( * ), 36 + 73 ) * + 57 - + 1 / + 50 * - + CAST ( NULL AS INTEGER ) + - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT ALL COUNT( * ) * 80 * + COALESCE ( + - 67, + ( - - 39 ) ) + 10 * - 85 AS col2
----
-6210

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL COUNT ( * ) * 80 * + COALESCE ( + - 67, + ( - - 39 ) ) + 10 * - 85 AS col2
----
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT + COALESCE ( - 23, + COALESCE ( + 49, + 1, + + 6 ), - COUNT( * ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8496
SELECT + COALESCE ( - 23, + COALESCE ( + 49, + 1, + + 6 ), - COUNT ( * ) ) AS col1
----
-23

query I rowsort
SELECT ALL 69 * + - 65 * 92 + 0
----
-412620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8498
SELECT ( - CAST( + 76 AS SIGNED ) ) * + - 38 + + + COUNT( * ) AS col1
----
2889

skipif mysql # not compatible
query I rowsort label-8498
SELECT ( - CAST ( + 76 AS INTEGER ) ) * + - 38 + + + COUNT ( * ) AS col1
----
2889

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT DISTINCT CASE CASE - 19 WHEN + - 73 THEN NULL WHEN 49 + 9 THEN 51 WHEN + ( SUM( + 34 ) ) * - - 17 THEN NULL ELSE + 47 END WHEN - 98 THEN - - 93 ELSE ( - + 75 ) END * 82 + + ( + MIN( 0 ) - 96 )
----
-6246

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT CASE CASE - 19 WHEN + - 73 THEN NULL WHEN 49 + 9 THEN 51 WHEN + ( SUM ( + 34 ) ) * - - 17 THEN NULL ELSE + 47 END WHEN - 98 THEN - - 93 ELSE ( - + 75 ) END * 82 + + ( + MIN ( 0 ) - 96 )
----
-6246

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT + ( + SUM( 39 ) ) + 87
----
126

skipif mysql # not compatible
query I rowsort label-8500
SELECT + ( + SUM ( 39 ) ) + 87
----
126

query I rowsort
SELECT - ( + + 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8502
SELECT - COUNT( * ) AS col2, + 54 + - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8502
SELECT - COUNT ( * ) AS col2, + 54 + - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT + 24 + 48 + COUNT( * ) * 60 + + - 86 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8503
SELECT + 24 + 48 + COUNT ( * ) * 60 + + - 86 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL 30 + + COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL 30 + + COUNT ( * ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8505
SELECT SUM( DISTINCT + - 71 ), 55 col1
----
-71
55

skipif mysql # not compatible
query II rowsort label-8505
SELECT SUM ( DISTINCT + - 71 ), 55 col1
----
-71
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT + ( + 25 ) DIV + - 28 + - + 18
----
-18

skipif mysql # not compatible
query I rowsort label-8506
SELECT + ( + 25 ) / + - 28 + - + 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT - 18 + + SUM( ALL + 42 ) + + - 85 * + + 84 + + + 62 AS col0
----
-7054

skipif mysql # not compatible
query I rowsort label-8507
SELECT - 18 + + SUM ( ALL + 42 ) + + - 85 * + + 84 + + + 62 AS col0
----
-7054

query II rowsort
SELECT - 27, - 36 + + 80 AS col0
----
-27
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8509
SELECT ALL + COUNT( * ) DIV 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL + COUNT ( * ) / 44 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT DISTINCT COUNT( * ) AS col2, 84 * - 86 * - 50
----
1
361200

skipif mysql # not compatible
query II rowsort label-8510
SELECT DISTINCT COUNT ( * ) AS col2, 84 * - 86 * - 50
----
1
361200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8511
SELECT DISTINCT 29 - - 55 + - - 22 + - CASE - 46 WHEN + CAST( + 57 AS SIGNED ) THEN NULL WHEN 15 THEN - COUNT( * ) WHEN - - 9 THEN + 70 WHEN ( + 1 ) + 94 THEN + 13 * - 29 * + CASE CASE + CASE 45 WHEN - 42 THEN NULL WHEN 73 - + 60 / + COALESCE ( 61 * 10, + MIN( - 92 ), NULLIF ( - 47, 42 + COUNT( * ) ) / - 11 + 72 * ( 0 ), - CASE 34 WHEN COUNT( * ) THEN NULL WHEN - 68 THEN + COUNT( * ) / - COUNT( 0 ) WHEN ( 65 ) THEN 43 + 75 END * 40 + COUNT( * ) ) THEN + COUNT( * ) WHEN 70 THEN NULL END WHEN - COUNT( - 32 ) THEN NULL WHEN - 51 THEN - 61 / - 6 ELSE NULL END WHEN - 95 THEN + ( - 39 ) ELSE - 72 * 18 END END + + ( - CAST( + AVG ( DISTINCT ( 86 ) ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT 29 - - 55 + - - 22 + - CASE - 46 WHEN + CAST ( + 57 AS INTEGER ) THEN NULL WHEN 15 THEN - COUNT ( * ) WHEN - - 9 THEN + 70 WHEN ( + 1 ) + 94 THEN + 13 * - 29 * + CASE CASE + CASE 45 WHEN - 42 THEN NULL WHEN 73 - + 60 / + COALESCE ( 61 * 10, + MIN ( - 92 ), NULLIF ( - 47, 42 + COUNT ( * ) ) / - 11 + 72 * ( 0 ), - CASE 34 WHEN COUNT ( * ) THEN NULL WHEN - 68 THEN + COUNT ( * ) / - COUNT ( 0 ) WHEN ( 65 ) THEN 43 + 75 END * 40 + COUNT ( * ) ) THEN + COUNT ( * ) WHEN 70 THEN NULL END WHEN - COUNT ( - 32 ) THEN NULL WHEN - 51 THEN - 61 / - 6 ELSE NULL END WHEN - 95 THEN + ( - 39 ) ELSE - 72 * 18 END END + + ( - CAST ( + AVG ( DISTINCT ( 86 ) ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT - ( - 24 ) AS col0
----
24

query I rowsort
SELECT ALL COALESCE ( - 53, + - 39 - + ( 35 ) ) AS col0
----
-53

query II rowsort
SELECT ALL 42 col2, - 80 + - COALESCE ( - 50, 51 )
----
42
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8515
SELECT ALL NULLIF ( + 9, - 86 ) DIV + 44 * + - ( + 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL NULLIF ( + 9, - 86 ) / + 44 * + - ( + 40 ) AS col1
----
0

query I rowsort
SELECT - 34 + - 67 + - 59 * 16 * + 44
----
-41637

onlyif mysql # aggregate syntax: 
query II rowsort label-8517
SELECT - MIN( DISTINCT + ( + - ( - 93 ) ) ) AS col0, + 8 + - 2 AS col0
----
-93
6

skipif mysql # not compatible
query II rowsort label-8517
SELECT - MIN ( DISTINCT + ( + - ( - 93 ) ) ) AS col0, + 8 + - 2 AS col0
----
-93
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - - COUNT( * ) * + + 93 + + 4 + + 72 + + - COALESCE ( 66, + 95, - COUNT( * ) )
----
103

skipif mysql # not compatible
query I rowsort label-8518
SELECT - - COUNT ( * ) * + + 93 + + 4 + + 72 + + - COALESCE ( 66, + 95, - COUNT ( * ) )
----
103

query I rowsort
SELECT DISTINCT - 4 * - 83
----
332

query II rowsort
SELECT DISTINCT 40 col2, 10
----
40
10

query II rowsort
SELECT DISTINCT + - 23, + 51 + 93 AS col1
----
-23
144

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT + 36 * 1 DIV + 14 + - - 19 + ( + 45 ) * + + 3 AS col2
----
156

skipif mysql # not compatible
query I rowsort label-8522
SELECT + 36 * 1 / + 14 + - - 19 + ( + 45 ) * + + 3 AS col2
----
156

query II rowsort
SELECT + 2 col0, 49 * + 86 + - - 39 AS col1
----
2
4253

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8524
SELECT DISTINCT MAX( 77 ) DIV - 13 + + 88 AS col1, COUNT( * )
----
83
1

skipif mysql # not compatible
query II rowsort label-8524
SELECT DISTINCT MAX ( 77 ) / - 13 + + 88 AS col1, COUNT ( * )
----
83
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8525
SELECT ALL + 5 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + 5 / 39
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8526
SELECT - 52, + 66 * - + MAX( 34 ) col1
----
-52
-2244

skipif mysql # not compatible
query II rowsort label-8526
SELECT - 52, + 66 * - + MAX ( 34 ) col1
----
-52
-2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8527
SELECT ALL + 92 / + 70 * 46 + + + 27 * CAST( NULL AS SIGNED ) / + + CASE - ( + 70 ) WHEN + 54 THEN - COUNT( * ) WHEN + 9 THEN + + ( - + CASE + + 45 WHEN 30 THEN + - 79 ELSE - COUNT( * ) / - MAX( 14 ) + - COUNT( CAST( + 48 AS SIGNED ) ) END ) + ( CAST( NULL AS SIGNED ) ) ELSE COUNT( * ) END + 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + 92 / + 70 * 46 + + + 27 * CAST ( NULL AS INTEGER ) / + + CASE - ( + 70 ) WHEN + 54 THEN - COUNT ( * ) WHEN + 9 THEN + + ( - + CASE + + 45 WHEN 30 THEN + - 79 ELSE - COUNT ( * ) / - MAX ( 14 ) + - COUNT ( CAST ( + 48 AS INTEGER ) ) END ) + ( CAST ( NULL AS INTEGER ) ) ELSE COUNT ( * ) END + 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8528
SELECT - 36 DIV COUNT( * ) - 39
----
-75

skipif mysql # not compatible
query I rowsort label-8528
SELECT - 36 / COUNT ( * ) - 39
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8529
SELECT + ( - + 56 ) AS col1, 6 * - + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-8529
SELECT + ( - + 56 ) AS col1, 6 * - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
-56
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8530
SELECT DISTINCT - 6 DIV 77 + COUNT( * ) + 80 + + 81 + + COALESCE ( COALESCE ( + ( - 27 ), + - NULLIF ( - + 76, + + 78 * 96 + + 27 - - 54 * - 91 * - 32 + 57 ) ), 59, + COUNT( * ) ) col2
----
135

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT - 6 / 77 + COUNT ( * ) + 80 + + 81 + + COALESCE ( COALESCE ( + ( - 27 ), + - NULLIF ( - + 76, + + 78 * 96 + + 27 - - 54 * - 91 * - 32 + 57 ) ), 59, + COUNT ( * ) ) col2
----
135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8531
SELECT ALL + - COUNT( * ) * + 48 * - 7 * - CAST( + + CASE - + ( - MAX( + NULLIF ( 29, + 47 ) ) ) WHEN - 58 THEN NULL WHEN + + 38 THEN 5 * 86 + + + 59 * 67 END AS DECIMAL ) * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + - COUNT ( * ) * + 48 * - 7 * - CAST ( + + CASE - + ( - MAX ( + NULLIF ( 29, + 47 ) ) ) WHEN - 58 THEN NULL WHEN + + 38 THEN 5 * 86 + + + 59 * 67 END AS REAL ) * - 99
----
NULL

query I rowsort
SELECT DISTINCT - 87 * - 29 AS col1
----
2523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8533
SELECT ALL 65 * - NULLIF ( 44, + 47 + 94 + 30 ) * + 25 / - 99 * + ( - - COUNT( * ) ) + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1, ( - 61 ) * + + 89 AS col1, + - 15 + + SUM( DISTINCT 59 ) * COUNT( * ) AS col0
----
NULL
-5429
44

skipif mysql # not compatible
query III rowsort label-8533
SELECT ALL 65 * - NULLIF ( 44, + 47 + 94 + 30 ) * + 25 / - 99 * + ( - - COUNT ( * ) ) + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, ( - 61 ) * + + 89 AS col1, + - 15 + + SUM ( DISTINCT 59 ) * COUNT ( * ) AS col0
----
NULL
-5429
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT - 31 * 79 DIV - - 84
----
-29

skipif mysql # not compatible
query I rowsort label-8534
SELECT - 31 * 79 / - - 84
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8535
SELECT ALL - 69 * + - 62, + COUNT( * ) AS col1
----
4278
1

skipif mysql # not compatible
query II rowsort label-8535
SELECT ALL - 69 * + - 62, + COUNT ( * ) AS col1
----
4278
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT DISTINCT 59 * 4 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT 59 * 4 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + NULLIF ( - 24, + 66 ) - COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8537
SELECT + NULLIF ( - 24, + 66 ) - COUNT ( * ) AS col2
----
-25

query I rowsort
SELECT + ( + - 98 ) AS col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8539
SELECT ALL COUNT( * ) * - - 59 + - 12 DIV + COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL COUNT ( * ) * - - 59 + - 12 / + COUNT ( * ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL COUNT( * ) * - + NULLIF ( 76, - - 2 ) * - 60 + + CASE COUNT( * ) WHEN 88 THEN + 29 WHEN - 23 THEN NULL WHEN + + 28 + - 29 + + 16 THEN NULL ELSE 85 END AS col1
----
4645

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL COUNT ( * ) * - + NULLIF ( 76, - - 2 ) * - 60 + + CASE COUNT ( * ) WHEN 88 THEN + 29 WHEN - 23 THEN NULL WHEN + + 28 + - 29 + + 16 THEN NULL ELSE 85 END AS col1
----
4645

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8541
SELECT CASE 72 WHEN + 38 + - ( + 54 ) * - NULLIF ( CAST( + + 1 AS DECIMAL ), 34 / - + 69 + - 32 - - 73 + - 57 ) THEN - - 77 * + + 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT CASE 72 WHEN + 38 + - ( + 54 ) * - NULLIF ( CAST ( + + 1 AS REAL ), 34 / - + 69 + - 32 - - 73 + - 57 ) THEN - - 77 * + + 56 ELSE NULL END
----
NULL

query I rowsort
SELECT NULLIF ( + - ( ( - 66 ) ), + - 28 + + 51 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT CASE - COUNT( * ) WHEN 90 THEN + COUNT( * ) + + + AVG ( ALL + + 13 ) ELSE + 14 * + COUNT( * ) * - 75 * + + 77 END
----
-80850

skipif mysql # not compatible
query I rowsort label-8543
SELECT CASE - COUNT ( * ) WHEN 90 THEN + COUNT ( * ) + + + AVG ( ALL + + 13 ) ELSE + 14 * + COUNT ( * ) * - 75 * + + 77 END
----
-80850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT + CAST( - - 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-8544
SELECT + CAST ( - - 93 AS INTEGER )
----
93

query II rowsort
SELECT + 41 * + 94 AS col1, 83 AS col2
----
3854
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT + 58 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT + 58 / - 96
----
0

query I rowsort
SELECT DISTINCT CASE 94 WHEN 46 + - 42 THEN + 4 * + + 9 - 74 END * 56
----
NULL

query I rowsort
SELECT ALL ( - 79 ) * + + NULLIF ( + + 69, + 1 + - - 73 * + - 28 * + 58 ) col0
----
-5451

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT CASE - - 26 WHEN + - SUM( ALL + + 7 ) * - 74 THEN + + 96 END + + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT CASE - - 26 WHEN + - SUM ( ALL + + 7 ) * - 74 THEN + + 96 END + + + 31
----
NULL

query I rowsort
SELECT + 62 - - - 53
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL COALESCE ( - 24, + + 61 + + - NULLIF ( COUNT( * ), - 35 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL COALESCE ( - 24, + + 61 + + - NULLIF ( COUNT ( * ), - 35 ) )
----
-24

query I rowsort
SELECT + 6 + + 95 * + 67
----
6371

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT 24 + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-8553
SELECT 24 + COUNT ( * )
----
25

query I rowsort
SELECT ALL - - ( - 30 ) * 72 AS col1
----
-2160

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8555
SELECT ALL CAST( NULL AS DECIMAL ) / + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL CAST ( NULL AS REAL ) / + 36
----
NULL

query I rowsort
SELECT ALL - - ( 7 ) * + + ( - 25 )
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT - 67 + 93 + + SUM( ALL 10 ) * 41 * + + 34 * - + 87 * + + 33 - 38 AS col1
----
-40021752

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT - 67 + 93 + + SUM ( ALL 10 ) * 41 * + + 34 * - + 87 * + + 33 - 38 AS col1
----
-40021752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8558
SELECT - 65 * + - ( + 54 ) * 68 * + COUNT( * ) * MIN( ALL COALESCE ( - 64, - - 81, + CAST( NULL AS SIGNED ) DIV - + 99 ) ) AS col0
----
-15275520

skipif mysql # not compatible
query I rowsort label-8558
SELECT - 65 * + - ( + 54 ) * 68 * + COUNT ( * ) * MIN ( ALL COALESCE ( - 64, - - 81, + CAST ( NULL AS INTEGER ) / - + 99 ) ) AS col0
----
-15275520

query I rowsort
SELECT DISTINCT + 92 + 13 * - - 11 * 11
----
1665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8560
SELECT ALL CAST( NULL AS SIGNED ) + + 60 + + 38 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL CAST ( NULL AS INTEGER ) + + 60 + + 38 * + COUNT ( * ) col0
----
NULL

query II rowsort
SELECT DISTINCT - 76 * 97 AS col1, - 87 * + 65 * 42 col1
----
-7372
-237510

query I rowsort
SELECT 93 + + COALESCE ( + ( - 99 ), + 48 ) * - 89
----
8904

query II rowsort
SELECT ALL + + 80 * - - 33 col1, - 37 + + 54
----
2640
17

query I rowsort
SELECT + 31 * 19
----
589

query II rowsort
SELECT DISTINCT + 32 + 4 * + 90 AS col0, 78
----
392
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT ALL - 73 + + - MIN( 41 ) AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL - 73 + + - MIN ( 41 ) AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + - MIN( DISTINCT + - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-8567
SELECT + - MIN ( DISTINCT + - 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT MIN( 25 ) * - + ( - + SUM( - + 90 ) )
----
-2250

skipif mysql # not compatible
query I rowsort label-8568
SELECT MIN ( 25 ) * - + ( - + SUM ( - + 90 ) )
----
-2250

query I rowsort
SELECT ALL + 99 + + + 53
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8570
SELECT ALL + + CAST( NULL AS SIGNED ) + 9 AS col1, 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-8570
SELECT ALL + + CAST ( NULL AS INTEGER ) + 9 AS col1, 33 AS col2
----
NULL
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8571
SELECT + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 10 + 64
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT 83 + COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8573
SELECT 83 + COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT DISTINCT + 28 + + - 37 + - + COUNT( * ) + - 38 * 81 * + + 81 col2
----
-249328

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT + 28 + + - 37 + - + COUNT ( * ) + - 38 * 81 * + + 81 col2
----
-249328

onlyif mysql # DIV for integer division: 
query II rowsort label-8575
SELECT ALL - 34, - 28 * 86 DIV ( - 55 ) AS col2
----
-34
43

skipif mysql # not compatible
query II rowsort label-8575
SELECT ALL - 34, - 28 * 86 / ( - 55 ) AS col2
----
-34
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT ALL + COUNT( * ) - + + 42 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + COUNT ( * ) - + + 42 AS col2
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8577
SELECT DISTINCT - 56 / + + 29 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT DISTINCT - 56 / + + 29 * - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 79 + + + CASE - - 5 WHEN - 48 THEN NULL WHEN + - 57 * - - COALESCE ( - 38, ( 19 ) + 62, + 67 ) * + 47 + ( - + 64 ) - + + 34 THEN NULL WHEN 50 THEN 7 * + - 70 - - 67 END
----
NULL

query I rowsort
SELECT 18 * + - 30
----
-540

query I rowsort
SELECT 89 + - + NULLIF ( - - ( + 81 ), + 94 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT ALL - 65 DIV + 93 * - 19
----
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - 65 / + 93 * - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL + 11 - - + 44 * - - COALESCE ( + 65, - 75 * + COUNT( * ) * + 10 + 51 ) AS col2
----
2871

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + 11 - - + 44 * - - COALESCE ( + 65, - 75 * + COUNT ( * ) * + 10 + 51 ) AS col2
----
2871

query I rowsort
SELECT ALL - 39 * 40 AS col1
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT COUNT( * ) * CASE - 44 WHEN NULLIF ( - + 42, - + COUNT( * ) ) + - + ( - 99 ) THEN + 1 END * - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT COUNT ( * ) * CASE - 44 WHEN NULLIF ( - + 42, - + COUNT ( * ) ) + - + ( - 99 ) THEN + 1 END * - 21 AS col0
----
NULL

query I rowsort
SELECT ALL + 75 * 44 AS col0
----
3300

query I rowsort
SELECT ALL + 66 * - 52 AS col0
----
-3432

query II rowsort
SELECT ALL 38 AS col1, 37
----
38
37

query I rowsort
SELECT 7 * - - 19 AS col1
----
133

query II rowsort
SELECT 33 AS col0, NULLIF ( - - 96, 59 * + COALESCE ( 8, - + AVG ( 50 ) ) + - 33 ) AS col0
----
33
96

query I rowsort
SELECT ( - + ( 28 ) ) + - + 58 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8591
SELECT 71, + MAX( DISTINCT - 42 ) * + 27 AS col0
----
71
-1134

skipif mysql # not compatible
query II rowsort label-8591
SELECT 71, + MAX ( DISTINCT - 42 ) * + 27 AS col0
----
71
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL + ( + - ( - + COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL + ( + - ( - + COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT COUNT( - 21 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8593
SELECT COUNT ( - 21 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT DISTINCT COUNT( * ) AS col1, 56 * + 91 + COUNT( * ) AS col0
----
1
5097

skipif mysql # not compatible
query II rowsort label-8594
SELECT DISTINCT COUNT ( * ) AS col1, 56 * + 91 + COUNT ( * ) AS col0
----
1
5097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8595
SELECT + 4 * COALESCE ( + 21, + 1 * + ( - 66 ) * - 76 + - ( + 91 ) + - + COUNT( * ) + + + 94 - - + 77 * - 22 * + COALESCE ( CAST( NULL AS SIGNED ), - 9 + + - COUNT( * ), - ( + 30 ) ) * 65 )
----
84

skipif mysql # not compatible
query I rowsort label-8595
SELECT + 4 * COALESCE ( + 21, + 1 * + ( - 66 ) * - 76 + - ( + 91 ) + - + COUNT ( * ) + + + 94 - - + 77 * - 22 * + COALESCE ( CAST ( NULL AS INTEGER ), - 9 + + - COUNT ( * ), - ( + 30 ) ) * 65 )
----
84

query II rowsort
SELECT ALL 43 * - - 57 * + 89 AS col0, 59
----
218139
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8597
SELECT DISTINCT MIN( - CAST( - ( 46 ) AS SIGNED ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT MIN ( - CAST ( - ( 46 ) AS INTEGER ) ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8598
SELECT DISTINCT - COUNT( * ) AS col1, - 54 col1
----
-1
-54

skipif mysql # not compatible
query II rowsort label-8598
SELECT DISTINCT - COUNT ( * ) AS col1, - 54 col1
----
-1
-54

query I rowsort
SELECT - 70 * - 82
----
5740

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT MIN( - 85 ) * - 73 AS col2, 16 AS col2
----
6205
16

skipif mysql # not compatible
query II rowsort label-8600
SELECT MIN ( - 85 ) * - 73 AS col2, 16 AS col2
----
6205
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT ALL + 38 + NULLIF ( - ( + CAST( - 28 AS SIGNED ) ), + - 53 ) * - 49 AS col1
----
-1334

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL + 38 + NULLIF ( - ( + CAST ( - 28 AS INTEGER ) ), + - 53 ) * - 49 AS col1
----
-1334

query II rowsort
SELECT 64, - 40 + 64 AS col0
----
64
24

query I rowsort
SELECT - - 72 col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8604
SELECT + COUNT( * ), + 94 * - + COALESCE ( 54, + 20 + 31 ) AS col2
----
1
-5076

skipif mysql # not compatible
query II rowsort label-8604
SELECT + COUNT ( * ), + 94 * - + COALESCE ( 54, + 20 + 31 ) AS col2
----
1
-5076

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL - 63 + + 79 * - COALESCE ( - - ( - SUM( 69 ) ), + 1, + 75 ) col0
----
5388

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - 63 + + 79 * - COALESCE ( - - ( - SUM ( 69 ) ), + 1, + 75 ) col0
----
5388

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT COUNT( + + 92 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT COUNT ( + + 92 ) AS col2
----
1

query I rowsort
SELECT ALL 73 + + - 80 AS col0
----
-7

query I rowsort
SELECT 72 * + 96
----
6912

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT DISTINCT 30 DIV + - 36 + + - 43 * + 29 * + 15 AS col2
----
-18705

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT 30 / + - 36 + + - 43 * + 29 * + 15 AS col2
----
-18705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8610
SELECT 73 * + + COALESCE ( - 69, 84 ) + - 50 * + 8 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT 73 * + + COALESCE ( - 69, 84 ) + - 50 * + 8 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT - 70 DIV + 89 * + + 80
----
0

skipif mysql # not compatible
query I rowsort label-8611
SELECT - 70 / + 89 * + + 80
----
0

query I rowsort
SELECT ALL 51 * + 40 * + 52 - - ( + - 0 )
----
106080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8613
SELECT ALL ( + - 57 ) * - 16 - COUNT( ALL 48 ) * - 26 + - 83 DIV 44
----
937

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL ( + - 57 ) * - 16 - COUNT ( ALL 48 ) * - 26 + - 83 / 44
----
937

query I rowsort
SELECT 73 * - + 37 AS col0
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL - COUNT( + 83 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - COUNT ( + 83 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8616
SELECT 92 + - CASE - NULLIF ( + ( 71 ), 69 ) WHEN + 0 * + ( + - CASE + + 8 WHEN ( - 54 ) THEN + 24 + + CAST( + + 66 AS SIGNED ) WHEN 12 THEN + - 81 WHEN + 13 * + AVG ( DISTINCT CAST( + ( + 80 ) AS DECIMAL ) ) THEN NULL ELSE NULL END ) * 17 THEN 30 WHEN 21 * 94 THEN CASE CASE 66 WHEN ( COUNT( * ) ) THEN 36 + 60 ELSE 6 / - 88 + + 80 END WHEN + ( - CAST( NULL AS SIGNED ) ) * 35 THEN 89 END END + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT 92 + - CASE - NULLIF ( + ( 71 ), 69 ) WHEN + 0 * + ( + - CASE + + 8 WHEN ( - 54 ) THEN + 24 + + CAST ( + + 66 AS INTEGER ) WHEN 12 THEN + - 81 WHEN + 13 * + AVG ( DISTINCT CAST ( + ( + 80 ) AS REAL ) ) THEN NULL ELSE NULL END ) * 17 THEN 30 WHEN 21 * 94 THEN CASE CASE 66 WHEN ( COUNT ( * ) ) THEN 36 + 60 ELSE 6 / - 88 + + 80 END WHEN + ( - CAST ( NULL AS INTEGER ) ) * 35 THEN 89 END END + 39 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 6 * - 84 * + 72 AS col2
----
-36288

query II rowsort
SELECT 18 * + 13 AS col0, 24 AS col2
----
234
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8619
SELECT - 94 - + SUM( 36 ) - - COALESCE ( + MAX( ALL 42 ), + 63 ) + 84 + + CASE + - CASE MAX( + 88 ) WHEN - 61 + + - 85 + - 9 THEN + MIN( CAST( + 93 AS SIGNED ) ) WHEN - CASE + 15 WHEN 22 THEN NULL WHEN - NULLIF ( - 96, - NULLIF ( + SUM( + 77 ), + 97 ) * - 65 ) * 50 THEN + 25 ELSE - 19 / 39 END * - CAST( NULL AS DECIMAL ) THEN NULL END WHEN - 4 THEN SUM( ALL 55 ) ELSE CAST( COUNT( * ) AS SIGNED ) END
----
-3

skipif mysql # not compatible
query I rowsort label-8619
SELECT - 94 - + SUM ( 36 ) - - COALESCE ( + MAX ( ALL 42 ), + 63 ) + 84 + + CASE + - CASE MAX ( + 88 ) WHEN - 61 + + - 85 + - 9 THEN + MIN ( CAST ( + 93 AS INTEGER ) ) WHEN - CASE + 15 WHEN 22 THEN NULL WHEN - NULLIF ( - 96, - NULLIF ( + SUM ( + 77 ), + 97 ) * - 65 ) * 50 THEN + 25 ELSE - 19 / 39 END * - CAST ( NULL AS REAL ) THEN NULL END WHEN - 4 THEN SUM ( ALL 55 ) ELSE CAST ( COUNT ( * ) AS INTEGER ) END
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT COUNT( ALL + 9 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8620
SELECT COUNT ( ALL + 9 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT + 82 DIV + ( + + 69 )
----
1

skipif mysql # not compatible
query I rowsort label-8621
SELECT + 82 / + ( + + 69 )
----
1

query I rowsort
SELECT - 88 * - 65 AS col0
----
5720

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8623
SELECT ALL - CAST( NULL AS DECIMAL ) / + - 31 * 78 * + 96 AS col0, 15 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-8623
SELECT ALL - CAST ( NULL AS REAL ) / + - 31 * 78 * + 96 AS col0, 15 AS col1
----
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - 74 * + 44 + COUNT( * ) * - - NULLIF ( + MAX( 83 ), + + 76 ) col2
----
-3173

skipif mysql # not compatible
query I rowsort label-8624
SELECT - 74 * + 44 + COUNT ( * ) * - - NULLIF ( + MAX ( 83 ), + + 76 ) col2
----
-3173

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT DISTINCT SUM( DISTINCT + - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT SUM ( DISTINCT + - 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT - - COALESCE ( 58, 76 + - CAST( NULL AS SIGNED ) - 88, + 60 * + 99 - - 21 ) - + 1 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8626
SELECT - - COALESCE ( 58, 76 + - CAST ( NULL AS INTEGER ) - 88, + 60 * + 99 - - 21 ) - + 1 AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8627
SELECT - - 73 * COALESCE ( + 63, + 11 ) AS col2, + 45 * + NULLIF ( ( - 73 ), + SUM( - + 41 ) * MIN( ALL - 50 ) ) + + - CAST( + ( + 82 ) AS SIGNED ) + - 17 AS col1
----
4599
-3384

skipif mysql # not compatible
query II rowsort label-8627
SELECT - - 73 * COALESCE ( + 63, + 11 ) AS col2, + 45 * + NULLIF ( ( - 73 ), + SUM ( - + 41 ) * MIN ( ALL - 50 ) ) + + - CAST ( + ( + 82 ) AS INTEGER ) + - 17 AS col1
----
4599
-3384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT ALL + CAST( - 83 AS SIGNED ) + 29 * + 66 AS col1
----
1831

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + CAST ( - 83 AS INTEGER ) + 29 * + 66 AS col1
----
1831

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - MAX( DISTINCT + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-8629
SELECT - MAX ( DISTINCT + 96 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT CAST( - 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8630
SELECT CAST ( - 1 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - + MAX( ALL 14 ) * - COUNT( ALL - 26 ) + + + ( 14 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8631
SELECT - + MAX ( ALL 14 ) * - COUNT ( ALL - 26 ) + + + ( 14 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT + ( - SUM( - 99 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8632
SELECT + ( - SUM ( - 99 ) ) AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8633
SELECT ALL + 17 + + 78 - - 32 - + 44 * - 14 - + - COUNT( * ) DIV + COUNT( * ) AS col0
----
744

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL + 17 + + 78 - - 32 - + 44 * - 14 - + - COUNT ( * ) / + COUNT ( * ) AS col0
----
744

query I rowsort
SELECT ALL 44 + + 27 + 72 col2
----
143

query I rowsort
SELECT - 18 + - 98 + - 21
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT ALL CAST( 14 AS SIGNED ) + - 58 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL CAST ( 14 AS INTEGER ) + - 58 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT + MIN( - + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8637
SELECT + MIN ( - + 59 ) AS col0
----
-59

query I rowsort
SELECT DISTINCT + 24 - - + 9 * 49
----
465

onlyif mysql # aggregate syntax: 
query II rowsort label-8639
SELECT - SUM( DISTINCT + - 25 ), 3 - 44 AS col0
----
25
-41

skipif mysql # not compatible
query II rowsort label-8639
SELECT - SUM ( DISTINCT + - 25 ), 3 - 44 AS col0
----
25
-41

query I rowsort
SELECT + + 96 + + 84 AS col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT + - COALESCE ( - + 8, CASE 44 WHEN + - 28 THEN NULL WHEN - + SUM( 8 ) THEN NULL WHEN - 53 THEN + 84 END, COALESCE ( + + 31, + ( 52 ) - + 47 + + 77, - - COUNT( * ) * - 2 * - 21 * + 10 ) ) + + 93 * + 49 AS col0
----
4565

skipif mysql # not compatible
query I rowsort label-8641
SELECT + - COALESCE ( - + 8, CASE 44 WHEN + - 28 THEN NULL WHEN - + SUM ( 8 ) THEN NULL WHEN - 53 THEN + 84 END, COALESCE ( + + 31, + ( 52 ) - + 47 + + 77, - - COUNT ( * ) * - 2 * - 21 * + 10 ) ) + + 93 * + 49 AS col0
----
4565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8642
SELECT + 1 * - CASE - COUNT( * ) WHEN - 57 + + ( + 33 ) * + 51 * - 65 * + + NULLIF ( 22, + COUNT( * ) ) * + 54 + + 9 THEN - - 17 * + 12 * 63 + 45 ELSE - - ( - CAST( 13 AS SIGNED ) ) END
----
13

skipif mysql # not compatible
query I rowsort label-8642
SELECT + 1 * - CASE - COUNT ( * ) WHEN - 57 + + ( + 33 ) * + 51 * - 65 * + + NULLIF ( 22, + COUNT ( * ) ) * + 54 + + 9 THEN - - 17 * + 12 * 63 + 45 ELSE - - ( - CAST ( 13 AS INTEGER ) ) END
----
13

query I rowsort
SELECT ALL 7 * - 51
----
-357

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8644
SELECT ( CASE + - 71 WHEN - 40 THEN - 12 WHEN + ( - CAST( NULL AS DECIMAL ) ) * - 93 + + 61 - + - 69 * - 17 * - 80 THEN NULL WHEN + - 23 + - 38 + + ( + + COALESCE ( + + CASE - 80 WHEN - 61 + COUNT( * ) THEN 29 * 87 + 17 ELSE - ( ( 4 ) ) END, 50 / - 15 ) ) - - 86 THEN NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT ( CASE + - 71 WHEN - 40 THEN - 12 WHEN + ( - CAST ( NULL AS REAL ) ) * - 93 + + 61 - + - 69 * - 17 * - 80 THEN NULL WHEN + - 23 + - 38 + + ( + + COALESCE ( + + CASE - 80 WHEN - 61 + COUNT ( * ) THEN 29 * 87 + 17 ELSE - ( ( 4 ) ) END, 50 / - 15 ) ) - - 86 THEN NULL END ) AS col2
----
NULL

query I rowsort
SELECT ( 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT + COUNT( + + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-8646
SELECT + COUNT ( + + 97 )
----
1

query I rowsort
SELECT ALL + ( ( - ( - 84 ) ) )
----
84

query I rowsort
SELECT + 18 + 83 + 19
----
120

query I rowsort
SELECT + ( + 44 ) * - 54 * - 79 AS col1
----
187704

query I rowsort
SELECT + 35 * - 36
----
-1260

query I rowsort
SELECT + 6 * 15 AS col2
----
90

query I rowsort
SELECT + 12 * - 39 AS col0
----
-468

query I rowsort
SELECT ( - 43 ) AS col0
----
-43

query I rowsort
SELECT ALL + 46 * - 76 + - 80 AS col1
----
-3576

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT + 99 + + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 99 + + + COUNT ( * )
----
100

query I rowsort
SELECT + 76 + ( COALESCE ( - 79, - - 40 ) ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL + CASE + 84 WHEN AVG ( DISTINCT + 25 ) * 18 THEN NULL WHEN 28 / 87 * COUNT( * ) * + - ( - ( + + 79 ) ) THEN - - AVG ( + ( 25 ) ) * 48 / + 29 * - 2 + - 57 + - - 83 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT ALL + CASE + 84 WHEN AVG ( DISTINCT + 25 ) * 18 THEN NULL WHEN 28 / 87 * COUNT ( * ) * + - ( - ( + + 79 ) ) THEN - - AVG ( + ( 25 ) ) * 48 / + 29 * - 2 + - 57 + - - 83 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT + CAST( + - 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-8658
SELECT + CAST ( + - 57 AS INTEGER )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL 65 * + MAX( ALL + - 84 ) + + 13 AS col1
----
-5447

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL 65 * + MAX ( ALL + - 84 ) + + 13 AS col1
----
-5447

query I rowsort
SELECT ALL - + COALESCE ( - 64, - 92 - + - ( - - CASE 90 WHEN - 58 / 65 THEN - 39 END ) * - 41 * 25 ) * + - 57 + - + 94
----
-3742

query I rowsort
SELECT DISTINCT 37 col1
----
37

query I rowsort
SELECT + 61 * 59 col0
----
3599

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT MAX( + - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT MAX ( + - 63 ) AS col0
----
-63

query I rowsort
SELECT - 45 + - 59 col0
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-8665
SELECT + 65, COUNT( * ) * ( + - 66 ) col2
----
65
-66

skipif mysql # not compatible
query II rowsort label-8665
SELECT + 65, COUNT ( * ) * ( + - 66 ) col2
----
65
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT DISTINCT - 44 DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT - 44 / + 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8667
SELECT ALL 27, + COUNT( * ) AS col0
----
27
1

skipif mysql # not compatible
query II rowsort label-8667
SELECT ALL 27, + COUNT ( * ) AS col0
----
27
1

query I rowsort
SELECT - 16 * + 11
----
-176

query I rowsort
SELECT + 64 * + - 66
----
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT - 91 - + 39 + + COUNT( ALL 37 ) * + ( + 76 ) + - 75 + + 47
----
-82

skipif mysql # not compatible
query I rowsort label-8670
SELECT - 91 - + 39 + + COUNT ( ALL 37 ) * + ( + 76 ) + - 75 + + 47
----
-82

query II rowsort
SELECT + 73 AS col0, NULLIF ( 1, 32 ) AS col1
----
73
1

query I rowsort
SELECT + 78 * - + 2 * 27 AS col0
----
-4212

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT CASE + 95 WHEN - CASE - 49 WHEN + 1 THEN - 88 - + + 43 ELSE NULL END THEN - 80 * 96 * + 12 + + - 5 WHEN 91 THEN - - COUNT( + + 99 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT CASE + 95 WHEN - CASE - 49 WHEN + 1 THEN - 88 - + + 43 ELSE NULL END THEN - 80 * 96 * + 12 + + - 5 WHEN 91 THEN - - COUNT ( + + 99 ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT 33, - 32 AS col2
----
33
-32

query I rowsort
SELECT ALL ( - + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT - 42 * + - 73 * + - COUNT( 8 ) col2
----
-3066

skipif mysql # not compatible
query I rowsort label-8676
SELECT - 42 * + - 73 * + - COUNT ( 8 ) col2
----
-3066

onlyif mysql # aggregate syntax: 
query III rowsort label-8677
SELECT 19, COUNT( * ) col0, - 9 AS col1
----
19
1
-9

skipif mysql # not compatible
query III rowsort label-8677
SELECT 19, COUNT ( * ) col0, - 9 AS col1
----
19
1
-9

query I rowsort
SELECT ALL + 16 * 83
----
1328

query I rowsort
SELECT NULLIF ( - 89, - + ( + 13 ) ) * - - 3 AS col2
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL + 7 + - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL + 7 + - - COUNT ( * )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL 94 + - CAST( - 54 AS SIGNED )
----
148

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL 94 + - CAST ( - 54 AS INTEGER )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT ( + - 17 ) + - 83 + + COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT ( + - 17 ) + - 83 + + COUNT ( * ) AS col2
----
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-8683
SELECT DISTINCT - 85, - 45 DIV 7 AS col1
----
-85
-6

skipif mysql # not compatible
query II rowsort label-8683
SELECT DISTINCT - 85, - 45 / 7 AS col1
----
-85
-6

query I rowsort
SELECT DISTINCT - 62 + - 45 AS col0
----
-107

query I rowsort
SELECT DISTINCT + 90 + 55
----
145

query I rowsort
SELECT ALL 40 + + - 46
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT DISTINCT CAST( + NULLIF ( + 80, NULLIF ( + 12, + 52 ) * 0 ) AS SIGNED ) + - 5 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT CAST ( + NULLIF ( + 80, NULLIF ( + 12, + 52 ) * 0 ) AS INTEGER ) + - 5 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT - ( COALESCE ( + 36, + MAX( ALL + 78 ), - 23 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT - ( COALESCE ( + 36, + MAX ( ALL + 78 ), - 23 ) )
----
-36

query I rowsort
SELECT 9 - 27 + + + CASE + 12 WHEN 23 THEN NULL ELSE - - 26 END * - 61 AS col2
----
-1604

query II rowsort
SELECT + 49 AS col1, 60 col0
----
49
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8691
SELECT ALL 90 * - CASE - - 93 WHEN + + 84 * 12 + + 57 + 83 * 17 + - 52 + 95 * - 2 THEN - - 88 WHEN + MIN( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL 90 * - CASE - - 93 WHEN + + 84 * 12 + + 57 + 83 * 17 + - 52 + 95 * - 2 THEN - - 88 WHEN + MIN ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ( 94 ) * ( + 91 ) * + - 16 AS col2
----
-136864

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT + MAX( ALL 34 ) * - COUNT( DISTINCT 76 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT + MAX ( ALL 34 ) * - COUNT ( DISTINCT 76 ) AS col1
----
-34

query I rowsort
SELECT ALL - 84 - - 77 col0
----
-7

query II rowsort
SELECT ALL + 26 * - 12 + 82 * - 63, 9 + - 53 AS col2
----
-5478
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8696
SELECT ALL + COALESCE ( - + 57, + + 71 + + MAX( 17 ) ) * + - 35 * + - 60 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL + COALESCE ( - + 57, + + 71 + + MAX ( 17 ) ) * + - 35 * + - 60 + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT DISTINCT + 57 - + + 24 * ( 67 ) DIV - 14 - NULLIF ( - - 77, + 8 ) + - 60
----
34

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT + 57 - + + 24 * ( 67 ) / - 14 - NULLIF ( - - 77, + 8 ) + - 60
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8698
SELECT - COALESCE ( 75, COUNT( * ) + - NULLIF ( + 50, + 21 + + COUNT( * ) + - - 42 * - COUNT( * ) * CAST( - + MAX( + 0 ) AS SIGNED ) ) * - 23 + - 63, + + 35 )
----
-75

skipif mysql # not compatible
query I rowsort label-8698
SELECT - COALESCE ( 75, COUNT ( * ) + - NULLIF ( + 50, + 21 + + COUNT ( * ) + - - 42 * - COUNT ( * ) * CAST ( - + MAX ( + 0 ) AS INTEGER ) ) * - 23 + - 63, + + 35 )
----
-75

query I rowsort
SELECT 24 - + - 12
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT ALL + CAST( + 33 AS SIGNED )
----
33

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL + CAST ( + 33 AS INTEGER )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT 26 + - + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8701
SELECT 26 + - + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT 57 * - - 15
----
855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8703
SELECT 26 AS col2, + NULLIF ( + 68, + 56 * + 82 + + 90 + 10 + + NULLIF ( + 18, - 89 + - SUM( - 23 ) - - 65 + - MAX( DISTINCT 61 ) * + + 44 * 2 * - 1 ) / - + CASE CASE CAST( NULL AS SIGNED ) WHEN ( 41 ) + 73 THEN - 60 - 29 / + 12 WHEN - 5 - + 69 THEN MAX( - 70 ) ELSE - 37 END WHEN COUNT( * ) THEN COUNT( * ) ELSE NULL END * 74 ) AS col1
----
26
68

skipif mysql # not compatible
query II rowsort label-8703
SELECT 26 AS col2, + NULLIF ( + 68, + 56 * + 82 + + 90 + 10 + + NULLIF ( + 18, - 89 + - SUM ( - 23 ) - - 65 + - MAX ( DISTINCT 61 ) * + + 44 * 2 * - 1 ) / - + CASE CASE CAST ( NULL AS INTEGER ) WHEN ( 41 ) + 73 THEN - 60 - 29 / + 12 WHEN - 5 - + 69 THEN MAX ( - 70 ) ELSE - 37 END WHEN COUNT ( * ) THEN COUNT ( * ) ELSE NULL END * 74 ) AS col1
----
26
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8704
SELECT COUNT( * ) + MAX( - + CAST( NULL AS SIGNED ) ) + 71 + - COUNT( * ) * - 61 AS col2, + 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-8704
SELECT COUNT ( * ) + MAX ( - + CAST ( NULL AS INTEGER ) ) + 71 + - COUNT ( * ) * - 61 AS col2, + 25
----
NULL
25

query II rowsort
SELECT - 89, 30 + 84 AS col0
----
-89
114

query I rowsort
SELECT - 50 * - 60 + 24 + - 45
----
2979

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT ALL + 99 DIV + 70
----
1

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL + 99 / + 70
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8708
SELECT DISTINCT - 24 AS col0, - COUNT( * ) AS col1
----
-24
-1

skipif mysql # not compatible
query II rowsort label-8708
SELECT DISTINCT - 24 AS col0, - COUNT ( * ) AS col1
----
-24
-1

query I rowsort
SELECT DISTINCT + 93 * - - 39 AS col0
----
3627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8710
SELECT 92 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8710
SELECT 92 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT 27 + + SUM( ALL + 87 ) + COALESCE ( + 86, + 34 * 52 )
----
200

skipif mysql # not compatible
query I rowsort label-8711
SELECT 27 + + SUM ( ALL + 87 ) + COALESCE ( + 86, + 34 * 52 )
----
200

query I rowsort
SELECT ALL - 75 + ( - - 57 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT 14 * NULLIF ( NULLIF ( + 66, + - 82 * 0 + + COUNT( * ) + COALESCE ( + 8, + + ( - SUM( + 9 ) ) ) + + - 86 * + 51 ), - - 21 )
----
924

skipif mysql # not compatible
query I rowsort label-8713
SELECT 14 * NULLIF ( NULLIF ( + 66, + - 82 * 0 + + COUNT ( * ) + COALESCE ( + 8, + + ( - SUM ( + 9 ) ) ) + + - 86 * + 51 ), - - 21 )
----
924

query I rowsort
SELECT 17 * - 62
----
-1054

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL - CASE 91 WHEN + - 16 THEN - COUNT( * ) * + 31 * + 88 END + + + COUNT( * ) - - ( 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL - CASE 91 WHEN + - 16 THEN - COUNT ( * ) * + 31 * + 88 END + + + COUNT ( * ) - - ( 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT ALL + 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL + 76 + COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT - CASE + + 29 WHEN + - 36 THEN - + 29 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8718
SELECT 76 DIV - CASE 73 WHEN CAST( - 64 AS SIGNED ) DIV + + 72 THEN + 46 WHEN - 89 THEN - 93 ELSE - - COUNT( * ) END + + 58 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8718
SELECT 76 / - CASE 73 WHEN CAST ( - 64 AS INTEGER ) / + + 72 THEN + 46 WHEN - 89 THEN - 93 ELSE - - COUNT ( * ) END + + 58 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT DISTINCT - SUM( - 79 ) col2
----
79

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT - SUM ( - 79 ) col2
----
79

query II rowsort
SELECT DISTINCT + 68 * - 65, - 70 * 27 * + 2 + 24 + 10 AS col2
----
-4420
-3746

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT ALL - COALESCE ( + - 97, + - COALESCE ( 95, - - 93 + MAX( - 82 ) ) * - + 94 + + ( + 25 ) - NULLIF ( + 89, - 29 ) + - + 42 - + 36 * - + 55 * ( + + 44 ) * 20 * COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL - COALESCE ( + - 97, + - COALESCE ( 95, - - 93 + MAX ( - 82 ) ) * - + 94 + + ( + 25 ) - NULLIF ( + 89, - 29 ) + - + 42 - + 36 * - + 55 * ( + + 44 ) * 20 * COUNT ( * ) )
----
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8722
SELECT CASE - 28 WHEN 98 THEN NULL WHEN + + 7 THEN 93 END * + CAST( NULL AS DECIMAL ) * - 32 / - 58 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT CASE - 28 WHEN 98 THEN NULL WHEN + + 7 THEN 93 END * + CAST ( NULL AS REAL ) * - 32 / - 58 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT 23 + + 91 * NULLIF ( - CASE - + COUNT( * ) WHEN + 88 + - COALESCE ( + COUNT( - ( 6 ) ), + - 98 / + 59 + - 45 + 39 ) THEN + 85 END, + 95 ) * + - 47 * 12 * COUNT( + 57 ) - ( - 51 ) * COUNT( * ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT 23 + + 91 * NULLIF ( - CASE - + COUNT ( * ) WHEN + 88 + - COALESCE ( + COUNT ( - ( 6 ) ), + - 98 / + 59 + - 45 + 39 ) THEN + 85 END, + 95 ) * + - 47 * 12 * COUNT ( + 57 ) - ( - 51 ) * COUNT ( * ) + + 37
----
NULL

query I rowsort
SELECT DISTINCT - + 64 * - + 46 + 0 AS col1
----
2944

query I rowsort
SELECT - 98 * 10 + + 91 * ( - 16 )
----
-2436

query I rowsort
SELECT - 7 + - 30 AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT + 46 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-8727
SELECT + 46 / - 46
----
-1

query I rowsort
SELECT DISTINCT 94 * 75 * - 28 AS col1
----
-197400

query I rowsort
SELECT ALL 12 * - ( - 86 ) AS col1
----
1032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT DISTINCT - COALESCE ( - 86, - CAST( - 98 AS SIGNED ) ) * + - 67
----
-5762

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT - COALESCE ( - 86, - CAST ( - 98 AS INTEGER ) ) * + - 67
----
-5762

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT ALL + 88 + + 95 + + 39 DIV + 15 + + + 72 DIV - 78 AS col0
----
185

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL + 88 + + 95 + + 39 / + 15 + + + 72 / - 78 AS col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT - COUNT( - + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-8732
SELECT - COUNT ( - + 58 )
----
-1

query II rowsort
SELECT 1 AS col2, + 2 AS col2
----
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8734
SELECT ALL 77 + 84 * 38 col2, COUNT( * ) + - CAST( NULL AS SIGNED ) * + 14 AS col0
----
3269
NULL

skipif mysql # not compatible
query II rowsort label-8734
SELECT ALL 77 + 84 * 38 col2, COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 14 AS col0
----
3269
NULL

query I rowsort
SELECT + 83 - - 37 * - 45 col0
----
-1582

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL COUNT( ALL - 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL COUNT ( ALL - 77 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 62 * + + 32 * + 86
----
-170624

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT + 35 * + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8738
SELECT + 35 * + COUNT ( * ) AS col1
----
35

query I rowsort
SELECT ALL 41 + + 8 col0
----
49

query I rowsort
SELECT DISTINCT - 44 + + - 79 AS col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT + 99 + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-8741
SELECT + 99 + COUNT ( * )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT + SUM( ALL + - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + SUM ( ALL + - 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT - MIN( - 96 ) * + 46 + 62 + - + SUM( 86 )
----
4392

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - MIN ( - 96 ) * + 46 + 62 + - + SUM ( 86 )
----
4392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT COALESCE ( + 84, - CAST( NULL AS SIGNED ), - 28 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8744
SELECT COALESCE ( + 84, - CAST ( NULL AS INTEGER ), - 28 ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8745
SELECT ALL 63 * 36 * + 98 DIV + ( 49 ) - + 41 + - 66 + SUM( + - 91 ) AS col0, 78 AS col0
----
4338
78

skipif mysql # not compatible
query II rowsort label-8745
SELECT ALL 63 * 36 * + 98 / + ( 49 ) - + 41 + - 66 + SUM ( + - 91 ) AS col0, 78 AS col0
----
4338
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8746
SELECT - - 70 + 92 + - 58 + 7, 0 + - - CAST( 96 AS SIGNED ) AS col0
----
111
96

skipif mysql # not compatible
query II rowsort label-8746
SELECT - - 70 + 92 + - 58 + 7, 0 + - - CAST ( 96 AS INTEGER ) AS col0
----
111
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT ALL + - COUNT( * ), 3 * 62 * - 46 + + - 72 * - 12 AS col1
----
-1
-7692

skipif mysql # not compatible
query II rowsort label-8747
SELECT ALL + - COUNT ( * ), 3 * 62 * - 46 + + - 72 * - 12 AS col1
----
-1
-7692

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL - 56 * NULLIF ( - 99, + + 81 ) * 92 + COUNT( ALL + - 70 ) - - NULLIF ( + - COUNT( * ), + + 37 )
----
510048

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - 56 * NULLIF ( - 99, + + 81 ) * 92 + COUNT ( ALL + - 70 ) - - NULLIF ( + - COUNT ( * ), + + 37 )
----
510048

onlyif mysql # aggregate syntax: 
query II rowsort label-8749
SELECT + COUNT( * ), - 28 + 17 + - 22 col0
----
1
-33

skipif mysql # not compatible
query II rowsort label-8749
SELECT + COUNT ( * ), - 28 + 17 + - 22 col0
----
1
-33

query I rowsort
SELECT - 68 * 95 + - 6 AS col0
----
-6466

query I rowsort
SELECT + + 27 * ( - 40 ) + 17 AS col1
----
-1063

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - COUNT( * ) - + 35
----
-36

skipif mysql # not compatible
query I rowsort label-8752
SELECT - COUNT ( * ) - + 35
----
-36

query I rowsort
SELECT - + 43 * + 14 col0
----
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT - COUNT( * ) - - 18
----
17

skipif mysql # not compatible
query I rowsort label-8754
SELECT - COUNT ( * ) - - 18
----
17

query I rowsort
SELECT DISTINCT - 16 * - + ( 8 )
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8756
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, 98 + - 45 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-8756
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, 98 + - 45 AS col2
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT - SUM( + 92 ) * + - COALESCE ( - 31, + 15 * + - COUNT( * ) * + COUNT( * ) * - 88 ) - - 16
----
-2836

skipif mysql # not compatible
query I rowsort label-8757
SELECT - SUM ( + 92 ) * + - COALESCE ( - 31, + 15 * + - COUNT ( * ) * + COUNT ( * ) * - 88 ) - - 16
----
-2836

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8758
SELECT ALL - ( + - 8 ) * + 50 - + 90 * 31 + + AVG ( ALL + ( - 33 ) ) + + CAST( NULL AS DECIMAL ) / - 2 + ( - - NULLIF ( - 40, - 96 ) ) + + + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL - ( + - 8 ) * + 50 - + 90 * 31 + + AVG ( ALL + ( - 33 ) ) + + CAST ( NULL AS REAL ) / - 2 + ( - - NULLIF ( - 40, - 96 ) ) + + + 43 AS col2
----
NULL

query I rowsort
SELECT - + 86 - - + 90 + 88 * 75 * + COALESCE ( + 60, - 49 * 32 )
----
396004

query I rowsort
SELECT ALL + 47 * - 24 + 93 AS col1
----
-1035

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8761
SELECT + - 11 - 78 + - - COALESCE ( 31, + 77, - + CAST( NULL AS SIGNED ) ) col0, 27
----
-58
27

skipif mysql # not compatible
query II rowsort label-8761
SELECT + - 11 - 78 + - - COALESCE ( 31, + 77, - + CAST ( NULL AS INTEGER ) ) col0, 27
----
-58
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT - CASE + 27 WHEN - - COUNT( * ) * 67 * - + CASE + 58 WHEN + 99 + 42 THEN - - 79 WHEN COUNT( * ) THEN 32 + + - 67 END - AVG ( - + 61 ) + COUNT( * ) THEN NULL WHEN + + 36 THEN NULL WHEN + 32 + - 14 * - + 51 THEN NULL ELSE + + 88 END AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8762
SELECT - CASE + 27 WHEN - - COUNT ( * ) * 67 * - + CASE + 58 WHEN + 99 + 42 THEN - - 79 WHEN COUNT ( * ) THEN 32 + + - 67 END - AVG ( - + 61 ) + COUNT ( * ) THEN NULL WHEN + + 36 THEN NULL WHEN + 32 + - 14 * - + 51 THEN NULL ELSE + + 88 END AS col0
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT + 72 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-8763
SELECT + 72 / + 55
----
1

query I rowsort
SELECT - 83 + 4
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT ALL 71 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL 71 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( + + 83, + 62 * - 16 + - 28 * 7 ) AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8767
SELECT + 36 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT + 36 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 58 + + - 39
----
19

query II rowsort
SELECT ALL 23 + + 64 AS col0, + ( + 35 )
----
87
35

query I rowsort
SELECT + 29 * 77
----
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL 35 * + COUNT( DISTINCT + + 1 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL 35 * + COUNT ( DISTINCT + + 1 ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8772
SELECT + 93 * + COUNT( 89 ) DIV - - 96, 83 AS col1
----
0
83

skipif mysql # not compatible
query II rowsort label-8772
SELECT + 93 * + COUNT ( 89 ) / - - 96, 83 AS col1
----
0
83

query I rowsort
SELECT + ( + 27 ) + + - 47 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8774
SELECT + CASE NULLIF ( - 34, CASE + 66 WHEN - 69 THEN NULL ELSE + CAST( - 15 AS SIGNED ) END / + COUNT( * ) + CAST( NULL AS SIGNED ) ) WHEN - 4 THEN + 81 WHEN - 86 THEN + 31 END + - 79 + 15 * - CAST( NULL AS SIGNED ) AS col0, + 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-8774
SELECT + CASE NULLIF ( - 34, CASE + 66 WHEN - 69 THEN NULL ELSE + CAST ( - 15 AS INTEGER ) END / + COUNT ( * ) + CAST ( NULL AS INTEGER ) ) WHEN - 4 THEN + 81 WHEN - 86 THEN + 31 END + - 79 + 15 * - CAST ( NULL AS INTEGER ) AS col0, + 55
----
NULL
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT ALL 57 DIV - 77 * + 28 col0
----
0

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL 57 / - 77 * + 28 col0
----
0

query I rowsort
SELECT + 63 * - 56
----
-3528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8777
SELECT DISTINCT - ( + CASE + + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + 79 + 75 + 39 + 17 * - - COUNT( * ) THEN + 16 WHEN - - NULLIF ( - - 24, - + 45 + - COALESCE ( - 24, + MAX( ALL + 28 ) ) ) THEN - 96 - + 34 WHEN 97 + - + CAST( 76 AS DECIMAL ) THEN NULL ELSE - - MAX( + + 39 ) / 30 END ) * - CASE 72 WHEN 85 THEN 85 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT - ( + CASE + + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + 79 + 75 + 39 + 17 * - - COUNT ( * ) THEN + 16 WHEN - - NULLIF ( - - 24, - + 45 + - COALESCE ( - 24, + MAX ( ALL + 28 ) ) ) THEN - 96 - + 34 WHEN 97 + - + CAST ( 76 AS REAL ) THEN NULL ELSE - - MAX ( + + 39 ) / 30 END ) * - CASE 72 WHEN 85 THEN 85 * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8778
SELECT + + COALESCE ( - 63, 26 * - 92 * + 38 + + 94 + 41 + 7 + - NULLIF ( + 51, - 74 - - - CAST( + 34 AS SIGNED ) ) DIV - 15 * + - CAST( + 52 AS SIGNED ) * 36 DIV + - 59 * - - MIN( ALL - 13 ) DIV 15 * - 23 * + + 42 * + 1 + 74 + - 44 ) DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-8778
SELECT + + COALESCE ( - 63, 26 * - 92 * + 38 + + 94 + 41 + 7 + - NULLIF ( + 51, - 74 - - - CAST ( + 34 AS INTEGER ) ) / - 15 * + - CAST ( + 52 AS INTEGER ) * 36 / + - 59 * - - MIN ( ALL - 13 ) / 15 * - 23 * + + 42 * + 1 + 74 + - 44 ) / - 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL - 28 * - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - 28 * - COUNT ( * )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT + - CAST( NULL AS SIGNED ) * - 30 * CAST( - 23 AS SIGNED ) - - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT + - CAST ( NULL AS INTEGER ) * - 30 * CAST ( - 23 AS INTEGER ) - - - 57
----
NULL

query I rowsort
SELECT - - 17 + + + 41
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL 45 * COUNT( DISTINCT 2 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL 45 * COUNT ( DISTINCT 2 ) col2
----
45

query I rowsort
SELECT DISTINCT + + ( 90 )
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-8784
SELECT DISTINCT - 51 DIV ( - 29 ) * 59 + - 55 + ( + 11 ), 5 * - 69 + + 96 + - 56 - 5 AS col1
----
15
-310

skipif mysql # not compatible
query II rowsort label-8784
SELECT DISTINCT - 51 / ( - 29 ) * 59 + - 55 + ( + 11 ), 5 * - 69 + + 96 + - 56 - 5 AS col1
----
15
-310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8785
SELECT - 55 DIV + COUNT( * ) + + 12
----
-43

skipif mysql # not compatible
query I rowsort label-8785
SELECT - 55 / + COUNT ( * ) + + 12
----
-43

query I rowsort
SELECT DISTINCT - + ( - + 23 )
----
23

query I rowsort
SELECT ALL - 21 + + + 9
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT ( + + 89 ) * - 95 + 49 - 48 AS col0, ( + - MIN( - 73 ) ) AS col1
----
-8454
73

skipif mysql # not compatible
query II rowsort label-8788
SELECT ( + + 89 ) * - 95 + 49 - 48 AS col0, ( + - MIN ( - 73 ) ) AS col1
----
-8454
73

query I rowsort
SELECT DISTINCT - + 34 * - - 80
----
-2720

onlyif mysql # DIV for integer division: 
query I rowsort label-8790
SELECT DISTINCT - + COALESCE ( + 42, + - 45 ) + + 3 DIV - 36 * + 49
----
-42

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT - + COALESCE ( + 42, + - 45 ) + + 3 / - 36 * + 49
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT 70 + + - COALESCE ( 65, - COUNT( 33 ) + 13 )
----
5

skipif mysql # not compatible
query I rowsort label-8791
SELECT 70 + + - COALESCE ( 65, - COUNT ( 33 ) + 13 )
----
5

query I rowsort
SELECT ALL - 60 + 99 - + 74
----
-35

query I rowsort
SELECT DISTINCT - COALESCE ( - NULLIF ( + - 90, 9 / + 20 * - 51 ), 53 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8794
SELECT 7 AS col2, CAST( NULL AS SIGNED ) - - - 65 + - - 75
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8794
SELECT 7 AS col2, CAST ( NULL AS INTEGER ) - - - 65 + - - 75
----
7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL + MIN( DISTINCT - 90 ) + - + COALESCE ( - CAST( + CAST( + + 80 AS SIGNED ) AS SIGNED ), + 85 ) + + - 68 - + + 77
----
-155

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + MIN ( DISTINCT - 90 ) + - + COALESCE ( - CAST ( + CAST ( + + 80 AS INTEGER ) AS INTEGER ), + 85 ) + + - 68 - + + 77
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8796
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 82 + - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 82 + - - 87
----
NULL

query I rowsort
SELECT ALL 24 - - 67
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8798
SELECT 43 * + 41 * + CAST( NULL AS SIGNED ) * + MAX( 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT 43 * + 41 * + CAST ( NULL AS INTEGER ) * + MAX ( 21 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT ALL 41 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL 41 / 78
----
0

query I rowsort
SELECT 59 + + 37 + - 77 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8801
SELECT 33 DIV + 71 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8801
SELECT 33 / + 71 * + COUNT ( * )
----
0

query I rowsort
SELECT 42 - - 25 + + 37
----
104

query I rowsort
SELECT ALL 40 * 94 AS col1
----
3760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8804
SELECT MIN( ALL + 77 ) - - + 23 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT MIN ( ALL + 77 ) - - + 23 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL + NULLIF ( + COUNT( DISTINCT + - 4 ), + 71 * + + 81 * + 4 * + 77 * - - NULLIF ( - 5, + + 50 ) + + COUNT( ALL 51 ) ) - 96 - + + ( - - COALESCE ( + 48, 91 * 50 * - 67 ) ) AS col0
----
-143

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + NULLIF ( + COUNT ( DISTINCT + - 4 ), + 71 * + + 81 * + 4 * + 77 * - - NULLIF ( - 5, + + 50 ) + + COUNT ( ALL 51 ) ) - 96 - + + ( - - COALESCE ( + 48, 91 * 50 * - 67 ) ) AS col0
----
-143

query II rowsort
SELECT - 37 AS col1, 54
----
-37
54

query I rowsort
SELECT 68 * 34 AS col1
----
2312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8808
SELECT ALL NULLIF ( + 35, + - CAST( - 65 AS SIGNED ) + COUNT( * ) ), 30 AS col1
----
35
30

skipif mysql # not compatible
query II rowsort label-8808
SELECT ALL NULLIF ( + 35, + - CAST ( - 65 AS INTEGER ) + COUNT ( * ) ), 30 AS col1
----
35
30

query I rowsort
SELECT 98 + + 65 col1
----
163

query I rowsort
SELECT - 90 * - + 33 * - 58 AS col2
----
-172260

query I rowsort
SELECT DISTINCT - ( - + 88 ) AS col1
----
88

query I rowsort
SELECT + 26 * 89
----
2314

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL + ( + COUNT( * ) ) + - - 82
----
83

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + ( + COUNT ( * ) ) + - - 82
----
83

query I rowsort
SELECT ALL - - ( - + 8 ) AS col2
----
-8

query I rowsort
SELECT DISTINCT 74 + - 86 * + - 14 AS col2
----
1278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT ALL - NULLIF ( + 41, - - 13 ) + - CAST( + - 1 AS SIGNED ) * - 60 + 33 + - 55 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - NULLIF ( + 41, - - 13 ) + - CAST ( + - 1 AS INTEGER ) * - 60 + 33 + - 55 AS col2
----
-123

query I rowsort
SELECT ALL + 55 + + + 27
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT 47 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT 47 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + COALESCE ( - 6, + 36 * - + 3 ) col2
----
-6

query I rowsort
SELECT DISTINCT - 22 + 76 + 45 col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT - COUNT( 88 ) DIV - + 68
----
0

skipif mysql # not compatible
query I rowsort label-8821
SELECT - COUNT ( 88 ) / - + 68
----
0

query I rowsort
SELECT 26 - + 32
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT DISTINCT 25 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT 25 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 16 AS col0
----
NULL

query I rowsort
SELECT 43 - 60
----
-17

query I rowsort
SELECT 52 - 23 - - NULLIF ( + 67, - 90 * + ( - ( - 66 ) ) * + 94 - - + 70 - + + 30 * - 3 - + 44 + + 6 )
----
96

query I rowsort
SELECT ALL + 58 - 47 + + 57 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT NULLIF ( - COUNT( * ), - - ( COALESCE ( + 85, + COUNT( * ) ) ) ) * + 0 * + 12
----
0

skipif mysql # not compatible
query I rowsort label-8828
SELECT NULLIF ( - COUNT ( * ), - - ( COALESCE ( + 85, + COUNT ( * ) ) ) ) * + 0 * + 12
----
0

query II rowsort
SELECT 98, + 62 AS col0
----
98
62

query II rowsort
SELECT - 18 AS col1, + 32 * 28 AS col1
----
-18
896

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT 36 AS col2, CASE + + 7 WHEN - 26 * - + COUNT( * ) THEN 28 ELSE NULL END * CASE 28 WHEN 33 - - COUNT( * ) THEN NULL ELSE - 76 END + - - 91 AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-8831
SELECT 36 AS col2, CASE + + 7 WHEN - 26 * - + COUNT ( * ) THEN 28 ELSE NULL END * CASE 28 WHEN 33 - - COUNT ( * ) THEN NULL ELSE - 76 END + - - 91 AS col1
----
36
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT 42 + + 88 DIV + + 90 * + + 25
----
42

skipif mysql # not compatible
query I rowsort label-8832
SELECT 42 + + 88 / + + 90 * + + 25
----
42

query I rowsort
SELECT 52 + + - 82 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT DISTINCT + 41 * NULLIF ( 94, + - 12 * - CAST( NULL AS SIGNED ) + + 74 ) * + 84
----
323736

skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + 41 * NULLIF ( 94, + - 12 * - CAST ( NULL AS INTEGER ) + + 74 ) * + 84
----
323736

query I rowsort
SELECT 61 + - 37 + - 31 - 14 - - 7
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8836
SELECT 68 DIV + 8 * - COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8836
SELECT 68 / + 8 * - COUNT ( * ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL + 23 * + 81 * COUNT( * ) * - - 47
----
87561

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + 23 * + 81 * COUNT ( * ) * - - 47
----
87561

query I rowsort
SELECT 77 + + 93 AS col2
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT 48 + + COUNT( + - 34 )
----
49

skipif mysql # not compatible
query I rowsort label-8839
SELECT 48 + + COUNT ( + - 34 )
----
49

query I rowsort
SELECT 51 * + 87 AS col0
----
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT 82 + + - COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8841
SELECT 82 + + - COUNT ( * ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - 48 + + + MIN( - 14 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8842
SELECT - 48 + + + MIN ( - 14 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT + NULLIF ( - + NULLIF ( + 53, + - COUNT( + 40 ) ), - 4 )
----
-53

skipif mysql # not compatible
query I rowsort label-8843
SELECT + NULLIF ( - + NULLIF ( + 53, + - COUNT ( + 40 ) ), - 4 )
----
-53

query I rowsort
SELECT 92 + + 56
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT + NULLIF ( + COUNT( * ), + + 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8845
SELECT + NULLIF ( + COUNT ( * ), + + 17 ) AS col2
----
1

query I rowsort
SELECT ALL + 71 * + 44 + 4 + - 88 + 67
----
3107

onlyif mysql # DIV for integer division: 
query I rowsort label-8847
SELECT DISTINCT - + 38 DIV - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT - + 38 / - 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT - COUNT( * ) * 14 + - - COUNT( * ) * - - COUNT( * ) * 20 + + + 61 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT - COUNT ( * ) * 14 + - - COUNT ( * ) * - - COUNT ( * ) * 20 + + + 61 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT + ( - - 31 ) + 62 + + COUNT( * ) * + 65 col2
----
158

skipif mysql # not compatible
query I rowsort label-8849
SELECT + ( - - 31 ) + 62 + + COUNT ( * ) * + 65 col2
----
158

onlyif mysql # DIV for integer division: 
query II rowsort label-8850
SELECT DISTINCT + 82 AS col1, + 76 DIV 53 * - + 87 * - 46 AS col0
----
82
4002

skipif mysql # not compatible
query II rowsort label-8850
SELECT DISTINCT + 82 AS col1, + 76 / 53 * - + 87 * - 46 AS col0
----
82
4002

onlyif mysql # DIV for integer division: 
query I rowsort label-8851
SELECT - 92 DIV 4 + - 38 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8851
SELECT - 92 / 4 + - 38 AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8852
SELECT - + 84 * + 34 * + - 69 - 62 + - + CASE - 42 WHEN + 65 THEN - ( + COUNT( * ) ) / + + 53 * - COALESCE ( - 37, + CAST( + 85 AS DECIMAL ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT - + 84 * + 34 * + - 69 - 62 + - + CASE - 42 WHEN + 65 THEN - ( + COUNT ( * ) ) / + + 53 * - COALESCE ( - 37, + CAST ( + 85 AS REAL ) ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8853
SELECT ALL + + 54 * - - 30 * 70 + - 26 DIV - 62 - + 93 + - + 95 * + 50 AS col1
----
108557

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + + 54 * - - 30 * 70 + - 26 / - 62 - + 93 + - + 95 * + 50 AS col1
----
108557

query I rowsort
SELECT + NULLIF ( - 48, + 93 + - 28 ) AS col0
----
-48

query I rowsort
SELECT + 89 * - 40
----
-3560

query I rowsort
SELECT + 6 + + 26 AS col0
----
32

query I rowsort
SELECT ALL - 61 * 27 - - 84
----
-1563

query II rowsort
SELECT + 18 * + 78 AS col0, - 79 AS col1
----
1404
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT + MAX( ALL + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-8859
SELECT + MAX ( ALL + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT + COUNT( ALL 12 ) + 75
----
76

skipif mysql # not compatible
query I rowsort label-8860
SELECT + COUNT ( ALL 12 ) + 75
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + CASE + ( ( 28 ) ) WHEN + 27 + 61 + 20 THEN - + 51 WHEN - + AVG ( 16 ) * - ( - 85 ) * NULLIF ( - 49, 38 * 14 ) + + 93 * + 99 * + + 81 * + 47 + + ( + 57 ) + + 76 * + 91 + - + MIN( 95 ) + 26 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT + CASE + ( ( 28 ) ) WHEN + 27 + 61 + 20 THEN - + 51 WHEN - + AVG ( 16 ) * - ( - 85 ) * NULLIF ( - 49, 38 * 14 ) + + 93 * + 99 * + + 81 * + 47 + + ( + 57 ) + + 76 * + 91 + - + MIN ( 95 ) + 26 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 53 * - + 69 * + 57 AS col2
----
-208449

query II rowsort
SELECT - 59 * - 50 AS col0, - NULLIF ( 76, - ( - 28 ) - + 31 - - 90 + + - 15 * - + 12 * + + 17 ) AS col0
----
2950
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8864
SELECT - 76 + + COUNT( * ), + COUNT( * ) * - - 21 AS col0
----
-75
21

skipif mysql # not compatible
query II rowsort label-8864
SELECT - 76 + + COUNT ( * ), + COUNT ( * ) * - - 21 AS col0
----
-75
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL MAX( ALL - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL MAX ( ALL - 70 )
----
-70

query I rowsort
SELECT ALL 5 + 23 AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8867
SELECT + COUNT( * ) * + 34, 57 col2
----
34
57

skipif mysql # not compatible
query II rowsort label-8867
SELECT + COUNT ( * ) * + 34, 57 col2
----
34
57

query I rowsort
SELECT + 87 + - 43 AS col0
----
44

query I rowsort
SELECT - + ( - 8 ) AS col1
----
8

query I rowsort
SELECT ALL + 49 + + - 27 - - + 69 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL - 91 + + COUNT( * ) + 78
----
-12

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - 91 + + COUNT ( * ) + 78
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8872
SELECT ALL + MIN( ALL + - 63 ) AS col2, ( 47 ) * + 90 * 17 * - 64 * - + 48 + - ( + ( 63 ) ) - - 78 AS col0
----
-63
220907535

skipif mysql # not compatible
query II rowsort label-8872
SELECT ALL + MIN ( ALL + - 63 ) AS col2, ( 47 ) * + 90 * 17 * - 64 * - + 48 + - ( + ( 63 ) ) - - 78 AS col0
----
-63
220907535

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL - 99 * + COUNT( * ) + - COUNT( * ) + + - CASE - - COUNT( 0 ) WHEN + 17 - 71 + + - COUNT( * ) THEN NULL ELSE - 48 END * - 30 + 77 AS col1
----
-1463

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL - 99 * + COUNT ( * ) + - COUNT ( * ) + + - CASE - - COUNT ( 0 ) WHEN + 17 - 71 + + - COUNT ( * ) THEN NULL ELSE - 48 END * - 30 + 77 AS col1
----
-1463

query II rowsort
SELECT ALL 78 + ( - 0 ), 2 AS col0
----
78
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT - ( + MAX( + 27 ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT - ( + MAX ( + 27 ) ) AS col2
----
-27

query I rowsort
SELECT ALL + - 40 + - 34 + - - 42 AS col1
----
-32

query I rowsort
SELECT DISTINCT + 97 + 46
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT - COUNT( * ) - - 22 + - + 6 * + 76 + - 51
----
-486

skipif mysql # not compatible
query I rowsort label-8878
SELECT - COUNT ( * ) - - 22 + - + 6 * + 76 + - 51
----
-486

query I rowsort
SELECT + CASE + 39 WHEN - 87 * - 93 * + 1 THEN NULL ELSE - 72 * + 72 END
----
-5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT + - CAST( - - ( - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8880
SELECT + - CAST ( - - ( - COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT - - 84 * + + 24
----
2016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8882
SELECT ALL - + MIN( + COALESCE ( - 0, 28 ) ) DIV + + 41 + + 88
----
88

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL - + MIN ( + COALESCE ( - 0, 28 ) ) / + + 41 + + 88
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT DISTINCT - 9 DIV - 74 * - 14 - + ( + - 72 ) * + 61 - - 46
----
4438

skipif mysql # not compatible
query I rowsort label-8883
SELECT DISTINCT - 9 / - 74 * - 14 - + ( + - 72 ) * + 61 - - 46
----
4438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8884
SELECT DISTINCT + + MIN( 31 ) / + 6 - - + CASE - - 53 WHEN - + COUNT( * ) THEN NULL WHEN + 85 * 58 THEN ( ( + + 48 ) ) END - CAST( NULL AS SIGNED ) * - + 3 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT + + MIN ( 31 ) / + 6 - - + CASE - - 53 WHEN - + COUNT ( * ) THEN NULL WHEN + 85 * 58 THEN ( ( + + 48 ) ) END - CAST ( NULL AS INTEGER ) * - + 3 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8885
SELECT ALL MAX( ALL 45 ) * + 17 * + 90 * + - 89 * + MAX( ALL - 92 ) AS col1, + 48
----
563743800
48

skipif mysql # not compatible
query II rowsort label-8885
SELECT ALL MAX ( ALL 45 ) * + 17 * + 90 * + - 89 * + MAX ( ALL - 92 ) AS col1, + 48
----
563743800
48

query I rowsort
SELECT - 38 * 56 + - 1 AS col1
----
-2129

query I rowsort
SELECT ( + + 76 ) col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8888
SELECT - 1 + 36 + 19 + - ( COUNT( * ) ) DIV + + 17 * - 6 * + 81 * - - 94 - + 15 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8888
SELECT - 1 + 36 + 19 + - ( COUNT ( * ) ) / + + 17 * - 6 * + 81 * - - 94 - + 15 AS col2
----
39

query II rowsort
SELECT + COALESCE ( + - 54, - - 25 ), - 94 AS col1
----
-54
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8890
SELECT ALL - ( - + 26 ) * + COUNT( * ) AS col2, 61 * COUNT( * ) * 82
----
26
5002

skipif mysql # not compatible
query II rowsort label-8890
SELECT ALL - ( - + 26 ) * + COUNT ( * ) AS col2, 61 * COUNT ( * ) * 82
----
26
5002

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT - 77 * + MIN( DISTINCT 95 ) col2, - COUNT( * ) col1
----
-7315
-1

skipif mysql # not compatible
query II rowsort label-8891
SELECT - 77 * + MIN ( DISTINCT 95 ) col2, - COUNT ( * ) col1
----
-7315
-1

query I rowsort
SELECT - 95 - + 82
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT + MAX( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8893
SELECT + MAX ( ALL 0 )
----
0

query I rowsort
SELECT ( - + 34 ) AS col1
----
-34

query I rowsort
SELECT - 71 + + 35
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL - COUNT( * ) * + + 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - COUNT ( * ) * + + 86 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8897
SELECT 68 * + COUNT( * ) + - 79 / - ( + 85 ) + + COUNT( DISTINCT + 26 ) + 7 - + - CAST( NULL AS DECIMAL ) * - 74 * + 97 * - COUNT( * ) * + 54 + + 55 / ( - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8897
SELECT 68 * + COUNT ( * ) + - 79 / - ( + 85 ) + + COUNT ( DISTINCT + 26 ) + 7 - + - CAST ( NULL AS REAL ) * - 74 * + 97 * - COUNT ( * ) * + 54 + + 55 / ( - 28 )
----
NULL

query II rowsort
SELECT ALL + 23 AS col0, - 62 AS col2
----
23
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT CASE - - 20 WHEN ( - CAST( + + 30 AS SIGNED ) ) THEN NULL WHEN + - 66 * - 34 THEN + - COUNT( * ) * - + 58 + 88 + 28 / - 38 - - + 61 WHEN 34 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT CASE - - 20 WHEN ( - CAST ( + + 30 AS INTEGER ) ) THEN NULL WHEN + - 66 * - 34 THEN + - COUNT ( * ) * - + 58 + 88 + 28 / - 38 - - + 61 WHEN 34 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 41 * 41 + ( - 83 )
----
-1764

query I rowsort
SELECT + 17 - + 60 - 18
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT ALL 23 DIV + - 4 col2
----
-5

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL 23 / + - 4 col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT - CAST( - - COUNT( + - 48 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8903
SELECT - CAST ( - - COUNT ( + - 48 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT 24 * + 18 * 80 + - NULLIF ( + 71, COUNT( * ) * 74 ) AS col0
----
34489

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT 24 * + 18 * 80 + - NULLIF ( + 71, COUNT ( * ) * 74 ) AS col0
----
34489

query I rowsort
SELECT + 81 + 4
----
85

query I rowsort
SELECT + 45 * 24 AS col1
----
1080

query I rowsort
SELECT DISTINCT - 50 * 87 AS col2
----
-4350

query I rowsort
SELECT + 83 + 32
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - + COUNT( - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-8909
SELECT - + COUNT ( - 38 )
----
-1

query I rowsort
SELECT ALL + COALESCE ( - 92, ( + 52 ) - 12 ) col2
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8911
SELECT ALL NULLIF ( - - 48, 24 + 62 * 4 * + + CAST( - - 23 AS DECIMAL ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL NULLIF ( - - 48, 24 + 62 * 4 * + + CAST ( - - 23 AS REAL ) ) AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8912
SELECT ALL + - COUNT( * ) + ( - + 90 ) DIV COUNT( * ) DIV - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL + - COUNT ( * ) + ( - + 90 ) / COUNT ( * ) / - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT + COALESCE ( COUNT( * ), 97, NULLIF ( + 6, - 80 ) ) + - 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-8913
SELECT + COALESCE ( COUNT ( * ), 97, NULLIF ( + 6, - 80 ) ) + - 95 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + CASE + 66 WHEN + + 78 + + COUNT( * ) + + 63 THEN + 6 ELSE NULL END + - 82 * + NULLIF ( - 41, - CASE - 67 WHEN 28 THEN + ( NULLIF ( + - ( - 92 ), - 28 / - 83 ) ) - 40 END * + CASE 95 WHEN - + 21 + + COALESCE ( 60, - COUNT( * ) ) THEN - - 88 WHEN 76 THEN NULL ELSE NULL END + + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8914
SELECT + CASE + 66 WHEN + + 78 + + COUNT ( * ) + + 63 THEN + 6 ELSE NULL END + - 82 * + NULLIF ( - 41, - CASE - 67 WHEN 28 THEN + ( NULLIF ( + - ( - 92 ), - 28 / - 83 ) ) - 40 END * + CASE 95 WHEN - + 21 + + COALESCE ( 60, - COUNT ( * ) ) THEN - - 88 WHEN 76 THEN NULL ELSE NULL END + + 5 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT - - COALESCE ( + + ( - 10 ), - COUNT( * ) * + 66 + - 4 + - - 34 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8915
SELECT - - COALESCE ( + + ( - 10 ), - COUNT ( * ) * + 66 + - 4 + - - 34 ) AS col2
----
-10

query I rowsort
SELECT ALL - 43 * + - 57
----
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT - 8 + COUNT( - 67 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8917
SELECT - 8 + COUNT ( - 67 ) AS col2
----
-7

query I rowsort
SELECT ALL - - 52 AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8919
SELECT - - 19 DIV MIN( ALL + 15 ) + - 37 + - - 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8919
SELECT - - 19 / MIN ( ALL + 15 ) + - 37 + - - 34 AS col2
----
-2

query I rowsort
SELECT ALL 96 * + - 70 AS col0
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + 35 * - + COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8921
SELECT + 35 * - + COUNT ( * ) AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT 55 DIV 18 + - - 93 + NULLIF ( - 67, - 98 + + + 59 ) + - - COUNT( - - ( + 58 ) ) + - ( 85 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8922
SELECT 55 / 18 + - - 93 + NULLIF ( - 67, - 98 + + + 59 ) + - - COUNT ( - - ( + 58 ) ) + - ( 85 ) AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8923
SELECT DISTINCT - 50 * 94 DIV - COUNT( * ) * - COUNT( * ) * - COUNT( * ) - 73
----
4627

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - 50 * 94 / - COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) - 73
----
4627

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL - COUNT( ALL + + 97 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL - COUNT ( ALL + + 97 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8925
SELECT MAX( - 53 ) * + CAST( NULL AS SIGNED ) + ( - - 46 ) + + - 44 + - ( 5 ) * - + COUNT( * ) - 1 - ( 32 ) / 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT MAX ( - 53 ) * + CAST ( NULL AS INTEGER ) + ( - - 46 ) + + - 44 + - ( 5 ) * - + COUNT ( * ) - 1 - ( 32 ) / 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL - MAX( - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL - MAX ( - 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8927
SELECT DISTINCT - CAST( 60 AS SIGNED ) + - ( + COALESCE ( + 26, + 68 ) ) DIV + 83 * - 96
----
-60

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT - CAST ( 60 AS INTEGER ) + - ( + COALESCE ( + 26, + 68 ) ) / + 83 * - 96
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8928
SELECT 61 * + MIN( 95 ) * 8 * - + COUNT( * ) + + + 19 DIV - + NULLIF ( - 58, + 90 * + - MIN( ( - 80 ) ) * + ( + + ( 83 ) ) * + 27 * - 76 + ( 39 ) ) - - 48 + - 2
----
-46314

skipif mysql # not compatible
query I rowsort label-8928
SELECT 61 * + MIN ( 95 ) * 8 * - + COUNT ( * ) + + + 19 / - + NULLIF ( - 58, + 90 * + - MIN ( ( - 80 ) ) * + ( + + ( 83 ) ) * + 27 * - 76 + ( 39 ) ) - - 48 + - 2
----
-46314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL - COUNT( * ) + + 69 * CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL - COUNT ( * ) + + 69 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 82 + - 81 col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8931
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col1, - 65 col2
----
2
-65

skipif mysql # not compatible
query II rowsort label-8931
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col1, - 65 col2
----
2
-65

query I rowsort
SELECT ALL + 64 * 23 AS col1
----
1472

query I rowsort
SELECT ALL - 9 * + 89
----
-801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8934
SELECT 51 * + CASE COUNT( * ) WHEN + + 17 THEN 54 WHEN - COUNT( * ) THEN NULL ELSE + - 98 * + 78 * + ( 89 ) - + - CAST( NULL AS SIGNED ) * + ( 83 ) * - 72 + COALESCE ( + 19, - COUNT( * ) / - 8 / + COALESCE ( + 74, - - 83 * + SUM( - + 25 ) + + + ( - 35 ) ) - 60 * + 98 ) END AS col2, + 71 AS col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-8934
SELECT 51 * + CASE COUNT ( * ) WHEN + + 17 THEN 54 WHEN - COUNT ( * ) THEN NULL ELSE + - 98 * + 78 * + ( 89 ) - + - CAST ( NULL AS INTEGER ) * + ( 83 ) * - 72 + COALESCE ( + 19, - COUNT ( * ) / - 8 / + COALESCE ( + 74, - - 83 * + SUM ( - + 25 ) + + + ( - 35 ) ) - 60 * + 98 ) END AS col2, + 71 AS col1
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT - 92 + - - COUNT( * ) * + + 89 + - 86 - - 52 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT - 92 + - - COUNT ( * ) * + + 89 + - 86 - - 52 AS col2
----
-37

query I rowsort
SELECT ALL + 37 + + 96 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT 77 * - - 56 * - COUNT( * )
----
-4312

skipif mysql # not compatible
query I rowsort label-8937
SELECT 77 * - - 56 * - COUNT ( * )
----
-4312

query I rowsort
SELECT DISTINCT - 92 * + ( + 41 )
----
-3772

query I rowsort
SELECT + NULLIF ( 60, - 22 ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL - - CASE - - ( + - 52 ) WHEN AVG ( - 40 ) THEN - - 63 ELSE NULL END + COUNT( * ) + - + COUNT( * ) * CASE 60 WHEN + - NULLIF ( NULLIF ( 1, ( + ( + MAX( ALL + 41 ) ) ) * - COALESCE ( 75, - COUNT( * ) ) - + + COALESCE ( - + 30, + CAST( + 94 AS SIGNED ) ) * 66 - 4 + - 15 / + - 86 ), - COUNT( * ) ) * 12 + 42 THEN 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - - CASE - - ( + - 52 ) WHEN AVG ( - 40 ) THEN - - 63 ELSE NULL END + COUNT ( * ) + - + COUNT ( * ) * CASE 60 WHEN + - NULLIF ( NULLIF ( 1, ( + ( + MAX ( ALL + 41 ) ) ) * - COALESCE ( 75, - COUNT ( * ) ) - + + COALESCE ( - + 30, + CAST ( + 94 AS INTEGER ) ) * 66 - 4 + - 15 / + - 86 ), - COUNT ( * ) ) * 12 + 42 THEN 61 ELSE NULL END
----
NULL

query I rowsort
SELECT + 34 + + 74
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8942
SELECT ( 57 ) + CAST( NULL AS SIGNED ) - 38 AS col0, 71
----
NULL
71

skipif mysql # not compatible
query II rowsort label-8942
SELECT ( 57 ) + CAST ( NULL AS INTEGER ) - 38 AS col0, 71
----
NULL
71

query I rowsort
SELECT 70 * - - 15 * - 87 * 48 + + 69
----
-4384731

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - 26 * ( COUNT( ALL 20 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-8944
SELECT - 26 * ( COUNT ( ALL 20 ) )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8945
SELECT DISTINCT - COALESCE ( + COUNT( * ), + 15 * - 96 / + CASE + + 24 WHEN + 56 * + 39 + - + 38 THEN - 27 * - 81 * 32 + MIN( 42 ) WHEN + - 10 THEN NULL ELSE - CAST( NULL AS DECIMAL ) + 28 + + + 44 END ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + 15 * - 96 / + CASE + + 24 WHEN + 56 * + 39 + - + 38 THEN - 27 * - 81 * 32 + MIN ( 42 ) WHEN + - 10 THEN NULL ELSE - CAST ( NULL AS REAL ) + 28 + + + 44 END ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT ALL 0 - + 94 - - - 0 * CAST( NULL AS SIGNED ) * + 32 + - CAST( + 52 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL 0 - + 94 - - - 0 * CAST ( NULL AS INTEGER ) * + 32 + - CAST ( + 52 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8947
SELECT - 84 - + 89 + - - 58 - + - 73, 13 - 78 * + + COALESCE ( + 37, - - ( + 25 ), + 81 ) * CAST( NULL AS SIGNED ) + + COUNT( * ) * - 21 AS col1
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-8947
SELECT - 84 - + 89 + - - 58 - + - 73, 13 - 78 * + + COALESCE ( + 37, - - ( + 25 ), + 81 ) * CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 21 AS col1
----
-42
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + MIN( DISTINCT 35 ) * - 10 AS col2
----
-350

skipif mysql # not compatible
query I rowsort label-8948
SELECT + MIN ( DISTINCT 35 ) * - 10 AS col2
----
-350

query II rowsort
SELECT 19 * - 30 AS col0, + 78 AS col1
----
-570
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL - COUNT( ALL 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - COUNT ( ALL 96 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT COUNT( - ( ( - 89 ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8951
SELECT COUNT ( - ( ( - 89 ) ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT 72 * - - COUNT( * ) * + 64
----
4608

skipif mysql # not compatible
query I rowsort label-8952
SELECT 72 * - - COUNT ( * ) * + 64
----
4608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8953
SELECT CAST( NULL AS SIGNED ) + - - 99 + + 20 AS col2, 57 * COUNT( * ) AS col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-8953
SELECT CAST ( NULL AS INTEGER ) + - - 99 + + 20 AS col2, 57 * COUNT ( * ) AS col0
----
NULL
57

query I rowsort
SELECT DISTINCT + 85 * + 88 + + ( 27 )
----
7507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8955
SELECT ALL + ( + 38 ) * + 16 + + 21 * + + 35 * + ( 70 ) + - + CAST( + + 19 AS SIGNED ) * + 66 AS col2
----
50804

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + ( + 38 ) * + 16 + + 21 * + + 35 * + ( 70 ) + - + CAST ( + + 19 AS INTEGER ) * + 66 AS col2
----
50804

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL NULLIF ( ( COUNT( * ) ), AVG ( DISTINCT - 66 ) * - 94 ) * 2 + NULLIF ( + 41, + + 45 ) + - - MIN( + 50 ) + + 31 + 11
----
135

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL NULLIF ( ( COUNT ( * ) ), AVG ( DISTINCT - 66 ) * - 94 ) * 2 + NULLIF ( + 41, + + 45 ) + - - MIN ( + 50 ) + + 31 + 11
----
135

query I rowsort
SELECT ( + 63 ) + + 44
----
107

query I rowsort
SELECT 87 * - 40 * - + 85 AS col0
----
295800

query I rowsort
SELECT ( 54 ) * 3 AS col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT MAX( DISTINCT + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8960
SELECT MAX ( DISTINCT + 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT COUNT( * ), - 99 * + + 91 * - + 24 AS col0
----
1
216216

skipif mysql # not compatible
query II rowsort label-8961
SELECT COUNT ( * ), - 99 * + + 91 * - + 24 AS col0
----
1
216216

query I rowsort
SELECT ALL - 5 + - 60
----
-65

query I rowsort
SELECT 67 + - + 44 * + 70
----
-3013

query I rowsort
SELECT DISTINCT 5 + + 8 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8965
SELECT ALL + COUNT( * ) DIV - 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + COUNT ( * ) / - 31 AS col1
----
0

query I rowsort
SELECT ALL - 6 - - 4 * - 96 * + 23 + 38 AS col0
----
-8800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8967
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL + 6 - 65 AS col1
----
-59

query I rowsort
SELECT - 74 * 97
----
-7178

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT ALL + 1 DIV 97 * + 64
----
0

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + 1 / 97 * + 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT + 58 * - COUNT( * ) + 15
----
-43

skipif mysql # not compatible
query I rowsort label-8971
SELECT + 58 * - COUNT ( * ) + 15
----
-43

query I rowsort
SELECT - 88 - 63 AS col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT - NULLIF ( CASE - 26 WHEN + ( 27 ) + 35 THEN + 73 * + + COUNT( * ) END, - ( + - 47 ) ) * ( + NULLIF ( + CASE + NULLIF ( + - 45, - + 91 ) WHEN + - 76 + + 23 THEN NULL ELSE 86 END, 87 * + 44 * - 31 ) ) * + 94 + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT - NULLIF ( CASE - 26 WHEN + ( 27 ) + 35 THEN + 73 * + + COUNT ( * ) END, - ( + - 47 ) ) * ( + NULLIF ( + CASE + NULLIF ( + - 45, - + 91 ) WHEN + - 76 + + 23 THEN NULL ELSE 86 END, 87 * + 44 * - 31 ) ) * + 94 + 59
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8974
SELECT + CAST( NULL AS DECIMAL ) + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT + CAST ( NULL AS REAL ) + - 12
----
NULL

query I rowsort
SELECT + - 65 * - 11
----
715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT DISTINCT + + 25 * + CAST( 28 AS SIGNED )
----
700

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT + + 25 * + CAST ( 28 AS INTEGER )
----
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8977
SELECT - - ( NULLIF ( 96, - 38 * NULLIF ( - - 48, ( - - COUNT( * ) ) + - COALESCE ( + - MAX( 38 ), - + COALESCE ( + 96, - 90 + + SUM( + 48 ), + 30 - 45 + - 10 + + NULLIF ( CAST( + + 70 AS SIGNED ), COUNT( * ) ) / - 79 * - 10 + + 98 * - 25 * - - 99 ) + + - COUNT( * ) - 61 * + 60 ) * COUNT( * ) ) * - 21 + + 91 ) ) + - 99 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8977
SELECT - - ( NULLIF ( 96, - 38 * NULLIF ( - - 48, ( - - COUNT ( * ) ) + - COALESCE ( + - MAX ( 38 ), - + COALESCE ( + 96, - 90 + + SUM ( + 48 ), + 30 - 45 + - 10 + + NULLIF ( CAST ( + + 70 AS INTEGER ), COUNT ( * ) ) / - 79 * - 10 + + 98 * - 25 * - - 99 ) + + - COUNT ( * ) - 61 * + 60 ) * COUNT ( * ) ) * - 21 + + 91 ) ) + - 99 AS col0
----
-3

query I rowsort
SELECT - 90 * 19
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT COUNT( - 98 )
----
1

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT COUNT ( - 98 )
----
1

query II rowsort
SELECT - + 56, - ( - 11 ) + - 72 AS col0
----
-56
-61

query I rowsort
SELECT + 17 + + - 41 * 32 * - 19
----
24945

query I rowsort
SELECT + + 39 * - 78 AS col0
----
-3042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8983
SELECT DISTINCT + CAST( NULL AS SIGNED ) / COUNT( * ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / COUNT ( * ) * 26
----
NULL

query I rowsort
SELECT - - 33 col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8985
SELECT 57 col2, - MIN( DISTINCT - + 8 ) AS col2
----
57
8

skipif mysql # not compatible
query II rowsort label-8985
SELECT 57 col2, - MIN ( DISTINCT - + 8 ) AS col2
----
57
8

query I rowsort
SELECT - - COALESCE ( 99, - 94 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT - - 20 + + + COUNT( + - 34 ) * + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - - 20 + + + COUNT ( + - 34 ) * + COUNT ( * ) AS col2
----
21

query I rowsort
SELECT DISTINCT + ( + 66 ) + - 20 AS col0
----
46

query I rowsort
SELECT + 48 + - 96 AS col2
----
-48

query I rowsort
SELECT ALL + 82 + 51 * - 46 * + 97 AS col2
----
-227480

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT DISTINCT CASE + 29 WHEN - NULLIF ( - 14, 68 ) THEN - 20 / + 81 WHEN - 30 * ( 61 ) THEN NULL END * + ( - COUNT( + 73 ) ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT CASE + 29 WHEN - NULLIF ( - 14, 68 ) THEN - 20 / + 81 WHEN - 30 * ( 61 ) THEN NULL END * + ( - COUNT ( + 73 ) ) + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT ALL 32 DIV + 50 + 11 * - ( 17 ) AS col0
----
-187

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL 32 / + 50 + 11 * - ( 17 ) AS col0
----
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8993
SELECT ALL CAST( NULL AS SIGNED ) * + 36 + + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL CAST ( NULL AS INTEGER ) * + 36 + + + 37
----
NULL

query I rowsort
SELECT - 12 * - + 15
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-8995
SELECT + 50 DIV + - 14 + 70 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8995
SELECT + 50 / + - 14 + 70 AS col1
----
67

query I rowsort
SELECT + 77 * - 54 * + 25
----
-103950

query I rowsort
SELECT + 62 * + - 63 + + - 58 AS col0
----
-3964

query I rowsort
SELECT ( - 71 ) col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT ALL + 47 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + 47 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT ALL COUNT( * ) * 76 - - MAX( DISTINCT + 85 ), 88 AS col2
----
161
88

skipif mysql # not compatible
query II rowsort label-9000
SELECT ALL COUNT ( * ) * 76 - - MAX ( DISTINCT + 85 ), 88 AS col2
----
161
88

query I rowsort
SELECT DISTINCT 58 * - - 66
----
3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9002
SELECT - 87 * - + 82 * - NULLIF ( - 9, - 96 * + 15 + + + 35 ) * 76 * + 44 * + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2, 52
----
0
52

skipif mysql # not compatible
query II rowsort label-9002
SELECT - 87 * - + 82 * - NULLIF ( - 9, - 96 * + 15 + + + 35 ) * 76 * + 44 * + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2, 52
----
0
52

query I rowsort
SELECT - 49 * - 21 + 60
----
1089

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT - + 86 + 51 - + - 78 * - COUNT( * )
----
-113

skipif mysql # not compatible
query I rowsort label-9004
SELECT - + 86 + 51 - + - 78 * - COUNT ( * )
----
-113

query I rowsort
SELECT + 29 * 10 AS col2
----
290

query II rowsort
SELECT + - 66 AS col1, + 21
----
-66
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9007
SELECT DISTINCT - 28, - CAST( NULL AS SIGNED ) + 45 * - MIN( 20 ) AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-9007
SELECT DISTINCT - 28, - CAST ( NULL AS INTEGER ) + 45 * - MIN ( 20 ) AS col1
----
-28
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT ALL 44 DIV 50 DIV - 15 col1
----
0

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL 44 / 50 / - 15 col1
----
0

query I rowsort
SELECT ALL + 65 * + 73 AS col0
----
4745

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT ALL - + ( + 85 ) + + 75 + - NULLIF ( + - 13, - 1 ) + + - 54 * + + 2 - 65 DIV + 43
----
-106

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL - + ( + 85 ) + + 75 + - NULLIF ( + - 13, - 1 ) + + - 54 * + + 2 - 65 / + 43
----
-106

query I rowsort
SELECT + 32 + - + 85 * + 81
----
-6853

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT - - 73 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-9012
SELECT - - 73 / 59
----
1

query I rowsort
SELECT - - 68 + - + 52 AS col1
----
16

query I rowsort
SELECT ALL + + 47 * + - 33 * - 50
----
77550

onlyif mysql # DIV for integer division: 
query II rowsort label-9015
SELECT ALL - 13 + - - 73 * 32 DIV + 91 col0, 73 AS col2
----
12
73

skipif mysql # not compatible
query II rowsort label-9015
SELECT ALL - 13 + - - 73 * 32 / + 91 col0, 73 AS col2
----
12
73

query I rowsort
SELECT DISTINCT - - 17 + - 50 col2
----
-33

query I rowsort
SELECT ALL + - 55 * 11 AS col1
----
-605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9018
SELECT - 7 + + CAST( 41 AS SIGNED ) - + - CASE + + COUNT( * ) WHEN 11 / COUNT( * ) + + - 11 THEN NULL WHEN + - AVG ( + CAST( + 35 AS SIGNED ) ) * 31 + - - 44 + + + 64 + 35 THEN COUNT( * ) WHEN + - 0 THEN - COUNT( ALL ( + 18 ) ) END / 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT - 7 + + CAST ( 41 AS INTEGER ) - + - CASE + + COUNT ( * ) WHEN 11 / COUNT ( * ) + + - 11 THEN NULL WHEN + - AVG ( + CAST ( + 35 AS INTEGER ) ) * 31 + - - 44 + + + 64 + 35 THEN COUNT ( * ) WHEN + - 0 THEN - COUNT ( ALL ( + 18 ) ) END / 11 AS col2
----
NULL

query I rowsort
SELECT ALL - 50 + + + 91 + + 96
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT ALL - COUNT( * ) + + ( - 71 ) + + 11 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - COUNT ( * ) + + ( - 71 ) + + 11 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL MIN( + - 25 ) + + - 89 * - 65
----
5760

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL MIN ( + - 25 ) + + - 89 * - 65
----
5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT ALL CAST( + + 42 AS SIGNED ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL CAST ( + + 42 AS INTEGER ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9023
SELECT DISTINCT - 23 + + + 29 AS col2, - COUNT( ALL - 24 ) / 68 + CAST( NULL AS SIGNED ) * 35 / + ( 56 ) + + + 89 * 63 col0
----
6
NULL

skipif mysql # not compatible
query II rowsort label-9023
SELECT DISTINCT - 23 + + + 29 AS col2, - COUNT ( ALL - 24 ) / 68 + CAST ( NULL AS INTEGER ) * 35 / + ( 56 ) + + + 89 * 63 col0
----
6
NULL

query I rowsort
SELECT - ( + 58 ) AS col2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9025
SELECT ALL + 5 + - - ( + 86 ) DIV - 98
----
5

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL + 5 + - - ( + 86 ) / - 98
----
5

query I rowsort
SELECT ALL - 50 * - 46
----
2300

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT - 82 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-9027
SELECT - 82 / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT + SUM( + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9028
SELECT + SUM ( + 10 )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT DISTINCT - 60 DIV - - 14 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT - 60 / - - 14 AS col1
----
-4

query I rowsort
SELECT DISTINCT - 33 * - + 19
----
627

query I rowsort
SELECT ALL + 79 * - 52 AS col1
----
-4108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT CAST( + - 80 AS SIGNED ) * + 5 / + CASE - - CAST( - ( 60 ) AS SIGNED ) WHEN + ( - - COUNT( * ) ) + 48 * 51 THEN NULL WHEN - - 51 + + + CAST( + 1 AS SIGNED ) - + NULLIF ( SUM( + 40 ), + - CAST( NULL AS SIGNED ) * - - 85 - 83 ) * + 33 THEN NULL WHEN + CAST( - 46 AS SIGNED ) THEN + CASE 17 WHEN - 86 THEN - - 91 * + 80 - - 33 WHEN + COUNT( * ) THEN NULL ELSE + 86 END + 29 * 77 ELSE NULL END * 81 + SUM( 76 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT CAST ( + - 80 AS INTEGER ) * + 5 / + CASE - - CAST ( - ( 60 ) AS INTEGER ) WHEN + ( - - COUNT ( * ) ) + 48 * 51 THEN NULL WHEN - - 51 + + + CAST ( + 1 AS INTEGER ) - + NULLIF ( SUM ( + 40 ), + - CAST ( NULL AS INTEGER ) * - - 85 - 83 ) * + 33 THEN NULL WHEN + CAST ( - 46 AS INTEGER ) THEN + CASE 17 WHEN - 86 THEN - - 91 * + 80 - - 33 WHEN + COUNT ( * ) THEN NULL ELSE + 86 END + 29 * 77 ELSE NULL END * 81 + SUM ( 76 ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT SUM( + 97 ) + - NULLIF ( 40, + + COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-9033
SELECT SUM ( + 97 ) + - NULLIF ( 40, + + COUNT ( * ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT + COUNT( - 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9034
SELECT + COUNT ( - 7 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT - COUNT( * ) * - - 16 + + 68 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9035
SELECT - COUNT ( * ) * - - 16 + + 68 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9036
SELECT DISTINCT - + COALESCE ( COUNT( DISTINCT + + CAST( - 9 AS SIGNED ) ), - - 97, 88 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT - + COALESCE ( COUNT ( DISTINCT + + CAST ( - 9 AS INTEGER ) ), - - 97, 88 ) col1
----
-1

query I rowsort
SELECT ALL 33 + - 33 AS col0
----
0

query I rowsort
SELECT ALL - 24 + 37 - - + 9 - 24
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9039
SELECT DISTINCT SUM( DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT SUM ( DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 55 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT CAST( NULL AS SIGNED ) * + 77 * - + NULLIF ( + + ( - 80 ), + 64 ) * + + 82 + + AVG ( ALL 56 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT CAST ( NULL AS INTEGER ) * + 77 * - + NULLIF ( + + ( - 80 ), + 64 ) * + + 82 + + AVG ( ALL 56 ) AS col2
----
NULL

query I rowsort
SELECT + 13 + - - 12
----
25

query I rowsort
SELECT - 52 + + - 24 + 8
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9043
SELECT ALL - 84 + 23 + ( - - 78 ) DIV - 27 - + 19
----
-82

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL - 84 + 23 + ( - - 78 ) / - 27 - + 19
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT 63 + + 33 * 63 - - 7 DIV - 35 + + 22 col0
----
2164

skipif mysql # not compatible
query I rowsort label-9044
SELECT 63 + + 33 * 63 - - 7 / - 35 + + 22 col0
----
2164

query I rowsort
SELECT ALL 36 + + 89 AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT COUNT( * ) + + - 8 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9046
SELECT COUNT ( * ) + + - 8 AS col2
----
-7

query I rowsort
SELECT 90 + + + 12
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT ALL + 19 - - 74 + 58 + 34 * + SUM( - 10 )
----
-189

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL + 19 - - 74 + 58 + 34 * + SUM ( - 10 )
----
-189

query I rowsort
SELECT 77 + 16
----
93

query I rowsort
SELECT ALL - 74 * + 72 AS col0
----
-5328

onlyif mysql # aggregate syntax: 
query II rowsort label-9051
SELECT DISTINCT - 65 * - ( 58 ), - MIN( ALL + 68 ) * + 39 AS col2
----
3770
-2652

skipif mysql # not compatible
query II rowsort label-9051
SELECT DISTINCT - 65 * - ( 58 ), - MIN ( ALL + 68 ) * + 39 AS col2
----
3770
-2652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT DISTINCT - COALESCE ( + 52, 46 + 5 DIV NULLIF ( + 47, - COALESCE ( - + AVG ( DISTINCT 2 ), + + MAX( 65 ) ) ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT - COALESCE ( + 52, 46 + 5 / NULLIF ( + 47, - COALESCE ( - + AVG ( DISTINCT 2 ), + + MAX ( 65 ) ) ) ) AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9053
SELECT DISTINCT - COALESCE ( 8, NULLIF ( + NULLIF ( 65, - COUNT( * ) * - + COUNT( * ) ), + 29 + COALESCE ( + - 31, - + MAX( + - 77 ), + 27 + + 11 ) ), + + 42 * - COUNT( * ) * 82 + 54 + - 55 + - 41 + 98, 44 DIV - + 10 + 0 - - CASE 1 WHEN + 88 THEN + COUNT( * ) WHEN + 49 + - ( 9 ) + - 98 - 79 THEN 73 * COUNT( * ) WHEN - 84 THEN ( CAST( 26 AS SIGNED ) ) ELSE NULL END * - 43 + - 30 * + 68 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT - COALESCE ( 8, NULLIF ( + NULLIF ( 65, - COUNT ( * ) * - + COUNT ( * ) ), + 29 + COALESCE ( + - 31, - + MAX ( + - 77 ), + 27 + + 11 ) ), + + 42 * - COUNT ( * ) * 82 + 54 + - 55 + - 41 + 98, 44 / - + 10 + 0 - - CASE 1 WHEN + 88 THEN + COUNT ( * ) WHEN + 49 + - ( 9 ) + - 98 - 79 THEN 73 * COUNT ( * ) WHEN - 84 THEN ( CAST ( 26 AS INTEGER ) ) ELSE NULL END * - 43 + - 30 * + 68 ) AS col0
----
-8

query II rowsort
SELECT 10 col1, + 6 AS col1
----
10
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9055
SELECT COUNT( * ) + COALESCE ( - COUNT( + + 16 ), - CAST( NULL AS SIGNED ), 67 * + - 21 * - 20 ), 55 col0
----
0
55

skipif mysql # not compatible
query II rowsort label-9055
SELECT COUNT ( * ) + COALESCE ( - COUNT ( + + 16 ), - CAST ( NULL AS INTEGER ), 67 * + - 21 * - 20 ), 55 col0
----
0
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9056
SELECT 15 DIV + + 31 col0
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT 15 / + + 31 col0
----
0

query I rowsort
SELECT 86 * + + 66
----
5676

query I rowsort
SELECT DISTINCT - 2 * - 93 AS col1
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT ALL - CAST( + 87 AS SIGNED ) * + 79 * 55 AS col0
----
-378015

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - CAST ( + 87 AS INTEGER ) * + 79 * 55 AS col0
----
-378015

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL - - CASE + + 46 WHEN 3 * + 18 + + ( 92 ) THEN + 50 * 24 WHEN + + 99 / 24 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL - - CASE + + 46 WHEN 3 * + 18 + + ( 92 ) THEN + 50 * 24 WHEN + + 99 / 24 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - - ( + - 83 ) * - + 7 + + 26
----
607

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9062
SELECT ALL - CAST( CASE 25 WHEN - COUNT( * ) THEN NULL ELSE + + 31 END AS SIGNED ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL - CAST ( CASE 25 WHEN - COUNT ( * ) THEN NULL ELSE + + 31 END AS INTEGER ) col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9063
SELECT 29 DIV + CAST( 89 AS SIGNED ) AS col2, 50 + + + 10 + + COUNT( * ) col2, 0 DIV + + 83 * - COUNT( * ) * 82
----
0
61
0

skipif mysql # not compatible
query III rowsort label-9063
SELECT 29 / + CAST ( 89 AS INTEGER ) AS col2, 50 + + + 10 + + COUNT ( * ) col2, 0 / + + 83 * - COUNT ( * ) * 82
----
0
61
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9064
SELECT ALL + 28 + 0 + - COUNT( * ) + - MAX( ALL - 49 ) * - COUNT( * ) + + 85 + + 29 + + MIN( + CAST( NULL AS SIGNED ) ) * + + 41 * + 50 * - 38 * - 45 AS col1, 57 + + 69
----
NULL
126

skipif mysql # not compatible
query II rowsort label-9064
SELECT ALL + 28 + 0 + - COUNT ( * ) + - MAX ( ALL - 49 ) * - COUNT ( * ) + + 85 + + 29 + + MIN ( + CAST ( NULL AS INTEGER ) ) * + + 41 * + 50 * - 38 * - 45 AS col1, 57 + + 69
----
NULL
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9065
SELECT DISTINCT - + 5 + + COALESCE ( - 27, + MIN( DISTINCT - 2 ) * 22 * + - 67 - + - COUNT( * ), - + CASE CAST( 81 AS DECIMAL ) WHEN - 72 THEN + + 32 WHEN 23 * + NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) / + MIN( ALL + - CAST( NULL AS SIGNED ) ) ) THEN + SUM( DISTINCT 69 ) END ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT - + 5 + + COALESCE ( - 27, + MIN ( DISTINCT - 2 ) * 22 * + - 67 - + - COUNT ( * ), - + CASE CAST ( 81 AS REAL ) WHEN - 72 THEN + + 32 WHEN 23 * + NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) / + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) ) THEN + SUM ( DISTINCT 69 ) END ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT CAST( - + 77 AS SIGNED ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9066
SELECT CAST ( - + 77 AS INTEGER ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT 39 * - 3 + + CASE + + COUNT( * ) WHEN 66 THEN + 36 END * 38 / - 64 * 5 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT 39 * - 3 + + CASE + + COUNT ( * ) WHEN 66 THEN + 36 END * 38 / - 64 * 5 + 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9068
SELECT DISTINCT - 46 + + CAST( NULL AS DECIMAL ) + - + 95 * 23 / + NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) * - CASE COUNT( 90 ) WHEN 60 THEN NULL ELSE - + 20 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT - 46 + + CAST ( NULL AS REAL ) + - + 95 * 23 / + NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) * - CASE COUNT ( 90 ) WHEN 60 THEN NULL ELSE - + 20 END ) AS col2
----
NULL

query II rowsort
SELECT ALL - 29, 79 * - 29 AS col0
----
-29
-2291

query I rowsort
SELECT ALL ( - 49 ) + + 61
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9071
SELECT 45 AS col0, COUNT( * ) * - - 78 AS col2
----
45
78

skipif mysql # not compatible
query II rowsort label-9071
SELECT 45 AS col0, COUNT ( * ) * - - 78 AS col2
----
45
78

query I rowsort
SELECT ALL + + 75 + + 66
----
141

query I rowsort
SELECT - ( - 94 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9074
SELECT ALL + 21 + + MIN( + 69 ) + + 21 DIV + + 98 * + 54 - + 8 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + 21 + + MIN ( + 69 ) + + 21 / + + 98 * + 54 - + 8 AS col1
----
82

query I rowsort
SELECT - + COALESCE ( 31, - + 85 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT DISTINCT 51 + 31 + + - 27 + - 54 + + COUNT( * ) + 29 * + CASE - 41 WHEN 12 THEN 68 ELSE NULL END / - + 80 * COALESCE ( 5, + COUNT( * ) ) + COUNT( * ) * + + 39 + 18 / + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT 51 + 31 + + - 27 + - 54 + + COUNT ( * ) + 29 * + CASE - 41 WHEN 12 THEN 68 ELSE NULL END / - + 80 * COALESCE ( 5, + COUNT ( * ) ) + COUNT ( * ) * + + 39 + 18 / + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT SUM( ALL + ( - - 25 ) ) * - COALESCE ( - + 55, 34 )
----
1375

skipif mysql # not compatible
query I rowsort label-9077
SELECT SUM ( ALL + ( - - 25 ) ) * - COALESCE ( - + 55, 34 )
----
1375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9078
SELECT ALL 83 * - - 57 * + CAST( 43 AS SIGNED ) AS col0, + 50 * 6 AS col0
----
203433
300

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL 83 * - - 57 * + CAST ( 43 AS INTEGER ) AS col0, + 50 * 6 AS col0
----
203433
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT COUNT( ALL + 97 ) + - + 18
----
-17

skipif mysql # not compatible
query I rowsort label-9079
SELECT COUNT ( ALL + 97 ) + - + 18
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL 47 * + - SUM( 32 )
----
-1504

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL 47 * + - SUM ( 32 )
----
-1504

query I rowsort
SELECT + 18 + + 21
----
39

query I rowsort
SELECT ALL + 88 * - 72 AS col2
----
-6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9083
SELECT - ( 99 ) * + COUNT( * ) + + CAST( + MIN( DISTINCT - 78 ) AS SIGNED ) + + COUNT( * ) + - + 87
----
-263

skipif mysql # not compatible
query I rowsort label-9083
SELECT - ( 99 ) * + COUNT ( * ) + + CAST ( + MIN ( DISTINCT - 78 ) AS INTEGER ) + + COUNT ( * ) + - + 87
----
-263

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT ALL 17 DIV 33 * + + 95 DIV - ( - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL 17 / 33 * + + 95 / - ( - 37 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT DISTINCT 35 DIV + 77 * + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT 35 / + 77 * + 53 AS col2
----
0

query I rowsort
SELECT - COALESCE ( + 64, + 1 ) AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT + ( + ( ( - - 81 ) ) ) DIV - 69 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9087
SELECT + ( + ( ( - - 81 ) ) ) / - 69 AS col2
----
-1

query I rowsort
SELECT - 81 * - 12 AS col1
----
972

query I rowsort
SELECT + 52 * - 48
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL - COUNT( * ) * - 79
----
79

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL - COUNT ( * ) * - 79
----
79

query I rowsort
SELECT DISTINCT + ( - + 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT + + COUNT( * ) * - 54 + - + MIN( ALL - + 19 )
----
-35

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT + + COUNT ( * ) * - 54 + - + MIN ( ALL - + 19 )
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-9093
SELECT ALL - - 81 * 41 + 94 - 55 col1, 70 + - 1 + - 54 - - 9 DIV + 63 + + 96 DIV 7 AS col1
----
3360
28

skipif mysql # not compatible
query II rowsort label-9093
SELECT ALL - - 81 * 41 + 94 - 55 col1, 70 + - 1 + - 54 - - 9 / + 63 + + 96 / 7 AS col1
----
3360
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL - 1 * - 38 - + - 98 * + COUNT( * ) + 54 * - COUNT( * ) * 15 + - - COUNT( * ) - + 34
----
-707

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - 1 * - 38 - + - 98 * + COUNT ( * ) + 54 * - COUNT ( * ) * 15 + - - COUNT ( * ) - + 34
----
-707

query I rowsort
SELECT DISTINCT + ( + 0 ) * - 12 + - 7
----
-7

query I rowsort
SELECT - CASE - ( - 62 ) WHEN 79 THEN NULLIF ( 8, - 95 ) END * - ( 80 ) + - 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL + 22 * - 77 + 9 + - COUNT( * )
----
-1686

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + 22 * - 77 + 9 + - COUNT ( * )
----
-1686

query I rowsort
SELECT - 98 + 8 AS col1
----
-90

query I rowsort
SELECT - - 86 + - 88
----
-2

query I rowsort
SELECT - + 11 + 91 col0
----
80

query I rowsort
SELECT 36 * CASE 68 WHEN + AVG ( ALL + 62 ) THEN - 37 WHEN - - 25 THEN NULL ELSE NULL END + - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL + + CASE - SUM( ALL + ( - 28 ) ) WHEN 13 THEN + 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + + CASE - SUM ( ALL + ( - 28 ) ) WHEN 13 THEN + 49 ELSE NULL END
----
NULL

query I rowsort
SELECT - + 61 + + 8 AS col2
----
-53

query I rowsort
SELECT ALL - 78 * - NULLIF ( - - 7, + 83 - + ( + 70 ) * 54 ) + - 32 * - 36 + + - 99 + 59 + - - 95
----
1753

query I rowsort
SELECT - 57 * 31
----
-1767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT - - ( 58 ) + - - CAST( 48 AS SIGNED ) + - NULLIF ( - CAST( NULL AS SIGNED ), + 71 * NULLIF ( 42, + 98 * COUNT( * ) + + 28 + - + 36 + - 77 - + + 92 ) * - - 86 - MAX( ALL 41 ) + - 52 ) * - + 48 + - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT - - ( 58 ) + - - CAST ( 48 AS INTEGER ) + - NULLIF ( - CAST ( NULL AS INTEGER ), + 71 * NULLIF ( 42, + 98 * COUNT ( * ) + + 28 + - + 36 + - 77 - + + 92 ) * - - 86 - MAX ( ALL 41 ) + - 52 ) * - + 48 + - - 91
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9107
SELECT ALL + - COALESCE ( - COALESCE ( 56, - - CAST( - 99 AS SIGNED ) * - 18 DIV 53 ), - + 64, + 67 DIV - 86 * + 48 + + COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL + - COALESCE ( - COALESCE ( 56, - - CAST ( - 99 AS INTEGER ) * - 18 / 53 ), - + 64, + 67 / - 86 * + 48 + + COUNT ( * ) )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9108
SELECT - - 84 * 47 * + 29 * 26, COUNT( * ) * 6 AS col0
----
2976792
6

skipif mysql # not compatible
query II rowsort label-9108
SELECT - - 84 * 47 * + 29 * 26, COUNT ( * ) * 6 AS col0
----
2976792
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + + 79 * COUNT( * ) + + 17 * - - CASE + 23 WHEN + + 40 - - COUNT( * ) + - - 70 + - 30 + + 12 * - 45 * - - 15 * - 53 * 49 THEN - - 33 / + 23 ELSE NULL END * + - 79 + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT + + 79 * COUNT ( * ) + + 17 * - - CASE + 23 WHEN + + 40 - - COUNT ( * ) + - - 70 + - 30 + + 12 * - 45 * - - 15 * - 53 * 49 THEN - - 33 / + 23 ELSE NULL END * + - 79 + + 76
----
NULL

query I rowsort
SELECT - 66 * 93 AS col1
----
-6138

query II rowsort
SELECT - COALESCE ( 18, + + COALESCE ( 89, 49 * + 65 * 15 ) * + 99 ) AS col1, 22 AS col0
----
-18
22

query I rowsort
SELECT + 30 + 72 AS col2
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9113
SELECT ALL COUNT( * ) DIV + + 2 col2
----
0

skipif mysql # not compatible
query I rowsort label-9113
SELECT ALL COUNT ( * ) / + + 2 col2
----
0

query I rowsort
SELECT DISTINCT ( - 23 ) AS col0
----
-23

query I rowsort
SELECT - COALESCE ( + 79, - 40 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL 30 * ( + CASE - - 11 WHEN + 92 THEN - + 81 WHEN CASE - 1 WHEN + 55 + MIN( + + 4 ) * 98 * COUNT( + ( 93 ) ) + - 25 * - - COUNT( ALL + 71 ) THEN + 79 ELSE NULL END + + - 65 THEN + 13 WHEN + - 63 / 93 - + 34 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL 30 * ( + CASE - - 11 WHEN + 92 THEN - + 81 WHEN CASE - 1 WHEN + 55 + MIN ( + + 4 ) * 98 * COUNT ( + ( 93 ) ) + - 25 * - - COUNT ( ALL + 71 ) THEN + 79 ELSE NULL END + + - 65 THEN + 13 WHEN + - 63 / 93 - + 34 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT ALL CAST( - 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL CAST ( - 50 AS INTEGER )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT - COALESCE ( + + 23, MIN( DISTINCT 59 ), - - COUNT( * ) ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-9118
SELECT - COALESCE ( + + 23, MIN ( DISTINCT 59 ), - - COUNT ( * ) ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9119
SELECT ALL 76 * MIN( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL 76 * MIN ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL 94 * + 31 * + + 69 AS col0
----
201066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9121
SELECT + 64 + + + NULLIF ( + + 18, + + 80 * + + CAST( COUNT( * ) AS SIGNED ) * + 69 + 56 + 71 * - + 23 )
----
82

skipif mysql # not compatible
query I rowsort label-9121
SELECT + 64 + + + NULLIF ( + + 18, + + 80 * + + CAST ( COUNT ( * ) AS INTEGER ) * + 69 + 56 + 71 * - + 23 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9122
SELECT - COALESCE ( - MAX( DISTINCT - 72 ), - 90 DIV + - 78 * + + 19 )
----
-72

skipif mysql # not compatible
query I rowsort label-9122
SELECT - COALESCE ( - MAX ( DISTINCT - 72 ), - 90 / + - 78 * + + 19 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9123
SELECT + 40 + ( + CAST( 24 AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-9123
SELECT + 40 + ( + CAST ( 24 AS INTEGER ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT - 58 * COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9124
SELECT - 58 * COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + 69 + - - 61 * COUNT( * ) * - - COUNT( * ) col2
----
130

skipif mysql # not compatible
query I rowsort label-9125
SELECT + 69 + - - 61 * COUNT ( * ) * - - COUNT ( * ) col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT DISTINCT 75 * COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT 75 * COUNT ( * ) AS col1
----
75

query I rowsort
SELECT + 22 + - 44
----
-22

query I rowsort
SELECT ALL COALESCE ( + 28, 73 ) + - 34
----
-6

query I rowsort
SELECT DISTINCT + 39 * 18
----
702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT ALL + ( 84 ) DIV - CASE + + 24 WHEN + COUNT( * ) THEN 94 DIV - 43 - 14 * + COUNT( * ) ELSE - - 26 + - COALESCE ( - ( + + COUNT( * ) ), + ( 47 ) ) + - 22 * + COUNT( * ) END + - 86
----
-102

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL + ( 84 ) / - CASE + + 24 WHEN + COUNT ( * ) THEN 94 / - 43 - 14 * + COUNT ( * ) ELSE - - 26 + - COALESCE ( - ( + + COUNT ( * ) ), + ( 47 ) ) + - 22 * + COUNT ( * ) END + - 86
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT + COALESCE ( + + 9, + + 27, + - CASE 71 WHEN 99 THEN + 30 * + - 69 * + - 14 ELSE NULL END + + COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT + COALESCE ( + + 9, + + 27, + - CASE 71 WHEN 99 THEN + 30 * + - 69 * + - 14 ELSE NULL END + + COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9132
SELECT ALL CASE + 42 WHEN + 65 * - COUNT( * ) THEN NULL WHEN 16 - + ( + 17 ) THEN - + 99 + 22 ELSE + 75 END DIV 35 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL CASE + 42 WHEN + 65 * - COUNT ( * ) THEN NULL WHEN 16 - + ( + 17 ) THEN - + 99 + 22 ELSE + 75 END / 35 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT + 69 DIV 18 - + 41 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9133
SELECT + 69 / 18 - + 41 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9134
SELECT + + COUNT( * ) AS col2, - 28 * - 26 + + 97 AS col0
----
1
825

skipif mysql # not compatible
query II rowsort label-9134
SELECT + + COUNT ( * ) AS col2, - 28 * - 26 + + 97 AS col0
----
1
825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9135
SELECT ALL + 61 / - MAX( ALL - CASE - 10 WHEN + + 17 * + + CAST( - + 67 AS SIGNED ) * 56 THEN NULL ELSE 89 * - CASE - - 95 WHEN 88 THEN - - 44 END END ) + + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL + 61 / - MAX ( ALL - CASE - 10 WHEN + + 17 * + + CAST ( - + 67 AS INTEGER ) * 56 THEN NULL ELSE 89 * - CASE - - 95 WHEN 88 THEN - - 44 END END ) + + 29 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT + - CAST( + - 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-9136
SELECT + - CAST ( + - 69 AS INTEGER )
----
69

query I rowsort
SELECT 51 * - 8 + 46
----
-362

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9138
SELECT ALL - 53 / - 41 * - CASE - 3 WHEN + 62 * + + 99 THEN NULL ELSE + - 56 + - 87 + - COUNT( * ) * + + ( + 83 ) + 38 / - CAST( NULL AS DECIMAL ) END * + - COUNT( 62 ) + - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL - 53 / - 41 * - CASE - 3 WHEN + 62 * + + 99 THEN NULL ELSE + - 56 + - 87 + - COUNT ( * ) * + + ( + 83 ) + 38 / - CAST ( NULL AS REAL ) END * + - COUNT ( 62 ) + - ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9139
SELECT ALL + - MIN( DISTINCT - + 29 ) DIV + 12 - + COUNT( * ) + - - 28 + - 98 * 98 + - 15
----
-9590

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + - MIN ( DISTINCT - + 29 ) / + 12 - + COUNT ( * ) + - - 28 + - 98 * 98 + - 15
----
-9590

query I rowsort
SELECT ALL + + ( + - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT + COUNT( + + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT + COUNT ( + + 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT - COUNT( * ) * + + 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT - COUNT ( * ) * + + 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT + + SUM( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT + + SUM ( DISTINCT 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT 58 * + - 41 - + + MIN( DISTINCT 59 ) AS col1
----
-2437

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT 58 * + - 41 - + + MIN ( DISTINCT 59 ) AS col1
----
-2437

query I rowsort
SELECT - + 39 * 51
----
-1989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9146
SELECT + 91 * - MIN( ALL - COALESCE ( - 56, - - 13 DIV + 19 DIV + 51 DIV + ( - - 56 ) * + 8 + + + 14 ) ) AS col2
----
-5096

skipif mysql # not compatible
query I rowsort label-9146
SELECT + 91 * - MIN ( ALL - COALESCE ( - 56, - - 13 / + 19 / + 51 / + ( - - 56 ) * + 8 + + + 14 ) ) AS col2
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT + ( - MAX( DISTINCT 87 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-9147
SELECT + ( - MAX ( DISTINCT 87 ) )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9148
SELECT ALL - + ( + + CAST( 24 AS SIGNED ) ) AS col1, 21 col1
----
-24
21

skipif mysql # not compatible
query II rowsort label-9148
SELECT ALL - + ( + + CAST ( 24 AS INTEGER ) ) AS col1, 21 col1
----
-24
21

query I rowsort
SELECT DISTINCT - NULLIF ( 88, - 21 )
----
-88

query II rowsort
SELECT 26 AS col1, 16 + + 74
----
26
90

query I rowsort
SELECT 70 + + 40 * + 50 * + 41
----
82070

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT 77 DIV 58 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9152
SELECT 77 / 58 AS col1
----
1

query II rowsort
SELECT 80 + - - 66 * + 19 + 88, - ( - 9 ) AS col2
----
1422
9

query I rowsort
SELECT 86 * + 67
----
5762

onlyif mysql # aggregate syntax: 
query II rowsort label-9155
SELECT - 60, + MIN( DISTINCT - 44 ) AS col2
----
-60
-44

skipif mysql # not compatible
query II rowsort label-9155
SELECT - 60, + MIN ( DISTINCT - 44 ) AS col2
----
-60
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9156
SELECT DISTINCT 30 AS col2, 7 DIV COUNT( * )
----
30
7

skipif mysql # not compatible
query II rowsort label-9156
SELECT DISTINCT 30 AS col2, 7 / COUNT ( * )
----
30
7

query II rowsort
SELECT ALL 10 + - 1 * - 6 + + + 12 - - + 82 * 78 AS col0, + 84 + + 82 AS col2
----
6424
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9158
SELECT ( - 62 ) * CAST( NULL AS SIGNED ) / ( - COUNT( * ) ) + - COUNT( * ) + COUNT( * ) * + NULLIF ( - 61, MIN( ALL + 0 ) + + MIN( ALL 41 ) * 62 ) / - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT ( - 62 ) * CAST ( NULL AS INTEGER ) / ( - COUNT ( * ) ) + - COUNT ( * ) + COUNT ( * ) * + NULLIF ( - 61, MIN ( ALL + 0 ) + + MIN ( ALL 41 ) * 62 ) / - 31
----
NULL

query I rowsort
SELECT DISTINCT ( + - 13 ) * - 97 - + 17 AS col0
----
1244

query I rowsort
SELECT - + ( + 37 ) AS col0
----
-37

query I rowsort
SELECT + 27 + 72 * 92
----
6651

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT 45 - + + CASE + + NULLIF ( - + 21, + MAX( + 59 ) ) WHEN 42 * + 5 THEN + 72 / - 82 END * 89 * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT 45 - + + CASE + + NULLIF ( - + 21, + MAX ( + 59 ) ) WHEN 42 * + 5 THEN + 72 / - 82 END * 89 * 96
----
NULL

query II rowsort
SELECT - 76, 50 * 34 col0
----
-76
1700

query I rowsort
SELECT + 94 * 40
----
3760

query I rowsort
SELECT ALL 64 * + 74 + + 9 AS col2
----
4745

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT - SUM( + + 52 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT - SUM ( + + 52 ) col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9167
SELECT DISTINCT 91 - CAST( NULL AS SIGNED ) AS col2, 91 * + 66 * - 30 AS col1
----
NULL
-180180

skipif mysql # not compatible
query II rowsort label-9167
SELECT DISTINCT 91 - CAST ( NULL AS INTEGER ) AS col2, 91 * + 66 * - 30 AS col1
----
NULL
-180180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9168
SELECT - 30 * 99 DIV COUNT( * )
----
-2970

skipif mysql # not compatible
query I rowsort label-9168
SELECT - 30 * 99 / COUNT ( * )
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT - 73 * + COUNT( - 7 ) + 99 * - - 87
----
8540

skipif mysql # not compatible
query I rowsort label-9169
SELECT - 73 * + COUNT ( - 7 ) + 99 * - - 87
----
8540

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT + NULLIF ( + 83, + COUNT( * ) ) - - - ( - 5 ) col0
----
88

skipif mysql # not compatible
query I rowsort label-9170
SELECT + NULLIF ( + 83, + COUNT ( * ) ) - - - ( - 5 ) col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9171
SELECT ALL + 23 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL + 23 / + - 50
----
0

query I rowsort
SELECT ALL - + 13 col2
----
-13

query I rowsort
SELECT - 5 + - 25 * + 85
----
-2130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9174
SELECT 83 DIV + 34 + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9174
SELECT 83 / + 34 + COUNT ( * ) AS col2
----
3

query II rowsort
SELECT 95, - 73 * - - 72 AS col1
----
95
-5256

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9176
SELECT - COALESCE ( + - 90, - + CAST( NULL AS DECIMAL ), - - ( + 83 ) * - COUNT( * ) + - - 91 ) + - + 89 * - 9 * - 82 - + ( + + CASE + 67 WHEN - + 98 * - 95 + + 7 - 12 THEN - 4 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT - COALESCE ( + - 90, - + CAST ( NULL AS REAL ), - - ( + 83 ) * - COUNT ( * ) + - - 91 ) + - + 89 * - 9 * - 82 - + ( + + CASE + 67 WHEN - + 98 * - 95 + + 7 - 12 THEN - 4 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT ALL + + CASE - 9 WHEN - + CAST( NULL AS SIGNED ) / + - 67 THEN + 38 END * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL + + CASE - 9 WHEN - + CAST ( NULL AS INTEGER ) / + - 67 THEN + 38 END * + 95
----
NULL

query II rowsort
SELECT ALL - - 2, + 8 AS col0
----
2
8

query I rowsort
SELECT ALL - ( + NULLIF ( 71, + - 63 ) )
----
-71

query I rowsort
SELECT 90 + - ( 49 ) * - 74 AS col0
----
3716

query I rowsort
SELECT ALL 1 * 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL COUNT( * ) * CASE - 62 WHEN - 70 THEN - 26 * + 70 + + + 78 / + 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL COUNT ( * ) * CASE - 62 WHEN - 70 THEN - 26 * + 70 + + + 78 / + 39 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT 22 * - + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-9183
SELECT 22 * - + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL + COUNT( * ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL + COUNT ( * ) + + 75
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-9185
SELECT DISTINCT - 75 DIV + 55 AS col2, 7 AS col1
----
-1
7

skipif mysql # not compatible
query II rowsort label-9185
SELECT DISTINCT - 75 / + 55 AS col2, 7 AS col1
----
-1
7

query I rowsort
SELECT 5 * 82 col2
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL - MIN( - + 92 ) * - 13 AS col2
----
-1196

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL - MIN ( - + 92 ) * - 13 AS col2
----
-1196

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT 12 DIV - 59 col2
----
0

skipif mysql # not compatible
query I rowsort label-9188
SELECT 12 / - 59 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT DISTINCT - 84 + + + 30 * + COALESCE ( 3, - MAX( DISTINCT - 10 ) ) col1
----
6

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT - 84 + + + 30 * + COALESCE ( 3, - MAX ( DISTINCT - 10 ) ) col1
----
6

query I rowsort
SELECT ALL + 30 + - + 1 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT - ( + 97 ) * - 34 + - COUNT( * )
----
3297

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT - ( + 97 ) * - 34 + - COUNT ( * )
----
3297

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT DISTINCT + COUNT( - 1 ) + + - CASE - 46 WHEN + COUNT( * ) THEN + 95 WHEN - COUNT( DISTINCT - 49 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT + COUNT ( - 1 ) + + - CASE - 46 WHEN + COUNT ( * ) THEN + 95 WHEN - COUNT ( DISTINCT - 49 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT 1 + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9193
SELECT 1 + + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL SUM( DISTINCT + ( - 84 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL SUM ( DISTINCT + ( - 84 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT COUNT( * ) + 4
----
5

skipif mysql # not compatible
query I rowsort label-9195
SELECT COUNT ( * ) + 4
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9196
SELECT DISTINCT + CAST( + + 47 AS SIGNED ) + - + 12 - + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT + CAST ( + + 47 AS INTEGER ) + - + 12 - + COUNT ( * )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT ALL - + CAST( NULL AS SIGNED ) + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - + CAST ( NULL AS INTEGER ) + 49 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9198
SELECT ALL + CAST( NULL AS SIGNED ) - - 75 * - - MIN( + 43 ) + ( + 88 ) / 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + CAST ( NULL AS INTEGER ) - - 75 * - - MIN ( + 43 ) + ( + 88 ) / 51 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT 60 + 97 DIV + 59
----
61

skipif mysql # not compatible
query I rowsort label-9199
SELECT 60 + 97 / + 59
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL + 38 * - 25 + MIN( DISTINCT + 97 ) col0
----
-853

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + 38 * - 25 + MIN ( DISTINCT + 97 ) col0
----
-853

query I rowsort
SELECT ( 93 )
----
93

query I rowsort
SELECT + 28 * + - 23 * 0 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9203
SELECT - ( + + NULLIF ( - 73, - CAST( ( - 68 ) AS DECIMAL ) ) ) + + CASE + NULLIF ( + 6, + 5 + + 90 ) WHEN - 57 / 60 + - COUNT( * ) THEN + - CASE + 31 WHEN + 82 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN 3 / 68 ELSE NULL END END - 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT - ( + + NULLIF ( - 73, - CAST ( ( - 68 ) AS REAL ) ) ) + + CASE + NULLIF ( + 6, + 5 + + 90 ) WHEN - 57 / 60 + - COUNT ( * ) THEN + - CASE + 31 WHEN + 82 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN 3 / 68 ELSE NULL END END - 35 AS col2
----
NULL

query I rowsort
SELECT ALL 7 * - - 87 AS col0
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT + 49 * + MAX( 5 ) * - COALESCE ( 67, + 92, - 38 ) + + CASE - COUNT( * ) WHEN COUNT( * ) THEN - 61 * + 81 + - - COUNT( + 34 ) END + 48 + - 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT + 49 * + MAX ( 5 ) * - COALESCE ( 67, + 92, - 38 ) + + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - 61 * + 81 + - - COUNT ( + 34 ) END + 48 + - 31 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 44 * + CASE + 79 WHEN + - 69 THEN - 79 * - 81 / 72 WHEN 87 THEN 19 WHEN + - 38 - + - 67 THEN NULL END * - 53 + + + 91 + ( - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9207
SELECT + 94 * COUNT( * ), ( - 82 ) AS col1
----
94
-82

skipif mysql # not compatible
query II rowsort label-9207
SELECT + 94 * COUNT ( * ), ( - 82 ) AS col1
----
94
-82

query I rowsort
SELECT DISTINCT - - 12 * + ( 22 )
----
264

onlyif mysql # aggregate syntax: 
query II rowsort label-9209
SELECT + - 72 * - - COUNT( * ) * + 6, 81 AS col1
----
-432
81

skipif mysql # not compatible
query II rowsort label-9209
SELECT + - 72 * - - COUNT ( * ) * + 6, 81 AS col1
----
-432
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT ALL 78 * - - 61 * 4 + - 0 DIV - + NULLIF ( 78, - ( ( 51 ) ) ) + - 21 AS col1
----
19011

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL 78 * - - 61 * 4 + - 0 / - + NULLIF ( 78, - ( ( 51 ) ) ) + - 21 AS col1
----
19011

query I rowsort
SELECT + CASE + 98 WHEN + 71 * - AVG ( ALL + 38 ) + AVG ( 80 ) * + 31 / + 78 THEN + 53 + - ( - 95 ) * - 63 * - + 67 + + 27 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9212
SELECT + CAST( NULL AS SIGNED ) * - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + CAST ( NULL AS INTEGER ) * - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT + MAX( ALL + 61 ) * COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9213
SELECT + MAX ( ALL + 61 ) * COUNT ( * ) AS col2
----
61

query I rowsort
SELECT + 65 * - + 35 AS col2
----
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT MIN( DISTINCT + - 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-9215
SELECT MIN ( DISTINCT + - 44 ) AS col1
----
-44

query I rowsort
SELECT + COALESCE ( + 14, + 21, 94 ) AS col2
----
14

query I rowsort
SELECT ALL 64 * + 97
----
6208

query I rowsort
SELECT DISTINCT 76 + + 12 - + 35 + - 33 * 30 + - - 61
----
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT ALL + MIN( - - 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL + MIN ( - - 9 ) AS col2
----
9

query I rowsort
SELECT DISTINCT 52 + 18 * + - 89 AS col2
----
-1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9221
SELECT DISTINCT + NULLIF ( + MAX( - + CAST( - 52 AS SIGNED ) ), + - 45 * - - 19 + + 20 * SUM( ALL + + 22 ) + + + COALESCE ( - 38, + 49, - CAST( - - AVG ( - - 76 ) AS DECIMAL ) + + + 41 + + + 92 ) * - 19 - + - 38 + + 9 ) + + 84 * - 78
----
-6500

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT + NULLIF ( + MAX ( - + CAST ( - 52 AS INTEGER ) ), + - 45 * - - 19 + + 20 * SUM ( ALL + + 22 ) + + + COALESCE ( - 38, + 49, - CAST ( - - AVG ( - - 76 ) AS REAL ) + + + 41 + + + 92 ) * - 19 - + - 38 + + 9 ) + + 84 * - 78
----
-6500

query I rowsort
SELECT + 69 + + 57
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9223
SELECT - 75 * - - ( - COALESCE ( CAST( + - 62 AS SIGNED ), 50 * 17 + + CAST( NULL AS SIGNED ) + - COUNT( * ) DIV 38 * - COUNT( * ), + 64 - + + 57 + - 49, - - 0 ) )
----
-4650

skipif mysql # not compatible
query I rowsort label-9223
SELECT - 75 * - - ( - COALESCE ( CAST ( + - 62 AS INTEGER ), 50 * 17 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / 38 * - COUNT ( * ), + 64 - + + 57 + - 49, - - 0 ) )
----
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT SUM( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT SUM ( 38 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9225
SELECT + 45 + 94 DIV - COUNT( * ) + + + 21 + - COUNT( * ) * 96 + + 6 + + + COUNT( * )
----
-117

skipif mysql # not compatible
query I rowsort label-9225
SELECT + 45 + 94 / - COUNT ( * ) + + + 21 + - COUNT ( * ) * 96 + + 6 + + + COUNT ( * )
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - MAX( + 24 ) - CASE - + 78 WHEN 62 THEN - - MIN( - 39 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT - MAX ( + 24 ) - CASE - + 78 WHEN 62 THEN - - MIN ( - 39 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ALL COUNT( DISTINCT + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL COUNT ( DISTINCT + 44 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT ALL - COUNT( * ) - + - ( + - ( - - 3 ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - COUNT ( * ) - + - ( + - ( - - 3 ) ) AS col1
----
-4

query I rowsort
SELECT + 39 * - - 42 col2
----
1638

query I rowsort
SELECT ALL - 26 * + - 64 AS col0
----
1664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT DISTINCT - 22 - + 84 - - 73 + - + SUM( ( 27 ) ) * - - ( - 85 ) * - 6 * + - 41 + 35 DIV - 21 AS col2
----
564536

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT - 22 - + 84 - - 73 + - + SUM ( ( 27 ) ) * - - ( - 85 ) * - 6 * + - 41 + 35 / - 21 AS col2
----
564536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT DISTINCT - - 31 * - 11 * 52 + COUNT( + 6 ) - - COUNT( * ) DIV 55 AS col1
----
-17731

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT - - 31 * - 11 * 52 + COUNT ( + 6 ) - - COUNT ( * ) / 55 AS col1
----
-17731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9233
SELECT - + ( COUNT( - - 36 ) ) + - 23, - 94 * + 11 AS col1, 3 DIV 64 + + 15 * COUNT( * ) + + CAST( + - 95 AS SIGNED ) AS col1
----
-24
-1034
-80

skipif mysql # not compatible
query III rowsort label-9233
SELECT - + ( COUNT ( - - 36 ) ) + - 23, - 94 * + 11 AS col1, 3 / 64 + + 15 * COUNT ( * ) + + CAST ( + - 95 AS INTEGER ) AS col1
----
-24
-1034
-80

query I rowsort
SELECT ALL + 89 - + - 60 AS col1
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-9235
SELECT DISTINCT + 49 AS col2, COUNT( * ) * - 26 col2
----
49
-26

skipif mysql # not compatible
query II rowsort label-9235
SELECT DISTINCT + 49 AS col2, COUNT ( * ) * - 26 col2
----
49
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT - COUNT( - 8 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9236
SELECT - COUNT ( - 8 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT - 12 DIV + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9237
SELECT - 12 / + 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL + COUNT( + + 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL + COUNT ( + + 38 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT ALL 73, + NULLIF ( + CASE 41 WHEN - 88 / + ( 85 ) + - 72 THEN 59 END, - COUNT( * ) ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-9239
SELECT ALL 73, + NULLIF ( + CASE 41 WHEN - 88 / + ( 85 ) + - 72 THEN 59 END, - COUNT ( * ) ) AS col0
----
73
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9240
SELECT ALL + + 14 DIV + 68 col1
----
0

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL + + 14 / + 68 col1
----
0

query I rowsort
SELECT + COALESCE ( + 52, + 29 + - 64 ) AS col0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9242
SELECT ALL NULLIF ( - 98, + + 17 ) DIV - + 96 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL NULLIF ( - 98, + + 17 ) / - + 96 + COUNT ( * )
----
2

query I rowsort
SELECT ALL + - 40 AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9244
SELECT ALL - + 65 DIV CAST( 99 AS SIGNED ) + 38 + 69 * + 31 * - ( + + CAST( + 44 AS SIGNED ) ) AS col1
----
-94078

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - + 65 / CAST ( 99 AS INTEGER ) + 38 + 69 * + 31 * - ( + + CAST ( + 44 AS INTEGER ) ) AS col1
----
-94078

query I rowsort
SELECT DISTINCT - 32 * - 81
----
2592

onlyif mysql # aggregate syntax: 
query II rowsort label-9246
SELECT + COUNT( * ) AS col1, 26 AS col0
----
1
26

skipif mysql # not compatible
query II rowsort label-9246
SELECT + COUNT ( * ) AS col1, 26 AS col0
----
1
26

query I rowsort
SELECT - ( - + 93 ) + - 31
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT - NULLIF ( - MAX( + 48 ), - + 83 * + - 16 + - - 96 - - 86 * 5 ) * 61 - - + 4 * + 14 + + MIN( 37 ) col1
----
3021

skipif mysql # not compatible
query I rowsort label-9248
SELECT - NULLIF ( - MAX ( + 48 ), - + 83 * + - 16 + - - 96 - - 86 * 5 ) * 61 - - + 4 * + 14 + + MIN ( 37 ) col1
----
3021

query I rowsort
SELECT ALL + 14 * - + 88 + 82
----
-1150

query II rowsort
SELECT ( + 80 ), - 69 AS col1
----
80
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT + 41 * + 47 * - COALESCE ( + COUNT( - 50 ), - 23, + - 43 ) AS col1
----
-1927

skipif mysql # not compatible
query I rowsort label-9251
SELECT + 41 * + 47 * - COALESCE ( + COUNT ( - 50 ), - 23, + - 43 ) AS col1
----
-1927

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT - 73 * - 1 + COUNT( * ) - + COUNT( * ) * - - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9252
SELECT - 73 * - 1 + COUNT ( * ) - + COUNT ( * ) * - - COUNT ( * ) AS col2
----
73

query II rowsort
SELECT ALL + 49 * + + 1 + - ( - 53 ) AS col2, - 99 AS col0
----
102
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9254
SELECT - 70 DIV 71 * + - 29 DIV + + 46, 95 * + 86 + COUNT( * ) + - MAX( + 96 ) + 30 + - 79 col1
----
0
8026

skipif mysql # not compatible
query II rowsort label-9254
SELECT - 70 / 71 * + - 29 / + + 46, 95 * + 86 + COUNT ( * ) + - MAX ( + 96 ) + 30 + - 79 col1
----
0
8026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9255
SELECT + 75 + - 85 + + SUM( + + CAST( - + 34 AS SIGNED ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9255
SELECT + 75 + - 85 + + SUM ( + + CAST ( - + 34 AS INTEGER ) ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT - NULLIF ( - 94, COUNT( * ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-9256
SELECT - NULLIF ( - 94, COUNT ( * ) ) AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT + 39 DIV + + 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9257
SELECT + 39 / + + 32 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9258
SELECT ALL 10 * 87 * + 5 DIV + COUNT( - 13 ) AS col2
----
4350

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL 10 * 87 * + 5 / + COUNT ( - 13 ) AS col2
----
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT + 16 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-9259
SELECT + 16 * + COUNT ( * )
----
16

query I rowsort
SELECT DISTINCT + 60 * 27
----
1620

query I rowsort
SELECT + 83 * 73 + + 95 AS col0
----
6154

query I rowsort
SELECT ALL 52 * - 0 * + 10 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT + 22 + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9263
SELECT + 22 + COUNT ( * ) AS col1
----
23

query I rowsort
SELECT - + ( - + 41 ) + 99 * + - NULLIF ( 85, - - 2 / + - 52 + - 39 ) * + 71 - - 62
----
-597362

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT - - 41 + + + 97 * 44 * - COALESCE ( 69, - + COUNT( * ), 22 )
----
-294451

skipif mysql # not compatible
query I rowsort label-9265
SELECT - - 41 + + + 97 * 44 * - COALESCE ( 69, - + COUNT ( * ), 22 )
----
-294451

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + 49 * + ( - COUNT( * ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 49 * + ( - COUNT ( * ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT COUNT( * ) - MIN( 35 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-9267
SELECT COUNT ( * ) - MIN ( 35 ) AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9268
SELECT 38 + - 40 col2, - 78 - + - 50 + - 21 DIV + SUM( + + 32 ) AS col1
----
-2
-28

skipif mysql # not compatible
query II rowsort label-9268
SELECT 38 + - 40 col2, - 78 - + - 50 + - 21 / + SUM ( + + 32 ) AS col1
----
-2
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9269
SELECT ALL 69 + + - 60 AS col2, 18 * + MAX( ALL + NULLIF ( - - 27, + 62 * - 43 ) ) AS col2
----
9
486

skipif mysql # not compatible
query II rowsort label-9269
SELECT ALL 69 + + - 60 AS col2, 18 * + MAX ( ALL + NULLIF ( - - 27, + 62 * - 43 ) ) AS col2
----
9
486

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL + + SUM( 90 ) + - SUM( 69 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL + + SUM ( 90 ) + - SUM ( 69 ) col1
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT COALESCE ( - 93, + + COUNT( * ) ) * 89, 50 * 11 AS col1
----
-8277
550

skipif mysql # not compatible
query II rowsort label-9271
SELECT COALESCE ( - 93, + + COUNT ( * ) ) * 89, 50 * 11 AS col1
----
-8277
550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT - - SUM( ALL + 23 ) / + - CASE - + 16 WHEN + - SUM( 6 ) THEN - + CAST( 37 AS SIGNED ) WHEN + 53 + - COUNT( * ) + COUNT( * ) * - 27 THEN - 47 * - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) / - 55 ELSE NULL END + COUNT( 69 ) * 63 * - 39 - + SUM( DISTINCT 35 ) * + 86 * 99 / + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT - - SUM ( ALL + 23 ) / + - CASE - + 16 WHEN + - SUM ( 6 ) THEN - + CAST ( 37 AS INTEGER ) WHEN + 53 + - COUNT ( * ) + COUNT ( * ) * - 27 THEN - 47 * - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) / - 55 ELSE NULL END + COUNT ( 69 ) * 63 * - 39 - + SUM ( DISTINCT 35 ) * + 86 * 99 / + + 99
----
NULL

query I rowsort
SELECT ALL + 34 * + ( - - 21 ) AS col0
----
714

query I rowsort
SELECT + + 63 col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9275
SELECT COUNT( * ) + - CASE - - 0 WHEN - 82 - ( - - ( - + 51 ) ) + - 83 + - 23 / + - 30 THEN ( - - 59 ) WHEN + COUNT( * ) THEN 73 ELSE - COALESCE ( 6, NULLIF ( + 88, + COALESCE ( COUNT( * ), + 80 + + + COUNT( * ) ) ) ) END + CAST( NULL AS DECIMAL ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT COUNT ( * ) + - CASE - - 0 WHEN - 82 - ( - - ( - + 51 ) ) + - 83 + - 23 / + - 30 THEN ( - - 59 ) WHEN + COUNT ( * ) THEN 73 ELSE - COALESCE ( 6, NULLIF ( + 88, + COALESCE ( COUNT ( * ), + 80 + + + COUNT ( * ) ) ) ) END + CAST ( NULL AS REAL ) * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT ALL - + 82 + + COUNT( * ) * + 2
----
-80

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - + 82 + + COUNT ( * ) * + 2
----
-80

query I rowsort
SELECT 96 * + 61 * - ( + 94 )
----
-550464

query I rowsort
SELECT ALL - 70 + 65 * - 26 AS col1
----
-1760

query I rowsort
SELECT ALL - 97 + - 62 - + 65
----
-224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT ALL - COALESCE ( + 89, CAST( NULL AS SIGNED ), + 86 * 90 * + + 22 )
----
-89

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL - COALESCE ( + 89, CAST ( NULL AS INTEGER ), + 86 * 90 * + + 22 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9281
SELECT DISTINCT - CASE 34 WHEN - 28 + - - CAST( + 4 AS SIGNED ) + + CAST( + + 54 AS SIGNED ) THEN + 17 END + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT - CASE 34 WHEN - 28 + - - CAST ( + 4 AS INTEGER ) + + CAST ( + + 54 AS INTEGER ) THEN + 17 END + + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + 98 * + 91 col1
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT 21 * - 21 * + + COUNT( ALL 4 )
----
-441

skipif mysql # not compatible
query I rowsort label-9283
SELECT 21 * - 21 * + + COUNT ( ALL 4 )
----
-441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9284
SELECT DISTINCT - 25 DIV + - CASE - 68 WHEN + 19 THEN + 44 * - - 84 ELSE + NULLIF ( - 74, + 32 * + COUNT( * ) ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - 25 / + - CASE - 68 WHEN + 19 THEN + 44 * - - 84 ELSE + NULLIF ( - 74, + 32 * + COUNT ( * ) ) END AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL - COUNT( ALL 78 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL - COUNT ( ALL 78 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT 31 * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-9286
SELECT 31 * COUNT ( * )
----
31

query I rowsort
SELECT 5 - + 27 + 27 * + ( 16 ) col0
----
410

query I rowsort
SELECT 21 * + - 75
----
-1575

query I rowsort
SELECT DISTINCT + ( + 1 ) * + 19 * + 19
----
361

query I rowsort
SELECT 35 * + - 69 - 48 AS col2
----
-2463

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT COUNT( * ) - - - 22 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9291
SELECT COUNT ( * ) - - - 22 AS col0
----
-21

query I rowsort
SELECT ALL + 35 * 50
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT COUNT( * ) * 18 col0
----
18

skipif mysql # not compatible
query I rowsort label-9293
SELECT COUNT ( * ) * 18 col0
----
18

query I rowsort
SELECT 49 - 87 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT DISTINCT + COALESCE ( - 25, + - 51, + + 78 * 18 * + COALESCE ( - + 7, - 29 ) + + ( + 30 ) * + 58 ) * - 36 + + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + COALESCE ( - 25, + - 51, + + 78 * 18 * + COALESCE ( - + 7, - 29 ) + + ( + 30 ) * + 58 ) * - 36 + + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 6 + + - 48 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT CASE COUNT( * ) WHEN + 2 THEN + COUNT( * ) / 79 + 97 ELSE NULL END - + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT CASE COUNT ( * ) WHEN + 2 THEN + COUNT ( * ) / 79 + 97 ELSE NULL END - + 6 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9298
SELECT CAST( + COUNT( * ) AS SIGNED ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-9298
SELECT CAST ( + COUNT ( * ) AS INTEGER ) / - 64
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT 27 DIV 17 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9299
SELECT 27 / 17 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT + SUM( + 40 ) + 21 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + SUM ( + 40 ) + 21 AS col2
----
61

query I rowsort
SELECT ALL 30 * 77
----
2310

query I rowsort
SELECT DISTINCT + 24 + - ( - 48 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9303
SELECT DISTINCT + COUNT( * ) * 46 + - 50 + - 10 * - + 3 AS col2, + CAST( NULL AS SIGNED )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-9303
SELECT DISTINCT + COUNT ( * ) * 46 + - 50 + - 10 * - + 3 AS col2, + CAST ( NULL AS INTEGER )
----
26
NULL

query I rowsort
SELECT DISTINCT + 7 + + + 46 AS col2
----
53

query I rowsort
SELECT - + 99 col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT MAX( ALL + - 59 ) + + 32 + + COUNT( * ) + - - 24 * + 66 + + CASE - 92 WHEN - COUNT( * ) - + - 27 THEN + - 12 END - + - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT MAX ( ALL + - 59 ) + + 32 + + COUNT ( * ) + - - 24 * + 66 + + CASE - 92 WHEN - COUNT ( * ) - + - 27 THEN + - 12 END - + - 39 AS col1
----
NULL

query I rowsort
SELECT - ( 12 )
----
-12

query I rowsort
SELECT ALL NULLIF ( - + 68, - 81 ) + 13 - - 6
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT DISTINCT - MIN( + - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT - MIN ( + - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL - CASE - 50 WHEN - 11 * - AVG ( + - 32 ) * 57 + COUNT( * ) THEN NULL ELSE - ( - + 25 ) * - 75 END AS col1
----
1875

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - CASE - 50 WHEN - 11 * - AVG ( + - 32 ) * 57 + COUNT ( * ) THEN NULL ELSE - ( - + 25 ) * - 75 END AS col1
----
1875

query I rowsort
SELECT - 28 * + 7 + + 88 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9313
SELECT 38 DIV - 40 * + 46 + - - 96 + + 37 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-9313
SELECT 38 / - 40 * + 46 + - - 96 + + 37 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL + ( + 21 ) * COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + ( + 21 ) * COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT DISTINCT - MAX( DISTINCT - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT - MAX ( DISTINCT - 52 )
----
52

query I rowsort
SELECT DISTINCT - 66 * 63 - - 80 * + - 89 * - 16 AS col2
----
109762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9317
SELECT 14 + + 85 * + CAST( + 15 AS SIGNED ) * 45 col0
----
57389

skipif mysql # not compatible
query I rowsort label-9317
SELECT 14 + + 85 * + CAST ( + 15 AS INTEGER ) * 45 col0
----
57389

query I rowsort
SELECT 39 * + + 18 + + + 68 AS col2
----
770

query II rowsort
SELECT 56 * - NULLIF ( + 53, + + 45 ) AS col2, 16 AS col1
----
-2968
16

query I rowsort
SELECT 30 + - 13 AS col2
----
17

query I rowsort
SELECT 40 * - 98 + 99
----
-3821

query I rowsort
SELECT ALL - CASE - 4 WHEN 22 THEN NULL WHEN - + 31 THEN + + 37 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT - CASE - CASE + COALESCE ( - 43, + - COUNT( * ), + + 95 + - + 7 - - COUNT( * ) * - + 18 ) WHEN + SUM( DISTINCT - 49 ) THEN 89 * - - ( - 22 ) ELSE NULL END WHEN + + 20 + + - 1 THEN + 74 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT - CASE - CASE + COALESCE ( - 43, + - COUNT ( * ), + + 95 + - + 7 - - COUNT ( * ) * - + 18 ) WHEN + SUM ( DISTINCT - 49 ) THEN 89 * - - ( - 22 ) ELSE NULL END WHEN + + 20 + + - 1 THEN + 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ( + 61 ) + - 79 + COUNT( * ) + CASE - 37 WHEN + - 8 THEN - - ( - + NULLIF ( - 44, 73 ) ) * 71 ELSE NULL END + 23 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT ( + 61 ) + - 79 + COUNT ( * ) + CASE - 37 WHEN + - 8 THEN - - ( - + NULLIF ( - 44, 73 ) ) * 71 ELSE NULL END + 23 + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT - 4 * COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9325
SELECT - 4 * COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT - 74 * + - 32 + - + COALESCE ( 42, + COALESCE ( + 73, + 9 + - 46 + + + NULLIF ( - 97, + + ( + + 28 ) ), + 37 + + COUNT( * ) * - CASE - 61 WHEN 1 THEN NULL WHEN - + 84 THEN - + 25 WHEN 12 THEN NULL ELSE + + 20 END, 82 + + + 13 + 75 * - 49 ) * + ( + 69 ), - - 57 ) * + - 10
----
2788

skipif mysql # not compatible
query I rowsort label-9326
SELECT - 74 * + - 32 + - + COALESCE ( 42, + COALESCE ( + 73, + 9 + - 46 + + + NULLIF ( - 97, + + ( + + 28 ) ), + 37 + + COUNT ( * ) * - CASE - 61 WHEN 1 THEN NULL WHEN - + 84 THEN - + 25 WHEN 12 THEN NULL ELSE + + 20 END, 82 + + + 13 + 75 * - 49 ) * + ( + 69 ), - - 57 ) * + - 10
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT NULLIF ( - ( 17 ), - COUNT( * ) + - 80 ) * + 58 + + 19 * + - 44 * + 1 AS col2
----
-1822

skipif mysql # not compatible
query I rowsort label-9327
SELECT NULLIF ( - ( 17 ), - COUNT ( * ) + - 80 ) * + 58 + + 19 * + - 44 * + 1 AS col2
----
-1822

query II rowsort
SELECT - + 95 AS col1, 43
----
-95
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT ALL - - 82 + MIN( - - 54 ) col2
----
136

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL - - 82 + MIN ( - - 54 ) col2
----
136

query II rowsort
SELECT - 53, - 86 AS col0
----
-53
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT - + COUNT( - + 80 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT - + COUNT ( - + 80 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 90 + 46 * - ( - - 37 ) AS col1
----
-1792

query II rowsort
SELECT ALL - 77 AS col2, 14 * + 72 * - ( 97 )
----
-77
-97776

query I rowsort
SELECT ALL - 83 + 27 + - 67 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL + 78 + + COUNT( * ) + - 9
----
70

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL + 78 + + COUNT ( * ) + - 9
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT COUNT( DISTINCT - 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9336
SELECT COUNT ( DISTINCT - 81 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9337
SELECT + 90 + NULLIF ( + - CASE + 46 WHEN - 52 THEN + 29 * + 89 WHEN 43 THEN - + ( + COUNT( * ) ) END, + + 58 - - 96 + - COALESCE ( + 22, - SUM( 17 ) ) ) / - 8 * - 33 - - - 48 + + - 35 * - 28 + + 10 * NULLIF ( - 39, + CASE + 18 WHEN - COUNT( * ) THEN NULL WHEN + 27 THEN - - 88 ELSE NULL END * - 20 ) * - + 5 * + 50 * + - 58 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT + 90 + NULLIF ( + - CASE + 46 WHEN - 52 THEN + 29 * + 89 WHEN 43 THEN - + ( + COUNT ( * ) ) END, + + 58 - - 96 + - COALESCE ( + 22, - SUM ( 17 ) ) ) / - 8 * - 33 - - - 48 + + - 35 * - 28 + + 10 * NULLIF ( - 39, + CASE + 18 WHEN - COUNT ( * ) THEN NULL WHEN + 27 THEN - - 88 ELSE NULL END * - 20 ) * - + 5 * + 50 * + - 58 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - CASE - 45 WHEN - 44 THEN NULL WHEN - 91 THEN + 36 * + 14 END AS col0, - 12 * - 17
----
NULL
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT + 17 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT + 17 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9340
SELECT ALL - - 36 DIV COUNT( * ), + MAX( ALL + 27 ) col2
----
36
27

skipif mysql # not compatible
query II rowsort label-9340
SELECT ALL - - 36 / COUNT ( * ), + MAX ( ALL + 27 ) col2
----
36
27

query I rowsort
SELECT + + 62 + 79 AS col0
----
141

query I rowsort
SELECT DISTINCT - 51 * - 96 - + 77 AS col1
----
4819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9343
SELECT ALL ( NULLIF ( - NULLIF ( 48, + CASE 53 WHEN + 68 THEN - 14 * - COUNT( CAST( + - 36 AS SIGNED ) ) ELSE + COUNT( * ) END ), + + ( - 41 ) - - 7 ) ) * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL ( NULLIF ( - NULLIF ( 48, + CASE 53 WHEN + 68 THEN - 14 * - COUNT ( CAST ( + - 36 AS INTEGER ) ) ELSE + COUNT ( * ) END ), + + ( - 41 ) - - 7 ) ) * COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT + 83 * COALESCE ( 91, COUNT( * ) + NULLIF ( - - 77, - 50 ) + - COUNT( * ), + 56 ) AS col0
----
7553

skipif mysql # not compatible
query I rowsort label-9344
SELECT + 83 * COALESCE ( 91, COUNT ( * ) + NULLIF ( - - 77, - 50 ) + - COUNT ( * ), + 56 ) AS col0
----
7553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT ALL 88 * NULLIF ( + COUNT( * ), 74 ) * CAST( - 35 AS SIGNED ) AS col2
----
-3080

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL 88 * NULLIF ( + COUNT ( * ), 74 ) * CAST ( - 35 AS INTEGER ) AS col2
----
-3080

query I rowsort
SELECT DISTINCT ( - 36 ) - + - 39 AS col1
----
3

query I rowsort
SELECT ( + + 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT + CASE 67 WHEN + 57 - + 67 * 18 THEN NULL WHEN + 47 * 76 + - 30 * + + NULLIF ( COUNT( * ), 49 ) THEN NULL ELSE 83 END AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9348
SELECT + CASE 67 WHEN + 57 - + 67 * 18 THEN NULL WHEN + 47 * 76 + - 30 * + + NULLIF ( COUNT ( * ), 49 ) THEN NULL ELSE 83 END AS col2
----
83

query II rowsort
SELECT + 23 * - - 24 * + 46, ( 2 ) + + - 57 AS col1
----
25392
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT 44 * - SUM( DISTINCT 94 ) * - CASE - 20 WHEN + - NULLIF ( 15, - - ( - 70 ) ) THEN + 28 + + - 74 + - ( 18 ) - - + ( ( - 47 ) ) * + - ( + CAST( + + ( - 54 ) AS SIGNED ) ) END / + 38 + + ( 88 ) + NULLIF ( - 89, + 48 * 80 ) / - 18 + + - 46 - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT 44 * - SUM ( DISTINCT 94 ) * - CASE - 20 WHEN + - NULLIF ( 15, - - ( - 70 ) ) THEN + 28 + + - 74 + - ( 18 ) - - + ( ( - 47 ) ) * + - ( + CAST ( + + ( - 54 ) AS INTEGER ) ) END / + 38 + + ( 88 ) + NULLIF ( - 89, + 48 * 80 ) / - 18 + + - 46 - - 8
----
NULL

query II rowsort
SELECT DISTINCT 70 * - - 54 AS col0, - 59 AS col2
----
3780
-59

query I rowsort
SELECT ALL - 81 * - COALESCE ( - - 87, - 29 ) AS col2
----
7047

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT + 10 DIV - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT + 10 / - 46 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT + CAST( - 30 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9354
SELECT + CAST ( - 30 AS INTEGER ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT ALL + MIN( ALL + NULLIF ( + - 7, - 99 + 69 ) ) * + COUNT( * ) DIV - + 58 + - COUNT( * ) + + 88 + + + 46 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL + MIN ( ALL + NULLIF ( + - 7, - 99 + 69 ) ) * + COUNT ( * ) / - + 58 + - COUNT ( * ) + + 88 + + + 46 AS col0
----
133

query I rowsort
SELECT + 81 - + 34 col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9357
SELECT ALL 68 * - - 65 AS col0, MIN( - 57 ) AS col1
----
4420
-57

skipif mysql # not compatible
query II rowsort label-9357
SELECT ALL 68 * - - 65 AS col0, MIN ( - 57 ) AS col1
----
4420
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9358
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT COALESCE ( 39, 16 )
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9360
SELECT ALL + 79 * - 79 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + 79 * - 79 + + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT DISTINCT COUNT( * ) * 79 + 92 + + ( + 77 ) AS col1
----
248

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT COUNT ( * ) * 79 + 92 + + ( + 77 ) AS col1
----
248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9362
SELECT ALL 88 * - - NULLIF ( + 38, - 40 + + 47 ) * + - CAST( + + 11 AS SIGNED ) + + - 92 + + + 32 * - 44 + + ( 28 ) AS col1, + 95 + 31
----
-38256
126

skipif mysql # not compatible
query II rowsort label-9362
SELECT ALL 88 * - - NULLIF ( + 38, - 40 + + 47 ) * + - CAST ( + + 11 AS INTEGER ) + + - 92 + + + 32 * - 44 + + ( 28 ) AS col1, + 95 + 31
----
-38256
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT - - MIN( ALL 54 ) * ( 94 ) + 84 + - + 51 + + + COUNT( * ) AS col0
----
5110

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT - - MIN ( ALL 54 ) * ( 94 ) + 84 + - + 51 + + + COUNT ( * ) AS col0
----
5110

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT ALL + COUNT( * ) - MIN( ALL - 97 )
----
98

skipif mysql # not compatible
query I rowsort label-9364
SELECT ALL + COUNT ( * ) - MIN ( ALL - 97 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT SUM( ALL + + 12 ) AS col1, 70
----
12
70

skipif mysql # not compatible
query II rowsort label-9365
SELECT SUM ( ALL + + 12 ) AS col1, 70
----
12
70

query I rowsort
SELECT - + 66 * + 82
----
-5412

query I rowsort
SELECT DISTINCT - 55 * + - 63 * + + 32
----
110880

query II rowsort
SELECT DISTINCT - 44 * + 98 AS col2, 84
----
-4312
84

query I rowsort
SELECT - + 33 + + + 96 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9370
SELECT ALL - COUNT( * ) * + 72 AS col0, 54 - + 88 DIV - CAST( + + 53 AS SIGNED ) AS col2
----
-72
55

skipif mysql # not compatible
query II rowsort label-9370
SELECT ALL - COUNT ( * ) * + 72 AS col0, 54 - + 88 / - CAST ( + + 53 AS INTEGER ) AS col2
----
-72
55

query II rowsort
SELECT 43 AS col0, + 83
----
43
83

query II rowsort
SELECT ALL 85 AS col0, 32
----
85
32

query I rowsort
SELECT + 59 * - 70 AS col1
----
-4130

query I rowsort
SELECT - 71 + 33 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT - 64 - 96 + - COUNT( * )
----
-161

skipif mysql # not compatible
query I rowsort label-9376
SELECT - 64 - 96 + - COUNT ( * )
----
-161

query I rowsort
SELECT - 23 * 11
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT + COUNT( * ) * 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9378
SELECT + COUNT ( * ) * 1 AS col1
----
1

query I rowsort
SELECT - 41 - - + ( + 60 ) + + - 77 - 84 - + 92
----
-234

query I rowsort
SELECT - 99 * - 16 AS col2
----
1584

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9381
SELECT ALL CAST( NULL AS SIGNED ), - 96 AS col0
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-9381
SELECT ALL CAST ( NULL AS INTEGER ), - 96 AS col0
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT + CASE - 61 WHEN - 35 THEN - COUNT( * ) ELSE NULL END / + 76 - - 97 + + 63 + 46 / - - 39 - + COUNT( * ) * - + 74 - - - 63 * 41 / + + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT + CASE - 61 WHEN - 35 THEN - COUNT ( * ) ELSE NULL END / + 76 - - 97 + + 63 + 46 / - - 39 - + COUNT ( * ) * - + 74 - - - 63 * 41 / + + 37 AS col2
----
NULL

query I rowsort
SELECT ALL 29 * 58 AS col2
----
1682

query I rowsort
SELECT ALL 87 * 92 AS col1
----
8004

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9385
SELECT DISTINCT + 88 AS col2, NULLIF ( - 1, + COUNT( * ) ) DIV - + COUNT( * ) AS col1
----
88
1

skipif mysql # not compatible
query II rowsort label-9385
SELECT DISTINCT + 88 AS col2, NULLIF ( - 1, + COUNT ( * ) ) / - + COUNT ( * ) AS col1
----
88
1

query I rowsort
SELECT + 69 * - 26 AS col1
----
-1794

query I rowsort
SELECT 77 * ( 5 ) + - - 74
----
459

query I rowsort
SELECT + 87 - 40
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT ALL 93 * - ( + CAST( + + 45 AS SIGNED ) ) * - COALESCE ( - - 79, 74 * 34 + + 80 + 90 + - 42 + - 42 + + + 58 ) + 63
----
330678

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL 93 * - ( + CAST ( + + 45 AS INTEGER ) ) * - COALESCE ( - - 79, 74 * 34 + + 80 + 90 + - 42 + - 42 + + + 58 ) + 63
----
330678

query I rowsort
SELECT ALL 51 + + + 88 - + 46 * + 91 + 79 col1
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT + COALESCE ( - 29, + + 74 + - 48 + - 1 ) * SUM( DISTINCT + 6 ) + + 35 * + 17 - 45 AS col2
----
376

skipif mysql # not compatible
query I rowsort label-9391
SELECT + COALESCE ( - 29, + + 74 + - 48 + - 1 ) * SUM ( DISTINCT + 6 ) + + 35 * + 17 - 45 AS col2
----
376

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT COUNT( * ) * - 26 * - 84 + - ( - + 96 )
----
2280

skipif mysql # not compatible
query I rowsort label-9392
SELECT COUNT ( * ) * - 26 * - 84 + - ( - + 96 )
----
2280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9393
SELECT CAST( - + 89 AS SIGNED ) + ( COUNT( * ) )
----
-88

skipif mysql # not compatible
query I rowsort label-9393
SELECT CAST ( - + 89 AS INTEGER ) + ( COUNT ( * ) )
----
-88

query I rowsort
SELECT ALL 21 + - 95 AS col0
----
-74

query I rowsort
SELECT + 0 + 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT + 27 + - - COUNT( * ) * - COALESCE ( 4, + 87 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9396
SELECT + 27 + - - COUNT ( * ) * - COALESCE ( 4, + 87 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT - - MAX( - + 57 ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT - - MAX ( - + 57 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT 61 * + MIN( ALL 93 ) * - 15 + 89
----
-85006

skipif mysql # not compatible
query I rowsort label-9398
SELECT 61 * + MIN ( ALL 93 ) * - 15 + 89
----
-85006

query I rowsort
SELECT - 49 * - - 67 AS col1
----
-3283

onlyif mysql # aggregate syntax: 
query III rowsort label-9400
SELECT ALL 19 * - + 46 * - - 26 + 46, + 28 * - CASE + + MIN( + + 94 ) WHEN + 49 * 88 THEN ( + 77 ) WHEN - ( COUNT( * ) ) THEN NULL WHEN + 2 THEN - + 81 ELSE NULL END AS col0, 81 AS col2
----
-22678
NULL
81

skipif mysql # not compatible
query III rowsort label-9400
SELECT ALL 19 * - + 46 * - - 26 + 46, + 28 * - CASE + + MIN ( + + 94 ) WHEN + 49 * 88 THEN ( + 77 ) WHEN - ( COUNT ( * ) ) THEN NULL WHEN + 2 THEN - + 81 ELSE NULL END AS col0, 81 AS col2
----
-22678
NULL
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9401
SELECT 92 + - COALESCE ( + 98, - ( - 99 ) + + 94, + - COUNT( + - 55 ) / - - COUNT( * ) * COUNT( * ) + - COUNT( * ) + COUNT( 16 ), 57 - + ( - CAST( + COUNT( * ) AS SIGNED ) ) ) + 27 * + + MIN( + + CAST( 70 AS DECIMAL ) ) * - + CASE - 7 WHEN + 0 THEN NULL WHEN - 32 THEN + - 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT 92 + - COALESCE ( + 98, - ( - 99 ) + + 94, + - COUNT ( + - 55 ) / - - COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) + COUNT ( 16 ), 57 - + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) ) + 27 * + + MIN ( + + CAST ( 70 AS REAL ) ) * - + CASE - 7 WHEN + 0 THEN NULL WHEN - 32 THEN + - 40 END AS col2
----
NULL

query I rowsort
SELECT + - NULLIF ( 62, - 61 )
----
-62

query I rowsort
SELECT ALL - 17 - + 16
----
-33

query I rowsort
SELECT ALL - + 73 - + 27
----
-100

query I rowsort
SELECT 61 + 67 AS col1
----
128

query I rowsort
SELECT DISTINCT 8 * 45 AS col0
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9407
SELECT ALL + CASE - - COUNT( * ) WHEN + ( 11 ) THEN + CAST( NULL AS SIGNED ) * + COUNT( * ) * - + COUNT( DISTINCT - ( - - 2 ) ) + + 35 + - 90 + - 71 END / 10 * 77, 1 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9407
SELECT ALL + CASE - - COUNT ( * ) WHEN + ( 11 ) THEN + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + COUNT ( DISTINCT - ( - - 2 ) ) + + 35 + - 90 + - 71 END / 10 * 77, 1 AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT 7 + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-9408
SELECT 7 + + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT ( - - COUNT( + ( 28 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT ( - - COUNT ( + ( 28 ) ) )
----
1

query II rowsort
SELECT 40 + + 54 AS col2, - 4 + + ( + 16 ) AS col0
----
94
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT COUNT( * ) * 60
----
60

skipif mysql # not compatible
query I rowsort label-9411
SELECT COUNT ( * ) * 60
----
60

query I rowsort
SELECT 50 + - 39
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9413
SELECT ALL - COALESCE ( + ( 69 ), SUM( + - 38 ) * 0 * 38 DIV + - 79 * - 43 * 40 + 62 + - 12 ) * + - 50 AS col0
----
3450

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL - COALESCE ( + ( 69 ), SUM ( + - 38 ) * 0 * 38 / + - 79 * - 43 * 40 + 62 + - 12 ) * + - 50 AS col0
----
3450

onlyif mysql # aggregate syntax: 
query II rowsort label-9414
SELECT MAX( DISTINCT - - 53 ) + - + SUM( - 5 ), 62 AS col0
----
58
62

skipif mysql # not compatible
query II rowsort label-9414
SELECT MAX ( DISTINCT - - 53 ) + - + SUM ( - 5 ), 62 AS col0
----
58
62

query I rowsort
SELECT 30 + + 84 AS col2
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT ALL - 80 + + COUNT( * ) * + CAST( AVG ( ALL CASE - 9 WHEN COALESCE ( - 40, - 55 ) THEN - 74 ELSE + - 57 END ) AS SIGNED ) * 88 + + + 49
----
-5047

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL - 80 + + COUNT ( * ) * + CAST ( AVG ( ALL CASE - 9 WHEN COALESCE ( - 40, - 55 ) THEN - 74 ELSE + - 57 END ) AS INTEGER ) * 88 + + + 49
----
-5047

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9417
SELECT 40 + ( + CASE COUNT( * ) WHEN - 75 THEN + 87 WHEN + - 54 + + COALESCE ( 77, 93 * - 32 ) THEN ( - - 33 ) + 29 ELSE NULL END ) + - 78 * - CAST( - 45 AS DECIMAL ) + + 13 * + CASE + - 0 WHEN + + 47 - + COUNT( * ) - - MAX( - - 38 ) * - 32 * + - MIN( - 7 ) THEN 25 END + + 52 + 51 * + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT 40 + ( + CASE COUNT ( * ) WHEN - 75 THEN + 87 WHEN + - 54 + + COALESCE ( 77, 93 * - 32 ) THEN ( - - 33 ) + 29 ELSE NULL END ) + - 78 * - CAST ( - 45 AS REAL ) + + 13 * + CASE + - 0 WHEN + + 47 - + COUNT ( * ) - - MAX ( - - 38 ) * - 32 * + - MIN ( - 7 ) THEN 25 END + + 52 + 51 * + 4 AS col0
----
NULL

query I rowsort
SELECT ALL + 8 * - ( + 72 )
----
-576

query I rowsort
SELECT DISTINCT + 63 + - 13
----
50

query I rowsort
SELECT 59 * - - 38 * - + 90 AS col2
----
-201780

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT 30 * - + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-9421
SELECT 30 * - + COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - 18 + + CASE + + 71 WHEN + 99 THEN + 40 ELSE - MAX( ALL 31 ) * - 61 * - + 76 * SUM( DISTINCT + 73 ) END
----
-10491286

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - 18 + + CASE + + 71 WHEN + 99 THEN + 40 ELSE - MAX ( ALL 31 ) * - 61 * - + 76 * SUM ( DISTINCT + 73 ) END
----
-10491286

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9423
SELECT DISTINCT + 63 + + + MIN( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT + 63 + + + MIN ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT 49 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-9424
SELECT 49 / - 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9425
SELECT + COUNT( ALL + ( + - 22 ) ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) * + 37 + - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT + COUNT ( ALL + ( + - 22 ) ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 37 + - + 90
----
NULL

query I rowsort
SELECT ALL + 45 + + 50
----
95

query II rowsort
SELECT DISTINCT 80 + + + 16 col1, - 77
----
96
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT ALL + ( + + CAST( 34 AS SIGNED ) ) + + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL + ( + + CAST ( 34 AS INTEGER ) ) + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - COUNT( - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-9429
SELECT - COUNT ( - 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT + COUNT( * ) + + 46 * - 61 + + 32
----
-2773

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT + COUNT ( * ) + + 46 * - 61 + + 32
----
-2773

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT - 64 - 24 + 80 DIV + 85 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9431
SELECT - 64 - 24 + 80 / + 85 AS col1
----
-88

query I rowsort
SELECT ALL + 96 * - - ( + 16 )
----
1536

query II rowsort
SELECT + 47 * - 41, 85 * - - 64 AS col1
----
-1927
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL + 77 * - 0 * CASE + - 79 WHEN - - MIN( ALL - 67 ) THEN NULL ELSE 69 END * + + 12
----
0

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + 77 * - 0 * CASE + - 79 WHEN - - MIN ( ALL - 67 ) THEN NULL ELSE 69 END * + + 12
----
0

query I rowsort
SELECT + - 21 * 30 - - 90
----
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9436
SELECT ALL - - CAST( + COALESCE ( - 79, - COUNT( ALL + - 25 ), + 60 + - CAST( NULL AS SIGNED ) ) AS SIGNED ), CAST( + - 10 AS DECIMAL ) / + CAST( NULL AS SIGNED ) AS col1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-9436
SELECT ALL - - CAST ( + COALESCE ( - 79, - COUNT ( ALL + - 25 ), + 60 + - CAST ( NULL AS INTEGER ) ) AS INTEGER ), CAST ( + - 10 AS REAL ) / + CAST ( NULL AS INTEGER ) AS col1
----
-79
NULL

query I rowsort
SELECT DISTINCT 71 * 90 + - ( - CASE + + 26 WHEN + NULLIF ( + 17, + 77 ) + - 30 + 69 - - + 45 * - 69 THEN NULL WHEN + 20 THEN - 2 / 0 * - + 9 * + 17 * - 94 ELSE NULL END ) AS col2
----
NULL

query II rowsort
SELECT - 41 + - 95, + 36 col0
----
-136
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT COUNT( * ) * - - ( + + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9439
SELECT COUNT ( * ) * - - ( + + 50 ) AS col2
----
50

query I rowsort
SELECT - + ( + + 77 ) AS col2
----
-77

query I rowsort
SELECT 24 + 48 - - 73
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT 37 * + + 96 + - - NULLIF ( - COUNT( + 93 ), - 72 / - ( - 84 ) + + - 36 * 57 ) AS col2
----
3551

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT 37 * + + 96 + - - NULLIF ( - COUNT ( + 93 ), - 72 / - ( - 84 ) + + - 36 * 57 ) AS col2
----
3551

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT - COUNT( * ) + + - 53
----
-54

skipif mysql # not compatible
query I rowsort label-9443
SELECT - COUNT ( * ) + + - 53
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT CAST( NULL AS SIGNED ) * + 24 * + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT CAST ( NULL AS INTEGER ) * + 24 * + - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT 50 * - 29 * + 72 * + - 25 AS col1
----
2610000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 49 + + 11
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT COALESCE ( - - 53, ( + 7 ), - COUNT( * ) ) * COUNT( * ) * + 28 * - 45 + 80 + + 47 - - - 50 * 75
----
-70403

skipif mysql # not compatible
query I rowsort label-9448
SELECT COALESCE ( - - 53, ( + 7 ), - COUNT ( * ) ) * COUNT ( * ) * + 28 * - 45 + 80 + + 47 - - - 50 * 75
----
-70403

query I rowsort
SELECT ALL - 76 + - + 11 * - - 14 col0
----
-230

query I rowsort
SELECT ALL 76 + 60
----
136

query I rowsort
SELECT 30 + - - 42
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT - 87 * + MAX( - 18 ) AS col0
----
1566

skipif mysql # not compatible
query I rowsort label-9452
SELECT - 87 * + MAX ( - 18 ) AS col0
----
1566

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9453
SELECT + 58 + CAST( NULL AS DECIMAL ) * - 84 * AVG ( DISTINCT + - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9453
SELECT + 58 + CAST ( NULL AS REAL ) * - 84 * AVG ( DISTINCT + - 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ALL + 77 + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL + 77 + + COUNT ( * )
----
78

query I rowsort
SELECT ALL - 13 + + - 97 AS col1
----
-110

query I rowsort
SELECT + 51 + - - 75
----
126

query I rowsort
SELECT DISTINCT + 41 * - + ( 50 )
----
-2050

query I rowsort
SELECT DISTINCT + 59 * + 47
----
2773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9459
SELECT - ( - 1 ) + + COUNT( * ) * 48 * + CAST( NULL AS SIGNED ) + - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT - ( - 1 ) + + COUNT ( * ) * 48 * + CAST ( NULL AS INTEGER ) + - + 89 AS col1
----
NULL

query I rowsort
SELECT ALL + 49 * - 89 * + NULLIF ( - + 4, 16 ) - + 96
----
17348

query I rowsort
SELECT - + 6 * - + 64
----
384

onlyif mysql # DIV for integer division: 
query II rowsort label-9462
SELECT - - 31 - 11 + 40 AS col0, - 16 DIV - - ( + 52 ) AS col1
----
60
0

skipif mysql # not compatible
query II rowsort label-9462
SELECT - - 31 - 11 + 40 AS col0, - 16 / - - ( + 52 ) AS col1
----
60
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9463
SELECT - ( - - 73 ) * 39 * + + MIN( DISTINCT + - 59 ) * - + 71 - + + ( + 86 ) - + 46 + 11 DIV + 74
----
-11926215

skipif mysql # not compatible
query I rowsort label-9463
SELECT - ( - - 73 ) * 39 * + + MIN ( DISTINCT + - 59 ) * - + 71 - + + ( + 86 ) - + 46 + 11 / + 74
----
-11926215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT 81 / + - 85 * - CAST( NULL AS SIGNED ) + + - 0 - - 37 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT 81 / + - 85 * - CAST ( NULL AS INTEGER ) + + - 0 - - 37 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 15 AS col1
----
-15

query II rowsort
SELECT - 33, 68 AS col1
----
-33
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT DISTINCT + + CAST( - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT + + CAST ( - 5 AS INTEGER )
----
-5

query I rowsort
SELECT ALL - 84 * + 7
----
-588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT DISTINCT - + COALESCE ( 16, + 40, + + 68 ) DIV + + CASE - ( + - 40 ) WHEN + 23 * - + 89 + - COALESCE ( + ( + CASE - COALESCE ( 50, - 86 DIV - - 39 + - 89 + - CASE + + 85 WHEN + 44 DIV + 24 * - 1 THEN NULL ELSE - + 88 END - CASE 66 WHEN - - 68 THEN - - 92 END ) WHEN - 42 THEN NULL WHEN + 61 * + 71 + - 66 THEN 81 + + 81 END ), + - ( + ( + 65 ) ) ) THEN NULL WHEN - - 56 * COUNT( * ) + ( + - MIN( - 30 ) ) DIV 92 THEN 68 * 49 + + 79 + - NULLIF ( 8, 16 ) ELSE - 74 END + 23 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT - + COALESCE ( 16, + 40, + + 68 ) / + + CASE - ( + - 40 ) WHEN + 23 * - + 89 + - COALESCE ( + ( + CASE - COALESCE ( 50, - 86 / - - 39 + - 89 + - CASE + + 85 WHEN + 44 / + 24 * - 1 THEN NULL ELSE - + 88 END - CASE 66 WHEN - - 68 THEN - - 92 END ) WHEN - 42 THEN NULL WHEN + 61 * + 71 + - 66 THEN 81 + + 81 END ), + - ( + ( + 65 ) ) ) THEN NULL WHEN - - 56 * COUNT ( * ) + ( + - MIN ( - 30 ) ) / 92 THEN 68 * 49 + + 79 + - NULLIF ( 8, 16 ) ELSE - 74 END + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT + + SUM( ALL + 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9470
SELECT + + SUM ( ALL + 26 ) AS col0
----
26

query I rowsort
SELECT ALL + - ( - - 86 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT DISTINCT - CAST( - - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT - CAST ( - - 74 AS INTEGER )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT ALL - COUNT( * ) * + COUNT( * ) + + - COALESCE ( - + 60, 78, CASE + NULLIF ( - 88, 25 + - 96 ) WHEN - + 76 THEN - 60 * - - COUNT( * ) WHEN 21 THEN NULL END ) + - + ( - 4 )
----
63

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + + - COALESCE ( - + 60, 78, CASE + NULLIF ( - 88, 25 + - 96 ) WHEN - + 76 THEN - 60 * - - COUNT ( * ) WHEN 21 THEN NULL END ) + - + ( - 4 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT + 42 + - SUM( ALL + + COALESCE ( 14, - 10, - 19 ) ) AS col0, COUNT( * ) + + COUNT( - 99 ) AS col1
----
28
2

skipif mysql # not compatible
query II rowsort label-9474
SELECT + 42 + - SUM ( ALL + + COALESCE ( 14, - 10, - 19 ) ) AS col0, COUNT ( * ) + + COUNT ( - 99 ) AS col1
----
28
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) + - ( - 76 ) * 97 + + MIN( - 16 )
----
7356

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) + - ( - 76 ) * 97 + + MIN ( - 16 )
----
7356

query II rowsort
SELECT ALL 12 + - + 75 AS col1, + 95 + + + ( 70 )
----
-63
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + 18 + + 18 * COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9477
SELECT + 18 + + 18 * COUNT ( * ) AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT - CASE 4 WHEN + + 38 THEN - 94 WHEN 11 THEN - + CAST( + - ( - CAST( - 51 AS SIGNED ) ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT - CASE 4 WHEN + + 38 THEN - 94 WHEN 11 THEN - + CAST ( + - ( - CAST ( - 51 AS INTEGER ) ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL ( + 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9480
SELECT ALL 46 AS col2, - MIN( ALL COALESCE ( - 32, 20 * + 52 DIV 97 ) ) AS col1
----
46
32

skipif mysql # not compatible
query II rowsort label-9480
SELECT ALL 46 AS col2, - MIN ( ALL COALESCE ( - 32, 20 * + 52 / 97 ) ) AS col1
----
46
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9481
SELECT 45, CAST( NULL AS SIGNED ) - + ( + - 30 ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-9481
SELECT 45, CAST ( NULL AS INTEGER ) - + ( + - 30 ) AS col2
----
45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + MIN( - 61 ) + + 65 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9482
SELECT + MIN ( - 61 ) + + 65 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT + 64 + + + COUNT( * ) + + CAST( + 20 AS SIGNED ) * + 28 * 72 * 39 * + + 17 + 4 AS col0
----
26732229

skipif mysql # not compatible
query I rowsort label-9483
SELECT + 64 + + + COUNT ( * ) + + CAST ( + 20 AS INTEGER ) * + 28 * 72 * 39 * + + 17 + 4 AS col0
----
26732229

query I rowsort
SELECT ALL 70 + - 99
----
-29

query I rowsort
SELECT - CASE - + 44 WHEN - - 14 THEN + 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT MAX( DISTINCT - - ( - 38 ) ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT MAX ( DISTINCT - - ( - 38 ) ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9487
SELECT DISTINCT ( + CASE + 74 WHEN + CAST( NULL AS SIGNED ) THEN + 98 / - + 97 END ) - 90, + COUNT( * ) * - 69 * + - 79 AS col0
----
NULL
5451

skipif mysql # not compatible
query II rowsort label-9487
SELECT DISTINCT ( + CASE + 74 WHEN + CAST ( NULL AS INTEGER ) THEN + 98 / - + 97 END ) - 90, + COUNT ( * ) * - 69 * + - 79 AS col0
----
NULL
5451

query I rowsort
SELECT ALL 34 - + + 74 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL MAX( DISTINCT - ( ( - ( + 4 ) ) ) )
----
4

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL MAX ( DISTINCT - ( ( - ( + 4 ) ) ) )
----
4

query I rowsort
SELECT DISTINCT - 0 - - 10 + + 23 + + 88 + 30 - + ( - 86 ) * + 46 * + 39 - 63
----
154372

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9491
SELECT - CAST( NULL AS DECIMAL ) col1, + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9491
SELECT - CAST ( NULL AS REAL ) col1, + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

query I rowsort
SELECT + 98 * + 11 * COALESCE ( - 44, - ( - - 4 ) )
----
-47432

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT - 74 * - COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9493
SELECT - 74 * - COUNT ( * ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT - + 2 * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9494
SELECT - + 2 * - COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9495
SELECT - 6, + CAST( NULL AS SIGNED ) + 68 AS col1
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-9495
SELECT - 6, + CAST ( NULL AS INTEGER ) + 68 AS col1
----
-6
NULL

query I rowsort
SELECT - 16 + + 65 AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT ALL ( - 73 ) DIV - + 83 - + 96 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL ( - 73 ) / - + 83 - + 96 AS col0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT + 55 DIV - 40 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9498
SELECT + 55 / - 40 AS col1
----
-1

query II rowsort
SELECT + 56 AS col1, 5 * + + 25 AS col2
----
56
125

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL + - 66 * + + COUNT( * ) * 31
----
-2046

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL + - 66 * + + COUNT ( * ) * 31
----
-2046

query II rowsort
SELECT ALL - 39 * + 79 AS col2, - 13 + - ( - 84 ) + + 45 + + 32 AS col2
----
-3081
148

query I rowsort
SELECT - - 33 * - 60 * - 22 * + - 97
----
-4225320

query I rowsort
SELECT DISTINCT 74 * + ( - + 25 )
----
-1850

query I rowsort
SELECT ALL + ( - 9 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9505
SELECT CAST( NULL AS SIGNED ), - 40 + - ( 55 ) AS col0
----
NULL
-95

skipif mysql # not compatible
query II rowsort label-9505
SELECT CAST ( NULL AS INTEGER ), - 40 + - ( 55 ) AS col0
----
NULL
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT + - SUM( ALL - - 41 ) + - COUNT( * ) DIV 26 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-9506
SELECT + - SUM ( ALL - - 41 ) + - COUNT ( * ) / 26 AS col2
----
-41

query II rowsort
SELECT + - 5, - 3 * - 48 col0
----
-5
144

onlyif mysql # aggregate syntax: 
query II rowsort label-9508
SELECT - 78 * - 1 + + - 98 + + 11 AS col1, 11 * - COUNT( * ) * 91 AS col0
----
-9
-1001

skipif mysql # not compatible
query II rowsort label-9508
SELECT - 78 * - 1 + + - 98 + + 11 AS col1, 11 * - COUNT ( * ) * 91 AS col0
----
-9
-1001

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT COUNT( * ) AS col2, + 87 * 16 AS col0
----
1
1392

skipif mysql # not compatible
query II rowsort label-9509
SELECT COUNT ( * ) AS col2, + 87 * 16 AS col0
----
1
1392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT + + COUNT( * ) * + 50 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT + + COUNT ( * ) * + 50 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 59 * 93 AS col2
----
-5487

query I rowsort
SELECT ALL - 76 * + 98 * + + 82 + 74
----
-610662

query I rowsort
SELECT - 78 * - ( + - 84 ) - + 57 AS col0
----
-6609

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT + COALESCE ( CASE + - 32 WHEN - CASE 2 WHEN + 89 THEN + 88 / - 46 ELSE NULL END - + - NULLIF ( 97, + + 85 ) THEN NULL WHEN COALESCE ( + - 3, - 54, - 15, COUNT( * ) ) THEN + + 55 END, - - 75 ) col0
----
75

skipif mysql # not compatible
query I rowsort label-9514
SELECT + COALESCE ( CASE + - 32 WHEN - CASE 2 WHEN + 89 THEN + 88 / - 46 ELSE NULL END - + - NULLIF ( 97, + + 85 ) THEN NULL WHEN COALESCE ( + - 3, - 54, - 15, COUNT ( * ) ) THEN + + 55 END, - - 75 ) col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9515
SELECT - 77 + + NULLIF ( 8, - + 0 ) - - COUNT( * ) * - 79 DIV + 24 + COUNT( * ) * 66 + + - 59 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9515
SELECT - 77 + + NULLIF ( 8, - + 0 ) - - COUNT ( * ) * - 79 / + 24 + COUNT ( * ) * 66 + + - 59 AS col0
----
-65

query I rowsort
SELECT ALL 88 * + ( - + 33 ) * + - 63 AS col0
----
182952

query I rowsort
SELECT NULLIF ( - 74, - + 61 * - 10 * + 48 - + 48 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT ALL - 92 * - COALESCE ( COALESCE ( COUNT( ALL - 72 ), NULLIF ( + 54, + 98 ) ), + 58, 29 + + 14 ) + - - 44 * 53
----
2424

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL - 92 * - COALESCE ( COALESCE ( COUNT ( ALL - 72 ), NULLIF ( + 54, + 98 ) ), + 58, 29 + + 14 ) + - - 44 * 53
----
2424

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT 30 * - + COALESCE ( + - COUNT( * ), - 60 ) * - + 51
----
-1530

skipif mysql # not compatible
query I rowsort label-9519
SELECT 30 * - + COALESCE ( + - COUNT ( * ), - 60 ) * - + 51
----
-1530

onlyif mysql # DIV for integer division: 
query II rowsort label-9520
SELECT 33 + + + ( + + 92 ) * 83 DIV + NULLIF ( 83, - - 73 ) AS col1, 76 * 3 AS col0
----
125
228

skipif mysql # not compatible
query II rowsort label-9520
SELECT 33 + + + ( + + 92 ) * 83 / + NULLIF ( 83, - - 73 ) AS col1, 76 * 3 AS col0
----
125
228

query I rowsort
SELECT ALL + 59 * - 12 AS col2
----
-708

query I rowsort
SELECT ALL - 59 * + - 59
----
3481

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9523
SELECT 58 * + 36, ( + 52 ) * CAST( 54 AS SIGNED ) AS col0
----
2088
2808

skipif mysql # not compatible
query II rowsort label-9523
SELECT 58 * + 36, ( + 52 ) * CAST ( 54 AS INTEGER ) AS col0
----
2088
2808

query I rowsort
SELECT 93 * + - 65 * 52 AS col1
----
-314340

query I rowsort
SELECT 64 + 66 * 78
----
5212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9526
SELECT MIN( CAST( NULL AS SIGNED ) ) + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT MIN ( CAST ( NULL AS INTEGER ) ) + - 17
----
NULL

query I rowsort
SELECT ALL 74 * - 13 * - ( + 70 ) col0
----
67340

query I rowsort
SELECT - 44 + - ( - - 29 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT + 53 + + + 9 + - - COUNT( * ) + 79 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-9529
SELECT + 53 + + + 9 + - - COUNT ( * ) + 79 AS col2
----
142

query I rowsort
SELECT ALL NULLIF ( + 49, 46 - + + 87 )
----
49

query I rowsort
SELECT ALL - 90 * - 53 * 85 + 49
----
405499

query I rowsort
SELECT ALL 63 + + 86 AS col0
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - 43 * + COUNT( * ) + + 27 * 4 + 41 + - COUNT( DISTINCT + 17 ) * - NULLIF ( - 9, + + NULLIF ( + 71, + - 41 * 94 * + 26 ) )
----
97

skipif mysql # not compatible
query I rowsort label-9533
SELECT - 43 * + COUNT ( * ) + + 27 * 4 + 41 + - COUNT ( DISTINCT + 17 ) * - NULLIF ( - 9, + + NULLIF ( + 71, + - 41 * 94 * + 26 ) )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9534
SELECT - ( - - 39 ) + + 46 DIV - 56 * + 29 * + 88
----
-39

skipif mysql # not compatible
query I rowsort label-9534
SELECT - ( - - 39 ) + + 46 / - 56 * + 29 * + 88
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9535
SELECT ALL + 7 DIV + MAX( ALL + + 51 ), + 5 * + - 12 + + CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9535
SELECT ALL + 7 / + MAX ( ALL + + 51 ), + 5 * + - 12 + + CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9536
SELECT 61 / - + CASE 75 WHEN + + 4 + - 65 - + NULLIF ( 63, 12 ) THEN NULL ELSE CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT 61 / - + CASE 75 WHEN + + 4 + - 65 - + NULLIF ( 63, 12 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) END col1
----
NULL

query I rowsort
SELECT 38 * 20 + 17 AS col0
----
777

query I rowsort
SELECT ALL - 83 + ( + + 44 ) * + 74 / - CASE 63 WHEN - 68 / - + 47 + - + 64 THEN 63 + 77 / 31 * 22 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT - CASE - ( - 10 ) WHEN - 48 - - 38 THEN NULL WHEN 4 THEN + 36 WHEN + COUNT( * ) * + 20 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT - CASE - ( - 10 ) WHEN - 48 - - 38 THEN NULL WHEN 4 THEN + 36 WHEN + COUNT ( * ) * + 20 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9540
SELECT - 51 * - 39 + - NULLIF ( 47, + 81 ) + + ( - 11 ) + - 66 * 40 * 0 DIV + - 70 DIV - 49 AS col2
----
1931

skipif mysql # not compatible
query I rowsort label-9540
SELECT - 51 * - 39 + - NULLIF ( 47, + 81 ) + + ( - 11 ) + - 66 * 40 * 0 / + - 70 / - 49 AS col2
----
1931

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + NULLIF ( COUNT( * ), + 21 ) * + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9541
SELECT + NULLIF ( COUNT ( * ), + 21 ) * + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL 59 + - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL 59 + - COUNT ( * ) AS col1
----
58

query I rowsort
SELECT 24 * - 71 * + 24
----
-40896

onlyif mysql # aggregate syntax: 
query III rowsort label-9544
SELECT - SUM( DISTINCT 6 ) * - - COUNT( * ) * - + 1 * + 44 + 12 + - - 54 * 19 * + + 87, - 27 + - 10 AS col2, 10 col1
----
89538
-37
10

skipif mysql # not compatible
query III rowsort label-9544
SELECT - SUM ( DISTINCT 6 ) * - - COUNT ( * ) * - + 1 * + 44 + 12 + - - 54 * 19 * + + 87, - 27 + - 10 AS col2, 10 col1
----
89538
-37
10

query II rowsort
SELECT 27 AS col0, ( - + 64 ) * - + 50 AS col1
----
27
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT 63 * - SUM( - + 92 ) * - + 22 + + - 47
----
-127559

skipif mysql # not compatible
query I rowsort label-9546
SELECT 63 * - SUM ( - + 92 ) * - + 22 + + - 47
----
-127559

query I rowsort
SELECT DISTINCT - ( - + 84 ) col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT + 48 * 36 * - 31 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT + 48 * 36 * - 31 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 91 AS col1, - 43 AS col2
----
-91
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9550
SELECT 68 DIV + ( + COALESCE ( + COUNT( * ), + - 1 * - + 20 + - - 61 ) )
----
68

skipif mysql # not compatible
query I rowsort label-9550
SELECT 68 / + ( + COALESCE ( + COUNT ( * ), + - 1 * - + 20 + - - 61 ) )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9551
SELECT DISTINCT + 82 - + 99 + + CAST( + 73 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT + 82 - + 99 + + CAST ( + 73 AS INTEGER ) AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9552
SELECT 84 + - + 74 DIV + 9 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9552
SELECT 84 + - + 74 / + 9 AS col2
----
76

query II rowsort
SELECT ALL 11, - 16 col2
----
11
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL + 0 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + 0 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 94 * - 48 AS col1
----
-4512

query II rowsort
SELECT 8 AS col1, 86 col2
----
8
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9557
SELECT COUNT( * ) + + + COUNT( * ) + - 11 AS col2, 92 + 66 AS col1
----
-9
158

skipif mysql # not compatible
query II rowsort label-9557
SELECT COUNT ( * ) + + + COUNT ( * ) + - 11 AS col2, 92 + 66 AS col1
----
-9
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT + SUM( DISTINCT 75 ) * - 95 - 5 - - 47 col2
----
-7083

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT + SUM ( DISTINCT 75 ) * - 95 - 5 - - 47 col2
----
-7083

query I rowsort
SELECT ALL - 28 * - 79
----
2212

query I rowsort
SELECT 9 + - - 68 - + 77 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9561
SELECT NULLIF ( + + 84, 89 * - COALESCE ( + 6, + + 81 * + 24 ) * 66 + - 73 + - CAST( + 55 AS SIGNED ) + COUNT( * ) + - 53 + + + 17 + - COUNT( * ) ) + - 62
----
22

skipif mysql # not compatible
query I rowsort label-9561
SELECT NULLIF ( + + 84, 89 * - COALESCE ( + 6, + + 81 * + 24 ) * 66 + - 73 + - CAST ( + 55 AS INTEGER ) + COUNT ( * ) + - 53 + + + 17 + - COUNT ( * ) ) + - 62
----
22

query II rowsort
SELECT DISTINCT 79, + 76 AS col2
----
79
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9563
SELECT DISTINCT - - 32 + 77 * 6 * + NULLIF ( - MAX( + CAST( - 96 AS SIGNED ) ), - CAST( - 21 AS SIGNED ) )
----
44384

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - - 32 + 77 * 6 * + NULLIF ( - MAX ( + CAST ( - 96 AS INTEGER ) ), - CAST ( - 21 AS INTEGER ) )
----
44384

query I rowsort
SELECT 65 * - 84 - - 0
----
-5460

query I rowsort
SELECT ALL - - 82 + - 50
----
32

query II rowsort
SELECT DISTINCT 80, - 12 * 90 AS col0
----
80
-1080

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9567
SELECT + COALESCE ( + CAST( NULL AS DECIMAL ), CASE 91 WHEN + + 64 THEN NULL WHEN 97 THEN - 36 END / - - 28 + - 55, + - AVG ( 84 ) + + ( - CAST( NULL AS SIGNED ) ) * - 31 + - NULLIF ( 72, - CAST( + 61 AS SIGNED ) ) * - - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT + COALESCE ( + CAST ( NULL AS REAL ), CASE 91 WHEN + + 64 THEN NULL WHEN 97 THEN - 36 END / - - 28 + - 55, + - AVG ( 84 ) + + ( - CAST ( NULL AS INTEGER ) ) * - 31 + - NULLIF ( 72, - CAST ( + 61 AS INTEGER ) ) * - - 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL - SUM( + + ( + 90 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - SUM ( + + ( + 90 ) )
----
-90

query I rowsort
SELECT ALL 75 + - 86
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9570
SELECT + CAST( NULL AS DECIMAL ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT + CAST ( NULL AS REAL ) * - 56
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT 96, - COUNT( * ) * - 76 * + + MIN( ALL - + 77 ) + - - COUNT( * ) * + 18 * - + 42 AS col0
----
96
-6608

skipif mysql # not compatible
query II rowsort label-9571
SELECT 96, - COUNT ( * ) * - 76 * + + MIN ( ALL - + 77 ) + - - COUNT ( * ) * + 18 * - + 42 AS col0
----
96
-6608

query I rowsort
SELECT + COALESCE ( + + 11, + + 26 ) AS col2
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9573
SELECT - 80 * 51 - + - COUNT( * ) DIV + + COUNT( * ) - + + 70
----
-4149

skipif mysql # not compatible
query I rowsort label-9573
SELECT - 80 * 51 - + - COUNT ( * ) / + + COUNT ( * ) - + + 70
----
-4149

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT - + COUNT( * ) * + 22 + + + 50 + ( - COUNT( * ) ) col0
----
27

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT - + COUNT ( * ) * + 22 + + + 50 + ( - COUNT ( * ) ) col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT ALL - - 33, + COUNT( * ) AS col1
----
33
1

skipif mysql # not compatible
query II rowsort label-9575
SELECT ALL - - 33, + COUNT ( * ) AS col1
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT DISTINCT 69 * + 99 + - + COUNT( * ) + 87 * + COUNT( * ) AS col0
----
6917

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT 69 * + 99 + - + COUNT ( * ) + 87 * + COUNT ( * ) AS col0
----
6917

query I rowsort
SELECT + - 40 * + + 29 * - - 11
----
-12760

query I rowsort
SELECT + 42 + + 46 + + 22 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT SUM( ALL + ( 34 ) ) * + SUM( DISTINCT - 57 ) + 61 - + 39 AS col0
----
-1916

skipif mysql # not compatible
query I rowsort label-9579
SELECT SUM ( ALL + ( 34 ) ) * + SUM ( DISTINCT - 57 ) + 61 - + 39 AS col0
----
-1916

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT MAX( + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9580
SELECT MAX ( + 19 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT - 57 * 32 + 41 * 59 + - + COUNT( * )
----
594

skipif mysql # not compatible
query I rowsort label-9581
SELECT - 57 * 32 + 41 * 59 + - + COUNT ( * )
----
594

query I rowsort
SELECT DISTINCT 47 * - - ( - + 4 ) AS col1
----
-188

query I rowsort
SELECT ALL 88 * 78 - - 0 AS col2
----
6864

query I rowsort
SELECT + 11 * - 43
----
-473

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + ( ( + 91 ) ) + + - ( - COUNT( * ) )
----
92

skipif mysql # not compatible
query I rowsort label-9585
SELECT + ( ( + 91 ) ) + + - ( - COUNT ( * ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + SUM( + 95 ) + - + 30 col0
----
65

skipif mysql # not compatible
query I rowsort label-9586
SELECT + SUM ( + 95 ) + - + 30 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + CASE + SUM( 71 ) WHEN 33 * + 33 THEN 76 * 49 ELSE NULL END * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT + CASE + SUM ( 71 ) WHEN 33 * + 33 THEN 76 * 49 ELSE NULL END * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT ALL + COUNT( DISTINCT - - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-9588
SELECT ALL + COUNT ( DISTINCT - - 89 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9589
SELECT + COUNT( * ) + + 28 * + SUM( CAST( NULL AS SIGNED ) ) AS col2, 2 + - ( + 35 )
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-9589
SELECT + COUNT ( * ) + + 28 * + SUM ( CAST ( NULL AS INTEGER ) ) AS col2, 2 + - ( + 35 )
----
NULL
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT ALL - 24 + + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL - 24 + + COUNT ( * )
----
-23

query I rowsort
SELECT + 39 - + 78 AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT - CAST( NULL AS SIGNED ) * - 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT - CAST ( NULL AS INTEGER ) * - 31 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9593
SELECT DISTINCT + 51 DIV - COUNT( * ), + 66 * 86 - + ( - - ( 82 ) ) + + 65 - - MAX( DISTINCT - 54 ) * - - 80 * - 93 + + 64 * + - 24 + - - 96 * NULLIF ( 29, - 19 ) AS col2
----
-51
408667

skipif mysql # not compatible
query II rowsort label-9593
SELECT DISTINCT + 51 / - COUNT ( * ), + 66 * 86 - + ( - - ( 82 ) ) + + 65 - - MAX ( DISTINCT - 54 ) * - - 80 * - 93 + + 64 * + - 24 + - - 96 * NULLIF ( 29, - 19 ) AS col2
----
-51
408667

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL - COUNT( * ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL - COUNT ( * ) + COUNT ( * )
----
0

query I rowsort
SELECT ALL - - 30 + + 25 - CASE + 72 WHEN - 39 + + - 72 THEN - 43 WHEN - - 11 THEN NULL END * 43 * + 97 / - 46
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9596
SELECT - 62 DIV + 62 col2, + 79
----
-1
79

skipif mysql # not compatible
query II rowsort label-9596
SELECT - 62 / + 62 col2, + 79
----
-1
79

query I rowsort
SELECT + - 51 + 84 + - 61 * - 61
----
3754

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9598
SELECT CAST( + - 69 AS SIGNED ), 87 AS col2
----
-69
87

skipif mysql # not compatible
query II rowsort label-9598
SELECT CAST ( + - 69 AS INTEGER ), 87 AS col2
----
-69
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9599
SELECT DISTINCT + - 18 * 26 + - 7 + 68, + NULLIF ( + COUNT( - 26 ), - 62 ) AS col1
----
-407
1

skipif mysql # not compatible
query II rowsort label-9599
SELECT DISTINCT + - 18 * 26 + - 7 + 68, + NULLIF ( + COUNT ( - 26 ), - 62 ) AS col1
----
-407
1

query I rowsort
SELECT - + 76 + 71 + - - 50
----
45

query II rowsort
SELECT - + 71 - - 75 AS col2, + 55 + - NULLIF ( - 49, + - 63 + + 8 ) * + 0 AS col2
----
4
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - NULLIF ( 11, - + AVG ( ALL - 73 ) / - - COUNT( * ) + 22 - - 94 - - 10 + - - ( 99 ) + 43 * - 22 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-9602
SELECT - NULLIF ( 11, - + AVG ( ALL - 73 ) / - - COUNT ( * ) + 22 - - 94 - - 10 + - - ( 99 ) + 43 * - 22 ) col2
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT ALL + COUNT( * ) * + 65, 21 AS col2
----
65
21

skipif mysql # not compatible
query II rowsort label-9603
SELECT ALL + COUNT ( * ) * + 65, 21 AS col2
----
65
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT - COUNT( * ) * - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9604
SELECT - COUNT ( * ) * - COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT ALL + COUNT( * ) + 89 - - CAST( NULL AS SIGNED ) * + - ( 37 ) + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + COUNT ( * ) + 89 - - CAST ( NULL AS INTEGER ) * + - ( 37 ) + - 87 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9606
SELECT - 51 + 2 + + 37 - + 60 + - NULLIF ( + + 41, - 26 / - COUNT( * ) + - - 71 + 36 + 64 * + 17 ) * - + SUM( - ( 38 ) ) AS col0, CAST( 23 AS SIGNED ) col1
----
-1630
23

skipif mysql # not compatible
query II rowsort label-9606
SELECT - 51 + 2 + + 37 - + 60 + - NULLIF ( + + 41, - 26 / - COUNT ( * ) + - - 71 + 36 + 64 * + 17 ) * - + SUM ( - ( 38 ) ) AS col0, CAST ( 23 AS INTEGER ) col1
----
-1630
23

query I rowsort
SELECT - 78 + - 44 * - + 57 AS col1
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL + - COALESCE ( + - 36, - COUNT( * ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL + - COALESCE ( + - 36, - COUNT ( * ) ) AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9609
SELECT - 92 + + 31 DIV - 52
----
-92

skipif mysql # not compatible
query I rowsort label-9609
SELECT - 92 + + 31 / - 52
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9610
SELECT COUNT( + 47 ) col0, 52 + 30 col1
----
1
82

skipif mysql # not compatible
query II rowsort label-9610
SELECT COUNT ( + 47 ) col0, 52 + 30 col1
----
1
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT + - 98 * + ( + + 15 ) + + CAST( NULL AS SIGNED ) * COUNT( DISTINCT + 30 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT + - 98 * + ( + + 15 ) + + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT + 30 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9612
SELECT DISTINCT + + CASE - MAX( ALL 33 ) WHEN + + 34 THEN NULL WHEN 0 * + - COUNT( * ) + + + 97 * - - 7 THEN NULL WHEN 57 THEN CAST( + + 92 AS SIGNED ) + + - CASE + - 20 WHEN 28 THEN + 66 * + 89 ELSE NULL END + - - 96 / - + AVG ( + 86 ) ELSE NULL END, 67 AS col1
----
NULL
67

skipif mysql # not compatible
query II rowsort label-9612
SELECT DISTINCT + + CASE - MAX ( ALL 33 ) WHEN + + 34 THEN NULL WHEN 0 * + - COUNT ( * ) + + + 97 * - - 7 THEN NULL WHEN 57 THEN CAST ( + + 92 AS INTEGER ) + + - CASE + - 20 WHEN 28 THEN + 66 * + 89 ELSE NULL END + - - 96 / - + AVG ( + 86 ) ELSE NULL END, 67 AS col1
----
NULL
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT + CAST( NULL AS SIGNED ) + - - 16 + + 29 * + 78 + 27 / - + 3 * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT + CAST ( NULL AS INTEGER ) + - - 16 + + 29 * + 78 + 27 / - + 3 * - 88
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT ALL + 27 DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL + 27 / - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT DISTINCT + SUM( ALL 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT + SUM ( ALL 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + COALESCE ( + + SUM( - + 49 ), NULLIF ( - ( - COUNT( * ) ), - 78 ) + + + 40 * + COUNT( * ) + - 95 * + ( - 58 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-9616
SELECT + COALESCE ( + + SUM ( - + 49 ), NULLIF ( - ( - COUNT ( * ) ), - 78 ) + + + 40 * + COUNT ( * ) + - 95 * + ( - 58 ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9617
SELECT + COUNT( * ) AS col2, - 54 AS col2
----
1
-54

skipif mysql # not compatible
query II rowsort label-9617
SELECT + COUNT ( * ) AS col2, - 54 AS col2
----
1
-54

query I rowsort
SELECT + 51 * - - 20
----
1020

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT DISTINCT 57 DIV - + 50
----
-1

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT 57 / - + 50
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT + COALESCE ( + - COUNT( * ), + 94 ) * - COUNT( * ) + + - COUNT( - 7 )
----
0

skipif mysql # not compatible
query I rowsort label-9620
SELECT + COALESCE ( + - COUNT ( * ), + 94 ) * - COUNT ( * ) + + - COUNT ( - 7 )
----
0

query I rowsort
SELECT ALL 92 * - 14
----
-1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9622
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9623
SELECT ALL CASE CAST( - 76 AS SIGNED ) WHEN - 75 * + 33 + - + COUNT( * ) + 82 + - 22 THEN NULL WHEN - + 95 THEN NULL WHEN + 60 + 28 THEN NULL WHEN 20 THEN 45 - 77 + COUNT( * ) END * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL CASE CAST ( - 76 AS INTEGER ) WHEN - 75 * + 33 + - + COUNT ( * ) + 82 + - 22 THEN NULL WHEN - + 95 THEN NULL WHEN + 60 + 28 THEN NULL WHEN 20 THEN 45 - 77 + COUNT ( * ) END * - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + 92 + - COUNT( - 23 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9624
SELECT + 92 + - COUNT ( - 23 ) AS col1
----
91

query I rowsort
SELECT DISTINCT - 69 * + 3 + + 2
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT MAX( DISTINCT + 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9626
SELECT MAX ( DISTINCT + 27 ) AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT + CAST( 24 AS SIGNED ) * + 5 col1
----
120

skipif mysql # not compatible
query I rowsort label-9627
SELECT + CAST ( 24 AS INTEGER ) * + 5 col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT - COUNT( 96 ) + 44
----
43

skipif mysql # not compatible
query I rowsort label-9628
SELECT - COUNT ( 96 ) + 44
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL COUNT( * ) + - 3 * - MAX( 95 )
----
286

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL COUNT ( * ) + - 3 * - MAX ( 95 )
----
286

query I rowsort
SELECT - COALESCE ( 5, ( - 43 ) ) + 51
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT + 26 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9631
SELECT + 26 * + COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT ( - 90 ) col2
----
-90

query I rowsort
SELECT DISTINCT 49 + 17 AS col0
----
66

query I rowsort
SELECT ALL - 3 * + 95
----
-285

query I rowsort
SELECT 50 * + 82 AS col2
----
4100

query I rowsort
SELECT DISTINCT - 85 * 11 col1
----
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT COALESCE ( 75, + 81, - 44 - 98 ) - + 56 * + MIN( 71 )
----
-3901

skipif mysql # not compatible
query I rowsort label-9637
SELECT COALESCE ( 75, + 81, - 44 - 98 ) - + 56 * + MIN ( 71 )
----
-3901

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL - COUNT( * ) * + NULLIF ( - 95, MAX( 44 ) )
----
95

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL - COUNT ( * ) * + NULLIF ( - 95, MAX ( 44 ) )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT 69 DIV 5 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9639
SELECT 69 / 5 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT - 86 * + COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT - 86 * + COUNT ( * ) AS col0
----
-86

query I rowsort
SELECT ALL + 31 - + 8 AS col1
----
23

query I rowsort
SELECT 49 * CASE + 17 * + 80 WHEN + 4 THEN ( 71 ) END AS col2
----
NULL

query I rowsort
SELECT 52 * - 23 col0
----
-1196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9644
SELECT 31 DIV - MAX( - 60 ) - + 5 col1
----
-5

skipif mysql # not compatible
query I rowsort label-9644
SELECT 31 / - MAX ( - 60 ) - + 5 col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9645
SELECT ALL + CAST( NULL AS SIGNED ) * MIN( DISTINCT - 64 * - COALESCE ( - ( 64 ), 61 * + 72 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT - 64 * - COALESCE ( - ( 64 ), 61 * + 72 ) )
----
NULL

query I rowsort
SELECT 75 * ( - 71 )
----
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT - ( MAX( DISTINCT + 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT - ( MAX ( DISTINCT + 7 ) )
----
-7

query I rowsort
SELECT 58 + - 7 * 76 AS col2
----
-474

query I rowsort
SELECT 65 * + 10 AS col1
----
650

query I rowsort
SELECT 68 + 58 AS col0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT 69 DIV NULLIF ( 3, - ( + 83 ) + 92 ) - - 86 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-9651
SELECT 69 / NULLIF ( 3, - ( + 83 ) + 92 ) - - 86 AS col0
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT - COUNT( ALL 41 ) * + 56 + + CAST( 74 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9652
SELECT - COUNT ( ALL 41 ) * + 56 + + CAST ( 74 AS INTEGER ) AS col0
----
18

query I rowsort
SELECT DISTINCT + 24 + 30
----
54

query I rowsort
SELECT ALL - 69 * 11 col0
----
-759

query I rowsort
SELECT 19 * ( + 83 ) AS col1
----
1577

query I rowsort
SELECT DISTINCT 51 * - 29
----
-1479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9657
SELECT ALL COUNT( * ) + SUM( ALL + 15 ) DIV + 9
----
2

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL COUNT ( * ) + SUM ( ALL + 15 ) / + 9
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9658
SELECT DISTINCT + 24 + COALESCE ( 61, 30, - 27 DIV - CASE 61 * - 69 WHEN + SUM( ALL 80 ) + 44 THEN + ( CAST( NULL AS SIGNED ) ) * 90 ELSE 71 END ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT + 24 + COALESCE ( 61, 30, - 27 / - CASE 61 * - 69 WHEN + SUM ( ALL 80 ) + 44 THEN + ( CAST ( NULL AS INTEGER ) ) * 90 ELSE 71 END ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9659
SELECT 9 DIV + ( + 58 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9659
SELECT 9 / + ( + 58 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT COUNT( * ) + + 37 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9660
SELECT COUNT ( * ) + + 37 AS col2
----
38

query I rowsort
SELECT DISTINCT - 52 * 96 AS col0
----
-4992

query I rowsort
SELECT 89 - + 13 * 43 AS col0
----
-470

query I rowsort
SELECT 93 * 59 AS col2
----
5487

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT - 83 DIV 47
----
-1

skipif mysql # not compatible
query I rowsort label-9664
SELECT - 83 / 47
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9665
SELECT - 53 DIV COUNT( * ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-9665
SELECT - 53 / COUNT ( * ) col2
----
-53

query I rowsort
SELECT ALL + 49 + 47 * - 27
----
-1220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9667
SELECT ALL COALESCE ( 90, 41, - COUNT( * ) ) DIV COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL COALESCE ( 90, 41, - COUNT ( * ) ) / COUNT ( * )
----
90

query I rowsort
SELECT + 20 - 61 * 14 AS col2
----
-834

query I rowsort
SELECT DISTINCT 59 * + 54 AS col2
----
3186

query I rowsort
SELECT + ( 36 ) - - 50 * + 50 AS col2
----
2536

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL 3 - - COALESCE ( 14, - MAX( 59 ) * 15 + 65 ) * - 40 AS col1
----
-557

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL 3 - - COALESCE ( 14, - MAX ( 59 ) * 15 + 65 ) * - 40 AS col1
----
-557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9672
SELECT DISTINCT - CAST( - 70 AS SIGNED ) * - ( - COUNT( + 80 ) )
----
70

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT - CAST ( - 70 AS INTEGER ) * - ( - COUNT ( + 80 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL 86 - + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL 86 - + COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT COUNT( 48 )
----
1

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT COUNT ( 48 )
----
1

query I rowsort
SELECT - 99 + + 61
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT - 69 - SUM( DISTINCT + 20 )
----
-89

skipif mysql # not compatible
query I rowsort label-9676
SELECT - 69 - SUM ( DISTINCT + 20 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT 99 + CAST( 87 AS SIGNED )
----
186

skipif mysql # not compatible
query I rowsort label-9677
SELECT 99 + CAST ( 87 AS INTEGER )
----
186

query I rowsort
SELECT - 83 - 42 * 0 AS col1
----
-83

query I rowsort
SELECT - 27 + - 66 AS col0
----
-93

query I rowsort
SELECT ALL ( + 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL MAX( 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL MAX ( 64 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT ( + 13 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT ( + 13 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT SUM( + 53 ) + - 77
----
-24

skipif mysql # not compatible
query I rowsort label-9683
SELECT SUM ( + 53 ) + - 77
----
-24

query I rowsort
SELECT 78 + + 62 * 1
----
140

query I rowsort
SELECT ALL - ( 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT 87 + CASE 43 WHEN 1 + - 59 THEN 25 WHEN + AVG ( + 59 ) + COUNT( * ) THEN 85 WHEN ( + 4 ) * + 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT 87 + CASE 43 WHEN 1 + - 59 THEN 25 WHEN + AVG ( + 59 ) + COUNT ( * ) THEN 85 WHEN ( + 4 ) * + 65 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT ALL 19 * + + 72 + - 33 DIV - 30
----
1369

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL 19 * + + 72 + - 33 / - 30
----
1369

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + SUM( - 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9688
SELECT + SUM ( - 15 ) AS col1
----
-15

query I rowsort
SELECT - 44 * - 32 + 91 AS col0
----
1499

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT + SUM( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9690
SELECT + SUM ( - 70 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT CASE - ( + 3 ) WHEN 30 THEN + ( 70 ) END * COALESCE ( - SUM( - 74 ) + - 44, - 80 + - CASE ( + COUNT( * ) ) + 21 * CAST( COUNT( * ) AS SIGNED ) WHEN + 48 THEN 37 WHEN - MAX( 16 ) THEN NULL ELSE + 14 * - ( 42 ) + COUNT( * ) END / - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT CASE - ( + 3 ) WHEN 30 THEN + ( 70 ) END * COALESCE ( - SUM ( - 74 ) + - 44, - 80 + - CASE ( + COUNT ( * ) ) + 21 * CAST ( COUNT ( * ) AS INTEGER ) WHEN + 48 THEN 37 WHEN - MAX ( 16 ) THEN NULL ELSE + 14 * - ( 42 ) + COUNT ( * ) END / - 11 )
----
NULL

query I rowsort
SELECT 74 / + - 84 + COALESCE ( + 48 + 95 * 30, - CASE + 65 WHEN + 11 * + 31 THEN NULL WHEN + 56 THEN + 27 * 27 END * 10 - - 52 ) * CASE 11 / + 76 WHEN + 14 * 63 THEN 20 END
----
NULL

query I rowsort
SELECT ALL - 37 + - - 91 * + 7 AS col2
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT DISTINCT - MAX( ALL - - 10 ) * COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT - MAX ( ALL - - 10 ) * COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT ALL 87 + - 37
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9696
SELECT ALL + COALESCE ( - CASE 71 WHEN 46 THEN NULL WHEN 71 THEN NULL WHEN + 87 + COUNT( * ) DIV 5 THEN NULL ELSE 79 DIV NULLIF ( - 80, + ( COUNT( * ) ) + 50 ) - + 89 END, - ( 29 ), 16, - MIN( + 41 ) ) + + 83 * 68
----
5615

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL + COALESCE ( - CASE 71 WHEN 46 THEN NULL WHEN 71 THEN NULL WHEN + 87 + COUNT ( * ) / 5 THEN NULL ELSE 79 / NULLIF ( - 80, + ( COUNT ( * ) ) + 50 ) - + 89 END, - ( 29 ), 16, - MIN ( + 41 ) ) + + 83 * 68
----
5615

query I rowsort
SELECT 3 * + - 90 * 82
----
-22140

query I rowsort
SELECT 12 * - + 46
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT 89 + + + NULLIF ( + NULLIF ( + 78, + 14 + 32 ), + 96 * + MIN( ALL - 53 ) ) AS col2
----
167

skipif mysql # not compatible
query I rowsort label-9699
SELECT 89 + + + NULLIF ( + NULLIF ( + 78, + 14 + 32 ), + 96 * + MIN ( ALL - 53 ) ) AS col2
----
167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9700
SELECT + COUNT( * ) * + 22 * 50 - - CAST( ( CAST( COUNT( * ) AS SIGNED ) ) + - 63 * + 57 AS SIGNED )
----
-2490

skipif mysql # not compatible
query I rowsort label-9700
SELECT + COUNT ( * ) * + 22 * 50 - - CAST ( ( CAST ( COUNT ( * ) AS INTEGER ) ) + - 63 * + 57 AS INTEGER )
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT COUNT( * ) + + + MIN( 91 )
----
92

skipif mysql # not compatible
query I rowsort label-9701
SELECT COUNT ( * ) + + + MIN ( 91 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9702
SELECT + 51 + + + SUM( 69 ) + + 75 DIV 23
----
123

skipif mysql # not compatible
query I rowsort label-9702
SELECT + 51 + + + SUM ( 69 ) + + 75 / 23
----
123

query I rowsort
SELECT DISTINCT - - 98 * - 78 * - 80
----
611520

query I rowsort
SELECT DISTINCT - COALESCE ( - 35, - 18, 22 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT + - ( COUNT( * ) ) - 98 * 4
----
-393

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT + - ( COUNT ( * ) ) - 98 * 4
----
-393

query I rowsort
SELECT ALL 48 * + 58 AS col0
----
2784

query I rowsort
SELECT - 17 + - 32
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9708
SELECT ALL - CAST( NULL AS SIGNED ) - - 25 + + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - CAST ( NULL AS INTEGER ) - - 25 + + 39 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT - CAST( NULL AS SIGNED ) + + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT - CAST ( NULL AS INTEGER ) + + 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT ALL 70 - + CASE + AVG ( DISTINCT - 94 ) WHEN - SUM( 50 ) THEN - MIN( - 81 ) * 48 - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL 70 - + CASE + AVG ( DISTINCT - 94 ) WHEN - SUM ( 50 ) THEN - MIN ( - 81 ) * 48 - 97 END
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 56, - 17, - 39 + + 26 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL - 68 * + - ( 27 ) * COALESCE ( COUNT( * ) * + 6, - 72 )
----
11016

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - 68 * + - ( 27 ) * COALESCE ( COUNT ( * ) * + 6, - 72 )
----
11016

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + + MAX( ALL + - 27 ) + - ( COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-9713
SELECT + + MAX ( ALL + - 27 ) + - ( COUNT ( * ) )
----
-28

query I rowsort
SELECT + - 82 + 21 * - 75
----
-1657

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT + 71 DIV ( - 27 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9715
SELECT + 71 / ( - 27 ) AS col2
----
-2

query I rowsort
SELECT ALL - ( - 1 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT + + 63 DIV - ( 84 ) * + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT + + 63 / - ( 84 ) * + 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT + COUNT( * ) * - 53 * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-9718
SELECT + COUNT ( * ) * - 53 * COUNT ( * )
----
-53

query I rowsort
SELECT - - 83 col0
----
83

query I rowsort
SELECT ALL 77 * - - 0
----
0

query II rowsort
SELECT 76, + 9 * - - 42 col1
----
76
378

query II rowsort
SELECT DISTINCT 29, + 30 AS col1
----
29
30

query I rowsort
SELECT ALL 47 + + 81 AS col1
----
128

query I rowsort
SELECT ALL 41 * + + 31
----
1271

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT - SUM( + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-9725
SELECT - SUM ( + 29 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9726
SELECT DISTINCT - 70 * ( CAST( NULL AS DECIMAL ) ) * CASE + 84 / 8 WHEN 14 - + 98 THEN 78 * NULLIF ( + 33 / MIN( 82 ), 94 - - 68 / 98 ) WHEN 74 THEN MAX( 3 ) END + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT - 70 * ( CAST ( NULL AS REAL ) ) * CASE + 84 / 8 WHEN 14 - + 98 THEN 78 * NULLIF ( + 33 / MIN ( 82 ), 94 - - 68 / 98 ) WHEN 74 THEN MAX ( 3 ) END + 57 AS col2
----
NULL

query I rowsort
SELECT ALL 5 * - - 61
----
305

query I rowsort
SELECT + 75 - - 93
----
168

query II rowsort
SELECT ALL + 38 AS col1, 59 * 4 AS col0
----
38
236

query I rowsort
SELECT ( + 7 ) col0
----
7

query I rowsort
SELECT ALL + NULLIF ( - 27, + 35 ) * + 25
----
-675

query II rowsort
SELECT ALL + 54 AS col1, 4 col2
----
54
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9733
SELECT ALL - SUM( ALL - NULLIF ( - - NULLIF ( CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ), - 86 * - 57 ), - 35 / 87 ) ) * 59 + - 77 / 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL - SUM ( ALL - NULLIF ( - - NULLIF ( CAST ( + CAST ( NULL AS INTEGER ) AS REAL ), - 86 * - 57 ), - 35 / 87 ) ) * 59 + - 77 / 94 AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( + 53, + + 16 + + 65 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + 15 + - 40 * - COUNT( * ) - - NULLIF ( 18, - 58 )
----
73

skipif mysql # not compatible
query I rowsort label-9735
SELECT + 15 + - 40 * - COUNT ( * ) - - NULLIF ( 18, - 58 )
----
73

query I rowsort
SELECT - 21 - 62 AS col1
----
-83

query I rowsort
SELECT ALL + 7 * - 92 col2
----
-644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9738
SELECT + 33 * + CAST( - 70 AS SIGNED )
----
-2310

skipif mysql # not compatible
query I rowsort label-9738
SELECT + 33 * + CAST ( - 70 AS INTEGER )
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT - 8 * - - MAX( - 33 ) + COUNT( * ) * + 33 AS col0
----
297

skipif mysql # not compatible
query I rowsort label-9739
SELECT - 8 * - - MAX ( - 33 ) + COUNT ( * ) * + 33 AS col0
----
297

query I rowsort
SELECT - 97 * + 38
----
-3686

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT + CASE 72 WHEN - 34 * 3 THEN SUM( + 67 ) WHEN 3 + 4 THEN COUNT( * ) + - 28 WHEN 93 THEN NULL END * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT + CASE 72 WHEN - 34 * 3 THEN SUM ( + 67 ) WHEN 3 + 4 THEN COUNT ( * ) + - 28 WHEN 93 THEN NULL END * + 24
----
NULL

query I rowsort
SELECT ALL - 32 * + 98
----
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL 62 * - - COUNT( - - NULLIF ( 45, 42 ) ) col1
----
62

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL 62 * - - COUNT ( - - NULLIF ( 45, 42 ) ) col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT - 6 + + CAST( NULL AS SIGNED ) * - + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT - 6 + + CAST ( NULL AS INTEGER ) * - + 93 AS col1
----
NULL

query I rowsort
SELECT ALL 76 * - 53
----
-4028

onlyif mysql # aggregate syntax: 
query II rowsort label-9746
SELECT ALL + + 98 AS col1, - COUNT( * ) + - 2 * 29 col0
----
98
-59

skipif mysql # not compatible
query II rowsort label-9746
SELECT ALL + + 98 AS col1, - COUNT ( * ) + - 2 * 29 col0
----
98
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT - + 75 * - 73 + + COALESCE ( 44, - 98 * - COUNT( * ) + 83 ) + 26 * - 99
----
2945

skipif mysql # not compatible
query I rowsort label-9747
SELECT - + 75 * - 73 + + COALESCE ( 44, - 98 * - COUNT ( * ) + 83 ) + 26 * - 99
----
2945

query I rowsort
SELECT - - 28 * + 65 + + + 96 AS col0
----
1916

query I rowsort
SELECT - 20 * - 85 + 20 AS col2
----
1720

query II rowsort
SELECT 94, + ( - ( CASE 35 WHEN + 61 + 57 * + 52 THEN - 75 END ) ) AS col2
----
94
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT - 9 * - SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT - 9 * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + - 28 + - 30
----
-58

query I rowsort
SELECT - ( 63 ) - - 92
----
29

query II rowsort
SELECT DISTINCT 7, 84 AS col0
----
7
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT - 31 + - + MAX( ALL NULLIF ( - 20, 40 ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9755
SELECT - 31 + - + MAX ( ALL NULLIF ( - 20, 40 ) ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT - + 99 + ( + COUNT( * ) ) + 36 * + 59 AS col1
----
2026

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - + 99 + ( + COUNT ( * ) ) + 36 * + 59 AS col1
----
2026

query I rowsort
SELECT + + 9 - - 53
----
62

query I rowsort
SELECT - NULLIF ( - - 6, + 33 / 30 ) + 72 * 2 AS col2
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9759
SELECT ALL CAST( - 82 AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL CAST ( - 82 AS INTEGER ) AS col0
----
-82

query I rowsort
SELECT + 11 + - + 78 + ( 76 ) + + 29 * + 51
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - COUNT( DISTINCT - 97 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9761
SELECT - COUNT ( DISTINCT - 97 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT ALL CAST( - + 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL CAST ( - + 34 AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL MAX( ALL 79 ) * 74 AS col1
----
5846

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL MAX ( ALL 79 ) * 74 AS col1
----
5846

query I rowsort
SELECT + ( + 50 )
----
50

query I rowsort
SELECT - 54 * 16 * - 6 + + + 94 + + 89 * 91 col2
----
13377

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL COUNT( * ) * ( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL COUNT ( * ) * ( - 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT - NULLIF ( - MIN( CAST( + 31 AS SIGNED ) ), 95 * 87 ) * - 16
----
-496

skipif mysql # not compatible
query I rowsort label-9767
SELECT - NULLIF ( - MIN ( CAST ( + 31 AS INTEGER ) ), 95 * 87 ) * - 16
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT + 16 * - 4 + COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9768
SELECT + 16 * - 4 + COUNT ( * ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + NULLIF ( 12, + MIN( 46 ) * - 40 + - 79 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9769
SELECT + NULLIF ( 12, + MIN ( 46 ) * - 40 + - 79 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT + NULLIF ( - CASE - COUNT( * ) WHEN + NULLIF ( 68, ( 67 ) ) + + 19 THEN COUNT( * ) ELSE 75 + - CASE - 33 WHEN 11 / 77 + - 85 THEN - MAX( ALL - 32 ) * + NULLIF ( 0, ( - MAX( 29 ) ) ) ELSE + 70 * + 22 END END, + 86 )
----
1465

skipif mysql # not compatible
query I rowsort label-9770
SELECT + NULLIF ( - CASE - COUNT ( * ) WHEN + NULLIF ( 68, ( 67 ) ) + + 19 THEN COUNT ( * ) ELSE 75 + - CASE - 33 WHEN 11 / 77 + - 85 THEN - MAX ( ALL - 32 ) * + NULLIF ( 0, ( - MAX ( 29 ) ) ) ELSE + 70 * + 22 END END, + 86 )
----
1465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9771
SELECT - NULLIF ( + ( 75 ), 42 + + 9 * CAST( 78 * + COUNT( ALL 53 ) + 63 AS SIGNED ) ) DIV COALESCE ( + 13 DIV 21 + + 36 * - COUNT( * ), 98 * + 82, + 39 ) + - 28 DIV 90 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9771
SELECT - NULLIF ( + ( 75 ), 42 + + 9 * CAST ( 78 * + COUNT ( ALL 53 ) + 63 AS INTEGER ) ) / COALESCE ( + 13 / 21 + + 36 * - COUNT ( * ), 98 * + 82, + 39 ) + - 28 / 90 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9772
SELECT DISTINCT - 5 DIV - 13 - 86
----
-86

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT - 5 / - 13 - 86
----
-86

query I rowsort
SELECT DISTINCT - ( + + ( - + 83 ) )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9774
SELECT ALL + + 81 DIV 30 - + ( - 62 )
----
64

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + + 81 / 30 - + ( - 62 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT CAST( NULL AS SIGNED ) * - ( + 67 ) + + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT CAST ( NULL AS INTEGER ) * - ( + 67 ) + + 49 AS col1
----
NULL

query I rowsort
SELECT - + 85 * 65 - - - NULLIF ( - - 91, - 7 ) + + CASE 54 WHEN 32 - + 65 THEN NULL ELSE + 10 + - ( + 17 ) END
----
-5623

query I rowsort
SELECT 5 * - - ( - 45 ) AS col2
----
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9778
SELECT 48 + + 70 + - + 16 + + + ( + 30 ) + + 87 DIV COALESCE ( - SUM( DISTINCT 66 ), - COUNT( * ) * - 93 + + 20 DIV 13 ) AS col2
----
131

skipif mysql # not compatible
query I rowsort label-9778
SELECT 48 + + 70 + - + 16 + + + ( + 30 ) + + 87 / COALESCE ( - SUM ( DISTINCT 66 ), - COUNT ( * ) * - 93 + + 20 / 13 ) AS col2
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9779
SELECT + COALESCE ( - 37, + CASE - 93 WHEN + 68 THEN + COUNT( * ) DIV + 30 WHEN - 34 THEN COUNT( - 56 ) END ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9779
SELECT + COALESCE ( - 37, + CASE - 93 WHEN + 68 THEN + COUNT ( * ) / + 30 WHEN - 34 THEN COUNT ( - 56 ) END ) AS col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9780
SELECT 97 DIV + - 87 AS col1, 26 * + COUNT( * ) AS col1
----
-1
26

skipif mysql # not compatible
query II rowsort label-9780
SELECT 97 / + - 87 AS col1, 26 * + COUNT ( * ) AS col1
----
-1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL - SUM( + - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - SUM ( + - 29 )
----
29

query I rowsort
SELECT DISTINCT 81 + + + 12 + + 47 * - 2 AS col1
----
-1

query I rowsort
SELECT DISTINCT ( ( 72 ) ) AS col0
----
72

query I rowsort
SELECT + 29 + - 6
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL + ( - + MIN( ALL - 94 ) ) + + SUM( + 0 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL + ( - + MIN ( ALL - 94 ) ) + + SUM ( + 0 ) AS col2
----
94

query I rowsort
SELECT 53 * - + 26
----
-1378

query II rowsort
SELECT 97 + - 75, - 26 + 13 * 83 AS col1
----
22
1053

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT - CASE - - 57 WHEN - ( - COUNT( * ) ) * NULLIF ( - COALESCE ( - 82, - COALESCE ( 22, COUNT( ALL 82 ) * + 64 + 43 ) * 35 + - 46 ) * ( 68 * ( + 30 ) + 22 / + COUNT( * ) ), - 89 ) THEN - 97 + 96 WHEN - COUNT( * ) + - 9 THEN 90 * 61 + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT - CASE - - 57 WHEN - ( - COUNT ( * ) ) * NULLIF ( - COALESCE ( - 82, - COALESCE ( 22, COUNT ( ALL 82 ) * + 64 + 43 ) * 35 + - 46 ) * ( 68 * ( + 30 ) + 22 / + COUNT ( * ) ), - 89 ) THEN - 97 + 96 WHEN - COUNT ( * ) + - 9 THEN 90 * 61 + 31 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9789
SELECT 43 + - 94 * 12 * + 55 - - ( + COALESCE ( 1, CASE WHEN NOT + 0 IN ( 79 * 29 + 94 ) THEN - 75 WHEN - 97 NOT IN ( 42 ) THEN + 18 ELSE + 56 END ) + - COALESCE ( - COUNT( * ), - CASE 71 WHEN 51 THEN NULL WHEN 3 THEN NULL WHEN 35 THEN - 74 * 46 ELSE NULL END, + 17 * COALESCE ( - CAST( NULL AS SIGNED ), 77 ) ) )
----
-61995

skipif mysql # not compatible
query I rowsort label-9789
SELECT 43 + - 94 * 12 * + 55 - - ( + COALESCE ( 1, CASE WHEN NOT + 0 IN ( 79 * 29 + 94 ) THEN - 75 WHEN - 97 NOT IN ( 42 ) THEN + 18 ELSE + 56 END ) + - COALESCE ( - COUNT ( * ), - CASE 71 WHEN 51 THEN NULL WHEN 3 THEN NULL WHEN 35 THEN - 74 * 46 ELSE NULL END, + 17 * COALESCE ( - CAST ( NULL AS INTEGER ), 77 ) ) )
----
-61995

query I rowsort
SELECT DISTINCT - 96 + - 29 AS col2
----
-125

query I rowsort
SELECT 84 * 70 * + 22 AS col0
----
129360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9792
SELECT 12, 45 - CAST( NULL AS SIGNED ) / + ( - - 76 ) * COUNT( * ) + + ( 41 ) col1
----
12
NULL

skipif mysql # not compatible
query II rowsort label-9792
SELECT 12, 45 - CAST ( NULL AS INTEGER ) / + ( - - 76 ) * COUNT ( * ) + + ( 41 ) col1
----
12
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9793
SELECT DISTINCT + COUNT( * ) + + CAST( + 80 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT + COUNT ( * ) + + CAST ( + 80 AS INTEGER )
----
81

query I rowsort
SELECT 3 * + 90 col0
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9795
SELECT ALL + ( - COUNT( * ) ) * 15 AS col1, + 97 DIV ( + COUNT( * ) ) + 79
----
-15
176

skipif mysql # not compatible
query II rowsort label-9795
SELECT ALL + ( - COUNT ( * ) ) * 15 AS col1, + 97 / ( + COUNT ( * ) ) + 79
----
-15
176

query II rowsort
SELECT ALL 43 AS col1, + 74
----
43
74

query I rowsort
SELECT ALL - 79 - - 66
----
-13

query I rowsort
SELECT 83 - NULLIF ( - + 47, 71 ) AS col0
----
130

query I rowsort
SELECT 93 - - 1 + + - 71
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-9800
SELECT 28 * 88 DIV - - 40 AS col1, + 61 AS col1
----
61
61

skipif mysql # not compatible
query II rowsort label-9800
SELECT 28 * 88 / - - 40 AS col1, + 61 AS col1
----
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT 2 + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9801
SELECT 2 + COUNT ( * )
----
3

query II rowsort
SELECT DISTINCT 8 col0, + 60 * 97 AS col0
----
8
5820

query II rowsort
SELECT ALL - 92 AS col1, - 74 col1
----
-92
-74

query I rowsort
SELECT DISTINCT - ( - ( - COALESCE ( - - 81, - - 41 * + 13 ) ) )
----
-81

query I rowsort
SELECT ALL 74 * 20 AS col0
----
1480

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT DISTINCT - ( - 70 ) DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT - ( - 70 ) / 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT 40 * + 51 + - + 95 + - SUM( DISTINCT 51 )
----
1894

skipif mysql # not compatible
query I rowsort label-9807
SELECT 40 * + 51 + - + 95 + - SUM ( DISTINCT 51 )
----
1894

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT 43 + 68 - + + 47 - - 97 DIV + - 9 + 90 * 53
----
4824

skipif mysql # not compatible
query I rowsort label-9808
SELECT 43 + 68 - + + 47 - - 97 / + - 9 + 90 * 53
----
4824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT - 33 * 70 / + MIN( ALL + - 20 ) * + + COUNT( 28 ) * + 90 + + 24 + 8 * - CAST( NULL AS SIGNED ) + + 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT - 33 * 70 / + MIN ( ALL + - 20 ) * + + COUNT ( 28 ) * + 90 + + 24 + 8 * - CAST ( NULL AS INTEGER ) + + 65 col1
----
NULL

query I rowsort
SELECT 32 - + + 68
----
-36

query I rowsort
SELECT 63 * NULLIF ( 14, 59 ) * - 90 + 76 * 15 AS col2
----
-78240

query I rowsort
SELECT ALL - 89 + - - 96
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9813
SELECT DISTINCT + + COUNT( * ) * ( ( - CAST( + 97 AS SIGNED ) ) ) DIV - ( + MAX( ALL + 48 ) )
----
2

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT + + COUNT ( * ) * ( ( - CAST ( + 97 AS INTEGER ) ) ) / - ( + MAX ( ALL + 48 ) )
----
2

query I rowsort
SELECT ALL 21 + - 45 * - - 79
----
-3534

onlyif mysql # aggregate syntax: 
query II rowsort label-9815
SELECT + - 12 AS col1, MAX( 17 )
----
-12
17

skipif mysql # not compatible
query II rowsort label-9815
SELECT + - 12 AS col1, MAX ( 17 )
----
-12
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9816
SELECT ALL - COUNT( * ) * + COALESCE ( + 58, - 76 + CAST( NULL AS SIGNED ) DIV + CAST( 42 * - 2 + 33 AS SIGNED ) ) + + 97 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL - COUNT ( * ) * + COALESCE ( + 58, - 76 + CAST ( NULL AS INTEGER ) / + CAST ( 42 * - 2 + 33 AS INTEGER ) ) + + 97 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL ( + MAX( DISTINCT 74 ) ) + - COUNT( + - 3 )
----
73

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL ( + MAX ( DISTINCT 74 ) ) + - COUNT ( + - 3 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT ALL - + COALESCE ( + 17, - 12 + + COUNT( * ) * - 97, + 39 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL - + COALESCE ( + 17, - 12 + + COUNT ( * ) * - 97, + 39 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT - COUNT( * ) + MAX( - - 63 )
----
62

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - COUNT ( * ) + MAX ( - - 63 )
----
62

query I rowsort
SELECT - 53 + 57
----
4

query I rowsort
SELECT - ( + 77 ) * 44 AS col0
----
-3388

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT DISTINCT - 62 DIV - 96 col1
----
0

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - 62 / - 96 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9823
SELECT ALL - - 10, CAST( NULL AS SIGNED ) AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-9823
SELECT ALL - - 10, CAST ( NULL AS INTEGER ) AS col1
----
10
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT 68 + 77 DIV + - 84 * - 1 col1
----
68

skipif mysql # not compatible
query I rowsort label-9824
SELECT 68 + 77 / + - 84 * - 1 col1
----
68

query I rowsort
SELECT - 54 * + 85
----
-4590

query I rowsort
SELECT + 2 - - + 48 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9827
SELECT DISTINCT 29 DIV + 97 * COUNT( + 15 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT 29 / + 97 * COUNT ( + 15 ) AS col0
----
0

query II rowsort
SELECT ALL 76, 98 * - 55 AS col2
----
76
-5390

query I rowsort
SELECT ( - - 25 ) - - - 74 * 26
----
-1899

onlyif mysql # aggregate syntax: 
query II rowsort label-9830
SELECT 97 * + - 54 AS col0, - MAX( + ( - ( - - 62 ) ) ) AS col1
----
-5238
62

skipif mysql # not compatible
query II rowsort label-9830
SELECT 97 * + - 54 AS col0, - MAX ( + ( - ( - - 62 ) ) ) AS col1
----
-5238
62

query I rowsort
SELECT ALL 64 * - 1 * - 92 AS col2
----
5888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9832
SELECT COUNT( * ) + COALESCE ( 12, + COALESCE ( - COUNT( ALL - 50 ), + 69 DIV + 9 + + 66, 97 + 65 ) + 0, 64 - 31 * 1 ) * + 52 AS col1
----
625

skipif mysql # not compatible
query I rowsort label-9832
SELECT COUNT ( * ) + COALESCE ( 12, + COALESCE ( - COUNT ( ALL - 50 ), + 69 / + 9 + + 66, 97 + 65 ) + 0, 64 - 31 * 1 ) * + 52 AS col1
----
625

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT ALL 82 - 55 - + NULLIF ( COUNT( * ), + 82 * COUNT( * ) * 47 + - 86 )
----
26

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL 82 - 55 - + NULLIF ( COUNT ( * ), + 82 * COUNT ( * ) * 47 + - 86 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL SUM( - - 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL SUM ( - - 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL CASE - - 24 WHEN - - 82 THEN + SUM( DISTINCT - + 5 ) ELSE - 25 END * 7
----
-175

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL CASE - - 24 WHEN - - 82 THEN + SUM ( DISTINCT - + 5 ) ELSE - 25 END * 7
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT 19 * + + CASE 75 WHEN - + NULLIF ( - 25, + COUNT( * ) + - 50 ) THEN 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT 19 * + + CASE 75 WHEN - + NULLIF ( - 25, + COUNT ( * ) + - 50 ) THEN 2 ELSE NULL END
----
NULL

query I rowsort
SELECT 22 * - 15 AS col1
----
-330

query I rowsort
SELECT 28 - + NULLIF ( + 39, 81 * - 13 ) AS col0
----
-11

query I rowsort
SELECT 38 - - ( + 45 )
----
83

query I rowsort
SELECT 9 * 28 AS col1
----
252

query I rowsort
SELECT COALESCE ( - 7, - - 59 ) + + 45 + + + 18 - + + 83 - 84 * 23 AS col2
----
-1959

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT 47 + + - 98 DIV 22 + - 99
----
-56

skipif mysql # not compatible
query I rowsort label-9842
SELECT 47 + + - 98 / 22 + - 99
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL COUNT( 22 )
----
1

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL COUNT ( 22 )
----
1

query II rowsort
SELECT 3 AS col0, 97
----
3
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT ALL 57 AS col2, + COUNT( * ) + + + NULLIF ( + 19, + 37 * - + ( - 34 ) * - 33 + 96 )
----
57
20

skipif mysql # not compatible
query II rowsort label-9845
SELECT ALL 57 AS col2, + COUNT ( * ) + + + NULLIF ( + 19, + 37 * - + ( - 34 ) * - 33 + 96 )
----
57
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - 86 + CASE 55 WHEN + 82 THEN - 56 + CASE - 81 WHEN COUNT( 32 ) * 76 - + 77 THEN 49 - - 16 WHEN - 68 THEN NULL ELSE NULL END + 26 * - 15 / - 96 END * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT - 86 + CASE 55 WHEN + 82 THEN - 56 + CASE - 81 WHEN COUNT ( 32 ) * 76 - + 77 THEN 49 - - 16 WHEN - 68 THEN NULL ELSE NULL END + 26 * - 15 / - 96 END * + 15 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 14 AS col1, 6 * - + 15 + - - 19 + + 48 + 93
----
14
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9848
SELECT ALL 66 AS col0, COUNT( * ) * - - 37 col2
----
66
37

skipif mysql # not compatible
query II rowsort label-9848
SELECT ALL 66 AS col0, COUNT ( * ) * - - 37 col2
----
66
37

query II rowsort
SELECT - 68, 29 + + - 17 AS col2
----
-68
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - 39 + 20 + + COUNT( * ) - 43
----
-61

skipif mysql # not compatible
query I rowsort label-9850
SELECT - 39 + 20 + + COUNT ( * ) - 43
----
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9851
SELECT + + 24 DIV - CAST( + - 17 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9851
SELECT + + 24 / - CAST ( + - 17 AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT + 84 * - 2 + 30 AS col1
----
-138

query I rowsort
SELECT ALL + 48 * 71 + 34 + 46 AS col1
----
3488

onlyif mysql # aggregate syntax: 
query II rowsort label-9854
SELECT + COUNT( * ), 42 col1
----
1
42

skipif mysql # not compatible
query II rowsort label-9854
SELECT + COUNT ( * ), 42 col1
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL + MAX( 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL + MAX ( 33 ) AS col2
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9856
SELECT DISTINCT + CASE + - COUNT( * ) WHEN - ( 65 ) * 50 THEN NULL ELSE CAST( CASE + 10 WHEN + 6 THEN NULL ELSE + ( + ( + 72 ) ) END AS SIGNED ) END * MAX( ALL - 47 + 65 ) + - NULLIF ( + 1, 80 / COALESCE ( + COUNT( * ) * 85, + COUNT( * ) * 89 ) )
----
1295

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + CASE + - COUNT ( * ) WHEN - ( 65 ) * 50 THEN NULL ELSE CAST ( CASE + 10 WHEN + 6 THEN NULL ELSE + ( + ( + 72 ) ) END AS INTEGER ) END * MAX ( ALL - 47 + 65 ) + - NULLIF ( + 1, 80 / COALESCE ( + COUNT ( * ) * 85, + COUNT ( * ) * 89 ) )
----
1295

query I rowsort
SELECT - 84 + - ( - COALESCE ( + 4, + + 24, 80, + 91 - 63 * 6 ) ) + + 22
----
-58

query I rowsort
SELECT DISTINCT + 54 * - - 72 + - 48 + - 73 - - 14 * 68 + - 97 * 79 AS col0
----
-2944

query I rowsort
SELECT + + 4 * + + ( + 89 ) + + 57
----
413

query I rowsort
SELECT ALL 55 * 13 + 21 + 22 * 97 AS col0
----
2870

query I rowsort
SELECT - 41 * + NULLIF ( 30, + 48 ) AS col1
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL + COUNT( * ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + COUNT ( * ) * - 0
----
0

query I rowsort
SELECT - 59 * - 57 - - - 93
----
3270

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT - MIN( - ( - 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-9864
SELECT - MIN ( - ( - 11 ) )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9865
SELECT ALL - + COUNT( * ) * MIN( DISTINCT 66 ) * + 97 * + 24 + + - CAST( 70 AS SIGNED ) + 67
----
-153651

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - + COUNT ( * ) * MIN ( DISTINCT 66 ) * + 97 * + 24 + + - CAST ( 70 AS INTEGER ) + 67
----
-153651

query II rowsort
SELECT DISTINCT + - 99 col0, + 37 + - 98 col0
----
-99
-61

query II rowsort
SELECT + - 96, 52 + + + 76 AS col2
----
-96
128

onlyif mysql # aggregate syntax: 
query II rowsort label-9868
SELECT + COUNT( * ) AS col1, + 19
----
1
19

skipif mysql # not compatible
query II rowsort label-9868
SELECT + COUNT ( * ) AS col1, + 19
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT + - 47 + + + 23 + + MIN( - - CASE + 74 WHEN - - ( 71 ) / + 79 THEN NULL ELSE + 71 * - 69 END ) AS col0
----
-4923

skipif mysql # not compatible
query I rowsort label-9869
SELECT + - 47 + + + 23 + + MIN ( - - CASE + 74 WHEN - - ( 71 ) / + 79 THEN NULL ELSE + 71 * - 69 END ) AS col0
----
-4923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9870
SELECT ALL - 54 * 35 DIV 70 + + MAX( 21 ) - - + 48
----
42

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - 54 * 35 / 70 + + MAX ( 21 ) - - + 48
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL - + CASE + - ( MIN( DISTINCT 15 ) ) WHEN + - 79 * - 83 * + 11 + 89 THEN 54 WHEN 15 * - 93 THEN NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - + CASE + - ( MIN ( DISTINCT 15 ) ) WHEN + - 79 * - 83 * + 11 + 89 THEN 54 WHEN 15 * - 93 THEN NULL END * - COUNT ( * )
----
NULL

query II rowsort
SELECT DISTINCT + + 65, + 26 AS col1
----
65
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL + MAX( ALL + 76 ) - 1 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + MAX ( ALL + 76 ) - 1 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT - NULLIF ( COUNT( * ), + 84 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9874
SELECT - NULLIF ( COUNT ( * ), + 84 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT + 5 * + 46, + CASE 25 WHEN CASE - COUNT( * ) WHEN - 45 THEN NULL ELSE 23 END THEN - 81 ELSE + 95 END + - 51 AS col2
----
230
44

skipif mysql # not compatible
query II rowsort label-9875
SELECT + 5 * + 46, + CASE 25 WHEN CASE - COUNT ( * ) WHEN - 45 THEN NULL ELSE 23 END THEN - 81 ELSE + 95 END + - 51 AS col2
----
230
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT ALL 11 DIV + - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL 11 / + - 64 AS col1
----
0

query I rowsort
SELECT + 22 + + 64 col2
----
86

query I rowsort
SELECT - CASE + 38 WHEN + 20 THEN - ( + - 64 ) WHEN - 46 THEN NULL ELSE + 0 END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT + 69 DIV 19 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9879
SELECT + 69 / 19 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9880
SELECT ALL COUNT( DISTINCT 83 ) DIV - ( - 91 ) DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL COUNT ( DISTINCT 83 ) / - ( - 91 ) / 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL COUNT( ALL + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL COUNT ( ALL + 44 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT COUNT( * ) * + 61 col1
----
61

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT COUNT ( * ) * + 61 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL 69 * ( COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL 69 * ( COUNT ( * ) )
----
69

query I rowsort
SELECT DISTINCT COALESCE ( + 89, - 23 + 12 + 99 ) * 84
----
7476

query I rowsort
SELECT + 51 - 85 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL COUNT( ALL - 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL COUNT ( ALL - 63 ) AS col2
----
1

query I rowsort
SELECT + 27 - + - 81 col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + 44 * COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-9888
SELECT + 44 * COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT + 3 + + 66 - 99 * - 10 * - - 99 * - COUNT( * )
----
-97941

skipif mysql # not compatible
query I rowsort label-9889
SELECT + 3 + + 66 - 99 * - 10 * - - 99 * - COUNT ( * )
----
-97941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9890
SELECT ALL - + ( 85 ) + + CASE + CAST( NULL AS SIGNED ) WHEN + + 92 THEN + COUNT( * ) WHEN - - 41 * NULLIF ( - 69, - 26 * - COUNT( ALL + 51 ) ) THEN 8 END + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - + ( 85 ) + + CASE + CAST ( NULL AS INTEGER ) WHEN + + 92 THEN + COUNT ( * ) WHEN - - 41 * NULLIF ( - 69, - 26 * - COUNT ( ALL + 51 ) ) THEN 8 END + - 11
----
NULL

query I rowsort
SELECT DISTINCT + + ( + - 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9892
SELECT ALL + 44 DIV - 57 + - + 39 * - 74 + + 36 + - - 68 * - 74 * MIN( 83 )
----
-414734

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL + 44 / - 57 + - + 39 * - 74 + + 36 + - - 68 * - 74 * MIN ( 83 )
----
-414734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9893
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) * COUNT( * ) * - + 53 DIV - + 52 + - + 25 - 3 DIV + 36
----
-24

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) * COUNT ( * ) * - + 53 / - + 52 + - + 25 - 3 / + 36
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT + - SUM( DISTINCT - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9894
SELECT + - SUM ( DISTINCT - 69 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT ALL 3 DIV - 41 + + - 93 - - 76
----
-17

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL 3 / - 41 + + - 93 - - 76
----
-17

query I rowsort
SELECT + NULLIF ( + - 80, + 78 )
----
-80

query I rowsort
SELECT + NULLIF ( - - ( - ( + 75 ) ), 18 ) * 85 * + - 85 + 33
----
541908

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT + MAX( 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9898
SELECT + MAX ( 97 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9899
SELECT + - CAST( - 21 AS SIGNED ) AS col2, - 65 DIV - 98 + 1 AS col0
----
21
1

skipif mysql # not compatible
query II rowsort label-9899
SELECT + - CAST ( - 21 AS INTEGER ) AS col2, - 65 / - 98 + 1 AS col0
----
21
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT - - 68 * + COUNT( * ) * - - 2
----
136

skipif mysql # not compatible
query I rowsort label-9900
SELECT - - 68 * + COUNT ( * ) * - - 2
----
136

query I rowsort
SELECT - + 93 - - 32 col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9902
SELECT ALL + 64 * 27 - - 11 + + 69 DIV COUNT( * ) AS col2
----
1808

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + 64 * 27 - - 11 + + 69 / COUNT ( * ) AS col2
----
1808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9903
SELECT DISTINCT 33 * + + 94 AS col1, 5 * - + 3 + - COALESCE ( - 77, + + 98 * COUNT( * ), CAST( + AVG ( + 11 ) AS SIGNED ) + - 93 DIV - 51 ) * 87
----
3102
6684

skipif mysql # not compatible
query II rowsort label-9903
SELECT DISTINCT 33 * + + 94 AS col1, 5 * - + 3 + - COALESCE ( - 77, + + 98 * COUNT ( * ), CAST ( + AVG ( + 11 ) AS INTEGER ) + - 93 / - 51 ) * 87
----
3102
6684

query I rowsort
SELECT - 53 * 59
----
-3127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT - 23 * + + 10 * - 31 * - CAST( + 15 AS SIGNED )
----
-106950

skipif mysql # not compatible
query I rowsort label-9905
SELECT - 23 * + + 10 * - 31 * - CAST ( + 15 AS INTEGER )
----
-106950

query I rowsort
SELECT + NULLIF ( 71, - - 20 * ( - ( + + 46 ) ) + + 43 ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT CASE 54 WHEN + COUNT( 37 ) * - 26 / 49 THEN NULL WHEN - 86 THEN + 50 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT CASE 54 WHEN + COUNT ( 37 ) * - 26 / 49 THEN NULL WHEN - 86 THEN + 50 END AS col1
----
NULL

query I rowsort
SELECT - ( 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT - 93 * - SUM( + 67 )
----
6231

skipif mysql # not compatible
query I rowsort label-9909
SELECT - 93 * - SUM ( + 67 )
----
6231

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT - 11 - + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9910
SELECT - 11 - + COUNT ( * )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT - 2 * - 69 * + CAST( - 35 AS SIGNED ) AS col0
----
-4830

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT - 2 * - 69 * + CAST ( - 35 AS INTEGER ) AS col0
----
-4830

query I rowsort
SELECT ALL 57 + - 25
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT COUNT( * ) + + - 26 col1
----
-25

skipif mysql # not compatible
query I rowsort label-9913
SELECT COUNT ( * ) + + - 26 col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9914
SELECT DISTINCT + ( - 62 ) + + + COUNT( * ) + - CAST( - 87 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT + ( - 62 ) + + + COUNT ( * ) + - CAST ( - 87 AS INTEGER )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT 18 + + ( - 58 ) + + - 31 - + + 77 * + COUNT( * ) + 27 * COUNT( * ) * - 95 AS col1
----
-2713

skipif mysql # not compatible
query I rowsort label-9915
SELECT 18 + + ( - 58 ) + + - 31 - + + 77 * + COUNT ( * ) + 27 * COUNT ( * ) * - 95 AS col1
----
-2713

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9916
SELECT DISTINCT 10 AS col0, CAST( NULL AS SIGNED ) col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-9916
SELECT DISTINCT 10 AS col0, CAST ( NULL AS INTEGER ) col0
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL ( 83 ) + - SUM( ALL + 62 )
----
21

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL ( 83 ) + - SUM ( ALL + 62 )
----
21

query I rowsort
SELECT 27 + - 44 + - + 88 * - - 20
----
-1777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9919
SELECT CASE 9 WHEN + 95 THEN NULL WHEN + + COUNT( * ) * - CAST( NULL AS SIGNED ) THEN + + 60 ELSE NULL END - - ( - 82 ) * + COALESCE ( + 6 + 90, - CASE 25 WHEN + 10 * 78 + 6 THEN 35 END - - 98 * 94, + COALESCE ( 78, NULLIF ( COUNT( * ), 12 * - 28 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT CASE 9 WHEN + 95 THEN NULL WHEN + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN + + 60 ELSE NULL END - - ( - 82 ) * + COALESCE ( + 6 + 90, - CASE 25 WHEN + 10 * 78 + 6 THEN 35 END - - 98 * 94, + COALESCE ( 78, NULLIF ( COUNT ( * ), 12 * - 28 ) ) ) AS col1
----
NULL

query I rowsort
SELECT 37 + + + 84
----
121

query I rowsort
SELECT 72 + - ( + + 46 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - COUNT( * ) * - 26 + - 56 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9922
SELECT - COUNT ( * ) * - 26 + - 56 AS col0
----
-30

query I rowsort
SELECT DISTINCT + 90 + ( + - 5 ) + - 49 - - 19 + - ( - 10 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9924
SELECT ALL COUNT( * ), + 11 + + ( + ( 42 ) ) - 58 AS col2
----
1
-5

skipif mysql # not compatible
query II rowsort label-9924
SELECT ALL COUNT ( * ), + 11 + + ( + ( 42 ) ) - 58 AS col2
----
1
-5

query I rowsort
SELECT ALL + 57 + - - 28
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT DISTINCT 31 * - 90 DIV ( + 44 ) DIV - 87 - 72 + - - 66 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9926
SELECT DISTINCT 31 * - 90 / ( + 44 ) / - 87 - 72 + - - 66 AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT + 71 + + 6 - - + 14 DIV + + 64 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9927
SELECT + 71 + + 6 - - + 14 / + + 64 AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT ALL - + 54, COALESCE ( + 58, COUNT( DISTINCT 71 ) + 65 * ( + 70 ) ) * + 53 + COUNT( * ) AS col1
----
-54
3075

skipif mysql # not compatible
query II rowsort label-9928
SELECT ALL - + 54, COALESCE ( + 58, COUNT ( DISTINCT 71 ) + 65 * ( + 70 ) ) * + 53 + COUNT ( * ) AS col1
----
-54
3075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9929
SELECT + COUNT( * ) DIV COALESCE ( - 28, + + COUNT( * ), ( + COALESCE ( 75, + + 0, - 43 * + 51 + 32 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9929
SELECT + COUNT ( * ) / COALESCE ( - 28, + + COUNT ( * ), ( + COALESCE ( 75, + + 0, - 43 * + 51 + 32 ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9930
SELECT CAST( - 18 AS SIGNED ) DIV - + 25 AS col2, 22 DIV 62 AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-9930
SELECT CAST ( - 18 AS INTEGER ) / - + 25 AS col2, 22 / 62 AS col1
----
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9931
SELECT + - CASE + + 94 WHEN + 99 THEN NULL WHEN + - NULLIF ( + 98, ( + COUNT( * ) ) ) * - - 59 * 85 THEN CASE - 95 WHEN ( + 93 ) THEN + ( + 46 ) WHEN COALESCE ( 47, + 87 * 68, 37 + CAST( - AVG ( DISTINCT 10 ) AS SIGNED ) ) THEN + 12 * + COALESCE ( + 62 DIV MAX( - 13 ), COUNT( * ) * - 67 ) ELSE + 62 * - 26 END ELSE + 91 END * + 81 + - 85
----
-7456

skipif mysql # not compatible
query I rowsort label-9931
SELECT + - CASE + + 94 WHEN + 99 THEN NULL WHEN + - NULLIF ( + 98, ( + COUNT ( * ) ) ) * - - 59 * 85 THEN CASE - 95 WHEN ( + 93 ) THEN + ( + 46 ) WHEN COALESCE ( 47, + 87 * 68, 37 + CAST ( - AVG ( DISTINCT 10 ) AS INTEGER ) ) THEN + 12 * + COALESCE ( + 62 / MAX ( - 13 ), COUNT ( * ) * - 67 ) ELSE + 62 * - 26 END ELSE + 91 END * + 81 + - 85
----
-7456

query I rowsort
SELECT DISTINCT 72 - + + 88 AS col0
----
-16

query I rowsort
SELECT ALL - - ( - + ( + 87 ) ) col1
----
-87

query I rowsort
SELECT 97 + + - 33 - - + NULLIF ( + - 73, - 65 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT - 73 * + + 93 * - COUNT( * ) * - - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT - 73 * + + 93 * - COUNT ( * ) * - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL - MIN( DISTINCT - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL - MIN ( DISTINCT - 65 )
----
65

query I rowsort
SELECT DISTINCT 61 * - 7
----
-427

query II rowsort
SELECT ALL - + 65 AS col2, 1 AS col1
----
-65
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9939
SELECT + - 76, - 41 * - 54 * CASE + 11 WHEN - COALESCE ( - - 97, 23 + COUNT( * ) ) * 51 + 57 * 12 THEN 4 * + 4 WHEN 69 / - 58 THEN 39 ELSE 21 END AS col0
----
-76
46494

skipif mysql # not compatible
query II rowsort label-9939
SELECT + - 76, - 41 * - 54 * CASE + 11 WHEN - COALESCE ( - - 97, 23 + COUNT ( * ) ) * 51 + 57 * 12 THEN 4 * + 4 WHEN 69 / - 58 THEN 39 ELSE 21 END AS col0
----
-76
46494

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9940
SELECT + ( + 86 ) DIV 56 * - - COUNT( * ) col0, + 19
----
1
19

skipif mysql # not compatible
query II rowsort label-9940
SELECT + ( + 86 ) / 56 * - - COUNT ( * ) col0, + 19
----
1
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9941
SELECT CAST( NULL AS SIGNED ) * + + MAX( - 99 ) - 13 - + - COUNT( + 53 ) * + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT CAST ( NULL AS INTEGER ) * + + MAX ( - 99 ) - 13 - + - COUNT ( + 53 ) * + 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT - 28 * 17 * + + MAX( - - 62 ) + - + 21 AS col1, - 58 * + 10 * COUNT( * ) * - 36 * COUNT( * )
----
-29533
20880

skipif mysql # not compatible
query II rowsort label-9942
SELECT - 28 * 17 * + + MAX ( - - 62 ) + - + 21 AS col1, - 58 * + 10 * COUNT ( * ) * - 36 * COUNT ( * )
----
-29533
20880

query II rowsort
SELECT 38 + + 5 AS col1, 88 AS col1
----
43
88

query I rowsort
SELECT ALL - ( - - 22 ) AS col1
----
-22

query I rowsort
SELECT - 65 * - 23 + + 99 AS col1
----
1594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT - CAST( - 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - CAST ( - 68 AS INTEGER )
----
68

query I rowsort
SELECT 37 * + + 52
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT DISTINCT + ( 37 ) + 57 * - COUNT( 77 ) * + CASE 1 WHEN + 84 * - 15 + - 60 / 8 THEN + 45 END / 41 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT + ( 37 ) + 57 * - COUNT ( 77 ) * + CASE 1 WHEN + 84 * - 15 + - 60 / 8 THEN + 45 END / 41 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT ALL + COUNT( 74 ) + - - 27 * + ( CAST( + - 69 AS SIGNED ) )
----
-1862

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL + COUNT ( 74 ) + - - 27 * + ( CAST ( + - 69 AS INTEGER ) )
----
-1862

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT 27 DIV - 13 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9950
SELECT 27 / - 13 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT ALL - COUNT( * ) * - 11
----
11

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - COUNT ( * ) * - 11
----
11

query I rowsort
SELECT 37 * - 14 AS col2
----
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL - ( - 5 ) + + + 83 * - 5 * ( - SUM( ALL 34 ) ) * + 24 * + + 12 - 0 AS col0
----
4063685

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL - ( - 5 ) + + + 83 * - 5 * ( - SUM ( ALL 34 ) ) * + 24 * + + 12 - 0 AS col0
----
4063685

query I rowsort
SELECT ALL 68 + + 93 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT SUM( DISTINCT 97 ) * 92
----
8924

skipif mysql # not compatible
query I rowsort label-9955
SELECT SUM ( DISTINCT 97 ) * 92
----
8924

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL + - ( + + 84 ) * + 30 + + NULLIF ( 2, - + COUNT( DISTINCT + 41 ) ) AS col1
----
-2518

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL + - ( + + 84 ) * + 30 + + NULLIF ( 2, - + COUNT ( DISTINCT + 41 ) ) AS col1
----
-2518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9957
SELECT ALL CASE COALESCE ( - 1, + 7 ) WHEN CAST( + 1 AS SIGNED ) THEN + 39 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL CASE COALESCE ( - 1, + 7 ) WHEN CAST ( + 1 AS INTEGER ) THEN + 39 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 76 - 42 AS col2
----
34

query I rowsort
SELECT - COALESCE ( + 33, + NULLIF ( 73, 96 ) * - + 84 ) AS col1
----
-33

query I rowsort
SELECT - CASE - 19 WHEN - 80 THEN NULL WHEN CASE 40 WHEN - 26 * + - 32 THEN + 83 * + 27 * + 35 + - 5 END THEN + 48 END - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT - COUNT( * ) + + - 51 + - 28
----
-80

skipif mysql # not compatible
query I rowsort label-9961
SELECT - COUNT ( * ) + + - 51 + - 28
----
-80

query I rowsort
SELECT ALL CASE + 38 WHEN - 3 / + + 56 THEN + + 50 + + 50 + - 31 * + 86 ELSE - + 94 END * 47 AS col1
----
-4418

query I rowsort
SELECT + 30 * - 45 AS col1
----
-1350

onlyif mysql # aggregate syntax: 
query II rowsort label-9964
SELECT ALL - ( 53 ), MAX( DISTINCT 81 ) * - 12 * COUNT( * ) - + 82 * SUM( - - ( - 91 ) ) - MAX( + 45 ) AS col2
----
-53
6445

skipif mysql # not compatible
query II rowsort label-9964
SELECT ALL - ( 53 ), MAX ( DISTINCT 81 ) * - 12 * COUNT ( * ) - + 82 * SUM ( - - ( - 91 ) ) - MAX ( + 45 ) AS col2
----
-53
6445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9965
SELECT 81 - 22 + - 55 * CAST( NULL AS SIGNED ) * + 88 AS col1, ( 20 ) + + - 60 - + MIN( DISTINCT 23 ) AS col1
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-9965
SELECT 81 - 22 + - 55 * CAST ( NULL AS INTEGER ) * + 88 AS col1, ( 20 ) + + - 60 - + MIN ( DISTINCT 23 ) AS col1
----
NULL
-63

query II rowsort
SELECT ALL - 85 * 28 AS col0, 2 AS col1
----
-2380
2

query I rowsort
SELECT 12 * + 16 AS col2
----
192

query I rowsort
SELECT - 64 * - 48 + 94
----
3166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT DISTINCT + COUNT( DISTINCT + 59 ) * + ( - 20 ) + + COUNT( ALL + - 31 ) + + 43 + + COALESCE ( 12, 38 + + 95 * + CAST( NULL AS SIGNED ), + COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT + COUNT ( DISTINCT + 59 ) * + ( - 20 ) + + COUNT ( ALL + - 31 ) + + 43 + + COALESCE ( 12, 38 + + 95 * + CAST ( NULL AS INTEGER ), + COUNT ( * ) )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9970
SELECT ALL 50 * - COALESCE ( 71, 20 * + 45 - + 35 + + + 93 * 61 * 68, 61 - - 60 ) * CAST( - 76 DIV - SUM( 8 ) + - COUNT( * ) AS SIGNED ) + + COUNT( * ) AS col2
----
-28399

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL 50 * - COALESCE ( 71, 20 * + 45 - + 35 + + + 93 * 61 * 68, 61 - - 60 ) * CAST ( - 76 / - SUM ( 8 ) + - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) AS col2
----
-28399

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT 91 * 66 DIV - 59
----
-101

skipif mysql # not compatible
query I rowsort label-9971
SELECT 91 * 66 / - 59
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT NULLIF ( + COUNT( * ), + COUNT( * ) ) * - 96 + - 8 * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT NULLIF ( + COUNT ( * ), + COUNT ( * ) ) * - 96 + - 8 * 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT 41 - - 94 + 47 - - + COUNT( * ) * 77 + + 87 + + 16
----
362

skipif mysql # not compatible
query I rowsort label-9973
SELECT 41 - - 94 + 47 - - + COUNT ( * ) * 77 + + 87 + + 16
----
362

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT MAX( + - 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9974
SELECT MAX ( + - 31 ) AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9975
SELECT ALL 68 * - + 30 + + CAST( NULL AS SIGNED ) AS col0, + 53
----
NULL
53

skipif mysql # not compatible
query II rowsort label-9975
SELECT ALL 68 * - + 30 + + CAST ( NULL AS INTEGER ) AS col0, + 53
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + MAX( ALL + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9976
SELECT + MAX ( ALL + 73 )
----
73

query I rowsort
SELECT ALL + NULLIF ( + NULLIF ( 64, - NULLIF ( AVG ( ALL + 44 ), + + AVG ( - - 62 ) ) ), + + 8 ) * - 66 + 79
----
-4145

query I rowsort
SELECT + 87 * + 79 * 69 * + - 2 AS col0
----
-948474

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT ( 87 ) * - + 80 + - - COUNT( * ) col2
----
-6959

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT ( 87 ) * - + 80 + - - COUNT ( * ) col2
----
-6959

query I rowsort
SELECT - COALESCE ( + + 24, + 88 + + + 4 ) * + 64 + + + 6 AS col0
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - 42 * - COUNT( * ) + - 10 * - - 63
----
-588

skipif mysql # not compatible
query I rowsort label-9981
SELECT - 42 * - COUNT ( * ) + - 10 * - - 63
----
-588

query II rowsort
SELECT DISTINCT + 98, 39 AS col0
----
98
39

query I rowsort
SELECT ALL - 30 * - 97 AS col0
----
2910

query I rowsort
SELECT - 10 * + + 57 AS col1
----
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT + 80 + - 86 - 48 + + + CAST( + + 88 AS SIGNED ) + - 39 col1
----
-5

skipif mysql # not compatible
query I rowsort label-9985
SELECT + 80 + - 86 - 48 + + + CAST ( + + 88 AS INTEGER ) + - 39 col1
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9986
SELECT ALL + 58 + + 54 * - 86 - - 28 * + 46 / CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL + 58 + + 54 * - 86 - - 28 * + 46 / CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - 56 * + 84 col1
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL 80 - - COUNT( * ) - + 76 + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL 80 - - COUNT ( * ) - + 76 + COUNT ( * ) AS col2
----
6

query I rowsort
SELECT + + 52 * 1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9990
SELECT ALL - 41 DIV + 68 * - + ( - NULLIF ( 35, - - 37 + - 23 * - COUNT( * ) ) ) + 25 * COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - 41 / + 68 * - + ( - NULLIF ( 35, - - 37 + - 23 * - COUNT ( * ) ) ) + 25 * COUNT ( * ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT + 78 + NULLIF ( - - 29, + COUNT( * ) * + COUNT( * ) ), 21 col2
----
107
21

skipif mysql # not compatible
query II rowsort label-9991
SELECT + 78 + NULLIF ( - - 29, + COUNT ( * ) * + COUNT ( * ) ), 21 col2
----
107
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9992
SELECT - COUNT( * ) DIV 36 + + + 92
----
92

skipif mysql # not compatible
query I rowsort label-9992
SELECT - COUNT ( * ) / 36 + + + 92
----
92

query I rowsort
SELECT DISTINCT + - 33 * - 78
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + SUM( + + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-9994
SELECT + SUM ( + + 72 )
----
72

query I rowsort
SELECT - - 94 * + 36
----
3384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9996
SELECT ALL - COALESCE ( - 98, + + 4, + 43 + - 52 + + CAST( + 88 AS SIGNED ) * - CASE COUNT( * ) WHEN + 21 THEN - 33 * 25 END * 5 )
----
98

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL - COALESCE ( - 98, + + 4, + 43 + - 52 + + CAST ( + 88 AS INTEGER ) * - CASE COUNT ( * ) WHEN + 21 THEN - 33 * 25 END * 5 )
----
98

query I rowsort
SELECT - + 20 + - 62
----
-82

query II rowsort
SELECT DISTINCT + 24, - 90 AS col2
----
24
-90

query I rowsort
SELECT - 64 * - ( + 8 ) + + 96 AS col2
----
608

