sqllogictest
Artifact Content
Not logged in

Artifact 93f22704de1dbb17352467e061a58e382e6e3d2c:


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 + - NULLI