sqllogictest
Artifact Content
Not logged in

Artifact e6ffc62cdc2b912526616951a91ae08ed93eef9d:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT COUNT( * ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-0
SELECT COUNT ( * ) + 36
----
37

query II rowsort
SELECT ALL 89 + + 75 AS col1, + 26
----
164
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2
SELECT 17 + 76 DIV - COALESCE ( 21, COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-2
SELECT 17 + 76 / - COALESCE ( 21, COUNT ( * ) )
----
14

query I rowsort
SELECT 50 + - 61
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL + + 4 * + NULLIF ( + 32, - 98 ) + + ( SUM( ALL + 74 ) ) + - MAX( ALL + 43 )
----
159

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + + 4 * + NULLIF ( + 32, - 98 ) + + ( SUM ( ALL + 74 ) ) + - MAX ( ALL + 43 )
----
159

query I rowsort
SELECT 27 + + 22 + 21 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT DISTINCT - 60 * + 36 * CAST( - 49 AS SIGNED ) * - CASE - - COUNT( DISTINCT + 13 ) WHEN - - 13 THEN - 46 ELSE 92 END
----
-9737280

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - 60 * + 36 * CAST ( - 49 AS INTEGER ) * - CASE - - COUNT ( DISTINCT + 13 ) WHEN - - 13 THEN - 46 ELSE 92 END
----
-9737280

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

skipif mysql # not compatible
query I rowsort label-7
SELECT + - COUNT ( ALL - 66 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT DISTINCT + MIN( ALL + + ( - 45 ) )
----
-45

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT + MIN ( ALL + + ( - 45 ) )
----
-45

query I rowsort
SELECT ALL + - 62 col2
----
-62

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-12
SELECT ALL ( CAST( + + 52 AS SIGNED ) ) * - COUNT( * ) + - 37
----
-89

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL ( CAST ( + + 52 AS INTEGER ) ) * - COUNT ( * ) + - 37
----
-89

query I rowsort
SELECT + - 75 col0
----
-75

query I rowsort
SELECT - 68 * + 26 AS col2
----
-1768

query II rowsort
SELECT ALL + - 69 * + 49 col1, + 43 AS col1
----
-3381
43

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

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

query I rowsort
SELECT - 92 * - 56 AS col1
----
5152

query I rowsort
SELECT + 97 * + - 0 AS col0
----
0

query II rowsort
SELECT - 72 AS col1, - 93
----
-72
-93

query I rowsort
SELECT ALL 77 col0
----
77

query I rowsort
SELECT ALL 86 AS col0
----
86

query I rowsort
SELECT + 55 + - + 70 AS col1
----
-15

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT 39 AS col0, 69 * + COUNT( * )
----
39
69

skipif mysql # not compatible
query II rowsort label-25
SELECT 39 AS col0, 69 * + COUNT ( * )
----
39
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-26
SELECT + COALESCE ( - COALESCE ( 58, + CAST( CAST( + - 8 AS SIGNED ) AS SIGNED ) + + + 45 + - - COUNT( DISTINCT + 95 ) * - - 92 * - 62 ), + + SUM( - + 74 ) * + - 9 + + 99 * - 32 ) + + NULLIF ( - CASE + 28 WHEN - + 45 THEN + - COALESCE ( + 72, - COUNT( * ), - 20 * 55 * + 14 DIV + 40 + - - 74 - + 55 ) + + ( + ( - + 38 ) ) WHEN - + ( - 23 ) * + - 41 THEN NULL ELSE + COUNT( - ( + - 97 ) ) + 56 + - 88 DIV - 3 END, SUM( ALL + + COALESCE ( + NULLIF ( 13, 46 + + 79 ), - + 61 ) ) DIV COUNT( * ) ) AS col0
----
-144

skipif mysql # not compatible
query I rowsort label-26
SELECT + COALESCE ( - COALESCE ( 58, + CAST ( CAST ( + - 8 AS INTEGER ) AS INTEGER ) + + + 45 + - - COUNT ( DISTINCT + 95 ) * - - 92 * - 62 ), + + SUM ( - + 74 ) * + - 9 + + 99 * - 32 ) + + NULLIF ( - CASE + 28 WHEN - + 45 THEN + - COALESCE ( + 72, - COUNT ( * ), - 20 * 55 * + 14 / + 40 + - - 74 - + 55 ) + + ( + ( - + 38 ) ) WHEN - + ( - 23 ) * + - 41 THEN NULL ELSE + COUNT ( - ( + - 97 ) ) + 56 + - 88 / - 3 END, SUM ( ALL + + COALESCE ( + NULLIF ( 13, 46 + + 79 ), - + 61 ) ) / COUNT ( * ) ) AS col0
----
-144

query I rowsort
SELECT - 95 * - 79 * 16 * - - 24 AS col1
----
2881920

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + COUNT( * ) + SUM( ALL + - 63 )
----
-62

skipif mysql # not compatible
query I rowsort label-28
SELECT + COUNT ( * ) + SUM ( ALL + - 63 )
----
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT + 1 + SUM( ALL + ( - 14 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT + 1 + SUM ( ALL + ( - 14 ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT ALL 83 + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL 83 + - COUNT ( * )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-32
SELECT - NULLIF ( MAX( ALL + 55 ), 44 + + 60 + CAST( 57 AS SIGNED ) ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-32
SELECT - NULLIF ( MAX ( ALL + 55 ), 44 + + 60 + CAST ( 57 AS INTEGER ) ) AS col2
----
-55

query I rowsort
SELECT DISTINCT - 93 col1
----
-93

query I rowsort
SELECT ALL + 12 + 23
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-35
SELECT DISTINCT + 53 + + CAST( NULL AS SIGNED ) * - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT + 53 + + CAST ( NULL AS INTEGER ) * - 23 AS col0
----
NULL

query II rowsort
SELECT 0 AS col1, - 8 AS col2
----
0
-8

query I rowsort
SELECT ALL 66 + - 91
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL - 20 + 41 - - - 63 + + MIN( ALL + 60 ) * + 82
----
4878

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL - 20 + 41 - - - 63 + + MIN ( ALL + 60 ) * + 82
----
4878

query II rowsort
SELECT - 59, 52 AS col1
----
-59
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT + ( CASE + 53 WHEN + - 78 THEN + + 17 END ) / + CAST( SUM( - - ( - + CAST( + - 67 AS SIGNED ) ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-40
SELECT + ( CASE + 53 WHEN + - 78 THEN + + 17 END ) / + CAST ( SUM ( - - ( - + CAST ( + - 67 AS INTEGER ) ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-41
SELECT + - 34 * + CAST( - 50 AS SIGNED ), 26 AS col1
----
1700
26

skipif mysql # not compatible
query II rowsort label-41
SELECT + - 34 * + CAST ( - 50 AS INTEGER ), 26 AS col1
----
1700
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-42
SELECT DISTINCT - 29 / + CASE + + CAST( + 12 AS DECIMAL ) WHEN + 86 THEN + 42 + - + 23 END * COALESCE ( COUNT( * ), COUNT( * ) ) + + 78 AS col1, 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-42
SELECT DISTINCT - 29 / + CASE + + CAST ( + 12 AS REAL ) WHEN + 86 THEN + 42 + - + 23 END * COALESCE ( COUNT ( * ), COUNT ( * ) ) + + 78 AS col1, 17 AS col1
----
NULL
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-43
SELECT + - 65 - + 77 + - + 90, - CASE - - 76 WHEN - + 29 + - MAX( DISTINCT + 58 ) THEN NULL WHEN - 61 - + - 38 * + 37 THEN CAST( NULL AS SIGNED ) - + - 57 + - 27 WHEN - 80 THEN - 18 END * - + MAX( ALL 80 ) + + + 22 AS col1
----
-232
NULL

skipif mysql # not compatible
query II rowsort label-43
SELECT + - 65 - + 77 + - + 90, - CASE - - 76 WHEN - + 29 + - MAX ( DISTINCT + 58 ) THEN NULL WHEN - 61 - + - 38 * + 37 THEN CAST ( NULL AS INTEGER ) - + - 57 + - 27 WHEN - 80 THEN - 18 END * - + MAX ( ALL 80 ) + + + 22 AS col1
----
-232
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT + COUNT( ALL - + 18 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-44
SELECT + COUNT ( ALL - + 18 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-45
SELECT ALL + 96 DIV - 39 * COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + 96 / - 39 * COUNT ( * ) AS col2
----
-2

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

query II rowsort
SELECT + - 10 AS col2, + 76 AS col1
----
-10
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-48
SELECT + CASE - - ( - ( - + CAST( - COUNT( * ) AS SIGNED ) ) ) WHEN + ( + 18 ) THEN + CAST( NULL AS SIGNED ) WHEN - 96 THEN - 79 + CAST( NULL AS SIGNED ) * + + MAX( + + 47 ) WHEN - COALESCE ( - + 85, + + 8 * + + CAST( + - CAST( - + 44 AS SIGNED ) AS SIGNED ), - + COUNT( * ) + - - NULLIF ( 97, - CAST( 29 AS SIGNED ) ) + ( - + 44 ) ) THEN + 13 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-48
SELECT + CASE - - ( - ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) ) WHEN + ( + 18 ) THEN + CAST ( NULL AS INTEGER ) WHEN - 96 THEN - 79 + CAST ( NULL AS INTEGER ) * + + MAX ( + + 47 ) WHEN - COALESCE ( - + 85, + + 8 * + + CAST ( + - CAST ( - + 44 AS INTEGER ) AS INTEGER ), - + COUNT ( * ) + - - NULLIF ( 97, - CAST ( 29 AS INTEGER ) ) + ( - + 44 ) ) THEN + 13 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT + - 38 * + ( - - 24 ) col2
----
-912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-51
SELECT - 28 col2, CAST( ( - + 41 ) AS SIGNED ) AS col1
----
-28
-41

skipif mysql # not compatible
query II rowsort label-51
SELECT - 28 col2, CAST ( ( - + 41 ) AS INTEGER ) AS col1
----
-28
-41

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

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

query II rowsort
SELECT 79 AS col1, + 8
----
79
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-54
SELECT + CAST( 48 AS SIGNED ) DIV - 79 * + - 24 + - CAST( - COALESCE ( 72, + 30 ) AS SIGNED ) col0
----
72

skipif mysql # not compatible
query I rowsort label-54
SELECT + CAST ( 48 AS INTEGER ) / - 79 * + - 24 + - CAST ( - COALESCE ( 72, + 30 ) AS INTEGER ) col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-55
SELECT - 98 * + COUNT( * ) AS col0, 19 col2
----
-98
19

skipif mysql # not compatible
query II rowsort label-55
SELECT - 98 * + COUNT ( * ) AS col0, 19 col2
----
-98
19

query I rowsort
SELECT + 68 + + - 19 AS col0
----
49

query I rowsort
SELECT NULLIF ( + 2, + 50 * 59 - - 15 ) AS col1
----
2

query I rowsort
SELECT ALL + 28 AS col2
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-59
SELECT - 62 DIV - - 21 col1, 73
----
-2
73

skipif mysql # not compatible
query II rowsort label-59
SELECT - 62 / - - 21 col1, 73
----
-2
73

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT DISTINCT + 59 * + SUM( DISTINCT + - 35 )
----
-2065

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + 59 * + SUM ( DISTINCT + - 35 )
----
-2065

query I rowsort
SELECT - 14 + 91 AS col0
----
77

query I rowsort
SELECT ALL + 87 * 74 * - - 93 col1
----
598734

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT DISTINCT + MAX( + 8 ) * MIN( DISTINCT + 30 ) + 18 + - - COUNT( * )
----
259

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT + MAX ( + 8 ) * MIN ( DISTINCT + 30 ) + 18 + - - COUNT ( * )
----
259

query I rowsort
SELECT - 20 - - 98 + 51 AS col1
----
129

onlyif mysql # DIV for integer division: 
query II rowsort label-65
SELECT - 96 DIV + 97, 57 AS col0
----
0
57

skipif mysql # not compatible
query II rowsort label-65
SELECT - 96 / + 97, 57 AS col0
----
0
57

onlyif mysql # aggregate syntax: 
query II rowsort label-66
SELECT COUNT( ALL + - 92 ) col0, + 71 AS col1
----
1
71

skipif mysql # not compatible
query II rowsort label-66
SELECT COUNT ( ALL + - 92 ) col0, + 71 AS col1
----
1
71

query I rowsort
SELECT DISTINCT + 42 + 83
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT + 97 + + - COUNT( + 16 )
----
96

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT + 97 + + - COUNT ( + 16 )
----
96

query I rowsort
SELECT DISTINCT 9 AS col2
----
9

query I rowsort
SELECT ALL 4 col0
----
4

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

skipif mysql # not compatible
query I rowsort label-71
SELECT - - SUM ( + 55 )
----
55

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-73
SELECT 89 + 50 + 6 DIV CASE - COUNT( * ) WHEN - 27 THEN NULL ELSE COUNT( * ) END col1, + 12 * 37
----
145
444

skipif mysql # not compatible
query II rowsort label-73
SELECT 89 + 50 + 6 / CASE - COUNT ( * ) WHEN - 27 THEN NULL ELSE COUNT ( * ) END col1, + 12 * 37
----
145
444

query I rowsort
SELECT - 0 + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT DISTINCT + + COUNT( * ) / 22 * CASE + - 44 WHEN - COUNT( * ) THEN + 39 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT DISTINCT + + COUNT ( * ) / 22 * CASE + - 44 WHEN - COUNT ( * ) THEN + 39 END AS col0
----
NULL

query I rowsort
SELECT ALL + 39 * + 1 AS col0
----
39

query I rowsort
SELECT + 23 * + 67 * + 55 AS col0
----
84755

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT DISTINCT - SUM( - 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-78
SELECT DISTINCT - SUM ( - 69 ) AS col0
----
69

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

query I rowsort
SELECT ALL - + 80 AS col0
----
-80

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-82
SELECT + CASE - 20 WHEN - + 58 + - 29 + AVG ( 26 ) / 41 THEN NULL WHEN + 66 * + ( + 47 ) - + COUNT( * ) THEN 43 * + - 61 + COALESCE ( - COUNT( * ), 11 * NULLIF ( - 99, - CAST( - - 85 AS DECIMAL ) ) + CASE - + 6 WHEN + 16 * 97 THEN NULL WHEN + - 44 * + 75 THEN + + ( + - MAX( - - ( 0 ) ) ) WHEN + - 55 + + COUNT( * ) + - 83 - + NULLIF ( 20, - 78 + - 51 + - 32 * + 70 + - - CAST( NULL AS SIGNED ) ) * - 59 + - COUNT( * ) * + 45 THEN NULL END ) - 60 * - + CAST( NULL AS SIGNED ) + - ( + - 19 ) + + 56 + - 36 + 90 * + ( CASE COUNT( * ) WHEN + 50 THEN NULL WHEN - 99 * - 41 + 14 THEN NULLIF ( 16, 74 / - CAST( + 72 AS SIGNED ) ) ELSE NULL END * 4 ) ELSE NULL END * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT + CASE - 20 WHEN - + 58 + - 29 + AVG ( 26 ) / 41 THEN NULL WHEN + 66 * + ( + 47 ) - + COUNT ( * ) THEN 43 * + - 61 + COALESCE ( - COUNT ( * ), 11 * NULLIF ( - 99, - CAST ( - - 85 AS REAL ) ) + CASE - + 6 WHEN + 16 * 97 THEN NULL WHEN + - 44 * + 75 THEN + + ( + - MAX ( - - ( 0 ) ) ) WHEN + - 55 + + COUNT ( * ) + - 83 - + NULLIF ( 20, - 78 + - 51 + - 32 * + 70 + - - CAST ( NULL AS INTEGER ) ) * - 59 + - COUNT ( * ) * + 45 THEN NULL END ) - 60 * - + CAST ( NULL AS INTEGER ) + - ( + - 19 ) + + 56 + - 36 + 90 * + ( CASE COUNT ( * ) WHEN + 50 THEN NULL WHEN - 99 * - 41 + 14 THEN NULLIF ( 16, 74 / - CAST ( + 72 AS INTEGER ) ) ELSE NULL END * 4 ) ELSE NULL END * - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-83
SELECT 35 * + 7 + - 14 + + 60 + + COALESCE ( - 46, - + 76 ) / 6 - + + CASE + 41 WHEN + ( + + COUNT( * ) ) THEN NULL ELSE + 86 * CASE + 67 WHEN + - NULLIF ( + ( + 69 ), - 20 ) * - COUNT( * ) THEN + - MAX( ALL CAST( + + 33 AS SIGNED ) ) ELSE NULL END + - 11 END - - + 70 * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-83
SELECT 35 * + 7 + - 14 + + 60 + + COALESCE ( - 46, - + 76 ) / 6 - + + CASE + 41 WHEN + ( + + COUNT ( * ) ) THEN NULL ELSE + 86 * CASE + 67 WHEN + - NULLIF ( + ( + 69 ), - 20 ) * - COUNT ( * ) THEN + - MAX ( ALL CAST ( + + 33 AS INTEGER ) ) ELSE NULL END + - 11 END - - + 70 * + 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT + 31 DIV - 9 - 28 + + 23 + + 91 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-84
SELECT + 31 / - 9 - 28 + + 23 + + 91 AS col0
----
83

query I rowsort
SELECT + 17 col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-86
SELECT ALL - 23 DIV - 10 AS col1, NULLIF ( + COUNT( 67 ), 46 + - - 41 * + 83 )
----
2
1

skipif mysql # not compatible
query II rowsort label-86
SELECT ALL - 23 / - 10 AS col1, NULLIF ( + COUNT ( 67 ), 46 + - - 41 * + 83 )
----
2
1

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

skipif mysql # not compatible
query I rowsort label-87
SELECT COUNT ( * ) * 91
----
91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-89
SELECT ALL 74 + - + 29 * - 56, MIN( - - 16 ) col0
----
1698
16

skipif mysql # not compatible
query II rowsort label-89
SELECT ALL 74 + - + 29 * - 56, MIN ( - - 16 ) col0
----
1698
16

query I rowsort
SELECT DISTINCT - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL COUNT( * ) * COUNT( * ) * 33 / + NULLIF ( + CASE + COUNT( * ) WHEN + 24 THEN - MAX( DISTINCT + 75 ) WHEN + + COUNT( * ) THEN NULL END, + - MIN( DISTINCT - + 50 ) ) * + - NULLIF ( ( + - COUNT( * ) ), + 92 + - 6 * + COALESCE ( + + ( 45 ), - + 89 - - - COUNT( * ) + - 45 ) ) - + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL COUNT ( * ) * COUNT ( * ) * 33 / + NULLIF ( + CASE + COUNT ( * ) WHEN + 24 THEN - MAX ( DISTINCT + 75 ) WHEN + + COUNT ( * ) THEN NULL END, + - MIN ( DISTINCT - + 50 ) ) * + - NULLIF ( ( + - COUNT ( * ) ), + 92 + - 6 * + COALESCE ( + + ( 45 ), - + 89 - - - COUNT ( * ) + - 45 ) ) - + 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT ( + 98 ) + - COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-92
SELECT ( + 98 ) + - COUNT ( * ) AS col1
----
97

query I rowsort
SELECT 31 * - - 29 * - - 32 AS col0
----
28768

query II rowsort
SELECT 72 AS col1, - 82 AS col1
----
72
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT ALL ( - - 12 ) + - COUNT( * ) * 18
----
-6

skipif mysql # not compatible
query I rowsort label-95
SELECT ALL ( - - 12 ) + - COUNT ( * ) * 18
----
-6

query I rowsort
SELECT ( - - 55 ) + - + 10
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-97
SELECT COUNT( * ) - - - COALESCE ( - 87, COUNT( * ) + ( + COUNT( * ) ) / + 82 * + AVG ( + - 32 ), - 79 * + 17 + + + 10, + - 12 * + + 91 + MAX( DISTINCT - 11 ) ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT COUNT ( * ) - - - COALESCE ( - 87, COUNT ( * ) + ( + COUNT ( * ) ) / + 82 * + AVG ( + - 32 ), - 79 * + 17 + + + 10, + - 12 * + + 91 + MAX ( DISTINCT - 11 ) ) / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-98
SELECT COUNT( * ) + + 43 DIV 95 AS col0, + ( MIN( DISTINCT 93 ) ) * 65 + - 57 - - MIN( - 3 ) AS col2
----
1
5985

skipif mysql # not compatible
query II rowsort label-98
SELECT COUNT ( * ) + + 43 / 95 AS col0, + ( MIN ( DISTINCT 93 ) ) * 65 + - 57 - - MIN ( - 3 ) AS col2
----
1
5985

query I rowsort
SELECT 53 - 43
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-100
SELECT DISTINCT 44 AS col2, CAST( NULL AS DECIMAL ) AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-100
SELECT DISTINCT 44 AS col2, CAST ( NULL AS REAL ) AS col1
----
44
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT + 38 / COUNT ( * )
----
38

query II rowsort
SELECT DISTINCT 53 AS col2, + 51
----
53
51

query I rowsort
SELECT DISTINCT - ( - 59 ) * - ( 46 - 67 )
----
1239

query I rowsort
SELECT 36 * + 27 AS col0
----
972

query I rowsort
SELECT ALL - 20 * 1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-107
SELECT 42 DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-107
SELECT 42 / 55 AS col1
----
0

query I rowsort
SELECT 78 + 41
----
119

query I rowsort
SELECT ALL + 48 - - 34
----
82

query I rowsort
SELECT DISTINCT + 75 * - NULLIF ( ( - 68 ), 34 - - 2 / 95 ) AS col2
----
5100

query I rowsort
SELECT DISTINCT + 66 - 8
----
58

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

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

query I rowsort
SELECT 61 * + 76 AS col0
----
4636

query I rowsort
SELECT 67 - 87
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL - COALESCE ( + 24, + 29 - CAST( NULL AS SIGNED ) )
----
-24

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - COALESCE ( + 24, + 29 - CAST ( NULL AS INTEGER ) )
----
-24

query I rowsort
SELECT 77 - 1
----
76

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

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL 80 * + CAST ( - 22 AS INTEGER )
----
-1760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-118
SELECT 93 DIV - ( 51 * MIN( 54 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-118
SELECT 93 / - ( 51 * MIN ( 54 ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT DISTINCT - 13 DIV - ( + 25 * 87 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT - 13 / - ( + 25 * 87 ) col0
----
0

query I rowsort
SELECT DISTINCT - 4 * 2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT DISTINCT + 68 * + NULLIF ( - CAST( + COUNT( * ) AS SIGNED ), 98 + + 38 * 29 ) + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT + 68 * + NULLIF ( - CAST ( + COUNT ( * ) AS INTEGER ), 98 + + 38 * 29 ) + COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT ALL - SUM( ALL 87 ) * 17 + COUNT( * ) * + 61
----
-1418

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL - SUM ( ALL 87 ) * 17 + COUNT ( * ) * + 61
----
-1418

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT 23 DIV + 6 - - 79 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-123
SELECT 23 / + 6 - - 79 AS col0
----
82

query I rowsort
SELECT ALL - 86 * - 1 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT DISTINCT - 24 * - 39 + AVG ( DISTINCT - 77 ) / - CASE + NULLIF ( 49, + ( 91 ) ) WHEN + ( - MIN( - 26 ) ) THEN - 55 WHEN 74 * + 35 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT - 24 * - 39 + AVG ( DISTINCT - 77 ) / - CASE + NULLIF ( 49, + ( 91 ) ) WHEN + ( - MIN ( - 26 ) ) THEN - 55 WHEN 74 * + 35 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT NULLIF ( 68, 17 * 19 + MAX( - 58 ) ) - + COUNT( * ) * 99
----
-31

skipif mysql # not compatible
query I rowsort label-126
SELECT NULLIF ( 68, 17 * 19 + MAX ( - 58 ) ) - + COUNT ( * ) * 99
----
-31

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

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

query I rowsort
SELECT ALL 97 + 51
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL ( + 59 ) + + 47 * - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL ( + 59 ) + + 47 * - COUNT ( * ) AS col0
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT + MIN( ALL 19 )
----
19

skipif mysql # not compatible
query I rowsort label-131
SELECT + MIN ( ALL 19 )
----
19

query I rowsort
SELECT DISTINCT + 14 + 86 AS col0
----
100

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-135
SELECT ALL ( 24 ) + COUNT ( * ) AS col2
----
25

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

query I rowsort
SELECT ALL 60 * - 6 AS col2
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-138
SELECT DISTINCT CAST( + ( - 34 ) AS SIGNED ) + 29
----
-5

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT CAST ( + ( - 34 ) AS INTEGER ) + 29
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-139
SELECT + 1 + + COUNT( * ) DIV - 13 AS col0
----
1

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

query I rowsort
SELECT ALL 24 * - 72
----
-1728

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT + - 53 + - COUNT( + 32 )
----
-54

skipif mysql # not compatible
query I rowsort label-143
SELECT + - 53 + - COUNT ( + 32 )
----
-54

query I rowsort
SELECT + 60 * + 11 AS col2
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT - COUNT( * ) * - 79 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-145
SELECT - COUNT ( * ) * - 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT - + SUM( ALL + 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-146
SELECT - + SUM ( ALL + 99 ) AS col0
----
-99

query I rowsort
SELECT ALL + 72 * 81 AS col2
----
5832

query I rowsort
SELECT + 91 - 30 AS col2
----
61

query I rowsort
SELECT + + ( 74 ) * - 64 AS col2
----
-4736

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT ALL - + 35 * - NULLIF ( + COALESCE ( 20, 30 * COALESCE ( - 29, + 41, 14 * - COUNT( * ) ) ), 14 / NULLIF ( - 85, - 59 ) )
----
700

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL - + 35 * - NULLIF ( + COALESCE ( 20, 30 * COALESCE ( - 29, + 41, 14 * - COUNT ( * ) ) ), 14 / NULLIF ( - 85, - 59 ) )
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL ( COALESCE ( + 69, NULLIF ( + 92, + 89 ) + SUM( ALL + ( 11 ) ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL ( COALESCE ( + 69, NULLIF ( + 92, + 89 ) + SUM ( ALL + ( 11 ) ) ) )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT DISTINCT - ( 45 ) DIV 10
----
-4

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT - ( 45 ) / 10
----
-4

query I rowsort
SELECT + 58 * 17 AS col2
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + SUM( DISTINCT NULLIF ( - 83, 17 ) ) * - 41
----
3403

skipif mysql # not compatible
query I rowsort label-154
SELECT + SUM ( DISTINCT NULLIF ( - 83, 17 ) ) * - 41
----
3403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-155
SELECT - CAST( NULL AS SIGNED ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT - CAST ( NULL AS INTEGER ) * - 17
----
NULL

query I rowsort
SELECT ALL - 56 * 99
----
-5544

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT - - 45 DIV 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-158
SELECT - - 45 / 34 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT NULLIF ( 70, COUNT( * ) * + 1 )
----
70

skipif mysql # not compatible
query I rowsort label-159
SELECT NULLIF ( 70, COUNT ( * ) * + 1 )
----
70

query I rowsort
SELECT + + 76 + 76 * 15 AS col1
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT - + MAX( 23 ) - 65 * 76
----
-4963

skipif mysql # not compatible
query I rowsort label-161
SELECT - + MAX ( 23 ) - 65 * 76
----
-4963

query I rowsort
SELECT ALL + - 31 * + 72 AS col2
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT DISTINCT 64 + SUM( DISTINCT - 11 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT 64 + SUM ( DISTINCT - 11 ) AS col1
----
53

query I rowsort
SELECT ALL - 96 * - 46
----
4416

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

skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT SUM ( DISTINCT 45 )
----
45

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

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

query I rowsort
SELECT ALL - - 0 * 81 + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT - COUNT( * ) * + - 36 * - 94 + - 21
----
-3405

skipif mysql # not compatible
query I rowsort label-168
SELECT - COUNT ( * ) * + - 36 * - 94 + - 21
----
-3405

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-169
SELECT ALL - 80 * CAST( NULL AS DECIMAL ) / + 4 + ( - 92 + + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - 80 * CAST ( NULL AS REAL ) / + 4 + ( - 92 + + 8 )
----
NULL

query I rowsort
SELECT + 9 * - 82 * + 38 AS col0
----
-28044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-171
SELECT 27 DIV + CAST( 57 AS SIGNED ) + MAX( DISTINCT + 7 ) * + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-171
SELECT 27 / + CAST ( 57 AS INTEGER ) + MAX ( DISTINCT + 7 ) * + COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT - NULLIF ( + 71, 7 * - 61 + - 18 * COUNT( * ) ) * + 25 + 34
----
-1741

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT - NULLIF ( + 71, 7 * - 61 + - 18 * COUNT ( * ) ) * + 25 + 34
----
-1741

query I rowsort
SELECT ALL + 64 * + 52 + ( - 66 )
----
3262

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

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + MAX( + 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-175
SELECT + MAX ( + 56 ) col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT - 68 + + SUM( - 44 )
----
-112

skipif mysql # not compatible
query I rowsort label-176
SELECT - 68 + + SUM ( - 44 )
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT - 79 * MAX( DISTINCT 67 )
----
-5293

skipif mysql # not compatible
query I rowsort label-177
SELECT - 79 * MAX ( DISTINCT 67 )
----
-5293

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

query I rowsort
SELECT DISTINCT - 70 * + 32 + + 60 * ( 90 * + 14 - - 57 ) AS col0
----
76780

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL + 87 * 42 * 2 + CASE WHEN NOT + 55 IS NULL THEN - SUM( + 67 ) * - NULLIF ( + 37 * 20, ( - 59 ) + NULLIF ( 56 + 54, 14 / - 20 ) ) + 88 WHEN 96 IS NOT NULL THEN ( 90 ) END
----
56976

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL + 87 * 42 * 2 + CASE WHEN NOT + 55 IS NULL THEN - SUM ( + 67 ) * - NULLIF ( + 37 * 20, ( - 59 ) + NULLIF ( 56 + 54, 14 / - 20 ) ) + 88 WHEN 96 IS NOT NULL THEN ( 90 ) END
----
56976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-181
SELECT DISTINCT COUNT( * ) * + 93 * + COALESCE ( + SUM( 46 ), - CAST( - 57 AS SIGNED ), 49 * 65 - 11 ) AS col2
----
4278

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT COUNT ( * ) * + 93 * + COALESCE ( + SUM ( 46 ), - CAST ( - 57 AS INTEGER ), 49 * 65 - 11 ) AS col2
----
4278

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT DISTINCT + 32 * + - COUNT( * ) + + 62 DIV + 5
----
-20

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT + 32 * + - COUNT ( * ) + + 62 / + 5
----
-20

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

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

query I rowsort
SELECT ALL 97 * - + 33 - NULLIF ( 24, + 47 )
----
-3225

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT COALESCE ( + 94, - COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-185
SELECT COALESCE ( + 94, - COUNT ( * ) )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-186
SELECT ALL + CAST( MAX( + 20 ) AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL + CAST ( MAX ( + 20 ) AS INTEGER )
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT DISTINCT - CASE + 3 WHEN COUNT( 81 ) THEN - 16 WHEN + NULLIF ( 55, CASE 92 WHEN 4 THEN NULL WHEN - COUNT( * ) THEN + 72 * COUNT( * ) ELSE + 44 - + 56 END ) THEN + ( + 55 ) - 60 ELSE NULL END * COUNT( * ) - 48 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT - CASE + 3 WHEN COUNT ( 81 ) THEN - 16 WHEN + NULLIF ( 55, CASE 92 WHEN 4 THEN NULL WHEN - COUNT ( * ) THEN + 72 * COUNT ( * ) ELSE + 44 - + 56 END ) THEN + ( + 55 ) - 60 ELSE NULL END * COUNT ( * ) - 48 * 22
----
NULL

query I rowsort
SELECT - 13 * - - 84
----
-1092

query I rowsort
SELECT + COALESCE ( + 3, 64, 17, 92 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - 7 + + + COUNT( * ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-191
SELECT - 7 + + + COUNT ( * ) col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-192
SELECT - 66 - + 39 * ( 15 DIV 37 ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-192
SELECT - 66 - + 39 * ( 15 / 37 ) col2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT ALL 77 DIV + + 15
----
5

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL 77 / + + 15
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT - - 7 + - 85 * MAX( 96 )
----
-8153

skipif mysql # not compatible
query I rowsort label-194
SELECT - - 7 + - 85 * MAX ( 96 )
----
-8153

query I rowsort
SELECT ALL - 47 * - 65 + 98 - + CASE - 88 WHEN - 89 + 12 THEN 23 * 74 + + 64 * - 81 ELSE 57 END
----
3096

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

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT + + SUM( + 70 ) * - 55 + 43 * MAX( ALL 51 )
----
-1657

skipif mysql # not compatible
query I rowsort label-197
SELECT + + SUM ( + 70 ) * - 55 + 43 * MAX ( ALL 51 )
----
-1657

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL - COUNT( DISTINCT - 47 ) * 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL - COUNT ( DISTINCT - 47 ) * 72 AS col0
----
-72

query I rowsort
SELECT + + 91 + - 29 AS col0
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-200
SELECT ALL AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL AVG ( DISTINCT CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT + MIN( ALL - + 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-201
SELECT + MIN ( ALL - + 95 ) AS col2
----
-95

query I rowsort
SELECT + - 16 * + 55
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT + COALESCE ( - SUM( ALL 44 ), + 11 )
----
-44

skipif mysql # not compatible
query I rowsort label-203
SELECT + COALESCE ( - SUM ( ALL 44 ), + 11 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT - - 0 + + COUNT( * ) + 52 * - 13 * 72
----
-48671

skipif mysql # not compatible
query I rowsort label-204
SELECT - - 0 + + COUNT ( * ) + 52 * - 13 * 72
----
-48671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-205
SELECT + CAST( - CASE ( 67 ) WHEN 98 THEN - 71 / 44 WHEN 2 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT + CAST ( - CASE ( 67 ) WHEN 98 THEN - 71 / 44 WHEN 2 THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( - 87 ) + 64 AS col1
----
-23

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

skipif mysql # not compatible
query I rowsort label-207
SELECT + - CAST ( - + ( - COALESCE ( COUNT ( * ), - 21 + 8 ) ) AS INTEGER ) * - 95 AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-208
SELECT ALL - 45 + 82 + 5 DIV + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - 45 + 82 + 5 / + COUNT ( * )
----
42

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

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

query I rowsort
SELECT ALL ( 26 ) + 96
----
122

query I rowsort
SELECT DISTINCT + 12 + + - 32
----
-20

query I rowsort
SELECT - 32 * - 58 * ( 19 * + 26 )
----
916864

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

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

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

query I rowsort
SELECT - 92 * 14 AS col1
----
-1288

query II rowsort
SELECT + 66, - 66 + + 82 AS col1
----
66
16

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT + 79 - - - 94 + 39 * 1 DIV 24
----
-14

skipif mysql # not compatible
query I rowsort label-217
SELECT + 79 - - - 94 + 39 * 1 / 24
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT - SUM( DISTINCT + + 63 ) * + - 42
----
2646

skipif mysql # not compatible
query I rowsort label-218
SELECT - SUM ( DISTINCT + + 63 ) * + - 42
----
2646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT ALL + 43 DIV + + COUNT( * ) - - + 7 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL + 43 / + + COUNT ( * ) - - + 7 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-220
SELECT DISTINCT NULLIF ( + + SUM( - 65 ), - 1 ) * + COALESCE ( + 12, + 67 DIV - 36 )
----
-780

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT NULLIF ( + + SUM ( - 65 ), - 1 ) * + COALESCE ( + 12, + 67 / - 36 )
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL + 96 - + - CASE + - 16 WHEN 21 THEN + 71 + + 79 / + COUNT( * ) WHEN + 23 THEN NULL ELSE NULL END + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL + 96 - + - CASE + - 16 WHEN 21 THEN + 71 + + 79 / + COUNT ( * ) WHEN + 23 THEN NULL ELSE NULL END + 63
----
NULL

query I rowsort
SELECT 56 - + 14
----
42

query I rowsort
SELECT ALL + 97 - + 93 AS col1
----
4

query II rowsort
SELECT 31 AS col0, 90 + 69 col0
----
31
159

query I rowsort
SELECT + 43 col1
----
43

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT 72 * + 90 * + COUNT( * ) AS col2
----
6480

skipif mysql # not compatible
query I rowsort label-228
SELECT 72 * + 90 * + COUNT ( * ) AS col2
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT 46 + - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-229
SELECT 46 + - - COUNT ( * )
----
47

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

query II rowsort
SELECT ALL - 17 AS col1, 74
----
-17
74

query I rowsort
SELECT 55 + + - 62 AS col1
----
-7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT ALL + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * AVG ( 50 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * AVG ( 50 ) col0
----
NULL

query I rowsort
SELECT ALL - 59 col0
----
-59

query I rowsort
SELECT DISTINCT + 23 * + 40
----
920

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

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

query I rowsort
SELECT - NULLIF ( + + 52, + 27 )
----
-52

query I rowsort
SELECT - 40 - + 25 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-240
SELECT - - COUNT( * ), 94 * 83 AS col0
----
1
7802

skipif mysql # not compatible
query II rowsort label-240
SELECT - - COUNT ( * ), 94 * 83 AS col0
----
1
7802

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL + - MAX( DISTINCT - + 45 ) + + 50
----
95

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL + - MAX ( DISTINCT - + 45 ) + + 50
----
95

query I rowsort
SELECT 58 + + + 8 AS col1
----
66

query I rowsort
SELECT - 23 * 33 * - 52
----
39468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-244
SELECT - 67 + + CAST( NULL AS DECIMAL ) * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT - 67 + + CAST ( NULL AS REAL ) * + 14
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-245
SELECT ALL - 54 + COUNT( * ) DIV - 32 + - 32 * 19
----
-662

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - 54 + COUNT ( * ) / - 32 + - 32 * 19
----
-662

query I rowsort
SELECT DISTINCT ( + - 83 ) AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-247
SELECT ALL 20 + - 9 * + 40 * 32 + - CAST( - ( 56 ) AS SIGNED ) * - 65
----
-15140

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL 20 + - 9 * + 40 * 32 + - CAST ( - ( 56 ) AS INTEGER ) * - 65
----
-15140

query I rowsort
SELECT DISTINCT + 25 AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-249
SELECT DISTINCT + + COUNT( * ) + - - 86 - - - ( - COUNT( * ) ) * ( 30 DIV 26 - 62 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT + + COUNT ( * ) + - - 86 - - - ( - COUNT ( * ) ) * ( 30 / 26 - 62 ) AS col1
----
26

query I rowsort
SELECT 30 + + CASE - 75 WHEN - 45 THEN - 18 + 62 END
----
NULL

query I rowsort
SELECT + 17 + - 93 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT ALL - 13 + MAX( ALL 41 )
----
28

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL - 13 + MAX ( ALL 41 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT - - SUM( - 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-253
SELECT - - SUM ( - 45 ) AS col2
----
-45

query I rowsort
SELECT 7 + - 52
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT 11 + + + 73 * - + MIN( DISTINCT - 27 ) * 91 AS col2
----
179372

skipif mysql # not compatible
query I rowsort label-255
SELECT 11 + + + 73 * - + MIN ( DISTINCT - 27 ) * 91 AS col2
----
179372

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT 47 - 95 + 9 + - + 35 DIV 16 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-256
SELECT 47 - 95 + 9 + - + 35 / 16 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-257
SELECT DISTINCT CASE + 51 WHEN 62 THEN - - CAST( - ( - ( 62 ) ) AS SIGNED ) WHEN + MAX( ALL + 96 ) * - 8 THEN 54 * - COUNT( * ) END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT CASE + 51 WHEN 62 THEN - - CAST ( - ( - ( 62 ) ) AS INTEGER ) WHEN + MAX ( ALL + 96 ) * - 8 THEN 54 * - COUNT ( * ) END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-258
SELECT ALL 44 - - 42 + + + CAST( NULL AS SIGNED ) * 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL 44 - - 42 + + + CAST ( NULL AS INTEGER ) * 9 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT NULLIF ( + COUNT( * ), + 72 / - 41 + 12 ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-259
SELECT NULLIF ( + COUNT ( * ), + 72 / - 41 + 12 ) * - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL COUNT( * ) - - 10 * + + 7 + - COALESCE ( 35, ( - 17 ) + COALESCE ( + 49, 48 ) * + CASE ( + 83 ) * - 52 WHEN + COUNT( * ) THEN + 65 WHEN + COUNT( * ) * COUNT( * ) THEN NULL END ) - 78 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL COUNT ( * ) - - 10 * + + 7 + - COALESCE ( 35, ( - 17 ) + COALESCE ( + 49, 48 ) * + CASE ( + 83 ) * - 52 WHEN + COUNT ( * ) THEN + 65 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL END ) - 78 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-261
SELECT DISTINCT CAST( + - 64 AS SIGNED ) DIV - COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT CAST ( + - 64 AS INTEGER ) / - COUNT ( * ) AS col1
----
64

query I rowsort
SELECT 65 + - 90 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-263
SELECT ( - COUNT( DISTINCT 85 ) ) DIV + 50 * - ( + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-263
SELECT ( - COUNT ( DISTINCT 85 ) ) / + 50 * - ( + 94 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT ALL 2 * - CASE 4 WHEN + ( - 35 ) THEN NULL WHEN - NULLIF ( - 26, - CAST( NULL AS SIGNED ) ) + 43 THEN - 38 * - ( 85 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL 2 * - CASE 4 WHEN + ( - 35 ) THEN NULL WHEN - NULLIF ( - 26, - CAST ( NULL AS INTEGER ) ) + 43 THEN - 38 * - ( 85 ) END
----
NULL

query I rowsort
SELECT CASE 5 WHEN - 17 * - 6 * 0 THEN 74 * - 4 + + 71 * + 51 ELSE NULL END * + 65 + + 17
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-267
SELECT 62 DIV - - 53
----
1

skipif mysql # not compatible
query I rowsort label-267
SELECT 62 / - - 53
----
1

query I rowsort
SELECT DISTINCT 23 + + 83
----
106

query I rowsort
SELECT - 71 + + 8 AS col2
----
-63

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

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

query I rowsort
SELECT - ( - 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + + 31 * + MIN( ALL ( + ( ( + 63 ) ) ) ) + + NULLIF ( + ( 15 ), 16 ) + 15 col2
----
1983

skipif mysql # not compatible
query I rowsort label-272
SELECT + + 31 * + MIN ( ALL ( + ( ( + 63 ) ) ) ) + + NULLIF ( + ( 15 ), 16 ) + 15 col2
----
1983

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT + - 16 * - - MIN( DISTINCT + 99 ) * - 74 * 20 + - COUNT( * ) col0
----
2344319

skipif mysql # not compatible
query I rowsort label-273
SELECT + - 16 * - - MIN ( DISTINCT + 99 ) * - 74 * 20 + - COUNT ( * ) col0
----
2344319

query I rowsort
SELECT DISTINCT - + 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL - ( + + 10 ) + 91 * - COALESCE ( NULLIF ( - 58, SUM( ALL - 72 ) + COUNT( * ) ), + 79 ) * - 55 + + 51 AS col0
----
-290249

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL - ( + + 10 ) + 91 * - COALESCE ( NULLIF ( - 58, SUM ( ALL - 72 ) + COUNT ( * ) ), + 79 ) * - 55 + + 51 AS col0
----
-290249

query I rowsort
SELECT - 38 + 95
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-277
SELECT 58 * 53 / + CAST( NULL AS SIGNED ) * + 29 * 11 + + 22 * COUNT( * ) + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT 58 * 53 / + CAST ( NULL AS INTEGER ) * + 29 * 11 + + 22 * COUNT ( * ) + - 85 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-278
SELECT ALL - 8 + + CAST( + 38 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - 8 + + CAST ( + 38 AS INTEGER )
----
30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-280
SELECT DISTINCT - 75 + + 6 DIV 95 * - COALESCE ( + 92, - CASE - 51 WHEN 93 + + 52 THEN + 80 * COUNT( * ) END ) + - 93 col2
----
-168

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT - 75 + + 6 / 95 * - COALESCE ( + 92, - CASE - 51 WHEN 93 + + 52 THEN + 80 * COUNT ( * ) END ) + - 93 col2
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-281
SELECT ALL + 17 + - 94 - - CAST( NULL AS SIGNED ) * - 10 * + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + 17 + - 94 - - CAST ( NULL AS INTEGER ) * - 10 * + 44 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ( - 15 ) + + + COUNT( 36 )
----
-14

skipif mysql # not compatible
query I rowsort label-283
SELECT ( - 15 ) + + + COUNT ( 36 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL - + COUNT( * ) + + - ( + + ( 54 ) ) + 79
----
24

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL - + COUNT ( * ) + + - ( + + ( 54 ) ) + 79
----
24

query I rowsort
SELECT ALL + - ( 45 ) * + 31 - - ( + 44 ) AS col0
----
-1351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-286
SELECT - SUM( 68 ) DIV 60 * NULLIF ( + CAST( 34 AS SIGNED ), ( - 61 ) DIV + 95 + - 12 )
----
-34

skipif mysql # not compatible
query I rowsort label-286
SELECT - SUM ( 68 ) / 60 * NULLIF ( + CAST ( 34 AS INTEGER ), ( - 61 ) / + 95 + - 12 )
----
-34

query I rowsort
SELECT - 23 * - ( + 46 )
----
1058

query I rowsort
SELECT ALL + 78 col1
----
78

query I rowsort
SELECT DISTINCT - + 7 - - - 73
----
-80

query I rowsort
SELECT ALL 68 - 75 * 42
----
-3082

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-291
SELECT ALL SUM( - ( + + CAST( NULL AS DECIMAL ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL SUM ( - ( + + CAST ( NULL AS REAL ) ) ) AS col2
----
NULL

query I rowsort
SELECT - 50 * + + 25
----
-1250

query I rowsort
SELECT + 9 * + 77
----
693

onlyif mysql # DIV for integer division: 
query I rowsort label-294
SELECT ALL - 6 DIV + 63 * + 25 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - 6 / + 63 * + 25 AS col1
----
0

query II rowsort
SELECT ALL COALESCE ( - 8, - + 18 ) col2, + 13 - - 66
----
-8
79

query I rowsort
SELECT - 14 * - - 82 * - 57 * - 88
----
-5758368

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT + COALESCE ( - 20, + 43, + 61 + - COUNT( * ) * 21 ) * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-297
SELECT + COALESCE ( - 20, + 43, + 61 + - COUNT ( * ) * 21 ) * COUNT ( * )
----
-20

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

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 4
----
NULL

query I rowsort
SELECT - 90 - 56 + - - ( - 30 ) + NULLIF ( - 39, + 91 ) AS col2
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-300
SELECT - COALESCE ( + + 35, 10 + + + 4 * + COUNT( * ), - 31 )
----
-35

skipif mysql # not compatible
query I rowsort label-300
SELECT - COALESCE ( + + 35, 10 + + + 4 * + COUNT ( * ), - 31 )
----
-35

query I rowsort
SELECT + ( - - 62 ) * - 21
----
-1302

query I rowsort
SELECT ALL 61 * 2 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT + SUM( 52 ) - COALESCE ( 55, + 65 ) * 0
----
52

skipif mysql # not compatible
query I rowsort label-303
SELECT + SUM ( 52 ) - COALESCE ( 55, + 65 ) * 0
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-304
SELECT 7 * COUNT( * ) + + 85 + + COUNT( * ) DIV + + 9
----
92

skipif mysql # not compatible
query I rowsort label-304
SELECT 7 * COUNT ( * ) + + 85 + + COUNT ( * ) / + + 9
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT DISTINCT + 16 * COUNT( * ) * + 23 * + - 38 AS col2
----
-13984

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT + 16 * COUNT ( * ) * + 23 * + - 38 AS col2
----
-13984

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT ALL COUNT( * ) * 47 + + 40 + 37 * - 83 col0
----
-2984

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL COUNT ( * ) * 47 + + 40 + 37 * - 83 col0
----
-2984

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT DISTINCT NULLIF ( 45, - - MIN( + 37 ) ) * + COALESCE ( 5, 47, + 94 ) + + 40 * + ( + 35 ) + - 88 * - 26
----
3913

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT NULLIF ( 45, - - MIN ( + 37 ) ) * + COALESCE ( 5, 47, + 94 ) + + 40 * + ( + 35 ) + - 88 * - 26
----
3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-308
SELECT CASE + NULLIF ( - COUNT( + + 3 ), + - 33 + + NULLIF ( + SUM( ALL 4 ), 66 + 73 ) ) WHEN + CAST( + COUNT( * ) AS SIGNED ) / + 85 THEN NULL WHEN + CASE + 79 WHEN 44 * - COUNT( * ) THEN 90 / - 99 END THEN 99 ELSE 7 * MIN( 34 * 80 ) END
----
19040

skipif mysql # not compatible
query I rowsort label-308
SELECT CASE + NULLIF ( - COUNT ( + + 3 ), + - 33 + + NULLIF ( + SUM ( ALL 4 ), 66 + 73 ) ) WHEN + CAST ( + COUNT ( * ) AS INTEGER ) / + 85 THEN NULL WHEN + CASE + 79 WHEN 44 * - COUNT ( * ) THEN 90 / - 99 END THEN 99 ELSE 7 * MIN ( 34 * 80 ) END
----
19040

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT + + 95 - - + NULLIF ( + 69, + + 74 + - COUNT( * ) ) col2
----
164

skipif mysql # not compatible
query I rowsort label-309
SELECT + + 95 - - + NULLIF ( + 69, + + 74 + - COUNT ( * ) ) col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT ALL - 91 * - - 2 * 27 + 5 + + 1 * COALESCE ( + 15, ( - MAX( DISTINCT + NULLIF ( 30, CASE + 39 WHEN 18 / - 83 THEN - 84 ELSE NULL END + - 47 / + 79 ) ) ) * 84 ) AS col2
----
-4894

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL - 91 * - - 2 * 27 + 5 + + 1 * COALESCE ( + 15, ( - MAX ( DISTINCT + NULLIF ( 30, CASE + 39 WHEN 18 / - 83 THEN - 84 ELSE NULL END + - 47 / + 79 ) ) ) * 84 ) AS col2
----
-4894

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL + + COUNT( ALL - + 62 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + + COUNT ( ALL - + 62 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-312
SELECT + 27 + + 33 + + 39 AS col2, + 56 + - 14 + 49 * - 37 * - COUNT( * ) AS col2
----
99
1855

skipif mysql # not compatible
query II rowsort label-312
SELECT + 27 + + 33 + + 39 AS col2, + 56 + - 14 + 49 * - 37 * - COUNT ( * ) AS col2
----
99
1855

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT ALL 96 DIV 18
----
5

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL 96 / 18
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT + - MAX( - 53 ) * + COUNT( * ) + 9 + - 95 * 86 + 81 AS col0
----
-8027

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT + - MAX ( - 53 ) * + COUNT ( * ) + 9 + - 95 * 86 + 81 AS col0
----
-8027

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

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + - COUNT ( * ) * - 37 / COALESCE ( - 58, - 61 ) * + 94
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT 42 * + COUNT( * ) * + NULLIF ( - 78, - 36 * + 51 ) * + ( MAX( ALL 90 ) * 27 + 93 ) + 43
----
-8265305

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT 42 * + COUNT ( * ) * + NULLIF ( - 78, - 36 * + 51 ) * + ( MAX ( ALL 90 ) * 27 + 93 ) + 43
----
-8265305

query I rowsort
SELECT + - 68 * - 72 * + 95 AS col1
----
465120

onlyif mysql # DIV for integer division: 
query I rowsort label-320
SELECT ALL - - 9 DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - - 9 / 86 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT - CASE + - 27 WHEN - 36 * + - 30 + + 16 + 62 THEN NULL ELSE 33 + 16 END DIV 31
----
-1

skipif mysql # not compatible
query I rowsort label-321
SELECT - CASE + - 27 WHEN - 36 * + - 30 + + 16 + 62 THEN NULL ELSE 33 + 16 END / 31
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT ALL 46 * - - COUNT( * ) * + 13
----
598

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL 46 * - - COUNT ( * ) * + 13
----
598

query I rowsort
SELECT + 15 + 67 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT + 26, - MIN( + + 5 ) AS col0
----
26
-5

skipif mysql # not compatible
query II rowsort label-324
SELECT + 26, - MIN ( + + 5 ) AS col0
----
26
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-326
SELECT ALL - COUNT( * ) AS col2, 57
----
-1
57

skipif mysql # not compatible
query II rowsort label-326
SELECT ALL - COUNT ( * ) AS col2, 57
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT + + 91 + - COUNT( * ) + - 63 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-327
SELECT + + 91 + - COUNT ( * ) + - 63 AS col0
----
27

query I rowsort
SELECT + 43 * - 9 * 72 + - 42 - + 64 + 92 * 46
----
-23738

query I rowsort
SELECT - + 3
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-330
SELECT ALL - 47 AS col2, 7 + - 73 + CAST( NULL AS DECIMAL ) AS col1
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-330
SELECT ALL - 47 AS col2, 7 + - 73 + CAST ( NULL AS REAL ) AS col1
----
-47
NULL

query I rowsort
SELECT + - NULLIF ( - 91, + + 24 - - 60 * - + ( 44 ) * - 13 + + 0 ) + 86 AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - + 11 * 84 + + ( - COUNT( DISTINCT 10 ) )
----
-925

skipif mysql # not compatible
query I rowsort label-332
SELECT - + 11 * 84 + + ( - COUNT ( DISTINCT 10 ) )
----
-925

query I rowsort
SELECT DISTINCT - ( ( - - 35 ) ) AS col1
----
-35

query I rowsort
SELECT ALL + 30 - + 96
----
-66

query I rowsort
SELECT ALL - 10 * - + 84 * - COALESCE ( + 83, + - ( - 3 ) * 69 ) AS col2
----
-69720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-336
SELECT - 33 * + + 92 * 76 * ( + 72 ) * - 15 - + CAST( NULL AS SIGNED ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-336
SELECT - 33 * + + 92 * 76 * ( + 72 ) * - 15 - + CAST ( NULL AS INTEGER ) * 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT DISTINCT SUM( DISTINCT - 99 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT SUM ( DISTINCT - 99 ) col0
----
-99

query I rowsort
SELECT DISTINCT - 92 * 89 AS col0
----
-8188

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

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

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

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

query I rowsort
SELECT DISTINCT ( 11 ) AS col2
----
11

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

query I rowsort
SELECT ALL ( - 65 ) AS col1
----
-65

query I rowsort
SELECT - 91 + - 66
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT - 67 + 94 - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-345
SELECT - 67 + 94 - COUNT ( * )
----
26

query I rowsort
SELECT ALL - ( 94 ) * 83 AS col2
----
-7802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-347
SELECT DISTINCT CASE + - ( - 40 ) WHEN - + 66 * - MAX( DISTINCT - + 26 ) THEN + 72 + COALESCE ( ( 1 ) + + ( - ( + 64 ) + 93 DIV - 59 ), COALESCE ( + ( + 52 ), + COUNT( * ) ) + - 93 DIV 77 ) WHEN CAST( 52 AS SIGNED ) THEN NULL ELSE + COUNT( * ) * COALESCE ( + CAST( NULL AS SIGNED ), - 62 + - 93, + CASE WHEN NOT NULL IS NULL THEN NULL WHEN NOT ( NULL ) NOT IN ( + 74 ) THEN + COUNT( * ) END - 70 DIV + 46 ) END
----
-155

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT CASE + - ( - 40 ) WHEN - + 66 * - MAX ( DISTINCT - + 26 ) THEN + 72 + COALESCE ( ( 1 ) + + ( - ( + 64 ) + 93 / - 59 ), COALESCE ( + ( + 52 ), + COUNT ( * ) ) + - 93 / 77 ) WHEN CAST ( 52 AS INTEGER ) THEN NULL ELSE + COUNT ( * ) * COALESCE ( + CAST ( NULL AS INTEGER ), - 62 + - 93, + CASE WHEN NOT NULL IS NULL THEN NULL WHEN NOT ( NULL ) NOT IN ( + 74 ) THEN + COUNT ( * ) END - 70 / + 46 ) END
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-348
SELECT ALL CAST( - CASE - - 73 WHEN - 76 THEN NULL WHEN + 2 THEN + NULLIF ( - 43, 69 ) ELSE 93 END AS SIGNED ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL CAST ( - CASE - - 73 WHEN - 76 THEN NULL WHEN + 2 THEN + NULLIF ( - 43, 69 ) ELSE 93 END AS INTEGER ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT - SUM( DISTINCT + 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-349
SELECT - SUM ( DISTINCT + 11 ) AS col2
----
-11

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

query I rowsort
SELECT DISTINCT ( - 75 ) AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-352
SELECT DISTINCT + COALESCE ( - 78, + - COUNT( ALL + CASE - - CAST( NULL AS SIGNED ) WHEN + - 5 THEN NULL WHEN 96 / 53 THEN 23 + + 85 ELSE - 95 + - 55 END ) )
----
-78

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT + COALESCE ( - 78, + - COUNT ( ALL + CASE - - CAST ( NULL AS INTEGER ) WHEN + - 5 THEN NULL WHEN 96 / 53 THEN 23 + + 85 ELSE - 95 + - 55 END ) )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-353
SELECT CAST( NULL AS SIGNED ) AS col0, + 39 + + 94 * 19 AS col0
----
NULL
1825

skipif mysql # not compatible
query II rowsort label-353
SELECT CAST ( NULL AS INTEGER ) AS col0, + 39 + + 94 * 19 AS col0
----
NULL
1825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT + ( + + 6 ) DIV + + 42 + - 9 + - - COUNT( * ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-354
SELECT + ( + + 6 ) / + + 42 + - 9 + - - COUNT ( * ) col2
----
-8

query I rowsort
SELECT DISTINCT - 85 * 90 AS col2
----
-7650

onlyif mysql # DIV for integer division: 
query I rowsort label-356
SELECT ALL 73 DIV + ( + 79 ) + + 33
----
33

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL 73 / + ( + 79 ) + + 33
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-357
SELECT ALL - COUNT( * ) DIV + + 44 + 13 DIV + COUNT( * ) + + 16 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL - COUNT ( * ) / + + 44 + 13 / + COUNT ( * ) + + 16 AS col0
----
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-359
SELECT + 61 * - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 71 + + - 64 / + + SUM( DISTINCT + 97 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT + 61 * - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 71 + + - 64 / + + SUM ( DISTINCT + 97 ) AS col1
----
NULL

query II rowsort
SELECT + 48 AS col2, 7 * + 63
----
48
441

onlyif mysql # aggregate syntax: 
query III rowsort label-361
SELECT DISTINCT + + COUNT( * ) AS col2, 58 AS col0, + - 85
----
1
58
-85

skipif mysql # not compatible
query III rowsort label-361
SELECT DISTINCT + + COUNT ( * ) AS col2, 58 AS col0, + - 85
----
1
58
-85

query I rowsort
SELECT + 56 + - 83 * - 97 + 16 col2
----
8123

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT DISTINCT - COUNT( ( + 36 ) ) * - 63 - + 24
----
39

skipif mysql # not compatible
query I rowsort label-363
SELECT DISTINCT - COUNT ( ( + 36 ) ) * - 63 - + 24
----
39

query I rowsort
SELECT DISTINCT + + 35 AS col1
----
35

query II rowsort
SELECT + - 95 AS col1, 26 AS col1
----
-95
26

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT ALL + + MAX( ALL + - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL + + MAX ( ALL + - 84 )
----
-84

query I rowsort
SELECT + + 62 * 20
----
1240

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT CASE - 60 WHEN + + 15 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-368
SELECT CASE - 60 WHEN + + 15 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT - - 35 * COUNT( * ) * 93 - + - SUM( ALL 66 ) * 4 + - COUNT( * ) AS col2
----
3518

skipif mysql # not compatible
query I rowsort label-369
SELECT - - 35 * COUNT ( * ) * 93 - + - SUM ( ALL 66 ) * 4 + - COUNT ( * ) AS col2
----
3518

query II rowsort
SELECT ALL - + 10 AS col0, 27 AS col0
----
-10
27

onlyif mysql # aggregate syntax: 
query II rowsort label-371
SELECT ALL - - COUNT( * ) AS col2, + 41 col0
----
1
41

skipif mysql # not compatible
query II rowsort label-371
SELECT ALL - - COUNT ( * ) AS col2, + 41 col0
----
1
41

query I rowsort
SELECT ALL ( - 15 ) AS col2
----
-15

query I rowsort
SELECT 51 * + 66
----
3366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-374
SELECT ALL 33 * + + CAST( 96 AS SIGNED ) - - + NULLIF ( - - 18, 26 ) + + 20 AS col2
----
3206

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL 33 * + + CAST ( 96 AS INTEGER ) - - + NULLIF ( - - 18, 26 ) + + 20 AS col2
----
3206

query I rowsort
SELECT DISTINCT - 32 * + 16 * 72 AS col2
----
-36864

query I rowsort
SELECT DISTINCT + 74 * - + 40 AS col1
----
-2960

query I rowsort
SELECT 46 + + 91 AS col2
----
137

query I rowsort
SELECT ALL 33 * 21 * + + 43 AS col1
----
29799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-379
SELECT 56 + - 87 - - 52 * - 53 + + CAST( + 53 AS SIGNED )
----
-2734

skipif mysql # not compatible
query I rowsort label-379
SELECT 56 + - 87 - - 52 * - 53 + + CAST ( + 53 AS INTEGER )
----
-2734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-380
SELECT 30 * + COALESCE ( - CAST( NULL AS SIGNED ), - 68 ) * 41 * - + 74
----
6189360

skipif mysql # not compatible
query I rowsort label-380
SELECT 30 * + COALESCE ( - CAST ( NULL AS INTEGER ), - 68 ) * 41 * - + 74
----
6189360

query I rowsort
SELECT DISTINCT 26 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-382
SELECT ALL - 79 * - - 73 AS col2, CASE 23 WHEN + MIN( + + 14 ) THEN - + 69 WHEN 92 THEN NULL WHEN + 18 * 94 THEN + ( 26 ) WHEN - 50 / + 63 THEN NULL ELSE + CAST( NULL AS DECIMAL ) END * ( - 19 )
----
-5767
NULL

skipif mysql # not compatible
query II rowsort label-382
SELECT ALL - 79 * - - 73 AS col2, CASE 23 WHEN + MIN ( + + 14 ) THEN - + 69 WHEN 92 THEN NULL WHEN + 18 * 94 THEN + ( 26 ) WHEN - 50 / + 63 THEN NULL ELSE + CAST ( NULL AS REAL ) END * ( - 19 )
----
-5767
NULL

query II rowsort
SELECT 55 * + 38 col0, 32
----
2090
32

query I rowsort
SELECT ALL 49 + - 74 AS col1
----
-25

query I rowsort
SELECT DISTINCT - 61 + + 63 + 32 * + - 9
----
-286

query I rowsort
SELECT ALL - 44 + - 4 AS col2
----
-48

query II rowsort
SELECT 81 * 47, - 59 + + 80 + 64 + + 84 + - + 64 + 67 * + ( + 88 ) col2
----
3807
6001

query I rowsort
SELECT ALL - 71 * + + CASE + AVG ( DISTINCT + - 52 ) WHEN - 59 + + 61 THEN 46 * - 38 END
----
NULL

query I rowsort
SELECT 27 col1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT 0 DIV + + 3
----
0

skipif mysql # not compatible
query I rowsort label-390
SELECT 0 / + + 3
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-391
SELECT ALL + 44 + - 8 - - 21 DIV - SUM( ALL + 31 ) * + 59 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL + 44 + - 8 - - 21 / - SUM ( ALL + 31 ) * + 59 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT 71 - + COUNT( + 0 )
----
70

skipif mysql # not compatible
query I rowsort label-392
SELECT 71 - + COUNT ( + 0 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT 6 * + - NULLIF ( - - 99, + - 53 * - COUNT( * ) ) AS col1
----
-594

skipif mysql # not compatible
query I rowsort label-393
SELECT 6 * + - NULLIF ( - - 99, + - 53 * - COUNT ( * ) ) AS col1
----
-594

query I rowsort
SELECT ALL - - 34 AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT DISTINCT + + 67 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + + 67 / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT + - 4 * - + ( - 34 ) + + ( NULLIF ( - - COUNT( * ), 25 ) ) + 65
----
-70

skipif mysql # not compatible
query I rowsort label-396
SELECT + - 4 * - + ( - 34 ) + + ( NULLIF ( - - COUNT ( * ), 25 ) ) + 65
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-397
SELECT ALL + - 51 - - + COUNT( * ) + + 6 + - - COUNT( * ) + 57 - 58 * COUNT( * ) + - CAST( NULL AS DECIMAL ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL + - 51 - - + COUNT ( * ) + + 6 + - - COUNT ( * ) + 57 - 58 * COUNT ( * ) + - CAST ( NULL AS REAL ) * 46
----
NULL

query I rowsort
SELECT - 18 * ( + - 11 ) AS col2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT DISTINCT + 90 DIV + 88 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT + 90 / + 88 AS col1
----
1

query I rowsort
SELECT ALL 61 - + - ( 27 ) - 79 AS col2
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-401
SELECT 17 - - CAST( NULL AS DECIMAL ) + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-401
SELECT 17 - - CAST ( NULL AS REAL ) + - 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL + 46 / + - 80 * - + CASE COALESCE ( - 93, - 64 * - - 57 ) WHEN + 23 * COUNT( * ) THEN NULL WHEN 6 THEN + ( + 50 ) * - 54 + - 48 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL + 46 / + - 80 * - + CASE COALESCE ( - 93, - 64 * - - 57 ) WHEN + 23 * COUNT ( * ) THEN NULL WHEN 6 THEN + ( + 50 ) * - 54 + - 48 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ( + 67 ) * - + COUNT( * ) * + + 25 + + 67 AS col1
----
-1608

skipif mysql # not compatible
query I rowsort label-403
SELECT ( + 67 ) * - + COUNT ( * ) * + + 25 + + 67 AS col1
----
-1608

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-404
SELECT ( + CAST( 59 AS SIGNED ) ) col0, 26
----
59
26

skipif mysql # not compatible
query II rowsort label-404
SELECT ( + CAST ( 59 AS INTEGER ) ) col0, 26
----
59
26

query I rowsort
SELECT ALL - 30 AS col2
----
-30

query II rowsort
SELECT - 34 * 64 AS col1, 90
----
-2176
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-407
SELECT ALL - 94 * - 8 + + + 82 * CASE 14 WHEN + + 98 * - ( + 62 ) THEN NULL WHEN 12 THEN COUNT( * ) * COALESCE ( 76, - COUNT( * ) * SUM( 23 ) ) + 61 END * + SUM( DISTINCT - 5 * CAST( 53 AS DECIMAL ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL - 94 * - 8 + + + 82 * CASE 14 WHEN + + 98 * - ( + 62 ) THEN NULL WHEN 12 THEN COUNT ( * ) * COALESCE ( 76, - COUNT ( * ) * SUM ( 23 ) ) + 61 END * + SUM ( DISTINCT - 5 * CAST ( 53 AS REAL ) ) + + COUNT ( * )
----
NULL

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

query I rowsort
SELECT ALL - - 91 AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT 66 * + - 48 * + CAST( NULL AS SIGNED ) - + + 11 / 91
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT 66 * + - 48 * + CAST ( NULL AS INTEGER ) - + + 11 / 91
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT - 74 + 70 DIV + 78 * + 53
----
-74

skipif mysql # not compatible
query I rowsort label-411
SELECT - 74 + 70 / + 78 * + 53
----
-74

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

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

query I rowsort
SELECT 21 + + + 17 col2
----
38

query II rowsort
SELECT + 7 AS col2, - 90
----
7
-90

query II rowsort
SELECT ALL - 92, - 8 * - 27 AS col2
----
-92
216

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT 27 + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-416
SELECT 27 + - COUNT ( * )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT 30 DIV - + ( + - 14 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-417
SELECT 30 / - + ( + - 14 ) AS col2
----
2

query I rowsort
SELECT DISTINCT 3 * - ( + - ( 38 ) ) * - + 43 AS col2
----
-4902

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT CASE + - 73 WHEN + 19 THEN + 66 WHEN + 60 THEN - 44 END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-419
SELECT CASE + - 73 WHEN + 19 THEN + 66 WHEN + 60 THEN - 44 END + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-420
SELECT ALL ( 57 ) + COALESCE ( - - COUNT( - CAST( NULL AS SIGNED ) ), + 15 + - - 64 + COALESCE ( 38, - 16 + 47 ), 28, 43 - 21 ) + - 91 * 56 AS col2
----
-5039

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL ( 57 ) + COALESCE ( - - COUNT ( - CAST ( NULL AS INTEGER ) ), + 15 + - - 64 + COALESCE ( 38, - 16 + 47 ), 28, 43 - 21 ) + - 91 * 56 AS col2
----
-5039

query I rowsort
SELECT DISTINCT 8 + - - 49 AS col2
----
57

query II rowsort
SELECT 71 + + + 78 + 16 AS col0, 68 + - 76 AS col2
----
165
-8

query I rowsort
SELECT ALL 43 * 88 * - 46
----
-174064

query I rowsort
SELECT ALL 2 * - 39 AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-425
SELECT NULLIF ( + + 25, 12 ) / COUNT( + 84 ) + + COUNT( ALL - - 98 ) * ( CAST( NULL AS DECIMAL ) ) * MAX( DISTINCT 98 + + 76 * - 96 ) + COALESCE ( + SUM( 61 ), + 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT NULLIF ( + + 25, 12 ) / COUNT ( + 84 ) + + COUNT ( ALL - - 98 ) * ( CAST ( NULL AS REAL ) ) * MAX ( DISTINCT 98 + + 76 * - 96 ) + COALESCE ( + SUM ( 61 ), + 29 ) AS col1
----
NULL

query II rowsort
SELECT 61, 35 + - 59 AS col0
----
61
-24

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

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL 95 + + - 94 / + + COALESCE ( + 84, 17 * + COUNT ( * ) + + 99 )
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-428
SELECT - 41 AS col0, + 31 DIV - 97 * + 14
----
-41
0

skipif mysql # not compatible
query II rowsort label-428
SELECT - 41 AS col0, + 31 / - 97 * + 14
----
-41
0

query I rowsort
SELECT 0 + - - 88 AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-430
SELECT CAST( + + 95 AS SIGNED ) + CASE + + COUNT( 42 ) WHEN + 20 + - 71 * + + 27 THEN 38 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT CAST ( + + 95 AS INTEGER ) + CASE + + COUNT ( 42 ) WHEN + 20 + - 71 * + + 27 THEN 38 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT MIN( CASE 9 WHEN - - 22 + - 20 - + + 93 THEN - 0 ELSE 65 END ) + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-431
SELECT MIN ( CASE 9 WHEN - - 22 + - 20 - + + 93 THEN - 0 ELSE 65 END ) + COUNT ( * )
----
66

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

skipif mysql # not compatible
query I rowsort label-432
SELECT - COUNT ( ALL + - 66 ) AS col0
----
-1

query I rowsort
SELECT 90 + 24
----
114

onlyif mysql # aggregate syntax: 
query III rowsort label-434
SELECT DISTINCT + 22 AS col1, ( + MIN( ALL - 8 ) ), - + MAX( ALL + ( - + 45 ) ) + + 4 * - 73 AS col1
----
22
-8
-247

skipif mysql # not compatible
query III rowsort label-434
SELECT DISTINCT + 22 AS col1, ( + MIN ( ALL - 8 ) ), - + MAX ( ALL + ( - + 45 ) ) + + 4 * - 73 AS col1
----
22
-8
-247

query I rowsort
SELECT DISTINCT + ( + + 41 ) AS col2
----
41

query I rowsort
SELECT ALL + + 15 - + - 79
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT + 15 * - + 75 + + COUNT( * ), 74 * - 84 AS col1
----
-1124
-6216

skipif mysql # not compatible
query II rowsort label-437
SELECT + 15 * - + 75 + + COUNT ( * ), 74 * - 84 AS col1
----
-1124
-6216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-438
SELECT ALL - CAST( 63 AS SIGNED ) * - 98 + + 3 + ( + COUNT( * ) ) AS col0
----
6178

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL - CAST ( 63 AS INTEGER ) * - 98 + + 3 + ( + COUNT ( * ) ) AS col0
----
6178

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT + SUM( DISTINCT + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-440
SELECT + SUM ( DISTINCT + 17 ) AS col0
----
17

query I rowsort
SELECT DISTINCT - - 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT ALL + 99 * - + COUNT( DISTINCT - 71 ) - - - COUNT( * ) col2
----
-100

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL + 99 * - + COUNT ( DISTINCT - 71 ) - - - COUNT ( * ) col2
----
-100

query I rowsort
SELECT - 82 * - 67 * + 88 AS col0
----
483472

query I rowsort
SELECT 63 * + + 17 AS col0
----
1071

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-445
SELECT + - 65 AS col1, - 0 + + - CAST( NULL AS DECIMAL ) col2
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-445
SELECT + - 65 AS col1, - 0 + + - CAST ( NULL AS REAL ) col2
----
-65
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-446
SELECT COALESCE ( - 65, + AVG ( + - 28 ) * COUNT( * ) DIV + + 31 )
----
-65

skipif mysql # not compatible
query I rowsort label-446
SELECT COALESCE ( - 65, + AVG ( + - 28 ) * COUNT ( * ) / + + 31 )
----
-65

query I rowsort
SELECT - 4 + - - 79
----
75

query I rowsort
SELECT DISTINCT + + 74 AS col0
----
74

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-451
SELECT ALL + + ( + 24 ) * - MAX( DISTINCT 4 ) DIV - COALESCE ( COUNT( * ), ( 72 ) * + 25 - - 74 * - ( + ( - AVG ( ALL + 39 ) ) ) ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL + + ( + 24 ) * - MAX ( DISTINCT 4 ) / - COALESCE ( COUNT ( * ), ( 72 ) * + 25 - - 74 * - ( + ( - AVG ( ALL + 39 ) ) ) ) AS col0
----
96

query I rowsort
SELECT + + 68 * + 88
----
5984

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT - 54 + - 99 - ( - - 27 ) - + 88 * ( + + MAX( ALL - - 69 ) ) AS col0
----
-6252

skipif mysql # not compatible
query I rowsort label-453
SELECT - 54 + - 99 - ( - - 27 ) - + 88 * ( + + MAX ( ALL - - 69 ) ) AS col0
----
-6252

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-455
SELECT ALL - 5 * + - COUNT( * ) DIV 7 + - 32 + + 9 * + ( - - 75 ) * COUNT( 11 ) * + CAST( 22 DIV + COUNT( * ) AS SIGNED )
----
14818

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL - 5 * + - COUNT ( * ) / 7 + - 32 + + 9 * + ( - - 75 ) * COUNT ( 11 ) * + CAST ( 22 / + COUNT ( * ) AS INTEGER )
----
14818

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT DISTINCT MAX( + ( 31 ) ) * 41 + 71 * - - COALESCE ( 53, + + 9 ) * - 28 * + COUNT( * ) + 46 + + 97 * - 42 AS col0
----
-108121

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT MAX ( + ( 31 ) ) * 41 + 71 * - - COALESCE ( 53, + + 9 ) * - 28 * + COUNT ( * ) + 46 + + 97 * - 42 AS col0
----
-108121

onlyif mysql # aggregate syntax: 
query II rowsort label-457
SELECT MIN( DISTINCT 94 ) AS col2, - 90
----
94
-90

skipif mysql # not compatible
query II rowsort label-457
SELECT MIN ( DISTINCT 94 ) AS col2, - 90
----
94
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-458
SELECT ALL COALESCE ( + COUNT( * ), - 3, 80 ) * - - 66 * - CASE - AVG ( DISTINCT - 2 ) WHEN - + 12 THEN NULL WHEN COUNT( - 30 ) - COUNT( * ) THEN + AVG ( ALL - 7 ) END + - 89 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL COALESCE ( + COUNT ( * ), - 3, 80 ) * - - 66 * - CASE - AVG ( DISTINCT - 2 ) WHEN - + 12 THEN NULL WHEN COUNT ( - 30 ) - COUNT ( * ) THEN + AVG ( ALL - 7 ) END + - 89 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-459
SELECT DISTINCT 97 + 38, COUNT( * ) + - - COUNT( * ) AS col0
----
135
2

skipif mysql # not compatible
query II rowsort label-459
SELECT DISTINCT 97 + 38, COUNT ( * ) + - - COUNT ( * ) AS col0
----
135
2

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT + NULLIF ( 42, + COUNT( * ) + 36 * - 76 ) * 32 AS col2
----
1344

skipif mysql # not compatible
query I rowsort label-460
SELECT + NULLIF ( 42, + COUNT ( * ) + 36 * - 76 ) * 32 AS col2
----
1344

query I rowsort
SELECT DISTINCT + 62 + - 62
----
0

query II rowsort
SELECT DISTINCT ( 54 ) AS col2, + 26 AS col0
----
54
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-463
SELECT - NULLIF ( 44, 37 * + 15 ) - + CASE + 41 WHEN 13 * - 60 * - 23 THEN NULL ELSE + COUNT( * ) END DIV 67
----
-44

skipif mysql # not compatible
query I rowsort label-463
SELECT - NULLIF ( 44, 37 * + 15 ) - + CASE + 41 WHEN 13 * - 60 * - 23 THEN NULL ELSE + COUNT ( * ) END / 67
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - NULLIF ( - COUNT( * ), + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-464
SELECT - NULLIF ( - COUNT ( * ), + 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT DISTINCT COUNT( * ) - - COUNT( * ) + + 89 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) + + 89 AS col0
----
91

query I rowsort
SELECT ALL + 44 - COALESCE ( - 76, - 81 ) AS col0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-467
SELECT + CAST( 98 AS SIGNED ) * 31 * ( - 60 ) + + + 79
----
-182201

skipif mysql # not compatible
query I rowsort label-467
SELECT + CAST ( 98 AS INTEGER ) * 31 * ( - 60 ) + + + 79
----
-182201

query I rowsort
SELECT DISTINCT ( 42 ) * + 12
----
504

query I rowsort
SELECT + 6 * + + 20 AS col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-470
SELECT + + 85 DIV - - 67
----
1

skipif mysql # not compatible
query I rowsort label-470
SELECT + + 85 / - - 67
----
1

query I rowsort
SELECT - - 15 + - NULLIF ( - 89, - 68 * AVG ( DISTINCT 49 ) ) + - 80 + - 22 * - COALESCE ( - 96, - 84, - 44 + 40 ) * 23 + - 53 * 14
----
-49294

query I rowsort
SELECT + 53 * + 19 - - 29 + - 23
----
1013

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + + COUNT( * ) + 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-473
SELECT + + COUNT ( * ) + 47 AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-474
SELECT + 80 - - + 81 * - CASE - COUNT( * ) WHEN + 55 * - 6 THEN NULL WHEN + 67 THEN NULLIF ( - CAST( + AVG ( ALL - 74 ) AS SIGNED ), 33 * - 55 ) / 99 - + COUNT( * ) * - 91 END * + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT + 80 - - + 81 * - CASE - COUNT ( * ) WHEN + 55 * - 6 THEN NULL WHEN + 67 THEN NULLIF ( - CAST ( + AVG ( ALL - 74 ) AS INTEGER ), 33 * - 55 ) / 99 - + COUNT ( * ) * - 91 END * + 72 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT - COUNT( * ) * - NULLIF ( + + 19, + 11 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-475
SELECT - COUNT ( * ) * - NULLIF ( + + 19, + 11 ) AS col1
----
19

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

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

query I rowsort
SELECT ALL + + 63 AS col2
----
63

query I rowsort
SELECT DISTINCT + - 37
----
-37

query I rowsort
SELECT + + 83 * + 26 + - - 5
----
2163

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT + CASE - 16 WHEN - 18 - + 75 + 70 - 22 THEN ( 32 ) ELSE NULL END * + - ( COUNT( * ) ) * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + CASE - 16 WHEN - 18 - + 75 + 70 - 22 THEN ( 32 ) ELSE NULL END * + - ( COUNT ( * ) ) * 95
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT DISTINCT + 94 DIV - - 71 + + 30
----
31

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT + 94 / - - 71 + + 30
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT COALESCE ( 40, - CASE + 84 WHEN + 9 * - + ( - NULLIF ( + - COUNT( * ), - 12 ) ) THEN 32 WHEN - SUM( - 86 ) * 69 THEN NULL ELSE 88 END, - ( - 84 ) + + 42, 50 + - 74 * + 90 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-482
SELECT COALESCE ( 40, - CASE + 84 WHEN + 9 * - + ( - NULLIF ( + - COUNT ( * ), - 12 ) ) THEN 32 WHEN - SUM ( - 86 ) * 69 THEN NULL ELSE 88 END, - ( - 84 ) + + 42, 50 + - 74 * + 90 ) AS col1
----
40

query I rowsort
SELECT - 52 * 32 AS col0
----
-1664

query I rowsort
SELECT ALL + 15 * 38 + - + 79 AS col1
----
491

query I rowsort
SELECT + + 83 AS col1
----
83

query I rowsort
SELECT + + NULLIF ( + - 98, + - 52 * - 84 * ( - - 39 ) )
----
-98

query I rowsort
SELECT + 9 + - 6 AS col0
----
3

query I rowsort
SELECT + + 72 AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT + 68 DIV + 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-489
SELECT + 68 / + 18 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT ALL - 20 DIV - 18
----
1

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL - 20 / - 18
----
1

query I rowsort
SELECT - 38 * - - 81 * + 55
----
-169290

query II rowsort
SELECT + 68 AS col2, ( + + ( - - 19 ) ) AS col0
----
68
19

query I rowsort
SELECT ALL 39 * ( - - 70 ) + + CASE WHEN NOT ( 64 ) BETWEEN + + 96 AND ( 75 ) THEN NULL ELSE - 86 END + 9 * - ( + 17 + 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT NULLIF ( + COUNT( 75 ), + + 50 / 4 + + 0 + + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-494
SELECT NULLIF ( + COUNT ( 75 ), + + 50 / 4 + + 0 + + 34 )
----
1

query I rowsort
SELECT NULLIF ( + 30, - 43 ) AS col1
----
30

query I rowsort
SELECT ALL 45 * - - 91 - 82
----
4013

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT - 2 + + 63 * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-497
SELECT - 2 + + 63 * + COUNT ( * )
----
61

query I rowsort
SELECT DISTINCT ( 29 )
----
29

query I rowsort
SELECT - ( + 22 ) + + - 38 + - 36
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT - 84 - CAST( + - 53 AS SIGNED ) * + 98 * 81 * + 25 + - 9
----
10517757

skipif mysql # not compatible
query I rowsort label-500
SELECT - 84 - CAST ( + - 53 AS INTEGER ) * + 98 * 81 * + 25 + - 9
----
10517757

onlyif mysql # aggregate syntax: 
query II rowsort label-501
SELECT DISTINCT + COUNT( * ) * + 49 * + - ( COUNT( * ) ) * + + COUNT( * ), 93 col2
----
-49
93

skipif mysql # not compatible
query II rowsort label-501
SELECT DISTINCT + COUNT ( * ) * + 49 * + - ( COUNT ( * ) ) * + + COUNT ( * ), 93 col2
----
-49
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-502
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 8 AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-502
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 8 AS col1
----
NULL
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT ALL 82 * + COUNT( * ) - + + SUM( + 16 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL 82 * + COUNT ( * ) - + + SUM ( + 16 ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT DISTINCT + 58 * - + MIN( DISTINCT - + 33 )
----
1914

skipif mysql # not compatible
query I rowsort label-505
SELECT DISTINCT + 58 * - + MIN ( DISTINCT - + 33 )
----
1914

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-506
SELECT - CAST( NULL AS DECIMAL ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT - CAST ( NULL AS REAL ) + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL - 61 * - 98 - + COUNT( * ) + - 94 * 4 AS col1
----
5601

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - 61 * - 98 - + COUNT ( * ) + - 94 * 4 AS col1
----
5601

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-509
SELECT - 24 + - 75 + - - COALESCE ( - + CASE + - 70 WHEN + + 78 + + 11 THEN + 50 WHEN - ( - SUM( ALL 15 ) ) THEN 48 END, + SUM( DISTINCT 99 ) + - CAST( + COUNT( * ) AS SIGNED ) ) * - 81 AS col2
----
-8037

skipif mysql # not compatible
query I rowsort label-509
SELECT - 24 + - 75 + - - COALESCE ( - + CASE + - 70 WHEN + + 78 + + 11 THEN + 50 WHEN - ( - SUM ( ALL 15 ) ) THEN 48 END, + SUM ( DISTINCT 99 ) + - CAST ( + COUNT ( * ) AS INTEGER ) ) * - 81 AS col2
----
-8037

query I rowsort
SELECT + 0 + - - 42 + 40 + - 59 * + 93 AS col2
----
-5405

query I rowsort
SELECT ALL 84 AS col0
----
84

query I rowsort
SELECT - + 28 * 78
----
-2184

query I rowsort
SELECT + 11 + + - 53 + - + 43 * + 33 col2
----
-1461

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT MIN( ALL - + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT MIN ( ALL - + 87 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT + 64 + 77 * COUNT( * ) DIV + 52 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-515
SELECT + 64 + 77 * COUNT ( * ) / + 52 AS col1
----
65

query I rowsort
SELECT + 77 + + 3 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL COUNT( + 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL COUNT ( + 73 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-518
SELECT CAST( AVG ( 71 ) AS SIGNED ) * + 10
----
710

skipif mysql # not compatible
query I rowsort label-518
SELECT CAST ( AVG ( 71 ) AS INTEGER ) * + 10
----
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-519
SELECT ALL + + MIN( 87 ) + 29, CAST( NULL AS SIGNED ) * - 56 AS col2
----
116
NULL

skipif mysql # not compatible
query II rowsort label-519
SELECT ALL + + MIN ( 87 ) + 29, CAST ( NULL AS INTEGER ) * - 56 AS col2
----
116
NULL

query I rowsort
SELECT - ( 67 ) + 16 AS col1
----
-51

query I rowsort
SELECT - 53 * 71 * + + 99 AS col0
----
-372537

query I rowsort
SELECT 74 * + + 20 - + - 28
----
1508

query I rowsort
SELECT ALL - - 97 AS col2
----
97

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

skipif mysql # not compatible
query I rowsort label-524
SELECT + COUNT ( * ) / 90 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT 64 + + ( + + 1 ) * - COUNT( * ) * + - 34
----
98

skipif mysql # not compatible
query I rowsort label-525
SELECT 64 + + ( + + 1 ) * - COUNT ( * ) * + - 34
----
98

query II rowsort
SELECT ALL 10 + - 34 + + 52 + - 70 + 70 * 83 * 28 + 19, + 68 AS col1
----
162657
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-527
SELECT ALL - 66 + + ( - CAST( NULL AS SIGNED ) ) + + + CAST( 58 AS SIGNED ) * + + 16 AS col1, 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-527
SELECT ALL - 66 + + ( - CAST ( NULL AS INTEGER ) ) + + + CAST ( 58 AS INTEGER ) * + + 16 AS col1, 17
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT + + COUNT( 59 )
----
1

skipif mysql # not compatible
query I rowsort label-528
SELECT + + COUNT ( 59 )
----
1

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

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

query I rowsort
SELECT 43 * - 93 * 34 AS col0
----
-135966

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL - ( + ( 15 ) ) + 91 + 16 * + - ( ( NULLIF ( + 93, - CASE WHEN 98 IS NOT NULL THEN NULL WHEN ( NULL ) < NULL THEN 8 * - COUNT( * ) - 67 END ) ) ) AS col0
----
-1412

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL - ( + ( 15 ) ) + 91 + 16 * + - ( ( NULLIF ( + 93, - CASE WHEN 98 IS NOT NULL THEN NULL WHEN ( NULL ) < NULL THEN 8 * - COUNT ( * ) - 67 END ) ) ) AS col0
----
-1412

query II rowsort
SELECT DISTINCT - 2 AS col2, ( + 4 )
----
-2
4

query I rowsort
SELECT ALL 56 + + 86
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-534
SELECT ALL - 30, 54 * - CAST( NULL AS SIGNED ) AS col2
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-534
SELECT ALL - 30, 54 * - CAST ( NULL AS INTEGER ) AS col2
----
-30
NULL

query I rowsort
SELECT DISTINCT - 34 * + 4 AS col1
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-536
SELECT DISTINCT 85 + + 89 * + - 66 DIV - COUNT( * ) + + SUM( - 22 ) + - 82 * - 51 * + + 97 - + COUNT( * ) AS col1
----
411590

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT 85 + + 89 * + - 66 / - COUNT ( * ) + + SUM ( - 22 ) + - 82 * - 51 * + + 97 - + COUNT ( * ) AS col1
----
411590

query I rowsort
SELECT 75 * + + 8
----
600

query I rowsort
SELECT DISTINCT - 13 col1
----
-13

query I rowsort
SELECT ALL 55 - 25 AS col0
----
30

query I rowsort
SELECT 65 * + 11 col0
----
715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT ALL - NULLIF ( 16, - CAST( NULL AS SIGNED ) )
----
-16

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL - NULLIF ( 16, - CAST ( NULL AS INTEGER ) )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-542
SELECT 91 AS col0, + COUNT( * ) DIV + COUNT( * )
----
91
1

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-543
SELECT ALL + COUNT( * ) - + CAST( NULL AS DECIMAL ) - + 54 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT MAX( ALL + 99 ) * - 42 * + 54
----
-224532

skipif mysql # not compatible
query I rowsort label-544
SELECT MAX ( ALL + 99 ) * - 42 * + 54
----
-224532

onlyif mysql # DIV for integer division: 
query I rowsort label-545
SELECT 96 DIV - 48 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-545
SELECT 96 / - 48 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-546
SELECT DISTINCT - SUM( DISTINCT + - 99 ) DIV + + 48
----
2

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT - SUM ( DISTINCT + - 99 ) / + + 48
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-547
SELECT COUNT( ALL + + 27 ) * + 55 DIV + ( 79 )
----
0

skipif mysql # not compatible
query I rowsort label-547
SELECT COUNT ( ALL + + 27 ) * + 55 / + ( 79 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-548
SELECT ALL - 81 DIV - 32 * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL - 81 / - 32 * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT CASE + - 90 WHEN + - 6 * 8 * - 94 THEN + + 64 WHEN - - COALESCE ( NULLIF ( + 51, - 90 ), + 58 ) + CASE WHEN NOT NULL = NULL THEN NULL ELSE + 87 END THEN NULL END / ( - ( MAX( ALL + 70 ) ) / COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-549
SELECT CASE + - 90 WHEN + - 6 * 8 * - 94 THEN + + 64 WHEN - - COALESCE ( NULLIF ( + 51, - 90 ), + 58 ) + CASE WHEN NOT NULL = NULL THEN NULL ELSE + 87 END THEN NULL END / ( - ( MAX ( ALL + 70 ) ) / COUNT ( * ) ) AS col2
----
NULL

query II rowsort
SELECT - 0 col1, NULLIF ( + + 35, 91 * 3 / - - 61 )
----
0
35

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT + 35 - + 81 DIV - 70
----
36

skipif mysql # not compatible
query I rowsort label-551
SELECT + 35 - + 81 / - 70
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-552
SELECT DISTINCT 23, 19 * + - NULLIF ( ( - 99 ), 24 / 17 + + SUM( DISTINCT + 53 ) * + 63 ) col0
----
23
1881

skipif mysql # not compatible
query II rowsort label-552
SELECT DISTINCT 23, 19 * + - NULLIF ( ( - 99 ), 24 / 17 + + SUM ( DISTINCT + 53 ) * + 63 ) col0
----
23
1881

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

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

query I rowsort
SELECT ALL - 22 * - ( - - 86 )
----
1892

query II rowsort
SELECT 33, - 43 col2
----
33
-43

query I rowsort
SELECT ALL + + 16 + - + 65
----
-49

query I rowsort
SELECT 10 * + + 21
----
210

query I rowsort
SELECT DISTINCT + COALESCE ( 88, - 87 ) + 92 AS col1
----
180

onlyif mysql # aggregate syntax: 
query II rowsort label-559
SELECT - COUNT( * ) + - + 92 * + 12 + + 10 col1, - 44 + 57
----
-1095
13

skipif mysql # not compatible
query II rowsort label-559
SELECT - COUNT ( * ) + - + 92 * + 12 + + 10 col1, - 44 + 57
----
-1095
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL + - ( SUM( + ( + 32 ) ) ) + - + 24
----
-56

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + - ( SUM ( + ( + 32 ) ) ) + - + 24
----
-56

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

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

query I rowsort
SELECT - - COALESCE ( + - 32, - - 12, + + ( + 44 ) ) AS col0
----
-32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-565
SELECT ALL + - 49 + + 76 DIV + - 20 + - 88 * - + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + - 49 + + 76 / + - 20 + - 88 * - + COUNT ( * ) AS col1
----
36

query II rowsort
SELECT + - 97 AS col2, 71
----
-97
71

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-568
SELECT ALL - ( + + 95 ) DIV + 94 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL - ( + + 95 ) / + 94 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL COUNT( * ) * - 21 * 14 + NULLIF ( + ( 28 ), - - 2 + + ( - - CAST( NULL AS SIGNED ) ) )
----
-266

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL COUNT ( * ) * - 21 * 14 + NULLIF ( + ( 28 ), - - 2 + + ( - - CAST ( NULL AS INTEGER ) ) )
----
-266

query II rowsort
SELECT + 43 AS col1, + 98
----
43
98

query I rowsort
SELECT ALL - 58 * 52 * 40 * 3 * - 32
----
11581440

query I rowsort
SELECT DISTINCT - 22 AS col1
----
-22

query I rowsort
SELECT 0 * ( - - 47 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT ALL 19 * + + COUNT( * ) * - 3 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-574
SELECT ALL 19 * + + COUNT ( * ) * - 3 AS col0
----
-57

query I rowsort
SELECT DISTINCT - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - COUNT( + 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-576
SELECT - COUNT ( + 50 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-577
SELECT ALL 59 + + - 45 AS col0, - 15 + + COUNT( * )
----
14
-14

skipif mysql # not compatible
query II rowsort label-577
SELECT ALL 59 + + - 45 AS col0, - 15 + + COUNT ( * )
----
14
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT ALL - 73 * - + 65 + - - 12 + - - ( - 39 ) * 33 DIV + NULLIF ( - 95, COALESCE ( - 29, - ( - ( 8 ) ) ) ) - 30
----
4740

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL - 73 * - + 65 + - - 12 + - - ( - 39 ) * 33 / + NULLIF ( - 95, COALESCE ( - 29, - ( - ( 8 ) ) ) ) - 30
----
4740

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-580
SELECT - - COALESCE ( + 29, - 15, 55 * - 71 ) AS col0, - COUNT( - 53 ) AS col0
----
29
-1

skipif mysql # not compatible
query II rowsort label-580
SELECT - - COALESCE ( + 29, - 15, 55 * - 71 ) AS col0, - COUNT ( - 53 ) AS col0
----
29
-1

query I rowsort
SELECT DISTINCT - 40 + - 21 * + + 11 AS col1
----
-271

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT ALL 29 + + - 9 DIV - 35
----
29

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL 29 + + - 9 / - 35
----
29

query I rowsort
SELECT - + 78 AS col2
----
-78

query I rowsort
SELECT ALL + + 89 + + 72 AS col2
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-585
SELECT ALL COALESCE ( + CAST( + + COUNT( * ) AS SIGNED ), - ( + 97 ) + COUNT( * ), - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL COALESCE ( + CAST ( + + COUNT ( * ) AS INTEGER ), - ( + 97 ) + COUNT ( * ), - 75 ) AS col1
----
1

query I rowsort
SELECT COALESCE ( - 56, + 39 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-587
SELECT CASE - ( - CAST( NULL AS SIGNED ) ) WHEN + + 40 + + 57 / - 99 THEN + 46 * - + COUNT( * ) + - 82 + + + 88 WHEN + 13 - + + 2 + 68 * 92 THEN - 41 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT CASE - ( - CAST ( NULL AS INTEGER ) ) WHEN + + 40 + + 57 / - 99 THEN + 46 * - + COUNT ( * ) + - 82 + + + 88 WHEN + 13 - + + 2 + 68 * 92 THEN - 41 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-588
SELECT - + 46 + + COUNT( * ) col0, 80
----
-45
80

skipif mysql # not compatible
query II rowsort label-588
SELECT - + 46 + + COUNT ( * ) col0, 80
----
-45
80

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT + 48 * 62 * + COUNT( * ) - - 90 AS col0
----
3066

skipif mysql # not compatible
query I rowsort label-589
SELECT + 48 * 62 * + COUNT ( * ) - - 90 AS col0
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT - 18 * MAX( + - 2 )
----
36

skipif mysql # not compatible
query I rowsort label-590
SELECT - 18 * MAX ( + - 2 )
----
36

query I rowsort
SELECT ALL - + ( 39 ) + - 38 * ( 8 )
----
-343

query I rowsort
SELECT - 62 * - 91 AS col1
----
5642

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

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

query I rowsort
SELECT DISTINCT - 33 - + - 98 AS col2
----
65

query I rowsort
SELECT DISTINCT - + 34 * 24 * + ( + + 60 ) AS col2
----
-48960

query II rowsort
SELECT ALL - + 17 - + 39 AS col1, - 38
----
-56
-38

query I rowsort
SELECT ALL + 25 - + 6 - + 88
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - CASE + 97 WHEN 20 * 24 THEN 88 WHEN - COUNT( * ) THEN NULL ELSE NULL END * + + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT - CASE + 97 WHEN 20 * 24 THEN 88 WHEN - COUNT ( * ) THEN NULL ELSE NULL END * + + 97 AS col0
----
NULL

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

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

query I rowsort
SELECT - 79 + - 4
----
-83

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

onlyif mysql # DIV for integer division: 
query II rowsort label-602
SELECT DISTINCT + 13, 93 * 25 DIV 28 AS col0
----
13
83

skipif mysql # not compatible
query II rowsort label-602
SELECT DISTINCT + 13, 93 * 25 / 28 AS col0
----
13
83

query II rowsort
SELECT + 19 AS col0, 42 AS col2
----
19
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT DISTINCT SUM( + 12 ) * + CAST( NULL AS SIGNED ) / - - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT SUM ( + 12 ) * + CAST ( NULL AS INTEGER ) / - - 18 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-605
SELECT ALL + 99 DIV + COALESCE ( - CAST( NULL AS SIGNED ), - 9 + + + MIN( DISTINCT + 21 ), - + COUNT( * ) - COALESCE ( + COALESCE ( - - 19, - COUNT( * ) ), + 68 ) * + 88 * + 89 )
----
8

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + 99 / + COALESCE ( - CAST ( NULL AS INTEGER ), - 9 + + + MIN ( DISTINCT + 21 ), - + COUNT ( * ) - COALESCE ( + COALESCE ( - - 19, - COUNT ( * ) ), + 68 ) * + 88 * + 89 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-606
SELECT - 8 DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-606
SELECT - 8 / 28
----
0

query I rowsort
SELECT ALL COALESCE ( + 30, - 54 * + 86 + + 78, 32 + + ( - + 59 ), + + NULLIF ( + + 68, - 83 + + 19 - + 21 + 61 * 74 ) ) * ( - 54 )
----
-1620

query I rowsort
SELECT + 33 col2
----
33

query I rowsort
SELECT + 1 + + 15 AS col1
----
16

query I rowsort
SELECT - ( + 20 ) * + 38 + + 51 AS col2
----
-709

query I rowsort
SELECT NULLIF ( - + 4, + 95 + - + 80 ) AS col2
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL + SUM( - 34 ) * 31 - CASE 96 WHEN COUNT( * ) * + 53 THEN NULL ELSE + ( + ( + + 35 ) ) + + 0 * - - 19 + + CASE + 9 WHEN ( + 56 ) * 22 - CASE - 55 + - 88 WHEN 69 THEN 84 ELSE - 62 END THEN ( + ( 2 ) ) WHEN - 51 THEN NULL ELSE NULL END END + + 55 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL + SUM ( - 34 ) * 31 - CASE 96 WHEN COUNT ( * ) * + 53 THEN NULL ELSE + ( + ( + + 35 ) ) + + 0 * - - 19 + + CASE + 9 WHEN ( + 56 ) * 22 - CASE - 55 + - 88 WHEN 69 THEN 84 ELSE - 62 END THEN ( + ( 2 ) ) WHEN - 51 THEN NULL ELSE NULL END END + + 55 + - 48
----
NULL

query I rowsort
SELECT NULLIF ( + 70, + 5 )
----
70

query II rowsort
SELECT DISTINCT + 76 col2, 72
----
76
72

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT 94 * 14 * - - 89 + - - COUNT( * ) AS col0
----
117125

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT 94 * 14 * - - 89 + - - COUNT ( * ) AS col0
----
117125

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL + - MAX( ALL + + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL + - MAX ( ALL + + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-618
SELECT + + 16 * - 92 + + - 93 * 1 * + ( - ( COUNT( * ) ) ) + - 61 AS col0, + COUNT( * )
----
-1440
1

skipif mysql # not compatible
query II rowsort label-618
SELECT + + 16 * - 92 + + - 93 * 1 * + ( - ( COUNT ( * ) ) ) + - 61 AS col0, + COUNT ( * )
----
-1440
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-619
SELECT ALL - 92 * - COUNT( * ) + - CASE + COUNT( * ) WHEN - - 97 * 11 + - + CAST( NULL AS SIGNED ) THEN + 2 END, 6 * COUNT( * ) AS col2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-619
SELECT ALL - 92 * - COUNT ( * ) + - CASE + COUNT ( * ) WHEN - - 97 * 11 + - + CAST ( NULL AS INTEGER ) THEN + 2 END, 6 * COUNT ( * ) AS col2
----
NULL
6

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT DISTINCT + CASE 2 WHEN - - 44 + + + 35 + - 32 + - COUNT( * ) * + 22 THEN + 19 * 34 + 9 * + 65 * - 71 * + + 65 WHEN + 29 + - 8 * - COUNT( * ) THEN NULL END * MAX( 34 ) + + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT + CASE 2 WHEN - - 44 + + + 35 + - 32 + - COUNT ( * ) * + 22 THEN + 19 * 34 + 9 * + 65 * - 71 * + + 65 WHEN + 29 + - 8 * - COUNT ( * ) THEN NULL END * MAX ( 34 ) + + 76 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL COUNT( * ) * 58 + - 18 + 52
----
92

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL COUNT ( * ) * 58 + - 18 + 52
----
92

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

query I rowsort
SELECT ALL 63 + - 91 - 36 * + 51 * 55 AS col2
----
-101008

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

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

query I rowsort
SELECT ALL 77 * + 61 + + + 48 * + 43 * 30 AS col2
----
66617

query I rowsort
SELECT + 46 * + 22 AS col2
----
1012

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-629
SELECT DISTINCT + 67 * + 31 DIV - COUNT( * ) AS col1
----
-2077

skipif mysql # not compatible
query I rowsort label-629
SELECT DISTINCT + 67 * + 31 / - COUNT ( * ) AS col1
----
-2077

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-631
SELECT - 5 col1, COUNT( * ) * + 41 - 84
----
-5
-43

skipif mysql # not compatible
query II rowsort label-631
SELECT - 5 col1, COUNT ( * ) * + 41 - 84
----
-5
-43

query I rowsort
SELECT ALL - 34 * + 77 AS col2
----
-2618

onlyif mysql # DIV for integer division: 
query I rowsort label-633
SELECT DISTINCT + - 44 DIV + 99 + - 71
----
-71

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT + - 44 / + 99 + - 71
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-634
SELECT + + 54 + + - 33 + - COUNT( * ) * + - COUNT( * ) DIV - 49
----
21

skipif mysql # not compatible
query I rowsort label-634
SELECT + + 54 + + - 33 + - COUNT ( * ) * + - COUNT ( * ) / - 49
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-635
SELECT + - ( + ( 77 ) ) - ( CAST( - 61 AS SIGNED ) ) * 96
----
5779

skipif mysql # not compatible
query I rowsort label-635
SELECT + - ( + ( 77 ) ) - ( CAST ( - 61 AS INTEGER ) ) * 96
----
5779

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT + - COUNT( ALL + 33 ) + + 15
----
14

skipif mysql # not compatible
query I rowsort label-636
SELECT + - COUNT ( ALL + 33 ) + + 15
----
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-637
SELECT DISTINCT - CAST( - ( - 93 ) AS SIGNED ) DIV 48 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT - CAST ( - ( - 93 ) AS INTEGER ) / 48 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT + COUNT( + 85 ) * - NULLIF ( + 93, - 77 * + CASE + - 11 WHEN - + ( - 51 ) THEN 36 ELSE 47 END - - + 45 + + COUNT( * ) )
----
-93

skipif mysql # not compatible
query I rowsort label-638
SELECT + COUNT ( + 85 ) * - NULLIF ( + 93, - 77 * + CASE + - 11 WHEN - + ( - 51 ) THEN 36 ELSE 47 END - - + 45 + + COUNT ( * ) )
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-639
SELECT ALL - 67 * COALESCE ( + - 5, + MIN( DISTINCT - 47 ) * + 30 * + + 35 DIV + 29 + + - 32 + - 98 + 23 * + - COUNT( * ) + - 72 * 91 + + 14 ) AS col2
----
335

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL - 67 * COALESCE ( + - 5, + MIN ( DISTINCT - 47 ) * + 30 * + + 35 / + 29 + + - 32 + - 98 + 23 * + - COUNT ( * ) + - 72 * 91 + + 14 ) AS col2
----
335

query I rowsort
SELECT + 38 + + + 73
----
111

query I rowsort
SELECT ALL - 58 * - + 59 AS col2
----
3422

query I rowsort
SELECT DISTINCT + 16 col0
----
16

query I rowsort
SELECT ALL + 94 * + + 11 AS col1
----
1034

query I rowsort
SELECT - ( - - 45 ) * - 21
----
945

query I rowsort
SELECT ALL + 85 * - 47
----
-3995

query I rowsort
SELECT DISTINCT 55 * - 14 * + - 15
----
11550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-647
SELECT ALL - 35 DIV 65 + - ( - - SUM( DISTINCT + + 92 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - 35 / 65 + - ( - - SUM ( DISTINCT + + 92 ) )
----
-92

query I rowsort
SELECT + ( + 42 ) * + 14 AS col2
----
588

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

query I rowsort
SELECT + 31 col0
----
31

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

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

query I rowsort
SELECT ALL + 32 * - - 29
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT 31 - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-653
SELECT 31 - - COUNT ( * )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT DISTINCT - - 80 DIV + - 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT - - 80 / + - 55 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL 81 + + COUNT( * ) - + + 65
----
17

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL 81 + + COUNT ( * ) - + + 65
----
17

query I rowsort
SELECT + 55 * - 96 AS col2
----
-5280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-657
SELECT + ( - 36 ) * - 50 - 83 DIV - - COUNT( * )
----
1717

skipif mysql # not compatible
query I rowsort label-657
SELECT + ( - 36 ) * - 50 - 83 / - - COUNT ( * )
----
1717

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

query II rowsort
SELECT + 21 * + + 3 * - 32 + + 52 AS col1, 35 * 64
----
-1964
2240

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

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + COUNT ( * ) / 89
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT + 44 + + - COUNT( * ) AS col0, + 45 * - 77 + + + 93
----
43
-3372

skipif mysql # not compatible
query II rowsort label-661
SELECT + 44 + + - COUNT ( * ) AS col0, + 45 * - 77 + + + 93
----
43
-3372

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT - MAX( 40 ) * + - 37 AS col1
----
1480

skipif mysql # not compatible
query I rowsort label-662
SELECT - MAX ( 40 ) * + - 37 AS col1
----
1480

query I rowsort
SELECT ( - 50 ) + + + 72
----
22

query I rowsort
SELECT ALL 0 col0
----
0

query I rowsort
SELECT - + 10 col1
----
-10

query I rowsort
SELECT - 80 + - + 27 AS col0
----
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-667
SELECT + 19 * - 92 AS col0, 54 * - COUNT( * ) * - - 86 AS col2
----
-1748
-4644

skipif mysql # not compatible
query II rowsort label-667
SELECT + 19 * - 92 AS col0, 54 * - COUNT ( * ) * - - 86 AS col2
----
-1748
-4644

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - 94 + - MAX( ALL - 90 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-668
SELECT - 94 + - MAX ( ALL - 90 ) AS col0
----
-4

query I rowsort
SELECT + 34 AS col0
----
34

query II rowsort
SELECT 33 + + 68 AS col2, + 82 * 91 AS col2
----
101
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT + MAX( 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-671
SELECT + MAX ( 86 ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-672
SELECT CAST( + 94 AS SIGNED ) * CASE + 27 WHEN - - 51 * - 40 THEN - - COUNT( * ) - + - 91 ELSE - - 55 END AS col1, 86
----
5170
86

skipif mysql # not compatible
query II rowsort label-672
SELECT CAST ( + 94 AS INTEGER ) * CASE + 27 WHEN - - 51 * - 40 THEN - - COUNT ( * ) - + - 91 ELSE - - 55 END AS col1, 86
----
5170
86

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT - 55 col0, ( + + 37 ) * MIN( 53 )
----
-55
1961

skipif mysql # not compatible
query II rowsort label-673
SELECT - 55 col0, ( + + 37 ) * MIN ( 53 )
----
-55
1961

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-676
SELECT 90 DIV + SUM( ALL 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-676
SELECT 90 / + SUM ( ALL 66 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 44 + + 16
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-678
SELECT 80 DIV - - 16
----
5

skipif mysql # not compatible
query I rowsort label-678
SELECT 80 / - - 16
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-680
SELECT DISTINCT 8 + + - COALESCE ( 31, - ( 46 ), 95 DIV + 67 * + + 74 - - CAST( NULL AS SIGNED ), - 82 ) * + COUNT( * ) + + 69 col1
----
46

skipif mysql # not compatible
query I rowsort label-680
SELECT DISTINCT 8 + + - COALESCE ( 31, - ( 46 ), 95 / + 67 * + + 74 - - CAST ( NULL AS INTEGER ), - 82 ) * + COUNT ( * ) + + 69 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT 25 * - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-681
SELECT 25 * - COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT ALL 43 + + 25 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - 68 * + - CASE - COUNT( * ) WHEN + 0 THEN 81 + COUNT( * ) + COUNT( ALL ( + 86 ) ) END - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-683
SELECT - 68 * + - CASE - COUNT ( * ) WHEN + 0 THEN 81 + COUNT ( * ) + COUNT ( ALL ( + 86 ) ) END - 22
----
NULL

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

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + COUNT ( ( - 91 ) ) * - 57 AS col2
----
-57

query I rowsort
SELECT DISTINCT + ( ( 68 ) ) * + 52 + + + 80
----
3616

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT ALL - MAX( ALL + - COALESCE ( + - 21, 27 ) ) + - - 38 + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL - MAX ( ALL + - COALESCE ( + - 21, 27 ) ) + - - 38 + - COUNT ( * )
----
16

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

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

query I rowsort
SELECT 41 + + + 87
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-689
SELECT + + COALESCE ( - + 81, - COALESCE ( - + 74, - CAST( NULL AS SIGNED ) ) * + ( - + 88 ) + + 53 + + + 4 )
----
-81

skipif mysql # not compatible
query I rowsort label-689
SELECT + + COALESCE ( - + 81, - COALESCE ( - + 74, - CAST ( NULL AS INTEGER ) ) * + ( - + 88 ) + + 53 + + + 4 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT 61 + + + COUNT( * ) + + 4 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-690
SELECT 61 + + + COUNT ( * ) + + 4 AS col0
----
66

query I rowsort
SELECT ALL + 3 - + 20 * 94
----
-1877

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-692
SELECT + CAST( NULL AS SIGNED ) * MIN( DISTINCT + 48 ) + COUNT( * ) * - NULLIF ( 40, 73 * 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-692
SELECT + CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + 48 ) + COUNT ( * ) * - NULLIF ( 40, 73 * 2 )
----
NULL

query I rowsort
SELECT DISTINCT - 69 AS col0
----
-69

query I rowsort
SELECT DISTINCT - + 2
----
-2

query I rowsort
SELECT ALL - 20 col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-696
SELECT ALL - - 10 DIV 48 + ( - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL - - 10 / 48 + ( - 61 ) AS col2
----
-61

query I rowsort
SELECT ( 68 ) AS col0
----
68

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

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

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

skipif mysql # not compatible
query I rowsort label-699
SELECT + COALESCE ( COUNT ( * ), ( - 8 ) ) AS col0
----
1

query I rowsort
SELECT 2 * + 47 col2
----
94

query II rowsort
SELECT 46 * 87 - - - 84, 25 AS col0
----
3918
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT - 53 * + 93 * - + SUM( + 77 ) AS col2
----
379533

skipif mysql # not compatible
query I rowsort label-703
SELECT - 53 * + 93 * - + SUM ( + 77 ) AS col2
----
379533

query I rowsort
SELECT 81 * + - 52 AS col2
----
-4212

query II rowsort
SELECT 45 AS col2, + 89
----
45
89

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

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

query I rowsort
SELECT ALL 3 + - 69 AS col0
----
-66

query II rowsort
SELECT ALL NULLIF ( - + ( + 20 ), - 28 ) AS col0, - 87 AS col1
----
-20
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT COUNT( * ) - + 7 * 17 * ( + COUNT( * ) )
----
-118

skipif mysql # not compatible
query I rowsort label-709
SELECT COUNT ( * ) - + 7 * 17 * ( + COUNT ( * ) )
----
-118

onlyif mysql # DIV for integer division: 
query II rowsort label-710
SELECT 32 col2, 9 DIV - 9 AS col1
----
32
-1

skipif mysql # not compatible
query II rowsort label-710
SELECT 32 col2, 9 / - 9 AS col1
----
32
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT DISTINCT COUNT( * ) + 51 + - 99 col2
----
-47

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT COUNT ( * ) + 51 + - 99 col2
----
-47

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

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

query II rowsort
SELECT - 73 AS col2, - ( + 88 ) AS col1
----
-73
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT - CASE - 92 WHEN + SUM( ALL - + 78 ) * 78 * + 94 * 74 + - 42 THEN + 33 WHEN SUM( - ( 2 ) ) * - ( + + 73 ) * - 86 THEN NULL ELSE - 84 * - ( 43 * 22 ) END
----
-79464

skipif mysql # not compatible
query I rowsort label-714
SELECT - CASE - 92 WHEN + SUM ( ALL - + 78 ) * 78 * + 94 * 74 + - 42 THEN + 33 WHEN SUM ( - ( 2 ) ) * - ( + + 73 ) * - 86 THEN NULL ELSE - 84 * - ( 43 * 22 ) END
----
-79464

query I rowsort
SELECT DISTINCT NULLIF ( + 88, - 9 + - 63 * 29 )
----
88

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

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

query II rowsort
SELECT DISTINCT 81 col2, + 56 * - 8 * - - 16
----
81
-7168

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT - 1 * + 97 * + COUNT( * ) + + + 56
----
-41

skipif mysql # not compatible
query I rowsort label-718
SELECT - 1 * + 97 * + COUNT ( * ) + + + 56
----
-41

query I rowsort
SELECT ALL - 9 * + 88 + 74
----
-718

query I rowsort
SELECT DISTINCT 66 * + CASE - - 51 WHEN + 65 THEN NULL ELSE 37 * - 78 END * + COALESCE ( + 12, - - 6 + 22 )
----
-2285712

onlyif mysql # aggregate syntax: 
query II rowsort label-721
SELECT + 95 * - COUNT( * ), - 5 + + - MAX( 93 ) + + 33 AS col1
----
-95
-65

skipif mysql # not compatible
query II rowsort label-721
SELECT + 95 * - COUNT ( * ), - 5 + + - MAX ( 93 ) + + 33 AS col1
----
-95
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT - 7 + + 79 DIV 62
----
-6

skipif mysql # not compatible
query I rowsort label-722
SELECT - 7 + + 79 / 62
----
-6

query I rowsort
SELECT ALL + 86 AS col2
----
86

query I rowsort
SELECT + 59 * + 94 * + - 13
----
-72098

query I rowsort
SELECT - + 79 * + - 61 + + - 33 * + 6 + ( - + 2 ) - + NULLIF ( - 35, + 90 + 18 ) - 2 + - 88 + - - 8 AS col2
----
4572

query I rowsort
SELECT + 55 col2
----
55

query II rowsort
SELECT + 66, + 82 AS col2
----
66
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-728
SELECT - CAST( NULL AS DECIMAL ) * - + 75 + + 48 + 85 * 33 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT - CAST ( NULL AS REAL ) * - + 75 + + 48 + 85 * 33 * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 69 AS col2
----
-69

query I rowsort
SELECT DISTINCT + + 91 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT ALL - ( + - CASE + + CASE + + 11 WHEN 3 THEN - ( MIN( 63 ) ) WHEN - 80 * + AVG ( DISTINCT 18 ) THEN + 38 ELSE + + 22 + 63 - + COUNT( * ) END WHEN - + 36 THEN + 12 END ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL - ( + - CASE + + CASE + + 11 WHEN 3 THEN - ( MIN ( 63 ) ) WHEN - 80 * + AVG ( DISTINCT 18 ) THEN + 38 ELSE + + 22 + 63 - + COUNT ( * ) END WHEN - + 36 THEN + 12 END ) * 40
----
NULL

query I rowsort
SELECT ALL + + NULLIF ( + 99, + - 94 ) AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-733
SELECT - MAX( ALL + 8 ) * NULLIF ( + MIN( + 76 ), + 47 ) + - NULLIF ( + 55, - - 22 ) * + COUNT( * ) * - + 77 * - - 97 / - 71 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-733
SELECT - MAX ( ALL + 8 ) * NULLIF ( + MIN ( + 76 ), + 47 ) + - NULLIF ( + 55, - - 22 ) * + COUNT ( * ) * - + 77 * - - 97 / - 71 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-734
SELECT 61 * + 6 * + 15 / + ( - 66 ) + + CAST( NULL AS SIGNED ) * - + SUM( 7 ) + 19 + + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT 61 * + 6 * + 15 / + ( - 66 ) + + CAST ( NULL AS INTEGER ) * - + SUM ( 7 ) + 19 + + 75 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-736
SELECT + COALESCE ( - 62, + + 15 ) + + + CASE 59 WHEN + CAST( COUNT( * ) AS DECIMAL ) THEN - + 91 WHEN + 8 THEN - + 88 END * - + 61 + + + MIN( ALL + 92 ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-736
SELECT + COALESCE ( - 62, + + 15 ) + + + CASE 59 WHEN + CAST ( COUNT ( * ) AS REAL ) THEN - + 91 WHEN + 8 THEN - + 88 END * - + 61 + + + MIN ( ALL + 92 ) + + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT 0 * - ( CASE + MIN( DISTINCT 10 ) WHEN + 21 * 63 + COUNT( * ) THEN 68 END ) * + MIN( + 66 ) + + - COUNT( * ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT 0 * - ( CASE + MIN ( DISTINCT 10 ) WHEN + 21 * 63 + COUNT ( * ) THEN 68 END ) * + MIN ( + 66 ) + + - COUNT ( * ) + - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT ALL MIN( DISTINCT - - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-738
SELECT ALL MIN ( DISTINCT - - 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT - NULLIF ( - 75, - + COALESCE ( + NULLIF ( + COUNT( * ), - 23 ), + 1 ) ) + + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-739
SELECT - NULLIF ( - 75, - + COALESCE ( + NULLIF ( + COUNT ( * ), - 23 ), + 1 ) ) + + + COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-740
SELECT ALL NULLIF ( - 29, 74 / + CAST( NULL AS SIGNED ) )
----
-29

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL NULLIF ( - 29, 74 / + CAST ( NULL AS INTEGER ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT + 4 + + COUNT( * ) - + - 79
----
84

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + 4 + + COUNT ( * ) - + - 79
----
84

query I rowsort
SELECT ALL + 35 + 82 * 25
----
2085

query II rowsort
SELECT DISTINCT ( + + 27 ) AS col1, 32
----
27
32

onlyif mysql # aggregate syntax: 
query II rowsort label-744
SELECT ALL - COUNT( * ) + - 49, 23 AS col1
----
-50
23

skipif mysql # not compatible
query II rowsort label-744
SELECT ALL - COUNT ( * ) + - 49, 23 AS col1
----
-50
23

query I rowsort
SELECT DISTINCT + 54 + - NULLIF ( - + 3, + - 81 ) AS col2
----
57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT ALL + COUNT( * ) + + - 27 DIV 4 * - + 32
----
193

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + COUNT ( * ) + + - 27 / 4 * - + 32
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT - CASE + 28 WHEN - 94 * 95 + + 99 + - 8 * COUNT( * ) + - 61 THEN - - 58 * + 59 + + 43 + 99 WHEN - 32 THEN NULL END * + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT - CASE + 28 WHEN - 94 * 95 + + 99 + - 8 * COUNT ( * ) + - 61 THEN - - 58 * + 59 + + 43 + 99 WHEN - 32 THEN NULL END * + - 48
----
NULL

query I rowsort
SELECT - 37 + 99
----
62

query I rowsort
SELECT ALL ( - - 64 ) AS col2
----
64

query II rowsort
SELECT ALL + 9 + + 55 col0, + 17 + - + 51 AS col0
----
64
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT - 25 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-752
SELECT - 25 / - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL + 36 * + CASE WHEN - ( 38 ) IN ( + 32, + AVG ( + - 31 ), + + NULLIF ( + - 6, + ( - 4 ) - 88 * - 68 ) ) THEN NULL ELSE - COUNT( * ) END AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL + 36 * + CASE WHEN - ( 38 ) IN ( + 32, + AVG ( + - 31 ), + + NULLIF ( + - 6, + ( - 4 ) - 88 * - 68 ) ) THEN NULL ELSE - COUNT ( * ) END AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-754
SELECT - 1 * 2 AS col2, SUM( ALL CAST( NULL AS SIGNED ) ) + - COUNT( * ) + 44 AS col0
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-754
SELECT - 1 * 2 AS col2, SUM ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + 44 AS col0
----
-2
NULL

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

query I rowsort
SELECT DISTINCT ( + + 1 ) AS col0
----
1

query I rowsort
SELECT + 89 + 80
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-758
SELECT DISTINCT COUNT( * ) * ( 72 ) DIV + 1
----
72

skipif mysql # not compatible
query I rowsort label-758
SELECT DISTINCT COUNT ( * ) * ( 72 ) / + 1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT - MAX( 71 ) + 85
----
14

skipif mysql # not compatible
query I rowsort label-759
SELECT - MAX ( 71 ) + 85
----
14

query I rowsort
SELECT - 35 * - NULLIF ( + 73, - 37 )
----
2555

query I rowsort
SELECT ALL 14 * + 27
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - - ( + COUNT( * ) ) + + + 93 col1
----
94

skipif mysql # not compatible
query I rowsort label-762
SELECT - - ( + COUNT ( * ) ) + + + 93 col1
----
94

query I rowsort
SELECT ALL + - 57
----
-57

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

query I rowsort
SELECT + - 56 * 52 * + + 37
----
-107744

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT + 2 DIV - 88 + + 94 + 79
----
173

skipif mysql # not compatible
query I rowsort label-767
SELECT + 2 / - 88 + + 94 + 79
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT + CASE - COUNT( * ) WHEN - 26 THEN + 70 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT + CASE - COUNT ( * ) WHEN - 26 THEN + 70 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 98
----
98

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-772
SELECT + - SUM( ALL ( - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-772
SELECT + - SUM ( ALL ( - CAST ( NULL AS REAL ) ) )
----
NULL

query I rowsort
SELECT ALL 43 * - 23 + + + 72
----
-917

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT + - 30 * - 63 + + COUNT( * ) + - + 53 AS col0
----
1838

skipif mysql # not compatible
query I rowsort label-774
SELECT + - 30 * - 63 + + COUNT ( * ) + - + 53 AS col0
----
1838

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT + + 55 * 91 + COUNT( * ) AS col0, + 37 * + - 79 - - + 53 + + + 97 * 20 * - 99
----
5006
-194930

skipif mysql # not compatible
query II rowsort label-775
SELECT + + 55 * 91 + COUNT ( * ) AS col0, + 37 * + - 79 - - + 53 + + + 97 * 20 * - 99
----
5006
-194930

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT ALL 51 * COUNT( * ) + COUNT( * ) + 49 + + 38 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL 51 * COUNT ( * ) + COUNT ( * ) + 49 + + 38 AS col0
----
139

query I rowsort
SELECT + 36 AS col1
----
36

query I rowsort
SELECT 41 * + 9 + ( - - 51 ) AS col1
----
420

query I rowsort
SELECT ALL 91 * - 84
----
-7644

query II rowsort
SELECT - 5 col1, + 53
----
-5
53

query I rowsort
SELECT 35 * + 79 * 23 AS col2
----
63595

query I rowsort
SELECT 9 - + - 87 AS col0
----
96

query I rowsort
SELECT ALL 31 - - 87
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + 5 * - SUM( + 34 ) * + 95 + + - 92 AS col0
----
-16242

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + 5 * - SUM ( + 34 ) * + 95 + + - 92 AS col0
----
-16242

onlyif mysql # aggregate syntax: 
query II rowsort label-786
SELECT ALL 73 AS col0, COUNT( * ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-786
SELECT ALL 73 AS col0, COUNT ( * ) AS col0
----
73
1

query I rowsort
SELECT ALL 24 col2
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-788
SELECT CAST( NULL AS DECIMAL ) + - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT CAST ( NULL AS REAL ) + - 26 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-789
SELECT 44 - + CAST( 1 AS SIGNED ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-789
SELECT 44 - + CAST ( 1 AS INTEGER ) AS col0
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-790
SELECT CAST( NULL AS DECIMAL ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT CAST ( NULL AS REAL ) * - 40
----
NULL

query I rowsort
SELECT 50 * - + ( - + ( + - 30 ) )
----
-1500

query I rowsort
SELECT 53 - - + 17 + - + 59 * + 78
----
-4532

query I rowsort
SELECT ALL - ( - 76 ) * 61 AS col0
----
4636

query I rowsort
SELECT 34 + - 11 AS col0
----
23

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

skipif mysql # not compatible
query I rowsort label-795
SELECT 40 * - COUNT ( * )
----
-40

query I rowsort
SELECT 43 + 23 AS col1
----
66

query I rowsort
SELECT ALL - 42 * - - 58 * 17 * 28
----
-1159536

query I rowsort
SELECT ALL - - 64 col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-799
SELECT DISTINCT - 97 AS col1, CASE + COUNT( * ) WHEN + 8 THEN - + 86 END
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-799
SELECT DISTINCT - 97 AS col1, CASE + COUNT ( * ) WHEN + 8 THEN - + 86 END
----
-97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-800
SELECT + - COUNT( * ), COALESCE ( - + 57, 49, 75 + - - 2 ) AS col2
----
-1
-57

skipif mysql # not compatible
query II rowsort label-800
SELECT + - COUNT ( * ), COALESCE ( - + 57, 49, 75 + - - 2 ) AS col2
----
-1
-57

query I rowsort
SELECT DISTINCT - - ( - 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-802
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 42 * - COUNT( * ) AS col0
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-802
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 42 * - COUNT ( * ) AS col0
----
NULL
-42

query I rowsort
SELECT ALL + + 91 + + 83
----
174

query I rowsort
SELECT DISTINCT - - 36
----
36

query I rowsort
SELECT 87 + ( - 50 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT ALL - + CASE - 36 WHEN + 12 * + + 37 THEN - + 5 WHEN + COUNT( * ) * - 45 * + - 79 THEN 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - + CASE - 36 WHEN + 12 * + + 37 THEN - + 5 WHEN + COUNT ( * ) * - 45 * + - 79 THEN 92 END
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-808
SELECT ALL - + 12 + - 79 + + 27 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL - + 12 + - 79 + + 27 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 66 + - COALESCE ( + 27, + - ( + 3 ) + + 25 * + 43 ) - + 5 + NULLIF ( 71, 87 ) AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT ALL COUNT( * ) + + 31
----
32

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL COUNT ( * ) + + 31
----
32

query I rowsort
SELECT + ( 2 ) * - + 60 AS col2
----
-120

query II rowsort
SELECT + 81, 37 * 42 AS col2
----
81
1554

query I rowsort
SELECT DISTINCT - 61 col1
----
-61

query II rowsort
SELECT ALL 44 - - + 8, + 16 * - + 87 + 6 AS col2
----
52
-1386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT 99 + - 69 * + - NULLIF ( 46, + + CAST( - - 19 AS SIGNED ) )
----
3273

skipif mysql # not compatible
query I rowsort label-815
SELECT 99 + - 69 * + - NULLIF ( 46, + + CAST ( - - 19 AS INTEGER ) )
----
3273

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT DISTINCT 90 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT 90 / 69
----
1

query I rowsort
SELECT 19 + + 18 + - 83
----
-46

query I rowsort
SELECT 25 * 24
----
600

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-819
SELECT COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-819
SELECT COUNT ( * ) + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 44 + 55 AS col1
----
99

query I rowsort
SELECT DISTINCT ( + - 97 ) * + 10
----
-970

query I rowsort
SELECT 53 + - 56
----
-3

query I rowsort
SELECT ( + 47 ) * + COALESCE ( 17, 29 )
----
799

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT DISTINCT + 56 * + 84 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT + 56 * + 84 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-827
SELECT ALL - + 31 + + COUNT( * ) * + COUNT( * ) + - 5 AS col0, - CASE COUNT( * ) WHEN + ( - - 76 ) THEN - 5 * 8 * 54 / - - 69 + - 64 + + COUNT( * ) - - 42 * + 59 WHEN 33 + 95 THEN NULL ELSE NULL END + + 94 AS col1
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-827
SELECT ALL - + 31 + + COUNT ( * ) * + COUNT ( * ) + - 5 AS col0, - CASE COUNT ( * ) WHEN + ( - - 76 ) THEN - 5 * 8 * 54 / - - 69 + - 64 + + COUNT ( * ) - - 42 * + 59 WHEN 33 + 95 THEN NULL ELSE NULL END + + 94 AS col1
----
-35
NULL

query I rowsort
SELECT DISTINCT 2 col0
----
2

query I rowsort
SELECT 40 * 91 * + 73
----
265720

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT - + CASE - 25 WHEN 85 + + 77 * + + 73 THEN NULL WHEN + SUM( DISTINCT - 70 ) THEN + 22 / - - 16 + + 17 - ( ( - 95 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT - + CASE - 25 WHEN 85 + + 77 * + + 73 THEN NULL WHEN + SUM ( DISTINCT - 70 ) THEN + 22 / - - 16 + + 17 - ( ( - 95 ) ) END AS col1
----
NULL

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

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

query I rowsort
SELECT - 19 * + 70 + - 62 + 3
----
-1389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-833
SELECT + + MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL ( 70 ) * - 45 + + 65 + - 49 AS col0
----
-3134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT DISTINCT 10 * + CAST( NULL AS SIGNED ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT 10 * + CAST ( NULL AS INTEGER ) + 59
----
NULL

query I rowsort
SELECT ALL - NULLIF ( ( ( + 19 ) ), - 59 )
----
-19

query I rowsort
SELECT + + COALESCE ( - + 70, - - CASE + 6 WHEN 21 THEN NULL WHEN + + 62 THEN NULL WHEN - 90 + - 65 + + ( 25 ) THEN NULL WHEN 2 THEN NULL ELSE - 66 END )
----
-70

query I rowsort
SELECT + - 81 col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - SUM( DISTINCT + 83 ) * - - 70 + + 45
----
-5765

skipif mysql # not compatible
query I rowsort label-839
SELECT - SUM ( DISTINCT + 83 ) * - - 70 + + 45
----
-5765

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

skipif mysql # not compatible
query I rowsort label-840
SELECT - + 61 * + 43 * - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT - MAX( ALL + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-841
SELECT - MAX ( ALL + 83 )
----
-83

query I rowsort
SELECT ALL + + 28 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL + CASE + COUNT( * ) WHEN + - CASE + 5 WHEN - 25 * - 82 THEN + - 71 END / 4 THEN - COUNT( * ) / + 79 + + 67 - + - 72 + COUNT( * ) + + 63 WHEN - 69 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL + CASE + COUNT ( * ) WHEN + - CASE + 5 WHEN - 25 * - 82 THEN + - 71 END / 4 THEN - COUNT ( * ) / + 79 + + 67 - + - 72 + COUNT ( * ) + + 63 WHEN - 69 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 79 * - 28 col2
----
2212

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-846
SELECT + 96 DIV NULLIF ( 58, - ( + - 49 ) + MAX( DISTINCT - 64 ) + + - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-846
SELECT + 96 / NULLIF ( 58, - ( + - 49 ) + MAX ( DISTINCT - 64 ) + + - 55 )
----
1

query I rowsort
SELECT ALL - 5 * - 6
----
30

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-849
SELECT 33 AS col0, - 78 + - 42 + 29 * 63 * + + 65 + + 80 DIV - 71 - + 23
----
33
118611

skipif mysql # not compatible
query II rowsort label-849
SELECT 33 AS col0, - 78 + - 42 + 29 * 63 * + + 65 + + 80 / - 71 - + 23
----
33
118611

query I rowsort
SELECT - 43 * + 70
----
-3010

query I rowsort
SELECT - COALESCE ( + 81, - + ( - + 68 ) * - 32 ) AS col2
----
-81

query I rowsort
SELECT DISTINCT COALESCE ( 37, - 86, 55 ) AS col2
----
37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT DISTINCT - MIN( DISTINCT + 63 ) + 42 + MIN( DISTINCT + 21 ) * + 2 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT - MIN ( DISTINCT + 63 ) + 42 + MIN ( DISTINCT + 21 ) * + 2 AS col0
----
21

query I rowsort
SELECT - 77 + + 17
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL 88 * - ( SUM( - 14 ) )
----
1232

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL 88 * - ( SUM ( - 14 ) )
----
1232

query I rowsort
SELECT + 21 + - - 12
----
33

query I rowsort
SELECT + - ( 16 ) - + + 99 * - 61
----
6023

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT MAX( ALL + + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-859
SELECT MAX ( ALL + + 11 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-860
SELECT ALL 69 + - + NULLIF ( + 88, - COUNT( * ) * - 70 ) DIV + 1 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL 69 + - + NULLIF ( + 88, - COUNT ( * ) * - 70 ) / + 1 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT - CAST( - + ( COALESCE ( + 43, COUNT( * ) * - - COUNT( * ) ) ) AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-861
SELECT - CAST ( - + ( COALESCE ( + 43, COUNT ( * ) * - - COUNT ( * ) ) ) AS INTEGER ) AS col2
----
43

query I rowsort
SELECT - + 32 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL NULLIF ( + - MAX( - 10 ), + ( + 87 ) ) * + 16 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL NULLIF ( + - MAX ( - 10 ), + ( + 87 ) ) * + 16 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT DISTINCT - NULLIF ( - + CASE - COUNT( * ) WHEN - 13 THEN 65 WHEN + NULLIF ( - 26, + - 65 ) THEN + - ( - 45 ) ELSE NULL END, - 67 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT - NULLIF ( - + CASE - COUNT ( * ) WHEN - 13 THEN 65 WHEN + NULLIF ( - 26, + - 65 ) THEN + - ( - 45 ) ELSE NULL END, - 67 ) col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT + + COUNT( ALL + ( - ( 83 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-866
SELECT + + COUNT ( ALL + ( - ( 83 ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-867
SELECT ALL - 96 / - 72 + - CAST( NULL AS SIGNED ) / + 8 + 51 - + 96 AS col2, + 36 + + 33
----
NULL
69

skipif mysql # not compatible
query II rowsort label-867
SELECT ALL - 96 / - 72 + - CAST ( NULL AS INTEGER ) / + 8 + 51 - + 96 AS col2, + 36 + + 33
----
NULL
69

query I rowsort
SELECT - - 51 * + 2
----
102

query I rowsort
SELECT ALL + + 76 AS col0
----
76

query I rowsort
SELECT + - 82 + - 36 + + 44 col0
----
-74

query I rowsort
SELECT + - NULLIF ( - 28, + 7 )
----
28

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

query I rowsort
SELECT + 68 + 77 - + + 32 AS col0
----
113

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-875
SELECT ALL + CAST( SUM( ALL 78 ) AS SIGNED ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL + CAST ( SUM ( ALL 78 ) AS INTEGER ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL 9 * ( - - 65 ) * - CASE 6 WHEN + COUNT( * ) THEN - 53 * + 19 ELSE NULL END + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL 9 * ( - - 65 ) * - CASE 6 WHEN + COUNT ( * ) THEN - 53 * + 19 ELSE NULL END + - 24
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-878
SELECT + MIN( DISTINCT 84 ) * - COALESCE ( - 26, + + 6 DIV 54, - COALESCE ( - + 93, - + 66 + - 47 + + COUNT( * ), 32 + - ( + 26 ), - CAST( NULL AS SIGNED ) ) ) + + - COALESCE ( + COUNT( * ), + - 0 ) AS col2
----
2183

skipif mysql # not compatible
query I rowsort label-878
SELECT + MIN ( DISTINCT 84 ) * - COALESCE ( - 26, + + 6 / 54, - COALESCE ( - + 93, - + 66 + - 47 + + COUNT ( * ), 32 + - ( + 26 ), - CAST ( NULL AS INTEGER ) ) ) + + - COALESCE ( + COUNT ( * ), + - 0 ) AS col2
----
2183

query I rowsort
SELECT - 96 - + - 3
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT COUNT( * ) * - 52 + - 66 * - 7 AS col2
----
410

skipif mysql # not compatible
query I rowsort label-880
SELECT COUNT ( * ) * - 52 + - 66 * - 7 AS col2
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT COALESCE ( - 91, - MIN( + 25 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-881
SELECT COALESCE ( - 91, - MIN ( + 25 ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT ALL + CASE - 20 WHEN + 8 * 89 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL + CASE - 20 WHEN + 8 * 89 THEN - + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT - 60 + + COALESCE ( - ( COALESCE ( 69, + 26 + 79 * 76 * 88 ) ), SUM( + + 29 ) * + 65, + + 38 )
----
-129

skipif mysql # not compatible
query I rowsort label-883
SELECT - 60 + + COALESCE ( - ( COALESCE ( 69, + 26 + 79 * 76 * 88 ) ), SUM ( + + 29 ) * + 65, + + 38 )
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT + SUM( DISTINCT 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-884
SELECT + SUM ( DISTINCT 50 ) AS col2
----
50

query II rowsort
SELECT - 25 + + 60, 84 * + 30 + + 38 + - + ( - + 20 ) + - - 53 * - 83 col2
----
35
-1821

query I rowsort
SELECT ALL - 74 * + 42 col1
----
-3108

query I rowsort
SELECT ALL CASE + 15 WHEN - + 11 * + - 49 THEN NULL WHEN - 2 * + 29 THEN NULL ELSE - 46 END AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - MIN( - 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-888
SELECT - MIN ( - 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT - 89 + - COUNT( DISTINCT - 72 )
----
-90

skipif mysql # not compatible
query I rowsort label-889
SELECT - 89 + - COUNT ( DISTINCT - 72 )
----
-90

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

query I rowsort
SELECT - ( + 0 ) + + 44 AS col1
----
44

query II rowsort
SELECT - 53 * 26, + 9 * 79 AS col0
----
-1378
711

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT + COUNT( DISTINCT + 3 ) + + - 60 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-893
SELECT + COUNT ( DISTINCT + 3 ) + + - 60 AS col0
----
-59

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

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

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

query II rowsort
SELECT - 42 AS col2, - 58 AS col1
----
-42
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-897
SELECT - - 13 AS col2, + COUNT( 92 ) DIV + CAST( 18 AS SIGNED ) - 78
----
13
-78

skipif mysql # not compatible
query II rowsort label-897
SELECT - - 13 AS col2, + COUNT ( 92 ) / + CAST ( 18 AS INTEGER ) - 78
----
13
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-898
SELECT - 41 * - 94 + COUNT( + + 53 ) AS col1, 92 AS col1
----
3855
92

skipif mysql # not compatible
query II rowsort label-898
SELECT - 41 * - 94 + COUNT ( + + 53 ) AS col1, 92 AS col1
----
3855
92

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

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL 80 / + - COUNT ( * ) AS col0
----
-80

query II rowsort
SELECT - - 46 + NULLIF ( 66, - 81 ) - + 14 * 89 AS col0, 85 + + 70
----
-1134
155

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT ALL - - 5 + + 79 DIV + - 4
----
-14

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL - - 5 + + 79 / + - 4
----
-14

query II rowsort
SELECT - 76 AS col2, 45 AS col1
----
-76
45

query I rowsort
SELECT ( 2 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-904
SELECT ALL - CAST( NULL AS SIGNED ), ( 90 ) AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-904
SELECT ALL - CAST ( NULL AS INTEGER ), ( 90 ) AS col0
----
NULL
90

query I rowsort
SELECT 62 + + 54
----
116

query I rowsort
SELECT ALL 87 - + ( + 31 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT - ( - 9 ) * + + MIN( ALL - + 40 ) AS col2
----
-360

skipif mysql # not compatible
query I rowsort label-907
SELECT - ( - 9 ) * + + MIN ( ALL - + 40 ) AS col2
----
-360

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

query II rowsort
SELECT + 50, + 96 + - 89 + + 57 + + - 20 + + + 25 AS col0
----
50
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-910
SELECT ALL - + CAST( NULL AS SIGNED ) AS col0, ( + 60 )
----
NULL
60

skipif mysql # not compatible
query II rowsort label-910
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col0, ( + 60 )
----
NULL
60

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT + COUNT( 5 ) * - - ( + - COALESCE ( - + 18, + 30, - - 38 * - - 62 ) ) col1
----
18

skipif mysql # not compatible
query I rowsort label-911
SELECT + COUNT ( 5 ) * - - ( + - COALESCE ( - + 18, + 30, - - 38 * - - 62 ) ) col1
----
18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-913
SELECT DISTINCT ( + COUNT( * ) ) * - COALESCE ( + ( 72 ), - + 31, 18 DIV COUNT( * ) + COUNT( * ) + ( + + 83 ) - - 47 + - + 63 * + CAST( NULL AS SIGNED ) * 51 * 97 )
----
-72

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT ( + COUNT ( * ) ) * - COALESCE ( + ( 72 ), - + 31, 18 / COUNT ( * ) + COUNT ( * ) + ( + + 83 ) - - 47 + - + 63 * + CAST ( NULL AS INTEGER ) * 51 * 97 )
----
-72

query I rowsort
SELECT 63 * + 88 AS col2
----
5544

query II rowsort
SELECT DISTINCT 84 + - 13 AS col1, 13 + + + 28 AS col2
----
71
41

onlyif mysql # aggregate syntax: 
query III rowsort label-916
SELECT ALL + 42 * - COUNT( * ) AS col2, 91 AS col0, + - 0
----
-42
91
0

skipif mysql # not compatible
query III rowsort label-916
SELECT ALL + 42 * - COUNT ( * ) AS col2, 91 AS col0, + - 0
----
-42
91
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-917
SELECT ALL - 87 + - 9 + + - CAST( NULL AS SIGNED ) + - 81 - + 93 + + 66 / + - 6 * + + 45 * + 94 + + 10 * + 73 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL - 87 + - 9 + + - CAST ( NULL AS INTEGER ) + - 81 - + 93 + + 66 / + - 6 * + + 45 * + 94 + + 10 * + 73 col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT 33 + ( 53 ) * + 86 + + + CAST( + COUNT( * ) AS SIGNED ) + - ( + + CAST( + 31 AS SIGNED ) ) * + COUNT( * ) + + - 12
----
4549

skipif mysql # not compatible
query I rowsort label-919
SELECT 33 + ( 53 ) * + 86 + + + CAST ( + COUNT ( * ) AS INTEGER ) + - ( + + CAST ( + 31 AS INTEGER ) ) * + COUNT ( * ) + + - 12
----
4549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-920
SELECT CAST( NULL AS SIGNED ) + + - 1 + + COUNT( * ) + + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT CAST ( NULL AS INTEGER ) + + - 1 + + COUNT ( * ) + + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-921
SELECT 78 DIV + + 51, COUNT( + - 78 ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-921
SELECT 78 / + + 51, COUNT ( + - 78 ) AS col0
----
1
1

query I rowsort
SELECT 31 col1
----
31

query I rowsort
SELECT 88 * - 89 * - 14
----
109648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-924
SELECT ALL - 52 + - 30 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL - 52 + - 30 + CAST ( NULL AS INTEGER )
----
NULL

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

query I rowsort
SELECT DISTINCT 93 AS col0
----
93

query I rowsort
SELECT ALL + 11 - - ( + 7 ) AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-928
SELECT MIN( - - 34 ) + - 90, - MAX( DISTINCT NULLIF ( - CAST( - 82 AS SIGNED ), - + CAST( + 12 AS SIGNED ) ) ) AS col0
----
-56
-82

skipif mysql # not compatible
query II rowsort label-928
SELECT MIN ( - - 34 ) + - 90, - MAX ( DISTINCT NULLIF ( - CAST ( - 82 AS INTEGER ), - + CAST ( + 12 AS INTEGER ) ) ) AS col0
----
-56
-82

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

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

query I rowsort
SELECT - - 7 AS col0
----
7

query I rowsort
SELECT + 5 + 97 * 52
----
5049

query I rowsort
SELECT - 75 * + 32 - - 61 AS col1
----
-2339

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

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

query I rowsort
SELECT - - 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT 46 + + ( SUM( 48 ) )
----
94

skipif mysql # not compatible
query I rowsort label-935
SELECT 46 + + ( SUM ( 48 ) )
----
94

query I rowsort
SELECT ALL + ( - - 28 ) - 8
----
20

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

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

query I rowsort
SELECT DISTINCT - 7
----
-7

query I rowsort
SELECT ALL 17 * + 57 + 22 * + 23
----
1475

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

query I rowsort
SELECT + 91 * 26 - + 79 * 49
----
-1505

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

skipif mysql # not compatible
query I rowsort label-942
SELECT COUNT ( * ) + + 2 AS col1
----
3

query I rowsort
SELECT ( - - 94 ) * + 26
----
2444

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

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL 79 * + COUNT ( * ) AS col0
----
79

query II rowsort
SELECT 18 * 6 * - 13 AS col0, 92 AS col0
----
-1404
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-946
SELECT ALL - COUNT( * ) + + - CAST( NULL AS SIGNED ) * + ( MIN( + 85 ) ) * + - COUNT( DISTINCT + 23 ) + - 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * + ( MIN ( + 85 ) ) * + - COUNT ( DISTINCT + 23 ) + - 80 AS col0
----
NULL

query I rowsort
SELECT ALL 8 + 90 * - 25
----
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT COUNT( * ) + + + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-948
SELECT COUNT ( * ) + + + 19 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-949
SELECT ALL COALESCE ( - COUNT( * ), + 81 * + 6, COUNT( DISTINCT - + 15 ) ) + COALESCE ( + 32, - + CAST( NULL AS SIGNED ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL COALESCE ( - COUNT ( * ), + 81 * + 6, COUNT ( DISTINCT - + 15 ) ) + COALESCE ( + 32, - + CAST ( NULL AS INTEGER ) ) AS col2
----
31

query II rowsort
SELECT DISTINCT - 82 AS col0, 38 * + 73
----
-82
2774

query I rowsort
SELECT DISTINCT - 85
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL 1 + - + ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL 1 + - + ( COUNT ( * ) )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT + SUM( DISTINCT 23 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-954
SELECT + SUM ( DISTINCT 23 ) col2
----
23

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

skipif mysql # not compatible
query I rowsort label-955
SELECT - 22 * MAX ( + 77 ) + COUNT ( * ) AS col0
----
-1693

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT + ( 78 ) * + SUM( DISTINCT 81 ) + + + 30 * ( 2 ) * + + 18 AS col0
----
7398

skipif mysql # not compatible
query I rowsort label-956
SELECT + ( 78 ) * + SUM ( DISTINCT 81 ) + + + 30 * ( 2 ) * + + 18 AS col0
----
7398

query I rowsort
SELECT DISTINCT 7 + - 28
----
-21

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

skipif mysql # not compatible
query I rowsort label-958
SELECT + MIN ( 11 )
----
11

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

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

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

query I rowsort
SELECT DISTINCT 59 * 0 * - 50 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT DISTINCT 71 - + - CAST( - ( 84 ) AS SIGNED ) + COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT 71 - + - CAST ( - ( 84 ) AS INTEGER ) + COUNT ( * ) AS col1
----
-12

query II rowsort
SELECT ALL - 4, 85 col2
----
-4
85

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL + 60 - MAX( ALL 84 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + 60 - MAX ( ALL 84 ) AS col0
----
-24

query I rowsort
SELECT DISTINCT NULLIF ( + 38, + + 50 * + 55 )
----
38

query II rowsort
SELECT ALL + 35, 97 AS col1
----
35
97

query I rowsort
SELECT DISTINCT + 33 - + - 17 AS col2
----
50

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

query I rowsort
SELECT - 73 + 50
----
-23

query I rowsort
SELECT + + 94 * - 8
----
-752

query I rowsort
SELECT - 86 + - 32
----
-118

query I rowsort
SELECT DISTINCT - 73 col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-975
SELECT ALL COALESCE ( + 78, - 51, + 10 DIV - - 65 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL COALESCE ( + 78, - 51, + 10 / - - 65 ) AS col0
----
78

query I rowsort
SELECT - 34 + - 57 AS col1
----
-91

query I rowsort
SELECT - CASE - - 82 WHEN + 82 THEN 26 END AS col1
----
-26

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

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

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

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

query II rowsort
SELECT ALL 57 AS col1, + ( 9 ) + - + 27
----
57
-18

query I rowsort
SELECT ALL + - 62 * + + 48
----
-2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-982
SELECT - ( - 47 ) * - ( COUNT( * ) ), - CAST( - 34 AS SIGNED ) AS col1
----
-47
34

skipif mysql # not compatible
query II rowsort label-982
SELECT - ( - 47 ) * - ( COUNT ( * ) ), - CAST ( - 34 AS INTEGER ) AS col1
----
-47
34

query I rowsort
SELECT + - 67 * 5 AS col1
----
-335

query I rowsort
SELECT - - 62 + - 76 AS col2
----
-14

query I rowsort
SELECT DISTINCT + 56 * 41
----
2296

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT - + COUNT( * ), + 86 - - 83 AS col0
----
-1
169

skipif mysql # not compatible
query II rowsort label-986
SELECT - + COUNT ( * ), + 86 - - 83 AS col0
----
-1
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT ALL - + COALESCE ( - - CASE - - 46 WHEN - COUNT( DISTINCT 2 ) - - ( + - CAST( NULL AS SIGNED ) ) * + 6 THEN + ( - + 85 ) / + 35 + 9 ELSE - 99 * + 75 END, COUNT( * ), - 52, 62 ) + - + CASE COUNT( * ) WHEN - CASE - 68 WHEN + - 94 THEN NULL ELSE + NULLIF ( COUNT( * ), MAX( ALL + 67 ) ) / 83 END * + ( 74 - + CAST( 62 AS SIGNED ) * - COUNT( * ) ) THEN 73 * - ( + 45 * COUNT( * ) ) WHEN 6 * 74 + - 39 * 57 THEN NULL END * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - + COALESCE ( - - CASE - - 46 WHEN - COUNT ( DISTINCT 2 ) - - ( + - CAST ( NULL AS INTEGER ) ) * + 6 THEN + ( - + 85 ) / + 35 + 9 ELSE - 99 * + 75 END, COUNT ( * ), - 52, 62 ) + - + CASE COUNT ( * ) WHEN - CASE - 68 WHEN + - 94 THEN NULL ELSE + NULLIF ( COUNT ( * ), MAX ( ALL + 67 ) ) / 83 END * + ( 74 - + CAST ( 62 AS INTEGER ) * - COUNT ( * ) ) THEN 73 * - ( + 45 * COUNT ( * ) ) WHEN 6 * 74 + - 39 * 57 THEN NULL END * 92
----
NULL

query I rowsort
SELECT - 61 * 68 * - 9
----
37332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-989
SELECT ( + - CASE - COUNT( - 16 ) WHEN - + 76 * + + ( + 32 ) + - ( - 61 ) THEN NULL ELSE + + 91 DIV COALESCE ( ( CAST( + 64 AS SIGNED ) ), - + SUM( + + 3 ) ) END ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-989
SELECT ( + - CASE - COUNT ( - 16 ) WHEN - + 76 * + + ( + 32 ) + - ( - 61 ) THEN NULL ELSE + + 91 / COALESCE ( ( CAST ( + 64 AS INTEGER ) ), - + SUM ( + + 3 ) ) END ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-990
SELECT ALL - CAST( + ( 36 ) AS SIGNED ) * + 19 + + 97 * + 11 * + ( 71 )
----
75073

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL - CAST ( + ( 36 ) AS INTEGER ) * + 19 + + 97 * + 11 * + ( 71 )
----
75073

query I rowsort
SELECT ( 90 ) AS col0
----
90

query I rowsort
SELECT ALL - 14 * - + 45 + + - 36 + + 59
----
653

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ALL 38 * + - 26 * 97 + + 30 + - COALESCE ( - 48, COUNT( * ), - 7 - 78 ) AS col1
----
-95758

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL 38 * + - 26 * 97 + + 30 + - COALESCE ( - 48, COUNT ( * ), - 7 - 78 ) AS col1
----
-95758

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

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

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

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - CAST ( NULL AS INTEGER ) / 28
----
NULL

query I rowsort
SELECT ALL - 15 * + - 98 * CASE + 6 WHEN 18 THEN 67 + - - AVG ( 1 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + ( ( + 26 ) ) * - - ( NULLIF ( ( - 2 ), - NULLIF ( 12, + 79 ) + + 29 ) )
----
-52

query I rowsort
SELECT ALL 24 * - 77
----
-1848

query I rowsort
SELECT + COALESCE ( 95, - 21 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT + COALESCE ( - - COALESCE ( + COUNT( ALL + + 45 ), + - 93 ), - 96 - 16 + + 83 + + 90 * COUNT( * ), + 50 + + + 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1000
SELECT + COALESCE ( - - COALESCE ( + COUNT ( ALL + + 45 ), + - 93 ), - 96 - 16 + + 83 + + 90 * COUNT ( * ), + 50 + + + 88 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 30 AS col0
----
30

query I rowsort
SELECT ALL 18 * + 83 AS col2
----
1494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1003
SELECT + ( + CAST( NULL AS SIGNED ) ) * - 10 * - 26 AS col0, COUNT( * ) * - 8 * 30 + - 1
----
NULL
-241

skipif mysql # not compatible
query II rowsort label-1003
SELECT + ( + CAST ( NULL AS INTEGER ) ) * - 10 * - 26 AS col0, COUNT ( * ) * - 8 * 30 + - 1
----
NULL
-241

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL 18 * + - MAX( - + 44 ) - - 48 AS col1
----
840

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL 18 * + - MAX ( - + 44 ) - - 48 AS col1
----
840

query I rowsort
SELECT + COALESCE ( - 62, NULLIF ( + + 73, + NULLIF ( 7, + 26 ) * + 31 ) * - + 93 + + 32 )
----
-62

query I rowsort
SELECT DISTINCT + 35 * - + 91
----
-3185

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

query I rowsort
SELECT - 74 + - 89 + + + 85 AS col2
----
-78

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

query I rowsort
SELECT ALL + + 13
----
13

query I rowsort
SELECT + 67 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT + COUNT( * ) * NULLIF ( 84, 73 ) + + - 26
----
58

skipif mysql # not compatible
query I rowsort label-1012
SELECT + COUNT ( * ) * NULLIF ( 84, 73 ) + + - 26
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1013
SELECT ALL - 29 DIV - SUM( DISTINCT - 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL - 29 / - SUM ( DISTINCT - 17 )
----
-1

query I rowsort
SELECT + - 23 * + + 55
----
-1265

query I rowsort
SELECT + 66 * 88
----
5808

onlyif mysql # DIV for integer division: 
query II rowsort label-1016
SELECT - COALESCE ( - 72, - 22 DIV - 85, 40, 68 * - 10 ) AS col1, - 78 * + 74 AS col2
----
72
-5772

skipif mysql # not compatible
query II rowsort label-1016
SELECT - COALESCE ( - 72, - 22 / - 85, 40, 68 * - 10 ) AS col1, - 78 * + 74 AS col2
----
72
-5772

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL - MAX( + + 10 ) * + 19 * - COUNT( * ) * 75 AS col1
----
14250

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - MAX ( + + 10 ) * + 19 * - COUNT ( * ) * 75 AS col1
----
14250

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1018
SELECT ALL 93 DIV - 97 AS col2, - CAST( NULL AS SIGNED ) * - - 30
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1018
SELECT ALL 93 / - 97 AS col2, - CAST ( NULL AS INTEGER ) * - - 30
----
0
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT ALL + SUM( ALL + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + SUM ( ALL + 79 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT ALL 20 + - + 90 - 25 DIV - + 98 * + 71
----
-70

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL 20 + - + 90 - 25 / - + 98 * + 71
----
-70

query I rowsort
SELECT - + 39 AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1023
SELECT + + 97 DIV + 54 + 49 * - MAX( DISTINCT - 50 ) col2
----
2451

skipif mysql # not compatible
query I rowsort label-1023
SELECT + + 97 / + 54 + 49 * - MAX ( DISTINCT - 50 ) col2
----
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT + COUNT( * ) + + MIN( ALL 42 ) + 10 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1024
SELECT + COUNT ( * ) + + MIN ( ALL 42 ) + 10 AS col1
----
53

query I rowsort
SELECT - - 16 * 78 + + 25 AS col0
----
1273

query I rowsort
SELECT - + 58 - - + 48
----
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1027
SELECT DISTINCT ( CASE + 19 WHEN + 78 * + CAST( NULL AS DECIMAL ) THEN - 6 + ( - 28 ) END ) + - 36 + 90 AS col2, + ( + + 2 ) + + 3 + 87 * ( + CASE + 92 WHEN - ( + - 18 ) THEN ( - 53 ) * COUNT( * ) ELSE + 33 END ) * 16 + - 72 * + 78 col2
----
NULL
40325

skipif mysql # not compatible
query II rowsort label-1027
SELECT DISTINCT ( CASE + 19 WHEN + 78 * + CAST ( NULL AS REAL ) THEN - 6 + ( - 28 ) END ) + - 36 + 90 AS col2, + ( + + 2 ) + + 3 + 87 * ( + CASE + 92 WHEN - ( + - 18 ) THEN ( - 53 ) * COUNT ( * ) ELSE + 33 END ) * 16 + - 72 * + 78 col2
----
NULL
40325

query I rowsort
SELECT DISTINCT + 83 + 26
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT ALL COALESCE ( COUNT( * ), - 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL COALESCE ( COUNT ( * ), - 45 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1030
SELECT DISTINCT CAST( NULL AS SIGNED ) / - + COUNT( * ) * + COUNT( * ) * + 74 + + 12 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - + COUNT ( * ) * + COUNT ( * ) * + 74 + + 12 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 29 * + - 83 AS col1
----
2407

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + 54 + COUNT( * ) / - + CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN 93 ELSE NULL END * COUNT( * ) + - MIN( 48 ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT + 54 + COUNT ( * ) / - + CASE WHEN NOT NULL NOT BETWEEN NULL AND NULL THEN 93 ELSE NULL END * COUNT ( * ) + - MIN ( 48 ) + + 60
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 68, 93 )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT 57 * - 56 * - + 9 + 9 + + 70 - CAST( - 71 AS SIGNED ) AS col1
----
28878

skipif mysql # not compatible
query I rowsort label-1034
SELECT 57 * - 56 * - + 9 + 9 + + 70 - CAST ( - 71 AS INTEGER ) AS col1
----
28878

query I rowsort
SELECT ALL + COALESCE ( 71, + 65 * 23 ) col0
----
71

query I rowsort
SELECT - ( - - 6 ) + - - 31 col1
----
25

query I rowsort
SELECT ALL - 23 col0
----
-23

query I rowsort
SELECT DISTINCT - ( 47 ) AS col0
----
-47

query I rowsort
SELECT ALL - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT SUM( DISTINCT - 25 ) * - + SUM( + + 3 )
----
75

skipif mysql # not compatible
query I rowsort label-1040
SELECT SUM ( DISTINCT - 25 ) * - + SUM ( + + 3 )
----
75

query I rowsort
SELECT - 67 * 33 + - 85 col0
----
-2296

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT 93 DIV + - 45 col0
----
-2

skipif mysql # not compatible
query I rowsort label-1042
SELECT 93 / + - 45 col0
----
-2

query I rowsort
SELECT ALL 38 + - 70
----
-32

query II rowsort
SELECT ALL - - 77 AS col0, 66
----
77
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT + CASE 61 WHEN + COALESCE ( 39, + 20 + COUNT( * ), - 23 + + 31 * + AVG ( 33 ) + - 54 * - 35 / + + 73 ) THEN NULL WHEN + + 90 - 95 THEN NULL WHEN + 17 THEN + - 46 + - 21 ELSE NULL END + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + CASE 61 WHEN + COALESCE ( 39, + 20 + COUNT ( * ), - 23 + + 31 * + AVG ( 33 ) + - 54 * - 35 / + + 73 ) THEN NULL WHEN + + 90 - 95 THEN NULL WHEN + 17 THEN + - 46 + - 21 ELSE NULL END + ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - 34 AS col1
----
-34

query I rowsort
SELECT ALL + - 91 + + 84
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1048
SELECT COUNT( * ) * + + 79 * - 34 + COUNT( * ) * 84 + + + 40 DIV - - 34 - + - ( - 23 ) - + + 21
----
-2645

skipif mysql # not compatible
query I rowsort label-1048
SELECT COUNT ( * ) * + + 79 * - 34 + COUNT ( * ) * 84 + + + 40 / - - 34 - + - ( - 23 ) - + + 21
----
-2645

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT + SUM( ALL - + 81 ) + + 29 + 42 + + - SUM( ALL + - 85 )
----
75

skipif mysql # not compatible
query I rowsort label-1049
SELECT + SUM ( ALL - + 81 ) + + 29 + 42 + + - SUM ( ALL + - 85 )
----
75

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

query I rowsort
SELECT - - 41 AS col2
----
41

query I rowsort
SELECT 0 + + 87 * - + 67 AS col1
----
-5829

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT DISTINCT - 23 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT - 23 / - 83 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1054
SELECT ALL COUNT( * ) + - + 5 * - 61 + - CAST( - 17 AS SIGNED ) AS col0, + COUNT( * )
----
323
1

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL COUNT ( * ) + - + 5 * - 61 + - CAST ( - 17 AS INTEGER ) AS col0, + COUNT ( * )
----
323
1

query II rowsort
SELECT - 24 * + 93 - + - 26 AS col0, + 30 AS col0
----
-2206
30

query I rowsort
SELECT ALL 92 col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1057
SELECT DISTINCT - MIN( ALL 6 ) + - - 9 - - AVG ( DISTINCT 10 ) / + ( - + COUNT( * ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT - MIN ( ALL 6 ) + - - 9 - - AVG ( DISTINCT 10 ) / + ( - + COUNT ( * ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1058
SELECT DISTINCT MIN( - 89 ) DIV + CAST( 34 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT MIN ( - 89 ) / + CAST ( 34 AS INTEGER )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1059
SELECT ALL CAST( NULL AS DECIMAL ) + - 96 * + 55 + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL CAST ( NULL AS REAL ) + - 96 * + 55 + 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1060
SELECT ALL 48, ( SUM( DISTINCT 46 ) ) AS col0
----
48
46

skipif mysql # not compatible
query II rowsort label-1060
SELECT ALL 48, ( SUM ( DISTINCT 46 ) ) AS col0
----
48
46

query I rowsort
SELECT - 49 col2
----
-49

query I rowsort
SELECT ALL 55 - 69 * + ( 25 ) * 61 * + 35 + + 50
----
-3682770

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT 27 - + ( - SUM( ( + + 13 ) ) )
----
40

skipif mysql # not compatible
query I rowsort label-1063
SELECT 27 - + ( - SUM ( ( + + 13 ) ) )
----
40

query I rowsort
SELECT DISTINCT 90 - 35 + - 30 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1065
SELECT 79 + CASE - 75 WHEN - MIN( DISTINCT + 12 ) * + + 57 THEN ( - + 7 ) END + - 30 AS col0, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1065
SELECT 79 + CASE - 75 WHEN - MIN ( DISTINCT + 12 ) * + + 57 THEN ( - + 7 ) END + - 30 AS col0, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1066
SELECT 59 * CAST( + ( 71 ) AS SIGNED ) AS col2, + 38 AS col1
----
4189
38

skipif mysql # not compatible
query II rowsort label-1066
SELECT 59 * CAST ( + ( 71 ) AS INTEGER ) AS col2, + 38 AS col1
----
4189
38

query I rowsort
SELECT DISTINCT - 94 AS col0
----
-94

query I rowsort
SELECT DISTINCT - NULLIF ( + - ( - 30 ), + 46 )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1069
SELECT ALL - CASE - 47 WHEN - MAX( ALL + + 10 ) THEN - - 0 + 52 WHEN + ( + CAST( + 38 AS DECIMAL ) ) * + 65 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL - CASE - 47 WHEN - MAX ( ALL + + 10 ) THEN - - 0 + 52 WHEN + ( + CAST ( + 38 AS REAL ) ) * + 65 THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT + 81 col2, + 19 AS col1
----
81
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1071
SELECT ALL - COUNT( * ) col2, - 71 DIV - 28 AS col2
----
-1
2

skipif mysql # not compatible
query II rowsort label-1071
SELECT ALL - COUNT ( * ) col2, - 71 / - 28 AS col2
----
-1
2

query I rowsort
SELECT + 84 col0
----
84

query I rowsort
SELECT 97 * - - 19 AS col2
----
1843

query II rowsort
SELECT + 38 AS col0, - 87 * + ( - + 6 )
----
38
522

query II rowsort
SELECT + 92 AS col0, 95 * - 46 AS col2
----
92
-4370

query II rowsort
SELECT + + 61 AS col1, - 87 * - - 91
----
61
-7917

query I rowsort
SELECT 77 * - 75 * - 30 * - 90 * - 89 AS col1
----
1387732500

query I rowsort
SELECT ALL - - NULLIF ( - - ( 82 ), 58 ) col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT COUNT( * ) - + 62
----
-61

skipif mysql # not compatible
query I rowsort label-1079
SELECT COUNT ( * ) - + 62
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1080
SELECT ALL + 1 * + COUNT( - 11 ) * - 94 + 30 * - 69 AS col0, + 52 + + + 62 + + ( - + COUNT( * ) ) * 76 DIV 54 + - 42 + - 81
----
-2164
-10

skipif mysql # not compatible
query II rowsort label-1080
SELECT ALL + 1 * + COUNT ( - 11 ) * - 94 + 30 * - 69 AS col0, + 52 + + + 62 + + ( - + COUNT ( * ) ) * 76 / 54 + - 42 + - 81
----
-2164
-10

query II rowsort
SELECT ALL - 66 AS col1, 60
----
-66
60

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

query II rowsort
SELECT DISTINCT - - 2 + 53 AS col1, 82
----
55
82

query I rowsort
SELECT DISTINCT - + 49 col2
----
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT + 58 + MAX( ALL NULLIF ( - 7, + 20 ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1086
SELECT + 58 + MAX ( ALL NULLIF ( - 7, + 20 ) ) AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT 79 + 8 DIV - 9 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1087
SELECT 79 + 8 / - 9 AS col1
----
79

query I rowsort
SELECT - 41 * - + 72 AS col0
----
2952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT + CASE - 49 WHEN - 92 * + 19 + - COUNT( * ) * + 48 THEN NULL WHEN + 60 / - - 91 * 60 / - + 24 + - AVG ( - 96 ) + 36 * + 42 * + 92 THEN - 39 - + 33 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1090
SELECT + CASE - 49 WHEN - 92 * + 19 + - COUNT ( * ) * + 48 THEN NULL WHEN + 60 / - - 91 * 60 / - + 24 + - AVG ( - 96 ) + 36 * + 42 * + 92 THEN - 39 - + 33 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 94 * 99 AS col1
----
-9306

query I rowsort
SELECT - 55 * 91 + + 89 AS col0
----
-4916

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL + COUNT( * ) * 14 * - MIN( DISTINCT - 69 ) * - + 13 * 93 + - 68
----
-1167962

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL + COUNT ( * ) * 14 * - MIN ( DISTINCT - 69 ) * - + 13 * 93 + - 68
----
-1167962

query II rowsort
SELECT DISTINCT + 61 col0, 1
----
61
1

query I rowsort
SELECT ALL - 34 * - CASE CASE - 98 WHEN + - 92 * - - 97 + - 95 + + + 37 + - 48 THEN + ( + 22 ) - - 93 ELSE - 28 - - 32 END WHEN + - 59 + - - 56 THEN - 57 * 82 WHEN 55 THEN NULL END + 51 - - 30
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1096
SELECT + 71, - 2 DIV + 63 col2
----
71
0

skipif mysql # not compatible
query II rowsort label-1096
SELECT + 71, - 2 / + 63 col2
----
71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT ALL - COALESCE ( 61, + 12 ) - COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL - COALESCE ( 61, + 12 ) - COUNT ( * ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1098
SELECT 27 + - + COUNT( * ) AS col2, - 66
----
26
-66

skipif mysql # not compatible
query II rowsort label-1098
SELECT 27 + - + COUNT ( * ) AS col2, - 66
----
26
-66

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

skipif mysql # not compatible
query I rowsort label-1099
SELECT - SUM ( DISTINCT 2 )
----
-2

query I rowsort
SELECT 53 * 97 AS col1
----
5141

onlyif mysql # aggregate syntax: 
query II rowsort label-1101
SELECT MIN( DISTINCT 25 ) - - 80 + ( 14 ), - 72 AS col1
----
119
-72

skipif mysql # not compatible
query II rowsort label-1101
SELECT MIN ( DISTINCT 25 ) - - 80 + ( 14 ), - 72 AS col1
----
119
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1102
SELECT DISTINCT + COALESCE ( - 7, - COUNT( * ) DIV + - CASE - 50 WHEN - 12 THEN 27 * + 68 + + 45 END * + COUNT( * ) + - - 11 - - 63 ) - + CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT + COALESCE ( - 7, - COUNT ( * ) / + - CASE - 50 WHEN - 12 THEN 27 * + 68 + + 45 END * + COUNT ( * ) + - - 11 - - 63 ) - + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1103
SELECT DISTINCT 60 * - 17 AS col1, CAST( + AVG ( - 37 ) AS SIGNED ) AS col2
----
-1020
-37

skipif mysql # not compatible
query II rowsort label-1103
SELECT DISTINCT 60 * - 17 AS col1, CAST ( + AVG ( - 37 ) AS INTEGER ) AS col2
----
-1020
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT COUNT( NULLIF ( - + 95, 57 + - COALESCE ( - - 65, - 29 ) * - + 1 ) ) + + - 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1104
SELECT COUNT ( NULLIF ( - + 95, 57 + - COALESCE ( - - 65, - 29 ) * - + 1 ) ) + + - 71 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT + NULLIF ( - - ( + 76 ), COUNT( * ) * - 76 / + - 98 * + ( 2 ) / + NULLIF ( COUNT( * ), MIN( DISTINCT - + 84 ) * + - 48 ) + + 50 + + 39 + + 64 ) * + 28 + - COUNT( * ) AS col1
----
2127

skipif mysql # not compatible
query I rowsort label-1105
SELECT + NULLIF ( - - ( + 76 ), COUNT ( * ) * - 76 / + - 98 * + ( 2 ) / + NULLIF ( COUNT ( * ), MIN ( DISTINCT - + 84 ) * + - 48 ) + + 50 + + 39 + + 64 ) * + 28 + - COUNT ( * ) AS col1
----
2127

query I rowsort
SELECT ALL 7 * - + 2
----
-14

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

query I rowsort
SELECT + 95 - + 68 + 17 AS col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1109
SELECT DISTINCT 0 * + COALESCE ( - COUNT( * ), - 37 ) * CAST( NULL AS SIGNED ) * + 60 - 37 col0, 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-1109
SELECT DISTINCT 0 * + COALESCE ( - COUNT ( * ), - 37 ) * CAST ( NULL AS INTEGER ) * + 60 - 37 col0, 21
----
NULL
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT ALL 59 * - - 72 col1, MAX( ALL 53 ) * - - 63 * - 19
----
4248
-63441

skipif mysql # not compatible
query II rowsort label-1110
SELECT ALL 59 * - - 72 col1, MAX ( ALL 53 ) * - - 63 * - 19
----
4248
-63441

query I rowsort
SELECT CASE 81 WHEN - + 70 * - 64 THEN - ( - + 14 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1112
SELECT + 41 + + COUNT( * ), 76 + + - COUNT( DISTINCT - 67 ) AS col1
----
42
75

skipif mysql # not compatible
query II rowsort label-1112
SELECT + 41 + + COUNT ( * ), 76 + + - COUNT ( DISTINCT - 67 ) AS col1
----
42
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + NULLIF ( 64, + - COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-1113
SELECT + NULLIF ( 64, + - COUNT ( * ) )
----
64

query I rowsort
SELECT ALL + 49 col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1115
SELECT + CAST( NULL AS SIGNED ) / - SUM( + 27 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1115
SELECT + CAST ( NULL AS INTEGER ) / - SUM ( + 27 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT - 23 DIV + 7
----
-3

skipif mysql # not compatible
query I rowsort label-1116
SELECT - 23 / + 7
----
-3

query I rowsort
SELECT ALL + - 15 col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT + - ( 41 ) + CASE - - 95 WHEN + 24 * - 67 + + COUNT( * ) THEN NULL WHEN NULLIF ( 76, 28 ) THEN + 70 * - COUNT( * ) END * - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT + - ( 41 ) + CASE - - 95 WHEN + 24 * - 67 + + COUNT ( * ) THEN NULL WHEN NULLIF ( 76, 28 ) THEN + 70 * - COUNT ( * ) END * - 99 AS col2
----
NULL

query I rowsort
SELECT 29 col2
----
29

query I rowsort
SELECT ALL 82 * + 10
----
820

query I rowsort
SELECT ALL + 4 AS col0
----
4

query I rowsort
SELECT + 7 * + - 46 + 63 + + 54
----
-205

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1124
SELECT DISTINCT + CAST( - 53 AS SIGNED ) * + 61 + + ( + CASE + 49 WHEN - COUNT( * ) * 79 THEN - 26 END ) - + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT + CAST ( - 53 AS INTEGER ) * + 61 + + ( + CASE + 49 WHEN - COUNT ( * ) * 79 THEN - 26 END ) - + - 98 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1125
SELECT ALL - 30 * + ( + ( - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + + 19 + - AVG ( - + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - 30 * + ( + ( - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + + 19 + - AVG ( - + 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT - + CASE COUNT( * ) WHEN + - 44 - + 0 * + 28 + 77 THEN + - 58 + + 51 END + + + 78 / COALESCE ( + - NULLIF ( + + 17, 10 * + 32 * MIN( DISTINCT 24 ) ), + - 8 * - ( 91 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT - + CASE COUNT ( * ) WHEN + - 44 - + 0 * + 28 + 77 THEN + - 58 + + 51 END + + + 78 / COALESCE ( + - NULLIF ( + + 17, 10 * + 32 * MIN ( DISTINCT 24 ) ), + - 8 * - ( 91 ) )
----
NULL

query I rowsort
SELECT + 93 col0
----
93

query I rowsort
SELECT ALL + + 62 AS col0
----
62

query I rowsort
SELECT DISTINCT - 96 * - 68 + + 18
----
6546

query I rowsort
SELECT ALL + - 45 AS col0
----
-45

query II rowsort
SELECT DISTINCT + ( - 32 ) col2, 82 + - + 90
----
-32
-8

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

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

query I rowsort
SELECT DISTINCT 49 col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT + ( + 7 ) DIV 55 * 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1134
SELECT + ( + 7 ) / 55 * 78 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT ALL + + 19 DIV - 90 * - + NULLIF ( - 98, + 95 ) - - 17
----
17

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + + 19 / - 90 * - + NULLIF ( - 98, + 95 ) - - 17
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT - COUNT( * ) * - 19 col2
----
19

skipif mysql # not compatible
query I rowsort label-1137
SELECT - COUNT ( * ) * - 19 col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1138
SELECT - 48, - COUNT( * ) * + COUNT( * ) * - 32 - 34 AS col2
----
-48
-2

skipif mysql # not compatible
query II rowsort label-1138
SELECT - 48, - COUNT ( * ) * + COUNT ( * ) * - 32 - 34 AS col2
----
-48
-2

query I rowsort
SELECT ALL - 70 - - 61 * + 25 * - - 43 AS col2
----
65505

query I rowsort
SELECT ALL + 7 * - + 35 * - 98 * - 35 AS col2
----
-840350

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

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

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

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

query I rowsort
SELECT DISTINCT CASE - 35 WHEN + + 50 THEN 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ALL NULLIF ( CASE + - 83 WHEN + 7 * + + 22 THEN CASE - 47 WHEN - - 40 + 72 / - - COALESCE ( + - 50, + 40 + - 39, + 14 / 42 ) + + 69 THEN + 86 END * - - 10 END, - - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL NULLIF ( CASE + - 83 WHEN + 7 * + + 22 THEN CASE - 47 WHEN - - 40 + 72 / - - COALESCE ( + - 50, + 40 + - 39, + 14 / 42 ) + + 69 THEN + 86 END * - - 10 END, - - COUNT ( * ) ) AS col1
----
NULL

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

query II rowsort
SELECT 52, - COALESCE ( + - 52, - 55 )
----
52
52

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

query I rowsort
SELECT - 25 col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT - CASE + COUNT( * ) WHEN - 41 THEN - - 22 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT - CASE + COUNT ( * ) WHEN - 41 THEN - - 22 END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1150
SELECT + 47 + + 46 DIV - CAST( - 97 AS SIGNED ) * - - 58
----
47

skipif mysql # not compatible
query I rowsort label-1150
SELECT + 47 + + 46 / - CAST ( - 97 AS INTEGER ) * - - 58
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1151
SELECT ALL SUM( ALL - 24 ) + COALESCE ( + 0, 13, + 36 + - COUNT( * ) ) + + COUNT( * ) DIV + 75 col1, 21
----
-24
21

skipif mysql # not compatible
query II rowsort label-1151
SELECT ALL SUM ( ALL - 24 ) + COALESCE ( + 0, 13, + 36 + - COUNT ( * ) ) + + COUNT ( * ) / + 75 col1, 21
----
-24
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT + 24 + + CAST( + SUM( + 42 ) AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-1152
SELECT + 24 + + CAST ( + SUM ( + 42 ) AS INTEGER )
----
66

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1154
SELECT ALL - 30 DIV 90 * + - COUNT( * ) + - 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL - 30 / 90 * + - COUNT ( * ) + - 36 AS col2
----
-36

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1156
SELECT DISTINCT + NULLIF ( + 77, 93 * - COALESCE ( + + 48, - 84 DIV NULLIF ( + - MIN( DISTINCT + - 23 ), CASE - + MAX( - 97 ) WHEN - - 97 DIV - 80 * - 77 THEN - + NULLIF ( 81, + - 58 DIV + CAST( - - 76 AS SIGNED ) + + 0 ) - - + 81 * - 67 DIV NULLIF ( - 12, - 28 ) END ) + + ( + - ( 17 ) ), SUM( DISTINCT ( 34 ) ) * CASE 36 WHEN 94 THEN 58 * + 81 ELSE NULL END + + 86 ) ) DIV 1 + 18 * - 86
----
-1471

skipif mysql # not compatible
query I rowsort label-1156
SELECT DISTINCT + NULLIF ( + 77, 93 * - COALESCE ( + + 48, - 84 / NULLIF ( + - MIN ( DISTINCT + - 23 ), CASE - + MAX ( - 97 ) WHEN - - 97 / - 80 * - 77 THEN - + NULLIF ( 81, + - 58 / + CAST ( - - 76 AS INTEGER ) + + 0 ) - - + 81 * - 67 / NULLIF ( - 12, - 28 ) END ) + + ( + - ( 17 ) ), SUM ( DISTINCT ( 34 ) ) * CASE 36 WHEN 94 THEN 58 * + 81 ELSE NULL END + + 86 ) ) / 1 + 18 * - 86
----
-1471

query I rowsort
SELECT + + 24 * - 74 col0
----
-1776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT ALL + COUNT( * ) * 66 + 87 + - - 71 DIV + 70
----
154

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + COUNT ( * ) * 66 + 87 + - - 71 / + 70
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1159
SELECT ALL 71 * + + COUNT( - - ( + 47 ) ) * + COALESCE ( 57, - 33 ) DIV COUNT( * ) * + - COUNT( * ) + 97 AS col2
----
-3950

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL 71 * + + COUNT ( - - ( + 47 ) ) * + COALESCE ( 57, - 33 ) / COUNT ( * ) * + - COUNT ( * ) + 97 AS col2
----
-3950

query I rowsort
SELECT - - 55 * + - 58 + + 34
----
-3156

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

skipif mysql # not compatible
query I rowsort label-1161
SELECT + + 74 / - - COUNT ( * ) AS col2
----
74

query I rowsort
SELECT + 32 * + 42
----
1344

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT ALL + 19 DIV + + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL + 19 / + + 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL - - COUNT( * ) * - + COUNT( * ) - + 29
----
-30

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL - - COUNT ( * ) * - + COUNT ( * ) - + 29
----
-30

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

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

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

query I rowsort
SELECT + 56 + + 34 * + - 72
----
-2392

query I rowsort
SELECT - + 73 - + 24 + + 15 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT + - COUNT( ALL 32 ) * + 77 * 11
----
-847

skipif mysql # not compatible
query I rowsort label-1171
SELECT + - COUNT ( ALL 32 ) * + 77 * 11
----
-847

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1172
SELECT + 17 AS col2, + ( + + CAST( + - 34 AS SIGNED ) ) + 0 AS col2
----
17
-34

skipif mysql # not compatible
query II rowsort label-1172
SELECT + 17 AS col2, + ( + + CAST ( + - 34 AS INTEGER ) ) + 0 AS col2
----
17
-34

query I rowsort
SELECT DISTINCT 67 * - + ( - + ( - + 99 ) )
----
-6633

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT + 8 + - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1174
SELECT + 8 + - COUNT ( * )
----
7

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

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

query II rowsort
SELECT + 25 * + 43 AS col2, - 74
----
1075
-74

query I rowsort
SELECT 81 + 48
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT 88 DIV - 79 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1178
SELECT 88 / - 79 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 48 + - 86 AS col1
----
-134

query I rowsort
SELECT 71 * - 92 AS col1
----
-6532

query I rowsort
SELECT 7 + - - 30 + 30
----
67

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT 78 / 66 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT 13 DIV 60 * - - 59 col0
----
0

skipif mysql # not compatible
query I rowsort label-1183
SELECT 13 / 60 * - - 59 col0
----
0

query I rowsort
SELECT ALL - 31 + 28 + + 52 col1
----
49

query I rowsort
SELECT ALL 76 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT DISTINCT - COUNT( * ) * - 35 * 7 AS col1
----
245

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT - COUNT ( * ) * - 35 * 7 AS col1
----
245

query I rowsort
SELECT 97 * + 62
----
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT DISTINCT + COALESCE ( - COUNT( * ), - + 43 ) + 54 + - 75 - - 65 * + 50 * 49 AS col1
----
159228

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - + 43 ) + 54 + - 75 - - 65 * + 50 * 49 AS col1
----
159228

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL + MAX( + - 78 ) * 27
----
-2106

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL + MAX ( + - 78 ) * 27
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT ALL + 31 + + CASE 63 WHEN 6 THEN - + 62 - + COUNT( * ) * 43 WHEN - 13 + - - ( - NULLIF ( - COALESCE ( + - 84, - + 97, + 7 / + 0 - - - COALESCE ( + COALESCE ( 2, + - ( - - MAX( + 68 ) ), 24 / + - 66 ), + COUNT( * ) ) + - AVG ( + 36 ) + + - NULLIF ( 94, 69 ) + - 78 * + ( 32 ) ), - 34 + - 41 * COUNT( * ) ) ) + - CASE 57 WHEN + MAX( 26 ) / 64 THEN NULL WHEN NULLIF ( - 70, 6 / 92 + + 79 * 30 ) THEN + 57 END / 51 THEN NULL END * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL + 31 + + CASE 63 WHEN 6 THEN - + 62 - + COUNT ( * ) * 43 WHEN - 13 + - - ( - NULLIF ( - COALESCE ( + - 84, - + 97, + 7 / + 0 - - - COALESCE ( + COALESCE ( 2, + - ( - - MAX ( + 68 ) ), 24 / + - 66 ), + COUNT ( * ) ) + - AVG ( + 36 ) + + - NULLIF ( 94, 69 ) + - 78 * + ( 32 ) ), - 34 + - 41 * COUNT ( * ) ) ) + - CASE 57 WHEN + MAX ( 26 ) / 64 THEN NULL WHEN NULLIF ( - 70, 6 / 92 + + 79 * 30 ) THEN + 57 END / 51 THEN NULL END * 27
----
NULL

query I rowsort
SELECT DISTINCT + + 95 * - 27 - 42 AS col1
----
-2607

query I rowsort
SELECT + 11 + - 31 col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT COUNT( ALL + 94 ) - 1 * 92 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-1193
SELECT COUNT ( ALL + 94 ) - 1 * 92 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1194
SELECT - CAST( NULL AS SIGNED ) / - 4 + ( + 23 ) - - - 9 - - 1 - ( 41 ) - + - CAST( + - MAX( + 49 ) AS SIGNED ) / + 31 + - COUNT( * ) * + SUM( ALL ( - - 69 ) ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT - CAST ( NULL AS INTEGER ) / - 4 + ( + 23 ) - - - 9 - - 1 - ( 41 ) - + - CAST ( + - MAX ( + 49 ) AS INTEGER ) / + 31 + - COUNT ( * ) * + SUM ( ALL ( - - 69 ) ) + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT - 49 * + 96 + - - 89 * + COUNT( * ) AS col0
----
-4615

skipif mysql # not compatible
query I rowsort label-1195
SELECT - 49 * + 96 + - - 89 * + COUNT ( * ) AS col0
----
-4615

query I rowsort
SELECT 62 + + + 96 * + - ( COALESCE ( - - 10, + NULLIF ( + 42, - - 71 / - 3 ) ) ) AS col1
----
-898

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT - 7 * 4 * + COUNT( * ) * 72
----
-2016

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT - 7 * 4 * + COUNT ( * ) * 72
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT + 90 * + 29 * + COUNT( * ) AS col0
----
2610

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT + 90 * + 29 * + COUNT ( * ) AS col0
----
2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1200
SELECT DISTINCT - - MIN( + 99 ) DIV + - 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - - MIN ( + 99 ) / + - 62 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1201
SELECT 0 + + + MIN( ALL - NULLIF ( - + 29, CAST( + 12 AS DECIMAL ) ) ) - - - 49 * - 21 + - - ( - SUM( ALL 89 ) ) * 64 + 50
----
-4588

skipif mysql # not compatible
query I rowsort label-1201
SELECT 0 + + + MIN ( ALL - NULLIF ( - + 29, CAST ( + 12 AS REAL ) ) ) - - - 49 * - 21 + - - ( - SUM ( ALL 89 ) ) * 64 + 50
----
-4588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT DISTINCT - + COUNT( * ) * - MAX( + 98 ) DIV + ( - ( + 53 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - + COUNT ( * ) * - MAX ( + 98 ) / + ( - ( + 53 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL - CASE WHEN NOT 58 NOT IN ( - - COUNT( DISTINCT + + 75 ) + - 84, ( - 70 ) + 42, - 54, + 8, + 72, 47 + + 19 ) THEN + 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - CASE WHEN NOT 58 NOT IN ( - - COUNT ( DISTINCT + + 75 ) + - 84, ( - 70 ) + 42, - 54, + 8, + 72, 47 + + 19 ) THEN + 40 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT ALL - COUNT( * ) * + - 39 / + + CASE + 50 WHEN + 74 / + SUM( ALL + 14 ) * 8 * ( - 70 ) THEN NULL WHEN 83 THEN - - 12 + + COUNT( * ) WHEN 21 * - + MAX( - - 78 ) + - + 22 * 64 * 4 THEN + SUM( + + 48 ) * + 99 * ( 69 ) + - 35 WHEN - + ( - 10 ) THEN NULL ELSE NULL END, 68 AS col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-1205
SELECT ALL - COUNT ( * ) * + - 39 / + + CASE + 50 WHEN + 74 / + SUM ( ALL + 14 ) * 8 * ( - 70 ) THEN NULL WHEN 83 THEN - - 12 + + COUNT ( * ) WHEN 21 * - + MAX ( - - 78 ) + - + 22 * 64 * 4 THEN + SUM ( + + 48 ) * + 99 * ( 69 ) + - 35 WHEN - + ( - 10 ) THEN NULL ELSE NULL END, 68 AS col2
----
NULL
68

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1207
SELECT 10 DIV + + 58, 61 * - - 64 AS col2
----
0
3904

skipif mysql # not compatible
query II rowsort label-1207
SELECT 10 / + + 58, 61 * - - 64 AS col2
----
0
3904

query I rowsort
SELECT 69 + - 47 + - + 95 col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1209
SELECT 0 * - COUNT( * ) AS col0, - 53 * - - CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1209
SELECT 0 * - COUNT ( * ) AS col0, - 53 * - - CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

query I rowsort
SELECT ALL - - 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT DISTINCT + COALESCE ( - 12, + 12, + 42 * + COUNT( - ( 80 ) ) * - 73 ) * NULLIF ( - + 92, + 4 * + 15 + - 33 + - + 44 / + 41 )
----
1104

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT + COALESCE ( - 12, + 12, + 42 * + COUNT ( - ( 80 ) ) * - 73 ) * NULLIF ( - + 92, + 4 * + 15 + - 33 + - + 44 / + 41 )
----
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-1212
SELECT ALL 20 DIV 11 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL 20 / 11 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT DISTINCT 37 DIV 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT 37 / 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT 78 * - 43 * - COUNT( * ) * - - COUNT( * )
----
3354

skipif mysql # not compatible
query I rowsort label-1214
SELECT 78 * - 43 * - COUNT ( * ) * - - COUNT ( * )
----
3354

query I rowsort
SELECT DISTINCT 14 + + + 71 AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1216
SELECT ALL 55 AS col2, - 90 - - - 76 * + 92 - + - MAX( ALL - - 56 ) DIV - + 83 + + 26 DIV - - ( COUNT( * ) ) AS col1
----
55
-7056

skipif mysql # not compatible
query II rowsort label-1216
SELECT ALL 55 AS col2, - 90 - - - 76 * + 92 - + - MAX ( ALL - - 56 ) / - + 83 + + 26 / - - ( COUNT ( * ) ) AS col1
----
55
-7056

onlyif mysql # aggregate syntax: 
query II rowsort label-1217
SELECT 82 col2, 43 + - - COUNT( * ) - 2
----
82
42

skipif mysql # not compatible
query II rowsort label-1217
SELECT 82 col2, 43 + - - COUNT ( * ) - 2
----
82
42

query I rowsort
SELECT ALL 84 + + 93 - + + 66 * 74 + 68 + - + 77
----
-4716

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT COUNT( ALL 99 ) + + + 81
----
82

skipif mysql # not compatible
query I rowsort label-1219
SELECT COUNT ( ALL 99 ) + + + 81
----
82

query II rowsort
SELECT 91, 62 + 86 AS col0
----
91
148

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT 68 * - CASE + 63 WHEN - COUNT( * ) THEN + 12 WHEN - 49 * - 77 THEN NULL END * - 98 * - 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1221
SELECT 68 * - CASE + 63 WHEN - COUNT ( * ) THEN + 12 WHEN - 49 * - 77 THEN NULL END * - 98 * - 63 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1222
SELECT 4 + COALESCE ( + - 60, 73 * - + 7 ) + - CAST( NULL AS SIGNED ) / - + CAST( - 92 AS SIGNED ) / + AVG ( ALL + 93 ) + - - CASE + 79 WHEN 93 THEN + 60 + + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT 4 + COALESCE ( + - 60, 73 * - + 7 ) + - CAST ( NULL AS INTEGER ) / - + CAST ( - 92 AS INTEGER ) / + AVG ( ALL + 93 ) + - - CASE + 79 WHEN 93 THEN + 60 + + - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 78 + - - 42
----
120

query I rowsort
SELECT 16 * + 5
----
80

query I rowsort
SELECT ALL 13 + - - 8 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL 24 * - - SUM( 44 )
----
1056

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL 24 * - - SUM ( 44 )
----
1056

query I rowsort
SELECT ALL 30 + - - 91
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT 94 + - - COUNT( + 56 ) * - - 14
----
108

skipif mysql # not compatible
query I rowsort label-1228
SELECT 94 + - - COUNT ( + 56 ) * - - 14
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1229
SELECT DISTINCT 42 + - 57 + - COALESCE ( ( + + 64 ), + CASE + 96 WHEN SUM( + 71 ) THEN + 75 ELSE NULL END, + ( - + CAST( NULL AS SIGNED ) ) - + 81 ) + NULLIF ( + 89, 45 ) * - COUNT( * )
----
-168

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT 42 + - 57 + - COALESCE ( ( + + 64 ), + CASE + 96 WHEN SUM ( + 71 ) THEN + 75 ELSE NULL END, + ( - + CAST ( NULL AS INTEGER ) ) - + 81 ) + NULLIF ( + 89, 45 ) * - COUNT ( * )
----
-168

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

skipif mysql # not compatible
query I rowsort label-1230
SELECT CAST ( NULL AS INTEGER ) + 30 * - + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1231
SELECT DISTINCT + 63 + - COUNT( * ) DIV - COUNT( * ) + + 52 + - ( - - 94 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT + 63 + - COUNT ( * ) / - COUNT ( * ) + + 52 + - ( - - 94 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1232
SELECT - COUNT( * ), - 90 * - 53 AS col1
----
-1
4770

skipif mysql # not compatible
query II rowsort label-1232
SELECT - COUNT ( * ), - 90 * - 53 AS col1
----
-1
4770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1233
SELECT ALL - 99 + + - COUNT( * ) + - COUNT( * ) + - COUNT( * ) + - CAST( - + MIN( ALL + 70 ) AS SIGNED ) DIV - COUNT( * )
----
-172

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL - 99 + + - COUNT ( * ) + - COUNT ( * ) + - COUNT ( * ) + - CAST ( - + MIN ( ALL + 70 ) AS INTEGER ) / - COUNT ( * )
----
-172

query I rowsort
SELECT DISTINCT 29 - + + 27 col0
----
2

query II rowsort
SELECT 66 * - 50 * + - 22, + 99 col1
----
72600
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT - MAX( - 36 ) + - + 86 * - SUM( - 86 ) AS col2
----
-7360

skipif mysql # not compatible
query I rowsort label-1236
SELECT - MAX ( - 36 ) + - + 86 * - SUM ( - 86 ) AS col2
----
-7360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1237
SELECT ALL + 69 * + 51 * + + 0, + 39 + + 4 + - - COALESCE ( - - 53, + 10 + NULLIF ( - COUNT( * ), + - CAST( NULL AS SIGNED ) * - - ( + - 95 ) + + 67 ) ) * - CASE + 69 WHEN COUNT( * ) - - - 6 THEN - + 29 * + 68 + + - 23 + + COUNT( * ) WHEN + ( - NULLIF ( - - 97, - 39 ) ) THEN NULL END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1237
SELECT ALL + 69 * + 51 * + + 0, + 39 + + 4 + - - COALESCE ( - - 53, + 10 + NULLIF ( - COUNT ( * ), + - CAST ( NULL AS INTEGER ) * - - ( + - 95 ) + + 67 ) ) * - CASE + 69 WHEN COUNT ( * ) - - - 6 THEN - + 29 * + 68 + + - 23 + + COUNT ( * ) WHEN + ( - NULLIF ( - - 97, - 39 ) ) THEN NULL END AS col1
----
0
NULL

query I rowsort
SELECT 46 * 20 AS col0
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL + 52 * 84 * SUM( - 93 ) AS col2
----
-406224

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + 52 * 84 * SUM ( - 93 ) AS col2
----
-406224

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL + 41 - 40 + - COUNT( * ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + 41 - 40 + - COUNT ( * ) * COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT - + 75 * + 92
----
-6900

query I rowsort
SELECT + - 0 col0
----
0

query I rowsort
SELECT DISTINCT - - 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - COUNT( * ) * NULLIF ( + 88, - - 47 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - COUNT ( * ) * NULLIF ( + 88, - - 47 ) AS col1
----
-88

query I rowsort
SELECT - 25 - + + COALESCE ( + 26, - - 39 )
----
-51

query I rowsort
SELECT + - 46 AS col0
----
-46

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

query I rowsort
SELECT DISTINCT - + 73 col0
----
-73

query I rowsort
SELECT ALL - - 82 AS col2
----
82

query I rowsort
SELECT DISTINCT - + 0
----
0

query II rowsort
SELECT ALL 37 * - 5 + + NULLIF ( + 46, - 40 ), - 57 * 64 AS col2
----
-139
-3648

query I rowsort
SELECT + 74 - + + 7 + + 50
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1253
SELECT ALL - 23 * - + MIN( DISTINCT + 18 ) * + 37 + 93 DIV + 60 + - + 37 AS col1
----
15282

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL - 23 * - + MIN ( DISTINCT + 18 ) * + 37 + 93 / + 60 + - + 37 AS col1
----
15282

query I rowsort
SELECT ALL 96 * - 36
----
-3456

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

skipif mysql # not compatible
query I rowsort label-1255
SELECT - COUNT ( * ) / - 60 * + 78 AS col2
----
0

query I rowsort
SELECT ALL + 52 col1
----
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL - 3 + 50 - - 41 + + + 68 * + MAX( - 80 ) AS col2
----
-5352

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - 3 + 50 - - 41 + + + 68 * + MAX ( - 80 ) AS col2
----
-5352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1259
SELECT ALL + 48 + 55 + - 38 DIV 26 + SUM( + 0 ) * + 46
----
102

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL + 48 + 55 + - 38 / 26 + SUM ( + 0 ) * + 46
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-1260
SELECT + COUNT( DISTINCT + COALESCE ( - 94, - 42 ) ), 33 AS col2
----
1
33

skipif mysql # not compatible
query II rowsort label-1260
SELECT + COUNT ( DISTINCT + COALESCE ( - 94, - 42 ) ), 33 AS col2
----
1
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1261
SELECT 48 * 17 * - - 78 * + - COUNT( + 87 ) * + 38 + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1261
SELECT 48 * 17 * - - 78 * + - COUNT ( + 87 ) * + 38 + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 31 - + 18
----
13

query II rowsort
SELECT ALL + 42, 18 AS col0
----
42
18

query II rowsort
SELECT + 10 AS col1, 95 AS col0
----
10
95

query I rowsort
SELECT + 7 * + 19 AS col0
----
133

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

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

query I rowsort
SELECT + 95 + + 24
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1268
SELECT + 71 + 5 col0, + 57 DIV - COUNT( * ) col1
----
76
-57

skipif mysql # not compatible
query II rowsort label-1268
SELECT + 71 + 5 col0, + 57 / - COUNT ( * ) col1
----
76
-57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT ALL ( - + 59 ) DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL ( - + 59 ) / + - 80
----
0

query II rowsort
SELECT ALL 30 AS col2, - ( + 86 )
----
30
-86

query I rowsort
SELECT - NULLIF ( + 7, + 1 )
----
-7

query I rowsort
SELECT 49 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1274
SELECT - CASE + MAX( DISTINCT - 18 ) WHEN + + 62 + - - 65 THEN + + 69 + - 46 + - 69 WHEN + 74 + - NULLIF ( + + NULLIF ( - 45, - SUM( CAST( 68 AS SIGNED ) ) ), - + ( + 5 ) - + 77 + + CASE - 76 WHEN 94 + + + 64 * - 62 THEN NULL ELSE - - 35 END * 76 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1274
SELECT - CASE + MAX ( DISTINCT - 18 ) WHEN + + 62 + - - 65 THEN + + 69 + - 46 + - 69 WHEN + 74 + - NULLIF ( + + NULLIF ( - 45, - SUM ( CAST ( 68 AS INTEGER ) ) ), - + ( + 5 ) - + 77 + + CASE - 76 WHEN 94 + + + 64 * - 62 THEN NULL ELSE - - 35 END * 76 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1275
SELECT DISTINCT ( CAST( + 25 AS SIGNED ) ) - - 38
----
63

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT ( CAST ( + 25 AS INTEGER ) ) - - 38
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT DISTINCT CAST( - - 82 AS SIGNED ) * + + ( + 80 ) * 47
----
308320

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT CAST ( - - 82 AS INTEGER ) * + + ( + 80 ) * 47
----
308320

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT ALL COUNT( * ), - 27 * - 0 * + 33 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-1277
SELECT ALL COUNT ( * ), - 27 * - 0 * + 33 AS col0
----
1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1278
SELECT DISTINCT 99 - - + MAX( ALL CAST( 84 AS SIGNED ) ) * - - 59 * + - 33
----
-163449

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT 99 - - + MAX ( ALL CAST ( 84 AS INTEGER ) ) * - - 59 * + - 33
----
-163449

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

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

query I rowsort
SELECT ALL - 94 AS col2
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1281
SELECT + + 57 DIV - COUNT( - 33 ) + 45 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-1281
SELECT + + 57 / - COUNT ( - 33 ) + 45 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT - CASE + + CAST( - 31 AS SIGNED ) WHEN - 85 / - 31 + - 78 + 60 * + 7 THEN + 17 ELSE - COALESCE ( + 69, + NULLIF ( + ( - 91 ), + + 20 ) * - - 58 * 38 + - 96, 65 ) END * - 76 AS col2
----
-5244

skipif mysql # not compatible
query I rowsort label-1282
SELECT - CASE + + CAST ( - 31 AS INTEGER ) WHEN - 85 / - 31 + - 78 + 60 * + 7 THEN + 17 ELSE - COALESCE ( + 69, + NULLIF ( + ( - 91 ), + + 20 ) * - - 58 * 38 + - 96, 65 ) END * - 76 AS col2
----
-5244

query I rowsort
SELECT + ( - 13 ) + - 62 - + 85 + - - 54
----
-106

query I rowsort
SELECT - 79 - + - 3
----
-76

query I rowsort
SELECT + 23 + + 0 * - 29 col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1286
SELECT + CASE + - 57 WHEN + 49 + 9 * + 77 THEN NULL WHEN CAST( NULL AS SIGNED ) * + COUNT( * ) - + 5 THEN NULL ELSE - 2 END DIV - COUNT( * ) - ( + 82 )
----
-80

skipif mysql # not compatible
query I rowsort label-1286
SELECT + CASE + - 57 WHEN + 49 + 9 * + 77 THEN NULL WHEN CAST ( NULL AS INTEGER ) * + COUNT ( * ) - + 5 THEN NULL ELSE - 2 END / - COUNT ( * ) - ( + 82 )
----
-80

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT SUM ( + 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1288
SELECT + ( + CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + 39 THEN + - COALESCE ( 27, - + 44 ) * + 84 WHEN 35 THEN NULL ELSE NULL END ) * + CAST( 60 AS DECIMAL ) + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 67 / COUNT( * ) / + 98 * + COUNT( * ) * + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT + ( + CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + 39 THEN + - COALESCE ( 27, - + 44 ) * + 84 WHEN 35 THEN NULL ELSE NULL END ) * + CAST ( 60 AS REAL ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 67 / COUNT ( * ) / + 98 * + COUNT ( * ) * + - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT - - 85 * - - 95 + - COUNT( - ( - 14 ) )
----
8074

skipif mysql # not compatible
query I rowsort label-1289
SELECT - - 85 * - - 95 + - COUNT ( - ( - 14 ) )
----
8074

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT + - ( 58 ) * + + 96 + + 28 DIV 90
----
-5568

skipif mysql # not compatible
query I rowsort label-1290
SELECT + - ( 58 ) * + + 96 + + 28 / 90
----
-5568

query II rowsort
SELECT + 50 * - 30 AS col2, + 82 AS col2
----
-1500
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1292
SELECT ALL + 76 * - CAST( + - CASE 40 WHEN 19 / - + 36 + - 96 + + 33 + + MAX( ALL + 60 ) + COUNT( * ) + 73 * + - COALESCE ( 42, - - 83 ) / - COUNT( 57 ) THEN - 44 * + 51 WHEN - CAST( NULL AS SIGNED ) THEN NULL END AS SIGNED ) * + ( COUNT( * ) ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + 76 * - CAST ( + - CASE 40 WHEN 19 / - + 36 + - 96 + + 33 + + MAX ( ALL + 60 ) + COUNT ( * ) + 73 * + - COALESCE ( 42, - - 83 ) / - COUNT ( 57 ) THEN - 44 * + 51 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END AS INTEGER ) * + ( COUNT ( * ) ) + 40
----
NULL

query I rowsort
SELECT - 89 * + 99 + - 90 + 8 + + 3 + + NULLIF ( 7, 47 + 15 ) + 24 + 59 * + 57 * 75 AS col0
----
243366

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

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

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

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL - COUNT ( * ) / + 98
----
0

query II rowsort
SELECT DISTINCT + + 46 AS col0, NULLIF ( 89, 77 )
----
46
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL - 61 * - 92 + 33 * COUNT( * )
----
5645

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - 61 * - 92 + 33 * COUNT ( * )
----
5645

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1298
SELECT + 42 * - CAST( + 93 AS SIGNED ) + - - 46 + 1, - 6 AS col1
----
-3859
-6

skipif mysql # not compatible
query II rowsort label-1298
SELECT + 42 * - CAST ( + 93 AS INTEGER ) + - - 46 + 1, - 6 AS col1
----
-3859
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT - COUNT( * ) * - NULLIF ( ( - 70 ), 86 * - 43 )
----
-70

skipif mysql # not compatible
query I rowsort label-1300
SELECT - COUNT ( * ) * - NULLIF ( ( - 70 ), 86 * - 43 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1301
SELECT COALESCE ( 22, + + 69 + - + COUNT( - 81 ) + - COUNT( * ) * + 58 * 62 + - 32 + COALESCE ( 55, + 37 ) * - 4 * 32 * CAST( NULL AS SIGNED ) * - + 83 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1301
SELECT COALESCE ( 22, + + 69 + - + COUNT ( - 81 ) + - COUNT ( * ) * + 58 * 62 + - 32 + COALESCE ( 55, + 37 ) * - 4 * 32 * CAST ( NULL AS INTEGER ) * - + 83 ) AS col1
----
22

query I rowsort
SELECT NULLIF ( + 96, - 49 * - + 32 * + 42 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - ( - 72 ) * - 75 * - - 52 * COALESCE ( - + 59, - 88 * + - 61 + - - 59 + - - COUNT( * ) )
----
16567200

skipif mysql # not compatible
query I rowsort label-1303
SELECT - ( - 72 ) * - 75 * - - 52 * COALESCE ( - + 59, - 88 * + - 61 + - - 59 + - - COUNT ( * ) )
----
16567200

query I rowsort
SELECT DISTINCT + 36 col1
----
36

query I rowsort
SELECT DISTINCT ( + 67 ) * 25 AS col1
----
1675

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

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

query I rowsort
SELECT ALL + 43 * + 81 - + + 8 AS col1
----
3475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT - ( + 41 ) - + - CAST( - + 63 AS SIGNED ) + - + COUNT( * ) * + 29
----
-133

skipif mysql # not compatible
query I rowsort label-1308
SELECT - ( + 41 ) - + - CAST ( - + 63 AS INTEGER ) + - + COUNT ( * ) * + 29
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT COUNT( * ) * 85 * - 9 - + 61 AS col2
----
-826

skipif mysql # not compatible
query I rowsort label-1309
SELECT COUNT ( * ) * 85 * - 9 - + 61 AS col2
----
-826

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + 59 + - CASE - 11 WHEN + 3 THEN 56 * + + NULLIF ( + 0, + - 89 * - 14 ) + 44 - - 85 * - SUM( + 34 ) + + - 7 + 79 + + + ( - 27 ) WHEN - COALESCE ( 94, + AVG ( + 99 ) ) THEN 80 ELSE ( - 73 ) * - - 20 END * + CASE - 45 WHEN + 77 * 96 THEN NULL ELSE + 22 END - 25 + - COUNT( * )
----
32153

skipif mysql # not compatible
query I rowsort label-1311
SELECT + 59 + - CASE - 11 WHEN + 3 THEN 56 * + + NULLIF ( + 0, + - 89 * - 14 ) + 44 - - 85 * - SUM ( + 34 ) + + - 7 + 79 + + + ( - 27 ) WHEN - COALESCE ( 94, + AVG ( + 99 ) ) THEN 80 ELSE ( - 73 ) * - - 20 END * + CASE - 45 WHEN + 77 * 96 THEN NULL ELSE + 22 END - 25 + - COUNT ( * )
----
32153

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1312
SELECT + COUNT( * ) DIV COUNT( * ) AS col1, + 45 AS col2
----
1
45

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

query I rowsort
SELECT ALL + 82 * + 71
----
5822

query I rowsort
SELECT - 29 * + 40 * - + 44
----
51040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1315
SELECT + COUNT( * ) + - 58 + - 70 + - ( - 54 ) * + + CAST( + 99 AS SIGNED ) - - NULLIF ( MIN( + 58 ), 21 ) * + 73 - + 81
----
9372

skipif mysql # not compatible
query I rowsort label-1315
SELECT + COUNT ( * ) + - 58 + - 70 + - ( - 54 ) * + + CAST ( + 99 AS INTEGER ) - - NULLIF ( MIN ( + 58 ), 21 ) * + 73 - + 81
----
9372

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

skipif mysql # not compatible
query I rowsort label-1316
SELECT MAX ( DISTINCT 45 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1317
SELECT DISTINCT + COUNT( * ) * 42 * + COUNT( * ) * COUNT( * ) DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT + COUNT ( * ) * 42 * + COUNT ( * ) * COUNT ( * ) / 50
----
0

query I rowsort
SELECT - 13 + - 62 - - 30 * 74
----
2145

query I rowsort
SELECT - + 47 - + - NULLIF ( + 65, + + 14 )
----
18

query I rowsort
SELECT + 27 + + 49 + 85 + + 84 * + 65
----
5621

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1321
SELECT DISTINCT 66 DIV 76, - 99 * - + ( + + CAST( NULL AS SIGNED ) ) - + 7 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1321
SELECT DISTINCT 66 / 76, - 99 * - + ( + + CAST ( NULL AS INTEGER ) ) - + 7 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1322
SELECT DISTINCT CASE - + ( - 31 ) WHEN - COUNT( * ) THEN + 62 ELSE NULL END AS col2, 92 * 25
----
NULL
2300

skipif mysql # not compatible
query II rowsort label-1322
SELECT DISTINCT CASE - + ( - 31 ) WHEN - COUNT ( * ) THEN + 62 ELSE NULL END AS col2, 92 * 25
----
NULL
2300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1323
SELECT DISTINCT - 92 DIV + 53 + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - 92 / + 53 + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1324
SELECT DISTINCT - ( COALESCE ( + 39, 21 * - 55, + + 82 * + 93, NULLIF ( + 87, + 61 + + SUM( - - 13 ) + CAST( + - 0 AS SIGNED ) + + 94 ) * + 30 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT - ( COALESCE ( + 39, 21 * - 55, + + 82 * + 93, NULLIF ( + 87, + 61 + + SUM ( - - 13 ) + CAST ( + - 0 AS INTEGER ) + + 94 ) * + 30 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL CASE + 84 WHEN + ( COUNT( * ) ) - - - 52 THEN + + 64 ELSE - 21 END
----
-21

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL CASE + 84 WHEN + ( COUNT ( * ) ) - - - 52 THEN + + 64 ELSE - 21 END
----
-21

query I rowsort
SELECT - + 95 * + + 40 AS col1
----
-3800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT DISTINCT 55 + + + SUM( + ( CAST( 52 AS SIGNED ) ) ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT 55 + + + SUM ( + ( CAST ( 52 AS INTEGER ) ) ) AS col0
----
107

query II rowsort
SELECT ALL 73 + 38 AS col2, - 42 col1
----
111
-42

query II rowsort
SELECT 8 * - 48, - 94 AS col1
----
-384
-94

query I rowsort
SELECT ALL - - 96
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1331
SELECT - 70 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-1331
SELECT - 70 / + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT ALL 40 + + 7 * - - COUNT( * ) * - 32 AS col1
----
-184

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL 40 + + 7 * - - COUNT ( * ) * - 32 AS col1
----
-184

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

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

query I rowsort
SELECT ALL - 33 col0
----
-33

query I rowsort
SELECT 7 * 64 col0
----
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT CAST( 85 AS SIGNED ) * + ( 11 ) AS col1
----
935

skipif mysql # not compatible
query I rowsort label-1336
SELECT CAST ( 85 AS INTEGER ) * + ( 11 ) AS col1
----
935

query I rowsort
SELECT ALL + 49 + - ( + ( - ( + 15 ) ) ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT 97 - 30 + + COUNT( * ) * - 69 * + COUNT( * ) * - 38
----
2689

skipif mysql # not compatible
query I rowsort label-1338
SELECT 97 - 30 + + COUNT ( * ) * - 69 * + COUNT ( * ) * - 38
----
2689

query I rowsort
SELECT ALL - 76 * - 60
----
4560

query I rowsort
SELECT DISTINCT 19 * 21 * 88 AS col2
----
35112

query I rowsort
SELECT 87 + - 31
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT 22 DIV - + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1342
SELECT 22 / - + 24 AS col0
----
0

query I rowsort
SELECT ( 88 ) + - - 42 + + 41 - - 74 * + - 21 - - 25 * - + 59 * - 50 * - - 41 AS col1
----
3022367

query I rowsort
SELECT 32 - + 46 AS col0
----
-14

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

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

query II rowsort
SELECT 93 AS col2, - ( + + 87 )
----
93
-87

query I rowsort
SELECT 23 * - - 41 + + + 60
----
1003

query I rowsort
SELECT 41 - - 32
----
73

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1349
SELECT DISTINCT 33 AS col1, + CAST( - - 13 AS SIGNED ) + COALESCE ( + 53, + 33 DIV + - 21, 68 )
----
33
66

skipif mysql # not compatible
query II rowsort label-1349
SELECT DISTINCT 33 AS col1, + CAST ( - - 13 AS INTEGER ) + COALESCE ( + 53, + 33 / + - 21, 68 )
----
33
66

query I rowsort
SELECT ALL 85 AS col0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT 31 + - + COUNT( * ) DIV - COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1351
SELECT 31 + - + COUNT ( * ) / - COUNT ( * ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1352
SELECT CAST( NULL AS SIGNED ), + 28 * + 88 + + 85 AS col2
----
NULL
2549

skipif mysql # not compatible
query II rowsort label-1352
SELECT CAST ( NULL AS INTEGER ), + 28 * + 88 + + 85 AS col2
----
NULL
2549

query II rowsort
SELECT ALL 90 AS col2, 84
----
90
84

query I rowsort
SELECT ALL + 90 * 55 - - 87 AS col1
----
5037

query I rowsort
SELECT 75 * - 44
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT ALL + COUNT( + - 46 ) * - 45 * + 29 + + 88
----
-1217

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL + COUNT ( + - 46 ) * - 45 * + 29 + + 88
----
-1217

query I rowsort
SELECT DISTINCT + - 69 * - 80
----
5520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1358
SELECT + 78 + - MIN( + 74 ) + 78 DIV + + 71 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1358
SELECT + 78 + - MIN ( + 74 ) + 78 / + + 71 AS col0
----
5

query II rowsort
SELECT DISTINCT - 95, + 32 * ( + + 18 ) AS col1
----
-95
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT ALL - 30 * - CAST( - 52 AS SIGNED ) + - 18 AS col1
----
-1578

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL - 30 * - CAST ( - 52 AS INTEGER ) + - 18 AS col1
----
-1578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1361
SELECT - NULLIF ( NULLIF ( - 20, - COALESCE ( + - 43, 23, + + 63 * + 49, + 52 * 27 * - 64 / + 39 * + + CAST( - + 65 AS SIGNED ) - + 54 ) ), - + 97 + - 97 - - 24 * - 63 )
----
20

skipif mysql # not compatible
query I rowsort label-1361
SELECT - NULLIF ( NULLIF ( - 20, - COALESCE ( + - 43, 23, + + 63 * + 49, + 52 * 27 * - 64 / + 39 * + + CAST ( - + 65 AS INTEGER ) - + 54 ) ), - + 97 + - 97 - - 24 * - 63 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL + COUNT( * ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL + COUNT ( * ) + 28
----
29

query I rowsort
SELECT 31 - - - COALESCE ( + + 33, + 64 ) col2
----
-2

query I rowsort
SELECT - + 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT ALL - + ( COUNT( * ) ) * + 46 * + 8 * + 44 AS col0
----
-16192

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL - + ( COUNT ( * ) ) * + 46 * + 8 * + 44 AS col0
----
-16192

query I rowsort
SELECT DISTINCT - 36 + - 83 * 7 AS col2
----
-617

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT ALL 85 DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL 85 / - 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT DISTINCT MIN( ALL - 55 ) + - + 29 + + ( - COUNT( * ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT MIN ( ALL - 55 ) + - + 29 + + ( - COUNT ( * ) ) AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1369
SELECT DISTINCT - 86 DIV COUNT( * ) + - 43 AS col1, 66 * - - CAST( NULL AS DECIMAL ) AS col0
----
-129
NULL

skipif mysql # not compatible
query II rowsort label-1369
SELECT DISTINCT - 86 / COUNT ( * ) + - 43 AS col1, 66 * - - CAST ( NULL AS REAL ) AS col0
----
-129
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1370
SELECT NULLIF ( - 90, - - COALESCE ( 6, - COUNT( * ), - + COUNT( * ) ) * + - 67 ) + - - 4 col1, 87 AS col0
----
-86
87

skipif mysql # not compatible
query II rowsort label-1370
SELECT NULLIF ( - 90, - - COALESCE ( 6, - COUNT ( * ), - + COUNT ( * ) ) * + - 67 ) + - - 4 col1, 87 AS col0
----
-86
87

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

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

query II rowsort
SELECT 65 col1, + 99 AS col2
----
65
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT CAST( NULL AS SIGNED ) / + NULLIF ( 43, + 66 * + 36 ) + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT CAST ( NULL AS INTEGER ) / + NULLIF ( 43, + 66 * + 36 ) + + 52
----
NULL

query I rowsort
SELECT DISTINCT - 49 AS col1
----
-49

query I rowsort
SELECT + 34 * - + 24 + 18
----
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL - COALESCE ( + MAX( + 76 ), + + 59 )
----
-76

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL - COALESCE ( + MAX ( + 76 ), + + 59 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT + 40 * + MAX( ALL + 90 ) * - 56 + 78 + - 17 * - NULLIF ( + CAST( NULL AS SIGNED ), + NULLIF ( + 15, + + MIN( 51 ) + - 84 * + CASE - CAST( - - MAX( - 97 ) AS SIGNED ) WHEN 57 THEN + ( + + 80 ) WHEN 49 THEN + - 4 - - - 51 * COUNT( * ) * - 11 / CASE - 10 WHEN - - 96 THEN NULL WHEN - - CAST( + 34 AS SIGNED ) THEN NULL ELSE 79 * - - 11 END END ) + - COUNT( * ) ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT + 40 * + MAX ( ALL + 90 ) * - 56 + 78 + - 17 * - NULLIF ( + CAST ( NULL AS INTEGER ), + NULLIF ( + 15, + + MIN ( 51 ) + - 84 * + CASE - CAST ( - - MAX ( - 97 ) AS INTEGER ) WHEN 57 THEN + ( + + 80 ) WHEN 49 THEN + - 4 - - - 51 * COUNT ( * ) * - 11 / CASE - 10 WHEN - - 96 THEN NULL WHEN - - CAST ( + 34 AS INTEGER ) THEN NULL ELSE 79 * - - 11 END END ) + - COUNT ( * ) ) * - 17
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1380
SELECT NULLIF ( - 98, + 5 + + COALESCE ( COUNT( DISTINCT - 61 ), + - 95 + CAST( NULL AS SIGNED ) DIV ( - 26 ) + - 88 ) + - 57 + 56 ) + + - COUNT( + - 69 ) + + CAST( + + 20 AS SIGNED ) DIV 98 * + 21 - - 56 AS col0, - 13 AS col0
----
-43
-13

skipif mysql # not compatible
query II rowsort label-1380
SELECT NULLIF ( - 98, + 5 + + COALESCE ( COUNT ( DISTINCT - 61 ), + - 95 + CAST ( NULL AS INTEGER ) / ( - 26 ) + - 88 ) + - 57 + 56 ) + + - COUNT ( + - 69 ) + + CAST ( + + 20 AS INTEGER ) / 98 * + 21 - - 56 AS col0, - 13 AS col0
----
-43
-13

query I rowsort
SELECT ALL - 51 AS col1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1382
SELECT DISTINCT 13 - + 70 - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * ) / + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT 13 - + 70 - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * ) / + + 17
----
NULL

query I rowsort
SELECT ALL - 58 AS col2
----
-58

query II rowsort
SELECT 3 * - 25, 85 + 59 AS col1
----
-75
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1385
SELECT - 2 * + COUNT( * ) * + COUNT( * ) + - 40 * + 5 - + + NULLIF ( - 2, - COUNT( * ) ) DIV - ( - 8 ) col1
----
-202

skipif mysql # not compatible
query I rowsort label-1385
SELECT - 2 * + COUNT ( * ) * + COUNT ( * ) + - 40 * + 5 - + + NULLIF ( - 2, - COUNT ( * ) ) / - ( - 8 ) col1
----
-202

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

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT - MIN ( 91 )
----
-91

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL 0 / - - COUNT ( * ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT + MAX( DISTINCT + + 37 ) col2, 69 AS col0
----
37
69

skipif mysql # not compatible
query II rowsort label-1389
SELECT + MAX ( DISTINCT + + 37 ) col2, 69 AS col0
----
37
69

query I rowsort
SELECT - 76 * - 42 * - 95 + + 85 + - 60 AS col1
----
-303215

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL MIN( DISTINCT - 15 ) * + + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL MIN ( DISTINCT - 15 ) * + + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT + 53 - + ( + 57 ) * - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-1392
SELECT + 53 - + ( + 57 ) * - COUNT ( * )
----
110

query II rowsort
SELECT ALL 92 * 87 AS col2, 75
----
8004
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1394
SELECT + CASE + 83 WHEN COUNT( + - 57 ) THEN - 97 + COALESCE ( - 36, - 62, - ( 56 ) ) * 81 + 33 END * - - 22 + - 20 - + - CASE 62 WHEN - + 23 THEN - + CAST( COUNT( * ) AS SIGNED ) * - 87 END + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT + CASE + 83 WHEN COUNT ( + - 57 ) THEN - 97 + COALESCE ( - 36, - 62, - ( 56 ) ) * 81 + 33 END * - - 22 + - 20 - + - CASE 62 WHEN - + 23 THEN - + CAST ( COUNT ( * ) AS INTEGER ) * - 87 END + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT - CASE - 64 WHEN - 61 THEN - 14 + 61 * + 69 WHEN + 78 * + NULLIF ( + 46, + NULLIF ( + + 77, + - 41 * 5 ) * - 52 * COUNT( * ) + - 48 + - 2 + - NULLIF ( - 1, - 72 * - 99 ) + - - 99 / - - 57 ) * - - 44 + - - COUNT( * ) + 59 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT - CASE - 64 WHEN - 61 THEN - 14 + 61 * + 69 WHEN + 78 * + NULLIF ( + 46, + NULLIF ( + + 77, + - 41 * 5 ) * - 52 * COUNT ( * ) + - 48 + - 2 + - NULLIF ( - 1, - 72 * - 99 ) + - - 99 / - - 57 ) * - - 44 + - - COUNT ( * ) + 59 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 25 col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1397
SELECT ALL + + 4 + 82 + + 62 + - 72 + + 90 * 71 / + NULLIF ( + CASE 75 WHEN 59 * - 70 * + 21 - - - 14 THEN NULL ELSE + CAST( NULL AS SIGNED ) END, + 79 + - 92 ) * 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + + 4 + 82 + + 62 + - 72 + + 90 * 71 / + NULLIF ( + CASE 75 WHEN 59 * - 70 * + 21 - - - 14 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END, + 79 + - 92 ) * 63 AS col1
----
NULL

query I rowsort
SELECT ALL - 59 col2
----
-59

query I rowsort
SELECT DISTINCT 77 + - ( - 50 )
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT - COUNT( * ) - 43 AS col1, - 35 * 51 AS col1
----
-44
-1785

skipif mysql # not compatible
query II rowsort label-1400
SELECT - COUNT ( * ) - 43 AS col1, - 35 * 51 AS col1
----
-44
-1785

query I rowsort
SELECT ALL - - 91 * 89 * - 19
----
-153881

query I rowsort
SELECT - + 12 * - - 13
----
-156

query II rowsort
SELECT DISTINCT - 85 * - 74 * - 51 + 59 AS col0, - 65 AS col0
----
-320731
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT + + AVG ( DISTINCT - CASE + - NULLIF ( + + 25, 69 ) WHEN 7 THEN 52 + - 98 END ) * - COUNT( DISTINCT + + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1404
SELECT + + AVG ( DISTINCT - CASE + - NULLIF ( + + 25, 69 ) WHEN 7 THEN 52 + - 98 END ) * - COUNT ( DISTINCT + + 75 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 57 * + - 54 * + 47 * + - 84 + - 98
----
-12152042

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1406
SELECT - 61 + 18 + + - 75 DIV COUNT( ALL + 84 ) * + - 45 - 69, 23 AS col1
----
3263
23

skipif mysql # not compatible
query II rowsort label-1406
SELECT - 61 + 18 + + - 75 / COUNT ( ALL + 84 ) * + - 45 - 69, 23 AS col1
----
3263
23

query I rowsort
SELECT ALL 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-1408
SELECT ALL + - COUNT( + 22 ) - - - ( + 67 ) AS col1, + 81 AS col2
----
-68
81

skipif mysql # not compatible
query II rowsort label-1408
SELECT ALL + - COUNT ( + 22 ) - - - ( + 67 ) AS col1, + 81 AS col2
----
-68
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1409
SELECT - COUNT( * ) DIV + COUNT( DISTINCT - 42 ) AS col1, + 34 AS col0
----
-1
34

skipif mysql # not compatible
query II rowsort label-1409
SELECT - COUNT ( * ) / + COUNT ( DISTINCT - 42 ) AS col1, + 34 AS col0
----
-1
34

query I rowsort
SELECT DISTINCT - 3 * - 16 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1411
SELECT ALL MIN( ALL - 12 ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL MIN ( ALL - 12 ) / + 50
----
0

query I rowsort
SELECT - 60 - + 42
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1413
SELECT + 25 * + COUNT( - - 53 ) DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-1413
SELECT + 25 * + COUNT ( - - 53 ) / + + 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1414
SELECT CASE + ( - COALESCE ( + ( - ( + + 66 ) ), - 27 ) ) WHEN COUNT( + + 94 ) + 10 THEN - + CAST( CAST( + MIN( + 99 ) AS SIGNED ) AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT CASE + ( - COALESCE ( + ( - ( + + 66 ) ), - 27 ) ) WHEN COUNT ( + + 94 ) + 10 THEN - + CAST ( CAST ( + MIN ( + 99 ) AS INTEGER ) AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT 59 * ( 84 ) + - 57 AS col2
----
4899

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT CASE - 58 WHEN 24 THEN NULL ELSE - - ( + 91 ) + SUM( ALL 34 ) END
----
125

skipif mysql # not compatible
query I rowsort label-1416
SELECT CASE - 58 WHEN 24 THEN NULL ELSE - - ( + 91 ) + SUM ( ALL 34 ) END
----
125

query I rowsort
SELECT - 30 * + 48 * - 8 AS col1
----
11520

query I rowsort
SELECT + 36 * - 91
----
-3276

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1419
SELECT - 60 DIV 58 - + - CAST( - - 7 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1419
SELECT - 60 / 58 - + - CAST ( - - 7 AS INTEGER ) AS col2
----
6

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

query I rowsort
SELECT ALL 94 * + 66
----
6204

query I rowsort
SELECT + 0 * 33 * + - 10
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT DISTINCT 23 * + - COUNT( * ) * + 7 * + 36 * + 56 AS col2
----
-324576

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT 23 * + - COUNT ( * ) * + 7 * + 36 * + 56 AS col2
----
-324576

query I rowsort
SELECT + 51 + + 81 * - 49 * 50 * 27 + 23
----
-5358076

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT - 68 * - + 72 + - - COUNT( * ) + 23 + - + COUNT( * ) AS col0
----
4919

skipif mysql # not compatible
query I rowsort label-1426
SELECT - 68 * - + 72 + - - COUNT ( * ) + 23 + - + COUNT ( * ) AS col0
----
4919

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

skipif mysql # not compatible
query I rowsort label-1427
SELECT - - COUNT ( 12 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1428
SELECT DISTINCT + - 26 + + - 49 * + COUNT( * ) AS col1, ( - 5 ) AS col2
----
-75
-5

skipif mysql # not compatible
query II rowsort label-1428
SELECT DISTINCT + - 26 + + - 49 * + COUNT ( * ) AS col1, ( - 5 ) AS col2
----
-75
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT + COUNT( * ) * + COALESCE ( + 53, 15, + 55 )
----
53

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( + 53, 15, + 55 )
----
53

query I rowsort
SELECT + 62 + - - 0 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + COUNT( DISTINCT + + 70 ) + + 37 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1431
SELECT + COUNT ( DISTINCT + + 70 ) + + 37 AS col2
----
38

query I rowsort
SELECT + 89 + + 67
----
156

query I rowsort
SELECT ALL - 95 - - 10 + - 25
----
-110

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

query I rowsort
SELECT + - 56 * - 82
----
4592

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL + MIN( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL + MIN ( 37 )
----
37

query I rowsort
SELECT - + 40 + - + 59 * + + 96 AS col1
----
-5704

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

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

query I rowsort
SELECT + 37 + + ( 31 ) * ( + 5 ) + - 8 AS col2
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT - 42 + - COUNT( DISTINCT NULLIF ( + 74, + 20 * - + 74 ) ) + ( - COUNT( * ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1441
SELECT - 42 + - COUNT ( DISTINCT NULLIF ( + 74, + 20 * - + 74 ) ) + ( - COUNT ( * ) ) AS col1
----
-44

query I rowsort
SELECT - 13 * 4
----
-52

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

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

query I rowsort
SELECT 55 * + + 4 + - 95 AS col1
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT ALL + ( + - 26 ) * + + SUM( DISTINCT - 39 ), + 99 AS col1
----
1014
99

skipif mysql # not compatible
query II rowsort label-1445
SELECT ALL + ( + - 26 ) * + + SUM ( DISTINCT - 39 ), + 99 AS col1
----
1014
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1446
SELECT DISTINCT + CASE - 0 WHEN + 1 THEN 24 + + COUNT( * ) + + + COALESCE ( - 5, 38 ) * ( + 25 ) + 82 + + COALESCE ( + 21, - ( 39 ) * + 37 + - COUNT( * ) ) + + + 96 * + CAST( + + 75 AS SIGNED ) + + COUNT( * ) * ( - 51 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT + CASE - 0 WHEN + 1 THEN 24 + + COUNT ( * ) + + + COALESCE ( - 5, 38 ) * ( + 25 ) + 82 + + COALESCE ( + 21, - ( 39 ) * + 37 + - COUNT ( * ) ) + + + 96 * + CAST ( + + 75 AS INTEGER ) + + COUNT ( * ) * ( - 51 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1447
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) + + 26 * ( + 28 )
----
729

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) + + 26 * ( + 28 )
----
729

query I rowsort
SELECT - 47 * - 52 AS col1
----
2444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1449
SELECT ALL - 75 / + COALESCE ( + - MIN( 31 ), AVG ( CAST( NULL AS DECIMAL ) ), 19 ) * + + 58 * - CAST( NULL AS SIGNED ) + - COUNT( * ) + + COUNT( * ), 20 * + 39 + 62 + + NULLIF ( 13, CAST( NULL AS SIGNED ) / + 49 ) AS col2
----
NULL
855

skipif mysql # not compatible
query II rowsort label-1449
SELECT ALL - 75 / + COALESCE ( + - MIN ( 31 ), AVG ( CAST ( NULL AS REAL ) ), 19 ) * + + 58 * - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + COUNT ( * ), 20 * + 39 + 62 + + NULLIF ( 13, CAST ( NULL AS INTEGER ) / + 49 ) AS col2
----
NULL
855

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT DISTINCT + 91 DIV + 53 + 1 * 55
----
56

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT + 91 / + 53 + 1 * 55
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1451
SELECT ALL + 84 / ( + CAST( - + ( + 87 ) AS SIGNED ) ) - + 59 + - CAST( NULL AS SIGNED ) / 11 + + + 22 / 81 * + - 46 + 89 + - 75 + - - ( - ( + 2 ) ) * + - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 84 / ( + CAST ( - + ( + 87 ) AS INTEGER ) ) - + 59 + - CAST ( NULL AS INTEGER ) / 11 + + + 22 / 81 * + - 46 + 89 + - 75 + - - ( - ( + 2 ) ) * + - 35 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 78 AS col1, 80 AS col1
----
-78
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT ALL - + 32 + ( - + COUNT( * ) )
----
-33

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - + 32 + ( - + COUNT ( * ) )
----
-33

query I rowsort
SELECT + + 52 AS col0
----
52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT + - 82 + + 56 DIV - + 27 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT + - 82 + + 56 / - + 27 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL - - COUNT( + 7 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL - - COUNT ( + 7 ) col1
----
1

query I rowsort
SELECT + 98 * - 49
----
-4802

query I rowsort
SELECT ALL - - 37
----
37

query II rowsort
SELECT ALL + - ( + 69 ) * 42 - - COALESCE ( - + 81, 51 ) + + 39 - - 15 - CASE CASE 37 WHEN - + 4 + - 88 + - 79 THEN - + 26 + + 70 * - - 6 END WHEN + 92 + - + 97 THEN 84 ELSE - - 55 + 33 END AS col0, 57 * - 80 col2
----
-3013
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT + CASE - 35 WHEN - AVG ( ALL - 50 ) THEN - - MAX( DISTINCT - 76 ) + 69 ELSE + - ( COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1461
SELECT + CASE - 35 WHEN - AVG ( ALL - 50 ) THEN - - MAX ( DISTINCT - 76 ) + 69 ELSE + - ( COUNT ( * ) ) END
----
-1

query I rowsort
SELECT DISTINCT 32 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT + COUNT( * ) * - + 77 - + 42 * 35 col1
----
-1547

skipif mysql # not compatible
query I rowsort label-1463
SELECT + COUNT ( * ) * - + 77 - + 42 * 35 col1
----
-1547

query II rowsort
SELECT 67 * - 19 AS col1, + 61 AS col0
----
-1273
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1465
SELECT CAST( - 3 AS SIGNED ) + - - 0
----
-3

skipif mysql # not compatible
query I rowsort label-1465
SELECT CAST ( - 3 AS INTEGER ) + - - 0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1466
SELECT ALL CAST( + CASE - 46 WHEN - + 95 THEN 90 * - - 2 + - - 99 - - - 40 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL CAST ( + CASE - 46 WHEN - + 95 THEN 90 * - - 2 + - - 99 - - - 40 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT DISTINCT 22 / - CASE 86 WHEN - - 99 THEN NULL WHEN + 66 / COUNT( * ) THEN - ( ( NULLIF ( + ( + 64 ), ( - - 52 ) ) ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT DISTINCT 22 / - CASE 86 WHEN - - 99 THEN NULL WHEN + 66 / COUNT ( * ) THEN - ( ( NULLIF ( + ( + 64 ), ( - - 52 ) ) ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1468
SELECT ( - + COUNT( - 77 ) ) DIV 5 * + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1468
SELECT ( - + COUNT ( - 77 ) ) / 5 * + 65 AS col2
----
0

query II rowsort
SELECT ALL - 37 AS col0, - ( 18 ) * 12 AS col1
----
-37
-216

query II rowsort
SELECT - + 24, 80 * 84 col1
----
-24
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL + 83 * + SUM( DISTINCT - 11 ) AS col1
----
-913

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + 83 * + SUM ( DISTINCT - 11 ) AS col1
----
-913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT CAST( NULL AS SIGNED ) * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT CAST ( NULL AS INTEGER ) * 36
----
NULL

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

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

query I rowsort
SELECT DISTINCT ( 65 ) * - 54 AS col0
----
-3510

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

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

query I rowsort
SELECT DISTINCT 60 AS col1
----
60

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

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT + COUNT ( * ) + - 21 * + - ( + 40 ) AS col0
----
841

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1478
SELECT ALL + 23 + - 38 AS col2, + 19 * - 31 DIV COUNT( * ) DIV COUNT( * ) - - 50
----
-15
-539

skipif mysql # not compatible
query II rowsort label-1478
SELECT ALL + 23 + - 38 AS col2, + 19 * - 31 / COUNT ( * ) / COUNT ( * ) - - 50
----
-15
-539

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

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

query I rowsort
SELECT 21 + + + 65
----
86

query I rowsort
SELECT - 64 * 87 * + - 3 + - 66 + - ( 81 )
----
16557

query I rowsort
SELECT 66 * + ( - + 58 )
----
-3828

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

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

query I rowsort
SELECT DISTINCT + 6 * - + ( 67 )
----
-402

query I rowsort
SELECT ALL + 2 * + - ( - 39 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1486
SELECT DISTINCT + 44 + 39 col2, + COUNT( * ) AS col0
----
83
1

skipif mysql # not compatible
query II rowsort label-1486
SELECT DISTINCT + 44 + 39 col2, + COUNT ( * ) AS col0
----
83
1

query I rowsort
SELECT ALL - - 95 AS col0
----
95

query I rowsort
SELECT ALL - 11 * - - 49
----
-539

query I rowsort
SELECT DISTINCT + - 18 * + 76 AS col2
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT + 35 + - 86 + + COUNT( * ) + - CASE + 21 WHEN 19 * + + ( + 34 ) THEN NULL WHEN COUNT( * ) / 6 THEN + 39 * + 93 + 92 + - MIN( - 1 ) WHEN + 65 THEN - 47 END * - 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1490
SELECT + 35 + - 86 + + COUNT ( * ) + - CASE + 21 WHEN 19 * + + ( + 34 ) THEN NULL WHEN COUNT ( * ) / 6 THEN + 39 * + 93 + 92 + - MIN ( - 1 ) WHEN + 65 THEN - 47 END * - 68 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT + CASE + 50 WHEN - 86 + + + COUNT( * ) THEN 46 * 92 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1491
SELECT + CASE + 50 WHEN - 86 + + + COUNT ( * ) THEN 46 * 92 END col2
----
NULL

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

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

query I rowsort
SELECT ( + 11 ) + 79 AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1494
SELECT ALL - ( - - 67 ) DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL - ( - - 67 ) / + 68 AS col1
----
0

query I rowsort
SELECT 23 * + 82 * 87 + + + 9 col2
----
164091

query I rowsort
SELECT ALL - + 2 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT - ( 88 ) * - ( - - CASE - CASE + + 75 WHEN + + 9 THEN 30 * + - 78 + - + 61 END WHEN + COUNT( * ) THEN NULL WHEN + 95 + 17 * 95 THEN 65 WHEN + 11 THEN + 97 * - + 47 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT - ( 88 ) * - ( - - CASE - CASE + + 75 WHEN + + 9 THEN 30 * + - 78 + - + 61 END WHEN + COUNT ( * ) THEN NULL WHEN + 95 + 17 * 95 THEN 65 WHEN + 11 THEN + 97 * - + 47 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT DISTINCT 29 * CAST( - 62 AS SIGNED )
----
-1798

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT 29 * CAST ( - 62 AS INTEGER )
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL + - 13 * + + CASE COUNT( * ) WHEN 87 THEN NULL WHEN - 88 THEN + + 65 END + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL + - 13 * + + CASE COUNT ( * ) WHEN 87 THEN NULL WHEN - 88 THEN + + 65 END + + 89 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT ALL CASE - 36 WHEN 44 THEN NULL WHEN - AVG ( DISTINCT + 10 ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL CASE - 36 WHEN 44 THEN NULL WHEN - AVG ( DISTINCT + 10 ) THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT - MAX( 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-1502
SELECT - MAX ( 94 )
----
-94

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

query I rowsort
SELECT + 60 + + 69 + - 78 * - 51 * + 56 col2
----
222897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1505
SELECT NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) - - - 36 * 57 ) / COUNT( * ) / - + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) - - - 36 * 57 ) / COUNT ( * ) / - + 28 AS col1
----
NULL

query II rowsort
SELECT - 91, 60 * + - 2 AS col2
----
-91
-120

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1508
SELECT ALL 43 AS col2, 3 * - - CASE - ( + 62 ) WHEN + - 14 * - - 87 THEN NULL WHEN - 73 * 66 * + CAST( 57 AS SIGNED ) THEN - 12 END * - 52 * + 68
----
43
NULL

skipif mysql # not compatible
query II rowsort label-1508
SELECT ALL 43 AS col2, 3 * - - CASE - ( + 62 ) WHEN + - 14 * - - 87 THEN NULL WHEN - 73 * 66 * + CAST ( 57 AS INTEGER ) THEN - 12 END * - 52 * + 68
----
43
NULL

query I rowsort
SELECT 6 + + 53 AS col0
----
59

query I rowsort
SELECT 22 + 9 - + 16 - - - 21 - - 1 + - + 25
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT ALL CASE - - COALESCE ( COUNT( * ), 22, - NULLIF ( + COALESCE ( + - 54, - - 65 + 36 + - 67 + - ( + 84 ) ), - 23 ) * ( 5 ) * - 27 ) WHEN + + 75 * + + MAX( ALL + + 67 ) + 17 + - 73 THEN NULL WHEN + 77 + ( + 17 ) THEN NULL WHEN + COUNT( * ) * - 0 * - + 35 * 8 * + SUM( DISTINCT 77 ) + + 34 THEN + - ( - + MAX( - 46 ) ) ELSE NULL END + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL CASE - - COALESCE ( COUNT ( * ), 22, - NULLIF ( + COALESCE ( + - 54, - - 65 + 36 + - 67 + - ( + 84 ) ), - 23 ) * ( 5 ) * - 27 ) WHEN + + 75 * + + MAX ( ALL + + 67 ) + 17 + - 73 THEN NULL WHEN + 77 + ( + 17 ) THEN NULL WHEN + COUNT ( * ) * - 0 * - + 35 * 8 * + SUM ( DISTINCT 77 ) + + 34 THEN + - ( - + MAX ( - 46 ) ) ELSE NULL END + - 37 AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 58, 74 AS col2
----
58
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT DISTINCT COALESCE ( - 96, + + 43 * COUNT( 82 ) ) + - 6
----
-102

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT COALESCE ( - 96, + + 43 * COUNT ( 82 ) ) + - 6
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT CASE + 41 WHEN 81 / + 95 THEN 54 WHEN + - 96 + + 58 THEN NULL END + + NULLIF ( 29, - 59 ) * + - COUNT( * ) + + + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1515
SELECT CASE + 41 WHEN 81 / + 95 THEN 54 WHEN + - 96 + + 58 THEN NULL END + + NULLIF ( 29, - 59 ) * + - COUNT ( * ) + + + 82 col2
----
NULL

query I rowsort
SELECT ALL ( 15 ) + - 8 + + 79
----
86

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1518
SELECT ( + + 93 ) + + 64 + - 65 - + 1 * 36 * - COUNT( * ) * - - 42 AS col2, 21 AS col1
----
1604
21

skipif mysql # not compatible
query II rowsort label-1518
SELECT ( + + 93 ) + + 64 + - 65 - + 1 * 36 * - COUNT ( * ) * - - 42 AS col2, 21 AS col1
----
1604
21

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

skipif mysql # not compatible
query II rowsort label-1519
SELECT - COUNT ( * ) AS col1, - 90
----
-1
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1520
SELECT 31 DIV 13 * + 17
----
34

skipif mysql # not compatible
query I rowsort label-1520
SELECT 31 / 13 * + 17
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT 67 + SUM( + - 6 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1521
SELECT 67 + SUM ( + - 6 ) AS col2
----
61

query I rowsort
SELECT 37 * 26 AS col0
----
962

query I rowsort
SELECT - ( - ( + 48 ) ) + - 89 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1524
SELECT + COUNT( * ) AS col0, - MAX( - 17 ) + - 9 AS col2
----
1
8

skipif mysql # not compatible
query II rowsort label-1524
SELECT + COUNT ( * ) AS col0, - MAX ( - 17 ) + - 9 AS col2
----
1
8

query I rowsort
SELECT ALL ( 28 ) * - 73 - - + 63
----
-1981

onlyif mysql # DIV for integer division: 
query I rowsort label-1526
SELECT NULLIF ( - 16, 65 ) * 8 DIV - 7 + 71 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1526
SELECT NULLIF ( - 16, 65 ) * 8 / - 7 + 71 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT ALL + COALESCE ( + + 79, + - 12, - - COUNT( * ), 56 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + COALESCE ( + + 79, + - 12, - - COUNT ( * ), 56 ) AS col2
----
79

query I rowsort
SELECT ALL + + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + - CASE WHEN NOT ( + AVG ( ALL + 41 ) BETWEEN + 49 + 6 + + 32 AND + 57 / - 19 ) THEN NULL ELSE - 4 * - - 63 / - + 62 END + - ( + - 3 ) - + 63 * + + 64 * + COUNT( * ) + - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT + - CASE WHEN NOT ( + AVG ( ALL + 41 ) BETWEEN + 49 + 6 + + 32 AND + 57 / - 19 ) THEN NULL ELSE - 4 * - - 63 / - + 62 END + - ( + - 3 ) - + 63 * + + 64 * + COUNT ( * ) + - 2 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - CASE 27 WHEN + + 44 * - + 82 * - COALESCE ( + 5, 97 ) THEN - 32 * + - 71 ELSE 39 * - 70 END ) AS col1
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT - - CASE - + 80 WHEN + COUNT( * ) + + 52 THEN + COUNT( * ) * 15 END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT - - CASE - + 80 WHEN + COUNT ( * ) + + 52 THEN + COUNT ( * ) * 15 END * - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1532
SELECT 68 * 89 DIV ( + + 9 ) + - ( - CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
673

skipif mysql # not compatible
query I rowsort label-1532
SELECT 68 * 89 / ( + + 9 ) + - ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
673

query II rowsort
SELECT - 55 AS col2, 23 AS col2
----
-55
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT - 61 * - 2 + - ( + 95 ) - - - 39 * - 69 * SUM( ALL + 71 ) AS col0
----
191088

skipif mysql # not compatible
query I rowsort label-1534
SELECT - 61 * - 2 + - ( + 95 ) - - - 39 * - 69 * SUM ( ALL + 71 ) AS col0
----
191088

query I rowsort
SELECT - 16 + 17 AS col0
----
1

query I rowsort
SELECT + 56 * + 35 * - + 64 + + 5 * 69 AS col2
----
-125095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1537
SELECT ALL - - 40 * + 51 DIV - + COUNT( DISTINCT + 76 ) AS col0
----
-2040

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL - - 40 * + 51 / - + COUNT ( DISTINCT + 76 ) AS col0
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT DISTINCT + 96 * 95 + + NULLIF ( + + COUNT( + 31 ), 57 ) * + 48 + + 6
----
9174

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT + 96 * 95 + + NULLIF ( + + COUNT ( + 31 ), 57 ) * + 48 + + 6
----
9174

query I rowsort
SELECT - - 27 + + - 46
----
-19

query I rowsort
SELECT DISTINCT + - 17
----
-17

query I rowsort
SELECT ALL + + 61
----
61

query II rowsort
SELECT - - 78 * + - 29 * + 51 - + - NULLIF ( 30, + 57 * - - 84 * 30 ), - 91 AS col0
----
-115332
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-1543
SELECT + 46 AS col1, 54 + - 13 DIV + 35 - - + 49 AS col2
----
46
103

skipif mysql # not compatible
query II rowsort label-1543
SELECT + 46 AS col1, 54 + - 13 / + 35 - - + 49 AS col2
----
46
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT - 89 * - 55 - - - 21 * + COUNT( * ) + + 74 AS col1
----
4948

skipif mysql # not compatible
query I rowsort label-1544
SELECT - 89 * - 55 - - - 21 * + COUNT ( * ) + + 74 AS col1
----
4948

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

skipif mysql # not compatible
query II rowsort label-1545
SELECT 95 AS col0, COUNT ( * )
----
95
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1546
SELECT - COUNT( DISTINCT 46 ) DIV ( 84 ) * - COUNT( * ) * - - 97 DIV + + 81
----
0

skipif mysql # not compatible
query I rowsort label-1546
SELECT - COUNT ( DISTINCT 46 ) / ( 84 ) * - COUNT ( * ) * - - 97 / + + 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1547
SELECT - 28 + + + COUNT( * ) * 71, 14 col0
----
43
14

skipif mysql # not compatible
query II rowsort label-1547
SELECT - 28 + + + COUNT ( * ) * 71, 14 col0
----
43
14

query II rowsort
SELECT - 24 AS col2, - 92
----
-24
-92

query I rowsort
SELECT - 14 * + 58 * 67
----
-54404

query I rowsort
SELECT ALL - 95 + + 33 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT DISTINCT + NULLIF ( 55, - 72 * + COUNT( * ) - 79 - + AVG ( - 93 ) - - 3 * - + 76 * + 32 / + 33 * - 52 ) + - - 69 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT + NULLIF ( 55, - 72 * + COUNT ( * ) - 79 - + AVG ( - 93 ) - - 3 * - + 76 * + 32 / + 33 * - 52 ) + - - 69 AS col1
----
124

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT DISTINCT - 50 * NULLIF ( + + 83, - COUNT( * ) ) AS col2
----
-4150

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT - 50 * NULLIF ( + + 83, - COUNT ( * ) ) AS col2
----
-4150

onlyif mysql # aggregate syntax: 
query II rowsort label-1554
SELECT DISTINCT - NULLIF ( + 19, SUM( - + 74 ) ) * - 84 * - + 28 + + + COALESCE ( - 80, + 34 ) AS col0, + 81 - - ( + 6 ) + + 58 AS col0
----
-44768
145

skipif mysql # not compatible
query II rowsort label-1554
SELECT DISTINCT - NULLIF ( + 19, SUM ( - + 74 ) ) * - 84 * - + 28 + + + COALESCE ( - 80, + 34 ) AS col0, + 81 - - ( + 6 ) + + 58 AS col0
----
-44768
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1555
SELECT - COALESCE ( - MIN( DISTINCT - + 42 ), 94 DIV + 66 DIV + + COUNT( * ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1555
SELECT - COALESCE ( - MIN ( DISTINCT - + 42 ), 94 / + 66 / + + COUNT ( * ) ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1556
SELECT DISTINCT 47 - - ( COUNT( * ) ) + - COUNT( * ) * + - COUNT( * ) + + NULLIF ( 74, + - 49 + - COUNT( * ) + - + CAST( - 17 AS DECIMAL ) ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT 47 - - ( COUNT ( * ) ) + - COUNT ( * ) * + - COUNT ( * ) + + NULLIF ( 74, + - 49 + - COUNT ( * ) + - + CAST ( - 17 AS REAL ) ) AS col0
----
123

query I rowsort
SELECT ALL ( - 82 ) AS col1
----
-82

query I rowsort
SELECT ALL 82 * + - 42 * + - 61 * - 48 * 44 AS col2
----
-443697408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1559
SELECT DISTINCT - 88 DIV - COUNT( ALL + + ( + 86 ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT - 88 / - COUNT ( ALL + + ( + 86 ) ) AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT - CAST( NULL AS SIGNED ) / - ( - + 63 ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT - CAST ( NULL AS INTEGER ) / - ( - + 63 ) + + 57
----
NULL

query I rowsort
SELECT + + 81 col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT - NULLIF ( + + 15, - - 5 ) + + 5 + COUNT( * ) * - + 4 + - 78 * - 65
----
5056

skipif mysql # not compatible
query I rowsort label-1563
SELECT - NULLIF ( + + 15, - - 5 ) + + 5 + COUNT ( * ) * - + 4 + - 78 * - 65
----
5056

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT + 73 DIV COALESCE ( + 50, + + 77 * + 60 * 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1564
SELECT + 73 / COALESCE ( + 50, + + 77 * + 60 * 95 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT - - 71 * - COUNT( * ) * + 22
----
-1562

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT - - 71 * - COUNT ( * ) * + 22
----
-1562

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT + + ( COUNT( * ) ) + + - 95 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1568
SELECT + + ( COUNT ( * ) ) + + - 95 AS col2
----
-94

query I rowsort
SELECT ALL + + 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT NULLIF ( - 41, + COUNT( * ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1570
SELECT NULLIF ( - 41, + COUNT ( * ) ) AS col0
----
-41

query I rowsort
SELECT + + 76 AS col1
----
76

query I rowsort
SELECT + 29 * - + 53 AS col2
----
-1537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT + 33 + - - CASE - COALESCE ( + CAST( + 26 AS SIGNED ), + - 45 * ( - 72 ) ) WHEN + 10 THEN NULL WHEN 29 THEN NULL ELSE + 65 END AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1573
SELECT + 33 + - - CASE - COALESCE ( + CAST ( + 26 AS INTEGER ), + - 45 * ( - 72 ) ) WHEN + 10 THEN NULL WHEN 29 THEN NULL ELSE + 65 END AS col0
----
98

query I rowsort
SELECT ALL + - 73
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT - COUNT( 5 ) * - ( - + 5 ) + - 67 - + 67 + + 10
----
-129

skipif mysql # not compatible
query I rowsort label-1575
SELECT - COUNT ( 5 ) * - ( - + 5 ) + - 67 - + 67 + + 10
----
-129

query I rowsort
SELECT - COALESCE ( + - 46, 12, ( + 35 ) ) - 39
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1577
SELECT DISTINCT 35 DIV 30 * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT 35 / 30 * - 87
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT DISTINCT SUM( 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT SUM ( 53 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT - COUNT( * ) + + - 24
----
-25

skipif mysql # not compatible
query I rowsort label-1580
SELECT - COUNT ( * ) + + - 24
----
-25

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

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

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

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

query I rowsort
SELECT + 72 + 40
----
112

query I rowsort
SELECT + 31 * - + COALESCE ( 40, - - 21 + 98 )
----
-1240

query I rowsort
SELECT + 48 + + 74
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT - MAX( DISTINCT 69 ) - + 3 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-1586
SELECT - MAX ( DISTINCT 69 ) - + 3 AS col0
----
-72

query I rowsort
SELECT DISTINCT ( - 75 )
----
-75

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

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

query I rowsort
SELECT 67 * 33
----
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT 41 + + + COUNT( * ) + + SUM( + 91 )
----
133

skipif mysql # not compatible
query I rowsort label-1591
SELECT 41 + + + COUNT ( * ) + + SUM ( + 91 )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT 57 + ( + + 15 ) * + SUM( - 8 ) * - - 21 + + - 69
----
-2532

skipif mysql # not compatible
query I rowsort label-1592
SELECT 57 + ( + + 15 ) * + SUM ( - 8 ) * - - 21 + + - 69
----
-2532

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

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

query I rowsort
SELECT ALL - 75 * - 12
----
900

query I rowsort
SELECT 76 + + 42
----
118

query I rowsort
SELECT ALL - 2 * - 72
----
144

query I rowsort
SELECT 82 * - 85 AS col1
----
-6970

query II rowsort
SELECT - 17 AS col2, ( - - 94 ) + - 67
----
-17
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT + 58 + COUNT( DISTINCT + 83 ) - + + 9 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1599
SELECT + 58 + COUNT ( DISTINCT + 83 ) - + + 9 AS col0
----
50

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

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

query II rowsort
SELECT - 67 AS col2, + 30
----
-67
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1602
SELECT ALL - COUNT( * ) col1, 78 AS col1
----
-1
78

skipif mysql # not compatible
query II rowsort label-1602
SELECT ALL - COUNT ( * ) col1, 78 AS col1
----
-1
78

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

query I rowsort
SELECT ALL - 19 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1605
SELECT ALL 77 / + - CAST( NULL AS SIGNED ) / + + ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL 77 / + - CAST ( NULL AS INTEGER ) / + + ( - COUNT ( * ) ) AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL + 47 + - - MIN( ALL - - 23 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + 47 + - - MIN ( ALL - - 23 ) AS col0
----
70

query I rowsort
SELECT + 98 * + 65 + + - 89 * + 31 - - 90 * + 4 col0
----
3971

onlyif mysql # aggregate syntax: 
query II rowsort label-1609
SELECT 78 * 81 * SUM( - 11 ) + - + 86 AS col1, - COUNT( * ) + + 9
----
-69584
8

skipif mysql # not compatible
query II rowsort label-1609
SELECT 78 * 81 * SUM ( - 11 ) + - + 86 AS col1, - COUNT ( * ) + + 9
----
-69584
8

query I rowsort
SELECT - 31 * - + 19
----
589

onlyif mysql # aggregate syntax: 
query II rowsort label-1611
SELECT 80 AS col2, - COUNT( * ) * + 27 AS col2
----
80
-27

skipif mysql # not compatible
query II rowsort label-1611
SELECT 80 AS col2, - COUNT ( * ) * + 27 AS col2
----
80
-27

query I rowsort
SELECT DISTINCT 80 + 31 + + 48 + 28 * - 62 * 1 * - + ( 79 ) + + - 59 AS col1
----
137244

query I rowsort
SELECT ALL - 95 * 16
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT ALL - SUM( ALL 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - SUM ( ALL 25 ) AS col1
----
-25

query I rowsort
SELECT ALL - 6 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-1616
SELECT DISTINCT - 83 AS col2, NULLIF ( - 14, - 10 * 91 ) DIV - 54
----
-83
0

skipif mysql # not compatible
query II rowsort label-1616
SELECT DISTINCT - 83 AS col2, NULLIF ( - 14, - 10 * 91 ) / - 54
----
-83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT 78 * 28 * - 50 - COUNT( * )
----
-109201

skipif mysql # not compatible
query I rowsort label-1617
SELECT 78 * 28 * - 50 - COUNT ( * )
----
-109201

onlyif mysql # aggregate syntax: 
query III rowsort label-1618
SELECT DISTINCT 3 AS col0, 4 * - - 32 + + COUNT( * ) AS col2, COUNT( * )
----
3
129
1

skipif mysql # not compatible
query III rowsort label-1618
SELECT DISTINCT 3 AS col0, 4 * - - 32 + + COUNT ( * ) AS col2, COUNT ( * )
----
3
129
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1619
SELECT - 5 col1, CAST( NULL AS DECIMAL )
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-1619
SELECT - 5 col1, CAST ( NULL AS REAL )
----
-5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1620
SELECT 76 + - + 82 AS col1, + ( + - COUNT( + 66 ) )
----
-6
-1

skipif mysql # not compatible
query II rowsort label-1620
SELECT 76 + - + 82 AS col1, + ( + - COUNT ( + 66 ) )
----
-6
-1

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

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

query I rowsort
SELECT DISTINCT + 61 * 94
----
5734

query I rowsort
SELECT 76 * 35
----
2660

onlyif mysql # DIV for integer division: 
query II rowsort label-1624
SELECT 82 DIV + 8 AS col0, + 91 + 67
----
10
158

skipif mysql # not compatible
query II rowsort label-1624
SELECT 82 / + 8 AS col0, + 91 + 67
----
10
158

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

query II rowsort
SELECT - 57 col0, 77 * - - 52 + + 38
----
-57
4042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1627
SELECT - - CAST( + + 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-1627
SELECT - - CAST ( + + 22 AS INTEGER )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT DISTINCT + 53 DIV - + 3
----
-17

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + 53 / - + 3
----
-17

query I rowsort
SELECT ALL + 51 + + 95 AS col1
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT CAST( - ( + COALESCE ( + 24, 43, - ( + 96 ) ) ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-1630
SELECT CAST ( - ( + COALESCE ( + 24, 43, - ( + 96 ) ) ) AS INTEGER )
----
-24

query I rowsort
SELECT - 58 AS col2
----
-58

query I rowsort
SELECT + CASE - + ( 83 ) WHEN - 9 THEN + 61 ELSE NULL END + + 58
----
NULL

query II rowsort
SELECT + - ( - COALESCE ( 63, 1 ) ), 54 AS col1
----
63
54

query I rowsort
SELECT + 83 * + + 72 + - 88 + - + ( + - 65 ) * + 83
----
11283

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

skipif mysql # not compatible
query II rowsort label-1635
SELECT 20, + COUNT ( * ) col2
----
20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT - 38 * COUNT( - 19 ) - - - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) + COUNT( * ) * + ( + CASE + - COUNT( * ) WHEN 4 * - 3 * 49 * - 92 + 38 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 81 + 79 END ) / - ( - - COALESCE ( - + 4, - ( - 7 ) + NULLIF ( - 22, - + 42 + 82 ) - + 49 - + + 14 * - ( - - 65 ) / + 64 * - - 88, 41 * - 84 ) ) + - - COUNT( * ) * 68 / + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 38 * COUNT ( - 19 ) - - - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + COUNT ( * ) * + ( + CASE + - COUNT ( * ) WHEN 4 * - 3 * 49 * - 92 + 38 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 81 + 79 END ) / - ( - - COALESCE ( - + 4, - ( - 7 ) + NULLIF ( - 22, - + 42 + 82 ) - + 49 - + + 14 * - ( - - 65 ) / + 64 * - - 88, 41 * - 84 ) ) + - - COUNT ( * ) * 68 / + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL + + 62 * - 66
----
-4092

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT 85 + + SUM( + 86 ) + 4 + ( - 23 ) + + 11 * + - 99 * - COUNT( * )
----
1241

skipif mysql # not compatible
query I rowsort label-1638
SELECT 85 + + SUM ( + 86 ) + 4 + ( - 23 ) + + 11 * + - 99 * - COUNT ( * )
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT 82 * MIN( ALL CASE + + 29 WHEN 15 THEN NULL WHEN - 0 THEN - 49 + - 9 * 8 * - 56 END ) + + 49 + - - 88 + - 35 * - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT 82 * MIN ( ALL CASE + + 29 WHEN 15 THEN NULL WHEN - 0 THEN - 49 + - 9 * 8 * - 56 END ) + + 49 + - - 88 + - 35 * - 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1640
SELECT ALL - MIN( - + 69 ) AS col0, 8 + MIN( DISTINCT - 43 ) AS col0
----
69
-35

skipif mysql # not compatible
query II rowsort label-1640
SELECT ALL - MIN ( - + 69 ) AS col0, 8 + MIN ( DISTINCT - 43 ) AS col0
----
69
-35

query II rowsort
SELECT 25 + + - 30, - 18 + 29 * - + 2 AS col2
----
-5
-76

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1643
SELECT + 77 DIV - ( + COUNT( * ) ) AS col0, - CASE - + 99 WHEN + COUNT( - + 14 ) THEN 84 ELSE NULL END + + + 16
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-1643
SELECT + 77 / - ( + COUNT ( * ) ) AS col0, - CASE - + 99 WHEN + COUNT ( - + 14 ) THEN 84 ELSE NULL END + + + 16
----
-77
NULL

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

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

query I rowsort
SELECT ALL 77 * + 8 col1
----
616

query I rowsort
SELECT - 59 + - ( + - 99 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT + ( 61 ) * COALESCE ( + + NULLIF ( - 5, - COUNT( * ) - 88 * - + 95 ), + + 53 )
----
-305

skipif mysql # not compatible
query I rowsort label-1647
SELECT + ( 61 ) * COALESCE ( + + NULLIF ( - 5, - COUNT ( * ) - 88 * - + 95 ), + + 53 )
----
-305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT - COALESCE ( + 92, + NULLIF ( - NULLIF ( + + 10, + + NULLIF ( + 53, - 53 + - CAST( 39 AS SIGNED ) * 51 ) ), + CAST( NULL AS SIGNED ) + 82 ), + ( ( + 72 ) ) - - 63 * COUNT( - 45 ) * MIN( DISTINCT + + ( + 19 ) ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1648
SELECT - COALESCE ( + 92, + NULLIF ( - NULLIF ( + + 10, + + NULLIF ( + 53, - 53 + - CAST ( 39 AS INTEGER ) * 51 ) ), + CAST ( NULL AS INTEGER ) + 82 ), + ( ( + 72 ) ) - - 63 * COUNT ( - 45 ) * MIN ( DISTINCT + + ( + 19 ) ) ) AS col0
----
-92

query I rowsort
SELECT - NULLIF ( + 65, + + 66 ) AS col2
----
-65

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

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

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL 93 + - COUNT ( * ) AS col2
----
92

query I rowsort
SELECT - - 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT DISTINCT - ( - ( - - 67 ) ) + - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT - ( - ( - - 67 ) ) + - COUNT ( * ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL + + NULLIF ( - + SUM( DISTINCT - 83 ), + MIN( ALL - 32 ) ) + 78 + + 86 + 25 * + 70 AS col1
----
1997

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + + NULLIF ( - + SUM ( DISTINCT - 83 ), + MIN ( ALL - 32 ) ) + 78 + + 86 + 25 * + 70 AS col1
----
1997

query II rowsort
SELECT + + 85 + - 73, + 30 * + 39 AS col0
----
12
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT ALL + CASE NULLIF ( - 2, 41 ) WHEN - 19 THEN + COUNT( * ) + + COUNT( * ) * - 74 WHEN - MIN( ALL 78 ) / - - COUNT( * ) THEN - 87 ELSE NULL END + + SUM( + + 48 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL + CASE NULLIF ( - 2, 41 ) WHEN - 19 THEN + COUNT ( * ) + + COUNT ( * ) * - 74 WHEN - MIN ( ALL 78 ) / - - COUNT ( * ) THEN - 87 ELSE NULL END + + SUM ( + + 48 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT SUM( ALL - + 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT SUM ( ALL - + 50 ) AS col0
----
-50

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

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

query II rowsort
SELECT ALL + - 26 + + - 28 AS col2, - 1
----
-54
-1

query II rowsort
SELECT ALL 83 + + 46 AS col1, 92
----
129
92

query I rowsort
SELECT + 22 * - + 83 * + 78 AS col0
----
-142428

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT - ( - + 92 ) * - 96 - - 97 + 30 DIV + 97 * + + 24 * - 83 * + + 16 AS col0
----
-8735

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - ( - + 92 ) * - 96 - - 97 + 30 / + 97 * + + 24 * - 83 * + + 16 AS col0
----
-8735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1663
SELECT DISTINCT - COUNT( * ) DIV - NULLIF ( COUNT( * ), + 55 * - 76 * + COALESCE ( - + 72, - 31 DIV + 87 ) ) - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - COUNT ( * ) / - NULLIF ( COUNT ( * ), + 55 * - 76 * + COALESCE ( - + 72, - 31 / + 87 ) ) - 3 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 49 * - 7 * + - 57 - - 17 + - 39 + - 30
----
19499

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1665
SELECT - 51 * 16 + - - 0 * + 46 - - - CAST( NULL AS DECIMAL ) * 9 + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1665
SELECT - 51 * 16 + - - 0 * + 46 - - - CAST ( NULL AS REAL ) * 9 + + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1666
SELECT - - NULLIF ( - + COUNT( ALL - NULLIF ( - CASE + 89 WHEN - 41 THEN COALESCE ( 40, + - 46 - - 16, - + 73 ) + + NULLIF ( - 89, + 28 ) + 32 + + CAST( ( - ( 97 ) ) AS SIGNED ) WHEN - 75 THEN NULL END, + - 38 ) ), + 64 * AVG ( DISTINCT - COALESCE ( CAST( NULL AS SIGNED ), + 34 - + 82 + - ( + 84 ) * 5 + + 91 ) ) ) * 32
----
0

skipif mysql # not compatible
query I rowsort label-1666
SELECT - - NULLIF ( - + COUNT ( ALL - NULLIF ( - CASE + 89 WHEN - 41 THEN COALESCE ( 40, + - 46 - - 16, - + 73 ) + + NULLIF ( - 89, + 28 ) + 32 + + CAST ( ( - ( 97 ) ) AS INTEGER ) WHEN - 75 THEN NULL END, + - 38 ) ), + 64 * AVG ( DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), + 34 - + 82 + - ( + 84 ) * 5 + + 91 ) ) ) * 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1667
SELECT - COUNT( * ) * 97 + + CASE - 48 WHEN - + 68 THEN + 73 DIV + - COUNT( DISTINCT - 15 ) ELSE + 66 DIV + + 55 END DIV 98 + + + 22 + + - 88 + + 16 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-1667
SELECT - COUNT ( * ) * 97 + + CASE - 48 WHEN - + 68 THEN + 73 / + - COUNT ( DISTINCT - 15 ) ELSE + 66 / + + 55 END / 98 + + + 22 + + - 88 + + 16 AS col0
----
-147

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

skipif mysql # not compatible
query II rowsort label-1668
SELECT + CAST ( NULL AS INTEGER ), COUNT ( * ) * MIN ( + 49 ) AS col2
----
NULL
49

query I rowsort
SELECT - 31 + + 36
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT + SUM( ALL - 58 ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-1670
SELECT + SUM ( ALL - 58 ) col2
----
-58

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT NULLIF ( 40, - 48 * COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-1674
SELECT NULLIF ( 40, - 48 * COUNT ( * ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT COALESCE ( + 67, + + COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-1675
SELECT COALESCE ( + 67, + + COUNT ( * ) )
----
67

query I rowsort
SELECT DISTINCT + 8 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1677
SELECT + 24 DIV + - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1677
SELECT + 24 / + - 98 AS col1
----
0

query I rowsort
SELECT - 35 * 65 AS col1
----
-2275

query I rowsort
SELECT + 41 + - - 7 AS col2
----
48

query I rowsort
SELECT + 17 + 74 AS col2
----
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1682
SELECT - 88 DIV - + 95 * + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT - 88 / - + 95 * + 1 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL COUNT( * ) * + - 56 + + CASE 67 WHEN + 60 + 57 THEN 30 ELSE NULL END * - 61 * 14 + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL COUNT ( * ) * + - 56 + + CASE 67 WHEN + 60 + 57 THEN 30 ELSE NULL END * - 61 * 14 + - 71
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1684
SELECT DISTINCT NULLIF ( - + 13, + - 99 * - COALESCE ( - 19, + 87 ) ) * + CAST( NULL AS DECIMAL ) + 52 * + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT NULLIF ( - + 13, + - 99 * - COALESCE ( - 19, + 87 ) ) * + CAST ( NULL AS REAL ) + 52 * + 35 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 31 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1686
SELECT COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1687
SELECT DISTINCT 39 + - COALESCE ( 37, - COALESCE ( - + 91, - 63, COUNT( * ) DIV - 15 + 77, + + 80 ) * + 7 * - CAST( + + 11 AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT 39 + - COALESCE ( 37, - COALESCE ( - + 91, - 63, COUNT ( * ) / - 15 + 77, + + 80 ) * + 7 * - CAST ( + + 11 AS INTEGER ) )
----
2

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

query II rowsort
SELECT DISTINCT + 48 AS col2, + 48 + 99 col1
----
48
147

query I rowsort
SELECT - 57 - - + 27
----
-30

query I rowsort
SELECT - NULLIF ( 63, + 76 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT DISTINCT - 1 + + - 8 * + - CASE + 35 WHEN 61 - 87 + + 30 + + 2 + + - 36 + CAST( + + 99 AS SIGNED ) * 64 THEN NULL WHEN 60 THEN + SUM( DISTINCT 40 ) / - 92 * - CAST( NULL AS SIGNED ) * 23 * 5 + + - 37 + + 56 * - 1 / + 99 * + 1 WHEN + 71 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - 1 + + - 8 * + - CASE + 35 WHEN 61 - 87 + + 30 + + 2 + + - 36 + CAST ( + + 99 AS INTEGER ) * 64 THEN NULL WHEN 60 THEN + SUM ( DISTINCT 40 ) / - 92 * - CAST ( NULL AS INTEGER ) * 23 * 5 + + - 37 + + 56 * - 1 / + 99 * + 1 WHEN + 71 THEN + - COUNT ( * ) END
----
NULL

query II rowsort
SELECT + 54 * + 99 * - 82 col1, 96
----
-438372
96

query II rowsort
SELECT ALL - 68 + + + 83 * - 79, 2 AS col0
----
-6625
2

query I rowsort
SELECT DISTINCT 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT DISTINCT - - COUNT( * ) - - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT - - COUNT ( * ) - - - COUNT ( * )
----
0

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

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT SUM ( 46 )
----
46

query I rowsort
SELECT + - 13 - - 83 + + 81
----
151

query I rowsort
SELECT ALL - ( + 75 ) * + 38 * + 25
----
-71250

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

query I rowsort
SELECT NULLIF ( - 1, ( 15 ) )
----
-1

query I rowsort
SELECT + 86 + + + 94 - 24 + + 6
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT + 56 * COUNT( DISTINCT 72 ) AS col2, 84 + - 81
----
56
3

skipif mysql # not compatible
query II rowsort label-1703
SELECT + 56 * COUNT ( DISTINCT 72 ) AS col2, 84 + - 81
----
56
3

query II rowsort
SELECT 91 - - + 2 * - - 2 AS col0, 36 AS col0
----
95
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1705
SELECT ( - + CASE - - ( 43 ) WHEN 34 THEN - 13 * + - 40 - 6 WHEN COUNT( - + 76 ) + + 0 THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) * + 8 / - 12 - + 77 + + 2 * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT ( - + CASE - - ( 43 ) WHEN 34 THEN - 13 * + - 40 - 6 WHEN COUNT ( - + 76 ) + + 0 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) * + 8 / - 12 - + 77 + + 2 * 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1706
SELECT COUNT( * ) DIV 66, + 98 + - 80 AS col2
----
0
18

skipif mysql # not compatible
query II rowsort label-1706
SELECT COUNT ( * ) / 66, + 98 + - 80 AS col2
----
0
18

query I rowsort
SELECT ALL - 19 * + 98 AS col1
----
-1862

query I rowsort
SELECT 66 * + 7 AS col1
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT 20 * - COUNT( * ) + + NULLIF ( - 97, + COUNT( * ) ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-1709
SELECT 20 * - COUNT ( * ) + + NULLIF ( - 97, + COUNT ( * ) ) AS col0
----
-117

query I rowsort
SELECT ALL - 47 * 34 AS col1
----
-1598

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT 76 * 2 * ( - 76 ) DIV 17
----
-679

skipif mysql # not compatible
query I rowsort label-1711
SELECT 76 * 2 * ( - 76 ) / 17
----
-679

query I rowsort
SELECT ALL 54 + - + 75
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1713
SELECT 1 * 86 AS col1, ( - CAST( + 15 AS SIGNED ) ) * - 14 - - - CAST( NULL AS SIGNED )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-1713
SELECT 1 * 86 AS col1, ( - CAST ( + 15 AS INTEGER ) ) * - 14 - - - CAST ( NULL AS INTEGER )
----
86
NULL

query I rowsort
SELECT 4 + + 59
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT ALL 94 + + - 20, - COUNT( * ) col1
----
74
-1

skipif mysql # not compatible
query II rowsort label-1715
SELECT ALL 94 + + - 20, - COUNT ( * ) col1
----
74
-1

query I rowsort
SELECT DISTINCT 53 + + 60
----
113

query I rowsort
SELECT + 24 col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1718
SELECT CAST( - 4 AS SIGNED ) * + - 75 + 22 + - 48 + 81 - - 2 * - 70 * - 70 + + + 16 + + 62 - ( MAX( 38 ) ) DIV 83 AS col2
----
10233

skipif mysql # not compatible
query I rowsort label-1718
SELECT CAST ( - 4 AS INTEGER ) * + - 75 + 22 + - 48 + 81 - - 2 * - 70 * - 70 + + + 16 + + 62 - ( MAX ( 38 ) ) / 83 AS col2
----
10233

query I rowsort
SELECT DISTINCT - 39 + 63 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT + NULLIF ( 42, - 43 + + - MIN( DISTINCT 22 ) ) + 59
----
101

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT + NULLIF ( 42, - 43 + + - MIN ( DISTINCT 22 ) ) + 59
----
101

query I rowsort
SELECT ALL - 63 + + - ( + 85 ) * 93
----
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - COUNT( * ) + 62 + + + 94 + - - ( 99 ) + + - 16 * - 32 * + + 86 + 85 AS col1
----
44371

skipif mysql # not compatible
query I rowsort label-1722
SELECT - COUNT ( * ) + 62 + + + 94 + - - ( 99 ) + + - 16 * - 32 * + + 86 + 85 AS col1
----
44371

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT COUNT( * ) - - 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1723
SELECT COUNT ( * ) - - 52 AS col2
----
53

query I rowsort
SELECT + 24 - - 66 * - 41
----
-2682

query I rowsort
SELECT 80 * - 89
----
-7120

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT 67 + - MIN( ALL - COALESCE ( - - ( - 31 ), 29 ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1726
SELECT 67 + - MIN ( ALL - COALESCE ( - - ( - 31 ), 29 ) ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT COUNT( * ) - + + 34
----
-33

skipif mysql # not compatible
query I rowsort label-1727
SELECT COUNT ( * ) - + + 34
----
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT COUNT( DISTINCT + 70 ) * + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-1729
SELECT COUNT ( DISTINCT + 70 ) * + - 82
----
-82

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

query I rowsort
SELECT 90 + - - 69 AS col2
----
159

query I rowsort
SELECT ALL + - 55 - + + 11
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL - COUNT( 29 ) * + 99 + - + 0 * + - 26
----
-99

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - COUNT ( 29 ) * + 99 + - + 0 * + - 26
----
-99

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

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

query I rowsort
SELECT ALL + 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT - COALESCE ( - + COUNT( * ), 16 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT - COALESCE ( - + COUNT ( * ), 16 ) AS col0
----
1

query I rowsort
SELECT - 5 col2
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1738
SELECT CAST( NULL AS DECIMAL ) * - 62 + + 42 + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT CAST ( NULL AS REAL ) * - 62 + + 42 + 67
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1740
SELECT + 67 + COUNT( * ) AS col1, 47 * + - 56
----
68
-2632

skipif mysql # not compatible
query II rowsort label-1740
SELECT + 67 + COUNT ( * ) AS col1, 47 * + - 56
----
68
-2632

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

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

query I rowsort
SELECT ALL 34 col2
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ALL - COUNT( ALL 9 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL - COUNT ( ALL 9 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT COALESCE ( + 83, + COUNT( * ) ) * 13 + 25
----
1104

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT COALESCE ( + 83, + COUNT ( * ) ) * 13 + 25
----
1104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1746
SELECT MIN( ALL - 28 ) DIV - 25 col1
----
1

skipif mysql # not compatible
query I rowsort label-1746
SELECT MIN ( ALL - 28 ) / - 25 col1
----
1

query I rowsort
SELECT ALL 54 + - 53
----
1

query I rowsort
SELECT ALL 13 + - - 30 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT + CAST( NULL AS SIGNED ) / 65 - - + 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT + CAST ( NULL AS INTEGER ) / 65 - - + 45 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT + COUNT( + 92 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1750
SELECT + COUNT ( + 92 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1751
SELECT + 11, - NULLIF ( + 5, + 85 * 21 - 58 - 15 / - - COUNT( * ) * + CAST( NULL AS SIGNED ) - + 36 + - CAST( - ( - CASE + 91 WHEN - 90 * - 77 * 4 THEN NULL WHEN - 43 * + 25 + + 10 / 87 + 99 THEN - + 76 * + 89 - + 77 ELSE NULL END ) AS SIGNED ) ) AS col1
----
11
-5

skipif mysql # not compatible
query II rowsort label-1751
SELECT + 11, - NULLIF ( + 5, + 85 * 21 - 58 - 15 / - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - + 36 + - CAST ( - ( - CASE + 91 WHEN - 90 * - 77 * 4 THEN NULL WHEN - 43 * + 25 + + 10 / 87 + 99 THEN - + 76 * + 89 - + 77 ELSE NULL END ) AS INTEGER ) ) AS col1
----
11
-5

query II rowsort
SELECT 75, 11 - + 67 AS col1
----
75
-56

query I rowsort
SELECT ALL 0 + + 23 + + 9 * + 21
----
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1754
SELECT CASE + COUNT( * ) WHEN - 69 THEN + 42 + COUNT( * ) / + COUNT( * ) / 4 WHEN - 12 * + 90 + - + 25 + + 88 / - + 63 THEN NULLIF ( + ( - 16 ), - + 24 ) * - 95 * - COUNT( * ) WHEN + + COUNT( 12 ) + 98 THEN NULL ELSE + + CAST( NULL AS SIGNED ) END * + + COALESCE ( 38, - 37 ) + + MAX( 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT CASE + COUNT ( * ) WHEN - 69 THEN + 42 + COUNT ( * ) / + COUNT ( * ) / 4 WHEN - 12 * + 90 + - + 25 + + 88 / - + 63 THEN NULLIF ( + ( - 16 ), - + 24 ) * - 95 * - COUNT ( * ) WHEN + + COUNT ( 12 ) + 98 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END * + + COALESCE ( 38, - 37 ) + + MAX ( 10 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 20 AS col1
----
-20

query I rowsort
SELECT ( + CASE - - 65 WHEN + - 77 THEN NULL WHEN - + 4 THEN NULL WHEN + ( - 54 ) * COALESCE ( + 8, - + 61 + - 91 + - 81 / - 47 ) * + CASE 32 WHEN + + 12 + - 56 THEN - 33 END / - 47 THEN NULL ELSE - 60 - - NULLIF ( - ( + 16 ), - - 69 + - 82 * + 69 ) * + 78 + + - 92 END ) + + + 63 AS col2
----
-1337

onlyif mysql # aggregate syntax: 
query II rowsort label-1757
SELECT COUNT( DISTINCT + 69 ) * - 92 + + - ( - 4 ) - - 21, 73 AS col0
----
-67
73

skipif mysql # not compatible
query II rowsort label-1757
SELECT COUNT ( DISTINCT + 69 ) * - 92 + + - ( - 4 ) - - 21, 73 AS col0
----
-67
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT DISTINCT 5 DIV + + 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT 5 / + + 6 AS col0
----
0

query I rowsort
SELECT DISTINCT 99 - - 22 AS col2
----
121

query I rowsort
SELECT 84 * 38 AS col0
----
3192

query I rowsort
SELECT DISTINCT - + 95 - + 0 AS col2
----
-95

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

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

query I rowsort
SELECT + 22 + - 69 AS col1
----
-47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1765
SELECT DISTINCT CASE + - 17 WHEN + SUM( DISTINCT - ( + - 70 ) ) * - COUNT( ALL - ( - - 62 ) ) * + 6 * + + CASE 33 WHEN - - 72 THEN - - ( + - 45 ) + + ( 54 ) ELSE NULL END THEN - + ( + CAST( NULL AS SIGNED ) ) ELSE NULL END AS col1, + 89 * 57 + COUNT( * ) - + ( + 9 )
----
NULL
5065

skipif mysql # not compatible
query II rowsort label-1765
SELECT DISTINCT CASE + - 17 WHEN + SUM ( DISTINCT - ( + - 70 ) ) * - COUNT ( ALL - ( - - 62 ) ) * + 6 * + + CASE 33 WHEN - - 72 THEN - - ( + - 45 ) + + ( 54 ) ELSE NULL END THEN - + ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END AS col1, + 89 * 57 + COUNT ( * ) - + ( + 9 )
----
NULL
5065

query I rowsort
SELECT NULLIF ( - 93, + - 28 * 4 + 34 * 6 + + 10 ) col2
----
-93

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

query I rowsort
SELECT + + 11 - - 19 AS col0
----
30

query I rowsort
SELECT - - ( - 30 ) - 14 AS col0
----
-44

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

query I rowsort
SELECT ALL + 25 * ( 87 )
----
2175

query I rowsort
SELECT - + COALESCE ( 34, + 78 * + 9 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1773
SELECT - - CAST( - 88 AS SIGNED ) DIV + + ( + + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-1773
SELECT - - CAST ( - 88 AS INTEGER ) / + + ( + + 9 )
----
-9

query I rowsort
SELECT ALL + 75 * - + 13 * + 11 - ( - ( + 84 ) ) col1
----
-10641

query I rowsort
SELECT - 5 - + 43
----
-48

query I rowsort
SELECT ALL - + 73 + + 16
----
-57

query I rowsort
SELECT - 55 - + + 84 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT - 74 + 68 - + 92 * CASE + COUNT( * ) WHEN - 99 THEN 16 END + + - MIN( ALL 17 ) + + 35 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT - 74 + 68 - + 92 * CASE + COUNT ( * ) WHEN - 99 THEN 16 END + + - MIN ( ALL 17 ) + + 35 * 39
----
NULL

query I rowsort
SELECT ALL + 20 + - 19 AS col2
----
1

query I rowsort
SELECT ALL - 56 + - 94
----
-150

query I rowsort
SELECT - 19 + ( + 78 )
----
59

query I rowsort
SELECT + 1 - - + 23 + 15 AS col0
----
39

query I rowsort
SELECT NULLIF ( 62, 94 + - 59 + + 71 )
----
62

query II rowsort
SELECT + 57 col0, 32
----
57
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1785
SELECT CASE ( - CASE 6 WHEN + ( - + 88 ) + - 25 THEN + + CAST( + COUNT( * ) AS DECIMAL ) + - - 14 - + 87 + + + 67 ELSE NULL END ) WHEN + ( - 65 ) * - 13 - + NULLIF ( - 34, AVG ( 66 ) + 99 + + - COUNT( * ) + 44 - - - 68 - 96 / - ( - - 55 ) * - - ( + 41 ) / + 92 * - 25 ) THEN - 68 WHEN 92 + + 82 THEN ( + + 27 ) * - + 97 ELSE + 3 END col1
----
3

skipif mysql # not compatible
query I rowsort label-1785
SELECT CASE ( - CASE 6 WHEN + ( - + 88 ) + - 25 THEN + + CAST ( + COUNT ( * ) AS REAL ) + - - 14 - + 87 + + + 67 ELSE NULL END ) WHEN + ( - 65 ) * - 13 - + NULLIF ( - 34, AVG ( 66 ) + 99 + + - COUNT ( * ) + 44 - - - 68 - 96 / - ( - - 55 ) * - - ( + 41 ) / + 92 * - 25 ) THEN - 68 WHEN 92 + + 82 THEN ( + + 27 ) * - + 97 ELSE + 3 END col1
----
3

query I rowsort
SELECT DISTINCT + ( - - 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT + ( 36 ) + - + 20 + - COUNT( + 85 ) + + MIN( DISTINCT + + 25 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1787
SELECT + ( 36 ) + - + 20 + - COUNT ( + 85 ) + + MIN ( DISTINCT + + 25 ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1788
SELECT ALL 45 * + NULLIF ( - - CAST( + 39 AS SIGNED ), + 6 - 88 ) * + CAST( NULL AS DECIMAL ) + - 47 - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL 45 * + NULLIF ( - - CAST ( + 39 AS INTEGER ), + 6 - 88 ) * + CAST ( NULL AS REAL ) + - 47 - + 62
----
NULL

query I rowsort
SELECT + NULLIF ( - ( - 89 ), 88 ) col0
----
89

query I rowsort
SELECT - ( - 20 ) * + 54 - + 49 * - 96 + 93
----
5877

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT + 11 * 31 * - COUNT( * ) AS col0
----
-341

skipif mysql # not compatible
query I rowsort label-1791
SELECT + 11 * 31 * - COUNT ( * ) AS col0
----
-341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1792
SELECT + CAST( NULL AS SIGNED ) + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT + CAST ( NULL AS INTEGER ) + + 94 AS col1
----
NULL

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

query II rowsort
SELECT 20 AS col1, + 5 AS col0
----
20
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT + 50 * + 2 - - + CAST( - AVG ( DISTINCT 62 ) AS SIGNED ) * SUM( - 77 ) AS col1
----
4874

skipif mysql # not compatible
query I rowsort label-1795
SELECT + 50 * + 2 - - + CAST ( - AVG ( DISTINCT 62 ) AS INTEGER ) * SUM ( - 77 ) AS col1
----
4874

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT ALL 90 DIV + + 63 + - 76 + - 18 - + 72 + - 3 + + 64 * 47 col2
----
2840

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL 90 / + + 63 + - 76 + - 18 - + 72 + - 3 + + 64 * 47 col2
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT + - CASE + 3 WHEN SUM( DISTINCT + ( + + 32 ) ) + - - 58 THEN NULL ELSE + 5 * + ( + 58 ) END - + - COUNT( * ) + 47 + - COUNT( * ) * + 52 AS col0
----
-294

skipif mysql # not compatible
query I rowsort label-1797
SELECT + - CASE + 3 WHEN SUM ( DISTINCT + ( + + 32 ) ) + - - 58 THEN NULL ELSE + 5 * + ( + 58 ) END - + - COUNT ( * ) + 47 + - COUNT ( * ) * + 52 AS col0
----
-294

query II rowsort
SELECT DISTINCT + + 29 AS col1, - 10
----
29
-10

query I rowsort
SELECT ALL + 31 * - 76 + 89 * + 95
----
6099

query I rowsort
SELECT + - ( - 55 ) + + - 78
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1801
SELECT + + 15 + - - 10 + 86 DIV - + 64 - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-1801
SELECT + + 15 + - - 10 + 86 / - + 64 - - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1802
SELECT + + 56 * 61 DIV SUM( - - 82 ) * + 7 + + 73 + - - 78 AS col2
----
438

skipif mysql # not compatible
query I rowsort label-1802
SELECT + + 56 * 61 / SUM ( - - 82 ) * + 7 + + 73 + - - 78 AS col2
----
438

onlyif mysql # DIV for integer division: 
query I rowsort label-1803
SELECT + - 40 + + + 4 DIV + 23
----
-40

skipif mysql # not compatible
query I rowsort label-1803
SELECT + - 40 + + + 4 / + 23
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1804
SELECT - CAST( NULL AS DECIMAL ) - + 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT - CAST ( NULL AS REAL ) - + 81 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1806
SELECT + 66 + - COUNT( * ) AS col0, 48 * + + 90 AS col1
----
65
4320

skipif mysql # not compatible
query II rowsort label-1806
SELECT + 66 + - COUNT ( * ) AS col0, 48 * + + 90 AS col1
----
65
4320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT + COUNT( * ) * - 68 DIV 32 + + 77 + - - 28 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-1807
SELECT + COUNT ( * ) * - 68 / 32 + + 77 + - - 28 AS col1
----
103

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1809
SELECT ALL - 20 col1, + 25 DIV COUNT( * )
----
-20
25

skipif mysql # not compatible
query II rowsort label-1809
SELECT ALL - 20 col1, + 25 / COUNT ( * )
----
-20
25

query I rowsort
SELECT ALL 63 + 85 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT DISTINCT - SUM( DISTINCT 9 ) + COUNT( * ) - - ( - + 26 ) * + COUNT( * ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT - SUM ( DISTINCT 9 ) + COUNT ( * ) - - ( - + 26 ) * + COUNT ( * ) col0
----
-34

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

query I rowsort
SELECT ALL - - 37 + + 11 + 20 AS col0
----
68

query I rowsort
SELECT - - 49 + - 57
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL 37 + - COALESCE ( CASE AVG ( ALL - 35 ) WHEN SUM( DISTINCT - 84 ) * - 19 + - - 19 THEN - 82 WHEN - 31 * 76 THEN NULL WHEN + 18 THEN NULL ELSE 45 END, + COUNT( * ) * - - MIN( DISTINCT - 58 ) ) * + - 11 + 32 * 57 * - COUNT( + ( + - 17 ) ) * - 90
----
164692

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL 37 + - COALESCE ( CASE AVG ( ALL - 35 ) WHEN SUM ( DISTINCT - 84 ) * - 19 + - - 19 THEN - 82 WHEN - 31 * 76 THEN NULL WHEN + 18 THEN NULL ELSE 45 END, + COUNT ( * ) * - - MIN ( DISTINCT - 58 ) ) * + - 11 + 32 * 57 * - COUNT ( + ( + - 17 ) ) * - 90
----
164692

query I rowsort
SELECT - ( 97 ) + - 10
----
-107

query I rowsort
SELECT + COALESCE ( 53, 95 ) * - 3
----
-159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT - COUNT( * ) + COUNT( DISTINCT + 94 ) + + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-1819
SELECT - COUNT ( * ) + COUNT ( DISTINCT + 94 ) + + - 13
----
-13

query I rowsort
SELECT DISTINCT + 98 * + 70
----
6860

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

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

query I rowsort
SELECT - 77 + - - 28
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1823
SELECT 17 DIV - - COALESCE ( CAST( NULL AS SIGNED ), + 48 * 7 + - 37 ) + - 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1823
SELECT 17 / - - COALESCE ( CAST ( NULL AS INTEGER ), + 48 * 7 + - 37 ) + - 16 AS col1
----
-16

query I rowsort
SELECT DISTINCT - 80 * 61 AS col0
----
-4880

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL 73 / - + COUNT( * ) * - CASE + - 78 WHEN - COUNT( * ) THEN + - 10 * + COUNT( * ) + + - 18 END - + 3 + + 40 * 24 * - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL 73 / - + COUNT ( * ) * - CASE + - 78 WHEN - COUNT ( * ) THEN + - 10 * + COUNT ( * ) + + - 18 END - + 3 + + 40 * 24 * - 60 AS col2
----
NULL

query I rowsort
SELECT 26 * - 70 * - - 82 - - + 46 + + 49 AS col0
----
-149145

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1828
SELECT + 87 * - 81 DIV - COUNT( * ) AS col2
----
7047

skipif mysql # not compatible
query I rowsort label-1828
SELECT + 87 * - 81 / - COUNT ( * ) AS col2
----
7047

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

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

query I rowsort
SELECT ALL + + NULLIF ( 80, 37 + - 43 )
----
80

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

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

query I rowsort
SELECT + NULLIF ( - + 91, - 89 - + 8 - + 54 ) AS col2
----
-91

query II rowsort
SELECT ALL + 91 * + 60 * + NULLIF ( + 33, + 25 ) col2, + 17 col0
----
180180
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1834
SELECT COUNT( * ) DIV 55 * + ( - - 53 ) - - - 68
----
-68

skipif mysql # not compatible
query I rowsort label-1834
SELECT COUNT ( * ) / 55 * + ( - - 53 ) - - - 68
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT + + CAST( + 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-1835
SELECT + + CAST ( + 75 AS INTEGER )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT - 20 + + MIN( + 42 ) + - 67
----
-45

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 20 + + MIN ( + 42 ) + - 67
----
-45

query I rowsort
SELECT ALL + COALESCE ( 28, 44 * - + ( 76 ) ) + - 46
----
-18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT - 97 * - 29 * MIN( 21 ) * + SUM( DISTINCT 32 ) AS col1
----
1890336

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - 97 * - 29 * MIN ( 21 ) * + SUM ( DISTINCT 32 ) AS col1
----
1890336

query I rowsort
SELECT DISTINCT 8 + + - 57 AS col0
----
-49

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

skipif mysql # not compatible
query I rowsort label-1841
SELECT - SUM ( DISTINCT 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL - 48 + + SUM( + 35 ) * - 64
----
-2288

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL - 48 + + SUM ( + 35 ) * - 64
----
-2288

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

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

query I rowsort
SELECT 24 - - 73
----
97

query I rowsort
SELECT 50 - - 20
----
70

query I rowsort
SELECT ( 66 ) + - ( + + 67 )
----
-1

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

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT COUNT ( * ) * + 93 AS col1
----
93

query I rowsort
SELECT ALL 83 - + + 53
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1849
SELECT - 44 AS col2, 1 * + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - ( 53 ) / + - CAST( NULL AS SIGNED ) - - + 67 * - + 47 AS col0
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-1849
SELECT - 44 AS col2, 1 * + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - ( 53 ) / + - CAST ( NULL AS INTEGER ) - - + 67 * - + 47 AS col0
----
-44
NULL

query II rowsort
SELECT ALL 45, + 20 AS col0
----
45
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT 89 * NULLIF ( + - 98, COUNT( + + 75 ) ) AS col2
----
-8722

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT 89 * NULLIF ( + - 98, COUNT ( + + 75 ) ) AS col2
----
-8722

query I rowsort
SELECT ALL 47 - + - 87 * - 71 + + - 71 AS col2
----
-6201

query I rowsort
SELECT 4 + - + 77
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1854
SELECT ALL 24 - CASE NULLIF ( - 0, 1 ) WHEN - 30 THEN NULL WHEN 13 * MAX( ALL 54 ) * - MAX( 3 ) / + + 24 - - - 37 + + + CAST( NULL AS DECIMAL ) THEN - 35 * - SUM( + - NULLIF ( + 54, 5 ) ) ELSE - + NULLIF ( + 59, 46 ) END - - 89
----
172

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL 24 - CASE NULLIF ( - 0, 1 ) WHEN - 30 THEN NULL WHEN 13 * MAX ( ALL 54 ) * - MAX ( 3 ) / + + 24 - - - 37 + + + CAST ( NULL AS REAL ) THEN - 35 * - SUM ( + - NULLIF ( + 54, 5 ) ) ELSE - + NULLIF ( + 59, 46 ) END - - 89
----
172

query I rowsort
SELECT 75 * + 62
----
4650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT 10 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT 10 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 0 * - 32
----
0

query I rowsort
SELECT DISTINCT - 49 * + - 86
----
4214

query II rowsort
SELECT + 76, - 38 AS col0
----
76
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT ALL 40 / - + ( + CAST( NULL AS SIGNED ) ) / - MIN( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL 40 / - + ( + CAST ( NULL AS INTEGER ) ) / - MIN ( 9 )
----
NULL

query I rowsort
SELECT - 41 * - - 97
----
-3977

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT DISTINCT - 53 * + + SUM( - 57 ) DIV + COUNT( * ) - + 66
----
2955

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT - 53 * + + SUM ( - 57 ) / + COUNT ( * ) - + 66
----
2955

query II rowsort
SELECT ALL - + 15 AS col0, ( + - 33 ) + - 56 AS col0
----
-15
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT - + 63 + + MAX( + 98 )
----
35

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT - + 63 + + MAX ( + 98 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1865
SELECT ALL - CAST( - 6 AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - CAST ( - 6 AS INTEGER ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT ALL - 4 + - CASE + 24 WHEN + NULLIF ( - + 80, COUNT( * ) * - 0 * - 86 + AVG ( DISTINCT + 66 ) * - + 65 ) + + 53 THEN NULL WHEN - 43 THEN - 73 ELSE ( - ( - 49 ) ) + 43 END
----
-96

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - 4 + - CASE + 24 WHEN + NULLIF ( - + 80, COUNT ( * ) * - 0 * - 86 + AVG ( DISTINCT + 66 ) * - + 65 ) + + 53 THEN NULL WHEN - 43 THEN - 73 ELSE ( - ( - 49 ) ) + 43 END
----
-96

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - - 41 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 10 + - 45 * - ( 90 ) + - 68
----
3992

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT ALL + 88 + - + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL + 88 + - + COUNT ( * )
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT - COUNT( * ) + - - NULLIF ( + + 41, - 82 + - 27 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1873
SELECT - COUNT ( * ) + - - NULLIF ( + + 41, - 82 + - 27 ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT ALL + + 53 + + CAST( CASE + + CASE 74 WHEN + + COALESCE ( - 84, - 93 ) / - 17 THEN + + 95 / - 41 + + COUNT( * ) - 68 WHEN + 17 / - + ( + 48 ) * - + 15 THEN NULL ELSE - 19 END WHEN + - 69 THEN NULL ELSE - + 25 + CAST( 16 AS SIGNED ) * - AVG ( DISTINCT + - 68 ) END AS SIGNED ) AS col0
----
1116

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + + 53 + + CAST ( CASE + + CASE 74 WHEN + + COALESCE ( - 84, - 93 ) / - 17 THEN + + 95 / - 41 + + COUNT ( * ) - 68 WHEN + 17 / - + ( + 48 ) * - + 15 THEN NULL ELSE - 19 END WHEN + - 69 THEN NULL ELSE - + 25 + CAST ( 16 AS INTEGER ) * - AVG ( DISTINCT + - 68 ) END AS INTEGER ) AS col0
----
1116

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT + MIN( ALL + - 81 ) + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1877
SELECT + MIN ( ALL + - 81 ) + COUNT ( * )
----
-80

query I rowsort
SELECT 95 - - - 69 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ALL MAX( ALL - 72 ) - + 46 col1
----
-118

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL MAX ( ALL - 72 ) - + 46 col1
----
-118

query I rowsort
SELECT 52 col2
----
52

query I rowsort
SELECT DISTINCT + 43 - - 22
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL COUNT( * ) - 88 - - 59 - + + CAST( 8 AS SIGNED ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL COUNT ( * ) - 88 - - 59 - + + CAST ( 8 AS INTEGER ) AS col1
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-1883
SELECT DISTINCT 6 DIV + + 67 AS col1, 88
----
0
88

skipif mysql # not compatible
query II rowsort label-1883
SELECT DISTINCT 6 / + + 67 AS col1, 88
----
0
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT COUNT( * ) + - 27 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1884
SELECT COUNT ( * ) + - 27 AS col2
----
-26

query I rowsort
SELECT - 7 AS col1
----
-7

query I rowsort
SELECT DISTINCT 35 * - 28
----
-980

query II rowsort
SELECT ALL 70 * + + 3, 90 * - 28 AS col0
----
210
-2520

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1889
SELECT DISTINCT 99 * - COUNT( * ) * + + COUNT( * ) * CASE + - 71 WHEN - + 80 THEN NULL WHEN COUNT( * ) THEN + - COUNT( * ) + + + CAST( - + 93 AS SIGNED ) - - 29 / - 70 END * ( COUNT( * ) ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT 99 * - COUNT ( * ) * + + COUNT ( * ) * CASE + - 71 WHEN - + 80 THEN NULL WHEN COUNT ( * ) THEN + - COUNT ( * ) + + + CAST ( - + 93 AS INTEGER ) - - 29 / - 70 END * ( COUNT ( * ) ) * 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1890
SELECT - COUNT( * ) * - CAST( NULL AS DECIMAL ) * + ( - 87 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT - COUNT ( * ) * - CAST ( NULL AS REAL ) * + ( - 87 ) + + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1891
SELECT + NULLIF ( 79, COUNT ( * ) - + ( 6 ) )
----
79

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1893
SELECT COUNT( * ) DIV - 36 * + - 86 + + 82 * + ( + + 22 ) AS col0
----
1804

skipif mysql # not compatible
query I rowsort label-1893
SELECT COUNT ( * ) / - 36 * + - 86 + + 82 * + ( + + 22 ) AS col0
----
1804

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1895
SELECT 69 DIV + 92 + - - 19 - - + 88, COUNT( * ) * - CAST( + - ( - + 19 ) AS SIGNED ) DIV 71 * + 69 AS col0
----
107
0

skipif mysql # not compatible
query II rowsort label-1895
SELECT 69 / + 92 + - - 19 - - + 88, COUNT ( * ) * - CAST ( + - ( - + 19 ) AS INTEGER ) / 71 * + 69 AS col0
----
107
0

query I rowsort
SELECT + - 52 * - 88 AS col2
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT DISTINCT - COUNT( * ) * + + 41 * - 92 + - 47 * ( 26 ) * NULLIF ( 69, + 90 ) + + 5 - - 38 * 8 - - 31 AS col2
----
-80206

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT - COUNT ( * ) * + + 41 * - 92 + - 47 * ( 26 ) * NULLIF ( 69, + 90 ) + + 5 - - 38 * 8 - - 31 AS col2
----
-80206

query I rowsort
SELECT ALL + + COALESCE ( - 62, + 76 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT MAX( ALL + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-1899
SELECT MAX ( ALL + 2 )
----
2

query I rowsort
SELECT - 55 + 53 + - 1 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1901
SELECT ALL + 70 * - - 46 + - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) * - ( - 52 ) - 69 + 20 - 42 + - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL + 70 * - - 46 + - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) * - ( - 52 ) - 69 + 20 - 42 + - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT - - COUNT( ( 50 ) ) * 12 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT - - COUNT ( ( 50 ) ) * 12 + COUNT ( * )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT + + 26 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-1903
SELECT + + 26 / - 55
----
0

query I rowsort
SELECT - - 51 * - 80 + + 32 AS col2
----
-4048

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1905
SELECT - + ( - CAST( NULL AS DECIMAL ) ) * - 12 + ( - + CASE - 9 WHEN + - 19 / 54 + ( - 46 ) THEN + 47 + 89 + 53 / - 52 ELSE + 58 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT - + ( - CAST ( NULL AS REAL ) ) * - 12 + ( - + CASE - 9 WHEN + - 19 / 54 + ( - 46 ) THEN + 47 + 89 + 53 / - 52 ELSE + 58 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1906
SELECT + - CAST( 86 AS SIGNED ), - 88 AS col0
----
-86
-88

skipif mysql # not compatible
query II rowsort label-1906
SELECT + - CAST ( 86 AS INTEGER ), - 88 AS col0
----
-86
-88

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

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

query I rowsort
SELECT ALL - - 22 * 50 + - 60
----
1040

query I rowsort
SELECT - 90 * - 26 * - 68 AS col1
----
-159120

query I rowsort
SELECT ALL 36 * - 59
----
-2124

query III rowsort
SELECT DISTINCT 91 AS col2, 9 * + 34, 20 col0
----
91
306
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1912
SELECT - CAST( NULL AS DECIMAL ) - + CAST( 30 AS SIGNED ) AS col1, 44 DIV ( + COUNT( * ) )
----
NULL
44

skipif mysql # not compatible
query II rowsort label-1912
SELECT - CAST ( NULL AS REAL ) - + CAST ( 30 AS INTEGER ) AS col1, 44 / ( + COUNT ( * ) )
----
NULL
44

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT - NULLIF ( COUNT( * ), + 89 / NULLIF ( + - 57, + 72 ) + - - 19 + - COUNT( * ) / - - CASE - 84 WHEN + 10 THEN - ( - + COUNT( - + 29 ) ) * - 1 END ) - - 87 col0
----
86

skipif mysql # not compatible
query I rowsort label-1915
SELECT - NULLIF ( COUNT ( * ), + 89 / NULLIF ( + - 57, + 72 ) + - - 19 + - COUNT ( * ) / - - CASE - 84 WHEN + 10 THEN - ( - + COUNT ( - + 29 ) ) * - 1 END ) - - 87 col0
----
86

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

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

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

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 82 + - COUNT ( * ) * - 50 AS col0
----
-32

query I rowsort
SELECT ALL 8 col0
----
8

query I rowsort
SELECT ALL + 67 * - - 42 AS col1
----
2814

query I rowsort
SELECT DISTINCT 65 AS col1
----
65

query I rowsort
SELECT DISTINCT ( - 46 )
----
-46

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

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

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

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

query I rowsort
SELECT DISTINCT 24 col0
----
24

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

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

query I rowsort
SELECT ALL 28 + 31 * 3 AS col2
----
121

query I rowsort
SELECT ALL ( 95 ) + - 58 * - 27
----
1661

query I rowsort
SELECT - 93 + + 61 * 13
----
700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT + ( - CASE 83 WHEN + 76 + + 41 THEN 32 WHEN + 89 THEN - 38 * ( SUM( - 88 ) * + MIN( ALL 3 * + 41 ) ) ELSE + MIN( 52 ) * - MIN( ALL - ( ( 84 ) ) DIV - 40 ) + - COUNT( * ) END ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-1929
SELECT + ( - CASE 83 WHEN + 76 + + 41 THEN 32 WHEN + 89 THEN - 38 * ( SUM ( - 88 ) * + MIN ( ALL 3 * + 41 ) ) ELSE + MIN ( 52 ) * - MIN ( ALL - ( ( 84 ) ) / - 40 ) + - COUNT ( * ) END ) AS col1
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-1930
SELECT + 10 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT + 10 / - 90 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT + 75 - - CASE CASE 7 WHEN 50 THEN COUNT( * ) ELSE NULL END WHEN - 82 THEN 23 * - 92 END * - COALESCE ( 77 + 30, + 63, MAX( DISTINCT + 1 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT + 75 - - CASE CASE 7 WHEN 50 THEN COUNT ( * ) ELSE NULL END WHEN - 82 THEN 23 * - 92 END * - COALESCE ( 77 + 30, + 63, MAX ( DISTINCT + 1 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL MAX( 70 ) * 37
----
2590

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL MAX ( 70 ) * 37
----
2590

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT ALL + 53 DIV 49 + 32 col1
----
33

skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + 53 / 49 + 32 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + CASE COUNT( * ) WHEN - 16 THEN NULL WHEN 80 + COUNT( * ) THEN + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT + CASE COUNT ( * ) WHEN - 16 THEN NULL WHEN 80 + COUNT ( * ) THEN + 80 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1936
SELECT ALL NULLIF ( SUM( DISTINCT 37 ), 99 * ( 54 ) ) DIV - ( + NULLIF ( + 5, + CAST( 38 AS SIGNED ) + - AVG ( + 97 ) ) * 81 ) + 10
----
10

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL NULLIF ( SUM ( DISTINCT 37 ), 99 * ( 54 ) ) / - ( + NULLIF ( + 5, + CAST ( 38 AS INTEGER ) + - AVG ( + 97 ) ) * 81 ) + 10
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1937
SELECT DISTINCT + ( 6 ) DIV + 56 + - MIN( DISTINCT 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + ( 6 ) / + 56 + - MIN ( DISTINCT 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL NULLIF ( + 1, COUNT( ALL - 94 ) ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL NULLIF ( + 1, COUNT ( ALL - 94 ) ) * + 73
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1940
SELECT 6 * 44 + MIN( 22 ) DIV COUNT( DISTINCT 92 * + ( ( + 93 ) ) ) AS col1
----
286

skipif mysql # not compatible
query I rowsort label-1940
SELECT 6 * 44 + MIN ( 22 ) / COUNT ( DISTINCT 92 * + ( ( + 93 ) ) ) AS col1
----
286

query I rowsort
SELECT DISTINCT 79 * 71
----
5609

query I rowsort
SELECT + 2 * + 66 + 77 * 55 AS col2
----
4367

query I rowsort
SELECT ( - 22 )
----
-22

query I rowsort
SELECT + 96 + 5 AS col2
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT ALL + 70 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL + 70 / 63
----
1

query I rowsort
SELECT + 14 * + 90 + + 47
----
1307

query I rowsort
SELECT DISTINCT + 52 * + ( 69 )
----
3588

onlyif mysql # DIV for integer division: 
query I rowsort label-1948
SELECT DISTINCT 13 DIV - ( + 18 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT 13 / - ( + 18 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL 70 * + 69 - - 85 * COUNT( * ) AS col0
----
4915

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL 70 * + 69 - - 85 * COUNT ( * ) AS col0
----
4915

query I rowsort
SELECT ALL 31 * - 30 AS col2
----
-930

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1951
SELECT - CAST( NULL AS DECIMAL ) + + AVG ( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT - CAST ( NULL AS REAL ) + + AVG ( 18 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT DISTINCT MIN( 43 ) * COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT MIN ( 43 ) * COUNT ( * ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT + COUNT( * ) + ( - ( + COUNT( * ) ) ) * 77
----
-76

skipif mysql # not compatible
query I rowsort label-1954
SELECT + COUNT ( * ) + ( - ( + COUNT ( * ) ) ) * 77
----
-76

query I rowsort
SELECT - 36 * 68 col1
----
-2448

query I rowsort
SELECT ALL CASE 42 WHEN 54 * 75 + 56 THEN 86 ELSE 16 * 6 END
----
96

query I rowsort
SELECT + 0 * + 98 + 25
----
25

query I rowsort
SELECT - 12 - - 90 AS col2
----
78

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

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

query I rowsort
SELECT ALL ( 18 ) AS col2
----
18

query I rowsort
SELECT - 0 * 48 AS col1
----
0

query I rowsort
SELECT DISTINCT CASE + 23 WHEN 94 THEN 32 ELSE - 28 END AS col0
----
-28

query I rowsort
SELECT - 35 * 9 AS col2
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL + COUNT( * ) + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + COUNT ( * ) + - 77
----
-76

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

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

query I rowsort
SELECT 3 * - 89
----
-267

query I rowsort
SELECT 39 + - 13
----
26

query I rowsort
SELECT ALL + 36 + 94 * 42
----
3984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1970
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) + COALESCE ( + 30, + 26 + 63 * - 1 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) + COALESCE ( + 30, + 26 + 63 * - 1 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT + COUNT( * ) + 77
----
78

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT + COUNT ( * ) + 77
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT - 79 * - ( SUM( - 93 ) ) col0
----
-7347

skipif mysql # not compatible
query I rowsort label-1972
SELECT - 79 * - ( SUM ( - 93 ) ) col0
----
-7347

query I rowsort
SELECT 55 + 78
----
133

query I rowsort
SELECT ALL + + 26 * + 11 col0
----
286

query I rowsort
SELECT COALESCE ( - 35, 85 ) AS col0
----
-35

query I rowsort
SELECT ALL + NULLIF ( - 1, 72 ) * - 51
----
51

query I rowsort
SELECT DISTINCT - 25 + 13 AS col0
----
-12

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

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

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL CAST ( NULL AS INTEGER ) + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + - 18 * 18 + COUNT( * ) AS col0
----
-323

skipif mysql # not compatible
query I rowsort label-1980
SELECT + - 18 * 18 + COUNT ( * ) AS col0
----
-323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1981
SELECT + COUNT( * ) DIV 37 + + 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1981
SELECT + COUNT ( * ) / 37 + + 28 AS col0
----
28

query I rowsort
SELECT ALL - 31 - ( NULLIF ( + 55, + 56 ) - + COALESCE ( + 68, 37 - - 10 ) )
----
-18

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

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

query I rowsort
SELECT 58 * - 24
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT 4 * - NULLIF ( COUNT( * ) * + 89 - - COUNT( * ), + 28 )
----
-360

skipif mysql # not compatible
query I rowsort label-1985
SELECT 4 * - NULLIF ( COUNT ( * ) * + 89 - - COUNT ( * ), + 28 )
----
-360

query I rowsort
SELECT 34 + 37 col2
----
71

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

query I rowsort
SELECT DISTINCT + 7 * + 17 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL - COALESCE ( 54, + 35 + NULLIF ( + 26 - ( MIN( ALL - 99 ) ), - COUNT( * ) + 18 ), 18 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL - COALESCE ( 54, + 35 + NULLIF ( + 26 - ( MIN ( ALL - 99 ) ), - COUNT ( * ) + 18 ), 18 ) AS col2
----
-54

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

query I rowsort
SELECT DISTINCT - 86 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + MAX( 25 )
----
25

skipif mysql # not compatible
query I rowsort label-1992
SELECT + MAX ( 25 )
----
25

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

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 86 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 66 AS col0
----
-66

query I rowsort
SELECT DISTINCT - 43 AS col2
----
-43

query I rowsort
SELECT + 35 col2
----
35

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

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

query I rowsort
SELECT ( - 64 ) * 75 AS col2
----
-4800

query I rowsort
SELECT 30 + ( - 5 ) * + 21
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL SUM( ALL ( 90 ) ) + + 24 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL SUM ( ALL ( 90 ) ) + + 24 AS col2
----
114

query I rowsort
SELECT 20 * + + 39 AS col0
----
780

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT ALL 59 DIV + 7
----
8

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL 59 / + 7
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2003
SELECT DISTINCT 76 + 39 + - COALESCE ( CAST( - SUM( 20 ) AS SIGNED ), + COUNT( * ) ) AS col1
----
135

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT 76 + 39 + - COALESCE ( CAST ( - SUM ( 20 ) AS INTEGER ), + COUNT ( * ) ) AS col1
----
135

query I rowsort
SELECT ALL 11 + - 7
----
4

query I rowsort
SELECT 10 - - 20
----
30

query I rowsort
SELECT ( 60 ) + + 7
----
67

query I rowsort
SELECT 22 col2
----
22

query I rowsort
SELECT ALL 72 AS col1
----
72

query I rowsort
SELECT 29 + 89 AS col0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT 64 DIV - + ( + COALESCE ( 47, 9 * + 34 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2010
SELECT 64 / - + ( + COALESCE ( 47, 9 * + 34 ) ) AS col2
----
-1

query I rowsort
SELECT - 76 + + 79
----
3

query I rowsort
SELECT ALL + - 99 - + 97
----
-196

query I rowsort
SELECT - + 57 col1
----
-57

query I rowsort
SELECT ALL - 1 col2
----
-1

query I rowsort
SELECT ALL - 21 - - + 84 AS col1
----
63

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

query I rowsort
SELECT DISTINCT 82 AS col0
----
82

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

query I rowsort
SELECT 19 col1
----
19

query I rowsort
SELECT - NULLIF ( 83, - 78 )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2021
SELECT 72 * CAST( - 47 AS SIGNED ) AS col0
----
-3384

skipif mysql # not compatible
query I rowsort label-2021
SELECT 72 * CAST ( - 47 AS INTEGER ) AS col0
----
-3384

query I rowsort
SELECT ALL - 69 * - 61
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT COUNT( DISTINCT - - 3 ) * 80
----
80

skipif mysql # not compatible
query I rowsort label-2023
SELECT COUNT ( DISTINCT - - 3 ) * 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT COUNT( * ) - 67
----
-66

skipif mysql # not compatible
query I rowsort label-2024
SELECT COUNT ( * ) - 67
----
-66

query I rowsort
SELECT ALL - NULLIF ( + COALESCE ( 26, + ( 98 ) ), 74 ) * + 95 col1
----
-2470

query I rowsort
SELECT DISTINCT - 80 col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2027
SELECT ALL - + 15 * - - NULLIF ( + ( + 6 ), ( CAST( NULL AS SIGNED ) ) ) / - CAST( CASE + COUNT( * ) WHEN 13 THEN - ( 16 ) WHEN 81 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL - + 15 * - - NULLIF ( + ( + 6 ), ( CAST ( NULL AS INTEGER ) ) ) / - CAST ( CASE + COUNT ( * ) WHEN 13 THEN - ( 16 ) WHEN 81 THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT 98 + CAST( MAX( ALL - 2 ) AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-2028
SELECT 98 + CAST ( MAX ( ALL - 2 ) AS INTEGER )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2029
SELECT ALL - - MAX( CAST( + 91 AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL - - MAX ( CAST ( + 91 AS INTEGER ) ) AS col1
----
91

query I rowsort
SELECT ALL 15 * + 60 + 17
----
917

query I rowsort
SELECT NULLIF ( + - 45, 10 + - 44 ) * 81 + 31 AS col1
----
-3614

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT DISTINCT - 26 DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT - 26 / - + 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT + 55 DIV - - 53 + 22 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2033
SELECT + 55 / - - 53 + 22 AS col0
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2035
SELECT ALL 78 * - COALESCE ( 50, - ( - 60 ) DIV CAST( NULL AS SIGNED ) )
----
-3900

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL 78 * - COALESCE ( 50, - ( - 60 ) / CAST ( NULL AS INTEGER ) )
----
-3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2036
SELECT 94 + - 27 * - + CAST( CASE 40 WHEN 15 + ( + CASE 23 WHEN + COALESCE ( + 91, NULLIF ( 26, ( + 38 ) ), - MIN( 18 ), + 27 + + 98 ) * + 24 THEN - 77 END ) THEN MAX( 18 ) * 54 WHEN COUNT( * ) + 87 THEN 60 + - 11 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT 94 + - 27 * - + CAST ( CASE 40 WHEN 15 + ( + CASE 23 WHEN + COALESCE ( + 91, NULLIF ( 26, ( + 38 ) ), - MIN ( 18 ), + 27 + + 98 ) * + 24 THEN - 77 END ) THEN MAX ( 18 ) * 54 WHEN COUNT ( * ) + 87 THEN 60 + - 11 ELSE NULL END AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT ALL - ( COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL - ( COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT - 67 * - 44 * + 18 + + 67
----
53131

query I rowsort
SELECT ALL ( - + 26 ) + 45 * - 10
----
-476

query I rowsort
SELECT ALL - 8 + - - 29 AS col2
----
21

query I rowsort
SELECT 36 * 18 + + + 32
----
680

query I rowsort
SELECT ALL - 45 * + - 88 * + + 72 AS col2
----
285120

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL 24 + + COUNT( * ) + - 86 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL 24 + + COUNT ( * ) + - 86 AS col0
----
-61

query I rowsort
SELECT + 29 + 65 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL 35 + MIN( DISTINCT + 33 )
----
68

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL 35 + MIN ( DISTINCT + 33 )
----
68

query I rowsort
SELECT + 6 + + - 92 + - 83
----
-169

query I rowsort
SELECT ALL COALESCE ( 10, 66 + + 17 * 50 ) + 34 AS col2
----
44

query I rowsort
SELECT + 94 * + + 96 AS col0
----
9024

query I rowsort
SELECT + 99 + 26 AS col0
----
125

query II rowsort
SELECT ALL 16 AS col2, + 48
----
16
48

query II rowsort
SELECT 64 AS col0, + 66 AS col1
----
64
66

query II rowsort
SELECT ALL 27 AS col0, - 54 * - 51
----
27
2754

query I rowsort
SELECT + 97 + - 86 + - 69 - + 32 * + 53 AS col1
----
-1754

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT + 36 * + - 40 + COUNT( * )
----
-1439

skipif mysql # not compatible
query I rowsort label-2055
SELECT + 36 * + - 40 + COUNT ( * )
----
-1439

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + + 53 * - + 24 * - - 1 + 48 * COUNT( * ) AS col2
----
-1224

skipif mysql # not compatible
query I rowsort label-2056
SELECT + + 53 * - + 24 * - - 1 + 48 * COUNT ( * ) AS col2
----
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2057
SELECT ALL - 8 col0, 96 DIV - NULLIF ( COUNT( * ), + 19 DIV + 34 )
----
-8
-96

skipif mysql # not compatible
query II rowsort label-2057
SELECT ALL - 8 col0, 96 / - NULLIF ( COUNT ( * ), + 19 / + 34 )
----
-8
-96

query I rowsort
SELECT + 50 * + 87 + 94 + 47
----
4491

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

query II rowsort
SELECT ALL - 85, - 68 * 94 col1
----
-85
-6392

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + - 92 * + + 21 * + ( - NULLIF ( 47, MAX( 99 ) ) ) AS col0
----
90804

skipif mysql # not compatible
query I rowsort label-2061
SELECT + - 92 * + + 21 * + ( - NULLIF ( 47, MAX ( 99 ) ) ) AS col0
----
90804

query I rowsort
SELECT DISTINCT ( + + 29 ) AS col2
----
29

query I rowsort
SELECT DISTINCT + NULLIF ( + 47, - - 86 * 70 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL + MIN( DISTINCT + - 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL + MIN ( DISTINCT + - 77 ) AS col1
----
-77

query I rowsort
SELECT DISTINCT + + 91
----
91

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

query I rowsort
SELECT ALL 12 * - 64 * + - 81 + ( - 99 )
----
62109

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2069
SELECT - - ( 97 ) * + CAST( 72 AS SIGNED ) AS col2
----
6984

skipif mysql # not compatible
query I rowsort label-2069
SELECT - - ( 97 ) * + CAST ( 72 AS INTEGER ) AS col2
----
6984

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT + + 15 DIV + 76 - 44
----
-44

skipif mysql # not compatible
query I rowsort label-2070
SELECT + + 15 / + 76 - 44
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT - 80 * - COUNT( * ) + + 64
----
144

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT - 80 * - COUNT ( * ) + + 64
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT DISTINCT + 96 * - 13 + - - 61 - - 83 DIV + 65
----
-1186

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT + 96 * - 13 + - - 61 - - 83 / + 65
----
-1186

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL + 47 * + MIN( ALL - 92 ) + - + 97 + 53
----
-4368

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL + 47 * + MIN ( ALL - 92 ) + - + 97 + 53
----
-4368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2076
SELECT ALL - CASE - 37 WHEN COALESCE ( + 80, 89 ) THEN NULL ELSE 20 * - CASE - ( - 23 ) WHEN - 88 THEN NULL ELSE 59 + COALESCE ( + 7, + 36 ) END + - 7 END * + 48 + + ( - ( 47 ) + 9 ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - CASE - 37 WHEN COALESCE ( + 80, 89 ) THEN NULL ELSE 20 * - CASE - ( - 23 ) WHEN - 88 THEN NULL ELSE 59 + COALESCE ( + 7, + 36 ) END + - 7 END * + 48 + + ( - ( 47 ) + 9 ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT COALESCE ( CAST( NULL AS SIGNED ), - - COUNT( * ) + + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2077
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - - COUNT ( * ) + + COUNT ( * ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL + NULLIF ( - 21, - + MAX( ALL + 55 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + NULLIF ( - 21, - + MAX ( ALL + 55 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT DISTINCT - 3 * - - CASE - 82 WHEN + 66 + MAX( + 2 - 60 ) / - 20 THEN MAX( - 37 ) END + ( + 36 - + ( + 74 ) ) / ( - 24 * - 17 + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - 3 * - - CASE - 82 WHEN + 66 + MAX ( + 2 - 60 ) / - 20 THEN MAX ( - 37 ) END + ( + 36 - + ( + 74 ) ) / ( - 24 * - 17 + 99 )
----
NULL

query II rowsort
SELECT - 12 * - 98 AS col0, - 42 + 66 AS col1
----
1176
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2081
SELECT DISTINCT + ( ( CASE - 3 WHEN - CAST( + 79 AS SIGNED ) * - 91 THEN + ( - 87 ) * SUM( ALL 97 ) WHEN 79 / + 87 + ( COUNT( * ) ) THEN - 24 END ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + ( ( CASE - 3 WHEN - CAST ( + 79 AS INTEGER ) * - 91 THEN + ( - 87 ) * SUM ( ALL 97 ) WHEN 79 / + 87 + ( COUNT ( * ) ) THEN - 24 END ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + 28 + + 81
----
1873

onlyif mysql # DIV for integer division: 
query I rowsort label-2083
SELECT 68 * + 19 * + 55 - 24 DIV + 59
----
71060

skipif mysql # not compatible
query I rowsort label-2083
SELECT 68 * + 19 * + 55 - 24 / + 59
----
71060

query I rowsort
SELECT NULLIF ( + 11, 89 * - 29 )
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2085
SELECT - 76 * - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT - 76 * - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT CASE - COUNT( * ) WHEN - - 81 / - - 85 * 88 THEN - 70 + + SUM( 67 ) ELSE ( + ( 81 ) ) + 93 END
----
174

skipif mysql # not compatible
query I rowsort label-2086
SELECT CASE - COUNT ( * ) WHEN - - 81 / - - 85 * 88 THEN - 70 + + SUM ( 67 ) ELSE ( + ( 81 ) ) + 93 END
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2087
SELECT ALL + CAST( - 28 AS SIGNED ) DIV + - SUM( ALL + 3 ) - - 70 * + 84 AS col1
----
5889

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + CAST ( - 28 AS INTEGER ) / + - SUM ( ALL + 3 ) - - 70 * + 84 AS col1
----
5889

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

skipif mysql # not compatible
query I rowsort label-2088
SELECT + COUNT ( * ) / 41
----
0

query I rowsort
SELECT + COALESCE ( + 75, + 12 )
----
75

query I rowsort
SELECT ALL + 93 AS col0
----
93

query I rowsort
SELECT ALL 12 * - 20 - + 13 + - + 18 * + 33
----
-847

query I rowsort
SELECT - 46 * - 50 AS col2
----
2300

query I rowsort
SELECT ALL 18 * - 72 - - 98 AS col1
----
-1198

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT - 31 * 47 - + + SUM( - 97 ) AS col0
----
-1360

skipif mysql # not compatible
query I rowsort label-2094
SELECT - 31 * 47 - + + SUM ( - 97 ) AS col0
----
-1360

query I rowsort
SELECT ALL ( - 73 ) col1
----
-73

query II rowsort
SELECT ALL ( 72 ), + 54 AS col0
----
72
54

query I rowsort
SELECT DISTINCT - ( + 17 ) * + 24
----
-408

query I rowsort
SELECT DISTINCT 55 * 88 col1
----
4840

query I rowsort
SELECT - + 13 + 35 + + 59
----
81

query I rowsort
SELECT + - 7 * 7 + 14 + - 59 * 44 AS col1
----
-2631

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL ( + CASE - - 34 WHEN + 55 + - COUNT( * ) THEN NULL WHEN 21 THEN AVG ( 79 ) + 20 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL ( + CASE - - 34 WHEN + 55 + - COUNT ( * ) THEN NULL WHEN 21 THEN AVG ( 79 ) + 20 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT - - COUNT( * ) + - 21 * - MAX( ALL + 24 ) * 23
----
11593

skipif mysql # not compatible
query I rowsort label-2102
SELECT - - COUNT ( * ) + - 21 * - MAX ( ALL + 24 ) * 23
----
11593

query I rowsort
SELECT + 72 AS col0
----
72

query I rowsort
SELECT - - 89 AS col0
----
89

query I rowsort
SELECT + 97 + 87 + + 5 * 94
----
654

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL - 86 * CASE - - 30 WHEN - + 15 * 76 + 91 THEN NULL WHEN - COUNT( ALL - 95 ) THEN + 51 WHEN + 34 THEN - 22 - 56 ELSE - 89 END + 75
----
7729

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL - 86 * CASE - - 30 WHEN - + 15 * 76 + 91 THEN NULL WHEN - COUNT ( ALL - 95 ) THEN + 51 WHEN + 34 THEN - 22 - 56 ELSE - 89 END + 75
----
7729

query I rowsort
SELECT + + 81 * 85
----
6885

query I rowsort
SELECT + - 6 * + 82
----
-492

query I rowsort
SELECT + 24 + + ( - + 77 ) * - + 7 AS col2
----
563

query I rowsort
SELECT - - CASE + - ( - 77 ) WHEN + 21 THEN - 56 END AS col2
----
NULL

query I rowsort
SELECT ALL + 26 + - 82 - - 48
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + 86 * - 81 + - CASE + COUNT( * ) WHEN 11 + - 58 THEN COUNT( * ) + 78 * - 82 ELSE 76 END + + 77 AS col2
----
-6965

skipif mysql # not compatible
query I rowsort label-2112
SELECT + 86 * - 81 + - CASE + COUNT ( * ) WHEN 11 + - 58 THEN COUNT ( * ) + 78 * - 82 ELSE 76 END + + 77 AS col2
----
-6965

query I rowsort
SELECT - 56 * 24 AS col1
----
-1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2114
SELECT DISTINCT + 75 DIV 51 + - ( + - ( - COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + 75 / 51 + - ( + - ( - COUNT ( * ) ) )
----
0

query II rowsort
SELECT ALL + 39 AS col2, + ( + 39 ) AS col1
----
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2116
SELECT DISTINCT COALESCE ( + 85, - ( + COUNT( * ) ) + + COUNT( * ) * - CAST( NULL AS SIGNED ) ) + 80 * 2 AS col0
----
245

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT COALESCE ( + 85, - ( + COUNT ( * ) ) + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) + 80 * 2 AS col0
----
245

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

query I rowsort
SELECT 72 * + 91 + + - 51 col1
----
6501

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT - 0 * MIN( + 34 )
----
0

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - 0 * MIN ( + 34 )
----
0

query I rowsort
SELECT ALL - 84 AS col0
----
-84

query I rowsort
SELECT 19 + + 77 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT 73 * - ( - COUNT( * ) ) - - 62 col1
----
135

skipif mysql # not compatible
query I rowsort label-2122
SELECT 73 * - ( - COUNT ( * ) ) - - 62 col1
----
135

query I rowsort
SELECT 29 + - 7 - 40 + - 33 - 97 + - 9 * + 22 col0
----
-346

onlyif mysql # aggregate syntax: 
query II rowsort label-2124
SELECT ALL - 74 AS col1, + 68 + + COUNT( * )
----
-74
69

skipif mysql # not compatible
query II rowsort label-2124
SELECT ALL - 74 AS col1, + 68 + + COUNT ( * )
----
-74
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL + 82 * ( + SUM( DISTINCT 63 ) ) AS col0
----
5166

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + 82 * ( + SUM ( DISTINCT 63 ) ) AS col0
----
5166

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

query I rowsort
SELECT + 64 * - 28 + + 8 col1
----
-1784

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2128
SELECT ALL + SUM( + 45 ) - 17 + + + 20 - - - 43 * CAST( NULL AS DECIMAL ) * - 36 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL + SUM ( + 45 ) - 17 + + + 20 - - - 43 * CAST ( NULL AS REAL ) * - 36 * + 6
----
NULL

query I rowsort
SELECT 64 + + 13 + - - 94 + + 22
----
193

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

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

query I rowsort
SELECT 38 * - - 75 AS col2
----
2850

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT DISTINCT + + 75 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT + + 75 / 55
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT ALL + + ( - 77 ) * - COUNT( * ), ( + - 49 ) * - 32 AS col2
----
77
1568

skipif mysql # not compatible
query II rowsort label-2135
SELECT ALL + + ( - 77 ) * - COUNT ( * ), ( + - 49 ) * - 32 AS col2
----
77
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL - 12 + COUNT( 9 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL - 12 + COUNT ( 9 ) AS col1
----
-11

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

skipif mysql # not compatible
query II rowsort label-2137
SELECT - - 58 AS col1, - COUNT ( * )
----
58
-1

query I rowsort
SELECT DISTINCT + 90 * - 19 * - 93
----
159030

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + 32 + MIN( - 18 )
----
14

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + 32 + MIN ( - 18 )
----
14

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

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

query I rowsort
SELECT + 95 * - - 87 * + - 5 + ( 50 ) * 34
----
-39625

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL + - 96 + + MIN( - 0 )
----
-96

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + - 96 + + MIN ( - 0 )
----
-96

query I rowsort
SELECT - - 83
----
83

query I rowsort
SELECT 14 + - 12
----
2

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

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

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

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

query I rowsort
SELECT - 3 AS col1
----
-3

query I rowsort
SELECT DISTINCT 42 AS col2
----
42

query I rowsort
SELECT ALL + + 53 + 14 AS col1
----
67

query I rowsort
SELECT ALL ( - 26 ) * + 96 AS col0
----
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT 77 DIV + 37 + 38 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2151
SELECT 77 / + 37 + 38 AS col2
----
40

query I rowsort
SELECT ALL ( + - 48 ) - + 8
----
-56

query I rowsort
SELECT NULLIF ( - 66, - 47 ) * - 25 * + 76
----
125400

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL ( 60 ) * - - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL ( 60 ) * - - COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2155
SELECT NULLIF ( - 21, + 56 ) DIV + 72 + MAX( DISTINCT 17 ) - 52
----
-35

skipif mysql # not compatible
query I rowsort label-2155
SELECT NULLIF ( - 21, + 56 ) / + 72 + MAX ( DISTINCT 17 ) - 52
----
-35

query II rowsort
SELECT 94, 71 * - + COALESCE ( - 64, 66, - 88 ) AS col1
----
94
4544

query II rowsort
SELECT + 45, 67 col0
----
45
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT COUNT( * ) - + 73
----
-72

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT COUNT ( * ) - + 73
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT CAST( NULL AS SIGNED ) * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT CAST ( NULL AS INTEGER ) * 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2160
SELECT ALL - 3, ( + 85 ) * + 68 * - + 6 + - 49 + + COUNT( * ) * + 88 DIV + 56 AS col0
----
-3
-34728

skipif mysql # not compatible
query II rowsort label-2160
SELECT ALL - 3, ( + 85 ) * + 68 * - + 6 + - 49 + + COUNT ( * ) * + 88 / + 56 AS col0
----
-3
-34728

onlyif mysql # aggregate syntax: 
query II rowsort label-2161
SELECT 80 AS col1, COUNT( * ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-2161
SELECT 80 AS col1, COUNT ( * ) AS col0
----
80
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2163
SELECT ALL - 93, + MIN( DISTINCT 72 ) AS col0
----
-93
72

skipif mysql # not compatible
query II rowsort label-2163
SELECT ALL - 93, + MIN ( DISTINCT 72 ) AS col0
----
-93
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT - 22 * - + COUNT( * ) * + 54 - CASE + - AVG ( DISTINCT + ( 54 ) ) WHEN 7 * - 24 THEN 6 * + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT - 22 * - + COUNT ( * ) * + 54 - CASE + - AVG ( DISTINCT + ( 54 ) ) WHEN 7 * - 24 THEN 6 * + 94 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2165
SELECT 75, + 90 DIV + 73 AS col0
----
75
1

skipif mysql # not compatible
query II rowsort label-2165
SELECT 75, + 90 / + 73 AS col0
----
75
1

query I rowsort
SELECT 44 - + 44
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2167
SELECT 83 * + CAST( - + 19 AS SIGNED ) AS col2
----
-1577

skipif mysql # not compatible
query I rowsort label-2167
SELECT 83 * + CAST ( - + 19 AS INTEGER ) AS col2
----
-1577

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT + MIN( ALL + CASE - 72 WHEN - 58 THEN + 19 ELSE - - 82 END )
----
82

skipif mysql # not compatible
query I rowsort label-2168
SELECT + MIN ( ALL + CASE - 72 WHEN - 58 THEN + 19 ELSE - - 82 END )
----
82

query I rowsort
SELECT ALL + + COALESCE ( + 39, + 16, 33 * 88 + - - 25 ) * 12
----
468

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

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

query II rowsort
SELECT ALL - + 69, 76 AS col2
----
-69
76

query I rowsort
SELECT + - 80
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT - NULLIF ( + - 80, + COALESCE ( + + COUNT( - 69 ), - 91 + CAST( 70 AS SIGNED ) ) + 50 ) * 36 col2
----
2880

skipif mysql # not compatible
query I rowsort label-2173
SELECT - NULLIF ( + - 80, + COALESCE ( + + COUNT ( - 69 ), - 91 + CAST ( 70 AS INTEGER ) ) + 50 ) * 36 col2
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT ALL + 41 + NULLIF ( COUNT( * ), MAX( ALL - + 92 ) / - - 81 + - 58 + - 96 )
----
42

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL + 41 + NULLIF ( COUNT ( * ), MAX ( ALL - + 92 ) / - - 81 + - 58 + - 96 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2175
SELECT DISTINCT COALESCE ( + 26, 55 DIV - 56, + 84 ) + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT COALESCE ( + 26, 55 / - 56, + 84 ) + - COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT - 13 AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT ALL - 61 + + NULLIF ( - + 49, + CAST( 13 AS SIGNED ) + + 81 ) + - CAST( NULL AS SIGNED ) * NULLIF ( 36, 12 * 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL - 61 + + NULLIF ( - + 49, + CAST ( 13 AS INTEGER ) + + 81 ) + - CAST ( NULL AS INTEGER ) * NULLIF ( 36, 12 * 39 )
----
NULL

query I rowsort
SELECT - 35 AS col2
----
-35

query I rowsort
SELECT ALL - 50 + 63
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT DISTINCT + - COUNT( * ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT + - COUNT ( * ) * - 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + 79 * + + CASE + 74 WHEN 7 THEN + COUNT( * ) WHEN 77 + 70 THEN 99 ELSE NULL END * 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2181
SELECT + 79 * + + CASE + 74 WHEN 7 THEN + COUNT ( * ) WHEN 77 + 70 THEN 99 ELSE NULL END * 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2182
SELECT - 19, 23 - + COUNT( * ) DIV + 31 * + 62 AS col2
----
-19
23

skipif mysql # not compatible
query II rowsort label-2182
SELECT - 19, 23 - + COUNT ( * ) / + 31 * + 62 AS col2
----
-19
23

query I rowsort
SELECT ALL + 0 + - 79 + 93 AS col2
----
14

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

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

query I rowsort
SELECT ALL - + 6 + + - 42 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL - CAST( NULL AS SIGNED ) / + MIN( 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - CAST ( NULL AS INTEGER ) / + MIN ( 84 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - CASE 2 WHEN 67 THEN + 60 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 18 * + - 4 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2190
SELECT DISTINCT + 7 + + ( - + ( COUNT( * ) ) ) - 88 + + CAST( 63 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + 7 + + ( - + ( COUNT ( * ) ) ) - 88 + + CAST ( 63 AS INTEGER )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2191
SELECT ALL + 85 - + + 15, ( + + CAST( + 63 AS SIGNED ) ) AS col2
----
70
63

skipif mysql # not compatible
query II rowsort label-2191
SELECT ALL + 85 - + + 15, ( + + CAST ( + 63 AS INTEGER ) ) AS col2
----
70
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2192
SELECT - + ( ( CAST( NULL AS DECIMAL ) ) ) + - 32 - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT - + ( ( CAST ( NULL AS REAL ) ) ) + - 32 - 2
----
NULL

query I rowsort
SELECT ALL + 74 * + 54 AS col2
----
3996

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT + COUNT( * ) * + + 71
----
71

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT + COUNT ( * ) * + + 71
----
71

query I rowsort
SELECT ALL COALESCE ( + 53, + 39 ) AS col2
----
53

query I rowsort
SELECT ALL + CASE - - 6 WHEN + + 54 THEN NULLIF ( 73, - 55 ) * - - 8 END * 46 col2
----
NULL

query II rowsort
SELECT - 77 * - 76 col1, 82
----
5852
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT - 53 + + - 62 + + SUM( + - 1 ) AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-2198
SELECT - 53 + + - 62 + + SUM ( + - 1 ) AS col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT NULLIF ( COUNT( * ), - + 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2199
SELECT NULLIF ( COUNT ( * ), - + 99 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT ALL + SUM( + - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + SUM ( + - 57 )
----
-57

query I rowsort
SELECT CASE - 17 WHEN - - 13 THEN + 56 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT + 19 DIV + 34 - + - 69 * 5
----
345

skipif mysql # not compatible
query I rowsort label-2202
SELECT + 19 / + 34 - + - 69 * 5
----
345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2203
SELECT ALL 5 DIV - 85 DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL 5 / - 85 / COUNT ( * )
----
0

query I rowsort
SELECT - 11 * - 28 col0
----
308

query II rowsort
SELECT 10 * - 49 + - + ( 90 ) * 99, + 28 AS col1
----
-9400
28

query II rowsort
SELECT DISTINCT 40 * + 66, 66 * - - 13 AS col1
----
2640
858

query I rowsort
SELECT - 56 * - - 37 + - 53
----
-2125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT + NULLIF ( CAST( 37 AS SIGNED ), + + COUNT( * ) ) - + 65
----
-28

skipif mysql # not compatible
query I rowsort label-2208
SELECT + NULLIF ( CAST ( 37 AS INTEGER ), + + COUNT ( * ) ) - + 65
----
-28

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

skipif mysql # not compatible
query I rowsort label-2209
SELECT + 69 / - COUNT ( * ) col2
----
-69

query I rowsort
SELECT + 81 + 11 * 20
----
301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2211
SELECT CAST( NULL AS SIGNED ) * - CASE - + 27 WHEN - 44 THEN NULL ELSE - 52 END - - MIN( ALL + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT CAST ( NULL AS INTEGER ) * - CASE - + 27 WHEN - 44 THEN NULL ELSE - 52 END - - MIN ( ALL + 20 )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2213
SELECT + CASE + 93 WHEN + 38 THEN NULL WHEN + 87 THEN + 76 END + - - CASE 46 WHEN 32 / - NULLIF ( 28 * - 1, + MIN( ALL 77 ) + - COUNT( * ) ) THEN 71 WHEN - 98 THEN 35 WHEN - COUNT( * ) THEN NULL END * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT + CASE + 93 WHEN + 38 THEN NULL WHEN + 87 THEN + 76 END + - - CASE 46 WHEN 32 / - NULLIF ( 28 * - 1, + MIN ( ALL 77 ) + - COUNT ( * ) ) THEN 71 WHEN - 98 THEN 35 WHEN - COUNT ( * ) THEN NULL END * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + 78 ) * + + 92 * - 40 + + 72 col1
----
-286968

query I rowsort
SELECT ALL + + 58 AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2216
SELECT ALL + 0 * + 40 + - 34 + 86 + - ( COUNT( * ) ) DIV 82 * 28 + 47 + - 59 * 57 col2
----
-3264

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + 0 * + 40 + - 34 + 86 + - ( COUNT ( * ) ) / 82 * 28 + 47 + - 59 * 57 col2
----
-3264

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

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

query I rowsort
SELECT ALL + 28 AS col0
----
28

query I rowsort
SELECT + + 43 AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2220
SELECT + - 24 * 49 DIV + SUM( 33 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2220
SELECT + - 24 * 49 / + SUM ( 33 ) AS col0
----
-35

query I rowsort
SELECT CASE - 86 WHEN 78 * + + 51 * - + 37 THEN + AVG ( COALESCE ( 27, 57 + - 77 ) ) END
----
NULL

query I rowsort
SELECT DISTINCT 65 + + 74 AS col2
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL - CAST( 27 AS SIGNED ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - CAST ( 27 AS INTEGER ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL - 69 - + NULLIF ( - 35, 78 / 9 + + COALESCE ( 63, 91 * 78 ) * 91 ) - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL - 69 - + NULLIF ( - 35, 78 / 9 + + COALESCE ( 63, 91 * 78 ) * 91 ) - COUNT ( * )
----
-35

query I rowsort
SELECT + 52 * - - 55 col0
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - ( - MAX( 70 ) ) col1
----
70

skipif mysql # not compatible
query I rowsort label-2226
SELECT - ( - MAX ( 70 ) ) col1
----
70

query I rowsort
SELECT - 98 col1
----
-98

query I rowsort
SELECT - 82 col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL COALESCE ( + ( - COUNT( * ) ), 76, + 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL COALESCE ( + ( - COUNT ( * ) ), 76, + 82 ) AS col0
----
-1

query I rowsort
SELECT - 83 * + - 88 AS col0
----
7304

query I rowsort
SELECT - 95 + 48 AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2232
SELECT DISTINCT - 41 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT - 41 / 92
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL SUM( ALL - + 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL SUM ( ALL - + 92 ) AS col0
----
-92

query I rowsort
SELECT ALL - 14 * + 79 col2
----
-1106

query I rowsort
SELECT ALL + 59 * - 74
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - NULLIF ( - MAX( DISTINCT - ( + - 32 ) ), + 61 / + 30 + - 51 ) + - - ( + 94 ) * - 73 AS col2
----
-6830

skipif mysql # not compatible
query I rowsort label-2237
SELECT - NULLIF ( - MAX ( DISTINCT - ( + - 32 ) ), + 61 / + 30 + - 51 ) + - - ( + 94 ) * - 73 AS col2
----
-6830

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT - MIN( + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-2238
SELECT - MIN ( + 95 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2239
SELECT + 52 DIV 79 + 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2239
SELECT + 52 / 79 + 93 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2240
SELECT ALL - 51 DIV 90 + + - 61 + - 7
----
-68

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - 51 / 90 + + - 61 + - 7
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2241
SELECT CAST( NULL AS SIGNED ) AS col2, 14 AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-2241
SELECT CAST ( NULL AS INTEGER ) AS col2, 14 AS col0
----
NULL
14

query I rowsort
SELECT - 94 * + + 64
----
-6016

query II rowsort
SELECT + 61, 20 AS col2
----
61
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2244
SELECT CAST( - MIN( - - 38 ) AS SIGNED ) AS col1, COUNT( * ) + 5 + + + 10 DIV + 12
----
-38
6

skipif mysql # not compatible
query II rowsort label-2244
SELECT CAST ( - MIN ( - - 38 ) AS INTEGER ) AS col1, COUNT ( * ) + 5 + + + 10 / + 12
----
-38
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT ALL 26 DIV - 45 * + - ( + 49 ) + + + 80 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL 26 / - 45 * + - ( + 49 ) + + + 80 / + 48
----
1

query II rowsort
SELECT + 97 AS col2, 3 * + ( + + 81 )
----
97
243

query I rowsort
SELECT DISTINCT + + 90 AS col1
----
90

query II rowsort
SELECT ALL + 22 AS col2, - 70 + + 93 * + 51
----
22
4673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2249
SELECT + 34 * - NULLIF ( + 3, - CAST( NULL AS SIGNED ) ) - + 63 DIV + COUNT( * ) + - 66 DIV 32
----
-167

skipif mysql # not compatible
query I rowsort label-2249
SELECT + 34 * - NULLIF ( + 3, - CAST ( NULL AS INTEGER ) ) - + 63 / + COUNT ( * ) + - 66 / 32
----
-167

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2250
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 28
----
NULL

query I rowsort
SELECT ALL - 17 * - + 9 + 32 - 35 + 14 + 98 * + 69 AS col1
----
6926

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT - - COUNT( * ) - 17 * - 54
----
919

skipif mysql # not compatible
query I rowsort label-2252
SELECT - - COUNT ( * ) - 17 * - 54
----
919

query I rowsort
SELECT + + 48 * + 28 AS col1
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT ( + COUNT( * ) ) * 8
----
8

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT ( + COUNT ( * ) ) * 8
----
8

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

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

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

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

query I rowsort
SELECT DISTINCT - 99 col1
----
-99

query I rowsort
SELECT - 64 - - 69
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2259
SELECT - 27 AS col0, + COALESCE ( + ( - 68 ), - 74 + - 25, 68 DIV - + 43 ) + 76 * 84 AS col2
----
-27
6316

skipif mysql # not compatible
query II rowsort label-2259
SELECT - 27 AS col0, + COALESCE ( + ( - 68 ), - 74 + - 25, 68 / - + 43 ) + 76 * 84 AS col2
----
-27
6316

query I rowsort
SELECT - - 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL + MIN( ALL + - 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL + MIN ( ALL + - 74 ) AS col2
----
-74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2263
SELECT CAST( + - 12 AS SIGNED ) * 87 + + + NULLIF ( - + 30, 4 ) * 57 * 92 * NULLIF ( - 0, + 25 ) AS col0
----
-1044

skipif mysql # not compatible
query I rowsort label-2263
SELECT CAST ( + - 12 AS INTEGER ) * 87 + + + NULLIF ( - + 30, 4 ) * 57 * 92 * NULLIF ( - 0, + 25 ) AS col0
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT + 30 + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-2264
SELECT + 30 + COUNT ( * )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2265
SELECT ALL - 71 AS col0, + 84 / - + CAST( NULL AS SIGNED )
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-2265
SELECT ALL - 71 AS col0, + 84 / - + CAST ( NULL AS INTEGER )
----
-71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT 23 + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-2266
SELECT 23 + + COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT 58 - - 42 + + 80 * - COUNT( * ) * - + 3 col2
----
340

skipif mysql # not compatible
query I rowsort label-2267
SELECT 58 - - 42 + + 80 * - COUNT ( * ) * - + 3 col2
----
340

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

skipif mysql # not compatible
query I rowsort label-2268
SELECT 29 * - - COUNT ( * )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT ( + 53 ) + + NULLIF ( + - 76, - CAST( NULL AS SIGNED ) * - 13 + + 68 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2269
SELECT ( + 53 ) + + NULLIF ( + - 76, - CAST ( NULL AS INTEGER ) * - 13 + + 68 ) AS col1
----
-23

query I rowsort
SELECT DISTINCT 34 col2
----
34

query I rowsort
SELECT ALL - 28 * + ( + 72 )
----
-2016

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2273
SELECT 57 + + CAST( COUNT( ALL - - 39 ) AS SIGNED ) + 91
----
149

skipif mysql # not compatible
query I rowsort label-2273
SELECT 57 + + CAST ( COUNT ( ALL - - 39 ) AS INTEGER ) + 91
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-2274
SELECT 73 DIV + + 56 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2274
SELECT 73 / + + 56 AS col0
----
1

query I rowsort
SELECT NULLIF ( - COALESCE ( - ( + COALESCE ( + 9, - ( + ( + ( + 42 ) ) ), 37 ) ), ( 97 ) ), 3 ) + 29 AS col1
----
38

query I rowsort
SELECT - 8 col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2277
SELECT ALL + 92 DIV + 55 AS col1, 51 * + COUNT( * ) * + + MAX( 97 ) + - - MAX( DISTINCT ( + 42 ) )
----
1
4989

skipif mysql # not compatible
query II rowsort label-2277
SELECT ALL + 92 / + 55 AS col1, 51 * + COUNT ( * ) * + + MAX ( 97 ) + - - MAX ( DISTINCT ( + 42 ) )
----
1
4989

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT DISTINCT - 38 + - 74 * - - 26 + - - COUNT( * ) * + 42 + - 52 AS col0
----
-1972

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT - 38 + - 74 * - - 26 + - - COUNT ( * ) * + 42 + - 52 AS col0
----
-1972

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT DISTINCT 81 DIV - ( 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT 81 / - ( 44 ) AS col2
----
-1

query I rowsort
SELECT 82 * + 56 * + - 29 AS col0
----
-133168

query I rowsort
SELECT - CASE + 31 WHEN - ( CASE - 50 WHEN - 27 THEN NULL WHEN AVG ( DISTINCT + 44 ) * + + 21 * 45 THEN NULL ELSE 85 END ) THEN 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL - + 62 + 39 + - - 88 * + + 93 + + ( 54 ) + - - 48 + 33 + - + COUNT( * ) + + 21 * + 88
----
10143

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - + 62 + 39 + - - 88 * + + 93 + + ( 54 ) + - - 48 + 33 + - + COUNT ( * ) + + 21 * + 88
----
10143

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT - 98 + + - 42 + + COUNT( * ) col1
----
-139

skipif mysql # not compatible
query I rowsort label-2284
SELECT - 98 + + - 42 + + COUNT ( * ) col1
----
-139

query I rowsort
SELECT - 70 * - 87 - 53 AS col1
----
6037

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2286
SELECT ALL + 22 - 22 + 79 * - CAST( NULL AS DECIMAL ) + - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL + 22 - 22 + 79 * - CAST ( NULL AS REAL ) + - + 11
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 74, - 85, - 72 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2288
SELECT - 78 * 19 + + SUM( DISTINCT - 92 ) + - - 38, + COALESCE ( - COALESCE ( 71, 19 * 56 + 9, + 47 ), 4 ) DIV - 16 AS col0
----
-1536
4

skipif mysql # not compatible
query II rowsort label-2288
SELECT - 78 * 19 + + SUM ( DISTINCT - 92 ) + - - 38, + COALESCE ( - COALESCE ( 71, 19 * 56 + 9, + 47 ), 4 ) / - 16 AS col0
----
-1536
4

query I rowsort
SELECT DISTINCT - 30 * + 77 AS col0
----
-2310

query I rowsort
SELECT DISTINCT - - 13
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT - CAST( 75 AS SIGNED ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-2291
SELECT - CAST ( 75 AS INTEGER ) AS col0
----
-75

query II rowsort
SELECT 75 * + - 35 AS col2, + 51
----
-2625
51

query I rowsort
SELECT + 61 + - + ( 33 ) - 99 * + 33 AS col1
----
-3239

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT ALL + 86 DIV - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + 86 / - COUNT ( * ) AS col1
----
-86

query I rowsort
SELECT - 70 * + 42 * + 98
----
-288120

query I rowsort
SELECT + + 52
----
52

query I rowsort
SELECT 20 col0
----
20

query I rowsort
SELECT ALL 58 * - ( - 24 )
----
1392

query I rowsort
SELECT NULLIF ( + 5, 71 + - 54 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT + 2 * 28 + + MIN( 17 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-2300
SELECT + 2 * 28 + + MIN ( 17 ) col2
----
73

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

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL 36 / + + COUNT ( * )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2302
SELECT DISTINCT CAST( NULL AS SIGNED ) + 48 + - ( - 88 ) + + + COUNT( * ) * COUNT( * ) * - 90 * 54 * - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 48 + - ( - 88 ) + + + COUNT ( * ) * COUNT ( * ) * - 90 * 54 * - + 33
----
NULL

query II rowsort
SELECT 82 col0, 39 * 71
----
82
2769

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT COUNT( * ) - + 20 * + MAX( 2 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-2304
SELECT COUNT ( * ) - + 20 * + MAX ( 2 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT COUNT( ALL - - 93 ) * - 79 * + 93 AS col2
----
-7347

skipif mysql # not compatible
query I rowsort label-2305
SELECT COUNT ( ALL - - 93 ) * - 79 * + 93 AS col2
----
-7347

query I rowsort
SELECT ALL 47 + + 53 AS col1
----
100

query I rowsort
SELECT DISTINCT 11 * + ( + 70 ) AS col0
----
770

query I rowsort
SELECT DISTINCT 70 + 99 * + 29 AS col1
----
2941

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT ALL 40 * - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL 40 * - COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT DISTINCT 65 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT 75 * + COUNT( * ) * + 29 AS col1
----
2175

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT 75 * + COUNT ( * ) * + 29 AS col1
----
2175

query II rowsort
SELECT 68 col1, 23 AS col0
----
68
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2313
SELECT ALL 87 * - MAX( - 50 ) - - 16 + + 41 DIV COUNT( * )
----
4407

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL 87 * - MAX ( - 50 ) - - 16 + + 41 / COUNT ( * )
----
4407

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

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

query I rowsort
SELECT - 43 * - 63
----
2709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2316
SELECT DISTINCT - COUNT( * ), CAST( 71 AS SIGNED ) * + 77 AS col0
----
-1
5467

skipif mysql # not compatible
query II rowsort label-2316
SELECT DISTINCT - COUNT ( * ), CAST ( 71 AS INTEGER ) * + 77 AS col0
----
-1
5467

query II rowsort
SELECT ALL + + 35 AS col2, 7
----
35
7

query I rowsort
SELECT - - 87 * - - 18 + + 44 + - 69
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT SUM( ALL 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-2319
SELECT SUM ( ALL 42 ) col2
----
42

query I rowsort
SELECT ALL - ( + - 20 ) * + 28 AS col0
----
560

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

query I rowsort
SELECT + 72 * - - 20 * - 62 col2
----
-89280

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + + COUNT( * ) * + 17 * - 26 + COUNT( * ) AS col0
----
-441

skipif mysql # not compatible
query I rowsort label-2323
SELECT + + COUNT ( * ) * + 17 * - 26 + COUNT ( * ) AS col0
----
-441

query I rowsort
SELECT - ( + - 9 ) * - 29
----
-261

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT - - CAST( - + 11 AS SIGNED ) * + 55 / + CAST( NULL AS SIGNED ) * - - COUNT( * ) + MAX( ALL 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT - - CAST ( - + 11 AS INTEGER ) * + 55 / + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + MAX ( ALL 93 )
----
NULL

query I rowsort
SELECT - 67 col2
----
-67

query I rowsort
SELECT + 71 * + 7 + 60 + 72 AS col2
----
629

query I rowsort
SELECT DISTINCT + 96 * + 13 AS col0
----
1248

query I rowsort
SELECT ALL + COALESCE ( + 67, 0 * - 38, - 30 * 22 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2331
SELECT + CAST( - NULLIF ( MAX( 43 ), - - 20 ) AS SIGNED ) col1, - 11
----
-43
-11

skipif mysql # not compatible
query II rowsort label-2331
SELECT + CAST ( - NULLIF ( MAX ( 43 ), - - 20 ) AS INTEGER ) col1, - 11
----
-43
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT ALL + + 50 * - SUM( 19 ) AS col0, 7 + - 4
----
-950
3

skipif mysql # not compatible
query II rowsort label-2332
SELECT ALL + + 50 * - SUM ( 19 ) AS col0, 7 + - 4
----
-950
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT ALL 95 + + 96 col2, ( - 18 ) * - - COUNT( * ) AS col1
----
191
-18

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL 95 + + 96 col2, ( - 18 ) * - - COUNT ( * ) AS col1
----
191
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - COALESCE ( - 19, 84 ) - 77 + + 40 * + COUNT( * ) / + 49 * + - CASE - 44 WHEN 83 + + ( 59 ) + + SUM( + 53 + + 82 ) THEN - COUNT( * ) WHEN SUM( + 30 ) * 98 THEN NULL END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT - COALESCE ( - 19, 84 ) - 77 + + 40 * + COUNT ( * ) / + 49 * + - CASE - 44 WHEN 83 + + ( 59 ) + + SUM ( + 53 + + 82 ) THEN - COUNT ( * ) WHEN SUM ( + 30 ) * 98 THEN NULL END + + COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + 28 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT - 71 + 26 * - NULLIF ( - 24, 96 - + NULLIF ( - - 20, - CASE 47 WHEN + 35 + - 88 THEN - 17 ELSE - 89 * ( 15 ) END ) ) * - COUNT( * ) + 1 * 99 AS col2
----
-596

skipif mysql # not compatible
query I rowsort label-2336
SELECT - 71 + 26 * - NULLIF ( - 24, 96 - + NULLIF ( - - 20, - CASE 47 WHEN + 35 + - 88 THEN - 17 ELSE - 89 * ( 15 ) END ) ) * - COUNT ( * ) + 1 * 99 AS col2
----
-596

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

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

query II rowsort
SELECT ALL 35 + 46 AS col1, 24
----
81
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT - 41 + + MIN( - 89 ) col2
----
-130

skipif mysql # not compatible
query I rowsort label-2339
SELECT - 41 + + MIN ( - 89 ) col2
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2340
SELECT ALL - CASE - - 78 WHEN + 51 THEN - 15 * + 28 * 56 + 98 WHEN + 29 + + + CAST( NULL AS SIGNED ) THEN + ( - - 49 ) * 1 WHEN NULLIF ( 15, + 50 * 45 ) THEN NULL WHEN - CASE - AVG ( 45 ) WHEN - MAX( + CAST( NULL AS SIGNED ) ) * - 32 THEN NULL WHEN - 96 THEN CAST( NULL AS SIGNED ) ELSE NULL END THEN COUNT( * ) END + 62 * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL - CASE - - 78 WHEN + 51 THEN - 15 * + 28 * 56 + 98 WHEN + 29 + + + CAST ( NULL AS INTEGER ) THEN + ( - - 49 ) * 1 WHEN NULLIF ( 15, + 50 * 45 ) THEN NULL WHEN - CASE - AVG ( 45 ) WHEN - MAX ( + CAST ( NULL AS INTEGER ) ) * - 32 THEN NULL WHEN - 96 THEN CAST ( NULL AS INTEGER ) ELSE NULL END THEN COUNT ( * ) END + 62 * 4 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 10 * 22
----
220

query I rowsort
SELECT - 17 + - + 32 col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT ALL 29 + + - COALESCE ( 42, + - 46 + CAST( + 91 AS SIGNED ) * - 32 ) + 35 * - + 2 * 59 AS col2
----
-4143

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL 29 + + - COALESCE ( 42, + - 46 + CAST ( + 91 AS INTEGER ) * - 32 ) + 35 * - + 2 * 59 AS col2
----
-4143

query I rowsort
SELECT + 35 * + ( 40 ) col2
----
1400

query I rowsort
SELECT DISTINCT + 38 * + 77 col1
----
2926

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT DISTINCT 81 DIV 78
----
1

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT 81 / 78
----
1

query I rowsort
SELECT + 87 + + 14 col1
----
101

query II rowsort
SELECT ALL 13, 25 + + - 29 AS col1
----
13
-4

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

skipif mysql # not compatible
query I rowsort label-2349
SELECT - 99 * ( - COUNT ( * ) )
----
99

query I rowsort
SELECT - ( 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2351
SELECT ALL 71, 83 + COUNT( - 18 ) AS col2
----
71
84

skipif mysql # not compatible
query II rowsort label-2351
SELECT ALL 71, 83 + COUNT ( - 18 ) AS col2
----
71
84

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT 53, 21 * - COUNT( * ) col1
----
53
-21

skipif mysql # not compatible
query II rowsort label-2352
SELECT 53, 21 * - COUNT ( * ) col1
----
53
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT + + 66 + + COUNT( * ) / CAST( NULL AS SIGNED ) + + 47 * + + 54 + + 21 * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT + + 66 + + COUNT ( * ) / CAST ( NULL AS INTEGER ) + + 47 * + + 54 + + 21 * + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL COALESCE ( - + ( + ( - - 58 ) ), 8 ) * + 40 + - CASE 54 WHEN COUNT( * ) * 48 - MAX( - 72 ) THEN NULL ELSE 44 END + + COUNT( * ) AS col0
----
-2363

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL COALESCE ( - + ( + ( - - 58 ) ), 8 ) * + 40 + - CASE 54 WHEN COUNT ( * ) * 48 - MAX ( - 72 ) THEN NULL ELSE 44 END + + COUNT ( * ) AS col0
----
-2363

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL + CASE - 12 WHEN 36 THEN NULL WHEN - 33 + - 82 THEN NULL WHEN - SUM( DISTINCT + 97 ) THEN - + ( + + 98 ) ELSE + ( - 0 ) END
----
0

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + CASE - 12 WHEN 36 THEN NULL WHEN - 33 + - 82 THEN NULL WHEN - SUM ( DISTINCT + 97 ) THEN - + ( + + 98 ) ELSE + ( - 0 ) END
----
0

query I rowsort
SELECT DISTINCT - ( 15 ) * + 20 AS col2
----
-300

query I rowsort
SELECT + - 41 * - 95
----
3895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT ALL CASE - + 72 WHEN NULLIF ( + 83, - 27 * 56 * - 28 * - AVG ( DISTINCT - CAST( + + 87 AS SIGNED ) ) * 34 ) + 72 THEN - COUNT( * ) WHEN CAST( NULL AS SIGNED ) / 47 THEN 35 END * 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL CASE - + 72 WHEN NULLIF ( + 83, - 27 * 56 * - 28 * - AVG ( DISTINCT - CAST ( + + 87 AS INTEGER ) ) * 34 ) + 72 THEN - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) / 47 THEN 35 END * 16 col0
----
NULL

query II rowsort
SELECT + + 13 AS col1, + 63
----
13
63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2361
SELECT + - MAX( DISTINCT - 28 ) + + + 13 / + 78 + + + 96 + - + 45 + - CASE 11 WHEN - 89 * - COUNT( DISTINCT + 10 ) THEN 52 * COUNT( * ) WHEN - 94 THEN NULL END + - MIN( 62 - 77 ) * 42 * + CAST( 89 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT + - MAX ( DISTINCT - 28 ) + + + 13 / + 78 + + + 96 + - + 45 + - CASE 11 WHEN - 89 * - COUNT ( DISTINCT + 10 ) THEN 52 * COUNT ( * ) WHEN - 94 THEN NULL END + - MIN ( 62 - 77 ) * 42 * + CAST ( 89 AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT + - 75 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL - 31 * NULLIF ( - 62, 51 ) * + - 15 + + CASE + - 25 WHEN 93 THEN + 16 * + MIN( DISTINCT - ( + 89 ) ) * 74 + 51 WHEN + ( 35 ) THEN 42 * MAX( 5 ) ELSE + 20 END
----
-28810

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - 31 * NULLIF ( - 62, 51 ) * + - 15 + + CASE + - 25 WHEN 93 THEN + 16 * + MIN ( DISTINCT - ( + 89 ) ) * 74 + 51 WHEN + ( 35 ) THEN 42 * MAX ( 5 ) ELSE + 20 END
----
-28810

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

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

query I rowsort
SELECT ALL + 16 * 11 + 44 col0
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2366
SELECT + CAST( - 90 AS SIGNED ) AS col2, + 87 AS col2
----
-90
87

skipif mysql # not compatible
query II rowsort label-2366
SELECT + CAST ( - 90 AS INTEGER ) AS col2, + 87 AS col2
----
-90
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - CASE - 78 WHEN - 7 * - - 60 + - 48 THEN ( 51 ) * - + 0 * + 21 ELSE COUNT( * ) + - + COUNT( 75 ) END + - 80
----
-80

skipif mysql # not compatible
query I rowsort label-2367
SELECT - CASE - 78 WHEN - 7 * - - 60 + - 48 THEN ( 51 ) * - + 0 * + 21 ELSE COUNT ( * ) + - + COUNT ( 75 ) END + - 80
----
-80

query I rowsort
SELECT COALESCE ( + - 98, + 41 )
----
-98

query I rowsort
SELECT DISTINCT + 24 * - ( 5 ) col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL COUNT( * ) * + 9 * 18 + - - 54 * + 33 * + 42 AS col0
----
75006

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL COUNT ( * ) * + 9 * 18 + - - 54 * + 33 * + 42 AS col0
----
75006

query I rowsort
SELECT - COALESCE ( - 10, - + 15 ) * 28 col0
----
280

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

query I rowsort
SELECT ALL 98 * + + 18 - - 98 AS col0
----
1862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT DISTINCT CAST( + - 89 AS SIGNED ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT CAST ( + - 89 AS INTEGER ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT MAX( ALL - - 59 ) * + + 99 * - 96 - - + ( + - ( - + 16 ) ) AS col0
----
-560720

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT MAX ( ALL - - 59 ) * + + 99 * - 96 - - + ( + - ( - + 16 ) ) AS col0
----
-560720

query I rowsort
SELECT ALL - 61 * 77 col1
----
-4697

query I rowsort
SELECT - 29 + + - 37 AS col2
----
-66

query I rowsort
SELECT - ( + 20 ) + + 2
----
-18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT - CASE - 52 WHEN + - COUNT( * ) + 4 + 27 + + - AVG ( ALL 62 ) THEN + - COALESCE ( - 24, 0 ) + + MIN( DISTINCT + ( + 69 ) ) END - + 67 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-2380
SELECT - CASE - 52 WHEN + - COUNT ( * ) + 4 + 27 + + - AVG ( ALL 62 ) THEN + - COALESCE ( - 24, 0 ) + + MIN ( DISTINCT + ( + 69 ) ) END - + 67 * 43
----
NULL

query I rowsort
SELECT 91 - + + 76 col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2382
SELECT - CASE - - 50 WHEN 18 + 49 DIV 33 DIV 71 DIV + 22 + 74 THEN - - 73 + COUNT( + - 0 ) ELSE + + COUNT( ALL 59 ) DIV + 44 END * + 74
----
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT - CASE - - 50 WHEN 18 + 49 / 33 / 71 / + 22 + 74 THEN - - 73 + COUNT ( + - 0 ) ELSE + + COUNT ( ALL 59 ) / + 44 END * + 74
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT - + NULLIF ( 8, + COUNT( * ) ) * + 82 AS col2
----
-656

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT - + NULLIF ( 8, + COUNT ( * ) ) * + 82 AS col2
----
-656

query I rowsort
SELECT DISTINCT + + 50 * + 12
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT ALL 31 DIV + - 44
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL 31 / + - 44
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT + 1 + ( - 90 ) - - COUNT( ALL + + 31 ) * - COALESCE ( - 56, + 40 + + NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) ) * + - 87 AS col0
----
-4961

skipif mysql # not compatible
query I rowsort label-2387
SELECT + 1 + ( - 90 ) - - COUNT ( ALL + + 31 ) * - COALESCE ( - 56, + 40 + + NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ) * + - 87 AS col0
----
-4961

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT 94 - ( - - COUNT( * ) ) + - - 94 + + - 14 + COUNT( * ) + + COUNT( * )
----
175

skipif mysql # not compatible
query I rowsort label-2388
SELECT 94 - ( - - COUNT ( * ) ) + - - 94 + + - 14 + COUNT ( * ) + + COUNT ( * )
----
175

query I rowsort
SELECT + + 27 AS col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2390
SELECT 4 * - 8 * + 46 - - 42 + - MIN( + 51 ) + + 24 + + - 30 * - ( 52 ) * + + COUNT( 71 ) * MAX( 25 DIV - 63 + 99 ) AS col1
----
152983

skipif mysql # not compatible
query I rowsort label-2390
SELECT 4 * - 8 * + 46 - - 42 + - MIN ( + 51 ) + + 24 + + - 30 * - ( 52 ) * + + COUNT ( 71 ) * MAX ( 25 / - 63 + 99 ) AS col1
----
152983

query I rowsort
SELECT ALL 20 + + 76 + + + 61
----
157

query I rowsort
SELECT ALL - + 25
----
-25

query I rowsort
SELECT ALL + 74 * 94
----
6956

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT ALL - ( + SUM( 36 ) ) * + 21 + 20 * + COUNT( * ) AS col1
----
-736

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - ( + SUM ( 36 ) ) * + 21 + 20 * + COUNT ( * ) AS col1
----
-736

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

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT 4 * + MAX ( - 33 ) AS col2
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT 19 DIV - 82 * - 16
----
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT 19 / - 82 * - 16
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2397
SELECT 98 AS col2, COUNT( * ) * + 86 col2
----
98
86

skipif mysql # not compatible
query II rowsort label-2397
SELECT 98 AS col2, COUNT ( * ) * + 86 col2
----
98
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2398
SELECT COALESCE ( - 51, - 19 ) - + CAST( 57 AS SIGNED ) DIV + 80 * + COUNT( * ) * 89 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2398
SELECT COALESCE ( - 51, - 19 ) - + CAST ( 57 AS INTEGER ) / + 80 * + COUNT ( * ) * 89 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2399
SELECT 38 * + - 61 + - CASE + 37 WHEN + ( - + 22 ) THEN 55 END * COUNT( * ) AS col0, NULLIF ( + COALESCE ( + - 71, - CAST( - 64 AS SIGNED ) + - 63 ), COUNT( * ) ) + 98 AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-2399
SELECT 38 * + - 61 + - CASE + 37 WHEN + ( - + 22 ) THEN 55 END * COUNT ( * ) AS col0, NULLIF ( + COALESCE ( + - 71, - CAST ( - 64 AS INTEGER ) + - 63 ), COUNT ( * ) ) + 98 AS col1
----
NULL
27

query II rowsort
SELECT ALL - 28 AS col2, - 59
----
-28
-59

query II rowsort
SELECT DISTINCT - 99 AS col0, 89 + ( - 88 ) AS col0
----
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT CASE - 49 WHEN - - CAST( NULL AS SIGNED ) * - AVG ( - CAST( NULL AS SIGNED ) ) * - - NULLIF ( + COALESCE ( 68, - COUNT( * ) ), + 8 ) * + 67 + - + 36 + + COUNT( * ) THEN NULLIF ( - 93, 82 ) / + 21 - MAX( ALL + 74 ) ELSE NULL END - - 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT CASE - 49 WHEN - - CAST ( NULL AS INTEGER ) * - AVG ( - CAST ( NULL AS INTEGER ) ) * - - NULLIF ( + COALESCE ( 68, - COUNT ( * ) ), + 8 ) * + 67 + - + 36 + + COUNT ( * ) THEN NULLIF ( - 93, 82 ) / + 21 - MAX ( ALL + 74 ) ELSE NULL END - - 56 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT ALL 17 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 17 / + 88
----
0

query I rowsort
SELECT 92 - + 92 * 70 AS col1
----
-6348

onlyif mysql # aggregate syntax: 
query II rowsort label-2405
SELECT - 1 col2, MAX( + 68 ) * - MAX( - 80 ) * + 77 * + 65
----
-1
27227200

skipif mysql # not compatible
query II rowsort label-2405
SELECT - 1 col2, MAX ( + 68 ) * - MAX ( - 80 ) * + 77 * + 65
----
-1
27227200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT - CASE 28 WHEN + 82 THEN NULL WHEN + + 98 * - 59 THEN 0 END * MIN( ALL + + 17 ) + - - CAST( - 34 AS SIGNED ) * + + COUNT( * ) + + CASE - - MIN( - 74 ) WHEN NULLIF ( 7, 30 ) THEN NULL WHEN 36 / ( 88 * - 38 ) THEN NULL ELSE - CAST( NULL AS SIGNED ) / 44 END * 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT - CASE 28 WHEN + 82 THEN NULL WHEN + + 98 * - 59 THEN 0 END * MIN ( ALL + + 17 ) + - - CAST ( - 34 AS INTEGER ) * + + COUNT ( * ) + + CASE - - MIN ( - 74 ) WHEN NULLIF ( 7, 30 ) THEN NULL WHEN 36 / ( 88 * - 38 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) / 44 END * 54 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2407
SELECT 8 DIV + + 74 * 83 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-2407
SELECT 8 / + + 74 * 83 / + 62
----
0

query I rowsort
SELECT ALL - 75 * + 3
----
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2409
SELECT 17 * - + 27 DIV COUNT( * ) * - 30 AS col0, 87 AS col2
----
13770
87

skipif mysql # not compatible
query II rowsort label-2409
SELECT 17 * - + 27 / COUNT ( * ) * - 30 AS col0, 87 AS col2
----
13770
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT 92 + - - COUNT( * ) + + + 8 + 21 - + COUNT( * ) * - COUNT( ALL 24 ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-2410
SELECT 92 + - - COUNT ( * ) + + + 8 + 21 - + COUNT ( * ) * - COUNT ( ALL 24 ) AS col1
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-2411
SELECT DISTINCT 18 AS col2, + ( - - 6 ) - + - COUNT( * ) + + 98 * - MAX( - - 50 ) * + 4
----
18
-19593

skipif mysql # not compatible
query II rowsort label-2411
SELECT DISTINCT 18 AS col2, + ( - - 6 ) - + - COUNT ( * ) + + 98 * - MAX ( - - 50 ) * + 4
----
18
-19593

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

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

query I rowsort
SELECT 7 * + 63 AS col2
----
441

query I rowsort
SELECT DISTINCT NULLIF ( 60, + 43 + - 31 * + 92 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2415
SELECT ALL 62 AS col1, CAST( COUNT( * ) AS SIGNED )
----
62
1

skipif mysql # not compatible
query II rowsort label-2415
SELECT ALL 62 AS col1, CAST ( COUNT ( * ) AS INTEGER )
----
62
1

query I rowsort
SELECT + 15 + + 78 + 7 * 97
----
772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2417
SELECT - 89 + COUNT( * ) + - 73, - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-161
-1

skipif mysql # not compatible
query II rowsort label-2417
SELECT - 89 + COUNT ( * ) + - 73, - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-161
-1

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

skipif mysql # not compatible
query I rowsort label-2418
SELECT 50 / 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2419
SELECT - - CAST( NULL AS SIGNED ) AS col2, + 78 AS col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-2419
SELECT - - CAST ( NULL AS INTEGER ) AS col2, + 78 AS col2
----
NULL
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT MAX( 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2421
SELECT MAX ( 71 ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2422
SELECT DISTINCT + - 6 + - - 69 + SUM( DISTINCT CAST( NULL AS DECIMAL ) ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT + - 6 + - - 69 + SUM ( DISTINCT CAST ( NULL AS REAL ) ) + - 29
----
NULL

query I rowsort
SELECT ALL 97 AS col2
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-2424
SELECT - 8, - 73 DIV - + 76 AS col1
----
-8
0

skipif mysql # not compatible
query II rowsort label-2424
SELECT - 8, - 73 / - + 76 AS col1
----
-8
0

query I rowsort
SELECT + 58 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL - + 72 * + 48 + + - ( MIN( DISTINCT + 34 ) ) + 73 AS col0
----
-3417

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - + 72 * + 48 + + - ( MIN ( DISTINCT + 34 ) ) + 73 AS col0
----
-3417

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

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

query I rowsort
SELECT + - 98
----
-98

query I rowsort
SELECT + 15 + + + ( - 93 )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT + - ( + MIN( ALL - 45 ) ), + COUNT( * ) col0
----
45
1

skipif mysql # not compatible
query II rowsort label-2430
SELECT + - ( + MIN ( ALL - 45 ) ), + COUNT ( * ) col0
----
45
1

query I rowsort
SELECT + - 44 * - + 58 + - 67 AS col0
----
2485

onlyif mysql # aggregate syntax: 
query II rowsort label-2432
SELECT ALL 68 * + + 96 + + ( - 51 ) * - 48 - - 48 * 37 * - 51, - COUNT( * ) - + + 80 AS col0
----
-81600
-81

skipif mysql # not compatible
query II rowsort label-2432
SELECT ALL 68 * + + 96 + + ( - 51 ) * - 48 - - 48 * 37 * - 51, - COUNT ( * ) - + + 80 AS col0
----
-81600
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT - + 29 * + COUNT( * ) + + 65 + 86 col2, + 72
----
122
72

skipif mysql # not compatible
query II rowsort label-2433
SELECT - + 29 * + COUNT ( * ) + + 65 + 86 col2, + 72
----
122
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2434
SELECT - 37 * - 4 + COALESCE ( 40, - 65 DIV + 15 * - MAX( + + 34 ) DIV - 39 DIV - 27 * 26 * - - 6 + SUM( DISTINCT 69 ) ) AS col1
----
188

skipif mysql # not compatible
query I rowsort label-2434
SELECT - 37 * - 4 + COALESCE ( 40, - 65 / + 15 * - MAX ( + + 34 ) / - 39 / - 27 * 26 * - - 6 + SUM ( DISTINCT 69 ) ) AS col1
----
188

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

skipif mysql # not compatible
query I rowsort label-2435
SELECT SUM ( ALL - - 34 )
----
34

query I rowsort
SELECT DISTINCT - 89 AS col0
----
-89

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

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

query I rowsort
SELECT DISTINCT - 34 AS col2
----
-34

query I rowsort
SELECT + 86 col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2440
SELECT + 71 * COUNT( * ) + CAST( 18 AS SIGNED ) * + + 24 col0
----
503

skipif mysql # not compatible
query I rowsort label-2440
SELECT + 71 * COUNT ( * ) + CAST ( 18 AS INTEGER ) * + + 24 col0
----
503

query I rowsort
SELECT ALL 76 * + 68
----
5168

onlyif mysql # aggregate syntax: 
query II rowsort label-2442
SELECT COUNT( - + 87 ) + 0 + 66 AS col1, 46 * - + 49
----
67
-2254

skipif mysql # not compatible
query II rowsort label-2442
SELECT COUNT ( - + 87 ) + 0 + 66 AS col1, 46 * - + 49
----
67
-2254

query I rowsort
SELECT 63 * - 14
----
-882

query I rowsort
SELECT DISTINCT 11 * - + ( 33 ) AS col0
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + COUNT( ALL 68 )
----
1

skipif mysql # not compatible
query I rowsort label-2445
SELECT + COUNT ( ALL 68 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2446
SELECT + 58 + 88 + + 46 * + 62 AS col0, + ( + CAST( NULL AS DECIMAL ) ) * + COUNT( * ) / - ( CAST( - 18 AS SIGNED ) )
----
2998
NULL

skipif mysql # not compatible
query II rowsort label-2446
SELECT + 58 + 88 + + 46 * + 62 AS col0, + ( + CAST ( NULL AS REAL ) ) * + COUNT ( * ) / - ( CAST ( - 18 AS INTEGER ) )
----
2998
NULL

query I rowsort
SELECT DISTINCT 75 * + - 70 * - 34
----
178500

query I rowsort
SELECT + 4 * - 53 AS col1
----
-212

query I rowsort
SELECT - NULLIF ( - + 70, - COALESCE ( + 93, - 71 * + 88 ) ) AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2450
SELECT + - 18 * CAST( NULL AS DECIMAL ) * + AVG ( DISTINCT + 83 ) + - + COUNT( * ) * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT + - 18 * CAST ( NULL AS REAL ) * + AVG ( DISTINCT + 83 ) + - + COUNT ( * ) * 63 AS col0
----
NULL

query I rowsort
SELECT + 69 + NULLIF ( 89, - ( - 77 ) ) + - 68
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2452
SELECT + + 54 * 8 - MAX( DISTINCT + 52 ) DIV - 87
----
432

skipif mysql # not compatible
query I rowsort label-2452
SELECT + + 54 * 8 - MAX ( DISTINCT + 52 ) / - 87
----
432

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT NULLIF ( + - 9, - COUNT( * ) + + - 64 + - + 45 / + 48 - + 83 * - + 70 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2454
SELECT NULLIF ( + - 9, - COUNT ( * ) + + - 64 + - + 45 / + 48 - + 83 * - + 70 ) AS col2
----
-9

query I rowsort
SELECT + ( 70 ) * 4 AS col0
----
280

query I rowsort
SELECT - 91 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2457
SELECT DISTINCT COALESCE ( - + ( - - CAST( NULL AS SIGNED ) ), COUNT( * ) + + + 63, ( + - MAX( + 84 ) ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT COALESCE ( - + ( - - CAST ( NULL AS INTEGER ) ), COUNT ( * ) + + + 63, ( + - MAX ( + 84 ) ) ) AS col2
----
64

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

query I rowsort
SELECT DISTINCT + 59 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2460
SELECT ALL - + 8 + CASE - SUM( + - 48 ) WHEN 22 * + MIN( DISTINCT - 46 ) THEN + + CAST( NULL AS SIGNED ) + 66 * 83 WHEN - - 79 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL - + 8 + CASE - SUM ( + - 48 ) WHEN 22 * + MIN ( DISTINCT - 46 ) THEN + + CAST ( NULL AS INTEGER ) + 66 * 83 WHEN - - 79 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT DISTINCT 41 * + COUNT( * ) + + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT 41 * + COUNT ( * ) + + + COUNT ( * )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT - + CAST( ( + 21 ) AS SIGNED ) * - - 71 * - + 65 AS col1
----
96915

skipif mysql # not compatible
query I rowsort label-2462
SELECT - + CAST ( ( + 21 ) AS INTEGER ) * - - 71 * - + 65 AS col1
----
96915

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2465
SELECT DISTINCT CAST( - + MIN( - 31 ) AS SIGNED ) * + - 75 * + 99 + 78 * - CASE + 92 WHEN + + CAST( 51 AS SIGNED ) * + COUNT( * ) * + 67 * - - ( - 27 ) - COUNT( ALL - 59 ) THEN 40 END - + 49 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT CAST ( - + MIN ( - 31 ) AS INTEGER ) * + - 75 * + 99 + 78 * - CASE + 92 WHEN + + CAST ( 51 AS INTEGER ) * + COUNT ( * ) * + 67 * - - ( - 27 ) - COUNT ( ALL - 59 ) THEN 40 END - + 49 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 70 + - 51 AS col2
----
19

query I rowsort
SELECT DISTINCT + 64 * - 7 + 78 AS col2
----
-370

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2468
SELECT + MAX( ALL - 72 ) AS col2, 35 DIV + + COUNT( * )
----
-72
35

skipif mysql # not compatible
query II rowsort label-2468
SELECT + MAX ( ALL - 72 ) AS col2, 35 / + + COUNT ( * )
----
-72
35

query I rowsort
SELECT ALL + 38 * - 83
----
-3154

query I rowsort
SELECT DISTINCT + 65 * 41
----
2665

query I rowsort
SELECT ALL + 47 * - 97 * + - 85 * - 46 AS col0
----
-17825690

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT - NULLIF ( COUNT( * ), 84 * + 43 ) DIV - MAX( - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT - NULLIF ( COUNT ( * ), 84 * + 43 ) / - MAX ( - 58 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT NULLIF ( - COUNT( * ), + AVG ( - + 50 ) + + ( 23 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2474
SELECT NULLIF ( - COUNT ( * ), + AVG ( - + 50 ) + + ( 23 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT - MAX( 51 ) - - 86 + + 11 * - - 29 * + + 61 AS col2
----
19494

skipif mysql # not compatible
query I rowsort label-2475
SELECT - MAX ( 51 ) - - 86 + + 11 * - - 29 * + + 61 AS col2
----
19494

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + 82 * - CASE + COUNT( * ) WHEN + 68 * 18 - 14 THEN + - 5 + + + CASE NULLIF ( - + 87, - COUNT( * ) * 25 + - 19 ) WHEN 78 * - 47 + 66 + COALESCE ( + 93, + COUNT( * ) ) * 85 THEN - 10 END - + COALESCE ( + COUNT( * ), - 83, 37 * 48 ) WHEN + COALESCE ( - 72, - 49 * - 97 ) * - COUNT( CASE WHEN NOT NULL IS NULL THEN - 44 END + + 18 ) THEN NULL ELSE - 28 END * 16
----
36736

skipif mysql # not compatible
query I rowsort label-2476
SELECT + 82 * - CASE + COUNT ( * ) WHEN + 68 * 18 - 14 THEN + - 5 + + + CASE NULLIF ( - + 87, - COUNT ( * ) * 25 + - 19 ) WHEN 78 * - 47 + 66 + COALESCE ( + 93, + COUNT ( * ) ) * 85 THEN - 10 END - + COALESCE ( + COUNT ( * ), - 83, 37 * 48 ) WHEN + COALESCE ( - 72, - 49 * - 97 ) * - COUNT ( CASE WHEN NOT NULL IS NULL THEN - 44 END + + 18 ) THEN NULL ELSE - 28 END * 16
----
36736

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

skipif mysql # not compatible
query I rowsort label-2477
SELECT + 41 / + COALESCE ( 77, + 29 ) * + COUNT ( * )
----
0

query I rowsort
SELECT ALL + 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + 48 * 99 + - ( + MAX( - 27 ) ) * + 65 * + + 62 AS col2
----
113562

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 48 * 99 + - ( + MAX ( - 27 ) ) * + 65 * + + 62 AS col2
----
113562

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT NULLIF ( - COUNT( * ), + 75 + + + 18 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2480
SELECT NULLIF ( - COUNT ( * ), + 75 + + + 18 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT ALL + 72, COUNT( * ) AS col1
----
72
1

skipif mysql # not compatible
query II rowsort label-2481
SELECT ALL + 72, COUNT ( * ) AS col1
----
72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT CASE COUNT( * ) WHEN + COALESCE ( + NULLIF ( - COUNT( * ), - 23 + - COALESCE ( - MIN( ALL + + 87 ), - 93 ) * + 64 + + 14 + - COUNT( * ) ), - NULLIF ( + 33, 9 ) ) * COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT CASE COUNT ( * ) WHEN + COALESCE ( + NULLIF ( - COUNT ( * ), - 23 + - COALESCE ( - MIN ( ALL + + 87 ), - 93 ) * + 64 + + 14 + - COUNT ( * ) ), - NULLIF ( + 33, 9 ) ) * COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 98 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2483
SELECT - 69 + + COALESCE ( 3, - COALESCE ( 39, + 3 * - 41 ) + + + 38 * 19 - 11 + + + 84 - 87 ) - 54 * ( + CASE 89 WHEN + 0 + - 41 * 13 THEN COALESCE ( COUNT( * ), 57, - 76 + - 59 ) * + CAST( + COUNT( * ) - + ( 9 ) AS SIGNED ) WHEN - CASE - CAST( NULL AS SIGNED ) WHEN AVG ( - 95 ) + + ( 96 + + 73 * - 90 ) THEN NULL WHEN + 98 / + COUNT( * ) THEN NULL ELSE + 22 END * + 91 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT - 69 + + COALESCE ( 3, - COALESCE ( 39, + 3 * - 41 ) + + + 38 * 19 - 11 + + + 84 - 87 ) - 54 * ( + CASE 89 WHEN + 0 + - 41 * 13 THEN COALESCE ( COUNT ( * ), 57, - 76 + - 59 ) * + CAST ( + COUNT ( * ) - + ( 9 ) AS INTEGER ) WHEN - CASE - CAST ( NULL AS INTEGER ) WHEN AVG ( - 95 ) + + ( 96 + + 73 * - 90 ) THEN NULL WHEN + 98 / + COUNT ( * ) THEN NULL ELSE + 22 END * + 91 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT + 75 + 45
----
120

query I rowsort
SELECT - - 31 AS col1
----
31

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2487
SELECT - COUNT( * ) + + 62 + + 23 DIV - 63
----
61

skipif mysql # not compatible
query I rowsort label-2487
SELECT - COUNT ( * ) + + 62 + + 23 / - 63
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2488
SELECT + - 81 * - - 0 * - COUNT( - 22 ) + - COUNT( * ) + - + 6 DIV COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-2488
SELECT + - 81 * - - 0 * - COUNT ( - 22 ) + - COUNT ( * ) + - + 6 / COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT + COUNT( * ) + + COUNT( * ) - 85 + - + 77 * 64 * + - ( + 92 ) AS col2
----
453293

skipif mysql # not compatible
query I rowsort label-2489
SELECT + COUNT ( * ) + + COUNT ( * ) - 85 + - + 77 * 64 * + - ( + 92 ) AS col2
----
453293

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT ALL - SUM( + - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL - SUM ( + - 9 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2491
SELECT + 38 + - COUNT( * ) - 42 DIV + 88
----
37

skipif mysql # not compatible
query I rowsort label-2491
SELECT + 38 + - COUNT ( * ) - 42 / + 88
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL 86 + COUNT( 28 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 86 + COUNT ( 28 ) AS col1
----
87

query I rowsort
SELECT - 54 col2
----
-54

query I rowsort
SELECT ALL 53 - - 32 * + - 48 AS col2
----
-1483

query I rowsort
SELECT - - 25 col1
----
25

query I rowsort
SELECT + - 79 + 89
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT + 40 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-2497
SELECT + 40 / - 89
----
0

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

skipif mysql # not compatible
query I rowsort label-2498
SELECT - COUNT ( * ) * - 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2499
SELECT + + COUNT( * ) + - ( - NULLIF ( + ( + + 71 ), - CAST( + - 41 AS DECIMAL ) ) )
----
72

skipif mysql # not compatible
query I rowsort label-2499
SELECT + + COUNT ( * ) + - ( - NULLIF ( + ( + + 71 ), - CAST ( + - 41 AS REAL ) ) )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT - + 99 DIV + + 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2500
SELECT - + 99 / + + 57 AS col0
----
-1

query I rowsort
SELECT + - 29 + 54
----
25

query I rowsort
SELECT ALL + 66 - ( - 88 )
----
154

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT 70 * - COUNT( * ) + + - 28 + - 97
----
-195

skipif mysql # not compatible
query I rowsort label-2504
SELECT 70 * - COUNT ( * ) + + - 28 + - 97
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT - CASE - COUNT( * ) WHEN + 27 THEN 58 + + 2 WHEN COUNT( * ) THEN - 8 ELSE - 33 + - - 57 END * - 71
----
1704

skipif mysql # not compatible
query I rowsort label-2505
SELECT - CASE - COUNT ( * ) WHEN + 27 THEN 58 + + 2 WHEN COUNT ( * ) THEN - 8 ELSE - 33 + - - 57 END * - 71
----
1704

query I rowsort
SELECT ALL 1 * - 75 * + + 15 col2
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT 70 * - + COUNT( * ) + + - 24 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2507
SELECT 70 * - + COUNT ( * ) + + - 24 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + 63 * - + 80 + 61 + - - 64 * SUM( + - 83 ) + 0
----
-10291

skipif mysql # not compatible
query I rowsort label-2508
SELECT + 63 * - + 80 + 61 + - - 64 * SUM ( + - 83 ) + 0
----
-10291

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT + COALESCE ( + - COUNT( * ), + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), + 62 )
----
-1

query I rowsort
SELECT 82 + - 54 + 95 + + + 95 col2
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT 7 * - COUNT( * ) + - COUNT( + 12 ) + 35
----
27

skipif mysql # not compatible
query I rowsort label-2511
SELECT 7 * - COUNT ( * ) + - COUNT ( + 12 ) + 35
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL + 16 * + COUNT( DISTINCT - + 27 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL + 16 * + COUNT ( DISTINCT - + 27 ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2513
SELECT ALL 35 + - CAST( NULL AS SIGNED ) * - + 30 + + COUNT( * ) + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT ALL 35 + - CAST ( NULL AS INTEGER ) * - + 30 + + COUNT ( * ) + 74
----
NULL

query II rowsort
SELECT DISTINCT - 30 col0, 88 - + 2 AS col1
----
-30
86

query I rowsort
SELECT ALL + 44 + 41
----
85

query I rowsort
SELECT - 19 * + 42 + - 35 * 10 AS col2
----
-1148

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2518
SELECT 44 * COUNT( * ) + 95 + + 4 * + + CAST( + 45 AS SIGNED ) AS col0, + ( + 32 )
----
319
32

skipif mysql # not compatible
query II rowsort label-2518
SELECT 44 * COUNT ( * ) + 95 + + 4 * + + CAST ( + 45 AS INTEGER ) AS col0, + ( + 32 )
----
319
32

query I rowsort
SELECT 91 * - 44 AS col2
----
-4004

query I rowsort
SELECT 27 + - 35 * - + 89 AS col2
----
3142

query II rowsort
SELECT 8 col0, + 8 AS col1
----
8
8

query I rowsort
SELECT 36 + + 21 AS col2
----
57

query I rowsort
SELECT 7 * - 13 AS col0
----
-91

query I rowsort
SELECT 42 * - 2
----
-84

query II rowsort
SELECT ALL - 78 col1, 1 + - 62 * 13
----
-78
-805

query I rowsort
SELECT + COALESCE ( - - 33, - 45 ) * + + 82
----
2706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT ALL + CAST( NULL AS SIGNED ) + + 17 + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL + CAST ( NULL AS INTEGER ) + + 17 + - 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2528
SELECT DISTINCT - 82 DIV - NULLIF ( + - ( 99 ), - - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT - 82 / - NULLIF ( + - ( 99 ), - - 39 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT DISTINCT - COUNT( - + 18 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - COUNT ( - + 18 ) col0
----
-1

query I rowsort
SELECT ALL 75 - 72 + - 17 * 19 col0
----
-320

query I rowsort
SELECT 71 * - 99 + 58 + - 97 AS col1
----
-7068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2532
SELECT DISTINCT + NULLIF ( - 43, ( - 33 ) * - + CAST( NULL AS SIGNED ) * 85 * - 72 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT + NULLIF ( - 43, ( - 33 ) * - + CAST ( NULL AS INTEGER ) * 85 * - 72 ) AS col2
----
-43

query II rowsort
SELECT - + 17 AS col1, 27
----
-17
27

query I rowsort
SELECT + 67 + - + 3 * 21 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2535
SELECT 63 * - ( + - CAST( + 50 AS SIGNED ) ) * + NULLIF ( - 21, + - 39 ) + 89 + - 4
----
-66065

skipif mysql # not compatible
query I rowsort label-2535
SELECT 63 * - ( + - CAST ( + 50 AS INTEGER ) ) * + NULLIF ( - 21, + - 39 ) + 89 + - 4
----
-66065

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT ALL + 30 - + 83 DIV + 20
----
26

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + 30 - + 83 / + 20
----
26

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

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

query II rowsort
SELECT + 60 AS col1, 5 + 90 - + 10 AS col2
----
60
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT + COUNT( * ), 48 + - + 12 + - 20 + + - 7 * 67 AS col2
----
1
-453

skipif mysql # not compatible
query II rowsort label-2539
SELECT + COUNT ( * ), 48 + - + 12 + - 20 + + - 7 * 67 AS col2
----
1
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT COUNT( * ) - - - 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-2540
SELECT COUNT ( * ) - - - 34 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL - + 82 * + 11 + - SUM( ALL - 75 ) AS col2
----
-827

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - + 82 * + 11 + - SUM ( ALL - 75 ) AS col2
----
-827

query I rowsort
SELECT DISTINCT - 60 AS col1
----
-60

query I rowsort
SELECT DISTINCT - 36 * - 96 * - ( - 30 ) * - ( + 77 ) AS col2
----
-7983360

onlyif mysql # DIV for integer division: 
query I rowsort label-2544
SELECT ALL 5 DIV ( 76 ) * + 15 - + 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL 5 / ( 76 ) * + 15 - + 7 AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT 66 DIV + 16 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2545
SELECT 66 / + 16 AS col1
----
4

query I rowsort
SELECT 73 * + ( 91 ) * 34 AS col1
----
225862

query I rowsort
SELECT + 82 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2548
SELECT CAST( NULL AS SIGNED ) * + 35, COUNT( * ) * 59 + - 95 + 95 * + + 82 AS col2
----
NULL
7754

skipif mysql # not compatible
query II rowsort label-2548
SELECT CAST ( NULL AS INTEGER ) * + 35, COUNT ( * ) * 59 + - 95 + 95 * + + 82 AS col2
----
NULL
7754

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT ALL COUNT( * ) + + + COUNT( * ) - + + 81 * + 85
----
-6883

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL COUNT ( * ) + + + COUNT ( * ) - + + 81 * + 85
----
-6883

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2551
SELECT ALL 41 + + - COUNT( * ), - 14 DIV - 43 * - + 17 AS col2
----
40
0

skipif mysql # not compatible
query II rowsort label-2551
SELECT ALL 41 + + - COUNT ( * ), - 14 / - 43 * - + 17 AS col2
----
40
0

query I rowsort
SELECT DISTINCT - 33 AS col2
----
-33

query I rowsort
SELECT DISTINCT - ( 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT 91 + + COALESCE ( - 67, - - 58 ) * 89, SUM( - 49 ) AS col0
----
-5872
-49

skipif mysql # not compatible
query II rowsort label-2554
SELECT 91 + + COALESCE ( - 67, - - 58 ) * 89, SUM ( - 49 ) AS col0
----
-5872
-49

query I rowsort
SELECT 27 * - 56 AS col2
----
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2556
SELECT ALL 81 + + COUNT( * ) - + NULLIF ( CAST( NULL AS SIGNED ), - 81 ) + + + 88 - - 80 * 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL 81 + + COUNT ( * ) - + NULLIF ( CAST ( NULL AS INTEGER ), - 81 ) + + + 88 - - 80 * 56 AS col1
----
NULL

query I rowsort
SELECT + 8 col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2558
SELECT COALESCE ( - 64, - 34, 33 * 51 ) + + + MAX( DISTINCT + 21 ) col2, 21 * + 50
----
-43
1050

skipif mysql # not compatible
query II rowsort label-2558
SELECT COALESCE ( - 64, - 34, 33 * 51 ) + + + MAX ( DISTINCT + 21 ) col2, 21 * + 50
----
-43
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL - SUM( + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - SUM ( + 20 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT ALL - 86 DIV - - 55
----
-1

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - 86 / - - 55
----
-1

query I rowsort
SELECT ALL 45 + + + 65 + + - 89 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT - - 92 * 31 + - CASE 41 WHEN - + 16 THEN - ( 54 ) - 98 DIV 52 * - 22 DIV + + 54 + 55 + + 33 - MAX( DISTINCT 41 ) WHEN + - 70 + COUNT( * ) + 71 THEN NULL ELSE COUNT( * ) END AS col2
----
2851

skipif mysql # not compatible
query I rowsort label-2562
SELECT - - 92 * 31 + - CASE 41 WHEN - + 16 THEN - ( 54 ) - 98 / 52 * - 22 / + + 54 + 55 + + 33 - MAX ( DISTINCT 41 ) WHEN + - 70 + COUNT ( * ) + 71 THEN NULL ELSE COUNT ( * ) END AS col2
----
2851

query I rowsort
SELECT ALL + 95 - + 29 AS col2
----
66

query I rowsort
SELECT ALL - 37 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT COUNT( * ) * - 78 col2
----
-78

skipif mysql # not compatible
query I rowsort label-2565
SELECT COUNT ( * ) * - 78 col2
----
-78

query I rowsort
SELECT ALL - 27 AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT DISTINCT - 92 - 98 DIV + 83 + 62 + - 84 + - 85 + 80 * - + COUNT( * ) * - + 31 * 67 + 24
----
165984

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT - 92 - 98 / + 83 + 62 + - 84 + - 85 + 80 * - + COUNT ( * ) * - + 31 * 67 + 24
----
165984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2568
SELECT - COUNT( * ) * - - 27 + + 6 + + - 17 * CAST( 32 AS SIGNED ) + 68 DIV - - 10 DIV + COUNT( * )
----
-559

skipif mysql # not compatible
query I rowsort label-2568
SELECT - COUNT ( * ) * - - 27 + + 6 + + - 17 * CAST ( 32 AS INTEGER ) + 68 / - - 10 / + COUNT ( * )
----
-559

query I rowsort
SELECT ALL - + 34 - - - 62 * - - NULLIF ( + ( 9 ), + COALESCE ( + 84, - AVG ( ALL 49 ) * + - 98 ) + 79 )
----
-592

query I rowsort
SELECT - - 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + 23 + + - NULLIF ( + - 32, + ( + MIN( DISTINCT + 78 ) ) * + + ( 86 ) - - COUNT( * ) / - COUNT( * ) + + - 0 + + + 57 )
----
55

skipif mysql # not compatible
query I rowsort label-2571
SELECT + 23 + + - NULLIF ( + - 32, + ( + MIN ( DISTINCT + 78 ) ) * + + ( 86 ) - - COUNT ( * ) / - COUNT ( * ) + + - 0 + + + 57 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT DISTINCT + - COALESCE ( - + 41, + COUNT( * ) * + 89 ) DIV 75 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + - COALESCE ( - + 41, + COUNT ( * ) * + 89 ) / 75 * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT 93 * + 62 AS col2
----
5766

query I rowsort
SELECT 67 * 50 AS col1
----
3350

onlyif mysql # aggregate syntax: 
query II rowsort label-2575
SELECT + 81 * - 90 AS col1, - 96 * + MAX( - 30 ) AS col2
----
-7290
2880

skipif mysql # not compatible
query II rowsort label-2575
SELECT + 81 * - 90 AS col1, - 96 * + MAX ( - 30 ) AS col2
----
-7290
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2576
SELECT - 53 + + COUNT( + 14 ) + 15 + + 54 DIV + - 98, - COALESCE ( COUNT( * ), - - 52 + - 0 ) + 49 * + + COUNT( * ) * COUNT( * ) + - 21 AS col0
----
-37
27

skipif mysql # not compatible
query II rowsort label-2576
SELECT - 53 + + COUNT ( + 14 ) + 15 + + 54 / + - 98, - COALESCE ( COUNT ( * ), - - 52 + - 0 ) + 49 * + + COUNT ( * ) * COUNT ( * ) + - 21 AS col0
----
-37
27

query I rowsort
SELECT ALL - 43 + - 43 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL NULLIF ( + 44, + + 37 ) + + + MIN( - 77 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL NULLIF ( + 44, + + 37 ) + + + MIN ( - 77 ) AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2579
SELECT DISTINCT COALESCE ( - COUNT( * ), + 95 * - 6 + 91 + - COUNT( * ) ) * 60 DIV COUNT( * ) * 1 + - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 95 * - 6 + 91 + - COUNT ( * ) ) * 60 / COUNT ( * ) * 1 + - - COUNT ( * )
----
-59

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

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

query II rowsort
SELECT + 48 AS col2, + 58 AS col2
----
48
58

query I rowsort
SELECT + 76 + - + 62 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2583
SELECT + COUNT( * ), 59 * + - 61 col1
----
1
-3599

skipif mysql # not compatible
query II rowsort label-2583
SELECT + COUNT ( * ), 59 * + - 61 col1
----
1
-3599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2584
SELECT CASE + 8 WHEN 32 THEN NULL WHEN - + CAST( NULL AS DECIMAL ) + + COUNT( * ) THEN + ( + - 98 ) WHEN 73 - - 83 - - + CAST( CASE 93 WHEN + AVG ( ALL + 14 ) THEN NULL WHEN + COUNT( * ) THEN COUNT( * ) * ( - 65 ) END AS SIGNED ) / 12 THEN - 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT CASE + 8 WHEN 32 THEN NULL WHEN - + CAST ( NULL AS REAL ) + + COUNT ( * ) THEN + ( + - 98 ) WHEN 73 - - 83 - - + CAST ( CASE 93 WHEN + AVG ( ALL + 14 ) THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) * ( - 65 ) END AS INTEGER ) / 12 THEN - 34 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT + CASE + 41 WHEN - + 49 + + 94 * + 45 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2585
SELECT + CASE + 41 WHEN - + 49 + + 94 * + 45 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2586
SELECT ALL - COUNT( * ) * + ( - 31 ) * - SUM( + CAST( NULL AS SIGNED ) ) + + 35 + 19 - - - 36 * COALESCE ( - + 63, + 22 + - 19 + 88 ) * + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - COUNT ( * ) * + ( - 31 ) * - SUM ( + CAST ( NULL AS INTEGER ) ) + + 35 + 19 - - - 36 * COALESCE ( - + 63, + 22 + - 19 + 88 ) * + - 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2587
SELECT DISTINCT SUM( ALL 24 ) * - ( - - 54 ) * 25 + 40 DIV - - CASE - 62 WHEN + + 5 THEN NULL ELSE 65 END AS col2
----
-32400

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT SUM ( ALL 24 ) * - ( - - 54 ) * 25 + 40 / - - CASE - 62 WHEN + + 5 THEN NULL ELSE 65 END AS col2
----
-32400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2588
SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST( - 79 AS SIGNED ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT( * ) - - COUNT( ALL + 7 ) + + 51 AS col2, 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-2588
SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST ( - 79 AS INTEGER ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT ( * ) - - COUNT ( ALL + 7 ) + + 51 AS col2, 83
----
NULL
83

query I rowsort
SELECT DISTINCT 39 * 17 AS col1
----
663

query I rowsort
SELECT DISTINCT + + 84 * - 20 * - - ( + 51 ) - 5
----
-85685

onlyif mysql # aggregate syntax: 
query II rowsort label-2591
SELECT + 66 * + 57 * - COUNT( * ) AS col0, + 17 AS col2
----
-3762
17

skipif mysql # not compatible
query II rowsort label-2591
SELECT + 66 * + 57 * - COUNT ( * ) AS col0, + 17 AS col2
----
-3762
17

query II rowsort
SELECT + 21 AS col1, 3 AS col0
----
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT - - 94 + + COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2593
SELECT - - 94 + + COUNT ( * ) AS col2
----
95

query I rowsort
SELECT + + 88 col0
----
88

query II rowsort
SELECT + 72, 10 + - + 93 * - NULLIF ( + ( - 41 ), - 47 ) + + - 59 AS col0
----
72
-3862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2596
SELECT - 63 * + 7 + 58 AS col0, CASE COALESCE ( AVG ( DISTINCT - - ( 88 ) ), + 69 ) WHEN - 58 THEN + + 60 END + + - 66 - - CAST( NULL AS SIGNED ) + COALESCE ( + - 9, + CASE + COALESCE ( + 10, 21, COUNT( * ) ) WHEN + COALESCE ( - 68, + 87 + 76 * CASE 6 / - 80 WHEN + 59 + - NULLIF ( 73 - 15 / 22, 78 + - SUM( ALL + 74 + CAST( NULL AS SIGNED ) ) ) * - 85 THEN 57 * + 93 + COALESCE ( ( - 38 ), 3 ) * - 43 WHEN + 78 + - ( 44 + + 49 * - COUNT( * ) ) THEN NULL END, + 33 * - 56 + + COUNT( * ) * 76, + ( - 93 ) * - 36 ) + - ( 87 + + 11 ) * 96 THEN - 37 ELSE COUNT( * ) / 78 END * 57 ) AS col0
----
-383
NULL

skipif mysql # not compatible
query II rowsort label-2596
SELECT - 63 * + 7 + 58 AS col0, CASE COALESCE ( AVG ( DISTINCT - - ( 88 ) ), + 69 ) WHEN - 58 THEN + + 60 END + + - 66 - - CAST ( NULL AS INTEGER ) + COALESCE ( + - 9, + CASE + COALESCE ( + 10, 21, COUNT ( * ) ) WHEN + COALESCE ( - 68, + 87 + 76 * CASE 6 / - 80 WHEN + 59 + - NULLIF ( 73 - 15 / 22, 78 + - SUM ( ALL + 74 + CAST ( NULL AS INTEGER ) ) ) * - 85 THEN 57 * + 93 + COALESCE ( ( - 38 ), 3 ) * - 43 WHEN + 78 + - ( 44 + + 49 * - COUNT ( * ) ) THEN NULL END, + 33 * - 56 + + COUNT ( * ) * 76, + ( - 93 ) * - 36 ) + - ( 87 + + 11 ) * 96 THEN - 37 ELSE COUNT ( * ) / 78 END * 57 ) AS col0
----
-383
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2597
SELECT 92 * + - CAST( - 89 AS SIGNED ) * - ( 30 ) + - 98 + + COUNT( + 88 ) + + + 81 + + COUNT( * )
----
-245655

skipif mysql # not compatible
query I rowsort label-2597
SELECT 92 * + - CAST ( - 89 AS INTEGER ) * - ( 30 ) + - 98 + + COUNT ( + 88 ) + + + 81 + + COUNT ( * )
----
-245655

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2598
SELECT ALL 6 AS col2, - CAST( NULL AS SIGNED ) col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-2598
SELECT ALL 6 AS col2, - CAST ( NULL AS INTEGER ) col1
----
6
NULL

query I rowsort
SELECT ALL - 48 * 57 - 51 * + 11 AS col1
----
-3297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2600
SELECT - - 42 DIV - 44 - - + COALESCE ( + SUM( + ( 23 ) ), COALESCE ( + NULLIF ( - - 78, + + 22 * - 6 + + - CASE + 98 WHEN - 62 THEN NULL WHEN + COUNT( * ) DIV - COUNT( * ) + NULLIF ( - 46, ( NULLIF ( + NULLIF ( 4, - 58 + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ), + 71 ) ) + + ( + CAST( NULL AS DECIMAL ) ) ) + - 12 * + 36 THEN + 86 END * NULLIF ( COUNT( + 69 ), COUNT( * ) ) ), 25, - 42 ) + CAST( 37 AS SIGNED ) ) - COALESCE ( - 26 + + 50, MAX( + 87 ) + + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-2600
SELECT - - 42 / - 44 - - + COALESCE ( + SUM ( + ( 23 ) ), COALESCE ( + NULLIF ( - - 78, + + 22 * - 6 + + - CASE + 98 WHEN - 62 THEN NULL WHEN + COUNT ( * ) / - COUNT ( * ) + NULLIF ( - 46, ( NULLIF ( + NULLIF ( 4, - 58 + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ), + 71 ) ) + + ( + CAST ( NULL AS REAL ) ) ) + - 12 * + 36 THEN + 86 END * NULLIF ( COUNT ( + 69 ), COUNT ( * ) ) ), 25, - 42 ) + CAST ( 37 AS INTEGER ) ) - COALESCE ( - 26 + + 50, MAX ( + 87 ) + + 18 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2601
SELECT ALL + 36 DIV + 1 + + + NULLIF ( + COUNT( * ), + 78 )
----
37

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + 36 / + 1 + + + NULLIF ( + COUNT ( * ), + 78 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT 8 * SUM( 65 ) AS col0
----
520

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT 8 * SUM ( 65 ) AS col0
----
520

query I rowsort
SELECT ALL COALESCE ( ( - 25 ), + 35 ) AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2604
SELECT ALL + + 15 * + 50 + 82 AS col1, - CAST( NULL AS SIGNED )
----
832
NULL

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL + + 15 * + 50 + 82 AS col1, - CAST ( NULL AS INTEGER )
----
832
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT + 96 DIV - 3
----
-32

skipif mysql # not compatible
query I rowsort label-2605
SELECT + 96 / - 3
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT - ( - + 17 ) + - 14 + + + MIN( + 13 )
----
16

skipif mysql # not compatible
query I rowsort label-2606
SELECT - ( - + 17 ) + - 14 + + + MIN ( + 13 )
----
16

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

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

query I rowsort
SELECT - 79 * 58 * + 47 * + - 39
----
8398806

query I rowsort
SELECT - 23 - + 43 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2610
SELECT - ( COUNT( * ) ) DIV - 43 * + + 45, + CAST( NULL AS SIGNED ) col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2610
SELECT - ( COUNT ( * ) ) / - 43 * + + 45, + CAST ( NULL AS INTEGER ) col2
----
0
NULL

query I rowsort
SELECT - 12 - + 94
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT DISTINCT MAX( ALL + - 38 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT MAX ( ALL + - 38 ) col0
----
-38

query I rowsort
SELECT ALL - 48 + + 23 * + 70 * - - 29 * 66 AS col1
----
3081492

onlyif mysql # DIV for integer division: 
query I rowsort label-2614
SELECT ALL + 57 DIV + - 48
----
-1

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + 57 / + - 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT - COUNT( * ) + - 47 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - COUNT ( * ) + - 47 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL COUNT( DISTINCT 16 ) * - ( - + 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL COUNT ( DISTINCT 16 ) * - ( - + 78 ) AS col1
----
78

query I rowsort
SELECT - 0 * - 51
----
0

query I rowsort
SELECT ALL - 12 + + 13 AS col2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - MAX( DISTINCT - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2620
SELECT - MAX ( DISTINCT - 6 ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT CAST( - 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT CAST ( - 70 AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL - MAX( DISTINCT 14 ) * 68 AS col2
----
-952

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - MAX ( DISTINCT 14 ) * 68 AS col2
----
-952

query I rowsort
SELECT - 64 * 81 AS col0
----
-5184

query I rowsort
SELECT + 70 * 70 AS col2
----
4900

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT DISTINCT + 65 DIV 12 - 79 + + + 28 * 28 * - 56
----
-43978

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + 65 / 12 - 79 + + + 28 * 28 * - 56
----
-43978

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

query I rowsort
SELECT - 34 * 50
----
-1700

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT - - 55 DIV - - 97 + - COALESCE ( + 90, + + 46 + + 47 + + CASE + 21 WHEN + 93 THEN NULL WHEN + 56 THEN + - 0 * - + 84 * - 35 END * - 1, + 18 ) + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-2630
SELECT - - 55 / - - 97 + - COALESCE ( + 90, + + 46 + + 47 + + CASE + 21 WHEN + 93 THEN NULL WHEN + 56 THEN + - 0 * - + 84 * - 35 END * - 1, + 18 ) + COUNT ( * )
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2631
SELECT ALL + + 42 DIV - - 28 - - + NULLIF ( 82, + CAST( - + 17 AS SIGNED ) ) * ( 32 ) AS col0
----
2625

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + + 42 / - - 28 - - + NULLIF ( 82, + CAST ( - + 17 AS INTEGER ) ) * ( 32 ) AS col0
----
2625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2632
SELECT - + 29 + 84 * + CASE + + 67 WHEN - 17 * - + CAST( 11 AS SIGNED ) + + - 41 THEN NULL WHEN - - 2 THEN - + COUNT( DISTINCT - 54 ) / 1 ELSE NULL END AS col0, - 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2632
SELECT - + 29 + 84 * + CASE + + 67 WHEN - 17 * - + CAST ( 11 AS INTEGER ) + + - 41 THEN NULL WHEN - - 2 THEN - + COUNT ( DISTINCT - 54 ) / 1 ELSE NULL END AS col0, - 0
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT - 64 * 92 + - ( - 69 ) + + 52 * - CAST( NULL AS SIGNED ) * - 57 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT - 64 * 92 + - ( - 69 ) + + 52 * - CAST ( NULL AS INTEGER ) * - 57 * - 63
----
NULL

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

query I rowsort
SELECT - 78 + - 57 AS col0
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT + + 32 DIV - 1
----
-32

skipif mysql # not compatible
query I rowsort label-2636
SELECT + + 32 / - 1
----
-32

query I rowsort
SELECT DISTINCT + + 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT ALL + - ( CASE 99 WHEN 26 THEN - 89 / + 28 + + 28 WHEN 69 THEN NULL ELSE + 56 END ) * CASE - 67 WHEN + 13 + + 37 * + 74 * - - CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN 99 THEN + 12 * - MIN( DISTINCT + 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL + - ( CASE 99 WHEN 26 THEN - 89 / + 28 + + 28 WHEN 69 THEN NULL ELSE + 56 END ) * CASE - 67 WHEN + 13 + + 37 * + 74 * - - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN 99 THEN + 12 * - MIN ( DISTINCT + 65 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT COUNT( * ) * + - 72 * - + 26 + + + 15 + + - 19 AS col1
----
1868

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT COUNT ( * ) * + - 72 * - + 26 + + + 15 + + - 19 AS col1
----
1868

query I rowsort
SELECT DISTINCT + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2641
SELECT ALL 97 * + - 30, + SUM( - - 25 ) + + - 87 * + 10 AS col1
----
-2910
-845

skipif mysql # not compatible
query II rowsort label-2641
SELECT ALL 97 * + - 30, + SUM ( - - 25 ) + + - 87 * + 10 AS col1
----
-2910
-845

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

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

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

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

query I rowsort
SELECT ALL + - 10
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + MIN( ALL + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2646
SELECT + MIN ( ALL + 51 ) AS col0
----
51

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

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

query I rowsort
SELECT ALL 37 + + + ( - 43 ) AS col2
----
-6

query I rowsort
SELECT 97 + - 1 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT - NULLIF ( - CASE - 52 WHEN 71 + + 68 + - 2 THEN + + SUM( 95 ) ELSE NULL END, - - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT - NULLIF ( - CASE - 52 WHEN 71 + + 68 + - 2 THEN + + SUM ( 95 ) ELSE NULL END, - - 50 )
----
NULL

query I rowsort
SELECT DISTINCT 52 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT - COUNT( * ) + CASE 57 WHEN - + 41 THEN + 61 WHEN + - 86 THEN NULL ELSE + 26 END AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2652
SELECT - COUNT ( * ) + CASE 57 WHEN - + 41 THEN + 61 WHEN + - 86 THEN NULL ELSE + 26 END AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2653
SELECT ALL + 89 * + - 13 * 67 AS col0, - COALESCE ( 76, 50 DIV - - SUM( ALL - 54 ) + - 28 + 59 - + 79 * - 99 )
----
-77519
-76

skipif mysql # not compatible
query II rowsort label-2653
SELECT ALL + 89 * + - 13 * 67 AS col0, - COALESCE ( 76, 50 / - - SUM ( ALL - 54 ) + - 28 + 59 - + 79 * - 99 )
----
-77519
-76

query I rowsort
SELECT DISTINCT 30 + 57 AS col2
----
87

query II rowsort
SELECT 20 + - 7 * 29 AS col0, 78 AS col2
----
-183
78

query II rowsort
SELECT - 36 col0, + 20 AS col1
----
-36
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT 43 - - 47 * 29 + + - 0 + + SUM( 79 ) + 13 AS col2
----
1498

skipif mysql # not compatible
query I rowsort label-2658
SELECT 43 - - 47 * 29 + + - 0 + + SUM ( 79 ) + 13 AS col2
----
1498

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT ALL - 27 DIV + - 16 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - 27 / + - 16 AS col2
----
1

query I rowsort
SELECT DISTINCT - 9 * - 63
----
567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2661
SELECT - 27 DIV + CAST( - - 62 AS SIGNED ) + + - 37 DIV SUM( + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-2661
SELECT - 27 / + CAST ( - - 62 AS INTEGER ) + + - 37 / SUM ( + 38 )
----
0

query II rowsort
SELECT 52 + + + 12 * + 31, 69 * - 37 AS col0
----
424
-2553

query I rowsort
SELECT 61 + + COALESCE ( - 70, + - 6, 17 ) * - 66
----
4681

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

query I rowsort
SELECT + + 71 AS col0
----
71

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

query I rowsort
SELECT - 84 * - + 31
----
2604

query I rowsort
SELECT ALL - 11 + 43 AS col0
----
32

query I rowsort
SELECT + + 40
----
40

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

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

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

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

query I rowsort
SELECT DISTINCT - 29 + - 53
----
-82

query I rowsort
SELECT ALL + 96 + 28 AS col2
----
124

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT - 26 DIV + - 55 DIV COALESCE ( - + 20, - - 2 + + 62 DIV + COUNT( * ) * ( CASE - - 85 WHEN - 67 THEN + 47 * - - MIN( + 15 ) * CASE 26 WHEN - + 2 + 7 THEN - - 96 WHEN + + 26 THEN NULL END + + COALESCE ( - NULLIF ( 94, 0 ), - ( - 85 ) ) WHEN CASE + 42 WHEN ( 34 ) + + 74 THEN NULL WHEN 75 DIV + 89 + - 28 THEN 82 ELSE NULL END THEN + 96 ELSE NULL END ) + 80, COUNT( * ) ) * - 26 col2
----
0

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - 26 / + - 55 / COALESCE ( - + 20, - - 2 + + 62 / + COUNT ( * ) * ( CASE - - 85 WHEN - 67 THEN + 47 * - - MIN ( + 15 ) * CASE 26 WHEN - + 2 + 7 THEN - - 96 WHEN + + 26 THEN NULL END + + COALESCE ( - NULLIF ( 94, 0 ), - ( - 85 ) ) WHEN CASE + 42 WHEN ( 34 ) + + 74 THEN NULL WHEN 75 / + 89 + - 28 THEN 82 ELSE NULL END THEN + 96 ELSE NULL END ) + 80, COUNT ( * ) ) * - 26 col2
----
0

query I rowsort
SELECT DISTINCT + 68 + + + 44 + + 27
----
139

query I rowsort
SELECT DISTINCT + 46 * - + 94
----
-4324

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT - 77 * - ( 35 ) * + - COUNT( * )
----
-2695

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT - 77 * - ( 35 ) * + - COUNT ( * )
----
-2695

query II rowsort
SELECT ALL 70 AS col1, + 86 AS col0
----
70
86

query II rowsort
SELECT - 23, + 7 AS col0
----
-23
7

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

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

query I rowsort
SELECT ( 61 ) + + + 80 AS col1
----
141

query II rowsort
SELECT ALL 81 col2, 72 AS col2
----
81
72

query II rowsort
SELECT - 34, 67 * - + 59 * + 52 AS col1
----
-34
-205556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2685
SELECT 46 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT 46 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 41, + 17 AS col1
----
41
17

query II rowsort
SELECT ALL 92 AS col0, ( - 6 )
----
92
-6

query I rowsort
SELECT ALL 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT - MIN( ALL + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-2689
SELECT - MIN ( ALL + 49 )
----
-49

query I rowsort
SELECT ALL 55 col1
----
55

query II rowsort
SELECT - 56, 70 * - 38 AS col1
----
-56
-2660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2692
SELECT - 57 AS col1, COALESCE ( - 48, + - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ) + + - ( 48 ) * 88
----
-57
-4272

skipif mysql # not compatible
query II rowsort label-2692
SELECT - 57 AS col1, COALESCE ( - 48, + - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) + + - ( 48 ) * 88
----
-57
-4272

query I rowsort
SELECT 26 * + + 5
----
130

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

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

query I rowsort
SELECT ALL 69 * + 40 col1
----
2760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT 32 - - - CAST( + 67 AS SIGNED ) + 92 - + - 81 * + 31 * + 11
----
27678

skipif mysql # not compatible
query I rowsort label-2696
SELECT 32 - - - CAST ( + 67 AS INTEGER ) + 92 - + - 81 * + 31 * + 11
----
27678

query II rowsort
SELECT 16 AS col2, - 89
----
16
-89

query II rowsort
SELECT DISTINCT - - 85 AS col1, + 52
----
85
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT - 17 ) + 87 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT - 17 ) + 87 AS col2
----
88

query I rowsort
SELECT ALL - 96 * + + 43 + 92 * 37
----
-724

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2702
SELECT - 73 * - COUNT( * ), 98 + 60 col0
----
73
158

skipif mysql # not compatible
query II rowsort label-2702
SELECT - 73 * - COUNT ( * ), 98 + 60 col0
----
73
158

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT COUNT( * ) - + 53 * + ( + + 71 ) - - 20 col1
----
-3742

skipif mysql # not compatible
query I rowsort label-2704
SELECT COUNT ( * ) - + 53 * + ( + + 71 ) - - 20 col1
----
-3742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2705
SELECT + COUNT( * ) DIV 2 + 87 + 71
----
158

skipif mysql # not compatible
query I rowsort label-2705
SELECT + COUNT ( * ) / 2 + 87 + 71
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT + 9 * - SUM( - 78 ) AS col1
----
702

skipif mysql # not compatible
query I rowsort label-2706
SELECT + 9 * - SUM ( - 78 ) AS col1
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + COALESCE ( COUNT( * ), 18 + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-2707
SELECT + COALESCE ( COUNT ( * ), 18 + 91 )
----
1

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

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

query II rowsort
SELECT + 70 AS col2, - 36
----
70
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL 16 * - ( + COUNT( * ) ) + 83 + + MAX( ALL - 45 ) - + CASE COUNT( * ) WHEN + ( + 27 ) * - COUNT( * ) THEN NULL WHEN + + 97 / + COUNT( * ) + 24 * + + 3 THEN NULL ELSE + + COUNT( * ) END + + 78 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL 16 * - ( + COUNT ( * ) ) + 83 + + MAX ( ALL - 45 ) - + CASE COUNT ( * ) WHEN + ( + 27 ) * - COUNT ( * ) THEN NULL WHEN + + 97 / + COUNT ( * ) + 24 * + + 3 THEN NULL ELSE + + COUNT ( * ) END + + 78 AS col1
----
99

query II rowsort
SELECT - 3 + 44, 2 AS col2
----
41
2

query I rowsort
SELECT DISTINCT + ( - + 56 ) AS col2
----
-56

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

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

query I rowsort
SELECT - - 78 + + 76 AS col1
----
154

query II rowsort
SELECT ALL + 47 AS col2, 19 * + + 55 AS col2
----
47
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2716
SELECT ALL COALESCE ( - NULLIF ( - 34, - COALESCE ( + 83, 8, + 69 ) ), - + 75 + COUNT( ALL - 73 ) ) AS col0, - 90 + CAST( COUNT( * ) AS SIGNED ) + - 53 AS col2
----
34
-142

skipif mysql # not compatible
query II rowsort label-2716
SELECT ALL COALESCE ( - NULLIF ( - 34, - COALESCE ( + 83, 8, + 69 ) ), - + 75 + COUNT ( ALL - 73 ) ) AS col0, - 90 + CAST ( COUNT ( * ) AS INTEGER ) + - 53 AS col2
----
34
-142

query I rowsort
SELECT ALL + 99 - + 70
----
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2718
SELECT DISTINCT - 44 DIV - 98 AS col2, - ( - 44 ) * + 15 + - - CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2718
SELECT DISTINCT - 44 / - 98 AS col2, - ( - 44 ) * + 15 + - - CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2719
SELECT - COUNT( * ) * - 18 + 20 AS col1, 83 + - 40
----
38
43

skipif mysql # not compatible
query II rowsort label-2719
SELECT - COUNT ( * ) * - 18 + 20 AS col1, 83 + - 40
----
38
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT - 23 DIV + 31
----
0

skipif mysql # not compatible
query I rowsort label-2720
SELECT - 23 / + 31
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2721
SELECT ALL - 54 DIV COUNT( * ), - CASE + 62 WHEN 32 + + 88 THEN + 74 * + - 16 + - MAX( ALL + + 96 ) END AS col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-2721
SELECT ALL - 54 / COUNT ( * ), - CASE + 62 WHEN 32 + + 88 THEN + 74 * + - 16 + - MAX ( ALL + + 96 ) END AS col0
----
-54
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT - MAX( - 84 ) AS col2, - 65
----
84
-65

skipif mysql # not compatible
query II rowsort label-2722
SELECT - MAX ( - 84 ) AS col2, - 65
----
84
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT + 11 - + + 21 * + MAX( DISTINCT 1 ) DIV 74 * 47
----
11

skipif mysql # not compatible
query I rowsort label-2723
SELECT + 11 - + + 21 * + MAX ( DISTINCT 1 ) / 74 * 47
----
11

query I rowsort
SELECT ALL + ( - ( - - 54 ) ) * 65 + - 24 AS col1
----
-3534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2725
SELECT - 81 + - 3 - + - 75 DIV - - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-2725
SELECT - 81 + - 3 - + - 75 / - - COUNT ( * )
----
-9

query I rowsort
SELECT ALL 93 * - 14 AS col1
----
-1302

query I rowsort
SELECT + 39 * - - 25
----
975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2728
SELECT + 51 + 85, 98 * + ( COUNT( * ) ) + CAST( ( - + 81 ) AS SIGNED ) AS col2
----
136
17

skipif mysql # not compatible
query II rowsort label-2728
SELECT + 51 + 85, 98 * + ( COUNT ( * ) ) + CAST ( ( - + 81 ) AS INTEGER ) AS col2
----
136
17

query I rowsort
SELECT + 57 - NULLIF ( + 75, 74 + - 18 )
----
-18

query I rowsort
SELECT ALL 21 + - ( - - 58 ) + + 59 + - - ( + 38 ) * - 4 AS col0
----
-130

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL + + 44 + - + 36 * + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL + + 44 + - + 36 * + + COUNT ( * )
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2733
SELECT + 57 + + 49 * + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT + 57 + + 49 * + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2734
SELECT ALL + CAST( - COALESCE ( 43, 82 ) AS SIGNED ) + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + CAST ( - COALESCE ( 43, 82 ) AS INTEGER ) + ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2735
SELECT + + 59 + + CAST( 66 AS SIGNED )
----
125

skipif mysql # not compatible
query I rowsort label-2735
SELECT + + 59 + + CAST ( 66 AS INTEGER )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL + SUM( 87 ) + + 78
----
165

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + SUM ( 87 ) + + 78
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2737
SELECT + + COALESCE ( SUM( - 43 ), - 84 ) DIV + 7 + 50
----
44

skipif mysql # not compatible
query I rowsort label-2737
SELECT + + COALESCE ( SUM ( - 43 ), - 84 ) / + 7 + 50
----
44

query I rowsort
SELECT + + 9 + - + COALESCE ( ( + 34 ), + 65 ) AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2739
SELECT ALL + 48 DIV + MIN( ALL + 25 ) + + COUNT( - 15 ) + - - 4 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + 48 / + MIN ( ALL + 25 ) + + COUNT ( - 15 ) + - - 4 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT + - 98 * - - 34 + + COUNT( 33 ) * + 97 * + - COUNT( * )
----
-3429

skipif mysql # not compatible
query I rowsort label-2740
SELECT + - 98 * - - 34 + + COUNT ( 33 ) * + 97 * + - COUNT ( * )
----
-3429

query I rowsort
SELECT DISTINCT - 70 * + 59
----
-4130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2742
SELECT + 60 DIV ( - - COUNT( * ) ) + - + 41 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 60 / ( - - COUNT ( * ) ) + - + 41 AS col2
----
19

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2744
SELECT DISTINCT - COUNT( * ) * + CASE + MAX( DISTINCT + 77 ) WHEN + + 12 + + + 96 THEN NULL ELSE - 14 + + 50 END AS col1, - COALESCE ( - COUNT( * ), - 93 * - - 41 + - - 13 + + 24 - 13, - - ( - 2 ) ) * 33
----
-36
33

skipif mysql # not compatible
query II rowsort label-2744
SELECT DISTINCT - COUNT ( * ) * + CASE + MAX ( DISTINCT + 77 ) WHEN + + 12 + + + 96 THEN NULL ELSE - 14 + + 50 END AS col1, - COALESCE ( - COUNT ( * ), - 93 * - - 41 + - - 13 + + 24 - 13, - - ( - 2 ) ) * 33
----
-36
33

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL - ( - 67 ) * 59 * 80 - - CAST( - 2 AS SIGNED )
----
316238

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - ( - 67 ) * 59 * 80 - - CAST ( - 2 AS INTEGER )
----
316238

query I rowsort
SELECT - - 82 * + 23
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL + SUM( 79 )
----
79

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + SUM ( 79 )
----
79

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

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

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

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

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

query I rowsort
SELECT + 47 * - 19 * + 45 AS col2
----
-40185

query I rowsort
SELECT - 53 * - + ( - 1 ) AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT ALL - CASE - CAST( 97 AS SIGNED ) WHEN + 96 THEN - + ( 89 ) ELSE NULL END * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL - CASE - CAST ( 97 AS INTEGER ) WHEN + 96 THEN - + ( 89 ) ELSE NULL END * + + COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT NULLIF ( 24, - 34 / 28 + 22 * 36 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2758
SELECT ALL 6 * - + 5 DIV + COUNT( ALL - 50 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL 6 * - + 5 / + COUNT ( ALL - 50 ) AS col1
----
-30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2760
SELECT DISTINCT CAST( NULL AS SIGNED ), 51 + - 46 AS col1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-2760
SELECT DISTINCT CAST ( NULL AS INTEGER ), 51 + - 46 AS col1
----
NULL
5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2762
SELECT COUNT( * ) AS col0, - CASE - 23 WHEN - 79 + 97 THEN 25 ELSE - 27 END * + + 59 DIV + 59
----
1
27

skipif mysql # not compatible
query II rowsort label-2762
SELECT COUNT ( * ) AS col0, - CASE - 23 WHEN - 79 + 97 THEN 25 ELSE - 27 END * + + 59 / + 59
----
1
27

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

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

query I rowsort
SELECT - 81 * - 58
----
4698

query I rowsort
SELECT - 87 + + 32 AS col0
----
-55

query II rowsort
SELECT DISTINCT ( - ( 80 ) ) AS col2, - 30
----
-80
-30

query I rowsort
SELECT ALL + 96 + 38 AS col0
----
134

query I rowsort
SELECT - 51 * + 68 AS col1
----
-3468

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

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL + CAST ( NULL AS INTEGER ) + - 64
----
NULL

query I rowsort
SELECT DISTINCT + 82 * - - 8 + - 98 + - NULLIF ( - 36, + 76 ) * 12
----
990

query I rowsort
SELECT DISTINCT + + 66 + 43
----
109

query I rowsort
SELECT ALL + 33 + + CASE + 55 WHEN + 13 + 88 THEN + - ( + - 1 ) WHEN 43 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL + 74 * + + CASE 23 WHEN + CASE 60 WHEN - + 7 / COUNT( * ) - + 47 THEN NULL WHEN + 76 THEN NULL WHEN + 14 + - - 33 + - + COUNT( * ) THEN + + 98 WHEN + - 55 THEN NULL ELSE 58 END THEN - 78 + - 84 * 10 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL + 74 * + + CASE 23 WHEN + CASE 60 WHEN - + 7 / COUNT ( * ) - + 47 THEN NULL WHEN + 76 THEN NULL WHEN + 14 + - - 33 + - + COUNT ( * ) THEN + + 98 WHEN + - 55 THEN NULL ELSE 58 END THEN - 78 + - 84 * 10 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - 64 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT - 31 - MAX( + 28 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2775
SELECT - 31 - MAX ( + 28 ) AS col2
----
-59

query II rowsort
SELECT ALL 37, 98 + 90 AS col2
----
37
188

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

skipif mysql # not compatible
query I rowsort label-2777
SELECT + COUNT ( * ) - - 19 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2778
SELECT ALL + - 24 - - 63 * 44 * + COALESCE ( + 77, - COUNT( * ) * + CAST( - 42 AS SIGNED ) * 51 * + - NULLIF ( 94, - + 79 * - 6 * 26 * - 82 ) + + 42 ) * - + 21 + + - 76 + + 55 - 17 DIV 84 - - 7 + - 40 * + COUNT( * ) AS col1
----
-4482402

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL + - 24 - - 63 * 44 * + COALESCE ( + 77, - COUNT ( * ) * + CAST ( - 42 AS INTEGER ) * 51 * + - NULLIF ( 94, - + 79 * - 6 * 26 * - 82 ) + + 42 ) * - + 21 + + - 76 + + 55 - 17 / 84 - - 7 + - 40 * + COUNT ( * ) AS col1
----
-4482402

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

query II rowsort
SELECT ALL - 97 - + ( 97 ), 11 * 92 col1
----
-194
1012

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

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

query I rowsort
SELECT ALL + 17 - + + 89 * + 96
----
-8527

query I rowsort
SELECT 0 col0
----
0

query I rowsort
SELECT DISTINCT - 69 col0
----
-69

query I rowsort
SELECT 28 * - 37 AS col1
----
-1036

onlyif mysql # aggregate syntax: 
query II rowsort label-2786
SELECT - COUNT( * ) + - 28 * - - 55 AS col1, - 15
----
-1541
-15

skipif mysql # not compatible
query II rowsort label-2786
SELECT - COUNT ( * ) + - 28 * - - 55 AS col1, - 15
----
-1541
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT ALL MIN( 27 ) - + + 66 * - + 57
----
3789

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL MIN ( 27 ) - + + 66 * - + 57
----
3789

query I rowsort
SELECT + + 74
----
74

query I rowsort
SELECT 89 + + - 15 * 18 + + 71
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-2790
SELECT - 60 + - COUNT( * ) * + 91 + - 95 * - MAX( - + 68 ) * 49 + - - 86 col0, 2
----
-316605
2

skipif mysql # not compatible
query II rowsort label-2790
SELECT - 60 + - COUNT ( * ) * + 91 + - 95 * - MAX ( - + 68 ) * 49 + - - 86 col0, 2
----
-316605
2

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

skipif mysql # not compatible
query I rowsort label-2791
SELECT + COUNT ( * ) / - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT 35 * + 99 + COUNT( * )
----
3466

skipif mysql # not compatible
query I rowsort label-2792
SELECT 35 * + 99 + COUNT ( * )
----
3466

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL COUNT( * ) * 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL COUNT ( * ) * 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-2794
SELECT DISTINCT 65 * - + 60 * - - COALESCE ( 37, - - 72 * 20 + - - MIN( ALL + - 90 ) + + 64 + + 4 ) * - 74 + + ( + MIN( DISTINCT 72 ) ) - + - 92 AS col2, + 16
----
10678364
16

skipif mysql # not compatible
query II rowsort label-2794
SELECT DISTINCT 65 * - + 60 * - - COALESCE ( 37, - - 72 * 20 + - - MIN ( ALL + - 90 ) + + 64 + + 4 ) * - 74 + + ( + MIN ( DISTINCT 72 ) ) - + - 92 AS col2, + 16
----
10678364
16

onlyif mysql # DIV for integer division: 
query II rowsort label-2795
SELECT DISTINCT + 81 DIV - 25, + 91 * - 68 AS col0
----
-3
-6188

skipif mysql # not compatible
query II rowsort label-2795
SELECT DISTINCT + 81 / - 25, + 91 * - 68 AS col0
----
-3
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT DISTINCT ( + - 74 ) + - 53 * - + CAST( NULL AS SIGNED ) + - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT ( + - 74 ) + - 53 * - + CAST ( NULL AS INTEGER ) + - 29 AS col2
----
NULL

query I rowsort
SELECT 45 + + 45
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT ( - 61 ) DIV + 11 + + COALESCE ( - 73, - 31 )
----
-78

skipif mysql # not compatible
query I rowsort label-2798
SELECT ( - 61 ) / + 11 + + COALESCE ( - 73, - 31 )
----
-78

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

skipif mysql # not compatible
query I rowsort label-2799
SELECT 52 / - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT DISTINCT - 18 * - - MIN( - COALESCE ( + 52, - - 77 ) )
----
936

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT - 18 * - - MIN ( - COALESCE ( + 52, - - 77 ) )
----
936

query I rowsort
SELECT ALL + 64 + + 32 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT DISTINCT 57 + + - 85 DIV - 45 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT 57 + + - 85 / - 45 AS col0
----
58

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

skipif mysql # not compatible
query I rowsort label-2803
SELECT 51 * + 51 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT DISTINCT + 92 + + + 67 + 41 DIV - - 65 col2
----
159

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT + 92 + + + 67 + 41 / - - 65 col2
----
159

query I rowsort
SELECT ALL 10 + + 47
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2806
SELECT ALL + 74 + - + ( - - 40 ) DIV 62 * COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + 74 + - + ( - - 40 ) / 62 * COUNT ( * ) AS col1
----
74

query I rowsort
SELECT ALL + 1 * - 52 AS col0
----
-52

query II rowsort
SELECT DISTINCT + 36 + + 13, 91 * - 79 AS col2
----
49
-7189

query I rowsort
SELECT - - 17 col1
----
17

query I rowsort
SELECT ALL - - 76 + + 8
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT + 28 + + + COUNT( ALL 84 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2811
SELECT + 28 + + + COUNT ( ALL 84 ) AS col2
----
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2813
SELECT CASE CAST( NULL AS SIGNED ) WHEN + COUNT( 10 ) THEN NULL WHEN - - 95 * - NULLIF ( - 47, - 64 * COUNT( * ) + - 11 ) * COUNT( * ) * 4 + 11 + + COUNT( * ) THEN - 30 WHEN - ( + CAST( - COUNT( * ) AS DECIMAL ) ) * + 19 THEN + 82 ELSE + 96 END + + + CAST( + 21 AS SIGNED )
----
117

skipif mysql # not compatible
query I rowsort label-2813
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( 10 ) THEN NULL WHEN - - 95 * - NULLIF ( - 47, - 64 * COUNT ( * ) + - 11 ) * COUNT ( * ) * 4 + 11 + + COUNT ( * ) THEN - 30 WHEN - ( + CAST ( - COUNT ( * ) AS REAL ) ) * + 19 THEN + 82 ELSE + 96 END + + + CAST ( + 21 AS INTEGER )
----
117

query I rowsort
SELECT ALL + + 89 - 16 * - 88 + - 40 - + + 56 + + + NULLIF ( 54, CASE + 70 WHEN - 25 THEN - 30 * - ( + 53 ) WHEN - 36 THEN NULL ELSE + 73 * + + 58 END ) * + - 56
----
-1623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT DISTINCT + + 72 DIV COUNT( * ) + + 90
----
162

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT + + 72 / COUNT ( * ) + + 90
----
162

query I rowsort
SELECT 63 + + + 74 col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT + CASE + + 68 WHEN 30 THEN 43 * - 58 - + ( - 24 ) WHEN - 26 THEN - ( + 79 ) END * 92 + + CASE - 7 WHEN ( + + 18 ) THEN NULL WHEN + COUNT( * ) * + + 1 * + + 72 THEN 94 ELSE + ( + - AVG ( DISTINCT + 94 ) ) END * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT + CASE + + 68 WHEN 30 THEN 43 * - 58 - + ( - 24 ) WHEN - 26 THEN - ( + 79 ) END * 92 + + CASE - 7 WHEN ( + + 18 ) THEN NULL WHEN + COUNT ( * ) * + + 1 * + + 72 THEN 94 ELSE + ( + - AVG ( DISTINCT + 94 ) ) END * 56
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2819
SELECT ALL + + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) * SUM( ALL + 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL + + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) * SUM ( ALL + 31 ) AS col0
----
NULL

query I rowsort
SELECT + - 12
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2821
SELECT ALL + + NULLIF ( + 5, + 16 + - - ( + NULLIF ( - CAST( NULL AS SIGNED ), + 59 * + 21 + - 19 ) ) + - - 41 + + AVG ( + + 82 ) ) * - NULLIF ( + 16, + - 32 ), COUNT( * ) AS col0
----
-80
1

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL + + NULLIF ( + 5, + 16 + - - ( + NULLIF ( - CAST ( NULL AS INTEGER ), + 59 * + 21 + - 19 ) ) + - - 41 + + AVG ( + + 82 ) ) * - NULLIF ( + 16, + - 32 ), COUNT ( * ) AS col0
----
-80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT COUNT( * ) * - SUM( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT COUNT ( * ) * - SUM ( - 0 )
----
0

query I rowsort
SELECT + 78 AS col1
----
78

query I rowsort
SELECT - 30 * + - 92 + + 38
----
2798

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

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

query I rowsort
SELECT ALL - + 84 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL - COUNT( - - 19 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - COUNT ( - - 19 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - - 93 AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT DISTINCT - CASE - 69 WHEN + 84 THEN NULLIF ( - 17, - 67 ) ELSE - + NULLIF ( ( - - MAX( + - ( + + 89 ) ) ), + - 23 ) DIV - 20 END AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - CASE - 69 WHEN + 84 THEN NULLIF ( - 17, - 67 ) ELSE - + NULLIF ( ( - - MAX ( + - ( + + 89 ) ) ), + - 23 ) / - 20 END AS col2
----
4

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT + 75, + 67 + + COUNT( * ) AS col1
----
75
68

skipif mysql # not compatible
query II rowsort label-2832
SELECT + 75, + 67 + + COUNT ( * ) AS col1
----
75
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2833
SELECT DISTINCT ( - + COALESCE ( MIN( DISTINCT 73 ), - 45, 27 ) ) + + - 43 * - 34 AS col0, + CASE + 12 WHEN - + 37 THEN NULL WHEN 79 / + COUNT( * ) THEN NULL ELSE + MAX( + + 41 ) + - 89 END
----
1389
-48

skipif mysql # not compatible
query II rowsort label-2833
SELECT DISTINCT ( - + COALESCE ( MIN ( DISTINCT 73 ), - 45, 27 ) ) + + - 43 * - 34 AS col0, + CASE + 12 WHEN - + 37 THEN NULL WHEN 79 / + COUNT ( * ) THEN NULL ELSE + MAX ( + + 41 ) + - 89 END
----
1389
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT ALL CAST( + 42 AS SIGNED ) + COUNT( DISTINCT 59 )
----
43

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL CAST ( + 42 AS INTEGER ) + COUNT ( DISTINCT 59 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT ALL CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - 76 * + 95 * ( - - 73 ) * - + 80 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 76 * + 95 * ( - - 73 ) * - + 80 + + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT 96 * COUNT( * ) + + + 37 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-2836
SELECT 96 * COUNT ( * ) + + + 37 AS col0
----
133

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2838
SELECT DISTINCT - 84 AS col1, + 28 DIV - - 78 * 9 * SUM( DISTINCT - + 94 )
----
-84
0

skipif mysql # not compatible
query II rowsort label-2838
SELECT DISTINCT - 84 AS col1, + 28 / - - 78 * 9 * SUM ( DISTINCT - + 94 )
----
-84
0

query I rowsort
SELECT DISTINCT 40 + - 98 AS col1
----
-58

query I rowsort
SELECT DISTINCT 51 * + 99 col0
----
5049

query I rowsort
SELECT DISTINCT - 29 AS col0
----
-29

query I rowsort
SELECT ALL 69 + 58 + - 14
----
113

query I rowsort
SELECT 70 * - + 36
----
-2520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2844
SELECT 77 + - 63 DIV 79 * - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-2844
SELECT 77 + - 63 / 79 * - COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT 4 + 24 * 11
----
268

query I rowsort
SELECT - 33 - - - 29 AS col2
----
-62

query I rowsort
SELECT + CASE - 57 WHEN + 36 THEN - + ( + - 64 ) END AS col0
----
NULL

query I rowsort
SELECT + - 52 * + 52 + + - 25
----
-2729

query I rowsort
SELECT ALL + 41 * + - 9 * 91
----
-33579

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT - MIN( DISTINCT 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT - MIN ( DISTINCT 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + + 77 + 79 / - - 6 + + CASE + 8 WHEN - COALESCE ( - - 87, COUNT( * ) ) / - + 76 + - 68 * + + 43 + + + COUNT( * ) THEN + - 33 WHEN - NULLIF ( - NULLIF ( + 14, 33 ), + 48 * - 60 * CASE - SUM( DISTINCT - - 63 ) WHEN - AVG ( ALL 48 ) * 59 THEN - 65 ELSE NULL END + 31 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT + + 77 + 79 / - - 6 + + CASE + 8 WHEN - COALESCE ( - - 87, COUNT ( * ) ) / - + 76 + - 68 * + + 43 + + + COUNT ( * ) THEN + - 33 WHEN - NULLIF ( - NULLIF ( + 14, 33 ), + 48 * - 60 * CASE - SUM ( DISTINCT - - 63 ) WHEN - AVG ( ALL 48 ) * 59 THEN - 65 ELSE NULL END + 31 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL SUM( DISTINCT 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL SUM ( DISTINCT 84 ) AS col2
----
84

query I rowsort
SELECT - 10 AS col1
----
-10

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

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL COUNT ( * ) * + - ( - 62 ) AS col0
----
62

query I rowsort
SELECT - - 47 AS col2
----
47

query I rowsort
SELECT + 93 + - + 57 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT MIN( DISTINCT - - 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2857
SELECT MIN ( DISTINCT - - 29 ) AS col0
----
29

query I rowsort
SELECT + + 25 * + 29 col1
----
725

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2860
SELECT ALL ( MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) ), + 36 * - + 4 AS col0
----
NULL
-144

skipif mysql # not compatible
query II rowsort label-2860
SELECT ALL ( MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ), + 36 * - + 4 AS col0
----
NULL
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2861
SELECT - + 34 - - + 0 + - + MAX( DISTINCT + 38 ) + - + 68 + - 63 * + + CAST( 92 AS SIGNED ) + + + 85 DIV CASE + 1 WHEN 53 DIV ( - COUNT( * ) ) THEN NULL ELSE - COUNT( * ) END * - 26 DIV - - 2 AS col2
----
-4831

skipif mysql # not compatible
query I rowsort label-2861
SELECT - + 34 - - + 0 + - + MAX ( DISTINCT + 38 ) + - + 68 + - 63 * + + CAST ( 92 AS INTEGER ) + + + 85 / CASE + 1 WHEN 53 / ( - COUNT ( * ) ) THEN NULL ELSE - COUNT ( * ) END * - 26 / - - 2 AS col2
----
-4831

query I rowsort
SELECT - + 1 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT - + 70 * - 33 - + - 31 * - - 99 * ( COALESCE ( 15, - + 86 * - - 98 + - 58 + - + COUNT( * ) * - ( 89 ), - 75 * 72 + - 55 ) ) + - 87
----
48258

skipif mysql # not compatible
query I rowsort label-2863
SELECT - + 70 * - 33 - + - 31 * - - 99 * ( COALESCE ( 15, - + 86 * - - 98 + - 58 + - + COUNT ( * ) * - ( 89 ), - 75 * 72 + - 55 ) ) + - 87
----
48258

query I rowsort
SELECT ALL - CASE + 98 WHEN 56 THEN 46 * - 69 END / - 42 * + 81 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2866
SELECT + COALESCE ( + 91, + COUNT( * ), + + 21, + COUNT( * ) ) AS col0, 83
----
91
83

skipif mysql # not compatible
query II rowsort label-2866
SELECT + COALESCE ( + 91, + COUNT ( * ), + + 21, + COUNT ( * ) ) AS col0, 83
----
91
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT - 69 DIV 38 * + + 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2867
SELECT - 69 / 38 * + + 1 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT ALL + 29 * - ( CASE + 2 WHEN + NULLIF ( - 90, + + 33 + + - 55 ) THEN NULL ELSE + + 1 END ) + 74 + + COUNT( * ) + 75 * - COUNT( * ) + 82 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + 29 * - ( CASE + 2 WHEN + NULLIF ( - 90, + + 33 + + - 55 ) THEN NULL ELSE + + 1 END ) + 74 + + COUNT ( * ) + 75 * - COUNT ( * ) + 82 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2869
SELECT - 47 DIV - + COUNT( * ) + - + 75 + + 3 AS col2, - 85
----
-25
-85

skipif mysql # not compatible
query II rowsort label-2869
SELECT - 47 / - + COUNT ( * ) + - + 75 + + 3 AS col2, - 85
----
-25
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2870
SELECT ALL + CASE - 34 WHEN + SUM( CAST( - + CAST( + + 91 AS SIGNED ) AS SIGNED ) ) THEN + - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + CASE - 34 WHEN + SUM ( CAST ( - + CAST ( + + 91 AS INTEGER ) AS INTEGER ) ) THEN + - 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2871
SELECT 9 * + - 92 - + 27 + 39 AS col2, 60 - + SUM( 1 ) * - 36 AS col1
----
-816
96

skipif mysql # not compatible
query II rowsort label-2871
SELECT 9 * + - 92 - + 27 + 39 AS col2, 60 - + SUM ( 1 ) * - 36 AS col1
----
-816
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2872
SELECT DISTINCT + 97 * + MIN( 99 ) + + + 22 DIV COUNT( ALL + 54 ) AS col0
----
9625

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT + 97 * + MIN ( 99 ) + + + 22 / COUNT ( ALL + 54 ) AS col0
----
9625

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL 84 * 27 + + COUNT( * ) * - - 44
----
2312

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL 84 * 27 + + COUNT ( * ) * - - 44
----
2312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2874
SELECT - COUNT( * ) + + - 74 DIV + 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-2874
SELECT - COUNT ( * ) + + - 74 / + 9 AS col2
----
-9

query I rowsort
SELECT ALL 90 * + 97 + + 60 * 83 + - 3 AS col2
----
13707

query I rowsort
SELECT 9 * 98 * - 66 + + 59
----
-58153

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2878
SELECT + SUM( - + CASE - + 92 WHEN + 89 * CAST( NULL AS SIGNED ) + - 47 THEN + 63 ELSE 70 END )
----
-70

skipif mysql # not compatible
query I rowsort label-2878
SELECT + SUM ( - + CASE - + 92 WHEN + 89 * CAST ( NULL AS INTEGER ) + - 47 THEN + 63 ELSE 70 END )
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT - 92 + + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-2880
SELECT - 92 + + COUNT ( * ) AS col0
----
-91

query I rowsort
SELECT - 51 * 7 AS col1
----
-357

query I rowsort
SELECT ALL + 15 col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2883
SELECT + 6 AS col2, 92 * SUM( ALL + 31 )
----
6
2852

skipif mysql # not compatible
query II rowsort label-2883
SELECT + 6 AS col2, 92 * SUM ( ALL + 31 )
----
6
2852

query I rowsort
SELECT + 64 * + 10 + 7
----
647

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT + SUM( - 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-2885
SELECT + SUM ( - 77 ) col0
----
-77

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

query II rowsort
SELECT ALL 83 * - + 41 * + 52 - - 4 AS col1, 74 AS col0
----
-176952
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT + CAST( + 57 AS SIGNED ) * + 9
----
513

skipif mysql # not compatible
query I rowsort label-2888
SELECT + CAST ( + 57 AS INTEGER ) * + 9
----
513

query I rowsort
SELECT + 97 + - 24 AS col0
----
73

query I rowsort
SELECT - - 93
----
93

query II rowsort
SELECT ALL 77 col0, 38 col0
----
77
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT DISTINCT + 28 AS col1, COALESCE ( - 33, + + ( + 6 ), COUNT( * ) )
----
28
-33

skipif mysql # not compatible
query II rowsort label-2893
SELECT DISTINCT + 28 AS col1, COALESCE ( - 33, + + ( + 6 ), COUNT ( * ) )
----
28
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT + + 29 + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2894
SELECT + + 29 + COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT + + NULLIF ( - CASE WHEN NOT 88 IS NOT NULL THEN + MAX( - 71 ) ELSE NULLIF ( - 72, COUNT( ALL - - 40 ) ) END, - - 50 * - ( + 97 ) + - + CASE - + 37 WHEN + 24 * ( - 73 ) THEN NULL ELSE + 52 END - + NULLIF ( - COUNT( * ), - 18 * + 58 * - 24 + - - 3 + 67 * 36 ) + 50 ) + + 89 * - 90 AS col2
----
-7938

skipif mysql # not compatible
query I rowsort label-2895
SELECT + + NULLIF ( - CASE WHEN NOT 88 IS NOT NULL THEN + MAX ( - 71 ) ELSE NULLIF ( - 72, COUNT ( ALL - - 40 ) ) END, - - 50 * - ( + 97 ) + - + CASE - + 37 WHEN + 24 * ( - 73 ) THEN NULL ELSE + 52 END - + NULLIF ( - COUNT ( * ), - 18 * + 58 * - 24 + - - 3 + 67 * 36 ) + 50 ) + + 89 * - 90 AS col2
----
-7938

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + ( 68 ) + - COALESCE ( - 16, - 40, + 42 + + 32 + - - COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-2896
SELECT + ( 68 ) + - COALESCE ( - 16, - 40, + 42 + + 32 + - - COUNT ( * ) )
----
84

query I rowsort
SELECT + + 80 * - + 8
----
-640

query I rowsort
SELECT ALL 43 + - 78
----
-35

query I rowsort
SELECT + 13 + - 63 AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2900
SELECT COUNT( * ), - 32 - + - CAST( + ( - 9 ) AS SIGNED ) col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-2900
SELECT COUNT ( * ), - 32 - + - CAST ( + ( - 9 ) AS INTEGER ) col2
----
1
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2901
SELECT + COALESCE ( - - 85, - - COALESCE ( - 11, + + CAST( - 53 AS SIGNED ) * + COUNT( * ) DIV + 9, + 21 + + SUM( DISTINCT + 74 ), - - COALESCE ( - 48, + - 14 ) ) DIV + ( + 0 ) + ( 56 ) + + 17 ) + 49 + 72 * 84 DIV - COUNT( * )
----
-5914

skipif mysql # not compatible
query I rowsort label-2901
SELECT + COALESCE ( - - 85, - - COALESCE ( - 11, + + CAST ( - 53 AS INTEGER ) * + COUNT ( * ) / + 9, + 21 + + SUM ( DISTINCT + 74 ), - - COALESCE ( - 48, + - 14 ) ) / + ( + 0 ) + ( 56 ) + + 17 ) + 49 + 72 * 84 / - COUNT ( * )
----
-5914

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL MIN( DISTINCT - - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL MIN ( DISTINCT - - 52 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2903
SELECT + 40 + + COUNT( * ) AS col1, 75 AS col1
----
41
75

skipif mysql # not compatible
query II rowsort label-2903
SELECT + 40 + + COUNT ( * ) AS col1, 75 AS col1
----
41
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL - 8 + - COUNT( * ) + 2 * - 44 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL - 8 + - COUNT ( * ) + 2 * - 44 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT - - MIN( + + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-2905
SELECT - - MIN ( + + 36 )
----
36

query I rowsort
SELECT ALL + 33 + + + 35 * 70
----
2483

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT - 71 + - 43 * - 28 + - COUNT( * ) + + 79 DIV + - 59
----
1131

skipif mysql # not compatible
query I rowsort label-2908
SELECT - 71 + - 43 * - 28 + - COUNT ( * ) + + 79 / + - 59
----
1131

query I rowsort
SELECT ALL 77 * + 43 * + 46 col0
----
152306

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL 11 DIV + 87 * + 62 * + 29 + 68 + + + 32 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL 11 / + 87 * + 62 * + 29 + 68 + + + 32 AS col0
----
100

query I rowsort
SELECT + 35 * + 79
----
2765

query I rowsort
SELECT - 41 * + 47 AS col1
----
-1927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2913
SELECT DISTINCT MAX( + 23 ) DIV 84 DIV - 26 + - - 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT MAX ( + 23 ) / 84 / - 26 + - - 88 AS col0
----
88

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

query II rowsort
SELECT ALL - 50 * + 88 AS col1, + ( + + 43 ) * + 17 + - 7 AS col0
----
-4400
724

query I rowsort
SELECT DISTINCT - 33 * - 68 AS col1
----
2244

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT 80 DIV + + 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT 80 / + + 97 col0
----
0

query I rowsort
SELECT ALL - 42 * - - 48 * - 30
----
60480

query I rowsort
SELECT DISTINCT + 33 * + ( 49 ) * - 49
----
-79233

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT 60 * + COUNT( * ) * 37 AS col1
----
2220

skipif mysql # not compatible
query I rowsort label-2920
SELECT 60 * + COUNT ( * ) * 37 AS col1
----
2220

query I rowsort
SELECT + 23 * - 66 - - CASE + 49 WHEN + 82 * - NULLIF ( + 3, + 99 ) THEN - 75 WHEN 68 THEN NULL END * + 90
----
NULL

query I rowsort
SELECT DISTINCT - 88 * 8
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT 79 - COUNT( * ) + - 29
----
49

skipif mysql # not compatible
query I rowsort label-2923
SELECT 79 - COUNT ( * ) + - 29
----
49

query I rowsort
SELECT DISTINCT - - 30 AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-2925
SELECT + MAX( + 4 ), - 18 AS col2
----
4
-18

skipif mysql # not compatible
query II rowsort label-2925
SELECT + MAX ( + 4 ), - 18 AS col2
----
4
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2926
SELECT ALL ( - 95 ), COUNT( * ) AS col2
----
-95
1

skipif mysql # not compatible
query II rowsort label-2926
SELECT ALL ( - 95 ), COUNT ( * ) AS col2
----
-95
1

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

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - 75 * COUNT ( * ) + + - 54 AS col0
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2928
SELECT + 22 * - ( + 99 ) + - 25 DIV + 87 * - - COUNT( * ) AS col1
----
-2178

skipif mysql # not compatible
query I rowsort label-2928
SELECT + 22 * - ( + 99 ) + - 25 / + 87 * - - COUNT ( * ) AS col1
----
-2178

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT DISTINCT - 31 DIV + - 3
----
10

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT - 31 / + - 3
----
10

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

skipif mysql # not compatible
query I rowsort label-2930
SELECT 7 * - COUNT ( * )
----
-7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT + CAST( - - 39 AS SIGNED ) * - + ( 67 )
----
-2613

skipif mysql # not compatible
query I rowsort label-2932
SELECT + CAST ( - - 39 AS INTEGER ) * - + ( 67 )
----
-2613

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT DISTINCT - SUM( DISTINCT - + 4 ) * 25 + + + 27 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - SUM ( DISTINCT - + 4 ) * 25 + + + 27 AS col1
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT DISTINCT - CASE - COUNT( ALL - 84 ) WHEN + 89 THEN NULL WHEN - 24 THEN NULL ELSE 6 END + - - COUNT( * ) + - SUM( + 52 ) + - 83, 53 + + - 62 AS col1
----
-140
-9

skipif mysql # not compatible
query II rowsort label-2934
SELECT DISTINCT - CASE - COUNT ( ALL - 84 ) WHEN + 89 THEN NULL WHEN - 24 THEN NULL ELSE 6 END + - - COUNT ( * ) + - SUM ( + 52 ) + - 83, 53 + + - 62 AS col1
----
-140
-9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT - CASE + COALESCE ( + 24, COUNT( * ), + 78 ) WHEN + 17 THEN - + 4 * ( - + ( + MIN( - - 89 ) ) ) ELSE NULL END + - CASE + 68 WHEN + 6 - + COUNT( * ) THEN COUNT( * ) * 25 * CAST( NULL AS SIGNED ) END + + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - CASE + COALESCE ( + 24, COUNT ( * ), + 78 ) WHEN + 17 THEN - + 4 * ( - + ( + MIN ( - - 89 ) ) ) ELSE NULL END + - CASE + 68 WHEN + 6 - + COUNT ( * ) THEN COUNT ( * ) * 25 * CAST ( NULL AS INTEGER ) END + + - 87 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2937
SELECT ( - ( COUNT( DISTINCT + CAST( 5 AS DECIMAL ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2937
SELECT ( - ( COUNT ( DISTINCT + CAST ( 5 AS REAL ) ) ) )
----
-1

query I rowsort
SELECT ALL + 57 + - 29 + - 85
----
-57

query I rowsort
SELECT - - ( 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2940
SELECT DISTINCT + COUNT( ALL + CAST( NULL AS SIGNED ) ) DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / - 78 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL 29 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT NULLIF ( MAX( + 22 ), - - COUNT( * ) ) - + MIN( ALL + 5 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2942
SELECT NULLIF ( MAX ( + 22 ), - - COUNT ( * ) ) - + MIN ( ALL + 5 ) AS col0
----
17

query II rowsort
SELECT DISTINCT 75 AS col0, + 9
----
75
9

query I rowsort
SELECT ALL 23 * + 97 AS col2
----
2231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2945
SELECT + CAST( 68 AS SIGNED ) DIV - ( - MIN( ALL - 23 ) ) + 0 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2945
SELECT + CAST ( 68 AS INTEGER ) / - ( - MIN ( ALL - 23 ) ) + 0 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL CAST( - + 97 AS SIGNED ) - - - 64 + + CASE 86 WHEN - 32 THEN - 89 ELSE + 5 END * 57
----
124

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL CAST ( - + 97 AS INTEGER ) - - - 64 + + CASE 86 WHEN - 32 THEN - 89 ELSE + 5 END * 57
----
124

query I rowsort
SELECT ALL - 46 - - 11 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT COUNT( 38 ) - - COUNT( * ) + + - 97 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2948
SELECT COUNT ( 38 ) - - COUNT ( * ) + + - 97 AS col0
----
-95

query I rowsort
SELECT ALL 87 * - 39
----
-3393

query II rowsort
SELECT + 94 col1, COALESCE ( ( + ( - ( 86 ) ) ), + 34 ) AS col2
----
94
-86

query I rowsort
SELECT 9 col1
----
9

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

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

query I rowsort
SELECT 70 + + ( + + 76 ) + + 40 + + - 96 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2954
SELECT + CAST( - 22 AS SIGNED ) * 41 * - 57 + + - SUM( + 77 ) + + MAX( ALL + ( - 3 ) ) AS col0
----
51334

skipif mysql # not compatible
query I rowsort label-2954
SELECT + CAST ( - 22 AS INTEGER ) * 41 * - 57 + + - SUM ( + 77 ) + + MAX ( ALL + ( - 3 ) ) AS col0
----
51334

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL + 11 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + 11 / + 45
----
0

query I rowsort
SELECT ALL - 25 col0
----
-25

query II rowsort
SELECT DISTINCT - 35 AS col0, 44 AS col0
----
-35
44

query I rowsort
SELECT ALL + - 80 * - - 89
----
-7120

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT ALL + + ( 96 ) DIV - - 7 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + + ( 96 ) / - - 7 AS col0
----
13

query I rowsort
SELECT - 45 + - 73 * + - 32 * + 17 - - + 88
----
39755

query I rowsort
SELECT 84 * 79 + + - 83 * + 67
----
1075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT - COUNT( * ) + 52 + - 59 + + 25 + COUNT( * ) DIV + COUNT( ALL + + 49 )
----
18

skipif mysql # not compatible
query I rowsort label-2962
SELECT - COUNT ( * ) + 52 + - 59 + + 25 + COUNT ( * ) / + COUNT ( ALL + + 49 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT 86 * - 3 * + COUNT( * ) AS col1
----
-258

skipif mysql # not compatible
query I rowsort label-2963
SELECT 86 * - 3 * + COUNT ( * ) AS col1
----
-258

query I rowsort
SELECT COALESCE ( - - 68, - + 28 )
----
68

query I rowsort
SELECT ALL - + 50 + - 70 + + 52 * CASE - + 87 WHEN + + 25 THEN + + 19 WHEN + 98 THEN NULL WHEN + + 26 * + + 14 THEN NULL END * - + 19 AS col2
----
NULL

query I rowsort
SELECT ALL + + 88 * + 93
----
8184

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT 76 DIV 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2967
SELECT 76 / 55 AS col1
----
1

query III rowsort
SELECT 49 col1, + 43 + - + ( + 75 ) AS col1, + - 26 AS col0
----
49
-32
-26

query I rowsort
SELECT ALL - + 75 + + + 61 + + 94 * + 68
----
6378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT + 95 + + 59 + 59 * - CAST( + 17 AS SIGNED )
----
-849

skipif mysql # not compatible
query I rowsort label-2970
SELECT + 95 + + 59 + 59 * - CAST ( + 17 AS INTEGER )
----
-849

query I rowsort
SELECT ALL - + 58 + 46 - - 42 * + 42
----
1752

query II rowsort
SELECT ALL - 12, 13 AS col0
----
-12
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT DISTINCT MAX( DISTINCT ( - - 53 ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT MAX ( DISTINCT ( - - 53 ) ) AS col2
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT NULLIF ( - ( + COUNT( * ) ), - NULLIF ( - - 14, - - 10 * 57 * - 91 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2975
SELECT NULLIF ( - ( + COUNT ( * ) ), - NULLIF ( - - 14, - - 10 * 57 * - 91 ) ) AS col1
----
-1

query II rowsort
SELECT 29 AS col0, 83
----
29
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2977
SELECT - NULLIF ( 21, - COUNT( * ) ) + CAST( 54 AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2977
SELECT - NULLIF ( 21, - COUNT ( * ) ) + CAST ( 54 AS INTEGER ) AS col2
----
33

query I rowsort
SELECT ALL + 25 + + 76 * - 39
----
-2939

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT COUNT( * ) + - + 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-2979
SELECT COUNT ( * ) + - + 71 AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT + CASE - 96 WHEN 87 / + - AVG ( - 33 ) - 58 THEN NULL WHEN + + CASE - 83 WHEN + 13 - + 67 * - - 33 / + AVG ( ALL 87 ) THEN - COUNT( * ) * + 24 + + ( - + 83 ) + 96 / + 80 / + 46 * + - 86 / + + 70 * + - 92 * + COUNT( * ) WHEN - 84 - - + 46 + + 53 THEN + - 74 - + ( 76 + 78 / + CAST( NULL AS SIGNED ) ) ELSE NULL END THEN + 46 * - COUNT( * ) + - 60 ELSE 10 END + + ( - 44 + - 96 ) AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-2980
SELECT + CASE - 96 WHEN 87 / + - AVG ( - 33 ) - 58 THEN NULL WHEN + + CASE - 83 WHEN + 13 - + 67 * - - 33 / + AVG ( ALL 87 ) THEN - COUNT ( * ) * + 24 + + ( - + 83 ) + 96 / + 80 / + 46 * + - 86 / + + 70 * + - 92 * + COUNT ( * ) WHEN - 84 - - + 46 + + 53 THEN + - 74 - + ( 76 + 78 / + CAST ( NULL AS INTEGER ) ) ELSE NULL END THEN + 46 * - COUNT ( * ) + - 60 ELSE 10 END + + ( - 44 + - 96 ) AS col0
----
-130

query I rowsort
SELECT 36 + + + 54
----
90

query I rowsort
SELECT ALL 6 * + ( - 60 ) * + - 12 * - 31 + 32 AS col0
----
-133888

query I rowsort
SELECT ALL + 78 - + 67 * - 46 AS col0
----
3160

query I rowsort
SELECT ALL 0 - + CASE 60 WHEN + + 92 THEN - ( - - 47 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT COALESCE ( 22, - - COUNT( * ), - 71 )
----
22

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT COALESCE ( 22, - - COUNT ( * ), - 71 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT NULLIF ( - - 88, + COUNT( * ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2986
SELECT NULLIF ( - - 88, + COUNT ( * ) ) AS col0
----
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT ALL 40 DIV 74 * 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL 40 / 74 * 18 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2989
SELECT 88 * - + 71 + - CAST( NULL AS SIGNED ) + + 88 * CASE - 20 WHEN - - 77 + CASE - + SUM( + + 32 ) WHEN - 41 + - CAST( + 46 AS SIGNED ) THEN + - ( - 99 ) WHEN 85 * - SUM( ALL + 19 ) - - 18 - + 8 THEN NULL WHEN + ( - 77 ) THEN NULL ELSE - 29 + 40 END THEN + 22 * + - COUNT( * ) + + + 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT 88 * - + 71 + - CAST ( NULL AS INTEGER ) + + 88 * CASE - 20 WHEN - - 77 + CASE - + SUM ( + + 32 ) WHEN - 41 + - CAST ( + 46 AS INTEGER ) THEN + - ( - 99 ) WHEN 85 * - SUM ( ALL + 19 ) - - 18 - + 8 THEN NULL WHEN + ( - 77 ) THEN NULL ELSE - 29 + 40 END THEN + 22 * + - COUNT ( * ) + + + 67 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2990
SELECT DISTINCT COUNT( + + 68 ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT COUNT ( + + 68 ) / + 93
----
0

query I rowsort
SELECT ALL + 44 col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT CASE + - COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE 80 DIV + 96 * + ( + COUNT( * ) ) * + 19 * - 88 + - 18 END
----
-18

skipif mysql # not compatible
query I rowsort label-2992
SELECT CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE 80 / + 96 * + ( + COUNT ( * ) ) * + 19 * - 88 + - 18 END
----
-18

query I rowsort
SELECT ALL 98 * - 74 col0
----
-7252

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT + NULLIF ( - 61, 92 + COUNT( * ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2994
SELECT + NULLIF ( - 61, 92 + COUNT ( * ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT + MAX( DISTINCT + 69 ) * + - 63 + + - 38 AS col0
----
-4385

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT + MAX ( DISTINCT + 69 ) * + - 63 + + - 38 AS col0
----
-4385

query I rowsort
SELECT + 34 + 7 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT - - 97 * - CASE - CASE - 60 WHEN + SUM( ALL - 28 ) THEN - COUNT( * ) * 13 WHEN - - 78 THEN NULL END WHEN - - 12 THEN NULL ELSE - - 21 - SUM( DISTINCT + 64 ) END * - - 83 * - - 62 + + ( - 25 ) + - ( 98 ) + 99 * - - COUNT( * ) + - 40
----
21463902

skipif mysql # not compatible
query I rowsort label-2997
SELECT - - 97 * - CASE - CASE - 60 WHEN + SUM ( ALL - 28 ) THEN - COUNT ( * ) * 13 WHEN - - 78 THEN NULL END WHEN - - 12 THEN NULL ELSE - - 21 - SUM ( DISTINCT + 64 ) END * - - 83 * - - 62 + + ( - 25 ) + - ( 98 ) + 99 * - - COUNT ( * ) + - 40
----
21463902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2998
SELECT DISTINCT + - CASE + COUNT( + CAST( 40 AS SIGNED ) ) WHEN + 17 + + CAST( - + 59 AS SIGNED ) + MIN( - + 76 ) * 34 THEN NULL WHEN CASE - COUNT( * ) WHEN + 71 / - 59 * + - 19 * + + 12 + - COUNT( * ) THEN 49 ELSE NULL END THEN 19 / 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + - CASE + COUNT ( + CAST ( 40 AS INTEGER ) ) WHEN + 17 + + CAST ( - + 59 AS INTEGER ) + MIN ( - + 76 ) * 34 THEN NULL WHEN CASE - COUNT ( * ) WHEN + 71 / - 59 * + - 19 * + + 12 + - COUNT ( * ) THEN 49 ELSE NULL END THEN 19 / 16 END
----
NULL

query I rowsort
SELECT ALL + - 10 AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3000
SELECT DISTINCT COUNT( * ) * 41 DIV + 90 + + 87 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT COUNT ( * ) * 41 / + 90 + + 87 AS col2
----
87

query II rowsort
SELECT ALL - 46 * - 38 - + 34 + + + 83 + 48 + + + 46 + 51 col2, + 78 + - - 76 AS col2
----
1942
154

query I rowsort
SELECT ALL + 32 * - 40 - - 17 AS col0
----
-1263

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

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

query II rowsort
SELECT - ( - + 80 ) AS col0, + 55
----
80
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3006
SELECT ALL - - 43 - + 66, 53 DIV - 10 AS col0
----
-23
-5

skipif mysql # not compatible
query II rowsort label-3006
SELECT ALL - - 43 - + 66, 53 / - 10 AS col0
----
-23
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3007
SELECT + CAST( 74 AS SIGNED ) DIV - - 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT + CAST ( 74 AS INTEGER ) / - - 78 col0
----
0

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

skipif mysql # not compatible
query I rowsort label-3008
SELECT - 95 * - + CAST ( + 1 AS INTEGER )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT - + 16 DIV - + 17
----
0

skipif mysql # not compatible
query I rowsort label-3009
SELECT - + 16 / - + 17
----
0

query I rowsort
SELECT - 99 AS col1
----
-99

query I rowsort
SELECT ALL + ( 55 ) * 60 - 97
----
3203

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL ( - + MIN( ALL + 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL ( - + MIN ( ALL + 98 ) ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query III rowsort label-3014
SELECT - NULLIF ( - 38, 64 * - - 6 * - COUNT( * ) + + 53 - + 24 + 34 + + COUNT( * ) ) * - 98 AS col2, 82, COALESCE ( - - 79, + + 26, + 84 ) + 58 AS col1
----
-3724
82
137

skipif mysql # not compatible
query III rowsort label-3014
SELECT - NULLIF ( - 38, 64 * - - 6 * - COUNT ( * ) + + 53 - + 24 + 34 + + COUNT ( * ) ) * - 98 AS col2, 82, COALESCE ( - - 79, + + 26, + 84 ) + 58 AS col1
----
-3724
82
137

query I rowsort
SELECT ALL NULLIF ( - 88, + + 13 ) col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT - COALESCE ( - - 20, - 90, - 54 / + + 33 + - + 3 + + 14 * 84 + MIN( 57 ) ) * - CAST( NULL AS SIGNED ) * CASE - ( + ( 23 ) ) WHEN - 59 * - + ( CAST( NULL AS SIGNED ) ) * 65 * 21 * - + CASE + 87 WHEN - - 15 THEN - + CASE - + 33 WHEN - NULLIF ( + 52, + 51 ) THEN + 99 END END THEN - 37 + + 71 * + 87 WHEN 79 THEN 7 WHEN + CASE COALESCE ( + COALESCE ( + 94, COUNT( * ) + - 68 ), 79 ) WHEN - 70 THEN 95 WHEN - 91 THEN NULL ELSE + 25 * COUNT( * ) END * NULLIF ( 10 * 99 + - 65 * + 18, - 12 * - 66 ) THEN 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT - COALESCE ( - - 20, - 90, - 54 / + + 33 + - + 3 + + 14 * 84 + MIN ( 57 ) ) * - CAST ( NULL AS INTEGER ) * CASE - ( + ( 23 ) ) WHEN - 59 * - + ( CAST ( NULL AS INTEGER ) ) * 65 * 21 * - + CASE + 87 WHEN - - 15 THEN - + CASE - + 33 WHEN - NULLIF ( + 52, + 51 ) THEN + 99 END END THEN - 37 + + 71 * + 87 WHEN 79 THEN 7 WHEN + CASE COALESCE ( + COALESCE ( + 94, COUNT ( * ) + - 68 ), 79 ) WHEN - 70 THEN 95 WHEN - 91 THEN NULL ELSE + 25 * COUNT ( * ) END * NULLIF ( 10 * 99 + - 65 * + 18, - 12 * - 66 ) THEN 85 END AS col1
----
NULL

query I rowsort
SELECT ALL CASE + + 41 WHEN 28 * + 47 * 36 THEN - 27 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT - COUNT( DISTINCT - + CAST( + ( - - 69 ) AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3018
SELECT - COUNT ( DISTINCT - + CAST ( + ( - - 69 ) AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL ( + - NULLIF ( + 93, 55 - + MAX( - - 4 ) ) )
----
-93

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL ( + - NULLIF ( + 93, 55 - + MAX ( - - 4 ) ) )
----
-93

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT - 46 - 1 + COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) * - 68 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3021
SELECT - 46 - 1 + COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) * - 68 AS col1
----
21

query I rowsort
SELECT - COALESCE ( + 30, 65 + + - 66 ) AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3023
SELECT - ( + COUNT( 13 ) ) - - CASE - COUNT( * ) WHEN - - 88 THEN + 85 ELSE + - 39 + 66 * COUNT( * ) + - 38 + + CAST( NULL AS DECIMAL ) + - + 39 * ( + NULLIF ( - + 49, + - 79 / 31 * + 89 / - 64 + ( - 9 ) / - CASE - 66 WHEN + 35 / - 44 THEN - 85 / - 83 * - + 54 ELSE - 94 END + ( - 86 ) ) ) END * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT - ( + COUNT ( 13 ) ) - - CASE - COUNT ( * ) WHEN - - 88 THEN + 85 ELSE + - 39 + 66 * COUNT ( * ) + - 38 + + CAST ( NULL AS REAL ) + - + 39 * ( + NULLIF ( - + 49, + - 79 / 31 * + 89 / - 64 + ( - 9 ) / - CASE - 66 WHEN + 35 / - 44 THEN - 85 / - 83 * - + 54 ELSE - 94 END + ( - 86 ) ) ) END * 14 AS col2
----
NULL

query II rowsort
SELECT ALL 43, + 27 AS col2
----
43
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT - MAX( 99 ) + CAST( + COUNT( ALL + 31 ) AS SIGNED ) + - - 50
----
-48

skipif mysql # not compatible
query I rowsort label-3025
SELECT - MAX ( 99 ) + CAST ( + COUNT ( ALL + 31 ) AS INTEGER ) + - - 50
----
-48

query I rowsort
SELECT ALL ( - - 80 ) AS col2
----
80

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

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

query I rowsort
SELECT + 68 - + 19 * - 10 AS col2
----
258

query I rowsort
SELECT - CASE + 83 WHEN 24 THEN + 85 ELSE NULL END * + 14 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT 21 * - COUNT( * ) - + ( 3 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3030
SELECT 21 * - COUNT ( * ) - + ( 3 ) AS col2
----
-24

query I rowsort
SELECT ALL + 50 col1
----
50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3033
SELECT DISTINCT - COUNT( * ) DIV + COALESCE ( + ( 82 ), - COUNT( * ) * - - 71, + NULLIF ( - CAST( NULL AS SIGNED ), MIN( ALL - 60 ) * + + 77 + - ( + - 45 ) ) * - COUNT( * ) - - - 4 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - COUNT ( * ) / + COALESCE ( + ( 82 ), - COUNT ( * ) * - - 71, + NULLIF ( - CAST ( NULL AS INTEGER ), MIN ( ALL - 60 ) * + + 77 + - ( + - 45 ) ) * - COUNT ( * ) - - - 4 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT ALL - + ( ( + CAST( NULL AS SIGNED ) ) ) / + 46 * - - NULLIF ( + - 92, - 38 ) + - 38 - + AVG ( DISTINCT - 68 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL - + ( ( + CAST ( NULL AS INTEGER ) ) ) / + 46 * - - NULLIF ( + - 92, - 38 ) + - 38 - + AVG ( DISTINCT - 68 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL 94 * 4 - + COALESCE ( + - COUNT( * ), - 2 ) col2
----
377

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL 94 * 4 - + COALESCE ( + - COUNT ( * ), - 2 ) col2
----
377

query II rowsort
SELECT DISTINCT + + 32 * + - ( - ( + 44 ) ) + + 29 AS col2, 82 - + 53 AS col1
----
1437
29

query I rowsort
SELECT DISTINCT + + 42 AS col1
----
42

query I rowsort
SELECT DISTINCT - 92 * + 74 + - 38 + COALESCE ( + 65, 94 + - 71 ) AS col0
----
-6781

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

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

query I rowsort
SELECT + + COALESCE ( + 54, - + 71 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3042
SELECT DISTINCT - + 12 * - 97 * + 57 DIV + 1 + COUNT( * ) AS col2, 9
----
66349
9

skipif mysql # not compatible
query II rowsort label-3042
SELECT DISTINCT - + 12 * - 97 * + 57 / + 1 + COUNT ( * ) AS col2, 9
----
66349
9

query II rowsort
SELECT - 34 * - + 80 * - + 7 AS col2, 77 + + 99 AS col0
----
-19040
176

onlyif mysql # DIV for integer division: 
query II rowsort label-3044
SELECT + - 81 * NULLIF ( + 10, NULLIF ( + 94, + 33 * + - 80 + 59 ) ) - - 60 DIV - 54, 16 AS col1
----
-811
16

skipif mysql # not compatible
query II rowsort label-3044
SELECT + - 81 * NULLIF ( + 10, NULLIF ( + 94, + 33 * + - 80 + 59 ) ) - - 60 / - 54, 16 AS col1
----
-811
16

query I rowsort
SELECT DISTINCT + + ( - + 94 ) * + 51 - + 9
----
-4803

query I rowsort
SELECT + + NULLIF ( + - ( + ( 20 ) ), + ( - 63 ) ) * 11
----
-220

query I rowsort
SELECT ALL + - NULLIF ( + + 62, + ( - + 31 ) )
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT 3 * - - 55 - - - 96 * - ( - - COUNT( * ) ) AS col2
----
261

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT 3 * - - 55 - - - 96 * - ( - - COUNT ( * ) ) AS col2
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT + 7 + - + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3050
SELECT + 7 + - + COUNT ( * ) AS col2
----
6

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

query I rowsort
SELECT - 65 AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT 74 DIV 62
----
1

skipif mysql # not compatible
query I rowsort label-3053
SELECT 74 / 62
----
1

query I rowsort
SELECT 45 * + 10 * + + 16 AS col2
----
7200

query I rowsort
SELECT 80 + - - 72
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT ALL 64 * - SUM( DISTINCT - 54 ) AS col2
----
3456

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL 64 * - SUM ( DISTINCT - 54 ) AS col2
----
3456

query I rowsort
SELECT 99 + + 10 col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL - 88 + MIN( DISTINCT - - 45 )
----
-43

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL - 88 + MIN ( DISTINCT - - 45 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT MAX( ALL + 45 ) + - 13
----
32

skipif mysql # not compatible
query I rowsort label-3059
SELECT MAX ( ALL + 45 ) + - 13
----
32

query I rowsort
SELECT ALL 28 * 80
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL + COUNT( * ) + + 78 + - 62 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + COUNT ( * ) + + 78 + - 62 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3062
SELECT 80 + + 83 DIV + COALESCE ( - + 50, - - 99 * COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-3062
SELECT 80 + + 83 / + COALESCE ( - + 50, - - 99 * COUNT ( * ) ) AS col0
----
79

query I rowsort
SELECT ALL 90 AS col1
----
90

query I rowsort
SELECT ALL + 25 + - 80 - - 80 * + 16
----
1225

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT 5 + + 16 + - COUNT( * ) * - 65
----
86

skipif mysql # not compatible
query I rowsort label-3065
SELECT 5 + + 16 + - COUNT ( * ) * - 65
----
86

query II rowsort
SELECT 0 AS col0, ( - 74 )
----
0
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL - - 43 * COALESCE ( - ( + SUM( - 30 ) ), - 25, - MIN( + - 73 ) )
----
1290

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL - - 43 * COALESCE ( - ( + SUM ( - 30 ) ), - 25, - MIN ( + - 73 ) )
----
1290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT ALL + COUNT( DISTINCT - - 98 ) + + MIN( 20 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL + COUNT ( DISTINCT - - 98 ) + + MIN ( 20 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 30 * + 65 AS col2
----
1950

query I rowsort
SELECT ALL + 65 * - 2 * 24
----
-3120

query I rowsort
SELECT ALL - 54 * + + 89
----
-4806

query I rowsort
SELECT ALL - 90 - - 98 + + + 40 AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3074
SELECT CASE CAST( + COUNT( + 84 ) AS SIGNED ) WHEN - 26 * - - 97 * 82 THEN + COUNT( * ) + + 25 - + - COUNT( * ) WHEN - 67 + + + 17 + + 94 / 62 THEN 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT CASE CAST ( + COUNT ( + 84 ) AS INTEGER ) WHEN - 26 * - - 97 * 82 THEN + COUNT ( * ) + + 25 - + - COUNT ( * ) WHEN - 67 + + + 17 + + 94 / 62 THEN 20 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3075
SELECT ALL - - CAST( NULL AS SIGNED ), + 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-3075
SELECT ALL - - CAST ( NULL AS INTEGER ), + 76 AS col0
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT + 88 * + COUNT( * ) col2
----
88

skipif mysql # not compatible
query I rowsort label-3076
SELECT + 88 * + COUNT ( * ) col2
----
88

query II rowsort
SELECT DISTINCT - 28 AS col0, 1 * - - 39 AS col1
----
-28
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL - - MAX( DISTINCT - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - - MAX ( DISTINCT - 4 ) AS col0
----
-4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - ( NULLIF ( - SUM( DISTINCT + + ( + 92 ) ), + 20 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3080
SELECT - ( NULLIF ( - SUM ( DISTINCT + + ( + 92 ) ), + 20 ) ) AS col0
----
92

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( 22, + 85 )
----
-22

query I rowsort
SELECT ALL - - 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL + 88 * - 25 + + 99 * ( - 37 ) * - + 45 + - + ( + 18 ) - + - COUNT( ALL - 22 ) * - 37 * 40 * - 74 * + 95
----
10567017

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + 88 * - 25 + + 99 * ( - 37 ) * - + 45 + - + ( + 18 ) - + - COUNT ( ALL - 22 ) * - 37 * 40 * - 74 * + 95
----
10567017

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

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

query I rowsort
SELECT ALL - ( - 39 ) AS col2
----
39

query I rowsort
SELECT ALL - 14 * + 32 + 4 - + 19 * - 45 + 56
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + 4 * 14 * - ( + MIN( DISTINCT - - 39 ) )
----
-2184

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 4 * 14 * - ( + MIN ( DISTINCT - - 39 ) )
----
-2184

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

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

query I rowsort
SELECT 38 + + + 72 AS col1
----
110

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

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

query I rowsort
SELECT ALL 23 * - 58 AS col0
----
-1334

query I rowsort
SELECT 54 * - 45
----
-2430

query I rowsort
SELECT 90 * 29
----
2610

query I rowsort
SELECT ALL 17 + - 80
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT 76 + COUNT ( * )
----
77

query I rowsort
SELECT ALL 87 * - 1 AS col2
----
-87

query I rowsort
SELECT 80 * + - 36
----
-2880

query I rowsort
SELECT DISTINCT 22 + 90 - - ( - 66 ) col0
----
46

query I rowsort
SELECT ALL 81 + - + 28 * - - 53 + - 89
----
-1492

query I rowsort
SELECT 70 + + + 10 * + 69 AS col2
----
760

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

skipif mysql # not compatible
query I rowsort label-3102
SELECT COUNT ( * ) * - 84
----
-84

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

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL 75 / - COUNT ( * )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3104
SELECT ALL CASE 39 WHEN 29 THEN NULL WHEN - MIN( DISTINCT + - 5 ) THEN - COUNT( * ) * - + 10 / 66 WHEN + 96 - - 1 * - 28 THEN NULL END + - 30 + - 38 + - - 31 * COUNT( * ) * + NULLIF ( - ( + CAST( 34 AS SIGNED ) ), - + 35 ) - + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL CASE 39 WHEN 29 THEN NULL WHEN - MIN ( DISTINCT + - 5 ) THEN - COUNT ( * ) * - + 10 / 66 WHEN + 96 - - 1 * - 28 THEN NULL END + - 30 + - 38 + - - 31 * COUNT ( * ) * + NULLIF ( - ( + CAST ( 34 AS INTEGER ) ), - + 35 ) - + + 27
----
NULL

query I rowsort
SELECT DISTINCT 10 * - - 17
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3106
SELECT 24 DIV + MIN( ALL - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT 24 / + MIN ( ALL - 66 )
----
0

query I rowsort
SELECT 31 * - 54 AS col0
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT + COUNT( * ) * - - 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT + COUNT ( * ) * - - 47 AS col0
----
47

query I rowsort
SELECT ALL - 94 + + 13 + - 70
----
-151

query I rowsort
SELECT 5 + + + 98
----
103

query I rowsort
SELECT + 37 + + 84
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT COALESCE ( - - 99, + COUNT( * ) ) + 74 AS col1
----
173

skipif mysql # not compatible
query I rowsort label-3112
SELECT COALESCE ( - - 99, + COUNT ( * ) ) + 74 AS col1
----
173

query I rowsort
SELECT ALL + 5 * + 86 - ( - 77 )
----
507

query I rowsort
SELECT - - 41 * 17 * + 45 + - - 3
----
31368

query I rowsort
SELECT - 73 - - 4
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3116
SELECT - COALESCE ( - COUNT( * ), + AVG ( + 56 ) DIV 81 * - + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-3116
SELECT - COALESCE ( - COUNT ( * ), + AVG ( + 56 ) / 81 * - + 83 )
----
1

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

query II rowsort
SELECT ALL - 9 * - 28, - 73 - + 45 col0
----
252
-118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - + 40 * 90 + + ( + 4 ) + - MAX( DISTINCT 72 ) + + - NULLIF ( - 24, - COALESCE ( - 72, + - 70 * COALESCE ( - COALESCE ( - + 10, + COUNT( * ) ), 96 ), - ( - + 71 ) ) ) AS col0
----
-3644

skipif mysql # not compatible
query I rowsort label-3120
SELECT - + 40 * 90 + + ( + 4 ) + - MAX ( DISTINCT 72 ) + + - NULLIF ( - 24, - COALESCE ( - 72, + - 70 * COALESCE ( - COALESCE ( - + 10, + COUNT ( * ) ), 96 ), - ( - + 71 ) ) ) AS col0
----
-3644

query I rowsort
SELECT + - 24 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT - CASE 38 WHEN - SUM( - 77 ) + + - 25 / 72 THEN + CAST( NULL AS SIGNED ) + - - COALESCE ( + COALESCE ( + - 31, + 35 + 94 ), 20 + + 14 - - ( + - 78 ), - ( + + COUNT( * ) ), - 76 + + + 18 * - 56 ) WHEN - AVG ( + ( + 12 ) ) + + + COUNT( * ) - + SUM( - 14 ) + ( - 2 ) - + - ( + ( + ( CAST( - 2 AS SIGNED ) ) ) ) / 14 / CASE 40 WHEN NULLIF ( SUM( ALL 35 ), 56 * - ( - 69 ) ) THEN - 63 END THEN 7 + + 33 * COUNT( DISTINCT + 78 + 26 * + 80 ) WHEN - COALESCE ( 45, + 7 + + NULLIF ( ( 48 ), - 46 ), 47 * + 3 ) * 50 THEN + CAST( + 86 AS SIGNED ) - AVG ( ALL 55 ) END / 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT - CASE 38 WHEN - SUM ( - 77 ) + + - 25 / 72 THEN + CAST ( NULL AS INTEGER ) + - - COALESCE ( + COALESCE ( + - 31, + 35 + 94 ), 20 + + 14 - - ( + - 78 ), - ( + + COUNT ( * ) ), - 76 + + + 18 * - 56 ) WHEN - AVG ( + ( + 12 ) ) + + + COUNT ( * ) - + SUM ( - 14 ) + ( - 2 ) - + - ( + ( + ( CAST ( - 2 AS INTEGER ) ) ) ) / 14 / CASE 40 WHEN NULLIF ( SUM ( ALL 35 ), 56 * - ( - 69 ) ) THEN - 63 END THEN 7 + + 33 * COUNT ( DISTINCT + 78 + 26 * + 80 ) WHEN - COALESCE ( 45, + 7 + + NULLIF ( ( 48 ), - 46 ), 47 * + 3 ) * 50 THEN + CAST ( + 86 AS INTEGER ) - AVG ( ALL 55 ) END / 88 col0
----
NULL

query I rowsort
SELECT + + 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3124
SELECT DISTINCT + COUNT( * ) * 10, + COUNT( * ) * + 21 - 83 - + 4 + - + 7 * + - COUNT( * ) * - + 62 AS col2
----
10
-500

skipif mysql # not compatible
query II rowsort label-3124
SELECT DISTINCT + COUNT ( * ) * 10, + COUNT ( * ) * + 21 - 83 - + 4 + - + 7 * + - COUNT ( * ) * - + 62 AS col2
----
10
-500

query I rowsort
SELECT ALL + - 72 col2
----
-72

query I rowsort
SELECT - 42 + 44 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3127
SELECT - COUNT( * ) DIV - - 78 * + 37 * - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT - COUNT ( * ) / - - 78 * + 37 * - 50 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT + ( - 30 ) DIV + + ( - - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-3128
SELECT + ( - 30 ) / + + ( - - 65 )
----
0

query I rowsort
SELECT ALL + 87 + 55 + 67 * - 28 * + 48 AS col2
----
-89906

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

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

query I rowsort
SELECT ALL 17 + + 83 AS col1
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-3132
SELECT - 23 + + + 76 DIV - 99 col1, 51 + + 93
----
-23
144

skipif mysql # not compatible
query II rowsort label-3132
SELECT - 23 + + + 76 / - 99 col1, 51 + + 93
----
-23
144

query II rowsort
SELECT 39 col1, 27
----
39
27

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT ALL - 25 + + + MIN( DISTINCT + 46 ), - NULLIF ( + 21, + 62 ) * + - 77 AS col0
----
21
1617

skipif mysql # not compatible
query II rowsort label-3136
SELECT ALL - 25 + + + MIN ( DISTINCT + 46 ), - NULLIF ( + 21, + 62 ) * + - 77 AS col0
----
21
1617

query I rowsort
SELECT DISTINCT + 70 + + - 70 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT - COUNT( DISTINCT - - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-3138
SELECT - COUNT ( DISTINCT - - 63 )
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-3139
SELECT + 69 + COUNT( * ) * + + COUNT( * ), 78 AS col0, - + 73 AS col1
----
70
78
-73

skipif mysql # not compatible
query III rowsort label-3139
SELECT + 69 + COUNT ( * ) * + + COUNT ( * ), 78 AS col0, - + 73 AS col1
----
70
78
-73

query I rowsort
SELECT ALL 34 * - 93
----
-3162

query II rowsort
SELECT - 40 AS col1, + 42 AS col2
----
-40
42

query I rowsort
SELECT + 45 + - 95
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT 44, + COUNT( * ) * - 19 AS col0
----
44
-19

skipif mysql # not compatible
query II rowsort label-3143
SELECT 44, + COUNT ( * ) * - 19 AS col0
----
44
-19

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

skipif mysql # not compatible
query I rowsort label-3144
SELECT - COUNT ( 87 )
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3146
SELECT 88 AS col1, ( - 29 ) + + - CAST( NULL AS SIGNED ) + + 30 * - 17 * 8 - 80 AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-3146
SELECT 88 AS col1, ( - 29 ) + + - CAST ( NULL AS INTEGER ) + + 30 * - 17 * 8 - 80 AS col1
----
88
NULL

query I rowsort
SELECT + 10 * 88 AS col2
----
880

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

query I rowsort
SELECT DISTINCT COALESCE ( 42, + 9, - 33 * - 5 + - - 46 * - - 66 )
----
42

query I rowsort
SELECT DISTINCT + 95 - + 56
----
39

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

skipif mysql # not compatible
query I rowsort label-3151
SELECT MAX ( DISTINCT 68 )
----
68

query I rowsort
SELECT + 70 + 47 + - 5 * + - 2
----
127

query I rowsort
SELECT DISTINCT - 71 * + 45 col1
----
-3195

query I rowsort
SELECT ALL + + 54
----
54

query I rowsort
SELECT + - 7 * + 68 AS col1
----
-476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3156
SELECT - CAST( + ( + 34 ) AS SIGNED ) AS col0, 19 + + COUNT( * ) DIV + - 84, - 38 * - ( + 46 ) * - - 4 AS col0
----
-34
19
6992

skipif mysql # not compatible
query III rowsort label-3156
SELECT - CAST ( + ( + 34 ) AS INTEGER ) AS col0, 19 + + COUNT ( * ) / + - 84, - 38 * - ( + 46 ) * - - 4 AS col0
----
-34
19
6992

query I rowsort
SELECT ( 48 )
----
48

query I rowsort
SELECT DISTINCT + + 11 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT + ( - NULLIF ( - + 15, 49 * - + 17 ) ) * + ( + COUNT( * ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3159
SELECT + ( - NULLIF ( - + 15, 49 * - + 17 ) ) * + ( + COUNT ( * ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + 17 + + 68 - + 65 * ( - + 43 ) * CASE + - 67 WHEN - ( - COUNT( * ) ) THEN - - CASE + - 21 WHEN 35 * SUM( + 37 ) THEN - 64 ELSE NULL END - + 73 END - - 27 + + 57 / + 45 + + NULLIF ( - - 87, 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT + 17 + + 68 - + 65 * ( - + 43 ) * CASE + - 67 WHEN - ( - COUNT ( * ) ) THEN - - CASE + - 21 WHEN 35 * SUM ( + 37 ) THEN - 64 ELSE NULL END - + 73 END - - 27 + + 57 / + 45 + + NULLIF ( - - 87, 56 )
----
NULL

query I rowsort
SELECT + 73 col1
----
73

query I rowsort
SELECT ALL + COALESCE ( + 59, - 65 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3163
SELECT + CAST( NULL AS SIGNED ) * 35 + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT + CAST ( NULL AS INTEGER ) * 35 + 55 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3165
SELECT ALL CAST( NULL AS SIGNED ) * ( - - 94 ) + COUNT( * ) - - COUNT( * ) * + - 83 * 97 * + 1 * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL CAST ( NULL AS INTEGER ) * ( - - 94 ) + COUNT ( * ) - - COUNT ( * ) * + - 83 * 97 * + 1 * - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL MAX( - 7 ) * + COUNT( * ) + - - 30 + + 98 + ( 32 ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL MAX ( - 7 ) * + COUNT ( * ) + - - 30 + + 98 + ( 32 ) AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT - COALESCE ( - 83, 78, 8 + - 66 * + + 70 DIV - 82 ) * + 67
----
5561

skipif mysql # not compatible
query I rowsort label-3167
SELECT - COALESCE ( - 83, 78, 8 + - 66 * + + 70 / - 82 ) * + 67
----
5561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3168
SELECT - 82 - + COUNT( * ) AS col2, CAST( + 15 AS SIGNED ) col0
----
-83
15

skipif mysql # not compatible
query II rowsort label-3168
SELECT - 82 - + COUNT ( * ) AS col2, CAST ( + 15 AS INTEGER ) col0
----
-83
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL 32 * + COUNT( * ) + 71
----
103

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL 32 * + COUNT ( * ) + 71
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT COALESCE ( + - COALESCE ( - 9, - 59 ), COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-3170
SELECT COALESCE ( + - COALESCE ( - 9, - 59 ), COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL + SUM( + + 94 ) * - 76 * + COUNT( ALL - COALESCE ( - 48, - ( + 82 ), + 21 ) ) + - - 65 AS col1
----
-7079

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL + SUM ( + + 94 ) * - 76 * + COUNT ( ALL - COALESCE ( - 48, - ( + 82 ), + 21 ) ) + - - 65 AS col1
----
-7079

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT DISTINCT + SUM( DISTINCT - + 49 ) * 65 + - 84 col1
----
-3269

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT + SUM ( DISTINCT - + 49 ) * 65 + - 84 col1
----
-3269

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT NULLIF ( - COUNT( * ), 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-3173
SELECT NULLIF ( - COUNT ( * ), 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT - 28 * CASE + 98 WHEN + 53 THEN - 96 / + 48 + + 20 WHEN - 94 THEN + 9 * - 69 - + 8 - - COUNT( * ) + + - 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT - 28 * CASE + 98 WHEN + 53 THEN - 96 / + 48 + + 20 WHEN - 94 THEN + 9 * - 69 - + 8 - - COUNT ( * ) + + - 52 END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - NULLIF ( SUM( DISTINCT COALESCE ( - 26, + 30 + + 9 ) ), CASE - ( 65 ) WHEN 67 THEN - - 93 / + 10 END + + 60 * + COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-3177
SELECT - NULLIF ( SUM ( DISTINCT COALESCE ( - 26, + 30 + + 9 ) ), CASE - ( 65 ) WHEN 67 THEN - - 93 / + 10 END + + 60 * + COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - COUNT( * ) - 77 + - ( + 82 ) - NULLIF ( MIN( DISTINCT - 99 ), - COUNT( ALL - 87 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-3178
SELECT - COUNT ( * ) - 77 + - ( + 82 ) - NULLIF ( MIN ( DISTINCT - 99 ), - COUNT ( ALL - 87 ) )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COALESCE ( 3, - 50 * 68 * + 36 * - 76 * - - COUNT( * ) * + 36 + - 66 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COALESCE ( 3, - 50 * 68 * + 36 * - 76 * - - COUNT ( * ) * + 36 + - 66 ) col0
----
NULL

query I rowsort
SELECT ALL 49 col0
----
49

query I rowsort
SELECT ALL ( 19 ) col2
----
19

query I rowsort
SELECT ALL 56 * + 89
----
4984

query I rowsort
SELECT - 62 * - + 74
----
4588

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - + MIN( DISTINCT 29 ) * COUNT( * ) + + - 59
----
-88

skipif mysql # not compatible
query I rowsort label-3185
SELECT - + MIN ( DISTINCT 29 ) * COUNT ( * ) + + - 59
----
-88

query II rowsort
SELECT - ( + 27 ) AS col1, 28 AS col0
----
-27
28

query I rowsort
SELECT - - 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT - COUNT( * ) + 59
----
58

skipif mysql # not compatible
query I rowsort label-3188
SELECT - COUNT ( * ) + 59
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + 77 * - 95 + COUNT( * ) * 66 AS col2
----
-7249

skipif mysql # not compatible
query I rowsort label-3189
SELECT + 77 * - 95 + COUNT ( * ) * 66 AS col2
----
-7249

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT + COUNT( * ) + - 55 * + 81 AS col1
----
-4454

skipif mysql # not compatible
query I rowsort label-3190
SELECT + COUNT ( * ) + - 55 * + 81 AS col1
----
-4454

onlyif mysql # aggregate syntax: 
query II rowsort label-3191
SELECT ALL - COUNT( 48 ) AS col1, 30 + 72 + - 23 * + 60 AS col1
----
-1
-1278

skipif mysql # not compatible
query II rowsort label-3191
SELECT ALL - COUNT ( 48 ) AS col1, 30 + 72 + - 23 * + 60 AS col1
----
-1
-1278

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

query I rowsort
SELECT ALL - + COALESCE ( - 22, - 65 ) AS col1
----
22

query I rowsort
SELECT 54 + - 68 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT + 10 DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-3195
SELECT + 10 / + 18
----
0

query I rowsort
SELECT 85 * - + 51 + + - 52 * 27 + - + ( - - 89 ) AS col2
----
-5828

query I rowsort
SELECT ALL - ( - 22 ) + + + 3 * - 2 + - + 64 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3198
SELECT + + 9 * NULLIF ( + COUNT( * ), - 24 ) + - + 92, - 0 AS col1
----
-83
0

skipif mysql # not compatible
query II rowsort label-3198
SELECT + + 9 * NULLIF ( + COUNT ( * ), - 24 ) + - + 92, - 0 AS col1
----
-83
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3199
SELECT DISTINCT - 42 + + CAST( + 10 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT - 42 + + CAST ( + 10 AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT NULLIF ( 49, - + 24 ) * - + COUNT( * ) - - 81 + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3200
SELECT NULLIF ( 49, - + 24 ) * - + COUNT ( * ) - - 81 + + COUNT ( * ) AS col1
----
33

query I rowsort
SELECT ALL 65 + + 93 AS col2
----
158

query I rowsort
SELECT + 17 col1
----
17

query I rowsort
SELECT - 97 * - - 40 * 44 - + ( - 80 ) - - 72 AS col1
----
-170568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3204
SELECT COUNT( - NULLIF ( + 64, + - 75 ) ) * + ( + 15 ) + + - ( - 93 ) DIV 50 + - 59 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3204
SELECT COUNT ( - NULLIF ( + 64, + - 75 ) ) * + ( + 15 ) + + - ( - 93 ) / 50 + - 59 AS col2
----
-43

query I rowsort
SELECT ALL 52 - - NULLIF ( 64, - + 2 ) AS col1
----
116

query I rowsort
SELECT + 34 * - 55 + + 50
----
-1820

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

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

query I rowsort
SELECT ALL 95 col1
----
95

query I rowsort
SELECT 24 + - 64
----
-40

query I rowsort
SELECT ALL 50 AS col2
----
50

query I rowsort
SELECT 30 + + 55
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - COUNT( * ) * - 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - COUNT ( * ) * - 80 AS col2
----
80

query I rowsort
SELECT 40 + 66 * 50
----
3340

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - ( 15 ) + + 10 + ( ( + COUNT( * ) ) ) * - 55 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3214
SELECT - ( 15 ) + + 10 + ( ( + COUNT ( * ) ) ) * - 55 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + 83 * + + ( 32 ) * + 18 * + 95 + + 44 + + - COUNT( * ) * - 37 * ( 94 ) AS col2
----
4545282

skipif mysql # not compatible
query I rowsort label-3215
SELECT + 83 * + + ( 32 ) * + 18 * + 95 + + 44 + + - COUNT ( * ) * - 37 * ( 94 ) AS col2
----
4545282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3216
SELECT 20 + CAST( - 69 AS SIGNED ) * + CASE + ( + MAX( - 64 ) ) WHEN ( 25 ) - + 25 * 12 THEN + - 92 ELSE - 26 END + + 30 - - + 0 DIV + COUNT( * ) AS col1
----
1844

skipif mysql # not compatible
query I rowsort label-3216
SELECT 20 + CAST ( - 69 AS INTEGER ) * + CASE + ( + MAX ( - 64 ) ) WHEN ( 25 ) - + 25 * 12 THEN + - 92 ELSE - 26 END + + 30 - - + 0 / + COUNT ( * ) AS col1
----
1844

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT - + COUNT( * ) + + + 77
----
76

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - + COUNT ( * ) + + + 77
----
76

query I rowsort
SELECT ALL - 21 + - + 61
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3219
SELECT 99 * - CAST( NULL AS SIGNED ) / - + 68, COUNT( * ) * - 33 AS col2
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-3219
SELECT 99 * - CAST ( NULL AS INTEGER ) / - + 68, COUNT ( * ) * - 33 AS col2
----
NULL
-33

query I rowsort
SELECT ALL - - 50 + + 77
----
127

query I rowsort
SELECT + 33 * 92 + + - 24 + - 31 * + 64 + - + 21 AS col2
----
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT - + MIN( 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-3222
SELECT - + MIN ( 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT ALL - - 75 + - COUNT( * ) + - - 23
----
97

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL - - 75 + - COUNT ( * ) + - - 23
----
97

query I rowsort
SELECT 82 col1
----
82

query I rowsort
SELECT + 99 * + 76
----
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL + 69 + - ( + - ( COUNT( * ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + 69 + - ( + - ( COUNT ( * ) ) )
----
70

query I rowsort
SELECT + + 15 AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3228
SELECT 89 / + 79 - - + 58 * CAST( NULL AS SIGNED ) * 31, 21 AS col2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3228
SELECT 89 / + 79 - - + 58 * CAST ( NULL AS INTEGER ) * 31, 21 AS col2
----
NULL
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT DISTINCT + + 33 + CAST( NULL AS SIGNED ) + + + 20 + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT + + 33 + CAST ( NULL AS INTEGER ) + + + 20 + + 33 AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3232
SELECT 99 * - - CASE + COUNT( * ) WHEN - 5 + - + 60 THEN NULL WHEN + 4 * 44 * + 95 - + ( + MIN( ALL 19 ) ) THEN - 15 - - COUNT( * ) / + 47 WHEN - - COUNT( * ) THEN NULL WHEN + 99 * 55 * - CAST( NULL AS DECIMAL ) THEN + 46 * 48 + + 6 ELSE NULL END * + 96 * 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT 99 * - - CASE + COUNT ( * ) WHEN - 5 + - + 60 THEN NULL WHEN + 4 * 44 * + 95 - + ( + MIN ( ALL 19 ) ) THEN - 15 - - COUNT ( * ) / + 47 WHEN - - COUNT ( * ) THEN NULL WHEN + 99 * 55 * - CAST ( NULL AS REAL ) THEN + 46 * 48 + + 6 ELSE NULL END * + 96 * 98 AS col0
----
NULL

query I rowsort
SELECT - 30 * - - 53 * - + 5 * + - 95 + 52 * 22
----
-754106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3234
SELECT 89 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT 89 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 24 * ( + 2 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3236
SELECT 60, + 72 * + COUNT( * ) + - COUNT( * ) AS col0
----
60
71

skipif mysql # not compatible
query II rowsort label-3236
SELECT 60, + 72 * + COUNT ( * ) + - COUNT ( * ) AS col0
----
60
71

query III rowsort
SELECT + 80 AS col0, - 0, - - 4 - 75 AS col0
----
80
0
-71

query II rowsort
SELECT ALL - 69, - 18 AS col1
----
-69
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT COUNT( * ) * + + 63 * + 21
----
1323

skipif mysql # not compatible
query I rowsort label-3239
SELECT COUNT ( * ) * + + 63 * + 21
----
1323

query I rowsort
SELECT ALL - 85 col2
----
-85

query I rowsort
SELECT DISTINCT 10 * + 79 col1
----
790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3242
SELECT ALL - CASE - + 77 WHEN SUM( + - 68 ) + + + 35 + + - CAST( + ( + ( + - 66 ) ) AS SIGNED ) * + MAX( + 32 ) THEN NULL WHEN - 3 THEN COUNT( * ) + + - CASE - CAST( NULL AS DECIMAL ) WHEN - + COALESCE ( - NULLIF ( + + ( - + 58 ), + 31 ), + - 9 + ( - - 82 ), + 20 ) * 44 THEN NULL WHEN COUNT( * ) THEN - 32 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL - CASE - + 77 WHEN SUM ( + - 68 ) + + + 35 + + - CAST ( + ( + ( + - 66 ) ) AS INTEGER ) * + MAX ( + 32 ) THEN NULL WHEN - 3 THEN COUNT ( * ) + + - CASE - CAST ( NULL AS REAL ) WHEN - + COALESCE ( - NULLIF ( + + ( - + 58 ), + 31 ), + - 9 + ( - - 82 ), + 20 ) * 44 THEN NULL WHEN COUNT ( * ) THEN - 32 END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT NULLIF ( - - 36, + 79 * + 50 ) DIV - + 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3243
SELECT NULLIF ( - - 36, + 79 * + 50 ) / - + 6 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3244
SELECT + COUNT( * ), - 22 * 27 AS col1
----
1
-594

skipif mysql # not compatible
query II rowsort label-3244
SELECT + COUNT ( * ), - 22 * 27 AS col1
----
1
-594

query I rowsort
SELECT 14 * + 39 AS col2
----
546

query II rowsort
SELECT ALL 5 AS col1, 31 AS col0
----
5
31

query I rowsort
SELECT ALL 56 col0
----
56

query II rowsort
SELECT 14 AS col0, 34 AS col0
----
14
34

query II rowsort
SELECT - + 91 AS col0, 33 AS col0
----
-91
33

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

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - 25 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 68 AS col2, - 1
----
68
-1

query I rowsort
SELECT DISTINCT - 92 + - ( + 30 )
----
-122

query I rowsort
SELECT ALL + 34 + - 56 - - + 33
----
11

query II rowsort
SELECT DISTINCT + 42 AS col2, - 37
----
42
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3255
SELECT ALL - - COUNT( * ) + COUNT( * ) AS col1, + 77
----
2
77

skipif mysql # not compatible
query II rowsort label-3255
SELECT ALL - - COUNT ( * ) + COUNT ( * ) AS col1, + 77
----
2
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - COUNT( * ) - + NULLIF ( - 87, + + 14 ) + 84 + + 26 + + 33 * + NULLIF ( + - 58, + 27 * - - 55 * + 56 ) * - 36 - - + 55
----
69155

skipif mysql # not compatible
query I rowsort label-3256
SELECT - COUNT ( * ) - + NULLIF ( - 87, + + 14 ) + 84 + + 26 + + 33 * + NULLIF ( + - 58, + 27 * - - 55 * + 56 ) * - 36 - - + 55
----
69155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3257
SELECT + CAST( 73 AS SIGNED ) + - - ( + 70 ) * + + 35
----
2523

skipif mysql # not compatible
query I rowsort label-3257
SELECT + CAST ( 73 AS INTEGER ) + - - ( + 70 ) * + + 35
----
2523

query I rowsort
SELECT ALL - 99 + + 30 AS col1
----
-69

query I rowsort
SELECT - - 93 * 62 AS col2
----
5766

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

query I rowsort
SELECT - + 18 + - 93 col0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3262
SELECT ALL CAST( 71 AS SIGNED ) AS col0, 1
----
71
1

skipif mysql # not compatible
query II rowsort label-3262
SELECT ALL CAST ( 71 AS INTEGER ) AS col0, 1
----
71
1

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

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) + + - 14 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT - + 69 + + - 88 * - - 72 + - 98 * + CAST( NULL AS SIGNED ) * - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT - + 69 + + - 88 * - - 72 + - 98 * + CAST ( NULL AS INTEGER ) * - - 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3265
SELECT ALL + CAST( + - 97 AS SIGNED ) AS col1, 64 * + - 40
----
-97
-2560

skipif mysql # not compatible
query II rowsort label-3265
SELECT ALL + CAST ( + - 97 AS INTEGER ) AS col1, 64 * + - 40
----
-97
-2560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT - COUNT( - + 90 ) DIV - 39 col0
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT - COUNT ( - + 90 ) / - 39 col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT DISTINCT 64 * - - CASE 40 WHEN - 49 + - 69 * - + 89 THEN - - 96 - - - COUNT( * ) ELSE NULL END - + + 26 * 61 - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT 64 * - - CASE 40 WHEN - 49 + - 69 * - + 89 THEN - - 96 - - - COUNT ( * ) ELSE NULL END - + + 26 * 61 - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3269
SELECT - 26 * 39 + + + AVG ( + 48 ) + - COUNT( - CAST( NULL AS SIGNED ) ) + - - 54 + MIN( ALL - + CAST( NULL AS DECIMAL ) ) * 92 * - 30 * + - COALESCE ( - 99, + 48 + + - 93 * - - COALESCE ( ( + 66 ), - MAX( - - 6 ) ) ) - + 87 - - ( + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT - 26 * 39 + + + AVG ( + 48 ) + - COUNT ( - CAST ( NULL AS INTEGER ) ) + - - 54 + MIN ( ALL - + CAST ( NULL AS REAL ) ) * 92 * - 30 * + - COALESCE ( - 99, + 48 + + - 93 * - - COALESCE ( ( + 66 ), - MAX ( - - 6 ) ) ) - + 87 - - ( + 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL - 60 * + COUNT( * ) - + SUM( DISTINCT + - 89 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - 60 * + COUNT ( * ) - + SUM ( DISTINCT + - 89 ) AS col2
----
29

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

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - - 17
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3272
SELECT - 93 * COALESCE ( - + 34, - 46, - + MAX( + + ( 50 ) ) ), - SUM( DISTINCT + 63 ) AS col0
----
3162
-63

skipif mysql # not compatible
query II rowsort label-3272
SELECT - 93 * COALESCE ( - + 34, - 46, - + MAX ( + + ( 50 ) ) ), - SUM ( DISTINCT + 63 ) AS col0
----
3162
-63

query I rowsort
SELECT ALL 5 * + 12 * - - 7 AS col0
----
420

query I rowsort
SELECT NULLIF ( - + 52, 26 - + 59 )
----
-52

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

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

query I rowsort
SELECT COALESCE ( - 5, + + 97, + 55 + + 83 ) AS col0
----
-5

query I rowsort
SELECT - 51 + + 72 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT - CASE - ( 61 ) WHEN + - 85 THEN + COALESCE ( 36, - 65 ) * - 72 / + COUNT( * ) END * + - 72 - + CASE CASE - 94 WHEN - 3 THEN + 5 WHEN + 67 THEN NULL ELSE + COUNT( * ) * 4 END WHEN - COUNT( * ) * + 70 * + 23 + + AVG ( 2 ) THEN NULL ELSE - COUNT( * ) * - 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT - CASE - ( 61 ) WHEN + - 85 THEN + COALESCE ( 36, - 65 ) * - 72 / + COUNT ( * ) END * + - 72 - + CASE CASE - 94 WHEN - 3 THEN + 5 WHEN + 67 THEN NULL ELSE + COUNT ( * ) * 4 END WHEN - COUNT ( * ) * + 70 * + 23 + + AVG ( 2 ) THEN NULL ELSE - COUNT ( * ) * - 16 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 75 AS col1
----
75

query I rowsort
SELECT + 33 * 51
----
1683

query I rowsort
SELECT DISTINCT CASE - - 12 WHEN + 44 / + 9 * AVG ( DISTINCT 43 ) THEN + 99 WHEN + 14 THEN NULL END * + 14
----
NULL

query I rowsort
SELECT 0 * + - 78 + - - 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT MIN( + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-3283
SELECT MIN ( + 60 )
----
60

query I rowsort
SELECT ALL ( - 85 ) * 66 + + 90
----
-5520

query I rowsort
SELECT + 97 + - - 98 + + 88 * 49
----
4507

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL - 19 * + MIN( + ( - 66 ) ) + + 85
----
1339

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - 19 * + MIN ( + ( - 66 ) ) + + 85
----
1339

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT + + SUM( ALL + + 39 ) + - - ( - SUM( DISTINCT 59 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3287
SELECT + + SUM ( ALL + + 39 ) + - - ( - SUM ( DISTINCT 59 ) )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT ALL 71 + - COUNT( * ) DIV - - 45
----
71

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL 71 + - COUNT ( * ) / - - 45
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT + 10 + + - COUNT( * ) * - + MAX( ALL + - 27 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3289
SELECT + 10 + + - COUNT ( * ) * - + MAX ( ALL + - 27 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT ALL - 3 + - + NULLIF ( + COUNT( * ), - - 78 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL - 3 + - + NULLIF ( + COUNT ( * ), - - 78 ) AS col0
----
-4

query I rowsort
SELECT - ( - 39 ) AS col0
----
39

query I rowsort
SELECT - + 58 + 94 + 5 + - 75 + 19 * + 10 * + + 97 AS col2
----
18396

query I rowsort
SELECT DISTINCT 55 + ( + 93 )
----
148

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3294
SELECT ALL - NULLIF ( - ( 50 ), - + 18 * 70 / - 14 * + CAST( NULL AS SIGNED ) + + - CAST( NULL AS DECIMAL ) )
----
50

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - NULLIF ( - ( 50 ), - + 18 * 70 / - 14 * + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS REAL ) )
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT + COUNT( * ) * + 57 + - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3296
SELECT + COUNT ( * ) * + 57 + - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL 96 * + NULLIF ( + SUM( + ( - + 84 ) ), + ( - - 17 ) - - 17 + + 40 ) AS col2
----
-8064

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL 96 * + NULLIF ( + SUM ( + ( - + 84 ) ), + ( - - 17 ) - - 17 + + 40 ) AS col2
----
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT + ( + COUNT( DISTINCT + 64 ) ) - + - COALESCE ( 15, + 65, + ( + ( + - 41 ) ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3298
SELECT + ( + COUNT ( DISTINCT + 64 ) ) - + - COALESCE ( 15, + 65, + ( + ( + - 41 ) ) ) AS col1
----
16

query I rowsort
SELECT - + 95 col1
----
-95

query I rowsort
SELECT - 47 * + + 34
----
-1598

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT + MAX( ALL 25 )
----
25

skipif mysql # not compatible
query I rowsort label-3301
SELECT + MAX ( ALL 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3302
SELECT + ( 62 ) / + NULLIF ( - + 77, 20 ) / + - ( 12 ) + - AVG ( ALL - ( + - 63 ) ) + + CAST( NULL AS SIGNED ) * 8 + 83 + - - CASE 85 WHEN - - COUNT( * ) * 78 + 40 THEN NULL ELSE + 53 END - 32 * 3 - + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT + ( 62 ) / + NULLIF ( - + 77, 20 ) / + - ( 12 ) + - AVG ( ALL - ( + - 63 ) ) + + CAST ( NULL AS INTEGER ) * 8 + 83 + - - CASE 85 WHEN - - COUNT ( * ) * 78 + 40 THEN NULL ELSE + 53 END - 32 * 3 - + 92 AS col0
----
NULL

query I rowsort
SELECT - 46 * 37 AS col2
----
-1702

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT - 63 DIV 4 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3304
SELECT - 63 / 4 AS col1
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT + COUNT( * ) + + 73 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3306
SELECT + COUNT ( * ) + + 73 AS col2
----
74

query I rowsort
SELECT - 51 * 83
----
-4233

query I rowsort
SELECT 67 * + + 75 + 37
----
5062

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

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

query I rowsort
SELECT ALL + 76 * - + 26 AS col0
----
-1976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3311
SELECT - 84 * + CAST( NULL AS SIGNED ) + - 94 + 27 AS col2, COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3311
SELECT - 84 * + CAST ( NULL AS INTEGER ) + - 94 + 27 AS col2, COUNT ( * ) col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3312
SELECT CAST( NULL AS SIGNED ) AS col1, 25 DIV - - 8 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3312
SELECT CAST ( NULL AS INTEGER ) AS col1, 25 / - - 8 AS col0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3313
SELECT DISTINCT + CAST( - 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + CAST ( - 20 AS INTEGER )
----
-20

query I rowsort
SELECT ( 19 )
----
19

query I rowsort
SELECT DISTINCT + 86 + + COALESCE ( 86, + - 21 + + 87 ) * - 28 * - 3
----
7310

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3316
SELECT 42 + + 50 + + 75 AS col0, CAST( NULL AS DECIMAL ) AS col2, - 71
----
167
NULL
-71

skipif mysql # not compatible
query III rowsort label-3316
SELECT 42 + + 50 + + 75 AS col0, CAST ( NULL AS REAL ) AS col2, - 71
----
167
NULL
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL + NULLIF ( 27, - COUNT( ALL - ( - + 46 ) ) ) * + + SUM( - 12 )
----
-324

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL + NULLIF ( 27, - COUNT ( ALL - ( - + 46 ) ) ) * + + SUM ( - 12 )
----
-324

onlyif mysql # aggregate syntax: 
query II rowsort label-3318
SELECT DISTINCT - + 20 AS col0, 36 + ( - COUNT( * ) )
----
-20
35

skipif mysql # not compatible
query II rowsort label-3318
SELECT DISTINCT - + 20 AS col0, 36 + ( - COUNT ( * ) )
----
-20
35

query I rowsort
SELECT + 19 col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT 85 DIV - 19 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3320
SELECT 85 / - 19 AS col2
----
-4

query I rowsort
SELECT ALL + + 31 + 92 AS col1
----
123

query I rowsort
SELECT ALL 81 col2
----
81

query I rowsort
SELECT - 61 - + 89 AS col2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT - - SUM( DISTINCT - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-3324
SELECT - - SUM ( DISTINCT - 45 ) AS col1
----
-45

query I rowsort
SELECT + ( CASE + + 92 WHEN 33 THEN NULL ELSE 73 * + 98 + + 48 END ) AS col0
----
7202

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT 8 - 72 * - - 62 * - CASE WHEN NOT ( NOT ( NOT NULL IS NULL ) ) THEN 23 ELSE - + COALESCE ( + - ( 53 ), + 71 * 32, - - MAX( DISTINCT 77 ) ) END * COUNT( * ) AS col0
----
236600

skipif mysql # not compatible
query I rowsort label-3327
SELECT 8 - 72 * - - 62 * - CASE WHEN NOT ( NOT ( NOT NULL IS NULL ) ) THEN 23 ELSE - + COALESCE ( + - ( 53 ), + 71 * 32, - - MAX ( DISTINCT 77 ) ) END * COUNT ( * ) AS col0
----
236600

query II rowsort
SELECT ALL 87 AS col1, + 51 col1
----
87
51

query I rowsort
SELECT 54 - + ( 38 )
----
16

query I rowsort
SELECT ALL 27 * - 24 - - 43 * + 91 + 75 AS col1
----
3340

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL MIN( ALL 6 ) * + MAX( DISTINCT + 21 ) - - SUM( 84 ) + - + COUNT( * ) * - 32 AS col1
----
242

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL MIN ( ALL 6 ) * + MAX ( DISTINCT + 21 ) - - SUM ( 84 ) + - + COUNT ( * ) * - 32 AS col1
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT MAX( - - 73 ) - + 48 + - - COALESCE ( + 38, COUNT( * ), 13 * + 11 * + 60 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3332
SELECT MAX ( - - 73 ) - + 48 + - - COALESCE ( + 38, COUNT ( * ), 13 * + 11 * + 60 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT 23 - + + COUNT( * ) - 22
----
0

skipif mysql # not compatible
query I rowsort label-3333
SELECT 23 - + + COUNT ( * ) - 22
----
0

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

query I rowsort
SELECT 56 * + 79 * 63 + - 74 AS col0
----
278638

query I rowsort
SELECT - 60 * + + 29 AS col0
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT 99 + - 87 * + - CASE + COUNT( * ) WHEN 65 THEN + - 6 END - + + 35 * - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT 99 + - 87 * + - CASE + COUNT ( * ) WHEN 65 THEN + - 6 END - + + 35 * - + 56
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3338
SELECT ALL CASE - 45 WHEN 91 THEN - 68 WHEN 90 * + 99 * + - 20 * + 34 * + + 48 + + 25 THEN NULL END * + - 75 DIV + 94 + - 66 + - 37, - 89 + + 23 + - - 86 DIV - 32 AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-3338
SELECT ALL CASE - 45 WHEN 91 THEN - 68 WHEN 90 * + 99 * + - 20 * + 34 * + + 48 + + 25 THEN NULL END * + - 75 / + 94 + - 66 + - 37, - 89 + + 23 + - - 86 / - 32 AS col2
----
NULL
-68

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

skipif mysql # not compatible
query I rowsort label-3339
SELECT ( - COUNT ( * ) ) * 94
----
-94

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

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

query I rowsort
SELECT DISTINCT + 89 * + ( - 84 ) * 47
----
-351372

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT COALESCE ( + 31, + 10 ) * + MIN( + + 49 ) AS col0
----
1519

skipif mysql # not compatible
query I rowsort label-3342
SELECT COALESCE ( + 31, + 10 ) * + MIN ( + + 49 ) AS col0
----
1519

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT DISTINCT ( 20 ) + + ( - 34 ) - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT ( 20 ) + + ( - 34 ) - + COUNT ( * )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT ALL + 72 + CAST( - 94 AS SIGNED ) + - 91 * + + 91 + 96 - + 83 - + 8
----
-8298

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL + 72 + CAST ( - 94 AS INTEGER ) + - 91 * + + 91 + 96 - + 83 - + 8
----
-8298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT - 42 DIV + MIN( 89 ) * 80 DIV - - ( - 22 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3345
SELECT - 42 / + MIN ( 89 ) * 80 / - - ( - 22 ) + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT ( + + 69 ) + 22
----
91

query I rowsort
SELECT 42 * - 11
----
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3348
SELECT ALL + 45 / - ( ( + + COUNT( * ) ) ) * - 59 + 85 * - ( CASE + - 21 WHEN - CAST( - 51 AS SIGNED ) + - 19 THEN MAX( + - 42 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + 45 / - ( ( + + COUNT ( * ) ) ) * - 59 + 85 * - ( CASE + - 21 WHEN - CAST ( - 51 AS INTEGER ) + - 19 THEN MAX ( + - 42 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT ALL 80 + - NULLIF ( + 18, 30 + MAX( 33 ) ) * - 88 col1
----
1664

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL 80 + - NULLIF ( + 18, 30 + MAX ( 33 ) ) * - 88 col1
----
1664

query I rowsort
SELECT DISTINCT - 27 * + 53 AS col0
----
-1431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3351
SELECT + CASE - 18 WHEN COUNT( + 28 ) + + 36 THEN NULLIF ( - 58, 18 ) * - 41 * 75 * - 12 + - - 49 + - + ( - 26 ) WHEN + 92 / COUNT( * ) * - - 34 + - ( - MIN( DISTINCT - 11 ) ) - + + CASE 36 WHEN + - 53 THEN AVG ( - + 35 ) * - - 64 - + 51 ELSE NULL END * + CAST( + + 65 AS DECIMAL ) THEN + 96 END * + 99 + ( NULLIF ( 6, - + NULLIF ( + 6, - CASE - 14 WHEN - 51 THEN + 20 * CAST( NULL AS SIGNED ) WHEN - 22 THEN NULL ELSE - 8 * + 86 + - 26 END ) ) ) - + ( 82 ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3351
SELECT + CASE - 18 WHEN COUNT ( + 28 ) + + 36 THEN NULLIF ( - 58, 18 ) * - 41 * 75 * - 12 + - - 49 + - + ( - 26 ) WHEN + 92 / COUNT ( * ) * - - 34 + - ( - MIN ( DISTINCT - 11 ) ) - + + CASE 36 WHEN + - 53 THEN AVG ( - + 35 ) * - - 64 - + 51 ELSE NULL END * + CAST ( + + 65 AS REAL ) THEN + 96 END * + 99 + ( NULLIF ( 6, - + NULLIF ( + 6, - CASE - 14 WHEN - 51 THEN + 20 * CAST ( NULL AS INTEGER ) WHEN - 22 THEN NULL ELSE - 8 * + 86 + - 26 END ) ) ) - + ( 82 ) * 97
----
NULL

query II rowsort
SELECT - 92 + - 71 col2, 69 AS col2
----
-163
69

query I rowsort
SELECT + COALESCE ( - + 55, + 94 * - 43 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3354
SELECT COUNT( * ) + + 24 AS col1, + 79 + COUNT( * ) AS col0
----
25
80

skipif mysql # not compatible
query II rowsort label-3354
SELECT COUNT ( * ) + + 24 AS col1, + 79 + COUNT ( * ) AS col0
----
25
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + 8 + + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3355
SELECT + 8 + + COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL - 89 AS col2
----
-89

query I rowsort
SELECT 92 + ( + 5 )
----
97

query I rowsort
SELECT 38 + + 34 AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3359
SELECT ALL - 21 DIV ( - 92 ) * - - 78 * - 67 AS col1, + 69 + + COUNT( * ) - - - 31 DIV + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3359
SELECT ALL - 21 / ( - 92 ) * - - 78 * - 67 AS col1, + 69 + + COUNT ( * ) - - - 31 / + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT 8 * - + 21
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-3361
SELECT 14 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-3361
SELECT 14 / - 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT ALL + 48 + - ( + - 99 ) + + - COALESCE ( - 52, - 27, - 35 ) + + 6 + 22 DIV NULLIF ( - 29, - - 83 ) + + 16 * + 97
----
1757

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + 48 + - ( + - 99 ) + + - COALESCE ( - 52, - 27, - 35 ) + + 6 + 22 / NULLIF ( - 29, - - 83 ) + + 16 * + 97
----
1757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT 98 - + + CAST( 7 AS SIGNED ) + - 95
----
-4

skipif mysql # not compatible
query I rowsort label-3363
SELECT 98 - + + CAST ( 7 AS INTEGER ) + - 95
----
-4

query II rowsort
SELECT ALL 22 AS col0, 30 * 67 * + 8
----
22
16080

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT 4 DIV - - 66 col1
----
0

skipif mysql # not compatible
query I rowsort label-3365
SELECT 4 / - - 66 col1
----
0

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

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

query I rowsort
SELECT DISTINCT ( 76 ) + - 9 * - 41 col0
----
445

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL + 36 * - 91 * + COUNT( * ) + - + MAX( + 77 ) AS col1
----
-3353

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + 36 * - 91 * + COUNT ( * ) + - + MAX ( + 77 ) AS col1
----
-3353

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3369
SELECT - COUNT( * ) DIV - 33 * 42 * + 86 - - 20 + + + 5
----
25

skipif mysql # not compatible
query I rowsort label-3369
SELECT - COUNT ( * ) / - 33 * 42 * + 86 - - 20 + + + 5
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + MIN( DISTINCT NULLIF ( - - 15, - 43 - - 43 ) ) * + MAX( - ( - + 52 ) ) * - + 91 AS col1
----
-70980

skipif mysql # not compatible
query I rowsort label-3370
SELECT + MIN ( DISTINCT NULLIF ( - - 15, - 43 - - 43 ) ) * + MAX ( - ( - + 52 ) ) * - + 91 AS col1
----
-70980

query I rowsort
SELECT DISTINCT - 92 * - 47 + - 17 + - - ( - - 84 ) AS col0
----
4391

query II rowsort
SELECT ALL + 13 AS col0, + 39
----
13
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT CASE + CASE + 95 WHEN - 86 * 16 THEN + COUNT( - - 13 ) * - 41 WHEN - + 43 * + - 19 + + 55 THEN NULL END WHEN - MAX( - - ( - 13 ) ) / - - 77 + + 49 * - + COUNT( * ) + - 56 THEN - - 54 WHEN 77 THEN 89 + - 42 + + - MAX( ALL - - 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT CASE + CASE + 95 WHEN - 86 * 16 THEN + COUNT ( - - 13 ) * - 41 WHEN - + 43 * + - 19 + + 55 THEN NULL END WHEN - MAX ( - - ( - 13 ) ) / - - 77 + + 49 * - + COUNT ( * ) + - 56 THEN - - 54 WHEN 77 THEN 89 + - 42 + + - MAX ( ALL - - 20 ) END
----
NULL

query I rowsort
SELECT - ( - 62 ) - + + 86 col2
----
-24

query I rowsort
SELECT DISTINCT + + 55 AS col0
----
55

query I rowsort
SELECT + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - MIN( - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-3377
SELECT - MIN ( - 31 )
----
31

query I rowsort
SELECT DISTINCT + - 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT ALL - 55 * - - COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - 55 * - - COUNT ( * ) col2
----
-55

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3381
SELECT + 88 * - + 64 + - CAST( NULL AS SIGNED ) + - MAX( + 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT + 88 * - + 64 + - CAST ( NULL AS INTEGER ) + - MAX ( + 67 ) AS col2
----
NULL

query II rowsort
SELECT + 72, + NULLIF ( + 64, + 38 ) AS col2
----
72
64

query I rowsort
SELECT ALL + - 67
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3384
SELECT + MIN( + 24 ) DIV 73 + 76 + - - 22 - + - 43 * + COALESCE ( - CAST( - + 26 AS SIGNED ), - MIN( - + 1 ) ) AS col0
----
1216

skipif mysql # not compatible
query I rowsort label-3384
SELECT + MIN ( + 24 ) / 73 + 76 + - - 22 - + - 43 * + COALESCE ( - CAST ( - + 26 AS INTEGER ), - MIN ( - + 1 ) ) AS col0
----
1216

query I rowsort
SELECT - 19 * 1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT - 63 * - CAST( NULL AS SIGNED ) * + + CAST( - - 71 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT - 63 * - CAST ( NULL AS INTEGER ) * + + CAST ( - - 71 AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - - 84 * NULLIF ( + + 72, - COUNT( * ) )
----
6048

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - - 84 * NULLIF ( + + 72, - COUNT ( * ) )
----
6048

query I rowsort
SELECT DISTINCT - - 67 + + - ( + 63 ) AS col0
----
4

query I rowsort
SELECT - - 16 col2
----
16

query I rowsort
SELECT - 47 * + 3
----
-141

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT DISTINCT CASE 40 WHEN + 71 + 89 / 14 * - + 93 + CASE COUNT( * ) WHEN + - 82 + + + ( - 45 ) THEN - + 68 + 1 END * - + 95 / + 48 * - + 3 * - 85 * ( + + 93 ) + + 39 * 62 + + 49 THEN + - 94 ELSE 97 - SUM( ALL - 24 ) END AS col0
----
121

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT CASE 40 WHEN + 71 + 89 / 14 * - + 93 + CASE COUNT ( * ) WHEN + - 82 + + + ( - 45 ) THEN - + 68 + 1 END * - + 95 / + 48 * - + 3 * - 85 * ( + + 93 ) + + 39 * 62 + + 49 THEN + - 94 ELSE 97 - SUM ( ALL - 24 ) END AS col0
----
121

query II rowsort
SELECT 34 AS col2, 38 AS col0
----
34
38

query I rowsort
SELECT - 41 - + 82
----
-123

query I rowsort
SELECT ALL - 90 + + - 73
----
-163

query I rowsort
SELECT - 11 + - - 35 AS col1
----
24

query I rowsort
SELECT - 17 - + - 96
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT - 87 + COUNT( * ) + 22
----
-64

skipif mysql # not compatible
query I rowsort label-3398
SELECT - 87 + COUNT ( * ) + 22
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT + MIN( + - 57 ) + 72
----
15

skipif mysql # not compatible
query I rowsort label-3399
SELECT + MIN ( + - 57 ) + 72
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3400
SELECT 26 AS col2, - CAST( NULL AS SIGNED )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-3400
SELECT 26 AS col2, - CAST ( NULL AS INTEGER )
----
26
NULL

query I rowsort
SELECT ALL COALESCE ( + 42, + 5 + 33 ) AS col1
----
42

query I rowsort
SELECT ALL 92 * - 91 AS col1
----
-8372

query I rowsort
SELECT DISTINCT - 72 + 88 + - 21
----
-5

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

skipif mysql # not compatible
query I rowsort label-3404
SELECT - MIN ( ALL - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL - COUNT( 34 ) - + + 60 * - 89
----
5339

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - COUNT ( 34 ) - + + 60 * - 89
----
5339

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

query I rowsort
SELECT - 62 + - 48
----
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT - COUNT( * ) * - 99 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT - COUNT ( * ) * - 99 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 82 * 37 AS col2
----
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - 46 * 14 + + - COUNT( * ) + - + 47 + + 65 * + COUNT( * )
----
-627

skipif mysql # not compatible
query I rowsort label-3411
SELECT - 46 * 14 + + - COUNT ( * ) + - + 47 + + 65 * + COUNT ( * )
----
-627

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT + 27 * - 4 * + CASE 62 WHEN - + 4 THEN NULL WHEN 35 + - 84 * - - 94 / - 29 THEN 80 * + - COUNT( + COALESCE ( - 47, 45 ) ) / + 55 * + - 13 + - ( + - ( + 34 ) ) END * 7 + 19 + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT + 27 * - 4 * + CASE 62 WHEN - + 4 THEN NULL WHEN 35 + - 84 * - - 94 / - 29 THEN 80 * + - COUNT ( + COALESCE ( - 47, 45 ) ) / + 55 * + - 13 + - ( + - ( + 34 ) ) END * 7 + 19 + 26
----
NULL

query I rowsort
SELECT - 15 * + 8 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ( + 7 ) / + 11 + 35 * + CASE + + 30 WHEN + AVG ( ALL + + 0 ) THEN + 79 WHEN + MIN( DISTINCT - ( - 51 ) ) THEN NULL END + + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT ( + 7 ) / + 11 + 35 * + CASE + + 30 WHEN + AVG ( ALL + + 0 ) THEN + 79 WHEN + MIN ( DISTINCT - ( - 51 ) ) THEN NULL END + + - 53 AS col2
----
NULL

query I rowsort
SELECT ALL - 75 * COALESCE ( - 54, + ( + 3 ) ) + + - 99
----
3951

query I rowsort
SELECT DISTINCT + 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT + MAX( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3418
SELECT + MAX ( + 55 )
----
55

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

query I rowsort
SELECT + COALESCE ( - - 45, + 18 * + 33 ) + - + 58
----
-13

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

query II rowsort
SELECT + 54 * 5 AS col2, - 42 * - 77 AS col2
----
270
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT ALL ( - 7 ) * - + CASE + - COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE 88 END + - 51 + 21 * - - 3
----
628

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL ( - 7 ) * - + CASE + - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE 88 END + - 51 + 21 * - - 3
----
628

query I rowsort
SELECT + + 44 * 80 - 10
----
3510

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

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

query I rowsort
SELECT + ( + 80 ) * 76
----
6080

query I rowsort
SELECT + + 48 + + 62 col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT ALL - + COUNT( * ) * 53 * + 48 * + + 68 + - 2
----
-172994

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL - + COUNT ( * ) * 53 * + 48 * + + 68 + - 2
----
-172994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3429
SELECT + - COUNT( * ) * - CAST( NULL AS SIGNED ) + - - 64 + - - 92 / + + 57 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3429
SELECT + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - - 64 + - - 92 / + + 57 / + COUNT ( * )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3431
SELECT ALL + 99 * - - COALESCE ( + 92, 52 DIV ( ( - 79 ) ) * COUNT( * ) )
----
9108

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL + 99 * - - COALESCE ( + 92, 52 / ( ( - 79 ) ) * COUNT ( * ) )
----
9108

query I rowsort
SELECT DISTINCT 15 * + + 12 * + 54 + + 4
----
9724

query I rowsort
SELECT + 70 + - 81 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT DISTINCT CAST( 93 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT CAST ( 93 AS INTEGER ) AS col1
----
93

query I rowsort
SELECT ALL + 79 * ( + 65 ) + ( 46 ) AS col1
----
5181

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3436
SELECT DISTINCT + 75 AS col1, - 20 + - CAST( + 72 AS SIGNED ) DIV 79 col2
----
75
-20

skipif mysql # not compatible
query II rowsort label-3436
SELECT DISTINCT + 75 AS col1, - 20 + - CAST ( + 72 AS INTEGER ) / 79 col2
----
75
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3437
SELECT 49 * + + CAST( NULL AS DECIMAL ) * 63 + 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT 49 * + + CAST ( NULL AS REAL ) * 63 + 59 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT ALL COALESCE ( 33, - + 42 ) DIV - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL COALESCE ( 33, - + 42 ) / - 64 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3439
SELECT + 11 DIV - 37 * + 11
----
0

skipif mysql # not compatible
query I rowsort label-3439
SELECT + 11 / - 37 * + 11
----
0

query I rowsort
SELECT + 29 * + ( ( ( 49 ) ) )
----
1421

query I rowsort
SELECT - 93 + + + NULLIF ( 25, NULLIF ( 47, + CASE - 68 WHEN + 66 THEN NULL WHEN 86 * + 7 + - CASE - + 33 WHEN 19 THEN + 29 END + 58 THEN - - 87 END ) ) AS col0
----
-68

query I rowsort
SELECT DISTINCT 28 + - 86 + - - 31 + - + 5 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT ALL - 59 * + ( - 67 ), COUNT( * ) AS col2
----
3953
1

skipif mysql # not compatible
query II rowsort label-3443
SELECT ALL - 59 * + ( - 67 ), COUNT ( * ) AS col2
----
3953
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT 43 * - 79, + ( - SUM( + 36 ) ) + - + 20 AS col1
----
-3397
-56

skipif mysql # not compatible
query II rowsort label-3444
SELECT 43 * - 79, + ( - SUM ( + 36 ) ) + - + 20 AS col1
----
-3397
-56

query I rowsort
SELECT ALL 63 - 66 + + - 42
----
-45

query I rowsort
SELECT ALL + 86 - + - 17 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT COUNT( * ) - 80
----
-79

skipif mysql # not compatible
query I rowsort label-3447
SELECT COUNT ( * ) - 80
----
-79

query I rowsort
SELECT 68 * 84
----
5712

query I rowsort
SELECT 42 + + + 37 * + 44 AS col1
----
1670

query II rowsort
SELECT 58 * + 29 AS col0, 46
----
1682
46

query I rowsort
SELECT ALL 52 col2
----
52

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT ALL - - MAX( 34 ) AS col0, 73 + 13 + - 63 * MIN( + ( 48 ) ) + - + 87
----
34
-3025

skipif mysql # not compatible
query II rowsort label-3453
SELECT ALL - - MAX ( 34 ) AS col0, 73 + 13 + - 63 * MIN ( + ( 48 ) ) + - + 87
----
34
-3025

query I rowsort
SELECT + - 28
----
-28

query I rowsort
SELECT - 38 * 63 col0
----
-2394

query I rowsort
SELECT + 1 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT + 5 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3457
SELECT + 5 / - 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3458
SELECT - + 83 * - + 53 * - 61 + - 6 + + COUNT( * ), 71 AS col0
----
-268344
71

skipif mysql # not compatible
query II rowsort label-3458
SELECT - + 83 * - + 53 * - 61 + - 6 + + COUNT ( * ), 71 AS col0
----
-268344
71

query I rowsort
SELECT + 79 - - 25
----
104

query I rowsort
SELECT + 18 * + ( + 24 ) * + 99 AS col2
----
42768

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

query I rowsort
SELECT + - 46
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT DISTINCT - - 75 + - 85 + + 37 DIV ( - 6 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - - 75 + - 85 + + 37 / ( - 6 ) AS col0
----
-16

query I rowsort
SELECT ALL + - 13 + 36 * 92
----
3299

query I rowsort
SELECT - 54 * 85 AS col0
----
-4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT DISTINCT - MAX( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT - MAX ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT CASE + + 47 WHEN + 94 THEN ( + - 31 ) - ( + 11 ) END AS col0
----
NULL

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

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

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

query I rowsort
SELECT 8 + + 28
----
36

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

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL 23 + - COUNT ( * ) AS col2
----
22

query I rowsort
SELECT - 61 col2
----
-61

query II rowsort
SELECT DISTINCT 13 col2, - 14 + 94 AS col2
----
13
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3474
SELECT - 14, NULLIF ( 70, 46 ) * 96 * - CAST( - - ( - 54 ) AS SIGNED ) AS col2
----
-14
362880

skipif mysql # not compatible
query II rowsort label-3474
SELECT - 14, NULLIF ( 70, 46 ) * 96 * - CAST ( - - ( - 54 ) AS INTEGER ) AS col2
----
-14
362880

onlyif mysql # aggregate syntax: 
query II rowsort label-3475
SELECT ALL 15 AS col2, SUM( - 94 ) AS col2
----
15
-94

skipif mysql # not compatible
query II rowsort label-3475
SELECT ALL 15 AS col2, SUM ( - 94 ) AS col2
----
15
-94

query I rowsort
SELECT ALL 87 - + 47 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT ( 99 ) + - CAST( NULL AS SIGNED ) * + 76 * 34 * - - MIN( + + 33 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT ( 99 ) + - CAST ( NULL AS INTEGER ) * + 76 * 34 * - - MIN ( + + 33 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL ( + AVG ( ALL CAST( NULL AS SIGNED ) ) ) - 21 + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) - 21 + - 92 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 24 AS col0, + 30 AS col0
----
24
30

query I rowsort
SELECT DISTINCT 76 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT CAST( 17 AS SIGNED ) * - ( - 8 )
----
136

skipif mysql # not compatible
query I rowsort label-3481
SELECT CAST ( 17 AS INTEGER ) * - ( - 8 )
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3482
SELECT ALL 82 AS col1, - MAX( 37 ) + - SUM( + CASE + 12 WHEN - 68 + - 29 + 26 THEN NULL WHEN - CAST( + 66 AS SIGNED ) THEN + - 31 * - + 37 + + 97 + + 95 END ) + - 90 * - - 6
----
82
NULL

skipif mysql # not compatible
query II rowsort label-3482
SELECT ALL 82 AS col1, - MAX ( 37 ) + - SUM ( + CASE + 12 WHEN - 68 + - 29 + 26 THEN NULL WHEN - CAST ( + 66 AS INTEGER ) THEN + - 31 * - + 37 + + 97 + + 95 END ) + - 90 * - - 6
----
82
NULL

query I rowsort
SELECT 68 - + 35
----
33

query I rowsort
SELECT ( ( 13 ) ) * + - 79 col2
----
-1027

query I rowsort
SELECT 78 - - 20 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT COUNT( * ) * - MIN( DISTINCT - 3 ) * - 55
----
-165

skipif mysql # not compatible
query I rowsort label-3486
SELECT COUNT ( * ) * - MIN ( DISTINCT - 3 ) * - 55
----
-165

query I rowsort
SELECT 87 + - 5
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3488
SELECT CAST( - - 6 AS SIGNED ) DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT CAST ( - - 6 AS INTEGER ) / - + 87
----
0

query I rowsort
SELECT ALL + 83 * + 25
----
2075

query I rowsort
SELECT 2 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT 77 + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3491
SELECT 77 + + COUNT ( * )
----
78

query II rowsort
SELECT ALL 4, 81 + 16 * ( - + 41 ) + - 33 AS col2
----
4
-608

query I rowsort
SELECT ALL + 92 * + 80 AS col0
----
7360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3494
SELECT + 76 + + 70 + + - 25 + MAX( + CAST( NULL AS SIGNED ) ) - + 45 / - + NULLIF ( - 33, + 24 * - 52 ) * - 81 * - 91 * - COALESCE ( 62, + SUM( ALL + 16 ), + SUM( - 20 ) ) * + - COUNT( * ) + - - 42 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT + 76 + + 70 + + - 25 + MAX ( + CAST ( NULL AS INTEGER ) ) - + 45 / - + NULLIF ( - 33, + 24 * - 52 ) * - 81 * - 91 * - COALESCE ( 62, + SUM ( ALL + 16 ), + SUM ( - 20 ) ) * + - COUNT ( * ) + - - 42 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3495
SELECT DISTINCT 65 * + COUNT( * ) + + + 97 * + 15, 46 * 95 AS col1
----
1520
4370

skipif mysql # not compatible
query II rowsort label-3495
SELECT DISTINCT 65 * + COUNT ( * ) + + + 97 * + 15, 46 * 95 AS col1
----
1520
4370

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

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

query I rowsort
SELECT ALL - - 99 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3498
SELECT DISTINCT + 49 DIV + 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3498
SELECT DISTINCT + 49 / + 34 AS col0
----
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3501
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + 1, + 58 col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-3501
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + 1, + 58 col1
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT - 93 * NULLIF ( 76, - MIN( + 40 ) ) * - 0 + - 52 + COUNT( * ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-3502
SELECT - 93 * NULLIF ( 76, - MIN ( + 40 ) ) * - 0 + - 52 + COUNT ( * ) col0
----
-51

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

query I rowsort
SELECT ALL + - 97 - 3 + - 97 + - - COALESCE ( + 67, + 50 + - 63, + + 51 + 34 )
----
-130

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3506
SELECT 85 * 87 + + 7 DIV - 54
----
7395

skipif mysql # not compatible
query I rowsort label-3506
SELECT 85 * 87 + + 7 / - 54
----
7395

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT + 58 + + 24 + + NULLIF ( + COUNT( * ), 40 - - - 24 ) - 52 * + - 71
----
3775

skipif mysql # not compatible
query I rowsort label-3507
SELECT + 58 + + 24 + + NULLIF ( + COUNT ( * ), 40 - - - 24 ) - 52 * + - 71
----
3775

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT ALL 70 - 54 DIV + + 13 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL 70 - 54 / + + 13 AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3509
SELECT DISTINCT COALESCE ( + 21, 84 * 10 DIV + - MIN( + - CAST( 13 AS SIGNED ) ) ) AS col0, + COUNT( * ) * - + COUNT( * ) * 24 AS col0
----
21
-24

skipif mysql # not compatible
query II rowsort label-3509
SELECT DISTINCT COALESCE ( + 21, 84 * 10 / + - MIN ( + - CAST ( 13 AS INTEGER ) ) ) AS col0, + COUNT ( * ) * - + COUNT ( * ) * 24 AS col0
----
21
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT 23 * CAST( NULL AS SIGNED ) + + COUNT( * ) - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT 23 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3511
SELECT ALL 10 * ( - COUNT( * ) ) DIV - - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL 10 * ( - COUNT ( * ) ) / - - 26 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3513
SELECT + CAST( NULL AS SIGNED ) * + 63, - COUNT( * ) + + 48 DIV - MAX( ALL - 16 ) AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3513
SELECT + CAST ( NULL AS INTEGER ) * + 63, - COUNT ( * ) + + 48 / - MAX ( ALL - 16 ) AS col2
----
NULL
2

query II rowsort
SELECT DISTINCT ( 76 ), - 69 col1
----
76
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT + CAST( - + 81 AS SIGNED ) + 52
----
-29

skipif mysql # not compatible
query I rowsort label-3515
SELECT + CAST ( - + 81 AS INTEGER ) + 52
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3516
SELECT DISTINCT 9 * + COUNT( * ) AS col0, 40 * AVG ( - + CAST( NULL AS DECIMAL ) )
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3516
SELECT DISTINCT 9 * + COUNT ( * ) AS col0, 40 * AVG ( - + CAST ( NULL AS REAL ) )
----
9
NULL

query I rowsort
SELECT ALL 68 + 28 + - + 92 AS col2
----
4

query I rowsort
SELECT + 32 - - + 21 * 51 * - 77 * - ( - 78 )
----
-6432394

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT + MIN( 12 ) * 24
----
288

skipif mysql # not compatible
query I rowsort label-3519
SELECT + MIN ( 12 ) * 24
----
288

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3521
SELECT ALL ( 57 ) DIV - COUNT( ALL 65 ) + 61 DIV + 66 * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL ( 57 ) / - COUNT ( ALL 65 ) + 61 / + 66 * COUNT ( * )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT ALL + ( - 96 ) DIV - 15 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + ( - 96 ) / - 15 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT - - COUNT( * ) * + 33 - + 75
----
-42

skipif mysql # not compatible
query I rowsort label-3523
SELECT - - COUNT ( * ) * + 33 - + 75
----
-42

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT DISTINCT + 30 * + 87 - 23 + - 76 col1, + MAX( ALL + - 23 ) * + - 61 * - 1 + 25 * - CASE + 62 WHEN - 46 / + 66 * - 84 THEN + 16 ELSE + 56 END - + 21
----
2511
-2824

skipif mysql # not compatible
query II rowsort label-3525
SELECT DISTINCT + 30 * + 87 - 23 + - 76 col1, + MAX ( ALL + - 23 ) * + - 61 * - 1 + 25 * - CASE + 62 WHEN - 46 / + 66 * - 84 THEN + 16 ELSE + 56 END - + 21
----
2511
-2824

query I rowsort
SELECT - ( 17 ) * 86 + 33 + - 67 - + + ( + 66 )
----
-1562

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

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

query I rowsort
SELECT ALL + - 47 AS col2
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3529
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3530
SELECT ALL - COALESCE ( + COUNT( * ), + SUM( DISTINCT - - 26 ) * 99 + 25 * - CAST( NULL AS SIGNED ) ) DIV COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL - COALESCE ( + COUNT ( * ), + SUM ( DISTINCT - - 26 ) * 99 + 25 * - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL COUNT( * ) * - 30 * + 20 - + ( 61 )
----
-661

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL COUNT ( * ) * - 30 * + 20 - + ( 61 )
----
-661

query I rowsort
SELECT ALL - 0 * - + 57
----
0

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

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

query I rowsort
SELECT + 46 + - 58 col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3535
SELECT - 52 DIV - - 30 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3535
SELECT - 52 / - - 30 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT + SUM( - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3536
SELECT + SUM ( - 11 ) AS col2
----
-11

query I rowsort
SELECT COALESCE ( + - 75, - NULLIF ( - - 34, - 23 + 2 ) )
----
-75

query I rowsort
SELECT - 98 + + 63
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3539
SELECT - 16 DIV + - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 16 / + - 61 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT - COUNT( * ) * COUNT( DISTINCT 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT - COUNT ( * ) * COUNT ( DISTINCT 91 )
----
-1

query I rowsort
SELECT - 68 + - - 73
----
5

query I rowsort
SELECT ALL ( - + NULLIF ( + - ( + 34 ), - 9 ) ) AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3544
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) + - ( + + 16 ) + - 99 / + 11 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) + - ( + + 16 ) + - 99 / + 11 * 70
----
NULL

query II rowsort
SELECT ALL 93, + COALESCE ( - + 24, + - 81, + 69 ) AS col0
----
93
-24

query I rowsort
SELECT DISTINCT + 19 + - 92 AS col2
----
-73

query I rowsort
SELECT + 14 - + - 80 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT - 62 + MIN( 56 ) + - ( + 32 ) * + + 53 + + CAST( - + 31 AS SIGNED ) + - 0
----
-1733

skipif mysql # not compatible
query I rowsort label-3548
SELECT - 62 + MIN ( 56 ) + - ( + 32 ) * + + 53 + + CAST ( - + 31 AS INTEGER ) + - 0
----
-1733

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + 32 + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3549
SELECT + 32 + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3550
SELECT - NULLIF ( - - COUNT( * ), + COALESCE ( - + 66, 80, + 87 / 34 + - ( - 41 ) ) * + 2 - - + COALESCE ( + ( - - 62 ), - 79 - 87 + 22 * - - 52, - 90 + + 28 ) / 61 ), 27 AS col2
----
-1
27

skipif mysql # not compatible
query II rowsort label-3550
SELECT - NULLIF ( - - COUNT ( * ), + COALESCE ( - + 66, 80, + 87 / 34 + - ( - 41 ) ) * + 2 - - + COALESCE ( + ( - - 62 ), - 79 - 87 + 22 * - - 52, - 90 + + 28 ) / 61 ), 27 AS col2
----
-1
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3552
SELECT ALL - COALESCE ( 55, - - NULLIF ( - 51, + MIN( DISTINCT + + 30 ) / - 31 ) + + NULLIF ( - 7, - 76 * 59 + + + COUNT( * ) - + MAX( DISTINCT 29 ) * MIN( ALL - 99 ) * - 45 ) + - - 59 * + 65 + + ( + 52 ) ), 11 AS col1
----
-55
11

skipif mysql # not compatible
query II rowsort label-3552
SELECT ALL - COALESCE ( 55, - - NULLIF ( - 51, + MIN ( DISTINCT + + 30 ) / - 31 ) + + NULLIF ( - 7, - 76 * 59 + + + COUNT ( * ) - + MAX ( DISTINCT 29 ) * MIN ( ALL - 99 ) * - 45 ) + - - 59 * + 65 + + ( + 52 ) ), 11 AS col1
----
-55
11

query I rowsort
SELECT DISTINCT - + ( + 99 ) * 87 AS col1
----
-8613

query I rowsort
SELECT ALL + + 6 + - + 65 + 37 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT DISTINCT NULLIF ( - 13, 35 - + 20 * MAX( ALL + 58 ) + + COUNT( * ) + + 97 - - + 90 + - - COUNT( * ) - 61 + + 23 * + CASE 57 WHEN + + 93 THEN NULL WHEN + 81 / - 92 + CASE + - 22 WHEN - 89 * - - ( - 22 ) * + 55 THEN 20 WHEN 67 * 8 THEN - 6 / 37 WHEN 75 THEN NULL END * 22 * - + 24 THEN - ( 10 ) + - + COUNT( * ) * 36 * + 4 ELSE NULL END / - 92 * - - NULLIF ( + 73, SUM( + 38 ) ) * + 5 * - - 23 - 26 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT NULLIF ( - 13, 35 - + 20 * MAX ( ALL + 58 ) + + COUNT ( * ) + + 97 - - + 90 + - - COUNT ( * ) - 61 + + 23 * + CASE 57 WHEN + + 93 THEN NULL WHEN + 81 / - 92 + CASE + - 22 WHEN - 89 * - - ( - 22 ) * + 55 THEN 20 WHEN 67 * 8 THEN - 6 / 37 WHEN 75 THEN NULL END * 22 * - + 24 THEN - ( 10 ) + - + COUNT ( * ) * 36 * + 4 ELSE NULL END / - 92 * - - NULLIF ( + 73, SUM ( + 38 ) ) * + 5 * - - 23 - 26 ) AS col0
----
-13

query I rowsort
SELECT - 65 col1
----
-65

query I rowsort
SELECT + 74 + + 57 AS col1
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT + - 63 * 70 * - CASE + 35 WHEN + COUNT( DISTINCT 19 ) THEN NULL WHEN AVG ( - 62 ) THEN - 70 END - + - CASE - 55 WHEN + 40 THEN - - 26 + + + 93 * + + CAST( - + 82 AS SIGNED ) + - CASE - 4 WHEN 28 * - - COALESCE ( 7, - 44 ) THEN NULL ELSE - + 30 * + 98 + 11 END WHEN 10 * - - AVG ( ALL + + 55 ) THEN NULL WHEN - 26 THEN - + 3 * MIN( DISTINCT + + 72 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT + - 63 * 70 * - CASE + 35 WHEN + COUNT ( DISTINCT 19 ) THEN NULL WHEN AVG ( - 62 ) THEN - 70 END - + - CASE - 55 WHEN + 40 THEN - - 26 + + + 93 * + + CAST ( - + 82 AS INTEGER ) + - CASE - 4 WHEN 28 * - - COALESCE ( 7, - 44 ) THEN NULL ELSE - + 30 * + 98 + 11 END WHEN 10 * - - AVG ( ALL + + 55 ) THEN NULL WHEN - 26 THEN - + 3 * MIN ( DISTINCT + + 72 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3559
SELECT DISTINCT - 40 DIV + ( - COUNT( * ) ) - 46 - - COUNT( * ) * - 92
----
-98

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT - 40 / + ( - COUNT ( * ) ) - 46 - - COUNT ( * ) * - 92
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT - 64 DIV - - 58 + ( 66 ) + 81 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-3560
SELECT - 64 / - - 58 + ( 66 ) + 81 AS col0
----
146

query I rowsort
SELECT + + 44 AS col2
----
44

query I rowsort
SELECT ALL - + 40
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT - 22 DIV + + 30 + - 90 - - - CASE + + 49 WHEN 43 THEN NULL ELSE + NULLIF ( 10, + 22 DIV + 96 ) END + - - 14 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3563
SELECT - 22 / + + 30 + - 90 - - - CASE + + 49 WHEN 43 THEN NULL ELSE + NULLIF ( 10, + 22 / + 96 ) END + - - 14 AS col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3564
SELECT DISTINCT COUNT( - - 18 ) - + 17 DIV - NULLIF ( - 67, 28 ) * - 43
----
1

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT COUNT ( - - 18 ) - + 17 / - NULLIF ( - 67, 28 ) * - 43
----
1

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

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

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

query II rowsort
SELECT ALL - 88, + 78 * - 21 col0
----
-88
-1638

query I rowsort
SELECT DISTINCT 99 * CASE 13 WHEN - 97 + 92 THEN NULL WHEN 88 THEN + - 92 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT 26 * - CAST( - 57 AS SIGNED )
----
1482

skipif mysql # not compatible
query I rowsort label-3569
SELECT 26 * - CAST ( - 57 AS INTEGER )
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT 62 * - MIN( 3 )
----
-186

skipif mysql # not compatible
query I rowsort label-3570
SELECT 62 * - MIN ( 3 )
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL 34 * 36 * SUM( + 29 ) AS col0
----
35496

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL 34 * 36 * SUM ( + 29 ) AS col0
----
35496

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT 78 + - + CASE - 75 WHEN + MIN( ALL + + 60 ) THEN - SUM( + 64 ) END - COUNT( DISTINCT 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT 78 + - + CASE - 75 WHEN + MIN ( ALL + + 60 ) THEN - SUM ( + 64 ) END - COUNT ( DISTINCT 62 ) AS col0
----
NULL

query I rowsort
SELECT 52 * + 52
----
2704

query II rowsort
SELECT ( - 62 ) * - 42 + + 30 + + 21 * 78, 63 col0
----
4272
63

query I rowsort
SELECT ALL - 96 + ( + - 73 ) + + 46 * 10 - + 80 AS col1
----
211

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

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL 51 + - COUNT ( * ) AS col2
----
50

query II rowsort
SELECT 18, - 94 * - - 45 AS col1
----
18
-4230

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT - 89 AS col0, + ( + - MAX( - - 71 ) )
----
-89
-71

skipif mysql # not compatible
query II rowsort label-3578
SELECT - 89 AS col0, + ( + - MAX ( - - 71 ) )
----
-89
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT - 79 + 92 * + COUNT( * ) + + - NULLIF ( - + 20, - - ( + COUNT( * ) ) * - + 89 - COUNT( * ) ) * + 1 col1
----
33

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT - 79 + 92 * + COUNT ( * ) + + - NULLIF ( - + 20, - - ( + COUNT ( * ) ) * - + 89 - COUNT ( * ) ) * + 1 col1
----
33

query II rowsort
SELECT 28, 19 AS col1
----
28
19

query I rowsort
SELECT 97 * - 68 + - 71
----
-6667

query I rowsort
SELECT 77 * + 3 AS col1
----
231

query II rowsort
SELECT 12 + + 53 AS col1, - 61 AS col1
----
65
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT + 69 * + + 89 * - + 63 * - CASE - 46 WHEN - + 72 THEN - 51 + - + 82 * - 17 * 29 + + 73 + + + 2 WHEN 5 + - COUNT( * ) + + + 12 * + - 50 * - 84 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 69 * + + 89 * - + 63 * - CASE - 46 WHEN - + 72 THEN - 51 + - + 82 * - 17 * 29 + + 73 + + + 2 WHEN 5 + - COUNT ( * ) + + + 12 * + - 50 * - 84 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + + 79 * + 4
----
316

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT - + COUNT( * ) * + 31 col0
----
-31

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT - + COUNT ( * ) * + 31 col0
----
-31

query II rowsort
SELECT 37, 56 * + - 56 * - - 17 AS col2
----
37
-53312

query I rowsort
SELECT DISTINCT + 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL + + ( + 22 ) - COUNT( DISTINCT + 19 ) * + - 29 col2
----
51

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL + + ( + 22 ) - COUNT ( DISTINCT + 19 ) * + - 29 col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT DISTINCT CASE COUNT( * ) WHEN 70 THEN - MAX( ALL 83 ) WHEN - 31 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT CASE COUNT ( * ) WHEN 70 THEN - MAX ( ALL 83 ) WHEN - 31 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT 46 - 37 + + + MIN( ALL 93 )
----
102

skipif mysql # not compatible
query I rowsort label-3591
SELECT 46 - 37 + + + MIN ( ALL 93 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT - COUNT( * ) * MAX( DISTINCT + + ( - 76 ) ) * + - 98
----
-7448

skipif mysql # not compatible
query I rowsort label-3592
SELECT - COUNT ( * ) * MAX ( DISTINCT + + ( - 76 ) ) * + - 98
----
-7448

query I rowsort
SELECT - ( - 51 ) + + 21 AS col2
----
72

query II rowsort
SELECT DISTINCT - 95, 17 AS col2
----
-95
17

query I rowsort
SELECT + 55 + - 71 * + 87
----
-6122

query I rowsort
SELECT - - 15 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT + COUNT( * ) - - 22
----
23

skipif mysql # not compatible
query I rowsort label-3597
SELECT + COUNT ( * ) - - 22
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT - CAST( NULL AS SIGNED ) * 20 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT - CAST ( NULL AS INTEGER ) * 20 col2
----
NULL

query I rowsort
SELECT ALL - - 95
----
95

query I rowsort
SELECT 33 * - 73 AS col2
----
-2409

query I rowsort
SELECT + 10 col1
----
10

query I rowsort
SELECT ALL - 7 AS col1
----
-7

query I rowsort
SELECT ALL 87 + 97
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) / + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) / + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT DISTINCT 16 + - 56 * - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT 16 + - 56 * - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL COUNT( * ) + 14 + - - 34 + - + 64 * 35
----
-2191

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL COUNT ( * ) + 14 + - - 34 + - + 64 * 35
----
-2191

onlyif mysql # DIV for integer division: 
query I rowsort label-3607
SELECT ( + + 79 ) DIV - - ( 25 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3607
SELECT ( + + 79 ) / - - ( 25 ) AS col2
----
3

query I rowsort
SELECT ALL 51 + - 29
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT MAX( - 16 ) - + COALESCE ( - + 56, + 8 ) + + 41 - + 63 * - - ( 96 ) col1
----
-5967

skipif mysql # not compatible
query I rowsort label-3609
SELECT MAX ( - 16 ) - + COALESCE ( - + 56, + 8 ) + + 41 - + 63 * - - ( 96 ) col1
----
-5967

query II rowsort
SELECT ALL 45 * + 64, - 54 AS col0
----
2880
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT + 71 * + 35 + + MIN( 85 ) AS col2
----
2570

skipif mysql # not compatible
query I rowsort label-3611
SELECT + 71 * + 35 + + MIN ( 85 ) AS col2
----
2570

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT + SUM( 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3612
SELECT + SUM ( 20 ) AS col0
----
20

query II rowsort
SELECT 12 * - + 4, 38 AS col1
----
-48
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT DISTINCT - 57 - - - NULLIF ( + 75, + CAST( NULL AS SIGNED ) ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT - 57 - - - NULLIF ( + 75, + CAST ( NULL AS INTEGER ) ) AS col2
----
-132

query I rowsort
SELECT ALL + - 43 * 97 * + 71 + 55 * + - 73
----
-300156

query I rowsort
SELECT ALL 50 - + + 93 AS col2
----
-43

query I rowsort
SELECT DISTINCT - 40 AS col1
----
-40

query I rowsort
SELECT ALL + - 51 * 73
----
-3723

query I rowsort
SELECT ALL + 17 col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3620
SELECT COUNT( * ) - + 20 + ( - + 27 ) DIV - 41 * - 72 DIV - - 37 + + + 98 * 4 AS col0
----
373

skipif mysql # not compatible
query I rowsort label-3620
SELECT COUNT ( * ) - + 20 + ( - + 27 ) / - 41 * - 72 / - - 37 + + + 98 * 4 AS col0
----
373

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - + 88 + 72 * + NULLIF ( COUNT( * ), 24 / + 11 )
----
-16

skipif mysql # not compatible
query I rowsort label-3621
SELECT - + 88 + 72 * + NULLIF ( COUNT ( * ), 24 / + 11 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3622
SELECT ALL + + 76 - - 60 + + COALESCE ( - 34, - 58 DIV NULLIF ( + - 92, - CASE WHEN - 4 IN ( + - 43, COALESCE ( 35, - 14 DIV - + 71 * + MAX( + + 69 ) + + 97 * MIN( DISTINCT + 80 ) ), - AVG ( 61 ), + + 73 ) THEN - COUNT( * ) WHEN 73 IS NULL THEN - 62 END + + - 90 + - 47 ) * - + 12 ) * + 33 * 39 AS col2, + 99 AS col0
----
-43622
99

skipif mysql # not compatible
query II rowsort label-3622
SELECT ALL + + 76 - - 60 + + COALESCE ( - 34, - 58 / NULLIF ( + - 92, - CASE WHEN - 4 IN ( + - 43, COALESCE ( 35, - 14 / - + 71 * + MAX ( + + 69 ) + + 97 * MIN ( DISTINCT + 80 ) ), - AVG ( 61 ), + + 73 ) THEN - COUNT ( * ) WHEN 73 IS NULL THEN - 62 END + + - 90 + - 47 ) * - + 12 ) * + 33 * 39 AS col2, + 99 AS col0
----
-43622
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT - 69 DIV + - ( + 83 ) * - + 24 + 14 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 69 / + - ( + 83 ) * - + 24 + 14 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3624
SELECT ALL 39 * + - CAST( - 10 AS SIGNED ) * + 89 * - - COALESCE ( + - 29, - - 6 ) - 69, COUNT( * ) AS col1
----
-1006659
1

skipif mysql # not compatible
query II rowsort label-3624
SELECT ALL 39 * + - CAST ( - 10 AS INTEGER ) * + 89 * - - COALESCE ( + - 29, - - 6 ) - 69, COUNT ( * ) AS col1
----
-1006659
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL - MAX( DISTINCT + + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - MAX ( DISTINCT + + 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT - MIN( ALL + 37 ) * + ( COUNT( * ) ) + + 35 + + COUNT( * ) * 5
----
3

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT - MIN ( ALL + 37 ) * + ( COUNT ( * ) ) + + 35 + + COUNT ( * ) * 5
----
3

query I rowsort
SELECT DISTINCT + 35 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT - - COALESCE ( + + COALESCE ( + 26, + + 28, - 45 + - COUNT( * ) - - 85 ), - 31, 96 / + 63 ) + CAST( NULL AS SIGNED ) + + COUNT( * ) / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT - - COALESCE ( + + COALESCE ( + 26, + + 28, - 45 + - COUNT ( * ) - - 85 ), - 31, 96 / + 63 ) + CAST ( NULL AS INTEGER ) + + COUNT ( * ) / - 15
----
NULL

query I rowsort
SELECT ALL ( - - 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT - 72 + + 78 * COUNT( DISTINCT + 28 )
----
6

skipif mysql # not compatible
query I rowsort label-3630
SELECT - 72 + + 78 * COUNT ( DISTINCT + 28 )
----
6

onlyif mysql # aggregate syntax: 
query III rowsort label-3631
SELECT - + ( 75 ) AS col1, + 19 * - - 25 * + - 29, COUNT( * ) AS col1
----
-75
-13775
1

skipif mysql # not compatible
query III rowsort label-3631
SELECT - + ( 75 ) AS col1, + 19 * - - 25 * + - 29, COUNT ( * ) AS col1
----
-75
-13775
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT + COUNT( ALL + - 47 ) * - + 41 + - 38 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3632
SELECT + COUNT ( ALL + - 47 ) * - + 41 + - 38 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT - 99 * - + COUNT( * ) * - NULLIF ( + + CAST( NULL AS SIGNED ), + - 18 ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 99 * - + COUNT ( * ) * - NULLIF ( + + CAST ( NULL AS INTEGER ), + - 18 ) * + 89
----
NULL

query I rowsort
SELECT NULLIF ( + 7, + - 21 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3635
SELECT ALL + NULLIF ( 1, - + 27 ) * + COUNT( + 9 ) + - 47 - + 36 + + 24 + - 33 * - 79 * + 55, 95 AS col0
----
143327
95

skipif mysql # not compatible
query II rowsort label-3635
SELECT ALL + NULLIF ( 1, - + 27 ) * + COUNT ( + 9 ) + - 47 - + 36 + + 24 + - 33 * - 79 * + 55, 95 AS col0
----
143327
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3636
SELECT ALL NULLIF ( + 84, + - COUNT( * ) ) * + 78 * + 3 + - + 63 DIV + 63 DIV + + COUNT( + - 23 )
----
19655

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL NULLIF ( + 84, + - COUNT ( * ) ) * + 78 * + 3 + - + 63 / + 63 / + + COUNT ( + - 23 )
----
19655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT ALL CAST( + COALESCE ( + ( 42 ), - - COUNT( * ), + COUNT( * ) / - 43 ) AS SIGNED ) * COUNT( * ) + 70 col2
----
112

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL CAST ( + COALESCE ( + ( 42 ), - - COUNT ( * ), + COUNT ( * ) / - 43 ) AS INTEGER ) * COUNT ( * ) + 70 col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT SUM( + 47 ) * + 66 + 29 + + - 30
----
3101

skipif mysql # not compatible
query I rowsort label-3638
SELECT SUM ( + 47 ) * + 66 + 29 + + - 30
----
3101

onlyif mysql # aggregate syntax: 
query II rowsort label-3639
SELECT ALL 74 * + 32 + + COUNT( * ), - 9 * 52 AS col2
----
2369
-468

skipif mysql # not compatible
query II rowsort label-3639
SELECT ALL 74 * + 32 + + COUNT ( * ), - 9 * 52 AS col2
----
2369
-468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3640
SELECT DISTINCT 43 * COUNT( * ) + - 17 DIV - 18 + 15 col0
----
58

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT 43 * COUNT ( * ) + - 17 / - 18 + 15 col0
----
58

query I rowsort
SELECT DISTINCT + 19 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3642
SELECT NULLIF ( 37, - - 86 * CASE - 71 WHEN - 66 + 80 + - CASE - 9 WHEN 33 THEN + 35 WHEN 51 + - CAST( NULL AS SIGNED ) THEN - - SUM( ALL 45 ) ELSE 97 END * MIN( DISTINCT + 42 ) THEN - - 83 ELSE NULL END * - 98 )
----
37

skipif mysql # not compatible
query I rowsort label-3642
SELECT NULLIF ( 37, - - 86 * CASE - 71 WHEN - 66 + 80 + - CASE - 9 WHEN 33 THEN + 35 WHEN 51 + - CAST ( NULL AS INTEGER ) THEN - - SUM ( ALL 45 ) ELSE 97 END * MIN ( DISTINCT + 42 ) THEN - - 83 ELSE NULL END * - 98 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT + SUM( ALL + 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3643
SELECT + SUM ( ALL + 39 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT + 92 + - MAX( ALL - + 18 ) - + 63 + + 86 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-3644
SELECT + 92 + - MAX ( ALL - + 18 ) - + 63 + + 86 AS col0
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3645
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + COALESCE ( + 61, + - 59 )
----
NULL
61

skipif mysql # not compatible
query II rowsort label-3645
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + COALESCE ( + 61, + - 59 )
----
NULL
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3646
SELECT ALL + COUNT( * ) AS col1, 10
----
1
10

skipif mysql # not compatible
query II rowsort label-3646
SELECT ALL + COUNT ( * ) AS col1, 10
----
1
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3647
SELECT + COUNT( * ) AS col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-3647
SELECT + COUNT ( * ) AS col1, - COUNT ( * )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT COUNT( - + 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3648
SELECT COUNT ( - + 29 ) AS col0
----
1

query I rowsort
SELECT ALL 95 * - 93
----
-8835

query I rowsort
SELECT DISTINCT + - 99
----
-99

query I rowsort
SELECT - ( + 7 ) AS col1
----
-7

query II rowsort
SELECT - 43, 36 AS col1
----
-43
36

query II rowsort
SELECT ALL 55 AS col0, 88 * + 55
----
55
4840

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL + NULLIF ( COUNT( * ), 51 ) * - 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + NULLIF ( COUNT ( * ), 51 ) * - 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT + 40 * - + MAX( DISTINCT 88 ) + 89
----
-3431

skipif mysql # not compatible
query I rowsort label-3655
SELECT + 40 * - + MAX ( DISTINCT 88 ) + 89
----
-3431

query II rowsort
SELECT DISTINCT 38, - 15 AS col2
----
38
-15

query II rowsort
SELECT - - 6 AS col2, 63
----
6
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL + MAX( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL + MAX ( 55 )
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3659
SELECT - + 52 AS col2, 0 - - + 49 + + 97 DIV + - 77 col1
----
-52
48

skipif mysql # not compatible
query II rowsort label-3659
SELECT - + 52 AS col2, 0 - - + 49 + + 97 / + - 77 col1
----
-52
48

query I rowsort
SELECT DISTINCT - ( - 9 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL CASE - - CAST( NULL AS SIGNED ) WHEN - COALESCE ( + + 32, + - COALESCE ( - 76, - 46 * + CAST( 10 AS SIGNED ) + + 12 + 9 + + + AVG ( - 1 ) - ( - COUNT( * ) ) / - 31 ) / - AVG ( ALL - + 91 ) ) + 74 + - 93 * + - 17 THEN + + 71 ELSE + 48 END
----
48

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL CASE - - CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + + 32, + - COALESCE ( - 76, - 46 * + CAST ( 10 AS INTEGER ) + + 12 + 9 + + + AVG ( - 1 ) - ( - COUNT ( * ) ) / - 31 ) / - AVG ( ALL - + 91 ) ) + 74 + - 93 * + - 17 THEN + + 71 ELSE + 48 END
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT + 88 * - + SUM( DISTINCT - - 31 ) * + 88 AS col1
----
-240064

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + 88 * - + SUM ( DISTINCT - - 31 ) * + 88 AS col1
----
-240064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3663
SELECT + - SUM( DISTINCT + + 6 ) * - - COALESCE ( - 22, - - COUNT( * ) + + - CASE - 96 WHEN + - 44 + COUNT( * ) THEN - ( - - COUNT( * ) ) * + 93 + - COUNT( * ) WHEN - + 89 * + + 42 THEN NULL ELSE NULL END * + + 19 + - CAST( NULL AS SIGNED ) * 42 * + 68 * - - 33 ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-3663
SELECT + - SUM ( DISTINCT + + 6 ) * - - COALESCE ( - 22, - - COUNT ( * ) + + - CASE - 96 WHEN + - 44 + COUNT ( * ) THEN - ( - - COUNT ( * ) ) * + 93 + - COUNT ( * ) WHEN - + 89 * + + 42 THEN NULL ELSE NULL END * + + 19 + - CAST ( NULL AS INTEGER ) * 42 * + 68 * - - 33 ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT ALL 28 AS col1, MIN( ALL 12 ) AS col2
----
28
12

skipif mysql # not compatible
query II rowsort label-3664
SELECT ALL 28 AS col1, MIN ( ALL 12 ) AS col2
----
28
12

query II rowsort
SELECT DISTINCT + 4 AS col1, + 14 AS col2
----
4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT + COALESCE ( - - 69, + + 11 ) * + - MAX( + 84 )
----
-5796

skipif mysql # not compatible
query I rowsort label-3666
SELECT + COALESCE ( - - 69, + + 11 ) * + - MAX ( + 84 )
----
-5796

query I rowsort
SELECT ALL 12 col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3668
SELECT - 26 + - CASE - + 5 WHEN 17 + 91 * CAST( + CASE + 14 WHEN + - COUNT( * ) THEN NULL ELSE 58 END AS SIGNED ) THEN + ( 53 ) / - 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT - 26 + - CASE - + 5 WHEN 17 + 91 * CAST ( + CASE + 14 WHEN + - COUNT ( * ) THEN NULL ELSE 58 END AS INTEGER ) THEN + ( 53 ) / - 98 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3669
SELECT - 70 DIV MIN( DISTINCT + + 3 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3669
SELECT - 70 / MIN ( DISTINCT + + 3 ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT ALL COUNT( * ) DIV - + 25 + + ( - 93 ) - + + ( - 28 ) + + 81 * + ( - 98 )
----
-8003

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL COUNT ( * ) / - + 25 + + ( - 93 ) - + + ( - 28 ) + + 81 * + ( - 98 )
----
-8003

query I rowsort
SELECT + 16 * + 84
----
1344

query I rowsort
SELECT - CASE + 49 WHEN + + 59 + + + 43 THEN + 36 / + 4 + ( 74 ) END + - + NULLIF ( - 50, 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + COUNT( ALL - - 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3673
SELECT + COUNT ( ALL - - 34 ) AS col2
----
1

query I rowsort
SELECT ALL + NULLIF ( - 39, - 1 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3675
SELECT DISTINCT 82 DIV + 91 + - - 40 + - + COUNT( + + 87 ) AS col1, ( - 29 )
----
39
-29

skipif mysql # not compatible
query II rowsort label-3675
SELECT DISTINCT 82 / + 91 + - - 40 + - + COUNT ( + + 87 ) AS col1, ( - 29 )
----
39
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT + NULLIF ( - 47, + 42 * + 23 + - + ( MIN( + 86 ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-3676
SELECT + NULLIF ( - 47, + 42 * + 23 + - + ( MIN ( + 86 ) ) )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT - 4 - + COUNT( + CAST( - 49 AS SIGNED ) ) * - 61 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 4 - + COUNT ( + CAST ( - 49 AS INTEGER ) ) * - 61 AS col2
----
57

query I rowsort
SELECT + 75 * 69 - + 2 AS col1
----
5173

query I rowsort
SELECT ALL + 67 col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL + 48 * + CASE - 24 WHEN + 46 THEN + 11 WHEN - 54 / - ( + + 18 ) + - - 89 + SUM( + + 25 ) THEN 82 * - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + 48 * + CASE - 24 WHEN + 46 THEN + 11 WHEN - 54 / - ( + + 18 ) + - - 89 + SUM ( + + 25 ) THEN 82 * - 21 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3681
SELECT ( - 40 ) AS col1, 51 * + - CAST( NULL AS SIGNED )
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-3681
SELECT ( - 40 ) AS col1, 51 * + - CAST ( NULL AS INTEGER )
----
-40
NULL

query I rowsort
SELECT ALL - 38 * 53 - - - 80
----
-2094

query I rowsort
SELECT + 50 * - 54 * + 21
----
-56700

query I rowsort
SELECT ALL + - 32
----
-32

query I rowsort
SELECT + 76 * 95
----
7220

onlyif mysql # aggregate syntax: 
query II rowsort label-3686
SELECT ALL - MIN( - 30 ) AS col0, - 20
----
30
-20

skipif mysql # not compatible
query II rowsort label-3686
SELECT ALL - MIN ( - 30 ) AS col0, - 20
----
30
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT + 24 DIV 65 * - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT + 24 / 65 * - 65 AS col0
----
0

query I rowsort
SELECT 44 + 26 AS col0
----
70

query I rowsort
SELECT + + 88 AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3690
SELECT DISTINCT 73 DIV - - COUNT( * ), 96 DIV + 29 + 44 AS col2
----
73
47

skipif mysql # not compatible
query II rowsort label-3690
SELECT DISTINCT 73 / - - COUNT ( * ), 96 / + 29 + 44 AS col2
----
73
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT 90 * - CASE COALESCE ( + 79, + 42 + + MIN( ALL + + 16 ) ) WHEN 37 THEN - - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT 90 * - CASE COALESCE ( + 79, + 42 + + MIN ( ALL + + 16 ) ) WHEN 37 THEN - - 18 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3692
SELECT COALESCE ( 28, - 95 DIV - ( 79 ) * 53 ) + + 28 + + 52
----
108

skipif mysql # not compatible
query I rowsort label-3692
SELECT COALESCE ( 28, - 95 / - ( 79 ) * 53 ) + + 28 + + 52
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3693
SELECT ALL - 91 + - 34 - + - 90 DIV - + COUNT( * ), 44 * 8 AS col1
----
-215
352

skipif mysql # not compatible
query II rowsort label-3693
SELECT ALL - 91 + - 34 - + - 90 / - + COUNT ( * ), 44 * 8 AS col1
----
-215
352

query I rowsort
SELECT + 65 + 22 + - 91 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT DISTINCT - - 42 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - - 42 / - 40
----
-1

query I rowsort
SELECT ( + 28 ) + - 54 AS col0
----
-26

query I rowsort
SELECT DISTINCT - 72 AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3698
SELECT ALL 57 + 56 DIV 92 * - - 2 AS col0, + COUNT( * ) - - + 78 * + 76
----
57
5929

skipif mysql # not compatible
query II rowsort label-3698
SELECT ALL 57 + 56 / 92 * - - 2 AS col0, + COUNT ( * ) - - + 78 * + 76
----
57
5929

query I rowsort
SELECT ALL 62 + 97 col1
----
159

query I rowsort
SELECT - 57 AS col0
----
-57

query I rowsort
SELECT + ( 19 ) * 14
----
266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) * - + 81 + - 13 * + + NULLIF ( COUNT( * ), - COUNT( * ) * - 5 ), - - 84 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3702
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) * - + 81 + - 13 * + + NULLIF ( COUNT ( * ), - COUNT ( * ) * - 5 ), - - 84 ) AS col2
----
94

query I rowsort
SELECT 82 + 30
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3704
SELECT ALL + 65 + - CASE + 5 WHEN - 92 THEN - + 6 WHEN - ( - 8 ) + + 0 + - 43 * + - COUNT( * ) * 79 * - 37 * 14 THEN CAST( NULL AS SIGNED ) * 15 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + 65 + - CASE + 5 WHEN - 92 THEN - + 6 WHEN - ( - 8 ) + + 0 + - 43 * + - COUNT ( * ) * 79 * - 37 * 14 THEN CAST ( NULL AS INTEGER ) * 15 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT ALL + 54 * CAST( 74 AS SIGNED ) col0
----
3996

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + 54 * CAST ( 74 AS INTEGER ) col0
----
3996

query I rowsort
SELECT ALL - 48 + 21 + - + 33
----
-60

query I rowsort
SELECT DISTINCT 46 + - - 60
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3708
SELECT DISTINCT 23 + - 54 * + CAST( + - AVG ( ALL + CASE 36 WHEN + ( CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) THEN + - 73 END ) AS SIGNED ) * - 7 + - 43 - + 43 * + - 22 + - + 91 + - + 5 * + MIN( + 1 ) / + COUNT( * ) * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT 23 + - 54 * + CAST ( + - AVG ( ALL + CASE 36 WHEN + ( CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN + - 73 END ) AS INTEGER ) * - 7 + - 43 - + 43 * + - 22 + - + 91 + - + 5 * + MIN ( + 1 ) / + COUNT ( * ) * 15 AS col2
----
NULL

query II rowsort
SELECT 71 + + 84 + 41 AS col2, 76
----
196
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT - 33 + - - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - 33 + - - COUNT ( * )
----
-32

query I rowsort
SELECT 61 * - 26 AS col1
----
-1586

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT 96 * + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-3712
SELECT 96 * + COUNT ( * )
----
96

query I rowsort
SELECT 67 + - + 20 + + 60 * 89
----
5387

query I rowsort
SELECT DISTINCT 22 - + - 59 AS col0
----
81

query II rowsort
SELECT 19 AS col0, 73
----
19
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT ALL - COUNT( * ) * - 25 * + ( - 84 ) AS col1
----
-2100

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL - COUNT ( * ) * - 25 * + ( - 84 ) AS col1
----
-2100

query I rowsort
SELECT ALL 68 * - 43
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT 86 - - + 27 + - MIN( - 18 ) col1
----
131

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT 86 - - + 27 + - MIN ( - 18 ) col1
----
131

query I rowsort
SELECT ALL - ( + 83 )
----
-83

query I rowsort
SELECT DISTINCT - ( 4 ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3721
SELECT DISTINCT SUM( DISTINCT + CAST( - 60 AS SIGNED ) ) * - COALESCE ( + 94, 35 * - 36 DIV + COUNT( * ) ) col2
----
5640

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT SUM ( DISTINCT + CAST ( - 60 AS INTEGER ) ) * - COALESCE ( + 94, 35 * - 36 / + COUNT ( * ) ) col2
----
5640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3722
SELECT DISTINCT - CASE + 38 WHEN - + COALESCE ( + 74, 12 ) + - 67 * 31 / + + 64 THEN - 39 ELSE NULL END / + 78 / - + CASE - 77 WHEN CASE + 74 WHEN - MAX( ALL + 64 ) THEN - 63 + COUNT( * ) END THEN 29 / 16 * COALESCE ( 70, + 38 + - ( + 5 ) * - COUNT( * ), - 69 - 74 * - 8 ) * - - 66 + + 58 / - - 9 + - CAST( - ( + CASE CAST( - COUNT( * ) AS SIGNED ) WHEN - 69 * 96 THEN - 2 * - COALESCE ( - - 77, - 32 * - + 43 - + 40 + + 99 - MIN( DISTINCT 88 ) + - 78 + - + 34 + - 76 * + NULLIF ( + 18, - 99 + + 81 ) ) WHEN - 46 THEN 10 / ( 14 ) + CAST( + 97 AS SIGNED ) * 89 END ) AS SIGNED ) + 66 WHEN - 45 * COUNT( ALL 95 ) THEN NULL WHEN - 45 THEN NULL END * + 4 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT - CASE + 38 WHEN - + COALESCE ( + 74, 12 ) + - 67 * 31 / + + 64 THEN - 39 ELSE NULL END / + 78 / - + CASE - 77 WHEN CASE + 74 WHEN - MAX ( ALL + 64 ) THEN - 63 + COUNT ( * ) END THEN 29 / 16 * COALESCE ( 70, + 38 + - ( + 5 ) * - COUNT ( * ), - 69 - 74 * - 8 ) * - - 66 + + 58 / - - 9 + - CAST ( - ( + CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN - 69 * 96 THEN - 2 * - COALESCE ( - - 77, - 32 * - + 43 - + 40 + + 99 - MIN ( DISTINCT 88 ) + - 78 + - + 34 + - 76 * + NULLIF ( + 18, - 99 + + 81 ) ) WHEN - 46 THEN 10 / ( 14 ) + CAST ( + 97 AS INTEGER ) * 89 END ) AS INTEGER ) + 66 WHEN - 45 * COUNT ( ALL 95 ) THEN NULL WHEN - 45 THEN NULL END * + 4 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 37 + - 51 AS col2
----
-14

query I rowsort
SELECT 11 * + 13
----
143

query I rowsort
SELECT 47 + + CASE - 51 WHEN 78 THEN 3 WHEN + 77 * 75 THEN NULL ELSE + 90 END * + 13
----
1217

query I rowsort
SELECT DISTINCT - 99 * 61 AS col2
----
-6039

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT ALL + COALESCE ( 92, 81 - 43, + 33 * - 96 ) + + SUM( ALL - 97 ) * 53
----
-5049

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + COALESCE ( 92, 81 - 43, + 33 * - 96 ) + + SUM ( ALL - 97 ) * 53
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL - SUM( ALL 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL - SUM ( ALL 52 ) AS col0
----
-52

query I rowsort
SELECT ALL - 81 + 27 * + 30 col2
----
729

query I rowsort
SELECT 37 * 79
----
2923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 54 * - 88
----
-4752

query I rowsort
SELECT - 38 * + 69 - + ( - 39 + + 2 * 92 ) AS col1
----
-2767

query I rowsort
SELECT ALL - ( - 19 ) AS col2
----
19

query I rowsort
SELECT ALL - 81 + - CASE - 82 WHEN 53 THEN 40 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 27 * 2
----
54

query I rowsort
SELECT DISTINCT - 63 + 40
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT 46 DIV - 7
----
-6

skipif mysql # not compatible
query I rowsort label-3738
SELECT 46 / - 7
----
-6

query I rowsort
SELECT 81 * + 51
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT 52 * - COUNT( * ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-3740
SELECT 52 * - COUNT ( * ) col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT ALL 88 DIV 25 col0
----
3

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL 88 / 25 col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT ALL 47 + - 78 DIV COALESCE ( 4, 57 )
----
28

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL 47 + - 78 / COALESCE ( 4, 57 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3743
SELECT CASE - ( 18 ) WHEN - 66 THEN CASE - 14 WHEN ( - COUNT( * ) ) THEN COUNT( * ) WHEN 3 + - CAST( - 27 AS SIGNED ) * 25 THEN + 35 * - 74 ELSE + 56 * - CASE 48 / + 76 WHEN 55 THEN NULL ELSE + 26 END END + - ( - 53 + COALESCE ( - 63, 48 * 73 + 43 * 18 ) ) * - 59 WHEN 99 THEN 40 END - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT CASE - ( 18 ) WHEN - 66 THEN CASE - 14 WHEN ( - COUNT ( * ) ) THEN COUNT ( * ) WHEN 3 + - CAST ( - 27 AS INTEGER ) * 25 THEN + 35 * - 74 ELSE + 56 * - CASE 48 / + 76 WHEN 55 THEN NULL ELSE + 26 END END + - ( - 53 + COALESCE ( - 63, 48 * 73 + 43 * 18 ) ) * - 59 WHEN 99 THEN 40 END - - 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT 71 DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-3744
SELECT 71 / 36
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + 46 + - MIN( DISTINCT - 11 )
----
57

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + 46 + - MIN ( DISTINCT - 11 )
----
57

query I rowsort
SELECT ALL 41 * 18
----
738

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT ALL + 37 DIV + 17 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL + 37 / + 17 AS col2
----
2

query I rowsort
SELECT ALL 87 * 66 AS col1
----
5742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3749
SELECT 61 + COUNT( * ) DIV - NULLIF ( - 65, 30 + + 14 )
----
61

skipif mysql # not compatible
query I rowsort label-3749
SELECT 61 + COUNT ( * ) / - NULLIF ( - 65, 30 + + 14 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT CASE 12 WHEN - 32 THEN - COUNT( * ) + + 48 * + 41 END / 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT CASE 12 WHEN - 32 THEN - COUNT ( * ) + + 48 * + 41 END / 67 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT NULLIF ( + 14, + 82 ) + 15 DIV - 24 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3751
SELECT NULLIF ( + 14, + 82 ) + 15 / - 24 AS col2
----
14

query I rowsort
SELECT DISTINCT 22 - 51 AS col2
----
-29

query I rowsort
SELECT ALL 81 * 43 AS col2
----
3483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3754
SELECT 12 + SUM( 40 ) DIV 59
----
12

skipif mysql # not compatible
query I rowsort label-3754
SELECT 12 + SUM ( 40 ) / 59
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT - COUNT( ALL - CASE 1 WHEN - 97 THEN + ( - 57 ) WHEN + 2 THEN NULL ELSE - 80 END )
----
-1

skipif mysql # not compatible
query I rowsort label-3755
SELECT - COUNT ( ALL - CASE 1 WHEN - 97 THEN + ( - 57 ) WHEN + 2 THEN NULL ELSE - 80 END )
----
-1

query I rowsort
SELECT DISTINCT 86 - 90 col0
----
-4

query I rowsort
SELECT ALL 45 * 22 AS col1
----
990

query I rowsort
SELECT DISTINCT 80 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3759
SELECT ALL - MAX( CAST( 84 AS SIGNED ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL - MAX ( CAST ( 84 AS INTEGER ) ) AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT CASE 23 WHEN + 53 + 35 THEN - 71 WHEN CASE 42 WHEN 94 THEN - NULLIF ( 6, 81 * - ( + 93 ) ) + 22 WHEN CAST( NULL AS SIGNED ) + 11 * NULLIF ( 86 - 72, COALESCE ( + 26, 3, - 93 ) ) THEN NULL WHEN - ( + CASE COUNT( * ) WHEN 56 * - 97 + + COUNT( * ) * + 48 THEN + CASE - 58 WHEN + 97 + COUNT( * ) THEN NULL WHEN 46 THEN - 53 ELSE NULL END * + 32 WHEN - 87 THEN + SUM( ALL - 26 ) ELSE 90 END ) + + 45 THEN - COUNT( * ) END + 82 THEN COUNT( * ) ELSE 40 END
----
40

skipif mysql # not compatible
query I rowsort label-3760
SELECT CASE 23 WHEN + 53 + 35 THEN - 71 WHEN CASE 42 WHEN 94 THEN - NULLIF ( 6, 81 * - ( + 93 ) ) + 22 WHEN CAST ( NULL AS INTEGER ) + 11 * NULLIF ( 86 - 72, COALESCE ( + 26, 3, - 93 ) ) THEN NULL WHEN - ( + CASE COUNT ( * ) WHEN 56 * - 97 + + COUNT ( * ) * + 48 THEN + CASE - 58 WHEN + 97 + COUNT ( * ) THEN NULL WHEN 46 THEN - 53 ELSE NULL END * + 32 WHEN - 87 THEN + SUM ( ALL - 26 ) ELSE 90 END ) + + 45 THEN - COUNT ( * ) END + 82 THEN COUNT ( * ) ELSE 40 END
----
40

query I rowsort
SELECT + 67 * - 97 - + 40
----
-6539

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT 86 * MIN( DISTINCT 68 ) AS col2
----
5848

skipif mysql # not compatible
query I rowsort label-3762
SELECT 86 * MIN ( DISTINCT 68 ) AS col2
----
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT COUNT( * ) * 78
----
78

skipif mysql # not compatible
query I rowsort label-3763
SELECT COUNT ( * ) * 78
----
78

query I rowsort
SELECT CASE 44 WHEN COALESCE ( 52, 6 / - ( 66 ) + + 33 ) THEN NULL ELSE + 40 END
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT DISTINCT 32 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT 32 / 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3766
SELECT CASE + 68 WHEN - 76 THEN - COUNT( * ) * CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT CASE + 68 WHEN - 76 THEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL COUNT( DISTINCT - 66 ) * + 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL COUNT ( DISTINCT - 66 ) * + 50 AS col1
----
50

query I rowsort
SELECT + 73 * 81 AS col2
----
5913

query I rowsort
SELECT - - 5 * 78 AS col1
----
390

query I rowsort
SELECT + 6 - 27
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL + - 48 * ( COUNT( * ) ) + 20 * + 67 col2
----
1292

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL + - 48 * ( COUNT ( * ) ) + 20 * + 67 col2
----
1292

query I rowsort
SELECT + 21 * 12 - 81 * 78
----
-6066

query I rowsort
SELECT ALL 94 * + 86
----
8084

query I rowsort
SELECT + 33 * 39
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL + SUM( NULLIF ( 84, - 28 + - 29 * + ( 36 * - 81 - - ( 36 ) ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + SUM ( NULLIF ( 84, - 28 + - 29 * + ( 36 * - 81 - - ( 36 ) ) ) )
----
84

query I rowsort
SELECT ALL + - 77 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT - COALESCE ( - ( 39 ), - 68 * - COUNT( * ) + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ), + 92 + - SUM( 34 ) ) * - 4 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-3777
SELECT - COALESCE ( - ( 39 ), - 68 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ), + 92 + - SUM ( 34 ) ) * - 4 AS col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL - 36 * 76 + + AVG ( DISTINCT + 82 ) / + CASE 79 * - 10 WHEN - 36 + 95 THEN NULL WHEN 33 / 29 THEN COUNT( ALL 80 ) - 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - 36 * 76 + + AVG ( DISTINCT + 82 ) / + CASE 79 * - 10 WHEN - 36 + 95 THEN NULL WHEN 33 / 29 THEN COUNT ( ALL 80 ) - 35 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT + - MAX( ALL 11 ) + - COUNT( * ) * 81 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3779
SELECT + - MAX ( ALL 11 ) + - COUNT ( * ) * 81 AS col2
----
-92

query I rowsort
SELECT - + 78 - 30 AS col1
----
-108

query I rowsort
SELECT + - 9 + 41 * + 46 AS col1
----
1877

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL COALESCE ( - COUNT( * ), MAX( ALL + ( 17 ) ), + 24 + - 94 ) * + 25 + + ( 59 )
----
34

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL COALESCE ( - COUNT ( * ), MAX ( ALL + ( 17 ) ), + 24 + - 94 ) * + 25 + + ( 59 )
----
34

query I rowsort
SELECT - + 34 + - 74 * + 37
----
-2772

query I rowsort
SELECT + + ( 35 )
----
35

query I rowsort
SELECT DISTINCT + 70 + 12 * 22
----
334

query I rowsort
SELECT ALL - 48 + 88 AS col0
----
40

query I rowsort
SELECT - 49 + + ( 76 )
----
27

query I rowsort
SELECT - + 82 * - 4 AS col0
----
328

query I rowsort
SELECT ALL NULLIF ( - - 77, - 19 + 18 )
----
77

query I rowsort
SELECT DISTINCT + 33 - + + 25
----
8

query I rowsort
SELECT ALL NULLIF ( + - 32, 70 ) AS col1
----
-32

query I rowsort
SELECT - 58 col2
----
-58

query I rowsort
SELECT + 75 + - 47 * - 17
----
874

query I rowsort
SELECT ALL ( - + 78 ) AS col0
----
-78

query I rowsort
SELECT + 93 * 29 AS col0
----
2697

query I rowsort
SELECT ALL ( 25 )
----
25

query I rowsort
SELECT - 81 + - 56 AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL CASE + 16 WHEN - MAX( + 34 ) THEN + 13 ELSE 37 END
----
37

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL CASE + 16 WHEN - MAX ( + 34 ) THEN + 13 ELSE 37 END
----
37

query I rowsort
SELECT DISTINCT NULLIF ( - + 43, 1 / - 73 ) AS col1
----
-43

query I rowsort
SELECT DISTINCT CASE WHEN ( 67 ) > NULL THEN 45 END * + 43 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT + 9 DIV NULLIF ( 6, ( ( 82 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3801
SELECT + 9 / NULLIF ( 6, ( ( 82 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3802
SELECT - CAST( NULL AS SIGNED ) + + MIN( 15 ) + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT - CAST ( NULL AS INTEGER ) + + MIN ( 15 ) + + 50
----
NULL

query I rowsort
SELECT + 27 - - - 3 AS col0
----
24

query I rowsort
SELECT DISTINCT COALESCE ( - - 18, CASE 35 WHEN 0 THEN + 9 END, + 78 ) * 13 AS col0
----
234

query I rowsort
SELECT ALL 91 * - 66 * + 45 AS col1
----
-270270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT - 97 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT - 97 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + 3 + + SUM( + 43 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3807
SELECT + 3 + + SUM ( + 43 ) AS col0
----
46

query I rowsort
SELECT - ( 67 )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT CAST( + + 52 AS SIGNED ) col0
----
52

skipif mysql # not compatible
query I rowsort label-3809
SELECT CAST ( + + 52 AS INTEGER ) col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT ALL + 79 DIV - 13 + + 15
----
9

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + 79 / - 13 + + 15
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3811
SELECT DISTINCT + CAST( - 75 AS SIGNED ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3812
SELECT ALL + COUNT( * ) / - CASE CAST( + CASE 55 WHEN 41 + - COALESCE ( - CAST( NULL AS SIGNED ), 84 ) / 16 THEN NULLIF ( 0, + COUNT( * ) * - 92 ) + COUNT( * ) ELSE NULL END AS DECIMAL ) WHEN COUNT( * ) - - 11 THEN 4 END + 21 * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + COUNT ( * ) / - CASE CAST ( + CASE 55 WHEN 41 + - COALESCE ( - CAST ( NULL AS INTEGER ), 84 ) / 16 THEN NULLIF ( 0, + COUNT ( * ) * - 92 ) + COUNT ( * ) ELSE NULL END AS REAL ) WHEN COUNT ( * ) - - 11 THEN 4 END + 21 * 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT + - 48 + 12 + COUNT( * ) * - ( - 1 )
----
-35

skipif mysql # not compatible
query I rowsort label-3813
SELECT + - 48 + 12 + COUNT ( * ) * - ( - 1 )
----
-35

query I rowsort
SELECT DISTINCT + + 43
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT DISTINCT + - 17 DIV - 63 - - 65 + + 74 * - 6 AS col2
----
-379

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT + - 17 / - 63 - - 65 + + 74 * - 6 AS col2
----
-379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT CAST( + + 80 AS SIGNED ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3816
SELECT CAST ( + + 80 AS INTEGER ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3817
SELECT + + ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT + COUNT( * ) * + 42 - - 30 + + 87 * + 48 AS col1
----
4248

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT + COUNT ( * ) * + 42 - - 30 + + 87 * + 48 AS col1
----
4248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3819
SELECT + ( SUM( - 37 ) ) DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3819
SELECT + ( SUM ( - 37 ) ) / 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + MAX( 76 ) + 25 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3820
SELECT + MAX ( 76 ) + 25 AS col1
----
101

query I rowsort
SELECT + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL 10 * - 75 + + 34 + - COUNT( * ) AS col2
----
-717

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL 10 * - 75 + + 34 + - COUNT ( * ) AS col2
----
-717

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3823
SELECT ALL ( - CAST( + 69 AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL ( - CAST ( + 69 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 9 col0
----
9

query I rowsort
SELECT ALL + ( + + 74 ) col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT + + ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT + + ( - + COUNT ( * ) )
----
-1

query I rowsort
SELECT + 22 * + 61 - - 39 - 15
----
1366

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + + 36 - - + COUNT( * ) + + 70 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-3828
SELECT + + 36 - - + COUNT ( * ) + + 70 AS col2
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT - CAST( + 79 AS SIGNED ) * - 45
----
3555

skipif mysql # not compatible
query I rowsort label-3829
SELECT - CAST ( + 79 AS INTEGER ) * - 45
----
3555

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT CASE COUNT( * ) WHEN - ( - 89 ) * 75 THEN NULL WHEN - 6 THEN + COUNT( * ) * 89 WHEN 8 THEN NULL ELSE + 7 END
----
7

skipif mysql # not compatible
query I rowsort label-3830
SELECT CASE COUNT ( * ) WHEN - ( - 89 ) * 75 THEN NULL WHEN - 6 THEN + COUNT ( * ) * 89 WHEN 8 THEN NULL ELSE + 7 END
----
7

query I rowsort
SELECT DISTINCT ( - 5 )
----
-5

query I rowsort
SELECT ALL ( - - 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL MAX( ALL - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL MAX ( ALL - 5 ) AS col2
----
-5

query I rowsort
SELECT ALL ( + COALESCE ( 19, 10, + 66 ) ) AS col0
----
19

query I rowsort
SELECT - 40 - - 73 + + 9
----
42

query I rowsort
SELECT DISTINCT NULLIF ( - 71, 73 * - NULLIF ( 52 + + 46 * 48, 36 ) ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL + 84 * - - MIN( ALL + - 34 ) AS col0
----
-2856

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + 84 * - - MIN ( ALL + - 34 ) AS col0
----
-2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3838
SELECT - 33 * 1 DIV - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3838
SELECT - 33 * 1 / - COUNT ( * )
----
33

query I rowsort
SELECT ALL ( + + 62 )
----
62

query II rowsort
SELECT - 25 AS col2, 76 + 30 + 14 AS col1
----
-25
120

query I rowsort
SELECT 96 + 68 * - 3
----
-108

query I rowsort
SELECT ALL + ( 51 ) * 97
----
4947

query I rowsort
SELECT 2 * - - 70 * + 95 * 29 AS col2
----
385700

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT COUNT( * ) + 31 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3844
SELECT COUNT ( * ) + 31 AS col2
----
32

query I rowsort
SELECT 41 - 21 * + ( - 0 ) * 51 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT + 67 + - ( + + COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + 67 + - ( + + COUNT ( * ) ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT ALL - ( - ( - - 33 ) ) + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - ( - ( - - 33 ) ) + COUNT ( * )
----
34

query I rowsort
SELECT 30 + - - ( - 16 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT + ( - + COUNT( * ) ) + + - 35 + + 81
----
45

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT + ( - + COUNT ( * ) ) + + - 35 + + 81
----
45

query I rowsort
SELECT ALL + + ( - 67 ) + - + ( - 25 )
----
-42

query I rowsort
SELECT ALL + 33 * - 24 AS col1
----
-792

onlyif mysql # aggregate syntax: 
query II rowsort label-3852
SELECT 95 AS col0, + 11 + - - 47 - COUNT( * ) * 26
----
95
32

skipif mysql # not compatible
query II rowsort label-3852
SELECT 95 AS col0, + 11 + - - 47 - COUNT ( * ) * 26
----
95
32

query I rowsort
SELECT ALL - 22 + - 26 - 42
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT COUNT( * ) * + - 21 - 76
----
-97

skipif mysql # not compatible
query I rowsort label-3854
SELECT COUNT ( * ) * + - 21 - 76
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT + + MIN( DISTINCT - - NULLIF ( + ( 24 ), 66 + 87 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3855
SELECT + + MIN ( DISTINCT - - NULLIF ( + ( 24 ), 66 + 87 ) )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3856
SELECT + - 34, 95 + 1 + CAST( NULLIF ( 52, - 76 DIV COUNT( * ) ) AS SIGNED ) DIV COUNT( ALL 13 ) AS col1
----
-34
148

skipif mysql # not compatible
query II rowsort label-3856
SELECT + - 34, 95 + 1 + CAST ( NULLIF ( 52, - 76 / COUNT ( * ) ) AS INTEGER ) / COUNT ( ALL 13 ) AS col1
----
-34
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3857
SELECT - SUM( ALL - + 63 ) / - NULLIF ( 56, + 83 ) * + 25 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT - SUM ( ALL - + 63 ) / - NULLIF ( 56, + 83 ) * + 25 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT MAX( - 5 ) * + 81 * MIN( - 47 )
----
19035

skipif mysql # not compatible
query I rowsort label-3858
SELECT MAX ( - 5 ) * + 81 * MIN ( - 47 )
----
19035

query I rowsort
SELECT DISTINCT - + 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL - 73 * - 35 + - + 97 * - COUNT( * )
----
2652

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - 73 * - 35 + - + 97 * - COUNT ( * )
----
2652

query I rowsort
SELECT DISTINCT + 14 * 29 * + + 98
----
39788

onlyif mysql # aggregate syntax: 
query II rowsort label-3862
SELECT 39 AS col2, COUNT( + + 80 ) col2
----
39
1

skipif mysql # not compatible
query II rowsort label-3862
SELECT 39 AS col2, COUNT ( + + 80 ) col2
----
39
1

query I rowsort
SELECT ALL + 81 - + 12
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT 44 - + + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3864
SELECT 44 - + + COUNT ( * ) AS col1
----
43

query I rowsort
SELECT ALL + ( - 77 ) * - - 73 col1
----
-5621

query I rowsort
SELECT + 74 * - 97 * + 53 - - 0
----
-380434

query I rowsort
SELECT ALL - - ( - + 32 )
----
-32

query I rowsort
SELECT ALL - ( - 25 ) AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3869
SELECT + CAST( NULL AS SIGNED ), - CAST( - 69 AS SIGNED ) AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-3869
SELECT + CAST ( NULL AS INTEGER ), - CAST ( - 69 AS INTEGER ) AS col2
----
NULL
69

query I rowsort
SELECT ALL + 21 - 74
----
-53

query I rowsort
SELECT - 40 * 87 + 16 - + 52 * + 54 col1
----
-6272

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3872
SELECT ALL - - 15, - COALESCE ( - MIN( 75 ), - 0 ) DIV ( 59 * 1 ) AS col2
----
15
1

skipif mysql # not compatible
query II rowsort label-3872
SELECT ALL - - 15, - COALESCE ( - MIN ( 75 ), - 0 ) / ( 59 * 1 ) AS col2
----
15
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3873
SELECT + ( - 94 ) * 75 + CAST( NULL AS DECIMAL ) / + 12 + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT + ( - 94 ) * 75 + CAST ( NULL AS REAL ) / + 12 + 65 AS col0
----
NULL

query I rowsort
SELECT - 68 - - 83 * 25 AS col0
----
2007

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3875
SELECT ALL - 3, CAST( ( 26 ) AS SIGNED ) AS col2
----
-3
26

skipif mysql # not compatible
query II rowsort label-3875
SELECT ALL - 3, CAST ( ( 26 ) AS INTEGER ) AS col2
----
-3
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + COUNT( * ) * 80 * + ( + 15 ) + - 34
----
1166

skipif mysql # not compatible
query I rowsort label-3876
SELECT + COUNT ( * ) * 80 * + ( + 15 ) + - 34
----
1166

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT 62 + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3877
SELECT 62 + COUNT ( * )
----
63

query II rowsort
SELECT ALL 58 * + 22, 95 AS col0
----
1276
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT ALL 70 DIV + ( + - CASE 90 WHEN 31 THEN NULL ELSE ( + 75 ) DIV + 58 END ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL 70 / + ( + - CASE 90 WHEN 31 THEN NULL ELSE ( + 75 ) / + 58 END ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3880
SELECT CASE 59 WHEN COALESCE ( COUNT( * ), 54, - 59 * - 52 + 38 * CASE 30 WHEN 3 / - CAST( ( + AVG ( DISTINCT - ( + 20 ) ) ) * 73 AS SIGNED ) + ( + 53 ) * COUNT( * ) THEN NULL ELSE 59 / AVG ( - 6 ) END ) * + 29 + 57 THEN + COALESCE ( + 48, - 51 + + 67 * NULLIF ( - 70, + 26 ), + 14 / 71 ) WHEN 29 THEN 46 + - COALESCE ( COUNT( * ), + 14 ) END + - 78 * CAST( 62 + - COUNT( * ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT CASE 59 WHEN COALESCE ( COUNT ( * ), 54, - 59 * - 52 + 38 * CASE 30 WHEN 3 / - CAST ( ( + AVG ( DISTINCT - ( + 20 ) ) ) * 73 AS INTEGER ) + ( + 53 ) * COUNT ( * ) THEN NULL ELSE 59 / AVG ( - 6 ) END ) * + 29 + 57 THEN + COALESCE ( + 48, - 51 + + 67 * NULLIF ( - 70, + 26 ), + 14 / 71 ) WHEN 29 THEN 46 + - COALESCE ( COUNT ( * ), + 14 ) END + - 78 * CAST ( 62 + - COUNT ( * ) AS REAL )
----
NULL

query I rowsort
SELECT ALL - 61 + - - 48 - - 19 + - NULLIF ( - 5, 34 ) * 64 col0
----
326

query I rowsort
SELECT ALL 22 * + ( + + 8 )
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT 12 DIV + 92 * + + 26 col1
----
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT 12 / + 92 * + + 26 col1
----
0

query I rowsort
SELECT ( + 65 ) + 78 AS col2
----
143

query I rowsort
SELECT ALL 70 AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT 2 DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT 2 / - - 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT 37 DIV ( + 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3887
SELECT 37 / ( + 28 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + ( + 17 ) + - 55 + - ( COUNT( * ) ) - 50 * 16
----
-839

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + ( + 17 ) + - 55 + - ( COUNT ( * ) ) - 50 * 16
----
-839

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT ALL - COUNT( * ) + + + 28, 27
----
27
27

skipif mysql # not compatible
query II rowsort label-3889
SELECT ALL - COUNT ( * ) + + + 28, 27
----
27
27

query I rowsort
SELECT DISTINCT 85 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT DISTINCT COALESCE ( - 18, + NULLIF ( - COUNT( * ), - 98 ) + CAST( + 93 AS SIGNED ) * 76 ) + 43 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT COALESCE ( - 18, + NULLIF ( - COUNT ( * ), - 98 ) + CAST ( + 93 AS INTEGER ) * 76 ) + 43 AS col1
----
25

query I rowsort
SELECT DISTINCT 40 AS col1
----
40

query I rowsort
SELECT ALL + 53 * 89
----
4717

query I rowsort
SELECT 37 + 56 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) + - - 36 + 89 * + COALESCE ( - MAX( ALL 95 ) * - 13, - 34 * NULLIF ( + 94, + NULLIF ( + 40, - 26 ) / 62 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) + - - 36 + 89 * + COALESCE ( - MAX ( ALL 95 ) * - 13, - 34 * NULLIF ( + 94, + NULLIF ( + 40, - 26 ) / 62 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - COUNT( * ) + 14 - - 47 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3896
SELECT - COUNT ( * ) + 14 - - 47 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT 90 + + 18 + - 49 * + COALESCE ( 66, - COUNT( * ) * - 61 ) + CASE + AVG ( - 89 ) + - 50 WHEN + 90 THEN NULL WHEN + 59 * MAX( 64 ) - 13 * + ( - MIN( - 23 ) ) THEN - 93 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT 90 + + 18 + - 49 * + COALESCE ( 66, - COUNT ( * ) * - 61 ) + CASE + AVG ( - 89 ) + - 50 WHEN + 90 THEN NULL WHEN + 59 * MAX ( 64 ) - 13 * + ( - MIN ( - 23 ) ) THEN - 93 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 22 - + - 77
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL + COUNT( - - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + COUNT ( - - 33 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT - + COALESCE ( + 81, - NULLIF ( + 34, CAST( 16 AS SIGNED ) + - 36 ) + 87 * 68 )
----
-81

skipif mysql # not compatible
query I rowsort label-3900
SELECT - + COALESCE ( + 81, - NULLIF ( + 34, CAST ( 16 AS INTEGER ) + - 36 ) + 87 * 68 )
----
-81

query I rowsort
SELECT ( + 83 ) + - 75
----
8

query I rowsort
SELECT ALL + - 18 - - 60 * - 88 * - + 12 * 66 + + 80
----
4181822

query I rowsort
SELECT + + 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL - CASE - 16 WHEN - - 27 THEN + 64 WHEN 72 THEN NULL ELSE 83 * - MIN( ALL - 38 ) + + ( 80 ) END
----
-3234

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - CASE - 16 WHEN - - 27 THEN + 64 WHEN 72 THEN NULL ELSE 83 * - MIN ( ALL - 38 ) + + ( 80 ) END
----
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT - 22 DIV - 59 + 9
----
9

skipif mysql # not compatible
query I rowsort label-3905
SELECT - 22 / - 59 + 9
----
9

query I rowsort
SELECT ALL - + ( + + 1 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 87 col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT ALL - MIN( DISTINCT + 19 ) DIV COUNT( * ) * + - MIN( 92 ) * + 92 - 4 AS col2
----
160812

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - MIN ( DISTINCT + 19 ) / COUNT ( * ) * + - MIN ( 92 ) * + 92 - 4 AS col2
----
160812

query I rowsort
SELECT DISTINCT - + CASE WHEN 26 NOT IN ( + + 88 ) THEN NULL ELSE + 24 END AS col0
----
NULL

query I rowsort
SELECT ALL - - 64 * + ( + 91 ) + + 8 * 18
----
5968

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + COUNT( DISTINCT + 80 )
----
1

skipif mysql # not compatible
query I rowsort label-3911
SELECT + COUNT ( DISTINCT + 80 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL + 25 * - + 24 * + 65 + - 41 * COUNT( * )
----
-39041

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + 25 * - + 24 * + 65 + - 41 * COUNT ( * )
----
-39041

query I rowsort
SELECT + + 30 AS col2
----
30

query I rowsort
SELECT ALL + - 51 * - 13 AS col1
----
663

onlyif mysql # aggregate syntax: 
query II rowsort label-3915
SELECT + COUNT( * ) * 69, CASE + 34 WHEN 15 * 62 THEN + COUNT( * ) ELSE NULL END - 4 * 94 AS col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-3915
SELECT + COUNT ( * ) * 69, CASE + 34 WHEN 15 * 62 THEN + COUNT ( * ) ELSE NULL END - 4 * 94 AS col1
----
69
NULL

query I rowsort
SELECT DISTINCT - 5 AS col1
----
-5

query I rowsort
SELECT + - 7
----
-7

query II rowsort
SELECT DISTINCT - 58 AS col1, - 41 - + + 53 AS col0
----
-58
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3919
SELECT DISTINCT - COUNT( * ) AS col1, ( 46 ) + + 58 + + + 87 DIV + 49 AS col0
----
-1
105

skipif mysql # not compatible
query II rowsort label-3919
SELECT DISTINCT - COUNT ( * ) AS col1, ( 46 ) + + 58 + + + 87 / + 49 AS col0
----
-1
105

query I rowsort
SELECT ALL - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL COUNT( * ) + MAX( DISTINCT + 60 ) + + + ( + 65 )
----
126

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL COUNT ( * ) + MAX ( DISTINCT + 60 ) + + + ( + 65 )
----
126

query I rowsort
SELECT ALL + 57 + 68
----
125

query I rowsort
SELECT + 93 * ( + 42 ) AS col2
----
3906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL MAX( + 96 ) + - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL MAX ( + 96 ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT - MAX( DISTINCT + - ( + 92 ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3925
SELECT - MAX ( DISTINCT + - ( + 92 ) ) AS col2
----
92

query II rowsort
SELECT 46 AS col2, - 26 * 64 col0
----
46
-1664

query I rowsort
SELECT - 57 * 93
----
-5301

query I rowsort
SELECT + 63 * + + 61 * + 77
----
295911

query I rowsort
SELECT ALL 68 + - - 93 * - 30 + + 49 + - 58 AS col0
----
-2731

query I rowsort
SELECT ALL NULLIF ( - 75, 5 ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3931
SELECT ALL ( + + CAST( - COALESCE ( 79, + 28, 54, + 37 ) AS SIGNED ) ) + + 99 * 58
----
5663

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL ( + + CAST ( - COALESCE ( 79, + 28, 54, + 37 ) AS INTEGER ) ) + + 99 * 58
----
5663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3932
SELECT - MAX( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3932
SELECT - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3933
SELECT ALL 80 col0, SUM( DISTINCT - 24 ) * 49 DIV + 14 + - 45 * SUM( DISTINCT + 83 * 84 ) AS col1
----
80
-313824

skipif mysql # not compatible
query II rowsort label-3933
SELECT ALL 80 col0, SUM ( DISTINCT - 24 ) * 49 / + 14 + - 45 * SUM ( DISTINCT + 83 * 84 ) AS col1
----
80
-313824

query I rowsort
SELECT + 68 + - 82
----
-14

query I rowsort
SELECT - NULLIF ( + - 31, + 96 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT + COUNT( * ) - + - NULLIF ( - 1, - COALESCE ( - + 56, - COUNT( * ), COUNT( * ) / CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3936
SELECT + COUNT ( * ) - + - NULLIF ( - 1, - COALESCE ( - + 56, - COUNT ( * ), COUNT ( * ) / CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT + 32 * + 73
----
2336

query I rowsort
SELECT + 96 * + 42
----
4032

query I rowsort
SELECT ALL 46 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3940
SELECT + COUNT( * ) + 51 - 52 + ( CASE COUNT( * ) WHEN 97 THEN NULL WHEN MAX( ALL 51 ) * 77 + MAX( - ( - 60 ) + + 20 * 3 ) THEN NULL ELSE + 92 + CAST( ( CAST( - 3 AS DECIMAL ) ) AS SIGNED ) END ) * 88
----
7832

skipif mysql # not compatible
query I rowsort label-3940
SELECT + COUNT ( * ) + 51 - 52 + ( CASE COUNT ( * ) WHEN 97 THEN NULL WHEN MAX ( ALL 51 ) * 77 + MAX ( - ( - 60 ) + + 20 * 3 ) THEN NULL ELSE + 92 + CAST ( ( CAST ( - 3 AS REAL ) ) AS INTEGER ) END ) * 88
----
7832

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT ALL + 56 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL + 56 / 79
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3942
SELECT + 15 AS col2, MIN( 24 )
----
15
24

skipif mysql # not compatible
query II rowsort label-3942
SELECT + 15 AS col2, MIN ( 24 )
----
15
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT + - CAST( - - 59 AS SIGNED ) * + - 88
----
5192

skipif mysql # not compatible
query I rowsort label-3943
SELECT + - CAST ( - - 59 AS INTEGER ) * + - 88
----
5192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3944
SELECT - + 27 col1, - 41 * CAST( CAST( + 8 AS SIGNED ) AS SIGNED ) + 51
----
-27
-277

skipif mysql # not compatible
query II rowsort label-3944
SELECT - + 27 col1, - 41 * CAST ( CAST ( + 8 AS INTEGER ) AS INTEGER ) + 51
----
-27
-277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3945
SELECT ALL + MIN( DISTINCT + - CAST( 52 AS SIGNED ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + MIN ( DISTINCT + - CAST ( 52 AS INTEGER ) )
----
-52

query I rowsort
SELECT DISTINCT - 32 * + + 2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3947
SELECT + COUNT( * ) * - CASE + 53 WHEN + 38 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT + COUNT ( * ) * - CASE + 53 WHEN + 38 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT - NULLIF ( 28, + 16 * + - 84 + - 88 + - CASE COUNT( + 33 ) WHEN + 94 THEN - 66 WHEN ( - 35 ) THEN NULL END ) * - 20 - - 56
----
616

skipif mysql # not compatible
query I rowsort label-3948
SELECT - NULLIF ( 28, + 16 * + - 84 + - 88 + - CASE COUNT ( + 33 ) WHEN + 94 THEN - 66 WHEN ( - 35 ) THEN NULL END ) * - 20 - - 56
----
616

query I rowsort
SELECT - COALESCE ( + 48, + 89 - + 1 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT + + 25 DIV - + 65 * - 92 + 47 * - 48 * 97 col0
----
-218832

skipif mysql # not compatible
query I rowsort label-3950
SELECT + + 25 / - + 65 * - 92 + 47 * - 48 * 97 col0
----
-218832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3951
SELECT - CAST( - 34 AS SIGNED ) col1
----
34

skipif mysql # not compatible
query I rowsort label-3951
SELECT - CAST ( - 34 AS INTEGER ) col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT - + 60 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-3952
SELECT - + 60 / 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3953
SELECT + + CAST( NULL AS SIGNED ) * - ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT + + CAST ( NULL AS INTEGER ) * - ( - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + - 43 AS col1
----
-43

query I rowsort
SELECT ALL + - 19
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT DISTINCT 59 * + CAST( NULL AS SIGNED ) - + COALESCE ( - + 92, - + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT 59 * + CAST ( NULL AS INTEGER ) - + COALESCE ( - + 92, - + 40 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3957
SELECT ALL + 53 * - 14 + COUNT( * ) * - + 62 / + + 9 * - 41 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + 53 * - 14 + COUNT ( * ) * - + 62 / + + 9 * - 41 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3958
SELECT - COALESCE ( + - 6, - - 33 ) - - - COALESCE ( - CAST( - 44 AS SIGNED ), - 4 + 86 DIV - 70 ) + COALESCE ( 24, 54 * 78 ) * 99 DIV - MIN( 21 + 70 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3958
SELECT - COALESCE ( + - 6, - - 33 ) - - - COALESCE ( - CAST ( - 44 AS INTEGER ), - 4 + 86 / - 70 ) + COALESCE ( 24, 54 * 78 ) * 99 / - MIN ( 21 + 70 ) AS col0
----
-64

query I rowsort
SELECT 83 * 98 * - + 61 - - 66 col2
----
-496108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT + CAST( + - 42 AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3960
SELECT + CAST ( + - 42 AS INTEGER ) AS col2
----
-42

query I rowsort
SELECT + 72 * 28 + 0
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT COALESCE ( COUNT( * ), - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-3962
SELECT COALESCE ( COUNT ( * ), - 52 )
----
1

query I rowsort
SELECT ALL + ( - + 44 ) * - + 46 + - - 50 + + 52 AS col2
----
2126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT CAST( + 30 AS SIGNED ) * - - 64 + 28 + + 11 AS col2
----
1959

skipif mysql # not compatible
query I rowsort label-3964
SELECT CAST ( + 30 AS INTEGER ) * - - 64 + 28 + + 11 AS col2
----
1959

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT - 87 - - MAX( ALL - - ( + 92 ) ) + + 88 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3965
SELECT - 87 - - MAX ( ALL - - ( + 92 ) ) + + 88 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT ALL + 69 * - CAST( NULL AS SIGNED ) / 82 + - 29 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + 69 * - CAST ( NULL AS INTEGER ) / 82 + - 29 + - 68
----
NULL

query I rowsort
SELECT - 75 * - 3 AS col0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL + MAX( DISTINCT - 10 ) * + + 83
----
-830

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL + MAX ( DISTINCT - 10 ) * + + 83
----
-830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL - 8 * + - CAST( NULL AS SIGNED ) + - + 43 * - + 8 * + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - 8 * + - CAST ( NULL AS INTEGER ) + - + 43 * - + 8 * + + 96 AS col2
----
NULL

query I rowsort
SELECT - 51 + 74 AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3971
SELECT ALL + 92 AS col1, 5 * COUNT( * ) + 38 AS col0
----
92
43

skipif mysql # not compatible
query II rowsort label-3971
SELECT ALL + 92 AS col1, 5 * COUNT ( * ) + 38 AS col0
----
92
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT ALL - 70 * + 89 * + 22 + 93 col2, - 44 * ( COUNT( * ) )
----
-136967
-44

skipif mysql # not compatible
query II rowsort label-3972
SELECT ALL - 70 * + 89 * + 22 + 93 col2, - 44 * ( COUNT ( * ) )
----
-136967
-44

query I rowsort
SELECT - 27 + - - 95
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT - MAX( - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-3974
SELECT - MAX ( - 62 )
----
62

query I rowsort
SELECT 99 * + 44 + 7 * + 34 * - 48
----
-7068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT - NULLIF ( - CASE - - CAST( + 27 AS SIGNED ) WHEN - + CAST( 42 AS SIGNED ) THEN - 93 - + 67 WHEN CASE 33 WHEN 74 * - 3 + + 41 THEN - 88 + 86 ELSE NULL END THEN NULL WHEN 18 THEN NULL ELSE NULL END, + ( - 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT - NULLIF ( - CASE - - CAST ( + 27 AS INTEGER ) WHEN - + CAST ( 42 AS INTEGER ) THEN - 93 - + 67 WHEN CASE 33 WHEN 74 * - 3 + + 41 THEN - 88 + 86 ELSE NULL END THEN NULL WHEN 18 THEN NULL ELSE NULL END, + ( - 64 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT ALL CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT COUNT( DISTINCT 21 )
----
1

skipif mysql # not compatible
query I rowsort label-3978
SELECT COUNT ( DISTINCT 21 )
----
1

query I rowsort
SELECT - 8 + 80
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3980
SELECT - 67 DIV + + COUNT( + 69 )
----
-67

skipif mysql # not compatible
query I rowsort label-3980
SELECT - 67 / + + COUNT ( + 69 )
----
-67

query II rowsort
SELECT 75, 27 col1
----
75
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3982
SELECT DISTINCT 96 DIV - 97 * COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT 96 / - 97 * COUNT ( * ) col0
----
0

query II rowsort
SELECT ALL + 75 col1, - 50 AS col0
----
75
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 80
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3985
SELECT DISTINCT 66 AS col2, CAST( NULL AS DECIMAL ) AS col2
----
66
NULL

skipif mysql # not compatible
query II rowsort label-3985
SELECT DISTINCT 66 AS col2, CAST ( NULL AS REAL ) AS col2
----
66
NULL

query II rowsort
SELECT + ( - 52 ) * - - 27 + 40 AS col1, - 23
----
-1364
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - 94 * + + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - 94 * + + COUNT ( * )
----
-94

query I rowsort
SELECT + - ( - ( + 3 ) ) + + 86 AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT DISTINCT + 83 * 97 + ( - + 14 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT + 83 * 97 + ( - + 14 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT + + COUNT( * ) + - ( + 56 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3990
SELECT + + COUNT ( * ) + - ( + 56 ) AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT - - 44 DIV + 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3991
SELECT - - 44 / + 26 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT - COUNT( * ) + + + 5 col0
----
4

skipif mysql # not compatible
query I rowsort label-3992
SELECT - COUNT ( * ) + + + 5 col0
----
4

query I rowsort
SELECT + + 64 * + 98 * + 34
----
213248

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + 51 + + 54 * SUM( 80 ) * + 56 + + COUNT( * ) - + 83 + 38 col0
----
241927

skipif mysql # not compatible
query I rowsort label-3994
SELECT + 51 + + 54 * SUM ( 80 ) * + 56 + + COUNT ( * ) - + 83 + 38 col0
----
241927

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT + 20 + - 62 + - 93 + ( + - COUNT( * ) ) * + 80
----
-215

skipif mysql # not compatible
query I rowsort label-3995
SELECT + 20 + - 62 + - 93 + ( + - COUNT ( * ) ) * + 80
----
-215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3996
SELECT + SUM( DISTINCT 71 ) DIV ( ( + 2 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3996
SELECT + SUM ( DISTINCT 71 ) / ( ( + 2 ) ) AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT + 34 + + CAST( NULL AS SIGNED ) * + 61 + - - COUNT( * ) * COUNT( * ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT + 34 + + CAST ( NULL AS INTEGER ) * + 61 + - - COUNT ( * ) * COUNT ( * ) * - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3998
SELECT ALL COUNT( * ) / + + 32 * + CAST( NULL AS DECIMAL ) * - + 85 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL COUNT ( * ) / + + 32 * + CAST ( NULL AS REAL ) * - + 85 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3999
SELECT DISTINCT + 64 DIV MIN( - 56 ) * + 5 * ( + 39 ) + COUNT( DISTINCT CASE - 38 WHEN - 41 THEN + 29 ELSE 1 END ) + 92 DIV - COUNT( * )
----
-286

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT + 64 / MIN ( - 56 ) * + 5 * ( + 39 ) + COUNT ( DISTINCT CASE - 38 WHEN - 41 THEN + 29 ELSE 1 END ) + 92 / - COUNT ( * )
----
-286

query II rowsort
SELECT - 46 AS col0, 14
----
-46
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT + + 12 + - 98 DIV + - 77
----
13

skipif mysql # not compatible
query I rowsort label-4001
SELECT + + 12 + - 98 / + - 77
----
13

query I rowsort
SELECT DISTINCT 93 * + 8
----
744

query I rowsort
SELECT CASE + 22 WHEN + 46 + - + 21 * - - 27 - + 24 + + + 93 * 71 THEN 13 END * ( 29 * 3 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT - CAST( NULL AS SIGNED ) / + 57 + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT - CAST ( NULL AS INTEGER ) / + 57 + - 80
----
NULL

query II rowsort
SELECT 41 + 47, 59 AS col2
----
88
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL - CASE COUNT( * ) WHEN - + 57 THEN 82 WHEN + COUNT( * ) THEN NULL WHEN 12 THEN 73 END + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL - CASE COUNT ( * ) WHEN - + 57 THEN 82 WHEN + COUNT ( * ) THEN NULL WHEN 12 THEN 73 END + + 18
----
NULL

query I rowsort
SELECT DISTINCT - 82 col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT 98 + + - COUNT( * ) + + 47 + + ( + - 69 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT 98 + + - COUNT ( * ) + + 47 + + ( + - 69 ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4009
SELECT ALL - CASE - ( COUNT( * ) ) WHEN + 88 + + CASE WHEN NOT CAST( - 55 AS DECIMAL ) <> COUNT( * ) / + 17 + + 73 / 95 THEN NULL WHEN NOT NULL BETWEEN ( - 92 ) AND ( COUNT( * ) ) * - 44 THEN + 80 * 2 END THEN NULL WHEN 39 THEN NULL ELSE 75 END col2
----
-75

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - CASE - ( COUNT ( * ) ) WHEN + 88 + + CASE WHEN NOT CAST ( - 55 AS REAL ) <> COUNT ( * ) / + 17 + + 73 / 95 THEN NULL WHEN NOT NULL BETWEEN ( - 92 ) AND ( COUNT ( * ) ) * - 44 THEN + 80 * 2 END THEN NULL WHEN 39 THEN NULL ELSE 75 END col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4010
SELECT DISTINCT - COUNT( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT - COUNT ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col0
----
0

query I rowsort
SELECT 47 * - 76 AS col0
----
-3572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4012
SELECT ALL + 22 DIV - COUNT( ALL + + 97 )
----
-22

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL + 22 / - COUNT ( ALL + + 97 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT COUNT( * ) - + COUNT( * ) + + + 6 + - + 36 * + 21 * - 61 col1
----
46122

skipif mysql # not compatible
query I rowsort label-4013
SELECT COUNT ( * ) - + COUNT ( * ) + + + 6 + - + 36 * + 21 * - 61 col1
----
46122

query I rowsort
SELECT + 32 col0
----
32

query I rowsort
SELECT 30 - - ( + CASE 28 WHEN + - 53 + 71 THEN - 24 END ) * + 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT 36 * + - 38 col2, CASE - + 96 WHEN 71 THEN - AVG ( DISTINCT - 43 ) - + 3 WHEN + 96 * + COUNT( * ) + + COUNT( * ) THEN NULL WHEN ( ( COALESCE ( - 53, + 63, 92 * 1 ) ) ) * 31 THEN NULL END / + ( + 28 ) col1
----
-1368
NULL

skipif mysql # not compatible
query II rowsort label-4016
SELECT 36 * + - 38 col2, CASE - + 96 WHEN 71 THEN - AVG ( DISTINCT - 43 ) - + 3 WHEN + 96 * + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN ( ( COALESCE ( - 53, + 63, 92 * 1 ) ) ) * 31 THEN NULL END / + ( + 28 ) col1
----
-1368
NULL

query I rowsort
SELECT 46 * + 58
----
2668

query II rowsort
SELECT ALL - 23 * - 1 col2, 68 col2
----
23
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4019
SELECT - - CAST( + 3 AS SIGNED ) AS col2, MAX( ALL 64 ) + + AVG ( ALL - - 84 ) / - 8 * CAST( NULL AS SIGNED ) + 2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4019
SELECT - - CAST ( + 3 AS INTEGER ) AS col2, MAX ( ALL 64 ) + + AVG ( ALL - - 84 ) / - 8 * CAST ( NULL AS INTEGER ) + 2
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4020
SELECT + CAST( + SUM( 23 ) AS SIGNED ) - + - 63
----
86

skipif mysql # not compatible
query I rowsort label-4020
SELECT + CAST ( + SUM ( 23 ) AS INTEGER ) - + - 63
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL + 54 * + COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL + 54 * + COUNT ( * ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT + 69 * COALESCE ( + - 75, + COUNT( * ) - + - 94 * COALESCE ( - + 45, + 87 + - 45, - COUNT( * ) ) * 80 + - 71 ) AS col0
----
-5175

skipif mysql # not compatible
query I rowsort label-4022
SELECT + 69 * COALESCE ( + - 75, + COUNT ( * ) - + - 94 * COALESCE ( - + 45, + 87 + - 45, - COUNT ( * ) ) * 80 + - 71 ) AS col0
----
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT COUNT( * ) - + MIN( + COALESCE ( + 43, + - 89 + 46, + - 47 ) ) * + 97 AS col1
----
-4170

skipif mysql # not compatible
query I rowsort label-4023
SELECT COUNT ( * ) - + MIN ( + COALESCE ( + 43, + - 89 + 46, + - 47 ) ) * + 97 AS col1
----
-4170

query I rowsort
SELECT - 78 col1
----
-78

query I rowsort
SELECT ALL - 16 AS col1
----
-16

query I rowsort
SELECT - - 3 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4027
SELECT - COALESCE ( + COALESCE ( - + NULLIF ( - + CAST( - 83 AS SIGNED ), COALESCE ( CAST( + 98 AS SIGNED ), + 58 ) ), + 26 ), - COUNT( - 82 ) * 42 ) * 9 AS col1
----
747

skipif mysql # not compatible
query I rowsort label-4027
SELECT - COALESCE ( + COALESCE ( - + NULLIF ( - + CAST ( - 83 AS INTEGER ), COALESCE ( CAST ( + 98 AS INTEGER ), + 58 ) ), + 26 ), - COUNT ( - 82 ) * 42 ) * 9 AS col1
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT COUNT( * ) + 50 + - 89 + + 35 + 11 + + 86 * - 3 + 87 AS col2
----
-163

skipif mysql # not compatible
query I rowsort label-4028
SELECT COUNT ( * ) + 50 + - 89 + + 35 + 11 + + 86 * - 3 + 87 AS col2
----
-163

query I rowsort
SELECT ALL - 93 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT COUNT( 56 ) + 32 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT COUNT ( 56 ) + 32 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4031
SELECT CAST( NULL AS SIGNED ) * + 33 AS col2, 44 / - - 51 / - CAST( NULL AS SIGNED ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4031
SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT ALL - 47 + + NULLIF ( - ( - CAST( - CAST( + CAST( + 56 AS SIGNED ) AS SIGNED ) AS SIGNED ) ), + 85 * 96 ) * 56
----
-3183

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL - 47 + + NULLIF ( - ( - CAST ( - CAST ( + CAST ( + 56 AS INTEGER ) AS INTEGER ) AS INTEGER ) ), + 85 * 96 ) * 56
----
-3183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4033
SELECT - COALESCE ( - 65, - - CAST( NULL AS SIGNED ), + COUNT( * ) + + + 64 * - - 9 * - 0 DIV + 14 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4033
SELECT - COALESCE ( - 65, - - CAST ( NULL AS INTEGER ), + COUNT ( * ) + + + 64 * - - 9 * - 0 / + 14 ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT + 98 DIV + - 94 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4034
SELECT + 98 / + - 94 AS col2
----
-1

query II rowsort
SELECT 92 - + 52, 83 * 10 AS col0
----
40
830

query I rowsort
SELECT - + 8
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT - COUNT( DISTINCT + 67 ) * + + 43 * - COUNT( * ) * - - 68 + + + 68 + - COUNT( * ) DIV + 25
----
2992

skipif mysql # not compatible
query I rowsort label-4037
SELECT - COUNT ( DISTINCT + 67 ) * + + 43 * - COUNT ( * ) * - - 68 + + + 68 + - COUNT ( * ) / + 25
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4038
SELECT + CAST( NULL AS SIGNED ) / - + 67 + - - COUNT( + 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT + CAST ( NULL AS INTEGER ) / - + 67 + - - COUNT ( + 81 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4039
SELECT CAST( NULL AS DECIMAL ) / - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT CAST ( NULL AS REAL ) / - 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT COUNT( * ) + + MAX( DISTINCT + 11 )
----
12

skipif mysql # not compatible
query I rowsort label-4040
SELECT COUNT ( * ) + + MAX ( DISTINCT + 11 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT COALESCE ( 75, - 42 ) * ( - 40 ) + - - 62 * - 31 + 16 + - 8 * - MIN( DISTINCT 54 + - 60 )
----
-4954

skipif mysql # not compatible
query I rowsort label-4041
SELECT COALESCE ( 75, - 42 ) * ( - 40 ) + - - 62 * - 31 + 16 + - 8 * - MIN ( DISTINCT 54 + - 60 )
----
-4954

query II rowsort
SELECT 62 AS col0, + 24
----
62
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4043
SELECT ALL 45 - + COUNT( * ) + + ( + 60 ) DIV 42
----
45

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL 45 - + COUNT ( * ) + + ( + 60 ) / 42
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT 62 * - 55 - - + 84 * - - SUM( DISTINCT - 69 ) + + 92
----
-9114

skipif mysql # not compatible
query I rowsort label-4044
SELECT 62 * - 55 - - + 84 * - - SUM ( DISTINCT - 69 ) + + 92
----
-9114

query II rowsort
SELECT ALL - 57 AS col1, - 90 AS col0
----
-57
-90

query I rowsort
SELECT ALL 39 * + 3
----
117

query I rowsort
SELECT DISTINCT - 72 AS col1
----
-72

query I rowsort
SELECT 11 + 95 + + - 6 + + 80
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT ALL ( 33 ) * + + ( COUNT( * ) ) col2
----
33

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL ( 33 ) * + + ( COUNT ( * ) ) col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT 56 * + 1 * CAST( NULL AS SIGNED ) / 98 * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT 56 * + 1 * CAST ( NULL AS INTEGER ) / 98 * 96 AS col2
----
NULL

query I rowsort
SELECT 36 * 14 + + 30
----
534

query I rowsort
SELECT DISTINCT 38 * - 50
----
-1900

onlyif mysql # DIV for integer division: 
query II rowsort label-4053
SELECT ( 53 ) + 67 AS col1, - 59 DIV + + COALESCE ( - 61, + 0, - 89 + 50 DIV - 41 ) AS col2
----
120
0

skipif mysql # not compatible
query II rowsort label-4053
SELECT ( 53 ) + 67 AS col1, - 59 / + + COALESCE ( - 61, + 0, - 89 + 50 / - 41 ) AS col2
----
120
0

query I rowsort
SELECT ALL ( - + 54 ) * + + 19 AS col0
----
-1026

query I rowsort
SELECT DISTINCT - COALESCE ( + 27, 86, + + 31 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4056
SELECT DISTINCT CAST( + 63 AS SIGNED ) * + 96 + + SUM( - 27 ) AS col0
----
6021

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT CAST ( + 63 AS INTEGER ) * + 96 + + SUM ( - 27 ) AS col0
----
6021

query II rowsort
SELECT ALL - 91, + 61 AS col0
----
-91
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT ALL + - ( + - 75 ) DIV - 21 + - 43 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + - ( + - 75 ) / - 21 + - 43 AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT + 6 + - - 40 DIV - - 48 + + 78 + 44 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-4059
SELECT + 6 + - - 40 / - - 48 + + 78 + 44 AS col1
----
128

query I rowsort
SELECT - - 28
----
28

query II rowsort
SELECT + 84 AS col0, 90
----
84
90

query I rowsort
SELECT 59 + + 76
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT + 89 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT + 89 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 + - + 77 * + 6 + + 37 col2
----
-407

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT NULLIF ( + 59, + 18 ) * - + NULLIF ( - - CASE + 45 WHEN + - 48 THEN COUNT( * ) WHEN + ( - 31 ) THEN NULL END, 93 + + 57 ) * + COUNT( 78 ) + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT NULLIF ( + 59, + 18 ) * - + NULLIF ( - - CASE + 45 WHEN + - 48 THEN COUNT ( * ) WHEN + ( - 31 ) THEN NULL END, 93 + + 57 ) * + COUNT ( 78 ) + - 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - MIN( DISTINCT - ( + 19 ) ) + 88
----
107

skipif mysql # not compatible
query I rowsort label-4066
SELECT - MIN ( DISTINCT - ( + 19 ) ) + 88
----
107

query I rowsort
SELECT DISTINCT - - 88 + - - 98 AS col0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT 28 + 92 + + + COUNT( * ) * - 98 * - + 16
----
1688

skipif mysql # not compatible
query I rowsort label-4068
SELECT 28 + 92 + + + COUNT ( * ) * - 98 * - + 16
----
1688

query I rowsort
SELECT - ( 98 )
----
-98

query I rowsort
SELECT DISTINCT + 48 * - - 44 AS col2
----
2112

query I rowsort
SELECT ALL - - NULLIF ( - 8, 63 ) + 31 * - 46 * + 87
----
-124070

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT - COUNT( * ) + 43 col0
----
42

skipif mysql # not compatible
query I rowsort label-4072
SELECT - COUNT ( * ) + 43 col0
----
42

query I rowsort
SELECT - - 20 AS col1
----
20

query I rowsort
SELECT - - 10 + - 97 col2
----
-87

query I rowsort
SELECT - - 4 + + 54 col1
----
58

query I rowsort
SELECT DISTINCT COALESCE ( + - 65, + 96, - + 75 ) AS col2
----
-65

query I rowsort
SELECT + + 29 + - 61 AS col1
----
-32

query I rowsort
SELECT + 23 * + 43
----
989

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT ALL - 56 AS col2, 42 - ( 94 ) * - - COUNT( * ) * + - 18 * + 25
----
-56
42342

skipif mysql # not compatible
query II rowsort label-4079
SELECT ALL - 56 AS col2, 42 - ( 94 ) * - - COUNT ( * ) * + - 18 * + 25
----
-56
42342

query I rowsort
SELECT - - 99 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4081
SELECT ALL MIN( DISTINCT 98 ), CASE + - 89 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 77 THEN + - 90 WHEN + - CAST( NULL AS SIGNED ) THEN - - 47 * 97 WHEN 58 / 57 + + COUNT( * ) THEN - 46 END AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-4081
SELECT ALL MIN ( DISTINCT 98 ), CASE + - 89 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 77 THEN + - 90 WHEN + - CAST ( NULL AS INTEGER ) THEN - - 47 * 97 WHEN 58 / 57 + + COUNT ( * ) THEN - 46 END AS col1
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT - 12 - - - 7 - - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - 12 - - - 7 - - COUNT ( * ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT COALESCE ( - COALESCE ( - 97, 91, - - COUNT( * ) ), + 37, 55 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4083
SELECT COALESCE ( - COALESCE ( - 97, 91, - - COUNT ( * ) ), + 37, 55 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4084
SELECT ALL + MIN( ALL - - 44 ) AS col1, + COUNT( * ) * + 25 * - - 10
----
44
250

skipif mysql # not compatible
query II rowsort label-4084
SELECT ALL + MIN ( ALL - - 44 ) AS col1, + COUNT ( * ) * + 25 * - - 10
----
44
250

query I rowsort
SELECT - 28 + 30
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4086
SELECT ALL 39 * - 81 AS col1, - 90 - - COUNT( * ) * - 89 AS col2
----
-3159
-179

skipif mysql # not compatible
query II rowsort label-4086
SELECT ALL 39 * - 81 AS col1, - 90 - - COUNT ( * ) * - 89 AS col2
----
-3159
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT - COUNT( * ) * + 50
----
-50

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT - COUNT ( * ) * + 50
----
-50

query I rowsort
SELECT ALL + ( 98 )
----
98

query I rowsort
SELECT + 80 * 55 AS col1
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT COALESCE ( NULLIF ( 64, + 69 ), - 87 * + - 97 - + MIN( ALL + - 39 ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4090
SELECT COALESCE ( NULLIF ( 64, + 69 ), - 87 * + - 97 - + MIN ( ALL + - 39 ) ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL - COUNT( * ) * + + COUNT( * ) * - + 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) * - + 76 AS col2
----
76

query I rowsort
SELECT DISTINCT + 50 * 65 AS col0
----
3250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4093
SELECT + MIN( + 4 ) AS col0, - 44 + - CAST( 98 AS SIGNED ) AS col0
----
4
-142

skipif mysql # not compatible
query II rowsort label-4093
SELECT + MIN ( + 4 ) AS col0, - 44 + - CAST ( 98 AS INTEGER ) AS col0
----
4
-142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT ALL + CAST( + 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL + CAST ( + 47 AS INTEGER )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT DISTINCT COUNT( * ) DIV + - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT COUNT ( * ) / + - 32 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT MIN( ALL + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-4096
SELECT MIN ( ALL + 41 )
----
41

query I rowsort
SELECT ALL 33 * - 67 * + ( - 17 ) + + - 50 * 1 AS col0
----
37537

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT + MIN( 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4098
SELECT + MIN ( 91 )
----
91

query I rowsort
SELECT + + 40 AS col0
----
40

query I rowsort
SELECT + + NULLIF ( - 40, - - COALESCE ( + - 59, 79 ) )
----
-40

query I rowsort
SELECT 70 col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4102
SELECT DISTINCT 56 + - COUNT( * ) + - + SUM( DISTINCT + 26 ) DIV 30, + 20 AS col0
----
55
20

skipif mysql # not compatible
query II rowsort label-4102
SELECT DISTINCT 56 + - COUNT ( * ) + - + SUM ( DISTINCT + 26 ) / 30, + 20 AS col0
----
55
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4103
SELECT DISTINCT 96 * 82 AS col1, 81 + + CAST( NULL AS SIGNED ) col1
----
7872
NULL

skipif mysql # not compatible
query II rowsort label-4103
SELECT DISTINCT 96 * 82 AS col1, 81 + + CAST ( NULL AS INTEGER ) col1
----
7872
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4104
SELECT ALL - 21 + + + CAST( + - 18 AS SIGNED ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - 21 + + + CAST ( + - 18 AS INTEGER ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT + 58 - + + MAX( ALL - 31 ) + COUNT( * ), + 62 AS col0
----
90
62

skipif mysql # not compatible
query II rowsort label-4105
SELECT + 58 - + + MAX ( ALL - 31 ) + COUNT ( * ), + 62 AS col0
----
90
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL - COUNT( * ) + + 62 * - + COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - COUNT ( * ) + + 62 * - + COUNT ( * ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL 41 + MAX( - 6 )
----
35

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL 41 + MAX ( - 6 )
----
35

query I rowsort
SELECT + 10 * - ( 85 ) AS col2
----
-850

query I rowsort
SELECT ( - 57 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT + + 39 DIV + - 74
----
0

skipif mysql # not compatible
query I rowsort label-4110
SELECT + + 39 / + - 74
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4111
SELECT + + 80 + 2 AS col2, - COUNT( * ) * + + ( - 61 ) + - - 81 + ( - 94 )
----
82
48

skipif mysql # not compatible
query II rowsort label-4111
SELECT + + 80 + 2 AS col2, - COUNT ( * ) * + + ( - 61 ) + - - 81 + ( - 94 )
----
82
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4112
SELECT - - ( + COUNT( * ) ) col2, - 32
----
1
-32

skipif mysql # not compatible
query II rowsort label-4112
SELECT - - ( + COUNT ( * ) ) col2, - 32
----
1
-32

query I rowsort
SELECT - - 22
----
22

query II rowsort
SELECT - - 0 - 69, - 68 AS col0
----
-69
-68

query I rowsort
SELECT DISTINCT - 80 - 61 * - + 83 * - 19
----
-96277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4116
SELECT - 11 DIV - 46 * + + NULLIF ( + - 72, + COALESCE ( COALESCE ( - CAST( 97 AS SIGNED ), + ( + 30 ) + COUNT( * ) ), 21, ( COUNT( * ) ) + + 43 ) * + COUNT( * ) + + 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT - 11 / - 46 * + + NULLIF ( + - 72, + COALESCE ( COALESCE ( - CAST ( 97 AS INTEGER ), + ( + 30 ) + COUNT ( * ) ), 21, ( COUNT ( * ) ) + + 43 ) * + COUNT ( * ) + + 70 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT ALL COUNT( * ) * 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL COUNT ( * ) * 98 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL - 35 * + ( + MIN( ALL - 91 ) )
----
3185

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - 35 * + ( + MIN ( ALL - 91 ) )
----
3185

query I rowsort
SELECT - 22 * + - 96
----
2112

query II rowsort
SELECT ALL + 95 AS col2, 96 AS col1
----
95
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4121
SELECT 72 DIV + COUNT( * ) + - 23
----
49

skipif mysql # not compatible
query I rowsort label-4121
SELECT 72 / + COUNT ( * ) + - 23
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT + COUNT( * ) AS col2, - 33 AS col2
----
1
-33

skipif mysql # not compatible
query II rowsort label-4122
SELECT + COUNT ( * ) AS col2, - 33 AS col2
----
1
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT - 86 * - 8 * + + COUNT( * )
----
688

skipif mysql # not compatible
query I rowsort label-4123
SELECT - 86 * - 8 * + + COUNT ( * )
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - COUNT( * ) + - COUNT( * ) + + 28 + - 42 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4124
SELECT - COUNT ( * ) + - COUNT ( * ) + + 28 + - 42 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4125
SELECT CAST( NULL AS SIGNED ) AS col1, + 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-4125
SELECT CAST ( NULL AS INTEGER ) AS col1, + 91
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL + CASE - COUNT( * ) WHEN - 89 THEN - - 7 * + AVG ( DISTINCT - - 9 ) - + ( - 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL + CASE - COUNT ( * ) WHEN - 89 THEN - - 7 * + AVG ( DISTINCT - - 9 ) - + ( - 22 ) END
----
NULL

query I rowsort
SELECT 36 * 81 + 62
----
2978

query I rowsort
SELECT ALL 50 * + 16 AS col0
----
800

query I rowsort
SELECT - 91 + 68
----
-23

query I rowsort
SELECT - 2 + 28
----
26

query I rowsort
SELECT + COALESCE ( + 74, 37 )
----
74

query I rowsort
SELECT + + 96 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT 11 * - 52 + + 60 DIV + ( - ( 45 ) )
----
-573

skipif mysql # not compatible
query I rowsort label-4133
SELECT 11 * - 52 + + 60 / + ( - ( 45 ) )
----
-573

query I rowsort
SELECT - + 36 + 81 AS col2
----
45

query I rowsort
SELECT ALL 50 * + + 11 * - - 84 + 32 * + 96
----
49272

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL - 14 * 41 * - - NULLIF ( + - 93, + COALESCE ( + 32, - 94, - 87 ) * + + CASE - 87 WHEN 49 THEN + 41 ELSE 47 END * + CASE 99 - + 92 WHEN - 87 + - 18 THEN NULL ELSE 8 + CASE 73 WHEN - 45 * 19 + - 47 THEN 19 END END + COUNT( 61 ) + + 32 ) + COUNT( * ) * - 89
----
53293

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - 14 * 41 * - - NULLIF ( + - 93, + COALESCE ( + 32, - 94, - 87 ) * + + CASE - 87 WHEN 49 THEN + 41 ELSE 47 END * + CASE 99 - + 92 WHEN - 87 + - 18 THEN NULL ELSE 8 + CASE 73 WHEN - 45 * 19 + - 47 THEN 19 END END + COUNT ( 61 ) + + 32 ) + COUNT ( * ) * - 89
----
53293

query I rowsort
SELECT + 28 + + 19 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT ALL + 34 DIV 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + 34 / 57 col1
----
0

query I rowsort
SELECT DISTINCT + 23 + + 96 AS col0
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4140
SELECT COUNT( * ) + - + ( + COUNT( * ) ) * ( 90 ) + + - MAX( DISTINCT + - ( - + CASE + 52 WHEN ( + 53 ) * 38 THEN NULL ELSE - 74 END ) ) DIV + 38
----
-88

skipif mysql # not compatible
query I rowsort label-4140
SELECT COUNT ( * ) + - + ( + COUNT ( * ) ) * ( 90 ) + + - MAX ( DISTINCT + - ( - + CASE + 52 WHEN ( + 53 ) * 38 THEN NULL ELSE - 74 END ) ) / + 38
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT ALL + 90 - - - 89 * 42 * 34 * - - CAST( NULL AS SIGNED ) / - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + 90 - - - 89 * 42 * 34 * - - CAST ( NULL AS INTEGER ) / - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + CASE - + 1 WHEN + + 80 * SUM( ALL 79 ) / + + 97 * + AVG ( - 15 ) + - 94 * - 33 + - ( ( 19 ) + 50 ) * - 18 THEN NULL WHEN + 99 + ( COUNT( * ) ) THEN NULL ELSE 14 + + COUNT( * ) END AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4142
SELECT + CASE - + 1 WHEN + + 80 * SUM ( ALL 79 ) / + + 97 * + AVG ( - 15 ) + - 94 * - 33 + - ( ( 19 ) + 50 ) * - 18 THEN NULL WHEN + 99 + ( COUNT ( * ) ) THEN NULL ELSE 14 + + COUNT ( * ) END AS col1
----
15

query I rowsort
SELECT - - 57 AS col1
----
57

query I rowsort
SELECT - 4 + 6
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT + 78 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT + 78 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT ALL COUNT( * ) * + - 58
----
-58

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL COUNT ( * ) * + - 58
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4147
SELECT 91 + - COUNT( ALL - 19 ) AS col2, - ( - + 12 )
----
90
12

skipif mysql # not compatible
query II rowsort label-4147
SELECT 91 + - COUNT ( ALL - 19 ) AS col2, - ( - + 12 )
----
90
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4148
SELECT ( + ( 15 ) ) AS col0, - 23 * + ( - 52 ) * - - 86 + + + COUNT( * ) * 34 + - 36 * - 17
----
15
103502

skipif mysql # not compatible
query II rowsort label-4148
SELECT ( + ( 15 ) ) AS col0, - 23 * + ( - 52 ) * - - 86 + + + COUNT ( * ) * 34 + - 36 * - 17
----
15
103502

query I rowsort
SELECT 49 + - + 4 col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-4150
SELECT ALL 75 - 28 * + + COUNT( * ), COUNT( * ) + ( 96 ) col1
----
47
97

skipif mysql # not compatible
query II rowsort label-4150
SELECT ALL 75 - 28 * + + COUNT ( * ), COUNT ( * ) + ( 96 ) col1
----
47
97

query I rowsort
SELECT + 53 + - 21 - - 27
----
59

query II rowsort
SELECT ALL 49, 6 * + 11 col0
----
49
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT NULLIF ( + ( 29 ), - + COUNT( * ) + 76 ) + + 49
----
78

skipif mysql # not compatible
query I rowsort label-4153
SELECT NULLIF ( + ( 29 ), - + COUNT ( * ) + 76 ) + + 49
----
78

query II rowsort
SELECT DISTINCT 2 AS col1, 88 AS col1
----
2
88

query II rowsort
SELECT DISTINCT 53 AS col0, 12 + + 33 AS col1
----
53
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4156
SELECT 56 + - - 64 + + CAST( NULL AS SIGNED ) + - 25 + + 81 / + + MIN( DISTINCT + + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT 56 + - - 64 + + CAST ( NULL AS INTEGER ) + - 25 + + 81 / + + MIN ( DISTINCT + + 8 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4157
SELECT 59 DIV - 2
----
-29

skipif mysql # not compatible
query I rowsort label-4157
SELECT 59 / - 2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT COALESCE ( 45, + NULLIF ( 76, 86 * + 22 ) - - - ( 69 ) - - COUNT( + CASE + 22 WHEN + 80 * 41 THEN NULL WHEN + 35 + 40 THEN - 99 * ( + 70 * - 42 ) WHEN + 52 * - NULLIF ( - 3, 76 * 81 + 1 ) THEN NULL WHEN + 17 * - 57 THEN - 43 ELSE NULL END ) * - 9, - 2 ) * CASE + 2 WHEN MAX( 32 ) / - 66 + 0 THEN NULL WHEN - MAX( + 48 ) THEN NULL ELSE + 29 + 77 END AS col2
----
4770

skipif mysql # not compatible
query I rowsort label-4158
SELECT COALESCE ( 45, + NULLIF ( 76, 86 * + 22 ) - - - ( 69 ) - - COUNT ( + CASE + 22 WHEN + 80 * 41 THEN NULL WHEN + 35 + 40 THEN - 99 * ( + 70 * - 42 ) WHEN + 52 * - NULLIF ( - 3, 76 * 81 + 1 ) THEN NULL WHEN + 17 * - 57 THEN - 43 ELSE NULL END ) * - 9, - 2 ) * CASE + 2 WHEN MAX ( 32 ) / - 66 + 0 THEN NULL WHEN - MAX ( + 48 ) THEN NULL ELSE + 29 + 77 END AS col2
----
4770

query I rowsort
SELECT 66 + - 57
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4160
SELECT - 17, - 78 + + 35 DIV - 62 DIV 12 * 32 AS col0
----
-17
-78

skipif mysql # not compatible
query II rowsort label-4160
SELECT - 17, - 78 + + 35 / - 62 / 12 * 32 AS col0
----
-17
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-4161
SELECT ( + + 65 ) DIV - 80 + + 98 AS col2, - 18
----
98
-18

skipif mysql # not compatible
query II rowsort label-4161
SELECT ( + + 65 ) / - 80 + + 98 AS col2, - 18
----
98
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL - 77 + + COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - 77 + + COUNT ( * ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4163
SELECT ALL 21 + 27 + - COUNT( DISTINCT + 65 ) + - - 96 + 65 + COALESCE ( - ( + + CAST( NULL AS SIGNED ) ), + 3 * + + COALESCE ( 32, NULLIF ( - COUNT( * ), 90 ), + 10 DIV 57 + 58 * 97 ) + 44 )
----
348

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL 21 + 27 + - COUNT ( DISTINCT + 65 ) + - - 96 + 65 + COALESCE ( - ( + + CAST ( NULL AS INTEGER ) ), + 3 * + + COALESCE ( 32, NULLIF ( - COUNT ( * ), 90 ), + 10 / 57 + 58 * 97 ) + 44 )
----
348

query II rowsort
SELECT 83 AS col0, - 34
----
83
-34

query I rowsort
SELECT DISTINCT - 87 * + 83 col2
----
-7221

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4166
SELECT CAST( NULL AS SIGNED ) / - - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + ( - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT CAST ( NULL AS INTEGER ) / - - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + ( - 78 )
----
NULL

query I rowsort
SELECT ALL - ( 26 ) AS col0
----
-26

query II rowsort
SELECT + 92 AS col0, - 32
----
92
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT COUNT( * ) + 77
----
78

skipif mysql # not compatible
query I rowsort label-4169
SELECT COUNT ( * ) + 77
----
78

query II rowsort
SELECT + 42, 25 * 79 * - 43 AS col2
----
42
-84925

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT ALL - - 10 + + MIN( ALL - 91 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-4171
SELECT ALL - - 10 + + MIN ( ALL - 91 ) col1
----
-81

query I rowsort
SELECT ALL - 16 AS col2
----
-16

query II rowsort
SELECT ALL + - 35 * + 52 AS col2, - 70 AS col0
----
-1820
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + COUNT( * ) * - - 72
----
72

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( * ) * - - 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4175
SELECT ALL - - NULLIF ( - COALESCE ( - - 38, + 29 ), + + CAST( NULL AS DECIMAL ) * - COUNT( * ) * + 62 )
----
-38

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - - NULLIF ( - COALESCE ( - - 38, + 29 ), + + CAST ( NULL AS REAL ) * - COUNT ( * ) * + 62 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT 72 * - + MAX( DISTINCT - 76 ) AS col0
----
5472

skipif mysql # not compatible
query I rowsort label-4176
SELECT 72 * - + MAX ( DISTINCT - 76 ) AS col0
----
5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT - 2 * - CAST( NULL AS SIGNED ) * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT - 2 * - CAST ( NULL AS INTEGER ) * + 69
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4178
SELECT - 1 * 64 DIV - 89 + 14 + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-4178
SELECT - 1 * 64 / - 89 + 14 + COUNT ( * ) AS col1
----
15

query II rowsort
SELECT DISTINCT - + 41, - 6 * + + 46 AS col1
----
-41
-276

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4180
SELECT ALL 59 - 89 - - COUNT( * ) DIV + - 96 * + 51 - 49 AS col0, - 0 * - CASE + + 98 WHEN + 67 + + 53 THEN 84 * + 61 - - COUNT( * ) * 76 ELSE 66 * 39 + - MAX( DISTINCT 9 ) END
----
-79
0

skipif mysql # not compatible
query II rowsort label-4180
SELECT ALL 59 - 89 - - COUNT ( * ) / + - 96 * + 51 - 49 AS col0, - 0 * - CASE + + 98 WHEN + 67 + + 53 THEN 84 * + 61 - - COUNT ( * ) * 76 ELSE 66 * 39 + - MAX ( DISTINCT 9 ) END
----
-79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT 51 DIV - 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4181
SELECT 51 / - 41 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4182
SELECT ALL 44 col0, - 58 * - COUNT( * ) AS col1
----
44
58

skipif mysql # not compatible
query II rowsort label-4182
SELECT ALL 44 col0, - 58 * - COUNT ( * ) AS col1
----
44
58

query I rowsort
SELECT - - ( 47 ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4184
SELECT + COUNT( * ) * 26 + + - 44 - + - 38 AS col0, CAST( NULL AS SIGNED ) * - NULLIF ( + 50, + + 26 / - 94 + - 85 + - + 45 )
----
20
NULL

skipif mysql # not compatible
query II rowsort label-4184
SELECT + COUNT ( * ) * 26 + + - 44 - + - 38 AS col0, CAST ( NULL AS INTEGER ) * - NULLIF ( + 50, + + 26 / - 94 + - 85 + - + 45 )
----
20
NULL

query I rowsort
SELECT ALL 5 col0
----
5

query I rowsort
SELECT - ( - + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT 44 - - 32 + + MAX( DISTINCT - - 6 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-4187
SELECT 44 - - 32 + + MAX ( DISTINCT - - 6 ) col2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4188
SELECT ALL + 17 DIV + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + 17 / + COUNT ( * )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT COALESCE ( - 92, + 65 ) DIV + 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4189
SELECT COALESCE ( - 92, + 65 ) / + 45 AS col1
----
-2

query I rowsort
SELECT 74 * - - 75 AS col0
----
5550

query I rowsort
SELECT 24 + - 27
----
-3

query I rowsort
SELECT DISTINCT COALESCE ( + + ( 56 ), + 84 ) + ( + + 8 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT COUNT( * ) - + + COUNT( ( 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT COUNT ( * ) - + + COUNT ( ( 67 ) )
----
0

query II rowsort
SELECT ALL 27 + + 17, 18 AS col0
----
44
18

query I rowsort
SELECT DISTINCT ( 25 ) + - - 5
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT - MIN( ALL - 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4196
SELECT - MIN ( ALL - 48 ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT ALL 9 + - COALESCE ( + 98, 72 * + + 34 + - + 46, 16 DIV 18 ) * - 64 AS col1
----
6281

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL 9 + - COALESCE ( + 98, 72 * + + 34 + - + 46, 16 / 18 ) * - 64 AS col1
----
6281

query I rowsort
SELECT 96 col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ALL COUNT( * ) * + + 62 * 55 * - 40 + - + 25 AS col2
----
-136425

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL COUNT ( * ) * + + 62 * 55 * - 40 + - + 25 AS col2
----
-136425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4200
SELECT + 34 / - + CAST( NULL AS SIGNED ) + - 66 - - 26 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT + 34 / - + CAST ( NULL AS INTEGER ) + - 66 - - 26 * + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4201
SELECT 91 * + COUNT( * ) AS col1, - 62 AS col1, MAX( ALL - + 72 )
----
91
-62
-72

skipif mysql # not compatible
query III rowsort label-4201
SELECT 91 * + COUNT ( * ) AS col1, - 62 AS col1, MAX ( ALL - + 72 )
----
91
-62
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT CAST( + + 45 AS SIGNED ) + 58 * 28 + ( + 35 )
----
1704

skipif mysql # not compatible
query I rowsort label-4202
SELECT CAST ( + + 45 AS INTEGER ) + 58 * 28 + ( + 35 )
----
1704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4203
SELECT ALL 58 * + 69 / - - CAST( NULL AS DECIMAL ) * - 7 + + + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL 58 * + 69 / - - CAST ( NULL AS REAL ) * - 7 + + + 41 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT CAST( + + 0 AS SIGNED ) * + SUM( ALL + + 81 ) + + 75
----
75

skipif mysql # not compatible
query I rowsort label-4204
SELECT CAST ( + + 0 AS INTEGER ) * + SUM ( ALL + + 81 ) + + 75
----
75

query I rowsort
SELECT DISTINCT + - 46 * + 77
----
-3542

query I rowsort
SELECT ALL + + 41
----
41

query I rowsort
SELECT + 50 * + 1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT - COUNT( * ) * ( + 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4208
SELECT - COUNT ( * ) * ( + 56 ) AS col0
----
-56

query I rowsort
SELECT - 33 * 70
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL + 32 * + ( + ( - - 50 ) ) + + COUNT( * )
----
1601

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL + 32 * + ( + ( - - 50 ) ) + + COUNT ( * )
----
1601

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT + - ( - COALESCE ( + - MIN( - 54 ), COUNT( * ) * - + 27 + - 13 ) ) AS col0, 74 AS col0
----
54
74

skipif mysql # not compatible
query II rowsort label-4211
SELECT + - ( - COALESCE ( + - MIN ( - 54 ), COUNT ( * ) * - + 27 + - 13 ) ) AS col0, 74 AS col0
----
54
74

query I rowsort
SELECT + 90 + - - ( + 20 )
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT - - CAST( MAX( DISTINCT + 17 ) AS SIGNED ) * + - 34
----
-578

skipif mysql # not compatible
query I rowsort label-4213
SELECT - - CAST ( MAX ( DISTINCT + 17 ) AS INTEGER ) * + - 34
----
-578

query I rowsort
SELECT ALL + COALESCE ( + 45, 95 ) AS col2
----
45

query I rowsort
SELECT ALL + 7 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT + - COUNT( DISTINCT + - 12 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT + - COUNT ( DISTINCT + - 12 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - 20 * + + 44 + + 64 + + COUNT( * ) + + - 98 * - + 60 AS col1
----
5065

skipif mysql # not compatible
query I rowsort label-4217
SELECT - 20 * + + 44 + + 64 + + COUNT ( * ) + + - 98 * - + 60 AS col1
----
5065

onlyif mysql # aggregate syntax: 
query II rowsort label-4218
SELECT DISTINCT + 88 * + COUNT( * ), + COALESCE ( + + ( + + 35 ), 10 ) AS col2
----
88
35

skipif mysql # not compatible
query II rowsort label-4218
SELECT DISTINCT + 88 * + COUNT ( * ), + COALESCE ( + + ( + + 35 ), 10 ) AS col2
----
88
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT - ( + - 83 ) DIV - - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4219
SELECT - ( + - 83 ) / - - COUNT ( * ) AS col1
----
83

query I rowsort
SELECT ALL + - 99 * - - 1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT - + 50 + 51 DIV - 1 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-4221
SELECT - + 50 + 51 / - 1 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-4222
SELECT 49, COUNT( * ) * - 19 AS col2
----
49
-19

skipif mysql # not compatible
query II rowsort label-4222
SELECT 49, COUNT ( * ) * - 19 AS col2
----
49
-19

query I rowsort
SELECT ALL ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4224
SELECT ALL - COUNT( 51 ) + - - 88 col0, + 7 AS col1
----
87
7

skipif mysql # not compatible
query II rowsort label-4224
SELECT ALL - COUNT ( 51 ) + - - 88 col0, + 7 AS col1
----
87
7

query I rowsort
SELECT DISTINCT + 22 + + 14
----
36

query II rowsort
SELECT 36 AS col1, 36 AS col1
----
36
36

query I rowsort
SELECT ALL 33 + - 21 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - COUNT( * ) + - - 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4228
SELECT - COUNT ( * ) + - - 19 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT + COUNT( * ) + - + 78
----
-77

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + COUNT ( * ) + - + 78
----
-77

query I rowsort
SELECT DISTINCT 27 + + + 15 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4231
SELECT DISTINCT - 32 / + + ( - CAST( NULL AS SIGNED ) ) AS col1, + CAST( + 63 AS SIGNED ) + 0 AS col0, + 8
----
NULL
63
8

skipif mysql # not compatible
query III rowsort label-4231
SELECT DISTINCT - 32 / + + ( - CAST ( NULL AS INTEGER ) ) AS col1, + CAST ( + 63 AS INTEGER ) + 0 AS col0, + 8
----
NULL
63
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT - COUNT( * ) * 76 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4232
SELECT - COUNT ( * ) * 76 AS col2
----
-76

query II rowsort
SELECT 35, + ( - + 12 ) + + - 60 * + - 26 * 68 AS col1
----
35
106068

query I rowsort
SELECT + 85 + - - 25
----
110

query II rowsort
SELECT 73 AS col2, 17 AS col1
----
73
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT - SUM( ALL 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-4236
SELECT - SUM ( ALL 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + 61 + 0 * - - COUNT( * ) * COUNT( * ) + 78 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-4237
SELECT + 61 + 0 * - - COUNT ( * ) * COUNT ( * ) + 78 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL MIN( ALL - ( - 8 ) ) - + ( + + ( 76 ) ) + 32 * - 33
----
-1124

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL MIN ( ALL - ( - 8 ) ) - + ( + + ( 76 ) ) + 32 * - 33
----
-1124

query I rowsort
SELECT 49 col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4240
SELECT - COUNT( * ) AS col2, 7 * + + 7 AS col0
----
-1
49

skipif mysql # not compatible
query II rowsort label-4240
SELECT - COUNT ( * ) AS col2, 7 * + + 7 AS col0
----
-1
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT ALL ( - - CAST( - 72 AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL ( - - CAST ( - 72 AS INTEGER ) )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4242
SELECT DISTINCT + 60 - + 22 * 14 - + - CASE - + 65 WHEN 8 * - 39 + + 41 THEN NULL WHEN - - 0 THEN NULL ELSE + 1 END * COALESCE ( - 10, + - 76, - CASE 50 WHEN COUNT( * ) * ( COUNT( * ) ) THEN - 45 + - 20 END, 42 + 47 DIV + ( 26 * + 62 ) )
----
-258

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + 60 - + 22 * 14 - + - CASE - + 65 WHEN 8 * - 39 + + 41 THEN NULL WHEN - - 0 THEN NULL ELSE + 1 END * COALESCE ( - 10, + - 76, - CASE 50 WHEN COUNT ( * ) * ( COUNT ( * ) ) THEN - 45 + - 20 END, 42 + 47 / + ( 26 * + 62 ) )
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT + CAST( NULL AS SIGNED ) * - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT + CAST ( NULL AS INTEGER ) * - 39 AS col2
----
NULL

query I rowsort
SELECT ALL 31 * 60 * 67
----
124620

query I rowsort
SELECT 23 col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4246
SELECT DISTINCT + 45 col2, COUNT( * )
----
45
1

skipif mysql # not compatible
query II rowsort label-4246
SELECT DISTINCT + 45 col2, COUNT ( * )
----
45
1

query I rowsort
SELECT - 38 * + 60
----
-2280

onlyif mysql # DIV for integer division: 
query I rowsort label-4248
SELECT + + 72 DIV 15 col2
----
4

skipif mysql # not compatible
query I rowsort label-4248
SELECT + + 72 / 15 col2
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-4249
SELECT + + 66 * 45 DIV + 75 AS col1, 43 col1
----
39
43

skipif mysql # not compatible
query II rowsort label-4249
SELECT + + 66 * 45 / + 75 AS col1, 43 col1
----
39
43

query II rowsort
SELECT ALL + - 91, - 68 AS col2
----
-91
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-4251
SELECT + + 9, 85 - - 25 + + + 2 DIV + ( + ( 7 ) ) AS col2
----
9
110

skipif mysql # not compatible
query II rowsort label-4251
SELECT + + 9, 85 - - 25 + + + 2 / + ( + ( 7 ) ) AS col2
----
9
110

query II rowsort
SELECT + 44 col0, + 25 AS col0
----
44
25

query II rowsort
SELECT 78 AS col0, + 72
----
78
72

query II rowsort
SELECT ALL + 86 AS col2, + 47 * 52 AS col2
----
86
2444

query II rowsort
SELECT ALL + + 58, + ( - - 37 ) AS col0
----
58
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL 80 * + 70 * SUM( + + 64 ) - 78 + 45
----
358367

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL 80 * + 70 * SUM ( + + 64 ) - 78 + 45
----
358367

query I rowsort
SELECT - + 65 * + + 83 AS col0
----
-5395

query I rowsort
SELECT ALL - 4 * - + 82 + 11 col0
----
339

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT + - 4 * - 99 + + - COUNT( * ) * + + 79 - - 34 + + ( - - 39 ) + - MAX( ALL - - 44 ) AS col1
----
346

skipif mysql # not compatible
query I rowsort label-4259
SELECT + - 4 * - 99 + + - COUNT ( * ) * + + 79 - - 34 + + ( - - 39 ) + - MAX ( ALL - - 44 ) AS col1
----
346

query I rowsort
SELECT ALL + 63 * + - ( - - 21 ) + - 10 + - 97 + - 40 - 59 - 72 * + 32 * - CASE 7 WHEN 57 - - - 76 + 43 + - ( 19 ) * 2 THEN - ( + 9 ) + 13 END * 60 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4261
SELECT ALL - CAST( + + 22 AS SIGNED ) * + + ( + 87 ) + - COUNT( * ) + + MIN( - 42 ) AS col1, + COUNT( * )
----
-1957
1

skipif mysql # not compatible
query II rowsort label-4261
SELECT ALL - CAST ( + + 22 AS INTEGER ) * + + ( + 87 ) + - COUNT ( * ) + + MIN ( - 42 ) AS col1, + COUNT ( * )
----
-1957
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT - 39 * COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4262
SELECT - 39 * COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT + 4 - + - 53 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT - COUNT( ALL - 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4264
SELECT - COUNT ( ALL - 79 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT DISTINCT - 28 - COUNT( * ) AS col0, - 9
----
-29
-9

skipif mysql # not compatible
query II rowsort label-4265
SELECT DISTINCT - 28 - COUNT ( * ) AS col0, - 9
----
-29
-9

query I rowsort
SELECT - NULLIF ( - - 43, - 33 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT - 28 - - 53 + SUM( DISTINCT + 36 ) + - + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT - 28 - - 53 + SUM ( DISTINCT + 36 ) + - + COUNT ( * ) AS col0
----
60

query II rowsort
SELECT DISTINCT + 74 * + + 90, - 35 AS col0
----
6660
-35

query I rowsort
SELECT 71 * ( 88 ) AS col1
----
6248

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT 74 * + 83 AS col0, 88 + 82 + 78 + 6 * 26 * + MAX( ALL 5 ) * COUNT( DISTINCT - 43 )
----
6142
1028

skipif mysql # not compatible
query II rowsort label-4270
SELECT 74 * + 83 AS col0, 88 + 82 + 78 + 6 * 26 * + MAX ( ALL 5 ) * COUNT ( DISTINCT - 43 )
----
6142
1028

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT ALL - 6 DIV 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL - 6 / 27 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT 88 + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT 88 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4273
SELECT 32 DIV + 89 * - 57 - + - 77 - - + MIN( + 2 )
----
79

skipif mysql # not compatible
query I rowsort label-4273
SELECT 32 / + 89 * - 57 - + - 77 - - + MIN ( + 2 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4274
SELECT - 16 DIV + 77 + - - 58
----
58

skipif mysql # not compatible
query I rowsort label-4274
SELECT - 16 / + 77 + - - 58
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4275
SELECT + 7 * 94 - COALESCE ( 99, 21 DIV - 59 * - 42, + + 7 + + COUNT( * ) ) * 63 * + - 30
----
187768

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 7 * 94 - COALESCE ( 99, 21 / - 59 * - 42, + + 7 + + COUNT ( * ) ) * 63 * + - 30
----
187768

query I rowsort
SELECT DISTINCT + 82 * 75 col2
----
6150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL - 54 * MIN( DISTINCT - + 68 )
----
3672

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - 54 * MIN ( DISTINCT - + 68 )
----
3672

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4279
SELECT DISTINCT - + 57 * - + 21 AS col0, CAST( - 15 AS DECIMAL ) + CASE - 21 WHEN + - 36 THEN + + 3 + COALESCE ( - COALESCE ( - 10, - 2 ), 89 + + 25 * + 70 ) END * - 36 AS col1
----
1197
NULL

skipif mysql # not compatible
query II rowsort label-4279
SELECT DISTINCT - + 57 * - + 21 AS col0, CAST ( - 15 AS REAL ) + CASE - 21 WHEN + - 36 THEN + + 3 + COALESCE ( - COALESCE ( - 10, - 2 ), 89 + + 25 * + 70 ) END * - 36 AS col1
----
1197
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4280
SELECT 10 DIV 13 + 17 + - 42 * 42 * - SUM( - 41 )
----
-72307

skipif mysql # not compatible
query I rowsort label-4280
SELECT 10 / 13 + 17 + - 42 * 42 * - SUM ( - 41 )
----
-72307

query I rowsort
SELECT DISTINCT - 88 + + + 8 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL + COUNT( * ) + - ( - + 96 ) - 44 * + 74
----
-3159

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + COUNT ( * ) + - ( - + 96 ) - 44 * + 74
----
-3159

query I rowsort
SELECT 29 * + - 14 col1
----
-406

query I rowsort
SELECT + 45 + + 83
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4285
SELECT - 54 DIV 1 AS col2, SUM( - - 87 ) AS col0
----
-54
87

skipif mysql # not compatible
query II rowsort label-4285
SELECT - 54 / 1 AS col2, SUM ( - - 87 ) AS col0
----
-54
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL - COUNT( * ) + - - 94 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - COUNT ( * ) + - - 94 AS col0
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4287
SELECT ALL COUNT( * ) DIV - - 24 * - 8, 72 AS col2
----
0
72

skipif mysql # not compatible
query II rowsort label-4287
SELECT ALL COUNT ( * ) / - - 24 * - 8, 72 AS col2
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT MIN( DISTINCT - + 17 ) + + MIN( DISTINCT + + 49 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4288
SELECT MIN ( DISTINCT - + 17 ) + + MIN ( DISTINCT + + 49 ) AS col0
----
32

query I rowsort
SELECT DISTINCT - 4 * - - 28 AS col2
----
-112

query I rowsort
SELECT + COALESCE ( + - COALESCE ( - 94, - + 11 ), - 78 ) * 58 + - + 39 AS col2
----
5413

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT COUNT( * ) * + 54
----
54

skipif mysql # not compatible
query I rowsort label-4291
SELECT COUNT ( * ) * + 54
----
54

query I rowsort
SELECT ALL 98 * 32
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT COUNT( * ) + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4293
SELECT COUNT ( * ) + 16 AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4294
SELECT 4, + COUNT( * ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-4294
SELECT 4, + COUNT ( * ) AS col1
----
4
1

query I rowsort
SELECT 55 + 20 col2
----
75

query I rowsort
SELECT DISTINCT 92 - + 87
----
5

query I rowsort
SELECT ALL 21 - - ( - + NULLIF ( + - 70, - - 68 ) ) AS col2
----
91

query I rowsort
SELECT 90 + - 98 + + 24 * + 2
----
40

query I rowsort
SELECT 93 * + 6 * + - 67
----
-37386

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT 0 + + + SUM( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4300
SELECT 0 + + + SUM ( - 35 )
----
-35

query I rowsort
SELECT 85 col0
----
85

query I rowsort
SELECT DISTINCT - 97 * + - 2 col1
----
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4303
SELECT MIN( DISTINCT - 57 ) DIV MIN( DISTINCT + + 66 ) * - 48 + - + 12, + ( + 39 ) AS col0
----
-12
39

skipif mysql # not compatible
query II rowsort label-4303
SELECT MIN ( DISTINCT - 57 ) / MIN ( DISTINCT + + 66 ) * - 48 + - + 12, + ( + 39 ) AS col0
----
-12
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT 19 * - + COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4304
SELECT 19 * - + COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT 46 + - + COUNT( * ) * 78
----
-32

skipif mysql # not compatible
query I rowsort label-4305
SELECT 46 + - + COUNT ( * ) * 78
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT ALL + CAST( 33 AS SIGNED ) + 36 * 99 + - 64
----
3533

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL + CAST ( 33 AS INTEGER ) + 36 * 99 + - 64
----
3533

query II rowsort
SELECT - 56, 25 * 81 + + + 67 AS col0
----
-56
2092

query I rowsort
SELECT ALL - + 5 + - 98
----
-103

query I rowsort
SELECT ALL - + 19
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT 64 * MIN( 34 ) AS col1
----
2176

skipif mysql # not compatible
query I rowsort label-4310
SELECT 64 * MIN ( 34 ) AS col1
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL + + 36 * + 32 * 88 + + 71 + - + 41 + + NULLIF ( - - COUNT( * ), - 32 + + - 66 * COUNT( * ) ) * - + 26 + + 74 - COALESCE ( - 92, + 60 * - 28 + 26 ) AS col2
----
101546

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + + 36 * + 32 * 88 + + 71 + - + 41 + + NULLIF ( - - COUNT ( * ), - 32 + + - 66 * COUNT ( * ) ) * - + 26 + + 74 - COALESCE ( - 92, + 60 * - 28 + 26 ) AS col2
----
101546

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT COALESCE ( - COUNT( DISTINCT 32 ), ( + - 3 ) + - - 76 + + + 1 * - 64, - 4 * - COUNT( ALL - ( - 42 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4312
SELECT COALESCE ( - COUNT ( DISTINCT 32 ), ( + - 3 ) + - - 76 + + + 1 * - 64, - 4 * - COUNT ( ALL - ( - 42 ) ) ) AS col1
----
-1

query I rowsort
SELECT + + 41
----
41

query I rowsort
SELECT ( - - 89 ) AS col0
----
89

query I rowsort
SELECT 44 * - + 27 AS col2
----
-1188

query I rowsort
SELECT DISTINCT + 76 + + 88
----
164

query I rowsort
SELECT ALL - 18 + 69
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT DISTINCT - NULLIF ( + - 91, 59 - 96 + CAST( + 90 AS SIGNED ) * - 58 ) * + 81
----
7371

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT - NULLIF ( + - 91, 59 - 96 + CAST ( + 90 AS INTEGER ) * - 58 ) * + 81
----
7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT DISTINCT - CAST( + - 93 AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - CAST ( + - 93 AS INTEGER ) AS col0
----
93

query I rowsort
SELECT DISTINCT - 45 * + 55 AS col0
----
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4321
SELECT + 98, + CAST( NULL AS SIGNED ) AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-4321
SELECT + 98, + CAST ( NULL AS INTEGER ) AS col0
----
98
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4322
SELECT COUNT( DISTINCT 47 ) col1, + 9 AS col1
----
1
9

skipif mysql # not compatible
query II rowsort label-4322
SELECT COUNT ( DISTINCT 47 ) col1, + 9 AS col1
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL 57 - - - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL 57 - - - COUNT ( * ) AS col2
----
56

query I rowsort
SELECT 59 + + 47 + + ( + + ( + 69 ) )
----
175

query I rowsort
SELECT ALL - 29 AS col1
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-4326
SELECT 51, 41 DIV + 31 AS col2
----
51
1

skipif mysql # not compatible
query II rowsort label-4326
SELECT 51, 41 / + 31 AS col2
----
51
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4327
SELECT ALL - 0 col2, 94 * + CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4327
SELECT ALL - 0 col2, 94 * + CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT ALL + 28 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + 28 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT NULLIF ( + - 59, + + CASE 26 WHEN - 57 / + 23 * - - COUNT( * ) + - - CASE + 63 WHEN + 21 THEN 62 + - ( 53 ) WHEN - - 68 - + MAX( ALL + 16 ) THEN NULL ELSE NULL END * 83 THEN NULL ELSE + 82 - 91 END )
----
-59

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT NULLIF ( + - 59, + + CASE 26 WHEN - 57 / + 23 * - - COUNT ( * ) + - - CASE + 63 WHEN + 21 THEN 62 + - ( 53 ) WHEN - - 68 - + MAX ( ALL + 16 ) THEN NULL ELSE NULL END * 83 THEN NULL ELSE + 82 - 91 END )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL COUNT( * ) * + 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL COUNT ( * ) * + 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT + 3 * 87 * NULLIF ( - + COUNT( * ), + - 33 + + - ( + - 68 ) - - 19 ) AS col1
----
-261

skipif mysql # not compatible
query I rowsort label-4331
SELECT + 3 * 87 * NULLIF ( - + COUNT ( * ), + - 33 + + - ( + - 68 ) - - 19 ) AS col1
----
-261

query I rowsort
SELECT ALL 8 * - 83
----
-664

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT + 73 * + 52 DIV - 1
----
-3796

skipif mysql # not compatible
query I rowsort label-4333
SELECT + 73 * + 52 / - 1
----
-3796

query I rowsort
SELECT + 90 - + 54
----
36

query I rowsort
SELECT DISTINCT 2 * 74 col1
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4336
SELECT + CAST( - 90 AS SIGNED ) * COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4336
SELECT + CAST ( - 90 AS INTEGER ) * COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + 27 * + 30 * - MAX( DISTINCT - ( - 20 ) )
----
-16200

skipif mysql # not compatible
query I rowsort label-4337
SELECT + 27 * + 30 * - MAX ( DISTINCT - ( - 20 ) )
----
-16200

onlyif mysql # aggregate syntax: 
query II rowsort label-4338
SELECT ALL - ( - COUNT( * ) ) + + ( + ( 21 ) ) * - 95 AS col0, 53 AS col1
----
-1994
53

skipif mysql # not compatible
query II rowsort label-4338
SELECT ALL - ( - COUNT ( * ) ) + + ( + ( 21 ) ) * - 95 AS col0, 53 AS col1
----
-1994
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4339
SELECT SUM( + CAST( - 47 AS SIGNED ) )
----
-47

skipif mysql # not compatible
query I rowsort label-4339
SELECT SUM ( + CAST ( - 47 AS INTEGER ) )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4340
SELECT DISTINCT + 87 * - COALESCE ( - MIN( DISTINCT - 23 ), - - 64, - 52 DIV + + 81 + - 95 ) AS col2
----
-2001

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + 87 * - COALESCE ( - MIN ( DISTINCT - 23 ), - - 64, - 52 / + + 81 + - 95 ) AS col2
----
-2001

onlyif mysql # aggregate syntax: 
query II rowsort label-4341
SELECT ALL + COUNT( * ) + - + COUNT( * ) AS col1, 70
----
0
70

skipif mysql # not compatible
query II rowsort label-4341
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col1, 70
----
0
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT + - NULLIF ( + 30, + + CAST( + 56 AS SIGNED ) ) - - + 2 + - + 97 + - 43 - - + 29 * - ( - 67 )
----
1775

skipif mysql # not compatible
query I rowsort label-4342
SELECT + - NULLIF ( + 30, + + CAST ( + 56 AS INTEGER ) ) - - + 2 + - + 97 + - 43 - - + 29 * - ( - 67 )
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL - 54 + - 38 + - 70 + + 17 * + + 86 + - + 86 * 91 * CASE 89 WHEN + 2 THEN NULL WHEN MAX( ALL + 1 ) + ( + 73 ) THEN - 12 WHEN + 30 + 88 * + 58 THEN + 56 + 66 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL - 54 + - 38 + - 70 + + 17 * + + 86 + - + 86 * 91 * CASE 89 WHEN + 2 THEN NULL WHEN MAX ( ALL + 1 ) + ( + 73 ) THEN - 12 WHEN + 30 + 88 * + 58 THEN + 56 + 66 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT COUNT( * ) + - 87 + + - COUNT( + + 16 )
----
-87

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT COUNT ( * ) + - 87 + + - COUNT ( + + 16 )
----
-87

query I rowsort
SELECT ALL + - 32 * - 21
----
672

query I rowsort
SELECT ALL - 74 + - - 20 AS col2
----
-54

query I rowsort
SELECT NULLIF ( + + 28, + 6 ) AS col0
----
28

query I rowsort
SELECT ALL 47 + + 36 * - 0 AS col1
----
47

query I rowsort
SELECT + 16 + - - 18
----
34

query II rowsort
SELECT - 46, - 88 AS col2
----
-46
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4351
SELECT + 30 + - 17 - - NULLIF ( COUNT( * ), - 57 * + COUNT( * ) ) * + 79 DIV - 8
----
4

skipif mysql # not compatible
query I rowsort label-4351
SELECT + 30 + - 17 - - NULLIF ( COUNT ( * ), - 57 * + COUNT ( * ) ) * + 79 / - 8
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT + SUM( ( 6 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4352
SELECT + SUM ( ( 6 ) ) AS col0
----
6

query I rowsort
SELECT ALL + 72 * - 53 AS col0
----
-3816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4354
SELECT COUNT( * ) DIV - - ( 84 ) + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4354
SELECT COUNT ( * ) / - - ( 84 ) + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4355
SELECT 2 * + - COALESCE ( + 76, + 45 * MAX( 14 ) + + 56 + - COUNT( * ) * 80, - + COUNT( * ) ) + - 56 DIV + - 8 - - 98 col0
----
-47

skipif mysql # not compatible
query I rowsort label-4355
SELECT 2 * + - COALESCE ( + 76, + 45 * MAX ( 14 ) + + 56 + - COUNT ( * ) * 80, - + COUNT ( * ) ) + - 56 / + - 8 - - 98 col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT ALL - 77 * - 55 - - - 4 + + + 47 * + MIN( + 13 )
----
4842

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL - 77 * - 55 - - - 4 + + + 47 * + MIN ( + 13 )
----
4842

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT - - COUNT( * ) * + 8 * 53 AS col0
----
424

skipif mysql # not compatible
query I rowsort label-4357
SELECT - - COUNT ( * ) * + 8 * 53 AS col0
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT ALL 77 * ( - 15 ) + - - COUNT( * ) + - 60 AS col0
----
-1214

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL 77 * ( - 15 ) + - - COUNT ( * ) + - 60 AS col0
----
-1214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT - + CAST( NULL AS SIGNED ) + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT - + CAST ( NULL AS INTEGER ) + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL 49 * - 74 + - - 49 - - 92 + SUM( ALL - - 97 ) * + - 30
----
-6395

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL 49 * - 74 + - - 49 - - 92 + SUM ( ALL - - 97 ) * + - 30
----
-6395

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL + - SUM( + 19 ) * - 19 AS col0
----
361

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL + - SUM ( + 19 ) * - 19 AS col0
----
361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT DISTINCT - - 75 * + 50 - - 29 * 71 * COUNT( * ) DIV ( + COUNT( + + 75 ) )
----
5809

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT - - 75 * + 50 - - 29 * 71 * COUNT ( * ) / ( + COUNT ( + + 75 ) )
----
5809

onlyif mysql # DIV for integer division: 
query I rowsort label-4363
SELECT ALL + 56 DIV - 35 + + 86
----
85

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + 56 / - 35 + + 86
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4364
SELECT + 93 DIV 85 + - - 66
----
67

skipif mysql # not compatible
query I rowsort label-4364
SELECT + 93 / 85 + - - 66
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4365
SELECT ALL ( CAST( NULL AS SIGNED ) ) * + COUNT( DISTINCT + 50 ) - + - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * + COUNT ( DISTINCT + 50 ) - + - 6 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4366
SELECT - CAST( + 43 AS SIGNED ) + + + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4366
SELECT - CAST ( + 43 AS INTEGER ) + + + COUNT ( * )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4367
SELECT - CAST( + ( - + 14 ) AS SIGNED ) / CASE - 72 WHEN - - 8 THEN NULL WHEN + 6 THEN + + AVG ( 46 ) / 76 ELSE NULL END * - - 60 + 32 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT - CAST ( + ( - + 14 ) AS INTEGER ) / CASE - 72 WHEN - - 8 THEN NULL WHEN + 6 THEN + + AVG ( 46 ) / 76 ELSE NULL END * - - 60 + 32 * - 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4368
SELECT ALL + 87 DIV + 58 DIV - - COUNT( * ), + 78 AS col0
----
1
78

skipif mysql # not compatible
query II rowsort label-4368
SELECT ALL + 87 / + 58 / - - COUNT ( * ), + 78 AS col0
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT + 52 * + COUNT( * ) + - + 25
----
27

skipif mysql # not compatible
query I rowsort label-4369
SELECT + 52 * + COUNT ( * ) + - + 25
----
27

query I rowsort
SELECT NULLIF ( 95, 85 * + 0 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL COUNT( * ) * + ( - 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL COUNT ( * ) * + ( - 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT - COALESCE ( MIN( - 22 ), + 47 * + + ( + ( + ( - 96 ) ) ), + + 37 ) * - - ( - 82 )
----
-1804

skipif mysql # not compatible
query I rowsort label-4372
SELECT - COALESCE ( MIN ( - 22 ), + 47 * + + ( + ( + ( - 96 ) ) ), + + 37 ) * - - ( - 82 )
----
-1804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT ALL + 24 * + 4 * COALESCE ( + + 10, + 93, - - 48 + - 32 + + 93 - 45 * 95 + - COUNT( * ) ) / + COUNT( + 92 ) + CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + 24 * + 4 * COALESCE ( + + 10, + 93, - - 48 + - 32 + + 93 - 45 * 95 + - COUNT ( * ) ) / + COUNT ( + 92 ) + CAST ( NULL AS INTEGER ) * - 74
----
NULL

query I rowsort
SELECT DISTINCT + 23 AS col1
----
23

query I rowsort
SELECT DISTINCT + 15 * 51 * + - NULLIF ( + + 12, 94 ) * - + 38
----
348840

query I rowsort
SELECT + 79 * - 98 AS col2
----
-7742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT DISTINCT CAST( - + 84 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT CAST ( - + 84 AS INTEGER ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT COUNT( + 6 ) col1, 22 * + 42 * + 93 * + 23
----
1
1976436

skipif mysql # not compatible
query II rowsort label-4378
SELECT COUNT ( + 6 ) col1, 22 * + 42 * + 93 * + 23
----
1
1976436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4379
SELECT - CAST( NULL AS SIGNED ) * + MIN( ALL + 73 ) AS col1, - 24 + + ( 39 ) AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-4379
SELECT - CAST ( NULL AS INTEGER ) * + MIN ( ALL + 73 ) AS col1, - 24 + + ( 39 ) AS col0
----
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL ( - + 40 ) + + COUNT( * ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL ( - + 40 ) + + COUNT ( * ) col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT DISTINCT CAST( + 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT CAST ( + 89 AS INTEGER )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL - 25 + - COUNT( * ) * + 25
----
-50

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL - 25 + - COUNT ( * ) * + 25
----
-50

query I rowsort
SELECT + NULLIF ( 97, 84 ) + - 59 + + + 71 + 88 * + 22
----
2045

onlyif mysql # DIV for integer division: 
query I rowsort label-4384
SELECT ALL + - 25 DIV - 51 * - + 2
----
0

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + - 25 / - 51 * - + 2
----
0

query I rowsort
SELECT ALL 17 + + - ( - - 5 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + COUNT( - - 61 ) + + - 85 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4386
SELECT + COUNT ( - - 61 ) + + - 85 AS col2
----
-84

query I rowsort
SELECT DISTINCT 35 * + 51 AS col0
----
1785

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT ( + COUNT( * ) ) AS col2, - 89
----
1
-89

skipif mysql # not compatible
query II rowsort label-4388
SELECT ( + COUNT ( * ) ) AS col2, - 89
----
1
-89

query I rowsort
SELECT - + 1 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4390
SELECT + - 12 / - AVG ( - 66 ) * - CAST( NULL AS SIGNED ) - - - SUM( DISTINCT - 0 ) + - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT + - 12 / - AVG ( - 66 ) * - CAST ( NULL AS INTEGER ) - - - SUM ( DISTINCT - 0 ) + - - 84
----
NULL

query I rowsort
SELECT + + 6 + + 16 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4392
SELECT DISTINCT + COUNT( * ) * ( - 20 ) * - + 95 + - + 1, SUM( ALL 46 ) DIV - 50 AS col0
----
1899
0

skipif mysql # not compatible
query II rowsort label-4392
SELECT DISTINCT + COUNT ( * ) * ( - 20 ) * - + 95 + - + 1, SUM ( ALL 46 ) / - 50 AS col0
----
1899
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL + NULLIF ( + 7, 77 ) * COUNT( * ) + - 48 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + NULLIF ( + 7, 77 ) * COUNT ( * ) + - 48 AS col1
----
-41

query I rowsort
SELECT + + 37 * - 65 + + + 59
----
-2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4395
SELECT - COALESCE ( - ( + - 59 ), + 12, + NULLIF ( - - ( - NULLIF ( - 14, + 31 ) ), + + COUNT( * ) + - CAST( 60 AS SIGNED ) ) )
----
-59

skipif mysql # not compatible
query I rowsort label-4395
SELECT - COALESCE ( - ( + - 59 ), + 12, + NULLIF ( - - ( - NULLIF ( - 14, + 31 ) ), + + COUNT ( * ) + - CAST ( 60 AS INTEGER ) ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT + 64 * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4396
SELECT + 64 * - COUNT ( * )
----
-64

query I rowsort
SELECT ALL - NULLIF ( + 18, 37 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT DISTINCT + NULLIF ( - + 60, 52 ) AS col0, COUNT( * )
----
-60
1

skipif mysql # not compatible
query II rowsort label-4398
SELECT DISTINCT + NULLIF ( - + 60, 52 ) AS col0, COUNT ( * )
----
-60
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4399
SELECT ALL + 30 DIV 74 - - - MIN( ALL 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + 30 / 74 - - - MIN ( ALL 52 )
----
-52

query II rowsort
SELECT + - 10 * 28, + 65 AS col1
----
-280
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4401
SELECT DISTINCT + COALESCE ( - COALESCE ( + + COUNT( * ), + - 82 DIV + - 45 DIV 21 + ( - 34 ) ), - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT + COALESCE ( - COALESCE ( + + COUNT ( * ), + - 82 / + - 45 / 21 + ( - 34 ) ), - 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + + COUNT( * ) - - 82
----
83

skipif mysql # not compatible
query I rowsort label-4402
SELECT + + COUNT ( * ) - - 82
----
83

query II rowsort
SELECT ALL + 20 AS col0, - 73
----
20
-73

query II rowsort
SELECT ALL + 0 * - - 33 * + 35 AS col1, + 39
----
0
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT CAST( - 45 AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4405
SELECT CAST ( - 45 AS INTEGER ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT + ( - 31 ) * - 50 * - CAST( NULL AS SIGNED ) - 88 - + 54 + + 12 - - 13 * COALESCE ( - 84, + COUNT( * ), - 6 ) * - 65 * + 93 - + - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT + ( - 31 ) * - 50 * - CAST ( NULL AS INTEGER ) - 88 - + 54 + + 12 - - 13 * COALESCE ( - 84, + COUNT ( * ), - 6 ) * - 65 * + 93 - + - 93 AS col1
----
NULL

query II rowsort
SELECT + 49 AS col2, 76 + - ( 18 )
----
49
58

query I rowsort
SELECT DISTINCT 80 * 48
----
3840

query I rowsort
SELECT ALL 98 * - 51 * - + 1 * 25 AS col1
----
124950

query I rowsort
SELECT DISTINCT - 23 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4411
SELECT 20 AS col1, CASE MIN( + CAST( - - 42 AS SIGNED ) ) WHEN ( - - 77 ) + - 46 THEN + COALESCE ( - 96, - COALESCE ( + COALESCE ( 78, 96, + 41 ), - 50 ) ) WHEN 55 THEN - - 16 + 90 ELSE COUNT( * ) END * + 54
----
20
54

skipif mysql # not compatible
query II rowsort label-4411
SELECT 20 AS col1, CASE MIN ( + CAST ( - - 42 AS INTEGER ) ) WHEN ( - - 77 ) + - 46 THEN + COALESCE ( - 96, - COALESCE ( + COALESCE ( 78, 96, + 41 ), - 50 ) ) WHEN 55 THEN - - 16 + 90 ELSE COUNT ( * ) END * + 54
----
20
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4412
SELECT ALL - 39 AS col2, + COUNT( * ) * + 93
----
-39
93

skipif mysql # not compatible
query II rowsort label-4412
SELECT ALL - 39 AS col2, + COUNT ( * ) * + 93
----
-39
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4413
SELECT 84 + + 52 + 11 + 45 DIV - 79
----
147

skipif mysql # not compatible
query I rowsort label-4413
SELECT 84 + + 52 + 11 + 45 / - 79
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT 90 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4414
SELECT 90 * + COUNT ( * )
----
90

query I rowsort
SELECT - 9 * 28 + + NULLIF ( 77, + 3 )
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-4416
SELECT DISTINCT - COUNT( * ) AS col1, - 4 + 26 - + + 64 * - 39 * + + 70 + ( 41 ) + 13 * - 33 + COUNT( * ) AS col2
----
-1
174355

skipif mysql # not compatible
query II rowsort label-4416
SELECT DISTINCT - COUNT ( * ) AS col1, - 4 + 26 - + + 64 * - 39 * + + 70 + ( 41 ) + 13 * - 33 + COUNT ( * ) AS col2
----
-1
174355

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL - COUNT( * ) + 66
----
65

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL - COUNT ( * ) + 66
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT DISTINCT - COUNT( * ) + + + 83 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - COUNT ( * ) + + + 83 AS col2
----
82

query II rowsort
SELECT - 38, 54 AS col2
----
-38
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - SUM( - ( 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-4420
SELECT - SUM ( - ( 4 ) )
----
4

query I rowsort
SELECT ALL - - 61 + + - 89 AS col1
----
-28

query I rowsort
SELECT ALL + 38 * + 59 + + 69 * - 18 * - 77 AS col0
----
97876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT CAST( - - 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-4423
SELECT CAST ( - - 73 AS INTEGER )
----
73

query I rowsort
SELECT DISTINCT + + 48 * + 44
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT + CASE + 6 WHEN + 35 THEN NULL WHEN - 9 * - COUNT( DISTINCT - 83 ) THEN COUNT( * ) END - + + 64 / - - 94 * - - NULLIF ( - 12, - 28 - + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT + CASE + 6 WHEN + 35 THEN NULL WHEN - 9 * - COUNT ( DISTINCT - 83 ) THEN COUNT ( * ) END - + + 64 / - - 94 * - - NULLIF ( - 12, - 28 - + 5 )
----
NULL

query I rowsort
SELECT 73 * + 61 col0
----
4453

onlyif mysql # aggregate syntax: 
query II rowsort label-4427
SELECT - NULLIF ( 85, - 7 ) AS col1, + 82 + + - 44 + COUNT( * )
----
-85
39

skipif mysql # not compatible
query II rowsort label-4427
SELECT - NULLIF ( 85, - 7 ) AS col1, + 82 + + - 44 + COUNT ( * )
----
-85
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT + 12 + + - CAST( + COUNT( * ) AS SIGNED ) * + CASE 42 WHEN - + 91 * 90 + - - NULLIF ( + MIN( + CAST( NULL AS SIGNED ) ), 43 * + 96 * + CAST( NULL AS SIGNED ) + + 36 ) THEN COUNT( * ) WHEN - COUNT( * ) * + - 94 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT + 12 + + - CAST ( + COUNT ( * ) AS INTEGER ) * + CASE 42 WHEN - + 91 * 90 + - - NULLIF ( + MIN ( + CAST ( NULL AS INTEGER ) ), 43 * + 96 * + CAST ( NULL AS INTEGER ) + + 36 ) THEN COUNT ( * ) WHEN - COUNT ( * ) * + - 94 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4429
SELECT - 82 * + + 56 + 67 * + 17 * - ( - 5 ) + + CASE + + COUNT( * ) WHEN + 52 THEN + 37 / + 19 * - 28 + + 28 + - COALESCE ( 90, - CAST( NULL AS SIGNED ) * - - 2 * + 34 * + 21 + 87 * 40 ) * 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT - 82 * + + 56 + 67 * + 17 * - ( - 5 ) + + CASE + + COUNT ( * ) WHEN + 52 THEN + 37 / + 19 * - 28 + + 28 + - COALESCE ( 90, - CAST ( NULL AS INTEGER ) * - - 2 * + 34 * + 21 + 87 * 40 ) * 17 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT ALL 65 - + 75 DIV 87 DIV + 22 * - - 31
----
65

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL 65 - + 75 / 87 / + 22 * - - 31
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4431
SELECT ALL - COUNT( * ) DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - COUNT ( * ) / 84 AS col1
----
0

query I rowsort
SELECT - NULLIF ( 99, 97 ) * + 57 * - ( NULLIF ( 10, + 10 + 86 + + 57 / + 31 ) ) AS col0
----
56430

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT DISTINCT + + 43 - + 90 - + COUNT( * ), CASE + - 33 WHEN + MAX( + 82 ) THEN NULL ELSE - 92 END AS col0
----
-48
-92

skipif mysql # not compatible
query II rowsort label-4433
SELECT DISTINCT + + 43 - + 90 - + COUNT ( * ), CASE + - 33 WHEN + MAX ( + 82 ) THEN NULL ELSE - 92 END AS col0
----
-48
-92

query II rowsort
SELECT - - 42 AS col0, - 15
----
42
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT DISTINCT - 78 DIV - - 99
----
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT - 78 / - - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL + 20 - 65 + - CASE + ( 64 ) WHEN 51 / + COUNT( * ) THEN NULL ELSE + + AVG ( - + 57 ) END * CASE + 80 WHEN + 78 THEN - 0 WHEN - - COALESCE ( 46, - - 77, + 21 ) * 99 + COUNT( * ) + - 28 * 35 THEN NULL END / 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL + 20 - 65 + - CASE + ( 64 ) WHEN 51 / + COUNT ( * ) THEN NULL ELSE + + AVG ( - + 57 ) END * CASE + 80 WHEN + 78 THEN - 0 WHEN - - COALESCE ( 46, - - 77, + 21 ) * 99 + COUNT ( * ) + - 28 * 35 THEN NULL END / 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4437
SELECT + 82, 96 + - 13 + COUNT( * ) AS col1
----
82
84

skipif mysql # not compatible
query II rowsort label-4437
SELECT + 82, 96 + - 13 + COUNT ( * ) AS col1
----
82
84

query I rowsort
SELECT + 14 + - 60 * - 34 AS col1
----
2054

query I rowsort
SELECT DISTINCT 54 * 44 col0
----
2376

onlyif mysql # aggregate syntax: 
query II rowsort label-4440
SELECT ALL - COUNT( * ) AS col2, + 78 AS col0
----
-1
78

skipif mysql # not compatible
query II rowsort label-4440
SELECT ALL - COUNT ( * ) AS col2, + 78 AS col0
----
-1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT + COUNT( * ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-4441
SELECT + COUNT ( * ) + + 77
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT 84 * COUNT( * ) - - + 77 AS col2
----
161

skipif mysql # not compatible
query I rowsort label-4442
SELECT 84 * COUNT ( * ) - - + 77 AS col2
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4443
SELECT DISTINCT - CAST( 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT - CAST ( 91 AS INTEGER )
----
-91

query I rowsort
SELECT DISTINCT - 87 * + 42 AS col2
----
-3654

query I rowsort
SELECT ( + 96 ) * 10 + - COALESCE ( + 92, - + 42 ) AS col2
----
868

query I rowsort
SELECT ALL 39 * - 9
----
-351

query I rowsort
SELECT DISTINCT 57 * + ( 25 )
----
1425

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT ALL 80 + - COUNT( * ) AS col2, + ( - ( - - ( 66 ) ) )
----
79
-66

skipif mysql # not compatible
query II rowsort label-4448
SELECT ALL 80 + - COUNT ( * ) AS col2, + ( - ( - - ( 66 ) ) )
----
79
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT CAST( NULL AS SIGNED ) * + 45 + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT CAST ( NULL AS INTEGER ) * + 45 + - 90 AS col2
----
NULL

query I rowsort
SELECT ALL - 29 col0
----
-29

query I rowsort
SELECT DISTINCT - 32 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT COALESCE ( - - 96, + + 59, - + 21 * - 72 ) + + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4452
SELECT COALESCE ( - - 96, + + 59, - + 21 * - 72 ) + + COUNT ( * ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL MAX( + 86 ) + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL MAX ( + 86 ) + COUNT ( * )
----
87

query I rowsort
SELECT ALL 44 + + - 9 * + 39
----
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ( - 82 ) * 77 + - + MAX( DISTINCT + - 22 ) + 55
----
-6237

skipif mysql # not compatible
query I rowsort label-4455
SELECT ( - 82 ) * 77 + - + MAX ( DISTINCT + - 22 ) + 55
----
-6237

query I rowsort
SELECT DISTINCT 79 + + 16
----
95

query I rowsort
SELECT DISTINCT - 32 col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT ALL 50 + - 94 + - CAST( 70 AS SIGNED )
----
-114

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL 50 + - 94 + - CAST ( 70 AS INTEGER )
----
-114

query I rowsort
SELECT ALL - 34 + - 86
----
-120

query I rowsort
SELECT ALL - ( 74 )
----
-74

query I rowsort
SELECT 25 + - 34 AS col2
----
-9

query I rowsort
SELECT ALL - 63 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT - MAX( ALL + + ( - 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT - MAX ( ALL + + ( - 58 ) )
----
58

query I rowsort
SELECT DISTINCT 25 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4465
SELECT CAST( 20 AS SIGNED ) * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4465
SELECT CAST ( 20 AS INTEGER ) * COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT - 96 + + + COUNT( * ) * 39 + + + 88
----
31

skipif mysql # not compatible
query I rowsort label-4466
SELECT - 96 + + + COUNT ( * ) * 39 + + + 88
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT 16 + ( + SUM( + + 63 ) ) * - ( COUNT( * ) ) * - 20 + + COUNT( ALL - + NULLIF ( - + 84, - 8 - + + 26 ) ) + - 13 * 95 + + 95
----
137

skipif mysql # not compatible
query I rowsort label-4467
SELECT 16 + ( + SUM ( + + 63 ) ) * - ( COUNT ( * ) ) * - 20 + + COUNT ( ALL - + NULLIF ( - + 84, - 8 - + + 26 ) ) + - 13 * 95 + + 95
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4468
SELECT DISTINCT - 93 * - ( + 59 ) + 57 DIV - COUNT( * )
----
5430

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT - 93 * - ( + 59 ) + 57 / - COUNT ( * )
----
5430

query I rowsort
SELECT DISTINCT - 23 AS col2
----
-23

query I rowsort
SELECT - 37 * + + 91
----
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + COUNT( * ) + + ( COUNT( * ) ) + + MIN( - + 54 ) + + 64 * - COUNT( ALL + - 12 ) * - COUNT( * ) - + ( COUNT( - 71 ) ) + 91 + - 76 * + - 73 + 85 - - 23 * + 76 AS col0
----
7483

skipif mysql # not compatible
query I rowsort label-4471
SELECT + COUNT ( * ) + + ( COUNT ( * ) ) + + MIN ( - + 54 ) + + 64 * - COUNT ( ALL + - 12 ) * - COUNT ( * ) - + ( COUNT ( - 71 ) ) + 91 + - 76 * + - 73 + 85 - - 23 * + 76 AS col0
----
7483

query I rowsort
SELECT ALL - + 53 * ( - COALESCE ( + 78, + 81, - 10, 94 ) ) col2
----
4134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT - 85 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT - 85 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 44 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT MIN( DISTINCT 94 ) + + - 68 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4475
SELECT MIN ( DISTINCT 94 ) + + - 68 AS col2
----
26

query I rowsort
SELECT + ( 80 ) * - 10 AS col0
----
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4477
SELECT CAST( NULL AS SIGNED ) * + 37 - - + CASE 85 WHEN + 28 * + 98 THEN 58 END AS col0, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4477
SELECT CAST ( NULL AS INTEGER ) * + 37 - - + CASE 85 WHEN + 28 * + 98 THEN 58 END AS col0, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT ALL - SUM( + + CAST( NULL AS SIGNED ) ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL - SUM ( + + CAST ( NULL AS INTEGER ) ) * + 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4479
SELECT 64 + + - ( - 89 ) + - - COUNT( * ) DIV + + 99 AS col2, 18 - + 59, 3 col1
----
153
-41
3

skipif mysql # not compatible
query III rowsort label-4479
SELECT 64 + + - ( - 89 ) + - - COUNT ( * ) / + + 99 AS col2, 18 - + 59, 3 col1
----
153
-41
3

query I rowsort
SELECT - ( + 25 )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT DISTINCT + COALESCE ( - 45, - + 6 DIV + 92, - 45 + + 4 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT + COALESCE ( - 45, - + 6 / + 92, - 45 + + 4 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL - SUM( - + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - SUM ( - + 12 )
----
12

query I rowsort
SELECT - 39 * - 78 + - 56 AS col2
----
2986

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT DISTINCT 46 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT 46 / + + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL 81 + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL 81 + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT + 4 + + 99 + - + MAX( DISTINCT - - 35 ) + + COUNT( * ) AS col1, + 73 * - COUNT( DISTINCT + 77 ) AS col0
----
69
-73

skipif mysql # not compatible
query II rowsort label-4486
SELECT + 4 + + 99 + - + MAX ( DISTINCT - - 35 ) + + COUNT ( * ) AS col1, + 73 * - COUNT ( DISTINCT + 77 ) AS col0
----
69
-73

query I rowsort
SELECT DISTINCT 27 * - + 52 + + 91 AS col2
----
-1313

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4488
SELECT ALL CAST( NULL AS SIGNED ) * + + 13 + + + 79, CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4488
SELECT ALL CAST ( NULL AS INTEGER ) * + + 13 + + + 79, CAST ( NULL AS REAL ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4489
SELECT ALL 1 * + 16 + + COUNT( DISTINCT - - 26 ) + + 1, COUNT( * ) AS col1
----
18
1

skipif mysql # not compatible
query II rowsort label-4489
SELECT ALL 1 * + 16 + + COUNT ( DISTINCT - - 26 ) + + 1, COUNT ( * ) AS col1
----
18
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT - CASE + 33 WHEN + 72 THEN - 69 WHEN + - 92 * - - CAST( NULL AS SIGNED ) * - 52 + + 90 * + MAX( DISTINCT 71 ) + - 8 * + + 35 THEN NULL END - + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4490
SELECT - CASE + 33 WHEN + 72 THEN - 69 WHEN + - 92 * - - CAST ( NULL AS INTEGER ) * - 52 + + 90 * + MAX ( DISTINCT 71 ) + - 8 * + + 35 THEN NULL END - + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT 38 * 73 - - 66 * + ( - + COUNT( * ) ) + - 8 + + 83 AS col2
----
2783

skipif mysql # not compatible
query I rowsort label-4491
SELECT 38 * 73 - - 66 * + ( - + COUNT ( * ) ) + - 8 + + 83 AS col2
----
2783

query I rowsort
SELECT ALL 38 * - - 34 AS col2
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL - 93 * + + COUNT( ALL + - 54 )
----
-93

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL - 93 * + + COUNT ( ALL + - 54 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - 47 * COUNT( * ) + + - 41 - 23 * 48 AS col2
----
-1192

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - 47 * COUNT ( * ) + + - 41 - 23 * 48 AS col2
----
-1192

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT + NULLIF ( - NULLIF ( COUNT( * ), 55 ), + - 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-4495
SELECT + NULLIF ( - NULLIF ( COUNT ( * ), 55 ), + - 7 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT + 73 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT + 73 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4497
SELECT ALL + 64 AS col0, COUNT( * ) + 17 + + + MIN( DISTINCT 24 ) DIV 48 * - - 92
----
64
18

skipif mysql # not compatible
query II rowsort label-4497
SELECT ALL + 64 AS col0, COUNT ( * ) + 17 + + + MIN ( DISTINCT 24 ) / 48 * - - 92
----
64
18

query I rowsort
SELECT CASE - 81 WHEN + 32 THEN 6 END
----
NULL

query I rowsort
SELECT ALL + 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT MAX( + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-4500
SELECT MAX ( + 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4501
SELECT ALL + 79 AS col2, 29 * - 94 + COUNT( * )
----
79
-2725

skipif mysql # not compatible
query II rowsort label-4501
SELECT ALL + 79 AS col2, 29 * - 94 + COUNT ( * )
----
79
-2725

query I rowsort
SELECT + + 68 * + 36 - 46 + + ( 92 )
----
2494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT DISTINCT + 11 * - CAST( + + 69 AS SIGNED ) - 32
----
-791

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT + 11 * - CAST ( + + 69 AS INTEGER ) - 32
----
-791

query I rowsort
SELECT ALL COALESCE ( - 61, - 90 + - 29 ) * CASE + - 98 WHEN - 48 - - CASE + - 45 WHEN 47 THEN + 52 ELSE NULL END + - 2 + - 65 THEN + 66 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4505
SELECT + - CAST( + - 40 AS SIGNED ) * + - CAST( 43 AS SIGNED ) + + SUM( ALL - ( + ( - ( - 10 ) ) ) ) + + 89
----
-1641

skipif mysql # not compatible
query I rowsort label-4505
SELECT + - CAST ( + - 40 AS INTEGER ) * + - CAST ( 43 AS INTEGER ) + + SUM ( ALL - ( + ( - ( - 10 ) ) ) ) + + 89
----
-1641

onlyif mysql # DIV for integer division: 
query I rowsort label-4506
SELECT ALL - 44 DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL - 44 / - 51 AS col2
----
0

query I rowsort
SELECT DISTINCT + - 68 AS col1
----
-68

query I rowsort
SELECT DISTINCT 86 - + - 9
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL - 95 * + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - 95 * + COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT DISTINCT - SUM( - 30 ) col2
----
30

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - SUM ( - 30 ) col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT + 83 - 78 - + NULLIF ( - - 25, 73 * 1 + COUNT( * ) + + 51 )
----
-20

skipif mysql # not compatible
query I rowsort label-4511
SELECT + 83 - 78 - + NULLIF ( - - 25, 73 * 1 + COUNT ( * ) + + 51 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT + 87 DIV COALESCE ( + NULLIF ( - 39, 10 + - 2 ), + 80, 52 ) + + COUNT( 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-4512
SELECT + 87 / COALESCE ( + NULLIF ( - 39, 10 + - 2 ), + 80, 52 ) + + COUNT ( 46 )
----
-1

query I rowsort
SELECT - 57 * - 67
----
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT + CASE 8 WHEN 24 THEN NULL WHEN 88 + + + MIN( + - 27 ) * + 5 THEN - 49 * + 89 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4514
SELECT + CASE 8 WHEN 24 THEN NULL WHEN 88 + + + MIN ( + - 27 ) * + 5 THEN - 49 * + 89 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT DISTINCT + + 13 DIV + 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT + + 13 / + 18 AS col2
----
0

query I rowsort
SELECT + 10 + + ( + 0 )
----
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4517
SELECT - + 73 / + CAST( NULL AS SIGNED ) * 15 * 51 - + - CAST( NULL AS DECIMAL ) AS col0, 52 * 13 AS col0
----
NULL
676

skipif mysql # not compatible
query II rowsort label-4517
SELECT - + 73 / + CAST ( NULL AS INTEGER ) * 15 * 51 - + - CAST ( NULL AS REAL ) AS col0, 52 * 13 AS col0
----
NULL
676

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT - - 98 * + - 61 - - SUM( ALL + - 36 )
----
-6014

skipif mysql # not compatible
query I rowsort label-4518
SELECT - - 98 * + - 61 - - SUM ( ALL + - 36 )
----
-6014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT - + 82 - - + CAST( + + 70 AS SIGNED ) + - 55 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4519
SELECT - + 82 - - + CAST ( + + 70 AS INTEGER ) + - 55 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL MAX( ALL - - 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL MAX ( ALL - - 63 ) AS col0
----
63

query I rowsort
SELECT DISTINCT - 78 * - + 95 * 17 AS col0
----
125970

query I rowsort
SELECT ALL - 69 + - + 68 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT - 51 + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-4523
SELECT - 51 + - COUNT ( * )
----
-52

query I rowsort
SELECT - 57 - 9
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT - NULLIF ( + 98, + SUM( ALL 18 ) ) + - 24 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-4525
SELECT - NULLIF ( + 98, + SUM ( ALL 18 ) ) + - 24 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL + CASE + 56 WHEN - 37 THEN - COUNT( * ) * - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + CASE + 56 WHEN - 37 THEN - COUNT ( * ) * - 26 END
----
NULL

query I rowsort
SELECT DISTINCT + 61 * - 85 AS col1
----
-5185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4528
SELECT DISTINCT COUNT( * ) DIV - - ( + 6 ) + + - 92 + 76
----
-16

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT COUNT ( * ) / - - ( + 6 ) + + - 92 + 76
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4529
SELECT CAST( NULL AS SIGNED ) AS col2, 24 + + - 36 + + 17
----
NULL
5

skipif mysql # not compatible
query II rowsort label-4529
SELECT CAST ( NULL AS INTEGER ) AS col2, 24 + + - 36 + + 17
----
NULL
5

query II rowsort
SELECT + NULLIF ( - 38, 40 * ( + 38 ) + - 93 ) AS col1, 34 + 36
----
-38
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4531
SELECT ALL + 70 AS col0, NULLIF ( - 39, COUNT( * ) )
----
70
-39

skipif mysql # not compatible
query II rowsort label-4531
SELECT ALL + 70 AS col0, NULLIF ( - 39, COUNT ( * ) )
----
70
-39

query I rowsort
SELECT - 61 * - + 56 AS col2
----
3416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT ( + + COALESCE ( 13, 65, CAST( NULL AS SIGNED ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-4533
SELECT ( + + COALESCE ( 13, 65, CAST ( NULL AS INTEGER ) ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL COUNT( * ) * COUNT( * ) * - SUM( + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL COUNT ( * ) * COUNT ( * ) * - SUM ( + 14 )
----
-14

query I rowsort
SELECT 99 * - 78 * + 33 + + 42
----
-254784

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ( - MIN( + + ( + ( - 96 ) ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-4536
SELECT ( - MIN ( + + ( + ( - 96 ) ) ) )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4537
SELECT ALL + - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) / COALESCE ( + + 34, + COUNT( * ) / 33 * + 34 * + 4 * - COUNT( * ) + - 15 + - ( 92 ), - - 7 - + 96 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4537
SELECT ALL + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / COALESCE ( + + 34, + COUNT ( * ) / 33 * + 34 * + 4 * - COUNT ( * ) + - 15 + - ( 92 ), - - 7 - + 96 )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT + 57 * + COALESCE ( - - 6, - COUNT( * ) )
----
342

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT + 57 * + COALESCE ( - - 6, - COUNT ( * ) )
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + 1 + + MIN( ALL + 68 ) + 12 * 91 AS col1
----
1161

skipif mysql # not compatible
query I rowsort label-4539
SELECT + 1 + + MIN ( ALL + 68 ) + 12 * 91 AS col1
----
1161

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL + - ( - ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + - ( - ( - + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT + 95 * - 30 + - 11
----
-2861

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT ALL + COUNT( - - 92 ), - 70 AS col0
----
1
-70

skipif mysql # not compatible
query II rowsort label-4542
SELECT ALL + COUNT ( - - 92 ), - 70 AS col0
----
1
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT - 78 * - 40 * + NULLIF ( - 46, CAST( CASE 89 WHEN 15 + + 74 THEN + - 59 END AS SIGNED ) * + 5 + + 28 ) + + 73
----
-143447

skipif mysql # not compatible
query I rowsort label-4543
SELECT - 78 * - 40 * + NULLIF ( - 46, CAST ( CASE 89 WHEN 15 + + 74 THEN + - 59 END AS INTEGER ) * + 5 + + 28 ) + + 73
----
-143447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4544
SELECT 47 * + 9 - - + 28 * - - COALESCE ( + ( + COUNT( * ) ), + + 93, - 0 + - + 43 - - CASE - 43 WHEN - 39 + - 20 * - 14 * - + 77 + + 31 THEN + 40 ELSE CAST( - COUNT( * ) AS SIGNED ) - ( 8 ) END )
----
451

skipif mysql # not compatible
query I rowsort label-4544
SELECT 47 * + 9 - - + 28 * - - COALESCE ( + ( + COUNT ( * ) ), + + 93, - 0 + - + 43 - - CASE - 43 WHEN - 39 + - 20 * - 14 * - + 77 + + 31 THEN + 40 ELSE CAST ( - COUNT ( * ) AS INTEGER ) - ( 8 ) END )
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT ALL + 83 * + ( - SUM( ALL + + ( 73 ) ) )
----
-6059

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL + 83 * + ( - SUM ( ALL + + ( 73 ) ) )
----
-6059

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT COALESCE ( + - 4, + 91, 5 + 48 + - COUNT( * ) - - 55 ) * 56 AS col2
----
-224

skipif mysql # not compatible
query I rowsort label-4546
SELECT COALESCE ( + - 4, + 91, 5 + 48 + - COUNT ( * ) - - 55 ) * 56 AS col2
----
-224

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT ALL 47 + 46 DIV + 30 + - + 18 + 25 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL 47 + 46 / + 30 + - + 18 + 25 AS col2
----
55

query I rowsort
SELECT - COALESCE ( 61, + COALESCE ( - - 90, + 35 ) * - + 34, 60 ) + - 2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT DISTINCT 68, COUNT( ALL + 91 ) col2
----
68
1

skipif mysql # not compatible
query II rowsort label-4549
SELECT DISTINCT 68, COUNT ( ALL + 91 ) col2
----
68
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4550
SELECT ALL CAST( - 32 AS SIGNED ) + - - 2 + 18 * COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL CAST ( - 32 AS INTEGER ) + - - 2 + 18 * COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT + 89 + 45 + + CASE CASE + AVG ( DISTINCT - 14 ) WHEN - COUNT( * ) THEN - COUNT( * ) + - 52 + + - ( - 81 ) * 26 / - 42 END WHEN + 21 THEN + 77 WHEN - 82 THEN + - COUNT( * ) * - + 13 + + COALESCE ( + ( - - ( - 95 ) ), 95 * NULLIF ( CASE + 91 WHEN 86 + 34 * 65 THEN - 81 END, - 99 ) + COUNT( * ) / - 88 ) + + 18 END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT + 89 + 45 + + CASE CASE + AVG ( DISTINCT - 14 ) WHEN - COUNT ( * ) THEN - COUNT ( * ) + - 52 + + - ( - 81 ) * 26 / - 42 END WHEN + 21 THEN + 77 WHEN - 82 THEN + - COUNT ( * ) * - + 13 + + COALESCE ( + ( - - ( - 95 ) ), 95 * NULLIF ( CASE + 91 WHEN 86 + 34 * 65 THEN - 81 END, - 99 ) + COUNT ( * ) / - 88 ) + + 18 END + + 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4552
SELECT ALL + 11 DIV - + 74, ( - 16 ) + + + COALESCE ( - 85, + COUNT( * ) * - 4 DIV COUNT( * ) * + 84 + + 19 ) AS col1
----
0
-101

skipif mysql # not compatible
query II rowsort label-4552
SELECT ALL + 11 / - + 74, ( - 16 ) + + + COALESCE ( - 85, + COUNT ( * ) * - 4 / COUNT ( * ) * + 84 + + 19 ) AS col1
----
0
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL 33 + + + COUNT( * ) * 89 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL 33 + + + COUNT ( * ) * 89 * - COUNT ( * )
----
-56

query I rowsort
SELECT 0 * 40
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT ALL - CAST( + 8 AS SIGNED ) - 59 * - 36 * + + 84 + - 46 + + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - CAST ( + 8 AS INTEGER ) - 59 * - 36 * + + 84 + - 46 + + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4556
SELECT DISTINCT + COALESCE ( 2, + + 84 + - COUNT( * ), + 43 ) - + NULLIF ( - COUNT( * ), + COUNT( * ) ) * + + COALESCE ( - 50, - - COUNT( * ) ) - + 13 AS col1, + 73
----
-61
73

skipif mysql # not compatible
query II rowsort label-4556
SELECT DISTINCT + COALESCE ( 2, + + 84 + - COUNT ( * ), + 43 ) - + NULLIF ( - COUNT ( * ), + COUNT ( * ) ) * + + COALESCE ( - 50, - - COUNT ( * ) ) - + 13 AS col1, + 73
----
-61
73

query I rowsort
SELECT 18 - - - 40 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT MIN( 25 ) * - - 31
----
775

skipif mysql # not compatible
query I rowsort label-4558
SELECT MIN ( 25 ) * - - 31
----
775

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT ALL - ( - MIN( + 86 ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL - ( - MIN ( + 86 ) ) AS col2
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4560
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 90 - 7 - - ( + 43 ) * - 93 * 1 AS col0
----
-4096

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT 93 * - COUNT( * ) + - 82 AS col0
----
-175

skipif mysql # not compatible
query I rowsort label-4562
SELECT 93 * - COUNT ( * ) + - 82 AS col0
----
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4563
SELECT + COALESCE ( CASE - 56 WHEN - 86 THEN 24 WHEN - - 93 THEN CASE - 75 WHEN 95 - + - ( - + ( - COALESCE ( - 52, - + 20, 0 + - 41 ) ) ) * + COUNT( * ) * 81 THEN + 41 WHEN + CASE + - ( COUNT( DISTINCT + 1 ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN NULLIF ( - 93, COALESCE ( ( CASE + 49 WHEN + 82 + - 38 * 50 THEN + 13 * ( 42 * 87 ) ELSE NULL END ), 19 * CAST( NULLIF ( ( - 92 ), 5 ) AS SIGNED ) - 22 ) ) THEN + CAST( - 27 AS SIGNED ) END * + ( 60 ) THEN 13 DIV 93 END * + 5 WHEN 82 THEN NULL END, + 13 + 48 )
----
61

skipif mysql # not compatible
query I rowsort label-4563
SELECT + COALESCE ( CASE - 56 WHEN - 86 THEN 24 WHEN - - 93 THEN CASE - 75 WHEN 95 - + - ( - + ( - COALESCE ( - 52, - + 20, 0 + - 41 ) ) ) * + COUNT ( * ) * 81 THEN + 41 WHEN + CASE + - ( COUNT ( DISTINCT + 1 ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN NULLIF ( - 93, COALESCE ( ( CASE + 49 WHEN + 82 + - 38 * 50 THEN + 13 * ( 42 * 87 ) ELSE NULL END ), 19 * CAST ( NULLIF ( ( - 92 ), 5 ) AS INTEGER ) - 22 ) ) THEN + CAST ( - 27 AS INTEGER ) END * + ( 60 ) THEN 13 / 93 END * + 5 WHEN 82 THEN NULL END, + 13 + 48 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT COUNT( * ) * COUNT( * ) + + ( + 62 )
----
63

skipif mysql # not compatible
query I rowsort label-4564
SELECT COUNT ( * ) * COUNT ( * ) + + ( + 62 )
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4565
SELECT + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + ( + 31 )
----
31

query I rowsort
SELECT ALL - 12 * - 3 + - 77 col0
----
-41

query I rowsort
SELECT ALL - 1 + + ( + + 22 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL - COALESCE ( - 37, COUNT( * ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL - COALESCE ( - 37, COUNT ( * ) ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4570
SELECT 19 * - - 83 + COUNT( * ) + + 82 - + 93 DIV - 78
----
1661

skipif mysql # not compatible
query I rowsort label-4570
SELECT 19 * - - 83 + COUNT ( * ) + + 82 - + 93 / - 78
----
1661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT DISTINCT + ( - CASE - 48 WHEN 97 THEN CAST( NULL AS SIGNED ) + + ( - 80 ) END ) * 19 + + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT + ( - CASE - 48 WHEN 97 THEN CAST ( NULL AS INTEGER ) + + ( - 80 ) END ) * 19 + + 3 AS col2
----
NULL

query I rowsort
SELECT ALL - 51 * - 30 * - 77 AS col0
----
-117810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT - ( + + 90 ) + + 26 - ( - 61 ) + - - 31 + - 6 + - 18 * + 41 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - ( + + 90 ) + + 26 - ( - 61 ) + - - 31 + - 6 + - 18 * + 41 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 44 col1
----
-44

query I rowsort
SELECT ALL + 85 + - + 21 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT + ( - COUNT( * ) ) + - ( - + 31 ) * - + 44 + 19 AS col0
----
-1346

skipif mysql # not compatible
query I rowsort label-4576
SELECT + ( - COUNT ( * ) ) + - ( - + 31 ) * - + 44 + 19 AS col0
----
-1346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT CAST( NULL AS SIGNED ) * + 32 * + CASE + COUNT( * ) WHEN + - 53 + - 82 * + 33 * 54 / - + CAST( - + 77 AS SIGNED ) * - ( 49 ) + - - 7 THEN - COUNT( * ) ELSE - 6 * - + 74 + 65 + - + 36 + CAST( - - 5 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT CAST ( NULL AS INTEGER ) * + 32 * + CASE + COUNT ( * ) WHEN + - 53 + - 82 * + 33 * 54 / - + CAST ( - + 77 AS INTEGER ) * - ( 49 ) + - - 7 THEN - COUNT ( * ) ELSE - 6 * - + 74 + 65 + - + 36 + CAST ( - - 5 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT 93 + - COUNT( * ) + - + CAST( - + 42 AS SIGNED )
----
134

skipif mysql # not compatible
query I rowsort label-4578
SELECT 93 + - COUNT ( * ) + - + CAST ( - + 42 AS INTEGER )
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4579
SELECT DISTINCT 49 AS col1, 68 DIV + COUNT( * ) + COUNT( * ) + - 55 + 31 AS col2
----
49
45

skipif mysql # not compatible
query II rowsort label-4579
SELECT DISTINCT 49 AS col1, 68 / + COUNT ( * ) + COUNT ( * ) + - 55 + 31 AS col2
----
49
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL 15 - - - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL 15 - - - COUNT ( * )
----
14

query I rowsort
SELECT 9 - + 20
----
-11

query I rowsort
SELECT ALL 27 * 48 AS col1
----
1296

query II rowsort
SELECT ALL 58 AS col2, + 18 * + - 10 + 7 AS col0
----
58
-173

query I rowsort
SELECT 28 + + + 37 AS col0
----
65

query I rowsort
SELECT ALL 79 - + + 12
----
67

query I rowsort
SELECT 99 * + + 57 AS col0
----
5643

query I rowsort
SELECT ( + ( + 47 ) ) + + 20 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT COUNT( * ) + - 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4588
SELECT COUNT ( * ) + - 36 AS col1
----
-35

query II rowsort
SELECT ALL 69 AS col0, + 91
----
69
91

query I rowsort
SELECT 18 + + 22
----
40

query I rowsort
SELECT 54 - 32 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4592
SELECT 25 * - ( COUNT( * ) ), COUNT( * ) AS col2
----
-25
1

skipif mysql # not compatible
query II rowsort label-4592
SELECT 25 * - ( COUNT ( * ) ), COUNT ( * ) AS col2
----
-25
1

query II rowsort
SELECT DISTINCT 25 col1, - 0 * 7
----
25
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4594
SELECT DISTINCT 67 DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT 67 / + - 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT COUNT( * ) * ( CAST( NULL AS SIGNED ) ) * NULLIF ( + 13, + COUNT( * ) ) + + 94 - - AVG ( - CAST( ( - + 84 ) AS SIGNED ) ) * + SUM( ALL - 55 ) * - - ( - ( 69 ) ) / - 52 / + 32 + + 31 + - - 92 - MIN( + 59 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) * NULLIF ( + 13, + COUNT ( * ) ) + + 94 - - AVG ( - CAST ( ( - + 84 ) AS INTEGER ) ) * + SUM ( ALL - 55 ) * - - ( - ( 69 ) ) / - 52 / + 32 + + 31 + - - 92 - MIN ( + 59 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 44 * 49 * - + 38
----
81928

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT MAX( + + 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-4597
SELECT MAX ( + + 57 ) col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4598
SELECT ALL 13 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL 13 / + 42
----
0

query II rowsort
SELECT ALL - 82 AS col1, 3 col1
----
-82
3

query I rowsort
SELECT + + 41 * + ( + 7 ) + 10 + - 79
----
218

query I rowsort
SELECT ALL + 76 * 76
----
5776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT 16 * + CAST( NULL AS SIGNED ) * - 3 * + 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT 16 * + CAST ( NULL AS INTEGER ) * - 3 * + 79 col2
----
NULL

query I rowsort
SELECT + + ( + - 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4604
SELECT CASE 70 WHEN - 65 THEN + 78 WHEN - + CAST( NULL AS SIGNED ) * - AVG ( + - 14 ) - CAST( NULL AS SIGNED ) * + 85 * - 46 * - 24 / - 74 + - 97 + + + 10 - SUM( ALL + CAST( NULL AS SIGNED ) ) / - 48 THEN NULL ELSE NULL END + - - CAST( NULL AS SIGNED ) + - 53 * - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4604
SELECT CASE 70 WHEN - 65 THEN + 78 WHEN - + CAST ( NULL AS INTEGER ) * - AVG ( + - 14 ) - CAST ( NULL AS INTEGER ) * + 85 * - 46 * - 24 / - 74 + - 97 + + + 10 - SUM ( ALL + CAST ( NULL AS INTEGER ) ) / - 48 THEN NULL ELSE NULL END + - - CAST ( NULL AS INTEGER ) + - 53 * - 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL 44 * - 46 + - 48 * + 54 + - + SUM( + + 88 )
----
-4704

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL 44 * - 46 + - 48 * + 54 + - + SUM ( + + 88 )
----
-4704

query I rowsort
SELECT DISTINCT - 36 col1
----
-36

query I rowsort
SELECT ALL + 98 * + - 71 + + + 44
----
-6914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4608
SELECT + CAST( - NULLIF ( - COUNT( * ), - 87 + 26 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4608
SELECT + CAST ( - NULLIF ( - COUNT ( * ), - 87 + 26 ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT - 62 AS col1, + COUNT( * ) AS col0
----
-62
1

skipif mysql # not compatible
query II rowsort label-4609
SELECT - 62 AS col1, + COUNT ( * ) AS col0
----
-62
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT ALL + 97 AS col2, - 81 - 82 - COUNT( * ) * ( - + 60 ) * - 12 - - 3 * 98 AS col1
----
97
-589

skipif mysql # not compatible
query II rowsort label-4610
SELECT ALL + 97 AS col2, - 81 - 82 - COUNT ( * ) * ( - + 60 ) * - 12 - - 3 * 98 AS col1
----
97
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT + 23 * - COUNT( ALL - - 99 ) * + 96 + + 94 + + - 39
----
-2153

skipif mysql # not compatible
query I rowsort label-4611
SELECT + 23 * - COUNT ( ALL - - 99 ) * + 96 + + 94 + + - 39
----
-2153

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL + CASE + - 44 WHEN + COUNT( * ) * + - 57 THEN NULL WHEN + 94 * + - 75 THEN - - 59 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL + CASE + - 44 WHEN + COUNT ( * ) * + - 57 THEN NULL WHEN + 94 * + - 75 THEN - - 59 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 25 * - - 11 + - - ( + 4 )
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT - COUNT( * ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-4614
SELECT - COUNT ( * ) * 84
----
-84

query I rowsort
SELECT - + 95 + + 84 col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4616
SELECT ALL - + CAST( NULL AS SIGNED ) + 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - + CAST ( NULL AS INTEGER ) + 52 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL + + ( CASE + 89 WHEN + - 55 THEN NULL WHEN + - 69 + - 37 THEN NULL WHEN 38 * - - 49 - - 13 / + - COALESCE ( - ( - 68 ), - SUM( ALL + 44 ) - 12 ) THEN - 9 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + + ( CASE + 89 WHEN + - 55 THEN NULL WHEN + - 69 + - 37 THEN NULL WHEN 38 * - - 49 - - 13 / + - COALESCE ( - ( - 68 ), - SUM ( ALL + 44 ) - 12 ) THEN - 9 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - - 32 * COUNT( * ) + + - COUNT( * ) + + + MIN( DISTINCT + + 68 ) * + 21 + - 8
----
1451

skipif mysql # not compatible
query I rowsort label-4618
SELECT - - 32 * COUNT ( * ) + + - COUNT ( * ) + + + MIN ( DISTINCT + + 68 ) * + 21 + - 8
----
1451

query I rowsort
SELECT - 65 + + 91
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + + 68 - - - 37 + - - 46
----
76

skipif mysql # not compatible
query I rowsort label-4620
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + + 68 - - - 37 + - - 46
----
76

query I rowsort
SELECT ALL + 38 - 30 + 75 * - + 45 - + 27 * - 35 AS col2
----
-2422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT - 22 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 22 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 2 * - + 35
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL + COUNT( * ) * + 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + COUNT ( * ) * + 36 AS col1
----
36

query I rowsort
SELECT DISTINCT COALESCE ( - 16, - 47 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4626
SELECT DISTINCT COALESCE ( - CAST( COUNT( * ) AS SIGNED ), 70 + - - CAST( NULL AS SIGNED ) * CAST( + 29 AS SIGNED ) + - + 79 * + ( 81 ) - + MAX( + 3 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), 70 + - - CAST ( NULL AS INTEGER ) * CAST ( + 29 AS INTEGER ) + - + 79 * + ( 81 ) - + MAX ( + 3 ) )
----
-1

query I rowsort
SELECT ALL ( + 40 ) col0
----
40

query I rowsort
SELECT DISTINCT ( + 91 ) AS col0
----
91

query II rowsort
SELECT DISTINCT COALESCE ( 95, + - 24 ) - + 61, - 37 + - 24 col0
----
34
-61

query I rowsort
SELECT DISTINCT 12 AS col1
----
12

query I rowsort
SELECT + 32 * + 50 AS col1
----
1600

query I rowsort
SELECT DISTINCT ( 18 )
----
18

query I rowsort
SELECT ALL ( + 53 ) AS col2
----
53

query I rowsort
SELECT ALL 72 + 70 * + 77
----
5462

onlyif mysql # aggregate syntax: 
query II rowsort label-4635
SELECT + 2 + + COUNT( * ) AS col1, + 1
----
3
1

skipif mysql # not compatible
query II rowsort label-4635
SELECT + 2 + + COUNT ( * ) AS col1, + 1
----
3
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4636
SELECT DISTINCT COUNT( * ) + - - 44 + - - 24 + + NULLIF ( - 26, - 61 / - 20 ) + COUNT( * ) + - 41 col2, 24
----
3
24

skipif mysql # not compatible
query II rowsort label-4636
SELECT DISTINCT COUNT ( * ) + - - 44 + - - 24 + + NULLIF ( - 26, - 61 / - 20 ) + COUNT ( * ) + - 41 col2, 24
----
3
24

query I rowsort
SELECT ALL + 98 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT - 78 * CASE + - CAST( + 90 AS SIGNED ) WHEN COUNT( * ) THEN 62 - CAST( NULL AS SIGNED ) ELSE NULL END + + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - 78 * CASE + - CAST ( + 90 AS INTEGER ) WHEN COUNT ( * ) THEN 62 - CAST ( NULL AS INTEGER ) ELSE NULL END + + - 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT - 96 DIV - COALESCE ( 33, - 84 - - 76 ) - 20 * + + NULLIF ( - 20, + 28 * + 52 * - - 56 )
----
402

skipif mysql # not compatible
query I rowsort label-4639
SELECT - 96 / - COALESCE ( 33, - 84 - - 76 ) - 20 * + + NULLIF ( - 20, + 28 * + 52 * - - 56 )
----
402

query I rowsort
SELECT + + 76 AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT + + 39 DIV + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4641
SELECT + + 39 / + 54 AS col1
----
0

query II rowsort
SELECT + 38 - - + 58 AS col1, ( + 66 )
----
96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT + 0 DIV 13 + 14
----
14

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT + 0 / 13 + 14
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4644
SELECT ALL + 95 DIV COUNT( DISTINCT + 87 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + 95 / COUNT ( DISTINCT + 87 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT - CASE 80 WHEN - COALESCE ( + + 6, + 83 ) + - + COUNT( * ) / - 49 THEN NULL ELSE - 12 END AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4645
SELECT - CASE 80 WHEN - COALESCE ( + + 6, + 83 ) + - + COUNT ( * ) / - 49 THEN NULL ELSE - 12 END AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT + 62 * + SUM( + - 82 ) AS col0
----
-5084

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + 62 * + SUM ( + - 82 ) AS col0
----
-5084

query I rowsort
SELECT ALL + ( - 55 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4648
SELECT + 83 * + + 32 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) + 30 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT + 83 * + + 32 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + 30 * 33
----
NULL

query I rowsort
SELECT + - 79 AS col2
----
-79

query I rowsort
SELECT + 50 * 39 * - + 29 + + 76 + - 82 * - + 48 * + 72 - + - 7
----
226925

query I rowsort
SELECT ALL + - 93 AS col1
----
-93

query I rowsort
SELECT + - 58 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT - 37 * - 39 * - - 77 * 9 * + + 54 + + COUNT( * ) * + 62 AS col1
----
54000008

skipif mysql # not compatible
query I rowsort label-4653
SELECT - 37 * - 39 * - - 77 * 9 * + + 54 + + COUNT ( * ) * + 62 AS col1
----
54000008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4654
SELECT ALL - 35 * MIN( ALL + + 98 ) DIV 50 - 91 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL - 35 * MIN ( ALL + + 98 ) / 50 - 91 AS col0
----
-159

query I rowsort
SELECT ALL + + 21
----
21

query I rowsort
SELECT - 81 * + 73 AS col1
----
-5913

query I rowsort
SELECT ALL ( 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT ALL - 43 * + 65 - 28 - - 24 DIV - COUNT( 19 )
----
-2847

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - 43 * + 65 - 28 - - 24 / - COUNT ( 19 )
----
-2847

query I rowsort
SELECT + 86 + 1 + + 48 AS col2
----
135

query I rowsort
SELECT - 50 * - 83 col1
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL ( - + MIN( DISTINCT + 5 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL ( - + MIN ( DISTINCT + 5 ) )
----
-5

query I rowsort
SELECT - 38 + + 65 * - 15
----
-1013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4663
SELECT - COUNT( * ) DIV - - 28
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT - COUNT ( * ) / - - 28
----
0

query I rowsort
SELECT - 14 + + - 24
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL + 44 * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL + 44 * + COUNT ( * )
----
44

query II rowsort
SELECT 23 AS col0, 7 AS col2
----
23
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT DISTINCT + 72 * 4 DIV - + 51 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT + 72 * 4 / - + 51 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT ALL - ( COUNT( * ) ) + - + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL - ( COUNT ( * ) ) + - + COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT - 8 - MIN( + - 38 ) * + 91 * + - 16 col0
----
-55336

skipif mysql # not compatible
query I rowsort label-4669
SELECT - 8 - MIN ( + - 38 ) * + 91 * + - 16 col0
----
-55336

query I rowsort
SELECT ALL 79 + + 93 + - 29
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - COUNT( - 33 ) + 50
----
49

skipif mysql # not compatible
query I rowsort label-4671
SELECT - COUNT ( - 33 ) + 50
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL CAST( - 17 AS SIGNED ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL CAST ( - 17 AS INTEGER ) AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT - 55 * + + 70 DIV + + COUNT( * )
----
-3850

skipif mysql # not compatible
query I rowsort label-4673
SELECT - 55 * + + 70 / + + COUNT ( * )
----
-3850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT DISTINCT CAST( - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT CAST ( - 83 AS INTEGER )
----
-83

query I rowsort
SELECT ALL - - 77 + - 86 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT COUNT( * ) + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-4676
SELECT COUNT ( * ) + + COUNT ( * ) col2
----
2

query I rowsort
SELECT + ( 49 ) - 23
----
26

query I rowsort
SELECT DISTINCT - 6 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT ALL - + MAX( DISTINCT - CAST( + + 6 AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - + MAX ( DISTINCT - CAST ( + + 6 AS INTEGER ) )
----
6

query I rowsort
SELECT ALL + + 85 + + 77
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-4681
SELECT + - COUNT( * ) AS col0, 69 - 52 AS col0
----
-1
17

skipif mysql # not compatible
query II rowsort label-4681
SELECT + - COUNT ( * ) AS col0, 69 - 52 AS col0
----
-1
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4682
SELECT ALL 55 - - 85 + - + COUNT( * ) DIV + + COUNT( DISTINCT + + 83 )
----
139

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL 55 - - 85 + - + COUNT ( * ) / + + COUNT ( DISTINCT + + 83 )
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT - 25 * + 7 - + NULLIF ( + 22, - 94 + AVG ( CAST( 31 AS SIGNED ) ) ) + 60
----
-137

skipif mysql # not compatible
query I rowsort label-4683
SELECT - 25 * + 7 - + NULLIF ( + 22, - 94 + AVG ( CAST ( 31 AS INTEGER ) ) ) + 60
----
-137

query I rowsort
SELECT + - 94 col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4685
SELECT ALL - 72 * + NULLIF ( - 22, 53 * - + 57 * + ( + 79 ) + + SUM( 92 ) / + 67 * 62 ) + 86 + + 28 * 19 * + 41, + CAST( - 54 AS SIGNED ) AS col1
----
23482
-54

skipif mysql # not compatible
query II rowsort label-4685
SELECT ALL - 72 * + NULLIF ( - 22, 53 * - + 57 * + ( + 79 ) + + SUM ( 92 ) / + 67 * 62 ) + 86 + + 28 * 19 * + 41, + CAST ( - 54 AS INTEGER ) AS col1
----
23482
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT COUNT( 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4686
SELECT COUNT ( 66 ) AS col0
----
1

query I rowsort
SELECT ALL - ( + 23 ) AS col0
----
-23

query I rowsort
SELECT 86 * COALESCE ( - 3, 33 * 80 ) AS col2
----
-258

query I rowsort
SELECT DISTINCT - - 26 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4690
SELECT DISTINCT 9 DIV - 52 * - - 66
----
0

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT 9 / - 52 * - - 66
----
0

query I rowsort
SELECT DISTINCT - + 49 AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT ALL + + 85 * - + 18 + - 15 DIV - 50
----
-1530

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + + 85 * - + 18 + - 15 / - 50
----
-1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT DISTINCT COALESCE ( + 31, COUNT( * ), COUNT( * ) ) DIV + + 3
----
10

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT COALESCE ( + 31, COUNT ( * ), COUNT ( * ) ) / + + 3
----
10

query II rowsort
SELECT ALL - 57 AS col0, 92
----
-57
92

query II rowsort
SELECT + 40 col0, - 45 + - - 17 col1
----
40
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT COUNT( * ) + COUNT( * ) * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4696
SELECT COUNT ( * ) + COUNT ( * ) * + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL - MAX( ALL + 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - MAX ( ALL + 43 ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4698
SELECT - COALESCE ( 13, + CAST( NULL AS SIGNED ) * + ( - - 40 ) ) * 82 * COUNT( * ) + 66 + + 68 + - 93 AS col0
----
-1025

skipif mysql # not compatible
query I rowsort label-4698
SELECT - COALESCE ( 13, + CAST ( NULL AS INTEGER ) * + ( - - 40 ) ) * 82 * COUNT ( * ) + 66 + + 68 + - 93 AS col0
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL - MIN( - - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - MIN ( - - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT - CASE - + NULLIF ( - 1, - + 28 ) WHEN + 31 * - + ( + 5 ) THEN + - 12 WHEN - + 26 * 54 THEN NULL WHEN + - COUNT( * ) + + - 62 - 17 / + 49 THEN - - 45 + - SUM( DISTINCT + 10 ) + + 58 ELSE - 50 END * 36 + - 72 + + 7 + - SUM( ALL + 17 ) AS col0
----
1718

skipif mysql # not compatible
query I rowsort label-4700
SELECT - CASE - + NULLIF ( - 1, - + 28 ) WHEN + 31 * - + ( + 5 ) THEN + - 12 WHEN - + 26 * 54 THEN NULL WHEN + - COUNT ( * ) + + - 62 - 17 / + 49 THEN - - 45 + - SUM ( DISTINCT + 10 ) + + 58 ELSE - 50 END * 36 + - 72 + + 7 + - SUM ( ALL + 17 ) AS col0
----
1718

query I rowsort
SELECT 47 * 87
----
4089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4702
SELECT 79 AS col1, NULLIF ( + - CAST( + ( + COUNT( * ) ) AS SIGNED ), - - ( - - ( + CAST( NULLIF ( + - 4, + 74 ) AS DECIMAL ) ) ) )
----
79
-1

skipif mysql # not compatible
query II rowsort label-4702
SELECT 79 AS col1, NULLIF ( + - CAST ( + ( + COUNT ( * ) ) AS INTEGER ), - - ( - - ( + CAST ( NULLIF ( + - 4, + 74 ) AS REAL ) ) ) )
----
79
-1

query II rowsort
SELECT - 10, + 6 AS col2
----
-10
6

query II rowsort
SELECT ( 57 ) * - 17 + - 66 AS col2, - NULLIF ( + 9, + - AVG ( ALL + 7 ) ) AS col1
----
-1035
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT 56 + + ( COUNT( ALL - 48 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT 56 + + ( COUNT ( ALL - 48 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL - 85 + 51 + - + COALESCE ( 55, + - MIN( ALL + 48 ), - 6 )
----
-89

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - 85 + 51 + - + COALESCE ( 55, + - MIN ( ALL + 48 ), - 6 )
----
-89

query II rowsort
SELECT 9, - 20 + 99 + - + 81 AS col0
----
9
-2

query I rowsort
SELECT ALL 91 + - - 50 - + - 5
----
146

query II rowsort
SELECT ALL 71 AS col0, + ( COALESCE ( + - 5, - - 43, - 33 ) ) col2
----
71
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT ( + + 11 ) DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-4710
SELECT ( + + 11 ) / + 23
----
0

query I rowsort
SELECT 63 * + 81
----
5103

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4712
SELECT DISTINCT 77, - 33 / - + CAST( NULL AS DECIMAL ) * ( + 38 ) AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-4712
SELECT DISTINCT 77, - 33 / - + CAST ( NULL AS REAL ) * ( + 38 ) AS col0
----
77
NULL

query I rowsort
SELECT ALL - 86 + + 30
----
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4714
SELECT 33 AS col1, - CASE + MAX( ALL + 5 ) WHEN - CAST( + + COUNT( * ) AS DECIMAL ) * + 66 THEN + 85 * - 10 + + - 65 WHEN - - 62 + - + 47 + 69 THEN NULL ELSE 22 DIV + + 87 END * - 90
----
33
0

skipif mysql # not compatible
query II rowsort label-4714
SELECT 33 AS col1, - CASE + MAX ( ALL + 5 ) WHEN - CAST ( + + COUNT ( * ) AS REAL ) * + 66 THEN + 85 * - 10 + + - 65 WHEN - - 62 + - + 47 + 69 THEN NULL ELSE 22 / + + 87 END * - 90
----
33
0

query I rowsort
SELECT ALL + 23 + - - 80 AS col2
----
103

query I rowsort
SELECT 53 * 42 AS col2
----
2226

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT MAX( DISTINCT + 71 ) + - CASE + + 25 WHEN - + ( + 6 ) THEN - COUNT( * ) / + NULLIF ( 98, 30 + 37 * + - 65 - - 7 ) - - COUNT( * ) END AS col2, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4717
SELECT MAX ( DISTINCT + 71 ) + - CASE + + 25 WHEN - + ( + 6 ) THEN - COUNT ( * ) / + NULLIF ( 98, 30 + 37 * + - 65 - - 7 ) - - COUNT ( * ) END AS col2, - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT ALL + 28 * + 88 AS col0
----
2464

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT DISTINCT ( - 54 ) DIV - 57 + + ( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT ( - 54 ) / - 57 + + ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - - COUNT( * ) + - - 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - - COUNT ( * ) + - - 73 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL + 84 * COUNT( * ) * 66 + + 70 + + 2
----
5616

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + 84 * COUNT ( * ) * 66 + + 70 + + 2
----
5616

query I rowsort
SELECT DISTINCT - 26 - - 31 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL MAX( DISTINCT - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL MAX ( DISTINCT - 71 )
----
-71

query I rowsort
SELECT DISTINCT - - 96 - COALESCE ( + - 38, + 90 * - NULLIF ( - 48, - + 55 * 38 + - + 26 ) * - - ( - + 58 ) + - 89 * + + 50 )
----
134

query I rowsort
SELECT + 26 col0
----
26

query I rowsort
SELECT ALL - + 48
----
-48

query I rowsort
SELECT + 23 - 78
----
-55

query I rowsort
SELECT + 92 * - 38
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL - + CASE + + 15 WHEN - 94 THEN + 89 * - 19 * + + COALESCE ( + - 86, + 39 ) + + 85 + + COALESCE ( 29, - NULLIF ( - + COUNT( * ), - 37 ) / 41 ) * - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - + CASE + + 15 WHEN - 94 THEN + 89 * - 19 * + + COALESCE ( + - 86, + 39 ) + + 85 + + COALESCE ( 29, - NULLIF ( - + COUNT ( * ), - 37 ) / 41 ) * - 79 END
----
NULL

query I rowsort
SELECT - 62 * 58 + + 37 AS col0
----
-3559

query I rowsort
SELECT ALL - - 15
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT ALL 89 * + - ( 73 ) - 34 DIV + 45 * + 95
----
-6497

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL 89 * + - ( 73 ) - 34 / + 45 * + 95
----
-6497

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL ( + - 90 ) * + 70 * - + COUNT( 19 ) AS col1
----
6300

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL ( + - 90 ) * + 70 * - + COUNT ( 19 ) AS col1
----
6300

query II rowsort
SELECT + + 34 col0, + 78 + + 18 + + + 79
----
34
175

query I rowsort
SELECT + + 65 AS col1
----
65

query I rowsort
SELECT 80 - - 87
----
167

query I rowsort
SELECT ( - + 94 ) * 19
----
-1786

query I rowsort
SELECT DISTINCT ( + + 87 ) * + 66
----
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4739
SELECT CAST( NULL AS SIGNED ) / + 55 * - NULLIF ( + + COUNT( * ), - 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT CAST ( NULL AS INTEGER ) / + 55 * - NULLIF ( + + COUNT ( * ), - 23 ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( + ( 54 ), 92 ) * 83
----
4482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT CAST( 38 AS SIGNED ) * MIN( - 67 ) - - 67 col1
----
-2479

skipif mysql # not compatible
query I rowsort label-4741
SELECT CAST ( 38 AS INTEGER ) * MIN ( - 67 ) - - 67 col1
----
-2479

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT - MIN( DISTINCT 65 ) * 97 AS col2
----
-6305

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT - MIN ( DISTINCT 65 ) * 97 AS col2
----
-6305

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4743
SELECT ALL 85 DIV NULLIF ( - 5, CAST( NULL AS SIGNED ) + NULLIF ( + 65, + - AVG ( ALL + - CAST( NULL AS DECIMAL ) ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL 85 / NULLIF ( - 5, CAST ( NULL AS INTEGER ) + NULLIF ( + 65, + - AVG ( ALL + - CAST ( NULL AS REAL ) ) ) )
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4744
SELECT DISTINCT 44 + 57 * - CASE WHEN NOT CAST( NULL AS DECIMAL ) IS NOT NULL THEN 89 ELSE NULL END AS col2
----
-5029

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT 44 + 57 * - CASE WHEN NOT CAST ( NULL AS REAL ) IS NOT NULL THEN 89 ELSE NULL END AS col2
----
-5029

query I rowsort
SELECT 44 - + 44 AS col2
----
0

query I rowsort
SELECT ALL 79 + - 13
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-4747
SELECT - MIN( ALL - - 3 ), + 85 * - 51 AS col2
----
-3
-4335

skipif mysql # not compatible
query II rowsort label-4747
SELECT - MIN ( ALL - - 3 ), + 85 * - 51 AS col2
----
-3
-4335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4748
SELECT ALL 50 DIV COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL 50 / COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT 27 + + CASE 66 WHEN ( - + 3 ) THEN 87 WHEN + - COUNT( * ) THEN NULL ELSE NULL END * - - ( + MAX( + - 51 ) ) * - ( 99 ) * + COALESCE ( 90, - 70 * - - 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT 27 + + CASE 66 WHEN ( - + 3 ) THEN 87 WHEN + - COUNT ( * ) THEN NULL ELSE NULL END * - - ( + MAX ( + - 51 ) ) * - ( 99 ) * + COALESCE ( 90, - 70 * - - 61 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4750
SELECT 63 DIV + 4 AS col1, ( 70 ) AS col0
----
15
70

skipif mysql # not compatible
query II rowsort label-4750
SELECT 63 / + 4 AS col1, ( 70 ) AS col0
----
15
70

query I rowsort
SELECT 34 + + CASE + - 14 WHEN + ( - + 51 ) THEN NULL ELSE + 66 * - 4 * + 51 END * - + 38 col0
----
511666

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT - MAX( - 10 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-4752
SELECT - MAX ( - 10 ) col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT ALL 43 + CAST( NULL AS SIGNED ) + - - CAST( - 81 AS SIGNED ) * 80 / 67 * + 48 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL 43 + CAST ( NULL AS INTEGER ) + - - CAST ( - 81 AS INTEGER ) * 80 / 67 * + 48 + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT + COUNT( * ) + + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4754
SELECT + COUNT ( * ) + + 20 AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4755
SELECT + 25 + + 62 + CAST( - COUNT( ALL ( 86 ) ) AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4755
SELECT + 25 + + 62 + CAST ( - COUNT ( ALL ( 86 ) ) AS INTEGER ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT + COALESCE ( 29, - + 15 * + 91 + + - 44 ) + - 71 - - - 13 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT + COALESCE ( 29, - + 15 * + 91 + + - 44 ) + - 71 - - - 13 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL CAST( NULL AS SIGNED ) - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL CAST ( NULL AS INTEGER ) - + - COUNT ( * )
----
NULL

query I rowsort
SELECT + ( 87 ) * + 46 + - 34
----
3968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT + ( CAST( - - 54 AS SIGNED ) ) + 61 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-4759
SELECT + ( CAST ( - - 54 AS INTEGER ) ) + 61 AS col1
----
115

query I rowsort
SELECT ALL - + 98 - - - 42 * + ( + 29 )
----
-1316

query I rowsort
SELECT + - 2 + - + 46 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT ALL COALESCE ( + 54, + - COUNT( * ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL COALESCE ( + 54, + - COUNT ( * ) ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + + COUNT( * ) * + + 94 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4763
SELECT + + COUNT ( * ) * + + 94 AS col0
----
94

query I rowsort
SELECT - 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT - - 53 + + 92 + - - 20 * - COUNT( * ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-4765
SELECT - - 53 + + 92 + - - 20 * - COUNT ( * ) AS col2
----
125

query I rowsort
SELECT - + 31 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT - + MAX( DISTINCT - 96 ) + + 30 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-4767
SELECT - + MAX ( DISTINCT - 96 ) + + 30 AS col1
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4768
SELECT ALL - + 18 DIV COUNT( * ) * + 99 AS col0, 79 - - 24 + + + 43 * - 77
----
-1782
-3208

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL - + 18 / COUNT ( * ) * + 99 AS col0, 79 - - 24 + + + 43 * - 77
----
-1782
-3208

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + + 67 + + MAX( + 30 )
----
97

skipif mysql # not compatible
query I rowsort label-4769
SELECT + + 67 + + MAX ( + 30 )
----
97

query II rowsort
SELECT + 20 + - 42 AS col2, 79
----
-22
79

query I rowsort
SELECT ALL ( - - 59 ) / + - 73 * - - 34 * CASE - 31 WHEN 61 THEN 80 * 52 WHEN + 39 THEN NULL END * + 86 + + NULLIF ( 48, + 0 * - 75 * + 61 )
----
NULL

query I rowsort
SELECT ALL + 43 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL + - MAX( - 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + - MAX ( - 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL + NULLIF ( + 98, 21 + + COUNT( * ) * - + 75 * - - MAX( + - 77 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + NULLIF ( + 98, 21 + + COUNT ( * ) * - + 75 * - - MAX ( + - 77 ) ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT CASE 38 WHEN + + CASE + + 3 WHEN + 94 + + NULLIF ( + 32, NULLIF ( - 45, - - 25 ) ) + 38 + + SUM( DISTINCT + - ( ( - + 91 ) ) ) THEN - 91 WHEN 31 * + ( + 9 ) THEN NULL END * + CASE - - COUNT( * ) WHEN - + 39 + COUNT( * ) THEN 35 END * 96 + - 93 + - 20 + 44 * - COUNT( * ) THEN - 99 ELSE - SUM( 96 ) END AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4775
SELECT CASE 38 WHEN + + CASE + + 3 WHEN + 94 + + NULLIF ( + 32, NULLIF ( - 45, - - 25 ) ) + 38 + + SUM ( DISTINCT + - ( ( - + 91 ) ) ) THEN - 91 WHEN 31 * + ( + 9 ) THEN NULL END * + CASE - - COUNT ( * ) WHEN - + 39 + COUNT ( * ) THEN 35 END * 96 + - 93 + - 20 + 44 * - COUNT ( * ) THEN - 99 ELSE - SUM ( 96 ) END AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT + - 40 DIV 15 + - + 52 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4776
SELECT + - 40 / 15 + - + 52 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4777
SELECT - + ( - 46 ) DIV - ( + + 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4777
SELECT - + ( - 46 ) / - ( + + 95 ) AS col0
----
0

query I rowsort
SELECT ALL + 36 * + - 39 + - - 47 + 36
----
-1321

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT ALL + + 64 * + 96 * + 94 + + - COALESCE ( 18, NULLIF ( 71, - + 91 ) DIV + - 86 ) - + 81 AS col0
----
577437

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + + 64 * + 96 * + 94 + + - COALESCE ( 18, NULLIF ( 71, - + 91 ) / + - 86 ) - + 81 AS col0
----
577437

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - 63 + + COALESCE ( + 92, - COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-4780
SELECT - 63 + + COALESCE ( + 92, - COUNT ( * ) )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4781
SELECT 85 * + NULLIF ( + 34, - 40 - - - NULLIF ( - AVG ( - + 62 ), + CAST( + 59 AS SIGNED ) ) ) * 58 + - NULLIF ( 3, - COUNT( * ) + + 21 + + 54 * + - 82 )
----
167617

skipif mysql # not compatible
query I rowsort label-4781
SELECT 85 * + NULLIF ( + 34, - 40 - - - NULLIF ( - AVG ( - + 62 ), + CAST ( + 59 AS INTEGER ) ) ) * 58 + - NULLIF ( 3, - COUNT ( * ) + + 21 + + 54 * + - 82 )
----
167617

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT CASE 2 WHEN - 89 THEN NULL ELSE + - COUNT( - - 65 ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4782
SELECT CASE 2 WHEN - 89 THEN NULL ELSE + - COUNT ( - - 65 ) END AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT ALL + CAST( - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL + CAST ( - 74 AS INTEGER )
----
-74

query I rowsort
SELECT ALL + 52 * - + 88 * 32 + - - 29
----
-146403

query I rowsort
SELECT ALL 68 * - 64 + - 63 - 45 AS col2
----
-4460

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT + MIN( + - 7 ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-4786
SELECT + MIN ( + - 7 ) col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT - 40 * - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT - 40 * - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL + 19 * 70 + + 0 * + 91 * - COUNT( * )
----
1330

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + 19 * 70 + + 0 * + 91 * - COUNT ( * )
----
1330

query II rowsort
SELECT + 62, 65 AS col0
----
62
65

query I rowsort
SELECT 59 * + + 11 * + 62 * + 59 + - 44 AS col1
----
2373998

query I rowsort
SELECT - 49 * - 23 * + 38
----
42826

query I rowsort
SELECT DISTINCT + 14 AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4793
SELECT - COUNT( * ) AS col1, 79 AS col0
----
-1
79

skipif mysql # not compatible
query II rowsort label-4793
SELECT - COUNT ( * ) AS col1, 79 AS col0
----
-1
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4794
SELECT ALL CAST( + 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL CAST ( + 86 AS INTEGER ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + COALESCE ( + MIN( + 61 ), + 93 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + COALESCE ( + MIN ( + 61 ), + 93 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT - CAST( + NULLIF ( 89, + 34 + 20 ) AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-4796
SELECT - CAST ( + NULLIF ( 89, + 34 + 20 ) AS INTEGER )
----
-89

query II rowsort
SELECT ALL - 12, + 48 AS col1
----
-12
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT + - 7 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-4798
SELECT + - 7 * - COUNT ( * )
----
7

query II rowsort
SELECT ALL 27 AS col2, 41 AS col2
----
27
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4800
SELECT - 38, + 50 + COUNT( * ) AS col0
----
-38
51

skipif mysql # not compatible
query II rowsort label-4800
SELECT - 38, + 50 + COUNT ( * ) AS col0
----
-38
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT - COUNT( * ), 89 AS col2
----
-1
89

skipif mysql # not compatible
query II rowsort label-4801
SELECT - COUNT ( * ), 89 AS col2
----
-1
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4802
SELECT ALL 60 AS col1, COUNT( * ) + + + CAST( 93 AS SIGNED ) * + 7 - 7 col1
----
60
645

skipif mysql # not compatible
query II rowsort label-4802
SELECT ALL 60 AS col1, COUNT ( * ) + + + CAST ( 93 AS INTEGER ) * + 7 - 7 col1
----
60
645

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL - 10 * + COALESCE ( + 16, 89, + + 89 * - 47 ) * - ( COUNT( * ) )
----
160

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL - 10 * + COALESCE ( + 16, 89, + + 89 * - 47 ) * - ( COUNT ( * ) )
----
160

query II rowsort
SELECT - + 94, 23 - + 17 AS col1
----
-94
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT + - COUNT( + 60 ) - - 70
----
69

skipif mysql # not compatible
query I rowsort label-4805
SELECT + - COUNT ( + 60 ) - - 70
----
69

query I rowsort
SELECT ALL - 50 * + 18 AS col1
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT SUM( - + 6 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-4807
SELECT SUM ( - + 6 ) col2
----
-6

query I rowsort
SELECT - + 4 col2
----
-4

query I rowsort
SELECT ALL - 26 * + - 31 * - - 71 col0
----
57226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT CAST( + - 79 AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-4810
SELECT CAST ( + - 79 AS INTEGER ) AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4811
SELECT DISTINCT - 2 DIV + 42 * CASE 71 WHEN 31 + + 47 * - 69 THEN NULL ELSE - CAST( - 60 AS SIGNED ) END + + + 85
----
85

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT - 2 / + 42 * CASE 71 WHEN 31 + + 47 * - 69 THEN NULL ELSE - CAST ( - 60 AS INTEGER ) END + + + 85
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4812
SELECT DISTINCT COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT - 68 * + - 28 * + - MAX( DISTINCT - 63 ) col0
----
119952

skipif mysql # not compatible
query I rowsort label-4813
SELECT - 68 * + - 28 * + - MAX ( DISTINCT - 63 ) col0
----
119952

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT - COUNT( * ) / CASE - 68 WHEN - 28 THEN + COUNT( * ) * + 66 END * + 51 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT - COUNT ( * ) / CASE - 68 WHEN - 28 THEN + COUNT ( * ) * + 66 END * + 51 + + 38
----
NULL

query I rowsort
SELECT ALL - ( + - 14 ) + + 84
----
98

query I rowsort
SELECT ALL + 99 + - 38
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT 43 DIV + - COUNT( * ) * - ( 1 )
----
43

skipif mysql # not compatible
query I rowsort label-4817
SELECT 43 / + - COUNT ( * ) * - ( 1 )
----
43

query I rowsort
SELECT ALL 32 - + 2 * ( 63 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL + 55 - - NULLIF ( 62, + 83 ) * MAX( + + 36 ) AS col2
----
2287

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + 55 - - NULLIF ( 62, + 83 ) * MAX ( + + 36 ) AS col2
----
2287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT DISTINCT - NULLIF ( 35, + + CASE - ( COUNT( * ) ) WHEN COUNT( * ) THEN NULL WHEN + 51 * 68 THEN - + CAST( - 0 AS SIGNED ) END )
----
-35

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT - NULLIF ( 35, + + CASE - ( COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL WHEN + 51 * 68 THEN - + CAST ( - 0 AS INTEGER ) END )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL - COUNT( 27 ) * + 49 + COUNT( * ) + 88 * + - 94
----
-8320

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - COUNT ( 27 ) * + 49 + COUNT ( * ) + 88 * + - 94
----
-8320

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT 78 - + ( - 64 ) + - - COUNT( * ) * - 17
----
125

skipif mysql # not compatible
query I rowsort label-4822
SELECT 78 - + ( - 64 ) + - - COUNT ( * ) * - 17
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT 7 * - + COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT 7 * - + COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT DISTINCT - 10 * + + 87
----
-870

query I rowsort
SELECT - 53 + + ( - + 50 )
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4826
SELECT ALL - CAST( NULL AS SIGNED ) * + + NULLIF ( + MIN( ALL - - ( 35 ) ), - 5 ) - 70 - NULLIF ( 77, - MIN( DISTINCT 3 ) + - 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL - CAST ( NULL AS INTEGER ) * + + NULLIF ( + MIN ( ALL - - ( 35 ) ), - 5 ) - 70 - NULLIF ( 77, - MIN ( DISTINCT 3 ) + - 36 ) AS col1
----
NULL

query II rowsort
SELECT - 62 + + 47, 59 AS col0
----
-15
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT MAX( ALL + 9 ) * + 57 * 93 AS col1
----
47709

skipif mysql # not compatible
query I rowsort label-4828
SELECT MAX ( ALL + 9 ) * + 57 * 93 AS col1
----
47709

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT + ( - - COUNT( * ) ) + 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4829
SELECT + ( - - COUNT ( * ) ) + 46 AS col0
----
47

query I rowsort
SELECT + 45 - - 15
----
60

query I rowsort
SELECT ALL 16 AS col0
----
16

query I rowsort
SELECT DISTINCT - 45 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT CAST( NULL AS SIGNED ) / 88 / + 10 + - COUNT( 14 ) - + - CAST( NULL AS SIGNED ) / 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT CAST ( NULL AS INTEGER ) / 88 / + 10 + - COUNT ( 14 ) - + - CAST ( NULL AS INTEGER ) / 71 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT + ( + CASE - + ( 37 ) WHEN + 73 + + CAST( - 39 AS SIGNED ) + + 96 * 15 THEN + + 31 * - - 42 * + 9 WHEN + - MAX( ALL 14 ) + + CAST( - ( - 34 ) AS SIGNED ) - + + 13 THEN CAST( NULL AS SIGNED ) ELSE + 84 END ) + 93 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT + ( + CASE - + ( 37 ) WHEN + 73 + + CAST ( - 39 AS INTEGER ) + + 96 * 15 THEN + + 31 * - - 42 * + 9 WHEN + - MAX ( ALL 14 ) + + CAST ( - ( - 34 ) AS INTEGER ) - + + 13 THEN CAST ( NULL AS INTEGER ) ELSE + 84 END ) + 93 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT COUNT( * ) + - + NULLIF ( + ( - + COUNT( * ) ), + 66 ) + + 39
----
41

skipif mysql # not compatible
query I rowsort label-4835
SELECT COUNT ( * ) + - + NULLIF ( + ( - + COUNT ( * ) ), + 66 ) + + 39
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT - COUNT( * ) + - - 79 * COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4836
SELECT - COUNT ( * ) + - - 79 * COUNT ( * )
----
78

query I rowsort
SELECT ALL 64 * - 51
----
-3264

query II rowsort
SELECT + ( + 31 ) AS col1, - 94 AS col1
----
31
-94

query I rowsort
SELECT 86 + + + 48 + - - 32 + - + 64 * 26 AS col0
----
-1498

query I rowsort
SELECT + 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT COUNT( * ) * - CASE + 75 WHEN - + 73 THEN NULL WHEN - MAX( - 71 ) - - + 37 * + 50 * - - 64 THEN NULLIF ( + NULLIF ( 90, + - 63 ), + COUNT( 50 ) * + ( 90 ) * 95 * + - NULLIF ( + ( - 56 ), + 24 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT COUNT ( * ) * - CASE + 75 WHEN - + 73 THEN NULL WHEN - MAX ( - 71 ) - - + 37 * + 50 * - - 64 THEN NULLIF ( + NULLIF ( 90, + - 63 ), + COUNT ( 50 ) * + ( 90 ) * 95 * + - NULLIF ( + ( - 56 ), + 24 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT NULLIF ( 68, - 27 + - - COUNT( * ) + - 10 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4842
SELECT NULLIF ( 68, - 27 + - - COUNT ( * ) + - 10 ) AS col0
----
68

query I rowsort
SELECT - + 63 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT DISTINCT 40 + COUNT( * ) + NULLIF ( 3, + + 78 + - + ( + - 64 ) ) * CASE + 53 WHEN 86 + - 67 THEN - 82 ELSE NULL END / + - 6 * AVG ( DISTINCT + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT 40 + COUNT ( * ) + NULLIF ( 3, + + 78 + - + ( + - 64 ) ) * CASE + 53 WHEN 86 + - 67 THEN - 82 ELSE NULL END / + - 6 * AVG ( DISTINCT + 58 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT CAST( + 63 AS SIGNED ) * + 72 AS col0
----
4536

skipif mysql # not compatible
query I rowsort label-4845
SELECT CAST ( + 63 AS INTEGER ) * + 72 AS col0
----
4536

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT DISTINCT - - 30 + - 47 + - - 32 + - 14 DIV + 48
----
15

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - - 30 + - 47 + - - 32 + - 14 / + 48
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - NULLIF ( COALESCE ( - - COUNT( * ), - + 50 + - - MAX( - + 57 ) ), - NULLIF ( - 37, 10 ) / + ( - 40 ) + - 47 - 34 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4847
SELECT - NULLIF ( COALESCE ( - - COUNT ( * ), - + 50 + - - MAX ( - + 57 ) ), - NULLIF ( - 37, 10 ) / + ( - 40 ) + - 47 - 34 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4848
SELECT ALL 86 + - + 0 + - COUNT( * ) + - + 35 DIV + - 46 * + + 78
----
85

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL 86 + - + 0 + - COUNT ( * ) + - + 35 / + - 46 * + + 78
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4849
SELECT ALL 63 + - 80 - 21 * + COUNT( * ) DIV + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL 63 + - 80 - 21 * + COUNT ( * ) / + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL - COALESCE ( + 37, - - COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - COALESCE ( + 37, - - COUNT ( * ) )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4851
SELECT DISTINCT CAST( - 74 AS SIGNED ) + - 85 * + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT CAST ( - 74 AS INTEGER ) + - 85 * + - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT 43 + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4852
SELECT 43 + + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT COUNT( * ) * ( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-4853
SELECT COUNT ( * ) * ( - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4854
SELECT 82 * ( + 29 ) AS col1, COUNT( * ) * - - 14
----
2378
14

skipif mysql # not compatible
query II rowsort label-4854
SELECT 82 * ( + 29 ) AS col1, COUNT ( * ) * - - 14
----
2378
14

query I rowsort
SELECT + 85 * - 35 * - 11 + - 59 AS col1
----
32666

query I rowsort
SELECT ALL - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT + 77 * COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT + 77 * COUNT ( * ) AS col1
----
77

query I rowsort
SELECT ALL + 68 * - + 86
----
-5848

query I rowsort
SELECT ( + + ( 61 ) ) * - 90
----
-5490

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL 84 DIV - + 17 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL 84 / - + 17 AS col0
----
-4

query I rowsort
SELECT 78 + - 77 AS col1
----
1

query I rowsort
SELECT ( - 40 ) * - ( 44 ) AS col0
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + SUM( ALL - ( 98 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4863
SELECT + SUM ( ALL - ( 98 ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - CASE - + 83 WHEN - ( - + 90 ) THEN - - 37 + - 94 / + + 27 WHEN 65 THEN + - 80 * + - 16 * COUNT( * ) + - + 86 / + 49 - ( - + ( - 80 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT - CASE - + 83 WHEN - ( - + 90 ) THEN - - 37 + - 94 / + + 27 WHEN 65 THEN + - 80 * + - 16 * COUNT ( * ) + - + 86 / + 49 - ( - + ( - 80 ) ) END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4865
SELECT + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 53 )
----
53

query I rowsort
SELECT ALL - 24 + - 57 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT NULLIF ( - CASE 30 WHEN + 67 / + - COUNT( * ) * + CASE - 79 WHEN - 28 THEN + COUNT( + 82 ) + 68 * COALESCE ( - ( - + 66 ), + - COUNT( * ) + - 78 / + + 19 * ( + 16 ), + 98, - 64 ) END * 59 + 5 THEN - 68 + 23 + - 3 + + + 62 ELSE + 6 END, COUNT( * ) - + + 17 + 31 * 17 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4868
SELECT NULLIF ( - CASE 30 WHEN + 67 / + - COUNT ( * ) * + CASE - 79 WHEN - 28 THEN + COUNT ( + 82 ) + 68 * COALESCE ( - ( - + 66 ), + - COUNT ( * ) + - 78 / + + 19 * ( + 16 ), + 98, - 64 ) END * 59 + 5 THEN - 68 + 23 + - 3 + + + 62 ELSE + 6 END, COUNT ( * ) - + + 17 + 31 * 17 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT + MIN( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT + MIN ( 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - NULLIF ( + + COUNT( * ), 38 ) * + 79
----
-79

skipif mysql # not compatible
query I rowsort label-4870
SELECT - NULLIF ( + + COUNT ( * ), 38 ) * + 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + + COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + + COUNT ( * ) + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT - - NULLIF ( - + 40, - 71 * - COALESCE ( 41, + - 21 ) - - CAST( - 78 AS SIGNED ) * - 2 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4872
SELECT - - NULLIF ( - + 40, - 71 * - COALESCE ( 41, + - 21 ) - - CAST ( - 78 AS INTEGER ) * - 2 ) AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT DISTINCT + CAST( - 95 AS SIGNED ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + CAST ( - 95 AS INTEGER ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT + 89 - + + 89 + 23 * - + 34 * COUNT( * )
----
-782

skipif mysql # not compatible
query I rowsort label-4874
SELECT + 89 - + + 89 + 23 * - + 34 * COUNT ( * )
----
-782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4875
SELECT ALL - - CAST( NULL AS SIGNED ) + - 30 * - - 23, - 20 AS col2
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-4875
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 30 * - - 23, - 20 AS col2
----
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT + - SUM( DISTINCT + NULLIF ( ( 43 ), - 17 ) ) * + COUNT( * ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT + - SUM ( DISTINCT + NULLIF ( ( 43 ), - 17 ) ) * + COUNT ( * ) col2
----
-43

query I rowsort
SELECT ALL 56 + 90
----
146

query I rowsort
SELECT - 25 * ( + + 77 ) AS col1
----
-1925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4879
SELECT 53 + - 39 DIV + - COUNT( * ) + + 57
----
149

skipif mysql # not compatible
query I rowsort label-4879
SELECT 53 + - 39 / + - COUNT ( * ) + + 57
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT DISTINCT - CAST( 5 AS SIGNED ) - 0 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - CAST ( 5 AS INTEGER ) - 0 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT - 57 * + 77 * - - ( - COUNT( * ) ) AS col1
----
4389

skipif mysql # not compatible
query I rowsort label-4881
SELECT - 57 * + 77 * - - ( - COUNT ( * ) ) AS col1
----
4389

query II rowsort
SELECT 63 AS col0, ( + 70 ) col1
----
63
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4883
SELECT - COUNT( * ) AS col1, 61 + - CASE + 36 WHEN 34 + 0 THEN NULLIF ( - COUNT( * ), + 31 ) WHEN - 58 * 74 / 78 * AVG ( DISTINCT - + 38 ) + - + 60 THEN NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4883
SELECT - COUNT ( * ) AS col1, 61 + - CASE + 36 WHEN 34 + 0 THEN NULLIF ( - COUNT ( * ), + 31 ) WHEN - 58 * 74 / 78 * AVG ( DISTINCT - + 38 ) + - + 60 THEN NULL END
----
-1
NULL

query I rowsort
SELECT - NULLIF ( - 0, ( 8 ) ) + + 46
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4885
SELECT + 15 DIV + 83 * - - 80 DIV + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT + 15 / + 83 * - - 80 / + 44 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4886
SELECT + COUNT( * ) AS col0, 48 * 25 AS col1
----
1
1200

skipif mysql # not compatible
query II rowsort label-4886
SELECT + COUNT ( * ) AS col0, 48 * 25 AS col1
----
1
1200

query I rowsort
SELECT ALL + 7 AS col0
----
7

query I rowsort
SELECT DISTINCT 43 * + 29
----
1247

query I rowsort
SELECT + CASE + - 17 WHEN + 39 THEN - 5 + + 80 WHEN + 35 THEN NULL ELSE NULL END * 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4890
SELECT ALL + 23 col2, MIN( ALL + 47 ) AS col0
----
23
47

skipif mysql # not compatible
query II rowsort label-4890
SELECT ALL + 23 col2, MIN ( ALL + 47 ) AS col0
----
23
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT ALL + 42, - 56 - - + 54 + - - SUM( + + 50 ) + - 62 AS col1
----
42
-14

skipif mysql # not compatible
query II rowsort label-4891
SELECT ALL + 42, - 56 - - + 54 + - - SUM ( + + 50 ) + - 62 AS col1
----
42
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT MAX( DISTINCT - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-4892
SELECT MAX ( DISTINCT - 2 )
----
-2

query I rowsort
SELECT - 56 AS col1
----
-56

query II rowsort
SELECT DISTINCT + 28, 49 - + 77 AS col0
----
28
-28

query I rowsort
SELECT ALL - 20 * + 41 + 50 AS col2
----
-770

query II rowsort
SELECT + - 17 - - + 27 AS col1, 42 * 86
----
10
3612

query I rowsort
SELECT + - 46 col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ALL + CASE + 58 WHEN 46 THEN + 24 END * + - 91 + + 41 * + 67 * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + CASE + 58 WHEN 46 THEN + 24 END * + - 91 + + 41 * + 67 * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT + - COUNT( - 82 ) + - 57
----
-58

skipif mysql # not compatible
query I rowsort label-4899
SELECT + - COUNT ( - 82 ) + - 57
----
-58

query I rowsort
SELECT - - 68 * - 44 AS col0
----
-2992

query II rowsort
SELECT - 80, + 84 col2
----
-80
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT - + 93 * - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4902
SELECT - + 93 * - COUNT ( * ) AS col2
----
93

query I rowsort
SELECT NULLIF ( - - 13, - 1 ) AS col1
----
13

query I rowsort
SELECT DISTINCT + 43 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT + 87 + 44 + + 72 DIV 12 * - 17 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4906
SELECT + 87 + 44 + + 72 / 12 * - 17 AS col0
----
29

query I rowsort
SELECT - COALESCE ( - 3, 90 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT MAX( ALL 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT MAX ( ALL 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL - + 92 - + 24 + - COUNT( DISTINCT + 60 ) * - COUNT( * ) + + COUNT( * ) AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - + 92 - + 24 + - COUNT ( DISTINCT + 60 ) * - COUNT ( * ) + + COUNT ( * ) AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT COUNT( - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-4910
SELECT COUNT ( - 90 )
----
1

query I rowsort
SELECT DISTINCT NULLIF ( 36, + - 12 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT - + ( + COALESCE ( + ( - 5 ), ( - CAST( - 0 AS SIGNED ) ) * 20 + - 35 - 99, - 69 ) )
----
5

skipif mysql # not compatible
query I rowsort label-4912
SELECT - + ( + COALESCE ( + ( - 5 ), ( - CAST ( - 0 AS INTEGER ) ) * 20 + - 35 - 99, - 69 ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4913
SELECT ALL - CASE 92 WHEN - 68 + + 33 * + 70 + - CAST( - 40 AS SIGNED ) THEN + - 76 END - 62 / - + 57 AS col1, + 97 - SUM( DISTINCT - 58 ) AS col1
----
NULL
155

skipif mysql # not compatible
query II rowsort label-4913
SELECT ALL - CASE 92 WHEN - 68 + + 33 * + 70 + - CAST ( - 40 AS INTEGER ) THEN + - 76 END - 62 / - + 57 AS col1, + 97 - SUM ( DISTINCT - 58 ) AS col1
----
NULL
155

query I rowsort
SELECT DISTINCT + 13 * 55
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT - ( - - COALESCE ( - + SUM( DISTINCT - 96 ), + + 17 * - + 54 ) ) + - 35 col2
----
-131

skipif mysql # not compatible
query I rowsort label-4915
SELECT - ( - - COALESCE ( - + SUM ( DISTINCT - 96 ), + + 17 * - + 54 ) ) + - 35 col2
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4916
SELECT - COUNT( * ) * + COUNT( * ), + 24 * + 1 / + CASE - 42 WHEN + + 85 + CAST( - - 77 AS SIGNED ) THEN + AVG ( - - 90 ) + - 79 + + - 3 * - + 0 * + - 23 END * - 6 / - 44 + - 22 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4916
SELECT - COUNT ( * ) * + COUNT ( * ), + 24 * + 1 / + CASE - 42 WHEN + + 85 + CAST ( - - 77 AS INTEGER ) THEN + AVG ( - - 90 ) + - 79 + + - 3 * - + 0 * + - 23 END * - 6 / - 44 + - 22 AS col1
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT - ( - - 82 ) * 28 DIV 87 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-4917
SELECT - ( - - 82 ) * 28 / 87 AS col2
----
-26

query I rowsort
SELECT ALL + 95 * + 82
----
7790

onlyif mysql # aggregate syntax: 
query II rowsort label-4919
SELECT - 3 * 99, + 69 + + 92 * + 61 + - SUM( - 64 ) AS col0
----
-297
5745

skipif mysql # not compatible
query II rowsort label-4919
SELECT - 3 * 99, + 69 + + 92 * + 61 + - SUM ( - 64 ) AS col0
----
-297
5745

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT ALL - 95 * - + 40 AS col2, + ( + + COUNT( DISTINCT - 91 ) )
----
3800
1

skipif mysql # not compatible
query II rowsort label-4920
SELECT ALL - 95 * - + 40 AS col2, + ( + + COUNT ( DISTINCT - 91 ) )
----
3800
1

query I rowsort
SELECT DISTINCT + 11
----
11

query I rowsort
SELECT DISTINCT + NULLIF ( + 39, + ( 2 ) )
----
39

query I rowsort
SELECT - 67 * + 46 * + - 28 AS col1
----
86296

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT ( - 4 ) * COUNT( * ) + - 21 + + 70 * - 2 * 39
----
-5485

skipif mysql # not compatible
query I rowsort label-4924
SELECT ( - 4 ) * COUNT ( * ) + - 21 + + 70 * - 2 * 39
----
-5485

query I rowsort
SELECT ALL + NULLIF ( + 49, - 0 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT - COUNT( * ) * + ( + - 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4926
SELECT - COUNT ( * ) * + ( + - 91 ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT + 25 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT + 25 / - 53
----
0

query I rowsort
SELECT - 37 + + ( + 42 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + COUNT( * ) * + + 17 - 97 + + 90
----
10

skipif mysql # not compatible
query I rowsort label-4929
SELECT + COUNT ( * ) * + + 17 - 97 + + 90
----
10

query I rowsort
SELECT ALL + NULLIF ( - ( 60 ), 62 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + 38 * + NULLIF ( - 12, + - 91 + - 37 - - 74 ) + - SUM( DISTINCT - 92 ) * + 14 * 11 AS col1
----
13712

skipif mysql # not compatible
query I rowsort label-4931
SELECT + 38 * + NULLIF ( - 12, + - 91 + - 37 - - 74 ) + - SUM ( DISTINCT - 92 ) * + 14 * 11 AS col1
----
13712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT ALL - COUNT( * ) DIV 6 + NULLIF ( + - 24, - 31 + 11 + 92 ) + + 0 * 14
----
-24

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL - COUNT ( * ) / 6 + NULLIF ( + - 24, - 31 + 11 + 92 ) + + 0 * 14
----
-24

query II rowsort
SELECT DISTINCT + ( - + 30 ) AS col2, 48 AS col1
----
-30
48

query I rowsort
SELECT ALL 28 * - 37 * - 94 * + - 79 + - + 80 * + 11 AS col2
----
-7694216

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + COUNT( * ) * + 56 + + 34
----
90

skipif mysql # not compatible
query I rowsort label-4935
SELECT + COUNT ( * ) * + 56 + + 34
----
90

query I rowsort
SELECT DISTINCT + - 4
----
-4

query I rowsort
SELECT + + ( + 89 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT + + CAST( - 18 AS SIGNED ) + + - 81 * 55 col1
----
-4473

skipif mysql # not compatible
query I rowsort label-4938
SELECT + + CAST ( - 18 AS INTEGER ) + + - 81 * 55 col1
----
-4473

query I rowsort
SELECT DISTINCT + - 70 AS col2
----
-70

query II rowsort
SELECT + 44 * - 9 AS col0, - 61
----
-396
-61

query I rowsort
SELECT ALL + - 88
----
-88

query I rowsort
SELECT + + 17 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL - 43 * + 9 * + 90 * + 55 * + COUNT( * ) - 44 * 7
----
-1915958

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - 43 * + 9 * + 90 * + 55 * + COUNT ( * ) - 44 * 7
----
-1915958

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT + - COUNT( * ) * - 50 + + ( 7 )
----
57

skipif mysql # not compatible
query I rowsort label-4944
SELECT + - COUNT ( * ) * - 50 + + ( 7 )
----
57

query I rowsort
SELECT DISTINCT 14 AS col0
----
14

query I rowsort
SELECT - + CASE WHEN NOT ( - 99 ) >= NULL THEN 98 END
----
NULL

query I rowsort
SELECT + 98 * 96 + + 27 AS col2
----
9435

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL - + 64 * + 95 - COUNT( * ) + 38
----
-6043

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL - + 64 * + 95 - COUNT ( * ) + 38
----
-6043

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4949
SELECT + - 95 DIV + + COUNT( * ) + 62 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4949
SELECT + - 95 / + + COUNT ( * ) + 62 AS col2
----
-33

query I rowsort
SELECT ALL - ( 12 ) * 31
----
-372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4951
SELECT CAST( 18 AS SIGNED ) * + + 63 * + 92 * - + COUNT( * ) AS col1, - 32 * - 24 * - - 76
----
-104328
58368

skipif mysql # not compatible
query II rowsort label-4951
SELECT CAST ( 18 AS INTEGER ) * + + 63 * + 92 * - + COUNT ( * ) AS col1, - 32 * - 24 * - - 76
----
-104328
58368

query I rowsort
SELECT 20 - - + 95 AS col0
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT 73 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-4953
SELECT 73 / 85
----
0

query I rowsort
SELECT 82 * + COALESCE ( - 24, + 40 ) col2
----
-1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4955
SELECT DISTINCT COUNT( - 90 ) * + 3 - - 60 + MIN( DISTINCT - 3 ) DIV 92 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT COUNT ( - 90 ) * + 3 - - 60 + MIN ( DISTINCT - 3 ) / 92 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4956
SELECT - 95 AS col1, + NULLIF ( - COUNT( * ), - 34 * 27 * - - 60 + - 84 + SUM( + 34 ) ) AS col1
----
-95
-1

skipif mysql # not compatible
query II rowsort label-4956
SELECT - 95 AS col1, + NULLIF ( - COUNT ( * ), - 34 * 27 * - - 60 + - 84 + SUM ( + 34 ) ) AS col1
----
-95
-1

query I rowsort
SELECT 72 * - + 17 col0
----
-1224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4958
SELECT ALL 0, - CAST( - ( 44 ) AS SIGNED ) + 32 + - 11 AS col1
----
0
65

skipif mysql # not compatible
query II rowsort label-4958
SELECT ALL 0, - CAST ( - ( 44 ) AS INTEGER ) + 32 + - 11 AS col1
----
0
65

query I rowsort
SELECT 91 - - 10 + + 95 + 1
----
197

onlyif mysql # aggregate syntax: 
query II rowsort label-4960
SELECT 97 * - CASE 7 WHEN - 1 THEN + 88 WHEN 99 THEN NULL ELSE 70 + + + 68 END AS col2, 72 + - - CASE 57 WHEN - 55 THEN + + 44 / + - 40 * - COUNT( * ) + + + 66 * + - 99 * - 81 WHEN + - COUNT( * ) THEN NULL END * - 55
----
-13386
NULL

skipif mysql # not compatible
query II rowsort label-4960
SELECT 97 * - CASE 7 WHEN - 1 THEN + 88 WHEN 99 THEN NULL ELSE 70 + + + 68 END AS col2, 72 + - - CASE 57 WHEN - 55 THEN + + 44 / + - 40 * - COUNT ( * ) + + + 66 * + - 99 * - 81 WHEN + - COUNT ( * ) THEN NULL END * - 55
----
-13386
NULL

query I rowsort
SELECT ALL - 64 + - - 45
----
-19

query I rowsort
SELECT 81 + 67 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT 60 + - MAX( - 83 )
----
143

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT 60 + - MAX ( - 83 )
----
143

query I rowsort
SELECT DISTINCT - 20 + 11 AS col1
----
-9

query I rowsort
SELECT DISTINCT - 47 + - 90 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT + 30, - 9 + - 75 * + 54 * - NULLIF ( + - ( + 66 ), + COUNT( * ) ) AS col1
----
30
-267309

skipif mysql # not compatible
query II rowsort label-4966
SELECT + 30, - 9 + - 75 * + 54 * - NULLIF ( + - ( + 66 ), + COUNT ( * ) ) AS col1
----
30
-267309

query I rowsort
SELECT ALL - + 92 + 16 AS col1
----
-76

query II rowsort
SELECT + - 60 AS col1, + NULLIF ( 93, 96 )
----
-60
93

onlyif mysql # DIV for integer division: 
query II rowsort label-4969
SELECT + 92 AS col0, 47 DIV 11
----
92
4

skipif mysql # not compatible
query II rowsort label-4969
SELECT + 92 AS col0, 47 / 11
----
92
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL - COUNT( * ) + 24
----
23

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL - COUNT ( * ) + 24
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT 40 * - + 9 - - 96 + - - COUNT( * ) AS col1
----
-263

skipif mysql # not compatible
query I rowsort label-4971
SELECT 40 * - + 9 - - 96 + - - COUNT ( * ) AS col1
----
-263

query I rowsort
SELECT - 4 * 45 + ( 3 ) + - 84
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4973
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, + 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-4973
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + 55
----
NULL
55

onlyif mysql # DIV for integer division: 
query II rowsort label-4974
SELECT DISTINCT - - 4 AS col2, 64 DIV + + 72 - + 12 + + 84
----
4
72

skipif mysql # not compatible
query II rowsort label-4974
SELECT DISTINCT - - 4 AS col2, 64 / + + 72 - + 12 + + 84
----
4
72

query I rowsort
SELECT + - 78 AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4976
SELECT ALL - + COUNT( * ) * + 1 DIV COUNT( * ) AS col0, - 70
----
-1
-70

skipif mysql # not compatible
query II rowsort label-4976
SELECT ALL - + COUNT ( * ) * + 1 / COUNT ( * ) AS col0, - 70
----
-1
-70

query I rowsort
SELECT - 36 + - 92
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT 50 * - 54 + - ( COUNT( * ) )
----
-2701

skipif mysql # not compatible
query I rowsort label-4978
SELECT 50 * - 54 + - ( COUNT ( * ) )
----
-2701

query II rowsort
SELECT ALL 71, - 45 AS col2
----
71
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT MIN( ALL 86 ) + + 47 + + - CASE - 91 WHEN + 39 THEN NULL ELSE CASE - 29 WHEN + 62 THEN + 54 ELSE NULL END END * - 15 + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-4980
SELECT MIN ( ALL 86 ) + + 47 + + - CASE - 91 WHEN + 39 THEN NULL ELSE CASE - 29 WHEN + 62 THEN + 54 ELSE NULL END END * - 15 + - 84
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4981
SELECT 47 * + COUNT( * ) DIV 61, - 41 * - 9 * + + COUNT( * ) col2
----
0
369

skipif mysql # not compatible
query II rowsort label-4981
SELECT 47 * + COUNT ( * ) / 61, - 41 * - 9 * + + COUNT ( * ) col2
----
0
369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4982
SELECT 34 + + 39 - + + 34 * - 9, CAST( - 97 AS SIGNED ) * + MIN( + + 50 ) + + 4 + - + 57 AS col1
----
379
-4903

skipif mysql # not compatible
query II rowsort label-4982
SELECT 34 + + 39 - + + 34 * - 9, CAST ( - 97 AS INTEGER ) * + MIN ( + + 50 ) + + 4 + - + 57 AS col1
----
379
-4903

query I rowsort
SELECT DISTINCT 56 * + - 28 col1
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT 66 + - + CASE + + 99 WHEN - 18 THEN + 1 * 4 + + 18 - COUNT( * ) WHEN 88 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT 66 + - + CASE + + 99 WHEN - 18 THEN + 1 * 4 + + 18 - COUNT ( * ) WHEN 88 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 91 * 24
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT ALL CASE 73 WHEN + 90 THEN COUNT( * ) + + 48 WHEN + 8 - + - NULLIF ( + 25, - ( + 62 ) * + + ( - 78 ) ) THEN NULL ELSE NULL END + + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL CASE 73 WHEN + 90 THEN COUNT ( * ) + + 48 WHEN + 8 - + - NULLIF ( + 25, - ( + 62 ) * + + ( - 78 ) ) THEN NULL ELSE NULL END + + + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT CAST( 99 AS SIGNED ) + + 98 col1
----
197

skipif mysql # not compatible
query I rowsort label-4987
SELECT CAST ( 99 AS INTEGER ) + + 98 col1
----
197

query I rowsort
SELECT 56 * + 58
----
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL 55 + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL 55 + - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4990
SELECT ALL 14 + COUNT( * ) AS col2, 87
----
15
87

skipif mysql # not compatible
query II rowsort label-4990
SELECT ALL 14 + COUNT ( * ) AS col2, 87
----
15
87

query I rowsort
SELECT 78 + + + 58 col0
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-4992
SELECT ALL 20 + 70, COUNT( * ) + 16 - - + COUNT( * ) AS col1
----
90
18

skipif mysql # not compatible
query II rowsort label-4992
SELECT ALL 20 + 70, COUNT ( * ) + 16 - - + COUNT ( * ) AS col1
----
90
18

query I rowsort
SELECT ALL - 33 + + + 56 AS col1
----
23

query I rowsort
SELECT 13 + + 59 + 62
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ( COUNT( * ) ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-4995
SELECT ( COUNT ( * ) ) + + 55
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4996
SELECT - 2 DIV + 54 - MIN( DISTINCT + + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-4996
SELECT - 2 / + 54 - MIN ( DISTINCT + + 28 )
----
-28

query I rowsort
SELECT ALL - COALESCE ( - COALESCE ( 57, + - CASE + - 10 WHEN 38 THEN + + 50 END ), - - 11 ) AS col2
----
57

query I rowsort
SELECT - - 50 * 9 + + 91 AS col2
----
541

query I rowsort
SELECT DISTINCT + + 56 * + 32 AS col2
----
1792

query I rowsort
SELECT - 76 + + 56 * + 71 AS col0
----
3900

query I rowsort
SELECT ALL + - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5002
SELECT - + 68 DIV - - CASE 90 WHEN + 33 THEN NULL ELSE - - COUNT( * ) END + - - ( - 41 ) + 12 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5002
SELECT - + 68 / - - CASE 90 WHEN + 33 THEN NULL ELSE - - COUNT ( * ) END + - - ( - 41 ) + 12 AS col2
----
-97

query I rowsort
SELECT 4 * 20 + - 50 AS col0
----
30

query I rowsort
SELECT ALL + 13 col2
----
13

query I rowsort
SELECT + + 29 * - 7 AS col2
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - + 18 * - MAX( ALL + - 81 ) + 46
----
-1412

skipif mysql # not compatible
query I rowsort label-5006
SELECT - + 18 * - MAX ( ALL + - 81 ) + 46
----
-1412

query I rowsort
SELECT ALL + + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT - 31 AS col0, ( - 62 ) + - - 92 * - MAX( 85 ) AS col1
----
-31
-7882

skipif mysql # not compatible
query II rowsort label-5008
SELECT - 31 AS col0, ( - 62 ) + - - 92 * - MAX ( 85 ) AS col1
----
-31
-7882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5009
SELECT DISTINCT NULLIF ( - + CASE - + 10 WHEN + NULLIF ( - 26, + 66 ) THEN - + 1 + 50 WHEN 42 + + - 36 THEN CAST( NULL AS SIGNED ) ELSE - SUM( DISTINCT 13 ) END, 37 )
----
13

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT NULLIF ( - + CASE - + 10 WHEN + NULLIF ( - 26, + 66 ) THEN - + 1 + 50 WHEN 42 + + - 36 THEN CAST ( NULL AS INTEGER ) ELSE - SUM ( DISTINCT 13 ) END, 37 )
----
13

query I rowsort
SELECT DISTINCT - 64 + 1 + + 8 AS col2
----
-55

query I rowsort
SELECT + 9 * + 86 AS col0
----
774

query I rowsort
SELECT ALL 15 + - + 73
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT - COUNT( * ) - + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT - COUNT ( * ) - + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 97 - - 32 * - 96 + + NULLIF ( 28, + + 8 / - + 67 )
----
-3141

query II rowsort
SELECT ALL 7 AS col0, 81 AS col0
----
7
81

query I rowsort
SELECT DISTINCT - 1 + + + 30 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT ALL + 47 + + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL + 47 + + + COUNT ( * )
----
48

query I rowsort
SELECT DISTINCT NULLIF ( + 19, + 81 ) + - 25 AS col1
----
-6

query I rowsort
SELECT ALL 61 + + - 27 + 33 col0
----
67

query I rowsort
SELECT - NULLIF ( 40, + 15 * 94 ) AS col0
----
-40

query I rowsort
SELECT + 43 - 86 AS col0
----
-43

query I rowsort
SELECT DISTINCT 24 AS col0
----
24

query I rowsort
SELECT ALL - 46 - 22
----
-68

query I rowsort
SELECT + + 40 * + + 7
----
280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5025
SELECT + + ( + CASE - + 50 WHEN + 72 THEN 92 END ) * - COALESCE ( + 79, + + CAST( + + 12 AS DECIMAL ) ) + COALESCE ( + 66, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT + + ( + CASE - + 50 WHEN + 72 THEN 92 END ) * - COALESCE ( + 79, + + CAST ( + + 12 AS REAL ) ) + COALESCE ( + 66, COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 80 * 51
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT + + COUNT( ALL 38 )
----
1

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT + + COUNT ( ALL 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT ALL + CASE + + COUNT( * ) WHEN - - 35 THEN NULL WHEN - 73 THEN 16 END / - + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL + CASE + + COUNT ( * ) WHEN - - 35 THEN NULL WHEN - 73 THEN 16 END / - + 9 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5029
SELECT ALL + 59, + COUNT( + CAST( + 5 AS SIGNED ) ) + + 12 AS col1
----
59
13

skipif mysql # not compatible
query II rowsort label-5029
SELECT ALL + 59, + COUNT ( + CAST ( + 5 AS INTEGER ) ) + + 12 AS col1
----
59
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT + - COALESCE ( - + COUNT( * ), + 8 + - 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5030
SELECT + - COALESCE ( - + COUNT ( * ), + 8 + - 74 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT - SUM( ALL + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5031
SELECT - SUM ( ALL + 39 )
----
-39

query I rowsort
SELECT DISTINCT + - 39 AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5033
SELECT + - 97 - - CAST( - 25 AS SIGNED ) + - COUNT( * ) DIV - COUNT( DISTINCT - 1 ) AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-5033
SELECT + - 97 - - CAST ( - 25 AS INTEGER ) + - COUNT ( * ) / - COUNT ( DISTINCT - 1 ) AS col2
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5034
SELECT - 45 * - ( - 48 ) - + COUNT( DISTINCT + 29 ) AS col0, COUNT( * ) + COALESCE ( - 36, - 83 ) DIV + - 40 AS col1
----
-2161
1

skipif mysql # not compatible
query II rowsort label-5034
SELECT - 45 * - ( - 48 ) - + COUNT ( DISTINCT + 29 ) AS col0, COUNT ( * ) + COALESCE ( - 36, - 83 ) / + - 40 AS col1
----
-2161
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT CAST( 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-5035
SELECT CAST ( 69 AS INTEGER )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5036
SELECT COUNT( * ) * + + CAST( + CASE + - 85 WHEN - - 98 * - 14 + - 56 * COUNT( * ) + - - NULLIF ( + MAX( - 67 ), - 7 + MAX( DISTINCT + - 24 ) ) * - 73 * - 44 * 64 DIV 6 THEN - 11 + - - 78 + + ( - - 99 ) + + + 50 ELSE - 11 DIV + 44 END AS SIGNED ) DIV + 50 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) * + + CAST ( + CASE + - 85 WHEN - - 98 * - 14 + - 56 * COUNT ( * ) + - - NULLIF ( + MAX ( - 67 ), - 7 + MAX ( DISTINCT + - 24 ) ) * - 73 * - 44 * 64 / 6 THEN - 11 + - - 78 + + ( - - 99 ) + + + 50 ELSE - 11 / + 44 END AS INTEGER ) / + 50 + - COUNT ( * )
----
-1

query I rowsort
SELECT + 54 + - 47 * + 40 AS col1
----
-1826

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT ALL + COUNT( * ) * + MIN( DISTINCT + - 22 ) + - + 55 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL + COUNT ( * ) * + MIN ( DISTINCT + - 22 ) + - + 55 AS col1
----
-77

query I rowsort
SELECT + + 64 col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT ALL - ( + - 83 ) * - + 82 + - - CAST( NULL AS SIGNED ) + - 5 + - + 7 - COUNT( * ) - + - ( + - CASE COALESCE ( NULLIF ( 82, + + 1 + - 0 ), + + 3 + + 7 ) WHEN SUM( + 26 ) THEN NULL WHEN - - COUNT( * ) THEN NULL WHEN - 39 * - + CASE - 81 WHEN + MIN( + 21 ) * - 5 THEN + CASE + SUM( ALL 86 ) WHEN + 36 - COALESCE ( 88, - COUNT( ALL + CAST( NULL AS SIGNED ) ), COUNT( * ) ) THEN - 36 END * + 60 ELSE NULL END THEN NULL ELSE 42 END ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - ( + - 83 ) * - + 82 + - - CAST ( NULL AS INTEGER ) + - 5 + - + 7 - COUNT ( * ) - + - ( + - CASE COALESCE ( NULLIF ( 82, + + 1 + - 0 ), + + 3 + + 7 ) WHEN SUM ( + 26 ) THEN NULL WHEN - - COUNT ( * ) THEN NULL WHEN - 39 * - + CASE - 81 WHEN + MIN ( + 21 ) * - 5 THEN + CASE + SUM ( ALL 86 ) WHEN + 36 - COALESCE ( 88, - COUNT ( ALL + CAST ( NULL AS INTEGER ) ), COUNT ( * ) ) THEN - 36 END * + 60 ELSE NULL END THEN NULL ELSE 42 END ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL + ( - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL 42 * - 55 + + 84
----
-2226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT + 27 + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT + 27 + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - COUNT( * ) + + + 1
----
0

skipif mysql # not compatible
query I rowsort label-5044
SELECT - COUNT ( * ) + + + 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT MIN( ALL - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-5045
SELECT MIN ( ALL - 91 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT - 9 DIV + + ( 90 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5046
SELECT - 9 / + + ( 90 ) AS col0
----
0

query II rowsort
SELECT - 26 * ( + + CASE + + 11 WHEN + 78 THEN - - 61 WHEN - 35 THEN NULL ELSE NULL END ) AS col2, 2 * + 24 AS col0
----
NULL
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT ALL + 5 DIV - 19 * - + 11
----
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL + 5 / - 19 * - + 11
----
0

query II rowsort
SELECT ALL 22 * + 14 * - NULLIF ( 77, - + 23 * - - 22 ) + + 24, - 19 AS col2
----
-23692
-19

query II rowsort
SELECT - 52 AS col1, + 59 + 7 * + + 68
----
-52
535

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL - 15 + + - SUM( ALL + 29 ) - - 10
----
-34

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - 15 + + - SUM ( ALL + 29 ) - - 10
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT CASE 61 WHEN - 26 THEN - COUNT( * ) / - COUNT( ALL 18 ) - 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT CASE 61 WHEN - 26 THEN - COUNT ( * ) / - COUNT ( ALL 18 ) - 4 ELSE NULL END
----
NULL

query I rowsort
SELECT - 49 + 21 + 44 AS col2
----
16

query II rowsort
SELECT ALL ( - + 56 ) AS col1, ( 44 ) + + 59 + 47 + - 17 AS col0
----
-56
133

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT 9, - COUNT( * ) - - - 64 col2
----
9
-65

skipif mysql # not compatible
query II rowsort label-5055
SELECT 9, - COUNT ( * ) - - - 64 col2
----
9
-65

query I rowsort
SELECT - 43 + - 74 AS col0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT ALL + 16 - - 59 * + 83 + + - 10 + - 2 + 71 DIV + 39 AS col0
----
4902

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL + 16 - - 59 * + 83 + + - 10 + - 2 + 71 / + 39 AS col0
----
4902

query I rowsort
SELECT - ( - 51 ) * + 16
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - CASE - 96 WHEN COALESCE ( + 93, + 30 ) THEN - COUNT( DISTINCT 78 ) - - 4 + COUNT( * ) WHEN - + 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT - CASE - 96 WHEN COALESCE ( + 93, + 30 ) THEN - COUNT ( DISTINCT 78 ) - - 4 + COUNT ( * ) WHEN - + 29 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5060
SELECT + 95 + COUNT( * ) / - + 98 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT + 95 + COUNT ( * ) / - + 98 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 24 + + 84 + - 15
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT DISTINCT COUNT( ALL + - 95 ) col0, 91 + - 54
----
1
37

skipif mysql # not compatible
query II rowsort label-5062
SELECT DISTINCT COUNT ( ALL + - 95 ) col0, 91 + - 54
----
1
37

query I rowsort
SELECT CASE 97 WHEN - 93 THEN - 35 + - ( - 81 ) * 25 END / + - 48 + 80 * + - 97 - + 70 - 53 * + 20 * - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5064
SELECT DISTINCT - 43, - COALESCE ( + COUNT( ALL 40 ), - COUNT( * ) ) AS col1
----
-43
-1

skipif mysql # not compatible
query II rowsort label-5064
SELECT DISTINCT - 43, - COALESCE ( + COUNT ( ALL 40 ), - COUNT ( * ) ) AS col1
----
-43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + + 48 * + - 96 + - - 66 + - ( - - COUNT( * ) ) AS col0
----
-4543

skipif mysql # not compatible
query I rowsort label-5065
SELECT + + 48 * + - 96 + - - 66 + - ( - - COUNT ( * ) ) AS col0
----
-4543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5066
SELECT 63 DIV 63 DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5066
SELECT 63 / 63 / + - COUNT ( * )
----
-1

query I rowsort
SELECT 94 + 18 AS col0
----
112

query I rowsort
SELECT 53 * + - ( ( 2 ) ) * + 79 * + 76 AS col0
----
-636424

query I rowsort
SELECT - 18 * + 18 + 49 AS col1
----
-275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5070
SELECT ALL + ( + CASE COUNT( * ) WHEN - 65 THEN NULL WHEN + CAST( - - AVG ( ALL + ( - 97 ) ) AS SIGNED ) THEN - COUNT( * ) ELSE + 47 - - 72 END ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + ( + CASE COUNT ( * ) WHEN - 65 THEN NULL WHEN + CAST ( - - AVG ( ALL + ( - 97 ) ) AS INTEGER ) THEN - COUNT ( * ) ELSE + 47 - - 72 END ) + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5071
SELECT + + 33 DIV - COUNT( * ) + + 34 + + + 33 * - 51
----
-1682

skipif mysql # not compatible
query I rowsort label-5071
SELECT + + 33 / - COUNT ( * ) + + 34 + + + 33 * - 51
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT - SUM( DISTINCT - - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5072
SELECT - SUM ( DISTINCT - - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL - NULLIF ( 56, - 30 - + 65 * - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL - NULLIF ( 56, - 30 - + 65 * - COUNT ( * ) )
----
-56

query I rowsort
SELECT + + ( + 66 ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5075
SELECT CAST( NULL AS SIGNED ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT CAST ( NULL AS INTEGER ) + 21
----
NULL

query I rowsort
SELECT + 0 * 90 + + + 49
----
49

query I rowsort
SELECT ALL 39 + 26 + + 65 + - 59 col2
----
71

query I rowsort
SELECT ALL 3 + + - 97 AS col0
----
-94

query II rowsort
SELECT DISTINCT + 1 + - 41 AS col1, - 77 + + 67 + - 83 * 60 + 66 + + 95 * + - 41
----
-40
-8819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5080
SELECT ALL - COALESCE ( + - 76, - + ( + 31 ) - + 12 * - 74 + - 82 + 4 * 37 * - 18, - - 28 * - + 76 DIV - - 22 DIV + - COUNT( * ) ) - 17 + - 35 + + 89 * - - 88 + - 9 AS col0
----
7847

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - COALESCE ( + - 76, - + ( + 31 ) - + 12 * - 74 + - 82 + 4 * 37 * - 18, - - 28 * - + 76 / - - 22 / + - COUNT ( * ) ) - 17 + - 35 + + 89 * - - 88 + - 9 AS col0
----
7847

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT 7 * - ( + 93 ) * + 75 * ( - 51 ) * + 1 + + SUM( ALL 24 ) AS col0
----
2490099

skipif mysql # not compatible
query I rowsort label-5081
SELECT 7 * - ( + 93 ) * + 75 * ( - 51 ) * + 1 + + SUM ( ALL 24 ) AS col0
----
2490099

query I rowsort
SELECT ALL 6 col0
----
6

query I rowsort
SELECT ALL - 84 - + ( 51 ) + - 19 AS col1
----
-154

query I rowsort
SELECT 97 * + NULLIF ( + 37, - 27 )
----
3589

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT 32 * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5085
SELECT 32 * COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5086
SELECT 16 - + 82, 36 + - CASE + COUNT( ( 12 ) ) WHEN ( - 35 ) THEN NULL WHEN - + 38 THEN + + 55 ELSE NULL END AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-5086
SELECT 16 - + 82, 36 + - CASE + COUNT ( ( 12 ) ) WHEN ( - 35 ) THEN NULL WHEN - + 38 THEN + + 55 ELSE NULL END AS col2
----
-66
NULL

query I rowsort
SELECT ALL 89 - - 53 * - 73 AS col2
----
-3780

query I rowsort
SELECT 22 * - NULLIF ( - + ( - 15 ), - 1 ) AS col2
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT 25 + + + CASE + - COUNT( * ) WHEN - 51 THEN + - COUNT( * ) WHEN 96 + - - 52 / - + 93 THEN 79 END + 0 * - 24 + 26 * + 84 + - COUNT( * ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT 25 + + + CASE + - COUNT ( * ) WHEN - 51 THEN + - COUNT ( * ) WHEN 96 + - - 52 / - + 93 THEN 79 END + 0 * - 24 + 26 * + 84 + - COUNT ( * ) * - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL + + 78 * - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL + + 78 * - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT 6 * COALESCE ( + 15, + COUNT( * ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-5091
SELECT 6 * COALESCE ( + 15, + COUNT ( * ) ) AS col0
----
90

query I rowsort
SELECT 99 - + + 63 col0
----
36

query II rowsort
SELECT + 47 - - 45 col2, - 91
----
92
-91

query I rowsort
SELECT DISTINCT + - 36 * - - 68 AS col2
----
-2448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5095
SELECT - COALESCE ( + + 20, - + 25, 80 * + CAST( NULL AS SIGNED ) * + + 64 )
----
-20

skipif mysql # not compatible
query I rowsort label-5095
SELECT - COALESCE ( + + 20, - + 25, 80 * + CAST ( NULL AS INTEGER ) * + + 64 )
----
-20

query I rowsort
SELECT - + 22 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT COUNT( * ) * 32 * + ( + 34 )
----
1088

skipif mysql # not compatible
query I rowsort label-5097
SELECT COUNT ( * ) * 32 * + ( + 34 )
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL - COUNT( - + 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL - COUNT ( - + 83 )
----
-1

query I rowsort
SELECT DISTINCT - - 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5100
SELECT DISTINCT 84 * ( - ( COUNT( + 64 ) ) ) + + 89 + + 5 col2, + 1
----
10
1

skipif mysql # not compatible
query II rowsort label-5100
SELECT DISTINCT 84 * ( - ( COUNT ( + 64 ) ) ) + + 89 + + 5 col2, + 1
----
10
1

query I rowsort
SELECT + - 78 col2
----
-78

query I rowsort
SELECT ALL + - 82 + - - 42
----
-40

query I rowsort
SELECT + 11 * - 54 + 47 AS col0
----
-547

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT + 11 - - 2 DIV + + 8
----
11

skipif mysql # not compatible
query I rowsort label-5104
SELECT + 11 - - 2 / + + 8
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5105
SELECT 81 AS col2, + COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-5105
SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2
----
81
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5106
SELECT ALL - 46 AS col0, - COUNT( * ) DIV - + 26
----
-46
0

skipif mysql # not compatible
query II rowsort label-5106
SELECT ALL - 46 AS col0, - COUNT ( * ) / - + 26
----
-46
0

query I rowsort
SELECT ALL - 14 - 21 AS col2
----
-35

query I rowsort
SELECT DISTINCT - 5 * - 31
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT COUNT( * ) * - 82 * 52
----
-4264

skipif mysql # not compatible
query I rowsort label-5109
SELECT COUNT ( * ) * - 82 * 52
----
-4264

query I rowsort
SELECT ALL - 36 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT 81 + 79 * + COUNT( * ) * + + 74 AS col2
----
5927

skipif mysql # not compatible
query I rowsort label-5111
SELECT 81 + 79 * + COUNT ( * ) * + + 74 AS col2
----
5927

query I rowsort
SELECT 87 * + - 9
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT NULLIF ( 18, MIN( ALL - 66 ) + ( - + COALESCE ( 63, + COUNT( * ) ) ) + - 10 * 71 ) + + + 98 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-5113
SELECT NULLIF ( 18, MIN ( ALL - 66 ) + ( - + COALESCE ( 63, + COUNT ( * ) ) ) + - 10 * 71 ) + + + 98 AS col1
----
116

query II rowsort
SELECT 61 AS col0, 2 AS col0
----
61
2

query II rowsort
SELECT DISTINCT 61 AS col2, - 76 AS col2
----
61
-76

query I rowsort
SELECT 6 + - 88 AS col0
----
-82

query I rowsort
SELECT 42 * 55 AS col2
----
2310

query II rowsort
SELECT ALL 69 AS col2, 24 * + + 67 AS col2
----
69
1608

query I rowsort
SELECT DISTINCT 20 AS col1
----
20

query I rowsort
SELECT DISTINCT 72 AS col0
----
72

query I rowsort
SELECT ALL - ( - - 34 ) * - ( + 39 )
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT DISTINCT - COUNT( * ) * + ( + 81 ) - - 46 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT - COUNT ( * ) * + ( + 81 ) - - 46 AS col2
----
-35

query I rowsort
SELECT + 43 + 1 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - COUNT( * ) + - 98
----
-99

skipif mysql # not compatible
query I rowsort label-5124
SELECT - COUNT ( * ) + - 98
----
-99

query I rowsort
SELECT + CASE + 64 WHEN - 64 * + 21 THEN NULL WHEN - + 10 * + + 44 THEN + 3 / + 66 + + ( + - ( + - 8 ) ) ELSE NULL END / + - 75 + 27 * + 77 col0
----
NULL

query I rowsort
SELECT - + 95 * - 11 AS col0
----
1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5127
SELECT ALL + + 34 + + - 2 + + 76 + COUNT( * ) DIV - + ( - 82 ) DIV + - 38 + - 57 + 48 * - ( - COUNT( * ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL + + 34 + + - 2 + + 76 + COUNT ( * ) / - + ( - 82 ) / + - 38 + - 57 + 48 * - ( - COUNT ( * ) ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5128
SELECT - + COALESCE ( 15, + + 4 * + 47, + - CASE ( + 60 ) WHEN + 84 * 88 THEN - + MIN( ALL - 65 ) WHEN - 62 - + CAST( + 12 AS SIGNED ) THEN - 82 END DIV - - 59 ) col1, 27
----
-15
27

skipif mysql # not compatible
query II rowsort label-5128
SELECT - + COALESCE ( 15, + + 4 * + 47, + - CASE ( + 60 ) WHEN + 84 * 88 THEN - + MIN ( ALL - 65 ) WHEN - 62 - + CAST ( + 12 AS INTEGER ) THEN - 82 END / - - 59 ) col1, 27
----
-15
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - COUNT( ALL 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-5129
SELECT - COUNT ( ALL 36 )
----
-1

query I rowsort
SELECT DISTINCT + 24 + - + 56
----
-32

query II rowsort
SELECT DISTINCT 57 AS col0, 72 AS col0
----
57
72

query I rowsort
SELECT ALL + 91 * + + 69 AS col2
----
6279

query II rowsort
SELECT + 13 AS col1, + 47 AS col0
----
13
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5134
SELECT ALL + 79 DIV - 71 + - + COUNT( * ) + + 35 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL + 79 / - 71 + - + COUNT ( * ) + + 35 AS col1
----
33

query I rowsort
SELECT DISTINCT - 21 + 66
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT DISTINCT + - ( - 35 ) * + - 8 DIV 55 DIV - + 20
----
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT + - ( - 35 ) * + - 8 / 55 / - + 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + COUNT( ALL 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5137
SELECT + COUNT ( ALL 34 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT COALESCE ( - 45, - 67 ) DIV + - 67 + 32 + + - 78 + + 4 DIV + 23 * - 35
----
-46

skipif mysql # not compatible
query I rowsort label-5138
SELECT COALESCE ( - 45, - 67 ) / + - 67 + 32 + + - 78 + + 4 / + 23 * - 35
----
-46

query II rowsort
SELECT ALL - 92 * + + 12 - - ( - 67 ) AS col2, 77 AS col1
----
-1171
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5140
SELECT - MIN( CAST( NULL AS SIGNED ) ) * + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) * + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT COALESCE ( + 12, COUNT( * ) DIV 19, - 38 + + 16 )
----
12

skipif mysql # not compatible
query I rowsort label-5141
SELECT COALESCE ( + 12, COUNT ( * ) / 19, - 38 + + 16 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT - 68 + + + 30 - - COUNT( DISTINCT 61 ) * + 24 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5142
SELECT - 68 + + + 30 - - COUNT ( DISTINCT 61 ) * + 24 AS col0
----
-14

query II rowsort
SELECT - 26 * 45 AS col2, + 57 AS col1
----
-1170
57

query I rowsort
SELECT + 44 + - 83 AS col2
----
-39

query I rowsort
SELECT NULLIF ( 35, + + 58 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5146
SELECT 56 * - - 76 * - CAST( NULL AS SIGNED ) + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT 56 * - - 76 * - CAST ( NULL AS INTEGER ) + 2 AS col1
----
NULL

query I rowsort
SELECT + 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL COUNT( * ) * + 88 * + 28 * - 27 * - - 23
----
-1530144

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL COUNT ( * ) * + 88 * + 28 * - 27 * - - 23
----
-1530144

query I rowsort
SELECT COALESCE ( + ( + 51 ), 74 + - 67 + + 60 )
----
51

query I rowsort
SELECT ALL + 87 AS col1
----
87

query I rowsort
SELECT + 2 * + 43 * - + 71 AS col2
----
-6106

query I rowsort
SELECT + 37 * 34 * + 88 AS col2
----
110704

query I rowsort
SELECT DISTINCT 73 AS col2
----
73

query I rowsort
SELECT ALL 24 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT + COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5155
SELECT + COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5156
SELECT + - 24 + - - COUNT( * ) DIV 47 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5156
SELECT + - 24 + - - COUNT ( * ) / 47 AS col0
----
-24

query I rowsort
SELECT + + 66 * + 96
----
6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5158
SELECT ALL 94 + - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * + ( + 57 ) + - 25 * NULLIF ( - + COUNT( * ), 53 + - - 57 - + 35 * + + CASE - 11 WHEN + COUNT( * ) * + 63 + 76 + - MIN( + + 96 ) * COUNT( * ) + + + 16 + - 19 THEN + MAX( + 70 ) * + 59 + - - 59 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL 94 + - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * + ( + 57 ) + - 25 * NULLIF ( - + COUNT ( * ), 53 + - - 57 - + 35 * + + CASE - 11 WHEN + COUNT ( * ) * + 63 + 76 + - MIN ( + + 96 ) * COUNT ( * ) + + + 16 + - 19 THEN + MAX ( + 70 ) * + 59 + - - 59 END )
----
NULL

query I rowsort
SELECT + - 80 - - 65
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5160
SELECT + + NULLIF ( - COUNT( DISTINCT 75 ), - CAST( + 58 AS SIGNED ) ) + 17 DIV - 98 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5160
SELECT + + NULLIF ( - COUNT ( DISTINCT 75 ), - CAST ( + 58 AS INTEGER ) ) + 17 / - 98 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5161
SELECT ALL 21 * - + 85 DIV CASE 49 WHEN + 68 - + - 98 THEN + + 93 + + - ( 52 ) * + 36 WHEN - COUNT( * ) THEN NULL ELSE + + 89 * + - NULLIF ( - + 11, - ( + CAST( NULL AS SIGNED ) ) * COALESCE ( - + 40, 42 DIV + 77 - + - ( - - 50 ) ) ) * 81 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL 21 * - + 85 / CASE 49 WHEN + 68 - + - 98 THEN + + 93 + + - ( 52 ) * + 36 WHEN - COUNT ( * ) THEN NULL ELSE + + 89 * + - NULLIF ( - + 11, - ( + CAST ( NULL AS INTEGER ) ) * COALESCE ( - + 40, 42 / + 77 - + - ( - - 50 ) ) ) * 81 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL 60 + - COUNT( ALL - + CASE 13 WHEN - 95 + + 72 THEN NULL ELSE - 6 * NULLIF ( - - 77, - COALESCE ( + 0, - ( + - 22 ) ) + - 47 ) + + 40 END ) col2
----
59

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL 60 + - COUNT ( ALL - + CASE 13 WHEN - 95 + + 72 THEN NULL ELSE - 6 * NULLIF ( - - 77, - COALESCE ( + 0, - ( + - 22 ) ) + - 47 ) + + 40 END ) col2
----
59

query I rowsort
SELECT ALL 65 + - 19
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL - - 6 + + SUM( DISTINCT + 33 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL - - 6 + + SUM ( DISTINCT + 33 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT - 92 + - SUM( ALL + 0 ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT - 92 + - SUM ( ALL + 0 ) col0
----
-92

query I rowsort
SELECT ALL - 34 * + 92 AS col1
----
-3128

query I rowsort
SELECT - 31 - + 54 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT ALL SUM( - 2 ) AS col1, + 29 AS col0
----
-2
29

skipif mysql # not compatible
query II rowsort label-5168
SELECT ALL SUM ( - 2 ) AS col1, + 29 AS col0
----
-2
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT + - CASE - + 62 WHEN + ( + 36 ) THEN + - 38 + 96 WHEN - 44 THEN NULL WHEN + 84 THEN - CAST( + - 87 AS SIGNED ) ELSE NULL END * - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT + - CASE - + 62 WHEN + ( + 36 ) THEN + - 38 + 96 WHEN - 44 THEN NULL WHEN + 84 THEN - CAST ( + - 87 AS INTEGER ) ELSE NULL END * - 91 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 64 - 31 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT + + 4 + + 21 * - 29 + SUM( - 27 )
----
-632

skipif mysql # not compatible
query I rowsort label-5171
SELECT + + 4 + + 21 * - 29 + SUM ( - 27 )
----
-632

query I rowsort
SELECT ALL + 53 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5173
SELECT DISTINCT - 12 / - 73 - + CAST( NULL AS SIGNED ) * + 35 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT DISTINCT - 12 / - 73 - + CAST ( NULL AS INTEGER ) * + 35 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 52 * + - 8
----
416

query I rowsort
SELECT DISTINCT + 42 * - 27 AS col1
----
-1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5176
SELECT ALL - CASE + CASE - 52 WHEN + CASE - 90 WHEN - 71 THEN NULL WHEN - 84 THEN - MAX( DISTINCT + + 52 ) - + MIN( - 77 ) + 87 + - 0 * + 99 * + CASE - - ( - 11 ) WHEN + + 85 * + + 31 * - 46 THEN NULL WHEN + - COUNT( - 7 ) THEN - 80 + + 27 + - - 51 - + ( 66 ) * - ( ( 83 ) ) + - 87 * - 17 / + 19 * - COUNT( * ) * - 21 END END * + COUNT( * ) THEN NULL ELSE + 71 * - - 75 + + ( - 32 ) - + 15 END WHEN - ( 20 ) * - 0 + 12 THEN NULL ELSE + COALESCE ( 60, - 56, 6 ) * 34 END * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL - CASE + CASE - 52 WHEN + CASE - 90 WHEN - 71 THEN NULL WHEN - 84 THEN - MAX ( DISTINCT + + 52 ) - + MIN ( - 77 ) + 87 + - 0 * + 99 * + CASE - - ( - 11 ) WHEN + + 85 * + + 31 * - 46 THEN NULL WHEN + - COUNT ( - 7 ) THEN - 80 + + 27 + - - 51 - + ( 66 ) * - ( ( 83 ) ) + - 87 * - 17 / + 19 * - COUNT ( * ) * - 21 END END * + COUNT ( * ) THEN NULL ELSE + 71 * - - 75 + + ( - 32 ) - + 15 END WHEN - ( 20 ) * - 0 + 12 THEN NULL ELSE + COALESCE ( 60, - 56, 6 ) * 34 END * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 42 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL + 60 * + + 25 * COUNT( * ) * 41
----
61500

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL + 60 * + + 25 * COUNT ( * ) * 41
----
61500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT + CAST( NULL AS SIGNED ) + + - COUNT( - ( + 94 ) ) * + CASE 26 WHEN CAST( - 30 AS SIGNED ) * + CAST( NULL AS SIGNED ) + - 45 + 31 + + + 46 THEN - 69 ELSE - 11 END + + 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT + CAST ( NULL AS INTEGER ) + + - COUNT ( - ( + 94 ) ) * + CASE 26 WHEN CAST ( - 30 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - 45 + 31 + + + 46 THEN - 69 ELSE - 11 END + + 31 col0
----
NULL

query I rowsort
SELECT - COALESCE ( 1, - 16 ) + 92
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT 88 * - 68 + 90 - COUNT( * ) + - ( AVG ( - 90 ) ) * - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT 88 * - 68 + 90 - COUNT ( * ) + - ( AVG ( - 90 ) ) * - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 73 * + - 93
----
-6789

query I rowsort
SELECT DISTINCT + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT + 80 * - + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT + 80 * - + COUNT ( * )
----
-80

query I rowsort
SELECT ALL 48 + + 50 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5187
SELECT 41 + + - 95 * - + CAST( - + COUNT( * ) AS SIGNED ) + + 40 DIV - + CAST( + 19 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5187
SELECT 41 + + - 95 * - + CAST ( - + COUNT ( * ) AS INTEGER ) + + 40 / - + CAST ( + 19 AS INTEGER ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5188
SELECT ALL - 98 + 6 + + COUNT( * ) AS col1, - ( - + CAST( NULL AS SIGNED ) ) + - - 56 * - - 76 AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-5188
SELECT ALL - 98 + 6 + + COUNT ( * ) AS col1, - ( - + CAST ( NULL AS INTEGER ) ) + - - 56 * - - 76 AS col2
----
-91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT 25 DIV 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT 25 / 53 AS col1
----
0

query I rowsort
SELECT + ( + - COALESCE ( + 79, + 32 + - 73 ) ) + 18
----
-61

query I rowsort
SELECT ALL - - 92 + - - 24 AS col2
----
116

query I rowsort
SELECT 84 + + - 4 AS col0
----
80

query I rowsort
SELECT DISTINCT - 87 + 44
----
-43

query I rowsort
SELECT ALL + - 63 * + 26
----
-1638

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT ALL - 54 + - - MAX( + 50 ) AS col1, - 37
----
-4
-37

skipif mysql # not compatible
query II rowsort label-5195
SELECT ALL - 54 + - - MAX ( + 50 ) AS col1, - 37
----
-4
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - MAX( + 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - MAX ( + 81 ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT ALL CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER )
----
-1

query I rowsort
SELECT + 16 + - 89 AS col2
----
-73

query I rowsort
SELECT ALL 70 col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - MAX( 7 ) * + + 48 * - 5 AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-5200
SELECT - MAX ( 7 ) * + + 48 * - 5 AS col1
----
1680

query I rowsort
SELECT DISTINCT ( - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + 5 + + 42 - - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-5202
SELECT + 5 + + 42 - - COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + SUM( - + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + SUM ( - + 79 )
----
-79

query I rowsort
SELECT ALL 79 * - 75 * - - 28 AS col0
----
-165900

query I rowsort
SELECT ( - 23 ) + - 33 + - 73 + 23 + - 81
----
-187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5206
SELECT DISTINCT COUNT( + 85 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT COUNT ( + 85 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT SUM( - - 5 ) * - - 89
----
445

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT SUM ( - - 5 ) * - - 89
----
445

onlyif mysql # DIV for integer division: 
query II rowsort label-5208
SELECT - 8 DIV + 41 + + - 3 * + + 93 AS col2, 6 AS col2
----
-279
6

skipif mysql # not compatible
query II rowsort label-5208
SELECT - 8 / + 41 + + - 3 * + + 93 AS col2, 6 AS col2
----
-279
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL - MAX( ALL 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - MAX ( ALL 79 ) AS col1
----
-79

query I rowsort
SELECT DISTINCT 32 + 79 AS col2
----
111

query I rowsort
SELECT ALL 91 + - - 15 * + 31 * - 79 * - 36
----
1322551

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL - MIN( ALL + + 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL - MIN ( ALL + + 66 ) AS col2
----
-66

query I rowsort
SELECT DISTINCT - 11 + + COALESCE ( - 4, COALESCE ( - 83, + - 3 ), 19 ) AS col2
----
-15

query II rowsort
SELECT DISTINCT 25 + 54 AS col0, 34 * - + 36 AS col2
----
79
-1224

query I rowsort
SELECT 41 * + - 65
----
-2665

query I rowsort
SELECT DISTINCT + COALESCE ( - 44, - - ( - 93 ) ) + - - 22 + - 57 * - 88 * + 28
----
140426

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5217
SELECT ALL - 94 + + 84 AS col2, + 91 * - 10 col0, + CAST( - - 26 AS SIGNED )
----
-10
-910
26

skipif mysql # not compatible
query III rowsort label-5217
SELECT ALL - 94 + + 84 AS col2, + 91 * - 10 col0, + CAST ( - - 26 AS INTEGER )
----
-10
-910
26

query I rowsort
SELECT 58 * 8 - 35
----
429

query I rowsort
SELECT 31 col2
----
31

query I rowsort
SELECT 41 * + 90
----
3690

query II rowsort
SELECT ALL - COALESCE ( - 36, 52 * 45 ) AS col1, + 43
----
36
43

query I rowsort
SELECT DISTINCT + 16 * + 61 + - 16 AS col0
----
960

query II rowsort
SELECT ALL - 58 + + 97 AS col1, 16 col1
----
39
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL + + 60 - - NULLIF ( - COUNT( * ), - + 19 ) * - 54
----
114

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + + 60 - - NULLIF ( - COUNT ( * ), - + 19 ) * - 54
----
114

query I rowsort
SELECT DISTINCT - - 38
----
38

query II rowsort
SELECT ALL - 3 - + 83 + - + 86 * - 30 AS col1, 26 AS col1
----
2494
26

query II rowsort
SELECT ALL 42 col1, + 50 + + 69
----
42
119

query II rowsort
SELECT DISTINCT 59 AS col2, + 98
----
59
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + 30 + + + MIN( ALL + 27 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-5229
SELECT + 30 + + + MIN ( ALL + 27 ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5230
SELECT DISTINCT - COUNT( * ) * + 58 DIV + 16 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT - COUNT ( * ) * + 58 / + 16 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL + COALESCE ( + 1, + 71, + 41 + + 68 ) - 11 + + COALESCE ( + SUM( ALL + - 29 ), - + 31 * + 57 * - - 71 )
----
-39

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL + COALESCE ( + 1, + 71, + 41 + + 68 ) - 11 + + COALESCE ( + SUM ( ALL + - 29 ), - + 31 * + 57 * - - 71 )
----
-39

query I rowsort
SELECT ALL - 51 * + - 30 col0
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT SUM( 69 ) * - 7 * + 44
----
-21252

skipif mysql # not compatible
query I rowsort label-5233
SELECT SUM ( 69 ) * - 7 * + 44
----
-21252

onlyif mysql # aggregate syntax: 
query II rowsort label-5234
SELECT DISTINCT + 11, + COUNT( * ) * 65 AS col2
----
11
65

skipif mysql # not compatible
query II rowsort label-5234
SELECT DISTINCT + 11, + COUNT ( * ) * 65 AS col2
----
11
65

query I rowsort
SELECT DISTINCT + ( + 0 ) * 95 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT 92 AS col0, + COUNT( * ) AS col2
----
92
1

skipif mysql # not compatible
query II rowsort label-5236
SELECT 92 AS col0, + COUNT ( * ) AS col2
----
92
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5237
SELECT 90 DIV - ( 81 ) col0, 94 + - 26 col2
----
-1
68

skipif mysql # not compatible
query II rowsort label-5237
SELECT 90 / - ( 81 ) col0, 94 + - 26 col2
----
-1
68

query II rowsort
SELECT ALL 27 + - + 96 AS col2, 48 AS col1
----
-69
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT 97 - + COUNT( DISTINCT 69 ) + - 5
----
91

skipif mysql # not compatible
query I rowsort label-5239
SELECT 97 - + COUNT ( DISTINCT 69 ) + - 5
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT 10 + 44 - - 79 * + + 60 * 88 + SUM( + 40 ) * + 47 * 52 * + + COUNT( * ) AS col0
----
514934

skipif mysql # not compatible
query I rowsort label-5240
SELECT 10 + 44 - - 79 * + + 60 * 88 + SUM ( + 40 ) * + 47 * 52 * + + COUNT ( * ) AS col0
----
514934

query II rowsort
SELECT DISTINCT + 79 + 0 AS col2, 69
----
79
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL + 7 * - MIN( - 98 ) + ( - 35 )
----
651

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + 7 * - MIN ( - 98 ) + ( - 35 )
----
651

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT + 61 * + + 20, + MAX( ALL - 14 ) col1
----
1220
-14

skipif mysql # not compatible
query II rowsort label-5243
SELECT + 61 * + + 20, + MAX ( ALL - 14 ) col1
----
1220
-14

query I rowsort
SELECT ALL + 68 * - 47 * + 67 + 53
----
-214079

query I rowsort
SELECT + 79 - - 4 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5246
SELECT DISTINCT 85 * - 5 DIV COUNT( * ) * + 80 AS col2
----
-34000

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT 85 * - 5 / COUNT ( * ) * + 80 AS col2
----
-34000

onlyif mysql # aggregate syntax: 
query II rowsort label-5247
SELECT + MIN( ALL - 9 ) AS col0, - 21
----
-9
-21

skipif mysql # not compatible
query II rowsort label-5247
SELECT + MIN ( ALL - 9 ) AS col0, - 21
----
-9
-21

query I rowsort
SELECT ALL 19 * 54
----
1026

onlyif mysql # aggregate syntax: 
query II rowsort label-5249
SELECT - 25 + + COUNT( * ) AS col1, ( - + 5 )
----
-24
-5

skipif mysql # not compatible
query II rowsort label-5249
SELECT - 25 + + COUNT ( * ) AS col1, ( - + 5 )
----
-24
-5

query I rowsort
SELECT + 31 * - + 80
----
-2480

query I rowsort
SELECT ALL - 91 * - 73 + - - 94 + 68 * - 23
----
5173

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT + MAX( - - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-5252
SELECT + MAX ( - - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL - COUNT( * ) * 62 + 26 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - COUNT ( * ) * 62 + 26 AS col0
----
-36

query I rowsort
SELECT CASE - + 67 WHEN + + 36 THEN - + 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5255
SELECT DISTINCT - 97 * + SUM( - 71 ) + - + COUNT( * ) DIV + 53 AS col2
----
6887

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT - 97 * + SUM ( - 71 ) + - + COUNT ( * ) / + 53 AS col2
----
6887

query II rowsort
SELECT ALL + CASE 15 WHEN 27 THEN + - ( + + 83 ) END * + + 10 - - 9, + 7 * - - 44 AS col0
----
NULL
308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT + - 18 + - CAST( NULL AS SIGNED ) - 10 + - + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT + - 18 + - CAST ( NULL AS INTEGER ) - 10 + - + 87 AS col0
----
NULL

query I rowsort
SELECT ALL 12 * - 9 - - 0 - - - 50
----
-158

query II rowsort
SELECT + 57 * - 51 AS col0, 17 AS col1
----
-2907
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5260
SELECT ALL + ( CAST( NULL AS SIGNED ) ) col2, 11 AS col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-5260
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) col2, 11 AS col2
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT MAX( DISTINCT 66 ) * 1 * + - 62 + COUNT( * ) + - - 43 * - 8 + - 39 + - + ( + - 14 ) * - 8 + + 11 - - MIN( ALL - 84 )
----
-4659

skipif mysql # not compatible
query I rowsort label-5261
SELECT MAX ( DISTINCT 66 ) * 1 * + - 62 + COUNT ( * ) + - - 43 * - 8 + - 39 + - + ( + - 14 ) * - 8 + + 11 - - MIN ( ALL - 84 )
----
-4659

onlyif mysql # DIV for integer division: 
query I rowsort label-5262
SELECT + + 41 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5262
SELECT + + 41 / 53 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5263
SELECT - CAST( - ( COUNT( + 28 ) ) AS SIGNED ) + - 64 * - ( 94 )
----
6017

skipif mysql # not compatible
query I rowsort label-5263
SELECT - CAST ( - ( COUNT ( + 28 ) ) AS INTEGER ) + - 64 * - ( 94 )
----
6017

query I rowsort
SELECT ALL + - NULLIF ( + 20, 59 ) * 66 + 85
----
-1235

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + - 66 * - 85 * + 50 * + + COUNT( * )
----
280500

skipif mysql # not compatible
query I rowsort label-5265
SELECT + - 66 * - 85 * + 50 * + + COUNT ( * )
----
280500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT - - 61 * + CAST( NULL AS SIGNED ) + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT - - 61 * + CAST ( NULL AS INTEGER ) + - 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5267
SELECT ALL + CASE 43 WHEN - + 38 + - 29 * 20 THEN 15 WHEN + - 9 THEN + + 81 - + 46 + - 31 END * - + 42 * 41 AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5267
SELECT ALL + CASE 43 WHEN - + 38 + - 29 * 20 THEN 15 WHEN + - 9 THEN + + 81 - + 46 + - 31 END * - + 42 * 41 AS col2, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT DISTINCT 16 * 58, 16 col1
----
928
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT - - COUNT( * ) + + + ( - + 35 ) + + 11 col1
----
-23

skipif mysql # not compatible
query I rowsort label-5269
SELECT - - COUNT ( * ) + + + ( - + 35 ) + + 11 col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL - 11 * COUNT( - 24 ) * - COUNT( - - 62 ) + - 10 * + 79
----
-779

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - 11 * COUNT ( - 24 ) * - COUNT ( - - 62 ) + - 10 * + 79
----
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT + CASE - - 12 WHEN + + 7 THEN - MAX( DISTINCT - 68 ) + + - 72 WHEN MIN( ALL - - 86 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT + CASE - - 12 WHEN + + 7 THEN - MAX ( DISTINCT - 68 ) + + - 72 WHEN MIN ( ALL - - 86 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 82 AS col2
----
-82

query II rowsort
SELECT DISTINCT ( + 28 ) AS col1, 45 AS col1
----
28
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5274
SELECT - COUNT( * ) + 65 col2, 82 AS col0
----
64
82

skipif mysql # not compatible
query II rowsort label-5274
SELECT - COUNT ( * ) + 65 col2, 82 AS col0
----
64
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT + NULLIF ( + + 96, - COUNT( * ) ) * - + 74 AS col1
----
-7104

skipif mysql # not compatible
query I rowsort label-5275
SELECT + NULLIF ( + + 96, - COUNT ( * ) ) * - + 74 AS col1
----
-7104

onlyif mysql # aggregate syntax: 
query II rowsort label-5276
SELECT - + 34 * - MIN( DISTINCT 76 ) AS col2, + 14 * + - 17 + - 72 AS col1
----
2584
-310

skipif mysql # not compatible
query II rowsort label-5276
SELECT - + 34 * - MIN ( DISTINCT 76 ) AS col2, + 14 * + - 17 + - 72 AS col1
----
2584
-310

query I rowsort
SELECT ALL 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL - NULLIF ( - 48, COUNT( * ) ) + 92
----
140

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL - NULLIF ( - 48, COUNT ( * ) ) + 92
----
140

query I rowsort
SELECT DISTINCT ( - - 43 )
----
43

query I rowsort
SELECT DISTINCT - 56 + + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL ( + CASE - 52 WHEN + 61 THEN + + 78 + 84 WHEN 80 THEN + MAX( + COALESCE ( 97, - - ( 24 ) ) ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL ( + CASE - 52 WHEN + 61 THEN + + 78 + 84 WHEN 80 THEN + MAX ( + COALESCE ( 97, - - ( 24 ) ) ) ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL + CASE + + 79 WHEN + 97 THEN NULL ELSE 34 END + + - 94 AS col1
----
-60

query II rowsort
SELECT ALL - 39 + - 4 * + - 93, - 64 + - 81 AS col2
----
333
-145

query I rowsort
SELECT DISTINCT CASE - - 68 WHEN - COALESCE ( - 0, + - 61 * + 4 + + 65 * + 75, + COALESCE ( - 98, - 76 + - + 96 + + 27 - + 52 ) + 91 + 48 ) THEN - + 24 + + 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL COUNT( + ( 81 ) ) + - 27 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL COUNT ( + ( 81 ) ) + - 27 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL + MAX( DISTINCT - 53 ) * - + 41 AS col2
----
2173

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + MAX ( DISTINCT - 53 ) * - + 41 AS col2
----
2173

query I rowsort
SELECT - 49 * 65 AS col1
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - COUNT( DISTINCT - - ( 26 ) ) + + 77 col0
----
76

skipif mysql # not compatible
query I rowsort label-5288
SELECT - COUNT ( DISTINCT - - ( 26 ) ) + + 77 col0
----
76

query I rowsort
SELECT - 14 * + 24 AS col1
----
-336

query I rowsort
SELECT DISTINCT ( 6 ) AS col1
----
6

query I rowsort
SELECT - 19 * + 66 * - + 95
----
119130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5292
SELECT CAST( NULL AS SIGNED ) AS col0, 54 + + 85
----
NULL
139

skipif mysql # not compatible
query II rowsort label-5292
SELECT CAST ( NULL AS INTEGER ) AS col0, 54 + + 85
----
NULL
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT CAST( 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-5293
SELECT CAST ( 41 AS INTEGER )
----
41

query I rowsort
SELECT ALL + 5 col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT ALL - 70 DIV 19 - - 81 + 43
----
121

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL - 70 / 19 - - 81 + 43
----
121

query II rowsort
SELECT ALL + 15 AS col2, + 51
----
15
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT ALL + 20 DIV + 83 - - + 93 * - 24 * + 97 AS col2
----
-216504

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + 20 / + 83 - - + 93 * - 24 * + 97 AS col2
----
-216504

query I rowsort
SELECT DISTINCT + ( + 74 ) AS col0
----
74

query I rowsort
SELECT DISTINCT + 92 AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT ALL 30 DIV + 66 * - 79 - 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL 30 / + 66 * - 79 - 64 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT + CASE - CAST( COUNT( * ) AS SIGNED ) WHEN 71 + + 6 THEN - + 4 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT + CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN 71 + + 6 THEN - + 4 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + + 11, 43 AS col1
----
11
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5303
SELECT DISTINCT + 34 * 65 DIV - + COUNT( * ) + - 41 + + - 42 + - 1 * + 26
----
-2319

skipif mysql # not compatible
query I rowsort label-5303
SELECT DISTINCT + 34 * 65 / - + COUNT ( * ) + - 41 + + - 42 + - 1 * + 26
----
-2319

query I rowsort
SELECT DISTINCT 43 * + 93
----
3999

query I rowsort
SELECT + 12 * + 11 AS col2
----
132

query I rowsort
SELECT + - 51 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5307
SELECT + + 95 - + 2 DIV + ( - 67 ) + + + CAST( ( - CAST( 93 AS DECIMAL ) ) AS SIGNED ) * - 72 * + + 49 AS col2
----
328199

skipif mysql # not compatible
query I rowsort label-5307
SELECT + + 95 - + 2 / + ( - 67 ) + + + CAST ( ( - CAST ( 93 AS REAL ) ) AS INTEGER ) * - 72 * + + 49 AS col2
----
328199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5308
SELECT + + CAST( + - 50 AS SIGNED ) * - COUNT( * ) AS col2, 67 * COUNT( * ) AS col0
----
50
67

skipif mysql # not compatible
query II rowsort label-5308
SELECT + + CAST ( + - 50 AS INTEGER ) * - COUNT ( * ) AS col2, 67 * COUNT ( * ) AS col0
----
50
67

query I rowsort
SELECT ALL + - 61 col1
----
-61

query II rowsort
SELECT ALL + 41 AS col1, 74 col2
----
41
74

query I rowsort
SELECT + ( + - 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT DISTINCT + CAST( - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT + CAST ( - 67 AS INTEGER )
----
-67

query II rowsort
SELECT ALL + - 1 AS col2, - 61
----
-1
-61

query I rowsort
SELECT + - 7 col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT ALL + MIN( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL + MIN ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + COUNT( - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-5316
SELECT + COUNT ( - 52 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5317
SELECT + 15 + 59 + 96 + 69 * - 1 * + 98, + 22 - - COALESCE ( - COALESCE ( 3, - - 59, - + 40 ), CASE 45 WHEN + 73 + + + CASE CAST( NULL AS DECIMAL ) WHEN - - 57 * 2 - MAX( DISTINCT - - 24 ) + - 56 * + 28 THEN NULL ELSE + MAX( ALL - 38 ) + + ( - CAST( + 64 AS SIGNED ) ) END - - 41 + - 47 * - CAST( NULL AS SIGNED ) THEN COALESCE ( 97, - 77, - COUNT( * ) ) ELSE 28 * - 61 + + 82 END ) AS col2
----
-6592
19

skipif mysql # not compatible
query II rowsort label-5317
SELECT + 15 + 59 + 96 + 69 * - 1 * + 98, + 22 - - COALESCE ( - COALESCE ( 3, - - 59, - + 40 ), CASE 45 WHEN + 73 + + + CASE CAST ( NULL AS REAL ) WHEN - - 57 * 2 - MAX ( DISTINCT - - 24 ) + - 56 * + 28 THEN NULL ELSE + MAX ( ALL - 38 ) + + ( - CAST ( + 64 AS INTEGER ) ) END - - 41 + - 47 * - CAST ( NULL AS INTEGER ) THEN COALESCE ( 97, - 77, - COUNT ( * ) ) ELSE 28 * - 61 + + 82 END ) AS col2
----
-6592
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT + 84 - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5318
SELECT + 84 - + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5319
SELECT + - 68 DIV + - 12 DIV ( + COUNT( * ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5319
SELECT + - 68 / + - 12 / ( + COUNT ( * ) ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT + - CAST( + - 71 AS SIGNED ) + + CAST( - 58 AS SIGNED ) col2
----
13

skipif mysql # not compatible
query I rowsort label-5320
SELECT + - CAST ( + - 71 AS INTEGER ) + + CAST ( - 58 AS INTEGER ) col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT DISTINCT + + NULLIF ( + + 3, + 59 + - - COALESCE ( - 39, - + CAST( + 27 AS SIGNED ) * - 59 + - 16 + - 85 / + - 94 * - ( 20 ) ) ) * - 38 + - + 97 AS col2
----
-211

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT + + NULLIF ( + + 3, + 59 + - - COALESCE ( - 39, - + CAST ( + 27 AS INTEGER ) * - 59 + - 16 + - 85 / + - 94 * - ( 20 ) ) ) * - 38 + - + 97 AS col2
----
-211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5322
SELECT ALL CASE - CAST( - 66 AS SIGNED ) WHEN 54 THEN + ( 0 ) * - 65 / + CAST( COUNT( * ) AS DECIMAL ) * + - 64 * COUNT( * ) + + COUNT( * ) + - 13 WHEN 24 * - - 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL CASE - CAST ( - 66 AS INTEGER ) WHEN 54 THEN + ( 0 ) * - 65 / + CAST ( COUNT ( * ) AS REAL ) * + - 64 * COUNT ( * ) + + COUNT ( * ) + - 13 WHEN 24 * - - 66 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT DISTINCT CASE AVG ( ALL 46 ) WHEN - + 19 THEN + 19 + - MIN( - 73 ) WHEN - 82 THEN + 31 + 25 WHEN + 3 - - 93 + + 27 THEN NULL ELSE NULL END * + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT CASE AVG ( ALL 46 ) WHEN - + 19 THEN + 19 + - MIN ( - 73 ) WHEN - 82 THEN + 31 + 25 WHEN + 3 - - 93 + + 27 THEN NULL ELSE NULL END * + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT - - 30 * - 28 + - 15 + 74 * 48 * COALESCE ( + 64, - + 58 ) AS col2, ( - + 28 ) + + COUNT( * ) AS col1
----
226473
-27

skipif mysql # not compatible
query II rowsort label-5324
SELECT - - 30 * - 28 + - 15 + 74 * 48 * COALESCE ( + 64, - + 58 ) AS col2, ( - + 28 ) + + COUNT ( * ) AS col1
----
226473
-27

query I rowsort
SELECT ( 52 ) AS col2
----
52

query I rowsort
SELECT ALL - - 17 * 27 * 92 * 19 * 80 * - - 6 + + 52 AS col1
----
385119412

onlyif mysql # aggregate syntax: 
query II rowsort label-5327
SELECT ALL - COALESCE ( - 66, MAX( ALL 85 ) * COUNT( * ) ) + + + 26 + + 86, 58 col2
----
178
58

skipif mysql # not compatible
query II rowsort label-5327
SELECT ALL - COALESCE ( - 66, MAX ( ALL 85 ) * COUNT ( * ) ) + + + 26 + + 86, 58 col2
----
178
58

query I rowsort
SELECT + 68 + + 54 AS col1
----
122

query II rowsort
SELECT ALL 74 * - 56 AS col2, + 6 - 64
----
-4144
-58

query I rowsort
SELECT 16 * + 7 AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT CAST( NULL AS SIGNED ) + 20 + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT CAST ( NULL AS INTEGER ) + 20 + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT DISTINCT 9 * + + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT 9 * + + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT ALL - 7 + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - 7 + - COUNT ( * )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5334
SELECT DISTINCT ( - 64 ) + - + AVG ( ALL + 67 ) + - - CAST( NULL AS SIGNED ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT ( - 64 ) + - + AVG ( ALL + 67 ) + - - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5335
SELECT CAST( NULL AS SIGNED ) + 13 AS col1, + 74
----
NULL
74

skipif mysql # not compatible
query II rowsort label-5335
SELECT CAST ( NULL AS INTEGER ) + 13 AS col1, + 74
----
NULL
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5336
SELECT ALL + COUNT( + 67 ) + - 44 * - 79 col0, - NULLIF ( - 69, - 95 ) * 44
----
3477
3036

skipif mysql # not compatible
query II rowsort label-5336
SELECT ALL + COUNT ( + 67 ) + - 44 * - 79 col0, - NULLIF ( - 69, - 95 ) * 44
----
3477
3036

query I rowsort
SELECT DISTINCT 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT 31 - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-5338
SELECT 31 - COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT + 90 * + 67 AS col1
----
6030

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT + 81 - CASE + - COALESCE ( 71, 66 / - - SUM( - + 84 ) ) WHEN - 7 / 53 THEN NULL WHEN - + 64 * 0 * + - MAX( ALL + 67 ) * - - COUNT( * ) THEN 10 * - 25 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT + 81 - CASE + - COALESCE ( 71, 66 / - - SUM ( - + 84 ) ) WHEN - 7 / 53 THEN NULL WHEN - + 64 * 0 * + - MAX ( ALL + 67 ) * - - COUNT ( * ) THEN 10 * - 25 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 44 + - ( - + 68 ) - + 93 AS col2
----
19

query I rowsort
SELECT ALL CASE + - 29 WHEN 56 THEN - 17 END / + 11 AS col0
----
NULL

query I rowsort
SELECT 17 AS col1
----
17

query II rowsort
SELECT ALL + 63 - 63 * 71 * + 6, 29 AS col2
----
-26775
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT 69 * - COUNT( * ) * - - 89
----
-6141

skipif mysql # not compatible
query I rowsort label-5345
SELECT 69 * - COUNT ( * ) * - - 89
----
-6141

onlyif mysql # aggregate syntax: 
query II rowsort label-5346
SELECT ALL + 72 * + ( + 70 ) * + MAX( DISTINCT + 74 ) AS col0, + 4 AS col1
----
372960
4

skipif mysql # not compatible
query II rowsort label-5346
SELECT ALL + 72 * + ( + 70 ) * + MAX ( DISTINCT + 74 ) AS col0, + 4 AS col1
----
372960
4

query I rowsort
SELECT + 76 * - 80 - - - 20
----
-6100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5348
SELECT ALL - NULLIF ( - + 48, NULLIF ( - - CAST( NULL AS SIGNED ), - 27 ) + - 1 + - 0 ) AS col0, 40 AS col1
----
48
40

skipif mysql # not compatible
query II rowsort label-5348
SELECT ALL - NULLIF ( - + 48, NULLIF ( - - CAST ( NULL AS INTEGER ), - 27 ) + - 1 + - 0 ) AS col0, 40 AS col1
----
48
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5349
SELECT + 83 + + COUNT( * ) + - 50 DIV + 5 + - - 78
----
152

skipif mysql # not compatible
query I rowsort label-5349
SELECT + 83 + + COUNT ( * ) + - 50 / + 5 + - - 78
----
152

query II rowsort
SELECT ALL - ( + 90 ) AS col2, + 1 AS col1
----
-90
1

query I rowsort
SELECT ( 27 ) * - + 77 + + 1 + - - 13
----
-2065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5352
SELECT - 75 DIV 68 DIV - + NULLIF ( + COALESCE ( + + 32, + AVG ( ALL + 9 ) * - COUNT( * ) ), - - 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT - 75 / 68 / - + NULLIF ( + COALESCE ( + + 32, + AVG ( ALL + 9 ) * - COUNT ( * ) ), - - 55 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5353
SELECT DISTINCT + NULLIF ( + 25, - - ( + COUNT( * ) ) * - - ( - - 56 ) ) DIV + 87 - - 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT + NULLIF ( + 25, - - ( + COUNT ( * ) ) * - - ( - - 56 ) ) / + 87 - - 3 AS col1
----
3

query I rowsort
SELECT ALL - - 49 col0
----
49

query I rowsort
SELECT + 57 * - 65 + 85 AS col1
----
-3620

query I rowsort
SELECT DISTINCT - 12 col1
----
-12

query I rowsort
SELECT - 33 + 65 + + - 32 * + 32
----
-992

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT + MAX( - 41 ), ( + 62 ) AS col1
----
-41
62

skipif mysql # not compatible
query II rowsort label-5358
SELECT + MAX ( - 41 ), ( + 62 ) AS col1
----
-41
62

query I rowsort
SELECT DISTINCT - - 90
----
90

query I rowsort
SELECT ALL - 20 + 32 + ( 59 ) + - 7 * + - 93 * 61 AS col2
----
39782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5361
SELECT - 70 * - COUNT( * ) DIV + - COUNT( * ) + 77 * - 78
----
-6076

skipif mysql # not compatible
query I rowsort label-5361
SELECT - 70 * - COUNT ( * ) / + - COUNT ( * ) + 77 * - 78
----
-6076

query II rowsort
SELECT + ( - 38 ) AS col2, + 69
----
-38
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ( + ( 12 ) ) * + - 98 + COUNT( * )
----
-1175

skipif mysql # not compatible
query I rowsort label-5363
SELECT ( + ( 12 ) ) * + - 98 + COUNT ( * )
----
-1175

query II rowsort
SELECT ALL - 28 + - 24 * - 3 + - 73 AS col1, 40
----
-29
40

query I rowsort
SELECT DISTINCT - + 56 AS col0
----
-56

query I rowsort
SELECT DISTINCT 61 + - 91 AS col1
----
-30

query I rowsort
SELECT ALL + 68 * - - ( + + 32 )
----
2176

query I rowsort
SELECT 23 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ( + + COUNT( * ) ) * + + 34 * 81
----
2754

skipif mysql # not compatible
query I rowsort label-5369
SELECT ( + + COUNT ( * ) ) * + + 34 * 81
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT COUNT( * ) + - + 53 - ( - + 65 ) * 38 * 13 + + 36 AS col2
----
32094

skipif mysql # not compatible
query I rowsort label-5370
SELECT COUNT ( * ) + - + 53 - ( - + 65 ) * 38 * 13 + + 36 AS col2
----
32094

query I rowsort
SELECT DISTINCT ( + + 58 ) - - + 32
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT ALL CAST( - + MIN( - 79 ) AS SIGNED ) * + - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL CAST ( - + MIN ( - 79 ) AS INTEGER ) * + - COUNT ( * )
----
-79

query II rowsort
SELECT - 94 AS col0, NULLIF ( - - 56, 38 ) col1
----
-94
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT COUNT( * ) * + - 22 * - - 19
----
-418

skipif mysql # not compatible
query I rowsort label-5374
SELECT COUNT ( * ) * + - 22 * - - 19
----
-418

query I rowsort
SELECT ALL 90 * + CASE - 65 WHEN 9 + 84 THEN NULL ELSE 40 END AS col1
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT COUNT( * ) + - 24 + - 68 * + - 80 * 91
----
495017

skipif mysql # not compatible
query I rowsort label-5376
SELECT COUNT ( * ) + - 24 + - 68 * + - 80 * 91
----
495017

onlyif mysql # DIV for integer division: 
query II rowsort label-5377
SELECT ALL 51 AS col1, 11 + 83 + - 90 + + 69 DIV - - 3
----
51
27

skipif mysql # not compatible
query II rowsort label-5377
SELECT ALL 51 AS col1, 11 + 83 + - 90 + + 69 / - - 3
----
51
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT 8 * + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT 8 * + + COUNT ( * )
----
8

query I rowsort
SELECT DISTINCT 9 col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT ALL ( - - COALESCE ( + - 91, + CAST( NULL AS SIGNED ) * + + 8 * + - 76 + + 54 + - SUM( DISTINCT - 13 ) + - 31 * + 53 ) ) * 10 * - 81 - + + 71 AS col2
----
73639

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL ( - - COALESCE ( + - 91, + CAST ( NULL AS INTEGER ) * + + 8 * + - 76 + + 54 + - SUM ( DISTINCT - 13 ) + - 31 * + 53 ) ) * 10 * - 81 - + + 71 AS col2
----
73639

query I rowsort
SELECT 79 * 74 AS col1
----
5846

query I rowsort
SELECT 85 + 43
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-5383
SELECT + MIN( - ( 81 ) ), 89 + - - 36 AS col0
----
-81
125

skipif mysql # not compatible
query II rowsort label-5383
SELECT + MIN ( - ( 81 ) ), 89 + - - 36 AS col0
----
-81
125

query II rowsort
SELECT + - 91 AS col1, 62 AS col2
----
-91
62

query I rowsort
SELECT ALL - 31 * + 37 + ( 1 )
----
-1146

query I rowsort
SELECT 22 * - 94
----
-2068

query I rowsort
SELECT ALL - + 73 AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5388
SELECT DISTINCT + COALESCE ( - + 43, + - 89, + 32 DIV 29 * + 84 + COUNT( * ) ) * 49 + 81 * + + 37 * - COALESCE ( - 84, - 51 ) AS col2
----
249641

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT + COALESCE ( - + 43, + - 89, + 32 / 29 * + 84 + COUNT ( * ) ) * 49 + 81 * + + 37 * - COALESCE ( - 84, - 51 ) AS col2
----
249641

query I rowsort
SELECT DISTINCT - - 96 AS col2
----
96

query II rowsort
SELECT - 35 AS col0, + ( 53 ) * 2 * 6
----
-35
636

query I rowsort
SELECT 37 * + + 95
----
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT ALL + 83 + + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL + 83 + + - COUNT ( * )
----
82

query I rowsort
SELECT + + 14 AS col2
----
14

query I rowsort
SELECT ALL - + 59 + + 17 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5395
SELECT ALL + + 72 AS col1, + COUNT( * ) DIV - - COUNT( * ) * + - COUNT( * ) AS col0
----
72
-1

skipif mysql # not compatible
query II rowsort label-5395
SELECT ALL + + 72 AS col1, + COUNT ( * ) / - - COUNT ( * ) * + - COUNT ( * ) AS col0
----
72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT - - COUNT( * ) * - - 12 + + ( - + 76 ) - + MAX( + + 30 ) * - 33 AS col0
----
926

skipif mysql # not compatible
query I rowsort label-5396
SELECT - - COUNT ( * ) * - - 12 + + ( - + 76 ) - + MAX ( + + 30 ) * - 33 AS col0
----
926

query I rowsort
SELECT + + ( + 95 )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5398
SELECT - 9 + 80 + - - 73 DIV 26 + + COUNT( 15 ) + + 2 * + + ( + + 74 ) * - COALESCE ( - 47, 98, 46 + + - 74 + + 86 ) AS col2
----
7030

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 9 + 80 + - - 73 / 26 + + COUNT ( 15 ) + + 2 * + + ( + + 74 ) * - COALESCE ( - 47, 98, 46 + + - 74 + + 86 ) AS col2
----
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT + COUNT( * ) - + - 98 + - 7
----
92

skipif mysql # not compatible
query I rowsort label-5399
SELECT + COUNT ( * ) - + - 98 + - 7
----
92

query I rowsort
SELECT ALL + 7 * + 82
----
574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5401
SELECT DISTINCT CAST( - 27 AS SIGNED ) * + COUNT( * ) + 86 - 21 + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT CAST ( - 27 AS INTEGER ) * + COUNT ( * ) + 86 - 21 + COUNT ( * )
----
39

query I rowsort
SELECT ALL 90 col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5403
SELECT + 55 + - + 82 * - 10 * - CAST( + 55 AS DECIMAL ) * SUM( - 20 ) / + - 99 * CASE - MIN( ALL 84 ) WHEN + 24 / + 42 THEN + 76 WHEN - 46 + - 82 - 68 + - 37 + 3 THEN NULL ELSE - ( - + CAST( NULL AS SIGNED ) ) + - - 20 END + - 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT + 55 + - + 82 * - 10 * - CAST ( + 55 AS REAL ) * SUM ( - 20 ) / + - 99 * CASE - MIN ( ALL 84 ) WHEN + 24 / + 42 THEN + 76 WHEN - 46 + - 82 - 68 + - 37 + 3 THEN NULL ELSE - ( - + CAST ( NULL AS INTEGER ) ) + - - 20 END + - 82 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL COALESCE ( + CAST( 2 AS SIGNED ), + + 51 + 46 + + CAST( - ( 82 ) AS SIGNED ) * 19 - 64 )
----
2

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL COALESCE ( + CAST ( 2 AS INTEGER ), + + 51 + 46 + + CAST ( - ( 82 ) AS INTEGER ) * 19 - 64 )
----
2

query I rowsort
SELECT DISTINCT + 90 * 74 AS col2
----
6660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT ALL 43 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL 43 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT + 49 * 43 DIV - 33 col0
----
-63

skipif mysql # not compatible
query I rowsort label-5407
SELECT + 49 * 43 / - 33 col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5408
SELECT ALL ( + ( + COALESCE ( COUNT( * ), + ( - 22 ) + 94 + 42 * - 96 * ( + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) + - COALESCE ( + 91, 72 DIV - 42, + - 84 + 53 ) + COUNT( * ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL ( + ( + COALESCE ( COUNT ( * ), + ( - 22 ) + 94 + 42 * - 96 * ( + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) + - COALESCE ( + 91, 72 / - 42, + - 84 + 53 ) + COUNT ( * ) ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5409
SELECT ALL 60 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL 60 / 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT ALL 7 DIV + ( + 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL 7 / + ( + 40 )