sqllogictest
Artifact Content
Not logged in

Artifact 3bce6156080d297086837112712564a502af8a96:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT + 11 AS col1, - 94 + 54
----
11
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1
SELECT DISTINCT + COALESCE ( 42, - - COUNT( + 41 ) * + CAST( NULL AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT + COALESCE ( 42, - - COUNT ( + 41 ) * + CAST ( NULL AS INTEGER ) )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT 9 DIV + 92 + - 43 * - + COUNT( * ) * - 98
----
-4214

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT 9 / + 92 + - 43 * - + COUNT ( * ) * - 98
----
-4214

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT DISTINCT + 43 * - + MAX( - 10 ) * + COALESCE ( + 50, - + 36 + - 39 + - 27 - + 93 ) + + 95 AS col0
----
21595

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + 43 * - + MAX ( - 10 ) * + COALESCE ( + 50, - + 36 + - 39 + - 27 - + 93 ) + + 95 AS col0
----
21595

query I rowsort
SELECT DISTINCT + 54 * - 12 AS col2
----
-648

query I rowsort
SELECT 50 + + 62 * 57
----
3584

query I rowsort
SELECT 59 + + - 98 + COALESCE ( - 65, - 94 + 22 ) AS col1
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7
SELECT ALL 74 + 82 AS col1, + COUNT( * ) + - 43 DIV 60 AS col2
----
156
1

skipif mysql # not compatible
query II rowsort label-7
SELECT ALL 74 + 82 AS col1, + COUNT ( * ) + - 43 / 60 AS col2
----
156
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8
SELECT ALL + 0 + + + 78 + 44 * - - 48 * - 35 * COUNT( * ) * - - 76 * 75 DIV - - 2
----
-210671922

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL + 0 + + + 78 + 44 * - - 48 * - 35 * COUNT ( * ) * - - 76 * 75 / - - 2
----
-210671922

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL - 37 * - - COUNT( * ) * + + 96 AS col2
----
-3552

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - 37 * - - COUNT ( * ) * + + 96 AS col2
----
-3552

query I rowsort
SELECT DISTINCT + 82 + 31
----
113

query I rowsort
SELECT ALL 38 + - 82
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-12
SELECT CAST( - 76 AS SIGNED ) * - SUM( DISTINCT - ( + 11 ) ) + - 94 + 32 - - + ( 42 ) + 21 * - COUNT( * ) * 81 AS col1
----
-2557

skipif mysql # not compatible
query I rowsort label-12
SELECT CAST ( - 76 AS INTEGER ) * - SUM ( DISTINCT - ( + 11 ) ) + - 94 + 32 - - + ( 42 ) + 21 * - COUNT ( * ) * 81 AS col1
----
-2557

query I rowsort
SELECT 10 * 48
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-14
SELECT DISTINCT 8 DIV + 80 col0
----
0

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT 8 / + 80 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-15
SELECT 1 DIV + 50 * - ( COUNT( ALL - 78 ) ) - - COUNT( * ) + + - 5 + + ( + COUNT( * ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-15
SELECT 1 / + 50 * - ( COUNT ( ALL - 78 ) ) - - COUNT ( * ) + + - 5 + + ( + COUNT ( * ) ) AS col2
----
-3

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

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

query I rowsort
SELECT - 74 * 4 + + 23 col1
----
-273

onlyif mysql # aggregate syntax: 
query II rowsort label-18
SELECT ALL + 15 * + 27 AS col1, + COUNT( * ) + + 66
----
405
67

skipif mysql # not compatible
query II rowsort label-18
SELECT ALL + 15 * + 27 AS col1, + COUNT ( * ) + + 66
----
405
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-19
SELECT DISTINCT + 57 * 96 * - 23 * - 2 * + 22 + - 67 * - 87 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT + 57 * 96 * - 23 * - 2 * + 22 + - 67 * - 87 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 12 * + - 79 + 92 AS col0
----
-856

query I rowsort
SELECT 17 + + - ( - 13 ) col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL 26 * + 14 + + - 9 * - CAST( NULL AS SIGNED ) * + + 83 + - 82 + 78 * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL 26 * + 14 + + - 9 * - CAST ( NULL AS INTEGER ) * + + 83 + - 82 + 78 * 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT COUNT( * ) * - - 84 * + ( + 32 )
----
2688

skipif mysql # not compatible
query I rowsort label-23
SELECT COUNT ( * ) * - - 84 * + ( + 32 )
----
2688

onlyif mysql # aggregate syntax: 
query II rowsort label-24
SELECT - ( - 15 ) * + COUNT( * ) + 42 + - 91 AS col2, 62
----
-34
62

skipif mysql # not compatible
query II rowsort label-24
SELECT - ( - 15 ) * + COUNT ( * ) + 42 + - 91 AS col2, 62
----
-34
62

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT - 82 * + - 26 + - MAX( + 69 ) * 27
----
269

skipif mysql # not compatible
query I rowsort label-25
SELECT - 82 * + - 26 + - MAX ( + 69 ) * 27
----
269

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

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

query I rowsort
SELECT ALL 15 + + + NULLIF ( - ( + 50 ), + 86 / - - AVG ( - 69 ) * + - 82 * - 20 + - ( 38 + 68 / + 1 ) ) * 55 AS col2
----
-2735

query I rowsort
SELECT ALL + 14 + + 31 + 88 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT COUNT( * ) + - 59 * - + 98 col0
----
5783

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT COUNT ( * ) + - 59 * - + 98 col0
----
5783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT - 86 * - ( - 85 ) + + + COUNT( * ) + - 3 * - + 46 DIV 23 * 48 AS col2
----
-7021

skipif mysql # not compatible
query I rowsort label-30
SELECT - 86 * - ( - 85 ) + + + COUNT ( * ) + - 3 * - + 46 / 23 * 48 AS col2
----
-7021

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT COUNT( * ) * - 81 + - MAX( 47 ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-31
SELECT COUNT ( * ) * - 81 + - MAX ( 47 ) AS col0
----
-128

query I rowsort
SELECT ALL - COALESCE ( - 89, - 6 + 81 ) + 61
----
150

query II rowsort
SELECT 6 AS col0, - 96
----
6
-96

query I rowsort
SELECT 89 * - - 36 col0
----
3204

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT 95 + + COUNT( * ) col1
----
96

skipif mysql # not compatible
query I rowsort label-35
SELECT 95 + + COUNT ( * ) col1
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-36
SELECT DISTINCT + 95 + - ( - + 54 ), 53 DIV + 43 AS col1
----
149
1

skipif mysql # not compatible
query II rowsort label-36
SELECT DISTINCT + 95 + - ( - + 54 ), 53 / + 43 AS col1
----
149
1

query I rowsort
SELECT DISTINCT + 14 + 82
----
96

query I rowsort
SELECT 79 * - 6 col1
----
-474

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT 85 + + ( - 76 ) + + 22 + - 32 DIV - 58 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-39
SELECT 85 + + ( - 76 ) + + 22 + - 32 / - 58 AS col1
----
31

query I rowsort
SELECT 78 * + + 24 AS col0
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL - COUNT( * ) * - + 53 * 56
----
2968

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL - COUNT ( * ) * - + 53 * 56
----
2968

query I rowsort
SELECT 20 + + - 44
----
-24

query I rowsort
SELECT ALL 84 * - 62
----
-5208

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

query I rowsort
SELECT ALL - 6 * + 90
----
-540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-46
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) / + CASE - 28 WHEN - 68 THEN 80 WHEN + 37 THEN NULL WHEN - 67 THEN - 1 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-46
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) / + CASE - 28 WHEN - 68 THEN 80 WHEN + 37 THEN NULL WHEN - 67 THEN - 1 ELSE NULL END
----
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - ( + 78 ) * + - 13 AS col1
----
1014

query I rowsort
SELECT ALL - ( + ( 42 ) ) * - + 8 AS col2
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL - MAX( DISTINCT + + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL - MAX ( DISTINCT + + 24 ) AS col2
----
-24

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-52
SELECT + ( + 38 ) DIV + + MAX( + 99 ) * - + 58 + - 71
----
-71

skipif mysql # not compatible
query I rowsort label-52
SELECT + ( + 38 ) / + + MAX ( + 99 ) * - + 58 + - 71
----
-71

query I rowsort
SELECT ALL + 71 * 46 * + + 67 + + - 5 + - 7
----
218810

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT - - ( + CASE + - 54 WHEN 57 + - CASE - 96 WHEN + 57 + 36 - MAX( ALL 1 ) THEN + 10 END * + ( - 19 * CASE COALESCE ( + NULLIF ( 66, + 83 ), 23 + 32 ) WHEN 25 THEN NULL WHEN 9 - COALESCE ( 79 + 16, ( + 14 ) * ( - COUNT( * ) * 53 ) - + 30 ) * NULLIF ( - SUM( DISTINCT 92 ), 32 / 57 ) THEN NULLIF ( + NULLIF ( - 28, 0 * COUNT( * ) + 83 ), + NULLIF ( 88, - 18 + - 42 ) * - 30 ) + 77 END ) THEN - 53 * + 68 WHEN 2 THEN - 0 * - 10 END ) * COUNT( * ) + - MIN( 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT - - ( + CASE + - 54 WHEN 57 + - CASE - 96 WHEN + 57 + 36 - MAX ( ALL 1 ) THEN + 10 END * + ( - 19 * CASE COALESCE ( + NULLIF ( 66, + 83 ), 23 + 32 ) WHEN 25 THEN NULL WHEN 9 - COALESCE ( 79 + 16, ( + 14 ) * ( - COUNT ( * ) * 53 ) - + 30 ) * NULLIF ( - SUM ( DISTINCT 92 ), 32 / 57 ) THEN NULLIF ( + NULLIF ( - 28, 0 * COUNT ( * ) + 83 ), + NULLIF ( 88, - 18 + - 42 ) * - 30 ) + 77 END ) THEN - 53 * + 68 WHEN 2 THEN - 0 * - 10 END ) * COUNT ( * ) + - MIN ( 52 ) AS col2
----
NULL

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

query I rowsort
SELECT ALL 46 * + + 34 AS col0
----
1564

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-57
SELECT - COALESCE ( - + 43, + - 88 * + 12, - 94 * - + CAST( - - 56 AS SIGNED ) DIV ( 44 ) ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-57
SELECT - COALESCE ( - + 43, + - 88 * + 12, - 94 * - + CAST ( - - 56 AS INTEGER ) / ( 44 ) ) / 61
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-58
SELECT - 80 * 56 + COUNT( * ) DIV - COUNT( ALL + + 83 )
----
-4481

skipif mysql # not compatible
query I rowsort label-58
SELECT - 80 * 56 + COUNT ( * ) / - COUNT ( ALL + + 83 )
----
-4481

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT DISTINCT - 54 * - COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT - 54 * - COUNT ( * ) AS col2
----
54

query I rowsort
SELECT ALL + ( + + 64 ) + 18 + + 96 * 73 * - + ( - NULLIF ( + + 27, 88 / + 21 * 26 ) ) col0
----
189298

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT COUNT( * ) - - 4
----
5

skipif mysql # not compatible
query I rowsort label-61
SELECT COUNT ( * ) - - 4
----
5

query I rowsort
SELECT ALL 26 * + 88 + + 42 AS col2
----
2330

query I rowsort
SELECT + 65 * - 76 AS col1
----
-4940

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

skipif mysql # not compatible
query I rowsort label-64
SELECT + + CAST ( NULL AS INTEGER ) * + + 52 - 85
----
NULL

query I rowsort
SELECT + + CASE - 77 WHEN - 17 THEN - - 48 * + + 70 + - 80 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-66
SELECT ALL - COUNT( * ) + - - 21 * - CAST( + 44 AS SIGNED ) AS col2
----
-925

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL - COUNT ( * ) + - - 21 * - CAST ( + 44 AS INTEGER ) AS col2
----
-925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-67
SELECT ALL + 27 + + 98 + + CAST( NULL AS DECIMAL ) + + + 28 + - 8 * - 14 + - 75 - + NULLIF ( - 35, + 33 - 13 ) * 17 * COALESCE ( + COUNT( * ), + CAST( - 46 AS SIGNED ) ) * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL + 27 + + 98 + + CAST ( NULL AS REAL ) + + + 28 + - 8 * - 14 + - 75 - + NULLIF ( - 35, + 33 - 13 ) * 17 * COALESCE ( + COUNT ( * ), + CAST ( - 46 AS INTEGER ) ) * 8 AS col2
----
NULL

query I rowsort
SELECT + + 22 + - 13
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-69
SELECT - COALESCE ( - - COUNT( * ), + 59 DIV 71, + COUNT( * ) * 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-69
SELECT - COALESCE ( - - COUNT ( * ), + 59 / 71, + COUNT ( * ) * 76 )
----
-1

query I rowsort
SELECT ALL 97 * 89 * 48
----
414384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-71
SELECT DISTINCT + 64 - + 93, - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + ( 95 ) AS col2
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-71
SELECT DISTINCT + 64 - + 93, - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + ( 95 ) AS col2
----
-29
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-72
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), + 17 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-72
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), + 17 ) col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-73
SELECT ALL COUNT( * ), - COUNT( * ) * + CAST( 75 AS SIGNED ) + + + 74 * + 47 * - 85 AS col1
----
1
-295705

skipif mysql # not compatible
query II rowsort label-73
SELECT ALL COUNT ( * ), - COUNT ( * ) * + CAST ( 75 AS INTEGER ) + + + 74 * + 47 * - 85 AS col1
----
1
-295705

query I rowsort
SELECT - 61 * 99 AS col0
----
-6039

query I rowsort
SELECT - ( - - 64 ) + 31 AS col2
----
-33

query I rowsort
SELECT DISTINCT CASE + COALESCE ( + 52, + - 27 + + 45, - 17 + 58 ) WHEN + + 55 THEN NULL WHEN + 3 * - NULLIF ( + - 88, - 82 ) + 23 THEN + 7 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT ALL COALESCE ( SUM( - 57 ), - ( - ( + - 33 ) ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL COALESCE ( SUM ( - 57 ), - ( - ( + - 33 ) ) ) AS col2
----
-57

query I rowsort
SELECT - 49 + + - ( + 43 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT ALL CASE - - 71 WHEN - 2 + - 88 THEN - 17 * + 0 - 4 - ( - 83 ) + COUNT( * ) WHEN + 66 / 46 THEN NULLIF ( + 27, - 10 ) + 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL CASE - - 71 WHEN - 2 + - 88 THEN - 17 * + 0 - 4 - ( - 83 ) + COUNT ( * ) WHEN + 66 / 46 THEN NULLIF ( + 27, - 10 ) + 9 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - 43 - 74 + - SUM( DISTINCT - 54 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-80
SELECT - 43 - 74 + - SUM ( DISTINCT - 54 ) col2
----
-63

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

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

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

query II rowsort
SELECT - 19 + - 5, + 37 AS col2
----
-24
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-84
SELECT ALL COALESCE ( + - 84, - COUNT( * ) DIV 0, - COUNT( * ) )
----
-84

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL COALESCE ( + - 84, - COUNT ( * ) / 0, - COUNT ( * ) )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT ALL + NULLIF ( 90, - 5 * + + 99 * - 95 + + 33 + 70 ) DIV 82 * 54 * + + 87
----
4698

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL + NULLIF ( 90, - 5 * + + 99 * - 95 + + 33 + 70 ) / 82 * 54 * + + 87
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT DISTINCT COALESCE ( - 86, 5, 35 * 86 + + ( - NULLIF ( 65, COALESCE ( - - 80, - 87 + - 85 ) / 99 ) ) + 37 * NULLIF ( - NULLIF ( - COUNT( * ), - 76 ) * 59, - ( + 94 ) + 72 ) + - 37 * 38 )
----
-86

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT COALESCE ( - 86, 5, 35 * 86 + + ( - NULLIF ( 65, COALESCE ( - - 80, - 87 + - 85 ) / 99 ) ) + 37 * NULLIF ( - NULLIF ( - COUNT ( * ), - 76 ) * 59, - ( + 94 ) + 72 ) + - 37 * 38 )
----
-86

query I rowsort
SELECT - 32 * + 82 + 19 + - - 30 col2
----
-2575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT ALL + 25 DIV SUM( ALL + - 12 ) + - 33
----
-35

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL + 25 / SUM ( ALL + - 12 ) + - 33
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT ( - - 18 ) DIV + 8 + 51
----
53

skipif mysql # not compatible
query I rowsort label-89
SELECT ( - - 18 ) / + 8 + 51
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-90
SELECT - 91 + - COUNT( * ), + CAST( NULL AS SIGNED ) * + MIN( - 16 ) * 30 AS col2
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-90
SELECT - 91 + - COUNT ( * ), + CAST ( NULL AS INTEGER ) * + MIN ( - 16 ) * 30 AS col2
----
-92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT + 19 * + 89 * + ( - + COUNT( * ) ) - + - 5 - + COALESCE ( + 17, - + COUNT( * ) )
----
-1703

skipif mysql # not compatible
query I rowsort label-91
SELECT + 19 * + 89 * + ( - + COUNT ( * ) ) - + - 5 - + COALESCE ( + 17, - + COUNT ( * ) )
----
-1703

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ALL - 10 * - 73 + NULLIF ( - + COALESCE ( + 10, + - 12 + COUNT( * ), - 88 ), - + 85 + + 80 ) + + + 97 * - 37 * 4 AS col0
----
-13636

skipif mysql # not compatible
query I rowsort label-92
SELECT ALL - 10 * - 73 + NULLIF ( - + COALESCE ( + 10, + - 12 + COUNT ( * ), - 88 ), - + 85 + + 80 ) + + + 97 * - 37 * 4 AS col0
----
-13636

query I rowsort
SELECT - 5 + - - 30 AS col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-94
SELECT + COUNT( * ) DIV - COUNT( * ) + COALESCE ( COUNT( * ), + ( 87 ) ) + - 61 DIV - 54 + - 6 * + - 90 + 31 DIV 53 AS col0
----
541

skipif mysql # not compatible
query I rowsort label-94
SELECT + COUNT ( * ) / - COUNT ( * ) + COALESCE ( COUNT ( * ), + ( 87 ) ) + - 61 / - 54 + - 6 * + - 90 + 31 / 53 AS col0
----
541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-95
SELECT DISTINCT + - COALESCE ( + - 52, ( - - 88 ), + 70 * + + 64 + COUNT( * ), 7 DIV + - 61 + 32 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT + - COALESCE ( + - 52, ( - - 88 ), + 70 * + + 64 + COUNT ( * ), 7 / + - 61 + 32 ) AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-96
SELECT ALL + NULLIF ( 74, - 65 + + 77 * - 50 + - 77 + + MIN( 84 ) * - + 86 * - CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) / 68 )
----
74

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + NULLIF ( 74, - 65 + + 77 * - 50 + - 77 + + MIN ( 84 ) * - + 86 * - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) / 68 )
----
74

query I rowsort
SELECT DISTINCT + - NULLIF ( + 12, + 49 ) AS col2
----
-12

query I rowsort
SELECT - + 26 * 54
----
-1404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-99
SELECT + 77 * COALESCE ( + 17, + ( CAST( NULL AS SIGNED ) ) ) * - 76 AS col0
----
-99484

skipif mysql # not compatible
query I rowsort label-99
SELECT + 77 * COALESCE ( + 17, + ( CAST ( NULL AS INTEGER ) ) ) * - 76 AS col0
----
-99484

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT + 23 * - 28 + COUNT( * )
----
-643

skipif mysql # not compatible
query I rowsort label-100
SELECT + 23 * - 28 + COUNT ( * )
----
-643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-101
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), 82 ) * - + MIN( - 31 ) - - CASE + 88 WHEN + + ( 88 ) + 65 + 8 THEN - CAST( 69 AS SIGNED ) END * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), 82 ) * - + MIN ( - 31 ) - - CASE + 88 WHEN + + ( 88 ) + 65 + 8 THEN - CAST ( 69 AS INTEGER ) END * + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-102
SELECT ALL + 16 AS col0, - 69 * CAST( NULL AS SIGNED )
----
16
NULL

skipif mysql # not compatible
query II rowsort label-102
SELECT ALL + 16 AS col0, - 69 * CAST ( NULL AS INTEGER )
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT + 81 * + 97 + MAX( + 31 ) AS col1
----
7888

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT + 81 * + 97 + MAX ( + 31 ) AS col1
----
7888

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT + 64 * + - 10 + COUNT( * )
----
-639

skipif mysql # not compatible
query I rowsort label-104
SELECT + 64 * + - 10 + COUNT ( * )
----
-639

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

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT ALL SUM( ALL - 38 ) * - MAX( ALL + 45 ) + + - CASE + 30 WHEN 41 * 3 + ( - COALESCE ( SUM( + 55 ), 34 * - 23, - 60 ) ) - MAX( ALL ( - 51 ) + + 5 ) THEN NULL ELSE + 71 END + - 19 AS col1
----
1620

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL SUM ( ALL - 38 ) * - MAX ( ALL + 45 ) + + - CASE + 30 WHEN 41 * 3 + ( - COALESCE ( SUM ( + 55 ), 34 * - 23, - 60 ) ) - MAX ( ALL ( - 51 ) + + 5 ) THEN NULL ELSE + 71 END + - 19 AS col1
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT DISTINCT ( 47 ) * - + COUNT( * ) + + 73 - - 27
----
53

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT ( 47 ) * - + COUNT ( * ) + + 73 - - 27
----
53

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

skipif mysql # not compatible
query I rowsort label-108
SELECT + COUNT ( * ) + + + COUNT ( * ) * - 51 AS col0
----
-50

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-110
SELECT DISTINCT 56 * 75, 9 DIV 4 + + COUNT( * ) AS col1
----
4200
3

skipif mysql # not compatible
query II rowsort label-110
SELECT DISTINCT 56 * 75, 9 / 4 + + COUNT ( * ) AS col1
----
4200
3

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

skipif mysql # not compatible
query I rowsort label-111
SELECT MIN ( DISTINCT 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT + SUM( DISTINCT + 58 ) * 24 * 81
----
112752

skipif mysql # not compatible
query I rowsort label-112
SELECT + SUM ( DISTINCT + 58 ) * 24 * 81
----
112752

query I rowsort
SELECT - COALESCE ( + 20, + 52 )
----
-20

query I rowsort
SELECT - ( - ( 72 ) ) AS col2
----
72

query I rowsort
SELECT - 79 + + + 66
----
-13

query I rowsort
SELECT - 38 * + 53 AS col0
----
-2014

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT + ( + - CASE + ( - ( - 54 ) ) WHEN + COUNT( * ) THEN NULL ELSE + - 89 END ) * + 60
----
5340

skipif mysql # not compatible
query I rowsort label-117
SELECT + ( + - CASE + ( - ( - 54 ) ) WHEN + COUNT ( * ) THEN NULL ELSE + - 89 END ) * + 60
----
5340

query I rowsort
SELECT + 20 + + 46 - 58 * - 20
----
1226

query I rowsort
SELECT - 78 - + 59
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - COUNT( + 18 ) * - 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-120
SELECT - COUNT ( + 18 ) * - 28 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-121
SELECT ALL + ( 90 ) + COUNT( * ) + - 18 + - COALESCE ( - + 55, - 8 DIV - 20 + COUNT( * ) - - COUNT( * ) * + 70 ) * - CAST( 33 AS SIGNED ) * COUNT( * ) * 9 col2
----
-16262

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + ( 90 ) + COUNT ( * ) + - 18 + - COALESCE ( - + 55, - 8 / - 20 + COUNT ( * ) - - COUNT ( * ) * + 70 ) * - CAST ( 33 AS INTEGER ) * COUNT ( * ) * 9 col2
----
-16262

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT + MAX( ALL 99 ) * 98
----
9702

skipif mysql # not compatible
query I rowsort label-122
SELECT + MAX ( ALL 99 ) * 98
----
9702

query I rowsort
SELECT - 31 + - 73
----
-104

query I rowsort
SELECT DISTINCT + - 59 * - - 66
----
-3894

query II rowsort
SELECT DISTINCT 63 + - 65 AS col1, 10
----
-2
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-126
SELECT DISTINCT - 54 DIV - + COUNT( * ) - + - 62 * 25 col2
----
1604

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT - 54 / - + COUNT ( * ) - + - 62 * 25 col2
----
1604

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-127
SELECT - - 15 DIV CAST( 73 AS SIGNED ) * + 55 + - 22 + ( 9 ) * + + 45 * 29
----
11723

skipif mysql # not compatible
query I rowsort label-127
SELECT - - 15 / CAST ( 73 AS INTEGER ) * + 55 + - 22 + ( 9 ) * + + 45 * 29
----
11723

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

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - COUNT ( * ) * + + 43 AS col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-129
SELECT DISTINCT - - 67 DIV + 13 AS col0, COUNT( * ) AS col2
----
5
1

skipif mysql # not compatible
query II rowsort label-129
SELECT DISTINCT - - 67 / + 13 AS col0, COUNT ( * ) AS col2
----
5
1

query I rowsort
SELECT ALL + + 4 + 43 - + - 68 - 43
----
72

query I rowsort
SELECT ALL - 60 + + 18 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-132
SELECT + - 76 * + CAST( COALESCE ( - 29, + 83 + + 82 / - + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 36 END * 88 - + ( + 2 ) ) AS SIGNED ) + 47 AS col0
----
2251

skipif mysql # not compatible
query I rowsort label-132
SELECT + - 76 * + CAST ( COALESCE ( - 29, + 83 + + 82 / - + CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 36 END * 88 - + ( + 2 ) ) AS INTEGER ) + 47 AS col0
----
2251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-133
SELECT ALL - CAST( NULL AS SIGNED ) - 30 / - NULLIF ( SUM( ALL + 69 ), 91 * - 39 * 78 + COUNT( + + 37 ) / + 96 - + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL - CAST ( NULL AS INTEGER ) - 30 / - NULLIF ( SUM ( ALL + 69 ), 91 * - 39 * 78 + COUNT ( + + 37 ) / + 96 - + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT + - SUM( + 20 ) * 48
----
-960

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT + - SUM ( + 20 ) * 48
----
-960

query I rowsort
SELECT DISTINCT - 66 - - + 6 * + 19 * + - 81 * - NULLIF ( - 32, - 94 / ( + - 21 ) * + - 13 ) + 64
----
-295490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-136
SELECT 69 * - - COUNT( ALL + CAST( 62 AS SIGNED ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-136
SELECT 69 * - - COUNT ( ALL + CAST ( 62 AS INTEGER ) ) AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-137
SELECT ALL - COALESCE ( - 52, 8 * 17, + + COUNT( * ) + + 94, + - 89 DIV 21 * + 17 + + + 70 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL - COALESCE ( - 52, 8 * 17, + + COUNT ( * ) + + 94, + - 89 / 21 * + 17 + + + 70 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT 78 + + SUM( ALL - 42 ) * - - 54 + + COALESCE ( + 57, + 18 * + + ( - 33 ) - + 67 + - 20 ) AS col0
----
-2133

skipif mysql # not compatible
query I rowsort label-138
SELECT 78 + + SUM ( ALL - 42 ) * - - 54 + + COALESCE ( + 57, + 18 * + + ( - 33 ) - + 67 + - 20 ) AS col0
----
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT 88 + + 61 + - CASE 9 WHEN 81 THEN + + 40 * - 72 WHEN + 23 * ( - - AVG ( ALL - + 52 ) ) + - 99 * - COALESCE ( 1, COUNT( * ) - 18 ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT 88 + + 61 + - CASE 9 WHEN 81 THEN + + 40 * - 72 WHEN + 23 * ( - - AVG ( ALL - + 52 ) ) + - 99 * - COALESCE ( 1, COUNT ( * ) - 18 ) THEN NULL END col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT 62 AS col0, + 10 - - - 46 AS col1
----
62
-36

query I rowsort
SELECT DISTINCT 62 * - 1
----
-62

query I rowsort
SELECT ALL COALESCE ( - 40, ( + + 35 ) ) + - + 72
----
-112

query I rowsort
SELECT ALL 97 * 37
----
3589

onlyif mysql # aggregate syntax: 
query II rowsort label-145
SELECT DISTINCT COUNT( ALL 45 ) + - 96 col0, 91 + + + ( + 18 ) + COUNT( DISTINCT - 90 )
----
-95
110

skipif mysql # not compatible
query II rowsort label-145
SELECT DISTINCT COUNT ( ALL 45 ) + - 96 col0, 91 + + + ( + 18 ) + COUNT ( DISTINCT - 90 )
----
-95
110

query I rowsort
SELECT ALL COALESCE ( - 59, + 89 ) + - 75 + + - 22 + - 22
----
-178

query I rowsort
SELECT 9 + - 46 * - + 6 * - + 45 AS col1
----
-12411

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT COUNT( * ) - - + 97 * - 85 AS col2
----
-8244

skipif mysql # not compatible
query I rowsort label-148
SELECT COUNT ( * ) - - + 97 * - 85 AS col2
----
-8244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT ALL CAST( + + 21 AS SIGNED ) + - 37 + - + 49 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL CAST ( + + 21 AS INTEGER ) + - 37 + - + 49 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL COALESCE ( + 12, + COUNT( * ) - 54 * - 64 - COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL COALESCE ( + 12, + COUNT ( * ) - 54 * - 64 - COUNT ( * ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-151
SELECT 17 + - + COUNT( - 91 ) AS col1, + 61 - 94 * - - 58 * - 50 AS col0
----
16
272661

skipif mysql # not compatible
query II rowsort label-151
SELECT 17 + - + COUNT ( - 91 ) AS col1, + 61 - 94 * - - 58 * - 50 AS col0
----
16
272661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-152
SELECT ALL - 25 + + 68 + - 5 + - 50 + - 70 - + 97 + + 66 DIV - + COUNT( * ) + - + 31 + + ( + 22 ) + - 28 - - COUNT( * ) * 97 * 75 AS col1
----
6993

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL - 25 + + 68 + - 5 + - 50 + - 70 - + 97 + + 66 / - + COUNT ( * ) + - + 31 + + ( + 22 ) + - 28 - - COUNT ( * ) * 97 * 75 AS col1
----
6993

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT - 96 + - COUNT( * ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-153
SELECT - 96 + - COUNT ( * ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT DISTINCT + CASE - 48 WHEN + ( + 97 ) * - 58 THEN + + 84 * - - ( + - 5 ) + 40 - - COUNT( * ) + 69 + - 23 / NULLIF ( + 21, + 29 ) END + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT + CASE - 48 WHEN + ( + 97 ) * - 58 THEN + + 84 * - - ( + - 5 ) + 40 - - COUNT ( * ) + 69 + - 23 / NULLIF ( + 21, + 29 ) END + 28
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-155
SELECT ALL 92 - - 22 - - + 2 * 74 + + MAX( + 80 ) * + 88 + - - 60 + + - 78 + + 92 / ( + 15 ) / - ( + CAST( NULL AS DECIMAL ) ) * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT ALL 92 - - 22 - - + 2 * 74 + + MAX ( + 80 ) * + 88 + - - 60 + + - 78 + + 92 / ( + 15 ) / - ( + CAST ( NULL AS REAL ) ) * 70 AS col1
----
NULL

query I rowsort
SELECT - 62 + - 22 * - + 40 * 35 + + - 50
----
30688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-157
SELECT - ( 34 ) DIV + + COUNT( * ) + 2 + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-157
SELECT - ( 34 ) / + + COUNT ( * ) + 2 + + COUNT ( * )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-158
SELECT ALL - 15 * + - 88 * 11 * - CASE ( - 72 ) WHEN 37 + - ( MIN( ALL 70 ) ) THEN - 86 WHEN - CAST( + + 6 AS SIGNED ) + - 23 THEN CASE + ( 15 ) WHEN - 85 THEN 31 END END * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - 15 * + - 88 * 11 * - CASE ( - 72 ) WHEN 37 + - ( MIN ( ALL 70 ) ) THEN - 86 WHEN - CAST ( + + 6 AS INTEGER ) + - 23 THEN CASE + ( 15 ) WHEN - 85 THEN 31 END END * 24
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT 3 * + 7 + + 16 + - CAST( + - CAST( 21 AS SIGNED ) AS SIGNED ) * - 92 AS col1
----
-1895

skipif mysql # not compatible
query I rowsort label-160
SELECT 3 * + 7 + + 16 + - CAST ( + - CAST ( 21 AS INTEGER ) AS INTEGER ) * - 92 AS col1
----
-1895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-161
SELECT ALL - + CASE + 97 WHEN - 74 THEN NULL ELSE CAST( NULL AS SIGNED ) * + 60 + + - CASE + 74 WHEN - 39 THEN NULL ELSE + + 61 END + 51 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL - + CASE + 97 WHEN - 74 THEN NULL ELSE CAST ( NULL AS INTEGER ) * + 60 + + - CASE + 74 WHEN - 39 THEN NULL ELSE + + 61 END + 51 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL + COUNT( * ) - 79
----
-78

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL + COUNT ( * ) - 79
----
-78

query II rowsort
SELECT ALL - 86 AS col2, 48 + + 50
----
-86
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-164
SELECT ALL - - 89 DIV - + COUNT( * ) * + - COUNT( * ) col2, 64 + - - 46 * ( 41 ) AS col2
----
89
1950

skipif mysql # not compatible
query II rowsort label-164
SELECT ALL - - 89 / - + COUNT ( * ) * + - COUNT ( * ) col2, 64 + - - 46 * ( 41 ) AS col2
----
89
1950

onlyif mysql # aggregate syntax: 
query II rowsort label-165
SELECT ALL - - 95, 93 - + MAX( ALL - 54 ) AS col1
----
95
147

skipif mysql # not compatible
query II rowsort label-165
SELECT ALL - - 95, 93 - + MAX ( ALL - 54 ) AS col1
----
95
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-166
SELECT ALL - COUNT( * ) * 99 DIV - - 55
----
-1

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - COUNT ( * ) * 99 / - - 55
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-167
SELECT 98 + + 54 * CAST( - + COUNT( * ) AS SIGNED ) - 18 + + 34 DIV 2 - 4 col1
----
39

skipif mysql # not compatible
query I rowsort label-167
SELECT 98 + + 54 * CAST ( - + COUNT ( * ) AS INTEGER ) - 18 + + 34 / 2 - 4 col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT ALL - 51 DIV + ( 53 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL - 51 / + ( 53 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-169
SELECT COUNT( - + 82 ) DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-169
SELECT COUNT ( - + 82 ) / 56 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-170
SELECT 4 / + + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT ( + - 13 ) * - 31 + + 9 + + 24 * - - COUNT( * ) * - 20 + + + 83
----
15

skipif mysql # not compatible
query I rowsort label-171
SELECT ( + - 13 ) * - 31 + + 9 + + 24 * - - COUNT ( * ) * - 20 + + + 83
----
15

query II rowsort
SELECT - 69 * 76 + - ( - 91 ) AS col0, 8 col0
----
-5153
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-173
SELECT DISTINCT - 60 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - 60 * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 97 * 85 AS col1, 52 AS col1
----
8245
52

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

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

query I rowsort
SELECT ALL - 79 * + 51 AS col1
----
-4029

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT ALL - NULLIF ( - 22, - - CASE 31 WHEN 19 THEN + 75 ELSE NULL END + + COUNT( * ) * + NULLIF ( - 17, 93 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL - NULLIF ( - 22, - - CASE 31 WHEN 19 THEN + 75 ELSE NULL END + + COUNT ( * ) * + NULLIF ( - 17, 93 ) ) AS col1
----
22

query I rowsort
SELECT ALL COALESCE ( + - 38, + 85 * 72 - - 96 ) + - - 8 AS col2
----
-30

query I rowsort
SELECT 20 + - 97
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT MIN( 5 ) * 3 + + + 39 + + + 12 + + - ( + 21 ) / ( 7 ) + - + CAST( NULL AS SIGNED ) * 1 + - 21 * - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT MIN ( 5 ) * 3 + + + 39 + + + 12 + + - ( + 21 ) / ( 7 ) + - + CAST ( NULL AS INTEGER ) * 1 + - 21 * - 10 AS col2
----
NULL

query II rowsort
SELECT ALL - 43 + 67 AS col1, 79 AS col0
----
24
79

query II rowsort
SELECT 13 - 71 * 59 * - 97 AS col2, 40
----
406346
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-183
SELECT ALL - COALESCE ( - - 70, 52 ) DIV CASE - + ( 0 ) WHEN - 8 THEN - + 92 WHEN - 43 THEN NULL ELSE - - 78 * + 95 + + - 67 * SUM( ALL 52 ) END
----
0

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL - COALESCE ( - - 70, 52 ) / CASE - + ( 0 ) WHEN - 8 THEN - + 92 WHEN - 43 THEN NULL ELSE - - 78 * + 95 + + - 67 * SUM ( ALL 52 ) END
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-184
SELECT 19 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT 19 / + 98
----
0

query I rowsort
SELECT 54 + - ( - 48 )
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-186
SELECT - MIN( - 89 ) AS col0, - COUNT( * ) DIV - 60 AS col1
----
89
0

skipif mysql # not compatible
query II rowsort label-186
SELECT - MIN ( - 89 ) AS col0, - COUNT ( * ) / - 60 AS col1
----
89
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-188
SELECT ALL - MAX( 92 ) DIV + 69
----
-1

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL - MAX ( 92 ) / + 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT DISTINCT CASE 75 WHEN COUNT( * ) / + + 65 / - + 6 THEN NULL WHEN 47 THEN + 7 * + 82 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT CASE 75 WHEN COUNT ( * ) / + + 65 / - + 6 THEN NULL WHEN 47 THEN + 7 * + 82 END AS col2
----
NULL

query I rowsort
SELECT - + 88 - + 37
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-191
SELECT NULLIF ( + - 11, + ( + ( + CAST( + 77 AS SIGNED ) ) ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-191
SELECT NULLIF ( + - 11, + ( + ( + CAST ( + 77 AS INTEGER ) ) ) ) AS col2
----
-11

query I rowsort
SELECT + + 7 * 65
----
455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT ALL COUNT( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) )
----
0

query II rowsort
SELECT - COALESCE ( + - 98, - 91 + 45 ), + 98 * - 13 AS col2
----
98
-1274

query I rowsort
SELECT DISTINCT + 0 - + - ( + ( ( + 86 ) ) ) * 58 AS col1
----
4988

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-196
SELECT DISTINCT - ( - - 88 ) AS col1, 38 * 18 DIV + COUNT( * )
----
-88
684

skipif mysql # not compatible
query II rowsort label-196
SELECT DISTINCT - ( - - 88 ) AS col1, 38 * 18 / + COUNT ( * )
----
-88
684

query I rowsort
SELECT DISTINCT - 19 * - - NULLIF ( 41, + 8 )
----
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL + + COUNT( - CASE 46 WHEN + - 32 * + 16 THEN NULL WHEN + + 95 THEN - + ( - - 23 ) END ) col2
----
0

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + + COUNT ( - CASE 46 WHEN + - 32 * + 16 THEN NULL WHEN + + 95 THEN - + ( - - 23 ) END ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-199
SELECT DISTINCT 11 * + 66 * + SUM( ALL - + 62 ) * - 61 - 99 + + 4 AS col1, 81 + MIN( + COALESCE ( - - 25, - + CAST( - 47 AS SIGNED ) * - NULLIF ( - 39, - 17 ) + - 74 - 9, 70 DIV 1 + 49 ) ) AS col2
----
2745637
106

skipif mysql # not compatible
query II rowsort label-199
SELECT DISTINCT 11 * + 66 * + SUM ( ALL - + 62 ) * - 61 - 99 + + 4 AS col1, 81 + MIN ( + COALESCE ( - - 25, - + CAST ( - 47 AS INTEGER ) * - NULLIF ( - 39, - 17 ) + - 74 - 9, 70 / 1 + 49 ) ) AS col2
----
2745637
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-200
SELECT ALL + ( - + ( - CASE - 61 WHEN + + 54 THEN + - 77 DIV 85 WHEN 82 - 49 + - - 55 * + 37 THEN NULL WHEN + + 47 * + + 36 + + COUNT( ALL - 46 ) THEN - 31 + 68 ELSE 68 END ) )
----
68

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + ( - + ( - CASE - 61 WHEN + + 54 THEN + - 77 / 85 WHEN 82 - 49 + - - 55 * + 37 THEN NULL WHEN + + 47 * + + 36 + + COUNT ( ALL - 46 ) THEN - 31 + 68 ELSE 68 END ) )
----
68

query II rowsort
SELECT + 42, + ( - 90 ) AS col1
----
42
-90

query I rowsort
SELECT ALL 69 * 79 AS col1
----
5451

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT + 84 * - 8 + + 0 + 61 * COUNT( * ), COUNT( * ) AS col2
----
-611
1

skipif mysql # not compatible
query II rowsort label-203
SELECT + 84 * - 8 + + 0 + 61 * COUNT ( * ), COUNT ( * ) AS col2
----
-611
1

query I rowsort
SELECT COALESCE ( + + 78, + + 14, - 73 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL + MAX( - + 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + MAX ( - + 35 ) AS col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-206
SELECT - 3 - + - 35 + + + 56 - + + 92 + + - 97 DIV - 5
----
15

skipif mysql # not compatible
query I rowsort label-206
SELECT - 3 - + - 35 + + + 56 - + + 92 + + - 97 / - 5
----
15

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-207
SELECT ALL - 7 * + 42 + - + 64 DIV + + ( - 74 ) AS col2, CAST( NULL AS DECIMAL ) AS col0
----
-294
NULL

skipif mysql # not compatible
query II rowsort label-207
SELECT ALL - 7 * + 42 + - + 64 / + + ( - 74 ) AS col2, CAST ( NULL AS REAL ) AS col0
----
-294
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-208
SELECT ALL + 24 * + + 82 + + + 49 DIV + 9 + + 77 + ( + - 48 ) AS col2
----
2002

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL + 24 * + + 82 + + + 49 / + 9 + + 77 + ( + - 48 ) AS col2
----
2002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-209
SELECT - 79 + CASE + COUNT( * ) WHEN COALESCE ( + - 87, + - 92, + 41 ) * - 49 THEN - + 59 WHEN + 31 THEN + 62 ELSE 50 END + CAST( NULL AS SIGNED ), - MIN( - 37 ) + - 32 DIV - 51 col1
----
NULL
37

skipif mysql # not compatible
query II rowsort label-209
SELECT - 79 + CASE + COUNT ( * ) WHEN COALESCE ( + - 87, + - 92, + 41 ) * - 49 THEN - + 59 WHEN + 31 THEN + 62 ELSE 50 END + CAST ( NULL AS INTEGER ), - MIN ( - 37 ) + - 32 / - 51 col1
----
NULL
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-210
SELECT ALL + COUNT( - - ( - 37 ) ) * + 8 * 32 + + - COUNT( + ( - 64 ) ) + - 95 DIV - 99, + NULLIF ( - 26, + 36 ) AS col1
----
255
-26

skipif mysql # not compatible
query II rowsort label-210
SELECT ALL + COUNT ( - - ( - 37 ) ) * + 8 * 32 + + - COUNT ( + ( - 64 ) ) + - 95 / - 99, + NULLIF ( - 26, + 36 ) AS col1
----
255
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-211
SELECT DISTINCT + 2 DIV - ( - 82 ) * + 47
----
0

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + 2 / - ( - 82 ) * + 47
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-213
SELECT - 25 - 19 - + 62 * 62 + - 51 + - COUNT( * ) * + - 3 * - 84 - - - ( 89 ) + - CAST( NULL AS SIGNED ) + + ( 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-213
SELECT - 25 - 19 - + 62 * 62 + - 51 + - COUNT ( * ) * + - 3 * - 84 - - - ( 89 ) + - CAST ( NULL AS INTEGER ) + + ( 66 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL - 64 * 29 + + + COUNT ( * ) AS col0
----
-1855

query I rowsort
SELECT DISTINCT - 3 * + + 31
----
-93

query I rowsort
SELECT - 69 * - 21 AS col1
----
1449

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

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

query I rowsort
SELECT + 14 - + + 35 col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-219
SELECT ALL 38 col0, COUNT( * ) + - 12 AS col2
----
38
-11

skipif mysql # not compatible
query II rowsort label-219
SELECT ALL 38 col0, COUNT ( * ) + - 12 AS col2
----
38
-11

query I rowsort
SELECT - 58 + 60 AS col2
----
2

query II rowsort
SELECT - + 47, + 62 * 70 AS col1
----
-47
4340

onlyif mysql # aggregate syntax: 
query III rowsort label-222
SELECT - CASE + 96 WHEN - 76 * + 95 + - ( - + 99 ) + + COUNT( * ) + - 35 THEN - + 97 ELSE NULL END + + COUNT( * ) AS col0, - 2 * + - 80 * COUNT( * ), 46 AS col0
----
NULL
160
46

skipif mysql # not compatible
query III rowsort label-222
SELECT - CASE + 96 WHEN - 76 * + 95 + - ( - + 99 ) + + COUNT ( * ) + - 35 THEN - + 97 ELSE NULL END + + COUNT ( * ) AS col0, - 2 * + - 80 * COUNT ( * ), 46 AS col0
----
NULL
160
46

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT ALL 11 * + - 17 * - 17 + - COUNT( * ) + + MAX( - + 83 ) AS col1
----
3095

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL 11 * + - 17 * - 17 + - COUNT ( * ) + + MAX ( - + 83 ) AS col1
----
3095

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

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

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

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

query I rowsort
SELECT DISTINCT - 90 * - + 87 AS col2
----
7830

query II rowsort
SELECT DISTINCT 28, - 57 AS col0
----
28
-57

query I rowsort
SELECT ALL + 21 * + 18 AS col0
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - + CASE - 69 WHEN + - 35 / + - 9 THEN - + 81 WHEN - SUM( DISTINCT - 82 ) * - 85 / - - 82 + NULLIF ( + COUNT( * ), COUNT( DISTINCT - - 74 ) ) + + 11 / 96 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-229
SELECT - + CASE - 69 WHEN + - 35 / + - 9 THEN - + 81 WHEN - SUM ( DISTINCT - 82 ) * - 85 / - - 82 + NULLIF ( + COUNT ( * ), COUNT ( DISTINCT - - 74 ) ) + + 11 / 96 THEN NULL END col0
----
NULL

query I rowsort
SELECT DISTINCT 0 * 86 - + + NULLIF ( - 77, 95 / 79 * + 76 ) col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-231
SELECT ALL 30 DIV 79 + COUNT( * ) AS col2, + COALESCE ( + CAST( NULL AS SIGNED ), - 98 DIV - 80 + - 42 ) DIV 76 + + 29 * ( COALESCE ( - 2, - 7 ) ) * 20 + 85 DIV 41 AS col0
----
1
-1158

skipif mysql # not compatible
query II rowsort label-231
SELECT ALL 30 / 79 + COUNT ( * ) AS col2, + COALESCE ( + CAST ( NULL AS INTEGER ), - 98 / - 80 + - 42 ) / 76 + + 29 * ( COALESCE ( - 2, - 7 ) ) * 20 + 85 / 41 AS col0
----
1
-1158

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT ALL - ( + 33 ) DIV - + 4 + - - 54 + - 32 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL - ( + 33 ) / - + 4 + - - 54 + - 32 AS col2
----
30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-234
SELECT DISTINCT - ( + - 99 ) DIV 5 + 70 col2, - COUNT( * ) + - 11
----
89
-12

skipif mysql # not compatible
query II rowsort label-234
SELECT DISTINCT - ( + - 99 ) / 5 + 70 col2, - COUNT ( * ) + - 11
----
89
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT 25 DIV + + 70 + 38 - - COUNT( * ) * 91 * - COUNT( * ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-235
SELECT 25 / + + 70 + 38 - - COUNT ( * ) * 91 * - COUNT ( * ) col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-236
SELECT ALL + ( ( 48 ) ) DIV - 86 + - 49 * 1 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + ( ( 48 ) ) / - 86 + - 49 * 1 AS col2
----
-49

query I rowsort
SELECT + 67 * + + 55 * + 15 AS col1
----
55275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-238
SELECT ALL CASE + 43 WHEN + 37 / + - ( + 89 ) THEN 39 WHEN - 71 THEN NULL WHEN + COUNT( * ) + CASE - 99 WHEN 51 THEN NULL ELSE + - 43 END THEN - 13 * - + 66 / + + NULLIF ( + CAST( COUNT( * ) AS SIGNED ), - 25 ) + 33 ELSE NULL END * - CAST( 73 + - 56 * + 47 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL CASE + 43 WHEN + 37 / + - ( + 89 ) THEN 39 WHEN - 71 THEN NULL WHEN + COUNT ( * ) + CASE - 99 WHEN 51 THEN NULL ELSE + - 43 END THEN - 13 * - + 66 / + + NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), - 25 ) + 33 ELSE NULL END * - CAST ( 73 + - 56 * + 47 AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT 16 * COUNT( ALL + 97 ) + 0 * 45
----
16

skipif mysql # not compatible
query I rowsort label-239
SELECT 16 * COUNT ( ALL + 97 ) + 0 * 45
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-240
SELECT + 22 * - 17 * - - 50 * - + COALESCE ( + - 2, + - COALESCE ( - - 49, - + 19 DIV + + 54 DIV + 99 + - 6 ) + - CAST( + NULLIF ( + 58, 54 ) AS SIGNED ) + 36 + - COUNT( * ) * 59, + ( - 47 ) + 14 * + 13 ) + COUNT( * ) AS col0
----
-37399

skipif mysql # not compatible
query I rowsort label-240
SELECT + 22 * - 17 * - - 50 * - + COALESCE ( + - 2, + - COALESCE ( - - 49, - + 19 / + + 54 / + 99 + - 6 ) + - CAST ( + NULLIF ( + 58, 54 ) AS INTEGER ) + 36 + - COUNT ( * ) * 59, + ( - 47 ) + 14 * + 13 ) + COUNT ( * ) AS col0
----
-37399

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ( SUM( - 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-241
SELECT ( SUM ( - 88 ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL NULLIF ( NULLIF ( + COUNT( * ), + 48 ), - - 41 / COUNT( + + 96 ) + + - MIN( + 29 ) + + - 11 * COUNT( * ) ) * 33 + COUNT( - 3 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL NULLIF ( NULLIF ( + COUNT ( * ), + 48 ), - - 41 / COUNT ( + + 96 ) + + - MIN ( + 29 ) + + - 11 * COUNT ( * ) ) * 33 + COUNT ( - 3 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-243
SELECT ( - - SUM ( - ( + 83 ) ) )
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT ALL + 53 DIV - - 37 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL + 53 / - - 37 AS col0
----
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-247
SELECT - 89 * + CASE CAST( 9 AS DECIMAL ) WHEN - 77 THEN NULL WHEN 97 + + - COUNT( * ) THEN NULL ELSE + 1 + - COUNT( * ) + 0 END
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT - 89 * + CASE CAST ( 9 AS REAL ) WHEN - 77 THEN NULL WHEN 97 + + - COUNT ( * ) THEN NULL ELSE + 1 + - COUNT ( * ) + 0 END
----
0

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

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

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

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

query II rowsort
SELECT - 5 AS col1, 4 + - - 34
----
-5
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL SUM( - + CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NULL THEN 92 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL SUM ( - + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN 92 END )
----
NULL

query I rowsort
SELECT 64 * - 13 + + 11 col1
----
-821

query II rowsort
SELECT - 39 AS col1, 74
----
-39
74

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT ALL + - 53 * 59 + + 77 + 43 - - + COUNT( * )
----
-3006

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL + - 53 * 59 + + 77 + 43 - - + COUNT ( * )
----
-3006

query I rowsort
SELECT ALL + ( + + 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-256
SELECT + CASE - 73 WHEN - - 0 + - + 79 THEN NULL ELSE + 10 DIV + - 42 END AS col0, - COUNT( * ) + - + MAX( + 93 ) AS col1
----
0
-94

skipif mysql # not compatible
query II rowsort label-256
SELECT + CASE - 73 WHEN - - 0 + - + 79 THEN NULL ELSE + 10 / + - 42 END AS col0, - COUNT ( * ) + - + MAX ( + 93 ) AS col1
----
0
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-257
SELECT ALL - 84 AS col0, CASE - 33 WHEN + + 31 THEN - CAST( 9 AS DECIMAL ) END AS col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-257
SELECT ALL - 84 AS col0, CASE - 33 WHEN + + 31 THEN - CAST ( 9 AS REAL ) END AS col0
----
-84
NULL

query I rowsort
SELECT ALL + 92 * - 1 + - 20 + - - 84 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT - COUNT( * ) * + NULLIF ( 34, - 97 ) + + ( + - 83 ) + ( + + 12 ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-259
SELECT - COUNT ( * ) * + NULLIF ( 34, - 97 ) + + ( + - 83 ) + ( + + 12 ) AS col2
----
-105

query I rowsort
SELECT 74 - - - 87
----
-13

query II rowsort
SELECT + 12, + 51 + + - 22 * + 4 AS col1
----
12
-37

query II rowsort
SELECT - - 64, 55 AS col1
----
64
55

query I rowsort
SELECT ALL + + 78 + 56 AS col1
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-264
SELECT - + CAST( - - 23 AS SIGNED ) col2, 36 * + ( - 15 ) AS col1
----
-23
-540

skipif mysql # not compatible
query II rowsort label-264
SELECT - + CAST ( - - 23 AS INTEGER ) col2, 36 * + ( - 15 ) AS col1
----
-23
-540

query I rowsort
SELECT DISTINCT + ( - 23 ) * 65
----
-1495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT ALL + 20 / 21 * CASE + CAST( NULL AS SIGNED ) WHEN + 6 THEN NULL WHEN + COUNT( * ) * 68 - 44 + - 23 + + 31 / + + COUNT( DISTINCT - 2 ) THEN NULL WHEN + - 10 THEN + 53 END * ( - 84 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL + 20 / 21 * CASE + CAST ( NULL AS INTEGER ) WHEN + 6 THEN NULL WHEN + COUNT ( * ) * 68 - 44 + - 23 + + 31 / + + COUNT ( DISTINCT - 2 ) THEN NULL WHEN + - 10 THEN + 53 END * ( - 84 ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + 88
----
-176

query I rowsort
SELECT 97 + 25 * - CASE + 10 WHEN 42 THEN NULL ELSE + + 73 END
----
-1728

onlyif mysql # DIV for integer division: 
query II rowsort label-269
SELECT 32 DIV - 19 AS col2, + 54 * ( + - 90 )
----
-1
-4860

skipif mysql # not compatible
query II rowsort label-269
SELECT 32 / - 19 AS col2, + 54 * ( + - 90 )
----
-1
-4860

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-271
SELECT 13 + - CAST( 34 AS SIGNED ) * + + 17 AS col2
----
-565

skipif mysql # not compatible
query I rowsort label-271
SELECT 13 + - CAST ( 34 AS INTEGER ) * + + 17 AS col2
----
-565

query I rowsort
SELECT 30 * 38 + + 56
----
1196

query I rowsort
SELECT ALL + 30 * + 94 AS col1
----
2820

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-275
SELECT DISTINCT + COUNT( * ) - 88 col2, + 8
----
-87
8

skipif mysql # not compatible
query II rowsort label-275
SELECT DISTINCT + COUNT ( * ) - 88 col2, + 8
----
-87
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT ALL CAST( - - 53 AS SIGNED ) * 43 * - 47
----
-107113

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL CAST ( - - 53 AS INTEGER ) * 43 * - 47
----
-107113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-277
SELECT COALESCE ( + + 90, 80 * COALESCE ( + 27, - + COUNT( * ) ) DIV - 42 * + + 68 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-277
SELECT COALESCE ( + + 90, 80 * COALESCE ( + 27, - + COUNT ( * ) ) / - 42 * + + 68 ) AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-278
SELECT - 87 DIV + 85 AS col2, 17 * + COUNT( - 28 ) + - + ( - 97 ) AS col1
----
-1
114

skipif mysql # not compatible
query II rowsort label-278
SELECT - 87 / + 85 AS col2, 17 * + COUNT ( - 28 ) + - + ( - 97 ) AS col1
----
-1
114

query I rowsort
SELECT DISTINCT + 14 * + 67 - - 89
----
1027

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

query II rowsort
SELECT DISTINCT - 87 * - - 62 col2, 2 * - 50 col2
----
-5394
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT + 53 DIV - CASE - 51 WHEN 3 THEN NULL WHEN - ( 32 ) THEN NULL ELSE + + 74 * 79 DIV 98 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-282
SELECT + 53 / - CASE - 51 WHEN 3 THEN NULL WHEN - ( 32 ) THEN NULL ELSE + + 74 * 79 / 98 END AS col2
----
0

query I rowsort
SELECT DISTINCT - + 80 + 22
----
-58

query I rowsort
SELECT + 29 + + 23 col2
----
52

query I rowsort
SELECT ALL 73 + 13 - + 9 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT MIN( - + 99 ) + 58
----
-41

skipif mysql # not compatible
query I rowsort label-286
SELECT MIN ( - + 99 ) + 58
----
-41

query I rowsort
SELECT + 12 - + 90
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-288
SELECT DISTINCT + CAST( + ( - 10 ) AS SIGNED ), ( COUNT( * ) ) + + 13 * 34 + 41 AS col0
----
-10
484

skipif mysql # not compatible
query II rowsort label-288
SELECT DISTINCT + CAST ( + ( - 10 ) AS INTEGER ), ( COUNT ( * ) ) + + 13 * 34 + 41 AS col0
----
-10
484

query III rowsort
SELECT + 56 + + 88 col2, + 60, 5 AS col1
----
144
60
5

query I rowsort
SELECT ALL + - 75 * - 35 * + 34 - 38 * 46 col1
----
87502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-291
SELECT DISTINCT + 47 * CAST( + 9 AS SIGNED ) * + COALESCE ( CASE - - 76 WHEN + 31 THEN 16 + - ( 70 ) ELSE 44 END, 82 + + 18 * + - 40 + - 82 + ( + 27 ) ) + 43 AS col1
----
18655

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + 47 * CAST ( + 9 AS INTEGER ) * + COALESCE ( CASE - - 76 WHEN + 31 THEN 16 + - ( 70 ) ELSE 44 END, 82 + + 18 * + - 40 + - 82 + ( + 27 ) ) + 43 AS col1
----
18655

query I rowsort
SELECT 13 + + 68
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-293
SELECT CAST( 8 AS SIGNED ) * + - COUNT( * ) + + 49
----
41

skipif mysql # not compatible
query I rowsort label-293
SELECT CAST ( 8 AS INTEGER ) * + - COUNT ( * ) + + 49
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL - MIN( DISTINCT 30 ) - - 37 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - MIN ( DISTINCT 30 ) - - 37 AS col2
----
7

query II rowsort
SELECT 31 AS col2, - 12
----
31
-12

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

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

query II rowsort
SELECT ALL - 77, 82 AS col2
----
-77
82

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

skipif mysql # not compatible
query I rowsort label-298
SELECT 13 * - COUNT ( * )
----
-13

query I rowsort
SELECT 25 * - - 83 + - 1 AS col0
----
2074

query I rowsort
SELECT COALESCE ( 35, 69, - 21 + - 54 * 85 ) AS col1
----
35

query I rowsort
SELECT ALL - CASE - + 79 WHEN + 44 THEN - + 39 WHEN 95 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT DISTINCT + 54 * ( COUNT( 54 ) ) - - 7 col2
----
61

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT + 54 * ( COUNT ( 54 ) ) - - 7 col2
----
61

query I rowsort
SELECT ALL - 53 * + 11 * + 84 * 77 AS col1
----
-3770844

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

query II rowsort
SELECT + 70, + 42 AS col1
----
70
42

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL + CASE - 77 WHEN 39 THEN NULL WHEN + - 7 + + 19 + - - COUNT( * ) / - - 95 / + 28 THEN NULL ELSE - + 55 END
----
-55

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + CASE - 77 WHEN 39 THEN NULL WHEN + - 7 + + 19 + - - COUNT ( * ) / - - 95 / + 28 THEN NULL ELSE - + 55 END
----
-55

query I rowsort
SELECT - 84 * + + 5 AS col1
----
-420

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

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

query I rowsort
SELECT - - 55 * + - 2 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + 80 + + COUNT( * ) * + 77
----
157

skipif mysql # not compatible
query I rowsort label-310
SELECT + 80 + + COUNT ( * ) * + 77
----
157

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT + 47 + + - 81 DIV - 26 + + + 99
----
149

skipif mysql # not compatible
query I rowsort label-313
SELECT + 47 + + - 81 / - 26 + + + 99
----
149

query II rowsort
SELECT + - 47 AS col0, - ( 29 )
----
-47
-29

query II rowsort
SELECT DISTINCT + - 49 + - + ( + + 21 ), + 84 * - 34 AS col0
----
-70
-2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-316
SELECT ALL + COUNT( * ) + - - 52 DIV + CAST( - 88 AS SIGNED ) * + 11 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + COUNT ( * ) + - - 52 / + CAST ( - 88 AS INTEGER ) * + 11 AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-317
SELECT + CASE ( 55 ) WHEN ( + - 43 ) THEN + - 46 END AS col0, 62 - 42 DIV + - 6
----
NULL
69

skipif mysql # not compatible
query II rowsort label-317
SELECT + CASE ( 55 ) WHEN ( + - 43 ) THEN + - 46 END AS col0, 62 - 42 / + - 6
----
NULL
69

query I rowsort
SELECT - - 53 * + 82
----
4346

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT DISTINCT 66 * + COUNT( * ) * 60
----
3960

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT 66 * + COUNT ( * ) * 60
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT + COUNT( * ) + + COALESCE ( - + 16, + 93 * - 99 * + 61 - - 81 * - - 47 )
----
-15

skipif mysql # not compatible
query I rowsort label-320
SELECT + COUNT ( * ) + + COALESCE ( - + 16, + 93 * - 99 * + 61 - - 81 * - - 47 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT ALL 93 + - 94 + + + COUNT( DISTINCT + 46 ) * + + 19
----
18

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL 93 + - 94 + + + COUNT ( DISTINCT + 46 ) * + + 19
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-322
SELECT DISTINCT 32 * + - 51 * + 55 DIV + COUNT( * ) + - 95 + - - 38
----
-89817

skipif mysql # not compatible
query I rowsort label-322
SELECT DISTINCT 32 * + - 51 * + 55 / + COUNT ( * ) + - 95 + - - 38
----
-89817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-323
SELECT ALL CAST( NULL AS SIGNED ) + - 15 / - ( - 95 ) * + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL CAST ( NULL AS INTEGER ) + - 15 / - ( - 95 ) * + 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT DISTINCT - 59 + + COUNT( * ) * 80 col0
----
21

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT - 59 + + COUNT ( * ) * 80 col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT DISTINCT CAST( 68 AS SIGNED ) - + 44 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT CAST ( 68 AS INTEGER ) - + 44 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL MIN( - + 41 ) * + + 36
----
-1476

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL MIN ( - + 41 ) * + + 36
----
-1476

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-328
SELECT ALL CASE CAST( 42 AS SIGNED ) WHEN + - 57 - 4 + - + 32 * - - 73 + 21 THEN NULL WHEN - - ( 73 ) THEN 40 * + + 8 ELSE + 18 * 45 END AS col1
----
810

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL CASE CAST ( 42 AS INTEGER ) WHEN + - 57 - 4 + - + 32 * - - 73 + 21 THEN NULL WHEN - - ( 73 ) THEN 40 * + + 8 ELSE + 18 * 45 END AS col1
----
810

query I rowsort
SELECT ALL - 67 * + 90
----
-6030

query I rowsort
SELECT - 91 - - 44
----
-47

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

skipif mysql # not compatible
query I rowsort label-331
SELECT + ( + MAX ( DISTINCT 51 ) ) AS col0
----
51

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

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

query I rowsort
SELECT + 55 + - + 46 + 2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT - 60 * + 15 AS col1, 71 + 21 - + 74 * + COUNT( * ) AS col0
----
-900
18

skipif mysql # not compatible
query II rowsort label-334
SELECT - 60 * + 15 AS col1, 71 + 21 - + 74 * + COUNT ( * ) AS col0
----
-900
18

query I rowsort
SELECT - 84 * + 3 + + - 15 * + 53 AS col0
----
-1047

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

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

query I rowsort
SELECT 4 * + + 56 + 84 AS col0
----
308

query II rowsort
SELECT DISTINCT + + ( 56 ) AS col2, 59
----
56
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-339
SELECT ALL - 48 * + - COUNT( * ) + 29 * - + 5 AS col1, - ( - 25 ) + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-97
24

skipif mysql # not compatible
query II rowsort label-339
SELECT ALL - 48 * + - COUNT ( * ) + 29 * - + 5 AS col1, - ( - 25 ) + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-97
24

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT - 46 * 25 + COUNT( * ) * - - 13 + - 37 - - - 42
----
-1216

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - 46 * 25 + COUNT ( * ) * - - 13 + - 37 - - - 42
----
-1216

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

query I rowsort
SELECT - - 99 * - - 21 AS col2
----
2079

onlyif mysql # aggregate syntax: 
query II rowsort label-343
SELECT + MAX( DISTINCT - 81 ), 0 AS col0
----
-81
0

skipif mysql # not compatible
query II rowsort label-343
SELECT + MAX ( DISTINCT - 81 ), 0 AS col0
----
-81
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT DISTINCT COUNT( * ) * + 47 * - 24 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT COUNT ( * ) * + 47 * - 24 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-345
SELECT DISTINCT + + 60 * 52 + + 65 DIV - 52 + + - CASE 55 WHEN - - 13 + - 27 THEN - 12 DIV - - COUNT( DISTINCT ( - - 98 ) ) WHEN + + ( - NULLIF ( + - COUNT( * ), - + 53 ) ) THEN NULL ELSE + 81 END
----
3038

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT + + 60 * 52 + + 65 / - 52 + + - CASE 55 WHEN - - 13 + - 27 THEN - 12 / - - COUNT ( DISTINCT ( - - 98 ) ) WHEN + + ( - NULLIF ( + - COUNT ( * ), - + 53 ) ) THEN NULL ELSE + 81 END
----
3038

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-346
SELECT DISTINCT - CAST( - + 15 AS SIGNED ) AS col0, + 80
----
15
80

skipif mysql # not compatible
query II rowsort label-346
SELECT DISTINCT - CAST ( - + 15 AS INTEGER ) AS col0, + 80
----
15
80

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT ALL - - MIN( - 56 ) * - 56 * - 37 * + - COUNT( * ) * + + 76 + - 60 + + SUM( 70 ) + 18 + 36 AS col0
----
8818496

skipif mysql # not compatible
query I rowsort label-347
SELECT ALL - - MIN ( - 56 ) * - 56 * - 37 * + - COUNT ( * ) * + + 76 + - 60 + + SUM ( 70 ) + 18 + 36 AS col0
----
8818496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-348
SELECT + 75 * + 79 - - MIN( ALL + - 64 ) + - ( + 27 ) - 3 DIV + MIN( DISTINCT 94 ) - - 51
----
5885

skipif mysql # not compatible
query I rowsort label-348
SELECT + 75 * + 79 - - MIN ( ALL + - 64 ) + - ( + 27 ) - 3 / + MIN ( DISTINCT 94 ) - - 51
----
5885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-349
SELECT CAST( + + NULLIF ( + 69, 60 + - + 63 ) AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-349
SELECT CAST ( + + NULLIF ( + 69, 60 + - + 63 ) AS INTEGER ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT ALL + COALESCE ( - - 49, 34 * SUM( - 35 ) ) * - COUNT( * ) - + - 66, + COUNT( * ) AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-350
SELECT ALL + COALESCE ( - - 49, 34 * SUM ( - 35 ) ) * - COUNT ( * ) - + - 66, + COUNT ( * ) AS col2
----
17
1

query II rowsort
SELECT - 13 + + 19 * 12 * - 45, + 50 * + 79 AS col2
----
-10273
3950

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

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

query I rowsort
SELECT + 74 * + NULLIF ( - 65, + 34 * 42 * - - CASE 97 WHEN - 45 * + 82 / + 94 THEN + 90 * - 67 END * 11 / - 82 )
----
-4810

query I rowsort
SELECT + 9 * 90
----
810

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

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

query I rowsort
SELECT + 21 + + + 59
----
80

query I rowsort
SELECT ALL - 98 * + 80
----
-7840

query I rowsort
SELECT 38 + + - 56 + - 97 * + 11 AS col2
----
-1085

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT ALL 4 AS col2, + ( SUM( DISTINCT + 32 ) )
----
4
32

skipif mysql # not compatible
query II rowsort label-359
SELECT ALL 4 AS col2, + ( SUM ( DISTINCT + 32 ) )
----
4
32

query II rowsort
SELECT ALL 12 col2, 1 AS col0
----
12
1

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

skipif mysql # not compatible
query I rowsort label-361
SELECT COUNT ( * ) / 94 AS col1
----
0

query I rowsort
SELECT ( - + 36 ) + - + 8 * + - 99 col0
----
756

query II rowsort
SELECT - 68, 62 + + + 74 * - 32 AS col0
----
-68
-2306

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT ALL 67 DIV ( - 49 ) * + 99 * + - 18 AS col0
----
1782

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL 67 / ( - 49 ) * + 99 * + - 18 AS col0
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT MAX( + 42 ) * + 92 + - 55
----
3809

skipif mysql # not compatible
query I rowsort label-365
SELECT MAX ( + 42 ) * + 92 + - 55
----
3809

query I rowsort
SELECT 54 * - 86
----
-4644

query I rowsort
SELECT ( + 11 ) * 1
----
11

query I rowsort
SELECT 66 * - + 37 AS col1
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT ALL - COUNT( * ) + - + 14 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL - COUNT ( * ) + - + 14 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-370
SELECT + - CASE - - 3 WHEN - ( - COUNT( * ) ) * - + 17 + + 47 THEN CASE CASE + 90 WHEN + COALESCE ( ( 53 ), + 72, 53 ) THEN - COUNT( * ) + + + 6 + + 31 * + - 21 + - MIN( 33 ) * - 38 ELSE - 8 + 22 END WHEN CASE + CAST( NULL AS SIGNED ) WHEN 63 + 62 THEN + 20 WHEN COUNT( * ) THEN - NULLIF ( CAST( NULL AS SIGNED ), 58 + 50 ) + CAST( NULL AS SIGNED ) * + 16 ELSE + COUNT( * ) END * - 29 THEN 59 - 66 END * + 85 WHEN 64 THEN + MAX( ALL - 17 ) * 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-370
SELECT + - CASE - - 3 WHEN - ( - COUNT ( * ) ) * - + 17 + + 47 THEN CASE CASE + 90 WHEN + COALESCE ( ( 53 ), + 72, 53 ) THEN - COUNT ( * ) + + + 6 + + 31 * + - 21 + - MIN ( 33 ) * - 38 ELSE - 8 + 22 END WHEN CASE + CAST ( NULL AS INTEGER ) WHEN 63 + 62 THEN + 20 WHEN COUNT ( * ) THEN - NULLIF ( CAST ( NULL AS INTEGER ), 58 + 50 ) + CAST ( NULL AS INTEGER ) * + 16 ELSE + COUNT ( * ) END * - 29 THEN 59 - 66 END * + 85 WHEN 64 THEN + MAX ( ALL - 17 ) * 21 END
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 95, + + 95 ) + + 23 col1
----
118

query I rowsort
SELECT + 33 * 39 * + 4
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL - 8 + - + COUNT( * ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - 8 + - + COUNT ( * ) col0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-374
SELECT + 3 AS col1, 54 * 47 DIV + 24
----
3
105

skipif mysql # not compatible
query II rowsort label-374
SELECT + 3 AS col1, 54 * 47 / + 24
----
3
105

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT + 60 DIV + - 16 - + 4 - - ( + 3 ) + + 6 + + 36 * + 46 AS col2
----
1658

skipif mysql # not compatible
query I rowsort label-375
SELECT + 60 / + - 16 - + 4 - - ( + 3 ) + + 6 + + 36 * + 46 AS col2
----
1658

query II rowsort
SELECT DISTINCT - 13, - 58 AS col2
----
-13
-58

query I rowsort
SELECT DISTINCT + 25 - 63 AS col2
----
-38

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

query I rowsort
SELECT NULLIF ( NULLIF ( - - 33, + 52 * 52 ), + 60 * 78 ) * 16 * + 15 AS col0
----
7920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT ALL - CAST( + 26 AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL - CAST ( + 26 AS INTEGER ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT COUNT( * ) * + + COUNT( * ) - - 82 + - + 58 + 53 - - 93 + + MIN( - ( 14 ) ) * 45 * + 6 * 32 + + 99 * - 89 * - 20
----
55431

skipif mysql # not compatible
query I rowsort label-381
SELECT COUNT ( * ) * + + COUNT ( * ) - - 82 + - + 58 + 53 - - 93 + + MIN ( - ( 14 ) ) * 45 * + 6 * 32 + + 99 * - 89 * - 20
----
55431

query I rowsort
SELECT - NULLIF ( - + 60, 28 + - 73 ) * - 23 + 27 * + 44 AS col1
----
-192

query I rowsort
SELECT 56 * - 12 AS col2
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL - - 64 * + NULLIF ( 91, + - ( CAST( - - 28 AS SIGNED ) ) )
----
5824

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL - - 64 * + NULLIF ( 91, + - ( CAST ( - - 28 AS INTEGER ) ) )
----
5824

query I rowsort
SELECT 48 + - 85 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT CASE + 15 WHEN 91 THEN 58 / - 71 END / 10 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-386
SELECT CASE + 15 WHEN 91 THEN 58 / - 71 END / 10 + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL 88 AS col1, 57 AS col1
----
88
57

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT 22 * COUNT( ALL 98 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-388
SELECT 22 * COUNT ( ALL 98 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT DISTINCT - NULLIF ( - - 95, + + 66 ) * + 35 + + NULLIF ( 10, + COUNT( * ) )
----
-3315

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT - NULLIF ( - - 95, + + 66 ) * + 35 + + NULLIF ( 10, + COUNT ( * ) )
----
-3315

query II rowsort
SELECT 36 AS col2, 51 * 88 * COALESCE ( + - 45, - 70 ) AS col2
----
36
-201960

query II rowsort
SELECT ALL 99 AS col2, 25 AS col2
----
99
25

query II rowsort
SELECT DISTINCT 50 AS col1, 12 col0
----
50
12

query II rowsort
SELECT DISTINCT 8 AS col2, NULLIF ( - 71, - 49 )
----
8
-71

query II rowsort
SELECT - 10 AS col0, + 79 * - ( + - 82 ) * - 90 - - - 27
----
-10
-583047

query I rowsort
SELECT 38 - 56 * NULLIF ( - + 36, + 89 )
----
2054

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT DISTINCT COUNT( * ), - MIN( ALL - 88 ) AS col1
----
1
88

skipif mysql # not compatible
query II rowsort label-396
SELECT DISTINCT COUNT ( * ), - MIN ( ALL - 88 ) AS col1
----
1
88

query I rowsort
SELECT 47 - 9 + - - 58
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-398
SELECT 71 AS col2, 38 * + + 71 + + CAST( + - 75 AS SIGNED ) col0
----
71
2623

skipif mysql # not compatible
query II rowsort label-398
SELECT 71 AS col2, 38 * + + 71 + + CAST ( + - 75 AS INTEGER ) col0
----
71
2623

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT ALL 2 + + + 54 - - + 5 * + ( 43 ) + - CASE - COUNT( * ) WHEN 48 THEN COUNT( * ) ELSE COUNT( * ) - + 4 * + + 41 END + COUNT( * ) AS col2
----
435

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL 2 + + + 54 - - + 5 * + ( 43 ) + - CASE - COUNT ( * ) WHEN 48 THEN COUNT ( * ) ELSE COUNT ( * ) - + 4 * + + 41 END + COUNT ( * ) AS col2
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT DISTINCT 60 + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT 60 + + COUNT ( * )
----
61

query I rowsort
SELECT ALL 19 + + 60 + + ( - 98 ) + + 13 + + 95 * - 86 * + 20 AS col1
----
-163406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-402
SELECT COUNT( DISTINCT 82 ) DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-402
SELECT COUNT ( DISTINCT 82 ) / + 30 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-403
SELECT 57 AS col2, COUNT( * ) - - 5 * - - 62 * + COALESCE ( - 66, + + 75 + 63, + 87 * - COUNT( * ) DIV COUNT( - - CAST( + 11 AS DECIMAL ) ) * - CAST( NULL AS SIGNED ) DIV 66 + + 66 )
----
57
-20459

skipif mysql # not compatible
query II rowsort label-403
SELECT 57 AS col2, COUNT ( * ) - - 5 * - - 62 * + COALESCE ( - 66, + + 75 + 63, + 87 * - COUNT ( * ) / COUNT ( - - CAST ( + 11 AS REAL ) ) * - CAST ( NULL AS INTEGER ) / 66 + + 66 )
----
57
-20459

query I rowsort
SELECT ALL - 77 + + - ( + + ( 1 ) ) col1
----
-78

query I rowsort
SELECT DISTINCT 38 * + 93 * + + 77 + + 98 * - + 93 col1
----
263004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-406
SELECT + COUNT( + CAST( + ( - 68 ) AS SIGNED ) ) AS col1, - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-406
SELECT + COUNT ( + CAST ( + ( - 68 ) AS INTEGER ) ) AS col1, - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-407
SELECT 99 DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-407
SELECT 99 / 81
----
1

query I rowsort
SELECT - 57 * 88 + - 43 AS col2
----
-5059

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT + SUM( + ( - 36 ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-409
SELECT + SUM ( + ( - 36 ) ) AS col0
----
-36

query I rowsort
SELECT + ( + - 7 ) col1
----
-7

query I rowsort
SELECT 22 - - + 54 * - 20
----
-1058

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT - 42, 14 + MIN( 47 ) AS col1
----
-42
61

skipif mysql # not compatible
query II rowsort label-412
SELECT - 42, 14 + MIN ( 47 ) AS col1
----
-42
61

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL - NULLIF ( - COUNT( * ), - + 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL - NULLIF ( - COUNT ( * ), - + 77 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT DISTINCT SUM( DISTINCT + 84 ) * - 23
----
-1932

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT SUM ( DISTINCT + 84 ) * - 23
----
-1932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-416
SELECT DISTINCT + 3 * - ( + CASE - - 25 WHEN + 34 * 96 * + COUNT( * ) + + 52 THEN + NULLIF ( 70, + CASE + - 43 WHEN + 15 THEN NULL WHEN - 53 * + 5 THEN - 36 END / - CASE 71 WHEN 15 - + 96 THEN - 71 WHEN 67 + ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - 33 ) THEN NULL ELSE NULL END + 55 * - 8 ) WHEN CASE ( NULLIF ( + COUNT( * ), ( 47 ) ) ) WHEN 10 * 38 THEN 54 ELSE NULL END THEN + 50 * - ( + 73 ) END ) + - SUM( 81 ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + 3 * - ( + CASE - - 25 WHEN + 34 * 96 * + COUNT ( * ) + + 52 THEN + NULLIF ( 70, + CASE + - 43 WHEN + 15 THEN NULL WHEN - 53 * + 5 THEN - 36 END / - CASE 71 WHEN 15 - + 96 THEN - 71 WHEN 67 + ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - 33 ) THEN NULL ELSE NULL END + 55 * - 8 ) WHEN CASE ( NULLIF ( + COUNT ( * ), ( 47 ) ) ) WHEN 10 * 38 THEN 54 ELSE NULL END THEN + 50 * - ( + 73 ) END ) + - SUM ( 81 ) * - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT - COUNT( * ) * 4 + - + 95
----
-99

skipif mysql # not compatible
query I rowsort label-417
SELECT - COUNT ( * ) * 4 + - + 95
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT 27 * - 97 + COUNT( * )
----
-2618

skipif mysql # not compatible
query I rowsort label-418
SELECT 27 * - 97 + COUNT ( * )
----
-2618

query I rowsort
SELECT 71 * + + 98
----
6958

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-420
SELECT DISTINCT + - 57, - ( + 30 ) - CASE + 11 WHEN - 18 + 2 THEN 73 + + CAST( NULL AS SIGNED ) - - 77 * + 5 * + 86 + + + 32 * + + 57 WHEN 88 * - + 7 THEN NULL END * - 75 AS col0, - + 1 + NULLIF ( - 5, - 11 ) AS col2
----
-57
NULL
-6

skipif mysql # not compatible
query III rowsort label-420
SELECT DISTINCT + - 57, - ( + 30 ) - CASE + 11 WHEN - 18 + 2 THEN 73 + + CAST ( NULL AS INTEGER ) - - 77 * + 5 * + 86 + + + 32 * + + 57 WHEN 88 * - + 7 THEN NULL END * - 75 AS col0, - + 1 + NULLIF ( - 5, - 11 ) AS col2
----
-57
NULL
-6

query I rowsort
SELECT + 98 * 14
----
1372

query I rowsort
SELECT + 79 + - 41 * + + 26
----
-987

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-423
SELECT - CASE + - 45 WHEN - + ( - SUM( ALL 40 ) ) * + 2 - - 89 + + 42 - + 48 * - + 33 * - 6 THEN 85 + - 35 WHEN 44 THEN NULL ELSE + 70 DIV MAX( ( 25 ) ) END
----
-2

skipif mysql # not compatible
query I rowsort label-423
SELECT - CASE + - 45 WHEN - + ( - SUM ( ALL 40 ) ) * + 2 - - 89 + + 42 - + 48 * - + 33 * - 6 THEN 85 + - 35 WHEN 44 THEN NULL ELSE + 70 / MAX ( ( 25 ) ) END
----
-2

query I rowsort
SELECT + 55 + - + 89
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT ALL - 8 + + 3 + + + CAST( + 48 AS SIGNED ) * - 21 * 82 + + 7 * 67
----
-82192

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL - 8 + + 3 + + + CAST ( + 48 AS INTEGER ) * - 21 * 82 + + 7 * 67
----
-82192

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT - 37 - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-426
SELECT - 37 - COUNT ( * )
----
-38

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-428
SELECT ALL + 36 + + 40 + + 41 DIV - 41 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + 36 + + 40 + + 41 / - 41 AS col1
----
75

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

query I rowsort
SELECT ALL - 9 + - - 5
----
-4

query I rowsort
SELECT - 2 + + 53 + 19
----
70

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-433
SELECT ALL + COUNT( * ) + - - 12 + - CASE COALESCE ( 28, + - 31 - COALESCE ( - + 76, 67 + 41 * + AVG ( DISTINCT - + 59 ) - + 31 ), - MIN( ALL - + 20 ) ) WHEN CAST( - 50 AS DECIMAL ) + - ( 18 ) + + 75 THEN 92 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + COUNT ( * ) + - - 12 + - CASE COALESCE ( 28, + - 31 - COALESCE ( - + 76, 67 + 41 * + AVG ( DISTINCT - + 59 ) - + 31 ), - MIN ( ALL - + 20 ) ) WHEN CAST ( - 50 AS REAL ) + - ( 18 ) + + 75 THEN 92 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT - ( - + 23 ) + - CASE + 57 WHEN + ( - COUNT( * ) ) THEN + COALESCE ( - 53, + + 37 + + MAX( + + 4 ) * - 0 * - 42, NULLIF ( 8, COUNT( * ) * + 76 ), + - 50 / - - 81, 45 * + CASE + - ( 94 ) WHEN 13 + - COALESCE ( CAST( NULL AS SIGNED ), 39 + 18, 46 ) / + 28 THEN + AVG ( DISTINCT - 90 ) / 72 + 48 * - 86 END + - 13 / + COUNT( * ) + 93 / AVG ( - 38 ) ) END - - 73 / - 9 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT - ( - + 23 ) + - CASE + 57 WHEN + ( - COUNT ( * ) ) THEN + COALESCE ( - 53, + + 37 + + MAX ( + + 4 ) * - 0 * - 42, NULLIF ( 8, COUNT ( * ) * + 76 ), + - 50 / - - 81, 45 * + CASE + - ( 94 ) WHEN 13 + - COALESCE ( CAST ( NULL AS INTEGER ), 39 + 18, 46 ) / + 28 THEN + AVG ( DISTINCT - 90 ) / 72 + 48 * - 86 END + - 13 / + COUNT ( * ) + 93 / AVG ( - 38 ) ) END - - 73 / - 9 * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - - 86 * + 71 * - 64 col1
----
-390784

query I rowsort
SELECT DISTINCT + 98 * + 55 - - - 75
----
5315

query I rowsort
SELECT - 91 * 54 * - - 37 - 35
----
-181853

query I rowsort
SELECT ALL - + 60 * - 92 * + 52
----
287040

onlyif mysql # aggregate syntax: 
query II rowsort label-439
SELECT ALL + ( + 47 ) AS col0, - 98 * + + 54 + + COUNT( * ) AS col0
----
47
-5291

skipif mysql # not compatible
query II rowsort label-439
SELECT ALL + ( + 47 ) AS col0, - 98 * + + 54 + + COUNT ( * ) AS col0
----
47
-5291

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL - + ( + COUNT( * ) ) * + 78 + + - NULLIF ( - + CASE + - 37 WHEN - 90 THEN NULL WHEN - 22 THEN + 35 / - - 24 + + 77 ELSE NULL END, - - 8 * + - ( 38 ) - - ( 81 ) ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - + ( + COUNT ( * ) ) * + 78 + + - NULLIF ( - + CASE + - 37 WHEN - 90 THEN NULL WHEN - 22 THEN + 35 / - - 24 + + 77 ELSE NULL END, - - 8 * + - ( 38 ) - - ( 81 ) ) * - 61
----
NULL

query I rowsort
SELECT - 68 * + 82 + + 15 + 60 AS col1
----
-5501

query I rowsort
SELECT 93 * + + 73 * - 82 + - 9
----
-556707

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-443
SELECT + - COUNT( * ) - - + 35, 45 + 43 DIV - - 4 + + 86 + + - 53 - - + 20 AS col2
----
34
108

skipif mysql # not compatible
query II rowsort label-443
SELECT + - COUNT ( * ) - - + 35, 45 + 43 / - - 4 + + 86 + + - 53 - - + 20 AS col2
----
34
108

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL + COUNT( * ) * 82 * 30 * 94 AS col1
----
231240

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL + COUNT ( * ) * 82 * 30 * 94 AS col1
----
231240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-445
SELECT + 20 DIV 56, - 15 + - COUNT( * ) * + 5 AS col0
----
0
-20

skipif mysql # not compatible
query II rowsort label-445
SELECT + 20 / 56, - 15 + - COUNT ( * ) * + 5 AS col0
----
0
-20

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

onlyif mysql # aggregate syntax: 
query II rowsort label-447
SELECT ALL + COUNT( * ) * + 43 + + 75, 69 AS col0
----
118
69

skipif mysql # not compatible
query II rowsort label-447
SELECT ALL + COUNT ( * ) * + 43 + + 75, 69 AS col0
----
118
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT COUNT( * ) * - - 8 + + 96 + - CAST( + - COUNT( * ) AS SIGNED ) + MAX( + 51 ) col2
----
156

skipif mysql # not compatible
query I rowsort label-448
SELECT COUNT ( * ) * - - 8 + + 96 + - CAST ( + - COUNT ( * ) AS INTEGER ) + MAX ( + 51 ) col2
----
156

query I rowsort
SELECT + NULLIF ( + 98, + 23 * - - 22 * - - 23 )
----
98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT ALL CASE - 98 WHEN + 48 * + 4 THEN + 65 WHEN - 74 + - MIN( DISTINCT + - ( + 68 ) ) + 79 * + COUNT( * ) THEN + 73 * - 95 - - COUNT( * ) + - COALESCE ( + MAX( 93 ), - NULLIF ( + 29, - - 95 + - - 17 + + - 19 + - 93 * 59 ) + - 45 ) - SUM( 90 ) * + ( - 41 * + 72 ) + + COUNT( * ) WHEN + CAST( - 40 AS SIGNED ) THEN 90 + + 28 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL CASE - 98 WHEN + 48 * + 4 THEN + 65 WHEN - 74 + - MIN ( DISTINCT + - ( + 68 ) ) + 79 * + COUNT ( * ) THEN + 73 * - 95 - - COUNT ( * ) + - COALESCE ( + MAX ( 93 ), - NULLIF ( + 29, - - 95 + - - 17 + + - 19 + - 93 * 59 ) + - 45 ) - SUM ( 90 ) * + ( - 41 * + 72 ) + + COUNT ( * ) WHEN + CAST ( - 40 AS INTEGER ) THEN 90 + + 28 ELSE COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-452
SELECT DISTINCT NULLIF ( - 0, + + COUNT( * ) * + + 68 + + 49 / + CAST( - + 48 AS SIGNED ) * - 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT NULLIF ( - 0, + + COUNT ( * ) * + + 68 + + 49 / + CAST ( - + 48 AS INTEGER ) * - 65 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT 49 + + MAX( - 85 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT 49 + + MAX ( - 85 ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-454
SELECT - CAST( NULL AS SIGNED ) AS col1, - CAST( NULL AS SIGNED ) * - - COUNT( * ) - + + 71 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-454
SELECT - CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - + + 71 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT ALL - MAX( - 21 ) * 45 + - + ( 51 ) * + 36 col1, - 4 * + 11 col0
----
-891
-44

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL - MAX ( - 21 ) * 45 + - + ( 51 ) * + 36 col1, - 4 * + 11 col0
----
-891
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL 84 + - COUNT( DISTINCT + + ( + 90 ) )
----
83

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL 84 + - COUNT ( DISTINCT + + ( + 90 ) )
----
83

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

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT 77 AS col0, 47
----
77
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-459
SELECT - CAST( 28 AS SIGNED ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-459
SELECT - CAST ( 28 AS INTEGER ) col2
----
-28

query I rowsort
SELECT + 25 * - - 84 AS col0
----
2100

query I rowsort
SELECT ALL - 78 * + - 79
----
6162

query I rowsort
SELECT - 48 * 27 AS col1
----
-1296

query II rowsort
SELECT 28 AS col1, + 51
----
28
51

query I rowsort
SELECT + - 40 - 44
----
-84

query I rowsort
SELECT - 22 * - 56 AS col0
----
1232

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

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

query I rowsort
SELECT ALL - - 37 - - 50 + - ( + - 83 )
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT - 75 DIV COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-468
SELECT - 75 / COUNT ( * ) AS col2
----
-75

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

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

query I rowsort
SELECT DISTINCT COALESCE ( 17, + 75, + + ( - + 88 ) )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT ALL CASE - 11 WHEN 78 + - - AVG ( - 93 ) / - 22 THEN AVG ( + 44 ) WHEN - + 60 + + ( COALESCE ( - - 36, - SUM( 36 ) * 71 + - 32, + CAST( NULL AS SIGNED ) + - 51 + + 99 ) ) THEN ( CAST( - 90 AS SIGNED ) ) * + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL CASE - 11 WHEN 78 + - - AVG ( - 93 ) / - 22 THEN AVG ( + 44 ) WHEN - + 60 + + ( COALESCE ( - - 36, - SUM ( 36 ) * 71 + - 32, + CAST ( NULL AS INTEGER ) + - 51 + + 99 ) ) THEN ( CAST ( - 90 AS INTEGER ) ) * + 79 END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT - 66 DIV 8 * + 80 - + 33
----
-673

skipif mysql # not compatible
query I rowsort label-473
SELECT - 66 / 8 * + 80 - + 33
----
-673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-474
SELECT - + 8 * + 79 + + 39 AS col1, CAST( NULL AS SIGNED ) AS col0
----
-593
NULL

skipif mysql # not compatible
query II rowsort label-474
SELECT - + 8 * + 79 + + 39 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-593
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT - - COALESCE ( - - 86, + SUM( + 18 ) * - 18 + - 45 - - - 51 + + 79 ) + - - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-475
SELECT - - COALESCE ( - - 86, + SUM ( + 18 ) * - 18 + - 45 - - - 51 + + 79 ) + - - COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-476
SELECT - CASE - + 39 WHEN - - SUM( + 59 ) - + 96 - - COUNT( * ) THEN NULL WHEN COUNT( * ) * + 84 + - 14 * + 96 + + 8 / - 27 THEN + 96 * - 50 + + 30 * + NULLIF ( 42, - 75 - + + 55 ) / - - CAST( NULL AS DECIMAL ) WHEN + 54 THEN - 12 + + - 12 * - 98 END - CASE - 80 WHEN 58 THEN NULL ELSE AVG ( - 75 ) + 33 * - 84 END * 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-476
SELECT - CASE - + 39 WHEN - - SUM ( + 59 ) - + 96 - - COUNT ( * ) THEN NULL WHEN COUNT ( * ) * + 84 + - 14 * + 96 + + 8 / - 27 THEN + 96 * - 50 + + 30 * + NULLIF ( 42, - 75 - + + 55 ) / - - CAST ( NULL AS REAL ) WHEN + 54 THEN - 12 + + - 12 * - 98 END - CASE - 80 WHEN 58 THEN NULL ELSE AVG ( - 75 ) + 33 * - 84 END * 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL - NULLIF ( + - 23, + 98 * - - COUNT( * ) + - 30 ) + - 87 * 81
----
-7024

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL - NULLIF ( + - 23, + 98 * - - COUNT ( * ) + - 30 ) + - 87 * 81
----
-7024

query II rowsort
SELECT + - 87, 73 - - + 73 AS col2
----
-87
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-479
SELECT ALL + MIN( ALL + - ( + 52 ) ) + - 60 DIV - NULLIF ( - 1, + - 72 )
----
-112

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + MIN ( ALL + - ( + 52 ) ) + - 60 / - NULLIF ( - 1, + - 72 )
----
-112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL - 87 + COUNT( * ) + 44 * + 55 AS col1
----
2334

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - 87 + COUNT ( * ) + 44 * + 55 AS col1
----
2334

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT MAX( - 77 ) + + - 96 + - 72 AS col2
----
-245

skipif mysql # not compatible
query I rowsort label-482
SELECT MAX ( - 77 ) + + - 96 + - 72 AS col2
----
-245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT ALL - CAST( + 58 AS SIGNED ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - CAST ( + 58 AS INTEGER ) AS col0
----
-58

query I rowsort
SELECT DISTINCT - 26 + + ( 11 )
----
-15

query I rowsort
SELECT 71 * - 3 + + 38
----
-175

query I rowsort
SELECT DISTINCT 44 + - 25 + - 6 col0
----
13

query I rowsort
SELECT ALL 96 + - 44 + - + 63 AS col2
----
-11

query I rowsort
SELECT 73 - + NULLIF ( - 82, - - ( 19 ) * 48 )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT SUM( - 37 ) * COUNT( - 25 )
----
-37

skipif mysql # not compatible
query I rowsort label-489
SELECT SUM ( - 37 ) * COUNT ( - 25 )
----
-37

query I rowsort
SELECT ALL 43 * 3
----
129

query I rowsort
SELECT 92 + + + 29 col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT 63 + - + COUNT( * ) * 7
----
56

skipif mysql # not compatible
query I rowsort label-492
SELECT 63 + - + COUNT ( * ) * 7
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT 17 - - MAX( + 40 )
----
57

skipif mysql # not compatible
query I rowsort label-493
SELECT 17 - - MAX ( + 40 )
----
57

query I rowsort
SELECT DISTINCT 42 * 19 AS col2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT 77 * - MAX( ALL 6 )
----
-462

skipif mysql # not compatible
query I rowsort label-495
SELECT 77 * - MAX ( ALL 6 )
----
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-496
SELECT ALL - + 10 DIV - 15 * + 77
----
0

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - + 10 / - 15 * + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT 8 + SUM( ALL - 33 )
----
-25

skipif mysql # not compatible
query I rowsort label-497
SELECT 8 + SUM ( ALL - 33 )
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-498
SELECT DISTINCT + 65 DIV 95 + 42 + - 12 AS col2, 68 + + - 43
----
30
25

skipif mysql # not compatible
query II rowsort label-498
SELECT DISTINCT + 65 / 95 + 42 + - 12 AS col2, 68 + + - 43
----
30
25

query I rowsort
SELECT + 0 + - + 42 AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT - 9 DIV - 9
----
1

skipif mysql # not compatible
query I rowsort label-500
SELECT - 9 / - 9
----
1

query I rowsort
SELECT DISTINCT + - 68 * + 5 * + 46 - 53 col2
----
-15693

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT 64 + + COUNT( * ) + - 25 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-502
SELECT 64 + + COUNT ( * ) + - 25 AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT + COUNT( * ) DIV - + ( - COUNT( * ) ) + - - 97
----
98

skipif mysql # not compatible
query I rowsort label-503
SELECT + COUNT ( * ) / - + ( - COUNT ( * ) ) + - - 97
----
98

query I rowsort
SELECT ALL + 71 + - 97
----
-26

query I rowsort
SELECT ALL ( + 83 ) + - 51 + + 28
----
60

query I rowsort
SELECT ALL - 91 + - 60
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT + - NULLIF ( + NULLIF ( - - 92, - 8 ), - - COUNT( * ) + + 50 )
----
-92

skipif mysql # not compatible
query I rowsort label-507
SELECT + - NULLIF ( + NULLIF ( - - 92, - 8 ), - - COUNT ( * ) + + 50 )
----
-92

query I rowsort
SELECT ALL - ( - - 94 ) AS col0
----
-94

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

query I rowsort
SELECT 83 + + - 21
----
62

query I rowsort
SELECT DISTINCT - 95 * + NULLIF ( 83, - - 17 - + ( - - 12 ) ) col2
----
-7885

onlyif mysql # DIV for integer division: 
query I rowsort label-512
SELECT ALL - ( - 42 ) - - + 35 DIV + + 38 + + + 99 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL - ( - 42 ) - - + 35 / + + 38 + + + 99 AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL + COUNT( ALL - 79 ) * + MAX( DISTINCT + 87 ) * + 43 AS col2
----
3741

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + COUNT ( ALL - 79 ) * + MAX ( DISTINCT + 87 ) * + 43 AS col2
----
3741

query I rowsort
SELECT 73 + - - 27 AS col1
----
100

query I rowsort
SELECT DISTINCT + 4 * 99 AS col1
----
396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-516
SELECT + 73 * - 30 - - 27 * + 70 * + - 17 + - COUNT( * ) DIV - 9
----
-34320

skipif mysql # not compatible
query I rowsort label-516
SELECT + 73 * - 30 - - 27 * + 70 * + - 17 + - COUNT ( * ) / - 9
----
-34320

query I rowsort
SELECT 57 * + 15 AS col2
----
855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT ALL - COALESCE ( - ( - COALESCE ( - NULLIF ( COUNT( * ), + 73 - + 3 + - CASE 70 WHEN - 35 THEN - - COUNT( * ) ELSE NULL END / 21 * + 47 * - + 14 * + 44 * - 82 * - - CAST( ( - MIN( DISTINCT + + 42 ) ) AS SIGNED ) * + - ( + 76 ) / - 35 ), + 54, + 6 ) ), 2 )
----
1

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - COALESCE ( - ( - COALESCE ( - NULLIF ( COUNT ( * ), + 73 - + 3 + - CASE 70 WHEN - 35 THEN - - COUNT ( * ) ELSE NULL END / 21 * + 47 * - + 14 * + 44 * - 82 * - - CAST ( ( - MIN ( DISTINCT + + 42 ) ) AS INTEGER ) * + - ( + 76 ) / - 35 ), + 54, + 6 ) ), 2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT MIN( DISTINCT - - 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT MIN ( DISTINCT - - 74 ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT 76 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-520
SELECT 76 / 86
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-521
SELECT NULLIF ( + 18, 53 + + 59 * - - 79 ) + - - 82 DIV - + ( - COUNT( * ) )
----
100

skipif mysql # not compatible
query I rowsort label-521
SELECT NULLIF ( + 18, 53 + + 59 * - - 79 ) + - - 82 / - + ( - COUNT ( * ) )
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT COALESCE ( 35, 32, + 75 DIV + - 63 ) * - - ( 35 ) * + 7 * + + 50
----
428750

skipif mysql # not compatible
query I rowsort label-522
SELECT COALESCE ( 35, 32, + 75 / + - 63 ) * - - ( 35 ) * + 7 * + + 50
----
428750

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT DISTINCT + CASE - + NULLIF ( - 66, - + 87 * 55 ) WHEN + 59 THEN NULL ELSE 53 END * - + CAST( - 17 AS SIGNED )
----
901

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT + CASE - + NULLIF ( - 66, - + 87 * 55 ) WHEN + 59 THEN NULL ELSE 53 END * - + CAST ( - 17 AS INTEGER )
----
901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-525
SELECT - CAST( - + 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-525
SELECT - CAST ( - + 15 AS INTEGER )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-526
SELECT 2 - 52 * - 44 + - - 68 - - CAST( + - 86 AS SIGNED ) DIV - MAX( 29 )
----
2360

skipif mysql # not compatible
query I rowsort label-526
SELECT 2 - 52 * - 44 + - - 68 - - CAST ( + - 86 AS INTEGER ) / - MAX ( 29 )
----
2360

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT - MIN( - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-527
SELECT - MIN ( - 66 ) AS col2
----
66

query I rowsort
SELECT ALL + ( - 58 ) * 74
----
-4292

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-529
SELECT + - ( - 2 ) + CASE - 71 WHEN - - COUNT( * ) THEN 70 * + CASE + ( COALESCE ( - + COUNT( * ), 25 ) ) WHEN + 87 + 45 * - + 84 THEN - + 83 END - 79 + + CAST( NULL AS DECIMAL ) / + 51 * + 4 * - 70 * + - 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT + - ( - 2 ) + CASE - 71 WHEN - - COUNT ( * ) THEN 70 * + CASE + ( COALESCE ( - + COUNT ( * ), 25 ) ) WHEN + 87 + 45 * - + 84 THEN - + 83 END - 79 + + CAST ( NULL AS REAL ) / + 51 * + 4 * - 70 * + - 84 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 42 + + 67
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT DISTINCT MIN( 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT MIN ( 72 ) AS col2
----
72

query I rowsort
SELECT + - ( + + 92 ) - 37 col0
----
-129

query I rowsort
SELECT DISTINCT + 92 + 68 AS col0
----
160

query II rowsort
SELECT + 0 - - ( - COALESCE ( 75, 26 ) ) AS col2, 58 AS col2
----
-75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-535
SELECT + COUNT( NULLIF ( - 11, + CAST( NULL AS SIGNED ) * + ( + 94 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-535
SELECT + COUNT ( NULLIF ( - 11, + CAST ( NULL AS INTEGER ) * + ( + 94 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT + COALESCE ( - + COALESCE ( MAX( DISTINCT + 9 ), COUNT( ALL - 77 ) ), + - 54 ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-536
SELECT + COALESCE ( - + COALESCE ( MAX ( DISTINCT + 9 ), COUNT ( ALL - 77 ) ), + - 54 ) col0
----
-9

query I rowsort
SELECT DISTINCT 7 * - 77 - - 20
----
-519

query I rowsort
SELECT + ( 68 ) * - 98 AS col0
----
-6664

query I rowsort
SELECT NULLIF ( - 42, + - 23 )
----
-42

query I rowsort
SELECT ALL 67 * - 79 AS col2
----
-5293

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-541
SELECT DISTINCT + 15, - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-541
SELECT DISTINCT + 15, - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
15
NULL

query I rowsort
SELECT - 38 + + 33
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-543
SELECT + 49 * 70 DIV 30 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-543
SELECT + 49 * 70 / 30 AS col1
----
114

query I rowsort
SELECT NULLIF ( 35, + 28 ) col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-545
SELECT COUNT( * ) * + + 53 / - CAST( NULL AS SIGNED ) + - COALESCE ( + - 56, 29 * - COUNT( * ) + + 15 ) + - 67 * 57 + - - 53 + - + 51, CASE - 96 WHEN 39 * + COUNT( * ) + + - MAX( 53 ) THEN - 0 * - 72 WHEN + 46 THEN NULL END * + 83 * - SUM( 97 ) col2, - 16 AS col2
----
NULL
NULL
-16

skipif mysql # not compatible
query III rowsort label-545
SELECT COUNT ( * ) * + + 53 / - CAST ( NULL AS INTEGER ) + - COALESCE ( + - 56, 29 * - COUNT ( * ) + + 15 ) + - 67 * 57 + - - 53 + - + 51, CASE - 96 WHEN 39 * + COUNT ( * ) + + - MAX ( 53 ) THEN - 0 * - 72 WHEN + 46 THEN NULL END * + 83 * - SUM ( 97 ) col2, - 16 AS col2
----
NULL
NULL
-16

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

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

query I rowsort
SELECT + 68 * - 89 + + 77
----
-5975

onlyif mysql # aggregate syntax: 
query II rowsort label-548
SELECT - 19 + - MAX( 24 ) * - 71 AS col0, - ( + - COUNT( * ) ) * - 16
----
1685
-16

skipif mysql # not compatible
query II rowsort label-548
SELECT - 19 + - MAX ( 24 ) * - 71 AS col0, - ( + - COUNT ( * ) ) * - 16
----
1685
-16

query II rowsort
SELECT ALL + 17, - 31 AS col1
----
17
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT ALL + 46 * SUM( DISTINCT + - 98 ) AS col2
----
-4508

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL + 46 * SUM ( DISTINCT + - 98 ) AS col2
----
-4508

query II rowsort
SELECT ALL + 56 * + 17 AS col2, 10
----
952
10

query I rowsort
SELECT DISTINCT - 1 + 70 + 39 * - 0 + - 94
----
-25

query II rowsort
SELECT + 95 col0, ( + - 73 ) * + 4
----
95
-292

query I rowsort
SELECT - 68 + + 50 + + - 1 * 47
----
-65

query I rowsort
SELECT - - 1 + - + 67
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-556
SELECT + ( - - 27 ) DIV + COUNT( - 2 ) + + NULLIF ( + - 65, ( + 80 ) ) + 67 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-556
SELECT + ( - - 27 ) / + COUNT ( - 2 ) + + NULLIF ( + - 65, ( + 80 ) ) + 67 AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT - + 26 + - COALESCE ( + MAX( DISTINCT - 94 ), - + CAST( - 91 AS SIGNED ) )
----
68

skipif mysql # not compatible
query I rowsort label-557
SELECT - + 26 + - COALESCE ( + MAX ( DISTINCT - 94 ), - + CAST ( - 91 AS INTEGER ) )
----
68

query II rowsort
SELECT - + 29 AS col1, 49 * + 39 AS col1
----
-29
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT - - 51 + - - COUNT( * ) + - NULLIF ( + 54, + - 72 )
----
-2

skipif mysql # not compatible
query I rowsort label-559
SELECT - - 51 + - - COUNT ( * ) + - NULLIF ( + 54, + - 72 )
----
-2

query I rowsort
SELECT ALL - + 46 + + - 99 * - 11
----
1043

query I rowsort
SELECT NULLIF ( + 15, + 53 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT + COUNT( ALL ( + 99 ) ) + + - 79 + ( - - ( 53 ) ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-562
SELECT + COUNT ( ALL ( + 99 ) ) + + - 79 + ( - - ( 53 ) ) col1
----
-25

query I rowsort
SELECT ALL 10 * - + ( - 54 )
----
540

onlyif mysql # aggregate syntax: 
query II rowsort label-564
SELECT DISTINCT + 63 + - COUNT( * ) + + + ( + + 50 ) AS col0, + NULLIF ( + + 4, + 72 * 94 / COUNT( * ) * - 26 + 14 - 38 ) * - - 83 + 94
----
112
426

skipif mysql # not compatible
query II rowsort label-564
SELECT DISTINCT + 63 + - COUNT ( * ) + + + ( + + 50 ) AS col0, + NULLIF ( + + 4, + 72 * 94 / COUNT ( * ) * - 26 + 14 - 38 ) * - - 83 + 94
----
112
426

query I rowsort
SELECT - + 99 * - + 43
----
4257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query III rowsort label-566
SELECT + 98 + 43 AS col0, CASE + - 19 WHEN - 67 * - + 29 - + + 49 THEN 28 * - ( 57 ) + + CAST( + - 88 AS DECIMAL ) WHEN + 79 + + COUNT( + + 24 ) DIV - CAST( 54 AS SIGNED ) - + + 52 THEN - 82 ELSE NULL END AS col2, - COUNT( * ) * + - 7 - + 59 DIV - + 52 col2
----
141
NULL
8

skipif mysql # not compatible
query III rowsort label-566
SELECT + 98 + 43 AS col0, CASE + - 19 WHEN - 67 * - + 29 - + + 49 THEN 28 * - ( 57 ) + + CAST ( + - 88 AS REAL ) WHEN + 79 + + COUNT ( + + 24 ) / - CAST ( 54 AS INTEGER ) - + + 52 THEN - 82 ELSE NULL END AS col2, - COUNT ( * ) * + - 7 - + 59 / - + 52 col2
----
141
NULL
8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT ALL CASE NULLIF ( - 48, + 69 + - 31 + 57 + + 56 * 4 * + 86 + - 72 ) WHEN 28 / + - 74 + + - 5 * 70 * - - 37 THEN - + MIN( ALL - + 46 ) + 90 / - 41 + 36 WHEN + 56 THEN NULL ELSE NULL END, 84 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-568
SELECT ALL CASE NULLIF ( - 48, + 69 + - 31 + 57 + + 56 * 4 * + 86 + - 72 ) WHEN 28 / + - 74 + + - 5 * 70 * - - 37 THEN - + MIN ( ALL - + 46 ) + 90 / - 41 + 36 WHEN + 56 THEN NULL ELSE NULL END, 84 AS col2
----
NULL
84

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-570
SELECT ALL 3 DIV - 44 * - 9 - + 29 + + 3 + - + COALESCE ( + - 96, + COUNT( DISTINCT 0 ) * - 84 - - 39 + + + COUNT( * ) ) - + 93 * 86 * - + 8 - - 79
----
64133

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL 3 / - 44 * - 9 - + 29 + + 3 + - + COALESCE ( + - 96, + COUNT ( DISTINCT 0 ) * - 84 - - 39 + + + COUNT ( * ) ) - + 93 * 86 * - + 8 - - 79
----
64133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT CAST( + + 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-571
SELECT CAST ( + + 31 AS INTEGER )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-572
SELECT + ( - 29 ) * CAST( - CASE + 54 WHEN + 27 - 5 * - + 73 * + 24 / ( - + 59 ) THEN 36 * CAST( 0 AS SIGNED ) - 19 * 74 ELSE - ( + + 30 ) * + 13 END AS SIGNED )
----
-11310

skipif mysql # not compatible
query I rowsort label-572
SELECT + ( - 29 ) * CAST ( - CASE + 54 WHEN + 27 - 5 * - + 73 * + 24 / ( - + 59 ) THEN 36 * CAST ( 0 AS INTEGER ) - 19 * 74 ELSE - ( + + 30 ) * + 13 END AS INTEGER )
----
-11310

query I rowsort
SELECT + 59 * + 85 + + 78
----
5093

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-574
SELECT + 26 DIV CAST( 72 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-574
SELECT + 26 / CAST ( 72 AS INTEGER )
----
0

query I rowsort
SELECT + 32 * + - 76 AS col1
----
-2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-576
SELECT + 64 * + 42 - + CAST( 96 AS SIGNED )
----
2592

skipif mysql # not compatible
query I rowsort label-576
SELECT + 64 * + 42 - + CAST ( 96 AS INTEGER )
----
2592

query II rowsort
SELECT DISTINCT 72 * 75 col1, + 58
----
5400
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-578
SELECT ALL 84 / + - CASE + 98 WHEN MAX( DISTINCT + NULLIF ( + + ( + - 35 ), 47 * - 38 + + 83 + + 43 + - - 45 * 26 * - 15 ) ) THEN CAST( 27 AS DECIMAL ) WHEN + 28 THEN - 23 * - CAST( + 60 AS SIGNED ) - + 78 * + + CAST( NULL AS SIGNED ) END * - MAX( DISTINCT + CASE ( + NULLIF ( - + CAST( NULL AS SIGNED ), + 38 - + 73 ) ) WHEN - 60 THEN + 58 - 43 ELSE 54 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL 84 / + - CASE + 98 WHEN MAX ( DISTINCT + NULLIF ( + + ( + - 35 ), 47 * - 38 + + 83 + + 43 + - - 45 * 26 * - 15 ) ) THEN CAST ( 27 AS REAL ) WHEN + 28 THEN - 23 * - CAST ( + 60 AS INTEGER ) - + 78 * + + CAST ( NULL AS INTEGER ) END * - MAX ( DISTINCT + CASE ( + NULLIF ( - + CAST ( NULL AS INTEGER ), + 38 - + 73 ) ) WHEN - 60 THEN + 58 - 43 ELSE 54 END )
----
NULL

query II rowsort
SELECT + 96 * - + 6 AS col1, - 43
----
-576
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL + SUM( ALL 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL + SUM ( ALL 29 ) AS col0
----
29

query II rowsort
SELECT ALL 78 * - - 22 AS col1, 70 * + 50
----
1716
3500

onlyif mysql # aggregate syntax: 
query II rowsort label-582
SELECT ALL + COUNT( * ) * COUNT( * ) + - 79 - - 84 * ( 60 ) + + 49, 71 AS col1
----
5011
71

skipif mysql # not compatible
query II rowsort label-582
SELECT ALL + COUNT ( * ) * COUNT ( * ) + - 79 - - 84 * ( 60 ) + + 49, 71 AS col1
----
5011
71

query II rowsort
SELECT - 66 * + - 67, 12 + COALESCE ( - 4, + 70, - 21 ) AS col1
----
4422
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-584
SELECT + CAST( NULL AS SIGNED ) * + 55 AS col2, 21, - + ( + SUM( - + NULLIF ( ( + 37 ), - 54 ) ) ) DIV - - COUNT( - 74 ) + - + NULLIF ( 60, - ( - COUNT( * ) ) ) AS col1
----
NULL
21
-23

skipif mysql # not compatible
query III rowsort label-584
SELECT + CAST ( NULL AS INTEGER ) * + 55 AS col2, 21, - + ( + SUM ( - + NULLIF ( ( + 37 ), - 54 ) ) ) / - - COUNT ( - 74 ) + - + NULLIF ( 60, - ( - COUNT ( * ) ) ) AS col1
----
NULL
21
-23

query I rowsort
SELECT - 42 * + 56 AS col1
----
-2352

query I rowsort
SELECT DISTINCT - 12 * + 38 + - 71 * + - 65 AS col0
----
4159

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT 83 + + + 88 * + SUM( 11 )
----
1051

skipif mysql # not compatible
query I rowsort label-587
SELECT 83 + + + 88 * + SUM ( 11 )
----
1051

query II rowsort
SELECT ( + 67 ), + 43 * + 24 AS col0
----
67
1032

query I rowsort
SELECT ALL 89 + + 75 + - 5
----
159

query I rowsort
SELECT DISTINCT + - 48 * + 33 + + 30
----
-1554

query I rowsort
SELECT ALL - 25 * - 42 * 19 AS col1
----
19950

query I rowsort
SELECT + 55 * 5 AS col1
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT COUNT( * ) + - 5 * 23
----
-114

skipif mysql # not compatible
query I rowsort label-593
SELECT COUNT ( * ) + - 5 * 23
----
-114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-594
SELECT - + CASE AVG ( ALL - - 28 ) WHEN + 68 THEN - 43 WHEN + NULLIF ( + + 72, + 77 + + - 47 ) * 66 + + CAST( NULL AS DECIMAL ) / ( - COUNT( ALL - + 30 ) ) THEN NULL WHEN COUNT( + + 71 ) / + 77 + + COUNT( - 43 ) + + + 40 THEN ( - ( + 95 ) ) ELSE NULL END AS col1, + 23 * - 49 AS col1
----
NULL
-1127

skipif mysql # not compatible
query II rowsort label-594
SELECT - + CASE AVG ( ALL - - 28 ) WHEN + 68 THEN - 43 WHEN + NULLIF ( + + 72, + 77 + + - 47 ) * 66 + + CAST ( NULL AS REAL ) / ( - COUNT ( ALL - + 30 ) ) THEN NULL WHEN COUNT ( + + 71 ) / + 77 + + COUNT ( - 43 ) + + + 40 THEN ( - ( + 95 ) ) ELSE NULL END AS col1, + 23 * - 49 AS col1
----
NULL
-1127

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

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

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

skipif mysql # not compatible
query I rowsort label-596
SELECT + 35 + - COUNT ( * ) AS col1
----
34

query I rowsort
SELECT ( - 95 ) + + 87 + + - 54 + + ( 70 ) + + 36
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT ALL - - 39 - 43 + - - COUNT( DISTINCT - - 56 )
----
-3

skipif mysql # not compatible
query I rowsort label-598
SELECT ALL - - 39 - 43 + - - COUNT ( DISTINCT - - 56 )
----
-3

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

query I rowsort
SELECT ALL 1 - 92 AS col2
----
-91

query I rowsort
SELECT DISTINCT - 60 * + + 95 + 44 - - 76 * 27 AS col0
----
-3604

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT ALL - 63 DIV + 45 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL - 63 / + 45 AS col0
----
-1

query I rowsort
SELECT 76 - 87 * + + 42 * + + 79 * - - 94 col2
----
-27134528

query I rowsort
SELECT ALL 74 * 82
----
6068

query I rowsort
SELECT 83 * + 71 col1
----
5893

onlyif mysql # DIV for integer division: 
query I rowsort label-606
SELECT DISTINCT - 45 DIV - 26 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - 45 / - 26 AS col0
----
1

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

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

query II rowsort
SELECT 58 col0, 91 * + 4 * 59 col2
----
58
21476

query I rowsort
SELECT DISTINCT + 73 * 45
----
3285

query II rowsort
SELECT 27 * + 21 + 75, - 74 AS col1
----
642
-74

query I rowsort
SELECT 82 * + 53
----
4346

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-612
SELECT ALL - COALESCE ( CASE + 49 WHEN 99 THEN 27 WHEN 42 THEN NULL END, 15, + COUNT( * ) + + CASE - + 55 WHEN + 25 + - CAST( NULL AS DECIMAL ) THEN - - 88 ELSE NULL END )
----
-15

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - COALESCE ( CASE + 49 WHEN 99 THEN 27 WHEN 42 THEN NULL END, 15, + COUNT ( * ) + + CASE - + 55 WHEN + 25 + - CAST ( NULL AS REAL ) THEN - - 88 ELSE NULL END )
----
-15

query I rowsort
SELECT DISTINCT - 73 * - 32
----
2336

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

query II rowsort
SELECT + 12, 82 AS col1
----
12
82

query II rowsort
SELECT 74 AS col0, 4
----
74
4

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL COUNT( DISTINCT - 30 ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL COUNT ( DISTINCT - 30 ) + - 58
----
-57

query II rowsort
SELECT 55 AS col0, + 37
----
55
37

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

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

query II rowsort
SELECT 3, - 59 col1
----
3
-59

query I rowsort
SELECT DISTINCT + 57 + - + ( 89 )
----
-32

query I rowsort
SELECT ALL + 99 + - 20
----
79

query I rowsort
SELECT DISTINCT - 88 * 26 * + 29 + + + 97
----
-66255

query I rowsort
SELECT ALL 86 + + 88 + + 75 AS col2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT + 26 + ( - 89 ) + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-625
SELECT + 26 + ( - 89 ) + - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-626
SELECT DISTINCT - ( - - COALESCE ( + COUNT( * ), - + 42 DIV 28 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT - ( - - COALESCE ( + COUNT ( * ), - + 42 / 28 ) )
----
-1

query I rowsort
SELECT DISTINCT 4 + - 18
----
-14

query I rowsort
SELECT COALESCE ( - 10, + 15, + - 22 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ( - COUNT( * ) ) * + - 79 * COUNT( * ) + - - CASE - COUNT( * ) WHEN - 35 THEN - + COUNT( * ) / + AVG ( + 15 ) * - NULLIF ( + 31, + 19 ) + - ( COUNT( * ) ) + 53 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT ( - COUNT ( * ) ) * + - 79 * COUNT ( * ) + - - CASE - COUNT ( * ) WHEN - 35 THEN - + COUNT ( * ) / + AVG ( + 15 ) * - NULLIF ( + 31, + 19 ) + - ( COUNT ( * ) ) + 53 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT + ( - 66 ) + + COUNT( * ) * 61 * + 63 * COUNT( * ) + - COALESCE ( - - ( 30 ), + 0 )
----
3747

skipif mysql # not compatible
query I rowsort label-630
SELECT + ( - 66 ) + + COUNT ( * ) * 61 * + 63 * COUNT ( * ) + - COALESCE ( - - ( 30 ), + 0 )
----
3747

query I rowsort
SELECT 56 + - - 96
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-632
SELECT - 26, 74 + - 59 + ( - - CAST( 3 AS SIGNED ) ) * + 4 AS col2
----
-26
27

skipif mysql # not compatible
query II rowsort label-632
SELECT - 26, 74 + - 59 + ( - - CAST ( 3 AS INTEGER ) ) * + 4 AS col2
----
-26
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-633
SELECT - 19 + + + COALESCE ( + 41, - - 82, + ( + 89 ) * + 69 + ( - + 10 ) + - 17 + - 80 * - 50 * 32 DIV - - 86 + MIN( 31 ) ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-633
SELECT - 19 + + + COALESCE ( + 41, - - 82, + ( + 89 ) * + 69 + ( - + 10 ) + - 17 + - 80 * - 50 * 32 / - - 86 + MIN ( 31 ) ) AS col2
----
22

query I rowsort
SELECT 46 + - - 64 AS col1
----
110

query I rowsort
SELECT DISTINCT ( 10 )
----
10

query I rowsort
SELECT - COALESCE ( 0, + + 22 )
----
0

query I rowsort
SELECT DISTINCT - 31 * + - 69
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT 86 + - 67 - - - 33 + + ( + 89 ) * + + 73 * - COUNT( * ) * + 42 AS col2
----
-272888

skipif mysql # not compatible
query I rowsort label-638
SELECT 86 + - 67 - - - 33 + + ( + 89 ) * + + 73 * - COUNT ( * ) * + 42 AS col2
----
-272888

query I rowsort
SELECT ALL - 59 * - 11
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT MIN( 4 ) * 84
----
336

skipif mysql # not compatible
query I rowsort label-640
SELECT MIN ( 4 ) * 84
----
336

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

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

query I rowsort
SELECT 82 + + + 50 AS col2
----
132

query I rowsort
SELECT NULLIF ( + 36, - 2 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL 75 * NULLIF ( + 4, 64 + + COUNT( * ) ) + 82
----
382

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL 75 * NULLIF ( + 4, 64 + + COUNT ( * ) ) + 82
----
382

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT DISTINCT 18 * + SUM( DISTINCT 26 ) * + + 17 + COALESCE ( + COUNT( * ), 93, - + 72 ) + + 53 * - - 25 + + 55 AS col2
----
9337

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT 18 * + SUM ( DISTINCT 26 ) * + + 17 + COALESCE ( + COUNT ( * ), 93, - + 72 ) + + 53 * - - 25 + + 55 AS col2
----
9337

query I rowsort
SELECT 87 * 9 + + 95
----
878

onlyif mysql # aggregate syntax: 
query II rowsort label-647
SELECT COUNT( * ) * 68 AS col1, - 40 + - COUNT( * ) AS col2
----
68
-41

skipif mysql # not compatible
query II rowsort label-647
SELECT COUNT ( * ) * 68 AS col1, - 40 + - COUNT ( * ) AS col2
----
68
-41

query I rowsort
SELECT 97 * + - 48 AS col0
----
-4656

query I rowsort
SELECT ALL - 24 * 84
----
-2016

query I rowsort
SELECT - 30 * - 52 AS col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT ALL - 53 * - MAX( ALL - 61 ) + - + 44 + 92
----
-3185

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL - 53 * - MAX ( ALL - 61 ) + - + 44 + 92
----
-3185

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

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

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

query I rowsort
SELECT DISTINCT - - CASE - + NULLIF ( + 16, - 62 ) WHEN - 67 THEN - 55 WHEN - - 10 THEN NULL ELSE NULL END * + - 10 - + 67 AS col2
----
NULL

query I rowsort
SELECT ( + - COALESCE ( + 16, + 82 ) )
----
-16

query II rowsort
SELECT + ( + 94 ) col2, - 16 + + 28 AS col1
----
94
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-657
SELECT - MIN( ALL + + 58 ) * + - 30 + - + 19 DIV + 4
----
1736

skipif mysql # not compatible
query I rowsort label-657
SELECT - MIN ( ALL + + 58 ) * + - 30 + - + 19 / + 4
----
1736

query I rowsort
SELECT ALL 34 * 27 * ( - + 97 )
----
-89046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-659
SELECT + - 32 / - CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) + - + 57 - - 40 * + 94 + 58 * + COUNT( * ) + + 20 * + 85 * NULLIF ( + 41, - + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT + - 32 / - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + - + 57 - - 40 * + 94 + 58 * + COUNT ( * ) + + 20 * + 85 * NULLIF ( + 41, - + 20 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-660
SELECT DISTINCT + - 22 DIV MIN( ALL 55 )
----
0

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + - 22 / MIN ( ALL 55 )
----
0

query I rowsort
SELECT ALL + 51 - + + 11 - - + 54
----
94

query I rowsort
SELECT - NULLIF ( - 7, + ( - 16 ) )
----
7

query I rowsort
SELECT + - 88 * - COALESCE ( - 51, - 28 )
----
-4488

query II rowsort
SELECT ALL - 82 * + - 78 + - 12 * + 7 AS col0, 95 AS col2
----
6312
95

query I rowsort
SELECT DISTINCT 18 * 40
----
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-666
SELECT ALL 23 * + 89 * + 14 + - 7 - - 30 DIV - ( - - 81 ) * - + SUM( - 69 ) AS col2
----
28651

skipif mysql # not compatible
query I rowsort label-666
SELECT ALL 23 * + 89 * + 14 + - 7 - - 30 / - ( - - 81 ) * - + SUM ( - 69 ) AS col2
----
28651

query I rowsort
SELECT + 92 * + - 42 col0
----
-3864

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

skipif mysql # not compatible
query I rowsort label-668
SELECT + - COUNT ( * ) + + - 60 AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT + CASE + + COUNT( * ) WHEN - 60 THEN - COUNT( * ) + 20 + + + 58 + + 65 * + ( 24 ) + - - CASE + - 65 WHEN + 47 + + + CAST( COUNT( * ) AS SIGNED ) THEN + - 57 WHEN + ( - 45 ) THEN NULL WHEN + ( COUNT( * ) ) THEN NULL END END * COALESCE ( - COUNT( * ), + COUNT( DISTINCT + + 95 ) * - 52 * - CASE - 64 WHEN COUNT( * ) THEN - - CASE - 9 WHEN 91 + - 80 THEN + MIN( - 51 ) ELSE NULL END END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT + CASE + + COUNT ( * ) WHEN - 60 THEN - COUNT ( * ) + 20 + + + 58 + + 65 * + ( 24 ) + - - CASE + - 65 WHEN + 47 + + + CAST ( COUNT ( * ) AS INTEGER ) THEN + - 57 WHEN + ( - 45 ) THEN NULL WHEN + ( COUNT ( * ) ) THEN NULL END END * COALESCE ( - COUNT ( * ), + COUNT ( DISTINCT + + 95 ) * - 52 * - CASE - 64 WHEN COUNT ( * ) THEN - - CASE - 9 WHEN 91 + - 80 THEN + MIN ( - 51 ) ELSE NULL END END ) AS col1
----
NULL

query I rowsort
SELECT + 27 + 17 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-671
SELECT + ( - 31 ) + - COUNT( * ) DIV + - 11 * - 76 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-671
SELECT + ( - 31 ) + - COUNT ( * ) / + - 11 * - 76 AS col0
----
-31

query I rowsort
SELECT DISTINCT 26 + + 53 AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT ALL COUNT( * ) AS col2, 23 - - + 29 AS col0
----
1
52

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL COUNT ( * ) AS col2, 23 - - + 29 AS col0
----
1
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-674
SELECT - ( - ( + 71 ) ) AS col1, COALESCE ( + ( 52 ), + 5 DIV + + MIN( + 85 ) + - 51 ) * 21 + - 68
----
71
1024

skipif mysql # not compatible
query II rowsort label-674
SELECT - ( - ( + 71 ) ) AS col1, COALESCE ( + ( 52 ), + 5 / + + MIN ( + 85 ) + - 51 ) * 21 + - 68
----
71
1024

query I rowsort
SELECT ALL 2 + + - 61 AS col1
----
-59

query I rowsort
SELECT DISTINCT 20 + 98
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL + COUNT( * ) + 59 * + 40
----
2361

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL + COUNT ( * ) + 59 * + 40
----
2361

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT - 49 - - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-678
SELECT - 49 - - COUNT ( * )
----
-48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT - 25 + - 43 - 28 DIV 76 + 90 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-680
SELECT - 25 + - 43 - 28 / 76 + 90 AS col2
----
22

query I rowsort
SELECT DISTINCT + COALESCE ( + 33, + - 8 * - 13 ) * + 90 + 21 AS col2
----
2991

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-683
SELECT + 31 DIV + - 69
----
0

skipif mysql # not compatible
query I rowsort label-683
SELECT + 31 / + - 69
----
0

query I rowsort
SELECT DISTINCT - 48 * + COALESCE ( + 12, + 16 + - - 74 ) - - - ( + 90 ) AS col1
----
-666

query I rowsort
SELECT DISTINCT + - 64 col0
----
-64

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

query I rowsort
SELECT DISTINCT - 49 * + - 99 - 70 col0
----
4781

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT - 12 DIV 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-688
SELECT - 12 / 65 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT ALL + ( - 1 ) DIV + + ( 11 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL + ( - 1 ) / + + ( 11 ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT - 16 * - - 93 + - - 67 + 60 + - 48 * - - 14 * - - 19 + - 65 + - + 59 + 54 * 45 DIV - - 97 + 89
----
-14139

skipif mysql # not compatible
query I rowsort label-690
SELECT - 16 * - - 93 + - - 67 + 60 + - 48 * - - 14 * - - 19 + - 65 + - + 59 + 54 * 45 / - - 97 + 89
----
-14139

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

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

query I rowsort
SELECT DISTINCT + - 75 * + 54 AS col0
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ( + COUNT( * ) ) * - + COALESCE ( - 66, - + 8 ) + + + 72 + 58
----
196

skipif mysql # not compatible
query I rowsort label-693
SELECT ( + COUNT ( * ) ) * - + COALESCE ( - 66, - + 8 ) + + + 72 + 58
----
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT + COUNT( * ) * + 30 + + ( + 57 ) - - + 69 - - MAX( DISTINCT + 74 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT + COUNT ( * ) * + 30 + + ( + 57 ) - - + 69 - - MAX ( DISTINCT + 74 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 92 + - 98
----
-6

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

skipif mysql # not compatible
query I rowsort label-696
SELECT - 41 * - 14 + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 75 AS col0, 11 + 63 * - - 37 AS col2
----
75
2342

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT - - 42 * + + 83 DIV + + 1 AS col1
----
3486

skipif mysql # not compatible
query I rowsort label-698
SELECT - - 42 * + + 83 / + + 1 AS col1
----
3486

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT + 28 * + + 63 * - 9 + + + COUNT( * ) * - - 73
----
-15803

skipif mysql # not compatible
query I rowsort label-699
SELECT + 28 * + + 63 * - 9 + + + COUNT ( * ) * - - 73
----
-15803

query I rowsort
SELECT + 51 + + 35 AS col2
----
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-702
SELECT ALL 45 * 52 + 19 + + NULLIF ( COUNT( + 37 ), - - 59 + + 30 + - 46 ) / - + CAST( NULL AS SIGNED ) * - 86 * - - 58 * - + 73 + + 74 / + COUNT( * ) * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL 45 * 52 + 19 + + NULLIF ( COUNT ( + 37 ), - - 59 + + 30 + - 46 ) / - + CAST ( NULL AS INTEGER ) * - 86 * - - 58 * - + 73 + + 74 / + COUNT ( * ) * 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-703
SELECT - ( + CASE + 65 WHEN + ( - NULLIF ( - - COALESCE ( - 1, + 19 ), - COUNT( * ) ) ) + 4 * + 86 * + 5 * - - CAST( - 72 AS SIGNED ) - - 30 THEN + 88 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT - ( + CASE + 65 WHEN + ( - NULLIF ( - - COALESCE ( - 1, + 19 ), - COUNT ( * ) ) ) + 4 * + 86 * + 5 * - - CAST ( - 72 AS INTEGER ) - - 30 THEN + 88 END )
----
NULL

query I rowsort
SELECT + 78 + + 0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT ALL + 32 + 85 + + 8 DIV + + 11 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + 32 + 85 + + 8 / + + 11 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT - ( MIN( ALL - + ( - 18 ) ) )
----
-18

skipif mysql # not compatible
query I rowsort label-706
SELECT - ( MIN ( ALL - + ( - 18 ) ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT COUNT( * ) + + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT COUNT ( * ) + + - 8
----
-7

query II rowsort
SELECT ALL 44, 83 AS col2
----
44
83

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

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

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

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT 14 * + COUNT ( * ) AS col1
----
14

query II rowsort
SELECT 55 AS col2, - 43 + + 37 AS col2
----
55
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-712
SELECT ALL 8 + + 94 - - - 99 * 34 - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL 8 + + 94 - - - 99 * 34 - + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 1 * - 69 * 15 AS col0
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT 7 + COALESCE ( - COALESCE ( + COUNT( * ), + MIN( ALL - 6 ) + 87 ), - 66, + ( - 37 ), - - COUNT( * ) * - CASE + 25 WHEN + 94 THEN + - 91 + 56 ELSE NULL END + + COUNT( DISTINCT 34 ) + + 43 )
----
6

skipif mysql # not compatible
query I rowsort label-714
SELECT 7 + COALESCE ( - COALESCE ( + COUNT ( * ), + MIN ( ALL - 6 ) + 87 ), - 66, + ( - 37 ), - - COUNT ( * ) * - CASE + 25 WHEN + 94 THEN + - 91 + 56 ELSE NULL END + + COUNT ( DISTINCT 34 ) + + 43 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT COALESCE ( + COUNT( * ), + + CASE - 75 WHEN - 48 * CASE 37 WHEN - 34 THEN - + SUM( - + 2 ) END + - 20 THEN - 45 WHEN 1 THEN NULL END + 8 * 60 ) * - 16 * 30
----
-480

skipif mysql # not compatible
query I rowsort label-715
SELECT COALESCE ( + COUNT ( * ), + + CASE - 75 WHEN - 48 * CASE 37 WHEN - 34 THEN - + SUM ( - + 2 ) END + - 20 THEN - 45 WHEN 1 THEN NULL END + 8 * 60 ) * - 16 * 30
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT ALL 72 - + 54 * ( COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL 72 - + 54 * ( COUNT ( * ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT - MAX( DISTINCT - + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT - MAX ( DISTINCT - + 94 )
----
94

query II rowsort
SELECT DISTINCT - 68, COALESCE ( + 95, + 86 ) AS col2
----
-68
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-719
SELECT ALL - 71 AS col1, + CASE + COUNT( * ) WHEN + + COUNT( DISTINCT + 14 ) THEN + + CASE - - ( - + 23 ) WHEN + NULLIF ( - + 85, - 9 ) THEN NULL WHEN 37 THEN - 44 * + - 95 * 27 + + + CAST( NULL AS SIGNED ) ELSE NULL END * + 22 ELSE 22 - 42 END * + 16 + + 81 + + 53
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-719
SELECT ALL - 71 AS col1, + CASE + COUNT ( * ) WHEN + + COUNT ( DISTINCT + 14 ) THEN + + CASE - - ( - + 23 ) WHEN + NULLIF ( - + 85, - 9 ) THEN NULL WHEN 37 THEN - 44 * + - 95 * 27 + + + CAST ( NULL AS INTEGER ) ELSE NULL END * + 22 ELSE 22 - 42 END * + 16 + + 81 + + 53
----
-71
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-720
SELECT - 59 * + ( + - 57 ) * - 97 + - 43 + + - 2 + MAX( ALL + ( - 86 ) ) + + - MAX( DISTINCT + 44 ) + + - CASE MIN( ALL - 76 ) WHEN + ( + 84 ) + + + 95 THEN NULL WHEN + + 61 * + 22 THEN - COUNT( * ) ELSE NULL END * - + 96 AS col1, + 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-720
SELECT - 59 * + ( + - 57 ) * - 97 + - 43 + + - 2 + MAX ( ALL + ( - 86 ) ) + + - MAX ( DISTINCT + 44 ) + + - CASE MIN ( ALL - 76 ) WHEN + ( + 84 ) + + + 95 THEN NULL WHEN + + 61 * + 22 THEN - COUNT ( * ) ELSE NULL END * - + 96 AS col1, + 40
----
NULL
40

query II rowsort
SELECT + 76 col2, 33
----
76
33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT 56 * + ( - - CAST( NULL AS SIGNED ) ) + - 71 + MIN( 58 ) / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT 56 * + ( - - CAST ( NULL AS INTEGER ) ) + - 71 + MIN ( 58 ) / + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT COUNT( * ) * + 71 - 59 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-724
SELECT COUNT ( * ) * + 71 - 59 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT + COALESCE ( - COUNT( * ), 70 * + - 6 ) * - + COUNT( * ) * 61 - 0 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-725
SELECT + COALESCE ( - COUNT ( * ), 70 * + - 6 ) * - + COUNT ( * ) * 61 - 0 AS col1
----
61

query II rowsort
SELECT 96 AS col2, + 61 AS col2
----
96
61

onlyif mysql # aggregate syntax: 
query II rowsort label-727
SELECT + CASE - 57 WHEN ( 48 ) THEN + - COALESCE ( + 97, - + 90 * 66 * + + COUNT( 10 ) ) * - 5 ELSE NULL END, + 41 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-727
SELECT + CASE - 57 WHEN ( 48 ) THEN + - COALESCE ( + 97, - + 90 * 66 * + + COUNT ( 10 ) ) * - 5 ELSE NULL END, + 41 AS col2
----
NULL
41

query II rowsort
SELECT + 33, COALESCE ( 37, - 35, + 93 ) AS col1
----
33
37

onlyif mysql # aggregate syntax: 
query II rowsort label-729
SELECT DISTINCT - - COALESCE ( - 25, + + 12 * - COUNT( * ) ) AS col2, 27
----
-25
27

skipif mysql # not compatible
query II rowsort label-729
SELECT DISTINCT - - COALESCE ( - 25, + + 12 * - COUNT ( * ) ) AS col2, 27
----
-25
27

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL - ( SUM( + 77 ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - ( SUM ( + 77 ) ) AS col2
----
-77

query I rowsort
SELECT ALL - - NULLIF ( 43, - + 39 ) AS col2
----
43

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

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

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

query II rowsort
SELECT ALL - - 96 AS col0, 39 AS col0
----
96
39

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT DISTINCT - + 55 + + - MIN( DISTINCT - 65 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT - + 55 + + - MIN ( DISTINCT - 65 ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-736
SELECT ALL + + 93 + + - COUNT( * ) DIV ( - 34 )
----
93

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL + + 93 + + - COUNT ( * ) / ( - 34 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT 69 DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-737
SELECT 69 / - 37
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT ALL - 99 + + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL - 99 + + + COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT + 88 - + 24 DIV 58 * - ( COUNT( * ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-739
SELECT + 88 - + 24 / 58 * - ( COUNT ( * ) ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-740
SELECT ALL + COUNT( * ) * + + 27 DIV 26 + COUNT( * ) + - + 38 * 64
----
-2430

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + COUNT ( * ) * + + 27 / 26 + COUNT ( * ) + - + 38 * 64
----
-2430

query I rowsort
SELECT DISTINCT + 55 + + - 83 - + + 81 * + 64 AS col2
----
-5212

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT DISTINCT + 46 * + ( + 39 ) * COALESCE ( 77, + COUNT( * ) ) AS col2
----
138138

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT + 46 * + ( + 39 ) * COALESCE ( 77, + COUNT ( * ) ) AS col2
----
138138

query I rowsort
SELECT DISTINCT 9 + - 28 * - 23
----
653

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT COUNT( * ) - 64 * 52
----
-3327

skipif mysql # not compatible
query I rowsort label-744
SELECT COUNT ( * ) - 64 * 52
----
-3327

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT ALL + COUNT( * ) * - - 64 col1
----
64

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL + COUNT ( * ) * - - 64 col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT NULLIF ( MIN( DISTINCT + ( 80 ) ), + 75 * COUNT( * ) / - COUNT( * ) * - + 24 ) * 51 AS col1
----
4080

skipif mysql # not compatible
query I rowsort label-746
SELECT NULLIF ( MIN ( DISTINCT + ( 80 ) ), + 75 * COUNT ( * ) / - COUNT ( * ) * - + 24 ) * 51 AS col1
----
4080

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT ALL + 38 - 43 DIV - 67 + - - 69 - + 0 col1
----
107

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL + 38 - 43 / - 67 + - - 69 - + 0 col1
----
107

query I rowsort
SELECT 1 + + - NULLIF ( + 58, - 87 ) col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT COUNT( * ) + 27 * + + NULLIF ( + 78, COUNT( * ) * MIN( 17 ) + + - 98 * 92 * CASE 66 WHEN - 72 THEN + COUNT( * ) * - 13 END + - 10 )
----
2107

skipif mysql # not compatible
query I rowsort label-750
SELECT COUNT ( * ) + 27 * + + NULLIF ( + 78, COUNT ( * ) * MIN ( 17 ) + + - 98 * 92 * CASE 66 WHEN - 72 THEN + COUNT ( * ) * - 13 END + - 10 )
----
2107

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-752
SELECT DISTINCT - 84 DIV - + MIN( DISTINCT + 31 )
----
2

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT - 84 / - + MIN ( DISTINCT + 31 )
----
2

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

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT 1 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT DISTINCT ( + 78 ) * ( 85 ) DIV - + 38 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT ( + 78 ) * ( 85 ) / - + 38 AS col2
----
-174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-755
SELECT 0 DIV - ( - 76 ) * - - 17 + - CAST( - 3 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-755
SELECT 0 / - ( - 76 ) * - - 17 + - CAST ( - 3 AS INTEGER ) AS col1
----
3

query I rowsort
SELECT + 3 * + 87 AS col2
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT ALL 0 DIV + + 10 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL 0 / + + 10 * - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT ALL - - COALESCE ( 12, 67, COUNT( * ) * + 97 * + 64 * + 15 * + - 51 )
----
12

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL - - COALESCE ( 12, 67, COUNT ( * ) * + 97 * + 64 * + 15 * + - 51 )
----
12

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

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - CAST ( - AVG ( DISTINCT + + 59 ) AS INTEGER ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-760
SELECT ALL - 64 + CASE + 24 WHEN - - 36 * + - 24 * - - 53 * + - 66 THEN NULL WHEN - + 70 + 49 THEN NULL WHEN + ( + + 95 ) * - 21 THEN - 99 ELSE + - CAST( + COUNT( * ) AS SIGNED ) * + MAX( + - 34 ) * COUNT( * ) * - 55 + - + 72 + - - 44 END + - 85 + MAX( DISTINCT + 29 )
----
-2018

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - 64 + CASE + 24 WHEN - - 36 * + - 24 * - - 53 * + - 66 THEN NULL WHEN - + 70 + 49 THEN NULL WHEN + ( + + 95 ) * - 21 THEN - 99 ELSE + - CAST ( + COUNT ( * ) AS INTEGER ) * + MAX ( + - 34 ) * COUNT ( * ) * - 55 + - + 72 + - - 44 END + - 85 + MAX ( DISTINCT + 29 )
----
-2018

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT + COALESCE ( + 85, + 73 DIV + 39 + + 86, - 43, + 21 ) * - 71 - - 55 AS col1
----
-5980

skipif mysql # not compatible
query I rowsort label-761
SELECT + COALESCE ( + 85, + 73 / + 39 + + 86, - 43, + 21 ) * - 71 - - 55 AS col1
----
-5980

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

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

query I rowsort
SELECT 48 * - 11 AS col0
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + 19 * - COUNT( * ) + + + 7
----
-12

skipif mysql # not compatible
query I rowsort label-764
SELECT + 19 * - COUNT ( * ) + + + 7
----
-12

query II rowsort
SELECT ALL 89 + 68 AS col2, 4
----
157
4

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

skipif mysql # not compatible
query I rowsort label-766
SELECT + COUNT ( ALL 70 ) AS col2
----
1

query I rowsort
SELECT - 42 - 34 + 86 AS col0
----
10

query I rowsort
SELECT ALL 56 + + 26
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-769
SELECT COUNT( * ) + + 90 DIV - CASE - + 35 WHEN COALESCE ( - COUNT( * ), - + 90 * - - 18 + + 3 * 17 * + SUM( DISTINCT - 83 ) * - 99 ) THEN + - 98 * + 91 ELSE + 44 END
----
-1

skipif mysql # not compatible
query I rowsort label-769
SELECT COUNT ( * ) + + 90 / - CASE - + 35 WHEN COALESCE ( - COUNT ( * ), - + 90 * - - 18 + + 3 * 17 * + SUM ( DISTINCT - 83 ) * - 99 ) THEN + - 98 * + 91 ELSE + 44 END
----
-1

query I rowsort
SELECT ALL 69 + + - 65 * + + 98 AS col1
----
-6301

query I rowsort
SELECT 1 + + + 66 AS col0
----
67

query II rowsort
SELECT ALL - 37 col2, 46 * 39
----
-37
1794

query I rowsort
SELECT DISTINCT 97 + 54 AS col2
----
151

query I rowsort
SELECT - 26 + + - 15
----
-41

query I rowsort
SELECT ALL - 69 - + 76
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + COUNT( * ) * SUM( + 96 ) * - 4 * - 70 col2
----
26880

skipif mysql # not compatible
query I rowsort label-776
SELECT + COUNT ( * ) * SUM ( + 96 ) * - 4 * - 70 col2
----
26880

query I rowsort
SELECT - 44 * - + 95 col0
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - COUNT( * ) + + - ( 86 ) * 61 + - 26
----
-5273

skipif mysql # not compatible
query I rowsort label-778
SELECT - COUNT ( * ) + + - ( 86 ) * 61 + - 26
----
-5273

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

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL SUM ( 74 )
----
74

query I rowsort
SELECT - 8 * + + 25 AS col1
----
-200

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

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT MIN ( 56 )
----
56

query II rowsort
SELECT - 62, + 78 + + 91 * + ( + + 98 ) - ( - + 76 ) AS col1
----
-62
9072

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

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

query I rowsort
SELECT ALL - 79 * + 21
----
-1659

query I rowsort
SELECT - 48 * 0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT DISTINCT COALESCE ( - 36, - MIN( ALL - 6 ) * + + COUNT( * ) - + 67 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT COALESCE ( - 36, - MIN ( ALL - 6 ) * + + COUNT ( * ) - + 67 ) col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-788
SELECT DISTINCT COALESCE ( + - 9, - - NULLIF ( - - 44, CASE 26 WHEN + COUNT( * ) + - - SUM( + + 60 ) THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + COUNT( * ) * - + 8 * + 19 * SUM( ALL - + 90 ) + + 12 / + + 51 END ) * + + 43, - 62 * 39 ) col0, + 46
----
-9
46

skipif mysql # not compatible
query II rowsort label-788
SELECT DISTINCT COALESCE ( + - 9, - - NULLIF ( - - 44, CASE 26 WHEN + COUNT ( * ) + - - SUM ( + + 60 ) THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - + 8 * + 19 * SUM ( ALL - + 90 ) + + 12 / + + 51 END ) * + + 43, - 62 * 39 ) col0, + 46
----
-9
46

query I rowsort
SELECT - 0 - 12
----
-12

query I rowsort
SELECT - - 54 + - 95
----
-41

query I rowsort
SELECT - - ( - 1 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + - 33 col0
----
-33

query I rowsort
SELECT ALL + 57 * - 64 + + + 96
----
-3552

query I rowsort
SELECT ALL 42 * + 18 + - 15 AS col0
----
741

onlyif mysql # DIV for integer division: 
query II rowsort label-795
SELECT + - 28 DIV - 91 + ( 93 ), - 24 + - 19 + - 72 * 10 * - 33 * 8 + + - 35 AS col0
----
93
190002

skipif mysql # not compatible
query II rowsort label-795
SELECT + - 28 / - 91 + ( 93 ), - 24 + - 19 + - 72 * 10 * - 33 * 8 + + - 35 AS col0
----
93
190002

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

query I rowsort
SELECT + 61 * + + 47 + - 47
----
2820

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT ALL + 77 * - 38 + + 50 * + MAX( 58 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL + 77 * - 38 + + 50 * + MAX ( 58 ) AS col1
----
-26

query II rowsort
SELECT DISTINCT + 60 AS col1, + 23 * + 59
----
60
1357

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

skipif mysql # not compatible
query I rowsort label-800
SELECT + SUM ( - 37 )
----
-37

query I rowsort
SELECT + 50 * 93
----
4650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-802
SELECT ALL 24 * + + 65 - + 14 + + - 71 + + 89 * CAST( + 67 AS SIGNED ) * + 11 * + - NULLIF ( COUNT( * ), + 27 ) col2
----
-64118

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL 24 * + + 65 - + 14 + + - 71 + + 89 * CAST ( + 67 AS INTEGER ) * + 11 * + - NULLIF ( COUNT ( * ), + 27 ) col2
----
-64118

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

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

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

query I rowsort
SELECT + 14 - 75 - - 54
----
-7

query I rowsort
SELECT - 20 * - 10 AS col0
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL SUM( DISTINCT + + 87 ) * - 79 - + 58 * 27
----
-8439

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL SUM ( DISTINCT + + 87 ) * - 79 - + 58 * 27
----
-8439

query I rowsort
SELECT DISTINCT 55 * - + 51
----
-2805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT + 31 + - COUNT( ALL 38 ) + - 91 DIV MAX( DISTINCT + 59 ) + + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-809
SELECT + 31 + - COUNT ( ALL 38 ) + - 91 / MAX ( DISTINCT + 59 ) + + COUNT ( * )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-810
SELECT - 37 - - COALESCE ( - 12, - ( + 35 ), - SUM( + CAST( NULL AS SIGNED ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-810
SELECT - 37 - - COALESCE ( - 12, - ( + 35 ), - SUM ( + CAST ( NULL AS INTEGER ) ) )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - SUM( + 63 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - SUM ( + 63 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-812
SELECT ALL COALESCE ( CAST( - AVG ( - + 75 ) AS SIGNED ), + + 0 )
----
75

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL COALESCE ( CAST ( - AVG ( - + 75 ) AS INTEGER ), + + 0 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT + 1 + 13 - - + 48 * 48 + - 17 * + COUNT( * ) AS col0
----
2301

skipif mysql # not compatible
query I rowsort label-813
SELECT + 1 + 13 - - + 48 * 48 + - 17 * + COUNT ( * ) AS col0
----
2301

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT ALL + 3 * + COUNT( * ) * 57
----
171

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL + 3 * + COUNT ( * ) * 57
----
171

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT ( + COUNT( + NULLIF ( - - 20, - 2 ) ) ) + - 44 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT ( + COUNT ( + NULLIF ( - - 20, - 2 ) ) ) + - 44 AS col0
----
-43

query I rowsort
SELECT ALL + 28 + + 60 + 35 * ( + 89 )
----
3203

query I rowsort
SELECT ALL - 70 + + 48 - + + 25
----
-47

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

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT MAX ( 43 )
----
43

query I rowsort
SELECT ALL - - 78 + - 5
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT - ( - 13 ) * - COUNT( * ) * + 54
----
-702

skipif mysql # not compatible
query I rowsort label-821
SELECT - ( - 13 ) * - COUNT ( * ) * + 54
----
-702

query I rowsort
SELECT DISTINCT - - 61 + + + 99 AS col0
----
160

query I rowsort
SELECT - 92 + - 3 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-824
SELECT ALL ( CAST( NULL AS SIGNED ) ) / - + 7 * 7 * - + 87 * - 36 + - 68, MAX( DISTINCT - + 65 ) AS col0
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-824
SELECT ALL ( CAST ( NULL AS INTEGER ) ) / - + 7 * 7 * - + 87 * - 36 + - 68, MAX ( DISTINCT - + 65 ) AS col0
----
NULL
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT + - ( + 37 ) DIV 44 * 75 + - + 34 * - - 27
----
-918

skipif mysql # not compatible
query I rowsort label-825
SELECT + - ( + 37 ) / 44 * 75 + - + 34 * - - 27
----
-918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT DISTINCT + COUNT( * ) DIV - - COALESCE ( - 66, 88 ) - ( - - 76 ) * + 12 - + 57
----
-969

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT + COUNT ( * ) / - - COALESCE ( - 66, 88 ) - ( - - 76 ) * + 12 - + 57
----
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT - 95 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT - 95 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 34 + 40, COALESCE ( + 53, + 97 ) col2
----
6
53

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT - - 51 DIV + 42 - - COALESCE ( + - 65, 72 * - - 42 * ( - AVG ( DISTINCT 98 ) ) DIV - - 34 ) * 85
----
-5524

skipif mysql # not compatible
query I rowsort label-829
SELECT - - 51 / + 42 - - COALESCE ( + - 65, 72 * - - 42 * ( - AVG ( DISTINCT 98 ) ) / - - 34 ) * 85
----
-5524

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

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

query I rowsort
SELECT DISTINCT 72 * - 69
----
-4968

query I rowsort
SELECT 43 * 38 + - ( + 47 )
----
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT COUNT( * ) * - SUM( + COALESCE ( - 60, - 77 * 7, + + 42 ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-833
SELECT COUNT ( * ) * - SUM ( + COALESCE ( - 60, - 77 * 7, + + 42 ) ) AS col0
----
60

query II rowsort
SELECT DISTINCT 11 col0, - 70
----
11
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL 95 + COUNT( * ) * - + 74 - 65 * - 0 + + + 49 + - - 40 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL 95 + COUNT ( * ) * - + 74 - 65 * - 0 + + + 49 + - - 40 AS col2
----
110

query I rowsort
SELECT ALL 71 + + - 4 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT ( - - 99 ) + CASE 10 WHEN - + COUNT( ALL + - 19 ) * + ( - + 22 ) * - SUM( ALL + ( - 32 ) ) * 1 - + 94 THEN NULL WHEN - 49 THEN NULL ELSE COALESCE ( 0, + - 54 ) END AS col0
----
99

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT ( - - 99 ) + CASE 10 WHEN - + COUNT ( ALL + - 19 ) * + ( - + 22 ) * - SUM ( ALL + ( - 32 ) ) * 1 - + 94 THEN NULL WHEN - 49 THEN NULL ELSE COALESCE ( 0, + - 54 ) END AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL - 44 + MIN( 23 ) + 62
----
41

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - 44 + MIN ( 23 ) + 62
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT DISTINCT CAST( - - 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT CAST ( - - 82 AS INTEGER )
----
82

query I rowsort
SELECT DISTINCT + 66 + + 10
----
76

query II rowsort
SELECT - 80 AS col1, 94 + + + 22
----
-80
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT 0 * COUNT( * ) DIV - 16 * - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-842
SELECT 0 * COUNT ( * ) / - 16 * - 92 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT ALL + + 46 DIV + + 23
----
2

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + + 46 / + + 23
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-844
SELECT + COUNT( * ) - - COUNT( * ) + - COUNT( * ) * + - COUNT( ALL 37 ) - - - 83 - + 22 * + 74 * 55 * + 2 * - 42 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT + COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) * + - COUNT ( ALL 37 ) - - - 83 - + 22 * + 74 * 55 * + 2 * - 42 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT - 39 + + + 87
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-847
SELECT 93 DIV 12 - 50 AS col1, - 23 AS col1
----
-43
-23

skipif mysql # not compatible
query II rowsort label-847
SELECT 93 / 12 - 50 AS col1, - 23 AS col1
----
-43
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT ALL - 72 - - + 37 - - 36 + ( 3 ) + + - COUNT( * ) DIV + - 48 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL - 72 - - + 37 - - 36 + ( 3 ) + + - COUNT ( * ) / + - 48 AS col0
----
4

query II rowsort
SELECT + 15 col2, + 55 + - 15
----
15
40

query I rowsort
SELECT ALL 35 * + - 22 col1
----
-770

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

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

query I rowsort
SELECT ALL + 31 * - - 62 AS col2
----
1922

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

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

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

query II rowsort
SELECT 4 * - - 0, - 24 AS col2
----
0
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT COUNT( * ) * + + MIN( DISTINCT + + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-856
SELECT COUNT ( * ) * + + MIN ( DISTINCT + + 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL + 38 * - COUNT( ALL - 7 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL + 38 * - COUNT ( ALL - 7 ) AS col0
----
-38

query I rowsort
SELECT DISTINCT - CASE - 76 WHEN 44 THEN 77 * - + 12 + + 68 * - 66 END col2
----
NULL

query II rowsort
SELECT ALL - 55 AS col1, 72 AS col2
----
-55
72

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT COUNT( * ) * 10 * + 87 AS col2
----
870

skipif mysql # not compatible
query I rowsort label-860
SELECT COUNT ( * ) * 10 * + 87 AS col2
----
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-861
SELECT ALL + COUNT( * ) DIV + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL + COUNT ( * ) / + 7 AS col1
----
0

query I rowsort
SELECT ALL + COALESCE ( + 72, COALESCE ( - + 36, 31 ) ) * 81 + + 99
----
5931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-863
SELECT 20 DIV 53 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-863
SELECT 20 / 53 * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 55 * 60 AS col2
----
3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-865
SELECT 26 - - + CAST( NULL AS SIGNED ) + + + 52 + + + 4 + + NULLIF ( - + 89, + 23 / + 7 * + 60 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-865
SELECT 26 - - + CAST ( NULL AS INTEGER ) + + + 52 + + + 4 + + NULLIF ( - + 89, + 23 / + 7 * + 60 ) AS col0
----
NULL

query I rowsort
SELECT 35 - 59 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL - COALESCE ( 30, COALESCE ( + 66, + - 38 + 91 + + - COUNT( ALL - 56 ) * + 24 ) ) * - 71
----
2130

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - COALESCE ( 30, COALESCE ( + 66, + - 38 + 91 + + - COUNT ( ALL - 56 ) * + 24 ) ) * - 71
----
2130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-868
SELECT COUNT( * ) * + 29 DIV 48 - - 92, 45 AS col1
----
92
45

skipif mysql # not compatible
query II rowsort label-868
SELECT COUNT ( * ) * + 29 / 48 - - 92, 45 AS col1
----
92
45

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT ALL 89 DIV - - NULLIF ( 16, + COALESCE ( + 18, + 89 * 1 DIV COALESCE ( + 40, - 31, + + 90 ) ) * + 99 * + - 62 + + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL 89 / - - NULLIF ( 16, + COALESCE ( + 18, + 89 * 1 / COALESCE ( + 40, - 31, + + 90 ) ) * + 99 * + - 62 + + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query III rowsort label-870
SELECT - 16 AS col1, 75 + + 80 - - 74 AS col2, - 30 * - COUNT( 56 ) - + ( 45 ) AS col0
----
-16
229
-15

skipif mysql # not compatible
query III rowsort label-870
SELECT - 16 AS col1, 75 + + 80 - - 74 AS col2, - 30 * - COUNT ( 56 ) - + ( 45 ) AS col0
----
-16
229
-15

query I rowsort
SELECT DISTINCT - 3 + + 30 * + 45 * - 85
----
-114753

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL + NULLIF ( + ( + COUNT( * ) ), + + 86 ) + + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + NULLIF ( + ( + COUNT ( * ) ), + + 86 ) + + 13 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT DISTINCT 24 DIV - ( 80 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT 24 / - ( 80 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 83 + 4 AS col0
----
87

query I rowsort
SELECT DISTINCT + 31 + + 68 - + 80 * - 4 AS col0
----
419

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-876
SELECT 82 col0, - NULLIF ( - 29, - 19 ) DIV + 69 + - - COUNT( * ) * - ( 83 ) AS col1
----
82
-83

skipif mysql # not compatible
query II rowsort label-876
SELECT 82 col0, - NULLIF ( - 29, - 19 ) / + 69 + - - COUNT ( * ) * - ( 83 ) AS col1
----
82
-83

query I rowsort
SELECT + 78 + + - 66
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT 36 - - COALESCE ( COUNT( * ), + + COUNT( * ) + + + 48, + 38 ) col2
----
37

skipif mysql # not compatible
query I rowsort label-878
SELECT 36 - - COALESCE ( COUNT ( * ), + + COUNT ( * ) + + + 48, + 38 ) col2
----
37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-880
SELECT COUNT( * ) + - ( + 88 ) DIV COUNT( * ) * - 55 * + COUNT( * ) AS col0
----
4841

skipif mysql # not compatible
query I rowsort label-880
SELECT COUNT ( * ) + - ( + 88 ) / COUNT ( * ) * - 55 * + COUNT ( * ) AS col0
----
4841

query II rowsort
SELECT - NULLIF ( 42, + 42 ) + + 20, - 40 AS col0
----
NULL
-40

query I rowsort
SELECT DISTINCT - 43 * - - 76 + 20
----
-3248

query I rowsort
SELECT ALL 11 - 26 AS col2
----
-15

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

skipif mysql # not compatible
query I rowsort label-884
SELECT COUNT ( * ) * - COUNT ( ALL - 3 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 29 - - + 62 AS col2
----
91

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

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

query I rowsort
SELECT + + 55 * 82 - + + 32 + + + 64 + 36 * 98 * - 4 + - 86
----
-9656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-888
SELECT - - NULLIF ( - CAST( NULL AS DECIMAL ), - MAX( DISTINCT + - 33 ) * - + CAST( + COUNT( * ) AS SIGNED ) ) * 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-888
SELECT - - NULLIF ( - CAST ( NULL AS REAL ), - MAX ( DISTINCT + - 33 ) * - + CAST ( + COUNT ( * ) AS INTEGER ) ) * 9 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-889
SELECT ALL 56 DIV + 19 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL 56 / + 19 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT ALL + - SUM( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + - SUM ( - 8 )
----
8

onlyif mysql # DIV for integer division: 
query II rowsort label-891
SELECT - - 14 DIV - 38 + + 61 + - 55, 32 * + 25 AS col2
----
6
800

skipif mysql # not compatible
query II rowsort label-891
SELECT - - 14 / - 38 + + 61 + - 55, 32 * + 25 AS col2
----
6
800

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL + CASE - - 85 WHEN MIN( ALL + - 19 ) THEN NULL WHEN + 27 + + + COUNT( * ) THEN + 58 + 59 * 38 * 88 WHEN 53 THEN - + COUNT( * ) + - 32 END * 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + CASE - - 85 WHEN MIN ( ALL + - 19 ) THEN NULL WHEN + 27 + + + COUNT ( * ) THEN + 58 + 59 * 38 * 88 WHEN 53 THEN - + COUNT ( * ) + - 32 END * 54 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 32 * + 54, + CASE - 24 WHEN + + 23 * + 62 THEN - 25 / - - 59 - 29 * 79 ELSE NULL END + 4 AS col0
----
1728
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT - 44 DIV - + COUNT( ALL + 81 )
----
44

skipif mysql # not compatible
query I rowsort label-894
SELECT - 44 / - + COUNT ( ALL + 81 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT 43 * + 57 - + 35 DIV 55 AS col0
----
2451

skipif mysql # not compatible
query I rowsort label-895
SELECT 43 * + 57 - + 35 / 55 AS col0
----
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT COALESCE ( + + MIN( DISTINCT - + ( + 47 ) ), - 23 + + ( - - 7 ) * COUNT( * ) * - 97 * 69 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-896
SELECT COALESCE ( + + MIN ( DISTINCT - + ( + 47 ) ), - 23 + + ( - - 7 ) * COUNT ( * ) * - 97 * 69 ) AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-897
SELECT ALL ( + - 67 ) * 67 * + 0 DIV + + 9 AS col2, MAX( DISTINCT - 35 ) + + 12 * - + 45 * + COUNT( * ) * + - 30 AS col1
----
0
16165

skipif mysql # not compatible
query II rowsort label-897
SELECT ALL ( + - 67 ) * 67 * + 0 / + + 9 AS col2, MAX ( DISTINCT - 35 ) + + 12 * - + 45 * + COUNT ( * ) * + - 30 AS col1
----
0
16165

query I rowsort
SELECT - 80 * 86 * + 36 + - 73
----
-247753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT - COUNT( * ) + - 69 DIV - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-899
SELECT - COUNT ( * ) + - 69 / - COUNT ( * )
----
68

query I rowsort
SELECT + NULLIF ( 60, - - 46 ) col0
----
60

query I rowsort
SELECT ALL - 73 * + + 53 + + 42 col1
----
-3827

query II rowsort
SELECT - 90 * - + 13 col2, 79 + - + COALESCE ( - - 0, + + ( - - 89 ) ) AS col0
----
1170
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT ALL 17 * - COUNT( * ) / + COUNT( * ) * - COUNT( * ) + + COUNT( * ) + - ( - CASE + 65 WHEN - COUNT( * ) THEN - ( - 43 ) + - + CASE 56 WHEN - CAST( - 79 AS SIGNED ) THEN NULL WHEN - - 54 + - 79 * - - 74 THEN NULL ELSE - - COUNT( * ) END WHEN + - 64 - + 35 THEN NULL ELSE NULL END ) * - CAST( NULL AS SIGNED ) / - - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL 17 * - COUNT ( * ) / + COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) + - ( - CASE + 65 WHEN - COUNT ( * ) THEN - ( - 43 ) + - + CASE 56 WHEN - CAST ( - 79 AS INTEGER ) THEN NULL WHEN - - 54 + - 79 * - - 74 THEN NULL ELSE - - COUNT ( * ) END WHEN + - 64 - + 35 THEN NULL ELSE NULL END ) * - CAST ( NULL AS INTEGER ) / - - 34 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-904
SELECT 80 * - COUNT( * ) * + CASE + 66 WHEN + - 94 * + CAST( NULL AS SIGNED ) + COUNT( * ) THEN - 3 ELSE NULL END + 29 + + 34 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-904
SELECT 80 * - COUNT ( * ) * + CASE + 66 WHEN + - 94 * + CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN - 3 ELSE NULL END + 29 + + 34 + - 76
----
NULL

query I rowsort
SELECT 44 * - 3 - - ( + 93 ) * - 83
----
-7851

query I rowsort
SELECT ALL - 89 * - 14 AS col1
----
1246

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT MIN( - + 56 ) * 69 + - ( + 91 ) AS col0
----
-3955

skipif mysql # not compatible
query I rowsort label-907
SELECT MIN ( - + 56 ) * 69 + - ( + 91 ) AS col0
----
-3955

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-908
SELECT ALL + 47 * - COALESCE ( - 59, - 27 DIV 68 DIV - COUNT( * ) * - 35 ) + + 45 AS col2
----
2818

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL + 47 * - COALESCE ( - 59, - 27 / 68 / - COUNT ( * ) * - 35 ) + + 45 AS col2
----
2818

query I rowsort
SELECT DISTINCT - 63 * 11 + - 45 col1
----
-738

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

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - 72 * COUNT ( DISTINCT + + 19 ) col1
----
-72

query I rowsort
SELECT ALL 72 * + 66 * + + 78 + + 13
----
370669

query I rowsort
SELECT ALL + COALESCE ( 15, 26, + + 61 )
----
15

query I rowsort
SELECT ALL - 90 * - + 65 AS col1
----
5850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-914
SELECT - 24 + - + 99 AS col0, - CAST( + + 77 AS SIGNED ) * CAST( + 14 AS SIGNED )
----
-123
-1078

skipif mysql # not compatible
query II rowsort label-914
SELECT - 24 + - + 99 AS col0, - CAST ( + + 77 AS INTEGER ) * CAST ( + 14 AS INTEGER )
----
-123
-1078

onlyif mysql # aggregate syntax: 
query II rowsort label-915
SELECT DISTINCT - 49 * + COUNT( * ) col2, - 19 * - 23
----
-49
437

skipif mysql # not compatible
query II rowsort label-915
SELECT DISTINCT - 49 * + COUNT ( * ) col2, - 19 * - 23
----
-49
437

query I rowsort
SELECT ALL + 91 - - - 50 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-917
SELECT - CAST( NULLIF ( - 85, - 51 + - - COUNT( * ) ) AS SIGNED ) DIV + - 5
----
-17

skipif mysql # not compatible
query I rowsort label-917
SELECT - CAST ( NULLIF ( - 85, - 51 + - - COUNT ( * ) ) AS INTEGER ) / + - 5
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT - SUM( - 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-919
SELECT - SUM ( - 42 ) AS col2
----
42

query I rowsort
SELECT + + 70 * CASE + 64 WHEN 1 THEN 37 WHEN + - 12 - + 24 THEN + 71 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-921
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT CAST( NULLIF ( + 78, + + 41 ) AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-923
SELECT CAST ( NULLIF ( + 78, + + 41 ) AS INTEGER ) AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-924
SELECT ALL CAST( NULL AS SIGNED ) * - 13 - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL CAST ( NULL AS INTEGER ) * - 13 - - 68
----
NULL

query I rowsort
SELECT + 84 * 65
----
5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-926
SELECT - - 92 + + SUM( ALL + 71 ) * - MAX( + COALESCE ( + - 55, 62 DIV - 10 + - 40 + 78 ) ) DIV - - COUNT( * )
----
3997

skipif mysql # not compatible
query I rowsort label-926
SELECT - - 92 + + SUM ( ALL + 71 ) * - MAX ( + COALESCE ( + - 55, 62 / - 10 + - 40 + 78 ) ) / - - COUNT ( * )
----
3997

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT + COUNT( * ) - + 8 + - COUNT( * ) * 39
----
-46

skipif mysql # not compatible
query I rowsort label-927
SELECT + COUNT ( * ) - + 8 + - COUNT ( * ) * 39
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT ALL + SUM( - 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-928
SELECT ALL + SUM ( - 5 ) AS col0
----
-5

query I rowsort
SELECT - - NULLIF ( + 32, 19 )
----
32

query I rowsort
SELECT + - 43 * 20 * - + 17
----
14620

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

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

query I rowsort
SELECT DISTINCT 91 * 23
----
2093

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT ALL 1 DIV 18 + + + 72 DIV - 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL 1 / 18 + + + 72 / - 61 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-934
SELECT + ( COALESCE ( + 95, + + 14 + COUNT( + 57 ), - 59 - + 37 * + 45 DIV - 9 ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-934
SELECT + ( COALESCE ( + 95, + + 14 + COUNT ( + 57 ), - 59 - + 37 * + 45 / - 9 ) ) AS col1
----
95

query I rowsort
SELECT + 32 * - 6
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT 48 * 51 DIV - 36 + 5 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-936
SELECT 48 * 51 / - 36 + 5 AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-937
SELECT DISTINCT + 13 / + MAX( + 24 ) + + 72 / + - CASE - 20 WHEN - 90 THEN + COUNT( * ) * + + 37 + - 72 + + 96 * - 42 * - COALESCE ( - - MAX( - 33 ), 11 ) + + + 58 + + - CASE WHEN NOT NULL > - 96 THEN 74 WHEN NULL IS NULL AND NOT ( COUNT( * ) ) = + 97 THEN NULL ELSE + CAST( + 42 AS SIGNED ) + CAST( + + 65 AS SIGNED ) END * + 79 + - 4 * + - 44 WHEN 72 THEN NULL WHEN + - ( + COALESCE ( 98, + 43 * - 11 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT + 13 / + MAX ( + 24 ) + + 72 / + - CASE - 20 WHEN - 90 THEN + COUNT ( * ) * + + 37 + - 72 + + 96 * - 42 * - COALESCE ( - - MAX ( - 33 ), 11 ) + + + 58 + + - CASE WHEN NOT NULL > - 96 THEN 74 WHEN NULL IS NULL AND NOT ( COUNT ( * ) ) = + 97 THEN NULL ELSE + CAST ( + 42 AS INTEGER ) + CAST ( + + 65 AS INTEGER ) END * + 79 + - 4 * + - 44 WHEN 72 THEN NULL WHEN + - ( + COALESCE ( 98, + 43 * - 11 ) ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT ALL - 29 DIV + 46 + - + 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-938
SELECT ALL - 29 / + 46 + - + 8 AS col2
----
-8

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

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

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

query I rowsort
SELECT + 2 * 16
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT - COUNT( * ) + - CAST( - + ( ( 70 ) ) AS SIGNED ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-942
SELECT - COUNT ( * ) + - CAST ( - + ( ( 70 ) ) AS INTEGER ) AS col1
----
69

query I rowsort
SELECT DISTINCT 14 * + 51
----
714

query I rowsort
SELECT + 78 * + 20
----
1560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-945
SELECT ALL + MIN( - 65 ) DIV NULLIF ( 62, SUM( ( + 40 ) ) ) + + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL + MIN ( - 65 ) / NULLIF ( 62, SUM ( ( + 40 ) ) ) + + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-946
SELECT ALL + 58 * + - CASE CAST( - MIN( ALL - 61 ) AS SIGNED ) WHEN + 91 THEN COUNT( * ) ELSE - 5 END * MAX( + - 66 ) + 46
----
-19094

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL + 58 * + - CASE CAST ( - MIN ( ALL - 61 ) AS INTEGER ) WHEN + 91 THEN COUNT ( * ) ELSE - 5 END * MAX ( + - 66 ) + 46
----
-19094

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT ALL 54 * + COUNT( * ) * 82
----
4428

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL 54 * + COUNT ( * ) * 82
----
4428

onlyif mysql # aggregate syntax: 
query II rowsort label-948
SELECT ALL + 9, MIN( DISTINCT 63 ) AS col2
----
9
63

skipif mysql # not compatible
query II rowsort label-948
SELECT ALL + 9, MIN ( DISTINCT 63 ) AS col2
----
9
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-949
SELECT + ( + CASE - AVG ( ALL + 31 ) WHEN + MAX( ALL - 26 ) THEN NULL WHEN + - 8 + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) THEN - - COUNT( * ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT + ( + CASE - AVG ( ALL + 31 ) WHEN + MAX ( ALL - 26 ) THEN NULL WHEN + - 8 + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - - COUNT ( * ) END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-950
SELECT + CAST( + + ( - + 23 ) AS SIGNED ), CAST( NULL AS SIGNED ) * - - SUM( DISTINCT - 67 ) * 84 AS col0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-950
SELECT + CAST ( + + ( - + 23 ) AS INTEGER ), CAST ( NULL AS INTEGER ) * - - SUM ( DISTINCT - 67 ) * 84 AS col0
----
-23
NULL

query I rowsort
SELECT + 12 - - + 59
----
71

query I rowsort
SELECT - 18 * 56
----
-1008

query I rowsort
SELECT - - 48 * 60 AS col2
----
2880

query I rowsort
SELECT DISTINCT - - 27 * ( - 12 ) AS col0
----
-324

query I rowsort
SELECT DISTINCT 10 * + 74 - - + COALESCE ( - COALESCE ( - + 91, 40 + - CASE 44 WHEN - - 90 + - 34 THEN - 34 END ), - 30 )
----
831

query I rowsort
SELECT ALL - COALESCE ( - 21, - 20 + + 9 ) * + 31
----
651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-957
SELECT - 32 - + 57 DIV - 79 * - CAST( - 67 AS SIGNED ) * - NULLIF ( + 21, MIN( + + 18 ) + - 9 ) * 39 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-957
SELECT - 32 - + 57 / - 79 * - CAST ( - 67 AS INTEGER ) * - NULLIF ( + 21, MIN ( + + 18 ) + - 9 ) * 39 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-958
SELECT ALL - 93 DIV - 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL - 93 / - 76 AS col0
----
1

query I rowsort
SELECT 9 * + + 69 + 37 - + - 78 AS col1
----
736

query I rowsort
SELECT + 89 * + + 89 * - 91 + + 31
----
-720780

query I rowsort
SELECT ALL + 44 * - + 50 AS col2
----
-2200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-962
SELECT + MAX( ALL - 3 ) DIV + + 42
----
0

skipif mysql # not compatible
query I rowsort label-962
SELECT + MAX ( ALL - 3 ) / + + 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-963
SELECT ALL + - CAST( 35 AS SIGNED ) * + NULLIF ( 97, + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) col0
----
3395

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + - CAST ( 35 AS INTEGER ) * + NULLIF ( 97, + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) col0
----
3395

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT + 35 DIV + - 19 - - 97 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-964
SELECT + 35 / + - 19 - - 97 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT 74 + - - 15 * + 96 + + ( + 87 ) + - COUNT( * )
----
1600

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT 74 + - - 15 * + 96 + + ( + 87 ) + - COUNT ( * )
----
1600

query II rowsort
SELECT - 40 AS col2, - 95
----
-40
-95

query I rowsort
SELECT ALL - - 80 + 83
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT ALL + ( 12 ) + + 15 + + 11 * - SUM( DISTINCT - 75 ) * - + 60
----
-49473

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL + ( 12 ) + + 15 + + 11 * - SUM ( DISTINCT - 75 ) * - + 60
----
-49473

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-970
SELECT ALL + 88 DIV - 63 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL + 88 / - 63 AS col0
----
-1

query I rowsort
SELECT 10 + + ( - 61 )
----
-51

query I rowsort
SELECT 26 + + - ( - 78 ) AS col2
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-973
SELECT ALL - CAST( + COALESCE ( + MAX( ALL 74 ), - 69 ) AS SIGNED ) AS col1, 79 AS col2
----
-74
79

skipif mysql # not compatible
query II rowsort label-973
SELECT ALL - CAST ( + COALESCE ( + MAX ( ALL 74 ), - 69 ) AS INTEGER ) AS col1, 79 AS col2
----
-74
79

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL 37 * - MIN( - 22 )
----
814

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL 37 * - MIN ( - 22 )
----
814

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT + 39 DIV - 20 + - - 17
----
16

skipif mysql # not compatible
query I rowsort label-975
SELECT + 39 / - 20 + - - 17
----
16

query II rowsort
SELECT ALL 30 - + 73 col0, - 77
----
-43
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT COUNT( 16 ) * + 65 * - 50 - - COUNT( * ) AS col1
----
-3249

skipif mysql # not compatible
query I rowsort label-977
SELECT COUNT ( 16 ) * + 65 * - 50 - - COUNT ( * ) AS col1
----
-3249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-978
SELECT + 76 * + + 23 + 85 * - + 70 * + CASE 75 WHEN 63 THEN NULL WHEN + COUNT( * ) THEN + 65 ELSE NULL END AS col0, + MIN( DISTINCT 77 ) * CAST( - CASE + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) WHEN + 3 THEN + 16 END AS SIGNED ) - + 43 + - 43
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-978
SELECT + 76 * + + 23 + 85 * - + 70 * + CASE 75 WHEN 63 THEN NULL WHEN + COUNT ( * ) THEN + 65 ELSE NULL END AS col0, + MIN ( DISTINCT 77 ) * CAST ( - CASE + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) WHEN + 3 THEN + 16 END AS INTEGER ) - + 43 + - 43
----
NULL
NULL

query I rowsort
SELECT ( - 84 ) * + 50 col2
----
-4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT DISTINCT 24 DIV ( - COUNT( 37 ) ) * + 90 + + - ( + + COUNT( + + 72 ) ) * - 89
----
-2071

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT 24 / ( - COUNT ( 37 ) ) * + 90 + + - ( + + COUNT ( + + 72 ) ) * - 89
----
-2071

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL MAX( ALL - 2 ) * + 12 * - 24
----
576

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL MAX ( ALL - 2 ) * + 12 * - 24
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT + COUNT( + + 74 ) + + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-982
SELECT + COUNT ( + + 74 ) + + 47 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT ALL 50 DIV - 99 - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL 50 / - 99 - 92 AS col1
----
-92

query I rowsort
SELECT DISTINCT - ( 27 ) AS col1
----
-27

query I rowsort
SELECT DISTINCT - 66 * + 44 + - 29
----
-2933

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL - 8 * 67 * + + COALESCE ( - MIN( ALL 39 ), - 98 )
----
20904

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL - 8 * 67 * + + COALESCE ( - MIN ( ALL 39 ), - 98 )
----
20904

query I rowsort
SELECT 44 * - 58 * - - ( - 18 ) AS col2
----
45936

onlyif mysql # aggregate syntax: 
query II rowsort label-988
SELECT ALL 77 * COUNT( * ), + 76 AS col1
----
77
76

skipif mysql # not compatible
query II rowsort label-988
SELECT ALL 77 * COUNT ( * ), + 76 AS col1
----
77
76

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - - 52 * + - 83 + - NULLIF ( 54, 96 ) + + COUNT( * )
----
-4369

skipif mysql # not compatible
query I rowsort label-989
SELECT - - 52 * + - 83 + - NULLIF ( 54, 96 ) + + COUNT ( * )
----
-4369

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT + 56 DIV 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-990
SELECT + 56 / 36 AS col1
----
1

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

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

query I rowsort
SELECT DISTINCT 61 + + - 98
----
-37

query I rowsort
SELECT DISTINCT + 65 + + ( - + 25 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT DISTINCT - + NULLIF ( - + 74, + COUNT( * ) ) + + MIN( ALL 57 )
----
131

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT - + NULLIF ( - + 74, + COUNT ( * ) ) + + MIN ( ALL 57 )
----
131

query I rowsort
SELECT ALL + + 57 + - + 39 AS col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-996
SELECT DISTINCT + - 90 * + COUNT( * ) + + + MAX( ALL 65 ) DIV 80 + + - SUM( - + 52 ), 83 AS col2
----
-38
83

skipif mysql # not compatible
query II rowsort label-996
SELECT DISTINCT + - 90 * + COUNT ( * ) + + + MAX ( ALL 65 ) / 80 + + - SUM ( - + 52 ), 83 AS col2
----
-38
83

query I rowsort
SELECT ALL + 93 * - - 53 * - 63 AS col2
----
-310527

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT ALL - 85 - + CASE + COALESCE ( 4, 15 ) WHEN + 10 * 37 * 30 + - COUNT( * ) + - 65 * + - 81 THEN - 45 WHEN - 15 THEN - 43 - - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - 85 - + CASE + COALESCE ( 4, 15 ) WHEN + 10 * 37 * 30 + - COUNT ( * ) + - 65 * + - 81 THEN - 45 WHEN - 15 THEN - 43 - - 66 END
----
NULL

query I rowsort
SELECT 64 * - 46
----
-2944

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT SUM( DISTINCT 43 ) * + ( CASE + 42 WHEN - 98 THEN NULL WHEN - + 92 THEN - - 3 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1001
SELECT SUM ( DISTINCT 43 ) * + ( CASE + 42 WHEN - 98 THEN NULL WHEN - + 92 THEN - - 3 END ) AS col0
----
NULL

query I rowsort
SELECT ALL 83 * + - 76 AS col1
----
-6308

query II rowsort
SELECT + 64 AS col0, + 67 - - 97 AS col2
----
64
164

onlyif mysql # aggregate syntax: 
query II rowsort label-1004
SELECT ALL - 44 AS col2, 64 * + COUNT( * )
----
-44
64

skipif mysql # not compatible
query II rowsort label-1004
SELECT ALL - 44 AS col2, 64 * + COUNT ( * )
----
-44
64

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

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

query I rowsort
SELECT DISTINCT + 68 * - - 85 AS col0
----
5780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1007
SELECT DISTINCT + COUNT( * ) * - ( - - ( + 43 ) ) DIV + 79 - + 97 - + ( - 33 ), 29 col2
----
-64
29

skipif mysql # not compatible
query II rowsort label-1007
SELECT DISTINCT + COUNT ( * ) * - ( - - ( + 43 ) ) / + 79 - + 97 - + ( - 33 ), 29 col2
----
-64
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT 62 * + - 2 - 64 + 84 - + 81 + - - MIN( DISTINCT 82 )
----
-103

skipif mysql # not compatible
query I rowsort label-1008
SELECT 62 * + - 2 - 64 + 84 - + 81 + - - MIN ( DISTINCT 82 )
----
-103

query I rowsort
SELECT - + 88 + + + 88 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1010
SELECT + CAST( NULL AS SIGNED ) col1, - 29
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-1010
SELECT + CAST ( NULL AS INTEGER ) col1, - 29
----
NULL
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT + 23 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-1011
SELECT + 23 / + - 98
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT + 81 - + 87 + + - 60 + - + 16 - SUM( COALESCE ( - - 58, - 9 ) ) * + MAX( - ( - - NULLIF ( 45, + 8 + + 27 - 89 ) ) ) * 22
----
57338

skipif mysql # not compatible
query I rowsort label-1014
SELECT + 81 - + 87 + + - 60 + - + 16 - SUM ( COALESCE ( - - 58, - 9 ) ) * + MAX ( - ( - - NULLIF ( 45, + 8 + + 27 - 89 ) ) ) * 22
----
57338

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT + 90 DIV - 43 - - 22 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1015
SELECT + 90 / - 43 - - 22 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL - 25 + 7 + - MAX( - CAST( NULL AS SIGNED ) ) * + COUNT( - 56 ) + + 65 - 42 + - - COUNT( * ) * - ( + 3 ) + - 17 + + 79 + + - 14 * - 20 + - COUNT( * ) - - 36 - + 44 + COUNT( * ) + + - ( - - COUNT( * ) ) * - MIN( ALL + 38 ) / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL - 25 + 7 + - MAX ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( - 56 ) + + 65 - 42 + - - COUNT ( * ) * - ( + 3 ) + - 17 + + 79 + + - 14 * - 20 + - COUNT ( * ) - - 36 - + 44 + COUNT ( * ) + + - ( - - COUNT ( * ) ) * - MIN ( ALL + 38 ) / - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL 47 + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL 47 + - COUNT ( * )
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1018
SELECT ALL + CASE - - MAX( DISTINCT + 82 ) WHEN CAST( NULL AS DECIMAL ) THEN - 1 * 95 + - 23 + + + 19 + - + ( - 92 ) * - 24 ELSE NULL END * + - 25 * - MIN( ALL - 68 ) * 88 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL + CASE - - MAX ( DISTINCT + 82 ) WHEN CAST ( NULL AS REAL ) THEN - 1 * 95 + - 23 + + + 19 + - + ( - 92 ) * - 24 ELSE NULL END * + - 25 * - MIN ( ALL - 68 ) * 88 + + 50
----
NULL

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

query II rowsort
SELECT + + 86 + 64 + - + 46 col2, 21 AS col1
----
104
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT + - COUNT( * ) + - 50 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1021
SELECT + - COUNT ( * ) + - 50 AS col1
----
-51

query I rowsort
SELECT ALL + 0 + CASE + 91 WHEN + 62 THEN + - 38 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT DISTINCT + 42 * + + 32 * + 84 * + COUNT( * ) + - 85 AS col1
----
112811

skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT + 42 * + + 32 * + 84 * + COUNT ( * ) + - 85 AS col1
----
112811

query I rowsort
SELECT - - 31 + 56
----
87

query I rowsort
SELECT NULLIF ( + 27, - ( + 49 ) * - 39 + - 93 )
----
27

query II rowsort
SELECT - 74 AS col0, + 92
----
-74
92

query I rowsort
SELECT ALL 56 + - 16
----
40

query I rowsort
SELECT + 62 + + 17 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + COUNT( * ) + 15 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1029
SELECT + COUNT ( * ) + 15 AS col1
----
16

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

query II rowsort
SELECT ALL 86 col1, ( - - 35 )
----
86
35

query I rowsort
SELECT ALL - 99 - + 58 * - + 68 AS col2
----
3845

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT DISTINCT + 44 * + SUM( 89 ) AS col0
----
3916

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT + 44 * + SUM ( 89 ) AS col0
----
3916

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT - ( - + 59 ) * - 64 * + MIN( 96 ) AS col0
----
-362496

skipif mysql # not compatible
query I rowsort label-1034
SELECT - ( - + 59 ) * - 64 * + MIN ( 96 ) AS col0
----
-362496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1035
SELECT + NULLIF ( + COALESCE ( - + 91, - 48 * - - MIN( NULLIF ( - 41, 50 * - - ( - 86 ) / + 50 ) ) - + 39 + + + 14 ), - 89 ) + - COALESCE ( + + 70, - + CAST( NULL AS SIGNED ) + + CASE - 82 WHEN + 64 + + - MAX( ALL - 87 ) + COALESCE ( 96, 67 ) THEN NULL ELSE + - 58 END, ( + + 21 ) + 87 ) + + + 96 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-1035
SELECT + NULLIF ( + COALESCE ( - + 91, - 48 * - - MIN ( NULLIF ( - 41, 50 * - - ( - 86 ) / + 50 ) ) - + 39 + + + 14 ), - 89 ) + - COALESCE ( + + 70, - + CAST ( NULL AS INTEGER ) + + CASE - 82 WHEN + 64 + + - MAX ( ALL - 87 ) + COALESCE ( 96, 67 ) THEN NULL ELSE + - 58 END, ( + + 21 ) + 87 ) + + + 96 AS col0
----
-65

query I rowsort
SELECT ALL + 54 * 36 AS col0
----
1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT DISTINCT - 45 * - ( 60 ) * - + 17 + + 79 + 29 DIV COUNT( + 65 )
----
-45792

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT - 45 * - ( 60 ) * - + 17 + + 79 + 29 / COUNT ( + 65 )
----
-45792

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT + COUNT( * ) + - 31 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1038
SELECT + COUNT ( * ) + - 31 AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT + 72 DIV - - 6 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1039
SELECT + 72 / - - 6 AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1040
SELECT - 77 * - + COUNT( * ) * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT - 77 * - + COUNT ( * ) * CAST ( NULL AS REAL ) col2
----
NULL

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

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

query I rowsort
SELECT + 43 * - 36 + + + 59
----
-1489

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT CASE 22 WHEN - 65 * - - 39 THEN - - 27 + NULLIF ( - 88, + + 19 * + + 90 * - 85 ) ELSE NULL END * 56 + - 98 * + 36 + + - COUNT( + 23 ) * + COALESCE ( - 13, - 10 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT CASE 22 WHEN - 65 * - - 39 THEN - - 27 + NULLIF ( - 88, + + 19 * + + 90 * - 85 ) ELSE NULL END * 56 + - 98 * + 36 + + - COUNT ( + 23 ) * + COALESCE ( - 13, - 10 ) AS col1
----
NULL

query I rowsort
SELECT - ( - - 62 ) * - 13 AS col0
----
806

query I rowsort
SELECT ALL + NULLIF ( + 81, 12 + - + 34 + 17 * - - 20 ) col1
----
81

query I rowsort
SELECT DISTINCT + 23 * + - 22 - - 24 + - - 5 * - - 55 + + - ( + 23 )
----
-230

query II rowsort
SELECT ALL + - 54 AS col2, 19 * + 39 * 9 AS col0
----
-54
6669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1048
SELECT - - 17 DIV + + 15 DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1048
SELECT - - 17 / + + 15 / + - COUNT ( * )
----
-1

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

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

query II rowsort
SELECT DISTINCT + ( - 10 ) AS col1, + 95
----
-10
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - + COUNT( * ) * + + ( + MIN( - - 94 ) ) * - ( - 59 ) + + 71 - 74 AS col0
----
-5549

skipif mysql # not compatible
query I rowsort label-1051
SELECT - + COUNT ( * ) * + + ( + MIN ( - - 94 ) ) * - ( - 59 ) + + 71 - 74 AS col0
----
-5549

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - 74 * - ( ( + COUNT( * ) ) ) + - 60 * 59 * + 83
----
-293746

skipif mysql # not compatible
query I rowsort label-1052
SELECT - 74 * - ( ( + COUNT ( * ) ) ) + - 60 * 59 * + 83
----
-293746

onlyif mysql # aggregate syntax: 
query II rowsort label-1053
SELECT + 57 * 38 + + 15 + + 88 AS col1, COUNT( * )
----
2269
1

skipif mysql # not compatible
query II rowsort label-1053
SELECT + 57 * 38 + + 15 + + 88 AS col1, COUNT ( * )
----
2269
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1054
SELECT + - 66, 98 * - 89 + - COALESCE ( + + 1, + 24 * 7 + CAST( ( + SUM( DISTINCT - - 54 ) ) AS SIGNED ) + COUNT( * ) ) * + + 20 col2
----
-66
-8742

skipif mysql # not compatible
query II rowsort label-1054
SELECT + - 66, 98 * - 89 + - COALESCE ( + + 1, + 24 * 7 + CAST ( ( + SUM ( DISTINCT - - 54 ) ) AS INTEGER ) + COUNT ( * ) ) * + + 20 col2
----
-66
-8742

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1055
SELECT ALL + + NULLIF ( - + 87, 23 ) * - CAST( NULL AS SIGNED ) * + - 26 + + + 77 col2, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-1055
SELECT ALL + + NULLIF ( - + 87, 23 ) * - CAST ( NULL AS INTEGER ) * + - 26 + + + 77 col2, 5
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - MIN( ALL 72 ) + - 78
----
-150

skipif mysql # not compatible
query I rowsort label-1056
SELECT - MIN ( ALL 72 ) + - 78
----
-150

query I rowsort
SELECT ALL - 50 * - 2 + + 81
----
181

query I rowsort
SELECT - 78 + - 0 * + - 41
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1059
SELECT ALL + SUM( + 87 ) * + - ( - CAST( + + 26 AS SIGNED ) ) + + ( + 80 ) + 50 + 15 * - ( + + CAST( + 58 AS SIGNED ) ) + + 32 * 73 + - 95 * 86
----
-4312

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + SUM ( + 87 ) * + - ( - CAST ( + + 26 AS INTEGER ) ) + + ( + 80 ) + 50 + 15 * - ( + + CAST ( + 58 AS INTEGER ) ) + + 32 * 73 + - 95 * 86
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT MIN( - + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-1060
SELECT MIN ( - + 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) * + 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) * + 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL - + MIN( ALL 24 ) * 18 + - ( + - 73 )
----
-359

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - + MIN ( ALL 24 ) * 18 + - ( + - 73 )
----
-359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1063
SELECT - 82 * MAX( DISTINCT - 2 ) DIV MIN( 32 ) + CASE - 58 WHEN + 28 THEN - + 60 - - - 61 + 21 - ( 69 ) DIV 1 ELSE - 18 DIV 52 END + ( - 90 )
----
-85

skipif mysql # not compatible
query I rowsort label-1063
SELECT - 82 * MAX ( DISTINCT - 2 ) / MIN ( 32 ) + CASE - 58 WHEN + 28 THEN - + 60 - - - 61 + 21 - ( 69 ) / 1 ELSE - 18 / 52 END + ( - 90 )
----
-85

query I rowsort
SELECT ALL - + 73 * - 11 AS col1
----
803

query I rowsort
SELECT + - 35 + + - 86
----
-121

query I rowsort
SELECT ALL - - CASE + 64 WHEN + 38 THEN + 13 END * - 2 / - + 46 + - 20 + - 49 * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT - 81 * + 61 - + 13 + + - COALESCE ( - 38, + MAX( DISTINCT - - 30 ) ) + + + COALESCE ( + + 2, 33 * + ( + 99 ) ) * - 61 + + - 51 * 72 * + 52 * - 28 AS col2
----
5341394

skipif mysql # not compatible
query I rowsort label-1067
SELECT - 81 * + 61 - + 13 + + - COALESCE ( - 38, + MAX ( DISTINCT - - 30 ) ) + + + COALESCE ( + + 2, 33 * + ( + 99 ) ) * - 61 + + - 51 * 72 * + 52 * - 28 AS col2
----
5341394

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT + MIN( ALL - + 34 ) * - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1068
SELECT + MIN ( ALL - + 34 ) * - COUNT ( * )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1069
SELECT ALL - 38 DIV + 76 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL - 38 / + 76 * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1070
SELECT ALL - 91 col0, - 47 + - MIN( - 50 ) * + CAST( + 54 AS SIGNED ) AS col1
----
-91
2653

skipif mysql # not compatible
query II rowsort label-1070
SELECT ALL - 91 col0, - 47 + - MIN ( - 50 ) * + CAST ( + 54 AS INTEGER ) AS col1
----
-91
2653

onlyif mysql # aggregate syntax: 
query II rowsort label-1071
SELECT MAX( 3 ) AS col0, - 31 AS col0
----
3
-31

skipif mysql # not compatible
query II rowsort label-1071
SELECT MAX ( 3 ) AS col0, - 31 AS col0
----
3
-31

query I rowsort
SELECT + 55 * + + 96 AS col0
----
5280

query I rowsort
SELECT - 2 - - ( - - 10 ) + ( + + 23 ) * - - 38 AS col0
----
882

onlyif mysql # DIV for integer division: 
query II rowsort label-1074
SELECT + 8 DIV + 45 AS col1, - 52
----
0
-52

skipif mysql # not compatible
query II rowsort label-1074
SELECT + 8 / + 45 AS col1, - 52
----
0
-52

query II rowsort
SELECT ALL 14 * 1, - 8 AS col2
----
14
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT + COUNT( * ) + COUNT( + - 70 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1077
SELECT + COUNT ( * ) + COUNT ( + - 70 ) AS col1
----
2

query I rowsort
SELECT ALL 90 - - 32 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT + CASE + - 79 WHEN 26 * + 26 + + 98 THEN 32 ELSE NULL END * + 58 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT + CASE + - 79 WHEN 26 * + 26 + + 98 THEN 32 ELSE NULL END * + 58 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 7 * - - 72
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL MAX( DISTINCT - 55 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL MAX ( DISTINCT - 55 ) col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT + 48 - - + COUNT( DISTINCT 59 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1082
SELECT + 48 - - + COUNT ( DISTINCT 59 ) AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1083
SELECT ALL 54 * - + 41 DIV COUNT( * )
----
-2214

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL 54 * - + 41 / COUNT ( * )
----
-2214

query I rowsort
SELECT 70 * - 41
----
-2870

query I rowsort
SELECT 5 * 4 * 63 AS col0
----
1260

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT 88 DIV + 81
----
1

skipif mysql # not compatible
query I rowsort label-1086
SELECT 88 / + 81
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1087
SELECT ALL - - COUNT( * ) + - 45 AS col0, + 95
----
-44
95

skipif mysql # not compatible
query II rowsort label-1087
SELECT ALL - - COUNT ( * ) + - 45 AS col0, + 95
----
-44
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1088
SELECT ALL + ( + 44 ) + + 58 DIV - - 91
----
44

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL + ( + 44 ) + + 58 / - - 91
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1089
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + - 80 * - - 30 * - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT - CAST ( NULL AS REAL ) + + - 80 * - - 30 * - + 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT CASE - - 39 WHEN + + CASE + 46 WHEN 68 + + - 21 + NULLIF ( - 80, 6 ) * - - 70 * + - 15 THEN NULL WHEN + + 85 THEN + 78 WHEN - - 15 + + 10 + + 50 THEN NULL END THEN NULL ELSE - + 18 + 29 END DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-1090
SELECT CASE - - 39 WHEN + + CASE + 46 WHEN 68 + + - 21 + NULLIF ( - 80, 6 ) * - - 70 * + - 15 THEN NULL WHEN + + 85 THEN + 78 WHEN - - 15 + + 10 + + 50 THEN NULL END THEN NULL ELSE - + 18 + 29 END / + 97
----
0

query I rowsort
SELECT ALL - 25 + 22 * - 94 + + 27 AS col1
----
-2066

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT - + MIN( 87 ) + 80
----
-7

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT - + MIN ( 87 ) + 80
----
-7

query I rowsort
SELECT 37 * 44 * - 20 + + 15 col0
----
-32545

query II rowsort
SELECT 39 * + 38 AS col0, - 53 AS col1
----
1482
-53

query I rowsort
SELECT + 65 - ( 7 ) * + 34 AS col2
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1096
SELECT - 62 * + 79 + - - CAST( - 17 AS SIGNED )
----
-4915

skipif mysql # not compatible
query I rowsort label-1096
SELECT - 62 * + 79 + - - CAST ( - 17 AS INTEGER )
----
-4915

query I rowsort
SELECT ALL - 92 * 55 AS col0
----
-5060

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

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

query II rowsort
SELECT - 72 AS col0, + 56
----
-72
56

query II rowsort
SELECT DISTINCT 74, 46 AS col2
----
74
46

query I rowsort
SELECT 35 * - 11 AS col1
----
-385

query I rowsort
SELECT 38 + + 27 AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT 54 DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-1103
SELECT 54 / + + 62
----
0

query I rowsort
SELECT 90 * + 32 * 84
----
241920

onlyif mysql # DIV for integer division: 
query I rowsort label-1105
SELECT DISTINCT 43 DIV 27
----
1

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT 43 / 27
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1106
SELECT 73 + NULLIF ( - 5, 89 + + - CAST( NULL AS SIGNED ) ) * - 7 * - MIN( ALL + 45 ), - COUNT( * ) + - 33 + 86 AS col1
----
-1502
52

skipif mysql # not compatible
query II rowsort label-1106
SELECT 73 + NULLIF ( - 5, 89 + + - CAST ( NULL AS INTEGER ) ) * - 7 * - MIN ( ALL + 45 ), - COUNT ( * ) + - 33 + 86 AS col1
----
-1502
52

query I rowsort
SELECT 80 * + 83 AS col0
----
6640

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

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

query I rowsort
SELECT ALL 54 + + - 23
----
31

query I rowsort
SELECT 70 + + 93
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT NULLIF ( COUNT( * ), + 27 / - - 92 * - 65 - + 7 ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-1111
SELECT NULLIF ( COUNT ( * ), + 27 / - - 92 * - 65 - + 7 ) * - 10
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-1112
SELECT 79 + - 72 + + + 83 AS col2, 2 + + + 96 + - COUNT( * ) * + 54 AS col0
----
90
44

skipif mysql # not compatible
query II rowsort label-1112
SELECT 79 + - 72 + + + 83 AS col2, 2 + + + 96 + - COUNT ( * ) * + 54 AS col0
----
90
44

query I rowsort
SELECT 15 * + 54 AS col1
----
810

query I rowsort
SELECT DISTINCT 35 * 29 * - 7 AS col2
----
-7105

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT + MIN( 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1115
SELECT + MIN ( 42 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1116
SELECT DISTINCT 12 * + 33 + - CAST( + NULLIF ( - - 26, COUNT( * ) * + MIN( 99 ) + + + 35 ) AS SIGNED ) + + 43 + 60 + 22 * - 5, COUNT( * ) + - - ( - 30 ) - COUNT( * ) - 39 DIV + 56 AS col0
----
363
-30

skipif mysql # not compatible
query II rowsort label-1116
SELECT DISTINCT 12 * + 33 + - CAST ( + NULLIF ( - - 26, COUNT ( * ) * + MIN ( 99 ) + + + 35 ) AS INTEGER ) + + 43 + 60 + 22 * - 5, COUNT ( * ) + - - ( - 30 ) - COUNT ( * ) - 39 / + 56 AS col0
----
363
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL COUNT( * ) + 13 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL COUNT ( * ) + 13 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL - + SUM( - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - + SUM ( - 22 )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1119
SELECT + COUNT( * ) DIV - - COUNT( * ) + + 39 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1119
SELECT + COUNT ( * ) / - - COUNT ( * ) + + 39 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT - + 6 DIV 52 + - 75 + + 17 DIV 54 + - 38 + - 17
----
-130

skipif mysql # not compatible
query I rowsort label-1120
SELECT - + 6 / 52 + - 75 + + 17 / 54 + - 38 + - 17
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1121
SELECT 5 + - 10 / NULLIF ( CAST( NULL AS SIGNED ), - MAX( ALL 80 ) ) AS col0, 42 * + 9 + COUNT( * )
----
NULL
379

skipif mysql # not compatible
query II rowsort label-1121
SELECT 5 + - 10 / NULLIF ( CAST ( NULL AS INTEGER ), - MAX ( ALL 80 ) ) AS col0, 42 * + 9 + COUNT ( * )
----
NULL
379

query I rowsort
SELECT + 5 * + 3
----
15

query I rowsort
SELECT - 10 * + - 50 * - 41 + 52 * - ( + 62 ) * + 63 + + ( + 32 ) + + - 11 * + + 4 AS col0
----
-223624

onlyif mysql # DIV for integer division: 
query I rowsort label-1124
SELECT ALL - 44 DIV 13 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL - 44 / 13 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT SUM( 14 ) + + 99
----
113

skipif mysql # not compatible
query I rowsort label-1125
SELECT SUM ( 14 ) + + 99
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT - 72 * 19 - + - ( CAST( + - COUNT( * ) AS SIGNED ) )
----
-1369

skipif mysql # not compatible
query I rowsort label-1126
SELECT - 72 * 19 - + - ( CAST ( + - COUNT ( * ) AS INTEGER ) )
----
-1369

query II rowsort
SELECT + 27 AS col0, 90 * - 11
----
27
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - COUNT( 9 ) * + 66 * + - 64 * - 18
----
-76032

skipif mysql # not compatible
query I rowsort label-1128
SELECT - COUNT ( 9 ) * + 66 * + - 64 * - 18
----
-76032

onlyif mysql # DIV for integer division: 
query II rowsort label-1129
SELECT DISTINCT - + 64, - 40 - - + COALESCE ( - 17, - 70 * + + 65, - 23 DIV + 3 ) AS col0
----
-64
-57

skipif mysql # not compatible
query II rowsort label-1129
SELECT DISTINCT - + 64, - 40 - - + COALESCE ( - 17, - 70 * + + 65, - 23 / + 3 ) AS col0
----
-64
-57

query II rowsort
SELECT ( - 10 ) * - ( + 10 ) AS col1, NULLIF ( + 53, - 72 / + + 17 + - 45 )
----
100
53

query I rowsort
SELECT 45 * + 35
----
1575

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1132
SELECT CAST( NULL AS DECIMAL ) * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1132
SELECT CAST ( NULL AS REAL ) * - 2
----
NULL

query I rowsort
SELECT 83 + - 36 * 80 col0
----
-2797

query I rowsort
SELECT - CASE WHEN NOT ( NULL ) NOT IN ( - 88, 79, + 9 * - 98 / ( 60 ) ) THEN + 8 WHEN NULL IS NULL THEN + 23 END
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT 90 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-1135
SELECT 90 / 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT ALL + 95 DIV 76 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL + 95 / 76 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT DISTINCT MAX( + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT MAX ( + 62 )
----
62

query I rowsort
SELECT DISTINCT - 22 * CASE 90 WHEN - 42 THEN - 87 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL MIN( DISTINCT 72 )
----
72

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL MIN ( DISTINCT 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT - 13 + - - NULLIF ( + 29, COUNT( * ) / COUNT( * ) * + 1 + - - 60 ) - - ( - + 86 ) * 60 AS col2
----
-5144

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - 13 + - - NULLIF ( + 29, COUNT ( * ) / COUNT ( * ) * + 1 + - - 60 ) - - ( - + 86 ) * 60 AS col2
----
-5144

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT ALL 13 + + MAX( DISTINCT 46 ) + + 57 col0, + 49 * + 95 * - - 88
----
116
409640

skipif mysql # not compatible
query II rowsort label-1141
SELECT ALL 13 + + MAX ( DISTINCT 46 ) + + 57 col0, + 49 * + 95 * - - 88
----
116
409640

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT - 36 + - 76 DIV NULLIF ( 54, - + 74 * ( 6 ) + - 11 )
----
-37

skipif mysql # not compatible
query I rowsort label-1142
SELECT - 36 + - 76 / NULLIF ( 54, - + 74 * ( 6 ) + - 11 )
----
-37

query I rowsort
SELECT DISTINCT NULLIF ( 66, - 27 )
----
66

query I rowsort
SELECT ALL + 96 + - 58 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT ALL - COALESCE ( 85, + 28 DIV + 56 ) + 41
----
-44

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - COALESCE ( 85, + 28 / + 56 ) + 41
----
-44

query I rowsort
SELECT - ( 85 ) * ( 70 ) * - 49
----
291550

onlyif mysql # DIV for integer division: 
query I rowsort label-1147
SELECT - 76 DIV 57
----
-1

skipif mysql # not compatible
query I rowsort label-1147
SELECT - 76 / 57
----
-1

query I rowsort
SELECT DISTINCT + 99 - - 52 * - 51
----
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL + MIN( + 55 ) * - + 48
----
-2640

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL + MIN ( + 55 ) * - + 48
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT + - 42 DIV - 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + - 42 / - 34 AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1152
SELECT ALL + 17 * + COUNT( * ) AS col0, + 81 / + 26 + + + CASE - 1 WHEN + COALESCE ( + COUNT( - + 7 ), + 78 ) / + 77 - - 16 - - - 42 + - 85 + + + COUNT( * ) * COUNT( * ) + - 67 THEN + COALESCE ( 36, - 54, + + 80 ) END AS col0
----
17
NULL

skipif mysql # not compatible
query II rowsort label-1152
SELECT ALL + 17 * + COUNT ( * ) AS col0, + 81 / + 26 + + + CASE - 1 WHEN + COALESCE ( + COUNT ( - + 7 ), + 78 ) / + 77 - - 16 - - - 42 + - 85 + + + COUNT ( * ) * COUNT ( * ) + - 67 THEN + COALESCE ( 36, - 54, + + 80 ) END AS col0
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL - COUNT( * ) * + - 60 * - 2 col1
----
-120

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL - COUNT ( * ) * + - 60 * - 2 col1
----
-120

query I rowsort
SELECT DISTINCT - + 52 * + 23 - - 95 AS col2
----
-1101

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT DISTINCT + + MAX( + 35 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT + + MAX ( + 35 ) AS col0
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1156
SELECT + + 70 * - CAST( NULL AS DECIMAL ) + + 74 * 65 + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT + + 70 * - CAST ( NULL AS REAL ) + + 74 * 65 + + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT + - ( - + COUNT( * ) ) - CASE WHEN NOT ( NULL ) NOT BETWEEN + 70 AND + MAX( ALL + + ( + 2 ) ) + - + 74 THEN + 11 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT + - ( - + COUNT ( * ) ) - CASE WHEN NOT ( NULL ) NOT BETWEEN + 70 AND + MAX ( ALL + + ( + 2 ) ) + - + 74 THEN + 11 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - - 79 * - - 33 + - 44 AS col0
----
2563

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1159
SELECT - CASE + 16 WHEN - SUM( DISTINCT + - 12 ) THEN CAST( + 15 AS DECIMAL ) + - ( + 7 ) + + - 6 + + + 10 - - + 1 + - - MAX( 90 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1159
SELECT - CASE + 16 WHEN - SUM ( DISTINCT + - 12 ) THEN CAST ( + 15 AS REAL ) + - ( + 7 ) + + - 6 + + + 10 - - + 1 + - - MAX ( 90 ) END
----
NULL

query I rowsort
SELECT + 79 + + 40
----
119

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1162
SELECT ALL 97 * + + COUNT( * ) + - COUNT( * ) * 56 DIV - - 63 + 23
----
120

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL 97 * + + COUNT ( * ) + - COUNT ( * ) * 56 / - - 63 + 23
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT + CASE + ( 49 ) WHEN + + 26 THEN - 1 END + - SUM( 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1163
SELECT + CASE + ( 49 ) WHEN + + 26 THEN - 1 END + - SUM ( 78 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL COUNT( - - 2 ) * COALESCE ( 46, - + MIN( + + 67 ) ) * + 63
----
2898

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL COUNT ( - - 2 ) * COALESCE ( 46, - + MIN ( + + 67 ) ) * + 63
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT + 21 * + 99 + - MAX( DISTINCT + 70 ) AS col2
----
2009

skipif mysql # not compatible
query I rowsort label-1165
SELECT + 21 * + 99 + - MAX ( DISTINCT + 70 ) AS col2
----
2009

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

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

query I rowsort
SELECT ALL - 80 * ( 5 ) + + - 87 AS col2
----
-487

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT MIN( ALL + 23 ) col1
----
23

skipif mysql # not compatible
query I rowsort label-1168
SELECT MIN ( ALL + 23 ) col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + MAX( DISTINCT - - ( 84 ) ) * 83 + + 45
----
7017

skipif mysql # not compatible
query I rowsort label-1169
SELECT + MAX ( DISTINCT - - ( 84 ) ) * 83 + + 45
----
7017

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT - 95 + - COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-1170
SELECT - 95 + - COUNT ( * ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - ( - NULLIF ( 59, - + MIN( ALL 69 ) * + - 20 ) )
----
59

skipif mysql # not compatible
query I rowsort label-1171
SELECT - ( - NULLIF ( 59, - + MIN ( ALL 69 ) * + - 20 ) )
----
59

query I rowsort
SELECT DISTINCT - 64 + - 22
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT ALL + COUNT( * ) + 59
----
60

skipif mysql # not compatible
query I rowsort label-1173
SELECT ALL + COUNT ( * ) + 59
----
60

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT - 59 + + 89 - + 52 DIV - 26
----
32

skipif mysql # not compatible
query I rowsort label-1176
SELECT - 59 + + 89 - + 52 / - 26
----
32

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT - - 1 - NULLIF ( - + 61, - 82 ) - + 80 * CAST( NULL AS SIGNED ) * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT - - 1 - NULLIF ( - + 61, - 82 ) - + 80 * CAST ( NULL AS INTEGER ) * - 47 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1180
SELECT ALL + - 39 * + CASE + - 4 WHEN 72 THEN - - COUNT( + 6 ) WHEN + 27 - 6 THEN - + 19 ELSE COUNT( * ) * + CAST( ( - 2 ) AS SIGNED ) END + + - 7 + + COUNT( * ) * ( - 21 ) * + 56 col2, 99 AS col2
----
-1105
99

skipif mysql # not compatible
query II rowsort label-1180
SELECT ALL + - 39 * + CASE + - 4 WHEN 72 THEN - - COUNT ( + 6 ) WHEN + 27 - 6 THEN - + 19 ELSE COUNT ( * ) * + CAST ( ( - 2 ) AS INTEGER ) END + + - 7 + + COUNT ( * ) * ( - 21 ) * + 56 col2, 99 AS col2
----
-1105
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT - + NULLIF ( + - 22, + 36 * - + COUNT( * ) * + 85 / - 24 + - - ( + 87 ) * 46 + + 27 * - 25 * - 93 ) + - 18
----
4

skipif mysql # not compatible
query I rowsort label-1181
SELECT - + NULLIF ( + - 22, + 36 * - + COUNT ( * ) * + 85 / - 24 + - - ( + 87 ) * 46 + + 27 * - 25 * - 93 ) + - 18
----
4

query I rowsort
SELECT - 4 + - 19 AS col1
----
-23

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1184
SELECT + CAST( - ( + 63 ) AS SIGNED ) * + 8 col2
----
-504

skipif mysql # not compatible
query I rowsort label-1184
SELECT + CAST ( - ( + 63 ) AS INTEGER ) * + 8 col2
----
-504

query I rowsort
SELECT - 18 + - 95 + ( + - 31 ) AS col0
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1186
SELECT COUNT( * ) * + + 69 * - COUNT( * ) + - + 4 + 27 * + 86 * CAST( 65 AS SIGNED ) * - - CASE + 97 WHEN 31 * - 75 + 47 THEN ( - 44 ) * MIN( ALL - 24 ) + - + 1 ELSE NULL END + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT COUNT ( * ) * + + 69 * - COUNT ( * ) + - + 4 + 27 * + 86 * CAST ( 65 AS INTEGER ) * - - CASE + 97 WHEN 31 * - 75 + 47 THEN ( - 44 ) * MIN ( ALL - 24 ) + - + 1 ELSE NULL END + - 3
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT + 43 * - 5 + 73 DIV + - COUNT( * ) AS col1
----
-288

skipif mysql # not compatible
query I rowsort label-1188
SELECT + 43 * - 5 + 73 / + - COUNT ( * ) AS col1
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1189
SELECT + - CASE COUNT( * ) WHEN 25 THEN NULL ELSE - - COUNT( * ) END / - + 41 / - ( + CAST( NULL AS SIGNED ) ) / - 68, 40 * + 64 * 19 AS col1
----
NULL
48640

skipif mysql # not compatible
query II rowsort label-1189
SELECT + - CASE COUNT ( * ) WHEN 25 THEN NULL ELSE - - COUNT ( * ) END / - + 41 / - ( + CAST ( NULL AS INTEGER ) ) / - 68, 40 * + 64 * 19 AS col1
----
NULL
48640

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1190
SELECT - - 55 * - - 59 DIV + + CAST( NULL AS SIGNED ), - 99 + + COALESCE ( - 23, 94, + 3 ) DIV + + 81 AS col0
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-1190
SELECT - - 55 * - - 59 / + + CAST ( NULL AS INTEGER ), - 99 + + COALESCE ( - 23, 94, + 3 ) / + + 81 AS col0
----
NULL
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + SUM( DISTINCT + 70 ) + 51 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-1192
SELECT + SUM ( DISTINCT + 70 ) + 51 AS col0
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1193
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) * - + 96 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) * - + 96 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ( + 78 ) * + 74 * + MAX( 58 ) + - 29 + + - 53 AS col0
----
334694

skipif mysql # not compatible
query I rowsort label-1194
SELECT ( + 78 ) * + 74 * + MAX ( 58 ) + - 29 + + - 53 AS col0
----
334694

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT - 73 * 58 * + COUNT( * )
----
-4234

skipif mysql # not compatible
query I rowsort label-1195
SELECT - 73 * 58 * + COUNT ( * )
----
-4234

query II rowsort
SELECT ALL + 35 AS col2, + 20 AS col1
----
35
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT ALL 30 DIV + 49 + - + SUM( DISTINCT + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL 30 / + 49 + - + SUM ( DISTINCT + 79 )
----
-79

query I rowsort
SELECT + ( - 26 ) * - + 82 AS col2
----
2132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1199
SELECT 59 col2, - COALESCE ( + COUNT( * ), + COUNT( * ) * 88, - 29 ) + - 30 DIV 59 + - 17 + - 43 + 87 * + - 29 AS col1
----
59
-2584

skipif mysql # not compatible
query II rowsort label-1199
SELECT 59 col2, - COALESCE ( + COUNT ( * ), + COUNT ( * ) * 88, - 29 ) + - 30 / 59 + - 17 + - 43 + 87 * + - 29 AS col1
----
59
-2584

query II rowsort
SELECT + 32 AS col1, 85 AS col1
----
32
85

query I rowsort
SELECT ALL 37 + + - 31
----
6

query II rowsort
SELECT 67, 59 * + 30 - + 22 AS col1
----
67
1748

onlyif mysql # aggregate syntax: 
query II rowsort label-1203
SELECT ALL - 25, 83 * - COUNT( * ) * + - 20 AS col0
----
-25
1660

skipif mysql # not compatible
query II rowsort label-1203
SELECT ALL - 25, 83 * - COUNT ( * ) * + - 20 AS col0
----
-25
1660

query II rowsort
SELECT DISTINCT - 37 AS col2, 38 + - 88 + - 63 AS col1
----
-37
-113

query I rowsort
SELECT 89 * - + 58
----
-5162

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT DISTINCT 59, 56 * - COUNT( * ) * - 8 AS col0
----
59
448

skipif mysql # not compatible
query II rowsort label-1206
SELECT DISTINCT 59, 56 * - COUNT ( * ) * - 8 AS col0
----
59
448

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL 42 - - COUNT( * ) * + 35
----
77

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL 42 - - COUNT ( * ) * + 35
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1208
SELECT CAST( + CASE - ( - 63 ) WHEN - 6 - 42 THEN - 43 END AS SIGNED ) + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1208
SELECT CAST ( + CASE - ( - 63 ) WHEN - 6 - 42 THEN - 43 END AS INTEGER ) + + 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT + 27 DIV - 47 * 18
----
0

skipif mysql # not compatible
query I rowsort label-1209
SELECT + 27 / - 47 * 18
----
0

query I rowsort
SELECT - 36 + + 31 * 13 AS col0
----
367

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1212
SELECT ALL - 17 DIV 97 + - CAST( - 41 AS SIGNED ) - + COALESCE ( - - NULLIF ( - + COUNT( * ), + - 75 ), + 65 * + + 21 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - 17 / 97 + - CAST ( - 41 AS INTEGER ) - + COALESCE ( - - NULLIF ( - + COUNT ( * ), + - 75 ), + 65 * + + 21 ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT - 93 DIV + ( + - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-1213
SELECT - 93 / + ( + - 85 )
----
1

query II rowsort
SELECT - 77 AS col0, CASE 71 WHEN + - 63 THEN + 41 * - 63 + - 47 ELSE NULL END AS col1
----
-77
NULL

query II rowsort
SELECT DISTINCT 16 AS col1, 38 * + 67 + 93 AS col1
----
16
2639

query I rowsort
SELECT DISTINCT + - ( 82 ) * COALESCE ( + 11, 74 )
----
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL + MAX( DISTINCT - + 25 ) * - + 83 - + 57 + 76
----
2094

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL + MAX ( DISTINCT - + 25 ) * - + 83 - + 57 + 76
----
2094

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT + 43 * - + COALESCE ( + 35, 41 ) * 8 + CAST( + COUNT( * ) AS SIGNED ) - - 47 * + - 52 + - 47
----
-14530

skipif mysql # not compatible
query I rowsort label-1218
SELECT + 43 * - + COALESCE ( + 35, 41 ) * 8 + CAST ( + COUNT ( * ) AS INTEGER ) - - 47 * + - 52 + - 47
----
-14530

query I rowsort
SELECT ALL + 65 + + 41 - - 81 col0
----
187

onlyif mysql # aggregate syntax: 
query II rowsort label-1220
SELECT - 84, 73 / + - CASE + 14 WHEN - + 43 + - + COUNT( * ) + - ( + + 15 ) * - 98 THEN 8 - - 29 / + 13 + ( - 10 ) + + - ( + 13 ) * - - 24 * + ( + 37 ) * - 26 * - 82 * + 30 + - 59 - 98 WHEN + 74 * - + COALESCE ( + 98, 47 ) THEN + 55 END AS col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-1220
SELECT - 84, 73 / + - CASE + 14 WHEN - + 43 + - + COUNT ( * ) + - ( + + 15 ) * - 98 THEN 8 - - 29 / + 13 + ( - 10 ) + + - ( + 13 ) * - - 24 * + ( + 37 ) * - 26 * - 82 * + 30 + - 59 - 98 WHEN + 74 * - + COALESCE ( + 98, 47 ) THEN + 55 END AS col0
----
-84
NULL

query I rowsort
SELECT - 9 * - ( - + 13 )
----
-117

query I rowsort
SELECT 6 * - 15
----
-90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1224
SELECT ALL - 81 + 59 * - CAST( + CAST( + - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - 81 + 59 * - CAST ( + CAST ( + - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL - 8 + + 46 * - + 97 * + COUNT( * )
----
-4470

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - 8 + + 46 * - + 97 * + COUNT ( * )
----
-4470

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT - MAX( - NULLIF ( + 73, + 70 ) ) + 40 col2
----
113

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT - MAX ( - NULLIF ( + 73, + 70 ) ) + 40 col2
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT ALL COUNT( * ) + + 6 AS col2, - 0
----
7
0

skipif mysql # not compatible
query II rowsort label-1227
SELECT ALL COUNT ( * ) + + 6 AS col2, - 0
----
7
0

query I rowsort
SELECT DISTINCT 96 * + - 75 col2
----
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT 45 * COUNT( * ) + - 74 + + SUM( ( 70 ) ) * 36 * - 36 AS col1
----
-90749

skipif mysql # not compatible
query I rowsort label-1229
SELECT 45 * COUNT ( * ) + - 74 + + SUM ( ( 70 ) ) * 36 * - 36 AS col1
----
-90749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1230
SELECT + CAST( NULL AS SIGNED ) / 12 * MAX( 7 ) + + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT + CAST ( NULL AS INTEGER ) / 12 * MAX ( 7 ) + + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL + 9 + + COUNT( * ) + 46
----
56

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL + 9 + + COUNT ( * ) + 46
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1232
SELECT 82 + - 19 + - 63 / + 3 * + 36 * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT 82 + - 19 + - 63 / + 3 * + 36 * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT 89 * - + 65 * + SUM( DISTINCT 24 ) AS col0
----
-138840

skipif mysql # not compatible
query I rowsort label-1233
SELECT 89 * - + 65 * + SUM ( DISTINCT 24 ) AS col0
----
-138840

onlyif mysql # aggregate syntax: 
query II rowsort label-1234
SELECT COUNT( * ) * + 46, + MIN( ALL 70 ) AS col0
----
46
70

skipif mysql # not compatible
query II rowsort label-1234
SELECT COUNT ( * ) * + 46, + MIN ( ALL 70 ) AS col0
----
46
70

query I rowsort
SELECT ALL 95 * 86 * - + 0 * - + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT - 64 - - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT - 64 - - COUNT ( * )
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-1237
SELECT DISTINCT - 92 * + + 21, 38 DIV - 11 AS col1
----
-1932
-3

skipif mysql # not compatible
query II rowsort label-1237
SELECT DISTINCT - 92 * + + 21, 38 / - 11 AS col1
----
-1932
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT 17 + + MAX( 76 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1238
SELECT 17 + + MAX ( 76 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL 24 - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL 24 - - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1240
SELECT 24 * + COUNT( * ) AS col0, - 20
----
24
-20

skipif mysql # not compatible
query II rowsort label-1240
SELECT 24 * + COUNT ( * ) AS col0, - 20
----
24
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1241
SELECT 43 + 29 DIV - - CAST( - - 46 AS SIGNED ) * + ( - 21 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1241
SELECT 43 + 29 / - - CAST ( - - 46 AS INTEGER ) * + ( - 21 ) AS col1
----
43

query I rowsort
SELECT 36 * - 66 AS col2
----
-2376

onlyif mysql # aggregate syntax: 
query II rowsort label-1243
SELECT COUNT( DISTINCT + 19 ), 82 AS col1
----
1
82

skipif mysql # not compatible
query II rowsort label-1243
SELECT COUNT ( DISTINCT + 19 ), 82 AS col1
----
1
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1244
SELECT - - ( + + 31 ), 99 * 47 * - COALESCE ( - 35, - MIN( - - ( 60 ) ) + 40 ) AS col0
----
31
162855

skipif mysql # not compatible
query II rowsort label-1244
SELECT - - ( + + 31 ), 99 * 47 * - COALESCE ( - 35, - MIN ( - - ( 60 ) ) + 40 ) AS col0
----
31
162855

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT DISTINCT 79 * - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT 79 * - COUNT ( * )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1246
SELECT DISTINCT - COALESCE ( + + CASE 77 WHEN - + CAST( NULL AS DECIMAL ) THEN NULL WHEN - 37 * - 31 + - COUNT( * ) + + MAX( DISTINCT - ( + - 23 ) ) THEN NULL WHEN + 6 THEN NULL WHEN + 52 THEN - - 25 END, - 85 * - 40 + 27 * + - 89, + 89 * - + ( 56 ) )
----
-997

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - COALESCE ( + + CASE 77 WHEN - + CAST ( NULL AS REAL ) THEN NULL WHEN - 37 * - 31 + - COUNT ( * ) + + MAX ( DISTINCT - ( + - 23 ) ) THEN NULL WHEN + 6 THEN NULL WHEN + 52 THEN - - 25 END, - 85 * - 40 + 27 * + - 89, + 89 * - + ( 56 ) )
----
-997

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT - MAX ( ALL - - 68 )
----
-68

query I rowsort
SELECT ALL + 3 + NULLIF ( + 37, 32 ) col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1249
SELECT 74 DIV - - COUNT( * ) * - + COUNT( * ) + + 67
----
-7

skipif mysql # not compatible
query I rowsort label-1249
SELECT 74 / - - COUNT ( * ) * - + COUNT ( * ) + + 67
----
-7

query I rowsort
SELECT 61 + - 64
----
-3

query I rowsort
SELECT + COALESCE ( - - 60, 53 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT ALL + COUNT( ALL - - 53 ) + + 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL + COUNT ( ALL - - 53 ) + + 92 AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1253
SELECT + 16 + - CAST( NULL AS SIGNED ) * - 99 + - - COUNT( * ) * - 33 * + 27 * - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT + 16 + - CAST ( NULL AS INTEGER ) * - 99 + - - COUNT ( * ) * - 33 * + 27 * - + 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1254
SELECT + - 73 + 76 col1, - COUNT( * )
----
3
-1

skipif mysql # not compatible
query II rowsort label-1254
SELECT + - 73 + 76 col1, - COUNT ( * )
----
3
-1

query I rowsort
SELECT DISTINCT + - 8 col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT ALL - 97 * + 59 + CAST( + 90 AS SIGNED ) * + 7
----
-5093

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL - 97 * + 59 + CAST ( + 90 AS INTEGER ) * + 7
----
-5093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1257
SELECT NULLIF ( + 20, - ( + + 95 ) - + CASE 48 WHEN + 89 + + 49 * + - 11 THEN CAST( 70 AS SIGNED ) END / COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-1257
SELECT NULLIF ( + 20, - ( + + 95 ) - + CASE 48 WHEN + 89 + + 49 * + - 11 THEN CAST ( 70 AS INTEGER ) END / COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT + 47 DIV + + SUM( DISTINCT + - 56 ) * + 22 + + - 56
----
-56

skipif mysql # not compatible
query I rowsort label-1258
SELECT + 47 / + + SUM ( DISTINCT + - 56 ) * + 22 + + - 56
----
-56

query I rowsort
SELECT - 96 + 70
----
-26

query I rowsort
SELECT ALL 65 * + 15 - + - NULLIF ( + 48, - 72 )
----
1023

query I rowsort
SELECT + 8 * 78
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + CASE WHEN NOT COUNT( * ) <> + + 38 / - 34 THEN - 24 ELSE - 92 END AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1262
SELECT + CASE WHEN NOT COUNT ( * ) <> + + 38 / - 34 THEN - 24 ELSE - 92 END AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1263
SELECT + 88 col2, COALESCE ( - COUNT( * ), - 0 + - 9 - + 8 ) AS col1
----
88
-1

skipif mysql # not compatible
query II rowsort label-1263
SELECT + 88 col2, COALESCE ( - COUNT ( * ), - 0 + - 9 - + 8 ) AS col1
----
88
-1

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

skipif mysql # not compatible
query I rowsort label-1264
SELECT COALESCE ( + COUNT ( * ), - 33 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + ( + CASE + 35 WHEN 0 THEN 54 * + + 11 WHEN 56 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL + MIN( DISTINCT + 29 ) col2
----
29

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + MIN ( DISTINCT + 29 ) col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1267
SELECT COUNT( * ) AS col1, - 53 DIV - + 78
----
1
0

skipif mysql # not compatible
query II rowsort label-1267
SELECT COUNT ( * ) AS col1, - 53 / - + 78
----
1
0

query II rowsort
SELECT DISTINCT + 47, 24 AS col2
----
47
24

query I rowsort
SELECT - 30 * - 28 AS col1
----
840

onlyif mysql # DIV for integer division: 
query II rowsort label-1270
SELECT ALL + 62 AS col2, - 90 DIV 68 AS col1
----
62
-1

skipif mysql # not compatible
query II rowsort label-1270
SELECT ALL + 62 AS col2, - 90 / 68 AS col1
----
62
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1271
SELECT DISTINCT + COUNT( * ) DIV - + 53 DIV - + 5 AS col0, 90 - NULLIF ( - 49, + + 14 )
----
0
139

skipif mysql # not compatible
query II rowsort label-1271
SELECT DISTINCT + COUNT ( * ) / - + 53 / - + 5 AS col0, 90 - NULLIF ( - 49, + + 14 )
----
0
139

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

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

query I rowsort
SELECT ALL + ( - 65 ) * - 15 * + 10 + + 59 col0
----
9809

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT - 94 DIV + 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 94 / + 71 AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + - SUM( ALL 30 ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-1276
SELECT + - SUM ( ALL 30 ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT ALL - - 20 * - - COUNT( * ) * - - 59 * + 66
----
77880

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL - - 20 * - - COUNT ( * ) * - - 59 * + 66
----
77880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1278
SELECT - + CASE - 24 WHEN + + CASE 11 WHEN - 45 THEN - + 18 * - + 68 * + 56 WHEN 20 - 59 * - 80 DIV + CAST( - - 98 AS SIGNED ) * + - 14 + + 55 + - + CAST( - + 8 AS SIGNED ) + + COALESCE ( - + CAST( - 20 AS SIGNED ), + 50 * + + NULLIF ( - NULLIF ( 76, + 0 ), + 39 * - CAST( - 63 AS SIGNED ) ) + COUNT( * ), 4 ) THEN - 36 ELSE NULL END DIV - 96 * + MAX( ALL + - 69 ) + - 90 + - + 48 THEN NULL ELSE - + 33 - - COUNT( * ) END * MAX( + - 6 ) DIV + 43 + - 59 DIV + 30 + - 78 - + + 45
----
-128

skipif mysql # not compatible
query I rowsort label-1278
SELECT - + CASE - 24 WHEN + + CASE 11 WHEN - 45 THEN - + 18 * - + 68 * + 56 WHEN 20 - 59 * - 80 / + CAST ( - - 98 AS INTEGER ) * + - 14 + + 55 + - + CAST ( - + 8 AS INTEGER ) + + COALESCE ( - + CAST ( - 20 AS INTEGER ), + 50 * + + NULLIF ( - NULLIF ( 76, + 0 ), + 39 * - CAST ( - 63 AS INTEGER ) ) + COUNT ( * ), 4 ) THEN - 36 ELSE NULL END / - 96 * + MAX ( ALL + - 69 ) + - 90 + - + 48 THEN NULL ELSE - + 33 - - COUNT ( * ) END * MAX ( + - 6 ) / + 43 + - 59 / + 30 + - 78 - + + 45
----
-128

query I rowsort
SELECT ALL + 89 * + 94 * - 97 col0
----
-811502

query I rowsort
SELECT - ( - ( + 68 ) ) * 59 * + 46 * + + 70 + - 73 AS col0
----
12918567

query II rowsort
SELECT 95, 18 * 18 col1
----
95
324

query I rowsort
SELECT - 55 + + 81 - - 36 + 12 * 91 col1
----
1154

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT + NULLIF ( + 9, - COUNT( * ) + - CASE - COALESCE ( - 81, - 17 ) WHEN - 9 * - + 49 - - - 94 THEN + 96 + - 0 + + - NULLIF ( 10, 80 ) WHEN + - 67 * 56 THEN NULL END - - + 46 * 20 * - SUM( + - 7 ) + + NULLIF ( 11, 30 * ( 6 ) ) - - 40 )
----
9

skipif mysql # not compatible
query I rowsort label-1285
SELECT + NULLIF ( + 9, - COUNT ( * ) + - CASE - COALESCE ( - 81, - 17 ) WHEN - 9 * - + 49 - - - 94 THEN + 96 + - 0 + + - NULLIF ( 10, 80 ) WHEN + - 67 * 56 THEN NULL END - - + 46 * 20 * - SUM ( + - 7 ) + + NULLIF ( 11, 30 * ( 6 ) ) - - 40 )
----
9

query I rowsort
SELECT + + 62 + + - 88 * - 1
----
150

onlyif mysql # DIV for integer division: 
query II rowsort label-1287
SELECT + 8 col1, 44 * 74 DIV - - 34
----
8
95

skipif mysql # not compatible
query II rowsort label-1287
SELECT + 8 col1, 44 * 74 / - - 34
----
8
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT ALL 31 + - COUNT( * ) * + + 31 + 39 + + - 95 * 65 AS col2
----
-6136

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL 31 + - COUNT ( * ) * + + 31 + 39 + + - 95 * 65 AS col2
----
-6136

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT + 0 * - 28 + + 17 + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-1289
SELECT + 0 * - 28 + + 17 + COUNT ( * )
----
18

query I rowsort
SELECT ALL + 71 + - 82
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT ALL - 91 + + 19 + - MIN( DISTINCT - 84 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1291
SELECT ALL - 91 + + 19 + - MIN ( DISTINCT - 84 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT ALL 58 * 68 * COUNT( * )
----
3944

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL 58 * 68 * COUNT ( * )
----
3944

query I rowsort
SELECT ALL 97 * 83 AS col2
----
8051

query I rowsort
SELECT DISTINCT 67 - + 14
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT - CAST( + + 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-1295
SELECT - CAST ( + + 52 AS INTEGER )
----
-52

query I rowsort
SELECT + ( - 1 ) * + 56 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1297
SELECT CAST( COUNT( * ) AS SIGNED ) col0, MAX( DISTINCT + + 43 ) col1
----
1
43

skipif mysql # not compatible
query II rowsort label-1297
SELECT CAST ( COUNT ( * ) AS INTEGER ) col0, MAX ( DISTINCT + + 43 ) col1
----
1
43

query I rowsort
SELECT + 84 - - 71
----
155

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

skipif mysql # not compatible
query I rowsort label-1299
SELECT + CAST ( NULL AS REAL ) * - 22
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1300
SELECT ALL CASE CAST( NULL AS DECIMAL ) WHEN + 66 THEN 9 * - 46 END / - + 22 + - 71 - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL CASE CAST ( NULL AS REAL ) WHEN + 66 THEN 9 * - 46 END / - + 22 + - 71 - 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 66 AS col0
----
NULL

query I rowsort
SELECT - 89 * - 81 * + 77
----
555093

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT + 60 * + - 49 + + COUNT( * ) + + 8 * - 43
----
-3283

skipif mysql # not compatible
query I rowsort label-1303
SELECT + 60 * + - 49 + + COUNT ( * ) + + 8 * - 43
----
-3283

query I rowsort
SELECT - 7 - + ( - - 84 ) + + 1 * 89
----
-2

query II rowsort
SELECT + 18 * 52, 95 AS col0
----
936
95

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT ALL - 34 * + 94 + - 20 + + 31 * ( + CAST( NULL AS SIGNED ) ) * + 69 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL - 34 * + 94 + - 20 + + 31 * ( + CAST ( NULL AS INTEGER ) ) * + 69 * 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT - 47 + + 2 + + 0 DIV 35
----
-45

skipif mysql # not compatible
query I rowsort label-1309
SELECT - 47 + + 2 + + 0 / 35
----
-45

query I rowsort
SELECT DISTINCT + 60 * - 15 AS col1
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT DISTINCT 43 * + 29 - - 9 * ( + CAST( NULL AS SIGNED ) ) + + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT 43 * + 29 - - 9 * ( + CAST ( NULL AS INTEGER ) ) + + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT + - MAX( ALL + - ( - + 42 ) ) * + COUNT( * ) + + 35 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1312
SELECT + - MAX ( ALL + - ( - + 42 ) ) * + COUNT ( * ) + + 35 AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1313
SELECT ALL + ( + 13 ) DIV + 48 + - - 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + ( + 13 ) / + 48 + - - 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT - CASE - NULLIF ( 99, 6 ) WHEN 41 THEN NULL WHEN - + 50 THEN NULL WHEN 39 * 47 THEN - - 74 * - 54 + COUNT( * ) - - 55 + 82 ELSE + COUNT( * ) END col1, CASE COUNT( * ) WHEN 39 THEN - + MAX( 55 ) ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1314
SELECT - CASE - NULLIF ( 99, 6 ) WHEN 41 THEN NULL WHEN - + 50 THEN NULL WHEN 39 * 47 THEN - - 74 * - 54 + COUNT ( * ) - - 55 + 82 ELSE + COUNT ( * ) END col1, CASE COUNT ( * ) WHEN 39 THEN - + MAX ( 55 ) ELSE NULL END
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1315
SELECT - COUNT( * ) / + 28 + - CASE + - 95 WHEN CAST( - COUNT( * ) AS SIGNED ) + + + 13 * + + 62 THEN + - 67 * + 73 * + COUNT( * ) WHEN + COALESCE ( 66, - 45, + 78 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT - COUNT ( * ) / + 28 + - CASE + - 95 WHEN CAST ( - COUNT ( * ) AS INTEGER ) + + + 13 * + + 62 THEN + - 67 * + 73 * + COUNT ( * ) WHEN + COALESCE ( 66, - 45, + 78 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - + 8 + COUNT( * ) + + + 48
----
41

skipif mysql # not compatible
query I rowsort label-1316
SELECT - + 8 + COUNT ( * ) + + + 48
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL - 87 * - 96 + + 77 * + - COUNT( * ) AS col1
----
8275

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - 87 * - 96 + + 77 * + - COUNT ( * ) AS col1
----
8275

query I rowsort
SELECT - 75 * 23 AS col2
----
-1725

query I rowsort
SELECT DISTINCT - 84 * + + 4 col0
----
-336

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

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL COUNT ( DISTINCT 27 ) AS col1
----
1

query I rowsort
SELECT 14 - - 56 AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1323
SELECT DISTINCT + + 8 - + MAX( - 42 ) + + + 14 * - + COUNT( * ) DIV + 98 + - - COUNT( * ) AS col0, COUNT( * ) AS col1
----
51
1

skipif mysql # not compatible
query II rowsort label-1323
SELECT DISTINCT + + 8 - + MAX ( - 42 ) + + + 14 * - + COUNT ( * ) / + 98 + - - COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
51
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1324
SELECT + 78 + - ( + + 74 ) * + 2, - 77 - - COUNT( * ) AS col1
----
-70
-76

skipif mysql # not compatible
query II rowsort label-1324
SELECT + 78 + - ( + + 74 ) * + 2, - 77 - - COUNT ( * ) AS col1
----
-70
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT 83 * - + 72 * 1 * + COUNT( * ) AS col2
----
-5976

skipif mysql # not compatible
query I rowsort label-1325
SELECT 83 * - + 72 * 1 * + COUNT ( * ) AS col2
----
-5976

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT COUNT( + 75 ) + 84
----
85

skipif mysql # not compatible
query I rowsort label-1326
SELECT COUNT ( + 75 ) + 84
----
85

query I rowsort
SELECT 98 + 75 AS col2
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT - 0 DIV - ( - ( - 88 ) ) * - 79 + - - 7 + 50 col2
----
57

skipif mysql # not compatible
query I rowsort label-1328
SELECT - 0 / - ( - ( - 88 ) ) * - 79 + - - 7 + 50 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL ( + MIN( 27 ) ) * - 4 + - COUNT( * ) - 32 * + SUM( ALL + + 88 ) * - - 52 + + 39 * - NULLIF ( - MAX( - 28 ), + 76 )
----
-147633

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL ( + MIN ( 27 ) ) * - 4 + - COUNT ( * ) - 32 * + SUM ( ALL + + 88 ) * - - 52 + + 39 * - NULLIF ( - MAX ( - 28 ), + 76 )
----
-147633

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT COALESCE ( 33, + 3 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) ) * COUNT( * ) * 47
----
1551

skipif mysql # not compatible
query I rowsort label-1331
SELECT COALESCE ( 33, + 3 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) * 47
----
1551

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

skipif mysql # not compatible
query I rowsort label-1332
SELECT ( 94 ) * COUNT ( * )
----
94

query I rowsort
SELECT DISTINCT 58 * + 68
----
3944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1334
SELECT ( 3 ) * COALESCE ( 64 + + 75, CAST( COALESCE ( - 73, 65 ) AS SIGNED ) * - 95 - - COUNT( DISTINCT + 13 ), + 83 * - COUNT( DISTINCT - CASE - 16 WHEN - 26 / 19 THEN NULL ELSE + 57 / + NULLIF ( + 3, 59 ) END * 49 ) + 11 )
----
417

skipif mysql # not compatible
query I rowsort label-1334
SELECT ( 3 ) * COALESCE ( 64 + + 75, CAST ( COALESCE ( - 73, 65 ) AS INTEGER ) * - 95 - - COUNT ( DISTINCT + 13 ), + 83 * - COUNT ( DISTINCT - CASE - 16 WHEN - 26 / 19 THEN NULL ELSE + 57 / + NULLIF ( + 3, 59 ) END * 49 ) + 11 )
----
417

query I rowsort
SELECT 77 * - 49
----
-3773

query I rowsort
SELECT ALL 93 * + 86
----
7998

query I rowsort
SELECT ALL 57 * + 52 AS col2
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1338
SELECT 93 * CAST( 69 AS SIGNED )
----
6417

skipif mysql # not compatible
query I rowsort label-1338
SELECT 93 * CAST ( 69 AS INTEGER )
----
6417

query I rowsort
SELECT 99 + 18 col2
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1340
SELECT DISTINCT - 36 DIV + CASE COUNT( * ) WHEN SUM( DISTINCT - 62 ) - COUNT( * ) THEN 33 WHEN - 1 + 86 * - 13 THEN NULL ELSE - 36 * 47 - COUNT( * ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT - 36 / + CASE COUNT ( * ) WHEN SUM ( DISTINCT - 62 ) - COUNT ( * ) THEN 33 WHEN - 1 + 86 * - 13 THEN NULL ELSE - 36 * 47 - COUNT ( * ) END AS col1
----
0

query I rowsort
SELECT 83 * + 31 AS col0
----
2573

query I rowsort
SELECT 18 * + 75
----
1350

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT DISTINCT 8 DIV 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT 8 / 36 AS col0
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( 32, + ( - 39 ) ) * - 13
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT 8 * CASE + 38 WHEN - 42 THEN - COUNT( * ) * + 75 ELSE - 23 END col0
----
-184

skipif mysql # not compatible
query I rowsort label-1345
SELECT 8 * CASE + 38 WHEN - 42 THEN - COUNT ( * ) * + 75 ELSE - 23 END col0
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1346
SELECT 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT + 47 * COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + 47 * COUNT ( * ) col0
----
47

query I rowsort
SELECT 98 + 78
----
176

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

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL SUM ( ALL 36 )
----
36

query I rowsort
SELECT 8 * + 80 AS col2
----
640

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

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

query I rowsort
SELECT 23 - - 57
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1353
SELECT ALL - 35 * CAST( NULL AS SIGNED ) + - 26 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL - 35 * CAST ( NULL AS INTEGER ) + - 26 * - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT + 51 * COUNT( DISTINCT ( 53 ) ) + - 84 col1
----
-33

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT + 51 * COUNT ( DISTINCT ( 53 ) ) + - 84 col1
----
-33

query I rowsort
SELECT 58 * 91
----
5278

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - MIN( + 43 ) - + 37
----
-80

skipif mysql # not compatible
query I rowsort label-1356
SELECT - MIN ( + 43 ) - + 37
----
-80

query I rowsort
SELECT 5 * 93 AS col1
----
465

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL ( 27 ) * + 13 - + CASE 24 WHEN - COUNT( * ) * - 10 THEN 65 * - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL ( 27 ) * + 13 - + CASE 24 WHEN - COUNT ( * ) * - 10 THEN 65 * - 97 END
----
NULL

query I rowsort
SELECT + + 80 + 39 * 57 AS col0
----
2303

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

query I rowsort
SELECT DISTINCT + 58 - 15
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1362
SELECT ALL - CAST( + MAX( DISTINCT 41 ) AS SIGNED ) DIV COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - CAST ( + MAX ( DISTINCT 41 ) AS INTEGER ) / COUNT ( * ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL + COUNT( * ) - 18 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL + COUNT ( * ) - 18 AS col0
----
-17

query I rowsort
SELECT ALL - 45 - 67 * 90 col2
----
-6075

query I rowsort
SELECT + 33 + - 73 AS col0
----
-40

query I rowsort
SELECT + ( - 52 ) + + 53 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1367
SELECT ALL - COUNT( * ) * CASE + 88 WHEN + CAST( NULL AS DECIMAL ) + 51 THEN - COUNT( * ) ELSE - 63 + 74 DIV + NULLIF ( ( 37 ), ( - 48 ) ) END
----
61

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - COUNT ( * ) * CASE + 88 WHEN + CAST ( NULL AS REAL ) + 51 THEN - COUNT ( * ) ELSE - 63 + 74 / + NULLIF ( ( 37 ), ( - 48 ) ) END
----
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT + - 62 + + 4 * + SUM( - 70 ) AS col1
----
-342

skipif mysql # not compatible
query I rowsort label-1369
SELECT + - 62 + + 4 * + SUM ( - 70 ) AS col1
----
-342

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - SUM( DISTINCT ( NULLIF ( + 75, - 44 ) ) ) * COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - SUM ( DISTINCT ( NULLIF ( + 75, - 44 ) ) ) * COUNT ( * ) AS col1
----
-75

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

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

query I rowsort
SELECT + 38 + + 84 AS col0
----
122

query I rowsort
SELECT ALL 2 * + 36 * 41 AS col1
----
2952

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

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

query I rowsort
SELECT ALL - 87 + - + 62 col2
----
-149

query I rowsort
SELECT - 31 - - 39
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT ALL CASE + 88 WHEN 54 / SUM( ALL + 67 ) THEN NULL ELSE + 33 * 93 END + + 11 AS col0
----
3080

skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL CASE + 88 WHEN 54 / SUM ( ALL + 67 ) THEN NULL ELSE + 33 * 93 END + + 11 AS col0
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - 7 - 1 * ( CASE COUNT( * ) WHEN - 32 THEN 91 + COUNT( * ) * - 57 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT - 7 - 1 * ( CASE COUNT ( * ) WHEN - 32 THEN 91 + COUNT ( * ) * - 57 END ) AS col0
----
NULL

query I rowsort
SELECT - 84 + + - 71 + 92 AS col2
----
-63

query I rowsort
SELECT ALL - ( + 89 ) + 4 AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT - ( COALESCE ( - 69, 60 * + 66, - 22 * 73, - 50 + - COALESCE ( 99, + 83 DIV - 39 ) DIV - 21 ) )
----
69

skipif mysql # not compatible
query I rowsort label-1382
SELECT - ( COALESCE ( - 69, 60 * + 66, - 22 * 73, - 50 + - COALESCE ( 99, + 83 / - 39 ) / - 21 ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1383
SELECT - 71 + + - CAST( + 65 AS SIGNED ) + + 85 * 20 DIV - 91 AS col1
----
-154

skipif mysql # not compatible
query I rowsort label-1383
SELECT - 71 + + - CAST ( + 65 AS INTEGER ) + + 85 * 20 / - 91 AS col1
----
-154

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL COUNT( - + ( 22 ) ) + + 0
----
1

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL COUNT ( - + ( 22 ) ) + + 0
----
1

query I rowsort
SELECT - 24 + - 2
----
-26

query I rowsort
SELECT ALL - 25 + + - 59 AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1388
SELECT ALL 35 DIV COUNT( * ) * ( SUM( + 14 ) * SUM( 83 ) ) + 96
----
40766

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL 35 / COUNT ( * ) * ( SUM ( + 14 ) * SUM ( 83 ) ) + 96
----
40766

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT - COUNT( * ) * - + 85 col2
----
85

skipif mysql # not compatible
query I rowsort label-1389
SELECT - COUNT ( * ) * - + 85 col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL + MAX( DISTINCT 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL + MAX ( DISTINCT 44 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1391
SELECT ALL - CAST( 38 AS SIGNED ) * - 6 AS col0
----
228

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - CAST ( 38 AS INTEGER ) * - 6 AS col0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT ( - 74 ) DIV + 30 + 24 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1392
SELECT ( - 74 ) / + 30 + 24 AS col1
----
22

query I rowsort
SELECT - - ( + + 93 ) + - 13 * 64 AS col2
----
-739

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL COUNT( * ) * + 23 - 0 - 50 * COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL COUNT ( * ) * + 23 - 0 - 50 * COUNT ( * ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT + CASE - 69 WHEN 2 + COUNT( DISTINCT 93 ) THEN NULL ELSE + 93 * + 86 END AS col1
----
7998

skipif mysql # not compatible
query I rowsort label-1395
SELECT + CASE - 69 WHEN 2 + COUNT ( DISTINCT 93 ) THEN NULL ELSE + 93 * + 86 END AS col1
----
7998

query I rowsort
SELECT - - 10 * 76
----
760

query I rowsort
SELECT DISTINCT + - ( 19 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL 14 * + COALESCE ( COUNT( * ), 65 ) * + 6 - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL 14 * + COALESCE ( COUNT ( * ), 65 ) * + 6 - COUNT ( * ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT + + 52 DIV + 80 + + 13 + + 97 * - ( + ( + 20 ) * 53 ) AS col0
----
-102807

skipif mysql # not compatible
query I rowsort label-1399
SELECT + + 52 / + 80 + + 13 + + 97 * - ( + ( + 20 ) * 53 ) AS col0
----
-102807

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + 31 * + 95 * ( + 95 * - MAX( DISTINCT - 8 ) ) - 98 AS col0
----
2238102

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 31 * + 95 * ( + 95 * - MAX ( DISTINCT - 8 ) ) - 98 AS col0
----
2238102

query I rowsort
SELECT DISTINCT - 5 * - + 29 col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT - COUNT( * ) - - - 79 * 52 AS col1
----
-4109

skipif mysql # not compatible
query I rowsort label-1403
SELECT - COUNT ( * ) - - - 79 * 52 AS col1
----
-4109

query I rowsort
SELECT - + 83 * 97 AS col0
----
-8051

query I rowsort
SELECT + 10 * - - 59 + + 50
----
640

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT DISTINCT COALESCE ( + - 62, 61 * 60 + COUNT( DISTINCT 55 ) * 86 )
----
-62

skipif mysql # not compatible
query I rowsort label-1408
SELECT DISTINCT COALESCE ( + - 62, 61 * 60 + COUNT ( DISTINCT 55 ) * 86 )
----
-62

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

skipif mysql # not compatible
query I rowsort label-1409
SELECT - COUNT ( ALL - + 90 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT DISTINCT COUNT( * ) AS col1, + 43 * + CASE - 88 WHEN 84 * - AVG ( ALL - ( 72 ) ) + 24 THEN NULL WHEN 95 / 90 THEN + COUNT( * ) END * 76 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1410
SELECT DISTINCT COUNT ( * ) AS col1, + 43 * + CASE - 88 WHEN 84 * - AVG ( ALL - ( 72 ) ) + 24 THEN NULL WHEN 95 / 90 THEN + COUNT ( * ) END * 76 AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT + 14 DIV 24 * + 85 DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT + 14 / 24 * + 85 / - 69 AS col1
----
0

query I rowsort
SELECT - 2 * + + ( - 26 ) * - 17
----
-884

query I rowsort
SELECT ALL ( - 89 ) + - + 61 - - 65
----
-85

query I rowsort
SELECT ALL 48 * 89 AS col2
----
4272

query I rowsort
SELECT + 72 * - 67
----
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT COUNT( - 98 ) * 27 * 18 AS col2
----
486

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT COUNT ( - 98 ) * 27 * 18 AS col2
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL COUNT( + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL COUNT ( + 85 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL ( - MAX( DISTINCT + 18 ) ) + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL ( - MAX ( DISTINCT + 18 ) ) + COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT ALL COUNT( * ) * 40 DIV COUNT( ALL - 88 ) * 30
----
1200

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL COUNT ( * ) * 40 / COUNT ( ALL - 88 ) * 30
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT + 11 + - COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT + 11 + - COUNT ( * ) AS col1
----
10

query I rowsort
SELECT ALL - 57 + - 7
----
-64

query II rowsort
SELECT DISTINCT 50 AS col2, 90 AS col1
----
50
90

query I rowsort
SELECT + 12 + + - 46 + - 76 * 86
----
-6570

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

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL COUNT ( DISTINCT - - 44 ) AS col2
----
1

query I rowsort
SELECT ALL + + 54 * + 19
----
1026

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

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL MIN ( ALL 42 ) - + COUNT ( * )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT + 49 DIV + 69 + - + 33
----
-33

skipif mysql # not compatible
query I rowsort label-1427
SELECT + 49 / + 69 + - + 33
----
-33

query I rowsort
SELECT ALL - 9 * + 60 * 42 - - 53 * - 79
----
-26867

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

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

query I rowsort
SELECT ALL - NULLIF ( - - 99, + 82 / + 71 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + - 34 * + + COUNT( * ) + + + ( ( - 76 ) ) + + 72
----
-38

skipif mysql # not compatible
query I rowsort label-1431
SELECT + - 34 * + + COUNT ( * ) + + + ( ( - 76 ) ) + + 72
----
-38

query I rowsort
SELECT - 95 * + + 22 - + 58 AS col2
----
-2148

query I rowsort
SELECT 83 + 93
----
176

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

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - - MIN ( ALL - 47 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1435
SELECT ALL + + CAST( NULL AS DECIMAL ) + + - COUNT( * ) + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL + + CAST ( NULL AS REAL ) + + - COUNT ( * ) + - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - NULLIF ( + - 67, AVG ( DISTINCT - 79 ) * - 67 ) * COUNT( * ) + - ( + 94 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-1436
SELECT - NULLIF ( + - 67, AVG ( DISTINCT - 79 ) * - 67 ) * COUNT ( * ) + - ( + 94 ) AS col1
----
-27

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

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL - MAX ( ALL - 14 )
----
14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL - + CASE 54 WHEN + 55 THEN NULL ELSE + 85 * + COUNT( * ) END + 95
----
10

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - + CASE 54 WHEN + 55 THEN NULL ELSE + 85 * + COUNT ( * ) END + 95
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1441
SELECT CAST( 47 AS SIGNED ) + + COALESCE ( 57, + 84, + 5 * COUNT( * ) ) + + 46 AS col0
----
150

skipif mysql # not compatible
query I rowsort label-1441
SELECT CAST ( 47 AS INTEGER ) + + COALESCE ( 57, + 84, + 5 * COUNT ( * ) ) + + 46 AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT 98 + - COUNT( ALL + 82 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1442
SELECT 98 + - COUNT ( ALL + 82 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT COUNT( * ) * + 89 * - 7 AS col0
----
-623

skipif mysql # not compatible
query I rowsort label-1443
SELECT COUNT ( * ) * + 89 * - 7 AS col0
----
-623

query I rowsort
SELECT NULLIF ( - 60, + ( 92 ) ) + + 29 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT - 43 + + + COUNT( * ) * - ( + 80 ) col1
----
-123

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT - 43 + + + COUNT ( * ) * - ( + 80 ) col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT 33 + - COUNT( * ) col1
----
32

skipif mysql # not compatible
query I rowsort label-1446
SELECT 33 + - COUNT ( * ) col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1447
SELECT ALL - COUNT( * ) + + 35, - 45 col0
----
34
-45

skipif mysql # not compatible
query II rowsort label-1447
SELECT ALL - COUNT ( * ) + + 35, - 45 col0
----
34
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1448
SELECT NULLIF ( - 16, + + 90 / 39 * + 68 + MAX( ALL 72 ) * + CAST( NULL AS SIGNED ) ) + 11 * - 66
----
-742

skipif mysql # not compatible
query I rowsort label-1448
SELECT NULLIF ( - 16, + + 90 / 39 * + 68 + MAX ( ALL 72 ) * + CAST ( NULL AS INTEGER ) ) + 11 * - 66
----
-742

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT CAST ( + 70 AS REAL ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT 68 + - + 43 * - MAX( + 91 ) + 55 AS col2
----
4036

skipif mysql # not compatible
query I rowsort label-1450
SELECT 68 + - + 43 * - MAX ( + 91 ) + 55 AS col2
----
4036

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT CASE WHEN NOT ( - 48 ) NOT IN ( 72 + 50 / + 74 ) THEN 11 WHEN NOT 36 - COUNT( * ) NOT BETWEEN ( 38 + 95 * - ( 67 ) ) AND ( + COALESCE ( 26, 75, 14 - 12, - COUNT( * ) ) + 60 * - NULLIF ( - 73, - COUNT( * ) ) ) THEN NULL ELSE - 39 + 25 END + 51 * - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT CASE WHEN NOT ( - 48 ) NOT IN ( 72 + 50 / + 74 ) THEN 11 WHEN NOT 36 - COUNT ( * ) NOT BETWEEN ( 38 + 95 * - ( 67 ) ) AND ( + COALESCE ( 26, 75, 14 - 12, - COUNT ( * ) ) + 60 * - NULLIF ( - 73, - COUNT ( * ) ) ) THEN NULL ELSE - 39 + 25 END + 51 * - 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT COUNT( * ) + 2 col1
----
3

skipif mysql # not compatible
query I rowsort label-1452
SELECT COUNT ( * ) + 2 col1
----
3

query II rowsort
SELECT DISTINCT 94 * + 37 col0, - 99 AS col1
----
3478
-99

query I rowsort
SELECT 58 + + 51 * 63 + + 53 + ( 79 )
----
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL COALESCE ( + SUM( - 64 ), + 50 ) * 62
----
-3968

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL COALESCE ( + SUM ( - 64 ), + 50 ) * 62
----
-3968

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT + 43 * + 87 + + 97 + + 43 * - COUNT( * ) col0
----
3795

skipif mysql # not compatible
query I rowsort label-1456
SELECT + 43 * + 87 + + 97 + + 43 * - COUNT ( * ) col0
----
3795

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT - 4 * + + COUNT( * ) * 10
----
-40

skipif mysql # not compatible
query I rowsort label-1457
SELECT - 4 * + + COUNT ( * ) * 10
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1458
SELECT DISTINCT - CASE + 98 WHEN 26 * - 52 * - 31 + - 33 THEN + 62 * 35 WHEN + CAST( + 93 AS DECIMAL ) / - 84 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT - CASE + 98 WHEN 26 * - 52 * - 31 + - 33 THEN + 62 * 35 WHEN + CAST ( + 93 AS REAL ) / - 84 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT DISTINCT + + COUNT( * ) + + - 88 + 84 * - 65 AS col2
----
-5547

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT + + COUNT ( * ) + + - 88 + 84 * - 65 AS col2
----
-5547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1460
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - NULLIF ( + 59, COUNT( * ) * 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - NULLIF ( + 59, COUNT ( * ) * 25 )
----
NULL

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

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

query I rowsort
SELECT 98 * + 6 * + + 37 AS col1
----
21756

query I rowsort
SELECT ALL + 11 + - - 17 + + ( + + 48 )
----
76

query I rowsort
SELECT ( ( - + 95 ) ) + - - 57 + 83 * + 10 col0
----
792

query I rowsort
SELECT DISTINCT ( - 54 ) + - - 75 * - - 7
----
471

query I rowsort
SELECT ALL + 62 + - + 3
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT CAST( NULL AS SIGNED ) * - 74 + - 9 + - 94 + + COALESCE ( 54 + - 25 / 82, 71 + 58, + 98 * - 28 + 71 ) / 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT CAST ( NULL AS INTEGER ) * - 74 + - 9 + - 94 + + COALESCE ( 54 + - 25 / 82, 71 + 58, + 98 * - 28 + 71 ) / 68 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - + 5, - + 63 ) + + 96 + 66 AS col0
----
167

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1470
SELECT - 43 * + CASE WHEN NOT COUNT( * ) IN ( - + 1 * MIN( 3 ) ) THEN CAST( NULL AS SIGNED ) END + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT - 43 * + CASE WHEN NOT COUNT ( * ) IN ( - + 1 * MIN ( 3 ) ) THEN CAST ( NULL AS INTEGER ) END + 75
----
NULL

query II rowsort
SELECT ALL - 88 AS col0, + 14 * - 57
----
-88
-798

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT 78 + 1 + 46 + ( + 39 ) DIV 77 * 27 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT 78 + 1 + 46 + ( + 39 ) / 77 * 27 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT - 11 + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - 11 + COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT 36 - 9 - - COALESCE ( 38, - 48, 51 ) AS col1
----
65

query I rowsort
SELECT ALL + 39 * + 36 AS col0
----
1404

query I rowsort
SELECT ALL + 66 * - 96 AS col1
----
-6336

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

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

query I rowsort
SELECT DISTINCT + 57 * - 86 AS col0
----
-4902

onlyif mysql # aggregate syntax: 
query II rowsort label-1479
SELECT - 45, - 77 * NULLIF ( + 66, + CASE 99 WHEN + 13 / - 67 THEN - COUNT( * ) * - 25 END * - 42 ) AS col2
----
-45
-5082

skipif mysql # not compatible
query II rowsort label-1479
SELECT - 45, - 77 * NULLIF ( + 66, + CASE 99 WHEN + 13 / - 67 THEN - COUNT ( * ) * - 25 END * - 42 ) AS col2
----
-45
-5082

query I rowsort
SELECT ALL - 94 - + 85 * + 87
----
-7489

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT - 83 DIV + ( + 95 ) * + 81
----
0

skipif mysql # not compatible
query I rowsort label-1481
SELECT - 83 / + ( + 95 ) * + 81
----
0

query II rowsort
SELECT - 53 AS col1, 1 * - - 78
----
-53
78

query I rowsort
SELECT ALL - 40 * - + CASE WHEN NULL = - 1 THEN NULL ELSE 73 * - 56 END
----
-163520

onlyif mysql # DIV for integer division: 
query I rowsort label-1484
SELECT ALL 47 DIV - - 18 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL 47 / - - 18 AS col2
----
2

query I rowsort
SELECT ALL - 78 * + 1 AS col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT + - 73 DIV - 30 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1486
SELECT + - 73 / - 30 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL - - ( - + 76 ) / + + 78 + + - CASE - ( - 59 ) WHEN + 21 THEN NULL WHEN + 46 * - 95 THEN - 29 * 9 - SUM( DISTINCT 43 ) WHEN + 12 THEN - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL - - ( - + 76 ) / + + 78 + + - CASE - ( - 59 ) WHEN + 21 THEN NULL WHEN + 46 * - 95 THEN - 29 * 9 - SUM ( DISTINCT 43 ) WHEN + 12 THEN - 27 END
----
NULL

query I rowsort
SELECT - + 28 col1
----
-28

query I rowsort
SELECT - 88 + 49
----
-39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT DISTINCT + COUNT( * ) * - 10 + - + ( + 14 )
----
-24

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT + COUNT ( * ) * - 10 + - + ( + 14 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT + 36 * 24 + - COUNT( * ) - - - 95 + - - 80 - - COUNT( * ) AS col0
----
849

skipif mysql # not compatible
query I rowsort label-1492
SELECT + 36 * 24 + - COUNT ( * ) - - - 95 + - - 80 - - COUNT ( * ) AS col0
----
849

onlyif mysql # DIV for integer division: 
query I rowsort label-1493
SELECT DISTINCT 3 * 52 * - 41 + 71 DIV - - 94 AS col1
----
-6396

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT 3 * 52 * - 41 + 71 / - - 94 AS col1
----
-6396

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1495
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) + NULLIF ( 37, + + 25 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + NULLIF ( 37, + + 25 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT - CASE 62 WHEN - CAST( COUNT( * ) AS SIGNED ) + - AVG ( ( ( - 64 ) ) ) / - COUNT( * ) THEN 81 WHEN 12 * - 6 THEN + CASE - CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN 42 ELSE NULL END - - 19 * + 43 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT - CASE 62 WHEN - CAST ( COUNT ( * ) AS INTEGER ) + - AVG ( ( ( - 64 ) ) ) / - COUNT ( * ) THEN 81 WHEN 12 * - 6 THEN + CASE - CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN 42 ELSE NULL END - - 19 * + 43 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1497
SELECT + 57 / + - 29 + CAST( NULL AS SIGNED ) + + + COUNT( * ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT + 57 / + - 29 + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * 91
----
NULL

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

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

query I rowsort
SELECT - + 31 * + 21 + + 47
----
-604

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL + SUM( DISTINCT - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL + SUM ( DISTINCT - 49 )
----
-49

query I rowsort
SELECT ALL - 92 * + + 16 * + 71 - - + 74 AS col0
----
-104438

query I rowsort
SELECT + 31 + 96 AS col1
----
127

query II rowsort
SELECT ALL + 62, 60 AS col2
----
62
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1504
SELECT - 76 * + 12 + + COUNT( * ) DIV - 24 * - - 2 + ( MAX( + 29 ) ) AS col1
----
-883

skipif mysql # not compatible
query I rowsort label-1504
SELECT - 76 * + 12 + + COUNT ( * ) / - 24 * - - 2 + ( MAX ( + 29 ) ) AS col1
----
-883

query I rowsort
SELECT ALL + 70 * 13 * - 52
----
-47320

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT ALL + COUNT( * ) * - + 77 - 62
----
-139

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL + COUNT ( * ) * - + 77 - 62
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - 1 * - 66 * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-1508
SELECT - 1 * - 66 * - COUNT ( * )
----
-66

query I rowsort
SELECT + 13 + 73 * + 59 AS col0
----
4320

query II rowsort
SELECT + 72 * COALESCE ( 50, - - 6 ), + 24 + + 75 col2
----
3600
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1511
SELECT ALL CAST( + 61 AS SIGNED ) * - + NULLIF ( 3, + 17 ) + 28 + MAX( ALL 7 ) * 12 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL CAST ( + 61 AS INTEGER ) * - + NULLIF ( 3, + 17 ) + 28 + MAX ( ALL 7 ) * 12 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + MAX( ALL + - 25 ) + 57 * + 53
----
2996

skipif mysql # not compatible
query I rowsort label-1512
SELECT + MAX ( ALL + - 25 ) + 57 * + 53
----
2996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1513
SELECT - MIN( - 47 ) + + ( + 94 ) * + CAST( 4 AS SIGNED ) AS col1
----
423

skipif mysql # not compatible
query I rowsort label-1513
SELECT - MIN ( - 47 ) + + ( + 94 ) * + CAST ( 4 AS INTEGER ) AS col1
----
423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1514
SELECT + 65 * + + CASE + AVG ( ALL 74 ) WHEN + 57 * 88 * 76 + + NULLIF ( - SUM( DISTINCT - 97 ) + + 2, MIN( 30 ) ) THEN ( 21 ) * + 57 - - CAST( NULL AS SIGNED ) * - ( CAST( NULL AS SIGNED ) / - 81 ) WHEN - 7 THEN 10 + AVG ( - 43 ) WHEN COUNT( 12 ) + ( + 17 ) * 23 THEN + CAST( 70 AS SIGNED ) + + 17 / + 60 WHEN - 76 * + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT + 65 * + + CASE + AVG ( ALL 74 ) WHEN + 57 * 88 * 76 + + NULLIF ( - SUM ( DISTINCT - 97 ) + + 2, MIN ( 30 ) ) THEN ( 21 ) * + 57 - - CAST ( NULL AS INTEGER ) * - ( CAST ( NULL AS INTEGER ) / - 81 ) WHEN - 7 THEN 10 + AVG ( - 43 ) WHEN COUNT ( 12 ) + ( + 17 ) * 23 THEN + CAST ( 70 AS INTEGER ) + + 17 / + 60 WHEN - 76 * + 13 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL COUNT ( + - 2 ) AS col1
----
1

query I rowsort
SELECT DISTINCT ( - 80 ) AS col0
----
-80

query I rowsort
SELECT ALL - 8 * + 3
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT - 11 + - 47 - - NULLIF ( + 44, NULLIF ( COUNT( * ), COUNT( * ) ) + - 88 ) + - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1518
SELECT - 11 + - 47 - - NULLIF ( + 44, NULLIF ( COUNT ( * ), COUNT ( * ) ) + - 88 ) + - COUNT ( * ) AS col1
----
-15

query I rowsort
SELECT ALL NULLIF ( + - ( 3 ), + 28 + - + 34 * + 68 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1520
SELECT DISTINCT CASE + COALESCE ( 34, 84 / + ( + - 50 ), COALESCE ( - 65, - ( 66 ) ) * + 62 - 27 * 8 ) WHEN - CASE WHEN NOT ( - 76 ) NOT BETWEEN 56 AND ( + 40 / + 98 ) THEN NULL ELSE + 54 * 13 - + COUNT( * ) END THEN NULL WHEN - MIN( ALL - 14 ) + + ( - ( + 14 ) - + 75 ) THEN - 91 * CASE 47 WHEN 14 THEN NULL WHEN + 58 THEN 77 * NULLIF ( - 61, + 47 ) END WHEN - CAST( 46 AS SIGNED ) THEN COALESCE ( ( 69 ), NULLIF ( + 93, 4 + - 25 * 1 ) ) * - 66 + COUNT( * ) * - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT CASE + COALESCE ( 34, 84 / + ( + - 50 ), COALESCE ( - 65, - ( 66 ) ) * + 62 - 27 * 8 ) WHEN - CASE WHEN NOT ( - 76 ) NOT BETWEEN 56 AND ( + 40 / + 98 ) THEN NULL ELSE + 54 * 13 - + COUNT ( * ) END THEN NULL WHEN - MIN ( ALL - 14 ) + + ( - ( + 14 ) - + 75 ) THEN - 91 * CASE 47 WHEN 14 THEN NULL WHEN + 58 THEN 77 * NULLIF ( - 61, + 47 ) END WHEN - CAST ( 46 AS INTEGER ) THEN COALESCE ( ( 69 ), NULLIF ( + 93, 4 + - 25 * 1 ) ) * - 66 + COUNT ( * ) * - 65 END
----
NULL

query II rowsort
SELECT - 63 AS col0, 21 - + + 22 - - NULLIF ( - 7, - 94 * 28 + ( - ( 19 ) + 76 ) ) AS col0
----
-63
-8

query I rowsort
SELECT + 45 + + 12 - - 98 * - - 24 + - 86
----
2323

query I rowsort
SELECT - - 85 + - 19
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT DISTINCT NULLIF ( 76, + MIN( - 83 ) )
----
76

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT NULLIF ( 76, + MIN ( - 83 ) )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1525
SELECT ALL - - 93 * COALESCE ( - - 40, - - CAST( NULL AS SIGNED ) ) col0
----
3720

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - - 93 * COALESCE ( - - 40, - - CAST ( NULL AS INTEGER ) ) col0
----
3720

query I rowsort
SELECT - CASE - - 79 WHEN 7 THEN 9 WHEN 70 * - 30 THEN CASE WHEN NULL IS NULL THEN - 67 END ELSE NULL END * + 9 AS col0
----
NULL

query I rowsort
SELECT - + 10 + - 15 - 56
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT + COALESCE ( 39, - COUNT( * ) + + 77 )
----
39

skipif mysql # not compatible
query I rowsort label-1528
SELECT + COALESCE ( 39, - COUNT ( * ) + + 77 )
----
39

query I rowsort
SELECT DISTINCT - 88 + COALESCE ( ( - 45 ), 36 + + 35 * 2 ) * - 13 AS col1
----
497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT - + COUNT( * ) + 63 + - 35 * - 90 * 56 - CAST( NULL AS SIGNED ) * 26 / + NULLIF ( 54, 67 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT - + COUNT ( * ) + 63 + - 35 * - 90 * 56 - CAST ( NULL AS INTEGER ) * 26 / + NULLIF ( 54, 67 * COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1531
SELECT COALESCE ( - NULLIF ( + 58, 61 ), + 99 * 71 + COUNT( * ) DIV COUNT( * ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1531
SELECT COALESCE ( - NULLIF ( + 58, 61 ), + 99 * 71 + COUNT ( * ) / COUNT ( * ) ) AS col1
----
-58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT - - CAST( + 19 AS SIGNED ) + + 35 * 4 * + + 36 + - + 78
----
4981

skipif mysql # not compatible
query I rowsort label-1533
SELECT - - CAST ( + 19 AS INTEGER ) + + 35 * 4 * + + 36 + - + 78
----
4981

query I rowsort
SELECT ALL - 44 * - - 60
----
-2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT DISTINCT - COALESCE ( - ( CAST( - + 14 AS SIGNED ) ), + 82, + 12 + 29 ) + ( + 81 - + 46 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT - COALESCE ( - ( CAST ( - + 14 AS INTEGER ) ), + 82, + 12 + 29 ) + ( + 81 - + 46 ) AS col1
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-1536
SELECT ALL 74, 72 + + 44 DIV - 43 AS col1
----
74
71

skipif mysql # not compatible
query II rowsort label-1536
SELECT ALL 74, 72 + + 44 / - 43 AS col1
----
74
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL + 6 / 56 * CASE WHEN NOT COUNT( * ) IS NULL THEN NULL ELSE - - 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + 6 / 56 * CASE WHEN NOT COUNT ( * ) IS NULL THEN NULL ELSE - - 67 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT - 22 DIV + 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1538
SELECT - 22 / + 50 AS col1
----
0

query II rowsort
SELECT ALL - 95 + + 22 AS col1, 17
----
-73
17

onlyif mysql # DIV for integer division: 
query II rowsort label-1540
SELECT DISTINCT - 40 AS col2, 89 DIV 59
----
-40
1

skipif mysql # not compatible
query II rowsort label-1540
SELECT DISTINCT - 40 AS col2, 89 / 59
----
-40
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT - - 91 DIV - - COUNT( 32 ) + - - 89 DIV - SUM( DISTINCT + + 77 )
----
90

skipif mysql # not compatible
query I rowsort label-1541
SELECT - - 91 / - - COUNT ( 32 ) + - - 89 / - SUM ( DISTINCT + + 77 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT - 88 DIV MIN( DISTINCT - + 4 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1542
SELECT - 88 / MIN ( DISTINCT - + 4 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT + - 34 + - - MIN( DISTINCT + 47 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1543
SELECT + - 34 + - - MIN ( DISTINCT + 47 ) AS col0
----
13

query II rowsort
SELECT + + ( - 20 ) AS col0, - 51 * + 74 - + 67 * - 13
----
-20
-2903

query I rowsort
SELECT DISTINCT ( 77 ) * - - 37
----
2849

onlyif mysql # aggregate syntax: 
query II rowsort label-1546
SELECT ALL + 81 AS col0, + 11 + + COALESCE ( + ( - COUNT( * ) ), ( 72 ), - 69 ) AS col0
----
81
10

skipif mysql # not compatible
query II rowsort label-1546
SELECT ALL + 81 AS col0, + 11 + + COALESCE ( + ( - COUNT ( * ) ), ( 72 ), - 69 ) AS col0
----
81
10

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

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

query I rowsort
SELECT ALL + CASE - 65 WHEN - 44 THEN + + 75 END
----
NULL

query I rowsort
SELECT DISTINCT - ( 2 ) * 79
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1550
SELECT CAST( ( + 12 ) AS SIGNED ), 13 + COUNT( - - 74 ) AS col1
----
12
14

skipif mysql # not compatible
query II rowsort label-1550
SELECT CAST ( ( + 12 ) AS INTEGER ), 13 + COUNT ( - - 74 ) AS col1
----
12
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1551
SELECT CAST( - NULLIF ( - - NULLIF ( 92, + ( - 45 ) ), + COUNT( * ) ) AS SIGNED ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1551
SELECT CAST ( - NULLIF ( - - NULLIF ( 92, + ( - 45 ) ), + COUNT ( * ) ) AS INTEGER ) AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1552
SELECT DISTINCT 49 * + - CASE + - AVG ( 10 ) WHEN + + CAST( NULL AS SIGNED ) THEN - - 43 WHEN COUNT( * ) + - 91 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT 49 * + - CASE + - AVG ( 10 ) WHEN + + CAST ( NULL AS INTEGER ) THEN - - 43 WHEN COUNT ( * ) + - 91 THEN NULL ELSE NULL END col1
----
NULL

query I rowsort
SELECT - 72 - 2
----
-74

query I rowsort
SELECT + 78 * + 96
----
7488

query I rowsort
SELECT + 89 * 19
----
1691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1556
SELECT ( 17 ) * 54 + - 42 - 10 AS col0, 18 DIV NULLIF ( + 60, 70 + 65 * - CASE + 92 WHEN 7 THEN NULLIF ( - 52, 48 * + 50 ) WHEN COUNT( * ) * CAST( - 86 AS SIGNED ) - + 76 THEN NULL ELSE NULL END )
----
866
0

skipif mysql # not compatible
query II rowsort label-1556
SELECT ( 17 ) * 54 + - 42 - 10 AS col0, 18 / NULLIF ( + 60, 70 + 65 * - CASE + 92 WHEN 7 THEN NULLIF ( - 52, 48 * + 50 ) WHEN COUNT ( * ) * CAST ( - 86 AS INTEGER ) - + 76 THEN NULL ELSE NULL END )
----
866
0

query I rowsort
SELECT + 96 * - 76 + 13 * + 51 AS col0
----
-6633

onlyif mysql # DIV for integer division: 
query I rowsort label-1558
SELECT 52 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-1558
SELECT 52 / 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + 96 * COUNT( * ) * + 3 - + 97 * 70 AS col2
----
-6502

skipif mysql # not compatible
query I rowsort label-1559
SELECT + 96 * COUNT ( * ) * + 3 - + 97 * 70 AS col2
----
-6502

onlyif mysql # DIV for integer division: 
query I rowsort label-1560
SELECT DISTINCT 83 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT 83 / 45
----
1

query I rowsort
SELECT ALL + 76 * 81 AS col2
----
6156

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1562
SELECT CASE 95 WHEN CAST( NULL AS SIGNED ) THEN - - 74 END / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT CASE 95 WHEN CAST ( NULL AS INTEGER ) THEN - - 74 END / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 18 + 53 + - - 27 AS col2
----
98

query I rowsort
SELECT DISTINCT 35 * + 37 * 24 * - 7
----
-217560

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT 11 * 29 * - COUNT( * )
----
-319

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT 11 * 29 * - COUNT ( * )
----
-319

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

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL 70 * + - 1 * COUNT ( * ) AS col1
----
-70

query I rowsort
SELECT DISTINCT + + 3 + + 55
----
58

query I rowsort
SELECT ALL - + ( + 36 ) + + 11
----
-25

query I rowsort
SELECT DISTINCT 35 * + 52
----
1820

query I rowsort
SELECT DISTINCT - - 90 + - + 61 * + - 68
----
4238

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT DISTINCT - - COUNT( * ) + 13 + + 56 - NULLIF ( 57, - NULLIF ( ( + 4 ), - 30 * + 51 ) ) * 7
----
-329

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT - - COUNT ( * ) + 13 + + 56 - NULLIF ( 57, - NULLIF ( ( + 4 ), - 30 * + 51 ) ) * 7
----
-329

query I rowsort
SELECT 83 + + 99
----
182

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

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

query I rowsort
SELECT + 73 + - - 1 * + + 0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL + + 73 - + MIN( - 74 ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + + 73 - + MIN ( - 74 ) AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT 6 * + + 49 * NULLIF ( - CASE + - 14 WHEN + + ( - 55 ) THEN COUNT( ALL 48 ) WHEN 13 + + MIN( - 38 ) THEN NULL ELSE - 31 END, + 56 ) AS col2
----
9114

skipif mysql # not compatible
query I rowsort label-1576
SELECT 6 * + + 49 * NULLIF ( - CASE + - 14 WHEN + + ( - 55 ) THEN COUNT ( ALL 48 ) WHEN 13 + + MIN ( - 38 ) THEN NULL ELSE - 31 END, + 56 ) AS col2
----
9114

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL SUM( DISTINCT - ( ( + - ( - + 51 ) ) ) ) * + 77 + + 20 * - 64 AS col2
----
-5207

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL SUM ( DISTINCT - ( ( + - ( - + 51 ) ) ) ) * + 77 + + 20 * - 64 AS col2
----
-5207

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT 3 * - 10 + - 5 + - COUNT( * ) + - ( + - 71 ) + + 11 + 41
----
87

skipif mysql # not compatible
query I rowsort label-1578
SELECT 3 * - 10 + - 5 + - COUNT ( * ) + - ( + - 71 ) + + 11 + 41
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL + - 81 - SUM( DISTINCT 63 ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL + - 81 - SUM ( DISTINCT 63 ) AS col2
----
-144

query I rowsort
SELECT 43 * 22 AS col0
----
946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT 46 + CAST( + 11 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1581
SELECT 46 + CAST ( + 11 AS INTEGER ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT DISTINCT - CASE COUNT( * ) WHEN - 63 THEN + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT - CASE COUNT ( * ) WHEN - 63 THEN + 0 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1583
SELECT ALL - 88, + 41 * 51 DIV + + ( - 63 ) AS col1
----
-88
-33

skipif mysql # not compatible
query II rowsort label-1583
SELECT ALL - 88, + 41 * 51 / + + ( - 63 ) AS col1
----
-88
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT - ( + + 49 ) * ( - + 19 ) * - + 86 + + CASE CASE WHEN NOT ( NULL ) IS NOT NULL THEN + 66 END WHEN COUNT( * ) / NULLIF ( 60, COALESCE ( + CAST( NULL AS SIGNED ), - 96 * 35 + - 38 * + 82, + 19 ) ) THEN ( 89 ) / + 44 + 1 * + 88 WHEN - 7 + - 99 * - 82 THEN - 31 * + 82 - - NULLIF ( ( - 91 ), 88 / + ( - ( 40 ) / - COUNT( * ) ) + + 55 * + 21 ) / - 74 WHEN - COALESCE ( 70, + 65 * + 65, + COUNT( * ) ) * CASE - 93 * 81 WHEN + SUM( ALL 7 ) THEN 57 WHEN 86 - - CAST( + 66 AS SIGNED ) THEN NULL END THEN 76 + + 34 ELSE 5 * 19 + CASE 35 WHEN - ( + 14 ) - ( - COUNT( * ) + + 80 / 52 ) * - 18 THEN + COUNT( * ) * 36 - 30 WHEN - 47 THEN 17 END END + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT - ( + + 49 ) * ( - + 19 ) * - + 86 + + CASE CASE WHEN NOT ( NULL ) IS NOT NULL THEN + 66 END WHEN COUNT ( * ) / NULLIF ( 60, COALESCE ( + CAST ( NULL AS INTEGER ), - 96 * 35 + - 38 * + 82, + 19 ) ) THEN ( 89 ) / + 44 + 1 * + 88 WHEN - 7 + - 99 * - 82 THEN - 31 * + 82 - - NULLIF ( ( - 91 ), 88 / + ( - ( 40 ) / - COUNT ( * ) ) + + 55 * + 21 ) / - 74 WHEN - COALESCE ( 70, + 65 * + 65, + COUNT ( * ) ) * CASE - 93 * 81 WHEN + SUM ( ALL 7 ) THEN 57 WHEN 86 - - CAST ( + 66 AS INTEGER ) THEN NULL END THEN 76 + + 34 ELSE 5 * 19 + CASE 35 WHEN - ( + 14 ) - ( - COUNT ( * ) + + 80 / 52 ) * - 18 THEN + COUNT ( * ) * 36 - 30 WHEN - 47 THEN 17 END END + + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT SUM( - - 34 ) - - 9
----
43

skipif mysql # not compatible
query I rowsort label-1585
SELECT SUM ( - - 34 ) - - 9
----
43

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT 16 DIV - + 77 + - + 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1587
SELECT 16 / - + 77 + - + 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT COUNT( DISTINCT - 48 ) * + 27 - - 56 + 41 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-1588
SELECT COUNT ( DISTINCT - 48 ) * + 27 - - 56 + 41 AS col0
----
124

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

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

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

skipif mysql # not compatible
query I rowsort label-1590
SELECT + 92 * + CAST ( NULL AS INTEGER ) + 27
----
NULL

query I rowsort
SELECT ALL 36 * - 50
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT 95 * COALESCE ( 1, + NULLIF ( + + 96, - - 71 ) ) * - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT 95 * COALESCE ( 1, + NULLIF ( + + 96, - - 71 ) ) * - - COUNT ( * )
----
95

query II rowsort
SELECT 61 + 83 + + 72 AS col0, - 48 + - + 33 + - 33 * - + 24 AS col0
----
216
711

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1594
SELECT ALL 30 * COALESCE ( 82, 38, SUM( 70 ) ), + 81 DIV + COALESCE ( COUNT( * ), - 33 ) - 3 * 97 AS col0
----
2460
-210

skipif mysql # not compatible
query II rowsort label-1594
SELECT ALL 30 * COALESCE ( 82, 38, SUM ( 70 ) ), + 81 / + COALESCE ( COUNT ( * ), - 33 ) - 3 * 97 AS col0
----
2460
-210

query I rowsort
SELECT 68 * 99
----
6732

query I rowsort
SELECT DISTINCT 65 + + + 35 - - 78
----
178

query II rowsort
SELECT 30 AS col2, + ( - 51 ) col1
----
30
-51

query I rowsort
SELECT ALL 94 + 29 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT 58 + - + MIN( ALL - + 38 )
----
96

skipif mysql # not compatible
query I rowsort label-1599
SELECT 58 + - + MIN ( ALL - + 38 )
----
96

query II rowsort
SELECT ALL - 32 AS col2, 9
----
-32
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL 88 + 48 + + 50 + COUNT( * ) - 81 * 94 + 65 * + 85
----
-1902

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL 88 + 48 + + 50 + COUNT ( * ) - 81 * 94 + 65 * + 85
----
-1902

query I rowsort
SELECT ALL 80 + 81 AS col1
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT MIN( DISTINCT + - 71 ) + - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-1604
SELECT MIN ( DISTINCT + - 71 ) + - COUNT ( * ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT DISTINCT + ( + 19 ) DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT + ( + 19 ) / - - 88
----
0

query I rowsort
SELECT DISTINCT + 61 + - 42 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT 42 * + - ( COUNT( * ) ) DIV + 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT 42 * + - ( COUNT ( * ) ) / + 59 AS col1
----
0

query I rowsort
SELECT ALL 7 * - NULLIF ( + 95, - 2 * + 59 + - 45 + + - 92 )
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT SUM( 62 ) + 97 * + - 16
----
-1490

skipif mysql # not compatible
query I rowsort label-1609
SELECT SUM ( 62 ) + 97 * + - 16
----
-1490

query I rowsort
SELECT ALL + 28 + + 84
----
112

query I rowsort
SELECT ALL - 47 - - 47
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1612
SELECT + COUNT( * ) * - MIN( + + 73 ) + 86 col0, + 69 - 55 + - + 11 + ( SUM( DISTINCT CAST( + ( + 27 ) AS SIGNED ) ) ) AS col1
----
13
30

skipif mysql # not compatible
query II rowsort label-1612
SELECT + COUNT ( * ) * - MIN ( + + 73 ) + 86 col0, + 69 - 55 + - + 11 + ( SUM ( DISTINCT CAST ( + ( + 27 ) AS INTEGER ) ) ) AS col1
----
13
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL - NULLIF ( COALESCE ( + + 62, 52 + NULLIF ( + + 72, COUNT( + 83 ) * - COUNT( * ) - + NULLIF ( 45 + - 72 * 18, 40 ) * - 39 ) ), + COUNT( * ) ) * - 99 AS col0
----
6138

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - NULLIF ( COALESCE ( + + 62, 52 + NULLIF ( + + 72, COUNT ( + 83 ) * - COUNT ( * ) - + NULLIF ( 45 + - 72 * 18, 40 ) * - 39 ) ), + COUNT ( * ) ) * - 99 AS col0
----
6138

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT DISTINCT 42 AS col2, MAX( + 23 ) AS col0
----
42
23

skipif mysql # not compatible
query II rowsort label-1614
SELECT DISTINCT 42 AS col2, MAX ( + 23 ) AS col0
----
42
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT ALL CASE - 47 WHEN 14 THEN - - 62 END - + COUNT( * ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL CASE - 47 WHEN 14 THEN - - 62 END - + COUNT ( * ) * - 48
----
NULL

query I rowsort
SELECT 88 + 14 AS col2
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT - 79 DIV - 51
----
1

skipif mysql # not compatible
query I rowsort label-1617
SELECT - 79 / - 51
----
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1620
SELECT NULLIF ( + - COUNT( * ), + 49 ) DIV - MIN( - 96 ) + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-1620
SELECT NULLIF ( + - COUNT ( * ), + 49 ) / - MIN ( - 96 ) + - 37
----
-37

query I rowsort
SELECT ALL + 12 * + 28 AS col1
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT - ( + + ( + NULLIF ( + 59, SUM( DISTINCT CASE ( - - CASE - - 65 WHEN 70 THEN + 48 END ) WHEN - 7 THEN + 68 END ) ) ) ) * 30
----
-1770

skipif mysql # not compatible
query I rowsort label-1622
SELECT - ( + + ( + NULLIF ( + 59, SUM ( DISTINCT CASE ( - - CASE - - 65 WHEN 70 THEN + 48 END ) WHEN - 7 THEN + 68 END ) ) ) ) * 30
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT 85 * - CASE - 1 WHEN - 80 + COUNT( DISTINCT - 87 ) * + 30 THEN - 1 WHEN - 55 + COUNT( * ) THEN NULL ELSE NULL END + + 88 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1623
SELECT 85 * - CASE - 1 WHEN - 80 + COUNT ( DISTINCT - 87 ) * + 30 THEN - 1 WHEN - 55 + COUNT ( * ) THEN NULL ELSE NULL END + + 88 * 43
----
NULL

query I rowsort
SELECT DISTINCT + 94 * 84 * 43
----
339528

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL 69 * 4 + + COUNT( * )
----
277

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL 69 * 4 + + COUNT ( * )
----
277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT DISTINCT + ( - 45 ) * - 3 - CAST( NULL AS SIGNED ) + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT + ( - 45 ) * - 3 - CAST ( NULL AS INTEGER ) + 12 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT + 88 DIV - 88 + - 44
----
-45

skipif mysql # not compatible
query I rowsort label-1627
SELECT + 88 / - 88 + - 44
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL 69 * - MAX( DISTINCT 75 ) * + + 81 + - 45 * - 72 * + 4 * - - 48 * - 29 + - 26 * - 87 AS col1
----
-18457233

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL 69 * - MAX ( DISTINCT 75 ) * + + 81 + - 45 * - 72 * + 4 * - - 48 * - 29 + - 26 * - 87 AS col1
----
-18457233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1629
SELECT DISTINCT + COALESCE ( CAST( - 66 AS SIGNED ), - 51 * 6 * - - 84 + + 32 + - + ( - COALESCE ( 40, CASE + COUNT( * ) WHEN 86 THEN + COUNT( * ) WHEN + COUNT( ( 0 ) ) THEN NULL END, 44 + - 68 ) ) + 47 * 8 )
----
-66

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + COALESCE ( CAST ( - 66 AS INTEGER ), - 51 * 6 * - - 84 + + 32 + - + ( - COALESCE ( 40, CASE + COUNT ( * ) WHEN 86 THEN + COUNT ( * ) WHEN + COUNT ( ( 0 ) ) THEN NULL END, 44 + - 68 ) ) + 47 * 8 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT DISTINCT 19 * 64 + + 68 - + 3 + + COALESCE ( - 61, + 18 + + 11 DIV - 9 - - 93 ) * 93 AS col1
----
-4392

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT 19 * 64 + + 68 - + 3 + + COALESCE ( - 61, + 18 + + 11 / - 9 - - 93 ) * 93 AS col1
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL + ( - - COALESCE ( - + COALESCE ( - 16, - 17 ), SUM( ALL + 80 ) ) )
----
16

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL + ( - - COALESCE ( - + COALESCE ( - 16, - 17 ), SUM ( ALL + 80 ) ) )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1632
SELECT - NULLIF ( - 53, - - 21 + + 15 ) DIV + COUNT( * ) + COALESCE ( - 92, - + 55 * + - CASE - SUM( ALL 96 ) WHEN - 36 THEN - 99 * - 13 END + ( - 99 + - COUNT( * ) ) ) DIV 38
----
51

skipif mysql # not compatible
query I rowsort label-1632
SELECT - NULLIF ( - 53, - - 21 + + 15 ) / + COUNT ( * ) + COALESCE ( - 92, - + 55 * + - CASE - SUM ( ALL 96 ) WHEN - 36 THEN - 99 * - 13 END + ( - 99 + - COUNT ( * ) ) ) / 38
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT DISTINCT 87 * COALESCE ( - 74, + - 44, + ( + COALESCE ( + 88, - + 53, + - CAST( + 42 AS SIGNED ) ) ) * - NULLIF ( - 27 + + COALESCE ( 1 + - 58, + 79 ), 88 - 36 ), - 77 ) + - CASE ( - 47 ) WHEN - 92 THEN NULL WHEN 31 THEN NULLIF ( 20, 53 * + 3 ) + NULLIF ( + ( 6 ) + 42, 2 + 86 ) END / 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT 87 * COALESCE ( - 74, + - 44, + ( + COALESCE ( + 88, - + 53, + - CAST ( + 42 AS INTEGER ) ) ) * - NULLIF ( - 27 + + COALESCE ( 1 + - 58, + 79 ), 88 - 36 ), - 77 ) + - CASE ( - 47 ) WHEN - 92 THEN NULL WHEN 31 THEN NULLIF ( 20, 53 * + 3 ) + NULLIF ( + ( 6 ) + 42, 2 + 86 ) END / 58 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 56 * + - 95 * - + 0 + 61 AS col1
----
61

onlyif mysql # DIV for integer division: 
query II rowsort label-1635
SELECT ALL - 50 DIV + 90 AS col0, - 66 AS col2
----
0
-66

skipif mysql # not compatible
query II rowsort label-1635
SELECT ALL - 50 / + 90 AS col0, - 66 AS col2
----
0
-66

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

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

query I rowsort
SELECT ALL - 25 * + ( - 9 ) * + + 19 * - - 64 + - ( 85 ) + + 90 AS col1
----
273605

query I rowsort
SELECT ALL + 77 * + + ( + 30 ) AS col2
----
2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1639
SELECT - + COALESCE ( + 1, - 59 ) * + - SUM( + 34 ) + + ( + - ( ( + 2 ) ) ) DIV + 70 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1639
SELECT - + COALESCE ( + 1, - 59 ) * + - SUM ( + 34 ) + + ( + - ( ( + 2 ) ) ) / + 70 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT 57 * + 74 * - 84 + 97 * - 65 + - CASE 5 WHEN + 46 * + 60 / - COUNT( * ) + - COUNT( ALL + 94 ) THEN NULL WHEN 95 - - 99 THEN NULL ELSE 90 END * - 86 AS col0
----
-352877

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT 57 * + 74 * - 84 + 97 * - 65 + - CASE 5 WHEN + 46 * + 60 / - COUNT ( * ) + - COUNT ( ALL + 94 ) THEN NULL WHEN 95 - - 99 THEN NULL ELSE 90 END * - 86 AS col0
----
-352877

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT + ( - SUM( DISTINCT + 24 ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1641
SELECT + ( - SUM ( DISTINCT + 24 ) ) AS col1
----
-24

query I rowsort
SELECT ALL - 57 - - 90 * 21 + + - 25 * + - 56 AS col1
----
3233

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT ALL + 99 * - 85 AS col2, - COUNT( * ) col2
----
-8415
-1

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL + 99 * - 85 AS col2, - COUNT ( * ) col2
----
-8415
-1

query I rowsort
SELECT ALL ( - 56 ) - 26
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT ALL - COALESCE ( - COUNT( * ), 9 DIV - + MIN( DISTINCT 89 ) * + 75 + 83 + + ( + COALESCE ( COUNT( * ), + COUNT( * ) ) ) * + 7 ) - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL - COALESCE ( - COUNT ( * ), 9 / - + MIN ( DISTINCT 89 ) * + 75 + 83 + + ( + COALESCE ( COUNT ( * ), + COUNT ( * ) ) ) * + 7 ) - + 7
----
-6

query I rowsort
SELECT + + 36 - 19 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT + CASE + 23 WHEN - 89 THEN 2 ELSE 44 DIV - 56 * + - 28 * - - 59 - - 13 + + 58 * - 0 * + 89 END * 19 AS col0
----
247

skipif mysql # not compatible
query I rowsort label-1647
SELECT + CASE + 23 WHEN - 89 THEN 2 ELSE 44 / - 56 * + - 28 * - - 59 - - 13 + + 58 * - 0 * + 89 END * 19 AS col0
----
247

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT ALL - 66 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL - 66 / - 81
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1650
SELECT DISTINCT - ( + + 66 ) DIV - + 12 col0
----
5

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - ( + + 66 ) / - + 12 col0
----
5

query I rowsort
SELECT + - 11 * - 71 AS col0
----
781

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT - COUNT( * ) + - 19 + - - 41 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1652
SELECT - COUNT ( * ) + - 19 + - - 41 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + 57 + - 6 + - - 18 + + MIN( 82 ) * + - 90 AS col0
----
-7311

skipif mysql # not compatible
query I rowsort label-1653
SELECT + 57 + - 6 + - - 18 + + MIN ( 82 ) * + - 90 AS col0
----
-7311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT + 90 * CAST( 49 AS SIGNED ) AS col2
----
4410

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 90 * CAST ( 49 AS INTEGER ) AS col2
----
4410

query I rowsort
SELECT + 55 * 10
----
550

query I rowsort
SELECT - NULLIF ( - ( + 90 ), - - 55 ) AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT - 72 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT - 72 / 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT + COUNT( * ) + + 85 * + 83 + - 24 AS col0
----
7032

skipif mysql # not compatible
query I rowsort label-1658
SELECT + COUNT ( * ) + + 85 * + 83 + - 24 AS col0
----
7032

query I rowsort
SELECT 17 * + + 89 + - - 37
----
1550

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1660
SELECT ALL CAST( 90 AS SIGNED ) DIV + 40 + 67
----
69

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL CAST ( 90 AS INTEGER ) / + 40 + 67
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1661
SELECT ALL 96 DIV + 42 + - + 6 + - - 69 * - + 95 AS col1, + NULLIF ( + - 3, + SUM( ALL 10 ) DIV - COUNT( * ) ) * 57
----
-6559
-171

skipif mysql # not compatible
query II rowsort label-1661
SELECT ALL 96 / + 42 + - + 6 + - - 69 * - + 95 AS col1, + NULLIF ( + - 3, + SUM ( ALL 10 ) / - COUNT ( * ) ) * 57
----
-6559
-171

query II rowsort
SELECT DISTINCT + 10 AS col1, + 41
----
10
41

query I rowsort
SELECT ALL 34 / - 44 + CASE WHEN NOT 84 IS NOT NULL THEN + 17 END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT + COUNT( * ) * - - 71 + - 59 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1665
SELECT + COUNT ( * ) * - - 71 + - 59 AS col0
----
12

query I rowsort
SELECT DISTINCT ( + 83 ) * - - 90 + - 15 AS col2
----
7455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1667
SELECT ALL 46 * - NULLIF ( + - ( - - 33 ), - COUNT( * ) + - 56 * + 76 ) * + CAST( NULL AS SIGNED ) + - 55 * + MIN( 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 46 * - NULLIF ( + - ( - - 33 ), - COUNT ( * ) + - 56 * + 76 ) * + CAST ( NULL AS INTEGER ) + - 55 * + MIN ( 54 )
----
NULL

query I rowsort
SELECT + 29 * + 34 AS col2
----
986

query I rowsort
SELECT ALL - 45 * - 56 AS col2
----
2520

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT DISTINCT + 70 AS col2, COUNT( * ) * - NULLIF ( + 6, + 71 ) + + + NULLIF ( - + 73, - - COUNT( * ) + 58 ) col2
----
70
-79

skipif mysql # not compatible
query II rowsort label-1670
SELECT DISTINCT + 70 AS col2, COUNT ( * ) * - NULLIF ( + 6, + 71 ) + + + NULLIF ( - + 73, - - COUNT ( * ) + 58 ) col2
----
70
-79

query I rowsort
SELECT - 75 * 31 * NULLIF ( 21, - 89 ) * + 92 + + - 87
----
-4491987

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL - 68 * COUNT( * ) - + 37 * + + 71 AS col0
----
-2695

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL - 68 * COUNT ( * ) - + 37 * + + 71 AS col0
----
-2695

query I rowsort
SELECT - 59 * + 74
----
-4366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT NULLIF ( - + 86, ( - 69 ) ) * + 91 * - - 2 + + SUM( DISTINCT - + CAST( + 30 AS SIGNED ) ) + + 20 + 11 * - 85 AS col2
----
-16597

skipif mysql # not compatible
query I rowsort label-1674
SELECT NULLIF ( - + 86, ( - 69 ) ) * + 91 * - - 2 + + SUM ( DISTINCT - + CAST ( + 30 AS INTEGER ) ) + + 20 + 11 * - 85 AS col2
----
-16597

query I rowsort
SELECT + + 31 + + + 69
----
100

query II rowsort
SELECT - 37 * + - 79 - + - 7, - 18 AS col1
----
2930
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-1677
SELECT DISTINCT + - 68 * 36 - + 12, 58 DIV - 94 AS col0
----
-2460
0

skipif mysql # not compatible
query II rowsort label-1677
SELECT DISTINCT + - 68 * 36 - + 12, 58 / - 94 AS col0
----
-2460
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT - - 56 + + 9 + + 67 + 99 * - + 52 AS col1, 87 / + CASE - - MAX( 12 ) WHEN - - MAX( + 33 ) + + 0 THEN ( ( 82 ) ) END AS col1
----
-5016
NULL

skipif mysql # not compatible
query II rowsort label-1678
SELECT - - 56 + + 9 + + 67 + 99 * - + 52 AS col1, 87 / + CASE - - MAX ( 12 ) WHEN - - MAX ( + 33 ) + + 0 THEN ( ( 82 ) ) END AS col1
----
-5016
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT SUM( DISTINCT - NULLIF ( + 88, + 32 / + ( + - 53 ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-1679
SELECT SUM ( DISTINCT - NULLIF ( + 88, + 32 / + ( + - 53 ) ) )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1680
SELECT ALL - - COUNT( * ) DIV 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL - - COUNT ( * ) / 11 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1682
SELECT DISTINCT - COUNT( * ) DIV - MIN( NULLIF ( - 97, + - 37 + - 47 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT - COUNT ( * ) / - MIN ( NULLIF ( - 97, + - 37 + - 47 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT DISTINCT - 17 / - 28 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - 17 / - 28 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1684
SELECT - - 6 DIV - 42 - - ( - 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1684
SELECT - - 6 / - 42 - - ( - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1685
SELECT ALL - - 50 DIV + 63 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - - 50 / + 63 + COUNT ( * )
----
1

query I rowsort
SELECT - 75 + ( + 65 ) col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL NULLIF ( - COUNT( * ), + - COUNT( * ) + - + 85 ) * + + 40
----
-40

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL NULLIF ( - COUNT ( * ), + - COUNT ( * ) + - + 85 ) * + + 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL + MIN( - - 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL + MIN ( - - 0 ) col1
----
0

query I rowsort
SELECT DISTINCT + + 24 + - + 83 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT + 25 + 42 - + COUNT( * ) * - + 35 * 66 AS col1
----
2377

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 25 + 42 - + COUNT ( * ) * - + 35 * 66 AS col1
----
2377

query II rowsort
SELECT DISTINCT NULLIF ( - 98, 82 ) AS col2, 77
----
-98
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT 46 * MAX( - + 83 ) * - 76
----
290168

skipif mysql # not compatible
query I rowsort label-1692
SELECT 46 * MAX ( - + 83 ) * - 76
----
290168

onlyif mysql # aggregate syntax: 
query II rowsort label-1693
SELECT 81 + + 64, + MIN( DISTINCT ( + 59 ) ) AS col2
----
145
59

skipif mysql # not compatible
query II rowsort label-1693
SELECT 81 + + 64, + MIN ( DISTINCT ( + 59 ) ) AS col2
----
145
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT DISTINCT + CAST( + CAST( + 67 AS SIGNED ) AS SIGNED ) + + + 88 + - 30 - + NULLIF ( 74, + 45 - + SUM( + NULLIF ( - 21, + 91 ) ) + - 48 * + COUNT( * ) ) col2
----
51

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT + CAST ( + CAST ( + 67 AS INTEGER ) AS INTEGER ) + + + 88 + - 30 - + NULLIF ( 74, + 45 - + SUM ( + NULLIF ( - 21, + 91 ) ) + - 48 * + COUNT ( * ) ) col2
----
51

query II rowsort
SELECT DISTINCT 17, + 92 * - 54 AS col1
----
17
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT DISTINCT 72 + + 65 * + - COUNT( * ) * + - 16
----
1112

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT 72 + + 65 * + - COUNT ( * ) * + - 16
----
1112

query I rowsort
SELECT 71 * - 14 AS col1
----
-994

query I rowsort
SELECT ALL 54 * - 35 AS col0
----
-1890

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

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

query II rowsort
SELECT 51, - 18 * 82 AS col0
----
51
-1476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1701
SELECT CAST( NULL AS SIGNED ) * + ( COALESCE ( 92, MAX( DISTINCT 63 ) ) ) col1, + 45 / CASE - 1 WHEN - MAX( ALL + COALESCE ( + ( 8 ), - 81 + 28 ) ) THEN NULL WHEN + 27 + + 99 * - MIN( ALL + 99 ) THEN - 36 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1701
SELECT CAST ( NULL AS INTEGER ) * + ( COALESCE ( 92, MAX ( DISTINCT 63 ) ) ) col1, + 45 / CASE - 1 WHEN - MAX ( ALL + COALESCE ( + ( 8 ), - 81 + 28 ) ) THEN NULL WHEN + 27 + + 99 * - MIN ( ALL + 99 ) THEN - 36 END
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1702
SELECT 60 AS col1, ( + - 58 ) - + + 61 + - + 66 * - 0 * - - AVG ( CAST( NULL AS SIGNED ) ) * + 22 + + 18
----
60
NULL

skipif mysql # not compatible
query II rowsort label-1702
SELECT 60 AS col1, ( + - 58 ) - + + 61 + - + 66 * - 0 * - - AVG ( CAST ( NULL AS INTEGER ) ) * + 22 + + 18
----
60
NULL

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

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

query I rowsort
SELECT DISTINCT 77 - - 7
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + COUNT( * ) * - 59 + - 66 * + 98
----
-6527

skipif mysql # not compatible
query I rowsort label-1705
SELECT + COUNT ( * ) * - 59 + - 66 * + 98
----
-6527

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT 53 - + 22 - + 33 + - COUNT( 56 ) * - 17 + + + 49 * + 99
----
4866

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT 53 - + 22 - + 33 + - COUNT ( 56 ) * - 17 + + + 49 * + 99
----
4866

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT 14 DIV - 62 + - - 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1707
SELECT 14 / - 62 + - - 20 AS col0
----
20

query II rowsort
SELECT DISTINCT - 41 - 3 - 90 * + 27, - 66 AS col2
----
-2474
-66

query II rowsort
SELECT ALL - - 17 AS col1, 92
----
17
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT 77 DIV 69 + + - 19
----
-18

skipif mysql # not compatible
query I rowsort label-1710
SELECT 77 / 69 + + - 19
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT DISTINCT - 45, - NULLIF ( 95, 22 + - + COUNT( * ) + 50 * - + 72 * 52 ) * + 15 + - 51 + - - 97 AS col2
----
-45
-1379

skipif mysql # not compatible
query II rowsort label-1711
SELECT DISTINCT - 45, - NULLIF ( 95, 22 + - + COUNT ( * ) + 50 * - + 72 * 52 ) * + 15 + - 51 + - - 97 AS col2
----
-45
-1379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1712
SELECT ALL - + COALESCE ( - SUM( ALL - + 82 ), - - 60, - + CAST( NULL AS SIGNED ) + + - 59 )
----
-82

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - + COALESCE ( - SUM ( ALL - + 82 ), - - 60, - + CAST ( NULL AS INTEGER ) + + - 59 )
----
-82

query II rowsort
SELECT 66, 52 AS col1
----
66
52

query I rowsort
SELECT ALL - 16 * 70 AS col1
----
-1120

query I rowsort
SELECT + 23 * - 89
----
-2047

query I rowsort
SELECT - ( 27 ) + - - 58
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT DISTINCT 2 * + MIN( DISTINCT + 99 ) AS col1
----
198

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT 2 * + MIN ( DISTINCT + 99 ) AS col1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT - 50 - - - COUNT( * ) * + 75
----
-125

skipif mysql # not compatible
query I rowsort label-1718
SELECT - 50 - - - COUNT ( * ) * + 75
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL ( - MAX( DISTINCT + + 95 ) ) * - ( + - MIN( - - 54 ) ) * 31 + + 88
----
-158942

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL ( - MAX ( DISTINCT + + 95 ) ) * - ( + - MIN ( - - 54 ) ) * 31 + + 88
----
-158942

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL COALESCE ( 67, + - 26 * + ( 35 ) * - COUNT( * ) - + COUNT( * ) + + - 73 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL COALESCE ( 67, + - 26 * + ( 35 ) * - COUNT ( * ) - + COUNT ( * ) + + - 73 ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1721
SELECT CAST( NULL AS SIGNED ) AS col2, + 66 + + COALESCE ( 87, + 28, - NULLIF ( + 84, - COUNT( * ) ) DIV 3 + + CASE 89 WHEN 45 THEN - 76 * + 13 WHEN + COUNT( DISTINCT 51 ) THEN ( + 99 ) ELSE + ( + 86 ) * 97 + + 38 END * 54 ) + - NULLIF ( 55 + 11, - 46 * 87 ) AS col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-1721
SELECT CAST ( NULL AS INTEGER ) AS col2, + 66 + + COALESCE ( 87, + 28, - NULLIF ( + 84, - COUNT ( * ) ) / 3 + + CASE 89 WHEN 45 THEN - 76 * + 13 WHEN + COUNT ( DISTINCT 51 ) THEN ( + 99 ) ELSE + ( + 86 ) * 97 + + 38 END * 54 ) + - NULLIF ( 55 + 11, - 46 * 87 ) AS col0
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - - CASE WHEN NOT - 9 IN ( + 59 - + SUM( DISTINCT - + ( - 5 ) ) ) THEN - 53 WHEN ( 17 * + 60 ) NOT IN ( + 45 * 9 + 60 ) OR + ( COUNT( * ) ) * + 19 IS NULL THEN NULL ELSE NULL END
----
-53

skipif mysql # not compatible
query I rowsort label-1722
SELECT - - CASE WHEN NOT - 9 IN ( + 59 - + SUM ( DISTINCT - + ( - 5 ) ) ) THEN - 53 WHEN ( 17 * + 60 ) NOT IN ( + 45 * 9 + 60 ) OR + ( COUNT ( * ) ) * + 19 IS NULL THEN NULL ELSE NULL END
----
-53

query I rowsort
SELECT + 26 * - 10 col1
----
-260

query II rowsort
SELECT ALL 51 AS col1, + 82 * - 55 + - 41 * - NULLIF ( - 14, - 76 )
----
51
-5084

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1726
SELECT ALL + 39 / + - 24 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL + 39 / + - 24 + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT - 81 + ( + 96 ) + - 44, 47 AS col0
----
-29
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL + COUNT( * ) + 49 + + 48
----
98

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + COUNT ( * ) + 49 + + 48
----
98

query I rowsort
SELECT 75 - 30
----
45

onlyif mysql # DIV for integer division: 
query II rowsort label-1730
SELECT ALL 32 DIV 25, 12 AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-1730
SELECT ALL 32 / 25, 12 AS col2
----
1
12

query I rowsort
SELECT 61 * - 36
----
-2196

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT ALL - 17 + - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL - 17 + - COUNT ( * ) AS col2
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1733
SELECT ALL - 80 * - 60 AS col1, - CAST( NULL AS DECIMAL ) + 90 AS col1
----
4800
NULL

skipif mysql # not compatible
query II rowsort label-1733
SELECT ALL - 80 * - 60 AS col1, - CAST ( NULL AS REAL ) + 90 AS col1
----
4800
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT ALL 66 * - + COUNT( * ) AS col1, 30
----
-66
30

skipif mysql # not compatible
query II rowsort label-1734
SELECT ALL 66 * - + COUNT ( * ) AS col1, 30
----
-66
30

query I rowsort
SELECT ALL - 90 + + 95 + + 67 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT 51 + 29 + 86 + 96 + + 62 * CASE + ( + COUNT( - 47 ) ) WHEN - + ( 53 ) THEN 66 + + ( CASE + COUNT( * ) WHEN 52 THEN NULL ELSE - 76 END ) * ( - 63 ) END * - NULLIF ( 41 - 9, 59 ) + 93 * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT 51 + 29 + 86 + 96 + + 62 * CASE + ( + COUNT ( - 47 ) ) WHEN - + ( 53 ) THEN 66 + + ( CASE + COUNT ( * ) WHEN 52 THEN NULL ELSE - 76 END ) * ( - 63 ) END * - NULLIF ( 41 - 9, 59 ) + 93 * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT 61 + 54 * + COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-1737
SELECT 61 + 54 * + COUNT ( * )
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1738
SELECT ALL MAX( ALL - 78 ) AS col1, - NULLIF ( + CASE 39 WHEN - 62 / - 80 - - + 15 + - - 82 THEN - 97 WHEN CASE + CAST( NULL AS SIGNED ) WHEN 97 * 63 THEN NULL WHEN 68 - COUNT( * ) * - 52 THEN NULL ELSE + 23 + + 38 / - 13 END * - 63 + COALESCE ( COALESCE ( 30, 60 + - 98 ) + - 32, + 73 ) THEN NULL END, - 54 ) - - 39
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-1738
SELECT ALL MAX ( ALL - 78 ) AS col1, - NULLIF ( + CASE 39 WHEN - 62 / - 80 - - + 15 + - - 82 THEN - 97 WHEN CASE + CAST ( NULL AS INTEGER ) WHEN 97 * 63 THEN NULL WHEN 68 - COUNT ( * ) * - 52 THEN NULL ELSE + 23 + + 38 / - 13 END * - 63 + COALESCE ( COALESCE ( 30, 60 + - 98 ) + - 32, + 73 ) THEN NULL END, - 54 ) - - 39
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT 70 + - - 49 + - - MIN( DISTINCT + + 0 )
----
119

skipif mysql # not compatible
query I rowsort label-1739
SELECT 70 + - - 49 + - - MIN ( DISTINCT + + 0 )
----
119

query I rowsort
SELECT 6 * 54
----
324

query I rowsort
SELECT 77 * - 86 AS col1
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT MAX( ALL 68 ) + 31 + 18 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-1742
SELECT MAX ( ALL 68 ) + 31 + 18 AS col0
----
117

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

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

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

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

query II rowsort
SELECT 92 * + + 40 AS col2, - 48
----
3680
-48

query I rowsort
SELECT DISTINCT 20 * + 91
----
1820

query I rowsort
SELECT DISTINCT + 62 * 46
----
2852

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT - 7 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-1748
SELECT - 7 / - 20
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1750
SELECT ALL - CAST( 56 AS SIGNED ) DIV - + 7
----
8

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - CAST ( 56 AS INTEGER ) / - + 7
----
8

query I rowsort
SELECT ALL + 68 + + 40 * ( 8 )
----
388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT + CAST( + + 48 AS SIGNED ) * + 1 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1752
SELECT + CAST ( + + 48 AS INTEGER ) * + 1 AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1753
SELECT + - 29 - + 83 + COUNT( * ) DIV - 39 * - + 37
----
-112

skipif mysql # not compatible
query I rowsort label-1753
SELECT + - 29 - + 83 + COUNT ( * ) / - 39 * - + 37
----
-112

query II rowsort
SELECT + 10 + + - 14 AS col1, 91
----
-4
91

query I rowsort
SELECT DISTINCT + ( + 82 ) * 32
----
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT 47 * - COUNT( * ) + - + 55 * - + 59 * + 31
----
100548

skipif mysql # not compatible
query I rowsort label-1756
SELECT 47 * - COUNT ( * ) + - + 55 * - + 59 * + 31
----
100548

query I rowsort
SELECT ALL 20 * - + 54 AS col1
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT + 96 + + + CAST( NULL AS SIGNED ) * + NULLIF ( - 31, - + AVG ( DISTINCT - - 38 ) ) * 21 + + 98 * - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT + 96 + + + CAST ( NULL AS INTEGER ) * + NULLIF ( - 31, - + AVG ( DISTINCT - - 38 ) ) * 21 + + 98 * - 42 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL MIN ( ALL 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1760
SELECT + MAX( DISTINCT - 31 ) / - ( + CASE - 36 WHEN + - ( 78 ) * COUNT( * ) * + CASE + ( 8 ) WHEN - 65 THEN - 2 + + 23 / + COALESCE ( - 87, - 33 * + 42 + 91, - 78 ) WHEN - 66 THEN 76 WHEN + 64 THEN - 9 + - 94 * COUNT( * ) END THEN NULL WHEN CAST( + 56 AS SIGNED ) + + 86 THEN + 3 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT + MAX ( DISTINCT - 31 ) / - ( + CASE - 36 WHEN + - ( 78 ) * COUNT ( * ) * + CASE + ( 8 ) WHEN - 65 THEN - 2 + + 23 / + COALESCE ( - 87, - 33 * + 42 + 91, - 78 ) WHEN - 66 THEN 76 WHEN + 64 THEN - 9 + - 94 * COUNT ( * ) END THEN NULL WHEN CAST ( + 56 AS INTEGER ) + + 86 THEN + 3 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1761
SELECT - ( - - 63 ) + + - CAST( NULL AS SIGNED ) AS col0, + 14 AS col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-1761
SELECT - ( - - 63 ) + + - CAST ( NULL AS INTEGER ) AS col0, + 14 AS col1
----
NULL
14

query I rowsort
SELECT - 66 + 36 AS col1
----
-30

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

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

query II rowsort
SELECT 90, 62 AS col0
----
90
62

query I rowsort
SELECT - 42 + - 9 AS col0
----
-51

query I rowsort
SELECT + ( - - 64 ) * + ( - ( + 2 ) ) AS col0
----
-128

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

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT + COUNT ( * ) / - + 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT - COUNT( * ) * - 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-1768
SELECT - COUNT ( * ) * - 70 col1
----
70

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

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

query I rowsort
SELECT ALL + 86 * - + 17 AS col2
----
-1462

onlyif mysql # aggregate syntax: 
query II rowsort label-1771
SELECT ALL COUNT( * ), COALESCE ( 60, - 76 + - - 93 * - 50 + - - 82 ) + 58 + - 79 * + + 73 * - ( - 41 ) * 65 AS col0
----
1
-15368937

skipif mysql # not compatible
query II rowsort label-1771
SELECT ALL COUNT ( * ), COALESCE ( 60, - 76 + - - 93 * - 50 + - - 82 ) + 58 + - 79 * + + 73 * - ( - 41 ) * 65 AS col0
----
1
-15368937

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL CASE - COUNT( * ) WHEN MIN( 46 ) THEN NULL WHEN 45 + - - 52 THEN 35 * 78 + - 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL CASE - COUNT ( * ) WHEN MIN ( 46 ) THEN NULL WHEN 45 + - - 52 THEN 35 * 78 + - 51 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 17, - 40 ) AS col1
----
-17

query II rowsort
SELECT + 2 AS col1, - 86
----
2
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - 64 * - - CASE - 21 WHEN + + 54 THEN NULL WHEN - AVG ( - 3 ) * + 90 / 55 * - 65 * + - 48 THEN + 2 * - - 13 / + 0 + MIN( ALL - 72 + + 49 ) * 94 ELSE NULL END * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT - 64 * - - CASE - 21 WHEN + + 54 THEN NULL WHEN - AVG ( - 3 ) * + 90 / 55 * - 65 * + - 48 THEN + 2 * - - 13 / + 0 + MIN ( ALL - 72 + + 49 ) * 94 ELSE NULL END * - 51 AS col0
----
NULL

query I rowsort
SELECT - 70 * + 89 AS col0
----
-6230

query II rowsort
SELECT + 67 col1, 23 AS col2
----
67
23

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

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

query II rowsort
SELECT ALL + 77 AS col2, - 96 AS col2
----
77
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1782
SELECT DISTINCT SUM( - - 52 ) DIV + + 49 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT SUM ( - - 52 ) / + + 49 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1783
SELECT 1 AS col0, 48 - NULLIF ( - + 49, 4 + - - ( - - 68 ) * - - COUNT( * ) ) AS col1
----
1
97

skipif mysql # not compatible
query II rowsort label-1783
SELECT 1 AS col0, 48 - NULLIF ( - + 49, 4 + - - ( - - 68 ) * - - COUNT ( * ) ) AS col1
----
1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - + CASE - ( + SUM( + + 92 ) ) WHEN ( - - 77 ) THEN + + 78 * + + 44 * - + 76 ELSE NULL END + + COALESCE ( + - MAX( DISTINCT - ( + + 95 ) ), + 87 / + 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT - + CASE - ( + SUM ( + + 92 ) ) WHEN ( - - 77 ) THEN + + 78 * + + 44 * - + 76 ELSE NULL END + + COALESCE ( + - MAX ( DISTINCT - ( + + 95 ) ), + 87 / + 6 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT + CASE - COUNT( * ) WHEN + 22 THEN 67 + + 36 WHEN - + 22 THEN NULL END * - - 95 + + 29 - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT + CASE - COUNT ( * ) WHEN + 22 THEN 67 + + 36 WHEN - + 22 THEN NULL END * - - 95 + + 29 - 54 AS col2
----
NULL

query I rowsort
SELECT ALL ( 98 ) * + + 11
----
1078

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT 17 * + MIN( DISTINCT + 63 ) * + 61 + - - 75 AS col2
----
65406

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT 17 * + MIN ( DISTINCT + 63 ) * + 61 + - - 75 AS col2
----
65406

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL + COALESCE ( + + 52, - 10 + - 51 ) * + COUNT( * ) + - + 21 + 80 + + - 88 * - 84 * + 59 * - - 76
----
33145839

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + COALESCE ( + + 52, - 10 + - 51 ) * + COUNT ( * ) + - + 21 + 80 + + - 88 * - 84 * + 59 * - - 76
----
33145839

query I rowsort
SELECT DISTINCT + 54 * + 39
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-1790
SELECT DISTINCT 83 DIV + 11 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT 83 / + 11 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL + + MAX( DISTINCT - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL + + MAX ( DISTINCT - 88 )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT DISTINCT - 46 * 55 + + + 46 - + 74 - - + CAST( ( + 88 ) AS SIGNED ) AS col2
----
-2470

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT - 46 * 55 + + + 46 - + 74 - - + CAST ( ( + 88 ) AS INTEGER ) AS col2
----
-2470

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

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

query I rowsort
SELECT - 84 - 11
----
-95

query II rowsort
SELECT - ( + - 4 ) AS col0, 59
----
4
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT MAX( ALL - 40 ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-1797
SELECT MAX ( ALL - 40 ) col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT + ( - + 23 ) * - 24 * + 71 + + 77 + 81 DIV - - 38 - ( - 72 ) * - COALESCE ( 67, + 80 ) - + + 5 DIV 37
----
34447

skipif mysql # not compatible
query I rowsort label-1798
SELECT + ( - + 23 ) * - 24 * + 71 + + 77 + 81 / - - 38 - ( - 72 ) * - COALESCE ( 67, + 80 ) - + + 5 / 37
----
34447

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL COUNT( * ) * - 65 * + - 31 AS col1
----
2015

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL COUNT ( * ) * - 65 * + - 31 AS col1
----
2015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1800
SELECT + ( + + ( + ( + 79 ) ) ) - - + 34 + CAST( NULL AS SIGNED ) / - - COALESCE ( + 82, CAST( ( + - COUNT( * ) ) AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT + ( + + ( + ( + 79 ) ) ) - - + 34 + CAST ( NULL AS INTEGER ) / - - COALESCE ( + 82, CAST ( ( + - COUNT ( * ) ) AS REAL ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL COALESCE ( - 6, + COUNT( * ) + - 69 + - 65 * + - 45 )
----
-6

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL COALESCE ( - 6, + COUNT ( * ) + - 69 + - 65 * + - 45 )
----
-6

query I rowsort
SELECT DISTINCT COALESCE ( + 80, - + ( 58 ) * + 36 * + 68 ) AS col1
----
80

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

query I rowsort
SELECT + 23 + - 30 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - 65 + + 46 * - 61 * SUM( - + 89 )
----
249669

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - 65 + + 46 * - 61 * SUM ( - + 89 )
----
249669

query I rowsort
SELECT - 17 + - - 10 col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT DISTINCT - - ( - 65 ) / CASE - COUNT( * ) WHEN - + 31 THEN NULL WHEN + 11 * + + 2 THEN - ( + CAST( NULL AS SIGNED ) ) END + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - - ( - 65 ) / CASE - COUNT ( * ) WHEN - + 31 THEN NULL WHEN + 11 * + + 2 THEN - ( + CAST ( NULL AS INTEGER ) ) END + + 88 AS col2
----
NULL

query I rowsort
SELECT ALL + 37 * + 99 + - 33
----
3630

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT ALL - - 42 DIV - - 12 + - 50 DIV 8
----
-3

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - - 42 / - - 12 + - 50 / 8
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT DISTINCT + 0 DIV 64 * - 43 + + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT + 0 / 64 * - 43 + + 96 AS col2
----
96

query I rowsort
SELECT DISTINCT - - 65 + + + 65 + 34 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT + NULLIF ( NULLIF ( 65, - 63 / + 31 ), - COUNT( * ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1812
SELECT + NULLIF ( NULLIF ( 65, - 63 / + 31 ), - COUNT ( * ) ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1813
SELECT ALL - + 15 + + SUM( DISTINCT 98 ) + - - CAST( + - 3 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL - + 15 + + SUM ( DISTINCT 98 ) + - - CAST ( + - 3 AS INTEGER )
----
80

query II rowsort
SELECT ALL + - 53 + + + 67, + ( + 41 ) AS col2
----
14
41

query I rowsort
SELECT ALL + + 36 * 56
----
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT + - 0 DIV 36 + - 35 - - - 34
----
-69

skipif mysql # not compatible
query I rowsort label-1816
SELECT + - 0 / 36 + - 35 - - - 34
----
-69

query I rowsort
SELECT - 28 + - + 98 + + 58 AS col1
----
-68

query I rowsort
SELECT ALL - + 23 - 30
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT ALL 72 * + + COALESCE ( 78, - + 2 DIV 79 )
----
5616

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL 72 * + + COALESCE ( 78, - + 2 / 79 )
----
5616

query I rowsort
SELECT ALL 81 - + 51 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT COALESCE ( 79, + - ( - COUNT( + - CASE + - 77 WHEN - - 10 * + 41 * 25 * + 81 THEN + 26 / - 47 ELSE 75 END ) ) * + + 68, 57 - ( - 72 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1821
SELECT COALESCE ( 79, + - ( - COUNT ( + - CASE + - 77 WHEN - - 10 * + 41 * 25 * + 81 THEN + 26 / - 47 ELSE 75 END ) ) * + + 68, 57 - ( - 72 ) ) AS col1
----
79

query I rowsort
SELECT + 95 + + 34
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1823
SELECT ALL - 0 * - + 93 + + CAST( + COUNT( * ) AS SIGNED ) + + MAX( ALL - ( + 3 ) ) + 8 * 93 DIV 36
----
18

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL - 0 * - + 93 + + CAST ( + COUNT ( * ) AS INTEGER ) + + MAX ( ALL - ( + 3 ) ) + 8 * 93 / 36
----
18

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1825
SELECT 67 AS col2, 90 DIV + 39 AS col2
----
67
2

skipif mysql # not compatible
query II rowsort label-1825
SELECT 67 AS col2, 90 / + 39 AS col2
----
67
2

query I rowsort
SELECT ALL 49 * + 55
----
2695

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

skipif mysql # not compatible
query I rowsort label-1827
SELECT 77 + COUNT ( * ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1828
SELECT ALL - 31 * - + CAST( + 24 AS SIGNED ) AS col2
----
744

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL - 31 * - + CAST ( + 24 AS INTEGER ) AS col2
----
744

query I rowsort
SELECT 59 * + 48 + - + 34
----
2798

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT COUNT( - 36 ) * - + ( + COUNT( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2
----
89
66

skipif mysql # not compatible
query II rowsort label-1830
SELECT COUNT ( - 36 ) * - + ( + COUNT ( * ) ) + + + 90 AS col2, ( + + 66 ) AS col2
----
89
66

query I rowsort
SELECT DISTINCT - 13 * - 68 AS col2
----
884

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT ALL 77 DIV - - CASE - - 59 WHEN + 40 DIV - - 8 THEN - ( - 32 ) ELSE - - 21 END AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL 77 / - - CASE - - 59 WHEN + 40 / - - 8 THEN - ( - 32 ) ELSE - - 21 END AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1833
SELECT 6 + - 70 + - COUNT( * ) * - CAST( - 91 AS SIGNED ) col1, - CAST( NULL AS DECIMAL ) * + AVG ( - - 16 ) AS col2, + - 80
----
-155
NULL
-80

skipif mysql # not compatible
query III rowsort label-1833
SELECT 6 + - 70 + - COUNT ( * ) * - CAST ( - 91 AS INTEGER ) col1, - CAST ( NULL AS REAL ) * + AVG ( - - 16 ) AS col2, + - 80
----
-155
NULL
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT ALL 95 DIV - - 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL 95 / - - 78 AS col0
----
1

query I rowsort
SELECT ( - 45 ) * + 18 * + 51 + 64
----
-41246

query II rowsort
SELECT ALL 89 AS col2, 33
----
89
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT DISTINCT ( + 6 ) + - 16 DIV + + 37 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT ( + 6 ) + - 16 / + + 37 AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1838
SELECT NULLIF ( 4, + - 11 ) * - CAST( - 34 AS SIGNED ) * 34 * 76 * 25 AS col2, 37 - - + 90
----
8785600
127

skipif mysql # not compatible
query II rowsort label-1838
SELECT NULLIF ( 4, + - 11 ) * - CAST ( - 34 AS INTEGER ) * 34 * 76 * 25 AS col2, 37 - - + 90
----
8785600
127

query II rowsort
SELECT DISTINCT 49 AS col1, + 22 AS col0
----
49
22

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

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT 70 * + COUNT ( * ) AS col2
----
70

query I rowsort
SELECT ALL 87 + + 39 AS col0
----
126

query I rowsort
SELECT 30 * - + 90 AS col2
----
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT ALL 99 + + 21 + + ( + + 81 ) DIV + 70 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL 99 + + 21 + + ( + + 81 ) / + 70 AS col0
----
121

query I rowsort
SELECT DISTINCT + 8 + 38 AS col1
----
46

query I rowsort
SELECT DISTINCT - 50 + - + 90
----
-140

query I rowsort
SELECT 96 - 79 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT DISTINCT 2 + + 81 * - ( - 85 ) + CAST( - 71 AS SIGNED )
----
6816

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT 2 + + 81 * - ( - 85 ) + CAST ( - 71 AS INTEGER )
----
6816

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT COUNT( DISTINCT 51 )
----
1

skipif mysql # not compatible
query I rowsort label-1848
SELECT COUNT ( DISTINCT 51 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1849
SELECT + 84 / - 98 + + COUNT( * ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT + 84 / - 98 + + COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 56 + + + 30
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1851
SELECT + 90 * - + 30 * + ( - COUNT( * ) ) * + ( + CAST( + 93 AS SIGNED ) ) + - - CAST( NULL AS DECIMAL ) AS col2, 67
----
NULL
67

skipif mysql # not compatible
query II rowsort label-1851
SELECT + 90 * - + 30 * + ( - COUNT ( * ) ) * + ( + CAST ( + 93 AS INTEGER ) ) + - - CAST ( NULL AS REAL ) AS col2, 67
----
NULL
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT DISTINCT - COUNT( ALL - 80 ) - 50
----
-51

skipif mysql # not compatible
query I rowsort label-1852
SELECT DISTINCT - COUNT ( ALL - 80 ) - 50
----
-51

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

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

query I rowsort
SELECT DISTINCT + - 50 * + 59 col1
----
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT 45 * - + 14 * - + COUNT( * ) * - 66 AS col1
----
-41580

skipif mysql # not compatible
query I rowsort label-1855
SELECT 45 * - + 14 * - + COUNT ( * ) * - 66 AS col1
----
-41580

query I rowsort
SELECT + COALESCE ( - 24, - 54 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + - SUM( ALL + 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1857
SELECT + - SUM ( ALL + 11 ) AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1858
SELECT - CASE - 36 WHEN + ( - + COUNT( * ) ) / - 46 / - COUNT( * ) THEN - - MIN( + + 46 ) + - 85 + 27 / + 50 WHEN - - 90 THEN NULL END + - COUNT( * ) + - MIN( DISTINCT - - CAST( + 88 AS SIGNED ) ) + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT - CASE - 36 WHEN + ( - + COUNT ( * ) ) / - 46 / - COUNT ( * ) THEN - - MIN ( + + 46 ) + - 85 + 27 / + 50 WHEN - - 90 THEN NULL END + - COUNT ( * ) + - MIN ( DISTINCT - - CAST ( + 88 AS INTEGER ) ) + 93 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 58 * + 94
----
-5452

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT - COUNT( * ) * 4 + - - NULLIF ( + 19, + COUNT( * ) ) + + + 4 + 56 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1860
SELECT - COUNT ( * ) * 4 + - - NULLIF ( + 19, + COUNT ( * ) ) + + + 4 + 56 AS col1
----
75

query II rowsort
SELECT DISTINCT - 48 AS col2, 94
----
-48
94

query I rowsort
SELECT 90 * + + 6
----
540

query II rowsort
SELECT + 19 AS col1, 73
----
19
73

query I rowsort
SELECT ALL - COALESCE ( 84, - - 34 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT DISTINCT - 82 * COUNT( * ) * + - COALESCE ( + - 80, - COUNT( * ) * - 28 ) AS col2
----
-6560

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT - 82 * COUNT ( * ) * + - COALESCE ( + - 80, - COUNT ( * ) * - 28 ) AS col2
----
-6560

query II rowsort
SELECT - 27 AS col1, NULLIF ( - 48, - - 87 ) * ( - + NULLIF ( - 71, + 65 - - - 76 + - 19 * + 71 ) ) * 38 + + 97
----
-27
-129407

query I rowsort
SELECT 15 * - + 29 * 8
----
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT ALL - COUNT( * ) + 17 * - COALESCE ( + 17, 52 * 93 * - 74, 23, - + 70 * + 54 ) AS col0
----
-290

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - COUNT ( * ) + 17 * - COALESCE ( + 17, 52 * 93 * - 74, 23, - + 70 * + 54 ) AS col0
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + 37 + + - COUNT( DISTINCT + + 45 )
----
36

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + 37 + + - COUNT ( DISTINCT + + 45 )
----
36

query I rowsort
SELECT DISTINCT - 82 + + 15 - 7
----
-74

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

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL SUM ( ALL - 72 )
----
-72

query II rowsort
SELECT - 88, 29 col1
----
-88
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT 5 DIV SUM( ALL + 21 )
----
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT 5 / SUM ( ALL + 21 )
----
0

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

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

query I rowsort
SELECT ALL - 64 + - 25 + + 55 - - 22 + - 92 + - 75 * - 83 - - 8 * + CASE 73 WHEN 48 THEN 1 * 89 * - 99 * + ( + 62 ) + + 73 / 74 ELSE NULL END + 39
----
NULL

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

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

query I rowsort
SELECT 30 - + 85
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT DISTINCT - COUNT( * ) * + 10 AS col1, - 0 AS col1
----
-10
0

skipif mysql # not compatible
query II rowsort label-1878
SELECT DISTINCT - COUNT ( * ) * + 10 AS col1, - 0 AS col1
----
-10
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1879
SELECT ALL + COUNT( * ) AS col1, + NULLIF ( + COALESCE ( + 78, - - 19 ), - + 18 )
----
1
78

skipif mysql # not compatible
query II rowsort label-1879
SELECT ALL + COUNT ( * ) AS col1, + NULLIF ( + COALESCE ( + 78, - - 19 ), - + 18 )
----
1
78

query I rowsort
SELECT ALL + 51 + 58 + - + 92
----
17

query I rowsort
SELECT - + 46 + 11 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT - - 71 + + MIN( DISTINCT 35 ) AS col2
----
106

skipif mysql # not compatible
query I rowsort label-1882
SELECT - - 71 + + MIN ( DISTINCT 35 ) AS col2
----
106

query II rowsort
SELECT ALL 31 col1, 69 AS col1
----
31
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + COUNT( - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-1884
SELECT + COUNT ( - 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL COUNT( * ) - - - 39 * + 65 * 44 + - + 73 * - - COUNT( * ) * - 77 + - ( + 10 ) AS col0
----
-105928

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL COUNT ( * ) - - - 39 * + 65 * 44 + - + 73 * - - COUNT ( * ) * - 77 + - ( + 10 ) AS col0
----
-105928

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT 26 col2, COUNT( * ) + 56 * - 98
----
26
-5487

skipif mysql # not compatible
query II rowsort label-1886
SELECT 26 col2, COUNT ( * ) + 56 * - 98
----
26
-5487

query I rowsort
SELECT ALL 81 * + 47 - + - 81 + + 70 - + 0 + - 84 col1
----
3874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT + 15 + CAST( + - 8 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-1888
SELECT + 15 + CAST ( + - 8 AS INTEGER )
----
7

query I rowsort
SELECT - + 44 * - 98 + + - 38
----
4274

query I rowsort
SELECT + + 39 * + 38
----
1482

onlyif mysql # aggregate syntax: 
query II rowsort label-1891
SELECT ALL + 33 * - + COUNT( * ), - 64 - + ( - + 72 ) AS col2
----
-33
8

skipif mysql # not compatible
query II rowsort label-1891
SELECT ALL + 33 * - + COUNT ( * ), - 64 - + ( - + 72 ) AS col2
----
-33
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + CASE + 2 WHEN + - COUNT( * ) * - 16 THEN NULL WHEN COUNT( * ) * 45 + + - 50 + + 49 THEN 13 WHEN 3 + + 72 + + ( + COUNT( * ) ) THEN COUNT( * ) * - 59 END + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT + CASE + 2 WHEN + - COUNT ( * ) * - 16 THEN NULL WHEN COUNT ( * ) * 45 + + - 50 + + 49 THEN 13 WHEN 3 + + 72 + + ( + COUNT ( * ) ) THEN COUNT ( * ) * - 59 END + + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT + SUM( ALL 53 ) * - - 63 - MIN( - 0 ) AS col2
----
3339

skipif mysql # not compatible
query I rowsort label-1893
SELECT + SUM ( ALL 53 ) * - - 63 - MIN ( - 0 ) AS col2
----
3339

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1894
SELECT DISTINCT + 50 DIV - 66 + ( + CAST( - 18 AS SIGNED ) ) * + - 54 col2
----
972

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT + 50 / - 66 + ( + CAST ( - 18 AS INTEGER ) ) * + - 54 col2
----
972

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

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

query I rowsort
SELECT ALL + 68 * - 84
----
-5712

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

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT 31 / - - COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1898
SELECT CAST( - COUNT( * ) AS SIGNED ) * - CASE - 15 WHEN ( + NULLIF ( 50, + COALESCE ( - + 53, - COUNT( * ) / - 33 * 2, 71, + + COUNT( * ) ) * - COALESCE ( CASE - 52 WHEN MIN( DISTINCT - 12 ) THEN 69 WHEN - 19 / 75 THEN 81 - ( 81 ) END, - MAX( 5 ) ) + + 41 + 31 * - COUNT( * ) ) ) THEN + 30 + 51 WHEN - 24 THEN NULL ELSE NULL END * + NULLIF ( 80, - 10 + NULLIF ( - 76, ( - 60 ) + 45 ) ) + CASE 94 + + 75 WHEN - ( 34 ) THEN 15 / + 68 + - 85 WHEN + COALESCE ( - 68, 12 ) THEN NULL END + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - CASE - 15 WHEN ( + NULLIF ( 50, + COALESCE ( - + 53, - COUNT ( * ) / - 33 * 2, 71, + + COUNT ( * ) ) * - COALESCE ( CASE - 52 WHEN MIN ( DISTINCT - 12 ) THEN 69 WHEN - 19 / 75 THEN 81 - ( 81 ) END, - MAX ( 5 ) ) + + 41 + 31 * - COUNT ( * ) ) ) THEN + 30 + 51 WHEN - 24 THEN NULL ELSE NULL END * + NULLIF ( 80, - 10 + NULLIF ( - 76, ( - 60 ) + 45 ) ) + CASE 94 + + 75 WHEN - ( 34 ) THEN 15 / + 68 + - 85 WHEN + COALESCE ( - 68, 12 ) THEN NULL END + 62
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT - 60 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT - 60 / - 95 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1900
SELECT ALL + ( + - COUNT( * ) ) * - 18 / + 15 + 16 + + CAST( NULL AS SIGNED ) - + 46 * - + 42 AS col0, 18 + CAST( - CASE 37 WHEN + - 94 * 8 + + + 39 * - 46 - - 56 + - 5 THEN + 7 + 62 ELSE NULL END AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1900
SELECT ALL + ( + - COUNT ( * ) ) * - 18 / + 15 + 16 + + CAST ( NULL AS INTEGER ) - + 46 * - + 42 AS col0, 18 + CAST ( - CASE 37 WHEN + - 94 * 8 + + + 39 * - 46 - - 56 + - 5 THEN + 7 + 62 ELSE NULL END AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT + ( + MIN( - + 23 ) ) + + 49 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1901
SELECT + ( + MIN ( - + 23 ) ) + + 49 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1902
SELECT - CAST( NULL AS DECIMAL ) * - - COUNT( * ) / MIN( DISTINCT + 37 ) - - + 90 - + 19 + - COUNT( * ) + - 13 * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT - CAST ( NULL AS REAL ) * - - COUNT ( * ) / MIN ( DISTINCT + 37 ) - - + 90 - + 19 + - COUNT ( * ) + - 13 * - 75
----
NULL

query I rowsort
SELECT + 48 + 30 AS col1
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-1904
SELECT - 54 + + 86, 35 DIV 14 AS col1
----
32
2

skipif mysql # not compatible
query II rowsort label-1904
SELECT - 54 + + 86, 35 / 14 AS col1
----
32
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1905
SELECT ALL + CASE CAST( NULL AS SIGNED ) WHEN 38 THEN + + NULLIF ( + + 18, - + 91 ) WHEN - COUNT( * ) / + + 41 THEN - 22 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + CASE CAST ( NULL AS INTEGER ) WHEN 38 THEN + + NULLIF ( + + 18, - + 91 ) WHEN - COUNT ( * ) / + + 41 THEN - 22 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1906
SELECT - COUNT( * ) + + 44 - + + 21 AS col1, - 49 + - 17 DIV - 38 - + 15
----
22
-64

skipif mysql # not compatible
query II rowsort label-1906
SELECT - COUNT ( * ) + + 44 - + + 21 AS col1, - 49 + - 17 / - 38 - + 15
----
22
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT - COUNT( ALL - 25 ) * + - 78 + - 76 + + + ( - 75 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1907
SELECT - COUNT ( ALL - 25 ) * + - 78 + - 76 + + + ( - 75 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT 33 * - 90 + + - COUNT( * ) AS col1
----
-2971

skipif mysql # not compatible
query I rowsort label-1908
SELECT 33 * - 90 + + - COUNT ( * ) AS col1
----
-2971

query I rowsort
SELECT ALL 23 * + + 20 AS col2
----
460

query II rowsort
SELECT ALL ( - + 14 ) AS col0, COALESCE ( - + 17, 2 ) + + 21 AS col1
----
-14
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1911
SELECT - SUM( DISTINCT - 88 ) + - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT - SUM ( DISTINCT - 88 ) + - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT SUM( - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT SUM ( - 12 ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1913
SELECT - 87 * - 99 * - ( + CAST( - - 32 AS SIGNED ) ), 7 + 5 * + 52 AS col0
----
-275616
267

skipif mysql # not compatible
query II rowsort label-1913
SELECT - 87 * - 99 * - ( + CAST ( - - 32 AS INTEGER ) ), 7 + 5 * + 52 AS col0
----
-275616
267

query I rowsort
SELECT ALL COALESCE ( + + NULLIF ( + 18, + 26 ), - 55 + + + 44 - + 16 )
----
18

query I rowsort
SELECT DISTINCT + 52 - - 77
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT - + 34 DIV 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1916
SELECT - + 34 / 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL + 28 * + 62 + + COUNT( * )
----
1737

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + 28 * + 62 + + COUNT ( * )
----
1737

query I rowsort
SELECT DISTINCT - - 16 * + ( + 12 ) / - 85 + + - CASE 95 WHEN + - 5 * - - 73 THEN - - 5 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT - 52 - + 22 - 76 + + + 83 DIV + 94 * + 19
----
-150

skipif mysql # not compatible
query I rowsort label-1919
SELECT - 52 - + 22 - 76 + + + 83 / + 94 * + 19
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1920
SELECT + ( 95 ) * + NULLIF ( + - 7, CAST( NULL AS SIGNED ) ) AS col2
----
-665

skipif mysql # not compatible
query I rowsort label-1920
SELECT + ( 95 ) * + NULLIF ( + - 7, CAST ( NULL AS INTEGER ) ) AS col2
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT 76 * - 97 + + COALESCE ( - 19, 67 * COALESCE ( - 97, - 99 ) * - ( + + COUNT( * ) ), COUNT( * ) * - - 1 + + 98 ) + NULLIF ( MAX( DISTINCT + 50 ), - 83 + + 41 ) + SUM( 96 ) AS col1
----
-7245

skipif mysql # not compatible
query I rowsort label-1921
SELECT 76 * - 97 + + COALESCE ( - 19, 67 * COALESCE ( - 97, - 99 ) * - ( + + COUNT ( * ) ), COUNT ( * ) * - - 1 + + 98 ) + NULLIF ( MAX ( DISTINCT + 50 ), - 83 + + 41 ) + SUM ( 96 ) AS col1
----
-7245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT + + 7 * 42 + - MIN( + 14 ) + + COUNT( * ) DIV 20 AS col1
----
280

skipif mysql # not compatible
query I rowsort label-1922
SELECT + + 7 * 42 + - MIN ( + 14 ) + + COUNT ( * ) / 20 AS col1
----
280

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT + 70 DIV + 70 - - 3 + 76
----
80

skipif mysql # not compatible
query I rowsort label-1923
SELECT + 70 / + 70 - - 3 + 76
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + SUM( + + 42 ) * - + 6 + 56 + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + SUM ( + + 42 ) * - + 6 + 56 + 54
----
NULL

query I rowsort
SELECT + ( + ( - 52 ) ) - + + 37 + - 8
----
-97

query I rowsort
SELECT + 84 * + 70 col1
----
5880

onlyif mysql # DIV for integer division: 
query I rowsort label-1927
SELECT ALL 14 DIV - 83 + - 55 + + 91 col0
----
36

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL 14 / - 83 + - 55 + + 91 col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1928
SELECT CAST( - NULLIF ( - 22, - ( 93 ) ) AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1928
SELECT CAST ( - NULLIF ( - 22, - ( 93 ) ) AS INTEGER ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT + COALESCE ( + 57, + - 26, + - COUNT( * ) + 94 - - COALESCE ( 41, 66, - 2 ) * - ( - - CASE - 74 WHEN + ( + 95 ) + COUNT( DISTINCT ( 91 ) ) THEN NULL WHEN - ( + 71 ) * - COALESCE ( 39, 1 + AVG ( DISTINCT + 14 ), COALESCE ( + ( 13 ), 39 ) * - 1 ) + - ( 28 ) THEN + ( 86 ) END ) DIV + 28 DIV - MIN( DISTINCT - 22 ) )
----
57

skipif mysql # not compatible
query I rowsort label-1929
SELECT + COALESCE ( + 57, + - 26, + - COUNT ( * ) + 94 - - COALESCE ( 41, 66, - 2 ) * - ( - - CASE - 74 WHEN + ( + 95 ) + COUNT ( DISTINCT ( 91 ) ) THEN NULL WHEN - ( + 71 ) * - COALESCE ( 39, 1 + AVG ( DISTINCT + 14 ), COALESCE ( + ( 13 ), 39 ) * - 1 ) + - ( 28 ) THEN + ( 86 ) END ) / + 28 / - MIN ( DISTINCT - 22 ) )
----
57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1931
SELECT + ( - COUNT( * ) ) / + - CASE - 66 WHEN - 40 THEN + - 0 + + 24 WHEN - 6 THEN + 1 WHEN COUNT( * ) * - 0 THEN NULL ELSE NULL END, COUNT( * ) + + 79 * - + 56 AS col2
----
NULL
-4423

skipif mysql # not compatible
query II rowsort label-1931
SELECT + ( - COUNT ( * ) ) / + - CASE - 66 WHEN - 40 THEN + - 0 + + 24 WHEN - 6 THEN + 1 WHEN COUNT ( * ) * - 0 THEN NULL ELSE NULL END, COUNT ( * ) + + 79 * - + 56 AS col2
----
NULL
-4423

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL + MIN( + 6 ) / - - ( + CASE - 56 WHEN + + COUNT( * ) THEN - 42 + - + 35 WHEN - + 6 THEN NULL END ) * + 58 + - COUNT( * ) + + 79 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + MIN ( + 6 ) / - - ( + CASE - 56 WHEN + + COUNT ( * ) THEN - 42 + - + 35 WHEN - + 6 THEN NULL END ) * + 58 + - COUNT ( * ) + + 79 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL 57 * + COUNT( * ) + - 58
----
-1

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL 57 * + COUNT ( * ) + - 58
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + 18 * CASE - 29 WHEN - NULLIF ( - - 52, MIN( ALL - 77 ) / - + 75 * - - 54 / 16 ) THEN - 20 * + 6 / - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT + 18 * CASE - 29 WHEN - NULLIF ( - - 52, MIN ( ALL - 77 ) / - + 75 * - - 54 / 16 ) THEN - 20 * + 6 / - 69 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1935
SELECT ALL + 10 * + - 5 DIV - 57 AS col1, - 66 DIV 84
----
0
0

skipif mysql # not compatible
query II rowsort label-1935
SELECT ALL + 10 * + - 5 / - 57 AS col1, - 66 / 84
----
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT COUNT( * ) + - MIN( - 5 )
----
6

skipif mysql # not compatible
query I rowsort label-1937
SELECT COUNT ( * ) + - MIN ( - 5 )
----
6

query II rowsort
SELECT 56 * - - 55 * + 21 AS col1, 15 AS col0
----
64680
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1939
SELECT ALL CASE 2 WHEN - COALESCE ( - 72, 14, - 64, CASE + - COALESCE ( + NULLIF ( + - COUNT( ALL - + ( + 53 ) ), + + 39 + - 90 ), + 5 * - CASE - - 45 WHEN + 61 * - COUNT( * ) THEN + COUNT( * ) * 9 END ) WHEN 1 * 8 THEN NULL WHEN 33 - + 69 THEN NULL ELSE 46 END * - COUNT( * ) ) THEN COUNT( * ) WHEN - 12 * 18 THEN NULL WHEN 95 * NULLIF ( + COUNT( * ) * 79, - 60 * 97 ) THEN CAST( NULL AS DECIMAL ) + 14 * 81 ELSE NULL END * 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL CASE 2 WHEN - COALESCE ( - 72, 14, - 64, CASE + - COALESCE ( + NULLIF ( + - COUNT ( ALL - + ( + 53 ) ), + + 39 + - 90 ), + 5 * - CASE - - 45 WHEN + 61 * - COUNT ( * ) THEN + COUNT ( * ) * 9 END ) WHEN 1 * 8 THEN NULL WHEN 33 - + 69 THEN NULL ELSE 46 END * - COUNT ( * ) ) THEN COUNT ( * ) WHEN - 12 * 18 THEN NULL WHEN 95 * NULLIF ( + COUNT ( * ) * 79, - 60 * 97 ) THEN CAST ( NULL AS REAL ) + 14 * 81 ELSE NULL END * 44
----
NULL

query I rowsort
SELECT ALL - 2 - 8
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT CASE - 13 WHEN - 36 THEN + 58 + - 24 + + 23 END - - - COUNT( * ) - + + 0 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1941
SELECT CASE - 13 WHEN - 36 THEN + 58 + - 24 + + 23 END - - - COUNT ( * ) - + + 0 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1942
SELECT + 70 + + MIN( ALL 79 ), 21 col2
----
149
21

skipif mysql # not compatible
query II rowsort label-1942
SELECT + 70 + + MIN ( ALL 79 ), 21 col2
----
149
21

query II rowsort
SELECT ALL - 4, 37 AS col2
----
-4
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT 50 + CASE + 28 WHEN - - 49 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT 50 + CASE + 28 WHEN - - 49 THEN + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - 36 + - COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1945
SELECT - 36 + - COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT 40 - 87 + - 5
----
-52

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

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

query I rowsort
SELECT DISTINCT - ( - 64 ) + + ( 46 )
----
110

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

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

query I rowsort
SELECT ALL - 92 + + 6 AS col0
----
-86

query I rowsort
SELECT + 86 + - 67 + - 11 + + + 69
----
77

query I rowsort
SELECT DISTINCT - 23 + - 55
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1953
SELECT - 43 DIV CAST( + + ( - + COUNT( * ) ) AS SIGNED ) + - CAST( - + AVG ( ALL 96 ) AS SIGNED ) + + 75 * - - 94 + + 85 + - 24 AS col1
----
7250

skipif mysql # not compatible
query I rowsort label-1953
SELECT - 43 / CAST ( + + ( - + COUNT ( * ) ) AS INTEGER ) + - CAST ( - + AVG ( ALL 96 ) AS INTEGER ) + + 75 * - - 94 + + 85 + - 24 AS col1
----
7250

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT 42 DIV ( 18 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1954
SELECT 42 / ( 18 ) AS col2
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT 86 + + - 15 * + 90 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT 86 + + - 15 * + 90 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 25 * 56 * + 74
----
103600

onlyif mysql # DIV for integer division: 
query II rowsort label-1958
SELECT ALL - 41 DIV - - 91, 97 AS col0
----
0
97

skipif mysql # not compatible
query II rowsort label-1958
SELECT ALL - 41 / - - 91, 97 AS col0
----
0
97

query I rowsort
SELECT DISTINCT - NULLIF ( 32, + 93 ) col0
----
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT COUNT( * ) * - NULLIF ( 6, MIN( DISTINCT 48 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1961
SELECT COUNT ( * ) * - NULLIF ( 6, MIN ( DISTINCT 48 ) ) AS col1
----
-6

query I rowsort
SELECT ALL - ( ( 19 ) ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT 6 - 25 + + + COUNT( * ) + - ( + + 48 ) + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT 6 - 25 + + + COUNT ( * ) + - ( + + 48 ) + - COUNT ( * )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT COUNT( * ) * - 42 + + - 26 + + 6 / - COALESCE ( + 65, + 4 + + 97 * 37, - - 90 * 63 + COUNT( * ) ) / + + 5 + + 90 + - 63 * + CAST( NULL AS SIGNED ) * - 9 * - + CAST( + 75 AS SIGNED ) * 21 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT COUNT ( * ) * - 42 + + - 26 + + 6 / - COALESCE ( + 65, + 4 + + 97 * 37, - - 90 * 63 + COUNT ( * ) ) / + + 5 + + 90 + - 63 * + CAST ( NULL AS INTEGER ) * - 9 * - + CAST ( + 75 AS INTEGER ) * 21 + 4
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL - SUM ( 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT 70 * + + 4 + 27 + - COUNT( * ) * 4 AS col0
----
303

skipif mysql # not compatible
query I rowsort label-1966
SELECT 70 * + + 4 + 27 + - COUNT ( * ) * 4 AS col0
----
303

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT COUNT( * ) * + 97 * + 54 AS col2
----
5238

skipif mysql # not compatible
query I rowsort label-1967
SELECT COUNT ( * ) * + 97 * + 54 AS col2
----
5238

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT COUNT( * ) + - CASE - ( + COUNT( * ) ) WHEN + 87 THEN NULL WHEN + - 31 THEN + - 27 + - - 57 / + - 52 + + 97 ELSE NULL END + 35 / + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT COUNT ( * ) + - CASE - ( + COUNT ( * ) ) WHEN + 87 THEN NULL WHEN + - 31 THEN + - 27 + - - 57 / + - 52 + + 97 ELSE NULL END + 35 / + + 75
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1969
SELECT + CASE 41 WHEN 42 THEN COALESCE ( 87, - + 16 ) * 63 * + CASE + ( - 18 ) WHEN - MAX( ALL 3 ) THEN NULL WHEN - ( 47 ) * - - 36 + 88 - + COUNT( * ) * - 59 THEN NULL WHEN - 0 THEN - 2 * 46 + + COUNT( * ) END WHEN + 22 * + 60 THEN COALESCE ( CASE COALESCE ( 6, ( + SUM( ALL + 66 ) ) * CASE - ( + 12 ) WHEN + 91 THEN 6 + 72 WHEN 27 THEN NULL WHEN ( + 28 ) * + 45 THEN NULL WHEN 3 THEN NULL END + 42 ) WHEN - 14 - 41 * CAST( NULL AS SIGNED ) THEN NULL WHEN - 39 THEN NULL WHEN - 10 THEN + 23 + - 53 * MAX( ALL - 93 + ( + 72 ) ) ELSE NULL END, NULLIF ( COUNT( * ), + 8 + 0 ) / 17, 43 * + 39, CAST( NULL AS SIGNED ) - NULLIF ( + 72, + 88 ) * 85 ) END * + 33 + - ( + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT + CASE 41 WHEN 42 THEN COALESCE ( 87, - + 16 ) * 63 * + CASE + ( - 18 ) WHEN - MAX ( ALL 3 ) THEN NULL WHEN - ( 47 ) * - - 36 + 88 - + COUNT ( * ) * - 59 THEN NULL WHEN - 0 THEN - 2 * 46 + + COUNT ( * ) END WHEN + 22 * + 60 THEN COALESCE ( CASE COALESCE ( 6, ( + SUM ( ALL + 66 ) ) * CASE - ( + 12 ) WHEN + 91 THEN 6 + 72 WHEN 27 THEN NULL WHEN ( + 28 ) * + 45 THEN NULL WHEN 3 THEN NULL END + 42 ) WHEN - 14 - 41 * CAST ( NULL AS INTEGER ) THEN NULL WHEN - 39 THEN NULL WHEN - 10 THEN + 23 + - 53 * MAX ( ALL - 93 + ( + 72 ) ) ELSE NULL END, NULLIF ( COUNT ( * ), + 8 + 0 ) / 17, 43 * + 39, CAST ( NULL AS INTEGER ) - NULLIF ( + 72, + 88 ) * 85 ) END * + 33 + - ( + 86 )
----
NULL

query I rowsort
SELECT 40 * ( - 80 )
----
-3200

query I rowsort
SELECT 40 + + 74 * + 37 AS col0
----
2778

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL ( + ( 74 ) ) * 91 + - + MAX( ALL + - 49 )
----
6783

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL ( + ( 74 ) ) * 91 + - + MAX ( ALL + - 49 )
----
6783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1973
SELECT COALESCE ( COUNT( * ), - 42 ) DIV 1
----
1

skipif mysql # not compatible
query I rowsort label-1973
SELECT COALESCE ( COUNT ( * ), - 42 ) / 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ( 22 ) + - MIN( - 16 )
----
38

skipif mysql # not compatible
query I rowsort label-1974
SELECT ( 22 ) + - MIN ( - 16 )
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - NULLIF ( - 95, + 90 * + MIN( ALL + 39 ) + + 41 + - + 66 * + 80 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1976
SELECT - NULLIF ( - 95, + 90 * + MIN ( ALL + 39 ) + + 41 + - + 66 * + 80 ) AS col0
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL - COUNT( + 94 ) + - 50
----
-51

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL - COUNT ( + 94 ) + - 50
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1979
SELECT DISTINCT - - 37 + + - 20 * + CAST( + - 46 AS SIGNED ) AS col0, 58 * ( - 29 ) * COUNT( * ) + + - COALESCE ( + - ( - 59 ), + 4 ) col1
----
957
-1741

skipif mysql # not compatible
query II rowsort label-1979
SELECT DISTINCT - - 37 + + - 20 * + CAST ( + - 46 AS INTEGER ) AS col0, 58 * ( - 29 ) * COUNT ( * ) + + - COALESCE ( + - ( - 59 ), + 4 ) col1
----
957
-1741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1980
SELECT 65 + - CAST( 4 AS SIGNED ) DIV - ( - - SUM( + 51 ) )
----
65

skipif mysql # not compatible
query I rowsort label-1980
SELECT 65 + - CAST ( 4 AS INTEGER ) / - ( - - SUM ( + 51 ) )
----
65

query I rowsort
SELECT DISTINCT - 94 + + - 27
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT 26 * + - MIN( - + 71 )
----
1846

skipif mysql # not compatible
query I rowsort label-1982
SELECT 26 * + - MIN ( - + 71 )
----
1846

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL CASE + 13 WHEN + + 86 THEN + + 77 / ( - 19 ) + - NULLIF ( + 4, + - MIN( ALL + 41 ) + - 97 ) * - - 63 WHEN - + 49 + + 89 + + COUNT( * ) THEN NULL END + + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL CASE + 13 WHEN + + 86 THEN + + 77 / ( - 19 ) + - NULLIF ( + 4, + - MIN ( ALL + 41 ) + - 97 ) * - - 63 WHEN - + 49 + + 89 + + COUNT ( * ) THEN NULL END + + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT NULLIF ( 84, - 60 + ( - COUNT( * ) ) + - - COALESCE ( + + COUNT( * ), + + ( 39 ) * - MAX( - + 65 ) + - COUNT( DISTINCT + 28 ), + COUNT( * ) ) + + - 64 + + COUNT( * ) * - - 27 ) - + 15 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-1984
SELECT NULLIF ( 84, - 60 + ( - COUNT ( * ) ) + - - COALESCE ( + + COUNT ( * ), + + ( 39 ) * - MAX ( - + 65 ) + - COUNT ( DISTINCT + 28 ), + COUNT ( * ) ) + + - 64 + + COUNT ( * ) * - - 27 ) - + 15 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT 44 * - MIN( ALL NULLIF ( + 88, - 61 ) )
----
-3872

skipif mysql # not compatible
query I rowsort label-1985
SELECT 44 * - MIN ( ALL NULLIF ( + 88, - 61 ) )
----
-3872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1986
SELECT CASE + CASE 19 WHEN 14 THEN CAST( + + 91 AS SIGNED ) END WHEN + CASE WHEN NOT ( NULL IS NOT NULL ) THEN + 51 ELSE NULL END / + + 62 THEN NULL WHEN + + 37 / SUM( + - 77 ) THEN + + 5 * + + MIN( 31 ) ELSE NULL END - 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT CASE + CASE 19 WHEN 14 THEN CAST ( + + 91 AS INTEGER ) END WHEN + CASE WHEN NOT ( NULL IS NOT NULL ) THEN + 51 ELSE NULL END / + + 62 THEN NULL WHEN + + 37 / SUM ( + - 77 ) THEN + + 5 * + + MIN ( 31 ) ELSE NULL END - 23 col0
----
NULL

query II rowsort
SELECT 94 AS col2, + 79 + + 74 AS col2
----
94
153

query I rowsort
SELECT 34 * 62 AS col1
----
2108

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT + MIN( DISTINCT 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT + MIN ( DISTINCT 43 ) AS col1
----
43

query I rowsort
SELECT ALL - 38 * + 77 AS col1
----
-2926

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1991
SELECT ALL + CAST( NULL AS SIGNED ), 21 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-1991
SELECT ALL + CAST ( NULL AS INTEGER ), 21 AS col1
----
NULL
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1992
SELECT - 41 DIV - 58 * + COUNT( * ) * + + 55
----
0

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 41 / - 58 * + COUNT ( * ) * + + 55
----
0

query I rowsort
SELECT - 47 * - 90
----
4230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1994
SELECT - COALESCE ( ( - 35 ), + SUM( - 25 ) DIV 18 + - + 79 ) * + 98 * 76
----
260680

skipif mysql # not compatible
query I rowsort label-1994
SELECT - COALESCE ( ( - 35 ), + SUM ( - 25 ) / 18 + - + 79 ) * + 98 * 76
----
260680

query I rowsort
SELECT ALL + NULLIF ( 23, 95 + + 28 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT + MAX( + COALESCE ( - 6, + ( - + 43 ) + + 48 ) ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + MAX ( + COALESCE ( - 6, + ( - + 43 ) + + 48 ) ) AS col0
----
-6

query II rowsort
SELECT ALL + 11 AS col2, + 29 col2
----
11
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1998
SELECT + + 72 * 20 * CAST( NULL AS DECIMAL ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT + + 72 * 20 * CAST ( NULL AS REAL ) * - 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1999
SELECT - + CAST( - 23 AS SIGNED ) + - + 55 - + 87 + ( 73 ) DIV + 99 * 7 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-1999
SELECT - + CAST ( - 23 AS INTEGER ) + - + 55 - + 87 + ( 73 ) / + 99 * 7 AS col2
----
-119

query I rowsort
SELECT DISTINCT - 50 * 73
----
-3650

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2001
SELECT + 39 * COUNT( * ) + + 54 + - + 11 DIV - 95 AS col1, CASE + + 55 WHEN - - MAX( - 61 ) THEN - + 81 ELSE NULL END
----
93
NULL

skipif mysql # not compatible
query II rowsort label-2001
SELECT + 39 * COUNT ( * ) + + 54 + - + 11 / - 95 AS col1, CASE + + 55 WHEN - - MAX ( - 61 ) THEN - + 81 ELSE NULL END
----
93
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2002
SELECT ALL + 17 * + ( NULLIF ( 46, - COUNT( - 43 ) ) ) AS col1, 8 + + 2 AS col0
----
782
10

skipif mysql # not compatible
query II rowsort label-2002
SELECT ALL + 17 * + ( NULLIF ( 46, - COUNT ( - 43 ) ) ) AS col1, 8 + + 2 AS col0
----
782
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - + 11 + 22 * - COUNT( * ) * + 1 + - + MAX( + 86 ) AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-2003
SELECT - + 11 + 22 * - COUNT ( * ) * + 1 + - + MAX ( + 86 ) AS col0
----
-119

query I rowsort
SELECT + 88 * - 20 AS col0
----
-1760

query I rowsort
SELECT ALL 71 + - 8 AS col0
----
63

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

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

query I rowsort
SELECT ALL - 56 + 5
----
-51

query I rowsort
SELECT + 54 - + 75
----
-21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT ALL 98 + + COALESCE ( ( NULLIF ( + - 98, - + 95 ) ), - 27 ) + - + COUNT( * ) + - 96 * ( - 65 ) * - 63 * + 42 AS col2, + 73
----
-16511041
73

skipif mysql # not compatible
query II rowsort label-2010
SELECT ALL 98 + + COALESCE ( ( NULLIF ( + - 98, - + 95 ) ), - 27 ) + - + COUNT ( * ) + - 96 * ( - 65 ) * - 63 * + 42 AS col2, + 73
----
-16511041
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT + SUM( ALL 45 ) + NULLIF ( + 77, - 56 + - 86 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-2011
SELECT + SUM ( ALL 45 ) + NULLIF ( + 77, - 56 + - 86 ) AS col1
----
122

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2013
SELECT ALL CASE - MIN( DISTINCT 39 ) WHEN + + COUNT( DISTINCT + - 73 ) * CAST( + ( 99 ) AS DECIMAL ) THEN ( - 78 ) * - 19 END * - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL CASE - MIN ( DISTINCT 39 ) WHEN + + COUNT ( DISTINCT + - 73 ) * CAST ( + ( 99 ) AS REAL ) THEN ( - 78 ) * - 19 END * - 33 AS col0
----
NULL

query I rowsort
SELECT + - 4 - - 22
----
18

query I rowsort
SELECT DISTINCT - 40 * - + 91
----
3640

query I rowsort
SELECT - 17 - - 61
----
44

query II rowsort
SELECT DISTINCT 7, - 0 AS col2
----
7
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2018
SELECT ALL 96 - CAST( NULL AS SIGNED ) AS col0, 73 AS col0
----
NULL
73

skipif mysql # not compatible
query II rowsort label-2018
SELECT ALL 96 - CAST ( NULL AS INTEGER ) AS col0, 73 AS col0
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT + 1 * + COUNT( * ) * - + 57 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2019
SELECT + 1 * + COUNT ( * ) * - + 57 AS col1
----
-57

query I rowsort
SELECT ALL 7 * - - 92
----
644

query I rowsort
SELECT + 78 + + 70 + + - COALESCE ( 17, 30 ) AS col0
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2022
SELECT ALL + COUNT( * ) DIV + 83 - - 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + COUNT ( * ) / + 83 - - 39 AS col1
----
39

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

skipif mysql # not compatible
query I rowsort label-2023
SELECT + 65 * + COUNT ( + - 72 ) AS col1
----
65

query I rowsort
SELECT + 83 + + 10
----
93

query II rowsort
SELECT DISTINCT + 82 AS col0, 18 AS col0
----
82
18

query I rowsort
SELECT + 59 + - 63
----
-4

query II rowsort
SELECT + 81 AS col0, + 82
----
81
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT 79 * + 53 + - - SUM( ALL - 81 ) - + - 84 + + 47 * CAST( + + 97 AS SIGNED )
----
8749

skipif mysql # not compatible
query I rowsort label-2028
SELECT 79 * + 53 + - - SUM ( ALL - 81 ) - + - 84 + + 47 * CAST ( + + 97 AS INTEGER )
----
8749

query I rowsort
SELECT ALL - 6 * + 13
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT + CAST( 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-2030
SELECT + CAST ( 68 AS INTEGER )
----
68

query I rowsort
SELECT - 63 * - 5 * + 52 + - 19 + 1
----
16362

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT - 88 DIV - 15
----
5

skipif mysql # not compatible
query I rowsort label-2032
SELECT - 88 / - 15
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2033
SELECT + 98 col1, CAST( + - 32 AS SIGNED )
----
98
-32

skipif mysql # not compatible
query II rowsort label-2033
SELECT + 98 col1, CAST ( + - 32 AS INTEGER )
----
98
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2034
SELECT ALL + 30 AS col1, COUNT( ALL + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) - - 92
----
30
92

skipif mysql # not compatible
query II rowsort label-2034
SELECT ALL + 30 AS col1, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) - - 92
----
30
92

query I rowsort
SELECT ALL + 89 * - - 26
----
2314

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT + 52 DIV + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT + 52 / + 57 AS col1
----
0

query I rowsort
SELECT - + 26 * 38 + - 67 AS col1
----
-1055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT ALL - 6 * + 58 * + + ( 91 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - 6 * + 58 * + + ( 91 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT - 2 DIV 27 * + - 79
----
0

skipif mysql # not compatible
query I rowsort label-2039
SELECT - 2 / 27 * + - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - CASE + - 22 WHEN - - 88 - + 42 THEN NULL WHEN + MIN( + 47 ) * NULLIF ( - 81, + 24 * 26 * 63 - + 66 - 17 ) - 70 THEN - 41 + 2 + - - COUNT( * ) END + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT - CASE + - 22 WHEN - - 88 - + 42 THEN NULL WHEN + MIN ( + 47 ) * NULLIF ( - 81, + 24 * 26 * 63 - + 66 - 17 ) - 70 THEN - 41 + 2 + - - COUNT ( * ) END + - 71 AS col1
----
NULL

query II rowsort
SELECT + 79 AS col2, 73 AS col2
----
79
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2042
SELECT DISTINCT 65 * COUNT( * ) + - + 53 * - COALESCE ( - COUNT( * ), - CASE - 91 WHEN 67 THEN ( - 84 ) WHEN + NULLIF ( 61, - 23 ) THEN 14 WHEN - + ( + 83 ) THEN NULL END ) * - - CAST( NULL AS SIGNED ) * - 46 / + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT 65 * COUNT ( * ) + - + 53 * - COALESCE ( - COUNT ( * ), - CASE - 91 WHEN 67 THEN ( - 84 ) WHEN + NULLIF ( 61, - 23 ) THEN 14 WHEN - + ( + 83 ) THEN NULL END ) * - - CAST ( NULL AS INTEGER ) * - 46 / + 28 AS col1
----
NULL

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

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

query I rowsort
SELECT - - 99 + + 80 + - 96 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL - 44 * - 42 * + COUNT( * ) AS col2
----
1848

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - 44 * - 42 * + COUNT ( * ) AS col2
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT - NULLIF ( - - ( - 82 ), + 14 ) * + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2046
SELECT - NULLIF ( - - ( - 82 ), + 14 ) * + COUNT ( * ) AS col1
----
82

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

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

query I rowsort
SELECT ALL 71 - - + 19
----
90

query I rowsort
SELECT 31 + - 94 - + - ( - 67 ) AS col2
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT 5 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT 5 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT COALESCE ( 61, 97 * + - COUNT( * ) * + 57 ) * - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-2051
SELECT COALESCE ( 61, 97 * + - COUNT ( * ) * + 57 ) * - COUNT ( * )
----
-61

query I rowsort
SELECT 14 - + ( 32 )
----
-18

query I rowsort
SELECT DISTINCT ( + 32 ) * 15 + + - 24 + - 68 * + 46 + - + 56 + + 96
----
-2632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2054
SELECT COUNT( * ) - + ( - COALESCE ( + - COALESCE ( - 34, + 9 ), 54 * - CAST( + 34 AS SIGNED ) + 38, MIN( - - 83 ) * + 42 + + 97 * + 50 ) )
----
35

skipif mysql # not compatible
query I rowsort label-2054
SELECT COUNT ( * ) - + ( - COALESCE ( + - COALESCE ( - 34, + 9 ), 54 * - CAST ( + 34 AS INTEGER ) + 38, MIN ( - - 83 ) * + 42 + + 97 * + 50 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT NULLIF ( 29, + COUNT( * ) ) * + 29 * - COUNT( * ) AS col1
----
-841

skipif mysql # not compatible
query I rowsort label-2055
SELECT NULLIF ( 29, + COUNT ( * ) ) * + 29 * - COUNT ( * ) AS col1
----
-841

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT DISTINCT 47 * + 19 * + COUNT( * ) AS col2
----
893

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT 47 * + 19 * + COUNT ( * ) AS col2
----
893

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT COUNT( - ( + 58 ) ) * + + 66
----
66

skipif mysql # not compatible
query I rowsort label-2058
SELECT COUNT ( - ( + 58 ) ) * + + 66
----
66

query I rowsort
SELECT ALL 40 + - ( + - 63 ) AS col1
----
103

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

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL - 58 + - - COUNT ( * ) * 58 AS col1
----
0

query I rowsort
SELECT ALL + 0 * - 66 * - 60 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT ALL + 89 + - - CAST( 89 AS SIGNED )
----
178

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL + 89 + - - CAST ( 89 AS INTEGER )
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL COUNT( ALL - 99 ) + + 66
----
67

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL COUNT ( ALL - 99 ) + + 66
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT 73 + + 20 + - COUNT( * ) + + 20
----
112

skipif mysql # not compatible
query I rowsort label-2065
SELECT 73 + + 20 + - COUNT ( * ) + + 20
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT DISTINCT + 6 * + COALESCE ( - 10, - 35 * - NULLIF ( + 86, 73 ) ) / + + CAST( NULL AS SIGNED ) * - COUNT( * ) * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT + 6 * + COALESCE ( - 10, - 35 * - NULLIF ( + 86, 73 ) ) / + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT - 89 + + SUM( DISTINCT - 73 ) + + NULLIF ( - COUNT( * ), + COUNT( * ) ) * - ( - 28 )
----
-190

skipif mysql # not compatible
query I rowsort label-2067
SELECT - 89 + + SUM ( DISTINCT - 73 ) + + NULLIF ( - COUNT ( * ), + COUNT ( * ) ) * - ( - 28 )
----
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT + - ( - - 4 ) * 74 DIV + 5 + 33 - + 35
----
-61

skipif mysql # not compatible
query I rowsort label-2068
SELECT + - ( - - 4 ) * 74 / + 5 + 33 - + 35
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT + 72 DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2069
SELECT + 72 / + 85 AS col1
----
0

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

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

query I rowsort
SELECT 12 + - NULLIF ( 9, + 2 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT DISTINCT + - 25 DIV - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT + - 25 / - 44 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT + COUNT( * ) - - 84
----
85

skipif mysql # not compatible
query I rowsort label-2073
SELECT + COUNT ( * ) - - 84
----
85

query I rowsort
SELECT 34 + - 49 + - + ( 96 ) AS col0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2075
SELECT ALL 12 col1, - 89 DIV + ( - + 9 ), 10 * - COUNT( ALL + NULLIF ( 42, + 3 + - 83 ) ) * + + ( + 44 ) * + COALESCE ( + 37, - COUNT( * ) ) + - 36 AS col0
----
12
9
-16316

skipif mysql # not compatible
query III rowsort label-2075
SELECT ALL 12 col1, - 89 / + ( - + 9 ), 10 * - COUNT ( ALL + NULLIF ( 42, + 3 + - 83 ) ) * + + ( + 44 ) * + COALESCE ( + 37, - COUNT ( * ) ) + - 36 AS col0
----
12
9
-16316

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT 14 + MIN( DISTINCT - 8 ) * - 49 * 23
----
9030

skipif mysql # not compatible
query I rowsort label-2076
SELECT 14 + MIN ( DISTINCT - 8 ) * - 49 * 23
----
9030

query II rowsort
SELECT 24 + 19 + + + 93 + - 4 AS col0, + 33
----
132
33

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

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

query I rowsort
SELECT 33 + 72 * + 34 * 71
----
173841

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT 40 DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2080
SELECT 40 / - 73 AS col2
----
0

query I rowsort
SELECT ALL + 16 * + + 74
----
1184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2082
SELECT ALL - ( 58 ) + + COUNT( DISTINCT CAST( 6 AS DECIMAL ) )
----
-57

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL - ( 58 ) + + COUNT ( DISTINCT CAST ( 6 AS REAL ) )
----
-57

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2085
SELECT ALL 48 * 95 + COALESCE ( NULLIF ( + 74, + 83 ), - 76 * - 13 + + - COUNT( * ) - + 43 DIV + MIN( CAST( + 41 AS SIGNED ) ) )
----
4634

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL 48 * 95 + COALESCE ( NULLIF ( + 74, + 83 ), - 76 * - 13 + + - COUNT ( * ) - + 43 / + MIN ( CAST ( + 41 AS INTEGER ) ) )
----
4634

query I rowsort
SELECT 46 + - 6 * + 0 * - CASE - 98 WHEN - + 11 / - + 74 THEN + 50 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2087
SELECT DISTINCT 91 * 71 + - 67 + + - NULLIF ( + COALESCE ( 24, - - 1 * + 94 + 30 DIV - 78 + 16 + - 74 + + 5 + - 84 * + + 44 * + COUNT( * ), - 90 * - 64, + - 78 - - + CAST( NULL AS SIGNED ) * + COALESCE ( ( + + 29 ), 50 + 73 * + 38 ) ), COUNT( * ) )
----
6370

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT 91 * 71 + - 67 + + - NULLIF ( + COALESCE ( 24, - - 1 * + 94 + 30 / - 78 + 16 + - 74 + + 5 + - 84 * + + 44 * + COUNT ( * ), - 90 * - 64, + - 78 - - + CAST ( NULL AS INTEGER ) * + COALESCE ( ( + + 29 ), 50 + 73 * + 38 ) ), COUNT ( * ) )
----
6370

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

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

query I rowsort
SELECT ALL + 29 * + + 79 * - - 30 AS col2
----
68730

query I rowsort
SELECT 9 + - COALESCE ( + 57, - + 74 ) + 78 AS col1
----
30

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

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

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

query I rowsort
SELECT 88 * + - 16 * + - 20 AS col2
----
28160

query II rowsort
SELECT + 70 + + 72 + + - 46 AS col2, 45 col1
----
96
45

query II rowsort
SELECT 77 AS col1, - CASE 71 WHEN - 45 THEN - 76 END
----
77
NULL

query II rowsort
SELECT NULLIF ( 2, 13 ) AS col2, - 56 * 20 col0
----
2
-1120

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT - 31 * 89 * + - MIN( + 67 ), - COUNT( * ) AS col1
----
184853
-1

skipif mysql # not compatible
query II rowsort label-2098
SELECT - 31 * 89 * + - MIN ( + 67 ), - COUNT ( * ) AS col1
----
184853
-1

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2102
SELECT DISTINCT 36 + 85 * + 95 + + - COALESCE ( - 86, - + 10 * - 7 + + COUNT( * ) + - 99 + + 56 DIV + 97 * + 35 - - 73 ) DIV COUNT( * ) col2
----
8197

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT 36 + 85 * + 95 + + - COALESCE ( - 86, - + 10 * - 7 + + COUNT ( * ) + - 99 + + 56 / + 97 * + 35 - - 73 ) / COUNT ( * ) col2
----
8197

query I rowsort
SELECT - NULLIF ( - - 95, - - 27 + + 54 ) + + 16 AS col2
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-2104
SELECT DISTINCT + 75 + - - 87 col1, COALESCE ( + - 96, 42 DIV + 95 ) AS col0
----
162
-96

skipif mysql # not compatible
query II rowsort label-2104
SELECT DISTINCT + 75 + - - 87 col1, COALESCE ( + - 96, 42 / + 95 ) AS col0
----
162
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT COUNT( 36 )
----
1

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT COUNT ( 36 )
----
1

query I rowsort
SELECT ALL + 85 + - 42 + 68 col1
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2107
SELECT DISTINCT - 12 + + + 78 + ( - - 64 ) DIV - MIN( + - 20 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT - 12 + + + 78 + ( - - 64 ) / - MIN ( + - 20 ) AS col0
----
69

query I rowsort
SELECT + + 77 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - - 76 - - + 11 * - - 71 + - 6 + - COUNT( * ) AS col0
----
850

skipif mysql # not compatible
query I rowsort label-2109
SELECT - - 76 - - + 11 * - - 71 + - 6 + - COUNT ( * ) AS col0
----
850

query I rowsort
SELECT - 49 * + 92 AS col2
----
-4508

onlyif mysql # DIV for integer division: 
query I rowsort label-2111
SELECT ALL - - 9 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - - 9 / + 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2112
SELECT + + 95 / - - ( + NULLIF ( CAST( NULL AS SIGNED ), - + COUNT( * ) / + - COUNT( + 93 ) - + ( + 3 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT + + 95 / - - ( + NULLIF ( CAST ( NULL AS INTEGER ), - + COUNT ( * ) / + - COUNT ( + 93 ) - + ( + 3 ) ) )
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT ALL - 42 * + - 19 - 49 * + - 72 AS col0, 79 * - 16 * + - CASE 54 WHEN + 18 THEN - - COUNT( * ) WHEN - + 99 + + 26 - - 84 THEN + - 63 END / + 63 + - 52 AS col1
----
4326
NULL

skipif mysql # not compatible
query II rowsort label-2114
SELECT ALL - 42 * + - 19 - 49 * + - 72 AS col0, 79 * - 16 * + - CASE 54 WHEN + 18 THEN - - COUNT ( * ) WHEN - + 99 + + 26 - - 84 THEN + - 63 END / + 63 + - 52 AS col1
----
4326
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2117
SELECT ALL - + 17 DIV + 2 col2, - 68
----
-8
-68

skipif mysql # not compatible
query II rowsort label-2117
SELECT ALL - + 17 / + 2 col2, - 68
----
-8
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL COUNT( * ) * - 30 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL COUNT ( * ) * - 30 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2119
SELECT ALL + + CASE + CAST( NULL AS SIGNED ) WHEN + + 81 THEN - - 81 END, - 25 AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL + + CASE + CAST ( NULL AS INTEGER ) WHEN + + 81 THEN - - 81 END, - 25 AS col1
----
NULL
-25

query I rowsort
SELECT ALL 95 * - 50 + ( - ( - 66 ) ) * 42 * - 56
----
-159982

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

skipif mysql # not compatible
query I rowsort label-2121
SELECT MIN ( + - CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT - + 99 + 90
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT + - NULLIF ( + + 55, NULLIF ( - COUNT( * ), + - 38 ) - + SUM( + 11 ) ) + + 76
----
21

skipif mysql # not compatible
query I rowsort label-2123
SELECT + - NULLIF ( + + 55, NULLIF ( - COUNT ( * ), + - 38 ) - + SUM ( + 11 ) ) + + 76
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2124
SELECT + - NULLIF ( + COALESCE ( - 90, - 11 * - + 65 DIV - + 57 * - + 77, - + 75 ), + - 21 ) - - - 78 + - + 90
----
-78

skipif mysql # not compatible
query I rowsort label-2124
SELECT + - NULLIF ( + COALESCE ( - 90, - 11 * - + 65 / - + 57 * - + 77, - + 75 ), + - 21 ) - - - 78 + - + 90
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2125
SELECT 61 * + 24 + - 81, COUNT( * ) * + + 57 * + - 67 AS col2
----
1383
-3819

skipif mysql # not compatible
query II rowsort label-2125
SELECT 61 * + 24 + - 81, COUNT ( * ) * + + 57 * + - 67 AS col2
----
1383
-3819

query I rowsort
SELECT - NULLIF ( 31, + 14 + - ( - 45 ) ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT ALL - 40 * + - ( + 90 ) + COUNT( * ) / - - 8 * - 10 * ( - - 51 ) * + CAST( NULL AS SIGNED ) * - 86 + + 53 + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL - 40 * + - ( + 90 ) + COUNT ( * ) / - - 8 * - 10 * ( - - 51 ) * + CAST ( NULL AS INTEGER ) * - 86 + + 53 + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT SUM( 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2128
SELECT SUM ( 5 ) AS col2
----
5

query I rowsort
SELECT ALL 83 + + 98 + + - 77
----
104

query I rowsort
SELECT + 89 + 85
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT + CASE + 58 WHEN + - COUNT( * ) THEN NULL WHEN 66 - + 46 THEN - COALESCE ( - ( 84 ), + 57 DIV 21 + + 31 * + ( + - COALESCE ( 79, - COUNT( DISTINCT + 56 ), + 75 DIV + 58 ) ) * 2 ) - 0 WHEN - 69 * - + 59 + - 2 + + 13 THEN NULL ELSE - - ( COALESCE ( ( + 7 ), - 0, ( - 30 ) - COUNT( * ) ) ) END + ( + ( - 55 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-2131
SELECT + CASE + 58 WHEN + - COUNT ( * ) THEN NULL WHEN 66 - + 46 THEN - COALESCE ( - ( 84 ), + 57 / 21 + + 31 * + ( + - COALESCE ( 79, - COUNT ( DISTINCT + 56 ), + 75 / + 58 ) ) * 2 ) - 0 WHEN - 69 * - + 59 + - 2 + + 13 THEN NULL ELSE - - ( COALESCE ( ( + 7 ), - 0, ( - 30 ) - COUNT ( * ) ) ) END + ( + ( - 55 ) )
----
-48

query I rowsort
SELECT DISTINCT 88 + 91 col2
----
179

query I rowsort
SELECT + 53 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + COUNT( * ) + - 51 * ( - MAX( DISTINCT + 47 ) )
----
2398

skipif mysql # not compatible
query I rowsort label-2134
SELECT + COUNT ( * ) + - 51 * ( - MAX ( DISTINCT + 47 ) )
----
2398

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT + 5 + 1 + + 74 DIV 61 + + 65 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2135
SELECT + 5 + 1 + + 74 / 61 + + 65 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT - COUNT( * ) + NULLIF ( 62, - - ( + + 72 ) + - - 23 / - + 22 )
----
61

skipif mysql # not compatible
query I rowsort label-2136
SELECT - COUNT ( * ) + NULLIF ( 62, - - ( + + 72 ) + - - 23 / - + 22 )
----
61

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

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

query I rowsort
SELECT ALL 87 + + + 35 AS col1
----
122

query I rowsort
SELECT ALL ( 22 ) col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL - MAX( DISTINCT 75 ) - + 23 + + - 11 * + 91 AS col1
----
-1099

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL - MAX ( DISTINCT 75 ) - + 23 + + - 11 * + 91 AS col1
----
-1099

query I rowsort
SELECT - 80 + 39 - + 93
----
-134

query I rowsort
SELECT ALL - 21 * + 92
----
-1932

query I rowsort
SELECT - + CASE 24 WHEN + 42 THEN + 49 ELSE + 84 END
----
-84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT - CASE + 96 WHEN + - 64 THEN NULL WHEN - ( - 98 ) THEN NULL ELSE NULLIF ( 18, - 19 + + - 33 ) * + 26 + + + 94 + - 28 * - - 88 - - - 93 + + 43 + + COUNT( * ) END AS col0
----
1951

skipif mysql # not compatible
query I rowsort label-2145
SELECT - CASE + 96 WHEN + - 64 THEN NULL WHEN - ( - 98 ) THEN NULL ELSE NULLIF ( 18, - 19 + + - 33 ) * + 26 + + + 94 + - 28 * - - 88 - - - 93 + + 43 + + COUNT ( * ) END AS col0
----
1951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2146
SELECT + 42 + - CASE - ( 77 ) WHEN - CAST( NULL AS SIGNED ) + - - COALESCE ( + 47, - 57 + - - 61 * - NULLIF ( + COUNT( * ), + - COUNT( * ) * + 71 + 18 + - COUNT( * ) + + 34 * - - 72 - + 52 + - 70 ) ) + + CASE - - 54 WHEN - 96 - 33 + - 93 THEN NULL WHEN ( + 91 ) + - 22 THEN + ( 15 ) - - 42 WHEN 11 + + NULLIF ( - 72 - - NULLIF ( - 8, - 94 ), CAST( COUNT( * ) AS SIGNED ) + 49 ) THEN NULL WHEN 60 THEN NULL ELSE NULL END THEN NULL WHEN 45 THEN NULL ELSE 50 END AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2146
SELECT + 42 + - CASE - ( 77 ) WHEN - CAST ( NULL AS INTEGER ) + - - COALESCE ( + 47, - 57 + - - 61 * - NULLIF ( + COUNT ( * ), + - COUNT ( * ) * + 71 + 18 + - COUNT ( * ) + + 34 * - - 72 - + 52 + - 70 ) ) + + CASE - - 54 WHEN - 96 - 33 + - 93 THEN NULL WHEN ( + 91 ) + - 22 THEN + ( 15 ) - - 42 WHEN 11 + + NULLIF ( - 72 - - NULLIF ( - 8, - 94 ), CAST ( COUNT ( * ) AS INTEGER ) + 49 ) THEN NULL WHEN 60 THEN NULL ELSE NULL END THEN NULL WHEN 45 THEN NULL ELSE 50 END AS col0
----
-8

query I rowsort
SELECT + - 72 * + - 14 AS col2
----
1008

query I rowsort
SELECT - + 66 * - 82 AS col1
----
5412

query II rowsort
SELECT + 27, 20 AS col2
----
27
20

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

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

query II rowsort
SELECT ALL - + COALESCE ( 46, - 79 ) AS col2, 77 * - 23
----
-46
-1771

query I rowsort
SELECT ALL - 84 * + - 75 AS col2
----
6300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT + 5 + + 15 + + CAST( NULL AS SIGNED ) + + + COALESCE ( 35, 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT + 5 + + 15 + + CAST ( NULL AS INTEGER ) + + + COALESCE ( 35, 75 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2154
SELECT ALL - 45 DIV - 76 * + 89 * + + ( + 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - 45 / - 76 * + 89 * + + ( + 28 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT 39 * - 33 + + 92 + - 47 + + COUNT( DISTINCT - - 82 ) * + 8
----
-1234

skipif mysql # not compatible
query I rowsort label-2155
SELECT 39 * - 33 + + 92 + - 47 + + COUNT ( DISTINCT - - 82 ) * + 8
----
-1234

onlyif mysql # aggregate syntax: 
query II rowsort label-2156
SELECT + + 74 AS col2, COALESCE ( + + COUNT( * ), + + ( ( - 6 ) ) ) + - 97 AS col0
----
74
-96

skipif mysql # not compatible
query II rowsort label-2156
SELECT + + 74 AS col2, COALESCE ( + + COUNT ( * ), + + ( ( - 6 ) ) ) + - 97 AS col0
----
74
-96

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

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

query II rowsort
SELECT - 12 AS col0, 76 AS col1
----
-12
76

query II rowsort
SELECT 34 AS col0, ( - 79 ) + + ( - 51 ) AS col1
----
34
-130

query I rowsort
SELECT 34 * + 73
----
2482

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

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

query II rowsort
SELECT ALL 14 AS col1, + 23 * 16
----
14
368

query I rowsort
SELECT ALL 47 + - ( - 91 ) AS col2
----
138

query I rowsort
SELECT 49 * 50
----
2450

query I rowsort
SELECT 84 * + 13
----
1092

query I rowsort
SELECT 74 * + 93 AS col0
----
6882

query I rowsort
SELECT ALL CASE 15 WHEN + 3 THEN - 52 END - 36 AS col0
----
NULL

query II rowsort
SELECT ALL 94, + 53 col2
----
94
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT CAST( - NULLIF ( - 56, - - 45 ) AS SIGNED ) + - 89
----
-33

skipif mysql # not compatible
query I rowsort label-2169
SELECT CAST ( - NULLIF ( - 56, - - 45 ) AS INTEGER ) + - 89
----
-33

query II rowsort
SELECT DISTINCT 97, 58 AS col0
----
97
58

query II rowsort
SELECT COALESCE ( 95, - 76 * 95 * - 87 ) * 51 + - 14 AS col0, CASE + 17 WHEN - 11 + + - 24 THEN + 80 ELSE NULL END * + 91 AS col0
----
4831
NULL

query I rowsort
SELECT ALL 75 * 52
----
3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2173
SELECT COALESCE ( + + 52, + + CASE 69 WHEN + + 0 DIV - + 90 DIV - 69 THEN NULL WHEN + COUNT( * ) THEN - CAST( NULL AS SIGNED ) ELSE NULL END - NULLIF ( + 52, - COUNT( * ) ) - - COUNT( * ) * - SUM( - 52 ) DIV 81 * 83 - - + 3 + 16 * - 37 )
----
52

skipif mysql # not compatible
query I rowsort label-2173
SELECT COALESCE ( + + 52, + + CASE 69 WHEN + + 0 / - + 90 / - 69 THEN NULL WHEN + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) ELSE NULL END - NULLIF ( + 52, - COUNT ( * ) ) - - COUNT ( * ) * - SUM ( - 52 ) / 81 * 83 - - + 3 + 16 * - 37 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - - MAX( ALL + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-2174
SELECT - - MAX ( ALL + 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - 31 + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-2175
SELECT - 31 + COUNT ( * )
----
-30

query I rowsort
SELECT - 40 * - 91
----
3640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2177
SELECT 84 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT 84 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2178
SELECT DISTINCT 28 * - 0 + - 12 - COUNT( * ), 69 col1
----
-13
69

skipif mysql # not compatible
query II rowsort label-2178
SELECT DISTINCT 28 * - 0 + - 12 - COUNT ( * ), 69 col1
----
-13
69

query I rowsort
SELECT DISTINCT 32 * - 27 * 55
----
-47520

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

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

query I rowsort
SELECT ( - 54 ) * + 11
----
-594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2182
SELECT + + CASE - - COUNT( * ) WHEN 12 - - 98 THEN - - CAST( NULL AS SIGNED ) - SUM( + 67 ) + 26 + + COUNT( * ) WHEN + 65 THEN + 29 + - 31 + - + 94 / 31 * NULLIF ( 23, + + 26 ) * - + COUNT( * ) + 0 ELSE NULL END AS col1, + 84 * 33 AS col2
----
NULL
2772

skipif mysql # not compatible
query II rowsort label-2182
SELECT + + CASE - - COUNT ( * ) WHEN 12 - - 98 THEN - - CAST ( NULL AS INTEGER ) - SUM ( + 67 ) + 26 + + COUNT ( * ) WHEN + 65 THEN + 29 + - 31 + - + 94 / 31 * NULLIF ( 23, + + 26 ) * - + COUNT ( * ) + 0 ELSE NULL END AS col1, + 84 * 33 AS col2
----
NULL
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT COALESCE ( + MAX( - 88 ), 9 * - 51 + - COUNT( * ) * + 64 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2183
SELECT COALESCE ( + MAX ( - 88 ), 9 * - 51 + - COUNT ( * ) * + 64 ) AS col0
----
-88

query II rowsort
SELECT + 6 AS col2, + 73
----
6
73

query I rowsort
SELECT 1 * + 21 + 56 * - 41 * - 76 * - 6
----
-1046955

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2186
SELECT - COUNT( ALL + 37 ) * - 99 DIV + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-2186
SELECT - COUNT ( ALL + 37 ) * - 99 / + COUNT ( * )
----
99

query I rowsort
SELECT DISTINCT - + ( - 65 ) * + 15
----
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2188
SELECT + COUNT( * ) AS col1, - 66 DIV + COUNT( * )
----
1
-66

skipif mysql # not compatible
query II rowsort label-2188
SELECT + COUNT ( * ) AS col1, - 66 / + COUNT ( * )
----
1
-66

query I rowsort
SELECT ( + 71 ) - - - 94
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT 50 - - + 38 * - - SUM( DISTINCT + 42 ) * + 63 * + 50 + - 97 + + 16 + 6 + - 74 + 48 AS col2
----
5027349

skipif mysql # not compatible
query I rowsort label-2190
SELECT 50 - - + 38 * - - SUM ( DISTINCT + 42 ) * + 63 * + 50 + - 97 + + 16 + 6 + - 74 + 48 AS col2
----
5027349

query I rowsort
SELECT DISTINCT - 16 + COALESCE ( + 46, - - 42 ) AS col0
----
30

query I rowsort
SELECT ALL + ( + - 17 ) + - ( - 12 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2193
SELECT ALL - 98 + - 80 - COUNT( * ) DIV + 94 AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - 98 + - 80 - COUNT ( * ) / + 94 AS col2
----
-178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT ALL + 26 / - - CAST( NULL AS SIGNED ) / 2 * + 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + 26 / - - CAST ( NULL AS INTEGER ) / 2 * + 19 col1
----
NULL

query I rowsort
SELECT 68 + - 2 * - 83
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL COUNT( ALL 99 ) - + 48 - - 69 * 30
----
2023

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL COUNT ( ALL 99 ) - + 48 - - 69 * 30
----
2023

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2197
SELECT ALL + 26 DIV + 73, - 11 + + COALESCE ( - 48, + COUNT( + - 75 ) * - 74 + 93 - - 15 ) - - 48 AS col1
----
0
-11

skipif mysql # not compatible
query II rowsort label-2197
SELECT ALL + 26 / + 73, - 11 + + COALESCE ( - 48, + COUNT ( + - 75 ) * - 74 + 93 - - 15 ) - - 48 AS col1
----
0
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2198
SELECT ALL 87 * + CAST( - 86 AS SIGNED ), - MIN( 24 ) AS col0
----
-7482
-24

skipif mysql # not compatible
query II rowsort label-2198
SELECT ALL 87 * + CAST ( - 86 AS INTEGER ), - MIN ( 24 ) AS col0
----
-7482
-24

query I rowsort
SELECT DISTINCT - 54 * + 48 AS col1
----
-2592

query I rowsort
SELECT ALL + 99 - 9 AS col1
----
90

query II rowsort
SELECT 74 * 73 col1, 68 * - 72 AS col1
----
5402
-4896

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

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

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

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL SUM ( ALL - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT - MIN( ALL - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT - MIN ( ALL - 43 )
----
43

query I rowsort
SELECT 68 + + + NULLIF ( + 35, - 87 * - 97 ) + 33 * - 42 AS col1
----
-1283

query I rowsort
SELECT + 38 * + 22 * 9
----
7524

query II rowsort
SELECT ALL - ( - + 48 ), 66 + + 63 - 67 AS col0
----
48
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT + 0 + 25 + - + 49 * + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + 0 + 25 + - + 49 * + + COUNT ( * )
----
-24

query II rowsort
SELECT ALL 4 * - - 22 AS col2, + 44
----
88
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2210
SELECT + ( 95 ) * + SUM( DISTINCT - 1 ) - + 32 AS col1, COALESCE ( + ( - ( + AVG ( - 27 ) ) ), - + 56 ) + CAST( NULL AS SIGNED ) + - 7 + ( + 38 ) + + 60 / - NULLIF ( + + 47, - COUNT( * ) * - 54 ) AS col2
----
-127
NULL

skipif mysql # not compatible
query II rowsort label-2210
SELECT + ( 95 ) * + SUM ( DISTINCT - 1 ) - + 32 AS col1, COALESCE ( + ( - ( + AVG ( - 27 ) ) ), - + 56 ) + CAST ( NULL AS INTEGER ) + - 7 + ( + 38 ) + + 60 / - NULLIF ( + + 47, - COUNT ( * ) * - 54 ) AS col2
----
-127
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT 37 * 61 * 10 * + 13 + COUNT( * ) AS col0
----
293411

skipif mysql # not compatible
query I rowsort label-2211
SELECT 37 * 61 * 10 * + 13 + COUNT ( * ) AS col0
----
293411

query I rowsort
SELECT - + 32 - 46 AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT ALL 22 * 48 - + 46 * + CAST( NULL AS SIGNED ) + - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL 22 * 48 - + 46 * + CAST ( NULL AS INTEGER ) + - 99 AS col1
----
NULL

query I rowsort
SELECT ALL + 82 * 91
----
7462

onlyif mysql # aggregate syntax: 
query II rowsort label-2215
SELECT + + COUNT( * ) * - + 6 * - 91 * + NULLIF ( 51, - 86 + + + 75 * 20 * 99 * COUNT( * ) ), - 96 AS col0
----
27846
-96

skipif mysql # not compatible
query II rowsort label-2215
SELECT + + COUNT ( * ) * - + 6 * - 91 * + NULLIF ( 51, - 86 + + + 75 * 20 * 99 * COUNT ( * ) ), - 96 AS col0
----
27846
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT ALL - 2 DIV 1
----
-2

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - 2 / 1
----
-2

query I rowsort
SELECT + 35 * - + 20 + - ( 81 ) AS col1
----
-781

query I rowsort
SELECT + 54 * 68
----
3672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2219
SELECT CASE + + 57 WHEN + 84 * + - COUNT( * ) + 24 THEN SUM( DISTINCT 39 ) / + 53 - + + 25 + - 74 + + - COUNT( * ) * + 67 + + 39 WHEN - ( - + 20 ) / + - NULLIF ( - CAST( NULL AS SIGNED ), + 74 * 49 + - 11 ) THEN + COALESCE ( + COUNT( * ), - 3 * - ( - 49 ) * + 66 / + 3, 66 * - 70, 36 ) * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT CASE + + 57 WHEN + 84 * + - COUNT ( * ) + 24 THEN SUM ( DISTINCT 39 ) / + 53 - + + 25 + - 74 + + - COUNT ( * ) * + 67 + + 39 WHEN - ( - + 20 ) / + - NULLIF ( - CAST ( NULL AS INTEGER ), + 74 * 49 + - 11 ) THEN + COALESCE ( + COUNT ( * ), - 3 * - ( - 49 ) * + 66 / + 3, 66 * - 70, 36 ) * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT CASE - + 11 WHEN - COUNT( * ) THEN + MAX( - ( - - 4 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2220
SELECT CASE - + 11 WHEN - COUNT ( * ) THEN + MAX ( - ( - - 4 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL + 39 * + 30 * + + COALESCE ( COUNT( * ), + NULLIF ( SUM( + 25 ), SUM( + 7 ) ) + 53 ) AS col2
----
1170

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + 39 * + 30 * + + COALESCE ( COUNT ( * ), + NULLIF ( SUM ( + 25 ), SUM ( + 7 ) ) + 53 ) AS col2
----
1170

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

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

query II rowsort
SELECT + 26 AS col0, 17
----
26
17

onlyif mysql # DIV for integer division: 
query II rowsort label-2225
SELECT DISTINCT + 16, - 59 DIV + 55 + + 1 col2
----
16
0

skipif mysql # not compatible
query II rowsort label-2225
SELECT DISTINCT + 16, - 59 / + 55 + + 1 col2
----
16
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT + 58 * - COUNT( - ( + 46 ) ) - + CAST( + + AVG ( + - 4 ) AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-2228
SELECT + 58 * - COUNT ( - ( + 46 ) ) - + CAST ( + + AVG ( + - 4 ) AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT - COUNT( * ) - - 6 + - 30 + 76 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2229
SELECT - COUNT ( * ) - - 6 + - 30 + 76 AS col1
----
51

query I rowsort
SELECT - 93 * + 74
----
-6882

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT + CASE 11 WHEN - MAX( ALL + 23 ) THEN AVG ( 48 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT + CASE 11 WHEN - MAX ( ALL + 23 ) THEN AVG ( 48 ) END
----
NULL

query II rowsort
SELECT ALL 6 col1, 35 + + + 40 AS col0
----
6
75

query I rowsort
SELECT DISTINCT - - 8 + + 53 AS col2
----
61

query I rowsort
SELECT DISTINCT - 96 + + 2 * + ( + + NULLIF ( 87, + 90 * + 31 ) )
----
78

query I rowsort
SELECT ALL + - 95 * + + 90 + - 35
----
-8585

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2236
SELECT DISTINCT - - COUNT( * ) * 57 DIV - 15, + COALESCE ( + - 18, SUM( 50 ) * 30 + + COUNT( * ) ) AS col0
----
-3
-18

skipif mysql # not compatible
query II rowsort label-2236
SELECT DISTINCT - - COUNT ( * ) * 57 / - 15, + COALESCE ( + - 18, SUM ( 50 ) * 30 + + COUNT ( * ) ) AS col0
----
-3
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2237
SELECT - 18 AS col2, 35 * - 4 + CASE - 46 WHEN - + MIN( + + 96 ) THEN + - CAST( NULL AS SIGNED ) ELSE - 74 END
----
-18
-214

skipif mysql # not compatible
query II rowsort label-2237
SELECT - 18 AS col2, 35 * - 4 + CASE - 46 WHEN - + MIN ( + + 96 ) THEN + - CAST ( NULL AS INTEGER ) ELSE - 74 END
----
-18
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT - NULLIF ( - 68, + COALESCE ( - 95, CAST( - - ( 17 ) AS SIGNED ) + - - 5, + - CAST( COUNT( * ) AS SIGNED ) + - MAX( DISTINCT + 63 ), - 24 ) * + 96 )
----
68

skipif mysql # not compatible
query I rowsort label-2238
SELECT - NULLIF ( - 68, + COALESCE ( - 95, CAST ( - - ( 17 ) AS INTEGER ) + - - 5, + - CAST ( COUNT ( * ) AS INTEGER ) + - MAX ( DISTINCT + 63 ), - 24 ) * + 96 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT ALL - COALESCE ( + - 91, + ( + + 56 ) ) + 31 * NULLIF ( 86, 23 * SUM( ALL 28 ) / + 94 * + + 85 + - 90 + 76 ) AS col2
----
2757

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL - COALESCE ( + - 91, + ( + + 56 ) ) + 31 * NULLIF ( 86, 23 * SUM ( ALL 28 ) / + 94 * + + 85 + - 90 + 76 ) AS col2
----
2757

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT - + 83 + - NULLIF ( + + 89, + + COUNT( * ) ) + - 94 + + ( + - 80 ) AS col2
----
-346

skipif mysql # not compatible
query I rowsort label-2240
SELECT - + 83 + - NULLIF ( + + 89, + + COUNT ( * ) ) + - 94 + + ( + - 80 ) AS col2
----
-346

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT DISTINCT - COUNT( * ) + + 81 + + 59 + ( - 85 )
----
54

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT - COUNT ( * ) + + 81 + + 59 + ( - 85 )
----
54

query I rowsort
SELECT DISTINCT + 44 * + 58
----
2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2243
SELECT DISTINCT - 2 DIV - + 12 - - - 75 + + - MIN( ALL - 67 )
----
-8

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT - 2 / - + 12 - - - 75 + + - MIN ( ALL - 67 )
----
-8

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

skipif mysql # not compatible
query II rowsort label-2244
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, + ( + 59 ) * - + COUNT ( * ) col2
----
NULL
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT + 60 * - - COALESCE ( 97, - - 94 * + COUNT( * ) ) AS col0
----
5820

skipif mysql # not compatible
query I rowsort label-2245
SELECT + 60 * - - COALESCE ( 97, - - 94 * + COUNT ( * ) ) AS col0
----
5820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2246
SELECT CAST( CASE + MAX( 3 ) WHEN + 40 THEN NULL WHEN + 4 + - - 98 * + 92 THEN + 99 + + 51 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT CAST ( CASE + MAX ( 3 ) WHEN + 40 THEN NULL WHEN + 4 + - - 98 * + 92 THEN + 99 + + 51 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT + 95 * COUNT( * ) AS col0, + 18 col1
----
95
18

skipif mysql # not compatible
query II rowsort label-2247
SELECT + 95 * COUNT ( * ) AS col0, + 18 col1
----
95
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ( + + CASE 20 WHEN + MIN( 88 ) * 48 * - 61 + - + 63 THEN NULL WHEN - - 46 / 47 THEN NULL ELSE - 71 END )
----
-71

skipif mysql # not compatible
query I rowsort label-2248
SELECT ( + + CASE 20 WHEN + MIN ( 88 ) * 48 * - 61 + - + 63 THEN NULL WHEN - - 46 / 47 THEN NULL ELSE - 71 END )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT + 24 * - + 38 * 55 * - - NULLIF ( + 2, + 80 ) * - COALESCE ( - 90, - CAST( + NULLIF ( - 70, - 45 ) AS SIGNED ) + + COUNT( * ), - 75 ) AS col2
----
-9028800

skipif mysql # not compatible
query I rowsort label-2249
SELECT + 24 * - + 38 * 55 * - - NULLIF ( + 2, + 80 ) * - COALESCE ( - 90, - CAST ( + NULLIF ( - 70, - 45 ) AS INTEGER ) + + COUNT ( * ), - 75 ) AS col2
----
-9028800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2250
SELECT + COALESCE ( 62, + 32 * - + 81 + SUM( DISTINCT - + 33 ) + - 75, - AVG ( + 68 ) DIV - MIN( + - 8 ) ) - ( - - COUNT( * ) ) + + 21 + - + 63 * - + 39 DIV - - COUNT( * ) + + + 92 DIV + + 98 - 29 * - 75 col0
----
4714

skipif mysql # not compatible
query I rowsort label-2250
SELECT + COALESCE ( 62, + 32 * - + 81 + SUM ( DISTINCT - + 33 ) + - 75, - AVG ( + 68 ) / - MIN ( + - 8 ) ) - ( - - COUNT ( * ) ) + + 21 + - + 63 * - + 39 / - - COUNT ( * ) + + + 92 / + + 98 - 29 * - 75 col0
----
4714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT ( NULLIF ( + 0, + - 97 * - 76 + + - 52 * + 30 - - - 82 ) ) * + ( - 97 ) - - + 53 + - - CASE ( - - COUNT( ALL + 55 ) ) WHEN CAST( NULL AS SIGNED ) + + + 15 THEN - 11 WHEN 67 THEN NULL END + - - 6 - 21 / 23 / - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT ( NULLIF ( + 0, + - 97 * - 76 + + - 52 * + 30 - - - 82 ) ) * + ( - 97 ) - - + 53 + - - CASE ( - - COUNT ( ALL + 55 ) ) WHEN CAST ( NULL AS INTEGER ) + + + 15 THEN - 11 WHEN 67 THEN NULL END + - - 6 - 21 / 23 / - 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT + CASE WHEN NOT ( NULL ) >= - MIN( ALL + 25 ) THEN + + COUNT( * ) + + + ( + + 72 ) ELSE NULL END * + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT + CASE WHEN NOT ( NULL ) >= - MIN ( ALL + 25 ) THEN + + COUNT ( * ) + + + ( + + 72 ) ELSE NULL END * + 11 AS col2
----
NULL

query II rowsort
SELECT + 70 * + 9 AS col2, + 95
----
630
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT + 29 * - COALESCE ( - CASE + 72 WHEN 73 + - + 24 THEN + 92 WHEN + + 93 THEN NULL ELSE - 22 + CAST( - ( + + 95 ) AS SIGNED ) END, - - 18 ) AS col2
----
-3393

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 29 * - COALESCE ( - CASE + 72 WHEN 73 + - + 24 THEN + 92 WHEN + + 93 THEN NULL ELSE - 22 + CAST ( - ( + + 95 ) AS INTEGER ) END, - - 18 ) AS col2
----
-3393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2255
SELECT + 40 + 57 + + 61 - + 80 + - + ( 47 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + 40 + 57 + + 61 - + 80 + - + ( 47 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT NULLIF ( 68, - MAX( - 26 ) * 71 * + 60 + + ( COUNT( * ) ) )
----
68

skipif mysql # not compatible
query I rowsort label-2256
SELECT NULLIF ( 68, - MAX ( - 26 ) * 71 * + 60 + + ( COUNT ( * ) ) )
----
68

query I rowsort
SELECT + 92 * - 20 + 8
----
-1832

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

skipif mysql # not compatible
query I rowsort label-2258
SELECT - 23 - + - CAST ( NULL AS INTEGER ) + - + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL 16 + - COUNT( * ) - - 45
----
60

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL 16 + - COUNT ( * ) - - 45
----
60

query I rowsort
SELECT ALL 75 + + 26
----
101

query I rowsort
SELECT DISTINCT - 0 + - 14
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT CASE + 21 WHEN - CAST( NULL AS SIGNED ) + - + 72 THEN - 59 WHEN - 77 THEN NULL ELSE 86 END col2
----
86

skipif mysql # not compatible
query I rowsort label-2262
SELECT CASE + 21 WHEN - CAST ( NULL AS INTEGER ) + - + 72 THEN - 59 WHEN - 77 THEN NULL ELSE 86 END col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2263
SELECT ALL - 67 + - COALESCE ( + 57, + 44 * + 30 ) * - - AVG ( ALL - CAST( NULL AS SIGNED ) ) + + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - 67 + - COALESCE ( + 57, + 44 * + 30 ) * - - AVG ( ALL - CAST ( NULL AS INTEGER ) ) + + 79 AS col0
----
NULL

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

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

query I rowsort
SELECT ALL - 50 + - - 16
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT 10 * MIN( + 85 ) AS col2
----
850

skipif mysql # not compatible
query I rowsort label-2266
SELECT 10 * MIN ( + 85 ) AS col2
----
850

onlyif mysql # aggregate syntax: 
query II rowsort label-2267
SELECT - 83 * 75 + + 88 * + + 3, ( - COUNT( * ) ) AS col1
----
-5961
-1

skipif mysql # not compatible
query II rowsort label-2267
SELECT - 83 * 75 + + 88 * + + 3, ( - COUNT ( * ) ) AS col1
----
-5961
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT DISTINCT - - NULLIF ( - 42, + 9 * - - 67 - - 42 - + - 65 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - - NULLIF ( - 42, + 9 * - - 67 - - 42 - + - 65 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT DISTINCT NULLIF ( + 31, + + 17 * - COUNT( * ) + + - ( - COUNT( * ) ) )
----
31

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT NULLIF ( + 31, + + 17 * - COUNT ( * ) + + - ( - COUNT ( * ) ) )
----
31

query II rowsort
SELECT - 49 * 38, 78 AS col2
----
-1862
78

query I rowsort
SELECT DISTINCT - 24 - 5 + + 61
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT COUNT( * ) + + 87 * + 22
----
1915

skipif mysql # not compatible
query I rowsort label-2272
SELECT COUNT ( * ) + + 87 * + 22
----
1915

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL - + SUM( DISTINCT - 87 ) * - 83 * - 92 * - MAX( - 42 )
----
27901944

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - + SUM ( DISTINCT - 87 ) * - 83 * - 92 * - MAX ( - 42 )
----
27901944

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + 16 * + 31 * COUNT( ALL - 99 )
----
496

skipif mysql # not compatible
query I rowsort label-2274
SELECT + 16 * + 31 * COUNT ( ALL - 99 )
----
496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2275
SELECT CAST( - 70 AS SIGNED ) * 82 + + - CAST( - 17 AS SIGNED )
----
-5723

skipif mysql # not compatible
query I rowsort label-2275
SELECT CAST ( - 70 AS INTEGER ) * 82 + + - CAST ( - 17 AS INTEGER )
----
-5723

query I rowsort
SELECT 58 * + 66
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT 49 + COUNT( * ) + + + 44
----
94

skipif mysql # not compatible
query I rowsort label-2277
SELECT 49 + COUNT ( * ) + + + 44
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2278
SELECT + 27 * 38 + - CAST( NULL AS SIGNED ) + ( + 39 ) / - CASE - ( 47 ) WHEN - 77 THEN NULL WHEN - 37 * COUNT( * ) THEN + 33 + + - COUNT( * ) * - 21 + - 50 + 10 + + 72 * - - 13 ELSE 60 + + + 21 END * + COUNT( * ) + ( + - COALESCE ( + ( + - 33 ), + - 7 ) ) * - COUNT( DISTINCT - 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT + 27 * 38 + - CAST ( NULL AS INTEGER ) + ( + 39 ) / - CASE - ( 47 ) WHEN - 77 THEN NULL WHEN - 37 * COUNT ( * ) THEN + 33 + + - COUNT ( * ) * - 21 + - 50 + 10 + + 72 * - - 13 ELSE 60 + + + 21 END * + COUNT ( * ) + ( + - COALESCE ( + ( + - 33 ), + - 7 ) ) * - COUNT ( DISTINCT - 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT - NULLIF ( - - ( 96 ), - + ( COUNT( ALL + ( + - 79 ) ) ) / + + 16 - 10 )
----
-96

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT - NULLIF ( - - ( 96 ), - + ( COUNT ( ALL + ( + - 79 ) ) ) / + + 16 - 10 )
----
-96

query II rowsort
SELECT DISTINCT - 45, - 98 AS col1
----
-45
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT SUM( - + 72 ) + - 71
----
-143

skipif mysql # not compatible
query I rowsort label-2281
SELECT SUM ( - + 72 ) + - 71
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2282
SELECT 94 + - CAST( - 96 AS SIGNED ) col1, - 16
----
190
-16

skipif mysql # not compatible
query II rowsort label-2282
SELECT 94 + - CAST ( - 96 AS INTEGER ) col1, - 16
----
190
-16

query I rowsort
SELECT 13 * 18 col0
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2284
SELECT ALL 11 + + 97 + 39 + + ( - + COALESCE ( 64, - COUNT( * ) * - + 5 + - 35, - + 48 + - + 96 * + 66 - CAST( NULL AS SIGNED ) + + + COUNT( * ), + 16 * + - 30 * ( + CASE 21 WHEN - 14 THEN - - 58 * CAST( + 96 AS SIGNED ) + - CASE 20 WHEN - 77 THEN + 99 DIV 61 + + + 31 DIV + 36 WHEN 83 THEN - ( AVG ( DISTINCT + 69 ) ) END * 63 ELSE - COUNT( * ) END ) DIV NULLIF ( CAST( 22 AS SIGNED ) DIV + 77, 12 + + 56 ) ) ) + ( 74 ) * + 38 * + 29
----
81631

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL 11 + + 97 + 39 + + ( - + COALESCE ( 64, - COUNT ( * ) * - + 5 + - 35, - + 48 + - + 96 * + 66 - CAST ( NULL AS INTEGER ) + + + COUNT ( * ), + 16 * + - 30 * ( + CASE 21 WHEN - 14 THEN - - 58 * CAST ( + 96 AS INTEGER ) + - CASE 20 WHEN - 77 THEN + 99 / 61 + + + 31 / + 36 WHEN 83 THEN - ( AVG ( DISTINCT + 69 ) ) END * 63 ELSE - COUNT ( * ) END ) / NULLIF ( CAST ( 22 AS INTEGER ) / + 77, 12 + + 56 ) ) ) + ( 74 ) * + 38 * + 29
----
81631

query I rowsort
SELECT 84 * - 66
----
-5544

query I rowsort
SELECT 4 * - NULLIF ( - + 64, 25 ) + - 8 + + - 48
----
200

query I rowsort
SELECT ALL 29 * - + 75
----
-2175

query I rowsort
SELECT DISTINCT + 23 + - 97 col2
----
-74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT ALL 10 DIV + 16 - - 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL 10 / + 16 - - 30 AS col1
----
30

query I rowsort
SELECT ALL - 21 + 43 AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT 16 * COUNT( * ) DIV - SUM( - 39 ) - - 21
----
21

skipif mysql # not compatible
query I rowsort label-2292
SELECT 16 * COUNT ( * ) / - SUM ( - 39 ) - - 21
----
21

query I rowsort
SELECT ALL 28 + + 26
----
54

query I rowsort
SELECT - ( + 0 ) - - 65
----
65

query II rowsort
SELECT ALL 2 AS col0, - 63 * + 89 * 35
----
2
-196245

query I rowsort
SELECT 53 + - 88 + - - 26 + - - 46
----
37

query I rowsort
SELECT DISTINCT + 27 col0
----
27

query II rowsort
SELECT ALL 94 - + 82 * + 85, 67 AS col1
----
-6876
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2299
SELECT 32 + COALESCE ( COUNT( * ), 6 + + 8 ) AS col1, 52 AS col1
----
33
52

skipif mysql # not compatible
query II rowsort label-2299
SELECT 32 + COALESCE ( COUNT ( * ), 6 + + 8 ) AS col1, 52 AS col1
----
33
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT DISTINCT COALESCE ( - - 32, + SUM( ALL - 90 ) + - + 37 ) - + 50 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT COALESCE ( - - 32, + SUM ( ALL - 90 ) + - + 37 ) - + 50 AS col0
----
-18

query I rowsort
SELECT 94 - + 47 AS col0
----
47

query I rowsort
SELECT - 13 * - 49 AS col2
----
637

query I rowsort
SELECT 71 * - - 34 + + + 33 AS col1
----
2447

query II rowsort
SELECT DISTINCT + 29 col0, 31 AS col2
----
29
31

query I rowsort
SELECT 73 + - 83 + 15 AS col1
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT ALL + 80 DIV + 96 * + + 95
----
0

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL + 80 / + 96 * + + 95
----
0

query I rowsort
SELECT 68 * - + 54
----
-3672

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

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT 7 / - COUNT ( * )
----
-7

query I rowsort
SELECT ALL + 81 * - - 18 AS col0
----
1458

query I rowsort
SELECT 94 * - - COALESCE ( + + 58, 64 ) * - 64 + + 90 * ( - 78 )
----
-355948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2312
SELECT 68 * - 30 DIV - + COUNT( - 46 )
----
2040

skipif mysql # not compatible
query I rowsort label-2312
SELECT 68 * - 30 / - + COUNT ( - 46 )
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT 3 * - COALESCE ( + - 28, COUNT( * ) + COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-2313
SELECT 3 * - COALESCE ( + - 28, COUNT ( * ) + COUNT ( * ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT MIN( - 65 ) * - 67 * 67 - - ( - MIN( - - 16 ) ) + + COUNT( * ) * 55 * + 8 + - - 8 * - 21 AS col2
----
292041

skipif mysql # not compatible
query I rowsort label-2314
SELECT MIN ( - 65 ) * - 67 * 67 - - ( - MIN ( - - 16 ) ) + + COUNT ( * ) * 55 * + 8 + - - 8 * - 21 AS col2
----
292041

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT SUM( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-2315
SELECT SUM ( - 3 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT DISTINCT + CAST( 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + CAST ( 47 AS INTEGER )
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL + SUM( 40 ) * + 6 + + COUNT( * )
----
241

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + SUM ( 40 ) * + 6 + + COUNT ( * )
----
241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT DISTINCT + CAST( - - 38 AS SIGNED ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT + CAST ( - - 38 AS INTEGER ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT + COUNT( * ) * + + 30 + + - 10
----
20

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT + COUNT ( * ) * + + 30 + + - 10
----
20

query II rowsort
SELECT 14 AS col1, + ( + 26 )
----
14
26

query I rowsort
SELECT - 68 + + - 11 + - + 46 * + + 44 * 85 AS col1
----
-172119

query I rowsort
SELECT + + 39 * + - 49
----
-1911

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2324
SELECT COUNT( + CAST( 59 AS DECIMAL ) ) * 51 + - - 16 - + 58 * - - 57 + + 49 AS col0
----
-3190

skipif mysql # not compatible
query I rowsort label-2324
SELECT COUNT ( + CAST ( 59 AS REAL ) ) * 51 + - - 16 - + 58 * - - 57 + + 49 AS col0
----
-3190

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ALL + - ( - - COUNT( * ) ) - + 89
----
-90

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + - ( - - COUNT ( * ) ) - + 89
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT + - 79 * - CAST( - + MIN( + 77 ) AS SIGNED ) * + 92
----
-559636

skipif mysql # not compatible
query I rowsort label-2326
SELECT + - 79 * - CAST ( - + MIN ( + 77 ) AS INTEGER ) * + 92
----
-559636

query II rowsort
SELECT DISTINCT 42, - 54 AS col0
----
42
-54

query I rowsort
SELECT DISTINCT + + NULLIF ( + 6, + - 13 - - - 94 ) - + 11 * 91
----
-995

query I rowsort
SELECT + 31 + 57
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2330
SELECT - COUNT( * ) AS col2, - 91 + + 61 - + 92 + CAST( NULL AS SIGNED ) * 43
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-2330
SELECT - COUNT ( * ) AS col2, - 91 + + 61 - + 92 + CAST ( NULL AS INTEGER ) * 43
----
-1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2331
SELECT ALL 28 DIV - 62, 12 AS col0
----
0
12

skipif mysql # not compatible
query II rowsort label-2331
SELECT ALL 28 / - 62, 12 AS col0
----
0
12

onlyif mysql # DIV for integer division: 
query II rowsort label-2332
SELECT ALL 16, 43 DIV - 60 * - 33 * - 19 * 62 * 94 + - - 18 * 54 AS col0
----
16
972

skipif mysql # not compatible
query II rowsort label-2332
SELECT ALL 16, 43 / - 60 * - 33 * - 19 * 62 * 94 + - - 18 * 54 AS col0
----
16
972

query I rowsort
SELECT + - 77 * - 44
----
3388

onlyif mysql # aggregate syntax: 
query II rowsort label-2334
SELECT ALL + COUNT( * ) AS col0, - 33 * 60 AS col0
----
1
-1980

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL + COUNT ( * ) AS col0, - 33 * 60 AS col0
----
1
-1980

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

query I rowsort
SELECT - ( - - 69 ) col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT ALL 59 + 13 + + 20 * - + NULLIF ( + - COUNT( * ), + - CAST( NULL AS SIGNED ) - - - AVG ( DISTINCT + 42 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL 59 + 13 + + 20 * - + NULLIF ( + - COUNT ( * ), + - CAST ( NULL AS INTEGER ) - - - AVG ( DISTINCT + 42 ) ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2338
SELECT - 30 * 50 DIV - + ( + COUNT( * ) )
----
1500

skipif mysql # not compatible
query I rowsort label-2338
SELECT - 30 * 50 / - + ( + COUNT ( * ) )
----
1500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2339
SELECT + NULLIF ( - COUNT( * ), 84 ) + - + 23 - CAST( - 54 AS SIGNED ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2339
SELECT + NULLIF ( - COUNT ( * ), 84 ) + - + 23 - CAST ( - 54 AS INTEGER ) AS col1
----
30

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2341
SELECT 40 DIV - 26 - - CAST( + 38 AS SIGNED ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2341
SELECT 40 / - 26 - - CAST ( + 38 AS INTEGER ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2342
SELECT ALL 92 DIV - 82 + - COALESCE ( - ( - 61 ), ( - - 75 ) * + + 73 * - COUNT( DISTINCT - 48 ), + + 30 * - - 54 + + + 73 * 91 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL 92 / - 82 + - COALESCE ( - ( - 61 ), ( - - 75 ) * + + 73 * - COUNT ( DISTINCT - 48 ), + + 30 * - - 54 + + + 73 * 91 ) AS col2
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2343
SELECT DISTINCT 61 DIV - 32 + - 89 + + 29 * + COALESCE ( + 54, 4 + ( + COUNT( * ) ) + - + ( + 41 ) + 87 * + - 63 ) + + 68 AS col2
----
1544

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT 61 / - 32 + - 89 + + 29 * + COALESCE ( + 54, 4 + ( + COUNT ( * ) ) + - + ( + 41 ) + 87 * + - 63 ) + + 68 AS col2
----
1544

query I rowsort
SELECT DISTINCT + 32 * - 3 / + CASE AVG ( 18 ) WHEN 93 + 10 * - + 95 THEN - - 28 * - 35 + 3 + - - ( - 84 ) END / - 6 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ALL + 57 DIV - 94 + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL + 57 / - 94 + 30 AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT 41 DIV 95 + - - 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2346
SELECT 41 / 95 + - - 67 AS col1
----
67

query I rowsort
SELECT - 64 + - 90 - + 0 + + 28 * 69 + 25 - + 9
----
1794

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT 14 * CAST( NULL AS SIGNED ) + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT 14 * CAST ( NULL AS INTEGER ) + 18 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2350
SELECT ( - COUNT( - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2350
SELECT ( - COUNT ( - CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT - 42 * 78 * 35 + - + NULLIF ( 4, - 4 ) - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT - 42 * 78 * 35 + - + NULLIF ( 4, - 4 ) - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL - 31 * + COUNT( * ) + 84 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL - 31 * + COUNT ( * ) + 84 AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT - NULLIF ( + COUNT( DISTINCT - - 90 ), - - CASE 16 WHEN + MAX( + - 78 ) THEN NULL ELSE + COUNT( * ) + - 23 / + 86 END + + 93 + - COUNT( * ) ) * ( + 40 ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-2353
SELECT - NULLIF ( + COUNT ( DISTINCT - - 90 ), - - CASE 16 WHEN + MAX ( + - 78 ) THEN NULL ELSE + COUNT ( * ) + - 23 / + 86 END + + 93 + - COUNT ( * ) ) * ( + 40 ) col2
----
-40

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

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + ( ( + + CAST ( + + AVG ( + CAST ( 78 AS INTEGER ) ) AS INTEGER ) ) ) col2
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL + NULLIF ( - NULLIF ( 74, + 96 ), - NULLIF ( ( 33 ), + COUNT( * ) ) )
----
-74

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL + NULLIF ( - NULLIF ( 74, + 96 ), - NULLIF ( ( 33 ), + COUNT ( * ) ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT + - SUM( ALL + 28 ) * - 87 * - 76
----
-185136

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + - SUM ( ALL + 28 ) * - 87 * - 76
----
-185136

query I rowsort
SELECT DISTINCT - + 89 * - ( - - 81 ) * 46 * ( + 45 ) - + 85 * COALESCE ( - 94, + ( + - 69 ) * ( + 44 ) * - 51, - 37 ) col1
----
14930620

query II rowsort
SELECT - - 72 * + + 37, 34 + + 53 + - 33 col0
----
2664
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + + 67 * + 96 * + COUNT( * )
----
6432

skipif mysql # not compatible
query I rowsort label-2360
SELECT + + 67 * + 96 * + COUNT ( * )
----
6432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2361
SELECT ALL + COUNT( * ) * - 66 + + COALESCE ( 7, + + COUNT( * ) DIV + - 17 - + + 47 + + 30 - 16, - CASE 1 WHEN - 93 THEN + - 14 + - 25 WHEN 96 - MIN( + ( + 41 ) ) + + 45 DIV - 82 * - + 31 THEN + + ( - + 65 ) * - + ( 96 ) ELSE NULL END ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL + COUNT ( * ) * - 66 + + COALESCE ( 7, + + COUNT ( * ) / + - 17 - + + 47 + + 30 - 16, - CASE 1 WHEN - 93 THEN + - 14 + - 25 WHEN 96 - MIN ( + ( + 41 ) ) + + 45 / - 82 * - + 31 THEN + + ( - + 65 ) * - + ( 96 ) ELSE NULL END ) col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2362
SELECT - COUNT( * ) * COUNT( * ) + CAST( + + 77 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-2362
SELECT - COUNT ( * ) * COUNT ( * ) + CAST ( + + 77 AS INTEGER )
----
76

query I rowsort
SELECT DISTINCT 44 * - - 93
----
4092

query I rowsort
SELECT DISTINCT + 84 * + 51 AS col1
----
4284

query II rowsort
SELECT ALL + + 76 * + 8 AS col1, - NULLIF ( - 59, - - 37 ) * - 16 AS col2
----
608
-944

query II rowsort
SELECT DISTINCT - 93 + 35, - 75 AS col1
----
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2367
SELECT DISTINCT 1 + - CAST( + 80 AS SIGNED ) AS col0, + 21 * - 28
----
-79
-588

skipif mysql # not compatible
query II rowsort label-2367
SELECT DISTINCT 1 + - CAST ( + 80 AS INTEGER ) AS col0, + 21 * - 28
----
-79
-588

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

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

query I rowsort
SELECT ALL 18 + + + ( ( 54 ) )
----
72

query I rowsort
SELECT - 42 * + 59
----
-2478

query II rowsort
SELECT 48 AS col1, + 21 AS col2
----
48
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT - 17, 39 + - COUNT( * ) AS col1
----
-17
38

skipif mysql # not compatible
query II rowsort label-2372
SELECT - 17, 39 + - COUNT ( * ) AS col1
----
-17
38

query II rowsort
SELECT 62, - 71 AS col1
----
62
-71

query I rowsort
SELECT ALL - 45 + - 22 AS col1
----
-67

query I rowsort
SELECT ALL 6 + - 85 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2376
SELECT ( COUNT( * ) ) * - 92 + COUNT( * ) - 36 * + ( + ( - CASE - 31 WHEN - + 24 THEN - COUNT( * ) + + 89 + + - 64 * - 28 ELSE - + 86 END ) ) * + CAST( NULL AS SIGNED ) + 2 * CAST( NULL AS DECIMAL ) * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT ( COUNT ( * ) ) * - 92 + COUNT ( * ) - 36 * + ( + ( - CASE - 31 WHEN - + 24 THEN - COUNT ( * ) + + 89 + + - 64 * - 28 ELSE - + 86 END ) ) * + CAST ( NULL AS INTEGER ) + 2 * CAST ( NULL AS REAL ) * - 12
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT COUNT( * ) + + - 63 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT COUNT ( * ) + + - 63 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT 46 * + 63 - COUNT( * ) * + 47
----
2851

skipif mysql # not compatible
query I rowsort label-2379
SELECT 46 * + 63 - COUNT ( * ) * + 47
----
2851

query I rowsort
SELECT 47 * + 9 AS col0
----
423

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT 54 DIV 54 col1
----
1

skipif mysql # not compatible
query I rowsort label-2381
SELECT 54 / 54 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT ALL - + CAST( - 61 AS SIGNED ) col0
----
61

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - + CAST ( - 61 AS INTEGER ) col0
----
61

query II rowsort
SELECT 43, 76 AS col2
----
43
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT COUNT( * ) - - + 77 * - - 89
----
6854

skipif mysql # not compatible
query I rowsort label-2384
SELECT COUNT ( * ) - - + 77 * - - 89
----
6854

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

query I rowsort
SELECT DISTINCT - 51 * - - 94 * - + 95 AS col2
----
455430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT ALL + - COUNT( * ) * + CAST( - + NULLIF ( + 59, + ( + 71 ) * - 51 ) AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL + - COUNT ( * ) * + CAST ( - + NULLIF ( + 59, + ( + 71 ) * - 51 ) AS INTEGER )
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2388
SELECT - COUNT( * ) * + 17 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT - COUNT ( * ) * + 17 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - - 29 * - + 12 * 72
----
-25056

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - 33 * - - MIN( ALL + 94 ) + 51
----
-3051

skipif mysql # not compatible
query I rowsort label-2390
SELECT - 33 * - - MIN ( ALL + 94 ) + 51
----
-3051

query I rowsort
SELECT ALL + - 16 * - 25 AS col0
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ( COUNT( * ) ) * 46 * 28 + + + 51
----
1339

skipif mysql # not compatible
query I rowsort label-2392
SELECT ( COUNT ( * ) ) * 46 * 28 + + + 51
----
1339

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

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

query I rowsort
SELECT - 93 + + 29 * - 40
----
-1253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2395
SELECT ALL CASE - 0 WHEN COUNT( DISTINCT + - 86 ) THEN ( + - CAST( NULL AS SIGNED ) ) ELSE + + 2 END + - ( + MIN( - - 27 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL CASE - 0 WHEN COUNT ( DISTINCT + - 86 ) THEN ( + - CAST ( NULL AS INTEGER ) ) ELSE + + 2 END + - ( + MIN ( - - 27 ) )
----
-25

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

query I rowsort
SELECT ALL - 91 + 73
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - + ( + + 77 ) + + MIN( ALL 50 )
----
-27

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - + ( + + 77 ) + + MIN ( ALL 50 )
----
-27

query I rowsort
SELECT 79 * - 84 col1
----
-6636

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL - 22 + + COUNT( * ) * - + 20
----
-42

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - 22 + + COUNT ( * ) * - + 20
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL - 49 * MIN( + ( 66 ) ) AS col0
----
-3234

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - 49 * MIN ( + ( 66 ) ) AS col0
----
-3234

query I rowsort
SELECT 19 * - 47
----
-893

query I rowsort
SELECT ALL 65 * + 82
----
5330

query I rowsort
SELECT DISTINCT - 32 * ( - 19 ) AS col0
----
608

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL + COUNT( 19 ) - - 43 col2
----
44

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL + COUNT ( 19 ) - - 43 col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2406
SELECT 28 + + - 65 + + ( + 58 ) * - 37 * COUNT( * ) + - - 12 AS col1, - 23 * + 20 + 21 AS col2
----
-2171
-439

skipif mysql # not compatible
query II rowsort label-2406
SELECT 28 + + - 65 + + ( + 58 ) * - 37 * COUNT ( * ) + - - 12 AS col1, - 23 * + 20 + 21 AS col2
----
-2171
-439

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT 99 + - + 14 * 52 + + COUNT( * )
----
-628

skipif mysql # not compatible
query I rowsort label-2407
SELECT 99 + - + 14 * 52 + + COUNT ( * )
----
-628

query I rowsort
SELECT ( + + 98 ) - - 44
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2409
SELECT ALL COUNT( 74 ) DIV - + ( - 97 ) * - - ( + 90 ) + - - 72 + - 33
----
39

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL COUNT ( 74 ) / - + ( - 97 ) * - - ( + 90 ) + - - 72 + - 33
----
39

query I rowsort
SELECT 51 * + 38 + 60
----
1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT CAST( + 45 AS SIGNED ) * + + 99 * 82
----
365310

skipif mysql # not compatible
query I rowsort label-2411
SELECT CAST ( + 45 AS INTEGER ) * + + 99 * 82
----
365310

onlyif mysql # DIV for integer division: 
query I rowsort label-2412
SELECT - + ( - 62 ) DIV 38 + + 7
----
8

skipif mysql # not compatible
query I rowsort label-2412
SELECT - + ( - 62 ) / 38 + + 7
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL + 28 * COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + 28 * COUNT ( * ) col2
----
28

query II rowsort
SELECT ALL + 22 * - - 83 + - ( + 10 ) AS col0, + 40
----
1816
40

query I rowsort
SELECT + 84 + + + 88 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL + COUNT( * ) * - + 99 + - - 96 * + 7 AS col0
----
573

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL + COUNT ( * ) * - + 99 + - - 96 * + 7 AS col0
----
573

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL - - MIN( ALL + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL - - MIN ( ALL + 32 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2419
SELECT ALL 94 + + CASE + 41 WHEN + 13 THEN - 75 WHEN COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + - 64 + - 71 + + 14 + - CAST( 37 AS SIGNED ) / - 76 + + 77 * - 97 + ( + 44 ) + COALESCE ( - 62, COUNT( * ) + + + COALESCE ( - 66, - + 98 * + 66 + - 16 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL 94 + + CASE + 41 WHEN + 13 THEN - 75 WHEN COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + - 64 + - 71 + + 14 + - CAST ( 37 AS INTEGER ) / - 76 + + 77 * - 97 + ( + 44 ) + COALESCE ( - 62, COUNT ( * ) + + + COALESCE ( - 66, - + 98 * + 66 + - 16 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 28 + - 63 + 21 * + - 14 AS col2
----
-329

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT 94 * - COUNT( * ) * - 78 AS col0
----
7332

skipif mysql # not compatible
query I rowsort label-2421
SELECT 94 * - COUNT ( * ) * - 78 AS col0
----
7332

query I rowsort
SELECT ALL - 95 + NULLIF ( 27, + - 2 + + ( - 36 ) + + - 30 * + 33 * 85 )
----
-68

query I rowsort
SELECT DISTINCT - - NULLIF ( - - 0, - - 88 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT + + CAST( + + 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-2424
SELECT + + CAST ( + + 70 AS INTEGER )
----
70

query I rowsort
SELECT DISTINCT - 51 + - 97
----
-148

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

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

query I rowsort
SELECT + 14 * 68 AS col0
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - COUNT( * ) + - 31 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2428
SELECT - COUNT ( * ) + - 31 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL 97 + - + MIN( ALL 48 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL 97 + - + MIN ( ALL 48 ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2430
SELECT DISTINCT - 2 * - - CASE - 31 WHEN + - 29 THEN + - 63 * - + 63 * + COUNT( * ) WHEN - - 2 THEN NULL WHEN + 10 THEN - - 21 * 37 * - CAST( - + 58 AS SIGNED ) * - 4 - - 73 + + ( ( - 28 ) ) WHEN + + 33 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - 2 * - - CASE - 31 WHEN + - 29 THEN + - 63 * - + 63 * + COUNT ( * ) WHEN - - 2 THEN NULL WHEN + 10 THEN - - 21 * 37 * - CAST ( - + 58 AS INTEGER ) * - 4 - - 73 + + ( ( - 28 ) ) WHEN + + 33 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT + COUNT( * ) - + - 59 + + 17 col2
----
77

skipif mysql # not compatible
query I rowsort label-2431
SELECT + COUNT ( * ) - + - 59 + + 17 col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT - CASE - 14 WHEN - 0 THEN NULL WHEN - 81 THEN + + 35 * + + NULLIF ( + CAST( + 19 AS SIGNED ), 99 ) + + 69 * + - ( + 28 ) WHEN - 26 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT - CASE - 14 WHEN - 0 THEN NULL WHEN - 81 THEN + + 35 * + + NULLIF ( + CAST ( + 19 AS INTEGER ), 99 ) + + 69 * + - ( + 28 ) WHEN - 26 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 42 * 37 AS col1
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL SUM( DISTINCT 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL SUM ( DISTINCT 60 ) AS col1
----
60

query I rowsort
SELECT DISTINCT 35 * - ( ( - - 56 ) ) * + + 0 AS col2
----
0

query I rowsort
SELECT - 47 * + 31
----
-1457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2437
SELECT ALL COALESCE ( - + 98, + - 33 DIV + + 97 + - NULLIF ( - 73, - 69 + + + COUNT( * ) + + ( + NULLIF ( - - 99, + 5 ) ) ), - - 90 + - ( MIN( - + 8 ) ) + - 59 * - 67 - ( + 55 ) * + 43 ), + CAST( + 49 AS SIGNED ) + + - 31 AS col0
----
-98
18

skipif mysql # not compatible
query II rowsort label-2437
SELECT ALL COALESCE ( - + 98, + - 33 / + + 97 + - NULLIF ( - 73, - 69 + + + COUNT ( * ) + + ( + NULLIF ( - - 99, + 5 ) ) ), - - 90 + - ( MIN ( - + 8 ) ) + - 59 * - 67 - ( + 55 ) * + 43 ), + CAST ( + 49 AS INTEGER ) + + - 31 AS col0
----
-98
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - 23 - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2438
SELECT - 23 - COUNT ( * )
----
-24

query I rowsort
SELECT ALL - 28 - + 44 * + 72 AS col0
----
-3196

query I rowsort
SELECT - 17 * - - 70 * + 67
----
-79730

onlyif mysql # aggregate syntax: 
query II rowsort label-2441
SELECT - 81, COUNT( * ) * 84 AS col1
----
-81
84

skipif mysql # not compatible
query II rowsort label-2441
SELECT - 81, COUNT ( * ) * 84 AS col1
----
-81
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT DISTINCT - NULLIF ( + 29, 8 + - CASE - 48 WHEN + COUNT( * ) THEN 11 WHEN 51 THEN NULL ELSE - 19 END ) * + 45
----
-1305

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT - NULLIF ( + 29, 8 + - CASE - 48 WHEN + COUNT ( * ) THEN 11 WHEN 51 THEN NULL ELSE - 19 END ) * + 45
----
-1305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2443
SELECT ALL CASE - + 52 WHEN COALESCE ( + 80, - 77 / 47 - + - 60 + 76 ) THEN + 32 WHEN + + CAST( NULL AS SIGNED ) + ( + - 25 ) / + 70 * - - 55 THEN 78 / + + 57 WHEN 29 THEN NULL ELSE - 59 + - 99 END AS col1
----
-158

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL CASE - + 52 WHEN COALESCE ( + 80, - 77 / 47 - + - 60 + 76 ) THEN + 32 WHEN + + CAST ( NULL AS INTEGER ) + ( + - 25 ) / + 70 * - - 55 THEN 78 / + + 57 WHEN 29 THEN NULL ELSE - 59 + - 99 END AS col1
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT DISTINCT SUM( - - ( + - 85 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT SUM ( - - ( + - 85 ) ) AS col0
----
-85

query I rowsort
SELECT ALL ( 69 ) AS col1
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT ALL + - 37 * + - MAX( - 91 ) AS col2
----
-3367

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + - 37 * + - MAX ( - 91 ) AS col2
----
-3367

query I rowsort
SELECT - 21 - + - 42
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT - 26 DIV - 70 + - + 30 * - ( 25 ) + - 1 - 94
----
655

skipif mysql # not compatible
query I rowsort label-2449
SELECT - 26 / - 70 + - + 30 * - ( 25 ) + - 1 - 94
----
655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2450
SELECT + COUNT( DISTINCT + + COALESCE ( + + CAST( - 6 AS SIGNED ), - 30 ) ) DIV + CAST( - 88 AS SIGNED ) * - + 36 col2, 47
----
0
47

skipif mysql # not compatible
query II rowsort label-2450
SELECT + COUNT ( DISTINCT + + COALESCE ( + + CAST ( - 6 AS INTEGER ), - 30 ) ) / + CAST ( - 88 AS INTEGER ) * - + 36 col2, 47
----
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT + 9 * - COUNT( * ) - + COALESCE ( + 91, 46 * - 32 + - 53, - 77 ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-2451
SELECT + 9 * - COUNT ( * ) - + COALESCE ( + 91, 46 * - 32 + - 53, - 77 ) AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2452
SELECT ALL 62 * + - COUNT( ALL 88 ) + - + 20 * + 12 * + CAST( NULL AS SIGNED ) * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL 62 * + - COUNT ( ALL 88 ) + - + 20 * + 12 * + CAST ( NULL AS INTEGER ) * + 88 AS col2
----
NULL

query I rowsort
SELECT ALL 24 * - 98 + - 71
----
-2423

query I rowsort
SELECT ALL - ( - + 76 ) * - 72 - - - 12 * - + 33 + + ( + 41 ) + 85
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT - COUNT( * ) * - 50 * - COUNT( * ) - - 9
----
-41

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT - COUNT ( * ) * - 50 * - COUNT ( * ) - - 9
----
-41

query I rowsort
SELECT ALL + 72 * - 79 * 57
----
-324216

query I rowsort
SELECT ALL 1 * - - ( + 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2458
SELECT ALL + NULLIF ( + CAST( + + 88 AS SIGNED ), - 88 ) * - - 13 * + - 39 - - - 49 + 72
----
-44593

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL + NULLIF ( + CAST ( + + 88 AS INTEGER ), - 88 ) * - - 13 * + - 39 - - - 49 + 72
----
-44593

query II rowsort
SELECT ALL 5, ( 2 ) AS col0
----
5
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT ALL COUNT( * ) AS col0, 70 * + + ( 61 ) + - 89
----
1
4181

skipif mysql # not compatible
query II rowsort label-2460
SELECT ALL COUNT ( * ) AS col0, 70 * + + ( 61 ) + - 89
----
1
4181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + COUNT( * ) * - - SUM( + ( ( + 15 ) ) ) * 63 - - 12 * - 44 * - - CASE - 27 WHEN + ( - - COALESCE ( + 35, - 61, + 16 ) ) THEN - NULLIF ( 86, 45 / - 61 ) * + ( - + COUNT( DISTINCT 46 ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * - - SUM ( + ( ( + 15 ) ) ) * 63 - - 12 * - 44 * - - CASE - 27 WHEN + ( - - COALESCE ( + 35, - 61, + 16 ) ) THEN - NULLIF ( 86, 45 / - 61 ) * + ( - + COUNT ( DISTINCT 46 ) ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2462
SELECT ALL + CASE - 76 WHEN CAST( NULL AS SIGNED ) THEN - 31 - - COUNT( * ) WHEN + + ( + + COALESCE ( + + ( + CASE 52 WHEN + ( 1 ) THEN + 55 WHEN 81 THEN + 42 * 72 WHEN 85 THEN NULL END ), + 94 * - 42 / + 33 * + + 36 ) ) THEN + + ( 2 ) WHEN - + 48 THEN COUNT( * ) / + 89 WHEN - 56 * MAX( - + 3 ) + - - COUNT( * ) * + COUNT( * ) + 50 * 40 THEN NULL ELSE NULL END * + 67 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + CASE - 76 WHEN CAST ( NULL AS INTEGER ) THEN - 31 - - COUNT ( * ) WHEN + + ( + + COALESCE ( + + ( + CASE 52 WHEN + ( 1 ) THEN + 55 WHEN 81 THEN + 42 * 72 WHEN 85 THEN NULL END ), + 94 * - 42 / + 33 * + + 36 ) ) THEN + + ( 2 ) WHEN - + 48 THEN COUNT ( * ) / + 89 WHEN - 56 * MAX ( - + 3 ) + - - COUNT ( * ) * + COUNT ( * ) + 50 * 40 THEN NULL ELSE NULL END * + 67 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT SUM( 85 )
----
85

skipif mysql # not compatible
query I rowsort label-2463
SELECT SUM ( 85 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2464
SELECT - CAST( NULL AS SIGNED ) AS col0, ( - + 81 ) * 18, + - MIN( + 80 ) / - + CAST( NULL AS SIGNED ) * + ( + + 43 ) * - 19 AS col2
----
NULL
-1458
NULL

skipif mysql # not compatible
query III rowsort label-2464
SELECT - CAST ( NULL AS INTEGER ) AS col0, ( - + 81 ) * 18, + - MIN ( + 80 ) / - + CAST ( NULL AS INTEGER ) * + ( + + 43 ) * - 19 AS col2
----
NULL
-1458
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT + 11 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 11 / - 52
----
0

query I rowsort
SELECT - 17 * ( + 8 ) col1
----
-136

query I rowsort
SELECT - ( + + 47 ) col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT + 5 + - 49 DIV 50 * 21
----
5

skipif mysql # not compatible
query I rowsort label-2468
SELECT + 5 + - 49 / 50 * 21
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT - 15 * - MIN( DISTINCT - 79 )
----
-1185

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - 15 * - MIN ( DISTINCT - 79 )
----
-1185

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

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

query I rowsort
SELECT - 58 * + 66 col2
----
-3828

query I rowsort
SELECT ALL ( 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT ALL COALESCE ( ( COUNT( * ) ), 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL COALESCE ( ( COUNT ( * ) ), 87 ) AS col2
----
1

query I rowsort
SELECT + 22 * - 9
----
-198

query II rowsort
SELECT ALL - NULLIF ( 49, - 59 ) + - 17, 32 AS col0
----
-66
32

query I rowsort
SELECT - + 39 * + 14
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT ALL + 54 DIV + 53 + + - SUM( + + NULLIF ( + 22, + 60 ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + 54 / + 53 + + - SUM ( + + NULLIF ( + 22, + 60 ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT + - MAX( ALL 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT + - MAX ( ALL 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT ALL + 90 DIV + - 56 * + COUNT( ALL + 97 ) + + + 24 + + COUNT( * ) - + - 71
----
95

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL + 90 / + - 56 * + COUNT ( ALL + 97 ) + + + 24 + + COUNT ( * ) - + - 71
----
95

query I rowsort
SELECT - 69 + 62 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT ALL + 68 * - 34 * - 35 + + MIN( ALL - + 16 )
----
80904

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + 68 * - 34 * - 35 + + MIN ( ALL - + 16 )
----
80904

onlyif mysql # DIV for integer division: 
query II rowsort label-2483
SELECT ALL - 82 DIV + - 12 + COALESCE ( + + 10, - - 44, - 77 * + 73 + + 60 ) + + - 12 col2, 76 * - + 68 * + NULLIF ( + 18, - 77 )
----
4
-93024

skipif mysql # not compatible
query II rowsort label-2483
SELECT ALL - 82 / + - 12 + COALESCE ( + + 10, - - 44, - 77 * + 73 + + 60 ) + + - 12 col2, 76 * - + 68 * + NULLIF ( + 18, - 77 )
----
4
-93024

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT - COUNT( + 92 ) + + - 77 * + 80 * - 27
----
166319

skipif mysql # not compatible
query I rowsort label-2484
SELECT - COUNT ( + 92 ) + + - 77 * + 80 * - 27
----
166319

onlyif mysql # aggregate syntax: 
query II rowsort label-2485
SELECT + MIN( - 90 ) AS col2, 1
----
-90
1

skipif mysql # not compatible
query II rowsort label-2485
SELECT + MIN ( - 90 ) AS col2, 1
----
-90
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2487
SELECT - - COUNT( * ) * - CAST( NULL AS SIGNED ) * 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 75 col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - CASE - 31 WHEN - 94 THEN NULL ELSE - NULLIF ( + 99, 4 ) * - + ( 75 ) * - 75 - ( + + 94 ) END col0
----
556969

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

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

query I rowsort
SELECT ( + COALESCE ( 77, - 48 + - 68 ) ) * + 68
----
5236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT + CAST( - ( - 92 ) AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-2492
SELECT + CAST ( - ( - 92 ) AS INTEGER )
----
92

query II rowsort
SELECT + + 79 AS col2, - ( + - 56 )
----
79
56

query I rowsort
SELECT - 71 * 85 AS col2
----
-6035

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

query I rowsort
SELECT DISTINCT + COALESCE ( + 42, - - 69 ) - - + 38
----
80

query II rowsort
SELECT ALL + 28 - + - 89, 9 AS col1
----
117
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2498
SELECT ALL COUNT( * ) * 86 AS col2, + 72 AS col2
----
86
72

skipif mysql # not compatible
query II rowsort label-2498
SELECT ALL COUNT ( * ) * 86 AS col2, + 72 AS col2
----
86
72

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

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

query I rowsort
SELECT ( - 55 ) + 76 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2501
SELECT COALESCE ( + - 38, + 32 DIV - COUNT( * ), MAX( DISTINCT - 79 ) ) DIV - 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT COALESCE ( + - 38, + 32 / - COUNT ( * ), MAX ( DISTINCT - 79 ) ) / - 42 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ( - NULLIF ( COUNT( ALL - 83 ), - 18 ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2502
SELECT ( - NULLIF ( COUNT ( ALL - 83 ), - 18 ) ) * - COUNT ( * )
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2504
SELECT ALL + 49 + COALESCE ( - + 90, - 66, - 20 * 63 * + - 47 ) col0, COUNT( * ) col1
----
-41
1

skipif mysql # not compatible
query II rowsort label-2504
SELECT ALL + 49 + COALESCE ( - + 90, - 66, - 20 * 63 * + - 47 ) col0, COUNT ( * ) col1
----
-41
1

query I rowsort
SELECT ( + - 23 ) + - + 94 AS col0
----
-117

query I rowsort
SELECT ALL 56 + + 64 * - - 80 + + 57
----
5233

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2507
SELECT ALL + + ( + 47 ) * - - NULLIF ( + CASE CASE - 43 WHEN - 69 * + 73 + - 48 / + 1 + - 40 * - - 10 + - + 15 THEN + + 30 WHEN + NULLIF ( + 0, + - 67 + + SUM( DISTINCT - + 31 ) + + 41 * + + 99 ) THEN - + CAST( 71 AS DECIMAL ) * + + 69 ELSE - - 63 * + 12 END WHEN - - 65 + + COUNT( * ) / - COUNT( * ) / - - COUNT( * ) THEN NULL ELSE 45 END, - 98 + + 60 + + 66 * - + COUNT( * ) + + COUNT( DISTINCT + 11 ) ) - 50
----
2065

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL + + ( + 47 ) * - - NULLIF ( + CASE CASE - 43 WHEN - 69 * + 73 + - 48 / + 1 + - 40 * - - 10 + - + 15 THEN + + 30 WHEN + NULLIF ( + 0, + - 67 + + SUM ( DISTINCT - + 31 ) + + 41 * + + 99 ) THEN - + CAST ( 71 AS REAL ) * + + 69 ELSE - - 63 * + 12 END WHEN - - 65 + + COUNT ( * ) / - COUNT ( * ) / - - COUNT ( * ) THEN NULL ELSE 45 END, - 98 + + 60 + + 66 * - + COUNT ( * ) + + COUNT ( DISTINCT + 11 ) ) - 50
----
2065

query I rowsort
SELECT + 66 * - 81 - 58 AS col0
----
-5404

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - 19 * ( + + 55 ) * + MAX( DISTINCT 84 ) + + + COUNT( * ) + - 84
----
-87863

skipif mysql # not compatible
query I rowsort label-2509
SELECT - 19 * ( + + 55 ) * + MAX ( DISTINCT 84 ) + + + COUNT ( * ) + - 84
----
-87863

query I rowsort
SELECT ( 15 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT 48 + + COUNT( * ) * 66
----
114

skipif mysql # not compatible
query I rowsort label-2511
SELECT 48 + + COUNT ( * ) * 66
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT + NULLIF ( + CASE - COUNT( * ) WHEN + - NULLIF ( - ( 86 ), - + COUNT( * ) - - - 14 ) + + + 87 THEN NULL WHEN - 66 THEN + 11 END, + 71 * - - 6 + 15 ) * 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + NULLIF ( + CASE - COUNT ( * ) WHEN + - NULLIF ( - ( 86 ), - + COUNT ( * ) - - - 14 ) + + + 87 THEN NULL WHEN - 66 THEN + 11 END, + 71 * - - 6 + 15 ) * 88 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 54 - 94, + 62 AS col0
----
-40
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT DISTINCT + 5 * - 82 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT + 5 * - 82 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2515
SELECT 32 * + MIN( + - ( 30 ) ) + - - 83 - - 35 * - MIN( + 81 ) * + 22 + + 53 + - 55 + ( COALESCE ( + NULLIF ( - ( 53 ), + 64 ), 94 + + + 0 ) ) - + + CASE + MIN( DISTINCT + - 15 ) WHEN - 64 THEN + 51 * + 86 / + 6 * 37 ELSE NULL END - + 81 + - 94 * + - 95 * - 5 * + - 23 * - - 58 col1, ( + - 14 )
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-2515
SELECT 32 * + MIN ( + - ( 30 ) ) + - - 83 - - 35 * - MIN ( + 81 ) * + 22 + + 53 + - 55 + ( COALESCE ( + NULLIF ( - ( 53 ), + 64 ), 94 + + + 0 ) ) - + + CASE + MIN ( DISTINCT + - 15 ) WHEN - 64 THEN + 51 * + 86 / + 6 * 37 ELSE NULL END - + 81 + - 94 * + - 95 * - 5 * + - 23 * - - 58 col1, ( + - 14 )
----
NULL
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT 93 DIV 27
----
3

skipif mysql # not compatible
query I rowsort label-2516
SELECT 93 / 27
----
3

query I rowsort
SELECT 28 * 70
----
1960

query I rowsort
SELECT 2 + - 24
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT ALL - 76 col2, - 7 * - COUNT( * )
----
-76
7

skipif mysql # not compatible
query II rowsort label-2519
SELECT ALL - 76 col2, - 7 * - COUNT ( * )
----
-76
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT 32 * + 75 * - + 62 * - 46 + - - MIN( - 91 ) * + - 57 * - + 47 + - 65 AS col1
----
6600946

skipif mysql # not compatible
query I rowsort label-2520
SELECT 32 * + 75 * - + 62 * - 46 + - - MIN ( - 91 ) * + - 57 * - + 47 + - 65 AS col1
----
6600946

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT ALL - 60 DIV 48 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - 60 / 48 col1
----
-1

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

query II rowsort
SELECT DISTINCT - 54, + 18 AS col2
----
-54
18

query I rowsort
SELECT ALL 70 + - + 28
----
42

query I rowsort
SELECT ALL 29 + - 21
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2526
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - COALESCE ( - ( 72 ), 44 * + 75 * - SUM( - 21 ) - + 2 * + 90, 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - COALESCE ( - ( 72 ), 44 * + 75 * - SUM ( - 21 ) - + 2 * + 90, 73 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2527
SELECT COUNT ( * ) + 72 AS col2
----
73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2529
SELECT ALL - + ( + 2 ) + + CASE + 39 WHEN 38 THEN + 21 WHEN + 97 * + - MIN( ALL - 95 ) * 11 + + + CASE - - 85 WHEN MAX( DISTINCT + - 72 ) / - + 26 + + 89 * 34 THEN - 13 WHEN + + 1 + - + CAST( - 72 AS SIGNED ) - - - 18 THEN NULL END THEN NULL END + + + 51 - 47 + + + CAST( NULL AS SIGNED ) / + - 2, NULLIF ( + 60, 9 - 49 ) - + - 6 + - ( + CASE + - 86 WHEN - + 81 * AVG ( - 12 ) * - + 90 + + COALESCE ( - 39 - COUNT( * ) * CAST( + CAST( CASE + MIN( ALL - 72 ) WHEN - ( 36 ) THEN + 89 ELSE NULL END AS SIGNED ) AS DECIMAL ), + 46 ) THEN ( NULLIF ( - 34, COALESCE ( COALESCE ( 59, + 73 * 47, - COUNT( * ) * 42, - 28 ), + 55 ) - - 34 ) ) END )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2529
SELECT ALL - + ( + 2 ) + + CASE + 39 WHEN 38 THEN + 21 WHEN + 97 * + - MIN ( ALL - 95 ) * 11 + + + CASE - - 85 WHEN MAX ( DISTINCT + - 72 ) / - + 26 + + 89 * 34 THEN - 13 WHEN + + 1 + - + CAST ( - 72 AS INTEGER ) - - - 18 THEN NULL END THEN NULL END + + + 51 - 47 + + + CAST ( NULL AS INTEGER ) / + - 2, NULLIF ( + 60, 9 - 49 ) - + - 6 + - ( + CASE + - 86 WHEN - + 81 * AVG ( - 12 ) * - + 90 + + COALESCE ( - 39 - COUNT ( * ) * CAST ( + CAST ( CASE + MIN ( ALL - 72 ) WHEN - ( 36 ) THEN + 89 ELSE NULL END AS INTEGER ) AS REAL ), + 46 ) THEN ( NULLIF ( - 34, COALESCE ( COALESCE ( 59, + 73 * 47, - COUNT ( * ) * 42, - 28 ), + 55 ) - - 34 ) ) END )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL + COUNT( * ) + CASE + + 46 WHEN - COUNT( DISTINCT - 91 ) THEN 28 ELSE NULL END * - 89 + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + COUNT ( * ) + CASE + + 46 WHEN - COUNT ( DISTINCT - 91 ) THEN 28 ELSE NULL END * - 89 + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + ( - + COUNT( - - ( + 39 ) ) ) + - SUM( DISTINCT + 16 ) col2
----
-17

skipif mysql # not compatible
query I rowsort label-2531
SELECT + ( - + COUNT ( - - ( + 39 ) ) ) + - SUM ( DISTINCT + 16 ) col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2532
SELECT DISTINCT 72 + - 46 + + - COALESCE ( + SUM( DISTINCT + 76 ), - 70 / + 98, 7 + - 13 ) + - - CAST( NULL AS SIGNED ) * + 87 / - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT 72 + - 46 + + - COALESCE ( + SUM ( DISTINCT + 76 ), - 70 / + 98, 7 + - 13 ) + - - CAST ( NULL AS INTEGER ) * + 87 / - 3
----
NULL

query II rowsort
SELECT + 42 * + 61 + + 21, 62 AS col0
----
2583
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT DISTINCT 29 DIV + 56 * + 36
----
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT 29 / + 56 * + 36
----
0

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

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

query I rowsort
SELECT DISTINCT + 43 - 94 AS col1
----
-51

query II rowsort
SELECT ALL + - 75 AS col0, 34 AS col1
----
-75
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2538
SELECT ALL + + 84, 11 * - 69 * + + COUNT( * ) + + + 23 col2
----
84
-736

skipif mysql # not compatible
query II rowsort label-2538
SELECT ALL + + 84, 11 * - 69 * + + COUNT ( * ) + + + 23 col2
----
84
-736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2539
SELECT + - COALESCE ( - CAST( - 52 AS SIGNED ), 31 + - ( - + 87 ) ) / - + CASE 82 WHEN + - 64 - + - COUNT( * ) + - 10 + + ( + + COUNT( * ) ) + - 12 + + 81 * - 76 * NULLIF ( - - 67, ( 44 ) * - 45 * 86 ) THEN NULL WHEN + + MAX( - 1 ) * + MAX( + + 83 ) THEN + + ( - COUNT( * ) ) END AS col1, 53 + + + 60 AS col2
----
NULL
113

skipif mysql # not compatible
query II rowsort label-2539
SELECT + - COALESCE ( - CAST ( - 52 AS INTEGER ), 31 + - ( - + 87 ) ) / - + CASE 82 WHEN + - 64 - + - COUNT ( * ) + - 10 + + ( + + COUNT ( * ) ) + - 12 + + 81 * - 76 * NULLIF ( - - 67, ( 44 ) * - 45 * 86 ) THEN NULL WHEN + + MAX ( - 1 ) * + MAX ( + + 83 ) THEN + + ( - COUNT ( * ) ) END AS col1, 53 + + + 60 AS col2
----
NULL
113

query I rowsort
SELECT ALL - 24 * - + 57
----
1368

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2542
SELECT + NULLIF ( - 89, + 97 * - 26 - + 77 * 41 - - + 8 + SUM( + + 25 ) + + CAST( 38 AS SIGNED ) ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-2542
SELECT + NULLIF ( - 89, + 97 * - 26 - + 77 * 41 - - + 8 + SUM ( + + 25 ) + + CAST ( 38 AS INTEGER ) ) AS col1
----
-89

query I rowsort
SELECT - 18 * + 55
----
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT COALESCE ( - - 0, + 70 DIV + + 29 - + + 88 * 80 * - 95, - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-2544
SELECT COALESCE ( - - 0, + 70 / + + 29 - + + 88 * 80 * - 95, - 87 )
----
0

query I rowsort
SELECT CASE - 49 WHEN - 18 THEN + - 92 + + 64 END AS col0
----
NULL

query I rowsort
SELECT ALL 64 * - 71 + + + 75 AS col2
----
-4469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2547
SELECT ALL + SUM( - 49 ) AS col0, - 11 + - 60 + + 61 * - MIN( 23 ) * - 44 * - 43 - + + CAST( 30 AS SIGNED ) * + 87 col1
----
-49
-2657157

skipif mysql # not compatible
query II rowsort label-2547
SELECT ALL + SUM ( - 49 ) AS col0, - 11 + - 60 + + 61 * - MIN ( 23 ) * - 44 * - 43 - + + CAST ( 30 AS INTEGER ) * + 87 col1
----
-49
-2657157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT ALL 70 * 16 + + + 30 + + + CAST( - + 60 AS SIGNED ) * + 83 AS col0
----
-3830

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL 70 * 16 + + + 30 + + + CAST ( - + 60 AS INTEGER ) * + 83 AS col0
----
-3830

query II rowsort
SELECT DISTINCT + ( - 75 ) col0, + ( 83 ) AS col1
----
-75
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL - COUNT( * ) * + + CASE - 65 WHEN 68 * 10 * 57 * - COUNT( * ) THEN + + ( + 32 ) ELSE + 37 END + - - 18 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - COUNT ( * ) * + + CASE - 65 WHEN 68 * 10 * 57 * - COUNT ( * ) THEN + + ( + 32 ) ELSE + 37 END + - - 18 AS col1
----
-19

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

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

query I rowsort
SELECT - 99 * 7
----
-693

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

skipif mysql # not compatible
query I rowsort label-2553
SELECT - 16 / + + MAX ( ALL - + 88 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - MAX( - 93 ) + - 92
----
1

skipif mysql # not compatible
query I rowsort label-2554
SELECT - MAX ( - 93 ) + - 92
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT DISTINCT - 11 DIV + 17
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - 11 / + 17
----
0

query II rowsort
SELECT ALL - NULLIF ( + 61, - 15 ) + - + 14 AS col1, - 60 + - + 11 * 39 - + 26 AS col2
----
-75
-515

query II rowsort
SELECT DISTINCT ( - 87 ) AS col0, 65 * - 9 * - 62 * + 39
----
-87
1414530

query I rowsort
SELECT ALL - 41 + + 95 + + - 1 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT - 21 * - - COUNT( * ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-2559
SELECT - 21 * - - COUNT ( * ) col1
----
-21

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

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

query I rowsort
SELECT DISTINCT - 89 * - - 74
----
-6586

onlyif mysql # aggregate syntax: 
query II rowsort label-2562
SELECT + COUNT( 63 ) AS col0, 17
----
1
17

skipif mysql # not compatible
query II rowsort label-2562
SELECT + COUNT ( 63 ) AS col0, 17
----
1
17

query I rowsort
SELECT ALL - ( - 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2564
SELECT + + COUNT( * ) * - - NULLIF ( - + 32, + 78 / - 24 ) AS col2, 33 AS col1
----
-32
33

skipif mysql # not compatible
query II rowsort label-2564
SELECT + + COUNT ( * ) * - - NULLIF ( - + 32, + 78 / - 24 ) AS col2, 33 AS col1
----
-32
33

query I rowsort
SELECT - 95 + - 87
----
-182

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT DISTINCT COUNT( * ) * + COALESCE ( - 36, + 18 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT COUNT ( * ) * + COALESCE ( - 36, + 18 ) col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + 65 + + - CASE - - 57 WHEN - 7 + - COUNT( * ) * + + 42 THEN NULL WHEN + + 72 * + 59 THEN - - 20 WHEN + - 78 THEN NULL END + + COALESCE ( 3, + 77 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2568
SELECT + 65 + + - CASE - - 57 WHEN - 7 + - COUNT ( * ) * + + 42 THEN NULL WHEN + + 72 * + 59 THEN - - 20 WHEN + - 78 THEN NULL END + + COALESCE ( 3, + 77 * - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2569
SELECT 42 * - + COUNT( * ) DIV - 71 + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-2569
SELECT 42 * - + COUNT ( * ) / - 71 + - 19
----
-19

query I rowsort
SELECT ALL 65 * - + 81 AS col1
----
-5265

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT - 9 * - COUNT( * ) + 32 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-2571
SELECT - 9 * - COUNT ( * ) + 32 AS col2
----
41

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2574
SELECT ( - MAX ( ALL - 89 ) )
----
89

query I rowsort
SELECT - 81 * + - 82 AS col0
----
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT CASE + 48 WHEN + AVG ( 46 ) + + 39 THEN NULL ELSE - - COUNT( * ) * + 13 END
----
13

skipif mysql # not compatible
query I rowsort label-2576
SELECT CASE + 48 WHEN + AVG ( 46 ) + + 39 THEN NULL ELSE - - COUNT ( * ) * + 13 END
----
13

query I rowsort
SELECT ALL 90 * - ( + - 75 ) - + - 93 AS col2
----
6843

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

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

query I rowsort
SELECT ALL 51 * 43 * - - 14
----
30702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2580
SELECT - 70 AS col2, - COUNT( DISTINCT + NULLIF ( + 73, - 37 / + 39 * + - CAST( + 30 AS SIGNED ) * - - ( - 25 ) ) ) + + 59 AS col0
----
-70
58

skipif mysql # not compatible
query II rowsort label-2580
SELECT - 70 AS col2, - COUNT ( DISTINCT + NULLIF ( + 73, - 37 / + 39 * + - CAST ( + 30 AS INTEGER ) * - - ( - 25 ) ) ) + + 59 AS col0
----
-70
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2581
SELECT ALL - ( - COUNT( DISTINCT + 55 ) ), 86 AS col0
----
1
86

skipif mysql # not compatible
query II rowsort label-2581
SELECT ALL - ( - COUNT ( DISTINCT + 55 ) ), 86 AS col0
----
1
86

query II rowsort
SELECT + 86 + - 2 * - - 96, 15 AS col2
----
-106
15

query I rowsort
SELECT + 55 - - 18 + - 69 + + 67 * - 14 * - 88 AS col0
----
82548

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT CASE WHEN 87 > - + ( - 19 ) THEN - 97 * + 73 - - COUNT( * ) END + + 41
----
-7039

skipif mysql # not compatible
query I rowsort label-2584
SELECT CASE WHEN 87 > - + ( - 19 ) THEN - 97 * + 73 - - COUNT ( * ) END + + 41
----
-7039

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

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT MAX ( DISTINCT 93 )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT 46 DIV 37 col2
----
1

skipif mysql # not compatible
query I rowsort label-2586
SELECT 46 / 37 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT ALL + + 16 DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + + 16 / + 55
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2588
SELECT DISTINCT - COALESCE ( 38, - + COUNT( * ) * + 89 ) * + COUNT( * ) AS col0, + 14
----
-38
14

skipif mysql # not compatible
query II rowsort label-2588
SELECT DISTINCT - COALESCE ( 38, - + COUNT ( * ) * + 89 ) * + COUNT ( * ) AS col0, + 14
----
-38
14

query I rowsort
SELECT - 79 * 72
----
-5688

query I rowsort
SELECT 23 + + 36
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2591
SELECT + ( 46 ) + - 6 * - - 42 + - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-207

skipif mysql # not compatible
query I rowsort label-2591
SELECT + ( 46 ) + - 6 * - - 42 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT - NULLIF ( - 87, COUNT( * ) / + 40 / + + 30 + AVG ( 92 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2592
SELECT - NULLIF ( - 87, COUNT ( * ) / + 40 / + + 30 + AVG ( 92 ) ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT 15 * + COUNT( * ) col1
----
15

skipif mysql # not compatible
query I rowsort label-2593
SELECT 15 * + COUNT ( * ) col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL - + COUNT( * ) + + 57
----
56

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - + COUNT ( * ) + + 57
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT NULLIF ( + NULLIF ( + ( + 27 ), + NULLIF ( + 20, 68 ) ), - + MIN( DISTINCT 5 ) * CAST( NULL AS SIGNED ) ) * - 16 AS col0
----
-432

skipif mysql # not compatible
query I rowsort label-2595
SELECT NULLIF ( + NULLIF ( + ( + 27 ), + NULLIF ( + 20, 68 ) ), - + MIN ( DISTINCT 5 ) * CAST ( NULL AS INTEGER ) ) * - 16 AS col0
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT ( - 24 ) + ( + + ( + CAST( NULL AS SIGNED ) ) ) / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT ( - 24 ) + ( + + ( + CAST ( NULL AS INTEGER ) ) ) / 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT ALL CAST( 0 AS SIGNED ) + 52 + + + CAST( - 32 AS SIGNED ) + + + CAST( 18 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL CAST ( 0 AS INTEGER ) + 52 + + + CAST ( - 32 AS INTEGER ) + + + CAST ( 18 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT 31 * 56 * + COUNT( * )
----
1736

skipif mysql # not compatible
query I rowsort label-2598
SELECT 31 * 56 * + COUNT ( * )
----
1736

query I rowsort
SELECT ALL 53 + + + 37
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT DISTINCT + ( + - 19 ) + + - MAX( DISTINCT + 7 ) AS col1, + 81
----
-26
81

skipif mysql # not compatible
query II rowsort label-2600
SELECT DISTINCT + ( + - 19 ) + + - MAX ( DISTINCT + 7 ) AS col1, + 81
----
-26
81

query I rowsort
SELECT 27 * 34 AS col2
----
918

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT + 17 AS col1, COUNT( * ) * - MAX( DISTINCT + 4 )
----
17
-4

skipif mysql # not compatible
query II rowsort label-2602
SELECT + 17 AS col1, COUNT ( * ) * - MAX ( DISTINCT + 4 )
----
17
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT 37 - - 43 * - CAST( NULL AS SIGNED ) * - ( - + 74 ) * - 2 * + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT 37 - - 43 * - CAST ( NULL AS INTEGER ) * - ( - + 74 ) * - 2 * + - 14
----
NULL

query II rowsort
SELECT + 20 AS col2, - 52
----
20
-52

query II rowsort
SELECT ALL - 8, 35 + + 3 * + 30 col0
----
-8
125

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT ALL 70 * + 88 * - COALESCE ( - 6, - 48 DIV + + 76, 12 * - - 78 )
----
36960

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL 70 * + 88 * - COALESCE ( - 6, - 48 / + + 76, 12 * - - 78 )
----
36960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT COUNT( * ) DIV + 43 * - 6 * - 59 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2607
SELECT COUNT ( * ) / + 43 * - 6 * - 59 * - COUNT ( * )
----
0

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

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

query I rowsort
SELECT ALL 63 * NULLIF ( + 79, + - 51 / + ( - 29 ) * + 37 + + COALESCE ( 97, + 76 + + - ( 21 ), + + 72 + 38 ) - 79 )
----
4977

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

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - SUM ( ALL - ( 52 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL COUNT( * ) - - COUNT( - 95 )
----
2

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL COUNT ( * ) - - COUNT ( - 95 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2612
SELECT ( 95 ) DIV - 21
----
-4

skipif mysql # not compatible
query I rowsort label-2612
SELECT ( 95 ) / - 21
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT 10 * COUNT( * ) * - 11 * + 81
----
-8910

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT 10 * COUNT ( * ) * - 11 * + 81
----
-8910

query II rowsort
SELECT DISTINCT - 14 col2, + 47
----
-14
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT MAX( DISTINCT + + 51 ) + - + 12 * + - 71 col1, - 32
----
903
-32

skipif mysql # not compatible
query II rowsort label-2615
SELECT MAX ( DISTINCT + + 51 ) + - + 12 * + - 71 col1, - 32
----
903
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL + CASE - + 57 WHEN MIN( ALL + 22 ) + - - 61 THEN NULL WHEN + 16 THEN + + 99 / + - 18 + 37 END - 22 + + AVG ( ALL - 13 ) / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + CASE - + 57 WHEN MIN ( ALL + 22 ) + - - 61 THEN NULL WHEN + 16 THEN + + 99 / + - 18 + 37 END - 22 + + AVG ( ALL - 13 ) / - 49
----
NULL

query I rowsort
SELECT + 61 * + 2 - - ( + 87 ) col1
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT MAX( DISTINCT + 99 ) * - 37
----
-3663

skipif mysql # not compatible
query I rowsort label-2618
SELECT MAX ( DISTINCT + 99 ) * - 37
----
-3663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT DISTINCT - NULLIF ( - CASE + 91 WHEN - 14 THEN NULL WHEN + + CASE ( - ( CAST( - 56 AS SIGNED ) ) ) WHEN 64 + - - COALESCE ( + 78, + AVG ( + 97 ) + + 88 ) THEN NULL WHEN + 88 THEN NULL WHEN 57 THEN + 7 WHEN + 94 THEN NULL END + - + 51 + - NULLIF ( 53, - 17 ) THEN + + 70 END, - - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT DISTINCT - NULLIF ( - CASE + 91 WHEN - 14 THEN NULL WHEN + + CASE ( - ( CAST ( - 56 AS INTEGER ) ) ) WHEN 64 + - - COALESCE ( + 78, + AVG ( + 97 ) + + 88 ) THEN NULL WHEN + 88 THEN NULL WHEN 57 THEN + 7 WHEN + 94 THEN NULL END + - + 51 + - NULLIF ( 53, - 17 ) THEN + + 70 END, - - 37 )
----
NULL

query I rowsort
SELECT ( 85 ) + - + 68
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + - 81 * + - COUNT( * ) * - - 58
----
4698

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + - 81 * + - COUNT ( * ) * - - 58
----
4698

query I rowsort
SELECT 69 * - 79 * 12 AS col2
----
-65412

query II rowsort
SELECT ALL - 12 AS col1, 1 - 62 AS col2
----
-12
-61

query II rowsort
SELECT ALL 0 AS col2, 82 AS col0
----
0
82

query I rowsort
SELECT ALL - 48 + 6 * + - 37 + + 81 AS col2
----
-189

query I rowsort
SELECT ( + 74 ) * + 6 col1
----
444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2628
SELECT 79 - CAST( NULL AS SIGNED ) * + 3 * - CASE 92 WHEN + CASE + + 73 WHEN - - 15 THEN - - 96 END THEN NULL ELSE 96 / + + COALESCE ( 80, + 20 - COUNT( * ) ) + + 13 END - - 10 + + 42 * - 10 * 80 * - COUNT( * ) * + 26 * + NULLIF ( + 3, - 33 / + + 63 + - - COUNT( * ) ) + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT 79 - CAST ( NULL AS INTEGER ) * + 3 * - CASE 92 WHEN + CASE + + 73 WHEN - - 15 THEN - - 96 END THEN NULL ELSE 96 / + + COALESCE ( 80, + 20 - COUNT ( * ) ) + + 13 END - - 10 + + 42 * - 10 * 80 * - COUNT ( * ) * + 26 * + NULLIF ( + 3, - 33 / + + 63 + - - COUNT ( * ) ) + - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT + 46 * - COUNT( * ) * 5
----
-230

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT + 46 * - COUNT ( * ) * 5
----
-230

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT 71 * NULLIF ( - 19, + COUNT( * ) / - 86 - + - 57 / + 51 ) AS col2
----
-1349

skipif mysql # not compatible
query I rowsort label-2632
SELECT 71 * NULLIF ( - 19, + COUNT ( * ) / - 86 - + - 57 / + 51 ) AS col2
----
-1349

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2633
SELECT ALL - 43 * 91 DIV + CAST( + 61 AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - 43 * 91 / + CAST ( + 61 AS INTEGER ) AS col1
----
-64

query I rowsort
SELECT 17 * 4 AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT ALL + 63 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + 63 / - 78 AS col2
----
0

query I rowsort
SELECT ALL ( + + 44 ) + + 27
----
71

query I rowsort
SELECT DISTINCT + 97 * + + ( + 75 )
----
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL + 42 + - COUNT( * ) * - 31 + + + 64 + - - 54 + - - COUNT( ALL 31 ) * + 87 col1
----
278

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + 42 + - COUNT ( * ) * - 31 + + + 64 + - - 54 + - - COUNT ( ALL 31 ) * + 87 col1
----
278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT DISTINCT - SUM( DISTINCT - CAST( 8 AS SIGNED ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT - SUM ( DISTINCT - CAST ( 8 AS INTEGER ) ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT - 1 * + COUNT( * ) + + 4 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2640
SELECT - 1 * + COUNT ( * ) + + 4 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT COUNT( * ) / CASE 35 WHEN - 88 + + - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 19 THEN - MIN( DISTINCT + - 14 ) ELSE NULL END + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT COUNT ( * ) / CASE 35 WHEN - 88 + + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 19 THEN - MIN ( DISTINCT + - 14 ) ELSE NULL END + + 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT 56 + + 56 * - + 0 + CAST( - CAST( - ( + NULLIF ( 11, 54 ) ) AS SIGNED ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-2642
SELECT 56 + + 56 * - + 0 + CAST ( - CAST ( - ( + NULLIF ( 11, 54 ) ) AS INTEGER ) AS INTEGER )
----
67

query I rowsort
SELECT ALL 38 * 78 - + 0 * 91 * + 18 + 33
----
2997

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2645
SELECT - COALESCE ( - 61, + 17 * 21, - + COUNT( + 21 ) * 31 + - - COUNT( * ), + COUNT( * ) + + 72 + - 82 * + 33 * + COUNT( * ) * - CASE - 68 WHEN - 94 * - + ( CAST( - 22 AS SIGNED ) ) THEN NULL ELSE + 32 END ) * + + CAST( - 15 AS SIGNED ) AS col0, 74 + 70 * - 5 * - - 81 AS col0
----
-915
-28276

skipif mysql # not compatible
query II rowsort label-2645
SELECT - COALESCE ( - 61, + 17 * 21, - + COUNT ( + 21 ) * 31 + - - COUNT ( * ), + COUNT ( * ) + + 72 + - 82 * + 33 * + COUNT ( * ) * - CASE - 68 WHEN - 94 * - + ( CAST ( - 22 AS INTEGER ) ) THEN NULL ELSE + 32 END ) * + + CAST ( - 15 AS INTEGER ) AS col0, 74 + 70 * - 5 * - - 81 AS col0
----
-915
-28276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2646
SELECT + CAST( NULL AS SIGNED ) * + 52 AS col2, 54
----
NULL
54

skipif mysql # not compatible
query II rowsort label-2646
SELECT + CAST ( NULL AS INTEGER ) * + 52 AS col2, 54
----
NULL
54

query I rowsort
SELECT + 74 + - 56
----
18

query I rowsort
SELECT - 54 * 9 * - + 7 * 11
----
37422

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL 12 * - + MAX( DISTINCT + 28 ) * + - ( + 42 ) - + 18
----
14094

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL 12 * - + MAX ( DISTINCT + 28 ) * + - ( + 42 ) - + 18
----
14094

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - MAX( 92 ) * + + 87
----
-8004

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - MAX ( 92 ) * + + 87
----
-8004

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT DISTINCT + CASE 17 WHEN + 7 THEN NULL WHEN 81 + + MIN( DISTINCT - + CASE - 59 WHEN - 67 THEN NULL WHEN - + 74 THEN + - 13 END ) THEN + - 32 ELSE 79 + + - 23 END + 16
----
72

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + CASE 17 WHEN + 7 THEN NULL WHEN 81 + + MIN ( DISTINCT - + CASE - 59 WHEN - 67 THEN NULL WHEN - + 74 THEN + - 13 END ) THEN + - 32 ELSE 79 + + - 23 END + 16
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT + - 72 + + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-2652
SELECT + - 72 + + COUNT ( * )
----
-71

query I rowsort
SELECT DISTINCT 73 + 67 AS col2
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT - - 2 DIV + ( + 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2654
SELECT - - 2 / + ( + 88 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT + + 97 DIV 78 + - - 91 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2655
SELECT + + 97 / 78 + - - 91 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT + 31 * + CAST( 61 AS SIGNED ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-2656
SELECT + 31 * + CAST ( 61 AS INTEGER ) * 0
----
0

query I rowsort
SELECT + 70 + 57
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + MAX( + ( + 70 ) ) + - 61 * + - 21 AS col0
----
1351

skipif mysql # not compatible
query I rowsort label-2658
SELECT + MAX ( + ( + 70 ) ) + - 61 * + - 21 AS col0
----
1351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2659
SELECT - ( + + 67 ) - - 41 AS col1, - ( + CAST( + - CASE + 19 WHEN - NULLIF ( - + 50, + CAST( - 13 AS SIGNED ) / 56 * - 90 * + 1 + - - 81 * + 29 * COUNT( * ) ) * COUNT( * ) * 31 + ( - 82 ) * 37 + + 83 THEN + ( + 6 ) END AS DECIMAL ) ) AS col1
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-2659
SELECT - ( + + 67 ) - - 41 AS col1, - ( + CAST ( + - CASE + 19 WHEN - NULLIF ( - + 50, + CAST ( - 13 AS INTEGER ) / 56 * - 90 * + 1 + - - 81 * + 29 * COUNT ( * ) ) * COUNT ( * ) * 31 + ( - 82 ) * 37 + + 83 THEN + ( + 6 ) END AS REAL ) ) AS col1
----
-26
NULL

query I rowsort
SELECT DISTINCT + 25 + 83
----
108

query I rowsort
SELECT + 97 + - 96
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL - 50 + - CASE - + 0 WHEN - COUNT( 86 ) THEN NULL ELSE + 19 + - MAX( DISTINCT + 14 ) END AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - 50 + - CASE - + 0 WHEN - COUNT ( 86 ) THEN NULL ELSE + 19 + - MAX ( DISTINCT + 14 ) END AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2663
SELECT ALL COUNT( + CAST( NULL AS DECIMAL ) ), 4 AS col1
----
0
4

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL COUNT ( + CAST ( NULL AS REAL ) ), 4 AS col1
----
0
4

query I rowsort
SELECT ALL + 10 * - 77
----
-770

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT - NULLIF ( - + 58, - MAX( - 26 ) ) AS col0, - 52 col0
----
58
-52

skipif mysql # not compatible
query II rowsort label-2665
SELECT - NULLIF ( - + 58, - MAX ( - 26 ) ) AS col0, - 52 col0
----
58
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT - CASE + COUNT( * ) WHEN + ( - - COUNT( * ) ) * - 26 THEN + 5 + ( + 48 ) WHEN 75 + + 59 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT - CASE + COUNT ( * ) WHEN + ( - - COUNT ( * ) ) * - 26 THEN + 5 + ( + 48 ) WHEN 75 + + 59 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 88 + - 41
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT + 0 DIV - - ( + 78 )
----
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT + 0 / - - ( + 78 )
----
0

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

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

query I rowsort
SELECT ( + 94 ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT - COALESCE ( - + 54, - - 41, 91 * + + 87 * + 14 + - 23 + - 82 - MIN( DISTINCT + + 42 ) + + - COUNT( * ) ) * - 75 * 39
----
-157950

skipif mysql # not compatible
query I rowsort label-2671
SELECT - COALESCE ( - + 54, - - 41, 91 * + + 87 * + 14 + - 23 + - 82 - MIN ( DISTINCT + + 42 ) + + - COUNT ( * ) ) * - 75 * 39
----
-157950

query I rowsort
SELECT ALL - 48 * - + 53 col1
----
2544

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT ALL - 76 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL - 76 / + 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT + 34 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT + 34 / 48
----
0

query I rowsort
SELECT - 40 * 37 AS col1
----
-1480

query I rowsort
SELECT + COALESCE ( + 33, NULLIF ( + 19, + 83 ) ) * 27 col0
----
891

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

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

query I rowsort
SELECT - 86 - + 60
----
-146

query I rowsort
SELECT ALL + 72 * + 52
----
3744

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

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + COUNT ( ALL + 16 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT ALL - 81 * + COALESCE ( 59, + 69 + + 62 * + - CAST( + 43 AS SIGNED ) ) * - 14 - 29 * + + MIN( - - 5 ) + - 76 * + 27 - + 20 - + - 84
----
64773

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - 81 * + COALESCE ( 59, + 69 + + 62 * + - CAST ( + 43 AS INTEGER ) ) * - 14 - 29 * + + MIN ( - - 5 ) + - 76 * + 27 - + 20 - + - 84
----
64773

query I rowsort
SELECT + 81 * 37 + - 46 + + 39 AS col0
----
2990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT DISTINCT + + NULLIF ( 68, - + 91 * + 4 - - MAX( 81 ) + ( - 92 ) * + 25 * - 13 ) * - ( + CASE 25 WHEN - 30 THEN - CASE - - 73 WHEN - 90 * COUNT( * ) + - + 11 THEN 78 * + + 6 ELSE 68 + + 19 END WHEN - 5 * 72 THEN MAX( DISTINCT - 43 ) END ) * + 90 * CAST( + 12 AS SIGNED ) - + 83 / + 83 + + - COUNT( * ) + + COUNT( * ) + - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT + + NULLIF ( 68, - + 91 * + 4 - - MAX ( 81 ) + ( - 92 ) * + 25 * - 13 ) * - ( + CASE 25 WHEN - 30 THEN - CASE - - 73 WHEN - 90 * COUNT ( * ) + - + 11 THEN 78 * + + 6 ELSE 68 + + 19 END WHEN - 5 * 72 THEN MAX ( DISTINCT - 43 ) END ) * + 90 * CAST ( + 12 AS INTEGER ) - + 83 / + 83 + + - COUNT ( * ) + + COUNT ( * ) + - - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2684
SELECT + - 68 * NULLIF ( CASE - + 55 WHEN + 60 THEN - - 53 END, - MAX( 11 ) ) AS col1, 50 AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-2684
SELECT + - 68 * NULLIF ( CASE - + 55 WHEN + 60 THEN - - 53 END, - MAX ( 11 ) ) AS col1, 50 AS col0
----
NULL
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2685
SELECT - + COUNT( * ) * + + 8 * ( - 83 ) * 12 DIV + + 2 + 88
----
4072

skipif mysql # not compatible
query I rowsort label-2685
SELECT - + COUNT ( * ) * + + 8 * ( - 83 ) * 12 / + + 2 + 88
----
4072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2686
SELECT - CAST( + + 26 AS SIGNED ) + + 36 AS col0, - 94 * + - MAX( - 56 ) AS col1
----
10
-5264

skipif mysql # not compatible
query II rowsort label-2686
SELECT - CAST ( + + 26 AS INTEGER ) + + 36 AS col0, - 94 * + - MAX ( - 56 ) AS col1
----
10
-5264

onlyif mysql # aggregate syntax: 
query II rowsort label-2687
SELECT - - 8 AS col2, COUNT( * ) AS col0
----
8
1

skipif mysql # not compatible
query II rowsort label-2687
SELECT - - 8 AS col2, COUNT ( * ) AS col0
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - 73 + - 7 + - + CASE 78 WHEN + CASE - - COUNT( * ) WHEN + - COUNT( * ) + - 91 * - ( + 71 ) THEN NULL WHEN + - 18 THEN NULL ELSE + COUNT( * ) END THEN + + 80 END / - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2688
SELECT - 73 + - 7 + - + CASE 78 WHEN + CASE - - COUNT ( * ) WHEN + - COUNT ( * ) + - 91 * - ( + 71 ) THEN NULL WHEN + - 18 THEN NULL ELSE + COUNT ( * ) END THEN + + 80 END / - 91
----
NULL

query I rowsort
SELECT ALL + 96 * CASE + 87 WHEN - 33 * + + 70 * - ( - - 85 ) THEN + - 83 WHEN + + 18 THEN + 8 END col1
----
NULL

query I rowsort
SELECT ALL + + 60 * + 40 + + 65
----
2465

query I rowsort
SELECT ALL - 21 * - 61
----
1281

query I rowsort
SELECT DISTINCT 30 * + 97 AS col2
----
2910

query I rowsort
SELECT ALL 92 * - - 80 AS col1
----
7360

query I rowsort
SELECT - 24 - - 92 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT - NULLIF ( + 86, CAST( AVG ( 88 ) AS SIGNED ) )
----
-86

skipif mysql # not compatible
query I rowsort label-2695
SELECT - NULLIF ( + 86, CAST ( AVG ( 88 ) AS INTEGER ) )
----
-86

query I rowsort
SELECT + 0 - 34 + + 99
----
65

query I rowsort
SELECT + 59 * - - 24 AS col1
----
1416

query I rowsort
SELECT + 76 + + 19 * + 31 * + 35 + + 96 + + 56
----
20843

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

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL MAX ( - 73 )
----
-73

query I rowsort
SELECT + 29 * + - 84
----
-2436

query I rowsort
SELECT ALL 41 * + 87
----
3567

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

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

query I rowsort
SELECT ( - + 72 ) - + + ( - + 41 ) AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2704
SELECT COALESCE ( - CAST( - 46 AS SIGNED ), - 20 DIV + 64 * 52 + - 19 - + 5 + + 33 * + 44, 33 ) DIV - 72 + + ( ( + - 87 ) ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-2704
SELECT COALESCE ( - CAST ( - 46 AS INTEGER ), - 20 / + 64 * 52 + - 19 - + 5 + + 33 * + 44, 33 ) / - 72 + + ( ( + - 87 ) ) col1
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL 45 + + ( + - COUNT( * ) ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL 45 + + ( + - COUNT ( * ) ) AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2707
SELECT DISTINCT - COUNT( DISTINCT 47 ) DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - COUNT ( DISTINCT 47 ) / + 73 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT + - 7 DIV 99 + 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + - 7 / 99 + 3 AS col1
----
3

query I rowsort
SELECT DISTINCT - - 45 + - 89
----
-44

query I rowsort
SELECT ( - - 13 ) AS col0
----
13

query I rowsort
SELECT DISTINCT - 67 * - 65
----
4355

query I rowsort
SELECT ALL + 76 - + 66
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2713
SELECT COUNT( * ) + - - CAST( - - COUNT( * ) AS SIGNED ) + + + COUNT( DISTINCT + 99 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2713
SELECT COUNT ( * ) + - - CAST ( - - COUNT ( * ) AS INTEGER ) + + + COUNT ( DISTINCT + 99 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT - 46 * + COUNT( * ) * - + 14 - 79 AS col1
----
565

skipif mysql # not compatible
query I rowsort label-2714
SELECT - 46 * + COUNT ( * ) * - + 14 - 79 AS col1
----
565

query I rowsort
SELECT 37 + + 19
----
56

query II rowsort
SELECT 47 + + 73 * - + ( + ( - 87 ) ) AS col0, 56 + - 17
----
6398
39

query I rowsort
SELECT 66 * 89
----
5874

query I rowsort
SELECT 82 + 36 AS col0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT 56 DIV - 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2719
SELECT 56 / - 27 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2720
SELECT 44, CAST( - - CASE - 22 WHEN - - 14 THEN NULL WHEN 14 THEN NULL WHEN + - 34 THEN - 69 / - ( 96 ) + - - 30 END AS SIGNED ) AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-2720
SELECT 44, CAST ( - - CASE - 22 WHEN - - 14 THEN NULL WHEN 14 THEN NULL WHEN + - 34 THEN - 69 / - ( 96 ) + - - 30 END AS INTEGER ) AS col0
----
44
NULL

query II rowsort
SELECT ALL 27, + 67 AS col1
----
27
67

query I rowsort
SELECT DISTINCT - 3 + + + 12 - - 87 * - - 22 AS col1
----
1923

query I rowsort
SELECT ALL 33 + + 94 * - - 19
----
1819

query I rowsort
SELECT 91 * 66 AS col2
----
6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2725
SELECT ALL - 86 + + + NULLIF ( 20, + CAST( + - 38 AS SIGNED ) + - ( + CAST( + COUNT( * ) AS SIGNED ) ) / - 75 ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL - 86 + + + NULLIF ( 20, + CAST ( + - 38 AS INTEGER ) + - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) / - 75 ) col0
----
-66

query II rowsort
SELECT + 35 AS col0, 95
----
35
95

query I rowsort
SELECT 92 * - + ( - 70 )
----
6440

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT + 70 + + 7 + 65 DIV - ( 8 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2728
SELECT + 70 + + 7 + 65 / - ( 8 ) AS col0
----
69

query I rowsort
SELECT DISTINCT - 79 + 68 AS col0
----
-11

query I rowsort
SELECT ALL - 20 + + 4 AS col2
----
-16

query I rowsort
SELECT + 28 - - - 67 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT NULLIF ( - - MIN( DISTINCT + - 18 ), + CAST( NULL AS SIGNED ) ) + + 23 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT NULLIF ( - - MIN ( DISTINCT + - 18 ), + CAST ( NULL AS INTEGER ) ) + + 23 AS col0
----
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT DISTINCT - 79 AS col1, CASE + 97 WHEN 92 THEN COUNT( * ) WHEN - 87 THEN NULL ELSE NULL END * - 67 + + 30 * + - COALESCE ( - + AVG ( + 28 ), - + 95 + - COUNT( DISTINCT + 55 ), + 67 ) AS col0
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-2734
SELECT DISTINCT - 79 AS col1, CASE + 97 WHEN 92 THEN COUNT ( * ) WHEN - 87 THEN NULL ELSE NULL END * - 67 + + 30 * + - COALESCE ( - + AVG ( + 28 ), - + 95 + - COUNT ( DISTINCT + 55 ), + 67 ) AS col0
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - 64 * - - COUNT( DISTINCT 72 )
----
-64

skipif mysql # not compatible
query I rowsort label-2735
SELECT - 64 * - - COUNT ( DISTINCT 72 )
----
-64

query I rowsort
SELECT ALL - - 67 - + 50 AS col2
----
17

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

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

query I rowsort
SELECT 30 - + + 49 AS col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT + 30 * 91 DIV + 61 col0
----
44

skipif mysql # not compatible
query I rowsort label-2739
SELECT + 30 * 91 / + 61 col0
----
44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + NULLIF ( - SUM( ALL - 9 ), - COUNT( * ) ) col0
----
9

skipif mysql # not compatible
query I rowsort label-2741
SELECT + NULLIF ( - SUM ( ALL - 9 ), - COUNT ( * ) ) col0
----
9

query II rowsort
SELECT DISTINCT 41 AS col1, 73 col2
----
41
73

query II rowsort
SELECT ALL - 79 * - 40 AS col2, ( + 93 )
----
3160
93

query II rowsort
SELECT - 55 AS col1, + 18 col0
----
-55
18

query I rowsort
SELECT + 17 * + - 10 col1
----
-170

query I rowsort
SELECT ALL - 17 + + ( 28 ) + - + COALESCE ( + - 15, ( 41 ), + 81 ) * + - 38
----
-559

query I rowsort
SELECT - 11 - - NULLIF ( 30, + + 63 ) AS col0
----
19

query I rowsort
SELECT - 76 * + - 11 AS col1
----
836

query I rowsort
SELECT ALL - 90 + - 39 - + 81
----
-210

query I rowsort
SELECT - 63 + - - 57 - - 56 * + 34
----
1898

query I rowsort
SELECT ALL - 17 + + 75 + + 71 * - 7
----
-439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT - CAST( NULL AS SIGNED ) / - CASE + 71 WHEN COUNT( * ) THEN - + CASE + + 74 WHEN + 87 + + 76 THEN + 7 ELSE NULL END * + 80 * + 63 END / + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2752
SELECT - CAST ( NULL AS INTEGER ) / - CASE + 71 WHEN COUNT ( * ) THEN - + CASE + + 74 WHEN + 87 + + 76 THEN + 7 ELSE NULL END * + 80 * + 63 END / + 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL + COUNT( * ) + - + 6 - - 14
----
9

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + COUNT ( * ) + - + 6 - - 14
----
9

query I rowsort
SELECT - 33 - + + 20
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL + NULLIF ( - 93, - + 19 + - NULLIF ( - 92, - 20 + 90 ) ) * + COUNT( * ) + + 33 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + NULLIF ( - 93, - + 19 + - NULLIF ( - 92, - 20 + 90 ) ) * + COUNT ( * ) + + 33 AS col2
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2756
SELECT - CAST( NULL AS DECIMAL ) + - + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT - CAST ( NULL AS REAL ) + - + 41 AS col0
----
NULL

query I rowsort
SELECT ALL + 61 * - - 4 + - + 11 AS col0
----
233

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

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

query II rowsort
SELECT 14, ( + 20 ) * - 39 * + 6 AS col2
----
14
-4680

onlyif mysql # aggregate syntax: 
query II rowsort label-2760
SELECT 83, - 88 * + COUNT( ALL + + 18 ) AS col1
----
83
-88

skipif mysql # not compatible
query II rowsort label-2760
SELECT 83, - 88 * + COUNT ( ALL + + 18 ) AS col1
----
83
-88

query I rowsort
SELECT + 7 * + 99 * 84 * - 39 + - 9 AS col2
----
-2270277

onlyif mysql # aggregate syntax: 
query II rowsort label-2762
SELECT 20 AS col1, COUNT( * ) * - 83 + - 32 AS col2
----
20
-115

skipif mysql # not compatible
query II rowsort label-2762
SELECT 20 AS col1, COUNT ( * ) * - 83 + - 32 AS col2
----
20
-115

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

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

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

query I rowsort
SELECT - + 3 * + 92 + - 81 AS col1
----
-357

query I rowsort
SELECT - 2 * - 1 * - + 86 + 19 AS col0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT + - MIN( ALL 87 ) + 68 * - - 15 * 51
----
51933

skipif mysql # not compatible
query I rowsort label-2767
SELECT + - MIN ( ALL 87 ) + 68 * - - 15 * 51
----
51933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2768
SELECT + ( + 83 ) * + CASE + - 36 WHEN + - 89 * + CAST( 97 AS DECIMAL ) + - + 34 THEN NULL WHEN - - 64 THEN COALESCE ( + SUM( DISTINCT - 33 ), + - 90, + 74 * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * 52 + 84 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT + ( + 83 ) * + CASE + - 36 WHEN + - 89 * + CAST ( 97 AS REAL ) + - + 34 THEN NULL WHEN - - 64 THEN COALESCE ( + SUM ( DISTINCT - 33 ), + - 90, + 74 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 52 + 84 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL + MAX( ALL - + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL + MAX ( ALL - + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL NULLIF ( + + 74, - - COUNT( * ) ) * 76
----
5624

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL NULLIF ( + + 74, - - COUNT ( * ) ) * 76
----
5624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2771
SELECT + - COUNT( * ) * 74 * 10 - + COUNT( * ) AS col2, - 97 + + + CAST( NULL AS SIGNED )
----
-741
NULL

skipif mysql # not compatible
query II rowsort label-2771
SELECT + - COUNT ( * ) * 74 * 10 - + COUNT ( * ) AS col2, - 97 + + + CAST ( NULL AS INTEGER )
----
-741
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2772
SELECT MIN( ALL - 67 ) AS col1, 53 * + + CAST( 87 AS SIGNED ) * + 0 + + CAST( NULL AS SIGNED ) - - - 92 AS col1, 82 * + 33
----
-67
NULL
2706

skipif mysql # not compatible
query III rowsort label-2772
SELECT MIN ( ALL - 67 ) AS col1, 53 * + + CAST ( 87 AS INTEGER ) * + 0 + + CAST ( NULL AS INTEGER ) - - - 92 AS col1, 82 * + 33
----
-67
NULL
2706

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT + 18 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT + 18 / 71
----
0

query I rowsort
SELECT + 23 + ( + 58 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT + MIN( DISTINCT - - 51 ) * + - 70 * - 35
----
124950

skipif mysql # not compatible
query I rowsort label-2775
SELECT + MIN ( DISTINCT - - 51 ) * + - 70 * - 35
----
124950

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT - NULLIF ( 86, + COUNT( * ) + - + 72 ) + + 37 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2776
SELECT - NULLIF ( 86, + COUNT ( * ) + - + 72 ) + + 37 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT + 30 * - 19 + - CAST( - 63 AS SIGNED ) AS col1
----
-507

skipif mysql # not compatible
query I rowsort label-2777
SELECT + 30 * - 19 + - CAST ( - 63 AS INTEGER ) AS col1
----
-507

query I rowsort
SELECT + 88 + + + 6 + 9
----
103

query I rowsort
SELECT - 93 - - 72
----
-21

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

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

query II rowsort
SELECT + CASE - + ( - ( - + 22 ) ) WHEN - 89 * + + 15 THEN NULL ELSE + + 42 END + - 5 AS col2, 38
----
37
38

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

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - SUM ( ALL + - 49 ) + + COUNT ( * ) AS col1
----
50

query I rowsort
SELECT ALL 22 * + 29 * - + 29 * - 62
----
1147124

query I rowsort
SELECT ALL - 86 + 51 + + 83
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - 86 + - NULLIF ( COUNT( + + 58 ), ( COUNT( * ) ) * + 69 * 15 * - 15 * + COUNT( * ) * + ( - 82 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-2785
SELECT - 86 + - NULLIF ( COUNT ( + + 58 ), ( COUNT ( * ) ) * + 69 * 15 * - 15 * + COUNT ( * ) * + ( - 82 ) )
----
-87

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

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

query I rowsort
SELECT DISTINCT - - COALESCE ( - - CASE 29 WHEN 95 THEN NULL WHEN + 55 THEN NULL ELSE - 48 * 31 + + ( 51 ) + - 34 END, + 37 ) * - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT ALL - - 96 / + CASE - 8 WHEN - - ( + - 15 ) THEN - COUNT( * ) * - - 99 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL - - 96 / + CASE - 8 WHEN - - ( + - 15 ) THEN - COUNT ( * ) * - - 99 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT - 85 * MAX( ALL - 86 ), CASE ( + 0 ) WHEN - - 72 * - 86 * - 88 THEN NULL WHEN 83 * - 18 THEN + 32 + + 47 ELSE - - 18 END AS col1
----
7310
18

skipif mysql # not compatible
query II rowsort label-2789
SELECT - 85 * MAX ( ALL - 86 ), CASE ( + 0 ) WHEN - - 72 * - 86 * - 88 THEN NULL WHEN 83 * - 18 THEN + 32 + + 47 ELSE - - 18 END AS col1
----
7310
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2790
SELECT - CAST( NULL AS DECIMAL ) * ( - 66 ) * - - 49 + 65 - - + MIN( 84 ) * 6 * + 52 + - 35 + - + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT - CAST ( NULL AS REAL ) * ( - 66 ) * - - 49 + 65 - - + MIN ( 84 ) * 6 * + 52 + - 35 + - + 73 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2791
SELECT + 82 DIV + + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2791
SELECT + 82 / + + 84 AS col1
----
0

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

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

query I rowsort
SELECT - - 5 * - + 10
----
-50

query I rowsort
SELECT ALL - + 31 col0
----
-31

query II rowsort
SELECT + 45 AS col0, - 13 + - 12 col0
----
45
-25

query I rowsort
SELECT ALL 88 * - 41
----
-3608

query II rowsort
SELECT + 53 AS col0, + ( - - 20 )
----
53
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2798
SELECT COALESCE ( + - CASE - 20 WHEN - + 19 THEN + - COUNT( * ) WHEN + ( + MAX( + 21 ) ) THEN 73 END, + COUNT( * ) ) + - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT COALESCE ( + - CASE - 20 WHEN - + 19 THEN + - COUNT ( * ) WHEN + ( + MAX ( + 21 ) ) THEN 73 END, + COUNT ( * ) ) + - CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT ALL - 62 * 83 AS col2
----
-5146

query I rowsort
SELECT ALL 76 + + NULLIF ( - - 24, 23 ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-2801
SELECT DISTINCT 87 * ( 63 ), - 61 * + - COUNT( * ) + - + 28 AS col1
----
5481
33

skipif mysql # not compatible
query II rowsort label-2801
SELECT DISTINCT 87 * ( 63 ), - 61 * + - COUNT ( * ) + - + 28 AS col1
----
5481
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT SUM( DISTINCT + 59 ) + + + 76
----
135

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT SUM ( DISTINCT + 59 ) + + + 76
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-2803
SELECT 60 AS col0, - COUNT( * ) AS col1
----
60
-1

skipif mysql # not compatible
query II rowsort label-2803
SELECT 60 AS col0, - COUNT ( * ) AS col1
----
60
-1

query I rowsort
SELECT 90 * + 47 AS col1
----
4230

query I rowsort
SELECT 32 * 39
----
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT DISTINCT 10 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT DISTINCT 10 / + + 89
----
0

query II rowsort
SELECT ALL 87 AS col1, + 4 AS col1
----
87
4

query I rowsort
SELECT 42 * + 5
----
210

onlyif mysql # DIV for integer division: 
query II rowsort label-2809
SELECT ALL 55 DIV + + 63 + - 76, - 97 + + + 49 AS col0
----
-76
-48

skipif mysql # not compatible
query II rowsort label-2809
SELECT ALL 55 / + + 63 + - 76, - 97 + + + 49 AS col0
----
-76
-48

query I rowsort
SELECT ALL - 42 - - 91 AS col2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-2811
SELECT DISTINCT + 41 AS col1, - 94 DIV 18
----
41
-5

skipif mysql # not compatible
query II rowsort label-2811
SELECT DISTINCT + 41 AS col1, - 94 / 18
----
41
-5

query I rowsort
SELECT - 16 * - 89 * + 23 AS col2
----
32752

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

query I rowsort
SELECT DISTINCT + 39 * + - 30 col1
----
-1170

query II rowsort
SELECT - 82 col0, + ( + 13 ) * 59 * + 39 * 30 AS col0
----
-82
897390

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT 36 + + 67 - + COUNT( * ) + + COUNT( * ) + + - 92 + + + 98 + 43 * 1
----
152

skipif mysql # not compatible
query I rowsort label-2816
SELECT 36 + + 67 - + COUNT ( * ) + + COUNT ( * ) + + - 92 + + + 98 + 43 * 1
----
152

query I rowsort
SELECT - 83 * 15
----
-1245

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT 67 * + - ( + 91 ) * COUNT( * )
----
-6097

skipif mysql # not compatible
query I rowsort label-2818
SELECT 67 * + - ( + 91 ) * COUNT ( * )
----
-6097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2819
SELECT 51 DIV + 26 + + COUNT( * ) DIV 63 + 96
----
97

skipif mysql # not compatible
query I rowsort label-2819
SELECT 51 / + 26 + + COUNT ( * ) / 63 + 96
----
97

query I rowsort
SELECT ( 45 ) * - + 26 AS col1
----
-1170

query I rowsort
SELECT ALL 2 + + 13
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT ALL - 96 + - + 30 + + 59 * + - 7 DIV 7
----
-185

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL - 96 + - + 30 + + 59 * + - 7 / 7
----
-185

query II rowsort
SELECT - 67, - 10 AS col0
----
-67
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL - - ( + 32 ) + MAX( ALL + - ( + 32 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - - ( + 32 ) + MAX ( ALL + - ( + 32 ) )
----
0

query I rowsort
SELECT DISTINCT - 63 + - NULLIF ( - ( 6 ), - - 59 )
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-2826
SELECT ALL - 30 * - 37, - ( + 79 ) DIV - + 56 AS col2
----
1110
1

skipif mysql # not compatible
query II rowsort label-2826
SELECT ALL - 30 * - 37, - ( + 79 ) / - + 56 AS col2
----
1110
1

query I rowsort
SELECT 72 + + - 30 + 79 * 41
----
3281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL + 30 * - + 41 * + 1 * COUNT( * )
----
-1230

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + 30 * - + 41 * + 1 * COUNT ( * )
----
-1230

query I rowsort
SELECT DISTINCT - 76 * 63 AS col0
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + MAX( - - 19 ) + + 96 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + MAX ( - - 19 ) + + 96 AS col1
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2832
SELECT DISTINCT + 86 - + 88 * - CAST( - - 7 AS SIGNED ) AS col2, - 7
----
702
-7

skipif mysql # not compatible
query II rowsort label-2832
SELECT DISTINCT + 86 - + 88 * - CAST ( - - 7 AS INTEGER ) AS col2, - 7
----
702
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL MIN( DISTINCT 98 ) col1
----
98

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL MIN ( DISTINCT 98 ) col1
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2834
SELECT DISTINCT - 13 * CAST( 26 AS SIGNED ) DIV + 24 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - 13 * CAST ( 26 AS INTEGER ) / + 24 AS col0
----
-14

query II rowsort
SELECT 0 * + - 50, - 11 AS col0
----
0
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL - COUNT( * ) - 96
----
-97

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL - COUNT ( * ) - 96
----
-97

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

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

query I rowsort
SELECT ALL ( + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-2839
SELECT ALL - 2 * COUNT( * ) AS col1, - 24 * NULLIF ( + COUNT( * ), + 37 )
----
-2
-24

skipif mysql # not compatible
query II rowsort label-2839
SELECT ALL - 2 * COUNT ( * ) AS col1, - 24 * NULLIF ( + COUNT ( * ), + 37 )
----
-2
-24

query I rowsort
SELECT DISTINCT - COALESCE ( + 59, 73 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT - 14 + + 7 AS col1, - 20 + 22 * + - MAX( + 55 ) col0
----
-7
-1230

skipif mysql # not compatible
query II rowsort label-2841
SELECT - 14 + + 7 AS col1, - 20 + 22 * + - MAX ( + 55 ) col0
----
-7
-1230

query I rowsort
SELECT 61 * - 99
----
-6039

query I rowsort
SELECT + 28 + 99 AS col2
----
127

query I rowsort
SELECT 51 + - 79 AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT + ( - + 9 ) DIV + 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT + ( - + 9 ) / + 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL + 86 + - MAX( + 36 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + 86 + - MAX ( + 36 ) AS col1
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2847
SELECT ALL 64 DIV - 10 + - - 22 * + 33 + 56 + 37 + + 63 * COALESCE ( NULLIF ( - - COUNT( ALL 57 ), + + 54 ), + COUNT( ALL - + 71 ) + COUNT( * ) * 51 )
----
876

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL 64 / - 10 + - - 22 * + 33 + 56 + 37 + + 63 * COALESCE ( NULLIF ( - - COUNT ( ALL 57 ), + + 54 ), + COUNT ( ALL - + 71 ) + COUNT ( * ) * 51 )
----
876

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT - 3 DIV + ( + - 36 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT - 3 / + ( + - 36 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT DISTINCT 73 + + SUM( ALL + 69 ) * - 79 - - NULLIF ( + + 97, + COUNT( * ) ) + + 68 AS col1
----
-5213

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT 73 + + SUM ( ALL + 69 ) * - 79 - - NULLIF ( + + 97, + COUNT ( * ) ) + + 68 AS col1
----
-5213

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL 47 * - MIN( - 50 ) + - + 53 * - 73 * - 16 AS col0
----
-59554

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL 47 * - MIN ( - 50 ) + - + 53 * - 73 * - 16 AS col0
----
-59554

query I rowsort
SELECT ALL 91 + 98 - - + 57 + + 54
----
300

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

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

query I rowsort
SELECT ALL + 4 * COALESCE ( + 13, + 78 * - 63 ) * - - 4 + 83 + + 16
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ALL COUNT( * ) * + 19 + - 51 + + 88 * + - 83 + - 69 + - + 62 * + + 82 col2
----
-12489

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL COUNT ( * ) * + 19 + - 51 + + 88 * + - 83 + - 69 + - + 62 * + + 82 col2
----
-12489

query I rowsort
SELECT - CASE 27 WHEN 49 THEN + ( + 9 ) + - 92 WHEN 80 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + + COUNT( ALL 31 )
----
1

skipif mysql # not compatible
query I rowsort label-2856
SELECT + + COUNT ( ALL 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT + 71 * + MIN( DISTINCT + 67 ) AS col1
----
4757

skipif mysql # not compatible
query I rowsort label-2857
SELECT + 71 * + MIN ( DISTINCT + 67 ) AS col1
----
4757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT + CAST( NULL AS SIGNED ) - + + 46 * - + 18 * + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT + CAST ( NULL AS INTEGER ) - + + 46 * - + 18 * + + 80
----
NULL

query I rowsort
SELECT 71 * + - 83 + - 50
----
-5943

query I rowsort
SELECT ALL + 99 * 11 AS col2
----
1089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2861
SELECT COALESCE ( - - 7, + + 23, + COUNT( * ) * + COUNT( * ) ), MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
7
NULL

skipif mysql # not compatible
query II rowsort label-2861
SELECT COALESCE ( - - 7, + + 23, + COUNT ( * ) * + COUNT ( * ) ), MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
7
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT DISTINCT 64 DIV - NULLIF ( 2, + 90 )
----
-32

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT 64 / - NULLIF ( 2, + 90 )
----
-32

query I rowsort
SELECT - 93 - + ( - + 85 ) + 27
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - 69 - + 55 + + - 3 * + - 66 * - COUNT( * ) * + 18 - + MAX( ALL + + 7 ) AS col1
----
-3695

skipif mysql # not compatible
query I rowsort label-2864
SELECT - 69 - + 55 + + - 3 * + - 66 * - COUNT ( * ) * + 18 - + MAX ( ALL + + 7 ) AS col1
----
-3695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2865
SELECT ALL - ( - CAST( - - NULLIF ( - 88, - + 41 * - COUNT( * ) + - ( - 64 ) * - 50 + 52 ) AS SIGNED ) ) * - 21
----
1848

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - ( - CAST ( - - NULLIF ( - 88, - + 41 * - COUNT ( * ) + - ( - 64 ) * - 50 + 52 ) AS INTEGER ) ) * - 21
----
1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2866
SELECT - 57 DIV MAX( + - 15 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2866
SELECT - 57 / MAX ( + - 15 ) AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT - 63 * + CAST( AVG ( - 53 ) AS SIGNED )
----
3339

skipif mysql # not compatible
query I rowsort label-2867
SELECT - 63 * + CAST ( AVG ( - 53 ) AS INTEGER )
----
3339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2868
SELECT - 33 + - 74 + - 8 * - COUNT( * ) + + CAST( NULL AS SIGNED ) + - - 75 * + COALESCE ( + 75, + 53 - 1 + - SUM( + 79 ) * - + NULLIF ( - 20, + 87 * - 2 ), + + 64 - - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT - 33 + - 74 + - 8 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - - 75 * + COALESCE ( + 75, + 53 - 1 + - SUM ( + 79 ) * - + NULLIF ( - 20, + 87 * - 2 ), + + 64 - - 60 )
----
NULL

query I rowsort
SELECT ALL - 36 * - + 49 AS col0
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL - COUNT( * ) * - 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - COUNT ( * ) * - 10 AS col2
----
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL CASE - 67 WHEN - 10 THEN NULL WHEN + 28 THEN NULL ELSE ( + NULLIF ( + + COUNT( + 74 ), + + 51 - + 42 + - 60 * 37 / + - 79 ) ) + - 31 * - ( 51 ) END AS col0
----
1582

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL CASE - 67 WHEN - 10 THEN NULL WHEN + 28 THEN NULL ELSE ( + NULLIF ( + + COUNT ( + 74 ), + + 51 - + 42 + - 60 * 37 / + - 79 ) ) + - 31 * - ( 51 ) END AS col0
----
1582

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT CASE - 22 WHEN + 56 / 11 THEN NULL WHEN - COUNT( * ) THEN - 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT CASE - 22 WHEN + 56 / 11 THEN NULL WHEN - COUNT ( * ) THEN - 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL COALESCE ( - 21, - COUNT( * ) + 8, 67 - + 69 ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL COALESCE ( - 21, - COUNT ( * ) + 8, 67 - + 69 ) col2
----
-21

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

query I rowsort
SELECT - 91 + 76 AS col2
----
-15

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

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

query I rowsort
SELECT - COALESCE ( 65, + 46 ) AS col0
----
-65

query I rowsort
SELECT DISTINCT 14 + 72 * - 3
----
-202

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

query I rowsort
SELECT DISTINCT - ( - 61 ) + 25
----
86

query I rowsort
SELECT + 14 + 60
----
74

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2885
SELECT + CAST( 86 AS SIGNED ) + COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2885
SELECT + CAST ( 86 AS INTEGER ) + COUNT ( * ) AS col1
----
87

query I rowsort
SELECT ALL 65 + 13
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT + COALESCE ( - 49, ( + MIN( DISTINCT 93 ) ) * - 47 - 98 ) * - 7 + - ( - 65 + - 2 ) * 4 AS col1
----
611

skipif mysql # not compatible
query I rowsort label-2887
SELECT + COALESCE ( - 49, ( + MIN ( DISTINCT 93 ) ) * - 47 - 98 ) * - 7 + - ( - 65 + - 2 ) * 4 AS col1
----
611

query I rowsort
SELECT + 77 * 45 AS col2
----
3465

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

skipif mysql # not compatible
query I rowsort label-2889
SELECT COUNT ( * ) / 8 + COUNT ( * )
----
1

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

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT 12 / COUNT ( * ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2891
SELECT ALL 33 DIV - COALESCE ( 26 * 81, - 81, + 89 * NULLIF ( - MIN( + 33 ) * - 79, + 18 - 18 * 70 ) ) - 14
----
-14

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL 33 / - COALESCE ( 26 * 81, - 81, + 89 * NULLIF ( - MIN ( + 33 ) * - 79, + 18 - 18 * 70 ) ) - 14
----
-14

query I rowsort
SELECT + 17 * + 44 AS col1
----
748

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

query I rowsort
SELECT + COALESCE ( + 14, + 62, NULLIF ( + 80, - 78 ) + - 58, 87 * + 18 )
----
14

query I rowsort
SELECT - 87 * 93 AS col1
----
-8091

query I rowsort
SELECT + 75 + 26 * - 84
----
-2109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT + CAST( 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-2897
SELECT + CAST ( 46 AS INTEGER )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL + MIN( ALL + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + MIN ( ALL + 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT - 51 * + 21 + COUNT( DISTINCT - 47 )
----
-1070

skipif mysql # not compatible
query I rowsort label-2899
SELECT - 51 * + 21 + COUNT ( DISTINCT - 47 )
----
-1070

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT + COUNT( ALL 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT + COUNT ( ALL 81 ) AS col0
----
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT + - 18 * - 40 + + 28 DIV + 42
----
720

skipif mysql # not compatible
query I rowsort label-2903
SELECT + - 18 * - 40 + + 28 / + 42
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL + - 46 * - 24 + COUNT( * )
----
1105

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + - 46 * - 24 + COUNT ( * )
----
1105

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

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

query I rowsort
SELECT DISTINCT + 67 * - 80 + 27
----
-5333

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ALL - 32 * 72 + + 83 DIV 37 AS col2
----
-2302

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - 32 * 72 + + 83 / 37 AS col2
----
-2302

query I rowsort
SELECT DISTINCT + - 82 * + 23 AS col0
----
-1886

query I rowsort
SELECT DISTINCT - 36 + - ( - 76 - 39 ) AS col0
----
79

query I rowsort
SELECT ALL + 78 + - 3 * 84 AS col2
----
-174

query I rowsort
SELECT ALL - COALESCE ( 12, - 53 * - ( - 85 ) + - COALESCE ( 52 + 87, - 40, 83 ) ) AS col2
----
-12

query I rowsort
SELECT DISTINCT COALESCE ( - ( 82 ), + 15 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2913
SELECT - 65 * MAX( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT - 65 * MAX ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT + CASE 56 WHEN 41 THEN NULL WHEN + MAX( DISTINCT - 59 ) * + 68 + + SUM( + 8 ) THEN - 39 * + 89 WHEN - CAST( NULL AS SIGNED ) * - 17 + - 32 THEN 50 * 72 + - COUNT( * ) ELSE + ( + 82 ) * + 63 END AS col2
----
5166

skipif mysql # not compatible
query I rowsort label-2914
SELECT + CASE 56 WHEN 41 THEN NULL WHEN + MAX ( DISTINCT - 59 ) * + 68 + + SUM ( + 8 ) THEN - 39 * + 89 WHEN - CAST ( NULL AS INTEGER ) * - 17 + - 32 THEN 50 * 72 + - COUNT ( * ) ELSE + ( + 82 ) * + 63 END AS col2
----
5166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT ALL - - 69 - + COALESCE ( 13, 2 DIV - COUNT( * ) + ( 60 ) * 79 )
----
56

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL - - 69 - + COALESCE ( 13, 2 / - COUNT ( * ) + ( 60 ) * 79 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT DISTINCT + 84 * COUNT( - 9 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + 84 * COUNT ( - 9 ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2917
SELECT DISTINCT + COALESCE ( COALESCE ( 88, - 85 ), - 32 * 28, 8 + - MAX( + 73 ) * + ( 70 - CASE 3 WHEN 82 DIV 82 + - 12 THEN AVG ( - ( + 97 ) ) + - SUM( + 91 ) WHEN 54 * 33 THEN NULL END DIV 63 ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT + COALESCE ( COALESCE ( 88, - 85 ), - 32 * 28, 8 + - MAX ( + 73 ) * + ( 70 - CASE 3 WHEN 82 / 82 + - 12 THEN AVG ( - ( + 97 ) ) + - SUM ( + 91 ) WHEN 54 * 33 THEN NULL END / 63 ) ) AS col2
----
88

query I rowsort
SELECT DISTINCT + ( 87 ) * - 90 col2
----
-7830

query I rowsort
SELECT ALL - 82 - - 23 AS col2
----
-59

query I rowsort
SELECT DISTINCT + 17 * 2
----
34

query I rowsort
SELECT DISTINCT - 54 - + 89
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT ALL + 99 * 44 DIV - 22 AS col2
----
-198

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + 99 * 44 / - 22 AS col2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ( COUNT( * ) ) * - 34 + 25 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2923
SELECT ( COUNT ( * ) ) * - 34 + 25 AS col0
----
-9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2925
SELECT 90 DIV - COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2925
SELECT 90 / - COUNT ( * ) AS col2
----
-90

query I rowsort
SELECT 26 * - - 50 * + 57 AS col0
----
74100

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT COUNT( * ) - - 91 + + 31 * - CASE WHEN NOT 38 * + 80 = 20 THEN 50 * + 2 ELSE 85 END * + COUNT( * )
----
-3008

skipif mysql # not compatible
query I rowsort label-2927
SELECT COUNT ( * ) - - 91 + + 31 * - CASE WHEN NOT 38 * + 80 = 20 THEN 50 * + 2 ELSE 85 END * + COUNT ( * )
----
-3008

query I rowsort
SELECT COALESCE ( + 9, + 10 ) * + 25
----
225

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT 16 DIV - + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2930
SELECT 16 / - + 92 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT DISTINCT 75 DIV - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT 75 / - 62 AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL CAST ( NULL AS INTEGER ) + + 82 + 8
----
NULL

query I rowsort
SELECT DISTINCT ( + 75 ) + - 99
----
-24

query I rowsort
SELECT ( + 46 ) - - 15
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2935
SELECT CAST( - 97 AS SIGNED ) * - 61
----
5917

skipif mysql # not compatible
query I rowsort label-2935
SELECT CAST ( - 97 AS INTEGER ) * - 61
----
5917

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

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

query I rowsort
SELECT DISTINCT 68 + - + ( 43 ) AS col2
----
25

query I rowsort
SELECT DISTINCT 12 + - 88 AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT ALL + 62 + - 45 + + ( ( + 19 ) ) DIV 9 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + 62 + - 45 + + ( ( + 19 ) ) / 9 AS col1
----
19

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

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - COUNT ( * ) + - + 78
----
-79

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

skipif mysql # not compatible
query I rowsort label-2941
SELECT - ( CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL - + 9 + + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL - + 9 + + COUNT ( * )
----
-8

query I rowsort
SELECT - 83 - - 19 + + 96 AS col0
----
32

query I rowsort
SELECT 15 + - 91
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2945
SELECT - COALESCE ( ( - 15 ), - 77 + COUNT( * ) ) + + NULLIF ( - ( - COALESCE ( + 16, + SUM( 22 ) ) ) + - 3 * + CAST( NULL AS DECIMAL ), 57 * 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT - COALESCE ( ( - 15 ), - 77 + COUNT ( * ) ) + + NULLIF ( - ( - COALESCE ( + 16, + SUM ( 22 ) ) ) + - 3 * + CAST ( NULL AS REAL ), 57 * 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL - COUNT( * ) - 1 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - COUNT ( * ) - 1 AS col2
----
-2

query I rowsort
SELECT + 49 * 27 col1
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT COUNT( * ) + - 48 * + 84 AS col2
----
-4031

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( * ) + - 48 * + 84 AS col2
----
-4031

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT CASE WHEN NOT ( 92 ) <= - 0 THEN + MIN( + 30 ) ELSE NULL END col0
----
30

skipif mysql # not compatible
query I rowsort label-2949
SELECT CASE WHEN NOT ( 92 ) <= - 0 THEN + MIN ( + 30 ) ELSE NULL END col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT 84 + 52 DIV + 34
----
85

skipif mysql # not compatible
query I rowsort label-2950
SELECT 84 + 52 / + 34
----
85

query I rowsort
SELECT ALL - 86 - - 11 AS col0
----
-75

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

query I rowsort
SELECT ALL + NULLIF ( - + ( - 19 ), 68 + 44 ) * 89 AS col1
----
1691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT DISTINCT + CASE 86 WHEN + 81 / CAST( NULL AS SIGNED ) THEN 57 + 63 WHEN - 57 THEN 31 * - 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT + CASE 86 WHEN + 81 / CAST ( NULL AS INTEGER ) THEN 57 + 63 WHEN - 57 THEN 31 * - 1 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL - 31 DIV 87 - - 0 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - 31 / 87 - - 0 * + 62
----
0

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

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

skipif mysql # not compatible
query II rowsort label-2957
SELECT - COUNT ( * ) AS col1, 89 AS col1
----
-1
89

query I rowsort
SELECT 81 * - 60 AS col2
----
-4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT 20 + - 32 * - + CAST( 56 AS SIGNED )
----
1812

skipif mysql # not compatible
query I rowsort label-2959
SELECT 20 + - 32 * - + CAST ( 56 AS INTEGER )
----
1812

query II rowsort
SELECT - 50, 20 AS col1
----
-50
20

query I rowsort
SELECT 29 + - 7 + 27 AS col2
----
49

query I rowsort
SELECT 35 * - 6 * - 6 * + 11 AS col1
----
13860

query I rowsort
SELECT ALL - CASE 60 WHEN - ( - 18 ) - 4 THEN - 53 + 8 ELSE NULL END * ( 99 - 73 ) AS col2
----
NULL

query I rowsort
SELECT 6 * - - 67 AS col1
----
402

onlyif mysql # DIV for integer division: 
query II rowsort label-2965
SELECT + 61, + COALESCE ( - 69, + 99 DIV - 97, 67 * 95 + + 85 ) * - 79 col2
----
61
5451

skipif mysql # not compatible
query II rowsort label-2965
SELECT + 61, + COALESCE ( - 69, + 99 / - 97, 67 * 95 + + 85 ) * - 79 col2
----
61
5451

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

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

query I rowsort
SELECT ALL - 77 * - 76
----
5852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT - CASE - 51 WHEN - + 90 THEN NULL WHEN + CAST( COUNT( * ) AS SIGNED ) * 15 THEN 42 ELSE 34 * - CAST( + 54 AS SIGNED ) END AS col0
----
1836

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT - CASE - 51 WHEN - + 90 THEN NULL WHEN + CAST ( COUNT ( * ) AS INTEGER ) * 15 THEN 42 ELSE 34 * - CAST ( + 54 AS INTEGER ) END AS col0
----
1836

query I rowsort
SELECT ALL - 67 * + 22 + 49 * 35 AS col2
----
241

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL + 95 * + ( 7 ) + MAX( 35 ) AS col2
----
700

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL + 95 * + ( 7 ) + MAX ( 35 ) AS col2
----
700

onlyif mysql # aggregate syntax: 
query II rowsort label-2971
SELECT DISTINCT - 3 AS col0, COALESCE ( + 61, - MAX( 61 ), - ( + ( + 50 ) ) * - COUNT( * ) + + 29 ) AS col1
----
-3
61

skipif mysql # not compatible
query II rowsort label-2971
SELECT DISTINCT - 3 AS col0, COALESCE ( + 61, - MAX ( 61 ), - ( + ( + 50 ) ) * - COUNT ( * ) + + 29 ) AS col1
----
-3
61

query I rowsort
SELECT - 42 * - 65 + + - 86 + 80 * - 39
----
-476

query I rowsort
SELECT 9 * - + 14 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT MAX( ALL - + 51 ) * - 98 * - CASE 39 WHEN 22 THEN NULL WHEN - 68 THEN 26 - - 83 * - 14 END + - 63 + COUNT( * ) * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT MAX ( ALL - + 51 ) * - 98 * - CASE 39 WHEN 22 THEN NULL WHEN - 68 THEN 26 - - 83 * - 14 END + - 63 + COUNT ( * ) * + 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL + COUNT( * ) * 70 + 51 + COUNT( * ) * + COUNT( * )
----
122

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL + COUNT ( * ) * 70 + 51 + COUNT ( * ) * + COUNT ( * )
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT + SUM( ALL - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-2976
SELECT + SUM ( ALL - - 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT COUNT( * ) + + + 72 col0
----
73

skipif mysql # not compatible
query I rowsort label-2977
SELECT COUNT ( * ) + + + 72 col0
----
73

query I rowsort
SELECT 34 * 60
----
2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT ALL 56 DIV MIN( ALL 19 )
----
2

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL 56 / MIN ( ALL 19 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT ALL + COALESCE ( - - 3, COUNT( * ), - 27 ) * - 70 + MAX( ALL + 37 ) * 36 AS col2
----
1122

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL + COALESCE ( - - 3, COUNT ( * ), - 27 ) * - 70 + MAX ( ALL + 37 ) * 36 AS col2
----
1122

query II rowsort
SELECT - 13 AS col2, 21 AS col0
----
-13
21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2983
SELECT + + 2 * - - NULLIF ( + - CAST( COUNT( * ) AS SIGNED ), CASE + 11 WHEN ( + 21 ) * ( 24 + - COALESCE ( + 68, + ( COUNT( * ) ) ) ) THEN 48 END + 31 * - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2983
SELECT + + 2 * - - NULLIF ( + - CAST ( COUNT ( * ) AS INTEGER ), CASE + 11 WHEN ( + 21 ) * ( 24 + - COALESCE ( + 68, + ( COUNT ( * ) ) ) ) THEN 48 END + 31 * - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2984
SELECT + 64 col2, - 80 - - CASE 37 WHEN + 80 * - 86 + CAST( 29 + + 85 AS SIGNED ) THEN 13 * COUNT( * ) - + AVG ( 71 ) * + 55 END
----
64
NULL

skipif mysql # not compatible
query II rowsort label-2984
SELECT + 64 col2, - 80 - - CASE 37 WHEN + 80 * - 86 + CAST ( 29 + + 85 AS INTEGER ) THEN 13 * COUNT ( * ) - + AVG ( 71 ) * + 55 END
----
64
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT + + NULLIF ( ( ( COALESCE ( - 3, 46, SUM( + CAST( NULL AS SIGNED ) ) + COUNT( * ) ) ) ), - SUM( 65 ) ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + + NULLIF ( ( ( COALESCE ( - 3, 46, SUM ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) ) ) ), - SUM ( 65 ) ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL - SUM( 14 ) - + 38 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL - SUM ( 14 ) - + 38 AS col2
----
-52

query I rowsort
SELECT ALL + 76 - + 19
----
57

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

query I rowsort
SELECT - 98 * + - 68 + 38 + 71
----
6773

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2991
SELECT DISTINCT + 57 * CAST( COALESCE ( 40, 81, - 51 - - CAST( NULL AS SIGNED ) ) AS SIGNED ) * - ( - COUNT( + 98 ) * - MAX( ALL - 42 ) - - COUNT( * ) / + 41 ) + NULLIF ( + CAST( NULL AS SIGNED ), 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + 57 * CAST ( COALESCE ( 40, 81, - 51 - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - ( - COUNT ( + 98 ) * - MAX ( ALL - 42 ) - - COUNT ( * ) / + 41 ) + NULLIF ( + CAST ( NULL AS INTEGER ), 25 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 71, 12 AS col1
----
-71
12

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

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

query I rowsort
SELECT DISTINCT CASE + 10 WHEN - 37 THEN 30 + - 28 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT DISTINCT - 2 * 62 DIV - ( + 51 ) + - ( + 51 ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT - 2 * 62 / - ( + 51 ) + - ( + 51 ) col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT ALL 0 DIV + + 83 * + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL 0 / + + 83 * + 40 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2997
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0, - 97
----
1
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - CASE WHEN NOT ( NULL ) IN ( - COUNT( * ) ) THEN 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT - CASE WHEN NOT ( NULL ) IN ( - COUNT ( * ) ) THEN 32 ELSE NULL END
----
NULL

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

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

query II rowsort
SELECT ALL - 82 + + 6 AS col0, - 80 * 80
----
-76
-6400

query I rowsort
SELECT DISTINCT 99 * + 12 * 20
----
23760

query I rowsort
SELECT - 11 * - 50
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL COUNT( * ) + 85 + 2 + - 96 * + 9 AS col1
----
-776

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL COUNT ( * ) + 85 + 2 + - 96 * + 9 AS col1
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL 93 + MAX( - 7 ) - 38 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL 93 + MAX ( - 7 ) - 38 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT DISTINCT + 91 DIV + 77
----
1

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT + 91 / + 77
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT + 16 * SUM( - 20 ) * - 87
----
27840

skipif mysql # not compatible
query I rowsort label-3006
SELECT + 16 * SUM ( - 20 ) * - 87
----
27840

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL + COUNT( 56 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL + COUNT ( 56 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT + ( MAX( DISTINCT - 72 ) ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-3008
SELECT + ( MAX ( DISTINCT - 72 ) ) col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - 57 * + - SUM( 49 ) AS col0
----
2793

skipif mysql # not compatible
query I rowsort label-3009
SELECT - 57 * + - SUM ( 49 ) AS col0
----
2793

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT - 45 - 44 * 79 * - COUNT( * ) + + 72 * + 14 col1
----
4439

skipif mysql # not compatible
query I rowsort label-3010
SELECT - 45 - 44 * 79 * - COUNT ( * ) + + 72 * + 14 col1
----
4439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT DISTINCT 82 * + + 3 * + 28 + - COALESCE ( + 24, 78 + - CAST( NULL AS SIGNED ), 26 ) AS col1
----
6864

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT 82 * + + 3 * + 28 + - COALESCE ( + 24, 78 + - CAST ( NULL AS INTEGER ), 26 ) AS col1
----
6864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT 83 * + 19 * - + 55 + + CASE - 29 WHEN 53 + - COUNT( * ) THEN - 21 / CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT 83 * + 19 * - + 55 + + CASE - 29 WHEN 53 + - COUNT ( * ) THEN - 21 / CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3013
SELECT DISTINCT + 12 * - - 52 + + - 8 DIV + - 84 - + ( 30 + 69 ) AS col2
----
525

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + 12 * - - 52 + + - 8 / + - 84 - + ( 30 + 69 ) AS col2
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT + 26 * 79 - - - SUM( + 39 ) AS col0
----
2015

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT + 26 * 79 - - - SUM ( + 39 ) AS col0
----
2015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3015
SELECT - 18 - 41 AS col2, + CAST( NULL AS SIGNED )
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-3015
SELECT - 18 - 41 AS col2, + CAST ( NULL AS INTEGER )
----
-59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT - - 41 * + COUNT( * ) + + - 10 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3016
SELECT - - 41 * + COUNT ( * ) + + - 10 AS col2
----
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3018
SELECT + 1 DIV ( - - 30 )
----
0

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 1 / ( - - 30 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3019
SELECT ALL + - COALESCE ( - 4, + NULLIF ( + COUNT( * ), + 62 ) DIV 77 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL + - COALESCE ( - 4, + NULLIF ( + COUNT ( * ), + 62 ) / 77 ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT + CASE + ( 4 ) WHEN - + MAX( 16 ) THEN NULL WHEN + COALESCE ( - 14, - 96 ) / 90 + + MIN( ALL 48 - - 36 ) THEN - 67 + CAST( NULL AS SIGNED ) * 25 ELSE 7 END
----
7

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT + CASE + ( 4 ) WHEN - + MAX ( 16 ) THEN NULL WHEN + COALESCE ( - 14, - 96 ) / 90 + + MIN ( ALL 48 - - 36 ) THEN - 67 + CAST ( NULL AS INTEGER ) * 25 ELSE 7 END
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3021
SELECT + - ( + - 67 ) DIV + CAST( + 4 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-3021
SELECT + - ( + - 67 ) / + CAST ( + 4 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3022
SELECT DISTINCT + 53 DIV COUNT( * ) * + 95 AS col2
----
5035

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + 53 / COUNT ( * ) * + 95 AS col2
----
5035

query I rowsort
SELECT DISTINCT + + 8 * + + 28 AS col2
----
224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3024
SELECT + CASE 42 WHEN + + 69 THEN 60 DIV MIN( + 82 * 41 ) ELSE + 63 * 13 END DIV 69
----
11

skipif mysql # not compatible
query I rowsort label-3024
SELECT + CASE 42 WHEN + + 69 THEN 60 / MIN ( + 82 * 41 ) ELSE + 63 * 13 END / 69
----
11

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

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

query I rowsort
SELECT - 48 + - 78
----
-126

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT + 59 + 56 + + 55 DIV + 58
----
115

skipif mysql # not compatible
query I rowsort label-3028
SELECT + 59 + 56 + + 55 / + 58
----
115

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

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

query I rowsort
SELECT + 35 + - 44 + - 35 + 78 + 53 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL - 77 + + + ( + - COUNT( * ) ) * - 65 * - 48 AS col1
----
-3197

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL - 77 + + + ( + - COUNT ( * ) ) * - 65 * - 48 AS col1
----
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT 58 + + + COUNT( * ) * - 16 + 61 + CASE 3 WHEN - 7 + 83 THEN + 69 * - 24 - 35 * 90 ELSE NULL END / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT 58 + + + COUNT ( * ) * - 16 + 61 + CASE 3 WHEN - 7 + 83 THEN + 69 * - 24 - 35 * 90 ELSE NULL END / 91 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3033
SELECT DISTINCT NULLIF ( + 95, 41 ) + 72 + + + CAST( NULLIF ( COUNT( - 95 ), 51 + + AVG ( - 32 ) ) AS SIGNED ) + - COUNT( * ) * 49
----
119

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT NULLIF ( + 95, 41 ) + 72 + + + CAST ( NULLIF ( COUNT ( - 95 ), 51 + + AVG ( - 32 ) ) AS INTEGER ) + - COUNT ( * ) * 49
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT DISTINCT NULLIF ( + 82, - + 27 ) * + 57 * + 84 - + 7 DIV + COUNT( * ) AS col1
----
392609

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT NULLIF ( + 82, - + 27 ) * + 57 * + 84 - + 7 / + COUNT ( * ) AS col1
----
392609

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT - MIN( ALL - - 71 ) + NULLIF ( 14, - 38 ) + 9 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3035
SELECT - MIN ( ALL - - 71 ) + NULLIF ( 14, - 38 ) + 9 AS col1
----
-48

query I rowsort
SELECT + 69 * - + 34 * - 90 * + + 43 AS col0
----
9079020

query I rowsort
SELECT ALL 39 + - - 47
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT ALL ( + SUM( ALL 7 ) ) - COUNT( * ) col0
----
6

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL ( + SUM ( ALL 7 ) ) - COUNT ( * ) col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3039
SELECT DISTINCT + 61 DIV + 44 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + 61 / + 44 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - 3 * 65 + - 26 * + COUNT( * ) * - 77 - 34 AS col2
----
1773

skipif mysql # not compatible
query I rowsort label-3040
SELECT - 3 * 65 + - 26 * + COUNT ( * ) * - 77 - 34 AS col2
----
1773

onlyif mysql # aggregate syntax: 
query II rowsort label-3041
SELECT - 9 AS col2, + 88 * + - 59 - - + 14 * - ( NULLIF ( - 35, 73 - - COUNT( * ) ) ) AS col2
----
-9
-4702

skipif mysql # not compatible
query II rowsort label-3041
SELECT - 9 AS col2, + 88 * + - 59 - - + 14 * - ( NULLIF ( - 35, 73 - - COUNT ( * ) ) ) AS col2
----
-9
-4702

query II rowsort
SELECT DISTINCT - + 28 AS col1, - 47
----
-28
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT 44 + - 51 + CASE + 73 WHEN + 11 THEN NULL ELSE 80 DIV 24 - COUNT( * ) END DIV + 56 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3043
SELECT 44 + - 51 + CASE + 73 WHEN + 11 THEN NULL ELSE 80 / 24 - COUNT ( * ) END / + 56 AS col2
----
-7

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

skipif mysql # not compatible
query I rowsort label-3044
SELECT - COUNT ( * ) * - 2 * - - MIN ( - ( + 87 ) ) AS col0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT DISTINCT + CASE - ( MIN( 7 ) ) WHEN + + 68 THEN 6 ELSE - ( 19 ) END * - 22 AS col2
----
418

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT + CASE - ( MIN ( 7 ) ) WHEN + + 68 THEN 6 ELSE - ( 19 ) END * - 22 AS col2
----
418

query II rowsort
SELECT ALL - 93 AS col0, 99 * 97
----
-93
9603

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

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

query I rowsort
SELECT ALL + - 31 * + + 27
----
-837

query I rowsort
SELECT 13 + + 42 AS col1
----
55

query I rowsort
SELECT DISTINCT + 7 * - 71 col1
----
-497

query I rowsort
SELECT + + NULLIF ( - + 53, - 11 + - + 42 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT 59 + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3052
SELECT 59 + COUNT ( * )
----
60

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

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

query I rowsort
SELECT ALL - + ( 37 ) + - - 24
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT + - 81 + + + 45 * 14 + 12 + 11 + CASE 74 + + 70 WHEN 67 THEN NULL ELSE COUNT( + 72 ) * 75 + 77 END
----
724

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT + - 81 + + + 45 * 14 + 12 + 11 + CASE 74 + + 70 WHEN 67 THEN NULL ELSE COUNT ( + 72 ) * 75 + 77 END
----
724

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3056
SELECT COUNT( * ) * 4 * ( - 18 ) AS col2, 47 * 18 * - 0 + - 68 * ( + 54 DIV + 92 ) AS col2
----
-72
0

skipif mysql # not compatible
query II rowsort label-3056
SELECT COUNT ( * ) * 4 * ( - 18 ) AS col2, 47 * 18 * - 0 + - 68 * ( + 54 / + 92 ) AS col2
----
-72
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3058
SELECT ALL 42 AS col1, 73 + - COUNT( DISTINCT + 4 ) AS col2
----
42
72

skipif mysql # not compatible
query II rowsort label-3058
SELECT ALL 42 AS col1, 73 + - COUNT ( DISTINCT + 4 ) AS col2
----
42
72

query I rowsort
SELECT 19 * - 32
----
-608

query I rowsort
SELECT ALL - 82 + - - 86 AS col1
----
4

query I rowsort
SELECT ALL + ( 46 ) + 77
----
123

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

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

query I rowsort
SELECT 9 * - + 50
----
-450

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT COUNT( * ) * + + 17 AS col1, COUNT( - + 23 ) * 77 * + + SUM( + 57 )
----
17
4389

skipif mysql # not compatible
query II rowsort label-3064
SELECT COUNT ( * ) * + + 17 AS col1, COUNT ( - + 23 ) * 77 * + + SUM ( + 57 )
----
17
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ALL + ( + COALESCE ( - 19, + 24 + 9 ) ) + - 24 - 33 * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + ( + COALESCE ( - 19, + 24 + 9 ) ) + - 24 - 33 * COUNT ( * )
----
-76

query II rowsort
SELECT 68 col2, 54 * 80
----
68
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT NULLIF ( 73, - COUNT( * ) ) * - COUNT( * ) * - 77 AS col2
----
5621

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT NULLIF ( 73, - COUNT ( * ) ) * - COUNT ( * ) * - 77 AS col2
----
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT COUNT( * ) - + 72 * 75 AS col0
----
-5399

skipif mysql # not compatible
query I rowsort label-3068
SELECT COUNT ( * ) - + 72 * 75 AS col0
----
-5399

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL + COUNT( * ) * + 33 * 59
----
1947

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL + COUNT ( * ) * + 33 * 59
----
1947

query II rowsort
SELECT DISTINCT 18 AS col0, 34
----
18
34

query I rowsort
SELECT DISTINCT 75 - 59
----
16

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

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3073
SELECT ALL 76 AS col2, COUNT( DISTINCT + + ( + 4 ) )
----
76
1

skipif mysql # not compatible
query II rowsort label-3073
SELECT ALL 76 AS col2, COUNT ( DISTINCT + + ( + 4 ) )
----
76
1

query I rowsort
SELECT ALL 27 * - + 29
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT 39 - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT 39 - - COUNT ( * )
----
40

query II rowsort
SELECT ALL - 5 AS col1, 4 * + 79
----
-5
316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT 75 DIV - 45 + + MAX( - COALESCE ( - 21, - - 96 - 97 ) ) * - 35
----
-736

skipif mysql # not compatible
query I rowsort label-3077
SELECT 75 / - 45 + + MAX ( - COALESCE ( - 21, - - 96 - 97 ) ) * - 35
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT 36 * + + 72 + + + 31 + + NULLIF ( + ( - - 68 ), COUNT( * ) ) * + 62 AS col0
----
6839

skipif mysql # not compatible
query I rowsort label-3078
SELECT 36 * + + 72 + + + 31 + + NULLIF ( + ( - - 68 ), COUNT ( * ) ) * + 62 AS col0
----
6839

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL - 63 * + - NULLIF ( + 43, - + CASE COUNT( * ) WHEN + COUNT( * ) * COUNT( * ) THEN - 40 + COALESCE ( ( ( + 94 ) ), + 85 * COUNT( * ) ) / 87 WHEN + 15 * 43 THEN NULL ELSE NULL END )
----
2709

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - 63 * + - NULLIF ( + 43, - + CASE COUNT ( * ) WHEN + COUNT ( * ) * COUNT ( * ) THEN - 40 + COALESCE ( ( ( + 94 ) ), + 85 * COUNT ( * ) ) / 87 WHEN + 15 * 43 THEN NULL ELSE NULL END )
----
2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT ALL CAST( NULL AS SIGNED ) * + CASE NULLIF ( - + 55, + 90 * 89 ) WHEN ( - 7 ) * - 83 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 68 / - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL CAST ( NULL AS INTEGER ) * + CASE NULLIF ( - + 55, + 90 * 89 ) WHEN ( - 7 ) * - 83 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 68 / - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT 28 + 87 AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3082
SELECT ALL - COALESCE ( - - 18, - SUM( + 87 ), - - NULLIF ( - 40, 91 ), - 33 DIV + 52 ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - COALESCE ( - - 18, - SUM ( + 87 ), - - NULLIF ( - 40, 91 ), - 33 / + 52 ) / + 90
----
0

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

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

query I rowsort
SELECT + - 60 * + 27 + - COALESCE ( - - 76, - 30 ) * + 53 * 82
----
-331916

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL - + CASE COUNT( ALL + 15 ) WHEN + 64 * + 86 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - + CASE COUNT ( ALL + 15 ) WHEN + 64 * + 86 THEN + COUNT ( * ) ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 48 AS col0, - 28 * + 99
----
-48
-2772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3087
SELECT ALL - 69 * ( + + COUNT( * ) ) DIV + MAX( 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - 69 * ( + + COUNT ( * ) ) / + MAX ( 51 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3088
SELECT + 41 DIV - + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 41 / - + 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - ( - 87 ) * + - MAX( 93 )
----
-8091

skipif mysql # not compatible
query I rowsort label-3089
SELECT - ( - 87 ) * + - MAX ( 93 )
----
-8091

query I rowsort
SELECT 84 * + - 10 + - 54
----
-894

onlyif mysql # aggregate syntax: 
query II rowsort label-3091
SELECT + - 28 col0, + SUM( - - 70 )
----
-28
70

skipif mysql # not compatible
query II rowsort label-3091
SELECT + - 28 col0, + SUM ( - - 70 )
----
-28
70

query I rowsort
SELECT - 68 + - 23
----
-91

query I rowsort
SELECT DISTINCT + 45 + 7 * - 90 * + 72 AS col1
----
-45315

query I rowsort
SELECT + ( + - 1 ) - 35
----
-36

onlyif mysql # aggregate syntax: 
query III rowsort label-3095
SELECT + 12 AS col0, COUNT( * ) AS col1, + + 33 * 63 + + 23
----
12
1
2102

skipif mysql # not compatible
query III rowsort label-3095
SELECT + 12 AS col0, COUNT ( * ) AS col1, + + 33 * 63 + + 23
----
12
1
2102

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT - 90 * - COUNT( * ) col1, + 2 + + 78
----
90
80

skipif mysql # not compatible
query II rowsort label-3096
SELECT - 90 * - COUNT ( * ) col1, + 2 + + 78
----
90
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + COUNT( * ) + - 51 col0
----
-50

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + COUNT ( * ) + - 51 col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT - 95 * + 31 - + - 90 + - COUNT( * ) - + 56 + - 72 * - 77 AS col2
----
2632

skipif mysql # not compatible
query I rowsort label-3098
SELECT - 95 * + 31 - + - 90 + - COUNT ( * ) - + 56 + - 72 * - 77 AS col2
----
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL + COALESCE ( + 78, - 96 + + 89 + 45 * - - ( - 8 ) * + COUNT( DISTINCT CASE - 48 WHEN 54 * 87 + - 3 THEN 59 ELSE 75 + CASE - 50 WHEN 53 + - 91 * + 88 THEN 18 ELSE NULL END END ) + 88 ) + 21 * 28
----
666

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + COALESCE ( + 78, - 96 + + 89 + 45 * - - ( - 8 ) * + COUNT ( DISTINCT CASE - 48 WHEN 54 * 87 + - 3 THEN 59 ELSE 75 + CASE - 50 WHEN 53 + - 91 * + 88 THEN 18 ELSE NULL END END ) + 88 ) + 21 * 28
----
666

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL - COUNT( * ) + + - 70 * - COUNT( * ) col0
----
69

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL - COUNT ( * ) + + - 70 * - COUNT ( * ) col0
----
69

query II rowsort
SELECT ALL + 23 * - 78, + 32 AS col1
----
-1794
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT 76 + + 16 + - COUNT( * ) * + + 73 col1
----
19

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT 76 + + 16 + - COUNT ( * ) * + + 73 col1
----
19

query I rowsort
SELECT ALL - 50 + 75
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3105
SELECT 35 - 92 col1, + 32 DIV - 40
----
-57
0

skipif mysql # not compatible
query II rowsort label-3105
SELECT 35 - 92 col1, + 32 / - 40
----
-57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL + NULLIF ( - + MAX( + ( + 8 ) ), - + 36 ) * - NULLIF ( 89, + 62 * + 49 ) + + 84 AS col0
----
796

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL + NULLIF ( - + MAX ( + ( + 8 ) ), - + 36 ) * - NULLIF ( 89, + 62 * + 49 ) + + 84 AS col0
----
796

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

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

query II rowsort
SELECT 15 * + - 31, + 31 AS col2
----
-465
31

query I rowsort
SELECT ALL + ( + 31 ) - - 82 * + 74 AS col1
----
6099

query I rowsort
SELECT 25 + + - 82 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT - 46 + - - COUNT( * ) * + - 78
----
-124

skipif mysql # not compatible
query I rowsort label-3111
SELECT - 46 + - - COUNT ( * ) * + - 78
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3112
SELECT ALL - 78 DIV - ( COUNT( * ) ), - 20 AS col1
----
78
-20

skipif mysql # not compatible
query II rowsort label-3112
SELECT ALL - 78 / - ( COUNT ( * ) ), - 20 AS col1
----
78
-20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL CASE MIN( + 4 ) WHEN + 18 THEN CASE - - 7 WHEN + CAST( NULL AS SIGNED ) THEN + 56 WHEN - 46 THEN - NULLIF ( 56, + COUNT( ALL + CAST( - 45 AS SIGNED ) ) ) + + 59 * + 20 END * 51 ELSE + MIN( ALL 16 ) * 48 END
----
768

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL CASE MIN ( + 4 ) WHEN + 18 THEN CASE - - 7 WHEN + CAST ( NULL AS INTEGER ) THEN + 56 WHEN - 46 THEN - NULLIF ( 56, + COUNT ( ALL + CAST ( - 45 AS INTEGER ) ) ) + + 59 * + 20 END * 51 ELSE + MIN ( ALL 16 ) * 48 END
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT DISTINCT - 61 * + - 77 * + + 87 * - + COUNT( * )
----
-408639

skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - 61 * + - 77 * + + 87 * - + COUNT ( * )
----
-408639

query I rowsort
SELECT - 98 + 85 - 23 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-3117
SELECT DISTINCT COUNT( ALL - 45 ), + 42 col2
----
1
42

skipif mysql # not compatible
query II rowsort label-3117
SELECT DISTINCT COUNT ( ALL - 45 ), + 42 col2
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - 62 * + 45 * + COUNT( * ) * COUNT( * )
----
-2790

skipif mysql # not compatible
query I rowsort label-3118
SELECT - 62 * + 45 * + COUNT ( * ) * COUNT ( * )
----
-2790

query I rowsort
SELECT + 68 + NULLIF ( 49, + ( + ( 18 ) ) ) AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT - 80 DIV 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3120
SELECT - 80 / 55 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3121
SELECT ALL + + MIN( DISTINCT - 59 ), - 58 AS col2
----
-59
-58

skipif mysql # not compatible
query II rowsort label-3121
SELECT ALL + + MIN ( DISTINCT - 59 ), - 58 AS col2
----
-59
-58

query I rowsort
SELECT DISTINCT + + ( - 23 ) * - 5 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT + COUNT( * ) * - CASE + 78 WHEN + 63 THEN + SUM( - + 72 ) WHEN 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT + COUNT ( * ) * - CASE + 78 WHEN + 63 THEN + SUM ( - + 72 ) WHEN 30 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - 36 + 70 + - + COUNT( * ) * - 36 ) * 99 + - 67
----
6863

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - 36 + 70 + - + COUNT ( * ) * - 36 ) * 99 + - 67
----
6863

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT DISTINCT - + 4 * - COUNT( * ) + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT - + 4 * - COUNT ( * ) + COUNT ( * )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3126
SELECT ALL - + 5 * 8 / - 50 + CAST( 75 AS SIGNED ) + - - CASE + COALESCE ( 73, 55, - 99 + + 98, 57 ) WHEN - NULLIF ( 39, - 78 * + 44 ) THEN - ( - 22 ) ELSE NULL END + 89 + - COUNT( ALL - 47 + - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL - + 5 * 8 / - 50 + CAST ( 75 AS INTEGER ) + - - CASE + COALESCE ( 73, 55, - 99 + + 98, 57 ) WHEN - NULLIF ( 39, - 78 * + 44 ) THEN - ( - 22 ) ELSE NULL END + 89 + - COUNT ( ALL - 47 + - 64 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT + NULLIF ( + - CASE - 81 WHEN + 20 THEN 29 * 89 * + 81 DIV + 3 + + 52 ELSE + 64 * + ( + 88 * - ( 89 DIV - 22 ) ) END, + 83 ) * + 58 + ( 74 )
----
-1306550

skipif mysql # not compatible
query I rowsort label-3127
SELECT + NULLIF ( + - CASE - 81 WHEN + 20 THEN 29 * 89 * + 81 / + 3 + + 52 ELSE + 64 * + ( + 88 * - ( 89 / - 22 ) ) END, + 83 ) * + 58 + ( 74 )
----
-1306550

onlyif mysql # DIV for integer division: 
query II rowsort label-3128
SELECT DISTINCT 26 DIV - 48, + ( + - 14 ) DIV - - 90 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-3128
SELECT DISTINCT 26 / - 48, + ( + - 14 ) / - - 90 AS col2
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT ALL + 83 * + - CAST( 6 AS SIGNED ) + - - 46 AS col2
----
-452

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL + 83 * + - CAST ( 6 AS INTEGER ) + - - 46 AS col2
----
-452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT + 43 / - 18 / CAST( NULL AS SIGNED ) + - 40 + + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT + 43 / - 18 / CAST ( NULL AS INTEGER ) + - 40 + + - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT - CASE 67 WHEN - 25 THEN + ( - + 54 ) * - 80 * CASE 24 WHEN 75 * + 63 + 42 * - 60 THEN + ( 20 ) * + 89 + + 75 END * + CASE 21 WHEN - 67 THEN - ( + 87 ) WHEN 60 + COUNT( * ) * - ( COUNT( * ) ) THEN NULL END + 82 + 96 ELSE - 39 * + 30 END AS col0
----
1170

skipif mysql # not compatible
query I rowsort label-3131
SELECT - CASE 67 WHEN - 25 THEN + ( - + 54 ) * - 80 * CASE 24 WHEN 75 * + 63 + 42 * - 60 THEN + ( 20 ) * + 89 + + 75 END * + CASE 21 WHEN - 67 THEN - ( + 87 ) WHEN 60 + COUNT ( * ) * - ( COUNT ( * ) ) THEN NULL END + 82 + 96 ELSE - 39 * + 30 END AS col0
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT - 68 * - 78 + - - SUM( 91 ) + - + COUNT( * )
----
5394

skipif mysql # not compatible
query I rowsort label-3132
SELECT - 68 * - 78 + - - SUM ( 91 ) + - + COUNT ( * )
----
5394

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL + SUM( 74 ) * - 53 + + 67 AS col2
----
-3855

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + SUM ( 74 ) * - 53 + + 67 AS col2
----
-3855

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL - ( - - 63 ) * - CASE + 69 WHEN + ( + - NULLIF ( COUNT( * ), 11 * + 55 ) ) THEN NULL WHEN + 71 THEN NULL ELSE + 18 END + + 60
----
1194

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL - ( - - 63 ) * - CASE + 69 WHEN + ( + - NULLIF ( COUNT ( * ), 11 * + 55 ) ) THEN NULL WHEN + 71 THEN NULL ELSE + 18 END + + 60
----
1194

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT CASE + 19 WHEN - 80 THEN - + 60 + + - 15 END * - MIN( 10 ) * + 18 + ( 57 ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT CASE + 19 WHEN - 80 THEN - + 60 + + - 15 END * - MIN ( 10 ) * + 18 + ( 57 ) + - 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT DISTINCT - 64 * COUNT( * ), - 38 * 88 AS col1
----
-64
-3344

skipif mysql # not compatible
query II rowsort label-3136
SELECT DISTINCT - 64 * COUNT ( * ), - 38 * 88 AS col1
----
-64
-3344

query I rowsort
SELECT + 0 * ( + + 25 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + COUNT( * ) + + + 79 * + - 84 * - 68
----
451249

skipif mysql # not compatible
query I rowsort label-3138
SELECT + COUNT ( * ) + + + 79 * + - 84 * - 68
----
451249

query I rowsort
SELECT - 82 + + 70 - - - 16
----
-28

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT + COUNT( - 51 ) * + - 51 * CAST( 85 AS SIGNED ) + + 34 AS col0
----
-4301

skipif mysql # not compatible
query I rowsort label-3142
SELECT + COUNT ( - 51 ) * + - 51 * CAST ( 85 AS INTEGER ) + + 34 AS col0
----
-4301

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL COUNT( ALL + + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL COUNT ( ALL + + 19 )
----
1

query I rowsort
SELECT + 70 * + + 4 AS col2
----
280

query I rowsort
SELECT - 76 * 16 AS col2
----
-1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3146
SELECT ALL CASE 88 WHEN 37 + - COALESCE ( - + MIN( + 98 ), + 65 ) / 4 * - ( 73 * - 73 ) + - 51 THEN - 60 * + 59 WHEN + 38 * - CAST( NULL AS SIGNED ) THEN + NULLIF ( + AVG ( + 40 ), - 99 / 48 ) + COUNT( ALL 91 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL CASE 88 WHEN 37 + - COALESCE ( - + MIN ( + 98 ), + 65 ) / 4 * - ( 73 * - 73 ) + - 51 THEN - 60 * + 59 WHEN + 38 * - CAST ( NULL AS INTEGER ) THEN + NULLIF ( + AVG ( + 40 ), - 99 / 48 ) + COUNT ( ALL 91 ) END
----
NULL

query I rowsort
SELECT ALL - 92 * + 45 AS col0
----
-4140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3148
SELECT - CAST( NULL AS SIGNED ) AS col0, 72 DIV - 4
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-3148
SELECT - CAST ( NULL AS INTEGER ) AS col0, 72 / - 4
----
NULL
-18

query I rowsort
SELECT - 40 * + 23 col2
----
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT - 74 * + - CAST( NULL AS SIGNED ) * + - 76 * - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - 74 * + - CAST ( NULL AS INTEGER ) * + - 76 * - 66 AS col0
----
NULL

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

query II rowsort
SELECT - 65 AS col1, - 82
----
-65
-82

query I rowsort
SELECT + 4 * ( + 95 ) AS col2
----
380

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3154
SELECT - CAST( ( - 12 ) AS SIGNED ) AS col2, - 83 / CAST( NULL AS DECIMAL ) * - 52 + - CAST( NULL AS SIGNED ) * COALESCE ( + 44, - 72 )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-3154
SELECT - CAST ( ( - 12 ) AS INTEGER ) AS col2, - 83 / CAST ( NULL AS REAL ) * - 52 + - CAST ( NULL AS INTEGER ) * COALESCE ( + 44, - 72 )
----
12
NULL

query II rowsort
SELECT 25 col1, 80 AS col2
----
25
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT - CAST( - + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3156
SELECT - CAST ( - + 1 AS INTEGER )
----
1

query I rowsort
SELECT - 45 * + 38
----
-1710

query I rowsort
SELECT ALL NULLIF ( + 36, + 32 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3159
SELECT - COUNT( CAST( NULL AS SIGNED ) ) DIV CAST( 7 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) / CAST ( 7 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3160
SELECT 41 AS col0, - 75 * + COUNT( * ) + 22
----
41
-53

skipif mysql # not compatible
query II rowsort label-3160
SELECT 41 AS col0, - 75 * + COUNT ( * ) + 22
----
41
-53

query II rowsort
SELECT + 50 col2, + 60
----
50
60

query II rowsort
SELECT ALL 78 AS col0, + 39
----
78
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT - 96 DIV - + 67 + + + 84 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3163
SELECT - 96 / - + 67 + + + 84 AS col1
----
85

query II rowsort
SELECT - 51 AS col0, - 32 + ( + + 11 ) + - - 69 * - - 68 * 86 AS col2
----
-51
403491

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT - CAST( - 58 AS SIGNED ) + + 47
----
105

skipif mysql # not compatible
query I rowsort label-3166
SELECT - CAST ( - 58 AS INTEGER ) + + 47
----
105

query I rowsort
SELECT - - 42 - + - 3 AS col1
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + ( - ( + + NULLIF ( - COUNT( * ), + CASE WHEN NOT ( 50 ) NOT IN ( + 38 + + 22 ) THEN 26 ELSE NULL END + 85 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3169
SELECT + ( - ( + + NULLIF ( - COUNT ( * ), + CASE WHEN NOT ( 50 ) NOT IN ( + 38 + + 22 ) THEN 26 ELSE NULL END + 85 ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT - - 94 / + 26 - + 98 + - + 76 * CAST( - + 26 AS SIGNED ) + + COUNT( * ) + COALESCE ( + 45, - 94, + COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT - - 94 / + 26 - + 98 + - + 76 * CAST ( - + 26 AS INTEGER ) + + COUNT ( * ) + COALESCE ( + 45, - 94, + COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT 99 DIV 25 + COALESCE ( 8, + 92 )
----
11

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT 99 / 25 + COALESCE ( 8, + 92 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT ALL + 29 DIV 22 * + 40 + + ( + 57 ) * + 84 AS col2
----
4828

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL + 29 / 22 * + 40 + + ( + 57 ) * + 84 AS col2
----
4828

query I rowsort
SELECT + NULLIF ( - 93, - 0 )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3174
SELECT DISTINCT + 43 DIV - - 11 * - + COUNT( * ) + COUNT( * ) + - 38 - + 69 + NULLIF ( 22, 63 + COUNT( * ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT + 43 / - - 11 * - + COUNT ( * ) + COUNT ( * ) + - 38 - + 69 + NULLIF ( 22, 63 + COUNT ( * ) ) AS col0
----
-87

query I rowsort
SELECT - + 6 + 28
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT DISTINCT + 79 DIV + 94 * + 82 + 23 + + - 24 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT + 79 / + 94 * + 82 + 23 + + - 24 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3177
SELECT ALL + 65 DIV - 76 + 8 + 79 * - 40 AS col2
----
-3152

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + 65 / - 76 + 8 + 79 * - 40 AS col2
----
-3152

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL - - 79 DIV - 8 - + 12 * 91 * - 12 + - 33 AS col0
----
13062

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - - 79 / - 8 - + 12 * 91 * - 12 + - 33 AS col0
----
13062

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL + - MIN( ALL - 74 ) col1
----
74

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL + - MIN ( ALL - 74 ) col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT - - NULLIF ( - - MAX( + 4 ), + 69 ) + - + COUNT( * ) + 19 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3180
SELECT - - NULLIF ( - - MAX ( + 4 ), + 69 ) + - + COUNT ( * ) + 19 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + - 24 * - 67 + + - COUNT( * ) - - 43 * + COUNT( DISTINCT + 66 ) AS col0
----
1650

skipif mysql # not compatible
query I rowsort label-3181
SELECT + - 24 * - 67 + + - COUNT ( * ) - - 43 * + COUNT ( DISTINCT + 66 ) AS col0
----
1650

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-3186
SELECT ( - + 86 ) col0, - COUNT ( * )
----
-86
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT - 70 - + + CAST( - - 35 AS SIGNED ) AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-3187
SELECT - 70 - + + CAST ( - - 35 AS INTEGER ) AS col2
----
-105

query I rowsort
SELECT ALL 17 * - + 35 AS col1
----
-595

onlyif mysql # aggregate syntax: 
query II rowsort label-3189
SELECT ALL COUNT( * ) * - + 95 col2, 16 col1
----
-95
16

skipif mysql # not compatible
query II rowsort label-3189
SELECT ALL COUNT ( * ) * - + 95 col2, 16 col1
----
-95
16

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL 51 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL 51 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT ALL 21 + CASE 3 WHEN - + 27 THEN COUNT( * ) + 69 END / + 15 * + 56 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL 21 + CASE 3 WHEN - + 27 THEN COUNT ( * ) + 69 END / + 15 * + 56 * 82
----
NULL

query I rowsort
SELECT DISTINCT 80 + + - 84
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT 75 * - COUNT( * ) * + - ( + + 79 ) * + + 37 AS col1
----
219225

skipif mysql # not compatible
query I rowsort label-3194
SELECT 75 * - COUNT ( * ) * + - ( + + 79 ) * + + 37 AS col1
----
219225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT CAST( - 38 AS SIGNED ) + + 14 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3195
SELECT CAST ( - 38 AS INTEGER ) + + 14 AS col0
----
-24

query I rowsort
SELECT ALL 41 + + ( + + 70 ) col0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-3197
SELECT - 84 + - - 36, - SUM( 8 ) * - 61 + + - 5 + + - 35 + ( + COUNT( * ) ) AS col0
----
-48
449

skipif mysql # not compatible
query II rowsort label-3197
SELECT - 84 + - - 36, - SUM ( 8 ) * - 61 + + - 5 + + - 35 + ( + COUNT ( * ) ) AS col0
----
-48
449

query I rowsort
SELECT ALL - 40 * + 49
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT NULLIF ( - 86, - 0 - + + 25 ) + + MIN( + 66 ) + + 9
----
-11

skipif mysql # not compatible
query I rowsort label-3199
SELECT NULLIF ( - 86, - 0 - + + 25 ) + + MIN ( + 66 ) + + 9
----
-11

query I rowsort
SELECT + 51 * 67
----
3417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3201
SELECT ALL + CAST( + - 58 AS SIGNED ) + - + MAX( ALL - 16 ) DIV - 34
----
-58

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL + CAST ( + - 58 AS INTEGER ) + - + MAX ( ALL - 16 ) / - 34
----
-58

query I rowsort
SELECT + NULLIF ( 14, - 55 ) + + - 17 + + + 18 - + 22 + 64
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3203
SELECT ALL - - 9 + + CAST( NULL AS SIGNED ), SUM( + 4 ) AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-3203
SELECT ALL - - 9 + + CAST ( NULL AS INTEGER ), SUM ( + 4 ) AS col2
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT COALESCE ( 66, MIN( DISTINCT 14 ) )
----
66

skipif mysql # not compatible
query I rowsort label-3204
SELECT COALESCE ( 66, MIN ( DISTINCT 14 ) )
----
66

query I rowsort
SELECT DISTINCT + - 72 - + 28 + + 69
----
-31

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3207
SELECT ALL + - COUNT( * ) - - CAST( + 53 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + - COUNT ( * ) - - CAST ( + 53 AS INTEGER ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT CASE + 15 WHEN 91 + + + 31 / + 73 THEN - 91 WHEN + + COUNT( * ) * - 79 THEN - 34 END * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT CASE + 15 WHEN 91 + + + 31 / + 73 THEN - 91 WHEN + + COUNT ( * ) * - 79 THEN - 34 END * - 18
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3209
SELECT ALL + + ( + - 78 ) DIV + 29 + - 51 AS col0, 84 + + 72 * - 74 col2
----
-53
-5244

skipif mysql # not compatible
query II rowsort label-3209
SELECT ALL + + ( + - 78 ) / + 29 + - 51 AS col0, 84 + + 72 * - 74 col2
----
-53
-5244

query I rowsort
SELECT 82 + - - 39
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL + + 30 * - 87 * - - COUNT( * )
----
-2610

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL + + 30 * - 87 * - - COUNT ( * )
----
-2610

query II rowsort
SELECT 31 * - + 87 AS col2, + 1
----
-2697
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT MIN( ALL 96 ) * - 26 * - + 72 AS col0
----
179712

skipif mysql # not compatible
query I rowsort label-3213
SELECT MIN ( ALL 96 ) * - 26 * - + 72 AS col0
----
179712

query I rowsort
SELECT 25 + + CASE + 78 WHEN + - 70 THEN - 28 END
----
NULL

query I rowsort
SELECT 28 * 52
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL - MIN( DISTINCT 78 ) * - + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL - MIN ( DISTINCT 78 ) * - + COUNT ( * )
----
78

query I rowsort
SELECT - 21 * - CASE - 95 WHEN - + 51 + + ( + 23 ) THEN - + 44 WHEN 29 * 25 THEN + 89 ELSE + 35 - 35 END - ( - NULLIF ( 10, + 47 ) + 34 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - 58 * + CASE - COALESCE ( + 92, 78 ) WHEN - - 42 THEN - 67 WHEN COUNT( * ) THEN NULL ELSE NULL END + 90 + + + 31 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT - 58 * + CASE - COALESCE ( + 92, 78 ) WHEN - - 42 THEN - 67 WHEN COUNT ( * ) THEN NULL ELSE NULL END + 90 + + + 31 * - 79
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT ALL - 25, NULLIF ( + COALESCE ( + 20, - + ( + - 56 ) * + 37 * + 87 * + 61 * + 82 ), - 50 - AVG ( + 59 ) ) + + 73 * + COUNT( DISTINCT + 57 * + 17 - 68 ) AS col2
----
-25
93

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL - 25, NULLIF ( + COALESCE ( + 20, - + ( + - 56 ) * + 37 * + 87 * + 61 * + 82 ), - 50 - AVG ( + 59 ) ) + + 73 * + COUNT ( DISTINCT + 57 * + 17 - 68 ) AS col2
----
-25
93

query I rowsort
SELECT + 1 * - 50 + 14 + 90
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL 27 + - 11 + - ( - + COUNT( - 82 ) ) + - 33 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL 27 + - 11 + - ( - + COUNT ( - 82 ) ) + - 33 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT MAX( DISTINCT - 78 ) * + 5 AS col0
----
-390

skipif mysql # not compatible
query I rowsort label-3223
SELECT MAX ( DISTINCT - 78 ) * + 5 AS col0
----
-390

query I rowsort
SELECT ALL + 57 + 61
----
118

query I rowsort
SELECT ALL 3 + - - ( - 5 ) + + 69 * - 31
----
-2141

query I rowsort
SELECT DISTINCT + 39 * + 42 AS col1
----
1638

query I rowsort
SELECT - 78 * - 98 + - 83
----
7561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL COALESCE ( + + 97, 56 * + + ( + + ( ( + CAST( NULL AS SIGNED ) ) ) ) ) * + 9 * 68 * - COUNT( * ) AS col2
----
-59364

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL COALESCE ( + + 97, 56 * + + ( + + ( ( + CAST ( NULL AS INTEGER ) ) ) ) ) * + 9 * 68 * - COUNT ( * ) AS col2
----
-59364

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3230
SELECT 18 DIV + CASE - - COALESCE ( - 38, - - 81 ) WHEN 86 * + NULLIF ( - + 30, + COALESCE ( - COUNT( 87 ), + 93 ) ) - - COALESCE ( - 90, 68 ) DIV - 55 THEN NULL WHEN 65 THEN + ( + 22 ) + + 34 ELSE - 69 END * 92
----
0

skipif mysql # not compatible
query I rowsort label-3230
SELECT 18 / + CASE - - COALESCE ( - 38, - - 81 ) WHEN 86 * + NULLIF ( - + 30, + COALESCE ( - COUNT ( 87 ), + 93 ) ) - - COALESCE ( - 90, 68 ) / - 55 THEN NULL WHEN 65 THEN + ( + 22 ) + + 34 ELSE - 69 END * 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL CASE COUNT( * ) WHEN - 42 THEN + 70 - + 37 + 32 - + 46 END + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL CASE COUNT ( * ) WHEN - 42 THEN + 70 - + 37 + 32 - + 46 END + 43 AS col2
----
NULL

query I rowsort
SELECT - 44 * + 34 * + + 98
----
-146608

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

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

query I rowsort
SELECT - 58 - 75 - - 30
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3235
SELECT - + 43 col0, 60 * - NULLIF ( - - ( - ( - 14 ) ), CAST( + + 17 AS SIGNED ) ) AS col1
----
-43
-840

skipif mysql # not compatible
query II rowsort label-3235
SELECT - + 43 col0, 60 * - NULLIF ( - - ( - ( - 14 ) ), CAST ( + + 17 AS INTEGER ) ) AS col1
----
-43
-840

query I rowsort
SELECT ALL + - 69 * + 51
----
-3519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3237
SELECT ALL - COUNT( * ) - 23 DIV 24 * - - 25
----
-1

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - COUNT ( * ) - 23 / 24 * - - 25
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3238
SELECT DISTINCT - ( - 80 ) * + 54 DIV + ( - COUNT( * ) ) + 0 AS col1
----
-4320

skipif mysql # not compatible
query I rowsort label-3238
SELECT DISTINCT - ( - 80 ) * + 54 / + ( - COUNT ( * ) ) + 0 AS col1
----
-4320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT 66 - - ( + COUNT( + 34 ) )
----
67

skipif mysql # not compatible
query I rowsort label-3240
SELECT 66 - - ( + COUNT ( + 34 ) )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3241
SELECT - CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN CASE COUNT( * ) WHEN - NULLIF ( + 16, + + COUNT( * ) ) THEN - ( 98 ) WHEN - 78 + 49 * COUNT( * ) THEN NULL WHEN + 92 THEN NULL END + + 8 THEN - 32 END * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT - CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN CASE COUNT ( * ) WHEN - NULLIF ( + 16, + + COUNT ( * ) ) THEN - ( 98 ) WHEN - 78 + 49 * COUNT ( * ) THEN NULL WHEN + 92 THEN NULL END + + 8 THEN - 32 END * 47 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 1 * + + 42 AS col0
----
-42

query I rowsort
SELECT DISTINCT - 85 * 97 * + - 67 AS col0
----
552415

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT + + COALESCE ( + SUM( DISTINCT + 72 ), + 46, ( 87 ) + 57, + 75 )
----
72

skipif mysql # not compatible
query I rowsort label-3244
SELECT + + COALESCE ( + SUM ( DISTINCT + 72 ), + 46, ( 87 ) + 57, + 75 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT ALL + CASE + AVG ( - 85 ) WHEN - - 69 + 91 THEN 58 / - + ( - 96 ) * CAST( NULL AS SIGNED ) * NULLIF ( ( 60 ), COALESCE ( + AVG ( 28 ), - 82 ) + + 53 ) ELSE - 10 END
----
-10

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL + CASE + AVG ( - 85 ) WHEN - - 69 + 91 THEN 58 / - + ( - 96 ) * CAST ( NULL AS INTEGER ) * NULLIF ( ( 60 ), COALESCE ( + AVG ( 28 ), - 82 ) + + 53 ) ELSE - 10 END
----
-10

query I rowsort
SELECT ALL ( - - 74 ) * + 92
----
6808

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT ALL + 33 DIV - - 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL + 33 / - - 50 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT - CASE WHEN + 74 IS NOT NULL THEN + 71 WHEN ( NULL ) IN ( - 61, - 21 ) THEN - + 35 DIV - 55 END * 59
----
-4189

skipif mysql # not compatible
query I rowsort label-3248
SELECT - CASE WHEN + 74 IS NOT NULL THEN + 71 WHEN ( NULL ) IN ( - 61, - 21 ) THEN - + 35 / - 55 END * 59
----
-4189

query I rowsort
SELECT ALL + CASE + 16 WHEN + 30 + - - 60 - 30 * + 66 * 58 * + + 24 THEN NULL ELSE - 91 + 79 END AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3250
SELECT ALL + COUNT( * ) col2, + 31 DIV + 49
----
1
0

skipif mysql # not compatible
query II rowsort label-3250
SELECT ALL + COUNT ( * ) col2, + 31 / + 49
----
1
0

query I rowsort
SELECT DISTINCT 79 * 41 + + 90 + - ( 76 ) * + 43 col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT + 63 DIV - ( + 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3252
SELECT + 63 / - ( + 56 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - 69 * - - CASE 85 WHEN - MIN( - - ( 25 ) ) THEN 25 + - 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT - 69 * - - CASE 85 WHEN - MIN ( - - ( 25 ) ) THEN 25 + - 76 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL 53 * - 49 * + 66 + + AVG ( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL 53 * - 49 * + 66 + + AVG ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT 91 * - 60 + 0
----
-5460

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT DISTINCT + 52 * + - COALESCE ( - COALESCE ( + ( - ( - 95 ) ), - CAST( + - 43 AS SIGNED ) ), 75 - + 89 + + 57 * + 40 * + 92 ) AS col2
----
4940

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + 52 * + - COALESCE ( - COALESCE ( + ( - ( - 95 ) ), - CAST ( + - 43 AS INTEGER ) ), 75 - + 89 + + 57 * + 40 * + 92 ) AS col2
----
4940

query I rowsort
SELECT ALL 66 * - - ( + 74 ) + 44 AS col0
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT 62 * + - 64 + 93 - MIN( DISTINCT 19 ) * - 68 AS col0
----
-2583

skipif mysql # not compatible
query I rowsort label-3259
SELECT 62 * + - 64 + 93 - MIN ( DISTINCT 19 ) * - 68 AS col0
----
-2583

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

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

query I rowsort
SELECT - COALESCE ( 24, + 86 + + 89, + 6 ) + - 97
----
-121

query I rowsort
SELECT ALL + 26 + - 60 - 24 * - ( + 78 ) AS col2
----
1838

query I rowsort
SELECT DISTINCT + 53 * + 28
----
1484

query I rowsort
SELECT ALL - 98 + 69 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - 3 - ( + + 42 ) + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-3265
SELECT - 3 - ( + + 42 ) + COUNT ( * )
----
-44

query I rowsort
SELECT - 79 - - 23
----
-56

query I rowsort
SELECT - 19 + - - 32 AS col2
----
13

query I rowsort
SELECT + 89 + - 99 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT ALL - 49 + + COUNT( * ) - 12
----
-60

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - 49 + + COUNT ( * ) - 12
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT + 41 AS col0, 23 + - - COUNT( * ) AS col1
----
41
24

skipif mysql # not compatible
query II rowsort label-3270
SELECT + 41 AS col0, 23 + - - COUNT ( * ) AS col1
----
41
24

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

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

query I rowsort
SELECT - + 68 + + 9 col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - - MAX( ALL 90 ) + + - 21 * + - ( - 54 ) AS col0
----
-1044

skipif mysql # not compatible
query I rowsort label-3273
SELECT - - MAX ( ALL 90 ) + + - 21 * + - ( - 54 ) AS col0
----
-1044

query I rowsort
SELECT ALL - - 26 - 72 AS col1
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT DISTINCT - - 63 DIV - + 8
----
-7

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - - 63 / - + 8
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL 8 * MIN( 79 )
----
632

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL 8 * MIN ( 79 )
----
632

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT + 78 * - COUNT( DISTINCT 7 ) * - 18 * - 10
----
-14040

skipif mysql # not compatible
query I rowsort label-3277
SELECT + 78 * - COUNT ( DISTINCT 7 ) * - 18 * - 10
----
-14040

query II rowsort
SELECT ALL - 2 AS col2, + 62
----
-2
62

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

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

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

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

query II rowsort
SELECT 20, 11 AS col1
----
20
11

query I rowsort
SELECT + 5 + + 37
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3283
SELECT ALL + 78 AS col0, MIN( + - 78 )
----
78
-78

skipif mysql # not compatible
query II rowsort label-3283
SELECT ALL + 78 AS col0, MIN ( + - 78 )
----
78
-78

query II rowsort
SELECT - - 42 * 66 AS col1, - 18 * 75 - + - 21
----
2772
-1329

query I rowsort
SELECT + ( - - 64 ) + - + ( - 71 ) AS col2
----
135

query II rowsort
SELECT ALL 88, 69 + 83 AS col1
----
88
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + + MIN( DISTINCT 33 ) * + 90
----
2970

skipif mysql # not compatible
query I rowsort label-3287
SELECT + + MIN ( DISTINCT 33 ) * + 90
----
2970

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT + SUM( + + 42 ) + CASE + + 41 WHEN + 6 - + 44 THEN + - 6 + + + 91 + 62 + - - ( - + 26 ) + + 22 DIV COALESCE ( 12, - 99, NULLIF ( - 9, 64 DIV + CASE + 80 WHEN + 69 THEN NULL ELSE 91 END ) ) WHEN - 73 THEN - ( 21 ) ELSE 43 END + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3288
SELECT + SUM ( + + 42 ) + CASE + + 41 WHEN + 6 - + 44 THEN + - 6 + + + 91 + 62 + - - ( - + 26 ) + + 22 / COALESCE ( 12, - 99, NULLIF ( - 9, 64 / + CASE + 80 WHEN + 69 THEN NULL ELSE 91 END ) ) WHEN - 73 THEN - ( 21 ) ELSE 43 END + - COUNT ( * )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3289
SELECT - 13 DIV - 1 + + + 96 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-3289
SELECT - 13 / - 1 + + + 96 AS col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT CAST( - 54 AS SIGNED ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-3290
SELECT CAST ( - 54 AS INTEGER ) col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3291
SELECT CAST( - 6 AS SIGNED ), 13 - 19
----
-6
-6

skipif mysql # not compatible
query II rowsort label-3291
SELECT CAST ( - 6 AS INTEGER ), 13 - 19
----
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + MAX( DISTINCT + 36 ) * 69 AS col0
----
2484

skipif mysql # not compatible
query I rowsort label-3292
SELECT + MAX ( DISTINCT + 36 ) * 69 AS col0
----
2484

query I rowsort
SELECT + ( 61 ) + 69
----
130

query I rowsort
SELECT DISTINCT CASE 50 WHEN 86 THEN + 71 WHEN 8 THEN NULL ELSE NULL END / NULLIF ( + + 43, + 35 ) + + + 25 * 18 * + 57 + - 28 + 74 / ( + ( - 51 ) + 72 ) col1
----
NULL

query I rowsort
SELECT ALL 34 * + 17
----
578

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT + 57 + + 91 DIV + - 79 col0
----
56

skipif mysql # not compatible
query I rowsort label-3296
SELECT + 57 + + 91 / + - 79 col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT 63 * - + 93 * - 74 * - CAST( + - 12 AS SIGNED ) * 44 + 63 + 25
----
228922936

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT 63 * - + 93 * - 74 * - CAST ( + - 12 AS INTEGER ) * 44 + 63 + 25
----
228922936

query I rowsort
SELECT ALL 93 * 83 + 11
----
7730

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT + 10 DIV - - ( + COALESCE ( + 13, + 58 * 86 + + 75 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3300
SELECT + 10 / - - ( + COALESCE ( + 13, + 58 * 86 + + 75 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT ( - CAST( 11 AS SIGNED ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3301
SELECT ( - CAST ( 11 AS INTEGER ) ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL ( + COALESCE ( + ( - 14 ), - - ( + SUM( 87 ) ) ) ) * - - 74 + - 87 + - + 76 - + 59
----
-1258

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL ( + COALESCE ( + ( - 14 ), - - ( + SUM ( 87 ) ) ) ) * - - 74 + - 87 + - + 76 - + 59
----
-1258

onlyif mysql # DIV for integer division: 
query I rowsort label-3303
SELECT DISTINCT 99 * + + 8 + + 99 DIV + - 16
----
786

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT 99 * + + 8 + + 99 / + - 16
----
786

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT NULLIF ( + 30, - COUNT( * ) * - 37 * - 51 + + 27 )
----
30

skipif mysql # not compatible
query I rowsort label-3304
SELECT NULLIF ( + 30, - COUNT ( * ) * - 37 * - 51 + + 27 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT ALL CAST( - 36 AS SIGNED ) * - 21 * + - CAST( 77 AS SIGNED ) * + + 2 + - 0 + 84 - + + 26 * ( + NULLIF ( + + 93, - 60 / - 3 ) ) + MAX( ALL 93 ) + - COUNT( * ) * + ( - 22 )
----
-118643

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL CAST ( - 36 AS INTEGER ) * - 21 * + - CAST ( 77 AS INTEGER ) * + + 2 + - 0 + 84 - + + 26 * ( + NULLIF ( + + 93, - 60 / - 3 ) ) + MAX ( ALL 93 ) + - COUNT ( * ) * + ( - 22 )
----
-118643

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL + NULLIF ( - + 97, + - COUNT( * ) * 21 / + + 85 + + 27 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + NULLIF ( - + 97, + - COUNT ( * ) * 21 / + + 85 + + 27 ) AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3307
SELECT + CAST( - 26 AS SIGNED ), ( 48 ) * + MAX( ALL + 76 ) + - - CAST( - + 52 AS SIGNED ) + - + 14 AS col1
----
-26
3582

skipif mysql # not compatible
query II rowsort label-3307
SELECT + CAST ( - 26 AS INTEGER ), ( 48 ) * + MAX ( ALL + 76 ) + - - CAST ( - + 52 AS INTEGER ) + - + 14 AS col1
----
-26
3582

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT - 56 + + + COUNT( * ) + + + 97 * + 11 AS col2
----
1012

skipif mysql # not compatible
query I rowsort label-3308
SELECT - 56 + + + COUNT ( * ) + + + 97 * + 11 AS col2
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT - 20 * - COUNT( * ) * - 95
----
-1900

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - 20 * - COUNT ( * ) * - 95
----
-1900

onlyif mysql # aggregate syntax: 
query II rowsort label-3310
SELECT 9 * - - 16 + COUNT( * ) AS col0, 63 + + 90 AS col1
----
145
153

skipif mysql # not compatible
query II rowsort label-3310
SELECT 9 * - - 16 + COUNT ( * ) AS col0, 63 + + 90 AS col1
----
145
153

query II rowsort
SELECT ALL - 3 * + 64, + 62 AS col1
----
-192
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3312
SELECT - - 98 DIV - + CAST( - 38 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3312
SELECT - - 98 / - + CAST ( - 38 AS INTEGER ) AS col2
----
2

query I rowsort
SELECT ALL 96 / + CASE - 95 WHEN + - 66 THEN NULL WHEN + + 25 THEN + - 88 * 97 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT ALL - - CAST( NULL AS SIGNED ) * ( + + MAX( 15 ) ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL - - CAST ( NULL AS INTEGER ) * ( + + MAX ( 15 ) ) - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + 30, + 78 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT ALL - ( - - CASE - 14 WHEN + 33 THEN + + COUNT( * ) + + 43 WHEN + 5 THEN + 53 * 54 * + - 83 DIV - 87 WHEN + 44 THEN NULL WHEN 15 THEN - 28 ELSE + 97 END ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - ( - - CASE - 14 WHEN + 33 THEN + + COUNT ( * ) + + 43 WHEN + 5 THEN + 53 * 54 * + - 83 / - 87 WHEN + 44 THEN NULL WHEN 15 THEN - 28 ELSE + 97 END ) AS col1
----
-97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT - - COUNT( - ( + 24 ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT - - COUNT ( - ( + 24 ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 56 - + + 67 AS col1
----
-11

query I rowsort
SELECT ALL - 52 + - 16
----
-68

query I rowsort
SELECT 29 - 90 + + 53 * 9 * + 31
----
14726

query II rowsort
SELECT ALL 9 * - 81 col1, 88
----
-729
88

query I rowsort
SELECT ALL - 24 + - 78 * + + 24 AS col0
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT COUNT( * ) * - MAX( + + 45 ) * + 38
----
-1710

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT COUNT ( * ) * - MAX ( + + 45 ) * + 38
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL 12 + + 28 + ( + COALESCE ( 67, 38 * + + 58 + - COUNT( * ), - - SUM( DISTINCT - 33 ) * + ( + + COUNT( + 92 ) ) * 77 ) ) * COUNT( * ) * 34
----
2318

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL 12 + + 28 + ( + COALESCE ( 67, 38 * + + 58 + - COUNT ( * ), - - SUM ( DISTINCT - 33 ) * + ( + + COUNT ( + 92 ) ) * 77 ) ) * COUNT ( * ) * 34
----
2318

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3326
SELECT 28 + SUM( CASE 81 WHEN 76 THEN NULL WHEN - ( ( 52 ) ) THEN - CAST( NULL AS DECIMAL ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT 28 + SUM ( CASE 81 WHEN 76 THEN NULL WHEN - ( ( 52 ) ) THEN - CAST ( NULL AS REAL ) END )
----
NULL

query II rowsort
SELECT - 34 col1, - 64 AS col1
----
-34
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3328
SELECT 34 DIV + - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3328
SELECT 34 / + - 56 AS col1
----
0

query I rowsort
SELECT 70 * + - 23 AS col2
----
-1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT DISTINCT - 24 + 5 + + + CAST( NULL AS SIGNED ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT - 24 + 5 + + + CAST ( NULL AS INTEGER ) + 59
----
NULL

query II rowsort
SELECT 36 AS col1, - 16 col2
----
36
-16

query I rowsort
SELECT ( 63 ) * - + CASE 13 WHEN - - 14 THEN + 85 * 14 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT 80, 30 AS col0
----
80
30

query II rowsort
SELECT 60 * + + 17 * - - 52 AS col2, - 21
----
53040
-21

query I rowsort
SELECT ALL - 70 * 34
----
-2380

query I rowsort
SELECT 69 * - 94 AS col2
----
-6486

query II rowsort
SELECT DISTINCT - 11 AS col1, - 53
----
-11
-53

query I rowsort
SELECT ALL 81 * + 9
----
729

query I rowsort
SELECT 95 * 2 col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT SUM( 87 ) + - - CASE - 65 WHEN + 36 + + 99 THEN NULL WHEN + MAX( ALL - + 8 ) THEN - 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT SUM ( 87 ) + - - CASE - 65 WHEN + 36 + + 99 THEN NULL WHEN + MAX ( ALL - + 8 ) THEN - 73 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 45 * 87 col0
----
3915

onlyif mysql # aggregate syntax: 
query II rowsort label-3342
SELECT 78 + + 90 * + COUNT( * ), COALESCE ( + 2, - + 89 ) AS col0
----
168
2

skipif mysql # not compatible
query II rowsort label-3342
SELECT 78 + + 90 * + COUNT ( * ), COALESCE ( + 2, - + 89 ) AS col0
----
168
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3344
SELECT DISTINCT 80 * - COUNT( - - CAST( NULL AS SIGNED ) ) * - - ( + CASE 92 WHEN - 66 THEN - NULLIF ( - 16, - - COALESCE ( + - 58, - 8 / 16 * + 35 + 30 * ( ( + 16 ) * 30 + - 88 ), - 3 * - COUNT( * ), COUNT( * ) - + 87 * + 50 ) / 94 - NULLIF ( SUM( 82 ) - CAST( NULL AS SIGNED ) / + 73, 87 + ( 84 ) ) ) WHEN - 35 THEN 94 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT 80 * - COUNT ( - - CAST ( NULL AS INTEGER ) ) * - - ( + CASE 92 WHEN - 66 THEN - NULLIF ( - 16, - - COALESCE ( + - 58, - 8 / 16 * + 35 + 30 * ( ( + 16 ) * 30 + - 88 ), - 3 * - COUNT ( * ), COUNT ( * ) - + 87 * + 50 ) / 94 - NULLIF ( SUM ( 82 ) - CAST ( NULL AS INTEGER ) / + 73, 87 + ( 84 ) ) ) WHEN - 35 THEN 94 END )
----
NULL

query I rowsort
SELECT + NULLIF ( 22, + AVG ( 51 ) * - 54 ) * + 76 * + 85 - + 88 * + 80 col1
----
135080

query I rowsort
SELECT ALL 85 * + 34 + - + 84 / - CASE + 95 WHEN 86 THEN 84 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT - 55 * - + 84 + COUNT( + - 34 ) + - 89 * + 70 * CASE COUNT( * ) WHEN - 87 THEN NULL ELSE + - 99 + - + 83 END * + 3 * + 40 * - ( COUNT( ALL 46 ) ) + + 92 AS col1
----
-136058487

skipif mysql # not compatible
query I rowsort label-3347
SELECT - 55 * - + 84 + COUNT ( + - 34 ) + - 89 * + 70 * CASE COUNT ( * ) WHEN - 87 THEN NULL ELSE + - 99 + - + 83 END * + 3 * + 40 * - ( COUNT ( ALL 46 ) ) + + 92 AS col1
----
-136058487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3348
SELECT - 38 + - CAST( + + 97 AS SIGNED ) * + - 58
----
5588

skipif mysql # not compatible
query I rowsort label-3348
SELECT - 38 + - CAST ( + + 97 AS INTEGER ) * + - 58
----
5588

onlyif mysql # aggregate syntax: 
query II rowsort label-3349
SELECT ALL - 93, + NULLIF ( + - 7, COUNT( * ) ) col0
----
-93
-7

skipif mysql # not compatible
query II rowsort label-3349
SELECT ALL - 93, + NULLIF ( + - 7, COUNT ( * ) ) col0
----
-93
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3350
SELECT + CAST( + 76 AS DECIMAL ) * - 68 + + + 72 + - + 95 * CAST( NULL AS SIGNED ) + 31 * + 9 + + 5 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT + CAST ( + 76 AS REAL ) * - 68 + + + 72 + - + 95 * CAST ( NULL AS INTEGER ) + 31 * + 9 + + 5 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3351
SELECT CAST( NULL AS DECIMAL ) - - 59 + - + COUNT( * ) * - 65 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT CAST ( NULL AS REAL ) - - 59 + - + COUNT ( * ) * - 65 * + 76
----
NULL

query I rowsort
SELECT COALESCE ( + 35, 12 - - - 32, - 20 ) * - + 52 - + + 51 * + 11 AS col0
----
-2381

onlyif mysql # aggregate syntax: 
query II rowsort label-3353
SELECT ( + 24 ) * - COUNT( * ) AS col1, 65 + 24
----
-24
89

skipif mysql # not compatible
query II rowsort label-3353
SELECT ( + 24 ) * - COUNT ( * ) AS col1, 65 + 24
----
-24
89

query I rowsort
SELECT DISTINCT + ( - 4 ) * 17 * + 79 col2
----
-5372

query II rowsort
SELECT ALL 50, ( 38 ) AS col2
----
50
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT 51 + - - 88 - + COALESCE ( - - MAX( - + 4 ), - 31 + COUNT( * ) ) * - NULLIF ( COUNT( 55 ), 70 * - 39 ) + - + ( + 74 )
----
61

skipif mysql # not compatible
query I rowsort label-3356
SELECT 51 + - - 88 - + COALESCE ( - - MAX ( - + 4 ), - 31 + COUNT ( * ) ) * - NULLIF ( COUNT ( 55 ), 70 * - 39 ) + - + ( + 74 )
----
61

query II rowsort
SELECT ALL 72 AS col2, 96 AS col2
----
72
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT DISTINCT 14 DIV - 55 * + ( + 69 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT 14 / - 55 * + ( + 69 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - 54 + - - 47 * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-3359
SELECT - 54 + - - 47 * + COUNT ( * )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT - NULLIF ( - + CAST( NULL AS SIGNED ), - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT - NULLIF ( - + CAST ( NULL AS INTEGER ), - 9 )
----
NULL

query I rowsort
SELECT DISTINCT + 53 + + 35
----
88

query I rowsort
SELECT ALL ( - ( - 69 ) ) + - - 79
----
148

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

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

query I rowsort
SELECT DISTINCT - 73 + - 99
----
-172

query I rowsort
SELECT DISTINCT - 62 + ( + 48 ) AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT - 29 + 5 DIV - + 41 * 8 - 93 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-3366
SELECT - 29 + 5 / - + 41 * 8 - 93 AS col0
----
-122

query I rowsort
SELECT 38 * 92 AS col1
----
3496

query I rowsort
SELECT 79 * + NULLIF ( + 56, - + 95 ) col2
----
4424

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT DISTINCT - 29 + ( - COALESCE ( - + 27, 54 * 75 - + 77 ) ) AS col0, + COALESCE ( + - 20, + COUNT( * ) ) + - COUNT( * ) AS col0
----
-2
-21

skipif mysql # not compatible
query II rowsort label-3369
SELECT DISTINCT - 29 + ( - COALESCE ( - + 27, 54 * 75 - + 77 ) ) AS col0, + COALESCE ( + - 20, + COUNT ( * ) ) + - COUNT ( * ) AS col0
----
-2
-21

query I rowsort
SELECT 63 * + 49
----
3087

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

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - 93 + + 71 * + MIN ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 22 * + + 14 + - 94
----
-402

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT 40 DIV + 89 * 42 DIV + 33 + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3373
SELECT 40 / + 89 * 42 / + 33 + + 57 AS col0
----
57

query I rowsort
SELECT 94 + + 70
----
164

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3376
SELECT - 59 * 55 + - 38 DIV + COUNT( * ) + - - NULLIF ( + - 81, + COUNT( * ) ) + - COUNT( * ) + + - 5 + + - 61 * + + 21
----
-4651

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 59 * 55 + - 38 / + COUNT ( * ) + - - NULLIF ( + - 81, + COUNT ( * ) ) + - COUNT ( * ) + + - 5 + + - 61 * + + 21
----
-4651

onlyif mysql # DIV for integer division: 
query I rowsort label-3377
SELECT ALL ( 7 ) DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL ( 7 ) / + 69
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT CASE - 12 WHEN + 91 + - 57 THEN NULL WHEN + 57 THEN 87 / - - 1 + + MAX( + + NULLIF ( 43, + - 17 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT CASE - 12 WHEN + 91 + - 57 THEN NULL WHEN + 57 THEN 87 / - - 1 + + MAX ( + + NULLIF ( 43, + - 17 ) ) END
----
NULL

query I rowsort
SELECT - - 18 * 60 + + 40 col2
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT NULLIF ( + COUNT( * ), + 91 - + 16 + - 37 ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3381
SELECT NULLIF ( + COUNT ( * ), + 91 - + 16 + - 37 ) * - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 41 + 22 AS col0
----
63

query I rowsort
SELECT + 97 * + 59
----
5723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3384
SELECT + CAST( NULL AS DECIMAL ) * + 90 * CASE + SUM( 36 ) WHEN - 20 THEN NULL ELSE SUM( ALL + 3 ) * - 12 + + 36 * - 6 END * - CAST( - + 76 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT + CAST ( NULL AS REAL ) * + 90 * CASE + SUM ( 36 ) WHEN - 20 THEN NULL ELSE SUM ( ALL + 3 ) * - 12 + + 36 * - 6 END * - CAST ( - + 76 AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT ALL 55 + - + 27 * - 79 * + NULLIF ( - 1, + ( + 81 ) - - CAST( 92 AS SIGNED ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL 55 + - + 27 * - 79 * + NULLIF ( - 1, + ( + 81 ) - - CAST ( 92 AS INTEGER ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3387
SELECT DISTINCT ( - 47 ) + - 36 DIV + COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT ( - 47 ) + - 36 / + COUNT ( * ) AS col2
----
-83

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

query I rowsort
SELECT ALL - COALESCE ( + + 5, - 50 ) + + 0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT + - 30 * + CAST( - + 89 AS SIGNED )
----
2670

skipif mysql # not compatible
query I rowsort label-3390
SELECT + - 30 * + CAST ( - + 89 AS INTEGER )
----
2670

query I rowsort
SELECT + + 44 - - 68 AS col1
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT DISTINCT - 75 + + 66 DIV - 45 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - 75 + + 66 / - 45 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT + COUNT( * ) + + ( 18 ) * + 11 col2
----
199

skipif mysql # not compatible
query I rowsort label-3393
SELECT + COUNT ( * ) + + ( 18 ) * + 11 col2
----
199

query I rowsort
SELECT - + ( + 25 ) + - - 72 + + 90 col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3395
SELECT - COALESCE ( 40, - - 2 DIV 19 + 82 * COALESCE ( + 1, - + COUNT( * ) ), - COUNT( * ), - CASE 30 WHEN - 13 * - + 92 THEN - 64 * + COUNT( * ) WHEN 69 + - 70 THEN NULL ELSE - 24 END * 97 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3395
SELECT - COALESCE ( 40, - - 2 / 19 + 82 * COALESCE ( + 1, - + COUNT ( * ) ), - COUNT ( * ), - CASE 30 WHEN - 13 * - + 92 THEN - 64 * + COUNT ( * ) WHEN 69 + - 70 THEN NULL ELSE - 24 END * 97 ) AS col0
----
-40

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

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

query II rowsort
SELECT + NULLIF ( + 33, - - 25 + - 85 ) - - + ( - 11 ), + 85 AS col1
----
22
85

onlyif mysql # DIV for integer division: 
query II rowsort label-3398
SELECT ALL + 70 * + + 0 * - 14 DIV 63 * - - 42 AS col0, 77 * - 29 col0
----
0
-2233

skipif mysql # not compatible
query II rowsort label-3398
SELECT ALL + 70 * + + 0 * - 14 / 63 * - - 42 AS col0, 77 * - 29 col0
----
0
-2233

query I rowsort
SELECT DISTINCT 40 - 14 AS col2
----
26

query I rowsort
SELECT DISTINCT - 98 - - - 33 AS col1
----
-131

query I rowsort
SELECT DISTINCT 34 * 89 * + 84 AS col2
----
254184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3402
SELECT - COALESCE ( - CASE + - 4 WHEN + 14 + 53 THEN + ( - 52 ) DIV 59 + - + 11 + - + 21 + - 89 + - 35 WHEN 89 * 97 THEN + 6 ELSE + NULLIF ( MIN( NULLIF ( + 19, - ( 59 ) DIV + 68 ) ), COUNT( * ) ) END, - 63 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-3402
SELECT - COALESCE ( - CASE + - 4 WHEN + 14 + 53 THEN + ( - 52 ) / 59 + - + 11 + - + 21 + - 89 + - 35 WHEN 89 * 97 THEN + 6 ELSE + NULLIF ( MIN ( NULLIF ( + 19, - ( 59 ) / + 68 ) ), COUNT ( * ) ) END, - 63 ) col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + COUNT( ALL + - 54 ) + + ( - 41 )
----
-40

skipif mysql # not compatible
query I rowsort label-3403
SELECT + COUNT ( ALL + - 54 ) + + ( - 41 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3404
SELECT ALL + 8 * 33 * - - CASE CAST( NULL AS SIGNED ) WHEN + - 43 THEN NULL WHEN + ( ( - COUNT( * ) ) ) THEN NULL ELSE 76 * - 28 END col1, CAST( NULL AS SIGNED ) AS col1
----
-561792
NULL

skipif mysql # not compatible
query II rowsort label-3404
SELECT ALL + 8 * 33 * - - CASE CAST ( NULL AS INTEGER ) WHEN + - 43 THEN NULL WHEN + ( ( - COUNT ( * ) ) ) THEN NULL ELSE 76 * - 28 END col1, CAST ( NULL AS INTEGER ) AS col1
----
-561792
NULL

query I rowsort
SELECT - 39 - - 85 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL - 71 * 48 / + - 3 - 38 * - + CASE COUNT( * ) WHEN - AVG ( ALL 13 ) THEN - 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - 71 * 48 / + - 3 - 38 * - + CASE COUNT ( * ) WHEN - AVG ( ALL 13 ) THEN - 38 END AS col0
----
NULL

query I rowsort
SELECT - ( - - ( - 66 ) ) * - 51
----
-3366

query I rowsort
SELECT - 33 * + 47
----
-1551

query I rowsort
SELECT ( 84 ) col0
----
84

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

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

query I rowsort
SELECT ALL + 36 * - 91
----
-3276

query I rowsort
SELECT DISTINCT + + 54 * + 97 AS col2
----
5238

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

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

query I rowsort
SELECT ALL + 80 * 8 + + 96 AS col0
----
736

query I rowsort
SELECT + 42 * + + ( 45 ) + - 88 * + + 28
----
-574

query I rowsort
SELECT - 8 * + 75 + + 29
----
-571

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT + + 20 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT + + 20 / - 38
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3418
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + ( 92 ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT CAST ( NULL AS REAL ) / + ( 92 ) * 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT - - 34 + - CAST( + - 54 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-3419
SELECT - - 34 + - CAST ( + - 54 AS INTEGER )
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-3420
SELECT ALL + 64 DIV 93 + - - 31 AS col1, + 20 col1
----
31
20

skipif mysql # not compatible
query II rowsort label-3420
SELECT ALL + 64 / 93 + - - 31 AS col1, + 20 col1
----
31
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - ( 30 ) * + COUNT( * ) + 33 + 78
----
81

skipif mysql # not compatible
query I rowsort label-3421
SELECT - ( 30 ) * + COUNT ( * ) + 33 + 78
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT + SUM( - 14 ) - 87 + 89 * - + ( - 38 ) * COUNT( * ) * + + ( 8 ) AS col1
----
26955

skipif mysql # not compatible
query I rowsort label-3422
SELECT + SUM ( - 14 ) - 87 + 89 * - + ( - 38 ) * COUNT ( * ) * + + ( 8 ) AS col1
----
26955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT - - COALESCE ( + COUNT( * ), - - ( + + CASE 59 WHEN 29 * + ( 30 ) * + - 97 THEN 12 * - - 8 - + 50 * - 3 ELSE - + CAST( NULL AS SIGNED ) END ), + 14 )
----
1

skipif mysql # not compatible
query I rowsort label-3423
SELECT - - COALESCE ( + COUNT ( * ), - - ( + + CASE 59 WHEN 29 * + ( 30 ) * + - 97 THEN 12 * - - 8 - + 50 * - 3 ELSE - + CAST ( NULL AS INTEGER ) END ), + 14 )
----
1

query I rowsort
SELECT - ( - - 94 ) + - + 80 AS col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT 93 * - 5 + + + 17 * - COUNT( * )
----
-482

skipif mysql # not compatible
query I rowsort label-3425
SELECT 93 * - 5 + + + 17 * - COUNT ( * )
----
-482

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3426
SELECT - - COUNT( * ) col1, 40 DIV - + MIN( 74 )
----
1
0

skipif mysql # not compatible
query II rowsort label-3426
SELECT - - COUNT ( * ) col1, 40 / - + MIN ( 74 )
----
1
0

query I rowsort
SELECT ALL + 62 * 66 + - ( + + 69 )
----
4023

onlyif mysql # DIV for integer division: 
query I rowsort label-3428
SELECT + + 7 * 51 DIV - 91 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3428
SELECT + + 7 * 51 / - 91 AS col1
----
-3

query I rowsort
SELECT ALL COALESCE ( - + ( + + 64 ), + + COALESCE ( 58, + 51, + 92 ), + 35 )
----
-64

query I rowsort
SELECT + 17 + + 76 AS col0
----
93

query I rowsort
SELECT - ( - - ( - - 26 ) )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3432
SELECT ALL 99 - + + COUNT( * ) AS col0, - 0 * + 28 + + 63
----
98
63

skipif mysql # not compatible
query II rowsort label-3432
SELECT ALL 99 - + + COUNT ( * ) AS col0, - 0 * + 28 + + 63
----
98
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) + + 22
----
22

skipif mysql # not compatible
query I rowsort label-3433
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + 22
----
22

query I rowsort
SELECT ALL 81 - + - 49 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT 82, - COUNT( * ) * - 98 * 96 col1
----
82
9408

skipif mysql # not compatible
query II rowsort label-3435
SELECT 82, - COUNT ( * ) * - 98 * 96 col1
----
82
9408

query II rowsort
SELECT + 99 + + 84, - NULLIF ( + 98, 60 + - 13 ) AS col0
----
183
-98

query I rowsort
SELECT + ( + 11 ) + - 86
----
-75

query I rowsort
SELECT - 16 + 34 * - 29 * + 71
----
-70022

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL 22 / NULLIF ( + 77, 77 ) / - - ( - COUNT( * ) ) * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL 22 / NULLIF ( + 77, 77 ) / - - ( - COUNT ( * ) ) * + 91
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3440
SELECT + 27 DIV COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3440
SELECT + 27 / COUNT ( * ) AS col1
----
27

query I rowsort
SELECT - 33 * + 26 AS col1
----
-858

query II rowsort
SELECT ALL + 76 * 97, 67 col0
----
7372
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3443
SELECT ALL 86 * 61 * CASE 14 WHEN COUNT( * ) THEN NULL WHEN + 11 THEN 17 / SUM( CAST( NULL AS SIGNED ) ) - 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL 86 * 61 * CASE 14 WHEN COUNT ( * ) THEN NULL WHEN + 11 THEN 17 / SUM ( CAST ( NULL AS INTEGER ) ) - 75 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3444
SELECT 77 / 49 * - 61 / + CASE - CAST( NULL AS DECIMAL ) WHEN + COUNT( * ) THEN + - 21 END + + ( + 63 ) * - 26 + 98, - 60 + + CASE 31 WHEN + + 14 + - 0 THEN NULL ELSE ( - 99 ) - + 21 END AS col2
----
NULL
-180

skipif mysql # not compatible
query II rowsort label-3444
SELECT 77 / 49 * - 61 / + CASE - CAST ( NULL AS REAL ) WHEN + COUNT ( * ) THEN + - 21 END + + ( + 63 ) * - 26 + 98, - 60 + + CASE 31 WHEN + + 14 + - 0 THEN NULL ELSE ( - 99 ) - + 21 END AS col2
----
NULL
-180

query I rowsort
SELECT - 74 * + 72
----
-5328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3446
SELECT ALL + COUNT( * ) DIV 2 + - + 27 + 16 AS col2, - COUNT( * )
----
-11
-1

skipif mysql # not compatible
query II rowsort label-3446
SELECT ALL + COUNT ( * ) / 2 + - + 27 + 16 AS col2, - COUNT ( * )
----
-11
-1

query II rowsort
SELECT + 29, - ( - + 94 ) AS col2
----
29
94

query I rowsort
SELECT + + COALESCE ( + 89, + 53 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3449
SELECT SUM( 52 ) * - CAST( - 26 AS SIGNED )
----
1352

skipif mysql # not compatible
query I rowsort label-3449
SELECT SUM ( 52 ) * - CAST ( - 26 AS INTEGER )
----
1352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3450
SELECT - 60 * + + 84 * + 9 + + 88 * 84 * - AVG ( - + CAST( NULL AS SIGNED ) ) + SUM( DISTINCT + - 34 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3450
SELECT - 60 * + + 84 * + 9 + + 88 * 84 * - AVG ( - + CAST ( NULL AS INTEGER ) ) + SUM ( DISTINCT + - 34 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + ( + - 24 ) AS col0
----
24

query II rowsort
SELECT 69 AS col1, 33
----
69
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - COUNT( * ) + + + 85 * - - 66
----
5609

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - COUNT ( * ) + + + 85 * - - 66
----
5609

query I rowsort
SELECT ALL + + 76 + + 46 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL + - CASE - COUNT( * ) WHEN 68 THEN NULL WHEN MAX( + 0 ) THEN + 45 ELSE NULL END + - - 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL + - CASE - COUNT ( * ) WHEN 68 THEN NULL WHEN MAX ( + 0 ) THEN + 45 ELSE NULL END + - - 27 AS col0
----
NULL

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

query I rowsort
SELECT - 73 * 14 col1
----
-1022

query I rowsort
SELECT DISTINCT - - 34 + - 67 * 34 AS col2
----
-2244

onlyif mysql # aggregate syntax: 
query II rowsort label-3459
SELECT ALL + - 72 + 14 + - 83 * 67, MAX( ALL - + 47 ) AS col2
----
-5619
-47

skipif mysql # not compatible
query II rowsort label-3459
SELECT ALL + - 72 + 14 + - 83 * 67, MAX ( ALL - + 47 ) AS col2
----
-5619
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT + - CAST( - - 6 AS SIGNED )
----
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT - - NULLIF ( - COUNT( DISTINCT + 29 ), - 71 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - - NULLIF ( - COUNT ( DISTINCT + 29 ), - 71 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - + 42 - + 76
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL - 80 - COALESCE ( + 95, - COUNT( * ) )
----
-175

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - 80 - COALESCE ( + 95, - COUNT ( * ) )
----
-175

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT 63 + - COUNT( ALL + - 97 ) + + - 45 DIV + 78
----
62

skipif mysql # not compatible
query I rowsort label-3465
SELECT 63 + - COUNT ( ALL + - 97 ) + + - 45 / + 78
----
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT MIN( - 82 ) * 64
----
-5248

skipif mysql # not compatible
query I rowsort label-3467
SELECT MIN ( - 82 ) * 64
----
-5248

query I rowsort
SELECT DISTINCT 81 * + - 16 AS col2
----
-1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3469
SELECT DISTINCT - 90 * - CAST( + 56 AS SIGNED ) * + 28 / CASE + 17 WHEN + 79 * - 40 - + COUNT( * ) THEN - 66 + 72 * - + 33 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT - 90 * - CAST ( + 56 AS INTEGER ) * + 28 / CASE + 17 WHEN + 79 * - 40 - + COUNT ( * ) THEN - 66 + 72 * - + 33 END AS col1
----
NULL

query I rowsort
SELECT 4 * - 27 * + 51
----
-5508

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT COUNT( * ) + + 68 * - 95 * + 9
----
-58139

skipif mysql # not compatible
query I rowsort label-3471
SELECT COUNT ( * ) + + 68 * - 95 * + 9
----
-58139

query I rowsort
SELECT DISTINCT 45 * + - 47
----
-2115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3473
SELECT ALL COALESCE ( - - 98, - CASE + CAST( NULL AS SIGNED ) WHEN + - ( ( + 72 ) ) * + 20 + + 77 THEN - + 79 WHEN + - COUNT( 33 ) THEN + 45 + - 38 ELSE NULL END ) + 41 * + 85
----
3583

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL COALESCE ( - - 98, - CASE + CAST ( NULL AS INTEGER ) WHEN + - ( ( + 72 ) ) * + 20 + + 77 THEN - + 79 WHEN + - COUNT ( 33 ) THEN + 45 + - 38 ELSE NULL END ) + 41 * + 85
----
3583

query II rowsort
SELECT ALL 80 + - 5 col0, 83 * + + ( - - 20 ) + + + 89 + + 53 AS col0
----
75
1802

query I rowsort
SELECT 94 * - 17 AS col1
----
-1598

query I rowsort
SELECT ALL ( - 99 ) + - 66 col0
----
-165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3477
SELECT ALL 32 DIV - 26 AS col2, + COUNT( - 30 ) * - - 82 - - + COUNT( * ) AS col2
----
-1
83

skipif mysql # not compatible
query II rowsort label-3477
SELECT ALL 32 / - 26 AS col2, + COUNT ( - 30 ) * - - 82 - - + COUNT ( * ) AS col2
----
-1
83

onlyif mysql # DIV for integer division: 
query II rowsort label-3478
SELECT 93 DIV + 34 AS col0, 75
----
2
75

skipif mysql # not compatible
query II rowsort label-3478
SELECT 93 / + 34 AS col0, 75
----
2
75

query I rowsort
SELECT DISTINCT + 31 * - 56 AS col1
----
-1736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3480
SELECT ALL ( - CAST( + 33 AS SIGNED ) ) + 89 * 76 * 36 * + + 46 AS col2
----
11201151

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL ( - CAST ( + 33 AS INTEGER ) ) + 89 * 76 * 36 * + + 46 AS col2
----
11201151

query I rowsort
SELECT ALL ( - ( + 31 ) ) + + 66 AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3482
SELECT 72 DIV + - 99 AS col2, 73 + 40 * + 57 * + 4 + + + COUNT( * ) AS col0
----
0
9194

skipif mysql # not compatible
query II rowsort label-3482
SELECT 72 / + - 99 AS col2, 73 + 40 * + 57 * + 4 + + + COUNT ( * ) AS col0
----
0
9194

query I rowsort
SELECT ALL - + 12 + ( 25 ) * + 17
----
413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3484
SELECT DISTINCT + COUNT( ALL + 3 ) * CASE - 85 WHEN + 72 THEN NULL WHEN + + COUNT( * ) * + 4 THEN + 55 / - + ( 51 ) + - + 57 + - + AVG ( CASE CAST( NULL AS SIGNED ) WHEN + 10 THEN 28 WHEN 80 THEN - 64 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + COUNT ( ALL + 3 ) * CASE - 85 WHEN + 72 THEN NULL WHEN + + COUNT ( * ) * + 4 THEN + 55 / - + ( 51 ) + - + 57 + - + AVG ( CASE CAST ( NULL AS INTEGER ) WHEN + 10 THEN 28 WHEN 80 THEN - 64 END ) END
----
NULL

query I rowsort
SELECT ALL + 6 + - 65 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + 71 + + CASE + - 40 WHEN ( - 33 ) * + - 95 / + 65 THEN - 97 * - + 78 * 69 * 49 - - CASE 60 WHEN + - 89 THEN 94 * - 1 - 9 - + 2 * 37 WHEN 6 THEN 87 * - NULLIF ( COUNT( * ), 85 ) ELSE - 43 END END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 71 + + CASE + - 40 WHEN ( - 33 ) * + - 95 / + 65 THEN - 97 * - + 78 * 69 * 49 - - CASE 60 WHEN + - 89 THEN 94 * - 1 - 9 - + 2 * 37 WHEN 6 THEN 87 * - NULLIF ( COUNT ( * ), 85 ) ELSE - 43 END END col2
----
NULL

query I rowsort
SELECT 41 * 35 AS col2
----
1435

query I rowsort
SELECT - 80 * + 38
----
-3040

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3489
SELECT 74 + 69 + + 75 + + CAST( - CASE WHEN + 42 = + - 80 * - 82 * - 26 THEN + + MAX( - 6 ) / + 67 WHEN NOT AVG ( ALL + 46 ) NOT IN ( + 79 ) THEN + ( - 71 ) / 14 END AS DECIMAL ) + 19 * ( - 31 ) * CASE CASE - 50 WHEN COALESCE ( - 5, - 42 * 36 + - 8 ) THEN + 95 * + 28 END * + NULLIF ( 85, + 30 ) WHEN 9 THEN COALESCE ( - 23, - 18 + 40 ) - - ( ( COUNT( * ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT 74 + 69 + + 75 + + CAST ( - CASE WHEN + 42 = + - 80 * - 82 * - 26 THEN + + MAX ( - 6 ) / + 67 WHEN NOT AVG ( ALL + 46 ) NOT IN ( + 79 ) THEN + ( - 71 ) / 14 END AS REAL ) + 19 * ( - 31 ) * CASE CASE - 50 WHEN COALESCE ( - 5, - 42 * 36 + - 8 ) THEN + 95 * + 28 END * + NULLIF ( 85, + 30 ) WHEN 9 THEN COALESCE ( - 23, - 18 + 40 ) - - ( ( COUNT ( * ) ) ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 98 * 91 * 95 + 84
----
847294

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT 90 * 4 + + - COUNT( * ) * 39 + + 71 + MAX( + + 97 ), - 93 * + + ( - + 30 ) AS col1
----
489
2790

skipif mysql # not compatible
query II rowsort label-3491
SELECT 90 * 4 + + - COUNT ( * ) * 39 + + 71 + MAX ( + + 97 ), - 93 * + + ( - + 30 ) AS col1
----
489
2790

query I rowsort
SELECT DISTINCT - - 94 col1
----
94

query I rowsort
SELECT 13 + + - CASE - - 36 WHEN - 72 THEN + 9 * - 66 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL - COALESCE ( - - 88, - SUM( ALL + - 71 ), + 16 ) * + 17
----
-1496

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - COALESCE ( - - 88, - SUM ( ALL + - 71 ), + 16 ) * + 17
----
-1496

query I rowsort
SELECT 88 * - 10 AS col1
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + 50 * + 4 * - - COUNT( * ) + + 64
----
264

skipif mysql # not compatible
query I rowsort label-3496
SELECT + 50 * + 4 * - - COUNT ( * ) + + 64
----
264

onlyif mysql # aggregate syntax: 
query III rowsort label-3497
SELECT 98 + - - 77 + + 12 AS col0, 97 AS col1, - NULLIF ( - 13, + ( - + MAX( + 42 ) ) * + 60 ) AS col0
----
187
97
13

skipif mysql # not compatible
query III rowsort label-3497
SELECT 98 + - - 77 + + 12 AS col0, 97 AS col1, - NULLIF ( - 13, + ( - + MAX ( + 42 ) ) * + 60 ) AS col0
----
187
97
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - SUM( DISTINCT 42 ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-3498
SELECT - SUM ( DISTINCT 42 ) col1
----
-42

query I rowsort
SELECT 72 * - 66 * - 48 AS col0
----
228096

query I rowsort
SELECT ALL - 49 * - 26 AS col0
----
1274

onlyif mysql # DIV for integer division: 
query II rowsort label-3501
SELECT 78 DIV - + ( + 65 ) col0, 91 col0
----
-1
91

skipif mysql # not compatible
query II rowsort label-3501
SELECT 78 / - + ( + 65 ) col0, 91 col0
----
-1
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3502
SELECT 14 * + ( + 80 ) * - COUNT( * ) * + + 77 + - + 76 AS col0, COUNT( * ) + COUNT( * )
----
-86316
2

skipif mysql # not compatible
query II rowsort label-3502
SELECT 14 * + ( + 80 ) * - COUNT ( * ) * + + 77 + - + 76 AS col0, COUNT ( * ) + COUNT ( * )
----
-86316
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL MIN( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL MIN ( + 43 )
----
43

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

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL COUNT ( * ) AS col0, - CAST ( + 22 AS INTEGER ) AS col1
----
1
-22

query I rowsort
SELECT 97 + + 27
----
124

query II rowsort
SELECT ALL + 49 * - ( - 35 ), - 76 AS col0
----
1715
-76

query I rowsort
SELECT 7 + + 12 AS col2
----
19

query II rowsort
SELECT ALL 6 AS col1, - 78 * - 80 AS col2
----
6
6240

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3511
SELECT DISTINCT + ( 97 ) + + - 51 - - - 24 + COALESCE ( CAST( NULL AS SIGNED ), + MAX( ALL 56 ) * 25 + - 40 ) + - CAST( NULL AS DECIMAL ) / + + COUNT( * ) / - + 1 - - - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT + ( 97 ) + + - 51 - - - 24 + COALESCE ( CAST ( NULL AS INTEGER ), + MAX ( ALL 56 ) * 25 + - 40 ) + - CAST ( NULL AS REAL ) / + + COUNT ( * ) / - + 1 - - - 43 AS col0
----
NULL

query I rowsort
SELECT - 62 + - 60 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT + 68 * - 61 * - COUNT( * ) * 42 AS col2, + COUNT( * )
----
174216
1

skipif mysql # not compatible
query II rowsort label-3513
SELECT + 68 * - 61 * - COUNT ( * ) * 42 AS col2, + COUNT ( * )
----
174216
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3516
SELECT + + COUNT( * ) + - 85 + 80 * - - 37 * 65 DIV COUNT( * )
----
192316

skipif mysql # not compatible
query I rowsort label-3516
SELECT + + COUNT ( * ) + - 85 + 80 * - - 37 * 65 / COUNT ( * )
----
192316

query II rowsort
SELECT DISTINCT - 10 + - - ( 59 ) col1, - 89
----
49
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3518
SELECT ALL - - 93 * - + 83 + - CAST( - CASE - 81 WHEN - 10 THEN NULL WHEN + 84 THEN - + AVG ( - + 54 ) * - CAST( NULL AS SIGNED ) + + COALESCE ( - 53, + MIN( - + ( - + 86 ) ) * + 26 * - ( - 71 ) * + 41 + - 97 + + 3 * - CAST( 14 AS SIGNED ), - 46 + COUNT( * ) ) ELSE + 45 + + 84 * + COUNT( * ) END AS SIGNED ) AS col0
----
-7590

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - - 93 * - + 83 + - CAST ( - CASE - 81 WHEN - 10 THEN NULL WHEN + 84 THEN - + AVG ( - + 54 ) * - CAST ( NULL AS INTEGER ) + + COALESCE ( - 53, + MIN ( - + ( - + 86 ) ) * + 26 * - ( - 71 ) * + 41 + - 97 + + 3 * - CAST ( 14 AS INTEGER ), - 46 + COUNT ( * ) ) ELSE + 45 + + 84 * + COUNT ( * ) END AS INTEGER ) AS col0
----
-7590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT + - CASE - COALESCE ( - NULLIF ( - 4, + 93 + + - COUNT( * ) ), 77 ) WHEN - ( MIN( 89 ) ) THEN NULL WHEN COUNT( * ) THEN + CAST( NULL AS SIGNED ) + - CAST( + + 69 AS SIGNED ) + - + 71 ELSE + 88 END
----
-88

skipif mysql # not compatible
query I rowsort label-3519
SELECT + - CASE - COALESCE ( - NULLIF ( - 4, + 93 + + - COUNT ( * ) ), 77 ) WHEN - ( MIN ( 89 ) ) THEN NULL WHEN COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) + - CAST ( + + 69 AS INTEGER ) + - + 71 ELSE + 88 END
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT + 11 + - - 30 * + CASE - 76 WHEN + - 45 - - 85 THEN NULL ELSE 64 * - ( CAST( 12 AS SIGNED ) ) END
----
-23029

skipif mysql # not compatible
query I rowsort label-3520
SELECT + 11 + - - 30 * + CASE - 76 WHEN + - 45 - - 85 THEN NULL ELSE 64 * - ( CAST ( 12 AS INTEGER ) ) END
----
-23029

onlyif mysql # DIV for integer division: 
query I rowsort label-3521
SELECT + 1 * + - ( - + ( 90 ) ) DIV + - COALESCE ( 37, + + 76, + 14 ) + 47 + 89 + + + 87 AS col2
----
221

skipif mysql # not compatible
query I rowsort label-3521
SELECT + 1 * + - ( - + ( 90 ) ) / + - COALESCE ( 37, + + 76, + 14 ) + 47 + 89 + + + 87 AS col2
----
221

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

skipif mysql # not compatible
query II rowsort label-3522
SELECT - COUNT ( * ), - 57 AS col0
----
-1
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT + MAX( - - 57 ) * 45 AS col0, 18 + - 62
----
2565
-44

skipif mysql # not compatible
query II rowsort label-3523
SELECT + MAX ( - - 57 ) * 45 AS col0, 18 + - 62
----
2565
-44

query I rowsort
SELECT DISTINCT + - 26 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3525
SELECT ALL + NULLIF ( + 40, + COALESCE ( + + CAST( - - MAX( + 93 ) AS SIGNED ), + COUNT( ALL + 63 ) ) * 1 )
----
40

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + NULLIF ( + 40, + COALESCE ( + + CAST ( - - MAX ( + 93 ) AS INTEGER ), + COUNT ( ALL + 63 ) ) * 1 )
----
40

query I rowsort
SELECT + + 70 * - 59
----
-4130

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

skipif mysql # not compatible
query I rowsort label-3527
SELECT + 27 / - - COUNT ( * ) col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3528
SELECT + + 15 AS col2, - CASE WHEN NOT - 79 BETWEEN 9 AND - - COUNT( * ) * NULLIF ( + 28, - + 21 + - COUNT( * ) ) THEN - 85 END AS col2
----
15
85

skipif mysql # not compatible
query II rowsort label-3528
SELECT + + 15 AS col2, - CASE WHEN NOT - 79 BETWEEN 9 AND - - COUNT ( * ) * NULLIF ( + 28, - + 21 + - COUNT ( * ) ) THEN - 85 END AS col2
----
15
85

query I rowsort
SELECT ALL 70 * - 19
----
-1330

query I rowsort
SELECT + 76 * 61 * + 58 * 45 * - 73 AS col0
----
-883297080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT + CASE - + 65 WHEN - SUM( 65 ) THEN + COUNT( * ) * - 24 WHEN + + CASE - 84 WHEN - 14 THEN - - 57 / + 76 / 99 WHEN + 25 THEN MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + - 95 - + COUNT( * ) * - COUNT( * ) + - 9 ELSE NULL END + 2 THEN + 12 * - 47 ELSE COUNT( * ) END
----
-24

skipif mysql # not compatible
query I rowsort label-3531
SELECT + CASE - + 65 WHEN - SUM ( 65 ) THEN + COUNT ( * ) * - 24 WHEN + + CASE - 84 WHEN - 14 THEN - - 57 / + 76 / 99 WHEN + 25 THEN MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + - 95 - + COUNT ( * ) * - COUNT ( * ) + - 9 ELSE NULL END + 2 THEN + 12 * - 47 ELSE COUNT ( * ) END
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3532
SELECT + COUNT( * ) - 32 AS col1, 60
----
-31
60

skipif mysql # not compatible
query II rowsort label-3532
SELECT + COUNT ( * ) - 32 AS col1, 60
----
-31
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL + COUNT( * ) * 2 + - 77 - + MAX( - 96 )
----
21

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + COUNT ( * ) * 2 + - 77 - + MAX ( - 96 )
----
21

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

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

query I rowsort
SELECT - 81 * + + 2 AS col0
----
-162

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT ALL 63 + 3 + - 34 DIV + 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL 63 + 3 + - 34 / + 66 AS col2
----
66

query I rowsort
SELECT + 69 + + - 96 + - 25 * + - 92 - + 31 AS col1
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + ( 67 ) + - ( - ( + ( COUNT( * ) ) ) ) + - 17 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3539
SELECT + ( 67 ) + - ( - ( + ( COUNT ( * ) ) ) ) + - 17 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL + COUNT( * ) * + ( - ( + 33 ) ) * + - 87 AS col1
----
2871

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + COUNT ( * ) * + ( - ( + 33 ) ) * + - 87 AS col1
----
2871

query II rowsort
SELECT - 68 + + + 77 - + ( + + 25 ) AS col2, + 53
----
-16
53

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT 62 + 68 DIV - 89 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT 62 + 68 / - 89 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3544
SELECT - 32 DIV 33 col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-3544
SELECT - 32 / 33 col2, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT - 91 + + - 81 + + + COUNT( * ) * - 21 + + 59 AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-3545
SELECT - 91 + + - 81 + + + COUNT ( * ) * - 21 + + 59 AS col1
----
-134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3546
SELECT DISTINCT + 3 * + CAST( NULL AS DECIMAL ) - + - MIN( 20 ) + + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + 3 * + CAST ( NULL AS REAL ) - + - MIN ( 20 ) + + 31 AS col2
----
NULL

query I rowsort
SELECT ALL - 12 - - - 91
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT CASE 69 WHEN 28 THEN + COUNT( * ) / + - 20 - 81 + ( - - ( 84 ) ) / COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT CASE 69 WHEN 28 THEN + COUNT ( * ) / + - 20 - 81 + ( - - ( 84 ) ) / COUNT ( * ) END AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT + COALESCE ( - 49, - - 45 * + + 87 + + COUNT( * ) ) - COALESCE ( + 99, - 80 * - COUNT( * ) )
----
-148

skipif mysql # not compatible
query I rowsort label-3550
SELECT + COALESCE ( - 49, - - 45 * + + 87 + + COUNT ( * ) ) - COALESCE ( + 99, - 80 * - COUNT ( * ) )
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT DISTINCT - CAST( ( - 20 ) AS SIGNED ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT - CAST ( ( - 20 ) AS INTEGER ) AS col0
----
20

query I rowsort
SELECT ALL + + 65 * 86 * - 4 + + + 60
----
-22300

query I rowsort
SELECT + 57 * + + 24 - - 63 + - 6 AS col1
----
1425

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL + - COUNT( 52 ) * 63
----
-63

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + - COUNT ( 52 ) * 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + CASE - COUNT( + - 2 ) WHEN - 25 + - 84 - + 47 * + - 54 THEN 93 - - + 10 / + - 76 WHEN + - 40 / - - 68 * + 64 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT + CASE - COUNT ( + - 2 ) WHEN - 25 + - 84 - + 47 * + - 54 THEN 93 - - + 10 / + - 76 WHEN + - 40 / - - 68 * + 64 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 23 * - 13 * ( - + 21 ) + - 80 + + - 7 * - 38 col1
----
-6093

query I rowsort
SELECT + 16 * 20
----
320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT - 55 + CAST( + + 50 AS SIGNED ) + 47
----
42

skipif mysql # not compatible
query I rowsort label-3560
SELECT - 55 + CAST ( + + 50 AS INTEGER ) + 47
----
42

query I rowsort
SELECT ( - - 1 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT + 79 * - 62 * - COUNT( * ) + + 61
----
4959

skipif mysql # not compatible
query I rowsort label-3563
SELECT + 79 * - 62 * - COUNT ( * ) + + 61
----
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT 22 * - - 6 + - + COUNT( * ) + - 84 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3564
SELECT 22 * - - 6 + - + COUNT ( * ) + - 84 AS col0
----
47

query I rowsort
SELECT DISTINCT 35 * - - 29 + ( + + ( 37 ) )
----
1052

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3567
SELECT + 57 + + 41 DIV - 77 + + 62
----
119

skipif mysql # not compatible
query I rowsort label-3567
SELECT + 57 + + 41 / - 77 + + 62
----
119

query I rowsort
SELECT ALL + 23 * - - 66 + + 80
----
1598

onlyif mysql # aggregate syntax: 
query II rowsort label-3569
SELECT + COALESCE ( - 90, - - 95 * 51 - - COUNT( * ) + + + 82 ) AS col2, - 56 AS col0
----
-90
-56

skipif mysql # not compatible
query II rowsort label-3569
SELECT + COALESCE ( - 90, - - 95 * 51 - - COUNT ( * ) + + + 82 ) AS col2, - 56 AS col0
----
-90
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3570
SELECT 97 DIV 22 DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT 97 / 22 / 49 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3571
SELECT 22 * 90 + - CAST( - MIN( ALL + - 99 ) AS SIGNED ) + - COALESCE ( 38, + + COALESCE ( - - CAST( NULL AS SIGNED ), + - 36 + 97 + + ( + + ( + 92 ) ) ) * - 73 * + 60, + 6 ) * CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT 22 * 90 + - CAST ( - MIN ( ALL + - 99 ) AS INTEGER ) + - COALESCE ( 38, + + COALESCE ( - - CAST ( NULL AS INTEGER ), + - 36 + 97 + + ( + + ( + 92 ) ) ) * - 73 * + 60, + 6 ) * CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT COUNT( * ) * - 59 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT COUNT ( * ) * - 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT - 47 * - COUNT( * ) + MAX( ALL + - 28 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3573
SELECT - 47 * - COUNT ( * ) + MAX ( ALL + - 28 ) AS col2
----
19

query II rowsort
SELECT 70 AS col2, 88 col1
----
70
88

query I rowsort
SELECT 52 + + 24 AS col0
----
76

query I rowsort
SELECT ALL 9 + + + 36 * 34
----
1233

query I rowsort
SELECT ( - 37 ) * 16 AS col1
----
-592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT DISTINCT + 69 * + - 98 * + + CAST( - - 58 AS SIGNED ) AS col0
----
-392196

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + 69 * + - 98 * + + CAST ( - - 58 AS INTEGER ) AS col0
----
-392196

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

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

query I rowsort
SELECT 70 * - 96 AS col1
----
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + 10 + - COALESCE ( ( 43 ), + 20 + 25 + + 28 * + + MAX( - 15 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-3581
SELECT + 10 + - COALESCE ( ( 43 ), + 20 + 25 + + 28 * + + MAX ( - 15 ) )
----
-33

query I rowsort
SELECT - ( - 89 ) AS col0
----
89

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

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

query I rowsort
SELECT - 98 + - - 54 * - 80 + 79
----
-4339

query I rowsort
SELECT 50 * + 65 AS col2
----
3250

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

skipif mysql # not compatible
query II rowsort label-3586
SELECT + COUNT ( * ) * - + 44 * - COUNT ( * ) AS col1, COUNT ( * ) + + 43
----
44
44

query I rowsort
SELECT ALL + 58 * 95 AS col1
----
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT ALL + COUNT( + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL + COUNT ( + 4 )
----
1

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

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT - 75 / ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + NULLIF ( - - 58, - + 29 + + 94 ) * - + COUNT( + 77 )
----
-58

skipif mysql # not compatible
query I rowsort label-3590
SELECT + NULLIF ( - - 58, - + 29 + + 94 ) * - + COUNT ( + 77 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT 98 * + CASE 67 WHEN - - 74 / + + 24 + + + NULLIF ( - 90, + COALESCE ( + COUNT( * ), - 45 ) ) + - 2 * 25 * - - 2 * 62 + + - 25 THEN + 95 WHEN + 91 THEN NULL ELSE + 83 END + + - 21 + - 31 AS col2
----
8082

skipif mysql # not compatible
query I rowsort label-3591
SELECT 98 * + CASE 67 WHEN - - 74 / + + 24 + + + NULLIF ( - 90, + COALESCE ( + COUNT ( * ), - 45 ) ) + - 2 * 25 * - - 2 * 62 + + - 25 THEN + 95 WHEN + 91 THEN NULL ELSE + 83 END + + - 21 + - 31 AS col2
----
8082

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT - 54 * - CAST( - 24 AS SIGNED ) + - 87 + 67 AS col0
----
-1316

skipif mysql # not compatible
query I rowsort label-3592
SELECT - 54 * - CAST ( - 24 AS INTEGER ) + - 87 + 67 AS col0
----
-1316

query II rowsort
SELECT ALL - 82 + + - 87 * + 36, + 72 AS col1
----
-3214
72

query II rowsort
SELECT + 78 col2, - 75 + 97 col2
----
78
22

query I rowsort
SELECT ALL - COALESCE ( 30, - 38 * + 94 + 21 + + 35 ) AS col1
----
-30

query II rowsort
SELECT DISTINCT - 8 + - - 44 * - 87 * - 50 AS col2, 30
----
191392
30

query I rowsort
SELECT ALL ( + 28 ) * 73 AS col1
----
2044

query I rowsort
SELECT DISTINCT + 45 + + 93 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT DISTINCT COUNT( * ) + + 61 * - - 57 AS col2
----
3478

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT COUNT ( * ) + + 61 * - - 57 AS col2
----
3478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT 88 - 15 * COALESCE ( + 82, + 30 + 80 DIV COUNT( * ) ) + MAX( - + 92 ) + - ( - 40 ) DIV 46
----
-1234

skipif mysql # not compatible
query I rowsort label-3600
SELECT 88 - 15 * COALESCE ( + 82, + 30 + 80 / COUNT ( * ) ) + MAX ( - + 92 ) + - ( - 40 ) / 46
----
-1234

query I rowsort
SELECT 13 * + ( - 60 )
----
-780

query II rowsort
SELECT 42 AS col0, ( 45 ) AS col2
----
42
45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3603
SELECT + 56 AS col2, 98 - + 0 DIV - - CAST( + 47 AS SIGNED ) + 87 + + 13 * 89 * - + 13, - 61 DIV - + 11 - + 75 AS col1
----
56
-14856
-70

skipif mysql # not compatible
query III rowsort label-3603
SELECT + 56 AS col2, 98 - + 0 / - - CAST ( + 47 AS INTEGER ) + 87 + + 13 * 89 * - + 13, - 61 / - + 11 - + 75 AS col1
----
56
-14856
-70

query I rowsort
SELECT 23 - 74 + + 96 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL 3 * - + NULLIF ( + 64, - 88 * - COUNT( * ) + + + NULLIF ( - 69, + + COUNT( * ) ) )
----
-192

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL 3 * - + NULLIF ( + 64, - 88 * - COUNT ( * ) + + + NULLIF ( - 69, + + COUNT ( * ) ) )
----
-192

query I rowsort
SELECT 38 * 96 AS col0
----
3648

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT DISTINCT - 82 DIV + ( + 22 )
----
-3

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - 82 / + ( + 22 )
----
-3

query I rowsort
SELECT ALL + ( + 68 ) - + 31 AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3609
SELECT - 70, + 5 DIV + 96 + + MAX( 12 ) AS col2
----
-70
12

skipif mysql # not compatible
query II rowsort label-3609
SELECT - 70, + 5 / + 96 + + MAX ( 12 ) AS col2
----
-70
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT 57 DIV + + ( + 5 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3610
SELECT 57 / + + ( + 5 ) AS col2
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT 28 * - CASE - 67 WHEN COUNT( * ) * + 95 * CASE - 49 WHEN + 34 THEN 84 WHEN + 74 THEN NULL WHEN - + 9 THEN NULL ELSE - 43 * + COALESCE ( COALESCE ( NULLIF ( + 31, ( + 99 ) ), 59 ), - 55, + 27 - + 59, CASE + 17 WHEN - MAX( + 44 ) + - 93 THEN 23 / + 56 + - 13 * 47 END * COALESCE ( + CASE + 71 WHEN + MAX( DISTINCT + 71 ) * - 45 THEN + 95 + 64 * + ( 66 ) END, - AVG ( 8 ), - 89 ) ) + 66 * - 78 END THEN - 58 ELSE + 16 END
----
-448

skipif mysql # not compatible
query I rowsort label-3612
SELECT 28 * - CASE - 67 WHEN COUNT ( * ) * + 95 * CASE - 49 WHEN + 34 THEN 84 WHEN + 74 THEN NULL WHEN - + 9 THEN NULL ELSE - 43 * + COALESCE ( COALESCE ( NULLIF ( + 31, ( + 99 ) ), 59 ), - 55, + 27 - + 59, CASE + 17 WHEN - MAX ( + 44 ) + - 93 THEN 23 / + 56 + - 13 * 47 END * COALESCE ( + CASE + 71 WHEN + MAX ( DISTINCT + 71 ) * - 45 THEN + 95 + 64 * + ( 66 ) END, - AVG ( 8 ), - 89 ) ) + 66 * - 78 END THEN - 58 ELSE + 16 END
----
-448

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

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT COUNT ( * ) * + + 82 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3614
SELECT - 93 col2, CAST( 22 AS SIGNED ) AS col2
----
-93
22

skipif mysql # not compatible
query II rowsort label-3614
SELECT - 93 col2, CAST ( 22 AS INTEGER ) AS col2
----
-93
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3615
SELECT - 32 AS col0, 80 DIV - + COUNT( * ) - + + 88 * - - ( 50 )
----
-32
-4480

skipif mysql # not compatible
query II rowsort label-3615
SELECT - 32 AS col0, 80 / - + COUNT ( * ) - + + 88 * - - ( 50 )
----
-32
-4480

query II rowsort
SELECT ALL 4 * + 90, + 57 AS col2
----
360
57

query I rowsort
SELECT DISTINCT - NULLIF ( - 17, + 49 / - - 1 * 26 ) AS col0
----
17

query I rowsort
SELECT + ( + 36 ) * 57
----
2052

query II rowsort
SELECT DISTINCT - 62, + 39 AS col1
----
-62
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3620
SELECT + ( + 26 ) * + CAST( - COUNT( * ) AS SIGNED ) AS col0, - COUNT( * ) + - - 31 col1
----
-26
30

skipif mysql # not compatible
query II rowsort label-3620
SELECT + ( + 26 ) * + CAST ( - COUNT ( * ) AS INTEGER ) AS col0, - COUNT ( * ) + - - 31 col1
----
-26
30

query I rowsort
SELECT - 7 * - - 95 * + 68
----
-45220

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT - COALESCE ( + - COUNT( * ), - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT - COALESCE ( + - COUNT ( * ), - 18 )
----
1

query II rowsort
SELECT ALL 14 * + - 79 + - + 6 + - - 28 col1, - 98 * 16 + + 79
----
-1084
-1489

query I rowsort
SELECT ALL - ( - - 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT 7 * + - COUNT( * ) col2, - 94
----
-7
-94

skipif mysql # not compatible
query II rowsort label-3625
SELECT 7 * + - COUNT ( * ) col2, - 94
----
-7
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT ( - 14 ) DIV - ( + 72 ) + - ( + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3626
SELECT ( - 14 ) / - ( + 72 ) + - ( + 44 ) AS col0
----
-44

query I rowsort
SELECT ALL - 69 * 24 - + 53 * + 97 - - - 82 + - 43
----
-6922

query I rowsort
SELECT 59 * 89 + 27 * 29 AS col2
----
6034

query I rowsort
SELECT ALL - 87 * + 25 AS col1
----
-2175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL + MAX( ALL - CAST( 1 AS SIGNED ) ) * + + 77 + + 92 * SUM( - 28 ) + + 69 - - 57 * + COUNT( * ) AS col2
----
-2527

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL + MAX ( ALL - CAST ( 1 AS INTEGER ) ) * + + 77 + + 92 * SUM ( - 28 ) + + 69 - - 57 * + COUNT ( * ) AS col2
----
-2527

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

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

query I rowsort
SELECT ALL - ( + - 38 ) * - 53 + 54 * 73 AS col0
----
1928

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3633
SELECT DISTINCT + CASE - + 82 WHEN 1 THEN NULL WHEN + 32 THEN 90 + - 88 * + 21 ELSE NULL END AS col2, CASE - COUNT( ALL 96 ) WHEN - 73 THEN + 7 * - + 19 END * + + 42 * CAST( - + 44 AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3633
SELECT DISTINCT + CASE - + 82 WHEN 1 THEN NULL WHEN + 32 THEN 90 + - 88 * + 21 ELSE NULL END AS col2, CASE - COUNT ( ALL 96 ) WHEN - 73 THEN + 7 * - + 19 END * + + 42 * CAST ( - + 44 AS REAL )
----
NULL
NULL

query I rowsort
SELECT ALL - 69 * - 36 AS col1
----
2484

onlyif mysql # aggregate syntax: 
query II rowsort label-3635
SELECT 97 * + 96 + + - CASE - 54 WHEN - COUNT( * ) THEN + 19 END * - 21 + + 99 col0, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-3635
SELECT 97 * + 96 + + - CASE - 54 WHEN - COUNT ( * ) THEN + 19 END * - 21 + + 99 col0, 98
----
NULL
98

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

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

query I rowsort
SELECT + 66 + 37 AS col0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT ALL - 42 DIV + + COALESCE ( - 43, - ( + - 31 ) ) * + 43 + + 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL - 42 / + + COALESCE ( - 43, - ( + - 31 ) ) * + 43 + + 77 AS col2
----
77

query I rowsort
SELECT - - 36 + + + 88 AS col0
----
124

query I rowsort
SELECT - - NULLIF ( 75, - AVG ( ALL - + 36 ) )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT ALL - 98 DIV - + ( COALESCE ( 34, COALESCE ( - 6, + - 7 ) * - 89 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - 98 / - + ( COALESCE ( 34, COALESCE ( - 6, + - 7 ) * - 89 ) ) AS col1
----
2

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

skipif mysql # not compatible
query I rowsort label-3642
SELECT - + ( - COUNT ( * ) ) - COUNT ( * ) / + 29
----
1

query I rowsort
SELECT + 78 + + + 16 * 53
----
926

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + - COUNT( * ) * + 59 + - 73 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-3644
SELECT + - COUNT ( * ) * + 59 + - 73 AS col1
----
-132

query I rowsort
SELECT ALL 61 + - + 87 AS col2
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3646
SELECT ALL MIN( - 8 ) * - + 97 + + - 98 * 90 DIV + - 41
----
991

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL MIN ( - 8 ) * - + 97 + + - 98 * 90 / + - 41
----
991

query I rowsort
SELECT ALL - 46 * - + 48
----
2208

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT DISTINCT + 87 + + - NULLIF ( CASE + + 48 WHEN + 96 THEN NULL WHEN + 67 / + 3 * AVG ( DISTINCT 37 ) THEN NULL ELSE MIN( DISTINCT + 65 ) END, - + 84 ) AS col1, 79 - - 40 col0
----
22
119

skipif mysql # not compatible
query II rowsort label-3648
SELECT DISTINCT + 87 + + - NULLIF ( CASE + + 48 WHEN + 96 THEN NULL WHEN + 67 / + 3 * AVG ( DISTINCT 37 ) THEN NULL ELSE MIN ( DISTINCT + 65 ) END, - + 84 ) AS col1, 79 - - 40 col0
----
22
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT + + COUNT( ALL - 94 ) + + 68
----
69

skipif mysql # not compatible
query I rowsort label-3649
SELECT + + COUNT ( ALL - 94 ) + + 68
----
69

query I rowsort
SELECT ALL + 54 + + - 59 AS col0
----
-5

query II rowsort
SELECT 86 AS col2, 25
----
86
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT CAST( + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3652
SELECT CAST ( + 21 AS INTEGER )
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-3653
SELECT - ( - NULLIF ( - 46, - 24 ) ) DIV 16 + + - 17, - 62 * + + 84 AS col2
----
-19
-5208

skipif mysql # not compatible
query II rowsort label-3653
SELECT - ( - NULLIF ( - 46, - 24 ) ) / 16 + + - 17, - 62 * + + 84 AS col2
----
-19
-5208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT CAST( - 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3654
SELECT CAST ( - 72 AS INTEGER ) AS col2
----
-72

query I rowsort
SELECT + COALESCE ( + 23, + 91, - 60, - 30 ) AS col1
----
23

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

query I rowsort
SELECT - 29 * + 26 + ( + - 84 ) AS col2
----
-838

onlyif mysql # DIV for integer division: 
query I rowsort label-3658
SELECT ALL - 25 DIV + 18 - 6
----
-7

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - 25 / + 18 - 6
----
-7

query I rowsort
SELECT + ( + COALESCE ( - 30, + 63 ) ) AS col0
----
-30

query I rowsort
SELECT + 98 * ( + + 78 ) * - + 97 AS col1
----
-741468

onlyif mysql # DIV for integer division: 
query II rowsort label-3661
SELECT ALL 4 DIV - ( - 99 ), - 12 AS col1
----
0
-12

skipif mysql # not compatible
query II rowsort label-3661
SELECT ALL 4 / - ( - 99 ), - 12 AS col1
----
0
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3662
SELECT + 16 DIV - MIN( DISTINCT 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3662
SELECT + 16 / - MIN ( DISTINCT 17 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT COUNT( * ) * - - 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT COUNT ( * ) * - - 75 AS col0
----
75

query I rowsort
SELECT ALL + 48 * + 89 - 12 AS col2
----
4260

query I rowsort
SELECT ALL 97 * 86 - - 53 + 40 + - + 55
----
8380

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT - 86 DIV - 78
----
1

skipif mysql # not compatible
query I rowsort label-3666
SELECT - 86 / - 78
----
1

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

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

query I rowsort
SELECT + 56 - - 39 AS col1
----
95

query II rowsort
SELECT + 11 AS col0, 69
----
11
69

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

skipif mysql # not compatible
query II rowsort label-3670
SELECT ALL + MAX ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3671
SELECT + 50 DIV - 20
----
-2

skipif mysql # not compatible
query I rowsort label-3671
SELECT + 50 / - 20
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT DISTINCT + 11 * + COUNT( ALL + NULLIF ( + 20, + - 26 * + + 55 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3672
SELECT DISTINCT + 11 * + COUNT ( ALL + NULLIF ( + 20, + - 26 * + + 55 ) ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT - - 82 - - COUNT( - - 29 ) AS col2, - 22 + 98 * - 76 AS col2
----
83
-7470

skipif mysql # not compatible
query II rowsort label-3673
SELECT - - 82 - - COUNT ( - - 29 ) AS col2, - 22 + 98 * - 76 AS col2
----
83
-7470

query I rowsort
SELECT ALL + + ( + 6 ) col0
----
6

query I rowsort
SELECT - + 7 - - 3 AS col1
----
-4

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

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

query I rowsort
SELECT DISTINCT - + 89 * 51
----
-4539

query I rowsort
SELECT ALL - 93 * - - 97 + - - 64 - 74 * - 50 AS col1
----
-5257

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3679
SELECT - 29 AS col1, + ( - - COALESCE ( - CAST( + + 87 AS SIGNED ), + 60 ) ) AS col1
----
-29
-87

skipif mysql # not compatible
query II rowsort label-3679
SELECT - 29 AS col1, + ( - - COALESCE ( - CAST ( + + 87 AS INTEGER ), + 60 ) ) AS col1
----
-29
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - CASE 25 WHEN + 58 THEN NULL ELSE - 47 * + ( + 63 ) + + - MIN( - 37 ) - - 58 * - 81 * - ( + COUNT( * ) ) - - 14 END + - 55 + + 71 + 85 * + 91 + - - 81 * 85
----
12848

skipif mysql # not compatible
query I rowsort label-3680
SELECT - CASE 25 WHEN + 58 THEN NULL ELSE - 47 * + ( + 63 ) + + - MIN ( - 37 ) - - 58 * - 81 * - ( + COUNT ( * ) ) - - 14 END + - 55 + + 71 + 85 * + 91 + - - 81 * 85
----
12848

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - 66 - SUM( - + 3 ) * + 39
----
51

skipif mysql # not compatible
query I rowsort label-3681
SELECT - 66 - SUM ( - + 3 ) * + 39
----
51

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

skipif mysql # not compatible
query I rowsort label-3682
SELECT + - COUNT ( * ) + + 64 AS col2
----
63

query I rowsort
SELECT + 80 * + + 57
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3684
SELECT ALL + + ( - + 66 ) * - + 50 * - CASE - - 38 WHEN + - 93 * ( COALESCE ( - + 59, - - COALESCE ( - 11, 55 * + CAST( NULL AS SIGNED ) ) + - + 57 ) ) DIV + + 6 - - 90 THEN 92 ELSE + COUNT( * ) DIV - 84 END
----
0

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + + ( - + 66 ) * - + 50 * - CASE - - 38 WHEN + - 93 * ( COALESCE ( - + 59, - - COALESCE ( - 11, 55 * + CAST ( NULL AS INTEGER ) ) + - + 57 ) ) / + + 6 - - 90 THEN 92 ELSE + COUNT ( * ) / - 84 END
----
0

query I rowsort
SELECT DISTINCT - - 85 + - 36 AS col0
----
49

query II rowsort
SELECT ALL 24 col1, + 35
----
24
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3687
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 50 + + CAST( + 14 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 50 + + CAST ( + 14 AS INTEGER )
----
NULL

query I rowsort
SELECT - 8 + 2 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - MAX( - - 76 ) * - 74 * - 69 col0
----
-388056

skipif mysql # not compatible
query I rowsort label-3689
SELECT - MAX ( - - 76 ) * - 74 * - 69 col0
----
-388056

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT 13 - + MAX( - + 51 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3690
SELECT 13 - + MAX ( - + 51 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT COALESCE ( + 23, 41 ) * - 22 + - 6 - + 94 + - 74 * - - COUNT( * ) AS col2
----
-680

skipif mysql # not compatible
query I rowsort label-3691
SELECT COALESCE ( + 23, 41 ) * - 22 + - 6 - + 94 + - 74 * - - COUNT ( * ) AS col2
----
-680

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL - ( - MIN( - 50 ) ) * - 54 * + - NULLIF ( - 60, + 73 * - + ( - - 94 ) - + - CAST( NULL AS SIGNED ) ) - - + 50
----
162050

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - ( - MIN ( - 50 ) ) * - 54 * + - NULLIF ( - 60, + 73 * - + ( - - 94 ) - + - CAST ( NULL AS INTEGER ) ) - - + 50
----
162050

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT 16 * CASE - COUNT( * ) WHEN 14 THEN NULL WHEN - 67 + + + 61 / - 60 THEN + 82 END * + 9 * + - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT 16 * CASE - COUNT ( * ) WHEN 14 THEN NULL WHEN - 67 + + + 61 / - 60 THEN + 82 END * + 9 * + - 60 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT 32 + + ( NULLIF ( + 96, 49 * - 92 + CAST( NULL AS SIGNED ) - - 17 + 82 ) )
----
128

skipif mysql # not compatible
query I rowsort label-3695
SELECT 32 + + ( NULLIF ( + 96, 49 * - 92 + CAST ( NULL AS INTEGER ) - - 17 + 82 ) )
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - 43 * + 47 + + 87 + + ( + - CASE + - 63 WHEN - 41 - 75 THEN + + 39 * + 14 + COUNT( * ) * + 15 WHEN + 17 THEN + + 52 * - - 41 * - ( CASE 10 WHEN + NULLIF ( + - ( + + 30 ), + 92 * + + 4 + + 46 ) THEN NULL WHEN - COUNT( * ) * - 0 THEN - 8 END ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 43 * + 47 + + 87 + + ( + - CASE + - 63 WHEN - 41 - 75 THEN + + 39 * + 14 + COUNT ( * ) * + 15 WHEN + 17 THEN + + 52 * - - 41 * - ( CASE 10 WHEN + NULLIF ( + - ( + + 30 ), + 92 * + + 4 + + 46 ) THEN NULL WHEN - COUNT ( * ) * - 0 THEN - 8 END ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT 77 + - MIN( ALL + + 80 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3697
SELECT 77 + - MIN ( ALL + + 80 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT 38 + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT 38 + - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT DISTINCT ( + 93 ) + + - 91 * + 79 AS col1, + ( - 23 ) - + COUNT( * ) col1
----
-7096
-24

skipif mysql # not compatible
query II rowsort label-3699
SELECT DISTINCT ( + 93 ) + + - 91 * + 79 AS col1, + ( - 23 ) - + COUNT ( * ) col1
----
-7096
-24

query I rowsort
SELECT + 1 + - 78
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL MAX( - 36 ) + - COUNT( ALL + 6 ) * + + 38 * + 31
----
-1214

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL MAX ( - 36 ) + - COUNT ( ALL + 6 ) * + + 38 * + 31
----
-1214

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT DISTINCT - + ( - + 89 ), - COUNT( * ) * - 17 + - COUNT( * ) + - - ( - 34 ) + + 2 AS col2
----
89
-16

skipif mysql # not compatible
query II rowsort label-3702
SELECT DISTINCT - + ( - + 89 ), - COUNT ( * ) * - 17 + - COUNT ( * ) + - - ( - 34 ) + + 2 AS col2
----
89
-16

query I rowsort
SELECT ALL - 50 + COALESCE ( - + 7, + - 34 * 34 ) AS col0
----
-57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT COALESCE ( 76, + - 88 * + 96 ) + - 89 + - CAST( + - 87 AS SIGNED ) + - 45 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3705
SELECT COALESCE ( 76, + - 88 * + 96 ) + - 89 + - CAST ( + - 87 AS INTEGER ) + - 45 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT 19 * - NULLIF ( + NULLIF ( CAST( NULL AS SIGNED ), + ( - CASE + 65 WHEN - 28 THEN + + 44 * - + 76 * - COUNT( * ) WHEN - - 29 + COUNT( * ) THEN + 62 ELSE NULL END ) ), + + 49 + 52 * + - 83 * 52 ) * + - 50 + - 60 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT 19 * - NULLIF ( + NULLIF ( CAST ( NULL AS INTEGER ), + ( - CASE + 65 WHEN - 28 THEN + + 44 * - + 76 * - COUNT ( * ) WHEN - - 29 + COUNT ( * ) THEN + 62 ELSE NULL END ) ), + + 49 + 52 * + - 83 * 52 ) * + - 50 + - 60 * + 84
----
NULL

query I rowsort
SELECT ALL - 98 * - 62 + 42 AS col1
----
6118

query I rowsort
SELECT ALL - ( - - 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT + COALESCE ( 24, 83 - - 61 * - - 55 + + - 30 + + 62 * 10 * - 77 * - + ( 35 ), - 52 ) - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT + COALESCE ( 24, 83 - - 61 * - - 55 + + - 30 + + 62 * 10 * - 77 * - + ( 35 ), - 52 ) - - COUNT ( * )
----
25

query I rowsort
SELECT ALL + 63 * 88 AS col2
----
5544

query I rowsort
SELECT + 92 + - - 52 AS col0
----
144

query I rowsort
SELECT ALL NULLIF ( - 60, - 30 ) AS col1
----
-60

query I rowsort
SELECT 7 * 37
----
259

query II rowsort
SELECT DISTINCT 82 col1, + 67 * - + ( - 21 )
----
82
1407

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT 26 DIV - + 26
----
-1

skipif mysql # not compatible
query I rowsort label-3715
SELECT 26 / - + 26
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3716
SELECT COUNT( * ) + 38 + - + 78 * + - CAST( COUNT( * ) AS SIGNED ) DIV - 89
----
39

skipif mysql # not compatible
query I rowsort label-3716
SELECT COUNT ( * ) + 38 + - + 78 * + - CAST ( COUNT ( * ) AS INTEGER ) / - 89
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT 4 * CASE + 24 WHEN + 2 THEN 28 END / + - 54 * - CASE - 50 WHEN 88 * + - COUNT( * ) + - 57 THEN + - 99 / + SUM( + ( + 84 ) ) / 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT 4 * CASE + 24 WHEN + 2 THEN 28 END / + - 54 * - CASE - 50 WHEN 88 * + - COUNT ( * ) + - 57 THEN + - 99 / + SUM ( + ( + 84 ) ) / 2 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3718
SELECT 16 DIV ( 1 )
----
16

skipif mysql # not compatible
query I rowsort label-3718
SELECT 16 / ( 1 )
----
16

query I rowsort
SELECT CASE - 63 WHEN + - 61 THEN 11 WHEN + 9 THEN NULL END / + - 25 + + 35 col1
----
NULL

query I rowsort
SELECT 22 * - - 71 AS col1
----
1562

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3721
SELECT DISTINCT - ( - 29 ) * + + 60 + AVG ( - ( 18 ) ) * - CAST( NULL AS SIGNED ) / + 92 AS col2, - 14 + + 18 + + 48
----
NULL
52

skipif mysql # not compatible
query II rowsort label-3721
SELECT DISTINCT - ( - 29 ) * + + 60 + AVG ( - ( 18 ) ) * - CAST ( NULL AS INTEGER ) / + 92 AS col2, - 14 + + 18 + + 48
----
NULL
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + 76 * + SUM( - + 35 ) + + 58 AS col0
----
-2602

skipif mysql # not compatible
query I rowsort label-3722
SELECT + 76 * + SUM ( - + 35 ) + + 58 AS col0
----
-2602

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL 3 * CASE - 50 WHEN - - 32 / - 55 THEN NULL WHEN + - 60 / - 50 * - 89 + 40 / COUNT( * ) / + - COUNT( * ) THEN + - 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL 3 * CASE - 50 WHEN - - 32 / - 55 THEN NULL WHEN + - 60 / - 50 * - 89 + 40 / COUNT ( * ) / + - COUNT ( * ) THEN + - 85 END AS col0
----
NULL

query I rowsort
SELECT 38 * + + 50 + - - 75 + - - 28 * 92 * - - 3 + 65 col1
----
9768

onlyif mysql # aggregate syntax: 
query II rowsort label-3725
SELECT DISTINCT COUNT( * ) * 73 + NULLIF ( 22, - 43 - - - 62 ) * + ( - 2 ) AS col1, - 48
----
29
-48

skipif mysql # not compatible
query II rowsort label-3725
SELECT DISTINCT COUNT ( * ) * 73 + NULLIF ( 22, - 43 - - - 62 ) * + ( - 2 ) AS col1, - 48
----
29
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT ALL COUNT( * ) * + 3 + - COUNT( * ) * + ( - 7 ), MAX( + + 70 ) AS col2
----
10
70

skipif mysql # not compatible
query II rowsort label-3726
SELECT ALL COUNT ( * ) * + 3 + - COUNT ( * ) * + ( - 7 ), MAX ( + + 70 ) AS col2
----
10
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL + 65 * MAX( - 17 )
----
-1105

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + 65 * MAX ( - 17 )
----
-1105

query I rowsort
SELECT DISTINCT 32 + 48
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT DISTINCT + 47 * - NULLIF ( - + 93, COUNT( + 60 ) * + 74 * - 5 + + SUM( ALL - NULLIF ( + 65, - 38 ) ) - + + 41 ) AS col2
----
4371

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + 47 * - NULLIF ( - + 93, COUNT ( + 60 ) * + 74 * - 5 + + SUM ( ALL - NULLIF ( + 65, - 38 ) ) - + + 41 ) AS col2
----
4371

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3730
SELECT ALL + + ( - 71 ) + + 24 col0, - 22 DIV COALESCE ( 36, 27 + - + 94 ) * + 90 - - + 86 + MIN( - - 13 )
----
-47
99

skipif mysql # not compatible
query II rowsort label-3730
SELECT ALL + + ( - 71 ) + + 24 col0, - 22 / COALESCE ( 36, 27 + - + 94 ) * + 90 - - + 86 + MIN ( - - 13 )
----
-47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT 64 - + - COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-3732
SELECT 64 - + - COUNT ( * ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT + 89 * - 7 + + 15 + + 81 + + 19 - - ( + COUNT( DISTINCT 5 ) ) - ( + 45 ) col2
----
-552

skipif mysql # not compatible
query I rowsort label-3733
SELECT + 89 * - 7 + + 15 + + 81 + + 19 - - ( + COUNT ( DISTINCT 5 ) ) - ( + 45 ) col2
----
-552

query I rowsort
SELECT ( COALESCE ( 69, + 88 + - + ( 9 ), + - 4 ) ) * + 73
----
5037

query I rowsort
SELECT 85 + + + 71
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + - COALESCE ( + + 73, MAX( DISTINCT - 22 ) ) + SUM( + 43 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + - COALESCE ( + + 73, MAX ( DISTINCT - 22 ) ) + SUM ( + 43 ) AS col1
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-3737
SELECT ALL 32 - - 97 DIV 17 AS col1, 63
----
37
63

skipif mysql # not compatible
query II rowsort label-3737
SELECT ALL 32 - - 97 / 17 AS col1, 63
----
37
63

query I rowsort
SELECT ALL 71 * + 36 + 69
----
2625

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT - COALESCE ( + + 16, - 86 ) - 79 - CAST( NULL AS SIGNED ) * + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT - COALESCE ( + + 16, - 86 ) - 79 - CAST ( NULL AS INTEGER ) * + 21 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT ALL 98 - - COALESCE ( 70, - 28 + CASE 22 WHEN - CASE 32 WHEN + 96 THEN 2 ELSE NULL END THEN NULL WHEN - 42 / CASE + 48 WHEN - 25 THEN + 96 WHEN + + 39 - - + 72 THEN - 82 + 54 WHEN ( - 61 ) - - + MAX( - 94 ) THEN NULL END THEN - 86 ELSE - ( 60 ) END, + 56, 80 ) AS col0
----
168

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL 98 - - COALESCE ( 70, - 28 + CASE 22 WHEN - CASE 32 WHEN + 96 THEN 2 ELSE NULL END THEN NULL WHEN - 42 / CASE + 48 WHEN - 25 THEN + 96 WHEN + + 39 - - + 72 THEN - 82 + 54 WHEN ( - 61 ) - - + MAX ( - 94 ) THEN NULL END THEN - 86 ELSE - ( 60 ) END, + 56, 80 ) AS col0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3743
SELECT + 68 * + CAST( NULLIF ( - 41, CAST( NULL AS DECIMAL ) ) AS SIGNED ) - - + 62 + - + CASE + 10 WHEN + + COUNT( * ) * + 76 THEN - - 23 WHEN + COALESCE ( - 62, + 6 - 95, 73 * - 11 ) THEN NULL END - + 78 * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT + 68 * + CAST ( NULLIF ( - 41, CAST ( NULL AS REAL ) ) AS INTEGER ) - - + 62 + - + CASE + 10 WHEN + + COUNT ( * ) * + 76 THEN - - 23 WHEN + COALESCE ( - 62, + 6 - 95, 73 * - 11 ) THEN NULL END - + 78 * 68
----
NULL

query I rowsort
SELECT + - 97 * - 72 + - 91
----
6893

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - - ( + MAX( + + 4 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3745
SELECT - - ( + MAX ( + + 4 ) ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3746
SELECT - - COUNT( * ) - + + MIN( + 29 ) AS col2, + 78 AS col0
----
-28
78

skipif mysql # not compatible
query II rowsort label-3746
SELECT - - COUNT ( * ) - + + MIN ( + 29 ) AS col2, + 78 AS col0
----
-28
78

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

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL + COUNT ( * ) / 84
----
0

query I rowsort
SELECT + 17 * - 82 * + 61 + + 22 AS col0
----
-85012

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

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL COUNT ( + + 84 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3750
SELECT - CASE MIN( + 75 ) WHEN - 95 THEN NULL ELSE - - 35 * + 78 DIV COUNT( * ) + 82 + 72 - 80 DIV + - COUNT( + + NULLIF ( - - 92, - 69 ) ) + 10 - + - NULLIF ( + 53, + 92 + - CAST( NULL AS SIGNED ) + - 16 * ( + - 12 ) ) * 21 + + - 41 * 58 + + - 55 END AS col0
----
-1654

skipif mysql # not compatible
query I rowsort label-3750
SELECT - CASE MIN ( + 75 ) WHEN - 95 THEN NULL ELSE - - 35 * + 78 / COUNT ( * ) + 82 + 72 - 80 / + - COUNT ( + + NULLIF ( - - 92, - 69 ) ) + 10 - + - NULLIF ( + 53, + 92 + - CAST ( NULL AS INTEGER ) + - 16 * ( + - 12 ) ) * 21 + + - 41 * 58 + + - 55 END AS col0
----
-1654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3751
SELECT ALL 28 AS col0, - SUM( DISTINCT CASE 49 WHEN - 66 THEN + 61 WHEN + 72 + + + 25 + + + 10 THEN NULL END ) * 46 * CAST( NULL AS SIGNED ) * + + COUNT( * )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-3751
SELECT ALL 28 AS col0, - SUM ( DISTINCT CASE 49 WHEN - 66 THEN + 61 WHEN + 72 + + + 25 + + + 10 THEN NULL END ) * 46 * CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
28
NULL

query II rowsort
SELECT DISTINCT 80 AS col2, 4 * + 14 + ( + 39 ) + 23 AS col2
----
80
118

query I rowsort
SELECT ALL + 41 * 43 AS col2
----
1763

query II rowsort
SELECT ALL 86 col2, NULLIF ( - + 53, - + 88 )
----
86
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3755
SELECT DISTINCT COUNT( * ) AS col1, 97 + + + 80 + 11 DIV - 93 AS col1
----
1
177

skipif mysql # not compatible
query II rowsort label-3755
SELECT DISTINCT COUNT ( * ) AS col1, 97 + + + 80 + 11 / - 93 AS col1
----
1
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3756
SELECT + 57 + - NULLIF ( + CAST( + - 71 AS SIGNED ), + 41 + - 42 * - 24 + + MAX( ALL + - 33 ) ) * ( - - 75 ) AS col2, 41 AS col0
----
5382
41

skipif mysql # not compatible
query II rowsort label-3756
SELECT + 57 + - NULLIF ( + CAST ( + - 71 AS INTEGER ), + 41 + - 42 * - 24 + + MAX ( ALL + - 33 ) ) * ( - - 75 ) AS col2, 41 AS col0
----
5382
41

query II rowsort
SELECT - 42 AS col2, - 42
----
-42
-42

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

skipif mysql # not compatible
query II rowsort label-3758
SELECT 26 AS col2, ( - COUNT ( * ) ) AS col2
----
26
-1

query I rowsort
SELECT ALL + 42 * + 98 AS col2
----
4116

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

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

query I rowsort
SELECT - ( - - 24 ) * - ( + 38 ) AS col2
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL NULLIF ( + + 70, - 86 * MIN( + 25 ) * + + 41 * + + 99 )
----
70

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL NULLIF ( + + 70, - 86 * MIN ( + 25 ) * + + 41 * + + 99 )
----
70

query I rowsort
SELECT DISTINCT - 24 + + 70
----
46

query I rowsort
SELECT - 27 - + + 22
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT DISTINCT COUNT( COALESCE ( + ( - 93 ), - 65 * 46, + ( - 60 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT COUNT ( COALESCE ( + ( - 93 ), - 65 * 46, + ( - 60 ) ) )
----
1

query I rowsort
SELECT ALL - 6 + + + 47
----
41

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

query I rowsort
SELECT ALL - 79 * 3
----
-237

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3769
SELECT - 56 DIV 79 AS col1, MAX( ALL - 65 ) AS col2
----
0
-65

skipif mysql # not compatible
query II rowsort label-3769
SELECT - 56 / 79 AS col1, MAX ( ALL - 65 ) AS col2
----
0
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3770
SELECT ALL 65 * 89 + - CASE + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + COUNT( * ) THEN - 27 ELSE NULL END col2, 94 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-3770
SELECT ALL 65 * 89 + - CASE + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + COUNT ( * ) THEN - 27 ELSE NULL END col2, 94 AS col2
----
NULL
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3771
SELECT SUM( - 26 ) * - + 43 + + 72 + - - 43 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT SUM ( - 26 ) * - + 43 + + 72 + - - 43 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 73 * 47 AS col0
----
-3431

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT + 84 DIV - - 42 + 46
----
48

skipif mysql # not compatible
query I rowsort label-3774
SELECT + 84 / - - 42 + 46
----
48

query I rowsort
SELECT + - 81 * 69 - + ( + 38 ) * + 65 AS col2
----
-8059

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT - - MIN( + + 94 ) + + 69 + + 6 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-3776
SELECT - - MIN ( + + 94 ) + + 69 + + 6 AS col2
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3777
SELECT 53 DIV - 96 + - 72 + COUNT( * ) - + COALESCE ( 64, MAX( ALL + + CASE - - 79 WHEN + 68 + + 54 * - 9 THEN NULL ELSE + 90 END ) * 29 ) AS col1, + 96 AS col0
----
-135
96

skipif mysql # not compatible
query II rowsort label-3777
SELECT 53 / - 96 + - 72 + COUNT ( * ) - + COALESCE ( 64, MAX ( ALL + + CASE - - 79 WHEN + 68 + + 54 * - 9 THEN NULL ELSE + 90 END ) * 29 ) AS col1, + 96 AS col0
----
-135
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3778
SELECT DISTINCT + + CAST( - 22 AS SIGNED ) * - - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT + + CAST ( - 22 AS INTEGER ) * - - COUNT ( * )
----
-22

query I rowsort
SELECT + ( - 29 ) + + 4 - - 0
----
-25

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT + + 78 * + 64 * COUNT( * ) - - COUNT( 12 ) col1
----
4993

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + + 78 * + 64 * COUNT ( * ) - - COUNT ( 12 ) col1
----
4993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3783
SELECT DISTINCT + + 64 AS col2, + 15 * + ( + 25 ) + SUM( ALL - + CAST( NULL AS SIGNED ) )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-3783
SELECT DISTINCT + + 64 AS col2, + 15 * + ( + 25 ) + SUM ( ALL - + CAST ( NULL AS INTEGER ) )
----
64
NULL

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

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

query I rowsort
SELECT ALL + COALESCE ( - 79, - 47 ) AS col1
----
-79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3787
SELECT + COUNT( * ) * - 65 * + + MIN( DISTINCT ( - 89 ) ) + + 83 + + CAST( + CASE 73 WHEN 12 THEN + 97 + - 37 + + - 52 + - 0 * 52 WHEN + 43 * + - AVG ( COALESCE ( - - ( - + 41 ), 78 ) ) THEN NULL END AS SIGNED ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT + COUNT ( * ) * - 65 * + + MIN ( DISTINCT ( - 89 ) ) + + 83 + + CAST ( + CASE 73 WHEN 12 THEN + 97 + - 37 + + - 52 + - 0 * 52 WHEN + 43 * + - AVG ( COALESCE ( - - ( - + 41 ), 78 ) ) THEN NULL END AS INTEGER ) + - 27
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT + - 75 + 80
----
5

query I rowsort
SELECT DISTINCT 40 * - 94 * - + 44 col1
----
165440

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3793
SELECT - CASE + 0 WHEN - CAST( 71 AS DECIMAL ) THEN - CAST( 12 AS DECIMAL ) * + CAST( NULL AS SIGNED ) * + + 41 + 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT - CASE + 0 WHEN - CAST ( 71 AS REAL ) THEN - CAST ( 12 AS REAL ) * + CAST ( NULL AS INTEGER ) * + + 41 + 22 ELSE NULL END
----
NULL

query I rowsort
SELECT + 57 + - 76 + - + 62 AS col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT + 34 DIV - - 18
----
1

skipif mysql # not compatible
query I rowsort label-3795
SELECT + 34 / - - 18
----
1

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

skipif mysql # not compatible
query I rowsort label-3796
SELECT - 39 + - 60 - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3797
SELECT DISTINCT 63 + - - 28 DIV 13 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT 63 + - - 28 / 13 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + NULLIF ( - + COUNT( * ), + - 81 * - 42 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT + NULLIF ( - + COUNT ( * ), + - 81 * - 42 ) + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 65 * + - 78 * + 9
----
-45630

onlyif mysql # aggregate syntax: 
query II rowsort label-3800
SELECT DISTINCT - 93 * 83, - COUNT( * ) AS col1
----
-7719
-1

skipif mysql # not compatible
query II rowsort label-3800
SELECT DISTINCT - 93 * 83, - COUNT ( * ) AS col1
----
-7719
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - 50 + - CASE + NULLIF ( + + 40, - 84 * + 31 / + 14 + + 38 ) WHEN - - COUNT( * ) THEN NULL ELSE - 55 - - - MIN( - 34 ) END + NULLIF ( + - 5, - 27 - - 36 ) + + - 73 * - CASE WHEN + 74 >= NULL THEN + 97 - 28 END / 12 * - ( 78 ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT - 50 + - CASE + NULLIF ( + + 40, - 84 * + 31 / + 14 + + 38 ) WHEN - - COUNT ( * ) THEN NULL ELSE - 55 - - - MIN ( - 34 ) END + NULLIF ( + - 5, - 27 - - 36 ) + + - 73 * - CASE WHEN + 74 >= NULL THEN + 97 - 28 END / 12 * - ( 78 ) + + 90
----
NULL

query II rowsort
SELECT ALL - 2 * + 55 AS col2, - 49 AS col2
----
-110
-49

query II rowsort
SELECT DISTINCT - 93 * + - 71, 62 * - 92 * 58 col2
----
6603
-330832

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

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

query I rowsort
SELECT - + 97 * + + 72 + - 28
----
-7012

query I rowsort
SELECT ALL + 91 * - - 80 * - 34
----
-247520

query I rowsort
SELECT + COALESCE ( 57, - + 83 * - - 92 * - 12 + - 18 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3808
SELECT + - COALESCE ( 45, + CASE - CASE - - 86 WHEN - 39 THEN + 86 + 53 ELSE + - 25 * 59 END WHEN + ( + CAST( COUNT( DISTINCT 50 ) AS SIGNED ) ) THEN + + COUNT( * ) * + 46 END )
----
-45

skipif mysql # not compatible
query I rowsort label-3808
SELECT + - COALESCE ( 45, + CASE - CASE - - 86 WHEN - 39 THEN + 86 + 53 ELSE + - 25 * 59 END WHEN + ( + CAST ( COUNT ( DISTINCT 50 ) AS INTEGER ) ) THEN + + COUNT ( * ) * + 46 END )
----
-45

query II rowsort
SELECT 47 * - ( - 21 ) AS col1, + 77 + 55
----
987
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3810
SELECT DISTINCT - 20 * + COUNT( * ) DIV + 69 + + COUNT( + 66 ) * - COUNT( ALL + 95 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - 20 * + COUNT ( * ) / + 69 + + COUNT ( + 66 ) * - COUNT ( ALL + 95 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3811
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) * CAST( + + 96 AS SIGNED ) * - - 34 + 17
----
3281

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * CAST ( + + 96 AS INTEGER ) * - - 34 + 17
----
3281

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT 12 * COUNT( * ) + - + 70
----
-58

skipif mysql # not compatible
query I rowsort label-3812
SELECT 12 * COUNT ( * ) + - + 70
----
-58

query I rowsort
SELECT DISTINCT - 84 * 47 + + 56 * - 18 AS col1
----
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT + NULLIF ( - COALESCE ( 42, - COALESCE ( - 3, - + 81 * + - 28 * 49 ), + 58 ), + COUNT( * ) * 57 )
----
-42

skipif mysql # not compatible
query I rowsort label-3814
SELECT + NULLIF ( - COALESCE ( 42, - COALESCE ( - 3, - + 81 * + - 28 * 49 ), + 58 ), + COUNT ( * ) * 57 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT - + SUM( - - 20 ) + - 90 - - ( 93 ) col1
----
-17

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - + SUM ( - - 20 ) + - 90 - - ( 93 ) col1
----
-17

query I rowsort
SELECT DISTINCT + 82 * + 12 col0
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT - COUNT( * ) + - 8 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - COUNT ( * ) + - 8 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3818
SELECT ALL - COUNT( ALL + CAST( - 25 AS DECIMAL ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL - COUNT ( ALL + CAST ( - 25 AS REAL ) ) AS col0
----
-1

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

query II rowsort
SELECT 22 * - + 53 * - 64, NULLIF ( - 21, + - 20 * 76 ) AS col0
----
74624
-21

query I rowsort
SELECT 25 + - 9 + + - 78 AS col2
----
-62

query II rowsort
SELECT ALL 82 AS col1, - 49
----
82
-49

query I rowsort
SELECT ALL 22 + + 59 AS col0
----
81

query I rowsort
SELECT ALL 81 + + + 80 AS col2
----
161

query I rowsort
SELECT DISTINCT 39 * - 61 * + - 98 AS col0
----
233142

query I rowsort
SELECT 60 * + + 22 AS col2
----
1320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT ALL + 6 + CAST( 96 AS SIGNED ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + 6 + CAST ( 96 AS INTEGER ) AS col2
----
102

query I rowsort
SELECT 47 + 63
----
110

query I rowsort
SELECT 50 * - 37 col2
----
-1850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3830
SELECT ALL 38 * - CASE + 93 WHEN MIN( - 46 ) + 31 THEN + 39 ELSE + COUNT( * ) + + CAST( NULL AS SIGNED ) * + + 72 END * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL 38 * - CASE + 93 WHEN MIN ( - 46 ) + 31 THEN + 39 ELSE + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + + 72 END * - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT MIN( - - 54 ) + + NULLIF ( + 94, 34 ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-3831
SELECT MIN ( - - 54 ) + + NULLIF ( + 94, 34 ) AS col2
----
148

query I rowsort
SELECT 66 + - 70
----
-4

query I rowsort
SELECT ALL 32 - - - 66
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3834
SELECT ALL COUNT( * ) DIV 16 * - - 66 * 79
----
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL COUNT ( * ) / 16 * - - 66 * 79
----
0

query I rowsort
SELECT CASE - 72 WHEN - 6 THEN - 13 * + 90 WHEN 66 * + + 78 - 71 THEN NULL WHEN 93 THEN NULL END - 20 AS col1
----
NULL

query II rowsort
SELECT - + 8, - 20 AS col1
----
-8
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3837
SELECT ALL + COUNT( DISTINCT 60 ) * + + COUNT( + 12 ) * CAST( NULL AS DECIMAL ) * + + 32 * 49 + - MAX( - 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + COUNT ( DISTINCT 60 ) * + + COUNT ( + 12 ) * CAST ( NULL AS REAL ) * + + 32 * 49 + - MAX ( - 40 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3838
SELECT - 68 + - + ( + 61 ) + - COUNT( * ) + - CASE 95 WHEN - 24 / 32 + 23 / - ( - COUNT( * ) ) THEN NULL WHEN - 91 + - COALESCE ( + + 22, 18 ) + + CAST( MIN( ALL - 18 ) AS SIGNED ) * + 31 THEN + 18 - - - 15 WHEN 66 * NULLIF ( COALESCE ( 12, - COUNT( * ) ), - + 80 ) THEN NULL ELSE 9 * - 93 END * - 94 AS col2
----
-78808

skipif mysql # not compatible
query I rowsort label-3838
SELECT - 68 + - + ( + 61 ) + - COUNT ( * ) + - CASE 95 WHEN - 24 / 32 + 23 / - ( - COUNT ( * ) ) THEN NULL WHEN - 91 + - COALESCE ( + + 22, 18 ) + + CAST ( MIN ( ALL - 18 ) AS INTEGER ) * + 31 THEN + 18 - - - 15 WHEN 66 * NULLIF ( COALESCE ( 12, - COUNT ( * ) ), - + 80 ) THEN NULL ELSE 9 * - 93 END * - 94 AS col2
----
-78808

query II rowsort
SELECT ALL - 29, + 55 col2
----
-29
55

query I rowsort
SELECT 90 * - 71 + - CASE + 49 WHEN + 32 * 53 THEN NULL ELSE 95 END
----
-6485

query II rowsort
SELECT 62 * + - ( - 88 ) * - 15 + - 90 - - 57 AS col0, - 74 col0
----
-81873
-74

query I rowsort
SELECT ALL - 79 * + + 62
----
-4898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT - COUNT( * ) + CASE - CAST( NULL AS SIGNED ) WHEN - SUM( DISTINCT - - 78 ) THEN + + 92 / + - 95 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT - COUNT ( * ) + CASE - CAST ( NULL AS INTEGER ) WHEN - SUM ( DISTINCT - - 78 ) THEN + + 92 / + - 95 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3844
SELECT + CASE COUNT( - 11 ) WHEN - 34 + + 92 * - NULLIF ( + 71, - CAST( NULL AS DECIMAL ) ) * 56 + + 21 THEN NULL WHEN + 7 THEN + 78 + - 99 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT + CASE COUNT ( - 11 ) WHEN - 34 + + 92 * - NULLIF ( + 71, - CAST ( NULL AS REAL ) ) * 56 + + 21 THEN NULL WHEN + 7 THEN + 78 + - 99 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT + NULLIF ( + COUNT( * ), - 52 ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) / + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3845
SELECT + NULLIF ( + COUNT ( * ), - 52 ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT ALL - + COUNT( * ) col1, 3 + + 6
----
-1
9

skipif mysql # not compatible
query II rowsort label-3846
SELECT ALL - + COUNT ( * ) col1, 3 + + 6
----
-1
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3847
SELECT ALL - 38 + + - CAST( + 93 AS SIGNED ) DIV - 70
----
-37

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - 38 + + - CAST ( + 93 AS INTEGER ) / - 70
----
-37

query I rowsort
SELECT DISTINCT 49 + + + 36 col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3849
SELECT ALL - 21, COUNT( * ) DIV - 6 + - CASE + + 40 WHEN + 9 * + + 29 + + ( + 38 ) THEN NULL ELSE COALESCE ( 80, 77 * 7 ) DIV + COALESCE ( MAX( ALL + - 74 ), CAST( + - 81 AS SIGNED ) * 73 * - 93 * - AVG ( + - 92 ), 35, - ( - + 17 ) DIV - 77 ) END + - 69 * + + COUNT( * ) * + 42 * + 47 AS col0
----
-21
-136205

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL - 21, COUNT ( * ) / - 6 + - CASE + + 40 WHEN + 9 * + + 29 + + ( + 38 ) THEN NULL ELSE COALESCE ( 80, 77 * 7 ) / + COALESCE ( MAX ( ALL + - 74 ), CAST ( + - 81 AS INTEGER ) * 73 * - 93 * - AVG ( + - 92 ), 35, - ( - + 17 ) / - 77 ) END + - 69 * + + COUNT ( * ) * + 42 * + 47 AS col0
----
-21
-136205

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT 62 + 43 * - COUNT( * ) * 21 AS col0
----
-841

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT 62 + 43 * - COUNT ( * ) * 21 AS col0
----
-841

query I rowsort
SELECT - 11 + - - 27
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT - 50 * COALESCE ( + COALESCE ( - - 17, + 2 - - 36 ), 11 + 10 + - - 60 + + COUNT( * ) * 69, - - 42 )
----
-850

skipif mysql # not compatible
query I rowsort label-3852
SELECT - 50 * COALESCE ( + COALESCE ( - - 17, + 2 - - 36 ), 11 + 10 + - - 60 + + COUNT ( * ) * 69, - - 42 )
----
-850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT ALL + - 93 / + + CASE - + 26 WHEN + 93 + - 87 THEN - CASE + 97 WHEN - 30 / COUNT( * ) THEN 64 WHEN - COALESCE ( + NULLIF ( + 56, + COUNT( * ) ), + 66 + + 98, 60 ) THEN NULL ELSE NULL END WHEN - + 21 - + CASE - + CASE 95 WHEN - 12 THEN NULL WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE - + 24 END WHEN - 34 - + COUNT( * ) THEN + + 25 WHEN + 75 THEN NULL END * - SUM( ALL 14 ) THEN + 19 / - SUM( DISTINCT 33 ) + - 88 / + 14 WHEN + COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL + - 93 / + + CASE - + 26 WHEN + 93 + - 87 THEN - CASE + 97 WHEN - 30 / COUNT ( * ) THEN 64 WHEN - COALESCE ( + NULLIF ( + 56, + COUNT ( * ) ), + 66 + + 98, 60 ) THEN NULL ELSE NULL END WHEN - + 21 - + CASE - + CASE 95 WHEN - 12 THEN NULL WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - + 24 END WHEN - 34 - + COUNT ( * ) THEN + + 25 WHEN + 75 THEN NULL END * - SUM ( ALL 14 ) THEN + 19 / - SUM ( DISTINCT 33 ) + - 88 / + 14 WHEN + COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT 35 DIV + - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT 35 / + - 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + 54 * - + 8 + + COUNT( * )
----
-431

skipif mysql # not compatible
query I rowsort label-3855
SELECT + 54 * - + 8 + + COUNT ( * )
----
-431

query I rowsort
SELECT ALL + 83 * + 54 col1
----
4482

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT DISTINCT - 38 + + COUNT( * ) + + + ( - + ( - 13 ) ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - 38 + + COUNT ( * ) + + + ( - + ( - 13 ) ) col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT COUNT( + 96 ) + - 99 + 0 + + 52 * + - COUNT( * ) AS col2
----
-150

skipif mysql # not compatible
query I rowsort label-3858
SELECT COUNT ( + 96 ) + - 99 + 0 + + 52 * + - COUNT ( * ) AS col2
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-3859
SELECT ALL + 74 - + 19 - - + 2 + - - 40 + + 33 DIV - 86 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL + 74 - + 19 - - + 2 + - - 40 + + 33 / - 86 AS col1
----
97

query I rowsort
SELECT ALL - 20 - + 15
----
-35

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

skipif mysql # not compatible
query I rowsort label-3861
SELECT 47 * + - COUNT ( * ) / - 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3862
SELECT DISTINCT MAX( DISTINCT + - 32 ), CAST( + + 28 AS SIGNED ) * - 64 + + 82 + 65 * ( + - 24 ) AS col2
----
-32
-3270

skipif mysql # not compatible
query II rowsort label-3862
SELECT DISTINCT MAX ( DISTINCT + - 32 ), CAST ( + + 28 AS INTEGER ) * - 64 + + 82 + 65 * ( + - 24 ) AS col2
----
-32
-3270

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT ALL MAX( DISTINCT 68 ) AS col2, - 97
----
68
-97

skipif mysql # not compatible
query II rowsort label-3863
SELECT ALL MAX ( DISTINCT 68 ) AS col2, - 97
----
68
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL MIN( - 7 ) * - - 24 + 49 * + COUNT( * ) * 53
----
2429

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL MIN ( - 7 ) * - - 24 + 49 * + COUNT ( * ) * 53
----
2429

query I rowsort
SELECT - ( - 26 ) + - 2 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL MAX( DISTINCT 23 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL MAX ( DISTINCT 23 ) col0
----
23

query I rowsort
SELECT DISTINCT + 53 * + + 52 + + 77 AS col2
----
2833

query I rowsort
SELECT DISTINCT + 42 * + + 87
----
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT + - ( + - COUNT( DISTINCT 30 ) ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3869
SELECT + - ( + - COUNT ( DISTINCT 30 ) ) + + COUNT ( * )
----
2

query II rowsort
SELECT + + 70 * - - 93 AS col1, - 45
----
6510
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3871
SELECT - 54 * + CAST( - COUNT( ALL 8 ) AS SIGNED ) * + 65 * + - 25 + MIN( DISTINCT 67 ) + CASE + 83 WHEN 5 THEN - MAX( + 55 ) DIV - 86 DIV - + 3 + + 19 + - 89 - - CAST( - SUM( 12 ) AS SIGNED ) + - 82 * - 81 ELSE + 12 END
----
-87671

skipif mysql # not compatible
query I rowsort label-3871
SELECT - 54 * + CAST ( - COUNT ( ALL 8 ) AS INTEGER ) * + 65 * + - 25 + MIN ( DISTINCT 67 ) + CASE + 83 WHEN 5 THEN - MAX ( + 55 ) / - 86 / - + 3 + + 19 + - 89 - - CAST ( - SUM ( 12 ) AS INTEGER ) + - 82 * - 81 ELSE + 12 END
----
-87671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT ALL - ( + + 16 ) * + COUNT( * ) + 48 + - + 5 DIV - 9 * 98 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL - ( + + 16 ) * + COUNT ( * ) + 48 + - + 5 / - 9 * 98 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT - + 27 * + - 68 * + 98 + + - SUM( DISTINCT - 40 ) col0
----
179968

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT - + 27 * + - 68 * + 98 + + - SUM ( DISTINCT - 40 ) col0
----
179968

query I rowsort
SELECT ALL + - 61 * + + 93 * + 84 + 71
----
-476461

query I rowsort
SELECT + 68 * + 91 AS col2
----
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3876
SELECT ALL 38 DIV + 98 + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL 38 / + 98 + 16 AS col2
----
16

query I rowsort
SELECT ALL 83 * - 53 + + NULLIF ( - - 24, - 76 ) + + 0
----
-4375

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT + 81 * + MIN( DISTINCT - - 2 ) + + - 77 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3878
SELECT + 81 * + MIN ( DISTINCT - - 2 ) + + - 77 AS col0
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT 56 DIV - - 48 + + + 85
----
86

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT 56 / - - 48 + + + 85
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3880
SELECT DISTINCT + - 7 * + - CAST( NULL AS DECIMAL ) + - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + - 7 * + - CAST ( NULL AS REAL ) + - 69 AS col1
----
NULL

query I rowsort
SELECT ALL + 80 * - 47 + - 43 * + - 35 * + 64
----
92560

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT + 63 - + MIN( DISTINCT - + 32 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3882
SELECT + 63 - + MIN ( DISTINCT - + 32 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + 25 * 30 - 49 + + NULLIF ( - - COUNT( * ), 22 ) * - 63
----
638

skipif mysql # not compatible
query I rowsort label-3883
SELECT + 25 * 30 - 49 + + NULLIF ( - - COUNT ( * ), 22 ) * - 63
----
638

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3884
SELECT ALL COUNT( * ) * + 73 * - - 63 - - - 39 + 87 + - 38 * + 11 * - + COUNT( DISTINCT CAST( 6 AS DECIMAL ) ) * - MAX( DISTINCT 30 ) * + 15 - - 56 * + 17 - - 10 * + - 28 * + 13
----
-186141

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL COUNT ( * ) * + 73 * - - 63 - - - 39 + 87 + - 38 * + 11 * - + COUNT ( DISTINCT CAST ( 6 AS REAL ) ) * - MAX ( DISTINCT 30 ) * + 15 - - 56 * + 17 - - 10 * + - 28 * + 13
----
-186141

query I rowsort
SELECT + 27 + + + 78 * - 75 - 4 AS col0
----
-5827

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT MIN( ALL + + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-3886
SELECT MIN ( ALL + + 6 )
----
6

query I rowsort
SELECT + ( + - 61 ) + 18 AS col0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT - 9 DIV + + 50 * 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3888
SELECT - 9 / + + 50 * 27 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + 21 * 51 * COUNT( * )
----
1071

skipif mysql # not compatible
query I rowsort label-3889
SELECT + 21 * 51 * COUNT ( * )
----
1071

query I rowsort
SELECT ALL - 43 * - 11
----
473

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3891
SELECT ALL CASE ( CAST( - - 29 AS SIGNED ) ) WHEN + 83 THEN + - 71 + - 15 - + 9 END AS col0, - 62 AS col2
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-3891
SELECT ALL CASE ( CAST ( - - 29 AS INTEGER ) ) WHEN + 83 THEN + - 71 + - 15 - + 9 END AS col0, - 62 AS col2
----
NULL
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT - 34 * - ( - CASE - COALESCE ( COUNT( * ), COUNT( * ), 94 / 95 ) WHEN 4 THEN + - 97 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT - 34 * - ( - CASE - COALESCE ( COUNT ( * ), COUNT ( * ), 94 / 95 ) WHEN 4 THEN + - 97 END ) AS col0
----
NULL

query I rowsort
SELECT ALL ( - ( 41 ) ) AS col0
----
-41

query II rowsort
SELECT - 14 col1, 83
----
-14
83

query I rowsort
SELECT ALL - 44 * - - 36 AS col1
----
-1584

query I rowsort
SELECT ALL + 89 * 87 * + 4
----
30972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3897
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, COUNT( * ) + + COUNT( * ) * + 73 * CASE 26 WHEN - + 91 THEN + 24 * - - COUNT( * ) * + 85 - - - COUNT( * ) * - - 55 WHEN - + 17 THEN + 90 ELSE ( 62 ) * + COUNT( * ) * - - 73 + 94 / + CAST( NULL AS DECIMAL ) + + 77 - - ( 89 ) * - 20 * - 99 * - + 26 + 9 + - + 67 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3897
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + + COUNT ( * ) * + 73 * CASE 26 WHEN - + 91 THEN + 24 * - - COUNT ( * ) * + 85 - - - COUNT ( * ) * - - 55 WHEN - + 17 THEN + 90 ELSE ( 62 ) * + COUNT ( * ) * - - 73 + 94 / + CAST ( NULL AS REAL ) + + 77 - - ( 89 ) * - 20 * - 99 * - + 26 + 9 + - + 67 END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT DISTINCT + + 69 * + COUNT( ALL 79 ), + NULLIF ( - 77, MIN( DISTINCT 29 ) ) AS col2
----
69
-77

skipif mysql # not compatible
query II rowsort label-3898
SELECT DISTINCT + + 69 * + COUNT ( ALL 79 ), + NULLIF ( - 77, MIN ( DISTINCT 29 ) ) AS col2
----
69
-77

query I rowsort
SELECT - - COALESCE ( + 14, + + ( 56 ) ) + + + 51 - - 65
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3900
SELECT - - ( - 7 ) - - CAST( NULL AS SIGNED ) AS col0, 58 - + 68 AS col0
----
NULL
-10

skipif mysql # not compatible
query II rowsort label-3900
SELECT - - ( - 7 ) - - CAST ( NULL AS INTEGER ) AS col0, 58 - + 68 AS col0
----
NULL
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - - 85 * - CASE WHEN ( + + 25 IS NOT NULL ) THEN - COUNT( * ) * + 62 + - ( - 16 ) * + COUNT( * ) END
----
3910

skipif mysql # not compatible
query I rowsort label-3901
SELECT - - 85 * - CASE WHEN ( + + 25 IS NOT NULL ) THEN - COUNT ( * ) * + 62 + - ( - 16 ) * + COUNT ( * ) END
----
3910

query I rowsort
SELECT ALL + + 19 + - 57 - + 52
----
-90

query I rowsort
SELECT - + 74 + 45 AS col2
----
-29

query II rowsort
SELECT - 78, 50 + + - 73 AS col2
----
-78
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3905
SELECT ALL 89 AS col2, 95 - - 92 + + + CAST( + + ( - 85 ) AS SIGNED )
----
89
102

skipif mysql # not compatible
query II rowsort label-3905
SELECT ALL 89 AS col2, 95 - - 92 + + + CAST ( + + ( - 85 ) AS INTEGER )
----
89
102

query I rowsort
SELECT - - 99 + - 0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3907
SELECT 10, CAST( NULL AS SIGNED ) AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-3907
SELECT 10, CAST ( NULL AS INTEGER ) AS col1
----
10
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT ALL - 88 + - - 51 + - CASE + COUNT( + 14 ) WHEN + + 30 / - 62 * + 32 + - 81 THEN + CAST( NULL AS SIGNED ) - + 56 + + 32 / + + 63 WHEN 16 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - 88 + - - 51 + - CASE + COUNT ( + 14 ) WHEN + + 30 / - 62 * + 32 + - 81 THEN + CAST ( NULL AS INTEGER ) - + 56 + + 32 / + + 63 WHEN 16 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - ( + - 6 ) + - 83 * - 12 + - 61
----
941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3910
SELECT ALL + - 27 + - ( - - COUNT( * ) ) AS col2, - 66 + - + CAST( NULL AS SIGNED )
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-3910
SELECT ALL + - 27 + - ( - - COUNT ( * ) ) AS col2, - 66 + - + CAST ( NULL AS INTEGER )
----
-28
NULL

query I rowsort
SELECT DISTINCT - + 64 + - 59 AS col2
----
-123

query I rowsort
SELECT ALL 83 + + 63
----
146

query I rowsort
SELECT ALL - - 14 + - - 37 AS col0
----
51

query I rowsort
SELECT + - 58 + - 90 AS col1
----
-148

query I rowsort
SELECT ALL - 47 * - 4 + - - 66
----
254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3916
SELECT ALL - COUNT( * ) DIV + + NULLIF ( + + 30, MIN( 0 ) DIV COUNT( * ) * - 76 ) + + COUNT( * ) + - 77 + + 31 + + - 17 + + ( - CAST( + - 55 AS SIGNED ) ) * 35 * 9 + + COUNT( * )
----
17264

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL - COUNT ( * ) / + + NULLIF ( + + 30, MIN ( 0 ) / COUNT ( * ) * - 76 ) + + COUNT ( * ) + - 77 + + 31 + + - 17 + + ( - CAST ( + - 55 AS INTEGER ) ) * 35 * 9 + + COUNT ( * )
----
17264

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL - COUNT( * ) * - - CASE + 80 WHEN 9 * 92 THEN NULL WHEN - 73 THEN + 58 ELSE COUNT( * ) * - 64 + - COUNT( * ) + + 80 + - + MIN( ALL + 58 ) END + - + 51
----
-8

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL - COUNT ( * ) * - - CASE + 80 WHEN 9 * 92 THEN NULL WHEN - 73 THEN + 58 ELSE COUNT ( * ) * - 64 + - COUNT ( * ) + + 80 + - + MIN ( ALL + 58 ) END + - + 51
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL + - COUNT( 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL + - COUNT ( 97 )
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT ALL 39 DIV - 19 + + ( 76 )
----
74

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 39 / - 19 + + ( 76 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3922
SELECT DISTINCT - MIN( + 27 ) DIV + 11 - - - 11 col2
----
-13

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT - MIN ( + 27 ) / + 11 - - - 11 col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT ALL 99 DIV 2 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL 99 / 2 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT 2 * + 22 - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT 2 * + 22 - + COUNT ( * )
----
43

query I rowsort
SELECT + 40 + + - ( 88 ) + - 3 * - - 52
----
-204

query I rowsort
SELECT ALL 51 * 81 * 34 AS col1
----
140454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT + 57 * + CAST( - - 57 AS SIGNED ) col0
----
3249

skipif mysql # not compatible
query I rowsort label-3927
SELECT + 57 * + CAST ( - - 57 AS INTEGER ) col0
----
3249

onlyif mysql # DIV for integer division: 
query II rowsort label-3928
SELECT ALL + 15, 91 DIV + 59 AS col0
----
15
1

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL + 15, 91 / + 59 AS col0
----
15
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3929
SELECT + COALESCE ( - - 4, - 39, - - CAST( NULL AS SIGNED ) * ( + + COALESCE ( - 56, - CAST( NULL AS SIGNED ) + - 54, + - MAX( ALL + 15 ) * - ( - 4 ) * + 28 * - + 74 ) ) * 36 * 12 ) * ( - + 98 ) DIV + - 67 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3929
SELECT + COALESCE ( - - 4, - 39, - - CAST ( NULL AS INTEGER ) * ( + + COALESCE ( - 56, - CAST ( NULL AS INTEGER ) + - 54, + - MAX ( ALL + 15 ) * - ( - 4 ) * + 28 * - + 74 ) ) * 36 * 12 ) * ( - + 98 ) / + - 67 AS col2
----
5

query II rowsort
SELECT 57 * + ( - 29 ) + - 20 * + 31 + + 63, 89 + + 2 AS col0
----
-2210
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3931
SELECT - 86 + + CAST( 46 AS SIGNED ) + + + 20 DIV 9 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 86 + + CAST ( 46 AS INTEGER ) + + + 20 / 9 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL MIN( 29 ) * - 56 AS col2
----
-1624

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL MIN ( 29 ) * - 56 AS col2
----
-1624

query I rowsort
SELECT + 97 * + 85 * 67 col2
----
552415

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3934
SELECT ALL 3 * - + CASE WHEN 34 <= NULL THEN NULL ELSE + COUNT( * ) DIV - 30 + + 49 END AS col1, COUNT( * ) + + - 1
----
-147
0

skipif mysql # not compatible
query II rowsort label-3934
SELECT ALL 3 * - + CASE WHEN 34 <= NULL THEN NULL ELSE + COUNT ( * ) / - 30 + + 49 END AS col1, COUNT ( * ) + + - 1
----
-147
0

query I rowsort
SELECT DISTINCT 21 * + 80
----
1680

query I rowsort
SELECT 1 + - - 6 + - 9 * 46
----
-407

query II rowsort
SELECT 69 AS col1, 13 - - + 85 + - - 73 - - + 12 AS col0
----
69
183

query II rowsort
SELECT 4 AS col0, 31 - 65
----
4
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL COUNT( * ) + + 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL COUNT ( * ) + + 44 AS col0
----
45

query I rowsort
SELECT - 87 * 70 AS col0
----
-6090

query II rowsort
SELECT ALL 62 AS col2, + 86
----
62
86

query I rowsort
SELECT ALL - 59 * 97 col0
----
-5723

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT NULLIF ( - COUNT( * ), 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-3943
SELECT NULLIF ( - COUNT ( * ), 19 )
----
-1

query I rowsort
SELECT ALL 84 + 97 * - 5
----
-401

query I rowsort
SELECT ALL - 42 + 16 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + NULLIF ( 18, + - 9 * 6 + - MIN( 16 ) ) * 79 + - 23
----
1399

skipif mysql # not compatible
query I rowsort label-3946
SELECT + NULLIF ( 18, + - 9 * 6 + - MIN ( 16 ) ) * 79 + - 23
----
1399

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT + COUNT( * ) / + - ( - + 52 ) + - 46 + - CASE + + 93 WHEN 58 THEN - - 85 + - + 8 ELSE NULL END * 43 + + 60 - + + NULLIF ( COALESCE ( CASE - 67 WHEN - 86 - COALESCE ( + 2, 94 / - 60 + + 15 ) THEN + 73 * - - ( + CASE + ( 2 ) WHEN - 78 THEN - - 40 END ) ELSE NULL END, - - COUNT( * ) + 87 + - + CASE ( 83 ) WHEN + ( - AVG ( ALL 28 ) ) * + 63 THEN NULL WHEN 27 * + 90 THEN + 47 ELSE 61 END - + NULLIF ( ( SUM( 51 ) ), 28 ) ), - MIN( ALL 55 ) ) * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT + COUNT ( * ) / + - ( - + 52 ) + - 46 + - CASE + + 93 WHEN 58 THEN - - 85 + - + 8 ELSE NULL END * 43 + + 60 - + + NULLIF ( COALESCE ( CASE - 67 WHEN - 86 - COALESCE ( + 2, 94 / - 60 + + 15 ) THEN + 73 * - - ( + CASE + ( 2 ) WHEN - 78 THEN - - 40 END ) ELSE NULL END, - - COUNT ( * ) + 87 + - + CASE ( 83 ) WHEN + ( - AVG ( ALL 28 ) ) * + 63 THEN NULL WHEN 27 * + 90 THEN + 47 ELSE 61 END - + NULLIF ( ( SUM ( 51 ) ), 28 ) ), - MIN ( ALL 55 ) ) * + 9 AS col0
----
NULL

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

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

query II rowsort
SELECT DISTINCT + - 49 * 45 * - 64 * ( + 58 ) * - 91 AS col0, 17 + - ( - - ( + 85 ) ) AS col1
----
-744831360
-68

query I rowsort
SELECT ALL - + ( 29 ) + - 19
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT 17 * + + 21 + + COALESCE ( + - COUNT( * ), + ( - 18 ) * MAX( DISTINCT - - 68 ) ) + + 90 * - ( - - SUM( - 92 ) ) * 98
----
811796

skipif mysql # not compatible
query I rowsort label-3951
SELECT 17 * + + 21 + + COALESCE ( + - COUNT ( * ), + ( - 18 ) * MAX ( DISTINCT - - 68 ) ) + + 90 * - ( - - SUM ( - 92 ) ) * 98
----
811796

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT ALL + 7 + + 1 DIV + 19 * 26 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + 7 + + 1 / + 19 * 26 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT - 3 * + CAST( - 84 AS SIGNED ) AS col0
----
252

skipif mysql # not compatible
query I rowsort label-3953
SELECT - 3 * + CAST ( - 84 AS INTEGER ) AS col0
----
252

query II rowsort
SELECT - 41 col2, 26 AS col0
----
-41
26

query I rowsort
SELECT 55 * + 35
----
1925

query I rowsort
SELECT + 39 * + 74
----
2886

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3957
SELECT ALL - 45 AS col2, CAST( - - 36 AS SIGNED ) AS col0
----
-45
36

skipif mysql # not compatible
query II rowsort label-3957
SELECT ALL - 45 AS col2, CAST ( - - 36 AS INTEGER ) AS col0
----
-45
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3958
SELECT ALL - + 22 col1, - COUNT( * ) + + 53 + - CAST( 2 AS SIGNED ) * + 74 AS col2
----
-22
-96

skipif mysql # not compatible
query II rowsort label-3958
SELECT ALL - + 22 col1, - COUNT ( * ) + + 53 + - CAST ( 2 AS INTEGER ) * + 74 AS col2
----
-22
-96

query I rowsort
SELECT DISTINCT 17 - - + 1 AS col1
----
18

onlyif mysql # DIV for integer division: 
query III rowsort label-3960
SELECT ALL 75 * + + 86 AS col2, 80 AS col1, - 26 DIV - NULLIF ( ( + 13 ), + 3 * - 8 * + 76 * - 26 * - 48 ) * 1 + - 66 + 13 AS col1
----
6450
80
-51

skipif mysql # not compatible
query III rowsort label-3960
SELECT ALL 75 * + + 86 AS col2, 80 AS col1, - 26 / - NULLIF ( ( + 13 ), + 3 * - 8 * + 76 * - 26 * - 48 ) * 1 + - 66 + 13 AS col1
----
6450
80
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT DISTINCT - 79 * + 46 AS col0, - 54 * - COUNT( * ) AS col0
----
-3634
54

skipif mysql # not compatible
query II rowsort label-3961
SELECT DISTINCT - 79 * + 46 AS col0, - 54 * - COUNT ( * ) AS col0
----
-3634
54

query I rowsort
SELECT ALL - ( + 89 ) col0
----
-89

query I rowsort
SELECT 51 + 78 AS col2
----
129

query I rowsort
SELECT 86 * 46 * + 26
----
102856

query I rowsort
SELECT 57 * 13 AS col2
----
741

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

skipif mysql # not compatible
query I rowsort label-3966
SELECT + 17 * - COUNT ( * ) + + 69 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT MIN( DISTINCT - - 64 ) - + - COUNT( * ) + + 86 * + 54 + COUNT( * ) col0
----
4710

skipif mysql # not compatible
query I rowsort label-3967
SELECT MIN ( DISTINCT - - 64 ) - + - COUNT ( * ) + + 86 * + 54 + COUNT ( * ) col0
----
4710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), + + 22 + + 31 * - + 97 )
----
2985

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), + + 22 + + 31 * - + 97 )
----
2985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL COUNT( ALL - + CAST( + 26 AS SIGNED ) ) * - - 13 * + + 18 AS col1
----
234

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL COUNT ( ALL - + CAST ( + 26 AS INTEGER ) ) * - - 13 * + + 18 AS col1
----
234

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3970
SELECT COUNT( * ) DIV + - 98 AS col1, - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-3970
SELECT COUNT ( * ) / + - 98 AS col1, - COUNT ( * ) AS col1
----
0
-1

query I rowsort
SELECT 11 * 5 AS col1
----
55

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

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

query I rowsort
SELECT + 54 * - - 26 AS col0
----
1404

query II rowsort
SELECT ALL - 71 + + 89 AS col2, 94
----
18
94

query II rowsort
SELECT 62 - 1 AS col2, 49 AS col1
----
61
49

query I rowsort
SELECT ALL - 2 * - NULLIF ( + 76, 79 ) * + + 39
----
5928

query I rowsort
SELECT - 21 * - + ( 63 ) AS col0
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL 4 + CASE + 4 WHEN + + 31 * + COUNT( * ) + + 5 THEN - COALESCE ( - 45, + + 77 - + NULLIF ( + - SUM( ALL NULLIF ( + 7, - 9 / - 77 + - NULLIF ( + + 33, - - 74 / - + 37 * + 90 * 89 * 23 ) ) ), - - 24 * + 63 + + 61 ), + CASE COUNT( * ) WHEN - 48 / + 50 THEN NULL WHEN - + 64 - 58 + + 63 * 46 THEN 6 ELSE - 38 END ) - 7 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL 4 + CASE + 4 WHEN + + 31 * + COUNT ( * ) + + 5 THEN - COALESCE ( - 45, + + 77 - + NULLIF ( + - SUM ( ALL NULLIF ( + 7, - 9 / - 77 + - NULLIF ( + + 33, - - 74 / - + 37 * + 90 * 89 * 23 ) ) ), - - 24 * + 63 + + 61 ), + CASE COUNT ( * ) WHEN - 48 / + 50 THEN NULL WHEN - + 64 - 58 + + 63 * 46 THEN 6 ELSE - 38 END ) - 7 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 20, - COALESCE ( 46, - 93 ) ) - - 23
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT ALL 45 DIV + - 97
----
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL 45 / + - 97
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT + COUNT( * ) + + COUNT( * ) * + - 23 + - + 9 + - 62 + 31
----
-62

skipif mysql # not compatible
query I rowsort label-3983
SELECT + COUNT ( * ) + + COUNT ( * ) * + - 23 + - + 9 + - 62 + 31
----
-62

query I rowsort
SELECT ALL + 26 * + 61 - COALESCE ( + - 65, 80 * + - 8 )
----
1651

onlyif mysql # aggregate syntax: 
query II rowsort label-3985
SELECT DISTINCT - MAX( ALL + - 85 ) AS col2, 73 AS col0
----
85
73

skipif mysql # not compatible
query II rowsort label-3985
SELECT DISTINCT - MAX ( ALL + - 85 ) AS col2, 73 AS col0
----
85
73

query I rowsort
SELECT DISTINCT + 93 * + 90 AS col0
----
8370

query I rowsort
SELECT ALL 46 * - + NULLIF ( - 34, + 78 ) AS col1
----
1564

query I rowsort
SELECT 41 * + 49 AS col0
----
2009

query I rowsort
SELECT 77 * - - 32 * + 35 * 94 col1
----
8106560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3990
SELECT 86 DIV - NULLIF ( 82, - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3990
SELECT 86 / - NULLIF ( 82, - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL - NULLIF ( 79, - + MAX( + COALESCE ( + + 57, + 79 * 31 ) ) )
----
-79

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL - NULLIF ( 79, - + MAX ( + COALESCE ( + + 57, + 79 * 31 ) ) )
----
-79

query II rowsort
SELECT ALL - 31, - 90 + ( + ( + 5 ) ) AS col2
----
-31
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3993
SELECT 66 * CASE - - 27 WHEN 82 THEN - - 83 + - 59 + + - ( + - NULLIF ( - 58, ( + 84 ) ) ) * - + 22 - - 35 ELSE + 85 DIV - - COALESCE ( + - 61, + 40 ) + - COUNT( * ) + NULLIF ( + 97, - - COUNT( * ) + + - 52 ) END
----
6270

skipif mysql # not compatible
query I rowsort label-3993
SELECT 66 * CASE - - 27 WHEN 82 THEN - - 83 + - 59 + + - ( + - NULLIF ( - 58, ( + 84 ) ) ) * - + 22 - - 35 ELSE + 85 / - - COALESCE ( + - 61, + 40 ) + - COUNT ( * ) + NULLIF ( + 97, - - COUNT ( * ) + + - 52 ) END
----
6270

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3995
SELECT COUNT( * ) col1, - 41 - + NULLIF ( - + ( + - 53 ), + + 89 ) DIV + COALESCE ( + 46, 43 * COUNT( * ) + COUNT( * ), MAX( DISTINCT + ( + 15 ) ) - + - 37 DIV CASE - 27 WHEN + + 74 + - COUNT( * ) THEN + 78 WHEN + - COUNT( * ) THEN 8 END * - - 64 - + - 93 ) AS col1
----
1
-42

skipif mysql # not compatible
query II rowsort label-3995
SELECT COUNT ( * ) col1, - 41 - + NULLIF ( - + ( + - 53 ), + + 89 ) / + COALESCE ( + 46, 43 * COUNT ( * ) + COUNT ( * ), MAX ( DISTINCT + ( + 15 ) ) - + - 37 / CASE - 27 WHEN + + 74 + - COUNT ( * ) THEN + 78 WHEN + - COUNT ( * ) THEN 8 END * - - 64 - + - 93 ) AS col1
----
1
-42

query I rowsort
SELECT DISTINCT 75 * - 94 + + + 98 * + - 48
----
-11754

query I rowsort
SELECT DISTINCT - 17 * 47 + + 77 AS col0
----
-722

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

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

query I rowsort
SELECT - ( - + 40 ) * 24 * - 51
----
-48960

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT + 14 DIV + 56 * + - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4000
SELECT + 14 / + 56 * + - 54 AS col0
----
0

query I rowsort
SELECT ALL + 86 + 57
----
143

query I rowsort
SELECT DISTINCT + 13 * + 4 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT ALL NULLIF ( - CAST( 81 AS SIGNED ), + 57 ) + ( CAST( NULL AS SIGNED ) ) / + NULLIF ( 68, - NULLIF ( - 63, 53 ) ) * - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL NULLIF ( - CAST ( 81 AS INTEGER ), + 57 ) + ( CAST ( NULL AS INTEGER ) ) / + NULLIF ( 68, - NULLIF ( - 63, 53 ) ) * - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4004
SELECT - 91 + COUNT( DISTINCT + NULLIF ( - + 80, + 31 ) ) DIV 86 DIV - CAST( - + COALESCE ( + - 90, + 24 DIV - + CASE + 4 WHEN 87 THEN + - CAST( + COUNT( * ) AS DECIMAL ) * + 63 ELSE - - 7 + + + 55 END * + 33, + + 12 ) AS SIGNED ) + + + 22 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4004
SELECT - 91 + COUNT ( DISTINCT + NULLIF ( - + 80, + 31 ) ) / 86 / - CAST ( - + COALESCE ( + - 90, + 24 / - + CASE + 4 WHEN 87 THEN + - CAST ( + COUNT ( * ) AS REAL ) * + 63 ELSE - - 7 + + + 55 END * + 33, + + 12 ) AS INTEGER ) + + + 22 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT ALL + 90 AS col1, + 6 * + + SUM( 91 ) AS col1
----
90
546

skipif mysql # not compatible
query II rowsort label-4005
SELECT ALL + 90 AS col1, + 6 * + + SUM ( 91 ) AS col1
----
90
546

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

query II rowsort
SELECT ALL 58 AS col0, 78 * - 82 AS col1
----
58
-6396

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - + COUNT( * ) - 50 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - + COUNT ( * ) - 50 AS col0
----
-51

query I rowsort
SELECT - + 34 * - 75
----
2550

onlyif mysql # aggregate syntax: 
query II rowsort label-4010
SELECT 66, 89 * - 97 * + MAX( + + 30 ) AS col2
----
66
-258990

skipif mysql # not compatible
query II rowsort label-4010
SELECT 66, 89 * - 97 * + MAX ( + + 30 ) AS col2
----
66
-258990

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT + + 54 + SUM( DISTINCT 23 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4011
SELECT + + 54 + SUM ( DISTINCT 23 ) AS col2
----
77

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

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT + 49 * + COUNT ( * ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4013
SELECT + - 79 + + NULLIF ( - COUNT( * ), + 50 ) + 34 + 47 + + CAST( - 50 AS SIGNED ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-4013
SELECT + - 79 + + NULLIF ( - COUNT ( * ), + 50 ) + 34 + 47 + + CAST ( - 50 AS INTEGER ) col2
----
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-4014
SELECT + + ( + CASE WHEN NOT ( NULL ) IS NOT NULL THEN + - 72 ELSE + - 72 END ) + + + 71 DIV - 22 + - - 81 AS col2, 63
----
6
63

skipif mysql # not compatible
query II rowsort label-4014
SELECT + + ( + CASE WHEN NOT ( NULL ) IS NOT NULL THEN + - 72 ELSE + - 72 END ) + + + 71 / - 22 + - - 81 AS col2, 63
----
6
63

query I rowsort
SELECT ALL 51 * - 0 AS col1
----
0

query I rowsort
SELECT DISTINCT + 97 * + + 32
----
3104

onlyif mysql # aggregate syntax: 
query II rowsort label-4017
SELECT - COUNT( * ), - 92 * + 72 - + MAX( ALL - 6 ) AS col2
----
-1
-6618

skipif mysql # not compatible
query II rowsort label-4017
SELECT - COUNT ( * ), - 92 * + 72 - + MAX ( ALL - 6 ) AS col2
----
-1
-6618

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

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

query I rowsort
SELECT + - 58 - - 30
----
-28

query II rowsort
SELECT - 77 col1, 49 + 98
----
-77
147

query I rowsort
SELECT + ( - - 48 ) * 72
----
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4022
SELECT + COALESCE ( + COUNT( + + 13 ), + 17 * 31, + + 92 ) * + COALESCE ( + + 50, + 86 * + COUNT( * ) + 29 ) * - + COALESCE ( CAST( + + 1 AS SIGNED ), + 11 ) + + 94 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4022
SELECT + COALESCE ( + COUNT ( + + 13 ), + 17 * 31, + + 92 ) * + COALESCE ( + + 50, + 86 * + COUNT ( * ) + 29 ) * - + COALESCE ( CAST ( + + 1 AS INTEGER ), + 11 ) + + 94 AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT + COALESCE ( 39, + 27 * NULLIF ( 71, + 89 + - - 48 ), - 56 + - 94 - - AVG ( ALL + 60 ) + 86 ) / + + 30 * + - ( + 69 ) + 28 + + 5 + 64 + + - 56 * CAST( NULL AS SIGNED ) * + + COUNT( - 59 ) * - 6 * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT + COALESCE ( 39, + 27 * NULLIF ( 71, + 89 + - - 48 ), - 56 + - 94 - - AVG ( ALL + 60 ) + 86 ) / + + 30 * + - ( + 69 ) + 28 + + 5 + 64 + + - 56 * CAST ( NULL AS INTEGER ) * + + COUNT ( - 59 ) * - 6 * - 65
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT DISTINCT 71 DIV - 48 + - 63
----
-64

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT 71 / - 48 + - 63
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL + SUM( + + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + SUM ( + + 66 )
----
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT SUM( - 38 ) * - 53 + COALESCE ( - 10, 42 DIV 51, - 5 ) AS col1
----
2004

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT SUM ( - 38 ) * - 53 + COALESCE ( - 10, 42 / 51, - 5 ) AS col1
----
2004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4029
SELECT + CAST( NULL AS SIGNED ) * - 10 * - 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT + CAST ( NULL AS INTEGER ) * - 10 * - 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + COALESCE ( - ( - COUNT( * ) ), + - 53, - + ( 88 ) ) + 1 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4030
SELECT + COALESCE ( - ( - COUNT ( * ) ), + - 53, - + ( 88 ) ) + 1 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL + MAX( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + MAX ( - 70 )
----
-70

query I rowsort
SELECT ( - - 57 ) AS col0
----
57

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

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

query I rowsort
SELECT DISTINCT - 63 * - 0 + + 12
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT ALL + 80 * 11 + + 90 + + + ( + - 74 ) * - + 36 + - - COUNT( * ) + - COUNT( * ) + + 80 * 94 * 56 + - 10 - 53 DIV + 33
----
424743

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL + 80 * 11 + + 90 + + + ( + - 74 ) * - + 36 + - - COUNT ( * ) + - COUNT ( * ) + + 80 * 94 * 56 + - 10 - 53 / + 33
----
424743

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT ALL + 30 * - 66 + + + 32 DIV 76 + + COUNT( * ) AS col0
----
-1979

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + 30 * - 66 + + + 32 / 76 + + COUNT ( * ) AS col0
----
-1979

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT NULLIF ( - COUNT( * ), + 97 + - - 62 * - 37 * + COALESCE ( 21, + MIN( DISTINCT NULLIF ( 17, 12 ) ), - + 9 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4037
SELECT NULLIF ( - COUNT ( * ), + 97 + - - 62 * - 37 * + COALESCE ( 21, + MIN ( DISTINCT NULLIF ( 17, 12 ) ), - + 9 ) )
----
-1

query I rowsort
SELECT DISTINCT + - 53 * + - 27 * - 26 + + 24 - - 31
----
-37151

query II rowsort
SELECT ALL + 80 * - ( 71 ) + - - 81 AS col1, + 8 AS col2
----
-5599
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT DISTINCT + + NULLIF ( - 40, - + COALESCE ( - - 75, + COUNT( * ) ) * + - COUNT( * ) * 84 ) * 53 col2
----
-2120

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT + + NULLIF ( - 40, - + COALESCE ( - - 75, + COUNT ( * ) ) * + - COUNT ( * ) * 84 ) * 53 col2
----
-2120

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

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

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

skipif mysql # not compatible
query I rowsort label-4042
SELECT - CAST ( NULL AS INTEGER ) - - - SUM ( 80 ) AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT + + 98 * 92 * + + 9 AS col1
----
81144

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT ALL - - 0 DIV - + 87 * + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - - 0 / - + 87 * + 61 AS col1
----
0

query I rowsort
SELECT + NULLIF ( + 81, - 29 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT DISTINCT - 76 DIV - + 89 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - 76 / - + 89 + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - + 12 + - MIN( - 20 )
----
8

skipif mysql # not compatible
query I rowsort label-4049
SELECT - + 12 + - MIN ( - 20 )
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4050
SELECT + + NULLIF ( + 31, - + CAST( NULL AS SIGNED ) ) DIV 19 + + 14
----
15

skipif mysql # not compatible
query I rowsort label-4050
SELECT + + NULLIF ( + 31, - + CAST ( NULL AS INTEGER ) ) / 19 + + 14
----
15

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

skipif mysql # not compatible
query I rowsort label-4051
SELECT - - ( - COUNT ( * ) ) + ( - + 74 ) AS col1
----
-75

query I rowsort
SELECT + 68 - + - 98 + - + 79 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4053
SELECT ALL - 2 + 50 - ( - 43 ) * - + 51 + + + CASE - + CASE - MAX( ALL + 5 ) WHEN + + 45 * 50 THEN - CAST( NULL AS DECIMAL ) END WHEN COUNT( * ) THEN NULL WHEN 25 THEN - 87 * + 46 / 88 - CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - 2 + 50 - ( - 43 ) * - + 51 + + + CASE - + CASE - MAX ( ALL + 5 ) WHEN + + 45 * 50 THEN - CAST ( NULL AS REAL ) END WHEN COUNT ( * ) THEN NULL WHEN 25 THEN - 87 * + 46 / 88 - CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT 86 + - COUNT( * ) + - + 56 * 90 * + - 54
----
272245

skipif mysql # not compatible
query I rowsort label-4054
SELECT 86 + - COUNT ( * ) + - + 56 * 90 * + - 54
----
272245

query I rowsort
SELECT ALL NULLIF ( 99, + 84 ) + + 37 AS col0
----
136

query I rowsort
SELECT 3 * - 44 + - - 20 * - 20 + + 47 AS col0
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL 33 + COUNT( * ) * 36
----
69

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL 33 + COUNT ( * ) * 36
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT CASE 19 WHEN + - 19 * + 70 + + 58 * + 92 / COUNT( ALL 16 ) * 1 * - 13 + - 99 - - ( + NULLIF ( - + NULLIF ( 99, + 32 ), - COUNT( * ) ) ) / NULLIF ( 96, ( ( 30 ) ) * 28 + + - ( + - NULLIF ( - - 54, - + 16 * 53 ) ) + - + 33 / + COUNT( DISTINCT + 20 ) * + 2 * + 37 - + 24 + - + 51 ) THEN - 77 * 44 END * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT CASE 19 WHEN + - 19 * + 70 + + 58 * + 92 / COUNT ( ALL 16 ) * 1 * - 13 + - 99 - - ( + NULLIF ( - + NULLIF ( 99, + 32 ), - COUNT ( * ) ) ) / NULLIF ( 96, ( ( 30 ) ) * 28 + + - ( + - NULLIF ( - - 54, - + 16 * 53 ) ) + - + 33 / + COUNT ( DISTINCT + 20 ) * + 2 * + 37 - + 24 + - + 51 ) THEN - 77 * 44 END * + 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT - ( - 13 ) DIV + 61 + + 30
----
30

skipif mysql # not compatible
query I rowsort label-4059
SELECT - ( - 13 ) / + 61 + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT COUNT( * ) + 64 + - 99 + - + 61
----
-95

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT COUNT ( * ) + 64 + - 99 + - + 61
----
-95

query I rowsort
SELECT ALL 79 + 56 - - 26
----
161

query I rowsort
SELECT 10 * - - 84 AS col0
----
840

query I rowsort
SELECT ALL + ( - - 90 ) * 88
----
7920

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

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

query I rowsort
SELECT ALL 43 * + - 51
----
-2193

onlyif mysql # aggregate syntax: 
query II rowsort label-4066
SELECT 59 col1, + SUM( ALL + 41 ) AS col2
----
59
41

skipif mysql # not compatible
query II rowsort label-4066
SELECT 59 col1, + SUM ( ALL + 41 ) AS col2
----
59
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4067
SELECT DISTINCT 66 * - 47 + COALESCE ( - 6, + 92, + 98, + COUNT( * ) - - 75 ) + - + MAX( DISTINCT - + 71 ) * - COUNT( * ) * - CAST( NULL AS SIGNED ) - - 94 * + CASE - + 46 WHEN + - 29 / + ( + SUM( + 63 ) ) + - - 82 * 13 * + 54 THEN NULL WHEN + 80 THEN + ( - - 72 ) WHEN + COUNT( * ) / - 46 * + ( + 24 ) THEN NULL ELSE + 77 / + 60 * 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT 66 * - 47 + COALESCE ( - 6, + 92, + 98, + COUNT ( * ) - - 75 ) + - + MAX ( DISTINCT - + 71 ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - - 94 * + CASE - + 46 WHEN + - 29 / + ( + SUM ( + 63 ) ) + - - 82 * 13 * + 54 THEN NULL WHEN + 80 THEN + ( - - 72 ) WHEN + COUNT ( * ) / - 46 * + ( + 24 ) THEN NULL ELSE + 77 / + 60 * 28 END
----
NULL

query I rowsort
SELECT ALL 70 * + 74 * 41 AS col1
----
212380

onlyif mysql # DIV for integer division: 
query I rowsort label-4069
SELECT - COALESCE ( + 75, - 61 ) DIV - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT - COALESCE ( + 75, - 61 ) / - 79 AS col2
----
0

query II rowsort
SELECT ALL - 96 AS col1, 34 + - 4 * + + 86
----
-96
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT - 23 + - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4071
SELECT - 23 + - COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT ALL - + COALESCE ( - 82, - CASE + - 0 WHEN + 16 * + NULLIF ( 67, 47 ) + 67 + CASE - - 64 WHEN - ( - 71 ) THEN NULL WHEN + + 16 THEN - - 38 * + 55 ELSE NULL END THEN - - MIN( 76 ) ELSE MIN( 58 ) END + - 64 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL - + COALESCE ( - 82, - CASE + - 0 WHEN + 16 * + NULLIF ( 67, 47 ) + 67 + CASE - - 64 WHEN - ( - 71 ) THEN NULL WHEN + + 16 THEN - - 38 * + 55 ELSE NULL END THEN - - MIN ( 76 ) ELSE MIN ( 58 ) END + - 64 ) AS col2
----
82

query I rowsort
SELECT NULLIF ( - 1, - 75 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT 32 AS col2, 54
----
32
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT ALL + + 65 * - 87 + - 96 DIV - - 16 AS col0
----
-5661

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL + + 65 * - 87 + - 96 / - - 16 AS col0
----
-5661

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + 3 + - SUM( - 16 ) + 80
----
99

skipif mysql # not compatible
query I rowsort label-4076
SELECT + 3 + - SUM ( - 16 ) + 80
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT + - 90 * + 71 * + - COUNT( * ) DIV - COUNT( * ) + + 3 + - 9 + + 90
----
-6306

skipif mysql # not compatible
query I rowsort label-4077
SELECT + - 90 * + 71 * + - COUNT ( * ) / - COUNT ( * ) + + 3 + - 9 + + 90
----
-6306

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT ALL - 47 + - COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - 47 + - COUNT ( * ) AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT - 39 + - CAST( - MAX( DISTINCT - ( 73 ) ) AS SIGNED )
----
-112

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 39 + - CAST ( - MAX ( DISTINCT - ( 73 ) ) AS INTEGER )
----
-112

query II rowsort
SELECT - - 47, 93 AS col2
----
47
93

query II rowsort
SELECT ALL + 91, 78 AS col2
----
91
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT - ( - - NULLIF ( 56, - 5 / - 34 + + + COUNT( * ) + + ( 92 ) + - 21 * - MIN( - 20 ) * 62 * - ( - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) ) + - 34 * - 82 * - 49 ) ) + + COALESCE ( - + 27, + - COUNT( * ) ) + - - 0
----
-83

skipif mysql # not compatible
query I rowsort label-4082
SELECT - ( - - NULLIF ( 56, - 5 / - 34 + + + COUNT ( * ) + + ( 92 ) + - 21 * - MIN ( - 20 ) * 62 * - ( - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) + - 34 * - 82 * - 49 ) ) + + COALESCE ( - + 27, + - COUNT ( * ) ) + - - 0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT - 97 DIV + - 28
----
3

skipif mysql # not compatible
query I rowsort label-4083
SELECT - 97 / + - 28
----
3

query I rowsort
SELECT DISTINCT - 16 + + + 94 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL 46 + - 92 * - COUNT( * ) + - 78 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL 46 + - 92 * - COUNT ( * ) + - 78 AS col0
----
60

query I rowsort
SELECT 95 * - ( - 33 )
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL - 98 + - 67 * MIN( + 98 )
----
-6664

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - 98 + - 67 * MIN ( + 98 )
----
-6664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT COUNT( * ) * NULLIF ( COUNT( * ), 41 ) * CAST( + 75 AS SIGNED ) * - 7
----
-525

skipif mysql # not compatible
query I rowsort label-4088
SELECT COUNT ( * ) * NULLIF ( COUNT ( * ), 41 ) * CAST ( + 75 AS INTEGER ) * - 7
----
-525

query II rowsort
SELECT - 85, - NULLIF ( ( + - 44 ), - NULLIF ( - 39, + 83 + - 24 ) * + 37 * + - 55 ) * + - 72 + - 44 AS col2
----
-85
-3212

query I rowsort
SELECT ALL - 71 + + 87 AS col0
----
16

query II rowsort
SELECT 85 - + 48 + 59 * 54 AS col2, 42
----
3223
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT ALL MIN( ALL + 47 ) AS col2, NULLIF ( - 88, - 55 ) * MAX( - + 12 ) * + 84 + + 93 + + + 37
----
47
88834

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL MIN ( ALL + 47 ) AS col2, NULLIF ( - 88, - 55 ) * MAX ( - + 12 ) * + 84 + + 93 + + + 37
----
47
88834

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT COUNT( ALL 76 ) * - + 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4093
SELECT COUNT ( ALL 76 ) * - + 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL MAX( DISTINCT + - 39 ) - MAX( ALL + + 16 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL MAX ( DISTINCT + - 39 ) - MAX ( ALL + + 16 ) AS col2
----
-55

query II rowsort
SELECT DISTINCT - 81 AS col0, 6
----
-81
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4096
SELECT ALL - 91 col2, + CAST( - 70 AS SIGNED ) AS col0
----
-91
-70

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL - 91 col2, + CAST ( - 70 AS INTEGER ) AS col0
----
-91
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT ALL + COUNT( * ) - 22 AS col1, - 27 AS col0
----
-21
-27

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL + COUNT ( * ) - 22 AS col1, - 27 AS col0
----
-21
-27

query I rowsort
SELECT DISTINCT - 82 * - 82 * - 97
----
-652228

query I rowsort
SELECT 10 * 16
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT 45 * 76 * + 66 * + MIN( DISTINCT + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4100
SELECT 45 * 76 * + 66 * + MIN ( DISTINCT + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - - 8 * - 51 + - COUNT( * )
----
-409

skipif mysql # not compatible
query I rowsort label-4101
SELECT - - 8 * - 51 + - COUNT ( * )
----
-409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT DISTINCT - + CAST( - 20 AS SIGNED ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - + CAST ( - 20 AS INTEGER ) AS col2
----
20

query I rowsort
SELECT ALL - COALESCE ( + + 30, 15 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT 54 * + COALESCE ( 39, MAX( DISTINCT + + 11 ) )
----
2106

skipif mysql # not compatible
query I rowsort label-4104
SELECT 54 * + COALESCE ( 39, MAX ( DISTINCT + + 11 ) )
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT COALESCE ( + COUNT( * ), + 17 + 88 ) * ( + 62 ) * - 23 * 4 * - ( ( - + 69 ) ) + - 23
----
-393599

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 17 + 88 ) * ( + 62 ) * - 23 * 4 * - ( ( - + 69 ) ) + - 23
----
-393599

query II rowsort
SELECT ALL - 37 * - COALESCE ( + 36, + + 14 ) AS col1, 19 col0
----
1332
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - MAX( + 86 ) * - + 87 + - 47
----
7435

skipif mysql # not compatible
query I rowsort label-4107
SELECT - MAX ( + 86 ) * - + 87 + - 47
----
7435

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

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + COUNT ( * ) * - + 55 / - + 42
----
1

query I rowsort
SELECT - 12 * - 33 - + - 99 AS col0
----
495

query I rowsort
SELECT ALL 84 + + 30 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT - SUM( + 5 ) + + + 9 + + - 30 * + + 17 AS col0
----
-506

skipif mysql # not compatible
query I rowsort label-4111
SELECT - SUM ( + 5 ) + + + 9 + + - 30 * + + 17 AS col0
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT NULLIF ( - 6, + CASE + 15 WHEN - + 41 / COUNT( * ) - + + ( 80 ) THEN NULL WHEN - 72 / COALESCE ( COUNT( * ), - 58 ) THEN 21 WHEN + + COUNT( * ) THEN NULL ELSE - ( 94 ) * + + COUNT( - 32 ) / + ( + + 28 ) END ) * + ( - 4 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4112
SELECT NULLIF ( - 6, + CASE + 15 WHEN - + 41 / COUNT ( * ) - + + ( 80 ) THEN NULL WHEN - 72 / COALESCE ( COUNT ( * ), - 58 ) THEN 21 WHEN + + COUNT ( * ) THEN NULL ELSE - ( 94 ) * + + COUNT ( - 32 ) / + ( + + 28 ) END ) * + ( - 4 ) AS col2
----
24

query I rowsort
SELECT 3 * + - 77
----
-231

query I rowsort
SELECT - NULLIF ( + 7, + - 91 )
----
-7

query I rowsort
SELECT ALL - 85 + - ( - 94 ) AS col0
----
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4117
SELECT ALL + NULLIF ( - - 66, ( COUNT( * ) ) ) + NULLIF ( - COUNT( * ), 85 DIV - 82 ) + + 20 + 8 * 52 * - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + NULLIF ( - - 66, ( COUNT ( * ) ) ) + NULLIF ( - COUNT ( * ), 85 / - 82 ) + + 20 + 8 * 52 * - - 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT + - CAST( NULL AS SIGNED ) - - 7 + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT + - CAST ( NULL AS INTEGER ) - - 7 + + 0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4119
SELECT - + 95 AS col2, 98 * + COUNT( * ) + - + 39 AS col1
----
-95
59

skipif mysql # not compatible
query II rowsort label-4119
SELECT - + 95 AS col2, 98 * + COUNT ( * ) + - + 39 AS col1
----
-95
59

query I rowsort
SELECT ALL - 35 + - ( - 83 ) * - + 81 * + 23 * + 68 AS col2
----
-10514807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT + 3 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 3 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT - COALESCE ( + + 43, - CAST( NULL AS SIGNED ) )
----
-43

skipif mysql # not compatible
query I rowsort label-4122
SELECT - COALESCE ( + + 43, - CAST ( NULL AS INTEGER ) )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT ALL MIN( 18 ) AS col0, + 46 + + COUNT( * ) + - 85 AS col2
----
18
-38

skipif mysql # not compatible
query II rowsort label-4123
SELECT ALL MIN ( 18 ) AS col0, + 46 + + COUNT ( * ) + - 85 AS col2
----
18
-38

query I rowsort
SELECT + ( + - 81 ) + + 95 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - MIN( DISTINCT - + 62 ) + - 10
----
52

skipif mysql # not compatible
query I rowsort label-4125
SELECT - MIN ( DISTINCT - + 62 ) + - 10
----
52

query I rowsort
SELECT - 98 - - - ( 94 ) AS col0
----
-192

query I rowsort
SELECT - 44 * + ( 58 ) AS col1
----
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL COALESCE ( + + COUNT( DISTINCT - 28 ), - - 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL COALESCE ( + + COUNT ( DISTINCT - 28 ), - - 72 ) AS col1
----
1

query I rowsort
SELECT ALL ( ( - 23 ) ) AS col1
----
-23

query I rowsort
SELECT - 38 + + 56 + + ( - 19 ) - - 47 * + 18 AS col0
----
845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4131
SELECT - 32 DIV + MIN( ALL + 83 ) * 71 + + 61 + - 56
----
5

skipif mysql # not compatible
query I rowsort label-4131
SELECT - 32 / + MIN ( ALL + 83 ) * 71 + + 61 + - 56
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT + COUNT( - 83 ) DIV 4 + + COUNT( * ) + - 26
----
-25

skipif mysql # not compatible
query I rowsort label-4132
SELECT + COUNT ( - 83 ) / 4 + + COUNT ( * ) + - 26
----
-25

query I rowsort
SELECT ALL + + 86 * + 41 * 17 AS col1
----
59942

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT - + 27 DIV + 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4134
SELECT - + 27 / + 82 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT ALL + + 69 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL + + 69 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL + + COUNT( 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + + COUNT ( 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + 85 * + COUNT( * ) + - NULLIF ( 69, - 76 ) + - 35 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-4137
SELECT + 85 * + COUNT ( * ) + - NULLIF ( 69, - 76 ) + - 35 AS col2
----
-19

query I rowsort
SELECT 42 * 78 * - 6 - + 60 col1
----
-19716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4139
SELECT DISTINCT 0 DIV + - 75 AS col2, SUM( ALL + CAST( NULL AS SIGNED ) ) + 96 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4139
SELECT DISTINCT 0 / + - 75 AS col2, SUM ( ALL + CAST ( NULL AS INTEGER ) ) + 96 AS col2
----
0
NULL

query I rowsort
SELECT ALL + 24 * 16 * ( + COALESCE ( + - 78, + + 10, - 12 ) ) + + 16
----
-29936

query I rowsort
SELECT + 1 + - 36 AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT + ( - 17 ) * - - 19 * COUNT( * ) + + 15 + 93 * + 2 - + 11 DIV + + 1 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + ( - 17 ) * - - 19 * COUNT ( * ) + + 15 + 93 * + 2 - + 11 / + + 1 AS col0
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT - 42 * - 62 + + 77 - 62 + - - CAST( NULL AS SIGNED ) / + 59 * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT - 42 * - 62 + + 77 - 62 + - - CAST ( NULL AS INTEGER ) / + 59 * - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT MAX( - 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4144
SELECT MAX ( - 52 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT + 22 + + ( + + COUNT( * ) ), - 97 AS col2
----
23
-97

skipif mysql # not compatible
query II rowsort label-4145
SELECT + 22 + + ( + + COUNT ( * ) ), - 97 AS col2
----
23
-97

query I rowsort
SELECT ALL 28 * + 44
----
1232

query I rowsort
SELECT - ( 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4148
SELECT + 10 DIV - NULLIF ( - 67, + ( + + 9 ) * COUNT( - 86 ) + - + 6 - 33 * - - 9 DIV - - ( 93 ) + 23 + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4148
SELECT + 10 / - NULLIF ( - 67, + ( + + 9 ) * COUNT ( - 86 ) + - + 6 - 33 * - - 9 / - - ( 93 ) + 23 + COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT COUNT( * ) - - + 22 * - + 45 * + - COUNT( * ) AS col2
----
991

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT COUNT ( * ) - - + 22 * - + 45 * + - COUNT ( * ) AS col2
----
991

onlyif mysql # DIV for integer division: 
query I rowsort label-4150
SELECT DISTINCT COALESCE ( + 42, + AVG ( DISTINCT + 89 ) DIV 86 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT COALESCE ( + 42, + AVG ( DISTINCT + 89 ) / 86 ) AS col2
----
42

query I rowsort
SELECT ALL CASE - - 77 WHEN + 19 * + - 30 / - 24 THEN + ( + 13 ) WHEN - - 99 THEN NULL WHEN + 32 THEN 77 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 54 - 71 + + 63 * - - CASE - - 27 WHEN 97 THEN NULL WHEN 28 THEN 89 WHEN - 23 THEN + 48 END
----
NULL

query II rowsort
SELECT ALL 44 AS col0, 65 AS col2
----
44
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT ( - COUNT( ALL + - 3 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT ( - COUNT ( ALL + - 3 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4155
SELECT ALL - 36 * - MAX( DISTINCT 18 ) AS col2, 31 AS col1
----
648
31

skipif mysql # not compatible
query II rowsort label-4155
SELECT ALL - 36 * - MAX ( DISTINCT 18 ) AS col2, 31 AS col1
----
648
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - 56 * - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4156
SELECT - 56 * - COUNT ( * ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT SUM( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT SUM ( DISTINCT 69 )
----
69

query II rowsort
SELECT + 26 - - NULLIF ( + ( - COALESCE ( - 37, + 85 - + + 10 ) ), + 55 ) * 21 AS col0, + 0
----
803
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT + 2 - NULLIF ( CAST( - - 66 AS SIGNED ), - + 21 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-4159
SELECT + 2 - NULLIF ( CAST ( - - 66 AS INTEGER ), - + 21 ) col2
----
-64

query II rowsort
SELECT 21 AS col2, 89
----
21
89

query I rowsort
SELECT ALL + 37 * + - 35 AS col1
----
-1295

query I rowsort
SELECT + 20 * 36 AS col0
----
720

query II rowsort
SELECT - 14, 98 AS col1
----
-14
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4164
SELECT ALL + + 60 DIV + COUNT( * ) + + + ( - + 56 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + + 60 / + COUNT ( * ) + + + ( - + 56 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT DISTINCT + + CASE 64 WHEN + COUNT( * ) THEN 69 WHEN + 73 THEN + ( + - 66 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + + CASE 64 WHEN + COUNT ( * ) THEN 69 WHEN + 73 THEN + ( + - 66 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT ALL NULLIF ( - 8, 28 * + 7 ) DIV - + 98 * 19 + + 3 - 67 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL NULLIF ( - 8, 28 * + 7 ) / - + 98 * 19 + + 3 - 67 AS col0
----
-64

query I rowsort
SELECT - 47 - 35 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4168
SELECT DISTINCT - COUNT( * ) DIV + 79 + 31 + - + ( + 52 ) + - - CAST( - 18 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT - COUNT ( * ) / + 79 + 31 + - + ( + 52 ) + - - CAST ( - 18 AS INTEGER )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT - - 45 + + 11 * - CAST( - + 70 AS SIGNED )
----
815

skipif mysql # not compatible
query I rowsort label-4169
SELECT - - 45 + + 11 * - CAST ( - + 70 AS INTEGER )
----
815

query I rowsort
SELECT + ( - 16 ) AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT - CAST( NULL AS SIGNED ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT - CAST ( NULL AS INTEGER ) * + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4172
SELECT ALL + ( + 58 ) / - ( + CAST( NULL AS SIGNED ) ) + + AVG ( DISTINCT - 32 ) col0, - 4 + 44
----
NULL
40

skipif mysql # not compatible
query II rowsort label-4172
SELECT ALL + ( + 58 ) / - ( + CAST ( NULL AS INTEGER ) ) + + AVG ( DISTINCT - 32 ) col0, - 4 + 44
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL - ( - 98 ) + + SUM( 95 ) + + + 51
----
244

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL - ( - 98 ) + + SUM ( 95 ) + + + 51
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + - SUM( DISTINCT - + 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4174
SELECT + - SUM ( DISTINCT - + 30 ) AS col2
----
30

query II rowsort
SELECT 79 + + + 13 + + + 58 AS col1, 24
----
150
24

query I rowsort
SELECT ALL + - 87 * 92
----
-8004

onlyif mysql # aggregate syntax: 
query II rowsort label-4177
SELECT 58 * CASE + + COALESCE ( - 74, - + 54 + + - 57 + COUNT( * ) ) WHEN 33 + 20 THEN + COUNT( * ) WHEN - + 96 THEN NULL END * 1 / + 73 - - 49, - 32 * - + 3 AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-4177
SELECT 58 * CASE + + COALESCE ( - 74, - + 54 + + - 57 + COUNT ( * ) ) WHEN 33 + 20 THEN + COUNT ( * ) WHEN - + 96 THEN NULL END * 1 / + 73 - - 49, - 32 * - + 3 AS col1
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT COUNT( * ) * - - 24 * + 11
----
264

skipif mysql # not compatible
query I rowsort label-4178
SELECT COUNT ( * ) * - - 24 * + 11
----
264

query I rowsort
SELECT 20 - - - 78
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4180
SELECT ALL + 50 DIV 29 * - + 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + 50 / 29 * - + 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ( 31 ) + CASE + - ( - - COUNT( * ) ) WHEN 36 THEN NULL WHEN - - COUNT( * ) THEN - COUNT( - 66 ) END - + + MIN( ALL - 89 ) * ( - 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT ( 31 ) + CASE + - ( - - COUNT ( * ) ) WHEN 36 THEN NULL WHEN - - COUNT ( * ) THEN - COUNT ( - 66 ) END - + + MIN ( ALL - 89 ) * ( - 16 ) AS col0
----
NULL

query II rowsort
SELECT 10 + - + 84, - 0 AS col0
----
-74
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT CAST( NULL AS SIGNED ) / + - 36 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT CAST ( NULL AS INTEGER ) / + - 36 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT 55 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT 55 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT COUNT( * ) + COUNT( DISTINCT - - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4185
SELECT COUNT ( * ) + COUNT ( DISTINCT - - 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL 67 + ( MIN( COALESCE ( + 87, + - 81, + 10 ) ) )
----
154

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 67 + ( MIN ( COALESCE ( + 87, + - 81, + 10 ) ) )
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL + - 31 + - + 26 + + + 79 + + ( + + ( - 12 ) ) * - COUNT( * ) * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + - 31 + - + 26 + + + 79 + + ( + + ( - 12 ) ) * - COUNT ( * ) * COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT + COUNT( * ) + + 76 + - ( - 89 )
----
166

skipif mysql # not compatible
query I rowsort label-4188
SELECT + COUNT ( * ) + + 76 + - ( - 89 )
----
166

query I rowsort
SELECT DISTINCT 10 + 42 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + NULLIF ( + 70, COALESCE ( + - 78, - 85 * - - 27, + - SUM( + 30 ) ) ) * 68 + - 51 * COALESCE ( 34, - 3 ) * + 83 AS col2
----
-139162

skipif mysql # not compatible
query I rowsort label-4190
SELECT + NULLIF ( + 70, COALESCE ( + - 78, - 85 * - - 27, + - SUM ( + 30 ) ) ) * 68 + - 51 * COALESCE ( 34, - 3 ) * + 83 AS col2
----
-139162

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT ALL + 80 + - 14 AS col1, SUM( DISTINCT - 65 ) - 62
----
66
-127

skipif mysql # not compatible
query II rowsort label-4191
SELECT ALL + 80 + - 14 AS col1, SUM ( DISTINCT - 65 ) - 62
----
66
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT - CAST( NULL AS SIGNED ) * - - 2 + - + NULLIF ( - + 87, 47 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT - CAST ( NULL AS INTEGER ) * - - 2 + - + NULLIF ( - + 87, 47 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL + - CAST( NULL AS SIGNED ) * + MAX( - - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + - CAST ( NULL AS INTEGER ) * + MAX ( - - 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL - + COUNT( 59 ) - - 26 * - 69
----
-1795

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - + COUNT ( 59 ) - - 26 * - 69
----
-1795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT 17 * - 89 * + + 21 + - + 43 + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), + 5 ) - + + 40 + 13 * 45 * - COUNT( * ) * + - 30 * + 14 / - + 6 + + + ( + - 95 ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT 17 * - 89 * + + 21 + - + 43 + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), + 5 ) - + + 40 + 13 * 45 * - COUNT ( * ) * + - 30 * + 14 / - + 6 + + + ( + - 95 ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT 47 * + 74
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL - NULLIF ( - CASE COALESCE ( + 94, - - 11 * - 44, - 69, - COUNT( * ) / + 63 ) WHEN + 9 THEN 19 END, + 17 + 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - NULLIF ( - CASE COALESCE ( + 94, - - 11 * - 44, - 69, - COUNT ( * ) / + 63 ) WHEN + 9 THEN 19 END, + 17 + 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + COUNT( * ) * + COUNT( * ) + + + 74
----
75

skipif mysql # not compatible
query I rowsort label-4198
SELECT + COUNT ( * ) * + COUNT ( * ) + + + 74
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT NULLIF ( - + 52, + ( + 97 ) ) DIV 87 * + - 26
----
0

skipif mysql # not compatible
query I rowsort label-4199
SELECT NULLIF ( - + 52, + ( + 97 ) ) / 87 * + - 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4200
SELECT - 6 + + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4200
SELECT - 6 + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT DISTINCT - COUNT( * ) / - 8 * + 64 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT - COUNT ( * ) / - 8 * + 64 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4202
SELECT ALL 57 DIV - - MAX( 92 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL 57 / - - MAX ( 92 ) AS col0
----
0

query I rowsort
SELECT 4 * + 64 AS col1
----
256

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT 11 + + - 9 * - COUNT( - + 47 ) * 15 + + 44 AS col1
----
190

skipif mysql # not compatible
query I rowsort label-4204
SELECT 11 + + - 9 * - COUNT ( - + 47 ) * 15 + + 44 AS col1
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT ALL - COALESCE ( + + 31, + 80 + - ( 79 ) + 12 * - CAST( NULL AS SIGNED ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - COALESCE ( + + 31, + 80 + - ( 79 ) + 12 * - CAST ( NULL AS INTEGER ) )
----
-31

query I rowsort
SELECT 20 + + 87 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT DISTINCT CAST( 18 AS SIGNED ) * + 35 + + COUNT( * ) AS col0
----
631

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT CAST ( 18 AS INTEGER ) * + 35 + + COUNT ( * ) AS col0
----
631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4208
SELECT DISTINCT + CASE + 83 WHEN - 2 + 6 THEN - 36 WHEN - COUNT( * ) - + - COUNT( * ) THEN 61 ELSE NULL END * 71 * - 27, + CAST( 69 AS SIGNED ) col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-4208
SELECT DISTINCT + CASE + 83 WHEN - 2 + 6 THEN - 36 WHEN - COUNT ( * ) - + - COUNT ( * ) THEN 61 ELSE NULL END * 71 * - 27, + CAST ( 69 AS INTEGER ) col2
----
NULL
69

query I rowsort
SELECT 4 * + 28 * + 97 col1
----
10864

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT COUNT( * ) * ( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4210
SELECT COUNT ( * ) * ( + 80 )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4211
SELECT DISTINCT + COUNT( * ) * + ( - - 70 ) * - AVG ( ALL 10 ) * - CASE - NULLIF ( NULLIF ( 94, 95 + + ( 93 ) * CAST( + - COUNT( * ) AS SIGNED ) ), - - 80 ) WHEN - 38 * + 15 THEN + - CASE - MIN( ALL + - 42 ) WHEN + NULLIF ( - COUNT( * ), + + COUNT( * ) ) * 69 * + - 60 + - + NULLIF ( + 70, + 83 ) * 69 * - CASE - CAST( 96 AS DECIMAL ) WHEN 64 + - + 47 THEN - 75 WHEN + - COALESCE ( 4, CAST( NULL AS DECIMAL ) ) * 40 / + - CAST( 72 AS SIGNED ) THEN - 27 * 24 WHEN 5 * - CAST( NULL AS SIGNED ) THEN 10 END * ( 88 ) THEN CAST( 52 AS SIGNED ) END WHEN - 99 + + 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT + COUNT ( * ) * + ( - - 70 ) * - AVG ( ALL 10 ) * - CASE - NULLIF ( NULLIF ( 94, 95 + + ( 93 ) * CAST ( + - COUNT ( * ) AS INTEGER ) ), - - 80 ) WHEN - 38 * + 15 THEN + - CASE - MIN ( ALL + - 42 ) WHEN + NULLIF ( - COUNT ( * ), + + COUNT ( * ) ) * 69 * + - 60 + - + NULLIF ( + 70, + 83 ) * 69 * - CASE - CAST ( 96 AS REAL ) WHEN 64 + - + 47 THEN - 75 WHEN + - COALESCE ( 4, CAST ( NULL AS REAL ) ) * 40 / + - CAST ( 72 AS INTEGER ) THEN - 27 * 24 WHEN 5 * - CAST ( NULL AS INTEGER ) THEN 10 END * ( 88 ) THEN CAST ( 52 AS INTEGER ) END WHEN - 99 + + 73 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT 55 + COUNT( * ) + - 55
----
1

skipif mysql # not compatible
query I rowsort label-4212
SELECT 55 + COUNT ( * ) + - 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT ALL COUNT( ALL - - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL COUNT ( ALL - - 60 )
----
1

query I rowsort
SELECT ALL 67 + - + 26 AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4215
SELECT 46 AS col0, COUNT( ALL + 85 ) col0
----
46
1

skipif mysql # not compatible
query II rowsort label-4215
SELECT 46 AS col0, COUNT ( ALL + 85 ) col0
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL COUNT( DISTINCT - 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL COUNT ( DISTINCT - 66 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL - COUNT( * ) + + 25 + + 21 * - - ( - MAX( 43 ) )
----
-879

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - COUNT ( * ) + + 25 + + 21 * - - ( - MAX ( 43 ) )
----
-879

query I rowsort
SELECT ALL 61 * - + NULLIF ( - 15, - 3 - - 81 )
----
915

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT - SUM( + - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4219
SELECT - SUM ( + - 98 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4220
SELECT COUNT( * ) DIV 27 DIV - - 67, - 5 AS col0
----
0
-5

skipif mysql # not compatible
query II rowsort label-4220
SELECT COUNT ( * ) / 27 / - - 67, - 5 AS col0
----
0
-5

query I rowsort
SELECT 1 - + - 93 + + 62 AS col0
----
156

query I rowsort
SELECT 44 * + 44 col1
----
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL ( ( 98 ) ) * - COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL ( ( 98 ) ) * - COUNT ( * ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT - 95 - + 80 + + - 26 * - - COUNT( * ) AS col0
----
-201

skipif mysql # not compatible
query I rowsort label-4224
SELECT - 95 - + 80 + + - 26 * - - COUNT ( * ) AS col0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT + COUNT( * ) + - 6 * - + 32
----
193

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT + COUNT ( * ) + - 6 * - + 32
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4226
SELECT DISTINCT 66 DIV - 46 + 41 AS col1, + 93 + + COALESCE ( - + 26, 43 ) * COUNT( * ) DIV + 29 + 59
----
40
152

skipif mysql # not compatible
query II rowsort label-4226
SELECT DISTINCT 66 / - 46 + 41 AS col1, + 93 + + COALESCE ( - + 26, 43 ) * COUNT ( * ) / + 29 + 59
----
40
152

query I rowsort
SELECT DISTINCT + + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT + 11 + - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4228
SELECT + 11 + - COUNT ( * )
----
10

query II rowsort
SELECT ALL + 82 AS col0, - 63 AS col0
----
82
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT - 36 * + 5 + + 15 + 69 + + 17 DIV - 42
----
-96

skipif mysql # not compatible
query I rowsort label-4230
SELECT - 36 * + 5 + + 15 + 69 + + 17 / - 42
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT - ( + CAST( - 72 AS SIGNED ) ) * 36
----
2592

skipif mysql # not compatible
query I rowsort label-4231
SELECT - ( + CAST ( - 72 AS INTEGER ) ) * 36
----
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + + 36 * 60 + - - SUM( 87 )
----
2247

skipif mysql # not compatible
query I rowsort label-4232
SELECT + + 36 * 60 + - - SUM ( 87 )
----
2247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT CAST( 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4233
SELECT CAST ( 61 AS INTEGER ) AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4234
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 48, + 89 ), + 72 * NULLIF ( + 22, + - 47 + 96 * + + 7 * - 72 * + 47 + - + 2 * + 74 ), 94 + - COUNT( * ) + + CAST( NULL AS SIGNED ) * - COUNT( * ) ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 48, + 89 ), + 72 * NULLIF ( + 22, + - 47 + 96 * + + 7 * - 72 * + 47 + - + 2 * + 74 ), 94 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT ALL - COUNT( * ) * + + 29 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - COUNT ( * ) * + + 29 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 51 * - ( - + 38 ) AS col0
----
1938

query I rowsort
SELECT DISTINCT + ( - 5 ) * - 54 + - 8 - 17 col0
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + NULLIF ( - COALESCE ( + COUNT( * ), + - 51, 45 ), + + ( + 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4238
SELECT + NULLIF ( - COALESCE ( + COUNT ( * ), + - 51, 45 ), + + ( + 44 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT - 15 DIV - MIN( ALL 30 )
----
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 15 / - MIN ( ALL 30 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT COUNT( 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4240
SELECT COUNT ( 36 ) AS col1
----
1

query II rowsort
SELECT + 86, + 41 AS col0
----
86
41

query I rowsort
SELECT + 3 + 93
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4243
SELECT COUNT( * ), - COALESCE ( 57, - 36 ) col1
----
1
-57

skipif mysql # not compatible
query II rowsort label-4243
SELECT COUNT ( * ), - COALESCE ( 57, - 36 ) col1
----
1
-57

query I rowsort
SELECT - 79 + + + 73 + 81 * - COALESCE ( - 85, + - ( - + 11 ) ) * 17 AS col1
----
117039

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT ALL - 78 + 64 DIV + 65
----
-78

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL - 78 + 64 / + 65
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT DISTINCT COUNT( * ) DIV 94 col1
----
0

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT COUNT ( * ) / 94 col1
----
0

query I rowsort
SELECT - 73 - 51 + 68 AS col1
----
-56

query II rowsort
SELECT 18 AS col0, 42
----
18
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT ALL + COUNT( ALL + - 24 ) / - - 38 / - CAST( NULL AS SIGNED ) / + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL + COUNT ( ALL + - 24 ) / - - 38 / - CAST ( NULL AS INTEGER ) / + - 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + CASE + + 28 WHEN + COUNT( ALL + 28 ) + NULLIF ( - + 50, - + 79 - 59 ) + 47 - - - 82 / + 53 / + 17 - CASE 51 WHEN - COUNT( * ) THEN - 69 END THEN + 27 WHEN 14 * - + 2 THEN + CASE 85 WHEN 55 + - + COUNT( * ) - COALESCE ( + 74, 3, - 52 * - 41 / + COUNT( * ) * + + 9 * - + COUNT( * ) - - 33 + + 33 * - 67 ) + + ( + + ( + 85 ) ) THEN NULL WHEN 52 THEN + ( 14 ) END + - 58 / - 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + CASE + + 28 WHEN + COUNT ( ALL + 28 ) + NULLIF ( - + 50, - + 79 - 59 ) + 47 - - - 82 / + 53 / + 17 - CASE 51 WHEN - COUNT ( * ) THEN - 69 END THEN + 27 WHEN 14 * - + 2 THEN + CASE 85 WHEN 55 + - + COUNT ( * ) - COALESCE ( + 74, 3, - 52 * - 41 / + COUNT ( * ) * + + 9 * - + COUNT ( * ) - - 33 + + 33 * - 67 ) + + ( + + ( + 85 ) ) THEN NULL WHEN 52 THEN + ( 14 ) END + - 58 / - 72 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL ( NULLIF ( - 3, - + SUM( 61 ) * NULLIF ( + 8, COALESCE ( + + 2, 51 ) ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL ( NULLIF ( - 3, - + SUM ( 61 ) * NULLIF ( + 8, COALESCE ( + + 2, 51 ) ) ) )
----
-3

onlyif mysql # DIV for integer division: 
query III rowsort label-4252
SELECT ALL - 87 * + 95 AS col1, - 70 DIV 40 AS col0, + ( 16 ) + + ( - + 51 ) + + ( 72 ) col0
----
-8265
-1
37

skipif mysql # not compatible
query III rowsort label-4252
SELECT ALL - 87 * + 95 AS col1, - 70 / 40 AS col0, + ( 16 ) + + ( - + 51 ) + + ( 72 ) col0
----
-8265
-1
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT - 26 + 25 AS col2, - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-4253
SELECT - 26 + 25 AS col2, - COUNT ( * )
----
-1
-1

query II rowsort
SELECT - 37 + - + NULLIF ( + + ( + ( + 60 ) ), - + 76 ) AS col0, 29 AS col2
----
-97
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT - SUM( 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4255
SELECT - SUM ( 28 ) AS col0
----
-28

query I rowsort
SELECT - NULLIF ( 97, - 46 * 12 ) AS col0
----
-97

query II rowsort
SELECT - - 28, - 32 col0
----
28
-32

query II rowsort
SELECT ALL + 72, COALESCE ( - 21, + - 46 ) col1
----
72
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT ALL + 72 - NULLIF ( + + 22, + - COUNT( DISTINCT + ( + 12 ) ) + - - 43 * - 66 * - COUNT( * ) / CAST( NULL AS SIGNED ) * - 29 / + 30 ) * - 76 AS col2
----
1744

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL + 72 - NULLIF ( + + 22, + - COUNT ( DISTINCT + ( + 12 ) ) + - - 43 * - 66 * - COUNT ( * ) / CAST ( NULL AS INTEGER ) * - 29 / + 30 ) * - 76 AS col2
----
1744

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT - COUNT( * ) + - - 86 * 61 * - 18 + 39 + - 36 * + + COUNT( ALL + 21 )
----
-94426

skipif mysql # not compatible
query I rowsort label-4260
SELECT - COUNT ( * ) + - - 86 * 61 * - 18 + 39 + - 36 * + + COUNT ( ALL + 21 )
----
-94426

query I rowsort
SELECT ALL 55 * - - 14
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT - COUNT( * ) + - 92 + - 29 * + 10 AS col1
----
-383

skipif mysql # not compatible
query I rowsort label-4262
SELECT - COUNT ( * ) + - 92 + - 29 * + 10 AS col1
----
-383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL CAST( + ( + + ( - 85 ) ) AS SIGNED ) * 9 - 32
----
-797

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL CAST ( + ( + + ( - 85 ) ) AS INTEGER ) * 9 - 32
----
-797

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + COUNT( * ) + + 42 + 37 + + 33 * + 34 * - + 59 AS col2
----
-66118

skipif mysql # not compatible
query I rowsort label-4264
SELECT + COUNT ( * ) + + 42 + 37 + + 33 * + 34 * - + 59 AS col2
----
-66118

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT ALL - 37 DIV + ( - - 26 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - 37 / + ( - - 26 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT + - COUNT( * ) * - 14 * + 94 AS col2
----
1316

skipif mysql # not compatible
query I rowsort label-4266
SELECT + - COUNT ( * ) * - 14 * + 94 AS col2
----
1316

query II rowsort
SELECT + 71 col2, + 82 * 17 * - 13 * - 92
----
71
1667224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL + + NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) + - + 61 - + 48 * CASE - + 44 WHEN - COALESCE ( - COUNT( * ), + COUNT( * ) - - - 3 - 23 * + 74 / - 90, + 52 * + SUM( - - 97 ) + + + COUNT( * ) * + + 66 ) THEN NULL WHEN + 8 + + ( - - COUNT( * ) ) THEN NULL ELSE 28 END + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + + NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) + - + 61 - + 48 * CASE - + 44 WHEN - COALESCE ( - COUNT ( * ), + COUNT ( * ) - - - 3 - 23 * + 74 / - 90, + 52 * + SUM ( - - 97 ) + + + COUNT ( * ) * + + 66 ) THEN NULL WHEN + 8 + + ( - - COUNT ( * ) ) THEN NULL ELSE 28 END + 93 )
----
NULL

query I rowsort
SELECT 40 * - 43 + - 88
----
-1808

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4270
SELECT + NULLIF ( - 69, - + 52 + + 65 * ( - 73 ) ) AS col1, - 80 * + SUM( ALL + 81 ) - + 93 DIV - + 66
----
-69
-6479

skipif mysql # not compatible
query II rowsort label-4270
SELECT + NULLIF ( - 69, - + 52 + + 65 * ( - 73 ) ) AS col1, - 80 * + SUM ( ALL + 81 ) - + 93 / - + 66
----
-69
-6479

query I rowsort
SELECT - + 65 + - 40 AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4272
SELECT DISTINCT + 28 AS col2, SUM( + NULLIF ( - 66, 64 * - 57 + - 59 + - 91 * + 76 / 99 ) ) * - 58 + + - 87 * + 4 * + CAST( NULL AS SIGNED ) * CAST( 78 AS SIGNED ) + 1 * + + 59 * COUNT( * ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-4272
SELECT DISTINCT + 28 AS col2, SUM ( + NULLIF ( - 66, 64 * - 57 + - 59 + - 91 * + 76 / 99 ) ) * - 58 + + - 87 * + 4 * + CAST ( NULL AS INTEGER ) * CAST ( 78 AS INTEGER ) + 1 * + + 59 * COUNT ( * ) AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL + + COUNT( DISTINCT + 10 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + + COUNT ( DISTINCT + 10 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT DISTINCT + COUNT( * ) AS col0, 1 + - CASE 83 WHEN - 15 + + - 63 * + - COUNT( * ) THEN - 59 WHEN - 44 THEN - 0 ELSE NULLIF ( - 38, + COUNT( * ) * - 45 ) * - - 90 * + 34 + - 45 * - ( 51 ) END AS col1
----
1
113986

skipif mysql # not compatible
query II rowsort label-4274
SELECT DISTINCT + COUNT ( * ) AS col0, 1 + - CASE 83 WHEN - 15 + + - 63 * + - COUNT ( * ) THEN - 59 WHEN - 44 THEN - 0 ELSE NULLIF ( - 38, + COUNT ( * ) * - 45 ) * - - 90 * + 34 + - 45 * - ( 51 ) END AS col1
----
1
113986

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT - COUNT( * ) * + - ( MIN( + 1 ) ) + + - 1
----
0

skipif mysql # not compatible
query I rowsort label-4275
SELECT - COUNT ( * ) * + - ( MIN ( + 1 ) ) + + - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT 81 * - MAX( + 83 ) + + + 39
----
-6684

skipif mysql # not compatible
query I rowsort label-4276
SELECT 81 * - MAX ( + 83 ) + + + 39
----
-6684

query I rowsort
SELECT + CASE - - ( + - 16 ) WHEN + - 21 THEN - 64 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4278
SELECT ( + COUNT( * ) ) AS col0, - 63 * - 64
----
1
4032

skipif mysql # not compatible
query II rowsort label-4278
SELECT ( + COUNT ( * ) ) AS col0, - 63 * - 64
----
1
4032

query I rowsort
SELECT + NULLIF ( + 40, + - 27 + 99 + - 28 - + 83 )
----
40

query II rowsort
SELECT ( - + 44 ) col0, + 61
----
-44
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL + 51 * - 22 + - SUM( + 70 )
----
-1192

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + 51 * - 22 + - SUM ( + 70 )
----
-1192

query I rowsort
SELECT + 9 + 40 + + NULLIF ( - 60, + 51 ) + 36 * - 20
----
-731

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4283
SELECT ALL 50 * + 23, COALESCE ( + 49, 56 * 30, - 4 DIV + + COUNT( * ) * 81 ) AS col0
----
1150
49

skipif mysql # not compatible
query II rowsort label-4283
SELECT ALL 50 * + 23, COALESCE ( + 49, 56 * 30, - 4 / + + COUNT ( * ) * 81 ) AS col0
----
1150
49

query I rowsort
SELECT ALL + NULLIF ( 42, - + 84 + + - ( + NULLIF ( - - 80, + 77 / 3 + + 85 + NULLIF ( - + 96, + - 22 ) + + - 80 ) ) / 82 ) AS col0
----
42

query I rowsort
SELECT + 43 * - 57 + 68 AS col1
----
-2383

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT CASE 77 WHEN + 50 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT CASE 77 WHEN + 50 THEN + - COUNT ( * ) END
----
NULL

query II rowsort
SELECT 47 * + 91 + - 78 AS col2, 70 * - 56
----
4199
-3920

query II rowsort
SELECT 83 * + - 8 AS col1, 65
----
-664
65

query II rowsort
SELECT DISTINCT - 2 - + - 57, 55 AS col0
----
55
55

query II rowsort
SELECT ALL - - 20 - + 36 AS col1, + 95 * 1 AS col0
----
-16
95

query I rowsort
SELECT + 91 * ( + 33 )
----
3003

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT - 0 DIV + 74 * - 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT - 0 / + 74 * - 73 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT + + 7 * + COUNT( * ) + 61 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + + 7 * + COUNT ( * ) + 61 AS col2
----
68

query I rowsort
SELECT ALL - - 44 * + 10 - - 27 * + + 5 AS col0
----
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT ALL - CAST( NULL AS SIGNED ) - - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL - CAST ( NULL AS INTEGER ) - - 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT - MAX( + - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4296
SELECT - MAX ( + - 65 ) AS col2
----
65

onlyif mysql # DIV for integer division: 
query II rowsort label-4297
SELECT 32 - + CASE 50 WHEN + 2 + - + 44 * + + 27 THEN - 96 WHEN + + 39 THEN - 89 WHEN 42 THEN NULL ELSE + 16 END DIV + - 38, 19 AS col1
----
32
19

skipif mysql # not compatible
query II rowsort label-4297
SELECT 32 - + CASE 50 WHEN + 2 + - + 44 * + + 27 THEN - 96 WHEN + + 39 THEN - 89 WHEN 42 THEN NULL ELSE + 16 END / + - 38, 19 AS col1
----
32
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT + COUNT( - 56 ) * - + 68 col2
----
-68

skipif mysql # not compatible
query I rowsort label-4298
SELECT + COUNT ( - 56 ) * - + 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL + NULLIF ( + - ( - 54 ), + 23 + + - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL + NULLIF ( + - ( - 54 ), + 23 + + - COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4300
SELECT + ( - 96 ) + + 63 + + + 45 - - - 5 * + + COUNT( * ) * + - 70 + COALESCE ( - ( + 49 ), + ( + 27 ) ) + 73, MAX( + + 2 ) + - ( + 39 ) AS col2
----
386
-37

skipif mysql # not compatible
query II rowsort label-4300
SELECT + ( - 96 ) + + 63 + + + 45 - - - 5 * + + COUNT ( * ) * + - 70 + COALESCE ( - ( + 49 ), + ( + 27 ) ) + 73, MAX ( + + 2 ) + - ( + 39 ) AS col2
----
386
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT - MAX( + - 64 ) * + MIN( ALL - 54 ) - - 51
----
-3405

skipif mysql # not compatible
query I rowsort label-4301
SELECT - MAX ( + - 64 ) * + MIN ( ALL - 54 ) - - 51
----
-3405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT COUNT( * ) * 19 DIV 6
----
3

skipif mysql # not compatible
query I rowsort label-4302
SELECT COUNT ( * ) * 19 / 6
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT 20 DIV COALESCE ( + 20, + 19 + + 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4303
SELECT 20 / COALESCE ( + 20, + 19 + + 43 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT ( + COUNT( * ) ) + + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT ( + COUNT ( * ) ) + + 38 AS col1
----
39

query I rowsort
SELECT DISTINCT - 32 + 5
----
-27

query I rowsort
SELECT 55 * + + 75
----
4125

query I rowsort
SELECT - 95 * + 61 + - 87 AS col1
----
-5882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4308
SELECT - 1 * 24 * + + CAST( NULL AS SIGNED ) + 22 * + 27 * - COUNT( * ) / - + 64 * 52, 83 AS col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-4308
SELECT - 1 * 24 * + + CAST ( NULL AS INTEGER ) + 22 * + 27 * - COUNT ( * ) / - + 64 * 52, 83 AS col2
----
NULL
83

query II rowsort
SELECT + 5 AS col2, - 19 * + 96 AS col2
----
5
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT SUM( + - 72 ) + 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4310
SELECT SUM ( + - 72 ) + 71 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT COUNT( * ) * - 85 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4311
SELECT COUNT ( * ) * - 85 AS col2
----
-85

query II rowsort
SELECT - 76, 52 AS col2
----
-76
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT 49 * SUM( - 47 ) + + + 34 * 49
----
-637

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT 49 * SUM ( - 47 ) + + + 34 * 49
----
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT - MAX( + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-4314
SELECT - MAX ( + 93 )
----
-93

query I rowsort
SELECT 68 + + 0 AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4316
SELECT + 51 + - - 69 / + 46 + + CAST( - 68 AS DECIMAL ) + - CASE 13 WHEN + 43 THEN + COUNT( * ) ELSE + 66 + CASE - COALESCE ( - + 36, + 24 ) WHEN 3 * + 18 THEN NULL WHEN ( + 58 ) THEN - CASE - - COUNT( * ) WHEN + 57 + - - 0 * - 27 * + 98 THEN - 44 + - 23 + + ( + 60 ) END WHEN - 89 THEN - 78 * - 42 - + 87 END / 87 END - 42 * + - NULLIF ( + AVG ( + 75 ), + 73 ) * - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT + 51 + - - 69 / + 46 + + CAST ( - 68 AS REAL ) + - CASE 13 WHEN + 43 THEN + COUNT ( * ) ELSE + 66 + CASE - COALESCE ( - + 36, + 24 ) WHEN 3 * + 18 THEN NULL WHEN ( + 58 ) THEN - CASE - - COUNT ( * ) WHEN + 57 + - - 0 * - 27 * + 98 THEN - 44 + - 23 + + ( + 60 ) END WHEN - 89 THEN - 78 * - 42 - + 87 END / 87 END - 42 * + - NULLIF ( + AVG ( + 75 ), + 73 ) * - + 29
----
NULL

query I rowsort
SELECT + 25 + - 57
----
-32

query I rowsort
SELECT - 64 + + - 32
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - COUNT( * ) - CASE 26 WHEN + - MAX( ( + 83 ) ) / 89 * - + 53 + - COUNT( * ) THEN - + 5 * ( - + ( - 92 ) ) - + 86 / - COUNT( * ) END + 70 + + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT - COUNT ( * ) - CASE 26 WHEN + - MAX ( ( + 83 ) ) / 89 * - + 53 + - COUNT ( * ) THEN - + 5 * ( - + ( - 92 ) ) - + 86 / - COUNT ( * ) END + 70 + + 77 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 18 + + 74 - NULLIF ( 45, 8 + - + 49 ) * + + 87
----
-3823

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL SUM( - 99 ) + + 46 AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL SUM ( - 99 ) + + 46 AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT DISTINCT + 38 + 50 DIV 7 * - 53
----
-333

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT + 38 + 50 / 7 * - 53
----
-333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 32 + - ( + CAST( + - 66 AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 32 + - ( + CAST ( + - 66 AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL - COUNT( * ) + - 71
----
-72

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - COUNT ( * ) + - 71
----
-72

query I rowsort
SELECT 16 + - 28 + - 4 + 99
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT NULLIF ( ( - 95 ), + - 98 DIV + 66 ) DIV - 12 + - 43 col0
----
-36

skipif mysql # not compatible
query I rowsort label-4326
SELECT NULLIF ( ( - 95 ), + - 98 / + 66 ) / - 12 + - 43 col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4327
SELECT - CAST( - ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0, COUNT( + 75 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4327
SELECT - CAST ( - ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0, COUNT ( + 75 )
----
NULL
1

query II rowsort
SELECT 5, - 15 AS col0
----
5
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL + 18 + SUM( + 97 )
----
115

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + 18 + SUM ( + 97 )
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4330
SELECT 18 DIV 40 + + NULLIF ( + COUNT( * ), + 42 ) * + ( COUNT( * ) ) AS col0, 53 col2
----
1
53

skipif mysql # not compatible
query II rowsort label-4330
SELECT 18 / 40 + + NULLIF ( + COUNT ( * ), + 42 ) * + ( COUNT ( * ) ) AS col0, 53 col2
----
1
53

query I rowsort
SELECT 23 * + - 41 AS col0
----
-943

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4332
SELECT + 17 DIV - 3 + ( - 71 ) AS col2, - 83 + 91 + - COUNT( * )
----
-76
7

skipif mysql # not compatible
query II rowsort label-4332
SELECT + 17 / - 3 + ( - 71 ) AS col2, - 83 + 91 + - COUNT ( * )
----
-76
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT - 2 * - 12 + + 52 + - + 42 - + 65 * COUNT( * ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - 2 * - 12 + + 52 + - + 42 - + 65 * COUNT ( * ) col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT + 92 * + + 17 + 3 DIV COUNT( * )
----
1567

skipif mysql # not compatible
query I rowsort label-4334
SELECT + 92 * + + 17 + 3 / COUNT ( * )
----
1567

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT COUNT( * ) * + + 39 - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT COUNT ( * ) * + + 39 - - COUNT ( * )
----
40

query I rowsort
SELECT DISTINCT - ( - 61 ) col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT CASE 50 WHEN - + 22 + + - ( + COALESCE ( - + 11, - 8 * + 3, + 82 * - 13 + 62 + - - COUNT( * ) * 70 * + 1 ) ) - 26 THEN 23 + - - COUNT( * ) WHEN ( + 63 ) + + + AVG ( + 4 ) * 91 THEN NULL ELSE NULL END * - 3 + NULLIF ( + 17, + 77 * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT CASE 50 WHEN - + 22 + + - ( + COALESCE ( - + 11, - 8 * + 3, + 82 * - 13 + 62 + - - COUNT ( * ) * 70 * + 1 ) ) - 26 THEN 23 + - - COUNT ( * ) WHEN ( + 63 ) + + + AVG ( + 4 ) * 91 THEN NULL ELSE NULL END * - 3 + NULLIF ( + 17, + 77 * - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL + 56 * 29
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT COUNT( DISTINCT - + COALESCE ( + 78, + 23 ) ) * - 9 * - 65 - - 33 * 32 AS col1
----
1641

skipif mysql # not compatible
query I rowsort label-4339
SELECT COUNT ( DISTINCT - + COALESCE ( + 78, + 23 ) ) * - 9 * - 65 - - 33 * 32 AS col1
----
1641

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT 60 * - COUNT( ALL - + 37 ) - - 65 - - NULLIF ( 73, - 72 ) + - 79 * + - 83 AS col2
----
6635

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT 60 * - COUNT ( ALL - + 37 ) - - 65 - - NULLIF ( 73, - 72 ) + - 79 * + - 83 AS col2
----
6635

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL - 29 * - 75 * + COUNT( - + 57 )
----
2175

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - 29 * - 75 * + COUNT ( - + 57 )
----
2175

query I rowsort
SELECT - 67 * - - 12
----
-804

query I rowsort
SELECT DISTINCT - 38 * - ( - 94 ) AS col0
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + + COUNT( * ) * - 30 col2
----
-30

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + + COUNT ( * ) * - 30 col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4345
SELECT ALL COUNT( * ) DIV - 8 col2
----
0

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL COUNT ( * ) / - 8 col2
----
0

query I rowsort
SELECT - + 35 * - + 25 AS col2
----
875

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT - SUM( + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4347
SELECT - SUM ( + 97 )
----
-97

query I rowsort
SELECT + 18 + + + 23 col1
----
41

query I rowsort
SELECT + 23 * + + 52 AS col1
----
1196

query I rowsort
SELECT + 62 * + + 73 * + 39 AS col1
----
176514

query I rowsort
SELECT + 32 + - 57 * - 6 AS col2
----
374

query I rowsort
SELECT ALL - 58 * - + 65 - - - 82 + + ( 85 ) - + 1 * 46 AS col2
----
3727

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT + COUNT( * ) + 87 + ( - 72 ) * 88 * + - 64 AS col0
----
405592

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + COUNT ( * ) + 87 + ( - 72 ) * 88 * + - 64 AS col0
----
405592

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - - MIN( ALL 56 ) + - 46 * - COUNT( * ) * + + 90 AS col1
----
4196

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - - MIN ( ALL 56 ) + - 46 * - COUNT ( * ) * + + 90 AS col1
----
4196

query I rowsort
SELECT + 89 * + 20 AS col0
----
1780

query I rowsort
SELECT + - 53 * + 19
----
-1007

query I rowsort
SELECT + 64 * - 77 AS col1
----
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL 8 + + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL 8 + + - COUNT ( * )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT + ( + CAST( NULL AS SIGNED ) ) - + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT + ( + CAST ( NULL AS INTEGER ) ) - + + 95
----
NULL

query I rowsort
SELECT + 63 + + 5 AS col1
----
68

query I rowsort
SELECT - 69 * - + 27 * + + ( - 77 ) AS col1
----
-143451

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT ALL 75 DIV + + 10
----
7

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL 75 / + + 10
----
7

query II rowsort
SELECT - NULLIF ( 49, - 98 ), 59 col2
----
-49
59

query II rowsort
SELECT ALL 18 col2, 55 + 31 + 47
----
18
133

query I rowsort
SELECT - ( 26 ) AS col2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4366
SELECT ALL 39 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL 39 / + 97
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT ( - SUM( DISTINCT 51 ) ), + ( COUNT( 42 ) ) AS col0
----
-51
1

skipif mysql # not compatible
query II rowsort label-4367
SELECT ( - SUM ( DISTINCT 51 ) ), + ( COUNT ( 42 ) ) AS col0
----
-51
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4368
SELECT ( - COUNT( * ) ) DIV 90 + + 27 + + + 48 AS col2, 97
----
75
97

skipif mysql # not compatible
query II rowsort label-4368
SELECT ( - COUNT ( * ) ) / 90 + + 27 + + + 48 AS col2, 97
----
75
97

query I rowsort
SELECT ALL + 69 * 70 * + + 87 col1
----
420210

query I rowsort
SELECT - 25 * + 70 + - 61 * + - 24 AS col0
----
-286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4371
SELECT ALL + COUNT( * ) col0, 57 + + + 38 + - 51 + - 29 + - - CASE - 45 WHEN 30 THEN NULL ELSE 47 + - 84 END * - + 89 / + CASE + ( + - 68 ) WHEN + - 76 / - CAST( COUNT( * ) AS SIGNED ) + - + 58 THEN 41 ELSE NULL END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4371
SELECT ALL + COUNT ( * ) col0, 57 + + + 38 + - 51 + - 29 + - - CASE - 45 WHEN 30 THEN NULL ELSE 47 + - 84 END * - + 89 / + CASE + ( + - 68 ) WHEN + - 76 / - CAST ( COUNT ( * ) AS INTEGER ) + - + 58 THEN 41 ELSE NULL END
----
1
NULL

query I rowsort
SELECT DISTINCT 32 * - 51
----
-1632

query I rowsort
SELECT - 43 * + ( - 92 )
----
3956

query I rowsort
SELECT DISTINCT + NULLIF ( + 29, + 60 )
----
29

query I rowsort
SELECT COALESCE ( + 49, + - 33 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT ALL + COUNT( * ), + 10 AS col2
----
1
10

skipif mysql # not compatible
query II rowsort label-4376
SELECT ALL + COUNT ( * ), + 10 AS col2
----
1
10

query I rowsort
SELECT COALESCE ( + + 21, + ( - 13 ) - + 57, - 95 + 59 ) AS col0
----
21

query I rowsort
SELECT DISTINCT + - NULLIF ( 78, + + ( + 9 ) )
----
-78

query I rowsort
SELECT 48 * - 40 + + 34
----
-1886

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT + 25 * - - 0 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4380
SELECT + 25 * - - 0 + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT - - MAX( ALL - 59 ) + + 87 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4381
SELECT - - MAX ( ALL - 59 ) + + 87 AS col2
----
28

query I rowsort
SELECT + + 93 * - 31 col1
----
-2883

query I rowsort
SELECT - 82 + - 1 col2
----
-83

query I rowsort
SELECT - 96 + - 83 AS col0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - MIN( + - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4385
SELECT - MIN ( + - 55 ) AS col0
----
55

query I rowsort
SELECT ALL - - ( + CASE - + 49 WHEN 48 THEN + 0 ELSE - - 7 * + 32 END ) + + 90 AS col2
----
314

query I rowsort
SELECT - 49 + 17 - - 82 * + ( 52 ) + 5 * 64 * - 22
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT + - 66 * 21 + COUNT( * ) + - 48 * 11 + + - 83
----
-1996

skipif mysql # not compatible
query I rowsort label-4388
SELECT + - 66 * 21 + COUNT ( * ) + - 48 * 11 + + - 83
----
-1996

query I rowsort
SELECT - + 97 + + - 51
----
-148

query I rowsort
SELECT ALL + ( - 38 ) AS col2
----
-38

query I rowsort
SELECT - - ( 38 ) + + 35 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4392
SELECT CAST( + 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4392
SELECT CAST ( + 56 AS INTEGER ) AS col2
----
56

query I rowsort
SELECT + 10 + - - ( 91 )
----
101

query I rowsort
SELECT - 21 * + 47
----
-987

query I rowsort
SELECT + 27 * + + 77 AS col0
----
2079

query II rowsort
SELECT ALL 33 * + 82, - 7 * + 72 + - 51 AS col1
----
2706
-555

query II rowsort
SELECT 87 AS col0, 12 + - 75 AS col1
----
87
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT - 83 * - 22 + COUNT( * ) AS col0
----
1827

skipif mysql # not compatible
query I rowsort label-4398
SELECT - 83 * - 22 + COUNT ( * ) AS col0
----
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT 27 - ( - COALESCE ( + - 66, MIN( ALL - + 19 ) ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT 27 - ( - COALESCE ( + - 66, MIN ( ALL - + 19 ) ) ) AS col2
----
-39

query II rowsort
SELECT 73 AS col0, + 85
----
73
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4401
SELECT ALL - COUNT( * ) AS col0, 47 * - 96 DIV + 1 AS col1
----
-1
-4512

skipif mysql # not compatible
query II rowsort label-4401
SELECT ALL - COUNT ( * ) AS col0, 47 * - 96 / + 1 AS col1
----
-1
-4512

query II rowsort
SELECT DISTINCT - 6 AS col1, 87 AS col1
----
-6
87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4403
SELECT CASE + 13 WHEN - CAST( NULL AS SIGNED ) + - 17 THEN + - 63 WHEN - 83 THEN NULL WHEN COALESCE ( ( + + 47 ), + CAST( 44 AS DECIMAL ) ) THEN NULL END + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT CASE + 13 WHEN - CAST ( NULL AS INTEGER ) + - 17 THEN + - 63 WHEN - 83 THEN NULL WHEN COALESCE ( ( + + 47 ), + CAST ( 44 AS REAL ) ) THEN NULL END + 69 col0
----
NULL

query II rowsort
SELECT + 1 AS col0, - 78
----
1
-78

query I rowsort
SELECT DISTINCT 84 + 88 AS col0
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4406
SELECT ALL 19 + - 3 - + SUM( ALL - + 13 ) * + 18 * + + 1 + + 55 AS col2, 41 - - 77 + + 20 DIV + - 84 AS col1
----
305
118

skipif mysql # not compatible
query II rowsort label-4406
SELECT ALL 19 + - 3 - + SUM ( ALL - + 13 ) * + 18 * + + 1 + + 55 AS col2, 41 - - 77 + + 20 / + - 84 AS col1
----
305
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT + CAST( - 35 AS SIGNED ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4407
SELECT + CAST ( - 35 AS INTEGER ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT + COUNT( DISTINCT + 36 ) + + 0 * - + 91 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4408
SELECT + COUNT ( DISTINCT + 36 ) + + 0 * - + 91 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL + - 6 + + COUNT( * ) - 4 * + 40 * - - COALESCE ( - 26, 71 ) * - 82 * - 47 * 81
----
1298643835

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL + - 6 + + COUNT ( * ) - 4 * + 40 * - - COALESCE ( - 26, 71 ) * - 82 * - 47 * 81
----
1298643835

query II rowsort
SELECT + - 53, - 5 * 29 AS col0
----
-53
-145

query I rowsort
SELECT - 0 + - 10 - + - ( - 5 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4412
SELECT ALL - 64 * 28 DIV 3 AS col1
----
-597

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - 64 * 28 / 3 AS col1
----
-597

query I rowsort
SELECT + ( ( + - 33 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - + COUNT( + 24 ) + 44 - + 50 + + + ( + 47 ) * 96 AS col2
----
4505

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL - + COUNT ( + 24 ) + 44 - + 50 + + + ( + 47 ) * 96 AS col2
----
4505

query I rowsort
SELECT DISTINCT ( + - 36 ) * 6 AS col2
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-4416
SELECT ALL - - 27 AS col1, 14 * COUNT( * ) * + + 87 AS col0
----
27
1218

skipif mysql # not compatible
query II rowsort label-4416
SELECT ALL - - 27 AS col1, 14 * COUNT ( * ) * + + 87 AS col0
----
27
1218

query I rowsort
SELECT NULLIF ( 36, - 57 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4418
SELECT + 51 AS col1, + CAST( NULL AS SIGNED ) * - 27 * + 68 * 66 AS col0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4418
SELECT + 51 AS col1, + CAST ( NULL AS INTEGER ) * - 27 * + 68 * 66 AS col0
----
51
NULL

query II rowsort
SELECT ALL - 35, - 87 + - 40 + COALESCE ( - 5, + 4 ) AS col0
----
-35
-132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4420
SELECT DISTINCT + + 64 + + 9 DIV - COUNT( * ) + 88, + 25 AS col2
----
143
25

skipif mysql # not compatible
query II rowsort label-4420
SELECT DISTINCT + + 64 + + 9 / - COUNT ( * ) + 88, + 25 AS col2
----
143
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4421
SELECT ALL - + COUNT( * ) + - - CAST( - - 84 AS SIGNED ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - + COUNT ( * ) + - - CAST ( - - 84 AS INTEGER ) AS col2
----
83

query I rowsort
SELECT + 19 * + CASE + 91 WHEN - + 35 THEN + NULLIF ( + 27, 11 ) + + - 1 + + - 89 + - 50 * - 98 + - + 10 * - - 8 ELSE - 84 END * - - 50 AS col2
----
-79800

query I rowsort
SELECT ALL + 6 + 86 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4424
SELECT - CASE - - 9 WHEN + 27 THEN 10 + 6 WHEN - COUNT( * ) * + COUNT( * ) * + 52 + CAST( NULL AS SIGNED ) * - 52 * - 0 THEN NULL END, 94 * + ( - 85 ) AS col1
----
NULL
-7990

skipif mysql # not compatible
query II rowsort label-4424
SELECT - CASE - - 9 WHEN + 27 THEN 10 + 6 WHEN - COUNT ( * ) * + COUNT ( * ) * + 52 + CAST ( NULL AS INTEGER ) * - 52 * - 0 THEN NULL END, 94 * + ( - 85 ) AS col1
----
NULL
-7990

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT 2 DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT 2 / - 28
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4426
SELECT ALL - CAST( NULL AS SIGNED ) * - + 94 col1, - 55
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-4426
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 94 col1, - 55
----
NULL
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT - + COALESCE ( 64, - 67 * - 53 DIV + 42 )
----
-64

skipif mysql # not compatible
query I rowsort label-4427
SELECT - + COALESCE ( 64, - 67 * - 53 / + 42 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT + COUNT( - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4428
SELECT + COUNT ( - 38 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT ALL + 65 - - + ( NULLIF ( - CAST( NULL AS SIGNED ), - 52 * + 66 * + 79 ) ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + 65 - - + ( NULLIF ( - CAST ( NULL AS INTEGER ), - 52 * + 66 * + 79 ) ) + + 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4430
SELECT - 83 * - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) - + 63 * ( - + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT - 83 * - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) - + 63 * ( - + 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL + + COUNT( * ) * 18 col2
----
18

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + + COUNT ( * ) * 18 col2
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT 29 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT 29 / 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT 39 - - + 24 AS col2, COUNT( * ) / + CASE - - 51 WHEN - 31 / - ( - AVG ( ALL + ( + 84 ) ) ) + 26 / + 79 - + ( + 33 ) + - + 52 * - - 13 * + 26 - 33 THEN NULL WHEN 64 THEN - - 3 + - ( - 91 ) ELSE NULL END AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4433
SELECT 39 - - + 24 AS col2, COUNT ( * ) / + CASE - - 51 WHEN - 31 / - ( - AVG ( ALL + ( + 84 ) ) ) + 26 / + 79 - + ( + 33 ) + - + 52 * - - 13 * + 26 - 33 THEN NULL WHEN 64 THEN - - 3 + - ( - 91 ) ELSE NULL END AS col2
----
63
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4434
SELECT 74 * 5, COUNT( * ) col1
----
370
1

skipif mysql # not compatible
query II rowsort label-4434
SELECT 74 * 5, COUNT ( * ) col1
----
370
1

query I rowsort
SELECT 58 + - 45 + - - 59 * + - 62 * + ( 0 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4436
SELECT 64 * + - COUNT( * ) DIV + COUNT( * ), - MIN( DISTINCT - - 26 ) * COUNT( - COALESCE ( - - 87, 63 + - - COALESCE ( + + 13, + 21 + 61 ) + 18 ) ) AS col2
----
-64
-26

skipif mysql # not compatible
query II rowsort label-4436
SELECT 64 * + - COUNT ( * ) / + COUNT ( * ), - MIN ( DISTINCT - - 26 ) * COUNT ( - COALESCE ( - - 87, 63 + - - COALESCE ( + + 13, + 21 + 61 ) + 18 ) ) AS col2
----
-64
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4437
SELECT DISTINCT 79 * 5 AS col1, - 78 * - 86 + + 8 * - 60 / + - AVG ( ALL - - 30 ) * + 50 + - CAST( NULL AS DECIMAL ) AS col2
----
395
NULL

skipif mysql # not compatible
query II rowsort label-4437
SELECT DISTINCT 79 * 5 AS col1, - 78 * - 86 + + 8 * - 60 / + - AVG ( ALL - - 30 ) * + 50 + - CAST ( NULL AS REAL ) AS col2
----
395
NULL

query I rowsort
SELECT ALL 32 * + 36 * - - 39 * 87
----
3908736

query I rowsort
SELECT ALL 78 + - 41 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL + + CAST( + - 45 AS SIGNED ) + + 48 + + ( + - 54 ) * + ( - COUNT( * ) ) * - + 47
----
-2535

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL + + CAST ( + - 45 AS INTEGER ) + + 48 + + ( + - 54 ) * + ( - COUNT ( * ) ) * - + 47
----
-2535

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL 68 + - 31 * + - MIN( - - 63 )
----
2021

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL 68 + - 31 * + - MIN ( - - 63 )
----
2021

query I rowsort
SELECT DISTINCT ( + - ( - 44 ) ) + + 90 col1
----
134

query II rowsort
SELECT 60 * - 44 AS col2, 88 AS col0
----
-2640
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT ( + 80 ) * COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT ( + 80 ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4445
SELECT 30 * - 51 + - 65 + - - 58 * 73 DIV - + 73
----
-1653

skipif mysql # not compatible
query I rowsort label-4445
SELECT 30 * - 51 + - 65 + - - 58 * 73 / - + 73
----
-1653

query II rowsort
SELECT 39 * 99, 38 + + ( - 60 ) col1
----
3861
-22

query I rowsort
SELECT 70 + - + 89 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4448
SELECT 16 + 72 * + CAST( NULL AS SIGNED ) * - - 1 * + + COUNT( - 70 ) - - SUM( - - ( + 51 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT 16 + 72 * + CAST ( NULL AS INTEGER ) * - - 1 * + + COUNT ( - 70 ) - - SUM ( - - ( + 51 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL - COUNT( DISTINCT + - 51 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - COUNT ( DISTINCT + - 51 ) col0
----
-1

query I rowsort
SELECT 9 * - - 99 AS col1
----
891

query I rowsort
SELECT ALL 41 * 90
----
3690

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4452
SELECT ALL + 28 DIV - 82 * + - COALESCE ( - - 37, - CAST( NULL AS SIGNED ) * - 49 ) AS col2, 12 AS col2
----
0
12

skipif mysql # not compatible
query II rowsort label-4452
SELECT ALL + 28 / - 82 * + - COALESCE ( - - 37, - CAST ( NULL AS INTEGER ) * - 49 ) AS col2, 12 AS col2
----
0
12

query II rowsort
SELECT - 25 AS col1, + 93
----
-25
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - CASE - 48 WHEN + + 28 + - 50 THEN NULL WHEN + + MIN( DISTINCT 32 ) THEN NULL WHEN + 83 THEN - 93 + - + 24 + - + ( + 40 ) END / + 27 * - - 98 + - + ( - + 86 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT - CASE - 48 WHEN + + 28 + - 50 THEN NULL WHEN + + MIN ( DISTINCT 32 ) THEN NULL WHEN + 83 THEN - 93 + - + 24 + - + ( + 40 ) END / + 27 * - - 98 + - + ( - + 86 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL NULLIF ( - 36, + - 72 * - 93 * + + COALESCE ( + - COALESCE ( 50, - - 95 * 40 + 7 * + 77 * - 53 ), COUNT( * ) / - 62, - 16, + 83 + - 96 * 24 * + - AVG ( ALL + 88 ) ) + + + 40 + - 65 )
----
-36

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL NULLIF ( - 36, + - 72 * - 93 * + + COALESCE ( + - COALESCE ( 50, - - 95 * 40 + 7 * + 77 * - 53 ), COUNT ( * ) / - 62, - 16, + 83 + - 96 * 24 * + - AVG ( ALL + 88 ) ) + + + 40 + - 65 )
----
-36

query II rowsort
SELECT DISTINCT - 56 + + - 24 - - - 82 col1, - 54
----
-162
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT - CAST( NULL AS SIGNED ) / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT - CAST ( NULL AS INTEGER ) / 34
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4458
SELECT - 73 DIV - NULLIF ( - + 99, + - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT - 73 / - NULLIF ( - + 99, + - 69 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT - CAST( - 41 AS SIGNED ) * 86 * 16
----
56416

skipif mysql # not compatible
query I rowsort label-4459
SELECT - CAST ( - 41 AS INTEGER ) * 86 * 16
----
56416

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - 2 + - - ( 14 ) + - 96 + + - 63 + - + COUNT( + 44 )
----
-148

skipif mysql # not compatible
query I rowsort label-4460
SELECT - 2 + - - ( 14 ) + - 96 + + - 63 + - + COUNT ( + 44 )
----
-148

query I rowsort
SELECT ( 71 ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL - - 13 * 66 + + COALESCE ( + 24, 6, - 56 * 42 * + 47 * + COUNT( ALL 82 ) ) AS col2
----
882

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - - 13 * 66 + + COALESCE ( + 24, 6, - 56 * 42 * + 47 * + COUNT ( ALL 82 ) ) AS col2
----
882

query II rowsort
SELECT ALL + 26 AS col0, 30 + 19 AS col2
----
26
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT 72 * - + 84 * + 0 + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT 72 * - + 84 * + 0 + + COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4465
SELECT ALL + CAST( NULL AS SIGNED ), - 51 AS col1
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-4465
SELECT ALL + CAST ( NULL AS INTEGER ), - 51 AS col1
----
NULL
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4466
SELECT + COUNT( * ) col1, + 15
----
1
15

skipif mysql # not compatible
query II rowsort label-4466
SELECT + COUNT ( * ) col1, + 15
----
1
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT - ( 20 ) * - 83 + + 73 * + 82 * CAST( NULL AS SIGNED ) / - 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT - ( 20 ) * - 83 + + 73 * + 82 * CAST ( NULL AS INTEGER ) / - 39 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4468
SELECT COUNT( * ) AS col2, - 0 + - COUNT( DISTINCT + - 9 ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4468
SELECT COUNT ( * ) AS col2, - 0 + - COUNT ( DISTINCT + - 9 ) AS col1
----
1
-1

query I rowsort
SELECT + 85 + 84 + 45
----
214

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT + - MAX( 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4470
SELECT + - MAX ( 18 ) AS col1
----
-18

query I rowsort
SELECT ALL + + 31 * + + 2 - + - 47 col2
----
109

query I rowsort
SELECT DISTINCT + + 7 AS col0
----
7

query I rowsort
SELECT ALL + NULLIF ( + 37, + ( + 83 ) * 23 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT ALL + COUNT( * ), 94 * + - 93 * - - 40 * + 24 AS col0
----
1
-8392320

skipif mysql # not compatible
query II rowsort label-4474
SELECT ALL + COUNT ( * ), 94 * + - 93 * - - 40 * + 24 AS col0
----
1
-8392320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT ALL + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT + 4 DIV + + 22
----
0

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + 4 / + + 22
----
0

query I rowsort
SELECT + 92 * + 50
----
4600

query I rowsort
SELECT DISTINCT 10 * + - 45 * 55
----
-24750

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT ALL 69 * 58 DIV - + 80 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL 69 * 58 / - + 80 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT ( + 96 ) * + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT ( + 96 ) * + COUNT ( * )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4481
SELECT ALL 33 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL 33 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 97 + - 52 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT - CAST( + + 61 AS SIGNED ) * - + 26 col0
----
1586

skipif mysql # not compatible
query I rowsort label-4483
SELECT - CAST ( + + 61 AS INTEGER ) * - + 26 col0
----
1586

query I rowsort
SELECT - ( 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL COUNT( * ) + + 36 * 77 * + 62 + + 46
----
171911

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL COUNT ( * ) + + 36 * 77 * + 62 + + 46
----
171911

query I rowsort
SELECT - 67 * ( - 1 ) AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT ALL ( - CAST( + + 1 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL ( - CAST ( + + 1 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4488
SELECT ALL MAX( ALL + + 89 ), + 20 AS col0
----
89
20

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL MAX ( ALL + + 89 ), + 20 AS col0
----
89
20

query I rowsort
SELECT - 31 * - 60
----
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT DISTINCT + - 82 DIV 85 - - 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + - 82 / 85 - - 72 AS col2
----
72

query I rowsort
SELECT - 46 * - + 41 + 51 col0
----
1937

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT SUM( 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4492
SELECT SUM ( 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4493
SELECT ALL + COALESCE ( - COALESCE ( ( + 8 ), - ( COUNT( * ) ) * - 49 + - 85 - NULLIF ( - + 55, AVG ( DISTINCT - 48 ) + 74 ), + 43 ), + 74 DIV + 1 + + + 26, + 5 * 22 ), - 17 + + 76 * + - 67 - - 87 col1
----
-8
-5022

skipif mysql # not compatible
query II rowsort label-4493
SELECT ALL + COALESCE ( - COALESCE ( ( + 8 ), - ( COUNT ( * ) ) * - 49 + - 85 - NULLIF ( - + 55, AVG ( DISTINCT - 48 ) + 74 ), + 43 ), + 74 / + 1 + + + 26, + 5 * 22 ), - 17 + + 76 * + - 67 - - 87 col1
----
-8
-5022

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT ALL + MIN( ALL + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL + MIN ( ALL + 51 )
----
51

query I rowsort
SELECT - + 64 * + 76
----
-4864

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL + + MIN( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + + MIN ( 36 )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4497
SELECT - 99 * COALESCE ( - 38, + CAST( NULL AS SIGNED ) * - 57 DIV - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) DIV + 69, - 18 ) * + - 86 - + + ( 30 )
----
-323562

skipif mysql # not compatible
query I rowsort label-4497
SELECT - 99 * COALESCE ( - 38, + CAST ( NULL AS INTEGER ) * - 57 / - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / + 69, - 18 ) * + - 86 - + + ( 30 )
----
-323562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT + CAST( - AVG ( 64 ) AS SIGNED ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-4498
SELECT + CAST ( - AVG ( 64 ) AS INTEGER ) col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4499
SELECT ALL + - 40 * - 49 * + + 39 + - COUNT( * ) - 24 DIV - + 62
----
76439

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + - 40 * - 49 * + + 39 + - COUNT ( * ) - 24 / - + 62
----
76439

query I rowsort
SELECT - + 79 * + + 21 + + 71 AS col0
----
-1588

query I rowsort
SELECT 10 + - 82
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT DISTINCT - + COUNT( - 78 ) * - 63 + + 21 * + 44 col0
----
987

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT - + COUNT ( - 78 ) * - 63 + + 21 * + 44 col0
----
987

query I rowsort
SELECT ALL + - 27 + + 24 AS col2
----
-3

query I rowsort
SELECT - - 0 * + 68 + - 73 * - 0 + - 60 col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT 15 * - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4505
SELECT 15 * - COUNT ( * ) AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT + 29 + - ( + + CAST( - 83 AS SIGNED ) ) + - 0 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 29 + - ( + + CAST ( - 83 AS INTEGER ) ) + - 0 AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT ( 8 ) * 92 + 28 + + 59 + - + 29 + - 66 - + + CAST( NULL AS SIGNED ) - - ( + + 27 ) + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT ( 8 ) * 92 + 28 + + 59 + - + 29 + - 66 - + + CAST ( NULL AS INTEGER ) - - ( + + 27 ) + - 73
----
NULL

query I rowsort
SELECT ALL 63 + + 92 * + 22 AS col1
----
2087

query II rowsort
SELECT ALL - 11 + - + 33 * - 27 AS col2, 64 * + - 89 * 25
----
880
-142400

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT DISTINCT 56 DIV - ( - - 27 )
----
-2

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT 56 / - ( - - 27 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL COUNT( * ) + - 43
----
-42

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL COUNT ( * ) + - 43
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT + 17 * - COUNT( * ) * - 73 + NULLIF ( 33, 0 + - 72 * 60 ) AS col2
----
1274

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 17 * - COUNT ( * ) * - 73 + NULLIF ( 33, 0 + - 72 * 60 ) AS col2
----
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT DISTINCT 85 DIV + - 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT 85 / + - 50 AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT 57 DIV - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4514
SELECT 57 / - COUNT ( * )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4515
SELECT 93 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4515
SELECT 93 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 64 * 77 AS col2
----
4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL 55 + + 40 + - CAST( NULL AS SIGNED ) + + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL 55 + + 40 + - CAST ( NULL AS INTEGER ) + + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4518
SELECT ALL 73 * COUNT( * ) DIV - COALESCE ( + 38, + 15, + - 74, + 17 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL 73 * COUNT ( * ) / - COALESCE ( + 38, + 15, + - 74, + 17 ) AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4519
SELECT ALL ( + 73 ) * ( - - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL ( + 73 ) * ( - - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 78 - - 95 * + + 77 AS col2
----
7393

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL - MIN( DISTINCT 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - MIN ( DISTINCT 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT COUNT( * ) * 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4522
SELECT COUNT ( * ) * 32 AS col2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT ALL 47 DIV 12 col2
----
3

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL 47 / 12 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT DISTINCT 64 * COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT 64 * COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4525
SELECT COUNT( * ) DIV MIN( ALL + 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4525
SELECT COUNT ( * ) / MIN ( ALL + 86 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT + 95 DIV + 71 + 12
----
13

skipif mysql # not compatible
query I rowsort label-4526
SELECT + 95 / + 71 + 12
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4527
SELECT 48 * - CAST( ( MIN( DISTINCT + 11 ) ) AS SIGNED ) AS col0
----
-528

skipif mysql # not compatible
query I rowsort label-4527
SELECT 48 * - CAST ( ( MIN ( DISTINCT + 11 ) ) AS INTEGER ) AS col0
----
-528

query I rowsort
SELECT 84 + 83 col1
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT ALL + 69 DIV 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + 69 / 53 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL 57 + + CAST( - 83 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL 57 + + CAST ( - 83 AS INTEGER )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT ALL - NULLIF ( 62, + CAST( NULL AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL - NULLIF ( 62, + CAST ( NULL AS INTEGER ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT - MIN( ALL - 23 ) + 91
----
114

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT - MIN ( ALL - 23 ) + 91
----
114

query I rowsort
SELECT DISTINCT - 24 + 46
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL 15 + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL 15 + + COUNT ( * )
----
16

query I rowsort
SELECT 83 * 73
----
6059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT ALL - 6 + CAST( NULL AS SIGNED ) * 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - 6 + CAST ( NULL AS INTEGER ) * 51 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 29, 36, 72 )
----
29

query I rowsort
SELECT DISTINCT - 97 + 70
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT MAX( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT MAX ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL - SUM( DISTINCT 42 ) + + 54
----
12

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - SUM ( DISTINCT 42 ) + + 54
----
12

query I rowsort
SELECT 73 - 12 * 46 AS col1
----
-479

query I rowsort
SELECT 9 * - 63 AS col1
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT - 62 - MAX( - 6 + 87 * 15 ) AS col0
----
-1361

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT - 62 - MAX ( - 6 + 87 * 15 ) AS col0
----
-1361

query I rowsort
SELECT DISTINCT - 89 * + 26 AS col2
----
-2314

query I rowsort
SELECT ALL - 80 - - 44 AS col1
----
-36

query I rowsort
SELECT 99 * - 42 AS col0
----
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL MAX( 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL MAX ( 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT - COUNT( ALL - CASE + ( + 7 ) WHEN 79 * - 28 THEN 28 END ) - - 10
----
10

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - COUNT ( ALL - CASE + ( + 7 ) WHEN 79 * - 28 THEN 28 END ) - - 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL MIN( 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL MIN ( 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4550
SELECT ALL COUNT( * ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL COUNT ( * ) / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT COUNT( * ) - 92
----
-91

skipif mysql # not compatible
query I rowsort label-4551
SELECT COUNT ( * ) - 92
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL MIN( 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL MIN ( 61 ) AS col1
----
61

query I rowsort
SELECT 88 * 53
----
4664

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT COUNT( * ) * ( 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4554
SELECT COUNT ( * ) * ( 67 ) AS col2
----
67

query I rowsort
SELECT + 19 * + 28
----
532

query I rowsort
SELECT ALL - ( + 2 ) * + 95
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT + 59 + - COUNT( * ) * 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT + 59 + - COUNT ( * ) * 59 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT ( 71 ) DIV 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4558
SELECT ( 71 ) / 39 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - SUM( 97 ) * 63 AS col0
----
-6111

skipif mysql # not compatible
query I rowsort label-4559
SELECT - SUM ( 97 ) * 63 AS col0
----
-6111

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT 60 + + MAX( + 50 ) col2
----
110

skipif mysql # not compatible
query I rowsort label-4560
SELECT 60 + + MAX ( + 50 ) col2
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT DISTINCT + 49 DIV + 18 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4561
SELECT DISTINCT + 49 / + 18 AS col1
----
2

query I rowsort
SELECT ALL + + 61 * 8 col0
----
488

query I rowsort
SELECT ALL 69 * + 42 AS col1
----
2898

query I rowsort
SELECT ALL 78 * 12
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT + 69 * - MAX( ALL 80 + 88 ) + - ( 52 )
----
-11644

skipif mysql # not compatible
query I rowsort label-4565
SELECT + 69 * - MAX ( ALL 80 + 88 ) + - ( 52 )
----
-11644

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4566
SELECT ALL - 56 * + CASE 93 / + AVG ( DISTINCT ( - 11 ) ) WHEN + 90 THEN COUNT( * ) WHEN COUNT( * ) / CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - 56 * + CASE 93 / + AVG ( DISTINCT ( - 11 ) ) WHEN + 90 THEN COUNT ( * ) WHEN COUNT ( * ) / CAST ( NULL AS REAL ) THEN NULL ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT + + 81 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT + + 81 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT ALL - COUNT( * ) * + 54 + CAST( + ( + 72 ) AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL - COUNT ( * ) * + 54 + CAST ( + ( + 72 ) AS INTEGER ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT + ( 79 ) DIV MIN( 32 * - 62 ) - + ( 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-4569
SELECT + ( 79 ) / MIN ( 32 * - 62 ) - + ( 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT COUNT( * ) * + 92 + + 89 AS col1
----
181

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT COUNT ( * ) * + 92 + + 89 AS col1
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL COUNT( * ) * 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL COUNT ( * ) * 84 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT + CAST( NULL AS SIGNED ) / + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT + CAST ( NULL AS INTEGER ) / + 43 AS col0
----
NULL

query I rowsort
SELECT ALL + - 62 * + 83 + 60 col2
----
-5086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT DISTINCT - + CAST( - 30 AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) + - 77 / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT - + CAST ( - 30 AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) + - 77 / 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT + - COALESCE ( - COUNT( * ), 10 ) * 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT + - COALESCE ( - COUNT ( * ), 10 ) * 23 AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT ALL 60 * + ( 83 DIV + MAX( ALL - 26 * 58 ) + + 96 ) + - 37 DIV - 68
----
5760

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL 60 * + ( 83 / + MAX ( ALL - 26 * 58 ) + + 96 ) + - 37 / - 68
----
5760

query I rowsort
SELECT + 52 * - 97 - + 71
----
-5115

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT CASE 13 WHEN - 70 * - 88 - 5 THEN + COALESCE ( - COUNT( * ), 4 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT CASE 13 WHEN - 70 * - 88 - 5 THEN + COALESCE ( - COUNT ( * ), 4 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 10 * - - 45
----
450

query I rowsort
SELECT DISTINCT 45 * - ( ( - 56 ) ) col0
----
2520

query I rowsort
SELECT ALL 90 * + 3 + + 53
----
323

query I rowsort
SELECT 75 * + 51 + + 63 AS col1
----
3888

query I rowsort
SELECT + CASE - 34 WHEN 8 - 94 THEN 19 + - 96 END * 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT + 9 * + COUNT( * ) * + ( - ( 62 ) ) + - COUNT( * ) AS col1
----
-559

skipif mysql # not compatible
query I rowsort label-4584
SELECT + 9 * + COUNT ( * ) * + ( - ( 62 ) ) + - COUNT ( * ) AS col1
----
-559

query I rowsort
SELECT + 62 + - 8
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT 12 * + 51 - CASE - 55 - + 96 WHEN - 47 * ( + COUNT( ALL 11 ) ) THEN - 43 + 27 / 40 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT 12 * + 51 - CASE - 55 - + 96 WHEN - 47 * ( + COUNT ( ALL 11 ) ) THEN - 43 + 27 / 40 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT ALL + 21 DIV 60 * - 69
----
0

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + 21 / 60 * - 69
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT - CAST( NULL AS SIGNED ) + - 34 * + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT - CAST ( NULL AS INTEGER ) + - 34 * + 41 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4589
SELECT - CAST( + 85 AS SIGNED ) DIV - ( 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4589
SELECT - CAST ( + 85 AS INTEGER ) / - ( 50 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT DISTINCT CASE + 21 WHEN + COALESCE ( + 88, - COUNT( DISTINCT 71 ) ) * 16 + 46 THEN NULL WHEN 48 + 51 * - 40 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT CASE + 21 WHEN + COALESCE ( + 88, - COUNT ( DISTINCT 71 ) ) * 16 + 46 THEN NULL WHEN 48 + 51 * - 40 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + - 49, 71, + ( - 4 ) ) col2
----
-49

query I rowsort
SELECT - 32 + + 73 + + 36
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL MIN( ALL - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL MIN ( ALL - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL + COALESCE ( + NULLIF ( + 16, - COUNT( * ) * + ( 99 * - 40 ) ), ( COUNT( * ) ) * - 19 ) * - COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + COALESCE ( + NULLIF ( + 16, - COUNT ( * ) * + ( 99 * - 40 ) ), ( COUNT ( * ) ) * - 19 ) * - COUNT ( * ) AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4595
SELECT - 2 * - - 5 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT - 2 * - - 5 / + 44
----
0

query I rowsort
SELECT - 60 + + - 96 AS col1
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT ALL COALESCE ( - + COALESCE ( 45, CAST( NULL AS SIGNED ) ), 62 + - 24 )
----
-45

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL COALESCE ( - + COALESCE ( 45, CAST ( NULL AS INTEGER ) ), 62 + - 24 )
----
-45

query I rowsort
SELECT DISTINCT + 31 * - - NULLIF ( - 79, 20 )
----
-2449

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL ( SUM( 72 ) )
----
72

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL ( SUM ( 72 ) )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4600
SELECT - 52 + - + 99 + CASE + 67 WHEN - COUNT( 0 ) * + ( - 47 * COUNT( * ) ) THEN 23 END * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT - 52 + - + 99 + CASE + 67 WHEN - COUNT ( 0 ) * + ( - 47 * COUNT ( * ) ) THEN 23 END * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + NULLIF ( + 99, + ( - MAX( DISTINCT + 4 ) ) ) + + 1 * + 69
----
168

skipif mysql # not compatible
query I rowsort label-4601
SELECT + NULLIF ( + 99, + ( - MAX ( DISTINCT + 4 ) ) ) + + 1 * + 69
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT - + COUNT( * ) * + - ( COALESCE ( NULLIF ( + 86, 58 ), - 97 - + 22 ) )
----
86

skipif mysql # not compatible
query I rowsort label-4602
SELECT - + COUNT ( * ) * + - ( COALESCE ( NULLIF ( + 86, 58 ), - 97 - + 22 ) )
----
86

query I rowsort
SELECT ALL + 20 * + 98
----
1960

query I rowsort
SELECT DISTINCT + 4 * - 85 col0
----
-340

query I rowsort
SELECT ALL + 40 + 0 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT + + MAX( ALL 50 ) + 24 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + + MAX ( ALL 50 ) + 24 AS col1
----
74

query I rowsort
SELECT ALL - + ( - 44 ) + + 78 * - 26 AS col1
----
-1984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT ALL + CAST( NULL AS SIGNED ) + AVG ( ALL 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL + CAST ( NULL AS INTEGER ) + AVG ( ALL 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - COUNT( + 52 ) + - MIN( ALL - ( 4 ) ) col1
----
3

skipif mysql # not compatible
query I rowsort label-4609
SELECT - COUNT ( + 52 ) + - MIN ( ALL - ( 4 ) ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - CASE + + 60 WHEN - ( + COUNT( * ) ) + 93 THEN NULL ELSE 61 END - + MAX( - 44 + NULLIF ( + 45, - 74 ) * 14 )
----
-647

skipif mysql # not compatible
query I rowsort label-4610
SELECT - CASE + + 60 WHEN - ( + COUNT ( * ) ) + 93 THEN NULL ELSE 61 END - + MAX ( - 44 + NULLIF ( + 45, - 74 ) * 14 )
----
-647

query I rowsort
SELECT - 82 + + 86 AS col2
----
4

query I rowsort
SELECT ALL 26 * - ( 41 ) AS col0
----
-1066

query I rowsort
SELECT DISTINCT + - 91 * + 18 + - 38 * + 36
----
-3006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT ALL - 1 / - + 51 * - 28 - - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - 1 / - + 51 * - 28 - - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + - 58 + - 71 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT MIN( 32 ) * 97
----
3104

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT MIN ( 32 ) * 97
----
3104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4617
SELECT ALL + + ( - - COALESCE ( CASE 65 WHEN 73 THEN - COALESCE ( 61, - 1 ) DIV ( + 63 ) END, + CASE NULLIF ( CASE - 72 WHEN 13 THEN - 7 DIV 96 END, - 30 ) WHEN COUNT( * ) THEN 8 WHEN CASE 22 WHEN COUNT( * ) THEN - 17 END * 61 THEN 4 * 11 ELSE + 26 END * + 85 ) ) AS col1
----
2210

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + + ( - - COALESCE ( CASE 65 WHEN 73 THEN - COALESCE ( 61, - 1 ) / ( + 63 ) END, + CASE NULLIF ( CASE - 72 WHEN 13 THEN - 7 / 96 END, - 30 ) WHEN COUNT ( * ) THEN 8 WHEN CASE 22 WHEN COUNT ( * ) THEN - 17 END * 61 THEN 4 * 11 ELSE + 26 END * + 85 ) ) AS col1
----
2210

query I rowsort
SELECT DISTINCT 96 * 47 AS col2
----
4512

onlyif mysql # DIV for integer division: 
query I rowsort label-4619
SELECT + 68 DIV 91 - - + 76 col1
----
76

skipif mysql # not compatible
query I rowsort label-4619
SELECT + 68 / 91 - - + 76 col1
----
76

query I rowsort
SELECT ( - + 5 ) AS col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT + 5 DIV 81 + + - 41 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4621
SELECT + 5 / 81 + + - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT + COUNT( * ) * - 56
----
-56

skipif mysql # not compatible
query I rowsort label-4622
SELECT + COUNT ( * ) * - 56
----
-56

query I rowsort
SELECT + COALESCE ( - 5, - - 93 ) AS col0
----
-5

query I rowsort
SELECT DISTINCT 92 * + 40 * 26 - + 85 col0
----
95595

query I rowsort
SELECT + NULLIF ( + 58, + - ( - 46 ) ) * + 58 AS col1
----
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + 50 * - - 83 * - COUNT( * ) * - 91 AS col2
----
377650

skipif mysql # not compatible
query I rowsort label-4626
SELECT + 50 * - - 83 * - COUNT ( * ) * - 91 AS col2
----
377650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT - 68 + - 62 * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + COUNT( - 47 ) + + 65 * COUNT( NULLIF ( 47, - 32 / + 13 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - 68 + - 62 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + COUNT ( - 47 ) + + 65 * COUNT ( NULLIF ( 47, - 32 / + 13 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT ALL + ( - CAST( 44 AS SIGNED ) ) * - 46 - 14 * 0 AS col2
----
2024

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + ( - CAST ( 44 AS INTEGER ) ) * - 46 - 14 * 0 AS col2
----
2024

query I rowsort
SELECT + 15 * + ( - - 32 ) * 88
----
42240

query I rowsort
SELECT ALL + 17 * + 76 * + 45 AS col2
----
58140

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT CASE + 67 WHEN 21 THEN - ( + 69 ) ELSE 40 * COUNT( * ) END * + 63 AS col0
----
2520

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT CASE + 67 WHEN 21 THEN - ( + 69 ) ELSE 40 * COUNT ( * ) END * + 63 AS col0
----
2520

query I rowsort
SELECT - 84 * - + 43
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL ( 46 ) * + SUM( DISTINCT - ( 64 ) ) + 81 * + ( - 37 + + 78 ) AS col2
----
377

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL ( 46 ) * + SUM ( DISTINCT - ( 64 ) ) + 81 * + ( - 37 + + 78 ) AS col2
----
377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4634
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) * - 79 * - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) * - 79 * - 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT + 72 - + - ( COUNT( * ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-4635
SELECT + 72 - + - ( COUNT ( * ) ) AS col0
----
73

query I rowsort
SELECT ALL COALESCE ( + 95, - - ( 69 ) )
----
95

query I rowsort
SELECT + 48 - 56 + - - 7 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4638
SELECT + 66 DIV + ( - 75 )
----
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT + 66 / + ( - 75 )
----
0

query II rowsort
SELECT 47 AS col2, 86 + + + 7 AS col0
----
47
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4640
SELECT ALL - CAST( NULL AS DECIMAL ) * + COUNT( * ) * - + 20 * - COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - CAST ( NULL AS REAL ) * + COUNT ( * ) * - + 20 * - COUNT ( * ) + COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL - 41 * + + COUNT( * ) + - - 81
----
40

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - 41 * + + COUNT ( * ) + - - 81
----
40

query I rowsort
SELECT - + 5 - 23 * + 14 * 31
----
-9987

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT DISTINCT - + COALESCE ( + 79, + 78 * 97 + 49 DIV + 83, NULLIF ( 30, 86 ) ) + 85 DIV 86 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT - + COALESCE ( + 79, + 78 * 97 + 49 / + 83, NULLIF ( 30, 86 ) ) + 85 / 86 AS col1
----
-79

query I rowsort
SELECT 97 * 46
----
4462

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT + COUNT( * ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + COUNT ( * ) + - 52
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT 27 AS col1, - 61 * + COALESCE ( COUNT( DISTINCT 22 ), + COUNT( - 56 ) * 8, 62 ) col0
----
27
-61

skipif mysql # not compatible
query II rowsort label-4647
SELECT 27 AS col1, - 61 * + COALESCE ( COUNT ( DISTINCT 22 ), + COUNT ( - 56 ) * 8, 62 ) col0
----
27
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4648
SELECT - 57 + + COUNT( * ) DIV + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-4648
SELECT - 57 + + COUNT ( * ) / + COUNT ( * )
----
-56

query II rowsort
SELECT + 35 AS col2, 30 - + 36 AS col2
----
35
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL + COUNT( - - 36 ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL + COUNT ( - - 36 ) * + 27
----
27

query I rowsort
SELECT - ( - 87 ) + + + ( 21 ) * + 38 AS col2
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL - - COUNT( * ) + 56 * - + MAX( 36 )
----
-2015

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL - - COUNT ( * ) + 56 * - + MAX ( 36 )
----
-2015

query I rowsort
SELECT - + 23 col2
----
-23

query II rowsort
SELECT DISTINCT - 97 AS col1, 8 AS col1
----
-97
8

query I rowsort
SELECT ALL + - ( + 80 ) * + 24 AS col1
----
-1920

query I rowsort
SELECT ALL + 34 - + 84 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - NULLIF ( + + MAX( - 15 ), 5 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4657
SELECT - NULLIF ( + + MAX ( - 15 ), 5 ) AS col0
----
15

query I rowsort
SELECT DISTINCT + + 76 - - - 80 + - + 12 * - 71
----
848

query I rowsort
SELECT 48 * - 3 AS col1
----
-144

query II rowsort
SELECT + 92 AS col2, 98
----
92
98

query II rowsort
SELECT ALL - 35 AS col0, + 31 AS col2
----
-35
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL + 74 - 68 - + 24 - + MIN( 13 ) * CASE 27 WHEN + 74 THEN NULL ELSE - 62 * + 80 END * - 80 AS col1
----
-5158418

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL + 74 - 68 - + 24 - + MIN ( 13 ) * CASE 27 WHEN + 74 THEN NULL ELSE - 62 * + 80 END * - 80 AS col1
----
-5158418

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT 76 DIV + 2
----
38

skipif mysql # not compatible
query I rowsort label-4663
SELECT 76 / + 2
----
38

query I rowsort
SELECT 12 * + + 13 * 23 * 11 AS col0
----
39468

query I rowsort
SELECT ALL 57 * - 75 AS col2
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT DISTINCT 92 * - COUNT( * ) * - 9
----
828

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT 92 * - COUNT ( * ) * - 9
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT MIN( + 4 ) * - + SUM( DISTINCT 85 )
----
-340

skipif mysql # not compatible
query I rowsort label-4667
SELECT MIN ( + 4 ) * - + SUM ( DISTINCT 85 )
----
-340

query I rowsort
SELECT ALL - 21 * - + 20 AS col0
----
420

query I rowsort
SELECT 48 * 52 - 7 AS col1
----
2489

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL + CASE - - 57 WHEN - 90 + - 77 THEN + MAX( + CASE + 56 WHEN + 56 + + 60 THEN + 82 ELSE 0 * + 84 END ) / + COALESCE ( 93, 94 ) WHEN + 18 THEN - NULLIF ( - 33, 12 + COUNT( * ) * 34 ) * 15 ELSE NULL END * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL + CASE - - 57 WHEN - 90 + - 77 THEN + MAX ( + CASE + 56 WHEN + 56 + + 60 THEN + 82 ELSE 0 * + 84 END ) / + COALESCE ( 93, 94 ) WHEN + 18 THEN - NULLIF ( - 33, 12 + COUNT ( * ) * 34 ) * 15 ELSE NULL END * 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT NULLIF ( NULLIF ( + + 12, - COALESCE ( - 78, - ( - 46 ) ) ), - COUNT( * ) ) + - 74 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4671
SELECT NULLIF ( NULLIF ( + + 12, - COALESCE ( - 78, - ( - 46 ) ) ), - COUNT ( * ) ) + - 74 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT 27 + 26 + - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4672
SELECT 27 + 26 + - COUNT ( * )
----
52

query I rowsort
SELECT COALESCE ( + + 97, - 18 ) * + 26 * 60 + 9
----
151329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT CAST( NULL AS SIGNED ) * 78 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT CAST ( NULL AS INTEGER ) * 78 * 76
----
NULL

query I rowsort
SELECT - ( - 84 ) * + - ( + 0 ) + + 99 + 83 * - 43 AS col0
----
-3470

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-4676
SELECT COUNT ( * ) + + 64
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL - CASE 14 WHEN + 19 * - 16 * 27 THEN - COUNT( DISTINCT - NULLIF ( + 51, + 26 ) ) / - MIN( ALL 93 + NULLIF ( - 22, + 78 - 56 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL - CASE 14 WHEN + 19 * - 16 * 27 THEN - COUNT ( DISTINCT - NULLIF ( + 51, + 26 ) ) / - MIN ( ALL 93 + NULLIF ( - 22, + 78 - 56 ) ) END
----
NULL

query I rowsort
SELECT 27 + - 49 AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT ALL + 45 + - 78 + 26 DIV - COALESCE ( 20, 75 DIV - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 45 + - 78 + 26 / - COALESCE ( 20, 75 / - COUNT ( * ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - + 30 * - + COUNT( * ) * - COUNT( * ) + + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4680
SELECT - + 30 * - + COUNT ( * ) * - COUNT ( * ) + + COUNT ( * ) AS col2
----
-29

query I rowsort
SELECT ALL - 65 + + - 52 * - + 16 + + 21 * 60 AS col0
----
2027

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT 35 + - + COUNT( * ) * + ( + - 59 )
----
94

skipif mysql # not compatible
query I rowsort label-4682
SELECT 35 + - + COUNT ( * ) * + ( + - 59 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT ALL COALESCE ( + 78, + 3 + - 99 - CASE + 81 WHEN CASE + 79 WHEN + CASE 26 WHEN - 49 + 84 THEN COALESCE ( ( CAST( + COUNT( ALL 15 ) AS SIGNED ) ), + 19 / - CASE - 18 WHEN + 79 THEN NULL ELSE - ( 45 ) * 73 END, 46 ) + - 25 WHEN - 68 THEN - 59 ELSE NULL END THEN - MAX( - 32 ) ELSE 46 END + 62 THEN 1 * - 39 END ) + 25 * - 4
----
-22

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL COALESCE ( + 78, + 3 + - 99 - CASE + 81 WHEN CASE + 79 WHEN + CASE 26 WHEN - 49 + 84 THEN COALESCE ( ( CAST ( + COUNT ( ALL 15 ) AS INTEGER ) ), + 19 / - CASE - 18 WHEN + 79 THEN NULL ELSE - ( 45 ) * 73 END, 46 ) + - 25 WHEN - 68 THEN - 59 ELSE NULL END THEN - MAX ( - 32 ) ELSE 46 END + 62 THEN 1 * - 39 END ) + 25 * - 4
----
-22

query I rowsort
SELECT ALL 58 + - 32 * - 47 AS col1
----
1562

query I rowsort
SELECT DISTINCT 62 * NULLIF ( - 21, - - 91 ) AS col0
----
-1302

query I rowsort
SELECT NULLIF ( 27, 34 ) * + 91 * 63
----
154791

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT + COALESCE ( + 16, + 85 DIV - 70, 41 * + COUNT( * ) ) * - 82 col2
----
-1312

skipif mysql # not compatible
query I rowsort label-4687
SELECT + COALESCE ( + 16, + 85 / - 70, 41 * + COUNT ( * ) ) * - 82 col2
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT 45 + + CASE 83 WHEN + + 29 THEN NULL WHEN ( - 79 ) THEN NULL ELSE + COUNT( * ) END * + 96
----
141

skipif mysql # not compatible
query I rowsort label-4688
SELECT 45 + + CASE 83 WHEN + + 29 THEN NULL WHEN ( - 79 ) THEN NULL ELSE + COUNT ( * ) END * + 96
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT + 55 * + CAST( + + COALESCE ( 96, - 5 ) AS SIGNED ) + 14
----
5294

skipif mysql # not compatible
query I rowsort label-4689
SELECT + 55 * + CAST ( + + COALESCE ( 96, - 5 ) AS INTEGER ) + 14
----
5294

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT - ( + CASE - COUNT( * ) WHEN - 30 * + MIN( DISTINCT + 99 ) THEN + 32 WHEN 43 + + 35 / ( - 64 + - 76 ) THEN SUM( + COALESCE ( - 7, 17 ) ) END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - ( + CASE - COUNT ( * ) WHEN - 30 * + MIN ( DISTINCT + 99 ) THEN + 32 WHEN 43 + + 35 / ( - 64 + - 76 ) THEN SUM ( + COALESCE ( - 7, 17 ) ) END ) col1
----
NULL

query I rowsort
SELECT - 77 * 92
----
-7084

query I rowsort
SELECT 83 * + + 1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL + + 53 * - COUNT( 69 )
----
-53

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + + 53 * - COUNT ( 69 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT - COUNT( * ) - NULLIF ( - COALESCE ( - MIN( ALL + 68 ), + COUNT( * ), - CASE - 17 WHEN 76 * - CASE + COUNT( ALL + 6 ) WHEN - 11 THEN NULL WHEN + 62 + ( + 64 + 92 ) THEN 25 * - COUNT( * ) ELSE 83 END THEN NULL WHEN 99 THEN NULL ELSE + 72 END ), - COUNT( * ) * - ( COUNT( DISTINCT 19 ) ) )
----
-69

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - COUNT ( * ) - NULLIF ( - COALESCE ( - MIN ( ALL + 68 ), + COUNT ( * ), - CASE - 17 WHEN 76 * - CASE + COUNT ( ALL + 6 ) WHEN - 11 THEN NULL WHEN + 62 + ( + 64 + 92 ) THEN 25 * - COUNT ( * ) ELSE 83 END THEN NULL WHEN 99 THEN NULL ELSE + 72 END ), - COUNT ( * ) * - ( COUNT ( DISTINCT 19 ) ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + COUNT( * ) + + 24 * + 40
----
961

skipif mysql # not compatible
query I rowsort label-4695
SELECT + COUNT ( * ) + + 24 * + 40
----
961

query I rowsort
SELECT ALL - - 86 - - 35 + + 59 * - ( 32 ) * 97 + 85 AS col0
----
-182930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4697
SELECT CASE WHEN + 61 IS NOT NULL THEN + - CAST( - COALESCE ( + COUNT( * ), + NULLIF ( 1, COUNT( * ) ) ) AS SIGNED ) ELSE + 66 END * - COUNT( + 31 + ( + 83 - 93 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4697
SELECT CASE WHEN + 61 IS NOT NULL THEN + - CAST ( - COALESCE ( + COUNT ( * ), + NULLIF ( 1, COUNT ( * ) ) ) AS INTEGER ) ELSE + 66 END * - COUNT ( + 31 + ( + 83 - 93 ) )
----
-1

query I rowsort
SELECT 94 + - - ( + 83 ) * + 12 AS col1
----
1090

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT + 71 - - + 8 AS col0, + 0 + 76 * SUM( ALL - 97 ) AS col0
----
79
-7372

skipif mysql # not compatible
query II rowsort label-4699
SELECT + 71 - - + 8 AS col0, + 0 + 76 * SUM ( ALL - 97 ) AS col0
----
79
-7372

query I rowsort
SELECT DISTINCT - 34 * + 57 AS col1
----
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT MIN( DISTINCT 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT MIN ( DISTINCT 77 ) AS col0
----
77

query I rowsort
SELECT 92 * - ( 58 )
----
-5336

query I rowsort
SELECT ALL - ( - - 49 ) AS col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT 11 DIV + - ( + 4 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4704
SELECT 11 / + - ( + 4 ) AS col0
----
-2

query I rowsort
SELECT ALL - ( - 91 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT ALL + ( 46 ) * + 72 + - 93 + + + 75 + COUNT( * ) * 76 * + COALESCE ( + 58 + + CASE 92 WHEN + COALESCE ( - 53, COUNT( * ) - - COUNT( ALL 61 ) ) THEN + COALESCE ( 63, - 56 - - 11 DIV + COUNT( * ), - COUNT( * ) * + 13, + 4 ) END, 53 * 70 ) AS col0
----
285254

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + ( 46 ) * + 72 + - 93 + + + 75 + COUNT ( * ) * 76 * + COALESCE ( + 58 + + CASE 92 WHEN + COALESCE ( - 53, COUNT ( * ) - - COUNT ( ALL 61 ) ) THEN + COALESCE ( 63, - 56 - - 11 / + COUNT ( * ), - COUNT ( * ) * + 13, + 4 ) END, 53 * 70 ) AS col0
----
285254

query I rowsort
SELECT 43 + - 99 col1
----
-56

query I rowsort
SELECT ALL - 17 * - 23 + ( - - 94 ) AS col2
----
485

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4709
SELECT DISTINCT - COUNT( * ) * 97 * + 51 + 54 + - + ( 78 ) DIV - 51 AS col1
----
-4892

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT - COUNT ( * ) * 97 * + 51 + 54 + - + ( 78 ) / - 51 AS col1
----
-4892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4710
SELECT DISTINCT - 99 DIV + + MAX( + + 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - 99 / + + MAX ( + + 80 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT DISTINCT + 73 * COUNT( * ) + + 44 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT + 73 * COUNT ( * ) + + 44 AS col0
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT 54 + CAST( 23 AS SIGNED ) - 28 * + + 60 AS col1
----
-1603

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT 54 + CAST ( 23 AS INTEGER ) - 28 * + + 60 AS col1
----
-1603

query I rowsort
SELECT - 38 * 70 + - - 77
----
-2583

query I rowsort
SELECT ALL + 83 + 86
----
169

query II rowsort
SELECT + 35 col2, 79
----
35
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4716
SELECT + + COUNT( * ) * 84 DIV + + 8, 56 - + 39 + ( - 48 + CAST( NULL AS SIGNED ) ) * MIN( DISTINCT + 45 ) AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-4716
SELECT + + COUNT ( * ) * 84 / + + 8, 56 - + 39 + ( - 48 + CAST ( NULL AS INTEGER ) ) * MIN ( DISTINCT + 45 ) AS col1
----
10
NULL

query I rowsort
SELECT - + 3 - - 13 AS col2
----
10

query I rowsort
SELECT ALL - 34 + 51 AS col2
----
17

query I rowsort
SELECT - - 28 - - 19 col1
----
47

query I rowsort
SELECT - 31 * 26 + 67 + - 13 AS col2
----
-752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + - 63 + - ( 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - 63 + - ( 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT - COUNT( * ) - 97
----
-98

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - COUNT ( * ) - 97
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT ALL - 76 * + AVG ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - 76 * + AVG ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - ( - + 80 ) AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4725
SELECT DISTINCT + 65 * - COUNT( * ) * - + 37 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT + 65 * - COUNT ( * ) * - + 37 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4726
SELECT + 3, COUNT( * ) AS col2
----
3
1

skipif mysql # not compatible
query II rowsort label-4726
SELECT + 3, COUNT ( * ) AS col2
----
3
1

query I rowsort
SELECT + - 38 - + + 13 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT + - 26 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4728
SELECT + - 26 / - 51 AS col1
----
0

query I rowsort
SELECT + + 21 * - 80 AS col1
----
-1680

query I rowsort
SELECT ALL 81 * + 70
----
5670

query I rowsort
SELECT CASE - - 6 WHEN ( - 56 ) + + 9 THEN NULL WHEN 84 * - 93 THEN - 25 ELSE NULL END
----
NULL

query I rowsort
SELECT + - 77 + + 49
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT 86 * + - NULLIF ( + 1, - - COUNT( * ) * + 51 + 56 )
----
-86

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT 86 * + - NULLIF ( + 1, - - COUNT ( * ) * + 51 + 56 )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT 1 AS col0, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-4734
SELECT 1 AS col0, COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4735
SELECT ALL MIN( - + CAST( + NULLIF ( - ( + 13 ), + 54 + - 63 ) AS SIGNED ) )
----
13

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL MIN ( - + CAST ( + NULLIF ( - ( + 13 ), + 54 + - 63 ) AS INTEGER ) )
----
13

query II rowsort
SELECT ALL + 56 AS col1, - 96 * - + 60
----
56
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + 79 * + + CASE + 80 WHEN 90 - - COUNT( * ) THEN - 95 * + 2 WHEN COALESCE ( 35, 16 * 3 ) THEN + 65 * 95 WHEN 23 + 29 * + COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 79 * + + CASE + 80 WHEN 90 - - COUNT ( * ) THEN - 95 * + 2 WHEN COALESCE ( 35, 16 * 3 ) THEN + 65 * 95 WHEN 23 + 29 * + COUNT ( * ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 85 * + - 14
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ( - + COUNT( ALL 93 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4739
SELECT ( - + COUNT ( ALL 93 ) ) AS col2
----
-1

query II rowsort
SELECT + 78, 99 AS col1
----
78
99

query I rowsort
SELECT ALL + 22 * 8 * - + 31 + - - 29 + + ( - 69 ) * + 65 AS col0
----
-9912

query I rowsort
SELECT - 49 + - 93 + 3
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT 73 * - 40 * + + MAX( CASE + 60 WHEN + + ( 33 ) THEN 35 END ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT 73 * - 40 * + + MAX ( CASE + 60 WHEN + + ( 33 ) THEN 35 END ) * 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT - SUM( ALL 15 ) * - 60 * - NULLIF ( 47, 26 ) + 20 - 12 col1
----
-42292

skipif mysql # not compatible
query I rowsort label-4744
SELECT - SUM ( ALL 15 ) * - 60 * - NULLIF ( 47, 26 ) + 20 - 12 col1
----
-42292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL 60 * COUNT( * ) * + + 44 * 79 * + 47 + + NULLIF ( 57, + COALESCE ( COUNT( * ), AVG ( - 59 ) + 0 ) + - CAST( ( COUNT( * ) ) AS SIGNED ) ) * - 1 AS col0
----
9802263

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL 60 * COUNT ( * ) * + + 44 * 79 * + 47 + + NULLIF ( 57, + COALESCE ( COUNT ( * ), AVG ( - 59 ) + 0 ) + - CAST ( ( COUNT ( * ) ) AS INTEGER ) ) * - 1 AS col0
----
9802263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4746
SELECT 23 * - - SUM( DISTINCT + ( 14 ) ) * - 89 - - CAST( NULL AS SIGNED ) - - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT 23 * - - SUM ( DISTINCT + ( 14 ) ) * - 89 - - CAST ( NULL AS INTEGER ) - - 13 AS col0
----
NULL

query I rowsort
SELECT ALL - 86 * - 41 * 31
----
109306

query I rowsort
SELECT 96 * + - 96 + 89 AS col0
----
-9127

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT - 95 + + COALESCE ( 53, - + 73 * + COUNT( * ) - - 30 ) * 89 col1
----
4622

skipif mysql # not compatible
query I rowsort label-4749
SELECT - 95 + + COALESCE ( 53, - + 73 * + COUNT ( * ) - - 30 ) * 89 col1
----
4622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4750
SELECT - COUNT( ALL 19 ) + + + CASE + ( CASE 0 WHEN 40 THEN + 20 * 67 WHEN + 97 THEN NULL END ) WHEN ( + CAST( 84 AS SIGNED ) ) * 58 THEN 28 / + 40 WHEN MIN( ALL - 17 ) THEN + 31 / - MAX( ALL + 42 ) END + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT - COUNT ( ALL 19 ) + + + CASE + ( CASE 0 WHEN 40 THEN + 20 * 67 WHEN + 97 THEN NULL END ) WHEN ( + CAST ( 84 AS INTEGER ) ) * 58 THEN 28 / + 40 WHEN MIN ( ALL - 17 ) THEN + 31 / - MAX ( ALL + 42 ) END + + 80
----
NULL

query I rowsort
SELECT - 66 * + 97
----
-6402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4752
SELECT DISTINCT + + 49 DIV + + 29 + - ( + COUNT( * ) ) - - + 69
----
69

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + + 49 / + + 29 + - ( + COUNT ( * ) ) - - + 69
----
69

query I rowsort
SELECT - COALESCE ( + 74, - 73 * 46 - - 3, + 62 ) + + 85 * 76
----
6386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4754
SELECT CAST( - 87 AS SIGNED ) * + 40 * 79 - 34 AS col0
----
-274954

skipif mysql # not compatible
query I rowsort label-4754
SELECT CAST ( - 87 AS INTEGER ) * + 40 * 79 - 34 AS col0
----
-274954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4755
SELECT - COUNT( * ) + SUM( ALL + 66 ) DIV - + 40
----
-2

skipif mysql # not compatible
query I rowsort label-4755
SELECT - COUNT ( * ) + SUM ( ALL + 66 ) / - + 40
----
-2

query I rowsort
SELECT - + 66 * - + 91 * 51 AS col1
----
306306

query I rowsort
SELECT - 12 * ( + - 72 ) + + - 56 * 26
----
-592

query I rowsort
SELECT DISTINCT - - 70 * - 97 AS col2
----
-6790

query II rowsort
SELECT - 99 AS col0, - 90 + - 34
----
-99
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT ALL ( + 15 ), - COUNT( DISTINCT - 65 ) + + + 9 AS col2
----
15
8

skipif mysql # not compatible
query II rowsort label-4760
SELECT ALL ( + 15 ), - COUNT ( DISTINCT - 65 ) + + + 9 AS col2
----
15
8

query II rowsort
SELECT ALL 60 AS col0, 25 AS col2
----
60
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - SUM( ALL 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4762
SELECT - SUM ( ALL 53 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4763
SELECT - ( - 80 ) AS col1, + NULLIF ( - 68, + - 80 / - 87 - + COUNT( * ) ) - - COUNT( * ) * 62
----
80
-6

skipif mysql # not compatible
query II rowsort label-4763
SELECT - ( - 80 ) AS col1, + NULLIF ( - 68, + - 80 / - 87 - + COUNT ( * ) ) - - COUNT ( * ) * 62
----
80
-6

query I rowsort
SELECT + 9 + - 82 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT + 86 + - 34, COUNT( * ) * - 99 AS col0
----
52
-99

skipif mysql # not compatible
query II rowsort label-4765
SELECT + 86 + - 34, COUNT ( * ) * - 99 AS col0
----
52
-99

query I rowsort
SELECT - NULLIF ( + + 51, + 86 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT ALL 68 + + ( 15 ) + - COUNT( * ) + COALESCE ( + - 87, + - 64 DIV - 72 ) * COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL 68 + + ( 15 ) + - COUNT ( * ) + COALESCE ( + - 87, + - 64 / - 72 ) * COUNT ( * ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT + 73 + + + COUNT( * ) * + + NULLIF ( - - COUNT( * ), - 21 * + 69 + + CASE 93 WHEN + CAST( NULL AS SIGNED ) * + CASE WHEN NULL BETWEEN NULL AND NULL THEN NULL ELSE - CAST( NULLIF ( - 99, NULLIF ( 24, 62 ) + 93 * 76 ) AS SIGNED ) END + COUNT( * ) THEN + 52 ELSE - 10 END ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4768
SELECT + 73 + + + COUNT ( * ) * + + NULLIF ( - - COUNT ( * ), - 21 * + 69 + + CASE 93 WHEN + CAST ( NULL AS INTEGER ) * + CASE WHEN NULL BETWEEN NULL AND NULL THEN NULL ELSE - CAST ( NULLIF ( - 99, NULLIF ( 24, 62 ) + 93 * 76 ) AS INTEGER ) END + COUNT ( * ) THEN + 52 ELSE - 10 END ) AS col2
----
74

query I rowsort
SELECT DISTINCT 97 + ( + 9 ) * + 5
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL CAST( NULL AS SIGNED ) + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL CAST ( NULL AS INTEGER ) + - 68
----
NULL

query I rowsort
SELECT NULLIF ( + ( 54 ), + 93 ) * + 55 + 39
----
3009

query I rowsort
SELECT COALESCE ( - ( - 87 ), 37 * + + 76 ) * - 49
----
-4263

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT + COUNT( + 16 ) + - + 75 AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4773
SELECT + COUNT ( + 16 ) + - + 75 AS col2
----
-74

query I rowsort
SELECT ALL + - 22 * 44 AS col0
----
-968

query I rowsort
SELECT ALL - + 74 col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT + CASE WHEN NOT NULL IS NULL THEN COUNT( * ) ELSE COUNT( * ) END - - 55 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT + CASE WHEN NOT NULL IS NULL THEN COUNT ( * ) ELSE COUNT ( * ) END - - 55 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ( + 27 ) + 32 + + 59 * + 23 * 83 + - + 95 + COUNT( * ) * 75 * 1
----
112670

skipif mysql # not compatible
query I rowsort label-4777
SELECT ( + 27 ) + 32 + + 59 * + 23 * 83 + - + 95 + COUNT ( * ) * 75 * 1
----
112670

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4778
SELECT - 96 DIV - COUNT( * ) col2, + 92 DIV + 35 AS col1
----
96
2

skipif mysql # not compatible
query II rowsort label-4778
SELECT - 96 / - COUNT ( * ) col2, + 92 / + 35 AS col1
----
96
2

query I rowsort
SELECT 69 - - - 82 + - 42
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - 24 - - 69 + + 46 * COUNT( * ) + + CASE - 84 WHEN - + 46 - + 35 / + 69 THEN - 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 24 - - 69 + + 46 * COUNT ( * ) + + CASE - 84 WHEN - + 46 - + 35 / + 69 THEN - 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4781
SELECT + 33 * - 83 * + - 19, 6 + 91 * COUNT( + + 84 ) AS col0
----
52041
97

skipif mysql # not compatible
query II rowsort label-4781
SELECT + 33 * - 83 * + - 19, 6 + 91 * COUNT ( + + 84 ) AS col0
----
52041
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - CASE - 12 WHEN - 20 THEN - 56 * + ( - + COUNT( ALL - + 15 ) ) WHEN 30 THEN 6 + + 92 * - COALESCE ( 63, 54 / 99 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - CASE - 12 WHEN - 20 THEN - 56 * + ( - + COUNT ( ALL - + 15 ) ) WHEN 30 THEN 6 + + 92 * - COALESCE ( 63, 54 / 99 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT + CAST( NULL AS SIGNED ) * + 56 / 96 / + + CAST( + 72 AS SIGNED ) + + - 79 + + - 27 / 54 * - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT + CAST ( NULL AS INTEGER ) * + 56 / 96 / + + CAST ( + 72 AS INTEGER ) + + - 79 + + - 27 / 54 * - 88 AS col0
----
NULL

query I rowsort
SELECT 7 + + ( - 81 ) + - 33 * - ( + - ( + 16 ) )
----
-602

query I rowsort
SELECT ALL + 55 + - - ( + 8 )
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4786
SELECT ALL 99 + 9 + + + 97 + + CAST( NULL AS DECIMAL ) * - + 95 / + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL 99 + 9 + + + 97 + + CAST ( NULL AS REAL ) * - + 95 / + + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL + 75 + + COUNT( ALL + + 8 ) - + + 0 + - + 49 * + 66 * + MIN( 52 )
----
-168092

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL + 75 + + COUNT ( ALL + + 8 ) - + + 0 + - + 49 * + 66 * + MIN ( 52 )
----
-168092

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4788
SELECT + CAST( 54 AS SIGNED ) - + 28, + 35 AS col2
----
26
35

skipif mysql # not compatible
query II rowsort label-4788
SELECT + CAST ( 54 AS INTEGER ) - + 28, + 35 AS col2
----
26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL + 63 * + + 63 * - ( - 75 ) * - MAX( DISTINCT - + 12 )
----
3572100

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + 63 * + + 63 * - ( - 75 ) * - MAX ( DISTINCT - + 12 )
----
3572100

query I rowsort
SELECT 18 * + 31 AS col0
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT 21 - - NULLIF ( 93, - MAX( + 54 ) * + ( 94 ) * + 80 - - 11 )
----
114

skipif mysql # not compatible
query I rowsort label-4791
SELECT 21 - - NULLIF ( 93, - MAX ( + 54 ) * + ( 94 ) * + 80 - - 11 )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT + 12 * + COUNT( * ) col0
----
12

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT + 12 * + COUNT ( * ) col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL + COUNT( * ) + - 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + COUNT ( * ) + - 57 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT 11 + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4794
SELECT 11 + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL - COUNT( 88 ) + COALESCE ( + 62, - 14 - 40, + 1 ) + - + 40 * - 52 AS col0
----
2141

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - COUNT ( 88 ) + COALESCE ( + 62, - 14 - 40, + 1 ) + - + 40 * - 52 AS col0
----
2141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) + + 43 * - - 27 + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + 43 * - - 27 + + 40 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 80 AS col1, + 26 + 96 AS col1
----
80
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT 73 - + 63 * MAX( ALL - 4 )
----
325

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT 73 - + 63 * MAX ( ALL - 4 )
----
325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT COUNT( * ) + + 21 + - ( - COALESCE ( 24, - 46 DIV + COUNT( * ) - + 55 + 55 * + 67 ) )
----
46

skipif mysql # not compatible
query I rowsort label-4799
SELECT COUNT ( * ) + + 21 + - ( - COALESCE ( 24, - 46 / + COUNT ( * ) - + 55 + 55 * + 67 ) )
----
46

query II rowsort
SELECT + 41, + 55 col0
----
41
55

query II rowsort
SELECT ALL - 97 col1, - 68 AS col0
----
-97
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT NULLIF ( 56, - 86 - 6 * - COUNT( * ) / + NULLIF ( + 78, COUNT( - 94 ) ) + - 26 ) * + 13
----
728

skipif mysql # not compatible
query I rowsort label-4802
SELECT NULLIF ( 56, - 86 - 6 * - COUNT ( * ) / + NULLIF ( + 78, COUNT ( - 94 ) ) + - 26 ) * + 13
----
728

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT 78 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-4803
SELECT 78 / + 52
----
1

query I rowsort
SELECT + 76 * - + COALESCE ( - 74, - 2 * - 49 ) + + 31
----
5655

query I rowsort
SELECT ALL - ( - - 98 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT 66 * COUNT( * ) + - 1 + + - NULLIF ( - - 15, 43 * - 13 * + - 79 / COUNT( * ) + 22 * CAST( NULL AS SIGNED ) ) + 75 * COUNT( DISTINCT + 99 ) + + 89
----
214

skipif mysql # not compatible
query I rowsort label-4806
SELECT 66 * COUNT ( * ) + - 1 + + - NULLIF ( - - 15, 43 * - 13 * + - 79 / COUNT ( * ) + 22 * CAST ( NULL AS INTEGER ) ) + 75 * COUNT ( DISTINCT + 99 ) + + 89
----
214

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT ALL 45 DIV - 24 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL 45 / - 24 AS col0
----
-1

query I rowsort
SELECT 49 * + - 62 - + 37
----
-3075

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT ALL 2 DIV ( - + 79 ) + + 79
----
79

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL 2 / ( - + 79 ) + + 79
----
79

query I rowsort
SELECT - 72 * 18 AS col1
----
-1296

query I rowsort
SELECT 4 + 7 AS col0
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4812
SELECT + CASE + COUNT( * ) WHEN - 94 * - - 25 * 68 + - 76 THEN + + CAST( NULL AS DECIMAL ) * + 30 * COALESCE ( - COUNT( * ) * 15, - 50 + 39 ) + - 24 END / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT + CASE + COUNT ( * ) WHEN - 94 * - - 25 * 68 + - 76 THEN + + CAST ( NULL AS REAL ) * + 30 * COALESCE ( - COUNT ( * ) * 15, - 50 + 39 ) + - 24 END / 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + + 69 * ( - + 98 ) + - MIN( DISTINCT + 77 )
----
-6839

skipif mysql # not compatible
query I rowsort label-4813
SELECT + + 69 * ( - + 98 ) + - MIN ( DISTINCT + 77 )
----
-6839

query I rowsort
SELECT + 19 * - - 39 + - 13 + + 45 + - - 4 AS col2
----
777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4815
SELECT AVG ( - 47 ) + CASE + 13 WHEN - + AVG ( ALL - + CAST( NULL AS SIGNED ) ) * + 41 + - + COUNT( * ) THEN 81 * 49 WHEN + 26 THEN NULL END + 26 * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT AVG ( - 47 ) + CASE + 13 WHEN - + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) * + 41 + - + COUNT ( * ) THEN 81 * 49 WHEN + 26 THEN NULL END + 26 * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - 23 * - 48 - - NULLIF ( - 50, COUNT( * ) + 24 * ( - 45 ) ) + - 12
----
1042

skipif mysql # not compatible
query I rowsort label-4816
SELECT - 23 * - 48 - - NULLIF ( - 50, COUNT ( * ) + 24 * ( - 45 ) ) + - 12
----
1042

query I rowsort
SELECT ALL - + ( - - 6 ) AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4818
SELECT + 21 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT + 21 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - ( + 78 ) + - + 65
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-4820
SELECT - 44 AS col0, 41 + + COALESCE ( - COUNT( * ), - - 10 * 29 * COUNT( * ) )
----
-44
40

skipif mysql # not compatible
query II rowsort label-4820
SELECT - 44 AS col0, 41 + + COALESCE ( - COUNT ( * ), - - 10 * 29 * COUNT ( * ) )
----
-44
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL + 4 + + + ( - - CAST( + + ( - 84 ) AS SIGNED ) ) - + - 3 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + 4 + + + ( - - CAST ( + + ( - 84 ) AS INTEGER ) ) - + - 3 AS col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4822
SELECT - + CASE + 62 WHEN - 9 THEN NULL WHEN - + ( COUNT( * ) ) THEN NULLIF ( - 81, + - 11 ) * 88 END * + CAST( NULL AS DECIMAL ) + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT - + CASE + 62 WHEN - 9 THEN NULL WHEN - + ( COUNT ( * ) ) THEN NULLIF ( - 81, + - 11 ) * 88 END * + CAST ( NULL AS REAL ) + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT - MIN( DISTINCT - + ( + 42 ) )
----
42

skipif mysql # not compatible
query I rowsort label-4823
SELECT - MIN ( DISTINCT - + ( + 42 ) )
----
42

query I rowsort
SELECT DISTINCT + 76 + + 64
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT + COALESCE ( + - NULLIF ( - - 88, + + COALESCE ( COUNT( * ), 12 ) + - 66 ), - 31, ( - COUNT( DISTINCT 1 ) ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4825
SELECT + COALESCE ( + - NULLIF ( - - 88, + + COALESCE ( COUNT ( * ), 12 ) + - 66 ), - 31, ( - COUNT ( DISTINCT 1 ) ) ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT CASE + 92 WHEN + + 12 THEN + COUNT( * ) + + COUNT( 95 ) + - + 87 + + CAST( + NULLIF ( + COUNT( * ), 36 * 54 + 57 ) AS SIGNED ) + - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT CASE + 92 WHEN + + 12 THEN + COUNT ( * ) + + COUNT ( 95 ) + - + 87 + + CAST ( + NULLIF ( + COUNT ( * ), 36 * 54 + 57 ) AS INTEGER ) + - 78 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( 22 ) + + + 5 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4828
SELECT ALL - MIN( DISTINCT - 63 ) + - CAST( NULL AS SIGNED ) + + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - MIN ( DISTINCT - 63 ) + - CAST ( NULL AS INTEGER ) + + + 46
----
NULL

query I rowsort
SELECT 2 * - 67 AS col2
----
-134

query I rowsort
SELECT 8 + - - 94 AS col1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT DISTINCT - ( + COALESCE ( COUNT( * ), 73 * + + 23 - - COUNT( * ) * - 78 DIV + - 55 ) ) + - - 94 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT - ( + COALESCE ( COUNT ( * ), 73 * + + 23 - - COUNT ( * ) * - 78 / + - 55 ) ) + - - 94 AS col1
----
93

query I rowsort
SELECT 17 + 95
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL MAX( - + 97 ) + - 95 AS col0
----
-192

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL MAX ( - + 97 ) + - 95 AS col0
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4834
SELECT ALL 15 + + CAST( NULL AS SIGNED ) + - 50 * - + NULLIF ( - - 92, - ( + 66 ) ) AS col0, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4834
SELECT ALL 15 + + CAST ( NULL AS INTEGER ) + - 50 * - + NULLIF ( - - 92, - ( + 66 ) ) AS col0, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4835
SELECT ALL + 72 - - COUNT( * ) col0, 83
----
73
83

skipif mysql # not compatible
query II rowsort label-4835
SELECT ALL + 72 - - COUNT ( * ) col0, 83
----
73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL SUM( + - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL SUM ( + - 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT - COUNT( * ) + - + SUM( ALL 57 ) - - 53 AS col1, + 78 + 1 AS col2
----
-5
79

skipif mysql # not compatible
query II rowsort label-4837
SELECT - COUNT ( * ) + - + SUM ( ALL 57 ) - - 53 AS col1, + 78 + 1 AS col2
----
-5
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT - 79 DIV - - 72
----
-1

skipif mysql # not compatible
query I rowsort label-4838
SELECT - 79 / - - 72
----
-1

query I rowsort
SELECT - 91 * 17
----
-1547

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4840
SELECT - 96 + - - 52 * - - NULLIF ( - + 98, + 96 * - COUNT( * ) * + 96 + - 18 / 39 * SUM( + CAST( NULL AS DECIMAL ) ) + 6 )
----
-5192

skipif mysql # not compatible
query I rowsort label-4840
SELECT - 96 + - - 52 * - - NULLIF ( - + 98, + 96 * - COUNT ( * ) * + 96 + - 18 / 39 * SUM ( + CAST ( NULL AS REAL ) ) + 6 )
----
-5192

query I rowsort
SELECT ALL - 27 * - + ( + 15 )
----
405

query I rowsort
SELECT - CASE 30 WHEN + - 39 + - 79 THEN + 25 - ( - 34 ) * 45 * + ( + 26 ) END + - 35
----
NULL

query II rowsort
SELECT ALL - 9 - + ( - 65 ) + 37 col1, - 69 * + + 22 * + 96 - - - 99 AS col1
----
93
-145827

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT NULLIF ( + 36, - + 58 * SUM( DISTINCT + + 7 ) )
----
36

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT NULLIF ( + 36, - + 58 * SUM ( DISTINCT + + 7 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL CASE + - 20 WHEN - COUNT( * ) - 68 THEN + + 34 / + 16 - 23 WHEN + 3 + COUNT( * ) + COUNT( * ) THEN COUNT( * ) * - COUNT( * ) WHEN 8 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL CASE + - 20 WHEN - COUNT ( * ) - 68 THEN + + 34 / + 16 - 23 WHEN + 3 + COUNT ( * ) + COUNT ( * ) THEN COUNT ( * ) * - COUNT ( * ) WHEN 8 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 10 - + 43 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ( - CASE + ( + - ( 29 ) ) WHEN 90 + 69 - + 57 + - 26 + SUM( DISTINCT + 3 ) * + 83 * 40 THEN NULL WHEN 47 + 23 * 40 THEN 22 * - 23 ELSE - 47 END )
----
47

skipif mysql # not compatible
query I rowsort label-4847
SELECT ( - CASE + ( + - ( 29 ) ) WHEN 90 + 69 - + 57 + - 26 + SUM ( DISTINCT + 3 ) * + 83 * 40 THEN NULL WHEN 47 + 23 * 40 THEN 22 * - 23 ELSE - 47 END )
----
47

query I rowsort
SELECT - 3 * 10 * 61
----
-1830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / ( 44 ) + 16 * - COUNT( * ) * - COUNT( * ) * + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / ( 44 ) + 16 * - COUNT ( * ) * - COUNT ( * ) * + 21 AS col1
----
NULL

query I rowsort
SELECT + - 54 * - 11 * - + 85 + - 7 - 95 AS col0
----
-50592

query I rowsort
SELECT + ( - 15 ) AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4852
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + ( + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + ( + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + 62 + + COUNT( * ) * - 19 + 46 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4853
SELECT + 62 + + COUNT ( * ) * - 19 + 46 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL - 43 * - NULLIF ( - + 18, COUNT( * ) ) + 54 + + - 74 AS col0
----
-794

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 43 * - NULLIF ( - + 18, COUNT ( * ) ) + 54 + + - 74 AS col0
----
-794

onlyif mysql # aggregate syntax: 
query II rowsort label-4855
SELECT ALL ( - 2 ) * 77 + - COUNT( * ) col1, 87
----
-155
87

skipif mysql # not compatible
query II rowsort label-4855
SELECT ALL ( - 2 ) * 77 + - COUNT ( * ) col1, 87
----
-155
87

query I rowsort
SELECT ALL - - 19 * + 12 + - 83 * - - 53 AS col0
----
-4171

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT DISTINCT 63 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT 63 / + 69
----
0

query I rowsort
SELECT + - 27 * + 26
----
-702

query I rowsort
SELECT ALL + 35 * + 33 + 36 AS col2
----
1191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4860
SELECT + - CAST( + 19 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4860
SELECT + - CAST ( + 19 AS INTEGER ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4861
SELECT ALL + 28 * 89 DIV COUNT( * ) DIV + + NULLIF ( - - 9, + - 15 * 5 * 50 * - 18 ) + ( - 68 ) AS col1
----
208

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + 28 * 89 / COUNT ( * ) / + + NULLIF ( - - 9, + - 15 * 5 * 50 * - 18 ) + ( - 68 ) AS col1
----
208

query I rowsort
SELECT + - 67 - + 97 AS col2
----
-164

query II rowsort
SELECT + 33 + - 50 * 36 AS col0, + 39 AS col2
----
-1767
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL 45 * - - COUNT( * ) * + + 1 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL 45 * - - COUNT ( * ) * + + 1 AS col0
----
45

query I rowsort
SELECT - 1 * + 0 + + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL COUNT( * ) - + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL COUNT ( * ) - + 1 AS col1
----
0

query I rowsort
SELECT DISTINCT 74 * + + 26 AS col1
----
1924

query I rowsort
SELECT ALL - 40 - - 91
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4869
SELECT + 3 * + ( + 3 ) * + COUNT( * ) DIV - + COUNT( * ) AS col0, + 94 AS col0
----
-9
94

skipif mysql # not compatible
query II rowsort label-4869
SELECT + 3 * + ( + 3 ) * + COUNT ( * ) / - + COUNT ( * ) AS col0, + 94 AS col0
----
-9
94

query I rowsort
SELECT ALL 9 * + 48
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT - MIN( DISTINCT + 93 ) - - + COUNT( * ) * + 71
----
-22

skipif mysql # not compatible
query I rowsort label-4871
SELECT - MIN ( DISTINCT + 93 ) - - + COUNT ( * ) * + 71
----
-22

query II rowsort
SELECT 7 col0, + 76 AS col1
----
7
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT COUNT( - 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT COUNT ( - 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL 61 - SUM( DISTINCT - 17 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL 61 - SUM ( DISTINCT - 17 ) AS col0
----
78

query I rowsort
SELECT + 67 * - 23
----
-1541

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - 73 * + COUNT( - 47 ) * - 58 + + + 3
----
4237

skipif mysql # not compatible
query I rowsort label-4876
SELECT - 73 * + COUNT ( - 47 ) * - 58 + + + 3
----
4237

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL CASE + 11 WHEN 33 * + 19 + SUM( ALL + 72 ) * - - ( + + 22 ) THEN NULL WHEN - + COUNT( * ) * 89 * + 57 + 3 * 12 THEN + 75 * 96 + - 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL CASE + 11 WHEN 33 * + 19 + SUM ( ALL + 72 ) * - - ( + + 22 ) THEN NULL WHEN - + COUNT ( * ) * 89 * + 57 + 3 * 12 THEN + 75 * 96 + - 57 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4878
SELECT 88 AS col1, ( + COUNT( * ) ) + - SUM( DISTINCT ( + + 28 ) )
----
88
-27

skipif mysql # not compatible
query II rowsort label-4878
SELECT 88 AS col1, ( + COUNT ( * ) ) + - SUM ( DISTINCT ( + + 28 ) )
----
88
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4879
SELECT + 19 + - + 12 DIV - 43 AS col2, - ( - + COUNT( * ) )
----
19
1

skipif mysql # not compatible
query II rowsort label-4879
SELECT + 19 + - + 12 / - 43 AS col2, - ( - + COUNT ( * ) )
----
19
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT ALL - 5 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL - 5 / 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT - 37 * - 67 * - + 28 / + CASE - 0 WHEN + NULLIF ( 29, + + 45 ) THEN - 59 WHEN + 80 / ( NULLIF ( + MAX( ALL NULLIF ( - 14, CASE 91 WHEN - 70 / 32 THEN NULL ELSE 10 END + 93 ) ), 70 - - 47 / 96 ) * - CAST( NULL AS SIGNED ) + 41 ) + - 73 * 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT - 37 * - 67 * - + 28 / + CASE - 0 WHEN + NULLIF ( 29, + + 45 ) THEN - 59 WHEN + 80 / ( NULLIF ( + MAX ( ALL NULLIF ( - 14, CASE 91 WHEN - 70 / 32 THEN NULL ELSE 10 END + 93 ) ), 70 - - 47 / 96 ) * - CAST ( NULL AS INTEGER ) + 41 ) + - 73 * 12 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 96 * + ( + 18 ) AS col1
----
-1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4883
SELECT DISTINCT MAX( ALL - 25 ) DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT MAX ( ALL - 25 ) / 64
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL ( ( - CAST( 97 AS SIGNED ) ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL ( ( - CAST ( 97 AS INTEGER ) ) ) AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4885
SELECT - MIN( 2 ) DIV - - 58
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT - MIN ( 2 ) / - - 58
----
0

query I rowsort
SELECT ALL + 6 * + - 73 AS col0
----
-438

query I rowsort
SELECT DISTINCT NULLIF ( + - 77, - 83 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + - MIN( ( - 39 ) ) + - - 21 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4888
SELECT + - MIN ( ( - 39 ) ) + - - 21 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4889
SELECT ALL - + COUNT( * ) * CAST( 0 AS SIGNED ) AS col0, - 60 AS col0
----
0
-60

skipif mysql # not compatible
query II rowsort label-4889
SELECT ALL - + COUNT ( * ) * CAST ( 0 AS INTEGER ) AS col0, - 60 AS col0
----
0
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT - + 89 DIV - - 25 DIV + - COUNT( * ) - + 42 * 79 * ( - + 51 ) * - 79 + + MIN( DISTINCT - + 72 ) * 28 AS col1
----
-13370235

skipif mysql # not compatible
query I rowsort label-4890
SELECT - + 89 / - - 25 / + - COUNT ( * ) - + 42 * 79 * ( - + 51 ) * - 79 + + MIN ( DISTINCT - + 72 ) * 28 AS col1
----
-13370235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT - - 83 / + + CAST( NULL AS SIGNED ) + - 60 + - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT - - 83 / + + CAST ( NULL AS INTEGER ) + - 60 + - + 50
----
NULL

query I rowsort
SELECT - ( 1 ) AS col0
----
-1

query I rowsort
SELECT - + 8 * + 0 + - + 56 AS col1
----
-56

query I rowsort
SELECT - 76 + - - 95 * 91 + + 45
----
8614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / - + NULLIF ( + 38, - 35 ) + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - + NULLIF ( + 38, - 35 ) + - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT ALL - 89 DIV - 64 + + + ( + + 97 )
----
98

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL - 89 / - 64 + + + ( + + 97 )
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4897
SELECT ALL - 17 DIV 86 + + 23 AS col1, + 9 * 25 * + 56 col2
----
23
12600

skipif mysql # not compatible
query II rowsort label-4897
SELECT ALL - 17 / 86 + + 23 AS col1, + 9 * 25 * + 56 col2
----
23
12600

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - ( - - SUM( + 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-4898
SELECT - ( - - SUM ( + 91 ) )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT - 77 * - 32 * - 52 + 16 * - CAST( 74 AS SIGNED ) + - 15 AS col2
----
-129327

skipif mysql # not compatible
query I rowsort label-4899
SELECT - 77 * - 32 * - 52 + 16 * - CAST ( 74 AS INTEGER ) + - 15 AS col2
----
-129327

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT ALL - 10 / + 41 + + NULLIF ( - CAST( NULL AS SIGNED ), - 66 + 44 ) + + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL - 10 / + 41 + + NULLIF ( - CAST ( NULL AS INTEGER ), - 66 + 44 ) + + - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT 31 * + - COUNT( - 39 ) + 91 + 14 / COUNT( * ) - 23 * CASE - 5 WHEN 76 / COUNT( * ) THEN + 31 * 7 + + 13 ELSE NULL END * COUNT( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT 31 * + - COUNT ( - 39 ) + 91 + 14 / COUNT ( * ) - 23 * CASE - 5 WHEN 76 / COUNT ( * ) THEN + 31 * 7 + + 13 ELSE NULL END * COUNT ( + 93 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4902
SELECT DISTINCT 18 DIV + 79 + 74 + COUNT( * ) DIV + ( + - 23 )
----
74

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT 18 / + 79 + 74 + COUNT ( * ) / + ( + - 23 )
----
74

query I rowsort
SELECT + - ( 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4904
SELECT ALL + - 32 AS col2, + 60 * - CASE 20 WHEN - 56 THEN - - 39 WHEN - 54 * SUM( - 40 ) THEN 7 END * 88
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-4904
SELECT ALL + - 32 AS col2, + 60 * - CASE 20 WHEN - 56 THEN - - 39 WHEN - 54 * SUM ( - 40 ) THEN 7 END * 88
----
-32
NULL

query I rowsort
SELECT ALL 36 * ( - 49 ) * 13 + - 82 + + - 98
----
-23112

query I rowsort
SELECT - 6 + - 54
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL + 52 * COUNT( * ) - 36 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + 52 * COUNT ( * ) - 36 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL 21 - - - COUNT( * ) - - - ( ( + 5 ) ) + - ( + 80 ) * - + 77 AS col1
----
6175

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL 21 - - - COUNT ( * ) - - - ( ( + 5 ) ) + - ( + 80 ) * - + 77 AS col1
----
6175

query I rowsort
SELECT ALL - 99 * - + 5
----
495

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT COUNT( * ) DIV COALESCE ( + + 66, - 67 DIV 13 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT COUNT ( * ) / COALESCE ( + + 66, - 67 / 13 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT ALL 15 DIV 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL 15 / 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT COUNT( * ) * - + 61 / - 7 + - CASE + 88 WHEN - 58 * + + 65 THEN + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT COUNT ( * ) * - + 61 / - 7 + - CASE + 88 WHEN - 58 * + + 65 THEN + 24 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4913
SELECT - 69, - 97 * + 96 - + NULLIF ( + + 56, - + 41 ) + + 15 DIV + - 67 AS col1
----
-69
-9368

skipif mysql # not compatible
query II rowsort label-4913
SELECT - 69, - 97 * + 96 - + NULLIF ( + + 56, - + 41 ) + + 15 / + - 67 AS col1
----
-69
-9368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT CASE + 26 WHEN - 67 + - 45 + 66 THEN 61 / - + 92 ELSE NULL END + - + 84 - CASE - 10 WHEN + SUM( DISTINCT + 46 ) THEN - COALESCE ( + 33, - COUNT( * ), CAST( NULL AS SIGNED ) + + 73 ) * + 73 WHEN - COUNT( * ) THEN NULL WHEN 23 + + 21 THEN + 51 * - 68 ELSE COALESCE ( COALESCE ( NULLIF ( CAST( NULL AS SIGNED ), 17 - - ( + 65 ) ), - COUNT( 37 ) ), - 28, + 85 * 82 ) END / + 74 * - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT CASE + 26 WHEN - 67 + - 45 + 66 THEN 61 / - + 92 ELSE NULL END + - + 84 - CASE - 10 WHEN + SUM ( DISTINCT + 46 ) THEN - COALESCE ( + 33, - COUNT ( * ), CAST ( NULL AS INTEGER ) + + 73 ) * + 73 WHEN - COUNT ( * ) THEN NULL WHEN 23 + + 21 THEN + 51 * - 68 ELSE COALESCE ( COALESCE ( NULLIF ( CAST ( NULL AS INTEGER ), 17 - - ( + 65 ) ), - COUNT ( 37 ) ), - 28, + 85 * 82 ) END / + 74 * - 33 AS col2
----
NULL

query I rowsort
SELECT ALL ( NULLIF ( + 86, - - 52 + - ( 35 ) ) ) - - 75 col0
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT COUNT( * ) DIV + + ( + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT COUNT ( * ) / + + ( + 65 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4917
SELECT ( + - COUNT( - - CAST( - 94 AS SIGNED ) ) ) * - 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4917
SELECT ( + - COUNT ( - - CAST ( - 94 AS INTEGER ) ) ) * - 78 AS col2
----
78

query I rowsort
SELECT 65 + - - 81 + + 65 col1
----
211

query I rowsort
SELECT 36 * 86 AS col0
----
3096

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT 72 * - SUM( - + ( + 79 ) ) AS col1
----
5688

skipif mysql # not compatible
query I rowsort label-4920
SELECT 72 * - SUM ( - + ( + 79 ) ) AS col1
----
5688

query I rowsort
SELECT 42 + + 73
----
115

query II rowsort
SELECT DISTINCT 31 AS col1, 80 + ( 70 )
----
31
150

query I rowsort
SELECT ( 70 ) + - + 50
----
20

query I rowsort
SELECT ALL 8 * - 22 * + 65 AS col0
----
-11440

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT DISTINCT 44, MAX( ALL + 74 ) AS col2
----
44
74

skipif mysql # not compatible
query II rowsort label-4925
SELECT DISTINCT 44, MAX ( ALL + 74 ) AS col2
----
44
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4926
SELECT ALL + 38 + - + SUM( DISTINCT + - 1 ) * - 58 DIV 67
----
38

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + 38 + - + SUM ( DISTINCT + - 1 ) * - 58 / 67
----
38

query II rowsort
SELECT - 48 AS col2, 42
----
-48
42

query I rowsort
SELECT 87 + 26
----
113

query I rowsort
SELECT ALL COALESCE ( - - 99, + + 57 * - 98 + + + 92, - 74 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4930
SELECT DISTINCT ( + CASE CASE + + MAX( - ( + ( + 66 ) ) ) WHEN + CAST( NULL AS DECIMAL ) * + - 6 THEN - 16 + - ( 56 ) + - 51 * 92 WHEN MAX( DISTINCT 59 ) * + 83 THEN NULL END WHEN 4 * + 7 - + 82 THEN ( 0 ) * 82 WHEN + ( 6 ) THEN NULL WHEN - 56 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT ( + CASE CASE + + MAX ( - ( + ( + 66 ) ) ) WHEN + CAST ( NULL AS REAL ) * + - 6 THEN - 16 + - ( 56 ) + - 51 * 92 WHEN MAX ( DISTINCT 59 ) * + 83 THEN NULL END WHEN 4 * + 7 - + 82 THEN ( 0 ) * 82 WHEN + ( 6 ) THEN NULL WHEN - 56 THEN NULL ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT 89 * - + 68 * 88 AS col1
----
-532576

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT ALL - 21 + - 5 AS col1, - COUNT( * ) AS col0
----
-26
-1

skipif mysql # not compatible
query II rowsort label-4932
SELECT ALL - 21 + - 5 AS col1, - COUNT ( * ) AS col0
----
-26
-1

query I rowsort
SELECT ALL - 41 + - CASE + 5 WHEN - + NULLIF ( + 82, 56 ) - + 60 + + 23 THEN - 79 + - + 90 WHEN 72 + + 9 THEN NULL END - 61
----
NULL

query I rowsort
SELECT ALL + 82 * ( - 64 ) AS col1
----
-5248

query II rowsort
SELECT - 29 col1, 48 AS col2
----
-29
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4936
SELECT ALL - 71 + - + 57 AS col0, + COUNT( * ) + - 62 * - 54 * - - 11 * + + ( + + 12 ) + + - 14 + + + NULLIF ( - CAST( - 6 AS SIGNED ), - 55 ) AS col1
----
-128
441929

skipif mysql # not compatible
query II rowsort label-4936
SELECT ALL - 71 + - + 57 AS col0, + COUNT ( * ) + - 62 * - 54 * - - 11 * + + ( + + 12 ) + + - 14 + + + NULLIF ( - CAST ( - 6 AS INTEGER ), - 55 ) AS col1
----
-128
441929

query I rowsort
SELECT 12 * + 28 * - - 24 * + + 88 AS col0
----
709632

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT ALL - 91 + - + 99 + + - 29 * 87 AS col0, + COUNT( * ) AS col2
----
-2713
1

skipif mysql # not compatible
query II rowsort label-4938
SELECT ALL - 91 + - + 99 + + - 29 * 87 AS col0, + COUNT ( * ) AS col2
----
-2713
1

query I rowsort
SELECT ALL - 80 + - 96 AS col0
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-4940
SELECT + 52 AS col1, - COUNT( * ) * - 23 col2
----
52
23

skipif mysql # not compatible
query II rowsort label-4940
SELECT + 52 AS col1, - COUNT ( * ) * - 23 col2
----
52
23

query II rowsort
SELECT + 2, - 51 AS col0
----
2
-51

query I rowsort
SELECT 38 * - 6
----
-228

query II rowsort
SELECT 24 AS col1, + 21 col1
----
24
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT + COUNT( DISTINCT - - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-4944
SELECT + COUNT ( DISTINCT - - 41 )
----
1

query I rowsort
SELECT ALL + 45 - 46 * - - 40 AS col1
----
-1795

query I rowsort
SELECT ( - 49 ) * 43
----
-2107

query I rowsort
SELECT 37 - - - 60 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT 36 + + 25 * + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4948
SELECT 36 + + 25 * + + COUNT ( * )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4949
SELECT 14 * - CAST( 87 AS SIGNED ) + 86
----
-1132

skipif mysql # not compatible
query I rowsort label-4949
SELECT 14 * - CAST ( 87 AS INTEGER ) + 86
----
-1132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4950
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COALESCE ( + + COUNT( DISTINCT + - 7 ), + 45 ) AS col0, - CAST( MIN( ALL 55 ) AS SIGNED ) AS col1
----
NULL
-55

skipif mysql # not compatible
query II rowsort label-4950
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COALESCE ( + + COUNT ( DISTINCT + - 7 ), + 45 ) AS col0, - CAST ( MIN ( ALL 55 ) AS INTEGER ) AS col1
----
NULL
-55

query I rowsort
SELECT ( - 5 ) - - - 23 - 92 AS col1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT SUM( - 23 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT SUM ( - 23 ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 71 * ( + + 81 ) AS col0
----
5751

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT - SUM( - ( - 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-4954
SELECT - SUM ( - ( - 46 ) )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4955
SELECT - 49 + - COUNT( * ), 18 AS col0
----
-50
18

skipif mysql # not compatible
query II rowsort label-4955
SELECT - 49 + - COUNT ( * ), 18 AS col0
----
-50
18

onlyif mysql # CAST syntax: aggr