hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 70 * 75 AS col0
----
5250

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

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT - ( + 8 ) * - COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT + COUNT( * ) + + 35 * - + 49
----
-1714

skipif mysql # not compatible
query I rowsort label-3
SELECT + COUNT ( * ) + + 35 * - + 49
----
-1714

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5
SELECT 52 * 75 DIV + 95 AS col2, SUM( DISTINCT + 67 ) + + + 29 + - 62 * - 97 * - + 80 AS col1
----
41
-481024

skipif mysql # not compatible
query II rowsort label-5
SELECT 52 * 75 / + 95 AS col2, SUM ( DISTINCT + 67 ) + + + 29 + - 62 * - 97 * - + 80 AS col1
----
41
-481024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT COUNT( * ) + - CAST( + 77 AS SIGNED ) - + 32
----
-108

skipif mysql # not compatible
query I rowsort label-6
SELECT COUNT ( * ) + - CAST ( + 77 AS INTEGER ) - + 32
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7
SELECT ALL CASE + 75 WHEN - 57 THEN NULL ELSE - + CASE - 36 WHEN + NULLIF ( ( + - ( - 61 ) ), 36 ) THEN - + AVG ( 61 ) ELSE 74 + + 28 + 1 - 71 + - + COUNT( * ) + - 41 END END + - 80 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL CASE + 75 WHEN - 57 THEN NULL ELSE - + CASE - 36 WHEN + NULLIF ( ( + - ( - 61 ) ), 36 ) THEN - + AVG ( 61 ) ELSE 74 + + 28 + 1 - 71 + - + COUNT ( * ) + - 41 END END + - 80 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 39 + 79 AS col1
----
118

query I rowsort
SELECT DISTINCT + 38 * + 4
----
152

query I rowsort
SELECT ALL - 83 + + 34 + - 90 + 86 col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT 57 + - 80 + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-11
SELECT 57 + - 80 + + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT 67 + 3 + COUNT( * ) * - 31
----
39

skipif mysql # not compatible
query I rowsort label-12
SELECT 67 + 3 + COUNT ( * ) * - 31
----
39

query I rowsort
SELECT DISTINCT + 38 * 97
----
3686

query I rowsort
SELECT 47 + - 60 AS col1
----
-13

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

query I rowsort
SELECT ALL - NULLIF ( 47, - 73 ) AS col2
----
-47

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

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL CAST ( NULL AS INTEGER ) + - - CAST ( - 82 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-18
SELECT DISTINCT COUNT( DISTINCT - + 84 ) * + 79 * - 61 AS col2, + ( + - 18 ) * SUM( DISTINCT - 23 ) + - 76 + - 39
----
-4819
299

skipif mysql # not compatible
query II rowsort label-18
SELECT DISTINCT COUNT ( DISTINCT - + 84 ) * + 79 * - 61 AS col2, + ( + - 18 ) * SUM ( DISTINCT - 23 ) + - 76 + - 39
----
-4819
299

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-20
SELECT ALL - COALESCE ( + 19, 70 + - + 67, + CAST( NULL AS SIGNED ) + - 31 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL - COALESCE ( + 19, 70 + - + 67, + CAST ( NULL AS INTEGER ) + - 31 ) AS col2
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-21
SELECT DISTINCT - 66 + 3 DIV 96 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT - 66 + 3 / 96 AS col1
----
-66

query II rowsort
SELECT - 32, 82 * + - 71 AS col1
----
-32
-5822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-23
SELECT SUM( + 36 ) * + NULLIF ( + - 37, 58 ) * + 60 * + 5 + + CAST( NULL AS SIGNED ) + 70 * NULLIF ( 22, 27 ) + - 44, AVG ( 3 ) / - + SUM( ALL - CASE 83 WHEN 2 THEN 9 + + 3 * - 73 ELSE NULL END ) * COUNT( * ) + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-23
SELECT SUM ( + 36 ) * + NULLIF ( + - 37, 58 ) * + 60 * + 5 + + CAST ( NULL AS INTEGER ) + 70 * NULLIF ( 22, 27 ) + - 44, AVG ( 3 ) / - + SUM ( ALL - CASE 83 WHEN 2 THEN 9 + + 3 * - 73 ELSE NULL END ) * COUNT ( * ) + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT ALL - + 59 - - - 13 - - 99
----
27

query I rowsort
SELECT + - NULLIF ( + 70, 98 - - 2 ) col0
----
-70

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-27
SELECT + 80 DIV - - MIN( + 91 ) - + 36 + + 80
----
44

skipif mysql # not compatible
query I rowsort label-27
SELECT + 80 / - - MIN ( + 91 ) - + 36 + + 80
----
44

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

skipif mysql # not compatible
query II rowsort label-28
SELECT - COUNT ( * ) AS col1, 2
----
-1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-29
SELECT CAST( + 97 AS SIGNED ) * + 44
----
4268

skipif mysql # not compatible
query I rowsort label-29
SELECT CAST ( + 97 AS INTEGER ) * + 44
----
4268

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

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

query I rowsort
SELECT ALL - 49 - + 30 col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT SUM( 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-32
SELECT SUM ( 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT ALL 96 - + + 67 + - + SUM( 17 ) * - - 79 * 75 * - 41 + COUNT( * ) * + 7 AS col1
----
4129761

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL 96 - + + 67 + - + SUM ( 17 ) * - - 79 * 75 * - 41 + COUNT ( * ) * + 7 AS col1
----
4129761

query I rowsort
SELECT DISTINCT + 41 * + 55
----
2255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT ALL - CASE + CASE WHEN NOT + 22 <> 63 THEN - ( + 99 ) END WHEN + CAST( + 59 AS SIGNED ) THEN NULL ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL - CASE + CASE WHEN NOT + 22 <> 63 THEN - ( + 99 ) END WHEN + CAST ( + 59 AS INTEGER ) THEN NULL ELSE + COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-36
SELECT + 89 + - 99 * CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-37
SELECT DISTINCT - CAST( 84 AS SIGNED ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT - CAST ( 84 AS INTEGER ) AS col2
----
-84

query I rowsort
SELECT 23 - + 19
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT 26 - + + 35 * + COUNT( * ) * 40 * + - 7
----
9826

skipif mysql # not compatible
query I rowsort label-39
SELECT 26 - + + 35 * + COUNT ( * ) * 40 * + - 7
----
9826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-40
SELECT DISTINCT + SUM( + - 9 ) DIV - + 17
----
0

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT + SUM ( + - 9 ) / - + 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL - 14 + CASE - 9 WHEN - - 8 + + - COUNT( * ) THEN NULL WHEN COUNT( * ) * 84 + - 38 THEN + SUM( ALL - 70 ) + ( + 99 ) + - + 42 WHEN - 25 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL - 14 + CASE - 9 WHEN - - 8 + + - COUNT ( * ) THEN NULL WHEN COUNT ( * ) * 84 + - 38 THEN + SUM ( ALL - 70 ) + ( + 99 ) + - + 42 WHEN - 25 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 69 * - 28
----
-1932

query I rowsort
SELECT DISTINCT 27 * + + 9 AS col1
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-44
SELECT DISTINCT COALESCE ( - CAST( MIN( 31 ) AS SIGNED ), 82 - - - 45 ) + - - 23 + - 31 * 93 * - 52 * 42 * + ( - - 19 ) col0
----
119632960

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT COALESCE ( - CAST ( MIN ( 31 ) AS INTEGER ), 82 - - - 45 ) + - - 23 + - 31 * 93 * - 52 * 42 * + ( - - 19 ) col0
----
119632960

query I rowsort
SELECT DISTINCT 98 + + - 19 * + + 13 AS col1
----
-149

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

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

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

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL 90 + - + 68 + + COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-48
SELECT DISTINCT + 7 * - + NULLIF ( - - MAX( 44 ), + - 0 * AVG ( + CAST( + + 19 AS SIGNED ) ) * + 75 * - 92 + 74 ) * + + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-48
SELECT DISTINCT + 7 * - + NULLIF ( - - MAX ( 44 ), + - 0 * AVG ( + CAST ( + + 19 AS INTEGER ) ) * + 75 * - 92 + 74 ) * + + 0 AS col0
----
0

query I rowsort
SELECT ALL 85 * - 77 - + - 4 AS col2
----
-6541

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-50
SELECT + 23 DIV + 36 - + 36 + + + 83 + - + CAST( + 19 AS SIGNED ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-50
SELECT + 23 / + 36 - + 36 + + + 83 + - + CAST ( + 19 AS INTEGER ) AS col0
----
28

query I rowsort
SELECT ALL - 64 * - 53
----
3392

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

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT 40 DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-53
SELECT 40 / + 76 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-54
SELECT DISTINCT - 20 * - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT - 20 * - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 61 * 42 + - + 99 AS col1
----
-2661

onlyif mysql # aggregate syntax: 
query I rowsort label-56
SELECT COUNT( * ) / + + CASE - 36 WHEN + + 88 THEN 13 + 37 WHEN - 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT COUNT ( * ) / + + CASE - 36 WHEN + + 88 THEN 13 + 37 WHEN - 50 THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / 98
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT 48 * + SUM( - NULLIF ( - 50, 42 * 64 + - 40 ) ) * + NULLIF ( + + 2, + 3 ) + + 27 + + ( - COUNT( * ) ) * 9 + NULLIF ( + - 77, + 54 ) * 93
----
-2343

skipif mysql # not compatible
query I rowsort label-59
SELECT 48 * + SUM ( - NULLIF ( - 50, 42 * 64 + - 40 ) ) * + NULLIF ( + + 2, + 3 ) + + 27 + + ( - COUNT ( * ) ) * 9 + NULLIF ( + - 77, + 54 ) * 93
----
-2343

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-60
SELECT DISTINCT - NULLIF ( + 27, + 66 ) + + - 10 AS col2, CAST( NULL AS SIGNED )
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-60
SELECT DISTINCT - NULLIF ( + 27, + 66 ) + + - 10 AS col2, CAST ( NULL AS INTEGER )
----
-37
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL + - COUNT( * ) * - - 95 + 43
----
-52

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + - COUNT ( * ) * - - 95 + 43
----
-52

query I rowsort
SELECT ALL - - ( + + 28 ) + 67 * - 87 AS col0
----
-5801

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-64
SELECT - CAST( NULL AS DECIMAL ) + 75 * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-64
SELECT - CAST ( NULL AS REAL ) + 75 * 1
----
NULL

query I rowsort
SELECT - 57 + + - 39 + + - 68 * + + 34 + 65
----
-2343

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT ALL 86 + 72 DIV - + ( 79 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL 86 + 72 / - + ( 79 ) AS col0
----
86

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

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

query I rowsort
SELECT - 63 + - 60
----
-123

query I rowsort
SELECT - 68 * - - 10 AS col0
----
-680

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

skipif mysql # not compatible
query I rowsort label-71
SELECT - COUNT ( * ) + - 12 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT ALL CASE + MIN( - ( - - 62 ) ) WHEN CASE 16 WHEN - - 0 * 41 THEN + COALESCE ( - CASE ( - 25 ) WHEN + - CAST( - 57 AS SIGNED ) THEN NULL WHEN - 45 / + - 73 * - - 36 THEN + 44 END, + + 69 ) END THEN + 72 * 24 WHEN 42 + 57 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL CASE + MIN ( - ( - - 62 ) ) WHEN CASE 16 WHEN - - 0 * 41 THEN + COALESCE ( - CASE ( - 25 ) WHEN + - CAST ( - 57 AS INTEGER ) THEN NULL WHEN - 45 / + - 73 * - - 36 THEN + 44 END, + + 69 ) END THEN + 72 * 24 WHEN 42 + 57 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 83 + + - 43
----
40

query I rowsort
SELECT - 56 + - - 4 AS col1
----
-52

query II rowsort
SELECT - 15 * - 65 * + + 48, - CASE - 98 WHEN + 76 THEN - - 96 END * - - 42 AS col0
----
46800
NULL

query I rowsort
SELECT - 32 + 79 + + 37 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT + 38 * + SUM( ALL - 1 )
----
-38

skipif mysql # not compatible
query I rowsort label-77
SELECT + 38 * + SUM ( ALL - 1 )
----
-38

query I rowsort
SELECT DISTINCT COALESCE ( + 25, + 94 * - - 73 * - 50, + 42 ) AS col1
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-79
SELECT ALL - 20 / - CAST( NULL AS DECIMAL ) AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT + 66 - 58 + 78 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT - SUM( DISTINCT 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-81
SELECT - SUM ( DISTINCT 63 ) AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-82
SELECT ALL MAX( DISTINCT + - 56 ) * - 45 * + 82 + + + CAST( + 55 AS SIGNED ) AS col2
----
206695

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL MAX ( DISTINCT + - 56 ) * - 45 * + 82 + + + CAST ( + 55 AS INTEGER ) AS col2
----
206695

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

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

query I rowsort
SELECT ALL - 94 * - 12 AS col1
----
1128

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT + MAX( + 19 ) + + 24
----
43

skipif mysql # not compatible
query I rowsort label-86
SELECT + MAX ( + 19 ) + + 24
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-87
SELECT - 35 AS col0, + 89 + COUNT( * ) - + - COUNT( * ) AS col1
----
-35
91

skipif mysql # not compatible
query II rowsort label-87
SELECT - 35 AS col0, + 89 + COUNT ( * ) - + - COUNT ( * ) AS col1
----
-35
91

query II rowsort
SELECT 42 AS col2, - 76 AS col1
----
42
-76

query I rowsort
SELECT + 31 + + 31
----
62

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-92
SELECT + 48 * 47 * + ( NULLIF ( CAST( NULL AS SIGNED ), - NULLIF ( - - 67, + + 89 ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-92
SELECT + 48 * 47 * + ( NULLIF ( CAST ( NULL AS INTEGER ), - NULLIF ( - - 67, + + 89 ) ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-93
SELECT + 68 - - + 14 - + 50 DIV 74
----
82

skipif mysql # not compatible
query I rowsort label-93
SELECT + 68 - - + 14 - + 50 / 74
----
82

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

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

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

query I rowsort
SELECT + + 96 * + - 92
----
-8832

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

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

query I rowsort
SELECT + - 63 * - 54 * 74 AS col1
----
251748

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT - 8 * - 27 + - 10 - + + 58 + - - COUNT( * )
----
149

skipif mysql # not compatible
query I rowsort label-100
SELECT - 8 * - 27 + - 10 - + + 58 + - - COUNT ( * )
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT + 87 * - 27 + + COUNT( * )
----
-2348

skipif mysql # not compatible
query I rowsort label-101
SELECT + 87 * - 27 + + COUNT ( * )
----
-2348

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

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

query I rowsort
SELECT + + 2 * 50
----
100

query I rowsort
SELECT - 75 + - + 38
----
-113

query I rowsort
SELECT ALL - 3 * + + 9 + 67 AS col1
----
40

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

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

query I rowsort
SELECT DISTINCT 2 * + 34
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-108
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - MIN( - - CAST( NULL AS SIGNED ) ) + - ( + - COUNT( * ) ) * - + MIN( + - ( + 35 ) ) * 55 + - 26 * + 25 * + - 8 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - MIN ( - - CAST ( NULL AS INTEGER ) ) + - ( + - COUNT ( * ) ) * - + MIN ( + - ( + 35 ) ) * 55 + - 26 * + 25 * + - 8 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT ALL + 93 AS col0, NULLIF ( 2, + - ( + ( + 78 ) ) - - 1 * + 70 * + 10 * + 6 / + 85 + - 38 + + 73 + + + 63 ) - - + 71 * + - 44 + 90 * + + COUNT( * ) - 12 AS col1
----
93
-3044

skipif mysql # not compatible
query II rowsort label-109
SELECT ALL + 93 AS col0, NULLIF ( 2, + - ( + ( + 78 ) ) - - 1 * + 70 * + 10 * + 6 / + 85 + - 38 + + 73 + + + 63 ) - - + 71 * + - 44 + 90 * + + COUNT ( * ) - 12 AS col1
----
93
-3044

query I rowsort
SELECT DISTINCT + - 85 col0
----
-85

query I rowsort
SELECT ALL + 66 * - + 87 + 61 AS col2
----
-5681

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-112
SELECT ALL + 87 AS col0, - COUNT( * ) + 91 DIV + 62 AS col0
----
87
0

skipif mysql # not compatible
query II rowsort label-112
SELECT ALL + 87 AS col0, - COUNT ( * ) + 91 / + 62 AS col0
----
87
0

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

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

query I rowsort
SELECT - 69 + + NULLIF ( ( + 41 ), 91 ) + + 82 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-115
SELECT + CAST( - + 52 AS SIGNED ), + 98 col2
----
-52
98

skipif mysql # not compatible
query II rowsort label-115
SELECT + CAST ( - + 52 AS INTEGER ), + 98 col2
----
-52
98

query I rowsort
SELECT ALL 47 * 16 + 90
----
842

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-117
SELECT ALL 16 * + 68 + 79 DIV + 9, - ( CAST( NULL AS SIGNED ) ) AS col1
----
1096
NULL

skipif mysql # not compatible
query II rowsort label-117
SELECT ALL 16 * + 68 + 79 / + 9, - ( CAST ( NULL AS INTEGER ) ) AS col1
----
1096
NULL

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

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

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

query I rowsort
SELECT - 91 - - 72 * - 0 - - ( - + 3 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-121
SELECT ALL CAST( - COALESCE ( COUNT( * ), 95, + 83 ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL CAST ( - COALESCE ( COUNT ( * ), 95, + 83 ) AS INTEGER ) col0
----
-1

query I rowsort
SELECT DISTINCT - 7 * + 67
----
-469

query I rowsort
SELECT DISTINCT - 34 - + 57 + + - 78
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-124
SELECT DISTINCT CASE 3 WHEN ( + - 73 ) THEN - CASE - COUNT( * ) WHEN 20 THEN 39 + - 48 END + - 26 WHEN 15 / + - 38 + + + 96 * - NULLIF ( 52, - 92 * COUNT( * ) ) * - COALESCE ( - CAST( + 17 AS SIGNED ), 63 * - 62 + - 58 ) / + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT CASE 3 WHEN ( + - 73 ) THEN - CASE - COUNT ( * ) WHEN 20 THEN 39 + - 48 END + - 26 WHEN 15 / + - 38 + + + 96 * - NULLIF ( 52, - 92 * COUNT ( * ) ) * - COALESCE ( - CAST ( + 17 AS INTEGER ), 63 * - 62 + - 58 ) / + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT DISTINCT + 34 - + + 30 * - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT + 34 - + + 30 * - COUNT ( * )
----
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT ( MAX( ALL - + 77 ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT ( MAX ( ALL - + 77 ) ) AS col1
----
-77

query I rowsort
SELECT - 31 * 81
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-129
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 50 * - 94 + + 7 * - + 75
----
NULL
-5225

skipif mysql # not compatible
query II rowsort label-129
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 50 * - 94 + + 7 * - + 75
----
NULL
-5225

query II rowsort
SELECT - 33 AS col1, 84 * 19 AS col1
----
-33
1596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-131
SELECT - CASE ( - MAX( DISTINCT - 8 ) ) WHEN 67 * + 79 + + 3 - COUNT( ALL 48 ) + 17 * + ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + + 56 * + + COUNT( * ) / + 97 THEN 77 ELSE 37 END
----
-37

skipif mysql # not compatible
query I rowsort label-131
SELECT - CASE ( - MAX ( DISTINCT - 8 ) ) WHEN 67 * + 79 + + 3 - COUNT ( ALL 48 ) + 17 * + ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + + 56 * + + COUNT ( * ) / + 97 THEN 77 ELSE 37 END
----
-37

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-133
SELECT ALL CAST( - COALESCE ( - + COUNT( * ), + 83 * - + 34 ) AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL CAST ( - COALESCE ( - + COUNT ( * ), + 83 * - + 34 ) AS INTEGER ) col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-134
SELECT ALL + 82, + 41 DIV + + 62 * ( 75 ) AS col2
----
82
0

skipif mysql # not compatible
query II rowsort label-134
SELECT ALL + 82, + 41 / + + 62 * ( 75 ) AS col2
----
82
0

onlyif mysql # aggregate syntax: 
query II rowsort label-135
SELECT ALL - SUM( DISTINCT 12 ) AS col1, 47 + - + 16 + 12 * + - 42 + 84 + - 66
----
-12
-455

skipif mysql # not compatible
query II rowsort label-135
SELECT ALL - SUM ( DISTINCT 12 ) AS col1, 47 + - + 16 + 12 * + - 42 + 84 + - 66
----
-12
-455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-136
SELECT - + 92 DIV + - COUNT( * ) + 28 * + - 29 * + + 42 col0
----
-34012

skipif mysql # not compatible
query I rowsort label-136
SELECT - + 92 / + - COUNT ( * ) + 28 * + - 29 * + + 42 col0
----
-34012

query I rowsort
SELECT ALL 63 + 2 * - 54 + 31
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT - + 3, MIN( DISTINCT - 51 ) AS col2
----
-3
-51

skipif mysql # not compatible
query II rowsort label-138
SELECT - + 3, MIN ( DISTINCT - 51 ) AS col2
----
-3
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL - 12 * - - 24 * - NULLIF ( - COUNT( * ), - 84 )
----
-288

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL - 12 * - - 24 * - NULLIF ( - COUNT ( * ), - 84 )
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT - 76 + - + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-140
SELECT - 76 + - + COUNT ( * )
----
-77

query II rowsort
SELECT + 91, - 45 AS col2
----
91
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-142
SELECT + 8 AS col0, 93 + + 17 - - 77 * 82 + - 65 * + 31 * - COUNT( - 92 ) + - 92 * + + CAST( - COALESCE ( + MAX( ALL - 5 ), 36 / + CASE CAST( - 6 AS SIGNED ) WHEN CAST( NULL AS SIGNED ) * + 65 * COUNT( * ) - COUNT( * ) THEN NULL WHEN - 83 * CASE + 58 WHEN - 29 THEN + CASE 1 WHEN - 63 THEN COUNT( * ) ELSE NULL END * + NULLIF ( COUNT( * ) * ( + 29 ), 39 + 80 ) + 59 ELSE CASE - 34 WHEN 0 THEN NULL WHEN NULLIF ( 37, 93 * 89 ) * COUNT( * ) THEN 76 * - 89 WHEN - 74 * 0 THEN 90 ELSE NULL END + 0 END + + 92 * 90 THEN - 5 + 63 WHEN 7 THEN NULL ELSE + CASE 66 WHEN 44 / - 14 THEN + 31 ELSE - 39 * - 78 + - 58 END END ) AS SIGNED ) * 83
----
8
-29741

skipif mysql # not compatible
query II rowsort label-142
SELECT + 8 AS col0, 93 + + 17 - - 77 * 82 + - 65 * + 31 * - COUNT ( - 92 ) + - 92 * + + CAST ( - COALESCE ( + MAX ( ALL - 5 ), 36 / + CASE CAST ( - 6 AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) * + 65 * COUNT ( * ) - COUNT ( * ) THEN NULL WHEN - 83 * CASE + 58 WHEN - 29 THEN + CASE 1 WHEN - 63 THEN COUNT ( * ) ELSE NULL END * + NULLIF ( COUNT ( * ) * ( + 29 ), 39 + 80 ) + 59 ELSE CASE - 34 WHEN 0 THEN NULL WHEN NULLIF ( 37, 93 * 89 ) * COUNT ( * ) THEN 76 * - 89 WHEN - 74 * 0 THEN 90 ELSE NULL END + 0 END + + 92 * 90 THEN - 5 + 63 WHEN 7 THEN NULL ELSE + CASE 66 WHEN 44 / - 14 THEN + 31 ELSE - 39 * - 78 + - 58 END END ) AS INTEGER ) * 83
----
8
-29741

query I rowsort
SELECT ALL 29 + 83
----
112

query I rowsort
SELECT 41 * + - 82
----
-3362

query I rowsort
SELECT ( 10 ) + 50 - 75 * - + 39
----
2985

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT COALESCE ( - + COUNT( * ), + 34 + CASE COUNT( * ) WHEN 73 THEN NULL WHEN 48 THEN + 29 END * - - 6 + NULLIF ( - + 83, 1 * + CASE + 77 WHEN - + 86 - - - 30 THEN NULL ELSE - 82 END ) * + 2, COALESCE ( - ( + + SUM( - 39 ) ), 73, COUNT( * ) + + 43 ) + - 43 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-149
SELECT COALESCE ( - + COUNT ( * ), + 34 + CASE COUNT ( * ) WHEN 73 THEN NULL WHEN 48 THEN + 29 END * - - 6 + NULLIF ( - + 83, 1 * + CASE + 77 WHEN - + 86 - - - 30 THEN NULL ELSE - 82 END ) * + 2, COALESCE ( - ( + + SUM ( - 39 ) ), 73, COUNT ( * ) + + 43 ) + - 43 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT - COUNT( * ) * - + COUNT( * ) + + MAX( + CAST( - 58 AS SIGNED ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-150
SELECT - COUNT ( * ) * - + COUNT ( * ) + + MAX ( + CAST ( - 58 AS INTEGER ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL - 85 + + 66 + - COUNT( * ) - - 27
----
7

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - 85 + + 66 + - COUNT ( * ) - - 27
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT + + 91 DIV - 83 - + 47 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-152
SELECT + + 91 / - 83 - + 47 AS col0
----
-48

query I rowsort
SELECT + - 28 col0
----
-28

query I rowsort
SELECT 32 * 69 AS col0
----
2208

query I rowsort
SELECT ALL 10 - - - 62
----
-52

query I rowsort
SELECT DISTINCT 68 * + 11 AS col0
----
748

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT COUNT( DISTINCT + 31 ) + + - 16 + + 66
----
51

skipif mysql # not compatible
query I rowsort label-157
SELECT COUNT ( DISTINCT + 31 ) + + - 16 + + 66
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL NULLIF ( - 37, - COUNT( * ) ) * 7 AS col0
----
-259

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL NULLIF ( - 37, - COUNT ( * ) ) * 7 AS col0
----
-259

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT ALL 74 - - 14 * 45 DIV 4
----
231

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL 74 - - 14 * 45 / 4
----
231

query I rowsort
SELECT ( ( + + 44 ) ) * - 94 - - - 66 AS col2
----
-4202

query I rowsort
SELECT 86 * - 35 col0
----
-3010

query II rowsort
SELECT 95 + 98, 43 AS col0
----
193
43

query I rowsort
SELECT 11 * 74
----
814

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-164
SELECT 91 + - 46 + SUM( ALL + + 16 ) DIV + 90 AS col1, 26 AS col0
----
45
26

skipif mysql # not compatible
query II rowsort label-164
SELECT 91 + - 46 + SUM ( ALL + + 16 ) / + 90 AS col1, 26 AS col0
----
45
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-165
SELECT ALL - 85 + + + 85 AS col0, CAST( NULL AS SIGNED ) * + + 61 + 38 * + + 4 + - 38 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-165
SELECT ALL - 85 + + + 85 AS col0, CAST ( NULL AS INTEGER ) * + + 61 + 38 * + + 4 + - 38 AS col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-166
SELECT 25 + 45 + 11 / CAST( NULL AS SIGNED ) + 54 * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT 25 + 45 + 11 / CAST ( NULL AS INTEGER ) + 54 * 56
----
NULL

query I rowsort
SELECT ALL + + 45 + + 54 * - ( - 18 ) AS col0
----
1017

query II rowsort
SELECT ALL + 41 * + 7, 74 * + ( ( - - 18 ) ) + + + 87 * + 12 AS col0
----
287
2376

query I rowsort
SELECT 74 * - - 25 * + 73
----
135050

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-170
SELECT ALL - - 45 + + + 26 * COALESCE ( - + SUM( ALL - 53 ), - - COALESCE ( - 90, - + 87 + - ( 75 ) ) * 50 + 67 DIV + 5, - 97 ) + - + SUM( DISTINCT NULLIF ( + - 5, - + 27 ) ) col0
----
1428

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL - - 45 + + + 26 * COALESCE ( - + SUM ( ALL - 53 ), - - COALESCE ( - 90, - + 87 + - ( 75 ) ) * 50 + 67 / + 5, - 97 ) + - + SUM ( DISTINCT NULLIF ( + - 5, - + 27 ) ) col0
----
1428

query I rowsort
SELECT DISTINCT + 91 + - 16 * 86 + - 94 AS col0
----
-1379

query I rowsort
SELECT + 57 + + 41 * - ( + 1 )
----
16

query I rowsort
SELECT - 66 + - 66 + NULLIF ( 71, - 25 ) * + + 85
----
5903

query I rowsort
SELECT DISTINCT + 42 + - 12 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT ALL CASE + 3 WHEN - 46 * - 16 * - + 95 THEN NULL ELSE ( - + 21 ) * + 33 END + + CAST( NULL AS SIGNED ) / + 55 + - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL CASE + 3 WHEN - 46 * - 16 * - + 95 THEN NULL ELSE ( - + 21 ) * + 33 END + + CAST ( NULL AS INTEGER ) / + 55 + - 8 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT ALL + + 40 DIV + CASE + - 3 WHEN - 36 THEN 7 - + + 70 ELSE + - 53 + - 13 * - - 69 * 16 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL + + 40 / + CASE + - 3 WHEN - 36 THEN 7 - + + 70 ELSE + - 53 + - 13 * - - 69 * 16 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT + - COUNT( - 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-177
SELECT + - COUNT ( - 5 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-178
SELECT ALL + + 65 - COUNT( * ) DIV - 30 AS col2, - 64 AS col0
----
65
-64

skipif mysql # not compatible
query II rowsort label-178
SELECT ALL + + 65 - COUNT ( * ) / - 30 AS col2, - 64 AS col0
----
65
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT 43 * - - ( + MAX( DISTINCT - 6 ) )
----
-258

skipif mysql # not compatible
query I rowsort label-179
SELECT 43 * - - ( + MAX ( DISTINCT - 6 ) )
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL - 73 - + + 6 * - + COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL - 73 - + + 6 * - + COUNT ( * ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT 41 * COALESCE ( - ( + - 22 ), + COUNT( * ) )
----
902

skipif mysql # not compatible
query I rowsort label-181
SELECT 41 * COALESCE ( - ( + - 22 ), + COUNT ( * ) )
----
902

query II rowsort
SELECT + 42 AS col2, + 72 AS col1
----
42
72

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

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL + CAST ( NULL AS INTEGER ) - CAST ( - 21 AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - 99, 31 AS col0
----
-99
31

query II rowsort
SELECT DISTINCT - 38 col0, - 38 AS col1
----
-38
-38

query II rowsort
SELECT ALL - 41 AS col0, - 77 + - 90
----
-41
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-187
SELECT 64, - MAX( DISTINCT 88 ) AS col0
----
64
-88

skipif mysql # not compatible
query II rowsort label-187
SELECT 64, - MAX ( DISTINCT 88 ) AS col0
----
64
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-188
SELECT 72 AS col1, 69 * - 17 + - - MAX( ( - + 29 ) ) AS col1
----
72
-1202

skipif mysql # not compatible
query II rowsort label-188
SELECT 72 AS col1, 69 * - 17 + - - MAX ( ( - + 29 ) ) AS col1
----
72
-1202

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-190
SELECT DISTINCT 61 DIV + + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT 61 / + + 73 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-191
SELECT 62 * + - 73 * - + 73 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT ALL SUM( ALL - 10 ) * - + 36 AS col2
----
360

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL SUM ( ALL - 10 ) * - + 36 AS col2
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL COUNT( * ) * - 93 * + 42 * + 28
----
-109368

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL COUNT ( * ) * - 93 * + 42 * + 28
----
-109368

query II rowsort
SELECT ALL 29 col0, 99 + + 63 + + 67 * 4 AS col0
----
29
430

query I rowsort
SELECT DISTINCT NULLIF ( - 92, + 64 ) + + 90 AS col1
----
-2

query I rowsort
SELECT ALL 60 * - 91 AS col1
----
-5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-197
SELECT ( + CASE + + 36 WHEN + + 3 THEN 84 * - COUNT( * ) * 93 * 50 + + 21 * 85 ELSE ( + ( - - 75 ) ) END ) DIV + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-197
SELECT ( + CASE + + 36 WHEN + + 3 THEN 84 * - COUNT ( * ) * 93 * 50 + + 21 * 85 ELSE ( + ( - - 75 ) ) END ) / + 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL + ( 51 ) + 62 - + - ( - 99 ) * + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL + ( 51 ) + 62 - + - ( - 99 ) * + COUNT ( * )
----
14

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

skipif mysql # not compatible
query I rowsort label-199
SELECT CAST ( NULL AS REAL ) * + 34
----
NULL

query I rowsort
SELECT ALL + 54 + - 0 * + 57 AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT + 54 - + 10 * - - 60 AS col1, ( + COUNT( * ) ) * - 51 + - + 35
----
-546
-86

skipif mysql # not compatible
query II rowsort label-201
SELECT + 54 - + 10 * - - 60 AS col1, ( + COUNT ( * ) ) * - 51 + - + 35
----
-546
-86

query I rowsort
SELECT - - 84 * 80 * + 29 - + 52 AS col0
----
194828

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

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

query I rowsort
SELECT ALL - - 18 + - 76
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL + 29 * + COALESCE ( + 93, - COUNT( * ) + COUNT( * ) ) AS col0
----
2697

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL + 29 * + COALESCE ( + 93, - COUNT ( * ) + COUNT ( * ) ) AS col0
----
2697

query II rowsort
SELECT - - 12 AS col2, + 69 * 94 * - 43 AS col1
----
12
-278898

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-207
SELECT ALL + + 5 + CAST( - + 13 AS SIGNED ) + + 77 * 45 DIV - 43 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL + + 5 + CAST ( - + 13 AS INTEGER ) + + 77 * 45 / - 43 AS col2
----
-88

query II rowsort
SELECT 61 AS col0, 38 AS col0
----
61
38

onlyif mysql # aggregate syntax: 
query II rowsort label-209
SELECT DISTINCT + ( - 51 ) * + COUNT( ALL - 59 ) AS col1, - ( ( + MAX( - 66 ) ) )
----
-51
66

skipif mysql # not compatible
query II rowsort label-209
SELECT DISTINCT + ( - 51 ) * + COUNT ( ALL - 59 ) AS col1, - ( ( + MAX ( - 66 ) ) )
----
-51
66

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

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

query I rowsort
SELECT + - 46 * - 62 col2
----
2852

query I rowsort
SELECT + - 88 + - NULLIF ( + 30, - + 29 * - + 5 * + + CASE - 84 WHEN 60 THEN NULL WHEN + 25 THEN + 29 * ( 43 ) ELSE NULL END + + - 1 + - 71 / - 25 ) AS col0
----
-118

query I rowsort
SELECT ALL - 18 * 65 + 50 + - 69 - - 78 AS col2
----
-1111

query II rowsort
SELECT - 72, 29 - + 53 AS col2
----
-72
-24

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

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

query I rowsort
SELECT - 67 * - 4 - - 55
----
323

query I rowsort
SELECT NULLIF ( - 8, - 83 )
----
-8

query I rowsort
SELECT + 22 * 83 + 72 + - 50 * - 85
----
6148

query I rowsort
SELECT ALL + 66 * 77
----
5082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT - ( ( + ( - 40 ) ) ) * - + COUNT( * ) * - 30 * + + 61 + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
73199

skipif mysql # not compatible
query I rowsort label-220
SELECT - ( ( + ( - 40 ) ) ) * - + COUNT ( * ) * - 30 * + + 61 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
73199

onlyif mysql # DIV for integer division: 
query I rowsort label-221
SELECT ALL + 93 DIV + 3 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL + 93 / + 3 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT - SUM( DISTINCT - + 45 ) * - - 8 + - 86 AS col0
----
274

skipif mysql # not compatible
query I rowsort label-222
SELECT - SUM ( DISTINCT - + 45 ) * - - 8 + - 86 AS col0
----
274

query I rowsort
SELECT DISTINCT - 75 * + 83 AS col0
----
-6225

query I rowsort
SELECT - 56 * - 90 * 5 col0
----
25200

query I rowsort
SELECT DISTINCT - 57 * 22 col2
----
-1254

query I rowsort
SELECT ALL + 3 * - + 42 col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT - COUNT( * ) * - - CASE + 3 WHEN - 30 THEN - - 74 / + ( 41 ) WHEN 15 THEN NULL WHEN + ( COUNT( * ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT - COUNT ( * ) * - - CASE + 3 WHEN - 30 THEN - - 74 / + ( 41 ) WHEN 15 THEN NULL WHEN + ( COUNT ( * ) ) THEN NULL ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-228
SELECT + 32 * - AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 85 * + 39
----
3315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-230
SELECT DISTINCT + 8 * 2 * 4 + + NULLIF ( - COALESCE ( COUNT( * ), COUNT( * ) * + 72 + - - 40 + - 67 DIV + - 54, + COUNT( 5 ) DIV + 72 ), - + 83 + + NULLIF ( - 19, - 87 ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT + 8 * 2 * 4 + + NULLIF ( - COALESCE ( COUNT ( * ), COUNT ( * ) * + 72 + - - 40 + - 67 / + - 54, + COUNT ( 5 ) / + 72 ), - + 83 + + NULLIF ( - 19, - 87 ) ) AS col2
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL + 3 * + MIN( 17 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + 3 * + MIN ( 17 ) AS col0
----
51

query II rowsort
SELECT - ( 60 ) * 52 * - 4, - 23 col2
----
12480
-23

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

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

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL ( - SUM ( - - 3 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ALL + 24 * + COUNT( DISTINCT 91 )
----
24

skipif mysql # not compatible
query I rowsort label-236
SELECT ALL + 24 * + COUNT ( DISTINCT 91 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-237
SELECT DISTINCT + COALESCE ( - COALESCE ( + 43, + 34 DIV 16 - - ( + 51 ) * 38 + + + 75, ( - 33 ) ), + - 59 + + 91 + - COUNT( * ) + - 26, - + 87 )
----
-43

skipif mysql # not compatible
query I rowsort label-237
SELECT DISTINCT + COALESCE ( - COALESCE ( + 43, + 34 / 16 - - ( + 51 ) * 38 + + + 75, ( - 33 ) ), + - 59 + + 91 + - COUNT ( * ) + - 26, - + 87 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT - 52 + MAX( DISTINCT + + 61 ) + 27 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-238
SELECT - 52 + MAX ( DISTINCT + + 61 ) + 27 AS col1
----
36

query I rowsort
SELECT DISTINCT - ( 40 ) * - 58
----
2320

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT + 65 + 95 + 37 + - ( 88 ) * - - COUNT( + 29 ) * + + 14 AS col0
----
-1035

skipif mysql # not compatible
query I rowsort label-240
SELECT + 65 + 95 + 37 + - ( 88 ) * - - COUNT ( + 29 ) * + + 14 AS col0
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL + + 61 + 51 + + - COUNT( * ) - 51 * + 27
----
-1266

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL + + 61 + 51 + + - COUNT ( * ) - 51 * + 27
----
-1266

query I rowsort
SELECT ALL - + 99 * + 81 * - 34 AS col2
----
272646

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT ALL - 42 - + - 26 + + COUNT( DISTINCT 85 )
----
-15

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - 42 - + - 26 + + COUNT ( DISTINCT 85 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-245
SELECT ALL + CASE + + 18 WHEN - 14 + + CAST( NULL AS SIGNED ) + 81 * - 13 THEN - + COUNT( - 34 ) END * + 49, 4 * - ( - COUNT( * ) ) AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-245
SELECT ALL + CASE + + 18 WHEN - 14 + + CAST ( NULL AS INTEGER ) + 81 * - 13 THEN - + COUNT ( - 34 ) END * + 49, 4 * - ( - COUNT ( * ) ) AS col0
----
NULL
4

query II rowsort
SELECT + + 61 + + 79, 51 AS col1
----
140
51

query I rowsort
SELECT + - 3 * 64 * - 31
----
5952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-248
SELECT + 15 + + - CAST( NULL AS SIGNED ) / 46 * + + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT + 15 + + - CAST ( NULL AS INTEGER ) / 46 * + + 27 AS col0
----
NULL

query I rowsort
SELECT ALL 84 - 43 * 7
----
-217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-250
SELECT ALL 98 - - CASE + 31 WHEN + CAST( NULL AS SIGNED ) + 61 THEN - 98 * - 95 * + 55 WHEN + - 96 THEN + + COUNT( - - 74 ) ELSE - 87 END + - 65 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL 98 - - CASE + 31 WHEN + CAST ( NULL AS INTEGER ) + 61 THEN - 98 * - 95 * + 55 WHEN + - 96 THEN + + COUNT ( - - 74 ) ELSE - 87 END + - 65 AS col1
----
-54

query I rowsort
SELECT + 68 * 83
----
5644

onlyif mysql # aggregate syntax: 
query I rowsort label-252
SELECT - NULLIF ( + + COUNT( DISTINCT + + 68 ), + - 57 ) + + 20 - 78 * 91 * - 20
----
141979

skipif mysql # not compatible
query I rowsort label-252
SELECT - NULLIF ( + + COUNT ( DISTINCT + + 68 ), + - 57 ) + + 20 - 78 * 91 * - 20
----
141979

onlyif mysql # DIV for integer division: 
query II rowsort label-253
SELECT - + 20 DIV - + 39 AS col0, 60
----
0
60

skipif mysql # not compatible
query II rowsort label-253
SELECT - + 20 / - + 39 AS col0, 60
----
0
60

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

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

query I rowsort
SELECT DISTINCT + - 60 * - 14 + - 98
----
742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-256
SELECT ALL + ( 89 ), + 22 + - NULLIF ( + + ( - 23 ), + - COUNT( * ) ) * COUNT( * ) * 62 * - COALESCE ( - - 47, + COALESCE ( - 94, - + 45, NULLIF ( - ( + 61 ), + 66 ) + ( - 65 ) + 73 DIV + CAST( 63 AS SIGNED ) * + 72 + + COUNT( ALL + 31 ) * 25 ) DIV + COUNT( * ) ) AS col2
----
89
-67000

skipif mysql # not compatible
query II rowsort label-256
SELECT ALL + ( 89 ), + 22 + - NULLIF ( + + ( - 23 ), + - COUNT ( * ) ) * COUNT ( * ) * 62 * - COALESCE ( - - 47, + COALESCE ( - 94, - + 45, NULLIF ( - ( + 61 ), + 66 ) + ( - 65 ) + 73 / + CAST ( 63 AS INTEGER ) * + 72 + + COUNT ( ALL + 31 ) * 25 ) / + COUNT ( * ) ) AS col2
----
89
-67000

query I rowsort
SELECT DISTINCT + 79 * 57
----
4503

onlyif mysql # DIV for integer division: 
query I rowsort label-258
SELECT + ( 38 ) * + 92 + 82 * 36 DIV + 70 AS col0
----
3538

skipif mysql # not compatible
query I rowsort label-258
SELECT + ( 38 ) * + 92 + 82 * 36 / + 70 AS col0
----
3538

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

query I rowsort
SELECT + 9 * 15 AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-261
SELECT CAST( - + SUM( 72 ) AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-261
SELECT CAST ( - + SUM ( 72 ) AS INTEGER )
----
-72

query I rowsort
SELECT - 32 * - 36
----
1152

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

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

query I rowsort
SELECT ( CASE - 71 WHEN 11 THEN - + 66 ELSE NULL END ) AS col1
----
NULL

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

query I rowsort
SELECT DISTINCT - 17 * - 90 AS col0
----
1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-267
SELECT ALL 67 * + + 67 * - 25 + MAX( DISTINCT CAST( NULL AS SIGNED ) ), + 61 AS col0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-267
SELECT ALL 67 * + + 67 * - 25 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ), + 61 AS col0
----
NULL
61

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

query I rowsort
SELECT ALL + 31 * 58 + 64 AS col1
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT - 66 + - MIN( ALL - 13 ) + - + 43
----
-96

skipif mysql # not compatible
query I rowsort label-270
SELECT - 66 + - MIN ( ALL - 13 ) + - + 43
----
-96

query I rowsort
SELECT DISTINCT + 54 * 59 + + 75 AS col2
----
3261

query II rowsort
SELECT + 82 AS col0, - ( + - 87 )
----
82
87

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

skipif mysql # not compatible
query I rowsort label-273
SELECT COUNT ( * ) + 93 AS col0
----
94

query I rowsort
SELECT ALL - 9 + + - COALESCE ( 37, - 68 ) AS col2
----
-46

query I rowsort
SELECT 1 * 47
----
47

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

skipif mysql # not compatible
query I rowsort label-276
SELECT + COUNT ( * ) / 19 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT 18 - + COUNT( ALL + - 64 ) * CASE + - 70 WHEN - - ( - - 26 ) * - AVG ( 96 ) THEN NULL ELSE - - 46 END + + - COUNT( + + 68 ) * COUNT( * ) * + 89
----
-117

skipif mysql # not compatible
query I rowsort label-278
SELECT 18 - + COUNT ( ALL + - 64 ) * CASE + - 70 WHEN - - ( - - 26 ) * - AVG ( 96 ) THEN NULL ELSE - - 46 END + + - COUNT ( + + 68 ) * COUNT ( * ) * + 89
----
-117

query II rowsort
SELECT ALL - 62, + 71 * + 78 AS col1
----
-62
5538

query I rowsort
SELECT DISTINCT + + 96 * 74 AS col1
----
7104

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT DISTINCT + 43 - 81 * + NULLIF ( - 28, 17 * COUNT( - 9 ) )
----
2311

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT + 43 - 81 * + NULLIF ( - 28, 17 * COUNT ( - 9 ) )
----
2311

query II rowsort
SELECT + 0 AS col1, + 58
----
0
58

query I rowsort
SELECT ALL + 10 - - 50 - 39
----
21

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-286
SELECT ALL 12, 90 * + ( + - COUNT( * ) ) * - + CAST( - ( - 40 ) AS SIGNED ) AS col1
----
12
3600

skipif mysql # not compatible
query II rowsort label-286
SELECT ALL 12, 90 * + ( + - COUNT ( * ) ) * - + CAST ( - ( - 40 ) AS INTEGER ) AS col1
----
12
3600

query I rowsort
SELECT 10 * 92 - - 66 + 54 AS col1
----
1040

query I rowsort
SELECT ALL + 86 * + - 87 AS col0
----
-7482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-289
SELECT ALL - - COUNT( 48 ) DIV + 53 col2
----
0

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - - COUNT ( 48 ) / + 53 col2
----
0

query I rowsort
SELECT ALL + 69 * 65
----
4485

query II rowsort
SELECT ALL - 31, 3 * - 43 AS col1
----
-31
-129

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

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

query I rowsort
SELECT ( - - 73 ) * - - 43 + + 14 * 82 * 53
----
63983

query I rowsort
SELECT ALL + 25 * + - 22
----
-550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-295
SELECT 50 AS col1, CAST( + 19 AS SIGNED )
----
50
19

skipif mysql # not compatible
query II rowsort label-295
SELECT 50 AS col1, CAST ( + 19 AS INTEGER )
----
50
19

query II rowsort
SELECT 93 AS col2, 68 * - NULLIF ( 46, + 91 ) AS col1
----
93
-3128

query I rowsort
SELECT DISTINCT 39 + + + 78 AS col2
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-298
SELECT ALL AVG ( ALL CAST( NULL AS SIGNED ) ) + + 38 + + COALESCE ( + MAX( ALL - - 68 ), - 99 ) + - - 18 / 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL AVG ( ALL CAST ( NULL AS INTEGER ) ) + + 38 + + COALESCE ( + MAX ( ALL - - 68 ), - 99 ) + - - 18 / 50 AS col1
----
NULL

query I rowsort
SELECT ALL 85 + + 54 AS col1
----
139

query II rowsort
SELECT ALL - 56 AS col1, + CASE 2 WHEN + + 90 THEN 97 WHEN 79 / + - 22 THEN NULL END - - 86 AS col0
----
-56
NULL

query I rowsort
SELECT DISTINCT 3 + + + 88 - + 36 + + - 88 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT DISTINCT - ( - 88 ) + + SUM( - 12 ) + + 60
----
136

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT - ( - 88 ) + + SUM ( - 12 ) + + 60
----
136

query I rowsort
SELECT 85 * + 89
----
7565

query I rowsort
SELECT 20 + 69 AS col2
----
89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-306
SELECT 74, - 33 * - 3 * - CAST( NULL AS SIGNED ) AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-306
SELECT 74, - 33 * - 3 * - CAST ( NULL AS INTEGER ) AS col1
----
74
NULL

query II rowsort
SELECT + 27, + 68 + - + NULLIF ( 31, + - ( + 74 ) ) col2
----
27
37

query I rowsort
SELECT 30 + 72 col1
----
102

query I rowsort
SELECT ALL - ( - 0 ) - + CASE + - 3 WHEN + - 84 THEN - - 26 END col2
----
NULL

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

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

query I rowsort
SELECT ( - 0 ) + ( - 74 ) col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-312
SELECT DISTINCT - 46, COUNT( * ) col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-312
SELECT DISTINCT - 46, COUNT ( * ) col2
----
-46
1

query II rowsort
SELECT ALL - - 17, + 58 AS col0
----
17
58

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

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

query I rowsort
SELECT 64 * - - 38
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL - + 98 * - COALESCE ( + - 44, - - 30, 79 * - 35 - SUM( ALL + 44 ), 87 + - - 6 )
----
-4312

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL - + 98 * - COALESCE ( + - 44, - - 30, 79 * - 35 - SUM ( ALL + 44 ), 87 + - - 6 )
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT 50 * - COUNT( * ) + ( + - 46 )
----
-96

skipif mysql # not compatible
query I rowsort label-317
SELECT 50 * - COUNT ( * ) + ( + - 46 )
----
-96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-319
SELECT ALL + - NULLIF ( COUNT( * ), COALESCE ( - + 13, - 26 * - CAST( + ( 19 ) AS SIGNED ) ) ) * + 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + - NULLIF ( COUNT ( * ), COALESCE ( - + 13, - 26 * - CAST ( + ( 19 ) AS INTEGER ) ) ) * + 52 AS col0
----
-52

query I rowsort
SELECT NULLIF ( 27, + 84 ) * - 6 AS col2
----
-162

query I rowsort
SELECT 87 * + 50 AS col1
----
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-322
SELECT ALL - + CAST( NULL AS SIGNED ) * 62 * - ( 79 ) + + MAX( 35 ) + - + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL - + CAST ( NULL AS INTEGER ) * 62 * - ( 79 ) + + MAX ( 35 ) + - + 50 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-324
SELECT 64 - - CAST( NULL AS SIGNED ), - 54 + - MIN( - 95 ) AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-324
SELECT 64 - - CAST ( NULL AS INTEGER ), - 54 + - MIN ( - 95 ) AS col1
----
NULL
41

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT + 24 DIV + 37 + + - 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-325
SELECT + 24 / + 37 + + - 23 AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-326
SELECT SUM( 69 ) + - - 20 - - 64 + - 0 DIV - 15 * - + 28
----
153

skipif mysql # not compatible
query I rowsort label-326
SELECT SUM ( 69 ) + - - 20 - - 64 + - 0 / - 15 * - + 28
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-327
SELECT ALL 51 AS col0, 43 * - COUNT( * )
----
51
-43

skipif mysql # not compatible
query II rowsort label-327
SELECT ALL 51 AS col0, 43 * - COUNT ( * )
----
51
-43

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT ALL - + 27 * + COUNT( * ) DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - + 27 * + COUNT ( * ) / + 97 AS col1
----
0

query II rowsort
SELECT - 30 col1, 0 AS col0
----
-30
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - CASE - COALESCE ( - 43, - COUNT( * ) ) WHEN 13 THEN + 25 + - 25 END + + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT - CASE - COALESCE ( - 43, - COUNT ( * ) ) WHEN 13 THEN + 25 + - 25 END + + 74 col0
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 64, + 33 ) AS col1
----
64

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

skipif mysql # not compatible
query I rowsort label-334
SELECT 92 * CAST ( - 70 AS INTEGER ) AS col2
----
-6440

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT 35 + + 77 + MAX( DISTINCT - + 19 )
----
93

skipif mysql # not compatible
query I rowsort label-335
SELECT 35 + + 77 + MAX ( DISTINCT - + 19 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT ALL COALESCE ( - COUNT( * ), - - 92 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL COALESCE ( - COUNT ( * ), - - 92 ) col1
----
-1

query I rowsort
SELECT DISTINCT - 62 + 69 + - NULLIF ( 15, - 77 )
----
-8

query I rowsort
SELECT DISTINCT + 98 + - - 29
----
127

query I rowsort
SELECT ALL 98 + - 15 * 47 + + 12
----
-595

query I rowsort
SELECT 76 * - 29
----
-2204

query II rowsort
SELECT DISTINCT 33 + - + 99 AS col2, + 71 AS col0
----
-66
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL AVG ( ALL 25 ) * + - CASE 16 WHEN + 30 THEN + AVG ( ALL - - 61 ) + + CASE 4 WHEN + + 24 * - + 49 * + 94 + + 92 * CAST( + - 91 AS SIGNED ) THEN NULL WHEN + ( 24 ) * 7 THEN 1 ELSE NULL END END + COUNT( * ) - - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL AVG ( ALL 25 ) * + - CASE 16 WHEN + 30 THEN + AVG ( ALL - - 61 ) + + CASE 4 WHEN + + 24 * - + 49 * + 94 + + 92 * CAST ( + - 91 AS INTEGER ) THEN NULL WHEN + ( 24 ) * 7 THEN 1 ELSE NULL END END + COUNT ( * ) - - 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-343
SELECT ALL + 44 + + 4 AS col2, + MIN( DISTINCT - COALESCE ( + ( 75 ), - 1 + 96 ) )
----
48
-75

skipif mysql # not compatible
query II rowsort label-343
SELECT ALL + 44 + + 4 AS col2, + MIN ( DISTINCT - COALESCE ( + ( 75 ), - 1 + 96 ) )
----
48
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT CASE ( + + COUNT( * ) ) WHEN + COUNT( * ) THEN NULL WHEN 26 THEN + 75 ELSE + 62 / + 85 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT CASE ( + + COUNT ( * ) ) WHEN + COUNT ( * ) THEN NULL WHEN 26 THEN + 75 ELSE + 62 / + 85 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-345
SELECT - ( + 28 ) DIV - CAST( 14 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-345
SELECT - ( + 28 ) / - CAST ( 14 AS INTEGER )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT + 26 DIV + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-346
SELECT + 26 / + 47 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT - ( + 1 ) * + - 12 * COUNT( ALL + 44 )
----
12

skipif mysql # not compatible
query I rowsort label-347
SELECT - ( + 1 ) * + - 12 * COUNT ( ALL + 44 )
----
12

query I rowsort
SELECT + 2 * + + 62 AS col0
----
124

query I rowsort
SELECT + NULLIF ( - + 85, 90 + - + 27 - - + 93 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL + ( + - 70 ) * + - COUNT( * ) * - + 52 * + COUNT( * ) - - 78
----
-3562

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL + ( + - 70 ) * + - COUNT ( * ) * - + 52 * + COUNT ( * ) - - 78
----
-3562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-351
SELECT DISTINCT - MAX( ALL - 27 ) * 22 DIV - 75 + - - 66 * - + COUNT( * ) + - 67 - - SUM( ALL - 95 ) AS col1
----
-235

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT - MAX ( ALL - 27 ) * 22 / - 75 + - - 66 * - + COUNT ( * ) + - 67 - - SUM ( ALL - 95 ) AS col1
----
-235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-352
SELECT DISTINCT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ), ( - 47 ) AS col1
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-352
SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), ( - 47 ) AS col1
----
NULL
-47

query I rowsort
SELECT DISTINCT - 13 * + 90 + 46
----
-1124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-354
SELECT + ( + 50 ) * + COUNT( * ) * + COUNT( * ) * - 29 * CAST( - 9 AS SIGNED ) + + 25
----
13075

skipif mysql # not compatible
query I rowsort label-354
SELECT + ( + 50 ) * + COUNT ( * ) * + COUNT ( * ) * - 29 * CAST ( - 9 AS INTEGER ) + + 25
----
13075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-355
SELECT + COALESCE ( - 67, + 98 * - - CAST( + + 21 AS SIGNED ), + 73 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-355
SELECT + COALESCE ( - 67, + 98 * - - CAST ( + + 21 AS INTEGER ), + 73 ) AS col1
----
-67

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-357
SELECT DISTINCT + SUM( ALL - 78 ) AS col1, 67 AS col0
----
-78
67

skipif mysql # not compatible
query II rowsort label-357
SELECT DISTINCT + SUM ( ALL - 78 ) AS col1, 67 AS col0
----
-78
67

query I rowsort
SELECT ( 35 ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-359
SELECT DISTINCT + 91 * + 5, CAST( - 52 AS SIGNED ) + + - 55 AS col0
----
455
-107

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT + 91 * + 5, CAST ( - 52 AS INTEGER ) + + - 55 AS col0
----
455
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT DISTINCT + + 54 + + 23 + + SUM( DISTINCT 73 ) AS col1
----
150

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT + + 54 + + 23 + + SUM ( DISTINCT 73 ) AS col1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ALL - 78 + + - 41 + - + MIN( ALL - 27 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL - 78 + + - 41 + - + MIN ( ALL - 27 ) AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT DISTINCT + 20 * 5 DIV - 81
----
-1

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT + 20 * 5 / - 81
----
-1

query I rowsort
SELECT - + 98 * - + 38 + + 73 AS col1
----
3797

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT + - 28 * + 61 - + COUNT( * )
----
-1709

skipif mysql # not compatible
query I rowsort label-364
SELECT + - 28 * + 61 - + COUNT ( * )
----
-1709

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-365
SELECT ALL - CAST( NULL AS DECIMAL ) + 33, + CASE - - COALESCE ( - 40, + AVG ( + 58 ), + 14 + + 15 + - CASE + 99 WHEN + - 54 THEN - 87 / 5 * + + 52 + - 83 * + 87 WHEN + 35 THEN 84 * - COUNT( * ) + + 50 ELSE NULL END + 16 ) WHEN - + 77 THEN - COALESCE ( 85, - 86 * - + 79 * - COUNT( * ) ) WHEN ( + COUNT( * ) ) THEN 58 * 2 + + 62 / + 6 END + + 85 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-365
SELECT ALL - CAST ( NULL AS REAL ) + 33, + CASE - - COALESCE ( - 40, + AVG ( + 58 ), + 14 + + 15 + - CASE + 99 WHEN + - 54 THEN - 87 / 5 * + + 52 + - 83 * + 87 WHEN + 35 THEN 84 * - COUNT ( * ) + + 50 ELSE NULL END + 16 ) WHEN - + 77 THEN - COALESCE ( 85, - 86 * - + 79 * - COUNT ( * ) ) WHEN ( + COUNT ( * ) ) THEN 58 * 2 + + 62 / + 6 END + + 85 AS col2
----
NULL
NULL

query I rowsort
SELECT + 50 - - 98
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-367
SELECT 99 col2, 39 DIV COALESCE ( 4, - 45, + COUNT( * ) )
----
99
9

skipif mysql # not compatible
query II rowsort label-367
SELECT 99 col2, 39 / COALESCE ( 4, - 45, + COUNT ( * ) )
----
99
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-368
SELECT - 88, CASE + 9 WHEN 90 - + 81 * 36 THEN - COALESCE ( 42, + 53, - CAST( NULL AS SIGNED ) ) / + 61 + + - 57 WHEN - 15 THEN NULL ELSE + + COALESCE ( - NULLIF ( 88, 43 * + 67 ), - + 49 * + NULLIF ( 32, 17 * - + 73 * + 27 * ( + 53 ) / CAST( NULL AS SIGNED ) + AVG ( DISTINCT - 43 ) - 74 ) + - 70 * + 62, 42 ) END
----
-88
-88

skipif mysql # not compatible
query II rowsort label-368
SELECT - 88, CASE + 9 WHEN 90 - + 81 * 36 THEN - COALESCE ( 42, + 53, - CAST ( NULL AS INTEGER ) ) / + 61 + + - 57 WHEN - 15 THEN NULL ELSE + + COALESCE ( - NULLIF ( 88, 43 * + 67 ), - + 49 * + NULLIF ( 32, 17 * - + 73 * + 27 * ( + 53 ) / CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - 43 ) - 74 ) + - 70 * + 62, 42 ) END
----
-88
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT ALL + COUNT( * ) + 73 + 46 DIV + + 60 + - - MAX( DISTINCT + 98 ) col1
----
172

skipif mysql # not compatible
query I rowsort label-369
SELECT ALL + COUNT ( * ) + 73 + 46 / + + 60 + - - MAX ( DISTINCT + 98 ) col1
----
172

query I rowsort
SELECT - ( - 98 ) - - + 65 col2
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT DISTINCT CASE - COUNT( * ) WHEN - 18 * + 19 * - 85 / + + 88 THEN - 92 - - NULLIF ( - NULLIF ( + 75, 44 + + + 77 / 0 ), + - 6 ) - 97 * - + 58 WHEN - 2 + - 3 + - - COUNT( * ) * + 43 THEN + 58 ELSE + 58 * 14 * + + SUM( DISTINCT 56 ) END AS col0
----
45472

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT CASE - COUNT ( * ) WHEN - 18 * + 19 * - 85 / + + 88 THEN - 92 - - NULLIF ( - NULLIF ( + 75, 44 + + + 77 / 0 ), + - 6 ) - 97 * - + 58 WHEN - 2 + - 3 + - - COUNT ( * ) * + 43 THEN + 58 ELSE + 58 * 14 * + + SUM ( DISTINCT 56 ) END AS col0
----
45472

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

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

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

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

query I rowsort
SELECT ALL - 12 + 42 + 13
----
43

query I rowsort
SELECT DISTINCT + 58 + + 59
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL + COUNT( * ) + + 78 * 9 - + 82 + - 33 AS col1
----
588

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL + COUNT ( * ) + + 78 * 9 - + 82 + - 33 AS col1
----
588

onlyif mysql # aggregate syntax: 
query II rowsort label-378
SELECT 4 col0, + COUNT( * ) - + 67
----
4
-66

skipif mysql # not compatible
query II rowsort label-378
SELECT 4 col0, + COUNT ( * ) - + 67
----
4
-66

query I rowsort
SELECT - 26 - 67
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT - ( + COUNT( * ) ) + + 22 * 41
----
901

skipif mysql # not compatible
query I rowsort label-380
SELECT - ( + COUNT ( * ) ) + + 22 * 41
----
901

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

skipif mysql # not compatible
query II rowsort label-381
SELECT 50 AS col1, COUNT ( * ) AS col1
----
50
1

query I rowsort
SELECT - 14 * - 64
----
896

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT + 20 * COUNT( * ) * + 6 AS col0
----
120

skipif mysql # not compatible
query I rowsort label-383
SELECT + 20 * COUNT ( * ) * + 6 AS col0
----
120

query I rowsort
SELECT + NULLIF ( + 30, 59 * - 85 * 84 ) AS col0
----
30

query II rowsort
SELECT - 90 + + - 80 + + 70 col1, 50 AS col2
----
-100
50

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT + NULLIF ( + 3, + + AVG ( DISTINCT - - 3 ) + + - COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-386
SELECT + NULLIF ( + 3, + + AVG ( DISTINCT - - 3 ) + + - COUNT ( * ) )
----
3

query II rowsort
SELECT DISTINCT + 52, - 53 AS col1
----
52
-53

query I rowsort
SELECT 87 * + 68 + - + 24 AS col2
----
5892

query II rowsort
SELECT ALL + 7 AS col0, 92 + 56 AS col1
----
7
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-390
SELECT + - 20 DIV ( - COALESCE ( - COUNT( * ), + 46, + - COUNT( * ) ) ) + 93
----
73

skipif mysql # not compatible
query I rowsort label-390
SELECT + - 20 / ( - COALESCE ( - COUNT ( * ), + 46, + - COUNT ( * ) ) ) + 93
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-391
SELECT + - 70 + + 10 + + + 51 * - CAST( NULL AS SIGNED ) AS col0, + 52 AS col1
----
NULL
52

skipif mysql # not compatible
query II rowsort label-391
SELECT + - 70 + + 10 + + + 51 * - CAST ( NULL AS INTEGER ) AS col0, + 52 AS col1
----
NULL
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT + CASE CAST( NULL AS SIGNED ) WHEN + 62 * - 33 * + 88 THEN NULL WHEN + 57 * + + MIN( DISTINCT - 72 ) - + + 62 * + - 45 * + CASE 37 WHEN + 46 - + 40 THEN + ( 97 ) WHEN + 44 / + 23 / - - 77 THEN - 11 END * + 32 - - 78 THEN - NULLIF ( - 14, ( + 15 ) - - 91 ) * + 51 WHEN + 8 + COUNT( * ) THEN NULL END / - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + 62 * - 33 * + 88 THEN NULL WHEN + 57 * + + MIN ( DISTINCT - 72 ) - + + 62 * + - 45 * + CASE 37 WHEN + 46 - + 40 THEN + ( 97 ) WHEN + 44 / + 23 / - - 77 THEN - 11 END * + 32 - - 78 THEN - NULLIF ( - 14, ( + 15 ) - - 91 ) * + 51 WHEN + 8 + COUNT ( * ) THEN NULL END / - 12 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-393
SELECT DISTINCT - 31 DIV + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - 31 / + 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL - 18 * + 33 - - ( + - COUNT( * ) ) + - 45
----
-640

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL - 18 * + 33 - - ( + - COUNT ( * ) ) + - 45
----
-640

query I rowsort
SELECT ALL 76 * + + ( + 24 )
----
1824

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-396
SELECT + CASE AVG ( + CAST( NULL AS DECIMAL ) ) WHEN 90 THEN NULL WHEN - 52 THEN - 65 END, 54 col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-396
SELECT + CASE AVG ( + CAST ( NULL AS REAL ) ) WHEN 90 THEN NULL WHEN - 52 THEN - 65 END, 54 col1
----
NULL
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT ALL + 46 * - ( + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) + - + 8 - 32 * + CASE + + 67 WHEN + + 96 THEN - - 10 / - 24 WHEN + COUNT( * ) / - - 3 THEN NULL ELSE 18 + - 61 END + + + 12 * + + CASE WHEN NULL <> 22 THEN - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL + 46 * - ( + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - + 8 - 32 * + CASE + + 67 WHEN + + 96 THEN - - 10 / - 24 WHEN + COUNT ( * ) / - - 3 THEN NULL ELSE 18 + - 61 END + + + 12 * + + CASE WHEN NULL <> 22 THEN - 57 END
----
NULL

query I rowsort
SELECT + 68 - + 98
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT DISTINCT ( - CAST( + AVG ( - - 87 ) AS SIGNED ) ) * - 67 AS col2
----
5829

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT ( - CAST ( + AVG ( - - 87 ) AS INTEGER ) ) * - 67 AS col2
----
5829

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT + - 32 + + COALESCE ( 85, + ( - 17 ) ) + - COUNT( * ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-400
SELECT + - 32 + + COALESCE ( 85, + ( - 17 ) ) + - COUNT ( * ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-401
SELECT + 81 + + + COUNT( * ) + + ( + 73 ) DIV - - 98 - - 0 - + 33 + COALESCE ( - - 32, - 39 ) DIV - 44 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-401
SELECT + 81 + + + COUNT ( * ) + + ( + 73 ) / - - 98 - - 0 - + 33 + COALESCE ( - - 32, - 39 ) / - 44 AS col0
----
49

query I rowsort
SELECT + 95 * + 63 - + 18
----
5967

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ALL + 17 * - 64 * - 26 + - 45 * ( - - 22 ) * - - ( - COUNT( - - ( + 5 ) ) ) + - - 80
----
29358

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + 17 * - 64 * - 26 + - 45 * ( - - 22 ) * - - ( - COUNT ( - - ( + 5 ) ) ) + - - 80
----
29358

query I rowsort
SELECT + 34 + + 68 + 54 * 1
----
156

query II rowsort
SELECT + 48 + - 55 * + 66 AS col2, + 52 AS col2
----
-3582
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-406
SELECT - + 61 - - - COUNT( * ) + + + 57 * + NULLIF ( - + 38, + 50 ) + + 95 DIV - 98
----
-2228

skipif mysql # not compatible
query I rowsort label-406
SELECT - + 61 - - - COUNT ( * ) + + + 57 * + NULLIF ( - + 38, + 50 ) + + 95 / - 98
----
-2228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-407
SELECT ALL CASE + - CAST( - COUNT( * ) AS SIGNED ) WHEN COUNT( * ) - - ( - 64 ) + AVG ( DISTINCT + 12 ) + COUNT( * ) THEN + 2 * + - 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL CASE + - CAST ( - COUNT ( * ) AS INTEGER ) WHEN COUNT ( * ) - - ( - 64 ) + AVG ( DISTINCT + 12 ) + COUNT ( * ) THEN + 2 * + - 28 END
----
NULL

query I rowsort
SELECT ALL 86 + + 62 AS col0
----
148

query I rowsort
SELECT ALL COALESCE ( 9, 86 ) col2
----
9

query I rowsort
SELECT ALL - COALESCE ( - 51, 59 ) - - - 72
----
-21

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

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

query I rowsort
SELECT 11 + + 72 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-413
SELECT ALL 56 DIV 2 * + SUM( + 28 ) AS col2, 79 * 36
----
784
2844

skipif mysql # not compatible
query II rowsort label-413
SELECT ALL 56 / 2 * + SUM ( + 28 ) AS col2, 79 * 36
----
784
2844

onlyif mysql # DIV for integer division: 
query I rowsort label-414
SELECT DISTINCT 73 DIV + 70 col0
----
1

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT 73 / + 70 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-415
SELECT 1 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-415
SELECT 1 / + 26
----
0

query I rowsort
SELECT 36 * CASE - - 19 WHEN - + 9 THEN + 29 WHEN 67 * - 58 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 9 * - - 86 * 62
----
47988

query I rowsort
SELECT ALL 72 * + 18
----
1296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-419
SELECT 26 DIV - + SUM( ALL NULLIF ( + 37, - - 15 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-419
SELECT 26 / - + SUM ( ALL NULLIF ( + 37, - - 15 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT 36 * - MIN( + ( - 91 ) )
----
3276

skipif mysql # not compatible
query I rowsort label-420
SELECT 36 * - MIN ( + ( - 91 ) )
----
3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT - CASE 59 WHEN 6 * + - AVG ( DISTINCT 89 ) * - - 65 THEN + CAST( + 81 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT - CASE 59 WHEN 6 * + - AVG ( DISTINCT 89 ) * - - 65 THEN + CAST ( + 81 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT MIN( DISTINCT - 76 ) * + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-422
SELECT MIN ( DISTINCT - 76 ) * + COUNT ( * )
----
-76

query I rowsort
SELECT ALL + - 12 * + - 33 col0
----
396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT DISTINCT - 91 + - - 87 * - CAST( - 44 AS SIGNED ) AS col1
----
3737

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT - 91 + - - 87 * - CAST ( - 44 AS INTEGER ) AS col1
----
3737

query I rowsort
SELECT DISTINCT 69 + 90 AS col0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-426
SELECT - CAST( 78 AS SIGNED ), 56 AS col1
----
-78
56

skipif mysql # not compatible
query II rowsort label-426
SELECT - CAST ( 78 AS INTEGER ), 56 AS col1
----
-78
56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-428
SELECT DISTINCT - + 70 + - 76 + 95 + CAST( NULL AS SIGNED ) + 36 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - + 70 + - 76 + 95 + CAST ( NULL AS INTEGER ) + 36 * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL - 76 + CASE 1 WHEN 29 THEN + 26 WHEN + - 44 THEN NULL END AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-431
SELECT 20 * 56 DIV + + 40
----
28

skipif mysql # not compatible
query I rowsort label-431
SELECT 20 * 56 / + + 40
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-432
SELECT ALL MAX( 39 ) AS col1, SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-432
SELECT ALL MAX ( 39 ) AS col1, SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
39
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-433
SELECT ALL ( - 82 ) - - + 0 + COUNT( * ) - - 24 AS col0, - 52 - + 34 * - 82, - 13 AS col0
----
-57
2736
-13

skipif mysql # not compatible
query III rowsort label-433
SELECT ALL ( - 82 ) - - + 0 + COUNT ( * ) - - 24 AS col0, - 52 - + 34 * - 82, - 13 AS col0
----
-57
2736
-13

query I rowsort
SELECT DISTINCT 48 col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL NULLIF ( 59, + + AVG ( - 6 ) * + - AVG ( + - ( - + 89 ) ) + SUM( - - 0 ) ) - - COUNT( 38 ) * + 12 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL NULLIF ( 59, + + AVG ( - 6 ) * + - AVG ( + - ( - + 89 ) ) + SUM ( - - 0 ) ) - - COUNT ( 38 ) * + 12 AS col1
----
71

query I rowsort
SELECT 91 * 84
----
7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-437
SELECT COUNT( * ) - - CAST( - + 98 AS SIGNED ) + - 5 * + 14
----
-167

skipif mysql # not compatible
query I rowsort label-437
SELECT COUNT ( * ) - - CAST ( - + 98 AS INTEGER ) + - 5 * + 14
----
-167

query I rowsort
SELECT 39 * - ( 96 ) AS col1
----
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT 10 - 30 * - COUNT( * ) + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-439
SELECT 10 - 30 * - COUNT ( * ) + COUNT ( * )
----
41

query I rowsort
SELECT COALESCE ( + 24, + 1 ) + 67 AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-441
SELECT ALL - 50 DIV - 9
----
5

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL - 50 / - 9
----
5

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

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

query I rowsort
SELECT 55 - + 9
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-444
SELECT ALL COUNT( * ) DIV - 42 DIV - - COUNT( * ) * 18
----
0

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL COUNT ( * ) / - 42 / - - COUNT ( * ) * 18
----
0

query I rowsort
SELECT ALL 95 + 53 * - + ( - 50 ) AS col2
----
2745

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

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

query I rowsort
SELECT + 91 + - - 35 + + + 69 + 38 * + + 32 AS col1
----
1411

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-449
SELECT - 0 DIV - COUNT( * ) + 99 + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-449
SELECT - 0 / - COUNT ( * ) + 99 + - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT + - 32 * 75 + COUNT( * ) + - 33 * - + 82 * - 63 + + + 55
----
-172822

skipif mysql # not compatible
query I rowsort label-450
SELECT + - 32 * 75 + COUNT ( * ) + - 33 * - + 82 * - 63 + + + 55
----
-172822

query I rowsort
SELECT DISTINCT + 4 * - 59 AS col2
----
-236

query I rowsort
SELECT DISTINCT + 46 * - 45 + 89 AS col2
----
-1981

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT - COALESCE ( - - 80, COUNT( * ), + + 6 )
----
-80

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT - COALESCE ( - - 80, COUNT ( * ), + + 6 )
----
-80

query I rowsort
SELECT 35 * - - 12 AS col2
----
420

query I rowsort
SELECT + 50 * + 85 AS col0
----
4250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-456
SELECT DISTINCT - NULLIF ( + 34, + 62 ) * + CAST( NULL AS SIGNED ) - + + 79 * - - COUNT( + + 61 ) + 87 * + COUNT( * ) * 15 AS col0, + 44
----
NULL
44

skipif mysql # not compatible
query II rowsort label-456
SELECT DISTINCT - NULLIF ( + 34, + 62 ) * + CAST ( NULL AS INTEGER ) - + + 79 * - - COUNT ( + + 61 ) + 87 * + COUNT ( * ) * 15 AS col0, + 44
----
NULL
44

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

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - 46 + + COUNT ( * ) AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-458
SELECT ALL - NULLIF ( - CAST( ( 45 ) AS SIGNED ), - - 12 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL - NULLIF ( - CAST ( ( 45 ) AS INTEGER ), - - 12 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT + 84 * ( COUNT( * ) ) + + ( 42 ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-459
SELECT + 84 * ( COUNT ( * ) ) + + ( 42 ) AS col1
----
126

query I rowsort
SELECT DISTINCT 86 - - - 98
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT + 96 * + MIN( DISTINCT - NULLIF ( - CAST( - 65 AS SIGNED ), - CAST( 3 AS SIGNED ) ) ) * - 83 + - MIN( + 4 ) + COUNT( * ) + - 59 * - 39 * + 79
----
699696

skipif mysql # not compatible
query I rowsort label-461
SELECT + 96 * + MIN ( DISTINCT - NULLIF ( - CAST ( - 65 AS INTEGER ), - CAST ( 3 AS INTEGER ) ) ) * - 83 + - MIN ( + 4 ) + COUNT ( * ) + - 59 * - 39 * + 79
----
699696

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT + 39 - + 39 + - + SUM( ALL - - 57 ) - 68 + 45 + - 34 * - - COUNT( * ) * 26 AS col1
----
-964

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + 39 - + 39 + - + SUM ( ALL - - 57 ) - 68 + 45 + - 34 * - - COUNT ( * ) * 26 AS col1
----
-964

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

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - 9 * 48 * COUNT( * )
----
-432

skipif mysql # not compatible
query I rowsort label-464
SELECT - 9 * 48 * COUNT ( * )
----
-432

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

skipif mysql # not compatible
query I rowsort label-465
SELECT - COUNT ( * ) * - 94
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-466
SELECT - 74 DIV - 1 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-466
SELECT - 74 / - 1 AS col2
----
74

query I rowsort
SELECT + 79 * + 69
----
5451

query I rowsort
SELECT - 91 + 1 + + 34 * - ( + 28 )
----
-1042

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT - 67 + - + 55 + + - 80 DIV - 31
----
-120

skipif mysql # not compatible
query I rowsort label-469
SELECT - 67 + - + 55 + + - 80 / - 31
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-470
SELECT DISTINCT COALESCE ( + 10, + 30 - - 45 DIV - ( - + 25 ) )
----
10

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT COALESCE ( + 10, + 30 - - 45 / - ( - + 25 ) )
----
10

query I rowsort
SELECT ALL 55 * - COALESCE ( + 51, - 26 * ( - 17 ) + - - 94 )
----
-2805

query II rowsort
SELECT 58 AS col2, 32
----
58
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-473
SELECT ALL - 91 + + + CAST( - 52 AS SIGNED ) AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL - 91 + + + CAST ( - 52 AS INTEGER ) AS col1
----
-143

query I rowsort
SELECT - 49 * - 52 AS col1
----
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT + COUNT( * ) + 81 * + + 5 AS col0
----
406

skipif mysql # not compatible
query I rowsort label-475
SELECT + COUNT ( * ) + 81 * + + 5 AS col0
----
406

query II rowsort
SELECT ALL 75 AS col2, 89 AS col0
----
75
89

query I rowsort
SELECT DISTINCT 78 * - + 34 * - 45
----
119340

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT - 84 * + MIN( DISTINCT - CASE 24 WHEN - 73 * - 72 THEN NULL WHEN - 32 THEN - 47 ELSE + 0 END ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-478
SELECT - 84 * + MIN ( DISTINCT - CASE 24 WHEN - 73 * - 72 THEN NULL WHEN - 32 THEN - 47 ELSE + 0 END ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-479
SELECT + 89 + CAST( - 67 AS SIGNED ) * - 86 AS col0
----
5851

skipif mysql # not compatible
query I rowsort label-479
SELECT + 89 + CAST ( - 67 AS INTEGER ) * - 86 AS col0
----
5851

query I rowsort
SELECT ALL 13 * 1 AS col0
----
13

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-482
SELECT + 84 + MIN( ALL + - 99 ) + + ( - CASE 55 WHEN - + 50 * - ( CAST( - 50 AS DECIMAL ) ) THEN 26 WHEN - - 34 THEN + + COUNT( * ) WHEN - 16 + + + 70 THEN NULL WHEN + 2 THEN NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-482
SELECT + 84 + MIN ( ALL + - 99 ) + + ( - CASE 55 WHEN - + 50 * - ( CAST ( - 50 AS REAL ) ) THEN 26 WHEN - - 34 THEN + + COUNT ( * ) WHEN - 16 + + + 70 THEN NULL WHEN + 2 THEN NULL END ) col1
----
NULL

query I rowsort
SELECT + 89 * + 41
----
3649

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-484
SELECT ALL - 12, ( + - CAST( NULL AS SIGNED ) ) AS col1
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-484
SELECT ALL - 12, ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
-12
NULL

query III rowsort
SELECT - + 55 AS col0, + 3 AS col2, + NULLIF ( - + 91, + 62 + - - COALESCE ( - 3, 12 ) - - + 58 )
----
-55
3
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT ALL ( + 24 ) + COUNT( * ) * - - 12 / - CASE + - COUNT( * ) WHEN + - 76 THEN - 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL ( + 24 ) + COUNT ( * ) * - - 12 / - CASE + - COUNT ( * ) WHEN + - 76 THEN - 82 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-488
SELECT DISTINCT 46 DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-488
SELECT DISTINCT 46 / + 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL + COUNT( * ) * 61 + + 33 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL + COUNT ( * ) * 61 + + 33 AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT - 70 DIV + 46 - 38
----
-39

skipif mysql # not compatible
query I rowsort label-490
SELECT - 70 / + 46 - 38
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + + 31 * + 41 * 63 - + 10 - + - NULLIF ( + CASE - 19 WHEN - - 89 THEN - 24 END, SUM( 37 ) ) + MAX( - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT + + 31 * + 41 * 63 - + 10 - + - NULLIF ( + CASE - 19 WHEN - - 89 THEN - 24 END, SUM ( 37 ) ) + MAX ( - 82 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-492
SELECT ALL + + 8 AS col2, + ( + - COALESCE ( + 80, - 37 ) ) + 4 - + 60 + - CASE - 65 WHEN + 6 + + 12 THEN NULL WHEN - - 76 THEN - 16 + - 47 * - + ( + COALESCE ( + - MAX( DISTINCT - 5 ), - ( - 76 ), - - 57 * + 35 DIV - CAST( + 90 AS SIGNED ), 59 ) ) ELSE + 71 END
----
8
-207

skipif mysql # not compatible
query II rowsort label-492
SELECT ALL + + 8 AS col2, + ( + - COALESCE ( + 80, - 37 ) ) + 4 - + 60 + - CASE - 65 WHEN + 6 + + 12 THEN NULL WHEN - - 76 THEN - 16 + - 47 * - + ( + COALESCE ( + - MAX ( DISTINCT - 5 ), - ( - 76 ), - - 57 * + 35 / - CAST ( + 90 AS INTEGER ), 59 ) ) ELSE + 71 END
----
8
-207

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-493
SELECT + 60, COUNT( ALL 56 ) - 64 + + - 81 - - - 42 + + 37 * + SUM( + 94 ) + - 38 + + 1 DIV - 59 + - 84 col1
----
60
3170

skipif mysql # not compatible
query II rowsort label-493
SELECT + 60, COUNT ( ALL 56 ) - 64 + + - 81 - - - 42 + + 37 * + SUM ( + 94 ) + - 38 + + 1 / - 59 + - 84 col1
----
60
3170

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT + + 70 * + SUM( 49 ) AS col1
----
3430

skipif mysql # not compatible
query I rowsort label-494
SELECT + + 70 * + SUM ( 49 ) AS col1
----
3430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-495
SELECT - ( - COUNT( * ) ) * - 93 * 3 * + - 9 * - CASE - - 92 WHEN - CAST( NULL AS SIGNED ) * - - 82 * + 80 THEN NULL WHEN AVG ( DISTINCT + 88 ) THEN NULL ELSE 87 END
----
-218457

skipif mysql # not compatible
query I rowsort label-495
SELECT - ( - COUNT ( * ) ) * - 93 * 3 * + - 9 * - CASE - - 92 WHEN - CAST ( NULL AS INTEGER ) * - - 82 * + 80 THEN NULL WHEN AVG ( DISTINCT + 88 ) THEN NULL ELSE 87 END
----
-218457

query I rowsort
SELECT + 1 + - 21 AS col2
----
-20

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

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT COUNT ( * ) * + 6 - 54 AS col2
----
-48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT + 94 DIV + 31 - + - 61
----
64

skipif mysql # not compatible
query I rowsort label-499
SELECT + 94 / + 31 - + - 61
----
64

query II rowsort
SELECT ALL + - 58, - 0 AS col1
----
-58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-501
SELECT ALL - - 57 * - 84 / + 22 + + 98 - - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - - 57 * - 84 / + 22 + + 98 - - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT - ( - ( 93 ) ) * + 13 + + COUNT( * ) AS col1
----
1210

skipif mysql # not compatible
query I rowsort label-502
SELECT - ( - ( 93 ) ) * + 13 + + COUNT ( * ) AS col1
----
1210

onlyif mysql # DIV for integer division: 
query I rowsort label-503
SELECT - 27 + - - 7 + + 89 DIV + 29
----
-17

skipif mysql # not compatible
query I rowsort label-503
SELECT - 27 + - - 7 + + 89 / + 29
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT 31 * + - 81 - MAX( - 26 ) AS col2
----
-2485

skipif mysql # not compatible
query I rowsort label-504
SELECT 31 * + - 81 - MAX ( - 26 ) AS col2
----
-2485

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT + MIN( DISTINCT + 22 ) * - 39 AS col0
----
-858

skipif mysql # not compatible
query I rowsort label-505
SELECT + MIN ( DISTINCT + 22 ) * - 39 AS col0
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - 67 * + MAX( DISTINCT 71 ) * + - 6 * - CASE + 7 WHEN - 48 THEN - + MAX( ALL + 40 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT - 67 * + MAX ( DISTINCT 71 ) * + - 6 * - CASE + 7 WHEN - 48 THEN - + MAX ( ALL + 40 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-507
SELECT ALL + CAST( - - 95 AS SIGNED ) * 3 + COUNT( * )
----
286

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL + CAST ( - - 95 AS INTEGER ) * 3 + COUNT ( * )
----
286

query I rowsort
SELECT DISTINCT + 32 * 26 AS col1
----
832

onlyif mysql # DIV for integer division: 
query II rowsort label-509
SELECT - 20 DIV - + 88 * + + 99, + 30 col1
----
0
30

skipif mysql # not compatible
query II rowsort label-509
SELECT - 20 / - + 88 * + + 99, + 30 col1
----
0
30

query I rowsort
SELECT - 32 + 75 AS col2
----
43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-512
SELECT DISTINCT ( + 99 ) AS col1, + COUNT( * ) * - 43
----
99
-43

skipif mysql # not compatible
query II rowsort label-512
SELECT DISTINCT ( + 99 ) AS col1, + COUNT ( * ) * - 43
----
99
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT DISTINCT - MAX( ALL - 2 ) + - 48 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT - MAX ( ALL - 2 ) + - 48 AS col1
----
-46

query I rowsort
SELECT - 1 - - 32 + - 98 + - 99 AS col0
----
-166

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

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

query I rowsort
SELECT - 78 - 21 AS col2
----
-99

query I rowsort
SELECT ALL - ( - + 67 ) + - 28 * - 39
----
1159

onlyif mysql # DIV for integer division: 
query I rowsort label-518
SELECT ALL - 15 DIV 16 * + 82 * + + 80
----
0

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - 15 / 16 * + 82 * + + 80
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT ALL - NULLIF ( - 52, + - 93 / 84 + - - COUNT( - 40 ) + - 84 ) + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL - NULLIF ( - 52, + - 93 / 84 + - - COUNT ( - 40 ) + - 84 ) + - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT DISTINCT COUNT( * ) * + 26 + + ( + 28 )
----
54

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT COUNT ( * ) * + 26 + + ( + 28 )
----
54

query I rowsort
SELECT + - 60 - + 77 + - - 6 + 88 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT - + 91 + COUNT( * ) * 82 + - MAX( DISTINCT + 5 ) - + - 82 + + 75 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-523
SELECT - + 91 + COUNT ( * ) * 82 + - MAX ( DISTINCT + 5 ) - + - 82 + + 75 AS col0
----
143

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

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

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

query I rowsort
SELECT DISTINCT 2 * - - 64 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL + - COALESCE ( + COUNT( - 70 ), 19 + + 88, + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL + - COALESCE ( + COUNT ( - 70 ), 19 + + 88, + COUNT ( * ) ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-528
SELECT ALL + NULLIF ( 8, - CAST( - - CAST( + 44 AS SIGNED ) AS SIGNED ) * - MAX( ALL + 28 ) ) * - - 32
----
256

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL + NULLIF ( 8, - CAST ( - - CAST ( + 44 AS INTEGER ) AS INTEGER ) * - MAX ( ALL + 28 ) ) * - - 32
----
256

query I rowsort
SELECT 50 * + 47 + + 79 * - 8 * + 83 AS col2
----
-50106

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-533
SELECT + + 0 DIV 74 + - 95 + - - COALESCE ( + 10, + 96 * - COALESCE ( - 89, + - 60 + - + COUNT( * ), - + 79 + - 16 ) ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-533
SELECT + + 0 / 74 + - 95 + - - COALESCE ( + 10, + 96 * - COALESCE ( - 89, + - 60 + - + COUNT ( * ), - + 79 + - 16 ) ) col2
----
-85

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

skipif mysql # not compatible
query II rowsort label-534
SELECT - ( + COUNT ( * ) ) AS col2, - CAST ( NULL AS REAL ) * + NULLIF ( + - COUNT ( * ), - 71 ) col1
----
-1
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT - CASE 97 WHEN + 46 / 89 / CASE - 73 WHEN + - 82 THEN NULL ELSE + 51 END THEN + COALESCE ( - - COUNT( * ), 94 ) * - CAST( - 38 AS SIGNED ) + + ( COALESCE ( + 79, + - ( - - CAST( NULL AS SIGNED ) ), - MAX( + 72 ) + - 70 ) ) ELSE NULL END * + ( + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT - CASE 97 WHEN + 46 / 89 / CASE - 73 WHEN + - 82 THEN NULL ELSE + 51 END THEN + COALESCE ( - - COUNT ( * ), 94 ) * - CAST ( - 38 AS INTEGER ) + + ( COALESCE ( + 79, + - ( - - CAST ( NULL AS INTEGER ) ), - MAX ( + 72 ) + - 70 ) ) ELSE NULL END * + ( + 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-537
SELECT ( - + COALESCE ( - 90, MIN( DISTINCT + 10 ) ) ) + ( - COUNT( * ) ) * - 89, - 10 AS col2
----
179
-10

skipif mysql # not compatible
query II rowsort label-537
SELECT ( - + COALESCE ( - 90, MIN ( DISTINCT + 10 ) ) ) + ( - COUNT ( * ) ) * - 89, - 10 AS col2
----
179
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-538
SELECT ALL - 75 AS col0, COUNT( * ) col0
----
-75
1

skipif mysql # not compatible
query II rowsort label-538
SELECT ALL - 75 AS col0, COUNT ( * ) col0
----
-75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT 54 * - 49 + - SUM( + - 80 )
----
-2566

skipif mysql # not compatible
query I rowsort label-539
SELECT 54 * - 49 + - SUM ( + - 80 )
----
-2566

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-540
SELECT CAST( NULL AS DECIMAL ) + 82 + 95 * + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT CAST ( NULL AS REAL ) + 82 + 95 * + 18 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-541
SELECT NULLIF ( + ( + ( - + 48 ) ), 18 + - COUNT( * ) - 84 - + ( - NULLIF ( - 91, - 58 * - 98 + - + 73 * - ( - + COUNT( * ) ) ) ) * - 48 * + CAST( NULL AS DECIMAL ) * + 35 * COALESCE ( - 33, - ( + COUNT( * ) ) - + 53 ) ) * - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-541
SELECT NULLIF ( + ( + ( - + 48 ) ), 18 + - COUNT ( * ) - 84 - + ( - NULLIF ( - 91, - 58 * - 98 + - + 73 * - ( - + COUNT ( * ) ) ) ) * - 48 * + CAST ( NULL AS REAL ) * + 35 * COALESCE ( - 33, - ( + COUNT ( * ) ) - + 53 ) ) * - COUNT ( * ) AS col2
----
48

query I rowsort
SELECT DISTINCT 9 + + 95
----
104

query I rowsort
SELECT 45 + 74 AS col0
----
119

query I rowsort
SELECT ALL 43 + + 99 AS col1
----
142

query II rowsort
SELECT ALL - 84, 49 AS col1
----
-84
49

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT + 15 * - + COUNT( * ) + NULLIF ( + - COUNT( * ), 20 + + 51 )
----
-16

skipif mysql # not compatible
query I rowsort label-546
SELECT + 15 * - + COUNT ( * ) + NULLIF ( + - COUNT ( * ), 20 + + 51 )
----
-16

query II rowsort
SELECT 83 AS col0, - 69 + 45
----
83
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-548
SELECT 64 + + CAST( + CASE - - 86 WHEN 51 + 30 * + 99 THEN 52 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-548
SELECT 64 + + CAST ( + CASE - - 86 WHEN 51 + 30 * + 99 THEN 52 END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 92 + - 44 AS col0
----
-136

query I rowsort
SELECT 35 + + 26
----
61

query I rowsort
SELECT ALL + 28 + + + 25
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-552
SELECT CAST( NULL AS DECIMAL ) + - 98 + 43 * + 30 * - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-552
SELECT CAST ( NULL AS REAL ) + - 98 + 43 * + 30 * - 21 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 74 - - - 80
----
-154

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

skipif mysql # not compatible
query II rowsort label-554
SELECT - 38 AS col0, - COUNT ( * )
----
-38
-1

query I rowsort
SELECT - ( 47 ) + + 40 AS col0
----
-7

query II rowsort
SELECT ALL 83, 87 AS col0
----
83
87

query I rowsort
SELECT 31 + + + 84 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT - 46 * - SUM( DISTINCT + 52 ) + + COUNT( * )
----
2393

skipif mysql # not compatible
query I rowsort label-558
SELECT - 46 * - SUM ( DISTINCT + 52 ) + + COUNT ( * )
----
2393

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT + SUM( ALL NULLIF ( - 25, 64 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-559
SELECT + SUM ( ALL NULLIF ( - 25, 64 ) )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-560
SELECT CASE 30 WHEN + NULLIF ( + - 64, + 68 ) * + CASE + 2 WHEN 32 THEN + NULLIF ( 53, - - 51 ) + - - 78 * + 96 / 10 WHEN 13 / + 11 * + 77 + 15 THEN + ( + + COALESCE ( + + 38, 20 ) ) ELSE + - 73 * - 55 + COUNT( * ) * + 26 + - + CAST( NULL AS SIGNED ) * - 86 + - 73 END + SUM( DISTINCT - 64 ) THEN - 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-560
SELECT CASE 30 WHEN + NULLIF ( + - 64, + 68 ) * + CASE + 2 WHEN 32 THEN + NULLIF ( 53, - - 51 ) + - - 78 * + 96 / 10 WHEN 13 / + 11 * + 77 + 15 THEN + ( + + COALESCE ( + + 38, 20 ) ) ELSE + - 73 * - 55 + COUNT ( * ) * + 26 + - + CAST ( NULL AS INTEGER ) * - 86 + - 73 END + SUM ( DISTINCT - 64 ) THEN - 45 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-561
SELECT DISTINCT + + 48 - CAST( NULL AS SIGNED ) + ( + 60 ) + 38 * + 84, + 52 - + COUNT( * ) + 52 - + + COUNT( * ) * + 88 AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-561
SELECT DISTINCT + + 48 - CAST ( NULL AS INTEGER ) + ( + 60 ) + 38 * + 84, + 52 - + COUNT ( * ) + 52 - + + COUNT ( * ) * + 88 AS col0
----
NULL
15

onlyif mysql # DIV for integer division: 
query I rowsort label-562
SELECT ALL - + 86 DIV + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL - + 86 / + 89 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-563
SELECT DISTINCT + 85 AS col0, + 71 * COUNT( * ) * - + ( - 99 )
----
85
7029

skipif mysql # not compatible
query II rowsort label-563
SELECT DISTINCT + 85 AS col0, + 71 * COUNT ( * ) * - + ( - 99 )
----
85
7029

query II rowsort
SELECT - + 87 col2, - 69 + - 57 AS col0
----
-87
-126

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

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT + 23 DIV + NULLIF ( - 39, - 13 * - AVG ( DISTINCT + 41 ) + 34 ) - - - 71 * + + 15 + 55 AS col0
----
-1010

skipif mysql # not compatible
query I rowsort label-566
SELECT + 23 / + NULLIF ( - 39, - 13 * - AVG ( DISTINCT + 41 ) + 34 ) - - - 71 * + + 15 + 55 AS col0
----
-1010

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT - COUNT( DISTINCT + 87 ) * + 69 + - 11 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-567
SELECT - COUNT ( DISTINCT + 87 ) * + 69 + - 11 AS col2
----
-80

query I rowsort
SELECT ALL - 16 + + + 54 col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL 20 * - CAST( - 28 AS SIGNED ) - 68
----
492

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL 20 * - CAST ( - 28 AS INTEGER ) - 68
----
492

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT + 59 * - NULLIF ( + COUNT( * ), + 91 - 61 )
----
-59

skipif mysql # not compatible
query I rowsort label-570
SELECT + 59 * - NULLIF ( + COUNT ( * ), + 91 - 61 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT ( ( + ( NULLIF ( + COUNT( * ), - 19 ) ) ) ) * + + 7
----
7

skipif mysql # not compatible
query I rowsort label-571
SELECT ( ( + ( NULLIF ( + COUNT ( * ), - 19 ) ) ) ) * + + 7
----
7

query I rowsort
SELECT DISTINCT + 77 * - 60
----
-4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT ALL - COUNT( * ) + + NULLIF ( - - 36, + + CAST( 89 AS SIGNED ) )
----
35

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL - COUNT ( * ) + + NULLIF ( - - 36, + + CAST ( 89 AS INTEGER ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT DISTINCT SUM( + 20 ) + - 30 - 25 + + 75 + - COUNT( * ) + - 4 + - 62 * 74 AS col1
----
-4553

skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT SUM ( + 20 ) + - 30 - 25 + + 75 + - COUNT ( * ) + - 4 + - 62 * 74 AS col1
----
-4553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-575
SELECT COUNT( * ) + COALESCE ( - 20, + + 50 ) + COALESCE ( - + 11, - 98 ) DIV 40 * CAST( - 27 AS SIGNED ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-575
SELECT COUNT ( * ) + COALESCE ( - 20, + + 50 ) + COALESCE ( - + 11, - 98 ) / 40 * CAST ( - 27 AS INTEGER ) col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT + SUM( DISTINCT COALESCE ( - 36, 24 + - 98 * + 60 + + 88 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-576
SELECT + SUM ( DISTINCT COALESCE ( - 36, 24 + - 98 * + 60 + + 88 ) )
----
-36

query I rowsort
SELECT ALL 96 + 8 * 40 AS col1
----
416

query I rowsort
SELECT DISTINCT 55 + - + 78 + + 28 AS col2
----
5

query II rowsort
SELECT 39 * + + 97, 22 AS col1
----
3783
22

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT 45 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-580
SELECT 45 / + - 99
----
0

query I rowsort
SELECT ALL 49 * - 11 * - + 4
----
2156

query I rowsort
SELECT ALL ( - 91 ) - + 89
----
-180

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-584
SELECT 70 DIV + 62, 92 + + 76 AS col0
----
1
168

skipif mysql # not compatible
query II rowsort label-584
SELECT 70 / + 62, 92 + + 76 AS col0
----
1
168

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT DISTINCT 54 * - COUNT( ALL 49 ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT 54 * - COUNT ( ALL 49 ) col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-586
SELECT NULLIF ( 35, + CAST( - - 88 AS SIGNED ) ) + - 23 - + - ( COUNT( * ) ), + 41 - - - 79 AS col0
----
13
-38

skipif mysql # not compatible
query II rowsort label-586
SELECT NULLIF ( 35, + CAST ( - - 88 AS INTEGER ) ) + - 23 - + - ( COUNT ( * ) ), + 41 - - - 79 AS col0
----
13
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-587
SELECT CAST( - 60 AS SIGNED ) * 70 * - 30 - - 31 AS col0, - 54 DIV + CAST( + 83 AS SIGNED ) + - CAST( 18 AS SIGNED ) DIV + - 96 * + COUNT( * )
----
126031
0

skipif mysql # not compatible
query II rowsort label-587
SELECT CAST ( - 60 AS INTEGER ) * 70 * - 30 - - 31 AS col0, - 54 / + CAST ( + 83 AS INTEGER ) + - CAST ( 18 AS INTEGER ) / + - 96 * + COUNT ( * )
----
126031
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-588
SELECT 56 + + 30 + 10 + - 18 + - + 3 + + - CAST( NULL AS SIGNED ) * CAST( - 33 AS SIGNED ) * COUNT( * ) + + 70 AS col0, - 49
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-588
SELECT 56 + + 30 + 10 + - 18 + - + 3 + + - CAST ( NULL AS INTEGER ) * CAST ( - 33 AS INTEGER ) * COUNT ( * ) + + 70 AS col0, - 49
----
NULL
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT - COUNT( ALL - + 53 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-589
SELECT - COUNT ( ALL - + 53 ) col2
----
-1

query II rowsort
SELECT - ( - + 58 ), 81 col2
----
58
81

query I rowsort
SELECT + 44 - 69 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-592
SELECT ALL - 13 * - 64 + + - MAX( 57 ) - 19 * - 43 + + 57 + COUNT( * ) + + + 75 + + + 18 * + + 16 * - - 25 + - 30 - - - 82 * + COUNT( * ) col1, 73 + - 95 * + 76 AS col0
----
8813
-7147

skipif mysql # not compatible
query II rowsort label-592
SELECT ALL - 13 * - 64 + + - MAX ( 57 ) - 19 * - 43 + + 57 + COUNT ( * ) + + + 75 + + + 18 * + + 16 * - - 25 + - 30 - - - 82 * + COUNT ( * ) col1, 73 + - 95 * + 76 AS col0
----
8813
-7147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-593
SELECT - CASE - + ( - CAST( NULL AS SIGNED ) ) WHEN 4 THEN - + 48 + + 46 ELSE + 87 END * + NULLIF ( - COUNT( + 12 ), - 40 + + - 72 + 77 * 6 ) * - 25 AS col1, 88 AS col0
----
-2175
88

skipif mysql # not compatible
query II rowsort label-593
SELECT - CASE - + ( - CAST ( NULL AS INTEGER ) ) WHEN 4 THEN - + 48 + + 46 ELSE + 87 END * + NULLIF ( - COUNT ( + 12 ), - 40 + + - 72 + 77 * 6 ) * - 25 AS col1, 88 AS col0
----
-2175
88

query I rowsort
SELECT DISTINCT - 69 * 20 * 3 + 39 + - - 42 * 85
----
-531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT - CASE + 10 WHEN + 46 * + - COUNT( * ) THEN + + 39 WHEN - - CASE - COUNT( * ) WHEN + 24 + - ( - 39 ) + MAX( 18 ) THEN NULL ELSE - + COUNT( * ) + - 6 END + 7 + + CAST( 28 AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT - CASE + 10 WHEN + 46 * + - COUNT ( * ) THEN + + 39 WHEN - - CASE - COUNT ( * ) WHEN + 24 + - ( - 39 ) + MAX ( 18 ) THEN NULL ELSE - + COUNT ( * ) + - 6 END + 7 + + CAST ( 28 AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-596
SELECT + 38 + COUNT( * ) * + 45 + - - 74 + - 18 + + - 52 + COALESCE ( - 47, 3 - 67 + + 58 DIV ( + 95 ) * + - NULLIF ( 8, 21 ) DIV - - ( + 28 ) * - MIN( DISTINCT + + CASE WHEN 20 IS NULL THEN + 6 ELSE NULL END ) ) DIV + 94 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-596
SELECT + 38 + COUNT ( * ) * + 45 + - - 74 + - 18 + + - 52 + COALESCE ( - 47, 3 - 67 + + 58 / ( + 95 ) * + - NULLIF ( 8, 21 ) / - - ( + 28 ) * - MIN ( DISTINCT + + CASE WHEN 20 IS NULL THEN + 6 ELSE NULL END ) ) / + 94 AS col1
----
87

query I rowsort
SELECT + - 31 * + ( - - CASE + 72 WHEN + - 44 THEN 8 WHEN - + 76 THEN NULL END )
----
NULL

query I rowsort
SELECT - - 25 * - + 86 + - CASE - 77 WHEN - 50 * - 24 + - 2 THEN NULL ELSE 40 END AS col1
----
-2190

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-599
SELECT - COUNT( * ) + + 35 DIV + ( + - 2 ) AS col0, ( + 26 ) * + - MAX( + ( + + 68 ) ) + + 56 AS col0
----
-18
-1712

skipif mysql # not compatible
query II rowsort label-599
SELECT - COUNT ( * ) + + 35 / + ( + - 2 ) AS col0, ( + 26 ) * + - MAX ( + ( + + 68 ) ) + + 56 AS col0
----
-18
-1712

query I rowsort
SELECT ALL - + 91 + 74
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL - SUM( + 97 ) * + 88 + - 88 + + 91
----
-8533

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL - SUM ( + 97 ) * + 88 + - 88 + + 91
----
-8533

query I rowsort
SELECT DISTINCT - 77 * 22 + 32 * - 67 + 37 - 9
----
-3810

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT - + ( + 65 ) + + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-603
SELECT - + ( + 65 ) + + COUNT ( * )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-604
SELECT - 96 * + NULLIF ( + 24, - 14 - + + CASE + CAST( NULL AS SIGNED ) WHEN - 17 / - + ( + - 15 ) * 20 + - 49 + - COUNT( * ) / 39 THEN NULL ELSE - - COUNT( * ) END ) + - ( - - 35 ) + + + 82 + - - 73 AS col0
----
-2184

skipif mysql # not compatible
query I rowsort label-604
SELECT - 96 * + NULLIF ( + 24, - 14 - + + CASE + CAST ( NULL AS INTEGER ) WHEN - 17 / - + ( + - 15 ) * 20 + - 49 + - COUNT ( * ) / 39 THEN NULL ELSE - - COUNT ( * ) END ) + - ( - - 35 ) + + + 82 + - - 73 AS col0
----
-2184

query I rowsort
SELECT ALL + + 53 * - + 78 - + 75 + - 52 + NULLIF ( + + 34, 10 + 11 * + 18 * 1 ) AS col2
----
-4227

query I rowsort
SELECT NULLIF ( - 5, - 30 ) AS col2
----
-5

query I rowsort
SELECT ALL 14 * + + 18 + - - ( + 82 )
----
334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-608
SELECT - 51 DIV - COUNT( * ) + + 29 col0, CAST( NULL AS SIGNED ) AS col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-608
SELECT - 51 / - COUNT ( * ) + + 29 col0, CAST ( NULL AS INTEGER ) AS col0
----
80
NULL

query II rowsort
SELECT - COALESCE ( - - 50, + 95 * - - 76 + + - 44, + 92 ) * - ( + + 40 ) AS col2, 39 AS col2
----
2000
39

query I rowsort
SELECT - 97 + + 55 AS col0
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-611
SELECT - 9 + + + COUNT( * ) + - MIN( - + 81 ) * CASE + - 12 WHEN - 36 THEN NULL ELSE NULLIF ( - 28, + 82 ) * - 48 - + - NULLIF ( 14, + + 51 + + 92 ) + COALESCE ( - 23, - CASE + 80 WHEN - 18 + + ( - + 89 ) THEN NULL ELSE + 12 END + + 39 * + COALESCE ( 1, - - 64 * + 99, + ( 45 ) ) * + SUM( 37 ) * - ( COALESCE ( 27, 5 * + 23 ) ) + + 81 * ( COUNT( * ) DIV MAX( 97 ) ) + COUNT( * ) ) DIV - 14 END * + 38 AS col0
----
4182994

skipif mysql # not compatible
query I rowsort label-611
SELECT - 9 + + + COUNT ( * ) + - MIN ( - + 81 ) * CASE + - 12 WHEN - 36 THEN NULL ELSE NULLIF ( - 28, + 82 ) * - 48 - + - NULLIF ( 14, + + 51 + + 92 ) + COALESCE ( - 23, - CASE + 80 WHEN - 18 + + ( - + 89 ) THEN NULL ELSE + 12 END + + 39 * + COALESCE ( 1, - - 64 * + 99, + ( 45 ) ) * + SUM ( 37 ) * - ( COALESCE ( 27, 5 * + 23 ) ) + + 81 * ( COUNT ( * ) / MAX ( 97 ) ) + COUNT ( * ) ) / - 14 END * + 38 AS col0
----
4182994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-612
SELECT ALL - CAST( 18 AS SIGNED ) * - CASE + 26 WHEN - - 9 THEN NULL ELSE + + 9 END + + 95 + + 71 + 26 + + - ( - COUNT( * ) ) AS col0, - 47
----
355
-47

skipif mysql # not compatible
query II rowsort label-612
SELECT ALL - CAST ( 18 AS INTEGER ) * - CASE + 26 WHEN - - 9 THEN NULL ELSE + + 9 END + + 95 + + 71 + 26 + + - ( - COUNT ( * ) ) AS col0, - 47
----
355
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT CASE + 56 WHEN - 74 * + + 61 THEN - - COUNT( * ) ELSE + MIN( + 77 ) END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-613
SELECT CASE + 56 WHEN - 74 * + + 61 THEN - - COUNT ( * ) ELSE + MIN ( + 77 ) END AS col0
----
77

query I rowsort
SELECT DISTINCT 14 * + 11 * + - 77
----
-11858

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

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

query I rowsort
SELECT - 37 * + 79 AS col1
----
-2923

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT ALL - NULLIF ( COUNT( * ), - + 4 ) * - ( + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL - NULLIF ( COUNT ( * ), - + 4 ) * - ( + 95 ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-618
SELECT DISTINCT - ( - 64 ) * - 47 + + + CAST( NULL AS SIGNED ) * CASE + 92 WHEN CASE MIN( + CAST( NULL AS SIGNED ) ) WHEN NULLIF ( + 26, + - SUM( + 29 ) + - + SUM( - - 45 ) ) THEN NULL ELSE + CAST( - 57 AS SIGNED ) END THEN + 70 + 62 ELSE 86 END / ( - - 30 ) - - ( - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT - ( - 64 ) * - 47 + + + CAST ( NULL AS INTEGER ) * CASE + 92 WHEN CASE MIN ( + CAST ( NULL AS INTEGER ) ) WHEN NULLIF ( + 26, + - SUM ( + 29 ) + - + SUM ( - - 45 ) ) THEN NULL ELSE + CAST ( - 57 AS INTEGER ) END THEN + 70 + 62 ELSE 86 END / ( - - 30 ) - - ( - 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-619
SELECT + NULLIF ( + MAX( - 30 ), + 48 - - 2 ) + - COALESCE ( 7, + - 50 - + - 59 ) + - + 55 AS col1, 72 col1
----
-92
72

skipif mysql # not compatible
query II rowsort label-619
SELECT + NULLIF ( + MAX ( - 30 ), + 48 - - 2 ) + - COALESCE ( 7, + - 50 - + - 59 ) + - + 55 AS col1, 72 col1
----
-92
72

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

query I rowsort
SELECT + 25 + - + 14
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-622
SELECT COUNT( * ) AS col2, - 80 + NULLIF ( - - 32, - ( + COUNT( * ) ) * - 15 )
----
1
-48

skipif mysql # not compatible
query II rowsort label-622
SELECT COUNT ( * ) AS col2, - 80 + NULLIF ( - - 32, - ( + COUNT ( * ) ) * - 15 )
----
1
-48

query I rowsort
SELECT - + 3 * 31 AS col2
----
-93

query I rowsort
SELECT + + 98 + + 28 AS col0
----
126

query I rowsort
SELECT DISTINCT 68 * + 23
----
1564

query I rowsort
SELECT + 56 * 6 AS col1
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL 25 * - MIN( ALL - 26 ) AS col0
----
650

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL 25 * - MIN ( ALL - 26 ) AS col0
----
650

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT + 65 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-628
SELECT + 65 / 79
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( - - 72, 16 * + ( + 40 ) )
----
-72

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

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

query I rowsort
SELECT ALL - 40 * + 18 AS col1
----
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-632
SELECT + 22 * - + 82 * - + 91 * + CAST( + + 50 AS SIGNED ) col1
----
8208200

skipif mysql # not compatible
query I rowsort label-632
SELECT + 22 * - + 82 * - + 91 * + CAST ( + + 50 AS INTEGER ) col1
----
8208200

query I rowsort
SELECT + - 71 + + ( - 63 )
----
-134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT + + 2 * + 88 + 72 * + ( 1 ) + + 87 * - - 92 * - + 71 - - 28 + + 70 - - + 35 - 40 + + 96 * 95 - - NULLIF ( + 23, 43 + - 51 ) * + - 7 + + 31 + + MIN( CASE 97 WHEN - 20 * ( 40 ) + 84 + - - 14 THEN - + 65 WHEN + 75 * + - 19 * 48 * + 80 * + + 73 + 57 + + 28 - 25 THEN 8 END ) * - 14 * + COUNT( * ) * - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-635
SELECT + + 2 * + 88 + 72 * + ( 1 ) + + 87 * - - 92 * - + 71 - - 28 + + 70 - - + 35 - 40 + + 96 * 95 - - NULLIF ( + 23, 43 + - 51 ) * + - 7 + + 31 + + MIN ( CASE 97 WHEN - 20 * ( 40 ) + 84 + - - 14 THEN - + 65 WHEN + 75 * + - 19 * 48 * + 80 * + + 73 + 57 + + 28 - 25 THEN 8 END ) * - 14 * + COUNT ( * ) * - 20 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 46 + 48 + + + 26 + - 96
----
24

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

query I rowsort
SELECT DISTINCT + - 76 + 73 + 49
----
46

query I rowsort
SELECT DISTINCT - + 14 + 57
----
43

query I rowsort
SELECT DISTINCT + 33 + - 63 AS col0
----
-30

query I rowsort
SELECT ALL - 5 + 4 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL 27 * - CASE + 48 WHEN - COUNT( * ) THEN + + ( COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL 27 * - CASE + 48 WHEN - COUNT ( * ) THEN + + ( COUNT ( * ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT + ( + - 65 ) AS col0, 37 * - + 97
----
-65
-3589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-644
SELECT - COUNT( * ) DIV + MAX( ALL - + 26 ) * 21 + - 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-644
SELECT - COUNT ( * ) / + MAX ( ALL - + 26 ) * 21 + - 81 AS col2
----
-81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT + 97 * COUNT( * ) * - ( MIN( - 53 ) ) + + 11
----
5152

skipif mysql # not compatible
query I rowsort label-646
SELECT + 97 * COUNT ( * ) * - ( MIN ( - 53 ) ) + + 11
----
5152

query II rowsort
SELECT + 46 AS col0, 14 AS col1
----
46
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-648
SELECT + 3 / - COALESCE ( + CAST( NULL AS SIGNED ), - - COUNT( 34 ) * 81 * - - AVG ( + NULLIF ( + 86, 80 + + 6 ) ) * - 29 + 90 + - 78 + + COUNT( * ) * + COALESCE ( ( - - 49 ), 50 ) ) / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT + 3 / - COALESCE ( + CAST ( NULL AS INTEGER ), - - COUNT ( 34 ) * 81 * - - AVG ( + NULLIF ( + 86, 80 + + 6 ) ) * - 29 + 90 + - 78 + + COUNT ( * ) * + COALESCE ( ( - - 49 ), 50 ) ) / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-649
SELECT CAST( NULL AS SIGNED ) AS col0, COALESCE ( - COUNT( * ), - 6 ) * - 77 * 43 + 27
----
NULL
3338

skipif mysql # not compatible
query II rowsort label-649
SELECT CAST ( NULL AS INTEGER ) AS col0, COALESCE ( - COUNT ( * ), - 6 ) * - 77 * 43 + 27
----
NULL
3338

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

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

query I rowsort
SELECT - 49 * + - 43 AS col1
----
2107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-652
SELECT - NULLIF ( + - 51, + + COALESCE ( 59, CASE - + ( 17 ) WHEN - 98 THEN NULL WHEN + 2 THEN NULL WHEN + 30 THEN 35 + + 11 ELSE NULL END, - + 96 * + 83, + MIN( - 93 ) ) ) DIV + - 27 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-652
SELECT - NULLIF ( + - 51, + + COALESCE ( 59, CASE - + ( 17 ) WHEN - 98 THEN NULL WHEN + 2 THEN NULL WHEN + 30 THEN 35 + + 11 ELSE NULL END, - + 96 * + 83, + MIN ( - 93 ) ) ) / + - 27 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - COUNT( * ) * - 24 * - 76
----
-1824

skipif mysql # not compatible
query I rowsort label-653
SELECT - COUNT ( * ) * - 24 * - 76
----
-1824

query I rowsort
SELECT - 84 * 42 AS col2
----
-3528

query II rowsort
SELECT + 23 col2, + 30 * + COALESCE ( + - 39, - 8 ) + + 38 col2
----
23
-1132

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

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

query I rowsort
SELECT - 48 * - 14 AS col0
----
672

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

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

query I rowsort
SELECT ALL - ( + 88 ) * - 89
----
7832

query II rowsort
SELECT + 63 AS col2, - ( - 83 ) + + 63 AS col1
----
63
146

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL + COALESCE ( - - 20, MIN( - 87 ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL + COALESCE ( - - 20, MIN ( - 87 ) ) AS col2
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL + + 12 + - SUM( + - 94 ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + + 12 + - SUM ( + - 94 ) AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT + COUNT( * ) + - 5 + + ( - - 76 )
----
72

skipif mysql # not compatible
query I rowsort label-665
SELECT + COUNT ( * ) + - 5 + + ( - - 76 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-666
SELECT 89 col0, 62 + CAST( 10 AS SIGNED )
----
89
72

skipif mysql # not compatible
query II rowsort label-666
SELECT 89 col0, 62 + CAST ( 10 AS INTEGER )
----
89
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-667
SELECT - 19 AS col2, CAST( NULL AS SIGNED ) AS col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-667
SELECT - 19 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
-19
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + MAX( - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-669
SELECT + MAX ( - 98 )
----
-98

query II rowsort
SELECT 65 + 3 AS col0, + 95
----
68
95

query I rowsort
SELECT ALL + + 7 + 63 AS col0
----
70

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

query I rowsort
SELECT ALL + 4 + + ( + 82 ) AS col2
----
86

query II rowsort
SELECT 34 * + - 5, 30 AS col1
----
-170
30

query I rowsort
SELECT DISTINCT - ( + + 22 ) * 82 + 14
----
-1790

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT COUNT( * ) + - 60 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-676
SELECT COUNT ( * ) + - 60 AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-677
SELECT CAST( - 98 AS SIGNED ) + + - 87
----
-185

skipif mysql # not compatible
query I rowsort label-677
SELECT CAST ( - 98 AS INTEGER ) + + - 87
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-678
SELECT ALL CAST( - 88 AS SIGNED ) - + 71 + - SUM( - 1 ) * 93 * - CAST( NULL AS DECIMAL ) + - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL CAST ( - 88 AS INTEGER ) - + 71 + - SUM ( - 1 ) * 93 * - CAST ( NULL AS REAL ) + - - 5
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + 53, - 25 + 51 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-680
SELECT CAST( NULL AS SIGNED ) + - 72 - - COUNT( * ) - - 5 * + COUNT( * ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-680
SELECT CAST ( NULL AS INTEGER ) + - 72 - - COUNT ( * ) - - 5 * + COUNT ( * ) + 0
----
NULL

query I rowsort
SELECT ALL + 74 * - COALESCE ( + + 43, + - 49 ) AS col0
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT CASE + 56 WHEN COUNT( * ) THEN + 83 + - 99 ELSE NULL END * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT CASE + 56 WHEN COUNT ( * ) THEN + 83 + - 99 ELSE NULL END * + 70
----
NULL

query II rowsort
SELECT 45 + 81 AS col0, - 62 + + 58 + + 46 col2
----
126
42

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT 83 + - COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-684
SELECT 83 + - COUNT ( * ) AS col2
----
82

query I rowsort
SELECT 90 * 59
----
5310

query I rowsort
SELECT DISTINCT + 57 * + 24 col0
----
1368

query I rowsort
SELECT ( 2 ) * + NULLIF ( + + 14, - 20 + - 16 ) * - 5 + + 20 + + + 48
----
-72

query II rowsort
SELECT 31 + - - 42, + ( + 13 ) * + 46 * - COALESCE ( + 18, - 53 * - - 32 * - 59 ) AS col2
----
73
-10764

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT + NULLIF ( - 37, 61 ) DIV + ( 37 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-689
SELECT + NULLIF ( - 37, 61 ) / + ( 37 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL + - 60 + - - 80 - - 9 + 33 * + - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL + - 60 + - - 80 - - 9 + 33 * + - COUNT ( * )
----
-4

query II rowsort
SELECT - 47 + 71 AS col1, 12 col2
----
24
12

onlyif mysql # aggregate syntax: 
query II rowsort label-692
SELECT + 56 * COUNT( * ) * MAX( ALL + 58 ) + - COUNT( * ) AS col0, COUNT( * ) * ( 64 )
----
3247
64

skipif mysql # not compatible
query II rowsort label-692
SELECT + 56 * COUNT ( * ) * MAX ( ALL + 58 ) + - COUNT ( * ) AS col0, COUNT ( * ) * ( 64 )
----
3247
64

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL - + 47 + MIN( + 24 ) * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - + 47 + MIN ( + 24 ) * - COUNT ( * )
----
-71

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

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

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

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

query I rowsort
SELECT ALL - 99 + - + 13 * - 48 AS col2
----
525

query I rowsort
SELECT ALL + 8 + - 21 * 88 AS col1
----
-1840

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

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

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

query I rowsort
SELECT 2 + - - 1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-701
SELECT DISTINCT - COUNT( * ) - - 44 * COUNT( * ) DIV 88 + + 63 - + - COUNT( * ) * - 75 * + CASE + + 83 WHEN - 41 THEN NULL WHEN + 35 THEN 73 WHEN 60 THEN NULL ELSE - 93 + - 32 END - - - NULLIF ( - ( CAST( - 80 AS SIGNED ) ), + 15 * 39 * + COUNT( * ) + 54 - - ( CAST( - - COALESCE ( - + 74, COUNT( * ) + - - 76 * NULLIF ( + 71, 47 + + 1 ) ) AS SIGNED ) ) + - CAST( NULL AS SIGNED ) DIV 70 * + 81 * + - CAST( ( 58 ) AS SIGNED ) * - COUNT( * ) ) + + 90 AS col1
----
9447

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT - COUNT ( * ) - - 44 * COUNT ( * ) / 88 + + 63 - + - COUNT ( * ) * - 75 * + CASE + + 83 WHEN - 41 THEN NULL WHEN + 35 THEN 73 WHEN 60 THEN NULL ELSE - 93 + - 32 END - - - NULLIF ( - ( CAST ( - 80 AS INTEGER ) ), + 15 * 39 * + COUNT ( * ) + 54 - - ( CAST ( - - COALESCE ( - + 74, COUNT ( * ) + - - 76 * NULLIF ( + 71, 47 + + 1 ) ) AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) / 70 * + 81 * + - CAST ( ( 58 ) AS INTEGER ) * - COUNT ( * ) ) + + 90 AS col1
----
9447

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT - ( - + COUNT( * ) ) + - COUNT( * ) * - 32 * - 59 * 81
----
-152927

skipif mysql # not compatible
query I rowsort label-702
SELECT - ( - + COUNT ( * ) ) + - COUNT ( * ) * - 32 * - 59 * 81
----
-152927

query II rowsort
SELECT DISTINCT 83 AS col0, + COALESCE ( + - 0, - - 81 ) AS col0
----
83
0

query I rowsort
SELECT DISTINCT - 60 - - - 2
----
-62

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-707
SELECT DISTINCT + 88 DIV COUNT( ALL + 18 ), ( + - 37 ) + COALESCE ( + 2, - 73 ) AS col0
----
88
-35

skipif mysql # not compatible
query II rowsort label-707
SELECT DISTINCT + 88 / COUNT ( ALL + 18 ), ( + - 37 ) + COALESCE ( + 2, - 73 ) AS col0
----
88
-35

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

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL COUNT ( * ) * 96 AS col2
----
96

query II rowsort
SELECT ALL - 70 * - ( - + 20 ), 64 AS col1
----
-1400
64

onlyif mysql # DIV for integer division: 
query I rowsort label-710
SELECT 38 - - CASE - + ( + 31 ) WHEN + + 47 * - + 67 THEN + 73 + - + 30 ELSE - - ( + - 55 ) DIV 74 * - - 98 END AS col2
----
38

skipif mysql # not compatible
query I rowsort label-710
SELECT 38 - - CASE - + ( + 31 ) WHEN + + 47 * - + 67 THEN + 73 + - + 30 ELSE - - ( + - 55 ) / 74 * - - 98 END AS col2
----
38

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

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

query II rowsort
SELECT ALL - 19 AS col2, 89 * 50
----
-19
4450

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + COUNT( ALL 87 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-713
SELECT + COUNT ( ALL 87 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-714
SELECT SUM( CAST( NULL AS SIGNED ) ) * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-714
SELECT SUM ( CAST ( NULL AS INTEGER ) ) * + 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-715
SELECT DISTINCT + 98 * + 37 * + + COUNT( * ), - 76 AS col1
----
3626
-76

skipif mysql # not compatible
query II rowsort label-715
SELECT DISTINCT + 98 * + 37 * + + COUNT ( * ), - 76 AS col1
----
3626
-76

query II rowsort
SELECT ALL - 9 AS col0, - 38 + + 15 * + 85
----
-9
1237

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-718
SELECT + 56 DIV NULLIF ( - SUM( + 60 ), 41 ) - - 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-718
SELECT + 56 / NULLIF ( - SUM ( + 60 ), 41 ) - - 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT + ( - 79 ) * ( + + 89 ) - 80 * + + ( COUNT( * ) ) AS col0
----
-7111

skipif mysql # not compatible
query I rowsort label-719
SELECT + ( - 79 ) * ( + + 89 ) - 80 * + + ( COUNT ( * ) ) AS col0
----
-7111

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

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

query I rowsort
SELECT ALL + 4 * 63 * - 79 + 30 col0
----
-19878

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT + 44 * - + COALESCE ( ( + 33 ), + COUNT( * ), + 90 - 15, + 83 ) * - COUNT( * ) * 16 * - 36 AS col2
----
-836352

skipif mysql # not compatible
query I rowsort label-722
SELECT + 44 * - + COALESCE ( ( + 33 ), + COUNT ( * ), + 90 - 15, + 83 ) * - COUNT ( * ) * 16 * - 36 AS col2
----
-836352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT ALL - 25 * + + CAST( COUNT( * ) AS SIGNED ) + 34
----
9

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL - 25 * + + CAST ( COUNT ( * ) AS INTEGER ) + 34
----
9

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

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

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

query I rowsort
SELECT + ( + ( + 27 ) ) * + - 93 * 30 + + 54 - - 84 * - + 43 AS col1
----
-78888

onlyif mysql # aggregate syntax: 
query I rowsort label-727
SELECT ALL + 11 * + 54 + 50 + - 8 + NULLIF ( + 51, CASE + 13 WHEN - 1 * + + 67 THEN NULL WHEN - COUNT( * ) THEN - 19 WHEN - + 19 THEN + 35 END - - 17 ) + + AVG ( + + 58 ) + - CASE - + 22 WHEN 78 * 26 + - COALESCE ( CASE WHEN 28 = ( 48 ) + - + 95 * - + CASE + - 66 WHEN + 13 THEN + - 1 * - + ( + - 51 ) * 67 * 8 - COALESCE ( + 10, 0 * CASE - 22 WHEN 64 THEN NULL WHEN 0 + 32 * + 18 THEN NULL ELSE MIN( 53 ) END + COUNT( * ) ) * 41 ELSE NULL END + 82 THEN + 10 ELSE NULL END, + 98, ( + 36 ) * ( NULLIF ( 86, - 67 + + COUNT( * ) ) ), COUNT( * ) ) THEN NULL WHEN 17 THEN NULL WHEN 13 * 61 THEN + 63 ELSE NULL END - - 47 * + ( SUM( ALL 63 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL + 11 * + 54 + 50 + - 8 + NULLIF ( + 51, CASE + 13 WHEN - 1 * + + 67 THEN NULL WHEN - COUNT ( * ) THEN - 19 WHEN - + 19 THEN + 35 END - - 17 ) + + AVG ( + + 58 ) + - CASE - + 22 WHEN 78 * 26 + - COALESCE ( CASE WHEN 28 = ( 48 ) + - + 95 * - + CASE + - 66 WHEN + 13 THEN + - 1 * - + ( + - 51 ) * 67 * 8 - COALESCE ( + 10, 0 * CASE - 22 WHEN 64 THEN NULL WHEN 0 + 32 * + 18 THEN NULL ELSE MIN ( 53 ) END + COUNT ( * ) ) * 41 ELSE NULL END + 82 THEN + 10 ELSE NULL END, + 98, ( + 36 ) * ( NULLIF ( 86, - 67 + + COUNT ( * ) ) ), COUNT ( * ) ) THEN NULL WHEN 17 THEN NULL WHEN 13 * 61 THEN + 63 ELSE NULL END - - 47 * + ( SUM ( ALL 63 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-728
SELECT ALL CAST( NULL AS DECIMAL ) * - 68 + + + 74 + - 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL CAST ( NULL AS REAL ) * - 68 + + + 74 + - 89 AS col0
----
NULL

query I rowsort
SELECT - 47 * + 85
----
-3995

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-731
SELECT ALL 94 AS col1, COUNT( * )
----
94
1

skipif mysql # not compatible
query II rowsort label-731
SELECT ALL 94 AS col1, COUNT ( * )
----
94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT + 91 + COUNT( * ) + - - COALESCE ( - ( + + 82 ), + 73 ) + + + 17 + 18 * + 29
----
549

skipif mysql # not compatible
query I rowsort label-732
SELECT + 91 + COUNT ( * ) + - - COALESCE ( - ( + + 82 ), + 73 ) + + + 17 + 18 * + 29
----
549

onlyif mysql # DIV for integer division: 
query I rowsort label-733
SELECT - 74 DIV - - 71
----
-1

skipif mysql # not compatible
query I rowsort label-733
SELECT - 74 / - - 71
----
-1

query I rowsort
SELECT + 18 + 14 + + 69
----
101

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT - + COUNT( * ) + + 87 + 14 - - 35 col1
----
135

skipif mysql # not compatible
query I rowsort label-736
SELECT - + COUNT ( * ) + + 87 + 14 - - 35 col1
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-737
SELECT DISTINCT SUM( + 97 ), COUNT( ALL 18 ) * - 99 DIV + 17 AS col2
----
97
-5

skipif mysql # not compatible
query II rowsort label-737
SELECT DISTINCT SUM ( + 97 ), COUNT ( ALL 18 ) * - 99 / + 17 AS col2
----
97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT - COUNT( * ) + - 82 * - COALESCE ( 80, - NULLIF ( - + 33, + COUNT( * ) * - 63 + - 94 ) * + 4, + 24 ) col2
----
6559

skipif mysql # not compatible
query I rowsort label-738
SELECT - COUNT ( * ) + - 82 * - COALESCE ( 80, - NULLIF ( - + 33, + COUNT ( * ) * - 63 + - 94 ) * + 4, + 24 ) col2
----
6559

query I rowsort
SELECT ALL + 74 * 26 * - 47
----
-90428

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL + 83 * COUNT( * ) * - 98 * 44
----
-357896

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + 83 * COUNT ( * ) * - 98 * 44
----
-357896

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

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

query I rowsort
SELECT - 79 + - 83 AS col2
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-743
SELECT + 61 + COUNT( * ) * - 64 DIV + - 88 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-743
SELECT + 61 + COUNT ( * ) * - 64 / + - 88 AS col2
----
61

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

skipif mysql # not compatible
query I rowsort label-744
SELECT + 78 / + - 70
----
-1

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

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

query I rowsort
SELECT - 90 * 30 * 40
----
-108000

query I rowsort
SELECT DISTINCT - 66 + - 28 + 98 col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-748
SELECT ALL CASE + 55 WHEN 78 * - 56 THEN + 95 WHEN - 17 * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL CASE + 55 WHEN 78 * - 56 THEN + 95 WHEN - 17 * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT DISTINCT 59 DIV + 42 + - + 18
----
-17

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT 59 / + 42 + - + 18
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-750
SELECT - 42 DIV - + 89 * + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-750
SELECT - 42 / - + 89 * + 32 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-751
SELECT + 52 / - CAST( NULL AS SIGNED ) * - 97 + + ( + 53 ) * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT + 52 / - CAST ( NULL AS INTEGER ) * - 97 + + ( + 53 ) * + 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT DISTINCT 77 DIV - 99 + + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT 77 / - 99 + + 44 AS col0
----
44

query II rowsort
SELECT + 33 + + 55 + + ( - - 97 ) AS col1, - 27 * 35 AS col2
----
185
-945

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

query II rowsort
SELECT - 82 + 73 col0, - 62 + + + 26 AS col2
----
-9
-36

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

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

query I rowsort
SELECT - 97 * - + 9 + + + 45 col1
----
918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-758
SELECT ALL + COUNT( - + 74 ) * - - CAST( + 55 AS SIGNED ) * - 63 + + 19 + + CASE 49 WHEN - 11 * + 35 THEN - - 53 ELSE NULL END - + - 22 + 22 + 71 + + COUNT( - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL + COUNT ( - + 74 ) * - - CAST ( + 55 AS INTEGER ) * - 63 + + 19 + + CASE 49 WHEN - 11 * + 35 THEN - - 53 ELSE NULL END - + - 22 + 22 + 71 + + COUNT ( - 58 )
----
NULL

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

query I rowsort
SELECT + COALESCE ( - 54, - 23 * + ( - 98 ) + 78 ) + - 17
----
-71

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT - + 98 * - + CASE - - COUNT( ALL 67 ) WHEN + - COUNT( * ) * - 86 THEN NULL ELSE + + COUNT( * ) END + - 91 col2
----
7

skipif mysql # not compatible
query I rowsort label-763
SELECT - + 98 * - + CASE - - COUNT ( ALL 67 ) WHEN + - COUNT ( * ) * - 86 THEN NULL ELSE + + COUNT ( * ) END + - 91 col2
----
7

query I rowsort
SELECT ALL + 47 * 66 * - 13 col2
----
-40326

query I rowsort
SELECT - + 36 + - - 43 AS col2
----
7

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

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT MAX ( DISTINCT 19 )
----
19

query I rowsort
SELECT ALL + 87 * - 18 + - 14 AS col0
----
-1580

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT DISTINCT - NULLIF ( + CASE 4 WHEN COUNT( * ) THEN COUNT( * ) ELSE NULL END, + - 44 + 79 + 47 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT - NULLIF ( + CASE 4 WHEN COUNT ( * ) THEN COUNT ( * ) ELSE NULL END, + - 44 + 79 + 47 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL NULLIF ( + - COUNT( * ), + - 59 * + 94 + - 60 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL NULLIF ( + - COUNT ( * ), + - 59 * + 94 + - 60 ) AS col1
----
-1

query I rowsort
SELECT + 56 * - 74
----
-4144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL COUNT( - + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL COUNT ( - + 72 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT - NULLIF ( + 30, - - COALESCE ( + + 69, - - 71 + + 56 + + NULLIF ( - 61, NULLIF ( - 11, - 3 * - 35 ) ), + 44 * - 20 ) ) * + COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-773
SELECT - NULLIF ( + 30, - - COALESCE ( + + 69, - - 71 + + 56 + + NULLIF ( - 61, NULLIF ( - 11, - 3 * - 35 ) ), + 44 * - 20 ) ) * + COUNT ( * ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT + 20 DIV - 16 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-774
SELECT + 20 / - 16 AS col2
----
-1

query II rowsort
SELECT - 95 AS col2, + 66 AS col0
----
-95
66

onlyif mysql # DIV for integer division: 
query II rowsort label-776
SELECT DISTINCT + 70 + + - ( - + 17 ), 32 - + 65 - - 17 DIV - 83 AS col1
----
87
-33

skipif mysql # not compatible
query II rowsort label-776
SELECT DISTINCT + 70 + + - ( - + 17 ), 32 - + 65 - - 17 / - 83 AS col1
----
87
-33

query II rowsort
SELECT 95 AS col2, 21
----
95
21

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - COUNT( ALL 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-778
SELECT - COUNT ( ALL 4 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-779
SELECT ALL - 52 + + - 81 DIV - 13 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL - 52 + + - 81 / - 13 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT DISTINCT 13 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT 13 + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT - NULLIF ( - - COUNT( * ), COUNT( * ) ) + + AVG ( ALL + + 97 ) * 81 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), COUNT ( * ) ) + + AVG ( ALL + + 97 ) * 81 col1
----
NULL

query I rowsort
SELECT ALL - 53 + + 5
----
-48

query I rowsort
SELECT 70 * 73 * 24 AS col1
----
122640

query II rowsort
SELECT 32 AS col0, - 39 * 69
----
32
-2691

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT 44 * COUNT( * ) + - MAX( ALL 3 )
----
41

skipif mysql # not compatible
query I rowsort label-787
SELECT 44 * COUNT ( * ) + - MAX ( ALL 3 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT ALL - - COUNT( * ) + 74
----
75

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - - COUNT ( * ) + 74
----
75

query I rowsort
SELECT DISTINCT - 3 - 64 * - 88
----
5629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT + CAST( + 40 AS SIGNED ) * - + 53 - - 89 + + 56 + COALESCE ( - 30, - - 88 * + 59 * + 44 * + 20 - 65 )
----
-2005

skipif mysql # not compatible
query I rowsort label-790
SELECT + CAST ( + 40 AS INTEGER ) * - + 53 - - 89 + + 56 + COALESCE ( - 30, - - 88 * + 59 * + 44 * + 20 - 65 )
----
-2005

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL - 76 - - ( - 16 ) + + + MAX( - 37 ) - + - COUNT( * ) * + - 21
----
-150

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL - 76 - - ( - 16 ) + + + MAX ( - 37 ) - + - COUNT ( * ) * + - 21
----
-150

query I rowsort
SELECT DISTINCT 41 * - 11 + + 23 AS col0
----
-428

query I rowsort
SELECT + + COALESCE ( + ( - 27 ), + 32 - 9, - 59 * 94 - - + 24 + + + 96 * - 30 + 14 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT + 0 * - - SUM( ALL + + ( + - 66 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-794
SELECT + 0 * - - SUM ( ALL + + ( + - 66 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT ALL - - ( + NULLIF ( + MIN( - + 74 ), + 14 ) ) * - 30 * - + 22 AS col0
----
-48840

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL - - ( + NULLIF ( + MIN ( - + 74 ), + 14 ) ) * - 30 * - + 22 AS col0
----
-48840

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT DISTINCT - 27 DIV 22
----
-1

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT - 27 / 22
----
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-798
SELECT COUNT( * ) + + + 66 + - + 94 DIV - - 6 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-798
SELECT COUNT ( * ) + + + 66 + - + 94 / - - 6 AS col1
----
52

query II rowsort
SELECT ALL 37, 15 AS col1
----
37
15

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT DISTINCT 8 + - MAX( - - 46 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT 8 + - MAX ( - - 46 ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT ALL 67 + - - 98 + - 0 + 0 + + - CAST( NULL AS SIGNED ) * + COUNT( + 10 ) / CASE + + 36 WHEN - - 47 + + + COUNT( * ) THEN + 82 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL 67 + - - 98 + - 0 + 0 + + - CAST ( NULL AS INTEGER ) * + COUNT ( + 10 ) / CASE + + 36 WHEN - - 47 + + + COUNT ( * ) THEN + 82 END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT MIN( ALL - 45 ) + + SUM( DISTINCT + 99 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-802
SELECT MIN ( ALL - 45 ) + + SUM ( DISTINCT + 99 ) AS col0
----
54

query I rowsort
SELECT DISTINCT 73 + + 98
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-804
SELECT ALL 31 + - NULLIF ( - + 97, + 30 / - 79 + - SUM( ALL - + 61 ) + 49 ) * - 41 - - AVG ( DISTINCT 24 ) - CAST( NULL AS SIGNED ), 99 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-804
SELECT ALL 31 + - NULLIF ( - + 97, + 30 / - 79 + - SUM ( ALL - + 61 ) + 49 ) * - 41 - - AVG ( DISTINCT 24 ) - CAST ( NULL AS INTEGER ), 99 AS col2
----
NULL
99

query II rowsort
SELECT 86, - 81 AS col1
----
86
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-806
SELECT ALL 7 + + 2 col2, - MIN( DISTINCT 7 ) + - - 78 AS col1
----
9
71

skipif mysql # not compatible
query II rowsort label-806
SELECT ALL 7 + + 2 col2, - MIN ( DISTINCT 7 ) + - - 78 AS col1
----
9
71

query I rowsort
SELECT 18 + + - 8
----
10

query I rowsort
SELECT ( + 62 ) * - 47
----
-2914

query II rowsort
SELECT ALL 28, 13 col0
----
28
13

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

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT COUNT ( * ) / - + 8
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-811
SELECT 23 DIV - 30 * - - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-811
SELECT 23 / - 30 * - - 73 AS col2
----
0

query I rowsort
SELECT ALL + 16 * 22 AS col0
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT + - SUM( 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-813
SELECT + - SUM ( 18 ) col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-814
SELECT ALL - + 65 AS col2, + SUM( DISTINCT + 38 ) AS col1
----
-65
38

skipif mysql # not compatible
query II rowsort label-814
SELECT ALL - + 65 AS col2, + SUM ( DISTINCT + 38 ) AS col1
----
-65
38

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT - 25 DIV - 57 + 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-815
SELECT - 25 / - 57 + 50 AS col2
----
50

query I rowsort
SELECT - - 98 * + 61 - 97 AS col0
----
5881

query I rowsort
SELECT - 57 + 16
----
-41

query II rowsort
SELECT 72 * - ( - - ( + + 66 ) ) col0, 83 AS col2
----
-4752
83

query II rowsort
SELECT DISTINCT - 31 col1, 99
----
-31
99

query II rowsort
SELECT DISTINCT - - 72 AS col1, 64
----
72
64

onlyif mysql # aggregate syntax: 
query II rowsort label-821
SELECT ALL - 92 AS col2, + COUNT( * ) * 56 AS col1
----
-92
56

skipif mysql # not compatible
query II rowsort label-821
SELECT ALL - 92 AS col2, + COUNT ( * ) * 56 AS col1
----
-92
56

query I rowsort
SELECT + COALESCE ( - 27, 96 ) + 72
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT ALL + NULLIF ( 52, - - 45 ) * + ( 21 ) + + ( + 17 ) - - 26 * - + 76 * - ( + COUNT( * ) ) * + 30 AS col0
----
60389

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + NULLIF ( 52, - - 45 ) * + ( 21 ) + + ( + 17 ) - - 26 * - + 76 * - ( + COUNT ( * ) ) * + 30 AS col0
----
60389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-824
SELECT DISTINCT + ( 6 ) * + + ( - CAST( - 47 AS SIGNED ) ) col0
----
282

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT + ( 6 ) * + + ( - CAST ( - 47 AS INTEGER ) ) col0
----
282

query I rowsort
SELECT ALL - 79 + ( ( + 97 ) ) * - 46
----
-4541

query II rowsort
SELECT ALL + 24 * + - 92, 65 * 24 + - 97 AS col0
----
-2208
1463

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT 48 DIV + ( - 56 ) * 2 * - + 13
----
0

skipif mysql # not compatible
query I rowsort label-827
SELECT 48 / + ( - 56 ) * 2 * - + 13
----
0

query II rowsort
SELECT 58 * - 91 AS col1, 34 AS col2
----
-5278
34

query I rowsort
SELECT 93 + + 26 * - 28 * - - 43
----
-31211

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL - 52 + - COUNT( + 17 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL - 52 + - COUNT ( + 17 ) AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-831
SELECT ALL - CAST( 66 AS SIGNED ) * + + COUNT( * ) + - 34 AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-831
SELECT ALL - CAST ( 66 AS INTEGER ) * + + COUNT ( * ) + - 34 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT DISTINCT - 70 + NULLIF ( - 32, + - ( MIN( DISTINCT + 69 ) ) ) - 40 * 99 * + 21 * 8
----
-665382

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - 70 + NULLIF ( - 32, + - ( MIN ( DISTINCT + 69 ) ) ) - 40 * 99 * + 21 * 8
----
-665382

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-833
SELECT ALL CASE WHEN NOT NULL > + CAST( NULL AS DECIMAL ) THEN - + 34 + + 19 END / - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL CASE WHEN NOT NULL > + CAST ( NULL AS REAL ) THEN - + 34 + + 19 END / - 40
----
NULL

query I rowsort
SELECT DISTINCT + 7 + - - 75
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-835
SELECT ALL - 52 + + - 81 + + - CAST( NULL AS SIGNED ) * COUNT( * ) + - - 10 * - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL - 52 + + - 81 + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - - 10 * - 12 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-836
SELECT DISTINCT NULLIF ( - 48, + 14 - + + CAST( NULL AS SIGNED ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT NULLIF ( - 48, + 14 - + + CAST ( NULL AS INTEGER ) ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL 14 + + 46 * COUNT( - 7 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL 14 + + 46 * COUNT ( - 7 ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL NULLIF ( + 95, 20 + + - COUNT( * ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL NULLIF ( + 95, 20 + + - COUNT ( * ) ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-839
SELECT DISTINCT COUNT( * ) - ( + 92 ) AS col0, + COALESCE ( - 55, + 70, - 6 )
----
-91
-55

skipif mysql # not compatible
query II rowsort label-839
SELECT DISTINCT COUNT ( * ) - ( + 92 ) AS col0, + COALESCE ( - 55, + 70, - 6 )
----
-91
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT - NULLIF ( - 63, - - 43 * - - ( + MIN( + 66 ) ) ) col1
----
63

skipif mysql # not compatible
query I rowsort label-840
SELECT - NULLIF ( - 63, - - 43 * - - ( + MIN ( + 66 ) ) ) col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-841
SELECT + ( COALESCE ( + 24, 31 * - 58 + + 38 - + COUNT( * ) ) ) * - + CAST( NULL AS SIGNED ) * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT + ( COALESCE ( + 24, 31 * - 58 + + 38 - + COUNT ( * ) ) ) * - + CAST ( NULL AS INTEGER ) * - 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT ALL + 17 DIV - + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL + 17 / - + 65 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-843
SELECT DISTINCT NULLIF ( 52, + 68 + - AVG ( + ( - CAST( NULL AS SIGNED ) ) ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT NULLIF ( 52, + 68 + - AVG ( + ( - CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT - NULLIF ( - 32, + - CAST( - ( - 50 ) AS SIGNED ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-845
SELECT - NULLIF ( - 32, + - CAST ( - ( - 50 ) AS INTEGER ) ) AS col2
----
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-847
SELECT DISTINCT + SUM( + ( - 8 ) ) AS col2, + 83 * - COUNT( * ) / - 12 + 14 + + 23 + 13 * - CASE + 15 WHEN + CASE + NULLIF ( + COUNT( * ), + - CAST( - + 69 AS SIGNED ) ) WHEN - 86 * + - 13 THEN + 9 WHEN - 1 * 57 * - 68 * + CAST( - 26 AS SIGNED ) THEN + 99 ELSE NULL END / + ( - ( 29 ) ) THEN NULL WHEN + + 66 THEN 48 * - - AVG ( DISTINCT - + 58 ) END + + ( - COUNT( * ) ) * - 86
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-847
SELECT DISTINCT + SUM ( + ( - 8 ) ) AS col2, + 83 * - COUNT ( * ) / - 12 + 14 + + 23 + 13 * - CASE + 15 WHEN + CASE + NULLIF ( + COUNT ( * ), + - CAST ( - + 69 AS INTEGER ) ) WHEN - 86 * + - 13 THEN + 9 WHEN - 1 * 57 * - 68 * + CAST ( - 26 AS INTEGER ) THEN + 99 ELSE NULL END / + ( - ( 29 ) ) THEN NULL WHEN + + 66 THEN 48 * - - AVG ( DISTINCT - + 58 ) END + + ( - COUNT ( * ) ) * - 86
----
-8
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT + 32 + + 2 - 87 - 24 + - SUM( DISTINCT + 62 ) + + 89 DIV - 12
----
-146

skipif mysql # not compatible
query I rowsort label-848
SELECT + 32 + + 2 - 87 - 24 + - SUM ( DISTINCT + 62 ) + + 89 / - 12
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-849
SELECT + COUNT( * ) DIV - 4 * 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-849
SELECT + COUNT ( * ) / - 4 * 62 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-850
SELECT ALL - COUNT( ALL + - 30 ) DIV - + 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - COUNT ( ALL + - 30 ) / - + 9 AS col0
----
0

query II rowsort
SELECT + - COALESCE ( - 68, ( + 2 ), - - 65 ) col2, + 17
----
68
17

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

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + COUNT ( * ) / COUNT ( * ) * 2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-853
SELECT ALL 47 DIV + ( + 39 ) * + + COUNT( * ) + 76 + 46 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL 47 / + ( + 39 ) * + + COUNT ( * ) + 76 + 46 AS col2
----
123

query I rowsort
SELECT ALL + + 18 * - - 78
----
1404

query II rowsort
SELECT + + 63 * 57, + 67 AS col2
----
3591
67

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL - + 20 * - + 87 + ( COUNT( * ) ) AS col2
----
1741

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL - + 20 * - + 87 + ( COUNT ( * ) ) AS col2
----
1741

query I rowsort
SELECT ALL + ( + COALESCE ( 96, + - 92, 45 * - - 32 ) ) AS col1
----
96

query I rowsort
SELECT ALL - 78 * ( + 3 ) + 24 + - 29 AS col2
----
-239

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-859
SELECT + - CASE + 56 WHEN + ( 79 ) THEN - CAST( - - 95 AS DECIMAL ) + - 68 WHEN + + 91 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT + - CASE + 56 WHEN + ( 79 ) THEN - CAST ( - - 95 AS REAL ) + - 68 WHEN + + 91 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 28 * - 5 + + 1 AS col0
----
-139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT DISTINCT 76 * + 44 - + 99 * SUM( ALL 19 ) + + + 18 + + - 56
----
1425

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT 76 * + 44 - + 99 * SUM ( ALL 19 ) + + + 18 + + - 56
----
1425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT ALL 14 * + 76 / + 89 * - CAST( NULL AS SIGNED ) * + - 59 - + AVG ( - + 92 ) + + 33 * - 61 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL 14 * + 76 / + 89 * - CAST ( NULL AS INTEGER ) * + - 59 - + AVG ( - + 92 ) + + 33 * - 61 * + 44
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-864
SELECT - CAST( NULLIF ( 82, + 88 ) AS SIGNED ) * 52 + 29 * - 87 AS col1
----
-6787

skipif mysql # not compatible
query I rowsort label-864
SELECT - CAST ( NULLIF ( 82, + 88 ) AS INTEGER ) * 52 + 29 * - 87 AS col1
----
-6787

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT + ( 78 ) * COUNT( * ) - + - 54
----
132

skipif mysql # not compatible
query I rowsort label-865
SELECT + ( 78 ) * COUNT ( * ) - + - 54
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL COALESCE ( - - 96, + + COUNT( * ), 24 * + + NULLIF ( - - 32, - 61 * COALESCE ( NULLIF ( + ( 28 ), + 22 ), - - 50 ) + + 7 ) ) * 9 + 8
----
872

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL COALESCE ( - - 96, + + COUNT ( * ), 24 * + + NULLIF ( - - 32, - 61 * COALESCE ( NULLIF ( + ( 28 ), + 22 ), - - 50 ) + + 7 ) ) * 9 + 8
----
872

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-867
SELECT DISTINCT + 22 AS col1, CAST( NULL AS SIGNED ) * - 3 * - + 65 / - - 75 * - ( + 69 )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-867
SELECT DISTINCT + 22 AS col1, CAST ( NULL AS INTEGER ) * - 3 * - + 65 / - - 75 * - ( + 69 )
----
22
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-868
SELECT DISTINCT + ( + COALESCE ( + 7, + COUNT( DISTINCT - - 71 ) * - 36 * - + 20 DIV - AVG ( - 47 ), + + 60 * 73 * 70 + - 40 ) )
----
7

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT + ( + COALESCE ( + 7, + COUNT ( DISTINCT - - 71 ) * - 36 * - + 20 / - AVG ( - 47 ), + + 60 * 73 * 70 + - 40 ) )
----
7

query I rowsort
SELECT - 90 + 32 - - 37 + + - 38
----
-59

query I rowsort
SELECT - 96 - - + 93 AS col0
----
-3

query I rowsort
SELECT - 8 * 31
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL + COUNT( * ) - 14
----
-13

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + COUNT ( * ) - 14
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT SUM( - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-873
SELECT SUM ( - 21 )
----
-21

query I rowsort
SELECT - 60 + - 67 AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-875
SELECT DISTINCT + 31 * - + 67 DIV COUNT( * )
----
-2077

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT + 31 * - + 67 / COUNT ( * )
----
-2077

query I rowsort
SELECT ALL + 22 * - + 41 * - 7 AS col0
----
6314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-877
SELECT DISTINCT 7 DIV - 72 * + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-877
SELECT DISTINCT 7 / - 72 * + COUNT ( * ) AS col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL MAX( - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL MAX ( - 9 ) AS col2
----
-9

query I rowsort
SELECT - + 8 + + 73 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-881
SELECT CAST( NULL AS SIGNED ), 29 + + 44 DIV + + 95 col0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-881
SELECT CAST ( NULL AS INTEGER ), 29 + + 44 / + + 95 col0
----
NULL
29

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT - COUNT( * ) AS col1, MIN( 90 )
----
-1
90

skipif mysql # not compatible
query II rowsort label-883
SELECT - COUNT ( * ) AS col1, MIN ( 90 )
----
-1
90

query I rowsort
SELECT + COALESCE ( 44, - - 15 * + + 88 + 75 ) + - - 83
----
127

query I rowsort
SELECT ALL + 64 * + + 7
----
448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-886
SELECT - + 58 * - + CAST( NULL AS SIGNED ) + + 91, - 43 AS col0
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-886
SELECT - + 58 * - + CAST ( NULL AS INTEGER ) + + 91, - 43 AS col0
----
NULL
-43

query I rowsort
SELECT + + 53 * + 8 AS col0
----
424

query I rowsort
SELECT - NULLIF ( - + 92, + + 18 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-889
SELECT DISTINCT + + 50 + + MIN( DISTINCT 16 ) * 14 + CAST( - 58 AS SIGNED )
----
216

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + + 50 + + MIN ( DISTINCT 16 ) * 14 + CAST ( - 58 AS INTEGER )
----
216

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

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - + 87 * + COUNT ( * ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + 75 * + CASE + ( - 68 ) WHEN - + COUNT( * ) THEN + 87 ELSE - ( + 91 ) END
----
-6825

skipif mysql # not compatible
query I rowsort label-891
SELECT + 75 * + CASE + ( - 68 ) WHEN - + COUNT ( * ) THEN + 87 ELSE - ( + 91 ) END
----
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT DISTINCT - NULLIF ( 15, + 63 ) DIV - 76 * 96 + + 92 + + - 88 col0
----
4

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT - NULLIF ( 15, + 63 ) / - 76 * 96 + + 92 + + - 88 col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT DISTINCT + 2 DIV 46 + + 9 + - 40
----
-31

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT + 2 / 46 + + 9 + - 40
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-894
SELECT + - MAX( ALL 95 ) DIV - 90 + + 18 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-894
SELECT + - MAX ( ALL 95 ) / - 90 + + 18 AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-895
SELECT ALL - 87 DIV COUNT( * ) * + 70
----
-6090

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL - 87 / COUNT ( * ) * + 70
----
-6090

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

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

query I rowsort
SELECT DISTINCT 97 + 20 + + 41
----
158

query I rowsort
SELECT ALL 56 + 11 + - 34 AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-899
SELECT ALL 15 DIV + 10
----
1

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL 15 / + 10
----
1

query I rowsort
SELECT ALL - 52 - 1 * + 53
----
-105

query I rowsort
SELECT ALL 8 * + 10 * - - 7
----
560

query I rowsort
SELECT ( + 21 ) * + - 19 - - - 10
----
-409

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT DISTINCT COUNT( * ) * 31
----
31

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT COUNT ( * ) * 31
----
31

query I rowsort
SELECT 26 * + NULLIF ( + - 88, 23 + - 53 ) + + - ( - 89 ) AS col0
----
-2199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-905
SELECT 24 * - - ( + - 85 ) * CASE WHEN NOT ( NULL ) NOT BETWEEN - CAST( - - 55 AS SIGNED ) AND + COALESCE ( 75, + + 79 ) * - AVG ( ALL - 25 ) THEN + 81 ELSE - + 40 END + 40
----
81640

skipif mysql # not compatible
query I rowsort label-905
SELECT 24 * - - ( + - 85 ) * CASE WHEN NOT ( NULL ) NOT BETWEEN - CAST ( - - 55 AS INTEGER ) AND + COALESCE ( 75, + + 79 ) * - AVG ( ALL - 25 ) THEN + 81 ELSE - + 40 END + 40
----
81640

query I rowsort
SELECT 27 + - + 65 + - 30 * - 10 * + 31 col2
----
9262

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT DISTINCT 7 * COALESCE ( - + 73, - - 76 + - 53 ) AS col0, + COUNT( * ) AS col2
----
-511
1

skipif mysql # not compatible
query II rowsort label-907
SELECT DISTINCT 7 * COALESCE ( - + 73, - - 76 + - 53 ) AS col0, + COUNT ( * ) AS col2
----
-511
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-908
SELECT ALL 42 - + COALESCE ( - + 94, + SUM( COALESCE ( 86, - 89 * - 66 + + + 17 DIV + + 92, - COALESCE ( 45, - 8, CAST( - 79 AS SIGNED ) + + ( + 0 ), + 8 ) ) ) + + + 41 ) AS col1, + ( - + CASE - + 22 WHEN 27 * - COUNT( * ) THEN - 79 - - + 45 WHEN + 92 DIV + + 69 * + - 21 THEN - CAST( - 94 AS SIGNED ) END ) AS col1
----
136
NULL

skipif mysql # not compatible
query II rowsort label-908
SELECT ALL 42 - + COALESCE ( - + 94, + SUM ( COALESCE ( 86, - 89 * - 66 + + + 17 / + + 92, - COALESCE ( 45, - 8, CAST ( - 79 AS INTEGER ) + + ( + 0 ), + 8 ) ) ) + + + 41 ) AS col1, + ( - + CASE - + 22 WHEN 27 * - COUNT ( * ) THEN - 79 - - + 45 WHEN + 92 / + + 69 * + - 21 THEN - CAST ( - 94 AS INTEGER ) END ) AS col1
----
136
NULL

query I rowsort
SELECT 14 * - + 4
----
-56

query I rowsort
SELECT 27 * - - NULLIF ( + 20, + 61 ) col0
----
540

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

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

query I rowsort
SELECT 4 * - 5
----
-20

query I rowsort
SELECT DISTINCT - - 89 * + + 21
----
1869

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-915
SELECT - + CAST( - - 1 AS SIGNED ), - 0 col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-915
SELECT - + CAST ( - - 1 AS INTEGER ), - 0 col2
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT + 84 * - CAST( + 68 AS SIGNED ) AS col2
----
-5712

skipif mysql # not compatible
query I rowsort label-916
SELECT + 84 * - CAST ( + 68 AS INTEGER ) AS col2
----
-5712

query II rowsort
SELECT ( 99 ) AS col2, + 19 * 29 col0
----
99
551

query I rowsort
SELECT DISTINCT - - 97 * 87 AS col0
----
8439

query I rowsort
SELECT DISTINCT + 90 + - + 86 AS col0
----
4

query I rowsort
SELECT ALL - + 47 * ( 75 )
----
-3525

query I rowsort
SELECT DISTINCT + + 85 * - - 25
----
2125

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT DISTINCT + COUNT( * ) + + + 82 AS col1, COUNT( * )
----
83
1

skipif mysql # not compatible
query II rowsort label-922
SELECT DISTINCT + COUNT ( * ) + + + 82 AS col1, COUNT ( * )
----
83
1

query I rowsort
SELECT - NULLIF ( + - 31, + + 74 ) AS col1
----
31

query II rowsort
SELECT ALL - 41 + - 67 AS col2, - 22 col2
----
-108
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT ALL + + COUNT( 96 ) + COUNT( * ) * + - SUM( + + ( - 69 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + + COUNT ( 96 ) + COUNT ( * ) * + - SUM ( + + ( - 69 ) ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-926
SELECT - + CASE - 22 WHEN - 31 * 14 THEN COUNT( * ) WHEN + - MIN( ALL COALESCE ( - - 10, + 79 ) ) THEN NULLIF ( COUNT( * ), + AVG ( DISTINCT + - 15 ) + - COUNT( * ) ) END, 96 * - - 27 col2
----
NULL
2592

skipif mysql # not compatible
query II rowsort label-926
SELECT - + CASE - 22 WHEN - 31 * 14 THEN COUNT ( * ) WHEN + - MIN ( ALL COALESCE ( - - 10, + 79 ) ) THEN NULLIF ( COUNT ( * ), + AVG ( DISTINCT + - 15 ) + - COUNT ( * ) ) END, 96 * - - 27 col2
----
NULL
2592

query I rowsort
SELECT - 43 * - - 94 + 3
----
-4039

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-928
SELECT + 80 DIV + - COUNT( * ) - - COUNT( 46 )
----
-79

skipif mysql # not compatible
query I rowsort label-928
SELECT + 80 / + - COUNT ( * ) - - COUNT ( 46 )
----
-79

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-930
SELECT + MAX( ALL + 78 ) col2, 95 col1
----
78
95

skipif mysql # not compatible
query II rowsort label-930
SELECT + MAX ( ALL + 78 ) col2, 95 col1
----
78
95

query I rowsort
SELECT DISTINCT - 47 + 0 * - 93
----
-47

query I rowsort
SELECT DISTINCT + 89 + 88 AS col0
----
177

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL NULLIF ( - 5, - COUNT( * ) * - - 96 ) - + - 69
----
64

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL NULLIF ( - 5, - COUNT ( * ) * - - 96 ) - + - 69
----
64

query II rowsort
SELECT + 33 AS col1, + 51 + + + 61
----
33
112

query I rowsort
SELECT ALL 9 * + ( - 82 ) * + 20 AS col2
----
-14760

query II rowsort
SELECT 63 - - + 19 + 5 AS col1, - 0 AS col1
----
87
0

query I rowsort
SELECT 99 * 83 AS col0
----
8217

onlyif mysql # aggregate syntax: 
query II rowsort label-939
SELECT 79 AS col1, - 95 + COUNT( * )
----
79
-94

skipif mysql # not compatible
query II rowsort label-939
SELECT 79 AS col1, - 95 + COUNT ( * )
----
79
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT ALL COUNT( * ) - - NULLIF ( + - COUNT( + 48 ), - 93 * - - 38 + - NULLIF ( + - ( 48 ), 30 ) - + - 97 ) - + - 98
----
98

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL COUNT ( * ) - - NULLIF ( + - COUNT ( + 48 ), - 93 * - - 38 + - NULLIF ( + - ( 48 ), 30 ) - + - 97 ) - + - 98
----
98

query I rowsort
SELECT 83 * - 69 * 93 * + 24
----
-12782664

onlyif mysql # aggregate syntax: 
query II rowsort label-942
SELECT 60 AS col2, + 67 * - ( - 12 ) + + + COUNT( * ) * - 17
----
60
787

skipif mysql # not compatible
query II rowsort label-942
SELECT 60 AS col2, + 67 * - ( - 12 ) + + + COUNT ( * ) * - 17
----
60
787

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT + MAX( + 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-943
SELECT + MAX ( + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT COUNT( * ) - - 9 + + NULLIF ( - + 19, 96 ) * + MIN( DISTINCT + 3 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-944
SELECT COUNT ( * ) - - 9 + + NULLIF ( - + 19, 96 ) * + MIN ( DISTINCT + 3 ) col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-945
SELECT DISTINCT MIN( DISTINCT 47 ) DIV - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT MIN ( DISTINCT 47 ) / - + 7
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT 24 * MIN( ALL ( + 43 ) )
----
1032

skipif mysql # not compatible
query I rowsort label-946
SELECT 24 * MIN ( ALL ( + 43 ) )
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT - MAX( + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-947
SELECT - MAX ( + 28 )
----
-28

query I rowsort
SELECT 7 + - 45 AS col2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT 43 - + + ( + 56 ) DIV 62 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-949
SELECT 43 - + + ( + 56 ) / 62 AS col0
----
43

query I rowsort
SELECT ALL 89 * - + 5 AS col0
----
-445

query I rowsort
SELECT 52 - 98 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-952
SELECT DISTINCT + COUNT( * ) + 9 + CAST( NULL AS SIGNED ) / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT + COUNT ( * ) + 9 + CAST ( NULL AS INTEGER ) / - 98
----
NULL

query I rowsort
SELECT ALL - 47 + 72 + 51
----
76

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

skipif mysql # not compatible
query I rowsort label-954
SELECT 42 * - 43 + + + COUNT ( * ) AS col0
----
-1805

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT MAX( ALL + 67 ) + 76 AS col2, - 48
----
143
-48

skipif mysql # not compatible
query II rowsort label-955
SELECT MAX ( ALL + 67 ) + 76 AS col2, - 48
----
143
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-956
SELECT DISTINCT - 45 + ( - CASE + ( - CASE - 11 WHEN - + MAX( DISTINCT - 49 ) + - - COUNT( DISTINCT 8 ) THEN NULL WHEN + - ( + 40 ) + + COUNT( * ) * + 77 * - 59 / + 30 THEN NULL ELSE - 39 END ) WHEN + + 48 THEN NULL WHEN - ( MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) THEN 14 * + + 1 * + - 68 END ) / - MIN( - 66 ) * 18 * + - CAST( + - 50 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT - 45 + ( - CASE + ( - CASE - 11 WHEN - + MAX ( DISTINCT - 49 ) + - - COUNT ( DISTINCT 8 ) THEN NULL WHEN + - ( + 40 ) + + COUNT ( * ) * + 77 * - 59 / + 30 THEN NULL ELSE - 39 END ) WHEN + + 48 THEN NULL WHEN - ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) THEN 14 * + + 1 * + - 68 END ) / - MIN ( - 66 ) * 18 * + - CAST ( + - 50 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-957
SELECT ALL - - CAST( NULL AS SIGNED ) * - + ( - 72 ), + 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-957
SELECT ALL - - CAST ( NULL AS INTEGER ) * - + ( - 72 ), + 87 AS col2
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT MAX( ALL ( - ( - - 7 ) ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-958
SELECT MAX ( ALL ( - ( - - 7 ) ) ) AS col2
----
-7

query I rowsort
SELECT 2 + - - 82 - + 52
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-960
SELECT - 65, + 90 + + ( - MAX( - 5 ) ) + + NULLIF ( + 48, + ( + 80 ) ) col0
----
-65
143

skipif mysql # not compatible
query II rowsort label-960
SELECT - 65, + 90 + + ( - MAX ( - 5 ) ) + + NULLIF ( + 48, + ( + 80 ) ) col0
----
-65
143

query I rowsort
SELECT ALL + - 20 * + - 14 col0
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT NULLIF ( + 71, - COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-962
SELECT NULLIF ( + 71, - COUNT ( * ) )
----
71

query I rowsort
SELECT - 98 + - 13 AS col1
----
-111

query I rowsort
SELECT DISTINCT + + ( 38 ) * - - 22 AS col2
----
836

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL - SUM( - + 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - SUM ( - + 55 ) AS col1
----
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-967
SELECT DISTINCT + 18 - 14 + CAST( + + 80 AS SIGNED ) * - 4
----
-316

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT + 18 - 14 + CAST ( + + 80 AS INTEGER ) * - 4
----
-316

query I rowsort
SELECT ALL 21 * - - 41 * + + 12 * + 49 AS col2
----
506268

query I rowsort
SELECT - - NULLIF ( - + 10, + 67 ) + - 88 AS col1
----
-98

query I rowsort
SELECT - + 74 + - 62 AS col2
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ALL - 5 / 1 + + CASE + + 84 WHEN + 57 + - + 74 THEN - + 58 - - 10 WHEN - 51 * MAX( ALL - 86 ) THEN 76 END + + COUNT( DISTINCT + 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL - 5 / 1 + + CASE + + 84 WHEN + 57 + - + 74 THEN - + 58 - - 10 WHEN - 51 * MAX ( ALL - 86 ) THEN 76 END + + COUNT ( DISTINCT + 48 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-972
SELECT - CAST( NULL AS SIGNED ) - 73 / 56 * ( + + NULLIF ( - - MAX( + + 95 ), + 75 - - + 2 + - 54 + + - COUNT( 54 ) ) ) * - MAX( + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT - CAST ( NULL AS INTEGER ) - 73 / 56 * ( + + NULLIF ( - - MAX ( + + 95 ), + 75 - - + 2 + - 54 + + - COUNT ( 54 ) ) ) * - MAX ( + 64 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-973
SELECT - 91 + NULLIF ( + 20, - + 31 ) + 47 * - + 62, + COALESCE ( + 47, + - ( CAST( 74 AS SIGNED ) ) * + ( ( 90 ) ), - 91 ) * 37 + - 67 AS col2
----
-2985
1672

skipif mysql # not compatible
query II rowsort label-973
SELECT - 91 + NULLIF ( + 20, - + 31 ) + 47 * - + 62, + COALESCE ( + 47, + - ( CAST ( 74 AS INTEGER ) ) * + ( ( 90 ) ), - 91 ) * 37 + - 67 AS col2
----
-2985
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT 26 * 12 + + + 99 + COUNT( * )
----
412

skipif mysql # not compatible
query I rowsort label-974
SELECT 26 * 12 + + + 99 + COUNT ( * )
----
412

query I rowsort
SELECT ALL 37 * - 70 - + ( + - 19 ) * - - 0 AS col1
----
-2590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-976
SELECT - COALESCE ( 7, + COUNT( - - ( - + 84 ) ) * + + ( - 20 ) ) DIV - 43 + + - 58 * - 87 + + - COUNT( * ) * - + 23
----
5069

skipif mysql # not compatible
query I rowsort label-976
SELECT - COALESCE ( 7, + COUNT ( - - ( - + 84 ) ) * + + ( - 20 ) ) / - 43 + + - 58 * - 87 + + - COUNT ( * ) * - + 23
----
5069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-977
SELECT - CAST( 70 AS SIGNED ) + - CAST( NULL AS DECIMAL ) * + ( NULLIF ( + - 8, - AVG ( ALL + 59 ) + - - 73 + - - ( + 78 ) * - ( + - ( 45 ) ) - - 43 * 16 ) ) * 10 + COUNT( * ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-977
SELECT - CAST ( 70 AS INTEGER ) + - CAST ( NULL AS REAL ) * + ( NULLIF ( + - 8, - AVG ( ALL + 59 ) + - - 73 + - - ( + 78 ) * - ( + - ( 45 ) ) - - 43 * 16 ) ) * 10 + COUNT ( * ) + + 1
----
NULL

query I rowsort
SELECT + 49 * - 20 AS col2
----
-980

onlyif mysql # aggregate syntax: 
query II rowsort label-979
SELECT ALL + COUNT( * ) col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-979
SELECT ALL + COUNT ( * ) col1, - COUNT ( * )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT - 68 * + 89 * COALESCE ( + 33, - ( - 71 ) + - 27, + COUNT( * ) ) + + 3 * + 6 + - - 48 AS col2
----
-199650

skipif mysql # not compatible
query I rowsort label-980
SELECT - 68 * + 89 * COALESCE ( + 33, - ( - 71 ) + - 27, + COUNT ( * ) ) + + 3 * + 6 + - - 48 AS col2
----
-199650

onlyif mysql # aggregate syntax: 
query II rowsort label-981
SELECT DISTINCT + 50 AS col1, - 6 + + COALESCE ( 94, - - COUNT( * ) ) * + 22 * COUNT( * ) * + ( + - 5 ) * 72 + - 63 - - COUNT( * ) - - + 79
----
50
-744469

skipif mysql # not compatible
query II rowsort label-981
SELECT DISTINCT + 50 AS col1, - 6 + + COALESCE ( 94, - - COUNT ( * ) ) * + 22 * COUNT ( * ) * + ( + - 5 ) * 72 + - 63 - - COUNT ( * ) - - + 79
----
50
-744469

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL + 63 * + SUM( - 9 ) * COUNT( DISTINCT - + 8 )
----
-567

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + 63 * + SUM ( - 9 ) * COUNT ( DISTINCT - + 8 )
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT + COUNT( * ) * - 31 * - 25
----
775

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT + COUNT ( * ) * - 31 * - 25
----
775

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT - 77 * 36 * + + COUNT( * ) * 18
----
-49896

skipif mysql # not compatible
query I rowsort label-984
SELECT - 77 * 36 * + + COUNT ( * ) * 18
----
-49896

query II rowsort
SELECT + 68, + 89 col2
----
68
89

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT MAX( - 51 ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-986
SELECT MAX ( - 51 ) col2
----
-51

query I rowsort
SELECT ALL - 92 * - ( 61 ) + + + 29
----
5641

query II rowsort
SELECT ALL - 58 AS col0, 66 * - 13 * + 0 * + + 27
----
-58
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-990
SELECT - 53 AS col2, ( - 62 ) + + + ( + + CAST( NULL AS SIGNED ) ) - - - 59 AS col1
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-990
SELECT - 53 AS col2, ( - 62 ) + + + ( + + CAST ( NULL AS INTEGER ) ) - - - 59 AS col1
----
-53
NULL

query I rowsort
SELECT DISTINCT - 52 * 59 * + + 57 + 11 + - 7 AS col0
----
-174872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-992
SELECT + MAX( ALL + CAST( NULL AS SIGNED ) ) - - 91 + 62 * + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) - - 91 + 62 * + - 85
----
NULL

query I rowsort
SELECT ALL 25 * + ( - + 71 )
----
-1775

onlyif mysql # aggregate syntax: 
query II rowsort label-994
SELECT ALL + 74, MIN( ALL 5 ) AS col1
----
74
5

skipif mysql # not compatible
query II rowsort label-994
SELECT ALL + 74, MIN ( ALL 5 ) AS col1
----
74
5

onlyif mysql # aggregate syntax: 
query II rowsort label-995
SELECT - - COUNT( * ), 93 * - 22 + - 26 AS col1
----
1
-2072

skipif mysql # not compatible
query II rowsort label-995
SELECT - - COUNT ( * ), 93 * - 22 + - 26 AS col1
----
1
-2072

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

query I rowsort
SELECT + - 69 * - 12 * + 60
----
49680

query II rowsort
SELECT - - 7 AS col2, ( 29 )
----
7
29

query I rowsort
SELECT + + 94 - - 41 + + + 70 AS col2
----
205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT ALL CASE - + 19 WHEN COUNT( * ) * - 53 + + - 76 THEN + NULLIF ( - 43, + - 89 - - 92 + + 70 * 4 ) * - CAST( + 40 AS SIGNED ) + - 70 WHEN + + MAX( CAST( NULL AS SIGNED ) ) + 57 * 39 THEN 5 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL CASE - + 19 WHEN COUNT ( * ) * - 53 + + - 76 THEN + NULLIF ( - 43, + - 89 - - 92 + + 70 * 4 ) * - CAST ( + 40 AS INTEGER ) + - 70 WHEN + + MAX ( CAST ( NULL AS INTEGER ) ) + 57 * 39 THEN 5 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 40 ) * 92
----
3680

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT - 44 AS col2, COUNT( + 49 )
----
-44
1

skipif mysql # not compatible
query II rowsort label-1002
SELECT - 44 AS col2, COUNT ( + 49 )
----
-44
1

query I rowsort
SELECT ALL + 39 - + 88 AS col2
----
-49

query I rowsort
SELECT + 15 + + 19 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1005
SELECT ALL 54 DIV COUNT( * ) * + - 69
----
-3726

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL 54 / COUNT ( * ) * + - 69
----
-3726

query I rowsort
SELECT - 97 + - 78 + + 68 * 35 * 97 AS col0
----
230685

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL NULLIF ( + 30, + + 74 * COUNT( * ) ) col2
----
30

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL NULLIF ( + 30, + + 74 * COUNT ( * ) ) col2
----
30

query II rowsort
SELECT DISTINCT + 48 * - 14 AS col1, 83 col0
----
-672
83

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT + CAST ( NULL AS INTEGER ) / + - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT DISTINCT MIN( + 35 ) * 37 AS col0
----
1295

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT MIN ( + 35 ) * 37 AS col0
----
1295

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1012
SELECT ALL + CAST( + 83 AS SIGNED ) AS col0, - 29 AS col1
----
83
-29

skipif mysql # not compatible
query II rowsort label-1012
SELECT ALL + CAST ( + 83 AS INTEGER ) AS col0, - 29 AS col1
----
83
-29

query II rowsort
SELECT - 14 * - 41 col0, - 86
----
574
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1014
SELECT ALL - 13 DIV 84 + + + 4 + + 77 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - 13 / 84 + + + 4 + + 77 AS col1
----
81

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

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

query I rowsort
SELECT - 90 * - 45 AS col2
----
4050

query I rowsort
SELECT + NULLIF ( 72, + + 75 * 61 ) + - + 94 * - 50 + - + 44
----
4728

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1018
SELECT 68 * 90 * MAX( DISTINCT + 80 ) DIV COUNT( * ) + - 9 + + 31, + 55 AS col1
----
489622
55

skipif mysql # not compatible
query II rowsort label-1018
SELECT 68 * 90 * MAX ( DISTINCT + 80 ) / COUNT ( * ) + - 9 + + 31, + 55 AS col1
----
489622
55

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

query I rowsort
SELECT - 54 * - 87
----
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT + SUM( DISTINCT + + 29 ) * - + 21 AS col2
----
-609

skipif mysql # not compatible
query I rowsort label-1021
SELECT + SUM ( DISTINCT + + 29 ) * - + 21 AS col2
----
-609

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

query I rowsort
SELECT ALL + CASE - 48 WHEN + 78 / + 98 THEN + - 53 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT + COUNT( * ) * + - 66 + + 44 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT + COUNT ( * ) * + - 66 + + 44 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL 43 * COUNT( DISTINCT + + 77 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL 43 * COUNT ( DISTINCT + + 77 ) AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1026
SELECT ALL + NULLIF ( + CAST( + ( - 3 ) AS SIGNED ), 84 * + ( - 28 ) ) col1, 95
----
-3
95

skipif mysql # not compatible
query II rowsort label-1026
SELECT ALL + NULLIF ( + CAST ( + ( - 3 ) AS INTEGER ), 84 * + ( - 28 ) ) col1, 95
----
-3
95

query I rowsort
SELECT + 49 * + - ( + - 93 ) + + - 55
----
4502

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL - - 67 * + ( 61 ) + + + COUNT( * ) AS col1
----
4088

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL - - 67 * + ( 61 ) + + + COUNT ( * ) AS col1
----
4088

query I rowsort
SELECT - 70 + + + 63
----
-7

query I rowsort
SELECT + 39 * - + 54
----
-2106

query I rowsort
SELECT ALL + + 28 * - - 35 * + 90 + - 16
----
88184

onlyif mysql # aggregate syntax: 
query II rowsort label-1032
SELECT DISTINCT - MAX( ALL + 61 ), 39 AS col0
----
-61
39

skipif mysql # not compatible
query II rowsort label-1032
SELECT DISTINCT - MAX ( ALL + 61 ), 39 AS col0
----
-61
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1033
SELECT ALL + CAST( - 17 AS SIGNED ) AS col1, 89
----
-17
89

skipif mysql # not compatible
query II rowsort label-1033
SELECT ALL + CAST ( - 17 AS INTEGER ) AS col1, 89
----
-17
89

query I rowsort
SELECT + 19 + - + 53 col1
----
-34

query II rowsort
SELECT ( 19 ) + 43 * + 91 * + 29, 20 AS col1
----
113496
20

query I rowsort
SELECT ALL 72 * + 79 col2
----
5688

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT ALL 12 DIV + 16 col0
----
0

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL 12 / + 16 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1038
SELECT DISTINCT - 10 DIV + 58 + + SUM( DISTINCT + 21 ) - + 71 DIV - 73 * COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - 10 / + 58 + + SUM ( DISTINCT + 21 ) - + 71 / - 73 * COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + ( + - 64 ) + - 30 + + - COALESCE ( COUNT( + + 44 ), - 52 ) - + + 52 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-1039
SELECT + ( + - 64 ) + - 30 + + - COALESCE ( COUNT ( + + 44 ), - 52 ) - + + 52 AS col0
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT DISTINCT CAST( - - ( - 14 ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT CAST ( - - ( - 14 ) AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL - SUM( - 97 ) * ( - 11 ) AS col1
----
-1067

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL - SUM ( - 97 ) * ( - 11 ) AS col1
----
-1067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1042
SELECT + 8 + NULLIF ( + 16, - + 8 + - + ( + 39 ) + - - CAST( - MIN( - 21 ) AS SIGNED ) ) + - + CAST( NULL AS SIGNED ) + 6 + + 3 + + - NULLIF ( 37, + 51 ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1042
SELECT + 8 + NULLIF ( + 16, - + 8 + - + ( + 39 ) + - - CAST ( - MIN ( - 21 ) AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) + 6 + + 3 + + - NULLIF ( 37, + 51 ) * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT 93 + + MAX( 20 )
----
113

skipif mysql # not compatible
query I rowsort label-1043
SELECT 93 + + MAX ( 20 )
----
113

query II rowsort
SELECT 95 AS col2, 77 * 4 * - 42 + + - 83 AS col1
----
95
-13019

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT 99 + - 82 * - ( - COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-1045
SELECT 99 + - 82 * - ( - COUNT ( * ) )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1046
SELECT 76 AS col0, 46 + - 11 * - - CAST( NULL AS SIGNED ) AS col0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-1046
SELECT 76 AS col0, 46 + - 11 * - - CAST ( NULL AS INTEGER ) AS col0
----
76
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1047
SELECT ALL COUNT( * ) * + + NULLIF ( COALESCE ( - - COUNT( * ), - 74 DIV + 63 ), - 72 * - COUNT( * ) + + 14 + - + 36 + - COUNT( * ) + ( + 66 ) DIV + CAST( - - 16 AS DECIMAL ) + 37 * - + 54 + - ( + 87 ) * + - 68 + 98 DIV COUNT( - + 73 ) * 54 + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL COUNT ( * ) * + + NULLIF ( COALESCE ( - - COUNT ( * ), - 74 / + 63 ), - 72 * - COUNT ( * ) + + 14 + - + 36 + - COUNT ( * ) + ( + 66 ) / + CAST ( - - 16 AS REAL ) + 37 * - + 54 + - ( + 87 ) * + - 68 + 98 / COUNT ( - + 73 ) * 54 + COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ( 34 ) + - ( + COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-1048
SELECT ( 34 ) + - ( + COUNT ( * ) )
----
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT COUNT( * ) + + 86 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-1050
SELECT COUNT ( * ) + + 86 AS col2
----
87

query II rowsort
SELECT DISTINCT - 59, 89 AS col1
----
-59
89

query I rowsort
SELECT - 72 * 89 * - + 46 + 44
----
294812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1053
SELECT - 78 * + ( + + 54 ) * + + COALESCE ( - + 31, + 39 + 16 DIV + COUNT( * ) ) + - COUNT( * ) * + COUNT( * ) + + - 4
----
130567

skipif mysql # not compatible
query I rowsort label-1053
SELECT - 78 * + ( + + 54 ) * + + COALESCE ( - + 31, + 39 + 16 / + COUNT ( * ) ) + - COUNT ( * ) * + COUNT ( * ) + + - 4
----
130567

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL - ( - COUNT( * ) ) + NULLIF ( + 13, - 10 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL - ( - COUNT ( * ) ) + NULLIF ( + 13, - 10 ) AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT DISTINCT 77 DIV + 36
----
2

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT 77 / + 36
----
2

query I rowsort
SELECT DISTINCT - COALESCE ( 75, 7 + - - 76 )
----
-75

query II rowsort
SELECT ALL - COALESCE ( - 51, - 50 ), 17 col1
----
51
17

query I rowsort
SELECT 52 + 79
----
131

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT DISTINCT - COALESCE ( - - COALESCE ( 3, - 26, + + SUM( ( + - 31 ) ) + + 96 ), COUNT( * ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT - COALESCE ( - - COALESCE ( 3, - 26, + + SUM ( ( + - 31 ) ) + + 96 ), COUNT ( * ) ) AS col0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-1061
SELECT ( + 54 ) + - 4 AS col2, + ( 56 ) * + 24 - + 96 DIV - 94 + + + 87 col1
----
50
1432

skipif mysql # not compatible
query II rowsort label-1061
SELECT ( + 54 ) + - 4 AS col2, + ( 56 ) * + 24 - + 96 / - 94 + + + 87 col1
----
50
1432

query I rowsort
SELECT CASE + 23 WHEN - 28 THEN 21 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + - 53 * + - 32 + 66 AS col0
----
1762

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT + 51 + - 19 - - 99 * + MAX( - - 46 ) * - 35 + - 42 AS col0
----
-159400

skipif mysql # not compatible
query I rowsort label-1064
SELECT + 51 + - 19 - - 99 * + MAX ( - - 46 ) * - 35 + - 42 AS col0
----
-159400

query I rowsort
SELECT ALL - 33 - + - 27 AS col2
----
-6

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

query I rowsort
SELECT ALL + - 0 * 3
----
0

query II rowsort
SELECT ALL 34, + 17 * - - 63 AS col2
----
34
1071

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT - MAX( 34 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1069
SELECT - MAX ( 34 ) AS col1
----
-34

query I rowsort
SELECT 70 * 18
----
1260

query I rowsort
SELECT ALL - 81 * 29
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT MIN( + ( + + 92 ) )
----
92

skipif mysql # not compatible
query I rowsort label-1072
SELECT MIN ( + ( + + 92 ) )
----
92

query I rowsort
SELECT 46 + - 56 + - 37 * - 17 + + ( - 93 )
----
526

onlyif mysql # DIV for integer division: 
query I rowsort label-1074
SELECT 49 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-1074
SELECT 49 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT - MAX( + 41 ) + - 41 + + 70
----
-12

skipif mysql # not compatible
query I rowsort label-1075
SELECT - MAX ( + 41 ) + - 41 + + 70
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1076
SELECT ALL - - 8 + - 92 DIV + COALESCE ( + + 75, - 37 * - + COUNT( * ) + - + 41, + 41 - + 96 )
----
7

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL - - 8 + - 92 / + COALESCE ( + + 75, - 37 * - + COUNT ( * ) + - + 41, + 41 - + 96 )
----
7

query II rowsort
SELECT 2 - + 1, 12 * + 55 col0
----
1
660

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT ALL 32 DIV - ( 99 )
----
0

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL 32 / - ( 99 )
----
0

query I rowsort
SELECT 8 * 94 * - 31
----
-23312

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

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

query I rowsort
SELECT NULLIF ( - + 41, AVG ( DISTINCT - - 13 ) - 71 ) * - - 76 AS col1
----
-3116

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL - NULLIF ( 63, + 20 + 79 ) + - COUNT( * ) - 46 * - 16
----
672

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL - NULLIF ( 63, + 20 + 79 ) + - COUNT ( * ) - 46 * - 16
----
672

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1085
SELECT 98 DIV NULLIF ( - COUNT( DISTINCT - 27 ), 11 - - COUNT( * ) ) * CAST( + COALESCE ( + COUNT( * ), + 7 + 70 ) AS SIGNED ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1085
SELECT 98 / NULLIF ( - COUNT ( DISTINCT - 27 ), 11 - - COUNT ( * ) ) * CAST ( + COALESCE ( + COUNT ( * ), + 7 + 70 ) AS INTEGER ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-1086
SELECT COUNT( * ) + + 52 - + 3 + + 86, 13 * MIN( DISTINCT + 89 ) AS col2
----
136
1157

skipif mysql # not compatible
query II rowsort label-1086
SELECT COUNT ( * ) + + 52 - + 3 + + 86, 13 * MIN ( DISTINCT + 89 ) AS col2
----
136
1157

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT ALL ( - + 98 ) * 21 DIV + + 19 + + + 25
----
-83

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL ( - + 98 ) * 21 / + + 19 + + + 25
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1088
SELECT CAST( NULL AS DECIMAL ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1088
SELECT CAST ( NULL AS REAL ) * 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT - MIN( ALL 17 ) AS col2, + 33 + - 15 * 62 * 98 + + 92
----
-17
-91015

skipif mysql # not compatible
query II rowsort label-1089
SELECT - MIN ( ALL 17 ) AS col2, + 33 + - 15 * 62 * 98 + + 92
----
-17
-91015

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT ALL + 9 * COUNT( * ) + + COUNT( * ) col2
----
10

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL + 9 * COUNT ( * ) + + COUNT ( * ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL 25 * NULLIF ( + + 5, - 75 ) * COUNT( DISTINCT - 15 ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL 25 * NULLIF ( + + 5, - 75 ) * COUNT ( DISTINCT - 15 ) AS col0
----
125

query I rowsort
SELECT ALL - 41 * - 7
----
287

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

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

query I rowsort
SELECT DISTINCT 71 * + 5 * 12 AS col0
----
4260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT DISTINCT ( 27 ) * - - 81 - + + COUNT( * ) / + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT ( 27 ) * - - 81 - + + COUNT ( * ) / + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1096
SELECT SUM( DISTINCT 64 ) AS col0, 68 + + + 36
----
64
104

skipif mysql # not compatible
query II rowsort label-1096
SELECT SUM ( DISTINCT 64 ) AS col0, 68 + + + 36
----
64
104

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT COALESCE ( + 20, + + SUM( DISTINCT + 17 ) + - SUM( - 22 ) + 53 + 50 ) + + 73 * 45
----
3305

skipif mysql # not compatible
query I rowsort label-1097
SELECT COALESCE ( + 20, + + SUM ( DISTINCT + 17 ) + - SUM ( - 22 ) + 53 + 50 ) + + 73 * 45
----
3305

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT NULLIF ( 33, 43 + + 85 + + ( 50 ) + + AVG ( NULLIF ( + + 68, 51 ) ) * + 98 * 64 * - COUNT( ALL 59 ) + SUM( COALESCE ( + + 31, + 13, 62 ) ) * 81 ) * - 42
----
-1386

skipif mysql # not compatible
query I rowsort label-1098
SELECT NULLIF ( 33, 43 + + 85 + + ( 50 ) + + AVG ( NULLIF ( + + 68, 51 ) ) * + 98 * 64 * - COUNT ( ALL 59 ) + SUM ( COALESCE ( + + 31, + 13, 62 ) ) * 81 ) * - 42
----
-1386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1099
SELECT ALL + COUNT( 42 ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + COUNT ( 42 ) / + 82
----
0

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

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

query I rowsort
SELECT ALL + 42 * - 52 - 18 AS col2
----
-2202

query I rowsort
SELECT + 61 * 75 + - 89 + 27 - 74 * 56 * 33 AS col0
----
-132239

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT + CASE + - COALESCE ( + 18, + 63 - 86 - + CASE 92 WHEN + COALESCE ( - - 37, - CASE + + 71 WHEN - 12 + - - 72 THEN 5 END ) THEN 6 WHEN ( - SUM( DISTINCT + 73 ) ) * 38 + - 18 / 27 + - + 0 THEN NULL ELSE NULL END + + - COUNT( * ) * - 23 ) WHEN + 70 THEN NULL WHEN - 91 + + COUNT( * ) THEN NULL ELSE + - 83 END * - + SUM( DISTINCT - 7 ) + 11 * + MIN( 49 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1103
SELECT + CASE + - COALESCE ( + 18, + 63 - 86 - + CASE 92 WHEN + COALESCE ( - - 37, - CASE + + 71 WHEN - 12 + - - 72 THEN 5 END ) THEN 6 WHEN ( - SUM ( DISTINCT + 73 ) ) * 38 + - 18 / 27 + - + 0 THEN NULL ELSE NULL END + + - COUNT ( * ) * - 23 ) WHEN + 70 THEN NULL WHEN - 91 + + COUNT ( * ) THEN NULL ELSE + - 83 END * - + SUM ( DISTINCT - 7 ) + 11 * + MIN ( 49 ) AS col1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT + CAST( 24 AS SIGNED ) * - 99 AS col1
----
-2376

skipif mysql # not compatible
query I rowsort label-1104
SELECT + CAST ( 24 AS INTEGER ) * - 99 AS col1
----
-2376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT ALL 49 DIV + ( - - 11 ) - + - COUNT( DISTINCT + 80 ) + - 71 * + 72 - - - NULLIF ( NULLIF ( + + 46, - + COUNT( * ) ), + 56 ) AS col2
----
-5153

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL 49 / + ( - - 11 ) - + - COUNT ( DISTINCT + 80 ) + - 71 * + 72 - - - NULLIF ( NULLIF ( + + 46, - + COUNT ( * ) ), + 56 ) AS col2
----
-5153

query I rowsort
SELECT + 88 - 22 * + 39 AS col0
----
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT + ( - COUNT( * ) ) * 24 * - 65
----
1560

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT + ( - COUNT ( * ) ) * 24 * - 65
----
1560

onlyif mysql # aggregate syntax: 
query II rowsort label-1108
SELECT ALL + COALESCE ( ( + + 95 ), + 42 * - 48 + - - 20, 68 ) AS col2, - CASE - 81 WHEN COUNT( * ) + + 38 THEN NULL WHEN COUNT( * ) THEN + + 29 END
----
95
NULL

skipif mysql # not compatible
query II rowsort label-1108
SELECT ALL + COALESCE ( ( + + 95 ), + 42 * - 48 + - - 20, 68 ) AS col2, - CASE - 81 WHEN COUNT ( * ) + + 38 THEN NULL WHEN COUNT ( * ) THEN + + 29 END
----
95
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT DISTINCT 76 * - 2 DIV + COALESCE ( COUNT( ALL 66 ), + 12 )
----
-152

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT 76 * - 2 / + COALESCE ( COUNT ( ALL 66 ), + 12 )
----
-152

query I rowsort
SELECT + + 41 * + 48 + - 55 + + 14 AS col1
----
1927

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

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

query I rowsort
SELECT + - 46 + - 22 - 69 - - 42 * - - 80 * ( + 71 )
----
238423

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT COUNT( * ) * + 12 * - 93 - ( - 70 ) AS col2, + 45 * + 70 + + 36 AS col0
----
-1046
3186

skipif mysql # not compatible
query II rowsort label-1113
SELECT COUNT ( * ) * + 12 * - 93 - ( - 70 ) AS col2, + 45 * + 70 + + 36 AS col0
----
-1046
3186

query II rowsort
SELECT + 77 * + 80 + - 83 - - + 37 * + 35 * 82 * + - 97, - 39 * + 24 col1
----
-10294353
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT - 51 - - - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-1115
SELECT - 51 - - - COUNT ( * )
----
-52

query I rowsort
SELECT - 65 + - 75
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL - 86 + + 35 - - SUM( ALL + + 4 ) * + 27 + 26
----
83

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL - 86 + + 35 - - SUM ( ALL + + 4 ) * + 27 + 26
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL - + MAX( - 95 ) + + - 8 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL - + MAX ( - 95 ) + + - 8 AS col0
----
87

query I rowsort
SELECT ALL COALESCE ( 59, - - 19 )
----
59

query I rowsort
SELECT DISTINCT - 36 + + 94 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - 97 + + ( + - 66 ) * - COUNT( * ) * - + ( + 42 ) AS col0
----
-2869

skipif mysql # not compatible
query I rowsort label-1121
SELECT - 97 + + ( + - 66 ) * - COUNT ( * ) * - + ( + 42 ) AS col0
----
-2869

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

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

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT MIN ( DISTINCT - 67 )
----
-67

query I rowsort
SELECT DISTINCT - 99 + + 81
----
-18

query I rowsort
SELECT DISTINCT - 27 * - 87 AS col0
----
2349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT - CAST( NULL AS SIGNED ) + - + NULLIF ( - COUNT( * ), + CASE + 79 WHEN - 38 + + 74 + + 68 * 68 THEN - + 0 + + 86 END ) + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT - CAST ( NULL AS INTEGER ) + - + NULLIF ( - COUNT ( * ), + CASE + 79 WHEN - 38 + + 74 + + 68 * 68 THEN - + 0 + + 86 END ) + - 48 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1127
SELECT - 84 DIV CAST( + 7 AS SIGNED ) AS col0, 44 * - + 90 AS col1
----
-12
-3960

skipif mysql # not compatible
query II rowsort label-1127
SELECT - 84 / CAST ( + 7 AS INTEGER ) AS col0, 44 * - + 90 AS col1
----
-12
-3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1128
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - CASE + 28 WHEN + 83 THEN NULL WHEN + ( MIN( + + 31 ) ) THEN - - ( ( - CASE CASE + COUNT( ALL 65 ) WHEN - 85 THEN 83 + + - 7 WHEN - 18 THEN CASE - - AVG ( DISTINCT + 65 ) WHEN + - 39 THEN + 12 WHEN - 51 / AVG ( ALL 58 ) * + COUNT( * ) * 99 * - ( COALESCE ( + + 22, + - NULLIF ( + ( - NULLIF ( + 81, + COALESCE ( - 86, + CASE - COUNT( * ) WHEN - 97 THEN + + 20 ELSE NULL END, - + 10 ) * - + NULLIF ( - + 37, + 56 / + 19 ) + - CAST( NULL AS SIGNED ) ) ), - COALESCE ( - 77, NULLIF ( CASE - COALESCE ( 5, CAST( + 93 AS SIGNED ) * 69 - 95 * 10, + 60 * - 82 + + 16, + CAST( NULL AS DECIMAL ) ) WHEN + MIN( - 5 ) THEN CASE 65 WHEN + 44 THEN - 9 WHEN 72 * 10 THEN NULL ELSE + 66 + - 45 END * + 10 WHEN ( + NULLIF ( - 37, 95 ) ) + - 58 / + 30 THEN 91 * COUNT( * ) END, 65 ) * + 39 ) ) + COUNT( * ) ) ) * - 22 THEN - COUNT( * ) END - MIN( DISTINCT 67 ) END WHEN - 3 THEN NULL ELSE 82 END ) ) WHEN - 15 THEN 99 / 27 ELSE - 93 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - CASE + 28 WHEN + 83 THEN NULL WHEN + ( MIN ( + + 31 ) ) THEN - - ( ( - CASE CASE + COUNT ( ALL 65 ) WHEN - 85 THEN 83 + + - 7 WHEN - 18 THEN CASE - - AVG ( DISTINCT + 65 ) WHEN + - 39 THEN + 12 WHEN - 51 / AVG ( ALL 58 ) * + COUNT ( * ) * 99 * - ( COALESCE ( + + 22, + - NULLIF ( + ( - NULLIF ( + 81, + COALESCE ( - 86, + CASE - COUNT ( * ) WHEN - 97 THEN + + 20 ELSE NULL END, - + 10 ) * - + NULLIF ( - + 37, + 56 / + 19 ) + - CAST ( NULL AS INTEGER ) ) ), - COALESCE ( - 77, NULLIF ( CASE - COALESCE ( 5, CAST ( + 93 AS INTEGER ) * 69 - 95 * 10, + 60 * - 82 + + 16, + CAST ( NULL AS REAL ) ) WHEN + MIN ( - 5 ) THEN CASE 65 WHEN + 44 THEN - 9 WHEN 72 * 10 THEN NULL ELSE + 66 + - 45 END * + 10 WHEN ( + NULLIF ( - 37, 95 ) ) + - 58 / + 30 THEN 91 * COUNT ( * ) END, 65 ) * + 39 ) ) + COUNT ( * ) ) ) * - 22 THEN - COUNT ( * ) END - MIN ( DISTINCT 67 ) END WHEN - 3 THEN NULL ELSE 82 END ) ) WHEN - 15 THEN 99 / 27 ELSE - 93 END AS col0
----
NULL

query I rowsort
SELECT ALL - 82 + + 18
----
-64

query I rowsort
SELECT - 31 * 77
----
-2387

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT - 25 + - 2 * COUNT( * ) * + + 64 AS col2
----
-153

skipif mysql # not compatible
query I rowsort label-1132
SELECT - 25 + - 2 * COUNT ( * ) * + + 64 AS col2
----
-153

query I rowsort
SELECT DISTINCT 36 - - 59 AS col1
----
95

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1136
SELECT ALL 77 * - 17 * - COALESCE ( + + 93, + 31 + + 15, - - 18 DIV + + 26 ) * CAST( SUM( DISTINCT + 12 ) AS SIGNED ) AS col1
----
1460844

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL 77 * - 17 * - COALESCE ( + + 93, + 31 + + 15, - - 18 / + + 26 ) * CAST ( SUM ( DISTINCT + 12 ) AS INTEGER ) AS col1
----
1460844

query I rowsort
SELECT ALL 35 * - ( 95 ) AS col0
----
-3325

query I rowsort
SELECT + 47 + 97
----
144

query I rowsort
SELECT + 59 + 86
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1140
SELECT + CASE COALESCE ( CAST( 91 AS SIGNED ), 58 / - 80 + 71, - 22 ) WHEN - 39 THEN NULL WHEN 64 THEN NULL ELSE + 0 END
----
0

skipif mysql # not compatible
query I rowsort label-1140
SELECT + CASE COALESCE ( CAST ( 91 AS INTEGER ), 58 / - 80 + 71, - 22 ) WHEN - 39 THEN NULL WHEN 64 THEN NULL ELSE + 0 END
----
0

query I rowsort
SELECT DISTINCT - 93 * 37 col1
----
-3441

onlyif mysql # DIV for integer division: 
query I rowsort label-1142
SELECT 11 DIV - 36 + + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1142
SELECT 11 / - 36 + + 88 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT ALL 17 * + MAX( 37 )
----
629

skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL 17 * + MAX ( 37 )
----
629

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - 20
----
NULL

query I rowsort
SELECT + 81 + + 50
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT CASE - CASE COUNT( * ) WHEN COUNT( * ) THEN 21 * 79 END WHEN 56 * 1 THEN NULL ELSE 67 * + 73 END
----
4891

skipif mysql # not compatible
query I rowsort label-1148
SELECT CASE - CASE COUNT ( * ) WHEN COUNT ( * ) THEN 21 * 79 END WHEN 56 * 1 THEN NULL ELSE 67 * + 73 END
----
4891

query I rowsort
SELECT 12 * 35 + 94 * 28 AS col0
----
3052

query I rowsort
SELECT - 33 + - 74
----
-107

query I rowsort
SELECT ALL + 14 * 41 + + 94 AS col2
----
668

query I rowsort
SELECT DISTINCT 11 * 87 + 91
----
1048

query I rowsort
SELECT + 39 + - 45
----
-6

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

skipif mysql # not compatible
query I rowsort label-1154
SELECT + 97 * ( + 21 * COUNT ( * ) ) AS col1
----
2037

query I rowsort
SELECT ALL 86 * ( + 40 ) + 20 AS col0
----
3460

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL - 37 * + 50 + + CASE 95 + - 34 / - ( + 74 ) WHEN - COUNT( * ) * - 69 - - 75 THEN - 73 ELSE + 30 * + COALESCE ( + ( 49 ), 42, - NULLIF ( + 79, + 36 + ( 21 ) ) ) END
----
-380

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL - 37 * + 50 + + CASE 95 + - 34 / - ( + 74 ) WHEN - COUNT ( * ) * - 69 - - 75 THEN - 73 ELSE + 30 * + COALESCE ( + ( 49 ), 42, - NULLIF ( + 79, + 36 + ( 21 ) ) ) END
----
-380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT + 85 - + CASE CAST( NULL AS SIGNED ) WHEN + 7 / ( 9 ) + COUNT( * ) THEN 80 + 40 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT + 85 - + CASE CAST ( NULL AS INTEGER ) WHEN + 7 / ( 9 ) + COUNT ( * ) THEN 80 + 40 WHEN COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT + 61 - 99 AS col2
----
-38

query I rowsort
SELECT ALL COALESCE ( 28, - 49 )
----
28

query I rowsort
SELECT ALL COALESCE ( 70, + 20 ) - + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT ( + COALESCE ( + SUM( 38 ), + 53 ) )
----
38

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT ( + COALESCE ( + SUM ( 38 ), + 53 ) )
----
38

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

query I rowsort
SELECT - 7 - 56 * 59
----
-3311

query I rowsort
SELECT - 84 - 49 * 11 AS col1
----
-623

query I rowsort
SELECT ALL COALESCE ( 91, + ( - 31 ), 98 )
----
91

query I rowsort
SELECT + 72 * - 98 AS col2
----
-7056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL + CAST( - COALESCE ( 15, + 85 ) AS SIGNED ) * + COUNT( CAST( - 43 AS SIGNED ) * + 66 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL + CAST ( - COALESCE ( 15, + 85 ) AS INTEGER ) * + COUNT ( CAST ( - 43 AS INTEGER ) * + 66 ) AS col0
----
-15

query I rowsort
SELECT 52 * 56 AS col0
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT MIN( DISTINCT - 72 ) * + COALESCE ( 59 + + 24, - 13 )
----
-5976

skipif mysql # not compatible
query I rowsort label-1169
SELECT MIN ( DISTINCT - 72 ) * + COALESCE ( 59 + + 24, - 13 )
----
-5976

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

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL 9 * + COUNT ( * ) col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1171
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL - + COALESCE ( 27, - SUM( - 74 ) ) + MAX( DISTINCT 32 )
----
5

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL - + COALESCE ( 27, - SUM ( - 74 ) ) + MAX ( DISTINCT 32 )
----
5

query I rowsort
SELECT 32 + 10
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1174
SELECT - CAST( + 31 AS SIGNED ) DIV 4
----
-7

skipif mysql # not compatible
query I rowsort label-1174
SELECT - CAST ( + 31 AS INTEGER ) / 4
----
-7

query I rowsort
SELECT - 36 + 26 AS col2
----
-10

query I rowsort
SELECT 22 * 68 AS col2
----
1496

query I rowsort
SELECT - 31 * 11 + + 60 * + 26 AS col0
----
1219

query I rowsort
SELECT ALL + 19 + + 19
----
38

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

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

query I rowsort
SELECT DISTINCT + 91 + 41
----
132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL + 69 + COUNT( * ) * - 56 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL + 69 + COUNT ( * ) * - 56 AS col1
----
13

query I rowsort
SELECT 93 + 31 AS col0
----
124

query I rowsort
SELECT DISTINCT + + 72 * 82
----
5904

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

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

query I rowsort
SELECT ALL 83 + + 49
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT - 52 + COUNT( * ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1187
SELECT - 52 + COUNT ( * ) AS col2
----
-51

query I rowsort
SELECT 1 + + 74 + 31 * - 13 AS col1
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT 81 * + 18 - NULLIF ( + 82, COUNT( * ) + 26 ) AS col1
----
1376

skipif mysql # not compatible
query I rowsort label-1189
SELECT 81 * + 18 - NULLIF ( + 82, COUNT ( * ) + 26 ) AS col1
----
1376

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1191
SELECT COALESCE ( + 91, 76 + 50, 34 DIV - CAST( 99 AS SIGNED ) ) * 67 AS col2
----
6097

skipif mysql # not compatible
query I rowsort label-1191
SELECT COALESCE ( + 91, 76 + 50, 34 / - CAST ( 99 AS INTEGER ) ) * 67 AS col2
----
6097

query I rowsort
SELECT DISTINCT CASE + 94 WHEN 80 THEN - ( + 8 ) END - + 64 AS col1
----
NULL

query I rowsort
SELECT ALL 2 * + 61 * 46
----
5612

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ( COUNT( 61 ) ) + CASE NULLIF ( COUNT( * ), - 75 ) + COUNT( * ) WHEN 44 * 47 + + 81 THEN + 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT ( COUNT ( 61 ) ) + CASE NULLIF ( COUNT ( * ), - 75 ) + COUNT ( * ) WHEN 44 * 47 + + 81 THEN + 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT COUNT( * ) + - - 4 * 43
----
173

skipif mysql # not compatible
query I rowsort label-1195
SELECT COUNT ( * ) + - - 4 * 43
----
173

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1196
SELECT DISTINCT CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1197
SELECT ALL NULLIF ( 12, ( 78 ) ) * CASE ( 99 ) WHEN NULLIF ( COUNT( 67 ), - 1 * + 29 - + CAST( 62 AS SIGNED ) ) THEN NULL WHEN + 63 THEN 88 * 20 WHEN + 49 THEN + 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL NULLIF ( 12, ( 78 ) ) * CASE ( 99 ) WHEN NULLIF ( COUNT ( 67 ), - 1 * + 29 - + CAST ( 62 AS INTEGER ) ) THEN NULL WHEN + 63 THEN 88 * 20 WHEN + 49 THEN + 79 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT 33 + - COUNT( * ) + - 91
----
-59

skipif mysql # not compatible
query I rowsort label-1199
SELECT 33 + - COUNT ( * ) + - 91
----
-59

query I rowsort
SELECT 71 * - 94
----
-6674

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT COALESCE ( 46, 39 * + 49 ) + CAST( NULL AS SIGNED ) * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT COALESCE ( 46, 39 * + 49 ) + CAST ( NULL AS INTEGER ) * + 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL - 19 / - + 81 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - 19 / - + 81 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 87 * + 63
----
5481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1204
SELECT ALL - 10 DIV + SUM( 42 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - 10 / + SUM ( 42 ) col0
----
0

query I rowsort
SELECT 58 + - 66 * - 18
----
1246

query I rowsort
SELECT ALL + 47 + + 96 + - 18 AS col2
----
125

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT + 38 * COALESCE ( 68, + COUNT( - 46 ), + 81 ) * 60
----
155040

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT + 38 * COALESCE ( 68, + COUNT ( - 46 ), + 81 ) * 60
----
155040

query I rowsort
SELECT DISTINCT - 47 + - - 60
----
13

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

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

query I rowsort
SELECT - 68 + - + 85 + + 36 AS col2
----
-117

query I rowsort
SELECT ALL + 14 + + 94
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT + - NULLIF ( 5, + SUM( ALL + ( 66 ) ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1213
SELECT + - NULLIF ( 5, + SUM ( ALL + ( 66 ) ) ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL - + MAX( DISTINCT 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - + MAX ( DISTINCT 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL + COUNT( - NULLIF ( 16, - 38 * - NULLIF ( COALESCE ( + 31, - 42, 64 ), + 47 * - 61 - 82 ) ) ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL + COUNT ( - NULLIF ( 16, - 38 * - NULLIF ( COALESCE ( + 31, - 42, 64 ), + 47 * - 61 - 82 ) ) ) * COUNT ( * )
----
1

query I rowsort
SELECT + 34 * + 81 AS col2
----
2754

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT - 83 DIV COALESCE ( 41, + 9 ) + 58 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1217
SELECT - 83 / COALESCE ( 41, + 9 ) + 58 AS col2
----
56

query I rowsort
SELECT DISTINCT + - 49 + 56 * 67
----
3703

query I rowsort
SELECT ALL - - ( + + 14 ) + 90
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-1220
SELECT ALL - - 74 DIV + - 62
----
-1

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL - - 74 / + - 62
----
-1

query I rowsort
SELECT DISTINCT - ( + + COALESCE ( - 70, 49 * 51 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT + COALESCE ( 25, - 29, - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-1222
SELECT + COALESCE ( 25, - 29, - COUNT ( * ) )
----
25

query I rowsort
SELECT ALL - + 7 + + 73
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT ( - COALESCE ( 20, 79 * 19 + 11, MIN( - 26 ) * + COUNT( * ) ) ) * - 13
----
260

skipif mysql # not compatible
query I rowsort label-1224
SELECT ( - COALESCE ( 20, 79 * 19 + 11, MIN ( - 26 ) * + COUNT ( * ) ) ) * - 13
----
260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT - - 84 * - MAX( DISTINCT + 38 ) / + 41 + ( - CAST( NULL AS SIGNED ) - ( 21 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT - - 84 * - MAX ( DISTINCT + 38 ) / + 41 + ( - CAST ( NULL AS INTEGER ) - ( 21 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1226
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - 61 * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - 61 * - 41
----
NULL

query I rowsort
SELECT - 15 * + 63 * 95 + 72
----
-89703

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

query I rowsort
SELECT 53 * + + 26 AS col0
----
1378

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT COUNT( * ) * 62 * + CASE - CAST( NULL AS SIGNED ) WHEN + 50 THEN 29 ELSE - COUNT( * ) END col2
----
-62

skipif mysql # not compatible
query I rowsort label-1231
SELECT COUNT ( * ) * 62 * + CASE - CAST ( NULL AS INTEGER ) WHEN + 50 THEN 29 ELSE - COUNT ( * ) END col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT DISTINCT 61 - CASE + 23 WHEN + 90 THEN NULL ELSE 79 + - 81 END + - 63 * - MAX( ALL - 9 )
----
-504

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT 61 - CASE + 23 WHEN + 90 THEN NULL ELSE 79 + - 81 END + - 63 * - MAX ( ALL - 9 )
----
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-1233
SELECT DISTINCT COUNT( * ) AS col2, ( - COALESCE ( 32, + 52 + ( - COALESCE ( 14, 85, - 41 + + 32 ) ), - 37 ) )
----
1
-32

skipif mysql # not compatible
query II rowsort label-1233
SELECT DISTINCT COUNT ( * ) AS col2, ( - COALESCE ( 32, + 52 + ( - COALESCE ( 14, 85, - 41 + + 32 ) ), - 37 ) )
----
1
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT CASE 24 WHEN + 41 + - 9 / COUNT( * ) THEN - 50 END * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1234
SELECT CASE 24 WHEN + 41 + - 9 / COUNT ( * ) THEN - 50 END * + 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT 26 - + COUNT( * ) * + - 22 - - 81 * 4
----
372

skipif mysql # not compatible
query I rowsort label-1235
SELECT 26 - + COUNT ( * ) * + - 22 - - 81 * 4
----
372

query II rowsort
SELECT 68, 76 col2
----
68
76

query I rowsort
SELECT - 64 * - 23 + + 70
----
1542

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT + 72 + + NULLIF ( + 20, - SUM( DISTINCT - COALESCE ( 3, - 82 + - 60 ) ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1239
SELECT + 72 + + NULLIF ( + 20, - SUM ( DISTINCT - COALESCE ( 3, - 82 + - 60 ) ) ) AS col1
----
92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT ALL 54 + - + 45 + + 12 DIV 49 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL 54 + - + 45 + + 12 / 49 AS col2
----
9

query I rowsort
SELECT ALL COALESCE ( - 48, 80 ) AS col1
----
-48

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

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

query I rowsort
SELECT DISTINCT 59 + + 34
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT ALL 18 + - MIN( - + 53 ) * 65
----
3463

skipif mysql # not compatible
query I rowsort label-1245
SELECT ALL 18 + - MIN ( - + 53 ) * 65
----
3463

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT + + NULLIF ( - 44, - 85 ) DIV 37
----
-1

skipif mysql # not compatible
query I rowsort label-1246
SELECT + + NULLIF ( - 44, - 85 ) / 37
----
-1

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT + + ( CAST ( NULL AS INTEGER ) ) * + 8 AS col0
----
NULL

query I rowsort
SELECT - - CASE WHEN 82 <= + ( 50 ) THEN NULL ELSE - 23 END
----
-23

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT ALL CAST( - + 10 AS SIGNED ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL CAST ( - + 10 AS INTEGER ) AS col2
----
-10

query II rowsort
SELECT - + 61, - 32 - - + NULLIF ( 26, - 63 - - 34 ) * 81 col1
----
-61
2074

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT - 88 DIV - 30
----
2

skipif mysql # not compatible
query I rowsort label-1253
SELECT - 88 / - 30
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT DISTINCT - CASE + 53 WHEN + + 85 THEN AVG ( + CAST( 2 AS SIGNED ) ) END / 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT - CASE + 53 WHEN + + 85 THEN AVG ( + CAST ( 2 AS INTEGER ) ) END / 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL CASE 39 WHEN + + ( + 40 ) * 53 THEN COUNT( * ) * 94 ELSE 53 END + 78 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL CASE 39 WHEN + + ( + 40 ) * 53 THEN COUNT ( * ) * 94 ELSE 53 END + 78 AS col0
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1256
SELECT + COUNT( * ) DIV MAX( DISTINCT - 28 ) * + NULLIF ( COUNT( * ), + 83 ) - + ( 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-1256
SELECT + COUNT ( * ) / MAX ( DISTINCT - 28 ) * + NULLIF ( COUNT ( * ), + 83 ) - + ( 78 ) AS col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT ALL - 59 * 12 + + ( + 87 ) DIV ( 67 * - 30 + 23 * - 52 ) - + 55 DIV + 28
----
-709

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL - 59 * 12 + + ( + 87 ) / ( 67 * - 30 + 23 * - 52 ) - + 55 / + 28
----
-709

query I rowsort
SELECT + + 77 col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT + + COALESCE ( + 38, 16 DIV 89 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-1259
SELECT + + COALESCE ( + 38, 16 / 89 ) col2
----
38

query II rowsort
SELECT ALL + 51 AS col2, 50 + 21
----
51
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT ALL - CAST( - 28 AS SIGNED ) * CAST( + 75 AS SIGNED ) AS col0
----
2100

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL - CAST ( - 28 AS INTEGER ) * CAST ( + 75 AS INTEGER ) AS col0
----
2100

query I rowsort
SELECT - - 80 * - - ( 72 ) * 56 + - 13 AS col1
----
322547

query I rowsort
SELECT - 62 + + 68 * + 43 AS col2
----
2862

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT 18 * - 29 + - COUNT( * ) col2
----
-523

skipif mysql # not compatible
query I rowsort label-1265
SELECT 18 * - 29 + - COUNT ( * ) col2
----
-523

query I rowsort
SELECT ALL 38 * + - 59
----
-2242

onlyif mysql # aggregate syntax: 
query II rowsort label-1267
SELECT ALL + COUNT( + 0 ), + 84 + - - 66 * + COUNT( * ) AS col0
----
1
150

skipif mysql # not compatible
query II rowsort label-1267
SELECT ALL + COUNT ( + 0 ), + 84 + - - 66 * + COUNT ( * ) AS col0
----
1
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - COUNT( * ) + + 60 + - COUNT( * ) + + ( - 94 )
----
-36

skipif mysql # not compatible
query I rowsort label-1268
SELECT - COUNT ( * ) + + 60 + - COUNT ( * ) + + ( - 94 )
----
-36

query II rowsort
SELECT ALL + ( - + 8 ) AS col0, 72 AS col0
----
-8
72

query I rowsort
SELECT COALESCE ( 69, - - 75 ) AS col0
----
69

query I rowsort
SELECT + 60 * + + ( - 35 ) + - 47
----
-2147

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

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - 37 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT - 49 + - 88 DIV - 77 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1273
SELECT - 49 + - 88 / - 77 AS col2
----
-48

query I rowsort
SELECT ALL - 19 * - 91
----
1729

query I rowsort
SELECT DISTINCT 53 * - - 93 * - 43 + - ( + 77 ) * 38 AS col1
----
-214873

query I rowsort
SELECT ALL 59 * + 82 + + 0
----
4838

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT DISTINCT - 38 * + NULLIF ( + NULLIF ( COUNT( * ), + 39 + 82 * 20 ), - 7 ) * + 98
----
-3724

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT - 38 * + NULLIF ( + NULLIF ( COUNT ( * ), + 39 + 82 * 20 ), - 7 ) * + 98
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT DISTINCT - 65 + + - SUM( CASE + - 20 WHEN 59 * + 17 THEN + NULLIF ( + 14, - 65 * - 87 + 86 * + 21 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT - 65 + + - SUM ( CASE + - 20 WHEN 59 * + 17 THEN + NULLIF ( + 14, - 65 * - 87 + 86 * + 21 ) ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1279
SELECT - 95 + ( CAST( 87 AS SIGNED ) ) * ( 52 )
----
4429

skipif mysql # not compatible
query I rowsort label-1279
SELECT - 95 + ( CAST ( 87 AS INTEGER ) ) * ( 52 )
----
4429

onlyif mysql # DIV for integer division: 
query I rowsort label-1280
SELECT ALL - 47 + + 77 DIV 72 * + 96 DIV 66
----
-46

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL - 47 + + 77 / 72 * + 96 / 66
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT - COUNT( * ) + + 41
----
40

skipif mysql # not compatible
query I rowsort label-1281
SELECT - COUNT ( * ) + + 41
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT DISTINCT CAST( ( - - 87 ) AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT CAST ( ( - - 87 ) AS INTEGER )
----
87

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

skipif mysql # not compatible
query I rowsort label-1283
SELECT - 3 + + + 69 + - + CAST ( NULL AS INTEGER ) + - 9 col2
----
NULL

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

query I rowsort
SELECT ALL + 6 + 61 * + + 65 AS col1
----
3971

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

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

query I rowsort
SELECT DISTINCT - ( + 92 ) * - 36
----
3312

query I rowsort
SELECT ALL - CASE - 88 WHEN 74 * + AVG ( DISTINCT - 98 ) * + 44 THEN 22 + - 10 ELSE + ( + CASE 73 WHEN 80 THEN 45 WHEN + 68 THEN + AVG ( 17 ) * - 11 WHEN 80 THEN - 20 * - 30 END ) END * 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT + - CASE - 16 WHEN - - 52 THEN + + COUNT( ALL 76 ) WHEN - COUNT( * ) + + 55 THEN + 91 + - 54 END + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1289
SELECT + - CASE - 16 WHEN - - 52 THEN + + COUNT ( ALL 76 ) WHEN - COUNT ( * ) + + 55 THEN + 91 + - 54 END + + 69
----
NULL

query I rowsort
SELECT ALL - 71 - 71 AS col1
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1291
SELECT + + COUNT( * ) + - NULLIF ( - MAX( ALL - + 25 ), CASE - 98 WHEN CAST( NULL AS SIGNED ) * + AVG ( 40 ) THEN + 3 * + 93 END ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1291
SELECT + + COUNT ( * ) + - NULLIF ( - MAX ( ALL - + 25 ), CASE - 98 WHEN CAST ( NULL AS INTEGER ) * + AVG ( 40 ) THEN + 3 * + 93 END ) AS col2
----
-24

query I rowsort
SELECT + 75 + - ( - + 58 )
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1293
SELECT + - CAST( NULL AS SIGNED ) * + 62 - - 95 * + 92 * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1293
SELECT + - CAST ( NULL AS INTEGER ) * + 62 - - 95 * + 92 * 74
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1295
SELECT 35 DIV 89 * - 44 + - + ( + 15 ) + - 70 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-1295
SELECT 35 / 89 * - 44 + - + ( + 15 ) + - 70 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT DISTINCT - 19 * COUNT( * ) * + - CASE - 7 WHEN + 87 * 84 THEN - 70 ELSE 40 END - + 68 AS col1
----
692

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT - 19 * COUNT ( * ) * + - CASE - 7 WHEN + 87 * 84 THEN - 70 ELSE 40 END - + 68 AS col1
----
692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL + CASE 68 WHEN - 68 * + + 31 THEN + CAST( NULL AS SIGNED ) + 89 END / 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL + CASE 68 WHEN - 68 * + + 31 THEN + CAST ( NULL AS INTEGER ) + 89 END / 98 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT SUM ( + 19 )
----
19

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

skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL + COALESCE ( - NULLIF ( NULLIF ( 34, + + 47 ), 74 * + COUNT( * ) ), 24 + - 94 )
----
-34

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL + COALESCE ( - NULLIF ( NULLIF ( 34, + + 47 ), 74 * + COUNT ( * ) ), 24 + - 94 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT CAST( + - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-1301
SELECT CAST ( + - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT 55 * + SUM( - 81 ) * - 27
----
120285

skipif mysql # not compatible
query I rowsort label-1302
SELECT 55 * + SUM ( - 81 ) * - 27
----
120285

onlyif mysql # aggregate syntax: 
query II rowsort label-1303
SELECT ALL MIN( + 30 ) * - 98 AS col2, COALESCE ( + 33, - 83 * - MIN( - 32 ) + 67, COUNT( * ) * + 50 ) AS col1
----
-2940
33

skipif mysql # not compatible
query II rowsort label-1303
SELECT ALL MIN ( + 30 ) * - 98 AS col2, COALESCE ( + 33, - 83 * - MIN ( - 32 ) + 67, COUNT ( * ) * + 50 ) AS col1
----
-2940
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1304
SELECT ALL 43 + - - 14 + - 43 - + NULLIF ( + + 18, CAST( 87 AS DECIMAL ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL 43 + - - 14 + - 43 - + NULLIF ( + + 18, CAST ( 87 AS REAL ) ) AS col1
----
-4

query I rowsort
SELECT DISTINCT - 33 * - ( CASE - - AVG ( ALL 7 ) WHEN - 20 THEN 77 WHEN 64 THEN 83 WHEN 58 + - CASE - 73 WHEN 52 THEN 13 ELSE 31 + 71 END THEN NULL ELSE NULL END ) * - 11 AS col0
----
NULL

query I rowsort
SELECT ALL - 24 * + 66 AS col1
----
-1584

query I rowsort
SELECT ALL - 51 + - ( + - 17 ) * + - ( 60 )
----
-1071

query I rowsort
SELECT DISTINCT 42 + + - 93
----
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1310
SELECT ALL - 61 + + COUNT( * ) + - COUNT( * ) + + 91 + + + CAST( NULL AS SIGNED ) + 96 / 48 / + COUNT( DISTINCT 55 ) * 72 * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL - 61 + + COUNT ( * ) + - COUNT ( * ) + + 91 + + + CAST ( NULL AS INTEGER ) + 96 / 48 / + COUNT ( DISTINCT 55 ) * 72 * + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ( 94 ) + + + COUNT( * ) + + - 69 + 8 * ( 83 * + 32 )
----
21274

skipif mysql # not compatible
query I rowsort label-1311
SELECT ( 94 ) + + + COUNT ( * ) + + - 69 + 8 * ( 83 * + 32 )
----
21274

query I rowsort
SELECT 96 * - 13 AS col1
----
-1248

onlyif mysql # DIV for integer division: 
query I rowsort label-1313
SELECT ALL + 89 DIV + 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + 89 / + 57 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT DISTINCT - 34 + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT - 34 + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT 98 * 47 * - + 28 * - COUNT( * ) + - - 25 AS col0
----
128993

skipif mysql # not compatible
query I rowsort label-1315
SELECT 98 * 47 * - + 28 * - COUNT ( * ) + - - 25 AS col0
----
128993

query I rowsort
SELECT 6 - - 13
----
19

query II rowsort
SELECT - 21 AS col1, - 74 AS col2
----
-21
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT + MIN( ALL + 24 ) + - 80 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1318
SELECT + MIN ( ALL + 24 ) + - 80 AS col0
----
-56

query I rowsort
SELECT ALL - 35 + + COALESCE ( + 39, + 82 ) + + 57 * 50 AS col2
----
2854

query I rowsort
SELECT ALL + 77 * + - 16
----
-1232

query I rowsort
SELECT 45 * 56 + + ( 43 ) + - 94 + 61 * 88
----
7837

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT ( - 44 ) DIV - - 46
----
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT ( - 44 ) / - - 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1323
SELECT - COUNT( ( 3 ) ) AS col2, - NULLIF ( - + 85, 58 + COALESCE ( + 41 + - 46, COALESCE ( - ( - 41 ), 96 + CASE - COUNT( ALL - 22 ) WHEN - 96 + + COALESCE ( + COUNT( * ) + + COUNT( * ) * 73, 30 * 97 - CAST( NULL AS SIGNED ) ) THEN + 94 + - 68 ELSE 50 END ), 34 * AVG ( 34 ) ) ) AS col2
----
-1
85

skipif mysql # not compatible
query II rowsort label-1323
SELECT - COUNT ( ( 3 ) ) AS col2, - NULLIF ( - + 85, 58 + COALESCE ( + 41 + - 46, COALESCE ( - ( - 41 ), 96 + CASE - COUNT ( ALL - 22 ) WHEN - 96 + + COALESCE ( + COUNT ( * ) + + COUNT ( * ) * 73, 30 * 97 - CAST ( NULL AS INTEGER ) ) THEN + 94 + - 68 ELSE 50 END ), 34 * AVG ( 34 ) ) ) AS col2
----
-1
85

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

query I rowsort
SELECT - 80 * + 19 * - 86 AS col0
----
130720

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

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

query I rowsort
SELECT - + NULLIF ( COALESCE ( - + ( - 56 ), 89 * 70 ), + 14 ) AS col1
----
-56

query I rowsort
SELECT - 77 * - COALESCE ( - 52, + ( - 99 ) ) * 41 + 82
----
-164082

query I rowsort
SELECT 93 * - 82 AS col2
----
-7626

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT MIN( + 43 ) * - + COUNT( * ) * - 97 AS col0
----
4171

skipif mysql # not compatible
query I rowsort label-1331
SELECT MIN ( + 43 ) * - + COUNT ( * ) * - 97 AS col0
----
4171

query I rowsort
SELECT ALL + ( + - 68 ) * 48 - - - 51
----
-3315

onlyif mysql # DIV for integer division: 
query II rowsort label-1333
SELECT ALL + + 96 DIV - ( + 53 ) col2, 14
----
-1
14

skipif mysql # not compatible
query II rowsort label-1333
SELECT ALL + + 96 / - ( + 53 ) col2, 14
----
-1
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT 20 DIV - - 41
----
0

skipif mysql # not compatible
query I rowsort label-1334
SELECT 20 / - - 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT COUNT( * ) + - 7 / 42 + CASE - COUNT( * ) WHEN + COUNT( * ) * + 22 THEN ( + 37 ) / 88 WHEN 29 THEN NULL WHEN 48 + + 33 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT COUNT ( * ) + - 7 / 42 + CASE - COUNT ( * ) WHEN + COUNT ( * ) * + 22 THEN ( + 37 ) / 88 WHEN 29 THEN NULL WHEN 48 + + 33 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 65 * + 18
----
1170

query I rowsort
SELECT ALL 43 + + 79 + + 83
----
205

query I rowsort
SELECT 28 * NULLIF ( - + 34, + 4 ) + + 16 AS col0
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT 71 - - 42 * + COUNT( * ) + - 29 * - 98
----
2955

skipif mysql # not compatible
query I rowsort label-1339
SELECT 71 - - 42 * + COUNT ( * ) + - 29 * - 98
----
2955

query II rowsort
SELECT 54, + 64 + 55 col2
----
54
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL COUNT( * ) + 91 * - 38
----
-3457

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL COUNT ( * ) + 91 * - 38
----
-3457

query II rowsort
SELECT 84 AS col0, - ( - 35 ) AS col0
----
84
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT + COALESCE ( + COUNT( * ), - + ( - - ( - 92 ) ) ) * - 24 * 5 + 51
----
-69

skipif mysql # not compatible
query I rowsort label-1343
SELECT + COALESCE ( + COUNT ( * ), - + ( - - ( - 92 ) ) ) * - 24 * 5 + 51
----
-69

query II rowsort
SELECT 65, 97 + + 5 AS col1
----
65
102

query II rowsort
SELECT 70, 6 AS col2
----
70
6

query II rowsort
SELECT 6 + - - 50 AS col2, 78 * - 86 * + ( + 81 ) + + 44 * - 56 AS col0
----
56
-545812

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

skipif mysql # not compatible
query II rowsort label-1347
SELECT 78 AS col1, COUNT ( * ) AS col1
----
78
1

query I rowsort
SELECT 15 + + - ( + 62 )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1349
SELECT DISTINCT - COALESCE ( NULLIF ( ( CAST( + + 71 AS SIGNED ) ), + CAST( + 53 AS SIGNED ) ), 10 + COUNT( * ) * - 73, + 23 + + 20 ) * 40
----
-2840

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT - COALESCE ( NULLIF ( ( CAST ( + + 71 AS INTEGER ) ), + CAST ( + 53 AS INTEGER ) ), 10 + COUNT ( * ) * - 73, + 23 + + 20 ) * 40
----
-2840

onlyif mysql # aggregate syntax: 
query II rowsort label-1350
SELECT - 77 AS col0, ( + SUM( - 21 ) )
----
-77
-21

skipif mysql # not compatible
query II rowsort label-1350
SELECT - 77 AS col0, ( + SUM ( - 21 ) )
----
-77
-21

query I rowsort
SELECT ( 7 ) col2
----
7

query I rowsort
SELECT DISTINCT CASE - 91 WHEN + 25 THEN + - 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT 39 * + COUNT( * ) * - - 74
----
2886

skipif mysql # not compatible
query I rowsort label-1353
SELECT 39 * + COUNT ( * ) * - - 74
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - ( + SUM( DISTINCT - 36 ) ) * + + 13 - + 96 AS col1
----
372

skipif mysql # not compatible
query I rowsort label-1354
SELECT - ( + SUM ( DISTINCT - 36 ) ) * + + 13 - + 96 AS col1
----
372

query II rowsort
SELECT 70 + + 55 + + + 43 * - + 65 AS col2, + 31 + 36 * - 5 AS col1
----
-2670
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT - 78 - + 49 DIV 74 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-1356
SELECT - 78 - + 49 / 74 AS col2
----
-78

query I rowsort
SELECT + 87 + - 73 * - 15
----
1182

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT + ( - 44 ) DIV + - ( - ( - 65 ) ) * - 6 * 8
----
0

skipif mysql # not compatible
query I rowsort label-1358
SELECT + ( - 44 ) / + - ( - ( - 65 ) ) * - 6 * 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT + 1 * + + SUM( + - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-1359
SELECT + 1 * + + SUM ( + - 26 )
----
-26

query I rowsort
SELECT + 71 * + - 82 + - 79 * + 69 AS col2
----
-11273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1361
SELECT ALL COALESCE ( - COALESCE ( + 88, - 7 * - + ( + 87 ) - 86 ), 14 + + 5 * CAST( NULL AS SIGNED ) )
----
-88

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL COALESCE ( - COALESCE ( + 88, - 7 * - + ( + 87 ) - 86 ), 14 + + 5 * CAST ( NULL AS INTEGER ) )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-1362
SELECT DISTINCT + ( + 25 ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT + ( + 25 ) / 38
----
0

query II rowsort
SELECT ALL - 27 * + + 80 col2, 19
----
-2160
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT - ( - - SUM( - 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-1365
SELECT - ( - - SUM ( - 38 ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1366
SELECT DISTINCT + 36 * + 43 - - - CAST( + - 64 AS SIGNED ) AS col0, + NULLIF ( + 21, 92 ) - + ( + NULLIF ( + MIN( ALL 97 ), COUNT( * ) * 23 ) - ( 23 ) )
----
1612
-53

skipif mysql # not compatible
query II rowsort label-1366
SELECT DISTINCT + 36 * + 43 - - - CAST ( + - 64 AS INTEGER ) AS col0, + NULLIF ( + 21, 92 ) - + ( + NULLIF ( + MIN ( ALL 97 ), COUNT ( * ) * 23 ) - ( 23 ) )
----
1612
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL - 78 + + COUNT( * ) * - - 54 + - - 9 + SUM( ALL - 86 )
----
-101

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - 78 + + COUNT ( * ) * - - 54 + - - 9 + SUM ( ALL - 86 )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT - CASE - 4 WHEN 29 + 9 THEN NULL WHEN + + COUNT( * ) + - + COUNT( - 12 ) * MIN( ALL 56 + + 38 ) THEN + 95 END * ( 59 ) + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT - CASE - 4 WHEN 29 + 9 THEN NULL WHEN + + COUNT ( * ) + - + COUNT ( - 12 ) * MIN ( ALL 56 + + 38 ) THEN + 95 END * ( 59 ) + 33 AS col0
----
NULL

query II rowsort
SELECT - 50 * + + 2, - 33 AS col2
----
-100
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1370
SELECT ALL 98 * + 10 * ( - - 34 ) + - MAX( DISTINCT + - 3 ) + - 64 - + 20 DIV 40
----
33259

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL 98 * + 10 * ( - - 34 ) + - MAX ( DISTINCT + - 3 ) + - 64 - + 20 / 40
----
33259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - ( - - COUNT( * ) ) + 42 + 69 - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - ( - - COUNT ( * ) ) + 42 + 69 - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - ( 28 ), + 82 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL - COUNT( * ) * 40 + - - COUNT( + 41 )
----
-39

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - COUNT ( * ) * 40 + - - COUNT ( + 41 )
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1374
SELECT DISTINCT + COALESCE ( 47, 99 ) * + 86 * 22 * 99 + - 36 + 36 * + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + COALESCE ( 47, 99 ) * + 86 * 22 * 99 + - 36 + 36 * + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1375
SELECT ALL COUNT( * ) * - + NULLIF ( + 86, - 67 * - CASE - - COUNT( * ) WHEN CAST( NULL AS SIGNED ) / + ( + 8 ) + 63 * 28 THEN NULL WHEN + 29 * ( 15 ) + ( 28 ) THEN + 20 END * 26 + - COUNT( * ) ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL COUNT ( * ) * - + NULLIF ( + 86, - 67 * - CASE - - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) / + ( + 8 ) + 63 * 28 THEN NULL WHEN + 29 * ( 15 ) + ( 28 ) THEN + 20 END * 26 + - COUNT ( * ) ) col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1376
SELECT ALL COUNT( * ) * - 94 + - 55 DIV - 58 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL COUNT ( * ) * - 94 + - 55 / - 58 AS col2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT DISTINCT + 6 DIV 45 * 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + 6 / 45 * 99 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1378
SELECT + CAST( - 79 AS SIGNED ) DIV + 19
----
-4

skipif mysql # not compatible
query I rowsort label-1378
SELECT + CAST ( - 79 AS INTEGER ) / + 19
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1379
SELECT + CAST( + 34 AS SIGNED ) * - 76 AS col0, 65
----
-2584
65

skipif mysql # not compatible
query II rowsort label-1379
SELECT + CAST ( + 34 AS INTEGER ) * - 76 AS col0, 65
----
-2584
65

query I rowsort
SELECT ALL 53 * 48 + + 99 + + 23
----
2666

query I rowsort
SELECT + ( 98 ) * + 94 - 62 + - 13 * - 97 AS col1
----
10411

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1382
SELECT DISTINCT 28 * + 5 * - ( + - CAST( NULL AS DECIMAL ) ) * + 14 * - 4 - COUNT( 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT 28 * + 5 * - ( + - CAST ( NULL AS REAL ) ) * + 14 * - 4 - COUNT ( 10 ) AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + 41, 15 + + - 11 ) AS col0
----
41

query I rowsort
SELECT + CASE - 81 WHEN + AVG ( - 94 ) + - 9 THEN - 72 END AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1385
SELECT SUM ( ALL 76 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1386
SELECT ALL 17 DIV 19, COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-1386
SELECT ALL 17 / 19, COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT + 23 + - 9 * + - 95
----
878

query I rowsort
SELECT + - NULLIF ( + 43, + 45 ) AS col2
----
-43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1390
SELECT + + COUNT( * ) + + 82 AS col2, + 20 AS col1
----
83
20

skipif mysql # not compatible
query II rowsort label-1390
SELECT + + COUNT ( * ) + + 82 AS col2, + 20 AS col1
----
83
20

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1393
SELECT DISTINCT 11 * + + CASE + 67 WHEN + + MIN( - 28 ) THEN - 25 * - 9 + + COALESCE ( - CAST( NULL AS SIGNED ), - 31 ) END + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT 11 * + + CASE + 67 WHEN + + MIN ( - 28 ) THEN - 25 * - 9 + + COALESCE ( - CAST ( NULL AS INTEGER ), - 31 ) END + 9
----
NULL

query II rowsort
SELECT ALL + 42 + + 79 col1, 35 * - + 36 AS col1
----
121
-1260

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

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

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

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

query I rowsort
SELECT DISTINCT - - 71 + - + 17 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT DISTINCT NULLIF ( - - 5, - + 17 + 33 * + 20 * + COALESCE ( 35, 45 * 14 ) * + COUNT( * ) ) col1
----
5

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT NULLIF ( - - 5, - + 17 + 33 * + 20 * + COALESCE ( 35, 45 * 14 ) * + COUNT ( * ) ) col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT DISTINCT 0 + + 3 - - COUNT( * ) * 84
----
87

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT 0 + + 3 - - COUNT ( * ) * 84
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT ALL - 7 + - - 78 + + ( + COUNT( * ) ) + 37
----
109

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - 7 + - - 78 + + ( + COUNT ( * ) ) + 37
----
109

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

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

query I rowsort
SELECT - 71 * 44
----
-3124

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT - COUNT( * ) - ( + 51 ) * - + 84
----
4283

skipif mysql # not compatible
query I rowsort label-1404
SELECT - COUNT ( * ) - ( + 51 ) * - + 84
----
4283

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT ALL + COUNT( * ) * 96 DIV - SUM( DISTINCT + 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + COUNT ( * ) * 96 / - SUM ( DISTINCT + 72 )
----
-1

query I rowsort
SELECT + ( - 51 ) * + - 63 * - 98 - - 32 AS col0
----
-314842

query I rowsort
SELECT DISTINCT + 20 * 88 col2
----
1760

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT 2 * - + COUNT( * ) * COUNT( * ) + 66 * + 5 - + + 52
----
276

skipif mysql # not compatible
query I rowsort label-1413
SELECT 2 * - + COUNT ( * ) * COUNT ( * ) + 66 * + 5 - + + 52
----
276

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1415
SELECT DISTINCT + 45, 36 + - CASE - 67 WHEN + 89 THEN NULL WHEN - 22 + + 29 THEN + ( + COUNT( * ) ) * + 10 END AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-1415
SELECT DISTINCT + 45, 36 + - CASE - 67 WHEN + 89 THEN NULL WHEN - 22 + + 29 THEN + ( + COUNT ( * ) ) * + 10 END AS col2
----
45
NULL

query I rowsort
SELECT - 30 * + 70
----
-2100

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT ALL + ( + COALESCE ( 79, + ( 62 ) + - ( - + ( 69 ) ) + + 72 DIV 97 ) )
----
79

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL + ( + COALESCE ( 79, + ( 62 ) + - ( - + ( 69 ) ) + + 72 / 97 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT - ( + ( 42 ) ) + + COUNT( DISTINCT - + 19 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1418
SELECT - ( + ( 42 ) ) + + COUNT ( DISTINCT - + 19 ) AS col0
----
-41

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

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

query II rowsort
SELECT - 82 + - 54 + + + 27 AS col1, 67
----
-109
67

query I rowsort
SELECT ALL 94 * + 13 AS col0
----
1222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1422
SELECT - 0 * + CAST( NULL AS SIGNED ) / + + MIN( ALL - 28 ) col1, - 92 * - 11 AS col1
----
NULL
1012

skipif mysql # not compatible
query II rowsort label-1422
SELECT - 0 * + CAST ( NULL AS INTEGER ) / + + MIN ( ALL - 28 ) col1, - 92 * - 11 AS col1
----
NULL
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL - 58 * 17 * COUNT( * ) AS col2
----
-986

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - 58 * 17 * COUNT ( * ) AS col2
----
-986

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + 61 * COUNT( * ) + - 14 + + + 92 * + - 17 AS col0
----
-1517

skipif mysql # not compatible
query I rowsort label-1424
SELECT + 61 * COUNT ( * ) + - 14 + + + 92 * + - 17 AS col0
----
-1517

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT - MAX( ALL + - 47 ) * + COUNT( * ) - - 8 + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-1426
SELECT - MAX ( ALL + - 47 ) * + COUNT ( * ) - - 8 + + COUNT ( * )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT + CAST( NULL AS SIGNED ) * - 34 + + 86 * + AVG ( DISTINCT 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT + CAST ( NULL AS INTEGER ) * - 34 + + 86 * + AVG ( DISTINCT 88 )
----
NULL

query I rowsort
SELECT + 30 + - 75 col1
----
-45

query II rowsort
SELECT ALL + - 0 col0, 75
----
0
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT 35, + MIN( ALL 28 ) col0
----
35
28

skipif mysql # not compatible
query II rowsort label-1430
SELECT 35, + MIN ( ALL 28 ) col0
----
35
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1431
SELECT ALL - 94 * COUNT( DISTINCT + 43 ), 36 * + 66 + - - ( + + 32 ) + - + SUM( DISTINCT 34 ) col1
----
-94
2374

skipif mysql # not compatible
query II rowsort label-1431
SELECT ALL - 94 * COUNT ( DISTINCT + 43 ), 36 * + 66 + - - ( + + 32 ) + - + SUM ( DISTINCT 34 ) col1
----
-94
2374

query I rowsort
SELECT ALL - ( + 32 ) * + 0 + - - 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1433
SELECT + + ( - + 82 ) + 57 col0, + ( + 67 ) * + 62 * COUNT( * ) + + 70 AS col2
----
-25
4224

skipif mysql # not compatible
query II rowsort label-1433
SELECT + + ( - + 82 ) + 57 col0, + ( + 67 ) * + 62 * COUNT ( * ) + + 70 AS col2
----
-25
4224

query II rowsort
SELECT DISTINCT 8, 63 AS col2
----
8
63

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

query I rowsort
SELECT ALL 89 + + 33
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT - - SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT - - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT - + NULLIF ( - CAST( - CASE - NULLIF ( - 93, + - 13 ) WHEN - 84 * - 82 * 93 + - 35 THEN NULL WHEN COUNT( + 8 ) THEN - 8 / - 92 + 71 * - 9 ELSE 98 END AS SIGNED ), - SUM( 48 ) * COUNT( * ) )
----
-98

skipif mysql # not compatible
query I rowsort label-1438
SELECT - + NULLIF ( - CAST ( - CASE - NULLIF ( - 93, + - 13 ) WHEN - 84 * - 82 * 93 + - 35 THEN NULL WHEN COUNT ( + 8 ) THEN - 8 / - 92 + 71 * - 9 ELSE 98 END AS INTEGER ), - SUM ( 48 ) * COUNT ( * ) )
----
-98

onlyif mysql # aggregate syntax: 
query III rowsort label-1439
SELECT - COUNT( * ) - - ( + 19 ), + 18, + + 99 * + 3 + + 73 + + NULLIF ( + CASE 75 WHEN + CASE - 86 WHEN + COUNT( * ) THEN - COUNT( 6 ) END + + 32 * 42 THEN 37 WHEN 44 THEN 75 + + 70 END, - 73 ) AS col0
----
18
18
NULL

skipif mysql # not compatible
query III rowsort label-1439
SELECT - COUNT ( * ) - - ( + 19 ), + 18, + + 99 * + 3 + + 73 + + NULLIF ( + CASE 75 WHEN + CASE - 86 WHEN + COUNT ( * ) THEN - COUNT ( 6 ) END + + 32 * 42 THEN 37 WHEN 44 THEN 75 + + 70 END, - 73 ) AS col0
----
18
18
NULL

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

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

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

query I rowsort
SELECT ALL 14 + - 47
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1443
SELECT ( - - 70 ) + - 82 - + 67 DIV + + 74 * 86 * 68 * 90 + COUNT( * ) + - 9 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1443
SELECT ( - - 70 ) + - 82 - + 67 / + + 74 * 86 * 68 * 90 + COUNT ( * ) + - 9 AS col0
----
-20

query I rowsort
SELECT ALL 85 * 56 col1
----
4760

query I rowsort
SELECT 71 + - - 0 AS col1
----
71

query I rowsort
SELECT 55 * - 69 * + 40
----
-151800

query I rowsort
SELECT DISTINCT 13 - + 56 AS col0
----
-43

query I rowsort
SELECT DISTINCT 77 - - 62 AS col1
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1449
SELECT ALL - 71 * - CAST( + NULLIF ( + COUNT( * ), + 83 * COALESCE ( MAX( ALL 2 ), - 99, 21, + 33 ) ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL - 71 * - CAST ( + NULLIF ( + COUNT ( * ), + 83 * COALESCE ( MAX ( ALL 2 ), - 99, 21, + 33 ) ) AS INTEGER )
----
71

query I rowsort
SELECT DISTINCT 71 * NULLIF ( CASE + + ( + 83 ) WHEN + 48 THEN NULL WHEN 38 THEN - 57 + - 59 + 50 * 90 ELSE 33 END, - 77 + 49 ) AS col2
----
2343

query I rowsort
SELECT ALL - CASE WHEN NOT NULL IS NULL THEN 28 ELSE 55 END
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT - + ( + MIN( - 15 ) ) + - + 22 * 38 AS col2
----
-821

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT - + ( + MIN ( - 15 ) ) + - + 22 * 38 AS col2
----
-821

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT + MIN( 6 ) * + 95 * + 63 - MIN( + - 12 ) col2
----
35922

skipif mysql # not compatible
query I rowsort label-1453
SELECT + MIN ( 6 ) * + 95 * + 63 - MIN ( + - 12 ) col2
----
35922

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL + + COUNT( * ) + + NULLIF ( - COALESCE ( - - 15, + + 93 ), - SUM( ALL - ( - 47 ) ) + - 10 * 75 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + + COUNT ( * ) + + NULLIF ( - COALESCE ( - - 15, + + 93 ), - SUM ( ALL - ( - 47 ) ) + - 10 * 75 ) AS col1
----
-14

query II rowsort
SELECT 75 - - - 31, - 38 + - + 4 AS col2
----
44
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1457
SELECT DISTINCT + - COALESCE ( - - CASE + 21 WHEN CAST( NULL AS SIGNED ) + + 91 + + MAX( DISTINCT 12 ) THEN NULL WHEN + CAST( 78 AS SIGNED ) + AVG ( ALL 72 + 16 ) THEN - 14 + + NULLIF ( ( COUNT( * ) ) + 41, 32 * ( 44 ) ) * CAST( NULL AS SIGNED ) END, 9 DIV COUNT( * ) ) * - 1
----
9

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT + - COALESCE ( - - CASE + 21 WHEN CAST ( NULL AS INTEGER ) + + 91 + + MAX ( DISTINCT 12 ) THEN NULL WHEN + CAST ( 78 AS INTEGER ) + AVG ( ALL 72 + 16 ) THEN - 14 + + NULLIF ( ( COUNT ( * ) ) + 41, 32 * ( 44 ) ) * CAST ( NULL AS INTEGER ) END, 9 / COUNT ( * ) ) * - 1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT - 6 * - 39 * 82 * - COALESCE ( - MIN( ALL + 38 ), - ( COUNT( * ) ) ) AS col0
----
729144

skipif mysql # not compatible
query I rowsort label-1458
SELECT - 6 * - 39 * 82 * - COALESCE ( - MIN ( ALL + 38 ), - ( COUNT ( * ) ) ) AS col0
----
729144

query I rowsort
SELECT 55 * - 14
----
-770

query II rowsort
SELECT ALL 24, + 85 * 97 + - 84 AS col2
----
24
8161

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT 51 - + COUNT( * ) + - 82 + 84 * 67 + + 48 * - + SUM( + 44 ) AS col1
----
3484

skipif mysql # not compatible
query I rowsort label-1461
SELECT 51 - + COUNT ( * ) + - 82 + 84 * 67 + + 48 * - + SUM ( + 44 ) AS col1
----
3484

query I rowsort
SELECT 87 * - + 81 AS col0
----
-7047

query I rowsort
SELECT 0 * - 61 AS col1
----
0

query I rowsort
SELECT 77 * - + 24
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT DISTINCT 66 * - + CASE + + COUNT( * ) WHEN - + 72 + + ( - 56 ) + CAST( NULL AS SIGNED ) THEN - + 53 WHEN - COUNT( * ) THEN - - 22 ELSE NULL END * + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT 66 * - + CASE + + COUNT ( * ) WHEN - + 72 + + ( - 56 ) + CAST ( NULL AS INTEGER ) THEN - + 53 WHEN - COUNT ( * ) THEN - - 22 ELSE NULL END * + 74 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL MAX ( 74 )
----
74

query I rowsort
SELECT DISTINCT 30 * + + 15 AS col1
----
450

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

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - MIN ( - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT COALESCE ( - + 43, 70 + - ( - ( - - ( + - ( + 76 ) ) ) ) ) * COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1469
SELECT COALESCE ( - + 43, 70 + - ( - ( - - ( + - ( + 76 ) ) ) ) ) * COUNT ( * ) AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1470
SELECT SUM( + CAST( NULL AS DECIMAL ) ) + 55 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT SUM ( + CAST ( NULL AS REAL ) ) + 55 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT + MAX( DISTINCT - - 80 )
----
80

skipif mysql # not compatible
query I rowsort label-1471
SELECT + MAX ( DISTINCT - - 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1472
SELECT 95 + CAST( + CAST( 37 AS DECIMAL ) AS SIGNED )
----
132

skipif mysql # not compatible
query I rowsort label-1472
SELECT 95 + CAST ( + CAST ( 37 AS REAL ) AS INTEGER )
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1473
SELECT 3 DIV + COUNT( * ) - + + 50 AS col2, 0 col0
----
-47
0

skipif mysql # not compatible
query II rowsort label-1473
SELECT 3 / + COUNT ( * ) - + + 50 AS col2, 0 col0
----
-47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT ALL - 80 * + CASE + 44 WHEN + 41 THEN + 64 WHEN - + 25 THEN NULL ELSE NULL END + SUM( DISTINCT + 3 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - 80 * + CASE + 44 WHEN + 41 THEN + 64 WHEN - + 25 THEN NULL ELSE NULL END + SUM ( DISTINCT + 3 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1475
SELECT - 52 * - + CAST( NULL AS DECIMAL ) + - + 47 * 18 * - COUNT( ALL - 5 ) + + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1475
SELECT - 52 * - + CAST ( NULL AS REAL ) + - + 47 * 18 * - COUNT ( ALL - 5 ) + + - 50
----
NULL

query I rowsort
SELECT 49 - - 91
----
140

query I rowsort
SELECT ALL - - 70 * - 45 + + 32
----
-3118

onlyif mysql # aggregate syntax: 
query II rowsort label-1478
SELECT + 75 AS col0, ( - NULLIF ( - COUNT( * ), - 48 ) )
----
75
1

skipif mysql # not compatible
query II rowsort label-1478
SELECT + 75 AS col0, ( - NULLIF ( - COUNT ( * ), - 48 ) )
----
75
1

query I rowsort
SELECT 29 + + + 72 + 50 * 36
----
1901

query I rowsort
SELECT ALL + 55 * + 68 col1
----
3740

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT ALL 62 + - 22 + + 74 DIV 70
----
41

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL 62 + - 22 + + 74 / 70
----
41

query I rowsort
SELECT + 31 * + 80
----
2480

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1483
SELECT - + 0 * - CAST( + 45 AS SIGNED ) AS col1, 64
----
0
64

skipif mysql # not compatible
query II rowsort label-1483
SELECT - + 0 * - CAST ( + 45 AS INTEGER ) AS col1, 64
----
0
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT - COUNT( * ) * - 71 + - 80 * + 17 + + + COALESCE ( - MAX( ALL - 32 ), + - 49 )
----
-1257

skipif mysql # not compatible
query I rowsort label-1484
SELECT - COUNT ( * ) * - 71 + - 80 * + 17 + + + COALESCE ( - MAX ( ALL - 32 ), + - 49 )
----
-1257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1485
SELECT + NULLIF ( - 66, - CAST( CAST( + MAX( + 73 ) AS SIGNED ) AS DECIMAL ) + 91 * + - 87 * - 40 ) * - 78
----
5148

skipif mysql # not compatible
query I rowsort label-1485
SELECT + NULLIF ( - 66, - CAST ( CAST ( + MAX ( + 73 ) AS INTEGER ) AS REAL ) + 91 * + - 87 * - 40 ) * - 78
----
5148

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT + - NULLIF ( - 68, + + COUNT( * ) ) + - 82
----
-14

skipif mysql # not compatible
query I rowsort label-1486
SELECT + - NULLIF ( - 68, + + COUNT ( * ) ) + - 82
----
-14

query I rowsort
SELECT - + 50 + + + 35 * - 5 AS col0
----
-225

query I rowsort
SELECT ALL + 70 - + 35
----
35

query I rowsort
SELECT - - ( - 31 ) * 7
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT - 90 + + - MIN( - + 35 )
----
-55

skipif mysql # not compatible
query I rowsort label-1490
SELECT - 90 + + - MIN ( - + 35 )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT + 83, NULLIF ( - 79, + NULLIF ( - ( + 40 ), - MIN( DISTINCT - - 73 ) * - 90 - - COUNT( * ) ) ) AS col2
----
83
-79

skipif mysql # not compatible
query II rowsort label-1491
SELECT + 83, NULLIF ( - 79, + NULLIF ( - ( + 40 ), - MIN ( DISTINCT - - 73 ) * - 90 - - COUNT ( * ) ) ) AS col2
----
83
-79

query II rowsort
SELECT 33 col0, 39 * - - ( + - 38 ) + 18 AS col1
----
33
-1464

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT - MAX( DISTINCT + 89 ) + + 48 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1493
SELECT - MAX ( DISTINCT + 89 ) + + 48 AS col1
----
-41

query I rowsort
SELECT DISTINCT + 61 * - 15 AS col2
----
-915

query I rowsort
SELECT - 67 - + + 38
----
-105

query I rowsort
SELECT - 25 * + + CASE + - 23 WHEN - 38 THEN ( - 49 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT ALL + 43 * + 95 AS col2, 38 + + + SUM( DISTINCT - 81 ) AS col2
----
4085
-43

skipif mysql # not compatible
query II rowsort label-1497
SELECT ALL + 43 * + 95 AS col2, 38 + + + SUM ( DISTINCT - 81 ) AS col2
----
4085
-43

query I rowsort
SELECT - NULLIF ( - + 74, + + 85 ) * + 91 * 76 AS col2
----
511784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT + 43 + - 54 + CASE + + 76 WHEN 33 * 46 THEN + 68 + + 70 ELSE 99 + CAST( + 4 AS SIGNED ) * 21 END * 28 * 74
----
379165

skipif mysql # not compatible
query I rowsort label-1499
SELECT + 43 + - 54 + CASE + + 76 WHEN 33 * 46 THEN + 68 + + 70 ELSE 99 + CAST ( + 4 AS INTEGER ) * 21 END * 28 * 74
----
379165

query I rowsort
SELECT DISTINCT NULLIF ( - 31, - 30 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1501
SELECT DISTINCT ( + 16 ) DIV - - SUM( - + 83 )
----
0

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT ( + 16 ) / - - SUM ( - + 83 )
----
0

query I rowsort
SELECT DISTINCT + 26 + 65 * + 68 col2
----
4446

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT - 54 DIV - - 26 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1503
SELECT - 54 / - - 26 AS col2
----
-2

query I rowsort
SELECT - 71 * + - 16 AS col0
----
1136

query II rowsort
SELECT - 57 AS col2, 95
----
-57
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1506
SELECT + 53 + - - 98 + 4 DIV 98 + + + 6 + + NULLIF ( - 26, - ( + 55 ) * MIN( ALL - + 70 ) ) + - 88 * - 81
----
7259

skipif mysql # not compatible
query I rowsort label-1506
SELECT + 53 + - - 98 + 4 / 98 + + + 6 + + NULLIF ( - 26, - ( + 55 ) * MIN ( ALL - + 70 ) ) + - 88 * - 81
----
7259

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1507
SELECT ALL - NULLIF ( + 59, + 65 ) DIV + COUNT( * ) - + ( + - COUNT( * ) ) + + 3
----
-55

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL - NULLIF ( + 59, + 65 ) / + COUNT ( * ) - + ( + - COUNT ( * ) ) + + 3
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT 8 DIV + 64 * - + 36 * 62 + + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1508
SELECT 8 / + 64 * - + 36 * 62 + + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1509
SELECT ALL - + CAST( NULLIF ( - 35, + 76 ) AS SIGNED ) DIV + 94 + 34, 1 AS col1
----
34
1

skipif mysql # not compatible
query II rowsort label-1509
SELECT ALL - + CAST ( NULLIF ( - 35, + 76 ) AS INTEGER ) / + 94 + 34, 1 AS col1
----
34
1

query I rowsort
SELECT ALL + 64 * + 60 * - - 11
----
42240

query I rowsort
SELECT + 63 * 82 * - 38 AS col1
----
-196308

query I rowsort
SELECT ALL + 68 * - 72 + 46 AS col0
----
-4850

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT + - CASE + 52 WHEN + + 51 * - 96 + + - 45 THEN NULL WHEN + 76 * - COALESCE ( + 13, 53 * - 0 + 39 - + COUNT( * ) * + 70, 49 * - 45 ) / 78 + 8 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT + - CASE + 52 WHEN + + 51 * - 96 + + - 45 THEN NULL WHEN + 76 * - COALESCE ( + 13, 53 * - 0 + 39 - + COUNT ( * ) * + 70, 49 * - 45 ) / 78 + 8 THEN + COUNT ( * ) END AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1515
SELECT + - 53, - CAST( NULL AS SIGNED ) AS col0
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-1515
SELECT + - 53, - CAST ( NULL AS INTEGER ) AS col0
----
-53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT DISTINCT 70 * + MAX( ALL + 7 ) - - 39 AS col2
----
529

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT 70 * + MAX ( ALL + 7 ) - - 39 AS col2
----
529

query I rowsort
SELECT + - ( 67 ) + - ( + 50 ) - + + 8
----
-125

query I rowsort
SELECT ALL + + 7 * - - 15 + + 40 * + 17 * - 6
----
-3975

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT + - COALESCE ( - - 97, + + SUM( ALL + ( + 75 ) ) * + COUNT( * ) + + + 38 - - + 12 + - 99 * + + COALESCE ( 30, 0 * 89 ) * 14 + - 73 * 10, 93 * + 59 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-1519
SELECT + - COALESCE ( - - 97, + + SUM ( ALL + ( + 75 ) ) * + COUNT ( * ) + + + 38 - - + 12 + - 99 * + + COALESCE ( 30, 0 * 89 ) * 14 + - 73 * 10, 93 * + 59 ) col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL + ( - - CASE + - 87 WHEN - - COUNT( * ) + + + 7 THEN - 13 + + 60 ELSE 14 END ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL + ( - - CASE + - 87 WHEN - - COUNT ( * ) + + + 7 THEN - 13 + + 60 ELSE 14 END ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL + 38 * COUNT( * ) - - 27 col2
----
65

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL + 38 * COUNT ( * ) - - 27 col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT + - 33 DIV 89 * - 39
----
0

skipif mysql # not compatible
query I rowsort label-1522
SELECT + - 33 / 89 * - 39
----
0

query I rowsort
SELECT - - 27 * - 97 AS col2
----
-2619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1524
SELECT + + MAX( ALL - - CAST( NULL AS SIGNED ) ) * + + CASE - 59 WHEN + - 99 * + 95 THEN 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT + + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) * + + CASE - 59 WHEN + - 99 * + 95 THEN 8 END
----
NULL

query I rowsort
SELECT - + 53 * 16 AS col0
----
-848

query I rowsort
SELECT ALL 55 * + - 80 * 72
----
-316800

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1528
SELECT - ( 2 ) + + COUNT( * ) DIV - 55 AS col0
----
-2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1529
SELECT DISTINCT CASE - COALESCE ( - + 69, - + 4, 60 ) WHEN 89 + - + 67 * - 25 THEN + - 44 * + 60 * - + ( - 49 ) * - ( - SUM( - CAST( NULL AS SIGNED ) ) ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT DISTINCT CASE - COALESCE ( - + 69, - + 4, 60 ) WHEN 89 + - + 67 * - 25 THEN + - 44 * + 60 * - + ( - 49 ) * - ( - SUM ( - CAST ( NULL AS INTEGER ) ) ) ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL 19 * - + 51 * 91 col1, - 2
----
-88179
-2

query II rowsort
SELECT ALL ( 56 ) AS col2, 18 AS col1
----
56
18

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

query II rowsort
SELECT DISTINCT 54 + + 62 + - ( + ( 7 ) ) - 67 - + 73 AS col2, - 14 + - + 70 AS col2
----
-31
-84

query I rowsort
SELECT - 83 * + 92 AS col2
----
-7636

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL + COUNT( * ) + + + 9 col2
----
10

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL + COUNT ( * ) + + + 9 col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT ALL NULLIF ( + + CAST( - 45 AS SIGNED ), + 22 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL NULLIF ( + + CAST ( - 45 AS INTEGER ), + 22 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT + MAX( ALL + NULLIF ( + 81, - 23 ) ) - - + 28 * 84 * - - SUM( 22 ) * + - 92 + - 57 + 50 * - + 29 AS col2
----
-4761874

skipif mysql # not compatible
query I rowsort label-1537
SELECT + MAX ( ALL + NULLIF ( + 81, - 23 ) ) - - + 28 * 84 * - - SUM ( 22 ) * + - 92 + - 57 + 50 * - + 29 AS col2
----
-4761874

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - 48 + + - COALESCE ( - 14, MAX( ( - 20 ) ), - 64 ) + + MIN( DISTINCT ( 8 ) ) * - - 63 + + + 90
----
560

skipif mysql # not compatible
query I rowsort label-1538
SELECT - 48 + + - COALESCE ( - 14, MAX ( ( - 20 ) ), - 64 ) + + MIN ( DISTINCT ( 8 ) ) * - - 63 + + + 90
----
560

query I rowsort
SELECT - 53 * - 2
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1540
SELECT - 24 + ( + - CAST( - AVG ( 16 ) AS SIGNED ) ) + + ( 23 ) * + 76 AS col2
----
1740

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 24 + ( + - CAST ( - AVG ( 16 ) AS INTEGER ) ) + + ( 23 ) * + 76 AS col2
----
1740

query I rowsort
SELECT ALL + 40 + 86 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT DISTINCT CASE - - 60 WHEN + - 9 / + + 28 + + 29 THEN + COUNT( * ) + 31 WHEN 93 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT CASE - - 60 WHEN + - 9 / + + 28 + + 29 THEN + COUNT ( * ) + 31 WHEN 93 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 13 + 38
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT - 95 + + MIN( + 64 )
----
-31

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - 95 + + MIN ( + 64 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT - 64 * - - 50 + + CAST( NULL AS SIGNED ) / + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1545
SELECT - 64 * - - 50 + + CAST ( NULL AS INTEGER ) / + - 39
----
NULL

query I rowsort
SELECT ALL - + 55 + 7 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT 43 * - - CASE - 7 WHEN + 85 THEN NULL WHEN 0 THEN - + 86 + 56 - 8 / + 29 + - ( - - 92 ) + - ( + COUNT( ALL - 60 ) ) * COUNT( * ) ELSE COUNT( * ) * - COUNT( * ) + CASE COUNT( * ) WHEN - 55 THEN 76 * - 3 WHEN + 42 THEN + 54 / COUNT( * ) + - 35 * 31 END END + 93 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1547
SELECT 43 * - - CASE - 7 WHEN + 85 THEN NULL WHEN 0 THEN - + 86 + 56 - 8 / + 29 + - ( - - 92 ) + - ( + COUNT ( ALL - 60 ) ) * COUNT ( * ) ELSE COUNT ( * ) * - COUNT ( * ) + CASE COUNT ( * ) WHEN - 55 THEN 76 * - 3 WHEN + 42 THEN + 54 / COUNT ( * ) + - 35 * 31 END END + 93 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1548
SELECT + 0 + + + COUNT( * ) - 50 * - 50 * + + 28 col1, + 18
----
70001
18

skipif mysql # not compatible
query II rowsort label-1548
SELECT + 0 + + + COUNT ( * ) - 50 * - 50 * + + 28 col1, + 18
----
70001
18

query I rowsort
SELECT - 83 - + 78 * + + 0 - 68 AS col0
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1550
SELECT - 84 * MIN( DISTINCT - - 53 ) - - 18 * - 24 + 0 DIV 22 AS col1
----
-4884

skipif mysql # not compatible
query I rowsort label-1550
SELECT - 84 * MIN ( DISTINCT - - 53 ) - - 18 * - 24 + 0 / 22 AS col1
----
-4884

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1551
SELECT 81 - + 40 + + 67 + - + CASE + - 93 WHEN + - 93 THEN NULLIF ( - + CASE - COUNT( * ) WHEN - 21 THEN NULL WHEN + CAST( 74 AS DECIMAL ) THEN 6 END, + 92 ) ELSE NULL END * + COUNT( DISTINCT + 19 * 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1551
SELECT 81 - + 40 + + 67 + - + CASE + - 93 WHEN + - 93 THEN NULLIF ( - + CASE - COUNT ( * ) WHEN - 21 THEN NULL WHEN + CAST ( 74 AS REAL ) THEN 6 END, + 92 ) ELSE NULL END * + COUNT ( DISTINCT + 19 * 72 ) AS col0
----
NULL

query II rowsort
SELECT ALL 66 - 31, 13 AS col1
----
35
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT MAX( DISTINCT + 26 ) * + 71 AS col2
----
1846

skipif mysql # not compatible
query I rowsort label-1553
SELECT MAX ( DISTINCT + 26 ) * + 71 AS col2
----
1846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1554
SELECT ALL - COALESCE ( + + CAST( NULL AS SIGNED ), - - 68 * 63 ) AS col1
----
-4284

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL - COALESCE ( + + CAST ( NULL AS INTEGER ), - - 68 * 63 ) AS col1
----
-4284

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1556
SELECT ALL - MIN( DISTINCT + - 77 ) AS col0, 84 AS col2
----
77
84

skipif mysql # not compatible
query II rowsort label-1556
SELECT ALL - MIN ( DISTINCT + - 77 ) AS col0, 84 AS col2
----
77
84

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

query I rowsort
SELECT - 99 * + ( + - 40 ) AS col1
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT + 67 * 27 + + CAST( NULL AS SIGNED ) * - + 57 * + 90 * - 22 / + - COALESCE ( 36, 55, + 76 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT + 67 * 27 + + CAST ( NULL AS INTEGER ) * - + 57 * + 90 * - 22 / + - COALESCE ( 36, 55, + 76 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1560
SELECT MAX( - + 45 ) + - 34 + - + CASE + 63 WHEN - 11 THEN NULL WHEN CAST( + 81 AS SIGNED ) THEN + 99 + + 92 * - 3 + - 64 - + - 26 * + 23 ELSE AVG ( - ( + 90 ) ) END * - CASE - 74 WHEN 98 THEN - COUNT( * ) WHEN 19 + COUNT( * ) THEN NULL WHEN - ( 93 ) + + COUNT( * ) THEN MAX( DISTINCT CAST( NULL AS SIGNED ) ) + + 13 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT MAX ( - + 45 ) + - 34 + - + CASE + 63 WHEN - 11 THEN NULL WHEN CAST ( + 81 AS INTEGER ) THEN + 99 + + 92 * - 3 + - 64 - + - 26 * + 23 ELSE AVG ( - ( + 90 ) ) END * - CASE - 74 WHEN 98 THEN - COUNT ( * ) WHEN 19 + COUNT ( * ) THEN NULL WHEN - ( 93 ) + + COUNT ( * ) THEN MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 13 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT ALL 8 DIV 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL 8 / 19 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1562
SELECT 80 / - COUNT ( * ) AS col1
----
-80

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

query I rowsort
SELECT DISTINCT 43 * - - NULLIF ( + 34, + - COALESCE ( 60, - 16 - + - 28 ) - - 58 * ( + - 3 ) ) col2
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL NULLIF ( - + 80, + 72 ) + - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL NULLIF ( - + 80, + 72 ) + - COUNT ( * )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1566
SELECT + 85 * + CASE CAST( - - 6 AS DECIMAL ) WHEN - - 87 * 70 * - 53 THEN COUNT( * ) / 60 * + 41 + - 61 END + + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1566
SELECT + 85 * + CASE CAST ( - - 6 AS REAL ) WHEN - - 87 * 70 * - 53 THEN COUNT ( * ) / 60 * + 41 + - 61 END + + 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT COUNT( * ) + - MAX( + 87 ) + 35 * - 14 + - - COUNT( * ) AS col0, + 11
----
-575
11

skipif mysql # not compatible
query II rowsort label-1567
SELECT COUNT ( * ) + - MAX ( + 87 ) + 35 * - 14 + - - COUNT ( * ) AS col0, + 11
----
-575
11

query I rowsort
SELECT DISTINCT 7 * - - 72
----
504

query I rowsort
SELECT ALL 42 + - - 95 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT 31 + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-1570
SELECT 31 + + COUNT ( * )
----
32

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1572
SELECT 41 + CAST( - 79 AS SIGNED ) + - MAX( - + 75 ) - - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1572
SELECT 41 + CAST ( - 79 AS INTEGER ) + - MAX ( - + 75 ) - - COUNT ( * ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT ALL - 8 + - CAST( NULL AS SIGNED ) - + 20 * - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL - 8 + - CAST ( NULL AS INTEGER ) - + 20 * - - 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1574
SELECT DISTINCT 47 * - CAST( 79 AS SIGNED ) * + 13 AS col0
----
-48269

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT 47 * - CAST ( 79 AS INTEGER ) * + 13 AS col0
----
-48269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1575
SELECT DISTINCT 65 + CAST( + 89 AS SIGNED ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT 65 + CAST ( + 89 AS INTEGER ) AS col2
----
154

query II rowsort
SELECT - 8, + 93 AS col2
----
-8
93

query II rowsort
SELECT ALL 10 col2, + 53 AS col0
----
10
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT 30 + 95 * + ( - 53 ) + + + COUNT( * ) + + 19
----
-4985

skipif mysql # not compatible
query I rowsort label-1578
SELECT 30 + 95 * + ( - 53 ) + + + COUNT ( * ) + + 19
----
-4985

query I rowsort
SELECT ALL 0 + + 88 - - + 6 AS col0
----
94

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

skipif mysql # not compatible
query I rowsort label-1580
SELECT 40 + - 37 * + ( + + COUNT ( * ) ) + + + 10 AS col0
----
13

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

query I rowsort
SELECT - CASE WHEN 89 NOT BETWEEN + + 19 AND - + 8 THEN 31 * + + NULLIF ( + + 86, + - CASE - - 22 WHEN - 40 THEN NULLIF ( + 19, - 73 ) ELSE NULL END ) * - 56 ELSE 75 * - 45 END
----
149296

query I rowsort
SELECT 14 * + - 73
----
-1022

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT 57 * + + COUNT( * ) * - - 93
----
5301

skipif mysql # not compatible
query I rowsort label-1584
SELECT 57 * + + COUNT ( * ) * - - 93
----
5301

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1586
SELECT COUNT( * ) DIV COUNT( DISTINCT + + 85 ) + + 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1586
SELECT COUNT ( * ) / COUNT ( DISTINCT + + 85 ) + + 92 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL - NULLIF ( 5, + COALESCE ( - 70, - 19 * - 82 * - 61 + + + 11 - - 44 ) * CAST( + + 10 AS SIGNED ) ) - + 13 * + + 32
----
-421

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - NULLIF ( 5, + COALESCE ( - 70, - 19 * - 82 * - 61 + + + 11 - - 44 ) * CAST ( + + 10 AS INTEGER ) ) - + 13 * + + 32
----
-421

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL - COUNT( ALL + 26 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - COUNT ( ALL + 26 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 30 * + + 64
----
1920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1592
SELECT ALL - ( + - CASE 43 WHEN + + 43 + 0 * + ( + 37 ) * 74 + - 43 THEN NULL WHEN 24 THEN 65 WHEN 26 * + NULLIF ( 12, - 89 * 12 ) + + CAST( NULL AS DECIMAL ) THEN - 92 * - 81 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL - ( + - CASE 43 WHEN + + 43 + 0 * + ( + 37 ) * 74 + - 43 THEN NULL WHEN 24 THEN 65 WHEN 26 * + NULLIF ( 12, - 89 * 12 ) + + CAST ( NULL AS REAL ) THEN - 92 * - 81 END ) AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1594
SELECT + 1 AS col1, + COUNT( * ) DIV + - 62 * + COUNT( * ) + 84 AS col0
----
1
84

skipif mysql # not compatible
query II rowsort label-1594
SELECT + 1 AS col1, + COUNT ( * ) / + - 62 * + COUNT ( * ) + 84 AS col0
----
1
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT 62 * - MIN( + COALESCE ( + 42, - 63 ) ) + COUNT( * )
----
-2603

skipif mysql # not compatible
query I rowsort label-1595
SELECT 62 * - MIN ( + COALESCE ( + 42, - 63 ) ) + COUNT ( * )
----
-2603

onlyif mysql # aggregate syntax: 
query II rowsort label-1596
SELECT + - 6 AS col0, ( + + COUNT( * ) ) * - 11 + - COUNT( DISTINCT 44 ) AS col0
----
-6
-12

skipif mysql # not compatible
query II rowsort label-1596
SELECT + - 6 AS col0, ( + + COUNT ( * ) ) * - 11 + - COUNT ( DISTINCT 44 ) AS col0
----
-6
-12

query II rowsort
SELECT ALL - - 40 AS col1, 37 AS col2
----
40
37

query I rowsort
SELECT + 23 * 87
----
2001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1599
SELECT 42 DIV + + 25 - - - 75 + + ( + COALESCE ( + 94, + + COUNT( * ) ) ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1599
SELECT 42 / + + 25 - - - 75 + + ( + COALESCE ( + 94, + + COUNT ( * ) ) ) AS col0
----
20

query I rowsort
SELECT + 6 + 28 col1
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL - 57 + - + 2 - MIN( - 19 ) + - 5
----
-45

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL - 57 + - + 2 - MIN ( - 19 ) + - 5
----
-45

query I rowsort
SELECT DISTINCT - NULLIF ( 5, + 38 )
----
-5

query I rowsort
SELECT ALL 2 + + 79
----
81

query II rowsort
SELECT 96 * + 99, + 17 AS col2
----
9504
17

query I rowsort
SELECT DISTINCT - 39 + - ( 69 ) AS col1
----
-108

query II rowsort
SELECT ALL - ( - 27 ) AS col0, 28
----
27
28

query I rowsort
SELECT ALL 66 + 57 col0
----
123

query I rowsort
SELECT DISTINCT ( - 17 ) + - 74
----
-91

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

skipif mysql # not compatible
query I rowsort label-1610
SELECT COUNT ( * ) / 99 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1611
SELECT DISTINCT SUM( - + 13 ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT SUM ( - + 13 ) / + 29
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT + 77 * 28 DIV - COUNT( * ) * - COUNT( * ) AS col0
----
2156

skipif mysql # not compatible
query I rowsort label-1612
SELECT + 77 * 28 / - COUNT ( * ) * - COUNT ( * ) AS col0
----
2156

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

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

query I rowsort
SELECT + 82 - 64 AS col0
----
18

query I rowsort
SELECT + 41 * 65
----
2665

query I rowsort
SELECT + 58 + + 4 AS col2
----
62

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

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

query I rowsort
SELECT ALL - 36 * - 59 * - 90
----
-191160

query I rowsort
SELECT + 32 + - 42
----
-10

query I rowsort
SELECT DISTINCT + + 6
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1621
SELECT ALL + 60 * - 98 * - 41 + + 48 DIV MAX( ALL + 64 ) DIV 52
----
241080

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL + 60 * - 98 * - 41 + + 48 / MAX ( ALL + 64 ) / 52
----
241080

onlyif mysql # DIV for integer division: 
query I rowsort label-1622
SELECT + - 54 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-1622
SELECT + - 54 / - 90
----
0

query I rowsort
SELECT - 90 * - 0 - + - 7 + 24 + - + ( + 96 ) AS col2
----
-65

query I rowsort
SELECT DISTINCT + + 58 * 24 + 4 AS col0
----
1396

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL - + 32 * - COUNT( * ) + + 8
----
40

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL - + 32 * - COUNT ( * ) + + 8
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1626
SELECT ALL 17 * - 65 DIV ( - COUNT( ALL - - 57 ) ) AS col0
----
1105

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL 17 * - 65 / ( - COUNT ( ALL - - 57 ) ) AS col0
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT - ( + MIN( - 6 ) ) * - 43
----
-258

skipif mysql # not compatible
query I rowsort label-1627
SELECT - ( + MIN ( - 6 ) ) * - 43
----
-258

query I rowsort
SELECT - 67 + + - 30 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1629
SELECT DISTINCT + COUNT( * ), + ( - + 13 ) col1
----
1
-13

skipif mysql # not compatible
query II rowsort label-1629
SELECT DISTINCT + COUNT ( * ), + ( - + 13 ) col1
----
1
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT + ( - CASE 17 WHEN - MAX( DISTINCT 45 ) THEN + 77 - 18 - - + 50 WHEN + 40 * + 1 THEN - 62 * - 47 + 57 + + + NULLIF ( - 33, COUNT( * ) / + 95 + 11 ) * 36 * + 56 WHEN - 10 * - 44 + + 74 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT + ( - CASE 17 WHEN - MAX ( DISTINCT 45 ) THEN + 77 - 18 - - + 50 WHEN + 40 * + 1 THEN - 62 * - 47 + 57 + + + NULLIF ( - 33, COUNT ( * ) / + 95 + 11 ) * 36 * + 56 WHEN - 10 * - 44 + + 74 THEN NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1631
SELECT NULLIF ( - + 53, - - COUNT( * ) * + 30 * - + 63 * - 60 + + CAST( NULL AS DECIMAL ) + + + MIN( 7 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-1631
SELECT NULLIF ( - + 53, - - COUNT ( * ) * + 30 * - + 63 * - 60 + + CAST ( NULL AS REAL ) + + + MIN ( 7 ) )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1632
SELECT - COUNT( * ) + + COUNT( * ) DIV 5 * + 82 DIV - 78
----
-1

skipif mysql # not compatible
query I rowsort label-1632
SELECT - COUNT ( * ) + + COUNT ( * ) / 5 * + 82 / - 78
----
-1

query I rowsort
SELECT - 54 * 93
----
-5022

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1634
SELECT DISTINCT + 43 * + 68 DIV - - COUNT( * ) + 36 * + - 98 AS col2
----
-604

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT + 43 * + 68 / - - COUNT ( * ) + 36 * + - 98 AS col2
----
-604

query I rowsort
SELECT - 25 + - CASE - 64 WHEN - - 82 THEN NULL ELSE - + 24 END + - 48 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT + MIN( - - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-1636
SELECT + MIN ( - - 47 )
----
47

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

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL 70 * - COUNT ( * ) - - + 70 AS col2
----
0

query I rowsort
SELECT ALL - 81 * ( - 34 ) AS col0
----
2754

query II rowsort
SELECT - 18 + - 19 + + ( - + 40 ) * - 25 AS col0, 55 AS col1
----
963
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1640
SELECT ALL + MAX( + + 42 ) * 30 AS col0, + 3
----
1260
3

skipif mysql # not compatible
query II rowsort label-1640
SELECT ALL + MAX ( + + 42 ) * 30 AS col0, + 3
----
1260
3

query I rowsort
SELECT ALL + ( 64 ) * + 40 AS col1
----
2560

query I rowsort
SELECT - 82 * 54
----
-4428

query I rowsort
SELECT + 47 + ( 33 ) AS col0
----
80

query I rowsort
SELECT - 17 * + 57 * - 23
----
22287

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1646
SELECT + + CAST( NULL AS DECIMAL ) * - 36 + - 3 - - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1646
SELECT + + CAST ( NULL AS REAL ) * - 36 + - 3 - - 49 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT ALL 33 DIV + 19 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL 33 / + 19 AS col1
----
1

query I rowsort
SELECT + 2 + - ( + + 17 ) + + + 6
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT + COUNT( * ) + - - CAST( + CASE 45 WHEN 80 + - COUNT( * ) THEN + + 44 * + - 37 * - + CAST( - 67 AS SIGNED ) * 6 + 51 * + CAST( + 59 AS SIGNED ) * + - 98 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT + COUNT ( * ) + - - CAST ( + CASE 45 WHEN 80 + - COUNT ( * ) THEN + + 44 * + - 37 * - + CAST ( - 67 AS INTEGER ) * 6 + 51 * + CAST ( + 59 AS INTEGER ) * + - 98 END AS INTEGER ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT - CASE - 3 WHEN - + 78 THEN 20 WHEN 97 THEN NULL ELSE - - CAST( - - 3 AS SIGNED ) END col2
----
-3

skipif mysql # not compatible
query I rowsort label-1651
SELECT - CASE - 3 WHEN - + 78 THEN 20 WHEN 97 THEN NULL ELSE - - CAST ( - - 3 AS INTEGER ) END col2
----
-3

query I rowsort
SELECT ALL + 80 + 27
----
107

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

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

query I rowsort
SELECT + + 25 * - - ( ( - - 42 ) ) AS col1
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT ALL + 85 DIV + 66 + - + 26 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL + 85 / + 66 + - + 26 AS col0
----
-25

query II rowsort
SELECT - 19 AS col2, - 90 col2
----
-19
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1657
SELECT ALL + - 88 DIV 61 * + 84 + MAX( + 39 )
----
-45

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + - 88 / 61 * + 84 + MAX ( + 39 )
----
-45

query I rowsort
SELECT ALL + - NULLIF ( + 60, NULLIF ( - - 57, 8 * + 84 / - 92 ) )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT DISTINCT - 70 DIV + 56 * + COUNT( * ) + + COUNT( * ) * + 52 + - 76 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT - 70 / + 56 * + COUNT ( * ) + + COUNT ( * ) * + 52 + - 76 AS col2
----
-25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1661
SELECT DISTINCT 64 / COUNT( * ) + - 61 + + CAST( NULL AS SIGNED ) + + + 28 * ( - 4 ) * + MAX( + 86 ) + 75 AS col1, - MAX( ALL + 20 ) - - CASE + 10 WHEN + + 28 THEN - 2 / 95 WHEN - 60 * - 97 THEN NULL ELSE CAST( NULL AS SIGNED ) + COUNT( * ) END + COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1661
SELECT DISTINCT 64 / COUNT ( * ) + - 61 + + CAST ( NULL AS INTEGER ) + + + 28 * ( - 4 ) * + MAX ( + 86 ) + 75 AS col1, - MAX ( ALL + 20 ) - - CASE + 10 WHEN + + 28 THEN - 2 / 95 WHEN - 60 * - 97 THEN NULL ELSE CAST ( NULL AS INTEGER ) + COUNT ( * ) END + COUNT ( * ) AS col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1662
SELECT CAST( NULL AS SIGNED ) col0, - 56 * - 21 + + - 28
----
NULL
1148

skipif mysql # not compatible
query II rowsort label-1662
SELECT CAST ( NULL AS INTEGER ) col0, - 56 * - 21 + + - 28
----
NULL
1148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1663
SELECT ALL - ( + + 63 ) / - CASE - - 95 WHEN + 64 / - 39 THEN 90 END + - 78 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL - ( + + 63 ) / - CASE - - 95 WHEN + 64 / - 39 THEN 90 END + - 78 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 73 * 63 - - 49 AS col2
----
4648

query I rowsort
SELECT DISTINCT + ( - 54 ) * - 33 + + 47
----
1829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1666
SELECT ALL CAST( + + 89 AS SIGNED ) DIV + + 98 - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL CAST ( + + 89 AS INTEGER ) / + + 98 - - COUNT ( * ) AS col1
----
1

query II rowsort
SELECT DISTINCT + 47, - ( - ( - 35 ) ) AS col2
----
47
-35

query I rowsort
SELECT ALL + 49 * - 84 AS col1
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT ALL - ( - 91 ) - + ( + COUNT( * ) )
----
90

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL - ( - 91 ) - + ( + COUNT ( * ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT - COALESCE ( NULLIF ( MIN( ALL 99 ), + CASE COUNT( * ) WHEN + + NULLIF ( - + AVG ( 50 ), SUM( + - 13 ) * - 83 + - 48 ) + COALESCE ( + - 69, + 7 * - 1 + - 7 ) THEN NULL WHEN SUM( ALL 88 ) + + 25 THEN 4 ELSE NULL END ), 71 + + 42 ) * - 41 - + 32 col1
----
4027

skipif mysql # not compatible
query I rowsort label-1670
SELECT - COALESCE ( NULLIF ( MIN ( ALL 99 ), + CASE COUNT ( * ) WHEN + + NULLIF ( - + AVG ( 50 ), SUM ( + - 13 ) * - 83 + - 48 ) + COALESCE ( + - 69, + 7 * - 1 + - 7 ) THEN NULL WHEN SUM ( ALL 88 ) + + 25 THEN 4 ELSE NULL END ), 71 + + 42 ) * - 41 - + 32 col1
----
4027

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL - CASE + - CASE + NULLIF ( 78, - - 70 - - - 42 * - NULLIF ( - 62, COUNT( * ) * - 59 + + 45 ) + + + 88 ) WHEN - COUNT( + + 86 ) THEN - + COUNT( * ) / - + 43 * 83 END WHEN - 66 THEN - 87 * 66 + 97 WHEN 20 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - CASE + - CASE + NULLIF ( 78, - - 70 - - - 42 * - NULLIF ( - 62, COUNT ( * ) * - 59 + + 45 ) + + + 88 ) WHEN - COUNT ( + + 86 ) THEN - + COUNT ( * ) / - + 43 * 83 END WHEN - 66 THEN - 87 * 66 + 97 WHEN 20 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1672
SELECT 28 AS col0, 29 * COUNT( * ) DIV + 76
----
28
0

skipif mysql # not compatible
query II rowsort label-1672
SELECT 28 AS col0, 29 * COUNT ( * ) / + 76
----
28
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT 24 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT 24 / 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT 59 DIV 40
----
1

skipif mysql # not compatible
query I rowsort label-1674
SELECT 59 / 40
----
1

query I rowsort
SELECT 30 * - 79
----
-2370

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1676
SELECT 41, CASE + + 73 WHEN - - 88 THEN + 15 WHEN - 15 * 90 + + 52 - + 81 * 12 / - + 60 THEN NULL WHEN 64 * 9 / - ( - + CAST( + 73 AS DECIMAL ) ) * COUNT( * ) THEN NULL END AS col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-1676
SELECT 41, CASE + + 73 WHEN - - 88 THEN + 15 WHEN - 15 * 90 + + 52 - + 81 * 12 / - + 60 THEN NULL WHEN 64 * 9 / - ( - + CAST ( + 73 AS REAL ) ) * COUNT ( * ) THEN NULL END AS col1
----
41
NULL

query I rowsort
SELECT 69 * 32
----
2208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1678
SELECT DISTINCT - 5 DIV + COALESCE ( 76, + + 10 * - NULLIF ( - 42, - COUNT( * ) ) + + 51, - 70 ) * 9 * - COALESCE ( 88, - + SUM( - - 82 ) + 73 + 83, - 85 DIV 7, + 22 + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - 5 / + COALESCE ( 76, + + 10 * - NULLIF ( - 42, - COUNT ( * ) ) + + 51, - 70 ) * 9 * - COALESCE ( 88, - + SUM ( - - 82 ) + 73 + 83, - 85 / 7, + 22 + 90 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1680
SELECT ALL + COUNT( * ) AS col1, + AVG ( - 63 ) * - - ( + NULLIF ( - 32, - + 51 ) ) + - 95 + + + 73 + - CAST( NULL AS SIGNED ) * + 36 * - 81 + MAX( DISTINCT 13 ) col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1680
SELECT ALL + COUNT ( * ) AS col1, + AVG ( - 63 ) * - - ( + NULLIF ( - 32, - + 51 ) ) + - 95 + + + 73 + - CAST ( NULL AS INTEGER ) * + 36 * - 81 + MAX ( DISTINCT 13 ) col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1681
SELECT DISTINCT - COUNT( * ) + 7 - - 35 + - - COUNT( + + 46 ) / + CAST( NULL AS SIGNED ) * + + 54 / + + ( - 26 ) AS col2, + 41 AS col0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-1681
SELECT DISTINCT - COUNT ( * ) + 7 - - 35 + - - COUNT ( + + 46 ) / + CAST ( NULL AS INTEGER ) * + + 54 / + + ( - 26 ) AS col2, + 41 AS col0
----
NULL
41

query I rowsort
SELECT ALL - 53 * 87
----
-4611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1683
SELECT - - CASE + COUNT( * ) WHEN - MIN( DISTINCT 97 ) + - CAST( - CASE + ( + ( - COUNT( * ) ) ) WHEN COALESCE ( 77, - 81 + + 37 + ( - COALESCE ( - ( - 1 ), 51 ) ) / 92, - 74, CASE 23 WHEN + 93 THEN NULL WHEN - 45 * 52 THEN NULL ELSE + 23 + 18 / COUNT( * ) END * 61 + + 66 * 49 ) + COUNT( * ) * - 44 THEN + 12 ELSE NULL END AS SIGNED ) THEN + 28 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1683
SELECT - - CASE + COUNT ( * ) WHEN - MIN ( DISTINCT 97 ) + - CAST ( - CASE + ( + ( - COUNT ( * ) ) ) WHEN COALESCE ( 77, - 81 + + 37 + ( - COALESCE ( - ( - 1 ), 51 ) ) / 92, - 74, CASE 23 WHEN + 93 THEN NULL WHEN - 45 * 52 THEN NULL ELSE + 23 + 18 / COUNT ( * ) END * 61 + + 66 * 49 ) + COUNT ( * ) * - 44 THEN + 12 ELSE NULL END AS INTEGER ) THEN + 28 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL - - ( - + COUNT( * ) ) + + - SUM( + - 8 ) + - + 67 - + 13 * + + 99 AS col1
----
-1347

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL - - ( - + COUNT ( * ) ) + + - SUM ( + - 8 ) + - + 67 - + 13 * + + 99 AS col1
----
-1347

query II rowsort
SELECT 64, 93 + 58 col1
----
64
151

query I rowsort
SELECT + 27 * 38
----
1026

query I rowsort
SELECT - 67 + + 48
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1688
SELECT - COUNT( * ) - 34, + 11 AS col0
----
-35
11

skipif mysql # not compatible
query II rowsort label-1688
SELECT - COUNT ( * ) - 34, + 11 AS col0
----
-35
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT - CAST( - - 22 AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1689
SELECT - CAST ( - - 22 AS INTEGER ) AS col0
----
-22

query I rowsort
SELECT 60 + + 86
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT - 94 + - - 50 + - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-1691
SELECT - 94 + - - 50 + - COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT - + ( + MAX( - ( + 40 ) ) ) + + + 17 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - + ( + MAX ( - ( + 40 ) ) ) + + + 17 AS col0
----
57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1694
SELECT ALL 46 + 64 * - COUNT( - 2 ), 86 col2
----
-18
86

skipif mysql # not compatible
query II rowsort label-1694
SELECT ALL 46 + 64 * - COUNT ( - 2 ), 86 col2
----
-18
86

query I rowsort
SELECT + 16 + - 51
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-1696
SELECT ALL + 27 AS col1, COUNT( * ) * + 28 AS col0
----
27
28

skipif mysql # not compatible
query II rowsort label-1696
SELECT ALL + 27 AS col1, COUNT ( * ) * + 28 AS col0
----
27
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT + + COUNT( * ) + - SUM( ALL + 55 ) * + 15
----
-824

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + + COUNT ( * ) + - SUM ( ALL + 55 ) * + 15
----
-824

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL + 77 * NULLIF ( - - COUNT( * ), - 89 ) - 72
----
5

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL + 77 * NULLIF ( - - COUNT ( * ), - 89 ) - 72
----
5

query I rowsort
SELECT - NULLIF ( 77, - 78 )
----
-77

query I rowsort
SELECT - - 95 * - 33 + - 30 AS col2
----
-3165

query I rowsort
SELECT 89 + + 54
----
143

query II rowsort
SELECT 25 * - 71 AS col2, 59 col0
----
-1775
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT + 6 * COUNT( * ) * 8 + + 98
----
146

skipif mysql # not compatible
query I rowsort label-1703
SELECT + 6 * COUNT ( * ) * 8 + + 98
----
146

query I rowsort
SELECT ( + + ( - 35 ) ) - 4 AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1705
SELECT 99 DIV + 24 + - - COUNT( * ) + + 22 * COUNT( * ) AS col2, - 81
----
27
-81

skipif mysql # not compatible
query II rowsort label-1705
SELECT 99 / + 24 + - - COUNT ( * ) + + 22 * COUNT ( * ) AS col2, - 81
----
27
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT ALL - MAX( + 24 ) * + + 88 + - 17 + + COUNT( * ) AS col2, + 88
----
-2128
88

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL - MAX ( + 24 ) * + + 88 + - 17 + + COUNT ( * ) AS col2, + 88
----
-2128
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT DISTINCT COUNT( * ) * - 2 * + CASE - 44 WHEN - 81 + - COUNT( * ) + + + 4 THEN NULL WHEN + 65 + - 35 THEN - 7 / 64 + + NULLIF ( + + 10, - - 90 * + 95 * 94 - + 11 / - 30 ) + + 60 * - CASE - ( + 92 ) WHEN - SUM( - COALESCE ( 52, 76 + - 88 * - 81 ) ) + + 80 THEN NULL ELSE + 83 + + 29 * - 21 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT COUNT ( * ) * - 2 * + CASE - 44 WHEN - 81 + - COUNT ( * ) + + + 4 THEN NULL WHEN + 65 + - 35 THEN - 7 / 64 + + NULLIF ( + + 10, - - 90 * + 95 * 94 - + 11 / - 30 ) + + 60 * - CASE - ( + 92 ) WHEN - SUM ( - COALESCE ( 52, 76 + - 88 * - 81 ) ) + + 80 THEN NULL ELSE + 83 + + 29 * - 21 END END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1709
SELECT ( - 35 ) * 10 col1, ( SUM( + - 84 ) ) AS col1
----
-350
-84

skipif mysql # not compatible
query II rowsort label-1709
SELECT ( - 35 ) * 10 col1, ( SUM ( + - 84 ) ) AS col1
----
-350
-84

query I rowsort
SELECT - 68 * + - 84 + 81
----
5793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1711
SELECT ( - - 90 ) * COALESCE ( 59, - - 7 ) * + 14 * + ( - CAST( + 32 AS SIGNED ) ) AS col2
----
-2378880

skipif mysql # not compatible
query I rowsort label-1711
SELECT ( - - 90 ) * COALESCE ( 59, - - 7 ) * + 14 * + ( - CAST ( + 32 AS INTEGER ) ) AS col2
----
-2378880

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

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT - SUM ( 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT COUNT( * ) + + 6 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1713
SELECT COUNT ( * ) + + 6 AS col2
----
7

query I rowsort
SELECT 69 + 56
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1715
SELECT 40 * CASE SUM( 48 ) WHEN + 70 + - 74 / + 99 + - 24 + CASE MAX( - CAST( + 79 AS SIGNED ) ) WHEN - + 66 * - + ( - 86 ) + - COUNT( * ) THEN NULL ELSE + - 31 END THEN + COALESCE ( 60, + 33 ) * 33 ELSE + 75 END AS col1
----
3000

skipif mysql # not compatible
query I rowsort label-1715
SELECT 40 * CASE SUM ( 48 ) WHEN + 70 + - 74 / + 99 + - 24 + CASE MAX ( - CAST ( + 79 AS INTEGER ) ) WHEN - + 66 * - + ( - 86 ) + - COUNT ( * ) THEN NULL ELSE + - 31 END THEN + COALESCE ( 60, + 33 ) * 33 ELSE + 75 END AS col1
----
3000

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1716
SELECT DISTINCT 35 DIV 59 AS col2, - COUNT( + + NULLIF ( 92, 93 * 12 + 38 ) ) col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-1716
SELECT DISTINCT 35 / 59 AS col2, - COUNT ( + + NULLIF ( 92, 93 * 12 + 38 ) ) col1
----
0
-1

query I rowsort
SELECT ( + + ( - 87 ) ) + - - 74
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-1718
SELECT DISTINCT 50 + - 33 + - 60 * + SUM( - 5 ) * - 86 * + 18, - 8 + - 45 AS col2
----
-464383
-53

skipif mysql # not compatible
query II rowsort label-1718
SELECT DISTINCT 50 + - 33 + - 60 * + SUM ( - 5 ) * - 86 * + 18, - 8 + - 45 AS col2
----
-464383
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1719
SELECT ALL COUNT( ALL - 57 ) + 3 DIV - + CAST( + 74 AS SIGNED ) * 96 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL COUNT ( ALL - 57 ) + 3 / - + CAST ( + 74 AS INTEGER ) * 96 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT + 98 + + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-1720
SELECT + 98 + + COUNT ( * )
----
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1722
SELECT 96 + - 51 + - 17 * - - 96 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT 96 + - 51 + - 17 * - - 96 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 26 + + 25 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT ALL + CAST( + 55 AS SIGNED ) + - MIN( + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL + CAST ( + 55 AS INTEGER ) + - MIN ( + 55 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT ALL - 72 + 18 AS col1, - ( + MAX( + 13 ) )
----
-54
-13

skipif mysql # not compatible
query II rowsort label-1725
SELECT ALL - 72 + 18 AS col1, - ( + MAX ( + 13 ) )
----
-54
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1726
SELECT DISTINCT - 61 DIV - 73 AS col1, + NULLIF ( + 36, + 31 DIV 9 - + - CASE ( - - 53 ) WHEN 62 THEN + 7 + - + COALESCE ( CASE + CAST( - 86 AS DECIMAL ) WHEN + - 36 THEN - + 82 + + 90 WHEN CAST( NULL AS SIGNED ) DIV CASE + 17 WHEN + 78 + + ( ( - 33 ) ) * 98 THEN 80 END + 3 * COUNT( * ) THEN NULL END, + 65, - 6 ) ELSE + 60 * - COUNT( * ) END - 88 ) * + 86 + + 21
----
0
3117

skipif mysql # not compatible
query II rowsort label-1726
SELECT DISTINCT - 61 / - 73 AS col1, + NULLIF ( + 36, + 31 / 9 - + - CASE ( - - 53 ) WHEN 62 THEN + 7 + - + COALESCE ( CASE + CAST ( - 86 AS REAL ) WHEN + - 36 THEN - + 82 + + 90 WHEN CAST ( NULL AS INTEGER ) / CASE + 17 WHEN + 78 + + ( ( - 33 ) ) * 98 THEN 80 END + 3 * COUNT ( * ) THEN NULL END, + 65, - 6 ) ELSE + 60 * - COUNT ( * ) END - 88 ) * + 86 + + 21
----
0
3117

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL - COUNT( * ) + + 18 col2
----
17

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL - COUNT ( * ) + + 18 col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1729
SELECT ALL - + COUNT( * ) - - 46, 38 * - + 92 AS col0
----
45
-3496

skipif mysql # not compatible
query II rowsort label-1729
SELECT ALL - + COUNT ( * ) - - 46, 38 * - + 92 AS col0
----
45
-3496

onlyif mysql # aggregate syntax: 
query II rowsort label-1730
SELECT - 67 - ( - + 19 ), MAX( - 57 ) AS col0
----
-48
-57

skipif mysql # not compatible
query II rowsort label-1730
SELECT - 67 - ( - + 19 ), MAX ( - 57 ) AS col0
----
-48
-57

query I rowsort
SELECT DISTINCT - 20 * - 2 col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1732
SELECT DISTINCT CASE + CASE + 47 WHEN - - 50 THEN NULL WHEN 21 THEN - 40 ELSE - 74 + - 84 END WHEN + MAX( DISTINCT 4 ) THEN - - 42 * - - 8 + + 78 * + - 90 * 14 WHEN - 24 THEN NULL END AS col2, - 45 - - + MIN( - 96 ) - + CAST( MIN( ALL - ( + 98 ) ) AS SIGNED ) / CASE - COUNT( * ) + - 11 WHEN - 14 THEN 84 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1732
SELECT DISTINCT CASE + CASE + 47 WHEN - - 50 THEN NULL WHEN 21 THEN - 40 ELSE - 74 + - 84 END WHEN + MAX ( DISTINCT 4 ) THEN - - 42 * - - 8 + + 78 * + - 90 * 14 WHEN - 24 THEN NULL END AS col2, - 45 - - + MIN ( - 96 ) - + CAST ( MIN ( ALL - ( + 98 ) ) AS INTEGER ) / CASE - COUNT ( * ) + - 11 WHEN - 14 THEN 84 ELSE NULL END
----
NULL
NULL

query I rowsort
SELECT 5 * 40 AS col0
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT COALESCE ( - 41, - CAST( NULL AS SIGNED ), - 28 + + + MIN( COALESCE ( 59, + 39 ) ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1734
SELECT COALESCE ( - 41, - CAST ( NULL AS INTEGER ), - 28 + + + MIN ( COALESCE ( 59, + 39 ) ) ) AS col0
----
-41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1736
SELECT ALL + CASE + 2 WHEN - CAST( AVG ( DISTINCT 75 ) AS SIGNED ) - + CASE + - 93 WHEN + 50 * + 56 THEN + + COUNT( * ) ELSE 60 + + 86 / + 33 * + 73 END THEN - 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL + CASE + 2 WHEN - CAST ( AVG ( DISTINCT 75 ) AS INTEGER ) - + CASE + - 93 WHEN + 50 * + 56 THEN + + COUNT ( * ) ELSE 60 + + 86 / + 33 * + 73 END THEN - 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT ALL + 53 AS col0, COUNT( * ) + + COUNT( * )
----
53
2

skipif mysql # not compatible
query II rowsort label-1737
SELECT ALL + 53 AS col0, COUNT ( * ) + + COUNT ( * )
----
53
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1738
SELECT - 78 DIV + 17 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1738
SELECT - 78 / + 17 AS col2
----
-4

query I rowsort
SELECT ALL 90 * 53 AS col0
----
4770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1740
SELECT MAX( DISTINCT 49 ) * - CAST( NULL AS SIGNED ) * - 52 + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT MAX ( DISTINCT 49 ) * - CAST ( NULL AS INTEGER ) * - 52 + - 29 AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1743
SELECT CASE + - NULLIF ( - AVG ( ALL 98 ), - + 98 + - 71 ) WHEN + CAST( NULL AS SIGNED ) + + 66 - + + 41 + - NULLIF ( 75, + 4 + 44 * + ( + ( 62 ) ) ) THEN 8 WHEN + ( 89 ) / - MAX( DISTINCT + 56 ) THEN 24 + + ( - 9 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT CASE + - NULLIF ( - AVG ( ALL 98 ), - + 98 + - 71 ) WHEN + CAST ( NULL AS INTEGER ) + + 66 - + + 41 + - NULLIF ( 75, + 4 + 44 * + ( + ( 62 ) ) ) THEN 8 WHEN + ( 89 ) / - MAX ( DISTINCT + 56 ) THEN 24 + + ( - 9 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1744
SELECT ALL - COUNT( * ) DIV + ( 42 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL - COUNT ( * ) / + ( 42 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT - 42 DIV - + 70 * COALESCE ( + 13, ( 47 ) * + - 26 * + 62 + - 52, - 86 * - 38 - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-1745
SELECT - 42 / - + 70 * COALESCE ( + 13, ( 47 ) * + - 26 * + 62 + - 52, - 86 * - 38 - 92 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT + 48 DIV - 27 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 48 / - 27 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL MAX( - - 19 ) * - 49 + + + 71 AS col0
----
-860

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL MAX ( - - 19 ) * - 49 + + + 71 AS col0
----
-860

query I rowsort
SELECT - 60 * + 62
----
-3720

query I rowsort
SELECT - 94 + - + 19 AS col0
----
-113

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1750
SELECT DISTINCT + CAST( - CASE - - 91 WHEN AVG ( ALL + 78 ) THEN + CASE + 61 WHEN - + 8 * - 69 * + + SUM( - - 55 ) + 0 + - - 38 THEN - COUNT( * ) END * - + ( - - 4 ) / + 76 / + + 67 * 5 + COUNT( * ) + + MAX( ALL ( - 34 ) ) WHEN COUNT( * ) THEN + 0 + - 18 * - NULLIF ( 77 + 7, 47 * 45 ) ELSE NULL END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT + CAST ( - CASE - - 91 WHEN AVG ( ALL + 78 ) THEN + CASE + 61 WHEN - + 8 * - 69 * + + SUM ( - - 55 ) + 0 + - - 38 THEN - COUNT ( * ) END * - + ( - - 4 ) / + 76 / + + 67 * 5 + COUNT ( * ) + + MAX ( ALL ( - 34 ) ) WHEN COUNT ( * ) THEN + 0 + - 18 * - NULLIF ( 77 + 7, 47 * 45 ) ELSE NULL END AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT ALL 95 * - 21 + - CAST( - 38 AS SIGNED ) AS col2
----
-1957

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL 95 * - 21 + - CAST ( - 38 AS INTEGER ) AS col2
----
-1957

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT + MIN( ALL + + NULLIF ( - 69, - - 69 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-1752
SELECT + MIN ( ALL + + NULLIF ( - 69, - - 69 ) )
----
-69

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

skipif mysql # not compatible
query I rowsort label-1753
SELECT SUM ( DISTINCT 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1754
SELECT ALL CAST( NULL AS SIGNED ) * COALESCE ( + 38, - COUNT( * ) ) * - - 22 + + - 27 * + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL CAST ( NULL AS INTEGER ) * COALESCE ( + 38, - COUNT ( * ) ) * - - 22 + + - 27 * + 38 AS col0
----
NULL

query I rowsort
SELECT COALESCE ( + 22, - ( - + 73 ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT + - 37 - - 31 - + SUM( ALL + - 53 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1756
SELECT + - 37 - - 31 - + SUM ( ALL + - 53 ) AS col2
----
47

query II rowsort
SELECT - 53 AS col1, - 95 AS col0
----
-53
-95

query I rowsort
SELECT + - CASE WHEN ( + 92 ) = NULL THEN + 30 END * 97 + - - 42 + 15
----
NULL

query I rowsort
SELECT ALL + 1 + 95 * 80
----
7601

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT + ( 83 ) - COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-1760
SELECT + ( 83 ) - COUNT ( * ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT ALL - 32 * - + SUM( DISTINCT - 59 ) * + 40
----
-75520

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL - 32 * - + SUM ( DISTINCT - 59 ) * + 40
----
-75520

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1763
SELECT - + COALESCE ( 52, + CAST( NULL AS SIGNED ) * - CASE + MIN( DISTINCT 26 ) WHEN + 45 THEN + COUNT( * ) * + 23 * + 67 WHEN - + 7 THEN - COALESCE ( + + SUM( ALL 66 ), + 2 ) * + - 33 + - CAST( NULL AS SIGNED ) - + + 96 + - 92 WHEN 87 THEN 71 * 30 ELSE 66 END )
----
-52

skipif mysql # not compatible
query I rowsort label-1763
SELECT - + COALESCE ( 52, + CAST ( NULL AS INTEGER ) * - CASE + MIN ( DISTINCT 26 ) WHEN + 45 THEN + COUNT ( * ) * + 23 * + 67 WHEN - + 7 THEN - COALESCE ( + + SUM ( ALL 66 ), + 2 ) * + - 33 + - CAST ( NULL AS INTEGER ) - + + 96 + - 92 WHEN 87 THEN 71 * 30 ELSE 66 END )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1764
SELECT COUNT( * ) col1, + 77
----
1
77

skipif mysql # not compatible
query II rowsort label-1764
SELECT COUNT ( * ) col1, + 77
----
1
77

query I rowsort
SELECT ALL 68 - 26 AS col0
----
42

query I rowsort
SELECT ALL - 82 * - 19
----
1558

query I rowsort
SELECT + 51 + - ( 94 ) - + - 64 * + 50
----
3157

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT - - SUM( - 0 ) - + 21
----
-21

skipif mysql # not compatible
query I rowsort label-1769
SELECT - - SUM ( - 0 ) - + 21
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1770
SELECT ALL + - 7 DIV - COALESCE ( + + 96, 51 + 60 + + + COUNT( * ) DIV + - COUNT( DISTINCT 58 ) * - 5, 5 * COUNT( * ) + + 75 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL + - 7 / - COALESCE ( + + 96, 51 + 60 + + + COUNT ( * ) / + - COUNT ( DISTINCT 58 ) * - 5, 5 * COUNT ( * ) + + 75 ) col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1771
SELECT + + CAST( NULL AS DECIMAL ) + - 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT + + CAST ( NULL AS REAL ) + - 0 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT ALL + + 82 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL + + 82 / + 92
----
0

query I rowsort
SELECT + + 94 * + ( - - 20 ) - + 63
----
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT - - COUNT( * ) + NULLIF ( + + 54, + + 16 * - - 51 )
----
55

skipif mysql # not compatible
query I rowsort label-1774
SELECT - - COUNT ( * ) + NULLIF ( + + 54, + + 16 * - - 51 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT ALL COALESCE ( COUNT( * ), + + CAST( + 59 AS SIGNED ) + 87, 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL COALESCE ( COUNT ( * ), + + CAST ( + 59 AS INTEGER ) + 87, 89 ) AS col2
----
1

query I rowsort
SELECT - 2 * ( - 7 ) AS col2
----
14

query I rowsort
SELECT - 78 + - + 62
----
-140

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL - NULLIF ( + ( - - COUNT( * ) ), - + 54 - - + MIN( + + 39 ) * + COUNT( * ) - - 51 + + 81 ) * - - 71 * - 3
----
213

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - NULLIF ( + ( - - COUNT ( * ) ), - + 54 - - + MIN ( + + 39 ) * + COUNT ( * ) - - 51 + + 81 ) * - - 71 * - 3
----
213

query I rowsort
SELECT - 54 + + ( + 60 )
----
6

query I rowsort
SELECT ALL COALESCE ( + + 3, + - 17 * - 2 * - 7 + + 92 - 42 ) AS col1
----
3

query I rowsort
SELECT - 72 * + + 56 AS col1
----
-4032

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

query I rowsort
SELECT - 36 * + + 86 AS col1
----
-3096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1785
SELECT + ( - 50 ) + - COUNT( * ) * 35 + ( ( CAST( 44 AS SIGNED ) ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1785
SELECT + ( - 50 ) + - COUNT ( * ) * 35 + ( ( CAST ( 44 AS INTEGER ) ) ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL + COALESCE ( ( + 42 ), + NULLIF ( + + 21, - COUNT( - - 55 ) ) )
----
42

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL + COALESCE ( ( + 42 ), + NULLIF ( + + 21, - COUNT ( - - 55 ) ) )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1787
SELECT DISTINCT - 47 DIV 78 + MAX( - + 40 ) + 22 * + 11 * COALESCE ( - 32, - 34, COUNT( * ) * - 35 + - - 57 ) AS col0, 74 * + 53
----
-7784
3922

skipif mysql # not compatible
query II rowsort label-1787
SELECT DISTINCT - 47 / 78 + MAX ( - + 40 ) + 22 * + 11 * COALESCE ( - 32, - 34, COUNT ( * ) * - 35 + - - 57 ) AS col0, 74 * + 53
----
-7784
3922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT DISTINCT 3 * - + 52 * + 44 + CAST( COUNT( ALL + 24 ) AS SIGNED )
----
-6863

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT 3 * - + 52 * + 44 + CAST ( COUNT ( ALL + 24 ) AS INTEGER )
----
-6863

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL + NULLIF ( - + 82, + MIN( DISTINCT + + 57 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL + NULLIF ( - + 82, + MIN ( DISTINCT + + 57 ) )
----
-82

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT DISTINCT + 83 DIV - 38 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1792
SELECT DISTINCT + 83 / - 38 AS col2
----
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT 91 * - COUNT( * ) + - 60 + - - 80 col0
----
-71

skipif mysql # not compatible
query I rowsort label-1794
SELECT 91 * - COUNT ( * ) + - 60 + - - 80 col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT - - 33 * - + CASE - 49 WHEN + + 27 THEN + 24 WHEN 15 * + 81 * - + ( 74 ) THEN - 71 + - - 75 ELSE NULL END * - - COUNT( * ) * 77 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT - - 33 * - + CASE - 49 WHEN + + 27 THEN + 24 WHEN 15 * + 81 * - + ( 74 ) THEN - 71 + - - 75 ELSE NULL END * - - COUNT ( * ) * 77 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1796
SELECT + - CAST( NULL AS SIGNED ) * 14 * - 51 + MAX( - 28 ) * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT + - CAST ( NULL AS INTEGER ) * 14 * - 51 + MAX ( - 28 ) * - 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1797
SELECT - + 16 + - 95 + CAST( NULL AS SIGNED ) + + + 79 + + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT - + 16 + - 95 + CAST ( NULL AS INTEGER ) + + + 79 + + 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT + 3 DIV 88 * 32 * + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1798
SELECT + 3 / 88 * 32 * + 96 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), - - 1 * COUNT( * ), 22 * - - 99 + - - 75 * 70 )
----
1

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), - - 1 * COUNT ( * ), 22 * - - 99 + - - 75 * 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL + - 43 * + + 14 + SUM( ALL 57 )
----
-545

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + - 43 * + + 14 + SUM ( ALL 57 )
----
-545

query I rowsort
SELECT DISTINCT 80 * 43 - - 6 + + 63 * + 94 + 98 AS col2
----
9466

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT ALL 18 * + COUNT( * ) * - + 60 - - + ( + 32 ) + - + 38 * + 55, SUM( + 81 ) AS col2
----
-3138
81

skipif mysql # not compatible
query II rowsort label-1802
SELECT ALL 18 * + COUNT ( * ) * - + 60 - - + ( + 32 ) + - + 38 * + 55, SUM ( + 81 ) AS col2
----
-3138
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL + 82 * + 87 - + COUNT( * )
----
7133

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL + 82 * + 87 - + COUNT ( * )
----
7133

query I rowsort
SELECT - + 64 * 66
----
-4224

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT MAX( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1806
SELECT MAX ( + 15 )
----
15

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

query I rowsort
SELECT ALL 2 - - 97 - 39 + + 24 AS col1
----
84

query I rowsort
SELECT ALL + 71 * + - 59 * + COALESCE ( - 81, - + 95, + - 36 ) col2
----
339309

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT - 85 DIV + 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1810
SELECT - 85 / + 51 AS col2
----
-1

query I rowsort
SELECT - - 53 col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1812
SELECT ALL 66 AS col0, SUM( DISTINCT 22 ) + 1 AS col0
----
66
23

skipif mysql # not compatible
query II rowsort label-1812
SELECT ALL 66 AS col0, SUM ( DISTINCT 22 ) + 1 AS col0
----
66
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1813
SELECT ( - - COALESCE ( - + 8, - 1 + NULLIF ( - - 76, 90 ) + + 76 * + 10 ) ) DIV + MAX( DISTINCT - 99 ) + + + 95 + 53
----
148

skipif mysql # not compatible
query I rowsort label-1813
SELECT ( - - COALESCE ( - + 8, - 1 + NULLIF ( - - 76, 90 ) + + 76 * + 10 ) ) / + MAX ( DISTINCT - 99 ) + + + 95 + 53
----
148

query I rowsort
SELECT 53 * CASE - 77 WHEN + 76 THEN NULL WHEN - 74 * - + 78 + + + 38 THEN - - 76 END AS col0
----
NULL

query I rowsort
SELECT ALL ( + 99 ) + + 60
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1816
SELECT DISTINCT + 77 DIV - 27 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT + 77 / - 27 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT CAST( NULL AS SIGNED ) / - - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT CAST ( NULL AS INTEGER ) / - - 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT ALL + 60 + + + SUM( 69 ) + COALESCE ( - CASE + COUNT( * ) WHEN - ( 50 ) THEN - + 17 + - 87 + - - 4 ELSE NULL END, - + 63 + - - 44 * 89 DIV + - ( + + 55 ), - 13 * + COUNT( * ) + + + 63 * - COALESCE ( - 23, + 18 * + 65 - 98 ) ) * + 35
----
-4561

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL + 60 + + + SUM ( 69 ) + COALESCE ( - CASE + COUNT ( * ) WHEN - ( 50 ) THEN - + 17 + - 87 + - - 4 ELSE NULL END, - + 63 + - - 44 * 89 / + - ( + + 55 ), - 13 * + COUNT ( * ) + + + 63 * - COALESCE ( - 23, + 18 * + 65 - 98 ) ) * + 35
----
-4561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1819
SELECT CASE MIN( DISTINCT - 79 ) WHEN - 1 THEN + + CASE - 29 WHEN + 24 THEN SUM( ALL + - 26 ) WHEN 87 THEN + 89 ELSE NULL END + - + CAST( + - COUNT( ALL + 25 ) AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN - 85 * - - CAST( - ( + 10 ) AS SIGNED ) + + 42 THEN 82 * MIN( + 21 ) + - 53 END * + SUM( DISTINCT 21 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT CASE MIN ( DISTINCT - 79 ) WHEN - 1 THEN + + CASE - 29 WHEN + 24 THEN SUM ( ALL + - 26 ) WHEN 87 THEN + 89 ELSE NULL END + - + CAST ( + - COUNT ( ALL + 25 ) AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN - 85 * - - CAST ( - ( + 10 ) AS INTEGER ) + + 42 THEN 82 * MIN ( + 21 ) + - 53 END * + SUM ( DISTINCT 21 ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 69 + 61 * 55 + - + 34 AS col1
----
3252

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

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

query I rowsort
SELECT ALL + 97 * + 23
----
2231

query II rowsort
SELECT ( - + 18 ) * + - 16 + + 95 + - 99, 62 AS col2
----
284
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT 6 * + + MAX( + - 32 ) + - 9
----
-201

skipif mysql # not compatible
query I rowsort label-1824
SELECT 6 * + + MAX ( + - 32 ) + - 9
----
-201

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1825
SELECT - 87 + - ( - 94 ) col2, 74 DIV + - 38 + - COUNT( * ) * 81
----
7
-82

skipif mysql # not compatible
query II rowsort label-1825
SELECT - 87 + - ( - 94 ) col2, 74 / + - 38 + - COUNT ( * ) * 81
----
7
-82

query I rowsort
SELECT ALL - - 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT - - 28 - - - ( 99 ) + + + 3 * + - CASE + - MIN( - + 63 ) WHEN - ( 68 ) - + 84 THEN - + 25 WHEN - 80 THEN + 15 END * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT - - 28 - - - ( 99 ) + + + 3 * + - CASE + - MIN ( - + 63 ) WHEN - ( 68 ) - + 84 THEN - + 25 WHEN - 80 THEN + 15 END * + 91
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1829
SELECT + 50 AS col0, - CASE + 84 WHEN + 65 * COUNT( 36 ) THEN + COUNT( * ) DIV ( + 88 ) WHEN + 88 THEN NULL ELSE - 75 END * + 98 col0
----
50
7350

skipif mysql # not compatible
query II rowsort label-1829
SELECT + 50 AS col0, - CASE + 84 WHEN + 65 * COUNT ( 36 ) THEN + COUNT ( * ) / ( + 88 ) WHEN + 88 THEN NULL ELSE - 75 END * + 98 col0
----
50
7350

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

query I rowsort
SELECT - 20 - + 27 AS col0
----
-47

query I rowsort
SELECT ( 54 ) * - 65
----
-3510

query I rowsort
SELECT ALL + 49 * - 34 * 2 AS col1
----
-3332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1834
SELECT DISTINCT + COALESCE ( SUM( + CAST( NULL AS SIGNED ) ), 67 * + + 43 + ( - 15 ) + - - 48, - + 24 ) * COUNT( * ) * - + 33 AS col1
----
-96162

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + COALESCE ( SUM ( + CAST ( NULL AS INTEGER ) ), 67 * + + 43 + ( - 15 ) + - - 48, - + 24 ) * COUNT ( * ) * - + 33 AS col1
----
-96162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1835
SELECT ALL 91 * 47 * - - CAST( NULL AS SIGNED ) * + ( + - COUNT( * ) ) * + COUNT( * ) + + 5 + 72 col0, + 87
----
NULL
87

skipif mysql # not compatible
query II rowsort label-1835
SELECT ALL 91 * 47 * - - CAST ( NULL AS INTEGER ) * + ( + - COUNT ( * ) ) * + COUNT ( * ) + + 5 + 72 col0, + 87
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT 22 * - 40 * - COUNT( * ) AS col1
----
880

skipif mysql # not compatible
query I rowsort label-1836
SELECT 22 * - 40 * - COUNT ( * ) AS col1
----
880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1837
SELECT ALL - NULLIF ( - 83, + AVG ( + - 24 ) - CAST( NULL AS SIGNED ) ) AS col1, + 25
----
83
25

skipif mysql # not compatible
query II rowsort label-1837
SELECT ALL - NULLIF ( - 83, + AVG ( + - 24 ) - CAST ( NULL AS INTEGER ) ) AS col1, + 25
----
83
25

query I rowsort
SELECT + 83 - - + 81
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT - - COUNT( + + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-1839
SELECT - - COUNT ( + + 50 )
----
1

query II rowsort
SELECT - 13, 7 col2
----
-13
7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1842
SELECT ALL NULLIF ( 47, + SUM( 82 ) DIV + + CASE CAST( NULL AS SIGNED ) WHEN + ( + ( - COUNT( * ) ) ) THEN - 27 WHEN - 57 THEN NULL ELSE NULL END * + ( MIN( - 79 ) ) + - + 37 DIV + + 90 * - 68 ) + - - ( 13 ) + 33 DIV COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL NULLIF ( 47, + SUM ( 82 ) / + + CASE CAST ( NULL AS INTEGER ) WHEN + ( + ( - COUNT ( * ) ) ) THEN - 27 WHEN - 57 THEN NULL ELSE NULL END * + ( MIN ( - 79 ) ) + - + 37 / + + 90 * - 68 ) + - - ( 13 ) + 33 / COUNT ( * )
----
93

query I rowsort
SELECT 14 + 95 AS col0
----
109

query II rowsort
SELECT - 68 AS col0, 46 AS col1
----
-68
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT ALL 13 + + + COUNT( * ) + - - 43 * ( COUNT( * ) ) DIV - COUNT( * ) AS col2
----
-29

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1846
SELECT 59 - 66, + 33 * + MAX( DISTINCT 50 ) * - 40 * COUNT( * ) AS col0
----
-7
-66000

skipif mysql # not compatible
query II rowsort label-1846
SELECT 59 - 66, + 33 * + MAX ( DISTINCT 50 ) * - 40 * COUNT ( * ) AS col0
----
-7
-66000

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT COUNT( * ) + - 30 - - ( - - 58 ) / CASE 2 WHEN + - 47 THEN 47 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT COUNT ( * ) + - 30 - - ( - - 58 ) / CASE 2 WHEN + - 47 THEN 47 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT 43 + 80 + 43 - - + 50 * - - CASE - SUM( DISTINCT - + 78 ) WHEN - COUNT( * ) THEN NULL WHEN + 95 * 63 THEN - + 49 * - + 20 * + 22 + + 15 / + - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT 43 + 80 + 43 - - + 50 * - - CASE - SUM ( DISTINCT - + 78 ) WHEN - COUNT ( * ) THEN NULL WHEN + 95 * 63 THEN - + 49 * - + 20 * + 22 + + 15 / + - 73 END
----
NULL

query I rowsort
SELECT DISTINCT ( + - 58 ) + + 44
----
-14

query I rowsort
SELECT ( - 42 ) + - 5
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1851
SELECT ALL CAST( - 68 AS SIGNED ) * + 58 AS col1
----
-3944

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL CAST ( - 68 AS INTEGER ) * + 58 AS col1
----
-3944

query I rowsort
SELECT DISTINCT 6 * + - 33
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1853
SELECT + 76 DIV - - MIN( + 81 ) + + ( - 69 ) * + - 85 * + 54 AS col2, 91 + + ( - 40 ) + - - 71 - 6
----
316710
116

skipif mysql # not compatible
query II rowsort label-1853
SELECT + 76 / - - MIN ( + 81 ) + + ( - 69 ) * + - 85 * + 54 AS col2, 91 + + ( - 40 ) + - - 71 - 6
----
316710
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL 88 * + 78 * + 69 * 79 + + - COUNT( * ) AS col2
----
37415663

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL 88 * + 78 * + 69 * 79 + + - COUNT ( * ) AS col2
----
37415663

query II rowsort
SELECT ( + 13 ) * 81 + ( 21 ) * + 59 AS col0, + 64 AS col1
----
2292
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1856
SELECT 29 DIV 42 * + - 1 + - - 37 + + COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1856
SELECT 29 / 42 * + - 1 + - - 37 + + COUNT ( * ) AS col2
----
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1858
SELECT 74 * - 45 AS col1, + COUNT( * ) col0
----
-3330
1

skipif mysql # not compatible
query II rowsort label-1858
SELECT 74 * - 45 AS col1, + COUNT ( * ) col0
----
-3330
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT + 47 * 90 + + 92 + ( - CASE - + 89 WHEN 25 THEN + - CAST( NULL AS SIGNED ) * + 64 + + 31 WHEN - 27 THEN - ( 12 ) ELSE NULL END ) + + 92 / 7 * - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT + 47 * 90 + + 92 + ( - CASE - + 89 WHEN 25 THEN + - CAST ( NULL AS INTEGER ) * + 64 + + 31 WHEN - 27 THEN - ( 12 ) ELSE NULL END ) + + 92 / 7 * - + 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1861
SELECT ALL - 45 DIV - - 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - 45 / - - 39 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT - MAX( ALL + 88 ) * + 59 AS col1
----
-5192

skipif mysql # not compatible
query I rowsort label-1862
SELECT - MAX ( ALL + 88 ) * + 59 AS col1
----
-5192

query II rowsort
SELECT 69 AS col2, 21 * 38
----
69
798

query II rowsort
SELECT ALL 34 * + + ( + 59 ) * - 80, + 91 AS col1
----
-160480
91

query I rowsort
SELECT + 55 * + 62 + + 13
----
3423

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT + ( - + 72 ) * 26 * - COUNT( * ) * + - 55 + - 25 - + - 47 col0
----
-102938

skipif mysql # not compatible
query I rowsort label-1866
SELECT + ( - + 72 ) * 26 * - COUNT ( * ) * + - 55 + - 25 - + - 47 col0
----
-102938

query II rowsort
SELECT DISTINCT - + 57 AS col2, 81 AS col1
----
-57
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1868
SELECT - COUNT( * ) + + 33 DIV CASE 25 WHEN - 13 THEN 75 END AS col1, COUNT( * ) DIV - - 42 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1868
SELECT - COUNT ( * ) + + 33 / CASE 25 WHEN - 13 THEN 75 END AS col1, COUNT ( * ) / - - 42 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL - 93 * - COUNT( * ) * - 52 - + 12 * + 10
----
-4956

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - 93 * - COUNT ( * ) * - 52 - + 12 * + 10
----
-4956

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT - - COUNT( * ) + - - 6 + - CASE + 46 WHEN - - COUNT( * ) THEN CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT - - COUNT ( * ) + - - 6 + - CASE + 46 WHEN - - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL + + SUM( DISTINCT + - ( 90 ) ) + - COUNT( * ) + - ( 93 ) * COUNT( * )
----
-184

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + + SUM ( DISTINCT + - ( 90 ) ) + - COUNT ( * ) + - ( 93 ) * COUNT ( * )
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-1873
SELECT - 79 * - 47 + 83 + NULLIF ( + - 12, + 33 * + - 46 ), CAST( NULL AS SIGNED ) * 76 AS col2, MIN( ALL - 58 ) * - 60 * - 15 AS col2
----
3784
NULL
-52200

skipif mysql # not compatible
query III rowsort label-1873
SELECT - 79 * - 47 + 83 + NULLIF ( + - 12, + 33 * + - 46 ), CAST ( NULL AS INTEGER ) * 76 AS col2, MIN ( ALL - 58 ) * - 60 * - 15 AS col2
----
3784
NULL
-52200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1874
SELECT DISTINCT - - 62 DIV - - 30, CASE 0 WHEN COUNT( * ) + CAST( NULL AS SIGNED ) THEN NULL ELSE - NULLIF ( - 53, COUNT( * ) * + 17 ) * - 32 END AS col0
----
2
-1696

skipif mysql # not compatible
query II rowsort label-1874
SELECT DISTINCT - - 62 / - - 30, CASE 0 WHEN COUNT ( * ) + CAST ( NULL AS INTEGER ) THEN NULL ELSE - NULLIF ( - 53, COUNT ( * ) * + 17 ) * - 32 END AS col0
----
2
-1696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT - + 88 / 28 + 75 + - ( + 44 ) + + - 58 + + 9 / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT - + 88 / 28 + 75 + - ( + 44 ) + + - 58 + + 9 / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - 33 * + + COUNT( * ) + 50 + - 98
----
-81

skipif mysql # not compatible
query I rowsort label-1876
SELECT - 33 * + + COUNT ( * ) + 50 + - 98
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT DISTINCT - ( 1 ) + + 81 DIV - - 39 col2
----
1

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT - ( 1 ) + + 81 / - - 39 col2
----
1

query I rowsort
SELECT ALL - 5 + - 79 * 75 AS col1
----
-5930

query II rowsort
SELECT DISTINCT 25 + + 33 AS col1, 47 * + - 74 * - 41 + + + 17 - - + 5 + - 18
----
58
142602

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

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

skipif mysql # not compatible
query I rowsort label-1881
SELECT - 66 / - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL - ( - 99 ) * + 46 * - - COUNT( * ) AS col1
----
4554

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - ( - 99 ) * + 46 * - - COUNT ( * ) AS col1
----
4554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1883
SELECT ALL 77 DIV ( COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL 77 / ( COUNT ( * ) )
----
77

query I rowsort
SELECT DISTINCT - 60 + + - 89 AS col2
----
-149

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

skipif mysql # not compatible
query I rowsort label-1885
SELECT - SUM ( ALL - - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT ( COALESCE ( - ( + ( - 4 ) ), 96 * 55 * - + COUNT( * ), - + 8 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT ( COALESCE ( - ( + ( - 4 ) ), 96 * 55 * - + COUNT ( * ), - + 8 ) ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1887
SELECT ALL - 42 - + - 36 AS col0, COUNT( * )
----
-6
1

skipif mysql # not compatible
query II rowsort label-1887
SELECT ALL - 42 - + - 36 AS col0, COUNT ( * )
----
-6
1

query I rowsort
SELECT - 30 - 76 + + + 33 * - 85 * - 38
----
106484

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT - ( - COALESCE ( - ( 12 ), + 45 - 92 DIV + 50 ) ) - + 83
----
-95

skipif mysql # not compatible
query I rowsort label-1889
SELECT - ( - COALESCE ( - ( 12 ), + 45 - 92 / + 50 ) ) - + 83
----
-95

query I rowsort
SELECT DISTINCT 52 * - + 70
----
-3640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1891
SELECT + 76 * - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-1891
SELECT + 76 * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT ALL + + CASE - - 17 WHEN - - 96 * - + MAX( DISTINCT - 93 ) THEN + 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + + CASE - - 17 WHEN - - 96 * - + MAX ( DISTINCT - 93 ) THEN + 5 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT - 79 * - CASE 13 WHEN + - 59 THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT - 79 * - CASE 13 WHEN + - 59 THEN - + COUNT ( * ) ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT + - SUM( + 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1896
SELECT + - SUM ( + 73 ) AS col2
----
-73

query I rowsort
SELECT ALL + NULLIF ( - - 85, + 38 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL + 22 * COALESCE ( 69, COUNT( * ) ) AS col2
----
1518

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + 22 * COALESCE ( 69, COUNT ( * ) ) AS col2
----
1518

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT + - 53 * - - COUNT( * ) * ( + 87 ) AS col2
----
-4611

skipif mysql # not compatible
query I rowsort label-1900
SELECT + - 53 * - - COUNT ( * ) * ( + 87 ) AS col2
----
-4611

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT ALL - - ( 80 ) DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - - ( 80 ) / - 89 AS col0
----
0

query I rowsort
SELECT + 51 * - - 50 + 43 + + + 8
----
2601

onlyif mysql # aggregate syntax: 
query II rowsort label-1903
SELECT DISTINCT - ( + COALESCE ( 74, + 83 ) ) * + COUNT( * ) AS col1, 2
----
-74
2

skipif mysql # not compatible
query II rowsort label-1903
SELECT DISTINCT - ( + COALESCE ( 74, + 83 ) ) * + COUNT ( * ) AS col1, 2
----
-74
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL + + 1 * 49 * - 21 - + 6 + - - 44 * - 85 + + 91 - - 79 * - 17 + ( + 32 ) * - CASE + - 17 WHEN + 2 * - 29 + + 75 / - 60 THEN NULL WHEN COUNT( * ) THEN - + 10 END + + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + + 1 * 49 * - 21 - + 6 + - - 44 * - 85 + + 91 - - 79 * - 17 + ( + 32 ) * - CASE + - 17 WHEN + 2 * - 29 + + 75 / - 60 THEN NULL WHEN COUNT ( * ) THEN - + 10 END + + - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL - 83 * + 20 + + 92 + + 10 + - MAX( + - 44 ) - + COUNT( DISTINCT - 39 ) AS col0
----
-1515

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL - 83 * + 20 + + 92 + + 10 + - MAX ( + - 44 ) - + COUNT ( DISTINCT - 39 ) AS col0
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT + + COUNT( + 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT + + COUNT ( + 42 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1908
SELECT - - 20 * + COUNT( * ) DIV 21 col1
----
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT - - 20 * + COUNT ( * ) / 21 col1
----
0

query I rowsort
SELECT ALL - ( + - 46 ) * - 40 + - 20
----
-1860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT ALL ( + 28 ) * - ( 50 ) + + 19 * + CAST( + 35 AS SIGNED ) * + COUNT( * ) - 70 AS col2
----
-805

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL ( + 28 ) * - ( 50 ) + + 19 * + CAST ( + 35 AS INTEGER ) * + COUNT ( * ) - 70 AS col2
----
-805

query I rowsort
SELECT ALL 95 * + 33
----
3135

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL CAST( - 91 AS SIGNED ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL CAST ( - 91 AS INTEGER ) col1
----
-91

query I rowsort
SELECT + 36 + + 92 col2
----
128

query I rowsort
SELECT ALL - 73 - + 5
----
-78

query I rowsort
SELECT + 54 * + 8
----
432

query I rowsort
SELECT - 60 * + 75 AS col2
----
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - SUM( - 77 ) col2
----
77

skipif mysql # not compatible
query I rowsort label-1918
SELECT - SUM ( - 77 ) col2
----
77

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

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

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

query I rowsort
SELECT ALL ( - COALESCE ( 61, 25 + + + 19 ) )
----
-61

query I rowsort
SELECT - 6 + - 98
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT - COUNT( * ) - + 67 + + 30 * + + 66
----
1912

skipif mysql # not compatible
query I rowsort label-1923
SELECT - COUNT ( * ) - + 67 + + 30 * + + 66
----
1912

onlyif mysql # aggregate syntax: 
query III rowsort label-1924
SELECT ALL - 38 * + - MAX( + 91 ) AS col0, + 34 AS col0, + COUNT( * ) col1
----
3458
34
1

skipif mysql # not compatible
query III rowsort label-1924
SELECT ALL - 38 * + - MAX ( + 91 ) AS col0, + 34 AS col0, + COUNT ( * ) col1
----
3458
34
1

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

skipif mysql # not compatible
query I rowsort label-1925
SELECT - COUNT ( * ) * 90
----
-90

query I rowsort
SELECT ALL CASE + + ( 93 ) WHEN 47 THEN - 66 * 66 + + 11 + 92 + + + 79 * + + 93 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1927
SELECT DISTINCT - 56 DIV MAX( 93 ), COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-1927
SELECT DISTINCT - 56 / MAX ( 93 ), COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT ALL + 38 * + 8 * - - 58
----
17632

query I rowsort
SELECT ALL ( 6 ) col1
----
6

query I rowsort
SELECT - 52 + + 58
----
6

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

skipif mysql # not compatible
query I rowsort label-1931
SELECT - COUNT ( * ) * - 65
----
65

query I rowsort
SELECT - 24 + + + 3 AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1933
SELECT - 63 DIV 5 * - - 43
----
-516

skipif mysql # not compatible
query I rowsort label-1933
SELECT - 63 / 5 * - - 43
----
-516

query I rowsort
SELECT + 38 + + + 9 AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1935
SELECT - 57 AS col0, 94 * - 18 + + 56 * + CASE 73 WHEN + 91 THEN - - 62 ELSE NULL END * + 82 + ( - 71 ) + - 48 + - COUNT( * ) / 64 + + COUNT( ALL + - 65 ) + - - 26 AS col0
----
-57
NULL

skipif mysql # not compatible
query II rowsort label-1935
SELECT - 57 AS col0, 94 * - 18 + + 56 * + CASE 73 WHEN + 91 THEN - - 62 ELSE NULL END * + 82 + ( - 71 ) + - 48 + - COUNT ( * ) / 64 + + COUNT ( ALL + - 65 ) + - - 26 AS col0
----
-57
NULL

query I rowsort
SELECT + + 42 * + 14
----
588

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1938
SELECT - + CAST( NULL AS DECIMAL ) + + - 77 + - NULLIF ( + 15, 79 + + 27 ) + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT - + CAST ( NULL AS REAL ) + + - 77 + - NULLIF ( + 15, 79 + + 27 ) + 25
----
NULL

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

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

skipif mysql # not compatible
query II rowsort label-1940
SELECT - COUNT ( * ), 53 AS col2
----
-1
53

query I rowsort
SELECT DISTINCT - + 54 + + 28 * + 23 AS col1
----
590

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

query I rowsort
SELECT ALL - 10 + 85
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1944
SELECT - 8 * + + 11 + - 53 DIV + COUNT( * ) + + 42 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-1944
SELECT - 8 * + + 11 + - 53 / + COUNT ( * ) + + 42 AS col1
----
-99

query I rowsort
SELECT - - 64 * - 58 + + 10 + - 97
----
-3799

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT + MIN( DISTINCT 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1946
SELECT + MIN ( DISTINCT 38 ) AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT ALL - CAST( - - 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL - CAST ( - - 30 AS INTEGER ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL 84 + + + 42 - + COUNT( * ) + + 6 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL 84 + + + 42 - + COUNT ( * ) + + 6 AS col2
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT DISTINCT ( 3 ) DIV - 19 col2
----
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT ( 3 ) / - 19 col2
----
0

query I rowsort
SELECT ( + + 67 ) + + 0 col2
----
67

query I rowsort
SELECT ALL 48 - - - 68 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1952
SELECT COALESCE ( COUNT( * ), - CAST( NULL AS SIGNED ) ) DIV + + 76 col2, 38 AS col2
----
0
38

skipif mysql # not compatible
query II rowsort label-1952
SELECT COALESCE ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) / + + 76 col2, 38 AS col2
----
0
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT 78 + - + COUNT( * ) + + 65 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-1953
SELECT 78 + - + COUNT ( * ) + + 65 AS col1
----
142

query I rowsort
SELECT 49 * 41
----
2009

onlyif mysql # aggregate syntax: 
query II rowsort label-1955
SELECT 84 * MIN( - - 67 ) * 46, - 61 + 98 * 28 AS col2
----
258888
2683

skipif mysql # not compatible
query II rowsort label-1955
SELECT 84 * MIN ( - - 67 ) * 46, - 61 + 98 * 28 AS col2
----
258888
2683

query I rowsort
SELECT DISTINCT 42 * - 25 AS col0
----
-1050

query I rowsort
SELECT 94 + 61
----
155

query II rowsort
SELECT ALL - 51 * - + 53 col2, + ( - COALESCE ( - 11, ( 11 ), 84 ) ) AS col0
----
2703
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1959
SELECT ALL - COUNT( * ) * 55 DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL - COUNT ( * ) * 55 / - 57
----
0

query I rowsort
SELECT ALL 41 * - + 96 AS col2
----
-3936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT 12 * - 27 * - CAST( + - 54 AS SIGNED )
----
-17496

skipif mysql # not compatible
query I rowsort label-1961
SELECT 12 * - 27 * - CAST ( + - 54 AS INTEGER )
----
-17496

query I rowsort
SELECT + 61 - + - ( 93 ) + + + 56 * 37
----
2226

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT CASE + COUNT( * ) WHEN 63 THEN - 23 WHEN + 93 THEN NULL ELSE + COUNT( * ) - 61 END - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-1963
SELECT CASE + COUNT ( * ) WHEN 63 THEN - 23 WHEN + 93 THEN NULL ELSE + COUNT ( * ) - 61 END - COUNT ( * )
----
-61

query I rowsort
SELECT DISTINCT + 33 + + 13 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL + 16 * + COUNT( ALL 96 ) - + - 68 * + + CASE + 83 WHEN 41 THEN NULL WHEN - 82 THEN NULL ELSE 26 END
----
1784

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + 16 * + COUNT ( ALL 96 ) - + - 68 * + + CASE + 83 WHEN 41 THEN NULL WHEN - 82 THEN NULL ELSE 26 END
----
1784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT ALL - + 93 + CAST( - + COUNT( * ) AS SIGNED ) * 75
----
-168

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL - + 93 + CAST ( - + COUNT ( * ) AS INTEGER ) * 75
----
-168

query I rowsort
SELECT COALESCE ( + 48, + + 95 - - 97 )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1968
SELECT 19 * - CAST( - 22 AS SIGNED ) + - - 82 AS col2, 47 * - NULLIF ( 38, - - 79 )
----
500
-1786

skipif mysql # not compatible
query II rowsort label-1968
SELECT 19 * - CAST ( - 22 AS INTEGER ) + - - 82 AS col2, 47 * - NULLIF ( 38, - - 79 )
----
500
-1786

onlyif mysql # aggregate syntax: 
query II rowsort label-1969
SELECT DISTINCT - ( - 11 ) + COUNT( * ) + + + COUNT( * ), + NULLIF ( 14, + 39 * + 72 + - COALESCE ( ( + 53 ), + + 8 + - 82 ) * - + 61 ) + + COUNT( * ) col0
----
13
15

skipif mysql # not compatible
query II rowsort label-1969
SELECT DISTINCT - ( - 11 ) + COUNT ( * ) + + + COUNT ( * ), + NULLIF ( 14, + 39 * + 72 + - COALESCE ( ( + 53 ), + + 8 + - 82 ) * - + 61 ) + + COUNT ( * ) col0
----
13
15

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

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

query I rowsort
SELECT ALL + - 64 + - 6 col1
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1972
SELECT - CAST( - 38 AS SIGNED ) AS col2, 34 * + - 7 * - CAST( NULL AS SIGNED ) col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-1972
SELECT - CAST ( - 38 AS INTEGER ) AS col2, 34 * + - 7 * - CAST ( NULL AS INTEGER ) col0
----
38
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1974
SELECT 26 DIV + CAST( + - COALESCE ( 68, + 39 - 97 + + 81 + - 1 * + - 28 * + 98 * - 12 * + - 96 ) AS SIGNED ) + - + ( + COUNT( * ) ) + + 46
----
45

skipif mysql # not compatible
query I rowsort label-1974
SELECT 26 / + CAST ( + - COALESCE ( 68, + 39 - 97 + + 81 + - 1 * + - 28 * + 98 * - 12 * + - 96 ) AS INTEGER ) + - + ( + COUNT ( * ) ) + + 46
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT - CASE + 77 WHEN + + 59 * + 84 + + + COUNT( * ) THEN NULL WHEN + - 82 THEN + - 1 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT - CASE + 77 WHEN + + 59 * + 84 + + + COUNT ( * ) THEN NULL WHEN + - 82 THEN + - 1 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL ( + 92 ) - - - ( - + 16 ) * + 54 AS col1
----
956

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT DISTINCT - CAST( - + 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-1977
SELECT DISTINCT - CAST ( - + 26 AS INTEGER ) AS col2
----
26

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

skipif mysql # not compatible
query II rowsort label-1978
SELECT 54 AS col0, ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
54
NULL

query I rowsort
SELECT ALL + ( 89 ) - + - 31 * 25 AS col2
----
864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT 43 * ( - CAST( NULL AS SIGNED ) ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT 43 * ( - CAST ( NULL AS INTEGER ) ) * 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1981
SELECT COUNT( * ) - ( - - 36 ), - CAST( 6 AS SIGNED ) - - + 18 - + - 27 col2
----
-35
39

skipif mysql # not compatible
query II rowsort label-1981
SELECT COUNT ( * ) - ( - - 36 ), - CAST ( 6 AS INTEGER ) - - + 18 - + - 27 col2
----
-35
39

query I rowsort
SELECT DISTINCT 42 * - 53 * + + 26 * 94
----
-5440344

onlyif mysql # DIV for integer division: 
query I rowsort label-1983
SELECT ( - 95 ) DIV 14 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1983
SELECT ( - 95 ) / 14 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT CASE - 88 WHEN + - MIN( DISTINCT + 46 ) THEN 59 * + 25 - 18 END / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT CASE - 88 WHEN + - MIN ( DISTINCT + 46 ) THEN 59 * + 25 - 18 END / COUNT ( * )
----
NULL

query I rowsort
SELECT 84 - + + 86 + - - 79 * + 55
----
4343

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL COALESCE ( + 20, - 53 ) * + + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL COALESCE ( + 20, - 53 ) * + + COUNT ( * )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1987
SELECT CAST( + COUNT( * ) AS SIGNED ) - + 86 + + NULLIF ( + 67, 12 ) - - + 89 - + 3 + + 61 + - CAST( NULL AS SIGNED ) * 64 / - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - + 86 + + NULLIF ( + 67, 12 ) - - + 89 - + 3 + + 61 + - CAST ( NULL AS INTEGER ) * 64 / - 17
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT ALL 59 DIV - 54 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL 59 / - 54 AS col2
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT 13 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT 13 / 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT - NULLIF ( - COALESCE ( + ( 96 ), COUNT( * ) + 75 ), 72 * + 27 )
----
96

skipif mysql # not compatible
query I rowsort label-1991
SELECT - NULLIF ( - COALESCE ( + ( 96 ), COUNT ( * ) + 75 ), 72 * + 27 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL MAX( 19 ) + + 67 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL MAX ( 19 ) + + 67 AS col0
----
86

query I rowsort
SELECT + 59 + - - 98
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT - 29 - - + CAST( - 61 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-1994
SELECT - 29 - - + CAST ( - 61 AS INTEGER )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT DISTINCT + NULLIF ( + CAST( - CASE NULLIF ( + 41, 79 ) WHEN + + ( - - 94 ) THEN + ( COUNT( * ) ) * - 8 ELSE - 17 * - CAST( 95 AS SIGNED ) + - 25 * + ( - COALESCE ( 21, 39 * - - CASE - 90 WHEN 8 THEN + - COALESCE ( - 44, - + 76 * - 55, + 46 ) / - 96 WHEN 94 * 45 THEN 68 END, + 82 ) ) * 35 END AS SIGNED ), + 75 )
----
-19990

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT + NULLIF ( + CAST ( - CASE NULLIF ( + 41, 79 ) WHEN + + ( - - 94 ) THEN + ( COUNT ( * ) ) * - 8 ELSE - 17 * - CAST ( 95 AS INTEGER ) + - 25 * + ( - COALESCE ( 21, 39 * - - CASE - 90 WHEN 8 THEN + - COALESCE ( - 44, - + 76 * - 55, + 46 ) / - 96 WHEN 94 * 45 THEN 68 END, + 82 ) ) * 35 END AS INTEGER ), + 75 )
----
-19990

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

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

query I rowsort
SELECT ALL - + 41 + - 99 - - + 42
----
-98

query I rowsort
SELECT ALL 56 + 68 * + - 22 * + 40 col1
----
-59784

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT MIN( DISTINCT - 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1999
SELECT MIN ( DISTINCT - 80 ) AS col2
----
-80

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

query I rowsort
SELECT - - 90 + - 88
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2002
SELECT ALL COUNT( * ) col1, 37 + + 34 * 82 * 24 * + 13 / - CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) + - - 61 * - + 99 * 41 col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2002
SELECT ALL COUNT ( * ) col1, 37 + + 34 * 82 * 24 * + 13 / - CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) + - - 61 * - + 99 * 41 col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2003
SELECT - + 16 + - - 88 + SUM( + + CAST( NULL AS SIGNED ) ) - 81 * + COUNT( * ) + - CASE + CASE + + 91 WHEN - - 31 + COUNT( * ) + + 40 THEN NULL WHEN 96 THEN NULL WHEN 24 * + 76 THEN + 74 END WHEN - - 83 THEN 92 + - - 24 ELSE + 73 * 83 + 78 + 50 * + 17 * + ( 77 ) END + + 25 * - CAST( 61 AS SIGNED ) * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT - + 16 + - - 88 + SUM ( + + CAST ( NULL AS INTEGER ) ) - 81 * + COUNT ( * ) + - CASE + CASE + + 91 WHEN - - 31 + COUNT ( * ) + + 40 THEN NULL WHEN 96 THEN NULL WHEN 24 * + 76 THEN + 74 END WHEN - - 83 THEN 92 + - - 24 ELSE + 73 * 83 + 78 + 50 * + 17 * + ( 77 ) END + + 25 * - CAST ( 61 AS INTEGER ) * - 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2004
SELECT ALL + 10 + + CASE 78 WHEN - CAST( NULL AS DECIMAL ) THEN NULL ELSE 40 * - 8 END * - MIN( + ( - + 58 ) ) * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL + 10 + + CASE 78 WHEN - CAST ( NULL AS REAL ) THEN NULL ELSE 40 * - 8 END * - MIN ( + ( - + 58 ) ) * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 84 + - - 86
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT + 89 DIV + 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2006
SELECT + 89 / + 30 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2007
SELECT - ( + 85 ) + COUNT( * ), - 90 AS col1
----
-84
-90

skipif mysql # not compatible
query II rowsort label-2007
SELECT - ( + 85 ) + COUNT ( * ), - 90 AS col1
----
-84
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2008
SELECT DISTINCT + 95 AS col0, CASE + 8 WHEN 68 * CAST( NULL AS SIGNED ) THEN NULL ELSE 68 * 31 - 63 END - + - 67
----
95
2112

skipif mysql # not compatible
query II rowsort label-2008
SELECT DISTINCT + 95 AS col0, CASE + 8 WHEN 68 * CAST ( NULL AS INTEGER ) THEN NULL ELSE 68 * 31 - 63 END - + - 67
----
95
2112

query I rowsort
SELECT DISTINCT - 34 * - 6 - + + 5 AS col2
----
199

query I rowsort
SELECT DISTINCT + + 11 * + + 77
----
847

query I rowsort
SELECT - - 89 * - - 76 * 86
----
581704

query I rowsort
SELECT ALL + - 82 * - 22 col1
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - COUNT( * ) + - - COUNT( DISTINCT + 34 ) + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-2013
SELECT - COUNT ( * ) + - - COUNT ( DISTINCT + 34 ) + - 78
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT - 13 DIV - - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT - 13 / - - 15 AS col1
----
0

query II rowsort
SELECT - 19 * - - 46 AS col2, - 69 * ( - 76 )
----
-874
5244

query I rowsort
SELECT - 37 - - - 92
----
-129

query II rowsort
SELECT ALL + ( - + 27 ) AS col1, - 43 AS col1
----
-27
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT + NULLIF ( 49, MAX( + 81 ) ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT + NULLIF ( 49, MAX ( + 81 ) ) AS col1
----
49

query II rowsort
SELECT ALL + 39 col2, - 50 AS col0
----
39
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL - CASE 55 WHEN - + 52 * - 48 THEN SUM( + 19 ) END * COUNT( * ) + + COALESCE ( - 75, 68 ) + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL - CASE 55 WHEN - + 52 * - 48 THEN SUM ( + 19 ) END * COUNT ( * ) + + COALESCE ( - 75, 68 ) + - 11 AS col1
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2023
SELECT COUNT ( * ), - 97 AS col0
----
1
-97

query I rowsort
SELECT - ( 26 ) * + 34 + 83 + CASE + 82 WHEN 28 + 25 + + 20 / 33 THEN - 10 WHEN + 58 THEN NULL ELSE 17 END
----
-784

query I rowsort
SELECT + 29 + - + 87 AS col0
----
-58

query II rowsort
SELECT - 46 AS col2, + 37 AS col0
----
-46
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT - NULLIF ( - COALESCE ( 1, - + COUNT( * ) ), + - NULLIF ( - ( - 20 ), + 93 + + 84 + NULLIF ( - 94, 25 ) * - - 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2027
SELECT - NULLIF ( - COALESCE ( 1, - + COUNT ( * ) ), + - NULLIF ( - ( - 20 ), + 93 + + 84 + NULLIF ( - 94, 25 ) * - - 11 ) )
----
1

query I rowsort
SELECT ALL - 52 + - 22
----
-74

query I rowsort
SELECT - NULLIF ( + 84, 22 + 60 * - - 62 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL 88 + + 8 + + CASE 73 WHEN 23 + - 91 + + ( - SUM( 52 ) ) THEN 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL 88 + + 8 + + CASE 73 WHEN 23 + - 91 + + ( - SUM ( 52 ) ) THEN 18 END
----
NULL

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

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

query II rowsort
SELECT ALL 5 AS col2, + 18 - - + 90 + + 25 AS col1
----
5
133

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

query II rowsort
SELECT ( - 7 ) AS col1, ( 58 ) AS col0
----
-7
58

query I rowsort
SELECT DISTINCT ( + + 36 ) + 3
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT DISTINCT + 47 + 48 + - 13 + 13 * + + COUNT( * ) * + CASE - COUNT( * ) WHEN 9 + - 80 THEN - - 88 * - - 57 * + 31 END + + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT + 47 + 48 + - 13 + 13 * + + COUNT ( * ) * + CASE - COUNT ( * ) WHEN 9 + - 80 THEN - - 88 * - - 57 * + 31 END + + 99
----
NULL

query I rowsort
SELECT + 2 + 55
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT + 6 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-2038
SELECT + 6 / - 59
----
0

query I rowsort
SELECT + 15 * - 14
----
-210

query I rowsort
SELECT ALL + 23 * + + 17 * - 80 - - 13
----
-31267

onlyif mysql # aggregate syntax: 
query II rowsort label-2041
SELECT ALL 90 - - COUNT( * ) AS col1, - 15 * - 97 AS col1
----
91
1455

skipif mysql # not compatible
query II rowsort label-2041
SELECT ALL 90 - - COUNT ( * ) AS col1, - 15 * - 97 AS col1
----
91
1455

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + 73 - + MIN( 98 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2042
SELECT + 73 - + MIN ( 98 ) AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2043
SELECT ALL - 98 - - 2 + + 68 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - 98 - - 2 + + 68 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2044
SELECT 43 / + + MAX( - - COALESCE ( - + 8, + + ( - + 27 ), + 2 ) ) + + 88 + 10 + - COUNT( * ) - + CASE CAST( NULL AS SIGNED ) WHEN + 43 THEN 52 * + - 18 ELSE NULL END * + NULLIF ( CAST( NULL AS SIGNED ), - 88 - + 74 + 36 + + - 59 * + + 6 + 56 - - - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT 43 / + + MAX ( - - COALESCE ( - + 8, + + ( - + 27 ), + 2 ) ) + + 88 + 10 + - COUNT ( * ) - + CASE CAST ( NULL AS INTEGER ) WHEN + 43 THEN 52 * + - 18 ELSE NULL END * + NULLIF ( CAST ( NULL AS INTEGER ), - 88 - + 74 + 36 + + - 59 * + + 6 + 56 - - - 78 )
----
NULL

query I rowsort
SELECT + 62 * 16 AS col1
----
992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2046
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ), COUNT( * )
----
1
1

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

query I rowsort
SELECT - 96 * - 9 * 33 * + 94 AS col0
----
2680128

query I rowsort
SELECT + 7 * + 10 * - 88 AS col1
----
-6160

query I rowsort
SELECT - 13 + + 33 * 17
----
548

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT DISTINCT - 10 DIV + + 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - 10 / + + 11 AS col1
----
0

query I rowsort
SELECT ALL - 92 * + 22
----
-2024

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT - 60 DIV + + 52
----
-1

skipif mysql # not compatible
query I rowsort label-2052
SELECT - 60 / + + 52
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT ALL ( COUNT( * ) ) DIV + 68 - - 62 + - + 84 * - - 30 * + 63 col0
----
-158698

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL ( COUNT ( * ) ) / + 68 - - 62 + - + 84 * - - 30 * + 63 col0
----
-158698

query II rowsort
SELECT DISTINCT 83 * - 7 AS col0, + 32 * + + 4
----
-581
128

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

skipif mysql # not compatible
query I rowsort label-2055
SELECT ( ( + SUM ( - - 26 ) ) )
----
26

query I rowsort
SELECT ALL - 93 * + 52
----
-4836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2057
SELECT + 24 DIV - + 90 * + - COUNT( * ) * + 13
----
0

skipif mysql # not compatible
query I rowsort label-2057
SELECT + 24 / - + 90 * + - COUNT ( * ) * + 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2058
SELECT - 30 DIV + ( 76 )
----
0

skipif mysql # not compatible
query I rowsort label-2058
SELECT - 30 / + ( 76 )
----
0

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

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

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

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

query I rowsort
SELECT ALL + 21 + + + 22 * 22 col2
----
505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2062
SELECT 84 + + CASE + ( - 98 ) WHEN - 11 THEN + - MAX( DISTINCT - + 12 ) * + + 94 END, CAST( NULL AS SIGNED ) + + ( - 28 ) + - 78 + + 96 - - - 24 * - 59 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2062
SELECT 84 + + CASE + ( - 98 ) WHEN - 11 THEN + - MAX ( DISTINCT - + 12 ) * + + 94 END, CAST ( NULL AS INTEGER ) + + ( - 28 ) + - 78 + + 96 - - - 24 * - 59 AS col2
----
NULL
NULL

query I rowsort
SELECT 93 + - ( + 94 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT 57 * + ( 79 ) + - - MAX( DISTINCT + - 89 )
----
4414

skipif mysql # not compatible
query I rowsort label-2064
SELECT 57 * + ( 79 ) + - - MAX ( DISTINCT + - 89 )
----
4414

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2065
SELECT ALL - COUNT( * ) + + 51 + - 50 DIV - 59 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL - COUNT ( * ) + + 51 + - 50 / - 59 AS col1
----
50

query I rowsort
SELECT - 64 - - - 51 AS col1
----
-115

query I rowsort
SELECT ALL 7 * + + 31
----
217

query I rowsort
SELECT 48 + 86 * + 77 AS col0
----
6670

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT - - 45 * + 86 - + + COUNT( * ) * - 49 * 39 + MIN( - 26 ) + + CASE 12 WHEN - 0 THEN - 99 / - 28 + - SUM( + - 8 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - - 45 * + 86 - + + COUNT ( * ) * - 49 * 39 + MIN ( - 26 ) + + CASE 12 WHEN - 0 THEN - 99 / - 28 + - SUM ( + - 8 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT - MAX( - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-2070
SELECT - MAX ( - 55 ) AS col1
----
55

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT + ( + 30 ) + - 89 + + 1 - 45 + 38 - 56 + 25 DIV 58 AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-2072
SELECT + ( + 30 ) + - 89 + + 1 - 45 + 38 - 56 + 25 / 58 AS col1
----
-121

query I rowsort
SELECT NULLIF ( + 61, - - 8 * - - 83 )
----
61

query I rowsort
SELECT + 71 + 40 AS col1
----
111

query I rowsort
SELECT ALL - + 3 * CASE - 16 WHEN + 27 THEN + 6 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT - MAX( ALL 58 ) * - - 69
----
-4002

skipif mysql # not compatible
query I rowsort label-2076
SELECT - MAX ( ALL 58 ) * - - 69
----
-4002

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT ALL ( - - 65 ) DIV - - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL ( - - 65 ) / - - 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT - COUNT( * ) + + 16 + - COALESCE ( - ( - 86 ), - 11 ) * 92 + + 9 * + + 77
----
-7204

skipif mysql # not compatible
query I rowsort label-2078
SELECT - COUNT ( * ) + + 16 + - COALESCE ( - ( - 86 ), - 11 ) * 92 + + 9 * + + 77
----
-7204

query I rowsort
SELECT + 16 * + ( 14 )
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT ALL - 50 DIV + 4
----
-12

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL - 50 / + 4
----
-12

query I rowsort
SELECT 76 * + + 13
----
988

query I rowsort
SELECT + 29 * + - 56
----
-1624

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT 66 DIV - 18
----
-3

skipif mysql # not compatible
query I rowsort label-2085
SELECT 66 / - 18
----
-3

query II rowsort
SELECT + 60 AS col0, + 82 + - 58 + 63 AS col2
----
60
87

query I rowsort
SELECT ALL 78 * 48
----
3744

query I rowsort
SELECT ( + 33 ) * + + 67 + 68 AS col0
----
2279

onlyif mysql # aggregate syntax: 
query II rowsort label-2089
SELECT ALL - 51 + ( - + SUM( 60 ) ), 94 AS col0
----
-111
94

skipif mysql # not compatible
query II rowsort label-2089
SELECT ALL - 51 + ( - + SUM ( 60 ) ), 94 AS col0
----
-111
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2090
SELECT ALL - 7, - CAST( - ( + - CAST( - 98 AS SIGNED ) ) AS SIGNED ) * - 51 DIV + COUNT( * ) + 95 + 60 AS col1
----
-7
-4843

skipif mysql # not compatible
query II rowsort label-2090
SELECT ALL - 7, - CAST ( - ( + - CAST ( - 98 AS INTEGER ) ) AS INTEGER ) * - 51 / + COUNT ( * ) + 95 + 60 AS col1
----
-7
-4843

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT ALL MIN( - 33 ) + - + 82 + 59 - + 48 + - - MAX( ALL - 52 ) - - CASE WHEN COUNT( * ) IS NOT NULL THEN - 50 + - 50 * + 9 ELSE NULL END
----
-656

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL MIN ( - 33 ) + - + 82 + 59 - + 48 + - - MAX ( ALL - 52 ) - - CASE WHEN COUNT ( * ) IS NOT NULL THEN - 50 + - 50 * + 9 ELSE NULL END
----
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT + 48 * + 19 + + 42 * + - COUNT( * ) AS col1
----
870

skipif mysql # not compatible
query I rowsort label-2092
SELECT + 48 * + 19 + + 42 * + - COUNT ( * ) AS col1
----
870

query I rowsort
SELECT ALL 42 * - 87 AS col2
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL COUNT( * ) + - 4 * - 87 AS col0
----
349

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL COUNT ( * ) + - 4 * - 87 AS col0
----
349

query II rowsort
SELECT + 85 * + + 36 + + + 79 col1, 8 AS col2
----
3139
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2096
SELECT ALL 12 + - MAX( + + 68 ) DIV - 63 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL 12 + - MAX ( + + 68 ) / - 63 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT 19 + COUNT( * ) col0
----
20

skipif mysql # not compatible
query I rowsort label-2097
SELECT 19 + COUNT ( * ) col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2098
SELECT 80 col2, COUNT( * ) DIV 9 DIV + 69 AS col1
----
80
0

skipif mysql # not compatible
query II rowsort label-2098
SELECT 80 col2, COUNT ( * ) / 9 / + 69 AS col1
----
80
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT COUNT( * ) + + 19 - 81
----
-61

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT COUNT ( * ) + + 19 - 81
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2101
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 10 / - CASE 13 WHEN + 75 THEN NULL ELSE 29 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 10 / - CASE 13 WHEN + 75 THEN NULL ELSE 29 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT 53 * 78 + + MIN( DISTINCT 58 ) * + 53 + - 91 col0
----
7117

skipif mysql # not compatible
query I rowsort label-2102
SELECT 53 * 78 + + MIN ( DISTINCT 58 ) * + 53 + - 91 col0
----
7117

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2104
SELECT - SUM( + - CAST( 74 AS SIGNED ) ) * - ( 19 ) * 37 + - 42 - 79 + - 5 DIV - NULLIF ( + ( + 71 ), COUNT( * ) ) * + COALESCE ( + - 32, 32 ) + + 88 - 90 AS col0
----
-52145

skipif mysql # not compatible
query I rowsort label-2104
SELECT - SUM ( + - CAST ( 74 AS INTEGER ) ) * - ( 19 ) * 37 + - 42 - 79 + - 5 / - NULLIF ( + ( + 71 ), COUNT ( * ) ) * + COALESCE ( + - 32, 32 ) + + 88 - 90 AS col0
----
-52145

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2106
SELECT ALL - 97 - + COUNT( * ) + 31 + - CAST( NULL AS DECIMAL ) * - 31 + + - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL - 97 - + COUNT ( * ) + 31 + - CAST ( NULL AS REAL ) * - 31 + + - 58 AS col2
----
NULL

query I rowsort
SELECT + 14 * - 58 AS col2
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT + 88 * 4 * + - 20 + 48 * - - CASE - 52 WHEN + 18 + 12 THEN 64 WHEN + 6 * + MAX( DISTINCT - - 10 ) THEN 62 END + - 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT + 88 * 4 * + - 20 + 48 * - - CASE - 52 WHEN + 18 + 12 THEN 64 WHEN + 6 * + MAX ( DISTINCT - - 10 ) THEN 62 END + - 54 AS col0
----
NULL

query I rowsort
SELECT 73 * - + 77
----
-5621

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

skipif mysql # not compatible
query II rowsort label-2110
SELECT COUNT ( * ) AS col2, 31
----
1
31

query II rowsort
SELECT ALL - 32, 7 AS col1
----
-32
7

query I rowsort
SELECT DISTINCT - 4 - - + 14 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT - + SUM( DISTINCT - - 54 ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-2113
SELECT - + SUM ( DISTINCT - - 54 ) col2
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL - - 75 * 78 * COUNT( ALL - - 27 )
----
5850

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL - - 75 * 78 * COUNT ( ALL - - 27 )
----
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT CASE - 21 WHEN - 92 THEN NULL ELSE + COUNT( * ) END - 72
----
-71

skipif mysql # not compatible
query I rowsort label-2116
SELECT CASE - 21 WHEN - 92 THEN NULL ELSE + COUNT ( * ) END - 72
----
-71

query I rowsort
SELECT DISTINCT - + 46 + + 65 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2118
SELECT - 80 DIV + COUNT( * ) + - 93 AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-2118
SELECT - 80 / + COUNT ( * ) + - 93 AS col1
----
-173

query I rowsort
SELECT DISTINCT 96 + 94 * - 53
----
-4886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT ALL - 25 * - ( - - CASE - NULLIF ( CAST( 25 AS SIGNED ), 69 ) WHEN + - CASE CAST( - 38 AS SIGNED ) WHEN COUNT( * ) THEN + 14 ELSE 40 END / + ( + 85 ) + 86 + 2 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE + + 6 END ) + - 29 AS col0
----
121

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL - 25 * - ( - - CASE - NULLIF ( CAST ( 25 AS INTEGER ), 69 ) WHEN + - CASE CAST ( - 38 AS INTEGER ) WHEN COUNT ( * ) THEN + 14 ELSE 40 END / + ( + 85 ) + 86 + 2 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE + + 6 END ) + - 29 AS col0
----
121

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

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

query I rowsort
SELECT DISTINCT 25 * - + 73 + + 19
----
-1806

onlyif mysql # DIV for integer division: 
query I rowsort label-2123
SELECT 65 DIV + 3 - - ( - - 60 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2123
SELECT 65 / + 3 - - ( - - 60 ) AS col0
----
81

query I rowsort
SELECT NULLIF ( + 17, + 48 ) AS col0
----
17

query I rowsort
SELECT 3 * 63
----
189

query I rowsort
SELECT ALL 0 * 23 + + 86 AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT - ( - ( + 18 ) ) DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT - ( - ( + 18 ) ) / + 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT ( - 12 ) DIV + MAX( 8 ) + - 33 + - 26 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2128
SELECT ( - 12 ) / + MAX ( 8 ) + - 33 + - 26 AS col0
----
-60

query I rowsort
SELECT ALL 37 * + - 85 * - 33 + - 59 * - 99
----
109626

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

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

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

skipif mysql # not compatible
query I rowsort label-2131
SELECT + MAX ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2132
SELECT DISTINCT SUM( ( + CAST( NULL AS SIGNED ) ) ) * - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT SUM ( ( + CAST ( NULL AS INTEGER ) ) ) * - + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + 28 + ( - - 53 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + COUNT( * ) + 61 col2
----
62

skipif mysql # not compatible
query I rowsort label-2134
SELECT + COUNT ( * ) + 61 col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL + - MAX( DISTINCT - - 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL + - MAX ( DISTINCT - - 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2136
SELECT DISTINCT + ( COUNT( * ) ) AS col1, - 16 * - 49
----
1
784

skipif mysql # not compatible
query II rowsort label-2136
SELECT DISTINCT + ( COUNT ( * ) ) AS col1, - 16 * - 49
----
1
784

query I rowsort
SELECT + - 55 * - 30 * + 18 AS col2
----
29700

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT + COUNT( * ) * + 57 + + 55 * - 83 * CASE - SUM( DISTINCT - 99 ) WHEN + + 22 + + AVG ( - + 56 ) THEN NULL WHEN - - 90 THEN NULL ELSE 63 + - COUNT( * ) END * 54 + + 49 + 70 * + 20 * + 2
----
-15280714

skipif mysql # not compatible
query I rowsort label-2138
SELECT + COUNT ( * ) * + 57 + + 55 * - 83 * CASE - SUM ( DISTINCT - 99 ) WHEN + + 22 + + AVG ( - + 56 ) THEN NULL WHEN - - 90 THEN NULL ELSE 63 + - COUNT ( * ) END * 54 + + 49 + 70 * + 20 * + 2
----
-15280714

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT + 53 * - 39 + - + COUNT( * ) * COUNT( * ) AS col2
----
-2068

skipif mysql # not compatible
query I rowsort label-2139
SELECT + 53 * - 39 + - + COUNT ( * ) * COUNT ( * ) AS col2
----
-2068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT ALL + CAST( NULL AS SIGNED ) * - ( MIN( DISTINCT - 39 ) ) * - ( + 53 ) / SUM( 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( MIN ( DISTINCT - 39 ) ) * - ( + 53 ) / SUM ( 46 )
----
NULL

query II rowsort
SELECT ALL + - 2 * - 65 AS col1, 38 col2
----
130
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT DISTINCT 40 * + 14 * - 77 - 94 AS col1, - COUNT( * ) + 10
----
-43214
9

skipif mysql # not compatible
query II rowsort label-2142
SELECT DISTINCT 40 * + 14 * - 77 - 94 AS col1, - COUNT ( * ) + 10
----
-43214
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT + - 61 * + 98 * COUNT( * )
----
-5978

skipif mysql # not compatible
query I rowsort label-2143
SELECT + - 61 * + 98 * COUNT ( * )
----
-5978

query I rowsort
SELECT - - 56 + 60 col0
----
116

query I rowsort
SELECT + 28 + - 72 + + ( + 58 ) + 96 * + - 97
----
-9298

query I rowsort
SELECT - + 81 + 42 * + 69 AS col2
----
2817

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2147
SELECT + 42 + - - NULLIF ( + 15, - + CAST( NULL AS DECIMAL ) ) + 5 + + 55 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-2147
SELECT + 42 + - - NULLIF ( + 15, - + CAST ( NULL AS REAL ) ) + 5 + + 55 AS col1
----
117

query I rowsort
SELECT DISTINCT + 48 + - 4 AS col1
----
44

query II rowsort
SELECT - 69 + - 78 AS col0, 77 AS col2
----
-147
77

query I rowsort
SELECT ALL + 9 + - - 49 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT DISTINCT MAX( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT MAX ( + 5 )
----
5

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

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

query I rowsort
SELECT DISTINCT + 79 * - - 33 col0
----
2607

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - 18 + + COUNT( * ) * + 77 * 2 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 18 + + COUNT ( * ) * + 77 * 2 AS col2
----
136

query II rowsort
SELECT - ( + 90 ) * - 86 AS col0, - 41 * - 67 AS col0
----
7740
2747

query III rowsort
SELECT - 83 * - + 91 * 66 AS col1, 77 * - - 50 + + 48, - 88 * 87 * NULLIF ( + 13, 87 ) AS col1
----
498498
3898
-99528

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2157
SELECT - CAST( - 98 AS SIGNED ) + - 25 col1, 99 AS col0
----
73
99

skipif mysql # not compatible
query II rowsort label-2157
SELECT - CAST ( - 98 AS INTEGER ) + - 25 col1, 99 AS col0
----
73
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2158
SELECT ALL 64 DIV 44 + - 35
----
-34

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL 64 / 44 + - 35
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2159
SELECT ALL 33 DIV + SUM( ALL - - 37 ) - + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL 33 / + SUM ( ALL - - 37 ) - + - COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2160
SELECT DISTINCT + CAST( + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT + CAST ( + 86 AS INTEGER )
----
86

query I rowsort
SELECT - 47 * + + 85
----
-3995

query I rowsort
SELECT ALL + 62 * - 15
----
-930

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

query I rowsort
SELECT ( + 30 ) col2
----
30

query I rowsort
SELECT - 41 + + 96
----
55

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

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

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

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

query I rowsort
SELECT ( - 1 )
----
-1

query I rowsort
SELECT + CASE + 65 WHEN 76 * 23 + + + ( - + 25 ) * - 57 - - 84 THEN NULL WHEN + 99 THEN 88 * - 45 ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2171
SELECT + 57 * 51 * 13 + COUNT( * ) + - + COUNT( DISTINCT - - CAST( - 80 AS SIGNED ) ) AS col1
----
37791

skipif mysql # not compatible
query I rowsort label-2171
SELECT + 57 * 51 * 13 + COUNT ( * ) + - + COUNT ( DISTINCT - - CAST ( - 80 AS INTEGER ) ) AS col1
----
37791

query I rowsort
SELECT ALL 40 * 21 AS col1
----
840

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

query I rowsort
SELECT ALL - 15 * - + 62
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT ALL + NULLIF ( + + 73, - + 61 + + - 92 + - COUNT( * ) * - MIN( + - 19 ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL + NULLIF ( + + 73, - + 61 + + - 92 + - COUNT ( * ) * - MIN ( + - 19 ) ) AS col2
----
73

query I rowsort
SELECT - - 65 * 68
----
4420

query I rowsort
SELECT ALL COALESCE ( - 67, - - 74 * - + 57, - - 95 ) * 8
----
-536

query I rowsort
SELECT + 87 * - 51
----
-4437

query I rowsort
SELECT + 26 * - 88 AS col2
----
-2288

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT + + ( - ( + - ( - - 25 ) ) ) + 9 DIV 76 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-2180
SELECT + + ( - ( + - ( - - 25 ) ) ) + 9 / 76 AS col2
----
25

query I rowsort
SELECT ALL 21 * - 64 * 25 + 77 * + COALESCE ( 68, - + 89 ) AS col0
----
-28364

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2182
SELECT + + 49 DIV CAST( 4 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-2182
SELECT + + 49 / CAST ( 4 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL + 38 + COUNT( + - 74 ) - - COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL + 38 + COUNT ( + - 74 ) - - COUNT ( * ) AS col2
----
40

query II rowsort
SELECT DISTINCT 3, 72 + + 2 AS col1
----
3
74

query I rowsort
SELECT DISTINCT 60 + + - 92
----
-32

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

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL 19 + 84 + - COUNT ( * ) AS col2
----
102

query I rowsort
SELECT 68 * 12 AS col0
----
816

query I rowsort
SELECT 6 * - 10 col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2189
SELECT - 64 AS col1, CAST( NULL AS SIGNED ) / + 48
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-2189
SELECT - 64 AS col1, CAST ( NULL AS INTEGER ) / + 48
----
-64
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2190
SELECT 10 AS col0, + 58 * + COUNT( * ) * - NULLIF ( - 95, - 53 ) AS col2
----
10
5510

skipif mysql # not compatible
query II rowsort label-2190
SELECT 10 AS col0, + 58 * + COUNT ( * ) * - NULLIF ( - 95, - 53 ) AS col2
----
10
5510

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2192
SELECT - 22 col2, COUNT( * )
----
-22
1

skipif mysql # not compatible
query II rowsort label-2192
SELECT - 22 col2, COUNT ( * )
----
-22
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ( + 68 ) + + SUM( + 12 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2193
SELECT ( + 68 ) + + SUM ( + 12 ) AS col2
----
80

query I rowsort
SELECT ALL 59 - - + 29
----
88

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

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

query II rowsort
SELECT + 88, 51 col0
----
88
51

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

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

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

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

query II rowsort
SELECT 4 AS col2, + 43
----
4
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2200
SELECT - 40 DIV - + 60 * - COUNT( * ) + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2200
SELECT - 40 / - + 60 * - COUNT ( * ) + 13 AS col1
----
13

query II rowsort
SELECT 42 AS col0, 6 col2
----
42
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2202
SELECT + ( + 23 ) * + + 79 + + 4 DIV 50 col0
----
1817

skipif mysql # not compatible
query I rowsort label-2202
SELECT + ( + 23 ) * + + 79 + + 4 / 50 col0
----
1817

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2204
SELECT - 27 DIV + 47 + - MIN( DISTINCT - 34 ) - + 1 - + 93
----
-60

skipif mysql # not compatible
query I rowsort label-2204
SELECT - 27 / + 47 + - MIN ( DISTINCT - 34 ) - + 1 - + 93
----
-60

query II rowsort
SELECT ALL - - 91 AS col0, + 72 + 85 * + 49 AS col2
----
91
4237

query II rowsort
SELECT + ( + 28 ) * + 31 + - - 78, 22 * 68 AS col1
----
946
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT COUNT( * ) * 17 + 21
----
38

skipif mysql # not compatible
query I rowsort label-2207
SELECT COUNT ( * ) * 17 + 21
----
38

query II rowsort
SELECT + 47 AS col1, 8 AS col0
----
47
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2209
SELECT COALESCE ( - COUNT( * ), - - 69 ) DIV COUNT( * ) - + 9
----
-10

skipif mysql # not compatible
query I rowsort label-2209
SELECT COALESCE ( - COUNT ( * ), - - 69 ) / COUNT ( * ) - + 9
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL 63 + - 15 + - COUNT( * ) * 91 * 53 * + 40 * - - MIN( 32 ) AS col1
----
-6173392

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL 63 + - 15 + - COUNT ( * ) * 91 * 53 * + 40 * - - MIN ( 32 ) AS col1
----
-6173392

query I rowsort
SELECT 89 + + - 48 AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2212
SELECT ALL SUM( ALL - 18 ) + + COALESCE ( + + 24, + + COUNT( + + 66 ), + 71 * + + 70 + - COUNT( * ) ) AS col2, 61 DIV - 68 * + 12 AS col0
----
6
0

skipif mysql # not compatible
query II rowsort label-2212
SELECT ALL SUM ( ALL - 18 ) + + COALESCE ( + + 24, + + COUNT ( + + 66 ), + 71 * + + 70 + - COUNT ( * ) ) AS col2, 61 / - 68 * + 12 AS col0
----
6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT - + 26 + 83 * - MAX( + 80 )
----
-6666

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT - + 26 + 83 * - MAX ( + 80 )
----
-6666

query I rowsort
SELECT - 73 + - 68
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL COUNT( * ) + 10 col1
----
11

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL COUNT ( * ) + 10 col1
----
11

query I rowsort
SELECT 77 + - - 88 AS col0
----
165

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

skipif mysql # not compatible
query I rowsort label-2217
SELECT 13 * + 50 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT SUM( DISTINCT - 4 ) + - - 24 * - 21
----
-508

skipif mysql # not compatible
query I rowsort label-2218
SELECT SUM ( DISTINCT - 4 ) + - - 24 * - 21
----
-508

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT 96 + - 90 AS col2, COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-2219
SELECT 96 + - 90 AS col2, COUNT ( * )
----
6
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT ALL 66 DIV + 18 col0
----
3

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL 66 / + 18 col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2221
SELECT ALL COALESCE ( 6, - 75 + - 32, - SUM( - 89 ) ) - - COUNT( * ) AS col2, 86 DIV - 78 + + 9 + 45
----
7
53

skipif mysql # not compatible
query II rowsort label-2221
SELECT ALL COALESCE ( 6, - 75 + - 32, - SUM ( - 89 ) ) - - COUNT ( * ) AS col2, 86 / - 78 + + 9 + 45
----
7
53

onlyif mysql # aggregate syntax: 
query II rowsort label-2222
SELECT DISTINCT 0 * COUNT( * ), 8 AS col1
----
0
8

skipif mysql # not compatible
query II rowsort label-2222
SELECT DISTINCT 0 * COUNT ( * ), 8 AS col1
----
0
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2223
SELECT DISTINCT 12 DIV - CASE 71 WHEN - COUNT( * ) THEN COUNT( * ) ELSE + 66 END * + MIN( DISTINCT 20 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT 12 / - CASE 71 WHEN - COUNT ( * ) THEN COUNT ( * ) ELSE + 66 END * + MIN ( DISTINCT 20 ) AS col0
----
0

query I rowsort
SELECT 22 + + 64 + - 34 AS col0
----
52

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

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

query II rowsort
SELECT DISTINCT 65 * 61 * 64 AS col2, + 67
----
253760
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT 47 DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-2227
SELECT 47 / - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT COUNT( * ) + - 18 + + 25 + + 99 + + - ( + - 75 ) AS col1
----
182

skipif mysql # not compatible
query I rowsort label-2228
SELECT COUNT ( * ) + - 18 + + 25 + + 99 + + - ( + - 75 ) AS col1
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT ALL + 72 DIV - - 12
----
6

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + 72 / - - 12
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-2230
SELECT COALESCE ( - 28, - 1 * - AVG ( - 99 ) ) DIV - ( - + 89 ) AS col0, 18
----
0
18

skipif mysql # not compatible
query II rowsort label-2230
SELECT COALESCE ( - 28, - 1 * - AVG ( - 99 ) ) / - ( - + 89 ) AS col0, 18
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT ALL + 29 * 13 + COUNT( * )
----
378

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL + 29 * 13 + COUNT ( * )
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT - 49 * + 94 * + 41 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT - 49 * + 94 * + 41 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + ( + CASE + 63 WHEN - - 26 + 80 THEN 37 ELSE + 41 * + 52 + 44 END ) AS col0
----
-2176

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL - 12 * 52 - 54 * + COUNT( * ) + + - 98 + - 81 + - ( CASE 83 WHEN + 27 THEN 12 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL - 12 * 52 - 54 * + COUNT ( * ) + + - 98 + - 81 + - ( CASE 83 WHEN + 27 THEN 12 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT MAX( + 26 ) + 54 + + + 38 * + + COUNT( DISTINCT - 59 )
----
118

skipif mysql # not compatible
query I rowsort label-2235
SELECT MAX ( + 26 ) + 54 + + + 38 * + + COUNT ( DISTINCT - 59 )
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + + CASE - 70 WHEN + 18 * + - 19 * COALESCE ( COUNT( * ), MIN( DISTINCT 4 ), + ( 78 ) * 52, - - 42 ) THEN NULL WHEN - COUNT( * ) + + COUNT( * ) + - + AVG ( DISTINCT + 72 ) THEN NULL ELSE COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2236
SELECT + + CASE - 70 WHEN + 18 * + - 19 * COALESCE ( COUNT ( * ), MIN ( DISTINCT 4 ), + ( 78 ) * 52, - - 42 ) THEN NULL WHEN - COUNT ( * ) + + COUNT ( * ) + - + AVG ( DISTINCT + 72 ) THEN NULL ELSE COUNT ( * ) END AS col1
----
1

query II rowsort
SELECT 32 + + 25 AS col0, + 95 AS col0
----
57
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2238
SELECT + 81 * - COALESCE ( - + 49, - 69 - + CASE - ( - - 26 ) WHEN + 40 - - - 89 * + 57 THEN NULL WHEN 90 - + 8 + - CASE + MAX( DISTINCT + - 53 ) WHEN + + NULLIF ( + - 21, - 69 + + - 97 ) DIV + + CASE + 10 WHEN + - 65 + + - 70 THEN - - 82 WHEN + ( - ( COALESCE ( + COUNT( 33 ), NULLIF ( - 39, - - CASE 94 WHEN 71 DIV ( 38 DIV + 27 ) THEN + MAX( DISTINCT - 92 ) * + 27 WHEN 5 + 92 THEN NULL WHEN + 80 THEN NULL END + - 71 ) ) ) ) DIV COUNT( * ) THEN NULL END * + CAST( 60 AS SIGNED ) + - CASE - 50 WHEN - COUNT( * ) THEN - ( NULLIF ( 10, + 79 ) ) + - 5 WHEN - CAST( NULL AS DECIMAL ) THEN - 17 END THEN + SUM( - 85 ) DIV 36 + 45 ELSE CAST( NULLIF ( 93, 65 ) AS SIGNED ) * + 53 + - 37 DIV 50 END THEN COUNT( * ) ELSE + 71 + 9 END + 83 * SUM( ALL 39 ) ) DIV - 7 col0
----
-567

skipif mysql # not compatible
query I rowsort label-2238
SELECT + 81 * - COALESCE ( - + 49, - 69 - + CASE - ( - - 26 ) WHEN + 40 - - - 89 * + 57 THEN NULL WHEN 90 - + 8 + - CASE + MAX ( DISTINCT + - 53 ) WHEN + + NULLIF ( + - 21, - 69 + + - 97 ) / + + CASE + 10 WHEN + - 65 + + - 70 THEN - - 82 WHEN + ( - ( COALESCE ( + COUNT ( 33 ), NULLIF ( - 39, - - CASE 94 WHEN 71 / ( 38 / + 27 ) THEN + MAX ( DISTINCT - 92 ) * + 27 WHEN 5 + 92 THEN NULL WHEN + 80 THEN NULL END + - 71 ) ) ) ) / COUNT ( * ) THEN NULL END * + CAST ( 60 AS INTEGER ) + - CASE - 50 WHEN - COUNT ( * ) THEN - ( NULLIF ( 10, + 79 ) ) + - 5 WHEN - CAST ( NULL AS REAL ) THEN - 17 END THEN + SUM ( - 85 ) / 36 + 45 ELSE CAST ( NULLIF ( 93, 65 ) AS INTEGER ) * + 53 + - 37 / 50 END THEN COUNT ( * ) ELSE + 71 + 9 END + 83 * SUM ( ALL 39 ) ) / - 7 col0
----
-567

onlyif mysql # aggregate syntax: 
query III rowsort label-2239
SELECT + + MIN( ALL - 17 ) AS col0, + 39 * - - 40 * + + 31 AS col1, - 75 AS col0
----
-17
48360
-75

skipif mysql # not compatible
query III rowsort label-2239
SELECT + + MIN ( ALL - 17 ) AS col0, + 39 * - - 40 * + + 31 AS col1, - 75 AS col0
----
-17
48360
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2240
SELECT ALL + - 29 + 57 DIV - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + - 29 + 57 / - COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + COUNT( * ) * + - 41 + - 59 + + + CASE + 49 WHEN + 78 THEN NULL ELSE 12 END * + 14 + - + 49
----
19

skipif mysql # not compatible
query I rowsort label-2241
SELECT + COUNT ( * ) * + - 41 + - 59 + + + CASE + 49 WHEN + 78 THEN NULL ELSE 12 END * + 14 + - + 49
----
19

query I rowsort
SELECT 11 * 44
----
484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2243
SELECT ALL - ( - + COUNT( * ) ) AS col2, - 48 * - - CAST( - NULLIF ( 78, - 56 / + - SUM( ALL - 82 ) + + ( COUNT( * ) ) * + 16 + - + 44 ) AS SIGNED ) col0
----
1
3744

skipif mysql # not compatible
query II rowsort label-2243
SELECT ALL - ( - + COUNT ( * ) ) AS col2, - 48 * - - CAST ( - NULLIF ( 78, - 56 / + - SUM ( ALL - 82 ) + + ( COUNT ( * ) ) * + 16 + - + 44 ) AS INTEGER ) col0
----
1
3744

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

query I rowsort
SELECT ALL - ( - 23 ) + 71 * + 5
----
378

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

skipif mysql # not compatible
query I rowsort label-2246
SELECT COUNT ( * ) * ( - - 71 )
----
71

query I rowsort
SELECT ALL - + NULLIF ( - 84, - ( - 46 ) ) AS col2
----
84

query I rowsort
SELECT - COALESCE ( - ( - 18 ), + 74 ) AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT - + 56 DIV - 11 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2249
SELECT - + 56 / - 11 AS col0
----
5

query II rowsort
SELECT - CASE - 63 WHEN + + 46 * - 32 / + - 13 * + 20 + ( - - 75 ) THEN 79 END * + 81 AS col0, 93 col1
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT DISTINCT + 20 - + ( + COUNT( * ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT + 20 - + ( + COUNT ( * ) ) AS col0
----
19

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

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + COUNT ( * ) / - + 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2253
SELECT - 48 * 56 * + + 58 col2, + CAST( NULL AS SIGNED ) col0
----
-155904
NULL

skipif mysql # not compatible
query II rowsort label-2253
SELECT - 48 * 56 * + + 58 col2, + CAST ( NULL AS INTEGER ) col0
----
-155904
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2254
SELECT ALL 60 * + 51 DIV - COUNT( * ), 42 * + 80 AS col1
----
-3060
3360

skipif mysql # not compatible
query II rowsort label-2254
SELECT ALL 60 * + 51 / - COUNT ( * ), 42 * + 80 AS col1
----
-3060
3360

query I rowsort
SELECT + 42 + + + 10 AS col2
----
52

query I rowsort
SELECT - 12 * + ( + + ( + COALESCE ( - 4, + 98 ) ) ) AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT + 18 * + + 85 * + - 12 DIV + + ( - 1 )
----
18360

skipif mysql # not compatible
query I rowsort label-2257
SELECT + 18 * + + 85 * + - 12 / + + ( - 1 )
----
18360

query I rowsort
SELECT ALL 24 * 63
----
1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2259
SELECT - 88 - CAST( NULL AS SIGNED ) + - + 70 * - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT - 88 - CAST ( NULL AS INTEGER ) + - + 70 * - 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT ALL - COUNT( * ) * - ( - 73 ), + 51 AS col0
----
-73
51

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL - COUNT ( * ) * - ( - 73 ), + 51 AS col0
----
-73
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT DISTINCT 11 DIV + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT 11 / + 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL 46 + + 87 * - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL 46 + + 87 * - COUNT ( * )
----
-41

query I rowsort
SELECT + 52 * 24
----
1248

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL ( + + 15 ) * - 86 + COUNT( * )
----
-1289

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL ( + + 15 ) * - 86 + COUNT ( * )
----
-1289

query I rowsort
SELECT + 79 * + 81 AS col1
----
6399

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT + ( - + MIN( - 12 ) ) col0
----
12

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + ( - + MIN ( - 12 ) ) col0
----
12

query I rowsort
SELECT DISTINCT + 57 * + 18 - - ( - + 97 ) AS col2
----
929

query II rowsort
SELECT + ( + - 76 ) * 66 * - - 91, 23 AS col1
----
-456456
23

query II rowsort
SELECT ALL + + 3 AS col2, - 61
----
3
-61

query I rowsort
SELECT + + 76 + - 52
----
24

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2275
SELECT + COUNT( 95 ) + 59 + + 88 * + 15 * CAST( NULL AS DECIMAL ) + - + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT + COUNT ( 95 ) + 59 + + 88 * + 15 * CAST ( NULL AS REAL ) + - + 10
----
NULL

query II rowsort
SELECT + 50, + 76 AS col0
----
50
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT CASE 22 WHEN + 87 THEN NULL ELSE 38 + - SUM( + 45 ) END AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2277
SELECT CASE 22 WHEN + 87 THEN NULL ELSE 38 + - SUM ( + 45 ) END AS col1
----
-7

query I rowsort
SELECT ALL + 99 * - 41
----
-4059

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT DISTINCT - 88 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT - 88 / - 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT DISTINCT + 16 * + 73 * - 21 * + 52 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT + 16 * + 73 * - 21 * + 52 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - 31 + - - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-2281
SELECT - 31 + - - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT ALL 37 * - COUNT( * ) AS col1, 87 * - 47 col1
----
-37
-4089

skipif mysql # not compatible
query II rowsort label-2282
SELECT ALL 37 * - COUNT ( * ) AS col1, 87 * - 47 col1
----
-37
-4089

query I rowsort
SELECT - 24 + + 74 + - 4
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL COALESCE ( 52, + + 86 + COUNT( * ) )
----
52

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL COALESCE ( 52, + + 86 + COUNT ( * ) )
----
52

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

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

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

skipif mysql # not compatible
query I rowsort label-2286
SELECT - CAST ( ( - MIN ( ALL - 93 ) ) AS INTEGER ) AS col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT - 18 DIV + 60 * 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2287
SELECT - 18 / + 60 * 52 AS col1
----
0

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

query I rowsort
SELECT - 65 * 9 AS col1
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT - 82 DIV 77 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2290
SELECT - 82 / 77 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL - 0 + - 27 * - CASE 98 WHEN - - COUNT( ALL 40 ) / 39 + + 77 + + 75 - - 1 + - + COALESCE ( + COUNT( * ), 73 - + CASE 56 WHEN + MAX( ALL + + ( 78 ) ) * - - 23 + 14 * + 74 - - - 50 THEN NULL ELSE ( + 19 ) END, - + 42 ) + - 76 + + COALESCE ( - - 90, + CASE - 65 WHEN + + 39 THEN NULL WHEN - + 15 THEN - + COUNT( * ) ELSE NULL END + 56 * 39, 49 ) THEN NULLIF ( - 21, 96 ) + - COUNT( * ) * 56 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - 0 + - 27 * - CASE 98 WHEN - - COUNT ( ALL 40 ) / 39 + + 77 + + 75 - - 1 + - + COALESCE ( + COUNT ( * ), 73 - + CASE 56 WHEN + MAX ( ALL + + ( 78 ) ) * - - 23 + 14 * + 74 - - - 50 THEN NULL ELSE ( + 19 ) END, - + 42 ) + - 76 + + COALESCE ( - - 90, + CASE - 65 WHEN + + 39 THEN NULL WHEN - + 15 THEN - + COUNT ( * ) ELSE NULL END + 56 * 39, 49 ) THEN NULLIF ( - 21, 96 ) + - COUNT ( * ) * 56 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT - ( 34 ) + - 33 - + - COUNT( ALL - + 80 ) * - 65 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT - ( 34 ) + - 33 - + - COUNT ( ALL - + 80 ) * - 65 AS col0
----
-132

query I rowsort
SELECT - CASE + 70 WHEN - 70 THEN NULL ELSE + 65 END + + 21
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT ALL - 9 * - - 80 * + + COUNT( * )
----
-720

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - 9 * - - 80 * + + COUNT ( * )
----
-720

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2296
SELECT + 87 + ( + ( + 45 ) ) / ( CASE - CASE + 93 WHEN + ( + CASE COUNT( * ) WHEN - 74 * - COUNT( * ) THEN NULL WHEN - 36 THEN + 99 - + ( - COALESCE ( - 30, 20 + - - AVG ( DISTINCT + - 30 ) + + COUNT( * ) * - 16 ) ) END ) THEN NULL ELSE 42 * - - 19 END WHEN - + 38 THEN + COALESCE ( + + 11, - 92 * - COUNT( * ) + SUM( ALL + 21 ) * + CAST( - 23 AS SIGNED ), + 42 ) WHEN + 92 THEN 22 / + 24 WHEN NULLIF ( + 14, 68 ) + SUM( DISTINCT 92 ) THEN NULL ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT + 87 + ( + ( + 45 ) ) / ( CASE - CASE + 93 WHEN + ( + CASE COUNT ( * ) WHEN - 74 * - COUNT ( * ) THEN NULL WHEN - 36 THEN + 99 - + ( - COALESCE ( - 30, 20 + - - AVG ( DISTINCT + - 30 ) + + COUNT ( * ) * - 16 ) ) END ) THEN NULL ELSE 42 * - - 19 END WHEN - + 38 THEN + COALESCE ( + + 11, - 92 * - COUNT ( * ) + SUM ( ALL + 21 ) * + CAST ( - 23 AS INTEGER ), + 42 ) WHEN + 92 THEN 22 / + 24 WHEN NULLIF ( + 14, 68 ) + SUM ( DISTINCT 92 ) THEN NULL ELSE NULL END ) col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2299
SELECT ALL + 46 DIV - COUNT( * ) + + + 59 * - 34
----
-2052

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL + 46 / - COUNT ( * ) + + + 59 * - 34
----
-2052

onlyif mysql # aggregate syntax: 
query II rowsort label-2300
SELECT DISTINCT + - ( + + 44 ) AS col2, - 5 * + COUNT( * )
----
-44
-5

skipif mysql # not compatible
query II rowsort label-2300
SELECT DISTINCT + - ( + + 44 ) AS col2, - 5 * + COUNT ( * )
----
-44
-5

query I rowsort
SELECT ALL - 55 * - 74 * - + 10
----
-40700

query I rowsort
SELECT + NULLIF ( - ( - + 26 ), + 0 + - 51 + 43 * 76 * 72 ) * + ( - 26 ) + - + 83
----
-759

onlyif mysql # DIV for integer division: 
query I rowsort label-2303
SELECT ALL + 11 DIV - + 47 * + 30
----
0

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + 11 / - + 47 * + 30
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT 5 DIV + 13 + - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-2305
SELECT 5 / + 13 + - 23 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2306
SELECT + 78 * + MIN( ALL + + 66 ) + + 40 + + CASE - 9 WHEN 61 THEN COALESCE ( - + 17, + NULLIF ( + - 39, - 81 ) ) / - CAST( 53 AS SIGNED ) WHEN 31 * - CAST( + + 31 AS SIGNED ) THEN NULL END col2, COUNT( - ( + - 9 ) ) * 43 + + + 42 + - 52
----
NULL
33

skipif mysql # not compatible
query II rowsort label-2306
SELECT + 78 * + MIN ( ALL + + 66 ) + + 40 + + CASE - 9 WHEN 61 THEN COALESCE ( - + 17, + NULLIF ( + - 39, - 81 ) ) / - CAST ( 53 AS INTEGER ) WHEN 31 * - CAST ( + + 31 AS INTEGER ) THEN NULL END col2, COUNT ( - ( + - 9 ) ) * 43 + + + 42 + - 52
----
NULL
33

query I rowsort
SELECT DISTINCT 14 - 58 AS col2
----
-44

query I rowsort
SELECT ALL - ( - - 6 ) * + 85
----
-510

query I rowsort
SELECT 74 * 6
----
444

query II rowsort
SELECT ALL - 48 AS col2, - 11 * + 94
----
-48
-1034

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

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT 41 * - + COUNT( * ) * + 24 * - 26
----
25584

skipif mysql # not compatible
query I rowsort label-2312
SELECT 41 * - + COUNT ( * ) * + 24 * - 26
----
25584

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2314
SELECT ALL NULLIF ( 84, + 78 + CAST( - 22 AS DECIMAL ) - - 67 ) + - - 66
----
150

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL NULLIF ( 84, + 78 + CAST ( - 22 AS REAL ) - - 67 ) + - - 66
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT DISTINCT + 68 + + MAX( - - 39 ) + + COUNT( * ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT + 68 + + MAX ( - - 39 ) + + COUNT ( * ) AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT CAST( NULL AS SIGNED ) + - AVG ( - + 96 ) / - + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT CAST ( NULL AS INTEGER ) + - AVG ( - + 96 ) / - + 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2317
SELECT DISTINCT + MIN( + - 35 ) + + 27 * CAST( - - 69 AS SIGNED ) AS col2
----
1828

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT + MIN ( + - 35 ) + + 27 * CAST ( - - 69 AS INTEGER ) AS col2
----
1828

query I rowsort
SELECT ALL - 50 + + + 58 AS col1
----
8

query I rowsort
SELECT 46 + 31
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - - MIN( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-2320
SELECT - - MIN ( 57 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT DISTINCT + 39 - - 49 DIV 29
----
40

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT + 39 - - 49 / 29
----
40

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

query I rowsort
SELECT ALL - 6 - - - 75
----
-81

query I rowsort
SELECT + 74 * - 7 col2
----
-518

query I rowsort
SELECT ALL - + 9 * 57 AS col2
----
-513

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT COUNT( * ) DIV 79 DIV - 29 - - + 37 col2
----
37

skipif mysql # not compatible
query I rowsort label-2326
SELECT COUNT ( * ) / 79 / - 29 - - + 37 col2
----
37

query I rowsort
SELECT 89 * + + 91 AS col2
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT COUNT( * ) - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT COUNT ( * ) - COUNT ( * ) col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2330
SELECT ALL + + COALESCE ( + CAST( NULL AS SIGNED ), - 42 * 20, + + COUNT( * ) + COUNT( * ) + + 65 ) * - 71 AS col2
----
59640

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL + + COALESCE ( + CAST ( NULL AS INTEGER ), - 42 * 20, + + COUNT ( * ) + COUNT ( * ) + + 65 ) * - 71 AS col2
----
59640

query I rowsort
SELECT 89 - - 14 col0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT + 17 DIV 16 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2332
SELECT + 17 / 16 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2333
SELECT ALL - 48 AS col1, COUNT( * ) * + 25 * + - 67 + + ( - 54 ) * COUNT( DISTINCT - + 98 )
----
-48
-1729

skipif mysql # not compatible
query II rowsort label-2333
SELECT ALL - 48 AS col1, COUNT ( * ) * + 25 * + - 67 + + ( - 54 ) * COUNT ( DISTINCT - + 98 )
----
-48
-1729

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT COUNT( * ) - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2334
SELECT COUNT ( * ) - 31 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT 96 + + SUM( 78 )
----
174

skipif mysql # not compatible
query I rowsort label-2335
SELECT 96 + + SUM ( 78 )
----
174

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT - 65 * + - COUNT( * ) + CAST( NULL AS SIGNED ) * 87 + + - 26 * 75 + - 39 + + - 12 + - 67 * MAX( ALL - 12 ) - + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT - 65 * + - COUNT ( * ) + CAST ( NULL AS INTEGER ) * 87 + + - 26 * 75 + - 39 + + - 12 + - 67 * MAX ( ALL - 12 ) - + 51 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2338
SELECT 41 * - + 15 AS col0, + 27 + - - CAST( NULL AS DECIMAL )
----
-615
NULL

skipif mysql # not compatible
query II rowsort label-2338
SELECT 41 * - + 15 AS col0, + 27 + - - CAST ( NULL AS REAL )
----
-615
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT 12 + 58 + - + 58 + - 47 * + COALESCE ( + 4, + + CASE - + COALESCE ( - 50, - 27, + 91 ) WHEN + + 36 * + 17 + + 93 THEN - + 2 ELSE - - 30 * - 66 * + + 86 + - - 73 + - 34 - - 26 END, 45 DIV 2 )
----
-176

skipif mysql # not compatible
query I rowsort label-2339
SELECT 12 + 58 + - + 58 + - 47 * + COALESCE ( + 4, + + CASE - + COALESCE ( - 50, - 27, + 91 ) WHEN + + 36 * + 17 + + 93 THEN - + 2 ELSE - - 30 * - 66 * + + 86 + - - 73 + - 34 - - 26 END, 45 / 2 )
----
-176

query I rowsort
SELECT DISTINCT - 99 + + 34 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL + COUNT( * ) + + - 23 * + - 24 col2
----
553

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL + COUNT ( * ) + + - 23 * + - 24 col2
----
553

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT 17 * - + 22 + + + COUNT( * )
----
-373

skipif mysql # not compatible
query I rowsort label-2342
SELECT 17 * - + 22 + + + COUNT ( * )
----
-373

query I rowsort
SELECT DISTINCT + 27 * - + 74 AS col2
----
-1998

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT ( - + CAST( NULL AS SIGNED ) ) + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2345
SELECT ( - + CAST ( NULL AS INTEGER ) ) + + 28 AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 93 + - 32 + 21 * - + 25 AS col2, 24
----
-464
24

query I rowsort
SELECT CASE 82 WHEN + 25 THEN - 35 + + - AVG ( DISTINCT + - 46 ) END + 23 + - 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2349
SELECT 75, - COUNT( * ) + 69 col1
----
75
68

skipif mysql # not compatible
query II rowsort label-2349
SELECT 75, - COUNT ( * ) + 69 col1
----
75
68

query I rowsort
SELECT 56 * - ( 73 ) AS col1
----
-4088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2351
SELECT ALL 57 - - ( COUNT( * ) ) DIV + 72 + - + 59 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL 57 - - ( COUNT ( * ) ) / + 72 + - + 59 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 77 * - 25 AS col0
----
-1925

query I rowsort
SELECT ALL - 55 - + 78 col2
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT - + 33 + + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2354
SELECT - + 33 + + COUNT ( * )
----
-32

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

query I rowsort
SELECT ALL ( + COALESCE ( + + ( - 64 ), 25 ) ) col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-2357
SELECT ALL - COUNT( * ) AS col0, - 2
----
-1
-2

skipif mysql # not compatible
query II rowsort label-2357
SELECT ALL - COUNT ( * ) AS col0, - 2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT + + 89 * - COUNT( ALL 91 ) * SUM( ALL 71 ) * + 63
----
-398097

skipif mysql # not compatible
query I rowsort label-2358
SELECT + + 89 * - COUNT ( ALL 91 ) * SUM ( ALL 71 ) * + 63
----
-398097

query I rowsort
SELECT - + 83 * + + 27
----
-2241

onlyif mysql # DIV for integer division: 
query I rowsort label-2360
SELECT + 61 + + 8 + - 52 DIV - 77
----
69

skipif mysql # not compatible
query I rowsort label-2360
SELECT + 61 + + 8 + - 52 / - 77
----
69

query II rowsort
SELECT ALL + 78, + 26 + 84 col0
----
78
110

query II rowsort
SELECT ALL 84 AS col0, + 14
----
84
14

query I rowsort
SELECT - 75 * 54
----
-4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2364
SELECT DISTINCT + COUNT( * ) DIV - 66 * - 87 + + CASE + 16 WHEN + 81 THEN + ( - 73 ) ELSE CASE - - 32 WHEN - 26 DIV - + COUNT( * ) THEN NULL WHEN + 92 DIV - - CASE + - 26 WHEN - - 72 THEN + + CASE 97 WHEN - COUNT( * ) * - ( - - ( + ( + 48 ) ) ) THEN + 99 * - - CAST( NULL AS SIGNED ) END WHEN 42 THEN + + 54 END * 83 + - 71 THEN NULL WHEN 76 THEN NULL ELSE + 73 END END AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT + COUNT ( * ) / - 66 * - 87 + + CASE + 16 WHEN + 81 THEN + ( - 73 ) ELSE CASE - - 32 WHEN - 26 / - + COUNT ( * ) THEN NULL WHEN + 92 / - - CASE + - 26 WHEN - - 72 THEN + + CASE 97 WHEN - COUNT ( * ) * - ( - - ( + ( + 48 ) ) ) THEN + 99 * - - CAST ( NULL AS INTEGER ) END WHEN 42 THEN + + 54 END * 83 + - 71 THEN NULL WHEN 76 THEN NULL ELSE + 73 END END AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT + 20 * + NULLIF ( - 78, - COUNT( * ) ) * - - 24
----
-37440

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + 20 * + NULLIF ( - 78, - COUNT ( * ) ) * - - 24
----
-37440

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT + 41 DIV - 43 col2
----
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT + 41 / - 43 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2367
SELECT - + 87 * + 37 col2, ( - 0 ) * - 2 - + CASE 58 WHEN - - NULLIF ( - 29, - 98 ) THEN + NULLIF ( + - 33, - COUNT( * ) - + 77 ) END / + 38
----
-3219
NULL

skipif mysql # not compatible
query II rowsort label-2367
SELECT - + 87 * + 37 col2, ( - 0 ) * - 2 - + CASE 58 WHEN - - NULLIF ( - 29, - 98 ) THEN + NULLIF ( + - 33, - COUNT ( * ) - + 77 ) END / + 38
----
-3219
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT ALL - + 86 * - + CAST( - - 29 AS SIGNED ) + + 50 AS col0
----
2544

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL - + 86 * - + CAST ( - - 29 AS INTEGER ) + + 50 AS col0
----
2544

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT NULLIF ( - MIN( ALL 78 ), + 40 )
----
-78

skipif mysql # not compatible
query I rowsort label-2369
SELECT NULLIF ( - MIN ( ALL 78 ), + 40 )
----
-78

query I rowsort
SELECT + 95 + - - 81 + 43
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT DISTINCT + CASE - + 88 WHEN - CASE - 31 WHEN + - 55 + + + COALESCE ( - + 51, - + 37 / - - 29 * COUNT( DISTINCT 45 ), - - 13 + - 12 ) / + 92 THEN NULL ELSE + 16 * 95 + NULLIF ( 99, + 35 * + + 53 + - 79 ) END * + 25 + NULLIF ( + 53, - COALESCE ( 68, + MAX( ALL - ( + ( CAST( NULL AS SIGNED ) ) ) ) ) * + 34 ) * - 98 / 31 THEN + 14 * + + 18 ELSE - + 51 END
----
-51

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT + CASE - + 88 WHEN - CASE - 31 WHEN + - 55 + + + COALESCE ( - + 51, - + 37 / - - 29 * COUNT ( DISTINCT 45 ), - - 13 + - 12 ) / + 92 THEN NULL ELSE + 16 * 95 + NULLIF ( 99, + 35 * + + 53 + - 79 ) END * + 25 + NULLIF ( + 53, - COALESCE ( 68, + MAX ( ALL - ( + ( CAST ( NULL AS INTEGER ) ) ) ) ) * + 34 ) * - 98 / 31 THEN + 14 * + + 18 ELSE - + 51 END
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT ALL + CAST( NULL AS SIGNED ) * + 15 * - 74 + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + CAST ( NULL AS INTEGER ) * + 15 * - 74 + 27 AS col0
----
NULL

query I rowsort
SELECT - 66 * 78
----
-5148

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL + 25 * + + 14 * - COUNT( * ) + - 62
----
-412

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + 25 * + + 14 * - COUNT ( * ) + - 62
----
-412

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

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

query I rowsort
SELECT ALL 35 * + + 24 + + - 90 * + 8 AS col0
----
120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT DISTINCT + CASE 1 WHEN 90 THEN COUNT( * ) WHEN - 59 THEN MIN( + CASE - 82 WHEN 95 + - + 2 * 63 THEN NULL WHEN 48 THEN + 24 END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT + CASE 1 WHEN 90 THEN COUNT ( * ) WHEN - 59 THEN MIN ( + CASE - 82 WHEN 95 + - + 2 * 63 THEN NULL WHEN 48 THEN + 24 END ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL - 26 * + - 75 * - - 82 + - 48 * - + COUNT( * )
----
159948

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL - 26 * + - 75 * - - 82 + - 48 * - + COUNT ( * )
----
159948

query I rowsort
SELECT - 35 * - 42 AS col2
----
1470

query I rowsort
SELECT DISTINCT 47 * 25 AS col2
----
1175

query I rowsort
SELECT DISTINCT + 93 * 82 + 52 AS col2
----
7678

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

skipif mysql # not compatible
query I rowsort label-2383
SELECT + SUM ( - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT MAX( DISTINCT + 30 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-2384
SELECT MAX ( DISTINCT + 30 ) col1
----
30

query I rowsort
SELECT + 5 * - 86 * + + 76
----
-32680

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL 40 - 76 + - ( - - 24 ) * + 85 + - ( - ( + CASE + NULLIF ( COALESCE ( + 60, - - 97, COUNT( * ) ), + - 5 ) WHEN - COUNT( * ) + - 32 * - + AVG ( - 90 ) THEN - 43 END ) ) * - 77 / 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL 40 - 76 + - ( - - 24 ) * + 85 + - ( - ( + CASE + NULLIF ( COALESCE ( + 60, - - 97, COUNT ( * ) ), + - 5 ) WHEN - COUNT ( * ) + - 32 * - + AVG ( - 90 ) THEN - 43 END ) ) * - 77 / 42 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2390
SELECT - + 93 * - - CAST ( NULL AS INTEGER ) * 96
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), + 7 / - 60 + + 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), + 7 / - 60 + + 16 ) AS col0
----
NULL

query II rowsort
SELECT + 6 * + 54 AS col0, - 29
----
324
-29

query I rowsort
SELECT + 45 * 52 AS col2
----
2340

onlyif mysql # aggregate syntax: 
query II rowsort label-2395
SELECT DISTINCT SUM( + - 44 ), - 81 * + - 54 AS col2
----
-44
4374

skipif mysql # not compatible
query II rowsort label-2395
SELECT DISTINCT SUM ( + - 44 ), - 81 * + - 54 AS col2
----
-44
4374

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL + COUNT( * ) + - + 76 * - + 63 * + - 75
----
-359099

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL + COUNT ( * ) + - + 76 * - + 63 * + - 75
----
-359099

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2397
SELECT ALL - 71 + COUNT( * ) * - NULLIF ( - COALESCE ( + 10, - COUNT( 32 ) ), + 17 ) DIV ( + 94 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - 71 + COUNT ( * ) * - NULLIF ( - COALESCE ( + 10, - COUNT ( 32 ) ), + 17 ) / ( + 94 ) AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2398
SELECT DISTINCT 47 + 32 col2, - 4 + + CAST( NULL AS SIGNED ) + 48 col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-2398
SELECT DISTINCT 47 + 32 col2, - 4 + + CAST ( NULL AS INTEGER ) + 48 col0
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL 65 + 21 * COALESCE ( + 2, - SUM( ALL + 41 ) ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL 65 + 21 * COALESCE ( + 2, - SUM ( ALL + 41 ) ) AS col0
----
107

query I rowsort
SELECT + COALESCE ( - 97, + 36, + 94 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2401
SELECT + 48 - 16 AS col2, + MAX( ALL - 80 ) AS col0
----
32
-80

skipif mysql # not compatible
query II rowsort label-2401
SELECT + 48 - 16 AS col2, + MAX ( ALL - 80 ) AS col0
----
32
-80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT ALL + MIN( 4 ) DIV 24 * + 43 + - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL + MIN ( 4 ) / 24 * + 43 + - 35 AS col1
----
-35

query I rowsort
SELECT DISTINCT + 27 * 50 col0
----
1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2405
SELECT DISTINCT + 98 / COUNT( ALL - 31 ) * + 30 / - - 71 - - + MAX( ALL - - ( + + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT + 98 / COUNT ( ALL - 31 ) * + 30 / - - 71 - - + MAX ( ALL - - ( + + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT 54 * - + 34 + + + COALESCE ( + - 44, + 40 ) AS col0
----
-1880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2407
SELECT 18 * + + 35 - 93 - - 91 / - + CAST( NULL AS SIGNED ) + + 78 + + - 44 + - COUNT( * ) + + COUNT( 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2407
SELECT 18 * + + 35 - 93 - - 91 / - + CAST ( NULL AS INTEGER ) + + 78 + + - 44 + - COUNT ( * ) + + COUNT ( 49 )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2410
SELECT - 76 + - - MAX( ALL - 85 ) + + 0 * + 7 * NULLIF ( + 64, 89 ) AS col0, - COUNT( * ) + - - 86
----
-161
85

skipif mysql # not compatible
query II rowsort label-2410
SELECT - 76 + - - MAX ( ALL - 85 ) + + 0 * + 7 * NULLIF ( + 64, 89 ) AS col0, - COUNT ( * ) + - - 86
----
-161
85

query I rowsort
SELECT - 82 * - - 16
----
-1312

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL + ( - COUNT( + - 82 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + ( - COUNT ( + - 82 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT + COUNT( * ) * + CASE + + 11 WHEN + 74 + + 57 THEN NULL WHEN + 90 + + 49 THEN + - CAST( + - 36 AS SIGNED ) ELSE NULL END + 68 * + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT + COUNT ( * ) * + CASE + + 11 WHEN + 74 + + 57 THEN NULL WHEN + 90 + + 49 THEN + - CAST ( + - 36 AS INTEGER ) ELSE NULL END + 68 * + - 30
----
NULL

query I rowsort
SELECT ALL + 39 * 94 - - 20
----
3686

query I rowsort
SELECT DISTINCT - 64 * COALESCE ( - 37, 41 ) col1
----
2368

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

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

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

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

query I rowsort
SELECT - 94 * + 1 AS col1
----
-94

query I rowsort
SELECT + 68 + - 42
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT DISTINCT + 34 * - + SUM( - 93 ) * ( - ( + 73 ) ) + COUNT( * )
----
-230825

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT + 34 * - + SUM ( - 93 ) * ( - ( + 73 ) ) + COUNT ( * )
----
-230825

query I rowsort
SELECT ALL - 75 + - 71 AS col1
----
-146

query II rowsort
SELECT - 69 AS col1, 93 + 62
----
-69
155

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT ALL + - 31 + - - 37 * + 63 * - - COUNT( * ) AS col2, + 84 * + 37
----
2300
3108

skipif mysql # not compatible
query II rowsort label-2423
SELECT ALL + - 31 + - - 37 * + 63 * - - COUNT ( * ) AS col2, + 84 * + 37
----
2300
3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2424
SELECT DISTINCT - - 69 + 14 * CAST( NULL AS SIGNED ), 77 * - - MIN( DISTINCT - - 25 ) AS col0
----
NULL
1925

skipif mysql # not compatible
query II rowsort label-2424
SELECT DISTINCT - - 69 + 14 * CAST ( NULL AS INTEGER ), 77 * - - MIN ( DISTINCT - - 25 ) AS col0
----
NULL
1925

query I rowsort
SELECT DISTINCT + 84 + 55
----
139

query I rowsort
SELECT 41 + 23 col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2427
SELECT - 93 DIV + 6
----
-15

skipif mysql # not compatible
query I rowsort label-2427
SELECT - 93 / + 6
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT 74 + - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2428
SELECT 74 + - COUNT ( * )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2429
SELECT + 59 + + 81 + CAST( + 17 AS SIGNED ) + + - 68 * + + 58 * - + 78 * + CAST( NULL AS SIGNED ) AS col2, + 85 col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2429
SELECT + 59 + + 81 + CAST ( + 17 AS INTEGER ) + + - 68 * + + 58 * - + 78 * + CAST ( NULL AS INTEGER ) AS col2, + 85 col1
----
NULL
85

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

skipif mysql # not compatible
query I rowsort label-2430
SELECT - 3 * + CAST ( NULL AS INTEGER ) + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2431
SELECT CASE WHEN NOT NULL IS NULL THEN 80 ELSE NULL END * 12 AS col2, - ( - 98 ) + + - 21 + + 70 + - + COUNT( * ) + - COALESCE ( 62, + 74 ) * COUNT( DISTINCT + 24 ) * - - 65 * - 95 / + - 32 + + ( - 33 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2431
SELECT CASE WHEN NOT NULL IS NULL THEN 80 ELSE NULL END * 12 AS col2, - ( - 98 ) + + - 21 + + 70 + - + COUNT ( * ) + - COALESCE ( 62, + 74 ) * COUNT ( DISTINCT + 24 ) * - - 65 * - 95 / + - 32 + + ( - 33 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT + 15 DIV 45 + 52
----
52

skipif mysql # not compatible
query I rowsort label-2432
SELECT + 15 / 45 + 52
----
52

query I rowsort
SELECT ALL ( - - 28 ) - - - 84 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT COUNT( * ) * 26 AS col1, 28
----
26
28

skipif mysql # not compatible
query II rowsort label-2434
SELECT COUNT ( * ) * 26 AS col1, 28
----
26
28

query I rowsort
SELECT 66 + - 36 + + NULLIF ( + NULLIF ( 38, 53 ), + 97 ) AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2436
SELECT COALESCE ( + 56, - COUNT( * ) * - 18 * 64 + + + COUNT( * ), COUNT( - 73 ) ) * 10 DIV 70
----
8

skipif mysql # not compatible
query I rowsort label-2436
SELECT COALESCE ( + 56, - COUNT ( * ) * - 18 * 64 + + + COUNT ( * ), COUNT ( - 73 ) ) * 10 / 70
----
8

query I rowsort
SELECT 76 * + + 10
----
760

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT DISTINCT + 5 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT + 5 / 83
----
0

query I rowsort
SELECT DISTINCT + 78 * - 97 AS col2
----
-7566

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT DISTINCT 69 DIV - 25 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT 69 / - 25 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT MAX( - - 82 ) * - - MIN( + - 15 ) + - 9 AS col2
----
-1239

skipif mysql # not compatible
query I rowsort label-2441
SELECT MAX ( - - 82 ) * - - MIN ( + - 15 ) + - 9 AS col2
----
-1239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2442
SELECT CAST( + + 77 AS SIGNED ) * + NULLIF ( - 57, + 4 ) + + 13 * CASE 69 WHEN - COUNT( * ) * 82 * + 74 + - 44 + + 38 - COALESCE ( + + 81, - 71 * + + MIN( + 50 ) + + 94 + - + 29 + - 64 / NULLIF ( COUNT( * ), - + 70 * + + 97 * - 4 - 97 * + + 16 ), - 69 ) THEN - COUNT( * ) + - CASE SUM( DISTINCT + - 57 ) WHEN - 73 THEN - ( + 96 ) - + - COUNT( * ) * - ( - CAST( 82 AS SIGNED ) ) + 51 END + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT CAST ( + + 77 AS INTEGER ) * + NULLIF ( - 57, + 4 ) + + 13 * CASE 69 WHEN - COUNT ( * ) * 82 * + 74 + - 44 + + 38 - COALESCE ( + + 81, - 71 * + + MIN ( + 50 ) + + 94 + - + 29 + - 64 / NULLIF ( COUNT ( * ), - + 70 * + + 97 * - 4 - 97 * + + 16 ), - 69 ) THEN - COUNT ( * ) + - CASE SUM ( DISTINCT + - 57 ) WHEN - 73 THEN - ( + 96 ) - + - COUNT ( * ) * - ( - CAST ( 82 AS INTEGER ) ) + 51 END + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2443
SELECT ALL + 88 * + 37 AS col0, COUNT( * )
----
3256
1

skipif mysql # not compatible
query II rowsort label-2443
SELECT ALL + 88 * + 37 AS col0, COUNT ( * )
----
3256
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2444
SELECT CAST( + + 32 AS DECIMAL ) / + - CAST( NULL AS SIGNED ) / + 72, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2444
SELECT CAST ( + + 32 AS REAL ) / + - CAST ( NULL AS INTEGER ) / + 72, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT 15 * - 97 + 46 * 38 AS col0
----
293

query I rowsort
SELECT NULLIF ( + 51, + 27 ) AS col0
----
51

query II rowsort
SELECT ALL + + 71 * - + 79 col1, 80 + 14 col2
----
-5609
94

query I rowsort
SELECT ALL - + 8 + - 53 AS col0
----
-61

query I rowsort
SELECT DISTINCT 79 * 66 * - 45
----
-234630

query I rowsort
SELECT + 18 - - + 78
----
96

query I rowsort
SELECT ALL + COALESCE ( - + 10, + 21 + 55 ) AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT ALL + - 79 + - CAST( NULL AS SIGNED ) * + - 61 + + 16 * + 10 * - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + - 79 + - CAST ( NULL AS INTEGER ) * + - 61 + + 16 * + 10 * - - 3
----
NULL

query II rowsort
SELECT ALL - 46 + 80, - ( + 42 ) AS col1
----
34
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT DISTINCT - - 66 + + 97 - + COUNT( * ) - - 68 + + ( - 24 ) * - + 4, + ( 62 ) + + + 29 AS col0
----
326
91

skipif mysql # not compatible
query II rowsort label-2454
SELECT DISTINCT - - 66 + + 97 - + COUNT ( * ) - - 68 + + ( - 24 ) * - + 4, + ( 62 ) + + + 29 AS col0
----
326
91

query I rowsort
SELECT 9 * - - 54 AS col2
----
486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2456
SELECT MAX( + 73 ) * ( + - 95 ) AS col2, NULLIF ( + COUNT( * ), - 53 * - - COALESCE ( + 93, COUNT( * ) * + 33 * 80, COUNT( * ) + 33 * + + 58 * + - ( + 41 ) * - NULLIF ( 80, + 38 * + NULLIF ( + 91, - - 41 - - 76 ) * + - 91 - - - 42 + 67 ) ) + 16 + - NULLIF ( - 9, + 77 * + ( + NULLIF ( 79, ( - COALESCE ( 92, - - COUNT( * ) ) ) / - 91 + + COUNT( * ) ) ) + - CAST( 4 + 16 AS SIGNED ) ) ) AS col2
----
-6935
1

skipif mysql # not compatible
query II rowsort label-2456
SELECT MAX ( + 73 ) * ( + - 95 ) AS col2, NULLIF ( + COUNT ( * ), - 53 * - - COALESCE ( + 93, COUNT ( * ) * + 33 * 80, COUNT ( * ) + 33 * + + 58 * + - ( + 41 ) * - NULLIF ( 80, + 38 * + NULLIF ( + 91, - - 41 - - 76 ) * + - 91 - - - 42 + 67 ) ) + 16 + - NULLIF ( - 9, + 77 * + ( + NULLIF ( 79, ( - COALESCE ( 92, - - COUNT ( * ) ) ) / - 91 + + COUNT ( * ) ) ) + - CAST ( 4 + 16 AS INTEGER ) ) ) AS col2
----
-6935
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT DISTINCT + + 62 DIV - - ( + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT + + 62 / - - ( + 51 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2458
SELECT DISTINCT 83 - + CASE + 91 WHEN + 96 THEN NULL WHEN 90 * 2 THEN - - MAX( + CAST( NULL AS SIGNED ) ) - + 66 + - 46 END + + - 24 / + - ( - + CAST( NULL AS SIGNED ) ) / - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT 83 - + CASE + 91 WHEN + 96 THEN NULL WHEN 90 * 2 THEN - - MAX ( + CAST ( NULL AS INTEGER ) ) - + 66 + - 46 END + + - 24 / + - ( - + CAST ( NULL AS INTEGER ) ) / - + 1
----
NULL

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

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

query I rowsort
SELECT ALL + 28 * 39 AS col1
----
1092

query I rowsort
SELECT DISTINCT + - 49 - - - 50 * + 80
----
-4049

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT DISTINCT + MIN( + 6 ) - - COUNT( * ) * MAX( ALL 87 ) * - + 32 + - 89
----
-2867

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + MIN ( + 6 ) - - COUNT ( * ) * MAX ( ALL 87 ) * - + 32 + - 89
----
-2867

query I rowsort
SELECT COALESCE ( 93, 53 ) AS col2
----
93

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2465
SELECT ALL - 2 AS col0, + SUM( - 40 )
----
-2
-40

skipif mysql # not compatible
query II rowsort label-2465
SELECT ALL - 2 AS col0, + SUM ( - 40 )
----
-2
-40

query I rowsort
SELECT 37 - - + 94
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-2467
SELECT 40 DIV + 30
----
1

skipif mysql # not compatible
query I rowsort label-2467
SELECT 40 / + 30
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT CASE - COUNT( * ) WHEN + 81 / 60 THEN NULL ELSE + 92 END
----
92

skipif mysql # not compatible
query I rowsort label-2468
SELECT CASE - COUNT ( * ) WHEN + 81 / 60 THEN NULL ELSE + 92 END
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT SUM( DISTINCT 82 ) * 14 * + - ( - SUM( ALL + + 98 ) ) + - 13 + - 85 * + 57 + 84 + - 58 DIV - 19 AS col2
----
107733

skipif mysql # not compatible
query I rowsort label-2469
SELECT SUM ( DISTINCT 82 ) * 14 * + - ( - SUM ( ALL + + 98 ) ) + - 13 + - 85 * + 57 + 84 + - 58 / - 19 AS col2
----
107733

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2470
SELECT ALL - ( CAST( + + 12 AS SIGNED ) ), + 17 AS col2
----
-12
17

skipif mysql # not compatible
query II rowsort label-2470
SELECT ALL - ( CAST ( + + 12 AS INTEGER ) ), + 17 AS col2
----
-12
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2471
SELECT + CASE 89 WHEN - 59 * 78 + - 18 THEN COUNT( * ) + + - 47 * - 28 WHEN - + 15 THEN + 59 END * 39 - - - CAST( - 58 AS SIGNED ) + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT + CASE 89 WHEN - 59 * 78 + - 18 THEN COUNT ( * ) + + - 47 * - 28 WHEN - + 15 THEN + 59 END * 39 - - - CAST ( - 58 AS INTEGER ) + - 98 AS col0
----
NULL

query I rowsort
SELECT ALL 64 * 76 AS col2
----
4864

query II rowsort
SELECT ALL - 30, 51 col1
----
-30
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL COUNT( * ) * - 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL COUNT ( * ) * - 70 AS col2
----
-70

query I rowsort
SELECT + ( 3 ) - - 89 + + 42 AS col2
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT ALL 29 * 42 DIV 23 * + 53
----
2756

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL 29 * 42 / 23 * + 53
----
2756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2478
SELECT NULLIF ( 87, - 57 ) DIV + + 42 * COUNT( * ) + - - 76 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2478
SELECT NULLIF ( 87, - 57 ) / + + 42 * COUNT ( * ) + - - 76 AS col0
----
78

query I rowsort
SELECT DISTINCT 63 * + 10 * + 24 AS col2
----
15120

query I rowsort
SELECT + ( - - 91 ) * - ( 66 )
----
-6006

query I rowsort
SELECT + ( - 92 ) + + - CASE 59 WHEN + 35 THEN NULL WHEN + 44 THEN - 73 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2482
SELECT ALL 42 DIV - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL 42 / - 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT + - 81 + + 30 - COUNT( * ) - 73
----
-125

skipif mysql # not compatible
query I rowsort label-2483
SELECT + - 81 + + 30 - COUNT ( * ) - 73
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2484
SELECT ALL - 95 + SUM( - 71 ) DIV 60 DIV - 82 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL - 95 + SUM ( - 71 ) / 60 / - 82 AS col0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT - 39 + + + ( + 81 ) * + 36 DIV 51 DIV 93 * - 12 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2485
SELECT - 39 + + + ( + 81 ) * + 36 / 51 / 93 * - 12 AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2486
SELECT + MAX( DISTINCT - 50 ) * - ( + COUNT( * ) ) DIV + 53 + + 60
----
60

skipif mysql # not compatible
query I rowsort label-2486
SELECT + MAX ( DISTINCT - 50 ) * - ( + COUNT ( * ) ) / + 53 + + 60
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2487
SELECT ALL CAST( NULL AS SIGNED ) col2, 90 + 52 col2
----
NULL
142

skipif mysql # not compatible
query II rowsort label-2487
SELECT ALL CAST ( NULL AS INTEGER ) col2, 90 + 52 col2
----
NULL
142

query I rowsort
SELECT + + 29 * - 83
----
-2407

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT - + COALESCE ( + + 88, - ( - + 3 ), COUNT( * ) ) * + 39 * - - ( - 93 ) * COUNT( COALESCE ( + 48, 54 * 24, - + 4 + - - 65 - - 6 / - + 89 + + - 66 ) ) AS col0
----
319176

skipif mysql # not compatible
query I rowsort label-2489
SELECT - + COALESCE ( + + 88, - ( - + 3 ), COUNT ( * ) ) * + 39 * - - ( - 93 ) * COUNT ( COALESCE ( + 48, 54 * 24, - + 4 + - - 65 - - 6 / - + 89 + + - 66 ) ) AS col0
----
319176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2490
SELECT + - 54 * + COALESCE ( + 16, + SUM( ALL 57 ) ) DIV - COALESCE ( - - COUNT( DISTINCT NULLIF ( + - 9, + + 66 ) ), + + 58 ) * - COUNT( * ) + + 88 AS col2
----
-776

skipif mysql # not compatible
query I rowsort label-2490
SELECT + - 54 * + COALESCE ( + 16, + SUM ( ALL 57 ) ) / - COALESCE ( - - COUNT ( DISTINCT NULLIF ( + - 9, + + 66 ) ), + + 58 ) * - COUNT ( * ) + + 88 AS col2
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT + + 59 - COUNT( * ) + 30
----
88

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT + + 59 - COUNT ( * ) + 30
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-2492
SELECT ALL COUNT( - 35 ), + 88 AS col0
----
1
88

skipif mysql # not compatible
query II rowsort label-2492
SELECT ALL COUNT ( - 35 ), + 88 AS col0
----
1
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2493
SELECT - 4 AS col1, - CAST( - - 60 AS SIGNED ) * + 76 * + 44 * - SUM( DISTINCT 38 ) * - CASE 54 WHEN ( - COUNT( * ) ) THEN NULL WHEN CAST( + - 60 AS DECIMAL ) THEN - + NULLIF ( + + 23, - - 50 / + - 42 ) * + 17 + + - COALESCE ( + 42, - 71 ) + 81 * + - 50 * - 85 / - 43 WHEN - 24 THEN NULL END AS col1
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-2493
SELECT - 4 AS col1, - CAST ( - - 60 AS INTEGER ) * + 76 * + 44 * - SUM ( DISTINCT 38 ) * - CASE 54 WHEN ( - COUNT ( * ) ) THEN NULL WHEN CAST ( + - 60 AS REAL ) THEN - + NULLIF ( + + 23, - - 50 / + - 42 ) * + 17 + + - COALESCE ( + 42, - 71 ) + 81 * + - 50 * - 85 / - 43 WHEN - 24 THEN NULL END AS col1
----
-4
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( - 44, 84 ) AS col1
----
-44

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

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

query I rowsort
SELECT - 36 - 52 * 78 AS col2
----
-4092

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT ALL - NULLIF ( - 47, - ( - 46 ) ) DIV NULLIF ( + COUNT( ALL - 37 ), + 92 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - NULLIF ( - 47, - ( - 46 ) ) / NULLIF ( + COUNT ( ALL - 37 ), + 92 ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT ALL CAST( MIN( - 4 ) AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL CAST ( MIN ( - 4 ) AS INTEGER )
----
-4

query I rowsort
SELECT DISTINCT + 33 col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT DISTINCT - 5 * CASE + 83 WHEN NULLIF ( 25, COALESCE ( + 95, - - ( - + 41 ) ) + + + 50 ) THEN 58 + + + 18 + - NULLIF ( 43, + 11 ) * + 37 * + - 91 WHEN + ( - 90 ) + + - 74 * 24 THEN NULL ELSE 21 + - ( - COUNT( * ) ) + + 75 * - + SUM( ALL + ( 22 ) ) * - CAST( NULL AS SIGNED ) * + 63 + CAST( NULL AS SIGNED ) * + + 67 * - + NULLIF ( + - 45, - 22 ) - 6 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - 5 * CASE + 83 WHEN NULLIF ( 25, COALESCE ( + 95, - - ( - + 41 ) ) + + + 50 ) THEN 58 + + + 18 + - NULLIF ( 43, + 11 ) * + 37 * + - 91 WHEN + ( - 90 ) + + - 74 * 24 THEN NULL ELSE 21 + - ( - COUNT ( * ) ) + + 75 * - + SUM ( ALL + ( 22 ) ) * - CAST ( NULL AS INTEGER ) * + 63 + CAST ( NULL AS INTEGER ) * + + 67 * - + NULLIF ( + - 45, - 22 ) - 6 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + + 75, - + 27 + + 43 ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2504
SELECT ALL 50 DIV - COUNT( * ) + + + 58 + - 4 * - COUNT( * ) + + ( - 81 ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL 50 / - COUNT ( * ) + + + 58 + - 4 * - COUNT ( * ) + + ( - 81 ) AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2505
SELECT 24 DIV - 3 + + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-2505
SELECT 24 / - 3 + + - COUNT ( * )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT ALL - 87 * - - 6 DIV + 1
----
-522

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - 87 * - - 6 / + 1
----
-522

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - MAX( DISTINCT + - 27 ) * - - 28 * 92 * 74
----
5146848

skipif mysql # not compatible
query I rowsort label-2509
SELECT - MAX ( DISTINCT + - 27 ) * - - 28 * 92 * 74
----
5146848

query II rowsort
SELECT ( 26 ) AS col2, 58
----
26
58

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT DISTINCT + COUNT( * ), 21 + 37 AS col1
----
1
58

skipif mysql # not compatible
query II rowsort label-2513
SELECT DISTINCT + COUNT ( * ), 21 + 37 AS col1
----
1
58

query I rowsort
SELECT DISTINCT 55 * 56 * 59 + 1 col1
----
181721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT ALL NULLIF ( + + CAST( NULL AS SIGNED ), + 30 + - 28 ) * - 78 * - 36 * - 21 + - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL NULLIF ( + + CAST ( NULL AS INTEGER ), + 30 + - 28 ) * - 78 * - 36 * - 21 + - 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT ALL - - 53 * 73 + - MIN( DISTINCT 0 ) + 67 * - 60 AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL - - 53 * 73 + - MIN ( DISTINCT 0 ) + 67 * - 60 AS col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT 97 * + - 86 * - COUNT( * ) + - 70
----
8272

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT 97 * + - 86 * - COUNT ( * ) + - 70
----
8272

query I rowsort
SELECT - - 49 + - 79 AS col2
----
-30

query I rowsort
SELECT + - 44 * 86 * ( 79 ) * - 55
----
16441480

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

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

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

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT COUNT ( * ) * + 17 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL + COUNT( * ) * 81 + 0 + - + 51 - 59 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL + COUNT ( * ) * 81 + 0 + - + 51 - 59 AS col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2523
SELECT - 53 * 63 DIV + - COALESCE ( - - 82, 94 * + 18 + 34 + - 16 * - - 44 - - 94, - ( + + 35 ) ) - + 53
----
-13

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 53 * 63 / + - COALESCE ( - - 82, 94 * + 18 + 34 + - 16 * - - 44 - - 94, - ( + + 35 ) ) - + 53
----
-13

query I rowsort
SELECT DISTINCT - 61 * - 71 AS col1
----
4331

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT CASE + 65 WHEN - + MAX( 42 ) * - - 35 * 94 THEN - 70 END / 13 * + - COUNT( * ) / - - 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT CASE + 65 WHEN - + MAX ( 42 ) * - - 35 * 94 THEN - 70 END / 13 * + - COUNT ( * ) / - - 76 col0
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( - 4, - - 75 + - 63, - 78 )
----
-4

query II rowsort
SELECT + - 42 - - 53 AS col2, 1 * + 64 AS col1
----
11
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2528
SELECT - 67 AS col1, 44 * + + ( 36 ) * - 60 + + MIN( ALL + 67 )
----
-67
-94973

skipif mysql # not compatible
query II rowsort label-2528
SELECT - 67 AS col1, 44 * + + ( 36 ) * - 60 + + MIN ( ALL + 67 )
----
-67
-94973

query I rowsort
SELECT ALL 95 * - 9
----
-855

query I rowsort
SELECT ALL 54 * + ( - 23 ) col2
----
-1242

query I rowsort
SELECT + 60 * + 78 AS col0
----
4680

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

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

query II rowsort
SELECT DISTINCT 1 * 99 AS col2, + 93
----
99
93

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

skipif mysql # not compatible
query II rowsort label-2534
SELECT ALL COUNT ( DISTINCT + + 82 ), + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
1
-1

query I rowsort
SELECT 66 * - 45 AS col2
----
-2970

query II rowsort
SELECT ALL - 92 + 59 AS col0, - 75 * + + 23 AS col2
----
-33
-1725

query I rowsort
SELECT DISTINCT 53 * - 58
----
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL 12 + - 90 * + + SUM( + 78 )
----
-7008

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL 12 + - 90 * + + SUM ( + 78 )
----
-7008

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT 91 * - COUNT( * ) col0, + 50 col2
----
-91
50

skipif mysql # not compatible
query II rowsort label-2539
SELECT 91 * - COUNT ( * ) col0, + 50 col2
----
-91
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2540
SELECT ALL - 92 + + - NULLIF ( + + ( + CAST( 50 AS SIGNED ) ), + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ), 60 AS col2
----
-142
60

skipif mysql # not compatible
query II rowsort label-2540
SELECT ALL - 92 + + - NULLIF ( + + ( + CAST ( 50 AS INTEGER ) ), + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ), 60 AS col2
----
-142
60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2541
SELECT ALL + COUNT( * ) + - AVG ( ALL 74 ) + + + ( CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL + COUNT ( * ) + - AVG ( ALL 74 ) + + + ( CAST ( - CAST ( NULL AS REAL ) AS REAL ) ) AS col0
----
NULL

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

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

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

query I rowsort
SELECT ALL + 29 + - 11 AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT DISTINCT - 75 DIV 13
----
-5

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - 75 / 13
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT ALL + + 89 + - - 13 + - + COUNT( * ) + 0 DIV + 13 * - 16
----
101

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + + 89 + - - 13 + - + COUNT ( * ) + 0 / + 13 * - 16
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT + MAX( ALL - - 68 ) * COALESCE ( + 34, + 89, + + 23, - - 51 - + 8 )
----
2312

skipif mysql # not compatible
query I rowsort label-2547
SELECT + MAX ( ALL - - 68 ) * COALESCE ( + 34, + 89, + + 23, - - 51 - + 8 )
----
2312

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT 53 * + 7 + - + 28 + 14 * + + 10 DIV + 1
----
483

skipif mysql # not compatible
query I rowsort label-2548
SELECT 53 * + 7 + - + 28 + 14 * + + 10 / + 1
----
483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2549
SELECT ALL - COALESCE ( + + 24, + + 44 + 52, - 5 + CAST( + + COALESCE ( - 11, + 58 - - 70 / + 48 ) AS SIGNED ) * + 54 ), CASE 62 WHEN 38 * 51 + 38 - - - 73 THEN ( - 72 ) WHEN + 85 THEN + MAX( - ( - 30 ) ) ELSE 54 END AS col1
----
-24
54

skipif mysql # not compatible
query II rowsort label-2549
SELECT ALL - COALESCE ( + + 24, + + 44 + 52, - 5 + CAST ( + + COALESCE ( - 11, + 58 - - 70 / + 48 ) AS INTEGER ) * + 54 ), CASE 62 WHEN 38 * 51 + 38 - - - 73 THEN ( - 72 ) WHEN + 85 THEN + MAX ( - ( - 30 ) ) ELSE 54 END AS col1
----
-24
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - 5 * 5 * COUNT( * ) * + 0 + 15 * - - 13 + - 9 + 82 AS col1
----
268

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 5 * 5 * COUNT ( * ) * + 0 + 15 * - - 13 + - 9 + 82 AS col1
----
268

query II rowsort
SELECT - 60 * + + 85 AS col2, 60 * + + 78 + - 85 AS col0
----
-5100
4595

query I rowsort
SELECT - 30 * + - 14 AS col2
----
420

query I rowsort
SELECT 98 * 57 + - 41
----
5545

query I rowsort
SELECT ALL - + COALESCE ( 37, - 64 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT - 87 + - COUNT( 59 ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-2555
SELECT - 87 + - COUNT ( 59 ) col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT MIN( 68 )
----
68

skipif mysql # not compatible
query I rowsort label-2556
SELECT MIN ( 68 )
----
68

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

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

query I rowsort
SELECT + 37 + - ( - - 62 )
----
-25

query I rowsort
SELECT - 76 * - - 1 - 42
----
-118

query I rowsort
SELECT - 46 * - 33 AS col0
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT + MIN( DISTINCT + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2561
SELECT + MIN ( DISTINCT + 88 ) AS col2
----
88

query I rowsort
SELECT ALL 34 * 46 AS col1
----
1564

query I rowsort
SELECT 2 * - + ( - 92 )
----
184

query I rowsort
SELECT 47 + - - NULLIF ( - 36, - 46 ) * - 72 AS col2
----
2639

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

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT + ( - - COUNT ( * ) ) * 60 * COUNT ( * ) AS col1
----
60

query I rowsort
SELECT 56 + + 62 * - 46 AS col0
----
-2796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT ALL - CASE - 49 WHEN + 54 - + COALESCE ( - CAST( - 59 AS SIGNED ), + 16, 44 + + 28 * - 67 + 29 ) THEN ( + 68 ) - 20 + - 65 END + - CAST( + 98 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - CASE - 49 WHEN + 54 - + COALESCE ( - CAST ( - 59 AS INTEGER ), + 16, 44 + + 28 * - 67 + 29 ) THEN ( + 68 ) - 20 + - 65 END + - CAST ( + 98 AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 58 AS col1, 84 + - + 94 * + NULLIF ( - - 93, 17 * + 93 - - + 74 * + + 47 )
----
58
-8658

query II rowsort
SELECT DISTINCT 64, - 63 AS col1
----
64
-63

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2571
SELECT 87 col0, + 11 * - - 92 + - CAST( + - COUNT( * ) AS SIGNED ) + + 84 + + 49 DIV ( 18 ) DIV 6 DIV + 67
----
87
1097

skipif mysql # not compatible
query II rowsort label-2571
SELECT 87 col0, + 11 * - - 92 + - CAST ( + - COUNT ( * ) AS INTEGER ) + + 84 + + 49 / ( 18 ) / 6 / + 67
----
87
1097

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT COUNT( - 61 ) DIV - + 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT COUNT ( - 61 ) / - + 19 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT ( CASE 55 WHEN + CAST( NULL AS SIGNED ) + - 46 THEN + 62 ELSE NULL END ) + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT ( CASE 55 WHEN + CAST ( NULL AS INTEGER ) + - 46 THEN + 62 ELSE NULL END ) + + 45
----
NULL

query I rowsort
SELECT ALL 6 + 99 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT 1 + MIN( + - 97 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-2575
SELECT 1 + MIN ( + - 97 ) AS col0
----
-96

query II rowsort
SELECT 72 + 21 * + - 89 AS col1, 21
----
-1797
21

query I rowsort
SELECT ( - 56 ) * + 31
----
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL MAX( - 86 ) * + + 15 AS col1
----
-1290

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL MAX ( - 86 ) * + + 15 AS col1
----
-1290

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

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

query I rowsort
SELECT ALL - 70 * + 55
----
-3850

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT ALL 46 + - 10 DIV + 21 * - 33
----
46

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL 46 + - 10 / + 21 * - 33
----
46

query I rowsort
SELECT DISTINCT 63 * - 93
----
-5859

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL 98 * + CAST( NULL AS SIGNED ) * + 52 * NULLIF ( + ( - COALESCE ( 55, + 7 ) ), - 96 * - SUM( - - 61 ) + + CASE + - 18 WHEN - 63 / + + 40 THEN + 18 * - ( + ( 47 ) ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL 98 * + CAST ( NULL AS INTEGER ) * + 52 * NULLIF ( + ( - COALESCE ( 55, + 7 ) ), - 96 * - SUM ( - - 61 ) + + CASE + - 18 WHEN - 63 / + + 40 THEN + 18 * - ( + ( 47 ) ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2584
SELECT + ( + COUNT( ALL 98 ) ) DIV + 45 * MAX( + 15 ) + - 17 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2584
SELECT + ( + COUNT ( ALL 98 ) ) / + 45 * MAX ( + 15 ) + - 17 AS col1
----
-17

query I rowsort
SELECT 99 + + 18 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL + + 78 * COUNT( * ) + - MAX( ALL + + 16 ) - + 67
----
-5

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL + + 78 * COUNT ( * ) + - MAX ( ALL + + 16 ) - + 67
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + COUNT( + 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2587
SELECT + COUNT ( + 25 ) AS col2
----
1

query I rowsort
SELECT COALESCE ( - + 26, - 56 * 73, - + 24 - 63 ) AS col2
----
-26

query I rowsort
SELECT + 58 * 57 * 54 col1
----
178524

query II rowsort
SELECT ALL - - 2, - 21 col2
----
2
-21

query I rowsort
SELECT ALL + 36 - + + 85 * - 10 * 49
----
41686

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2593
SELECT ALL - SUM( DISTINCT 63 ) DIV - - 28
----
-2

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - SUM ( DISTINCT 63 ) / - - 28
----
-2

query I rowsort
SELECT ALL + 56 - 44 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - MIN( DISTINCT ( + 68 ) ) * - SUM( ALL - 57 ) AS col1
----
-3876

skipif mysql # not compatible
query I rowsort label-2595
SELECT - MIN ( DISTINCT ( + 68 ) ) * - SUM ( ALL - 57 ) AS col1
----
-3876

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT ALL + NULLIF ( - - COALESCE ( COUNT( * ), + - COUNT( 9 ), - 66 ), - + 85 ) * - - 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL + NULLIF ( - - COALESCE ( COUNT ( * ), + - COUNT ( 9 ), - 66 ), - + 85 ) * - - 56 AS col0
----
56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT - 60 DIV + - 24 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2599
SELECT - 60 / + - 24 AS col0
----
2

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2601
SELECT + 44 * + 32 + + COUNT( * ) - + + 82 AS col1, + NULLIF ( ( + + 95 ), - 86 ) * + + 78 + + 88 AS col1
----
1327
7498

skipif mysql # not compatible
query II rowsort label-2601
SELECT + 44 * + 32 + + COUNT ( * ) - + + 82 AS col1, + NULLIF ( ( + + 95 ), - 86 ) * + + 78 + + 88 AS col1
----
1327
7498

query I rowsort
SELECT 58 * - - CASE - + 63 WHEN - 21 THEN + 31 * 37 WHEN + 11 * - 98 * - - 60 THEN NULL END * - 44 * + 95 col0
----
NULL

query II rowsort
SELECT ALL 41, 95 AS col2
----
41
95

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT - 13 + - 62, - 95 + + + 87 * - ( - 90 ) * - MIN( ALL - 5 ) AS col2
----
-75
39055

skipif mysql # not compatible
query II rowsort label-2605
SELECT - 13 + - 62, - 95 + + + 87 * - ( - 90 ) * - MIN ( ALL - 5 ) AS col2
----
-75
39055

query I rowsort
SELECT ALL - 64 + + + 62 + 18 AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2607
SELECT ALL 1 + - - 94 DIV - 65 - + 32 + + COALESCE ( + 24, - ( 4 ) DIV + + 15 + 32 )
----
-8

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL 1 + - - 94 / - 65 - + 32 + + COALESCE ( + 24, - ( 4 ) / + + 15 + 32 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT ALL CASE + 31 WHEN + MAX( COALESCE ( 79, + + 61 ) ) * + 2 + - 23 - - 37 THEN + 16 * 81 * + 87 ELSE - + 67 + + 21 DIV 70 * 24 END
----
-67

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL CASE + 31 WHEN + MAX ( COALESCE ( 79, + + 61 ) ) * + 2 + - 23 - - 37 THEN + 16 * 81 * + 87 ELSE - + 67 + + 21 / 70 * 24 END
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2609
SELECT - 18 * - + 97 DIV COUNT( * ) AS col0
----
1746

skipif mysql # not compatible
query I rowsort label-2609
SELECT - 18 * - + 97 / COUNT ( * ) AS col0
----
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT + NULLIF ( - + 88, + 9 ) * COUNT( * ) * - 60
----
5280

skipif mysql # not compatible
query I rowsort label-2610
SELECT + NULLIF ( - + 88, + 9 ) * COUNT ( * ) * - 60
----
5280

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

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL + 74 * COUNT ( * ) AS col0
----
74

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

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT + 83 * + ( + COUNT ( * ) ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT COUNT( * ) + - - 61 + - 44
----
18

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT COUNT ( * ) + - - 61 + - 44
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT ALL + 74 * + COUNT( * ), - 2 AS col1
----
74
-2

skipif mysql # not compatible
query II rowsort label-2614
SELECT ALL + 74 * + COUNT ( * ), - 2 AS col1
----
74
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL ( + ( - CASE + ( + 62 ) WHEN + 48 - - 52 THEN + CASE + 54 WHEN + 57 THEN NULL WHEN + 62 THEN COUNT( * ) END ELSE + + 6 END ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL ( + ( - CASE + ( + 62 ) WHEN + 48 - - 52 THEN + CASE + 54 WHEN + 57 THEN NULL WHEN + 62 THEN COUNT ( * ) END ELSE + + 6 END ) ) AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT ALL ( - 38 ) DIV - 9 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL ( - 38 ) / - 9 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2617
SELECT + MAX( - - 82 ) + + 39 * - - 61 col2, - 81
----
2461
-81

skipif mysql # not compatible
query II rowsort label-2617
SELECT + MAX ( - - 82 ) + + 39 * - - 61 col2, - 81
----
2461
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2618
SELECT - NULLIF ( - CAST( - - ( + 69 ) AS SIGNED ), + - 51 * 91 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2618
SELECT - NULLIF ( - CAST ( - - ( + 69 ) AS INTEGER ), + - 51 * 91 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2619
SELECT + COUNT( * ) * - 89 * - + COALESCE ( ( - MAX( DISTINCT + 68 ) ), + 58 * 86 - - 69 - 15 + + COALESCE ( + 85, + + 34, CAST( - 22 AS SIGNED ) ) * + + MIN( ALL - + 63 ) )
----
-6052

skipif mysql # not compatible
query I rowsort label-2619
SELECT + COUNT ( * ) * - 89 * - + COALESCE ( ( - MAX ( DISTINCT + 68 ) ), + 58 * 86 - - 69 - 15 + + COALESCE ( + 85, + + 34, CAST ( - 22 AS INTEGER ) ) * + + MIN ( ALL - + 63 ) )
----
-6052

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

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

query I rowsort
SELECT + + 45 + + - 69
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT + + 40 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT + + 40 / 74 AS col2
----
0

query I rowsort
SELECT ALL - 76 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2624
SELECT DISTINCT + 7 * + + 26 * + + MIN( ALL - 65 ) AS col1, 60 AS col0
----
-11830
60

skipif mysql # not compatible
query II rowsort label-2624
SELECT DISTINCT + 7 * + + 26 * + + MIN ( ALL - 65 ) AS col1, 60 AS col0
----
-11830
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT DISTINCT - 32 * + - 13 * COUNT( * ) AS col0
----
416

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT - 32 * + - 13 * COUNT ( * ) AS col0
----
416

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + CASE + + 85 WHEN 23 THEN COUNT( * ) * - NULLIF ( + 28, AVG ( 17 ) ) + 65 WHEN - COUNT( * ) + ( + 24 ) - + 74 THEN NULL END - - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT + CASE + + 85 WHEN 23 THEN COUNT ( * ) * - NULLIF ( + 28, AVG ( 17 ) ) + 65 WHEN - COUNT ( * ) + ( + 24 ) - + 74 THEN NULL END - - 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT 35 * - 99 * 35 * + 30 + + COUNT( * )
----
-3638249

skipif mysql # not compatible
query I rowsort label-2628
SELECT 35 * - 99 * 35 * + 30 + + COUNT ( * )
----
-3638249

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + - SUM( DISTINCT 46 ) * - + 91 + CASE + NULLIF ( 67, 69 ) WHEN + 55 THEN 28 * + - 9 * + 16 / COUNT( * ) END * 70 + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT + - SUM ( DISTINCT 46 ) * - + 91 + CASE + NULLIF ( 67, 69 ) WHEN + 55 THEN 28 * + - 9 * + 16 / COUNT ( * ) END * 70 + 13 AS col1
----
NULL

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

query I rowsort
SELECT - + 38 * + 33 * + 24
----
-30096

query I rowsort
SELECT ALL - 8 * + 32 + 17
----
-239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT + CAST( - 42 AS SIGNED ) * - + CASE WHEN NOT NULL BETWEEN 5 AND NULL THEN 37 * - 56 * - + 93 END + - 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2635
SELECT + CAST ( - 42 AS INTEGER ) * - + CASE WHEN NOT NULL BETWEEN 5 AND NULL THEN 37 * - 56 * - + 93 END + - 67 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT - 94 DIV - 79
----
1

skipif mysql # not compatible
query I rowsort label-2636
SELECT - 94 / - 79
----
1

query I rowsort
SELECT DISTINCT + + 0 * + ( - 18 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT DISTINCT + COALESCE ( - + 70, + 29 DIV - 5, + COALESCE ( - 40, + + 59 * - 46 ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT + COALESCE ( - + 70, + 29 / - 5, + COALESCE ( - 40, + + 59 * - 46 ) ) AS col2
----
-70

query I rowsort
SELECT + 18 + + 20 col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2640
SELECT + CAST( + - AVG ( DISTINCT - 41 ) AS SIGNED ) AS col0, + 25
----
41
25

skipif mysql # not compatible
query II rowsort label-2640
SELECT + CAST ( + - AVG ( DISTINCT - 41 ) AS INTEGER ) AS col0, + 25
----
41
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT - CAST( + - 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-2641
SELECT - CAST ( + - 48 AS INTEGER )
----
48

query I rowsort
SELECT ALL ( - - 32 ) col2
----
32

query I rowsort
SELECT DISTINCT + 97 - + - 21 + - 65 + + 7 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT + MAX( - 91 ) - + - CASE - 45 WHEN CAST( NULL AS SIGNED ) * + ( 46 ) THEN - 3 * - - 65 WHEN + 85 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + MAX ( - 91 ) - + - CASE - 45 WHEN CAST ( NULL AS INTEGER ) * + ( 46 ) THEN - 3 * - - 65 WHEN + 85 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT NULLIF ( + MAX( DISTINCT - 84 ), + 99 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT NULLIF ( + MAX ( DISTINCT - 84 ), + 99 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT ALL ( + SUM( DISTINCT - 90 ) ) AS col2, - 55 AS col2
----
-90
-55

skipif mysql # not compatible
query II rowsort label-2646
SELECT ALL ( + SUM ( DISTINCT - 90 ) ) AS col2, - 55 AS col2
----
-90
-55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2648
SELECT DISTINCT ( CASE + - 81 WHEN + + 45 * - MIN( + - 8 ) THEN - 91 + - + 79 - - - 27 + - 14 * CAST( - 15 AS DECIMAL ) * - - 63 + + ( + + 3 ) - + COUNT( * ) * - - COALESCE ( - - 78, - 59 * - 99 + + 14 - + + 63 ) / - - CAST( + 60 AS SIGNED ) + 25 WHEN - 56 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT ( CASE + - 81 WHEN + + 45 * - MIN ( + - 8 ) THEN - 91 + - + 79 - - - 27 + - 14 * CAST ( - 15 AS REAL ) * - - 63 + + ( + + 3 ) - + COUNT ( * ) * - - COALESCE ( - - 78, - 59 * - 99 + + 14 - + + 63 ) / - - CAST ( + 60 AS INTEGER ) + 25 WHEN - 56 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT ALL - 98 - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL - 98 - COUNT ( * )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT + 87 + + COUNT( * ) + - 45 * - 20 * CAST( + 98 AS SIGNED ) - + + COUNT( * )
----
88287

skipif mysql # not compatible
query I rowsort label-2650
SELECT + 87 + + COUNT ( * ) + - 45 * - 20 * CAST ( + 98 AS INTEGER ) - + + COUNT ( * )
----
88287

query I rowsort
SELECT DISTINCT + 25 * - ( + 10 ) AS col0
----
-250

query I rowsort
SELECT + 96 + + 0 + 24 * + 60 * + 42
----
60576

query II rowsort
SELECT ALL + 3 col0, 9 AS col0
----
3
9

query I rowsort
SELECT DISTINCT - 78 * + 28 * 3 col1
----
-6552

query I rowsort
SELECT CASE WHEN NOT 69 IS NOT NULL THEN NULL WHEN NOT 0 IS NOT NULL THEN + 42 * - 39 * 37 + + 25 + + - 49 * + 64 * - 50 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT + NULLIF ( COUNT( * ), - 27 + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + NULLIF ( COUNT ( * ), - 27 + 73 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT DISTINCT - CAST( + ( 71 ) AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT - CAST ( + ( 71 ) AS INTEGER )
----
-71

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT DISTINCT - - 41 DIV + 14 + + + 10 * COUNT( * ) col1
----
12

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT - - 41 / + 14 + + + 10 * COUNT ( * ) col1
----
12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT ALL + 95 DIV ( + + 7 )
----
13

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL + 95 / ( + + 7 )
----
13

query II rowsort
SELECT + - 84 * 48 * + COALESCE ( + + 95, + 76 ) AS col0, 37 AS col2
----
-383040
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT + SUM( + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2664
SELECT + SUM ( + 19 ) AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT ALL 23 DIV + 15 + ( - 75 ) + - 63
----
-137

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL 23 / + 15 + ( - 75 ) + - 63
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-2666
SELECT + + 64 AS col0, - CASE - + 14 WHEN + 43 THEN 30 + + 1 * + 87 + + - 17 ELSE + - 89 END + + COUNT( * ) AS col0
----
64
90

skipif mysql # not compatible
query II rowsort label-2666
SELECT + + 64 AS col0, - CASE - + 14 WHEN + 43 THEN 30 + + 1 * + 87 + + - 17 ELSE + - 89 END + + COUNT ( * ) AS col0
----
64
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2667
SELECT ALL - 54 DIV - 67 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL - 54 / - 67 + - COUNT ( * )
----
-1

query I rowsort
SELECT 10 * - - 83 * + 33
----
27390

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

query I rowsort
SELECT ALL 22 + - ( + 81 )
----
-59

query I rowsort
SELECT ALL - 26 * + 45
----
-1170

query I rowsort
SELECT DISTINCT - 21 + - ( + - 70 )
----
49

query I rowsort
SELECT ( 74 ) + 19
----
93

query I rowsort
SELECT 85 * - - 10 col1
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT 1 * 12 + - - NULLIF ( SUM( DISTINCT - 80 ), 42 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-2675
SELECT 1 * 12 + - - NULLIF ( SUM ( DISTINCT - 80 ), 42 ) AS col0
----
-68

query II rowsort
SELECT 3 col1, 39 * + + 71
----
3
2769

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2677
SELECT 73 AS col2, + 34 * CAST( + - 99 AS SIGNED ) + + 93 AS col0
----
73
-3273

skipif mysql # not compatible
query II rowsort label-2677
SELECT 73 AS col2, + 34 * CAST ( + - 99 AS INTEGER ) + + 93 AS col0
----
73
-3273

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL 41 - + ( COUNT( * ) ) * + 79 + 82 col1
----
44

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL 41 - + ( COUNT ( * ) ) * + 79 + 82 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT COUNT( * ) * 52 - + - MIN( ALL - 91 ) * + + 97 + + 16 + + 63
----
-8696

skipif mysql # not compatible
query I rowsort label-2679
SELECT COUNT ( * ) * 52 - + - MIN ( ALL - 91 ) * + + 97 + + 16 + + 63
----
-8696

query II rowsort
SELECT + 14 AS col1, 83 * - 52
----
14
-4316

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2682
SELECT 0 * CAST( COUNT( * ) AS SIGNED ) DIV - + 41
----
0

skipif mysql # not compatible
query I rowsort label-2682
SELECT 0 * CAST ( COUNT ( * ) AS INTEGER ) / - + 41
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2683
SELECT ALL 23 DIV - 29 AS col1, 86 col0
----
0
86

skipif mysql # not compatible
query II rowsort label-2683
SELECT ALL 23 / - 29 AS col1, 86 col0
----
0
86

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

query II rowsort
SELECT 16 AS col0, - 52
----
16
-52

query I rowsort
SELECT 19 - - - 38 * - 13 * + + 60 col1
----
29659

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

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

query I rowsort
SELECT 26 * - - 72
----
1872

query II rowsort
SELECT 97 AS col0, 62 * 83
----
97
5146

query II rowsort
SELECT ALL 90 AS col0, 96 AS col2
----
90
96

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

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

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

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - + 38 / - + 45 + - 0 + - 16 * - COUNT ( * )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2693
SELECT DISTINCT + CAST( + 41 AS SIGNED ) AS col2, 52 * - 40 + MAX( ALL 66 ) col2
----
41
-2014

skipif mysql # not compatible
query II rowsort label-2693
SELECT DISTINCT + CAST ( + 41 AS INTEGER ) AS col2, 52 * - 40 + MAX ( ALL 66 ) col2
----
41
-2014

query I rowsort
SELECT ALL + 85 * - + 77 col0
----
-6545

query II rowsort
SELECT 53, 64 AS col2
----
53
64

query I rowsort
SELECT ALL + - 71 + - 91 AS col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL + + ( ( NULLIF ( + COUNT( * ), 57 * 15 + + - 3 + + + 1 + + 1 * - 88 + - COALESCE ( - 47, + 69 + + 82 ) + - - 89 ) ) ) + + 75 + 94 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL + + ( ( NULLIF ( + COUNT ( * ), 57 * 15 + + - 3 + + + 1 + + 1 * - 88 + - COALESCE ( - 47, + 69 + + 82 ) + - - 89 ) ) ) + + 75 + 94 AS col0
----
170

query I rowsort
SELECT ( - 18 ) - + - 72 + 54 * 16 + 12 + 46
----
976

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT + 4 + - 86 DIV 64 * - 9 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2699
SELECT + 4 + - 86 / 64 * - 9 AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2700
SELECT 87 + + COUNT( * ) + + COUNT( * ) DIV + 33
----
88

skipif mysql # not compatible
query I rowsort label-2700
SELECT 87 + + COUNT ( * ) + + COUNT ( * ) / + 33
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2701
SELECT 46 * - COUNT( * ) + + + 38 + + 38 DIV 41 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2701
SELECT 46 * - COUNT ( * ) + + + 38 + + 38 / 41 AS col0
----
-8

query I rowsort
SELECT ALL - + 66 * + 20
----
-1320

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

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

query I rowsort
SELECT DISTINCT - 89 * + 62
----
-5518

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

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

query II rowsort
SELECT + ( + ( + - 72 ) ) + ( + ( + - 89 ) ) AS col1, - 18 * - 98
----
-161
1764

query I rowsort
SELECT ALL + 97 + - - 54
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT 2 + + COUNT( * ) DIV - - 51 AS col0
----
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2709
SELECT ALL - 46 col0, CAST( - 53 AS SIGNED )
----
-46
-53

skipif mysql # not compatible
query II rowsort label-2709
SELECT ALL - 46 col0, CAST ( - 53 AS INTEGER )
----
-46
-53

query II rowsort
SELECT 14 AS col2, 56 AS col2
----
14
56

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

skipif mysql # not compatible
query I rowsort label-2711
SELECT ( - - COUNT ( * ) ) / - - MAX ( - 13 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT - 99 * + 57 + + 78 + - 62 + + - 79 DIV 86
----
-5627

skipif mysql # not compatible
query I rowsort label-2712
SELECT - 99 * + 57 + + 78 + - 62 + + - 79 / 86
----
-5627

query II rowsort
SELECT ALL - 92 AS col2, 61 AS col0
----
-92
61

query I rowsort
SELECT 35 * 63 AS col2
----
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2715
SELECT + COALESCE ( - 36, - COUNT( * ) + - - 24 * - - 2 DIV - COUNT( * ) * + - 46 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2715
SELECT + COALESCE ( - 36, - COUNT ( * ) + - - 24 * - - 2 / - COUNT ( * ) * + - 46 ) AS col0
----
-36

query I rowsort
SELECT + 1 * ( + 28 ) + + 96 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT COUNT( * ) + + 90 + 2 + 56 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-2717
SELECT COUNT ( * ) + + 90 + 2 + 56 AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL 42 * - MIN( DISTINCT 22 )
----
-924

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL 42 * - MIN ( DISTINCT 22 )
----
-924

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

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL + 42 / + COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT 15 * 36 * - 97 + + COUNT( * )
----
-52379

skipif mysql # not compatible
query I rowsort label-2720
SELECT 15 * 36 * - 97 + + COUNT ( * )
----
-52379

query I rowsort
SELECT ALL 35 * - 69
----
-2415

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

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL 6 * 71 * - COUNT ( * ) AS col1
----
-426

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2723
SELECT NULLIF ( - - 35, + 60 ) DIV 92 + - COUNT( * ), - 21 AS col0
----
-1
-21

skipif mysql # not compatible
query II rowsort label-2723
SELECT NULLIF ( - - 35, + 60 ) / 92 + - COUNT ( * ), - 21 AS col0
----
-1
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT DISTINCT COUNT( * ) - - + ( + - ( + + CAST( NULL AS SIGNED ) ) ) + + - 43 + - 63 * - - 6 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT COUNT ( * ) - - + ( + - ( + + CAST ( NULL AS INTEGER ) ) ) + + - 43 + - 63 * - - 6 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT ALL 0 * - 43 * + COUNT( + + ( + 74 ) ) AS col2, - 82 AS col2
----
0
-82

skipif mysql # not compatible
query II rowsort label-2725
SELECT ALL 0 * - 43 * + COUNT ( + + ( + 74 ) ) AS col2, - 82 AS col2
----
0
-82

query I rowsort
SELECT 81 + 79 AS col2
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2727
SELECT ( 95 ) + + MAX( ALL + 19 ) DIV 1
----
114

skipif mysql # not compatible
query I rowsort label-2727
SELECT ( 95 ) + + MAX ( ALL + 19 ) / 1
----
114

query I rowsort
SELECT 53 * + 87 + + + 80 AS col0
----
4691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2729
SELECT 0 * + + COUNT( * ) * - 90 DIV + 9
----
0

skipif mysql # not compatible
query I rowsort label-2729
SELECT 0 * + + COUNT ( * ) * - 90 / + 9
----
0

query I rowsort
SELECT 35 * - 81 AS col1
----
-2835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT CAST( NULL AS SIGNED ) + - 30 * - 3 * - ( - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT CAST ( NULL AS INTEGER ) + - 30 * - 3 * - ( - 91 )
----
NULL

query I rowsort
SELECT ALL - 80 * - + 55 col1
----
4400

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

query I rowsort
SELECT - 45 + - 53 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL + 28 * - SUM( 64 )
----
-1792

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + 28 * - SUM ( 64 )
----
-1792

query I rowsort
SELECT 79 * - ( - 16 )
----
1264

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT 22 + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-2737
SELECT 22 + + COUNT ( * )
----
23

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

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL + + COUNT ( * ) + + 48 + + 26 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT DISTINCT COUNT( * ) + + - 14
----
-13

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT COUNT ( * ) + + - 14
----
-13

query I rowsort
SELECT ALL + + 68 / CASE - 62 WHEN - + 30 * + AVG ( DISTINCT - - 81 ) + + 3 THEN - + COALESCE ( - 76, - 20 ) WHEN - 14 * 2 * - 21 THEN NULL END
----
NULL

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

query I rowsort
SELECT ALL - 1 + 21 col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2743
SELECT - - COALESCE ( - 66, - COUNT( * ) * + + 99, COUNT( * ) ), 26 AS col0
----
-66
26

skipif mysql # not compatible
query II rowsort label-2743
SELECT - - COALESCE ( - 66, - COUNT ( * ) * + + 99, COUNT ( * ) ), 26 AS col0
----
-66
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2745
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col2, 4 - + 44 + + - 90 AS col0
----
NULL
-130

skipif mysql # not compatible
query II rowsort label-2745
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col2, 4 - + 44 + + - 90 AS col0
----
NULL
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2746
SELECT + 98 AS col1, CAST( NULL AS SIGNED ) * - 6 + - + 52 + 15
----
98
NULL

skipif mysql # not compatible
query II rowsort label-2746
SELECT + 98 AS col1, CAST ( NULL AS INTEGER ) * - 6 + - + 52 + 15
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT COALESCE ( - 50, - 94 * + MIN( - 19 ), COALESCE ( + COUNT( * ), - MIN( + 71 ) ) * - 45 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2747
SELECT COALESCE ( - 50, - 94 * + MIN ( - 19 ), COALESCE ( + COUNT ( * ), - MIN ( + 71 ) ) * - 45 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL + CASE - + 44 WHEN - - 85 THEN - + COALESCE ( - COUNT( + 38 ), - ( 12 ) ) * + COUNT( * ) + - 33 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL + CASE - + 44 WHEN - - 85 THEN - + COALESCE ( - COUNT ( + 38 ), - ( 12 ) ) * + COUNT ( * ) + - 33 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT NULLIF ( + COUNT( * ), + - 96 + + 14 + + 70 + 61 * + COUNT( * ) + + + 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2749
SELECT NULLIF ( + COUNT ( * ), + - 96 + + 14 + + 70 + 61 * + COUNT ( * ) + + + 60 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT + 29 * + + COALESCE ( COUNT( * ), + 54 + + + 9, 37 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT + 29 * + + COALESCE ( COUNT ( * ), + 54 + + + 9, 37 ) AS col1
----
29

query I rowsort
SELECT ALL + NULLIF ( 18, - - 37 * + + 27 * + 26 + 54 ) AS col1
----
18

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

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

query I rowsort
SELECT ALL CASE - 45 WHEN - 89 THEN + - 61 WHEN + 59 THEN NULL WHEN - - 52 THEN NULL END / - 85 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 63 * + 71 + 65
----
4538

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2756
SELECT DISTINCT + MIN( - CAST( NULL AS DECIMAL ) ) * - 24 / - + ( + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + MIN ( - CAST ( NULL AS REAL ) ) * - 24 / - + ( + 4 )
----
NULL

query I rowsort
SELECT ALL 16 + - - 81 AS col0
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT COUNT( * ) + + 13
----
14

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT COUNT ( * ) + + 13
----
14

query I rowsort
SELECT DISTINCT - 99 + - 4 + + + 26 AS col0
----
-77

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

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

query I rowsort
SELECT + + 71 * 53 + + + 65
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL + 66 + 42 + + CASE + + 14 WHEN - 98 THEN + 41 * + - COUNT( * ) WHEN - 27 THEN + CASE - 11 WHEN 15 THEN 3 ELSE NULL END END * + 8 - SUM( ALL + - 31 ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + 66 + 42 + + CASE + + 14 WHEN - 98 THEN + 41 * + - COUNT ( * ) WHEN - 27 THEN + CASE - 11 WHEN 15 THEN 3 ELSE NULL END END * + 8 - SUM ( ALL + - 31 ) + - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2764
SELECT + - 60 - - 47 * + + COUNT( * ) + + ( + CASE 18 WHEN 69 THEN - CAST( NULL AS SIGNED ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT + - 60 - - 47 * + + COUNT ( * ) + + ( + CASE 18 WHEN 69 THEN - CAST ( NULL AS INTEGER ) END ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 57, - 34 col2
----
-57
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL SUM( ALL 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL SUM ( ALL 83 ) AS col0
----
83

query I rowsort
SELECT + - 11 * NULLIF ( - 33, + + AVG ( - 5 ) )
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL 92 + - COUNT( - - 11 )
----
91

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL 92 + - COUNT ( - - 11 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT ALL - + 3 - - 84 + - COUNT( * ) * - COUNT( * ) + + + 33 AS col0
----
115

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - + 3 - - 84 + - COUNT ( * ) * - COUNT ( * ) + + + 33 AS col0
----
115

query I rowsort
SELECT + 58 - + NULLIF ( - 59, 48 ) AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT + COUNT( * ) + - 2 - + 1 * COUNT( * ) + 72 - + 87 * + 10 + + - 47
----
-847

skipif mysql # not compatible
query I rowsort label-2771
SELECT + COUNT ( * ) + - 2 - + 1 * COUNT ( * ) + 72 - + 87 * + 10 + + - 47
----
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT + COUNT( * ) + - ( + + 24 ) + - 38
----
-61

skipif mysql # not compatible
query I rowsort label-2772
SELECT + COUNT ( * ) + - ( + + 24 ) + - 38
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2773
SELECT ALL + MAX( DISTINCT + - 66 ) * - 7 AS col2, 26 AS col2
----
462
26

skipif mysql # not compatible
query II rowsort label-2773
SELECT ALL + MAX ( DISTINCT + - 66 ) * - 7 AS col2, 26 AS col2
----
462
26

query I rowsort
SELECT + + 84 + + + 13 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT - + ( - 81 ) * + COUNT( * ) * + 9 AS col2
----
729

skipif mysql # not compatible
query I rowsort label-2775
SELECT - + ( - 81 ) * + COUNT ( * ) * + 9 AS col2
----
729

query I rowsort
SELECT 9 * + 43 * - 38 + 24
----
-14682

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2777
SELECT + 92 * - + 14 + - 2 + + - COALESCE ( + 62, 57 ) DIV COUNT( ALL - 58 )
----
-1352

skipif mysql # not compatible
query I rowsort label-2777
SELECT + 92 * - + 14 + - 2 + + - COALESCE ( + 62, 57 ) / COUNT ( ALL - 58 )
----
-1352

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT + 99 DIV + 94 + + 84 col0
----
85

skipif mysql # not compatible
query I rowsort label-2778
SELECT + 99 / + 94 + + 84 col0
----
85

query II rowsort
SELECT - 18 * - 98, + 49 AS col1
----
1764
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT - 77 + - COUNT( + 67 ) - + 93 - + - 14 AS col1, 37 + + - 27
----
-157
10

skipif mysql # not compatible
query II rowsort label-2780
SELECT - 77 + - COUNT ( + 67 ) - + 93 - + - 14 AS col1, 37 + + - 27
----
-157
10

query I rowsort
SELECT - 94 + 98
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2782
SELECT CAST( 58 AS SIGNED ), COUNT( * ) * 32 * + 85 / + CASE - COUNT( * ) WHEN 52 + + + 74 + 80 + 15 + + ( + 9 ) - + COUNT( * ) * - COUNT( * ) * - ( + 69 ) / + + MIN( + 22 ) THEN 21 + - 76 + - 48 * + 13 + AVG ( DISTINCT - 27 ) + - COUNT( * ) END AS col0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-2782
SELECT CAST ( 58 AS INTEGER ), COUNT ( * ) * 32 * + 85 / + CASE - COUNT ( * ) WHEN 52 + + + 74 + 80 + 15 + + ( + 9 ) - + COUNT ( * ) * - COUNT ( * ) * - ( + 69 ) / + + MIN ( + 22 ) THEN 21 + - 76 + - 48 * + 13 + AVG ( DISTINCT - 27 ) + - COUNT ( * ) END AS col0
----
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2783
SELECT + CAST( - 59 AS SIGNED ) AS col1, - 19 * + 75 + + 18
----
-59
-1407

skipif mysql # not compatible
query II rowsort label-2783
SELECT + CAST ( - 59 AS INTEGER ) AS col1, - 19 * + 75 + + 18
----
-59
-1407

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT - COUNT( * ) * + - 20 + - + 12
----
8

skipif mysql # not compatible
query I rowsort label-2784
SELECT - COUNT ( * ) * + - 20 + - + 12
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT DISTINCT + 96 DIV + - 9 + + + 90
----
80

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT + 96 / + - 9 + + + 90
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT DISTINCT + 98 * + 47 * + MAX( ALL 37 ) AS col0
----
170422

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT + 98 * + 47 * + MAX ( ALL 37 ) AS col0
----
170422

query I rowsort
SELECT - 23 + + - 69
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT + 19 * - 35 + + SUM( + 2 ) - + COUNT( * ) * 57 * SUM( 69 ) AS col1
----
-4596

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT + 19 * - 35 + + SUM ( + 2 ) - + COUNT ( * ) * 57 * SUM ( 69 ) AS col1
----
-4596

query I rowsort
SELECT ALL - 35 * 60 + 25 AS col0
----
-2075

query I rowsort
SELECT ALL + 81 * - 84 * + - 67
----
455868

onlyif mysql # aggregate syntax: 
query II rowsort label-2791
SELECT NULLIF ( COUNT( + - 11 ), 91 ), - 81 - + - COUNT( + 47 ) * - 76 * - 25 AS col2
----
1
1819

skipif mysql # not compatible
query II rowsort label-2791
SELECT NULLIF ( COUNT ( + - 11 ), 91 ), - 81 - + - COUNT ( + 47 ) * - 76 * - 25 AS col2
----
1
1819

query I rowsort
SELECT DISTINCT - 3 * - NULLIF ( + 10, + 73 * + + 84 ) + + + 14
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL - COUNT( * ) * - 27 + + 39 col0
----
66

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - COUNT ( * ) * - 27 + + 39 col0
----
66

query I rowsort
SELECT + 98 * + - 90 + - 5 col2
----
-8825

query I rowsort
SELECT ALL 37 * 10 AS col0
----
370

query I rowsort
SELECT ALL - - 60 - + 59
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2797
SELECT ALL - 54 - + CASE + 62 WHEN + 75 / - 93 * + 67 * - - 27 THEN - + 87 + - COUNT( * ) / - 38 * - - MAX( + 15 ) ELSE NULL END * + 65 * 42 * 91 / + - 5 * - SUM( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - 54 - + CASE + 62 WHEN + 75 / - 93 * + 67 * - - 27 THEN - + 87 + - COUNT ( * ) / - 38 * - - MAX ( + 15 ) ELSE NULL END * + 65 * 42 * 91 / + - 5 * - SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 85 * - 33 + + 2
----
-2803

query I rowsort
SELECT ( ( 48 ) ) + - 50 + 97 * - 50 AS col2
----
-4852

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT - 47 * COUNT( * ), 40 AS col1
----
-47
40

skipif mysql # not compatible
query II rowsort label-2800
SELECT - 47 * COUNT ( * ), 40 AS col1
----
-47
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL - 10 * - NULLIF ( 99, - 97 ) + + SUM( ALL + 12 ) AS col1
----
1002

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL - 10 * - NULLIF ( 99, - 97 ) + + SUM ( ALL + 12 ) AS col1
----
1002

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT + 56 + - 36 DIV + + ( 34 )
----
55

skipif mysql # not compatible
query I rowsort label-2802
SELECT + 56 + - 36 / + + ( 34 )
----
55

query I rowsort
SELECT ALL + 93 - - 69 + + 71 AS col0
----
233

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2806
SELECT DISTINCT - COUNT( ALL + + 4 ) AS col2, 27
----
-1
27

skipif mysql # not compatible
query II rowsort label-2806
SELECT DISTINCT - COUNT ( ALL + + 4 ) AS col2, 27
----
-1
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2808
SELECT - 49, + 36 + 60 - - 95 * - COUNT( * ) AS col0
----
-49
1

skipif mysql # not compatible
query II rowsort label-2808
SELECT - 49, + 36 + 60 - - 95 * - COUNT ( * ) AS col0
----
-49
1

query II rowsort
SELECT + 52, + ( + - 17 ) AS col0
----
52
-17

query II rowsort
SELECT + 54 AS col2, 48 + 55
----
54
103

query I rowsort
SELECT 84 * + 92
----
7728

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT 20 * - + ( 53 ) * - ( - SUM( - + 82 ) ) AS col2
----
86920

skipif mysql # not compatible
query I rowsort label-2812
SELECT 20 * - + ( 53 ) * - ( - SUM ( - + 82 ) ) AS col2
----
86920

query I rowsort
SELECT ALL 77 * + 51
----
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - COALESCE ( - - 3, 51 ) * + + 27 * 98 * - CASE 93 WHEN - 6 THEN NULL ELSE COALESCE ( - ( + 81 ), - 74, - COUNT( * ) ) + + 55 END - + ( + COUNT( * ) ) AS col0
----
-206389

skipif mysql # not compatible
query I rowsort label-2814
SELECT - COALESCE ( - - 3, 51 ) * + + 27 * 98 * - CASE 93 WHEN - 6 THEN NULL ELSE COALESCE ( - ( + 81 ), - 74, - COUNT ( * ) ) + + 55 END - + ( + COUNT ( * ) ) AS col0
----
-206389

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT ALL CASE 67 WHEN COUNT( * ) THEN + 89 WHEN COUNT( * ) THEN + - 39 WHEN - 48 THEN NULL ELSE + 2 * ( + + 92 ) * - NULLIF ( + COUNT( * ), + 8 ) - + - 93 + + + ( 36 ) - + COALESCE ( - + CASE + 14 WHEN + MAX( + 97 ) * + - 11 * - - 84 THEN COALESCE ( - 26, - ( + NULLIF ( 32, + - 4 - + + 30 + + 59 DIV MAX( + + 17 ) ) ) + + 29, - ( - 77 ) ) ELSE + + 38 END, - 98 ) + + ( + 28 ) DIV + 68 * 99 END + + - 15 + + + 74 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL CASE 67 WHEN COUNT ( * ) THEN + 89 WHEN COUNT ( * ) THEN + - 39 WHEN - 48 THEN NULL ELSE + 2 * ( + + 92 ) * - NULLIF ( + COUNT ( * ), + 8 ) - + - 93 + + + ( 36 ) - + COALESCE ( - + CASE + 14 WHEN + MAX ( + 97 ) * + - 11 * - - 84 THEN COALESCE ( - 26, - ( + NULLIF ( 32, + - 4 - + + 30 + + 59 / MAX ( + + 17 ) ) ) + + 29, - ( - 77 ) ) ELSE + + 38 END, - 98 ) + + ( + 28 ) / + 68 * 99 END + + - 15 + + + 74 AS col2
----
42

query I rowsort
SELECT DISTINCT 82 + 39 AS col1
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-2817
SELECT 29 DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-2817
SELECT 29 / + 63
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT 6 DIV 71 * + 16
----
0

skipif mysql # not compatible
query I rowsort label-2819
SELECT 6 / 71 * + 16
----
0

query I rowsort
SELECT ( - - 66 ) + - 26 * 84
----
-2118

query I rowsort
SELECT - 68 * 50 - + 22 - 33 * 65 AS col1
----
-5567

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT + 76 + + COALESCE ( + 79, - SUM( + 73 ) * - - COALESCE ( 99, 14 ) ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT + 76 + + COALESCE ( + 79, - SUM ( + 73 ) * - - COALESCE ( 99, 14 ) ) AS col0
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2823
SELECT ALL - 89 AS col2, CAST( - 94 AS SIGNED ) AS col1, COUNT( * )
----
-89
-94
1

skipif mysql # not compatible
query III rowsort label-2823
SELECT ALL - 89 AS col2, CAST ( - 94 AS INTEGER ) AS col1, COUNT ( * )
----
-89
-94
1

query II rowsort
SELECT + 41 AS col0, 24
----
41
24

query I rowsort
SELECT DISTINCT - 32 * 26
----
-832

query I rowsort
SELECT ALL 3 - 5 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2827
SELECT 43 DIV + COUNT( * ) AS col1
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT MIN( DISTINCT + 40 ) + 21
----
61

skipif mysql # not compatible
query I rowsort label-2828
SELECT MIN ( DISTINCT + 40 ) + 21
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT 66 - CASE + 14 WHEN 54 THEN - 11 / + COUNT( * ) WHEN + 4 THEN - COUNT( * ) WHEN 30 * 21 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT 66 - CASE + 14 WHEN 54 THEN - 11 / + COUNT ( * ) WHEN + 4 THEN - COUNT ( * ) WHEN 30 * 21 THEN NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2830
SELECT 69 DIV 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-2830
SELECT 69 / 95 col2
----
0

query I rowsort
SELECT 4 * 6
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT ALL - 87 DIV 37 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - 87 / 37 AS col1
----
-2

query I rowsort
SELECT 75 - 7 AS col0
----
68

query I rowsort
SELECT DISTINCT 78 * - 55
----
-4290

onlyif mysql # DIV for integer division: 
query I rowsort label-2835
SELECT DISTINCT - 97 DIV 95
----
-1

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT - 97 / 95
----
-1

query I rowsort
SELECT 94 * 29 AS col2
----
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT COALESCE ( ( + NULLIF ( COUNT( * ), + 25 ) ), 29 ) * - 15
----
-15

skipif mysql # not compatible
query I rowsort label-2837
SELECT COALESCE ( ( + NULLIF ( COUNT ( * ), + 25 ) ), 29 ) * - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL + COUNT( * ) + 24 * 51
----
1225

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL + COUNT ( * ) + 24 * 51
----
1225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2839
SELECT 75 + 69 / - CASE - CAST( + 28 AS SIGNED ) WHEN + ( + COUNT( ALL - 15 ) ) THEN NULL WHEN 22 THEN MAX( ALL 60 ) * COUNT( - 12 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT 75 + 69 / - CASE - CAST ( + 28 AS INTEGER ) WHEN + ( + COUNT ( ALL - 15 ) ) THEN NULL WHEN 22 THEN MAX ( ALL 60 ) * COUNT ( - 12 ) END
----
NULL

query I rowsort
SELECT COALESCE ( 2, 63 + + 8 ) - ( - 57 ) * 4 col0
----
230

query I rowsort
SELECT 84 + + 57 AS col2
----
141

query I rowsort
SELECT ALL 77 + + 65
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2843
SELECT 94 * ( - SUM( 57 ) DIV COUNT( * ) ) AS col1
----
-5358

skipif mysql # not compatible
query I rowsort label-2843
SELECT 94 * ( - SUM ( 57 ) / COUNT ( * ) ) AS col1
----
-5358

query I rowsort
SELECT 29 * 13 col2
----
377

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2846
SELECT - COUNT( * ) * + SUM( ALL 20 DIV + 82 ) + + ( + 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2846
SELECT - COUNT ( * ) * + SUM ( ALL 20 / + 82 ) + + ( + 25 ) AS col1
----
25

query I rowsort
SELECT ALL 52 * - 73 + - 20
----
-3816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT ALL - 25 * + 24 + 32 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - 25 * + 24 + 32 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT 26 DIV 50 + + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2849
SELECT 26 / 50 + + 65 AS col1
----
65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2851
SELECT COALESCE ( 86, - CAST( NULL AS SIGNED ), COUNT( * ) ) + 66 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-2851
SELECT COALESCE ( 86, - CAST ( NULL AS INTEGER ), COUNT ( * ) ) + 66 AS col1
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2852
SELECT + MAX( CAST( 19 AS SIGNED ) ) col0
----
19

skipif mysql # not compatible
query I rowsort label-2852
SELECT + MAX ( CAST ( 19 AS INTEGER ) ) col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT ALL + COALESCE ( + 0, + SUM( + 2 ), + 61 ) * + 2 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + COALESCE ( + 0, + SUM ( + 2 ), + 61 ) * + 2 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT 9 * - NULLIF ( - ( + 84 ) * - SUM( ALL + 97 * + 41 + 75 ), - 17 )
----
-3063312

skipif mysql # not compatible
query I rowsort label-2854
SELECT 9 * - NULLIF ( - ( + 84 ) * - SUM ( ALL + 97 * + 41 + 75 ), - 17 )
----
-3063312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2855
SELECT 44 + + CASE 2 WHEN CAST( NULL AS SIGNED ) THEN 66 - - 25 * + MAX( ALL 56 ) WHEN - COUNT( * ) THEN NULL END / 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2855
SELECT 44 + + CASE 2 WHEN CAST ( NULL AS INTEGER ) THEN 66 - - 25 * + MAX ( ALL 56 ) WHEN - COUNT ( * ) THEN NULL END / 17
----
NULL

query I rowsort
SELECT + 1 * 75 + - 99
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT ALL + 32 * + ( - 89 ) + + 56 DIV 12 AS col0
----
-2844

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + 32 * + ( - 89 ) + + 56 / 12 AS col0
----
-2844

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT + MAX( DISTINCT + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-2858
SELECT + MAX ( DISTINCT + 86 )
----
86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2860
SELECT 63 DIV COUNT( * ) + + 77 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-2860
SELECT 63 / COUNT ( * ) + + 77 AS col2
----
140

query I rowsort
SELECT - 51 * - 22 col0
----
1122

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2863
SELECT DISTINCT 72 * + 33 - - 85 DIV 32
----
2378

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT 72 * + 33 - - 85 / 32
----
2378

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT ALL - 29 DIV 3
----
-9

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL - 29 / 3
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT + - ( 10 ) * ( COUNT( * ) + - MAX( + 67 ) )
----
660

skipif mysql # not compatible
query I rowsort label-2865
SELECT + - ( 10 ) * ( COUNT ( * ) + - MAX ( + 67 ) )
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL - + 22 - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - + 22 - COUNT ( * )
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + 42 + COUNT( * ) * 29 col2
----
71

skipif mysql # not compatible
query I rowsort label-2868
SELECT + 42 + COUNT ( * ) * 29 col2
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT - - 74 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-2869
SELECT - - 74 / 78
----
0

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

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

query I rowsort
SELECT + 69 * - 17
----
-1173

query I rowsort
SELECT + - 71 + 12 * + 92 AS col2
----
1033

query I rowsort
SELECT DISTINCT - - 80 * 98
----
7840

query I rowsort
SELECT + + 50 * - 30 + 79 AS col0
----
-1421

query I rowsort
SELECT - 96 - 18
----
-114

query I rowsort
SELECT - - 22 + - 5
----
17

query I rowsort
SELECT ALL - - 5 * 68 AS col1
----
340

query I rowsort
SELECT ALL + 41 + 3
----
44

query I rowsort
SELECT - 27 + - 4 AS col2
----
-31

query I rowsort
SELECT - 41 + - 57
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2881
SELECT ALL COUNT( + CASE + 12 WHEN 99 THEN NULL WHEN - 21 * CASE + NULLIF ( ( + 6 ), 64 ) WHEN ( 23 ) THEN NULL ELSE - 51 END THEN 0 * - 22 ELSE CAST( NULL AS SIGNED ) END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL COUNT ( + CASE + 12 WHEN 99 THEN NULL WHEN - 21 * CASE + NULLIF ( ( + 6 ), 64 ) WHEN ( 23 ) THEN NULL ELSE - 51 END THEN 0 * - 22 ELSE CAST ( NULL AS INTEGER ) END ) AS col2
----
0

query I rowsort
SELECT - 54 + 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2883
SELECT DISTINCT + ( - COALESCE ( + ( MIN( - 27 ) ), + ( CASE + 64 WHEN + COUNT( * ) * - CAST( NULL AS SIGNED ) THEN 51 END ) ) ) + + 45 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + ( - COALESCE ( + ( MIN ( - 27 ) ), + ( CASE + 64 WHEN + COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN 51 END ) ) ) + + 45 AS col2
----
72

query I rowsort
SELECT - 59 * - 79 AS col2
----
4661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2885
SELECT DISTINCT + COALESCE ( MIN( DISTINCT + 72 ), - 84 ) DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT + COALESCE ( MIN ( DISTINCT + 72 ), - 84 ) / 48
----
1

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

query I rowsort
SELECT DISTINCT + ( + - 37 ) + 99 * 44
----
4319

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT - 12 DIV + - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT - 12 / + - 70 AS col0
----
0

query I rowsort
SELECT ALL + 21 + + 79 AS col0
----
100

query I rowsort
SELECT ALL 82 * + 20 * - 33
----
-54120

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2892
SELECT + MIN( - 56 ) DIV - 26 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2892
SELECT + MIN ( - 56 ) / - 26 AS col1
----
2

query I rowsort
SELECT ALL + ( - - 30 ) * 60
----
1800

query I rowsort
SELECT - 93 * - 32 AS col1
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT ( + MAX( 18 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2895
SELECT ( + MAX ( 18 ) ) AS col0
----
18

query I rowsort
SELECT + 58 * - - 16
----
928

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

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

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

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

query I rowsort
SELECT - 60 * + 81 - + 51 * COALESCE ( 91 * 24, - 77 - 80 * 13, - 50 + 99 )
----
-116244

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT 95 DIV + + 34 - 93
----
-91

skipif mysql # not compatible
query I rowsort label-2900
SELECT 95 / + + 34 - 93
----
-91

query I rowsort
SELECT ALL - 59 * - 76
----
4484

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

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

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

query I rowsort
SELECT ( - 22 ) col1
----
-22

query I rowsort
SELECT + 86 * + 36
----
3096

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

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

query I rowsort
SELECT - ( + 83 ) + 1 AS col0
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT 86 * - - 15 + ( 46 ) * + COUNT( * ) + 63 col2
----
1399

skipif mysql # not compatible
query I rowsort label-2909
SELECT 86 * - - 15 + ( 46 ) * + COUNT ( * ) + 63 col2
----
1399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2910
SELECT + 14 - - CASE WHEN NOT - CASE + 99 WHEN 77 * 44 THEN NULL ELSE 87 END <= 69 + 71 * - 54 THEN 81 DIV + 56 ELSE + COUNT( ALL ( ( 9 ) ) ) END + 30 * + 35
----
1065

skipif mysql # not compatible
query I rowsort label-2910
SELECT + 14 - - CASE WHEN NOT - CASE + 99 WHEN 77 * 44 THEN NULL ELSE 87 END <= 69 + 71 * - 54 THEN 81 / + 56 ELSE + COUNT ( ALL ( ( 9 ) ) ) END + 30 * + 35
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT + + COUNT( * ) * + MAX( 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2911
SELECT + + COUNT ( * ) * + MAX ( 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + + 11 * - + 2 + MAX( - 36 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2912
SELECT + + 11 * - + 2 + MAX ( - 36 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + COALESCE ( - 8, COUNT( * ), + 22 ) * 35
----
-280

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + COALESCE ( - 8, COUNT ( * ), + 22 ) * 35
----
-280

query I rowsort
SELECT + NULLIF ( - 81, 26 )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT + + 60 * 68 * - CAST( 3 AS SIGNED ) + 20
----
-12220

skipif mysql # not compatible
query I rowsort label-2915
SELECT + + 60 * 68 * - CAST ( 3 AS INTEGER ) + 20
----
-12220

query I rowsort
SELECT ALL + CASE + 12 WHEN 73 THEN NULL WHEN 48 THEN - 20 WHEN - 82 * ( + 28 * - 36 ) + ( - 45 + + 30 ) THEN + COALESCE ( COALESCE ( - 23, + 99 / - 69, 27 / + 61 + - 5 * 58 ), 68, ( 10 ) ) ELSE NULL END * + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2917
SELECT + CAST( + + NULLIF ( + COUNT( * ), + AVG ( 19 ) ) AS DECIMAL ) * + CASE ( - NULLIF ( - 40, + 22 / 18 ) ) * + 7 WHEN - 11 * + 63 THEN NULL WHEN 97 * - 23 THEN + 59 * 67 + - ( 26 + + 98 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT + CAST ( + + NULLIF ( + COUNT ( * ), + AVG ( 19 ) ) AS REAL ) * + CASE ( - NULLIF ( - 40, + 22 / 18 ) ) * + 7 WHEN - 11 * + 63 THEN NULL WHEN 97 * - 23 THEN + 59 * 67 + - ( 26 + + 98 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2918
SELECT + 3 * + COUNT( * ) + 79 DIV 83
----
3

skipif mysql # not compatible
query I rowsort label-2918
SELECT + 3 * + COUNT ( * ) + 79 / 83
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT ALL + ( + 2 ) * COALESCE ( - 89, + 87 * 43 ) + - COUNT( * )
----
-179

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL + ( + 2 ) * COALESCE ( - 89, + 87 * 43 ) + - COUNT ( * )
----
-179

query I rowsort
SELECT + 55 + - 83 / + CASE - 67 * - 11 WHEN - 91 THEN - 9 WHEN + 34 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT + ( - 29 ) * COUNT( * ) + + NULLIF ( + 39, + 23 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT + ( - 29 ) * COUNT ( * ) + + NULLIF ( + 39, + 23 ) AS col1
----
10

query I rowsort
SELECT + 69 * 18
----
1242

query I rowsort
SELECT - + 10 * + - 53 AS col1
----
530

query I rowsort
SELECT - COALESCE ( - + 99, 22 )
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2925
SELECT + - CAST( NULL AS DECIMAL ) - + + 10 + + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT + - CAST ( NULL AS REAL ) - + + 10 + + 22 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 94, 20 AS col2
----
94
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT + 36 + - NULLIF ( - - ( 26 ), + SUM( 75 ) * COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-2927
SELECT + 36 + - NULLIF ( - - ( 26 ), + SUM ( 75 ) * COUNT ( * ) )
----
10

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

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT MIN ( DISTINCT - - 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL - 89 + + - 2 + + + MIN( ALL 48 ) + 27 * MIN( DISTINCT 15 ) AS col1
----
362

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL - 89 + + - 2 + + + MIN ( ALL 48 ) + 27 * MIN ( DISTINCT 15 ) AS col1
----
362

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

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL SUM ( - - 74 ) * + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT DISTINCT 53 - + 75
----
-22

query I rowsort
SELECT + 76 + + 77 AS col1
----
153

query I rowsort
SELECT - 82 - - 78 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT + 52 + - - 27 * + CASE 56 WHEN + 87 * + 6 THEN 26 WHEN - MIN( DISTINCT 5 ) THEN 93 WHEN SUM( ALL - 88 ) THEN NULL END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT + 52 + - - 27 * + CASE 56 WHEN + 87 * + 6 THEN 26 WHEN - MIN ( DISTINCT 5 ) THEN 93 WHEN SUM ( ALL - 88 ) THEN NULL END + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ( - 49 ) * + + NULLIF ( + 64, COUNT( * ) )
----
-3136

skipif mysql # not compatible
query I rowsort label-2935
SELECT ( - 49 ) * + + NULLIF ( + 64, COUNT ( * ) )
----
-3136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT 60 * + + CAST( NULL AS SIGNED ) * 41 * - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT 60 * + + CAST ( NULL AS INTEGER ) * 41 * - 53 AS col1
----
NULL

query II rowsort
SELECT - 23 AS col1, + 28 AS col0
----
-23
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2938
SELECT ALL 24 AS col2, - COUNT( * ) * - + CAST( NULL AS SIGNED ) * + 23
----
24
NULL

skipif mysql # not compatible
query II rowsort label-2938
SELECT ALL 24 AS col2, - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * + 23
----
24
NULL

query I rowsort
SELECT 34 + - 52 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT ALL + 0 DIV - - 68 * + 86
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + 0 / - - 68 * + 86
----
0

query I rowsort
SELECT - 93 * - - 98 + 22 * - 28
----
-9730

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ALL + 91 * + COUNT( * ) * 79 AS col0
----
7189

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL + 91 * + COUNT ( * ) * 79 AS col0
----
7189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2943
SELECT DISTINCT - CASE COUNT( * ) WHEN ( 79 ) THEN NULL WHEN MIN( 79 ) THEN + 43 WHEN + 29 DIV 32 + 64 DIV COALESCE ( 36, SUM( DISTINCT 36 ) ) THEN 19 + 46 ELSE - 62 + 80 END AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT - CASE COUNT ( * ) WHEN ( 79 ) THEN NULL WHEN MIN ( 79 ) THEN + 43 WHEN + 29 / 32 + 64 / COALESCE ( 36, SUM ( DISTINCT 36 ) ) THEN 19 + 46 ELSE - 62 + 80 END AS col1
----
-65

query I rowsort
SELECT 63 + - 7
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT ALL + CAST( NULL AS SIGNED ) / - 30 * + 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL + CAST ( NULL AS INTEGER ) / - 30 * + 50 col1
----
NULL

query I rowsort
SELECT + 10 + - 0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT ALL - - 38 * - CAST( NULL AS SIGNED ) * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL - - 38 * - CAST ( NULL AS INTEGER ) * - 41
----
NULL

query I rowsort
SELECT + NULLIF ( - 26, - ( 5 ) ) * - 87 AS col0
----
2262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2949
SELECT + CASE + + 38 WHEN - COUNT( * ) * ( 58 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) ) THEN 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT + CASE + + 38 WHEN - COUNT ( * ) * ( 58 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) ) THEN 56 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT 31 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT 31 / - 54 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT + 7 / + CASE COUNT( 61 ) WHEN - 9 THEN 0 + - CAST( 69 AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT + 7 / + CASE COUNT ( 61 ) WHEN - 9 THEN 0 + - CAST ( 69 AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT ALL - 35 + 35 AS col0
----
0

query I rowsort
SELECT - 60 + + 3
----
-57

query II rowsort
SELECT + 13, 51 * - 47 AS col1
----
13
-2397

query II rowsort
SELECT ALL - 10, - 4 * 20 AS col2
----
-10
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - 73 + + 19 * - COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-2956
SELECT - 73 + + 19 * - COUNT ( * ) AS col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2957
SELECT ALL - + COUNT( * ) + + - COUNT( * ) DIV + CASE + 30 WHEN + 36 DIV 7 THEN - 46 + - 92 * - 12 WHEN - COUNT( * ) THEN NULL ELSE + COUNT( ( + 51 ) ) * 7 END
----
-1

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL - + COUNT ( * ) + + - COUNT ( * ) / + CASE + 30 WHEN + 36 / 7 THEN - 46 + - 92 * - 12 WHEN - COUNT ( * ) THEN NULL ELSE + COUNT ( ( + 51 ) ) * 7 END
----
-1

query I rowsort
SELECT DISTINCT - 52 + + 6 col1
----
-46

query I rowsort
SELECT ALL - 94 + - 42
----
-136

query I rowsort
SELECT 3 - + 39 col0
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL - SUM( DISTINCT + 68 ) * - 64 AS col2
----
4352

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - SUM ( DISTINCT + 68 ) * - 64 AS col2
----
4352

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT 88 + MIN( - 25 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT 88 + MIN ( - 25 ) AS col1
----
63

query I rowsort
SELECT + CASE + + AVG ( DISTINCT + 25 ) WHEN 53 * - 89 THEN - 80 + 34 WHEN 87 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 48 + 26 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2966
SELECT ALL 0 - - - ( - 43 ) + + CAST( - 31 AS SIGNED ) + + 61 * 44 * CASE + 62 WHEN - 37 * + 68 THEN 89 WHEN + 69 / + ( - 77 ) + - 98 * - 74 THEN + 92 + 92 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL 0 - - - ( - 43 ) + + CAST ( - 31 AS INTEGER ) + + 61 * 44 * CASE + 62 WHEN - 37 * + 68 THEN 89 WHEN + 69 / + ( - 77 ) + - 98 * - 74 THEN + 92 + 92 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT ALL 47 DIV - 22
----
-2

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL 47 / - 22
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT 19 * + - ( MIN( + 77 ) ) * + COUNT( * ) AS col1
----
-1463

skipif mysql # not compatible
query I rowsort label-2968
SELECT 19 * + - ( MIN ( + 77 ) ) * + COUNT ( * ) AS col1
----
-1463

onlyif mysql # DIV for integer division: 
query I rowsort label-2969
SELECT 25 DIV + + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2969
SELECT 25 / + + 92 AS col0
----
0

query I rowsort
SELECT 64 + - + COALESCE ( + 24, 22 + 79 ) + - 69
----
-29

query I rowsort
SELECT DISTINCT 99 - 17 * - 60
----
1119

query II rowsort
SELECT DISTINCT + 13 * - 92 AS col2, 36 * 29 col2
----
-1196
1044

query I rowsort
SELECT ALL + 4 * 36 col2
----
144

query I rowsort
SELECT 34 - - 32 + + 76 - + 84 AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2975
SELECT ( - COALESCE ( + + CASE + + 21 WHEN 20 THEN - 33 * 90 + MIN( - 60 + 59 ) DIV + 96 END, 1 DIV 78, + 66 ) ) + 3 * - 57 AS col0
----
-171

skipif mysql # not compatible
query I rowsort label-2975
SELECT ( - COALESCE ( + + CASE + + 21 WHEN 20 THEN - 33 * 90 + MIN ( - 60 + 59 ) / + 96 END, 1 / 78, + 66 ) ) + 3 * - 57 AS col0
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2976
SELECT CAST( 90 AS SIGNED ) * - 6 * - + COUNT( * ) + 25 AS col2
----
565

skipif mysql # not compatible
query I rowsort label-2976
SELECT CAST ( 90 AS INTEGER ) * - 6 * - + COUNT ( * ) + 25 AS col2
----
565

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT DISTINCT + 39 + - + COUNT( * ) * 88 + 57
----
8

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT + 39 + - + COUNT ( * ) * 88 + 57
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT CAST( 65 AS SIGNED ) * - 74 + + 52 AS col2
----
-4758

skipif mysql # not compatible
query I rowsort label-2978
SELECT CAST ( 65 AS INTEGER ) * - 74 + + 52 AS col2
----
-4758

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

query I rowsort
SELECT 0 * 81 - - + 85
----
85

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

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT 38 * + + COALESCE ( - 20, - 66 ) * 66 AS col2
----
-50160

query I rowsort
SELECT ALL - 45 + 33
----
-12

query II rowsort
SELECT - ( - - 62 ), - 74 AS col1
----
-62
-74

query I rowsort
SELECT DISTINCT - + 98 + 76
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT + - 23 DIV 11 * - NULLIF ( 78, 51 ) + - 63
----
93

skipif mysql # not compatible
query I rowsort label-2986
SELECT + - 23 / 11 * - NULLIF ( 78, 51 ) + - 63
----
93

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT + CAST( NULL AS SIGNED ) * - - 53 * + ( + + 83 ) - - ( 63 ) * + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT + CAST ( NULL AS INTEGER ) * - - 53 * + ( + + 83 ) - - ( 63 ) * + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT - - NULLIF ( - - COUNT( * ), + COUNT( + 0 ) ) + 10 * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - - NULLIF ( - - COUNT ( * ), + COUNT ( + 0 ) ) + 10 * 23 AS col0
----
NULL

query I rowsort
SELECT NULLIF ( + 52, - ( + 74 ) + - 65 * - 61 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT 25 * + + ( NULLIF ( ( 8 ), - COUNT( * ) * 40 ) )
----
200

skipif mysql # not compatible
query I rowsort label-2991
SELECT 25 * + + ( NULLIF ( ( 8 ), - COUNT ( * ) * 40 ) )
----
200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT + CASE COUNT( * ) WHEN ( + 40 ) THEN NULL WHEN + 61 THEN + 28 WHEN - 90 * 57 THEN CASE - 34 WHEN + 16 THEN - 26 * - NULLIF ( 34, - 77 ) WHEN - 69 / 91 THEN + 84 + + 90 ELSE NULL END ELSE 29 END AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2993
SELECT + CASE COUNT ( * ) WHEN ( + 40 ) THEN NULL WHEN + 61 THEN + 28 WHEN - 90 * 57 THEN CASE - 34 WHEN + 16 THEN - 26 * - NULLIF ( 34, - 77 ) WHEN - 69 / 91 THEN + 84 + + 90 ELSE NULL END ELSE 29 END AS col2
----
29

query I rowsort
SELECT ALL - + CASE 32 WHEN 70 * + - 38 THEN 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT COALESCE ( + + 88, + 95 * - + 94 * + 48, + 76 ) * COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-2995
SELECT COALESCE ( + + 88, + 95 * - + 94 * + 48, + 76 ) * COUNT ( * )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT 99 * + COUNT( + 21 ) + 49 + ( - 60 ) + - 69 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2996
SELECT 99 * + COUNT ( + 21 ) + 49 + ( - 60 ) + - 69 AS col0
----
19

query I rowsort
SELECT DISTINCT - 17 * - 22 AS col2
----
374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2998
SELECT - 36 * + COUNT( * ) - MAX( DISTINCT 4 ) DIV + 22 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2998
SELECT - 36 * + COUNT ( * ) - MAX ( DISTINCT 4 ) / + 22 AS col1
----
-36

query I rowsort
SELECT - 47 - 32 AS col0
----
-79

query I rowsort
SELECT DISTINCT 58 * + 10 col2
----
580

query II rowsort
SELECT ALL 20, ( 17 ) * - 85 * - + 73 * - 42 AS col1
----
20
-4430370

query I rowsort
SELECT + 99 + 3 AS col2
----
102

query I rowsort
SELECT ALL - 0 * - - 95 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3004
SELECT + 51 DIV 30 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3004
SELECT + 51 / 30 AS col1
----
1

query I rowsort
SELECT - 63 + + - ( - - 5 ) - - 25 + - 78 * - 85
----
6587

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT + 69 - - - 11 + + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-3006
SELECT + 69 - - - 11 + + + COUNT ( * )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3007
SELECT + COALESCE ( + CAST( + - CASE - COALESCE ( - 67, - 77 DIV 69 + 92 * SUM( 6 ) ) WHEN 80 THEN NULL ELSE + SUM( ALL + 69 ) * 45 END AS SIGNED ), + 35 ) + + 21 * COALESCE ( ( + ( - COUNT( * ) ) ) DIV + COUNT( * ), 84, - 82, 61 )
----
-3126

skipif mysql # not compatible
query I rowsort label-3007
SELECT + COALESCE ( + CAST ( + - CASE - COALESCE ( - 67, - 77 / 69 + 92 * SUM ( 6 ) ) WHEN 80 THEN NULL ELSE + SUM ( ALL + 69 ) * 45 END AS INTEGER ), + 35 ) + + 21 * COALESCE ( ( + ( - COUNT ( * ) ) ) / + COUNT ( * ), 84, - 82, 61 )
----
-3126

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

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

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

skipif mysql # not compatible
query I rowsort label-3009
SELECT - MIN ( DISTINCT - 41 )
----
41

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

skipif mysql # not compatible
query I rowsort label-3010
SELECT + COUNT ( * ) / - - 34
----
0

query I rowsort
SELECT + 19 + 22
----
41

query I rowsort
SELECT ALL 93 + - 30
----
63

query I rowsort
SELECT ALL + + 91 * - + 65 + - 49
----
-5964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3014
SELECT + COUNT( * ) DIV + ( 64 ) + + COALESCE ( + MIN( 26 ), - 65 - + 57, - 11 + 53 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3014
SELECT + COUNT ( * ) / + ( 64 ) + + COALESCE ( + MIN ( 26 ), - 65 - + 57, - 11 + 53 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT ALL - ( - 25 ) * - + CASE - - 99 WHEN + ( - 32 ) * 4 + MAX( DISTINCT + 75 ) THEN NULL WHEN SUM( 29 ) THEN + 46 * 42 ELSE NULL END + 80 * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL - ( - 25 ) * - + CASE - - 99 WHEN + ( - 32 ) * 4 + MAX ( DISTINCT + 75 ) THEN NULL WHEN SUM ( 29 ) THEN + 46 * 42 ELSE NULL END + 80 * 55 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 20 * + 23
----
460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT + - COUNT( DISTINCT - 23 ) * + 94 - COALESCE ( 64, 52 * + 38 ) AS col0
----
-158

skipif mysql # not compatible
query I rowsort label-3018
SELECT + - COUNT ( DISTINCT - 23 ) * + 94 - COALESCE ( 64, 52 * + 38 ) AS col0
----
-158

query I rowsort
SELECT ALL 39 * + + 80
----
3120

query I rowsort
SELECT + ( - 62 ) + - 43 * + 11 * - + ( 46 )
----
21696

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - 0 * - COUNT( * ) + + + 98 col1
----
98

skipif mysql # not compatible
query I rowsort label-3022
SELECT - 0 * - COUNT ( * ) + + + 98 col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3023
SELECT DISTINCT + + NULLIF ( ( - + 72 ), 26 ) * - - ( ( + CASE - 14 WHEN - NULLIF ( 71, 42 ) + 69 THEN NULL WHEN + 40 THEN NULL ELSE + ( COALESCE ( - ( + 69 ), MAX( + 44 ) + - 5, 10 * 85 + COUNT( - 58 ) ) ) + COUNT( * ) * + 8 END ) ) + - 81 DIV NULLIF ( 35 + + 52, 13 * 47 ) AS col2
----
4392

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT + + NULLIF ( ( - + 72 ), 26 ) * - - ( ( + CASE - 14 WHEN - NULLIF ( 71, 42 ) + 69 THEN NULL WHEN + 40 THEN NULL ELSE + ( COALESCE ( - ( + 69 ), MAX ( + 44 ) + - 5, 10 * 85 + COUNT ( - 58 ) ) ) + COUNT ( * ) * + 8 END ) ) + - 81 / NULLIF ( 35 + + 52, 13 * 47 ) AS col2
----
4392

query I rowsort
SELECT ALL - - 40 * - NULLIF ( - 23, + - 58 ) + - - 40 AS col1
----
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT + NULLIF ( + 55, + - 76 * - 35 + - + 21 + - 89 + - CAST( - 81 AS SIGNED ) ) * - COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3025
SELECT + NULLIF ( + 55, + - 76 * - 35 + - + 21 + - 89 + - CAST ( - 81 AS INTEGER ) ) * - COUNT ( * ) AS col0
----
-55

query I rowsort
SELECT + + 37 + + - 48
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT - 46 * + + CASE + - NULLIF ( + COUNT( * ), 77 * 87 ) WHEN AVG ( DISTINCT + 59 ) + - 6 THEN NULL WHEN 33 THEN 95 END - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 46 * + + CASE + - NULLIF ( + COUNT ( * ), 77 * 87 ) WHEN AVG ( DISTINCT + 59 ) + - 6 THEN NULL WHEN 33 THEN 95 END - COUNT ( * )
----
NULL

query I rowsort
SELECT - - ( 35 ) + + + 50 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT + 24 + + 38 DIV + - 68
----
24

skipif mysql # not compatible
query I rowsort label-3029
SELECT + 24 + + 38 / + - 68
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT + - 18 - SUM( - 13 )
----
-5

skipif mysql # not compatible
query I rowsort label-3030
SELECT + - 18 - SUM ( - 13 )
----
-5

query I rowsort
SELECT + 77 * - COALESCE ( NULLIF ( + ( + + ( 16 ) ), - 78 ), - 80 ) AS col1
----
-1232

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

skipif mysql # not compatible
query I rowsort label-3032
SELECT - COALESCE ( 83, + COUNT ( * ), - 57 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 59 + 77
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL - ( COUNT( * ) ) * + - 54 + - 27 * - - 29 AS col2
----
-729

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL - ( COUNT ( * ) ) * + - 54 + - 27 * - - 29 AS col2
----
-729

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT - COUNT( * ) + - - ( - COALESCE ( 23, + 68 * - - 14 + 19 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-3036
SELECT - COUNT ( * ) + - - ( - COALESCE ( 23, + 68 * - - 14 + 19 ) )
----
-24

query I rowsort
SELECT - 69 * + 93 + + - 89 AS col2
----
-6506

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT - 6 * - + 6 * + ( 26 ) * - COUNT( * ) * + 67 + - 42
----
-62754

skipif mysql # not compatible
query I rowsort label-3038
SELECT - 6 * - + 6 * + ( 26 ) * - COUNT ( * ) * + 67 + - 42
----
-62754

query I rowsort
SELECT ALL ( CASE 24 WHEN + 40 + - - 79 + + 84 THEN - 75 WHEN 43 + + 79 THEN NULL WHEN - 32 * - 44 THEN NULL END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - 23 + + MIN( ALL + 22 ) * + 4 * + 45
----
3937

skipif mysql # not compatible
query I rowsort label-3040
SELECT - 23 + + MIN ( ALL + 22 ) * + 4 * + 45
----
3937

query I rowsort
SELECT ALL - 31 * - 38
----
1178

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

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

query II rowsort
SELECT DISTINCT COALESCE ( - 37, - - 22, + 19 ) AS col0, 71
----
-37
71

query I rowsort
SELECT - 75 * 52 AS col1
----
-3900

query I rowsort
SELECT - 93 + + CASE - + ( - 50 ) WHEN - + 8 + - 48 THEN NULL ELSE 60 + ( - 2 ) END AS col1
----
-35

query II rowsort
SELECT 46 AS col2, + 45 AS col1
----
46
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT - 87 + - CASE - COUNT( - + CASE - + 26 WHEN 91 THEN 97 / + NULLIF ( - 72 * + 76, + 68 ) WHEN 64 + + 17 THEN - 17 ELSE 11 * 78 END ) WHEN - 57 THEN 75 WHEN COUNT( 76 ) THEN NULL ELSE 21 END AS col2
----
-108

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - 87 + - CASE - COUNT ( - + CASE - + 26 WHEN 91 THEN 97 / + NULLIF ( - 72 * + 76, + 68 ) WHEN 64 + + 17 THEN - 17 ELSE 11 * 78 END ) WHEN - 57 THEN 75 WHEN COUNT ( 76 ) THEN NULL ELSE 21 END AS col2
----
-108

query I rowsort
SELECT - 39 * - 7
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT + 45 + + SUM( ALL - 87 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3050
SELECT + 45 + + SUM ( ALL - 87 ) AS col2
----
-42

query II rowsort
SELECT - 33 AS col1, + 61
----
-33
61

query III rowsort
SELECT - 85 AS col0, - 88, 55 AS col0
----
-85
-88
55

query I rowsort
SELECT - + 84 * - 94
----
7896

query I rowsort
SELECT ALL - + ( - 65 ) + + 27
----
92

query II rowsort
SELECT - 14 AS col0, + 5 AS col2
----
-14
5

query I rowsort
SELECT DISTINCT 65 + - - 38
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL COUNT( + 0 ) + - 27 + - 65 + - 70 + - 35 AS col0
----
-196

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL COUNT ( + 0 ) + - 27 + - 65 + - 70 + - 35 AS col0
----
-196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT + 53 * NULLIF ( + CAST( + 78 AS SIGNED ), - 85 - AVG ( DISTINCT + 27 ) )
----
4134

skipif mysql # not compatible
query I rowsort label-3058
SELECT + 53 * NULLIF ( + CAST ( + 78 AS INTEGER ), - 85 - AVG ( DISTINCT + 27 ) )
----
4134

onlyif mysql # aggregate syntax: 
query II rowsort label-3059
SELECT - + 39 AS col1, - 39 - - + COUNT( * )
----
-39
-38

skipif mysql # not compatible
query II rowsort label-3059
SELECT - + 39 AS col1, - 39 - - + COUNT ( * )
----
-39
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT - MIN( ALL - 81 ) + 43
----
124

skipif mysql # not compatible
query I rowsort label-3060
SELECT - MIN ( ALL - 81 ) + 43
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3061
SELECT - 35 DIV - + 15 + + 67 * + + 30 * MIN( 61 ) - - 93 * COUNT( * ) AS col1
----
122705

skipif mysql # not compatible
query I rowsort label-3061
SELECT - 35 / - + 15 + + 67 * + + 30 * MIN ( 61 ) - - 93 * COUNT ( * ) AS col1
----
122705

onlyif mysql # DIV for integer division: 
query I rowsort label-3062
SELECT + 80 DIV + - 3
----
-26

skipif mysql # not compatible
query I rowsort label-3062
SELECT + 80 / + - 3
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT + - 57 * - CASE + 68 WHEN - 32 - - 80 THEN COUNT( * ) END + + COUNT( * ) / 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3063
SELECT + - 57 * - CASE + 68 WHEN - 32 - - 80 THEN COUNT ( * ) END + + COUNT ( * ) / 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT + - ( + - 53 ) * - + 14 + + 57 + MAX( + 14 )
----
-671

skipif mysql # not compatible
query I rowsort label-3064
SELECT + - ( + - 53 ) * - + 14 + + 57 + MAX ( + 14 )
----
-671

query II rowsort
SELECT ALL + - ( + 33 ), 20 + 71 AS col1
----
-33
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3066
SELECT + 68 DIV MIN( + ( - CAST( + 17 AS SIGNED ) ) ) + 2 - + 45 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3066
SELECT + 68 / MIN ( + ( - CAST ( + 17 AS INTEGER ) ) ) + 2 - + 45 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3067
SELECT DISTINCT + - 12 AS col0, + MAX( ALL + 57 )
----
-12
57

skipif mysql # not compatible
query II rowsort label-3067
SELECT DISTINCT + - 12 AS col0, + MAX ( ALL + 57 )
----
-12
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT ALL - 56 DIV - 62 * - + 60 - + + MAX( ALL - - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL - 56 / - 62 * - + 60 - + + MAX ( ALL - - 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3069
SELECT + 93 * 34 * 95 + - COUNT( - 98 ) + - 24 DIV 57 AS col2
----
300389

skipif mysql # not compatible
query I rowsort label-3069
SELECT + 93 * 34 * 95 + - COUNT ( - 98 ) + - 24 / 57 AS col2
----
300389

query I rowsort
SELECT ALL 99 * - 9 - - 58 * + 14 * 36
----
28341

query II rowsort
SELECT + 69 * 62, 96 AS col2
----
4278
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3072
SELECT CAST( + + 31 AS SIGNED ), - 82 AS col1
----
31
-82

skipif mysql # not compatible
query II rowsort label-3072
SELECT CAST ( + + 31 AS INTEGER ), - 82 AS col1
----
31
-82

query II rowsort
SELECT DISTINCT - + 61, 88 AS col1
----
-61
88

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

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

query II rowsort
SELECT 57 - 94 col1, 6 AS col2
----
-37
6

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

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

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

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT AVG ( 12 ) * - 53 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT NULLIF ( + 70, - COUNT( * ) ) * - MAX( 33 ) AS col2
----
-2310

skipif mysql # not compatible
query I rowsort label-3078
SELECT NULLIF ( + 70, - COUNT ( * ) ) * - MAX ( 33 ) AS col2
----
-2310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3079
SELECT 47 + MIN( - 58 ) DIV - 8 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3079
SELECT 47 + MIN ( - 58 ) / - 8 AS col1
----
54

query II rowsort
SELECT 70 * - 42, + 27 * 97 * - 85 * - 85 AS col1
----
-2940
18922275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT 73 * + NULLIF ( - 24, 86 ) + 19 * 96 * + - COUNT( 71 ) / + CASE + 34 * 25 + 46 WHEN NULLIF ( CAST( NULL AS SIGNED ), - 29 ) THEN 46 WHEN 81 THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT 73 * + NULLIF ( - 24, 86 ) + 19 * 96 * + - COUNT ( 71 ) / + CASE + 34 * 25 + 46 WHEN NULLIF ( CAST ( NULL AS INTEGER ), - 29 ) THEN 46 WHEN 81 THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL - 0 + 14 + + ( SUM( + NULLIF ( 70, - + 60 * - 99 ) ) ) + 51 * + 49 col1
----
2583

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - 0 + 14 + + ( SUM ( + NULLIF ( 70, - + 60 * - 99 ) ) ) + 51 * + 49 col1
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ( + - NULLIF ( - NULLIF ( ( - NULLIF ( NULLIF ( + - 1, 71 / - 19 ), 76 ) ), - 19 * 35 + - MAX( + 76 ) ), - 22 * 82 ) ) + + 12
----
13

skipif mysql # not compatible
query I rowsort label-3083
SELECT ( + - NULLIF ( - NULLIF ( ( - NULLIF ( NULLIF ( + - 1, 71 / - 19 ), 76 ) ), - 19 * 35 + - MAX ( + 76 ) ), - 22 * 82 ) ) + + 12
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3084
SELECT 89 DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-3084
SELECT 89 / 18
----
4

query I rowsort
SELECT DISTINCT 81 + + + 99 AS col1
----
180

query I rowsort
SELECT 79 + ( + - 37 ) + - 23 * + 67 AS col1
----
-1499

query I rowsort
SELECT ALL + 37 + ( - 98 ) AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3088
SELECT 88 + COALESCE ( - 6, + CAST( NULL AS SIGNED ) * CAST( + 72 AS SIGNED ), 2 + + COUNT( ALL + 47 ) ) + + 11 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3088
SELECT 88 + COALESCE ( - 6, + CAST ( NULL AS INTEGER ) * CAST ( + 72 AS INTEGER ), 2 + + COUNT ( ALL + 47 ) ) + + 11 AS col0
----
93

query I rowsort
SELECT ALL - 27 + 23
----
-4

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

skipif mysql # not compatible
query I rowsort label-3090
SELECT COUNT ( * ) - - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + 51 + + + 78 AS col0
----
129

query I rowsort
SELECT ALL + 67 - + - 94
----
161

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

skipif mysql # not compatible
query I rowsort label-3093
SELECT COUNT ( ALL - 93 ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT 92 + - 11 + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3094
SELECT 92 + - 11 + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL - 31 - - + ( COUNT( 93 ) ) + + COUNT( + 6 ) * + 52
----
22

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL - 31 - - + ( COUNT ( 93 ) ) + + COUNT ( + 6 ) * + 52
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT - 53 DIV + 74 + + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-3096
SELECT - 53 / + 74 + + - 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT MIN( ( + 67 ) ) * 82 * + SUM( ALL + - 30 ) * + CASE 52 WHEN + 48 / + 61 + COUNT( 44 ) THEN 13 * - 98 + + COUNT( 76 + - 15 ) * - 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3097
SELECT MIN ( ( + 67 ) ) * 82 * + SUM ( ALL + - 30 ) * + CASE 52 WHEN + 48 / + 61 + COUNT ( 44 ) THEN 13 * - 98 + + COUNT ( 76 + - 15 ) * - 88 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + - 20 * - 14, 1 AS col0
----
280
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - 67 * - - ( - CASE + - MIN( + 50 ) WHEN + COUNT( * ) THEN 60 END ) / + 69 + 66 * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT - 67 * - - ( - CASE + - MIN ( + 50 ) WHEN + COUNT ( * ) THEN 60 END ) / + 69 + 66 * - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT - + CASE COALESCE ( - 80, - + COUNT( * ) ) WHEN + MIN( ALL + 31 ) THEN - 80 + 87 ELSE COUNT( * ) + - 94 END * 46 + - ( - 39 )
----
4317

skipif mysql # not compatible
query I rowsort label-3100
SELECT - + CASE COALESCE ( - 80, - + COUNT ( * ) ) WHEN + MIN ( ALL + 31 ) THEN - 80 + 87 ELSE COUNT ( * ) + - 94 END * 46 + - ( - 39 )
----
4317

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT 49 DIV 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3101
SELECT 49 / 85 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT DISTINCT - MIN( - 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT - MIN ( - 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT ( + COALESCE ( - - 63, - - COUNT( - NULLIF ( - 96, + 77 * 60 + - 39 ) ), - COUNT( * ), 20 ) ) + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-3103
SELECT ( + COALESCE ( - - 63, - - COUNT ( - NULLIF ( - 96, + 77 * 60 + - 39 ) ), - COUNT ( * ), 20 ) ) + - COUNT ( * )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3104
SELECT + 49, 8 + CAST( + CASE - NULLIF ( 35, 35 * CASE - 35 WHEN CAST( NULL AS SIGNED ) + 74 THEN + 34 WHEN - 55 * 39 + - 34 * - 92 THEN NULL ELSE NULL END / + 53 + - 37 ) WHEN - 62 THEN - 83 * 14 WHEN 10 THEN - 89 ELSE NULL END AS SIGNED ) AS col2
----
49
NULL

skipif mysql # not compatible
query II rowsort label-3104
SELECT + 49, 8 + CAST ( + CASE - NULLIF ( 35, 35 * CASE - 35 WHEN CAST ( NULL AS INTEGER ) + 74 THEN + 34 WHEN - 55 * 39 + - 34 * - 92 THEN NULL ELSE NULL END / + 53 + - 37 ) WHEN - 62 THEN - 83 * 14 WHEN 10 THEN - 89 ELSE NULL END AS INTEGER ) AS col2
----
49
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT DISTINCT - 86, + NULLIF ( + - 86, COALESCE ( 93, COUNT( * ) * - COUNT( * ) - + + 51 + + 14 * 39 ) + - 16 * COUNT( * ) ) * 29 + 23 AS col0
----
-86
-2471

skipif mysql # not compatible
query II rowsort label-3105
SELECT DISTINCT - 86, + NULLIF ( + - 86, COALESCE ( 93, COUNT ( * ) * - COUNT ( * ) - + + 51 + + 14 * 39 ) + - 16 * COUNT ( * ) ) * 29 + 23 AS col0
----
-86
-2471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3106
SELECT ALL 82 + + CAST( - COALESCE ( + 77, - 16, + COUNT( * ) ) AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL 82 + + CAST ( - COALESCE ( + 77, - 16, + COUNT ( * ) ) AS INTEGER )
----
5

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

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

query II rowsort
SELECT 85 AS col0, 49 - 50 AS col1
----
85
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT COUNT( * ) * - NULLIF ( - 12, + 27 ) * SUM( DISTINCT + 92 )
----
1104

skipif mysql # not compatible
query I rowsort label-3109
SELECT COUNT ( * ) * - NULLIF ( - 12, + 27 ) * SUM ( DISTINCT + 92 )
----
1104

query I rowsort
SELECT ( - 23 ) + + - 66 + + 6 AS col0
----
-83

query I rowsort
SELECT 89 + + + 63 col1
----
152

query II rowsort
SELECT + 20 AS col0, + 23
----
20
23

query I rowsort
SELECT ALL 28 + 35
----
63

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ( 9 ) + - - MIN( + 51 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3118
SELECT ( 9 ) + - - MIN ( + 51 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL + 96 - ( MIN( ALL + 57 ) ) * 99 * - - ( ( + ( + NULLIF ( NULLIF ( 86, - 95 ), 34 * + 0 - COALESCE ( 66, - 20 ) ) ) ) ) AS col1
----
-485202

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + 96 - ( MIN ( ALL + 57 ) ) * 99 * - - ( ( + ( + NULLIF ( NULLIF ( 86, - 95 ), 34 * + 0 - COALESCE ( 66, - 20 ) ) ) ) ) AS col1
----
-485202

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT + 49 + CASE - 0 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE 15 END AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3121
SELECT + 49 + CASE - 0 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 15 END AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3122
SELECT 69 * - ( 60 ) AS col1, CAST( NULL AS SIGNED ) * + 9
----
-4140
NULL

skipif mysql # not compatible
query II rowsort label-3122
SELECT 69 * - ( 60 ) AS col1, CAST ( NULL AS INTEGER ) * + 9
----
-4140
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT COUNT( * ) AS col0, 7 + + 31 AS col0
----
1
38

skipif mysql # not compatible
query II rowsort label-3123
SELECT COUNT ( * ) AS col0, 7 + + 31 AS col0
----
1
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3124
SELECT DISTINCT + + 59 * 99 / COUNT( * ) + - CAST( NULL AS SIGNED ) + NULLIF ( SUM( - 52 ), + + 74 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT + + 59 * 99 / COUNT ( * ) + - CAST ( NULL AS INTEGER ) + NULLIF ( SUM ( - 52 ), + + 74 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + + 48 ) col2
----
48

query II rowsort
SELECT ALL 71 * 53 + 13 + - 43 * + ( - - 58 ) AS col0, - 53 + 63 AS col1
----
1282
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL 76 * - - 31 * + - SUM( - + 3 ) * 42 * - 8 + 58 + ( + 16 ) + - 23
----
-2374797

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL 76 * - - 31 * + - SUM ( - + 3 ) * 42 * - 8 + 58 + ( + 16 ) + - 23
----
-2374797

query I rowsort
SELECT DISTINCT CASE - - 31 WHEN + - 25 THEN - 64 / + 30 + + ( 52 ) * 48 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3129
SELECT + CAST ( NULL AS INTEGER ) * 92 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT + COUNT ( * ) * + - 67 AS col2
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT - 42 * + COALESCE ( + + ( + - 43 ), + 46 * + 36 DIV 44 - + + 28 ) AS col1
----
1806

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 42 * + COALESCE ( + + ( + - 43 ), + 46 * + 36 / 44 - + + 28 ) AS col1
----
1806

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

query I rowsort
SELECT - 91 * + + 11
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT MAX( - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3134
SELECT MAX ( - 75 )
----
-75

query II rowsort
SELECT 8 AS col0, 49 col1
----
8
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3136
SELECT + 88 DIV 20 + + COUNT( * ) + - 92 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 88 / 20 + + COUNT ( * ) + - 92 AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3137
SELECT + 7 AS col0, + CASE - COUNT( * ) WHEN 51 THEN ( - 49 ) + - 43 WHEN CAST( - COUNT( ALL + 2 ) AS SIGNED ) * 43 THEN 43 ELSE NULL END
----
7
NULL

skipif mysql # not compatible
query II rowsort label-3137
SELECT + 7 AS col0, + CASE - COUNT ( * ) WHEN 51 THEN ( - 49 ) + - 43 WHEN CAST ( - COUNT ( ALL + 2 ) AS INTEGER ) * 43 THEN 43 ELSE NULL END
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT ALL + 40 * - - 57 + + 32 + - MAX( - 90 ) AS col1
----
2402

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL + 40 * - - 57 + + 32 + - MAX ( - 90 ) AS col1
----
2402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3139
SELECT - CASE + 48 WHEN 26 THEN - + 74 * 79 END - + + COUNT( ALL - - 37 ) * CAST( - SUM( DISTINCT 43 ) AS SIGNED ) * 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3139
SELECT - CASE + 48 WHEN 26 THEN - + 74 * 79 END - + + COUNT ( ALL - - 37 ) * CAST ( - SUM ( DISTINCT 43 ) AS INTEGER ) * 75 col0
----
NULL

query I rowsort
SELECT COALESCE ( 59, + ( - 57 ) ) AS col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT + 70 DIV - 6
----
-11

skipif mysql # not compatible
query I rowsort label-3141
SELECT + 70 / - 6
----
-11

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

query I rowsort
SELECT - 17 * - 46 AS col2
----
782

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT - 34 DIV + ( + 96 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3144
SELECT - 34 / + ( + 96 ) AS col2
----
0

query I rowsort
SELECT DISTINCT 62 * 86 + + + 51 AS col1
----
5383

query I rowsort
SELECT ALL + ( - ( 21 ) ) col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3147
SELECT DISTINCT - 28 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT - 28 / + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT - MAX( 69 ) * + 75 + 97 - 13
----
-5091

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT - MAX ( 69 ) * + 75 + 97 - 13
----
-5091

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

skipif mysql # not compatible
query I rowsort label-3149
SELECT MAX ( DISTINCT - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - CASE 0 WHEN + COALESCE ( - - 29, + - ( - - 34 ) * + 7, + 63 ) / - 90 / + 86 + COUNT( * ) THEN NULL ELSE + 9 * + 83 END * 52
----
-38844

skipif mysql # not compatible
query I rowsort label-3150
SELECT - CASE 0 WHEN + COALESCE ( - - 29, + - ( - - 34 ) * + 7, + 63 ) / - 90 / + 86 + COUNT ( * ) THEN NULL ELSE + 9 * + 83 END * 52
----
-38844

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT COUNT( DISTINCT ( 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3151
SELECT COUNT ( DISTINCT ( 83 ) )
----
1

query I rowsort
SELECT - ( + 89 ) + + + 21 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT MAX( 45 ) * - COUNT( * ) + - 14 col1
----
-59

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT MAX ( 45 ) * - COUNT ( * ) + - 14 col1
----
-59

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

query II rowsort
SELECT + 63 + 76 + 96 * 66, 14 AS col2
----
6475
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT + 72 + - - MIN( DISTINCT + 5 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3156
SELECT + 72 + - - MIN ( DISTINCT + 5 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT + COUNT( * ) * MAX( ALL - 82 ) * - - 37 * - COUNT( * )
----
3034

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + COUNT ( * ) * MAX ( ALL - 82 ) * - - 37 * - COUNT ( * )
----
3034

query I rowsort
SELECT ALL + 64 - 37 + + 48 col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3159
SELECT DISTINCT ( - COUNT( * ) ), 63 + + 51 col2
----
-1
114

skipif mysql # not compatible
query II rowsort label-3159
SELECT DISTINCT ( - COUNT ( * ) ), 63 + + 51 col2
----
-1
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT ALL - 84 DIV - 54
----
1

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL - 84 / - 54
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT + + 20 + + AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT + + 20 + + AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3162
SELECT + - 45 + COUNT ( * ) AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT ALL NULLIF ( + 74, - + NULLIF ( 58, + 34 ) ) DIV - 31 - 7
----
-9

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL NULLIF ( + 74, - + NULLIF ( 58, + 34 ) ) / - 31 - 7
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3164
SELECT - CAST( CAST( + + ( - 22 ) AS SIGNED ) AS SIGNED ) AS col0, COALESCE ( 38, - 51 )
----
22
38

skipif mysql # not compatible
query II rowsort label-3164
SELECT - CAST ( CAST ( + + ( - 22 ) AS INTEGER ) AS INTEGER ) AS col0, COALESCE ( 38, - 51 )
----
22
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3165
SELECT + 93 DIV + 71 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3165
SELECT + 93 / + 71 AS col2
----
1

query I rowsort
SELECT ALL + CASE - - 29 WHEN + 6 + + 26 - - + CASE WHEN NOT ( ( + 52 ) ) IS NULL THEN 21 END + 34 * 88 / - 81 THEN 89 WHEN - 77 THEN NULL ELSE NULL END * + 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3167
SELECT ALL + 99 + 84 / - - CAST( NULL AS SIGNED ) * - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL + 99 + 84 / - - CAST ( NULL AS INTEGER ) * - + 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3168
SELECT + 15 + + + MAX( - 98 ) + - COALESCE ( - - 75, 70, - ( - COUNT( * ) ) * - 63 + 12 ) - - 11 * SUM( DISTINCT 95 ) DIV 20
----
-106

skipif mysql # not compatible
query I rowsort label-3168
SELECT + 15 + + + MAX ( - 98 ) + - COALESCE ( - - 75, 70, - ( - COUNT ( * ) ) * - 63 + 12 ) - - 11 * SUM ( DISTINCT 95 ) / 20
----
-106

query I rowsort
SELECT DISTINCT 90 * 66 * 55
----
326700

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT ALL - - 77 DIV - 53
----
-1

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - - 77 / - 53
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3171
SELECT + ( - - 74 ), - 91 * - - COALESCE ( + 74, - - 96 * + 64 * - + 18 + + 52 DIV + 43 ) col1
----
74
-6734

skipif mysql # not compatible
query II rowsort label-3171
SELECT + ( - - 74 ), - 91 * - - COALESCE ( + 74, - - 96 * + 64 * - + 18 + + 52 / + 43 ) col1
----
74
-6734

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT ALL + ( + + 66 ) DIV + 2 + - - 35 col2
----
68

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL + ( + + 66 ) / + 2 + - - 35 col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3173
SELECT + CAST( NULL AS SIGNED ) col0, NULLIF ( + ( + 13 ), - + 15 ) AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-3173
SELECT + CAST ( NULL AS INTEGER ) col0, NULLIF ( + ( + 13 ), - + 15 ) AS col2
----
NULL
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3174
SELECT - NULLIF ( 73, + 7 * - CAST( NULL AS SIGNED ) ) * 35 * 38 DIV - COUNT( * ) + NULLIF ( 66, 98 - NULLIF ( - 76, COUNT( * ) ) ) AS col2
----
97156

skipif mysql # not compatible
query I rowsort label-3174
SELECT - NULLIF ( 73, + 7 * - CAST ( NULL AS INTEGER ) ) * 35 * 38 / - COUNT ( * ) + NULLIF ( 66, 98 - NULLIF ( - 76, COUNT ( * ) ) ) AS col2
----
97156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3175
SELECT CAST( NULL AS SIGNED ) AS col0, 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-3175
SELECT CAST ( NULL AS INTEGER ) AS col0, 65 AS col0
----
NULL
65

query I rowsort
SELECT 87 * 67 * - 79 * - + 61 + 92 * - 61 AS col1
----
28084339

onlyif mysql # aggregate syntax: 
query II rowsort label-3177
SELECT DISTINCT + 95 col0, - 35 - + CASE - 94 WHEN - SUM( - 40 ) THEN + ( 58 ) / + 57 WHEN 18 THEN + 3 WHEN - MAX( 50 ) + 1 THEN NULL END AS col2
----
95
NULL

skipif mysql # not compatible
query II rowsort label-3177
SELECT DISTINCT + 95 col0, - 35 - + CASE - 94 WHEN - SUM ( - 40 ) THEN + ( 58 ) / + 57 WHEN 18 THEN + 3 WHEN - MAX ( 50 ) + 1 THEN NULL END AS col2
----
95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT + 77 DIV + - 21 + + 15 - 83 * + + 53 * + + 89
----
-391499

skipif mysql # not compatible
query I rowsort label-3178
SELECT + 77 / + - 21 + + 15 - 83 * + + 53 * + + 89
----
-391499

query I rowsort
SELECT - 93 * - 28
----
2604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3180
SELECT - 11 + - CAST( + - 89 AS SIGNED ) * + - 89 + + 67 * - COUNT( * )
----
-7999

skipif mysql # not compatible
query I rowsort label-3180
SELECT - 11 + - CAST ( + - 89 AS INTEGER ) * + - 89 + + 67 * - COUNT ( * )
----
-7999

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL + ( ( - SUM( DISTINCT + 48 ) ) ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + ( ( - SUM ( DISTINCT + 48 ) ) ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3182
SELECT ALL + COALESCE ( 63, - + SUM( - 87 ) * + + 20 + - 87 + CAST( 12 AS SIGNED ) ) AS col1, ( + 41 ) * 50 AS col2
----
63
2050

skipif mysql # not compatible
query II rowsort label-3182
SELECT ALL + COALESCE ( 63, - + SUM ( - 87 ) * + + 20 + - 87 + CAST ( 12 AS INTEGER ) ) AS col1, ( + 41 ) * 50 AS col2
----
63
2050

query I rowsort
SELECT - 57 * + 71 col2
----
-4047

query I rowsort
SELECT - 63 * + - 45 * - 64
----
-181440

query I rowsort
SELECT 42 * - 92 + + - 11
----
-3875

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

query I rowsort
SELECT COALESCE ( + 41, - + COALESCE ( + + 26, - 88 ), + 35, - + 90 )
----
41

query I rowsort
SELECT + 57 + + - 2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - COUNT( * ) * - + 16 * - MIN( DISTINCT - 44 ) AS col2
----
704

skipif mysql # not compatible
query I rowsort label-3189
SELECT - COUNT ( * ) * - + 16 * - MIN ( DISTINCT - 44 ) AS col2
----
704

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT DISTINCT 5 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT 5 / + 62 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3193
SELECT - + CAST( NULL AS SIGNED ) * + 15 - - COUNT( DISTINCT 10 ) / 86 * - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT - + CAST ( NULL AS INTEGER ) * + 15 - - COUNT ( DISTINCT 10 ) / 86 * - 74 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT ALL - - 13 DIV COALESCE ( ( + - 56 ), 8 )
----
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - - 13 / COALESCE ( ( + - 56 ), 8 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL - 55 * ( - + COALESCE ( COUNT( + 65 ), - 53 + - 57, + 8 ) )
----
55

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - 55 * ( - + COALESCE ( COUNT ( + 65 ), - 53 + - 57, + 8 ) )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT + - NULLIF ( 53, + 45 ) * 7 DIV + 60 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3196
SELECT + - NULLIF ( 53, + 45 ) * 7 / + 60 AS col1
----
-6

query I rowsort
SELECT DISTINCT NULLIF ( - + 58, + + 37 / 35 )
----
-58

query I rowsort
SELECT ALL 94 * + - 90 * 80
----
-676800

query I rowsort
SELECT - 64 * - + 87
----
5568

query I rowsort
SELECT DISTINCT + 61 + + 32 AS col0
----
93

query I rowsort
SELECT ALL - 3 + NULLIF ( - - 57, + 33 + + 82 ) + COALESCE ( - - 48, - 92 * 53 ) AS col0
----
102

query I rowsort
SELECT + 86 - + + 29 + + - 40 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-3203
SELECT ALL COUNT( * ), MAX( ALL 66 ) AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-3203
SELECT ALL COUNT ( * ), MAX ( ALL 66 ) AS col1
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL - COUNT( * ) + + 9 * ( 46 ) AS col2
----
413

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - COUNT ( * ) + + 9 * ( 46 ) AS col2
----
413

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3205
SELECT NULLIF ( + 92, CAST( + 43 AS DECIMAL ) - + COUNT( 25 ) * + 14 + SUM( 5 ) ) * 5
----
460

skipif mysql # not compatible
query I rowsort label-3205
SELECT NULLIF ( + 92, CAST ( + 43 AS REAL ) - + COUNT ( 25 ) * + 14 + SUM ( 5 ) ) * 5
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL CASE - 76 WHEN - - 80 THEN NULL WHEN - - 70 THEN - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL CASE - 76 WHEN - - 80 THEN NULL WHEN - - 70 THEN - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 78 + + 76 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL - COUNT( * ) + - 94
----
-95

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL - COUNT ( * ) + - 94
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3209
SELECT DISTINCT + CASE + 99 WHEN CAST( - + COUNT( * ) AS DECIMAL ) THEN 99 / - 62 * - COUNT( * ) + ( + - 57 ) WHEN 63 + - 41 THEN NULL END / 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT + CASE + 99 WHEN CAST ( - + COUNT ( * ) AS REAL ) THEN 99 / - 62 * - COUNT ( * ) + ( + - 57 ) WHEN 63 + - 41 THEN NULL END / 44
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3210
SELECT ALL + CAST( - 67 AS SIGNED ) + - + COUNT( * ) + - + 9
----
-77

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + CAST ( - 67 AS INTEGER ) + - + COUNT ( * ) + - + 9
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3211
SELECT 26 + + AVG ( - + 79 ) * - ( + ( - - 56 ) ) * ( + 65 ) + - CAST( NULL AS SIGNED ) + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT 26 + + AVG ( - + 79 ) * - ( + ( - - 56 ) ) * ( + 65 ) + - CAST ( NULL AS INTEGER ) + 38 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3212
SELECT + 3 AS col1, + 90 * 22 + + - CASE + + CAST( NULL AS SIGNED ) WHEN - 73 / + COUNT( * ) * COUNT( * ) THEN - 1 * - 78 END + - 76
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3212
SELECT + 3 AS col1, + 90 * 22 + + - CASE + + CAST ( NULL AS INTEGER ) WHEN - 73 / + COUNT ( * ) * COUNT ( * ) THEN - 1 * - 78 END + - 76
----
3
NULL

query II rowsort
SELECT 63 AS col1, + 83 AS col1
----
63
83

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3215
SELECT 82 DIV - CASE CASE + 6 WHEN 8 THEN NULL WHEN + 72 * CAST( NULL AS SIGNED ) THEN - 12 + - + 72 WHEN - + 18 THEN + COUNT( * ) END WHEN 82 THEN 66 ELSE 29 END
----
-2

skipif mysql # not compatible
query I rowsort label-3215
SELECT 82 / - CASE CASE + 6 WHEN 8 THEN NULL WHEN + 72 * CAST ( NULL AS INTEGER ) THEN - 12 + - + 72 WHEN - + 18 THEN + COUNT ( * ) END WHEN 82 THEN 66 ELSE 29 END
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT MIN( DISTINCT - 91 ) * ( - COUNT( * ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3216
SELECT MIN ( DISTINCT - 91 ) * ( - COUNT ( * ) ) AS col1
----
91

query I rowsort
SELECT DISTINCT 53 * - 34
----
-1802

query II rowsort
SELECT + 3 AS col2, 3
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3219
SELECT ALL - 98, - 61 * + CAST( NULL AS DECIMAL ) AS col0
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-3219
SELECT ALL - 98, - 61 * + CAST ( NULL AS REAL ) AS col0
----
-98
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT + 60 AS col0, - COUNT( * ) + CASE 80 WHEN 7 + COUNT( * ) THEN NULL WHEN 23 THEN NULL WHEN - 37 THEN 58 * + + 28 ELSE NULL END
----
60
NULL

skipif mysql # not compatible
query II rowsort label-3220
SELECT + 60 AS col0, - COUNT ( * ) + CASE 80 WHEN 7 + COUNT ( * ) THEN NULL WHEN 23 THEN NULL WHEN - 37 THEN 58 * + + 28 ELSE NULL END
----
60
NULL

query II rowsort
SELECT DISTINCT 17 * 5 AS col0, + 64
----
85
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT ALL 75 - 26 + - 30 - - COUNT( * ) * + 19 * - ( + - 46 )
----
893

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL 75 - 26 + - 30 - - COUNT ( * ) * + 19 * - ( + - 46 )
----
893

query II rowsort
SELECT DISTINCT - 30, + 78 AS col1
----
-30
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3224
SELECT + 71 AS col1, 69 * COUNT( ALL + ( 49 ) ) AS col2
----
71
69

skipif mysql # not compatible
query II rowsort label-3224
SELECT + 71 AS col1, 69 * COUNT ( ALL + ( 49 ) ) AS col2
----
71
69

onlyif mysql # DIV for integer division: 
query II rowsort label-3225
SELECT 14 AS col0, + 98 DIV 51
----
14
1

skipif mysql # not compatible
query II rowsort label-3225
SELECT 14 AS col0, + 98 / 51
----
14
1

query II rowsort
SELECT 7 * - NULLIF ( + 44, 8 / AVG ( ALL + - 22 ) ) AS col1, 51
----
-308
51

query II rowsort
SELECT 95 AS col0, - ( - 0 )
----
95
0

query I rowsort
SELECT 94 - - + 90 AS col0
----
184

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

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

query II rowsort
SELECT + + 67 AS col1, + ( - 23 ) * + 5
----
67
-115

query I rowsort
SELECT ALL - 89 * 45 + 2
----
-4003

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3232
SELECT 13 * + 55 * - + 71 * - CAST( NULL AS DECIMAL ) + - 24 * + 22 + COUNT( * ) + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT 13 * + 55 * - + 71 * - CAST ( NULL AS REAL ) + - 24 * + 22 + COUNT ( * ) + 21 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3234
SELECT SUM( ALL + 33 ) * 47 DIV + 74 - + + 51
----
-31

skipif mysql # not compatible
query I rowsort label-3234
SELECT SUM ( ALL + 33 ) * 47 / + 74 - + + 51
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3235
SELECT DISTINCT + CASE - + CAST( - + 13 AS SIGNED ) WHEN + + 28 * 83 * - MIN( ALL - 30 ) + + 60 THEN 24 * + CAST( + 3 AS DECIMAL ) WHEN - 63 THEN CAST( NULL AS SIGNED ) - - 34 WHEN - 29 THEN + 53 END * - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT + CASE - + CAST ( - + 13 AS INTEGER ) WHEN + + 28 * 83 * - MIN ( ALL - 30 ) + + 60 THEN 24 * + CAST ( + 3 AS REAL ) WHEN - 63 THEN CAST ( NULL AS INTEGER ) - - 34 WHEN - 29 THEN + 53 END * - 91 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3236
SELECT 93 * - + ( COUNT( * ) ) + - 99 AS col2, - 20 + - - 51 * + 35 - - CASE + - COUNT( * ) WHEN + - 47 THEN NULL WHEN 65 + + 49 THEN 88 ELSE 36 * - 76 END + + 31 DIV MAX( - 67 ) DIV 51 AS col1
----
-192
-971

skipif mysql # not compatible
query II rowsort label-3236
SELECT 93 * - + ( COUNT ( * ) ) + - 99 AS col2, - 20 + - - 51 * + 35 - - CASE + - COUNT ( * ) WHEN + - 47 THEN NULL WHEN 65 + + 49 THEN 88 ELSE 36 * - 76 END + + 31 / MAX ( - 67 ) / 51 AS col1
----
-192
-971

onlyif mysql # aggregate syntax: 
query II rowsort label-3237
SELECT MIN( ALL 67 ) AS col2, + 49
----
67
49

skipif mysql # not compatible
query II rowsort label-3237
SELECT MIN ( ALL 67 ) AS col2, + 49
----
67
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT - - 7 * COUNT( + + 22 ) + + CASE + COALESCE ( - 90, MIN( DISTINCT + 81 ) ) WHEN + + 16 THEN NULL WHEN + AVG ( DISTINCT 65 ) / COUNT( * ) + - 34 * 8 THEN 52 + COUNT( * ) END + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT - - 7 * COUNT ( + + 22 ) + + CASE + COALESCE ( - 90, MIN ( DISTINCT + 81 ) ) WHEN + + 16 THEN NULL WHEN + AVG ( DISTINCT 65 ) / COUNT ( * ) + - 34 * 8 THEN 52 + COUNT ( * ) END + 11 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT + 18 * NULLIF ( - CAST( NULL AS SIGNED ), - 47 * 10 + + + 25 + - 19 + + 82 ) + 10 + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT + 18 * NULLIF ( - CAST ( NULL AS INTEGER ), - 47 * 10 + + + 25 + - 19 + + 82 ) + 10 + + 81
----
NULL

query I rowsort
SELECT ALL - - 98 + - 49 AS col1
----
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - 4 + - - 2 + - 80 * + 24 - + COUNT( * ) AS col0
----
-1923

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - 4 + - - 2 + - 80 * + 24 - + COUNT ( * ) AS col0
----
-1923

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

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL 23 / 84 * COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3244
SELECT 61 + + 72 / 63 / CASE - + 59 WHEN + COALESCE ( + - 87, - 78 ) + + CAST( + CASE - COUNT( * ) WHEN + AVG ( 80 ) THEN - 31 END AS SIGNED ) + + COALESCE ( 77 + 37, + COUNT( * ), - 72 ) * + 89 THEN 0 * + 46 END - + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT 61 + + 72 / 63 / CASE - + 59 WHEN + COALESCE ( + - 87, - 78 ) + + CAST ( + CASE - COUNT ( * ) WHEN + AVG ( 80 ) THEN - 31 END AS INTEGER ) + + COALESCE ( 77 + 37, + COUNT ( * ), - 72 ) * + 89 THEN 0 * + 46 END - + 78 AS col0
----
NULL

query I rowsort
SELECT - 11 + 87
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT COALESCE ( - + 22, - 71, + 55, - + 27 + 34 ) * + SUM( DISTINCT - + 58 ) * + + 24 AS col2
----
30624

skipif mysql # not compatible
query I rowsort label-3246
SELECT COALESCE ( - + 22, - 71, + 55, - + 27 + 34 ) * + SUM ( DISTINCT - + 58 ) * + + 24 AS col2
----
30624

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT + 34 + + COUNT( * ) + + + 14
----
49

skipif mysql # not compatible
query I rowsort label-3247
SELECT + 34 + + COUNT ( * ) + + + 14
----
49

query I rowsort
SELECT DISTINCT 77 * + NULLIF ( + 29, + 45 ) AS col1
----
2233

query I rowsort
SELECT ALL 12 - + 25
----
-13

query I rowsort
SELECT ALL - 50 * 49 AS col2
----
-2450

query I rowsort
SELECT DISTINCT + 42 * + 57
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT SUM( ALL + - 95 ) + - ( 26 )
----
-121

skipif mysql # not compatible
query I rowsort label-3252
SELECT SUM ( ALL + - 95 ) + - ( 26 )
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL 76 - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL 76 - COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT COUNT( ALL + 29 ) * - 61
----
-61

skipif mysql # not compatible
query I rowsort label-3254
SELECT COUNT ( ALL + 29 ) * - 61
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3255
SELECT 69 + - - 86 AS col1, + CAST( + + ( - - COUNT( * ) ) AS SIGNED ) AS col1
----
155
1

skipif mysql # not compatible
query II rowsort label-3255
SELECT 69 + - - 86 AS col1, + CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) AS col1
----
155
1

query II rowsort
SELECT ( + + 73 ) + - - 64 * - 28 * + ( - 99 ) * - - 85 AS col1, + 51
----
15079753
51

query I rowsort
SELECT ( 39 ) * ( ( + ( - 60 ) ) ) * 27 AS col0
----
-63180

query I rowsort
SELECT DISTINCT 57 * 67 col1
----
3819

query II rowsort
SELECT DISTINCT 74 * - 95 + + 11 + - - 31 * 8 + - 88 + - 64 AS col1, + 4 AS col0
----
-6923
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL 49 * + - 36 + + - NULLIF ( MAX( DISTINCT + - 51 ), + 77 )
----
-1713

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL 49 * + - 36 + + - NULLIF ( MAX ( DISTINCT + - 51 ), + 77 )
----
-1713

query I rowsort
SELECT DISTINCT - 60 * 70 AS col0
----
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT + - 96 * 98 * COUNT( ALL + ( - 31 ) ) * 92 * + 67 + - 78 col1
----
-57990990

skipif mysql # not compatible
query I rowsort label-3262
SELECT + - 96 * 98 * COUNT ( ALL + ( - 31 ) ) * 92 * + 67 + - 78 col1
----
-57990990

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL + 17 * - + 77 + 73 + + SUM( + 16 )
----
-1220

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + 17 * - + 77 + 73 + + SUM ( + 16 )
----
-1220

query I rowsort
SELECT + + 22 * + + 85 + + 77
----
1947

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT NULLIF ( + 77, ( + 37 ) ) * - 12 + 36 + - - 69 * + NULLIF ( 92, 82 - + + COUNT( * ) ) + - 20 * - 15
----
5760

skipif mysql # not compatible
query I rowsort label-3265
SELECT NULLIF ( + 77, ( + 37 ) ) * - 12 + 36 + - - 69 * + NULLIF ( 92, 82 - + + COUNT ( * ) ) + - 20 * - 15
----
5760

onlyif mysql # aggregate syntax: 
query II rowsort label-3266
SELECT DISTINCT 67 + - + 94, + 28 / + NULLIF ( + + CASE MAX( ALL - 75 ) WHEN 1 THEN 50 ELSE NULL END, + + 59 ) AS col0
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-3266
SELECT DISTINCT 67 + - + 94, + 28 / + NULLIF ( + + CASE MAX ( ALL - 75 ) WHEN 1 THEN 50 ELSE NULL END, + + 59 ) AS col0
----
-27
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT ALL - - 46 + 30 AS col1, - SUM( DISTINCT + 22 )
----
76
-22

skipif mysql # not compatible
query II rowsort label-3267
SELECT ALL - - 46 + 30 AS col1, - SUM ( DISTINCT + 22 )
----
76
-22

query I rowsort
SELECT - - 67 + + NULLIF ( + 37, 7 + + 40 ) * + 11
----
474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3269
SELECT DISTINCT - 3 + COALESCE ( - COUNT( * ), + COUNT( * ) ) DIV - 35 * 84 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT - 3 + COALESCE ( - COUNT ( * ), + COUNT ( * ) ) / - 35 * 84 AS col1
----
-3

query I rowsort
SELECT DISTINCT + 33 + + + 17 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT ALL 38 + + CASE MIN( - 41 ) WHEN - 14 THEN - 53 WHEN ( - NULLIF ( + + 1, ( - 58 ) ) ) THEN NULL WHEN - + 16 THEN + 97 ELSE NULL END * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL 38 + + CASE MIN ( - 41 ) WHEN - 14 THEN - 53 WHEN ( - NULLIF ( + + 1, ( - 58 ) ) ) THEN NULL WHEN - + 16 THEN + 97 ELSE NULL END * - 32
----
NULL

query I rowsort
SELECT ALL + 11 * - - NULLIF ( - 98, + 93 )
----
-1078

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3273
SELECT DISTINCT + - NULLIF ( + - CAST( NULL AS DECIMAL ), - - 70 ) * - - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + - NULLIF ( + - CAST ( NULL AS REAL ), - - 70 ) * - - 65 AS col1
----
NULL

query I rowsort
SELECT - + 40 * + + 9 AS col0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT - MAX( DISTINCT - 75 ) * - CASE - - 99 WHEN 92 THEN - ( - - 79 ) * - 11 * 77 + - + COUNT( * ) WHEN + + 69 THEN NULL END + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT - MAX ( DISTINCT - 75 ) * - CASE - - 99 WHEN 92 THEN - ( - - 79 ) * - 11 * 77 + - + COUNT ( * ) WHEN + + 69 THEN NULL END + + 30
----
NULL

query I rowsort
SELECT ALL - 59 - 76 AS col2
----
-135

query I rowsort
SELECT - + 96 * 50 AS col0
----
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL CAST( NULL AS SIGNED ) * - - 68 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL CAST ( NULL AS INTEGER ) * - - 68 * 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3279
SELECT - ( + 18 ) - - NULLIF ( - 67, COUNT( * ) / 75 * - - COALESCE ( - CAST( - - 65 AS SIGNED ), - 65 ) + + 42 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3279
SELECT - ( + 18 ) - - NULLIF ( - 67, COUNT ( * ) / 75 * - - COALESCE ( - CAST ( - - 65 AS INTEGER ), - 65 ) + + 42 ) AS col0
----
-85

query I rowsort
SELECT ALL + 82 / - ( - CASE + + ( 1 ) WHEN - - 21 THEN + ( 23 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL + MAX( DISTINCT + 13 ) * + - 3 * 35 AS col0
----
-1365

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL + MAX ( DISTINCT + 13 ) * + - 3 * 35 AS col0
----
-1365

query II rowsort
SELECT DISTINCT 49 AS col2, + 79 AS col2
----
49
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT ALL - 83 DIV - 18
----
4

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - 83 / - 18
----
4

query I rowsort
SELECT - 34 + 28
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT + 40 - + 31 DIV + 14 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3285
SELECT + 40 - + 31 / + 14 AS col1
----
38

query II rowsort
SELECT 26, 42 * 47 AS col2
----
26
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT - COALESCE ( - COUNT( * ), 47 ) + + 31 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3287
SELECT - COALESCE ( - COUNT ( * ), 47 ) + + 31 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3288
SELECT 64 AS col0, - CAST( + 51 AS SIGNED )
----
64
-51

skipif mysql # not compatible
query II rowsort label-3288
SELECT 64 AS col0, - CAST ( + 51 AS INTEGER )
----
64
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL + 93 * COALESCE ( + - COUNT( * ), + 96 * 92, + ( ( + 64 ) ) + + + 44 )
----
-93

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + 93 * COALESCE ( + - COUNT ( * ), + 96 * 92, + ( ( + 64 ) ) + + + 44 )
----
-93

query I rowsort
SELECT + 34 * + 84
----
2856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3291
SELECT ALL ( MAX( ALL + 13 ) ) DIV COUNT( * ) + + 62 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL ( MAX ( ALL + 13 ) ) / COUNT ( * ) + + 62 AS col2
----
75

query II rowsort
SELECT DISTINCT + 65 col1, - 58
----
65
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL - 68 / 49 / + 30 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - 68 / 49 / + 30 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT ALL + MAX( + 3 ) * 32
----
96

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + MAX ( + 3 ) * 32
----
96

query I rowsort
SELECT + 98 * 13
----
1274

query I rowsort
SELECT + 57 + - 52
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT DISTINCT + CAST( + 31 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT + CAST ( + 31 AS INTEGER )
----
31

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

query I rowsort
SELECT - COALESCE ( 34, + 5 ) * + 96
----
-3264

query I rowsort
SELECT + 73 * 26
----
1898

query II rowsort
SELECT + 14 col0, - 90 AS col1
----
14
-90

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

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

query I rowsort
SELECT ALL 60 * 97 AS col0
----
5820

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

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

query I rowsort
SELECT + - 10 * - 34 * - + 61 * + + 17 AS col1
----
-352580

query I rowsort
SELECT ALL 27 * + 54 * + 37
----
53946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3307
SELECT ALL - 90 * + CASE - 15 WHEN - + CAST( NULL AS SIGNED ) - + 16 THEN NULL WHEN + 56 - - MIN( + - 29 ) THEN NULL ELSE 0 * - 0 + - COUNT( * ) END - + 91
----
-1

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - 90 * + CASE - 15 WHEN - + CAST ( NULL AS INTEGER ) - + 16 THEN NULL WHEN + 56 - - MIN ( + - 29 ) THEN NULL ELSE 0 * - 0 + - COUNT ( * ) END - + 91
----
-1

query I rowsort
SELECT DISTINCT 45 * 12 AS col2
----
540

query I rowsort
SELECT + + 49 + 76 AS col1
----
125

query I rowsort
SELECT + CASE 49 WHEN + + 73 - + - 79 + - AVG ( DISTINCT + 29 ) * - - 97 + - + 66 + - - 81 THEN ( - + COALESCE ( 53, - + 80, + 40 ) ) END - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT ALL + + COUNT( ALL + + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + + COUNT ( ALL + + 47 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT 74 * - 67 + 39 * - + COALESCE ( - COUNT( * ), + - 59 ) * - - 47 * + 60 + - COUNT( * ) + 87 + 13 * + NULLIF ( + - COUNT( * ), + 37 ) AS col1
----
105095

skipif mysql # not compatible
query I rowsort label-3312
SELECT 74 * - 67 + 39 * - + COALESCE ( - COUNT ( * ), + - 59 ) * - - 47 * + 60 + - COUNT ( * ) + 87 + 13 * + NULLIF ( + - COUNT ( * ), + 37 ) AS col1
----
105095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT - 2 - 24 + + - 9 + - CASE - + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) WHEN 33 THEN + 76 * + ( 10 ) * - - 95 + - - 3 + - 85 END + - 16 * CASE 5 * - 16 WHEN + COUNT( * ) THEN COUNT( * ) / + ( SUM( - 22 ) ) + + 77 * + 61 WHEN - COUNT( * ) THEN 73 / 3 ELSE - CAST( + COUNT( * ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT - 2 - 24 + + - 9 + - CASE - + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN 33 THEN + 76 * + ( 10 ) * - - 95 + - - 3 + - 85 END + - 16 * CASE 5 * - 16 WHEN + COUNT ( * ) THEN COUNT ( * ) / + ( SUM ( - 22 ) ) + + 77 * + 61 WHEN - COUNT ( * ) THEN 73 / 3 ELSE - CAST ( + COUNT ( * ) AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT ALL CAST( NULL AS SIGNED ) * - + 0 + 58 - + COUNT( * ) + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL CAST ( NULL AS INTEGER ) * - + 0 + 58 - + COUNT ( * ) + - 64
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3316
SELECT - COUNT( ALL - 64 ) + - - 14 col2
----
13

skipif mysql # not compatible
query I rowsort label-3316
SELECT - COUNT ( ALL - 64 ) + - - 14 col2
----
13

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

query I rowsort
SELECT ALL 53 * + 90 * + 70 AS col2
----
333900

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

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

query I rowsort
SELECT - 40 + - + 74 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + 11 * COUNT( + - 74 )
----
11

skipif mysql # not compatible
query I rowsort label-3321
SELECT + 11 * COUNT ( + - 74 )
----
11

query I rowsort
SELECT - 17 + + 96
----
79

query I rowsort
SELECT ALL ( 64 ) AS col0
----
64

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

query I rowsort
SELECT ALL 93 + - + 23
----
70

query I rowsort
SELECT ALL + 88 + - 67
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL - NULLIF ( + MAX( ( + 22 ) ), - 69 / + NULLIF ( + 89, 56 ) ) + ( + + 96 )
----
74

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL - NULLIF ( + MAX ( ( + 22 ) ), - 69 / + NULLIF ( + 89, 56 ) ) + ( + + 96 )
----
74

query I rowsort
SELECT - 81 * + + 65
----
-5265

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

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL NULLIF ( + - COUNT ( * ), - 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT DISTINCT CASE - + 88 WHEN + COUNT( ALL - 65 ) THEN - + ( + 54 ) ELSE + - 81 * - 52 * - - 62 - - 89 END
----
261233

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT CASE - + 88 WHEN + COUNT ( ALL - 65 ) THEN - + ( + 54 ) ELSE + - 81 * - 52 * - - 62 - - 89 END
----
261233

query I rowsort
SELECT DISTINCT - 16 + + 24
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT - 43 / CASE + + 53 WHEN + COUNT( * ) THEN NULL WHEN + - 64 THEN - + 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - 43 / CASE + + 53 WHEN + COUNT ( * ) THEN NULL WHEN + - 64 THEN - + 48 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 34 + - 87 * - 80 col1
----
6926

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT - COALESCE ( - COUNT( * ), + MIN( ALL - 12 ) ) + + + 5
----
6

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + MIN ( ALL - 12 ) ) + + + 5
----
6

query I rowsort
SELECT ALL + 11 * - + 71
----
-781

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3336
SELECT DISTINCT + 67 + + COUNT( ALL + + CAST( NULLIF ( - 16, ( + 39 ) ) AS SIGNED ) )
----
68

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT + 67 + + COUNT ( ALL + + CAST ( NULLIF ( - 16, ( + 39 ) ) AS INTEGER ) )
----
68

query II rowsort
SELECT DISTINCT - - 62 + - 45 AS col1, + 21 * - 61 + - 27 AS col2
----
17
-1308

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

query I rowsort
SELECT + 37 + + 76 AS col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT ALL - 33 - - - 97 + NULLIF ( + ( COUNT( * ) ), + 44 )
----
-129

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL - 33 - - - 97 + NULLIF ( + ( COUNT ( * ) ), + 44 )
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3341
SELECT DISTINCT - 17 * - 16, NULLIF ( 77, MIN( - 59 ) * - 45 / + SUM( - + 24 ) ) + - CAST( - 40 AS SIGNED ) * + + 44 / CASE 93 WHEN - 28 THEN + 12 ELSE NULL END + - CAST( NULL AS SIGNED ) AS col2
----
272
NULL

skipif mysql # not compatible
query II rowsort label-3341
SELECT DISTINCT - 17 * - 16, NULLIF ( 77, MIN ( - 59 ) * - 45 / + SUM ( - + 24 ) ) + - CAST ( - 40 AS INTEGER ) * + + 44 / CASE 93 WHEN - 28 THEN + 12 ELSE NULL END + - CAST ( NULL AS INTEGER ) AS col2
----
272
NULL

query II rowsort
SELECT ALL - + ( 24 ) col0, - 14 AS col1
----
-24
-14

query I rowsort
SELECT DISTINCT + 26 - ( - 57 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT 6 * - + 7 DIV + ( + ( + 57 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT 6 * - + 7 / + ( + ( + 57 ) ) AS col2
----
0

query I rowsort
SELECT 36 + 62 + - 27 * + 95
----
-2467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT + 39 / + ( + - 95 ) + + + NULLIF ( + + 61, - 88 ) + + 33 + - 9 / - 46 * + 76 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT + 39 / + ( + - 95 ) + + + NULLIF ( + + 61, - 88 ) + + 33 + - 9 / - 46 * + 76 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT DISTINCT - + 57 DIV + 46 - + 13 + - 30 * - NULLIF ( 60, + 43 ) AS col0
----
1786

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT - + 57 / + 46 - + 13 + - 30 * - NULLIF ( 60, + 43 ) AS col0
----
1786

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

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

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

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - ( + 86 ) * - + COUNT ( * ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3350
SELECT DISTINCT NULLIF ( COUNT( ALL CAST( + 86 AS SIGNED ) ), + - MAX( - 50 ) ) * + 48, + 29 + 98 AS col1
----
48
127

skipif mysql # not compatible
query II rowsort label-3350
SELECT DISTINCT NULLIF ( COUNT ( ALL CAST ( + 86 AS INTEGER ) ), + - MAX ( - 50 ) ) * + 48, + 29 + 98 AS col1
----
48
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ( + MAX( DISTINCT - 57 ) ) * COUNT( * ) - + + 9 col2
----
-66

skipif mysql # not compatible
query I rowsort label-3351
SELECT ( + MAX ( DISTINCT - 57 ) ) * COUNT ( * ) - + + 9 col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT COUNT( * ) * 63 - ( + 42 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3352
SELECT COUNT ( * ) * 63 - ( + 42 ) AS col0
----
21

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

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

query I rowsort
SELECT DISTINCT 88 + + + 42 * + 86 * - + 1 AS col1
----
-3524

query I rowsort
SELECT 91 * - + 75 AS col1
----
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT ALL 93 + 87 + 52 + 24 - + 17 DIV + 92
----
256

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL 93 + 87 + 52 + 24 - + 17 / + 92
----
256

query I rowsort
SELECT DISTINCT 52 + + 2 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT ALL + COALESCE ( - - 58, + 29, + + COUNT( * ) * + 7 + - 96 ) + + 99 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL + COALESCE ( - - 58, + 29, + + COUNT ( * ) * + 7 + - 96 ) + + 99 AS col2
----
157

query I rowsort
SELECT DISTINCT - 48 + - 14
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3360
SELECT - 66, NULLIF ( + 45, - 9 * - MAX( - - 93 ) - - - 58 - + CAST( NULL AS SIGNED ) + 58 * 31 + + 40 - + - 25 * 26 * + COUNT( * ) ) AS col0
----
-66
45

skipif mysql # not compatible
query II rowsort label-3360
SELECT - 66, NULLIF ( + 45, - 9 * - MAX ( - - 93 ) - - - 58 - + CAST ( NULL AS INTEGER ) + 58 * 31 + + 40 - + - 25 * 26 * + COUNT ( * ) ) AS col0
----
-66
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT DISTINCT COUNT( * ) + + - 8 + - 14 * + - SUM( 34 ) + + - 4 AS col1
----
465

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT COUNT ( * ) + + - 8 + - 14 * + - SUM ( 34 ) + + - 4 AS col1
----
465

query I rowsort
SELECT 7 + + 71 AS col0
----
78

query I rowsort
SELECT 42 - + 90 - - + ( + 42 ) col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL - 30 * - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL - 30 * - COUNT ( * ) AS col1
----
30

query I rowsort
SELECT DISTINCT 77 - + 14 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT - MIN( + 76 ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - MIN ( + 76 ) col2
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL + COUNT( * ) * - 58 * 17
----
-986

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + COUNT ( * ) * - 58 * 17
----
-986

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT ALL + - 60 DIV - ( + - 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + - 60 / - ( + - 55 ) AS col0
----
-1

query I rowsort
SELECT - + 75 * + 84 + + 12 + - 75
----
-6363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3371
SELECT 85 * - 4 + - 80 * + 72 * - + COALESCE ( + - NULLIF ( 41, + - 45 + + COUNT( * ) * ( - 85 ) + - - COUNT( * ) ), - + 99 * - CAST( + 69 AS SIGNED ), - 23 ) AS col1
----
-236500

skipif mysql # not compatible
query I rowsort label-3371
SELECT 85 * - 4 + - 80 * + 72 * - + COALESCE ( + - NULLIF ( 41, + - 45 + + COUNT ( * ) * ( - 85 ) + - - COUNT ( * ) ), - + 99 * - CAST ( + 69 AS INTEGER ), - 23 ) AS col1
----
-236500

query I rowsort
SELECT + NULLIF ( - - 48, + + 56 )
----
48

query I rowsort
SELECT DISTINCT - - 22 * - 54
----
-1188

query I rowsort
SELECT + 28 * + 95 + + + 84 + + 52
----
2796

query I rowsort
SELECT ALL - ( - + 3 ) * - 15 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT - 37 - + 26 * - 33 * - - COUNT( * ) AS col2
----
821

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 37 - + 26 * - 33 * - - COUNT ( * ) AS col2
----
821

query I rowsort
SELECT DISTINCT - + 55 * - 35 AS col0
----
1925

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3378
SELECT ALL - + CAST( NULL AS SIGNED ) col0, - 77 + 44 + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3378
SELECT ALL - + CAST ( NULL AS INTEGER ) col0, - 77 + 44 + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT ALL - 28 * - 18 - 58 DIV + 19
----
501

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - 28 * - 18 - 58 / + 19
----
501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT 31 * - - 15 + - CASE ( - + CAST( + + COUNT( * ) AS SIGNED ) ) WHEN COUNT( * ) THEN CAST( NULL AS SIGNED ) WHEN 29 + - 71 THEN - 23 - - - 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT 31 * - - 15 + - CASE ( - + CAST ( + + COUNT ( * ) AS INTEGER ) ) WHEN COUNT ( * ) THEN CAST ( NULL AS INTEGER ) WHEN 29 + - 71 THEN - 23 - - - 32 END AS col0
----
NULL

query I rowsort
SELECT ALL - + 80 * - 8 + - + 28 AS col0
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL + 37 + + + MIN( DISTINCT + 26 ) - - 7 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL + 37 + + + MIN ( DISTINCT + 26 ) - - 7 AS col0
----
70

query II rowsort
SELECT 8 - - 82 + + 41 - + 6 + + 71 + + + 30 * + 26 AS col0, + 2 AS col2
----
976
2

query II rowsort
SELECT 42 AS col1, 88 * 60 + + - 80 AS col0
----
42
5200

query II rowsort
SELECT 44 col0, + NULLIF ( + 5, 42 ) AS col0
----
44
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT ALL MAX( ALL 85 ) + + 87 / + CAST( NULL AS SIGNED ) / + + 60 * COUNT( + 45 ) / + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL MAX ( ALL 85 ) + + 87 / + CAST ( NULL AS INTEGER ) / + + 60 * COUNT ( + 45 ) / + 13
----
NULL

query I rowsort
SELECT 98 + + 60 col2
----
158

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3388
SELECT ALL + 61 DIV + 90 AS col0, 21 DIV + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3388
SELECT ALL + 61 / + 90 AS col0, 21 / + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT ALL NULLIF ( 25, + + 93 ) AS col1
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-3390
SELECT ALL 9 col1, + 23 DIV + + 31 AS col1
----
9
0

skipif mysql # not compatible
query II rowsort label-3390
SELECT ALL 9 col1, + 23 / + + 31 AS col1
----
9
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3391
SELECT - COUNT( * ), - 6 DIV 53 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-3391
SELECT - COUNT ( * ), - 6 / 53 AS col1
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT + 75 * + + COALESCE ( - 18, + COUNT( * ) ), - ( - 68 ) + NULLIF ( + ( + + MIN( + 96 ) ), + NULLIF ( 56, - + 4 ) + + + 38 * + AVG ( - 70 ) * + COUNT( * ) ) + - MAX( ALL ( 15 ) ) * - 12 AS col2
----
-1350
344

skipif mysql # not compatible
query II rowsort label-3392
SELECT + 75 * + + COALESCE ( - 18, + COUNT ( * ) ), - ( - 68 ) + NULLIF ( + ( + + MIN ( + 96 ) ), + NULLIF ( 56, - + 4 ) + + + 38 * + AVG ( - 70 ) * + COUNT ( * ) ) + - MAX ( ALL ( 15 ) ) * - 12 AS col2
----
-1350
344

query I rowsort
SELECT + 34 + + 13 AS col0
----
47

query I rowsort
SELECT ALL 39 + - 77 + 23
----
-15

query II rowsort
SELECT - 18 AS col1, - 67 col2
----
-18
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3396
SELECT + 22 DIV + - SUM( ALL - - COALESCE ( 79, + + 41 ) ) * - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3396
SELECT + 22 / + - SUM ( ALL - - COALESCE ( 79, + + 41 ) ) * - 35 AS col0
----
0

query II rowsort
SELECT ALL 74 AS col2, 10 AS col2
----
74
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + 39 * + - MAX( 51 ) * - 50 AS col1
----
99450

skipif mysql # not compatible
query I rowsort label-3398
SELECT + 39 * + - MAX ( 51 ) * - 50 AS col1
----
99450

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT + 4 + + 46 * + - SUM( - 26 ) * + - COUNT( * )
----
-1192

skipif mysql # not compatible
query I rowsort label-3399
SELECT + 4 + + 46 * + - SUM ( - 26 ) * + - COUNT ( * )
----
-1192

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT ALL CAST( + 51 AS SIGNED ) - 93 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL CAST ( + 51 AS INTEGER ) - 93 AS col1
----
-42

query II rowsort
SELECT ALL 85 col0, + 76 * + 16
----
85
1216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT - CAST( - 22 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - CAST ( - 22 AS INTEGER ) AS col0
----
22

query I rowsort
SELECT + 10 * 14 col2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL - COUNT( * ) * + 86 * + 62
----
-5332

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - COUNT ( * ) * + 86 * + 62
----
-5332

query I rowsort
SELECT COALESCE ( - 43, 4 ) AS col2
----
-43

query II rowsort
SELECT ALL + 63 AS col1, 21 + + + 74
----
63
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3408
SELECT 38 AS col1, COUNT( * ) + 74
----
38
75

skipif mysql # not compatible
query II rowsort label-3408
SELECT 38 AS col1, COUNT ( * ) + 74
----
38
75

query I rowsort
SELECT + - 37 + - 64 AS col1
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3410
SELECT + COUNT( * ) DIV - - 27 + + 30 * ( - ( COALESCE ( - NULLIF ( - SUM( DISTINCT + 71 ), + 55 ), + 27 DIV - 67 * + + ( 54 ) - + 78 ) ) )
----
-2130

skipif mysql # not compatible
query I rowsort label-3410
SELECT + COUNT ( * ) / - - 27 + + 30 * ( - ( COALESCE ( - NULLIF ( - SUM ( DISTINCT + 71 ), + 55 ), + 27 / - 67 * + + ( 54 ) - + 78 ) ) )
----
-2130

query I rowsort
SELECT - NULLIF ( - COALESCE ( - 77, 87 + - 87 * + 69 ), - 11 * + 53 ) col1
----
-77

query II rowsort
SELECT ALL + 86, 33 * + 17 col1
----
86
561

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

skipif mysql # not compatible
query I rowsort label-3413
SELECT + - SUM ( + 38 )
----
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT 91 * - - COUNT( * ) + - 16 * - + 64
----
1115

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT 91 * - - COUNT ( * ) + - 16 * - + 64
----
1115

onlyif mysql # aggregate syntax: 
query II rowsort label-3416
SELECT DISTINCT + + COUNT( + 99 ), + 90 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-3416
SELECT DISTINCT + + COUNT ( + 99 ), + 90 AS col1
----
1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT DISTINCT - ( + 66 ) * + 23 * + 8 / - CASE + 52 WHEN + + 1 - + CASE + - 61 WHEN + 0 * + - 81 * - ( - 40 ) THEN NULL WHEN - - 11 * - 92 THEN 92 * MAX( ALL 22 * - 41 ) WHEN + COALESCE ( + 83, - 3 ) + 74 * - 71 THEN 55 ELSE NULL END THEN 77 * - 97 WHEN 28 THEN - 5 WHEN + ( + 22 ) + 80 * 48 THEN NULL END + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT - ( + 66 ) * + 23 * + 8 / - CASE + 52 WHEN + + 1 - + CASE + - 61 WHEN + 0 * + - 81 * - ( - 40 ) THEN NULL WHEN - - 11 * - 92 THEN 92 * MAX ( ALL 22 * - 41 ) WHEN + COALESCE ( + 83, - 3 ) + 74 * - 71 THEN 55 ELSE NULL END THEN 77 * - 97 WHEN 28 THEN - 5 WHEN + ( + 22 ) + 80 * 48 THEN NULL END + - 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT ALL 40 * + 35 + + COUNT( * ) + - COUNT( * )
----
1400

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL 40 * + 35 + + COUNT ( * ) + - COUNT ( * )
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT + CASE 30 WHEN + - 78 THEN NULL WHEN + AVG ( DISTINCT + ( - COALESCE ( - + 13, + 49 ) ) ) THEN NULL WHEN - COUNT( * ) THEN 28 ELSE - + ( - + NULLIF ( - - COUNT( * ), + 70 ) ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3419
SELECT + CASE 30 WHEN + - 78 THEN NULL WHEN + AVG ( DISTINCT + ( - COALESCE ( - + 13, + 49 ) ) ) THEN NULL WHEN - COUNT ( * ) THEN 28 ELSE - + ( - + NULLIF ( - - COUNT ( * ), + 70 ) ) END AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3420
SELECT + COUNT( * ) * NULLIF ( + 45, - + COUNT( + 33 ) ) + + - 70 + - 24 * + + 31 * CAST( - 4 AS SIGNED ) - - - 34 + CAST( NULL AS SIGNED ) + 2 + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3420
SELECT + COUNT ( * ) * NULLIF ( + 45, - + COUNT ( + 33 ) ) + + - 70 + - 24 * + + 31 * CAST ( - 4 AS INTEGER ) - - - 34 + CAST ( NULL AS INTEGER ) + 2 + - 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3421
SELECT ALL MIN( DISTINCT - 84 ) * CAST( NULL AS SIGNED ) / + 94 + + - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL MIN ( DISTINCT - 84 ) * CAST ( NULL AS INTEGER ) / + 94 + + - 88 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3422
SELECT + - 85 / + - CAST( NULL AS SIGNED ) * + 49 * + 86 AS col2, - 85 * - 27 * - 50 AS col1
----
NULL
-114750

skipif mysql # not compatible
query II rowsort label-3422
SELECT + - 85 / + - CAST ( NULL AS INTEGER ) * + 49 * + 86 AS col2, - 85 * - 27 * - 50 AS col1
----
NULL
-114750

onlyif mysql # aggregate syntax: 
query II rowsort label-3423
SELECT - ( + - 86 ) * - + COALESCE ( 83, - 70 ) + + - COUNT( ALL + + 16 ) + - 50 + + + 85 + - + 37 * - + 84 AS col2, 32 AS col0
----
-3996
32

skipif mysql # not compatible
query II rowsort label-3423
SELECT - ( + - 86 ) * - + COALESCE ( 83, - 70 ) + + - COUNT ( ALL + + 16 ) + - 50 + + + 85 + - + 37 * - + 84 AS col2, 32 AS col0
----
-3996
32

query I rowsort
SELECT - 18 + + + 40
----
22

query I rowsort
SELECT ALL - 8 * 5 + - 43
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT ALL - 58 * + - COALESCE ( - - 77, + COUNT( * ) ) + - + MIN( DISTINCT - CASE + - 33 WHEN + + 54 THEN + 45 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL - 58 * + - COALESCE ( - - 77, + COUNT ( * ) ) + - + MIN ( DISTINCT - CASE + - 33 WHEN + + 54 THEN + 45 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT 80 * + 61 + + - ( - 45 )
----
4925

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3429
SELECT - 51 * + - 96, MAX( DISTINCT - 46 ) col2
----
4896
-46

skipif mysql # not compatible
query II rowsort label-3429
SELECT - 51 * + - 96, MAX ( DISTINCT - 46 ) col2
----
4896
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT - NULLIF ( + 44, + ( + 17 ) * COUNT( * ) + + + COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-3432
SELECT - NULLIF ( + 44, + ( + 17 ) * COUNT ( * ) + + + COUNT ( * ) )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3433
SELECT - 16 * - + CAST( NULL AS SIGNED ) AS col1, 86 * - + 38 * + SUM( DISTINCT 49 ) AS col0
----
NULL
-160132

skipif mysql # not compatible
query II rowsort label-3433
SELECT - 16 * - + CAST ( NULL AS INTEGER ) AS col1, 86 * - + 38 * + SUM ( DISTINCT 49 ) AS col0
----
NULL
-160132

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

query I rowsort
SELECT ALL ( COALESCE ( + + 24, - 87, 30 ) ) col1
----
24

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

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

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

query I rowsort
SELECT ALL 80 * + - 58
----
-4640

query I rowsort
SELECT + - 52 * + 55 col0
----
-2860

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT + 46 * - MIN( - - 60 )
----
-2760

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT + 46 * - MIN ( - - 60 )
----
-2760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT + CASE + ( - - 28 ) WHEN + + COUNT( * ) THEN + - 22 * 51 * + 89 + 21 WHEN - 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT + CASE + ( - - 28 ) WHEN + + COUNT ( * ) THEN + - 22 * 51 * + 89 + 21 WHEN - 97 THEN NULL END
----
NULL

query II rowsort
SELECT - - 7 + - + 56, 5 AS col1
----
-49
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT + - 2 DIV 64 * - 53 + + + 47 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3444
SELECT + - 2 / 64 * - 53 + + + 47 AS col0
----
47

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

query I rowsort
SELECT - 69 * + 39 AS col2
----
-2691

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - + NULLIF ( 55, + 71 * + + 38 ) + COALESCE ( + MIN( - 1 ), - 22 * + - ( - 19 ) * - 36 + - 68 + - + COUNT( * ) + ( - 54 ) ) + - - 53 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3447
SELECT - + NULLIF ( 55, + 71 * + + 38 ) + COALESCE ( + MIN ( - 1 ), - 22 * + - ( - 19 ) * - 36 + - 68 + - + COUNT ( * ) + ( - 54 ) ) + - - 53 AS col1
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3450
SELECT DISTINCT + 44 DIV - - 37 + + 89 + + 1 + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT + 44 / - - 37 + + 89 + + 1 + + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT ALL 38 DIV - 98 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL 38 / - 98 + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + 55 * + + 78 + + + 32 * + + 27
----
5154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3453
SELECT - COUNT( * ) DIV 24 + ( NULLIF ( - 71, - + 26 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3453
SELECT - COUNT ( * ) / 24 + ( NULLIF ( - 71, - + 26 ) ) AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT - 82 DIV 12 * + ( - - 52 ) AS col2
----
-312

skipif mysql # not compatible
query I rowsort label-3454
SELECT - 82 / 12 * + ( - - 52 ) AS col2
----
-312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3455
SELECT ALL - - 68 DIV COUNT( * ) + + 83 col1
----
151

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - - 68 / COUNT ( * ) + + 83 col1
----
151

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3456
SELECT + CAST( NULL AS DECIMAL ) - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3456
SELECT + CAST ( NULL AS REAL ) - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT + COUNT( * ) - 41 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3457
SELECT + COUNT ( * ) - 41 AS col1
----
-40

query I rowsort
SELECT + 64 * - - 92 * + - 36
----
-211968

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL MIN( + ( 6 ) ) * ( + + 78 )
----
468

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL MIN ( + ( 6 ) ) * ( + + 78 )
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT - ( COUNT( * ) ) * COUNT( * ) + - - 47 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3460
SELECT - ( COUNT ( * ) ) * COUNT ( * ) + - - 47 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3461
SELECT ALL - MIN( + + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL - MIN ( + + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3462
SELECT DISTINCT + 89 DIV COUNT( * ) * + + 91 AS col1
----
8099

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + 89 / COUNT ( * ) * + + 91 AS col1
----
8099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT SUM( + 69 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT SUM ( + 69 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3464
SELECT 97 + COUNT( * ) - CAST( COUNT( * ) AS SIGNED ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3464
SELECT 97 + COUNT ( * ) - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
97

query I rowsort
SELECT 33 - 26 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3466
SELECT ALL - MAX( + 58 ) DIV MAX( ALL + 62 ), 70 DIV ( + 9 ) AS col2
----
0
7

skipif mysql # not compatible
query II rowsort label-3466
SELECT ALL - MAX ( + 58 ) / MAX ( ALL + 62 ), 70 / ( + 9 ) AS col2
----
0
7

query I rowsort
SELECT - 6 * - 72 + 85 AS col1
----
517

query I rowsort
SELECT 42 - 73 + + 10
----
-21

query II rowsort
SELECT - 63, 32 AS col2
----
-63
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT 16 + - AVG ( + 93 ) + 83 + 1 * - 37 * - ( 31 ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT 16 + - AVG ( + 93 ) + 83 + 1 * - 37 * - ( 31 ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT 7 * - 57 + - - 58, SUM( DISTINCT + + 34 ) AS col1
----
-341
34

skipif mysql # not compatible
query II rowsort label-3471
SELECT 7 * - 57 + - - 58, SUM ( DISTINCT + + 34 ) AS col1
----
-341
34

query II rowsort
SELECT ALL - 71 * 26 * - 13 * + 49, 41 * + - 9 * + + ( + 39 ) * NULLIF ( - 15, - 80 ) col1
----
1175902
215865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3473
SELECT DISTINCT + ( + - MAX( + CAST( NULL AS SIGNED ) ) ) * + 82 + - + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + ( + - MAX ( + CAST ( NULL AS INTEGER ) ) ) * + 82 + - + 32
----
NULL

query II rowsort
SELECT ALL 70 AS col0, 21 AS col0
----
70
21

query I rowsort
SELECT ALL + 99 * - + 80 AS col1
----
-7920

query II rowsort
SELECT DISTINCT + 26 * ( - 37 ) AS col0, - 2 * 86
----
-962
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT 51 + + + 90 + - COUNT( * ) * + 82 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3477
SELECT 51 + + + 90 + - COUNT ( * ) * + 82 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT ALL + COALESCE ( - 12, - CAST( + + 21 AS SIGNED ) ) * - + 48
----
576

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL + COALESCE ( - 12, - CAST ( + + 21 AS INTEGER ) ) * - + 48
----
576

onlyif mysql # aggregate syntax: 
query II rowsort label-3479
SELECT ALL 79 AS col1, SUM( 64 )
----
79
64

skipif mysql # not compatible
query II rowsort label-3479
SELECT ALL 79 AS col1, SUM ( 64 )
----
79
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT COUNT( * ) + ( - - 41 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3480
SELECT COUNT ( * ) + ( - - 41 ) AS col1
----
42

query II rowsort
SELECT - 6, + ( - 14 ) AS col1
----
-6
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT 80 + - COUNT( * ) - - - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3482
SELECT 80 + - COUNT ( * ) - - - COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT COUNT( * ) * - 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3483
SELECT COUNT ( * ) * - 56 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT + + 40 + + - 55 - - COUNT( - 5 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT + + 40 + + - 55 - - COUNT ( - 5 ) col2
----
-14

query I rowsort
SELECT ALL + 85 * + 65 col0
----
5525

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ( ( + + COUNT( * ) ) ) + - 18
----
-17

skipif mysql # not compatible
query I rowsort label-3486
SELECT ( ( + + COUNT ( * ) ) ) + - 18
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3487
SELECT DISTINCT - - COALESCE ( 74, + - 33 + + 29, - - 28 ) + - + NULLIF ( - MIN( + + 42 ), - - 8 * CAST( NULL AS DECIMAL ) + + 48 + - 19 + CAST( + 65 AS SIGNED ) * - - 31 * 83 ) * COUNT( * ) col1
----
116

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT - - COALESCE ( 74, + - 33 + + 29, - - 28 ) + - + NULLIF ( - MIN ( + + 42 ), - - 8 * CAST ( NULL AS REAL ) + + 48 + - 19 + CAST ( + 65 AS INTEGER ) * - - 31 * 83 ) * COUNT ( * ) col1
----
116

query I rowsort
SELECT 36 * 61 AS col0
----
2196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT ALL - + AVG ( ALL - + 6 ) + + CASE + - AVG ( DISTINCT 34 ) WHEN - CAST( NULL AS SIGNED ) THEN 99 * + - COALESCE ( - COUNT( * ), 76, 88 ) WHEN + 50 THEN + 92 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - + AVG ( ALL - + 6 ) + + CASE + - AVG ( DISTINCT 34 ) WHEN - CAST ( NULL AS INTEGER ) THEN 99 * + - COALESCE ( - COUNT ( * ), 76, 88 ) WHEN + 50 THEN + 92 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + + 47 * 45 + - 6 - - 54 - + 89 AS col2
----
2074

query I rowsort
SELECT 59 + - + 41
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3492
SELECT DISTINCT + 33 + - ( 51 ) * + 55 + - 54 - - 33 * - 20 - COUNT( - 38 ) DIV - COUNT( * )
----
-3485

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT + 33 + - ( 51 ) * + 55 + - 54 - - 33 * - 20 - COUNT ( - 38 ) / - COUNT ( * )
----
-3485

query I rowsort
SELECT ALL 41 + 25
----
66

query I rowsort
SELECT DISTINCT - - NULLIF ( + 43, - 75 * + 95 )
----
43

query I rowsort
SELECT DISTINCT - + 31 + + - 4 AS col0
----
-35

query II rowsort
SELECT 36 * + 85, 90 AS col2
----
3060
90

query I rowsort
SELECT ALL 17 * - 74
----
-1258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3498
SELECT ALL 34 - + 83 + + ( - 92 ) * - CASE + AVG ( ALL 62 ) WHEN 53 + + 6 THEN 3 WHEN + CASE - 0 WHEN + 52 DIV 2 THEN - 60 * 77 - + COALESCE ( - + COUNT( * ), 15 ) * + 91 END * 39 THEN NULL ELSE - 94 - COUNT( * ) DIV - 60 END
----
-8697

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL 34 - + 83 + + ( - 92 ) * - CASE + AVG ( ALL 62 ) WHEN 53 + + 6 THEN 3 WHEN + CASE - 0 WHEN + 52 / 2 THEN - 60 * 77 - + COALESCE ( - + COUNT ( * ), 15 ) * + 91 END * 39 THEN NULL ELSE - 94 - COUNT ( * ) / - 60 END
----
-8697

query I rowsort
SELECT 52 + + + 28
----
80

query I rowsort
SELECT 26 * - 66
----
-1716

query I rowsort
SELECT ALL 81 * 55
----
4455

query I rowsort
SELECT DISTINCT 16 * - - 13 AS col1
----
208

query I rowsort
SELECT 51 * + 35 col1
----
1785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT 40 * 94 - + NULLIF ( + 96, 74 * - ( - CAST( NULL AS SIGNED ) ) ) + + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3504
SELECT 40 * 94 - + NULLIF ( + 96, 74 * - ( - CAST ( NULL AS INTEGER ) ) ) + + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ( - - 56 ) - + 34 col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3506
SELECT ( - COUNT( * ) ) * 42 * + ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT ( - COUNT ( * ) ) * 42 * + ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT - COUNT( * ) * - + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3507
SELECT - COUNT ( * ) * - + 79 AS col2
----
79

query I rowsort
SELECT ALL - + ( + 51 ) * + - 83
----
4233

query I rowsort
SELECT + 21 + + 38
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT ALL + COUNT( * ) + + COUNT( * ) * COUNT( * ) * COUNT( * ), MAX( + 22 ) AS col0
----
2
22

skipif mysql # not compatible
query II rowsort label-3510
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) * COUNT ( * ), MAX ( + 22 ) AS col0
----
2
22

query I rowsort
SELECT DISTINCT - + 75 * - ( - 47 )
----
-3525

query I rowsort
SELECT ALL + + 13 + 0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3513
SELECT DISTINCT COALESCE ( - COUNT( - 30 ), - 10, - 53 * 59 * - 50 * + + 78 + - + 23 + + + COALESCE ( + 62, + 7 + - - 71 * + + COUNT( * ), NULLIF ( + 48, 75 ) + 27 + + 97 ) DIV + ( COALESCE ( - ( 84 ), 20 * + 87 ) * - MIN( 65 ) ) ) + - ( - 39 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT COALESCE ( - COUNT ( - 30 ), - 10, - 53 * 59 * - 50 * + + 78 + - + 23 + + + COALESCE ( + 62, + 7 + - - 71 * + + COUNT ( * ), NULLIF ( + 48, 75 ) + 27 + + 97 ) / + ( COALESCE ( - ( 84 ), 20 * + 87 ) * - MIN ( 65 ) ) ) + - ( - 39 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT COUNT( DISTINCT + 7 ) - 56 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3514
SELECT COUNT ( DISTINCT + 7 ) - 56 AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT ALL 62 + + CASE + + CAST( + 9 AS SIGNED ) WHEN 36 THEN + COUNT( * ) WHEN + 71 + - - 5 THEN NULL END + + 97 + + + 12 * + 85 * NULLIF ( 65, - COUNT( * ) ) + + ( + NULLIF ( + COUNT( * ), - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL 62 + + CASE + + CAST ( + 9 AS INTEGER ) WHEN 36 THEN + COUNT ( * ) WHEN + 71 + - - 5 THEN NULL END + + 97 + + + 12 * + 85 * NULLIF ( 65, - COUNT ( * ) ) + + ( + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT - 45 + - 84 + 84 + + COUNT( * ) * - - 46 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3516
SELECT - 45 + - 84 + 84 + + COUNT ( * ) * - - 46 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT 54 + + 58 + - - COUNT( * ) * + + 45
----
157

skipif mysql # not compatible
query I rowsort label-3517
SELECT 54 + + 58 + - - COUNT ( * ) * + + 45
----
157

query I rowsort
SELECT + 37 * - + 14 AS col0
----
-518

query I rowsort
SELECT DISTINCT - 62 + - 10
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT ALL - - 70 + 52 AS col1, + 29 * COUNT( * ) + - + 33 * 31
----
122
-994

skipif mysql # not compatible
query II rowsort label-3520
SELECT ALL - - 70 + 52 AS col1, + 29 * COUNT ( * ) + - + 33 * 31
----
122
-994

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3521
SELECT + 95 * COUNT( * ) AS col0, 27 DIV - 80 col0
----
95
0

skipif mysql # not compatible
query II rowsort label-3521
SELECT + 95 * COUNT ( * ) AS col0, 27 / - 80 col0
----
95
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT - 4 DIV 4
----
-1

skipif mysql # not compatible
query I rowsort label-3522
SELECT - 4 / 4
----
-1

query I rowsort
SELECT DISTINCT + 79 * - + 36 * - 57 AS col2
----
162108

query I rowsort
SELECT DISTINCT + ( - 46 ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT - SUM( + 47 ) + + 60 - - - 12
----
1

skipif mysql # not compatible
query I rowsort label-3525
SELECT - SUM ( + 47 ) + + 60 - - - 12
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT ALL + CAST( 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + CAST ( 12 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + 55 * 73 * - COUNT( * ) + - + 56
----
-4071

skipif mysql # not compatible
query I rowsort label-3527
SELECT + 55 * 73 * - COUNT ( * ) + - + 56
----
-4071

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT CASE + - 9 WHEN + - 25 * + 49 / - COALESCE ( + - COUNT( * ), + ( + 84 ) * 65 * + 42 * + - 76 * - + 30 ) THEN + - 52 ELSE - 61 + + 88 + - - 87 * - - CASE + + 26 WHEN 51 + + - 66 THEN 10 END + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT CASE + - 9 WHEN + - 25 * + 49 / - COALESCE ( + - COUNT ( * ), + ( + 84 ) * 65 * + 42 * + - 76 * - + 30 ) THEN + - 52 ELSE - 61 + + 88 + - - 87 * - - CASE + + 26 WHEN 51 + + - 66 THEN 10 END + 58 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3529
SELECT 43 DIV + 47 DIV + - COUNT( ALL + - 8 ) + 1 AS col2, MAX( DISTINCT - + 16 ) - - 25
----
1
9

skipif mysql # not compatible
query II rowsort label-3529
SELECT 43 / + 47 / + - COUNT ( ALL + - 8 ) + 1 AS col2, MAX ( DISTINCT - + 16 ) - - 25
----
1
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT ALL + 78, + COUNT( * ) * + 72 AS col0
----
78
72

skipif mysql # not compatible
query II rowsort label-3530
SELECT ALL + 78, + COUNT ( * ) * + 72 AS col0
----
78
72

query I rowsort
SELECT NULLIF ( - 22, - 3 + + 11 )
----
-22

query I rowsort
SELECT ALL - 44 * - ( - 54 )
----
-2376

query I rowsort
SELECT - 16 - 98
----
-114

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3534
SELECT - 75 DIV CAST( 19 AS SIGNED ) col0, + 82 col1
----
-3
82

skipif mysql # not compatible
query II rowsort label-3534
SELECT - 75 / CAST ( 19 AS INTEGER ) col0, + 82 col1
----
-3
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT SUM( ALL + - 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3536
SELECT SUM ( ALL + - 22 ) AS col0
----
-22

query I rowsort
SELECT - 57 + - 91 col2
----
-148

query I rowsort
SELECT + 21 * 59
----
1239

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL - COUNT( - + 43 ) * - - ( - - 81 ) + + + CASE - + 66 WHEN - 59 * + 84 THEN NULL WHEN + - 6 THEN - + 33 WHEN + ( 79 ) THEN NULL END * - 74 + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL - COUNT ( - + 43 ) * - - ( - - 81 ) + + + CASE - + 66 WHEN - 59 * + 84 THEN NULL WHEN + - 6 THEN - + 33 WHEN + ( 79 ) THEN NULL END * - 74 + 8
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3540
SELECT 45 * + + 14 DIV + - COUNT( * ) + - - 54 AS col2
----
-576

skipif mysql # not compatible
query I rowsort label-3540
SELECT 45 * + + 14 / + - COUNT ( * ) + - - 54 AS col2
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3541
SELECT + 39 - + COUNT( * ) - 61 DIV 71 + + 24 - - + COUNT( * ) + + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3541
SELECT + 39 - + COUNT ( * ) - 61 / 71 + + 24 - - + COUNT ( * ) + + COUNT ( * ) AS col2
----
64

query I rowsort
SELECT - 60 * - ( 20 ) + + 70 AS col0
----
1270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3543
SELECT + ( - ( - SUM( + + 11 ) ) ) - 26 DIV - ( - 34 ) * + 93
----
11

skipif mysql # not compatible
query I rowsort label-3543
SELECT + ( - ( - SUM ( + + 11 ) ) ) - 26 / - ( - 34 ) * + 93
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT 79 * + - 13 * COALESCE ( + - 49, CASE + 46 WHEN COUNT( * ) THEN - 74 * COUNT( * ) * 68 - 90 * 0 * + 49 * 82 * 55 * + CASE - 36 WHEN - 32 * - 50 - 64 + COUNT( - 54 + - 18 * - 44 ) THEN + 45 WHEN 63 THEN NULL END WHEN + 34 THEN 53 ELSE NULL END + + COUNT( * ) ) AS col0
----
50323

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT 79 * + - 13 * COALESCE ( + - 49, CASE + 46 WHEN COUNT ( * ) THEN - 74 * COUNT ( * ) * 68 - 90 * 0 * + 49 * 82 * 55 * + CASE - 36 WHEN - 32 * - 50 - 64 + COUNT ( - 54 + - 18 * - 44 ) THEN + 45 WHEN 63 THEN NULL END WHEN + 34 THEN 53 ELSE NULL END + + COUNT ( * ) ) AS col0
----
50323

query I rowsort
SELECT + 85 * 40 AS col2
----
3400

query I rowsort
SELECT ALL - + 6 + - - 72 AS col1
----
66

query I rowsort
SELECT DISTINCT 89 + + - 34 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT + CASE 63 WHEN - 92 THEN NULL WHEN 57 * - 18 * + ( - + 20 ) / + COUNT( * ) THEN + 82 WHEN 71 / + + 97 - - + 39 THEN + 8 END + - ( + ( - 5 ) ) + - + ( + 73 ) + 44 + 79 + 10 * + 93 * - 93 * + ( 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT + CASE 63 WHEN - 92 THEN NULL WHEN 57 * - 18 * + ( - + 20 ) / + COUNT ( * ) THEN + 82 WHEN 71 / + + 97 - - + 39 THEN + 8 END + - ( + ( - 5 ) ) + - + ( + 73 ) + 44 + 79 + 10 * + 93 * - 93 * + ( 35 )
----
NULL

query I rowsort
SELECT + 76 + - NULLIF ( - 81, 45 )
----
157

query II rowsort
SELECT ALL 46 + + 16 + + 6 AS col0, NULLIF ( + + 19, - 96 )
----
68
19

query II rowsort
SELECT - + 74 col2, - 57
----
-74
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3552
SELECT + - 18 DIV + ( - - ( - 85 ) ) * 47 + - - COUNT( ALL 92 ) * - + 93 DIV - 51 + + ( 48 ) - - + COUNT( * ) * - 61, + 2 AS col1
----
-12
2

skipif mysql # not compatible
query II rowsort label-3552
SELECT + - 18 / + ( - - ( - 85 ) ) * 47 + - - COUNT ( ALL 92 ) * - + 93 / - 51 + + ( 48 ) - - + COUNT ( * ) * - 61, + 2 AS col1
----
-12
2

query I rowsort
SELECT - - 13 + - - 70 + 1 AS col1
----
84

query I rowsort
SELECT + + 2 + + ( NULLIF ( 20, + + 84 - + 15 + - 70 ) ) + - 9 * 38
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT + + COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3555
SELECT + + COUNT ( * ) * COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - + 38 + - + 93
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ALL MIN( ALL 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL MIN ( ALL 41 )
----
41

query I rowsort
SELECT DISTINCT + 74 * + + 51
----
3774

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT + 79 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT + 79 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 30 - + 71
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3561
SELECT - 1 + - 8 + CASE + CAST( + + NULLIF ( 56, ( + 44 ) + - 12 ) AS SIGNED ) WHEN + COUNT( * ) * COUNT( * ) / - - 51 + - 94 + + NULLIF ( - 9, 46 ) * 77 * + 4 THEN - + 22 WHEN - CAST( NULL AS SIGNED ) + 26 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT - 1 + - 8 + CASE + CAST ( + + NULLIF ( 56, ( + 44 ) + - 12 ) AS INTEGER ) WHEN + COUNT ( * ) * COUNT ( * ) / - - 51 + - 94 + + NULLIF ( - 9, 46 ) * 77 * + 4 THEN - + 22 WHEN - CAST ( NULL AS INTEGER ) + 26 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 93 - + + 20
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

query I rowsort
SELECT - 35 * 30 AS col0
----
-1050

query II rowsort
SELECT ALL - 11 * + 98, + 5 - - + 81 AS col1
----
-1078
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT + CASE + + 7 WHEN NULLIF ( - 65, 94 ) * + 79 * MIN( - - 69 ) - + 97 THEN NULL ELSE + + CAST( + ( + 42 ) AS SIGNED ) END
----
42

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT + CASE + + 7 WHEN NULLIF ( - 65, 94 ) * + 79 * MIN ( - - 69 ) - + 97 THEN NULL ELSE + + CAST ( + ( + 42 ) AS INTEGER ) END
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT - 51 * - 79 - NULLIF ( 74, + 20 * - 63 * + MAX( DISTINCT - 54 ) ) col0
----
3955

skipif mysql # not compatible
query I rowsort label-3567
SELECT - 51 * - 79 - NULLIF ( 74, + 20 * - 63 * + MAX ( DISTINCT - 54 ) ) col0
----
3955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT + CAST( 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-3568
SELECT + CAST ( 81 AS INTEGER )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT - COUNT( * ) + - ( - - 67 ) + - 9
----
-77

skipif mysql # not compatible
query I rowsort label-3569
SELECT - COUNT ( * ) + - ( - - 67 ) + - 9
----
-77

query I rowsort
SELECT ALL + ( - ( - + 5 ) ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL + COUNT( DISTINCT - + 3 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL + COUNT ( DISTINCT - + 3 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT DISTINCT + CASE - 7 WHEN + - 49 * + 81 + + COUNT( * ) THEN - 21 * + 83 END col1, 12 col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-3572
SELECT DISTINCT + CASE - 7 WHEN + - 49 * + 81 + + COUNT ( * ) THEN - 21 * + 83 END col1, 12 col0
----
NULL
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3573
SELECT DISTINCT + 67 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT + 67 / - 49
----
-1

query I rowsort
SELECT - 93 + + - ( 65 )
----
-158

query I rowsort
SELECT - 69 + 59
----
-10

query I rowsort
SELECT ALL + 40 * - 19
----
-760

query II rowsort
SELECT + 13, - 12 + 45 + - 71 AS col2
----
13
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3578
SELECT + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3578
SELECT + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3579
SELECT - COUNT( * ) DIV + - 30
----
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT - COUNT ( * ) / + - 30
----
0

query I rowsort
SELECT ALL + 40 * 89 AS col0
----
3560

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + 15 + + 56 + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3581
SELECT + 15 + + 56 + - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3582
SELECT ALL 12 * - 80 * + 39 * - + 75 + + COALESCE ( - 33, 64 + + 35 ) + - - 52, + COUNT( * ) AS col0
----
2808019
1

skipif mysql # not compatible
query II rowsort label-3582
SELECT ALL 12 * - 80 * + 39 * - + 75 + + COALESCE ( - 33, 64 + + 35 ) + - - 52, + COUNT ( * ) AS col0
----
2808019
1

query I rowsort
SELECT ( 61 ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT DISTINCT + CAST( - 76 AS SIGNED ) * + 68 + 73
----
-5095

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT + CAST ( - 76 AS INTEGER ) * + 68 + 73
----
-5095

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT NULLIF ( + 12, + CASE 66 WHEN - 6 + - 64 + - ( 26 ) THEN + 62 + 96 END + - COUNT( * ) )
----
12

skipif mysql # not compatible
query I rowsort label-3585
SELECT NULLIF ( + 12, + CASE 66 WHEN - 6 + - 64 + - ( 26 ) THEN + 62 + 96 END + - COUNT ( * ) )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT ALL ( 63 ) * CAST( + + 71 AS SIGNED ) * + + MIN( ALL + + 14 ) + 72 AS col2
----
62694

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL ( 63 ) * CAST ( + + 71 AS INTEGER ) * + + MIN ( ALL + + 14 ) + 72 AS col2
----
62694

query I rowsort
SELECT DISTINCT 8 * 45 + 51
----
411

query II rowsort
SELECT DISTINCT - 86, + 95 AS col0
----
-86
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL 79 * ( - COUNT( * ) ) + - 66
----
-145

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL 79 * ( - COUNT ( * ) ) + - 66
----
-145

query I rowsort
SELECT 22 * + + 23 - + 78
----
428

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT - - 73 + + 93 DIV + 39 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3591
SELECT - - 73 + + 93 / + 39 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT - 90 - + + CAST( 48 AS SIGNED )
----
-138

skipif mysql # not compatible
query I rowsort label-3592
SELECT - 90 - + + CAST ( 48 AS INTEGER )
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT + COUNT( * ) + + + 11
----
12

skipif mysql # not compatible
query I rowsort label-3593
SELECT + COUNT ( * ) + + + 11
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3594
SELECT 70 * - 15 - 3 DIV - 92 AS col2, 68 + MAX( ALL + 34 ) + - + 71 + + 16 AS col0
----
-1050
47

skipif mysql # not compatible
query II rowsort label-3594
SELECT 70 * - 15 - 3 / - 92 AS col2, 68 + MAX ( ALL + 34 ) + - + 71 + + 16 AS col0
----
-1050
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3595
SELECT + 26 * - 95 * + + CAST( + + 76 AS SIGNED ) + - - 66 + + 65 AS col1, 74 AS col0
----
-187589
74

skipif mysql # not compatible
query II rowsort label-3595
SELECT + 26 * - 95 * + + CAST ( + + 76 AS INTEGER ) + - - 66 + + 65 AS col1, 74 AS col0
----
-187589
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3596
SELECT 45 - - 27 DIV 19 DIV COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3596
SELECT 45 - - 27 / 19 / COUNT ( * ) AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3597
SELECT ALL CAST( NULL AS SIGNED ) * 71 * ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL CAST ( NULL AS INTEGER ) * 71 * ( 89 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3598
SELECT DISTINCT COALESCE ( - + CAST( NULL AS SIGNED ), - - MAX( ALL + 73 ) * - + ( + + 98 ) + + CASE + 88 WHEN + - ( 47 ) THEN - ( 46 ) WHEN - - 30 * - NULLIF ( + 29, - 31 ) + + + 68 + 5 THEN 50 WHEN + 67 * + 73 + - 85 THEN 93 ELSE 68 END + CASE 32 WHEN 86 * - CAST( NULL AS DECIMAL ) THEN + 14 + + 34 ELSE NULL END * 21 + 17 * COUNT( * ), + 93 - COUNT( * ) ) DIV + 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT COALESCE ( - + CAST ( NULL AS INTEGER ), - - MAX ( ALL + 73 ) * - + ( + + 98 ) + + CASE + 88 WHEN + - ( 47 ) THEN - ( 46 ) WHEN - - 30 * - NULLIF ( + 29, - 31 ) + + + 68 + 5 THEN 50 WHEN + 67 * + 73 + - 85 THEN 93 ELSE 68 END + CASE 32 WHEN 86 * - CAST ( NULL AS REAL ) THEN + 14 + + 34 ELSE NULL END * 21 + 17 * COUNT ( * ), + 93 - COUNT ( * ) ) / + 68 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3599
SELECT ALL - CAST( + 15 AS SIGNED ) + 86, NULLIF ( 12, + 83 ) + + 45 - CASE 52 WHEN + 7 * 93 THEN - - COUNT( * ) END * 76 + + 51 - - 13 AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-3599
SELECT ALL - CAST ( + 15 AS INTEGER ) + 86, NULLIF ( 12, + 83 ) + + 45 - CASE 52 WHEN + 7 * 93 THEN - - COUNT ( * ) END * 76 + + 51 - - 13 AS col0
----
71
NULL

query I rowsort
SELECT DISTINCT + 26 * 20
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - NULLIF ( + 7, + 14 ) / + 52 + + CASE + 27 WHEN + + 97 THEN AVG ( + 42 ) * + SUM( ALL + 47 ) END * 15 / - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT - NULLIF ( + 7, + 14 ) / + 52 + + CASE + 27 WHEN + + 97 THEN AVG ( + 42 ) * + SUM ( ALL + 47 ) END * 15 / - 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3602
SELECT 51 * 82, + MAX( + 15 ) AS col0
----
4182
15

skipif mysql # not compatible
query II rowsort label-3602
SELECT 51 * 82, + MAX ( + 15 ) AS col0
----
4182
15

query I rowsort
SELECT - 2 * + 97 + + 68 * + 33 + - 41 * + 80 col1
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT 81 * - MAX( 84 ) * + 42 + - 1
----
-285769

skipif mysql # not compatible
query I rowsort label-3604
SELECT 81 * - MAX ( 84 ) * + 42 + - 1
----
-285769

query I rowsort
SELECT ( - 27 ) + - 63 AS col0
----
-90

query I rowsort
SELECT 77 * + 73
----
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT - NULLIF ( + 13, COUNT( DISTINCT + + 44 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT - NULLIF ( + 13, COUNT ( DISTINCT + + 44 ) ) AS col0
----
-13

query I rowsort
SELECT ALL - 82 + 98 + - 70
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3609
SELECT 57 - - + 56 AS col2, COUNT( * ) AS col0
----
113
1

skipif mysql # not compatible
query II rowsort label-3609
SELECT 57 - - + 56 AS col2, COUNT ( * ) AS col0
----
113
1

query I rowsort
SELECT ALL + 18 + + + 58
----
76

query I rowsort
SELECT + ( COALESCE ( ( - + 74 ), + 57 ) ) * + 0 + - 17 + - 61
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL + COUNT( * ) * + - ( - 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL + COUNT ( * ) * + - ( - 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT - NULLIF ( + 14, - COUNT( * ) ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT - NULLIF ( + 14, - COUNT ( * ) ) col1
----
-14

query I rowsort
SELECT + ( ( + 23 ) )
----
23

query II rowsort
SELECT + 58 + + 47 + - - 79 AS col0, 16 AS col2
----
184
16

query I rowsort
SELECT ALL + + 39 + + 60 * 36 + + - ( - NULLIF ( + 39, - 55 * + 44 + + 49 ) ) AS col2
----
2238

query I rowsort
SELECT - 98 + 91 AS col0
----
-7

query I rowsort
SELECT 57 * - - ( + + NULLIF ( - + 63, - 69 - + 1 * + CASE - - 27 WHEN - 99 THEN - - 34 * + 54 WHEN + + 82 - - 27 THEN + - 22 * + 34 ELSE - + 1 END ) )
----
-3591

query I rowsort
SELECT 77 * 41 * 41 + + - 92 AS col0
----
129345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT - 81 - - 59 + - CAST( MIN( + + 58 ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-3620
SELECT - 81 - - 59 + - CAST ( MIN ( + + 58 ) AS INTEGER )
----
-80

query I rowsort
SELECT ALL + + 64 * - 39 AS col2
----
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT - 25 + 35 + + CAST( + 77 AS SIGNED ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3622
SELECT - 25 + 35 + + CAST ( + 77 AS INTEGER ) AS col2
----
87

query I rowsort
SELECT 36 * - 44 AS col0
----
-1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT DISTINCT NULLIF ( + 79, - 36 + - 31 - + 16 * 44 / + 86 * - CAST( + COUNT( * ) AS SIGNED ) * - - 62 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT NULLIF ( + 79, - 36 + - 31 - + 16 * 44 / + 86 * - CAST ( + COUNT ( * ) AS INTEGER ) * - - 62 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-3625
SELECT DISTINCT - - 97 - - - SUM( ALL + 73 ) AS col0, - 32 * - 77
----
24
2464

skipif mysql # not compatible
query II rowsort label-3625
SELECT DISTINCT - - 97 - - - SUM ( ALL + 73 ) AS col0, - 32 * - 77
----
24
2464

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3626
SELECT ALL - CAST( NULL AS DECIMAL ) / 59 AS col0, - 57 AS col1
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-3626
SELECT ALL - CAST ( NULL AS REAL ) / 59 AS col0, - 57 AS col1
----
NULL
-57

query I rowsort
SELECT 29 + - 0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3628
SELECT ALL - 25 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - 25 / 64 AS col1
----
0

query I rowsort
SELECT 6 * - + ( - ( - 18 ) )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT COUNT( * ) + 83
----
84

skipif mysql # not compatible
query I rowsort label-3630
SELECT COUNT ( * ) + 83
----
84

query I rowsort
SELECT 98 + - 29
----
69

query II rowsort
SELECT 85 * + + 66 AS col1, + 44 + - 38
----
5610
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT 29 * - CAST( NULL AS SIGNED ) + - 9 * + + ( 49 ) * + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT 29 * - CAST ( NULL AS INTEGER ) + - 9 * + + ( 49 ) * + 74 AS col1
----
NULL

query I rowsort
SELECT - 24 + + 30
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT ( + MIN( + 80 ) ) * - 62 AS col1
----
-4960

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT ( + MIN ( + 80 ) ) * - 62 AS col1
----
-4960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL CAST( 61 AS SIGNED ) * + COUNT( * ) * ( 53 ) col0
----
3233

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL CAST ( 61 AS INTEGER ) * + COUNT ( * ) * ( 53 ) col0
----
3233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT ALL + CASE COUNT( + - 7 ) WHEN - CAST( + 66 AS SIGNED ) * - 72 - 24 * - 5 / + COUNT( * ) - NULLIF ( - ( - 70 ), 92 ) - - + COALESCE ( + - 2, + COUNT( DISTINCT + 40 ) + + + 77 ) THEN NULL ELSE 88 END * + 76 + 98 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + CASE COUNT ( + - 7 ) WHEN - CAST ( + 66 AS INTEGER ) * - 72 - 24 * - 5 / + COUNT ( * ) - NULLIF ( - ( - 70 ), 92 ) - - + COALESCE ( + - 2, + COUNT ( DISTINCT + 40 ) + + + 77 ) THEN NULL ELSE 88 END * + 76 + 98 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT COALESCE ( + MAX( 5 ), - 57 ) + - 78
----
-73

skipif mysql # not compatible
query I rowsort label-3638
SELECT COALESCE ( + MAX ( 5 ), - 57 ) + - 78
----
-73

query II rowsort
SELECT ALL 43, 84 * + + 42 AS col2
----
43
3528

query II rowsort
SELECT 40 AS col0, + 67 + - 30 AS col2
----
40
37

onlyif mysql # aggregate syntax: 
query II rowsort label-3641
SELECT 22 * - 85 * NULLIF ( 20, + - 37 + COUNT( * ) ) * + NULLIF ( - 92, - + 61 * + + NULLIF ( 87, - - 84 ) - + + ( - 14 ) ) + 79 * COUNT( * ) + + - 97 * 2 col2, 93 * - - 85 + + - COUNT( * ) * + 75 AS col2
----
3440685
7830

skipif mysql # not compatible
query II rowsort label-3641
SELECT 22 * - 85 * NULLIF ( 20, + - 37 + COUNT ( * ) ) * + NULLIF ( - 92, - + 61 * + + NULLIF ( 87, - - 84 ) - + + ( - 14 ) ) + 79 * COUNT ( * ) + + - 97 * 2 col2, 93 * - - 85 + + - COUNT ( * ) * + 75 AS col2
----
3440685
7830

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT MIN( + + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-3642
SELECT MIN ( + + 70 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3643
SELECT DISTINCT MIN( 53 ) * 43 + 36 * 91 / + CASE 33 WHEN + 19 / + 4 * - + 39 + - - 40 - - + COALESCE ( 71, + 61 + - CASE - 98 WHEN + 40 THEN + + 99 * 97 ELSE COUNT( CAST( 25 AS SIGNED ) ) / + 97 / 73 + ( 33 ) * 64 + - 70 END ) THEN 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT MIN ( 53 ) * 43 + 36 * 91 / + CASE 33 WHEN + 19 / + 4 * - + 39 + - - 40 - - + COALESCE ( 71, + 61 + - CASE - 98 WHEN + 40 THEN + + 99 * 97 ELSE COUNT ( CAST ( 25 AS INTEGER ) ) / + 97 / 73 + ( 33 ) * 64 + - 70 END ) THEN 36 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3644
SELECT DISTINCT CASE + 55 WHEN 2 - + 39 THEN 5 WHEN + 38 * 6 * 6 + + + 23 + 41 + + 49 + - 97 * - CAST( - + 1 AS SIGNED ) / - 95 * - 9 THEN + + 89 + - + AVG ( ALL + 21 ) + + + 95 * COUNT( + 63 ) - + 42 * - 63 * + 73 ELSE NULL END * - MIN( - 46 - 74 * + 1 ) + 98 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT CASE + 55 WHEN 2 - + 39 THEN 5 WHEN + 38 * 6 * 6 + + + 23 + 41 + + 49 + - 97 * - CAST ( - + 1 AS INTEGER ) / - 95 * - 9 THEN + + 89 + - + AVG ( ALL + 21 ) + + + 95 * COUNT ( + 63 ) - + 42 * - 63 * + 73 ELSE NULL END * - MIN ( - 46 - 74 * + 1 ) + 98 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT ALL 68 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL 68 / - 90 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3646
SELECT 67 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-3646
SELECT 67 / + 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3647
SELECT DISTINCT - 38 AS col1, - 43 + 13 + - 2 + CAST( NULL AS SIGNED ) - - - 58
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-3647
SELECT DISTINCT - 38 AS col1, - 43 + 13 + - 2 + CAST ( NULL AS INTEGER ) - - - 58
----
-38
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT SUM( DISTINCT + + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-3648
SELECT SUM ( DISTINCT + + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT MAX( ALL - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3649
SELECT MAX ( ALL - 18 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT + COALESCE ( 71, - - COUNT( * ) * - 61 )
----
71

skipif mysql # not compatible
query I rowsort label-3650
SELECT + COALESCE ( 71, - - COUNT ( * ) * - 61 )
----
71

query II rowsort
SELECT + 43 col2, + COALESCE ( + 72, 37 )
----
43
72

query II rowsort
SELECT DISTINCT - + COALESCE ( + 83, - 32 ), 66 AS col1
----
-83
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT - MAX( ALL + + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3653
SELECT - MAX ( ALL + + 90 ) AS col0
----
-90

query I rowsort
SELECT - + 19 * + ( - 11 ) + - 76 + - - 9 * + 24 * 54
----
11797

query I rowsort
SELECT - 23 * - - 75 + 69
----
-1656

query I rowsort
SELECT ALL + + 6 AS col1
----
6

query I rowsort
SELECT ( 58 ) AS col1
----
58

query I rowsort
SELECT ALL - 96 * + 43 AS col1
----
-4128

onlyif mysql # aggregate syntax: 
query II rowsort label-3659
SELECT ALL + - COUNT( * ) AS col0, 90
----
-1
90

skipif mysql # not compatible
query II rowsort label-3659
SELECT ALL + - COUNT ( * ) AS col0, 90
----
-1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + - 54 * + 79 - COUNT( * ) * + MIN( DISTINCT - 94 )
----
-4172

skipif mysql # not compatible
query I rowsort label-3660
SELECT + - 54 * + 79 - COUNT ( * ) * + MIN ( DISTINCT - 94 )
----
-4172

query I rowsort
SELECT - 25 + 91 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT - SUM( ALL + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-3662
SELECT - SUM ( ALL + 28 )
----
-28

query I rowsort
SELECT ALL - - 19 * - 41 * - 62 + - 89 AS col1
----
48209

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3664
SELECT - + 13 DIV CAST( + 55 AS SIGNED ) + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-3664
SELECT - + 13 / CAST ( + 55 AS INTEGER ) + - 35
----
-35

query I rowsort
SELECT - 39 + - 80 AS col2
----
-119

query I rowsort
SELECT DISTINCT 13 * + - 94 col2
----
-1222

query I rowsort
SELECT - + ( - - 38 )
----
-38

query I rowsort
SELECT DISTINCT + 98 + 46
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - MAX( ALL - 76 ) - 12 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3669
SELECT - MAX ( ALL - 76 ) - 12 AS col1
----
64

query I rowsort
SELECT ALL - 26 + + 61 AS col2
----
35

query I rowsort
SELECT ALL CASE 21 WHEN - 54 THEN - - 50 WHEN 96 THEN - - 29 - + 84 * - 27 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - COUNT( * ) * 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3672
SELECT - COUNT ( * ) * 28 AS col2
----
-28

query I rowsort
SELECT + 40 * + 57 AS col2
----
2280

query I rowsort
SELECT DISTINCT CASE - 56 WHEN 24 THEN NULL ELSE - + 34 - 33 + 25 * + 76 * - 48 * - - 56 * + 53 END col2
----
-270681667

query I rowsort
SELECT ALL 98 + 92 AS col0
----
190

query I rowsort
SELECT - 4 * - - 12 * 11
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - SUM( ALL - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-3677
SELECT - SUM ( ALL - 67 )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3678
SELECT ALL - 18 * + 22 DIV - COUNT( * )
----
396

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL - 18 * + 22 / - COUNT ( * )
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - 68 + + + 22 * - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-3679
SELECT - 68 + + + 22 * - COUNT ( * )
----
-90

query I rowsort
SELECT + 56 * + - 57 + - 90
----
-3282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT + CAST( - 22 AS SIGNED ) - + 81 - + 52 + 48 * + 34 AS col1
----
1477

skipif mysql # not compatible
query I rowsort label-3681
SELECT + CAST ( - 22 AS INTEGER ) - + 81 - + 52 + 48 * + 34 AS col1
----
1477

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL + CASE COUNT( * ) WHEN - 54 THEN NULL WHEN + AVG ( + 40 ) THEN + 62 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL + CASE COUNT ( * ) WHEN - 54 THEN NULL WHEN + AVG ( + 40 ) THEN + 62 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3683
SELECT DISTINCT ( + + CAST( - 89 AS SIGNED ) ) * 30 - 8 AS col0, - 59
----
-2678
-59

skipif mysql # not compatible
query II rowsort label-3683
SELECT DISTINCT ( + + CAST ( - 89 AS INTEGER ) ) * 30 - 8 AS col0, - 59
----
-2678
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3684
SELECT DISTINCT 17 * - COUNT( * ) AS col1, - COUNT( * )
----
-17
-1

skipif mysql # not compatible
query II rowsort label-3684
SELECT DISTINCT 17 * - COUNT ( * ) AS col1, - COUNT ( * )
----
-17
-1

query I rowsort
SELECT + 57 + - 63 + - 0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + + COALESCE ( 45, + - 43, + MIN( DISTINCT + 41 ) * - 2 ) + 73 * - - COUNT( * ) * + + 8 AS col0
----
629

skipif mysql # not compatible
query I rowsort label-3686
SELECT + + COALESCE ( 45, + - 43, + MIN ( DISTINCT + 41 ) * - 2 ) + 73 * - - COUNT ( * ) * + + 8 AS col0
----
629

query I rowsort
SELECT ALL + 22 * + 60
----
1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT - - ( - + 89 ) * - 5 + - COUNT( * ) - + CAST( + + MIN( DISTINCT - 24 ) AS SIGNED ) * + 92
----
2652

skipif mysql # not compatible
query I rowsort label-3688
SELECT - - ( - + 89 ) * - 5 + - COUNT ( * ) - + CAST ( + + MIN ( DISTINCT - 24 ) AS INTEGER ) * + 92
----
2652

query I rowsort
SELECT - - 53 + 18 col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3690
SELECT + + 84 * SUM( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT + + 84 * SUM ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3691
SELECT + CAST( NULL AS SIGNED ) * - + 12 / - 1 + - + 0 AS col0, - 60 AS col1
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-3691
SELECT + CAST ( NULL AS INTEGER ) * - + 12 / - 1 + - + 0 AS col0, - 60 AS col1
----
NULL
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3692
SELECT ALL + + ( - CAST( + 53 AS SIGNED ) ) * + ( + NULLIF ( MAX( + 30 ), 4 * 94 ) ) * 40 + - COUNT( * ) AS col1
----
-63601

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL + + ( - CAST ( + 53 AS INTEGER ) ) * + ( + NULLIF ( MAX ( + 30 ), 4 * 94 ) ) * 40 + - COUNT ( * ) AS col1
----
-63601

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL + + 13 * - COALESCE ( - + MAX( ALL + 59 ), + 35 * - ( 62 ) ) + - + 50 - + + 98 + + + 83 AS col0
----
702

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + + 13 * - COALESCE ( - + MAX ( ALL + 59 ), + 35 * - ( 62 ) ) + - + 50 - + + 98 + + + 83 AS col0
----
702

query I rowsort
SELECT DISTINCT 10 * 86 + - 48
----
812

query I rowsort
SELECT - 22 * - 3 + + - ( + 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT COUNT( + 70 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3696
SELECT COUNT ( + 70 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT - 23 * + - COALESCE ( - 61, - 72 * COUNT( * ), 76 ) * + + 58 * - 9 AS col1, - 25 AS col1
----
732366
-25

skipif mysql # not compatible
query II rowsort label-3697
SELECT - 23 * + - COALESCE ( - 61, - 72 * COUNT ( * ), 76 ) * + + 58 * - 9 AS col1, - 25 AS col1
----
732366
-25

query I rowsort
SELECT ALL - 22 * - + 57 AS col2
----
1254

query I rowsort
SELECT + 34 + - 17 + - - CASE + 68 WHEN - 82 * 1 * - 35 THEN 28 WHEN 74 THEN - AVG ( ALL - 4 ) / + 79 / 45 END / + 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT - CAST( - - 89 AS SIGNED ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3700
SELECT - CAST ( - - 89 AS INTEGER ) AS col0
----
-89

query I rowsort
SELECT - ( 96 ) + 54
----
-42

query I rowsort
SELECT DISTINCT - 4 * - 2 AS col0
----
8

query I rowsort
SELECT DISTINCT + 49 + - 50 + + 39 * 65 * + 32
----
81119

query I rowsort
SELECT ALL ( 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT - 87 * - + 93 * ( - - COUNT( * ) )
----
8091

skipif mysql # not compatible
query I rowsort label-3705
SELECT - 87 * - + 93 * ( - - COUNT ( * ) )
----
8091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL CASE - 76 WHEN - 46 THEN MAX( - + CAST( + 47 AS SIGNED ) ) * COALESCE ( + NULLIF ( + + CAST( 38 AS SIGNED ), 38 ), + 14 * + 61 * + 96 ) - 68 WHEN 23 - - 16 THEN NULL END * + MAX( 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL CASE - 76 WHEN - 46 THEN MAX ( - + CAST ( + 47 AS INTEGER ) ) * COALESCE ( + NULLIF ( + + CAST ( 38 AS INTEGER ), 38 ), + 14 * + 61 * + 96 ) - 68 WHEN 23 - - 16 THEN NULL END * + MAX ( 92 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3707
SELECT ALL - 32 - - 60 DIV - 18 + COUNT( * ) + COUNT( * ) + 67
----
34

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - 32 - - 60 / - 18 + COUNT ( * ) + COUNT ( * ) + 67
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT DISTINCT CASE + - 81 WHEN + 73 THEN MAX( + + 57 ) + + 23 + - ( + COUNT( 0 ) ) + + 30 * ( + + 62 ) * + - 29 END col1, 80 - 45 - 52 / CASE CASE - ( + 35 ) WHEN + 80 + - + 17 THEN NULL WHEN + SUM( + 16 ) THEN NULL ELSE + 99 END WHEN 7 - 46 THEN NULL WHEN - 81 * 7 THEN NULL ELSE AVG ( 20 ) * CASE 22 + - 68 WHEN - MAX( COALESCE ( - ( 14 ), 86, ( 30 ) ) ) THEN + 91 WHEN - 18 THEN + NULLIF ( ( COUNT( * ) ), 72 + 23 ) + - MIN( 46 ) END + 92 END col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3708
SELECT DISTINCT CASE + - 81 WHEN + 73 THEN MAX ( + + 57 ) + + 23 + - ( + COUNT ( 0 ) ) + + 30 * ( + + 62 ) * + - 29 END col1, 80 - 45 - 52 / CASE CASE - ( + 35 ) WHEN + 80 + - + 17 THEN NULL WHEN + SUM ( + 16 ) THEN NULL ELSE + 99 END WHEN 7 - 46 THEN NULL WHEN - 81 * 7 THEN NULL ELSE AVG ( 20 ) * CASE 22 + - 68 WHEN - MAX ( COALESCE ( - ( 14 ), 86, ( 30 ) ) ) THEN + 91 WHEN - 18 THEN + NULLIF ( ( COUNT ( * ) ), 72 + 23 ) + - MIN ( 46 ) END + 92 END col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT ALL + 59 DIV 18 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + 59 / 18 AS col2
----
3

query I rowsort
SELECT - 27 * - 22
----
594

query II rowsort
SELECT 46 AS col2, + COALESCE ( - 41, - - 16 )
----
46
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + 85 * COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3712
SELECT + 85 * COUNT ( * ) AS col1
----
85

query I rowsort
SELECT DISTINCT - 45 * - - 10 col1
----
-450

query I rowsort
SELECT 4 * 19 col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT ALL CAST( NULL AS SIGNED ) * AVG ( 11 ) + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL CAST ( NULL AS INTEGER ) * AVG ( 11 ) + 64 AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 33 ) * 84
----
2772

query I rowsort
SELECT + 41 * + + 34 + + 89 + + ( + - ( - 48 ) ) * + + 60
----
4363

query I rowsort
SELECT DISTINCT 29 + - 10
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-3719
SELECT + 7 DIV 54 * + + 77 AS col2, 41 AS col0
----
0
41

skipif mysql # not compatible
query II rowsort label-3719
SELECT + 7 / 54 * + + 77 AS col2, 41 AS col0
----
0
41

query II rowsort
SELECT DISTINCT - + 51, - 58 AS col1
----
-51
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3721
SELECT ALL - + SUM( + 94 ) + 48 + 60 + COUNT( * ) * + CAST( NULL AS SIGNED ) * + + CAST( - 38 AS SIGNED ) / - - NULLIF ( - 62, + 41 ) * + - 99 * + - 97 * CAST( - - 52 AS DECIMAL ) - - 65 + + ( - CASE 91 WHEN 61 THEN NULL WHEN + 99 THEN NULL ELSE - + COUNT( * ) * - 26 * ( - ( + 58 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - + SUM ( + 94 ) + 48 + 60 + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + + CAST ( - 38 AS INTEGER ) / - - NULLIF ( - 62, + 41 ) * + - 99 * + - 97 * CAST ( - - 52 AS REAL ) - - 65 + + ( - CASE 91 WHEN 61 THEN NULL WHEN + 99 THEN NULL ELSE - + COUNT ( * ) * - 26 * ( - ( + 58 ) ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + - MAX( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-3722
SELECT + - MAX ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL MIN( ALL + + 97 ) + + - ( - 10 )
----
107

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL MIN ( ALL + + 97 ) + + - ( - 10 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - 43 * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-3724
SELECT - 43 * COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT ALL + 41 + + - ( - - 61 ) * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL + 41 + + - ( - - 61 ) * COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT COUNT( DISTINCT - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-3726
SELECT COUNT ( DISTINCT - 58 )
----
1

query I rowsort
SELECT DISTINCT 31 * + 66 * - 37
----
-75702

query I rowsort
SELECT ALL 53 * + 76
----
4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3729
SELECT NULLIF ( + - 21, - - CAST( 91 AS SIGNED ) * + 9 + 3 - - - 98 * - 94 ) + + 93 + + - COUNT( * ) * + + 59, COUNT( * ) AS col0
----
13
1

skipif mysql # not compatible
query II rowsort label-3729
SELECT NULLIF ( + - 21, - - CAST ( 91 AS INTEGER ) * + 9 + 3 - - - 98 * - 94 ) + + 93 + + - COUNT ( * ) * + + 59, COUNT ( * ) AS col0
----
13
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3730
SELECT - 84 AS col2, COALESCE ( + 10, CAST( NULL AS SIGNED ) ) * 51 - - 34 * COUNT( * ) + - 1 + - SUM( ALL + 24 )
----
-84
519

skipif mysql # not compatible
query II rowsort label-3730
SELECT - 84 AS col2, COALESCE ( + 10, CAST ( NULL AS INTEGER ) ) * 51 - - 34 * COUNT ( * ) + - 1 + - SUM ( ALL + 24 )
----
-84
519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3731
SELECT ALL 88 * ( COALESCE ( + 36, - CAST( NULL AS SIGNED ), - 64 DIV - COUNT( * ) - - 39 * 21 * 74 ) )
----
3168

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL 88 * ( COALESCE ( + 36, - CAST ( NULL AS INTEGER ), - 64 / - COUNT ( * ) - - 39 * 21 * 74 ) )
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT COUNT( DISTINCT + - 35 ) * - + 48
----
-48

skipif mysql # not compatible
query I rowsort label-3732
SELECT COUNT ( DISTINCT + - 35 ) * - + 48
----
-48

query I rowsort
SELECT 77 + + 57
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL 81 - + + CASE + COUNT( DISTINCT + - 81 ) WHEN + 30 THEN NULL WHEN - 45 + - + 84 THEN NULL WHEN 89 THEN - + 79 * 2 * - - 98 ELSE 66 END AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL 81 - + + CASE + COUNT ( DISTINCT + - 81 ) WHEN + 30 THEN NULL WHEN - 45 + - + 84 THEN NULL WHEN 89 THEN - + 79 * 2 * - - 98 ELSE 66 END AS col2
----
15

onlyif mysql # aggregate syntax: 
query III rowsort label-3735
SELECT CASE - 50 WHEN - + 46 THEN NULL WHEN + COUNT( * ) THEN 28 END * - 59 AS col2, + 98, + COUNT( * ) AS col1
----
NULL
98
1

skipif mysql # not compatible
query III rowsort label-3735
SELECT CASE - 50 WHEN - + 46 THEN NULL WHEN + COUNT ( * ) THEN 28 END * - 59 AS col2, + 98, + COUNT ( * ) AS col1
----
NULL
98
1

query I rowsort
SELECT 70 + 62 AS col0
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT ALL 39 DIV + COUNT( * ) * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL 39 / + COUNT ( * ) * COUNT ( * )
----
39

query I rowsort
SELECT 60 + - + 77 col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ( - MAX( ALL - - 50 ) ) + + + COUNT( * ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-3739
SELECT ( - MAX ( ALL - - 50 ) ) + + + COUNT ( * ) col1
----
-49

query I rowsort
SELECT ( + 34 ) * 34 * + 14
----
16184

query I rowsort
SELECT ALL + 55 * + 49
----
2695

onlyif mysql # aggregate syntax: 
query II rowsort label-3742
SELECT ALL 26 AS col0, COUNT( * ) AS col0
----
26
1

skipif mysql # not compatible
query II rowsort label-3742
SELECT ALL 26 AS col0, COUNT ( * ) AS col0
----
26
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT DISTINCT 77 AS col2, 62 * + + NULLIF ( - 71, + COALESCE ( - 1, 98 + 61 * - - 59 * 50 + - 54 / 31 ) + - + COUNT( * ) - - + MAX( DISTINCT - 55 ) + - + 14 ) * + 93
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3743
SELECT DISTINCT 77 AS col2, 62 * + + NULLIF ( - 71, + COALESCE ( - 1, 98 + 61 * - - 59 * 50 + - 54 / 31 ) + - + COUNT ( * ) - - + MAX ( DISTINCT - 55 ) + - + 14 ) * + 93
----
77
NULL

query I rowsort
SELECT + 98 * + ( + 38 ) AS col2
----
3724

query II rowsort
SELECT ALL - + 68, + 50 AS col1
----
-68
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL - SUM( ALL 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - SUM ( ALL 10 )
----
-10

query I rowsort
SELECT - 51 + + - 83 + + 63 * 99
----
6103

query II rowsort
SELECT DISTINCT - - 90 col1, + 50 col2
----
90
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - 34 - - 40 / - 33 * - + CASE + 79 WHEN + 32 + COUNT( * ) THEN - 77 + 5 + COUNT( * ) WHEN - + COALESCE ( - - 33, COUNT( * ) * 7, + 40, + AVG ( DISTINCT + 1 ) * + 28 * + 31 * + - 55 / 59 ) THEN NULL ELSE NULL END * - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT - 34 - - 40 / - 33 * - + CASE + 79 WHEN + 32 + COUNT ( * ) THEN - 77 + 5 + COUNT ( * ) WHEN - + COALESCE ( - - 33, COUNT ( * ) * 7, + 40, + AVG ( DISTINCT + 1 ) * + 28 * + 31 * + - 55 / 59 ) THEN NULL ELSE NULL END * - - 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3750
SELECT 17 DIV 3 + + 21 + 52 * + + SUM( - COALESCE ( + 98, + 62 ) )
----
-5070

skipif mysql # not compatible
query I rowsort label-3750
SELECT 17 / 3 + + 21 + 52 * + + SUM ( - COALESCE ( + 98, + 62 ) )
----
-5070

query II rowsort
SELECT 28, + 94 AS col1
----
28
94

query I rowsort
SELECT ALL + 6 + - - 35
----
41

query I rowsort
SELECT ALL - + 13 + - 54 * + + 65 AS col1
----
-3523

onlyif mysql # aggregate syntax: 
query II rowsort label-3754
SELECT ALL + MAX( - 4 ) + 68 + - + 87 - + + 64 + + COUNT( * ) AS col0, - 90 AS col2
----
-86
-90

skipif mysql # not compatible
query II rowsort label-3754
SELECT ALL + MAX ( - 4 ) + 68 + - + 87 - + + 64 + + COUNT ( * ) AS col0, - 90 AS col2
----
-86
-90

query II rowsort
SELECT 76 * - 79 + - + 91 + - 38 + - 26 + 73, + ( - + 4 ) + 16 AS col2
----
-6086
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - MAX( 96 ) + - ( SUM( DISTINCT + 57 ) ) AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - MAX ( 96 ) + - ( SUM ( DISTINCT + 57 ) ) AS col1
----
-153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3757
SELECT - 41 DIV + + CAST( + - 9 AS SIGNED ) - + + 73 + - 6
----
-75

skipif mysql # not compatible
query I rowsort label-3757
SELECT - 41 / + + CAST ( + - 9 AS INTEGER ) - + + 73 + - 6
----
-75

query I rowsort
SELECT - ( + - 58 ) * - 22
----
-1276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT DISTINCT + - 8 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + - 8 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 47 - + 58 - - + ( + + 27 ) * - 67 * 41 * - - ( - 53 )
----
3930946

onlyif mysql # aggregate syntax: 
query II rowsort label-3761
SELECT COUNT( * ) * 83 AS col0, NULLIF ( - - 66, + + MAX( + 13 ) * COUNT( * ) ) + - + 52 AS col1
----
83
14

skipif mysql # not compatible
query II rowsort label-3761
SELECT COUNT ( * ) * 83 AS col0, NULLIF ( - - 66, + + MAX ( + 13 ) * COUNT ( * ) ) + - + 52 AS col1
----
83
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL COUNT( ALL + - 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL COUNT ( ALL + - 74 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 50 - - 64
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT MIN( DISTINCT - - 2 ) + - 67 * + - 25 * 1 * 17 AS col1
----
28477

skipif mysql # not compatible
query I rowsort label-3764
SELECT MIN ( DISTINCT - - 2 ) + - 67 * + - 25 * 1 * 17 AS col1
----
28477

query I rowsort
SELECT ALL NULLIF ( 30, + - 15 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3766
SELECT DISTINCT 4 DIV + + 98
----
0

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT 4 / + + 98
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3767
SELECT 50 DIV 39 AS col0, - 70 AS col1
----
1
-70

skipif mysql # not compatible
query II rowsort label-3767
SELECT 50 / 39 AS col0, - 70 AS col1
----
1
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3768
SELECT 86 DIV - MIN( + 1 )
----
-86

skipif mysql # not compatible
query I rowsort label-3768
SELECT 86 / - MIN ( + 1 )
----
-86

query I rowsort
SELECT ALL 39 * - 14 AS col0
----
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT 57 + 29 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT 57 + 29 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 33 * + 20 AS col1
----
660

query II rowsort
SELECT + ( + + 44 ) * + + 31 * - 15 * - 37 AS col1, 20 + 75
----
757020
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL SUM( ALL + 27 ) + 29 - 3 * 4 + - 11 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL SUM ( ALL + 27 ) + 29 - 3 * 4 + - 11 AS col1
----
33

query I rowsort
SELECT DISTINCT 97 * - 63 AS col0
----
-6111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3775
SELECT ALL 62 + 63 + - MAX( DISTINCT - + ( + 17 ) ) DIV - - 54 * - 26 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL 62 + 63 + - MAX ( DISTINCT - + ( + 17 ) ) / - - 54 * - 26 AS col1
----
125

query I rowsort
SELECT - CASE 39 WHEN - 35 THEN + 77 WHEN + + ( - 52 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT ALL NULLIF ( + - COUNT( + 52 ), - CAST( NULL AS SIGNED ) + - 4 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL NULLIF ( + - COUNT ( + 52 ), - CAST ( NULL AS INTEGER ) + - 4 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 61 + + 1 + + ( + 61 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT + 35 * + - ( + - 44 ) + 36 * + SUM( ALL + 51 ) * - 50
----
-90260

skipif mysql # not compatible
query I rowsort label-3779
SELECT + 35 * + - ( + - 44 ) + 36 * + SUM ( ALL + 51 ) * - 50
----
-90260

query I rowsort
SELECT + 53 - - 83 AS col0
----
136

query I rowsort
SELECT ALL + - 6 col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3782
SELECT - - 80 * - - 44 + + 0 col2, + ( + + 81 ) * - + 19 - - NULLIF ( - SUM( 7 ), + ( + 40 ) ) + - + 90 AS col1
----
3520
-1636

skipif mysql # not compatible
query II rowsort label-3782
SELECT - - 80 * - - 44 + + 0 col2, + ( + + 81 ) * - + 19 - - NULLIF ( - SUM ( 7 ), + ( + 40 ) ) + - + 90 AS col1
----
3520
-1636

query II rowsort
SELECT ALL + ( - 6 ), 25 AS col1
----
-6
25

query I rowsort
SELECT 19 * - - 47 * 37 + + COALESCE ( - 74, - 54, - - 76 ) + - 86 + - 28 - - + 66 + - 40 AS col2
----
32879

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT + MIN( ALL 22 ) * + + 67 * 62 * - + COUNT( * ) col2
----
-91388

skipif mysql # not compatible
query I rowsort label-3785
SELECT + MIN ( ALL 22 ) * + + 67 * 62 * - + COUNT ( * ) col2
----
-91388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT - CAST( NULL AS SIGNED ) * - ( - 76 ) + - ( + - 30 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT - CAST ( NULL AS INTEGER ) * - ( - 76 ) + - ( + - 30 ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL + + COALESCE ( 13, - COUNT( ALL 98 ), + + 9 )
----
13

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + + COALESCE ( 13, - COUNT ( ALL 98 ), + + 9 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT DISTINCT + + CASE + 32 WHEN - 39 THEN + - 36 + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT + + CASE + 32 WHEN - 39 THEN + - 36 + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL + SUM( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL + SUM ( + 94 )
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3790
SELECT DISTINCT + 90 * 73 * 79 AS col1, CAST( NULL AS DECIMAL ) AS col2
----
519030
NULL

skipif mysql # not compatible
query II rowsort label-3790
SELECT DISTINCT + 90 * 73 * 79 AS col1, CAST ( NULL AS REAL ) AS col2
----
519030
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT COUNT( * ) * + 78 - + 42 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3791
SELECT COUNT ( * ) * + 78 - + 42 AS col0
----
36

query II rowsort
SELECT ALL + 96 AS col2, 90 col0
----
96
90

query I rowsort
SELECT ALL + 73 * - - 76 AS col2
----
5548

query II rowsort
SELECT ALL + 41 AS col1, + ( - 65 ) AS col2
----
41
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3795
SELECT - CAST( + 9 AS SIGNED ) * + 42 AS col0, 93 + - - 93
----
-378
186

skipif mysql # not compatible
query II rowsort label-3795
SELECT - CAST ( + 9 AS INTEGER ) * + 42 AS col0, 93 + - - 93
----
-378
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3796
SELECT DISTINCT + 91 * + CAST( COUNT( * ) AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + 91 * + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
91

query II rowsort
SELECT 0 * 30 * + 19 + 74 * ( + - 22 ) AS col2, + 38 * + 53 AS col0
----
-1628
2014

query I rowsort
SELECT ALL - 73 * 94 AS col1
----
-6862

onlyif mysql # aggregate syntax: 
query II rowsort label-3799
SELECT - COUNT( * ) AS col1, COALESCE ( 49, - - 67 * + + 39 )
----
-1
49

skipif mysql # not compatible
query II rowsort label-3799
SELECT - COUNT ( * ) AS col1, COALESCE ( 49, - - 67 * + + 39 )
----
-1
49

query I rowsort
SELECT - 22 * - 64 col1
----
1408

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - SUM( - 80 ) + - - COUNT( * ) + 46 * - - 12
----
633

skipif mysql # not compatible
query I rowsort label-3801
SELECT - SUM ( - 80 ) + - - COUNT ( * ) + 46 * - - 12
----
633

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT MIN( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3802
SELECT MIN ( + 68 ) AS col0
----
68

query I rowsort
SELECT ALL + 28 + - 22
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT ALL - 74 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL - 74 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT - COUNT( * ) AS col2, ( + 25 ) * + - COUNT( * ) * + - 12
----
-1
300

skipif mysql # not compatible
query II rowsort label-3805
SELECT - COUNT ( * ) AS col2, ( + 25 ) * + - COUNT ( * ) * + - 12
----
-1
300

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL 86 + + NULLIF ( + + 99, - COUNT( * ) ) - - 53 AS col1
----
238

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL 86 + + NULLIF ( + + 99, - COUNT ( * ) ) - - 53 AS col1
----
238

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3807
SELECT ALL COUNT( * ) + - 13 * - CAST( NULL AS DECIMAL ) * 3 * NULLIF ( + 66, - 77 ) * + MIN( - 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL COUNT ( * ) + - 13 * - CAST ( NULL AS REAL ) * 3 * NULLIF ( + 66, - 77 ) * + MIN ( - 20 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3808
SELECT - ( - 37 ) + + - 32 * - MAX( - COALESCE ( - 5, - + 53 * + + 78 * + 48 ) ) * COUNT( * ) + + 39 DIV 24 * - COUNT( * ) AS col1, 32 + + 70 AS col1
----
196
102

skipif mysql # not compatible
query II rowsort label-3808
SELECT - ( - 37 ) + + - 32 * - MAX ( - COALESCE ( - 5, - + 53 * + + 78 * + 48 ) ) * COUNT ( * ) + + 39 / 24 * - COUNT ( * ) AS col1, 32 + + 70 AS col1
----
196
102

query I rowsort
SELECT ALL 38 * 54
----
2052

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT + 44 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-3810
SELECT + 44 / - 81
----
0

query I rowsort
SELECT ALL - 29 + 97
----
68

query II rowsort
SELECT 39 AS col1, - 68 AS col2
----
39
-68

query I rowsort
SELECT - + 50 * + 67 AS col1
----
-3350

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT - COUNT( * ) + 87 * COUNT( * ) * - 65 AS col2
----
-5656

skipif mysql # not compatible
query I rowsort label-3814
SELECT - COUNT ( * ) + 87 * COUNT ( * ) * - 65 AS col2
----
-5656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3815
SELECT + + 11 - + 26 + - 83 * + ( + - 70 ) + 52 * - 64 + + COALESCE ( 20, + 64 * 58 + - 80 ) + + 78 * + COUNT( * ) + - 32 + - CASE 58 WHEN - CAST( - 22 AS SIGNED ) THEN + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3815
SELECT + + 11 - + 26 + - 83 * + ( + - 70 ) + 52 * - 64 + + COALESCE ( 20, + 64 * 58 + - 80 ) + + 78 * + COUNT ( * ) + - 32 + - CASE 58 WHEN - CAST ( - 22 AS INTEGER ) THEN + 78 END
----
NULL

query I rowsort
SELECT ALL + ( + 96 ) * - 50
----
-4800

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT ALL + + COUNT( * ) * + 67 * - + COUNT( * ) * + 98 AS col1, - COUNT( * ) col1
----
-6566
-1

skipif mysql # not compatible
query II rowsort label-3817
SELECT ALL + + COUNT ( * ) * + 67 * - + COUNT ( * ) * + 98 AS col1, - COUNT ( * ) col1
----
-6566
-1

query I rowsort
SELECT DISTINCT - 37 + - + 32 * - 87 * - 27 AS col1
----
-75205

query I rowsort
SELECT - - 58 AS col1
----
58

query I rowsort
SELECT DISTINCT 52 + 25 col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3821
SELECT - + 35 AS col2, + 8 * + 79 * 24 / + + COUNT( * ) + - CAST( NULL AS SIGNED ) + + - 24 - 43 AS col0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-3821
SELECT - + 35 AS col2, + 8 * + 79 * 24 / + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + - 24 - 43 AS col0
----
-35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT + + COUNT( * ) + + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3822
SELECT + + COUNT ( * ) + + 68 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT + 54 * + - COUNT( * ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3823
SELECT + 54 * + - COUNT ( * ) AS col0
----
-54

query I rowsort
SELECT + - 68 - + + 50 + + 11 * + - 92
----
-1130

query I rowsort
SELECT ALL + 63 * - 53 col2
----
-3339

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + - 24 + + + 2 - 67 * - COUNT( * ) * - - 48 + - + 44 col2
----
3150

skipif mysql # not compatible
query I rowsort label-3826
SELECT + - 24 + + + 2 - 67 * - COUNT ( * ) * - - 48 + - + 44 col2
----
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3827
SELECT ALL + COUNT( * ) DIV + + 30 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + COUNT ( * ) / + + 30 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT DISTINCT + SUM( ALL + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT + SUM ( ALL + 74 )
----
74

query I rowsort
SELECT + ( 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT + CASE - 14 WHEN 0 * - MIN( ALL - 45 ) - 10 - - - ( - ( + + COUNT( * ) ) ) THEN + 0 ELSE NULL END + + 88 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3830
SELECT + CASE - 14 WHEN 0 * - MIN ( ALL - 45 ) - 10 - - - ( - ( + + COUNT ( * ) ) ) THEN + 0 ELSE NULL END + + 88 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3831
SELECT - CAST( NULL AS SIGNED ) * - 6 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT - CAST ( NULL AS INTEGER ) * - 6 * - 48
----
NULL

query I rowsort
SELECT + 4 * + 40 col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT - COALESCE ( + 52, + COUNT( * ) ) + - 89
----
-141

skipif mysql # not compatible
query I rowsort label-3833
SELECT - COALESCE ( + 52, + COUNT ( * ) ) + - 89
----
-141

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3834
SELECT ALL - 32 DIV - - CAST( - 33 AS SIGNED ) * - 8 AS col1, - 94 DIV - - 90 AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-3834
SELECT ALL - 32 / - - CAST ( - 33 AS INTEGER ) * - 8 AS col1, - 94 / - - 90 AS col1
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ( - + MIN( - 48 ) )
----
48

skipif mysql # not compatible
query I rowsort label-3835
SELECT ( - + MIN ( - 48 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT 5 + + 3 - - SUM( DISTINCT - - 37 )
----
45

skipif mysql # not compatible
query I rowsort label-3836
SELECT 5 + + 3 - - SUM ( DISTINCT - - 37 )
----
45

query I rowsort
SELECT ALL - 42 + 70 + - 98 AS col0
----
-70

query I rowsort
SELECT DISTINCT + 15 + 96
----
111

query II rowsort
SELECT DISTINCT - ( - 80 ) + + 76 * - 34 col0, 14
----
-2504
14

query I rowsort
SELECT DISTINCT - 25 + + + ( + - 20 ) + 53
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3841
SELECT CAST( NULL AS SIGNED ) + - 92 AS col0, - 29 AS col2
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-3841
SELECT CAST ( NULL AS INTEGER ) + - 92 AS col0, - 29 AS col2
----
NULL
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3842
SELECT - CAST( NULL AS DECIMAL ) + + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3842
SELECT - CAST ( NULL AS REAL ) + + + 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3843
SELECT ALL - + 93 + - 12 + + - 19 * + + 64 * + 35 AS col1, 9 * - 44 + + 73 + 37 + + MIN( 97 ) AS col2
----
-42665
-189

skipif mysql # not compatible
query II rowsort label-3843
SELECT ALL - + 93 + - 12 + + - 19 * + + 64 * + 35 AS col1, 9 * - 44 + + 73 + 37 + + MIN ( 97 ) AS col2
----
-42665
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - 67 + 75 * + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3844
SELECT - 67 + 75 * + + COUNT ( * )
----
8

query II rowsort
SELECT 73 * + + 74 AS col1, + 75
----
5402
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT DISTINCT + 52 - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + 52 - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 33 * - 48
----
-1584

query II rowsort
SELECT - 16 + 16, 25 * - + 93 - + 87 * + - 26 AS col1
----
0
-63

query I rowsort
SELECT DISTINCT 86 * - + 23 + - 41 AS col0
----
-2019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3850
SELECT ALL - CAST( NULL AS SIGNED ) * + 97 * + + 40 + - + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - CAST ( NULL AS INTEGER ) * + 97 * + + 40 + - + 19
----
NULL

query II rowsort
SELECT 73 + 32 AS col2, CASE - - 84 WHEN + 11 THEN NULL WHEN + ( 69 ) THEN + 85 END + + 36 + + + 51 / 70 - 33
----
105
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT - 89 * + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT - 89 * + - COUNT ( * )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT 21 * + CAST( NULL AS SIGNED ) + - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT 21 * + CAST ( NULL AS INTEGER ) + - 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + - COUNT( ALL + - ( + 57 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3854
SELECT + - COUNT ( ALL + - ( + 57 ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - + 36 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3856
SELECT CASE + 15 WHEN + 36 + CAST( NULL AS DECIMAL ) * 82 THEN + + 11 ELSE - 0 * ( + + 77 ) + + 46 END - - 73 * - - 58 + - 31 * - COUNT( * ) * - NULLIF ( 59, - 47 )
----
2451

skipif mysql # not compatible
query I rowsort label-3856
SELECT CASE + 15 WHEN + 36 + CAST ( NULL AS REAL ) * 82 THEN + + 11 ELSE - 0 * ( + + 77 ) + + 46 END - - 73 * - - 58 + - 31 * - COUNT ( * ) * - NULLIF ( 59, - 47 )
----
2451

query II rowsort
SELECT 71, 43 * - 3 AS col1
----
71
-129

query I rowsort
SELECT DISTINCT 10 + - + 11 AS col2
----
-1

query I rowsort
SELECT ALL 69 + + 95
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + COUNT( * ) * 38 * - COALESCE ( 39, - 81 + 80, COUNT( + COALESCE ( 55, + 29 ) ) ) - ( - + 98 ) AS col1
----
-1384

skipif mysql # not compatible
query I rowsort label-3860
SELECT + COUNT ( * ) * 38 * - COALESCE ( 39, - 81 + 80, COUNT ( + COALESCE ( 55, + 29 ) ) ) - ( - + 98 ) AS col1
----
-1384

query I rowsort
SELECT DISTINCT 74 + - - 82 col0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT + 81 * - + 21 * - - COALESCE ( 67, 11 * + - 12, + 50 ) + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-113966

skipif mysql # not compatible
query I rowsort label-3862
SELECT + 81 * - + 21 * - - COALESCE ( 67, 11 * + - 12, + 50 ) + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-113966

query I rowsort
SELECT 95 + - 37
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ( 59 ) + - + 60 + + - ( - 99 ) + 54 * COUNT( * ) - - 23
----
175

skipif mysql # not compatible
query I rowsort label-3864
SELECT ( 59 ) + - + 60 + + - ( - 99 ) + 54 * COUNT ( * ) - - 23
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT 39 - - COUNT( * ) + + 23
----
63

skipif mysql # not compatible
query I rowsort label-3865
SELECT 39 - - COUNT ( * ) + + 23
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - COUNT( * ) * + - 39 + 15 + 30 + COUNT( * ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3866
SELECT - COUNT ( * ) * + - 39 + 15 + 30 + COUNT ( * ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT - + ( ( - CASE WHEN 78 IS NOT NULL THEN 80 * + - COUNT( ALL - 99 ) WHEN ( NOT SUM( - 16 ) * - 29 IS NULL ) THEN - COUNT( * ) ELSE - MIN( DISTINCT - + 31 ) + - 80 END ) )
----
-80

skipif mysql # not compatible
query I rowsort label-3867
SELECT - + ( ( - CASE WHEN 78 IS NOT NULL THEN 80 * + - COUNT ( ALL - 99 ) WHEN ( NOT SUM ( - 16 ) * - 29 IS NULL ) THEN - COUNT ( * ) ELSE - MIN ( DISTINCT - + 31 ) + - 80 END ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3868
SELECT COUNT( * ) + - ( 96 ) - CAST( NULL AS SIGNED ) * + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT COUNT ( * ) + - ( 96 ) - CAST ( NULL AS INTEGER ) * + 75 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT ALL 16, COUNT( * ) AS col2
----
16
1

skipif mysql # not compatible
query II rowsort label-3869
SELECT ALL 16, COUNT ( * ) AS col2
----
16
1

query I rowsort
SELECT - - 72 col2
----
72

query II rowsort
SELECT 86 AS col0, 23 AS col1
----
86
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT - 18 - - CAST( - ( 42 ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-3872
SELECT - 18 - - CAST ( - ( 42 ) AS INTEGER )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3873
SELECT 52 + - CASE + - 63 WHEN ( + 8 ) / + - MIN( DISTINCT - - 68 ) + - CAST( NULL AS SIGNED ) THEN 50 / + - 95 + + 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT 52 + - CASE + - 63 WHEN ( + 8 ) / + - MIN ( DISTINCT - - 68 ) + - CAST ( NULL AS INTEGER ) THEN 50 / + - 95 + + 68 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3874
SELECT 98 * 64 * MAX( + CAST( NULL AS SIGNED ) ) + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT 98 * 64 * MAX ( + CAST ( NULL AS INTEGER ) ) + - 35
----
NULL

query I rowsort
SELECT DISTINCT + 35 * - - 5 AS col2
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + ( - 99 ) - - SUM( + 81 )
----
-18

skipif mysql # not compatible
query I rowsort label-3876
SELECT + ( - 99 ) - - SUM ( + 81 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT 21 - + - MIN( DISTINCT + 14 ) / + 52 * - + 29 / CASE + + 38 WHEN COUNT( * ) THEN + + 37 WHEN + ( - + ( SUM( DISTINCT 19 ) ) ) THEN NULL END * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT 21 - + - MIN ( DISTINCT + 14 ) / + 52 * - + 29 / CASE + + 38 WHEN COUNT ( * ) THEN + + 37 WHEN + ( - + ( SUM ( DISTINCT 19 ) ) ) THEN NULL END * - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT - SUM( ALL - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-3878
SELECT - SUM ( ALL - 24 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT 69 DIV + 24
----
2

skipif mysql # not compatible
query I rowsort label-3879
SELECT 69 / + 24
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT + 8 DIV - 50 * ( 58 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3880
SELECT + 8 / - 50 * ( 58 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 32 * - 40
----
-1280

query I rowsort
SELECT 41 * + ( + - 36 ) * + 5 + - + 87 col1
----
-7467

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT 96 - COUNT( DISTINCT - 12 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3883
SELECT 96 - COUNT ( DISTINCT - 12 ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT ALL 9 * + 43 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL 9 * + 43 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT - COUNT( * ) * - + COUNT( * ) - 57
----
-56

skipif mysql # not compatible
query I rowsort label-3885
SELECT - COUNT ( * ) * - + COUNT ( * ) - 57
----
-56

query I rowsort
SELECT DISTINCT + ( + + 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT ALL - 69 * + - COUNT( DISTINCT - 80 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL - 69 * + - COUNT ( DISTINCT - 80 ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL 46 * - + 79 + - - COUNT( * )
----
-3633

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL 46 * - + 79 + - - COUNT ( * )
----
-3633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3889
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 8 + - 94 - COUNT( * ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 8 + - 94 - COUNT ( * ) * + 73
----
NULL

query I rowsort
SELECT ALL 90 * - 4 + - 2 * - 98 AS col2
----
-164

query I rowsort
SELECT + 4 + - 56 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT + ( + 39 ) * + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3892
SELECT + ( + 39 ) * + COUNT ( * ) AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3893
SELECT + 97 + + - 52 + COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) + - NULLIF ( - - 95, - 24 / CASE + 80 WHEN - 85 * + ( + 8 ) THEN NULL WHEN - 47 * 4 THEN - - 2 + 73 + - 95 * - - COUNT( * ) WHEN + COUNT( * ) + - COUNT( * ) THEN + + 7 * - 91 * + + 94 + + - 87 + COUNT( * ) + - - 55 ELSE - 87 END ), + 78 * - + COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-3893
SELECT + 97 + + - 52 + COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) + - NULLIF ( - - 95, - 24 / CASE + 80 WHEN - 85 * + ( + 8 ) THEN NULL WHEN - 47 * 4 THEN - - 2 + 73 + - 95 * - - COUNT ( * ) WHEN + COUNT ( * ) + - COUNT ( * ) THEN + + 7 * - 91 * + + 94 + + - 87 + COUNT ( * ) + - - 55 ELSE - 87 END ), + 78 * - + COUNT ( * ) )
----
44

query I rowsort
SELECT DISTINCT + ( 13 ) AS col1
----
13

query I rowsort
SELECT ALL ( - - 35 ) - 73 AS col1
----
-38

query I rowsort
SELECT + 61 * CASE WHEN 32 >= 54 THEN + 17 + - 1 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 7 * + 30 + - 71
----
-281

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT - NULLIF ( + - 23, + CASE - 92 WHEN COALESCE ( + 18, + SUM( - 23 ) ) THEN NULL WHEN - - SUM( ALL - 37 ) + - COUNT( + 63 ) THEN - COUNT( * ) ELSE NULL END ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3898
SELECT - NULLIF ( + - 23, + CASE - 92 WHEN COALESCE ( + 18, + SUM ( - 23 ) ) THEN NULL WHEN - - SUM ( ALL - 37 ) + - COUNT ( + 63 ) THEN - COUNT ( * ) ELSE NULL END ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT ALL 72 AS col1, - 85 + - COUNT( * ) AS col1
----
72
-86

skipif mysql # not compatible
query II rowsort label-3899
SELECT ALL 72 AS col1, - 85 + - COUNT ( * ) AS col1
----
72
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + COUNT( * ) + + COUNT( * ) + - 60 - - 79 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3900
SELECT + COUNT ( * ) + + COUNT ( * ) + - 60 - - 79 AS col0
----
21

query II rowsort
SELECT - 99 AS col2, 99 AS col2
----
-99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3902
SELECT + 93 DIV + 79 + + 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3902
SELECT + 93 / + 79 + + 67 AS col0
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-3903
SELECT - 83, 26 DIV - 64 + - + 41 - 59 AS col2
----
-83
-100

skipif mysql # not compatible
query II rowsort label-3903
SELECT - 83, 26 / - 64 + - + 41 - 59 AS col2
----
-83
-100

query II rowsort
SELECT ALL 94 AS col1, 34 + 25
----
94
59

query I rowsort
SELECT + 15 + - ( - - 82 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3906
SELECT + 20 - + 45, + MIN( + 3 ) DIV 90 * + COUNT( * ) + - + CAST( + + CASE 43 WHEN + 6 THEN - 6 ELSE 43 + - 2 - - 87 END AS SIGNED ) + - 58 + + - 78 * 67 - + - SUM( ALL ( 78 ) ) AS col1
----
-25
-5334

skipif mysql # not compatible
query II rowsort label-3906
SELECT + 20 - + 45, + MIN ( + 3 ) / 90 * + COUNT ( * ) + - + CAST ( + + CASE 43 WHEN + 6 THEN - 6 ELSE 43 + - 2 - - 87 END AS INTEGER ) + - 58 + + - 78 * 67 - + - SUM ( ALL ( 78 ) ) AS col1
----
-25
-5334

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT + + 86 * + + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3907
SELECT + + 86 * + + COUNT ( * ) AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3908
SELECT - + 81 + CAST( - - COUNT( * ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-3908
SELECT - + 81 + CAST ( - - COUNT ( * ) AS INTEGER )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3909
SELECT - CASE - + 16 WHEN - + 57 * - + 7 + COUNT( * ) THEN 72 + 49 * - - 78 WHEN 6 * + CAST( + ( - - MAX( ALL + 74 ) ) AS SIGNED ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT - CASE - + 16 WHEN - + 57 * - + 7 + COUNT ( * ) THEN 72 + 49 * - - 78 WHEN 6 * + CAST ( + ( - - MAX ( ALL + 74 ) ) AS INTEGER ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT - 79 + - ( COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-3910
SELECT - 79 + - ( COUNT ( * ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL COUNT( * ) + ( + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL COUNT ( * ) + ( + COUNT ( * ) )
----
2

query II rowsort
SELECT ALL 68 AS col2, 70
----
68
70

query II rowsort
SELECT 0 AS col2, 23 AS col0
----
0
23

query II rowsort
SELECT DISTINCT 35 AS col1, - 71
----
35
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + 45 * + - 51 * 8 * - 13 + - CASE 89 WHEN - 12 + - 64 THEN - COUNT( * ) / - ( 85 ) WHEN ( + 38 ) THEN - + 47 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT + 45 * + - 51 * 8 * - 13 + - CASE 89 WHEN - 12 + - 64 THEN - COUNT ( * ) / - ( 85 ) WHEN ( + 38 ) THEN - + 47 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3916
SELECT - CAST( NULL AS SIGNED ) + - - 98 + + 26 * - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT - CAST ( NULL AS INTEGER ) + - - 98 + + 26 * - 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT ALL - SUM( - - 93 ) + - 24 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-3917
SELECT ALL - SUM ( - - 93 ) + - 24 AS col0
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT - CAST( 8 AS SIGNED ) * + - 90 + - 49 AS col2
----
671

skipif mysql # not compatible
query I rowsort label-3918
SELECT - CAST ( 8 AS INTEGER ) * + - 90 + - 49 AS col2
----
671

onlyif mysql # DIV for integer division: 
query I rowsort label-3919
SELECT DISTINCT + NULLIF ( - - 98, 12 ) DIV - 3 col1
----
-32

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT + NULLIF ( - - 98, 12 ) / - 3 col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3920
SELECT DISTINCT 42 / - 6 * + CAST( NULL AS SIGNED ) + - - CAST( + - 64 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT 42 / - 6 * + CAST ( NULL AS INTEGER ) + - - CAST ( + - 64 AS REAL )
----
NULL

query I rowsort
SELECT ALL + 83 * + 57
----
4731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT - CAST( NULL AS SIGNED ) * 62 * - - ( - COALESCE ( - 69, - 11 - 50 / + - 25 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT - CAST ( NULL AS INTEGER ) * 62 * - - ( - COALESCE ( - 69, - 11 - 50 / + - 25 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT - 45 * + SUM( + - 39 ) AS col2
----
1755

skipif mysql # not compatible
query I rowsort label-3923
SELECT - 45 * + SUM ( + - 39 ) AS col2
----
1755

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT + 36 DIV + 37 * - + 16 - 40 + 22 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3924
SELECT + 36 / + 37 * - + 16 - 40 + 22 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + MAX( + + 74 ) col0
----
74

skipif mysql # not compatible
query I rowsort label-3925
SELECT + MAX ( + + 74 ) col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL + CASE - + 46 WHEN - 3 * + 83 THEN - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + CASE - + 46 WHEN - 3 * + 83 THEN - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 92 - 18
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT + 98 DIV ( + 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3928
SELECT + 98 / ( + 61 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3929
SELECT - 9 * - 14 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT - 9 * - 14 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT DISTINCT - 66 * - ( + CAST( - CASE WHEN ( NULL ) = 70 THEN + + NULLIF ( - - 66, + 94 ) WHEN NOT + 41 BETWEEN NULL AND + 0 THEN NULL ELSE NULL END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT - 66 * - ( + CAST ( - CASE WHEN ( NULL ) = 70 THEN + + NULLIF ( - - 66, + 94 ) WHEN NOT + 41 BETWEEN NULL AND + 0 THEN NULL ELSE NULL END AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT ALL + 93 * CASE + COUNT( * ) WHEN - 72 + - 6 + 37 * - 73 * 5 + + COUNT( * ) + - 78 * + 68 * + 81 + - NULLIF ( 57, + COALESCE ( + ( + 60 ), - COUNT( * ), 93 * 15 * + - 7 ) ) * 75 THEN - 49 WHEN + COUNT( - - 65 ) + - 59 THEN - COUNT( * ) ELSE NULL END - - - 9 + + + NULLIF ( - 90, - CAST( NULL AS SIGNED ) * - 78 - 0 ) * + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + 93 * CASE + COUNT ( * ) WHEN - 72 + - 6 + 37 * - 73 * 5 + + COUNT ( * ) + - 78 * + 68 * + 81 + - NULLIF ( 57, + COALESCE ( + ( + 60 ), - COUNT ( * ), 93 * 15 * + - 7 ) ) * 75 THEN - 49 WHEN + COUNT ( - - 65 ) + - 59 THEN - COUNT ( * ) ELSE NULL END - - - 9 + + + NULLIF ( - 90, - CAST ( NULL AS INTEGER ) * - 78 - 0 ) * + 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ( - - SUM( + 53 ) )
----
53

skipif mysql # not compatible
query I rowsort label-3932
SELECT ( - - SUM ( + 53 ) )
----
53

query I rowsort
SELECT ALL + COALESCE ( 54, + 96 + - 85 ) AS col2
----
54

query I rowsort
SELECT ALL + 21 * + - 70 AS col2
----
-1470

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT - 38 - NULLIF ( + 88, ( - + COUNT( * ) ) + + 29 ) * + 35 AS col2, - COUNT( * ) * 6 AS col0
----
-3118
-6

skipif mysql # not compatible
query II rowsort label-3935
SELECT - 38 - NULLIF ( + 88, ( - + COUNT ( * ) ) + + 29 ) * + 35 AS col2, - COUNT ( * ) * 6 AS col0
----
-3118
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + SUM( ALL - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + SUM ( ALL - 1 ) AS col2
----
-1

query I rowsort
SELECT + 38 - - 44
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT + 60 * COUNT( * ) * + COALESCE ( CASE + 11 WHEN 46 THEN - 1 * + - 86 * - - 77 * + 55 ELSE + ( - 36 ) END, - 60, - - 42 * + SUM( - - 82 ) + 25 - + 78 ) AS col2
----
-2160

skipif mysql # not compatible
query I rowsort label-3938
SELECT + 60 * COUNT ( * ) * + COALESCE ( CASE + 11 WHEN 46 THEN - 1 * + - 86 * - - 77 * + 55 ELSE + ( - 36 ) END, - 60, - - 42 * + SUM ( - - 82 ) + 25 - + 78 ) AS col2
----
-2160

query I rowsort
SELECT - - COALESCE ( + 26, + 85 ) AS col2
----
26

query I rowsort
SELECT ALL + 46 * - 81 * - 43 * - + 91 * - 4 + 96
----
58319448

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT + + 40 DIV - 21
----
-1

skipif mysql # not compatible
query I rowsort label-3941
SELECT + + 40 / - 21
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL - COUNT( * ) * + 17 + 31 * 63 AS col0
----
1936

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL - COUNT ( * ) * + 17 + 31 * 63 AS col0
----
1936

query I rowsort
SELECT - NULLIF ( - 14, + + NULLIF ( + 69, 23 * + - 34 ) )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT 19 + - 47 + COUNT( 60 ) + - - COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT 19 + - 47 + COUNT ( 60 ) + - - COUNT ( * ) AS col2
----
-26

query I rowsort
SELECT + 63 * - + 70
----
-4410

onlyif mysql # aggregate syntax: 
query II rowsort label-3946
SELECT ALL 37 + + 96 + 29 + 64 - + + 58 col2, + 77 * + COUNT( * ) + - + 53 * + 62
----
168
-3209

skipif mysql # not compatible
query II rowsort label-3946
SELECT ALL 37 + + 96 + 29 + 64 - + + 58 col2, + 77 * + COUNT ( * ) + - + 53 * + 62
----
168
-3209

query I rowsort
SELECT + + 89 + 90
----
179

onlyif mysql # aggregate syntax: 
query II rowsort label-3948
SELECT - + MAX( - + 99 ) AS col1, MIN( ALL - + 39 )
----
99
-39

skipif mysql # not compatible
query II rowsort label-3948
SELECT - + MAX ( - + 99 ) AS col1, MIN ( ALL - + 39 )
----
99
-39

query I rowsort
SELECT + 29 + 89 AS col2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3950
SELECT 27 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT 27 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3951
SELECT ALL 52 / + CAST( NULL AS SIGNED ) * - 8, 51 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3951
SELECT ALL 52 / + CAST ( NULL AS INTEGER ) * - 8, 51 AS col1
----
NULL
51

query II rowsort
SELECT 81, 2 * + - 32 AS col0
----
81
-64

query I rowsort
SELECT DISTINCT 23 + 24 * + 2
----
71

query I rowsort
SELECT ALL + 15 * + 62 AS col2
----
930

query I rowsort
SELECT ALL 58 + 90 + - ( 43 ) + 7 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT MIN( 31 ) + 39 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3956
SELECT MIN ( 31 ) + 39 AS col1
----
70

query II rowsort
SELECT DISTINCT - 47 col2, + 59 + 55
----
-47
114

query I rowsort
SELECT + 63 * + 63 + + 83
----
4052

query I rowsort
SELECT 21 * 27 AS col1
----
567

onlyif mysql # DIV for integer division: 
query I rowsort label-3960
SELECT 4 + + 78 + + 77 DIV 1 * + 86 * 77
----
509976

skipif mysql # not compatible
query I rowsort label-3960
SELECT 4 + + 78 + + 77 / 1 * + 86 * 77
----
509976

query I rowsort
SELECT 11 * - - 69 * ( ( + 3 ) )
----
2277

query II rowsort
SELECT DISTINCT 92 * 13 * + + 32, 71 col2
----
38272
71

query I rowsort
SELECT DISTINCT 9 * + ( ( + + 24 ) )
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT 16 * + 54 + 74 + + - ( + + 2 ) * + COUNT( * ) * - COUNT( * ) * - + 32 * + - 21 + - 17
----
2265

skipif mysql # not compatible
query I rowsort label-3964
SELECT 16 * + 54 + 74 + + - ( + + 2 ) * + COUNT ( * ) * - COUNT ( * ) * - + 32 * + - 21 + - 17
----
2265

query I rowsort
SELECT - 31 * - 27 + + + 36 * - 49
----
-927

query I rowsort
SELECT + + 73 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT COUNT( * ) + + + 0
----
1

skipif mysql # not compatible
query I rowsort label-3967
SELECT COUNT ( * ) + + + 0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT 4 * - 32 + - CAST( + 48 AS SIGNED ) * 98
----
-4832

skipif mysql # not compatible
query I rowsort label-3968
SELECT 4 * - 32 + - CAST ( + 48 AS INTEGER ) * 98
----
-4832

query I rowsort
SELECT DISTINCT + - 63 + + 75
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT ALL - CAST( - 43 AS SIGNED ) + - + ( + 54 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL - CAST ( - 43 AS INTEGER ) + - + ( + 54 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL + 6 + COUNT( * ) + + 48 * 22
----
1063

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL + 6 + COUNT ( * ) + + 48 * 22
----
1063

query II rowsort
SELECT - 68 AS col2, - 73 AS col1
----
-68
-73

query I rowsort
SELECT DISTINCT + 73 + 75 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT MIN( - 82 ) + + + COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3974
SELECT MIN ( - 82 ) + + + COUNT ( * ) AS col0
----
-81

query I rowsort
SELECT - ( - - 0 ) * 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL - 23 + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL - 23 + + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3977
SELECT + 53 AS col0, - SUM( ALL - + 98 ) + - 64
----
53
34

skipif mysql # not compatible
query II rowsort label-3977
SELECT + 53 AS col0, - SUM ( ALL - + 98 ) + - 64
----
53
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT 96 + + COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3978
SELECT 96 + + COUNT ( * ) AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3979
SELECT ALL - COUNT( ALL + 77 ) + + - ( 28 ) DIV - 85 * 28
----
-1

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL - COUNT ( ALL + 77 ) + + - ( 28 ) / - 85 * 28
----
-1

query I rowsort
SELECT ALL + ( + - 8 ) AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT DISTINCT + 40 * + 60 + + MAX( - CAST( NULL AS SIGNED ) ) * - - 32 * 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT + 40 * + 60 + + MAX ( - CAST ( NULL AS INTEGER ) ) * - - 32 * 95 AS col1
----
NULL

query I rowsort
SELECT ALL 46 * - 79 AS col1
----
-3634

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT 95 + + - COUNT( ALL 46 ) col0
----
94

skipif mysql # not compatible
query I rowsort label-3983
SELECT 95 + + - COUNT ( ALL 46 ) col0
----
94

query I rowsort
SELECT ALL - 10 - + + 38 * - 37 AS col2
----
1396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT ( + + 43 ) + + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT ( + + 43 ) + + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 79 * + - 86, - 60 + - - ( - 74 ) AS col2
----
-6794
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT COUNT( * ) + + COUNT( * ) + 74 * - + COUNT( * ) * - 47
----
3480

skipif mysql # not compatible
query I rowsort label-3987
SELECT COUNT ( * ) + + COUNT ( * ) + 74 * - + COUNT ( * ) * - 47
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT + 38 * + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT + 38 * + COUNT ( * )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3989
SELECT DISTINCT COUNT( * ) DIV + - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT COUNT ( * ) / + - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL - MAX( + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL - MAX ( + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT 4 * SUM( - + 2 )
----
-8

skipif mysql # not compatible
query I rowsort label-3991
SELECT 4 * SUM ( - + 2 )
----
-8

query I rowsort
SELECT 46 * 50
----
2300

query I rowsort
SELECT DISTINCT 38 * - 80 AS col0
----
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL - COUNT( + - 82 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL - COUNT ( + - 82 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT - 89 DIV 75 - - 84 col1
----
83

skipif mysql # not compatible
query I rowsort label-3995
SELECT - 89 / 75 - - 84 col1
----
83

query II rowsort
SELECT ALL - 79 * 49 AS col2, + ( + 50 ) * - 70 AS col0
----
-3871
-3500

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT 72 * + - CASE + + MIN( + 43 ) WHEN COUNT( * ) THEN + 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT 72 * + - CASE + + MIN ( + 43 ) WHEN COUNT ( * ) THEN + 24 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3998
SELECT DISTINCT 51 + - + NULLIF ( + 92, + CAST( - CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT NULLIF ( - ( 73 ), CAST( + 51 AS SIGNED ) ) NOT IN ( - - CAST( - 89 AS SIGNED ), - 20, COUNT( * ) * - AVG ( DISTINCT + 47 ) * + + 82 - - + 1, - 13 ) AND NOT CAST( NULL AS SIGNED ) * - MIN( + 23 ) IS NULL THEN - CAST( NULL AS SIGNED ) + + 51 * 91 ELSE COUNT( * ) END AS SIGNED ) + 26 ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT 51 + - + NULLIF ( + 92, + CAST ( - CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT NULLIF ( - ( 73 ), CAST ( + 51 AS INTEGER ) ) NOT IN ( - - CAST ( - 89 AS INTEGER ), - 20, COUNT ( * ) * - AVG ( DISTINCT + 47 ) * + + 82 - - + 1, - 13 ) AND NOT CAST ( NULL AS INTEGER ) * - MIN ( + 23 ) IS NULL THEN - CAST ( NULL AS INTEGER ) + + 51 * 91 ELSE COUNT ( * ) END AS INTEGER ) + 26 ) col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3999
SELECT DISTINCT - CAST( - - 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT - CAST ( - - 41 AS INTEGER )
----
-41

query I rowsort
SELECT DISTINCT - ( + 13 ) + 37
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4001
SELECT COUNT( * ) - + - 53, 21 * - 4 col0
----
54
-84

skipif mysql # not compatible
query II rowsort label-4001
SELECT COUNT ( * ) - + - 53, 21 * - 4 col0
----
54
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT DISTINCT + 27 + - + MIN( DISTINCT + - 45 )
----
72

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT + 27 + - + MIN ( DISTINCT + - 45 )
----
72

query I rowsort
SELECT ALL - - 85 + + 36 col1
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4004
SELECT + CAST( - ( - - 96 ) AS SIGNED ) * - - 89 + - + 74 AS col0, + 13 * + COUNT( * ) + + 57 + + 10 + + MIN( ( 47 ) ) AS col0
----
-8618
127

skipif mysql # not compatible
query II rowsort label-4004
SELECT + CAST ( - ( - - 96 ) AS INTEGER ) * - - 89 + - + 74 AS col0, + 13 * + COUNT ( * ) + + 57 + + 10 + + MIN ( ( 47 ) ) AS col0
----
-8618
127

query I rowsort
SELECT + + 34 col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4006
SELECT - - 14 + + 47 * - ( + 13 ) col2, COUNT( * ) DIV - - 36 * + 10
----
-597
0

skipif mysql # not compatible
query II rowsort label-4006
SELECT - - 14 + + 47 * - ( + 13 ) col2, COUNT ( * ) / - - 36 * + 10
----
-597
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4007
SELECT + + 6 * + CASE + + CAST( NULL AS SIGNED ) WHEN - + 83 + 80 * - 5 THEN NULL WHEN + + 68 + - - 91 THEN 79 ELSE + - 60 END - - + CASE 19 WHEN + 13 * COUNT( * ) * + ( + 25 ) / + - 36 + + 56 THEN 36 ELSE + 48 * - + 40 * + 19 + + - ( - 50 ) END + + 71 AS col2
----
-36719

skipif mysql # not compatible
query I rowsort label-4007
SELECT + + 6 * + CASE + + CAST ( NULL AS INTEGER ) WHEN - + 83 + 80 * - 5 THEN NULL WHEN + + 68 + - - 91 THEN 79 ELSE + - 60 END - - + CASE 19 WHEN + 13 * COUNT ( * ) * + ( + 25 ) / + - 36 + + 56 THEN 36 ELSE + 48 * - + 40 * + 19 + + - ( - 50 ) END + + 71 AS col2
----
-36719

query I rowsort
SELECT ALL + - 73 * 53 + + 73
----
-3796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4009
SELECT ALL - 33 - - 3 DIV - 7 * + + COUNT( * ) * - 51 + - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - 33 - - 3 / - 7 * + + COUNT ( * ) * - 51 + - COUNT ( * )
----
-34

query II rowsort
SELECT DISTINCT - + 43 - - 76 AS col0, - 35 AS col0
----
33
-35

query I rowsort
SELECT - 11 + + 13
----
2

query I rowsort
SELECT ALL - 24 * - + 52 * 94
----
117312

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT MAX( DISTINCT - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT MAX ( DISTINCT - 16 ) AS col2
----
-16

query I rowsort
SELECT ALL - 15 * + + 26 * - + 25 * 5 * + ( + 77 ) AS col2
----
3753750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT - CAST( NULL AS SIGNED ) + - 19 + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT - CAST ( NULL AS INTEGER ) + - 19 + + 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT - SUM( DISTINCT - 56 ) * + COUNT( ALL - 9 ) * - SUM( - + 21 )
----
1176

skipif mysql # not compatible
query I rowsort label-4016
SELECT - SUM ( DISTINCT - 56 ) * + COUNT ( ALL - 9 ) * - SUM ( - + 21 )
----
1176

query I rowsort
SELECT + 81 * 37
----
2997

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT - MIN( - + 27 ) + 98
----
125

skipif mysql # not compatible
query I rowsort label-4018
SELECT - MIN ( - + 27 ) + 98
----
125

query I rowsort
SELECT DISTINCT - 79 - 19 + - 36 * 45 * - - 89
----
-144278

query II rowsort
SELECT - 69 + - CASE + - 67 WHEN COALESCE ( - - 94, 76 ) THEN + ( 71 ) * + ( 10 ) ELSE 1 * NULLIF ( - - 1, 36 + - + 10 + 30 ) * 49 * + COALESCE ( - 35, - + 84 ) + - + 35 END AS col2, 64
----
1681
64

query I rowsort
SELECT DISTINCT NULLIF ( 29, - 16 )
----
29

query I rowsort
SELECT - 45 * 18 AS col1
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL CASE - 0 WHEN SUM( + 82 ) THEN SUM( ALL + - 21 ) * - - 95 END * 87 + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL CASE - 0 WHEN SUM ( + 82 ) THEN SUM ( ALL + - 21 ) * - - 95 END * 87 + 64 AS col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( ( - 89 ), + + 71 ) AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4025
SELECT + 39 + + 28 - + 37 * - 68 + - + COUNT( * ) + + COUNT( * ) - + 64 * + 20 + + + CAST( NULL AS DECIMAL ) * - + 44 * + + 48 * 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT + 39 + + 28 - + 37 * - 68 + - + COUNT ( * ) + + COUNT ( * ) - + 64 * + 20 + + + CAST ( NULL AS REAL ) * - + 44 * + + 48 * 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL + 62 * - - COUNT( * ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + 62 * - - COUNT ( * ) AS col1
----
62

query I rowsort
SELECT - 9 * - 21 AS col1
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4028
SELECT + 15 + + 83 DIV COUNT( * ), 5 AS col0
----
98
5

skipif mysql # not compatible
query II rowsort label-4028
SELECT + 15 + + 83 / COUNT ( * ), 5 AS col0
----
98
5

query I rowsort
SELECT - 27 + + 34
----
7

query I rowsort
SELECT ( + + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL + 85 * + COUNT( * ) + 4
----
89

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + 85 * + COUNT ( * ) + 4
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4032
SELECT - CAST( NULL AS SIGNED ) / - - 44 + + 20, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-4032
SELECT - CAST ( NULL AS INTEGER ) / - - 44 + + 20, 83 AS col1
----
NULL
83

query II rowsort
SELECT ALL + 0 AS col2, 80 AS col0
----
0
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + MAX( DISTINCT + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-4034
SELECT + MAX ( DISTINCT + 15 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-4035
SELECT 66, - ( + MIN( 29 ) ) AS col1
----
66
-29

skipif mysql # not compatible
query II rowsort label-4035
SELECT 66, - ( + MIN ( 29 ) ) AS col1
----
66
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL - 10 * 85 + + - 10 + - COUNT( * ) AS col0
----
-861

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL - 10 * 85 + + - 10 + - COUNT ( * ) AS col0
----
-861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT ALL + NULLIF ( - 62, 68 * 7 * - COUNT( * ) + ( + - 70 ) ) / + - CAST( NULL AS SIGNED ) * - + 22 * 70 * - 9 * - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + NULLIF ( - 62, 68 * 7 * - COUNT ( * ) + ( + - 70 ) ) / + - CAST ( NULL AS INTEGER ) * - + 22 * 70 * - 9 * - + 17
----
NULL

query I rowsort
SELECT 78 * 88 * 14 + + 79
----
96175

query I rowsort
SELECT ( + - 86 ) AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT + 42 DIV 47 * + + 94 + - 76 * + 84 * + 89
----
-568176

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 42 / 47 * + + 94 + - 76 * + 84 * + 89
----
-568176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4041
SELECT ALL + MAX( + 85 ) * - 16 + 77 + + COUNT( * ) * CAST( + 94 AS SIGNED ) DIV + 30
----
-1280

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + MAX ( + 85 ) * - 16 + 77 + + COUNT ( * ) * CAST ( + 94 AS INTEGER ) / + 30
----
-1280

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT ALL 46 * - 38 + 20 + + 71 DIV 32 * 47 AS col1
----
-1634

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL 46 * - 38 + 20 + + 71 / 32 * 47 AS col1
----
-1634

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4043
SELECT - 56 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT - 56 + - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL + COUNT( * ) * 74 - 64 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + COUNT ( * ) * 74 - 64 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT ALL - + NULLIF ( - + ( - + 20 ), 76 ) * - ( SUM( DISTINCT + ( 10 ) ) ) - 70
----
130

skipif mysql # not compatible
query I rowsort label-4045
SELECT ALL - + NULLIF ( - + ( - + 20 ), 76 ) * - ( SUM ( DISTINCT + ( 10 ) ) ) - 70
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL + + SUM( + + 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + + SUM ( + + 9 ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4047
SELECT - COUNT( * ) + + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT - COUNT ( * ) + + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT - + 2 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT - + 2 / - 85
----
0

query I rowsort
SELECT + 75 * - 69
----
-5175

query I rowsort
SELECT - 45 + + ( + 42 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT MAX( DISTINCT 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4051
SELECT MAX ( DISTINCT 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT MAX( ALL + ( - 49 ) ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-4052
SELECT MAX ( ALL + ( - 49 ) ) col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4053
SELECT - 81 DIV - - 19
----
-4

skipif mysql # not compatible
query I rowsort label-4053
SELECT - 81 / - - 19
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4054
SELECT + CAST( - 88 AS SIGNED ) * + + 55 * + COUNT( * ) + - + SUM( - 58 ) AS col2
----
-4782

skipif mysql # not compatible
query I rowsort label-4054
SELECT + CAST ( - 88 AS INTEGER ) * + + 55 * + COUNT ( * ) + - + SUM ( - 58 ) AS col2
----
-4782

query I rowsort
SELECT - 99 + - 52 * 26
----
-1451

query II rowsort
SELECT - 37, 64 AS col2
----
-37
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT DISTINCT COUNT( * ) / - - 92 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT COUNT ( * ) / - - 92 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT - 45 DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT - 45 / + - 50
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT ALL CAST( + - 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL CAST ( + - 96 AS INTEGER )
----
-96

query I rowsort
SELECT - 63 + - 31 AS col1
----
-94

query I rowsort
SELECT ALL - 21 + - 7 AS col2
----
-28

query I rowsort
SELECT DISTINCT ( 36 ) col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT - COUNT( 81 ) * + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4063
SELECT - COUNT ( 81 ) * + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4064
SELECT DISTINCT CAST( - 65 AS SIGNED ) AS col1, MIN( - 83 )
----
-65
-83

skipif mysql # not compatible
query II rowsort label-4064
SELECT DISTINCT CAST ( - 65 AS INTEGER ) AS col1, MIN ( - 83 )
----
-65
-83

query I rowsort
SELECT + 85 + ( 69 )
----
154

query I rowsort
SELECT - 55 * + - 92 * + 18 AS col2
----
91080

query I rowsort
SELECT DISTINCT - 3 + - + 80
----
-83

query II rowsort
SELECT DISTINCT + CASE - 16 WHEN + + 48 THEN + 7 END, + NULLIF ( - 80, - - 78 + - - 47 ) * ( + 88 ) AS col0
----
NULL
-7040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT ALL - CAST( + - 20 AS SIGNED ) / COALESCE ( + 70, - 25 ) + + - 85 / - CAST( NULL AS SIGNED ) + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL - CAST ( + - 20 AS INTEGER ) / COALESCE ( + 70, - 25 ) + + - 85 / - CAST ( NULL AS INTEGER ) + 83 AS col2
----
NULL

query II rowsort
SELECT ALL + - 47 AS col1, 57 AS col1
----
-47
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4071
SELECT + 85 * - + ( CAST( NULL AS DECIMAL ) ) - + 97 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + 85 * - + ( CAST ( NULL AS REAL ) ) - + 97 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT - MAX( + + 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4072
SELECT - MAX ( + + 95 ) AS col2
----
-95

query I rowsort
SELECT - 57 - - + 56 * - 57 + + - 28 AS col2
----
-3277

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT 71 * COUNT( + 14 ) + + + CASE + COUNT( * ) WHEN + 95 THEN - 7 ELSE NULL END AS col0, 66 * - 23 + SUM( DISTINCT + + 36 )
----
NULL
-1482

skipif mysql # not compatible
query II rowsort label-4074
SELECT 71 * COUNT ( + 14 ) + + + CASE + COUNT ( * ) WHEN + 95 THEN - 7 ELSE NULL END AS col0, 66 * - 23 + SUM ( DISTINCT + + 36 )
----
NULL
-1482

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT + + NULLIF ( - ( + 23 ), + MIN( + - 92 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-4075
SELECT + + NULLIF ( - ( + 23 ), + MIN ( + - 92 ) )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT + CAST( - AVG ( ALL + + ( + - 16 ) ) AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-4076
SELECT + CAST ( - AVG ( ALL + + ( + - 16 ) ) AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT DISTINCT - 78 AS col1, COALESCE ( - 27, + 82 * - 41 ) + - COUNT( * ) AS col2
----
-78
-28

skipif mysql # not compatible
query II rowsort label-4077
SELECT DISTINCT - 78 AS col1, COALESCE ( - 27, + 82 * - 41 ) + - COUNT ( * ) AS col2
----
-78
-28

query I rowsort
SELECT ALL - - CASE WHEN NOT + 35 IS NULL THEN + 81 * 53 * - + 86 ELSE NULL END AS col1
----
-369198

query II rowsort
SELECT 41 AS col0, ( 32 )
----
41
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4080
SELECT ALL - + 99, CAST( NULL AS SIGNED ) AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-4080
SELECT ALL - + 99, CAST ( NULL AS INTEGER ) AS col0
----
-99
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4081
SELECT 19 * - 44 DIV + COALESCE ( + + CAST( NULL AS SIGNED ), - 9 + - + 54 + - 7 * - - 3 DIV - - COUNT( * ) * + - 93 ) * 92 * 32
----
0

skipif mysql # not compatible
query I rowsort label-4081
SELECT 19 * - 44 / + COALESCE ( + + CAST ( NULL AS INTEGER ), - 9 + - + 54 + - 7 * - - 3 / - - COUNT ( * ) * + - 93 ) * 92 * 32
----
0

query I rowsort
SELECT - 87 + 95 AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4083
SELECT - CASE + MIN( 54 ) WHEN + + 56 THEN - CASE + 20 WHEN - - 45 THEN - 80 ELSE NULL END END * - 69 + - + NULLIF ( - - MAX( 66 ), - CAST( - - 17 AS DECIMAL ) + + 95 * 50 ) + + 34 + - 91 - 89 + + - COALESCE ( 37, + + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT - CASE + MIN ( 54 ) WHEN + + 56 THEN - CASE + 20 WHEN - - 45 THEN - 80 ELSE NULL END END * - 69 + - + NULLIF ( - - MAX ( 66 ), - CAST ( - - 17 AS REAL ) + + 95 * 50 ) + + 34 + - 91 - 89 + + - COALESCE ( 37, + + 2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4084
SELECT ALL COALESCE ( - CAST( - 88 AS DECIMAL ), 8 + + 86 - + COUNT( * ) * NULLIF ( 69, CAST( NULL AS SIGNED ) ) * - - 66 / - 69 ) * + 63 * - CAST( NULL AS DECIMAL ) * - + ( + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL COALESCE ( - CAST ( - 88 AS REAL ), 8 + + 86 - + COUNT ( * ) * NULLIF ( 69, CAST ( NULL AS INTEGER ) ) * - - 66 / - 69 ) * + 63 * - CAST ( NULL AS REAL ) * - + ( + 85 )
----
NULL

query I rowsort
SELECT DISTINCT 86 + + - 5 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL COUNT( * ) + 71 * + 54 AS col0
----
3835

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL COUNT ( * ) + 71 * + 54 AS col0
----
3835

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT COUNT( * ) + + + 47 + - - 82 + - 30 + - 62 + - 5
----
33

skipif mysql # not compatible
query I rowsort label-4087
SELECT COUNT ( * ) + + + 47 + - - 82 + - 30 + - 62 + - 5
----
33

query I rowsort
SELECT 20 + - 46 AS col0
----
-26

query I rowsort
SELECT 55 * - 1 col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4090
SELECT DISTINCT - 17 DIV - 6 AS col1, + MAX( DISTINCT 70 )
----
2
70

skipif mysql # not compatible
query II rowsort label-4090
SELECT DISTINCT - 17 / - 6 AS col1, + MAX ( DISTINCT 70 )
----
2
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4091
SELECT COALESCE ( - NULLIF ( - - 88, - 51 - COUNT( * ) DIV - 11 ), 33 ) + - + SUM( - - 83 ) - - 6 - + - 61 DIV + - 93 AS col0
----
-165

skipif mysql # not compatible
query I rowsort label-4091
SELECT COALESCE ( - NULLIF ( - - 88, - 51 - COUNT ( * ) / - 11 ), 33 ) + - + SUM ( - - 83 ) - - 6 - + - 61 / + - 93 AS col0
----
-165

onlyif mysql # DIV for integer division: 
query II rowsort label-4092
SELECT ALL 44 DIV 36 col1, - 0
----
1
0

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL 44 / 36 col1, - 0
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4093
SELECT DISTINCT 79 DIV - ( - + ( 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT 79 / - ( - + ( 47 ) )
----
1

query I rowsort
SELECT 58 * + 16 AS col0
----
928

query I rowsort
SELECT DISTINCT + 89 + + 30 col2
----
119

query II rowsort
SELECT ALL - + 41 + 73 * - 29, 5 AS col2
----
-2158
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT - ( - 20 ) + + COUNT( - - 13 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4097
SELECT - ( - 20 ) + + COUNT ( - - 13 ) AS col2
----
21

query I rowsort
SELECT ALL + 56 - + 37 * + 92 AS col0
----
-3348

query I rowsort
SELECT + 28 + - 11
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT 87 * - COUNT( * ) + 78
----
-9

skipif mysql # not compatible
query I rowsort label-4100
SELECT 87 * - COUNT ( * ) + 78
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4101
SELECT + AVG ( ALL + - 84 ) * + CAST( - - 18 AS SIGNED ) * - 20 + + 80 + + - CASE - - 70 WHEN 96 * - 38 THEN NULL ELSE CAST( NULL AS SIGNED ) END * 85 * 29 / + + ( - CAST( NULL AS DECIMAL ) ) * + 71 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + AVG ( ALL + - 84 ) * + CAST ( - - 18 AS INTEGER ) * - 20 + + 80 + + - CASE - - 70 WHEN 96 * - 38 THEN NULL ELSE CAST ( NULL AS INTEGER ) END * 85 * 29 / + + ( - CAST ( NULL AS REAL ) ) * + 71 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + - ( + COALESCE ( 50, + 84, + COUNT( * ), 34 * 72 ) ) * - 54 * 21 + 88 AS col2
----
56788

skipif mysql # not compatible
query I rowsort label-4102
SELECT + - ( + COALESCE ( 50, + 84, + COUNT ( * ), 34 * 72 ) ) * - 54 * 21 + 88 AS col2
----
56788

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - COUNT( 19 ) * - 1 * MAX( DISTINCT 9 ) * CASE + 0 WHEN 79 THEN 60 ELSE + + 67 END
----
603

skipif mysql # not compatible
query I rowsort label-4103
SELECT - COUNT ( 19 ) * - 1 * MAX ( DISTINCT 9 ) * CASE + 0 WHEN 79 THEN 60 ELSE + + 67 END
----
603

query I rowsort
SELECT ALL + 24 * - + 67
----
-1608

onlyif mysql # DIV for integer division: 
query II rowsort label-4105
SELECT DISTINCT - - 37 DIV + 37 AS col2, + 8
----
1
8

skipif mysql # not compatible
query II rowsort label-4105
SELECT DISTINCT - - 37 / + 37 AS col2, + 8
----
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT 57 + - COALESCE ( 48, NULLIF ( - 76, 7 + + 91 + - 2 * AVG ( 76 ) ) - - - 32 + + 40 * + 17 * MAX( ALL 44 ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4106
SELECT 57 + - COALESCE ( 48, NULLIF ( - 76, 7 + + 91 + - 2 * AVG ( 76 ) ) - - - 32 + + 40 * + 17 * MAX ( ALL 44 ) ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT + CAST( NULL AS SIGNED ) / - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT + CAST ( NULL AS INTEGER ) / - 17
----
NULL

query I rowsort
SELECT DISTINCT 81 + + 83 AS col0
----
164

query I rowsort
SELECT ALL - ( + + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT - 38 + - + CASE + 23 WHEN - + 66 THEN NULL WHEN - 85 THEN - ( + MAX( DISTINCT - + ( + 64 ) ) ) END / + 90 * 91 + - + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT - 38 + - + CASE + 23 WHEN - + 66 THEN NULL WHEN - 85 THEN - ( + MAX ( DISTINCT - + ( + 64 ) ) ) END / + 90 * 91 + - + 79 AS col0
----
NULL

query I rowsort
SELECT 30 + - 6 col1
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-4112
SELECT ALL 89 AS col1, - 85 DIV 65
----
89
-1

skipif mysql # not compatible
query II rowsort label-4112
SELECT ALL 89 AS col1, - 85 / 65
----
89
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4113
SELECT ( - MIN( + 16 ) ) + + NULLIF ( - - 38, - + 38 + 15 * - 17 * - 69 * + 24 ) * CASE - 36 WHEN + 40 THEN NULL WHEN - + 46 THEN + + COUNT( * ) ELSE - - 22 - - + 72 DIV 17 END + 4 + + + 58 AS col0
----
1034

skipif mysql # not compatible
query I rowsort label-4113
SELECT ( - MIN ( + 16 ) ) + + NULLIF ( - - 38, - + 38 + 15 * - 17 * - 69 * + 24 ) * CASE - 36 WHEN + 40 THEN NULL WHEN - + 46 THEN + + COUNT ( * ) ELSE - - 22 - - + 72 / 17 END + 4 + + + 58 AS col0
----
1034

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT COALESCE ( COUNT( + 37 ), - 85 * - 11 + - + ( 96 ), - 68 ) - + 54 AS col1, 13 * + - MIN( ALL - + 35 ) + + COUNT( DISTINCT - 88 ) AS col2
----
-53
456

skipif mysql # not compatible
query II rowsort label-4114
SELECT COALESCE ( COUNT ( + 37 ), - 85 * - 11 + - + ( 96 ), - 68 ) - + 54 AS col1, 13 * + - MIN ( ALL - + 35 ) + + COUNT ( DISTINCT - 88 ) AS col2
----
-53
456

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4115
SELECT 89, COALESCE ( - 2, + SUM( 11 ) * - 55 DIV - - COUNT( * ) ) AS col2
----
89
-2

skipif mysql # not compatible
query II rowsort label-4115
SELECT 89, COALESCE ( - 2, + SUM ( 11 ) * - 55 / - - COUNT ( * ) ) AS col2
----
89
-2

query I rowsort
SELECT ALL 74 * 47 AS col2
----
3478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT 29 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT 29 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 65 + + 6 * - 2 AS col0
----
53

query I rowsort
SELECT DISTINCT 92 + - 49 col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4120
SELECT DISTINCT 3 * COUNT( * ) DIV + - 83 AS col0, + 13
----
0
13

skipif mysql # not compatible
query II rowsort label-4120
SELECT DISTINCT 3 * COUNT ( * ) / + - 83 AS col0, + 13
----
0
13

query I rowsort
SELECT ALL 68 + - 1
----
67

query I rowsort
SELECT ALL 38 * - 41
----
-1558

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT CASE WHEN NULL <= 30 THEN + 99 ELSE NULL END + - MAX( ALL + 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT CASE WHEN NULL <= 30 THEN + 99 ELSE NULL END + - MAX ( ALL + 70 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 16, + 55 col0
----
16
55

query II rowsort
SELECT 89 AS col2, + 77
----
89
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL 32 - 12 * - ( COUNT( * ) ) + 47
----
91

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL 32 - 12 * - ( COUNT ( * ) ) + 47
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT - MAX( + 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4127
SELECT - MAX ( + 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT - COUNT( * ), 23 AS col0
----
-1
23

skipif mysql # not compatible
query II rowsort label-4128
SELECT - COUNT ( * ), 23 AS col0
----
-1
23

query I rowsort
SELECT - COALESCE ( + + 21, - - 14 * 42 * + - 48 + - 11 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT DISTINCT 93, - 79 + - 64 * - + COUNT( * ) * + 65 AS col0
----
93
4081

skipif mysql # not compatible
query II rowsort label-4130
SELECT DISTINCT 93, - 79 + - 64 * - + COUNT ( * ) * + 65 AS col0
----
93
4081

query II rowsort
SELECT ALL - 21 AS col0, 36 AS col2
----
-21
36

query I rowsort
SELECT - 95 + + + 27 AS col0
----
-68

query I rowsort
SELECT - - 41 * + CASE - 95 WHEN - 89 THEN + - 16 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT ALL + NULLIF ( 54, - 9 ) DIV + 27 col0
----
2

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + NULLIF ( 54, - 9 ) / + 27 col0
----
2

query I rowsort
SELECT + 48 * + ( - 11 )
----
-528

query II rowsort
SELECT ALL + 44 AS col0, + 48 AS col2
----
44
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + CASE - 48 WHEN 94 THEN + ( - 82 ) + + - COUNT( * ) * - 22 ELSE NULL END * + 52 + COUNT( * ) + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT + CASE - 48 WHEN 94 THEN + ( - 82 ) + + - COUNT ( * ) * - 22 ELSE NULL END * + 52 + COUNT ( * ) + - 12
----
NULL

query I rowsort
SELECT - 66 * + - 91 AS col0
----
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL COUNT( * ) * - - 46 + + - 42 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL COUNT ( * ) * - - 46 + + - 42 AS col0
----
4

query II rowsort
SELECT ALL + - 19 AS col2, 61
----
-19
61

query I rowsort
SELECT ALL + 84 * - 23 + + 37 AS col0
----
-1895

query I rowsort
SELECT - + 73 * 80
----
-5840

query I rowsort
SELECT - + 40 * - + 80 col2
----
3200

query I rowsort
SELECT - 64 * - 81 AS col1
----
5184

query I rowsort
SELECT ALL + - NULLIF ( + 94, - 33 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT COALESCE ( + MAX( - 43 ), - + 87 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4146
SELECT COALESCE ( + MAX ( - 43 ), - + 87 ) AS col0
----
-43

query I rowsort
SELECT + COALESCE ( - COALESCE ( - - 74, - + ( 82 ) * + 43, - + 34 + + - 11 ), 47 * + - 40 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4148
SELECT ALL + CAST( ( - CASE - AVG ( - 97 ) WHEN - MAX( ALL + 50 ) THEN NULL WHEN - + 82 THEN - + ( 97 ) - COALESCE ( + 5, + + 32 ) ELSE - 8 END ) AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + CAST ( ( - CASE - AVG ( - 97 ) WHEN - MAX ( ALL + 50 ) THEN NULL WHEN - + 82 THEN - + ( 97 ) - COALESCE ( + 5, + + 32 ) ELSE - 8 END ) AS INTEGER ) AS col2
----
8

query I rowsort
SELECT ALL - 34 * - - 43
----
-1462

query I rowsort
SELECT - 63 * - 95 + + 10
----
5995

onlyif mysql # aggregate syntax: 
query II rowsort label-4151
SELECT DISTINCT - COUNT( * ) * 72, - 51 * + ( - 5 ) AS col1
----
-72
255

skipif mysql # not compatible
query II rowsort label-4151
SELECT DISTINCT - COUNT ( * ) * 72, - 51 * + ( - 5 ) AS col1
----
-72
255

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT - 63 + + 6 - - + 10 DIV - + 52
----
-57

skipif mysql # not compatible
query I rowsort label-4152
SELECT - 63 + + 6 - - + 10 / - + 52
----
-57

query I rowsort
SELECT + 69 * 52 * + 26 AS col2
----
93288

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT - MIN( - + CASE 20 WHEN + + 11 THEN + - 99 * - 55 + - NULLIF ( + 39, + 51 ) ELSE NULL END ) * + - CASE - + ( 51 ) WHEN + + COUNT( * ) * - MAX( ( + 90 ) ) + + NULLIF ( - NULLIF ( + - ( 86 ), + COALESCE ( + MIN( 81 ), - + 85 ) ), + 66 ) THEN + 23 * - 32 + 76 + 93 / - - ( 55 ) ELSE + 91 END + - + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - MIN ( - + CASE 20 WHEN + + 11 THEN + - 99 * - 55 + - NULLIF ( + 39, + 51 ) ELSE NULL END ) * + - CASE - + ( 51 ) WHEN + + COUNT ( * ) * - MAX ( ( + 90 ) ) + + NULLIF ( - NULLIF ( + - ( 86 ), + COALESCE ( + MIN ( 81 ), - + 85 ) ), + 66 ) THEN + 23 * - 32 + 76 + 93 / - - ( 55 ) ELSE + 91 END + - + 48 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT DISTINCT CAST( 51 AS SIGNED ) * - CAST( ( COUNT( * ) ) AS SIGNED ) + + - COUNT( * ) - 63 * + CASE - - COALESCE ( 74, + 45 + 34 + + 9 + 65 - + - COUNT( * ) * 2 * 60 * + + COUNT( * ) * - COUNT( * ) * + MAX( + 13 ), + 48 * + - COUNT( * ) + 97 + + COUNT( * ) ) WHEN + 56 * - 90 * + 62 THEN + COALESCE ( 17, 45 * - 41 + + + MAX( DISTINCT - 74 ) + 86, - 45, - 0 ) + + 46 - 47 WHEN - ( 22 ) THEN NULL END * 76 + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT CAST ( 51 AS INTEGER ) * - CAST ( ( COUNT ( * ) ) AS INTEGER ) + + - COUNT ( * ) - 63 * + CASE - - COALESCE ( 74, + 45 + 34 + + 9 + 65 - + - COUNT ( * ) * 2 * 60 * + + COUNT ( * ) * - COUNT ( * ) * + MAX ( + 13 ), + 48 * + - COUNT ( * ) + 97 + + COUNT ( * ) ) WHEN + 56 * - 90 * + 62 THEN + COALESCE ( 17, 45 * - 41 + + + MAX ( DISTINCT - 74 ) + 86, - 45, - 0 ) + + 46 - 47 WHEN - ( 22 ) THEN NULL END * 76 + 42 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 17 * - - 53 AS col0
----
-901

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL - CASE + 51 WHEN - 52 THEN + COALESCE ( - 56, - + 79, + MAX( 0 ) / 92 ) END * + 42 / ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - CASE + 51 WHEN - 52 THEN + COALESCE ( - 56, - + 79, + MAX ( 0 ) / 92 ) END * + 42 / ( - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 33 * + 52 AS col0
----
-1716

query II rowsort
SELECT DISTINCT ( - - 10 ), ( - ( 7 ) ) + - 6 col0
----
10
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT - COALESCE ( + 35, + COUNT( * ) - - 30 )
----
-35

skipif mysql # not compatible
query I rowsort label-4160
SELECT - COALESCE ( + 35, + COUNT ( * ) - - 30 )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL + 72 DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + 72 / + 83 AS col0
----
0

query I rowsort
SELECT - 97 * - 62 * 2
----
12028

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT - COUNT( * ) + - 44 - - + 0 * + 99
----
-45

skipif mysql # not compatible
query I rowsort label-4163
SELECT - COUNT ( * ) + - 44 - - + 0 * + 99
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4164
SELECT + 24 + 28 + - COUNT( * ) * - 0 + 78, 27 AS col0
----
130
27

skipif mysql # not compatible
query II rowsort label-4164
SELECT + 24 + 28 + - COUNT ( * ) * - 0 + 78, 27 AS col0
----
130
27

query II rowsort
SELECT + 37 + - 29, - 40 * - 95 AS col2
----
8
3800

query II rowsort
SELECT ALL - + 95 * - 14 AS col0, ( - + 0 ) + 38 AS col0
----
1330
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT + - 68 + - + CAST( + + 70 AS SIGNED ) AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-4167
SELECT + - 68 + - + CAST ( + + 70 AS INTEGER ) AS col2
----
-138

query I rowsort
SELECT DISTINCT 25 * + 25 + - 58 - + 71
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT + - COUNT( * ) + - + 49 col2
----
-50

skipif mysql # not compatible
query I rowsort label-4169
SELECT + - COUNT ( * ) + - + 49 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL ( MAX( DISTINCT + 50 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL ( MAX ( DISTINCT + 50 ) ) AS col2
----
50

query II rowsort
SELECT + ( + 47 ) AS col0, 96 AS col0
----
47
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT + + CAST( NULL AS SIGNED ) + 16 + + 46 * + 7 * ( - COALESCE ( 74, - 17 + ( - CASE 24 WHEN + - 41 - ( - 65 ) THEN NULL WHEN 82 - + MIN( ALL + 49 ) * 94 * + - 2 * + 76 THEN + - CAST( NULL AS SIGNED ) * - COUNT( * ) END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT + + CAST ( NULL AS INTEGER ) + 16 + + 46 * + 7 * ( - COALESCE ( 74, - 17 + ( - CASE 24 WHEN + - 41 - ( - 65 ) THEN NULL WHEN 82 - + MIN ( ALL + 49 ) * 94 * + - 2 * + 76 THEN + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) END ) ) )
----
NULL

query I rowsort
SELECT - 28 * + 15 + - 68 AS col2
----
-488

onlyif mysql # DIV for integer division: 
query II rowsort label-4174
SELECT ALL + + 73 DIV - 31 + + ( - + 61 ), + 58 + - - ( - 9 ) AS col2
----
-63
49

skipif mysql # not compatible
query II rowsort label-4174
SELECT ALL + + 73 / - 31 + + ( - + 61 ), + 58 + - - ( - 9 ) AS col2
----
-63
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT - COUNT( * ) + - CAST( 62 AS SIGNED ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-4175
SELECT - COUNT ( * ) + - CAST ( 62 AS INTEGER ) col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4176
SELECT DISTINCT - - ( + 18 ) / + + 34 + + + CASE - SUM( + ( + 77 ) ) WHEN + 6 * + 45 * 70 / 15 THEN - + 1 WHEN - 46 THEN - 52 END + - CAST( + - MIN( DISTINCT - 44 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - - ( + 18 ) / + + 34 + + + CASE - SUM ( + ( + 77 ) ) WHEN + 6 * + 45 * 70 / 15 THEN - + 1 WHEN - 46 THEN - 52 END + - CAST ( + - MIN ( DISTINCT - 44 ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 92 AS col1
----
92

query I rowsort
SELECT + - 5 col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT ALL - 98 DIV - 97 + + 12
----
13

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - 98 / - 97 + + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT SUM( DISTINCT 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4180
SELECT SUM ( DISTINCT 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4181
SELECT + CAST( - NULLIF ( - + 40, - 6 DIV - + 19 * + - 14 * + 76 + ( CASE + 19 WHEN - COUNT( * ) THEN - MAX( CAST( - - 62 AS DECIMAL ) ) ELSE - - 36 * + 94 + + 1 * - - 72 DIV + 87 * 36 + - COUNT( * ) + - 94 * + - 23 * + - CASE 72 WHEN - - COUNT( * ) * - 24 + + - CAST( - COUNT( * ) AS SIGNED ) DIV COUNT( ALL + 30 ) THEN - + 9 ELSE NULL END END ) + 84 * - 73 ) AS SIGNED ) DIV - COALESCE ( - CASE - NULLIF ( - 4, - 42 ) WHEN + - 74 THEN + COUNT( DISTINCT 12 ) WHEN + 94 THEN 23 END, 42, 80 * 3 + - 54 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4181
SELECT + CAST ( - NULLIF ( - + 40, - 6 / - + 19 * + - 14 * + 76 + ( CASE + 19 WHEN - COUNT ( * ) THEN - MAX ( CAST ( - - 62 AS REAL ) ) ELSE - - 36 * + 94 + + 1 * - - 72 / + 87 * 36 + - COUNT ( * ) + - 94 * + - 23 * + - CASE 72 WHEN - - COUNT ( * ) * - 24 + + - CAST ( - COUNT ( * ) AS INTEGER ) / COUNT ( ALL + 30 ) THEN - + 9 ELSE NULL END END ) + 84 * - 73 ) AS INTEGER ) / - COALESCE ( - CASE - NULLIF ( - 4, - 42 ) WHEN + - 74 THEN + COUNT ( DISTINCT 12 ) WHEN + 94 THEN 23 END, 42, 80 * 3 + - 54 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4182
SELECT ALL - 80 DIV + 79 + - ( - MAX( - 65 ) ) + - + 5 * 67
----
-401

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL - 80 / + 79 + - ( - MAX ( - 65 ) ) + - + 5 * 67
----
-401

query I rowsort
SELECT + 11 * - 13
----
-143

query II rowsort
SELECT + 32, - COALESCE ( - 17, + + ( - 29 ) * 42 ) col1
----
32
17

query I rowsort
SELECT ( 88 )
----
88

query I rowsort
SELECT - 59 * + 53 + + 40
----
-3087

query I rowsort
SELECT - 39 * - - 98
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL - COUNT( * ) * + - ( + + COUNT( * ) ) - - - 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - COUNT ( * ) * + - ( + + COUNT ( * ) ) - - - 34 AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4189
SELECT COALESCE ( - COALESCE ( + - NULLIF ( + 12, - CAST( + + 75 AS SIGNED ) ), + - ( - - COUNT( * ) ), + 55 * + + 32 ), - 51 DIV + 60 * 27 * COALESCE ( + + 99, ( 84 ) ) DIV + COUNT( * ) + - - COUNT( * ), ( 62 ) + 7 + - 22 DIV + + COUNT( * ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4189
SELECT COALESCE ( - COALESCE ( + - NULLIF ( + 12, - CAST ( + + 75 AS INTEGER ) ), + - ( - - COUNT ( * ) ), + 55 * + + 32 ), - 51 / + 60 * 27 * COALESCE ( + + 99, ( 84 ) ) / + COUNT ( * ) + - - COUNT ( * ), ( 62 ) + 7 + - 22 / + + COUNT ( * ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT - 50 + + - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4190
SELECT - 50 + + - COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT + 71 * 61 - + 85 * COUNT( * ) AS col1
----
4246

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT + 71 * 61 - + 85 * COUNT ( * ) AS col1
----
4246

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - COUNT( * ) + + 13 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4192
SELECT - COUNT ( * ) + + 13 AS col0
----
12

query I rowsort
SELECT DISTINCT + 86 * + 69
----
5934

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT SUM( + 74 ) * + MIN( + - 71 )
----
-5254

skipif mysql # not compatible
query I rowsort label-4194
SELECT SUM ( + 74 ) * + MIN ( + - 71 )
----
-5254

query I rowsort
SELECT ALL + 68 * 12
----
816

query I rowsort
SELECT DISTINCT + 59 * + 39
----
2301

query I rowsort
SELECT 94 * + 81 col1
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL + COUNT( * ) * + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL + COUNT ( * ) * + - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT ( COUNT( * ) ) * + COUNT( * ) / CASE + ( + + 86 ) WHEN + 6 THEN NULL WHEN - ( + 14 ) / - - 95 THEN - COUNT( * ) END * AVG ( 34 ) * - 64 * - - 53 / - 64 + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT ( COUNT ( * ) ) * + COUNT ( * ) / CASE + ( + + 86 ) WHEN + 6 THEN NULL WHEN - ( + 14 ) / - - 95 THEN - COUNT ( * ) END * AVG ( 34 ) * - 64 * - - 53 / - 64 + + 96 AS col1
----
NULL

query I rowsort
SELECT ALL ( + 17 ) col2
----
17

query I rowsort
SELECT - 57 * 74 AS col1
----
-4218

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT 19 * - 93 + + 30 DIV + 56
----
-1767

skipif mysql # not compatible
query I rowsort label-4202
SELECT 19 * - 93 + + 30 / + 56
----
-1767

query I rowsort
SELECT 63 * + + 69
----
4347

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL - 67 + + 41 + COUNT( ALL - 64 ) * + 53 * + MIN( 1 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL - 67 + + 41 + COUNT ( ALL - 64 ) * + 53 * + MIN ( 1 ) AS col2
----
27

query I rowsort
SELECT - - 9 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL COUNT( DISTINCT + 92 ) + + 83 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL COUNT ( DISTINCT + 92 ) + + 83 AS col1
----
84

query I rowsort
SELECT - - 40 col1
----
40

query II rowsort
SELECT DISTINCT - 65 + - + 34 * - 5, - ( + - 84 ) AS col2
----
105
84

query I rowsort
SELECT ( - + 58 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4210
SELECT DISTINCT ( + - CASE + - ( CAST( + 12 AS DECIMAL ) ) WHEN - + COUNT( * ) THEN NULL WHEN - 28 THEN - 94 * + 90 - - - 86 * + 34 END ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT ( + - CASE + - ( CAST ( + 12 AS REAL ) ) WHEN - + COUNT ( * ) THEN NULL WHEN - 28 THEN - 94 * + 90 - - - 86 * + 34 END ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4211
SELECT DISTINCT + 74 + + CASE - - 49 WHEN COUNT( * ) THEN 34 WHEN 98 + - - ( + COUNT( + + CAST( NULL AS DECIMAL ) ) ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT + 74 + + CASE - - 49 WHEN COUNT ( * ) THEN 34 WHEN 98 + - - ( + COUNT ( + + CAST ( NULL AS REAL ) ) ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 99
----
99

query I rowsort
SELECT DISTINCT - CASE 52 WHEN NULLIF ( + - 87, - 74 ) THEN NULL ELSE - - COALESCE ( 4, - - 29 * - 60 ) * 69 * + - 49 END
----
13524

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4214
SELECT - ( + + 59 ) DIV - 30 DIV COUNT( + 58 ) + - 32 AS col2, 79
----
-31
79

skipif mysql # not compatible
query II rowsort label-4214
SELECT - ( + + 59 ) / - 30 / COUNT ( + 58 ) + - 32 AS col2, 79
----
-31
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ( - - 89 ) * COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4215
SELECT ( - - 89 ) * COUNT ( * ) AS col0
----
89

query II rowsort
SELECT ALL - 88 AS col1, + 60 AS col2
----
-88
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4217
SELECT 23 + 54 + + COUNT( ALL - + 93 ) + 3 + - 63 * - + CASE - CAST( 92 AS SIGNED ) WHEN - 25 THEN - - 86 END AS col1, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-4217
SELECT 23 + 54 + + COUNT ( ALL - + 93 ) + 3 + - 63 * - + CASE - CAST ( 92 AS INTEGER ) WHEN - 25 THEN - - 86 END AS col1, 5
----
NULL
5

query II rowsort
SELECT ALL - 94 AS col2, + 47
----
-94
47

query I rowsort
SELECT - 55 * - 7 + + 29
----
414

query I rowsort
SELECT ALL 51 * + 38
----
1938

query I rowsort
SELECT ( + 11 ) * - - 73 + - 93 AS col2
----
710

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT 69 * - + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT 69 * - + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL - 99 * + COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - 99 * + COUNT ( * ) AS col0
----
-99

query I rowsort
SELECT 68 + 66 * - 26
----
-1648

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT 48 DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT 48 / - 88 AS col0
----
0

query II rowsort
SELECT + 8 col1, 70 AS col1
----
8
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT + 10 AS col2, 23 - + MIN( - ( 46 ) ) AS col1
----
10
69

skipif mysql # not compatible
query II rowsort label-4227
SELECT + 10 AS col2, 23 - + MIN ( - ( 46 ) ) AS col1
----
10
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT CASE - 17 WHEN ( + 54 ) THEN NULL WHEN + ( + - 85 ) + COUNT( * ) THEN + 53 WHEN - 36 THEN NULL END + + + 76 * + 68 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4228
SELECT CASE - 17 WHEN ( + 54 ) THEN NULL WHEN + ( + - 85 ) + COUNT ( * ) THEN + 53 WHEN - 36 THEN NULL END + + + 76 * + 68 * + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4229
SELECT 93 * - 78, - 75 + - - CAST( - 13 AS SIGNED ) - - COUNT( * ) AS col1
----
-7254
-87

skipif mysql # not compatible
query II rowsort label-4229
SELECT 93 * - 78, - 75 + - - CAST ( - 13 AS INTEGER ) - - COUNT ( * ) AS col1
----
-7254
-87

query II rowsort
SELECT 92 AS col1, + 4 * + 15 AS col2
----
92
60

query I rowsort
SELECT ALL ( - + 33 ) * 65 AS col2
----
-2145

onlyif mysql # aggregate syntax: 
query II rowsort label-4232
SELECT DISTINCT ( + - 78 ) AS col2, MAX( + 99 ) + - 43
----
-78
56

skipif mysql # not compatible
query II rowsort label-4232
SELECT DISTINCT ( + - 78 ) AS col2, MAX ( + 99 ) + - 43
----
-78
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL + + COUNT( * ) + - 62 - 59
----
-120

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + + COUNT ( * ) + - 62 - 59
----
-120

query I rowsort
SELECT - 72 + 4
----
-68

query I rowsort
SELECT DISTINCT - + 90 + + 81 * 99 AS col0
----
7929

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT ALL + + 28 + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + + 28 + COUNT ( * ) AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4237
SELECT ( 73 ) + CAST( ( + COALESCE ( COUNT( * ), COUNT( * ) * + 91 * + - 25 ) ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-4237
SELECT ( 73 ) + CAST ( ( + COALESCE ( COUNT ( * ), COUNT ( * ) * + 91 * + - 25 ) ) AS INTEGER )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4238
SELECT 84, + 47 * - 58 * - CASE + + 69 WHEN + 8 THEN - COUNT( * ) / - + 17 - - ( - - 86 ) * + ( 15 ) * - + 2 * + - 14 + CAST( NULL AS SIGNED ) END * + 74 col2
----
84
NULL

skipif mysql # not compatible
query II rowsort label-4238
SELECT 84, + 47 * - 58 * - CASE + + 69 WHEN + 8 THEN - COUNT ( * ) / - + 17 - - ( - - 86 ) * + ( 15 ) * - + 2 * + - 14 + CAST ( NULL AS INTEGER ) END * + 74 col2
----
84
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4239
SELECT 53, + CAST( 88 AS SIGNED ) * - 97 AS col2, + 79 * CAST( 71 AS SIGNED ) AS col0
----
53
-8536
5609

skipif mysql # not compatible
query III rowsort label-4239
SELECT 53, + CAST ( 88 AS INTEGER ) * - 97 AS col2, + 79 * CAST ( 71 AS INTEGER ) AS col0
----
53
-8536
5609

query II rowsort
SELECT - 74, + ( - + 8 ) * 84 AS col2
----
-74
-672

query II rowsort
SELECT + 22 + - - 2 AS col2, + 34 * + + 16
----
24
544

onlyif mysql # aggregate syntax: 
query II rowsort label-4242
SELECT ALL COUNT( * ), + COALESCE ( + COUNT( * ), 81 - - 1 ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4242
SELECT ALL COUNT ( * ), + COALESCE ( + COUNT ( * ), 81 - - 1 ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL + - COUNT( * ) + + + 89
----
88

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + - COUNT ( * ) + + + 89
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT 88 + - 80 + + 17 + + 50 - - 13 DIV - 60 + - 92 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4244
SELECT 88 + - 80 + + 17 + + 50 - - 13 / - 60 + - 92 AS col1
----
-17

query I rowsort
SELECT - CASE + 69 WHEN 42 + - 83 + AVG ( ALL - COALESCE ( + 35, + 81 ) ) THEN + 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL 88 + - + 52 * + CASE + + 53 WHEN - 17 THEN NULLIF ( + AVG ( ALL - 93 ), 38 + - 56 ) + + 52 WHEN + COUNT( * ) THEN NULL WHEN + + MAX( ALL 10 ) THEN 94 END * + 79 - + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL 88 + - + 52 * + CASE + + 53 WHEN - 17 THEN NULLIF ( + AVG ( ALL - 93 ), 38 + - 56 ) + + 52 WHEN + COUNT ( * ) THEN NULL WHEN + + MAX ( ALL 10 ) THEN 94 END * + 79 - + 22 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4247
SELECT ALL + 64 DIV 58
----
1

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + 64 / 58
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - NULLIF ( - ( + COUNT( * ) ), + - ( + 44 ) * 20 + 48 + - - 35 * 22 + + 93 + 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4248
SELECT - NULLIF ( - ( + COUNT ( * ) ), + - ( + 44 ) * 20 + 48 + - - 35 * 22 + + 93 + 59 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT 26 + + ( - - SUM( - 11 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4249
SELECT 26 + + ( - - SUM ( - 11 ) ) AS col2
----
15

query I rowsort
SELECT 23 * + 59 col0
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + 89 * - 58 + MIN( DISTINCT + 54 ) AS col2
----
-5108

skipif mysql # not compatible
query I rowsort label-4251
SELECT + 89 * - 58 + MIN ( DISTINCT + 54 ) AS col2
----
-5108

query I rowsort
SELECT ALL + 12 * + 94 AS col2
----
1128

query I rowsort
SELECT ALL 28 * - - 24 AS col0
----
672

onlyif mysql # aggregate syntax: 
query II rowsort label-4254
SELECT ALL + COUNT( * ) * + 84 AS col1, 25
----
84
25

skipif mysql # not compatible
query II rowsort label-4254
SELECT ALL + COUNT ( * ) * + 84 AS col1, 25
----
84
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4255
SELECT DISTINCT COUNT( 88 ) * + 57 - - 3 - CASE + 50 WHEN + 69 * - 14 + - CAST( NULL AS SIGNED ) + CASE 13 WHEN + 58 THEN NULL WHEN + 57 THEN - + 39 WHEN + 50 * - 96 THEN NULL END * - 66 * 89 THEN + CASE + 58 WHEN - + 89 * - 95 THEN - 31 + - + 71 WHEN + - 1 + + 26 * 46 THEN - - 68 ELSE + COUNT( * ) * - 31 / - 36 + 66 END WHEN + 98 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT COUNT ( 88 ) * + 57 - - 3 - CASE + 50 WHEN + 69 * - 14 + - CAST ( NULL AS INTEGER ) + CASE 13 WHEN + 58 THEN NULL WHEN + 57 THEN - + 39 WHEN + 50 * - 96 THEN NULL END * - 66 * 89 THEN + CASE + 58 WHEN - + 89 * - 95 THEN - 31 + - + 71 WHEN + - 1 + + 26 * 46 THEN - - 68 ELSE + COUNT ( * ) * - 31 / - 36 + 66 END WHEN + 98 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT + CAST( + 31 AS SIGNED ) * COUNT( * ) * - 56 AS col1
----
-1736

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT + CAST ( + 31 AS INTEGER ) * COUNT ( * ) * - 56 AS col1
----
-1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT + SUM( ALL - + CAST( 71 AS SIGNED ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4257
SELECT + SUM ( ALL - + CAST ( 71 AS INTEGER ) ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT - MIN( DISTINCT 32 ) * 88 * + 18 AS col2
----
-50688

skipif mysql # not compatible
query I rowsort label-4258
SELECT - MIN ( DISTINCT 32 ) * 88 * + 18 AS col2
----
-50688

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT MIN( DISTINCT 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4259
SELECT MIN ( DISTINCT 55 ) AS col0
----
55

query I rowsort
SELECT - 74 - - - 9 * 3
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT MIN( DISTINCT 28 )
----
28

skipif mysql # not compatible
query I rowsort label-4261
SELECT MIN ( DISTINCT 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + SUM( + 70 ) + + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4262
SELECT + SUM ( + 70 ) + + COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4263
SELECT ALL 62 DIV + CAST( + 91 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL 62 / + CAST ( + 91 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + 67 * COUNT( * ) * + 33 * 34
----
75174

skipif mysql # not compatible
query I rowsort label-4264
SELECT + 67 * COUNT ( * ) * + 33 * 34
----
75174

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT MIN( ALL - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4265
SELECT MIN ( ALL - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-4266
SELECT ALL + ( 28 ), - COUNT( * ) AS col1
----
28
-1

skipif mysql # not compatible
query II rowsort label-4266
SELECT ALL + ( 28 ), - COUNT ( * ) AS col1
----
28
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT + SUM( + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4267
SELECT + SUM ( + 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL COUNT( * ) * - + 48 + - 53 col2
----
-101

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL COUNT ( * ) * - + 48 + - 53 col2
----
-101

query II rowsort
SELECT ALL 14 * 92 col1, + 8 AS col0
----
1288
8

query II rowsort
SELECT DISTINCT + + CASE 85 WHEN - + AVG ( ALL - - 67 ) THEN - 0 WHEN + 18 THEN + NULLIF ( - 47, 15 * + 85 * - 6 * + + 0 + 57 ) * + + 6 * ( - 46 ) * 79 END AS col0, - 34 * - 3 * ( + 6 ) AS col1
----
NULL
612

query I rowsort
SELECT + COALESCE ( - + 75, - 98 ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL - 25 + - NULLIF ( + - 47, 32 ) - - - 7 * + 20 * + + COUNT( DISTINCT 23 ) - + 40
----
-158

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL - 25 + - NULLIF ( + - 47, 32 ) - - - 7 * + 20 * + + COUNT ( DISTINCT 23 ) - + 40
----
-158

query I rowsort
SELECT + + ( - 50 ) * - 62 * + 17 + + - 59 * + 48 * - 81 AS col2
----
282092

query I rowsort
SELECT + 92 * 58 AS col0
----
5336

query I rowsort
SELECT DISTINCT + + 50 + 15 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT + COUNT( * ) + + - 76 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT + COUNT ( * ) + + - 76 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL + 85 + COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + 85 + COUNT ( * ) AS col2
----
86

query I rowsort
SELECT + - 79 * - + 17 * - ( 55 ) * + - 76 * + - 36 + + 49 AS col0
----
-202094591

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + + COUNT( * ) * 46 - 37 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4279
SELECT + + COUNT ( * ) * 46 - 37 AS col0
----
9

query I rowsort
SELECT - + ( 59 )
----
-59

query I rowsort
SELECT + - 44 - + + 94 AS col2
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4282
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN ( - + CASE + 79 WHEN ( - - 17 ) * + COUNT( * ) + - 44 THEN NULL ELSE + + CAST( - 99 AS SIGNED ) * - COUNT( * ) END ) / + 47 * - 15 * - 83 * - COUNT( * ) THEN - 44 + + 95 ELSE - + 33 END
----
-33

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN ( - + CASE + 79 WHEN ( - - 17 ) * + COUNT ( * ) + - 44 THEN NULL ELSE + + CAST ( - 99 AS INTEGER ) * - COUNT ( * ) END ) / + 47 * - 15 * - 83 * - COUNT ( * ) THEN - 44 + + 95 ELSE - + 33 END
----
-33

query I rowsort
SELECT DISTINCT 5 * + + 94 AS col1
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT - 16 * SUM( DISTINCT + - 4 )
----
64

skipif mysql # not compatible
query I rowsort label-4284
SELECT - 16 * SUM ( DISTINCT + - 4 )
----
64

query I rowsort
SELECT ALL ( - + 52 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT - 34 DIV 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT - 34 / 52 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4287
SELECT ALL - SUM( + 94 ) * + 8 AS col2, 32
----
-752
32

skipif mysql # not compatible
query II rowsort label-4287
SELECT ALL - SUM ( + 94 ) * + 8 AS col2, 32
----
-752
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT ALL + CASE + - 44 WHEN COUNT( - - 63 ) THEN + COALESCE ( + 88, + 49, + AVG ( ALL - 26 ) + - - COUNT( * ) * 67 * - 26, 84 ) END col0, - 13 AS col2
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL + CASE + - 44 WHEN COUNT ( - - 63 ) THEN + COALESCE ( + 88, + 49, + AVG ( ALL - 26 ) + - - COUNT ( * ) * 67 * - 26, 84 ) END col0, - 13 AS col2
----
NULL
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT DISTINCT - 26 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT - 26 / - 95 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4290
SELECT 17 DIV + ( - + COALESCE ( + 42, 27 ) ) * ( 12 ) + - 58 + + + 72 * - MAX( DISTINCT - 25 ) + 48 + 78 DIV - + 64 + - 69 + 27 * - 73 * + - 29 * - 16 * + - 22
----
20121688

skipif mysql # not compatible
query I rowsort label-4290
SELECT 17 / + ( - + COALESCE ( + 42, 27 ) ) * ( 12 ) + - 58 + + + 72 * - MAX ( DISTINCT - 25 ) + 48 + 78 / - + 64 + - 69 + 27 * - 73 * + - 29 * - 16 * + - 22
----
20121688

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4291
SELECT CAST( NULL AS SIGNED ) col2, + 85 * 61 * + 84 * - 34 * + CAST( - 62 AS SIGNED ) + - 38 AS col1
----
NULL
918118282

skipif mysql # not compatible
query II rowsort label-4291
SELECT CAST ( NULL AS INTEGER ) col2, + 85 * 61 * + 84 * - 34 * + CAST ( - 62 AS INTEGER ) + - 38 AS col1
----
NULL
918118282

onlyif mysql # aggregate syntax: 
query II rowsort label-4292
SELECT ALL + COUNT( * ) AS col0, - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-4292
SELECT ALL + COUNT ( * ) AS col0, - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT - 98 DIV 32
----
-3

skipif mysql # not compatible
query I rowsort label-4293
SELECT - 98 / 32
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT + SUM( ALL + 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4294
SELECT + SUM ( ALL + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4295
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-4295
SELECT ALL + CAST ( NULL AS REAL ) AS col2, 65
----
NULL
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4296
SELECT - SUM( ALL - + 1 ) / + + 78 * - - CAST( NULL AS DECIMAL ) + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT - SUM ( ALL - + 1 ) / + + 78 * - - CAST ( NULL AS REAL ) + + 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4297
SELECT + CAST( - 58 AS SIGNED ) * + COUNT( * ) AS col2, + ( + 3 ) * - 14 * 91 + + 13
----
-58
-3809

skipif mysql # not compatible
query II rowsort label-4297
SELECT + CAST ( - 58 AS INTEGER ) * + COUNT ( * ) AS col2, + ( + 3 ) * - 14 * 91 + + 13
----
-58
-3809

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4298
SELECT ALL + CAST( NULL AS DECIMAL ), 10 AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-4298
SELECT ALL + CAST ( NULL AS REAL ), 10 AS col2
----
NULL
10

query I rowsort
SELECT - 50 + 45 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT NULLIF ( - 17, 18 + - 15 ) DIV - 12 - - ( - 64 ) + 10 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4300
SELECT NULLIF ( - 17, 18 + - 15 ) / - 12 - - ( - 64 ) + 10 AS col0
----
-53

query I rowsort
SELECT 18 * - 31 + - - 6
----
-552

query I rowsort
SELECT ALL + NULLIF ( 39, - - 54 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT NULLIF ( - + 23, - + 23 * 21 + - COUNT( * ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4303
SELECT NULLIF ( - + 23, - + 23 * 21 + - COUNT ( * ) ) AS col2
----
-23

query I rowsort
SELECT + 14 * + ( - 32 )
----
-448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4305
SELECT 1 AS col1, 30 * + CAST( NULL AS SIGNED ) + + - 89 + + + 6 / ( - + 37 ) / 78 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4305
SELECT 1 AS col1, 30 * + CAST ( NULL AS INTEGER ) + + - 89 + + + 6 / ( - + 37 ) / 78 AS col1
----
1
NULL

query I rowsort
SELECT - 63 - + + 58 col2
----
-121

query II rowsort
SELECT + + 71 col0, + 3
----
71
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4308
SELECT - 77 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-4308
SELECT - 77 / + 81
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT DISTINCT - ( 52 ) DIV SUM( ALL + ( - 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT - ( 52 ) / SUM ( ALL + ( - 27 ) )
----
1

query I rowsort
SELECT DISTINCT 52 * - - 40
----
2080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4311
SELECT DISTINCT COUNT( - - 90 ) DIV - 47 + + 72 * 16 - - 62 AS col1
----
1214

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT COUNT ( - - 90 ) / - 47 + + 72 * 16 - - 62 AS col1
----
1214

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT + + 75 * - COUNT( + 66 ) * 16 AS col0
----
-1200

skipif mysql # not compatible
query I rowsort label-4312
SELECT + + 75 * - COUNT ( + 66 ) * 16 AS col0
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + SUM( DISTINCT - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4313
SELECT + SUM ( DISTINCT - 92 )
----
-92

query I rowsort
SELECT + 79 + + 81 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + SUM( ALL 70 ) + + 88
----
158

skipif mysql # not compatible
query I rowsort label-4315
SELECT + SUM ( ALL 70 ) + + 88
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT + CAST( 29 AS SIGNED ) * - NULLIF ( - 63, - 25 ) AS col2
----
1827

skipif mysql # not compatible
query I rowsort label-4316
SELECT + CAST ( 29 AS INTEGER ) * - NULLIF ( - 63, - 25 ) AS col2
----
1827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4317
SELECT DISTINCT + 62 * - COUNT( * ) DIV 68 + + 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT + 62 * - COUNT ( * ) / 68 + + 72 AS col2
----
72

query I rowsort
SELECT DISTINCT - ( + - COALESCE ( - 44, + 52 ) )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT ALL + COALESCE ( 11, 77 * + + 83 - - 35 DIV + 8 * + - ( - 71 ) + - - COUNT( * ) * + 62 * 17 * + - 49 )
----
11

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL + COALESCE ( 11, 77 * + + 83 - - 35 / + 8 * + - ( - 71 ) + - - COUNT ( * ) * + 62 * 17 * + - 49 )
----
11

query I rowsort
SELECT + - 7 * - 30 AS col0
----
210

query I rowsort
SELECT DISTINCT - 1 * + + 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL CASE 66 WHEN - 72 THEN + NULLIF ( - CASE + 70 WHEN 55 THEN - COALESCE ( - - 37, + + 87, - COALESCE ( - ( ( 40 ) ), - - 33, - 61 ) * - 49 * - + 33 / + 63 * - + 76 + - 62 + 3 * + CASE + COUNT( * ) WHEN + 3 * + - 97 THEN NULL WHEN - - 83 THEN - 46 ELSE CASE ( + - 64 ) WHEN 90 THEN - 0 END * - - 91 END / NULLIF ( 79, 41 ) + - - 89 - 46 * - 58 / + + 50 ) WHEN - 9 * + - MAX( 27 ) THEN NULL ELSE NULL END, - 39 - - COUNT( * ) * + 41 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL CASE 66 WHEN - 72 THEN + NULLIF ( - CASE + 70 WHEN 55 THEN - COALESCE ( - - 37, + + 87, - COALESCE ( - ( ( 40 ) ), - - 33, - 61 ) * - 49 * - + 33 / + 63 * - + 76 + - 62 + 3 * + CASE + COUNT ( * ) WHEN + 3 * + - 97 THEN NULL WHEN - - 83 THEN - 46 ELSE CASE ( + - 64 ) WHEN 90 THEN - 0 END * - - 91 END / NULLIF ( 79, 41 ) + - - 89 - 46 * - 58 / + + 50 ) WHEN - 9 * + - MAX ( 27 ) THEN NULL ELSE NULL END, - 39 - - COUNT ( * ) * + 41 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT + COUNT( * ) + 76 * + + MIN( - 53 ) AS col0
----
-4027

skipif mysql # not compatible
query I rowsort label-4323
SELECT + COUNT ( * ) + 76 * + + MIN ( - 53 ) AS col0
----
-4027

query I rowsort
SELECT 29 * - 54 AS col2
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT 68 + 10 + - SUM( + 81 ) * + 57 + - ( - 27 ) * - 36
----
-5511

skipif mysql # not compatible
query I rowsort label-4325
SELECT 68 + 10 + - SUM ( + 81 ) * + 57 + - ( - 27 ) * - 36
----
-5511

query I rowsort
SELECT 77 + + + 70 * + 33 * + 9
----
20867

query I rowsort
SELECT ALL - 40 * 30 * - 27 * - 66 * 9 * 16
----
-307929600

query II rowsort
SELECT ALL + 86 + - 35 AS col2, 21
----
51
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT - 23 + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - 23 + + COUNT ( * )
----
-22

query I rowsort
SELECT 67 * 86 AS col1
----
5762

query I rowsort
SELECT ALL 50 + - 37 * 2 - - - 82 AS col0
----
-106

query I rowsort
SELECT ALL - 41 + 89 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT - 69 + + - ( MIN( DISTINCT - 66 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT - 69 + + - ( MIN ( DISTINCT - 66 ) ) AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4334
SELECT 99 DIV 11 DIV - ( CAST( - - 71 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4334
SELECT 99 / 11 / - ( CAST ( - - 71 AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 5 + 30 + 41
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4336
SELECT DISTINCT + 96 DIV - MIN( - 16 )
----
6

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT + 96 / - MIN ( - 16 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + 38 * - 47 * COUNT( * ) - - + 39 * 4 + - - 66 * + 96 * - + COUNT( * ) * 77 * 12 col0
----
-5856094

skipif mysql # not compatible
query I rowsort label-4337
SELECT + 38 * - 47 * COUNT ( * ) - - + 39 * 4 + - - 66 * + 96 * - + COUNT ( * ) * 77 * 12 col0
----
-5856094

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT MAX( + 1 ) * - + 42 * + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4338
SELECT MAX ( + 1 ) * - + 42 * + COUNT ( * )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4339
SELECT 71 + - 99 - - - 32 + + + CASE + ( 22 ) WHEN + - COALESCE ( 86, + - ( + CAST( + 20 AS DECIMAL ) ) + + CASE 75 WHEN + ( + 96 ) THEN NULL WHEN MAX( + 92 ) * + COUNT( * ) * - + COUNT( * ) + + 90 THEN 82 WHEN + MAX( DISTINCT 41 ) THEN NULL END, ( - 15 ) - + COALESCE ( + MAX( ALL 31 ), - + 88, + + 43 ) * - CASE - + 49 WHEN - - 7 / - 15 + - MAX( - 71 ) * 91 THEN - 30 * + - 3 * + 51 + CAST( - 54 AS SIGNED ) WHEN - 87 THEN NULL ELSE NULL END + 21 + + 65 ) / ( + 81 ) + - 54 * MIN( + 31 * 97 ) THEN ( + 12 ) ELSE - 27 + + CAST( NULL AS DECIMAL ) END * + 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT 71 + - 99 - - - 32 + + + CASE + ( 22 ) WHEN + - COALESCE ( 86, + - ( + CAST ( + 20 AS REAL ) ) + + CASE 75 WHEN + ( + 96 ) THEN NULL WHEN MAX ( + 92 ) * + COUNT ( * ) * - + COUNT ( * ) + + 90 THEN 82 WHEN + MAX ( DISTINCT 41 ) THEN NULL END, ( - 15 ) - + COALESCE ( + MAX ( ALL 31 ), - + 88, + + 43 ) * - CASE - + 49 WHEN - - 7 / - 15 + - MAX ( - 71 ) * 91 THEN - 30 * + - 3 * + 51 + CAST ( - 54 AS INTEGER ) WHEN - 87 THEN NULL ELSE NULL END + 21 + + 65 ) / ( + 81 ) + - 54 * MIN ( + 31 * 97 ) THEN ( + 12 ) ELSE - 27 + + CAST ( NULL AS REAL ) END * + 44 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT + + COALESCE ( - 50, - + 46 * + + COUNT( * ) + - COALESCE ( 60, 57 ) ) AS col0, 80 * - 60
----
-50
-4800

skipif mysql # not compatible
query II rowsort label-4340
SELECT + + COALESCE ( - 50, - + 46 * + + COUNT ( * ) + - COALESCE ( 60, 57 ) ) AS col0, 80 * - 60
----
-50
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT ALL - + NULLIF ( + - ( 48 ), 5 ) * COUNT( * ) * + + 45 * + - 68 + + 70
----
-146810

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - + NULLIF ( + - ( 48 ), 5 ) * COUNT ( * ) * + + 45 * + - 68 + + 70
----
-146810

query I rowsort
SELECT DISTINCT - + ( 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT - ( - COUNT( * ) ) - - + 74
----
75

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT - ( - COUNT ( * ) ) - - + 74
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT - COUNT( * ) + - + 96
----
-97

skipif mysql # not compatible
query I rowsort label-4344
SELECT - COUNT ( * ) + - + 96
----
-97

query I rowsort
SELECT ALL - - 66 * + 59 AS col0
----
3894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4346
SELECT MAX( CAST( NULL AS SIGNED ) ) AS col1, 99 DIV - - 51
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4346
SELECT MAX ( CAST ( NULL AS INTEGER ) ) AS col1, 99 / - - 51
----
NULL
1

query I rowsort
SELECT DISTINCT NULLIF ( - 64, 88 ) col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4348
SELECT CASE + 34 WHEN 32 THEN - 71 ELSE NULL END, + 25 DIV + COUNT( * ) AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-4348
SELECT CASE + 34 WHEN 32 THEN - 71 ELSE NULL END, + 25 / + COUNT ( * ) AS col2
----
NULL
25

query I rowsort
SELECT 12 * 83
----
996

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - MIN( 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4350
SELECT - MIN ( 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT - COUNT( * ) * - - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - COUNT ( * ) * - - 45 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-4352
SELECT ALL + 97 DIV + + 15 AS col0, - 12 DIV 18
----
6
0

skipif mysql # not compatible
query II rowsort label-4352
SELECT ALL + 97 / + + 15 AS col0, - 12 / 18
----
6
0

query I rowsort
SELECT ALL 5 * 80 * 31 * - 29 AS col0
----
-359600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4354
SELECT ALL ( - 33 ) DIV - ( COUNT( * ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL ( - 33 ) / - ( COUNT ( * ) ) AS col1
----
33

query I rowsort
SELECT 39 - + + 17 * 21 AS col2
----
-318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT COALESCE ( 77, + CAST( COUNT( * ) AS SIGNED ), + + 2 ) - + 59
----
18

skipif mysql # not compatible
query I rowsort label-4356
SELECT COALESCE ( 77, + CAST ( COUNT ( * ) AS INTEGER ), + + 2 ) - + 59
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4357
SELECT - 82 AS col1, 31 + COUNT( * ) - - 81 + MAX( DISTINCT 25 ) DIV 26
----
-82
113

skipif mysql # not compatible
query II rowsort label-4357
SELECT - 82 AS col1, 31 + COUNT ( * ) - - 81 + MAX ( DISTINCT 25 ) / 26
----
-82
113

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT MAX( ALL - - 32 ) * + + 75
----
2400

skipif mysql # not compatible
query I rowsort label-4358
SELECT MAX ( ALL - - 32 ) * + + 75
----
2400

query I rowsort
SELECT ALL 45 + + 83 AS col1
----
128

query I rowsort
SELECT DISTINCT 4 + - 34 col1
----
-30

query I rowsort
SELECT DISTINCT 80 + + 87 AS col0
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT ALL COUNT( * ) + + - 3 DIV - 71 + 51
----
52

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL COUNT ( * ) + + - 3 / - 71 + 51
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4363
SELECT MAX( ALL - 23 ) - + 85 AS col1, 26 * + + 58 + + + 57 AS col2
----
-108
1565

skipif mysql # not compatible
query II rowsort label-4363
SELECT MAX ( ALL - 23 ) - + 85 AS col1, 26 * + + 58 + + + 57 AS col2
----
-108
1565

query II rowsort
SELECT ALL 50 AS col0, 79
----
50
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT COUNT( * ) AS col1, - 23
----
1
-23

skipif mysql # not compatible
query II rowsort label-4365
SELECT COUNT ( * ) AS col1, - 23
----
1
-23

query I rowsort
SELECT ALL 96 * 8 col2
----
768

query I rowsort
SELECT 83 + - 3
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4368
SELECT ALL - 53 AS col1, 11 * + 98 / + + CAST( NULL AS SIGNED ) * COUNT( * ) * + - 18 AS col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-4368
SELECT ALL - 53 AS col1, 11 * + 98 / + + CAST ( NULL AS INTEGER ) * COUNT ( * ) * + - 18 AS col2
----
-53
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT ALL + 92 * COUNT( * ) * + - 39 AS col1, + 5 AS col1
----
-3588
5

skipif mysql # not compatible
query II rowsort label-4369
SELECT ALL + 92 * COUNT ( * ) * + - 39 AS col1, + 5 AS col1
----
-3588
5

query I rowsort
SELECT ALL 43 - + 2 AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL - CASE - + 23 WHEN + COUNT( ALL + - 62 ) + + + 21 THEN NULL WHEN + CAST( COUNT( * ) AS SIGNED ) + + + 15 - + + MIN( - + 14 ) / - 91 + + - CAST( NULL AS SIGNED ) THEN - 1 - - + 16 WHEN + ( COUNT( * ) ) - + NULLIF ( 20, + 56 + + COALESCE ( + MAX( + 24 ), 15 + + ( - 11 ) + + AVG ( DISTINCT - - 31 ) * - 17 * + - AVG ( 67 ) ) + - - NULLIF ( 29, - 46 ) ) THEN NULL ELSE 0 - + 5 END
----
5

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - CASE - + 23 WHEN + COUNT ( ALL + - 62 ) + + + 21 THEN NULL WHEN + CAST ( COUNT ( * ) AS INTEGER ) + + + 15 - + + MIN ( - + 14 ) / - 91 + + - CAST ( NULL AS INTEGER ) THEN - 1 - - + 16 WHEN + ( COUNT ( * ) ) - + NULLIF ( 20, + 56 + + COALESCE ( + MAX ( + 24 ), 15 + + ( - 11 ) + + AVG ( DISTINCT - - 31 ) * - 17 * + - AVG ( 67 ) ) + - - NULLIF ( 29, - 46 ) ) THEN NULL ELSE 0 - + 5 END
----
5

query II rowsort
SELECT ALL - 75, - 3 AS col2
----
-75
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT ALL + COUNT( * ) * 53
----
53

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + COUNT ( * ) * 53
----
53

query I rowsort
SELECT 78 * - 11 AS col1
----
-858

query II rowsort
SELECT ALL - 65, - 67 AS col1
----
-65
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4376
SELECT + 55, COUNT( * ) AS col2
----
55
1

skipif mysql # not compatible
query II rowsort label-4376
SELECT + 55, COUNT ( * ) AS col2
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT - + COUNT( DISTINCT + 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - + COUNT ( DISTINCT + 14 )
----
-1

query I rowsort
SELECT ALL + 53 - - - 41
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT ALL + - COUNT( * ) DIV + 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + - COUNT ( * ) / + 49 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT - + COUNT( * ) * - COUNT( * ) + + + 74 + - 26 + + 3 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4380
SELECT - + COUNT ( * ) * - COUNT ( * ) + + + 74 + - 26 + + 3 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4381
SELECT 47 * + COUNT( ALL - + 76 ) AS col1, 2 AS col1
----
47
2

skipif mysql # not compatible
query II rowsort label-4381
SELECT 47 * + COUNT ( ALL - + 76 ) AS col1, 2 AS col1
----
47
2

query I rowsort
SELECT ALL - + 5 AS col1
----
-5

query I rowsort
SELECT 56 * 17 * + 30 + - 58 * + 48
----
25776

query I rowsort
SELECT + ( - 47 ) * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT ALL + 12 * + 99 * + 2 + - CAST( + MIN( ALL - 83 ) AS SIGNED )
----
2459

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL + 12 * + 99 * + 2 + - CAST ( + MIN ( ALL - 83 ) AS INTEGER )
----
2459

query I rowsort
SELECT 26 * - 33 AS col2
----
-858

query I rowsort
SELECT DISTINCT - CASE + 58 WHEN 13 THEN ( - 91 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4388
SELECT DISTINCT + 79 * - + 76 + + ( + 16 ) - + - 20 * 52 * + 69 + + 45 * - ( - + 90 ) DIV + COALESCE ( + COUNT( * ), - 41, COALESCE ( + 71, 31 ) ) AS col1
----
69822

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT + 79 * - + 76 + + ( + 16 ) - + - 20 * 52 * + 69 + + 45 * - ( - + 90 ) / + COALESCE ( + COUNT ( * ), - 41, COALESCE ( + 71, 31 ) ) AS col1
----
69822

query I rowsort
SELECT ALL 55 + - 35 AS col0
----
20

query I rowsort
SELECT - 24 - + 20
----
-44

query I rowsort
SELECT - 68 * + 95
----
-6460

query I rowsort
SELECT - 99 + - 82 AS col0
----
-181

query I rowsort
SELECT ALL - 86 + 34 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - 75 + + 35 * 11 + + 92 * + COUNT( * ) * + 7 * MIN( + - CASE + NULLIF ( - 98, 20 * - 5 + - 27 ) WHEN 54 * + 81 THEN NULL ELSE - + 1 END ) + + COUNT( * )
----
955

skipif mysql # not compatible
query I rowsort label-4394
SELECT - 75 + + 35 * 11 + + 92 * + COUNT ( * ) * + 7 * MIN ( + - CASE + NULLIF ( - 98, 20 * - 5 + - 27 ) WHEN 54 * + 81 THEN NULL ELSE - + 1 END ) + + COUNT ( * )
----
955

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL + 22 + - + ( 59 ) * - SUM( ALL + 69 ) AS col0
----
4093

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL + 22 + - + ( 59 ) * - SUM ( ALL + 69 ) AS col0
----
4093

query I rowsort
SELECT ALL 39 + + - 34 + - 59 AS col1
----
-54

query II rowsort
SELECT 46, 58 AS col0
----
46
58

query I rowsort
SELECT DISTINCT - 68 + - 25 + + 53 col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4399
SELECT ALL 91 + + COUNT( * ) + 29 DIV + + COUNT( * ) AS col0
----
121

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL 91 + + COUNT ( * ) + 29 / + + COUNT ( * ) AS col0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4400
SELECT ALL - 50 + - ( - 87 ) * - 69 + MIN( CAST( NULL AS SIGNED ) ) + + 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL - 50 + - ( - 87 ) * - 69 + MIN ( CAST ( NULL AS INTEGER ) ) + + 28 col0
----
NULL

query II rowsort
SELECT - 48 AS col1, 96 AS col2
----
-48
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + 91 * COUNT( * ) * 4 * - 47 col1
----
-17108

skipif mysql # not compatible
query I rowsort label-4402
SELECT + 91 * COUNT ( * ) * 4 * - 47 col1
----
-17108

onlyif mysql # aggregate syntax: 
query II rowsort label-4403
SELECT DISTINCT 97 * + 39 AS col0, COUNT( * )
----
3783
1

skipif mysql # not compatible
query II rowsort label-4403
SELECT DISTINCT 97 * + 39 AS col0, COUNT ( * )
----
3783
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT ALL 56 - - + COUNT( * ) + - - 95 DIV 69 col1
----
58

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL 56 - - + COUNT ( * ) + - - 95 / 69 col1
----
58

query II rowsort
SELECT ALL + 57, - 14 col2
----
57
-14

query I rowsort
SELECT DISTINCT + 33 * + + 56
----
1848

query I rowsort
SELECT ALL - 79 * 82 AS col2
----
-6478

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT ALL - 16 * + - MAX( - 15 ) - + + 30 + + - 78 * 9
----
-972

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL - 16 * + - MAX ( - 15 ) - + + 30 + + - 78 * 9
----
-972

query I rowsort
SELECT ALL + + CASE + 65 WHEN 68 THEN + 72 ELSE 13 END
----
13

query I rowsort
SELECT ALL + ( 49 )
----
49

query II rowsort
SELECT ALL + + 53 AS col0, + 33 AS col1
----
53
33

query II rowsort
SELECT + 61, - 17 col1
----
61
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT COUNT( * ) AS col2, 76 * - 20 AS col1
----
1
-1520

skipif mysql # not compatible
query II rowsort label-4413
SELECT COUNT ( * ) AS col2, 76 * - 20 AS col1
----
1
-1520

query II rowsort
SELECT + + 69, - 71 AS col2
----
69
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-4415
SELECT ALL + 13 AS col0, - COUNT( * ) AS col0
----
13
-1

skipif mysql # not compatible
query II rowsort label-4415
SELECT ALL + 13 AS col0, - COUNT ( * ) AS col0
----
13
-1

query I rowsort
SELECT + 45 + + + 36 + ( + 94 ) - - 58 AS col1
----
233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT - + 33 * 62 + + + ( - - COUNT( * ) ) + 45 - - NULLIF ( + CAST( + SUM( - + COALESCE ( + 74, + CAST( NULL AS SIGNED ) ) ) AS SIGNED ), + + 17 * - + COUNT( * ) + + 29 ) + + - 66 * + 25 - - - 66 col0
----
-3790

skipif mysql # not compatible
query I rowsort label-4417
SELECT - + 33 * 62 + + + ( - - COUNT ( * ) ) + 45 - - NULLIF ( + CAST ( + SUM ( - + COALESCE ( + 74, + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ), + + 17 * - + COUNT ( * ) + + 29 ) + + - 66 * + 25 - - - 66 col0
----
-3790

query I rowsort
SELECT - + 96 * + ( - 34 ) + + 74
----
3338

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + NULLIF ( - 49, + - MAX( - ( + 76 ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-4419
SELECT + NULLIF ( - 49, + - MAX ( - ( + 76 ) ) )
----
-49

query II rowsort
SELECT ALL + 51, - 47 AS col2
----
51
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4421
SELECT + CAST( - 27 AS SIGNED ) DIV 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4421
SELECT + CAST ( - 27 AS INTEGER ) / 5 AS col2
----
-5

query I rowsort
SELECT ALL - 32 * - - 68 * 78 + 81 + - 17
----
-169664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4423
SELECT 19 * + + 50 * 31 + - - 35 + - 75 + CAST( - 40 AS SIGNED ) * - COUNT( * ) * - 30 AS col0, - ( 88 )
----
28210
-88

skipif mysql # not compatible
query II rowsort label-4423
SELECT 19 * + + 50 * 31 + - - 35 + - 75 + CAST ( - 40 AS INTEGER ) * - COUNT ( * ) * - 30 AS col0, - ( 88 )
----
28210
-88

query I rowsort
SELECT ALL 86 * + 70 + + - 91
----
5929

query I rowsort
SELECT - + 44 + - + COALESCE ( + 91, + + ( - 46 ) ) * - - 43
----
-3957

query II rowsort
SELECT + 15 * + 35 - - 66 - ( ( - 16 ) ) AS col0, + 38 AS col1
----
607
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL + COALESCE ( + COUNT( * ), 76 * - 91 + + + 58 + - 91 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + COALESCE ( + COUNT ( * ), 76 * - 91 + + + 58 + - 91 ) col1
----
1

query I rowsort
SELECT + 62 * + - 4
----
-248

onlyif mysql # aggregate syntax: 
query II rowsort label-4429
SELECT SUM( + 92 ) col0, 25
----
92
25

skipif mysql # not compatible
query II rowsort label-4429
SELECT SUM ( + 92 ) col0, 25
----
92
25

query I rowsort
SELECT + ( + - 76 ) * + 41 + - + 82 + + - 43 AS col2
----
-3241

onlyif mysql # DIV for integer division: 
query II rowsort label-4431
SELECT - 51 DIV - - 7 AS col1, 43 * - - ( - 85 )
----
-7
-3655

skipif mysql # not compatible
query II rowsort label-4431
SELECT - 51 / - - 7 AS col1, 43 * - - ( - 85 )
----
-7
-3655

query I rowsort
SELECT ALL - 81 + - - 23 - - 20 AS col2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT DISTINCT 75 DIV 27 * - 51
----
-102

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT 75 / 27 * - 51
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-4434
SELECT ALL ( - SUM( - ( + ( - + 50 ) ) ) ), 47 col0
----
-50
47

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL ( - SUM ( - ( + ( - + 50 ) ) ) ), 47 col0
----
-50
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4435
SELECT - CAST( 48 AS SIGNED ), 26 DIV + 51 AS col2
----
-48
0

skipif mysql # not compatible
query II rowsort label-4435
SELECT - CAST ( 48 AS INTEGER ), 26 / + 51 AS col2
----
-48
0

query I rowsort
SELECT DISTINCT + 10 * - 73 AS col0
----
-730

query I rowsort
SELECT DISTINCT ( 58 )
----
58

query I rowsort
SELECT - 62 - ( 99 ) AS col1
----
-161

query I rowsort
SELECT - COALESCE ( 32, - ( 54 ) ) - + 63 * 28 + - + 95 + - 70
----
-1961

query II rowsort
SELECT - 32 * 46 AS col2, + 86 col1
----
-1472
86

query I rowsort
SELECT DISTINCT 43 * 4 * - 21 AS col0
----
-3612

query I rowsort
SELECT - 8 - + 27 * - + 87 AS col0
----
2341

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT - - 81 DIV + 80 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4443
SELECT - - 81 / + 80 AS col0
----
1

query I rowsort
SELECT DISTINCT - 70 * + 38
----
-2660

query I rowsort
SELECT + + CASE - 91 WHEN - 58 THEN NULL WHEN - 61 THEN - ( - 88 ) END
----
NULL

query I rowsort
SELECT ALL + - ( - 18 ) AS col1
----
18

query I rowsort
SELECT - 34 + - - 54 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT - COUNT( * ) * - 87 * 63
----
5481

skipif mysql # not compatible
query I rowsort label-4448
SELECT - COUNT ( * ) * - 87 * 63
----
5481

query I rowsort
SELECT ALL + - ( + + ( - + 19 ) ) AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4450
SELECT ALL - 42 DIV - - COALESCE ( NULLIF ( - - 89, + + 0 ), ( + 92 ) DIV - 22 + COALESCE ( - 54, + + CAST( NULL AS SIGNED ) + 61 + + 50 * - 64 * CASE - 22 WHEN + 15 THEN + - COUNT( * ) DIV + NULLIF ( 75, + 51 DIV - CAST( - 20 AS SIGNED ) + + - 37 ) + + 81 WHEN 98 DIV + 57 THEN 10 END ) * - + 96, CAST( NULL AS SIGNED ) ) + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - 42 / - - COALESCE ( NULLIF ( - - 89, + + 0 ), ( + 92 ) / - 22 + COALESCE ( - 54, + + CAST ( NULL AS INTEGER ) + 61 + + 50 * - 64 * CASE - 22 WHEN + 15 THEN + - COUNT ( * ) / + NULLIF ( 75, + 51 / - CAST ( - 20 AS INTEGER ) + + - 37 ) + + 81 WHEN 98 / + 57 THEN 10 END ) * - + 96, CAST ( NULL AS INTEGER ) ) + - 43
----
-43

query I rowsort
SELECT ALL + 54 + + 47 + + 81 AS col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + + COALESCE ( - COUNT( * ), ( + COUNT( * ) ) * - 7, - 93 * - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-4452
SELECT + + COALESCE ( - COUNT ( * ), ( + COUNT ( * ) ) * - 7, - 93 * - 61 )
----
-1

query I rowsort
SELECT 56 + + + 18 col0
----
74

query I rowsort
SELECT CASE - ( ( + - 52 ) ) WHEN - 93 THEN - 67 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT 13 * + 42 + 95 + COALESCE ( 61, COUNT( * ) - - 75 - COUNT( - 15 ) + - + 8 + + 89, - - 74 * - CAST( NULL AS SIGNED ) + + 52 )
----
702

skipif mysql # not compatible
query I rowsort label-4455
SELECT 13 * + 42 + 95 + COALESCE ( 61, COUNT ( * ) - - 75 - COUNT ( - 15 ) + - + 8 + + 89, - - 74 * - CAST ( NULL AS INTEGER ) + + 52 )
----
702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT DISTINCT - CAST( - + 81 AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT - CAST ( - + 81 AS INTEGER ) AS col0
----
81

query I rowsort
SELECT DISTINCT 63 + - 94 AS col0
----
-31

query I rowsort
SELECT ALL 22 * - - 53
----
1166

query I rowsort
SELECT ALL 34 + + 46 col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4460
SELECT DISTINCT 93 + + CAST( + COUNT( * ) AS SIGNED ) + 85 DIV + + 98 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT 93 + + CAST ( + COUNT ( * ) AS INTEGER ) + 85 / + + 98 AS col0
----
94

query I rowsort
SELECT ALL + 23 + 99
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4462
SELECT CAST( ( COUNT( * ) ) AS SIGNED ) - 31 * + 95
----
-2944

skipif mysql # not compatible
query I rowsort label-4462
SELECT CAST ( ( COUNT ( * ) ) AS INTEGER ) - 31 * + 95
----
-2944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4463
SELECT COUNT( + + 56 ) * - + CASE + - 6 WHEN + 41 THEN 87 * - SUM( DISTINCT + - 17 ) * + 22 ELSE - 94 END + 47 * 83 - + NULLIF ( + 10, CASE + + 17 WHEN + 41 THEN - + 90 END * + 37 * CAST( NULL AS SIGNED ) )
----
3985

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( + + 56 ) * - + CASE + - 6 WHEN + 41 THEN 87 * - SUM ( DISTINCT + - 17 ) * + 22 ELSE - 94 END + 47 * 83 - + NULLIF ( + 10, CASE + + 17 WHEN + 41 THEN - + 90 END * + 37 * CAST ( NULL AS INTEGER ) )
----
3985

query I rowsort
SELECT 93 + + - 52 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT 64 * + MIN( + 82 ) AS col0
----
5248

skipif mysql # not compatible
query I rowsort label-4465
SELECT 64 * + MIN ( + 82 ) AS col0
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT 2 + - 32 * - COUNT( * ) + + 89 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-4466
SELECT 2 + - 32 * - COUNT ( * ) + + 89 AS col1
----
123

query I rowsort
SELECT 12 * + ( - - 96 )
----
1152

query I rowsort
SELECT 18 - + 89 * + 92 AS col1
----
-8170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4469
SELECT ALL - MIN( - 79 ) DIV - - ( + - ( - 88 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - MIN ( - 79 ) / - - ( + - ( - 88 ) ) AS col2
----
0

query II rowsort
SELECT DISTINCT 48, ( + 8 ) + - 2 + 62 AS col1
----
48
68

query II rowsort
SELECT ALL 0 AS col1, 40 AS col2
----
0
40

query II rowsort
SELECT - 1 AS col2, + 84 + - + 4
----
-1
80

query I rowsort
SELECT 2 + 72
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT DISTINCT 79 - 30 + + 98 + 58 * COUNT( DISTINCT 17 ) * + + 52
----
3163

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT 79 - 30 + + 98 + 58 * COUNT ( DISTINCT 17 ) * + + 52
----
3163

query I rowsort
SELECT ALL - 61 * + 90
----
-5490

query I rowsort
SELECT 18 + + + 17
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4477
SELECT 27 + + 9 * CAST( NULL AS SIGNED ) AS col0, ( + 31 ) AS col0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-4477
SELECT 27 + + 9 * CAST ( NULL AS INTEGER ) AS col0, ( + 31 ) AS col0
----
NULL
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ( - 11 ) * + CASE - 6 WHEN + 46 * + ( - COUNT( * ) ) THEN 31 WHEN 16 * + 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT ( - 11 ) * + CASE - 6 WHEN + 46 * + ( - COUNT ( * ) ) THEN 31 WHEN 16 * + 57 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT 22 + + + 8 + - 71 * COUNT( * ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-4479
SELECT 22 + + + 8 + - 71 * COUNT ( * ) col1
----
-41

query II rowsort
SELECT ALL 51 AS col0, 21 * - - 27 AS col1
----
51
567

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4481
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 64 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4482
SELECT + COUNT( * ) DIV + 4
----
0

skipif mysql # not compatible
query I rowsort label-4482
SELECT + COUNT ( * ) / + 4
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4483
SELECT ALL 94 + + COALESCE ( - + 90, + 16 * + + 50, + 68 + 66 ) DIV - + 91 AS col1, + 81 + + - 76 + + - 85 * - + 7
----
94
600

skipif mysql # not compatible
query II rowsort label-4483
SELECT ALL 94 + + COALESCE ( - + 90, + 16 * + + 50, + 68 + 66 ) / - + 91 AS col1, + 81 + + - 76 + + - 85 * - + 7
----
94
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT + COALESCE ( + COALESCE ( - 48, - 25, + ( - + 97 ) * 8 * + + 13 ), - - CAST( 89 AS SIGNED ) * + + 69 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4484
SELECT + COALESCE ( + COALESCE ( - 48, - 25, + ( - + 97 ) * 8 * + + 13 ), - - CAST ( 89 AS INTEGER ) * + + 69 ) AS col0
----
-48

query I rowsort
SELECT ALL - ( + NULLIF ( ( + 78 ), + 78 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 52 + ( - 70 )
----
-122

query II rowsort
SELECT 80 AS col1, 28 AS col0
----
80
28

query II rowsort
SELECT ALL - ( + - 47 ) + 13 AS col2, - 6
----
60
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - COUNT( * ) * - 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4489
SELECT - COUNT ( * ) * - 70 AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT ALL - CAST( + 60 AS SIGNED ) * - 62 * - - 97
----
360840

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - CAST ( + 60 AS INTEGER ) * - 62 * - - 97
----
360840

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT + + COUNT( * ) AS col0, 13 AS col2
----
1
13

skipif mysql # not compatible
query II rowsort label-4491
SELECT + + COUNT ( * ) AS col0, 13 AS col2
----
1
13

query I rowsort
SELECT DISTINCT - ( - + 25 ) AS col0
----
25

query I rowsort
SELECT 83 + NULLIF ( + 38, + 46 * - 5 ) + - + 16 * + 59 * - 40 AS col0
----
37881

query I rowsort
SELECT 73 * + 21
----
1533

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT - SUM( 57 ) * + MIN( ALL + + ( - + 24 ) ) + - 10
----
1358

skipif mysql # not compatible
query I rowsort label-4495
SELECT - SUM ( 57 ) * + MIN ( ALL + + ( - + 24 ) ) + - 10
----
1358

query I rowsort
SELECT ALL 33 * + + 20
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT 79 * + 17 * - ( NULLIF ( 13, - CASE + COUNT( * ) WHEN + - SUM( - 88 ) THEN - 64 * - - COALESCE ( + + ( + CASE - 55 WHEN 61 THEN NULL ELSE + - 44 * + 38 END ), + 98 ) ELSE - 89 END * - ( - - 23 ) * - 97 - + - 66 - - ( - ( + 88 ) ) - + 13 ) ) AS col2
----
-17459

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT 79 * + 17 * - ( NULLIF ( 13, - CASE + COUNT ( * ) WHEN + - SUM ( - 88 ) THEN - 64 * - - COALESCE ( + + ( + CASE - 55 WHEN 61 THEN NULL ELSE + - 44 * + 38 END ), + 98 ) ELSE - 89 END * - ( - - 23 ) * - 97 - + - 66 - - ( - ( + 88 ) ) - + 13 ) ) AS col2
----
-17459

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT 92 + + - ( - - 45 ) + + MIN( - - 64 ) * + - COALESCE ( + - 50, + 35 ) AS col1
----
3247

skipif mysql # not compatible
query I rowsort label-4498
SELECT 92 + + - ( - - 45 ) + + MIN ( - - 64 ) * + - COALESCE ( + - 50, + 35 ) AS col1
----
3247

onlyif mysql # aggregate syntax: 
query II rowsort label-4499
SELECT COUNT( * ) * - + 97 AS col1, + 83 AS col0
----
-97
83

skipif mysql # not compatible
query II rowsort label-4499
SELECT COUNT ( * ) * - + 97 AS col1, + 83 AS col0
----
-97
83

query I rowsort
SELECT COALESCE ( + 15, - - ( - 30 ) + + 25 ) - + 91 * + + 79 * + - 72 AS col2
----
517623

query I rowsort
SELECT 78 - + ( - 41 ) AS col0
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4502
SELECT ALL + MIN( DISTINCT - - 56 ) AS col1, 62 DIV - + NULLIF ( NULLIF ( - + 15, + + 39 ), - 43 ) * + COUNT( * ) AS col2
----
56
4

skipif mysql # not compatible
query II rowsort label-4502
SELECT ALL + MIN ( DISTINCT - - 56 ) AS col1, 62 / - + NULLIF ( NULLIF ( - + 15, + + 39 ), - 43 ) * + COUNT ( * ) AS col2
----
56
4

query I rowsort
SELECT ALL + + 92 + + 20
----
112

query I rowsort
SELECT + 16 + + 85
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL + ( ( - 42 ) ) + + 93 * - NULLIF ( - COUNT( * ), 7 ) * - 5
----
-507

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + ( ( - 42 ) ) + + 93 * - NULLIF ( - COUNT ( * ), 7 ) * - 5
----
-507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4506
SELECT ALL - COUNT( * ) + + 43 * + CAST( - 47 AS SIGNED ) AS col0
----
-2022

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL - COUNT ( * ) + + 43 * + CAST ( - 47 AS INTEGER ) AS col0
----
-2022

query I rowsort
SELECT - 52 - + 27 * - 55 * 87 * - - 63
----
8139233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT + CAST( NULL AS SIGNED ) * - 39 * - + 45 + + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT + CAST ( NULL AS INTEGER ) * - 39 * - + 45 + + 22 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4509
SELECT DISTINCT - NULLIF ( + - CASE + 14 WHEN + NULLIF ( + COALESCE ( - CAST( - 18 AS SIGNED ), + + 69, + ( - 52 ) + - - 44 ), - 78 * + 76 ) THEN NULL WHEN + 31 THEN NULL WHEN 3 THEN + - COUNT( * ) END, - 63 ) * 75 + + 47 AS col0, 46 AS col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-4509
SELECT DISTINCT - NULLIF ( + - CASE + 14 WHEN + NULLIF ( + COALESCE ( - CAST ( - 18 AS INTEGER ), + + 69, + ( - 52 ) + - - 44 ), - 78 * + 76 ) THEN NULL WHEN + 31 THEN NULL WHEN 3 THEN + - COUNT ( * ) END, - 63 ) * 75 + + 47 AS col0, 46 AS col1
----
NULL
46

query I rowsort
SELECT ALL + + ( - ( 31 ) )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT + NULLIF ( + 29, - - 90 + - SUM( DISTINCT + - 67 ) ), + COUNT( * ) * 19 * COUNT( * ) + - - 30 + - 59 AS col0
----
29
-10

skipif mysql # not compatible
query II rowsort label-4511
SELECT + NULLIF ( + 29, - - 90 + - SUM ( DISTINCT + - 67 ) ), + COUNT ( * ) * 19 * COUNT ( * ) + - - 30 + - 59 AS col0
----
29
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL + 11 * ( 63 ) - - - 34 + - COUNT( * ) col2
----
658

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + 11 * ( 63 ) - - - 34 + - COUNT ( * ) col2
----
658

onlyif mysql # DIV for integer division: 
query II rowsort label-4513
SELECT - 68 * 0 DIV 58 * + + 65 AS col0, 93 AS col0
----
0
93

skipif mysql # not compatible
query II rowsort label-4513
SELECT - 68 * 0 / 58 * + + 65 AS col0, 93 AS col0
----
0
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL + 49 * - 41 - + - 55 * - - COUNT( * ) AS col1
----
-1954

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL + 49 * - 41 - + - 55 * - - COUNT ( * ) AS col1
----
-1954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4515
SELECT - 93 + COALESCE ( - ( - + 1 ), ( + COUNT( DISTINCT - 4 ) ) DIV + COUNT( * ) + - 68 + + COUNT( * ) ) * + 53 DIV - + 94 + - 16 DIV + 98
----
-93

skipif mysql # not compatible
query I rowsort label-4515
SELECT - 93 + COALESCE ( - ( - + 1 ), ( + COUNT ( DISTINCT - 4 ) ) / + COUNT ( * ) + - 68 + + COUNT ( * ) ) * + 53 / - + 94 + - 16 / + 98
----
-93

query II rowsort
SELECT + 20 col1, + 82 - - 48
----
20
130

query I rowsort
SELECT - ( + 65 ) + - 91 + COALESCE ( - + 82, + - 16 ) * + 17 AS col1
----
-1550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT - CASE - 79 WHEN + COUNT( + + 71 ) THEN + COUNT( * ) * - 42 * - CASE 59 WHEN + 67 / 63 + + 33 - ( + 76 ) THEN NULL ELSE + + 76 + - + 65 END / + - 50 * - 62 * - 49 * + + 72 - - 36 END * + CAST( 16 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT - CASE - 79 WHEN + COUNT ( + + 71 ) THEN + COUNT ( * ) * - 42 * - CASE 59 WHEN + 67 / 63 + + 33 - ( + 76 ) THEN NULL ELSE + + 76 + - + 65 END / + - 50 * - 62 * - 49 * + + 72 - - 36 END * + CAST ( 16 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT MAX( + 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4519
SELECT MAX ( + 72 ) AS col2
----
72

query I rowsort
SELECT ALL + 33 * + + 16 AS col1
----
528

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4521
SELECT - CAST( NULL AS DECIMAL ) + 24 * - - 36 + - + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT - CAST ( NULL AS REAL ) + 24 * - - 36 + - + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL + 60 * SUM( - 12 )
----
-720

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL + 60 * SUM ( - 12 )
----
-720

query I rowsort
SELECT - 32 - + 70 AS col1
----
-102

query I rowsort
SELECT DISTINCT - 88 * - 45 AS col2
----
3960

query I rowsort
SELECT + 9 + - 23 AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4526
SELECT - CAST( NULL AS SIGNED ) * ( 16 ) + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT - CAST ( NULL AS INTEGER ) * ( 16 ) + 24
----
NULL

query I rowsort
SELECT ALL ( - 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT COUNT( * ) col0, - COALESCE ( + 33, + 79, NULLIF ( - 32, - + 96 ) ) AS col2
----
1
-33

skipif mysql # not compatible
query II rowsort label-4528
SELECT COUNT ( * ) col0, - COALESCE ( + 33, + 79, NULLIF ( - 32, - + 96 ) ) AS col2
----
1
-33

query I rowsort
SELECT + 61 + 71
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + COUNT( * ) * + 47 col2
----
47

skipif mysql # not compatible
query I rowsort label-4530
SELECT + COUNT ( * ) * + 47 col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT + SUM( DISTINCT - 14 ) - - - ( - ( 1 ) ) + - 81 + + + 98 * + MIN( - + 8 ) col0
----
-878

skipif mysql # not compatible
query I rowsort label-4531
SELECT + SUM ( DISTINCT - 14 ) - - - ( - ( 1 ) ) + - 81 + + + 98 * + MIN ( - + 8 ) col0
----
-878

query I rowsort
SELECT ALL 19 + 66 * 34
----
2263

query I rowsort
SELECT + 25 + 44
----
69

query I rowsort
SELECT ALL - 98 + 36 AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT DISTINCT CAST( + ( 18 ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT CAST ( + ( 18 ) AS INTEGER )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + 1 * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4536
SELECT + 1 * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL 13 + - COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL 13 + - COUNT ( * ) AS col1
----
12

query I rowsort
SELECT ALL ( - 55 ) * - 46 AS col2
----
2530

query I rowsort
SELECT ALL 83 + 88 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT + 95 + COUNT( * ) * + 14 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-4540
SELECT + 95 + COUNT ( * ) * + 14 AS col1
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT + 65 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 65 / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT + CASE ( 40 ) WHEN 18 THEN NULL WHEN + 92 THEN - NULLIF ( MIN( - 75 ), AVG ( ALL 34 ) ) * - 49 ELSE - 48 END + 87
----
39

skipif mysql # not compatible
query I rowsort label-4542
SELECT + CASE ( 40 ) WHEN 18 THEN NULL WHEN + 92 THEN - NULLIF ( MIN ( - 75 ), AVG ( ALL 34 ) ) * - 49 ELSE - 48 END + 87
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4543
SELECT ALL CAST( - SUM( DISTINCT CAST( - 48 AS SIGNED ) ) AS SIGNED ) + + 46 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL CAST ( - SUM ( DISTINCT CAST ( - 48 AS INTEGER ) ) AS INTEGER ) + + 46 AS col2
----
94

query I rowsort
SELECT + 83 * + 90 AS col1
----
7470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT - CAST( + 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-4545
SELECT - CAST ( + 44 AS INTEGER )
----
-44

query I rowsort
SELECT + 47 + - 69 * 63
----
-4300

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT + NULLIF ( + 78, + 6 ) DIV 12 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4547
SELECT + NULLIF ( + 78, + 6 ) / 12 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT + ( 15 ) + - MAX( + ( 47 ) + + 87 ) AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-4548
SELECT + ( 15 ) + - MAX ( + ( 47 ) + + 87 ) AS col0
----
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4549
SELECT DISTINCT COUNT( * ) DIV + 23 - - 32
----
32

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT COUNT ( * ) / + 23 - - 32
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT + CAST( 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-4550
SELECT + CAST ( 52 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4551
SELECT ALL COUNT( * ) DIV - ( 16 ) - 43 * + 92
----
-3956

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL COUNT ( * ) / - ( 16 ) - 43 * + 92
----
-3956

query I rowsort
SELECT + 5 * 64 AS col0
----
320

onlyif mysql # DIV for integer division: 
query I rowsort label-4553
SELECT ALL 11 DIV - 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL 11 / - 22 AS col0
----
0

query I rowsort
SELECT + ( 90 ) col2
----
90

query I rowsort
SELECT + NULLIF ( + 55, + 51 ) * 72
----
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT - 51 * NULLIF ( + 82 * - CASE - 55 WHEN MIN( 73 ) * MAX( DISTINCT - 47 ) THEN 77 WHEN 45 THEN NULL ELSE 10 END, 15 )
----
41820

skipif mysql # not compatible
query I rowsort label-4556
SELECT - 51 * NULLIF ( + 82 * - CASE - 55 WHEN MIN ( 73 ) * MAX ( DISTINCT - 47 ) THEN 77 WHEN 45 THEN NULL ELSE 10 END, 15 )
----
41820

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL + 64 * CASE + 67 WHEN + NULLIF ( 73, 92 ) + - CASE - COUNT( * ) WHEN 58 THEN 94 * 46 ELSE + ( COALESCE ( 81, + 88, 16 ) ) END THEN + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL + 64 * CASE + 67 WHEN + NULLIF ( 73, 92 ) + - CASE - COUNT ( * ) WHEN 58 THEN 94 * 46 ELSE + ( COALESCE ( 81, + 88, 16 ) ) END THEN + 70 END
----
NULL

query I rowsort
SELECT ( 42 )
----
42

query I rowsort
SELECT 73 * + 66 - 92 * ( + 55 + 55 * NULLIF ( 8 * 41, 66 ) ) col1
----
-1659922

query I rowsort
SELECT ALL 4 * - 29 AS col2
----
-116

query I rowsort
SELECT - 15 * 13 col2
----
-195

query I rowsort
SELECT ALL + ( 68 ) AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT DISTINCT + CAST( 91 AS SIGNED ) col1
----
91

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT + CAST ( 91 AS INTEGER ) col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT DISTINCT + 51 * 26 + + ( + 76 ) DIV + 31 col1
----
1328

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + 51 * 26 + + ( + 76 ) / + 31 col1
----
1328

query I rowsort
SELECT - 85 + 91 * 78
----
7013

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL + 18 * + 34 + COALESCE ( + 46, COUNT( * ) )
----
658

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL + 18 * + 34 + COALESCE ( + 46, COUNT ( * ) )
----
658

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL + MIN( DISTINCT + 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL + MIN ( DISTINCT + 30 ) AS col0
----
30

query I rowsort
SELECT NULLIF ( 5, 38 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + MAX( ALL + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4569
SELECT + MAX ( ALL + 62 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT + CASE 7 WHEN 31 * + 35 THEN NULL ELSE COUNT( * ) * ( + NULLIF ( 6, SUM( ALL - CAST( + 45 AS SIGNED ) ) ) ) + - 12 END AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4570
SELECT + CASE 7 WHEN 31 * + 35 THEN NULL ELSE COUNT ( * ) * ( + NULLIF ( 6, SUM ( ALL - CAST ( + 45 AS INTEGER ) ) ) ) + - 12 END AS col0
----
-6

query I rowsort
SELECT ALL - 19 * - 19 + + 41 AS col2
----
402

query I rowsort
SELECT - 49 * - 71
----
3479

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL + 41 * - COUNT( * ) + 11 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL + 41 * - COUNT ( * ) + 11 AS col1
----
-30

query I rowsort
SELECT - 25 * 61 AS col1
----
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL + COUNT( * ) + 88
----
89

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + COUNT ( * ) + 88
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4576
SELECT COUNT( * ) * CAST( + 26 * 59 + 80 AS SIGNED ) AS col0
----
1614

skipif mysql # not compatible
query I rowsort label-4576
SELECT COUNT ( * ) * CAST ( + 26 * 59 + 80 AS INTEGER ) AS col0
----
1614

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT - 59 + MIN( DISTINCT + 14 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - 59 + MIN ( DISTINCT + 14 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT SUM( + 86 ) + - COUNT( * ) col2
----
85

skipif mysql # not compatible
query I rowsort label-4578
SELECT SUM ( + 86 ) + - COUNT ( * ) col2
----
85

query I rowsort
SELECT ALL - + 8 + ( 66 ) AS col2
----
58

query I rowsort
SELECT - 87 - 83 AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL SUM( 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL SUM ( 43 )
----
43

query I rowsort
SELECT 10 - 20 AS col2
----
-10

query I rowsort
SELECT + NULLIF ( 6, 17 * 64 ) AS col2
----
6

query I rowsort
SELECT 56 + 24 col0
----
80

query I rowsort
SELECT ALL 54 * - 59
----
-3186

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4586
SELECT MAX( ALL - 32 ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4586
SELECT MAX ( ALL - 32 ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL ( - ( COUNT( - 9 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL ( - ( COUNT ( - 9 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT DISTINCT 72 * + ( 39 * COUNT( * ) + 69 * 31 ) AS col2
----
156816

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT 72 * + ( 39 * COUNT ( * ) + 69 * 31 ) AS col2
----
156816

query I rowsort
SELECT - 60 * 9
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT + COUNT( * ) * 0 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4590
SELECT + COUNT ( * ) * 0 - - COUNT ( * )
----
1

query I rowsort
SELECT + + NULLIF ( - 66, - 17 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4592
SELECT 12 DIV + - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4592
SELECT 12 / + - 44 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT 69 * + - COALESCE ( + 88, 93 ) * + SUM( - ( + 14 ) * - 11 + + 86 * 72 ) AS col2
----
-38532912

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT 69 * + - COALESCE ( + 88, 93 ) * + SUM ( - ( + 14 ) * - 11 + + 86 * 72 ) AS col2
----
-38532912

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT - MIN( DISTINCT + 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT - MIN ( DISTINCT + 40 )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4595
SELECT ALL 10 DIV NULLIF ( COUNT( * ), NULLIF ( ( - 6 ), 11 ) * ( 89 + - COUNT( * ) ) )
----
10

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL 10 / NULLIF ( COUNT ( * ), NULLIF ( ( - 6 ), 11 ) * ( 89 + - COUNT ( * ) ) )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT 2 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4596
SELECT 2 / - 92 AS col0
----
0

query I rowsort
SELECT ALL 21 + + 75 AS col1
----
96

query I rowsort
SELECT ALL + 33 + - 29 col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT ALL ( + - 34 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL ( + - 34 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 37 * + + 0 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4601
SELECT CAST( NULL AS DECIMAL ) + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT CAST ( NULL AS REAL ) + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL - MAX( ALL + - 49 ) + - 70
----
-21

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL - MAX ( ALL + - 49 ) + - 70
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT - 40 * + MAX( 23 ) + + 94
----
-826

skipif mysql # not compatible
query I rowsort label-4603
SELECT - 40 * + MAX ( 23 ) + + 94
----
-826

query I rowsort
SELECT ALL 55 + 96 * - 83
----
-7913

query I rowsort
SELECT ALL 14 * 65
----
910

query I rowsort
SELECT 27 + - 83
----
-56

query I rowsort
SELECT DISTINCT 49 * - 13
----
-637

query I rowsort
SELECT 43 + - 58 AS col0
----
-15

query I rowsort
SELECT ( + 16 ) + + 33 AS col0
----
49

query I rowsort
SELECT ALL - + 56 + + 96 + - 13
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT - CASE - + ( 41 ) WHEN + 60 THEN NULL WHEN - 78 * 75 THEN - 81 * - MIN( - 76 ) + - COUNT( * ) WHEN 78 + 74 * 54 THEN - 39 END / 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - CASE - + ( 41 ) WHEN + 60 THEN NULL WHEN - 78 * 75 THEN - 81 * - MIN ( - 76 ) + - COUNT ( * ) WHEN 78 + 74 * 54 THEN - 39 END / 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT COUNT( * ) + + COUNT( * ) + - 9 * + 69 AS col2
----
-619

skipif mysql # not compatible
query I rowsort label-4612
SELECT COUNT ( * ) + + COUNT ( * ) + - 9 * + 69 AS col2
----
-619

query I rowsort
SELECT - 41 * + + 74
----
-3034

query I rowsort
SELECT ALL + 95 - + + 92 col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT DISTINCT - - 14 DIV - 54 + + MIN( 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT - - 14 / - 54 + + MIN ( 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT COUNT( * ) + + + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4616
SELECT COUNT ( * ) + + + 12 AS col1
----
13

query I rowsort
SELECT ALL - 14 - + 29 + 9 * + 80 col2
----
677

query I rowsort
SELECT 55 * - 93 * - 72
----
368280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4619
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 84 + + CASE + 2 WHEN + 84 * 97 + 5 THEN SUM( 79 ) END * + NULLIF ( + COUNT( DISTINCT 97 ), + 17 + - ( + 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 84 + + CASE + 2 WHEN + 84 * 97 + 5 THEN SUM ( 79 ) END * + NULLIF ( + COUNT ( DISTINCT 97 ), + 17 + - ( + 11 ) )
----
NULL

query I rowsort
SELECT ( - + 82 ) * - COALESCE ( 18, 39 * 4 + 18, 35 ) AS col0
----
1476

query I rowsort
SELECT DISTINCT + 12 * + - ( 74 )
----
-888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT 35 DIV - 53 * - 35 + COUNT( * ) * + 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4622
SELECT 35 / - 53 * - 35 + COUNT ( * ) * + 37 AS col2
----
37

query I rowsort
SELECT 93 + - - 56 * 4
----
317

query I rowsort
SELECT 24 * + - 16
----
-384

query I rowsort
SELECT 40 + - 52 + - 26
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT MAX( ALL + 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT MAX ( ALL + 76 ) AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4627
SELECT ALL - 66, ( CAST( - 93 AS SIGNED ) ) AS col0
----
-66
-93

skipif mysql # not compatible
query II rowsort label-4627
SELECT ALL - 66, ( CAST ( - 93 AS INTEGER ) ) AS col0
----
-66
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT 69 * + CASE COUNT( * ) WHEN + 67 THEN NULL WHEN - 46 THEN + 13 ELSE + NULLIF ( + 93, 65 * COUNT( * ) ) END col0
----
6417

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT 69 * + CASE COUNT ( * ) WHEN + 67 THEN NULL WHEN - 46 THEN + 13 ELSE + NULLIF ( + 93, 65 * COUNT ( * ) ) END col0
----
6417

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT MAX( + - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-4629
SELECT MAX ( + - 82 )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4630
SELECT ALL - 57 * + COALESCE ( - 24, + NULLIF ( CAST( NULL AS SIGNED ), CASE + 14 WHEN 0 + - ( + COUNT( * ) ) THEN - 44 WHEN 79 * 98 THEN 21 * + COALESCE ( 7, + 66 * NULLIF ( CAST( + 62 AS DECIMAL ), + MAX( ALL - 18 ) * - 66 ), - 88 ) END ) ) * 74 + 85 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - 57 * + COALESCE ( - 24, + NULLIF ( CAST ( NULL AS INTEGER ), CASE + 14 WHEN 0 + - ( + COUNT ( * ) ) THEN - 44 WHEN 79 * 98 THEN 21 * + COALESCE ( 7, + 66 * NULLIF ( CAST ( + 62 AS REAL ), + MAX ( ALL - 18 ) * - 66 ), - 88 ) END ) ) * 74 + 85 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 + + ( - 17 ) col0
----
1

query I rowsort
SELECT 31 * - 18 AS col0
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL + 80 * + 64 + + + ( - 78 ) + - 59 * - CASE 0 WHEN MIN( DISTINCT 32 ) + 61 * - 1 THEN NULL WHEN 81 THEN NULL WHEN + 33 * + CASE - COUNT( * ) WHEN - 2 THEN 29 + + NULLIF ( - 86, - ( - CASE 39 WHEN - 31 THEN + 29 + - 78 WHEN - 38 * + 45 THEN 30 WHEN 78 * NULLIF ( + 80, - 81 * 99 + 23 / 9 ) THEN 63 END ) * + 60 + - MAX( DISTINCT 9 ) ) END THEN + NULLIF ( - ( 54 ), - 33 * 85 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL + 80 * + 64 + + + ( - 78 ) + - 59 * - CASE 0 WHEN MIN ( DISTINCT 32 ) + 61 * - 1 THEN NULL WHEN 81 THEN NULL WHEN + 33 * + CASE - COUNT ( * ) WHEN - 2 THEN 29 + + NULLIF ( - 86, - ( - CASE 39 WHEN - 31 THEN + 29 + - 78 WHEN - 38 * + 45 THEN 30 WHEN 78 * NULLIF ( + 80, - 81 * 99 + 23 / 9 ) THEN 63 END ) * + 60 + - MAX ( DISTINCT 9 ) ) END THEN + NULLIF ( - ( 54 ), - 33 * 85 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT 8 * + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-4634
SELECT 8 * + - COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT COUNT( - ( - 11 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4635
SELECT COUNT ( - ( - 11 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT COUNT( CAST( 77 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4636
SELECT COUNT ( CAST ( 77 AS INTEGER ) )
----
1

query I rowsort
SELECT 48 * - 83 - + 31 * 74 AS col1
----
-6278

onlyif mysql # DIV for integer division: 
query I rowsort label-4638
SELECT DISTINCT 55 DIV - + 23
----
-2

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT 55 / - + 23
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT DISTINCT + CASE - ( - CASE 10 WHEN 97 * - 20 THEN NULLIF ( - 22, 61 * - 68 + 37 ) WHEN + 87 * 26 + + ( + 84 ) THEN NULL WHEN + 86 * + CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE - NULLIF ( 80, CAST( NULL AS SIGNED ) * 80 ) END ) WHEN - 22 THEN - NULLIF ( + 2, - AVG ( ALL 6 ) ) END * - CASE 90 + 93 WHEN 58 / - COUNT( * ) THEN CAST( NULL AS SIGNED ) ELSE NULL END - - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT + CASE - ( - CASE 10 WHEN 97 * - 20 THEN NULLIF ( - 22, 61 * - 68 + 37 ) WHEN + 87 * 26 + + ( + 84 ) THEN NULL WHEN + 86 * + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE - NULLIF ( 80, CAST ( NULL AS INTEGER ) * 80 ) END ) WHEN - 22 THEN - NULLIF ( + 2, - AVG ( ALL 6 ) ) END * - CASE 90 + 93 WHEN 58 / - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END - - 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4640
SELECT + 78 * 43 DIV + 31
----
108

skipif mysql # not compatible
query I rowsort label-4640
SELECT + 78 * 43 / + 31
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4641
SELECT + COUNT( * ) * 56 - - 76 DIV 43
----
57

skipif mysql # not compatible
query I rowsort label-4641
SELECT + COUNT ( * ) * 56 - - 76 / 43
----
57

query I rowsort
SELECT + + NULLIF ( + - 19, - 59 + + 93 ) col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT DISTINCT - 19, - COUNT( * ) * - - 0 AS col2
----
-19
0

skipif mysql # not compatible
query II rowsort label-4643
SELECT DISTINCT - 19, - COUNT ( * ) * - - 0 AS col2
----
-19
0

query I rowsort
SELECT ALL - 18 * 43 AS col0
----
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT 48 * + 4 * + COUNT( + 69 ) AS col0
----
192

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT 48 * + 4 * + COUNT ( + 69 ) AS col0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT + - SUM( - 10 ) * - 2 + 86 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4646
SELECT + - SUM ( - 10 ) * - 2 + 86 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL - CASE - 38 WHEN 64 + COUNT( * ) THEN NULL WHEN 61 THEN NULL WHEN + MIN( DISTINCT - 17 ) + + 32 THEN NULL ELSE 53 END * 80
----
-4240

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - CASE - 38 WHEN 64 + COUNT ( * ) THEN NULL WHEN 61 THEN NULL WHEN + MIN ( DISTINCT - 17 ) + + 32 THEN NULL ELSE 53 END * 80
----
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT ALL - COUNT( ALL 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - COUNT ( ALL 83 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + 63 + - + ( COALESCE ( COUNT( * ), + 12 * 36 + 2 ) )
----
62

skipif mysql # not compatible
query I rowsort label-4649
SELECT + 63 + - + ( COALESCE ( COUNT ( * ), + 12 * 36 + 2 ) )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4650
SELECT DISTINCT + - 36 DIV - + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + - 36 / - + COUNT ( * )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT + - CAST( NULL AS SIGNED ) - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT + - CAST ( NULL AS INTEGER ) - - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT - + SUM( DISTINCT - + 15 ) + + - 72 * + 70 AS col0
----
-5025

skipif mysql # not compatible
query I rowsort label-4652
SELECT - + SUM ( DISTINCT - + 15 ) + + - 72 * + 70 AS col0
----
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT ALL + - 61 * - 89 + + CAST( + COUNT( * ) AS SIGNED ) * 48
----
5477

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + - 61 * - 89 + + CAST ( + COUNT ( * ) AS INTEGER ) * 48
----
5477

query I rowsort
SELECT DISTINCT 78 + - + 35
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT DISTINCT ( ( + CASE - 75 WHEN - 60 * - 33 THEN + 3 + COUNT( * ) / ( CASE + 21 WHEN 38 * - 7 + 60 * 80 THEN + 67 ELSE NULL END ) ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT ( ( + CASE - 75 WHEN - 60 * - 33 THEN + 3 + COUNT ( * ) / ( CASE + 21 WHEN 38 * - 7 + 60 * 80 THEN + 67 ELSE NULL END ) ELSE NULL END ) )
----
NULL

query I rowsort
SELECT DISTINCT - 60 + 96 * - 62 AS col2
----
-6012

query II rowsort
SELECT - 69 - 57 AS col2, 0 col1
----
-126
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL - COUNT( * ) * - 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - COUNT ( * ) * - 87 AS col0
----
87

query I rowsort
SELECT - 86 * + 87 * + - 98
----
733236

query I rowsort
SELECT - 45 + + 38 col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4661
SELECT ( - 33 ), NULLIF ( + - 98, 22 * CAST( NULL AS SIGNED ) ) * 30 AS col0
----
-33
-2940

skipif mysql # not compatible
query II rowsort label-4661
SELECT ( - 33 ), NULLIF ( + - 98, 22 * CAST ( NULL AS INTEGER ) ) * 30 AS col0
----
-33
-2940

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT ALL + NULLIF ( + 78, + ( + + 49 ) ) DIV - 9 + ( 6 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL + NULLIF ( + 78, + ( + + 49 ) ) / - 9 + ( 6 ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT - 9 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 9 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 98 * - + 77 * + ( + - 71 ) AS col2
----
535766

query I rowsort
SELECT - 90 + - - COALESCE ( - 53, 39 * 75, NULLIF ( 20, 57 ) ) AS col2
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT + COALESCE ( + COUNT( * ), 66 * + + 80 * ( + 1 * + 47 ) + 14 * CASE 46 WHEN CAST( - 0 AS SIGNED ) * + COUNT( * ) THEN NULL ELSE 0 * + COUNT( ALL - ( + 2 ) ) END + 15, 16 * - 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4666
SELECT + COALESCE ( + COUNT ( * ), 66 * + + 80 * ( + 1 * + 47 ) + 14 * CASE 46 WHEN CAST ( - 0 AS INTEGER ) * + COUNT ( * ) THEN NULL ELSE 0 * + COUNT ( ALL - ( + 2 ) ) END + 15, 16 * - 89 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL + CASE + MAX( DISTINCT + 45 ) WHEN - + 43 + 6 THEN NULL WHEN 49 THEN - 22 * - 63 + COALESCE ( 57, + 85, + 49 ) WHEN 60 * 67 THEN - 28 END * + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL + CASE + MAX ( DISTINCT + 45 ) WHEN - + 43 + 6 THEN NULL WHEN 49 THEN - 22 * - 63 + COALESCE ( 57, + 85, + 49 ) WHEN 60 * 67 THEN - 28 END * + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT - 84 + - COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4668
SELECT - 84 + - COUNT ( * ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL + ( - MIN( DISTINCT + 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + ( - MIN ( DISTINCT + 65 ) )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4670
SELECT 33 * + NULLIF ( - 76, - - COUNT( * ) * + 0 + CAST( NULL AS SIGNED ) ) + + 41 col1
----
-2467

skipif mysql # not compatible
query I rowsort label-4670
SELECT 33 * + NULLIF ( - 76, - - COUNT ( * ) * + 0 + CAST ( NULL AS INTEGER ) ) + + 41 col1
----
-2467

query I rowsort
SELECT + - 70 * - 4 + 21
----
301

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT + SUM( DISTINCT + - 85 ) * - COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4672
SELECT + SUM ( DISTINCT + - 85 ) * - COUNT ( * ) AS col1
----
85

query I rowsort
SELECT + 81 + - - NULLIF ( + 41, - 85 )
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT ALL CAST( NULL AS SIGNED ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL CAST ( NULL AS INTEGER ) * - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + COUNT( 99 ) + NULLIF ( 15, 54 * COUNT( DISTINCT + 59 ) + 19 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4675
SELECT + COUNT ( 99 ) + NULLIF ( 15, 54 * COUNT ( DISTINCT + 59 ) + 19 ) AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4676
SELECT + + COUNT( * ) * CAST( + 91 AS SIGNED ) + - 2 + 83 col2
----
172

skipif mysql # not compatible
query I rowsort label-4676
SELECT + + COUNT ( * ) * CAST ( + 91 AS INTEGER ) + - 2 + 83 col2
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT + 61 * + - CAST( 39 AS SIGNED )
----
-2379

skipif mysql # not compatible
query I rowsort label-4677
SELECT + 61 * + - CAST ( 39 AS INTEGER )
----
-2379

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4678
SELECT + - 68 + + 48 + + 14 DIV COUNT( * ) * - 32 AS col2
----
-468

skipif mysql # not compatible
query I rowsort label-4678
SELECT + - 68 + + 48 + + 14 / COUNT ( * ) * - 32 AS col2
----
-468

onlyif mysql # aggregate syntax: 
query II rowsort label-4679
SELECT SUM( - - 24 ), + 27 AS col0
----
24
27

skipif mysql # not compatible
query II rowsort label-4679
SELECT SUM ( - - 24 ), + 27 AS col0
----
24
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4680
SELECT + + COALESCE ( NULLIF ( 14, - - 50 + ( 2 ) ), ( COUNT( - 92 ) ) DIV 11 ) * - ( COALESCE ( + COUNT( * ), + 82 * COUNT( * ), CAST( NULL AS SIGNED ) * - 29, 45 ) * - 79 ) AS col0
----
1106

skipif mysql # not compatible
query I rowsort label-4680
SELECT + + COALESCE ( NULLIF ( 14, - - 50 + ( 2 ) ), ( COUNT ( - 92 ) ) / 11 ) * - ( COALESCE ( + COUNT ( * ), + 82 * COUNT ( * ), CAST ( NULL AS INTEGER ) * - 29, 45 ) * - 79 ) AS col0
----
1106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4681
SELECT ALL 66 + + 88, - CASE - + ( 73 ) WHEN - ( + CAST( NULL AS SIGNED ) ) THEN 24 - 99 ELSE NULL END AS col2
----
154
NULL

skipif mysql # not compatible
query II rowsort label-4681
SELECT ALL 66 + + 88, - CASE - + ( 73 ) WHEN - ( + CAST ( NULL AS INTEGER ) ) THEN 24 - 99 ELSE NULL END AS col2
----
154
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL - NULLIF ( + 59, - 58 * 50 + + CASE + ( 87 ) WHEN MAX( 86 ) * 34 + - 45 * - 74 THEN - 48 * - 62 WHEN + 44 * - 60 + - 28 * - 67 THEN - 51 ELSE NULL END ) + - 47 * + 3
----
-200

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - NULLIF ( + 59, - 58 * 50 + + CASE + ( 87 ) WHEN MAX ( 86 ) * 34 + - 45 * - 74 THEN - 48 * - 62 WHEN + 44 * - 60 + - 28 * - 67 THEN - 51 ELSE NULL END ) + - 47 * + 3
----
-200

query I rowsort
SELECT + ( - 51 ) * 58 * 45
----
-133110

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT - 69 + + - SUM( - + 48 )
----
-21

skipif mysql # not compatible
query I rowsort label-4684
SELECT - 69 + + - SUM ( - + 48 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - COUNT( * ) * + 39
----
-39

skipif mysql # not compatible
query I rowsort label-4686
SELECT - COUNT ( * ) * + 39
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT CAST( NULL AS SIGNED ) + - + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT CAST ( NULL AS INTEGER ) + - + 17 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT DISTINCT CASE + 99 WHEN + NULLIF ( - + 65, COALESCE ( - 40, - 81 ) * 86 + + 98 ) * 91 THEN NULL WHEN + 67 THEN NULL WHEN NULLIF ( + CAST( NULL AS SIGNED ), CASE + 19 WHEN 21 * 15 THEN 12 END ) * + 78 THEN - 47 * + 42 END - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT CASE + 99 WHEN + NULLIF ( - + 65, COALESCE ( - 40, - 81 ) * 86 + + 98 ) * 91 THEN NULL WHEN + 67 THEN NULL WHEN NULLIF ( + CAST ( NULL AS INTEGER ), CASE + 19 WHEN 21 * 15 THEN 12 END ) * + 78 THEN - 47 * + 42 END - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL ( - - COALESCE ( - - 7, - 96, + - 82 ) ) - + SUM( DISTINCT ( - 48 ) ) * 68 AS col2
----
3271

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL ( - - COALESCE ( - - 7, - 96, + - 82 ) ) - + SUM ( DISTINCT ( - 48 ) ) * 68 AS col2
----
3271

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT 36 * - 39 * - NULLIF ( COUNT( * ), 26 + 43 )
----
1404

skipif mysql # not compatible
query I rowsort label-4690
SELECT 36 * - 39 * - NULLIF ( COUNT ( * ), 26 + 43 )
----
1404

onlyif mysql # DIV for integer division: 
query I rowsort label-4691
SELECT ALL - 84 - + + 84 + - + 21 DIV ( - 50 ) AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - 84 - + + 84 + - + 21 / ( - 50 ) AS col0
----
-168

query I rowsort
SELECT ALL - ( + 48 ) * NULLIF ( - - 10, AVG ( - 1 ) + 3 )
----
-480

query II rowsort
SELECT + 46, 84 AS col2
----
46
84

query I rowsort
SELECT 52 + + - 70 * - 25 col2
----
1802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4695
SELECT MIN( ALL 93 ) DIV + 45 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4695
SELECT MIN ( ALL 93 ) / + 45 AS col2
----
2

query I rowsort
SELECT 26 * - + 24 AS col0
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT DISTINCT - COUNT( DISTINCT - 92 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - COUNT ( DISTINCT - 92 ) AS col0
----
-1

query II rowsort
SELECT ALL - 87 AS col1, 62 AS col2
----
-87
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT 30 * - MIN( ALL - 94 )
----
2820

skipif mysql # not compatible
query I rowsort label-4699
SELECT 30 * - MIN ( ALL - 94 )
----
2820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL - - NULLIF ( - 4, + 72 * - 36 - ( 0 ) - + CAST( NULL AS SIGNED ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - - NULLIF ( - 4, + 72 * - 36 - ( 0 ) - + CAST ( NULL AS INTEGER ) ) AS col2
----
-4

query I rowsort
SELECT ALL + + 95 * - 68
----
-6460

query I rowsort
SELECT + ( + 38 )
----
38

query I rowsort
SELECT + 74 * + ( + 81 ) - - 90
----
6084

query I rowsort
SELECT - ( - 18 ) AS col1
----
18

query I rowsort
SELECT - 54 * + + 47 AS col2
----
-2538

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4706
SELECT + - 76, ( - ( - - CAST( - 14 AS SIGNED ) ) ) col2
----
-76
14

skipif mysql # not compatible
query II rowsort label-4706
SELECT + - 76, ( - ( - - CAST ( - 14 AS INTEGER ) ) ) col2
----
-76
14

query I rowsort
SELECT DISTINCT - 20 col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT + - 53 + - + 90 * COUNT( * )
----
-143

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + - 53 + - + 90 * COUNT ( * )
----
-143

query I rowsort
SELECT ALL - - 90 + - - 23
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT - 81 DIV + 37
----
-2

skipif mysql # not compatible
query I rowsort label-4710
SELECT - 81 / + 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL - COUNT( * ) + + 39
----
38

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL - COUNT ( * ) + + 39
----
38

query I rowsort
SELECT ALL + 51 + - - 16
----
67

query II rowsort
SELECT ALL - 45 AS col1, - 99
----
-45
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT 92 * - + COALESCE ( + COUNT( * ), - 19 ) col1, + 39 + + 81 + - 43 * 68 col1
----
-92
-2804

skipif mysql # not compatible
query II rowsort label-4714
SELECT 92 * - + COALESCE ( + COUNT ( * ), - 19 ) col1, + 39 + + 81 + - 43 * 68 col1
----
-92
-2804

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT MIN( DISTINCT + 56 ) + + - 84
----
-28

skipif mysql # not compatible
query I rowsort label-4715
SELECT MIN ( DISTINCT + 56 ) + + - 84
----
-28

query I rowsort
SELECT NULLIF ( - 39, - 67 * 59 ) * + 64 AS col2
----
-2496

query I rowsort
SELECT NULLIF ( + COALESCE ( - 14, - + 91 ), - 59 + + - 7 ) + + 21 * + 87 AS col2
----
1813

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT 74 AS col1, - COUNT( * ) AS col2
----
74
-1

skipif mysql # not compatible
query II rowsort label-4718
SELECT 74 AS col1, - COUNT ( * ) AS col2
----
74
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4719
SELECT 30 + + 56 DIV - CAST( + + 37 AS SIGNED ) col2, COUNT( * ) * CAST( 91 AS SIGNED )
----
29
91

skipif mysql # not compatible
query II rowsort label-4719
SELECT 30 + + 56 / - CAST ( + + 37 AS INTEGER ) col2, COUNT ( * ) * CAST ( 91 AS INTEGER )
----
29
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4720
SELECT CAST( NULL AS SIGNED ) * + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT CAST ( NULL AS INTEGER ) * + - 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4721
SELECT ALL 89 col2, CASE + COUNT( * ) WHEN CAST( NULL AS DECIMAL ) THEN + ( + 36 ) + CAST( NULL AS SIGNED ) WHEN + CAST( + 37 AS SIGNED ) * - 85 THEN + COUNT( * ) END col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL 89 col2, CASE + COUNT ( * ) WHEN CAST ( NULL AS REAL ) THEN + ( + 36 ) + CAST ( NULL AS INTEGER ) WHEN + CAST ( + 37 AS INTEGER ) * - 85 THEN + COUNT ( * ) END col0
----
89
NULL

query II rowsort
SELECT 60 AS col1, + 4 AS col2
----
60
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT - MIN( ALL + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4723
SELECT - MIN ( ALL + 91 ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4724
SELECT 65 + + + MAX( DISTINCT CAST( 97 AS SIGNED ) ) + + 41 + 16 * + 44 AS col2
----
907

skipif mysql # not compatible
query I rowsort label-4724
SELECT 65 + + + MAX ( DISTINCT CAST ( 97 AS INTEGER ) ) + + 41 + 16 * + 44 AS col2
----
907

onlyif mysql # aggregate syntax: 
query II rowsort label-4725
SELECT ALL - COUNT( * ), 99 * 85 * + + ( - 63 ) AS col2
----
-1
-530145

skipif mysql # not compatible
query II rowsort label-4725
SELECT ALL - COUNT ( * ), 99 * 85 * + + ( - 63 ) AS col2
----
-1
-530145

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4726
SELECT CAST( NULL AS SIGNED ) * 7, - 72 AS col1
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-4726
SELECT CAST ( NULL AS INTEGER ) * 7, - 72 AS col1
----
NULL
-72

query I rowsort
SELECT 71 * - 6 AS col1
----
-426

query I rowsort
SELECT NULLIF ( 83, + 44 ) + + 12
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT CASE 97 WHEN 47 THEN NULL WHEN + 49 THEN MAX( - + 68 ) * - 22 ELSE NULL END * 91 + COUNT( * ) * + MAX( ALL CAST( NULL AS SIGNED ) - 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT CASE 97 WHEN 47 THEN NULL WHEN + 49 THEN MAX ( - + 68 ) * - 22 ELSE NULL END * 91 + COUNT ( * ) * + MAX ( ALL CAST ( NULL AS INTEGER ) - 7 ) AS col2
----
NULL

query I rowsort
SELECT 61 * 54 AS col2
----
3294

query I rowsort
SELECT ALL - ( + 74 ) * 76 + + 86
----
-5538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT DISTINCT NULLIF ( + 27, - + ( - CAST( NULL AS SIGNED ) ) * - AVG ( + + 28 ) / - 61 ) * - 61
----
-1647

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT NULLIF ( + 27, - + ( - CAST ( NULL AS INTEGER ) ) * - AVG ( + + 28 ) / - 61 ) * - 61
----
-1647

query I rowsort
SELECT ALL - 87 * + + 58 - + 88 + 14 AS col1
----
-5120

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4734
SELECT + 76 + COUNT ( * )
----
77

query I rowsort
SELECT - 85 * - 84
----
7140

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL + 96 + 70 - - COALESCE ( + NULLIF ( - 85, + 33 ), - NULLIF ( + 63, - 46 * + COUNT( * ) + + COUNT( * ) ) ) * + 11 AS col2
----
-769

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL + 96 + 70 - - COALESCE ( + NULLIF ( - 85, + 33 ), - NULLIF ( + 63, - 46 * + COUNT ( * ) + + COUNT ( * ) ) ) * + 11 AS col2
----
-769

query I rowsort
SELECT 55 + 21 AS col2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4738
SELECT - 46 * 3 DIV - 21 + 41 * 87 * 10
----
35676

skipif mysql # not compatible
query I rowsort label-4738
SELECT - 46 * 3 / - 21 + 41 * 87 * 10
----
35676

query I rowsort
SELECT + 59 * - 91 + - + NULLIF ( - 41, - NULLIF ( + 37, + 40 + 65 * 10 ) ) AS col2
----
-5328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT ALL - 35 + CASE - 21 WHEN 53 THEN CAST( 72 AS SIGNED ) / - ( - 73 ) END * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL - 35 + CASE - 21 WHEN 53 THEN CAST ( 72 AS INTEGER ) / - ( - 73 ) END * 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT SUM( DISTINCT + 99 ) + - 65
----
34

skipif mysql # not compatible
query I rowsort label-4741
SELECT SUM ( DISTINCT + 99 ) + - 65
----
34

query I rowsort
SELECT ALL - + 54 + 30 AS col1
----
-24

query I rowsort
SELECT 63 + - + 76
----
-13

query I rowsort
SELECT 50 * - - 7 AS col1
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT CASE MAX( - - ( - 97 ) ) WHEN + + 9 / - - 20 THEN - MIN( DISTINCT 75 ) WHEN 97 THEN NULL END * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT CASE MAX ( - - ( - 97 ) ) WHEN + + 9 / - - 20 THEN - MIN ( DISTINCT 75 ) WHEN 97 THEN NULL END * 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT COUNT( * ) + - 99 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4746
SELECT COUNT ( * ) + - 99 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT MIN( ALL 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT MIN ( ALL 63 ) AS col1
----
63

query I rowsort
SELECT ALL - 84 - + ( + + 56 ) + 41 * - 82 * 51 * + + 71 AS col1
----
-12173942

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL COALESCE ( - MIN( 64 ), + 57 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL COALESCE ( - MIN ( 64 ), + 57 ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-4750
SELECT + 80 DIV + - 5 AS col2, + 5
----
-16
5

skipif mysql # not compatible
query II rowsort label-4750
SELECT + 80 / + - 5 AS col2, + 5
----
-16
5

query I rowsort
SELECT - 91 * + 78 col1
----
-7098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4752
SELECT DISTINCT COUNT( * ) DIV - 62 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT COUNT ( * ) / - 62 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT - 67 * - COUNT( * ) DIV - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 67 * - COUNT ( * ) / - COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - SUM( ALL - 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4754
SELECT - SUM ( ALL - 63 ) AS col1
----
63

query I rowsort
SELECT ALL 38 * 50
----
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4756
SELECT - 44 DIV - + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4756
SELECT - 44 / - + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT - MIN( - 75 ) AS col2, - ( - - 50 ) AS col1
----
75
-50

skipif mysql # not compatible
query II rowsort label-4757
SELECT - MIN ( - 75 ) AS col2, - ( - - 50 ) AS col1
----
75
-50

query I rowsort
SELECT ALL 32 * + 24 AS col2
----
768

query I rowsort
SELECT + 37 + 11
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4760
SELECT DISTINCT COALESCE ( - 39, + CASE - 3 WHEN + 51 * - COUNT( * ) + + ( 20 ) THEN 14 DIV - 58 ELSE NULL END )
----
-39

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT COALESCE ( - 39, + CASE - 3 WHEN + 51 * - COUNT ( * ) + + ( 20 ) THEN 14 / - 58 ELSE NULL END )
----
-39

query I rowsort
SELECT ALL ( + 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT 61 * - + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT 61 * - + COUNT ( * )
----
-61

query I rowsort
SELECT DISTINCT 25 + + + 49 + 97 AS col1
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4764
SELECT ( - - CAST( NULL AS SIGNED ) ) AS col1, + 18 + 39 - - 40 * + + 45 * 76 AS col0
----
NULL
136857

skipif mysql # not compatible
query II rowsort label-4764
SELECT ( - - CAST ( NULL AS INTEGER ) ) AS col1, + 18 + 39 - - 40 * + + 45 * 76 AS col0
----
NULL
136857

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT ALL NULLIF ( + COUNT( ALL 51 ), MAX( - - 51 ) ) * 42 + 75 + 12
----
129

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL NULLIF ( + COUNT ( ALL 51 ), MAX ( - - 51 ) ) * 42 + 75 + 12
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT DISTINCT 53 * - 47 + + 2 + + ( - ( COUNT( * ) ) ) + 77
----
-2413

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT 53 * - 47 + + 2 + + ( - ( COUNT ( * ) ) ) + 77
----
-2413

query I rowsort
SELECT - 11 * - 91 + + - 31
----
970

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT ALL - 14 * 59 + + ( 13 ) - 8 + + COALESCE ( + 32, + 64, + 25 * 61 ) - + MIN( 42 )
----
-831

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - 14 * 59 + + ( 13 ) - 8 + + COALESCE ( + 32, + 64, + 25 * 61 ) - + MIN ( 42 )
----
-831

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL MAX( + - 19 ) * + + ( - 81 ) + + + 8 + + 9 + - + 37
----
1519

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL MAX ( + - 19 ) * + + ( - 81 ) + + + 8 + + 9 + - + 37
----
1519

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT + + 70 DIV - 44 + 39 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4770
SELECT + + 70 / - 44 + 39 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4771
SELECT DISTINCT 15 DIV - COALESCE ( - 94, - 81 - - 37, + - 63 ) * - 66 + 43 + - 47 DIV COALESCE ( COUNT( * ), + CAST( - COUNT( * ) AS SIGNED ) * + 85 + 56 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT 15 / - COALESCE ( - 94, - 81 - - 37, + - 63 ) * - 66 + 43 + - 47 / COALESCE ( COUNT ( * ), + CAST ( - COUNT ( * ) AS INTEGER ) * + 85 + 56 ) AS col1
----
-4

query I rowsort
SELECT ALL + 14 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT MAX( DISTINCT + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4773
SELECT MAX ( DISTINCT + 95 ) AS col2
----
95

query I rowsort
SELECT DISTINCT + 81 * + 74 AS col2
----
5994

query I rowsort
SELECT ALL + - 20 * ( - 74 ) + 16 - 11 AS col2
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT + + CASE + COALESCE ( - 53, 91 / + - 75, + 0 ) WHEN - 76 * COUNT( * ) THEN 51 * - 44 + ( COUNT( DISTINCT + 50 ) ) / 47 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT + + CASE + COALESCE ( - 53, 91 / + - 75, + 0 ) WHEN - 76 * COUNT ( * ) THEN 51 * - 44 + ( COUNT ( DISTINCT + 50 ) ) / 47 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT - 27 * - - ( - - COUNT( * ) ) - - + ( + MAX( DISTINCT - 30 ) ) + + CASE 19 WHEN - 86 THEN NULL WHEN + MIN( DISTINCT + 25 ) THEN NULL ELSE ( + ( 4 ) ) END
----
-53

skipif mysql # not compatible
query I rowsort label-4777
SELECT - 27 * - - ( - - COUNT ( * ) ) - - + ( + MAX ( DISTINCT - 30 ) ) + + CASE 19 WHEN - 86 THEN NULL WHEN + MIN ( DISTINCT + 25 ) THEN NULL ELSE ( + ( 4 ) ) END
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4778
SELECT + + MAX( ALL + 70 ) - + 78 * + 88 * + 58 AS col2, MIN( ALL - 19 ) AS col2
----
-398042
-19

skipif mysql # not compatible
query II rowsort label-4778
SELECT + + MAX ( ALL + 70 ) - + 78 * + 88 * + 58 AS col2, MIN ( ALL - 19 ) AS col2
----
-398042
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT ALL MIN( - + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL MIN ( - + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-4780
SELECT DISTINCT COUNT( * ) col1, + SUM( 74 ) + 84
----
1
158

skipif mysql # not compatible
query II rowsort label-4780
SELECT DISTINCT COUNT ( * ) col1, + SUM ( 74 ) + 84
----
1
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT DISTINCT SUM( - + ( - ( - - 10 ) ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT SUM ( - + ( - ( - - 10 ) ) ) AS col0
----
10

query I rowsort
SELECT ALL COALESCE ( + 35, - 46, - - 97 - + - 47 * 90 )
----
35

query I rowsort
SELECT ALL - ( 55 ) * 51 + - - COALESCE ( 17, + - 93 + + 67 + 13 + + 81 ) * 22 AS col1
----
-2431

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT - 68 * COUNT( * ) * MIN( - ( - - 29 ) ) col1
----
1972

skipif mysql # not compatible
query I rowsort label-4784
SELECT - 68 * COUNT ( * ) * MIN ( - ( - - 29 ) ) col1
----
1972

query I rowsort
SELECT - 27 + + 66 + + 6
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT - SUM( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT - SUM ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 35 * 97 AS col0
----
-3395

query I rowsort
SELECT - CASE + ( - 66 ) WHEN - 31 THEN - 49 ELSE - 11 END + 73 + + 25 AS col2
----
109

query II rowsort
SELECT ALL 51, - 27 AS col0
----
51
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - SUM( DISTINCT - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4790
SELECT - SUM ( DISTINCT - 34 )
----
34

query I rowsort
SELECT ALL + 18 + 28 AS col1
----
46

query I rowsort
SELECT DISTINCT - 63 + + 72 + + 40 AS col1
----
49

query I rowsort
SELECT DISTINCT + 9 + + 63 col1
----
72

query I rowsort
SELECT - 78 * 12
----
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT - 45 + + 82 * CASE AVG ( + 61 ) WHEN - 74 THEN NULL ELSE + + 43 * + MAX( DISTINCT + 65 ) * 44 END col1
----
10084315

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - 45 + + 82 * CASE AVG ( + 61 ) WHEN - 74 THEN NULL ELSE + + 43 * + MAX ( DISTINCT + 65 ) * 44 END col1
----
10084315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4796
SELECT ALL + - 88 DIV - 98 + COUNT( * ) + - - ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL + - 88 / - 98 + COUNT ( * ) + - - ( COUNT ( * ) )
----
2

query I rowsort
SELECT - + 62 col0
----
-62

query I rowsort
SELECT + CASE + 0 WHEN - ( 69 ) THEN + 35 ELSE NULL END col1
----
NULL

query II rowsort
SELECT 70 AS col2, 58
----
70
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT DISTINCT + SUM( ALL - + 61 ) DIV - - COUNT( * ) + + COUNT( DISTINCT - 85 )
----
-60

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + SUM ( ALL - + 61 ) / - - COUNT ( * ) + + COUNT ( DISTINCT - 85 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL + CAST( NULL AS SIGNED ) / ( - + ( 63 ) ) * + - 23 + - CASE - 26 WHEN - - 54 * - 81 THEN NULL WHEN + 12 * - 76 + - COUNT( * ) THEN 14 ELSE 91 * 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + CAST ( NULL AS INTEGER ) / ( - + ( 63 ) ) * + - 23 + - CASE - 26 WHEN - - 54 * - 81 THEN NULL WHEN + 12 * - 76 + - COUNT ( * ) THEN 14 ELSE 91 * 46 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT DISTINCT + - 27 / - + 47 + - ( + 92 ) + 58 * COUNT( * ) / - - 34 * 67 - + CAST( CASE - 85 WHEN 85 * + 52 THEN COUNT( * ) + - 15 END AS SIGNED ) + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT + - 27 / - + 47 + - ( + 92 ) + 58 * COUNT ( * ) / - - 34 * 67 - + CAST ( CASE - 85 WHEN 85 * + 52 THEN COUNT ( * ) + - 15 END AS INTEGER ) + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT DISTINCT + + CASE + 39 WHEN + - 91 THEN + CAST( NULL AS SIGNED ) / - - COUNT( * ) + + 54 + + + SUM( - 13 ) WHEN + 26 + 78 * SUM( ALL 81 * 35 ) THEN 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT + + CASE + 39 WHEN + - 91 THEN + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) + + 54 + + + SUM ( - 13 ) WHEN + 26 + 78 * SUM ( ALL 81 * 35 ) THEN 48 END AS col0
----
NULL

query II rowsort
SELECT ALL + 33 AS col1, 75 col0
----
33
75

query II rowsort
SELECT DISTINCT + + 82 AS col0, - 99
----
82
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT + CASE + - COALESCE ( - ( + + 41 ), 76, + ( + CAST( NULL AS SIGNED ) ) + + COUNT( * ) ) WHEN - 63 * 56 THEN ( - 71 ) ELSE - 70 END
----
-70

skipif mysql # not compatible
query I rowsort label-4806
SELECT + CASE + - COALESCE ( - ( + + 41 ), 76, + ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) ) WHEN - 63 * 56 THEN ( - 71 ) ELSE - 70 END
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT + + 72 + - CAST( + - 54 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT + + 72 + - CAST ( + - 54 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 2 * 96 * - - 31 AS col2, 33
----
5952
33

query I rowsort
SELECT + 97 * - 14 AS col1
----
-1358

query I rowsort
SELECT - AVG ( - 77 ) * - 70 + COALESCE ( - 20, + 8, - - 59, + ( ( 55 ) ) ) + - CASE + 62 WHEN - 0 * - 83 + 41 / - 87 THEN + 6 / 64 WHEN - 3 * - 83 THEN NULL END * + 30
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT ALL - - 89, + 9 * 20 + COUNT( * ) AS col0
----
89
181

skipif mysql # not compatible
query II rowsort label-4811
SELECT ALL - - 89, + 9 * 20 + COUNT ( * ) AS col0
----
89
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4812
SELECT ALL MIN( 39 ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL MIN ( 39 ) / + 74
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT ( + - 68 ) DIV + - 23 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4813
SELECT ( + - 68 ) / + - 23 AS col1
----
2

query I rowsort
SELECT DISTINCT + 11 * - 61
----
-671

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT NULLIF ( + + 60, + CASE - - 24 WHEN + COALESCE ( - 15, + - 32 / + 96 ) THEN + 36 / 94 + 0 WHEN - COUNT( * ) THEN NULL ELSE NULL END ) * + 72 AS col0
----
4320

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT NULLIF ( + + 60, + CASE - - 24 WHEN + COALESCE ( - 15, + - 32 / + 96 ) THEN + 36 / 94 + 0 WHEN - COUNT ( * ) THEN NULL ELSE NULL END ) * + 72 AS col0
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT COALESCE ( - 17, - + 87 * - + COUNT( * ), + 73 ) * 18 col2
----
-306

skipif mysql # not compatible
query I rowsort label-4816
SELECT COALESCE ( - 17, - + 87 * - + COUNT ( * ), + 73 ) * 18 col2
----
-306

onlyif mysql # aggregate syntax: 
query II rowsort label-4817
SELECT DISTINCT 21 * - - 96 AS col2, + ( + - 61 ) * - COUNT( * ) + - 98
----
2016
-37

skipif mysql # not compatible
query II rowsort label-4817
SELECT DISTINCT 21 * - - 96 AS col2, + ( + - 61 ) * - COUNT ( * ) + - 98
----
2016
-37

query II rowsort
SELECT 65 + - - 70 AS col1, + 4
----
135
4

query I rowsort
SELECT 75 + + - 23
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT CAST( NULL AS SIGNED ) * - + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT CAST ( NULL AS INTEGER ) * - + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT DISTINCT SUM( ALL + 11 ) * 39 DIV - 31
----
-13

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT SUM ( ALL + 11 ) * 39 / - 31
----
-13

query I rowsort
SELECT DISTINCT + 76 + COALESCE ( - + 26, - + 86 + 91 + - 76, 53 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL COUNT( * ) + - 79 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL COUNT ( * ) + - 79 AS col2
----
-78

query I rowsort
SELECT ALL 79 + 60 + + 71 AS col0
----
210

query I rowsort
SELECT ALL + 49 + 98 * + 11 AS col0
----
1127

query I rowsort
SELECT 87 + 85 * 23 * - - 53 - - 27 + + - 12 AS col2
----
103717

query I rowsort
SELECT DISTINCT + 4 * + 58 col2
----
232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT 0 * + COUNT( * ) DIV - + 45 * + 91 col1
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT 0 * + COUNT ( * ) / - + 45 * + 91 col1
----
0

query I rowsort
SELECT + 82 * + 41
----
3362

query I rowsort
SELECT ALL + 8 * + 83
----
664

query I rowsort
SELECT - 91 + - + 6
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT 61 + MIN( 17 ) - + SUM( ALL + + 18 )
----
60

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT 61 + MIN ( 17 ) - + SUM ( ALL + + 18 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4833
SELECT 69 DIV + 86 + + 14
----
14

skipif mysql # not compatible
query I rowsort label-4833
SELECT 69 / + 86 + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL + - COUNT( * ) * - NULLIF ( + COUNT( * ), - 8 ) - 70 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL + - COUNT ( * ) * - NULLIF ( + COUNT ( * ), - 8 ) - 70 AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT COALESCE ( 61, 85 DIV - 12 + + - 42, - - 91 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-4835
SELECT COALESCE ( 61, 85 / - 12 + + - 42, - - 91 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT + 41 + + COUNT( * ) AS col0, 84 AS col1
----
42
84

skipif mysql # not compatible
query II rowsort label-4836
SELECT + 41 + + COUNT ( * ) AS col0, 84 AS col1
----
42
84

query I rowsort
SELECT DISTINCT - 56 - + 53
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + 54 + - 17 * + 52 * - - SUM( 15 ) + + + 76 * + 75 * - - COUNT( * ) AS col1
----
-7506

skipif mysql # not compatible
query I rowsort label-4838
SELECT + 54 + - 17 * + 52 * - - SUM ( 15 ) + + + 76 * + 75 * - - COUNT ( * ) AS col1
----
-7506

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4839
SELECT COALESCE ( + COUNT( * ), - + 69, + 49 ) * - + COUNT( * ) DIV + 81 * + - 54 AS col1, 73
----
0
73

skipif mysql # not compatible
query II rowsort label-4839
SELECT COALESCE ( + COUNT ( * ), - + 69, + 49 ) * - + COUNT ( * ) / + 81 * + - 54 AS col1, 73
----
0
73

query I rowsort
SELECT - NULLIF ( + + NULLIF ( - + 53, + - 18 ), - 8 * + 20 * + 81 ) col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT + 81 * SUM( - 88 ) + 74
----
-7054

skipif mysql # not compatible
query I rowsort label-4841
SELECT + 81 * SUM ( - 88 ) + 74
----
-7054

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT ALL CASE + 9 WHEN 68 THEN + 10 * - 12 * + NULLIF ( - 99, - + ( 71 ) + COUNT( * ) ) + 37 DIV 81 WHEN MAX( ALL 24 ) + 64 THEN 41 ELSE - 78 END * - 51 AS col1
----
3978

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL CASE + 9 WHEN 68 THEN + 10 * - 12 * + NULLIF ( - 99, - + ( 71 ) + COUNT ( * ) ) + 37 / 81 WHEN MAX ( ALL 24 ) + 64 THEN 41 ELSE - 78 END * - 51 AS col1
----
3978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT - CAST( NULL AS SIGNED ) / MIN( - + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / MIN ( - + 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL + 40 * - ( - + 60 ) * - COUNT( * )
----
-2400

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + 40 * - ( - + 60 ) * - COUNT ( * )
----
-2400

query I rowsort
SELECT DISTINCT + 13 * + ( + + 98 )
----
1274

query I rowsort
SELECT - 61 * - 82 * 2 AS col0
----
10004

query II rowsort
SELECT 67 AS col2, + 20 * - 42 + + 84
----
67
-756

query I rowsort
SELECT ALL CASE - 22 WHEN 48 THEN - + 40 END * - 59 AS col0
----
NULL

query II rowsort
SELECT ALL - 85, - 21 AS col1
----
-85
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT COUNT( * ) * 96
----
96

skipif mysql # not compatible
query I rowsort label-4850
SELECT COUNT ( * ) * 96
----
96

query I rowsort
SELECT ( + - 5 ) * 81 AS col0
----
-405

query I rowsort
SELECT ALL 15 + + 90 + + NULLIF ( + 45, 21 * + 7 * 87 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT 46 - 27 + + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4853
SELECT 46 - 27 + + COUNT ( * )
----
20

query I rowsort
SELECT ALL - 90 + + 75
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT DISTINCT - CAST( - NULLIF ( + - 10, + 76 + COUNT( DISTINCT + 50 ) / + ( COUNT( * ) ) * - 48 * + COUNT( * ) ) AS SIGNED ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT - CAST ( - NULLIF ( + - 10, + 76 + COUNT ( DISTINCT + 50 ) / + ( COUNT ( * ) ) * - 48 * + COUNT ( * ) ) AS INTEGER ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT DISTINCT 44 + - 12 * - 24 * - - 6 * CAST( 17 AS SIGNED ) - - COUNT( * ) AS col2
----
29421

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT 44 + - 12 * - 24 * - - 6 * CAST ( 17 AS INTEGER ) - - COUNT ( * ) AS col2
----
29421

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL 9 * + + COALESCE ( + 64, 64 * + COUNT( * ) + + - COUNT( * ) - - 55 * + 91 + - + 97 )
----
576

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL 9 * + + COALESCE ( + 64, 64 * + COUNT ( * ) + + - COUNT ( * ) - - 55 * + 91 + - + 97 )
----
576

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT - COUNT( * ) col0, - 33
----
-1
-33

skipif mysql # not compatible
query II rowsort label-4858
SELECT - COUNT ( * ) col0, - 33
----
-1
-33

query I rowsort
SELECT DISTINCT 38 + - 83
----
-45

query I rowsort
SELECT ALL 73 * + + 68 col2
----
4964

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT MAX( 34 ) + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4861
SELECT MAX ( 34 ) + - COUNT ( * )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT CASE 53 WHEN 41 THEN + COUNT( * ) WHEN + 17 THEN NULL WHEN - 80 THEN + ( + 12 ) ELSE - 69 END - + + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT CASE 53 WHEN 41 THEN + COUNT ( * ) WHEN + 17 THEN NULL WHEN - 80 THEN + ( + 12 ) ELSE - 69 END - + + CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT - SUM( DISTINCT 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4863
SELECT - SUM ( DISTINCT 89 )
----
-89

query I rowsort
SELECT 71 * - 60 col2
----
-4260

query I rowsort
SELECT ALL + 0 - - 5 AS col2
----
5

query I rowsort
SELECT ALL 49 * - 61 * + 65
----
-194285

query I rowsort
SELECT + 55 + - 67 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT COUNT( * ) + - 6 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4868
SELECT COUNT ( * ) + - 6 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT + ( + 22 ) * - - COUNT( * ) * 83
----
1826

skipif mysql # not compatible
query I rowsort label-4869
SELECT + ( + 22 ) * - - COUNT ( * ) * 83
----
1826

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL + + 16 * + 38 * COUNT( 38 ) * + COALESCE ( 76, + 40 ) AS col1
----
46208

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL + + 16 * + 38 * COUNT ( 38 ) * + COALESCE ( 76, + 40 ) AS col1
----
46208

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4871
SELECT + 20 DIV + - 64 + - 43 AS col0, + COUNT( * )
----
-43
1

skipif mysql # not compatible
query II rowsort label-4871
SELECT + 20 / + - 64 + - 43 AS col0, + COUNT ( * )
----
-43
1

query I rowsort
SELECT - - 81 * + 70 - + 6 AS col0
----
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL + CASE - COUNT( ALL + 97 ) WHEN 4 * + 22 - - + 41 * 61 * + + 97 THEN - - COUNT( ALL - 29 ) * ( + NULLIF ( - NULLIF ( - 54, 95 ), + 82 ) + + 93 ) ELSE NULL END * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL + CASE - COUNT ( ALL + 97 ) WHEN 4 * + 22 - - + 41 * 61 * + + 97 THEN - - COUNT ( ALL - 29 ) * ( + NULLIF ( - NULLIF ( - 54, 95 ), + 82 ) + + 93 ) ELSE NULL END * 90
----
NULL

query I rowsort
SELECT DISTINCT - - 74 * - 47 col1
----
-3478

query I rowsort
SELECT 14 * 73 + - 78 + + - 47 * - ( 67 ) - 12
----
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - + COUNT( * ) + + - 98
----
-99

skipif mysql # not compatible
query I rowsort label-4876
SELECT - + COUNT ( * ) + + - 98
----
-99

query I rowsort
SELECT COALESCE ( - - 52, - 94, + 51, - - 13 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4878
SELECT - 27 DIV - - ( + COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-4878
SELECT - 27 / - - ( + COUNT ( * ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL COUNT( * ) * + 76 + + NULLIF ( 35, + - 70 * - 99 + + + 17 ) * + 84 AS col0
----
3016

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL COUNT ( * ) * + 76 + + NULLIF ( 35, + - 70 * - 99 + + + 17 ) * + 84 AS col0
----
3016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4880
SELECT + COALESCE ( + - 20, - + 32 * + ( - 35 ) - NULLIF ( + COUNT( * ), + CASE - 42 WHEN + CAST( NULL AS SIGNED ) + + + 14 + + SUM( + 63 ) THEN + 90 - + 5 ELSE NULL END * - 44 ), + 90 ) * - ( - COUNT( * ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4880
SELECT + COALESCE ( + - 20, - + 32 * + ( - 35 ) - NULLIF ( + COUNT ( * ), + CASE - 42 WHEN + CAST ( NULL AS INTEGER ) + + + 14 + + SUM ( + 63 ) THEN + 90 - + 5 ELSE NULL END * - 44 ), + 90 ) * - ( - COUNT ( * ) ) AS col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL - CAST( NULL AS SIGNED ) / 83 * + COALESCE ( 59, - 55 ) * - + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - CAST ( NULL AS INTEGER ) / 83 * + COALESCE ( 59, - 55 ) * - + 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4882
SELECT + 29 AS col2, 65 * - MIN( + - 89 ) + COUNT( 99 ) + - 25 col0
----
29
5761

skipif mysql # not compatible
query II rowsort label-4882
SELECT + 29 AS col2, 65 * - MIN ( + - 89 ) + COUNT ( 99 ) + - 25 col0
----
29
5761

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4883
SELECT - CASE ( CAST( NULL AS SIGNED ) ) WHEN - NULLIF ( - + 22, - + 43 ) THEN + 23 WHEN - ( + 45 ) + - 1 THEN NULL END + + 79 + NULLIF ( 40, 47 + + NULLIF ( - 41, + COUNT( + ( + 43 ) ) ) ) * ( + COUNT( ALL 98 ) + - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT - CASE ( CAST ( NULL AS INTEGER ) ) WHEN - NULLIF ( - + 22, - + 43 ) THEN + 23 WHEN - ( + 45 ) + - 1 THEN NULL END + + 79 + NULLIF ( 40, 47 + + NULLIF ( - 41, + COUNT ( + ( + 43 ) ) ) ) * ( + COUNT ( ALL 98 ) + - 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT DISTINCT COUNT( * ) * + ( + 69 ) + - + 62 + - ( 6 ) * - CASE + ( + + 57 ) WHEN 57 * + - 79 * - 32 THEN NULL ELSE - 5 END + + 72 * + COUNT( * ) * 76
----
5449

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT COUNT ( * ) * + ( + 69 ) + - + 62 + - ( 6 ) * - CASE + ( + + 57 ) WHEN 57 * + - 79 * - 32 THEN NULL ELSE - 5 END + + 72 * + COUNT ( * ) * 76
----
5449

query I rowsort
SELECT ALL + 22 * 80 AS col2
----
1760

onlyif mysql # aggregate syntax: 
query II rowsort label-4886
SELECT ALL + COUNT( * ) AS col0, 79 * - ( - 29 )
----
1
2291

skipif mysql # not compatible
query II rowsort label-4886
SELECT ALL + COUNT ( * ) AS col0, 79 * - ( - 29 )
----
1
2291

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT COUNT( * ) AS col2, + COUNT( * ) * + 90 * 74 * + + 54 + - - 20 col2
----
1
359660

skipif mysql # not compatible
query II rowsort label-4887
SELECT COUNT ( * ) AS col2, + COUNT ( * ) * + 90 * 74 * + + 54 + - - 20 col2
----
1
359660

query I rowsort
SELECT + 9 * 59 * + 59 * - + 7 + ( - 53 ) AS col1
----
-219356

query I rowsort
SELECT ALL - 5 * 28 AS col0
----
-140

query I rowsort
SELECT + 7 * NULLIF ( - 34, 10 ) * - 67 AS col1
----
15946

query II rowsort
SELECT ALL 5 AS col2, - 82 * + ( + NULLIF ( + + 95, - 18 ) ) * 12
----
5
-93480

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT + 25 + - 27 - + + NULLIF ( + + 25, 91 ) + COUNT( * ) + 34 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4892
SELECT + 25 + - 27 - + + NULLIF ( + + 25, 91 ) + COUNT ( * ) + 34 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL + ( - + COALESCE ( 0, - SUM( 26 ) * - 63 + + + 72, 37 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL + ( - + COALESCE ( 0, - SUM ( 26 ) * - 63 + + + 72, 37 ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4894
SELECT ALL 70 DIV 65 - + 18 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL 70 / 65 - + 18 AS col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT - 39 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT - 39 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4896
SELECT + 67 DIV + - 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4896
SELECT + 67 / + - 56 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4897
SELECT ALL - COUNT( * ), 65 + ( 40 ) - COUNT( * ) AS col0
----
-1
104

skipif mysql # not compatible
query II rowsort label-4897
SELECT ALL - COUNT ( * ), 65 + ( 40 ) - COUNT ( * ) AS col0
----
-1
104

query II rowsort
SELECT ALL 67 AS col0, - 41 * 1
----
67
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4899
SELECT DISTINCT - CAST( + 89 AS SIGNED ) AS col1, - CAST( NULL AS SIGNED ) AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-4899
SELECT DISTINCT - CAST ( + 89 AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) AS col0
----
-89
NULL

query I rowsort
SELECT + 94 - - 32
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT ALL + 15 DIV - 48 * - 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL + 15 / - 48 * - 13 AS col1
----
0

query I rowsort
SELECT + - 35 * 9 AS col1
----
-315

query I rowsort
SELECT ALL + 24 + + 25 AS col2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-4904
SELECT DISTINCT + - 95, 21 * + + 30 DIV + 5 AS col1
----
-95
126

skipif mysql # not compatible
query II rowsort label-4904
SELECT DISTINCT + - 95, 21 * + + 30 / + 5 AS col1
----
-95
126

query I rowsort
SELECT COALESCE ( + 31, ( + - 72 ) + + 67 - 9 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT + 83 * - 5 - - ( + SUM( - + 55 ) ) AS col1
----
-470

skipif mysql # not compatible
query I rowsort label-4906
SELECT + 83 * - 5 - - ( + SUM ( - + 55 ) ) AS col1
----
-470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4907
SELECT ALL + ( - COUNT( * ) ) DIV - 16 + + SUM( DISTINCT 71 ) * + - 47 * - - 12 * - + 9
----
360396

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + ( - COUNT ( * ) ) / - 16 + + SUM ( DISTINCT 71 ) * + - 47 * - - 12 * - + 9
----
360396

onlyif mysql # DIV for integer division: 
query I rowsort label-4908
SELECT ALL 56 DIV + 79 + 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL 56 / + 79 + 91 AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4909
SELECT CAST( + ( + + 60 ) AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-4909
SELECT CAST ( + ( + + 60 ) AS INTEGER )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT DISTINCT + 63 DIV + 11 + + 89 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + 63 / + 11 + + 89 AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4911
SELECT ALL + COALESCE ( CASE - 7 WHEN + - 5 - + 27 * - - 57 THEN + 39 * + - COUNT( * ) ELSE - 23 DIV - 34 END, 75 * 2 DIV + COUNT( + 15 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + COALESCE ( CASE - 7 WHEN + - 5 - + 27 * - - 57 THEN + 39 * + - COUNT ( * ) ELSE - 23 / - 34 END, 75 * 2 / + COUNT ( + 15 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4912
SELECT ALL - ( - 93 ) DIV - + 96 + + 35
----
35

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - ( - 93 ) / - + 96 + + 35
----
35

query II rowsort
SELECT DISTINCT 62 * + 54 AS col0, 71
----
3348
71

query I rowsort
SELECT DISTINCT + ( + 21 )
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4915
SELECT ALL COALESCE ( - NULLIF ( - 47, - - CAST( NULL AS SIGNED ) DIV + - 42 * + 69 * MIN( - 13 ) * - - 62 + - 89 + + COUNT( ALL 13 ) ), - 15 * + COUNT( * ), + 58 * - ( 29 DIV + 78 ) ) * 32 + COUNT( - 99 ) AS col0
----
1505

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL COALESCE ( - NULLIF ( - 47, - - CAST ( NULL AS INTEGER ) / + - 42 * + 69 * MIN ( - 13 ) * - - 62 + - 89 + + COUNT ( ALL 13 ) ), - 15 * + COUNT ( * ), + 58 * - ( 29 / + 78 ) ) * 32 + COUNT ( - 99 ) AS col0
----
1505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4916
SELECT ( - + 90 ) AS col2, - 86 + + 90 + + 84 / CASE COUNT( - - 97 ) WHEN + + 63 + NULLIF ( + NULLIF ( - CASE WHEN ( NULL ) IS NULL THEN NULL WHEN NOT NULL BETWEEN 42 AND - 64 * + 41 THEN NULL ELSE - COALESCE ( 86, CAST( NULL AS SIGNED ) ) END, + 14 / - 60 ), - 27 ) THEN NULL WHEN - 62 * - 61 THEN + 79 * 80 END AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-4916
SELECT ( - + 90 ) AS col2, - 86 + + 90 + + 84 / CASE COUNT ( - - 97 ) WHEN + + 63 + NULLIF ( + NULLIF ( - CASE WHEN ( NULL ) IS NULL THEN NULL WHEN NOT NULL BETWEEN 42 AND - 64 * + 41 THEN NULL ELSE - COALESCE ( 86, CAST ( NULL AS INTEGER ) ) END, + 14 / - 60 ), - 27 ) THEN NULL WHEN - 62 * - 61 THEN + 79 * 80 END AS col1
----
-90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + COALESCE ( - - COUNT( * ), 29 + - 83 * - COUNT( * ) + - 51, 3 + COUNT( * ), + + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + COALESCE ( - - COUNT ( * ), 29 + - 83 * - COUNT ( * ) + - 51, 3 + COUNT ( * ), + + 78 )
----
1

query II rowsort
SELECT ( 95 ), 6 AS col0
----
95
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL COUNT( * ) * - 45 - + + 33 * + - 39 AS col1
----
1242

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL COUNT ( * ) * - 45 - + + 33 * + - 39 AS col1
----
1242

query I rowsort
SELECT - 55 * - 34 AS col2
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + CASE + 97 WHEN - COUNT( * ) * + + 46 - + 0 * + 0 + 59 THEN - 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT + CASE + 97 WHEN - COUNT ( * ) * + + 46 - + 0 * + 0 + 59 THEN - 10 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4922
SELECT + 67 * + 98 - 47 + - - MIN( - CAST( + - 90 AS SIGNED ) ) + 49 * 91 DIV - 13 * - COUNT( * ) - - 9 + + + COUNT( * ) + 50 * 64
----
10162

skipif mysql # not compatible
query I rowsort label-4922
SELECT + 67 * + 98 - 47 + - - MIN ( - CAST ( + - 90 AS INTEGER ) ) + 49 * 91 / - 13 * - COUNT ( * ) - - 9 + + + COUNT ( * ) + 50 * 64
----
10162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4923
SELECT DISTINCT + COALESCE ( - COUNT( * ), - 71 DIV 72 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT + COALESCE ( - COUNT ( * ), - 71 / 72 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT ALL - 27 * - + CAST( - 60 AS SIGNED )
----
-1620

skipif mysql # not compatible
query I rowsort label-4924
SELECT ALL - 27 * - + CAST ( - 60 AS INTEGER )
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + CASE + 95 WHEN 34 * + 89 + ( + 99 ) + 65 + + 15 + + COUNT( * ) * + COUNT( * ) * + 34 * + 21 * - 19 THEN 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT + CASE + 95 WHEN 34 * + 89 + ( + 99 ) + 65 + + 15 + + COUNT ( * ) * + COUNT ( * ) * + 34 * + 21 * - 19 THEN 15 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4926
SELECT - 28 + + + CASE - + 35 WHEN - - COALESCE ( - - 65, + - CAST( + 6 AS DECIMAL ) + + 51, - 60 ) THEN NULL WHEN + 2 THEN - 2 WHEN AVG ( ALL + 41 ) THEN + 33 / + 32 ELSE NULL END * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4926
SELECT - 28 + + + CASE - + 35 WHEN - - COALESCE ( - - 65, + - CAST ( + 6 AS REAL ) + + 51, - 60 ) THEN NULL WHEN + 2 THEN - 2 WHEN AVG ( ALL + 41 ) THEN + 33 / + 32 ELSE NULL END * + 1
----
NULL

query I rowsort
SELECT + 98 - + 71 * - - 38
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT 44 - + COUNT( * ) + + 1 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4928
SELECT 44 - + COUNT ( * ) + + 1 AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4929
SELECT - MAX( ALL + + 40 ) AS col0, 16
----
-40
16

skipif mysql # not compatible
query II rowsort label-4929
SELECT - MAX ( ALL + + 40 ) AS col0, 16
----
-40
16

query I rowsort
SELECT ( - 68 ) + - 32 AS col1
----
-100

query II rowsort
SELECT ALL ( - 38 ) AS col0, + 8 + 65 - 38 AS col2
----
-38
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4932
SELECT DISTINCT - 86 + - - 44 DIV - + 30 + + 37 + COUNT( * ) DIV + 10 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT - 86 + - - 44 / - + 30 + + 37 + COUNT ( * ) / + 10 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4933
SELECT + 91 + + COUNT( * ) DIV SUM( + 5 ) + - - 82 + 92 + - CAST( 73 AS SIGNED )
----
192

skipif mysql # not compatible
query I rowsort label-4933
SELECT + 91 + + COUNT ( * ) / SUM ( + 5 ) + - - 82 + 92 + - CAST ( 73 AS INTEGER )
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT CASE COUNT( * ) WHEN + - COUNT( * ) THEN 57 WHEN - 56 + COUNT( * ) THEN NULL WHEN - 23 THEN + 98 / - - 47 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT CASE COUNT ( * ) WHEN + - COUNT ( * ) THEN 57 WHEN - 56 + COUNT ( * ) THEN NULL WHEN - 23 THEN + 98 / - - 47 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4935
SELECT ALL 44 + 95 DIV - COUNT( DISTINCT + 12 )
----
-51

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL 44 + 95 / - COUNT ( DISTINCT + 12 )
----
-51

query I rowsort
SELECT 33 + 58 * + + 4
----
265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4937
SELECT 92 + + - 71 AS col0, CAST( COUNT( DISTINCT - + 50 ) AS SIGNED ) AS col1
----
21
1

skipif mysql # not compatible
query II rowsort label-4937
SELECT 92 + + - 71 AS col0, CAST ( COUNT ( DISTINCT - + 50 ) AS INTEGER ) AS col1
----
21
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT 23 DIV 59 + + 62 + + + 28 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4938
SELECT 23 / 59 + + 62 + + + 28 AS col1
----
90

query I rowsort
SELECT ALL - 92 + + + 67 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - CASE 46 WHEN + 72 THEN NULL WHEN - 51 - - COUNT( DISTINCT + - 49 ) * + 60 + COUNT( * ) THEN + + 57 * 36 ELSE - - 55 END AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4940
SELECT - CASE 46 WHEN + 72 THEN NULL WHEN - 51 - - COUNT ( DISTINCT + - 49 ) * + 60 + COUNT ( * ) THEN + + 57 * 36 ELSE - - 55 END AS col1
----
-55

query II rowsort
SELECT ( 6 ) * - 48, - 21 col0
----
-288
-21

query I rowsort
SELECT ALL + 48 * + - 91
----
-4368

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT DISTINCT 68 + - COUNT( * ) AS col2, + ( + - 55 ) + + 60 + + 21 AS col0
----
67
26

skipif mysql # not compatible
query II rowsort label-4943
SELECT DISTINCT 68 + - COUNT ( * ) AS col2, + ( + - 55 ) + + 60 + + 21 AS col0
----
67
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL 4 + + + MIN( + 6 ) + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL 4 + + + MIN ( + 6 ) + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL ( + - 89 ) + - COUNT( * ) + - 37 * - 44
----
1538

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL ( + - 89 ) + - COUNT ( * ) + - 37 * - 44
----
1538

query I rowsort
SELECT ( 42 ) - + 28
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT 45 + - CAST( 98 AS SIGNED ) * - NULLIF ( + 91, + 84 * - 73 + ( + 38 ) + + + CAST( NULL AS SIGNED ) * + 42 * - 82 * - ( ( + 85 ) ) ) AS col1
----
8963

skipif mysql # not compatible
query I rowsort label-4947
SELECT 45 + - CAST ( 98 AS INTEGER ) * - NULLIF ( + 91, + 84 * - 73 + ( + 38 ) + + + CAST ( NULL AS INTEGER ) * + 42 * - 82 * - ( ( + 85 ) ) ) AS col1
----
8963

query I rowsort
SELECT ALL 50 - + 48
----
2

query II rowsort
SELECT 77 AS col2, 8
----
77
8

query II rowsort
SELECT 6 * + 70 * - 40, 76 col0
----
-16800
76

query I rowsort
SELECT DISTINCT - 59 * - 0
----
0

query I rowsort
SELECT + 1 * + 53 + + - 10 * - - 18
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT ALL 14 - - CASE 64 WHEN 55 * + 92 + - - 1 THEN + + NULLIF ( - NULLIF ( + 93, + 25 ), - CAST( NULL AS SIGNED ) - ( - 57 ) ) + - 21 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL 14 - - CASE 64 WHEN 55 * + 92 + - - 1 THEN + + NULLIF ( - NULLIF ( + 93, + 25 ), - CAST ( NULL AS INTEGER ) - ( - 57 ) ) + - 21 END AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 79, 32 ) * + 22 AS col0
----
1738

query I rowsort
SELECT DISTINCT - ( + CASE 83 WHEN + 84 THEN 3 * - + 87 - + 22 + - + 56 + - + AVG ( + 50 ) - 33 / 59 END )
----
NULL

query I rowsort
SELECT 96 * - 1 * 84 AS col1
----
-8064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT DISTINCT 8 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT 8 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4958
SELECT + NULLIF ( + 16, - 65 * + COALESCE ( 80, - CASE + 46 WHEN + 65 THEN - 40 WHEN + + 9 * + - 86 THEN - + 31 END * - COUNT( * ) * - 48 + - 4 ) + + ( 73 ) ) DIV - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT + NULLIF ( + 16, - 65 * + COALESCE ( 80, - CASE + 46 WHEN + 65 THEN - 40 WHEN + + 9 * + - 86 THEN - + 31 END * - COUNT ( * ) * - 48 + - 4 ) + + ( 73 ) ) / - 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT 45 * - 80 + - 21 + + 70 * - - COUNT( * ) AS col1
----
-3551

skipif mysql # not compatible
query I rowsort label-4959
SELECT 45 * - 80 + - 21 + + 70 * - - COUNT ( * ) AS col1
----
-3551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT CASE + 4 WHEN - CAST( NULL AS SIGNED ) THEN - + 12 END + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT CASE + 4 WHEN - CAST ( NULL AS INTEGER ) THEN - + 12 END + + 57
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT ALL + COUNT( * ) DIV ( - 34 ) + 63
----
63

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + COUNT ( * ) / ( - 34 ) + 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - - SUM( ALL ( + 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-4962
SELECT - - SUM ( ALL ( + 38 ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4963
SELECT - 71 + + COALESCE ( 80, - + 67 DIV - CAST( NULL AS SIGNED ), + - COUNT( * ) ) + - 42 col1
----
-33

skipif mysql # not compatible
query I rowsort label-4963
SELECT - 71 + + COALESCE ( 80, - + 67 / - CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) + - 42 col1
----
-33

query I rowsort
SELECT 38 * - - 85 + + 6
----
3236

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT COALESCE ( + 33, + 0 + - ( - ( + ( - COUNT( * ) ) ) ) ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT COALESCE ( + 33, + 0 + - ( - ( + ( - COUNT ( * ) ) ) ) ) AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4966
SELECT ALL + 88 + - COUNT( * ) + 0 DIV - 9 * + - MAX( ALL + 8 ), + 31 AS col1
----
87
31

skipif mysql # not compatible
query II rowsort label-4966
SELECT ALL + 88 + - COUNT ( * ) + 0 / - 9 * + - MAX ( ALL + 8 ), + 31 AS col1
----
87
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT COALESCE ( + - 74, 50, - ( - 82 ) DIV - - 99 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-4967
SELECT COALESCE ( + - 74, 50, - ( - 82 ) / - - 99 ) AS col1
----
-74

query I rowsort
SELECT 17 - + + 21
----
-4

query I rowsort
SELECT + NULLIF ( + 30, + 69 * 39 ) + - + 33 AS col2
----
-3

query I rowsort
SELECT DISTINCT + - 17 + + 93
----
76

query I rowsort
SELECT ALL - + ( + + 19 ) + - - 44 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT 86 col1, - 17 * + ( - COUNT( * ) ) + COUNT( * )
----
86
18

skipif mysql # not compatible
query II rowsort label-4972
SELECT 86 col1, - 17 * + ( - COUNT ( * ) ) + COUNT ( * )
----
86
18

query I rowsort
SELECT 38 + + 95
----
133

query I rowsort
SELECT DISTINCT + 14 + 39 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT COUNT( - + 31 )
----
1

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT COUNT ( - + 31 )
----
1

query I rowsort
SELECT 71 + - 1 * - 62
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT ALL + 72 DIV - 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL + 72 / - 39 AS col1
----
-1

query I rowsort
SELECT ALL 9 * + 25
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4979
SELECT ( + 25 ) * + COUNT( * ) * + CAST( + 8 AS SIGNED ) AS col0, 28
----
200
28

skipif mysql # not compatible
query II rowsort label-4979
SELECT ( + 25 ) * + COUNT ( * ) * + CAST ( + 8 AS INTEGER ) AS col0, 28
----
200
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT ALL 73 * CAST( - 74 AS SIGNED )
----
-5402

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL 73 * CAST ( - 74 AS INTEGER )
----
-5402

query I rowsort
SELECT ( - 95 ) * + 47 AS col2
----
-4465

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL CASE COUNT( * ) WHEN - 35 THEN - 91 + + + 47 * - 59 WHEN - 6 * - - COUNT( * ) + + 13 THEN + - 41 END / - 9 * - 13 / - 67 + + ( + ( SUM( ALL + 94 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL CASE COUNT ( * ) WHEN - 35 THEN - 91 + + + 47 * - 59 WHEN - 6 * - - COUNT ( * ) + + 13 THEN + - 41 END / - 9 * - 13 / - 67 + + ( + ( SUM ( ALL + 94 ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT ( 10 ) DIV + - 30 * - + 63
----
0

skipif mysql # not compatible
query I rowsort label-4983
SELECT ( 10 ) / + - 30 * - + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT COUNT( + - 25 )
----
1

skipif mysql # not compatible
query I rowsort label-4984
SELECT COUNT ( + - 25 )
----
1

query I rowsort
SELECT + NULLIF ( - 42, + + 68 ) * + 94 AS col1
----
-3948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT + 33 - + 14 DIV - - 96 - + 56 * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4986
SELECT + 33 - + 14 / - - 96 - + 56 * - COUNT ( * )
----
89

query I rowsort
SELECT ALL + - 72 AS col2
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4988
SELECT ALL + - 7 + - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL + - 7 + - + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL 16 + + 23 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT ALL - + 94 + - COALESCE ( - ( - CAST( NULL AS SIGNED ) ), - + 44 * 0, - 51 * - - CAST( 90 AS SIGNED ), 25 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL - + 94 + - COALESCE ( - ( - CAST ( NULL AS INTEGER ) ), - + 44 * 0, - 51 * - - CAST ( 90 AS INTEGER ), 25 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - - COALESCE ( - - 66, ( 81 ) + - COUNT( * ), - MIN( DISTINCT - 89 ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4991
SELECT - - COALESCE ( - - 66, ( 81 ) + - COUNT ( * ), - MIN ( DISTINCT - 89 ) ) AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT ALL + CAST( CASE + 3 WHEN + 65 THEN - - 52 END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + CAST ( CASE + 3 WHEN + 65 THEN - - 52 END AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( - 34, 13 ) AS col2
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4994
SELECT + + 78 + - CASE WHEN - 18 IS NULL THEN NULL WHEN NOT - 26 <= + 95 THEN - + 65 * - 64 + CAST( - NULLIF ( + 6, + 54 * + 66 * - 64 ) AS DECIMAL ) + - 2 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT + + 78 + - CASE WHEN - 18 IS NULL THEN NULL WHEN NOT - 26 <= + 95 THEN - + 65 * - 64 + CAST ( - NULLIF ( + 6, + 54 * + 66 * - 64 ) AS REAL ) + - 2 END
----
NULL

query I rowsort
SELECT - - 98 - + 33 AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT ALL + 92 + - CAST( NULL AS SIGNED ) + + - 79 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + 92 + - CAST ( NULL AS INTEGER ) + + - 79 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT + COUNT( * ) * - + ( + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4997
SELECT + COUNT ( * ) * - + ( + 33 ) AS col1
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-4998
SELECT ALL + + ( + - 61 ) DIV 7 + ( + 30 ) AS col1, + 2 col2
----
22
2

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL + + ( + - 61 ) / 7 + ( + 30 ) AS col1, + 2 col2
----
22
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT ALL ( + 73 ) DIV + 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL ( + 73 ) / + 53 AS col0
----
1

query I rowsort
SELECT DISTINCT - 10 - + 23 + - 69
----
-102

query I rowsort
SELECT ALL + 51 * + 80 * - 23 AS col1
----
-93840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5002
SELECT DISTINCT - 93 * + + 30 + + COUNT( * ) DIV - CASE 76 WHEN + CASE - MAX( ALL - 50 ) WHEN ( - AVG ( 89 ) ) * - - 86 THEN - + CAST( NULL AS DECIMAL ) ELSE NULL END THEN NULL ELSE + SUM( + 17 ) END DIV COUNT( * )
----
-2790

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT - 93 * + + 30 + + COUNT ( * ) / - CASE 76 WHEN + CASE - MAX ( ALL - 50 ) WHEN ( - AVG ( 89 ) ) * - - 86 THEN - + CAST ( NULL AS REAL ) ELSE NULL END THEN NULL ELSE + SUM ( + 17 ) END / COUNT ( * )
----
-2790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5003
SELECT DISTINCT - 49 * + - COUNT( * ) * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT - 49 * + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5004
SELECT + 45 DIV - SUM( DISTINCT + - 3 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5004
SELECT + 45 / - SUM ( DISTINCT + - 3 ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT - 51 DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-5005
SELECT - 51 / + 28
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT DISTINCT - 31 - + 43 + + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-5006
SELECT DISTINCT - 31 - + 43 + + COUNT ( * )
----
-73

query I rowsort
SELECT ALL + 77 * - - 52 AS col2
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - COUNT( * ) + - 91 + + 35 + COUNT( * ) + - 57 * + 69 * 83
----
-326495

skipif mysql # not compatible
query I rowsort label-5008
SELECT - COUNT ( * ) + - 91 + + 35 + COUNT ( * ) + - 57 * + 69 * 83
----
-326495

query I rowsort
SELECT ALL ( - 4 ) AS col1
----
-4

query I rowsort
SELECT ALL + 68 * - + 60
----
-4080

query I rowsort
SELECT ALL + 61 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT 5 * COALESCE ( + ( + 19 ), COUNT( ALL - 14 ) - ( + 21 ) ) * - - 46 * + - 80 + - + COUNT( * ) + - 3
----
-349604

skipif mysql # not compatible
query I rowsort label-5012
SELECT 5 * COALESCE ( + ( + 19 ), COUNT ( ALL - 14 ) - ( + 21 ) ) * - - 46 * + - 80 + - + COUNT ( * ) + - 3
----
-349604

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL NULLIF ( - 5, + 37 * + CASE - COALESCE ( CASE 19 WHEN + 96 THEN NULL ELSE 0 END, - 72 ) WHEN + - 33 THEN SUM( ALL CASE 97 WHEN + - 66 THEN - 3 + - 23 / 9 ELSE ( + 31 ) END ) * SUM( - ( + 32 ) ) - + 64 WHEN COUNT( * ) * 43 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END * - ( 38 * COUNT( * ) + MAX( DISTINCT 94 + + ( - 6 ) ) * ( AVG ( ALL + 51 ) * + 63 + + 58 ) ) ) * - 21
----
105

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL NULLIF ( - 5, + 37 * + CASE - COALESCE ( CASE 19 WHEN + 96 THEN NULL ELSE 0 END, - 72 ) WHEN + - 33 THEN SUM ( ALL CASE 97 WHEN + - 66 THEN - 3 + - 23 / 9 ELSE ( + 31 ) END ) * SUM ( - ( + 32 ) ) - + 64 WHEN COUNT ( * ) * 43 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END * - ( 38 * COUNT ( * ) + MAX ( DISTINCT 94 + + ( - 6 ) ) * ( AVG ( ALL + 51 ) * + 63 + + 58 ) ) ) * - 21
----
105

query I rowsort
SELECT ( 29 ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT + COUNT( - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-5015
SELECT + COUNT ( - 57 )
----
1

query I rowsort
SELECT + 7 + + 23
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT ALL - 90 * COUNT( * ) + + - 55 col2
----
-145

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - 90 * COUNT ( * ) + + - 55 col2
----
-145

query I rowsort
SELECT - 48 * - 24 + - 58 AS col1
----
1094

query I rowsort
SELECT ALL + NULLIF ( 30, - - 25 ) AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT ALL - 29 * 36 DIV + - 88 + 66 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - 29 * 36 / + - 88 + 66 AS col1
----
77

query I rowsort
SELECT DISTINCT + + 88 * + - 63 AS col2
----
-5544

query II rowsort
SELECT + 53, + 38 AS col2
----
53
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL + ( 83 ) * - 39 + + - COUNT( * ) + + + 2 + - - 79 AS col2
----
-3157

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL + ( 83 ) * - 39 + + - COUNT ( * ) + + + 2 + - - 79 AS col2
----
-3157

query I rowsort
SELECT + - 7 * + + ( + - 43 )
----
301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT + + 93 * + - NULLIF ( - NULLIF ( + 47, + MAX( ALL 21 ) / 66 + - + 9 + 25 * + CAST( NULL AS SIGNED ) ), - - 45 / + + 34 - + 86 ) + 13 + - 13 + NULLIF ( 29, + 70 * 82 + + 89 ) * - 35
----
3356

skipif mysql # not compatible
query I rowsort label-5025
SELECT + + 93 * + - NULLIF ( - NULLIF ( + 47, + MAX ( ALL 21 ) / 66 + - + 9 + 25 * + CAST ( NULL AS INTEGER ) ), - - 45 / + + 34 - + 86 ) + 13 + - 13 + NULLIF ( 29, + 70 * 82 + + 89 ) * - 35
----
3356

query II rowsort
SELECT + + 85, - 9 + - + 12 AS col0
----
85
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT - COUNT( * ) + + + SUM( - ( 94 ) ) + 3 * + - 68 + - 37 * + 11
----
-706

skipif mysql # not compatible
query I rowsort label-5027
SELECT - COUNT ( * ) + + + SUM ( - ( 94 ) ) + 3 * + - 68 + - 37 * + 11
----
-706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT ALL MAX( ALL + ( 99 ) ) * + 35 * CAST( NULL AS SIGNED ) - - + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL MAX ( ALL + ( 99 ) ) * + 35 * CAST ( NULL AS INTEGER ) - - + 88 AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 15 ) AS col2
----
15

query I rowsort
SELECT + + 75 * + 78
----
5850

query I rowsort
SELECT ALL 52 * + - 7
----
-364

query II rowsort
SELECT ALL 21 AS col0, + 72 * + 58 AS col1
----
21
4176

query I rowsort
SELECT + - 6 - - - 81
----
-87

query I rowsort
SELECT - 21 + + 8 AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5035
SELECT ALL - COUNT( * ) DIV SUM( ALL + 22 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL - COUNT ( * ) / SUM ( ALL + 22 ) AS col0
----
0

query I rowsort
SELECT - 9 * + + ( + 74 ) * - 89
----
59274

query I rowsort
SELECT - ( + - 67 ) - 75
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT ALL CAST( COALESCE ( - + COUNT( * ), - MAX( DISTINCT + 10 ), ( - 67 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL CAST ( COALESCE ( - + COUNT ( * ), - MAX ( DISTINCT + 10 ), ( - 67 ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL CASE + 40 WHEN + ( + 41 ) THEN - COUNT( * ) * - - COUNT( * ) + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL CASE + 40 WHEN + ( + 41 ) THEN - COUNT ( * ) * - - COUNT ( * ) + 65 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5040
SELECT - MIN( DISTINCT + 95 ) DIV + + 51
----
-1

skipif mysql # not compatible
query I rowsort label-5040
SELECT - MIN ( DISTINCT + 95 ) / + + 51
----
-1

query I rowsort
SELECT ALL - 10 + + NULLIF ( + 54, - 36 ) - 44 col2
----
0

query I rowsort
SELECT + 73 * - + 19 * + 11 AS col2
----
-15257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT DISTINCT - COUNT( * ) * - ( + COUNT( * ) ) DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - COUNT ( * ) * - ( + COUNT ( * ) ) / 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5044
SELECT CAST( - 71 AS SIGNED ) * - 22 AS col0
----
1562

skipif mysql # not compatible
query I rowsort label-5044
SELECT CAST ( - 71 AS INTEGER ) * - 22 AS col0
----
1562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5045
SELECT 15 + - - 95 * + 26 - + 99 + + 31 DIV - SUM( - 53 ) - 37
----
2349

skipif mysql # not compatible
query I rowsort label-5045
SELECT 15 + - - 95 * + 26 - + 99 + + 31 / - SUM ( - 53 ) - 37
----
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL + COUNT( * ) + - 16
----
-15

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL + COUNT ( * ) + - 16
----
-15

query II rowsort
SELECT + 41 AS col0, + 6
----
41
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5048
SELECT DISTINCT - MIN( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - MIN ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 10 + - 65
----
-55

query I rowsort
SELECT 5 * 40
----
200

query I rowsort
SELECT ALL - 38 * + - 88 * - + 67 AS col2
----
-224048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5052
SELECT DISTINCT - - MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - - MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5053
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, 53 * 11
----
NULL
583

skipif mysql # not compatible
query II rowsort label-5053
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, 53 * 11
----
NULL
583

query I rowsort
SELECT 77 + + 92
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - COUNT( * ) * - - 69 + - 55 + - + COUNT( 94 ) + - NULLIF ( ( 14 ), - - 47 * - 53 + - NULLIF ( + 14, + - 70 + + 5 + + 75 ) * + NULLIF ( - 81, + 55 ) ) + - 76 AS col2
----
-215

skipif mysql # not compatible
query I rowsort label-5055
SELECT - COUNT ( * ) * - - 69 + - 55 + - + COUNT ( 94 ) + - NULLIF ( ( 14 ), - - 47 * - 53 + - NULLIF ( + 14, + - 70 + + 5 + + 75 ) * + NULLIF ( - 81, + 55 ) ) + - 76 AS col2
----
-215

query I rowsort
SELECT 54 * + 25 AS col0
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT - MIN( ALL + + 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-5057
SELECT - MIN ( ALL + + 60 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT 46 - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-5058
SELECT 46 - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5059
SELECT ALL - 65 * - 79 + 57 + - + 14 DIV - COUNT( + - 96 ) AS col0, - COUNT( * ) * - 22
----
5206
22

skipif mysql # not compatible
query II rowsort label-5059
SELECT ALL - 65 * - 79 + 57 + - + 14 / - COUNT ( + - 96 ) AS col0, - COUNT ( * ) * - 22
----
5206
22

query I rowsort
SELECT ALL - - ( ( 56 ) )
----
56

query II rowsort
SELECT + 99, + 42 + + 73 AS col2
----
99
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT + 73 * 69 + + 91 + + COUNT( * ) + - + 55
----
5074

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + 73 * 69 + + 91 + + COUNT ( * ) + - + 55
----
5074

query I rowsort
SELECT 71 + + 20 AS col1
----
91

query I rowsort
SELECT 15 * - + 49 * 75
----
-55125

query II rowsort
SELECT ALL + 59 AS col1, 13 * + - 80
----
59
-1040

query I rowsort
SELECT 61 - + 2 + + + 22 * 1 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT - CASE - 86 WHEN + 90 - 32 THEN COUNT( * ) + - - 93 + - ( + + COUNT( * ) ) WHEN + - COUNT( * ) + + 0 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT - CASE - 86 WHEN + 90 - 32 THEN COUNT ( * ) + - - 93 + - ( + + COUNT ( * ) ) WHEN + - COUNT ( * ) + + 0 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT - COUNT( + + 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5068
SELECT - COUNT ( + + 89 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT 65 * MIN( + 71 )
----
4615

skipif mysql # not compatible
query I rowsort label-5069
SELECT 65 * MIN ( + 71 )
----
4615

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT 84 + + 4 * + COUNT( * ) * - COUNT( * ) * 9 AS col0, - NULLIF ( - + 42, - COUNT( * ) ) * COALESCE ( + - 30, + SUM( - 52 ) ) + MIN( - 2 )
----
48
-1262

skipif mysql # not compatible
query II rowsort label-5070
SELECT 84 + + 4 * + COUNT ( * ) * - COUNT ( * ) * 9 AS col0, - NULLIF ( - + 42, - COUNT ( * ) ) * COALESCE ( + - 30, + SUM ( - 52 ) ) + MIN ( - 2 )
----
48
-1262

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL 80 * COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL 80 * COUNT ( * ) AS col0
----
80

query I rowsort
SELECT 90 * + 21
----
1890

query I rowsort
SELECT ALL 91 + + 84 + + + 66
----
241

query I rowsort
SELECT ALL 44 * 72 * + ( - - 42 ) AS col0
----
133056

query I rowsort
SELECT 15 * - 91
----
-1365

query I rowsort
SELECT DISTINCT 79 + - 26 AS col2
----
53

query I rowsort
SELECT ( + + 62 ) + - - 97 AS col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL - 78 + - 56 + + 39 - + 93 * - SUM( DISTINCT + - 83 ) col0
----
-7814

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL - 78 + - 56 + + 39 - + 93 * - SUM ( DISTINCT + - 83 ) col0
----
-7814

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT COUNT( * ) + + ( + - ( - + 28 ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5079
SELECT COUNT ( * ) + + ( + - ( - + 28 ) ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT DISTINCT - 70 DIV + 23
----
-3

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - 70 / + 23
----
-3

query I rowsort
SELECT DISTINCT 43 + + - 47 * 92 AS col2
----
-4281

query I rowsort
SELECT ALL - ( - 86 )
----
86

query I rowsort
SELECT ALL + ( 17 ) * 53 * - + 17 AS col2
----
-15317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5084
SELECT 24 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT 24 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 71 * - 16 + - 11 col1, - 52
----
-1147
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5086
SELECT + COUNT( + 28 ) * + 77 - + - COUNT( * ) + + - CAST( NULL AS SIGNED ) + 67 * - COALESCE ( - CASE - - AVG ( + + 34 ) WHEN - 89 THEN - MAX( ALL - + 83 ) * + + 6 * 43 * - 43 * + + 66 + + NULLIF ( + 52, 75 ) * + 10 ELSE NULL END, - 96 ) + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT + COUNT ( + 28 ) * + 77 - + - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + 67 * - COALESCE ( - CASE - - AVG ( + + 34 ) WHEN - 89 THEN - MAX ( ALL - + 83 ) * + + 6 * 43 * - 43 * + + 66 + + NULLIF ( + 52, 75 ) * + 10 ELSE NULL END, - 96 ) + - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ( + 44 ) * + COUNT( * ) + + 12 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5087
SELECT ( + 44 ) * + COUNT ( * ) + + 12 AS col2
----
56

query I rowsort
SELECT ( - 36 ) + - - ( + 54 )
----
18

query II rowsort
SELECT ALL - 80 - 14 AS col0, 84 + - + 39
----
-94
45

query II rowsort
SELECT 68 + + - 99 AS col0, - 7 AS col2
----
-31
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT - 0 * - 82 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5091
SELECT - 0 * - 82 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT ALL + ( + - 5 ) * + ( + 4 ) * - CAST( 96 AS SIGNED ) AS col1
----
1920

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL + ( + - 5 ) * + ( + 4 ) * - CAST ( 96 AS INTEGER ) AS col1
----
1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5093
SELECT 25 DIV 43 + - NULLIF ( 68, - CASE 32 WHEN CAST( + 73 AS SIGNED ) DIV + + 53 THEN NULL ELSE - 25 END * 99 + + COUNT( * ) + + - COUNT( * ) + + 55 + 60 * + COUNT( * ) DIV + 9 + - 37 ) * 78 AS col1
----
-5304

skipif mysql # not compatible
query I rowsort label-5093
SELECT 25 / 43 + - NULLIF ( 68, - CASE 32 WHEN CAST ( + 73 AS INTEGER ) / + + 53 THEN NULL ELSE - 25 END * 99 + + COUNT ( * ) + + - COUNT ( * ) + + 55 + 60 * + COUNT ( * ) / + 9 + - 37 ) * 78 AS col1
----
-5304

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5094
SELECT 91 * COUNT( + 65 ) DIV COUNT( * ) * + 92 * 70 AS col2
----
586040

skipif mysql # not compatible
query I rowsort label-5094
SELECT 91 * COUNT ( + 65 ) / COUNT ( * ) * + 92 * 70 AS col2
----
586040

query I rowsort
SELECT DISTINCT - + 17 AS col1
----
-17

query I rowsort
SELECT - 56 * - - 76 * 81 * - 33 AS col1
----
11376288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5097
SELECT ( + + MIN( - 60 ) ) * + NULLIF ( - 70, - + 37 - 47 ), 18 DIV 82 * 96 col0
----
4200
0

skipif mysql # not compatible
query II rowsort label-5097
SELECT ( + + MIN ( - 60 ) ) * + NULLIF ( - 70, - + 37 - 47 ), 18 / 82 * 96 col0
----
4200
0

query I rowsort
SELECT ALL + - 28 * + 35
----
-980

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5099
SELECT - CAST( - + 32 AS SIGNED ), - ( + - 70 ) DIV 11 AS col1
----
32
6

skipif mysql # not compatible
query II rowsort label-5099
SELECT - CAST ( - + 32 AS INTEGER ), - ( + - 70 ) / 11 AS col1
----
32
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT - 73 + 56 - - + MIN( DISTINCT - 35 ) * 49 AS col0
----
-1732

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT - 73 + 56 - - + MIN ( DISTINCT - 35 ) * 49 AS col0
----
-1732

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5101
SELECT COUNT( 84 ) DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-5101
SELECT COUNT ( 84 ) / - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT SUM( ALL - 71 ) + - 9 * ( + + 5 )
----
-116

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT SUM ( ALL - 71 ) + - 9 * ( + + 5 )
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5103
SELECT ALL CASE - COUNT( ALL + 43 ) WHEN MIN( ALL 61 ) THEN - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + 24 * 91 + + 9 THEN + 56 WHEN + - CAST( - + SUM( DISTINCT 58 ) AS SIGNED ) + - 54 THEN + + 86 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL CASE - COUNT ( ALL + 43 ) WHEN MIN ( ALL 61 ) THEN - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + 24 * 91 + + 9 THEN + 56 WHEN + - CAST ( - + SUM ( DISTINCT 58 ) AS INTEGER ) + - 54 THEN + + 86 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT - ( + 86 ) DIV - 55 + - 59 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5104
SELECT - ( + 86 ) / - 55 + - 59 AS col1
----
-58

query I rowsort
SELECT + 56 + - 27 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5106
SELECT DISTINCT 79 col1, 72 DIV + 42 * + COUNT( * )
----
79
1

skipif mysql # not compatible
query II rowsort label-5106
SELECT DISTINCT 79 col1, 72 / + 42 * + COUNT ( * )
----
79
1

query II rowsort
SELECT 51 AS col0, + 6 AS col2
----
51
6

query I rowsort
SELECT - CASE - 68 WHEN + + 31 THEN 37 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT DISTINCT 73 + + 40 + + COUNT( * ) DIV - + 18
----
113

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT 73 + + 40 + + COUNT ( * ) / - + 18
----
113

onlyif mysql # aggregate syntax: 
query II rowsort label-5110
SELECT - COUNT( * ), - MIN( ALL + + 73 ) AS col2
----
-1
-73

skipif mysql # not compatible
query II rowsort label-5110
SELECT - COUNT ( * ), - MIN ( ALL + + 73 ) AS col2
----
-1
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT - COUNT( * ), ( + 93 ) AS col1
----
-1
93

skipif mysql # not compatible
query II rowsort label-5111
SELECT - COUNT ( * ), ( + 93 ) AS col1
----
-1
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL - 11 + + ( CAST( 62 AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL - 11 + + ( CAST ( 62 AS INTEGER ) )
----
51

query I rowsort
SELECT + 66 * - 82
----
-5412

query I rowsort
SELECT + ( + + COALESCE ( 7, + 30 ) )
----
7

query II rowsort
SELECT - NULLIF ( + + ( 33 ), + - 40 ) AS col2, 47
----
-33
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT - 48 DIV 23 - + - ( 62 )
----
60

skipif mysql # not compatible
query I rowsort label-5116
SELECT - 48 / 23 - + - ( 62 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5117
SELECT CASE 20 WHEN + ( - + 82 ) + - + CAST( NULL AS DECIMAL ) * 13 - - + 39 THEN COUNT( * ) WHEN 61 / ( - - 3 ) * + 98 + + + 42 THEN + - 21 ELSE - CAST( NULL AS SIGNED ) * 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5117
SELECT CASE 20 WHEN + ( - + 82 ) + - + CAST ( NULL AS REAL ) * 13 - - + 39 THEN COUNT ( * ) WHEN 61 / ( - - 3 ) * + 98 + + + 42 THEN + - 21 ELSE - CAST ( NULL AS INTEGER ) * 86 END
----
NULL

query II rowsort
SELECT + + 29, ( - 99 ) col0
----
29
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL + COUNT( + 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL + COUNT ( + 28 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5120
SELECT ALL + - 57 AS col1, + 82 * + COUNT( * ) AS col2
----
-57
82

skipif mysql # not compatible
query II rowsort label-5120
SELECT ALL + - 57 AS col1, + 82 * + COUNT ( * ) AS col2
----
-57
82

query II rowsort
SELECT - + 62 * - 75 * - - 77 AS col1, + ( 22 ) * + 68
----
358050
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - 40 * 45 - + COUNT( * ) AS col0
----
-1801

skipif mysql # not compatible
query I rowsort label-5122
SELECT - 40 * 45 - + COUNT ( * ) AS col0
----
-1801

query I rowsort
SELECT ALL - 82 * + - 5
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT + 93 * - NULLIF ( - ( + - 81 ), COUNT( * ) + - 82 + - - ( - + 9 ) ) + - + 94 + 85 + + 69
----
-7473

skipif mysql # not compatible
query I rowsort label-5124
SELECT + 93 * - NULLIF ( - ( + - 81 ), COUNT ( * ) + - 82 + - - ( - + 9 ) ) + - + 94 + 85 + + 69
----
-7473

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT - CAST( + 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-5125
SELECT - CAST ( + 87 AS INTEGER )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT + CAST( NULL AS SIGNED ) * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT + CAST ( NULL AS INTEGER ) * + 72
----
NULL

query I rowsort
SELECT - 72 * + + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT - 74 * - 16 AS col0
----
1184

query I rowsort
SELECT - ( + 46 ) + + ( - 18 ) * - 47
----
800

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT - - 36 * - 85 + - 66 + - + 31 * COALESCE ( + + 99, + 84 ) DIV 27 AS col0
----
-3239

skipif mysql # not compatible
query I rowsort label-5130
SELECT - - 36 * - 85 + - 66 + - + 31 * COALESCE ( + + 99, + 84 ) / 27 AS col0
----
-3239

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5131
SELECT DISTINCT - 43 * + - COUNT( * ) - SUM( - 12 ) + - - 17 DIV - + 77, 21 AS col1
----
55
21

skipif mysql # not compatible
query II rowsort label-5131
SELECT DISTINCT - 43 * + - COUNT ( * ) - SUM ( - 12 ) + - - 17 / - + 77, 21 AS col1
----
55
21

query I rowsort
SELECT + 33 + - - 2 AS col1
----
35

query I rowsort
SELECT ALL NULLIF ( + 19, 65 ) AS col2
----
19

query I rowsort
SELECT - ( ( - ( - 0 ) ) ) + - 17 * - + 68
----
1156

query I rowsort
SELECT ALL + 78 + + - ( + + 53 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5136
SELECT ALL - ( - MIN( DISTINCT + + 3 ) ) + - - 52 col2, - 32
----
55
-32

skipif mysql # not compatible
query II rowsort label-5136
SELECT ALL - ( - MIN ( DISTINCT + + 3 ) ) + - - 52 col2, - 32
----
55
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT + SUM( DISTINCT - 76 ) * - 98
----
7448

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT + SUM ( DISTINCT - 76 ) * - 98
----
7448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5138
SELECT DISTINCT + 97 DIV COUNT( * ) col2
----
97

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT + 97 / COUNT ( * ) col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - 79 + COUNT( * ) + + - 17 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5139
SELECT - 79 + COUNT ( * ) + + - 17 AS col1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5140
SELECT ALL + CAST( - 18 AS SIGNED ) * 88 * + 29, NULLIF ( - ( 44 ), - + 9 * + 3 ) AS col1
----
-45936
-44

skipif mysql # not compatible
query II rowsort label-5140
SELECT ALL + CAST ( - 18 AS INTEGER ) * 88 * + 29, NULLIF ( - ( 44 ), - + 9 * + 3 ) AS col1
----
-45936
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-5141
SELECT ALL - COUNT( * ) - - 44, + 91 AS col1
----
43
91

skipif mysql # not compatible
query II rowsort label-5141
SELECT ALL - COUNT ( * ) - - 44, + 91 AS col1
----
43
91

query I rowsort
SELECT DISTINCT - ( + 74 ) * 1 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT - 60 + + + COUNT( * ) + 64 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5143
SELECT - 60 + + + COUNT ( * ) + 64 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT ALL CAST( - 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL CAST ( - 59 AS INTEGER )
----
-59

query I rowsort
SELECT - 13 * - 1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT ALL 1 DIV - 21 col0
----
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL 1 / - 21 col0
----
0

query I rowsort
SELECT - - 32 + - 19
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT - 75 * - + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5148
SELECT - 75 * - + COUNT ( * ) AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT - + CASE COUNT( * ) WHEN - AVG ( - - 6 ) + + + 37 * + 37 THEN NULL WHEN + 98 / - - 8 / - + CAST( NULL AS SIGNED ) THEN NULL ELSE + 86 END + + - 74 col0
----
-160

skipif mysql # not compatible
query I rowsort label-5149
SELECT - + CASE COUNT ( * ) WHEN - AVG ( - - 6 ) + + + 37 * + 37 THEN NULL WHEN + 98 / - - 8 / - + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 86 END + + - 74 col0
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT - 47 * + MAX( + - COALESCE ( 23, 25 * + 59 + - 12 + + 7 + CAST( NULL AS SIGNED ) ) )
----
1081

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - 47 * + MAX ( + - COALESCE ( 23, 25 * + 59 + - 12 + + 7 + CAST ( NULL AS INTEGER ) ) )
----
1081

query II rowsort
SELECT ALL - 97 * - 14 AS col2, 71
----
1358
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT - 32 * - - 15 + + 36 - + ( - - 29 ) * - CAST( NULL AS SIGNED ) * 52 * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT - 32 * - - 15 + + 36 - + ( - - 29 ) * - CAST ( NULL AS INTEGER ) * 52 * + 55
----
NULL

query I rowsort
SELECT ALL + 53 * + - 65 + 37
----
-3408

query I rowsort
SELECT + 77 * ( - - 67 )
----
5159

query I rowsort
SELECT ALL 17 * + 25
----
425

query I rowsort
SELECT + 60 + + 69 * + 99
----
6891

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL - MAX( DISTINCT 41 ) / - 68 * + 54 * + CASE - 27 WHEN 73 + + 97 THEN - COUNT( * ) ELSE NULL END + - 59 + + 65 / ( - 17 ) * + AVG ( ALL + 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - MAX ( DISTINCT 41 ) / - 68 * + 54 * + CASE - 27 WHEN 73 + + 97 THEN - COUNT ( * ) ELSE NULL END + - 59 + + 65 / ( - 17 ) * + AVG ( ALL + 49 )
----
NULL

query I rowsort
SELECT DISTINCT + - ( - 39 ) col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT ALL + ( + - 28 ) DIV MAX( ALL 72 ) + + + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL + ( + - 28 ) / MAX ( ALL 72 ) + + + 30 AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5160
SELECT ALL + 70 DIV - 81, - CASE - 27 WHEN - 56 THEN - 94 WHEN - 55 * + COALESCE ( - 30, - - COUNT( * ) ) THEN NULL ELSE 55 * + + NULLIF ( 10, + 88 - + 2 + - 77 + 91 ) END AS col1
----
0
-550

skipif mysql # not compatible
query II rowsort label-5160
SELECT ALL + 70 / - 81, - CASE - 27 WHEN - 56 THEN - 94 WHEN - 55 * + COALESCE ( - 30, - - COUNT ( * ) ) THEN NULL ELSE 55 * + + NULLIF ( 10, + 88 - + 2 + - 77 + 91 ) END AS col1
----
0
-550

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5161
SELECT + - 32 DIV - - ( CAST( + - 95 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT + - 32 / - - ( CAST ( + - 95 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT ALL - - 61 + COALESCE ( + + COUNT( * ), - - 63 * + - 28, + + 5 ) - - ( - + 40 ) + - 83 * - 78
----
6496

skipif mysql # not compatible
query I rowsort label-5162
SELECT ALL - - 61 + COALESCE ( + + COUNT ( * ), - - 63 * + - 28, + + 5 ) - - ( - + 40 ) + - 83 * - 78
----
6496

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT ALL 68 DIV - ( 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL 68 / - ( 47 )
----
-1

query I rowsort
SELECT ALL 27 + 53
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT 9 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT 9 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 3 * + - 39 col1
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT 83 DIV ( - ( 42 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5167
SELECT 83 / ( - ( 42 ) ) AS col2
----
-1

query I rowsort
SELECT ALL 21 * - + COALESCE ( - 85, - + 32 ) AS col2
----
1785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT 28 + - CAST( 84 AS SIGNED ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-5169
SELECT 28 + - CAST ( 84 AS INTEGER ) col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT COUNT( * ) - + ( + - 65 )
----
66

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT COUNT ( * ) - + ( + - 65 )
----
66

query I rowsort
SELECT 18 * - + 42 * - 45
----
34020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT CAST( NULL AS SIGNED ) + - 78 / - - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT CAST ( NULL AS INTEGER ) + - 78 / - - 85 AS col1
----
NULL

query I rowsort
SELECT 59 + + 51
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT ALL - CAST( NULL AS SIGNED ) * 54 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL - CAST ( NULL AS INTEGER ) * 54 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5175
SELECT ALL - + MAX( DISTINCT 9 ) DIV - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL - + MAX ( DISTINCT 9 ) / - 18 AS col1
----
0

query I rowsort
SELECT ALL + ( 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL - 48 * + COUNT( DISTINCT + 45 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - 48 * + COUNT ( DISTINCT + 45 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-5178
SELECT DISTINCT COUNT( * ), - 10 AS col1
----
1
-10

skipif mysql # not compatible
query II rowsort label-5178
SELECT DISTINCT COUNT ( * ), - 10 AS col1
----
1
-10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5179
SELECT - COALESCE ( CAST( NULL AS SIGNED ), - 88 DIV - 45, ( - 53 ) ) * + - 71 + 99 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-5179
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), - 88 / - 45, ( - 53 ) ) * + - 71 + 99 AS col2
----
170

query I rowsort
SELECT ALL + 57 + + 36
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5181
SELECT - ( ( + COUNT( 35 ) ) ) DIV - 43 AS col1, + 52 - CASE + + 94 WHEN - + 79 THEN 0 END + - + 91 + - + 51
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5181
SELECT - ( ( + COUNT ( 35 ) ) ) / - 43 AS col1, + 52 - CASE + + 94 WHEN - + 79 THEN 0 END + - + 91 + - + 51
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT COUNT( * ) * - SUM( ALL - - 87 ) * - 54
----
4698

skipif mysql # not compatible
query I rowsort label-5182
SELECT COUNT ( * ) * - SUM ( ALL - - 87 ) * - 54
----
4698

query I rowsort
SELECT ALL - + 97 + + 7 + + + 11 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + MAX( DISTINCT - - 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5184
SELECT + MAX ( DISTINCT - - 37 ) AS col0
----
37

query I rowsort
SELECT - 75 * - 2
----
150

query I rowsort
SELECT + 45 * - 55 + 23 * - - 91 - ( - 59 ) AS col2
----
-323

query I rowsort
SELECT ALL + 16 + + 26 AS col0
----
42

query I rowsort
SELECT ALL - 41 + + 32 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT + COUNT( * ) * 17
----
17

skipif mysql # not compatible
query I rowsort label-5189
SELECT + COUNT ( * ) * 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL MAX( + 31 ) * + NULLIF ( 64, + COUNT( - - 73 ) )
----
1984

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL MAX ( + 31 ) * + NULLIF ( 64, + COUNT ( - - 73 ) )
----
1984

query I rowsort
SELECT ALL 64 + - 43
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL ( SUM( 86 ) ) * - - 29
----
2494

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL ( SUM ( 86 ) ) * - - 29
----
2494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT - ( 32 ) * + SUM( + 68 ) + - 36 * CAST( + COUNT( * ) AS SIGNED ) * 52 + 94 AS col1
----
-3954

skipif mysql # not compatible
query I rowsort label-5193
SELECT - ( 32 ) * + SUM ( + 68 ) + - 36 * CAST ( + COUNT ( * ) AS INTEGER ) * 52 + 94 AS col1
----
-3954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5194
SELECT + 31 * 59 + + CASE + COUNT( * ) WHEN 94 * - - CAST( - 56 AS SIGNED ) / + ( - 19 ) + ( + 44 ) - - COUNT( * ) * - + 54 + + 59 * + + ( 13 ) + 6 THEN NULL ELSE - - 40 * + + ( + 78 ) END col0
----
4949

skipif mysql # not compatible
query I rowsort label-5194
SELECT + 31 * 59 + + CASE + COUNT ( * ) WHEN 94 * - - CAST ( - 56 AS INTEGER ) / + ( - 19 ) + ( + 44 ) - - COUNT ( * ) * - + 54 + + 59 * + + ( 13 ) + 6 THEN NULL ELSE - - 40 * + + ( + 78 ) END col0
----
4949

query II rowsort
SELECT DISTINCT - 57 AS col1, 70
----
-57
70

query I rowsort
SELECT 93 + - 44
----
49

query I rowsort
SELECT 99 * 41 AS col1
----
4059

onlyif mysql # aggregate syntax: 
query II rowsort label-5198
SELECT ALL - 73 col1, 44 * - COUNT( * )
----
-73
-44

skipif mysql # not compatible
query II rowsort label-5198
SELECT ALL - 73 col1, 44 * - COUNT ( * )
----
-73
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-5199
SELECT ALL 50 DIV + 42 AS col2, - 99 * CASE + 3 WHEN - 9 * 0 THEN NULL WHEN + - 23 THEN - - 68 + + 76 END DIV - 10 col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5199
SELECT ALL 50 / + 42 AS col2, - 99 * CASE + 3 WHEN - 9 * 0 THEN NULL WHEN + - 23 THEN - - 68 + + 76 END / - 10 col0
----
1
NULL

query I rowsort
SELECT 25 * + + 47 * + 94 * 10 * - 10 * - 77
----
850465000

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT MIN( ALL 62 ) * - ( 35 ) * - + 59
----
128030

skipif mysql # not compatible
query I rowsort label-5201
SELECT MIN ( ALL 62 ) * - ( 35 ) * - + 59
----
128030

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT DISTINCT 14 DIV + 51 * - 71
----
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT 14 / + 51 * - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT 8 + + COUNT( * ) col0
----
9

skipif mysql # not compatible
query I rowsort label-5203
SELECT 8 + + COUNT ( * ) col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT COUNT( * ) + - 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5204
SELECT COUNT ( * ) + - 66 AS col0
----
-65

query I rowsort
SELECT 14 * 54 * 64
----
48384

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT COUNT( * ) * - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT COUNT ( * ) * - 89 AS col2
----
-89

query I rowsort
SELECT ( 5 ) * 22 AS col1
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT COUNT( * ) DIV + 47 col0
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT COUNT ( * ) / + 47 col0
----
0

query I rowsort
SELECT 43 + COALESCE ( 68, + + 68 ) * - 52
----
-3493

query I rowsort
SELECT ALL 72 * + - 12
----
-864

query II rowsort
SELECT 49 * + 15 AS col2, + 67
----
735
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL 49 + + COUNT( * ) + - 57 * - 41 col1
----
2387

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL 49 + + COUNT ( * ) + - 57 * - 41 col1
----
2387

query II rowsort
SELECT - 46, 19 AS col1
----
-46
19

query I rowsort
SELECT + 32 + + 39 * 19 AS col1
----
773

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT + COALESCE ( COUNT( * ), - - 79 ) - - 34 + - 4
----
31

skipif mysql # not compatible
query I rowsort label-5215
SELECT + COALESCE ( COUNT ( * ), - - 79 ) - - 34 + - 4
----
31

query I rowsort
SELECT 61 + + 57
----
118

query I rowsort
SELECT - ( - ( + 63 ) ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL + COUNT( 62 )
----
1

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + COUNT ( 62 )
----
1

query I rowsort
SELECT - 68 + + 61
----
-7

query I rowsort
SELECT - + 53 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL + 45 + - 96 - - 69 * - COUNT( * )
----
-120

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + 45 + - 96 - - 69 * - COUNT ( * )
----
-120

query I rowsort
SELECT ALL 52 + + 33 - + 59 + + 84
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT ALL - - NULLIF ( + COALESCE ( - ( 25 ), - 58 ), - 86 * - 1 ) DIV - + 50
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL - - NULLIF ( + COALESCE ( - ( 25 ), - 58 ), - 86 * - 1 ) / - + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL + MIN( DISTINCT - 81 ) * + CASE - + 47 WHEN + + 16 THEN NULL WHEN + COUNT( * ) THEN 6 END * - + ( + COALESCE ( + 84, + 69 ) ) + - - 75 + - - COUNT( * ) + + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + MIN ( DISTINCT - 81 ) * + CASE - + 47 WHEN + + 16 THEN NULL WHEN + COUNT ( * ) THEN 6 END * - + ( + COALESCE ( + 84, + 69 ) ) + - - 75 + - - COUNT ( * ) + + + 52
----
NULL

query I rowsort
SELECT DISTINCT - 43 * + + 66 AS col0
----
-2838

query II rowsort
SELECT ALL ( + - 14 ) * 39 + - NULLIF ( + + 0, - - COALESCE ( + - 42, - 78 ) ) * - - 92, + 79 AS col0
----
-546
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + + MIN( DISTINCT 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5227
SELECT + + MIN ( DISTINCT 56 ) AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT - - 4 DIV + + 13 * + + 65 + - 49 * + 29 AS col0
----
-1421

skipif mysql # not compatible
query I rowsort label-5228
SELECT - - 4 / + + 13 * + + 65 + - 49 * + 29 AS col0
----
-1421

query I rowsort
SELECT 99 * - - 11 * - 83 + 10
----
-90377

query I rowsort
SELECT ALL + + COALESCE ( 52, 57 + 84 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT - MIN( ALL + + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-5231
SELECT - MIN ( ALL + + 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5232
SELECT - COALESCE ( - + 8, + 93 + + 39 * + NULLIF ( + CASE - + 56 WHEN + COALESCE ( 63, - 34, - 31 ) THEN 6 * + - COALESCE ( - 53, - 26 * - SUM( 36 ) ) + COALESCE ( - - 81, + + 36 DIV + COUNT( * ) + 47 ) DIV - 14 ELSE NULL END, - 56 ) )
----
8

skipif mysql # not compatible
query I rowsort label-5232
SELECT - COALESCE ( - + 8, + 93 + + 39 * + NULLIF ( + CASE - + 56 WHEN + COALESCE ( 63, - 34, - 31 ) THEN 6 * + - COALESCE ( - 53, - 26 * - SUM ( 36 ) ) + COALESCE ( - - 81, + + 36 / + COUNT ( * ) + 47 ) / - 14 ELSE NULL END, - 56 ) )
----
8

query I rowsort
SELECT + 92 + - - 37 * - 27 * - 29 AS col1
----
29063

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5234
SELECT DISTINCT - 15 * - COUNT( * ) - - ( - 87 ) * - COUNT( * ) / - CAST( NULL AS DECIMAL ) * - - SUM( - 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - 15 * - COUNT ( * ) - - ( - 87 ) * - COUNT ( * ) / - CAST ( NULL AS REAL ) * - - SUM ( - 96 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT + NULLIF ( - 2, + + MIN( DISTINCT + 68 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT + NULLIF ( - 2, + + MIN ( DISTINCT + 68 ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + MAX( DISTINCT - - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5236
SELECT + MAX ( DISTINCT - - 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT + 50 * + + 32 * + MIN( - 13 )
----
-20800

skipif mysql # not compatible
query I rowsort label-5237
SELECT + 50 * + + 32 * + MIN ( - 13 )
----
-20800

query I rowsort
SELECT DISTINCT - NULLIF ( - - 52, - 90 ) * 25
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT COUNT( ALL NULLIF ( + 5, + 64 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5239
SELECT COUNT ( ALL NULLIF ( + 5, + 64 ) )
----
1

query I rowsort
SELECT + 19 * - 4
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT COUNT( DISTINCT - + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-5241
SELECT COUNT ( DISTINCT - + 24 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5242
SELECT + COUNT( * ) + + SUM( ALL - 36 ) AS col0, 64
----
-35
64

skipif mysql # not compatible
query II rowsort label-5242
SELECT + COUNT ( * ) + + SUM ( ALL - 36 ) AS col0, 64
----
-35
64

query I rowsort
SELECT DISTINCT ( - - ( - - 25 ) )
----
25

query I rowsort
SELECT DISTINCT 95 + + - 10 + - 94 * 97 * + 50 AS col1
----
-455815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT - COALESCE ( + 11, + 38, + 81 + - + CAST( NULL AS SIGNED ) )
----
-11

skipif mysql # not compatible
query I rowsort label-5245
SELECT - COALESCE ( + 11, + 38, + 81 + - + CAST ( NULL AS INTEGER ) )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5246
SELECT + - 10 DIV ( - + 39 ) DIV + + 79 * 69 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT + - 10 / ( - + 39 ) / + + 79 * 69 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT DISTINCT COUNT( + 60 ) + + + 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT COUNT ( + 60 ) + + + 74 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5248
SELECT + ( - - 19 ) + + COUNT( * ) * + + ( + COUNT( * ) ) col2, 33 DIV - COUNT( * ) AS col1
----
20
-33

skipif mysql # not compatible
query II rowsort label-5248
SELECT + ( - - 19 ) + + COUNT ( * ) * + + ( + COUNT ( * ) ) col2, 33 / - COUNT ( * ) AS col1
----
20
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT 78 * - ( - 25 ) + - 89 + 32 * - CASE - 91 WHEN + - NULLIF ( COUNT( * ), - - COUNT( * ) + + 53 ) THEN - 53 END + - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT 78 * - ( - 25 ) + - 89 + 32 * - CASE - 91 WHEN + - NULLIF ( COUNT ( * ), - - COUNT ( * ) + + 53 ) THEN - 53 END + - - 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL 96 * - + COUNT( ALL + 87 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL 96 * - + COUNT ( ALL + 87 ) AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT + 66 * - - CAST( - MAX( ALL + 72 ) AS SIGNED ) + 19
----
-4733

skipif mysql # not compatible
query I rowsort label-5251
SELECT + 66 * - - CAST ( - MAX ( ALL + 72 ) AS INTEGER ) + 19
----
-4733

query I rowsort
SELECT + 71 - 90
----
-19

query I rowsort
SELECT DISTINCT + 47 * + 79 * + + 14
----
51982

query II rowsort
SELECT ALL + + 29 + 72 col0, + 71 AS col0
----
101
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT + - 8 - - COUNT( * ) + - 40 * - - 68 - - 62 AS col2
----
-2665

skipif mysql # not compatible
query I rowsort label-5255
SELECT + - 8 - - COUNT ( * ) + - 40 * - - 68 - - 62 AS col2
----
-2665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT ALL COALESCE ( - COUNT( * ), + - 77, - - COALESCE ( + 72, + ( - ( - COUNT( * ) ) ), + - 67 * 24 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL COALESCE ( - COUNT ( * ), + - 77, - - COALESCE ( + 72, + ( - ( - COUNT ( * ) ) ), + - 67 * 24 ) ) AS col0
----
-1

query I rowsort
SELECT + ( 58 ) AS col0
----
58

query I rowsort
SELECT ALL + - 13 col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + NULLIF ( + ( + 4 ), + 34 * - 3 - + 72 ) * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + NULLIF ( + ( + 4 ), + 34 * - 3 - + 72 ) * COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5261
SELECT CAST( NULL AS SIGNED ) AS col1, + COALESCE ( - 12, + + ( + 13 ) - + - COUNT( * ) )
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-5261
SELECT CAST ( NULL AS INTEGER ) AS col1, + COALESCE ( - 12, + + ( + 13 ) - + - COUNT ( * ) )
----
NULL
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5262
SELECT ALL + CAST( NULL AS DECIMAL ) * ( + - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + CAST ( NULL AS REAL ) * ( + - 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL + COUNT( * ) / - 60 - + + CASE + AVG ( DISTINCT - + ( - 54 ) ) WHEN - - 24 THEN + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL + COUNT ( * ) / - 60 - + + CASE + AVG ( DISTINCT - + ( - 54 ) ) WHEN - - 24 THEN + - 75 END
----
NULL

query I rowsort
SELECT ALL + 33 * + - 4 col0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-5265
SELECT - 50 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT - 50 / + - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT 34 * - 9 * + 35 + - + COUNT( * )
----
-10711

skipif mysql # not compatible
query I rowsort label-5266
SELECT 34 * - 9 * + 35 + - + COUNT ( * )
----
-10711

query I rowsort
SELECT DISTINCT + CASE 35 WHEN 62 THEN - 94 * - 86 ELSE NULL END
----
NULL

query II rowsort
SELECT - ( + - 0 ) * + 17 + + + 70 AS col2, 98 AS col0
----
70
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT - COUNT( * ) * 32 * + 69 AS col0
----
-2208

skipif mysql # not compatible
query I rowsort label-5269
SELECT - COUNT ( * ) * 32 * + 69 AS col0
----
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5270
SELECT - NULLIF ( + 21, - CAST( + - 67 AS SIGNED ) ) DIV ( - + MAX( DISTINCT + + ( 33 ) ) ) * + 85 + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-5270
SELECT - NULLIF ( + 21, - CAST ( + - 67 AS INTEGER ) ) / ( - + MAX ( DISTINCT + + ( 33 ) ) ) * + 85 + - 63
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5271
SELECT DISTINCT - COUNT( * ) * - ( - - 88 ) * - - COUNT( * ) + + 2 + + 97 + - 55 * + + 36 * + - 50 DIV + + 2 - - 58, + 18 AS col2
----
49745
18

skipif mysql # not compatible
query II rowsort label-5271
SELECT DISTINCT - COUNT ( * ) * - ( - - 88 ) * - - COUNT ( * ) + + 2 + + 97 + - 55 * + + 36 * + - 50 / + + 2 - - 58, + 18 AS col2
----
49745
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT COALESCE ( - 98, - - 12 + - - 3 + - + 63 * COUNT( * ) * 79 * + 87 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-5272
SELECT COALESCE ( - 98, - - 12 + - - 3 + - + 63 * COUNT ( * ) * 79 * + 87 ) AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5273
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * - 19 + - 88 - - 66 * - 80 + - 23 + + 25 + - COALESCE ( + 32, - 35 ) col0
----
-5417

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * - 19 + - 88 - - 66 * - 80 + - 23 + + 25 + - COALESCE ( + 32, - 35 ) col0
----
-5417

query II rowsort
SELECT ALL 54 * + + COALESCE ( - 67, + + 76 ) AS col2, + 98
----
-3618
98

query I rowsort
SELECT DISTINCT 34 * 3 + 83
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL - COUNT( * ) * - + 80 + + - 33 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - COUNT ( * ) * - + 80 + + - 33 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT NULLIF ( - + 78, + - 42 / - MAX( NULLIF ( - CAST( NULL AS SIGNED ), 10 ) ) + - - COALESCE ( 68, - 35, 10 ) + + - CASE + COUNT( * ) WHEN + + NULLIF ( + COUNT( * ), + + SUM( + + 39 ) * - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + + 93 THEN COUNT( DISTINCT - + NULLIF ( - - ( + - 52 ), - 76 / + 26 ) ) + 82 END )
----
-78

skipif mysql # not compatible
query I rowsort label-5277
SELECT NULLIF ( - + 78, + - 42 / - MAX ( NULLIF ( - CAST ( NULL AS INTEGER ), 10 ) ) + - - COALESCE ( 68, - 35, 10 ) + + - CASE + COUNT ( * ) WHEN + + NULLIF ( + COUNT ( * ), + + SUM ( + + 39 ) * - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + + 93 THEN COUNT ( DISTINCT - + NULLIF ( - - ( + - 52 ), - 76 / + 26 ) ) + 82 END )
----
-78

query I rowsort
SELECT + - 75 + - + 63 AS col1
----
-138

query I rowsort
SELECT ALL + 69 * + 11
----
759

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5280
SELECT ALL 27 * 72 + 63 * + 76 * COUNT( * ) * + 95 / 1 + - CASE + 92 WHEN MAX( ALL - 52 ) * 41 / ( - + 74 ) THEN + CAST( - - 8 AS DECIMAL ) / - 40 END * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL 27 * 72 + 63 * + 76 * COUNT ( * ) * + 95 / 1 + - CASE + 92 WHEN MAX ( ALL - 52 ) * 41 / ( - + 74 ) THEN + CAST ( - - 8 AS REAL ) / - 40 END * 21 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL + 9 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + 9 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT + + 98 + COUNT( * ) col2
----
99

skipif mysql # not compatible
query I rowsort label-5282
SELECT + + 98 + COUNT ( * ) col2
----
99

query II rowsort
SELECT DISTINCT 9 AS col1, 11
----
9
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL - 17 - + COUNT( * ) * - 9
----
-8

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL - 17 - + COUNT ( * ) * - 9
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT ALL + 54 DIV + 20 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + 54 / + 20 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5286
SELECT - 65, COALESCE ( COUNT( * ), + 38 * 5 ) col0
----
-65
1

skipif mysql # not compatible
query II rowsort label-5286
SELECT - 65, COALESCE ( COUNT ( * ), + 38 * 5 ) col0
----
-65
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT - CASE + 64 WHEN - + 36 * 86 + - 64 THEN NULL ELSE + 57 * + COUNT( * ) * + 17 END - - - CAST( NULL AS SIGNED ) - 87 * 37 / + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT - CASE + 64 WHEN - + 36 * 86 + - 64 THEN NULL ELSE + 57 * + COUNT ( * ) * + 17 END - - - CAST ( NULL AS INTEGER ) - 87 * 37 / + 52
----
NULL

query II rowsort
SELECT DISTINCT + 87 AS col1, + 12 + + 16 AS col1
----
87
28

query I rowsort
SELECT - 30 + + - 19 AS col1
----
-49

query I rowsort
SELECT 90 - ( 85 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT 93 + - + 42 * - NULLIF ( COUNT( * ), + 17 )
----
135

skipif mysql # not compatible
query I rowsort label-5291
SELECT 93 + - + 42 * - NULLIF ( COUNT ( * ), + 17 )
----
135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5292
SELECT ALL 97 * - 67 * + NULLIF ( + + COUNT( * ), + MIN( ( - 35 ) ) * - 10 - 7 / - COUNT( * ) * + SUM( ALL CAST( + 4 AS DECIMAL ) ) * + COALESCE ( + - COUNT( * ), - 54 + + 25 * + - 21, - 83 * - 46 - 95 * - + 40 * + + 32 ) ) AS col0
----
-6499

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL 97 * - 67 * + NULLIF ( + + COUNT ( * ), + MIN ( ( - 35 ) ) * - 10 - 7 / - COUNT ( * ) * + SUM ( ALL CAST ( + 4 AS REAL ) ) * + COALESCE ( + - COUNT ( * ), - 54 + + 25 * + - 21, - 83 * - 46 - 95 * - + 40 * + + 32 ) ) AS col0
----
-6499

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT SUM( ALL + - 17 ) + - + 29 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-5293
SELECT SUM ( ALL + - 17 ) + - + 29 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL ( MAX( DISTINCT + 69 ) )
----
69

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL ( MAX ( DISTINCT + 69 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT ALL COUNT( * ) * CASE WHEN NOT 83 = 66 THEN + + 50 + - + 76 * 72 * + 93 END + - ( 42 ) * - + 12 * 13 AS col2
----
-502294

skipif mysql # not compatible
query I rowsort label-5295
SELECT ALL COUNT ( * ) * CASE WHEN NOT 83 = 66 THEN + + 50 + - + 76 * 72 * + 93 END + - ( 42 ) * - + 12 * 13 AS col2
----
-502294

query I rowsort
SELECT + 80 + + 41 + 34
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL SUM( DISTINCT - 72 ) * 36 + 61
----
-2531

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL SUM ( DISTINCT - 72 ) * 36 + 61
----
-2531

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT COALESCE ( + COUNT( DISTINCT - 66 ), - - ( - 99 ) * + + 10 + - + ( + COUNT( * ) ) + + CASE + - 17 WHEN + ( COUNT( * ) ) THEN NULL WHEN + 76 THEN NULL WHEN - 6 * + 60 THEN NULL ELSE - 92 END ) * + 88 * + + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5298
SELECT COALESCE ( + COUNT ( DISTINCT - 66 ), - - ( - 99 ) * + + 10 + - + ( + COUNT ( * ) ) + + CASE + - 17 WHEN + ( COUNT ( * ) ) THEN NULL WHEN + 76 THEN NULL WHEN - 6 * + 60 THEN NULL ELSE - 92 END ) * + 88 * + + COUNT ( * )
----
88

query I rowsort
SELECT - 18 * - 60 + + 9 AS col0
----
1089

query II rowsort
SELECT NULLIF ( - + 3, + - 73 ) * + 23 AS col2, - 13 AS col0
----
-69
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5301
SELECT ( CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 84 + - 10 AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT ALL CAST( NULL AS SIGNED ) + + 54 + - 91 + + 48 * + 22 * - 69 + + + CAST( NULL AS SIGNED ) * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL CAST ( NULL AS INTEGER ) + + 54 + - 91 + + 48 * + 22 * - 69 + + + CAST ( NULL AS INTEGER ) * 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT 3 * - 50 * - COUNT( * ) * - + 21 * - - 42 - + COUNT( * ) - - ( CAST( NULL AS SIGNED ) ) * - + 97 + + CASE - COUNT( * ) WHEN - SUM( ALL + 0 ) THEN - 38 END * - + COUNT( * ) + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT 3 * - 50 * - COUNT ( * ) * - + 21 * - - 42 - + COUNT ( * ) - - ( CAST ( NULL AS INTEGER ) ) * - + 97 + + CASE - COUNT ( * ) WHEN - SUM ( ALL + 0 ) THEN - 38 END * - + COUNT ( * ) + 53
----
NULL

query I rowsort
SELECT DISTINCT - 58 + - - 44 col1
----
-14

query I rowsort
SELECT ALL - - 88 + + 78 - - - 52 * - 77 + + 47
----
4217

query I rowsort
SELECT ALL + ( - 6 ) AS col2
----
-6

query I rowsort
SELECT ALL - + 96 - + 62
----
-158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT ( CAST( NULL AS SIGNED ) ) + - - 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT ( CAST ( NULL AS INTEGER ) ) + - - 3 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5311
SELECT 28 * - - NULLIF ( + 71, 81 ) AS col1, + 52 - SUM( - - 21 ) + - 44 DIV + 60 - 74 * - ( - 84 ) AS col2
----
1988
-6185

skipif mysql # not compatible
query II rowsort label-5311
SELECT 28 * - - NULLIF ( + 71, 81 ) AS col1, + 52 - SUM ( - - 21 ) + - 44 / + 60 - 74 * - ( - 84 ) AS col2
----
1988
-6185

query I rowsort
SELECT - 84 + + 90 * + 90 AS col2
----
8016

query I rowsort
SELECT DISTINCT + 64 * 92 * + 96 AS col2
----
565248

query I rowsort
SELECT ALL ( + 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT NULLIF ( 55, 74 * - 5 / - 22 - + - COUNT( * ) * - 6 * - - COUNT( 10 ) ) * + 61 - + ( - 11 ) + - - 27 AS col2
----
3393

skipif mysql # not compatible
query I rowsort label-5315
SELECT NULLIF ( 55, 74 * - 5 / - 22 - + - COUNT ( * ) * - 6 * - - COUNT ( 10 ) ) * + 61 - + ( - 11 ) + - - 27 AS col2
----
3393

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5316
SELECT DISTINCT + - 41 * - 27 AS col2, CAST( - 38 AS SIGNED ) AS col1
----
1107
-38

skipif mysql # not compatible
query II rowsort label-5316
SELECT DISTINCT + - 41 * - 27 AS col2, CAST ( - 38 AS INTEGER ) AS col1
----
1107
-38

query I rowsort
SELECT + 78 * + + 88 AS col0
----
6864

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT 99 - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-5318
SELECT 99 - + COUNT ( * )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5319
SELECT 37 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5319
SELECT 37 / 95 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5320
SELECT ALL 15 DIV CAST( 86 AS SIGNED ) * + 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL 15 / CAST ( 86 AS INTEGER ) * + 11 AS col1
----
0

query I rowsort
SELECT 8 * 80 col1
----
640

query I rowsort
SELECT 44 * - 27 * + 84
----
-99792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT ALL - 24 * 16 + - - NULLIF ( ( - + COUNT( * ) ), - 85 * - + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL - 24 * 16 + - - NULLIF ( ( - + COUNT ( * ) ), - 85 * - + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT 27 / - - CASE - - COUNT( * ) WHEN 52 THEN NULL WHEN - 4 THEN - 66 + + 1 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT 27 / - - CASE - - COUNT ( * ) WHEN 52 THEN NULL WHEN - 4 THEN - 66 + + 1 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 2 * - + 18 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT SUM( DISTINCT + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-5326
SELECT SUM ( DISTINCT + 90 )
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT COUNT( ALL 71 )
----
1

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( ALL 71 )
----
1

query I rowsort
SELECT NULLIF ( - 36, - 74 ) + 60 * - - 86 AS col1
----
5124

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT + SUM( 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5330
SELECT + SUM ( 45 ) AS col1
----
45

query II rowsort
SELECT ALL - 4, + 36 AS col2
----
-4
36

query I rowsort
SELECT 8 * 25 + + 24 * 39
----
1136

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT MIN( - ( - 78 ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5333
SELECT MIN ( - ( - 78 ) ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL 95 + - MAX( DISTINCT + - 59 ) * - MAX( + 22 ) col1
----
-1203

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL 95 + - MAX ( DISTINCT + - 59 ) * - MAX ( + 22 ) col1
----
-1203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5335
SELECT CAST( - 13 AS SIGNED ) * 55 DIV COUNT( * ) * - + 55 AS col0
----
39325

skipif mysql # not compatible
query I rowsort label-5335
SELECT CAST ( - 13 AS INTEGER ) * 55 / COUNT ( * ) * - + 55 AS col0
----
39325

query I rowsort
SELECT + 10 + + - 83
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5337
SELECT CAST( 90 AS SIGNED ) + COUNT( * ) * - - COUNT( * ) * + ( 83 ) + - MIN( ALL 2 ) + - - 25 AS col1
----
196

skipif mysql # not compatible
query I rowsort label-5337
SELECT CAST ( 90 AS INTEGER ) + COUNT ( * ) * - - COUNT ( * ) * + ( 83 ) + - MIN ( ALL 2 ) + - - 25 AS col1
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT ALL COUNT( * ) - + 79 col1
----
-78

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL COUNT ( * ) - + 79 col1
----
-78

query I rowsort
SELECT DISTINCT + 59 * + 67
----
3953

query I rowsort
SELECT - 60 * 12 + - + 14 AS col1
----
-734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5341
SELECT + - CAST( NULL AS SIGNED ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT + - CAST ( NULL AS INTEGER ) * + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT - MIN( DISTINCT - + 42 ) + 33
----
75

skipif mysql # not compatible
query I rowsort label-5342
SELECT - MIN ( DISTINCT - + 42 ) + 33
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5343
SELECT - 49 + + - CAST( - ( 67 ) AS SIGNED ) * CAST( COUNT( * ) AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-5343
SELECT - 49 + + - CAST ( - ( 67 ) AS INTEGER ) * CAST ( COUNT ( * ) AS INTEGER )
----
18

query I rowsort
SELECT - + 19 + - - 84 AS col0
----
65

query I rowsort
SELECT - + ( 92 ) - 8 + + 5 * - NULLIF ( 44, 39 )
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT ALL MAX( DISTINCT - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL MAX ( DISTINCT - + 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5347
SELECT - 21 + SUM( + CAST( 36 AS SIGNED ) ) AS col1, COUNT( * ) AS col0
----
15
1

skipif mysql # not compatible
query II rowsort label-5347
SELECT - 21 + SUM ( + CAST ( 36 AS INTEGER ) ) AS col1, COUNT ( * ) AS col0
----
15
1

query I rowsort
SELECT - 27 - + 66 col0
----
-93

query I rowsort
SELECT + 3 + + - 36
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5350
SELECT ALL - 2 + + ( + 72 ) DIV 78 - 54 * + COUNT( * ) + - 20 - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL - 2 + + ( + 72 ) / 78 - 54 * + COUNT ( * ) + - 20 - COUNT ( * ) AS col0
----
-77

query II rowsort
SELECT - 15 + + + 58 AS col1, + 37 * + ( + 19 ) col2
----
43
703

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT - 91 + COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-5352
SELECT - 91 + COUNT ( * ) AS col2
----
-90

query I rowsort
SELECT DISTINCT ( + 73 ) AS col0
----
73

query I rowsort
SELECT ALL 61 + - + 46 AS col1
----
15

query I rowsort
SELECT - 67 + - + 7
----
-74

query I rowsort
SELECT ALL - ( + 84 ) + + 26
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT - COUNT( * ) + - ( CASE + + COUNT( * ) WHEN - 26 THEN - 91 / + - 78 WHEN + 19 THEN - - 46 + 94 END ) - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT - COUNT ( * ) + - ( CASE + + COUNT ( * ) WHEN - 26 THEN - 91 / + - 78 WHEN + 19 THEN - - 46 + 94 END ) - + 41
----
NULL

query II rowsort
SELECT ( + - 79 ) AS col2, + 85
----
-79
85

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT + COUNT( * ) AS col0, - 91 * + 78
----
1
-7098

skipif mysql # not compatible
query II rowsort label-5359
SELECT + COUNT ( * ) AS col0, - 91 * + 78
----
1
-7098

query I rowsort
SELECT - 31 * 42
----
-1302

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT DISTINCT COUNT( * ) * - - 83 - + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT COUNT ( * ) * - - 83 - + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + SUM( ALL 11 ) + - - 20
----
31

skipif mysql # not compatible
query I rowsort label-5362
SELECT + SUM ( ALL 11 ) + - - 20
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT ALL MAX( + NULLIF ( - 70, - 72 ) ) * - - CAST( NULL AS SIGNED ) - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL MAX ( + NULLIF ( - 70, - 72 ) ) * - - CAST ( NULL AS INTEGER ) - - 88 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5364
SELECT + ( - CAST( NULL AS DECIMAL ) ) * - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT + ( - CAST ( NULL AS REAL ) ) * - + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL SUM( + - 32 ) * 65 AS col2
----
-2080

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL SUM ( + - 32 ) * 65 AS col2
----
-2080

query I rowsort
SELECT + + 10 * - 95 * 69
----
-65550

query II rowsort
SELECT DISTINCT + + 56 AS col1, 28 AS col0
----
56
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5368
SELECT ALL + 75 AS col2, 98 * + CAST( - - 44 AS SIGNED ) * CAST( NULL AS SIGNED ) + + 87 AS col2
----
75
NULL

skipif mysql # not compatible
query II rowsort label-5368
SELECT ALL + 75 AS col2, 98 * + CAST ( - - 44 AS INTEGER ) * CAST ( NULL AS INTEGER ) + + 87 AS col2
----
75
NULL

query II rowsort
SELECT + - 36 * - 23 AS col0, - 92
----
828
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT + COALESCE ( + - 46, + 29 ) * - COUNT( * ) + COALESCE ( - 99, + 84, + 33 ) - - 74 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5370
SELECT + COALESCE ( + - 46, + 29 ) * - COUNT ( * ) + COALESCE ( - 99, + 84, + 33 ) - - 74 AS col0
----
21

query I rowsort
SELECT + NULLIF ( + 5, 68 * + + 64 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT - CASE 58 WHEN + 32 / - COUNT( * ) + - - 5 THEN - 50 * - 3 * 41 * - + 82 + 50 WHEN + + 40 + 82 + 74 THEN + + 57 - - - 44 WHEN - 92 THEN NULL END * + 16 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT - CASE 58 WHEN + 32 / - COUNT ( * ) + - - 5 THEN - 50 * - 3 * 41 * - + 82 + 50 WHEN + + 40 + 82 + 74 THEN + + 57 - - - 44 WHEN - 92 THEN NULL END * + 16 + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5373
SELECT DISTINCT + 16, CAST( NULL AS SIGNED ) AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-5373
SELECT DISTINCT + 16, CAST ( NULL AS INTEGER ) AS col2
----
16
NULL

query II rowsort
SELECT DISTINCT + + 84, 27 AS col2
----
84
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL ( + COUNT( * ) ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL ( + COUNT ( * ) ) * COUNT ( * ) col2
----
1

query I rowsort
SELECT + 33 + 90
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT - 45 * + + COUNT( * ) + COUNT( * ) - - ( 38 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5377
SELECT - 45 * + + COUNT ( * ) + COUNT ( * ) - - ( 38 ) AS col0
----
-6

query I rowsort
SELECT ALL + - 11 * 32 + 59 col0
----
-293

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - SUM( DISTINCT ( + 7 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5379
SELECT - SUM ( DISTINCT ( + 7 ) ) AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5380
SELECT + + 59 DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5380
SELECT + + 59 / 75 AS col2
----
0

query I rowsort
SELECT + - 48 * NULLIF ( - 77, + 70 )
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT COUNT( * ) * COUNT( * ) + - - 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5382
SELECT COUNT ( * ) * COUNT ( * ) + - - 11 AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5383
SELECT 63, - COUNT( * ) AS col0
----
63
-1

skipif mysql # not compatible
query II rowsort label-5383
SELECT 63, - COUNT ( * ) AS col0
----
63
-1

query I rowsort
SELECT DISTINCT 48 + + - 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5385
SELECT - - 93, + COUNT( DISTINCT - NULLIF ( - + 70, + 5 ) ) col1
----
93
1

skipif mysql # not compatible
query II rowsort label-5385
SELECT - - 93, + COUNT ( DISTINCT - NULLIF ( - + 70, + 5 ) ) col1
----
93
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5386
SELECT - 3 + + 98 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT - 3 + + 98 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT + 15 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT + 15 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 50 * - 26 * + + 76
----
98800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5389
SELECT - 68 DIV MAX( - + 95 ), + CAST( NULL AS SIGNED ) DIV CASE - 55 WHEN + 15 THEN + - 67 - + + 77 + + + 65 + 36 + - 52 * 98 END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5389
SELECT - 68 / MAX ( - + 95 ), + CAST ( NULL AS INTEGER ) / CASE - 55 WHEN + 15 THEN + - 67 - + + 77 + + + 65 + 36 + - 52 * 98 END AS col2
----
0
NULL

query I rowsort
SELECT ALL - 71 + + ( + 18 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5391
SELECT ALL - 71 - COUNT( * ) - COUNT( * ) + + CAST( + 51 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL - 71 - COUNT ( * ) - COUNT ( * ) + + CAST ( + 51 AS INTEGER )
----
-22

query I rowsort
SELECT - 25 * - 88 * + - 77
----
-169400

query I rowsort
SELECT ALL - ( 40 ) * - - ( - 79 )
----
3160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5394
SELECT + 42 * + 48 * - - COALESCE ( CAST( - - 50 AS SIGNED ), - 86 - - - 96 ) * - COUNT( * ) - 16 AS col0
----
-100816

skipif mysql # not compatible
query I rowsort label-5394
SELECT + 42 * + 48 * - - COALESCE ( CAST ( - - 50 AS INTEGER ), - 86 - - - 96 ) * - COUNT ( * ) - 16 AS col0
----
-100816

query I rowsort
SELECT DISTINCT - 54 * + 75 * - + 84 AS col1
----
340200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5396
SELECT + CAST( NULL AS SIGNED ) * - - 36 AS col2, - 19 AS col0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-5396
SELECT + CAST ( NULL AS INTEGER ) * - - 36 AS col2, - 19 AS col0
----
NULL
-19

query I rowsort
SELECT 90 + COALESCE ( - - 37, ( + 0 ) * 58, - 17 ) * - 78 - + + 99
----
-2895

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT + 93 * + COUNT( * ) + - COUNT( * ) + + 41
----
133

skipif mysql # not compatible
query I rowsort label-5398
SELECT + 93 * + COUNT ( * ) + - COUNT ( * ) + + 41
----
133

query I rowsort
SELECT ALL + 18 + + 83 col1
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT 59 + - + 22 + - - 10 DIV + 67 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5400
SELECT 59 + - + 22 + - - 10 / + 67 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5401
SELECT + + ( - NULLIF ( 46, - 94 ) ) * + 35 * - 51 + + + 29, - 53 + - CASE - + SUM( + 75 ) WHEN - + COUNT( * ) THEN NULL ELSE 99 END AS col1
----
82139
-152

skipif mysql # not compatible
query II rowsort label-5401
SELECT + + ( - NULLIF ( 46, - 94 ) ) * + 35 * - 51 + + + 29, - 53 + - CASE - + SUM ( + 75 ) WHEN - + COUNT ( * ) THEN NULL ELSE 99 END AS col1
----
82139
-152

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5402
SELECT - 97 + 81 AS col0, 58 * CAST( NULL AS DECIMAL ) AS col1
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-5402
SELECT - 97 + 81 AS col0, 58 * CAST ( NULL AS REAL ) AS col1
----
-16
NULL

query I rowsort
SELECT DISTINCT 36 + - ( - 27 ) * 27
----
765

query I rowsort
SELECT ALL - ( + 37 ) + 63 - 17 - - ( 89 ) + - 12 + + + 4 AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5405
SELECT COUNT( * ) + 78 * + 94 AS col1, 16 AS col2
----
7333
16

skipif mysql # not compatible
query II rowsort label-5405
SELECT COUNT ( * ) + 78 * + 94 AS col1, 16 AS col2
----
7333
16

query II rowsort
SELECT 84 AS col0, 9 AS col2
----
84
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT 69 - COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5407
SELECT 69 - COUNT ( * ) AS col0
----
68

query I rowsort
SELECT 72 * + 10
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT ALL 20 - + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL 20 - + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 88 + 32
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT ( COUNT( * ) ) - 30
----
-29

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT ( COUNT ( * ) ) - 30
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT ( + 28 ) * + 47 * + 7 + CASE + 64 WHEN + 14 THEN 85 + 37 * + + CAST( NULL AS SIGNED ) + - 27 + - CAST( - + CASE - 51 WHEN 26 * 24 + - + ( + 11 ) THEN - NULLIF ( - MIN( DISTINCT - 68 ), - COUNT( * ) + - NULLIF ( + CAST( NULLIF ( - 75, CASE + COALESCE ( 87, 37 ) WHEN 53 + + 83 THEN 76 END + - 33 ) AS SIGNED ), + 99 ) - - 17 * - COUNT( * ) ) END AS SIGNED ) + - COALESCE ( 86, 66, - 53 + - ( 63 + CASE - 39 WHEN 14 * 21 THEN + COUNT( * ) WHEN + 9 THEN NULL ELSE NULL END ) ) WHEN COUNT( * ) THEN + 10 * 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT ( + 28 ) * + 47 * + 7 + CASE + 64 WHEN + 14 THEN 85 + 37 * + + CAST ( NULL AS INTEGER ) + - 27 + - CAST ( - + CASE - 51 WHEN 26 * 24 + - + ( + 11 ) THEN - NULLIF ( - MIN ( DISTINCT - 68 ), - COUNT ( * ) + - NULLIF ( + CAST ( NULLIF ( - 75, CASE + COALESCE ( 87, 37 ) WHEN 53 + + 83 THEN 76 END + - 33 ) AS INTEGER ), + 99 ) - - 17 * - COUNT ( * ) ) END AS INTEGER ) + - COALESCE ( 86, 66, - 53 + - ( 63 + CASE - 39 WHEN 14 * 21 THEN + COUNT ( * ) WHEN + 9 THEN NULL ELSE NULL END ) ) WHEN COUNT ( * ) THEN + 10 * 4 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 25 * - + 26
----
-650

query II rowsort
SELECT ALL 83, 21 col1
----
83
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT 94 DIV + 28 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5415
SELECT 94 / + 28 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5416
SELECT + 46 AS col2, 99 + MAX( ALL CAST( 49 AS SIGNED ) )
----
46
148

skipif mysql # not compatible
query II rowsort label-5416
SELECT + 46 AS col2, 99 + MAX ( ALL CAST ( 49 AS INTEGER ) )
----
46
148

onlyif mysql # aggregate syntax: 
query II rowsort label-5417
SELECT ALL - 32, + MIN( ALL + 94 ) AS col0
----
-32
94

skipif mysql # not compatible
query II rowsort label-5417
SELECT ALL - 32, + MIN ( ALL + 94 ) AS col0
----
-32
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT 77 * 85 + COUNT( * ) + - - NULLIF ( + 91, 44 - + + 29 - + - COUNT( * ) )
----
6637

skipif mysql # not compatible
query I rowsort label-5418
SELECT 77 * 85 + COUNT ( * ) + - - NULLIF ( + 91, 44 - + + 29 - + - COUNT ( * ) )
----
6637

query I rowsort
SELECT 89 * - + 70
----
-6230

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL - - CASE + + 85 WHEN - 29 * - + 29 + 25 + - 54 * + + 77 THEN NULL ELSE ( + - MIN( DISTINCT - + 77 ) ) END AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - - CASE + + 85 WHEN - 29 * - + 29 + 25 + - 54 * + + 77 THEN NULL ELSE ( + - MIN ( DISTINCT - + 77 ) ) END AS col1
----
77

query I rowsort
SELECT ALL + 47 + + + 78
----
125

query I rowsort
SELECT ALL - + 61 + - + 20 AS col0
----
-81

query I rowsort
SELECT ALL - + ( + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT 67 * 72 + + MIN( - 66 ) AS col1
----
4758

skipif mysql # not compatible
query I rowsort label-5424
SELECT 67 * 72 + + MIN ( - 66 ) AS col1
----
4758

query I rowsort
SELECT + 6 * 66 + 94 AS col2
----
490

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT ALL - + 45 AS col2, COUNT( + + 94 )
----
-45
1

skipif mysql # not compatible
query II rowsort label-5426
SELECT ALL - + 45 AS col2, COUNT ( + + 94 )
----
-45
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT ALL + - CAST( NULL AS SIGNED ) + + NULLIF ( + 40, - 71 ) + - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + - CAST ( NULL AS INTEGER ) + + NULLIF ( + 40, - 71 ) + - + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT - 61 * - 20 * + + 89 - + 63 - - 53 * + MIN( ALL + - 68 ) col1
----
104913

skipif mysql # not compatible
query I rowsort label-5428
SELECT - 61 * - 20 * + + 89 - + 63 - - 53 * + MIN ( ALL + - 68 ) col1
----
104913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5429
SELECT ALL + 54 + - ( - - 65 ) + + COUNT( * ) DIV + 98
----
-11

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL + 54 + - ( - - 65 ) + + COUNT ( * ) / + 98
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5430
SELECT - + COUNT( * ) * + - 76 + - 36 + 3 * - 79 - - + CAST( NULL AS SIGNED ) + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5430
SELECT - + COUNT ( * ) * + - 76 + - 36 + 3 * - 79 - - + CAST ( NULL AS INTEGER ) + - 37
----
NULL

query II rowsort
SELECT + 52 AS col1, 89 + + 47
----
52
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5432
SELECT + 75 AS col1, COUNT( * ) - + CAST( - 24 AS SIGNED ) DIV - + 29 * - - 87 AS col0, - COUNT( * ) AS col1
----
75
1
-1

skipif mysql # not compatible
query III rowsort label-5432
SELECT + 75 AS col1, COUNT ( * ) - + CAST ( - 24 AS INTEGER ) / - + 29 * - - 87 AS col0, - COUNT ( * ) AS col1
----
75
1
-1

query II rowsort
SELECT + + 43 col2, 42
----
43
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5434
SELECT ALL + MIN( + + 94 ) * CAST( - + ( + COUNT( * ) ) AS SIGNED ) DIV - + 24 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL + MIN ( + + 94 ) * CAST ( - + ( + COUNT ( * ) ) AS INTEGER ) / - + 24 AS col1
----
3

query I rowsort
SELECT 7 + - 21
----
-14

query I rowsort
SELECT DISTINCT + CASE + NULLIF ( + + 20, - - 5 + + 19 ) WHEN 33 * + + 82 THEN + 81 * - 9 END + + 73 * - - 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5437
SELECT DISTINCT + + COUNT( * ) DIV COUNT( * ) + SUM( + 75 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT + + COUNT ( * ) / COUNT ( * ) + SUM ( + 75 ) AS col1
----
76

query I rowsort
SELECT 47 - + ( + + ( - 57 ) )
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT ALL - NULLIF ( COUNT( * ), + 75 DIV + 49 ) * 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - NULLIF ( COUNT ( * ), + 75 / + 49 ) * 26 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT 37 + 90 / - - CAST( NULL AS SIGNED ) * 17 * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT 37 + 90 / - - CAST ( NULL AS INTEGER ) * 17 * 77
----
NULL

query I rowsort
SELECT 78 + - - 93
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT - COUNT( DISTINCT + + 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-5442
SELECT - COUNT ( DISTINCT + + 17 )
----
-1

query I rowsort
SELECT DISTINCT + 72 * - 62 * + 13
----
-58032

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL NULLIF ( 36, - 43 + + - 15 + + - 32 * - COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL NULLIF ( 36, - 43 + + - 15 + + - 32 * - COUNT ( * ) )
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5445
SELECT - SUM( DISTINCT - + 52 ), - 5 AS col2
----
52
-5

skipif mysql # not compatible
query II rowsort label-5445
SELECT - SUM ( DISTINCT - + 52 ), - 5 AS col2
----
52
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) * - 40
----
NULL

query I rowsort
SELECT - 42 - + + 46 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5448
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 84 * 28 col0
----
2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5450
SELECT - + 99 * - 24 / - NULLIF ( + + MIN( - - ( + CAST( NULL AS SIGNED ) ) ), - + 69 + + AVG ( ALL + - 28 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT - + 99 * - 24 / - NULLIF ( + + MIN ( - - ( + CAST ( NULL AS INTEGER ) ) ), - + 69 + + AVG ( ALL + - 28 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT ALL + COUNT( ALL - 82 ) * - COUNT( DISTINCT 31 ) AS col1, MAX( DISTINCT + - 66 ) AS col1
----
-1
-66

skipif mysql # not compatible
query II rowsort label-5451
SELECT ALL + COUNT ( ALL - 82 ) * - COUNT ( DISTINCT 31 ) AS col1, MAX ( DISTINCT + - 66 ) AS col1
----
-1
-66

query I rowsort
SELECT ALL + 75 * - 87 + - - 63 * + 0 AS col1
----
-6525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT + - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT DISTINCT + + MIN( + 38 ) AS col2, 34 AS col0
----
38
34

skipif mysql # not compatible
query II rowsort label-5454
SELECT DISTINCT + + MIN ( + 38 ) AS col2, 34 AS col0
----
38
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT DISTINCT + - CAST( + 43 AS SIGNED ) * + - 75 + + 11 + 17 AS col2
----
3253

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT + - CAST ( + 43 AS INTEGER ) * + - 75 + + 11 + 17 AS col2
----
3253

query I rowsort
SELECT ALL - + 24 * - - 67 + 69 + - 2 + 84 * + 29 col2
----
895

query I rowsort
SELECT - 26 - 6 AS col0
----
-32

query I rowsort
SELECT - + 97 - - ( - + NULLIF ( 55, 42 * + 59 ) ) AS col2
----
-152

query I rowsort
SELECT + - ( + - 63 ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT DISTINCT + 75 * - 68 + 43 * - + CASE + 37 WHEN 96 + ( + 46 ) * 33 THEN NULL WHEN + + 60 / 97 + - SUM( - NULLIF ( + 89, - - 21 ) ) * 21 * - - ( + CASE - + 20 WHEN + 60 * - + 16 + - CAST( NULL AS SIGNED ) + + ( - - NULLIF ( + 28, + - AVG ( + 35 ) * - - 84 ) ) THEN - 13 WHEN 4 + + ( - MAX( + 92 ) ) THEN NULL END ) THEN ( + 9 ) * + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + 75 * - 68 + 43 * - + CASE + 37 WHEN 96 + ( + 46 ) * 33 THEN NULL WHEN + + 60 / 97 + - SUM ( - NULLIF ( + 89, - - 21 ) ) * 21 * - - ( + CASE - + 20 WHEN + 60 * - + 16 + - CAST ( NULL AS INTEGER ) + + ( - - NULLIF ( + 28, + - AVG ( + 35 ) * - - 84 ) ) THEN - 13 WHEN 4 + + ( - MAX ( + 92 ) ) THEN NULL END ) THEN ( + 9 ) * + 45 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL + SUM( + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + SUM ( + 25 )
----
25

query I rowsort
SELECT ALL 54 * 76 - NULLIF ( + - 9, + 87 ) + + 76 + - 72 AS col1
----
4117

query I rowsort
SELECT - + 36 + 37 * + 54
----
1962

query I rowsort
SELECT ALL + - 59 AS col1
----
-59

query I rowsort
SELECT + 15 * + 41 * - 44 * + - 78 col0
----
2110680

query I rowsort
SELECT - 21 * - 79 AS col1
----
1659

query I rowsort
SELECT 12 * - - 42 + - ( + 45 )
----
459

query I rowsort
SELECT DISTINCT 87 * + COALESCE ( + 56, - 24 ) - - 59 * 69 * + 16 AS col0
----
70008

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT - 73 + + COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5469
SELECT - 73 + + COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT - 85 * + + 96
----
-8160

query I rowsort
SELECT + 91 * 24 AS col1
----
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT ALL - 12 DIV + + 77 * - - 75 * + 9
----
0

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL - 12 / + + 77 * - - 75 * + 9
----
0

query I rowsort
SELECT - 2 + - 49 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT COALESCE ( + 26, + + NULLIF ( - - 13, + SUM( + - 68 ) * + 15 - + + 10 ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT COALESCE ( + 26, + + NULLIF ( - - 13, + SUM ( + - 68 ) * + 15 - + + 10 ) ) AS col2
----
26

query I rowsort
SELECT ALL - 13 * 99 AS col1
----
-1287

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL COUNT( * ) * + 68
----
68

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL COUNT ( * ) * + 68
----
68

query I rowsort
SELECT ALL + 50 + - 49
----
1

query I rowsort
SELECT - NULLIF ( 95, - AVG ( + 42 ) * + 67 + + 1 ) + 51 + - - 97 * - - 19 col2
----
1799

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5479
SELECT + COUNT( * ) DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-5479
SELECT + COUNT ( * ) / + 39
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT - 19 + + + CASE WHEN NOT ( NOT + 22 NOT BETWEEN + - 22 AND 82 ) THEN NULL ELSE + ( + - ( - + COALESCE ( - 4, CAST( NULL AS SIGNED ) * 45 ) ) ) END
----
-23

skipif mysql # not compatible
query I rowsort label-5480
SELECT - 19 + + + CASE WHEN NOT ( NOT + 22 NOT BETWEEN + - 22 AND 82 ) THEN NULL ELSE + ( + - ( - + COALESCE ( - 4, CAST ( NULL AS INTEGER ) * 45 ) ) ) END
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT + 25 + COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5481
SELECT + 25 + COUNT ( * ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL + COUNT( * ) * - 43
----
-43

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + COUNT ( * ) * - 43
----
-43

query I rowsort
SELECT - ( + 50 ) * - 20 AS col2
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT + 1 + - ( + COUNT( * ) ) + ( + COUNT( * ) ) * + 78 * - ( COUNT( DISTINCT 91 ) ) * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 1 + - ( + COUNT ( * ) ) + ( + COUNT ( * ) ) * + 78 * - ( COUNT ( DISTINCT 91 ) ) * COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT - CASE + + AVG ( 44 ) WHEN + + 2 THEN NULL WHEN + + 0 - - + COUNT( - + 94 ) / - 59 THEN - 98 END + - 95 * - 83 * + COUNT( + + 58 ) / 21 + - + 67 + - COALESCE ( + 57, + + 72, - - 0, + 24 ) + + 95 + 68 * 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT - CASE + + AVG ( 44 ) WHEN + + 2 THEN NULL WHEN + + 0 - - + COUNT ( - + 94 ) / - 59 THEN - 98 END + - 95 * - 83 * + COUNT ( + + 58 ) / 21 + - + 67 + - COALESCE ( + 57, + + 72, - - 0, + 24 ) + + 95 + 68 * 46 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - + 8, + + 91 + CASE + 68 WHEN + 22 THEN - 82 END ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5487
SELECT ALL + + 90 + - 91 + - + CAST( NULL AS SIGNED ) * COUNT( * ) + - CAST( + - 41 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL + + 90 + - 91 + - + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - CAST ( + - 41 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL ( + - SUM( DISTINCT 84 ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL ( + - SUM ( DISTINCT 84 ) ) AS col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5489
SELECT ALL + 62 + + COUNT( * ) DIV 84 * - - 32
----
62

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + 62 + + COUNT ( * ) / 84 * - - 32
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL 18 * - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL 18 * - COUNT ( * )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5491
SELECT ALL 58 + - + COUNT( * ) DIV + - CAST( 45 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL 58 + - + COUNT ( * ) / + - CAST ( 45 AS INTEGER )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5492
SELECT - - 81 * - - CAST( + ( SUM( ALL - 39 ) ) AS SIGNED ) AS col0, COUNT( * ) + 28
----
-3159
29

skipif mysql # not compatible
query II rowsort label-5492
SELECT - - 81 * - - CAST ( + ( SUM ( ALL - 39 ) ) AS INTEGER ) AS col0, COUNT ( * ) + 28
----
-3159
29

query I rowsort
SELECT + CASE + 59 WHEN - - 65 THEN NULL ELSE + CASE - 46 WHEN - + 8 THEN NULL ELSE - 22 END END AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT - 86 * - - ( 96 ) DIV 4 + + COALESCE ( - 48, - 78 )
----
-2112

skipif mysql # not compatible
query I rowsort label-5494
SELECT - 86 * - - ( 96 ) / 4 + + COALESCE ( - 48, - 78 )
----
-2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT + CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-5495
SELECT + CAST ( 99 AS INTEGER )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT + 63 * - 81 + - CAST( NULL AS SIGNED ) + ( + 96 ) / + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT + 63 * - 81 + - CAST ( NULL AS INTEGER ) + ( + 96 ) / + 51 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5497
SELECT + CASE COUNT( * ) WHEN 18 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN NULL ELSE 85 END * 92 + + NULLIF ( - + 37, + 38 )
----
7783

skipif mysql # not compatible
query I rowsort label-5497
SELECT + CASE COUNT ( * ) WHEN 18 THEN NULL WHEN CAST ( NULL AS REAL ) THEN NULL ELSE 85 END * 92 + + NULLIF ( - + 37, + 38 )
----
7783

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT ALL - + 98 DIV - 59 - + 56
----
-55

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - + 98 / - 59 - + 56
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT DISTINCT - 21 DIV 12
----
-1

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT - 21 / 12
----
-1

query I rowsort
SELECT - 58 * + 96 - - + 83 * - 84
----
-12540

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT - 97 * + MIN( ALL + 73 )
----
-7081

skipif mysql # not compatible
query I rowsort label-5501
SELECT - 97 * + MIN ( ALL + 73 )
----
-7081

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5502
SELECT + CAST( NULL AS SIGNED ), - ( + 25 ) AS col1
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-5502
SELECT + CAST ( NULL AS INTEGER ), - ( + 25 ) AS col1
----
NULL
-25

query I rowsort
SELECT - 15 + + 98
----
83

query II rowsort
SELECT + 54 AS col2, 6 * 36 AS col1
----
54
216

query II rowsort
SELECT ( 0 ) AS col2, - 25 AS col2
----
0
-25

query I rowsort
SELECT ALL - 26 * - + 2 AS col0
----
52

query I rowsort
SELECT 62 * + - 4 AS col1
----
-248

query II rowsort
SELECT ALL - 97 AS col1, ( - - 70 ) AS col2
----
-97
70

query II rowsort
SELECT ALL 69, - ( - 32 ) AS col1
----
69
32

query I rowsort
SELECT ALL 20 * 50 AS col0
----
1000

query I rowsort
SELECT 87 * 25
----
2175

onlyif mysql # DIV for integer division: 
query II rowsort label-5512
SELECT 86, COALESCE ( + 72, + - 18 + 89 ) DIV 11 col2
----
86
6

skipif mysql # not compatible
query II rowsort label-5512
SELECT 86, COALESCE ( + 72, + - 18 + 89 ) / 11 col2
----
86
6

query II rowsort
SELECT - 79 AS col2, + 8
----
-79
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5514
SELECT ALL 32, - COUNT( * ) col2
----
32
-1

skipif mysql # not compatible
query II rowsort label-5514
SELECT ALL 32, - COUNT ( * ) col2
----
32
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT 77 * + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5515
SELECT 77 * + COUNT ( * ) AS col0
----
77

query I rowsort
SELECT 13 * - 98
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL + NULLIF ( + 93, - + 44 * - 12 * + + MIN( DISTINCT + 82 ) ) + - 94
----
-1

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + NULLIF ( + 93, - + 44 * - 12 * + + MIN ( DISTINCT + 82 ) ) + - 94
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5518
SELECT 16 col2, - NULLIF ( - - 95, - - CAST( NULL AS SIGNED ) + - 29 / + 74 * - 41 )
----
16
-95

skipif mysql # not compatible
query II rowsort label-5518
SELECT 16 col2, - NULLIF ( - - 95, - - CAST ( NULL AS INTEGER ) + - 29 / + 74 * - 41 )
----
16
-95

query II rowsort
SELECT ALL 43, 33 * + 32 AS col1
----
43
1056

query I rowsort
SELECT DISTINCT + 37 + - NULLIF ( 29, + 44 ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5521
SELECT ALL MAX( ALL + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL MAX ( ALL + - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + ( - 14 ) * + 29
----
-406

query I rowsort
SELECT ALL - - 38 + 76
----
114

query I rowsort
SELECT - NULLIF ( + 1, + 96 + - + 18 + + 73 + + 83 )
----
-1

query I rowsort
SELECT NULLIF ( - - 77, + 40 - - 83 ) + + + 57
----
134

query II rowsort
SELECT 99, 79 * 29 + 87 AS col2
----
99
2378

query I rowsort
SELECT ALL 91 - + + 25 + - - 28 + + 84 + - 33 * + 34 * - 72
----
80962

query I rowsort
SELECT 82 - 99 * - 93 col2
----
9289

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT ALL - - 46 * - 84 AS col2, + COUNT( * ) col2
----
-3864
1

skipif mysql # not compatible
query II rowsort label-5529
SELECT ALL - - 46 * - 84 AS col2, + COUNT ( * ) col2
----
-3864
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5530
SELECT ALL - + 14 AS col0, - MAX( DISTINCT - - 21 ) AS col1
----
-14
-21

skipif mysql # not compatible
query II rowsort label-5530
SELECT ALL - + 14 AS col0, - MAX ( DISTINCT - - 21 ) AS col1
----
-14
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT MAX( DISTINCT - 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5531
SELECT MAX ( DISTINCT - 37 ) AS col0
----
-37

query II rowsort
SELECT DISTINCT - 33 AS col2, - 28 AS col0
----
-33
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5533
SELECT + 91 DIV - COUNT( * ) + + COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5533
SELECT + 91 / - COUNT ( * ) + + COUNT ( * ) AS col0
----
-90

query II rowsort
SELECT + 41 + - + 63 col0, - 81 * 90
----
-22
-7290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5535
SELECT ALL - - MAX( ALL + 45 ) AS col0, 79 * - CAST( 22 AS SIGNED ) AS col0
----
45
-1738

skipif mysql # not compatible
query II rowsort label-5535
SELECT ALL - - MAX ( ALL + 45 ) AS col0, 79 * - CAST ( 22 AS INTEGER ) AS col0
----
45
-1738

query II rowsort
SELECT 17 AS col0, + 5
----
17
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + MIN( + 5 ) * + 82 + - + 68 + - + COUNT( * ) AS col1
----
341

skipif mysql # not compatible
query I rowsort label-5537
SELECT + MIN ( + 5 ) * + 82 + - + 68 + - + COUNT ( * ) AS col1
----
341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT + CAST( NULL AS SIGNED ) - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5538
SELECT + CAST ( NULL AS INTEGER ) - - 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT - 64 * MIN( + + 38 ) + + + AVG ( + 24 ) * + COUNT( - 58 ) / - - CASE + 55 WHEN - + 12 THEN COUNT( DISTINCT - - 25 ) * + MAX( 4 ) * - 33 WHEN + - 11 * AVG ( DISTINCT - CASE + 10 WHEN + 26 * ( 32 ) THEN - - 65 * - + 82 * - 87 / - 15 / + 67 END ) * 86 + - CAST( - + 25 AS SIGNED ) + + + 10 THEN - 47 + + 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT - 64 * MIN ( + + 38 ) + + + AVG ( + 24 ) * + COUNT ( - 58 ) / - - CASE + 55 WHEN - + 12 THEN COUNT ( DISTINCT - - 25 ) * + MAX ( 4 ) * - 33 WHEN + - 11 * AVG ( DISTINCT - CASE + 10 WHEN + 26 * ( 32 ) THEN - - 65 * - + 82 * - 87 / - 15 / + 67 END ) * 86 + - CAST ( - + 25 AS INTEGER ) + + + 10 THEN - 47 + + 98 END AS col2
----
NULL

query I rowsort
SELECT 28 * 96
----
2688

query I rowsort
SELECT DISTINCT 3 * - 72
----
-216

query I rowsort
SELECT ALL + ( + 18 ) * - + 24
----
-432

query I rowsort
SELECT DISTINCT 85 * 83 * - 62 * - - 29 AS col0
----
-12684890

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT COUNT( * ) + - - 71 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT COUNT ( * ) + - - 71 AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT + 47 * CAST( NULL AS SIGNED ) + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT + 47 * CAST ( NULL AS INTEGER ) + + 79 AS col2
----
NULL

query I rowsort
SELECT ALL 14 + + 66 AS col2
----
80

query I rowsort
SELECT 68 + - 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL COUNT( * ) + + 20
----
21

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL COUNT ( * ) + + 20
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5549
SELECT COUNT( DISTINCT - + 41 ) + 95 + + 50 DIV - 62 * 96 DIV MIN( DISTINCT - 73 ) * - - 30
----
96

skipif mysql # not compatible
query I rowsort label-5549
SELECT COUNT ( DISTINCT - + 41 ) + 95 + + 50 / - 62 * 96 / MIN ( DISTINCT - 73 ) * - - 30
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT - COUNT( 85 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5550
SELECT - COUNT ( 85 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5551
SELECT DISTINCT 13 + - ( + NULLIF ( - CAST( NULL AS SIGNED ), - - NULLIF ( - NULLIF ( + 23, - - COUNT( * ) ), + 58 ) * 99 ) ) + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT 13 + - ( + NULLIF ( - CAST ( NULL AS INTEGER ), - - NULLIF ( - NULLIF ( + 23, - - COUNT ( * ) ), + 58 ) * 99 ) ) + 78
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5552
SELECT ALL MIN( ALL - + 62 ) + + CAST( 79 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL MIN ( ALL - + 62 ) + + CAST ( 79 AS INTEGER )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT ALL 48 + 54 DIV 62 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL 48 + 54 / 62 AS col0
----
48

query I rowsort
SELECT DISTINCT 65 * - - 20 AS col2
----
1300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5555
SELECT - 65 + + - 59 + + + MIN( DISTINCT - 47 ) - - 48 + ( 73 ) * - CAST( 78 AS SIGNED ) AS col0
----
-5817

skipif mysql # not compatible
query I rowsort label-5555
SELECT - 65 + + - 59 + + + MIN ( DISTINCT - 47 ) - - 48 + ( 73 ) * - CAST ( 78 AS INTEGER ) AS col0
----
-5817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5556
SELECT 18 + + NULLIF ( COUNT( * ), - 25 + - - 1 ) / - CAST( - - COUNT( DISTINCT - 43 ) AS DECIMAL ) - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT 18 + + NULLIF ( COUNT ( * ), - 25 + - - 1 ) / - CAST ( - - COUNT ( DISTINCT - 43 ) AS REAL ) - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT - 36 * 12 DIV + 70
----
-6

skipif mysql # not compatible
query I rowsort label-5557
SELECT - 36 * 12 / + 70
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT + COALESCE ( + - 99, CAST( + 82 AS SIGNED ) + - - 91 ) + 5 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-5558
SELECT + COALESCE ( + - 99, CAST ( + 82 AS INTEGER ) + - - 91 ) + 5 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT MIN( 98 ) + - 8 + - - 94 col1
----
184

skipif mysql # not compatible
query I rowsort label-5559
SELECT MIN ( 98 ) + - 8 + - - 94 col1
----
184

query I rowsort
SELECT ALL - - 18 - - 25 AS col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5561
SELECT ALL + COUNT( * ) DIV 85 DIV + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL + COUNT ( * ) / 85 / + 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT + 27 * + COUNT( * ) * 39 * 78 * - 8 AS col1
----
-657072

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT + 27 * + COUNT ( * ) * 39 * 78 * - 8 AS col1
----
-657072

query I rowsort
SELECT - 95 * - - 27
----
-2565

onlyif mysql # aggregate syntax: 
query II rowsort label-5564
SELECT ALL - + COUNT( * ) * - 89 * + + 46 + - + 18 * + 4 AS col1, MAX( DISTINCT - 77 ) AS col2
----
4022
-77

skipif mysql # not compatible
query II rowsort label-5564
SELECT ALL - + COUNT ( * ) * - 89 * + + 46 + - + 18 * + 4 AS col1, MAX ( DISTINCT - 77 ) AS col2
----
4022
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT DISTINCT - ( + + COUNT( * ) ) * + 24
----
-24

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT - ( + + COUNT ( * ) ) * + 24
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5566
SELECT ( + - NULLIF ( + COALESCE ( - - COALESCE ( - + COUNT( * ), - 21 ), - + 28, - CASE COUNT( * ) WHEN - + 73 * + 53 THEN ( COUNT( * ) ) WHEN 86 THEN NULL END ), 6 * + - CAST( COALESCE ( - 60, - - 75, - COUNT( * ) + + CAST( NULL AS DECIMAL ), - COUNT( * ) + - + 20 ) AS SIGNED ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5566
SELECT ( + - NULLIF ( + COALESCE ( - - COALESCE ( - + COUNT ( * ), - 21 ), - + 28, - CASE COUNT ( * ) WHEN - + 73 * + 53 THEN ( COUNT ( * ) ) WHEN 86 THEN NULL END ), 6 * + - CAST ( COALESCE ( - 60, - - 75, - COUNT ( * ) + + CAST ( NULL AS REAL ), - COUNT ( * ) + - + 20 ) AS INTEGER ) ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT - 51 DIV + 2 + + 13 * + 23
----
274

skipif mysql # not compatible
query I rowsort label-5567
SELECT - 51 / + 2 + + 13 * + 23
----
274

query I rowsort
SELECT + COALESCE ( + ( 18 ), + - ( + 28 ) ) AS col2
----
18

query I rowsort
SELECT ALL + 17 * ( 97 ) + + 66 * 26 * + 53 AS col0
----
92597

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL SUM( - - 59 ) * - - ( + 41 ) + + - ( + - ( - 6 ) ) + - 89 + + 65 AS col1
----
2389

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL SUM ( - - 59 ) * - - ( + 41 ) + + - ( + - ( - 6 ) ) + - 89 + + 65 AS col1
----
2389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5571
SELECT DISTINCT + COALESCE ( MIN( 85 ), + COUNT( * ) * + CAST( NULL AS SIGNED ) DIV + 89 + - + 80 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT + COALESCE ( MIN ( 85 ), + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + 89 + - + 80 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL 25 * + 16 + - COUNT( 15 ) AS col2
----
399

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL 25 * + 16 + - COUNT ( 15 ) AS col2
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT SUM( ALL + + 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-5573
SELECT SUM ( ALL + + 56 ) col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5574
SELECT - COALESCE ( + NULLIF ( + 33, + ( + 43 ) * - COUNT( * ) - + 34 + 58 * - + 96 ), CASE - SUM( 47 ) WHEN + 13 THEN NULL WHEN - 53 THEN + 92 END, + - 45, - 63 ) * - - CASE 1 WHEN 99 + + CAST( NULL AS SIGNED ) * - AVG ( + 94 ) THEN - + 68 ELSE MIN( DISTINCT 20 ) - + - ( - 29 ) END * - CASE + 67 WHEN 73 + - COALESCE ( - - 55, - 45 / + 79, 68, COUNT( * ) + COUNT( * ) * - 6 ) THEN 1 * + COALESCE ( 24, + 95 * - COUNT( * ) + + 70 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT - COALESCE ( + NULLIF ( + 33, + ( + 43 ) * - COUNT ( * ) - + 34 + 58 * - + 96 ), CASE - SUM ( 47 ) WHEN + 13 THEN NULL WHEN - 53 THEN + 92 END, + - 45, - 63 ) * - - CASE 1 WHEN 99 + + CAST ( NULL AS INTEGER ) * - AVG ( + 94 ) THEN - + 68 ELSE MIN ( DISTINCT 20 ) - + - ( - 29 ) END * - CASE + 67 WHEN 73 + - COALESCE ( - - 55, - 45 / + 79, 68, COUNT ( * ) + COUNT ( * ) * - 6 ) THEN 1 * + COALESCE ( 24, + 95 * - COUNT ( * ) + + 70 ) END
----
NULL

query I rowsort
SELECT - 78 - - - 67 AS col1
----
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT COUNT( * ) col0, - COUNT( - 41 ) * + NULLIF ( - 50, + MAX( ALL 27 ) / 80 + 6 )
----
1
50

skipif mysql # not compatible
query II rowsort label-5576
SELECT COUNT ( * ) col0, - COUNT ( - 41 ) * + NULLIF ( - 50, + MAX ( ALL 27 ) / 80 + 6 )
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL + 91 * + SUM( ALL 32 )
----
2912

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + 91 * + SUM ( ALL 32 )
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL - 19 + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL - 19 + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT ALL COUNT( * ) * + 80 * + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL COUNT ( * ) * + 80 * + COUNT ( * )
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-5580
SELECT DISTINCT 91 AS col1, 39 DIV - 83
----
91
0

skipif mysql # not compatible
query II rowsort label-5580
SELECT DISTINCT 91 AS col1, 39 / - 83
----
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT - COUNT( * ) * - 34 * + - 77
----
-2618

skipif mysql # not compatible
query I rowsort label-5581
SELECT - COUNT ( * ) * - 34 * + - 77
----
-2618

query I rowsort
SELECT - NULLIF ( + - 92, COALESCE ( - - 50, + 22 ) * + 59 + + + AVG ( - + 30 ) + + - 99 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT ALL 24 DIV + + 13 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 24 / + + 13 AS col2
----
1

query I rowsort
SELECT ALL + ( - + 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT MAX( ALL + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-5585
SELECT MAX ( ALL + 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5586
SELECT ALL - 32 AS col2, 6 / 4 * - - 70 + - 62 * + - CASE + CASE WHEN NULL BETWEEN - ( - COALESCE ( - 24, + 91 * - + CAST( 75 AS SIGNED ) + - 8 + + MIN( DISTINCT 25 ) * + ( - COUNT( * ) ), 10 / COALESCE ( + 88, CASE + 16 WHEN - - 76 THEN + 61 WHEN 39 + 34 * + 87 THEN - 36 END * 30 * - 96 ) + + + ( - 95 ) * - COUNT( * ) ) ) AND 23 + + 12 * - 14 THEN + 19 END WHEN + 72 THEN - 71 + - 40 WHEN - 71 + 38 THEN NULL END - 27 * 28
----
-32
NULL

skipif mysql # not compatible
query II rowsort label-5586
SELECT ALL - 32 AS col2, 6 / 4 * - - 70 + - 62 * + - CASE + CASE WHEN NULL BETWEEN - ( - COALESCE ( - 24, + 91 * - + CAST ( 75 AS INTEGER ) + - 8 + + MIN ( DISTINCT 25 ) * + ( - COUNT ( * ) ), 10 / COALESCE ( + 88, CASE + 16 WHEN - - 76 THEN + 61 WHEN 39 + 34 * + 87 THEN - 36 END * 30 * - 96 ) + + + ( - 95 ) * - COUNT ( * ) ) ) AND 23 + + 12 * - 14 THEN + 19 END WHEN + 72 THEN - 71 + - 40 WHEN - 71 + 38 THEN NULL END - 27 * 28
----
-32
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT + 14 * + COUNT( * ) * + MAX( + CAST( + + 69 AS SIGNED ) )
----
966

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + 14 * + COUNT ( * ) * + MAX ( + CAST ( + + 69 AS INTEGER ) )
----
966

query I rowsort
SELECT + + 9 * - 3
----
-27

query I rowsort
SELECT ALL 40 * - 2 * - 43
----
3440

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT + 10 + - 50 + 0 + + 56 + + 49 DIV - + 32 * + + 80 DIV 75 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5590
SELECT + 10 + - 50 + 0 + + 56 + + 49 / - + 32 * + + 80 / 75 AS col1
----
15

query II rowsort
SELECT - 39 col2, - 68 + - 89 + - - 79 AS col2
----
-39
-78

query II rowsort
SELECT ALL + 48 AS col2, + 94 AS col1
----
48
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT + CASE + 0 WHEN 41 THEN + CAST( + AVG ( DISTINCT + 73 ) AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT + CASE + 0 WHEN 41 THEN + CAST ( + AVG ( DISTINCT + 73 ) AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 37 + + 53
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT - - 37 * COUNT( * ) + + + 52
----
89

skipif mysql # not compatible
query I rowsort label-5595
SELECT - - 37 * COUNT ( * ) + + + 52
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5596
SELECT - + CASE - 1 WHEN NULLIF ( 66, - + 25 * - 30 ) * - COUNT( * ) * COUNT( * ) * - 23 + + 90 - + - CASE 93 WHEN - - 81 THEN + - COALESCE ( - - COALESCE ( 77, + CAST( - COALESCE ( + 45, - + 97 ) AS SIGNED ), + 59 / - + 62 + - 53 - CASE 18 WHEN 60 * SUM( DISTINCT - ( - ( 70 ) ) ) * COALESCE ( - - 4, - - 88 * 38 + COUNT( * ), 2 + - CAST( NULL AS SIGNED ), 60 ) THEN CASE COUNT( * ) WHEN + 53 THEN + 65 * 20 ELSE 63 END * - 75 WHEN COUNT( * ) * + 67 THEN - 44 ELSE 63 * + COUNT( * ) + 99 * 58 END ), - 85 + + 74 ) + 11 / + 50 END THEN + COUNT( * ) * - 15 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT - + CASE - 1 WHEN NULLIF ( 66, - + 25 * - 30 ) * - COUNT ( * ) * COUNT ( * ) * - 23 + + 90 - + - CASE 93 WHEN - - 81 THEN + - COALESCE ( - - COALESCE ( 77, + CAST ( - COALESCE ( + 45, - + 97 ) AS INTEGER ), + 59 / - + 62 + - 53 - CASE 18 WHEN 60 * SUM ( DISTINCT - ( - ( 70 ) ) ) * COALESCE ( - - 4, - - 88 * 38 + COUNT ( * ), 2 + - CAST ( NULL AS INTEGER ), 60 ) THEN CASE COUNT ( * ) WHEN + 53 THEN + 65 * 20 ELSE 63 END * - 75 WHEN COUNT ( * ) * + 67 THEN - 44 ELSE 63 * + COUNT ( * ) + 99 * 58 END ), - 85 + + 74 ) + 11 / + 50 END THEN + COUNT ( * ) * - 15 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL - ( + ( + MIN( + 15 ) ) ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL - ( + ( + MIN ( + 15 ) ) ) col2
----
-15

query I rowsort
SELECT ALL + 62 + - 7
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT 24 + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT 24 + + COUNT ( * )
----
25

query I rowsort
SELECT ALL + NULLIF ( - - 28, + 17 ) col0
----
28

query I rowsort
SELECT + 2 * 14 + - 84 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT + ( 74 ), + COUNT( * ) col1
----
74
1

skipif mysql # not compatible
query II rowsort label-5602
SELECT + ( 74 ), + COUNT ( * ) col1
----
74
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5603
SELECT ALL ( + 89 ) DIV + 47 - - + 81 + 97 + + - SUM( 64 ) * + + 30
----
-1741

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL ( + 89 ) / + 47 - - + 81 + 97 + + - SUM ( 64 ) * + + 30
----
-1741

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT ( - ( - CASE 93 WHEN NULLIF ( - + CASE 36 WHEN + + MAX( ALL + 39 ) - + 31 + + 36 + COUNT( 81 ) * + 27 * 2 THEN 96 * - 58 + 58 - + 9 + - 46 WHEN + 76 * AVG ( + 87 ) * + 71 * - - NULLIF ( + 52, 68 * - 97 ) THEN + 70 ELSE + - ( 52 ) + + ( - + 54 ) END, ( COUNT( * ) ) * + COUNT( * ) ) THEN - 26 END ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT ( - ( - CASE 93 WHEN NULLIF ( - + CASE 36 WHEN + + MAX ( ALL + 39 ) - + 31 + + 36 + COUNT ( 81 ) * + 27 * 2 THEN 96 * - 58 + 58 - + 9 + - 46 WHEN + 76 * AVG ( + 87 ) * + 71 * - - NULLIF ( + 52, 68 * - 97 ) THEN + 70 ELSE + - ( 52 ) + + ( - + 54 ) END, ( COUNT ( * ) ) * + COUNT ( * ) ) THEN - 26 END ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT - 85 - CASE - - COUNT( * ) WHEN - - MAX( + COALESCE ( + - 37, + ( + 7 ), + 23 + - 54 ) ) THEN + 95 WHEN 69 * 97 + + + 40 / + + 79 + + + 45 * 75 THEN + MAX( ALL - - 22 ) * - + 65 + - 71 + 33 * - COUNT( * ) * - 32 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT - 85 - CASE - - COUNT ( * ) WHEN - - MAX ( + COALESCE ( + - 37, + ( + 7 ), + 23 + - 54 ) ) THEN + 95 WHEN 69 * 97 + + + 40 / + + 79 + + + 45 * 75 THEN + MAX ( ALL - - 22 ) * - + 65 + - 71 + 33 * - COUNT ( * ) * - 32 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5606
SELECT ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5607
SELECT ( + + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT 68 * + 60 + + COUNT( * ) * + 11
----
4091

skipif mysql # not compatible
query I rowsort label-5608
SELECT 68 * + 60 + + COUNT ( * ) * + 11
----
4091

query I rowsort
SELECT - 72 * + + 88 * + 1 AS col2
----
-6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5610
SELECT ALL + CAST( 85 AS SIGNED ), 16 * 52 * MAX( 43 ) * + - 66 / - SUM( - 61 ) * + - CAST( NULL AS SIGNED ) AS col1
----
85
NULL

skipif mysql # not compatible
query II rowsort label-5610
SELECT ALL + CAST ( 85 AS INTEGER ), 16 * 52 * MAX ( 43 ) * + - 66 / - SUM ( - 61 ) * + - CAST ( NULL AS INTEGER ) AS col1
----
85
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5611
SELECT - 25 + CAST( NULL AS SIGNED ) * + 65 + + COUNT( DISTINCT 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT - 25 + CAST ( NULL AS INTEGER ) * + 65 + + COUNT ( DISTINCT 16 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 33 ) col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5613
SELECT - CAST( NULL AS SIGNED ) * + 70 * - 97 * - 61 AS col1, - 78
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-5613
SELECT - CAST ( NULL AS INTEGER ) * + 70 * - 97 * - 61 AS col1, - 78
----
NULL
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT ALL + CAST( - - 86 AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL + CAST ( - - 86 AS INTEGER ) AS col0
----
86

query I rowsort
SELECT + 63 * 26 + - 18
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT NULLIF ( - 8, - CASE + 88 WHEN + SUM( 81 ) THEN NULL WHEN - + 55 * - - 28 * - 2 THEN - 76 / + - 43 + - 66 ELSE + NULLIF ( - 21, - ( + + 31 ) ) + + 0 END )
----
-8

skipif mysql # not compatible
query I rowsort label-5616
SELECT NULLIF ( - 8, - CASE + 88 WHEN + SUM ( 81 ) THEN NULL WHEN - + 55 * - - 28 * - 2 THEN - 76 / + - 43 + - 66 ELSE + NULLIF ( - 21, - ( + + 31 ) ) + + 0 END )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5617
SELECT + NULLIF ( MAX( - 16 ), + COUNT( * ) ) col1, + 49 DIV COALESCE ( - 28, 73, + 91, + 60 ) * - - CAST( + + COUNT( * ) AS SIGNED ), - 0 * + 4 AS col1
----
-16
-1
0

skipif mysql # not compatible
query III rowsort label-5617
SELECT + NULLIF ( MAX ( - 16 ), + COUNT ( * ) ) col1, + 49 / COALESCE ( - 28, 73, + 91, + 60 ) * - - CAST ( + + COUNT ( * ) AS INTEGER ), - 0 * + 4 AS col1
----
-16
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL + ( + 51 ) * + + COUNT( * ) + + + 12 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL + ( + 51 ) * + + COUNT ( * ) + + + 12 AS col2
----
63

query II rowsort
SELECT ALL + NULLIF ( + - 91, - 21 / - 99 ), - 2 AS col1
----
-91
-2

query I rowsort
SELECT DISTINCT - 10 * - - 62 AS col1
----
-620

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT + - 99 DIV + 75
----
-1

skipif mysql # not compatible
query I rowsort label-5621
SELECT + - 99 / + 75
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5622
SELECT ALL - + CAST( NULL AS DECIMAL ) * + NULLIF ( + NULLIF ( - 63, + 7 ), - ( + + 71 ) * - 56 * + 40 ) + + + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL - + CAST ( NULL AS REAL ) * + NULLIF ( + NULLIF ( - 63, + 7 ), - ( + + 71 ) * - 56 * + 40 ) + + + 53 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 60 * + 67 + - 21 AS col2
----
-4041

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT + 54 + COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5624
SELECT + 54 + COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL CASE + 89 WHEN - COUNT( * ) THEN - ( + 42 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL CASE + 89 WHEN - COUNT ( * ) THEN - ( + 42 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT + + COUNT( * ) + + 23 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5626
SELECT + + COUNT ( * ) + + 23 AS col1
----
24

query I rowsort
SELECT + 68 * + 36
----
2448

query II rowsort
SELECT DISTINCT 42 + - 48 AS col2, - 48
----
-6
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5629
SELECT ALL + COUNT( 44 ) DIV + MIN( ALL 44 )
----
0

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + COUNT ( 44 ) / + MIN ( ALL 44 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5630
SELECT + CASE + 11 WHEN + + 66 THEN + - ( - 93 ) + + 90 ELSE NULL END + + CAST( NULL AS SIGNED ) AS col1, 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-5630
SELECT + CASE + 11 WHEN + + 66 THEN + - ( - 93 ) + + 90 ELSE NULL END + + CAST ( NULL AS INTEGER ) AS col1, 57
----
NULL
57

query I rowsort
SELECT + 34 * + 70 + - 17
----
2363

query I rowsort
SELECT ALL - 91 + + + 29 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL 87 + + 24 + + ( - 32 ) + + - COUNT( * ) * - 18 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL 87 + + 24 + + ( - 32 ) + + - COUNT ( * ) * - 18 AS col0
----
97

query I rowsort
SELECT DISTINCT - 53 + + + 86
----
33

query II rowsort
SELECT 58 AS col1, + 46 AS col2
----
58
46

query I rowsort
SELECT ALL 38 * + + 24
----
912

query I rowsort
SELECT DISTINCT 56 + - 68 + - - 95 + - 20 * + 92 * + 88 AS col0
----
-161837

query I rowsort
SELECT 71 * - - 68
----
4828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5639
SELECT 0 DIV - 56 * + - 43 + + 69 - + MAX( DISTINCT 89 ) DIV - - COALESCE ( + 14, 56 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-5639
SELECT 0 / - 56 * + - 43 + + 69 - + MAX ( DISTINCT 89 ) / - - COALESCE ( + 14, 56 ) AS col1
----
63

query I rowsort
SELECT 16 + + - 79
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL - COUNT( ALL + 34 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - COUNT ( ALL + 34 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 96 - 30 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5643
SELECT DISTINCT - ( + 70 ) - 36 * 46 DIV - + 60 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT - ( + 70 ) - 36 * 46 / - + 60 AS col2
----
-43

query I rowsort
SELECT 87 * 36 AS col1
----
3132

query I rowsort
SELECT 22 * 79 col1
----
1738

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL - 28 * + MIN( + 44 )
----
-1232

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - 28 * + MIN ( + 44 )
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT + COUNT( - 86 ) * - 25 - - + MAX( - + 1 ) + 59 * - 87 * + 16
----
-82154

skipif mysql # not compatible
query I rowsort label-5647
SELECT + COUNT ( - 86 ) * - 25 - - + MAX ( - + 1 ) + 59 * - 87 * + 16
----
-82154

query I rowsort
SELECT DISTINCT + 56 * - 62 AS col1
----
-3472

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT ALL - MIN( DISTINCT + 15 ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - MIN ( DISTINCT + 15 ) col1
----
-15

query I rowsort
SELECT 21 * - 53
----
-1113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5651
SELECT DISTINCT - CASE + 21 WHEN - 36 THEN + COALESCE ( 53, - CAST( NULL AS SIGNED ), ( 90 ) - + 17 ) * + COUNT( DISTINCT 76 ) + - 81 * + COUNT( * ) WHEN 12 THEN - 37 - - 73 ELSE NULL END AS col0, + 17 * + 19 + - + 30 * + 92 + - 71 AS col2
----
NULL
-2508

skipif mysql # not compatible
query II rowsort label-5651
SELECT DISTINCT - CASE + 21 WHEN - 36 THEN + COALESCE ( 53, - CAST ( NULL AS INTEGER ), ( 90 ) - + 17 ) * + COUNT ( DISTINCT 76 ) + - 81 * + COUNT ( * ) WHEN 12 THEN - 37 - - 73 ELSE NULL END AS col0, + 17 * + 19 + - + 30 * + 92 + - 71 AS col2
----
NULL
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT 53 * 47 - ( + 69 ) + - + ( - 61 ) + - 40 * + COUNT( * ) AS col2
----
2443

skipif mysql # not compatible
query I rowsort label-5652
SELECT 53 * 47 - ( + 69 ) + - + ( - 61 ) + - 40 * + COUNT ( * ) AS col2
----
2443

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL + 56 + - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL + 56 + - COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT + 92 * - 40 * - 51 * - COUNT( * )
----
-187680

skipif mysql # not compatible
query I rowsort label-5654
SELECT + 92 * - 40 * - 51 * - COUNT ( * )
----
-187680

query I rowsort
SELECT 72 * + + 25 * + + 68 AS col1
----
122400

query I rowsort
SELECT ALL - 65 * 40
----
-2600

query I rowsort
SELECT DISTINCT - 48 + + 40 * - 35 col2
----
-1448

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT DISTINCT - - MAX( 75 ) + + - COUNT( * ), COUNT( * ) * + + 58 + + - 29 AS col1
----
74
29

skipif mysql # not compatible
query II rowsort label-5658
SELECT DISTINCT - - MAX ( 75 ) + + - COUNT ( * ), COUNT ( * ) * + + 58 + + - 29 AS col1
----
74
29

query I rowsort
SELECT ALL 58 + + 76
----
134

query I rowsort
SELECT 51 - 23
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - COUNT( - ( + - 85 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5661
SELECT - COUNT ( - ( + - 85 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT ALL + CAST( 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + CAST ( 10 AS INTEGER )
----
10

query I rowsort
SELECT ALL - 54 + + 60 AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5664
SELECT + CASE - + MIN( ALL + - 64 ) WHEN + - NULLIF ( - MAX( + 42 ), 3 ) THEN 24 ELSE - + 23 + 86 DIV - 64 END * + 30
----
-720

skipif mysql # not compatible
query I rowsort label-5664
SELECT + CASE - + MIN ( ALL + - 64 ) WHEN + - NULLIF ( - MAX ( + 42 ), 3 ) THEN 24 ELSE - + 23 + 86 / - 64 END * + 30
----
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5665
SELECT + CAST( NULL AS SIGNED ) + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT + CAST ( NULL AS INTEGER ) + 23
----
NULL

query I rowsort
SELECT 71 + - + 29 AS col2
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5667
SELECT COUNT( * ) DIV + 55 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5667
SELECT COUNT ( * ) / + 55 * COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT ALL 91 DIV - 81 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL 91 / - 81 AS col2
----
-1

query I rowsort
SELECT 78 * + - 49
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT 81 + + 33 - COUNT( * ) * - 29
----
143

skipif mysql # not compatible
query I rowsort label-5670
SELECT 81 + + 33 - COUNT ( * ) * - 29
----
143

query I rowsort
SELECT ALL - 4 - 82 AS col2
----
-86

query II rowsort
SELECT DISTINCT 8 col1, + 64
----
8
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL COUNT( * ) * COALESCE ( 1, - MIN( DISTINCT - 64 ) + - + 38 * + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL COUNT ( * ) * COALESCE ( 1, - MIN ( DISTINCT - 64 ) + - + 38 * + 32 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT MIN( ALL - 82 ) + + 12
----
-70

skipif mysql # not compatible
query I rowsort label-5674
SELECT MIN ( ALL - 82 ) + + 12
----
-70

query I rowsort
SELECT ALL 37 * COALESCE ( - + 65, - + 9 ) col2
----
-2405

query I rowsort
SELECT DISTINCT 49 * + ( - 24 )
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + MAX( + 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5677
SELECT + MAX ( + 29 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT - MIN( ALL 96 ) * COUNT( ALL - 12 ) - + 55 AS col2
----
-151

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT - MIN ( ALL 96 ) * COUNT ( ALL - 12 ) - + 55 AS col2
----
-151

query I rowsort
SELECT ALL 1 * + 95 * + + 61 * - ( + 59 )
----
-341905

query I rowsort
SELECT 2 * COALESCE ( + 75, - + 67, + 94 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT - 92 * - 46 + - + COUNT( * ) + - 38 col0
----
4193

skipif mysql # not compatible
query I rowsort label-5681
SELECT - 92 * - 46 + - + COUNT ( * ) + - 38 col0
----
4193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT 41 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT 41 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 48 * 98 AS col1, 21
----
4704
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT 61 * - 53 - COUNT( * ) + - 99 * + + MIN( ALL 30 ) + + ( + - 47 ) AS col0
----
-6251

skipif mysql # not compatible
query I rowsort label-5684
SELECT 61 * - 53 - COUNT ( * ) + - 99 * + + MIN ( ALL 30 ) + + ( + - 47 ) AS col0
----
-6251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5685
SELECT DISTINCT - 63 AS col1, CAST( + COUNT( * ) AS DECIMAL ) / - CASE 27 WHEN - 62 * - COUNT( - + 24 ) + + 5 + - CAST( + - 59 AS DECIMAL ) * + CAST( NULL AS SIGNED ) THEN - 50 / ( + 71 ) + + COUNT( * ) WHEN COUNT( + 87 ) + + + 64 + - CAST( + + 27 AS SIGNED ) * 9 / + COUNT( * ) THEN - COALESCE ( + 47, + 26 - - - 53 * + + 8 * + 46, - 65 ) END AS col2
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-5685
SELECT DISTINCT - 63 AS col1, CAST ( + COUNT ( * ) AS REAL ) / - CASE 27 WHEN - 62 * - COUNT ( - + 24 ) + + 5 + - CAST ( + - 59 AS REAL ) * + CAST ( NULL AS INTEGER ) THEN - 50 / ( + 71 ) + + COUNT ( * ) WHEN COUNT ( + 87 ) + + + 64 + - CAST ( + + 27 AS INTEGER ) * 9 / + COUNT ( * ) THEN - COALESCE ( + 47, + 26 - - - 53 * + + 8 * + 46, - 65 ) END AS col2
----
-63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL - COUNT( DISTINCT 85 ) * + 3 + 83 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - COUNT ( DISTINCT 85 ) * + 3 + 83 AS col0
----
80

query I rowsort
SELECT 18 * 33 + 76
----
670

query I rowsort
SELECT - 32 - + 20 + 2 * - 39 * 45
----
-3562

query II rowsort
SELECT ALL + 10 + - 84 AS col1, 17 - - - 86 AS col1
----
-74
-69

query I rowsort
SELECT 97 + + - 76
----
21

query II rowsort
SELECT + 74 AS col0, + 97 AS col2
----
74
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT + MAX( ( + - 58 ) ) + + 25 + + - 74 * 30 * - 76 + - 70
----
168617

skipif mysql # not compatible
query I rowsort label-5692
SELECT + MAX ( ( + - 58 ) ) + + 25 + + - 74 * 30 * - 76 + - 70
----
168617

query I rowsort
SELECT - 59 * + 35 AS col2
----
-2065

query I rowsort
SELECT ALL - 19 + + 64 * + 73 * - + ( - - 11 )
----
-51411

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5695
SELECT - - CAST( NULL AS DECIMAL ) + 58 / - 2 * CASE - - COALESCE ( - COUNT( * ), + 16, 1 ) WHEN + CASE + 2 WHEN 9 / + 40 * MIN( - 13 ) + - + 23 THEN - 38 ELSE NULL END THEN SUM( DISTINCT + 83 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT - - CAST ( NULL AS REAL ) + 58 / - 2 * CASE - - COALESCE ( - COUNT ( * ), + 16, 1 ) WHEN + CASE + 2 WHEN 9 / + 40 * MIN ( - 13 ) + - + 23 THEN - 38 ELSE NULL END THEN SUM ( DISTINCT + 83 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5696
SELECT DISTINCT - COUNT( * ) AS col1, - 51 DIV + - COUNT( * ) + + NULLIF ( 46, + 55 DIV + 85 ) * + 11 * 22 * - 62 AS col2
----
-1
-690133

skipif mysql # not compatible
query II rowsort label-5696
SELECT DISTINCT - COUNT ( * ) AS col1, - 51 / + - COUNT ( * ) + + NULLIF ( 46, + 55 / + 85 ) * + 11 * 22 * - 62 AS col2
----
-1
-690133

query I rowsort
SELECT ALL + + 96 + 67 AS col1
----
163

query I rowsort
SELECT ALL - ( 69 ) * 73 AS col0
----
-5037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT ALL + + 5 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + + 5 + - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 3 col2, + 54 * - - 58 AS col2
----
-3
3132

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT - 14, - 97 + - 84 + - MIN( 13 ) AS col0
----
-14
-194

skipif mysql # not compatible
query II rowsort label-5701
SELECT - 14, - 97 + - 84 + - MIN ( 13 ) AS col0
----
-14
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT - - COUNT( * ) + + 11 + - NULLIF ( + + 28, + - 1 * - ( - - 38 ) ) * + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5702
SELECT - - COUNT ( * ) + + 11 + - NULLIF ( + + 28, + - 1 * - ( - - 38 ) ) * + COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT - 92 * COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-5703
SELECT - 92 * COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5704
SELECT + 4 AS col0, + SUM( - 5 )
----
4
-5

skipif mysql # not compatible
query II rowsort label-5704
SELECT + 4 AS col0, + SUM ( - 5 )
----
4
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT - 75 + + 71 + - COALESCE ( - 53, + + 28 DIV + 98 * + 24 + + + 44, + + 91 * 11 ) * - 31 * - 41
----
67359

skipif mysql # not compatible
query I rowsort label-5705
SELECT - 75 + + 71 + - COALESCE ( - 53, + + 28 / + 98 * + 24 + + + 44, + + 91 * 11 ) * - 31 * - 41
----
67359

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT ALL - 45 * CAST( 94 AS SIGNED ) AS col2
----
-4230

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - 45 * CAST ( 94 AS INTEGER ) AS col2
----
-4230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5707
SELECT ALL + 64 DIV + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL + 64 / + COUNT ( * ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5708
SELECT ALL ( COUNT( * ) ), 57 * + 45 AS col1
----
1
2565

skipif mysql # not compatible
query II rowsort label-5708
SELECT ALL ( COUNT ( * ) ), 57 * + 45 AS col1
----
1
2565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5709
SELECT DISTINCT COUNT( * ) - - CAST( NULL AS SIGNED ) - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT COUNT ( * ) - - CAST ( NULL AS INTEGER ) - + 52
----
NULL

query I rowsort
SELECT ALL + 46 * + 7 * + 20
----
6440

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT NULLIF ( SUM( - 74 ), + 20 )
----
-74

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT NULLIF ( SUM ( - 74 ), + 20 )
----
-74

query I rowsort
SELECT DISTINCT + 28 * 9 col0
----
252

query I rowsort
SELECT - 14 - + 44
----
-58

query II rowsort
SELECT - 7 * + CASE WHEN ( NULL ) IS NOT NULL THEN - 53 END, 94 AS col0
----
NULL
94

query I rowsort
SELECT + NULLIF ( - 87, + 96 )
----
-87

query I rowsort
SELECT - 83 * 97 AS col1
----
-8051

onlyif mysql # aggregate syntax: 
query II rowsort label-5717
SELECT + NULLIF ( + 60, - COUNT( * ) ), 72 + - 67 + 90 - - 11 - COUNT( * ) AS col1
----
60
105

skipif mysql # not compatible
query II rowsort label-5717
SELECT + NULLIF ( + 60, - COUNT ( * ) ), 72 + - 67 + 90 - - 11 - COUNT ( * ) AS col1
----
60
105

query I rowsort
SELECT ALL + ( - + 47 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT ALL ( + 71 ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL ( + 71 ) / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT 74 * + - 56 * 45 - - COUNT( * ) col0
----
-186479

skipif mysql # not compatible
query I rowsort label-5720
SELECT 74 * + - 56 * 45 - - COUNT ( * ) col0
----
-186479

query I rowsort
SELECT ALL 48 * - 30 AS col0
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT DISTINCT + 40 * + + 65 * + - CAST( NULL AS SIGNED ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT + 40 * + + 65 * + - CAST ( NULL AS INTEGER ) + + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5723
SELECT ALL - 90 * + 24 + CAST( + MIN( DISTINCT + ( - + 66 ) ) AS SIGNED ) AS col0
----
-2226

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL - 90 * + 24 + CAST ( + MIN ( DISTINCT + ( - + 66 ) ) AS INTEGER ) AS col0
----
-2226

query I rowsort
SELECT + 47 * + ( + 72 ) AS col0
----
3384

query I rowsort
SELECT - 74 * + - 4 + 10 + + 67
----
373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5726
SELECT DISTINCT CAST( - - SUM( - 23 ) AS SIGNED ) * + SUM( 38 ) + 36
----
-838

skipif mysql # not compatible
query I rowsort label-5726
SELECT DISTINCT CAST ( - - SUM ( - 23 ) AS INTEGER ) * + SUM ( 38 ) + 36
----
-838

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ALL - 97 * - 67 * 79 - 50 + - + COUNT( * )
----
513370

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL - 97 * - 67 * 79 - 50 + - + COUNT ( * )
----
513370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT ALL + NULLIF ( - - CAST( + - 76 AS SIGNED ), - - 43 + - - COUNT( * ) + - 77 * - AVG ( + CAST( NULL AS SIGNED ) ) - + 20 ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL + NULLIF ( - - CAST ( + - 76 AS INTEGER ), - - 43 + - - COUNT ( * ) + - 77 * - AVG ( + CAST ( NULL AS INTEGER ) ) - + 20 ) col1
----
-76

query I rowsort
SELECT - COALESCE ( - + 80, 95 ) AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + + 10 * + - 59 AS col0
----
-590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5732
SELECT ALL + + COUNT( 95 ) DIV - - COUNT( * ) - 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + + COUNT ( 95 ) / - - COUNT ( * ) - 34 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5733
SELECT ALL 65 * - + ( + 63 ) - - 77 * 51 * ( + 19 ) * + + 56 + CAST( NULL AS SIGNED ) * - 6 + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL 65 * - + ( + 63 ) - - 77 * 51 * ( + 19 ) * + + 56 + CAST ( NULL AS INTEGER ) * - 6 + - 4
----
NULL

query I rowsort
SELECT + ( - + 55 ) * + 6 + 97
----
-233

onlyif mysql # DIV for integer division: 
query II rowsort label-5735
SELECT - - 27 DIV - - 10 + 87 AS col1, 36 AS col2
----
89
36

skipif mysql # not compatible
query II rowsort label-5735
SELECT - - 27 / - - 10 + 87 AS col1, 36 AS col2
----
89
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5736
SELECT DISTINCT 77 - - COALESCE ( - + 6, - - COUNT( * ), + 55 DIV 53 + - + CAST( 74 AS SIGNED ), - 23 )
----
71

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT 77 - - COALESCE ( - + 6, - - COUNT ( * ), + 55 / 53 + - + CAST ( 74 AS INTEGER ), - 23 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL 38 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL 38 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 73 * - 83 AS col0
----
-6059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT ALL CAST( + 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL CAST ( + 6 AS INTEGER )
----
6

query I rowsort
SELECT + NULLIF ( + - 87, + 50 ) + - 76 AS col1
----
-163

query I rowsort
SELECT - 20 * - - 27
----
-540

query I rowsort
SELECT ALL CASE - 10 WHEN + + ( 72 ) * + + 53 - - + NULLIF ( - 35, - 83 ) THEN - 18 END AS col1
----
NULL

query I rowsort
SELECT + 90 + - + 63 AS col2
----
27

query I rowsort
SELECT ALL ( ( + - 90 ) ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT - 66 + + 20 * + ( COUNT( * ) ) + - - 10 * + 62 * + CASE - 97 WHEN + + 22 THEN - 13 * - 18 END + ( - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT - 66 + + 20 * + ( COUNT ( * ) ) + - - 10 * + 62 * + CASE - 97 WHEN + + 22 THEN - 13 * - 18 END + ( - 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT - MIN( ALL 38 ) - + + 22 * + 48 + - 97 + + + 28 + + - 73 * + - 85 * 68 - + + MIN( - 46 ) AS col2
----
420823

skipif mysql # not compatible
query I rowsort label-5746
SELECT - MIN ( ALL 38 ) - + + 22 * + 48 + - 97 + + + 28 + + - 73 * + - 85 * 68 - + + MIN ( - 46 ) AS col2
----
420823

query I rowsort
SELECT - 84 * + + 58 AS col2
----
-4872

query I rowsort
SELECT - 43 + - + 12 AS col1
----
-55

query I rowsort
SELECT DISTINCT + 88 * 3
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL + 15 + - COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + 15 + - COUNT ( * ) AS col0
----
14

query I rowsort
SELECT ALL + 70 * + 89 col2
----
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT - MAX( + 28 ) * + - SUM( DISTINCT + 14 ) AS col2
----
392

skipif mysql # not compatible
query I rowsort label-5752
SELECT - MAX ( + 28 ) * + - SUM ( DISTINCT + 14 ) AS col2
----
392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5753
SELECT DISTINCT + CASE - 6 WHEN + COUNT( * ) THEN + 93 ELSE - COUNT( * ) END DIV 90 + - + 66 + + - 34 + 30 * COUNT( * ) * + 70 + - MIN( 4 ) + + + 72 AS col1
----
2068

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + CASE - 6 WHEN + COUNT ( * ) THEN + 93 ELSE - COUNT ( * ) END / 90 + - + 66 + + - 34 + 30 * COUNT ( * ) * + 70 + - MIN ( 4 ) + + + 72 AS col1
----
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT DISTINCT + MIN( + - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT + MIN ( + - 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5755
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ALL - SUM( ALL - 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - SUM ( ALL - 32 ) AS col1
----
32

query I rowsort
SELECT DISTINCT + - 55 + - + 85
----
-140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5758
SELECT + CAST( NULL AS SIGNED ) + + 67 / MAX( DISTINCT + 70 ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT + CAST ( NULL AS INTEGER ) + + 67 / MAX ( DISTINCT + 70 ) + 46
----
NULL

query I rowsort
SELECT ALL 97 + - 99
----
-2

query I rowsort
SELECT ALL - 19 + + 65
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT + MAX( ALL 16 )
----
16

skipif mysql # not compatible
query I rowsort label-5761
SELECT + MAX ( ALL 16 )
----
16

query I rowsort
SELECT + 85 * + 44 AS col0
----
3740

onlyif mysql # aggregate syntax: 
query II rowsort label-5763
SELECT ALL 24 * COUNT( * ) * - 47 AS col2, SUM( 19 ) * - MAX( ALL + 25 ) + - 25 AS col0
----
-1128
-500

skipif mysql # not compatible
query II rowsort label-5763
SELECT ALL 24 * COUNT ( * ) * - 47 AS col2, SUM ( 19 ) * - MAX ( ALL + 25 ) + - 25 AS col0
----
-1128
-500

query I rowsort
SELECT DISTINCT - 69 * + 78 + + 80 * + + 71 + + 28 - 10
----
316

query I rowsort
SELECT 19 * + - NULLIF ( 25, + 11 )
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL - - CASE + 2 WHEN + 4 THEN + MIN( 57 ) * CASE + - 25 WHEN + - 0 THEN - 64 ELSE - - 29 - - + 50 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL - - CASE + 2 WHEN + 4 THEN + MIN ( 57 ) * CASE + - 25 WHEN + - 0 THEN - 64 ELSE - - 29 - - + 50 END END
----
NULL

query I rowsort
SELECT + 17 * 94 + 22 AS col1
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT - 25 * MAX( DISTINCT 95 ) + + 27 + + 12 + NULLIF ( + 11, + ( - - 98 ) / 9 ) * + + 76
----
-1500

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT - 25 * MAX ( DISTINCT 95 ) + + 27 + + 12 + NULLIF ( + 11, + ( - - 98 ) / 9 ) * + + 76
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT - 21 * - - 83 - + COUNT( * ) AS col2
----
-1744

skipif mysql # not compatible
query I rowsort label-5769
SELECT - 21 * - - 83 - + COUNT ( * ) AS col2
----
-1744

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + COUNT( * ) * + 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5770
SELECT + COUNT ( * ) * + 46 AS col2
----
46

query I rowsort
SELECT ALL - 92 * + + 82 AS col0
----
-7544

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT 29 + + 30 - - 59 + 73 * - 48 * + COUNT( * )
----
-3386

skipif mysql # not compatible
query I rowsort label-5772
SELECT 29 + + 30 - - 59 + 73 * - 48 * + COUNT ( * )
----
-3386

query I rowsort
SELECT - - 77 * 52 - 67 + - 96 * 55 col0
----
-1343

query I rowsort
SELECT ALL 13 - - 37
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5775
SELECT DISTINCT + - COUNT( * ) * COUNT( + 17 ) / + 17 + - SUM( DISTINCT + - 40 ) + + + AVG ( DISTINCT - 34 ) - - - 49 + - MAX( DISTINCT - - 42 ) / + + CASE - + COUNT( ALL + CAST( 30 AS SIGNED ) ) WHEN - - 65 THEN 13 + + COUNT( * ) END * - - 34 + - + 46 * - 62 + - + MIN( DISTINCT - ( - - 56 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT DISTINCT + - COUNT ( * ) * COUNT ( + 17 ) / + 17 + - SUM ( DISTINCT + - 40 ) + + + AVG ( DISTINCT - 34 ) - - - 49 + - MAX ( DISTINCT - - 42 ) / + + CASE - + COUNT ( ALL + CAST ( 30 AS INTEGER ) ) WHEN - - 65 THEN 13 + + COUNT ( * ) END * - - 34 + - + 46 * - 62 + - + MIN ( DISTINCT - ( - - 56 ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT 6 + + 70 + 59 DIV + + 47
----
77

skipif mysql # not compatible
query I rowsort label-5776
SELECT 6 + + 70 + 59 / + + 47
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5777
SELECT DISTINCT - 49 AS col2, MAX( - 76 ) * + - 51 + + COUNT( * ) DIV - - CAST( 32 AS SIGNED ) AS col2
----
-49
3876

skipif mysql # not compatible
query II rowsort label-5777
SELECT DISTINCT - 49 AS col2, MAX ( - 76 ) * + - 51 + + COUNT ( * ) / - - CAST ( 32 AS INTEGER ) AS col2
----
-49
3876

onlyif mysql # DIV for integer division: 
query I rowsort label-5778
SELECT DISTINCT 26 DIV 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT 26 / 52 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5779
SELECT 32 + 43 + - + COUNT( * ) DIV 26 AS col1, 30 + - 87 AS col1
----
75
-57

skipif mysql # not compatible
query II rowsort label-5779
SELECT 32 + 43 + - + COUNT ( * ) / 26 AS col1, 30 + - 87 AS col1
----
75
-57

query I rowsort
SELECT ALL 61 * + + ( - + 56 ) AS col1
----
-3416

query I rowsort
SELECT 6 * - 75
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT ALL 78 * + + 23 * - COUNT( * ) * - - 67
----
-120198

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL 78 * + + 23 * - COUNT ( * ) * - - 67
----
-120198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5783
SELECT DISTINCT + ( - NULLIF ( + 67, + 75 / 58 * - MIN( ALL + 13 ) + + CAST( NULL AS SIGNED ) + + 41 ) ) + + 15
----
-52

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT + ( - NULLIF ( + 67, + 75 / 58 * - MIN ( ALL + 13 ) + + CAST ( NULL AS INTEGER ) + + 41 ) ) + + 15
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-5784
SELECT ALL - 38 DIV - 79 AS col0, 62 AS col1
----
0
62

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL - 38 / - 79 AS col0, 62 AS col1
----
0
62

query I rowsort
SELECT ALL + 84 + - 53 + + 91 AS col2
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5786
SELECT DISTINCT - 29 + + SUM( - - 26 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT - 29 + + SUM ( - - 26 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT + 66 + + 64 + SUM( - 58 ) + - 79 + - 17 * + 45 * + - 69 AS col0
----
52778

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT + 66 + + 64 + SUM ( - 58 ) + - 79 + - 17 * + 45 * + - 69 AS col0
----
52778

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5788
SELECT COALESCE ( - ( - 69 ), + - 97 DIV - - ( + 54 ), + - 40 + 11 + + 80 * + 69 DIV - 72 + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + - 9 * + COUNT( * ) * + 63 * + 4 )
----
69

skipif mysql # not compatible
query I rowsort label-5788
SELECT COALESCE ( - ( - 69 ), + - 97 / - - ( + 54 ), + - 40 + 11 + + 80 * + 69 / - 72 + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 9 * + COUNT ( * ) * + 63 * + 4 )
----
69

query I rowsort
SELECT ALL + NULLIF ( + 75, ( ( + 79 ) ) ) - 51
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5790
SELECT ALL - CAST( NULL AS DECIMAL ) * - 70 AS col0, 43 + + 47 - COALESCE ( + 77, - ( 32 ) ) + - - 38 + + 56 * 4 AS col2
----
NULL
275

skipif mysql # not compatible
query II rowsort label-5790
SELECT ALL - CAST ( NULL AS REAL ) * - 70 AS col0, 43 + + 47 - COALESCE ( + 77, - ( 32 ) ) + - - 38 + + 56 * 4 AS col2
----
NULL
275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5791
SELECT DISTINCT - + 61 - - CAST( NULL AS DECIMAL ) + - - 88 * - 78 / - AVG ( ALL 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT - + 61 - - CAST ( NULL AS REAL ) + - - 88 * - 78 / - AVG ( ALL 1 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + + COUNT( * ) * - - ( 42 ) + - 15 + 55 + - 82 * + - 34 * 51
----
142270

skipif mysql # not compatible
query I rowsort label-5792
SELECT + + COUNT ( * ) * - - ( 42 ) + - 15 + 55 + - 82 * + - 34 * 51
----
142270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5793
SELECT - 83 / - 12 - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT - 83 / - 12 - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT + NULLIF ( 40, + NULLIF ( 38, - + COUNT( * ) * 92 + - 16 ) + - COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5794
SELECT + NULLIF ( 40, + NULLIF ( 38, - + COUNT ( * ) * 92 + - 16 ) + - COUNT ( * ) ) AS col0
----
40

query I rowsort
SELECT + - NULLIF ( + 27, - 99 ) AS col1
----
-27

query I rowsort
SELECT 95 + - 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5797
SELECT COUNT( * ) DIV 77 * - 42 DIV + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT COUNT ( * ) / 77 * - 42 / + 27 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT - ( + 42 ) * - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5798
SELECT - ( + 42 ) * - COUNT ( * ) AS col2
----
42

query I rowsort
SELECT 41 + - + 87
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT ALL 16 DIV - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL 16 / - 60 AS col0
----
0

query I rowsort
SELECT - ( + COALESCE ( + 4, + 58 * + 7 ) ) / + ( CASE 13 WHEN + 6 * + 8 + + + 5 * - 48 / 43 THEN - - 14 ELSE NULL END ) + - 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5802
SELECT ALL - COUNT( * ) DIV - - 48 * + - 19
----
0

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - COUNT ( * ) / - - 48 * + - 19
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT ALL 38 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL 38 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5804
SELECT + CASE - 33 WHEN - - 59 THEN NULL ELSE + + COUNT( * ) END col2, - ( 31 ) DIV 48 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-5804
SELECT + CASE - 33 WHEN - - 59 THEN NULL ELSE + + COUNT ( * ) END col2, - ( 31 ) / 48 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT ALL + 64 * + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL + 64 * + COUNT ( * ) AS col0
----
64

query I rowsort
SELECT 87 - - + 53
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5807
SELECT ( - - 27 ) * - - SUM( 39 ) + + 35 - 17 DIV - 4 AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-5807
SELECT ( - - 27 ) * - - SUM ( 39 ) + + 35 - 17 / - 4 AS col0
----
1092

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT 96 - - 91 DIV - - 61 + - 52
----
45

skipif mysql # not compatible
query I rowsort label-5808
SELECT 96 - - 91 / - - 61 + - 52
----
45

query II rowsort
SELECT ALL 8 AS col2, 71 AS col1
----
8
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT 15 * COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5810
SELECT 15 * COUNT ( * ) AS col0
----
15

query I rowsort
SELECT ALL - 15 + + + 20
----
5

query I rowsort
SELECT ALL ( + + 1 ) + - 84 + 82 * - 17 + + 88
----
-1389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5813
SELECT NULLIF ( - + 23, + + 57 ) - - CAST( - 64 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-5813
SELECT NULLIF ( - + 23, + + 57 ) - - CAST ( - 64 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT 41 - - + COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5814
SELECT 41 - - + COUNT ( * ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5815
SELECT ALL 19 + 20 + 1 + - 17 * + - COUNT( * ), - COALESCE ( 13, + - COUNT( * ) ) - + 34 * + 74 * 68 + - NULLIF ( - CAST( - 5 AS SIGNED ), - 27 - - COUNT( * ) + - 52 + 37 ) - - 42 AS col1
----
57
-171064

skipif mysql # not compatible
query II rowsort label-5815
SELECT ALL 19 + 20 + 1 + - 17 * + - COUNT ( * ), - COALESCE ( 13, + - COUNT ( * ) ) - + 34 * + 74 * 68 + - NULLIF ( - CAST ( - 5 AS INTEGER ), - 27 - - COUNT ( * ) + - 52 + 37 ) - - 42 AS col1
----
57
-171064

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5816
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( - 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT CAST ( NULL AS REAL ) + ( - 15 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + MIN( 3 ) + - - 69 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-5817
SELECT + MIN ( 3 ) + - - 69 AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT - ( + ( - - 84 ) ) - 27 * - 19 AS col0, 15 * - 41 - + + COUNT( * ) * + - 18 AS col0
----
429
-597

skipif mysql # not compatible
query II rowsort label-5818
SELECT - ( + ( - - 84 ) ) - 27 * - 19 AS col0, 15 * - 41 - + + COUNT ( * ) * + - 18 AS col0
----
429
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL COUNT( * ) * - + 26
----
-26

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL COUNT ( * ) * - + 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT + COALESCE ( + ( - 39 ), + 48 + + 11 + + - 72 * - 1 + + 68, + 45 ) * + 28 + COUNT( ALL + 11 ) AS col2
----
-1091

skipif mysql # not compatible
query I rowsort label-5820
SELECT + COALESCE ( + ( - 39 ), + 48 + + 11 + + - 72 * - 1 + + 68, + 45 ) * + 28 + COUNT ( ALL + 11 ) AS col2
----
-1091

query I rowsort
SELECT ALL - ( - - 95 ) AS col2
----
-95

query I rowsort
SELECT DISTINCT - 50 - + + 12 col1
----
-62

query I rowsort
SELECT ALL - 91 * + 80
----
-7280

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT + + 11 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-5824
SELECT + + 11 / - 90
----
0

query I rowsort
SELECT + - 36 * - 70 AS col1
----
2520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT - 90 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT - 90 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5827
SELECT ALL + 76 AS col2, - COUNT( * )
----
76
-1

skipif mysql # not compatible
query II rowsort label-5827
SELECT ALL + 76 AS col2, - COUNT ( * )
----
76
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5828
SELECT - 17 + + COALESCE ( 40, - 45 * - COUNT( * ) * 47 ) DIV - - ( - + 88 )
----
-17

skipif mysql # not compatible
query I rowsort label-5828
SELECT - 17 + + COALESCE ( 40, - 45 * - COUNT ( * ) * 47 ) / - - ( - + 88 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT ALL + 69 col2, SUM( + + 75 ) + + 9
----
69
84

skipif mysql # not compatible
query II rowsort label-5829
SELECT ALL + 69 col2, SUM ( + + 75 ) + + 9
----
69
84

query I rowsort
SELECT + 56 * + + 18
----
1008

query I rowsort
SELECT DISTINCT - 43 * + 63
----
-2709

onlyif mysql # aggregate syntax: 
query II rowsort label-5832
SELECT ALL + COUNT( * ), - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-5832
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col2
----
1
-1

query I rowsort
SELECT ALL + 15 * - - 70 AS col2
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT - - COUNT( * ) + - 91 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5834
SELECT - - COUNT ( * ) + - 91 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT DISTINCT + - 32 AS col0, COUNT( * )
----
-32
1

skipif mysql # not compatible
query II rowsort label-5835
SELECT DISTINCT + - 32 AS col0, COUNT ( * )
----
-32
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT DISTINCT - - ( - COUNT( DISTINCT + 96 ) ) * 5
----
-5

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT - - ( - COUNT ( DISTINCT + 96 ) ) * 5
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT + COALESCE ( + - 5, - 65 DIV - ( + 32 ) - - - 70 )
----
-5

skipif mysql # not compatible
query I rowsort label-5837
SELECT + COALESCE ( + - 5, - 65 / - ( + 32 ) - - - 70 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT ALL + 23 * + 94 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL + 23 * + 94 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5839
SELECT COUNT( * ) * - 84 - + + SUM( + + NULLIF ( + 12, + ( + CAST( NULL AS SIGNED ) ) ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5839
SELECT COUNT ( * ) * - 84 - + + SUM ( + + NULLIF ( + 12, + ( + CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
-96

query I rowsort
SELECT ALL + 7 * + 67 * 1 + + - 37 * + 56 * + + 42
----
-86555

query I rowsort
SELECT DISTINCT + 41 * - ( 10 ) + - 72 AS col2
----
-482

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT - 63 * + + MIN( - 13 ) * - - COUNT( * ) - COUNT( * ) - + + 1 + + + 51
----
868

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT - 63 * + + MIN ( - 13 ) * - - COUNT ( * ) - COUNT ( * ) - + + 1 + + + 51
----
868

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT DISTINCT + ( + 4 ) DIV + 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT + ( + 4 ) / + 9 AS col1
----
0

query I rowsort
SELECT 47 * - 0 + - 96 * + 66
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL - COUNT( * ) + 11 - + 36
----
-26

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - COUNT ( * ) + 11 - + 36
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT ALL + 56 DIV - 25
----
-2

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL + 56 / - 25
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT - 13 + 35 DIV 20
----
-12

skipif mysql # not compatible
query I rowsort label-5847
SELECT - 13 + 35 / 20
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT - 25 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5848
SELECT - 25 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT - COUNT( * ) * - - 75
----
-75

skipif mysql # not compatible
query I rowsort label-5849
SELECT - COUNT ( * ) * - - 75
----
-75

query I rowsort
SELECT + 90 + + 73
----
163

query I rowsort
SELECT - 1 * + 74 * 98 AS col1
----
-7252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5852
SELECT DISTINCT - SUM( DISTINCT + - 18 ) - + CASE ( + 69 ) WHEN - + 26 * - 84 THEN - - COALESCE ( + + CAST( NULL AS SIGNED ), COUNT( * ) - + NULLIF ( + 12, + 36 + - + CAST( + 79 AS SIGNED ) ) - + 72 ) + + COUNT( * ) END * + 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT - SUM ( DISTINCT + - 18 ) - + CASE ( + 69 ) WHEN - + 26 * - 84 THEN - - COALESCE ( + + CAST ( NULL AS INTEGER ), COUNT ( * ) - + NULLIF ( + 12, + 36 + - + CAST ( + 79 AS INTEGER ) ) - + 72 ) + + COUNT ( * ) END * + 68 col1
----
NULL

query II rowsort
SELECT - 78, - 88 + - 45 AS col0
----
-78
-133

query I rowsort
SELECT ALL 65 - - + 53 + - + 33 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT - 71 * - COUNT( DISTINCT 36 )
----
71

skipif mysql # not compatible
query I rowsort label-5855
SELECT - 71 * - COUNT ( DISTINCT 36 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT - MIN( - 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5856
SELECT - MIN ( - 99 ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5857
SELECT DISTINCT - CAST( + 97 AS SIGNED ) - + 0 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT - CAST ( + 97 AS INTEGER ) - + 0 AS col2
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-5858
SELECT ALL 89, 60 DIV + 33 AS col1
----
89
1

skipif mysql # not compatible
query II rowsort label-5858
SELECT ALL 89, 60 / + 33 AS col1
----
89
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + 23 * + SUM( ALL + 93 )
----
2139

skipif mysql # not compatible
query I rowsort label-5859
SELECT + 23 * + SUM ( ALL + 93 )
----
2139

query II rowsort
SELECT DISTINCT + 37, + 24 col0
----
37
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT - MAX( DISTINCT 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT - MAX ( DISTINCT 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT + CASE AVG ( DISTINCT + NULLIF ( + + 48, + 26 / 59 + 59 ) ) WHEN - - 85 * - 48 THEN NULL ELSE + COUNT( * ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5862
SELECT + CASE AVG ( DISTINCT + NULLIF ( + + 48, + 26 / 59 + 59 ) ) WHEN - - 85 * - 48 THEN NULL ELSE + COUNT ( * ) END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + 74 * - - MAX( + ( - - 9 ) )
----
666

skipif mysql # not compatible
query I rowsort label-5863
SELECT + 74 * - - MAX ( + ( - - 9 ) )
----
666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT + - 49 * 7 * - - 91 * 24 - + COUNT( * ) DIV - 33 * - ( - 70 ) DIV 27
----
-749112

skipif mysql # not compatible
query I rowsort label-5864
SELECT + - 49 * 7 * - - 91 * 24 - + COUNT ( * ) / - 33 * - ( - 70 ) / 27
----
-749112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT ALL - MIN( ALL - - ( + CAST( 0 AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL - MIN ( ALL - - ( + CAST ( 0 AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5866
SELECT + - NULLIF ( - - SUM( CAST( - - 19 AS SIGNED ) ), - COUNT( - - COALESCE ( 5, 90 * 27 ) ) + - + 2 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5866
SELECT + - NULLIF ( - - SUM ( CAST ( - - 19 AS INTEGER ) ), - COUNT ( - - COALESCE ( 5, 90 * 27 ) ) + - + 2 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT + ( + 6 ) * 51 * + COUNT( * ) + - 86 + - COUNT( * )
----
219

skipif mysql # not compatible
query I rowsort label-5867
SELECT + ( + 6 ) * 51 * + COUNT ( * ) + - 86 + - COUNT ( * )
----
219

query I rowsort
SELECT ALL - 5 * + 81 col0
----
-405

onlyif mysql # aggregate syntax: 
query II rowsort label-5869
SELECT ALL + CASE + + 93 WHEN + ( - 85 ) - + COUNT( * ) / + 52 THEN + - 6 ELSE + 66 END * 32 AS col0, 99 * + 89 * + - 84
----
2112
-740124

skipif mysql # not compatible
query II rowsort label-5869
SELECT ALL + CASE + + 93 WHEN + ( - 85 ) - + COUNT ( * ) / + 52 THEN + - 6 ELSE + 66 END * 32 AS col0, 99 * + 89 * + - 84
----
2112
-740124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT + 63 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT + 63 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5871
SELECT - + COUNT( - + ( 72 ) ) DIV 18 * + CASE + 36 WHEN + 71 THEN + 86 ELSE - COUNT( * ) + 9 END - 3 AS col1, 53 * + + COUNT( * )
----
-3
53

skipif mysql # not compatible
query II rowsort label-5871
SELECT - + COUNT ( - + ( 72 ) ) / 18 * + CASE + 36 WHEN + 71 THEN + 86 ELSE - COUNT ( * ) + 9 END - 3 AS col1, 53 * + + COUNT ( * )
----
-3
53

query I rowsort
SELECT ALL - 44 * + 12 - + 8 AS col0
----
-536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5873
SELECT DISTINCT MIN( + + 59 ) DIV 15 * - 3 + - 20
----
-29

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT MIN ( + + 59 ) / 15 * - 3 + - 20
----
-29

query I rowsort
SELECT + + 75 - - 61
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5875
SELECT ALL - + 52 DIV + SUM( DISTINCT + NULLIF ( 65, + + 88 ) ) + 89 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - + 52 / + SUM ( DISTINCT + NULLIF ( 65, + + 88 ) ) + 89 AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT ALL + + ( - 77 ) DIV 92 + ( 63 ) * - 56 AS col0
----
-3528

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL + + ( - 77 ) / 92 + ( 63 ) * - 56 AS col0
----
-3528

query I rowsort
SELECT ( + - 41 )
----
-41

query I rowsort
SELECT - - 67 + 96
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-5879
SELECT ALL + - 87, 88 + + 84 * + COUNT( * ) AS col2
----
-87
172

skipif mysql # not compatible
query II rowsort label-5879
SELECT ALL + - 87, 88 + + 84 * + COUNT ( * ) AS col2
----
-87
172

query I rowsort
SELECT + 68 * + 64 * + - 78 * + + 44 col2
----
-14936064

query I rowsort
SELECT ALL + 13 * - 89 + + - 23 * + + 77 + - 30
----
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT + 43 * COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT + 43 * COUNT ( * ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5883
SELECT 79 * - 35 - - 32, COUNT( + - 86 ) * - + 50 AS col0
----
-2733
-50

skipif mysql # not compatible
query II rowsort label-5883
SELECT 79 * - 35 - - 32, COUNT ( + - 86 ) * - + 50 AS col0
----
-2733
-50

query I rowsort
SELECT CASE + 40 WHEN 64 THEN NULL ELSE + ( + - 33 ) END
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT 57 * COUNT( DISTINCT 57 )
----
57

skipif mysql # not compatible
query I rowsort label-5885
SELECT 57 * COUNT ( DISTINCT 57 )
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-5886
SELECT DISTINCT + 7 DIV 75, 91 * + - 46 AS col1
----
0
-4186

skipif mysql # not compatible
query II rowsort label-5886
SELECT DISTINCT + 7 / 75, 91 * + - 46 AS col1
----
0
-4186

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL + 80 * - COUNT( * ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL + 80 * - COUNT ( * ) col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT DISTINCT + 8 DIV + - 91
----
0

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT + 8 / + - 91
----
0

query I rowsort
SELECT 80 * + - ( - - 65 ) * 9 AS col2
----
-46800

onlyif mysql # aggregate syntax: 
query II rowsort label-5890
SELECT - 45 * + 5, COUNT( * ) AS col0
----
-225
1

skipif mysql # not compatible
query II rowsort label-5890
SELECT - 45 * + 5, COUNT ( * ) AS col0
----
-225
1

query I rowsort
SELECT 39 * - 46
----
-1794

onlyif mysql # aggregate syntax: 
query II rowsort label-5892
SELECT ALL + 0 * + COUNT( * ) AS col1, 65 col1
----
0
65

skipif mysql # not compatible
query II rowsort label-5892
SELECT ALL + 0 * + COUNT ( * ) AS col1, 65 col1
----
0
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5893
SELECT - 88 + + - COUNT( * ) + + 98 DIV - 4
----
-113

skipif mysql # not compatible
query I rowsort label-5893
SELECT - 88 + + - COUNT ( * ) + + 98 / - 4
----
-113

query I rowsort
SELECT + 11 * - 6
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT COUNT( * ) + 35 + + + CAST( - - ( 66 ) AS SIGNED )
----
102

skipif mysql # not compatible
query I rowsort label-5895
SELECT COUNT ( * ) + 35 + + + CAST ( - - ( 66 ) AS INTEGER )
----
102

query I rowsort
SELECT ALL ( - 20 ) col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-5897
SELECT DISTINCT 64 + + 60 AS col1, 35 + - COUNT( * ) AS col2
----
124
34

skipif mysql # not compatible
query II rowsort label-5897
SELECT DISTINCT 64 + + 60 AS col1, 35 + - COUNT ( * ) AS col2
----
124
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT - COALESCE ( + ( + SUM( - 39 ) ), - COUNT( * ) DIV + 25 + + 12, 32 + - - 5 * - - COUNT( * ) ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5898
SELECT - COALESCE ( + ( + SUM ( - 39 ) ), - COUNT ( * ) / + 25 + + 12, 32 + - - 5 * - - COUNT ( * ) ) AS col2
----
39

query I rowsort
SELECT ALL + - 99 * ( - 63 ) AS col0
----
6237

query I rowsort
SELECT DISTINCT - 57 + + 33 * - - 97 AS col1
----
3144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT ALL + 82 + + 97 * + CAST( NULL AS SIGNED ) + - MIN( DISTINCT CASE + CAST( + 44 AS SIGNED ) WHEN - 60 THEN - 8 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + 82 + + 97 * + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT CASE + CAST ( + 44 AS INTEGER ) WHEN - 60 THEN - 8 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5902
SELECT + 91 DIV 87 + + - 95 * - 39
----
3706

skipif mysql # not compatible
query I rowsort label-5902
SELECT + 91 / 87 + + - 95 * - 39
----
3706

query I rowsort
SELECT DISTINCT - + 53 col1
----
-53

query I rowsort
SELECT + 27 + + 46 col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL + COUNT( * ) * 75 * 33 + 98 AS col2
----
2573

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL + COUNT ( * ) * 75 * 33 + 98 AS col2
----
2573

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT + 10 DIV + 10 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5906
SELECT + 10 / + 10 AS col2
----
1

query I rowsort
SELECT + NULLIF ( - 71, 16 * + 83 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL COUNT( - 81 ) + + + 93 col1
----
94

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL COUNT ( - 81 ) + + + 93 col1
----
94

query I rowsort
SELECT ( + + 29 ) * - + 54 AS col0
----
-1566

query I rowsort
SELECT ALL ( 66 ) * + - 59 * - 21 AS col1
----
81774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5911
SELECT DISTINCT 61 * + 76 * 82 AS col0, - COUNT( * ) / - CAST( NULL AS SIGNED )
----
380152
NULL

skipif mysql # not compatible
query II rowsort label-5911
SELECT DISTINCT 61 * + 76 * 82 AS col0, - COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
380152
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL COUNT( * ) - + - 13 * 34 * - 49 * - 89 AS col2
----
1927563

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL COUNT ( * ) - + - 13 * 34 * - 49 * - 89 AS col2
----
1927563

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT COUNT( * ) + - - 27 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5913
SELECT COUNT ( * ) + - - 27 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5914
SELECT ALL - 86 AS col1, CAST( - COALESCE ( - 9, + 74 ) AS SIGNED ) * - 81 + + - 51 col0
----
-86
-780

skipif mysql # not compatible
query II rowsort label-5914
SELECT ALL - 86 AS col1, CAST ( - COALESCE ( - 9, + 74 ) AS INTEGER ) * - 81 + + - 51 col0
----
-86
-780

query I rowsort
SELECT 57 - + 41 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5916
SELECT + 61 col1, COALESCE ( - 39, - - CASE - - AVG ( - 50 ) WHEN + - 87 THEN NULL WHEN + - ( + - 66 ) * - 33 THEN + 36 END * - ( 34 ) - - NULLIF ( + - 62, + 22 + - + 3 ) + + - NULLIF ( + 91, + SUM( - ( + 86 ) ) ) + - - 14 * - COUNT( * ) - + 59 + - NULLIF ( - COUNT( * ), + COUNT( * ) / 47 * + 61 ) + + - ( + 8 ) ) + - + 65 + 87 * - COUNT( * ) * + CASE - 35 WHEN - CAST( NULL AS DECIMAL ) THEN - - 52 END * 5 / - 68 + 62 / 52 / - 65
----
61
NULL

skipif mysql # not compatible
query II rowsort label-5916
SELECT + 61 col1, COALESCE ( - 39, - - CASE - - AVG ( - 50 ) WHEN + - 87 THEN NULL WHEN + - ( + - 66 ) * - 33 THEN + 36 END * - ( 34 ) - - NULLIF ( + - 62, + 22 + - + 3 ) + + - NULLIF ( + 91, + SUM ( - ( + 86 ) ) ) + - - 14 * - COUNT ( * ) - + 59 + - NULLIF ( - COUNT ( * ), + COUNT ( * ) / 47 * + 61 ) + + - ( + 8 ) ) + - + 65 + 87 * - COUNT ( * ) * + CASE - 35 WHEN - CAST ( NULL AS REAL ) THEN - - 52 END * 5 / - 68 + 62 / 52 / - 65
----
61
NULL

query I rowsort
SELECT COALESCE ( - 96, + 28 + + 52 ) + + 79 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5918
SELECT ALL + 21 * MAX( 5 ) AS col2, ( + + NULLIF ( + - ( 17 ), COUNT( * ) * 21 ) ) col2
----
105
-17

skipif mysql # not compatible
query II rowsort label-5918
SELECT ALL + 21 * MAX ( 5 ) AS col2, ( + + NULLIF ( + - ( 17 ), COUNT ( * ) * 21 ) ) col2
----
105
-17

query II rowsort
SELECT ( + 66 ) + + 97 - + 22 AS col0, COALESCE ( - + 53, 57, + 52 )
----
141
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5920
SELECT 21 * ( - CAST( NULL AS DECIMAL ) ) + - 7 * - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT 21 * ( - CAST ( NULL AS REAL ) ) + - 7 * - - 89
----
NULL

query I rowsort
SELECT ALL 6 * 78 AS col2
----
468

query II rowsort
SELECT 76 AS col2, - 20 * - 45 + + 40 + + ( + + 39 )
----
76
979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT 82 * NULLIF ( COUNT( * ), - 62 ) DIV 88 + + 6 * COALESCE ( + 14, - 25 - 31 ) * - - COALESCE ( - 1, + - CASE 48 WHEN + 27 THEN NULL ELSE - 40 END ) + 94 * 13 + + 72 + 79 + ( 26 ) * - + ( + - COUNT( * ) )
----
1315

skipif mysql # not compatible
query I rowsort label-5923
SELECT 82 * NULLIF ( COUNT ( * ), - 62 ) / 88 + + 6 * COALESCE ( + 14, - 25 - 31 ) * - - COALESCE ( - 1, + - CASE 48 WHEN + 27 THEN NULL ELSE - 40 END ) + 94 * 13 + + 72 + 79 + ( 26 ) * - + ( + - COUNT ( * ) )
----
1315

query II rowsort
SELECT ALL 39, 43 AS col2
----
39
43

query I rowsort
SELECT DISTINCT + 4 * 2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5926
SELECT + 86 * - 88 * CAST( + + 81 AS SIGNED ) AS col2
----
-613008

skipif mysql # not compatible
query I rowsort label-5926
SELECT + 86 * - 88 * CAST ( + + 81 AS INTEGER ) AS col2
----
-613008

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ( - MAX( + 40 ) ) + 83 * + 9
----
707

skipif mysql # not compatible
query I rowsort label-5927
SELECT ( - MAX ( + 40 ) ) + 83 * + 9
----
707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5928
SELECT - CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) + + + 89
----
NULL
90

skipif mysql # not compatible
query II rowsort label-5928
SELECT - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) + + + 89
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT ALL - 69 + - + 97 * + + COUNT( * ) * - 12 + 39
----
1134

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - 69 + - + 97 * + + COUNT ( * ) * - 12 + 39
----
1134

query I rowsort
SELECT DISTINCT + - 39 + + 51 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5931
SELECT ALL COUNT( * ), - 93 AS col2
----
1
-93

skipif mysql # not compatible
query II rowsort label-5931
SELECT ALL COUNT ( * ), - 93 AS col2
----
1
-93

query I rowsort
SELECT DISTINCT + 19 + - 18 * - 35 AS col1
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT DISTINCT - + COUNT( * ) + - ( 78 ) * - 32 + + 35
----
2530

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT - + COUNT ( * ) + - ( 78 ) * - 32 + + 35
----
2530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5934
SELECT + COUNT( * ) + + COALESCE ( - - 80, + + COUNT( * ) DIV + - MIN( DISTINCT + - 86 ) * - 40 DIV 20 * + 58 + - COUNT( + - CAST( + 30 AS SIGNED ) ) * + 54 ) * + + COALESCE ( 13, + COUNT( * ) ) + + 79
----
1120

skipif mysql # not compatible
query I rowsort label-5934
SELECT + COUNT ( * ) + + COALESCE ( - - 80, + + COUNT ( * ) / + - MIN ( DISTINCT + - 86 ) * - 40 / 20 * + 58 + - COUNT ( + - CAST ( + 30 AS INTEGER ) ) * + 54 ) * + + COALESCE ( 13, + COUNT ( * ) ) + + 79
----
1120

query I rowsort
SELECT DISTINCT + + 47 + - - 69 AS col0
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-5936
SELECT ALL - 28 + + 57 * 13 DIV + 47
----
-13

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL - 28 + + 57 * 13 / + 47
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT + ( + 98 ) - + - COUNT( * ) + - 3 * - 96 AS col2
----
387

skipif mysql # not compatible
query I rowsort label-5937
SELECT + ( + 98 ) - + - COUNT ( * ) + - 3 * - 96 AS col2
----
387

query II rowsort
SELECT 80 AS col1, 7
----
80
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5939
SELECT ALL + CAST( + ( AVG ( CAST( NULL AS DECIMAL ) ) ) AS SIGNED ) AS col1, + 90
----
NULL
90

skipif mysql # not compatible
query II rowsort label-5939
SELECT ALL + CAST ( + ( AVG ( CAST ( NULL AS REAL ) ) ) AS INTEGER ) AS col1, + 90
----
NULL
90

query I rowsort
SELECT + 16 - ( + 34 ) AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT DISTINCT + - 67 * + - 36 + + 92 - + ( 51 ) DIV + 95 AS col2
----
2504

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT + - 67 * + - 36 + + 92 - + ( 51 ) / + 95 AS col2
----
2504

query I rowsort
SELECT DISTINCT - ( + 55 )
----
-55

query II rowsort
SELECT ALL - - 78 AS col2, 48 col2
----
78
48

query I rowsort
SELECT ALL - - 2 * + + ( + 27 ) * - 73 * + 53 - - 54 AS col1
----
-208872

query I rowsort
SELECT DISTINCT - COALESCE ( + 75, ( + + 87 ), + 70 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT + - 29 * COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + - 29 * COUNT ( * )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT ALL - CAST( 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - CAST ( 88 AS INTEGER ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT MIN( DISTINCT 80 )
----
80

skipif mysql # not compatible
query I rowsort label-5948
SELECT MIN ( DISTINCT 80 )
----
80

query I rowsort
SELECT + 67 * + 56
----
3752

query I rowsort
SELECT + 84 + + 35 AS col0
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5951
SELECT + SUM( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5951
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 7 * 86
----
602

query I rowsort
SELECT ALL 42 * - 33
----
-1386

query I rowsort
SELECT DISTINCT 1 * 54
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT + MIN( 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5955
SELECT + MIN ( 68 ) AS col1
----
68

query I rowsort
SELECT DISTINCT 71 * + ( 13 )
----
923

query I rowsort
SELECT + 1 * 12
----
12

query I rowsort
SELECT ALL 6 * + 76
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT 53 * - + COUNT( * ) - 8 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5959
SELECT 53 * - + COUNT ( * ) - 8 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT COUNT( DISTINCT - + ( - 93 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5960
SELECT COUNT ( DISTINCT - + ( - 93 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5961
SELECT ALL 59 + - COALESCE ( 93, - 1 * CAST( 40 AS SIGNED ), SUM( - 35 ) * 15, - COALESCE ( + COUNT( * ), - 88 ) ) * - 98
----
9173

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL 59 + - COALESCE ( 93, - 1 * CAST ( 40 AS INTEGER ), SUM ( - 35 ) * 15, - COALESCE ( + COUNT ( * ), - 88 ) ) * - 98
----
9173

query I rowsort
SELECT + 65 + + 53
----
118

onlyif mysql # DIV for integer division: 
query II rowsort label-5963
SELECT + + 12 - + 51, - 7 DIV - - 24 AS col0
----
-39
0

skipif mysql # not compatible
query II rowsort label-5963
SELECT + + 12 - + 51, - 7 / - - 24 AS col0
----
-39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT ALL - COUNT( * ) * + 72 * - 13
----
936

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL - COUNT ( * ) * + 72 * - 13
----
936

query I rowsort
SELECT + + 62 + + 2 * - - 85 AS col1
----
232

query I rowsort
SELECT ALL + 57 + - NULLIF ( 88, + ( - 97 ) ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT - + ( SUM( 14 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-5967
SELECT - + ( SUM ( 14 ) )
----
-14

query I rowsort
SELECT + - CASE - NULLIF ( - - 22, 33 + - - 44 ) WHEN 56 THEN + - 51 - - - 97 WHEN - 2 + - ( + - 41 ) * - 72 THEN NULL END + - 92 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT ALL 26 * - 31 * - - 95 * + NULLIF ( - - NULLIF ( + 35, 67 ), 63 / - - ( 24 ) * - 91 - - 31 * COUNT( * ) * + 86 )
----
-2679950

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL 26 * - 31 * - - 95 * + NULLIF ( - - NULLIF ( + 35, 67 ), 63 / - - ( 24 ) * - 91 - - 31 * COUNT ( * ) * + 86 )
----
-2679950

query I rowsort
SELECT + 0 + - + 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT - COUNT( DISTINCT - 82 ) - + + 20 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-5971
SELECT - COUNT ( DISTINCT - 82 ) - + + 20 AS col1
----
-21

query I rowsort
SELECT + 14 + - 26 col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT ALL - 16 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL - 16 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + 9, - + 33 + - - 63 ) * - 91 + - 97
----
-916

query I rowsort
SELECT ALL + 5 * 55
----
275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5976
SELECT DISTINCT - ( - COUNT( * ) ) DIV - 31 * 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - ( - COUNT ( * ) ) / - 31 * 73 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( - - 99, - 97 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT DISTINCT 15 - - 43 + - - ( - COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT 15 - - 43 + - - ( - COUNT ( * ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ALL - + CASE - 72 WHEN + COUNT( * ) THEN 20 WHEN 40 THEN NULL END * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL - + CASE - 72 WHEN + COUNT ( * ) THEN 20 WHEN 40 THEN NULL END * 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT + ( ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT + ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5981
SELECT - 25 DIV - + CAST( - 14 AS SIGNED ) + 76 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5981
SELECT - 25 / - + CAST ( - 14 AS INTEGER ) + 76 AS col2
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5982
SELECT - 61 DIV + - ( + - 91 ) AS col2, ( 97 ) DIV - 22 AS col1
----
0
-4

skipif mysql # not compatible
query II rowsort label-5982
SELECT - 61 / + - ( + - 91 ) AS col2, ( 97 ) / - 22 AS col1
----
0
-4

query I rowsort
SELECT ALL - ( + 39 ) * + - 80 * + - 48 AS col2
----
-149760

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT - 79 + + COALESCE ( 45, - 46 * + 12 + - SUM( ALL - 63 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-5984
SELECT - 79 + + COALESCE ( 45, - 46 * + 12 + - SUM ( ALL - 63 ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT + SUM( ALL 76 )
----
76

skipif mysql # not compatible
query I rowsort label-5985
SELECT + SUM ( ALL 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT - 43 * - + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5986
SELECT - 43 * - + COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL - 21 * + 58 * + COUNT( DISTINCT + 34 )
----
-1218

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - 21 * + 58 * + COUNT ( DISTINCT + 34 )
----
-1218

query I rowsort
SELECT ALL + NULLIF ( 41, - ( + 67 ) )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL + MAX( DISTINCT + - ( + 32 ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL + MAX ( DISTINCT + - ( + 32 ) ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT + 81 * - COUNT( * ) * - 94 + + 74 AS col2
----
7688

skipif mysql # not compatible
query I rowsort label-5990
SELECT + 81 * - COUNT ( * ) * - 94 + + 74 AS col2
----
7688

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT 57 DIV - - 97 + 58 - - 84 DIV ( ( + + 11 ) ) * + - 23
----
-103

skipif mysql # not compatible
query I rowsort label-5991
SELECT 57 / - - 97 + 58 - - 84 / ( ( + + 11 ) ) * + - 23
----
-103

query I rowsort
SELECT ALL - 21 * - 53 AS col2
----
1113

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - COALESCE ( + 88, - + ( + 84 ) / - 8 + + 99 + 12 * COUNT( * ) + + - 44 + 78 + 21 + NULLIF ( + 46, 93 * 10 ) ) + - CASE ( 5 ) WHEN + + COALESCE ( + 47, + 37 + + COALESCE ( + COUNT( - ( - 25 ) ), + ( + 0 ) + + 18 + + 22 - MAX( DISTINCT - 45 ), + - 51 + - 50 ) ) * COUNT( * ) THEN 56 * ( + 88 ) * + 24 WHEN + + 29 THEN NULL END * 53 + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT - COALESCE ( + 88, - + ( + 84 ) / - 8 + + 99 + 12 * COUNT ( * ) + + - 44 + 78 + 21 + NULLIF ( + 46, 93 * 10 ) ) + - CASE ( 5 ) WHEN + + COALESCE ( + 47, + 37 + + COALESCE ( + COUNT ( - ( - 25 ) ), + ( + 0 ) + + 18 + + 22 - MAX ( DISTINCT - 45 ), + - 51 + - 50 ) ) * COUNT ( * ) THEN 56 * ( + 88 ) * + 24 WHEN + + 29 THEN NULL END * 53 + + 85
----
NULL

query I rowsort
SELECT - 18 * + 51 + - 78 - 23
----
-1019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT + 95 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT + 95 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5996
SELECT ALL 17 * - COUNT( * ) DIV CAST( + + 98 AS SIGNED ) + ( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL 17 * - COUNT ( * ) / CAST ( + + 98 AS INTEGER ) + ( 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT - CASE 7 WHEN - + AVG ( ALL - - 98 ) THEN 75 + + 66 END + COUNT( * ) + ( - 17 ) + - 80 / - 9 / - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5997
SELECT - CASE 7 WHEN - + AVG ( ALL - - 98 ) THEN 75 + + 66 END + COUNT ( * ) + ( - 17 ) + - 80 / - 9 / - - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT - COUNT( * ) * - + MAX( + 47 ) * - 57 + 81 AS col1
----
-2598

skipif mysql # not compatible
query I rowsort label-5998
SELECT - COUNT ( * ) * - + MAX ( + 47 ) * - 57 + 81 AS col1
----
-2598

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT - 41 DIV 16
----
-2

skipif mysql # not compatible
query I rowsort label-5999
SELECT - 41 / 16
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT ALL MIN( + 79 ) * + + 47 + + + 58 AS col2
----
3771

skipif mysql # not compatible
query I rowsort label-6000
SELECT ALL MIN ( + 79 ) * + + 47 + + + 58 AS col2
----
3771

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT DISTINCT - + 68 DIV + + 36 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT - + 68 / + + 36 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6002
SELECT ALL 5 * - - 72 + 28, + CAST( + + 73 AS SIGNED ) + + 35 AS col2
----
388
108

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL 5 * - - 72 + 28, + CAST ( + + 73 AS INTEGER ) + + 35 AS col2
----
388
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT + - 41 + + ( - COUNT( * ) ) * 4 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6003
SELECT + - 41 + + ( - COUNT ( * ) ) * 4 AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6004
SELECT - + CAST( - + 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6004
SELECT - + CAST ( - + 46 AS INTEGER ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6005
SELECT - + 81 col0, - CAST( NULL AS SIGNED ) * + 16
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-6005
SELECT - + 81 col0, - CAST ( NULL AS INTEGER ) * + 16
----
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT SUM( DISTINCT - 0 ) * - 35 * + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT SUM ( DISTINCT - 0 ) * - 35 * + 95 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6007
SELECT - 71 DIV - 96 * - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6007
SELECT - 71 / - 96 * - 71 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6008
SELECT + 84 * - 79 * + 56, COUNT( * ) + + - 80 DIV 45 + COUNT( * ) + 38 - 26 + - COUNT( * ) + - 21 * 31 AS col2
----
-371616
-639

skipif mysql # not compatible
query II rowsort label-6008
SELECT + 84 * - 79 * + 56, COUNT ( * ) + + - 80 / 45 + COUNT ( * ) + 38 - 26 + - COUNT ( * ) + - 21 * 31 AS col2
----
-371616
-639

query I rowsort
SELECT + 54 + 64 AS col1
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6010
SELECT DISTINCT + CAST( 10 AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT + CAST ( 10 AS INTEGER ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL - 45 - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL - 45 - COUNT ( * )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6012
SELECT ALL CAST( 53 AS SIGNED ) * NULLIF ( + 61, 14 ) AS col2, 6
----
3233
6

skipif mysql # not compatible
query II rowsort label-6012
SELECT ALL CAST ( 53 AS INTEGER ) * NULLIF ( + 61, 14 ) AS col2, 6
----
3233
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6013
SELECT DISTINCT 10 AS col2, 1 + + + 32 + 14 DIV - 96 * 55 * 63 * + ( + + MIN( + 18 ) )
----
10
33

skipif mysql # not compatible
query II rowsort label-6013
SELECT DISTINCT 10 AS col2, 1 + + + 32 + 14 / - 96 * 55 * 63 * + ( + + MIN ( + 18 ) )
----
10
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT + COUNT( * ) + - COALESCE ( 34, - + COUNT( * ), + + 81 + + ( + 19 ) * - 30 * + - 24 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6014
SELECT + COUNT ( * ) + - COALESCE ( 34, - + COUNT ( * ), + + 81 + + ( + 19 ) * - 30 * + - 24 ) AS col1
----
-33

query I rowsort
SELECT - ( - 27 ) * + + 34 AS col1
----
918

query I rowsort
SELECT - 57 * - - ( - 37 )
----
2109

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ( COUNT( * ) ) - 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6017
SELECT ( COUNT ( * ) ) - 64 AS col2
----
-63

query II rowsort
SELECT ALL - 11 col1, 25 + + 14 AS col1
----
-11
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT 66 * + 56 AS col0, COUNT( * ) * + - 74 AS col2
----
3696
-74

skipif mysql # not compatible
query II rowsort label-6019
SELECT 66 * + 56 AS col0, COUNT ( * ) * + - 74 AS col2
----
3696
-74

query II rowsort
SELECT ALL - 5 AS col2, + 21 col1
----
-5
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT 40 * + COUNT( DISTINCT - 12 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6021
SELECT 40 * + COUNT ( DISTINCT - 12 ) AS col2
----
40

query II rowsort
SELECT + 68 AS col0, - 37
----
68
-37

query I rowsort
SELECT ( 6 ) * 28 AS col2
----
168

query I rowsort
SELECT 91 * + 74 * + 41 AS col2
----
276094

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT 65 * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6025
SELECT 65 * + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL - 90 + + COUNT( * ) * + 54 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL - 90 + + COUNT ( * ) * + 54 AS col2
----
-36

query I rowsort
SELECT ALL + 27 + + 73 AS col1
----
100

query I rowsort
SELECT + NULLIF ( 31, - 23 / + 67 * 77 ) * + - 2 - 84
----
-146

query I rowsort
SELECT ALL - 0 * - - COALESCE ( 97, - 98 ) * 39
----
0

query I rowsort
SELECT DISTINCT + 45 + - - 16 col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6031
SELECT + 89 col2, 40 + - + CAST( NULL AS SIGNED ) + + 31 AS col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-6031
SELECT + 89 col2, 40 + - + CAST ( NULL AS INTEGER ) + + 31 AS col2
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT + MAX( DISTINCT - 11 ) + + 43
----
32

skipif mysql # not compatible
query I rowsort label-6032
SELECT + MAX ( DISTINCT - 11 ) + + 43
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT COUNT( * ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6033
SELECT COUNT ( * ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT COALESCE ( + COUNT( - - 56 ), - 73 ) + 98
----
99

skipif mysql # not compatible
query I rowsort label-6034
SELECT COALESCE ( + COUNT ( - - 56 ), - 73 ) + 98
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT + CAST( NULL AS SIGNED ) * + + 77 / - CAST( + 94 AS SIGNED ) / + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT + CAST ( NULL AS INTEGER ) * + + 77 / - CAST ( + 94 AS INTEGER ) / + 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT ALL + 49 / - + ( + + 74 ) * + 71 * - ( - CAST( NULL AS SIGNED ) ) / + 16 + COUNT( * ) + 9 * - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL + 49 / - + ( + + 74 ) * + 71 * - ( - CAST ( NULL AS INTEGER ) ) / + 16 + COUNT ( * ) + 9 * - 3 AS col2
----
NULL

query I rowsort
SELECT + 78 * 30 * + + 72 + + 23 col1
----
168503

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT 88 + + 66 DIV - - 45 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6038
SELECT 88 + + 66 / - - 45 AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT ALL + + 98 DIV + 47 + - + 94 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL + + 98 / + 47 + - + 94 AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6040
SELECT - 5 - + NULLIF ( 71, - 50 + - 68 + - NULLIF ( + - ( - COALESCE ( - 35, - - 31 * + + 77, + COUNT( * ) * + ( + 22 ) * - + 35 ) ), - 64 ) + CAST( NULL AS DECIMAL ) * + 14 * - 88 ) + + 85 DIV + 47
----
-75

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 5 - + NULLIF ( 71, - 50 + - 68 + - NULLIF ( + - ( - COALESCE ( - 35, - - 31 * + + 77, + COUNT ( * ) * + ( + 22 ) * - + 35 ) ), - 64 ) + CAST ( NULL AS REAL ) * + 14 * - 88 ) + + 85 / + 47
----
-75

query I rowsort
SELECT ALL 44 * + + 33
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT 11 + + + 50 + - + COUNT( * ) + + MAX( 21 ) * 37 * + ( - 50 ) + - 65
----
-38855

skipif mysql # not compatible
query I rowsort label-6042
SELECT 11 + + + 50 + - + COUNT ( * ) + + MAX ( 21 ) * 37 * + ( - 50 ) + - 65
----
-38855

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT 57 + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-6043
SELECT 57 + - COUNT ( * )
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-6044
SELECT - 71 DIV + 82 AS col1, + 67 * + + 49
----
0
3283

skipif mysql # not compatible
query II rowsort label-6044
SELECT - 71 / + 82 AS col1, + 67 * + + 49
----
0
3283

query I rowsort
SELECT ALL + NULLIF ( - ( + 42 ), - 51 * 90 + + 19 * + 66 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT ALL 50 DIV + + 13 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL 50 / + + 13 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT CASE + 84 WHEN + - AVG ( ALL + 94 ) - - 22 THEN NULL WHEN 66 THEN - + 24 * + + 14 + + + 42 + ( + 32 ) + COUNT( * ) + - 55 / - 87 + - 15 ELSE NULL END + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT CASE + 84 WHEN + - AVG ( ALL + 94 ) - - 22 THEN NULL WHEN 66 THEN - + 24 * + + 14 + + + 42 + ( + 32 ) + COUNT ( * ) + - 55 / - 87 + - 15 ELSE NULL END + 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6048
SELECT + COUNT( ALL - ( CAST( + + 6 AS SIGNED ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6048
SELECT + COUNT ( ALL - ( CAST ( + + 6 AS INTEGER ) ) ) col1
----
1

query I rowsort
SELECT 1 * + + 62 * 83
----
5146

query I rowsort
SELECT DISTINCT 89 * - + 40 AS col2
----
-3560

query II rowsort
SELECT ALL 48 + + 15 AS col2, - 48 AS col2
----
63
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT + COUNT( + CASE 40 WHEN + 29 * ( + - 54 ) / 84 THEN NULL ELSE + 4 END ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6052
SELECT + COUNT ( + CASE 40 WHEN + 29 * ( + - 54 ) / 84 THEN NULL ELSE + 4 END ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL + 31 + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL + 31 + + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6054
SELECT + COUNT( * ) * SUM( ALL - + COALESCE ( + 59, - + 3 ) ) + + + 9 DIV - + 37 * 19 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6054
SELECT + COUNT ( * ) * SUM ( ALL - + COALESCE ( + 59, - + 3 ) ) + + + 9 / - + 37 * 19 AS col1
----
-59

query II rowsort
SELECT DISTINCT 41 + - 69, 20 AS col0
----
-28
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT COUNT( * ) + 21 + 2 * + COUNT( * ) + + 77
----
101

skipif mysql # not compatible
query I rowsort label-6056
SELECT COUNT ( * ) + 21 + 2 * + COUNT ( * ) + + 77
----
101

query I rowsort
SELECT + 46 * - ( + - 54 ) + + - 61
----
2423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT CAST( 87 AS SIGNED ) * - 42 AS col2
----
-3654

skipif mysql # not compatible
query I rowsort label-6058
SELECT CAST ( 87 AS INTEGER ) * - 42 AS col2
----
-3654

query II rowsort
SELECT 23 * 70 AS col2, 66 AS col2
----
1610
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + 33 * - 34 + + 69 * + 13 * + 53 + COUNT( * ) AS col1
----
46420

skipif mysql # not compatible
query I rowsort label-6060
SELECT + 33 * - 34 + + 69 * + 13 * + 53 + COUNT ( * ) AS col1
----
46420

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT - SUM( + 80 ) * - 97
----
7760

skipif mysql # not compatible
query I rowsort label-6061
SELECT - SUM ( + 80 ) * - 97
----
7760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT + 87 * COUNT( - 25 ) + 15 + COUNT( * ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + 87 * COUNT ( - 25 ) + 15 + COUNT ( * ) AS col2
----
103

query I rowsort
SELECT ALL - - ( - 81 )
----
-81

query II rowsort
SELECT - 3 + + + 84 col0, 89 AS col2
----
81
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6066
SELECT + + 37 * 22 + + - 83 / + CAST( - ( + 7 ) AS SIGNED ) - - 49 + + SUM( + 96 ) * 95 * - - 46 * - COUNT( ALL + 66 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT + + 37 * 22 + + - 83 / + CAST ( - ( + 7 ) AS INTEGER ) - - 49 + + SUM ( + 96 ) * 95 * - - 46 * - COUNT ( ALL + 66 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT - + 32 * COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-6067
SELECT - + 32 * COUNT ( * )
----
-32

query I rowsort
SELECT DISTINCT + + 20 * - + ( - - 10 )
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT - - 98 * + COALESCE ( - 11, - + MIN( DISTINCT + + 73 ) ) * SUM( 43 ) + - MAX( DISTINCT + 6 )
----
-46360

skipif mysql # not compatible
query I rowsort label-6069
SELECT - - 98 * + COALESCE ( - 11, - + MIN ( DISTINCT + + 73 ) ) * SUM ( 43 ) + - MAX ( DISTINCT + 6 )
----
-46360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6070
SELECT - + SUM( DISTINCT - + 46 ) col1, - 70 * 13 * 71 DIV 79 DIV - 50 - - - 17 + + 92 * - 23 + 93 * + ( + COUNT( * ) )
----
46
-2024

skipif mysql # not compatible
query II rowsort label-6070
SELECT - + SUM ( DISTINCT - + 46 ) col1, - 70 * 13 * 71 / 79 / - 50 - - - 17 + + 92 * - 23 + 93 * + ( + COUNT ( * ) )
----
46
-2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6071
SELECT - CAST( - CAST( + 6 AS SIGNED ) AS SIGNED ) * - 79
----
-474

skipif mysql # not compatible
query I rowsort label-6071
SELECT - CAST ( - CAST ( + 6 AS INTEGER ) AS INTEGER ) * - 79
----
-474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6072
SELECT + - 7 + + + COUNT( + - 27 ) - + ( - + 41 ) - - 41 DIV 45 * ( + 50 ) + CAST( - + ( + MIN( ALL ( 90 ) ) ) AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-6072
SELECT + - 7 + + + COUNT ( + - 27 ) - + ( - + 41 ) - - 41 / 45 * ( + 50 ) + CAST ( - + ( + MIN ( ALL ( 90 ) ) ) AS INTEGER )
----
-55

query I rowsort
SELECT NULLIF ( - 88, 27 )
----
-88

query I rowsort
SELECT ALL - CASE - 84 WHEN + NULLIF ( 5, + + 72 * + 44 ) THEN NULL ELSE 7 END + + 11 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT ALL + + 78 + + 25 - SUM( ALL + 72 ) * - - 43
----
-2993

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL + + 78 + + 25 - SUM ( ALL + 72 ) * - - 43
----
-2993

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ALL 44 + - MAX( DISTINCT + 72 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL 44 + - MAX ( DISTINCT + 72 ) col1
----
-28

query I rowsort
SELECT ALL 2 + 15 + - 46 * - 87
----
4019

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6078
SELECT - COUNT( * ) + 59 * + + NULLIF ( + + SUM( ALL + 77 ), ( + 87 ) - + 24 ) + - CAST( - ( + + 1 ) AS SIGNED ) AS col0
----
4543

skipif mysql # not compatible
query I rowsort label-6078
SELECT - COUNT ( * ) + 59 * + + NULLIF ( + + SUM ( ALL + 77 ), ( + 87 ) - + 24 ) + - CAST ( - ( + + 1 ) AS INTEGER ) AS col0
----
4543

query II rowsort
SELECT 18, 58 * - - 89 AS col2
----
18
5162

onlyif mysql # DIV for integer division: 
query I rowsort label-6080
SELECT + 2 DIV + + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6080
SELECT + 2 / + + 79 AS col1
----
0

query I rowsort
SELECT ALL - 62 + + 94 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT - 48 - - 28 + - CASE AVG ( DISTINCT - + 42 ) WHEN COUNT( * ) THEN - 56 ELSE NULL END / + + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6082
SELECT - 48 - - 28 + - CASE AVG ( DISTINCT - + 42 ) WHEN COUNT ( * ) THEN - 56 ELSE NULL END / + + 33
----
NULL

query I rowsort
SELECT + 54 * + + 50 AS col0
----
2700

query II rowsort
SELECT - 13 col0, 81 + - 24 AS col2
----
-13
57

query I rowsort
SELECT + 72 + - COALESCE ( - 34, 1 ) - - 36 + + ( - - 58 ) * - 92 * - 30 + + + 67 col0
----
160289

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT DISTINCT 95 DIV - 2 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT 95 / - 2 AS col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6087
SELECT ALL 99 * - 68 + + 1 AS col1, + CAST( NULL AS SIGNED ) - + NULLIF ( + 89, + - 71 + + 40 - + 70 ) / 75 AS col1
----
-6731
NULL

skipif mysql # not compatible
query II rowsort label-6087
SELECT ALL 99 * - 68 + + 1 AS col1, + CAST ( NULL AS INTEGER ) - + NULLIF ( + 89, + - 71 + + 40 - + 70 ) / 75 AS col1
----
-6731
NULL

query I rowsort
SELECT ( + ( - 62 ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ( + + CASE 36 WHEN - - 56 THEN NULL WHEN 32 THEN - COALESCE ( - COUNT( * ), - - MIN( ALL 14 ), - 82 ) + - 74 + 36 WHEN - 64 THEN NULL ELSE 23 END ) col1
----
23

skipif mysql # not compatible
query I rowsort label-6089
SELECT ( + + CASE 36 WHEN - - 56 THEN NULL WHEN 32 THEN - COALESCE ( - COUNT ( * ), - - MIN ( ALL 14 ), - 82 ) + - 74 + 36 WHEN - 64 THEN NULL ELSE 23 END ) col1
----
23

query I rowsort
SELECT + NULLIF ( + ( - 20 ), - CASE - 69 WHEN - 38 THEN + 94 WHEN 27 THEN NULL END + + 39 ) AS col1
----
-20

query I rowsort
SELECT ( + - 77 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6092
SELECT CASE - 73 WHEN - - 57 THEN NULL WHEN - - 72 * - + 68 * - - 77 / - 54 THEN COUNT( * ) * - CAST( NULL AS SIGNED ) END, - 9 col0
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-6092
SELECT CASE - 73 WHEN - - 57 THEN NULL WHEN - - 72 * - + 68 * - - 77 / - 54 THEN COUNT ( * ) * - CAST ( NULL AS INTEGER ) END, - 9 col0
----
NULL
-9

query I rowsort
SELECT DISTINCT 63 * + 77 AS col1
----
4851

query I rowsort
SELECT + 51 * - 5 AS col0
----
-255

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6095
SELECT ALL COUNT( * ) * - ( 73 ) AS col1, CAST( NULL AS DECIMAL ) * 30 * + ( - + 71 ) col1
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-6095
SELECT ALL COUNT ( * ) * - ( 73 ) AS col1, CAST ( NULL AS REAL ) * 30 * + ( - + 71 ) col1
----
-73
NULL

query I rowsort
SELECT DISTINCT + + ( + 75 )
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6097
SELECT DISTINCT + - COUNT( * ) AS col1, + 64 col0
----
-1
64

skipif mysql # not compatible
query II rowsort label-6097
SELECT DISTINCT + - COUNT ( * ) AS col1, + 64 col0
----
-1
64

query I rowsort
SELECT + - 8 + + CASE + + COALESCE ( ( 0 ), - 21 ) WHEN - - 95 THEN 60 END + - 9 - 85 AS col0
----
NULL

query I rowsort
SELECT + 53 + 45 - - 50
----
148

query II rowsort
SELECT - 23 - + - 27 + 50 AS col0, - 85
----
54
-85

query I rowsort
SELECT ALL 93 * 53 AS col1
----
4929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6102
SELECT - + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6102
SELECT - + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1
----
-1
NULL

query I rowsort
SELECT + 80 + + 88 AS col0
----
168

query I rowsort
SELECT ALL - + 78 * - 75 + + ( + - ( - 5 ) )
----
5855

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT DISTINCT - MIN( 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT - MIN ( 42 )
----
-42

query I rowsort
SELECT ALL + + 43 + COALESCE ( + 8, - 75 + 29, 63 ) * + 64
----
555

query I rowsort
SELECT - NULLIF ( 28, + 46 ) + 62 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6108
SELECT ALL CAST( NULL AS SIGNED ) * - 7, + COUNT( * ) * + CASE + - COUNT( * ) WHEN - 56 THEN NULL WHEN 59 - - 43 * 20 * + 72 * - 61 THEN 61 + + - ( - 62 ) END - 61
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6108
SELECT ALL CAST ( NULL AS INTEGER ) * - 7, + COUNT ( * ) * + CASE + - COUNT ( * ) WHEN - 56 THEN NULL WHEN 59 - - 43 * 20 * + 72 * - 61 THEN 61 + + - ( - 62 ) END - 61
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT DISTINCT MIN( + 38 ) + - 14
----
24

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT MIN ( + 38 ) + - 14
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT - SUM( ALL + 41 ) + + 2 * - 41
----
-123

skipif mysql # not compatible
query I rowsort label-6110
SELECT - SUM ( ALL + 41 ) + + 2 * - 41
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6111
SELECT DISTINCT - 30 + COUNT( * ) - - - 4 DIV COUNT( * ) * - - 93 * - + 69
----
25639

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT - 30 + COUNT ( * ) - - - 4 / COUNT ( * ) * - - 93 * - + 69
----
25639

onlyif mysql # aggregate syntax: 
query II rowsort label-6112
SELECT ALL + 76 + ( - MIN( DISTINCT 86 ) ), + NULLIF ( - ( - + 17 ), - 41 * + - 83 + - 62 + - 18 + - 56 * + - 81 * + 25 + 3 ) + + 1 AS col0
----
-10
18

skipif mysql # not compatible
query II rowsort label-6112
SELECT ALL + 76 + ( - MIN ( DISTINCT 86 ) ), + NULLIF ( - ( - + 17 ), - 41 * + - 83 + - 62 + - 18 + - 56 * + - 81 * + 25 + 3 ) + + 1 AS col0
----
-10
18

query I rowsort
SELECT ALL ( - CASE - + 46 WHEN + - 34 THEN NULL WHEN + ( - - 45 ) + + 20 - + - 79 THEN 96 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL - 31 + 67 * - CAST( NULL AS SIGNED ) / CASE + + 92 WHEN + 27 - + + 95 + 16 - + MAX( - 16 ) * 18 + 13 + - ( + 6 ) + + - 93 + + + 32 * + COUNT( * ) * - - 17 * - 16 THEN - - 99 END * 61 * - SUM( DISTINCT + 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - 31 + 67 * - CAST ( NULL AS INTEGER ) / CASE + + 92 WHEN + 27 - + + 95 + 16 - + MAX ( - 16 ) * 18 + 13 + - ( + 6 ) + + - 93 + + + 32 * + COUNT ( * ) * - - 17 * - 16 THEN - - 99 END * 61 * - SUM ( DISTINCT + 75 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 16, - + 23 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-6116
SELECT - 95 + COUNT( * ) - - + COUNT( * ) * 49 AS col1, - 87 col0
----
-45
-87

skipif mysql # not compatible
query II rowsort label-6116
SELECT - 95 + COUNT ( * ) - - + COUNT ( * ) * 49 AS col1, - 87 col0
----
-45
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL - 41 DIV + 53 * - 70
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - 41 / + 53 * - 70
----
0

query I rowsort
SELECT DISTINCT ( + 76 )
----
76

query I rowsort
SELECT - 71 + - 77 col2
----
-148

query I rowsort
SELECT ALL + ( - COALESCE ( - 84, ( + 23 ) ) )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT + 26 DIV + + 89 * 51 * 56 + 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6121
SELECT + 26 / + + 89 * 51 * 56 + 8 AS col0
----
8

query I rowsort
SELECT + 65 * 79 AS col0
----
5135

query I rowsort
SELECT 32 * 67 - 0
----
2144

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT DISTINCT + COUNT( DISTINCT - 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT + COUNT ( DISTINCT - 7 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6125
SELECT ALL + CAST( + NULLIF ( + 37, - - MIN( ALL + 49 ) + - - 39 + + CASE + 88 WHEN COUNT( * ) / - 4 + - - 83 THEN NULL ELSE 45 END * - 84 * - 27 * + - MAX( + 6 ) ) AS SIGNED ) col1
----
37

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL + CAST ( + NULLIF ( + 37, - - MIN ( ALL + 49 ) + - - 39 + + CASE + 88 WHEN COUNT ( * ) / - 4 + - - 83 THEN NULL ELSE 45 END * - 84 * - 27 * + - MAX ( + 6 ) ) AS INTEGER ) col1
----
37

query I rowsort
SELECT - 21 + + 19 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT - 35 * + - 57 * CAST( + 40 AS SIGNED ) + - 30
----
79770

skipif mysql # not compatible
query I rowsort label-6127
SELECT - 35 * + - 57 * CAST ( + 40 AS INTEGER ) + - 30
----
79770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6128
SELECT ALL - ( ( - 93 ) ) / 14 + + CAST( NULL AS SIGNED ) * - - COUNT( + - 44 ) * + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL - ( ( - 93 ) ) / 14 + + CAST ( NULL AS INTEGER ) * - - COUNT ( + - 44 ) * + - 67
----
NULL

query I rowsort
SELECT 56 * - + ( - 64 ) + + + 90 + + 48 AS col1
----
3722

query I rowsort
SELECT - + 98 * + + 85 AS col1
----
-8330

query I rowsort
SELECT DISTINCT + - 97 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT COUNT( * ) + + NULLIF ( - 76, + ( + COUNT( * ) ) )
----
-75

skipif mysql # not compatible
query I rowsort label-6132
SELECT COUNT ( * ) + + NULLIF ( - 76, + ( + COUNT ( * ) ) )
----
-75

query I rowsort
SELECT 63 + + 10
----
73

query I rowsort
SELECT ALL 54 + + 90
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT + 74 * + 28 * - 12 + + - 32 + + + ( + 47 ) + + CASE + CAST( NULL AS SIGNED ) WHEN - 41 + + 52 THEN + 86 * - COUNT( * ) + - - COUNT( * ) ELSE NULL END * - COUNT( * ) * + 9 * + - 90 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT + 74 * + 28 * - 12 + + - 32 + + + ( + 47 ) + + CASE + CAST ( NULL AS INTEGER ) WHEN - 41 + + 52 THEN + 86 * - COUNT ( * ) + - - COUNT ( * ) ELSE NULL END * - COUNT ( * ) * + 9 * + - 90 * 25
----
NULL

query I rowsort
SELECT ALL 81 + 0 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6137
SELECT 42 * + - 40 + 30 + 46 AS col1, 59 * + - COUNT( * )
----
-1604
-59

skipif mysql # not compatible
query II rowsort label-6137
SELECT 42 * + - 40 + 30 + 46 AS col1, 59 * + - COUNT ( * )
----
-1604
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT ALL - 65 + - 26 DIV + 33
----
-65

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - 65 + - 26 / + 33
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + COUNT( DISTINCT - + 59 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6139
SELECT + COUNT ( DISTINCT - + 59 ) col1
----
1

query I rowsort
SELECT ALL + 85 + - - 27 + 56 + ( + 83 ) + + 21
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT COUNT( + 96 ) * + + 48
----
48

skipif mysql # not compatible
query I rowsort label-6141
SELECT COUNT ( + 96 ) * + + 48
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6142
SELECT ALL - COALESCE ( CASE + 55 WHEN - SUM( 26 ) * + + COUNT( * ) * - 92 * + 93 / + + 67 + + CASE - 84 WHEN 11 THEN - CAST( 89 AS SIGNED ) END THEN CAST( NULL AS SIGNED ) WHEN - 25 THEN + 53 END, - 71, + 18 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - COALESCE ( CASE + 55 WHEN - SUM ( 26 ) * + + COUNT ( * ) * - 92 * + 93 / + + 67 + + CASE - 84 WHEN 11 THEN - CAST ( 89 AS INTEGER ) END THEN CAST ( NULL AS INTEGER ) WHEN - 25 THEN + 53 END, - 71, + 18 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT DISTINCT COUNT( ALL 19 ) + + 65 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT COUNT ( ALL 19 ) + + 65 AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6144
SELECT SUM( DISTINCT + 26 ) DIV + ( + + SUM( DISTINCT + + 68 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6144
SELECT SUM ( DISTINCT + 26 ) / + ( + + SUM ( DISTINCT + + 68 ) ) AS col0
----
0

query I rowsort
SELECT 50 - 15
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT 19 * MIN( ALL + - 21 ) AS col1
----
-399

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT 19 * MIN ( ALL + - 21 ) AS col1
----
-399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6147
SELECT MAX( ALL 57 ) DIV - 97 + + - 58 + + 14 + + 85
----
41

skipif mysql # not compatible
query I rowsort label-6147
SELECT MAX ( ALL 57 ) / - 97 + + - 58 + + 14 + + 85
----
41

query II rowsort
SELECT DISTINCT + 99 * - - 25 * 88 AS col0, + 42 + 52 AS col1
----
217800
94

query I rowsort
SELECT ALL - 45 - - - 12
----
-57

query I rowsort
SELECT 75 * - 92 * + 79
----
-545100

query I rowsort
SELECT 29 * + 3
----
87

query II rowsort
SELECT ALL 31 AS col1, 73 AS col1
----
31
73

query I rowsort
SELECT 0 * + - 82 col2
----
0

query I rowsort
SELECT ALL - ( NULLIF ( 7, 25 * 66 + 43 * 54 ) )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6155
SELECT 19 DIV COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-6155
SELECT 19 / COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT - MIN( ALL ( + 71 ) ) * + 61 AS col2
----
-4331

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT - MIN ( ALL ( + 71 ) ) * + 61 AS col2
----
-4331

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT - SUM( ALL - ( 38 ) ) + - 6 * - 68 AS col1
----
446

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT - SUM ( ALL - ( 38 ) ) + - 6 * - 68 AS col1
----
446

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT 9 DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT 9 / - 88 AS col2
----
0

query I rowsort
SELECT 44 * - 31 AS col0
----
-1364

query I rowsort
SELECT 15 - 30 * 44
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL + COUNT( * ) + + 54
----
55

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL + COUNT ( * ) + + 54
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT 34 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-6162
SELECT 34 / 68
----
0

query I rowsort
SELECT DISTINCT - 20 * ( 88 ) AS col2
----
-1760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6164
SELECT ALL 27 + - COUNT( * ) DIV + 88 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL 27 + - COUNT ( * ) / + 88 AS col1
----
27

query I rowsort
SELECT 50 - CASE - 13 WHEN - 47 THEN NULL WHEN 2 THEN - 14 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 30 + 22 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT ALL - 76 + MIN( ALL + 29 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL - 76 + MIN ( ALL + 29 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT SUM( DISTINCT + 19 ) + + 22 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6168
SELECT SUM ( DISTINCT + 19 ) + + 22 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT 59 + + SUM( DISTINCT 48 + + 47 * + 67 ) AS col1
----
3256

skipif mysql # not compatible
query I rowsort label-6169
SELECT 59 + + SUM ( DISTINCT 48 + + 47 * + 67 ) AS col1
----
3256

query I rowsort
SELECT ALL + 13 - 79
----
-66

query I rowsort
SELECT ALL 13 - - 83
----
96

query I rowsort
SELECT ALL + 40 * 57
----
2280

query I rowsort
SELECT 94 + 1 col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6174
SELECT COALESCE ( - COUNT( * ), - 27 DIV + 62 ) + + 31
----
30

skipif mysql # not compatible
query I rowsort label-6174
SELECT COALESCE ( - COUNT ( * ), - 27 / + 62 ) + + 31
----
30

query I rowsort
SELECT ALL 77 - 77 AS col2
----
0

query I rowsort
SELECT 13 + 12 * + 36 AS col1
----
445

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT 84 * - COUNT( * ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-6177
SELECT 84 * - COUNT ( * ) col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT - COUNT( 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6178
SELECT - COUNT ( 36 ) AS col1
----
-1

query I rowsort
SELECT ALL + 51 * + 61
----
3111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6180
SELECT DISTINCT - CASE - COUNT( * ) WHEN 22 THEN NULLIF ( COALESCE ( + 14, + 32 + NULLIF ( 41 + 29 * 71, + 44 - + COUNT( * ) * ( - 56 * 69 - + 57 ) ) * COUNT( * ) ), + 33 ) * 58 ELSE MIN( DISTINCT + 66 ) + - 13 * MIN( ALL - 94 DIV 55 - 29 ) END * 10 AS col1
----
-4560

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT - CASE - COUNT ( * ) WHEN 22 THEN NULLIF ( COALESCE ( + 14, + 32 + NULLIF ( 41 + 29 * 71, + 44 - + COUNT ( * ) * ( - 56 * 69 - + 57 ) ) * COUNT ( * ) ), + 33 ) * 58 ELSE MIN ( DISTINCT + 66 ) + - 13 * MIN ( ALL - 94 / 55 - 29 ) END * 10 AS col1
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT + MAX( ALL NULLIF ( - 95, - 38 * 77 ) ) + + ( + 4 )
----
-91

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + MAX ( ALL NULLIF ( - 95, - 38 * 77 ) ) + + ( + 4 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT + 31 + - ( COUNT( 51 ) )
----
30

skipif mysql # not compatible
query I rowsort label-6182
SELECT + 31 + - ( COUNT ( 51 ) )
----
30

query I rowsort
SELECT - 40 * + ( - 22 + 96 )
----
-2960

query I rowsort
SELECT ALL + 59 + - 15
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT - - COUNT( ALL - CASE COALESCE ( - 34, + 30 + - 21 * - 80 ) WHEN - 91 * 75 THEN - 72 * + NULLIF ( 50, 81 + + 25 * + 58 ) WHEN + 81 THEN NULL END ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6185
SELECT - - COUNT ( ALL - CASE COALESCE ( - 34, + 30 + - 21 * - 80 ) WHEN - 91 * 75 THEN - 72 * + NULLIF ( 50, 81 + + 25 * + 58 ) WHEN + 81 THEN NULL END ) col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6186
SELECT - + CAST( 45 AS SIGNED ) DIV - 66 + 54 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-6186
SELECT - + CAST ( 45 AS INTEGER ) / - 66 + 54 / 78
----
0

query I rowsort
SELECT ALL + 7 * - CASE + AVG ( 89 ) + 32 WHEN - 85 * - 13 THEN NULL WHEN + ( 84 ) * 34 THEN + 5 * 6 WHEN - 9 - 73 * 45 THEN NULL ELSE + 48 END + - ( ( - ( 29 ) ) + + 82 ) AS col2
----
-389

query I rowsort
SELECT + + 4 + - 25 AS col0
----
-21

query I rowsort
SELECT 29 * 20 + - 11 AS col0
----
569

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT + COUNT( 75 )
----
1

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT + COUNT ( 75 )
----
1

query I rowsort
SELECT ALL - 78 * 62 + 18 col0
----
-4818

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT DISTINCT + COUNT( * ) * + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT + COUNT ( * ) * + 40 AS col2
----
40

query I rowsort
SELECT DISTINCT + 35 * + 1 + + 14 AS col2
----
49

query I rowsort
SELECT - 69 + 51 AS col0
----
-18

query I rowsort
SELECT ALL - 92 * 69 + ( - 66 + 23 * + 96 ) AS col1
----
-4206

query I rowsort
SELECT + - 77 * 69
----
-5313

query I rowsort
SELECT + 40 * 36 + + 51
----
1491

query I rowsort
SELECT + - ( ( + 5 ) ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT ALL + NULLIF ( COUNT( * ), 91 * 56 ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + NULLIF ( COUNT ( * ), 91 * 56 ) * - 96
----
-96

query I rowsort
SELECT + - 63 * - 37 + - 76 AS col0
----
2255

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL 15 * + 28 - COUNT( * ) * 35 AS col0
----
385

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL 15 * + 28 - COUNT ( * ) * 35 AS col0
----
385

query I rowsort
SELECT ALL + ( - + ( 97 ) ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT - CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6204
SELECT DISTINCT COALESCE ( - 65, 74 ) DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT COALESCE ( - 65, 74 ) / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT MIN( + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6205
SELECT MIN ( + 31 ) AS col2
----
31

query I rowsort
SELECT + 66 * 47
----
3102

query I rowsort
SELECT - NULLIF ( ( - 17 ), + 31 + - 56 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL COALESCE ( + 26, 44 * + MAX( DISTINCT + 24 ), - 39 ) * + 97
----
2522

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL COALESCE ( + 26, 44 * + MAX ( DISTINCT + 24 ), - 39 ) * + 97
----
2522

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT - 30 * 19 DIV ( + 53 )
----
-10

skipif mysql # not compatible
query I rowsort label-6209
SELECT - 30 * 19 / ( + 53 )
----
-10

query I rowsort
SELECT ALL + 10 * 10
----
100

query I rowsort
SELECT ALL 17 + - COALESCE ( 3, ( + 73 ) ) AS col0
----
14

query I rowsort
SELECT + 23 + 43 * 45
----
1958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT DISTINCT - 37 + - NULLIF ( 18, + NULLIF ( - 22, 17 ) ) + 7 * 61 * - CAST( - 3 AS SIGNED ) AS col0
----
1226

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT - 37 + - NULLIF ( 18, + NULLIF ( - 22, 17 ) ) + 7 * 61 * - CAST ( - 3 AS INTEGER ) AS col0
----
1226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6214
SELECT - 94 DIV - MIN( + 59 ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6214
SELECT - 94 / - MIN ( + 59 ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT ALL - CAST( NULL AS SIGNED ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL - CAST ( NULL AS INTEGER ) + 79
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6216
SELECT ALL 21 / CAST( NULL AS DECIMAL ) * 65 + + 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL 21 / CAST ( NULL AS REAL ) * 65 + + 73 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT + 90 DIV - 63 + + 23 DIV + 91
----
-1

skipif mysql # not compatible
query I rowsort label-6217
SELECT + 90 / - 63 + + 23 / + 91
----
-1

query I rowsort
SELECT + 60 + + 7 + + 37 * 72
----
2731

query I rowsort
SELECT DISTINCT + CASE - 96 WHEN - 90 * - 72 THEN NULL WHEN 19 THEN + 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL 48 * + - 14 * MIN( - 28 ) + 57 AS col2
----
18873

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL 48 * + - 14 * MIN ( - 28 ) + 57 AS col2
----
18873

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT ALL 87 DIV + + 12
----
7

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL 87 / + + 12
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT DISTINCT + - 2 / - - CAST( NULL AS SIGNED ) * 35 + + COALESCE ( 81, + 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT + - 2 / - - CAST ( NULL AS INTEGER ) * 35 + + COALESCE ( 81, + 96 )
----
NULL

query I rowsort
SELECT DISTINCT + 56 * - 28 AS col1
----
-1568

query I rowsort
SELECT ALL + 98 * + 22 AS col1
----
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT ALL - ( - - 41 ) DIV - 91 + 5 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - ( - - 41 ) / - 91 + 5 AS col2
----
5

query I rowsort
SELECT ( + 2 ) AS col0
----
2

query I rowsort
SELECT + ( + 31 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6228
SELECT - CASE + 61 WHEN - 21 THEN + 42 * - 46 + - COUNT( * ) WHEN - 33 * COUNT( * ) THEN - 37 * 48 - 95 ELSE CAST( 90 AS SIGNED ) * 96 END * - 94
----
812160

skipif mysql # not compatible
query I rowsort label-6228
SELECT - CASE + 61 WHEN - 21 THEN + 42 * - 46 + - COUNT ( * ) WHEN - 33 * COUNT ( * ) THEN - 37 * 48 - 95 ELSE CAST ( 90 AS INTEGER ) * 96 END * - 94
----
812160

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT ALL + + SUM( + - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + + SUM ( + - 18 )
----
-18

query I rowsort
SELECT DISTINCT + ( + 84 )
----
84

query I rowsort
SELECT ALL CASE + 42 WHEN + 35 * 34 THEN 36 END / - 36 - - 98 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6232
SELECT + + COUNT( DISTINCT - CASE - 90 WHEN 88 THEN 70 + 81 WHEN - CAST( - 93 AS DECIMAL ) THEN NULL END ) * 96
----
0

skipif mysql # not compatible
query I rowsort label-6232
SELECT + + COUNT ( DISTINCT - CASE - 90 WHEN 88 THEN 70 + 81 WHEN - CAST ( - 93 AS REAL ) THEN NULL END ) * 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT - COUNT( * ) - + 84 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6233
SELECT - COUNT ( * ) - + 84 AS col2
----
-85

query I rowsort
SELECT ALL + NULLIF ( 94, + 98 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + MAX( ALL 85 ) + + + 67
----
152

skipif mysql # not compatible
query I rowsort label-6235
SELECT + MAX ( ALL 85 ) + + + 67
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT + CAST( - ( + 33 ) AS SIGNED ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6236
SELECT + CAST ( - ( + 33 ) AS INTEGER ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6237
SELECT + 51, - 47 * - 10 + CAST( NULL AS SIGNED ) AS col2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-6237
SELECT + 51, - 47 * - 10 + CAST ( NULL AS INTEGER ) AS col2
----
51
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6238
SELECT DISTINCT + COUNT( * ) AS col2, + 76
----
1
76

skipif mysql # not compatible
query II rowsort label-6238
SELECT DISTINCT + COUNT ( * ) AS col2, + 76
----
1
76

query I rowsort
SELECT + 60 + - - 17
----
77

query I rowsort
SELECT ALL + 23 * - + 94
----
-2162

query I rowsort
SELECT - COALESCE ( + 79, - 93 ) + 99
----
20

query I rowsort
SELECT - 42 - - + ( - 22 ) AS col1
----
-64

query I rowsort
SELECT DISTINCT 1 * + - 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT DISTINCT 60 * + CASE COUNT( * ) WHEN 11 * - 18 THEN 70 ELSE NULL END + - 84 * 90 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT 60 * + CASE COUNT ( * ) WHEN 11 * - 18 THEN 70 ELSE NULL END + - 84 * 90 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6245
SELECT DISTINCT CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 34 * - + 2 + + - 70 AS col0
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT ALL - CAST( NULL AS SIGNED ) + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL - CAST ( NULL AS INTEGER ) + + 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT COUNT( * ) + + 65
----
66

skipif mysql # not compatible
query I rowsort label-6248
SELECT COUNT ( * ) + + 65
----
66

query II rowsort
SELECT - 82, - 59 + - - 38 AS col1
----
-82
-21

query I rowsort
SELECT ALL + ( - 80 ) + - 41 + + 69 * + 33
----
2156

query I rowsort
SELECT - ( - 25 ) + + 81
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT 86 * - - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6252
SELECT 86 * - - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL + MAX( DISTINCT - 30 ) + + SUM( ALL 50 ) * COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL + MAX ( DISTINCT - 30 ) + + SUM ( ALL 50 ) * COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT COUNT( * ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT COUNT ( * ) * + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT DISTINCT - 49 + + 22 + ( - 91 ) + + 84 * COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT - 49 + + 22 + ( - 91 ) + + 84 * COUNT ( * )
----
-34

query I rowsort
SELECT + 24 + - 11 + + + 61
----
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6257
SELECT ALL + CAST( + - CAST( - 65 AS DECIMAL ) AS SIGNED ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + CAST ( + - CAST ( - 65 AS REAL ) AS INTEGER ) AS col0
----
65

query II rowsort
SELECT - + 32 AS col1, - 51
----
-32
-51

query II rowsort
SELECT ALL - 75, + 76 AS col2
----
-75
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6260
SELECT 65 + - NULLIF ( + - 79, 54 * + SUM( DISTINCT 46 ) + + CAST( AVG ( + 3 ) AS SIGNED ) )
----
144

skipif mysql # not compatible
query I rowsort label-6260
SELECT 65 + - NULLIF ( + - 79, 54 * + SUM ( DISTINCT 46 ) + + CAST ( AVG ( + 3 ) AS INTEGER ) )
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT + ( + + 28 ) DIV 71 - + 92
----
-92

skipif mysql # not compatible
query I rowsort label-6261
SELECT + ( + + 28 ) / 71 - + 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT - MIN( ALL - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT - MIN ( ALL - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT - + SUM( - 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT - + SUM ( - 78 ) AS col0
----
78

query II rowsort
SELECT ALL - 14 AS col1, + 10 + - 62 AS col1
----
-14
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT DISTINCT 5 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT 5 / - 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6266
SELECT 88 / - + NULLIF ( + - CAST( NULL AS SIGNED ), + + AVG ( 48 ) / + 77 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6266
SELECT 88 / - + NULLIF ( + - CAST ( NULL AS INTEGER ), + + AVG ( 48 ) / + 77 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT 65 DIV - 1 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-6267
SELECT 65 / - 1 AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT CAST( NULL AS SIGNED ) + + + CASE + 29 WHEN - 53 + 92 THEN 19 WHEN + 53 + + COUNT( * ) THEN NULL ELSE 49 - + 16 END + 66 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT CAST ( NULL AS INTEGER ) + + + CASE + 29 WHEN - 53 + 92 THEN 19 WHEN + 53 + + COUNT ( * ) THEN NULL ELSE 49 - + 16 END + 66 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT CASE + - COUNT( ALL + 87 ) WHEN - + 68 + CASE 38 WHEN - 21 + + SUM( ALL 94 ) THEN 60 END * 32 THEN 34 WHEN + 6 THEN + 23 + + 67 * - COUNT( - 13 ) ELSE COUNT( 23 ) * 7 END * 71
----
497

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT CASE + - COUNT ( ALL + 87 ) WHEN - + 68 + CASE 38 WHEN - 21 + + SUM ( ALL 94 ) THEN 60 END * 32 THEN 34 WHEN + 6 THEN + 23 + + 67 * - COUNT ( - 13 ) ELSE COUNT ( 23 ) * 7 END * 71
----
497

query I rowsort
SELECT ALL 54 + 20 + 35 * + ( 94 )
----
3364

query I rowsort
SELECT 23 * 58 * + - 9
----
-12006

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT DISTINCT MAX( ALL 83 ) + - ( 17 ) + 65
----
131

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT MAX ( ALL 83 ) + - ( 17 ) + 65
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT 0 * - ( + + 13 ) * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6273
SELECT 0 * - ( + + 13 ) * COUNT ( * ) AS col1
----
0

query I rowsort
SELECT DISTINCT 60 + + 0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT ALL 19 + - + 91, COUNT( + + 53 ) AS col0
----
-72
1

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL 19 + - + 91, COUNT ( + + 53 ) AS col0
----
-72
1

query I rowsort
SELECT 13 * - - 1 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT MAX( - + 68 ) + + NULLIF ( + + 14, 64 )
----
-54

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT MAX ( - + 68 ) + + NULLIF ( + + 14, 64 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT DISTINCT - COUNT( * ) + 71 * + + 12 * + - 32 AS col2
----
-27265

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT - COUNT ( * ) + 71 * + + 12 * + - 32 AS col2
----
-27265

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6279
SELECT 3 DIV - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6279
SELECT 3 / - - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6280
SELECT - 30 * + 63 - - + 11 + + 14 DIV COUNT( * )
----
-1865

skipif mysql # not compatible
query I rowsort label-6280
SELECT - 30 * + 63 - - + 11 + + 14 / COUNT ( * )
----
-1865

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT - MAX( ALL + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-6281
SELECT - MAX ( ALL + 5 )
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6282
SELECT - MAX( - 88 ) DIV - 7 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6282
SELECT - MAX ( - 88 ) / - 7 AS col2
----
-12

query I rowsort
SELECT ALL - 11 * - - 1
----
-11

query I rowsort
SELECT ALL - 53 - 29 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT + - 75 - - MIN( DISTINCT - 62 ) + + + ( - 13 ) + 83 * - 32
----
-2806

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + - 75 - - MIN ( DISTINCT - 62 ) + + + ( - 13 ) + 83 * - 32
----
-2806

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT 8 + + 41 + - MIN( + 62 ) + + 59 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-6286
SELECT 8 + + 41 + - MIN ( + 62 ) + + 59 AS col0
----
46

query I rowsort
SELECT + 13 - - - 76
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6288
SELECT DISTINCT + + 63 / + CASE - CASE - 20 WHEN 4 THEN ( + NULLIF ( 55, ( + 38 ) ) ) * + CAST( NULL AS SIGNED ) + - 68 WHEN 86 / 43 THEN NULL ELSE 72 * MIN( ALL 5 ) END WHEN - 76 * 36 THEN - 4 / - COUNT( 13 ) + 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT + + 63 / + CASE - CASE - 20 WHEN 4 THEN ( + NULLIF ( 55, ( + 38 ) ) ) * + CAST ( NULL AS INTEGER ) + - 68 WHEN 86 / 43 THEN NULL ELSE 72 * MIN ( ALL 5 ) END WHEN - 76 * 36 THEN - 4 / - COUNT ( 13 ) + 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - 79 * + NULLIF ( - SUM( - 71 ), + 0 ) col2
----
-5609

skipif mysql # not compatible
query I rowsort label-6289
SELECT - 79 * + NULLIF ( - SUM ( - 71 ), + 0 ) col2
----
-5609

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT - + ( - - COUNT( * ) ) AS col0, - 40
----
-1
-40

skipif mysql # not compatible
query II rowsort label-6290
SELECT - + ( - - COUNT ( * ) ) AS col0, - 40
----
-1
-40

query I rowsort
SELECT 77 + - 62
----
15

query I rowsort
SELECT DISTINCT - 4 * + 91
----
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT ALL CAST( + - 10 AS SIGNED ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL CAST ( + - 10 AS INTEGER ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT + 15 * - + 87 + COUNT( * ) - - 18
----
-1286

skipif mysql # not compatible
query I rowsort label-6294
SELECT + 15 * - + 87 + COUNT ( * ) - - 18
----
-1286

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6295
SELECT ALL 55 * - CASE - CAST( - 7 AS SIGNED ) WHEN 53 * + CAST( NULL AS DECIMAL ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL 55 * - CASE - CAST ( - 7 AS INTEGER ) WHEN 53 * + CAST ( NULL AS REAL ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * 78
----
NULL

query I rowsort
SELECT DISTINCT - 43 * 60 * - 19
----
49020

query I rowsort
SELECT DISTINCT - + ( + 54 ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT ALL - 10 * + ( - CAST( NULL AS SIGNED ) ) + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL - 10 * + ( - CAST ( NULL AS INTEGER ) ) + + 64 AS col2
----
NULL

query I rowsort
SELECT 68 * + 58 col2
----
3944

query I rowsort
SELECT 4 * - - 29 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT SUM( DISTINCT 81 ) - - - ( 18 ) / + NULLIF ( CASE - COUNT( * ) WHEN - COUNT( 12 ) + - 87 THEN 54 WHEN - 86 THEN NULL END, - 25 ) + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6301
SELECT SUM ( DISTINCT 81 ) - - - ( 18 ) / + NULLIF ( CASE - COUNT ( * ) WHEN - COUNT ( 12 ) + - 87 THEN 54 WHEN - 86 THEN NULL END, - 25 ) + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + MAX( DISTINCT 20 )
----
20

skipif mysql # not compatible
query I rowsort label-6302
SELECT + MAX ( DISTINCT 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT MIN( + - ( + - 31 ) ) col2
----
31

skipif mysql # not compatible
query I rowsort label-6303
SELECT MIN ( + - ( + - 31 ) ) col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT COUNT( * ) * + 14 + 60 + + 97
----
171

skipif mysql # not compatible
query I rowsort label-6304
SELECT COUNT ( * ) * + 14 + 60 + + 97
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT COUNT( * ) * 39 * + NULLIF ( + + 42, 66 ) AS col0
----
1638

skipif mysql # not compatible
query I rowsort label-6305
SELECT COUNT ( * ) * 39 * + NULLIF ( + + 42, 66 ) AS col0
----
1638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6306
SELECT ALL COUNT( * ) DIV + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL COUNT ( * ) / + 7 AS col1
----
0

query II rowsort
SELECT ALL - 68, + 48 + NULLIF ( - 48, 55 ) AS col1
----
-68
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL 83 * - 54 + + MAX( 90 ) + + CASE 67 WHEN + 32 * + CASE - 57 WHEN + COUNT( * ) THEN + COUNT( * ) + 44 * 9 ELSE NULL END THEN - 40 * MAX( 12 * 0 ) + CASE 40 + 48 WHEN 54 * - 54 THEN 95 END WHEN 81 THEN 92 END * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL 83 * - 54 + + MAX ( 90 ) + + CASE 67 WHEN + 32 * + CASE - 57 WHEN + COUNT ( * ) THEN + COUNT ( * ) + 44 * 9 ELSE NULL END THEN - 40 * MAX ( 12 * 0 ) + CASE 40 + 48 WHEN 54 * - 54 THEN 95 END WHEN 81 THEN 92 END * - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT MIN( + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-6309
SELECT MIN ( + 33 )
----
33

query I rowsort
SELECT ALL - 80 * 82 * + - 56 + ( - 4 ) + + 26 * 32
----
368188

query II rowsort
SELECT + 7 - + - 4 + + 6 col0, - 70 * + 38 * 67 AS col0
----
17
-178220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6312
SELECT ALL + 51 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL + 51 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT + 83 - + 66 - - ( + 52 ) DIV - 69
----
17

skipif mysql # not compatible
query I rowsort label-6313
SELECT + 83 - + 66 - - ( + 52 ) / - 69
----
17

query I rowsort
SELECT DISTINCT NULLIF ( - + 91, + 64 * + 96 - - 92 - - 78 ) * 7 col2
----
-637

query I rowsort
SELECT - 53 + - 12
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT SUM( 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6316
SELECT SUM ( 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL 41 + - + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL 41 + - + COUNT ( * )
----
40

query I rowsort
SELECT + 47 + + - ( + 99 ) AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6319
SELECT - 63 * 71 * + - 23 + - CASE + 30 WHEN 60 THEN 44 * - 30 WHEN 83 * + AVG ( 18 ) THEN - CASE WHEN ( - 82 ) IS NULL THEN CAST( 16 AS SIGNED ) - - 2 WHEN ( + 67 * - ( COALESCE ( - 3, CAST( NULL AS SIGNED ) ) ) ) IS NOT NULL THEN NULL ELSE + SUM( ALL ( + 51 ) ) END - - 0 ELSE NULL END * 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT - 63 * 71 * + - 23 + - CASE + 30 WHEN 60 THEN 44 * - 30 WHEN 83 * + AVG ( 18 ) THEN - CASE WHEN ( - 82 ) IS NULL THEN CAST ( 16 AS INTEGER ) - - 2 WHEN ( + 67 * - ( COALESCE ( - 3, CAST ( NULL AS INTEGER ) ) ) ) IS NOT NULL THEN NULL ELSE + SUM ( ALL ( + 51 ) ) END - - 0 ELSE NULL END * 39 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL + MAX( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-6320
SELECT ALL + MAX ( DISTINCT + 66 )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6321
SELECT ALL + 82 - - + 91 + CAST( NULL AS SIGNED ), + 99 AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-6321
SELECT ALL + 82 - - + 91 + CAST ( NULL AS INTEGER ), + 99 AS col1
----
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT ALL - CASE - CAST( + 8 AS SIGNED ) WHEN + 62 - + COUNT( * ) + 39 THEN + ( 2 ) ELSE NULL END / 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - CASE - CAST ( + 8 AS INTEGER ) WHEN + 62 - + COUNT ( * ) + 39 THEN + ( 2 ) ELSE NULL END / 73
----
NULL

query II rowsort
SELECT 50 AS col1, - 10 * 92 AS col0
----
50
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT + - COUNT( * ) + + 2 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6324
SELECT + - COUNT ( * ) + + 2 AS col1
----
1

query II rowsort
SELECT + + 44 + + - 4 + + 29 AS col2, 24 + 15 col0
----
69
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6326
SELECT ALL - 6 * + 7 * + + CAST( - CASE 74 WHEN 33 THEN NULL WHEN 30 * - 16 THEN - COUNT( * ) ELSE ( 66 ) END AS SIGNED ) * + 91
----
252252

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - 6 * + 7 * + + CAST ( - CASE 74 WHEN 33 THEN NULL WHEN 30 * - 16 THEN - COUNT ( * ) ELSE ( 66 ) END AS INTEGER ) * + 91
----
252252

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT - COALESCE ( + 17, - 40 ) DIV - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6327
SELECT - COALESCE ( + 17, - 40 ) / - 87 AS col0
----
0

query II rowsort
SELECT ALL 78 AS col2, 31
----
78
31

query I rowsort
SELECT - 9 - 92 * - ( - 60 )
----
-5529

query I rowsort
SELECT DISTINCT + 56 + + 99 * + 9
----
947

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6331
SELECT + ( - COALESCE ( - + 10, - - MIN( 21 ) * + 23, - 77 ) ) DIV + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6331
SELECT + ( - COALESCE ( - + 10, - - MIN ( 21 ) * + 23, - 77 ) ) / + 25 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT ALL + 23 + - COUNT( + 62 ) - - 89 + + COUNT( ALL + 64 ) * 74
----
185

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL + 23 + - COUNT ( + 62 ) - - 89 + + COUNT ( ALL + 64 ) * 74
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT - 49 * - ( - COALESCE ( - + COUNT( * ), + - 36, + 3 ) )
----
49

skipif mysql # not compatible
query I rowsort label-6333
SELECT - 49 * - ( - COALESCE ( - + COUNT ( * ), + - 36, + 3 ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT - MIN( DISTINCT 28 ) + + 55 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6334
SELECT - MIN ( DISTINCT 28 ) + + 55 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6335
SELECT 18 * + 70 * ( - ( COUNT( * ) ) ) - - 1 * + CASE COUNT( * ) WHEN COUNT( + 51 ) THEN 3 * + CAST( + COUNT( * ) AS SIGNED ) + - 69 ELSE 30 END AS col2
----
-1326

skipif mysql # not compatible
query I rowsort label-6335
SELECT 18 * + 70 * ( - ( COUNT ( * ) ) ) - - 1 * + CASE COUNT ( * ) WHEN COUNT ( + 51 ) THEN 3 * + CAST ( + COUNT ( * ) AS INTEGER ) + - 69 ELSE 30 END AS col2
----
-1326

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6336
SELECT - CAST( NULL AS DECIMAL ) + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT - CAST ( NULL AS REAL ) + - 71
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6337
SELECT ALL 4 DIV 35 + - + 40 - + + ( COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL 4 / 35 + - + 40 - + + ( COUNT ( * ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT - 13 * - COUNT( DISTINCT - 3 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6338
SELECT - 13 * - COUNT ( DISTINCT - 3 ) AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6339
SELECT ALL 10 DIV + 57 + - 5 + + 59 + - 39 * + COUNT( DISTINCT 76 ) * - 11 + + 68 * - 6 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL 10 / + 57 + - 5 + + 59 + - 39 * + COUNT ( DISTINCT 76 ) * - 11 + + 68 * - 6 AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6340
SELECT DISTINCT COUNT( 31 ) DIV - + 50 * 83 - + 91 * + + 63 - 91 + 11 AS col1
----
-5813

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT COUNT ( 31 ) / - + 50 * 83 - + 91 * + + 63 - 91 + 11 AS col1
----
-5813

query I rowsort
SELECT 55 * 60 + 56
----
3356

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL + MAX( DISTINCT - 73 ) * + - COUNT( * ) * + 12 * + COUNT( * )
----
876

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL + MAX ( DISTINCT - 73 ) * + - COUNT ( * ) * + 12 * + COUNT ( * )
----
876

query I rowsort
SELECT + 59 + - 15 col1
----
44

query II rowsort
SELECT + 13, - 16 AS col0
----
13
-16

query I rowsort
SELECT ( + ( 89 ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + CASE - - COUNT( * ) WHEN - + MIN( - - 21 ) THEN NULLIF ( 95, 68 * MAX( ALL + 56 * 95 ) + - 19 * 32 ) WHEN 86 * + 66 + + 68 THEN NULL ELSE + 90 + + 4 END
----
94

skipif mysql # not compatible
query I rowsort label-6346
SELECT + CASE - - COUNT ( * ) WHEN - + MIN ( - - 21 ) THEN NULLIF ( 95, 68 * MAX ( ALL + 56 * 95 ) + - 19 * 32 ) WHEN 86 * + 66 + + 68 THEN NULL ELSE + 90 + + 4 END
----
94

query I rowsort
SELECT - 47 * + 6 AS col2
----
-282

onlyif mysql # aggregate syntax: 
query II rowsort label-6348
SELECT ALL + ( - MIN( DISTINCT + ( - 21 ) ) ) AS col2, 99 * + + COUNT( * ) AS col0
----
21
99

skipif mysql # not compatible
query II rowsort label-6348
SELECT ALL + ( - MIN ( DISTINCT + ( - 21 ) ) ) AS col2, 99 * + + COUNT ( * ) AS col0
----
21
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT NULLIF ( - 35, - - ( + COUNT( * ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6349
SELECT NULLIF ( - 35, - - ( + COUNT ( * ) ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT + MAX( + 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6350
SELECT + MAX ( + 83 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL + ( - + NULLIF ( - - 75, 97 * - NULLIF ( - 94, COALESCE ( 18, 16 + 56 * ( + COUNT( * ) ), MAX( 83 ) ) ) ) )
----
-75

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + ( - + NULLIF ( - - 75, 97 * - NULLIF ( - 94, COALESCE ( 18, 16 + 56 * ( + COUNT ( * ) ), MAX ( 83 ) ) ) ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + COUNT( * ) * - NULLIF ( - - 14, - 92 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-6352
SELECT + COUNT ( * ) * - NULLIF ( - - 14, - 92 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT ALL + ( + CASE 31 WHEN + 39 + - 63 * + COUNT( * ) THEN 96 * - 42 + - ( 63 ) ELSE - 80 END )
----
-80

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + ( + CASE 31 WHEN + 39 + - 63 * + COUNT ( * ) THEN 96 * - 42 + - ( 63 ) ELSE - 80 END )
----
-80

query II rowsort
SELECT ALL + 18 AS col2, 67 * + + 76 * - NULLIF ( 25, - 83 * - 12 ) AS col0
----
18
-127300

query I rowsort
SELECT + 68 * 45
----
3060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6356
SELECT - + 39 / - 59 * + CAST( NULL AS SIGNED ) * + MIN( DISTINCT 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT - + 39 / - 59 * + CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT 5 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6357
SELECT DISTINCT + 28 * + 26 col1, CAST( - ( 36 ) AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col2
----
728
NULL

skipif mysql # not compatible
query II rowsort label-6357
SELECT DISTINCT + 28 * + 26 col1, CAST ( - ( 36 ) AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col2
----
728
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT + - 59 * COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6358
SELECT + - 59 * COUNT ( * ) AS col1
----
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6359
SELECT + CASE + 45 WHEN + 40 * - CAST( 84 AS DECIMAL ) THEN + + 86 ELSE 19 + + 29 * + 73 END * 72 - + COUNT( ALL + 94 ) AS col2
----
153791

skipif mysql # not compatible
query I rowsort label-6359
SELECT + CASE + 45 WHEN + 40 * - CAST ( 84 AS REAL ) THEN + + 86 ELSE 19 + + 29 * + 73 END * 72 - + COUNT ( ALL + 94 ) AS col2
----
153791

query I rowsort
SELECT ALL + 9 * + 38
----
342

query I rowsort
SELECT + 70 * + 42 AS col1
----
2940

query I rowsort
SELECT DISTINCT ( + CASE - + 41 WHEN ( - 44 ) * - 2 THEN NULLIF ( 3, - 47 ) / - 84 ELSE NULL END ) + ( 9 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL + 52 + - + MIN( - + ( 10 ) ) * - + 63 * + 93
----
-58538

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + 52 + - + MIN ( - + ( 10 ) ) * - + 63 * + 93
----
-58538

onlyif mysql # aggregate syntax: 
query II rowsort label-6364
SELECT DISTINCT - COUNT( + NULLIF ( 42, + 67 ) ) AS col1, 80 col1
----
-1
80

skipif mysql # not compatible
query II rowsort label-6364
SELECT DISTINCT - COUNT ( + NULLIF ( 42, + 67 ) ) AS col1, 80 col1
----
-1
80

query I rowsort
SELECT ALL COALESCE ( + 4, 69 ) AS col2
----
4

query I rowsort
SELECT ALL + 23 + - - 37 col2
----
60

query I rowsort
SELECT ALL 96 * - - 57 * - 84
----
-459648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6368
SELECT 23 * + - CAST( NULL AS SIGNED ) AS col2, + 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-6368
SELECT 23 * + - CAST ( NULL AS INTEGER ) AS col2, + 95 AS col2
----
NULL
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT ALL - SUM( - 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - SUM ( - 15 ) AS col2
----
15

query I rowsort
SELECT ALL 89 + + 66
----
155

query II rowsort
SELECT 0 * + 22 AS col2, 62
----
0
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT 12 * COUNT( ALL - 1 ) * + - COUNT( * ) * 96
----
-1152

skipif mysql # not compatible
query I rowsort label-6372
SELECT 12 * COUNT ( ALL - 1 ) * + - COUNT ( * ) * 96
----
-1152

query I rowsort
SELECT 60 * + 72 - - + 45 - + COALESCE ( - 25, - - 37, + + CASE + AVG ( + 11 ) WHEN 47 THEN 61 WHEN - 26 * - 22 THEN 73 WHEN 77 / 80 THEN - 49 END + + 13 ) - ( 77 ) AS col0
----
4313

query I rowsort
SELECT ALL COALESCE ( - - 52, - + 1 ) - + 32 - - - 13
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT 35 * - CAST( NULL AS SIGNED ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT 35 * - CAST ( NULL AS INTEGER ) * + 83
----
NULL

query I rowsort
SELECT 47 * + - 96
----
-4512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6377
SELECT 54 - + - 3 * - COUNT( ALL 90 ) + + 52 - - - 16 DIV 46 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-6377
SELECT 54 - + - 3 * - COUNT ( ALL 90 ) + + 52 - - - 16 / 46 AS col0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT 34 * + - 83 + - 12 + NULLIF ( SUM( DISTINCT + - 78 ), + 34 + 45 ) AS col0
----
-2912

skipif mysql # not compatible
query I rowsort label-6378
SELECT 34 * + - 83 + - 12 + NULLIF ( SUM ( DISTINCT + - 78 ), + 34 + 45 ) AS col0
----
-2912

query I rowsort
SELECT ALL - + 35 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT ALL + - NULLIF ( + ( 86 ), - 10 + - COUNT( * ) ) * - CASE 97 WHEN CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + COUNT( * ) THEN NULL WHEN + 7 THEN + 0 + 62 END + - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL + - NULLIF ( + ( 86 ), - 10 + - COUNT ( * ) ) * - CASE 97 WHEN CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + COUNT ( * ) THEN NULL WHEN + 7 THEN + 0 + 62 END + - 17 AS col2
----
NULL

query I rowsort
SELECT ALL - - 58 col1
----
58

query I rowsort
SELECT - 32 + + 5
----
-27

query II rowsort
SELECT DISTINCT - + ( 34 ), 4 * ( 95 ) col2
----
-34
380

onlyif mysql # DIV for integer division: 
query II rowsort label-6384
SELECT 86 DIV - 65 AS col2, ( - 37 ) + - + 78
----
-1
-115

skipif mysql # not compatible
query II rowsort label-6384
SELECT 86 / - 65 AS col2, ( - 37 ) + - + 78
----
-1
-115

query I rowsort
SELECT - 59 + - + 52 * - - 19
----
-1047

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT - MAX( DISTINCT - + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-6386
SELECT - MAX ( DISTINCT - + 60 )
----
60

query I rowsort
SELECT + 82 + - 55 + + COALESCE ( - 18, - 91 ) + - 85 * + 77 * - 0 AS col0
----
9

query I rowsort
SELECT ALL - 67 + 71 + + + 28 * + 84 col1
----
2356

onlyif mysql # aggregate syntax: 
query III rowsort label-6389
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) col2, - 84 * MAX( 11 ), - - CASE + 50 WHEN 67 THEN + AVG ( 65 ) * - 50 END AS col0
----
0
-924
NULL

skipif mysql # not compatible
query III rowsort label-6389
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) col2, - 84 * MAX ( 11 ), - - CASE + 50 WHEN 67 THEN + AVG ( 65 ) * - 50 END AS col0
----
0
-924
NULL

query I rowsort
SELECT 55 * + 18 AS col2
----
990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6391
SELECT + 9 + - 29 + + - 47, + COALESCE ( + + 0, + 11 + MAX( 3 ) * CAST( NULL AS SIGNED ) ) AS col1
----
-67
0

skipif mysql # not compatible
query II rowsort label-6391
SELECT + 9 + - 29 + + - 47, + COALESCE ( + + 0, + 11 + MAX ( 3 ) * CAST ( NULL AS INTEGER ) ) AS col1
----
-67
0

query I rowsort
SELECT ALL - 23 + 58 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6393
SELECT 34 + + COUNT( * ) + + CAST( + ( 36 ) AS SIGNED ) + + + 81 * - + 62 col1
----
-4951

skipif mysql # not compatible
query I rowsort label-6393
SELECT 34 + + COUNT ( * ) + + CAST ( + ( 36 ) AS INTEGER ) + + + 81 * - + 62 col1
----
-4951

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ALL + COUNT( * ) + + + MAX( DISTINCT - 12 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL + COUNT ( * ) + + + MAX ( DISTINCT - 12 ) AS col2
----
-11

query I rowsort
SELECT ALL - + 59 + - - 89 + - 45
----
-15

query I rowsort
SELECT DISTINCT + - 97 * 10 * - 0 + 72 + 8
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6397
SELECT ALL 26 + 7 DIV + + 38, - CAST( NULL AS SIGNED ) AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-6397
SELECT ALL 26 + 7 / + + 38, - CAST ( NULL AS INTEGER ) AS col2
----
26
NULL

query II rowsort
SELECT DISTINCT 55 + + ( - - 60 ) AS col2, - 25 col1
----
115
-25

query II rowsort
SELECT DISTINCT 91 AS col0, 28
----
91
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6400
SELECT COUNT( * ) + NULLIF ( + CAST( COUNT( * ) AS SIGNED ), 77 * - AVG ( DISTINCT - 68 ) + - 27 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6400
SELECT COUNT ( * ) + NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), 77 * - AVG ( DISTINCT - 68 ) + - 27 ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6401
SELECT 9 + - 98 - - 78 DIV + 67 + 91 DIV - 57 + 0
----
-89

skipif mysql # not compatible
query I rowsort label-6401
SELECT 9 + - 98 - - 78 / + 67 + 91 / - 57 + 0
----
-89

query I rowsort
SELECT DISTINCT 83 * - 95
----
-7885

onlyif mysql # aggregate syntax: 
query II rowsort label-6403
SELECT COUNT( * ) + - SUM( ALL 8 ) AS col1, + 37
----
-7
37

skipif mysql # not compatible
query II rowsort label-6403
SELECT COUNT ( * ) + - SUM ( ALL 8 ) AS col1, + 37
----
-7
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT 57 * + MAX( ALL - 10 ) AS col0
----
-570

skipif mysql # not compatible
query I rowsort label-6404
SELECT 57 * + MAX ( ALL - 10 ) AS col0
----
-570

query I rowsort
SELECT ALL 18 * + NULLIF ( - 73, - 24 + - + 60 )
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT 28 + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6406
SELECT 28 + - COUNT ( * )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT ALL 30 DIV - 28 * + 98 DIV + ( - 58 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL 30 / - 28 * + 98 / + ( - 58 ) AS col1
----
1

query II rowsort
SELECT DISTINCT - 67 AS col0, - 86
----
-67
-86

query I rowsort
SELECT DISTINCT 47 * 4
----
188

query I rowsort
SELECT ALL 82 * - 33 * - 94 * - 87
----
-22129668

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT ( COUNT( ALL - 62 ) ) * - 47 - 96 col1
----
-143

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT ( COUNT ( ALL - 62 ) ) * - 47 - 96 col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT SUM( - + 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-6412
SELECT SUM ( - + 47 ) AS col2
----
-47

query I rowsort
SELECT 63 + + + ( - COALESCE ( - 50, 43 * 38 ) ) * - 33 * + 52
----
-85737

query I rowsort
SELECT 73 + - 79
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT DISTINCT - - 54 / 82 / - + 8 * + 23 + + 6 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT - - 54 / 82 / - + 8 * + 23 + + 6 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT ALL - CASE - 6 WHEN + 19 * + 74 THEN NULL WHEN 52 THEN + 41 + + + 41 - 99 / CAST( NULL AS SIGNED ) END + - 13 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL - CASE - 6 WHEN + 19 * + 74 THEN NULL WHEN 52 THEN + 41 + + + 41 - 99 / CAST ( NULL AS INTEGER ) END + - 13 * 46
----
NULL

query I rowsort
SELECT DISTINCT + ( + - 87 ) + 78 col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT - CAST( - ( 82 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-6418
SELECT - CAST ( - ( 82 ) AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT DISTINCT + 51 + COALESCE ( - + NULLIF ( 42, 17 * MAX( 72 ) + ( - 70 ) ), - COUNT( * ) ) * 81 AS col1
----
-3351

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT + 51 + COALESCE ( - + NULLIF ( 42, 17 * MAX ( 72 ) + ( - 70 ) ), - COUNT ( * ) ) * 81 AS col1
----
-3351

onlyif mysql # DIV for integer division: 
query II rowsort label-6420
SELECT - 23, + 94 DIV + + 41 AS col1
----
-23
2

skipif mysql # not compatible
query II rowsort label-6420
SELECT - 23, + 94 / + + 41 AS col1
----
-23
2

query I rowsort
SELECT ALL - - 22 col1
----
22

query I rowsort
SELECT DISTINCT - + 49 + + 27
----
-22

query I rowsort
SELECT 93 * - - 51
----
4743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6424
SELECT ALL - 27 + - CAST( + - 76 AS SIGNED ) * 58 AS col2
----
4381

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL - 27 + - CAST ( + - 76 AS INTEGER ) * 58 AS col2
----
4381

query II rowsort
SELECT + 46 AS col2, + 69 * - NULLIF ( - 82, + 54 * - 17 + 73 + + + 45 - 61 ) col1
----
46
5658

query I rowsort
SELECT - 82 * 7 + + + 15 col1
----
-559

query I rowsort
SELECT ALL - 77 + - 7 AS col1
----
-84

query I rowsort
SELECT ALL + 91 + + 27 col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ALL + 11 - COUNT( + 21 )
----
10

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL + 11 - COUNT ( + 21 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6430
SELECT - + CAST( NULL AS SIGNED ) * 76 * 8 * + 54 + - 47 * - 47 + + - 76 + NULLIF ( - 84, + COUNT( * ) * COUNT( * ) ) + 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6430
SELECT - + CAST ( NULL AS INTEGER ) * 76 * 8 * + 54 + - 47 * - 47 + + - 76 + NULLIF ( - 84, + COUNT ( * ) * COUNT ( * ) ) + 87 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT MIN( DISTINCT + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT MIN ( DISTINCT + 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT - 23 - + COUNT( * ) - + 76 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - 23 - + COUNT ( * ) - + 76 AS col0
----
-100

query I rowsort
SELECT ALL + ( + 28 ) - + - 28 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL - COUNT( * ) * COUNT( * ) * 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL - COUNT ( * ) * COUNT ( * ) * 1 AS col0
----
-1

query I rowsort
SELECT - 54 * - 36 AS col0
----
1944

query I rowsort
SELECT + 60 * 90
----
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT - MIN( - 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6437
SELECT - MIN ( - 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL - ( + COUNT( * ) ) * + + 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL - ( + COUNT ( * ) ) * + + 1 AS col1
----
-1

query I rowsort
SELECT ALL - 34 * + 53 AS col2
----
-1802

query I rowsort
SELECT ALL ( - - 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6441
SELECT DISTINCT ( - - COUNT( * ) ) AS col0, ( + + 24 ) * ( 0 )
----
1
0

skipif mysql # not compatible
query II rowsort label-6441
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0, ( + + 24 ) * ( 0 )
----
1
0

query II rowsort
SELECT ( - NULLIF ( - - 49, - + 93 ) ), + 91 AS col2
----
-49
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT + COUNT( DISTINCT - 68 ) - + + 57
----
-56

skipif mysql # not compatible
query I rowsort label-6443
SELECT + COUNT ( DISTINCT - 68 ) - + + 57
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6444
SELECT + 23 * - COUNT( DISTINCT + ( - - 91 ) ) * - - COUNT( DISTINCT + 25 ) DIV COUNT( * ) - - COUNT( * ) * + 19 * 91 - 82
----
1624

skipif mysql # not compatible
query I rowsort label-6444
SELECT + 23 * - COUNT ( DISTINCT + ( - - 91 ) ) * - - COUNT ( DISTINCT + 25 ) / COUNT ( * ) - - COUNT ( * ) * + 19 * 91 - 82
----
1624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6445
SELECT ALL 53 * CAST( NULL AS SIGNED ) * + - 82 + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL 53 * CAST ( NULL AS INTEGER ) * + - 82 + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT 35 * - 4 * 65 * + COALESCE ( 20, COUNT( * ) ) + COALESCE ( + + ( + + 33 ), MAX( DISTINCT 41 ) ) AS col2
----
-181967

skipif mysql # not compatible
query I rowsort label-6446
SELECT 35 * - 4 * 65 * + COALESCE ( 20, COUNT ( * ) ) + COALESCE ( + + ( + + 33 ), MAX ( DISTINCT 41 ) ) AS col2
----
-181967

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT + - 52 DIV + 61 * - 53 * + 15 + + 5
----
5

skipif mysql # not compatible
query I rowsort label-6447
SELECT + - 52 / + 61 * - 53 * + 15 + + 5
----
5

query I rowsort
SELECT + - 28 + + 88 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT DISTINCT + + MIN( DISTINCT + CASE - 34 WHEN + 96 THEN + ( + 31 ) WHEN + 36 - + 39 + - - 99 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT + + MIN ( DISTINCT + CASE - 34 WHEN + 96 THEN + ( + 31 ) WHEN + 36 - + 39 + - - 99 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT 9 * + SUM( - - 38 ) + + + 87 + + 87 + MIN( - 15 )
----
501

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT 9 * + SUM ( - - 38 ) + + + 87 + + 87 + MIN ( - 15 )
----
501

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT + + COUNT( + 91 ) * + + 72 + 82 + 20 - - 30 col2
----
204

skipif mysql # not compatible
query I rowsort label-6451
SELECT + + COUNT ( + 91 ) * + + 72 + 82 + 20 - - 30 col2
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6452
SELECT ALL 59 * 20 * + + 25 * 89 - - - CASE - 10 WHEN - 71 * 51 THEN + - 75 WHEN - 87 + 42 THEN NULL END + + COALESCE ( + 50 + CAST( + 60 AS SIGNED ), + 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL 59 * 20 * + + 25 * 89 - - - CASE - 10 WHEN - 71 * 51 THEN + - 75 WHEN - 87 + 42 THEN NULL END + + COALESCE ( + 50 + CAST ( + 60 AS INTEGER ), + 32 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT + - 50 * - 85 + + + ( - COUNT( ALL - + 69 ) )
----
4249

skipif mysql # not compatible
query I rowsort label-6453
SELECT + - 50 * - 85 + + + ( - COUNT ( ALL - + 69 ) )
----
4249

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT 87 * + - ( + + CASE 20 WHEN + 87 THEN - - ( 21 ) WHEN - + ( - 22 ) * ( - ( COALESCE ( - 97, - COUNT( * ) * 29 ) ) ) THEN 56 * + 9 ELSE NULL END ) + AVG ( ALL COALESCE ( + 25, - 59 * 87, 18 * - 6 ) ) / - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT 87 * + - ( + + CASE 20 WHEN + 87 THEN - - ( 21 ) WHEN - + ( - 22 ) * ( - ( COALESCE ( - 97, - COUNT ( * ) * 29 ) ) ) THEN 56 * + 9 ELSE NULL END ) + AVG ( ALL COALESCE ( + 25, - 59 * 87, 18 * - 6 ) ) / - 33
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT + - COALESCE ( + 67, - CAST( 51 AS SIGNED ), + + 30 * - - 37 + - + NULLIF ( - + COUNT( 58 ), - ( 91 ) + 82 ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6455
SELECT + - COALESCE ( + 67, - CAST ( 51 AS INTEGER ), + + 30 * - - 37 + - + NULLIF ( - + COUNT ( 58 ), - ( 91 ) + 82 ) ) AS col1
----
-67

query I rowsort
SELECT - - 95 * + 60 col0
----
5700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6457
SELECT + 88 * - 72 + + - CAST( - ( + 69 ) AS SIGNED ) + + 88 DIV - + 64
----
-6268

skipif mysql # not compatible
query I rowsort label-6457
SELECT + 88 * - 72 + + - CAST ( - ( + 69 ) AS INTEGER ) + + 88 / - + 64
----
-6268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6458
SELECT DISTINCT + + CAST( + 74 AS SIGNED ) col0
----
74

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT + + CAST ( + 74 AS INTEGER ) col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL - SUM( 79 ) * - + 62 - + - COUNT( * ) * - 28 col2
----
4870

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - SUM ( 79 ) * - + 62 - + - COUNT ( * ) * - 28 col2
----
4870

query I rowsort
SELECT DISTINCT - 82 * - 60 + + + 33
----
4953

query I rowsort
SELECT DISTINCT - ( - 74 ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT DISTINCT - 14 * CAST( - ( - 87 ) AS SIGNED ) - 40
----
-1258

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT - 14 * CAST ( - ( - 87 ) AS INTEGER ) - 40
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT + 19 + - CAST( NULL AS SIGNED ) + 72 * + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT + 19 + - CAST ( NULL AS INTEGER ) + 72 * + 49 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - 43 + - 41 + + COUNT( * ) + - ( + 77 ) AS col0
----
-160

skipif mysql # not compatible
query I rowsort label-6464
SELECT - 43 + - 41 + + COUNT ( * ) + - ( + 77 ) AS col0
----
-160

query I rowsort
SELECT - 31 * + 79 * 56
----
-137144

query I rowsort
SELECT - 37 * + 85 col2
----
-3145

query I rowsort
SELECT ALL ( - 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6468
SELECT - 48 + + 23 * COUNT( * ) DIV - 23 + 87 AS col1, 84 AS col2
----
38
84

skipif mysql # not compatible
query II rowsort label-6468
SELECT - 48 + + 23 * COUNT ( * ) / - 23 + 87 AS col1, 84 AS col2
----
38
84

query I rowsort
SELECT DISTINCT ( - + 38 ) AS col1
----
-38

query I rowsort
SELECT DISTINCT 72 * - 90 AS col0
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT ( MAX( - 60 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT ( MAX ( - 60 ) ) AS col1
----
-60

query I rowsort
SELECT - 1 + 13 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6473
SELECT ALL CASE 68 WHEN - 98 / + 65 + - 63 - - + 54 * - - 86 + + 26 - + COUNT( * ) + - COUNT( * ) * + 49 * 74 THEN NULL WHEN + SUM( + 56 ) * COUNT( * ) THEN + 47 * CAST( NULL AS SIGNED ) + 12 ELSE COUNT( * ) + + 89 END AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL CASE 68 WHEN - 98 / + 65 + - 63 - - + 54 * - - 86 + + 26 - + COUNT ( * ) + - COUNT ( * ) * + 49 * 74 THEN NULL WHEN + SUM ( + 56 ) * COUNT ( * ) THEN + 47 * CAST ( NULL AS INTEGER ) + 12 ELSE COUNT ( * ) + + 89 END AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT DISTINCT COALESCE ( + 54, 27 * - CAST( NULL AS SIGNED ) )
----
54

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT COALESCE ( + 54, 27 * - CAST ( NULL AS INTEGER ) )
----
54

query I rowsort
SELECT DISTINCT ( 24 ) AS col1
----
24

query I rowsort
SELECT DISTINCT ( + 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-6477
SELECT ALL + CASE - - 41 WHEN - COUNT( * ) THEN + + 32 ELSE NULL END / - 8 AS col0, + 17 AS col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-6477
SELECT ALL + CASE - - 41 WHEN - COUNT ( * ) THEN + + 32 ELSE NULL END / - 8 AS col0, + 17 AS col0
----
NULL
17

query I rowsort
SELECT - 41 * - + 10 * + - 58 AS col0
----
-23780

query I rowsort
SELECT + 47 + 59
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT + ( COALESCE ( + 63, - - 87 ) ) DIV - 59 - - 3 + + + 23
----
25

skipif mysql # not compatible
query I rowsort label-6480
SELECT + ( COALESCE ( + 63, - - 87 ) ) / - 59 - - 3 + + + 23
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT - COUNT( * ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6481
SELECT - COUNT ( * ) + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT + ( - COUNT( * ) ) + + 55 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6482
SELECT + ( - COUNT ( * ) ) + + 55 AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6483
SELECT DISTINCT - 12 DIV - 57 * 97 DIV 73 * 8 * - 89 + - COUNT( * ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT - 12 / - 57 * 97 / 73 * 8 * - 89 + - COUNT ( * ) - - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + CASE + - 40 WHEN - 43 THEN + ( NULLIF ( - 30, - - 78 ) ) + - - 54 END / - + 8 + + - 59 + + 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6485
SELECT ALL + + 26 DIV 42 + - ( - + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL + + 26 / 42 + - ( - + 92 ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6486
SELECT ALL + + 4 AS col0, - CAST( NULL AS SIGNED ) + 81
----
4
NULL

skipif mysql # not compatible
query II rowsort label-6486
SELECT ALL + + 4 AS col0, - CAST ( NULL AS INTEGER ) + 81
----
4
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6487
SELECT + 8 AS col2, - 91 DIV COUNT( * ) + - 13 AS col2
----
8
-104

skipif mysql # not compatible
query II rowsort label-6487
SELECT + 8 AS col2, - 91 / COUNT ( * ) + - 13 AS col2
----
8
-104

query I rowsort
SELECT + - 91 + 21 + 99 * 71 AS col1
----
6959

query I rowsort
SELECT DISTINCT + - 27 col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6490
SELECT ALL 32 DIV - 64 + + 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL 32 / - 64 + + 41 AS col0
----
41

query I rowsort
SELECT + - 99 * - 71
----
7029

query I rowsort
SELECT + 28 * - 16 + - + 36
----
-484

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT ALL + - CAST( - 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL + - CAST ( - 59 AS INTEGER )
----
59

query I rowsort
SELECT ALL 7 * + 70
----
490

query I rowsort
SELECT DISTINCT + NULLIF ( + 96, + - 26 ) * - 19 AS col2
----
-1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6496
SELECT - NULLIF ( 31, - 11 ) * + 40 + SUM( ALL 40 ) * + - 46 * + 87 + + 5 DIV 57
----
-161320

skipif mysql # not compatible
query I rowsort label-6496
SELECT - NULLIF ( 31, - 11 ) * + 40 + SUM ( ALL 40 ) * + - 46 * + 87 + + 5 / 57
----
-161320

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT COUNT( + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-6497
SELECT COUNT ( + 84 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT MAX( DISTINCT - - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-6498
SELECT MAX ( DISTINCT - - 98 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6499
SELECT 99 AS col0, + NULLIF ( - MAX( DISTINCT - + 21 ), + ( NULLIF ( + 39, + + COUNT( * ) + - - 85 ) ) ) * - 16
----
99
-336

skipif mysql # not compatible
query II rowsort label-6499
SELECT 99 AS col0, + NULLIF ( - MAX ( DISTINCT - + 21 ), + ( NULLIF ( + 39, + + COUNT ( * ) + - - 85 ) ) ) * - 16
----
99
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT ( - - CAST( NULL AS SIGNED ) ) / - 18 + - MAX( ALL - CASE - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + 85 + + 28 * + - 48 THEN - - CAST( NULL AS SIGNED ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT ( - - CAST ( NULL AS INTEGER ) ) / - 18 + - MAX ( ALL - CASE - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + 85 + + 28 * + - 48 THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT 48 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-6501
SELECT 48 / 95
----
0

query I rowsort
SELECT ( - - ( 26 ) ) * 94 + - 63 AS col0
----
2381

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT COUNT( * ) - - 28
----
29

skipif mysql # not compatible
query I rowsort label-6503
SELECT COUNT ( * ) - - 28
----
29

query II rowsort
SELECT ALL 39 AS col0, - 37
----
39
-37

query II rowsort
SELECT ALL 41 AS col1, 66 col2
----
41
66

query II rowsort
SELECT DISTINCT 45, + 39 AS col2
----
45
39

query II rowsort
SELECT DISTINCT 99 AS col2, + 30 * - 72
----
99
-2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6508
SELECT 4 col1, COUNT( - + 42 ) DIV - ( + 8 ) AS col0
----
4
0

skipif mysql # not compatible
query II rowsort label-6508
SELECT 4 col1, COUNT ( - + 42 ) / - ( + 8 ) AS col0
----
4
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6509
SELECT 85 AS col1, - COUNT( * )
----
85
-1

skipif mysql # not compatible
query II rowsort label-6509
SELECT 85 AS col1, - COUNT ( * )
----
85
-1

query I rowsort
SELECT 73 * + 50 * - 99 AS col2
----
-361350

query I rowsort
SELECT ( + 57 ) * - 6
----
-342

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT - 17 AS col0, MIN( - - 52 ) * 67 + + 69
----
-17
3553

skipif mysql # not compatible
query II rowsort label-6512
SELECT - 17 AS col0, MIN ( - - 52 ) * 67 + + 69
----
-17
3553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6513
SELECT 63 DIV + SUM( DISTINCT + 17 )
----
3

skipif mysql # not compatible
query I rowsort label-6513
SELECT 63 / + SUM ( DISTINCT + 17 )
----
3

query II rowsort
SELECT 15, + 80 + + ( + + 4 ) AS col0
----
15
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT ALL - 8 + - 42 + - - 88 DIV + 11
----
-42

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - 8 + - 42 + - - 88 / + 11
----
-42

query I rowsort
SELECT + 19 * + - 14
----
-266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6517
SELECT ALL + + CAST( - - 21 AS SIGNED ) + + 4 + - 58 * + ( + - 34 ) + - - 95 AS col1
----
2092

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL + + CAST ( - - 21 AS INTEGER ) + + 4 + - 58 * + ( + - 34 ) + - - 95 AS col1
----
2092

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT CASE COUNT( * ) WHEN + 49 THEN NULL WHEN + 37 * + 56 / + + 50 THEN + 53 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT CASE COUNT ( * ) WHEN + 49 THEN NULL WHEN + 37 * + 56 / + + 50 THEN + 53 END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6519
SELECT CAST( - - 0 AS SIGNED ) * + 3
----
0

skipif mysql # not compatible
query I rowsort label-6519
SELECT CAST ( - - 0 AS INTEGER ) * + 3
----
0

query I rowsort
SELECT - ( 46 )
----
-46

query I rowsort
SELECT ALL + + 92 - 3
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6522
SELECT 75 * - - CASE + MIN( ALL - + 76 ) WHEN - 84 * CAST( NULL AS SIGNED ) * 98 * - CASE + 69 WHEN - 21 THEN NULL WHEN + 31 + 33 THEN MIN( 56 ) + - 77 END + - 68 * + 70 THEN 82 WHEN 8 THEN NULL ELSE 19 DIV 8 + + 37 END + - COUNT( * ) * - COALESCE ( 92 DIV + 7, + 15 ) AS col0
----
2938

skipif mysql # not compatible
query I rowsort label-6522
SELECT 75 * - - CASE + MIN ( ALL - + 76 ) WHEN - 84 * CAST ( NULL AS INTEGER ) * 98 * - CASE + 69 WHEN - 21 THEN NULL WHEN + 31 + 33 THEN MIN ( 56 ) + - 77 END + - 68 * + 70 THEN 82 WHEN 8 THEN NULL ELSE 19 / 8 + + 37 END + - COUNT ( * ) * - COALESCE ( 92 / + 7, + 15 ) AS col0
----
2938

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL + 48 * - + COUNT( + - 91 ) + - 42
----
-90

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + 48 * - + COUNT ( + - 91 ) + - 42
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT ALL - - COALESCE ( + 26, - - 72 + + MAX( DISTINCT + ( + + 75 ) ) * 5 * + 86, + 17 )
----
26

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - - COALESCE ( + 26, - - 72 + + MAX ( DISTINCT + ( + + 75 ) ) * 5 * + 86, + 17 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6525
SELECT - 9 DIV - 49 + - + 89 + COUNT( * ), 89 AS col1
----
-88
89

skipif mysql # not compatible
query II rowsort label-6525
SELECT - 9 / - 49 + - + 89 + COUNT ( * ), 89 AS col1
----
-88
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL - COUNT( ALL 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL - COUNT ( ALL 52 ) AS col1
----
-1

query II rowsort
SELECT + 98 AS col2, 77 * + 23 col1
----
98
1771

query I rowsort
SELECT - 26 + 75
----
49

query I rowsort
SELECT ALL + 4 * - 36 * - 67 col0
----
9648

query II rowsort
SELECT ALL - 57 AS col2, 22
----
-57
22

query I rowsort
SELECT + 35 * + 65 AS col1
----
2275

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL - COALESCE ( + - 77, - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - COALESCE ( + - 77, - COUNT ( * ) )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6533
SELECT CAST( NULL AS SIGNED ) - - MAX( DISTINCT + 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT CAST ( NULL AS INTEGER ) - - MAX ( DISTINCT + 46 ) AS col2
----
NULL

query I rowsort
SELECT - ( - - 25 ) * - + 1
----
25

query I rowsort
SELECT 24 * - 10 + + 31
----
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT DISTINCT - MIN( + 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT - MIN ( + 96 ) AS col1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT 26 + - 84 - - ( - - 75 ) - - CAST( NULL AS SIGNED ) + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT 26 + - 84 - - ( - - 75 ) - - CAST ( NULL AS INTEGER ) + - 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT COUNT( * ) + + 35 + 32 - - 74 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-6538
SELECT COUNT ( * ) + + 35 + 32 - - 74 AS col0
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6539
SELECT ALL CAST( NULL AS SIGNED ) * + 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL CAST ( NULL AS INTEGER ) * + 38 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6540
SELECT NULLIF ( - 86, 68 ) * - MIN( 52 ) * - + 78 + - 53 col1, NULLIF ( - 99, 32 + + 40 ) + 44 * - CAST( CAST( NULL AS DECIMAL ) + 36 * + COALESCE ( + 13, + 81 ) AS SIGNED ) AS col2
----
-348869
NULL

skipif mysql # not compatible
query II rowsort label-6540
SELECT NULLIF ( - 86, 68 ) * - MIN ( 52 ) * - + 78 + - 53 col1, NULLIF ( - 99, 32 + + 40 ) + 44 * - CAST ( CAST ( NULL AS REAL ) + 36 * + COALESCE ( + 13, + 81 ) AS INTEGER ) AS col2
----
-348869
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT ALL - CAST( 79 AS SIGNED ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - CAST ( 79 AS INTEGER ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL - COUNT( + 51 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL - COUNT ( + 51 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT DISTINCT 54 * - - 23 * + COUNT( * )
----
1242

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT 54 * - - 23 * + COUNT ( * )
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL 72 * + 43 * ( + + COUNT( DISTINCT + + 77 ) ) col1
----
3096

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL 72 * + 43 * ( + + COUNT ( DISTINCT + + 77 ) ) col1
----
3096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6545
SELECT ALL CAST( 43 AS SIGNED ) * - - MAX( - - 62 )
----
2666

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL CAST ( 43 AS INTEGER ) * - - MAX ( - - 62 )
----
2666

query II rowsort
SELECT ( ( - 83 ) ) * 89 + 15 col0, - 62 AS col0
----
-7372
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT MIN( - 70 ) + - + 56 DIV - 82 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6547
SELECT MIN ( - 70 ) + - + 56 / - 82 AS col1
----
-70

query I rowsort
SELECT 28 * + 20
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL 53 + + + MAX( DISTINCT - 8 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL 53 + + + MAX ( DISTINCT - 8 ) AS col2
----
45

query I rowsort
SELECT 44 + 33
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - COUNT( - CASE 71 WHEN - 54 + - 43 THEN NULL ELSE - ( 44 ) + - - ( + 14 ) + + + 7 * + - 10 + + 88 / 50 END ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6551
SELECT - COUNT ( - CASE 71 WHEN - 54 + - 43 THEN NULL ELSE - ( 44 ) + - - ( + 14 ) + + + 7 * + - 10 + + 88 / 50 END ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT MAX( 90 ) + + 31 * - + 84 * + 41 col1
----
-106674

skipif mysql # not compatible
query I rowsort label-6552
SELECT MAX ( 90 ) + + 31 * - + 84 * + 41 col1
----
-106674

query II rowsort
SELECT ALL 17 + - - 30, 74 + - 76 col1
----
47
-2

query I rowsort
SELECT ALL 76 + + 8
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ALL + COALESCE ( + + 5, 85, 71 + - - 53 * - + 70 ) + COUNT( DISTINCT + + 35 )
----
6

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + COALESCE ( + + 5, 85, 71 + - - 53 * - + 70 ) + COUNT ( DISTINCT + + 35 )
----
6

query I rowsort
SELECT ( + 27 ) + 46
----
73

query I rowsort
SELECT 88 + 51
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL - ( - + COUNT( * ) ) * + 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - ( - + COUNT ( * ) ) * + 47 AS col1
----
47

query I rowsort
SELECT DISTINCT COALESCE ( - 20, - 32, - 91 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT 54 * - + 36 * + - COUNT( * ) AS col0
----
1944

skipif mysql # not compatible
query I rowsort label-6560
SELECT 54 * - + 36 * + - COUNT ( * ) AS col0
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT - MIN( DISTINCT 47 ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-6561
SELECT - MIN ( DISTINCT 47 ) col1
----
-47

query I rowsort
SELECT ALL + ( - COALESCE ( + 53, - 69 ) )
----
-53

query I rowsort
SELECT DISTINCT 71 * + - 0 + + - 4
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT ALL - - 65 DIV NULLIF ( + + COALESCE ( - 46, + 74, + 98 ), 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - - 65 / NULLIF ( + + COALESCE ( - 46, + 74, + 98 ), 34 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6565
SELECT - - 22 DIV + + COALESCE ( - 75, - 62 * - - 23 DIV - 74 + + ( 73 ) + CASE - 27 WHEN - 29 THEN 60 + - COUNT( + 96 - 18 ) ELSE NULL END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6565
SELECT - - 22 / + + COALESCE ( - 75, - 62 * - - 23 / - 74 + + ( 73 ) + CASE - 27 WHEN - 29 THEN 60 + - COUNT ( + 96 - 18 ) ELSE NULL END ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6566
SELECT DISTINCT - + 98 DIV - - 84
----
-1

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT - + 98 / - - 84
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT + + 78 * - + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-6567
SELECT + + 78 * - + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6568
SELECT ALL - 67 DIV - - MIN( + + 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - 67 / - - MIN ( + + 79 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT + COUNT( DISTINCT - 13 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6569
SELECT + COUNT ( DISTINCT - 13 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6570
SELECT ALL + 90 * SUM( 24 ) DIV + 72 + - + 87 + 10 + + - COUNT( * ) * - 43 + - 89 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + 90 * SUM ( 24 ) / + 72 + - + 87 + 10 + + - COUNT ( * ) * - 43 + - 89 AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6571
SELECT DISTINCT - MAX( + 23 ) * - + CAST( - - 10 AS SIGNED ) * - CASE WHEN 0 > 85 THEN NULL WHEN NOT CASE + 55 WHEN + ( + 82 ) + - 89 * - 69 THEN + COUNT( - 88 ) WHEN + CASE 57 WHEN + 89 THEN - 89 * COUNT( * ) WHEN 17 THEN NULL END THEN ( - 10 ) END IS NULL THEN NULL ELSE 83 + 48 END AS col0
----
-30130

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT - MAX ( + 23 ) * - + CAST ( - - 10 AS INTEGER ) * - CASE WHEN 0 > 85 THEN NULL WHEN NOT CASE + 55 WHEN + ( + 82 ) + - 89 * - 69 THEN + COUNT ( - 88 ) WHEN + CASE 57 WHEN + 89 THEN - 89 * COUNT ( * ) WHEN 17 THEN NULL END THEN ( - 10 ) END IS NULL THEN NULL ELSE 83 + 48 END AS col0
----
-30130

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL 82 * - - 69 + - COUNT( * ) * + COUNT( - 87 ) + SUM( ALL + + 0 ) + + 19 AS col2
----
5676

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL 82 * - - 69 + - COUNT ( * ) * + COUNT ( - 87 ) + SUM ( ALL + + 0 ) + + 19 AS col2
----
5676

query II rowsort
SELECT + 36, + 76 * + ( + - ( + - 3 ) ) AS col1
----
36
228

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT - ( + - 0 ) * + + 28 * + 21 * 71 + - COUNT( * ) + + ( + - 94 )
----
-95

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT - ( + - 0 ) * + + 28 * + 21 * 71 + - COUNT ( * ) + + ( + - 94 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT + MIN( ALL - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-6575
SELECT + MIN ( ALL - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT DISTINCT + COUNT( - - 27 ) * - + 37 + - 25 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT + COUNT ( - - 27 ) * - + 37 + - 25 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL 19 * - - COUNT( * ) + + + 72
----
91

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL 19 * - - COUNT ( * ) + + + 72
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT MIN( ALL + + 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6578
SELECT MIN ( ALL + + 29 ) AS col2
----
29

query I rowsort
SELECT ALL - 52 + - 15 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6580
SELECT DISTINCT ( MIN( + + 13 ) ), 78 * 55 col0
----
13
4290

skipif mysql # not compatible
query II rowsort label-6580
SELECT DISTINCT ( MIN ( + + 13 ) ), 78 * 55 col0
----
13
4290

query I rowsort
SELECT - 36 * + 16 AS col2
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT - SUM( + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-6582
SELECT - SUM ( + 3 )
----
-3

query I rowsort
SELECT ALL 0 + - + 30
----
-30

query I rowsort
SELECT - COALESCE ( 39, 15, + 6 - - 38 )
----
-39

query I rowsort
SELECT ALL 64 * + 19 * - 41
----
-49856

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT MAX( ALL - 97 ) - - MAX( DISTINCT - 99 )
----
-196

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT MAX ( ALL - 97 ) - - MAX ( DISTINCT - 99 )
----
-196

query I rowsort
SELECT - + ( + + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT DISTINCT - 79 - - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT - 79 - - COUNT ( * )
----
-78

query I rowsort
SELECT + 3 - 44 AS col2
----
-41

query I rowsort
SELECT DISTINCT NULLIF ( - + 54, + 58 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT + MAX( - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-6591
SELECT + MAX ( - 13 )
----
-13

query I rowsort
SELECT - 44 * - ( - 25 ) * - 29 AS col0
----
31900

query I rowsort
SELECT ALL + 5 * 45 - - 96 * 88
----
8673

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT - COUNT( * ) * - 58 + + 61 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-6594
SELECT - COUNT ( * ) * - 58 + + 61 AS col0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL + CAST( 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + CAST ( 16 AS INTEGER ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6596
SELECT ALL + NULLIF ( + - 42, + - 57 + + CAST( + + 11 AS DECIMAL ) ) DIV 90 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL + NULLIF ( + - 42, + - 57 + + CAST ( + + 11 AS REAL ) ) / 90 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6597
SELECT ALL 45 DIV + - CASE - - COUNT( * ) WHEN + - 5 THEN NULL ELSE - - 30 END + - 21 + - - 16
----
-6

skipif mysql # not compatible
query I rowsort label-6597
SELECT ALL 45 / + - CASE - - COUNT ( * ) WHEN + - 5 THEN NULL ELSE - - 30 END + - 21 + - - 16
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT ALL ( + 43 ) / + 33 * 5 + + COUNT( * ) * - 0 * - + 7 - - CASE + 31 WHEN + - MIN( + 20 ) THEN + - 74 END AS col1, - 4
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-6598
SELECT ALL ( + 43 ) / + 33 * 5 + + COUNT ( * ) * - 0 * - + 7 - - CASE + 31 WHEN + - MIN ( + 20 ) THEN + - 74 END AS col1, - 4
----
NULL
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6599
SELECT ( CAST( NULL AS SIGNED ) ) AS col2, - 41
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-6599
SELECT ( CAST ( NULL AS INTEGER ) ) AS col2, - 41
----
NULL
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT ALL + COUNT( + 1 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL + COUNT ( + 1 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6601
SELECT ALL + ( + 16 ) AS col1, + 68 DIV - - ( + - MAX( - + 9 ) )
----
16
7

skipif mysql # not compatible
query II rowsort label-6601
SELECT ALL + ( + 16 ) AS col1, + 68 / - - ( + - MAX ( - + 9 ) )
----
16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT + 49 * COUNT( + ( + 20 ) )
----
49

skipif mysql # not compatible
query I rowsort label-6602
SELECT + 49 * COUNT ( + ( + 20 ) )
----
49

query I rowsort
SELECT - 55 + + - 69 col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL COUNT( * ) * 61 + + 18
----
79

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL COUNT ( * ) * 61 + + 18
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT ( - + CAST( - - 44 AS SIGNED ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6605
SELECT ( - + CAST ( - - 44 AS INTEGER ) ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT - COUNT( * ) + + 14 + - 1
----
12

skipif mysql # not compatible
query I rowsort label-6606
SELECT - COUNT ( * ) + + 14 + - 1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT - 19 + + 63 * + - 39 - COUNT( * )
----
-2477

skipif mysql # not compatible
query I rowsort label-6607
SELECT - 19 + + 63 * + - 39 - COUNT ( * )
----
-2477

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT - COUNT( * ) * 57 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-6608
SELECT - COUNT ( * ) * 57 AS col0
----
-57

query I rowsort
SELECT ALL - 12 * - 36
----
432

query I rowsort
SELECT NULLIF ( - + 36, - 69 )
----
-36

query I rowsort
SELECT DISTINCT - 36 * ( + 21 ) + - - NULLIF ( + 46, - + 80 ) AS col1
----
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT + COUNT( ALL NULLIF ( + 0, - 30 + - 80 ) ) * + COUNT( * ) + 45 - + 41 col2
----
5

skipif mysql # not compatible
query I rowsort label-6612
SELECT + COUNT ( ALL NULLIF ( + 0, - 30 + - 80 ) ) * + COUNT ( * ) + 45 - + 41 col2
----
5

query I rowsort
SELECT ALL + COALESCE ( + 98, - - 81 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6614
SELECT - MIN( - - 59 ) * + AVG ( CAST( NULL AS SIGNED ) ), 66 - - 81 * COALESCE ( 12, + COUNT( * ) ) + + 86 * + 76 * + + 41 AS col1
----
NULL
269014

skipif mysql # not compatible
query II rowsort label-6614
SELECT - MIN ( - - 59 ) * + AVG ( CAST ( NULL AS INTEGER ) ), 66 - - 81 * COALESCE ( 12, + COUNT ( * ) ) + + 86 * + 76 * + + 41 AS col1
----
NULL
269014

query I rowsort
SELECT ALL + 12 * - 67
----
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT ALL 8 * + COUNT( DISTINCT - 98 ) - 40
----
-32

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL 8 * + COUNT ( DISTINCT - 98 ) - 40
----
-32

query I rowsort
SELECT - 65 * - 68 * - 23
----
-101660

query I rowsort
SELECT ALL - 49 * - 52 AS col0
----
2548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6619
SELECT ALL CAST( + 64 AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6619
SELECT ALL CAST ( + 64 AS INTEGER ) AS col1
----
64

query I rowsort
SELECT - 29 * + - 53 AS col0
----
1537

query I rowsort
SELECT - NULLIF ( - + 19, - + 42 ) AS col0
----
19

query I rowsort
SELECT 84 + + ( 58 ) + 23 + 50 * 64 AS col2
----
3365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6623
SELECT - 65 + - - CAST( NULL AS SIGNED ) + + 55 + - 89 * - - 20 + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT - 65 + - - CAST ( NULL AS INTEGER ) + + 55 + - 89 * - - 20 + 5 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT ALL 4 * + 25 DIV - 24
----
-4

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL 4 * + 25 / - 24
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT + 88 + + NULLIF ( - 55, + + COUNT( * ) * - - 58 / + 88 ) * 33 AS col1
----
-1727

skipif mysql # not compatible
query I rowsort label-6625
SELECT + 88 + + NULLIF ( - 55, + + COUNT ( * ) * - - 58 / + 88 ) * 33 AS col1
----
-1727

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL - COUNT( * ) * - COUNT( * ) * 18 * - 92 + + - 63 * 91
----
-7389

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * 18 * - 92 + + - 63 * 91
----
-7389

query II rowsort
SELECT - 32 * 46, 32 * - 78 col0
----
-1472
-2496

query I rowsort
SELECT ALL - + 81 * COALESCE ( + 42, + 76 - + + 41, - 51 ) AS col2
----
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT - COALESCE ( COALESCE ( - MAX( ALL - 20 ), + ( COUNT( DISTINCT + - 2 ) ) ), + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-6629
SELECT - COALESCE ( COALESCE ( - MAX ( ALL - 20 ), + ( COUNT ( DISTINCT + - 2 ) ) ), + COUNT ( * ) )
----
-20

query I rowsort
SELECT + 15 + + + ( - 7 ) + + 33 col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6631
SELECT COUNT( * ) DIV + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6631
SELECT COUNT ( * ) / + ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT CAST( NULL AS SIGNED ) * - - 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT CAST ( NULL AS INTEGER ) * - - 10 col2
----
NULL

query II rowsort
SELECT 91 * - 50 AS col2, - 95 AS col0
----
-4550
-95

query I rowsort
SELECT ALL - 76 + - 36 AS col1
----
-112

query II rowsort
SELECT DISTINCT - 17 + - 57 + + 91 * - + 54 AS col2, 18 AS col0
----
-4988
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6636
SELECT DISTINCT + COALESCE ( 50, - 80 * - - 89 + - - 58 * + 95 + - 35 + + 46 DIV + 18 ) AS col1, COUNT( * ) AS col2
----
50
1

skipif mysql # not compatible
query II rowsort label-6636
SELECT DISTINCT + COALESCE ( 50, - 80 * - - 89 + - - 58 * + 95 + - 35 + + 46 / + 18 ) AS col1, COUNT ( * ) AS col2
----
50
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT - 95 DIV - - 96 col0
----
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT - 95 / - - 96 col0
----
0

query I rowsort
SELECT ALL 34 + 54
----
88

query I rowsort
SELECT NULLIF ( 11, + 57 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT MAX( DISTINCT 25 ) * + - 46 + + + 75 AS col1
----
-1075

skipif mysql # not compatible
query I rowsort label-6640
SELECT MAX ( DISTINCT 25 ) * + - 46 + + + 75 AS col1
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL 37 + + COUNT( * ) * + 5 + + MIN( ALL - 17 )
----
25

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL 37 + + COUNT ( * ) * + 5 + + MIN ( ALL - 17 )
----
25

query I rowsort
SELECT DISTINCT 54 * 68
----
3672

query I rowsort
SELECT ALL 89 * + 6
----
534

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT COUNT( DISTINCT + - 16 ) * - 7
----
-7

skipif mysql # not compatible
query I rowsort label-6644
SELECT COUNT ( DISTINCT + - 16 ) * - 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL COUNT( * ) - SUM( + 83 )
----
-82

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL COUNT ( * ) - SUM ( + 83 )
----
-82

query I rowsort
SELECT DISTINCT - 95 col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL - MAX( ALL NULLIF ( - 26, + - 31 ) ) - - 17
----
43

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL - MAX ( ALL NULLIF ( - 26, + - 31 ) ) - - 17
----
43

query II rowsort
SELECT 92, + 35 + 14 + 91 * - 13 AS col2
----
92
-1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6649
SELECT 89 + 72 * - - MIN( - + 73 ) * 33 + 80 - + ( + - 28 ) + - + 65 + - 20 * - 31 * - 32 * - + MAX( ALL 1 ) - 6 * 62 - ( + SUM( 69 ) + + 2 DIV + 64 )
----
-153917

skipif mysql # not compatible
query I rowsort label-6649
SELECT 89 + 72 * - - MIN ( - + 73 ) * 33 + 80 - + ( + - 28 ) + - + 65 + - 20 * - 31 * - 32 * - + MAX ( ALL 1 ) - 6 * 62 - ( + SUM ( 69 ) + + 2 / + 64 )
----
-153917

query I rowsort
SELECT ALL + 90 - + 19
----
71

query I rowsort
SELECT 8 * + 31 col1
----
248

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT ALL + 81 DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL + 81 / 61
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT 90 * - 55 * ( + 95 ) - + 13 DIV + 26
----
-470250

skipif mysql # not compatible
query I rowsort label-6653
SELECT 90 * - 55 * ( + 95 ) - + 13 / + 26
----
-470250

query I rowsort
SELECT 91 + + - 82
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6655
SELECT ALL 87 DIV - - 44 col0
----
1

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 87 / - - 44 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT MIN( - 82 ) * + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-6656
SELECT MIN ( - 82 ) * + COUNT ( * )
----
-82

onlyif mysql # DIV for integer division: 
query III rowsort label-6657
SELECT ALL 11 col1, 7 DIV 89 AS col0, - + NULLIF ( - 67, + 85 )
----
11
0
67

skipif mysql # not compatible
query III rowsort label-6657
SELECT ALL 11 col1, 7 / 89 AS col0, - + NULLIF ( - 67, + 85 )
----
11
0
67

query I rowsort
SELECT ALL - 31 * - 11 AS col2
----
341

query I rowsort
SELECT - 63 * + 72 + - 54
----
-4590

query I rowsort
SELECT ALL - + 54 * 69 AS col2
----
-3726

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT DISTINCT + - 91 * - + 62 * - COUNT( * ) AS col0
----
-5642

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT + - 91 * - + 62 * - COUNT ( * ) AS col0
----
-5642

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT - 87 + + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - 87 + + COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL - MIN( - - 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL - MIN ( - - 20 ) AS col0
----
-20

query I rowsort
SELECT + 29 * + - 44 + - 88 + + 98 * - - 82 AS col1
----
6672

onlyif mysql # aggregate syntax: 
query II rowsort label-6665
SELECT ( + + 16 ) * + + 80, COUNT( ALL - - 41 ) AS col1
----
1280
1

skipif mysql # not compatible
query II rowsort label-6665
SELECT ( + + 16 ) * + + 80, COUNT ( ALL - - 41 ) AS col1
----
1280
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT 55 - AVG ( + 0 ) + - CASE - ( - 44 ) WHEN - ( ( - + CAST( - + 91 AS SIGNED ) ) ) THEN 5 + + 44 + + 31 / + 8 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT 55 - AVG ( + 0 ) + - CASE - ( - 44 ) WHEN - ( ( - + CAST ( - + 91 AS INTEGER ) ) ) THEN 5 + + 44 + + 31 / + 8 END
----
NULL

query I rowsort
SELECT - 52 - + 19 * 49 + + 55 AS col2
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - - COALESCE ( - + 89, - + COUNT( * ), - 9 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-6668
SELECT - - COALESCE ( - + 89, - + COUNT ( * ), - 9 ) AS col0
----
-89

query II rowsort
SELECT + 74 AS col2, 90
----
74
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL + - 78 + COUNT( + 68 )
----
-77

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL + - 78 + COUNT ( + 68 )
----
-77

query I rowsort
SELECT ALL + 88 * + 65 AS col2
----
5720

query I rowsort
SELECT DISTINCT ( 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - MAX( ALL - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6673
SELECT - MAX ( ALL - 21 ) AS col1
----
21

query I rowsort
SELECT ( + 68 ) AS col0
----
68

query I rowsort
SELECT - - ( 31 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6676
SELECT ALL - + CASE + ( + 46 ) WHEN 35 * + NULLIF ( - 59, - 52 * - 30 ) * - + 50 + - CASE 87 WHEN - 57 DIV - + 7 THEN NULL ELSE + 42 END THEN + - 22 DIV COUNT( * ) + - COUNT( DISTINCT + 10 ) DIV + 43 WHEN + 89 DIV + NULLIF ( + ( 2 ), - 46 + - 59 * 66 ) THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - COUNT( * ) END + ( 71 + SUM( 52 ) ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL - + CASE + ( + 46 ) WHEN 35 * + NULLIF ( - 59, - 52 * - 30 ) * - + 50 + - CASE 87 WHEN - 57 / - + 7 THEN NULL ELSE + 42 END THEN + - 22 / COUNT ( * ) + - COUNT ( DISTINCT + 10 ) / + 43 WHEN + 89 / + NULLIF ( + ( 2 ), - 46 + - 59 * 66 ) THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END + ( 71 + SUM ( 52 ) ) AS col2
----
124

query I rowsort
SELECT + 59 + 87
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT + 29 DIV + + 16
----
1

skipif mysql # not compatible
query I rowsort label-6678
SELECT + 29 / + + 16
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT MAX( ALL - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6679
SELECT MAX ( ALL - 22 ) AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT 21 * 14 DIV + + 53 + 28 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6680
SELECT 21 * 14 / + + 53 + 28 AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6681
SELECT MAX( ALL + 77 ) AS col2, COUNT( * )
----
77
1

skipif mysql # not compatible
query II rowsort label-6681
SELECT MAX ( ALL + 77 ) AS col2, COUNT ( * )
----
77
1

query II rowsort
SELECT ALL - 21 AS col1, + 6 col1
----
-21
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6683
SELECT ALL 7 / + - CAST( NULL AS SIGNED ) col0, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-6683
SELECT ALL 7 / + - CAST ( NULL AS INTEGER ) col0, 10
----
NULL
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6684
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL 56 * + 47 * + + 23 * - 40 - + - 48
----
-2421392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6686
SELECT DISTINCT COUNT( * ) DIV - CAST( 32 AS SIGNED ) * + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT COUNT ( * ) / - CAST ( 32 AS INTEGER ) * + 90 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT ALL + 94 DIV + - 72 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL + 94 / + - 72 AS col0
----
-1

query I rowsort
SELECT DISTINCT 19 * + 23 - - + 83 AS col0
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-6689
SELECT COUNT( * ), - ( CASE + 15 WHEN - 34 + 4 * + - COUNT( * ) THEN + COUNT( * ) WHEN 33 + 76 THEN NULL END ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6689
SELECT COUNT ( * ), - ( CASE + 15 WHEN - 34 + 4 * + - COUNT ( * ) THEN + COUNT ( * ) WHEN 33 + 76 THEN NULL END ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6690
SELECT 63 * + 48 DIV SUM( - - 24 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-6690
SELECT 63 * + 48 / SUM ( - - 24 ) AS col0
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-6691
SELECT MIN( DISTINCT + 98 ) AS col2, - 19 AS col1
----
98
-19

skipif mysql # not compatible
query II rowsort label-6691
SELECT MIN ( DISTINCT + 98 ) AS col2, - 19 AS col1
----
98
-19

query I rowsort
SELECT + NULLIF ( + + 81, + 70 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ALL COUNT( * ) * - ( 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL COUNT ( * ) * - ( 20 ) AS col0
----
-20

query II rowsort
SELECT + 11 * 54 AS col2, + ( + 49 ) col0
----
594
49

query I rowsort
SELECT + ( 2 ) * + 32 col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + 17 col1
----
17

skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + 17 col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ALL + SUM( DISTINCT - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL + SUM ( DISTINCT - 23 ) AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT + 75 DIV - 19 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6698
SELECT + 75 / - 19 AS col1
----
-3

query I rowsort
SELECT ALL + 44 + 78 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + + 69 + + MIN( ALL + 81 ) AS col2
----
150

skipif mysql # not compatible
query I rowsort label-6700
SELECT + + 69 + + MIN ( ALL + 81 ) AS col2
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6701
SELECT - + 5 + - ( + CASE + 44 WHEN 64 THEN NULL WHEN ( - 18 ) THEN - 15 - + 39 + + 32 DIV + 62 + + 59 + + + NULLIF ( - COUNT( * ), - ( + 23 ) ) + + 7 DIV - 72 ELSE - MIN( DISTINCT 38 ) DIV - 80 END )
----
-5

skipif mysql # not compatible
query I rowsort label-6701
SELECT - + 5 + - ( + CASE + 44 WHEN 64 THEN NULL WHEN ( - 18 ) THEN - 15 - + 39 + + 32 / + 62 + + 59 + + + NULLIF ( - COUNT ( * ), - ( + 23 ) ) + + 7 / - 72 ELSE - MIN ( DISTINCT 38 ) / - 80 END )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL NULLIF ( + 26, - - MIN( DISTINCT + 64 ) )
----
26

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL NULLIF ( + 26, - - MIN ( DISTINCT + 64 ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT DISTINCT - COUNT( * ) + + + 68 - 74 + - + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT - COUNT ( * ) + + + 68 - 74 + - + COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT 3 * - 55 * - 93 + - COUNT( * ) * + 17 + - ( 71 ) + 77 AS col2
----
15334

skipif mysql # not compatible
query I rowsort label-6704
SELECT 3 * - 55 * - 93 + - COUNT ( * ) * + 17 + - ( 71 ) + 77 AS col2
----
15334

query I rowsort
SELECT + + 28 + + + 13 + - 97 AS col0
----
-56

query I rowsort
SELECT DISTINCT - - 14 + 76
----
90

query I rowsort
SELECT ALL - 48 + - - 28 col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6708
SELECT - + COUNT( * ) AS col0, 60
----
-1
60

skipif mysql # not compatible
query II rowsort label-6708
SELECT - + COUNT ( * ) AS col0, 60
----
-1
60

query I rowsort
SELECT ALL - + 38 + - 33 - + 75 + - 84 * - 26
----
2038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6710
SELECT - SUM( - 24 ) + - 75 * - + 54 DIV + + COUNT( * )
----
4074

skipif mysql # not compatible
query I rowsort label-6710
SELECT - SUM ( - 24 ) + - 75 * - + 54 / + + COUNT ( * )
----
4074

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL - + COUNT( * ) * - 69
----
69

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - + COUNT ( * ) * - 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT - COUNT( + 0 ) + + - 59 * + 67 * - + 99 AS col0
----
391346

skipif mysql # not compatible
query I rowsort label-6712
SELECT - COUNT ( + 0 ) + + - 59 * + 67 * - + 99 AS col0
----
391346

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6713
SELECT - 75 AS col1, + CAST( NULL AS SIGNED ) * + 89 + 11 * 50
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-6713
SELECT - 75 AS col1, + CAST ( NULL AS INTEGER ) * + 89 + 11 * 50
----
-75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT - COUNT( * ) + + 92 + - + 71 + + + MIN( DISTINCT 13 ) + + 70 AS col2, - ( - 63 ) AS col1
----
103
63

skipif mysql # not compatible
query II rowsort label-6714
SELECT - COUNT ( * ) + + 92 + - + 71 + + + MIN ( DISTINCT 13 ) + + 70 AS col2, - ( - 63 ) AS col1
----
103
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT - MAX( DISTINCT 18 ) * + 50 AS col0
----
-900

skipif mysql # not compatible
query I rowsort label-6715
SELECT - MAX ( DISTINCT 18 ) * + 50 AS col0
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - ( + 60 ) * 81 + + MIN( ALL + 0 ) AS col2
----
-4860

skipif mysql # not compatible
query I rowsort label-6716
SELECT - ( + 60 ) * 81 + + MIN ( ALL + 0 ) AS col2
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL ( - ( + - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL ( - ( + - COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT ALL + 98 * - MAX( - 31 ) AS col0
----
3038

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL + 98 * - MAX ( - 31 ) AS col0
----
3038

query I rowsort
SELECT - ( 63 ) * 20
----
-1260

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT DISTINCT + 8 DIV NULLIF ( + 60, + 90 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT + 8 / NULLIF ( + 60, + 90 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT - ( - 98 ) * 69 DIV - + 61 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-6721
SELECT - ( - 98 ) * 69 / - + 61 AS col2
----
-110

query I rowsort
SELECT + 59 * + 47 AS col0
----
2773

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT - 81 * - MIN( - - 49 ) * - + 64 + - COALESCE ( + + 28, + 37 )
----
-254044

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT - 81 * - MIN ( - - 49 ) * - + 64 + - COALESCE ( + + 28, + 37 )
----
-254044

onlyif mysql # aggregate syntax: 
query II rowsort label-6724
SELECT ( + COUNT( DISTINCT - - 88 ) ), 32 AS col1
----
1
32

skipif mysql # not compatible
query II rowsort label-6724
SELECT ( + COUNT ( DISTINCT - - 88 ) ), 32 AS col1
----
1
32

query I rowsort
SELECT ALL + NULLIF ( + 30, + 90 )
----
30

query I rowsort
SELECT ALL - 90 * - - 42 * - 17 * - 3 * + 54
----
-10410120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT ALL - CASE WHEN 32 IS NOT NULL THEN + 39 * + 53 * + ( + 47 ) + - - 68 ELSE NULL END * 28 + CAST( - + 57 AS SIGNED )
----
-2722133

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL - CASE WHEN 32 IS NOT NULL THEN + 39 * + 53 * + ( + 47 ) + - - 68 ELSE NULL END * 28 + CAST ( - + 57 AS INTEGER )
----
-2722133

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT - ( + 19 ) * 30 + - COUNT( * ) AS col0
----
-571

skipif mysql # not compatible
query I rowsort label-6728
SELECT - ( + 19 ) * 30 + - COUNT ( * ) AS col0
----
-571

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - + ( - + 34 ) * - - ( + COUNT( * ) ) + - 36 + 92
----
90

skipif mysql # not compatible
query I rowsort label-6729
SELECT - + ( - + 34 ) * - - ( + COUNT ( * ) ) + - 36 + 92
----
90

query I rowsort
SELECT ALL - - 17 * - - 13 + - 67
----
154

onlyif mysql # DIV for integer division: 
query II rowsort label-6731
SELECT + + 32 * + 9, - 24 DIV + COALESCE ( + 88, - + 71 + 90 ) AS col2
----
288
0

skipif mysql # not compatible
query II rowsort label-6731
SELECT + + 32 * + 9, - 24 / + COALESCE ( + 88, - + 71 + 90 ) AS col2
----
288
0

query I rowsort
SELECT + 16 * - 34 * + + 9 * ( - + 28 ) + 67
----
137155

query I rowsort
SELECT DISTINCT + 10 * 7
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6734
SELECT DISTINCT - - COUNT( - 38 ) * - 12 DIV 36 + + + 34 + 21 * + ( - - 73 )
----
1567

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT - - COUNT ( - 38 ) * - 12 / 36 + + + 34 + 21 * + ( - - 73 )
----
1567

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT ALL - SUM( ALL 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - SUM ( ALL 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT DISTINCT + 66 * COUNT( - 40 ) + - 5
----
61

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT + 66 * COUNT ( - 40 ) + - 5
----
61

query I rowsort
SELECT + + 33 * 64
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + + COUNT( * ) - + - MAX( - - 1 ) * + COUNT( * ) + 12 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6738
SELECT + + COUNT ( * ) - + - MAX ( - - 1 ) * + COUNT ( * ) + 12 AS col0
----
14

query I rowsort
SELECT + 41 * - 65 AS col0
----
-2665

query I rowsort
SELECT + - 56 - - 13
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT - - 50 DIV 22 + 77 + 41
----
120

skipif mysql # not compatible
query I rowsort label-6741
SELECT - - 50 / 22 + 77 + 41
----
120

query I rowsort
SELECT DISTINCT - 45 * - 95
----
4275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6743
SELECT DISTINCT 29 / - MIN( ALL + + CAST( NULL AS SIGNED ) ) col0, + 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-6743
SELECT DISTINCT 29 / - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) col0, + 59
----
NULL
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6744
SELECT ALL + + 6 - - COUNT( * ) + 60 + + + CAST( + + 91 AS SIGNED ) AS col1
----
158

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + + 6 - - COUNT ( * ) + 60 + + + CAST ( + + 91 AS INTEGER ) AS col1
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL - 66 * - + COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - 66 * - + COUNT ( * ) col2
----
66

query I rowsort
SELECT + 72 * 61
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL 78 * + MAX( - 80 ) AS col2
----
-6240

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL 78 * + MAX ( - 80 ) AS col2
----
-6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6748
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6749
SELECT 3 AS col2, CAST( NULL AS DECIMAL ) AS col2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6749
SELECT 3 AS col2, CAST ( NULL AS REAL ) AS col2
----
3
NULL

query I rowsort
SELECT ALL 72 * 18 AS col1
----
1296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6751
SELECT ALL 30 * - + 53 * + + 37 DIV - + COUNT( * ) AS col1
----
58830

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL 30 * - + 53 * + + 37 / - + COUNT ( * ) AS col1
----
58830

query I rowsort
SELECT + 36 + 39
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT - COUNT( * ) - 75 * 63
----
-4726

skipif mysql # not compatible
query I rowsort label-6753
SELECT - COUNT ( * ) - 75 * 63
----
-4726

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6754
SELECT + ( + CAST( NULL AS DECIMAL ) ) + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT + ( + CAST ( NULL AS REAL ) ) + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT ALL - ( CAST( - 92 AS SIGNED ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - ( CAST ( - 92 AS INTEGER ) ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT COUNT( * ) * 64 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-6756
SELECT COUNT ( * ) * 64 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT ALL + 31 + + CASE + COUNT( * ) WHEN + 92 * - - 19 THEN NULL WHEN - COALESCE ( - 22, - 3 * + + 62 * - NULLIF ( + 9, - 18 ) ) THEN - - 85 END * - 29 + - - NULLIF ( - - 8, COUNT( * ) * - + 68 ) + 52 / - COUNT( * ) * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + 31 + + CASE + COUNT ( * ) WHEN + 92 * - - 19 THEN NULL WHEN - COALESCE ( - 22, - 3 * + + 62 * - NULLIF ( + 9, - 18 ) ) THEN - - 85 END * - 29 + - - NULLIF ( - - 8, COUNT ( * ) * - + 68 ) + 52 / - COUNT ( * ) * 22
----
NULL

query I rowsort
SELECT DISTINCT 29 + + 40 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT DISTINCT - CASE + MAX( DISTINCT - 75 ) WHEN - 61 / + ( - NULLIF ( 65, - - 33 / + COUNT( * ) ) ) + 38 THEN + 61 WHEN + 67 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT - CASE + MAX ( DISTINCT - 75 ) WHEN - 61 / + ( - NULLIF ( 65, - - 33 / + COUNT ( * ) ) ) + 38 THEN + 61 WHEN + 67 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + ( 17 ) + + 97 * - + 60
----
-5803

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL - COUNT( * ) + + 92
----
91

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - COUNT ( * ) + + 92
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT 17 + - - NULLIF ( + ( + + 83 ), - - 43 * - CAST( NULL AS SIGNED ) / COUNT( DISTINCT - 98 ) * + - 57 / - 54 * - - 80 + - AVG ( + - 36 ) - + 74 ) * - 29
----
-2390

skipif mysql # not compatible
query I rowsort label-6762
SELECT 17 + - - NULLIF ( + ( + + 83 ), - - 43 * - CAST ( NULL AS INTEGER ) / COUNT ( DISTINCT - 98 ) * + - 57 / - 54 * - - 80 + - AVG ( + - 36 ) - + 74 ) * - 29
----
-2390

query I rowsort
SELECT 23 * + 49 AS col1
----
1127

query I rowsort
SELECT - 34 * - 88 * + 79 + - + 78 col2
----
236290

query I rowsort
SELECT + ( 53 ) * + 93 - 34 + - + 46 AS col0
----
4849

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT - + COUNT( * ) * + NULLIF ( + 28, 39 ) - + + 26 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - + COUNT ( * ) * + NULLIF ( + 28, 39 ) - + + 26 AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6767
SELECT ALL + + CAST( NULL AS SIGNED ) + + + COUNT( * ) / - - ( - 37 ) + + - 23 / COUNT( ALL 41 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL + + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) / - - ( - 37 ) + + - 23 / COUNT ( ALL 41 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6768
SELECT DISTINCT - 71 AS col0, COUNT( * ) + + CASE + 64 WHEN - 76 + 43 THEN + - CAST( + ( - + 88 ) AS SIGNED ) - - 63 WHEN MAX( 29 ) + + 88 + - - MIN( ALL - 28 ) THEN NULL WHEN + - CAST( + - 67 AS SIGNED ) * - 76 THEN NULL ELSE 19 END
----
-71
20

skipif mysql # not compatible
query II rowsort label-6768
SELECT DISTINCT - 71 AS col0, COUNT ( * ) + + CASE + 64 WHEN - 76 + 43 THEN + - CAST ( + ( - + 88 ) AS INTEGER ) - - 63 WHEN MAX ( 29 ) + + 88 + - - MIN ( ALL - 28 ) THEN NULL WHEN + - CAST ( + - 67 AS INTEGER ) * - 76 THEN NULL ELSE 19 END
----
-71
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6769
SELECT - + 26 * 54 - COUNT( * ) AS col2, 63 DIV + COUNT( * )
----
-1405
63

skipif mysql # not compatible
query II rowsort label-6769
SELECT - + 26 * 54 - COUNT ( * ) AS col2, 63 / + COUNT ( * )
----
-1405
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT 91 * + 22 - - + 50 - + 69 * - 18 * - COUNT( * ) * + + 16 * + + 62 AS col0
----
-1230012

skipif mysql # not compatible
query I rowsort label-6770
SELECT 91 * + 22 - - + 50 - + 69 * - 18 * - COUNT ( * ) * + + 16 * + + 62 AS col0
----
-1230012

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT ALL + 57 DIV - - 67
----
0

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL + 57 / - - 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6772
SELECT - CASE + COUNT( * ) WHEN + 71 + + COUNT( ALL - 49 ) THEN + 84 * - 21 * 37 + - 19 END, 90 DIV - MAX( DISTINCT + 63 ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6772
SELECT - CASE + COUNT ( * ) WHEN + 71 + + COUNT ( ALL - 49 ) THEN + 84 * - 21 * 37 + - 19 END, 90 / - MAX ( DISTINCT + 63 ) col0
----
NULL
-1

query I rowsort
SELECT + 39 - - 99 AS col1
----
138

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6774
SELECT ALL - 16 * - CASE SUM( + - 19 ) WHEN + CAST( NULL AS DECIMAL ) * - 67 THEN + 73 WHEN + 22 THEN NULL END * + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - 16 * - CASE SUM ( + - 19 ) WHEN + CAST ( NULL AS REAL ) * - 67 THEN + 73 WHEN + 22 THEN NULL END * + 39 AS col0
----
NULL

query I rowsort
SELECT - 48 + + 55 AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6776
SELECT ALL - 5 * - 38 * + - 79 + 82 AS col1, + COUNT( * ) * - - 55 + 72 + - COUNT( 3 ) * + - 73 - + + 29 AS col2
----
-14928
171

skipif mysql # not compatible
query II rowsort label-6776
SELECT ALL - 5 * - 38 * + - 79 + 82 AS col1, + COUNT ( * ) * - - 55 + 72 + - COUNT ( 3 ) * + - 73 - + + 29 AS col2
----
-14928
171

query II rowsort
SELECT - + 94 AS col2, 10
----
-94
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT + 70 + + COUNT( ALL + 34 ) + - 43 + + 39 - + - ( + 67 )
----
134

skipif mysql # not compatible
query I rowsort label-6778
SELECT + 70 + + COUNT ( ALL + 34 ) + - 43 + + 39 - + - ( + 67 )
----
134

query I rowsort
SELECT 76 * + 85 col2
----
6460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT CAST( + - 36 AS SIGNED ) + + CASE + 53 WHEN 69 + 57 + 86 * - 70 / 92 + + 44 THEN NULL ELSE 65 - + + 34 END + ( + CAST( - 11 AS SIGNED ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6780
SELECT CAST ( + - 36 AS INTEGER ) + + CASE + 53 WHEN 69 + 57 + 86 * - 70 / 92 + + 44 THEN NULL ELSE 65 - + + 34 END + ( + CAST ( - 11 AS INTEGER ) ) AS col0
----
-16

query I rowsort
SELECT 66 * 38 AS col2
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT COUNT( * ) + + + 87
----
88

skipif mysql # not compatible
query I rowsort label-6782
SELECT COUNT ( * ) + + + 87
----
88

query I rowsort
SELECT ALL 77 + - 68 * + NULLIF ( + 61, + 4 + + 32 + - - 11 )
----
-4071

query I rowsort
SELECT ALL 88 + + 94
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT 1 * - 60 / + NULLIF ( + COUNT( * ), COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT 1 * - 60 / + NULLIF ( + COUNT ( * ), COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ALL + COUNT( * ) + 99 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL + COUNT ( * ) + 99 AS col1
----
100

query I rowsort
SELECT 17 * + - 58
----
-986

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT SUM( DISTINCT + 76 ), 85 * - 72 col1
----
76
-6120

skipif mysql # not compatible
query II rowsort label-6788
SELECT SUM ( DISTINCT + 76 ), 85 * - 72 col1
----
76
-6120

query I rowsort
SELECT 26 * 59
----
1534

query I rowsort
SELECT ALL + 0 + - 26
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6791
SELECT + COUNT( * ) DIV - 14 - 16 + 70 + 91 DIV COUNT( * ) DIV - + 79 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6791
SELECT + COUNT ( * ) / - 14 - 16 + 70 + 91 / COUNT ( * ) / - + 79 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6792
SELECT ALL MIN( + - 19 ) - + + 99 DIV 10 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL MIN ( + - 19 ) - + + 99 / 10 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT 16 + + 27 / - - 3 * CASE 48 WHEN COUNT( * ) * - 58 + + 43 * 1 THEN NULL WHEN + COUNT( * ) - - - 50 THEN + 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT 16 + + 27 / - - 3 * CASE 48 WHEN COUNT ( * ) * - 58 + + 43 * 1 THEN NULL WHEN + COUNT ( * ) - - - 50 THEN + 0 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 22 AS col0
----
22

query I rowsort
SELECT ALL - ( 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT + - COUNT( * ) * - 17 + + 64 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6796
SELECT + - COUNT ( * ) * - 17 + + 64 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6797
SELECT 16 * - CAST( + + 72 AS SIGNED )
----
-1152

skipif mysql # not compatible
query I rowsort label-6797
SELECT 16 * - CAST ( + + 72 AS INTEGER )
----
-1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6798
SELECT ALL + + 35 * + SUM( DISTINCT + - 83 ) * 49 * - - 37 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL + + 35 * + SUM ( DISTINCT + - 83 ) * 49 * - - 37 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6799
SELECT DISTINCT - 12 DIV - NULLIF ( + COUNT( * ), + - 19 * - + 4 )
----
12

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT - 12 / - NULLIF ( + COUNT ( * ), + - 19 * - + 4 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT COUNT( * ) DIV + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6800
SELECT COUNT ( * ) / + + COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6801
SELECT ALL + CASE - + 2 WHEN 41 THEN + - COALESCE ( + 3, + - COUNT( * ) * - 16 + - - ( CAST( NULL AS SIGNED ) ), 77 * + 95 * CASE + + 71 WHEN + 49 THEN 90 END * COUNT( * ) + + ( + + 15 ) + 60 * 18 ) * + 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL + CASE - + 2 WHEN 41 THEN + - COALESCE ( + 3, + - COUNT ( * ) * - 16 + - - ( CAST ( NULL AS INTEGER ) ), 77 * + 95 * CASE + + 71 WHEN + 49 THEN 90 END * COUNT ( * ) + + ( + + 15 ) + 60 * 18 ) * + 76 END AS col0
----
NULL

query I rowsort
SELECT 56 * 92 AS col1
----
5152

onlyif mysql # aggregate syntax: 
query II rowsort label-6803
SELECT - 28 AS col2, 29 * + CASE 27 WHEN - + 93 * COUNT( * ) THEN + 55 WHEN - + ( - + COALESCE ( ( + + 96 ), + + 14 + 60 * 70 ) ) THEN + + SUM( - 52 ) ELSE NULL END * 76 / 14
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-6803
SELECT - 28 AS col2, 29 * + CASE 27 WHEN - + 93 * COUNT ( * ) THEN + 55 WHEN - + ( - + COALESCE ( ( + + 96 ), + + 14 + 60 * 70 ) ) THEN + + SUM ( - 52 ) ELSE NULL END * 76 / 14
----
-28
NULL

query II rowsort
SELECT - 30 AS col0, 71
----
-30
71

query I rowsort
SELECT + 95 * 78 AS col1
----
7410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6806
SELECT DISTINCT 36 + - COUNT( * ) * + - CASE - 3 WHEN + CAST( - + 7 AS SIGNED ) + - CASE 56 WHEN - + MAX( DISTINCT 14 ) THEN - - 34 * COUNT( * ) + 27 WHEN COUNT( * ) THEN + 9 END + + - 27 - 40 THEN - COUNT( ALL + 12 ) + + 69 END * + 6 + + NULLIF ( + 33, + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT 36 + - COUNT ( * ) * + - CASE - 3 WHEN + CAST ( - + 7 AS INTEGER ) + - CASE 56 WHEN - + MAX ( DISTINCT 14 ) THEN - - 34 * COUNT ( * ) + 27 WHEN COUNT ( * ) THEN + 9 END + + - 27 - 40 THEN - COUNT ( ALL + 12 ) + + 69 END * + 6 + + NULLIF ( + 33, + 47 )
----
NULL

query I rowsort
SELECT + 59 * + 49 * 29
----
83839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT ALL + COUNT( 33 ) * 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + COUNT ( 33 ) * 80 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 41 + 66
----
107

query I rowsort
SELECT - 47 + + 19 * - 89
----
-1738

query I rowsort
SELECT + 53 - - 43 - 84 * + 32
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT - NULLIF ( + + 29, - 33 ) + + COALESCE ( - + 84, + COUNT( * ) * + COUNT( DISTINCT 68 ), + 71 )
----
-113

skipif mysql # not compatible
query I rowsort label-6812
SELECT - NULLIF ( + + 29, - 33 ) + + COALESCE ( - + 84, + COUNT ( * ) * + COUNT ( DISTINCT 68 ), + 71 )
----
-113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6813
SELECT + 29 - 55 * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT + 29 - 55 * CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT - CASE 77 WHEN - - 62 * - 37 * + - 22 + + - COUNT( * ) THEN - - 68 ELSE - + 23 END AS col1
----
23

skipif mysql # not compatible
query I rowsort label-6814
SELECT - CASE 77 WHEN - - 62 * - 37 * + - 22 + + - COUNT ( * ) THEN - - 68 ELSE - + 23 END AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6815
SELECT + NULLIF ( 29, MAX( ALL CAST( NULL AS SIGNED ) ) )
----
29

skipif mysql # not compatible
query I rowsort label-6815
SELECT + NULLIF ( 29, MAX ( ALL CAST ( NULL AS INTEGER ) ) )
----
29

query I rowsort
SELECT + NULLIF ( 12, - COALESCE ( AVG ( + 88 ), - AVG ( - 70 ) ) * + - 61 * + 76 )
----
12

query I rowsort
SELECT ( 48 ) AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT ALL + + 99 * + - 57 - + 17 + - 98 DIV 73 + 63 DIV - - 21
----
-5658

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL + + 99 * + - 57 - + 17 + - 98 / 73 + 63 / - - 21
----
-5658

onlyif mysql # DIV for integer division: 
query I rowsort label-6819
SELECT DISTINCT 65 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT 65 / + 83 AS col2
----
0

query I rowsort
SELECT + 5 + - - 41 AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT ALL 5 * + NULLIF ( + 27, - + 46 * - 81 + + 57 ) * 79 - 6 DIV 70 - + ( + + 3 ) AS col2
----
10662

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL 5 * + NULLIF ( + 27, - + 46 * - 81 + + 57 ) * 79 - 6 / 70 - + ( + + 3 ) AS col2
----
10662

query I rowsort
SELECT + + 95 * + - 68 * - 31 * - - 21 - - 30
----
4205490

query I rowsort
SELECT + - 20 + + - 99 AS col2
----
-119

query I rowsort
SELECT DISTINCT 6 * + 30
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-6825
SELECT + ( - 2 ) DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-6825
SELECT + ( - 2 ) / 70
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT 71 DIV 17 + - + 13 + - 98 * + 3 + - + 92 * + ( 23 ) + - 71 + 5 AS col0
----
-2485

skipif mysql # not compatible
query I rowsort label-6826
SELECT 71 / 17 + - + 13 + - 98 * + 3 + - + 92 * + ( 23 ) + - 71 + 5 AS col0
----
-2485

query I rowsort
SELECT + 94 * - 58
----
-5452

query I rowsort
SELECT ALL + - ( + + 63 ) AS col0
----
-63

query I rowsort
SELECT DISTINCT + ( 22 ) * + 23
----
506

query I rowsort
SELECT + - 68 + - 19 + - 38 * - 26 AS col0
----
901

query II rowsort
SELECT ALL + 83 * 78 * + 62 AS col1, + 93 AS col1
----
401388
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6832
SELECT - COALESCE ( + + 46, + - 27, + - 44 * + + COUNT( * ) * + COUNT( * ) * ( - 39 ) + 85 + + + 75 + + 56 DIV + 57 ) col0
----
-46

skipif mysql # not compatible
query I rowsort label-6832
SELECT - COALESCE ( + + 46, + - 27, + - 44 * + + COUNT ( * ) * + COUNT ( * ) * ( - 39 ) + 85 + + + 75 + + 56 / + 57 ) col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT + + NULLIF ( 95, - + NULLIF ( - 79, - 81 ) / - COALESCE ( ( + COALESCE ( - - 70, + COUNT( * ), 94 ) ), 3 + + 5 ) * - 8 + - 19 ) + + COUNT( * ) + + + 66 + 76 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-6833
SELECT + + NULLIF ( 95, - + NULLIF ( - 79, - 81 ) / - COALESCE ( ( + COALESCE ( - - 70, + COUNT ( * ), 94 ) ), 3 + + 5 ) * - 8 + - 19 ) + + COUNT ( * ) + + + 66 + 76 AS col2
----
238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6834
SELECT - 4 * + 0 DIV + ( + 22 ) + + + COUNT( - 89 ) - + + ( + 52 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6834
SELECT - 4 * + 0 / + ( + 22 ) + + + COUNT ( - 89 ) - + + ( + 52 ) AS col0
----
-51

query I rowsort
SELECT + 96 * 55 AS col1
----
5280

query I rowsort
SELECT - 66 + + + 12 col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6837
SELECT - 31 + + + CAST( - 29 AS SIGNED ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-6837
SELECT - 31 + + + CAST ( - 29 AS INTEGER ) AS col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6838
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), 61 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), 61 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 35 + + 77
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6840
SELECT - MAX( DISTINCT - - 64 ) + + - COUNT( * ) * + - 99 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT - MAX ( DISTINCT - - 64 ) + + - COUNT ( * ) * + - 99 * + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL - ( - 18 ) + + + 86 + - ( + 15 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT NULLIF ( + 6, + ( 64 ) / COUNT( * ) + 49 - - - 39 * + 33 - + 79 + - ( - 41 ) + - 87 - - ( - 98 ) * - + 58 * 29 + 49 + - 25 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT NULLIF ( + 6, + ( 64 ) / COUNT ( * ) + 49 - - - 39 * + 33 - + 79 + - ( - 41 ) + - 87 - - ( - 98 ) * - + 58 * 29 + 49 + - 25 ) AS col0
----
6

query I rowsort
SELECT - 77 + + 53 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6844
SELECT DISTINCT CAST( - + COALESCE ( ( + + MAX( 7 ) ), 16 ) AS SIGNED ) / + 79 / SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT CAST ( - + COALESCE ( ( + + MAX ( 7 ) ), 16 ) AS INTEGER ) / + 79 / SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT - COUNT( * ) * 60
----
-60

skipif mysql # not compatible
query I rowsort label-6845
SELECT - COUNT ( * ) * 60
----
-60

query I rowsort
SELECT - 53 + + 6
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL - 0 - + - CASE + 26 WHEN NULLIF ( COUNT( * ), - 51 * + 38 * + 1 * COUNT( ALL 91 ) * - 55 ) + + 42 THEN NULL WHEN - + ( + 42 ) THEN - + 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - 0 - + - CASE + 26 WHEN NULLIF ( COUNT ( * ), - 51 * + 38 * + 1 * COUNT ( ALL 91 ) * - 55 ) + + 42 THEN NULL WHEN - + ( + 42 ) THEN - + 33 END AS col2
----
NULL

query I rowsort
SELECT - 41 * - 54 AS col0
----
2214

query I rowsort
SELECT + 6 + 87
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT - 17 * 47 * MIN( ALL - - 72 )
----
-57528

skipif mysql # not compatible
query I rowsort label-6850
SELECT - 17 * 47 * MIN ( ALL - - 72 )
----
-57528

query II rowsort
SELECT 61 AS col1, 76 AS col2
----
61
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT DISTINCT CAST( + - 19 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT CAST ( + - 19 AS INTEGER ) AS col1
----
-19

query II rowsort
SELECT 42 AS col2, - 90 AS col2
----
42
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6854
SELECT ALL ( 86 ) * CAST( - ( - 35 ) AS SIGNED ) col0
----
3010

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL ( 86 ) * CAST ( - ( - 35 ) AS INTEGER ) col0
----
3010

query I rowsort
SELECT DISTINCT + ( - 41 ) * - - 48 + - 91 * 23 * - 41 + + 90 AS col0
----
83935

query I rowsort
SELECT ALL + - CASE - - 75 WHEN + CASE - 37 WHEN - 67 THEN 86 + 92 ELSE 93 + - 59 + - - 95 END + + 30 * - 71 THEN + 15 END * + - NULLIF ( + 43, 9 ) * + 60
----
NULL

query I rowsort
SELECT - 51 * 32
----
-1632

query II rowsort
SELECT ALL + 87 col1, - 80 AS col1
----
87
-80

query I rowsort
SELECT + + 58 + + 44 + 34 AS col2
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT + - 83 DIV - 36 + - 52 + + - 96
----
-146

skipif mysql # not compatible
query I rowsort label-6860
SELECT + - 83 / - 36 + - 52 + + - 96
----
-146

onlyif mysql # DIV for integer division: 
query II rowsort label-6861
SELECT ALL + + 17 col1, + ( - - 70 ) DIV + + 63 AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-6861
SELECT ALL + + 17 col1, + ( - - 70 ) / + + 63 AS col2
----
17
1

query I rowsort
SELECT + - 72 * - - 77 AS col2
----
-5544

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT DISTINCT + + 57 AS col1, MIN( - 62 )
----
57
-62

skipif mysql # not compatible
query II rowsort label-6863
SELECT DISTINCT + + 57 AS col1, MIN ( - 62 )
----
57
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6864
SELECT + - 39 - - + CAST( + - SUM( DISTINCT - - 98 ) AS SIGNED ) AS col0, - 49 + ( - COUNT( * ) ) + + 23 * + + 5 * - + CASE + 43 WHEN + + 51 * COALESCE ( 39, + - 81 ) THEN NULL WHEN 43 THEN - ( + - 13 ) ELSE - CAST( NULL AS SIGNED ) END * 73 - 27 * - CAST( NULL AS DECIMAL )
----
-137
NULL

skipif mysql # not compatible
query II rowsort label-6864
SELECT + - 39 - - + CAST ( + - SUM ( DISTINCT - - 98 ) AS INTEGER ) AS col0, - 49 + ( - COUNT ( * ) ) + + 23 * + + 5 * - + CASE + 43 WHEN + + 51 * COALESCE ( 39, + - 81 ) THEN NULL WHEN 43 THEN - ( + - 13 ) ELSE - CAST ( NULL AS INTEGER ) END * 73 - 27 * - CAST ( NULL AS REAL )
----
-137
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT + - 23 DIV - - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT + - 23 / - - 43 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6866
SELECT ALL 68 DIV - - 20 + - 73
----
-70

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL 68 / - - 20 + - 73
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT DISTINCT 18 * 67 + + COUNT( * )
----
1207

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT 18 * 67 + + COUNT ( * )
----
1207

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT 79 DIV + - 78 - - 77
----
76

skipif mysql # not compatible
query I rowsort label-6868
SELECT 79 / + - 78 - - 77
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6869
SELECT - 50 DIV + 29
----
-1

skipif mysql # not compatible
query I rowsort label-6869
SELECT - 50 / + 29
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL 24 * - + COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL 24 * - + COUNT ( * ) AS col0
----
-24

query I rowsort
SELECT 69 * + 97
----
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT SUM( + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-6872
SELECT SUM ( + 87 )
----
87

query I rowsort
SELECT ALL 2 + + 49
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT DISTINCT MIN( 95 ) + - + 31 - 4 + + + 90 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT MIN ( 95 ) + - + 31 - 4 + + + 90 AS col1
----
150

query I rowsort
SELECT ( COALESCE ( - 64, + + ( - + 41 ) ) ) + + 47
----
-17

query II rowsort
SELECT ALL 72 * + 48 AS col0, + 95
----
3456
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL + ( 15 ) + COUNT( * ) + - - CAST( NULL AS SIGNED ) * + MIN( + + 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + ( 15 ) + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * + MIN ( + + 71 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT ALL + 13 * - 87, COUNT( * ) AS col0
----
-1131
1

skipif mysql # not compatible
query II rowsort label-6878
SELECT ALL + 13 * - 87, COUNT ( * ) AS col0
----
-1131
1

query I rowsort
SELECT ( - 47 ) + - 54
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT 17 * + ( - COUNT( * ) ) * + 99
----
-1683

skipif mysql # not compatible
query I rowsort label-6880
SELECT 17 * + ( - COUNT ( * ) ) * + 99
----
-1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT ALL + ( 30 ) * + - 92 + - + 4 + - CAST( + - 65 AS SIGNED )
----
-2699

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + ( 30 ) * + - 92 + - + 4 + - CAST ( + - 65 AS INTEGER )
----
-2699

query II rowsort
SELECT 7 - - + 15 AS col2, - 14 * + 36 AS col0
----
22
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT 16 + + 53 + - COUNT( - 50 ) + + COUNT( * ) * - - 69 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-6883
SELECT 16 + + 53 + - COUNT ( - 50 ) + + COUNT ( * ) * - - 69 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT ALL COUNT( * ) - COUNT( * ) * + 17 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL COUNT ( * ) - COUNT ( * ) * + 17 AS col2
----
-16

query I rowsort
SELECT ALL 58 * - ( + 50 ) AS col2
----
-2900

query I rowsort
SELECT DISTINCT - ( 45 ) * + - 27
----
1215

query I rowsort
SELECT 42 * + - 50 col2
----
-2100

query II rowsort
SELECT 16 + 86, 22 col1
----
102
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6889
SELECT MAX( ALL + - 6 ) DIV 1 + - 14
----
-20

skipif mysql # not compatible
query I rowsort label-6889
SELECT MAX ( ALL + - 6 ) / 1 + - 14
----
-20

query I rowsort
SELECT - NULLIF ( + 40, + 31 ) + + 17 AS col2
----
-23

query II rowsort
SELECT + 49 * - + 26 AS col2, + 68
----
-1274
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT DISTINCT - + COUNT( + + 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - + COUNT ( + + 87 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT COALESCE ( 42, + 50, - CAST( + - COUNT( * ) AS SIGNED ) * + - COUNT( * ) ) + + - 17 + + 36 + - NULLIF ( COUNT( * ), ( - + 65 ) ) + + CASE - 56 WHEN 7 * + 9 THEN + COUNT( * ) ELSE + - 38 + - 62 * + 95 END * + MIN( ALL 1 ) AS col1
----
-5868

skipif mysql # not compatible
query I rowsort label-6893
SELECT COALESCE ( 42, + 50, - CAST ( + - COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) ) + + - 17 + + 36 + - NULLIF ( COUNT ( * ), ( - + 65 ) ) + + CASE - 56 WHEN 7 * + 9 THEN + COUNT ( * ) ELSE + - 38 + - 62 * + 95 END * + MIN ( ALL 1 ) AS col1
----
-5868

query II rowsort
SELECT + ( + 43 ) AS col1, + 39 - + 55 AS col0
----
43
-16

query II rowsort
SELECT ALL + 49 + + + 78 * 14, + 52 col2
----
1141
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT + + 37 * - COUNT( * ) + + 56 + - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6896
SELECT + + 37 * - COUNT ( * ) + + 56 + - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT 22 * - + SUM( DISTINCT - 82 ) AS col0
----
1804

skipif mysql # not compatible
query I rowsort label-6897
SELECT 22 * - + SUM ( DISTINCT - 82 ) AS col0
----
1804

query I rowsort
SELECT DISTINCT - 99 * + + 20 AS col2
----
-1980

query I rowsort
SELECT ALL + 88 + + + 16 * - 66 * 95
----
-100232

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT COUNT( * ) + - + 44 * 56 + + 58
----
-2405

skipif mysql # not compatible
query I rowsort label-6900
SELECT COUNT ( * ) + - + 44 * 56 + + 58
----
-2405

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 56, + 69 ) + - 38 AS col1
----
-94

query I rowsort
SELECT + NULLIF ( 24, - 38 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6903
SELECT 28 * - + CAST( NULL AS SIGNED ) + - 42 AS col2, + ( - 6 ) * - ( + 61 ) + - COUNT( * ) + - - COUNT( * ) + + + 2 * 74 + - ( 9 ) + 96
----
NULL
601

skipif mysql # not compatible
query II rowsort label-6903
SELECT 28 * - + CAST ( NULL AS INTEGER ) + - 42 AS col2, + ( - 6 ) * - ( + 61 ) + - COUNT ( * ) + - - COUNT ( * ) + + + 2 * 74 + - ( 9 ) + 96
----
NULL
601

query I rowsort
SELECT ALL + 5 + + 44
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT 70 + + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-6905
SELECT 70 + + COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT + ( - 92 ) * + COUNT( * ) * + 21 * 17 + COUNT( * )
----
-32843

skipif mysql # not compatible
query I rowsort label-6906
SELECT + ( - 92 ) * + COUNT ( * ) * + 21 * 17 + COUNT ( * )
----
-32843

query I rowsort
SELECT 92 + 5 * 30
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT DISTINCT 13 * + COUNT( + - 51 )
----
13

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT 13 * + COUNT ( + - 51 )
----
13

query I rowsort
SELECT DISTINCT 25 - - 9 col0
----
34

query I rowsort
SELECT 11 * 21
----
231

query I rowsort
SELECT 36 * - + 17 * + - ( 48 ) + + + 44 AS col1
----
29420

query I rowsort
SELECT DISTINCT 60 - + 12
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6913
SELECT ALL 46 AS col2, + 87 + COUNT( 37 ) * - - 26 + + 6 DIV - 3 AS col2
----
46
111

skipif mysql # not compatible
query II rowsort label-6913
SELECT ALL 46 AS col2, + 87 + COUNT ( 37 ) * - - 26 + + 6 / - 3 AS col2
----
46
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6914
SELECT 37 * - 28 + + 15 + COALESCE ( + 80, - - CASE + COUNT( - + 57 ) WHEN - + CASE + NULLIF ( SUM( - - 21 ), - COUNT( * ) ) WHEN 2 THEN - + 12 + - 87 WHEN + - COUNT( * ) THEN NULL END THEN - 22 + - + 88 + 73 + 44 * CASE WHEN COUNT( * ) IS NOT NULL THEN - 23 END WHEN AVG ( ALL 86 ) * + 97 THEN NULL ELSE NULL END + + 74, 69 / + 42 + + MIN( DISTINCT + CAST( - 3 AS SIGNED ) ) * 0 ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT 37 * - 28 + + 15 + COALESCE ( + 80, - - CASE + COUNT ( - + 57 ) WHEN - + CASE + NULLIF ( SUM ( - - 21 ), - COUNT ( * ) ) WHEN 2 THEN - + 12 + - 87 WHEN + - COUNT ( * ) THEN NULL END THEN - 22 + - + 88 + 73 + 44 * CASE WHEN COUNT ( * ) IS NOT NULL THEN - 23 END WHEN AVG ( ALL 86 ) * + 97 THEN NULL ELSE NULL END + + 74, 69 / + 42 + + MIN ( DISTINCT + CAST ( - 3 AS INTEGER ) ) * 0 ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT 17 * COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT 17 * COUNT ( * ) AS col1
----
17

query II rowsort
SELECT 86 AS col0, ( + 70 ) + - - 35
----
86
105

query I rowsort
SELECT 35 * + 79
----
2765

onlyif mysql # aggregate syntax: 
query II rowsort label-6918
SELECT 67 AS col0, COALESCE ( COUNT( * ), - 32 * + 94 ) * + 2
----
67
2

skipif mysql # not compatible
query II rowsort label-6918
SELECT 67 AS col0, COALESCE ( COUNT ( * ), - 32 * + 94 ) * + 2
----
67
2

query I rowsort
SELECT 51 + + 59
----
110

query I rowsort
SELECT 25 * 69 AS col2
----
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT 61 + - MIN( - 3 ) - 95
----
-31

skipif mysql # not compatible
query I rowsort label-6921
SELECT 61 + - MIN ( - 3 ) - 95
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT - SUM( 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-6922
SELECT - SUM ( 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT 11 * MAX( ALL + 13 )
----
143

skipif mysql # not compatible
query I rowsort label-6923
SELECT 11 * MAX ( ALL + 13 )
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6924
SELECT ALL + CASE + 70 WHEN - COALESCE ( - + 5, + COALESCE ( + - CAST( NULL AS SIGNED ), - 24 + + 82 + ( + COUNT( 66 ) ) / - COUNT( * ) * 98 ) / - ( 58 ) + - 45 + 74 + 21 + + + 40 ) * 90 + 59 THEN + 24 END + MAX( ALL + 30 ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL + CASE + 70 WHEN - COALESCE ( - + 5, + COALESCE ( + - CAST ( NULL AS INTEGER ), - 24 + + 82 + ( + COUNT ( 66 ) ) / - COUNT ( * ) * 98 ) / - ( 58 ) + - 45 + 74 + 21 + + + 40 ) * 90 + 59 THEN + 24 END + MAX ( ALL + 30 ) * - 91
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6925
SELECT ALL - 83 DIV 39 * + 58 + + COUNT( 61 ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL - 83 / 39 * + 58 + + COUNT ( 61 ) AS col1
----
-115

query I rowsort
SELECT 60 * + + 33 AS col1
----
1980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT DISTINCT - 50 + + CAST( NULL AS SIGNED ) * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT - 50 + + CAST ( NULL AS INTEGER ) * - 88
----
NULL

query I rowsort
SELECT 70 / - ( + CASE - - 61 WHEN + - 65 THEN 21 WHEN + + 63 THEN NULL END ) - - 95 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6929
SELECT + - COUNT( * ) + - CAST( - 84 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-6929
SELECT + - COUNT ( * ) + - CAST ( - 84 AS INTEGER )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT DISTINCT + COUNT( DISTINCT 15 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT + COUNT ( DISTINCT 15 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT + + 62 DIV + 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6931
SELECT + + 62 / + 59 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT - - 57 DIV 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6932
SELECT - - 57 / 18 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT - - COUNT( * ) * + 65 + - - SUM( + 2 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6933
SELECT - - COUNT ( * ) * + 65 + - - SUM ( + 2 ) AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6934
SELECT - COALESCE ( 77, COUNT( * ) + ( COALESCE ( + - 98, + 69 + + - 87 + + 85, CAST( NULL AS DECIMAL ), + 77, + - 82 * - 69 ) ) ) / - 78 * CAST( NULL AS SIGNED ) - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT - COALESCE ( 77, COUNT ( * ) + ( COALESCE ( + - 98, + 69 + + - 87 + + 85, CAST ( NULL AS REAL ), + 77, + - 82 * - 69 ) ) ) / - 78 * CAST ( NULL AS INTEGER ) - ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6935
SELECT DISTINCT + COUNT( * ) DIV + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT + COUNT ( * ) / + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT - 90 - 77 * 68 - + - 19
----
-5307

query II rowsort
SELECT ALL + - 29 AS col1, - 55 * - - 47
----
-29
-2585

onlyif mysql # aggregate syntax: 
query II rowsort label-6938
SELECT + 58 col0, COUNT( * ) * 33 AS col0
----
58
33

skipif mysql # not compatible
query II rowsort label-6938
SELECT + 58 col0, COUNT ( * ) * 33 AS col0
----
58
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT NULLIF ( COUNT( * ), + 20 * + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6939
SELECT NULLIF ( COUNT ( * ), + 20 * + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL 72 * - 79 AS col2
----
-5688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT DISTINCT + CAST( 79 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + CAST ( 79 AS INTEGER ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6942
SELECT COUNT( + - CAST( + 92 AS SIGNED ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6942
SELECT COUNT ( + - CAST ( + 92 AS INTEGER ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT - 77 * + - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6943
SELECT - 77 * + - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6944
SELECT DISTINCT COUNT( * ) DIV + - COALESCE ( ( + + 36 ), - 71 * + 79 * COUNT( * ) * + 88 + - + 23, - ( - COALESCE ( + 46, - 29 + + ( - + ( - - 60 ) ), - MIN( + 28 ) ) ) * COUNT( 85 ) ) * + - 29 + + + 71, COUNT( * ) AS col2
----
71
1

skipif mysql # not compatible
query II rowsort label-6944
SELECT DISTINCT COUNT ( * ) / + - COALESCE ( ( + + 36 ), - 71 * + 79 * COUNT ( * ) * + 88 + - + 23, - ( - COALESCE ( + 46, - 29 + + ( - + ( - - 60 ) ), - MIN ( + 28 ) ) ) * COUNT ( 85 ) ) * + - 29 + + + 71, COUNT ( * ) AS col2
----
71
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6945
SELECT DISTINCT COALESCE ( + 1, MAX( + + 37 ) + - 54 ) col0, COALESCE ( - + 73, + 17 + + - 57, - - NULLIF ( - MAX( DISTINCT + 66 ), + - 80 ) )
----
1
-73

skipif mysql # not compatible
query II rowsort label-6945
SELECT DISTINCT COALESCE ( + 1, MAX ( + + 37 ) + - 54 ) col0, COALESCE ( - + 73, + 17 + + - 57, - - NULLIF ( - MAX ( DISTINCT + 66 ), + - 80 ) )
----
1
-73

query I rowsort
SELECT ALL COALESCE ( + 87, - - 47 ) AS col0
----
87

query I rowsort
SELECT ALL 58 * 80
----
4640

query I rowsort
SELECT - 35 + - 31 * - + 35 AS col1
----
1050

query I rowsort
SELECT - 11 + - - 0 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT + 87 * + - MAX( DISTINCT - 94 ) AS col0
----
8178

skipif mysql # not compatible
query I rowsort label-6950
SELECT + 87 * + - MAX ( DISTINCT - 94 ) AS col0
----
8178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6951
SELECT + 93 * + 37 DIV + COUNT( * ) AS col0
----
3441

skipif mysql # not compatible
query I rowsort label-6951
SELECT + 93 * + 37 / + COUNT ( * ) AS col0
----
3441

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6952
SELECT ALL 99 + - - 63 + ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL 99 + - - 63 + ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - - 49 * - 13
----
-637

query I rowsort
SELECT DISTINCT - 54 + 68
----
14

query I rowsort
SELECT DISTINCT - 99 + + 80
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT ALL + 41 + - 98 - + MIN( - NULLIF ( - 78, CAST( NULL AS SIGNED ) ) ) AS col1
----
-135

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL + 41 + - 98 - + MIN ( - NULLIF ( - 78, CAST ( NULL AS INTEGER ) ) ) AS col1
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT + + COUNT( * ) - + 72 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6957
SELECT + + COUNT ( * ) - + 72 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-6958
SELECT ALL - ( 16 ), + CASE 4 WHEN + + 56 - - - ( + 58 ) THEN + MIN( ALL - - 11 ) * ( - 86 ) END AS col1
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-6958
SELECT ALL - ( 16 ), + CASE 4 WHEN + + 56 - - - ( + 58 ) THEN + MIN ( ALL - - 11 ) * ( - 86 ) END AS col1
----
-16
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6959
SELECT + + 66 + - 62 DIV + 48 + - 43 + - 66 + ( + 15 ) + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-6959
SELECT + + 66 + - 62 / + 48 + - 43 + - 66 + ( + 15 ) + COUNT ( * ) AS col0
----
-28

query I rowsort
SELECT + NULLIF ( 28, + 77 ) AS col1
----
28

query I rowsort
SELECT - 21 + + 79 AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6962
SELECT ALL 99 DIV - - ( - 77 ) + - 44 + + 26 * 17 * + COUNT( * ) * - + 26
----
-11537

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL 99 / - - ( - 77 ) + - 44 + + 26 * 17 * + COUNT ( * ) * - + 26
----
-11537

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + + 6 * 49 + - COUNT( * ) AS col0
----
293

skipif mysql # not compatible
query I rowsort label-6963
SELECT + + 6 * 49 + - COUNT ( * ) AS col0
----
293

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT ALL 30 DIV + 66 * - 35 + 99 + + 2 * 94 AS col1
----
287

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL 30 / + 66 * - 35 + 99 + + 2 * 94 AS col1
----
287

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT - CASE 82 WHEN + - 64 * 62 THEN - 81 * + 58 ELSE COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6965
SELECT - CASE 82 WHEN + - 64 * 62 THEN - 81 * + 58 ELSE COUNT ( * ) END AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT ALL - 70 DIV + - 35 - + 15
----
-13

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL - 70 / + - 35 - + 15
----
-13

query I rowsort
SELECT 48 * + 4 + - 65
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6968
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6968
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + ( + 68 ) * + + 90 * COALESCE ( + 65, - 52 ) AS col0
----
397800

query I rowsort
SELECT - 31 * + 33 col2
----
-1023

onlyif mysql # DIV for integer division: 
query I rowsort label-6971
SELECT ALL + 73 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL + 73 / + 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT + 1 * - + 87 DIV 65
----
-1

skipif mysql # not compatible
query I rowsort label-6972
SELECT + 1 * - + 87 / 65
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6973
SELECT 73 * + - 1 DIV CAST( + - 97 AS SIGNED ) * + + 9 DIV 26 + - + 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6973
SELECT 73 * + - 1 / CAST ( + - 97 AS INTEGER ) * + + 9 / 26 + - + 16 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6974
SELECT ALL COUNT( 75 ) DIV + - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL COUNT ( 75 ) / + - 79 AS col0
----
0

query I rowsort
SELECT - 95 + 94 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6976
SELECT ALL COALESCE ( - 62, - + 90 + + 57 * + 92 ) DIV 5 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL COALESCE ( - 62, - + 90 + + 57 * + 92 ) / 5 AS col1
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6977
SELECT 46 * + - ( - 18 ) + - 92 + 15 * 91 DIV + + 36 - - 95 + - 81 * COUNT( * ), 86 AS col1
----
787
86

skipif mysql # not compatible
query II rowsort label-6977
SELECT 46 * + - ( - 18 ) + - 92 + 15 * 91 / + + 36 - - 95 + - 81 * COUNT ( * ), 86 AS col1
----
787
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6978
SELECT ALL + 61 AS col2, COUNT( * )
----
61
1

skipif mysql # not compatible
query II rowsort label-6978
SELECT ALL + 61 AS col2, COUNT ( * )
----
61
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6979
SELECT 74 * - CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + 58 * 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT 74 * - CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + 58 * 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT COALESCE ( COALESCE ( + COUNT( * ), + SUM( 71 ) * - 72 * 4, 10 * + 84 ), 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6980
SELECT COALESCE ( COALESCE ( + COUNT ( * ), + SUM ( 71 ) * - 72 * 4, 10 * + 84 ), 92 ) AS col0
----
1

query I rowsort
SELECT - 35 * - 21
----
735

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT - COUNT( * ) + - 14 + + 58
----
43

skipif mysql # not compatible
query I rowsort label-6982
SELECT - COUNT ( * ) + - 14 + + 58
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT NULLIF ( + - COUNT( * ), 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-6983
SELECT NULLIF ( + - COUNT ( * ), 86 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6984
SELECT - 55 * + 41 + + CASE - + 59 WHEN + COUNT( + NULLIF ( - 37, + 23 / 96 ) ) * - - MIN( ALL + CAST( NULL AS SIGNED ) ) THEN NULL WHEN COUNT( * ) THEN + 65 + - + COUNT( * ) + - - 9 END + + CAST( + + COALESCE ( + - 10, 59 + - 8 ) AS SIGNED ) + - 31 + + 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT - 55 * + 41 + + CASE - + 59 WHEN + COUNT ( + NULLIF ( - 37, + 23 / 96 ) ) * - - MIN ( ALL + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN COUNT ( * ) THEN + 65 + - + COUNT ( * ) + - - 9 END + + CAST ( + + COALESCE ( + - 10, 59 + - 8 ) AS INTEGER ) + - 31 + + 99 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT ALL + 90 * - CAST( + 26 AS SIGNED ) + - 94
----
-2434

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + 90 * - CAST ( + 26 AS INTEGER ) + - 94
----
-2434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6986
SELECT - - 56 DIV COUNT( * ) + - 43
----
13

skipif mysql # not compatible
query I rowsort label-6986
SELECT - - 56 / COUNT ( * ) + - 43
----
13

query I rowsort
SELECT ALL + 50 + - 79 + + - 72 AS col0
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6988
SELECT DISTINCT - - 72 + - NULLIF ( - + CAST( + - CAST( + + 29 AS SIGNED ) AS SIGNED ), - COUNT( * ) ) DIV 83 * + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT - - 72 + - NULLIF ( - + CAST ( + - CAST ( + + 29 AS INTEGER ) AS INTEGER ), - COUNT ( * ) ) / 83 * + COUNT ( * )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6989
SELECT 20 + 66 * 61 * 46 * - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT 20 + 66 * 61 * 46 * - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL + COUNT( * ) * + - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + COUNT ( * ) * + - 79 AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6991
SELECT 66 + + COALESCE ( + 88, - COUNT( * ), AVG ( DISTINCT - 36 ) ) DIV - ( 46 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6991
SELECT 66 + + COALESCE ( + 88, - COUNT ( * ), AVG ( DISTINCT - 36 ) ) / - ( 46 ) AS col1
----
65

query I rowsort
SELECT DISTINCT - 68 * - ( - 77 )
----
-5236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT ALL 61 - CAST( 31 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL 61 - CAST ( 31 AS INTEGER ) AS col0
----
30

query I rowsort
SELECT ALL ( - 54 ) AS col0
----
-54

query I rowsort
SELECT ALL + 49 - 79 * + - 62
----
4947

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT + CAST( + 17 AS SIGNED ) col0
----
17

skipif mysql # not compatible
query I rowsort label-6996
SELECT + CAST ( + 17 AS INTEGER ) col0
----
17

query II rowsort
SELECT ALL - 58 AS col0, + NULLIF ( - 23, + 91 ) AS col2
----
-58
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT DISTINCT - + CAST( - 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT - + CAST ( - 47 AS INTEGER )
----
47

query I rowsort
SELECT 36 * 72 AS col0
----
2592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7000
SELECT DISTINCT COUNT( * ) DIV - 28 * + 40
----
0

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT COUNT ( * ) / - 28 * + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ( + + 5 ) - + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7001
SELECT ( + + 5 ) - + - COUNT ( * )
----
6

query I rowsort
SELECT ( + - 74 ) + 94
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT CAST( NULL AS SIGNED ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT CAST ( NULL AS INTEGER ) * - 0
----
NULL

query I rowsort
SELECT ALL + 79 + 91 AS col1
----
170

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT ALL - 24 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL - 24 / 40
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT + 6, COUNT( * ) - - - MAX( - 76 ) * - 77 + - ( MAX( ALL + 75 ) ) AS col2
----
6
-5926

skipif mysql # not compatible
query II rowsort label-7006
SELECT + 6, COUNT ( * ) - - - MAX ( - 76 ) * - 77 + - ( MAX ( ALL + 75 ) ) AS col2
----
6
-5926

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7007
SELECT 71 DIV + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7007
SELECT 71 / + COUNT ( * ) AS col1
----
71

query I rowsort
SELECT 41 * - 96
----
-3936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7009
SELECT DISTINCT - 6 DIV - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT - 6 / - COUNT ( * )
----
6

query I rowsort
SELECT ALL - COALESCE ( + + 23, + 76 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7011
SELECT 51 * - + 14, - 27 + + COUNT( * ) AS col1
----
-714
-26

skipif mysql # not compatible
query II rowsort label-7011
SELECT 51 * - + 14, - 27 + + COUNT ( * ) AS col1
----
-714
-26

query II rowsort
SELECT ALL CASE + AVG ( - 71 ) WHEN + + 61 THEN - 4 ELSE NULL END + - 86, 19 + + 74 AS col2
----
NULL
93

onlyif mysql # DIV for integer division: 
query II rowsort label-7013
SELECT ALL 46 DIV - 82 AS col0, + 82 * 35 AS col2
----
0
2870

skipif mysql # not compatible
query II rowsort label-7013
SELECT ALL 46 / - 82 AS col0, + 82 * 35 AS col2
----
0
2870

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL - 80 + + + 91 + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL - 80 + + + 91 + + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7015
SELECT DISTINCT - 86, + COUNT( DISTINCT + 56 ) * 5 + - - 81 AS col1
----
-86
86

skipif mysql # not compatible
query II rowsort label-7015
SELECT DISTINCT - 86, + COUNT ( DISTINCT + 56 ) * 5 + - - 81 AS col1
----
-86
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7016
SELECT 45 + + 84 DIV - COUNT( * ) + - + 9
----
-48

skipif mysql # not compatible
query I rowsort label-7016
SELECT 45 + + 84 / - COUNT ( * ) + - + 9
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7017
SELECT - ( 41 ) * - COUNT( * ) + + COUNT( * ) + - 41 + + + 76 * ( 22 ) DIV - SUM( DISTINCT + + 80 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7017
SELECT - ( 41 ) * - COUNT ( * ) + + COUNT ( * ) + - 41 + + + 76 * ( 22 ) / - SUM ( DISTINCT + + 80 ) AS col0
----
-19

query I rowsort
SELECT - 6 + + + 97 col0
----
91

query I rowsort
SELECT ALL + - 7 - - 10 * + 19
----
183

query I rowsort
SELECT + ( - 24 ) + + - 1 + + 82 * 63 AS col0
----
5141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT CAST( ( + + 82 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-7021
SELECT CAST ( ( + + 82 ) AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT + COUNT( * ) * + 36 col1
----
36

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT + COUNT ( * ) * + 36 col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7023
SELECT ALL 65, + CAST( NULL AS SIGNED ) * - COUNT( * ) * + 54 col1
----
65
NULL

skipif mysql # not compatible
query II rowsort label-7023
SELECT ALL 65, + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 54 col1
----
65
NULL

query I rowsort
SELECT ALL + ( - + 89 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT + COALESCE ( CAST( NULL AS SIGNED ), - 10 * - 52, - + 21 ) + + - 88 AS col2
----
432

skipif mysql # not compatible
query I rowsort label-7025
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - 10 * - 52, - + 21 ) + + - 88 AS col2
----
432

query I rowsort
SELECT ALL + 78 - 87
----
-9

query I rowsort
SELECT DISTINCT NULLIF ( - 68, 56 ) AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT + 56 + + + CAST( - - 49 AS SIGNED ) - 32 * - - 18 AS col1
----
-471

skipif mysql # not compatible
query I rowsort label-7028
SELECT + 56 + + + CAST ( - - 49 AS INTEGER ) - 32 * - - 18 AS col1
----
-471

query I rowsort
SELECT ALL ( 1 ) - 23
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL - MAX( ALL 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL - MAX ( ALL 42 )
----
-42

query I rowsort
SELECT - 9 + - - 7 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT 83 - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-7032
SELECT 83 - COUNT ( * )
----
82

query I rowsort
SELECT - ( + 75 ) + 71 col2
----
-4

query I rowsort
SELECT - 92 + - 83 + 74 AS col0
----
-101

query I rowsort
SELECT 32 * 78 + 1 col1
----
2497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT - 6 + - + COALESCE ( + 72, + - 4 + - 78, 64, - 4 * + 36 ) + - 42 * + + MAX( ALL + COALESCE ( - 5, - CAST( NULL AS SIGNED ) * + 45 * + 95 * + + 69 + + 97 + - CAST( NULL AS SIGNED ) + + 88 * - 64 ) ) AS col2
----
132

skipif mysql # not compatible
query I rowsort label-7036
SELECT - 6 + - + COALESCE ( + 72, + - 4 + - 78, 64, - 4 * + 36 ) + - 42 * + + MAX ( ALL + COALESCE ( - 5, - CAST ( NULL AS INTEGER ) * + 45 * + 95 * + + 69 + + 97 + - CAST ( NULL AS INTEGER ) + + 88 * - 64 ) ) AS col2
----
132

query I rowsort
SELECT ALL - 62 * 72 * + 32
----
-142848

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7038
SELECT DISTINCT - 73 * - NULLIF ( + 26, - CAST( NULL AS DECIMAL ) + - 80 ) AS col0
----
1898

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT - 73 * - NULLIF ( + 26, - CAST ( NULL AS REAL ) + - 80 ) AS col0
----
1898

query I rowsort
SELECT DISTINCT - 45 * - 33 + 0 AS col1
----
1485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7040
SELECT DISTINCT + 1 * + CAST( NULL AS SIGNED ) * - 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT + 1 * + CAST ( NULL AS INTEGER ) * - 58 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT NULLIF ( + 80, + 31 ) + - 60 * - 6 DIV - 3 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7041
SELECT NULLIF ( + 80, + 31 ) + - 60 * - 6 / - 3 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT DISTINCT - COUNT( + - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT - COUNT ( + - 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL + COUNT( * ) * + ( + 82 ) + + 30
----
112

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL + COUNT ( * ) * + ( + 82 ) + + 30
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT MAX( 95 ) AS col1, - 2 AS col0
----
95
-2

skipif mysql # not compatible
query II rowsort label-7044
SELECT MAX ( 95 ) AS col1, - 2 AS col0
----
95
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT 83 * - - CAST( NULL AS SIGNED ) + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT 83 * - - CAST ( NULL AS INTEGER ) + - 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT MIN( + - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7046
SELECT MIN ( + - 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT DISTINCT COUNT( * ) + - NULLIF ( - 42, - - 21 * + + COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT COUNT ( * ) + - NULLIF ( - 42, - - 21 * + + COUNT ( * ) )
----
43

query II rowsort
SELECT ALL 76 * + 25, 61 AS col2
----
1900
61

onlyif mysql # DIV for integer division: 
query II rowsort label-7049
SELECT 51 + 58 - 98 + - 46 DIV - + 98, 5 DIV + - 70 + + 77 AS col0
----
11
77

skipif mysql # not compatible
query II rowsort label-7049
SELECT 51 + 58 - 98 + - 46 / - + 98, 5 / + - 70 + + 77 AS col0
----
11
77

query I rowsort
SELECT ALL 87 + + 82 + + 84 * - + 13 * - 24 col0
----
26377

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT DISTINCT 5 * - MIN( 6 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT 5 * - MIN ( 6 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL + 48 + + COALESCE ( + 12, - - COUNT( * ) * - 92, - 53 )
----
60

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + 48 + + COALESCE ( + 12, - - COUNT ( * ) * - 92, - 53 )
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7053
SELECT ALL 40 * - 5 * - 80 AS col0, - COALESCE ( + - 10, + 6, 24 DIV + COUNT( - - ( + 85 ) ) ) + 53 * - + 25 AS col1
----
16000
-1315

skipif mysql # not compatible
query II rowsort label-7053
SELECT ALL 40 * - 5 * - 80 AS col0, - COALESCE ( + - 10, + 6, 24 / + COUNT ( - - ( + 85 ) ) ) + 53 * - + 25 AS col1
----
16000
-1315

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT COUNT( * ) * - + 6 + + - 56
----
-62

skipif mysql # not compatible
query I rowsort label-7054
SELECT COUNT ( * ) * - + 6 + + - 56
----
-62

query I rowsort
SELECT ALL + 42 - + - 55 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7056
SELECT - - SUM( DISTINCT CAST( + - 88 AS SIGNED ) ) + + 90 + - 86 * + 30 * - 46 AS col2, - ( + 5 )
----
118682
-5

skipif mysql # not compatible
query II rowsort label-7056
SELECT - - SUM ( DISTINCT CAST ( + - 88 AS INTEGER ) ) + + 90 + - 86 * + 30 * - 46 AS col2, - ( + 5 )
----
118682
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7057
SELECT + 0 DIV + 72 + 55
----
55

skipif mysql # not compatible
query I rowsort label-7057
SELECT + 0 / + 72 + 55
----
55

query I rowsort
SELECT + ( 4 ) AS col2
----
4

query I rowsort
SELECT ALL 83 - - 45 * + - 1 * + 84
----
-3697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7060
SELECT ALL - COALESCE ( - 34, 23 * 60 DIV + SUM( DISTINCT 84 ) - - 23, COUNT( ALL + NULLIF ( + 1, + 76 ) ) * + 55 ) * + - 97 + + - 44 AS col0
----
-3342

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL - COALESCE ( - 34, 23 * 60 / + SUM ( DISTINCT 84 ) - - 23, COUNT ( ALL + NULLIF ( + 1, + 76 ) ) * + 55 ) * + - 97 + + - 44 AS col0
----
-3342

onlyif mysql # aggregate syntax: 
query II rowsort label-7061
SELECT DISTINCT COUNT( + 17 ) AS col0, - 31 AS col2
----
1
-31

skipif mysql # not compatible
query II rowsort label-7061
SELECT DISTINCT COUNT ( + 17 ) AS col0, - 31 AS col2
----
1
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-7062
SELECT DISTINCT + 90 DIV - 88 AS col0, - 5 * + 40 * + 16
----
-1
-3200

skipif mysql # not compatible
query II rowsort label-7062
SELECT DISTINCT + 90 / - 88 AS col0, - 5 * + 40 * + 16
----
-1
-3200

query I rowsort
SELECT - - 21 * + - ( - - 92 ) * - 83 * + 14 + + 77
----
2245061

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT DISTINCT - + 38 * + 68 DIV + 67 col0
----
-38

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT - + 38 * + 68 / + 67 col0
----
-38

query II rowsort
SELECT ALL - 66 * + - 18 * - 57 AS col2, 15
----
-67716
15

query I rowsort
SELECT ALL 12 * COALESCE ( - 31, + - 83 + + ( + COALESCE ( + + 9, ( + + 97 ) ) ) + + - 40 ) + - 38
----
-410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT - 52 + 90 + + 45 DIV + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7067
SELECT - 52 + 90 + + 45 / + COUNT ( * ) AS col1
----
83

query I rowsort
SELECT ALL 42 + + 89
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7069
SELECT ALL COALESCE ( + COUNT( DISTINCT 12 ), + 2 + CAST( NULL AS SIGNED ) * - + 3 ) AS col2, 45
----
1
45

skipif mysql # not compatible
query II rowsort label-7069
SELECT ALL COALESCE ( + COUNT ( DISTINCT 12 ), + 2 + CAST ( NULL AS INTEGER ) * - + 3 ) AS col2, 45
----
1
45

query I rowsort
SELECT - 60 * 71 col0
----
-4260

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT + MIN( - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-7071
SELECT + MIN ( - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT ( + MIN( DISTINCT + + 25 ) )
----
25

skipif mysql # not compatible
query I rowsort label-7072
SELECT ( + MIN ( DISTINCT + + 25 ) )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7073
SELECT ALL - 24 * - + COUNT( DISTINCT 38 ) AS col0, 25 * + - COUNT( * ) * + 39 AS col0
----
24
-975

skipif mysql # not compatible
query II rowsort label-7073
SELECT ALL - 24 * - + COUNT ( DISTINCT 38 ) AS col0, 25 * + - COUNT ( * ) * + 39 AS col0
----
24
-975

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT 51 DIV 28 + - - 94 DIV + 27 + + 21 + + 18
----
43

skipif mysql # not compatible
query I rowsort label-7074
SELECT 51 / 28 + - - 94 / + 27 + + 21 + + 18
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ( - MIN( - + 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-7075
SELECT ( - MIN ( - + 40 ) )
----
40

query I rowsort
SELECT DISTINCT - 6 * + - ( 54 ) * - - 37 * + 89
----
1066932

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT - COUNT( * ) * 42 * - - 67 * + 49
----
-137886

skipif mysql # not compatible
query I rowsort label-7077
SELECT - COUNT ( * ) * 42 * - - 67 * + 49
----
-137886

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT - COUNT( * ) * + ( + - 62 ) * 29 + - 21 AS col1
----
1777

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT - COUNT ( * ) * + ( + - 62 ) * 29 + - 21 AS col1
----
1777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7079
SELECT ALL - NULLIF ( + AVG ( ALL - + CAST( NULL AS SIGNED ) ), + 70 / + COUNT( * ) + - + 28 ) * + + 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL - NULLIF ( + AVG ( ALL - + CAST ( NULL AS INTEGER ) ), + 70 / + COUNT ( * ) + - + 28 ) * + + 3 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT DISTINCT 0 * + - COALESCE ( 25, 8, + + 28 * + 42 ) + - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT 0 * + - COALESCE ( 25, 8, + + 28 * + 42 ) + - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT - 41 + - COUNT( * ) + + + 14
----
-28

skipif mysql # not compatible
query I rowsort label-7081
SELECT - 41 + - COUNT ( * ) + + + 14
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7082
SELECT DISTINCT + CASE + 51 WHEN + 41 + 46 + - 77 * 9 THEN - CAST( + 86 AS SIGNED ) + SUM( - 88 ) * + ( 47 ) + + 58 ELSE - 98 END col0, + COALESCE ( + 75, - + 73 ) AS col2
----
-98
75

skipif mysql # not compatible
query II rowsort label-7082
SELECT DISTINCT + CASE + 51 WHEN + 41 + 46 + - 77 * 9 THEN - CAST ( + 86 AS INTEGER ) + SUM ( - 88 ) * + ( 47 ) + + 58 ELSE - 98 END col0, + COALESCE ( + 75, - + 73 ) AS col2
----
-98
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7083
SELECT ALL - ( 0 ) * - - 90 DIV 52 col0
----
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - ( 0 ) * - - 90 / 52 col0
----
0

query I rowsort
SELECT ALL + ( 8 ) AS col0
----
8

query II rowsort
SELECT DISTINCT + 9 AS col2, + NULLIF ( - - 3, 70 + 14 )
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT - 5 + + + COUNT( * ) * + 75 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7086
SELECT - 5 + + + COUNT ( * ) * + 75 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT + 10 * + COUNT( ALL + 13 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7087
SELECT + 10 * + COUNT ( ALL + 13 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT NULLIF ( 61, + + CASE COUNT( * ) WHEN - 2 THEN NULL ELSE - 20 * + - 56 END ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7088
SELECT NULLIF ( 61, + + CASE COUNT ( * ) WHEN - 2 THEN NULL ELSE - 20 * + - 56 END ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT + COALESCE ( + ( + + COUNT( * ) ), - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-7089
SELECT + COALESCE ( + ( + + COUNT ( * ) ), - 63 )
----
1

query I rowsort
SELECT + 84 - + - 36 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT + - 33 * + + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7091
SELECT + - 33 * + + COUNT ( * ) AS col0
----
-33

query I rowsort
SELECT ALL 28 * + 73 AS col1
----
2044

query I rowsort
SELECT ALL + 33 * + 0 - - 52
----
52

query I rowsort
SELECT ALL + - 72 col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT - COUNT( + - 5 ) * - - COUNT( * ) * + + 78
----
-78

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT - COUNT ( + - 5 ) * - - COUNT ( * ) * + + 78
----
-78

query I rowsort
SELECT ALL + - 73 * - 67 - + 42 + 28 col2
----
4877

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL MIN( DISTINCT - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL MIN ( DISTINCT - 7 ) AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7098
SELECT + + 17 DIV + 64 * - COUNT( * ) + - 30 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7098
SELECT + + 17 / + 64 * - COUNT ( * ) + - 30 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT + + 6 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT + + 6 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7100
SELECT + 13 + - 39 - + 92 DIV + COUNT( * ) AS col1, + 57 AS col0
----
-118
57

skipif mysql # not compatible
query II rowsort label-7100
SELECT + 13 + - 39 - + 92 / + COUNT ( * ) AS col1, + 57 AS col0
----
-118
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL 57 + + 18 * - MAX( ALL + 57 ) AS col0
----
-969

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL 57 + + 18 * - MAX ( ALL + 57 ) AS col0
----
-969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7102
SELECT + 27 + - 26 + - CASE 11 WHEN - - 89 * + COUNT( * ) THEN 20 - + ( + - CAST( NULL AS SIGNED ) ) WHEN - NULLIF ( COUNT( * ), + + 27 ) * + 54 - + ( - 64 ) + - - CASE 7 WHEN - COALESCE ( + 96, 88 ) THEN COUNT( * ) / - 73 * - 0 * + + 15 + - ( - 17 ) * 17 + - 27 + + 59 / + 93 END * ( 21 ) / + 13 THEN NULL END - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT + 27 + - 26 + - CASE 11 WHEN - - 89 * + COUNT ( * ) THEN 20 - + ( + - CAST ( NULL AS INTEGER ) ) WHEN - NULLIF ( COUNT ( * ), + + 27 ) * + 54 - + ( - 64 ) + - - CASE 7 WHEN - COALESCE ( + 96, 88 ) THEN COUNT ( * ) / - 73 * - 0 * + + 15 + - ( - 17 ) * 17 + - 27 + + 59 / + 93 END * ( 21 ) / + 13 THEN NULL END - - 62
----
NULL

query I rowsort
SELECT + ( + + 14 ) + 49
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL + CASE + COUNT( * ) WHEN - 4 THEN - 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + CASE + COUNT ( * ) WHEN - 4 THEN - 25 END
----
NULL

query I rowsort
SELECT DISTINCT - 37 * ( - 82 ) AS col1
----
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL 30 * - COUNT( * ) * + 66 AS col0
----
-1980

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL 30 * - COUNT ( * ) * + 66 AS col0
----
-1980

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7107
SELECT - NULLIF ( + - 96, - 47 * - 95 / + - 62 - + 19 * - CASE - CAST( NULL AS SIGNED ) WHEN + 64 THEN + 30 WHEN + 36 THEN NULL END ) + - - 43 AS col2, 23
----
139
23

skipif mysql # not compatible
query II rowsort label-7107
SELECT - NULLIF ( + - 96, - 47 * - 95 / + - 62 - + 19 * - CASE - CAST ( NULL AS INTEGER ) WHEN + 64 THEN + 30 WHEN + 36 THEN NULL END ) + - - 43 AS col2, 23
----
139
23

query I rowsort
SELECT DISTINCT - ( - 8 ) * 37 * + 20
----
5920

onlyif mysql # aggregate syntax: 
query II rowsort label-7109
SELECT - 77 + - 50 AS col0, COUNT( * )
----
-127
1

skipif mysql # not compatible
query II rowsort label-7109
SELECT - 77 + - 50 AS col0, COUNT ( * )
----
-127
1

query I rowsort
SELECT ALL ( ( 18 ) ) AS col1
----
18

query I rowsort
SELECT ALL + 65 + + + 75
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7112
SELECT - 33 * - - 68 + + CASE + 50 WHEN - CAST( + + 50 AS SIGNED ) THEN 94 ELSE ( - + 82 ) * COUNT( * ) END
----
-2326

skipif mysql # not compatible
query I rowsort label-7112
SELECT - 33 * - - 68 + + CASE + 50 WHEN - CAST ( + + 50 AS INTEGER ) THEN 94 ELSE ( - + 82 ) * COUNT ( * ) END
----
-2326

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT DISTINCT COUNT( * ) * 21
----
21

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT COUNT ( * ) * 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL - SUM( + + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL - SUM ( + + 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL - 66 - 44 * 24 * CASE AVG ( - 78 ) WHEN 84 THEN NULL WHEN + - 60 + + + 80 THEN SUM( + CASE 94 WHEN - + 29 THEN - 39 WHEN + 44 THEN NULL ELSE NULL END ) + - 0 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL - 66 - 44 * 24 * CASE AVG ( - 78 ) WHEN 84 THEN NULL WHEN + - 60 + + + 80 THEN SUM ( + CASE 94 WHEN - + 29 THEN - 39 WHEN + 44 THEN NULL ELSE NULL END ) + - 0 ELSE NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT 44 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7116
SELECT 44 / 94 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7117
SELECT CAST( 48 AS SIGNED ) * + ( + 80 ) + + - 68 DIV 29 AS col2
----
3838

skipif mysql # not compatible
query I rowsort label-7117
SELECT CAST ( 48 AS INTEGER ) * + ( + 80 ) + + - 68 / 29 AS col2
----
3838

query I rowsort
SELECT DISTINCT + 76 * - NULLIF ( - 60, + 88 ) * - 30 * + - 88
----
12038400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7119
SELECT ALL + + 0 * - 82 * - + SUM( ALL CAST( 96 AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + + 0 * - 82 * - + SUM ( ALL CAST ( 96 AS INTEGER ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT - COUNT( * ) * - + 10 + - 38
----
-28

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT - COUNT ( * ) * - + 10 + - 38
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-7121
SELECT DISTINCT - ( - COUNT( DISTINCT + 35 ) ) * + COUNT( * ) AS col1, 94
----
1
94

skipif mysql # not compatible
query II rowsort label-7121
SELECT DISTINCT - ( - COUNT ( DISTINCT + 35 ) ) * + COUNT ( * ) AS col1, 94
----
1
94

query I rowsort
SELECT 38 * + - 71
----
-2698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7123
SELECT - CAST( + COUNT( * ) AS SIGNED ) + - + 46 - - + MAX( + + 34 )
----
-13

skipif mysql # not compatible
query I rowsort label-7123
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + - + 46 - - + MAX ( + + 34 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT ALL + MAX( DISTINCT + 44 ) + 30 * 14
----
464

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL + MAX ( DISTINCT + 44 ) + 30 * 14
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL SUM( ALL + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL SUM ( ALL + 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7126
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + - CASE 52 WHEN - 47 * + 28 + - - CASE 40 WHEN 91 + + 84 * COALESCE ( COUNT( * ), 85 ) * + 71 * NULLIF ( + COUNT( CAST( NULL AS SIGNED ) ), + 58 ) / - 84 + 71 THEN + CAST( NULL AS SIGNED ) / + 85 + 7 * - ( 83 ) ELSE NULL END + + 17 * 47 - COUNT( * ) * CAST( - 60 AS SIGNED ) * - 4 - COUNT( * ) * 80 THEN COALESCE ( - COUNT( * ), - 75 * + 49 + ( AVG ( 78 ) - COUNT( ALL 82 ) ), 78 / + 35 ) + + 12 * + SUM( ALL - 46 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - CAST ( NULL AS REAL ) + + - CASE 52 WHEN - 47 * + 28 + - - CASE 40 WHEN 91 + + 84 * COALESCE ( COUNT ( * ), 85 ) * + 71 * NULLIF ( + COUNT ( CAST ( NULL AS INTEGER ) ), + 58 ) / - 84 + 71 THEN + CAST ( NULL AS INTEGER ) / + 85 + 7 * - ( 83 ) ELSE NULL END + + 17 * 47 - COUNT ( * ) * CAST ( - 60 AS INTEGER ) * - 4 - COUNT ( * ) * 80 THEN COALESCE ( - COUNT ( * ), - 75 * + 49 + ( AVG ( 78 ) - COUNT ( ALL 82 ) ), 78 / + 35 ) + + 12 * + SUM ( ALL - 46 ) END AS col2
----
NULL

query I rowsort
SELECT ( 46 ) col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT DISTINCT 4 * - COUNT( ALL - 57 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT 4 * - COUNT ( ALL - 57 ) col0
----
-4

query I rowsort
SELECT ALL + 14 + - + 63 + - - 61
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7130
SELECT DISTINCT + 56 + - 94 DIV + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT + 56 + - 94 / + COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT - COALESCE ( - 14, - 30 * - 88 ) AS col0
----
14

query I rowsort
SELECT - 91 * - 92
----
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ( + - COUNT( * ) ) * + 80 * COUNT( 76 ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-7133
SELECT ( + - COUNT ( * ) ) * + 80 * COUNT ( 76 ) col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL ( 48 ) * - COUNT( * ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL ( 48 ) * - COUNT ( * ) col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7135
SELECT CAST( + + 75 AS SIGNED ) DIV 11 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-7135
SELECT CAST ( + + 75 AS INTEGER ) / 11 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT DISTINCT 18 - + COUNT( * ) + MAX( + + 67 )
----
84

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT 18 - + COUNT ( * ) + MAX ( + + 67 )
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7137
SELECT DISTINCT 39 AS col0, + COUNT( * ) / - + CAST( NULL AS DECIMAL )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-7137
SELECT DISTINCT 39 AS col0, + COUNT ( * ) / - + CAST ( NULL AS REAL )
----
39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7138
SELECT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * - + 39 + - 70 + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7138
SELECT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 39 + - 70 + + 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7139
SELECT 98 DIV - COUNT( * ) * COALESCE ( + COUNT( * ), + - 86, - 19 DIV 94 * + + 79 DIV - 23 * + 96 DIV - 1 ) - - 46 + 94 * + NULLIF ( 19, - + 50 ) * - 67 * + COUNT( * ) * + + COALESCE ( + - 58, + - 28 )
----
6940344

skipif mysql # not compatible
query I rowsort label-7139
SELECT 98 / - COUNT ( * ) * COALESCE ( + COUNT ( * ), + - 86, - 19 / 94 * + + 79 / - 23 * + 96 / - 1 ) - - 46 + 94 * + NULLIF ( 19, - + 50 ) * - 67 * + COUNT ( * ) * + + COALESCE ( + - 58, + - 28 )
----
6940344

query I rowsort
SELECT DISTINCT 76 * + 8 AS col0
----
608

query I rowsort
SELECT + ( - - 67 ) * + 88 * - + 43 + NULLIF ( 67, + 19 + 91 / + 56 ) + - + 84
----
-253545

onlyif mysql # aggregate syntax: 
query III rowsort label-7142
SELECT 20 AS col0, COUNT( * ) + - + COUNT( * ) AS col2, + ( + COALESCE ( 20, - ( + + 92 ) ) ) AS col1
----
20
0
20

skipif mysql # not compatible
query III rowsort label-7142
SELECT 20 AS col0, COUNT ( * ) + - + COUNT ( * ) AS col2, + ( + COALESCE ( 20, - ( + + 92 ) ) ) AS col1
----
20
0
20

query I rowsort
SELECT ALL + 89 * - 69
----
-6141

query I rowsort
SELECT 79 + + ( + 35 ) AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL 57 * + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL 57 * + + COUNT ( * )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7146
SELECT 35 * - - 42 + + 57 - - CAST( + COUNT( * ) AS SIGNED ) AS col2, - 82 AS col2, - + 57
----
1528
-82
-57

skipif mysql # not compatible
query III rowsort label-7146
SELECT 35 * - - 42 + + 57 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2, - 82 AS col2, - + 57
----
1528
-82
-57

query I rowsort
SELECT ALL 49 * + 54 AS col0
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT - CASE - 41 WHEN - 58 * + 51 THEN - 33 WHEN COUNT( * ) THEN + + SUM( DISTINCT + 78 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT - CASE - 41 WHEN - 58 * + 51 THEN - 33 WHEN COUNT ( * ) THEN + + SUM ( DISTINCT + 78 ) END
----
NULL

query II rowsort
SELECT DISTINCT - 55 AS col1, - 76 * - - 46 + + 67
----
-55
-3429

query I rowsort
SELECT 14 * 38 AS col2
----
532

query I rowsort
SELECT ALL - - 90 col0
----
90

query II rowsort
SELECT + 40, - 43 col0
----
40
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT + 43 DIV + 20 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7153
SELECT + 43 / + 20 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL + + 81 + - - ( COUNT( * ) )
----
82

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL + + 81 + - - ( COUNT ( * ) )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT + - CASE + + COUNT( * ) WHEN + - 2 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT + - CASE + + COUNT ( * ) WHEN + - 2 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + 46 + - 13
----
33

query I rowsort
SELECT ALL - - 14 * - 50 * - 2
----
1400

query I rowsort
SELECT DISTINCT - 96 + 7 - - - 27
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - 67
----
NULL

query I rowsort
SELECT DISTINCT + + 76 * + ( 27 ) * + 12
----
24624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7161
SELECT 52 - + 25 + 43 * 64 * - + 24 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT 52 - + 25 + 43 * 64 * - + 24 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT 55 + + ( - 27 ) DIV - 69 + + NULLIF ( - 69, 77 - + 20 ) * - 23 AS col0
----
1642

skipif mysql # not compatible
query I rowsort label-7162
SELECT 55 + + ( - 27 ) / - 69 + + NULLIF ( - 69, 77 - + 20 ) * - 23 AS col0
----
1642

query I rowsort
SELECT + ( + 52 ) * + - 84 * + + 32 AS col1
----
-139776

query I rowsort
SELECT 29 + 97
----
126

query II rowsort
SELECT 68, 65 col0
----
68
65

query I rowsort
SELECT 35 + - 23 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT COUNT( * ) + - 96 * 59 AS col1
----
-5663

skipif mysql # not compatible
query I rowsort label-7167
SELECT COUNT ( * ) + - 96 * 59 AS col1
----
-5663

query II rowsort
SELECT ALL 77 * - 39 AS col1, 56
----
-3003
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT - COUNT( * ) col0, + 63 AS col1
----
-1
63

skipif mysql # not compatible
query II rowsort label-7169
SELECT - COUNT ( * ) col0, + 63 AS col1
----
-1
63

query I rowsort
SELECT ALL + 2 * 79
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7171
SELECT DISTINCT 82 - - ( + - 18 ) * NULLIF ( 24, ( - CASE - 39 WHEN + - 21 THEN NULL WHEN + CAST( - - 8 AS DECIMAL ) THEN + 56 ELSE NULL END ) - ( - MIN( - 70 ) ) ) / + + 40 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT 82 - - ( + - 18 ) * NULLIF ( 24, ( - CASE - 39 WHEN + - 21 THEN NULL WHEN + CAST ( - - 8 AS REAL ) THEN + 56 ELSE NULL END ) - ( - MIN ( - 70 ) ) ) / + + 40 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT - COUNT( * ) * + 49
----
-49

skipif mysql # not compatible
query I rowsort label-7172
SELECT - COUNT ( * ) * + 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT + COUNT( * ) + - + 28 + 54
----
27

skipif mysql # not compatible
query I rowsort label-7173
SELECT + COUNT ( * ) + - + 28 + 54
----
27

query II rowsort
SELECT - 47 AS col2, 9 * + + 43
----
-47
387

query I rowsort
SELECT + 88 + 76 - - 90 + + 29
----
283

onlyif mysql # DIV for integer division: 
query I rowsort label-7176
SELECT + 99 DIV - 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7176
SELECT + 99 / - 56 AS col2
----
-1

query I rowsort
SELECT + CASE + 70 WHEN 65 / 47 + - + 2 THEN + 51 ELSE NULL END + + - 70
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7178
SELECT 62 col2, + 70 DIV - ( 57 ) AS col1
----
62
-1

skipif mysql # not compatible
query II rowsort label-7178
SELECT 62 col2, + 70 / - ( 57 ) AS col1
----
62
-1

query II rowsort
SELECT DISTINCT 9, 25 * 22 * - - 61 AS col2
----
9
33550

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT + COUNT( * ) AS col2, 50 + MAX( DISTINCT + 34 )
----
1
84

skipif mysql # not compatible
query II rowsort label-7180
SELECT + COUNT ( * ) AS col2, 50 + MAX ( DISTINCT + 34 )
----
1
84

query I rowsort
SELECT + 69 * - 66 AS col2
----
-4554

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT ALL COALESCE ( - + 38, - 38 + + + COUNT( * ) ) * - + 65 + COUNT( * ) * - + CASE 5 WHEN - MAX( + 71 ) + - 63 * 2 THEN NULL ELSE 77 END - ( - + MAX( ALL + 21 ) ) + COUNT( * ) + - NULLIF ( + 70, 90 ) * - 53
----
6125

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL COALESCE ( - + 38, - 38 + + + COUNT ( * ) ) * - + 65 + COUNT ( * ) * - + CASE 5 WHEN - MAX ( + 71 ) + - 63 * 2 THEN NULL ELSE 77 END - ( - + MAX ( ALL + 21 ) ) + COUNT ( * ) + - NULLIF ( + 70, 90 ) * - 53
----
6125

query I rowsort
SELECT + ( + 30 ) * 73
----
2190

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT + 58 * + - COUNT( * ) - + 88 col1
----
-146

skipif mysql # not compatible
query I rowsort label-7184
SELECT + 58 * + - COUNT ( * ) - + 88 col1
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT ALL SUM( 89 ) DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL SUM ( 89 ) / 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + + 68 + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7186
SELECT + + 68 + COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7187
SELECT 63 DIV COUNT( ALL + + 84 ) - 37 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7187
SELECT 63 / COUNT ( ALL + + 84 ) - 37 AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7188
SELECT + - 94 * CAST( NULL AS SIGNED ) / + - 66 * 91 + + ( - AVG ( - - 80 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT + - 94 * CAST ( NULL AS INTEGER ) / + - 66 * 91 + + ( - AVG ( - - 80 ) )
----
NULL

query I rowsort
SELECT - + 88 * - 66 AS col1
----
5808

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL - + 23 * + 83 * COUNT( * ) * - - 98 + 64 AS col2
----
-187018

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL - + 23 * + 83 * COUNT ( * ) * - - 98 + 64 AS col2
----
-187018

query I rowsort
SELECT + + ( - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT ALL + - 24 * - - 3 + - - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL + - 24 * - - 3 + - - COUNT ( * ) AS col2
----
-71

query I rowsort
SELECT 2 * 88 + - 66 + 89
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7194
SELECT DISTINCT - CAST( + 2 AS SIGNED ) * + + COUNT( * ) + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT - CAST ( + 2 AS INTEGER ) * + + COUNT ( * ) + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + SUM( DISTINCT 47 )
----
47

skipif mysql # not compatible
query I rowsort label-7195
SELECT + SUM ( DISTINCT 47 )
----
47

query II rowsort
SELECT ALL + - 24 AS col0, 53 AS col2
----
-24
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7197
SELECT ALL + - 4 * + 78 * 2 * + ( - 50 ) * + - CASE + - 38 WHEN AVG ( - 35 ) * - 82 * - - 36 * + - 84 THEN NULL ELSE + CAST( - 81 AS SIGNED ) END + + + ( ( ( + - 46 ) ) ) / - + CASE + COUNT( * ) WHEN 95 THEN - + MAX( + CAST( NULL AS SIGNED ) ) END - + 15 + + ( 28 ) * + 18 * + ( + CASE + - 70 WHEN + 87 - 18 THEN NULL WHEN 7 + 26 THEN NULL WHEN AVG ( DISTINCT - 97 ) + 72 THEN + COUNT( * ) * - COUNT( * ) ELSE CASE + 6 WHEN ( 60 ) THEN + 1 WHEN - ( + 82 ) - 98 THEN NULL ELSE NULL END + - SUM( DISTINCT + 97 + - 83 ) END ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL + - 4 * + 78 * 2 * + ( - 50 ) * + - CASE + - 38 WHEN AVG ( - 35 ) * - 82 * - - 36 * + - 84 THEN NULL ELSE + CAST ( - 81 AS INTEGER ) END + + + ( ( ( + - 46 ) ) ) / - + CASE + COUNT ( * ) WHEN 95 THEN - + MAX ( + CAST ( NULL AS INTEGER ) ) END - + 15 + + ( 28 ) * + 18 * + ( + CASE + - 70 WHEN + 87 - 18 THEN NULL WHEN 7 + 26 THEN NULL WHEN AVG ( DISTINCT - 97 ) + 72 THEN + COUNT ( * ) * - COUNT ( * ) ELSE CASE + 6 WHEN ( 60 ) THEN + 1 WHEN - ( + 82 ) - 98 THEN NULL ELSE NULL END + - SUM ( DISTINCT + 97 + - 83 ) END ) * + 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7198
SELECT ALL COUNT( DISTINCT + ( + + 74 ) ) * 17 DIV + - COUNT( * ) + - - CAST( 47 AS SIGNED ) * - COUNT( DISTINCT + 15 ) + - 46 + + COUNT( * ) * 50
----
-60

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL COUNT ( DISTINCT + ( + + 74 ) ) * 17 / + - COUNT ( * ) + - - CAST ( 47 AS INTEGER ) * - COUNT ( DISTINCT + 15 ) + - 46 + + COUNT ( * ) * 50
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL SUM( DISTINCT 19 ) * 18 + 95 + + 15 AS col1
----
452

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL SUM ( DISTINCT 19 ) * 18 + 95 + + 15 AS col1
----
452

query II rowsort
SELECT 60 AS col2, + 83
----
60
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT - 57 * - 91 * 98 + + 47 DIV - - 43
----
508327

skipif mysql # not compatible
query I rowsort label-7201
SELECT - 57 * - 91 * 98 + + 47 / - - 43
----
508327

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL + CASE COUNT( * ) WHEN + 31 THEN + + 97 + COUNT( DISTINCT + - 73 ) WHEN - 24 * COUNT( * ) THEN NULL ELSE + ( + 88 ) + + 51 END AS col1
----
139

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL + CASE COUNT ( * ) WHEN + 31 THEN + + 97 + COUNT ( DISTINCT + - 73 ) WHEN - 24 * COUNT ( * ) THEN NULL ELSE + ( + 88 ) + + 51 END AS col1
----
139

query II rowsort
SELECT + + 24 AS col1, 97 AS col0
----
24
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT - + 37 + + + 28 + - 40 + + 90 + - 46 DIV - + 30 + - 85
----
-43

skipif mysql # not compatible
query I rowsort label-7204
SELECT - + 37 + + + 28 + - 40 + + 90 + - 46 / - + 30 + - 85
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7205
SELECT ALL - CAST( - 73 AS SIGNED ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL - CAST ( - 73 AS INTEGER ) AS col2
----
73

query I rowsort
SELECT DISTINCT ( - 61 )
----
-61

query I rowsort
SELECT ALL ( - 13 ) AS col2
----
-13

query I rowsort
SELECT DISTINCT - 79 * ( - - 5 )
----
-395

query I rowsort
SELECT - 18 * 68 AS col0
----
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-7210
SELECT ALL 30 DIV + 25
----
1

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL 30 / + 25
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7211
SELECT - 35 DIV + COALESCE ( - + 45, - + COALESCE ( + 82, + - 60 * + - MAX( NULLIF ( + - CAST( NULL AS SIGNED ), + 89 ) ) ) - - - 45, - 20 ) * - + 76
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT - 35 / + COALESCE ( - + 45, - + COALESCE ( + 82, + - 60 * + - MAX ( NULLIF ( + - CAST ( NULL AS INTEGER ), + 89 ) ) ) - - - 45, - 20 ) * - + 76
----
0

query II rowsort
SELECT ALL ( - + ( - + 77 ) ), ( + - 75 ) AS col1
----
77
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT ALL CAST( + - ( 82 ) AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL CAST ( + - ( 82 ) AS INTEGER )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-7214
SELECT - 76 - 75 AS col1, - 11 + MAX( ALL 63 ) AS col1
----
-151
52

skipif mysql # not compatible
query II rowsort label-7214
SELECT - 76 - 75 AS col1, - 11 + MAX ( ALL 63 ) AS col1
----
-151
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7215
SELECT ALL NULLIF ( - CAST( NULL AS DECIMAL ), 46 + + COUNT( * ) * + 2 + + CAST( 55 AS SIGNED ) + + - 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL NULLIF ( - CAST ( NULL AS REAL ), 46 + + COUNT ( * ) * + 2 + + CAST ( 55 AS INTEGER ) + + - 41 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT - COUNT( DISTINCT + - 13 ) AS col1, - 49
----
-1
-49

skipif mysql # not compatible
query II rowsort label-7216
SELECT - COUNT ( DISTINCT + - 13 ) AS col1, - 49
----
-1
-49

query II rowsort
SELECT DISTINCT + 26 + - 55 AS col2, 54 * - 12 col1
----
-29
-648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7218
SELECT DISTINCT CAST( 34 AS SIGNED ) AS col0, 94
----
34
94

skipif mysql # not compatible
query II rowsort label-7218
SELECT DISTINCT CAST ( 34 AS INTEGER ) AS col0, 94
----
34
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7219
SELECT - CASE 48 WHEN 8 THEN - CASE - 66 WHEN + + COUNT( * ) THEN + COUNT( * ) * + CAST( NULL AS SIGNED ) * + + 43 WHEN + 66 THEN NULL WHEN - COUNT( * ) * CAST( NULL AS SIGNED ) THEN NULL END WHEN + + 14 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT - CASE 48 WHEN 8 THEN - CASE - 66 WHEN + + COUNT ( * ) THEN + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + + 43 WHEN + 66 THEN NULL WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN NULL END WHEN + + 14 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT - + 39 + COUNT( * ) - COUNT( * ) + + + COUNT( * ) * - 80 + + - 92 col2
----
-211

skipif mysql # not compatible
query I rowsort label-7220
SELECT - + 39 + COUNT ( * ) - COUNT ( * ) + + + COUNT ( * ) * - 80 + + - 92 col2
----
-211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7221
SELECT - COUNT( * ) / NULLIF ( - + 19, - 12 ) + 40 + - 77 * + 0 * CASE 6 WHEN SUM( DISTINCT 60 ) THEN NULL ELSE - 91 END * ( COALESCE ( - - ( - + 80 ), 63 ) ) + + + 38 + - 16 * + MAX( + 65 ) - - CASE - 49 WHEN + - CASE + + 27 WHEN CAST( NULL AS SIGNED ) - - MIN( DISTINCT - - ( + 70 ) ) THEN NULL WHEN - CAST( NULL AS SIGNED ) * - 88 * ( ( + 0 ) ) + 41 + - 99 THEN + 12 * 26 WHEN + 18 THEN NULL END * + 75 + + NULLIF ( - 73, - 67 / - ( - 97 ) ) THEN NULL WHEN 4 THEN 12 * 43 ELSE NULL END + 44 * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT - COUNT ( * ) / NULLIF ( - + 19, - 12 ) + 40 + - 77 * + 0 * CASE 6 WHEN SUM ( DISTINCT 60 ) THEN NULL ELSE - 91 END * ( COALESCE ( - - ( - + 80 ), 63 ) ) + + + 38 + - 16 * + MAX ( + 65 ) - - CASE - 49 WHEN + - CASE + + 27 WHEN CAST ( NULL AS INTEGER ) - - MIN ( DISTINCT - - ( + 70 ) ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - 88 * ( ( + 0 ) ) + 41 + - 99 THEN + 12 * 26 WHEN + 18 THEN NULL END * + 75 + + NULLIF ( - 73, - 67 / - ( - 97 ) ) THEN NULL WHEN 4 THEN 12 * 43 ELSE NULL END + 44 * 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7222
SELECT DISTINCT + + 12 DIV + CAST( + 53 AS SIGNED ) + - 55
----
-55

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT + + 12 / + CAST ( + 53 AS INTEGER ) + - 55
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7223
SELECT DISTINCT - - 45 DIV 33 + + COUNT( * ) * + 28 * - - 63
----
1765

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT - - 45 / 33 + + COUNT ( * ) * + 28 * - - 63
----
1765

onlyif mysql # DIV for integer division: 
query I rowsort label-7224
SELECT ALL + + 80 DIV 75 + + 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + + 80 / 75 + + 99 AS col2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7225
SELECT ALL - 68 * CAST( NULL AS SIGNED ) * 5 + 62 / ( 81 ) + + + MAX( - 27 ) / + 36 - ( 23 ) + - - 75 * + 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL - 68 * CAST ( NULL AS INTEGER ) * 5 + 62 / ( 81 ) + + + MAX ( - 27 ) / + 36 - ( 23 ) + - - 75 * + 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7226
SELECT ALL + 79 DIV 19 + + SUM( - 65 )
----
-61

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL + 79 / 19 + + SUM ( - 65 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7227
SELECT ALL COUNT( * ) DIV 95 - 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL COUNT ( * ) / 95 - 72 AS col0
----
-72

query I rowsort
SELECT DISTINCT 79 * + 94
----
7426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7229
SELECT + - 57 DIV - + MAX( DISTINCT - 19 )
----
-3

skipif mysql # not compatible
query I rowsort label-7229
SELECT + - 57 / - + MAX ( DISTINCT - 19 )
----
-3

query I rowsort
SELECT ALL - - 97 * + 13 - + ( + 42 )
----
1219

query I rowsort
SELECT ALL + 77 * + 92 * - 9 AS col1
----
-63756

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT + MIN( 40 ) - 63
----
-23

skipif mysql # not compatible
query I rowsort label-7232
SELECT + MIN ( 40 ) - 63
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT + 44 * MAX( - + 76 ) * + 94
----
-314336

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT + 44 * MAX ( - + 76 ) * + 94
----
-314336

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT DISTINCT + 33 * + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT + 33 * + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT DISTINCT - COALESCE ( + 79, - COUNT( * ) * 45 + + + ( + 52 ) + ( + + 64 ) + + 64 * - MIN( 72 ) * + COUNT( * ) + - COUNT( * ) * + - 7 * - 52 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT - COALESCE ( + 79, - COUNT ( * ) * 45 + + + ( + 52 ) + ( + + 64 ) + + 64 * - MIN ( 72 ) * + COUNT ( * ) + - COUNT ( * ) * + - 7 * - 52 ) AS col0
----
-79

query I rowsort
SELECT 61 * - - 67 col1
----
4087

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7237
SELECT 1 AS col2, SUM( 61 ) DIV 23
----
1
2

skipif mysql # not compatible
query II rowsort label-7237
SELECT 1 AS col2, SUM ( 61 ) / 23
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT NULLIF ( 99, + + COUNT( * ) * + - MIN( ALL - 95 ) ) + + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-7238
SELECT NULLIF ( 99, + + COUNT ( * ) * + - MIN ( ALL - 95 ) ) + + + COUNT ( * )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT 70 - - MAX( ALL 67 )
----
137

skipif mysql # not compatible
query I rowsort label-7239
SELECT 70 - - MAX ( ALL 67 )
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7240
SELECT 73 * - + CAST( + 93 AS SIGNED ) col1
----
-6789

skipif mysql # not compatible
query I rowsort label-7240
SELECT 73 * - + CAST ( + 93 AS INTEGER ) col1
----
-6789

query I rowsort
SELECT 39 * + + 74 + + - ( 71 ) * - 58
----
7004

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT DISTINCT - 48 * + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - 48 * + COUNT ( * ) AS col0
----
-48

query I rowsort
SELECT 70 + + 66 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT ALL - COUNT( * ) * - - 82
----
-82

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL - COUNT ( * ) * - - 82
----
-82

query I rowsort
SELECT ALL + 76 + + - 88 AS col2
----
-12

query I rowsort
SELECT 79 + + 51
----
130

query I rowsort
SELECT 86 * - - 23
----
1978

query I rowsort
SELECT 89 + + 36 AS col1
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-7249
SELECT ALL + 31 + + ( + 92 ) * - MIN( + ( + 73 ) ) AS col0, NULLIF ( 14, + 82 + 91 ) AS col2
----
-6685
14

skipif mysql # not compatible
query II rowsort label-7249
SELECT ALL + 31 + + ( + 92 ) * - MIN ( + ( + 73 ) ) AS col0, NULLIF ( 14, + 82 + 91 ) AS col2
----
-6685
14

query II rowsort
SELECT - 9 AS col2, ( 79 ) + - + 38 + 74 * + - COALESCE ( 43, 18 ) AS col1
----
-9
-3141

query I rowsort
SELECT ALL - 67 * - 42
----
2814

query I rowsort
SELECT 76 + + ( + 29 )
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-7253
SELECT 79 DIV + + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7253
SELECT 79 / + + 67 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT ( 93 ) * - CASE ( + 90 ) WHEN + 45 * - + 38 * + SUM( 71 ) * 87 THEN + + 71 * 91 / - 69 * - 0 / + 99 / - 87 + - ( - - SUM( DISTINCT + - 75 ) ) + + 37 WHEN + + 29 + - 38 + - ( + ( - 0 ) ) * + + 50 / - 81 * - 84 THEN 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT ( 93 ) * - CASE ( + 90 ) WHEN + 45 * - + 38 * + SUM ( 71 ) * 87 THEN + + 71 * 91 / - 69 * - 0 / + 99 / - 87 + - ( - - SUM ( DISTINCT + - 75 ) ) + + 37 WHEN + + 29 + - 38 + - ( + ( - 0 ) ) * + + 50 / - 81 * - 84 THEN 20 END AS col1
----
NULL

query II rowsort
SELECT 34 AS col0, + 34 AS col0
----
34
34

query I rowsort
SELECT ( + ( - 94 ) ) + + 34 * - + 69 - + 78 AS col0
----
-2518

onlyif mysql # aggregate syntax: 
query II rowsort label-7257
SELECT + + COUNT( * ) AS col2, - NULLIF ( + COUNT( * ), - 25 + ( + 18 ) * + + 95 )
----
1
-1

skipif mysql # not compatible
query II rowsort label-7257
SELECT + + COUNT ( * ) AS col2, - NULLIF ( + COUNT ( * ), - 25 + ( + 18 ) * + + 95 )
----
1
-1

query I rowsort
SELECT DISTINCT 1 - - 39 AS col1
----
40

query II rowsort
SELECT DISTINCT - 10, + 72 col2
----
-10
72

query I rowsort
SELECT 69 + + 87
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT COUNT( * ) * + + 34 * - 75 * + 50
----
-127500

skipif mysql # not compatible
query I rowsort label-7261
SELECT COUNT ( * ) * + + 34 * - 75 * + 50
----
-127500

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7262
SELECT - 86 * - - 6 * + 22 + - CAST( ( + 43 ) AS SIGNED ) DIV + + 20
----
-11354

skipif mysql # not compatible
query I rowsort label-7262
SELECT - 86 * - - 6 * + 22 + - CAST ( ( + 43 ) AS INTEGER ) / + + 20
----
-11354

onlyif mysql # aggregate syntax: 
query II rowsort label-7263
SELECT + - 61, + MAX( ALL 72 ) AS col2
----
-61
72

skipif mysql # not compatible
query II rowsort label-7263
SELECT + - 61, + MAX ( ALL 72 ) AS col2
----
-61
72

query I rowsort
SELECT 7 * - 55 AS col2
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT MAX( ALL + 89 ) * 73 AS col2
----
6497

skipif mysql # not compatible
query I rowsort label-7265
SELECT MAX ( ALL + 89 ) * 73 AS col2
----
6497

query II rowsort
SELECT DISTINCT - + 4 AS col2, 96 * - - 80 + 11 AS col2
----
-4
7691

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT ALL - NULLIF ( 29, + COUNT( * ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - NULLIF ( 29, + COUNT ( * ) ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL - + MIN( + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL - + MIN ( + 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT + COUNT( * ) * - + 36 * COUNT( * ) + + - 19 * 51 * - 57
----
55197

skipif mysql # not compatible
query I rowsort label-7269
SELECT + COUNT ( * ) * - + 36 * COUNT ( * ) + + - 19 * 51 * - 57
----
55197

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT 34 * + COUNT( * ) + - - 50
----
84

skipif mysql # not compatible
query I rowsort label-7270
SELECT 34 * + COUNT ( * ) + - - 50
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7271
SELECT ALL 1 DIV - 76 * + + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL 1 / - 76 * + + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT COUNT( * ) * + 93 col0
----
93

skipif mysql # not compatible
query I rowsort label-7272
SELECT COUNT ( * ) * + 93 col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7273
SELECT ( - - CAST( NULL AS SIGNED ) ) + + 15 + + - COUNT( * ) * - NULLIF ( + + 1, 50 ) col2, - 63 AS col2
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-7273
SELECT ( - - CAST ( NULL AS INTEGER ) ) + + 15 + + - COUNT ( * ) * - NULLIF ( + + 1, 50 ) col2, - 63 AS col2
----
NULL
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT COUNT( 3 ) + + 54
----
55

skipif mysql # not compatible
query I rowsort label-7274
SELECT COUNT ( 3 ) + + 54
----
55

query I rowsort
SELECT ALL 94 * - 24
----
-2256

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT 12 + 76 + - 78 - + + COUNT( * ) * - NULLIF ( COALESCE ( - + 30, - 77 * + 65 ), + COUNT( * ) + - 35 + + COUNT( * ) * - + 65 * 18 * + COUNT( * ) ) - 40 col2
----
-60

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT 12 + 76 + - 78 - + + COUNT ( * ) * - NULLIF ( COALESCE ( - + 30, - 77 * + 65 ), + COUNT ( * ) + - 35 + + COUNT ( * ) * - + 65 * 18 * + COUNT ( * ) ) - 40 col2
----
-60

query I rowsort
SELECT DISTINCT 23 + + - 13 + - - 85
----
95

query II rowsort
SELECT ALL 47 + - - 78, + 43 AS col1
----
125
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7279
SELECT - COUNT( - - 5 ), 1 AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-7279
SELECT - COUNT ( - - 5 ), 1 AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL + 72 + MAX( ALL - + 78 )
----
-6

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + 72 + MAX ( ALL - + 78 )
----
-6

query I rowsort
SELECT ALL 11 + 87 + + ( + 21 ) * + 4 - + 44 + 46 * + - 22 - + - 65 AS col1
----
-809

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7282
SELECT AVG ( 6 ) - + ( - - CAST( NULL AS SIGNED ) ), 40 DIV + - COALESCE ( + + 54, 46, 8 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7282
SELECT AVG ( 6 ) - + ( - - CAST ( NULL AS INTEGER ) ), 40 / + - COALESCE ( + + 54, 46, 8 ) AS col1
----
NULL
0

query I rowsort
SELECT DISTINCT 46 + + + 15 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT 24 * - 72 / NULLIF ( + CASE COUNT( * ) WHEN 61 THEN - COUNT( * ) END, 60 + 25 + + ( - + 39 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT 24 * - 72 / NULLIF ( + CASE COUNT ( * ) WHEN 61 THEN - COUNT ( * ) END, 60 + 25 + + ( - + 39 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT ALL + NULLIF ( - 99, 55 ) + + 63 - - MAX( ALL 51 ) + 67 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL + NULLIF ( - 99, 55 ) + + 63 - - MAX ( ALL 51 ) + 67 AS col1
----
82

query II rowsort
SELECT ALL + ( - + COALESCE ( - + 13, + + 55 * 81 * - 53 * + - 80, + 92 ) ) * - 41 AS col2, 36 AS col0
----
-533
36

query I rowsort
SELECT DISTINCT 89 + + 24
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT - - CASE ( - 74 ) WHEN + 14 + + 79 * + - 64 THEN NULL WHEN + COUNT( ALL ( + 14 ) ) * + CAST( - 42 AS SIGNED ) THEN + + COUNT( * ) / COUNT( * ) WHEN + 74 THEN - - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT - - CASE ( - 74 ) WHEN + 14 + + 79 * + - 64 THEN NULL WHEN + COUNT ( ALL ( + 14 ) ) * + CAST ( - 42 AS INTEGER ) THEN + + COUNT ( * ) / COUNT ( * ) WHEN + 74 THEN - - 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7289
SELECT DISTINCT 2 - + + 29 AS col1, 71 + - 19 + 54 + - - 40 * 10 * - 35 * - + MIN( - 16 ) * + + 68 * + - 94 + + ( - - 91 )
----
-27
1431808197

skipif mysql # not compatible
query II rowsort label-7289
SELECT DISTINCT 2 - + + 29 AS col1, 71 + - 19 + 54 + - - 40 * 10 * - 35 * - + MIN ( - 16 ) * + + 68 * + - 94 + + ( - - 91 )
----
-27
1431808197

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7290
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 91 - + 12 * 66 AS col0, ( + - 62 )
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-7290
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 91 - + 12 * 66 AS col0, ( + - 62 )
----
NULL
-62

query II rowsort
SELECT ALL - + 42 * + 72, 74 AS col1
----
-3024
74

query I rowsort
SELECT ALL + - 80 * ( + 28 )
----
-2240

query I rowsort
SELECT 53 + + - ( + 31 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT 96 / + 0 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT 96 / + 0 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT 83 * - CASE + ( + 83 ) WHEN ( CAST( + COUNT( * ) AS SIGNED ) ) THEN + + 51 ELSE + 0 END + - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7295
SELECT 83 * - CASE + ( + 83 ) WHEN ( CAST ( + COUNT ( * ) AS INTEGER ) ) THEN + + 51 ELSE + 0 END + - COUNT ( * ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7296
SELECT 27 + + COALESCE ( - - 91, - - COUNT( * ) ) + 97 * CASE + 68 WHEN + - SUM( DISTINCT - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) + 15 - + COUNT( * ) * - 49 / 88 THEN + CAST( 72 AS SIGNED ) - + MIN( ALL + 88 ) END * + COUNT( * ) + - 85 - + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT 27 + + COALESCE ( - - 91, - - COUNT ( * ) ) + 97 * CASE + 68 WHEN + - SUM ( DISTINCT - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) + 15 - + COUNT ( * ) * - 49 / 88 THEN + CAST ( 72 AS INTEGER ) - + MIN ( ALL + 88 ) END * + COUNT ( * ) + - 85 - + 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL - SUM( - 98 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL - SUM ( - 98 ) col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT ALL + 94 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL + 94 * - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - 89 * + - 8 + + 41 - NULLIF ( COUNT( * ), - - COUNT( * ) * + 75 + 37 ) AS col2
----
752

skipif mysql # not compatible
query I rowsort label-7299
SELECT - 89 * + - 8 + + 41 - NULLIF ( COUNT ( * ), - - COUNT ( * ) * + 75 + 37 ) AS col2
----
752

query I rowsort
SELECT - 66 * - 78 + 49
----
5197

query II rowsort
SELECT + 17 AS col0, - 90 - - 24
----
17
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7302
SELECT 75 DIV + 86 + + COUNT( * ) DIV 71 + 57 col2, 97
----
57
97

skipif mysql # not compatible
query II rowsort label-7302
SELECT 75 / + 86 + + COUNT ( * ) / 71 + 57 col2, 97
----
57
97

query I rowsort
SELECT ALL + 48 * 0
----
0

query I rowsort
SELECT + ( 32 ) * - 20 col1
----
-640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7305
SELECT - NULLIF ( + - AVG ( + - 35 ), + 86 ) - + CAST( NULL AS DECIMAL ) * + 79 - + 10 + 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT - NULLIF ( + - AVG ( + - 35 ), + 86 ) - + CAST ( NULL AS REAL ) * + 79 - + 10 + 36 AS col1
----
NULL

query I rowsort
SELECT ALL 84 * - - 41 + + 48
----
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + SUM( - 10 ) * + 52 + + + COALESCE ( MAX( DISTINCT + 27 ), COUNT( * ) ) AS col0
----
-493

skipif mysql # not compatible
query I rowsort label-7307
SELECT + SUM ( - 10 ) * + 52 + + + COALESCE ( MAX ( DISTINCT + 27 ), COUNT ( * ) ) AS col0
----
-493

query I rowsort
SELECT ALL 9 * + - 63 + - 69 + 1 AS col1
----
-635

query I rowsort
SELECT DISTINCT + 30 + 41
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT COUNT( ALL 48 )
----
1

skipif mysql # not compatible
query I rowsort label-7310
SELECT COUNT ( ALL 48 )
----
1

query I rowsort
SELECT ALL + 13 + + - 72
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT + 23 - + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-7312
SELECT + 23 - + + COUNT ( * )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7313
SELECT DISTINCT 63 * - CAST( + + 86 AS SIGNED ), 2 * + 37 AS col1
----
-5418
74

skipif mysql # not compatible
query II rowsort label-7313
SELECT DISTINCT 63 * - CAST ( + + 86 AS INTEGER ), 2 * + 37 AS col1
----
-5418
74

query II rowsort
SELECT 55, 52 * ( + + 47 ) col1
----
55
2444

query I rowsort
SELECT - ( 53 ) AS col2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-7316
SELECT + 63 + 80 DIV - 96 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7316
SELECT + 63 + 80 / - 96 AS col2
----
63

query I rowsort
SELECT ALL ( - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT ALL 91 - - COUNT( DISTINCT 36 )
----
92

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL 91 - - COUNT ( DISTINCT 36 )
----
92

query I rowsort
SELECT DISTINCT - 22 * + 66 AS col2
----
-1452

query I rowsort
SELECT + 44 * - 59
----
-2596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7321
SELECT ALL - 89 * CASE + ( - 51 ) WHEN 9 THEN NULL WHEN 12 DIV + CAST( NULL AS SIGNED ) THEN + COUNT( ALL + - 75 ) * 71 + + COUNT( * ) - + 8 WHEN 77 THEN MIN( DISTINCT + 69 ) + - COUNT( * ) + - + 90 + - 94 * 16 DIV + 71 * - 46 ELSE 67 * - 71 + + + 87 END
----
415630

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - 89 * CASE + ( - 51 ) WHEN 9 THEN NULL WHEN 12 / + CAST ( NULL AS INTEGER ) THEN + COUNT ( ALL + - 75 ) * 71 + + COUNT ( * ) - + 8 WHEN 77 THEN MIN ( DISTINCT + 69 ) + - COUNT ( * ) + - + 90 + - 94 * 16 / + 71 * - 46 ELSE 67 * - 71 + + + 87 END
----
415630

query I rowsort
SELECT DISTINCT - 72 - - 47
----
-25

query I rowsort
SELECT - - 45 + - ( - 29 )
----
74

query II rowsort
SELECT + - 34 * 57 + COALESCE ( - 73, - + 93 ) * + - 97 col1, 72 + + 6 + - 75
----
5143
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT - - COUNT( * ) * NULLIF ( + 82, 91 ) + + ( 48 ) AS col0
----
130

skipif mysql # not compatible
query I rowsort label-7325
SELECT - - COUNT ( * ) * NULLIF ( + 82, 91 ) + + ( 48 ) AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT + 46 + + + 45 + - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7326
SELECT + 46 + + + 45 + - COUNT ( * ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT ALL - 87 / + 74 / 67 + + - CASE - MIN( ALL + + 37 ) WHEN + CASE - - AVG ( + - ( - 46 ) ) WHEN - - 40 THEN + + 75 END THEN + 5 END + + - 48 + - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL - 87 / + 74 / 67 + + - CASE - MIN ( ALL + + 37 ) WHEN + CASE - - AVG ( + - ( - 46 ) ) WHEN - - 40 THEN + + 75 END THEN + 5 END + + - 48 + - 40 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT - 73 DIV 24
----
-3

skipif mysql # not compatible
query I rowsort label-7328
SELECT - 73 / 24
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT + + 7 + - COUNT( - 44 ) + + 64 + + + 75 + - CASE + 82 WHEN + 94 + + 79 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN + CAST( NULL AS SIGNED ) * - + ( + 68 ) END * + + 32 * 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT + + 7 + - COUNT ( - 44 ) + + 64 + + + 75 + - CASE + 82 WHEN + 94 + + 79 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN + CAST ( NULL AS INTEGER ) * - + ( + 68 ) END * + + 32 * 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7330
SELECT ALL 22 DIV + 65 + + MAX( ALL - + 75 ) * - 72 AS col2
----
5400

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL 22 / + 65 + + MAX ( ALL - + 75 ) * - 72 AS col2
----
5400

query II rowsort
SELECT ALL + 19 AS col2, NULLIF ( - 9, 52 ) AS col0
----
19
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT + 83 DIV + - 61
----
-1

skipif mysql # not compatible
query I rowsort label-7332
SELECT + 83 / + - 61
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT 71 * 49 + COUNT( * )
----
3480

skipif mysql # not compatible
query I rowsort label-7333
SELECT 71 * 49 + COUNT ( * )
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL COUNT( * ) * - 1 * + - 92 + - COUNT( * ) - 67
----
24

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL COUNT ( * ) * - 1 * + - 92 + - COUNT ( * ) - 67
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT + 17 DIV + 89 + - - 87
----
87

skipif mysql # not compatible
query I rowsort label-7335
SELECT + 17 / + 89 + - - 87
----
87

query II rowsort
SELECT ALL ( + 55 ) * + ( + ( - 49 ) ) + + - 82 AS col2, + 45
----
-2777
45

query I rowsort
SELECT ALL + NULLIF ( 97, + 9 )
----
97

query II rowsort
SELECT ALL + 17 * + 77 AS col0, - 4 + + - 52 AS col1
----
1309
-56

query I rowsort
SELECT + 29 * + 94 + + 53 - 17
----
2762

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL 42 * - - COUNT( * ) + 57 * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL 42 * - - COUNT ( * ) + 57 * - COUNT ( * )
----
-15

query I rowsort
SELECT NULLIF ( - + 54, + 86 ) AS col2
----
-54

query I rowsort
SELECT COALESCE ( - 12, - 38 ) AS col0
----
-12

query I rowsort
SELECT - 99 + + 38 * - + 81 AS col0
----
-3177

query I rowsort
SELECT ALL - 9 * 8 * 12 AS col0
----
-864

query I rowsort
SELECT ALL ( - + 96 )
----
-96

query II rowsort
SELECT DISTINCT 11 col2, 29 col1
----
11
29

onlyif mysql # DIV for integer division: 
query II rowsort label-7347
SELECT ALL 63 AS col1, 93 + - - 49 DIV 55 DIV - 63 - 76
----
63
17

skipif mysql # not compatible
query II rowsort label-7347
SELECT ALL 63 AS col1, 93 + - - 49 / 55 / - 63 - 76
----
63
17

query I rowsort
SELECT - NULLIF ( 92, + + 19 ) AS col0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT - + ( + 38 ) - - 31 DIV - 39
----
-38

skipif mysql # not compatible
query I rowsort label-7349
SELECT - + ( + 38 ) - - 31 / - 39
----
-38

query I rowsort
SELECT + - 49 * - + ( + + 75 ) AS col0
----
3675

query I rowsort
SELECT ALL + 68 * - - ( + 26 ) AS col2
----
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT + 64 + COUNT( * ) * 12
----
76

skipif mysql # not compatible
query I rowsort label-7352
SELECT + 64 + COUNT ( * ) * 12
----
76

query I rowsort
SELECT DISTINCT 34 * + 62 + - 60
----
2048

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL 47 * + - 0 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL 47 * + - 0 + - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7355
SELECT - NULLIF ( + 1, - 40 ) - - + MAX( + 0 ) + - COUNT( * ) * 6 + - CAST( 26 AS SIGNED ) - - 42 * - 29 col0
----
-1251

skipif mysql # not compatible
query I rowsort label-7355
SELECT - NULLIF ( + 1, - 40 ) - - + MAX ( + 0 ) + - COUNT ( * ) * 6 + - CAST ( 26 AS INTEGER ) - - 42 * - 29 col0
----
-1251

onlyif mysql # aggregate syntax: 
query II rowsort label-7356
SELECT - + 90, - 81 + - COUNT( * ) AS col0
----
-90
-82

skipif mysql # not compatible
query II rowsort label-7356
SELECT - + 90, - 81 + - COUNT ( * ) AS col0
----
-90
-82

query II rowsort
SELECT 5 - + 63, + 19 * - + 57 AS col2
----
-58
-1083

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL + 16 + - - COUNT( * ) + - ( + + COUNT( * ) ) * + - 67 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + 16 + - - COUNT ( * ) + - ( + + COUNT ( * ) ) * + - 67 AS col2
----
84

query I rowsort
SELECT - ( + 48 ) col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL SUM( 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL SUM ( 70 ) AS col0
----
70

query I rowsort
SELECT - 80 + + + 83 - + + ( - 8 ) * - - 34 AS col1
----
275

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT 74 - + COALESCE ( - + 72, - - COUNT( * ) ) + 76 / + 83 * CASE + 5 WHEN - 50 THEN - + 97 WHEN - 61 THEN NULL END * - 97 + 83 - - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7362
SELECT 74 - + COALESCE ( - + 72, - - COUNT ( * ) ) + 76 / + 83 * CASE + 5 WHEN - 50 THEN - + 97 WHEN - 61 THEN NULL END * - 97 + 83 - - 93 AS col1
----
NULL

query II rowsort
SELECT + - 5 AS col2, 66 * 45 + - + 53 - 81
----
-5
2836

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL SUM( ALL - 30 ) + + SUM( ALL - - ( + 89 ) )
----
59

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL SUM ( ALL - 30 ) + + SUM ( ALL - - ( + 89 ) )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7365
SELECT DISTINCT + COUNT( * ) + + 4 + + COUNT( * ) DIV + 58 + CAST( 26 AS SIGNED ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7365
SELECT DISTINCT + COUNT ( * ) + + 4 + + COUNT ( * ) / + 58 + CAST ( 26 AS INTEGER ) AS col2
----
31

query II rowsort
SELECT ALL - 85 * 71 AS col2, - ( - 86 ) + - 75 AS col2
----
-6035
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT 94 + + 14 + - MIN( + 24 )
----
84

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT 94 + + 14 + - MIN ( + 24 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7368
SELECT DISTINCT COUNT( * ) * 3 * - 4 col0, 35 + - + 27
----
-12
8

skipif mysql # not compatible
query II rowsort label-7368
SELECT DISTINCT COUNT ( * ) * 3 * - 4 col0, 35 + - + 27
----
-12
8

query I rowsort
SELECT ALL 88 * + 3 * 15 * - + ( + - ( + 84 ) ) AS col0
----
332640

onlyif mysql # DIV for integer division: 
query II rowsort label-7370
SELECT 14 DIV 74, + 60 * 94 - 77 * 11 + - 82 AS col0
----
0
4711

skipif mysql # not compatible
query II rowsort label-7370
SELECT 14 / 74, + 60 * 94 - 77 * 11 + - 82 AS col0
----
0
4711

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT ALL - CASE + - 49 WHEN - SUM( + 2 ) + + - 61 + 52 + - 27 THEN - 98 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL - CASE + - 49 WHEN - SUM ( + 2 ) + + - 61 + 52 + - 27 THEN - 98 END col0
----
NULL

query II rowsort
SELECT ALL - CASE + 36 WHEN + 9 THEN - 27 / + + ( - 42 ) - 69 WHEN - 82 THEN NULL END AS col2, + 41 + + 73 AS col2
----
NULL
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT - SUM( 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT - SUM ( 37 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7374
SELECT 23 + + CAST( 2 AS SIGNED ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7374
SELECT 23 + + CAST ( 2 AS INTEGER ) AS col2
----
25

query I rowsort
SELECT 33 * - + 2
----
-66

query I rowsort
SELECT ALL - - ( + - 35 ) * + + 11
----
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT ALL - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT - 65 * COUNT( * ) + - 11 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7378
SELECT - 65 * COUNT ( * ) + - 11 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT - 39 - + CASE AVG ( ALL - 52 ) WHEN + 1 + 42 THEN - - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT - 39 - + CASE AVG ( ALL - 52 ) WHEN + 1 + 42 THEN - - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 39 * + + 80 * + 43 + + 40 + - 29 * + - 43 + - 80 + 11 + + - 14 AS col0
----
-132956

query I rowsort
SELECT ALL - - 60 * - + 64
----
-3840

query I rowsort
SELECT ALL - 12 * - 22 AS col2
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT ALL + COUNT( * ) + 94 * 77 + 45 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL + COUNT ( * ) + 94 * 77 + 45 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 6 + - ( - 95 ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT + 28 DIV + - 42
----
0

skipif mysql # not compatible
query I rowsort label-7385
SELECT + 28 / + - 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT DISTINCT MIN( 6 ) + - + 31
----
-25

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT MIN ( 6 ) + - + 31
----
-25

query I rowsort
SELECT + COALESCE ( + 88, + 48 ) AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT ALL - 96 DIV + 32 col0
----
-3

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - 96 / + 32 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - COUNT( ALL 91 ) + NULLIF ( + 98, + 82 * + + 32 - - 7 * + 33 / 82 / - + 14 ) * - 32 * - 22 * 3 - - ( - 78 )
----
206897

skipif mysql # not compatible
query I rowsort label-7389
SELECT - COUNT ( ALL 91 ) + NULLIF ( + 98, + 82 * + + 32 - - 7 * + 33 / 82 / - + 14 ) * - 32 * - 22 * 3 - - ( - 78 )
----
206897

query I rowsort
SELECT DISTINCT - 63 * + 6 AS col1
----
-378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL 52 + ( - + ( + 73 ) ) - + + 85 + - CAST( NULL AS SIGNED ) + - COUNT( * ) * - 62 * + 45 + AVG ( - 26 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL 52 + ( - + ( + 73 ) ) - + + 85 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 62 * + 45 + AVG ( - 26 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT - COUNT( * ) * ( 97 ) - 27 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-7392
SELECT - COUNT ( * ) * ( 97 ) - 27 AS col0
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7393
SELECT ALL + - MAX( DISTINCT - 41 ) DIV + - 19 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL + - MAX ( DISTINCT - 41 ) / + - 19 AS col1
----
-2

query I rowsort
SELECT ( - 15 ) + + 17
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT - MAX( 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7395
SELECT - MAX ( 65 ) AS col2
----
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-7396
SELECT ALL 48 * + COALESCE ( + 18, + 28 ) AS col2, 25 DIV 50
----
864
0

skipif mysql # not compatible
query II rowsort label-7396
SELECT ALL 48 * + COALESCE ( + 18, + 28 ) AS col2, 25 / 50
----
864
0

query I rowsort
SELECT 80 + - 28 + - + 66 + + CASE + 98 WHEN - 64 THEN - 5 / - 22 + - 63 WHEN - 39 THEN 98 END + - 10 * + 1 * + + 63 * - 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7398
SELECT ALL - 44 + - 54 + + + COUNT( * ) DIV + 86 * 64
----
-98

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - 44 + - 54 + + + COUNT ( * ) / + 86 * 64
----
-98

query I rowsort
SELECT + 84 * + - 68 + + 85 AS col2
----
-5627

query I rowsort
SELECT 63 * 56 AS col1
----
3528

query I rowsort
SELECT 69 + + 33 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT COUNT( - - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-7402
SELECT COUNT ( - - 75 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT COUNT( * ) * - + 57 * - + COUNT( * ) * + - 55
----
-3135

skipif mysql # not compatible
query I rowsort label-7403
SELECT COUNT ( * ) * - + 57 * - + COUNT ( * ) * + - 55
----
-3135

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT 18 * - 34 + + 2 * - 83 + - 97 + SUM( ALL + - ( + 32 ) ) - - 52 + - 30 * - + 62
----
1005

skipif mysql # not compatible
query I rowsort label-7404
SELECT 18 * - 34 + + 2 * - 83 + - 97 + SUM ( ALL + - ( + 32 ) ) - - 52 + - 30 * - + 62
----
1005

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7405
SELECT COUNT( ALL - CASE CAST( - 26 AS SIGNED ) WHEN - - 94 + 22 THEN - 15 * + 18 + 53 ELSE NULL END ) AS col0, - 85 * - 13
----
0
1105

skipif mysql # not compatible
query II rowsort label-7405
SELECT COUNT ( ALL - CASE CAST ( - 26 AS INTEGER ) WHEN - - 94 + 22 THEN - 15 * + 18 + 53 ELSE NULL END ) AS col0, - 85 * - 13
----
0
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT - SUM( + + ( - 48 ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - SUM ( + + ( - 48 ) ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL COUNT( * ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL COUNT ( * ) * + 6
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT ALL 46 DIV + - SUM( + 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL 46 / + - SUM ( + 89 ) AS col1
----
0

query II rowsort
SELECT ALL - 88, 17 AS col2
----
-88
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT DISTINCT + ( COUNT( * ) ) * + NULLIF ( + - NULLIF ( - - COUNT( * ), AVG ( - 99 ) * - 36 ), + NULLIF ( - - ( + + 5 ), + 30 ) + 98 * - 82 - - 32 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT + ( COUNT ( * ) ) * + NULLIF ( + - NULLIF ( - - COUNT ( * ), AVG ( - 99 ) * - 36 ), + NULLIF ( - - ( + + 5 ), + 30 ) + 98 * - 82 - - 32 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7411
SELECT DISTINCT SUM( DISTINCT - 43 ) * 52, 70 col1
----
-2236
70

skipif mysql # not compatible
query II rowsort label-7411
SELECT DISTINCT SUM ( DISTINCT - 43 ) * 52, 70 col1
----
-2236
70

query I rowsort
SELECT COALESCE ( ( 90 ), - 40 ) * - 11
----
-990

query I rowsort
SELECT - 26 * + 72 + 85 * - - 76
----
4588

query I rowsort
SELECT ALL 75 * - + 30 * + - 41 AS col0
----
92250

onlyif mysql # aggregate syntax: 
query II rowsort label-7415
SELECT + COUNT( * ), 98 * 96 + + 39 AS col1
----
1
9447

skipif mysql # not compatible
query II rowsort label-7415
SELECT + COUNT ( * ), 98 * 96 + + 39 AS col1
----
1
9447

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7416
SELECT 49 + ( - 51 ) AS col2, CAST( NULL AS SIGNED )
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-7416
SELECT 49 + ( - 51 ) AS col2, CAST ( NULL AS INTEGER )
----
-2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT CASE - MIN( DISTINCT 6 ) WHEN + COUNT( * ) THEN - 78 * + COUNT( * ) * 65 * + - 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT CASE - MIN ( DISTINCT 6 ) WHEN + COUNT ( * ) THEN - 78 * + COUNT ( * ) * 65 * + - 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT - 37 + + COUNT( * ) - - ( 95 ) + + COUNT( * ) * - + 11
----
48

skipif mysql # not compatible
query I rowsort label-7418
SELECT - 37 + + COUNT ( * ) - - ( 95 ) + + COUNT ( * ) * - + 11
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + + SUM( - - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7419
SELECT + + SUM ( - - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL + CASE - 29 WHEN - 76 THEN + - SUM( ALL - 89 ) + - 26 + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL + CASE - 29 WHEN - 76 THEN + - SUM ( ALL - 89 ) + - 26 + + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7421
SELECT DISTINCT + 19 DIV + + 70
----
0

skipif mysql # not compatible
query I rowsort label-7421
SELECT DISTINCT + 19 / + + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL + ( + - 42 ) + + ( + - 40 ) * - - 21 * + COALESCE ( - + 88, + 70 * ( COUNT( * ) ) ) AS col2
----
73878

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + ( + - 42 ) + + ( + - 40 ) * - - 21 * + COALESCE ( - + 88, + 70 * ( COUNT ( * ) ) ) AS col2
----
73878

query I rowsort
SELECT DISTINCT - - 58 + + - 13 AS col2
----
45

query I rowsort
SELECT - + 22 * 82
----
-1804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7425
SELECT NULLIF ( + 56, + COUNT( * ) ) * + 43 - + + CAST( NULL AS SIGNED ) * 72 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT NULLIF ( + 56, + COUNT ( * ) ) * + 43 - + + CAST ( NULL AS INTEGER ) * 72 + - 97
----
NULL

query I rowsort
SELECT + 70 - - 46 AS col2
----
116

query I rowsort
SELECT + 84 + - 93 * 54 * + 70 AS col2
----
-351456

query I rowsort
SELECT - 53 * - 14 * - 37 AS col1
----
-27454

query I rowsort
SELECT - + 39 + - + 26 AS col2
----
-65

query I rowsort
SELECT DISTINCT + + 16 + + 86 + 84 + - - 38
----
224

query I rowsort
SELECT ALL - - 53 + - ( + 29 ) - 59 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7432
SELECT DISTINCT + 17 * + 57 * + + 23 col2, - COUNT( * ) + - 20 AS col0
----
22287
-21

skipif mysql # not compatible
query II rowsort label-7432
SELECT DISTINCT + 17 * + 57 * + + 23 col2, - COUNT ( * ) + - 20 AS col0
----
22287
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT DISTINCT 80 * - 79 + CASE 22 WHEN COUNT( * ) * - + COUNT( * ) * 32 - - 85 - + 73 THEN - - ( + 39 ) WHEN - 74 THEN NULL ELSE - 36 END * + + 70
----
-8840

skipif mysql # not compatible
query I rowsort label-7433
SELECT DISTINCT 80 * - 79 + CASE 22 WHEN COUNT ( * ) * - + COUNT ( * ) * 32 - - 85 - + 73 THEN - - ( + 39 ) WHEN - 74 THEN NULL ELSE - 36 END * + + 70
----
-8840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - - 41 + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - - 41 + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL - 15 - 87 * - - COUNT( * ) + + 21 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL - 15 - 87 * - - COUNT ( * ) + + 21 AS col2
----
-81

query I rowsort
SELECT - 77 + + 7
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL NULLIF ( + 63, + + ( - MIN( - 76 ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL NULLIF ( + 63, + + ( - MIN ( - 76 ) ) )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT DISTINCT + 67 / CASE - 69 WHEN CAST( 93 AS SIGNED ) THEN NULL WHEN + + COUNT( * ) + - + 20 THEN - AVG ( + 36 ) * - 39 - 52 * - 73 WHEN - + ( + 20 ) + + 61 THEN NULL ELSE NULL END * 96 * + 38 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT + 67 / CASE - 69 WHEN CAST ( 93 AS INTEGER ) THEN NULL WHEN + + COUNT ( * ) + - + 20 THEN - AVG ( + 36 ) * - 39 - 52 * - 73 WHEN - + ( + 20 ) + + 61 THEN NULL ELSE NULL END * 96 * + 38 * + 83
----
NULL

query I rowsort
SELECT ( - 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - COUNT( * ) * + - 52 * + 77
----
4004

skipif mysql # not compatible
query I rowsort label-7440
SELECT - COUNT ( * ) * + - 52 * + 77
----
4004

onlyif mysql # DIV for integer division: 
query I rowsort label-7441
SELECT DISTINCT + 68 DIV 14
----
4

skipif mysql # not compatible
query I rowsort label-7441
SELECT DISTINCT + 68 / 14
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL - 95 * + 62 * + CASE - MAX( 17 ) WHEN - NULLIF ( - 35, - 3 ) + + 80 + 39 * 66 THEN - NULLIF ( + 13, - + COUNT( * ) ) WHEN + - COUNT( * ) + + COUNT( * ) * + 57 + - - 23 THEN NULL ELSE 43 END * + 88 col0
----
-22287760

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL - 95 * + 62 * + CASE - MAX ( 17 ) WHEN - NULLIF ( - 35, - 3 ) + + 80 + 39 * 66 THEN - NULLIF ( + 13, - + COUNT ( * ) ) WHEN + - COUNT ( * ) + + COUNT ( * ) * + 57 + - - 23 THEN NULL ELSE 43 END * + 88 col0
----
-22287760

query I rowsort
SELECT ( + ( + + 70 ) )
----
70

query I rowsort
SELECT DISTINCT + 77 * - + 23
----
-1771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7445
SELECT CASE - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) + + 77 THEN + ( AVG ( - CAST( NULL AS SIGNED ) ) ) WHEN 77 * - 88 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7445
SELECT CASE - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) + + 77 THEN + ( AVG ( - CAST ( NULL AS INTEGER ) ) ) WHEN 77 * - 88 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 81 + - ( 89 ) AS col2
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT + 57 + + + 11 + COUNT( + ( + - 52 ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7447
SELECT + 57 + + + 11 + COUNT ( + ( + - 52 ) ) AS col1
----
69

query I rowsort
SELECT + ( - ( + 65 ) )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT + - 75 - - + COUNT( * ) + - 74 + - - COUNT( * ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-7449
SELECT + - 75 - - + COUNT ( * ) + - 74 + - - COUNT ( * ) AS col1
----
-147

query I rowsort
SELECT + ( - + 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT + 85 * - 17 + + 90 * MIN( DISTINCT - ( 13 ) ) + 76 AS col1
----
-2539

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT + 85 * - 17 + + 90 * MIN ( DISTINCT - ( 13 ) ) + 76 AS col1
----
-2539

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL COUNT( * ) * + 33 + + 2
----
35

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL COUNT ( * ) * + 33 + + 2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL - 56 * - - COUNT( * ) - - - 57 - - - 27 + 16 * - 93 AS col2
----
-1628

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL - 56 * - - COUNT ( * ) - - - 57 - - - 27 + 16 * - 93 AS col2
----
-1628

query I rowsort
SELECT 26 * + - 46 + - 90 AS col1
----
-1286

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL - - SUM( - 6 ) * 14 * 79 + - + 55 * - + 29
----
-5041

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL - - SUM ( - 6 ) * 14 * 79 + - + 55 * - + 29
----
-5041

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + COUNT( * ) + + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-7456
SELECT + COUNT ( * ) + + - 9
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT + COUNT( * ) + + + 24 * - COUNT( * ) + + - 10 * - 23 + + + 34 + 49 - 42
----
248

skipif mysql # not compatible
query I rowsort label-7457
SELECT + COUNT ( * ) + + + 24 * - COUNT ( * ) + + - 10 * - 23 + + + 34 + 49 - 42
----
248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7458
SELECT ALL + 29 * + - 22 * + 30 * 85 + + CAST( - 16 AS SIGNED ) + - MAX( - 71 )
----
-1626845

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL + 29 * + - 22 * + 30 * 85 + + CAST ( - 16 AS INTEGER ) + - MAX ( - 71 )
----
-1626845

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL ( - ( + 87 ) ) * - + 64 - MAX( ALL - - 15 )
----
5553

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL ( - ( + 87 ) ) * - + 64 - MAX ( ALL - - 15 )
----
5553

query I rowsort
SELECT + 68 + + - 35
----
33

query I rowsort
SELECT - COALESCE ( - 6, - - 77 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT ALL - 5 - - 99 - + COUNT( * ) * - + 76 AS col0
----
170

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL - 5 - - 99 - + COUNT ( * ) * - + 76 AS col0
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7463
SELECT DISTINCT COUNT( - CAST( + 28 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT COUNT ( - CAST ( + 28 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT ALL ( + + 5 )
----
5

query I rowsort
SELECT DISTINCT 69 - 41 * + ( - 36 ) * - 49
----
-72255

onlyif mysql # DIV for integer division: 
query I rowsort label-7466
SELECT ALL - 13 DIV + ( + + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL - 13 / + ( + + 82 )
----
0

query I rowsort
SELECT + 18 + - + 18 + + + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL MIN( - 60 ) - - 24 col2
----
-36

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL MIN ( - 60 ) - - 24 col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7469
SELECT DISTINCT + CAST( + 75 AS SIGNED ) AS col0, 81 AS col2
----
75
81

skipif mysql # not compatible
query II rowsort label-7469
SELECT DISTINCT + CAST ( + 75 AS INTEGER ) AS col0, 81 AS col2
----
75
81

query I rowsort
SELECT - 31 + - 92 + - 64 * - 72 AS col1
----
4485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT - CAST( + 84 AS SIGNED ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7471
SELECT - CAST ( + 84 AS INTEGER ) AS col2
----
-84

query I rowsort
SELECT - 83 * - 81
----
6723

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7473
SELECT ALL COALESCE ( + CASE ( - 97 ) WHEN - 84 THEN + + 84 * + + 32 ELSE + 95 * + + 76 END, + 94 DIV - COUNT( * ) ) AS col2, NULLIF ( - - 13, + 82 )
----
7220
13

skipif mysql # not compatible
query II rowsort label-7473
SELECT ALL COALESCE ( + CASE ( - 97 ) WHEN - 84 THEN + + 84 * + + 32 ELSE + 95 * + + 76 END, + 94 / - COUNT ( * ) ) AS col2, NULLIF ( - - 13, + 82 )
----
7220
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + 63 * - NULLIF ( + - COUNT( * ), 98 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + 63 * - NULLIF ( + - COUNT ( * ), 98 ) col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT - CAST( NULL AS SIGNED ) * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT - CAST ( NULL AS INTEGER ) * + 17
----
NULL

query I rowsort
SELECT - 64 + + 19 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT DISTINCT COUNT( + 62 ) * - - 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT COUNT ( + 62 ) * - - 5 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7478
SELECT - 41 + COUNT( ALL + 72 ) + + 53 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT - 41 + COUNT ( ALL + 72 ) + + 53 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT ALL + 64 * + CAST( - + 42 AS SIGNED ) AS col1
----
-2688

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL + 64 * + CAST ( - + 42 AS INTEGER ) AS col1
----
-2688

onlyif mysql # DIV for integer division: 
query II rowsort label-7480
SELECT - 37 DIV - - 47 + - 80 * - 82 + - 4 AS col1, 74
----
6556
74

skipif mysql # not compatible
query II rowsort label-7480
SELECT - 37 / - - 47 + - 80 * - 82 + - 4 AS col1, 74
----
6556
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT ALL + NULLIF ( + 88, COUNT( * ) ) DIV + - 2 + + 94
----
50

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL + NULLIF ( + 88, COUNT ( * ) ) / + - 2 + + 94
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7482
SELECT - 81 DIV + 76 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7482
SELECT - 81 / + 76 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT ALL + 95 DIV + 40 + + 26 DIV + 42
----
2

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + 95 / + 40 + + 26 / + 42
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL + CASE + 51 WHEN + 42 THEN NULL WHEN - 18 - + - 24 + - ( + - 39 ) * 31 + + MIN( ALL - + 72 ) + + 38 THEN - 8 + - 23 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL + CASE + 51 WHEN + 42 THEN NULL WHEN - 18 - + - 24 + - ( + - 39 ) * 31 + + MIN ( ALL - + 72 ) + + 38 THEN - 8 + - 23 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - 57 * 35 AS col2
----
-1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT DISTINCT - ( + CAST( SUM( DISTINCT 9 ) AS SIGNED ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT - ( + CAST ( SUM ( DISTINCT 9 ) AS INTEGER ) ) AS col0
----
-9

query I rowsort
SELECT 39 + 86
----
125

query I rowsort
SELECT ALL 3 * + + 99 AS col0
----
297

query I rowsort
SELECT - CASE 1 WHEN + - 52 THEN 74 END * - - 70 / - 65
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT ALL + 44 + - + CAST( NULL AS SIGNED ) + - - 59 + + 81 * - 35 * - - 32 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL + 44 + - + CAST ( NULL AS INTEGER ) + - - 59 + + 81 * - 35 * - - 32 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 33 * + 44
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + COALESCE ( + + 14, - 59 ) * 42 + - - COUNT( * )
----
589

skipif mysql # not compatible
query I rowsort label-7492
SELECT + COALESCE ( + + 14, - 59 ) * 42 + - - COUNT ( * )
----
589

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT + 57 * + - 16 * + 30 + - COUNT( * )
----
-27361

skipif mysql # not compatible
query I rowsort label-7493
SELECT + 57 * + - 16 * + 30 + - COUNT ( * )
----
-27361

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT 87 + MIN( - 1 )
----
86

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT 87 + MIN ( - 1 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT ALL + + 82 * COALESCE ( + 33, - - 87 DIV - 59 DIV - 61 )
----
2706

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + + 82 * COALESCE ( + 33, - - 87 / - 59 / - 61 )
----
2706

query I rowsort
SELECT - 75 * - 83 AS col1
----
6225

query I rowsort
SELECT ALL - 68 * - - 72 AS col0
----
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT COUNT( * ) * 3 + 86 col2
----
89

skipif mysql # not compatible
query I rowsort label-7498
SELECT COUNT ( * ) * 3 + 86 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL + MIN( ALL 28 ) / 44 / - NULLIF ( - COUNT( * ), - COUNT( * ) ) + + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL + MIN ( ALL 28 ) / 44 / - NULLIF ( - COUNT ( * ), - COUNT ( * ) ) + + 1 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT - MIN( 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-7500
SELECT - MIN ( 43 ) col0
----
-43

query I rowsort
SELECT ALL - 23 * 31
----
-713

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7502
SELECT + NULLIF ( 57, 59 + + ( - + MAX( - 99 ) ) ) DIV + 19
----
3

skipif mysql # not compatible
query I rowsort label-7502
SELECT + NULLIF ( 57, 59 + + ( - + MAX ( - 99 ) ) ) / + 19
----
3

query I rowsort
SELECT 84 * - - 4 col1
----
336

query I rowsort
SELECT 15 + + ( + 89 )
----
104

query I rowsort
SELECT DISTINCT 7 * + 30 AS col1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT 24 + + ( + + SUM( - 12 ) )
----
12

skipif mysql # not compatible
query I rowsort label-7506
SELECT 24 + + ( + + SUM ( - 12 ) )
----
12

query I rowsort
SELECT ALL 36 * + 19 * + - 59 * + ( + 63 ) col0
----
-2542428

query II rowsort
SELECT - 21 AS col0, - 69
----
-21
-69

query I rowsort
SELECT 5 * + 74
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL COUNT( * ) * - + NULLIF ( 98, 79 ) * + + 49 AS col2
----
-4802

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL COUNT ( * ) * - + NULLIF ( 98, 79 ) * + + 49 AS col2
----
-4802

query I rowsort
SELECT 17 + 25 + - 44
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7512
SELECT ALL 32 AS col1, + COUNT( + 88 ) * - ( + + CAST( - 58 AS SIGNED ) ) DIV - ( 97 ) + + - 56 AS col1, + SUM( DISTINCT 55 )
----
32
-56
55

skipif mysql # not compatible
query III rowsort label-7512
SELECT ALL 32 AS col1, + COUNT ( + 88 ) * - ( + + CAST ( - 58 AS INTEGER ) ) / - ( 97 ) + + - 56 AS col1, + SUM ( DISTINCT 55 )
----
32
-56
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL 23 + + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL 23 + + COUNT ( * ) AS col0
----
24

query II rowsort
SELECT - 88, 6 col2
----
-88
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT ( + NULLIF ( + CAST( NULL AS SIGNED ), + - 40 ) ) * + ( 53 ) - + + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT ( + NULLIF ( + CAST ( NULL AS INTEGER ), + - 40 ) ) * + ( 53 ) - + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT COUNT( * ) + - 35 + 20 * 96
----
1886

skipif mysql # not compatible
query I rowsort label-7516
SELECT COUNT ( * ) + - 35 + 20 * 96
----
1886

query I rowsort
SELECT ALL + COALESCE ( - 11, - ( + - 47 ) ) * 41 * - 1 col0
----
451

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT DISTINCT - 15 * - - CAST( - 56 AS SIGNED ) AS col0
----
840

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - 15 * - - CAST ( - 56 AS INTEGER ) AS col0
----
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7519
SELECT ALL + 60 + + + 53 AS col0, - 13 * - ( + 66 ) DIV COUNT( * ) AS col0
----
113
858

skipif mysql # not compatible
query II rowsort label-7519
SELECT ALL + 60 + + + 53 AS col0, - 13 * - ( + 66 ) / COUNT ( * ) AS col0
----
113
858

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT 48 DIV + 27 col2
----
1

skipif mysql # not compatible
query I rowsort label-7520
SELECT 48 / + 27 col2
----
1

query I rowsort
SELECT DISTINCT - - 84 * + 56 AS col1
----
4704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7522
SELECT - 79 - NULLIF ( + COUNT( * ), 32 ) - + COALESCE ( - CAST( - 41 AS SIGNED ), - - NULLIF ( - - 13, - COUNT( * ) DIV - + 1 * - MIN( ALL - 82 ) + + 21 ) - - COUNT( * ) DIV 18, - + CASE WHEN NULL IS NOT NULL THEN 96 END + + 2 + + 12 * 32 DIV - 79 * - 37 * + 46 ) * + ( + + ( 32 ) ) AS col2
----
-1392

skipif mysql # not compatible
query I rowsort label-7522
SELECT - 79 - NULLIF ( + COUNT ( * ), 32 ) - + COALESCE ( - CAST ( - 41 AS INTEGER ), - - NULLIF ( - - 13, - COUNT ( * ) / - + 1 * - MIN ( ALL - 82 ) + + 21 ) - - COUNT ( * ) / 18, - + CASE WHEN NULL IS NOT NULL THEN 96 END + + 2 + + 12 * 32 / - 79 * - 37 * + 46 ) * + ( + + ( 32 ) ) AS col2
----
-1392

query I rowsort
SELECT + - 40 AS col2
----
-40

query I rowsort
SELECT - ( - 72 ) + + 63 + - - 90 AS col0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL + NULLIF ( - - 52, 80 ) - - + COUNT( * ) + 58 * - - 60
----
3533

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + NULLIF ( - - 52, 80 ) - - + COUNT ( * ) + 58 * - - 60
----
3533

query I rowsort
SELECT 20 + 17 * 1 + + + 36
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT ALL - - COUNT( * ) AS col2, COUNT( * ) * 7 + - 93 - + 5 AS col0
----
1
-91

skipif mysql # not compatible
query II rowsort label-7527
SELECT ALL - - COUNT ( * ) AS col2, COUNT ( * ) * 7 + - 93 - + 5 AS col0
----
1
-91

query I rowsort
SELECT DISTINCT + + 80 - - 69 + - 89 * - + 16 AS col1
----
1573

query I rowsort
SELECT DISTINCT - - COALESCE ( 74, + 78 ) * + 70 * + 17 AS col2
----
88060

query III rowsort
SELECT ALL - - 3 AS col2, 19 AS col0, - 1 AS col2
----
3
19
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT + + SUM( + - 77 ) * 24 + + - 3 + + ( + - 35 ) AS col1, - 96
----
-1886
-96

skipif mysql # not compatible
query II rowsort label-7531
SELECT + + SUM ( + - 77 ) * 24 + + - 3 + + ( + - 35 ) AS col1, - 96
----
-1886
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT ALL + 77 - + COUNT( * ) AS col1, 40
----
76
40

skipif mysql # not compatible
query II rowsort label-7532
SELECT ALL + 77 - + COUNT ( * ) AS col1, 40
----
76
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7533
SELECT DISTINCT - 19 DIV + SUM( ALL - + COALESCE ( - 13, - - 94 * + 92 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT - 19 / + SUM ( ALL - + COALESCE ( - 13, - - 94 * + 92 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - 50 * + COUNT( * ) + + 45 - + NULLIF ( + 26, 72 ) - 64 + + 31 - + 13 * - COUNT( * ) - - 77 * + COUNT( ALL - 45 ) - - 95 * 84 AS col1
----
8006

skipif mysql # not compatible
query I rowsort label-7534
SELECT - 50 * + COUNT ( * ) + + 45 - + NULLIF ( + 26, 72 ) - 64 + + 31 - + 13 * - COUNT ( * ) - - 77 * + COUNT ( ALL - 45 ) - - 95 * 84 AS col1
----
8006

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL + 27 * + + 53 * - COUNT( * ) AS col1
----
-1431

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + 27 * + + 53 * - COUNT ( * ) AS col1
----
-1431

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT + COUNT( * ) + + 61 + 72
----
134

skipif mysql # not compatible
query I rowsort label-7536
SELECT + COUNT ( * ) + + 61 + 72
----
134

query I rowsort
SELECT + 58 * + 48 + + 3 + 85
----
2872

query II rowsort
SELECT ALL + 55, + 41 AS col0
----
55
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT SUM( ALL - - 74 ) * 71 + + 26 * - - CAST( NULL AS SIGNED ) - + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT SUM ( ALL - - 74 ) * 71 + + 26 * - - CAST ( NULL AS INTEGER ) - + 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT - COUNT( * ) * - 95 * + + MIN( - 8 ) AS col1
----
-760

skipif mysql # not compatible
query I rowsort label-7540
SELECT - COUNT ( * ) * - 95 * + + MIN ( - 8 ) AS col1
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL MAX( + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL MAX ( + 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT - MAX( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-7542
SELECT - MAX ( 73 )
----
-73

query I rowsort
SELECT 4 + - 57 col1
----
-53

query I rowsort
SELECT + 46 + 67 col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT ALL COUNT( DISTINCT + 35 ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL COUNT ( DISTINCT + 35 ) + + 2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT - COALESCE ( - ( COUNT( * ) ), + - ( + 42 ) * ( - CASE + COUNT( * ) WHEN + 35 * + 64 + - + 67 - MAX( + ( 0 ) ) THEN - + 8 - + ( - - 85 ) * CASE - 72 WHEN 15 / + - 75 THEN NULL ELSE 30 * - - 95 END ELSE NULL END ) + 24 + - COUNT( DISTINCT + 67 ) ) + + - COALESCE ( + 87, - 69 )
----
-86

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - COALESCE ( - ( COUNT ( * ) ), + - ( + 42 ) * ( - CASE + COUNT ( * ) WHEN + 35 * + 64 + - + 67 - MAX ( + ( 0 ) ) THEN - + 8 - + ( - - 85 ) * CASE - 72 WHEN 15 / + - 75 THEN NULL ELSE 30 * - - 95 END ELSE NULL END ) + 24 + - COUNT ( DISTINCT + 67 ) ) + + - COALESCE ( + 87, - 69 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ALL + 56 + SUM( + 27 )
----
83

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + 56 + SUM ( + 27 )
----
83

query I rowsort
SELECT + 15 * - - 33
----
495

query I rowsort
SELECT 56 * + 63 + - 33 + + 92
----
3587

query I rowsort
SELECT ALL + + 13 col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7551
SELECT ALL + - CASE + 41 WHEN + - CASE + 93 WHEN - ( + 73 ) THEN + 88 * + + ( - + 76 ) + 46 ELSE NULL END THEN NULL WHEN - 94 THEN NULL ELSE - 33 END col0, - COUNT( * ) AS col0
----
33
-1

skipif mysql # not compatible
query II rowsort label-7551
SELECT ALL + - CASE + 41 WHEN + - CASE + 93 WHEN - ( + 73 ) THEN + 88 * + + ( - + 76 ) + 46 ELSE NULL END THEN NULL WHEN - 94 THEN NULL ELSE - 33 END col0, - COUNT ( * ) AS col0
----
33
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT 36 * + - 31 * - + 87 + - - 3 + + COUNT( * ) * - SUM( - 44 )
----
97139

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT 36 * + - 31 * - + 87 + - - 3 + + COUNT ( * ) * - SUM ( - 44 )
----
97139

query I rowsort
SELECT ALL + - NULLIF ( 10, 16 ) AS col0
----
-10

query I rowsort
SELECT ALL + NULLIF ( + CASE + 76 WHEN + 63 THEN - 59 ELSE NULL END, - + 38 / + - 94 / + - 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT + MAX( - - 49 ), ( - - 96 ) * - + 31 col2
----
49
-2976

skipif mysql # not compatible
query II rowsort label-7555
SELECT + MAX ( - - 49 ), ( - - 96 ) * - + 31 col2
----
49
-2976

query I rowsort
SELECT + 50 * 39 * + 11 AS col0
----
21450

query I rowsort
SELECT - 20 * - - 68 AS col2
----
-1360

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT - 42 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT - 42 / - 66
----
0

query I rowsort
SELECT DISTINCT + 22 + 80
----
102

query I rowsort
SELECT ALL - 32 * 2 AS col0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7561
SELECT ALL + NULLIF ( - CAST( ( - - COUNT( * ) ) AS SIGNED ), + 1 * - 5 + 43 ) + + 54, - 94 AS col0
----
53
-94

skipif mysql # not compatible
query II rowsort label-7561
SELECT ALL + NULLIF ( - CAST ( ( - - COUNT ( * ) ) AS INTEGER ), + 1 * - 5 + 43 ) + + 54, - 94 AS col0
----
53
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7562
SELECT - CAST( - + 6 AS SIGNED ) + + 80 AS col1, COUNT( * ) + + SUM( DISTINCT + - 24 ) col1
----
86
-23

skipif mysql # not compatible
query II rowsort label-7562
SELECT - CAST ( - + 6 AS INTEGER ) + + 80 AS col1, COUNT ( * ) + + SUM ( DISTINCT + - 24 ) col1
----
86
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7563
SELECT ALL - ( - COUNT( * ) ) * + NULLIF ( - 1, COUNT( * ) * + - CAST( + COALESCE ( - 74, + COUNT( * ) / 79 * 40 * + 61 ) AS SIGNED ) ) - - 74 col1
----
73

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL - ( - COUNT ( * ) ) * + NULLIF ( - 1, COUNT ( * ) * + - CAST ( + COALESCE ( - 74, + COUNT ( * ) / 79 * 40 * + 61 ) AS INTEGER ) ) - - 74 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT ( - CASE + 26 WHEN 41 THEN NULL WHEN + 64 + + 26 * + 11 THEN + COUNT( * ) + 83 WHEN - + 84 THEN NULL ELSE 11 END )
----
-11

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT ( - CASE + 26 WHEN 41 THEN NULL WHEN + 64 + + 26 * + 11 THEN + COUNT ( * ) + 83 WHEN - + 84 THEN NULL ELSE 11 END )
----
-11

query I rowsort
SELECT ALL + ( - - 12 ) + - 80
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL COUNT( * ) + 73
----
74

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL COUNT ( * ) + 73
----
74

query I rowsort
SELECT - 34 * + + 3
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT - 52 DIV - ( - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-7568
SELECT - 52 / - ( - 90 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - COUNT( * ) - + 96
----
-97

skipif mysql # not compatible
query I rowsort label-7569
SELECT - COUNT ( * ) - + 96
----
-97

query I rowsort
SELECT DISTINCT ( - 47 ) AS col1
----
-47

query I rowsort
SELECT ALL 98 * - + 30 * - - 31 AS col0
----
-91140

query I rowsort
SELECT DISTINCT - ( - 83 ) - 92 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT - 75 + NULLIF ( - + 47, - 36 * + + NULLIF ( - + 87, - COUNT( * ) + + 57 + - 53 ) + ( + 68 ) ) AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-7573
SELECT - 75 + NULLIF ( - + 47, - 36 * + + NULLIF ( - + 87, - COUNT ( * ) + + 57 + - 53 ) + ( + 68 ) ) AS col1
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-7574
SELECT - COUNT( * ), - 21 + + 5 AS col2
----
-1
-16

skipif mysql # not compatible
query II rowsort label-7574
SELECT - COUNT ( * ), - 21 + + 5 AS col2
----
-1
-16

query I rowsort
SELECT ALL ( 16 ) * - 39 * + 52 AS col2
----
-32448

query I rowsort
SELECT - + 7 * - 96 * + - 91 + + + 83 AS col0
----
-61069

query I rowsort
SELECT - + 54 AS col2
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7578
SELECT - COALESCE ( + + 60, + + CAST( 36 AS SIGNED ) * - + 57 + + - 16 * + 19 - - 19 + - 41 - + + CASE 6 WHEN + 49 THEN 35 * - 15 + 45 + + - MAX( - - 2 ) WHEN + COUNT( * ) THEN - 8 END ), 1 + 20 AS col1
----
-60
21

skipif mysql # not compatible
query II rowsort label-7578
SELECT - COALESCE ( + + 60, + + CAST ( 36 AS INTEGER ) * - + 57 + + - 16 * + 19 - - 19 + - 41 - + + CASE 6 WHEN + 49 THEN 35 * - 15 + 45 + + - MAX ( - - 2 ) WHEN + COUNT ( * ) THEN - 8 END ), 1 + 20 AS col1
----
-60
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL + + MAX( ALL + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL + + MAX ( ALL + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT + 46 * - - 35 + - COUNT( * ) * 30 - - 74
----
1654

skipif mysql # not compatible
query I rowsort label-7580
SELECT + 46 * - - 35 + - COUNT ( * ) * 30 - - 74
----
1654

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT DISTINCT 80 DIV 23 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT 80 / 23 AS col2
----
3

query I rowsort
SELECT ALL + + 85 AS col1
----
85

query II rowsort
SELECT ALL + - 24 col0, + 56 + - 31
----
-24
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7584
SELECT - 98 DIV + + 82
----
-1

skipif mysql # not compatible
query I rowsort label-7584
SELECT - 98 / + + 82
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT + 68 DIV + - 11 col0
----
-6

skipif mysql # not compatible
query I rowsort label-7585
SELECT + 68 / + - 11 col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7586
SELECT + 67 * + NULLIF ( 54, - 87 ) * + - 10 * - 52 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT + 67 * + NULLIF ( 54, - 87 ) * + - 10 * - 52 + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT + + CASE + COUNT( * ) WHEN - ( 45 ) THEN 60 + - + COUNT( * ) - SUM( ALL 55 ) * - COUNT( * ) * + 20 - + + 44 - - 50 * - 71 ELSE NULL END - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT + + CASE + COUNT ( * ) WHEN - ( 45 ) THEN 60 + - + COUNT ( * ) - SUM ( ALL 55 ) * - COUNT ( * ) * + 20 - + + 44 - - 50 * - 71 ELSE NULL END - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7588
SELECT 5 DIV - 50 + + - 82 * - 12 * - 4 + + + 24 + + COUNT( * ) * - COUNT( * ) AS col1
----
-3913

skipif mysql # not compatible
query I rowsort label-7588
SELECT 5 / - 50 + + - 82 * - 12 * - 4 + + + 24 + + COUNT ( * ) * - COUNT ( * ) AS col1
----
-3913

query I rowsort
SELECT + + 31 + - 96 AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7590
SELECT + - NULLIF ( + COALESCE ( - - 50, - CAST( CAST( NULL AS SIGNED ) AS SIGNED ), - 70 + - COUNT( * ) * - + 81 ), + 35 )
----
-50

skipif mysql # not compatible
query I rowsort label-7590
SELECT + - NULLIF ( + COALESCE ( - - 50, - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), - 70 + - COUNT ( * ) * - + 81 ), + 35 )
----
-50

query I rowsort
SELECT + - 56 * 7
----
-392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7592
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED ) * - + 34 + - 54 + COUNT( * ) DIV 16, 20 * 91 * + 13 * - 86 + 25 col0, - + 88 + + 14 DIV 67 AS col2
----
-20
-2034735
-88

skipif mysql # not compatible
query III rowsort label-7592
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) * - + 34 + - 54 + COUNT ( * ) / 16, 20 * 91 * + 13 * - 86 + 25 col0, - + 88 + + 14 / 67 AS col2
----
-20
-2034735
-88

query II rowsort
SELECT ALL + - 27, - 8 AS col0
----
-27
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL 8 * 66 * + 8 + + 44 + 85 * + 60 * + - COUNT( * ) AS col0
----
-832

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL 8 * 66 * + 8 + + 44 + 85 * + 60 * + - COUNT ( * ) AS col0
----
-832

query II rowsort
SELECT ALL + - 10 AS col1, - 4 AS col0
----
-10
-4

query I rowsort
SELECT ALL + 80 * + 12 * + 27 + 31 AS col0
----
25951

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT + COUNT( + 12 ) + + - 97 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7597
SELECT + COUNT ( + 12 ) + + - 97 AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7598
SELECT - 77 + - - CAST( + COUNT( * ) AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-7598
SELECT - 77 + - - CAST ( + COUNT ( * ) AS INTEGER )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT - MAX( DISTINCT 49 ) + 63 * + + 45 AS col1, - 23 + + + 81 AS col0
----
2786
58

skipif mysql # not compatible
query II rowsort label-7599
SELECT - MAX ( DISTINCT 49 ) + 63 * + + 45 AS col1, - 23 + + + 81 AS col0
----
2786
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7600
SELECT DISTINCT + CAST( - - 89 AS SIGNED ) + + 51 * - 99 * 15 DIV - COUNT( * )
----
75824

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + CAST ( - - 89 AS INTEGER ) + + 51 * - 99 * 15 / - COUNT ( * )
----
75824

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT 33 * 98 DIV - + 49
----
-66

skipif mysql # not compatible
query I rowsort label-7601
SELECT 33 * 98 / - + 49
----
-66

query I rowsort
SELECT 42 + 2 col1
----
44

query I rowsort
SELECT ALL - 1 * 37
----
-37

query II rowsort
SELECT DISTINCT + 47 * + - 51, 11 AS col2
----
-2397
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7605
SELECT ALL + CAST( - 16 AS SIGNED ) - + 88 + - CAST( - COUNT( * ) AS SIGNED ) + - 14 + - + 74
----
-191

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL + CAST ( - 16 AS INTEGER ) - + 88 + - CAST ( - COUNT ( * ) AS INTEGER ) + - 14 + - + 74
----
-191

query II rowsort
SELECT 58 * 21 AS col1, 93 AS col1
----
1218
93

query I rowsort
SELECT 32 * + 8
----
256

query I rowsort
SELECT 68 * - 97
----
-6596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7609
SELECT ALL + 2 * + + COALESCE ( + + COUNT( ALL - 45 ), 79, - - 18 DIV 67, 54 )
----
2

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL + 2 * + + COALESCE ( + + COUNT ( ALL - 45 ), 79, - - 18 / 67, 54 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT 39 + - 51 * + + CAST( - - 24 AS SIGNED )
----
-1185

skipif mysql # not compatible
query I rowsort label-7610
SELECT 39 + - 51 * + + CAST ( - - 24 AS INTEGER )
----
-1185

query I rowsort
SELECT 74 - - 12 + + 53 AS col0
----
139

query I rowsort
SELECT 77 + + 3 * - 64 AS col0
----
-115

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7613
SELECT - CAST( + 20 AS SIGNED ) AS col2, 18 + - CAST( - CAST( + - ( 31 ) AS DECIMAL ) AS SIGNED ) AS col0
----
-20
-13

skipif mysql # not compatible
query II rowsort label-7613
SELECT - CAST ( + 20 AS INTEGER ) AS col2, 18 + - CAST ( - CAST ( + - ( 31 ) AS REAL ) AS INTEGER ) AS col0
----
-20
-13

query I rowsort
SELECT DISTINCT + ( + 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT 49 + + 97 * COUNT( * ) + - - 58 * + 58
----
3510

skipif mysql # not compatible
query I rowsort label-7615
SELECT 49 + + 97 * COUNT ( * ) + - - 58 * + 58
----
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL COUNT( - 91 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL COUNT ( - 91 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT + - MIN( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7617
SELECT + - MIN ( - 1 )
----
1

query I rowsort
SELECT - COALESCE ( + 40, - + 90 * - + 30 + 0, - 26 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT 4 / + 89 + 9 + - NULLIF ( 52, + 26 * + + ( 16 ) ) * - NULLIF ( 2, + - NULLIF ( - 60, - 38 * - COUNT( * ) + + 95 ) ) * - - 59 + - + CASE NULLIF ( + - 78, - + 14 - 80 ) WHEN + + 8 THEN + + 65 / + 64 END * - - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT 4 / + 89 + 9 + - NULLIF ( 52, + 26 * + + ( 16 ) ) * - NULLIF ( 2, + - NULLIF ( - 60, - 38 * - COUNT ( * ) + + 95 ) ) * - - 59 + - + CASE NULLIF ( + - 78, - + 14 - 80 ) WHEN + + 8 THEN + + 65 / + 64 END * - - 22 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 31 AS col0
----
-31

query II rowsort
SELECT ALL + + 48 * 12 AS col0, + 81 AS col2
----
576
81

query I rowsort
SELECT NULLIF ( - - 83, + 92 / + - ( 61 ) ) * + 25 AS col2
----
2075

query I rowsort
SELECT DISTINCT 54 + + + 9 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7624
SELECT ALL 58 + + CAST( NULL AS SIGNED ) col2, - 56 * - 69 * + MAX( - - 87 ) AS col2
----
NULL
336168

skipif mysql # not compatible
query II rowsort label-7624
SELECT ALL 58 + + CAST ( NULL AS INTEGER ) col2, - 56 * - 69 * + MAX ( - - 87 ) AS col2
----
NULL
336168

query I rowsort
SELECT DISTINCT - + 81 AS col2
----
-81

query I rowsort
SELECT DISTINCT - 46 + + - 59 col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL - COUNT( ALL 15 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - COUNT ( ALL 15 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT ALL 38 + + COUNT( * ) - - - COUNT( 71 )
----
38

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL 38 + + COUNT ( * ) - - - COUNT ( 71 )
----
38

query I rowsort
SELECT DISTINCT - - 43 col0
----
43

query I rowsort
SELECT 98 * - 79 AS col2
----
-7742

query II rowsort
SELECT ALL - 72 AS col0, 82 * + + 75 - NULLIF ( 36, 45 * + 73 + 35 + + - 36 )
----
-72
6114

query I rowsort
SELECT ALL ( + + 78 ) - + + 47 + + 73 + - 21 col1
----
83

query I rowsort
SELECT DISTINCT ( 39 ) * - 88 col1
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT ( + + 95 ) * + - COUNT( DISTINCT - 99 )
----
-95

skipif mysql # not compatible
query I rowsort label-7634
SELECT ( + + 95 ) * + - COUNT ( DISTINCT - 99 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT ALL MIN( - + 1 ) - + - COUNT( * ) * 70
----
69

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL MIN ( - + 1 ) - + - COUNT ( * ) * 70
----
69

query I rowsort
SELECT ( + 32 ) + + + 6 * - 84 AS col1
----
-472

query I rowsort
SELECT 68 * - + 90
----
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7638
SELECT CAST( NULL AS SIGNED ) * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT CAST ( NULL AS INTEGER ) * - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT COUNT( * ) + + 45 + + + 69 - - - 83 * - + 86
----
7253

skipif mysql # not compatible
query I rowsort label-7639
SELECT COUNT ( * ) + + 45 + + + 69 - - - 83 * - + 86
----
7253

query II rowsort
SELECT DISTINCT 52, - 46 * 47 * 97 AS col0
----
52
-209714

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT ALL - 43 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL - 43 / 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT - SUM( 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-7642
SELECT - SUM ( 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7643
SELECT DISTINCT MIN( - COALESCE ( 89, + 60 * - 19 + + ( - + 6 ) ) ) DIV + COUNT( * ) AS col2, 18 * - CASE - 45 WHEN 47 THEN + + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) * 14 + - - COUNT( * ) + - COUNT( ALL - + 44 ) ELSE NULL END col2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-7643
SELECT DISTINCT MIN ( - COALESCE ( 89, + 60 * - 19 + + ( - + 6 ) ) ) / + COUNT ( * ) AS col2, 18 * - CASE - 45 WHEN 47 THEN + + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * 14 + - - COUNT ( * ) + - COUNT ( ALL - + 44 ) ELSE NULL END col2
----
-89
NULL

query I rowsort
SELECT DISTINCT ( + 80 ) col2
----
80

query I rowsort
SELECT ALL - + 0 * + ( + - 57 ) + + 45 + + 3
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7646
SELECT + 23 * + 78 + - 85 col1, + COALESCE ( - ( - 69 ), - CAST( - 92 AS SIGNED ) ) * 68 + + COALESCE ( + - 32, + ( + + 84 ) ) AS col1
----
1709
4660

skipif mysql # not compatible
query II rowsort label-7646
SELECT + 23 * + 78 + - 85 col1, + COALESCE ( - ( - 69 ), - CAST ( - 92 AS INTEGER ) ) * 68 + + COALESCE ( + - 32, + ( + + 84 ) ) AS col1
----
1709
4660

query II rowsort
SELECT - - 20 AS col2, 15 * + 78 AS col2
----
20
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT + 11 + - NULLIF ( + MAX( ALL + + 43 ), - 61 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT + 11 + - NULLIF ( + MAX ( ALL + + 43 ), - 61 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT MIN( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-7649
SELECT MIN ( DISTINCT + 26 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7650
SELECT 43 * - COUNT( 68 ), - NULLIF ( + 43, + + 67 )
----
-43
-43

skipif mysql # not compatible
query II rowsort label-7650
SELECT 43 * - COUNT ( 68 ), - NULLIF ( + 43, + + 67 )
----
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - ( + 49 ) * - CASE - 42 WHEN + 37 + - 94 THEN NULL WHEN - + COUNT( * ) THEN - 88 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT - ( + 49 ) * - CASE - 42 WHEN + 37 + - 94 THEN NULL WHEN - + COUNT ( * ) THEN - 88 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7652
SELECT - 12 - - 65 * + COUNT( * ) AS col2, 41 + 29
----
53
70

skipif mysql # not compatible
query II rowsort label-7652
SELECT - 12 - - 65 * + COUNT ( * ) AS col2, 41 + 29
----
53
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7653
SELECT DISTINCT - 67 * + - SUM( DISTINCT 2 ) * - 37 + + COUNT( * ) AS col2, - 17 * + 3
----
-4957
-51

skipif mysql # not compatible
query II rowsort label-7653
SELECT DISTINCT - 67 * + - SUM ( DISTINCT 2 ) * - 37 + + COUNT ( * ) AS col2, - 17 * + 3
----
-4957
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7654
SELECT - 99 * - 33 - + ( + NULLIF ( - 50, 16 * - CASE - 19 WHEN + CAST( NULL AS SIGNED ) * + COUNT( * ) + + 31 THEN NULL WHEN + COUNT( * ) THEN - 14 ELSE - - 91 * - - 85 END ) )
----
3317

skipif mysql # not compatible
query I rowsort label-7654
SELECT - 99 * - 33 - + ( + NULLIF ( - 50, 16 * - CASE - 19 WHEN + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 31 THEN NULL WHEN + COUNT ( * ) THEN - 14 ELSE - - 91 * - - 85 END ) )
----
3317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7655
SELECT ALL - - 32 * COUNT( * ) + + COUNT( + - 78 ) + + 62 AS col2, 21 / - 51 * - 62 * + CAST( NULL AS SIGNED ) AS col2
----
95
NULL

skipif mysql # not compatible
query II rowsort label-7655
SELECT ALL - - 32 * COUNT ( * ) + + COUNT ( + - 78 ) + + 62 AS col2, 21 / - 51 * - 62 * + CAST ( NULL AS INTEGER ) AS col2
----
95
NULL

query I rowsort
SELECT ALL 3 * - - 5 + - + 75
----
-60

query I rowsort
SELECT DISTINCT + + 67 * 72 + - 36 + 23 + + 79 col0
----
4890

query I rowsort
SELECT 62 * - 80 + - 79 + + 52 * + - 90 * 88 AS col1
----
-416879

query II rowsort
SELECT 89 - - 16 + 28 - - + 84 * 25 AS col2, - 39 AS col2
----
2233
-39

query I rowsort
SELECT ALL - ( + 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7661
SELECT - 42 + - CASE WHEN NOT 20 NOT BETWEEN + 5 AND + - 23 THEN + 92 * - 22 ELSE COUNT( * ) * + 36 + + ( - 68 ) + + 42 + + + 65 * - + CASE + - 52 WHEN 47 * + CAST( 73 AS SIGNED ) + - ( + - COUNT( DISTINCT 85 ) ) - - - COALESCE ( + + 54, 60 ) * 52 THEN NULL WHEN + ( + COUNT( * ) ) + 4 / 77 / MAX( + 22 ) + - 55 THEN 38 + + - 41 / + ( 36 ) + - MAX( ALL - 42 ) + + - 74 + - COUNT( * ) + - CAST( + 57 AS SIGNED ) + - ( 39 ) ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT - 42 + - CASE WHEN NOT 20 NOT BETWEEN + 5 AND + - 23 THEN + 92 * - 22 ELSE COUNT ( * ) * + 36 + + ( - 68 ) + + 42 + + + 65 * - + CASE + - 52 WHEN 47 * + CAST ( 73 AS INTEGER ) + - ( + - COUNT ( DISTINCT 85 ) ) - - - COALESCE ( + + 54, 60 ) * 52 THEN NULL WHEN + ( + COUNT ( * ) ) + 4 / 77 / MAX ( + 22 ) + - 55 THEN 38 + + - 41 / + ( 36 ) + - MAX ( ALL - 42 ) + + - 74 + - COUNT ( * ) + - CAST ( + 57 AS INTEGER ) + - ( 39 ) ELSE NULL END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7662
SELECT ALL + 48 * + ( 24 ) - - - 65 DIV 25
----
1150

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL + 48 * + ( 24 ) - - - 65 / 25
----
1150

query I rowsort
SELECT - 59 * - 51 AS col1
----
3009

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL - COUNT( * ) * + 19
----
-19

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - COUNT ( * ) * + 19
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL + CASE - COUNT( DISTINCT 31 ) WHEN + ( NULLIF ( + 36, 12 ) ) THEN - ( + + 77 ) * 33 + COUNT( * ) - - 28 WHEN + - 36 * - 95 THEN 61 * + COALESCE ( - 4, 25 + + 81 ) - 95 + - - 40 + MAX( DISTINCT + 46 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + CASE - COUNT ( DISTINCT 31 ) WHEN + ( NULLIF ( + 36, 12 ) ) THEN - ( + + 77 ) * 33 + COUNT ( * ) - - 28 WHEN + - 36 * - 95 THEN 61 * + COALESCE ( - 4, 25 + + 81 ) - 95 + - - 40 + MAX ( DISTINCT + 46 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT + NULLIF ( - + 93, - 51 * - 70 + - ( - + NULLIF ( - 30, - COUNT( 42 ) ) ) ) * + 75 + - + MIN( ALL + 8 ) * SUM( ALL + 58 ) * + ( - 83 ) + + COUNT( * ) AS col1
----
31538

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + NULLIF ( - + 93, - 51 * - 70 + - ( - + NULLIF ( - 30, - COUNT ( 42 ) ) ) ) * + 75 + - + MIN ( ALL + 8 ) * SUM ( ALL + 58 ) * + ( - 83 ) + + COUNT ( * ) AS col1
----
31538

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + MIN( ALL + + 89 ) + - - 37
----
126

skipif mysql # not compatible
query I rowsort label-7667
SELECT + MIN ( ALL + + 89 ) + - - 37
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT + MIN( - + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-7668
SELECT + MIN ( - + 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7669
SELECT + 64 + + + COUNT( * ) + 18 * + COUNT( * ) * + 64 * - COUNT( * ) * CAST( NULL AS SIGNED ) + - 48 + + COUNT( * ) AS col2, 24 DIV COUNT( * )
----
NULL
24

skipif mysql # not compatible
query II rowsort label-7669
SELECT + 64 + + + COUNT ( * ) + 18 * + COUNT ( * ) * + 64 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 48 + + COUNT ( * ) AS col2, 24 / COUNT ( * )
----
NULL
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7670
SELECT + 81 DIV - 68
----
-1

skipif mysql # not compatible
query I rowsort label-7670
SELECT + 81 / - 68
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7671
SELECT ALL + 6, - COUNT( * ) AS col2
----
6
-1

skipif mysql # not compatible
query II rowsort label-7671
SELECT ALL + 6, - COUNT ( * ) AS col2
----
6
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + CASE - - 76 WHEN - SUM( + 67 ) THEN - 84 + 5 END * + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT + CASE - - 76 WHEN - SUM ( + 67 ) THEN - 84 + 5 END * + 4 AS col2
----
NULL

query II rowsort
SELECT 87 col0, + 79
----
87
79

query I rowsort
SELECT ALL 33 * 3 col0
----
99

query I rowsort
SELECT + 39 * + 72 * - 38
----
-106704

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT DISTINCT 45 * + MIN( ALL 67 )
----
3015

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT 45 * + MIN ( ALL 67 )
----
3015

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT - COUNT( 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7677
SELECT - COUNT ( 90 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT + 60 + + ( + + NULLIF ( 20, COUNT( * ) ) ) + 14 + + 80 * - SUM( DISTINCT + 8 ) AS col0, + 29 * - 31
----
-546
-899

skipif mysql # not compatible
query II rowsort label-7678
SELECT + 60 + + ( + + NULLIF ( 20, COUNT ( * ) ) ) + 14 + + 80 * - SUM ( DISTINCT + 8 ) AS col0, + 29 * - 31
----
-546
-899

query II rowsort
SELECT 5 AS col0, + ( - 4 ) AS col2
----
5
-4

query I rowsort
SELECT - 43 + + 88 * + 34
----
2949

query I rowsort
SELECT DISTINCT + 82 + + + 96 col0
----
178

query II rowsort
SELECT - + 11 AS col1, ( - 48 ) AS col0
----
-11
-48

query II rowsort
SELECT - 74 AS col2, - 9 AS col0
----
-74
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7684
SELECT DISTINCT 75 + + 26 AS col2, COUNT( * )
----
101
1

skipif mysql # not compatible
query II rowsort label-7684
SELECT DISTINCT 75 + + 26 AS col2, COUNT ( * )
----
101
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT - - COUNT( ALL 57 ) + - 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7685
SELECT - - COUNT ( ALL 57 ) + - 2 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT + - ( - 84 ) * + COUNT( * ) + - - NULLIF ( 16, - + CASE - ( + NULLIF ( - 63, ( 61 ) * 56 - - 15 ) ) WHEN + 61 THEN NULL WHEN + 10 THEN NULL ELSE NULLIF ( + 4, + + 73 ) END ) - - ( - MIN( 55 ) ) * + + 26 + 92 AS col2
----
-1238

skipif mysql # not compatible
query I rowsort label-7686
SELECT + - ( - 84 ) * + COUNT ( * ) + - - NULLIF ( 16, - + CASE - ( + NULLIF ( - 63, ( 61 ) * 56 - - 15 ) ) WHEN + 61 THEN NULL WHEN + 10 THEN NULL ELSE NULLIF ( + 4, + + 73 ) END ) - - ( - MIN ( 55 ) ) * + + 26 + 92 AS col2
----
-1238

onlyif mysql # aggregate syntax: 
query II rowsort label-7687
SELECT - - ( 16 ) AS col2, + COUNT( * ) * - 84 AS col0
----
16
-84

skipif mysql # not compatible
query II rowsort label-7687
SELECT - - ( 16 ) AS col2, + COUNT ( * ) * - 84 AS col0
----
16
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT ALL COALESCE ( - - ( 4 ), - COUNT( * ) * + + COALESCE ( - + 32, - - 51 * + 95 - 83, - - 96 * - 65 ) ) * ( + 59 ) AS col0
----
236

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL COALESCE ( - - ( 4 ), - COUNT ( * ) * + + COALESCE ( - + 32, - - 51 * + 95 - 83, - - 96 * - 65 ) ) * ( + 59 ) AS col0
----
236

query II rowsort
SELECT DISTINCT + + 38 AS col2, + 46 AS col2
----
38
46

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT ALL + 17 DIV 59 + - 59 - 17
----
-76

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + 17 / 59 + - 59 - 17
----
-76

query I rowsort
SELECT ( 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7692
SELECT DISTINCT + COUNT( ALL + 47 ), - 29 AS col1
----
1
-29

skipif mysql # not compatible
query II rowsort label-7692
SELECT DISTINCT + COUNT ( ALL + 47 ), - 29 AS col1
----
1
-29

query I rowsort
SELECT DISTINCT + 81 col1
----
81

query I rowsort
SELECT 42 * 76 - 7 * + + 88 - - COALESCE ( 35, 73 + + 2 * ( - + ( - + 18 ) ), 94 ) * - + 29 + + 1
----
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + SUM( DISTINCT 88 )
----
88

skipif mysql # not compatible
query I rowsort label-7695
SELECT + SUM ( DISTINCT 88 )
----
88

query I rowsort
SELECT ALL + ( + 98 ) AS col0
----
98

query I rowsort
SELECT - 76 - ( 5 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT NULLIF ( - + 39, - ( + 74 ) * 88 - + + COUNT( * ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7698
SELECT NULLIF ( - + 39, - ( + 74 ) * 88 - + + COUNT ( * ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT CASE + ( 71 ) WHEN 69 * 23 THEN 60 * - ( 85 ) WHEN - 2 + SUM( ALL 22 ) THEN NULL ELSE + + 41 + COUNT( * ) END
----
42

skipif mysql # not compatible
query I rowsort label-7699
SELECT CASE + ( 71 ) WHEN 69 * 23 THEN 60 * - ( 85 ) WHEN - 2 + SUM ( ALL 22 ) THEN NULL ELSE + + 41 + COUNT ( * ) END
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7700
SELECT - 69 DIV SUM( 9 ) * 59 col1
----
-413

skipif mysql # not compatible
query I rowsort label-7700
SELECT - 69 / SUM ( 9 ) * 59 col1
----
-413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT + SUM( ALL CAST( NULL AS SIGNED ) ) * 15 * + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT + SUM ( ALL CAST ( NULL AS INTEGER ) ) * 15 * + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT - COUNT( * ) * - 75 * - 29 AS col2
----
-2175

skipif mysql # not compatible
query I rowsort label-7702
SELECT - COUNT ( * ) * - 75 * - 29 AS col2
----
-2175

query I rowsort
SELECT NULLIF ( 25, 31 ) AS col0
----
25

query I rowsort
SELECT ALL - 80 * + - 26
----
2080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7706
SELECT MIN( DISTINCT + 47 ) AS col0, - 51 - - ( - + 78 ) AS col0
----
47
-129

skipif mysql # not compatible
query II rowsort label-7706
SELECT MIN ( DISTINCT + 47 ) AS col0, - 51 - - ( - + 78 ) AS col0
----
47
-129

query I rowsort
SELECT ALL 16 * - 11 * + 56 + + ( 4 ) + + + 77 + 67 * - ( - 64 )
----
-5487

query I rowsort
SELECT - 49 + - - 56 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT + - 16 + - - ( + COUNT( * ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7709
SELECT + - 16 + - - ( + COUNT ( * ) ) AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7710
SELECT DISTINCT 3 * + + 2 - + 42 + + + 50 * 53 * + + COUNT( ALL 42 ) + 69 * - 65 + - COUNT( * ) * 94 + - 25 AS col1, 13 DIV - COUNT( * ) AS col0
----
-1990
-13

skipif mysql # not compatible
query II rowsort label-7710
SELECT DISTINCT 3 * + + 2 - + 42 + + + 50 * 53 * + + COUNT ( ALL 42 ) + 69 * - 65 + - COUNT ( * ) * 94 + - 25 AS col1, 13 / - COUNT ( * ) AS col0
----
-1990
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT + + 42 + - + 9 + 4 * + 36 * + 45 * + + COUNT( * ) * - - ( - 90 )
----
-583167

skipif mysql # not compatible
query I rowsort label-7711
SELECT + + 42 + - + 9 + 4 * + 36 * + 45 * + + COUNT ( * ) * - - ( - 90 )
----
-583167

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT - NULLIF ( COUNT( * ), 86 * 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-7712
SELECT - NULLIF ( COUNT ( * ), 86 * 25 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7713
SELECT + MIN( 91 ) * + 95 + + CAST( NULL AS SIGNED ) * - 62 + + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT + MIN ( 91 ) * + 95 + + CAST ( NULL AS INTEGER ) * - 62 + + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT - COUNT( * ) + 46 + + - 88 * + 11 AS col0
----
-923

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT - COUNT ( * ) + 46 + + - 88 * + 11 AS col0
----
-923

query I rowsort
SELECT + - 23 + - + 14 - - 32 + + + 44 * - + 11
----
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT - COUNT( + - 54 ) - + 56
----
-57

skipif mysql # not compatible
query I rowsort label-7716
SELECT - COUNT ( + - 54 ) - + 56
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT 41 * - 85 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7717
SELECT 41 * - 85 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 34 - + 64 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT MAX( ALL - + 98 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7719
SELECT MAX ( ALL - + 98 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT DISTINCT MAX( ALL + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT MAX ( ALL + 30 ) AS col1
----
30

query II rowsort
SELECT 47 * + ( - + 27 ) + 95 col1, 49 + - 25 AS col1
----
-1174
24

query I rowsort
SELECT 68 - - + 17 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL - COALESCE ( + - COUNT( * ), + - 55 + - - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL - COALESCE ( + - COUNT ( * ), + - 55 + - - COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT MAX( - + 8 ) + - - 84 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7724
SELECT MAX ( - + 8 ) + - - 84 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL + 84 + + COALESCE ( - 82, - 91, - 1, 35 ) * - - 67 + - 31 + + CAST( NULL AS SIGNED ) * + MAX( ALL - 35 ) / 54 + NULLIF ( 12, - + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL + 84 + + COALESCE ( - 82, - 91, - 1, 35 ) * - - 67 + - 31 + + CAST ( NULL AS INTEGER ) * + MAX ( ALL - 35 ) / 54 + NULLIF ( 12, - + 23 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT DISTINCT - COALESCE ( - + NULLIF ( 25, - CAST( NULL AS SIGNED ) + + ( + + 94 ) ), + 81 + + COUNT( * ) + - 32 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - COALESCE ( - + NULLIF ( 25, - CAST ( NULL AS INTEGER ) + + ( + + 94 ) ), + 81 + + COUNT ( * ) + - 32 ) AS col0
----
25

query II rowsort
SELECT 93, - 47 AS col1
----
93
-47

query III rowsort
SELECT ALL + 21 + 94 + - 31, + 22 AS col0, - 65 col1
----
84
22
-65

query I rowsort
SELECT 67 * + - 18
----
-1206

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT 36 AS col1, COUNT( * ) * - MIN( + 92 ) + 64 + ( 90 ) AS col2
----
36
62

skipif mysql # not compatible
query II rowsort label-7730
SELECT 36 AS col1, COUNT ( * ) * - MIN ( + 92 ) + 64 + ( 90 ) AS col2
----
36
62

query I rowsort
SELECT + 17 + - 3 + + 76 AS col1
----
90

query I rowsort
SELECT ALL + - 22 + - + 99 + 41 + + 57
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7733
SELECT CAST( + ( + COUNT( * ) ) AS SIGNED ) * + + 69 * - COUNT( * ) + 15 AS col2, COUNT( * )
----
-54
1

skipif mysql # not compatible
query II rowsort label-7733
SELECT CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * + + 69 * - COUNT ( * ) + 15 AS col2, COUNT ( * )
----
-54
1

query I rowsort
SELECT ALL - 32 + 81
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7735
SELECT 87 DIV + - 26
----
-3

skipif mysql # not compatible
query I rowsort label-7735
SELECT 87 / + - 26
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7736
SELECT DISTINCT - MIN( + 25 ) * + + CAST( 71 AS SIGNED )
----
-1775

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT - MIN ( + 25 ) * + + CAST ( 71 AS INTEGER )
----
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + MAX( - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-7737
SELECT + MAX ( - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT SUM( ALL + ( + + 64 ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7738
SELECT SUM ( ALL + ( + + 64 ) ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT + CASE - 11 WHEN + 68 + - CAST( NULL AS SIGNED ) THEN NULL WHEN + 42 * + - 72 - + COUNT( * ) + 51 + + 6 - - - 57 + - 15 THEN + 70 END + + SUM( ALL + + 10 ) + 81 - + 91 / 8 * 95 * + 18 * + 24 * - - COUNT( * ) * + 37 + ( - 34 ) * + COALESCE ( - 89, 43 * + - COUNT( * ) + + 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT + CASE - 11 WHEN + 68 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 42 * + - 72 - + COUNT ( * ) + 51 + + 6 - - - 57 + - 15 THEN + 70 END + + SUM ( ALL + + 10 ) + 81 - + 91 / 8 * 95 * + 18 * + 24 * - - COUNT ( * ) * + 37 + ( - 34 ) * + COALESCE ( - 89, 43 * + - COUNT ( * ) + + 31 )
----
NULL

query I rowsort
SELECT 95 - + - 42
----
137

query II rowsort
SELECT DISTINCT 15, + 27 AS col2
----
15
27

query I rowsort
SELECT + 42 + + - 41
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7743
SELECT ALL 66 AS col0, 54 * 75 + + - CAST( NULL AS DECIMAL ) + 80 AS col0
----
66
NULL

skipif mysql # not compatible
query II rowsort label-7743
SELECT ALL 66 AS col0, 54 * 75 + + - CAST ( NULL AS REAL ) + 80 AS col0
----
66
NULL

query I rowsort
SELECT 35 * - 53
----
-1855

query I rowsort
SELECT 66 + 85 AS col2
----
151

query I rowsort
SELECT ALL 24 * 20
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT COALESCE ( - - CASE + 96 WHEN - 37 THEN NULL ELSE - + CASE + 64 WHEN - - COUNT( * ) * - COUNT( * ) + 93 THEN NULL WHEN 10 + 37 + + 91 - - - COALESCE ( + 51, - + 88 ) * + 72 * - 85 + + 0 THEN - COUNT( 10 ) END END, - - 49 * - ( - 96 ) + - 71 + - + 47 ) * + 15 AS col1
----
68790

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT COALESCE ( - - CASE + 96 WHEN - 37 THEN NULL ELSE - + CASE + 64 WHEN - - COUNT ( * ) * - COUNT ( * ) + 93 THEN NULL WHEN 10 + 37 + + 91 - - - COALESCE ( + 51, - + 88 ) * + 72 * - 85 + + 0 THEN - COUNT ( 10 ) END END, - - 49 * - ( - 96 ) + - 71 + - + 47 ) * + 15 AS col1
----
68790

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT 26 * - + COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-7748
SELECT 26 * - + COUNT ( * ) AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT + ( 5 ) / + ( + - CAST( NULL AS SIGNED ) ) * 39 / + AVG ( ALL + + 83 ) + 10 - - 72 + + 5 * 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT + ( 5 ) / + ( + - CAST ( NULL AS INTEGER ) ) * 39 / + AVG ( ALL + + 83 ) + 10 - - 72 + + 5 * 4 AS col1
----
NULL

query I rowsort
SELECT ALL 88 * - 72
----
-6336

onlyif mysql # aggregate syntax: 
query II rowsort label-7751
SELECT 77 + - 76 AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7751
SELECT 77 + - 76 AS col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT MAX( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-7752
SELECT MAX ( 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT MAX( ALL 74 )
----
74

skipif mysql # not compatible
query I rowsort label-7753
SELECT MAX ( ALL 74 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7754
SELECT ALL 17 + + 23 + - COUNT( * ) * + - 23 DIV - 36
----
40

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL 17 + + 23 + - COUNT ( * ) * + - 23 / - 36
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7755
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) col1, - COUNT( * ) DIV + 61 - + 74 AS col2
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-7755
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) col1, - COUNT ( * ) / + 61 - + 74 AS col2
----
NULL
-74

query I rowsort
SELECT DISTINCT 22 + + 33
----
55

query I rowsort
SELECT ALL 81 + 8 AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7758
SELECT COALESCE ( + 16, CAST( + 72 AS SIGNED ) ) DIV 68 - 90 - + 37 AS col1, 65 AS col2
----
-127
65

skipif mysql # not compatible
query II rowsort label-7758
SELECT COALESCE ( + 16, CAST ( + 72 AS INTEGER ) ) / 68 - 90 - + 37 AS col1, 65 AS col2
----
-127
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL 74 * + - MAX( - - 3 ) * - 54 * + 48
----
575424

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL 74 * + - MAX ( - - 3 ) * - 54 * + 48
----
575424

onlyif mysql # aggregate syntax: 
query II rowsort label-7760
SELECT 12 * 6 AS col2, + ( - COUNT( * ) ) + + 4 * + 7 * + 93 AS col1
----
72
2603

skipif mysql # not compatible
query II rowsort label-7760
SELECT 12 * 6 AS col2, + ( - COUNT ( * ) ) + + 4 * + 7 * + 93 AS col1
----
72
2603

query I rowsort
SELECT DISTINCT + 94 * - 36
----
-3384

query I rowsort
SELECT DISTINCT - 83 + + + 79
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL + + ( + - ( 77 ) ) - + COUNT( * ) * - - 48
----
-125

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL + + ( + - ( 77 ) ) - + COUNT ( * ) * - - 48
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7764
SELECT ALL 37 * + + ( - + SUM( DISTINCT - + 91 ) ) DIV - COUNT( * ) AS col2
----
-3367

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL 37 * + + ( - + SUM ( DISTINCT - + 91 ) ) / - COUNT ( * ) AS col2
----
-3367

query I rowsort
SELECT DISTINCT - - 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT - MIN( + 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT - MIN ( + 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL MAX( DISTINCT + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL MAX ( DISTINCT + 88 )
----
88

query I rowsort
SELECT + 34 * + 76 AS col0
----
2584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7769
SELECT - - 90 * + - CAST( NULL AS SIGNED ) AS col0, + NULLIF ( + 59, 29 ) DIV - 65 - + 7 + MIN( - 33 )
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-7769
SELECT - - 90 * + - CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( + 59, 29 ) / - 65 - + 7 + MIN ( - 33 )
----
NULL
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + + 20 + + + 4 + + 14 + + COUNT( * ) + + 81 + + 85 * - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7770
SELECT + + 20 + + + 4 + + 14 + + COUNT ( * ) + + 81 + + 85 * - COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7771
SELECT COALESCE ( + 19, + 87 - NULLIF ( - + COUNT( * ), - 43 ) * + - COUNT( * ), 51 DIV - 64 + + 46 + + 27 + + 53 * - 60 * - 34 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7771
SELECT COALESCE ( + 19, + 87 - NULLIF ( - + COUNT ( * ), - 43 ) * + - COUNT ( * ), 51 / - 64 + + 46 + + 27 + + 53 * - 60 * - 34 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT - 26 + MAX( 28 ) * ( - 37 ) * + + 38 * + 20 + + COUNT( * ) AS col2
----
-787385

skipif mysql # not compatible
query I rowsort label-7772
SELECT - 26 + MAX ( 28 ) * ( - 37 ) * + + 38 * + 20 + + COUNT ( * ) AS col2
----
-787385

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7773
SELECT ALL + + 69 * 39 - - - 88 + ( + 55 ) + + + ( + 45 ) DIV + COUNT( * ) AS col0
----
2703

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL + + 69 * 39 - - - 88 + ( + 55 ) + + + ( + 45 ) / + COUNT ( * ) AS col0
----
2703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7774
SELECT DISTINCT + COUNT( * ) DIV - + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT + COUNT ( * ) / - + 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT DISTINCT + 85 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT + 85 * COUNT ( * )
----
85

query I rowsort
SELECT - 97 + + 83 - + 71 + - 33 - - 10 * - 61 * - - 3
----
-1948

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT ALL - + CASE - MIN( + 5 ) WHEN 51 THEN 33 END * + + 4 / + 34, 1 * 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL - + CASE - MIN ( + 5 ) WHEN 51 THEN 33 END * + + 4 / + 34, 1 * 65 AS col1
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - + COUNT( ALL 31 ) - - + 43
----
42

skipif mysql # not compatible
query I rowsort label-7778
SELECT - + COUNT ( ALL 31 ) - - + 43
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7779
SELECT - 65 DIV + COUNT( 54 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-7779
SELECT - 65 / + COUNT ( 54 ) AS col2
----
-65

query I rowsort
SELECT - 77 + 52
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT - SUM( DISTINCT + - 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-7781
SELECT - SUM ( DISTINCT + - 81 ) col0
----
81

query I rowsort
SELECT ALL 41 + + 21 * + 97 + - ( + - 12 ) AS col2
----
2090

query I rowsort
SELECT - 47 - - 29 AS col0
----
-18

query I rowsort
SELECT DISTINCT COALESCE ( - 70, - + 65, + - 98 ) AS col1
----
-70

query I rowsort
SELECT ALL + 57 + + - 56 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT COUNT( * ) * ( + COUNT( * ) ) * + + 96
----
96

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT COUNT ( * ) * ( + COUNT ( * ) ) * + + 96
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7787
SELECT DISTINCT 9 * CAST( NULL AS SIGNED ) + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT 9 * CAST ( NULL AS INTEGER ) + 55
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7788
SELECT ALL 77 * + 35 + + - COUNT( * ) DIV - - CASE - 39 WHEN 57 THEN - - 54 WHEN - - 55 DIV + 42 * - COUNT( * ) THEN + 37 WHEN CASE + NULLIF ( + 66, 62 + + 88 ) WHEN - - 94 THEN 76 WHEN - + 9 THEN NULL END THEN 33 ELSE - COUNT( * ) * 11 * - ( - 30 ) END + + ( + - 14 ) AS col2, 38 AS col0
----
2681
38

skipif mysql # not compatible
query II rowsort label-7788
SELECT ALL 77 * + 35 + + - COUNT ( * ) / - - CASE - 39 WHEN 57 THEN - - 54 WHEN - - 55 / + 42 * - COUNT ( * ) THEN + 37 WHEN CASE + NULLIF ( + 66, 62 + + 88 ) WHEN - - 94 THEN 76 WHEN - + 9 THEN NULL END THEN 33 ELSE - COUNT ( * ) * 11 * - ( - 30 ) END + + ( + - 14 ) AS col2, 38 AS col0
----
2681
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ( ( - MIN( - + 2 ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-7789
SELECT ( ( - MIN ( - + 2 ) ) )
----
2

query I rowsort
SELECT + COALESCE ( - - ( - + 79 ), - 38 ) AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7791
SELECT COUNT( * ) DIV 75 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7791
SELECT COUNT ( * ) / 75 + + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT ALL COUNT( * ) * + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL COUNT ( * ) * + 11 AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT - CAST( NULL AS SIGNED ) + + CAST( 74 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( 74 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7794
SELECT - 20 * + 93 - 4 AS col1, + 60 DIV COUNT( * ) + - 8 col2
----
-1864
52

skipif mysql # not compatible
query II rowsort label-7794
SELECT - 20 * + 93 - 4 AS col1, + 60 / COUNT ( * ) + - 8 col2
----
-1864
52

query I rowsort
SELECT + 57 * 65 col1
----
3705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT CASE + 53 WHEN + 12 * + CAST( - + 91 AS SIGNED ) THEN 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT CASE + 53 WHEN + 12 * + CAST ( - + 91 AS INTEGER ) THEN 23 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - COALESCE ( - 89, 4, 7 ), + 18 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT 22 * - MAX( - 49 ) + - 58 AS col1
----
1020

skipif mysql # not compatible
query I rowsort label-7798
SELECT 22 * - MAX ( - 49 ) + - 58 AS col1
----
1020

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT ALL 21 DIV ( 1 )
----
21

skipif mysql # not compatible
query I rowsort label-7799
SELECT ALL 21 / ( 1 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT CASE + 35 WHEN + 96 + - 90 THEN NULL WHEN + COUNT( DISTINCT + 53 ) THEN + 57 - 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT CASE + 35 WHEN + 96 + - 90 THEN NULL WHEN + COUNT ( DISTINCT + 53 ) THEN + 57 - 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL 76 * 5 - + COUNT( * ) AS col0
----
379

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL 76 * 5 - + COUNT ( * ) AS col0
----
379

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT + 61 + - 70 DIV - 6 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7802
SELECT + 61 + - 70 / - 6 AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT ALL 67 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL 67 / + 48
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7804
SELECT + 73 DIV ( - NULLIF ( 2, 75 ) * 95 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7804
SELECT + 73 / ( - NULLIF ( 2, 75 ) * 95 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT + 79 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-7805
SELECT + 79 / - 88
----
0

query I rowsort
SELECT + 91 + 8
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7807
SELECT + CASE NULLIF ( COALESCE ( - 75, 76 ), - SUM( + CAST( + ( - 31 ) AS SIGNED ) ) * 43 ) WHEN 50 + + 57 THEN NULL WHEN + 8 * + ( + 50 ) + 43 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT + CASE NULLIF ( COALESCE ( - 75, 76 ), - SUM ( + CAST ( + ( - 31 ) AS INTEGER ) ) * 43 ) WHEN 50 + + 57 THEN NULL WHEN + 8 * + ( + 50 ) + 43 THEN - COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 55 * 47
----
2585

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT - COUNT( * ) * - 34 + COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7809
SELECT - COUNT ( * ) * - 34 + COUNT ( * ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT 59 * CAST( NULL AS SIGNED ) + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT 59 * CAST ( NULL AS INTEGER ) + 89 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT + 43 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7811
SELECT + 43 / - 54 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL COUNT( + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL COUNT ( + 77 )
----
1

query I rowsort
SELECT + 19 * 27 AS col0
----
513

query I rowsort
SELECT ALL COALESCE ( - 66, 4 ) * 51
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + COUNT( * ) + + NULLIF ( + 37, 56 + 57 )
----
38

skipif mysql # not compatible
query I rowsort label-7815
SELECT + COUNT ( * ) + + NULLIF ( + 37, 56 + 57 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7816
SELECT DISTINCT CASE - 82 WHEN + COUNT( * ) THEN NULL WHEN - 86 + - 51 THEN - COUNT( * ) WHEN CAST( + 20 AS SIGNED ) THEN 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT CASE - 82 WHEN + COUNT ( * ) THEN NULL WHEN - 86 + - 51 THEN - COUNT ( * ) WHEN CAST ( + 20 AS INTEGER ) THEN 49 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7817
SELECT ALL NULLIF ( CASE WHEN NOT ( NULL ) NOT IN ( 40 ) THEN - 4 - + 99 * - COUNT( * ) ELSE NULL END, 86 * - CAST( MAX( ALL - 60 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL NULLIF ( CASE WHEN NOT ( NULL ) NOT IN ( 40 ) THEN - 4 - + 99 * - COUNT ( * ) ELSE NULL END, 86 * - CAST ( MAX ( ALL - 60 ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 13 + + 87 * - 41
----
-3554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT ALL COUNT( * ) + - COALESCE ( + CAST( NULL AS SIGNED ), + 19 + - 55 * + COUNT( DISTINCT 73 ), - 56 * 45 + 94 )
----
37

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL COUNT ( * ) + - COALESCE ( + CAST ( NULL AS INTEGER ), + 19 + - 55 * + COUNT ( DISTINCT 73 ), - 56 * 45 + 94 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL COUNT( DISTINCT - 36 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL COUNT ( DISTINCT - 36 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT COUNT( 71 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7821
SELECT COUNT ( 71 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT - CASE CASE ( + MIN( 33 ) ) WHEN 34 THEN - 63 ELSE ( 90 ) END WHEN + 24 + 97 THEN + 23 * 6 END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT - CASE CASE ( + MIN ( 33 ) ) WHEN 34 THEN - 63 ELSE ( 90 ) END WHEN + 24 + 97 THEN + 23 * 6 END * 82
----
NULL

query I rowsort
SELECT + 1 + 6
----
7

query I rowsort
SELECT + 77 + + 54 col1
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT ALL NULLIF ( COALESCE ( 19, - 79 DIV 18 + 33, + 59 ), - 72 * 76 )
----
19

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL NULLIF ( COALESCE ( 19, - 79 / 18 + 33, + 59 ), - 72 * 76 )
----
19

query I rowsort
SELECT + 53 * - 70 col2
----
-3710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7827
SELECT ALL + 52 + + COUNT( * ) * - ( NULLIF ( COUNT( * ), + 55 ) * + 17 - - CAST( - 22 AS SIGNED ) * ( - 13 ) )
----
-251

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL + 52 + + COUNT ( * ) * - ( NULLIF ( COUNT ( * ), + 55 ) * + 17 - - CAST ( - 22 AS INTEGER ) * ( - 13 ) )
----
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT - COUNT( * ) + - ( 68 )
----
-69

skipif mysql # not compatible
query I rowsort label-7828
SELECT - COUNT ( * ) + - ( 68 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT DISTINCT COUNT( DISTINCT 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT COUNT ( DISTINCT 71 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7830
SELECT ALL 11 DIV 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL 11 / 65 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT 70 + ( COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT 70 + ( COUNT ( * ) )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7832
SELECT ALL CAST( + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL CAST ( + 49 AS INTEGER )
----
49

query I rowsort
SELECT - ( 91 ) + - 33 AS col2
----
-124

query I rowsort
SELECT ALL + 52 + 70
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-7835
SELECT - 87 DIV - 73
----
1

skipif mysql # not compatible
query I rowsort label-7835
SELECT - 87 / - 73
----
1

query I rowsort
SELECT DISTINCT ( - 57 ) col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT - ( + COALESCE ( + CAST( 19 AS SIGNED ), - 14 ) ) * 13
----
-247

skipif mysql # not compatible
query I rowsort label-7837
SELECT - ( + COALESCE ( + CAST ( 19 AS INTEGER ), - 14 ) ) * 13
----
-247

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7838
SELECT - COUNT( * ) DIV 49 + 44
----
44

skipif mysql # not compatible
query I rowsort label-7838
SELECT - COUNT ( * ) / 49 + 44
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT DISTINCT + NULLIF ( 43, + 33 * CAST( NULL AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT + NULLIF ( 43, + 33 * CAST ( NULL AS INTEGER ) )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL + ( CAST( - CASE + ( + ( 19 ) ) WHEN 77 THEN - 10 - 67 * + 65 END AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + ( CAST ( - CASE + ( + ( 19 ) ) WHEN 77 THEN - 10 - 67 * + 65 END AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 80 * + 80
----
6400

query I rowsort
SELECT - ( CASE 62 WHEN + 70 + - 82 / 3 THEN NULL WHEN + 31 + 97 * 51 THEN NULL WHEN + 75 THEN 9 * 46 END ) * 35 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7843
SELECT + 58 * CAST( + 84 AS SIGNED )
----
4872

skipif mysql # not compatible
query I rowsort label-7843
SELECT + 58 * CAST ( + 84 AS INTEGER )
----
4872

query I rowsort
SELECT - 2 - 80
----
-82

query I rowsort
SELECT 72 - 13 AS col2
----
59

query I rowsort
SELECT - 31 * 51 + 72
----
-1509

query I rowsort
SELECT ALL - 7 * 91 AS col2
----
-637

query I rowsort
SELECT DISTINCT + 49 + + 2 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT COALESCE ( 26, - 96 * + 21, - 45 + + 37 * COUNT( * ) ) - - 39 * - CASE 20 * 40 WHEN + 30 / 61 THEN NULL WHEN 80 - + COUNT( DISTINCT + 23 ) * SUM( 46 - + 37 ) THEN 1 - 1 WHEN - 93 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7849
SELECT COALESCE ( 26, - 96 * + 21, - 45 + + 37 * COUNT ( * ) ) - - 39 * - CASE 20 * 40 WHEN + 30 / 61 THEN NULL WHEN 80 - + COUNT ( DISTINCT + 23 ) * SUM ( 46 - + 37 ) THEN 1 - 1 WHEN - 93 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7850
SELECT DISTINCT - 68 + + 87 * COALESCE ( - COUNT( * ) + 8 * + 67, + COUNT( * ) DIV 59, - 84, + 84 ) AS col2
----
46477

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT - 68 + + 87 * COALESCE ( - COUNT ( * ) + 8 * + 67, + COUNT ( * ) / 59, - 84, + 84 ) AS col2
----
46477

query I rowsort
SELECT + 79 - 97 col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT DISTINCT NULLIF ( 51, - COUNT( * ) ) col2
----
51

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT NULLIF ( 51, - COUNT ( * ) ) col2
----
51

query I rowsort
SELECT 21 + 70
----
91

query I rowsort
SELECT ALL 71 + - 27
----
44

query I rowsort
SELECT - 45 + 27 AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7856
SELECT DISTINCT CASE - 6 WHEN COALESCE ( ( 89 ), - 65 * 1 ) THEN CASE + 31 WHEN - 32 * 77 THEN NULL WHEN + CAST( 62 AS SIGNED ) * - 70 + 24 THEN + NULLIF ( 76, 45 ) END END * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT CASE - 6 WHEN COALESCE ( ( 89 ), - 65 * 1 ) THEN CASE + 31 WHEN - 32 * 77 THEN NULL WHEN + CAST ( 62 AS INTEGER ) * - 70 + 24 THEN + NULLIF ( 76, 45 ) END END * + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL 0 + NULLIF ( + 27, 54 + + COUNT( * ) ) * COALESCE ( 50, 58 )
----
1350

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL 0 + NULLIF ( + 27, 54 + + COUNT ( * ) ) * COALESCE ( 50, 58 )
----
1350

query I rowsort
SELECT DISTINCT 70 + - 58 + 52
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL 29 + - COUNT( * ) + + 49
----
77

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL 29 + - COUNT ( * ) + + 49
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT DISTINCT + 39 + + + COUNT( * ) * ( CAST( NULL AS SIGNED ) + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT + 39 + + + COUNT ( * ) * ( CAST ( NULL AS INTEGER ) + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT 48 - 41 + 15
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT CASE + CAST( NULL AS SIGNED ) WHEN 71 THEN - MAX( + 3 ) ELSE NULL END + + NULLIF ( 6, + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN 71 THEN - MAX ( + 3 ) ELSE NULL END + + NULLIF ( 6, + 84 )
----
NULL

query I rowsort
SELECT 67 + - 65 + 31 * 85
----
2637

query I rowsort
SELECT 2 * - - 46 * + 89 AS col1
----
8188

query I rowsort
SELECT ALL + 21 - - 84 * 17 AS col0
----
1449

query I rowsort
SELECT 92 - 42 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT DISTINCT - COUNT( * ) * 77
----
-77

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT - COUNT ( * ) * 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL COUNT( * ) - + - 86 + + 66 * - 1
----
21

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL COUNT ( * ) - + - 86 + + 66 * - 1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL - COUNT( + 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - COUNT ( + 64 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT - CAST( NULL AS SIGNED ) / 10 + + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT - CAST ( NULL AS INTEGER ) / 10 + + 53 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT ALL + CASE + 81 WHEN - 82 THEN NULL ELSE 6 DIV + 73 END * NULLIF ( + 36, 70 )
----
0

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL + CASE + 81 WHEN - 82 THEN NULL ELSE 6 / + 73 END * NULLIF ( + 36, 70 )
----
0

query I rowsort
SELECT DISTINCT + 49 * + + 60 AS col0
----
2940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT + CAST( 76 AS SIGNED ) * 33 + 95 * 44
----
6688

skipif mysql # not compatible
query I rowsort label-7873
SELECT + CAST ( 76 AS INTEGER ) * 33 + 95 * 44
----
6688

query I rowsort
SELECT ( + + 98 ) * + 72
----
7056

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7875
SELECT - 61 * COUNT( * ) * + 71 - NULLIF ( - CAST( NULL AS DECIMAL ), 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT - 61 * COUNT ( * ) * + 71 - NULLIF ( - CAST ( NULL AS REAL ), 26 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7876
SELECT - 79 DIV + 77 + 23 + 8 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7876
SELECT - 79 / + 77 + 23 + 8 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7877
SELECT - + 21 * + 56 + 98 * - 89 - ( + 20 ) DIV ( COUNT( * ) ) AS col2
----
-9918

skipif mysql # not compatible
query I rowsort label-7877
SELECT - + 21 * + 56 + 98 * - 89 - ( + 20 ) / ( COUNT ( * ) ) AS col2
----
-9918

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT + COALESCE ( + 70, + 15 * COALESCE ( 26, AVG ( ALL + 36 ), - 65, 99 ) ) DIV + 23
----
3

skipif mysql # not compatible
query I rowsort label-7878
SELECT + COALESCE ( + 70, + 15 * COALESCE ( 26, AVG ( ALL + 36 ), - 65, 99 ) ) / + 23
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT CASE COUNT( * ) WHEN + ( 91 ) THEN NULL WHEN 70 THEN 7 * + 38 END + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT CASE COUNT ( * ) WHEN + ( 91 ) THEN NULL WHEN 70 THEN 7 * + 38 END + - 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT - 83 * - 72 + + ( 89 ) - + CAST( 17 AS SIGNED ) AS col1
----
6048

skipif mysql # not compatible
query I rowsort label-7880
SELECT - 83 * - 72 + + ( 89 ) - + CAST ( 17 AS INTEGER ) AS col1
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT - NULLIF ( - CASE 74 WHEN 94 + + 4 THEN 84 WHEN 88 * 12 THEN - 25 END, - ( MIN( ALL - 23 ) ) ) + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT - NULLIF ( - CASE 74 WHEN 94 + + 4 THEN 84 WHEN 88 * 12 THEN - 25 END, - ( MIN ( ALL - 23 ) ) ) + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT + 20 + SUM( 37 )
----
57

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + 20 + SUM ( 37 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT - 59 * + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-7883
SELECT - 59 * + COUNT ( * )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT - + 77 * - 95 - 17 * + CAST( NULL AS SIGNED ) + 99 * + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT - + 77 * - 95 - 17 * + CAST ( NULL AS INTEGER ) + 99 * + 11 col1
----
NULL

query I rowsort
SELECT COALESCE ( + ( - 53 ), 28 * 49, 35 )
----
-53

query I rowsort
SELECT + - 87 col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + MAX( ALL 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7887
SELECT + MAX ( ALL 34 ) AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT + 25 + - 77 DIV 80
----
25

skipif mysql # not compatible
query I rowsort label-7888
SELECT + 25 + - 77 / 80
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT + 99 + - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-7889
SELECT + 99 + - COUNT ( * )
----
98

query I rowsort
SELECT - - 77 * + 45 + COALESCE ( + 39, + 72 * 13 ) * 7
----
3738

query I rowsort
SELECT - ( - 84 ) AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT DISTINCT - 52 + + 30 * - COALESCE ( 56, 46 + 82 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT - 52 + + 30 * - COALESCE ( 56, 46 + 82 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7893
SELECT ALL - 34 - + CAST( NULLIF ( + 76, - COALESCE ( CASE 81 WHEN + 47 + - 89 THEN NULL WHEN 68 * + 46 THEN + 65 ELSE + 46 END, - 38 ) * COUNT( * ) ) AS SIGNED )
----
-110

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - 34 - + CAST ( NULLIF ( + 76, - COALESCE ( CASE 81 WHEN + 47 + - 89 THEN NULL WHEN 68 * + 46 THEN + 65 ELSE + 46 END, - 38 ) * COUNT ( * ) ) AS INTEGER )
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7894
SELECT 58 + - - 95 - + 28 DIV COUNT( * ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-7894
SELECT 58 + - - 95 - + 28 / COUNT ( * ) AS col1
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-7895
SELECT ALL 58 DIV + 43 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL 58 / + 43 AS col2
----
1

query I rowsort
SELECT ( - - 31 ) + 1 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7897
SELECT - 28 AS col2, - CASE 6 WHEN 66 THEN + CASE AVG ( ALL - 97 ) WHEN COUNT( * ) * 68 THEN 12 END ELSE NULL END AS col2
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-7897
SELECT - 28 AS col2, - CASE 6 WHEN 66 THEN + CASE AVG ( ALL - 97 ) WHEN COUNT ( * ) * 68 THEN 12 END ELSE NULL END AS col2
----
-28
NULL

query I rowsort
SELECT ALL 52 * - 49
----
-2548

query I rowsort
SELECT ( 56 ) + + 69
----
125

query I rowsort
SELECT 96 * - 40 * + 86
----
-330240

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT COUNT( * ) + 24
----
25

skipif mysql # not compatible
query I rowsort label-7901
SELECT COUNT ( * ) + 24
----
25

query II rowsort
SELECT DISTINCT 47 AS col0, 7 + + + 61 AS col0
----
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT + MAX( + 22 ) * - CASE 80 WHEN 54 THEN NULL ELSE 62 + - MIN( DISTINCT + CASE + 44 WHEN + 6 THEN + 36 ELSE - 60 END + - 88 ) END * 99 + ( - 48 ) AS col1
----
-457428

skipif mysql # not compatible
query I rowsort label-7903
SELECT + MAX ( + 22 ) * - CASE 80 WHEN 54 THEN NULL ELSE 62 + - MIN ( DISTINCT + CASE + 44 WHEN + 6 THEN + 36 ELSE - 60 END + - 88 ) END * 99 + ( - 48 ) AS col1
----
-457428

query I rowsort
SELECT + 62 * + 32
----
1984

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT - - COUNT( * ) + 45
----
46

skipif mysql # not compatible
query I rowsort label-7905
SELECT - - COUNT ( * ) + 45
----
46

query I rowsort
SELECT ALL + - 35 * 42
----
-1470

query II rowsort
SELECT + 73 AS col0, + 40
----
73
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7908
SELECT ALL - + COUNT( * ) * - 48 * + 15 * + 30 + COUNT( * ) + - 75 * CAST( 95 * ( + 90 ) AS SIGNED ) AS col0
----
-619649

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - + COUNT ( * ) * - 48 * + 15 * + 30 + COUNT ( * ) + - 75 * CAST ( 95 * ( + 90 ) AS INTEGER ) AS col0
----
-619649

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT + - 42 * + COUNT( * ) + + + 49
----
7

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT + - 42 * + COUNT ( * ) + + + 49
----
7

query I rowsort
SELECT ALL 60 * + 78 + - + 21 AS col2
----
4659

query I rowsort
SELECT ALL + + ( + 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL + 59 * + MIN( 77 ) * 51 + + 90 AS col1
----
231783

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL + 59 * + MIN ( 77 ) * 51 + + 90 AS col1
----
231783

query I rowsort
SELECT + + 35 - - + 79 col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT - - 30 * - ( - 21 ) + + COUNT( * ) * ( + COUNT( * ) * + 92 )
----
722

skipif mysql # not compatible
query I rowsort label-7914
SELECT - - 30 * - ( - 21 ) + + COUNT ( * ) * ( + COUNT ( * ) * + 92 )
----
722

onlyif mysql # DIV for integer division: 
query I rowsort label-7915
SELECT + - 60 + 20 - - 21 * 65 DIV - 71
----
-59

skipif mysql # not compatible
query I rowsort label-7915
SELECT + - 60 + 20 - - 21 * 65 / - 71
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT - ( + CASE + + NULLIF ( CASE COUNT( * ) WHEN + NULLIF ( - CAST( - COALESCE ( - 93, - CASE + 98 WHEN - COUNT( * ) / + 97 + - COUNT( * ) THEN NULL WHEN 25 THEN NULL ELSE + 18 END ) AS SIGNED ), - 20 * + 60 ) THEN 17 + + 10 END, - 34 ) WHEN + COUNT( * ) THEN NULL WHEN 72 * + 51 THEN - MIN( 68 ) + - 62 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT - ( + CASE + + NULLIF ( CASE COUNT ( * ) WHEN + NULLIF ( - CAST ( - COALESCE ( - 93, - CASE + 98 WHEN - COUNT ( * ) / + 97 + - COUNT ( * ) THEN NULL WHEN 25 THEN NULL ELSE + 18 END ) AS INTEGER ), - 20 * + 60 ) THEN 17 + + 10 END, - 34 ) WHEN + COUNT ( * ) THEN NULL WHEN 72 * + 51 THEN - MIN ( 68 ) + - 62 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT + COUNT( * ) * - 99 * - 42 * - 75 + - 40
----
-311890

skipif mysql # not compatible
query I rowsort label-7917
SELECT + COUNT ( * ) * - 99 * - 42 * - 75 + - 40
----
-311890

query I rowsort
SELECT - 36 * + 6
----
-216

query I rowsort
SELECT ALL + 22 * - - 48 + - + 93 AS col0
----
963

query I rowsort
SELECT DISTINCT + 87 * - - 10 - 78 + + 60 col2
----
852

query I rowsort
SELECT ALL + + 89 col0
----
89

query I rowsort
SELECT ALL - 25 * + - 14 * + 47 + - 17 AS col1
----
16433

query I rowsort
SELECT - 63 - 61 col0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL NULLIF ( + - 54, + COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL NULLIF ( + - 54, + COUNT ( * ) )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT - 47 + + CAST( 23 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7925
SELECT - 47 + + CAST ( 23 AS INTEGER ) AS col2
----
-24

query I rowsort
SELECT DISTINCT + 75 * + 40
----
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - NULLIF ( 54, - ( COUNT( * ) ) ) + - 83
----
-137

skipif mysql # not compatible
query I rowsort label-7927
SELECT - NULLIF ( 54, - ( COUNT ( * ) ) ) + - 83
----
-137

query I rowsort
SELECT + 29 * + 58
----
1682

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL + 66 * 4 * - 8 * NULLIF ( 54, - MIN( + 92 ) ) AS col2
----
-114048

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + 66 * 4 * - 8 * NULLIF ( 54, - MIN ( + 92 ) ) AS col2
----
-114048

query I rowsort
SELECT - NULLIF ( + 47, - 42 * - + 22 ) * + 59 AS col2
----
-2773

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7931
SELECT - CASE + COALESCE ( + + 79, - NULLIF ( + 77, ( ( - 34 ) ) ), 1 ) WHEN 96 / CAST( NULLIF ( 9, - CAST( 8 AS SIGNED ) ) * + 89 AS SIGNED ) + - 75 THEN NULL ELSE - 77 END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-7931
SELECT - CASE + COALESCE ( + + 79, - NULLIF ( + 77, ( ( - 34 ) ) ), 1 ) WHEN 96 / CAST ( NULLIF ( 9, - CAST ( 8 AS INTEGER ) ) * + 89 AS INTEGER ) + - 75 THEN NULL ELSE - 77 END AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT ALL NULLIF ( + COUNT( * ), + 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL NULLIF ( + COUNT ( * ), + 77 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 76 * 65 AS col2
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT DISTINCT NULLIF ( + SUM( + 48 ), - 84 * - CASE ( 53 ) WHEN - 1 THEN - 71 * - MIN( - 98 * 8 ) END )
----
48

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT NULLIF ( + SUM ( + 48 ), - 84 * - CASE ( 53 ) WHEN - 1 THEN - 71 * - MIN ( - 98 * 8 ) END )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL ( ( CASE + COUNT( * ) WHEN - 78 THEN 72 + ( - COUNT( * ) + 94 * 14 ) / 69 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL ( ( CASE + COUNT ( * ) WHEN - 78 THEN 72 + ( - COUNT ( * ) + 94 * 14 ) / 69 END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT - MIN( ALL 30 ) + 96 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7936
SELECT - MIN ( ALL 30 ) + 96 AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7937
SELECT - CAST( - 76 AS SIGNED ) DIV 65 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7937
SELECT - CAST ( - 76 AS INTEGER ) / 65 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT + 39 * - COALESCE ( MAX( ALL - 29 ), - ( - 24 ) + - 86 )
----
1131

skipif mysql # not compatible
query I rowsort label-7938
SELECT + 39 * - COALESCE ( MAX ( ALL - 29 ), - ( - 24 ) + - 86 )
----
1131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT - 51 + 9 + + - COALESCE ( 58, - ( CAST( NULL AS SIGNED ) ) )
----
-100

skipif mysql # not compatible
query I rowsort label-7939
SELECT - 51 + 9 + + - COALESCE ( 58, - ( CAST ( NULL AS INTEGER ) ) )
----
-100

query II rowsort
SELECT - ( - 70 ) AS col0, - 22
----
70
-22

query II rowsort
SELECT ALL 21 * - 85 AS col2, 46 * 13 * + 24 AS col2
----
-1785
14352

onlyif mysql # DIV for integer division: 
query I rowsort label-7942
SELECT - 27 + - 6 - 79 DIV ( 18 ) * + 74 AS col0
----
-329

skipif mysql # not compatible
query I rowsort label-7942
SELECT - 27 + - 6 - 79 / ( 18 ) * + 74 AS col0
----
-329

query I rowsort
SELECT ALL - 32 + + 44
----
12

query I rowsort
SELECT DISTINCT 26 * - 76 * + 45 AS col0
----
-88920

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL + - 16 + + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL + - 16 + + COUNT ( * ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT DISTINCT - - SUM( ALL + 8 ) + - - 90
----
98

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT - - SUM ( ALL + 8 ) + - - 90
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7947
SELECT ALL - 31 + - 11 + - - COUNT( * ) + - COUNT( * ) * + 99 DIV 25 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL - 31 + - 11 + - - COUNT ( * ) + - COUNT ( * ) * + 99 / 25 AS col1
----
-44

query I rowsort
SELECT DISTINCT 92 * - + 46
----
-4232

query I rowsort
SELECT - - ( + 51 ) + - - 15
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7950
SELECT ALL + 5 DIV 49 + + + COALESCE ( 57, 30, ( ( COUNT( 61 ) ) ) DIV NULLIF ( 53 * 83, 6 ) ) DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL + 5 / 49 + + + COALESCE ( 57, 30, ( ( COUNT ( 61 ) ) ) / NULLIF ( 53 * 83, 6 ) ) / - 40
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - NULLIF ( - COUNT( + CASE + 49 WHEN 18 THEN + NULLIF ( 70, 75 ) * 32 ELSE NULL END ), 50 + 87 * 61 ) * - 86 + + 98 * + 90
----
8820

skipif mysql # not compatible
query I rowsort label-7951
SELECT - NULLIF ( - COUNT ( + CASE + 49 WHEN 18 THEN + NULLIF ( 70, 75 ) * 32 ELSE NULL END ), 50 + 87 * 61 ) * - 86 + + 98 * + 90
----
8820

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT + ( - 18 ) * SUM( - + 94 ) * 61 - 62 AS col0
----
103150

skipif mysql # not compatible
query I rowsort label-7952
SELECT + ( - 18 ) * SUM ( - + 94 ) * 61 - 62 AS col0
----
103150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT + 12 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT + 12 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7954
SELECT DISTINCT + + COUNT( * ) DIV + COALESCE ( + 14, - NULLIF ( + ( - 53 ), 22 * AVG ( DISTINCT 65 ) - 14 * + 13 ) + 76 ) - 48 DIV 25 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT + + COUNT ( * ) / + COALESCE ( + 14, - NULLIF ( + ( - 53 ), 22 * AVG ( DISTINCT 65 ) - 14 * + 13 ) + 76 ) - 48 / 25 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT ALL + SUM( DISTINCT + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL + SUM ( DISTINCT + 49 )
----
49

query I rowsort
SELECT - 45 * + 19 + 64 AS col2
----
-791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + + 63 * - ( - 39 ) * - COUNT( * ) + 8 AS col2
----
-2449

skipif mysql # not compatible
query I rowsort label-7958
SELECT + + 63 * - ( - 39 ) * - COUNT ( * ) + 8 AS col2
----
-2449

query I rowsort
SELECT - 70 * - 39
----
2730

query I rowsort
SELECT ALL 82 * - 96 AS col1
----
-7872

onlyif mysql # aggregate syntax: 
query II rowsort label-7961
SELECT + SUM( 58 ) + - - 96 AS col2, + 52 + + + 49 + - COUNT( 54 ) AS col1
----
154
100

skipif mysql # not compatible
query II rowsort label-7961
SELECT + SUM ( 58 ) + - - 96 AS col2, + 52 + + + 49 + - COUNT ( 54 ) AS col1
----
154
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT - 29 + - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-7962
SELECT - 29 + - COUNT ( * ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT + 41 * - COUNT( * ) * + ( + 12 ) * + 97 + - 51 AS col1
----
-47775

skipif mysql # not compatible
query I rowsort label-7963
SELECT + 41 * - COUNT ( * ) * + ( + 12 ) * + 97 + - 51 AS col1
----
-47775

query I rowsort
SELECT ALL 47 * + 39 AS col0
----
1833

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT - ( - COUNT( * ) ) * - 17
----
-17

skipif mysql # not compatible
query I rowsort label-7965
SELECT - ( - COUNT ( * ) ) * - 17
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7966
SELECT ALL CAST( - ( + SUM( ALL - 12 ) ) AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL CAST ( - ( + SUM ( ALL - 12 ) ) AS INTEGER )
----
12

query I rowsort
SELECT + 88 * + + 53 + 83 AS col1
----
4747

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7968
SELECT ALL NULLIF ( 5, - + 64 ) col0, 33 * COUNT( * ) DIV + 95 + MAX( 22 )
----
5
22

skipif mysql # not compatible
query II rowsort label-7968
SELECT ALL NULLIF ( 5, - + 64 ) col0, 33 * COUNT ( * ) / + 95 + MAX ( 22 )
----
5
22

query I rowsort
SELECT DISTINCT - 90 * 16 AS col0
----
-1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7970
SELECT 12 + + + 35 DIV - SUM( + - ( + + COALESCE ( - 44, 32 + 76 ) ) ) + - COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7970
SELECT 12 + + + 35 / - SUM ( + - ( + + COALESCE ( - 44, 32 + 76 ) ) ) + - COUNT ( * ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7971
SELECT 27 + SUM( + 15 ) AS col0, 32 AS col2
----
42
32

skipif mysql # not compatible
query II rowsort label-7971
SELECT 27 + SUM ( + 15 ) AS col0, 32 AS col2
----
42
32

query II rowsort
SELECT DISTINCT 40 col1, 93 AS col1
----
40
93

query I rowsort
SELECT 2 * - + 27
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT COALESCE ( + - 15, + 1 * + 20 * + - 36 + 45 * - 77 ) + - CAST( - 52 + 35 * - 8 AS SIGNED ) AS col2
----
317

skipif mysql # not compatible
query I rowsort label-7974
SELECT COALESCE ( + - 15, + 1 * + 20 * + - 36 + 45 * - 77 ) + - CAST ( - 52 + 35 * - 8 AS INTEGER ) AS col2
----
317

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT ALL + COALESCE ( + COUNT( * ), - 60 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL + COALESCE ( + COUNT ( * ), - 60 ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT DISTINCT + ( - + 32 ) + - - COUNT( DISTINCT + - 2 ) + + 72
----
41

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + ( - + 32 ) + - - COUNT ( DISTINCT + - 2 ) + + 72
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT DISTINCT - NULLIF ( CASE + - 49 WHEN - 17 THEN - - 15 WHEN COUNT( * ) - COUNT( * ) THEN NULL END, + 31 ) + + ( - 10 - - 24 * 46 ) / - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT - NULLIF ( CASE + - 49 WHEN - 17 THEN - - 15 WHEN COUNT ( * ) - COUNT ( * ) THEN NULL END, + 31 ) + + ( - 10 - - 24 * 46 ) / - 38 AS col0
----
NULL

query I rowsort
SELECT 27 * - 32
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL - 23 * + - COALESCE ( + 78, - + 18 * 54 * COUNT( 9 ) + - 94 * - 48 )
----
1794

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL - 23 * + - COALESCE ( + 78, - + 18 * 54 * COUNT ( 9 ) + - 94 * - 48 )
----
1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) * - - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - - 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL - 74 + + 95 * - 56 + + - COUNT( * )
----
-5395

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL - 74 + + 95 * - 56 + + - COUNT ( * )
----
-5395

query I rowsort
SELECT - 38 + - + 42 * - 93 AS col0
----
3868

query II rowsort
SELECT 36 AS col0, + 91 - + 75 col1
----
36
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT MIN( + 4 ) + + ( 84 )
----
88

skipif mysql # not compatible
query I rowsort label-7984
SELECT MIN ( + 4 ) + + ( 84 )
----
88

query I rowsort
SELECT ALL + 8 * + + 35 * - 87 AS col0
----
-24360

query I rowsort
SELECT ( + - 43 ) * - 2 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT - MAX( ALL - - 90 ) - - 60 + + + 60 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT - MAX ( ALL - - 90 ) - - 60 + + + 60 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT MAX( ALL + 20 ) - - 50 * 99 AS col0
----
4970

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT MAX ( ALL + 20 ) - - 50 * 99 AS col0
----
4970

query I rowsort
SELECT ALL - - ( - 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7990
SELECT - 26 DIV + 83 + - 7 + - + COUNT( + + 2 ) DIV 39
----
-7

skipif mysql # not compatible
query I rowsort label-7990
SELECT - 26 / + 83 + - 7 + - + COUNT ( + + 2 ) / 39
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT 90 - 90 + 81 DIV 69 DIV - 7 * - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7991
SELECT 90 - 90 + 81 / 69 / - 7 * - 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT COUNT( * ) * - + 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-7992
SELECT COUNT ( * ) * - + 52 AS col0
----
-52

query I rowsort
SELECT ALL - + ( - 11 ) AS col2
----
11

query II rowsort
SELECT 56, + 56 col2
----
56
56

query II rowsort
SELECT 64 AS col2, - 40 AS col2
----
64
-40

query II rowsort
SELECT ALL - ( 11 ), + 35 AS col1
----
-11
35

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7997
SELECT DISTINCT - 48 col2, CAST( NULL AS DECIMAL ) AS col1
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-7997
SELECT DISTINCT - 48 col2, CAST ( NULL AS REAL ) AS col1
----
-48
NULL

query I rowsort
SELECT ALL 29 * ( 11 )
----
319

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL - COUNT( DISTINCT 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - COUNT ( DISTINCT 62 )
----
-1

query I rowsort
SELECT DISTINCT 58 + - - 61 AS col0
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT 5 - ( + 27 ) * CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-8001
SELECT 5 - ( + 27 ) * CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL - ( - - COUNT( * ) ) * + 33
----
-33

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL - ( - - COUNT ( * ) ) * + 33
----
-33

query I rowsort
SELECT 12 * + - 63 AS col2
----
-756

query II rowsort
SELECT ALL - 50 AS col1, 19 AS col1
----
-50
19

query II rowsort
SELECT + 79 AS col0, 28
----
79
28

query II rowsort
SELECT 2 AS col0, + 53 AS col2
----
2
53

query I rowsort
SELECT 95 + 3
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT COUNT( * ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT COUNT ( * ) / + 85
----
0

query I rowsort
SELECT DISTINCT - ( + - COALESCE ( 56, - - ( - 85 ) * 37 + CASE + 91 + - 43 WHEN - 40 THEN 73 END ) ) + - 37
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT ALL + COUNT( * ) + - 94 + - MIN( DISTINCT 76 ) + 61 * + CAST( COUNT( * ) AS SIGNED )
----
-108

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL + COUNT ( * ) + - 94 + - MIN ( DISTINCT 76 ) + 61 * + CAST ( COUNT ( * ) AS INTEGER )
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT ALL - 68 + - COUNT( * ), + 78 AS col1
----
-69
78

skipif mysql # not compatible
query II rowsort label-8011
SELECT ALL - 68 + - COUNT ( * ), + 78 AS col1
----
-69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT 27 * COUNT( * ) * + + 26 AS col1
----
702

skipif mysql # not compatible
query I rowsort label-8012
SELECT 27 * COUNT ( * ) * + + 26 AS col1
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT DISTINCT COUNT( * ) + - 79 + - - 15
----
-63

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT COUNT ( * ) + - 79 + - - 15
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT DISTINCT COUNT( * ) + - COUNT( * ) + MAX( ALL + 95 ) + + SUM( ALL ( + 92 ) ) * - COALESCE ( CAST( NULL AS SIGNED ), 38 * 45 ) * CAST( 37 * 32 + ( COUNT( * ) ) AS SIGNED )
----
-186424105

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) + MAX ( ALL + 95 ) + + SUM ( ALL ( + 92 ) ) * - COALESCE ( CAST ( NULL AS INTEGER ), 38 * 45 ) * CAST ( 37 * 32 + ( COUNT ( * ) ) AS INTEGER )
----
-186424105

query II rowsort
SELECT 26 AS col0, - 79 * - 12 + - - 94 AS col1
----
26
1042

query I rowsort
SELECT ALL + NULLIF ( + - 7, + 12 + - + 62 ) + 11
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT 18 + COALESCE ( + 64, 45 DIV - 63 + - - CASE 55 WHEN 33 THEN 49 WHEN 78 THEN 9 * - 16 END ) * 51 AS col2
----
3282

skipif mysql # not compatible
query I rowsort label-8017
SELECT 18 + COALESCE ( + 64, 45 / - 63 + - - CASE 55 WHEN 33 THEN 49 WHEN 78 THEN 9 * - 16 END ) * 51 AS col2
----
3282

query II rowsort
SELECT + 42 AS col1, - 94 + - - 84 + + 3
----
42
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT NULLIF ( + MAX( - 57 ), + + 81 * - - 12 ) - - 69 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-8019
SELECT NULLIF ( + MAX ( - 57 ), + + 81 * - - 12 ) - - 69 AS col1
----
12

query I rowsort
SELECT DISTINCT - + 24 * 84 AS col2
----
-2016

query II rowsort
SELECT ALL 3 col1, - 58 AS col2
----
3
-58

query I rowsort
SELECT 10 + - - 87
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT ALL - - 74 * - - CASE 93 WHEN + + 55 THEN + - MAX( + 56 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL - - 74 * - - CASE 93 WHEN + + 55 THEN + - MAX ( + 56 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 49 - - 48 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT 87 * + - SUM( + - NULLIF ( 1, + 29 + - - 52 ) )
----
87

skipif mysql # not compatible
query I rowsort label-8025
SELECT 87 * + - SUM ( + - NULLIF ( 1, + 29 + - - 52 ) )
----
87

query I rowsort
SELECT DISTINCT - 51 * 9 - + - 45 AS col2
----
-414

query II rowsort
SELECT ALL 59 col1, + 22 * - 74
----
59
-1628

query I rowsort
SELECT ALL - + 82 * - - 33 * - + ( - 13 ) * 21 AS col0
----
-738738

query I rowsort
SELECT DISTINCT - + 95 AS col1
----
-95

query II rowsort
SELECT ALL - 69 AS col2, + 53 AS col1
----
-69
53

query II rowsort
SELECT + 82 AS col1, 42 AS col1
----
82
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT + 90 * NULLIF ( + 24, + 80 + - + 79 ) * + 44 + - CASE ( COUNT( * ) ) WHEN 83 / + 6 THEN NULL WHEN 22 * 42 THEN NULL ELSE NULLIF ( - 10, COUNT( * ) ) END AS col2
----
95050

skipif mysql # not compatible
query I rowsort label-8032
SELECT + 90 * NULLIF ( + 24, + 80 + - + 79 ) * + 44 + - CASE ( COUNT ( * ) ) WHEN 83 / + 6 THEN NULL WHEN 22 * 42 THEN NULL ELSE NULLIF ( - 10, COUNT ( * ) ) END AS col2
----
95050

query II rowsort
SELECT + NULLIF ( + - 20, ( + - 39 ) ) col2, 39 + + - 17
----
-20
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT ALL - 35 DIV + 42 + 19
----
19

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL - 35 / + 42 + 19
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT + CASE - 83 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - NULLIF ( - 16, - 51 ) END * + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8035
SELECT + CASE - 83 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - NULLIF ( - 16, - 51 ) END * + COUNT ( * ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8036
SELECT COALESCE ( 8, 73 DIV + + 12, + - 63 * SUM( 50 ) + + 13 + COALESCE ( + 97, CASE - 18 WHEN 10 + 65 * ( - 41 ) THEN NULLIF ( - 53, 99 ) + SUM( DISTINCT COALESCE ( CAST( + 11 AS SIGNED ), 81 + + 72, - 36 + + 34, CAST( 13 AS SIGNED ) ) + + 60 ) WHEN + 6 * + 86 THEN NULL END ) ) + NULLIF ( 5, NULLIF ( 69, COALESCE ( 63, + COUNT( * ) * COUNT( * ) ) DIV - 61 ) DIV 69 )
----
13

skipif mysql # not compatible
query I rowsort label-8036
SELECT COALESCE ( 8, 73 / + + 12, + - 63 * SUM ( 50 ) + + 13 + COALESCE ( + 97, CASE - 18 WHEN 10 + 65 * ( - 41 ) THEN NULLIF ( - 53, 99 ) + SUM ( DISTINCT COALESCE ( CAST ( + 11 AS INTEGER ), 81 + + 72, - 36 + + 34, CAST ( 13 AS INTEGER ) ) + + 60 ) WHEN + 6 * + 86 THEN NULL END ) ) + NULLIF ( 5, NULLIF ( 69, COALESCE ( 63, + COUNT ( * ) * COUNT ( * ) ) / - 61 ) / 69 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT - 2 * - 84 * + - COUNT( * )
----
-168

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - 2 * - 84 * + - COUNT ( * )
----
-168

query I rowsort
SELECT DISTINCT 93 * 27 + + 86
----
2597

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT - 75 + - 59 DIV - 50 col2
----
-74

skipif mysql # not compatible
query I rowsort label-8039
SELECT - 75 + - 59 / - 50 col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT SUM( + ( + 65 ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8040
SELECT SUM ( + ( + 65 ) ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT - 51 + - 69 + - 17 * MIN( 58 ) + + 85 AS col0
----
-1021

skipif mysql # not compatible
query I rowsort label-8041
SELECT - 51 + - 69 + - 17 * MIN ( 58 ) + + 85 AS col0
----
-1021

query I rowsort
SELECT 45 * - 33 + + 18 + 74 AS col1
----
-1393

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL COUNT( * ) + - - 25 + COALESCE ( 77, 16 + - ( - 94 ) ) AS col0
----
103

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL COUNT ( * ) + - - 25 + COALESCE ( 77, 16 + - ( - 94 ) ) AS col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT + 21 + CAST( + COUNT( + 83 ) AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-8044
SELECT + 21 + CAST ( + COUNT ( + 83 ) AS INTEGER )
----
22

query II rowsort
SELECT + 80 * 11 AS col0, - 35
----
880
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL 92 * - ( + + MIN( DISTINCT + + 82 ) )
----
-7544

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL 92 * - ( + + MIN ( DISTINCT + + 82 ) )
----
-7544

query I rowsort
SELECT + 98 + + + 7 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL COUNT( * ) + + 97 + + 48 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL COUNT ( * ) + + 97 + + 48 AS col2
----
146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8049
SELECT + 74 + - CAST( NULL AS DECIMAL ) * - 13 + + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT + 74 + - CAST ( NULL AS REAL ) * - 13 + + 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL COALESCE ( 36, + 48, + - 31 + - - COUNT( * ) + + + 85 + + CASE - COUNT( - 5 ) WHEN 18 THEN NULL WHEN 16 * 65 THEN 39 * 76 ELSE 87 + + 69 END * + 15 * 87 ) - - 40 * ( - 62 )
----
-2444

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL COALESCE ( 36, + 48, + - 31 + - - COUNT ( * ) + + + 85 + + CASE - COUNT ( - 5 ) WHEN 18 THEN NULL WHEN 16 * 65 THEN 39 * 76 ELSE 87 + + 69 END * + 15 * 87 ) - - 40 * ( - 62 )
----
-2444

query I rowsort
SELECT + 28 * - ( 5 ) * + 0 + + 96 AS col2
----
96

query I rowsort
SELECT - - 46 + - 96 AS col1
----
-50

query I rowsort
SELECT - 21 + 26
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + - 2 * + 52 + COALESCE ( COALESCE ( + COALESCE ( 0, + 20 - COUNT( * ) ), 75 ), 69 )
----
-104

skipif mysql # not compatible
query I rowsort label-8054
SELECT + - 2 * + 52 + COALESCE ( COALESCE ( + COALESCE ( 0, + 20 - COUNT ( * ) ), 75 ), 69 )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT DISTINCT - COUNT( * ) - - 12 + 27 - 71 * - 10 * - 26
----
-18422

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - COUNT ( * ) - - 12 + 27 - 71 * - 10 * - 26
----
-18422

query I rowsort
SELECT DISTINCT + NULLIF ( 37, - 71 + 68 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8057
SELECT DISTINCT + 58 DIV - 8 + - COUNT( * ) + - 10 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT + 58 / - 8 + - COUNT ( * ) + - 10 AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT ALL + 42 / CAST( NULL AS SIGNED ) / + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL + 42 / CAST ( NULL AS INTEGER ) / + 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8059
SELECT + MIN( 57 ) AS col2, - 80
----
57
-80

skipif mysql # not compatible
query II rowsort label-8059
SELECT + MIN ( 57 ) AS col2, - 80
----
57
-80

onlyif mysql # DIV for integer division: 
query II rowsort label-8060
SELECT + + 25 DIV 95 DIV + + 54, 4 + + 72 AS col1
----
0
76

skipif mysql # not compatible
query II rowsort label-8060
SELECT + + 25 / 95 / + + 54, 4 + + 72 AS col1
----
0
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8061
SELECT - - 45 * - ( + + 53 ) * + CAST( - SUM( ALL + 46 ) AS SIGNED ) AS col1
----
109710

skipif mysql # not compatible
query I rowsort label-8061
SELECT - - 45 * - ( + + 53 ) * + CAST ( - SUM ( ALL + 46 ) AS INTEGER ) AS col1
----
109710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8062
SELECT - - CAST( + - 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-8062
SELECT - - CAST ( + - 56 AS INTEGER )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL - 6 * - MIN( - + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - 6 * - MIN ( - + 0 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 56 * + + 23
----
1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT ALL SUM( - - 56 ) DIV + 54 + 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL SUM ( - - 56 ) / + 54 + 0 AS col2
----
1

query I rowsort
SELECT ALL + CASE 34 WHEN 51 THEN - 35 + - ( ( 74 ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL + 1 * + - COUNT( * ) + - + 62 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL + 1 * + - COUNT ( * ) + - + 62 AS col2
----
-63

query I rowsort
SELECT ( + 78 ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) * + + 79 + - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) * + + 79 + - 93 AS col2
----
NULL

query I rowsort
SELECT ( - + 75 ) AS col1
----
-75

query I rowsort
SELECT - 46 * 63 * 58
----
-168084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8072
SELECT + 66 AS col2, CASE WHEN + 79 BETWEEN 91 * + 88 / + 86 + - 24 + 29 AND 31 + COUNT( * ) THEN + 87 ELSE NULL END * + ( CASE 46 WHEN + 40 * - 18 + 51 THEN NULL WHEN + 88 THEN COALESCE ( ( + CAST( NULL AS SIGNED ) ), - 82 ) + - 85 WHEN - 43 THEN NULL WHEN 81 THEN NULL END )
----
66
NULL

skipif mysql # not compatible
query II rowsort label-8072
SELECT + 66 AS col2, CASE WHEN + 79 BETWEEN 91 * + 88 / + 86 + - 24 + 29 AND 31 + COUNT ( * ) THEN + 87 ELSE NULL END * + ( CASE 46 WHEN + 40 * - 18 + 51 THEN NULL WHEN + 88 THEN COALESCE ( ( + CAST ( NULL AS INTEGER ) ), - 82 ) + - 85 WHEN - 43 THEN NULL WHEN 81 THEN NULL END )
----
66
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL + CASE 36 WHEN - 81 / - - 29 THEN - - 80 WHEN 35 * COALESCE ( - + 63, - COUNT( * ) ) + - COUNT( * ) + - COUNT( * ) THEN + 70 - - 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + CASE 36 WHEN - 81 / - - 29 THEN - - 80 WHEN 35 * COALESCE ( - + 63, - COUNT ( * ) ) + - COUNT ( * ) + - COUNT ( * ) THEN + 70 - - 28 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - 34 + COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8074
SELECT - 34 + COUNT ( * ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT DISTINCT - ( + 79 ) * + 41 - 12 + + COUNT( * ) * 96 * 76 + + - 32 AS col1
----
4013

skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT - ( + 79 ) * + 41 - 12 + + COUNT ( * ) * 96 * 76 + + - 32 AS col1
----
4013

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT DISTINCT CAST( - 11 AS SIGNED ) * 88
----
-968

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT CAST ( - 11 AS INTEGER ) * 88
----
-968

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8077
SELECT DISTINCT + AVG ( ALL 62 ) / + + 52 * + ( - CAST( NULL AS SIGNED ) ) * + - 40, + 53 AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-8077
SELECT DISTINCT + AVG ( ALL 62 ) / + + 52 * + ( - CAST ( NULL AS INTEGER ) ) * + - 40, + 53 AS col1
----
NULL
53

query II rowsort
SELECT ALL + 1 AS col1, 20 AS col0
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL - COALESCE ( - 52, + + 74, - COUNT( * ) + ( + COUNT( ALL + + 41 ) ) + - 23 * + 46 ) * 95 col2
----
4940

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - COALESCE ( - 52, + + 74, - COUNT ( * ) + ( + COUNT ( ALL + + 41 ) ) + - 23 * + 46 ) * 95 col2
----
4940

query I rowsort
SELECT - 86 - 90 AS col1
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT - 44 DIV + 17 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8081
SELECT - 44 / + 17 AS col0
----
-2

query II rowsort
SELECT - 37 AS col1, 61 * - 37 col0
----
-37
-2257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT ALL CAST( - 86 AS SIGNED ) * - 21 - + - 50 - + 57 col1
----
1799

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL CAST ( - 86 AS INTEGER ) * - 21 - + - 50 - + 57 col1
----
1799

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT + - 40 * - 99 * + 90 - - - 71 * - + COUNT( * ) + - ( + + 92 )
----
356379

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT + - 40 * - 99 * + 90 - - - 71 * - + COUNT ( * ) + - ( + + 92 )
----
356379

query II rowsort
SELECT DISTINCT 21 AS col1, + 54 AS col1
----
21
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT DISTINCT + 29 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + 29 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + ( 96 ) )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT DISTINCT 20 * + 2 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT 20 * + 2 / 70 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8089
SELECT + COUNT( * ) + + - CAST( NULL AS SIGNED ) * - 16 / - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - 16 / - 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8090
SELECT - COUNT( * ) AS col0, 49
----
-1
49

skipif mysql # not compatible
query II rowsort label-8090
SELECT - COUNT ( * ) AS col0, 49
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL - NULLIF ( 81, - + NULLIF ( - MAX( - 36 ), - - 84 ) ) + + 27 * 20 * 53
----
28539

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - NULLIF ( 81, - + NULLIF ( - MAX ( - 36 ), - - 84 ) ) + + 27 * 20 * 53
----
28539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8092
SELECT + 21 - + CAST( NULL AS DECIMAL ) + + - 64 + - - 38 * - 88 / 21 + + 37 / + CASE 85 WHEN 85 + CAST( NULL AS SIGNED ) THEN + CASE COUNT( * ) WHEN + 62 + 26 THEN NULL WHEN - MIN( - 11 ) + 89 THEN ( - 0 ) * 76 + - COUNT( * ) ELSE - COUNT( * ) END / 74 WHEN COUNT( * ) / - 6 THEN NULL ELSE 24 END + + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT + 21 - + CAST ( NULL AS REAL ) + + - 64 + - - 38 * - 88 / 21 + + 37 / + CASE 85 WHEN 85 + CAST ( NULL AS INTEGER ) THEN + CASE COUNT ( * ) WHEN + 62 + 26 THEN NULL WHEN - MIN ( - 11 ) + 89 THEN ( - 0 ) * 76 + - COUNT ( * ) ELSE - COUNT ( * ) END / 74 WHEN COUNT ( * ) / - 6 THEN NULL ELSE 24 END + + 84
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8093
SELECT + + 41 DIV MIN( 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8093
SELECT + + 41 / MIN ( 55 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) * - + 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) * - + 18 AS col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8095
SELECT - CAST( NULL AS SIGNED ) * 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT - CAST ( NULL AS INTEGER ) * 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT - 8 * + - 94 + 96 + - COUNT( * ) + ( + + 93 ) + 85 AS col1
----
1025

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT - 8 * + - 94 + 96 + - COUNT ( * ) + ( + + 93 ) + 85 AS col1
----
1025

onlyif mysql # DIV for integer division: 
query II rowsort label-8097
SELECT - 67, 80 DIV - + 7 AS col1
----
-67
-11

skipif mysql # not compatible
query II rowsort label-8097
SELECT - 67, 80 / - + 7 AS col1
----
-67
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT DISTINCT - - 77 + + CAST( COALESCE ( - 40, 22 * 58 + 74 ) AS SIGNED ) + + 32 + + COALESCE ( ( 76 ), 23 * - ( 21 * 89 ) + 59, - 77 ) * 75 AS col0
----
5769

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT - - 77 + + CAST ( COALESCE ( - 40, 22 * 58 + 74 ) AS INTEGER ) + + 32 + + COALESCE ( ( 76 ), 23 * - ( 21 * 89 ) + 59, - 77 ) * 75 AS col0
----
5769

query I rowsort
SELECT DISTINCT 66 + + - 8
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL + + COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL + + COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8101
SELECT COALESCE ( - + 46, CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8101
SELECT COALESCE ( - + 46, CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT ALL 76 + + + 29 * + + COUNT( * ) col2
----
105

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL 76 + + + 29 * + + COUNT ( * ) col2
----
105

query II rowsort
SELECT 15 + - - 29, COALESCE ( - 70, + 57 ) AS col2
----
44
-70

query I rowsort
SELECT 86 * - 85
----
-7310

query I rowsort
SELECT 21 * - - 3
----
63

query II rowsort
SELECT - 84 * - 13 * - - 0 + + + 71 AS col2, 28
----
71
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL COUNT( * ) + - + CASE - + 65 WHEN + ( + MIN( NULLIF ( - 42, 23 ) ) ) / - 68 * ( - CASE + 75 WHEN + 11 THEN NULL WHEN 93 THEN 48 * - 20 + - 79 END ) - - CAST( NULL AS SIGNED ) * + 16 THEN 96 - 57 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL COUNT ( * ) + - + CASE - + 65 WHEN + ( + MIN ( NULLIF ( - 42, 23 ) ) ) / - 68 * ( - CASE + 75 WHEN + 11 THEN NULL WHEN 93 THEN 48 * - 20 + - 79 END ) - - CAST ( NULL AS INTEGER ) * + 16 THEN 96 - 57 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 22 * 29 + - 59
----
-697

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT + COALESCE ( - - 5, + MIN( 93 ), + + 15 ) + - 58 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + COALESCE ( - - 5, + MIN ( 93 ), + + 15 ) + - 58 AS col0
----
-53

query II rowsort
SELECT 21 * 85 AS col2, ( + 16 )
----
1785
16

query I rowsort
SELECT ALL - ( 90 ) AS col2
----
-90

query I rowsort
SELECT - 71 * + 94 + + - 83
----
-6757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8113
SELECT CAST( NULL AS SIGNED ) * - - CAST( - COUNT( * ) AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( - COUNT ( * ) AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT - ( - MIN( - 4 ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT - ( - MIN ( - 4 ) ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL - MIN( 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL - MIN ( 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 27 + - + 56 * + - 54 * - COUNT( * ) AS col1
----
-2997

skipif mysql # not compatible
query I rowsort label-8116
SELECT 27 + - + 56 * + - 54 * - COUNT ( * ) AS col1
----
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT MAX( ALL - - 0 ) * - 55
----
0

skipif mysql # not compatible
query I rowsort label-8117
SELECT MAX ( ALL - - 0 ) * - 55
----
0

query I rowsort
SELECT - 45 * - 2 + + 74
----
164

onlyif mysql # DIV for integer division: 
query II rowsort label-8119
SELECT DISTINCT - 37 DIV - + 3, + 87 AS col0
----
12
87

skipif mysql # not compatible
query II rowsort label-8119
SELECT DISTINCT - 37 / - + 3, + 87 AS col0
----
12
87

query I rowsort
SELECT ALL - NULLIF ( + + 31, 83 ) AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8121
SELECT + 46 DIV + 18
----
2

skipif mysql # not compatible
query I rowsort label-8121
SELECT + 46 / + 18
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT ALL - + 50 DIV + - 78 + - + 35
----
-35

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - + 50 / + - 78 + - + 35
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT ALL - CAST( 69 AS SIGNED ) * + 9 * 77 + + 30 AS col0
----
-47787

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - CAST ( 69 AS INTEGER ) * + 9 * 77 + + 30 AS col0
----
-47787

query I rowsort
SELECT + 55 + + 12 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL + COUNT( * ) * - 47 + - 17 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + COUNT ( * ) * - 47 + - 17 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT 85 + - - 41 + + + 50 * 57 + 26 * + COUNT( * ) AS col2
----
3002

skipif mysql # not compatible
query I rowsort label-8126
SELECT 85 + - - 41 + + + 50 * 57 + 26 * + COUNT ( * ) AS col2
----
3002

query I rowsort
SELECT ALL - - 75 * + - 97 AS col2
----
-7275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8128
SELECT + 13 / - 93 * + 34 * + MAX( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT + 13 / - 93 * + 34 * + MAX ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT - 22 * 78 AS col0
----
-1716

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL + - 62 + + + COUNT( * ) + - + 29
----
-90

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + - 62 + + + COUNT ( * ) + - + 29
----
-90

query I rowsort
SELECT DISTINCT - - ( - 86 ) + + 93 * 42 * - 25 * 25 AS col2
----
-2441336

query I rowsort
SELECT ALL + 79 + NULLIF ( - 28, + - 71 ) + - 85 * - 36 col2
----
3111

query I rowsort
SELECT - ( - ( - ( + 72 ) ) ) AS col1
----
-72

query I rowsort
SELECT ALL - - 83 + - 61 * - 73 - + - 37 + + + 21
----
4594

query I rowsort
SELECT ALL + 98 + - 64 AS col0
----
34

query I rowsort
SELECT ALL - 23 + 31 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT 80 * - 28 * + + NULLIF ( - 34, - 84 * ( 56 ) ) + - + COUNT( * ) AS col1
----
76159

skipif mysql # not compatible
query I rowsort label-8137
SELECT 80 * - 28 * + + NULLIF ( - 34, - 84 * ( 56 ) ) + - + COUNT ( * ) AS col1
----
76159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8138
SELECT ALL 68 + - - ( + + 44 ) + + 34 + - CAST( - 8 AS SIGNED ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL 68 + - - ( + + 44 ) + + 34 + - CAST ( - 8 AS INTEGER ) AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT DISTINCT CASE - 46 WHEN - COUNT( * ) / + 97 + - 29 + + COALESCE ( + 53, - 61 * - 80, + 52 + COUNT( * ) * - 40 ) - + ( + ( - 0 ) ) THEN 30 WHEN 91 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT CASE - 46 WHEN - COUNT ( * ) / + 97 + - 29 + + COALESCE ( + 53, - 61 * - 80, + 52 + COUNT ( * ) * - 40 ) - + ( + ( - 0 ) ) THEN 30 WHEN 91 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 86 - - 4
----
90

query I rowsort
SELECT 95 * + 9
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT 31 * COUNT( ALL - 33 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8142
SELECT 31 * COUNT ( ALL - 33 ) AS col1
----
31

query I rowsort
SELECT ALL 93 * + 92 AS col1
----
8556

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL - SUM( DISTINCT + 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL - SUM ( DISTINCT + 69 ) AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT ( - 15 ) - 35 * + 49 * - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT ( - 15 ) - 35 * + 49 * - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8146
SELECT ALL - 66 AS col1, 57 * COUNT( + 29 ) + - - COUNT( * )
----
-66
58

skipif mysql # not compatible
query II rowsort label-8146
SELECT ALL - 66 AS col1, 57 * COUNT ( + 29 ) + - - COUNT ( * )
----
-66
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT + MAX( ALL + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8147
SELECT + MAX ( ALL + - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL 63 - - + COUNT( * ) + + 81 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL 63 - - + COUNT ( * ) + + 81 AS col1
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-8149
SELECT ALL 80 DIV ( + ( 20 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL 80 / ( + ( 20 ) ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8150
SELECT - 29 DIV - + MIN( + 70 ) + + 79 + - 35, - COALESCE ( 19, SUM( ALL 40 ) * 27 - - 12 * 62 + - 79 DIV 47 ) + - 93 col2
----
44
-112

skipif mysql # not compatible
query II rowsort label-8150
SELECT - 29 / - + MIN ( + 70 ) + + 79 + - 35, - COALESCE ( 19, SUM ( ALL 40 ) * 27 - - 12 * 62 + - 79 / 47 ) + - 93 col2
----
44
-112

query I rowsort
SELECT 56 * - + 41 AS col1
----
-2296

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT MIN( - 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8152
SELECT MIN ( - 74 ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8153
SELECT COUNT( * ) * - 4 * - - ( 44 ) + + + SUM( + 78 ), COUNT( * ) AS col0
----
-98
1

skipif mysql # not compatible
query II rowsort label-8153
SELECT COUNT ( * ) * - 4 * - - ( 44 ) + + + SUM ( + 78 ), COUNT ( * ) AS col0
----
-98
1

query I rowsort
SELECT ALL + 51 * + - 57 AS col0
----
-2907

onlyif mysql # aggregate syntax: 
query II rowsort label-8155
SELECT ALL - 84 AS col0, COUNT( * ) AS col0
----
-84
1

skipif mysql # not compatible
query II rowsort label-8155
SELECT ALL - 84 AS col0, COUNT ( * ) AS col0
----
-84
1

query I rowsort
SELECT ALL 14 * 78 AS col0
----
1092

onlyif mysql # aggregate syntax: 
query II rowsort label-8157
SELECT MIN( ALL + 4 ) + + 38 - - + 88 * + 96, ( 77 ) AS col1
----
8490
77

skipif mysql # not compatible
query II rowsort label-8157
SELECT MIN ( ALL + 4 ) + + 38 - - + 88 * + 96, ( 77 ) AS col1
----
8490
77

query I rowsort
SELECT ALL + - 10 + - 96 * 2 + + - 67
----
-269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT CASE + 9 WHEN + COALESCE ( 44, + COUNT( * ) ) THEN NULL WHEN - + 32 + + CAST( + CAST( - + 84 AS SIGNED ) AS SIGNED ) THEN NULL ELSE - 45 END - 84
----
-129

skipif mysql # not compatible
query I rowsort label-8159
SELECT CASE + 9 WHEN + COALESCE ( 44, + COUNT ( * ) ) THEN NULL WHEN - + 32 + + CAST ( + CAST ( - + 84 AS INTEGER ) AS INTEGER ) THEN NULL ELSE - 45 END - 84
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8160
SELECT CASE WHEN + AVG ( DISTINCT 77 ) IN ( + + 28 ) THEN + 44 * + + 43 * ( + 0 ) * + 43 - - COUNT( * ) END * COALESCE ( COALESCE ( 62, - 11 * + 16 ) * - CASE WHEN NOT NULL BETWEEN + CAST( NULL AS SIGNED ) AND + 78 THEN + 8 + 15 * 64 END, - NULLIF ( 74, COUNT( * ) * - 20 + + 96 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT CASE WHEN + AVG ( DISTINCT 77 ) IN ( + + 28 ) THEN + 44 * + + 43 * ( + 0 ) * + 43 - - COUNT ( * ) END * COALESCE ( COALESCE ( 62, - 11 * + 16 ) * - CASE WHEN NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) AND + 78 THEN + 8 + 15 * 64 END, - NULLIF ( 74, COUNT ( * ) * - 20 + + 96 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + 79 )
----
-79

query II rowsort
SELECT - 95 AS col0, - 73 * 70 AS col1
----
-95
-5110

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8163
SELECT ALL - ( + 8 ) / + + CAST( NULL AS DECIMAL ) AS col1, 37 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-8163
SELECT ALL - ( + 8 ) / + + CAST ( NULL AS REAL ) AS col1, 37 AS col2
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT + + 68 + - SUM( - 93 ) AS col1
----
161

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT + + 68 + - SUM ( - 93 ) AS col1
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT ALL + 27 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL + 27 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL + 16 + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL + 16 + - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8167
SELECT - MIN( + 51 ) DIV 70 * + 82 + - + 42 * - + 26 + + ( ( 18 ) )
----
1110

skipif mysql # not compatible
query I rowsort label-8167
SELECT - MIN ( + 51 ) / 70 * + 82 + - + 42 * - + 26 + + ( ( 18 ) )
----
1110

query I rowsort
SELECT - - 36 * - 86
----
-3096

query I rowsort
SELECT DISTINCT - 25 * - 44 AS col2
----
1100

query I rowsort
SELECT ALL + 67 + + 25 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT SUM( - + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-8171
SELECT SUM ( - + 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT + 41 - - COUNT( * ) * + + 28 col1
----
69

skipif mysql # not compatible
query I rowsort label-8172
SELECT + 41 - - COUNT ( * ) * + + 28 col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT - 11 + - 28 + - COUNT( * ) * MIN( DISTINCT - + 81 ) * + + NULLIF ( - 78, 6 ) AS col2
----
-6357

skipif mysql # not compatible
query I rowsort label-8173
SELECT - 11 + - 28 + - COUNT ( * ) * MIN ( DISTINCT - + 81 ) * + + NULLIF ( - 78, 6 ) AS col2
----
-6357

query I rowsort
SELECT - 29 * - 2 AS col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8175
SELECT - 88 + - COUNT( * ) + - - 81 DIV - - ( + - 44 )
----
-90

skipif mysql # not compatible
query I rowsort label-8175
SELECT - 88 + - COUNT ( * ) + - - 81 / - - ( + - 44 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL MIN( DISTINCT + - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL MIN ( DISTINCT + - 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT DISTINCT - 0 - + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT - 0 - + + COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT ALL 17 AS col0, - 58
----
17
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT + MIN( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-8179
SELECT + MIN ( ALL 14 )
----
14

query I rowsort
SELECT + 34 + + 52
----
86

query I rowsort
SELECT + 51 * + + 86 AS col2
----
4386

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT DISTINCT MAX( - 50 ) * - + 4 * COUNT( + + 15 ) + - 22 + ( + 60 ) * 76
----
4738

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT MAX ( - 50 ) * - + 4 * COUNT ( + + 15 ) + - 22 + ( + 60 ) * 76
----
4738

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + MAX( + 15 ) col2
----
15

skipif mysql # not compatible
query I rowsort label-8183
SELECT + MAX ( + 15 ) col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT + 15 DIV - + COUNT( * ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-8185
SELECT + 15 / - + COUNT ( * ) col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8186
SELECT DISTINCT - COUNT( * ) * + 37 AS col2, - ( + - 1 )
----
-37
1

skipif mysql # not compatible
query II rowsort label-8186
SELECT DISTINCT - COUNT ( * ) * + 37 AS col2, - ( + - 1 )
----
-37
1

query I rowsort
SELECT + COALESCE ( + 11, + 29 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT ALL + 0 AS col1, NULLIF ( COUNT( - + 39 ), + NULLIF ( + SUM( ALL - 91 ), - 39 ) * + 5 * 55 ) * - + 45 + + 86
----
0
41

skipif mysql # not compatible
query II rowsort label-8188
SELECT ALL + 0 AS col1, NULLIF ( COUNT ( - + 39 ), + NULLIF ( + SUM ( ALL - 91 ), - 39 ) * + 5 * 55 ) * - + 45 + + 86
----
0
41

query I rowsort
SELECT DISTINCT - 46 * - 95 + - 4 AS col0
----
4366

query I rowsort
SELECT ALL 71 * 1 + + 36
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT + + CASE - 34 WHEN + 45 THEN 78 * - 99 WHEN 4 THEN - - 49 WHEN + 78 * - - 27 THEN - COUNT( * ) END + + 82 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT + + CASE - 34 WHEN + 45 THEN 78 * - 99 WHEN 4 THEN - - 49 WHEN + 78 * - - 27 THEN - COUNT ( * ) END + + 82 * 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT + SUM( ALL - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-8192
SELECT + SUM ( ALL - 13 )
----
-13

query I rowsort
SELECT + - 92 + - 0 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8194
SELECT - 74 - - + 72 + - 76 + + COALESCE ( 11, COUNT( * ) + + - 16 + - 66 * - - 38 + + 80 + - - 23 DIV + ( COUNT( * ) ), - 85 ) + + COUNT( * ) * 61 * + 38
----
2251

skipif mysql # not compatible
query I rowsort label-8194
SELECT - 74 - - + 72 + - 76 + + COALESCE ( 11, COUNT ( * ) + + - 16 + - 66 * - - 38 + + 80 + - - 23 / + ( COUNT ( * ) ), - 85 ) + + COUNT ( * ) * 61 * + 38
----
2251

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT DISTINCT - COALESCE ( + + 6, - COUNT( * ) + 23 + - 6 + + 20 ) * + - COUNT( * ) * - - 93 * + COUNT( * ) + 12
----
570

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT - COALESCE ( + + 6, - COUNT ( * ) + 23 + - 6 + + 20 ) * + - COUNT ( * ) * - - 93 * + COUNT ( * ) + 12
----
570

query I rowsort
SELECT + + 17 * - - 83
----
1411

query I rowsort
SELECT ALL + 74 * + 63 + 67 AS col2
----
4729

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8198
SELECT ALL - - 83 * - 89 + - 11 + + COUNT( * ) * + + 55 DIV - 26 + + - 99 * COUNT( * ) * - 63 AS col2, 34
----
-1163
34

skipif mysql # not compatible
query II rowsort label-8198
SELECT ALL - - 83 * - 89 + - 11 + + COUNT ( * ) * + + 55 / - 26 + + - 99 * COUNT ( * ) * - 63 AS col2, 34
----
-1163
34

query I rowsort
SELECT + 74 * + 21 + + 7 + + + 57 * + 19 - + 88
----
2556

query I rowsort
SELECT + ( 90 ) + + 83 AS col1
----
173

query I rowsort
SELECT DISTINCT - 29 * - 55
----
1595

query I rowsort
SELECT - - NULLIF ( + - 39, - + 59 ) AS col2
----
-39

query II rowsort
SELECT DISTINCT - 91, + 24 AS col2
----
-91
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8204
SELECT ALL + CAST( NULL AS SIGNED ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8204
SELECT ALL + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT - - CAST( 78 AS SIGNED ) * + 49 AS col2
----
3822

skipif mysql # not compatible
query I rowsort label-8205
SELECT - - CAST ( 78 AS INTEGER ) * + 49 AS col2
----
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT - CAST( + 23 AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8206
SELECT - CAST ( + 23 AS INTEGER ) AS col1
----
-23

query I rowsort
SELECT - 3 + - - 80
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8208
SELECT ALL 81 AS col2, 10 DIV - + CASE + 4 WHEN + ( - COUNT( * ) ) THEN NULL ELSE - MAX( - 34 ) * - 7 END + + 88 AS col2
----
81
88

skipif mysql # not compatible
query II rowsort label-8208
SELECT ALL 81 AS col2, 10 / - + CASE + 4 WHEN + ( - COUNT ( * ) ) THEN NULL ELSE - MAX ( - 34 ) * - 7 END + + 88 AS col2
----
81
88

query I rowsort
SELECT - 29 * 45 * - 46 col0
----
60030

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT + COUNT( * ) * + 5
----
5

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT + COUNT ( * ) * + 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT DISTINCT MIN( DISTINCT - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8211
SELECT DISTINCT MIN ( DISTINCT - 22 ) AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT ALL + CAST( NULL AS SIGNED ) * 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + CAST ( NULL AS INTEGER ) * 50 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8213
SELECT DISTINCT - AVG ( - 92 ) * - + 56 + 39 + - - CAST( NULL AS SIGNED ) AS col0, ( + 61 )
----
NULL
61

skipif mysql # not compatible
query II rowsort label-8213
SELECT DISTINCT - AVG ( - 92 ) * - + 56 + 39 + - - CAST ( NULL AS INTEGER ) AS col0, ( + 61 )
----
NULL
61

query I rowsort
SELECT ALL + 14 * + 76 AS col1
----
1064

query I rowsort
SELECT + 69 * + 27 AS col2
----
1863

query I rowsort
SELECT - 28 * - + 56 AS col1
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT - COUNT( * ) * + 96 col0
----
-96

skipif mysql # not compatible
query I rowsort label-8217
SELECT - COUNT ( * ) * + 96 col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8218
SELECT - MIN( DISTINCT + 97 ) DIV 79 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8218
SELECT - MIN ( DISTINCT + 97 ) / 79 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8219
SELECT DISTINCT CAST( + + 78 AS SIGNED ) AS col2, - 32 AS col0
----
78
-32

skipif mysql # not compatible
query II rowsort label-8219
SELECT DISTINCT CAST ( + + 78 AS INTEGER ) AS col2, - 32 AS col0
----
78
-32

query I rowsort
SELECT - 39 * 74
----
-2886

query I rowsort
SELECT DISTINCT + ( 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL + COUNT( DISTINCT - 48 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + COUNT ( DISTINCT - 48 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8223
SELECT ALL COUNT( * ) DIV - + COUNT( * ) + + - 94 * + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL COUNT ( * ) / - + COUNT ( * ) + + - 94 * + COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8224
SELECT DISTINCT 27 DIV - 20 + - + COUNT( * ) * + 54 * + 35
----
-1891

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT 27 / - 20 + - + COUNT ( * ) * + 54 * + 35
----
-1891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8225
SELECT CAST( - COUNT( * ) AS SIGNED ), 53 * + - 46 + + COUNT( * ) AS col2
----
-1
-2437

skipif mysql # not compatible
query II rowsort label-8225
SELECT CAST ( - COUNT ( * ) AS INTEGER ), 53 * + - 46 + + COUNT ( * ) AS col2
----
-1
-2437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8226
SELECT ALL - COUNT( * ) DIV - ( - 29 ) * + COUNT( * ) + - + COUNT( * ) + + 74 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - COUNT ( * ) / - ( - 29 ) * + COUNT ( * ) + - + COUNT ( * ) + + 74 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - - COUNT( * ) + + ( - 19 ) + - 45 + + 85 * - 33
----
-2868

skipif mysql # not compatible
query I rowsort label-8227
SELECT - - COUNT ( * ) + + ( - 19 ) + - 45 + + 85 * - 33
----
-2868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8228
SELECT - + CAST( + 55 AS SIGNED ) + + 40 + + - 56 + NULLIF ( 49, + 69 ), COUNT( * ) AS col1
----
-22
1

skipif mysql # not compatible
query II rowsort label-8228
SELECT - + CAST ( + 55 AS INTEGER ) + + 40 + + - 56 + NULLIF ( 49, + 69 ), COUNT ( * ) AS col1
----
-22
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT ALL + 20 DIV + 97 + - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL + 20 / + 97 + - 70 AS col1
----
-70

query I rowsort
SELECT ALL + 60 + + 61 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT 8 * ( - CASE - 52 WHEN + COUNT( * ) THEN - 42 * - - 47 ELSE NULL END ) - - + 34 * + + 87 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT 8 * ( - CASE - 52 WHEN + COUNT ( * ) THEN - 42 * - - 47 ELSE NULL END ) - - + 34 * + + 87 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8232
SELECT COUNT( * ) DIV MAX( - 66 ) + + 43
----
43

skipif mysql # not compatible
query I rowsort label-8232
SELECT COUNT ( * ) / MAX ( - 66 ) + + 43
----
43

query II rowsort
SELECT + ( - 36 ) AS col2, - 63
----
-36
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT COUNT( DISTINCT 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8234
SELECT COUNT ( DISTINCT 52 ) AS col2
----
1

query I rowsort
SELECT ALL - 0 - + CASE - 91 WHEN - 31 THEN - 43 * + 94 ELSE + 95 END + + + 55
----
-40

query I rowsort
SELECT 88 * - - 99 AS col0
----
8712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8237
SELECT ALL COUNT( * ) DIV - 89 DIV - - 29 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL COUNT ( * ) / - 89 / - - 29 * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT - CASE + 10 WHEN - 62 THEN 40 - - NULLIF ( 79, 20 + 84 ) * + 48 + - COUNT( * ) / + ( - 90 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT - CASE + 10 WHEN - 62 THEN 40 - - NULLIF ( 79, 20 + 84 ) * + 48 + - COUNT ( * ) / + ( - 90 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8239
SELECT ALL SUM( ALL COALESCE ( + 33, - 95 ) ) * - 68 AS col2, 95
----
-2244
95

skipif mysql # not compatible
query II rowsort label-8239
SELECT ALL SUM ( ALL COALESCE ( + 33, - 95 ) ) * - 68 AS col2, 95
----
-2244
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT - 31 * + 29 * + 2 + + COUNT( * )
----
-1797

skipif mysql # not compatible
query I rowsort label-8240
SELECT - 31 * + 29 * + 2 + + COUNT ( * )
----
-1797

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT ( - COUNT( * ) ) - - COUNT( * ) + - + 24
----
-24

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT ( - COUNT ( * ) ) - - COUNT ( * ) + - + 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL - SUM( - + 79 ) * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL - SUM ( - + 79 ) * COUNT ( * )
----
79

query II rowsort
SELECT - 2, COALESCE ( - 84, + 84 * + 57 ) AS col2
----
-2
-84

query II rowsort
SELECT ALL 3 AS col1, + 90 - - 52 AS col2
----
3
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8245
SELECT 30 - 53 * - 82 * - COUNT( DISTINCT - 87 ) DIV + + COUNT( - 88 )
----
-4316

skipif mysql # not compatible
query I rowsort label-8245
SELECT 30 - 53 * - 82 * - COUNT ( DISTINCT - 87 ) / + + COUNT ( - 88 )
----
-4316

query II rowsort
SELECT 97 AS col2, + 5
----
97
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT COUNT( * ) + 7 + + 40 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8247
SELECT COUNT ( * ) + 7 + + 40 AS col0
----
48

query I rowsort
SELECT 20 + - 37 AS col1
----
-17

query I rowsort
SELECT 59 * 78 * - ( + 48 )
----
-220896

query I rowsort
SELECT 65 - + 52
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8251
SELECT ( + 35 ) DIV + 99 + + COALESCE ( + COUNT( * ), MIN( ALL 58 ) + + MAX( 57 ) * + - ( + 4 ), - - 9 ) + - + 10 * 17 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-8251
SELECT ( + 35 ) / + 99 + + COALESCE ( + COUNT ( * ), MIN ( ALL 58 ) + + MAX ( 57 ) * + - ( + 4 ), - - 9 ) + - + 10 * 17 AS col0
----
-169

query I rowsort
SELECT 39 + 17
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8253
SELECT ALL 4 + - ( 38 ) * 90 DIV - - 81 * COUNT( * ) + + MAX( - 53 )
----
-91

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL 4 + - ( 38 ) * 90 / - - 81 * COUNT ( * ) + + MAX ( - 53 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8254
SELECT 49 DIV + 92 * CAST( - - 2 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8254
SELECT 49 / + 92 * CAST ( - - 2 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL + 92 + - 24 * - SUM( - - 92 )
----
2300

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + 92 + - 24 * - SUM ( - - 92 )
----
2300

query I rowsort
SELECT 55 + + 83 * - 25 AS col1
----
-2020

query I rowsort
SELECT 65 + 71 * - 45 * - 97
----
309980

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL - COUNT( * ) * + COALESCE ( - - COUNT( * ), + - COUNT( * ) * + CASE + - 0 WHEN - + 74 * AVG ( DISTINCT + 99 ) THEN + + 11 END )
----
-1

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL - COUNT ( * ) * + COALESCE ( - - COUNT ( * ), + - COUNT ( * ) * + CASE + - 0 WHEN - + 74 * AVG ( DISTINCT + 99 ) THEN + + 11 END )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT 71 * + CASE - 51 WHEN - + COUNT( * ) + 62 THEN NULL WHEN + 29 + + + 80 THEN + - 43 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT 71 * + CASE - 51 WHEN - + COUNT ( * ) + 62 THEN NULL WHEN + 29 + + + 80 THEN + - 43 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8260
SELECT DISTINCT - 47 + + ( - - 53 ), SUM( ALL - - 75 ) + - 54 AS col0
----
6
21

skipif mysql # not compatible
query II rowsort label-8260
SELECT DISTINCT - 47 + + ( - - 53 ), SUM ( ALL - - 75 ) + - 54 AS col0
----
6
21

query I rowsort
SELECT ALL + 93 + - 25 + 67 * - + 21 * + 26
----
-36514

query I rowsort
SELECT 84 + + 38 AS col2
----
122

query I rowsort
SELECT DISTINCT + 75 * + 64
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL + 20 * COALESCE ( - COUNT( + + 55 ), 97, COUNT( * ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL + 20 * COALESCE ( - COUNT ( + + 55 ), 97, COUNT ( * ) ) AS col0
----
-20

query I rowsort
SELECT - 90 * + 55 * 68 + + - 14 + - 91
----
-336705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8266
SELECT ALL + - 37 + + 10 - - 25 AS col2, 79 * + 95 * CASE + + 44 WHEN + 97 THEN + + 46 * + 93 - AVG ( 40 ) + + CAST( 14 AS SIGNED ) * - ( - SUM( DISTINCT - 27 ) ) WHEN 63 * 20 THEN NULL WHEN + 84 + + 30 THEN 94 + 99 END AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-8266
SELECT ALL + - 37 + + 10 - - 25 AS col2, 79 * + 95 * CASE + + 44 WHEN + 97 THEN + + 46 * + 93 - AVG ( 40 ) + + CAST ( 14 AS INTEGER ) * - ( - SUM ( DISTINCT - 27 ) ) WHEN 63 * 20 THEN NULL WHEN + 84 + + 30 THEN 94 + 99 END AS col1
----
-2
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8267
SELECT DISTINCT - - 65 col0, 80 DIV - - 96
----
65
0

skipif mysql # not compatible
query II rowsort label-8267
SELECT DISTINCT - - 65 col0, 80 / - - 96
----
65
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8268
SELECT DISTINCT - COALESCE ( + MAX( - 1 ), - 59 + - ( + - 71 ) ) col0, + 23
----
1
23

skipif mysql # not compatible
query II rowsort label-8268
SELECT DISTINCT - COALESCE ( + MAX ( - 1 ), - 59 + - ( + - 71 ) ) col0, + 23
----
1
23

query I rowsort
SELECT 23 * - 8
----
-184

query I rowsort
SELECT ALL - - ( + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ALL - - 49 - - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL - - 49 - - COUNT ( * ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - 89 + + COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-8272
SELECT - 89 + + COUNT ( * ) AS col2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8273
SELECT ALL + + 36 * - NULLIF ( 99, 18 + + COUNT( * ) * 83 ), COUNT( * ) DIV - 4 DIV COUNT( * ) AS col2
----
-3564
0

skipif mysql # not compatible
query II rowsort label-8273
SELECT ALL + + 36 * - NULLIF ( 99, 18 + + COUNT ( * ) * 83 ), COUNT ( * ) / - 4 / COUNT ( * ) AS col2
----
-3564
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT COUNT( * ) + + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8274
SELECT COUNT ( * ) + + COUNT ( * ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + ( + + COUNT( * ) ) + - 71 - 9
----
-79

skipif mysql # not compatible
query I rowsort label-8275
SELECT + ( + + COUNT ( * ) ) + - 71 - 9
----
-79

query I rowsort
SELECT DISTINCT 50 * 72 AS col2
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT ALL - + COUNT( + + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL - + COUNT ( + + 18 )
----
-1

query I rowsort
SELECT + 29 * 82 + + 27 AS col2
----
2405

query II rowsort
SELECT DISTINCT - 44 AS col0, + 99
----
-44
99

query I rowsort
SELECT DISTINCT + 86 * + 85 AS col2
----
7310

query I rowsort
SELECT 14 * ( + 88 )
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - MIN( + - 11 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-8282
SELECT - MIN ( + - 11 ) AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8283
SELECT 59 DIV - ( - - COUNT( * ) )
----
-59

skipif mysql # not compatible
query I rowsort label-8283
SELECT 59 / - ( - - COUNT ( * ) )
----
-59

query I rowsort
SELECT ALL 17 + 54 + 87
----
158

query I rowsort
SELECT 30 * ( 25 )
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL 10 + COUNT( * ) + + - 74
----
-63

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL 10 + COUNT ( * ) + + - 74
----
-63

query I rowsort
SELECT ALL 87 + - 0 * + - 80
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8288
SELECT DISTINCT 45 * - 35, ( 39 ) * - - COUNT( - 37 ) + - 62 - + - COUNT( * ) * - COUNT( * ) AS col2
----
-1575
-24

skipif mysql # not compatible
query II rowsort label-8288
SELECT DISTINCT 45 * - 35, ( 39 ) * - - COUNT ( - 37 ) + - 62 - + - COUNT ( * ) * - COUNT ( * ) AS col2
----
-1575
-24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8289
SELECT ALL CAST( + - 20 AS SIGNED ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL CAST ( + - 20 AS INTEGER ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT DISTINCT COUNT( * ) + + 22 * 78
----
1717

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT COUNT ( * ) + + 22 * 78
----
1717

query II rowsort
SELECT DISTINCT 9 * 47 col1, + 31 AS col0
----
423
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8292
SELECT - CASE NULLIF ( 67, - - 30 ) WHEN - 41 DIV 60 THEN + + COUNT( * ) * 14 ELSE + 31 END, + 59 DIV - 8 + COUNT( * ) + - COUNT( * ) AS col0
----
-31
-7

skipif mysql # not compatible
query II rowsort label-8292
SELECT - CASE NULLIF ( 67, - - 30 ) WHEN - 41 / 60 THEN + + COUNT ( * ) * 14 ELSE + 31 END, + 59 / - 8 + COUNT ( * ) + - COUNT ( * ) AS col0
----
-31
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8293
SELECT ( - CAST( + 64 AS SIGNED ) ) - + COUNT( * ) * 73 DIV + 74 DIV MIN( 12 ) * - - 61 + - SUM( DISTINCT - 62 )
----
-2

skipif mysql # not compatible
query I rowsort label-8293
SELECT ( - CAST ( + 64 AS INTEGER ) ) - + COUNT ( * ) * 73 / + 74 / MIN ( 12 ) * - - 61 + - SUM ( DISTINCT - 62 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8294
SELECT DISTINCT + 93 + + 23, COUNT( * ) DIV + 42 + + 23 AS col2
----
116
23

skipif mysql # not compatible
query II rowsort label-8294
SELECT DISTINCT + 93 + + 23, COUNT ( * ) / + 42 + + 23 AS col2
----
116
23

query I rowsort
SELECT + + 30 * + - 6 + + NULLIF ( ( + - 64 ), + 87 )
----
-244

query I rowsort
SELECT ALL + 12 * + ( 72 ) - + + 69 AS col1
----
795

query I rowsort
SELECT - + 80 - + 28 AS col1
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT + CAST( + MIN( + 56 ) AS SIGNED ) * 95 AS col0
----
5320

skipif mysql # not compatible
query I rowsort label-8298
SELECT + CAST ( + MIN ( + 56 ) AS INTEGER ) * 95 AS col0
----
5320

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT ALL + 83 * - 92 - - SUM( ALL 95 )
----
-7541

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + 83 * - 92 - - SUM ( ALL 95 )
----
-7541

query I rowsort
SELECT ALL - 8 * - + ( + 3 )
----
24

query I rowsort
SELECT + - 3 * - 12
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT 97 * + - 12 + - - COUNT( * )
----
-1163

skipif mysql # not compatible
query I rowsort label-8302
SELECT 97 * + - 12 + - - COUNT ( * )
----
-1163

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT - + COUNT( * ) - 66 + - 65
----
-132

skipif mysql # not compatible
query I rowsort label-8303
SELECT - + COUNT ( * ) - 66 + - 65
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT - - COUNT( * ) + 58 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8304
SELECT - - COUNT ( * ) + 58 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT + COUNT( DISTINCT - 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + COUNT ( DISTINCT - 53 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL + 64 + - 66 * ( - COUNT( * ) ) + + 7 + - 76 - + - COUNT( * ) / - ( + + 63 ) / + - 75 * + CASE - + 65 WHEN - 17 THEN 92 * + + 47 WHEN + 87 + 16 * MIN( 8 - 29 ) THEN NULL END * 72 + 29 * + 0 * 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + 64 + - 66 * ( - COUNT ( * ) ) + + 7 + - 76 - + - COUNT ( * ) / - ( + + 63 ) / + - 75 * + CASE - + 65 WHEN - 17 THEN 92 * + + 47 WHEN + 87 + 16 * MIN ( 8 - 29 ) THEN NULL END * 72 + 29 * + 0 * 16 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8307
SELECT - 72 * + + 79 + + 3 + - - 9 DIV + 22 AS col2, - COUNT( * ) AS col1
----
-5685
-1

skipif mysql # not compatible
query II rowsort label-8307
SELECT - 72 * + + 79 + + 3 + - - 9 / + 22 AS col2, - COUNT ( * ) AS col1
----
-5685
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT - SUM( 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-8308
SELECT - SUM ( 14 )
----
-14

query I rowsort
SELECT - 99 * + 74 AS col1
----
-7326

query I rowsort
SELECT DISTINCT - 19 * 44
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT - COUNT( 89 ) - - - 83 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8311
SELECT - COUNT ( 89 ) - - - 83 AS col1
----
-84

query I rowsort
SELECT ALL 63 + - 18 - + 71
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8313
SELECT + ( - 2 ) + 7 * 58 * - 37 DIV + - COUNT( ALL 31 ) AS col0
----
15020

skipif mysql # not compatible
query I rowsort label-8313
SELECT + ( - 2 ) + 7 * 58 * - 37 / + - COUNT ( ALL 31 ) AS col0
----
15020

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - COUNT( ALL - 60 ) + - 85
----
-86

skipif mysql # not compatible
query I rowsort label-8314
SELECT - COUNT ( ALL - 60 ) + - 85
----
-86

query I rowsort
SELECT - 33 + - 83 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT + COUNT( * ) * + 94
----
94

skipif mysql # not compatible
query I rowsort label-8316
SELECT + COUNT ( * ) * + 94
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8317
SELECT - ( 31 ) + - CAST( NULL AS DECIMAL ) * MIN( - 45 ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8317
SELECT - ( 31 ) + - CAST ( NULL AS REAL ) * MIN ( - 45 ) * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 97 - - 89
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8319
SELECT ALL - 57 DIV COALESCE ( - SUM( - 96 ), - + 47 + - 60 - - + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL - 57 / COALESCE ( - SUM ( - 96 ), - + 47 + - 60 - - + 32 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL - NULLIF ( - 60, COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL - NULLIF ( - 60, COUNT ( * ) )
----
60

query II rowsort
SELECT + 82 + - NULLIF ( - 24, - 43 * + + 52 ) * + 83 AS col1, - 94
----
2074
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8322
SELECT ALL 21 * - + 27 * - - NULLIF ( - + 2, + 97 ) + + - ( ( + 11 ) ) AS col0, 99 * NULLIF ( + AVG ( - + CAST( NULL AS SIGNED ) ), + - 87 * + 28 ) AS col2
----
1123
NULL

skipif mysql # not compatible
query II rowsort label-8322
SELECT ALL 21 * - + 27 * - - NULLIF ( - + 2, + 97 ) + + - ( ( + 11 ) ) AS col0, 99 * NULLIF ( + AVG ( - + CAST ( NULL AS INTEGER ) ), + - 87 * + 28 ) AS col2
----
1123
NULL

query I rowsort
SELECT + NULLIF ( + - 91, + - 26 )
----
-91

query I rowsort
SELECT + 9 + + + ( - 61 ) + 33
----
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8325
SELECT + - 18 * - 47 * + 79 + + 30 + CAST( ( + - 61 ) AS SIGNED ) DIV - 50, ( + 43 ) AS col2
----
66865
43

skipif mysql # not compatible
query II rowsort label-8325
SELECT + - 18 * - 47 * + 79 + + 30 + CAST ( ( + - 61 ) AS INTEGER ) / - 50, ( + 43 ) AS col2
----
66865
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT ALL - CAST( NULL AS SIGNED ) * - + 26 * + - 12 * + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 26 * + - 12 * + 27 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( - 97, + 30 + + 63 ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT + + 92 * - 60 + - - COALESCE ( - ( CAST( - 32 AS SIGNED ) ), - + CAST( + ( - NULLIF ( + SUM( DISTINCT + 60 ), CASE - 64 WHEN - CASE WHEN NULL >= ( NULL ) THEN MAX( 91 ) END THEN 12 / + 23 WHEN - 68 THEN NULL END ) ) AS SIGNED ), + 35 ) col2
----
-5488

skipif mysql # not compatible
query I rowsort label-8328
SELECT + + 92 * - 60 + - - COALESCE ( - ( CAST ( - 32 AS INTEGER ) ), - + CAST ( + ( - NULLIF ( + SUM ( DISTINCT + 60 ), CASE - 64 WHEN - CASE WHEN NULL >= ( NULL ) THEN MAX ( 91 ) END THEN 12 / + 23 WHEN - 68 THEN NULL END ) ) AS INTEGER ), + 35 ) col2
----
-5488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8329
SELECT ALL - 68 * + + ( - 21 ) * - 15 + + - 86 + + CAST( NULL AS DECIMAL ) * + ( - 7 ) / + + 73 + + 1 + 81 + - 23 * + COUNT( * ) * + + CAST( + MAX( ALL - 88 ) AS SIGNED ) * + COUNT( * ) * 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL - 68 * + + ( - 21 ) * - 15 + + - 86 + + CAST ( NULL AS REAL ) * + ( - 7 ) / + + 73 + + 1 + 81 + - 23 * + COUNT ( * ) * + + CAST ( + MAX ( ALL - 88 ) AS INTEGER ) * + COUNT ( * ) * 94 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT + 84 * + - 58 * - - 91 + - COUNT( DISTINCT + 92 )
----
-443353

skipif mysql # not compatible
query I rowsort label-8330
SELECT + 84 * + - 58 * - - 91 + - COUNT ( DISTINCT + 92 )
----
-443353

query I rowsort
SELECT ALL + - 67 AS col1
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8332
SELECT ALL - + CASE + 46 WHEN 57 * 71 * 70 + + CAST( - - 82 AS SIGNED ) THEN + - 64 WHEN - - 89 THEN - CAST( MIN( ALL - CASE WHEN ( + 76 ) IS NULL THEN + 60 * 68 + - 44 * 33 ELSE NULL END ) AS SIGNED ) * MIN( ALL 92 ) + COALESCE ( - 72 + + 98 / - 74, + 74 ) ELSE NULL END * + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL - + CASE + 46 WHEN 57 * 71 * 70 + + CAST ( - - 82 AS INTEGER ) THEN + - 64 WHEN - - 89 THEN - CAST ( MIN ( ALL - CASE WHEN ( + 76 ) IS NULL THEN + 60 * 68 + - 44 * 33 ELSE NULL END ) AS INTEGER ) * MIN ( ALL 92 ) + COALESCE ( - 72 + + 98 / - 74, + 74 ) ELSE NULL END * + 90
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT + + 91 + + + 2 * NULLIF ( + MAX( ALL + - CAST( NULL AS SIGNED ) ), - + 4 + + + ( + 73 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT + + 91 + + + 2 * NULLIF ( + MAX ( ALL + - CAST ( NULL AS INTEGER ) ), - + 4 + + + ( + 73 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8334
SELECT DISTINCT + CAST( + 15 AS SIGNED ) DIV + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT + CAST ( + 15 AS INTEGER ) / + 38 AS col2
----
0

query I rowsort
SELECT - - 92 * - 57 + + + 86 col1
----
-5158

onlyif mysql # aggregate syntax: 
query II rowsort label-8336
SELECT DISTINCT + - COUNT( * ) AS col2, - 70 - - - 15 AS col0
----
-1
-85

skipif mysql # not compatible
query II rowsort label-8336
SELECT DISTINCT + - COUNT ( * ) AS col2, - 70 - - - 15 AS col0
----
-1
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT ALL - 27 * 89 + - SUM( ALL + NULLIF ( 0, + 78 ) ) + - - COALESCE ( + CASE - 72 WHEN - + CAST( NULLIF ( - 4, + 32 ) AS SIGNED ) * + 13 + 9 THEN - 59 - - 20 END, + COUNT( * ) + COUNT( * ), - 99 * 87 ) AS col2
----
-2401

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL - 27 * 89 + - SUM ( ALL + NULLIF ( 0, + 78 ) ) + - - COALESCE ( + CASE - 72 WHEN - + CAST ( NULLIF ( - 4, + 32 ) AS INTEGER ) * + 13 + 9 THEN - 59 - - 20 END, + COUNT ( * ) + COUNT ( * ), - 99 * 87 ) AS col2
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT + + 30 + + COUNT( * ) + - MIN( 76 ) * 13 * + 54
----
-53321

skipif mysql # not compatible
query I rowsort label-8338
SELECT + + 30 + + COUNT ( * ) + - MIN ( 76 ) * 13 * + 54
----
-53321

query I rowsort
SELECT - ( 60 ) * - 29 - + 42
----
1698

onlyif mysql # aggregate syntax: 
query II rowsort label-8340
SELECT ( - - 19 ), 60 + - + 58 * - - 52 + - + 83 * + - COUNT( * ) AS col0
----
19
-2873

skipif mysql # not compatible
query II rowsort label-8340
SELECT ( - - 19 ), 60 + - + 58 * - - 52 + - + 83 * + - COUNT ( * ) AS col0
----
19
-2873

query I rowsort
SELECT - 29 + - 72 + - 39
----
-140

query I rowsort
SELECT DISTINCT 24 * + + 65 + - + 85 * + 29 AS col0
----
-905

query I rowsort
SELECT NULLIF ( - + 67, - 44 + - 85 ) AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT DISTINCT - CAST( - 89 AS SIGNED ) * 95 + - 13 col1
----
8442

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT - CAST ( - 89 AS INTEGER ) * 95 + - 13 col1
----
8442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8345
SELECT COALESCE ( SUM( 58 ), + - 82 + - 62 * 91 ), + COALESCE ( + + 74, + - 12 + + ( 44 ), - + CASE + 45 WHEN - 80 / - - 31 THEN + - 49 + 37 END * CAST( - 76 AS SIGNED ) ) AS col0
----
58
74

skipif mysql # not compatible
query II rowsort label-8345
SELECT COALESCE ( SUM ( 58 ), + - 82 + - 62 * 91 ), + COALESCE ( + + 74, + - 12 + + ( 44 ), - + CASE + 45 WHEN - 80 / - - 31 THEN + - 49 + 37 END * CAST ( - 76 AS INTEGER ) ) AS col0
----
58
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL + ( + - ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL + ( + - ( - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT CASE - - 81 WHEN + - 74 * + 15 - - 46 + + ( + 50 ) THEN NULL ELSE - - CAST( 95 AS SIGNED ) - + 28 END col1
----
67

skipif mysql # not compatible
query I rowsort label-8347
SELECT CASE - - 81 WHEN + - 74 * + 15 - - 46 + + ( + 50 ) THEN NULL ELSE - - CAST ( 95 AS INTEGER ) - + 28 END col1
----
67

query I rowsort
SELECT - 45 + + + 24 AS col2
----
-21

query I rowsort
SELECT + 57 * + - 84
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - COUNT( - + 22 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8350
SELECT - COUNT ( - + 22 ) AS col0
----
-1

query I rowsort
SELECT ALL ( + 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8352
SELECT COUNT( * ) AS col2, ( + COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-8352
SELECT COUNT ( * ) AS col2, ( + COUNT ( * ) )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT - CAST( NULL AS SIGNED ) + + + 7 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT - CAST ( NULL AS INTEGER ) + + + 7 * + COUNT ( * ) AS col2
----
NULL

query III rowsort
SELECT - 33 AS col2, - 1 AS col1, + - 54 AS col2
----
-33
-1
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT ALL - 61 * 39 * COUNT( * )
----
-2379

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL - 61 * 39 * COUNT ( * )
----
-2379

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8356
SELECT 71 * CASE 84 WHEN - MIN( DISTINCT + + 27 ) / 64 + - - 54 - CAST( + 40 AS DECIMAL ) * + + 85 THEN - - COUNT( * ) WHEN + AVG ( + 26 ) THEN NULL WHEN + + 11 THEN + 91 + + NULLIF ( + 63, - 42 ) ELSE 0 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT 71 * CASE 84 WHEN - MIN ( DISTINCT + + 27 ) / 64 + - - 54 - CAST ( + 40 AS REAL ) * + + 85 THEN - - COUNT ( * ) WHEN + AVG ( + 26 ) THEN NULL WHEN + + 11 THEN + 91 + + NULLIF ( + 63, - 42 ) ELSE 0 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT DISTINCT 37, + 26 * + SUM( ALL + + 98 ) * + + 8 AS col1
----
37
20384

skipif mysql # not compatible
query II rowsort label-8357
SELECT DISTINCT 37, + 26 * + SUM ( ALL + + 98 ) * + + 8 AS col1
----
37
20384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8358
SELECT - 90 AS col1, CASE - 89 WHEN - - CASE + 52 WHEN + ( - ( + - COUNT( * ) ) ) THEN - + COUNT( * ) + - - SUM( DISTINCT 98 ) * + - 18 WHEN - 94 THEN NULL ELSE + COUNT( * ) END THEN 30 WHEN - 66 THEN NULL WHEN - 38 / + 2 THEN + CAST( + 90 AS SIGNED ) ELSE NULL END
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-8358
SELECT - 90 AS col1, CASE - 89 WHEN - - CASE + 52 WHEN + ( - ( + - COUNT ( * ) ) ) THEN - + COUNT ( * ) + - - SUM ( DISTINCT 98 ) * + - 18 WHEN - 94 THEN NULL ELSE + COUNT ( * ) END THEN 30 WHEN - 66 THEN NULL WHEN - 38 / + 2 THEN + CAST ( + 90 AS INTEGER ) ELSE NULL END
----
-90
NULL

query I rowsort
SELECT 84 * - 52
----
-4368

query I rowsort
SELECT ALL - 71 * 83 AS col2
----
-5893

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8361
SELECT ALL 47 AS col2, COUNT( - - 15 ) * + - 61 DIV 54 AS col0
----
47
-1

skipif mysql # not compatible
query II rowsort label-8361
SELECT ALL 47 AS col2, COUNT ( - - 15 ) * + - 61 / 54 AS col0
----
47
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8362
SELECT ALL - + 17 - - - 30 + + 10 + + - 90 DIV + NULLIF ( + COUNT( * ), + 97 * CAST( - 4 AS SIGNED ) ) + - - 61 * + - 95
----
-5922

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - + 17 - - - 30 + + 10 + + - 90 / + NULLIF ( + COUNT ( * ), + 97 * CAST ( - 4 AS INTEGER ) ) + - - 61 * + - 95
----
-5922

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8363
SELECT 91, + COUNT( * ) DIV + NULLIF ( - ( 25 ), + - 2 * COUNT( * ) ) + + - COUNT( * ) col1
----
91
-1

skipif mysql # not compatible
query II rowsort label-8363
SELECT 91, + COUNT ( * ) / + NULLIF ( - ( 25 ), + - 2 * COUNT ( * ) ) + + - COUNT ( * ) col1
----
91
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8364
SELECT + COUNT( * ) DIV - + 27 AS col2, + 8 AS col0
----
0
8

skipif mysql # not compatible
query II rowsort label-8364
SELECT + COUNT ( * ) / - + 27 AS col2, + 8 AS col0
----
0
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8365
SELECT + 2 DIV + 41 AS col1, + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + - 99 + + 91 * - - ( 66 ) + - 50
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8365
SELECT + 2 / + 41 AS col1, + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 99 + + 91 * - - ( 66 ) + - 50
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8366
SELECT ALL - 49 AS col0, + 6 * + - COUNT( * ) AS col2
----
-49
-6

skipif mysql # not compatible
query II rowsort label-8366
SELECT ALL - 49 AS col0, + 6 * + - COUNT ( * ) AS col2
----
-49
-6

query I rowsort
SELECT 8 - - 24 * - 56 * - COALESCE ( + - 70, - 77 ) * - 89 + - 38 + + + 96 * 80
----
8380770

query II rowsort
SELECT - 16 AS col0, 31
----
-16
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT ALL COUNT( + 8 ) DIV + - SUM( ALL - 49 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL COUNT ( + 8 ) / + - SUM ( ALL - 49 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8370
SELECT - CAST( + 94 AS SIGNED ) DIV - - 22
----
-4

skipif mysql # not compatible
query I rowsort label-8370
SELECT - CAST ( + 94 AS INTEGER ) / - - 22
----
-4

query II rowsort
SELECT ALL 0, - 65 AS col1
----
0
-65

query II rowsort
SELECT - + 31 AS col0, - 94 AS col0
----
-31
-94

query I rowsort
SELECT ALL + 1 + + 21
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT COUNT( + 50 ) - 47 - + 72 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-8374
SELECT COUNT ( + 50 ) - 47 - + 72 AS col1
----
-118

query I rowsort
SELECT ALL 39 + + 88 * + - 13
----
-1105

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT + 9 - + 96 * - 22 * - + COUNT( + 38 ) col2
----
-2103

skipif mysql # not compatible
query I rowsort label-8376
SELECT + 9 - + 96 * - 22 * - + COUNT ( + 38 ) col2
----
-2103

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT + - NULLIF ( + 68, + SUM( DISTINCT - 51 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-8377
SELECT + - NULLIF ( + 68, + SUM ( DISTINCT - 51 ) )
----
-68

query I rowsort
SELECT ALL 1 + - 16 + + 74 AS col2
----
59

query I rowsort
SELECT ALL + 7 + + - ( - 87 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT + 75 + + MIN( DISTINCT - 54 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8380
SELECT + 75 + + MIN ( DISTINCT - 54 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - COUNT( 82 ) * + 72 col2
----
-72

skipif mysql # not compatible
query I rowsort label-8381
SELECT - COUNT ( 82 ) * + 72 col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT DISTINCT COUNT( * ) * - ( 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT COUNT ( * ) * - ( 66 ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT CASE SUM( - CAST( + 11 AS SIGNED ) ) WHEN + 5 * + - COALESCE ( - - COUNT( * ), - - 85 ) THEN - 17 WHEN + 54 * + - COUNT( * ) THEN NULL WHEN ( - 75 ) THEN NULL WHEN - 46 + - 95 * + - AVG ( DISTINCT - + ( 69 ) ) - 99 THEN - 44 ELSE - 34 END * + ( ( - COUNT( * ) ) * 97 ) AS col1
----
3298

skipif mysql # not compatible
query I rowsort label-8383
SELECT CASE SUM ( - CAST ( + 11 AS INTEGER ) ) WHEN + 5 * + - COALESCE ( - - COUNT ( * ), - - 85 ) THEN - 17 WHEN + 54 * + - COUNT ( * ) THEN NULL WHEN ( - 75 ) THEN NULL WHEN - 46 + - 95 * + - AVG ( DISTINCT - + ( 69 ) ) - 99 THEN - 44 ELSE - 34 END * + ( ( - COUNT ( * ) ) * 97 ) AS col1
----
3298

query I rowsort
SELECT ( 33 ) + - CASE - 91 WHEN + + 17 THEN - 66 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8385
SELECT COALESCE ( - 67, - - 94, - + 41 ) + + 20 DIV - + 96 + - MIN( + - ( 10 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-8385
SELECT COALESCE ( - 67, - - 94, - + 41 ) + + 20 / - + 96 + - MIN ( + - ( 10 ) )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT 94 * + CAST( + + 49 AS SIGNED ) AS col0
----
4606

skipif mysql # not compatible
query I rowsort label-8386
SELECT 94 * + CAST ( + + 49 AS INTEGER ) AS col0
----
4606

query I rowsort
SELECT ( + 58 ) + - - 9 AS col1
----
67

query I rowsort
SELECT ALL 92 * 63 col2
----
5796

query I rowsort
SELECT 99 + - 65 + - 55
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT SUM( + + 12 ) * 48 + + - NULLIF ( + - 55, + MIN( + 79 ) ) + + 7 * - 34 col1
----
393

skipif mysql # not compatible
query I rowsort label-8390
SELECT SUM ( + + 12 ) * 48 + + - NULLIF ( + - 55, + MIN ( + 79 ) ) + + 7 * - 34 col1
----
393

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT 9 + + COUNT( * ) + - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8391
SELECT 9 + + COUNT ( * ) + - COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - 17 + - CASE 97 WHEN - MIN( DISTINCT 22 ) THEN - - 63 + + 56 END / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT - 17 + - CASE 97 WHEN - MIN ( DISTINCT 22 ) THEN - - 63 + + 56 END / 96
----
NULL

query I rowsort
SELECT 77 + + 99 AS col2
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8394
SELECT 23 + - 80 AS col1, COUNT( * ) DIV + + 71 AS col1
----
-57
0

skipif mysql # not compatible
query II rowsort label-8394
SELECT 23 + - 80 AS col1, COUNT ( * ) / + + 71 AS col1
----
-57
0

query I rowsort
SELECT ALL + - 10 + 28
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT + 30 + SUM( + - 87 ) * 79 + 4 AS col2
----
-6839

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + 30 + SUM ( + - 87 ) * 79 + 4 AS col2
----
-6839

query I rowsort
SELECT ALL - 71 + + 65 + + + 56
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT COUNT( * ) + + - 36 + + 82 * + 23 AS col1
----
1851

skipif mysql # not compatible
query I rowsort label-8398
SELECT COUNT ( * ) + + - 36 + + 82 * + 23 AS col1
----
1851

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT + COUNT( * ) * - COALESCE ( + 94, 35 + COUNT( * ) + 30 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8399
SELECT + COUNT ( * ) * - COALESCE ( + 94, 35 + COUNT ( * ) + 30 ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT CAST( + COUNT( * ) AS SIGNED ) + + 50 col1
----
51

skipif mysql # not compatible
query I rowsort label-8400
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + 50 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL - - MAX( ALL - 98 ) * + 95 * + - 13 * - + 27 + 18 + + COALESCE ( 14, 0 ) * + - 2 + COUNT( * )
----
-3267819

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - - MAX ( ALL - 98 ) * + 95 * + - 13 * - + 27 + 18 + + COALESCE ( 14, 0 ) * + - 2 + COUNT ( * )
----
-3267819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT 72 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT 72 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 15 * 40 * + 33 AS col2
----
19800

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT - 2 * - + 52 + + CASE 74 WHEN - - SUM( 47 ) THEN NULL WHEN + COUNT( * ) THEN + COUNT( * ) ELSE NULL END + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT - 2 * - + 52 + + CASE 74 WHEN - - SUM ( 47 ) THEN NULL WHEN + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END + + 96
----
NULL

query I rowsort
SELECT ( + 8 ) col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL - NULLIF ( + 79, - - COUNT( * ) - - 71 )
----
-79

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - NULLIF ( + 79, - - COUNT ( * ) - - 71 )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8407
SELECT COALESCE ( - 41, - 13, + 25 * + + COUNT( * ) * - 97 ) * - 46 * 11 * 90 AS col2, + 24 - - 12 * + 39
----
1867140
492

skipif mysql # not compatible
query II rowsort label-8407
SELECT COALESCE ( - 41, - 13, + 25 * + + COUNT ( * ) * - 97 ) * - 46 * 11 * 90 AS col2, + 24 - - 12 * + 39
----
1867140
492

query I rowsort
SELECT ALL 88 * - 48
----
-4224

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT 56 + 33 DIV 31 + + 30 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8409
SELECT 56 + 33 / 31 + + 30 AS col2
----
87

query I rowsort
SELECT DISTINCT + 97 * + + 80 - + + 19 AS col2
----
7741

onlyif mysql # aggregate syntax: 
query II rowsort label-8411
SELECT SUM( + 43 ) + + 70 + + + 6, 65 AS col1
----
119
65

skipif mysql # not compatible
query II rowsort label-8411
SELECT SUM ( + 43 ) + + 70 + + + 6, 65 AS col1
----
119
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8412
SELECT + COUNT( * ) AS col2, 2
----
1
2

skipif mysql # not compatible
query II rowsort label-8412
SELECT + COUNT ( * ) AS col2, 2
----
1
2

query I rowsort
SELECT 49 * - 27 col1
----
-1323

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT SUM( ALL + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8414
SELECT SUM ( ALL + 44 )
----
44

query I rowsort
SELECT ALL + 70 * + + 97 AS col1
----
6790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8416
SELECT + MAX( - CAST( ( + 16 ) AS SIGNED ) ) + - COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-8416
SELECT + MAX ( - CAST ( ( + 16 ) AS INTEGER ) ) + - COUNT ( * )
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8417
SELECT + CAST( NULL AS DECIMAL ) / - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT + CAST ( NULL AS REAL ) / - + 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT + 56 + + - 65 + + ( - - 98 ) * + 34 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT + 56 + + - 65 + + ( - - 98 ) * + 34 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT - 9 * ( + 31 ) * 58 DIV + 34 + + - ( + 30 ) AS col0
----
-505

skipif mysql # not compatible
query I rowsort label-8419
SELECT - 9 * ( + 31 ) * 58 / + 34 + + - ( + 30 ) AS col0
----
-505

query I rowsort
SELECT + 14 * 66 AS col2
----
924

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT - + 44 * 27 DIV ( + ( - 53 ) ) + - 33 + - 24 + - - CASE - + 79 WHEN + 23 + + 11 * 77 THEN NULL WHEN + 82 THEN NULL ELSE + + 5 END AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8421
SELECT - + 44 * 27 / ( + ( - 53 ) ) + - 33 + - 24 + - - CASE - + 79 WHEN + 23 + + 11 * 77 THEN NULL WHEN + 82 THEN NULL ELSE + + 5 END AS col2
----
-30

query I rowsort
SELECT DISTINCT + 14 + - 20
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT + - 86 DIV + 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8423
SELECT + - 86 / + 52 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT SUM( DISTINCT + - 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8424
SELECT SUM ( DISTINCT + - 84 ) AS col1
----
-84

query I rowsort
SELECT ALL + + 75 + - - 1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL 34 * + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL 34 * + + COUNT ( * )
----
34

query I rowsort
SELECT ALL ( - 28 ) AS col1
----
-28

query I rowsort
SELECT DISTINCT + 98 + - 17 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL + COUNT( * ) + + 52
----
53

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL + COUNT ( * ) + + 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT + COUNT( * ) - + 39 * - 34 AS col1
----
1327

skipif mysql # not compatible
query I rowsort label-8430
SELECT + COUNT ( * ) - + 39 * - 34 AS col1
----
1327

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT - COUNT( 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8431
SELECT - COUNT ( 47 ) AS col2
----
-1

query II rowsort
SELECT 81, 89 * + - 70 AS col0
----
81
-6230

query I rowsort
SELECT DISTINCT - 38 + + 43 AS col1
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-8434
SELECT 87 AS col2, - 62 DIV + 9 + - + 8 AS col0
----
87
-14

skipif mysql # not compatible
query II rowsort label-8434
SELECT 87 AS col2, - 62 / + 9 + - + 8 AS col0
----
87
-14

query I rowsort
SELECT DISTINCT + - 57 * - 41
----
2337

query I rowsort
SELECT - 94 - + 37
----
-131

query I rowsort
SELECT ALL + + 91 * + 33 + - - 29 + - 30 AS col1
----
3002

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL 24 * - + 67 - + 6 + + 11 * - MAX( 22 ) + SUM( DISTINCT + 45 )
----
-1811

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL 24 * - + 67 - + 6 + + 11 * - MAX ( 22 ) + SUM ( DISTINCT + 45 )
----
-1811

query I rowsort
SELECT - 17 * 51 * - 21 * - 33
----
-600831

query II rowsort
SELECT - 22 * - + 81 col2, - 13 * 15
----
1782
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT - MIN( 47 ) + + 73
----
26

skipif mysql # not compatible
query I rowsort label-8441
SELECT - MIN ( 47 ) + + 73
----
26

query I rowsort
SELECT ALL + NULLIF ( - 75, 45 ) AS col1
----
-75

query I rowsort
SELECT ( + - 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT + COUNT( ALL + 82 )
----
1

skipif mysql # not compatible
query I rowsort label-8444
SELECT + COUNT ( ALL + 82 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT ALL - 12 DIV 5 * - 37 * + 38
----
2812

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL - 12 / 5 * - 37 * + 38
----
2812

query II rowsort
SELECT - 51 + - 30 + ( - + 87 ) AS col1, - ( - 82 ) col2
----
-168
82

query I rowsort
SELECT - ( + 90 ) * - 40 AS col0
----
3600

query I rowsort
SELECT + 33 * - ( - 95 ) AS col2
----
3135

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ALL 54 * 87 + SUM( + + 74 ) - + 36
----
4736

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL 54 * 87 + SUM ( + + 74 ) - + 36
----
4736

query I rowsort
SELECT + ( - + 41 ) AS col2
----
-41

query I rowsort
SELECT ALL ( + + 98 ) * + + 43 + + 13 * + - 26
----
3876

onlyif mysql # aggregate syntax: 
query II rowsort label-8452
SELECT + + 15 + - - 76 AS col1, - ( 47 ) + + COUNT( * ) + - 87 AS col0
----
91
-133

skipif mysql # not compatible
query II rowsort label-8452
SELECT + + 15 + - - 76 AS col1, - ( 47 ) + + COUNT ( * ) + - 87 AS col0
----
91
-133

query I rowsort
SELECT + 35 - - 68
----
103

query I rowsort
SELECT DISTINCT - 2 + + - 58 + 49 + - + 74 + + 47 * - - 72 * + - ( 83 ) col2
----
-280957

onlyif mysql # aggregate syntax: 
query II rowsort label-8455
SELECT - + SUM( + 1 ), - 45 * 55 col2
----
-1
-2475

skipif mysql # not compatible
query II rowsort label-8455
SELECT - + SUM ( + 1 ), - 45 * 55 col2
----
-1
-2475

query I rowsort
SELECT ALL + 69 + + 51 + 93 * + - 85 + 95
----
-7690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8457
SELECT + + 64 + MIN( - 74 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8457
SELECT + + 64 + MIN ( - 74 ) + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 58 * - 59 AS col0
----
-3422

query I rowsort
SELECT + 89 + + 99
----
188

query I rowsort
SELECT ALL + 19 * + 62 AS col2
----
1178

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + + 14 + + CASE + + AVG ( ALL - - 35 ) WHEN 11 * - 10 THEN + COUNT( * ) ELSE 38 END col2
----
52

skipif mysql # not compatible
query I rowsort label-8461
SELECT + + 14 + + CASE + + AVG ( ALL - - 35 ) WHEN 11 * - 10 THEN + COUNT ( * ) ELSE 38 END col2
----
52

query I rowsort
SELECT ALL + 8 - + 13 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + 51 * - - 43 * - ( - 38 ) + + COUNT( * ) AS col2
----
83335

skipif mysql # not compatible
query I rowsort label-8463
SELECT + 51 * - - 43 * - ( - 38 ) + + COUNT ( * ) AS col2
----
83335

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT MAX( - - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-8464
SELECT MAX ( - - 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL + + 55 - NULLIF ( + COUNT( * ), - AVG ( ALL 10 ) + 32 ) + 94
----
148

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL + + 55 - NULLIF ( + COUNT ( * ), - AVG ( ALL 10 ) + 32 ) + 94
----
148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8466
SELECT + 78 + - SUM( + 48 ) - - + 59 DIV - 43 col1
----
29

skipif mysql # not compatible
query I rowsort label-8466
SELECT + 78 + - SUM ( + 48 ) - - + 59 / - 43 col1
----
29

query I rowsort
SELECT + NULLIF ( - 75, - 16 * - + 82 * 54 / - + 20 ) AS col2
----
-75

query I rowsort
SELECT + + 62 * - 77
----
-4774

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8469
SELECT - 97 AS col2, + 10 * - NULLIF ( CAST( NULL AS DECIMAL ), + - 29 + - CAST( + 30 AS SIGNED ) + + 58 + 83 * - 42 * - CAST( - 62 AS SIGNED ) )
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-8469
SELECT - 97 AS col2, + 10 * - NULLIF ( CAST ( NULL AS REAL ), + - 29 + - CAST ( + 30 AS INTEGER ) + + 58 + 83 * - 42 * - CAST ( - 62 AS INTEGER ) )
----
-97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT - COUNT( * ) + CAST( 52 AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8470
SELECT - COUNT ( * ) + CAST ( 52 AS INTEGER ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL NULLIF ( + COUNT( * ), - MAX( ALL + - 33 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL NULLIF ( + COUNT ( * ), - MAX ( ALL + - 33 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT NULLIF ( - 89, 79 * - 19 ) AS col0
----
-89

query I rowsort
SELECT + 1 * + 97 + + 97
----
194

query II rowsort
SELECT + 62 AS col0, 20
----
62
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8475
SELECT ALL - COALESCE ( - COUNT( * ), + 53 + - 1 DIV 9 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - COALESCE ( - COUNT ( * ), + 53 + - 1 / 9 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL - 16 * + MIN( + 88 )
----
-1408

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL - 16 * + MIN ( + 88 )
----
-1408

query I rowsort
SELECT 84 * + 43
----
3612

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL 69 * COUNT( * ) * + 66 AS col1
----
4554

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL 69 * COUNT ( * ) * + 66 AS col1
----
4554

query I rowsort
SELECT 90 + - CASE - + 28 WHEN + - ( + - 64 ) / 65 / - 59 THEN 63 * - + 92 WHEN - - 82 THEN NULL END * - - 23 + - 69 AS col1
----
NULL

query III rowsort
SELECT + 73 AS col1, + 63 + - 12 AS col1, - 85 col2
----
73
51
-85

query I rowsort
SELECT ALL + 71 + - 45 + - 42 + - 59 AS col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT 74 DIV + ( NULLIF ( 82, + 73 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8482
SELECT 74 / + ( NULLIF ( 82, + 73 ) )
----
0

query I rowsort
SELECT 80 * + 91 AS col1
----
7280

query II rowsort
SELECT 3 AS col0, - 8 AS col2
----
3
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL - COUNT( DISTINCT 25 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL - COUNT ( DISTINCT 25 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8486
SELECT 99 DIV - CAST( - 8 AS SIGNED ) AS col2, - 79
----
12
-79

skipif mysql # not compatible
query II rowsort label-8486
SELECT 99 / - CAST ( - 8 AS INTEGER ) AS col2, - 79
----
12
-79

query I rowsort
SELECT DISTINCT + 54 + + - 52 col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT + 94, + COALESCE ( - MAX( DISTINCT + 68 ), + 68 ) AS col2
----
94
-68

skipif mysql # not compatible
query II rowsort label-8488
SELECT + 94, + COALESCE ( - MAX ( DISTINCT + 68 ), + 68 ) AS col2
----
94
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL + ( 50 ) + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + ( 50 ) + COUNT ( * ) AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8490
SELECT ALL - + ( - CAST( 80 AS SIGNED ) ) DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL - + ( - CAST ( 80 AS INTEGER ) ) / 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8491
SELECT 52 DIV 86 * - + COALESCE ( + + 98, 20, + COUNT( * ) ) + + COUNT( * ) * + + 33
----
33

skipif mysql # not compatible
query I rowsort label-8491
SELECT 52 / 86 * - + COALESCE ( + + 98, 20, + COUNT ( * ) ) + + COUNT ( * ) * + + 33
----
33

query I rowsort
SELECT DISTINCT + - 54 + + - 41 + + + NULLIF ( - - 41, - 87 * + 41 * + AVG ( ALL + 2 ) )
----
-54

query I rowsort
SELECT ALL - - 91 + + 10
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT - + CAST( - 18 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8494
SELECT - + CAST ( - 18 AS INTEGER ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - NULLIF ( + COUNT( - + ( 1 ) ), - - MIN( - 38 ) + + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8495
SELECT - NULLIF ( + COUNT ( - + ( 1 ) ), - - MIN ( - 38 ) + + 1 )
----
-1

query II rowsort
SELECT + 64 AS col0, 75 AS col2
----
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - 99 * COUNT( * ) + + 94 + + 42 * - 98 - + 58 * + 85 + - 64 + + 21
----
-9094

skipif mysql # not compatible
query I rowsort label-8497
SELECT - 99 * COUNT ( * ) + + 94 + + 42 * - 98 - + 58 * + 85 + - 64 + + 21
----
-9094

onlyif mysql # aggregate syntax: 
query II rowsort label-8498
SELECT DISTINCT COUNT( * ) col1, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-8498
SELECT DISTINCT COUNT ( * ) col1, 33
----
1
33

query I rowsort
SELECT DISTINCT - + 49 * + 99 AS col2
----
-4851

query I rowsort
SELECT ALL 79 - - 39
----
118

query I rowsort
SELECT 1 * 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT 49 + CASE - + COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE + - 74 END AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-8502
SELECT 49 + CASE - + COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE + - 74 END AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8503
SELECT + 85 * - COALESCE ( 9, COUNT( * ) + - CAST( 37 AS SIGNED ) ) - COUNT( * ) DIV - 38 col0
----
-765

skipif mysql # not compatible
query I rowsort label-8503
SELECT + 85 * - COALESCE ( 9, COUNT ( * ) + - CAST ( 37 AS INTEGER ) ) - COUNT ( * ) / - 38 col0
----
-765

query II rowsort
SELECT - 5 AS col0, - NULLIF ( - 4, + + 23 )
----
-5
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT 58 + - - 44 DIV + 86
----
58

skipif mysql # not compatible
query I rowsort label-8505
SELECT 58 + - - 44 / + 86
----
58

query I rowsort
SELECT 68 + - 2
----
66

query II rowsort
SELECT ALL 4, + 4 AS col1
----
4
4

query I rowsort
SELECT DISTINCT 34 * 20 AS col1
----
680

query II rowsort
SELECT - 60 AS col1, + 20 AS col1
----
-60
20

query I rowsort
SELECT ALL 69 * - CASE - 32 WHEN - AVG ( - 10 ) * - 98 THEN + - 19 END
----
NULL

query I rowsort
SELECT DISTINCT 28 + + 9
----
37

query I rowsort
SELECT 64 * - - 47
----
3008

query I rowsort
SELECT 0 * + - 15 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT ALL 63 + - - CAST( + 16 AS SIGNED ) + + CASE - + 25 WHEN - - 3 THEN - 15 - + + 15 * 23 * + MAX( - 70 ) + + - 39 + - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL 63 + - - CAST ( + 16 AS INTEGER ) + + CASE - + 25 WHEN - - 3 THEN - 15 - + + 15 * 23 * + MAX ( - 70 ) + + - 39 + - 69 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT MAX( ALL - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8515
SELECT MAX ( ALL - 4 ) AS col0
----
-4

query I rowsort
SELECT ALL 15 + - NULLIF ( 44, + 82 * - 27 ) AS col0
----
-29

query I rowsort
SELECT 90 * 57 * - - 81 * + 98 AS col2
----
40721940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8518
SELECT 25 * 25 DIV + 4 * COUNT( * ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-8518
SELECT 25 * 25 / + 4 * COUNT ( * ) AS col1
----
156

query I rowsort
SELECT 15 - - - 32 * - 28
----
911

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL - MIN( + - 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL - MIN ( + - 51 ) AS col1
----
51

query I rowsort
SELECT DISTINCT 14 + - 27 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT NULLIF ( - 89, - NULLIF ( 20, - - ( - + 81 ) ) * - 5 * - 36 * ( + + 36 ) + 36 + 67 + - - 21 ) * 57 / - - 69 * COUNT( * ) * - CASE 9 WHEN + CAST( 76 AS SIGNED ) + - - 27 + COUNT( * ) THEN + 99 END / + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT NULLIF ( - 89, - NULLIF ( 20, - - ( - + 81 ) ) * - 5 * - 36 * ( + + 36 ) + 36 + 67 + - - 21 ) * 57 / - - 69 * COUNT ( * ) * - CASE 9 WHEN + CAST ( 76 AS INTEGER ) + - - 27 + COUNT ( * ) THEN + 99 END / + 49 AS col0
----
NULL

query I rowsort
SELECT + 61 + + 19
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT ALL + 2 + COALESCE ( + + COUNT( * ), - + COALESCE ( + 59, + COUNT( * ) ) ) * + CAST( 23 AS SIGNED ) * CAST( 12 AS SIGNED )
----
278

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL + 2 + COALESCE ( + + COUNT ( * ), - + COALESCE ( + 59, + COUNT ( * ) ) ) * + CAST ( 23 AS INTEGER ) * CAST ( 12 AS INTEGER )
----
278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT + CAST( - 41 AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8525
SELECT + CAST ( - 41 AS INTEGER ) AS col0
----
-41

query II rowsort
SELECT + + 59 AS col0, - 48
----
59
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8527
SELECT - CASE + ( - CASE - 67 WHEN + + CAST( - + 16 AS SIGNED ) * + - 1 THEN - - CASE + 18 WHEN + 9 + - 89 THEN - - COUNT( * ) WHEN 14 * - 53 THEN - 99 * + 81 * ( 98 ) + - - 92 + - + 53 + - 79 * + ( 73 ) WHEN 47 - - MAX( 81 + 6 * - 74 ) THEN - 77 END - 59 END ) WHEN - ( 18 ) THEN ( CAST( COUNT( * ) AS SIGNED ) ) + COUNT( * ) * + NULLIF ( COUNT( 52 ) / + 48 + + 98, ( + 54 ) ) END * - CAST( NULL AS DECIMAL ) + COUNT( * ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT - CASE + ( - CASE - 67 WHEN + + CAST ( - + 16 AS INTEGER ) * + - 1 THEN - - CASE + 18 WHEN + 9 + - 89 THEN - - COUNT ( * ) WHEN 14 * - 53 THEN - 99 * + 81 * ( 98 ) + - - 92 + - + 53 + - 79 * + ( 73 ) WHEN 47 - - MAX ( 81 + 6 * - 74 ) THEN - 77 END - 59 END ) WHEN - ( 18 ) THEN ( CAST ( COUNT ( * ) AS INTEGER ) ) + COUNT ( * ) * + NULLIF ( COUNT ( 52 ) / + 48 + + 98, ( + 54 ) ) END * - CAST ( NULL AS REAL ) + COUNT ( * ) * - 40
----
NULL

query II rowsort
SELECT ALL - 5 col0, - NULLIF ( - 64, + 16 )
----
-5
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL - SUM( ALL - - CASE WHEN + 47 IS NOT NULL THEN 1 END ) - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL - SUM ( ALL - - CASE WHEN + 47 IS NOT NULL THEN 1 END ) - COUNT ( * ) AS col1
----
-2

query II rowsort
SELECT - 93 AS col0, NULLIF ( 50, ( + 53 ) + 24 * - 26 ) + + 0
----
-93
50

query I rowsort
SELECT 2 * + + 84 AS col0
----
168

query I rowsort
SELECT + 90 * - 40 * + 47 AS col0
----
-169200

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT ALL + - 84 * - 99 * - + SUM( ALL + 66 )
----
-548856

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL + - 84 * - 99 * - + SUM ( ALL + 66 )
----
-548856

query I rowsort
SELECT - CASE 62 WHEN - 68 THEN NULL WHEN - 6 + - + 60 THEN 36 END / + 42 - + + ( 71 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8535
SELECT 92 DIV - - 85 col0, 96
----
1
96

skipif mysql # not compatible
query II rowsort label-8535
SELECT 92 / - - 85 col0, 96
----
1
96

query I rowsort
SELECT ALL - + 71 * + + NULLIF ( + - 55, 34 ) AS col2
----
3905

query I rowsort
SELECT - 26 + - 60
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT - 7 * MAX( DISTINCT - 2 ) + COUNT( + 14 )
----
15

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT - 7 * MAX ( DISTINCT - 2 ) + COUNT ( + 14 )
----
15

query I rowsort
SELECT ALL + 43 * + - 59 * - + 19
----
48203

query I rowsort
SELECT ALL - 89 + - - 46
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8541
SELECT ALL 75 + - COUNT( * ) - - + COUNT( * ) * + NULLIF ( + + 14, + + 63 / + + CAST( NULL AS SIGNED ) + - 48 + + COUNT( * ) * - - 3 + - 23 )
----
88

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL 75 + - COUNT ( * ) - - + COUNT ( * ) * + NULLIF ( + + 14, + + 63 / + + CAST ( NULL AS INTEGER ) + - 48 + + COUNT ( * ) * - - 3 + - 23 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT + 57 * NULLIF ( NULLIF ( ( 32 ), + + 13 * - 20 * + ( + 2 ) + + 2 / - ( - + 78 ) + 65 ), - 18 ) * 15 + - COUNT( * ) * - 50 * MIN( + + 5 ) AS col0
----
27610

skipif mysql # not compatible
query I rowsort label-8542
SELECT + 57 * NULLIF ( NULLIF ( ( 32 ), + + 13 * - 20 * + ( + 2 ) + + 2 / - ( - + 78 ) + 65 ), - 18 ) * 15 + - COUNT ( * ) * - 50 * MIN ( + + 5 ) AS col0
----
27610

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ALL COUNT( * ) * - COUNT( * ) * + 18 * + COALESCE ( 61, + 27, + 62 - - MIN( ALL + + ( 25 ) ), 98 )
----
-1098

skipif mysql # not compatible
query I rowsort label-8543
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + 18 * + COALESCE ( 61, + 27, + 62 - - MIN ( ALL + + ( 25 ) ), 98 )
----
-1098

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + 55 * 54 * + + 73 + - NULLIF ( - 89, + 30 + - COUNT( * ) * - + 48 + - 55 )
----
216899

skipif mysql # not compatible
query I rowsort label-8544
SELECT + 55 * 54 * + + 73 + - NULLIF ( - 89, + 30 + - COUNT ( * ) * - + 48 + - 55 )
----
216899

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8545
SELECT DISTINCT + 99 DIV + 94, CAST( ( - 37 ) AS SIGNED ) + + 50 AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-8545
SELECT DISTINCT + 99 / + 94, CAST ( ( - 37 ) AS INTEGER ) + + 50 AS col1
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL ( - 92 ) * - 10 * - COUNT( * )
----
-920

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL ( - 92 ) * - 10 * - COUNT ( * )
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT CASE - 17 WHEN + - 22 / COUNT( * ) THEN + - 6 * COUNT( * ) WHEN 34 * + + 36 THEN + 56 / - - ( + - 85 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT CASE - 17 WHEN + - 22 / COUNT ( * ) THEN + - 6 * COUNT ( * ) WHEN 34 * + + 36 THEN + 56 / - - ( + - 85 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8548
SELECT ALL + SUM( DISTINCT - 64 ) * + COUNT( DISTINCT - + CAST( + + 55 AS SIGNED ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL + SUM ( DISTINCT - 64 ) * + COUNT ( DISTINCT - + CAST ( + + 55 AS INTEGER ) ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT CASE - ( COUNT( * ) ) WHEN + 83 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT CASE - ( COUNT ( * ) ) WHEN + 83 THEN - + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT DISTINCT COALESCE ( + CAST( NULL AS SIGNED ), 52 + + 21, 10 * NULLIF ( 26, + + CAST( + 28 AS SIGNED ) / - NULLIF ( + ( - COUNT( * ) ), - + 83 ) ) + COUNT( * ) * - 49 ) * 37 AS col2
----
2701

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT COALESCE ( + CAST ( NULL AS INTEGER ), 52 + + 21, 10 * NULLIF ( 26, + + CAST ( + 28 AS INTEGER ) / - NULLIF ( + ( - COUNT ( * ) ), - + 83 ) ) + COUNT ( * ) * - 49 ) * 37 AS col2
----
2701

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT + COUNT( - ( 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8551
SELECT + COUNT ( - ( 47 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT - COUNT( * ) * - 33 + + 30
----
63

skipif mysql # not compatible
query I rowsort label-8552
SELECT - COUNT ( * ) * - 33 + + 30
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8553
SELECT + MIN( 3 ) * + ( - 78 ) - - 84 * 47 DIV + - 35 col2
----
-346

skipif mysql # not compatible
query I rowsort label-8553
SELECT + MIN ( 3 ) * + ( - 78 ) - - 84 * 47 / + - 35 col2
----
-346

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + - COUNT( + - 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-8554
SELECT + - COUNT ( + - 60 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8555
SELECT ALL + - COUNT( * ) * - 48 DIV - + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + - COUNT ( * ) * - 48 / - + COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT ALL + + NULLIF ( - 59, ( - - 56 ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-8557
SELECT COUNT( 66 ), COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-8557
SELECT COUNT ( 66 ), COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT ALL + - 48 * + CAST( NULL AS SIGNED ) * + 17 * 47 * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL + - 48 * + CAST ( NULL AS INTEGER ) * + 17 * 47 * + 73
----
NULL

query I rowsort
SELECT DISTINCT + 97 * + 42 - - 69 AS col0
----
4143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8560
SELECT ALL - 5 + + + MIN( DISTINCT - 94 ) + 72 * + 27 + + 60 * - 12 AS col0, CAST( NULL AS SIGNED ) * - NULLIF ( 4, - + COALESCE ( + + ( + 54 ), 39 ) ) * + 79 + 58 + - + 68 + COUNT( * ) + - 15 * 77 + - - 66 * + + 6
----
1125
NULL

skipif mysql # not compatible
query II rowsort label-8560
SELECT ALL - 5 + + + MIN ( DISTINCT - 94 ) + 72 * + 27 + + 60 * - 12 AS col0, CAST ( NULL AS INTEGER ) * - NULLIF ( 4, - + COALESCE ( + + ( + 54 ), 39 ) ) * + 79 + 58 + - + 68 + COUNT ( * ) + - 15 * 77 + - - 66 * + + 6
----
1125
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8561
SELECT ALL CASE 16 WHEN + 26 THEN NULL WHEN - 83 * 89 / - ( + + 41 ) THEN NULL WHEN - - 79 + - - 25 * - 0 * 87 * - 25 THEN + - 21 ELSE COUNT( DISTINCT COALESCE ( 73, - 60 ) ) * 2 + - 71 + - CAST( - 62 AS SIGNED ) END
----
-7

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL CASE 16 WHEN + 26 THEN NULL WHEN - 83 * 89 / - ( + + 41 ) THEN NULL WHEN - - 79 + - - 25 * - 0 * 87 * - 25 THEN + - 21 ELSE COUNT ( DISTINCT COALESCE ( 73, - 60 ) ) * 2 + - 71 + - CAST ( - 62 AS INTEGER ) END
----
-7

query I rowsort
SELECT DISTINCT ( 69 ) * - - 14 * 41 + 77 + + + 96
----
39779

query I rowsort
SELECT DISTINCT 89 + + - 4
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8564
SELECT ALL + 14 DIV - + COUNT( * ) AS col1, 74 + - + MAX( ALL - 61 )
----
-14
135

skipif mysql # not compatible
query II rowsort label-8564
SELECT ALL + 14 / - + COUNT ( * ) AS col1, 74 + - + MAX ( ALL - 61 )
----
-14
135

onlyif mysql # aggregate syntax: 
query II rowsort label-8565
SELECT - - MAX( 93 ) AS col0, 56
----
93
56

skipif mysql # not compatible
query II rowsort label-8565
SELECT - - MAX ( 93 ) AS col0, 56
----
93
56

query I rowsort
SELECT - ( 73 ) col2
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8567
SELECT ALL 52 + + 2 + + + COUNT( * ) - + COUNT( * ) * + 88 DIV - - 63 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL 52 + + 2 + + + COUNT ( * ) - + COUNT ( * ) * + 88 / - - 63 AS col0
----
54

query I rowsort
SELECT DISTINCT 11 + + - 59 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL - COUNT( * ) + - 12
----
-13

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - COUNT ( * ) + - 12
----
-13

query I rowsort
SELECT ALL - 57 + 88 + - 0 col1
----
31

query I rowsort
SELECT - 40 * 43 * + 68
----
-116960

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT ALL - 84 DIV + 74
----
-1

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL - 84 / + 74
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8573
SELECT - 58 DIV SUM( - + 30 ) AS col2, - 85 AS col0
----
1
-85

skipif mysql # not compatible
query II rowsort label-8573
SELECT - 58 / SUM ( - + 30 ) AS col2, - 85 AS col0
----
1
-85

query I rowsort
SELECT - 4 + + - 35 AS col1
----
-39

query II rowsort
SELECT - 16 AS col2, - 21
----
-16
-21

query I rowsort
SELECT - ( NULLIF ( + 72, + - 40 ) ) + + - 68 * 79
----
-5444

onlyif mysql # aggregate syntax: 
query II rowsort label-8577
SELECT ALL + 21 + + ( + 86 ) AS col0, + ( + COALESCE ( + - 5, - MIN( + 8 ) * + COUNT( * ) + + 62 ) ) * 37 - + 33 + 58 AS col1
----
107
-160

skipif mysql # not compatible
query II rowsort label-8577
SELECT ALL + 21 + + ( + 86 ) AS col0, + ( + COALESCE ( + - 5, - MIN ( + 8 ) * + COUNT ( * ) + + 62 ) ) * 37 - + 33 + 58 AS col1
----
107
-160

query I rowsort
SELECT ALL + 12 * + CASE - 25 WHEN + - 96 THEN - 14 * + 20 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8579
SELECT - COUNT( * ), 67 + + + 91 * 5 AS col0
----
-1
522

skipif mysql # not compatible
query II rowsort label-8579
SELECT - COUNT ( * ), 67 + + + 91 * 5 AS col0
----
-1
522

query I rowsort
SELECT ALL ( + ( 79 ) ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + MAX( ALL - 76 ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-8581
SELECT + MAX ( ALL - 76 ) col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL + MAX( - - ( + + 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + MAX ( - - ( + + 3 ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT CAST( 95 AS SIGNED ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8583
SELECT CAST ( 95 AS INTEGER ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT - 12 * + COUNT( ALL + 93 ) + - 5 + + + 81 - - 44 * - - 69 + + COUNT( * ) * + 82
----
3182

skipif mysql # not compatible
query I rowsort label-8584
SELECT - 12 * + COUNT ( ALL + 93 ) + - 5 + + + 81 - - 44 * - - 69 + + COUNT ( * ) * + 82
----
3182

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT - 14 * - MIN( ALL - 68 )
----
-952

skipif mysql # not compatible
query I rowsort label-8585
SELECT - 14 * - MIN ( ALL - 68 )
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT NULLIF ( + NULLIF ( - + 71, - 16 ), - COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-8586
SELECT NULLIF ( + NULLIF ( - + 71, - 16 ), - COUNT ( * ) )
----
-71

query I rowsort
SELECT - + 65 * - 36 * - + 73 + - 40 AS col2
----
-170860

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT DISTINCT + MIN( DISTINCT 95 )
----
95

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT + MIN ( DISTINCT 95 )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8589
SELECT ALL - COUNT( * ) DIV - ( - 61 ) * + - CASE + 38 WHEN - - 27 * + - 31 * + COUNT( * ) + - 85 DIV + COUNT( * ) - - 56 THEN 65 * + 29 ELSE + ( 34 ) END
----
0

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - COUNT ( * ) / - ( - 61 ) * + - CASE + 38 WHEN - - 27 * + - 31 * + COUNT ( * ) + - 85 / + COUNT ( * ) - - 56 THEN 65 * + 29 ELSE + ( 34 ) END
----
0

query I rowsort
SELECT ALL - 61 * 54
----
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT - - ( + - COALESCE ( + COUNT( * ), - 13 + + 26 ) ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - - ( + - COALESCE ( + COUNT ( * ), - 13 + + 26 ) ) * - 26
----
26

query I rowsort
SELECT DISTINCT + - CASE + - 21 WHEN + - 10 THEN - - 9 ELSE - 1 * + + 7 * 49 + - 47 + - 3 + - + 98 END AS col0
----
491

query I rowsort
SELECT ALL 89 * + 55
----
4895

onlyif mysql # DIV for integer division: 
query I rowsort label-8594
SELECT - - ( ( 62 ) ) + 40 DIV - NULLIF ( 30, + + 14 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8594
SELECT - - ( ( 62 ) ) + 40 / - NULLIF ( 30, + + 14 ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT + 72 DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8595
SELECT + 72 / 84 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8596
SELECT + 42 DIV 65 DIV + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT + 42 / 65 / + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT ALL + 9 + + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL + 9 + + + COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT + CAST( ( - + COALESCE ( - 88, - 17 / - ( CASE WHEN NULL BETWEEN - COUNT( * ) AND - 47 THEN NULL WHEN NOT COUNT( * ) * - COUNT( 8 ) IS NULL THEN + 63 + + - 86 * - 4 WHEN NOT ( NULL ) BETWEEN ( NULL ) AND 68 THEN NULL ELSE + - 45 END ) + + 11 ) ) AS SIGNED ) * - + 53 AS col2
----
-4664

skipif mysql # not compatible
query I rowsort label-8598
SELECT + CAST ( ( - + COALESCE ( - 88, - 17 / - ( CASE WHEN NULL BETWEEN - COUNT ( * ) AND - 47 THEN NULL WHEN NOT COUNT ( * ) * - COUNT ( 8 ) IS NULL THEN + 63 + + - 86 * - 4 WHEN NOT ( NULL ) BETWEEN ( NULL ) AND 68 THEN NULL ELSE + - 45 END ) + + 11 ) ) AS INTEGER ) * - + 53 AS col2
----
-4664

query II rowsort
SELECT DISTINCT - 85 * - 66 + - ( - 20 ), 63 AS col2
----
5630
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL 92 + + + CAST( + + COUNT( 77 ) AS SIGNED ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL 92 + + + CAST ( + + COUNT ( 77 ) AS INTEGER ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT - COUNT( * ) + - 97 * - - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT - COUNT ( * ) + - 97 * - - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8602
SELECT ALL - 25 + 46 - COALESCE ( + + COUNT( * ), - ( + 93 ) + + 85, ( + 79 ) * - - 23 DIV + 53 DIV 7 + + - COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL - 25 + 46 - COALESCE ( + + COUNT ( * ), - ( + 93 ) + + 85, ( + 79 ) * - - 23 / + 53 / 7 + + - COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT COUNT( * ) * - + 59 col1
----
-59

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT COUNT ( * ) * - + 59 col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT ( + + COUNT( * ) ) DIV + - 4
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT ( + + COUNT ( * ) ) / + - 4
----
0

query I rowsort
SELECT 3 + 71 + - 63 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL 99 + 38 + + 51 + + 9 + COUNT( * ) AS col1
----
198

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL 99 + 38 + + 51 + + 9 + COUNT ( * ) AS col1
----
198

query I rowsort
SELECT 93 * - + 94 col2
----
-8742

query I rowsort
SELECT DISTINCT 4 * - 64 AS col2
----
-256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8609
SELECT DISTINCT - 35 DIV + - SUM( ALL - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT - 35 / + - SUM ( ALL - 74 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8610
SELECT COUNT( * ) DIV 26 AS col2, - 90 * + 91 AS col2
----
0
-8190

skipif mysql # not compatible
query II rowsort label-8610
SELECT COUNT ( * ) / 26 AS col2, - 90 * + 91 AS col2
----
0
-8190

onlyif mysql # aggregate syntax: 
query II rowsort label-8611
SELECT ALL - 18 * - COUNT( * ) AS col1, 28 AS col1
----
18
28

skipif mysql # not compatible
query II rowsort label-8611
SELECT ALL - 18 * - COUNT ( * ) AS col1, 28 AS col1
----
18
28

query II rowsort
SELECT 15 + 49, + 58 + + - 16 * + 6 col2
----
64
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT 18 - + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8613
SELECT 18 - + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT COUNT( DISTINCT + 75 ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8614
SELECT COUNT ( DISTINCT + 75 ) * COUNT ( * ) AS col2
----
1

query II rowsort
SELECT - 8 * 16 + - - ( 24 ) AS col0, + 68 - - - 99 * + 76
----
-104
-7456

query I rowsort
SELECT DISTINCT + 46 * 88 AS col1
----
4048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT ALL + + MIN( ALL - + 47 ) * - + CAST( - 68 AS SIGNED )
----
-3196

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL + + MIN ( ALL - + 47 ) * - + CAST ( - 68 AS INTEGER )
----
-3196

query I rowsort
SELECT - 77 * + 10 * - 2
----
1540

onlyif mysql # aggregate syntax: 
query II rowsort label-8619
SELECT DISTINCT - - COUNT( * ) * 44 AS col2, 93 AS col0
----
44
93

skipif mysql # not compatible
query II rowsort label-8619
SELECT DISTINCT - - COUNT ( * ) * 44 AS col2, 93 AS col0
----
44
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ( COUNT( * ) ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8620
SELECT ( COUNT ( * ) ) + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 19 * - 76 + - + 64
----
-1508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT + CAST( - - 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-8622
SELECT + CAST ( - - 86 AS INTEGER ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL + COALESCE ( + + NULLIF ( 91, + - 34 * - + COUNT( * ) + - - ( 68 ) ), COALESCE ( - COUNT( * ), + + 66 * + - ( + 0 ) * - COUNT( * ) - + 8 - 4 + ( + 68 ) ) ) + - ( + 83 )
----
8

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL + COALESCE ( + + NULLIF ( 91, + - 34 * - + COUNT ( * ) + - - ( 68 ) ), COALESCE ( - COUNT ( * ), + + 66 * + - ( + 0 ) * - COUNT ( * ) - + 8 - 4 + ( + 68 ) ) ) + - ( + 83 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL COUNT( * ) * 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL COUNT ( * ) * 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8625
SELECT ALL + 78 + - 81 * 42 * - + 40 + - - 56 col2, CASE + 96 WHEN + + ( MIN( + 99 ) ) * - ( - COUNT( * ) ) * - + 67 * - - 67 THEN NULL ELSE - 7 * - 32 END
----
136214
224

skipif mysql # not compatible
query II rowsort label-8625
SELECT ALL + 78 + - 81 * 42 * - + 40 + - - 56 col2, CASE + 96 WHEN + + ( MIN ( + 99 ) ) * - ( - COUNT ( * ) ) * - + 67 * - - 67 THEN NULL ELSE - 7 * - 32 END
----
136214
224

query I rowsort
SELECT DISTINCT + 56 + + 36 AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT ALL 45 + - + 57 + + 88 + - + 6 DIV - 80 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL 45 + - + 57 + + 88 + - + 6 / - 80 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT 70 * - COUNT( * ) - - + 23 + + - 16 * + 69 + - + 79 AS col2
----
-1230

skipif mysql # not compatible
query I rowsort label-8628
SELECT 70 * - COUNT ( * ) - - + 23 + + - 16 * + 69 + - + 79 AS col2
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT + MAX( - 32 ) * 86 AS col0
----
-2752

skipif mysql # not compatible
query I rowsort label-8629
SELECT + MAX ( - 32 ) * 86 AS col0
----
-2752

query I rowsort
SELECT ALL ( - 16 ) * + + 32
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT COUNT( * ) * - 0 * - 33
----
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT COUNT ( * ) * - 0 * - 33
----
0

query I rowsort
SELECT 83 - + + 97 - 88 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-8633
SELECT DISTINCT - 12 * + MAX( + + 52 ), 6 + COUNT( * ) * - 82 * + 6 col1
----
-624
-486

skipif mysql # not compatible
query II rowsort label-8633
SELECT DISTINCT - 12 * + MAX ( + + 52 ), 6 + COUNT ( * ) * - 82 * + 6 col1
----
-624
-486

query I rowsort
SELECT ALL 63 - - 34 AS col0
----
97

query I rowsort
SELECT 9 * - - 79
----
711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT DISTINCT 86 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT 86 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8637
SELECT COALESCE ( ( 70 ), - 48 - - - 49 DIV - 2 ) - - 96
----
166

skipif mysql # not compatible
query I rowsort label-8637
SELECT COALESCE ( ( 70 ), - 48 - - - 49 / - 2 ) - - 96
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT 92 + 39 + 87 DIV 96 * 83 * 8 * 19
----
131

skipif mysql # not compatible
query I rowsort label-8638
SELECT 92 + 39 + 87 / 96 * 83 * 8 * 19
----
131

query I rowsort
SELECT 99 * - 88
----
-8712

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT DISTINCT 50 * - + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT 50 * - + COUNT ( * )
----
-50

query I rowsort
SELECT ALL 85 * - 61 AS col1
----
-5185

query I rowsort
SELECT 53 * + - 96
----
-5088

query I rowsort
SELECT 24 * 93 AS col1
----
2232

query I rowsort
SELECT DISTINCT 14 * - 99
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL COUNT( * ) * CASE + COUNT( * ) WHEN CASE - 33 WHEN - 46 THEN NULL WHEN + + SUM( + 21 ) * - 63 THEN - - 13 END THEN - + 42 + + 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL COUNT ( * ) * CASE + COUNT ( * ) WHEN CASE - 33 WHEN - 46 THEN NULL WHEN + + SUM ( + 21 ) * - 63 THEN - - 13 END THEN - + 42 + + 5 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT DISTINCT CAST( 3 AS SIGNED ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT CAST ( 3 AS INTEGER ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT ALL - - 17 DIV - - 32 * + 36
----
0

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL - - 17 / - - 32 * + 36
----
0

query I rowsort
SELECT - COALESCE ( 75, + 45, + 9 ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT + CAST( NULL AS SIGNED ) / 38 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT + CAST ( NULL AS INTEGER ) / 38 col1
----
NULL

query I rowsort
SELECT ALL + 35 * + NULLIF ( - 75, + 22 ) + + ( + - 57 )
----
-2682

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT - COUNT( * ) * - 36
----
36

skipif mysql # not compatible
query I rowsort label-8651
SELECT - COUNT ( * ) * - 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT + COUNT( * ) * - - ( 76 ) * 5 - + 55 - + - 94 AS col2
----
419

skipif mysql # not compatible
query I rowsort label-8652
SELECT + COUNT ( * ) * - - ( 76 ) * 5 - + 55 - + - 94 AS col2
----
419

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT + COUNT( ALL + CASE + 89 WHEN - 38 + - 63 THEN NULL ELSE + + 4 END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8653
SELECT + COUNT ( ALL + CASE + 89 WHEN - 38 + - 63 THEN NULL ELSE + + 4 END ) AS col0
----
1

query II rowsort
SELECT + + 28, - 65 col1
----
28
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8655
SELECT DISTINCT - COUNT( * ) * + 1 + 41, 54 DIV 71 AS col0
----
40
0

skipif mysql # not compatible
query II rowsort label-8655
SELECT DISTINCT - COUNT ( * ) * + 1 + 41, 54 / 71 AS col0
----
40
0

query I rowsort
SELECT ALL - - 62 * + 98
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - CASE + 5 WHEN + 35 THEN + 38 ELSE - COUNT( - COALESCE ( - - 40, 39, 74 + - - 92 * - 62 ) ) END * + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8657
SELECT - CASE + 5 WHEN + 35 THEN + 38 ELSE - COUNT ( - COALESCE ( - - 40, 39, 74 + - - 92 * - 62 ) ) END * + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT 83 * - + COUNT( * ) + - 83 + + COUNT( * ) AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT 83 * - + COUNT ( * ) + - 83 + + COUNT ( * ) AS col1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT DISTINCT - 90 * - 13 * - ( COUNT( * ) ) AS col2
----
-1170

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT - 90 * - 13 * - ( COUNT ( * ) ) AS col2
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT DISTINCT + + CASE CASE - + NULLIF ( + 31, 72 ) WHEN - 27 THEN + 93 WHEN + - 12 THEN NULL END WHEN 68 * - 11 THEN 70 * - 34 ELSE + + MAX( + + 49 ) END col0
----
49

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT + + CASE CASE - + NULLIF ( + 31, 72 ) WHEN - 27 THEN + 93 WHEN + - 12 THEN NULL END WHEN 68 * - 11 THEN 70 * - 34 ELSE + + MAX ( + + 49 ) END col0
----
49

query I rowsort
SELECT + + 52 + - 12 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT 46 * + + 4 - CAST( - 11 AS SIGNED ) * + COUNT( * ) * - MIN( DISTINCT + 26 ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-8662
SELECT 46 * + + 4 - CAST ( - 11 AS INTEGER ) * + COUNT ( * ) * - MIN ( DISTINCT + 26 ) AS col1
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8663
SELECT DISTINCT + - MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT + - MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - 66 + + COUNT( DISTINCT + + 44 )
----
-65

skipif mysql # not compatible
query I rowsort label-8664
SELECT - 66 + + COUNT ( DISTINCT + + 44 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8665
SELECT ALL 45 * + + 59 * - 50 * - 78 * - + 58 - + + COUNT( + 69 ) * 15 DIV + - 5 + - 60 * - - 62 * - 47 AS col1
----
-600386157

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL 45 * + + 59 * - 50 * - 78 * - + 58 - + + COUNT ( + 69 ) * 15 / + - 5 + - 60 * - - 62 * - 47 AS col1
----
-600386157

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT - 58 + - 74 * + COUNT( * ) AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-8666
SELECT - 58 + - 74 * + COUNT ( * ) AS col0
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT ALL + 62 DIV - + 36
----
-1

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL + 62 / - + 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT - 8 - 85 + - COUNT( * ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT - 8 - 85 + - COUNT ( * ) col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8669
SELECT ALL + COUNT( ALL - 69 ) DIV - COUNT( * ) * + COUNT( * ) AS col2, + 25 * ( + 57 ) + - 29
----
-1
1396

skipif mysql # not compatible
query II rowsort label-8669
SELECT ALL + COUNT ( ALL - 69 ) / - COUNT ( * ) * + COUNT ( * ) AS col2, + 25 * ( + 57 ) + - 29
----
-1
1396

query I rowsort
SELECT - 51 + 91 AS col1
----
40

query I rowsort
SELECT ALL + 36 * - + 41 AS col2
----
-1476

onlyif mysql # DIV for integer division: 
query I rowsort label-8672
SELECT - ( + 16 ) DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-8672
SELECT - ( + 16 ) / - - 93
----
0

query I rowsort
SELECT + 45 * - + 67
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT DISTINCT ( MIN( DISTINCT - 37 ) ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT ( MIN ( DISTINCT - 37 ) ) AS col2
----
-37

query I rowsort
SELECT - 15 * + 3
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT + 21 * - SUM( + ( + - 79 ) ) * 84 AS col2
----
139356

skipif mysql # not compatible
query I rowsort label-8676
SELECT + 21 * - SUM ( + ( + - 79 ) ) * 84 AS col2
----
139356

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT + MAX( + 90 ) + - 12
----
78

skipif mysql # not compatible
query I rowsort label-8677
SELECT + MAX ( + 90 ) + - 12
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8678
SELECT ALL ( COUNT( * ) ) DIV + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL ( COUNT ( * ) ) / + + COUNT ( * )
----
1

query I rowsort
SELECT - 9 * + - 97 AS col0
----
873

query I rowsort
SELECT + 85 * + - 83
----
-7055

onlyif mysql # aggregate syntax: 
query II rowsort label-8681
SELECT 59 AS col1, COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-8681
SELECT 59 AS col1, COUNT ( * ) AS col0
----
59
1

query I rowsort
SELECT ALL ( 8 ) col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8683
SELECT DISTINCT ( COUNT( * ) ), COUNT( * ) * - 29 col1
----
1
-29

skipif mysql # not compatible
query II rowsort label-8683
SELECT DISTINCT ( COUNT ( * ) ), COUNT ( * ) * - 29 col1
----
1
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8684
SELECT ALL 32 * + 7 / + SUM( - + CAST( NULL AS SIGNED ) ) * 69
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL 32 * + 7 / + SUM ( - + CAST ( NULL AS INTEGER ) ) * 69
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT ALL 84 AS col2, COUNT( * )
----
84
1

skipif mysql # not compatible
query II rowsort label-8685
SELECT ALL 84 AS col2, COUNT ( * )
----
84
1

query I rowsort
SELECT - 98 * + 84
----
-8232

query I rowsort
SELECT + 68 + 80 * - 29 AS col0
----
-2252

query I rowsort
SELECT DISTINCT 37 + + 44 * 5
----
257

query I rowsort
SELECT + - 91 + + 34 + + 51 - - 28
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8690
SELECT + 39 - + + COUNT( * ) + + NULLIF ( + - 45, 87 ) + + - COUNT( - 80 ) - - 7 + + - COUNT( - - 98 ) DIV + 93 * - - 56 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8690
SELECT + 39 - + + COUNT ( * ) + + NULLIF ( + - 45, 87 ) + + - COUNT ( - 80 ) - - 7 + + - COUNT ( - - 98 ) / + 93 * - - 56 AS col1
----
-1

query I rowsort
SELECT ALL 22 * - 32
----
-704

onlyif mysql # DIV for integer division: 
query I rowsort label-8692
SELECT ALL 97 DIV - - 34 + + 58 + - 2 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL 97 / - - 34 + + 58 + - 2 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8693
SELECT DISTINCT + - 40, NULLIF ( - NULLIF ( + CAST( NULL AS SIGNED ), + - 75 ), + COUNT( DISTINCT + 19 ) * + 90 / 98 ) AS col0
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-8693
SELECT DISTINCT + - 40, NULLIF ( - NULLIF ( + CAST ( NULL AS INTEGER ), + - 75 ), + COUNT ( DISTINCT + 19 ) * + 90 / 98 ) AS col0
----
-40
NULL

query I rowsort
SELECT + 84 + 26 AS col0
----
110

query I rowsort
SELECT + - 92 * 33
----
-3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8696
SELECT ALL + 58 / + 57 * 1 / - + 60 / 55 - - + CAST( NULL AS SIGNED ) AS col2, 35 * MAX( NULLIF ( + 67, - - 44 ) )
----
NULL
2345

skipif mysql # not compatible
query II rowsort label-8696
SELECT ALL + 58 / + 57 * 1 / - + 60 / 55 - - + CAST ( NULL AS INTEGER ) AS col2, 35 * MAX ( NULLIF ( + 67, - - 44 ) )
----
NULL
2345

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT + COUNT( 92 ) * 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-8697
SELECT + COUNT ( 92 ) * 78 AS col1
----
78

query I rowsort
SELECT + 55 * 39
----
2145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8699
SELECT + + 15 DIV 74 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8699
SELECT + + 15 / 74 - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT DISTINCT + 4 * - COUNT( * ) + + - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT + 4 * - COUNT ( * ) + + - COUNT ( * ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8701
SELECT + - 79 AS col2, - 70 + - COUNT( * )
----
-79
-71

skipif mysql # not compatible
query II rowsort label-8701
SELECT + - 79 AS col2, - 70 + - COUNT ( * )
----
-79
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8702
SELECT ALL + CAST( + 81 AS SIGNED ), ( - NULLIF ( 79, + 78 ) ) * - 42 AS col0
----
81
3318

skipif mysql # not compatible
query II rowsort label-8702
SELECT ALL + CAST ( + 81 AS INTEGER ), ( - NULLIF ( 79, + 78 ) ) * - 42 AS col0
----
81
3318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT COALESCE ( - CAST( NULL AS SIGNED ), - 19 + NULLIF ( + ( - - NULLIF ( + ( ( - 35 ) ), + 73 ) ), + SUM( + 48 ) ) + 65, - 45 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-8703
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), - 19 + NULLIF ( + ( - - NULLIF ( + ( ( - 35 ) ), + 73 ) ), + SUM ( + 48 ) ) + 65, - 45 ) col2
----
11

query I rowsort
SELECT ALL 40 * + - 75 * + 49
----
-147000

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT + 98 * COALESCE ( - - MIN( ALL + 0 ), - 5 - 8, + 75 - - 8 ) * + 19
----
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT + 98 * COALESCE ( - - MIN ( ALL + 0 ), - 5 - 8, + 75 - - 8 ) * + 19
----
0

query I rowsort
SELECT - 47 * + 99 - + - 92
----
-4561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8707
SELECT - 92 - - CAST( + 39 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-8707
SELECT - 92 - - CAST ( + 39 AS INTEGER )
----
-53

query I rowsort
SELECT - COALESCE ( - 18, + 70 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8709
SELECT ALL + ( + 40 ) DIV + SUM( CAST( - - 17 AS SIGNED ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + ( + 40 ) / + SUM ( CAST ( - - 17 AS INTEGER ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT ALL CASE + ( - - 97 ) WHEN - 12 THEN NULL ELSE - MIN( + 46 ) END
----
-46

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL CASE + ( - - 97 ) WHEN - 12 THEN NULL ELSE - MIN ( + 46 ) END
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8711
SELECT DISTINCT + 14 DIV COUNT( + 56 )
----
14

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + 14 / COUNT ( + 56 )
----
14

query I rowsort
SELECT ALL + 5 + NULLIF ( 13, ( 99 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT - 8 + + SUM( ALL - 88 )
----
-96

skipif mysql # not compatible
query I rowsort label-8713
SELECT - 8 + + SUM ( ALL - 88 )
----
-96

query I rowsort
SELECT + 14 - - 63
----
77

query I rowsort
SELECT ALL - 33 * + ( + 58 ) col1
----
-1914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT + 65 * 50 + CASE - 14 WHEN + 87 * + 92 + - - COUNT( * ) THEN AVG ( ALL 90 ) + + 51 WHEN - + 84 + - ( + COUNT( * ) ) / - 37 + - 93 + - 30 * + ( - 3 ) * 26 + + + 63 + - - ( + 29 ) + + 11 * 54 + - - CAST( COALESCE ( + AVG ( 61 ), + 83, COUNT( * ) + - 61 ) AS SIGNED ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT + 65 * 50 + CASE - 14 WHEN + 87 * + 92 + - - COUNT ( * ) THEN AVG ( ALL 90 ) + + 51 WHEN - + 84 + - ( + COUNT ( * ) ) / - 37 + - 93 + - 30 * + ( - 3 ) * 26 + + + 63 + - - ( + 29 ) + + 11 * 54 + - - CAST ( COALESCE ( + AVG ( 61 ), + 83, COUNT ( * ) + - 61 ) AS INTEGER ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT 88 * - + 63 + 64
----
-5480

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT ALL + 42 + - 3 DIV - + 50 + - + 96
----
-54

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL + 42 + - 3 / - + 50 + - + 96
----
-54

query I rowsort
SELECT 76 * 19
----
1444

query I rowsort
SELECT - CASE 36 WHEN + 31 THEN - 5 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT ( - CAST( NULL AS SIGNED ) ) / - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT ( - CAST ( NULL AS INTEGER ) ) / - 68 AS col2
----
NULL

query I rowsort
SELECT + 23 + 58 + + 18 * - 54
----
-891

query I rowsort
SELECT - - 65 AS col2
----
65

query I rowsort
SELECT ALL - - 91 + - 20 * 33 * - 90 + + - 43 AS col1
----
59448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) * + - 57 + 96 + + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) * + - 57 + 96 + + + 34 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 74 * 59 col2
----
4366

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT 44 DIV - + 9 + + 99 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8727
SELECT 44 / - + 9 + + 99 AS col2
----
95

query I rowsort
SELECT DISTINCT 40 * - 32 + - 21 * + NULLIF ( + - 47, + ( + 0 ) ) * 28 AS col1
----
26356

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT COUNT( * ) - - 87
----
88

skipif mysql # not compatible
query I rowsort label-8729
SELECT COUNT ( * ) - - 87
----
88

query II rowsort
SELECT DISTINCT - 51 col0, 13 col1
----
-51
13

query I rowsort
SELECT - 43 * - - 35 - - 19 + 48
----
-1438

onlyif mysql # aggregate syntax: 
query II rowsort label-8732
SELECT 66 AS col0, - COUNT( * )
----
66
-1

skipif mysql # not compatible
query II rowsort label-8732
SELECT 66 AS col0, - COUNT ( * )
----
66
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8733
SELECT 2 * + - CAST( + + COUNT( * ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-8733
SELECT 2 * + - CAST ( + + COUNT ( * ) AS INTEGER )
----
-2

query I rowsort
SELECT 38 * 24 AS col0
----
912

query II rowsort
SELECT + 60, 28 AS col2
----
60
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - 80 * MIN( + + 80 ) + - + 59 + - 10
----
-6469

skipif mysql # not compatible
query I rowsort label-8736
SELECT - 80 * MIN ( + + 80 ) + - + 59 + - 10
----
-6469

onlyif mysql # aggregate syntax: 
query II rowsort label-8737
SELECT 53 - 55 * + - COUNT( * ) col1, 29 AS col2
----
108
29

skipif mysql # not compatible
query II rowsort label-8737
SELECT 53 - 55 * + - COUNT ( * ) col1, 29 AS col2
----
108
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL - ( - 71 ) + - SUM( ALL - + 52 )
----
123

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL - ( - 71 ) + - SUM ( ALL - + 52 )
----
123

query I rowsort
SELECT 27 + + + 11 + + 48 + - 3 + + + 85
----
168

query I rowsort
SELECT ALL 74 + + 36 + + 48
----
158

query I rowsort
SELECT ALL + 0 + - 77
----
-77

query I rowsort
SELECT ALL ( + + ( 93 ) ) * + + 79 * + 60 AS col2
----
440820

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT ( + + COUNT( * ) ) + 33
----
34

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT ( + + COUNT ( * ) ) + 33
----
34

query I rowsort
SELECT + 42 * 19 + - + 1 + 3 - + - ( - 67 ) * + - 13 AS col1
----
1671

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL + 1 + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + 1 + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT 90 AS col1, NULLIF ( - + 14, - + COUNT( * ) ) AS col1
----
90
-14

skipif mysql # not compatible
query II rowsort label-8746
SELECT 90 AS col1, NULLIF ( - + 14, - + COUNT ( * ) ) AS col1
----
90
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT DISTINCT 90, COUNT( * ) AS col0
----
90
1

skipif mysql # not compatible
query II rowsort label-8747
SELECT DISTINCT 90, COUNT ( * ) AS col0
----
90
1

query I rowsort
SELECT ALL - ( - 68 )
----
68

query I rowsort
SELECT 21 + - 60
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT DISTINCT + 63 + + - CAST( - 82 AS SIGNED ) col1
----
145

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT + 63 + + - CAST ( - 82 AS INTEGER ) col1
----
145

query I rowsort
SELECT DISTINCT COALESCE ( + - 38, 60 * 30 + + 94 + + + 83 - - 95 )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8752
SELECT ALL - 19 DIV + 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL - 19 / + 50 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT - 3 - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - 3 - COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT - MIN( ALL 45 ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-8754
SELECT - MIN ( ALL 45 ) col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT CASE COUNT( * ) WHEN ( - 25 ) THEN - - 28 * + - 49 + + 77 - 33 - - 32 + + - 9 - ( 97 ) / - 77 ELSE NULL END + - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT CASE COUNT ( * ) WHEN ( - 25 ) THEN - - 28 * + - 49 + + 77 - 33 - - 32 + + - 9 - ( 97 ) / - 77 ELSE NULL END + - 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT DISTINCT CAST( + 29 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT CAST ( + 29 AS INTEGER ) AS col0
----
29

query I rowsort
SELECT ALL - 70 * - + 22 AS col0
----
1540

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8758
SELECT 93 * + 40 + 67 AS col0, + CAST( - - 63 AS SIGNED ) AS col0
----
3787
63

skipif mysql # not compatible
query II rowsort label-8758
SELECT 93 * + 40 + 67 AS col0, + CAST ( - - 63 AS INTEGER ) AS col0
----
3787
63

query I rowsort
SELECT + 79 * - - 69 AS col0
----
5451

onlyif mysql # DIV for integer division: 
query II rowsort label-8760
SELECT 84 col2, + 95 DIV - 23 AS col1
----
84
-4

skipif mysql # not compatible
query II rowsort label-8760
SELECT 84 col2, + 95 / - 23 AS col1
----
84
-4

query I rowsort
SELECT 70 + 51
----
121

query I rowsort
SELECT + 37 - - 4 + 30 AS col0
----
71

query I rowsort
SELECT ALL - 9 * + - NULLIF ( + 54, 5 + - 6 + 43 * + 88 * + - 49 ) * + 87 AS col1
----
42282

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT DISTINCT 85 DIV - - 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT 85 / - - 46 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT 93 * NULLIF ( + ( - - 65 ), COALESCE ( + 10, SUM( - - 82 ), + AVG ( + 32 ) - 60 ) ) AS col1
----
6045

skipif mysql # not compatible
query I rowsort label-8765
SELECT 93 * NULLIF ( + ( - - 65 ), COALESCE ( + 10, SUM ( - - 82 ), + AVG ( + 32 ) - 60 ) ) AS col1
----
6045

onlyif mysql # aggregate syntax: 
query II rowsort label-8766
SELECT - 70 * 99 * ( + ( 27 ) ) + - + MIN( DISTINCT - 76 ) * + + 48 + 29, - 61 AS col0
----
-183433
-61

skipif mysql # not compatible
query II rowsort label-8766
SELECT - 70 * 99 * ( + ( 27 ) ) + - + MIN ( DISTINCT - 76 ) * + + 48 + 29, - 61 AS col0
----
-183433
-61

query I rowsort
SELECT DISTINCT ( - + 9 ) * 32
----
-288

query I rowsort
SELECT 47 * - ( - 65 )
----
3055

query I rowsort
SELECT ALL + 45 * + 9 + + 96 + - 72 AS col2
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT ALL - CASE 83 WHEN + - NULLIF ( + 31, + 20 ) * 29 * - - 51 * + 81 + - 42 + 50 + COUNT( ALL 23 ) / + 5 THEN - 19 * - - MAX( DISTINCT + ( NULLIF ( - + 55, - 30 - 12 * - 75 ) ) ) + - 31 WHEN + + 15 THEN NULL WHEN 78 + - - 63 THEN 67 + + ( + 41 ) * + 77 + 24 ELSE + 62 END AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - CASE 83 WHEN + - NULLIF ( + 31, + 20 ) * 29 * - - 51 * + 81 + - 42 + 50 + COUNT ( ALL 23 ) / + 5 THEN - 19 * - - MAX ( DISTINCT + ( NULLIF ( - + 55, - 30 - 12 * - 75 ) ) ) + - 31 WHEN + + 15 THEN NULL WHEN 78 + - - 63 THEN 67 + + ( + 41 ) * + 77 + 24 ELSE + 62 END AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-8771
SELECT SUM( - 89 ) AS col1, MIN( DISTINCT - 9 ) + COUNT( * )
----
-89
-8

skipif mysql # not compatible
query II rowsort label-8771
SELECT SUM ( - 89 ) AS col1, MIN ( DISTINCT - 9 ) + COUNT ( * )
----
-89
-8

query I rowsort
SELECT ALL ( + - 3 ) + + 89 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT 86 + COUNT( * ) + 99
----
186

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT 86 + COUNT ( * ) + 99
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT SUM( - - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-8774
SELECT SUM ( - - 76 )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT + 9 DIV - 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-8775
SELECT + 9 / - 93 col2
----
0

query II rowsort
SELECT + 15 * - 60, 8 AS col0
----
-900
8

query I rowsort
SELECT ALL 20 + + 74 - - 56 * - + 62
----
-3378

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + 26 * SUM( DISTINCT - 94 ) * - 79 * + + 22
----
4247672

skipif mysql # not compatible
query I rowsort label-8778
SELECT + 26 * SUM ( DISTINCT - 94 ) * - 79 * + + 22
----
4247672

onlyif mysql # DIV for integer division: 
query II rowsort label-8779
SELECT DISTINCT 38 DIV - - 30 AS col2, + 84
----
1
84

skipif mysql # not compatible
query II rowsort label-8779
SELECT DISTINCT 38 / - - 30 AS col2, + 84
----
1
84

query I rowsort
SELECT ALL 73 + 60 * - + 50 * + ( 57 ) * - - 8
----
-1367927

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + 79 - COUNT( * ) + + 51 AS col0
----
129

skipif mysql # not compatible
query I rowsort label-8781
SELECT + 79 - COUNT ( * ) + + 51 AS col0
----
129

query I rowsort
SELECT + 5 - + 69 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL + + 3 * - + 86 * - - 13 + - SUM( ALL ( - - 1 ) )
----
-3355

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + + 3 * - + 86 * - - 13 + - SUM ( ALL ( - - 1 ) )
----
-3355

query I rowsort
SELECT - - NULLIF ( 79, 39 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT DISTINCT NULLIF ( + + 79, 84 + 34 ) - - CAST( - 24 AS SIGNED ) * 59 - - CASE + 83 WHEN + 15 THEN + ( 81 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT NULLIF ( + + 79, 84 + 34 ) - - CAST ( - 24 AS INTEGER ) * 59 - - CASE + 83 WHEN + 15 THEN + ( 81 ) ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - - COUNT( * ) - 72
----
-71

skipif mysql # not compatible
query I rowsort label-8786
SELECT - - COUNT ( * ) - 72
----
-71

query I rowsort
SELECT - 77 * 37
----
-2849

query I rowsort
SELECT DISTINCT CASE 1 WHEN - + 80 + + - 0 THEN + - AVG ( ALL - 97 ) END
----
NULL

query I rowsort
SELECT - 34 + + + 36 * + 10 AS col1
----
326

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT - 43 * - COUNT( * ) * COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8790
SELECT - 43 * - COUNT ( * ) * COUNT ( * ) AS col0
----
43

query I rowsort
SELECT DISTINCT - COALESCE ( ( + - 85 ), - - 45, 79 ) * + 15 AS col2
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT + + 92 * - COUNT( ALL + 68 )
----
-92

skipif mysql # not compatible
query I rowsort label-8792
SELECT + + 92 * - COUNT ( ALL + 68 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - 99 * COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-8793
SELECT - 99 * COUNT ( * )
----
-99

query I rowsort
SELECT - 29 * + 8 - - + 57
----
-175

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT + 81 DIV 25 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8795
SELECT + 81 / 25 AS col0
----
3

query I rowsort
SELECT ALL + 1 * + - COALESCE ( + + 3, + + 1 ) + + 22 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8797
SELECT - COUNT( * ) DIV - 60 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8797
SELECT - COUNT ( * ) / - 60 + - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT + CASE + 85 WHEN NULLIF ( + 3, + - COUNT( ALL + 7 ) ) THEN NULL WHEN - 93 THEN NULL ELSE + COUNT( * ) * + + 29 * + 8 END AS col2
----
232

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT + CASE + 85 WHEN NULLIF ( + 3, + - COUNT ( ALL + 7 ) ) THEN NULL WHEN - 93 THEN NULL ELSE + COUNT ( * ) * + + 29 * + 8 END AS col2
----
232

query I rowsort
SELECT ALL + 84 * + 87 * + - 58 * + 12 + + - 21
----
-5086389

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT ALL 39 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL 39 / + 61
----
0

query I rowsort
SELECT ( + 39 ) col1
----
39

query I rowsort
SELECT DISTINCT - 40 * - + 98 + + + 20
----
3940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT ALL 78 * + + 79 + - + 42 * 25 - - + CAST( NULL AS SIGNED ) * 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL 78 * + + 79 + - + 42 * 25 - - + CAST ( NULL AS INTEGER ) * 35 AS col2
----
NULL

query I rowsort
SELECT 37 * + 40 * 40 - - 94
----
59294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT + 96 DIV + 72 + - 83 + - 22 + MIN( + 1 ) + 99
----
-4

skipif mysql # not compatible
query I rowsort label-8805
SELECT + 96 / + 72 + - 83 + - 22 + MIN ( + 1 ) + 99
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8806
SELECT COALESCE ( + NULLIF ( COUNT( * ), - 21 ), SUM( ALL - + 3 ) * + - 8 DIV 41 )
----
1

skipif mysql # not compatible
query I rowsort label-8806
SELECT COALESCE ( + NULLIF ( COUNT ( * ), - 21 ), SUM ( ALL - + 3 ) * + - 8 / 41 )
----
1

query I rowsort
SELECT + 9 * 44
----
396

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8808
SELECT + ( + SUM( ALL + - CASE 5 WHEN + 28 THEN 5 ELSE NULL END ) ), - 96 + - + 41 + + + 51 DIV + 44 AS col2
----
NULL
-136

skipif mysql # not compatible
query II rowsort label-8808
SELECT + ( + SUM ( ALL + - CASE 5 WHEN + 28 THEN 5 ELSE NULL END ) ), - 96 + - + 41 + + + 51 / + 44 AS col2
----
NULL
-136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8809
SELECT + ( + - COUNT( * ) ) * + + 95 + 2 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT + ( + - COUNT ( * ) ) * + + 95 + 2 / - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT DISTINCT + CAST( - + 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT + CAST ( - + 28 AS INTEGER )
----
-28

query I rowsort
SELECT + 73 * + 87
----
6351

query I rowsort
SELECT DISTINCT - 65 * + 36
----
-2340

query II rowsort
SELECT DISTINCT + 25 AS col1, + 9 AS col2
----
25
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8814
SELECT - ( - CAST( - CASE + 13 WHEN + + 54 THEN - COALESCE ( 69, 56 / + ( 7 ) - - + COUNT( * ), - CAST( - 84 AS SIGNED ) ) ELSE NULL END AS DECIMAL ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT - ( - CAST ( - CASE + 13 WHEN + + 54 THEN - COALESCE ( 69, 56 / + ( 7 ) - - + COUNT ( * ), - CAST ( - 84 AS INTEGER ) ) ELSE NULL END AS REAL ) ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT + COUNT( ALL - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-8815
SELECT + COUNT ( ALL - 60 )
----
1

query I rowsort
SELECT 34 * + 76 * + + 14 + + 40
----
36216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT + 61 / CAST( NULL AS SIGNED ) - - NULLIF ( 14, - NULLIF ( - - 99, - + 35 ) * 69 * + - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT + 61 / CAST ( NULL AS INTEGER ) - - NULLIF ( 14, - NULLIF ( - - 99, - + 35 ) * 69 * + - 3 )
----
NULL

query I rowsort
SELECT ALL + ( - 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL - SUM( DISTINCT + 19 ) * - 13 + + NULLIF ( 13, 1 + + 4 - + MAX( - 42 ) * + 95 + + 52 * - - COUNT( * ) ) AS col1
----
260

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - SUM ( DISTINCT + 19 ) * - 13 + + NULLIF ( 13, 1 + + 4 - + MAX ( - 42 ) * + 95 + + 52 * - - COUNT ( * ) ) AS col1
----
260

onlyif mysql # aggregate syntax: 
query II rowsort label-8820
SELECT ALL 39 AS col0, + COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-8820
SELECT ALL 39 AS col0, + COUNT ( * )
----
39
1

query I rowsort
SELECT DISTINCT 20 * + 34
----
680

query I rowsort
SELECT DISTINCT - 68 + + 86
----
18

query I rowsort
SELECT - - ( + 0 )
----
0

query I rowsort
SELECT ALL 47 + - 68
----
-21

query I rowsort
SELECT + - 30 + - + ( 19 ) * - 79
----
1471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT - CAST( - + 51 AS SIGNED ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8826
SELECT - CAST ( - + 51 AS INTEGER ) AS col2
----
51

query I rowsort
SELECT + 93 + - 63 AS col0
----
30

query I rowsort
SELECT + 52 - - - 27 + 34
----
59

query II rowsort
SELECT ALL 46 AS col1, - 48 * - 75 * + + 84 AS col2
----
46
302400

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT SUM( + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT SUM ( + 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8831
SELECT ALL 99 / + SUM( ALL CAST( + - 22 AS SIGNED ) ) + + 57 - + - CAST( NULL AS DECIMAL ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL 99 / + SUM ( ALL CAST ( + - 22 AS INTEGER ) ) + + 57 - + - CAST ( NULL AS REAL ) + + 60
----
NULL

query II rowsort
SELECT DISTINCT + 79 AS col0, - 56 * - 38 - + 76
----
79
2052

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT + 33 DIV 8
----
4

skipif mysql # not compatible
query I rowsort label-8833
SELECT + 33 / 8
----
4

query I rowsort
SELECT 53 + - 3 + 40 AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8835
SELECT ALL + MAX( ALL - - 20 ) + + 50 + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL + MAX ( ALL - - 20 ) + + 50 + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT 43 DIV 56 * + 39
----
0

skipif mysql # not compatible
query I rowsort label-8836
SELECT 43 / 56 * + 39
----
0

query II rowsort
SELECT 44, 24 AS col1
----
44
24

query II rowsort
SELECT 14, + 49 * 25 col2
----
14
1225

query II rowsort
SELECT ALL - 23 col1, 37 * - - 98 + - 5
----
-23
3621

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT ALL - ( - + 42 ), + COUNT( * ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-8840
SELECT ALL - ( - + 42 ), + COUNT ( * ) AS col0
----
42
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8841
SELECT ALL - 42, - COALESCE ( 10, 66 * - 41 DIV + 47, - - 75 * - 13 DIV COUNT( * ) + + 88 ) AS col0
----
-42
-10

skipif mysql # not compatible
query II rowsort label-8841
SELECT ALL - 42, - COALESCE ( 10, 66 * - 41 / + 47, - - 75 * - 13 / COUNT ( * ) + + 88 ) AS col0
----
-42
-10

query I rowsort
SELECT 78 * - 48 col2
----
-3744

query II rowsort
SELECT ALL - 13 AS col2, - 24 AS col2
----
-13
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-8844
SELECT ALL - + 84 AS col2, 28 DIV - 40 AS col2
----
-84
0

skipif mysql # not compatible
query II rowsort label-8844
SELECT ALL - + 84 AS col2, 28 / - 40 AS col2
----
-84
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT + COUNT( * ) * 92
----
92

skipif mysql # not compatible
query I rowsort label-8845
SELECT + COUNT ( * ) * 92
----
92

query II rowsort
SELECT + - 58, + 17 AS col1
----
-58
17

query II rowsort
SELECT ALL - - 6 AS col1, + 38
----
6
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT 45 - CAST( - 3 AS SIGNED ) * - 58
----
-129

skipif mysql # not compatible
query I rowsort label-8848
SELECT 45 - CAST ( - 3 AS INTEGER ) * - 58
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8849
SELECT + CAST( + - COUNT( DISTINCT + - 38 ) AS SIGNED ) - - 57
----
56

skipif mysql # not compatible
query I rowsort label-8849
SELECT + CAST ( + - COUNT ( DISTINCT + - 38 ) AS INTEGER ) - - 57
----
56

query I rowsort
SELECT ALL - 91 * 8
----
-728

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8851
SELECT ALL ( CASE - AVG ( ALL - NULLIF ( 44, - 36 + 88 ) ) WHEN - 35 THEN AVG ( ALL - 9 ) * - CAST( - + 29 AS SIGNED ) - - 69 WHEN - ( + 13 ) THEN - 73 + + 57 ELSE - - CAST( NULL AS DECIMAL ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL ( CASE - AVG ( ALL - NULLIF ( 44, - 36 + 88 ) ) WHEN - 35 THEN AVG ( ALL - 9 ) * - CAST ( - + 29 AS INTEGER ) - - 69 WHEN - ( + 13 ) THEN - 73 + + 57 ELSE - - CAST ( NULL AS REAL ) END ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT CASE + 91 WHEN + 9 + + - 34 THEN NULL WHEN + + 26 - - 53 * + 77 THEN NULL ELSE + - 89 END + 47 AS col1, + 57 * - 31
----
-42
-1767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8853
SELECT 16 + + COALESCE ( + COUNT( * ), - - CASE 68 WHEN + + 65 * + 97 + + COUNT( * ) + + 25 THEN 87 END + 35, - COUNT( * ) * - 99 + - - 96 + 40 ) + - 59 + + CAST( NULL AS SIGNED ) / - 43 * ( MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) * 45 * - 76 - 2 * + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT 16 + + COALESCE ( + COUNT ( * ), - - CASE 68 WHEN + + 65 * + 97 + + COUNT ( * ) + + 25 THEN 87 END + 35, - COUNT ( * ) * - 99 + - - 96 + 40 ) + - 59 + + CAST ( NULL AS INTEGER ) / - 43 * ( MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) * 45 * - 76 - 2 * + 7 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8854
SELECT - 90, COUNT( * ) + ( - - MIN( DISTINCT 57 ) ) / - - 81 / - 66 * - CAST( NULL AS SIGNED ) * + + MAX( - 99 ) * 48 + + + 11 - - - 68 + + - 70 AS col2
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-8854
SELECT - 90, COUNT ( * ) + ( - - MIN ( DISTINCT 57 ) ) / - - 81 / - 66 * - CAST ( NULL AS INTEGER ) * + + MAX ( - 99 ) * 48 + + + 11 - - - 68 + + - 70 AS col2
----
-90
NULL

query I rowsort
SELECT DISTINCT - 39 + - 55
----
-94

query I rowsort
SELECT ALL + 64 + - 62 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT ALL CAST( NULL AS SIGNED ) + + MAX( - 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL CAST ( NULL AS INTEGER ) + + MAX ( - 5 )
----
NULL

query II rowsort
SELECT ( + - 16 ) AS col1, 50
----
-16
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8859
SELECT ALL CAST( 18 AS DECIMAL ) * + - SUM( ALL - 5 ) + CASE - + 57 WHEN 21 THEN - 88 / + + 7 * - + 1 WHEN 57 * - 44 * + 72 * COUNT( * ) - 14 THEN NULL WHEN 56 * - + 34 + SUM( ALL 39 ) THEN NULL ELSE NULL END * - COUNT( * ) - + 45 * + ( - + 19 ) + + COUNT( * ) + + COUNT( * ) + - + COUNT( * ) + - 25 - - 17 * + + ( + - ( + - 15 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL CAST ( 18 AS REAL ) * + - SUM ( ALL - 5 ) + CASE - + 57 WHEN 21 THEN - 88 / + + 7 * - + 1 WHEN 57 * - 44 * + 72 * COUNT ( * ) - 14 THEN NULL WHEN 56 * - + 34 + SUM ( ALL 39 ) THEN NULL ELSE NULL END * - COUNT ( * ) - + 45 * + ( - + 19 ) + + COUNT ( * ) + + COUNT ( * ) + - + COUNT ( * ) + - 25 - - 17 * + + ( + - ( + - 15 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL 57 + ( + 87 ) + + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL 57 + ( + 87 ) + + COUNT ( * )
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8861
SELECT ALL 16 + + - 59 + - 94 + - CASE - COUNT( * ) WHEN - 27 / - 23 THEN + + 7 END, - ( - 43 ) * - 35 + - + ( - + 90 ) - - 50 * + + CAST( - 8 AS SIGNED ) * 12 AS col2
----
NULL
-6215

skipif mysql # not compatible
query II rowsort label-8861
SELECT ALL 16 + + - 59 + - 94 + - CASE - COUNT ( * ) WHEN - 27 / - 23 THEN + + 7 END, - ( - 43 ) * - 35 + - + ( - + 90 ) - - 50 * + + CAST ( - 8 AS INTEGER ) * 12 AS col2
----
NULL
-6215

query I rowsort
SELECT 47 * + ( + - 81 )
----
-3807

query I rowsort
SELECT ALL 28 * + 57
----
1596

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT 18 + 25 - + COUNT( + - 95 )
----
42

skipif mysql # not compatible
query I rowsort label-8864
SELECT 18 + 25 - + COUNT ( + - 95 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT COUNT( * ) + - 51 col2, 57
----
-50
57

skipif mysql # not compatible
query II rowsort label-8865
SELECT COUNT ( * ) + - 51 col2, 57
----
-50
57

query I rowsort
SELECT 62 + - 97
----
-35

query I rowsort
SELECT ALL + 11 * - ( - 60 ) col0
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT 52 + + 58 + - COUNT( * ) AS col0
----
109

skipif mysql # not compatible
query I rowsort label-8868
SELECT 52 + + 58 + - COUNT ( * ) AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT 11 * + 19 * + 32 * + - COUNT( * ) + 4 AS col1
----
-6684

skipif mysql # not compatible
query I rowsort label-8869
SELECT 11 * + 19 * + 32 * + - COUNT ( * ) + 4 AS col1
----
-6684

query I rowsort
SELECT ALL + 20 * ( + 48 )
----
960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8871
SELECT CAST( - COUNT( + - 78 ) AS SIGNED ) * - 53 + + 40 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8871
SELECT CAST ( - COUNT ( + - 78 ) AS INTEGER ) * - 53 + + 40 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT 80 + - COUNT( * ) + SUM( + 86 ) AS col2
----
165

skipif mysql # not compatible
query I rowsort label-8872
SELECT 80 + - COUNT ( * ) + SUM ( + 86 ) AS col2
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8873
SELECT ALL + 86 * + 61 * + 72 + + + 99 * + 91 + + 50 + + NULLIF ( - CAST( + AVG ( - + 13 ) AS SIGNED ), + 33 ) DIV + 90 * COUNT( * ) col2
----
386771

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL + 86 * + 61 * + 72 + + + 99 * + 91 + + 50 + + NULLIF ( - CAST ( + AVG ( - + 13 ) AS INTEGER ), + 33 ) / + 90 * COUNT ( * ) col2
----
386771

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + 21 + - COUNT( * ) + + 28 col2
----
48

skipif mysql # not compatible
query I rowsort label-8874
SELECT + 21 + - COUNT ( * ) + + 28 col2
----
48

query I rowsort
SELECT ALL - + 17 * + - 8
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8876
SELECT - 9 * 17 DIV - 38 + COUNT( * ) + + ( - 60 ) + + SUM( DISTINCT + - 32 ) DIV - - 97 + + 40 - + 85 * - + 76
----
6445

skipif mysql # not compatible
query I rowsort label-8876
SELECT - 9 * 17 / - 38 + COUNT ( * ) + + ( - 60 ) + + SUM ( DISTINCT + - 32 ) / - - 97 + + 40 - + 85 * - + 76
----
6445

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT COUNT( * ) + - ( - 42 ) * 47
----
1975

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT COUNT ( * ) + - ( - 42 ) * 47
----
1975

onlyif mysql # DIV for integer division: 
query I rowsort label-8878
SELECT 90 DIV - 54 + 46
----
45

skipif mysql # not compatible
query I rowsort label-8878
SELECT 90 / - 54 + 46
----
45

query I rowsort
SELECT DISTINCT - + 61 AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8880
SELECT ALL - - COUNT( * ) + 91 * 41 DIV + - 27 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL - - COUNT ( * ) + 91 * 41 / + - 27 AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT DISTINCT - + NULLIF ( - NULLIF ( + 22, + 18 ), 74 + COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT - + NULLIF ( - NULLIF ( + 22, + 18 ), 74 + COUNT ( * ) )
----
22

query I rowsort
SELECT ( + 69 ) + + - 95 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - NULLIF ( CASE - 7 WHEN 80 THEN NULL WHEN 4 * ( 34 ) + 5 THEN + 69 + + 74 * - + 8 - + COUNT( * ) END, - 41 + - MAX( + 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT - NULLIF ( CASE - 7 WHEN 80 THEN NULL WHEN 4 * ( 34 ) + 5 THEN + 69 + + 74 * - + 8 - + COUNT ( * ) END, - 41 + - MAX ( + 61 ) )
----
NULL

query I rowsort
SELECT ALL - - 37 + - 90
----
-53

query I rowsort
SELECT 21 + - 56 col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL + 35 + CAST( - - 49 AS SIGNED ) col0
----
84

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + 35 + CAST ( - - 49 AS INTEGER ) col0
----
84

query I rowsort
SELECT ALL + + 25 * + - 42 * + 34 AS col1
----
-35700

query I rowsort
SELECT 39 + - 1
----
38

query II rowsort
SELECT ALL - 33 + - - 5 AS col1, 21 AS col1
----
-28
21

query I rowsort
SELECT ALL 16 - + 26 col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8891
SELECT DISTINCT + CAST( - 65 AS SIGNED ) * 69, + 46 + - + 90 AS col2
----
-4485
-44

skipif mysql # not compatible
query II rowsort label-8891
SELECT DISTINCT + CAST ( - 65 AS INTEGER ) * 69, + 46 + - + 90 AS col2
----
-4485
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8892
SELECT - 93 - + - MIN( DISTINCT + + CAST( + 82 AS SIGNED ) ), + SUM( ALL NULLIF ( COALESCE ( + - 72, + 1, + 37 ), + + ( + 93 ) ) ) col2
----
-11
-72

skipif mysql # not compatible
query II rowsort label-8892
SELECT - 93 - + - MIN ( DISTINCT + + CAST ( + 82 AS INTEGER ) ), + SUM ( ALL NULLIF ( COALESCE ( + - 72, + 1, + 37 ), + + ( + 93 ) ) ) col2
----
-11
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8893
SELECT + CASE CAST( NULL AS SIGNED ) WHEN + + 75 + - + SUM( ALL - + 6 ) THEN NULL WHEN + 62 / + + 0 + + CASE - MAX( + - 51 ) WHEN + - COUNT( * ) + 7 + - 60 THEN NULL WHEN - CASE - 99 WHEN + + COUNT( * ) THEN CASE - + NULLIF ( + NULLIF ( + 91, + 80 ), + - 81 * + 86 ) WHEN + 14 * + - COUNT( * ) THEN - 87 + + 88 END - - 41 - - 51 - 95 + + 46 * 34 - - - 83 * COUNT( * ) / - 93 WHEN 30 THEN 77 END / 35 THEN CAST( NULL AS SIGNED ) END * - 26 THEN NULL ELSE 45 + COUNT( * ) END * - 47 AS col2
----
-2162

skipif mysql # not compatible
query I rowsort label-8893
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + + 75 + - + SUM ( ALL - + 6 ) THEN NULL WHEN + 62 / + + 0 + + CASE - MAX ( + - 51 ) WHEN + - COUNT ( * ) + 7 + - 60 THEN NULL WHEN - CASE - 99 WHEN + + COUNT ( * ) THEN CASE - + NULLIF ( + NULLIF ( + 91, + 80 ), + - 81 * + 86 ) WHEN + 14 * + - COUNT ( * ) THEN - 87 + + 88 END - - 41 - - 51 - 95 + + 46 * 34 - - - 83 * COUNT ( * ) / - 93 WHEN 30 THEN 77 END / 35 THEN CAST ( NULL AS INTEGER ) END * - 26 THEN NULL ELSE 45 + COUNT ( * ) END * - 47 AS col2
----
-2162

onlyif mysql # aggregate syntax: 
query II rowsort label-8894
SELECT ALL 54, MAX( DISTINCT - 28 ) AS col0
----
54
-28

skipif mysql # not compatible
query II rowsort label-8894
SELECT ALL 54, MAX ( DISTINCT - 28 ) AS col0
----
54
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8895
SELECT 39 AS col1, 10 * + + CAST( NULL AS SIGNED )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-8895
SELECT 39 AS col1, 10 * + + CAST ( NULL AS INTEGER )
----
39
NULL

query I rowsort
SELECT DISTINCT 57 - + - ( - + 29 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT - 62 DIV + + 11 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8897
SELECT - 62 / + + 11 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + 68 * + MIN( ALL 76 ) * 85
----
439280

skipif mysql # not compatible
query I rowsort label-8898
SELECT + 68 * + MIN ( ALL 76 ) * 85
----
439280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8899
SELECT ALL COALESCE ( - COUNT( * ), - CAST( NULL AS SIGNED ) * + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL COALESCE ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) * + 3 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT - SUM( ALL + + 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8900
SELECT - SUM ( ALL + + 10 ) AS col0
----
-10

query II rowsort
SELECT ALL + 33 AS col0, 66 AS col2
----
33
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8902
SELECT COUNT( * ) DIV + ( + + ( MAX( DISTINCT 74 ) ) ) * + 21 * + COUNT( + 22 ) + - 67 * 64 AS col1
----
-4288

skipif mysql # not compatible
query I rowsort label-8902
SELECT COUNT ( * ) / + ( + + ( MAX ( DISTINCT 74 ) ) ) * + 21 * + COUNT ( + 22 ) + - 67 * 64 AS col1
----
-4288

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT 49 * + 48 * 52 * 8 * + COUNT( * )
----
978432

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT 49 * + 48 * 52 * 8 * + COUNT ( * )
----
978432

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT + 78 * + + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8904
SELECT + 78 * + + COUNT ( * ) AS col0
----
78

query II rowsort
SELECT + 44 AS col2, + 53
----
44
53

query I rowsort
SELECT ALL + + 87 * - 55 * - + 10 + 9 - + 71
----
47788

query II rowsort
SELECT ALL + - 28 AS col1, - 63
----
-28
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT + COUNT( DISTINCT - - 18 ) * + 12
----
12

skipif mysql # not compatible
query I rowsort label-8908
SELECT + COUNT ( DISTINCT - - 18 ) * + 12
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8909
SELECT + - COALESCE ( CAST( NULL AS SIGNED ), SUM( + 10 ), - 28 )
----
-10

skipif mysql # not compatible
query I rowsort label-8909
SELECT + - COALESCE ( CAST ( NULL AS INTEGER ), SUM ( + 10 ), - 28 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT ALL + SUM( DISTINCT 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + SUM ( DISTINCT 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + 2 * COUNT( * ) * 70 + COALESCE ( 84, SUM( 72 ), - - 82 )
----
224

skipif mysql # not compatible
query I rowsort label-8911
SELECT + 2 * COUNT ( * ) * 70 + COALESCE ( 84, SUM ( 72 ), - - 82 )
----
224

query I rowsort
SELECT ALL + - 37 * - - 39 + + 25
----
-1418

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8913
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - 31 * + 89 * 73 + 47 + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - 31 * + 89 * 73 + 47 + 87 AS col1
----
NULL

query I rowsort
SELECT + 74 - 6 AS col2
----
68

query I rowsort
SELECT - 44 * + + 35 AS col2
----
-1540

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT ALL - 48 * - CASE - + 56 WHEN + - 46 THEN - COUNT( * ) * COUNT( * ) WHEN 77 THEN - 98 END AS col2, + 77 AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-8916
SELECT ALL - 48 * - CASE - + 56 WHEN + - 46 THEN - COUNT ( * ) * COUNT ( * ) WHEN 77 THEN - 98 END AS col2, + 77 AS col0
----
NULL
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8917
SELECT ALL 41 AS col0, + ( COUNT( * ) ) AS col2
----
41
1

skipif mysql # not compatible
query II rowsort label-8917
SELECT ALL 41 AS col0, + ( COUNT ( * ) ) AS col2
----
41
1

query I rowsort
SELECT - 88 + + 69
----
-19

query I rowsort
SELECT ALL + + 18 * 86 + - - 93 - 1 AS col0
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT COUNT( DISTINCT - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-8920
SELECT COUNT ( DISTINCT - 33 )
----
1

query I rowsort
SELECT 9 * + 67 + - + 85 AS col1
----
518

query I rowsort
SELECT DISTINCT 75 * 55
----
4125

query I rowsort
SELECT ALL + - 22 - + 89 AS col2
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8924
SELECT DISTINCT - 0 DIV MIN( - 5 ) * - + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT - 0 / MIN ( - 5 ) * - + 62 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT - 99 - + CAST( NULL AS SIGNED ) * - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT - 99 - + CAST ( NULL AS INTEGER ) * - 38 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), - 69 ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), - 69 ) col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT ALL + 55 - - 40 - + + 55 DIV 71 DIV - 95 * - 21 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL + 55 - - 40 - + + 55 / 71 / - 95 * - 21 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL ( + - CASE - 42 WHEN - - 14 / - 1 THEN COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL ( + - CASE - 42 WHEN - - 14 / - 1 THEN COUNT ( * ) END )
----
NULL

query I rowsort
SELECT DISTINCT - 28 * + + 40 AS col2
----
-1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8930
SELECT - 39 + CAST( + + 88 AS SIGNED ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8930
SELECT - 39 + CAST ( + + 88 AS INTEGER ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8931
SELECT ALL COALESCE ( - MAX( 2 ), NULLIF ( CAST( NULL AS SIGNED ), + 16 * + 60 ) ), + 55 + + - ( 43 ) AS col2
----
-2
12

skipif mysql # not compatible
query II rowsort label-8931
SELECT ALL COALESCE ( - MAX ( 2 ), NULLIF ( CAST ( NULL AS INTEGER ), + 16 * + 60 ) ), + 55 + + - ( 43 ) AS col2
----
-2
12

query I rowsort
SELECT - 56 * - 99 AS col1
----
5544

query I rowsort
SELECT ALL 68 * - 34
----
-2312

query I rowsort
SELECT DISTINCT - 38 * + + 37 * 58 AS col0
----
-81548

query I rowsort
SELECT ALL ( - ( 8 ) )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-8936
SELECT - 9 DIV + 6
----
-1

skipif mysql # not compatible
query I rowsort label-8936
SELECT - 9 / + 6
----
-1

query I rowsort
SELECT ALL - 20 * + - ( + 84 )
----
1680

query I rowsort
SELECT ALL + 48 + - + 17 AS col2
----
31

query II rowsort
SELECT + 29 * - - 43 + + 95 * - + 27, 2 AS col2
----
-1318
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8940
SELECT - 73 DIV + + 78 AS col0, - 73 col1
----
0
-73

skipif mysql # not compatible
query II rowsort label-8940
SELECT - 73 / + + 78 AS col0, - 73 col1
----
0
-73

query I rowsort
SELECT + 79 * 8 * + 71
----
44872

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL 33 / + + CASE + MAX( - 27 ) WHEN - 90 + - 34 THEN - 64 - 23 * 38 * + ( 58 ) * - 65 + + 3 / + 77 END + + 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL 33 / + + CASE + MAX ( - 27 ) WHEN - 90 + - 34 THEN - 64 - 23 * 38 * + ( 58 ) * - 65 + + 3 / + 77 END + + 12 col2
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 84, - 78 * - 0 )
----
84

query I rowsort
SELECT + 56 + - 66
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8945
SELECT DISTINCT - 93 DIV 6 + + - 56 * 89 * - + 51 - + COUNT( ALL 81 ) DIV - MAX( DISTINCT + - 3 ) - 15 AS col1, COUNT( * )
----
254154
1

skipif mysql # not compatible
query II rowsort label-8945
SELECT DISTINCT - 93 / 6 + + - 56 * 89 * - + 51 - + COUNT ( ALL 81 ) / - MAX ( DISTINCT + - 3 ) - 15 AS col1, COUNT ( * )
----
254154
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8946
SELECT ALL 58 DIV 39 + 6 + 6 AS col1, 48 col1
----
13
48

skipif mysql # not compatible
query II rowsort label-8946
SELECT ALL 58 / 39 + 6 + 6 AS col1, 48 col1
----
13
48

query II rowsort
SELECT - 41 * + 61 + + - 57 + + 21 * + 77, + 21 + - 55 + 14 + - 47 AS col2
----
-941
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT - - 54 DIV + 73 * 58
----
0

skipif mysql # not compatible
query I rowsort label-8948
SELECT - - 54 / + 73 * 58
----
0

query I rowsort
SELECT - + 24 * + + 48 + - 36 + - 13 * + + 99
----
-2475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8950
SELECT + CASE - + 4 WHEN + + 37 * COUNT( * ) + + - ( + 4 ) + 82 - - + 57 THEN - + 72 ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT + CASE - + 4 WHEN + + 37 * COUNT ( * ) + + - ( + 4 ) + 82 - - + 57 THEN - + 72 ELSE CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 5 + + + 83 * + 95
----
7890

query I rowsort
SELECT ALL + COALESCE ( + + 23, + 51 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL + - NULLIF ( 2, 27 * + COUNT( * ) + + + 67 / - 44 / ( - 24 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + - NULLIF ( 2, 27 * + COUNT ( * ) + + + 67 / - 44 / ( - 24 ) )
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8954
SELECT ( - 94 ) * - + 96 + COALESCE ( - ( - ( + ( 65 ) ) ), ( + 50 ) DIV - 9, + 51 DIV - CAST( NULL AS SIGNED ) + - - 51 + 23 DIV + - AVG ( + 84 ) )
----
9089

skipif mysql # not compatible
query I rowsort label-8954
SELECT ( - 94 ) * - + 96 + COALESCE ( - ( - ( + ( 65 ) ) ), ( + 50 ) / - 9, + 51 / - CAST ( NULL AS INTEGER ) + - - 51 + 23 / + - AVG ( + 84 ) )
----
9089

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL + 31 * MAX( - + COALESCE ( - 17, 39 + + 56 ) ) * 43 + 90 - + 52 AS col1
----
22699

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL + 31 * MAX ( - + COALESCE ( - 17, 39 + + 56 ) ) * 43 + 90 - + 52 AS col1
----
22699

query I rowsort
SELECT ALL 70 * - + 84 - + 72 - - 18 AS col1
----
-5934

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT - - 7 * - 91 + NULLIF ( + 24, COUNT( * ) )
----
-613

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT - - 7 * - 91 + NULLIF ( + 24, COUNT ( * ) )
----
-613

query I rowsort
SELECT + 8 * - 70
----
-560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT - 57 * + - CAST( COUNT( * ) AS SIGNED ) + + 97 * 77 * - COUNT( * ) * - 60 + + COALESCE ( + 77, - CASE 21 WHEN - 62 * - 63 + + + 41 + 76 + - + 8 THEN 20 WHEN 51 + - 70 THEN NULL ELSE + ( - 4 ) * 99 END * 70 ) - + ( + COUNT( * ) )
----
448273

skipif mysql # not compatible
query I rowsort label-8959
SELECT - 57 * + - CAST ( COUNT ( * ) AS INTEGER ) + + 97 * 77 * - COUNT ( * ) * - 60 + + COALESCE ( + 77, - CASE 21 WHEN - 62 * - 63 + + + 41 + 76 + - + 8 THEN 20 WHEN 51 + - 70 THEN NULL ELSE + ( - 4 ) * 99 END * 70 ) - + ( + COUNT ( * ) )
----
448273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8960
SELECT CASE - - 68 WHEN MAX( ALL - ( + 89 ) ) + COALESCE ( 19, 20 + + - 71 ) THEN NULL WHEN + 79 * - + 97 * - + 9 + - CAST( NULL AS SIGNED ) THEN NULL ELSE - COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8960
SELECT CASE - - 68 WHEN MAX ( ALL - ( + 89 ) ) + COALESCE ( 19, 20 + + - 71 ) THEN NULL WHEN + 79 * - + 97 * - + 9 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - COUNT ( * ) END AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8961
SELECT 66 + 55 + + + 68 * + + 23 + 13, - ( CAST( NULL AS SIGNED ) ) / + + 88 - 26 AS col0
----
1698
NULL

skipif mysql # not compatible
query II rowsort label-8961
SELECT 66 + 55 + + + 68 * + + 23 + 13, - ( CAST ( NULL AS INTEGER ) ) / + + 88 - 26 AS col0
----
1698
NULL

query I rowsort
SELECT ALL 81 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8963
SELECT COUNT( * ) * + - 38 DIV - 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8963
SELECT COUNT ( * ) * + - 38 / - 63 AS col2
----
0

query I rowsort
SELECT 72 * + + 35
----
2520

query I rowsort
SELECT ALL 98 * + COALESCE ( 9, + 7 ) AS col1
----
882

query II rowsort
SELECT - 51 AS col1, - 36
----
-51
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8967
SELECT ALL 39 * + - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL 39 * + - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT 88 + - COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-8968
SELECT 88 + - COUNT ( * ) AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8969
SELECT DISTINCT + 79 DIV - 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT + 79 / - 58 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL + + 98 + + + 4 + - NULLIF ( + - COUNT( * ), + 60 - 87 ) AS col0
----
103

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + + 98 + + + 4 + - NULLIF ( + - COUNT ( * ), + 60 - 87 ) AS col0
----
103

query II rowsort
SELECT DISTINCT - 29 AS col2, 55 * 84
----
-29
4620

query I rowsort
SELECT DISTINCT + 5 + 96 AS col2
----
101

query I rowsort
SELECT + 99 * - 59 + - 43 * 7 col2
----
-6142

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL - 56 - - - COALESCE ( 15, - MIN( ALL 83 ), + CASE 75 WHEN + 22 THEN - COALESCE ( COUNT( - NULLIF ( - + 6, 59 ) ), + 70, + + 44, 19 ) ELSE + - MAX( DISTINCT + 77 ) END * - COUNT( * ) ) + + 63 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL - 56 - - - COALESCE ( 15, - MIN ( ALL 83 ), + CASE 75 WHEN + 22 THEN - COALESCE ( COUNT ( - NULLIF ( - + 6, 59 ) ), + 70, + + 44, 19 ) ELSE + - MAX ( DISTINCT + 77 ) END * - COUNT ( * ) ) + + 63 AS col2
----
-8

query I rowsort
SELECT DISTINCT + 98 * + + 19 AS col1
----
1862

query I rowsort
SELECT - 32 * - 38 AS col2
----
1216

query I rowsort
SELECT - 50 + + - 37
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT DISTINCT 93 * + 37 * + COUNT( * )
----
3441

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT 93 * + 37 * + COUNT ( * )
----
3441

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT ALL - 8 col1, MAX( ALL - ( - - ( + - 64 ) ) ) * - - 42 * + + 47 * 55
----
-8
6948480

skipif mysql # not compatible
query II rowsort label-8979
SELECT ALL - 8 col1, MAX ( ALL - ( - - ( + - 64 ) ) ) * - - 42 * + + 47 * 55
----
-8
6948480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8980
SELECT 46 - COUNT( 42 ) * + ( - ( - 65 ) ) DIV 77 + + ( 13 ) + - - 45 col0
----
104

skipif mysql # not compatible
query I rowsort label-8980
SELECT 46 - COUNT ( 42 ) * + ( - ( - 65 ) ) / 77 + + ( 13 ) + - - 45 col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL - ( NULLIF ( - - ( + 27 ), - COUNT( * ) ) ) * + 11
----
-297

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - ( NULLIF ( - - ( + 27 ), - COUNT ( * ) ) ) * + 11
----
-297

query I rowsort
SELECT 53 * + 92 col2
----
4876

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ( + + 81 ) + ( - 92 ) * - CASE + COUNT( * ) WHEN - 19 + 62 THEN NULL ELSE + + 24 + + COUNT( * ) + - ( - 84 ) + 82 END AS col2
----
17653

skipif mysql # not compatible
query I rowsort label-8983
SELECT ( + + 81 ) + ( - 92 ) * - CASE + COUNT ( * ) WHEN - 19 + 62 THEN NULL ELSE + + 24 + + COUNT ( * ) + - ( - 84 ) + 82 END AS col2
----
17653

query II rowsort
SELECT ALL 97, - 47 AS col1
----
97
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT 65 * + + COUNT( * ) DIV + + MAX( 93 ) + - NULLIF ( - 28, - CASE + + NULLIF ( - + ( - - 2 ), - 0 ) WHEN - NULLIF ( - + 67, + ( - + 38 ) * + 1 - + 6 + - - 90 + - 26 ) DIV + + 49 + + 11 THEN NULL WHEN + - 77 THEN 61 END - + 43 ) - 52 * ( + 31 ) AS col2
----
-1584

skipif mysql # not compatible
query I rowsort label-8985
SELECT 65 * + + COUNT ( * ) / + + MAX ( 93 ) + - NULLIF ( - 28, - CASE + + NULLIF ( - + ( - - 2 ), - 0 ) WHEN - NULLIF ( - + 67, + ( - + 38 ) * + 1 - + 6 + - - 90 + - 26 ) / + + 49 + + 11 THEN NULL WHEN + - 77 THEN 61 END - + 43 ) - 52 * ( + 31 ) AS col2
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT MAX( ALL 65 ) * + - 6 AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-8986
SELECT MAX ( ALL 65 ) * + - 6 AS col2
----
-390

query I rowsort
SELECT ALL 45 + ( + 47 ) AS col2
----
92

query I rowsort
SELECT 46 + + 99 AS col2
----
145

query I rowsort
SELECT ( + 66 ) - 19
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8990
SELECT ALL 91 DIV - + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL 91 / - + COUNT ( * )
----
-91

query I rowsort
SELECT DISTINCT 50 + 39 AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8992
SELECT - 17 col1, + 4 * - MIN( ALL + 69 ) * 54 - 11
----
-17
-14915

skipif mysql # not compatible
query II rowsort label-8992
SELECT - 17 col1, + 4 * - MIN ( ALL + 69 ) * 54 - 11
----
-17
-14915

query I rowsort
SELECT ALL 85 + + 60 AS col0
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT ALL COUNT( * ) + COUNT( * ), + 65 * - + 98 * - 90 AS col2
----
2
573300

skipif mysql # not compatible
query II rowsort label-8994
SELECT ALL COUNT ( * ) + COUNT ( * ), + 65 * - + 98 * - 90 AS col2
----
2
573300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT ( - 36 ) + 15 + - 5 * - - ( + + 18 ) + - CAST( ( + 85 ) AS SIGNED ) col1
----
-196

skipif mysql # not compatible
query I rowsort label-8995
SELECT ( - 36 ) + 15 + - 5 * - - ( + + 18 ) + - CAST ( ( + 85 ) AS INTEGER ) col1
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT ( 13 ) DIV 24 col1
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT ( 13 ) / 24 col1
----
0

query I rowsort
SELECT DISTINCT 90 * - 82 AS col2
----
-7380

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL 49 + SUM( DISTINCT + - 36 )
----
13

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL 49 + SUM ( DISTINCT + - 36 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8999
SELECT DISTINCT COUNT( * ) col1, + 61 * - 21
----
1
-1281

skipif mysql # not compatible
query II rowsort label-8999
SELECT DISTINCT COUNT ( * ) col1, + 61 * - 21
----
1
-1281

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL + 21 + - COUNT( * ) - 2 + + - COUNT( * ) * - + 31 * - 76
----
-2338

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL + 21 + - COUNT ( * ) - 2 + + - COUNT ( * ) * - + 31 * - 76
----
-2338

query II rowsort
SELECT - 91 + - 71, ( 13 ) col2
----
-162
13

query I rowsort
SELECT 3 * - + 28 col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL + 1 - - COUNT( * ) + - 26 * - COUNT( * ) * 53 AS col0
----
1380

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL + 1 - - COUNT ( * ) + - 26 * - COUNT ( * ) * 53 AS col0
----
1380

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT - + COUNT( * ), + 49 AS col0
----
-1
49

skipif mysql # not compatible
query II rowsort label-9004
SELECT - + COUNT ( * ), + 49 AS col0
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL + - 16 * - ( - 83 ) * COUNT( * ) AS col0
----
-1328

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + - 16 * - ( - 83 ) * COUNT ( * ) AS col0
----
-1328

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT - + 72 * + - 17 * - COUNT( * ) - 19 + - + 28 AS col0
----
-1271

skipif mysql # not compatible
query I rowsort label-9006
SELECT - + 72 * + - 17 * - COUNT ( * ) - 19 + - + 28 AS col0
----
-1271

query I rowsort
SELECT ALL - - 24 AS col2
----
24

query I rowsort
SELECT - 63 * + - 10 * - 2
----
-1260

query I rowsort
SELECT 22 * + 45 + 37 * - 35 - - + 70 + + 65 AS col1
----
-170

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9010
SELECT DISTINCT + MIN( ALL + 87 ) * CASE + - 54 WHEN - COALESCE ( 78, + ( + COUNT( * ) ) * 9 ) THEN + - 52 / 64 / 32 WHEN 90 THEN SUM( - 57 ) WHEN - SUM( DISTINCT - ( + - 24 ) ) * - - 53 * + AVG ( + 25 ) * - COUNT( * ) + - + COUNT( * ) * CAST( 68 AS DECIMAL ) THEN + - 56 * - MAX( + 0 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + MIN ( ALL + 87 ) * CASE + - 54 WHEN - COALESCE ( 78, + ( + COUNT ( * ) ) * 9 ) THEN + - 52 / 64 / 32 WHEN 90 THEN SUM ( - 57 ) WHEN - SUM ( DISTINCT - ( + - 24 ) ) * - - 53 * + AVG ( + 25 ) * - COUNT ( * ) + - + COUNT ( * ) * CAST ( 68 AS REAL ) THEN + - 56 * - MAX ( + 0 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL + + ( - ( - - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + + ( - ( - - COUNT ( * ) ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT + + 86 DIV + - 33 + + + 27 + + 61 - - 23
----
109

skipif mysql # not compatible
query I rowsort label-9012
SELECT + + 86 / + - 33 + + + 27 + + 61 - - 23
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT - - 19 * + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-9013
SELECT - - 19 * + COUNT ( * )
----
19

query I rowsort
SELECT - + 56 + + + 51 col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9015
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9015
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-9016
SELECT DISTINCT + 49 AS col2, SUM( ALL - - ( + - 98 ) ) + + 3 + + 93 + - 82 * 66 + COUNT( * ) AS col2, - 52 * - 71 * COUNT( * ) + + 13 + - 57 * - 83 AS col0
----
49
-5413
8436

skipif mysql # not compatible
query III rowsort label-9016
SELECT DISTINCT + 49 AS col2, SUM ( ALL - - ( + - 98 ) ) + + 3 + + 93 + - 82 * 66 + COUNT ( * ) AS col2, - 52 * - 71 * COUNT ( * ) + + 13 + - 57 * - 83 AS col0
----
49
-5413
8436

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT DISTINCT 93 DIV + + ( - 14 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT 93 / + + ( - 14 ) AS col0
----
-6

query I rowsort
SELECT DISTINCT 10 * + ( - + 99 )
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT - ( - 99 ) * + - 72 * 34 * - MAX( + 53 ) + + ( + + ( + 76 ) ) AS col1
----
12844732

skipif mysql # not compatible
query I rowsort label-9019
SELECT - ( - 99 ) * + - 72 * 34 * - MAX ( + 53 ) + + ( + + ( + 76 ) ) AS col1
----
12844732

query I rowsort
SELECT ALL 12 * - 2 + + + 89
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT DISTINCT COUNT( * ) + + + 2
----
3

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT COUNT ( * ) + + + 2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT DISTINCT - 79 + + 9 - - 54 + + COUNT( * ) * - 79 * 39
----
-3097

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT - 79 + + 9 - - 54 + + COUNT ( * ) * - 79 * 39
----
-3097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9023
SELECT DISTINCT 51 * - 60 * - + COALESCE ( 45, + CAST( NULL AS SIGNED ) - - + 9 DIV + COUNT( * ) ) col2, NULLIF ( - 40, - MIN( DISTINCT + 24 ) * + 57 + + ( - 55 ) ) * - 79 - - 62 - 1 * - 85 * + 92 * - + COALESCE ( + 53, 96 * - 83 DIV 93, + 0 )
----
137700
-411238

skipif mysql # not compatible
query II rowsort label-9023
SELECT DISTINCT 51 * - 60 * - + COALESCE ( 45, + CAST ( NULL AS INTEGER ) - - + 9 / + COUNT ( * ) ) col2, NULLIF ( - 40, - MIN ( DISTINCT + 24 ) * + 57 + + ( - 55 ) ) * - 79 - - 62 - 1 * - 85 * + 92 * - + COALESCE ( + 53, 96 * - 83 / 93, + 0 )
----
137700
-411238

query I rowsort
SELECT ALL 9 + - 90 * - - 13 AS col0
----
-1161

query II rowsort
SELECT DISTINCT + 7 * - 60 AS col1, + 42
----
-420
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + ( - COALESCE ( NULLIF ( - + 24, - + 31 + + 37 * NULLIF ( 25, 93 ) + + COUNT( DISTINCT + 49 ) ), COALESCE ( 16, 69 ) * + + 8 * - - 55 + 5 ) ) * + 7
----
168

skipif mysql # not compatible
query I rowsort label-9026
SELECT + ( - COALESCE ( NULLIF ( - + 24, - + 31 + + 37 * NULLIF ( 25, 93 ) + + COUNT ( DISTINCT + 49 ) ), COALESCE ( 16, 69 ) * + + 8 * - - 55 + 5 ) ) * + 7
----
168

query I rowsort
SELECT + 37 + 15 * - NULLIF ( - 77, 4 ) + 97 AS col2
----
1289

onlyif mysql # aggregate syntax: 
query II rowsort label-9028
SELECT DISTINCT 43 - + 24 AS col0, - CASE - - COUNT( * ) WHEN + 16 THEN + 92 ELSE 8 END AS col2
----
19
-8

skipif mysql # not compatible
query II rowsort label-9028
SELECT DISTINCT 43 - + 24 AS col0, - CASE - - COUNT ( * ) WHEN + 16 THEN + 92 ELSE 8 END AS col2
----
19
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - COUNT( 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-9029
SELECT - COUNT ( 63 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT + COALESCE ( 83, - COUNT( * ) * 70 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9030
SELECT + COALESCE ( 83, - COUNT ( * ) * 70 ) AS col0
----
83

query I rowsort
SELECT + + 61 + 74
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-9032
SELECT ALL + ( + MAX( DISTINCT 65 ) ) col2, - 75 AS col1
----
65
-75

skipif mysql # not compatible
query II rowsort label-9032
SELECT ALL + ( + MAX ( DISTINCT 65 ) ) col2, - 75 AS col1
----
65
-75

query I rowsort
SELECT + + 92 * - + 72 col0
----
-6624

onlyif mysql # aggregate syntax: 
query II rowsort label-9034
SELECT ALL 41 * + 42 * + 30 AS col2, COUNT( * ) AS col0
----
51660
1

skipif mysql # not compatible
query II rowsort label-9034
SELECT ALL 41 * + 42 * + 30 AS col2, COUNT ( * ) AS col0
----
51660
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT 50 * - SUM( 50 ) * COUNT( * ) * 30 - + 8 col0
----
-75008

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT 50 * - SUM ( 50 ) * COUNT ( * ) * 30 - + 8 col0
----
-75008

query I rowsort
SELECT DISTINCT + 53 * - 87 AS col0
----
-4611

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT + 38 * + 25, - COUNT( * ) * + - 56 + 0 AS col0
----
950
56

skipif mysql # not compatible
query II rowsort label-9037
SELECT + 38 * + 25, - COUNT ( * ) * + - 56 + 0 AS col0
----
950
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT ALL COUNT( * ) * - 77 + + MAX( ALL + 79 ) + - + 3
----
-1

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL COUNT ( * ) * - 77 + + MAX ( ALL + 79 ) + - + 3
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9039
SELECT DISTINCT + + CASE - 9 WHEN - - NULLIF ( + + 34, - - ( - COUNT( - + 1 ) ) * + 28 ) THEN NULL ELSE 17 DIV + + 88 END, - 68 AS col2
----
0
-68

skipif mysql # not compatible
query II rowsort label-9039
SELECT DISTINCT + + CASE - 9 WHEN - - NULLIF ( + + 34, - - ( - COUNT ( - + 1 ) ) * + 28 ) THEN NULL ELSE 17 / + + 88 END, - 68 AS col2
----
0
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT + NULLIF ( + - 61, 56 ) DIV 21
----
-2

skipif mysql # not compatible
query I rowsort label-9040
SELECT + NULLIF ( + - 61, 56 ) / 21
----
-2

query I rowsort
SELECT + + 90 * + 6 * - 35 * 89
----
-1682100

query I rowsort
SELECT + + 12 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT - 63 / - CASE + - 93 WHEN + + 8 THEN + 78 + 20 ELSE NULL END * COUNT( * ) - + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT - 63 / - CASE + - 93 WHEN + + 8 THEN + 78 + 20 ELSE NULL END * COUNT ( * ) - + 80 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT ALL 84 DIV + + 88 * 91 + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL 84 / + + 88 * 91 + 58 AS col2
----
58

query I rowsort
SELECT ALL + + 71 * + 1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT + MAX( ALL + + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-9046
SELECT + MAX ( ALL + + 39 )
----
39

query I rowsort
SELECT DISTINCT ( + 25 ) * + + 34 + - - 35
----
885

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9048
SELECT DISTINCT 89 * 84 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT 89 * 84 + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 92 * + - COALESCE ( + - 70, 28 + + ( + - 30 ) ) * 11 col2
----
70840

query I rowsort
SELECT + 50 col0
----
50

query I rowsort
SELECT DISTINCT 26 * - 48 * + 53 + 0 AS col0
----
-66144

onlyif mysql # aggregate syntax: 
query II rowsort label-9052
SELECT - 74 * - 65 * + + 70 AS col2, COUNT( * ) * + 70 col0
----
336700
70

skipif mysql # not compatible
query II rowsort label-9052
SELECT - 74 * - 65 * + + 70 AS col2, COUNT ( * ) * + 70 col0
----
336700
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT - CASE - 69 WHEN + - 40 * - COUNT( * ) + + + 31 THEN + 21 / + 41 + 5 * 30 * - COUNT( * ) - - - ( + + 28 ) END + - ( + - NULLIF ( - + CAST( NULL AS SIGNED ), + 82 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT - CASE - 69 WHEN + - 40 * - COUNT ( * ) + + + 31 THEN + 21 / + 41 + 5 * 30 * - COUNT ( * ) - - - ( + + 28 ) END + - ( + - NULLIF ( - + CAST ( NULL AS INTEGER ), + 82 ) )
----
NULL

query I rowsort
SELECT DISTINCT 63 * - 16 * - 59 + 31 * + 30
----
60402

onlyif mysql # DIV for integer division: 
query I rowsort label-9055
SELECT ALL - 30 DIV 5 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - 30 / 5 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9056
SELECT DISTINCT - 48 DIV + 21 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT - 48 / + 21 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9057
SELECT COUNT( * ) AS col1, 89 + - 25 AS col2
----
1
64

skipif mysql # not compatible
query II rowsort label-9057
SELECT COUNT ( * ) AS col1, 89 + - 25 AS col2
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT - 91 + COUNT( * ) + 50 + + - NULLIF ( + - 46, 13 * 68 * - 1 + - 48 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9058
SELECT - 91 + COUNT ( * ) + 50 + + - NULLIF ( + - 46, 13 * 68 * - 1 + - 48 ) AS col0
----
6

query I rowsort
SELECT + 73 + + + 45
----
118

query II rowsort
SELECT - 82 AS col0, 80 AS col0
----
-82
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT COUNT( - 5 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9061
SELECT COUNT ( - 5 ) AS col2
----
1

query I rowsort
SELECT ALL + ( + 91 ) * + + 32
----
2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9063
SELECT DISTINCT CAST( NULL AS SIGNED ) * CAST( - + 83 AS DECIMAL ) * - 22 + - 36 * 72 * - - NULLIF ( 6, - COUNT( * ) + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CAST ( - + 83 AS REAL ) * - 22 + - 36 * 72 * - - NULLIF ( 6, - COUNT ( * ) + 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT - COUNT( * ) + 56 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9064
SELECT - COUNT ( * ) + 56 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-9065
SELECT DISTINCT 26 col2, SUM( ALL 1 ) + - 27
----
26
-26

skipif mysql # not compatible
query II rowsort label-9065
SELECT DISTINCT 26 col2, SUM ( ALL 1 ) + - 27
----
26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL + 24 * ( MAX( DISTINCT + 86 ) )
----
2064

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL + 24 * ( MAX ( DISTINCT + 86 ) )
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL SUM( DISTINCT - - 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL SUM ( DISTINCT - - 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT + 36 * - NULLIF ( - - 28, COUNT( * ) ) AS col2
----
-1008

skipif mysql # not compatible
query I rowsort label-9068
SELECT + 36 * - NULLIF ( - - 28, COUNT ( * ) ) AS col2
----
-1008

onlyif mysql # aggregate syntax: 
query II rowsort label-9069
SELECT + ( + NULLIF ( + 6, - COALESCE ( + 4, - - 98 ) + + 26 ) ) - - COUNT( * ) AS col0, + ( + COUNT( * ) )
----
7
1

skipif mysql # not compatible
query II rowsort label-9069
SELECT + ( + NULLIF ( + 6, - COALESCE ( + 4, - - 98 ) + + 26 ) ) - - COUNT ( * ) AS col0, + ( + COUNT ( * ) )
----
7
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9070
SELECT 91 + 8 - ( + 52 ) DIV 65 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-9070
SELECT 91 + 8 - ( + 52 ) / 65 AS col0
----
99

query I rowsort
SELECT + 2 * - 40
----
-80

query I rowsort
SELECT ALL 42 + 81
----
123

query I rowsort
SELECT - ( + 20 ) + + 93 * - + 96 + - 44
----
-8992

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9074
SELECT CASE + CAST( 93 AS DECIMAL ) WHEN 40 * - - 65 THEN + 83 WHEN - + NULLIF ( - + 77, + 98 ) THEN + 22 + + 95 - + 21 / - - ( + + NULLIF ( CAST( NULL AS SIGNED ), - - 71 + + 48 ) ) END + 59 AS col2, - 93
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-9074
SELECT CASE + CAST ( 93 AS REAL ) WHEN 40 * - - 65 THEN + 83 WHEN - + NULLIF ( - + 77, + 98 ) THEN + 22 + + 95 - + 21 / - - ( + + NULLIF ( CAST ( NULL AS INTEGER ), - - 71 + + 48 ) ) END + 59 AS col2, - 93
----
NULL
-93

query I rowsort
SELECT ALL - 48 + + + 11 * + - 36 + - + 79 AS col0
----
-523

query II rowsort
SELECT + 23 AS col0, - 55
----
23
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT 97 * - - COALESCE ( 73, - - MAX( 6 ) ) * + + 78 * ( + 73 ) + + MAX( DISTINCT - 9 ) + + COUNT( * )
----
40319206

skipif mysql # not compatible
query I rowsort label-9077
SELECT 97 * - - COALESCE ( 73, - - MAX ( 6 ) ) * + + 78 * ( + 73 ) + + MAX ( DISTINCT - 9 ) + + COUNT ( * )
----
40319206

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT ( - 96 ) * - + 99 * + - COUNT( * ) + - + COUNT( * )
----
-9505

skipif mysql # not compatible
query I rowsort label-9078
SELECT ( - 96 ) * - + 99 * + - COUNT ( * ) + - + COUNT ( * )
----
-9505

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9079
SELECT + COUNT( * ) DIV - - 57 + 39 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9079
SELECT + COUNT ( * ) / - - 57 + 39 AS col2
----
39

query I rowsort
SELECT ALL 69 + + 67 col0
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT 7 * + COUNT( * ), + 39 AS col2
----
7
39

skipif mysql # not compatible
query II rowsort label-9081
SELECT 7 * + COUNT ( * ), + 39 AS col2
----
7
39

query I rowsort
SELECT 81 * - + 45
----
-3645

query I rowsort
SELECT ALL 33 - + 73 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-9084
SELECT DISTINCT - ( - 10 ) * + + COUNT( * ) + + + 72 col1, - COALESCE ( + 43, - + 98 * - 89 * 27 ) AS col1
----
82
-43

skipif mysql # not compatible
query II rowsort label-9084
SELECT DISTINCT - ( - 10 ) * + + COUNT ( * ) + + + 72 col1, - COALESCE ( + 43, - + 98 * - 89 * 27 ) AS col1
----
82
-43

query I rowsort
SELECT DISTINCT - CASE WHEN NOT + 72 IS NOT NULL THEN NULL WHEN ( NOT + 14 + - 19 IS NULL ) OR NOT - 78 IS NOT NULL THEN - 65 ELSE + - ( - - 25 ) END AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9086
SELECT 6 * + 15 AS col1, MAX( + 34 ) * - 40 AS col2
----
90
-1360

skipif mysql # not compatible
query II rowsort label-9086
SELECT 6 * + 15 AS col1, MAX ( + 34 ) * - 40 AS col2
----
90
-1360

query I rowsort
SELECT ALL 26 * - 28 * + 61
----
-44408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT 77 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9088
SELECT 77 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 96 * + 95 AS col0
----
9120

query I rowsort
SELECT DISTINCT 25 * - 70
----
-1750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT + MIN( ALL + CAST( NULL AS SIGNED ) ) + + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT + MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + 45 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9092
SELECT DISTINCT - 31 DIV SUM( - - 46 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - 31 / SUM ( - - 46 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ALL - + 9 * + COUNT( ( - 69 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL - + 9 * + COUNT ( ( - 69 ) )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT CAST( NULL AS SIGNED ) / 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT CAST ( NULL AS INTEGER ) / 70 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT ALL - ( - 93 ) DIV + 42
----
2

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL - ( - 93 ) / + 42
----
2

query I rowsort
SELECT - 60 * + 15 + - - 45
----
-855

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9097
SELECT 57 + - - 0, - 29 * - CAST( NULL AS SIGNED ) * + 33 AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-9097
SELECT 57 + - - 0, - 29 * - CAST ( NULL AS INTEGER ) * + 33 AS col2
----
57
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9098
SELECT DISTINCT + - 42 + - - COUNT( * ) AS col1, 53
----
-41
53

skipif mysql # not compatible
query II rowsort label-9098
SELECT DISTINCT + - 42 + - - COUNT ( * ) AS col1, 53
----
-41
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT 50 + - COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9099
SELECT 50 + - COUNT ( * ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT COUNT( * ) * - + ( + 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9100
SELECT COUNT ( * ) * - + ( + 27 ) AS col0
----
-27

query I rowsort
SELECT DISTINCT 58 + 27
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9102
SELECT DISTINCT - + 37 * - COUNT( * ) col0, - 18 * - - 53 + + 65 AS col1
----
37
-889

skipif mysql # not compatible
query II rowsort label-9102
SELECT DISTINCT - + 37 * - COUNT ( * ) col0, - 18 * - - 53 + + 65 AS col1
----
37
-889

query I rowsort
SELECT ALL 76 + + 54 AS col2
----
130

query I rowsort
SELECT + ( - 66 ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9105
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - NULLIF ( - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ), ( + + 47 ) ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - NULLIF ( - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ), ( + + 47 ) ) + 68
----
NULL

query I rowsort
SELECT 62 * - 66
----
-4092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9107
SELECT DISTINCT 12 * 41 - - 26 - + - CAST( NULL AS SIGNED ) * + + ( + 83 ) * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT 12 * 41 - - 26 - + - CAST ( NULL AS INTEGER ) * + + ( + 83 ) * - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL COUNT( * ) - + 29 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL COUNT ( * ) - + 29 AS col0
----
-28

query I rowsort
SELECT NULLIF ( - 14, - 58 * - 71 + 58 ) * 55
----
-770

query I rowsort
SELECT ALL 27 * 27
----
729

query I rowsort
SELECT 16 - 37 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT + COALESCE ( + + 60, - 71 ) * - 41 * + 71 + - + 29 + - - COUNT( * ) * + 69 * 12
----
-173861

skipif mysql # not compatible
query I rowsort label-9112
SELECT + COALESCE ( + + 60, - 71 ) * - 41 * + 71 + - + 29 + - - COUNT ( * ) * + 69 * 12
----
-173861

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT SUM( 72 )
----
72

skipif mysql # not compatible
query I rowsort label-9113
SELECT SUM ( 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ( 37 ) * - MAX( DISTINCT - + 93 ) * + 36 * MAX( 73 )
----
9042948

skipif mysql # not compatible
query I rowsort label-9114
SELECT ( 37 ) * - MAX ( DISTINCT - + 93 ) * + 36 * MAX ( 73 )
----
9042948

query I rowsort
SELECT 6 * - - 80 col1
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT + 13 + - + 63 * + COUNT( * ) * - 88
----
5557

skipif mysql # not compatible
query I rowsort label-9116
SELECT + 13 + - + 63 * + COUNT ( * ) * - 88
----
5557

query I rowsort
SELECT + 57 * + 20
----
1140

query I rowsort
SELECT ALL - 41 + + 17 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT - - SUM( DISTINCT 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9119
SELECT - - SUM ( DISTINCT 20 ) AS col1
----
20

query I rowsort
SELECT ALL + 92 + 51 * - ( + - 86 ) AS col0
----
4478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9121
SELECT - + CASE + 24 WHEN 61 THEN + 72 ELSE + + ( - 50 ) DIV + 38 END + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT - + CASE + 24 WHEN 61 THEN + 72 ELSE + + ( - 50 ) / + 38 END + - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL ( - 68 ) + + 44
----
-24

query I rowsort
SELECT ALL + - 64 + + + 99 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT + 73 + + + 63 * COALESCE ( - 24, + 32 ) + + - CAST( - - 53 AS SIGNED )
----
-1492

skipif mysql # not compatible
query I rowsort label-9124
SELECT + 73 + + + 63 * COALESCE ( - 24, + 32 ) + + - CAST ( - - 53 AS INTEGER )
----
-1492

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT - - 45 - COALESCE ( SUM( + + 14 ), 10 + 51 * + 42 + - + 51, - 68 + - 75 * + 55 - + + 68 ) + - - 1 * + COUNT( * ) col0
----
32

skipif mysql # not compatible
query I rowsort label-9125
SELECT - - 45 - COALESCE ( SUM ( + + 14 ), 10 + 51 * + 42 + - + 51, - 68 + - 75 * + 55 - + + 68 ) + - - 1 * + COUNT ( * ) col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT - 48 * - + CAST( NULL AS SIGNED ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT - 48 * - + CAST ( NULL AS INTEGER ) * 84
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9127
SELECT - + COUNT( 39 ) DIV 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT - + COUNT ( 39 ) / 2 AS col2
----
0

query I rowsort
SELECT - 75 + - + 81
----
-156

query I rowsort
SELECT - ( 72 ) * + 35 AS col2
----
-2520

query II rowsort
SELECT DISTINCT + 13 AS col0, 32 + + 37 col2
----
13
69

query I rowsort
SELECT ALL 8 * + 27 - 47
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - COUNT( * ) + + - ( 13 )
----
-14

skipif mysql # not compatible
query I rowsort label-9132
SELECT - COUNT ( * ) + + - ( 13 )
----
-14

query I rowsort
SELECT DISTINCT - 62 * - - 81 AS col2
----
-5022

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ( NULLIF ( - - NULLIF ( + COUNT( * ), - 46 + - - 57 - + ( + 38 ) * - 44 ), + + 25 / 60 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9134
SELECT ( NULLIF ( - - NULLIF ( + COUNT ( * ), - 46 + - - 57 - + ( + 38 ) * - 44 ), + + 25 / 60 ) )
----
1

query I rowsort
SELECT + 73 + 36 + - 58
----
51

query I rowsort
SELECT ALL + 61 col1
----
61

query I rowsort
SELECT + NULLIF ( + 78, 92 ) AS col2
----
78

query I rowsort
SELECT + 50 + - - 11 col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + 14 * - COUNT( - 92 ) * + 42 col1
----
-588

skipif mysql # not compatible
query I rowsort label-9139
SELECT + 14 * - COUNT ( - 92 ) * + 42 col1
----
-588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT ALL CAST( NULL AS SIGNED ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL CAST ( NULL AS INTEGER ) * - 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT + 31 DIV 11 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9141
SELECT + 31 / 11 AS col1
----
2

query II rowsort
SELECT + 23 AS col0, 0 col0
----
23
0

query I rowsort
SELECT - 33 * - 95
----
3135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9144
SELECT + + 76 + + - CASE + 17 WHEN + CAST( - 40 AS SIGNED ) + + - COALESCE ( 57, 40 + - 80 * - - SUM( - ( 76 ) ) * + + 26 ) + + NULLIF ( - 44, - + 79 - - COUNT( * ) - + 81 * + + 35 ) THEN - 95 + + CASE - + ( COUNT( * ) ) WHEN COUNT( * ) THEN NULL ELSE 78 * + 76 END * + COUNT( * ) - - 94 WHEN + 69 THEN - + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT + + 76 + + - CASE + 17 WHEN + CAST ( - 40 AS INTEGER ) + + - COALESCE ( 57, 40 + - 80 * - - SUM ( - ( 76 ) ) * + + 26 ) + + NULLIF ( - 44, - + 79 - - COUNT ( * ) - + 81 * + + 35 ) THEN - 95 + + CASE - + ( COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL ELSE 78 * + 76 END * + COUNT ( * ) - - 94 WHEN + 69 THEN - + 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT - - MAX( + ( 37 ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9145
SELECT - - MAX ( + ( 37 ) ) AS col1
----
37

query I rowsort
SELECT + 78 + + + ( - + 34 )
----
44

query II rowsort
SELECT ALL 35 AS col1, - 4
----
35
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT DISTINCT + 30 + 89 + - 54 * - MIN( DISTINCT - + 88 ) * + + 85 AS col0
----
-403801

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT + 30 + 89 + - 54 * - MIN ( DISTINCT - + 88 ) * + + 85 AS col0
----
-403801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT ALL + 96 * - + NULLIF ( - 73, 91 ) + + 67 * + + 77 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + 96 * - + NULLIF ( - 73, 91 ) + + 67 * + + 77 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9150
SELECT + 58 AS col1, 69 + MAX( DISTINCT - 76 ) AS col1, 71
----
58
-7
71

skipif mysql # not compatible
query III rowsort label-9150
SELECT + 58 AS col1, 69 + MAX ( DISTINCT - 76 ) AS col1, 71
----
58
-7
71

query I rowsort
SELECT - + 74 + ( - + 39 )
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9152
SELECT DISTINCT - MAX( + 55 ) - 59 - 12 DIV + 93 * - NULLIF ( 68, + + 53 )
----
-114

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - MAX ( + 55 ) - 59 - 12 / + 93 * - NULLIF ( 68, + + 53 )
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-9153
SELECT - - 0 + - + 52 + - + 74 * + - 32, - COUNT( * ) + + 67 AS col2
----
2316
66

skipif mysql # not compatible
query II rowsort label-9153
SELECT - - 0 + - + 52 + - + 74 * + - 32, - COUNT ( * ) + + 67 AS col2
----
2316
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT ALL + 36 * + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + 36 * + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9155
SELECT + 81, 67 + COALESCE ( + 10, + 0 * - + CAST( NULL AS SIGNED ) - - 77 ) AS col1
----
81
77

skipif mysql # not compatible
query II rowsort label-9155
SELECT + 81, 67 + COALESCE ( + 10, + 0 * - + CAST ( NULL AS INTEGER ) - - 77 ) AS col1
----
81
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + 94 * SUM( - 8 ) AS col0
----
-752

skipif mysql # not compatible
query I rowsort label-9156
SELECT + 94 * SUM ( - 8 ) AS col0
----
-752

query I rowsort
SELECT ALL 16 * - 80 * + 57
----
-72960

onlyif mysql # aggregate syntax: 
query II rowsort label-9158
SELECT ALL + 2 - - 15 AS col1, 4 + + CASE + 74 WHEN - 12 THEN NULL ELSE + 78 END / - NULLIF ( + CASE - NULLIF ( + - 47, - 92 ) WHEN - - 13 + - 65 THEN - 4 WHEN 93 * 61 THEN NULLIF ( + 53, 29 ) * + 23 ELSE NULL END, 16 + + MAX( - ( - 68 ) ) * + ( 62 ) ) * - + 81 + 49 * 82 * - - 66 AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-9158
SELECT ALL + 2 - - 15 AS col1, 4 + + CASE + 74 WHEN - 12 THEN NULL ELSE + 78 END / - NULLIF ( + CASE - NULLIF ( + - 47, - 92 ) WHEN - - 13 + - 65 THEN - 4 WHEN 93 * 61 THEN NULLIF ( + 53, 29 ) * + 23 ELSE NULL END, 16 + + MAX ( - ( - 68 ) ) * + ( 62 ) ) * - + 81 + 49 * 82 * - - 66 AS col1
----
17
NULL

query I rowsort
SELECT ALL NULLIF ( + 94, - 67 + + 64 * 90 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - 80 * COUNT( * ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9160
SELECT - 80 * COUNT ( * ) AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT + 9 / - - CAST( NULL AS SIGNED ) / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT + 9 / - - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT + MAX( DISTINCT + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9162
SELECT + MAX ( DISTINCT + 2 ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT - 44 DIV + 34 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9163
SELECT - 44 / + 34 AS col2
----
-1

query I rowsort
SELECT - 50 * 3 * + - ( + + 24 ) * - + 4 AS col2
----
-14400

onlyif mysql # DIV for integer division: 
query I rowsort label-9165
SELECT ALL - 11 DIV + 24 * - 29 + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL - 11 / + 24 * - 29 + - 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT - COUNT( * ) * 71 * 21 - + 49
----
-1540

skipif mysql # not compatible
query I rowsort label-9166
SELECT - COUNT ( * ) * 71 * 21 - + 49
----
-1540

query I rowsort
SELECT ALL - 68 + 2 col0
----
-66

query I rowsort
SELECT 50 - + + 84 * - 27 * + 34 AS col1
----
77162

query I rowsort
SELECT - - 83 * 76 + - - 98 + + - 52 AS col2
----
6354

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT - CASE WHEN NOT + COUNT( DISTINCT 9 ) IS NULL THEN - 52 ELSE NULL END
----
52

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT - CASE WHEN NOT + COUNT ( DISTINCT 9 ) IS NULL THEN - 52 ELSE NULL END
----
52

query I rowsort
SELECT DISTINCT + 14 + + 89 * 49
----
4375

onlyif mysql # aggregate syntax: 
query II rowsort label-9172
SELECT + + SUM( 60 ) AS col0, COUNT( * ) + + 0 - - 56 + + - 35 + + 24 AS col0
----
60
46

skipif mysql # not compatible
query II rowsort label-9172
SELECT + + SUM ( 60 ) AS col0, COUNT ( * ) + + 0 - - 56 + + - 35 + + 24 AS col0
----
60
46

query I rowsort
SELECT 4 + 51 * + 24 * 83
----
101596

query I rowsort
SELECT + + 89 * - 97 + + 11
----
-8622

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL MAX( - 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL MAX ( - 96 ) AS col1
----
-96

query I rowsort
SELECT DISTINCT - - 31 - - 57 AS col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-9177
SELECT + 3 * + 48 col2, - NULLIF ( - 93, - + COUNT( * ) ) * 8 - 71
----
144
673

skipif mysql # not compatible
query II rowsort label-9177
SELECT + 3 * + 48 col2, - NULLIF ( - 93, - + COUNT ( * ) ) * 8 - 71
----
144
673

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT COUNT( * ) + + + COALESCE ( + + 86, + + 9 * - 56 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-9178
SELECT COUNT ( * ) + + + COALESCE ( + + 86, + + 9 * - 56 ) AS col2
----
87

query I rowsort
SELECT ALL + ( + 38 ) AS col1
----
38

query II rowsort
SELECT 50 * 86 AS col2, 85
----
4300
85

query I rowsort
SELECT DISTINCT - + 89 - 29 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-9182
SELECT 83 + - ( + 58 ) + 81 + + 58 * ( + + COUNT( * ) ) + - 76, 56 AS col1
----
88
56

skipif mysql # not compatible
query II rowsort label-9182
SELECT 83 + - ( + 58 ) + 81 + + 58 * ( + + COUNT ( * ) ) + - 76, 56 AS col1
----
88
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9183
SELECT DISTINCT - MAX( DISTINCT + 7 ) col2, - 39
----
-7
-39

skipif mysql # not compatible
query II rowsort label-9183
SELECT DISTINCT - MAX ( DISTINCT + 7 ) col2, - 39
----
-7
-39

query I rowsort
SELECT 81 + 91 * + 25 * + 94
----
213931

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT COUNT( * ) - 73
----
-72

skipif mysql # not compatible
query I rowsort label-9185
SELECT COUNT ( * ) - 73
----
-72

query I rowsort
SELECT ALL CASE 35 WHEN 15 THEN - - 48 WHEN + 4 THEN NULL ELSE NULL END * - + 79 * - 11 * - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ( + COUNT( * ) ) + + 78 * 25
----
1951

skipif mysql # not compatible
query I rowsort label-9187
SELECT ( + COUNT ( * ) ) + + 78 * 25
----
1951

query I rowsort
SELECT 26 + 44 + + + 1 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL MIN( - 98 ) + - 80
----
-178

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL MIN ( - 98 ) + - 80
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT COALESCE ( - + 32, + 67 ) + + MIN( 0 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9190
SELECT COALESCE ( - + 32, + 67 ) + + MIN ( 0 ) AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9191
SELECT 44 DIV ( - - COUNT( * ) ) + - + 27 + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9191
SELECT 44 / ( - - COUNT ( * ) ) + - + 27 + + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9192
SELECT ALL - 86 col0, 36 + COUNT( * )
----
-86
37

skipif mysql # not compatible
query II rowsort label-9192
SELECT ALL - 86 col0, 36 + COUNT ( * )
----
-86
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT COUNT( * ) * + + 55 + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-9193
SELECT COUNT ( * ) * + + 55 + - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL 96 + - 33 * - COUNT( 1 )
----
129

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL 96 + - 33 * - COUNT ( 1 )
----
129

query I rowsort
SELECT 5 * - 69 AS col0
----
-345

query II rowsort
SELECT 83 AS col2, 83 * ( 31 ) + + 27 * - 54
----
83
1115

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + COUNT( * ) * - - 76 * + 62 + 19 AS col1
----
4731

skipif mysql # not compatible
query I rowsort label-9197
SELECT + COUNT ( * ) * - - 76 * + 62 + 19 AS col1
----
4731

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL - COUNT( 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL - COUNT ( 94 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9199
SELECT 25 DIV - + 69
----
0

skipif mysql # not compatible
query I rowsort label-9199
SELECT 25 / - + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT 60 + + - 21 + + 59 - - 55 - + + 14 * - 93 * + MIN( ALL - ( - + 0 ) ) * 65 * - COUNT( * )
----
153

skipif mysql # not compatible
query I rowsort label-9200
SELECT 60 + + - 21 + + 59 - - 55 - + + 14 * - 93 * + MIN ( ALL - ( - + 0 ) ) * 65 * - COUNT ( * )
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT COUNT( * ) * - + 71
----
-71

skipif mysql # not compatible
query I rowsort label-9201
SELECT COUNT ( * ) * - + 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9202
SELECT ALL + + ( 29 ) + + 73 AS col0, COUNT( DISTINCT - - ( + - CAST( + 16 AS SIGNED ) ) ) AS col0
----
102
1

skipif mysql # not compatible
query II rowsort label-9202
SELECT ALL + + ( 29 ) + + 73 AS col0, COUNT ( DISTINCT - - ( + - CAST ( + 16 AS INTEGER ) ) ) AS col0
----
102
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL - CASE + 46 WHEN - + MAX( ALL - 12 ) THEN NULL ELSE - 57 END col2
----
57

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - CASE + 46 WHEN - + MAX ( ALL - 12 ) THEN NULL ELSE - 57 END col2
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-9204
SELECT - 51 DIV ( + 89 ) AS col2, 74 - - - 17 AS col0
----
0
57

skipif mysql # not compatible
query II rowsort label-9204
SELECT - 51 / ( + 89 ) AS col2, 74 - - - 17 AS col0
----
0
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL - COUNT( - 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL - COUNT ( - 15 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT ALL - - 41 * 53 + CAST( - MIN( - - 21 ) AS SIGNED )
----
2152

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL - - 41 * 53 + CAST ( - MIN ( - - 21 ) AS INTEGER )
----
2152

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT - - NULLIF ( + 4, - COUNT( * ) ) * 78 + 60 - + + 26
----
346

skipif mysql # not compatible
query I rowsort label-9207
SELECT - - NULLIF ( + 4, - COUNT ( * ) ) * 78 + 60 - + + 26
----
346

query II rowsort
SELECT + 92 AS col1, 16 AS col2
----
92
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9209
SELECT - 0 * + CASE - 48 WHEN + 79 * - CASE + CAST( NULL AS DECIMAL ) WHEN - 75 THEN + 13 * + COUNT( * ) + 41 END - + 34 THEN 38 * + 40 WHEN - 31 + 93 + - ( - 75 ) THEN + 33 WHEN - - 7 - + 95 + - 51 THEN NULL ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT - 0 * + CASE - 48 WHEN + 79 * - CASE + CAST ( NULL AS REAL ) WHEN - 75 THEN + 13 * + COUNT ( * ) + 41 END - + 34 THEN 38 * + 40 WHEN - 31 + 93 + - ( - 75 ) THEN + 33 WHEN - - 7 - + 95 + - 51 THEN NULL ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT - COUNT( * ) + - - 27 * - NULLIF ( - MAX( + + 33 ), - 94 * COUNT( * ) + - 60 - + + 41 / - 10 * NULLIF ( 88, CAST( 30 AS SIGNED ) / 24 / - + 19 ) + + 62 ) * 65 AS col2
----
57914

skipif mysql # not compatible
query I rowsort label-9210
SELECT - COUNT ( * ) + - - 27 * - NULLIF ( - MAX ( + + 33 ), - 94 * COUNT ( * ) + - 60 - + + 41 / - 10 * NULLIF ( 88, CAST ( 30 AS INTEGER ) / 24 / - + 19 ) + + 62 ) * 65 AS col2
----
57914

query II rowsort
SELECT - - 19, 98 * + + 34 AS col2
----
19
3332

query II rowsort
SELECT ALL + 62 col0, 82
----
62
82

query II rowsort
SELECT ALL 54 AS col2, 85 AS col2
----
54
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT + + 12 * - COUNT( * ) + + 83 * 68 - - COUNT( * ) AS col2
----
5633

skipif mysql # not compatible
query I rowsort label-9214
SELECT + + 12 * - COUNT ( * ) + + 83 * 68 - - COUNT ( * ) AS col2
----
5633

onlyif mysql # aggregate syntax: 
query II rowsort label-9215
SELECT ALL COUNT( * ) AS col2, + 23 + - 59 AS col2
----
1
-36

skipif mysql # not compatible
query II rowsort label-9215
SELECT ALL COUNT ( * ) AS col2, + 23 + - 59 AS col2
----
1
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9216
SELECT ALL CAST( NULL AS SIGNED ), CAST( - 77 AS SIGNED ) - COUNT( DISTINCT 25 ) AS col2
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-9216
SELECT ALL CAST ( NULL AS INTEGER ), CAST ( - 77 AS INTEGER ) - COUNT ( DISTINCT 25 ) AS col2
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ( - - 76 ) * + 57 * COUNT( * ) - + 80 - + MAX( DISTINCT - 55 ) + + - 40 + - + CASE + - 42 WHEN + 35 + + 20 THEN + NULLIF ( 59, - + 82 + + COUNT( * ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT ( - - 76 ) * + 57 * COUNT ( * ) - + 80 - + MAX ( DISTINCT - 55 ) + + - 40 + - + CASE + - 42 WHEN + 35 + + 20 THEN + NULLIF ( 59, - + 82 + + COUNT ( * ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT MAX( DISTINCT - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT MAX ( DISTINCT - 59 ) AS col1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9219
SELECT 74 + - + CAST( + + 56 AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9219
SELECT 74 + - + CAST ( + + 56 AS INTEGER ) AS col2
----
18

query I rowsort
SELECT COALESCE ( + + 4, - + 49, - 72 ) + + - 23
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9221
SELECT 90 * - - 87 AS col1, 26 + 11 + - COUNT( * )
----
7830
36

skipif mysql # not compatible
query II rowsort label-9221
SELECT 90 * - - 87 AS col1, 26 + 11 + - COUNT ( * )
----
7830
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT COUNT( * ) + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-9222
SELECT COUNT ( * ) + - 99
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9223
SELECT ALL ( 63 ) + - CAST( - + COALESCE ( - 87, + 21, + 67 ) AS SIGNED ) + + 67 + 10 AS col2, 50
----
53
50

skipif mysql # not compatible
query II rowsort label-9223
SELECT ALL ( 63 ) + - CAST ( - + COALESCE ( - 87, + 21, + 67 ) AS INTEGER ) + + 67 + 10 AS col2, 50
----
53
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9224
SELECT ALL + COUNT( * ) * + + 11 DIV 85 DIV - - 19
----
0

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL + COUNT ( * ) * + + 11 / 85 / - - 19
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9225
SELECT ALL CASE SUM( DISTINCT + + 94 ) WHEN - + 83 THEN NULL WHEN - + 42 * 76 / - 4 THEN - 19 * - 17 - - CAST( NULL AS SIGNED ) + + COUNT( 52 ) - + 47 + - ( - - 54 ) * + + CASE + 77 WHEN - 19 THEN + + ( + 0 ) END WHEN - 30 / - 21 THEN NULL END / + + 27 * - - 61 * 13, 30 + + 89 AS col0
----
NULL
119

skipif mysql # not compatible
query II rowsort label-9225
SELECT ALL CASE SUM ( DISTINCT + + 94 ) WHEN - + 83 THEN NULL WHEN - + 42 * 76 / - 4 THEN - 19 * - 17 - - CAST ( NULL AS INTEGER ) + + COUNT ( 52 ) - + 47 + - ( - - 54 ) * + + CASE + 77 WHEN - 19 THEN + + ( + 0 ) END WHEN - 30 / - 21 THEN NULL END / + + 27 * - - 61 * 13, 30 + + 89 AS col0
----
NULL
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT DISTINCT + MAX( ALL + 97 ) + - 11 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT + MAX ( ALL + 97 ) + - 11 AS col0
----
86

query I rowsort
SELECT ALL 20 + - 31 + + - 97 AS col1
----
-108

query I rowsort
SELECT DISTINCT 44 + 65
----
109

query I rowsort
SELECT - 3 - - + 6 + + 1 AS col1
----
4

query I rowsort
SELECT + 85 * - 11 AS col2
----
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT + MAX( DISTINCT - 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9231
SELECT + MAX ( DISTINCT - 71 ) AS col2
----
-71

query I rowsort
SELECT + 49 - + 18 AS col1
----
31

query I rowsort
SELECT ALL 54 * + 21
----
1134

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT DISTINCT + COUNT( DISTINCT 50 ), + 56 AS col1
----
1
56

skipif mysql # not compatible
query II rowsort label-9234
SELECT DISTINCT + COUNT ( DISTINCT 50 ), + 56 AS col1
----
1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT ( + ( - 34 ) ) * + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT ( + ( - 34 ) ) * + COUNT ( * )
----
-34

query I rowsort
SELECT + ( + + 66 )
----
66

query I rowsort
SELECT ALL - 24 * - - 23 - - 91 * + 26
----
1814

query I rowsort
SELECT + 58 * - - ( 46 ) * - ( + 29 ) * 87 * - NULLIF ( + + 94, + + 78 )
----
632748216

query I rowsort
SELECT + 1 + + NULLIF ( - 78, - 39 * 79 / + 42 - + CASE 42 WHEN 25 * + + 57 - - - 70 THEN - ( + 9 ) + - 54 ELSE + 32 END - 20 / 74 * - 99 + + 78 ) * 22 AS col1
----
-1715

query I rowsort
SELECT - - 52 * + 92 + + ( - - 50 ) + + 34 AS col2
----
4868

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT + + 93 * 29, COUNT( ALL - 17 ) AS col2
----
2697
1

skipif mysql # not compatible
query II rowsort label-9241
SELECT + + 93 * 29, COUNT ( ALL - 17 ) AS col2
----
2697
1

query I rowsort
SELECT + + COALESCE ( - 71, - 53 ) + + + 83
----
12

query I rowsort
SELECT DISTINCT + - 25 col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - - 51 * 96 + - MAX( + ( - + 52 ) ) AS col1
----
4948

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - - 51 * 96 + - MAX ( + ( - + 52 ) ) AS col1
----
4948

query I rowsort
SELECT ALL 43 * 76 * - 82 AS col2
----
-267976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9246
SELECT ALL - 88 * + CAST( 40 AS SIGNED )
----
-3520

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - 88 * + CAST ( 40 AS INTEGER )
----
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT - 57 + + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-9247
SELECT - 57 + + COUNT ( * )
----
-56

query II rowsort
SELECT - 84 AS col1, 47 * - CASE + 47 WHEN ( + 79 ) THEN - 85 END AS col1
----
-84
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9249
SELECT - 51 * ( - + CASE + + 45 WHEN COALESCE ( - 24, 13 + - 38 ) + - COUNT( * ) THEN + + 26 DIV + 26 + - SUM( DISTINCT - + 62 ) - + COUNT( * ) * ( + - 65 ) + 12 * 71 DIV + - CAST( NULL AS SIGNED ) WHEN - 77 * - 48 THEN NULL WHEN - 61 THEN NULL WHEN 7 THEN NULL ELSE 88 + 49 END ) AS col1
----
6987

skipif mysql # not compatible
query I rowsort label-9249
SELECT - 51 * ( - + CASE + + 45 WHEN COALESCE ( - 24, 13 + - 38 ) + - COUNT ( * ) THEN + + 26 / + 26 + - SUM ( DISTINCT - + 62 ) - + COUNT ( * ) * ( + - 65 ) + 12 * 71 / + - CAST ( NULL AS INTEGER ) WHEN - 77 * - 48 THEN NULL WHEN - 61 THEN NULL WHEN 7 THEN NULL ELSE 88 + 49 END ) AS col1
----
6987

query I rowsort
SELECT - 63 + - - 53 + - + 48 * 43 col0
----
-2074

query I rowsort
SELECT DISTINCT - ( - 89 ) * - - 63
----
5607

query I rowsort
SELECT ALL + 44 + + 23
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL COALESCE ( - - NULLIF ( + ( 99 ), + COUNT( * ) * + - 1 ), + 49 * + - 71 ) * + + 13
----
1287

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL COALESCE ( - - NULLIF ( + ( 99 ), + COUNT ( * ) * + - 1 ), + 49 * + - 71 ) * + + 13
----
1287

query I rowsort
SELECT - 15 + - 8
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ALL + 81 + 88 + - COUNT( - - 81 ) AS col1
----
168

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL + 81 + 88 + - COUNT ( - - 81 ) AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT - 3 + + + 37 * + 89 - COUNT( * )
----
3289

skipif mysql # not compatible
query I rowsort label-9256
SELECT - 3 + + + 37 * + 89 - COUNT ( * )
----
3289

query I rowsort
SELECT - 9 - - ( + 61 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9258
SELECT ALL + ( 8 ) * 55 * - 38 / AVG ( - 70 ) + + 42 + + - CASE - CASE + CASE 81 WHEN + 34 THEN NULL ELSE - 50 END WHEN 29 + - 99 / - 75 THEN - - 56 * CASE COUNT( * ) WHEN 19 THEN + 79 END + 33 END WHEN 22 THEN NULL WHEN 99 THEN + NULLIF ( + 53, + CASE CAST( NULL AS SIGNED ) WHEN - 21 THEN - - 65 WHEN CAST( - - 46 AS SIGNED ) THEN 29 + + - 97 * + 39 ELSE + 32 END ) ELSE NULL END + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL + ( 8 ) * 55 * - 38 / AVG ( - 70 ) + + 42 + + - CASE - CASE + CASE 81 WHEN + 34 THEN NULL ELSE - 50 END WHEN 29 + - 99 / - 75 THEN - - 56 * CASE COUNT ( * ) WHEN 19 THEN + 79 END + 33 END WHEN 22 THEN NULL WHEN 99 THEN + NULLIF ( + 53, + CASE CAST ( NULL AS INTEGER ) WHEN - 21 THEN - - 65 WHEN CAST ( - - 46 AS INTEGER ) THEN 29 + + - 97 * + 39 ELSE + 32 END ) ELSE NULL END + + 18
----
NULL

query I rowsort
SELECT - 79 + - 14
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT + COUNT( DISTINCT - 60 ) - - 8 * + 40 * + 42 * + 35 AS col1
----
470401

skipif mysql # not compatible
query I rowsort label-9260
SELECT + COUNT ( DISTINCT - 60 ) - - 8 * + 40 * + 42 * + 35 AS col1
----
470401

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT - 96 * + 16 * - + SUM( ALL 60 ) AS col0
----
92160

skipif mysql # not compatible
query I rowsort label-9261
SELECT - 96 * + 16 * - + SUM ( ALL 60 ) AS col0
----
92160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT DISTINCT CAST( - + 55 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT CAST ( - + 55 AS INTEGER ) AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT ALL - ( + 38 ) - + CAST( - CAST( COUNT( - ( + 48 ) ) AS SIGNED ) AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - ( + 38 ) - + CAST ( - CAST ( COUNT ( - ( + 48 ) ) AS INTEGER ) AS INTEGER ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT ALL + 55 * + - 77 * CASE 6 WHEN + - 66 THEN NULL WHEN - - ( - + COUNT( * ) ) + ( + + COUNT( * ) ) THEN 26 - - - 11 * 48 + - - 55 ELSE - CAST( NULL AS SIGNED ) + - - 70 + - 11 - + - COALESCE ( + - 70, 50 ) END * 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL + 55 * + - 77 * CASE 6 WHEN + - 66 THEN NULL WHEN - - ( - + COUNT ( * ) ) + ( + + COUNT ( * ) ) THEN 26 - - - 11 * 48 + - - 55 ELSE - CAST ( NULL AS INTEGER ) + - - 70 + - 11 - + - COALESCE ( + - 70, 50 ) END * 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT - COUNT( * ) + 39 + + - 6 DIV - 66 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9265
SELECT - COUNT ( * ) + 39 + + - 6 / - 66 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-9266
SELECT ALL 61 DIV 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL 61 / 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + 25 + SUM( + 47 )
----
72

skipif mysql # not compatible
query I rowsort label-9267
SELECT + 25 + SUM ( + 47 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT ALL + 93 DIV + 33
----
2

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + 93 / + 33
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT + 42 DIV + 59 col1
----
0

skipif mysql # not compatible
query I rowsort label-9269
SELECT + 42 / + 59 col1
----
0

query II rowsort
SELECT + - 89 AS col0, ( + 4 ) + 2 * 65 * + 98
----
-89
12744

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT + + 8 * - CASE - - 94 WHEN - MAX( 60 ) + + 54 THEN + 93 + - - 32 ELSE NULL END * - 13 + + 21 + - ( COUNT( * ) ) * - + MIN( + 26 ) + + 92 AS col0, - 44 * COUNT( * ) AS col0
----
NULL
-44

skipif mysql # not compatible
query II rowsort label-9271
SELECT + + 8 * - CASE - - 94 WHEN - MAX ( 60 ) + + 54 THEN + 93 + - - 32 ELSE NULL END * - 13 + + 21 + - ( COUNT ( * ) ) * - + MIN ( + 26 ) + + 92 AS col0, - 44 * COUNT ( * ) AS col0
----
NULL
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9272
SELECT 96 DIV - - 47 + 95 + + 19 * - 50 * 38
----
-36003

skipif mysql # not compatible
query I rowsort label-9272
SELECT 96 / - - 47 + 95 + + 19 * - 50 * 38
----
-36003

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + SUM( - COALESCE ( + 24, + 99 + + 45 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9273
SELECT + SUM ( - COALESCE ( + 24, + 99 + + 45 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + - ( COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9274
SELECT + - ( COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT + + 58 + + 90
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT + - 47 * COUNT( * ) * 95 * + SUM( - 65 )
----
290225

skipif mysql # not compatible
query I rowsort label-9276
SELECT + - 47 * COUNT ( * ) * 95 * + SUM ( - 65 )
----
290225

query I rowsort
SELECT DISTINCT + 19 * - 35
----
-665

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9278
SELECT DISTINCT + 8 * ( - CAST( NULL AS SIGNED ) ) * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + 8 * ( - CAST ( NULL AS INTEGER ) ) * + 28
----
NULL

query I rowsort
SELECT ALL + - ( + - 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9280
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - 62 AS col0
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-9280
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - 62 AS col0
----
NULL
-62

query I rowsort
SELECT + - 75 * - 9 * - 23 - - 39 * + 57 AS col2
----
-13302

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL + + MAX( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + + MAX ( + 24 )
----
24

query I rowsort
SELECT + + 20 * - 57 AS col2
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT - + NULLIF ( - COUNT( - 25 ), + 83 * - COUNT( ALL 38 ) / + + 23 ) + 54
----
55

skipif mysql # not compatible
query I rowsort label-9284
SELECT - + NULLIF ( - COUNT ( - 25 ), + 83 * - COUNT ( ALL 38 ) / + + 23 ) + 54
----
55

query I rowsort
SELECT + ( + - 21 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT 40 * + ( + MAX( CAST( + + 99 AS SIGNED ) ) ) + CAST( 45 AS SIGNED ) - - + 83 + - - ( - 71 ) / - NULLIF ( - 17, + - 35 + 85 ) / - CASE CASE + - 2 WHEN 95 + AVG ( 96 ) THEN + + 99 WHEN + - 3 / + COUNT( - - 29 ) THEN - 51 ELSE + + 8 END WHEN - 60 THEN - 58 END * + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT 40 * + ( + MAX ( CAST ( + + 99 AS INTEGER ) ) ) + CAST ( 45 AS INTEGER ) - - + 83 + - - ( - 71 ) / - NULLIF ( - 17, + - 35 + 85 ) / - CASE CASE + - 2 WHEN 95 + AVG ( 96 ) THEN + + 99 WHEN + - 3 / + COUNT ( - - 29 ) THEN - 51 ELSE + + 8 END WHEN - 60 THEN - 58 END * + 99 AS col0
----
NULL

query I rowsort
SELECT ALL + - 65 * - - 32 + 40 AS col1
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - COUNT( 47 ) + - 2 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9288
SELECT - COUNT ( 47 ) + - 2 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT CAST( NULL AS SIGNED ) + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT CAST ( NULL AS INTEGER ) + + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT + ( - COUNT( * ) ) * + - 29
----
29

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT + ( - COUNT ( * ) ) * + - 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL - 85 * CASE + 50 WHEN COUNT( * ) / - 2 THEN NULL WHEN - + 92 * - 78 * + 93 * + - 7 - + + SUM( ALL - 87 ) + + ( - 40 ) + 9 THEN - + 85 * + + 35 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - 85 * CASE + 50 WHEN COUNT ( * ) / - 2 THEN NULL WHEN - + 92 * - 78 * + 93 * + - 7 - + + SUM ( ALL - 87 ) + + ( - 40 ) + 9 THEN - + 85 * + + 35 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT COUNT( * ) * 54 * 46 * - 9 * 26
----
-581256

skipif mysql # not compatible
query I rowsort label-9292
SELECT COUNT ( * ) * 54 * 46 * - 9 * 26
----
-581256

query I rowsort
SELECT ALL 45 + - 59 col0
----
-14

query I rowsort
SELECT 41 + + 71 AS col2
----
112

query II rowsort
SELECT - 3, + 42 * 96 AS col0
----
-3
4032

query II rowsort
SELECT - 5, - 17 AS col2
----
-5
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9297
SELECT 51 + - + 15 * - CAST( NULL AS SIGNED ) * + 85 * + 80 - + - 74 * - + 54 / + + 81 * - - 71 / - 57 + 14, 97 - - + MAX( DISTINCT - - 34 ) AS col2
----
NULL
131

skipif mysql # not compatible
query II rowsort label-9297
SELECT 51 + - + 15 * - CAST ( NULL AS INTEGER ) * + 85 * + 80 - + - 74 * - + 54 / + + 81 * - - 71 / - 57 + 14, 97 - - + MAX ( DISTINCT - - 34 ) AS col2
----
NULL
131

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT 99 AS col0, - 66 + + 85 + + COUNT( * )
----
99
20

skipif mysql # not compatible
query II rowsort label-9298
SELECT 99 AS col0, - 66 + + 85 + + COUNT ( * )
----
99
20

query I rowsort
SELECT ALL + 23 * - 42 AS col1
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL + 50 - SUM( - 9 ) - + 67 * - + 93 - - 45 AS col2
----
6335

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + 50 - SUM ( - 9 ) - + 67 * - + 93 - - 45 AS col2
----
6335

query I rowsort
SELECT DISTINCT + 5 * + + 79 AS col1
----
395

query I rowsort
SELECT ALL - 51 - 52 * + + 97 * - 58 AS col1
----
292501

query II rowsort
SELECT - 29 AS col2, 76 AS col0
----
-29
76

query I rowsort
SELECT + 70 + + 27 AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9305
SELECT ALL - + COUNT( * ) AS col0, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9305
SELECT ALL - + COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT - CASE - 72 WHEN - COUNT( * ) THEN + + 11 END / 6 * 90 + - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT - CASE - 72 WHEN - COUNT ( * ) THEN + + 11 END / 6 * 90 + - 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT + CAST( - - 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-9307
SELECT + CAST ( - - 66 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT + 38 col2, 11 + - + 82 + + 66 + - CASE + 10 WHEN - 59 * - ( - COALESCE ( - 76, - MIN( ALL + + NULLIF ( ( - ( - 77 ) ), ( - 43 ) ) ) + - - COUNT( * ) ) ) + + - 18 + - 10 * 92 * - 60 + - 78 THEN + 24 WHEN - - 40 THEN NULL ELSE + 77 END * - 22 + - + 28 + - + 80 * - 45
----
38
5261

skipif mysql # not compatible
query II rowsort label-9308
SELECT + 38 col2, 11 + - + 82 + + 66 + - CASE + 10 WHEN - 59 * - ( - COALESCE ( - 76, - MIN ( ALL + + NULLIF ( ( - ( - 77 ) ), ( - 43 ) ) ) + - - COUNT ( * ) ) ) + + - 18 + - 10 * 92 * - 60 + - 78 THEN + 24 WHEN - - 40 THEN NULL ELSE + 77 END * - 22 + - + 28 + - + 80 * - 45
----
38
5261

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT 25 DIV + + 92
----
0

skipif mysql # not compatible
query I rowsort label-9309
SELECT 25 / + + 92
----
0

query I rowsort
SELECT ALL 63 + - 28 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT ( + 22 ) DIV - 18 - + 75
----
-76

skipif mysql # not compatible
query I rowsort label-9311
SELECT ( + 22 ) / - 18 - + 75
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9312
SELECT DISTINCT - 88 DIV 1 * - + 27 * - 38 + - + 68 AS col1
----
-90356

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT - 88 / 1 * - + 27 * - 38 + - + 68 AS col1
----
-90356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT CAST( - NULLIF ( - 99, + + CASE + + COUNT( * ) WHEN + - 40 THEN NULL ELSE + 95 END ) AS SIGNED ) col0
----
99

skipif mysql # not compatible
query I rowsort label-9313
SELECT CAST ( - NULLIF ( - 99, + + CASE + + COUNT ( * ) WHEN + - 40 THEN NULL ELSE + 95 END ) AS INTEGER ) col0
----
99

query I rowsort
SELECT DISTINCT - 96 + + 27
----
-69

query II rowsort
SELECT + - 14 * 21 * 35 + + 8, + 74 AS col1
----
-10282
74

query II rowsort
SELECT + + 30, 86 AS col2
----
30
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT 73 * + + 53 * + 12 * - 68 * + COUNT( * ) + + COALESCE ( - - 16, 24 ) AS col0
----
-3157088

skipif mysql # not compatible
query I rowsort label-9317
SELECT 73 * + + 53 * + 12 * - 68 * + COUNT ( * ) + + COALESCE ( - - 16, 24 ) AS col0
----
-3157088

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT - COUNT( * ) * NULLIF ( + ( + 27 ), + + 38 ) * - 27 * + SUM( DISTINCT - 99 ) AS col1
----
-72171

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - COUNT ( * ) * NULLIF ( + ( + 27 ), + + 38 ) * - 27 * + SUM ( DISTINCT - 99 ) AS col1
----
-72171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9319
SELECT NULLIF ( COALESCE ( + ( - 76 ), - - 7 * CASE CASE - 88 WHEN 22 + 71 THEN NULL ELSE - 98 * 38 + 71 END WHEN - + 71 + - 16 THEN NULL WHEN - 52 * - 17 + + + 86 THEN + MIN( ALL - 43 ) * + 53 - + - 55 + 38 + 17 * + NULLIF ( - COALESCE ( - 25, - 96 * SUM( DISTINCT 44 ), - 12 + - 23 * + + ( 64 ) ), - - 68 + - 76 + - 5 ) * - 65 + - 23 WHEN + 20 THEN - 97 ELSE 67 END + + COUNT( * ) + 89 + NULLIF ( + 47, - COUNT( * ) + - 3 ) DIV 79 ), 24 * + 66 + - 83 ) * + NULLIF ( + COUNT( * ) DIV + 42, + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT NULLIF ( COALESCE ( + ( - 76 ), - - 7 * CASE CASE - 88 WHEN 22 + 71 THEN NULL ELSE - 98 * 38 + 71 END WHEN - + 71 + - 16 THEN NULL WHEN - 52 * - 17 + + + 86 THEN + MIN ( ALL - 43 ) * + 53 - + - 55 + 38 + 17 * + NULLIF ( - COALESCE ( - 25, - 96 * SUM ( DISTINCT 44 ), - 12 + - 23 * + + ( 64 ) ), - - 68 + - 76 + - 5 ) * - 65 + - 23 WHEN + 20 THEN - 97 ELSE 67 END + + COUNT ( * ) + 89 + NULLIF ( + 47, - COUNT ( * ) + - 3 ) / 79 ), 24 * + 66 + - 83 ) * + NULLIF ( + COUNT ( * ) / + 42, + COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT DISTINCT CASE 93 WHEN - COUNT( * ) + 85 + - - 37 * + 26 THEN - CASE WHEN NULL IS NOT NULL THEN + 54 ELSE COUNT( * ) + - NULLIF ( MIN( ALL - + 77 ), + 49 * - 72 + - + 0 ) + - COUNT( 82 ) END END * + MIN( 82 ) / 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT CASE 93 WHEN - COUNT ( * ) + 85 + - - 37 * + 26 THEN - CASE WHEN NULL IS NOT NULL THEN + 54 ELSE COUNT ( * ) + - NULLIF ( MIN ( ALL - + 77 ), + 49 * - 72 + - + 0 ) + - COUNT ( 82 ) END END * + MIN ( 82 ) / 10 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT ALL COUNT( * ) + - 28 DIV 41
----
1

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL COUNT ( * ) + - 28 / 41
----
1

query I rowsort
SELECT ALL 93 col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9323
SELECT CAST( NULL AS SIGNED ) * 68 * SUM( ALL - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT CAST ( NULL AS INTEGER ) * 68 * SUM ( ALL - 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT - MIN( ALL + + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-9324
SELECT - MIN ( ALL + + 9 )
----
-9

query I rowsort
SELECT 31 + + + 44 - 92 * 89 AS col2
----
-8113

query I rowsort
SELECT DISTINCT 85 * + 20 AS col0
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT ALL CASE WHEN NOT + 99 NOT BETWEEN + CASE 46 WHEN + 9 THEN - - 49 / 79 WHEN 5 - - 97 THEN NULL END AND 12 * - COUNT( * ) + + + 27 THEN - 37 ELSE 62 END - - 33
----
95

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL CASE WHEN NOT + 99 NOT BETWEEN + CASE 46 WHEN + 9 THEN - - 49 / 79 WHEN 5 - - 97 THEN NULL END AND 12 * - COUNT ( * ) + + + 27 THEN - 37 ELSE 62 END - - 33
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT ALL - 91 * COUNT( * ), 26 AS col1
----
-91
26

skipif mysql # not compatible
query II rowsort label-9328
SELECT ALL - 91 * COUNT ( * ), 26 AS col1
----
-91
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT 50 + + + COUNT( * ) + 70 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-9329
SELECT 50 + + + COUNT ( * ) + 70 AS col2
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT DISTINCT 49 * CAST( - + SUM( + 70 ) AS SIGNED )
----
-3430

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT 49 * CAST ( - + SUM ( + 70 ) AS INTEGER )
----
-3430

query I rowsort
SELECT DISTINCT 25 * + COALESCE ( - 51, - ( + 56 ) + - 56, 83 + 15 * + 84 ) * + 93 col1
----
-118575

query I rowsort
SELECT 40 + + 85 + + 70 * + ( + + 11 ) AS col2
----
895

query I rowsort
SELECT 79 * + 35
----
2765

query I rowsort
SELECT - 37 + NULLIF ( + 44, 44 )
----
NULL

query II rowsort
SELECT - 77 * - 22 AS col0, 6 + - + 95 + + 47 + - 9 * + + 60 + 68 AS col1
----
1694
-514

query I rowsort
SELECT - ( - 79 ) + + + 40 * + 96
----
3919

query I rowsort
SELECT 50 + - 73 col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT ALL 64 + + CASE - CASE - CASE - - 13 WHEN + + MAX( 93 ) - - + 49 THEN - 37 ELSE NULL END WHEN - COUNT( * ) + + - ( - 4 ) * + 73 * - ( - 61 ) - - - 55 THEN - CASE - COUNT( * ) WHEN + 85 THEN NULL WHEN - + 89 THEN NULL ELSE + 79 END END WHEN 94 * + 77 THEN NULL WHEN + 6 + + ( + 95 ) THEN - ( + - 88 ) WHEN - 64 THEN + CAST( NULL AS SIGNED ) ELSE + NULLIF ( + 58, - 23 ) END AS col1
----
122

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL 64 + + CASE - CASE - CASE - - 13 WHEN + + MAX ( 93 ) - - + 49 THEN - 37 ELSE NULL END WHEN - COUNT ( * ) + + - ( - 4 ) * + 73 * - ( - 61 ) - - - 55 THEN - CASE - COUNT ( * ) WHEN + 85 THEN NULL WHEN - + 89 THEN NULL ELSE + 79 END END WHEN 94 * + 77 THEN NULL WHEN + 6 + + ( + 95 ) THEN - ( + - 88 ) WHEN - 64 THEN + CAST ( NULL AS INTEGER ) ELSE + NULLIF ( + 58, - 23 ) END AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL - COUNT( DISTINCT - 65 ) * + 59 + - 51
----
-110

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL - COUNT ( DISTINCT - 65 ) * + 59 + - 51
----
-110

query II rowsort
SELECT + 17 + + + 85 AS col0, - 79
----
102
-79

query I rowsort
SELECT ALL - + 87 AS col2
----
-87

query I rowsort
SELECT ALL - 59 * - 30 AS col0
----
1770

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - + COALESCE ( + - COUNT( * ), + MIN( - 84 ) ) * 69 + COUNT( * ) col2
----
70

skipif mysql # not compatible
query I rowsort label-9343
SELECT - + COALESCE ( + - COUNT ( * ), + MIN ( - 84 ) ) * 69 + COUNT ( * ) col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9344
SELECT ALL - 9 * - + CAST( NULL AS SIGNED ), - 93 * + + 8 AS col1
----
NULL
-744

skipif mysql # not compatible
query II rowsort label-9344
SELECT ALL - 9 * - + CAST ( NULL AS INTEGER ), - 93 * + + 8 AS col1
----
NULL
-744

query I rowsort
SELECT 57 + + - 42 + - ( 86 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT 23 * + 44 + + + NULLIF ( 46, + SUM( ALL 40 ) * CAST( + 33 AS SIGNED ) - - 88 - - 54 ) AS col0
----
1058

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT 23 * + 44 + + + NULLIF ( 46, + SUM ( ALL 40 ) * CAST ( + 33 AS INTEGER ) - - 88 - - 54 ) AS col0
----
1058

query I rowsort
SELECT ALL - 48 * - 11 AS col1
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL - NULLIF ( + NULLIF ( + 35, - + 65 ), + + 42 / 10 * 19 ) * - + COUNT( * ) + + 87 - 83 - 95 * - 4 + 93 AS col1
----
512

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - NULLIF ( + NULLIF ( + 35, - + 65 ), + + 42 / 10 * 19 ) * - + COUNT ( * ) + + 87 - 83 - 95 * - 4 + 93 AS col1
----
512

query I rowsort
SELECT ALL + ( + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL COUNT( ALL + 29 ) * 96 col1
----
96

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL COUNT ( ALL + 29 ) * 96 col1
----
96

query I rowsort
SELECT + 92 * + 69 * - 19 AS col1
----
-120612

onlyif mysql # DIV for integer division: 
query I rowsort label-9352
SELECT ALL - ( + + 59 ) DIV - - 34
----
-1

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL - ( + + 59 ) / - - 34
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT DISTINCT + CAST( + 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT + CAST ( + 8 AS INTEGER )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT DISTINCT + CAST( 48 AS SIGNED ) - - ( - 85 )
----
-37

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT + CAST ( 48 AS INTEGER ) - - ( - 85 )
----
-37

query I rowsort
SELECT ALL 44 * 64
----
2816

onlyif mysql # aggregate syntax: 
query II rowsort label-9356
SELECT ALL CASE + + 39 WHEN COUNT( ALL 32 ) - - - 40 THEN + 92 END AS col0, - COUNT( - - 98 ) + - + 88 + + COUNT( * ) * + COUNT( * ) AS col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-9356
SELECT ALL CASE + + 39 WHEN COUNT ( ALL 32 ) - - - 40 THEN + 92 END AS col0, - COUNT ( - - 98 ) + - + 88 + + COUNT ( * ) * + COUNT ( * ) AS col0
----
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT - MIN( + - 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9357
SELECT - MIN ( + - 97 ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT ALL - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + 11 ) * - ( - - NULLIF ( - 48, + 19 * - 13 ) ) * + - 21 + - COALESCE ( - COUNT( * ), - 33 * - COUNT( * ) + 33 ) * CASE 87 WHEN - 96 - + 25 THEN + 50 + 27 END + + 26 + - + 85 + - - 20 / + 74 - + ( 87 ) + - COUNT( * ) - + 54 + + - 3 * - COUNT( * ) * - CASE + COUNT( * ) WHEN - 42 * CASE 66 WHEN - 24 THEN NULL WHEN - 35 THEN + - 7 WHEN + 44 * - 84 / + 67 + SUM( - 78 ) THEN + COUNT( * ) END * - - 83 + - 37 THEN + + 79 / 72 END + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + 11 ) * - ( - - NULLIF ( - 48, + 19 * - 13 ) ) * + - 21 + - COALESCE ( - COUNT ( * ), - 33 * - COUNT ( * ) + 33 ) * CASE 87 WHEN - 96 - + 25 THEN + 50 + 27 END + + 26 + - + 85 + - - 20 / + 74 - + ( 87 ) + - COUNT ( * ) - + 54 + + - 3 * - COUNT ( * ) * - CASE + COUNT ( * ) WHEN - 42 * CASE 66 WHEN - 24 THEN NULL WHEN - 35 THEN + - 7 WHEN + 44 * - 84 / + 67 + SUM ( - 78 ) THEN + COUNT ( * ) END * - - 83 + - 37 THEN + + 79 / 72 END + + 43
----
NULL

query I rowsort
SELECT ALL 8 * + 43 AS col1
----
344

onlyif mysql # aggregate syntax: 
query II rowsort label-9360
SELECT ALL 69, NULLIF ( - - MIN( DISTINCT - ( 39 ) ), + 36 / 55 ) + 15 AS col1
----
69
-24

skipif mysql # not compatible
query II rowsort label-9360
SELECT ALL 69, NULLIF ( - - MIN ( DISTINCT - ( 39 ) ), + 36 / 55 ) + 15 AS col1
----
69
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT - MIN( ALL - - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-9361
SELECT - MIN ( ALL - - 98 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT + 55 DIV 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9362
SELECT + 55 / 57 AS col0
----
0

query I rowsort
SELECT + 66 * - - 69
----
4554

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT + 72 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9364
SELECT + 72 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 65 + 1 + - - 15 + - - 0 AS col2
----
-49

query II rowsort
SELECT ALL 50, + 80 * 64 AS col0
----
50
5120

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL + + MAX( DISTINCT + - 41 ) * + 2 * + CASE + COUNT( * ) WHEN - 1 THEN NULL ELSE 48 END AS col1
----
-3936

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + + MAX ( DISTINCT + - 41 ) * + 2 * + CASE + COUNT ( * ) WHEN - 1 THEN NULL ELSE 48 END AS col1
----
-3936

query I rowsort
SELECT DISTINCT 80 + - 29 * + 80 AS col1
----
-2240

query I rowsort
SELECT ALL 85 + + 51 col2
----
136

query II rowsort
SELECT - 57 AS col2, - 46
----
-57
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL MAX( + - 69 ) + + - 42 * 92 * - - 29
----
-112125

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL MAX ( + - 69 ) + + - 42 * 92 * - - 29
----
-112125

query I rowsort
SELECT ALL 7 * 58
----
406

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9373
SELECT + COUNT( * ) DIV - 73 - 38 + - - 20
----
-18

skipif mysql # not compatible
query I rowsort label-9373
SELECT + COUNT ( * ) / - 73 - 38 + - - 20
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9374
SELECT ALL + 91 DIV - + ( - COUNT( * ) ) + 5 + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL + 91 / - + ( - COUNT ( * ) ) + 5 + - COUNT ( * )
----
95

query I rowsort
SELECT - 65 * - 85
----
5525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9376
SELECT ALL - SUM( - 95 ) DIV + 12 + + 75
----
82

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - SUM ( - 95 ) / + 12 + + 75
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT + + 83 - + 84 + - 61 - + - 10 + - - 14 DIV + 19 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-9377
SELECT + + 83 - + 84 + - 61 - + - 10 + - - 14 / + 19 AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9378
SELECT ALL - + ( + 47 ) * - COUNT( * ) + + + COALESCE ( - ( - + 43 ), - - 90 * - - 61 * MAX( - 54 ) - 86, + NULLIF ( + COUNT( DISTINCT - - 88 ), + - 59 / - 76 / - 29 + + 35 ) * + - 53 ) + 20 + + CASE 24 WHEN + 57 THEN NULL ELSE COUNT( + - 91 ) END * + 4 - + - 50 - 99 + - + MIN( + + 38 ) * - CAST( + 46 AS SIGNED ) * - 39
----
-68107

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL - + ( + 47 ) * - COUNT ( * ) + + + COALESCE ( - ( - + 43 ), - - 90 * - - 61 * MAX ( - 54 ) - 86, + NULLIF ( + COUNT ( DISTINCT - - 88 ), + - 59 / - 76 / - 29 + + 35 ) * + - 53 ) + 20 + + CASE 24 WHEN + 57 THEN NULL ELSE COUNT ( + - 91 ) END * + 4 - + - 50 - 99 + - + MIN ( + + 38 ) * - CAST ( + 46 AS INTEGER ) * - 39
----
-68107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL + - ( + - ( CAST( COUNT( * ) AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + - ( + - ( CAST ( COUNT ( * ) AS INTEGER ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT ALL + 47 * + 3 + 66 * + CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + 47 * + 3 + 66 * + CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT + 84 + - 57 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL - COUNT( * ) * - MAX( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL - COUNT ( * ) * - MAX ( 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT 99 * 24 * + COUNT( * ) + + ( - - 71 ) + COUNT( * ) * + 30 AS col1
----
2477

skipif mysql # not compatible
query I rowsort label-9383
SELECT 99 * 24 * + COUNT ( * ) + + ( - - 71 ) + COUNT ( * ) * + 30 AS col1
----
2477

query I rowsort
SELECT - 69 * - 1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL - ( - 24 ) * + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - ( - 24 ) * + COUNT ( * ) AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9386
SELECT ( + + 26 ), + MAX( DISTINCT + + 82 ) - - CAST( NULL AS SIGNED ) * - - 59 - - 75 AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-9386
SELECT ( + + 26 ), + MAX ( DISTINCT + + 82 ) - - CAST ( NULL AS INTEGER ) * - - 59 - - 75 AS col2
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL + ( SUM( ALL + 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL + ( SUM ( ALL + 35 ) )
----
35

query I rowsort
SELECT - NULLIF ( + - 42, - 70 * ( 78 ) + + - 73 * - 73 ) + - 47
----
-5

query I rowsort
SELECT ALL - 64 * - 83 AS col0
----
5312

query I rowsort
SELECT DISTINCT + ( - 36 ) * + 16
----
-576

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9391
SELECT ALL 97 DIV - + CAST( + AVG ( - + 45 ) AS SIGNED ), - 3 + + 72 AS col0
----
2
69

skipif mysql # not compatible
query II rowsort label-9391
SELECT ALL 97 / - + CAST ( + AVG ( - + 45 ) AS INTEGER ), - 3 + + 72 AS col0
----
2
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT - COUNT( * ) * 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9392
SELECT - COUNT ( * ) * 78 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9393
SELECT NULLIF ( + CAST( + 72 AS SIGNED ), - + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-9393
SELECT NULLIF ( + CAST ( + 72 AS INTEGER ), - + COUNT ( * ) )
----
72

query I rowsort
SELECT - 79 * - + 18 * 82 AS col0
----
116604

onlyif mysql # aggregate syntax: 
query III rowsort label-9395
SELECT - 90 + + MIN( 3 ) * - - 3, + 85 AS col1, - COUNT( * ) AS col2
----
-81
85
-1

skipif mysql # not compatible
query III rowsort label-9395
SELECT - 90 + + MIN ( 3 ) * - - 3, + 85 AS col1, - COUNT ( * ) AS col2
----
-81
85
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9396
SELECT ALL + 65 / - 53 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL + 65 / - 53 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 49 * + 67 AS col0
----
3283

query I rowsort
SELECT - 60 + + ( ( - 39 ) ) * - 63 * - - 13 * - 71 + + 45 AS col2
----
-2267826

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + + COUNT( * ) + + - 71 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + + COUNT ( * ) + + - 71 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT + 67 + + SUM( 22 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT + 67 + + SUM ( 22 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL COUNT( * ) + - CASE + 67 WHEN + 48 THEN NULL WHEN + - 65 + + - 65 THEN COUNT( * ) * + 0 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL COUNT ( * ) + - CASE + 67 WHEN + 48 THEN NULL WHEN + - 65 + + - 65 THEN COUNT ( * ) * + 0 END AS col1
----
NULL

query I rowsort
SELECT ALL + + 73 + - 18 AS col2
----
55

query I rowsort
SELECT + + 48 + - + 21
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9404
SELECT + NULLIF ( - COALESCE ( + MAX( + 33 ), - 57 + 84 * + 6, - 55 + 89 + - CAST( NULL AS SIGNED ) + - 36 * + + 99 DIV 77 ), 1 )
----
-33

skipif mysql # not compatible
query I rowsort label-9404
SELECT + NULLIF ( - COALESCE ( + MAX ( + 33 ), - 57 + 84 * + 6, - 55 + 89 + - CAST ( NULL AS INTEGER ) + - 36 * + + 99 / 77 ), 1 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT + ( 51 ) + - 38 / CAST( NULL AS SIGNED ) + 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT + ( 51 ) + - 38 / CAST ( NULL AS INTEGER ) + 7 col1
----
NULL

query I rowsort
SELECT DISTINCT - - 31 - 86 col2
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9407
SELECT 28 + + COUNT( 79 ) + + 24, + 77 + 28 * + 56 AS col0
----
53
1645

skipif mysql # not compatible
query II rowsort label-9407
SELECT 28 + + COUNT ( 79 ) + + 24, + 77 + 28 * + 56 AS col0
----
53
1645

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT DISTINCT + ( + COALESCE ( - 96, - 69 ) ) DIV + 24 col2
----
-4

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + ( + COALESCE ( - 96, - 69 ) ) / + 24 col2
----
-4

query I rowsort
SELECT - 25 * + 94 + - 14 AS col2
----
-2364

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT - 72 * - - 7 * 75 * + 53 * + COALESCE ( + 98, - - 63 DIV 29 + + 8, - 29 ) + + NULLIF ( 42, NULLIF ( + 75, ( - 99 ) ) )
----
-196333158

skipif mysql # not compatible
query I rowsort label-9410
SELECT - 72 * - - 7 * 75 * + 53 * + COALESCE ( + 98, - - 63 / 29 + + 8, - 29 ) + + NULLIF ( 42, NULLIF ( + 75, ( - 99 ) ) )
----
-196333158

query I rowsort
SELECT 51 * - + 82
----
-4182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9412
SELECT 68 DIV + + 80 + - CASE ( - 71 ) WHEN - 32 * + 78 * COUNT( * ) THEN NULL ELSE + COALESCE ( - 83, - + 41 * 94 + 64 + 46 + - 64 + - 72 ) + - MIN( - - 79 ) END AS col2
----
162

skipif mysql # not compatible
query I rowsort label-9412
SELECT 68 / + + 80 + - CASE ( - 71 ) WHEN - 32 * + 78 * COUNT ( * ) THEN NULL ELSE + COALESCE ( - 83, - + 41 * 94 + 64 + 46 + - 64 + - 72 ) + - MIN ( - - 79 ) END AS col2
----
162

query I rowsort
SELECT 25 * + + 18 AS col2
----
450

query I rowsort
SELECT 63 + - + 92 - ( - + ( - - 50 ) ) + 69 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT DISTINCT 80 * - + CAST( NULL AS SIGNED ) * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT 80 * - + CAST ( NULL AS INTEGER ) * + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT CAST( NULL AS SIGNED ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT CAST ( NULL AS INTEGER ) + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT DISTINCT - COALESCE ( + COALESCE ( + COUNT( * ), - - ( - 92 ) ), 82 + 7 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT - COALESCE ( + COALESCE ( + COUNT ( * ), - - ( - 92 ) ), 82 + 7 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT - SUM( DISTINCT 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT - SUM ( DISTINCT 15 ) AS col1
----
-15

query II rowsort
SELECT + 54, 74 AS col0
----
54
74

query I rowsort
SELECT DISTINCT + 87 * - 24 AS col0
----
-2088

query I rowsort
SELECT + 11 col2
----
11

query I rowsort
SELECT 85 + - 78 - + + 97 * + + 87 AS col0
----
-8432

query I rowsort
SELECT DISTINCT - 15 + + 51 + - - 97 + 15 AS col2
----
148

query I rowsort
SELECT ALL + 60 + - 79 - 14 + 41
----
8

query I rowsort
SELECT 66 * - - 81
----
5346

query I rowsort
SELECT DISTINCT 66 * - + 55
----
-3630

onlyif mysql # aggregate syntax: 
query II rowsort label-9427
SELECT DISTINCT + COUNT( * ) + + + 60 + + COUNT( * ) + - COALESCE ( - 17, - 19 ) + - - 99 * ( - 36 ) + - - 62 * - - 47 + + 3 + - ( 47 ) - - 75 + - 22 * COUNT( * ) * 29 AS col0, - 76 AS col2
----
-1178
-76

skipif mysql # not compatible
query II rowsort label-9427
SELECT DISTINCT + COUNT ( * ) + + + 60 + + COUNT ( * ) + - COALESCE ( - 17, - 19 ) + - - 99 * ( - 36 ) + - - 62 * - - 47 + + 3 + - ( 47 ) - - 75 + - 22 * COUNT ( * ) * 29 AS col0, - 76 AS col2
----
-1178
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + 0 * - + 1 - - MIN( ALL + - 6 ) col0
----
-6

skipif mysql # not compatible
query I rowsort label-9428
SELECT + 0 * - + 1 - - MIN ( ALL + - 6 ) col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL + 70 * MAX( - + ( 5 ) )
----
-350

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + 70 * MAX ( - + ( 5 ) )
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT - 15 + + + NULLIF ( + 12, 19 ) * - COALESCE ( - 59, - ( - 37 ) * - 23 + COUNT( * ) * + COUNT( * ) ) AS col2
----
693

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - 15 + + + NULLIF ( + 12, 19 ) * - COALESCE ( - 59, - ( - 37 ) * - 23 + COUNT ( * ) * + COUNT ( * ) ) AS col2
----
693

query I rowsort
SELECT ALL + 61 + 41 * - 80 AS col1
----
-3219

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT DISTINCT + 16 DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT + 16 / 19
----
0

query I rowsort
SELECT DISTINCT + 43 + + 33 AS col0
----
76

query I rowsort
SELECT 68 * - 96
----
-6528

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT 75 DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-9435
SELECT 75 / + 27
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9436
SELECT COUNT( * ) DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT COUNT ( * ) / + 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9437
SELECT ALL + COUNT( * ) DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL + COUNT ( * ) / - 71
----
0

query I rowsort
SELECT ALL - 98 - 45 AS col1
----
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9439
SELECT ALL NULLIF ( CAST( 41 AS SIGNED ), - 50 ) * 10 AS col2
----
410

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL NULLIF ( CAST ( 41 AS INTEGER ), - 50 ) * 10 AS col2
----
410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9440
SELECT DISTINCT + 53 * - NULLIF ( 33 DIV - 52, - MIN( - 21 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT + 53 * - NULLIF ( 33 / - 52, - MIN ( - 21 ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT COUNT( * ) * + 19
----
19

skipif mysql # not compatible
query I rowsort label-9441
SELECT COUNT ( * ) * + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL + ( - COUNT( * ) ) * + NULLIF ( - 53, + 68 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + ( - COUNT ( * ) ) * + NULLIF ( - 53, + 68 ) AS col2
----
53

query I rowsort
SELECT 9 + + 6 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT COUNT( * ) * + 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-9444
SELECT COUNT ( * ) * + 99 AS col2
----
99

query I rowsort
SELECT ( 49 ) * 93 AS col0
----
4557

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT MAX( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9446
SELECT MAX ( 88 ) AS col1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT - 29 * 65 + 59 DIV + 88 AS col1
----
-1885

skipif mysql # not compatible
query I rowsort label-9447
SELECT - 29 * 65 + 59 / + 88 AS col1
----
-1885

query I rowsort
SELECT ( 57 ) * 24 AS col0
----
1368

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9449
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 74 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT CAST ( NULL AS REAL ) + 74 * + COUNT ( * )
----
NULL

query I rowsort
SELECT COALESCE ( NULLIF ( 78, - 83 + 3 * 46 ), 60 ) + 4
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT + SUM( ALL + 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9451
SELECT + SUM ( ALL + 95 ) AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9452
SELECT 40 DIV - 1 col2
----
-40

skipif mysql # not compatible
query I rowsort label-9452
SELECT 40 / - 1 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL 61 * NULLIF ( COUNT( * ), 83 * 14 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL 61 * NULLIF ( COUNT ( * ), 83 * 14 ) AS col2
----
61

query I rowsort
SELECT DISTINCT 79 + - 61 col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9455
SELECT ALL 55 + COALESCE ( 53 - COUNT( * ) DIV CAST( 99 DIV COUNT( * ) + - 79 AS SIGNED ), + 1 + 83 * - COUNT( * ) )
----
108

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL 55 + COALESCE ( 53 - COUNT ( * ) / CAST ( 99 / COUNT ( * ) + - 79 AS INTEGER ), + 1 + 83 * - COUNT ( * ) )
----
108

query I rowsort
SELECT ALL 14 + ( + 37 )
----
51

query I rowsort
SELECT ALL 25 * 83
----
2075

query I rowsort
SELECT DISTINCT 84 + + 31 AS col1
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT 78 + - 51 DIV ( 39 )
----
77

skipif mysql # not compatible
query I rowsort label-9459
SELECT 78 + - 51 / ( 39 )
----
77

query I rowsort
SELECT ALL 19 + + 81
----
100

query I rowsort
SELECT ALL 78 + 87 * - 1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT + COALESCE ( 36, + NULLIF ( 54, - 86 ) * - 45 + - COUNT( * ) * 0, 55 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9462
SELECT + COALESCE ( 36, + NULLIF ( 54, - 86 ) * - 45 + - COUNT ( * ) * 0, 55 ) AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9463
SELECT - ( 19 ) + 15 DIV 39 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9463
SELECT - ( 19 ) + 15 / 39 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT + CASE + 37 WHEN + ( ( - COUNT( * ) ) ) * + 58 THEN - NULLIF ( + CAST( 52 AS SIGNED ), + 0 + + 90 ) END * 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT + CASE + 37 WHEN + ( ( - COUNT ( * ) ) ) * + 58 THEN - NULLIF ( + CAST ( 52 AS INTEGER ), + 0 + + 90 ) END * 35 AS col2
----
NULL

query I rowsort
SELECT + 34 + 2 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT + COUNT( * ) * ( + 65 * 33 )
----
2145

skipif mysql # not compatible
query I rowsort label-9466
SELECT + COUNT ( * ) * ( + 65 * 33 )
----
2145

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + + 45 + - COUNT( * ) * - 29 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9467
SELECT + + 45 + - COUNT ( * ) * - 29 AS col2
----
74

query I rowsort
SELECT - 61 * - 21 AS col1
----
1281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9469
SELECT ALL CAST( 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL CAST ( 75 AS INTEGER )
----
75

query I rowsort
SELECT - + 96 + 27
----
-69

query I rowsort
SELECT ALL COALESCE ( + 19, 44 * - 30, 80 * 26 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT - - NULLIF ( + 92, 6 ) + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-9472
SELECT - - NULLIF ( + 92, 6 ) + COUNT ( * )
----
93

query I rowsort
SELECT - + ( ( + 60 ) )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT - CAST( NULL AS SIGNED ) / + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT - CAST ( NULL AS INTEGER ) / + 81 AS col2
----
NULL

query I rowsort
SELECT - 20 + + 33
----
13

query I rowsort
SELECT - 59 * 74 AS col1
----
-4366

query I rowsort
SELECT - 64 * - 73 AS col0
----
4672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT - ( CAST( NULL AS SIGNED ) ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT - ( CAST ( NULL AS INTEGER ) ) + 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9479
SELECT ALL - - 26 DIV + 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - - 26 / + 86 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT - 73 DIV 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9480
SELECT - 73 / 76 AS col0
----
0

query I rowsort
SELECT ALL + 95 * + 99
----
9405

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL 80 + MIN( - ( - 6 ) ) * 82 AS col0
----
572

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL 80 + MIN ( - ( - 6 ) ) * 82 AS col0
----
572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT - CASE + COUNT( * ) WHEN - 88 THEN CAST( COUNT( ALL COALESCE ( - 52, + 46 / - 83 ) ) AS SIGNED ) ELSE NULL END * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT - CASE + COUNT ( * ) WHEN - 88 THEN CAST ( COUNT ( ALL COALESCE ( - 52, + 46 / - 83 ) ) AS INTEGER ) ELSE NULL END * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 67 * + 13 + - 89 AS col2
----
782

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT + MIN( ALL 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT + MIN ( ALL 78 )
----
78

query I rowsort
SELECT DISTINCT + 87 * - 20
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT - MIN( DISTINCT - + ( 38 ) ) * + 32 AS col2
----
1216

skipif mysql # not compatible
query I rowsort label-9487
SELECT - MIN ( DISTINCT - + ( 38 ) ) * + 32 AS col2
----
1216

query I rowsort
SELECT + 12 * - ( + 31 ) + 57
----
-315

query I rowsort
SELECT ALL 30 * - - 85 * 95 + + 57 AS col2
----
242307

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT COALESCE ( - 80, 59, - 73 DIV + 26 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9490
SELECT COALESCE ( - 80, 59, - 73 / + 26 ) AS col2
----
-80

query I rowsort
SELECT + CASE - 22 WHEN 64 THEN 91 END
----
NULL

query I rowsort
SELECT - 20 * + 39
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT COUNT( - 51 ) * 0 + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9493
SELECT COUNT ( - 51 ) * 0 + 91 AS col2
----
91

query I rowsort
SELECT DISTINCT 99 * + - 98 + 23 AS col1
----
-9679

query I rowsort
SELECT + 92 * + - 12 + - 51 AS col0
----
-1155

query I rowsort
SELECT ALL 5 * 73 * - 14 + + ( 59 ) AS col2
----
-5051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9497
SELECT ALL MAX( - 72 ) * CAST( NULL AS SIGNED ) + ( + 46 + 47 * 92 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL MAX ( - 72 ) * CAST ( NULL AS INTEGER ) + ( + 46 + 47 * 92 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT - 1 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT - 1 / - 84
----
0

query I rowsort
SELECT + 92 * - 67 * - 67 - + 40 * 4
----
412828

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT + SUM( ALL + - 59 ) col0
----
-59

skipif mysql # not compatible
query I rowsort label-9500
SELECT + SUM ( ALL + - 59 ) col0
----
-59

query I rowsort
SELECT + 83 + - 64 * 41
----
-2541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT + 79 DIV + - COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9502
SELECT + 79 / + - COUNT ( * ) AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT + 19 * + - CAST( NULL AS SIGNED ) * + 0 - 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT + 19 * + - CAST ( NULL AS INTEGER ) * + 0 - 88 AS col2
----
NULL

query I rowsort
SELECT ALL + 13 col1
----
13

query I rowsort
SELECT - ( - - 80 ) col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT + ( + - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + ( + - COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - SUM( - 99 ) * 38 AS col0
----
3762

skipif mysql # not compatible
query I rowsort label-9507
SELECT - SUM ( - 99 ) * 38 AS col0
----
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT DISTINCT CASE 9 WHEN + 21 / 83 THEN COALESCE ( + 42, MAX( ALL 13 ) + 88 ) * + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT DISTINCT CASE 9 WHEN + 21 / 83 THEN COALESCE ( + 42, MAX ( ALL 13 ) + 88 ) * + 50 END
----
NULL

query I rowsort
SELECT - - COALESCE ( 66, + 5 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL + COUNT( * ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL + COUNT ( * ) + + 77
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT + - ( - COALESCE ( 70, CAST( 1 AS SIGNED ) ) ) - - 84
----
154

skipif mysql # not compatible
query I rowsort label-9511
SELECT + - ( - COALESCE ( 70, CAST ( 1 AS INTEGER ) ) ) - - 84
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT CAST( + - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-9512
SELECT CAST ( + - 48 AS INTEGER )
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9513
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + + ( - 8 )
----
-8

query I rowsort
SELECT + + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT + + COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9516
SELECT + + COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT ALL + + 52, - COUNT( * ) AS col1
----
52
-1

skipif mysql # not compatible
query II rowsort label-9517
SELECT ALL + + 52, - COUNT ( * ) AS col1
----
52
-1

query I rowsort
SELECT 50 + - + 65 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT 28 * - + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT 28 * - + COUNT ( * ) AS col0
----
-28

query I rowsort
SELECT 0 * - 69 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL - NULLIF ( 55, 93 ) * + COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - NULLIF ( 55, 93 ) * + COUNT ( * ) AS col0
----
-55

query I rowsort
SELECT ALL - ( 89 ) AS col2
----
-89

query I rowsort
SELECT + 19 * 65 AS col0
----
1235

query I rowsort
SELECT - 47 + 62
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT + COUNT( 98 ) * - 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9525
SELECT + COUNT ( 98 ) * - 12 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT - MIN( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9526
SELECT - MIN ( 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + 93 + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9527
SELECT + 93 + COUNT ( * )
----
94

query I rowsort
SELECT + ( 59 ) + + 12 AS col0
----
71

query I rowsort
SELECT ALL - 14 + 31 * + 21 AS col0
----
637

query I rowsort
SELECT ( + 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9531
SELECT DISTINCT + - COUNT( * ) DIV + 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT + - COUNT ( * ) / + 52 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT - 68 DIV 16
----
-4

skipif mysql # not compatible
query I rowsort label-9532
SELECT - 68 / 16
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT + MAX( 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + MAX ( 48 ) AS col1
----
48

query I rowsort
SELECT - 60 * + 38
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT CASE + + SUM( + 86 ) WHEN 10 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT CASE + + SUM ( + 86 ) WHEN 10 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT ALL COUNT( * ) * 84 + CAST( 93 AS SIGNED )
----
177

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL COUNT ( * ) * 84 + CAST ( 93 AS INTEGER )
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT + 52 - + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT + 52 - + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL COUNT( * ) * 50
----
50

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL COUNT ( * ) * 50
----
50

query I rowsort
SELECT - - 56 AS col2
----
56

query I rowsort
SELECT ALL 89 - + + 76
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - 43 ) * - 19 col0
----
817

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT - MIN( ALL - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT - MIN ( ALL - 32 ) AS col0
----
32

query I rowsort
SELECT 98 + 84
----
182

query I rowsort
SELECT + 21 + ( - - 1 ) - + 36 * + 76
----
-2714

query I rowsort
SELECT ALL - ( - - 20 ) AS col1
----
-20

query I rowsort
SELECT 50 * - ( + 5 )
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + ( + + 2 ) + + + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9548
SELECT + ( + + 2 ) + + + COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT + - MAX( ALL 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + - MAX ( ALL 24 )
----
-24

query I rowsort
SELECT ALL + ( 18 ) AS col2
----
18

query I rowsort
SELECT - - 94 + + - 80
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT - MIN( ALL + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-9552
SELECT - MIN ( ALL + 18 )
----
-18

query I rowsort
SELECT + ( - + 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9554
SELECT ALL CAST( - 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL CAST ( - 34 AS INTEGER )
----
-34

query I rowsort
SELECT ALL - 19 * + - 7
----
133

query I rowsort
SELECT DISTINCT - + 6
----
-6

query I rowsort
SELECT - 79 col0
----
-79

query I rowsort
SELECT - + 40 AS col1
----
-40

query I rowsort
SELECT + + 71 AS col2
----
71

query I rowsort
SELECT - + 6 + 12 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9561
SELECT + COUNT( * ) DIV - + 3
----
0

skipif mysql # not compatible
query I rowsort label-9561
SELECT + COUNT ( * ) / - + 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL ( - MIN( + + 82 ) ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL ( - MIN ( + + 82 ) ) col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT - COUNT( 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-9563
SELECT - COUNT ( 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT SUM( + - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-9564
SELECT SUM ( + - 51 )
----
-51

query I rowsort
SELECT DISTINCT + + 84
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + SUM( ALL - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-9566
SELECT + SUM ( ALL - 93 )
----
-93

query I rowsort
SELECT ALL 88 * + 89 AS col1
----
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL - - COUNT( ALL - 52 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL - - COUNT ( ALL - 52 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9569
SELECT - - COUNT( DISTINCT ( - NULLIF ( CAST( NULL AS DECIMAL ), + 4 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT - - COUNT ( DISTINCT ( - NULLIF ( CAST ( NULL AS REAL ), + 4 ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT + COALESCE ( - 26, - + 83 ) + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9570
SELECT + COALESCE ( - 26, - + 83 ) + COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT ALL - + 28 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - 20 + COUNT( * ) * - + COUNT( - - 45 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9572
SELECT - 20 + COUNT ( * ) * - + COUNT ( - - 45 ) AS col1
----
-21

query I rowsort
SELECT - 94 + 70 AS col2
----
-24

query I rowsort
SELECT ALL + + 54 * + + ( + - 91 ) AS col0
----
-4914

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT COUNT( ALL - 83 )
----
1

skipif mysql # not compatible
query I rowsort label-9575
SELECT COUNT ( ALL - 83 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9576
SELECT - COUNT( ALL + - 57 ) AS col0, - COUNT( - 57 ) * 47 AS col2
----
-1
-47

skipif mysql # not compatible
query II rowsort label-9576
SELECT - COUNT ( ALL + - 57 ) AS col0, - COUNT ( - 57 ) * 47 AS col2
----
-1
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT - - 90 + - + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9577
SELECT - - 90 + - + COUNT ( * )
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9578
SELECT - CAST( NULL AS DECIMAL ) * 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - CAST ( NULL AS REAL ) * 1 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL CAST( 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL CAST ( 43 AS INTEGER ) AS col2
----
43

query I rowsort
SELECT - ( 88 )
----
-88

query I rowsort
SELECT + 0 - - 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT MIN( DISTINCT 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT MIN ( DISTINCT 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT 1 * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT 1 * - + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - ( 74 )
----
-74

query I rowsort
SELECT ALL 46 + - 22 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT ALL 13 DIV + + 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT ALL 13 / + + 82 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9587
SELECT CAST( 27 AS SIGNED ) + - COUNT( * ) - - + ( ( MAX( + 49 ) ) ) * + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9587
SELECT CAST ( 27 AS INTEGER ) + - COUNT ( * ) - - + ( ( MAX ( + 49 ) ) ) * + COUNT ( * ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9588
SELECT DISTINCT - SUM( ALL - 88 ) AS col2, - CAST( + 38 AS SIGNED )
----
88
-38

skipif mysql # not compatible
query II rowsort label-9588
SELECT DISTINCT - SUM ( ALL - 88 ) AS col2, - CAST ( + 38 AS INTEGER )
----
88
-38

query I rowsort
SELECT DISTINCT 5 AS col2
----
5

query I rowsort
SELECT - - ( ( - 77 ) )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9591
SELECT - MIN( ALL 14 ) DIV + + ( COUNT( * ) ) col1, + 5
----
-14
5

skipif mysql # not compatible
query II rowsort label-9591
SELECT - MIN ( ALL 14 ) / + + ( COUNT ( * ) ) col1, + 5
----
-14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + COUNT( + 48 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9592
SELECT + COUNT ( + 48 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT - 78 + + 37 + + COUNT( 75 )
----
-40

skipif mysql # not compatible
query I rowsort label-9593
SELECT - 78 + + 37 + + COUNT ( 75 )
----
-40

query II rowsort
SELECT - 33 col2, 48 AS col0
----
-33
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9595
SELECT ALL + 74 DIV + - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + 74 / + - COUNT ( * ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9596
SELECT DISTINCT + 0 AS col2, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-9596
SELECT DISTINCT + 0 AS col2, COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT COALESCE ( 5, + + 19 - + 79 * + + 78 + - 50 ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT - - 78 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT - - 78 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9599
SELECT ALL - CAST( NULL AS SIGNED ), - COUNT( * ) * 61 AS col0
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-9599
SELECT ALL - CAST ( NULL AS INTEGER ), - COUNT ( * ) * 61 AS col0
----
NULL
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9600
SELECT DISTINCT - COUNT( * ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-9600
SELECT DISTINCT - COUNT ( * ) / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL - MAX( 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL - MAX ( 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - 37 * + MIN( ALL + - 94 )
----
3478

skipif mysql # not compatible
query I rowsort label-9602
SELECT - 37 * + MIN ( ALL + - 94 )
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT 58 * - COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9603
SELECT 58 * - COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT ALL + 8 * + 80 AS col0
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL - COUNT( * ) + - 91 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - COUNT ( * ) + - 91 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT - 28 * + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9606
SELECT - 28 * + - COUNT ( * )
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9607
SELECT + - NULLIF ( 24, + NULLIF ( + COUNT( * ), CAST( NULL AS DECIMAL ) ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9607
SELECT + - NULLIF ( 24, + NULLIF ( + COUNT ( * ), CAST ( NULL AS REAL ) ) ) AS col1
----
-24

query I rowsort
SELECT + 59 * + 36
----
2124

query I rowsort
SELECT - 87 + 56 - + 94
----
-125

query I rowsort
SELECT ALL - 56 * - 43
----
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL - + 49 * + 33 + - - 16 * - MAX( + + 18 ) - + + 36
----
-1941

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL - + 49 * + 33 + - - 16 * - MAX ( + + 18 ) - + + 36
----
-1941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT DISTINCT + 39 * + - 74 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT + 39 * + - 74 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT - 58 * - 59 + - COUNT( * )
----
3421

skipif mysql # not compatible
query I rowsort label-9613
SELECT - 58 * - 59 + - COUNT ( * )
----
3421

query I rowsort
SELECT ( - 62 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) / - + COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) / - + COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - 11 - + COUNT( * ) * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9616
SELECT - 11 - + COUNT ( * ) * COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9617
SELECT - 12 AS col2, COUNT( * ) AS col1
----
-12
1

skipif mysql # not compatible
query II rowsort label-9617
SELECT - 12 AS col2, COUNT ( * ) AS col1
----
-12
1

query I rowsort
SELECT - - 5 AS col0
----
5

query I rowsort
SELECT DISTINCT - - ( + 98 ) AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT ALL - CAST( NULL AS SIGNED ) + 67 + - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL - CAST ( NULL AS INTEGER ) + 67 + - 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + - 4, - ( 4 ) )
----
4

query I rowsort
SELECT ALL - ( - + 31 ) col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9623
SELECT ALL - 58 - + + COUNT( CAST( NULL AS SIGNED ) ) + 8 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - 58 - + + COUNT ( CAST ( NULL AS INTEGER ) ) + 8 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + SUM( ALL 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9624
SELECT + SUM ( ALL 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT COUNT( - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9625
SELECT COUNT ( - 22 ) AS col0
----
1

query II rowsort
SELECT + 21 * - 44 + + + 42 + 94, - 50 AS col2
----
-788
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9627
SELECT + 92 DIV - COUNT( * ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-9627
SELECT + 92 / - COUNT ( * ) col2
----
-92

query I rowsort
SELECT ALL + + 92 col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9629
SELECT + COUNT( * ) AS col2, 83 AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-9629
SELECT + COUNT ( * ) AS col2, 83 AS col2
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT + + COUNT( * ) + - + 22
----
-21

skipif mysql # not compatible
query I rowsort label-9630
SELECT + + COUNT ( * ) + - + 22
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9631
SELECT CAST( - 98 AS SIGNED ) AS col1, 0
----
-98
0

skipif mysql # not compatible
query II rowsort label-9631
SELECT CAST ( - 98 AS INTEGER ) AS col1, 0
----
-98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL - 62 * + - COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - 62 * + - COUNT ( * ) AS col2
----
62

query I rowsort
SELECT ALL + 99 + 55
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT 95 * + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-9634
SELECT 95 * + + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL - COUNT( - - 51 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL - COUNT ( - - 51 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT - + SUM( DISTINCT + + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-9636
SELECT - + SUM ( DISTINCT + + 1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT 33 * + CAST( + 85 AS SIGNED ) AS col0
----
2805

skipif mysql # not compatible
query I rowsort label-9637
SELECT 33 * + CAST ( + 85 AS INTEGER ) AS col0
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT COUNT( * ) + 79
----
80

skipif mysql # not compatible
query I rowsort label-9638
SELECT COUNT ( * ) + 79
----
80

query II rowsort
SELECT 74, 0 col0
----
74
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL COUNT( * ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL + SUM( + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL + SUM ( + 60 )
----
60

query I rowsort
SELECT - 71 col1
----
-71

query I rowsort
SELECT - - ( 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT NULLIF ( + 97, - 27 / + COUNT( * ) ) col1
----
97

skipif mysql # not compatible
query I rowsort label-9644
SELECT NULLIF ( + 97, - 27 / + COUNT ( * ) ) col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9645
SELECT + CAST( + 69 AS SIGNED ) + - 97 AS col2, 23
----
-28
23

skipif mysql # not compatible
query II rowsort label-9645
SELECT + CAST ( + 69 AS INTEGER ) + - 97 AS col2, 23
----
-28
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT + COUNT( ALL 51 )
----
1

skipif mysql # not compatible
query I rowsort label-9646
SELECT + COUNT ( ALL 51 )
----
1

query I rowsort
SELECT ALL + 65 AS col1
----
65

query I rowsort
SELECT - 92 + + + 92 AS col1
----
0

query I rowsort
SELECT - - 6
----
6

query I rowsort
SELECT ALL - 86 + + + 19 * 25 col0
----
389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT CAST( - - 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-9651
SELECT CAST ( - - 73 AS INTEGER )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT CAST( + 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-9653
SELECT CAST ( + 92 AS INTEGER )
----
92

query I rowsort
SELECT + 7 - + + 13 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT - 0 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9655
SELECT - 0 + COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9656
SELECT ALL - 82 * - - 30 col2, 93 DIV - 22 AS col2
----
-2460
-4

skipif mysql # not compatible
query II rowsort label-9656
SELECT ALL - 82 * - - 30 col2, 93 / - 22 AS col2
----
-2460
-4

query I rowsort
SELECT ALL 17 - 53 AS col1
----
-36

query I rowsort
SELECT 30 * + 77
----
2310

query I rowsort
SELECT ALL - + 81 AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT CAST( NULL AS SIGNED ) / - + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT CAST ( NULL AS INTEGER ) / - + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT DISTINCT 76 * + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT 76 * + + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT DISTINCT 70 * + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT 70 * + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT COUNT( * ) - 81 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9663
SELECT COUNT ( * ) - 81 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-9664
SELECT - COUNT( * ) col1, 56
----
-1
56

skipif mysql # not compatible
query II rowsort label-9664
SELECT - COUNT ( * ) col1, 56
----
-1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT + 78 + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9665
SELECT + 78 + COUNT ( * )
----
79

query I rowsort
SELECT DISTINCT ( + 44 ) AS col2
----
44

query I rowsort
SELECT - 64 * + 10 AS col0
----
-640

query I rowsort
SELECT DISTINCT + ( - 93 ) AS col1
----
-93

query I rowsort
SELECT - + 5 AS col0
----
-5

query I rowsort
SELECT ALL - + 43 col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9671
SELECT COUNT( * ) * COUNT( * ), + ( - 17 ) AS col1
----
1
-17

skipif mysql # not compatible
query II rowsort label-9671
SELECT COUNT ( * ) * COUNT ( * ), + ( - 17 ) AS col1
----
1
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT + COUNT( * ), 44 + - 12 col0
----
1
32

skipif mysql # not compatible
query II rowsort label-9672
SELECT + COUNT ( * ), 44 + - 12 col0
----
1
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9673
SELECT ( + - COUNT( * ) ) DIV + 4 + - + 83 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9673
SELECT ( + - COUNT ( * ) ) / + 4 + - + 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT 33 * - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-9674
SELECT 33 * - COUNT ( * )
----
-33

query I rowsort
SELECT ALL 41 + + 8
----
49

query I rowsort
SELECT DISTINCT - 88 AS col1
----
-88

query I rowsort
SELECT + 33 + + 27
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9679
SELECT ALL + 92 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + 92 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT + COUNT( * ) + + 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9680
SELECT + COUNT ( * ) + + 76 AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9681
SELECT ALL CAST( - 20 AS SIGNED ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL CAST ( - 20 AS INTEGER ) col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT + COUNT( * ) * + 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-9682
SELECT + COUNT ( * ) * + 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT - - COALESCE ( COUNT( * ), - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-9683
SELECT - - COALESCE ( COUNT ( * ), - 99 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9684
SELECT DISTINCT - 47 AS col0, - COUNT( * ) AS col2
----
-47
-1

skipif mysql # not compatible
query II rowsort label-9684
SELECT DISTINCT - 47 AS col0, - COUNT ( * ) AS col2
----
-47
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL + COALESCE ( + COUNT( * ), - 29 - 84 ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL + COALESCE ( + COUNT ( * ), - 29 - 84 ) * + 55
----
55

query II rowsort
SELECT ALL - 78 AS col2, 26 AS col1
----
-78
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT ALL - 35 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL - 35 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL MAX( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL MAX ( + 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT ( CAST( NULL AS SIGNED ) ) - + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9689
SELECT ( CAST ( NULL AS INTEGER ) ) - + - 35
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT DISTINCT - 97 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT DISTINCT - 97 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT + MAX( DISTINCT + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-9691
SELECT + MAX ( DISTINCT + 31 )
----
31

query I rowsort
SELECT DISTINCT + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9693
SELECT + COALESCE ( 8, - 98 ) AS col2, - COUNT( * ) AS col2
----
8
-1

skipif mysql # not compatible
query II rowsort label-9693
SELECT + COALESCE ( 8, - 98 ) AS col2, - COUNT ( * ) AS col2
----
8
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT + 51 DIV - - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT + 51 / - - 91 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT DISTINCT 80 DIV + MIN( ALL + 23 )
----
3

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT 80 / + MIN ( ALL + 23 )
----
3

query I rowsort
SELECT + - 81 col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT - + 77 + - + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-9697
SELECT - + 77 + - + COUNT ( * )
----
-78

query I rowsort
SELECT DISTINCT + 47 * 64
----
3008

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9699
SELECT ALL CAST( - 79 AS SIGNED ) AS col0, 47 AS col1
----
-79
47

skipif mysql # not compatible
query II rowsort label-9699
SELECT ALL CAST ( - 79 AS INTEGER ) AS col0, 47 AS col1
----
-79
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT ALL + 86 DIV - 55
----
-1

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL + 86 / - 55
----
-1

query I rowsort
SELECT 32 - - 80
----
112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9702
SELECT ALL ( CAST( NULL AS DECIMAL ) ) + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL ( CAST ( NULL AS REAL ) ) + + 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT ALL + 8 + ( - - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL + 8 + ( - - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT - ( 56 )
----
-56

query I rowsort
SELECT ALL - + ( 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + COUNT( * ) * - + 11
----
-11

skipif mysql # not compatible
query I rowsort label-9706
SELECT + COUNT ( * ) * - + 11
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT 48 DIV 1
----
48

skipif mysql # not compatible
query I rowsort label-9707
SELECT 48 / 1
----
48

query I rowsort
SELECT ALL 17 + + 0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - COUNT( * ) * + - 7 * 13 + - - 99 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-9709
SELECT - COUNT ( * ) * + - 7 * 13 + - - 99 AS col2
----
190

query I rowsort
SELECT ALL - - 96 * + 57
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT DISTINCT ( COUNT( * ) ) * + + SUM( DISTINCT - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT ( COUNT ( * ) ) * + + SUM ( DISTINCT - 45 )
----
-45

query I rowsort
SELECT ALL + - 22 AS col2
----
-22

query I rowsort
SELECT ALL + ( - - 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - COUNT( DISTINCT + 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9714
SELECT - COUNT ( DISTINCT + 63 ) AS col2
----
-1

query I rowsort
SELECT + 14 + - 4
----
10

query I rowsort
SELECT 36 + ( - 40 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9717
SELECT + + COALESCE ( - COUNT( * ), + 63 ), COUNT( * ) + + + 99 AS col0
----
-1
100

skipif mysql # not compatible
query II rowsort label-9717
SELECT + + COALESCE ( - COUNT ( * ), + 63 ), COUNT ( * ) + + + 99 AS col0
----
-1
100

query I rowsort
SELECT + 82 col0
----
82

query I rowsort
SELECT DISTINCT 44 AS col0
----
44

query I rowsort
SELECT - 96 col2
----
-96

query I rowsort
SELECT 18 + 85 * - 12 col0
----
-1002

query I rowsort
SELECT DISTINCT - 38 + 36 + - 63 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT DISTINCT + + COUNT( * ) + - - 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT + + COUNT ( * ) + - - 17 AS col2
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT + 74 AS col2, + COUNT( * ) col1
----
74
1

skipif mysql # not compatible
query II rowsort label-9724
SELECT + 74 AS col2, + COUNT ( * ) col1
----
74
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT 74, COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-9725
SELECT 74, COUNT ( * ) AS col0
----
74
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT - COUNT( * ) AS col0, - ( + ( - ( + - 44 ) ) ) AS col1
----
-1
-44

skipif mysql # not compatible
query II rowsort label-9726
SELECT - COUNT ( * ) AS col0, - ( + ( - ( + - 44 ) ) ) AS col1
----
-1
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-9727
SELECT ALL 50 AS col1, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-9727
SELECT ALL 50 AS col1, COUNT ( * )
----
50
1

query I rowsort
SELECT - 90 col1
----
-90

query I rowsort
SELECT - 72 - 9
----
-81

query I rowsort
SELECT - + 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT + + MIN( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT + + MIN ( + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT + COUNT( ALL - 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9732
SELECT + COUNT ( ALL - 56 ) AS col1
----
1

query I rowsort
SELECT ALL 87 * - + 5 AS col1
----
-435

query I rowsort
SELECT ALL + - 10 + + - 44 AS col2
----
-54

query II rowsort
SELECT ALL + 99, 80 col2
----
99
80

query I rowsort
SELECT + 13 * - + 32 AS col1
----
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT - COUNT( DISTINCT - + 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-9737
SELECT - COUNT ( DISTINCT - + 63 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL SUM( + - 33 ) * 70 AS col2
----
-2310

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL SUM ( + - 33 ) * 70 AS col2
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT - ( - ( - ( - COUNT( * ) ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT - ( - ( - ( - COUNT ( * ) ) ) ) AS col2
----
1

query I rowsort
SELECT 76 * 28
----
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT DISTINCT 52 + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT 52 + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT ALL 27 * 3 * + + 46
----
3726

query II rowsort
SELECT ALL + 35 * - 45, - 97 AS col0
----
-1575
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT DISTINCT + ( + 76 ) * - ( + CAST( - 20 AS SIGNED ) ) AS col0
----
1520

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT + ( + 76 ) * - ( + CAST ( - 20 AS INTEGER ) ) AS col0
----
1520

query I rowsort
SELECT - 36 * - - 35 AS col1
----
-1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT - 63 / + 46 / - 7 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT - 63 / + 46 / - 7 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT - - 70 DIV - + 54
----
-1

skipif mysql # not compatible
query I rowsort label-9747
SELECT - - 70 / - + 54
----
-1

query I rowsort
SELECT + 23 - + 55
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT ALL CAST( - + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ( + 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT ALL - ( - MIN( ALL + 83 ) ) + - 33
----
50

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - ( - MIN ( ALL + 83 ) ) + - 33
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT COUNT( * ) * - 62 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9752
SELECT COUNT ( * ) * - 62 AS col2
----
-62

query I rowsort
SELECT + + 3 AS col1
----
3

query I rowsort
SELECT 27 - - 49
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL 4 * + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL 4 * + COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT 17 + - MAX( ALL - 42 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9756
SELECT 17 + - MAX ( ALL - 42 ) AS col0
----
59

query I rowsort
SELECT ALL 84 col0
----
84

query I rowsort
SELECT 62 - - 95 AS col2
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9759
SELECT COUNT( * ) + + 41 DIV ( - 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9759
SELECT COUNT ( * ) + + 41 / ( - 91 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 1 col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT ( - 61 ) DIV 1
----
-61

skipif mysql # not compatible
query I rowsort label-9761
SELECT ( - 61 ) / 1
----
-61

query I rowsort
SELECT ALL + + ( 99 ) * 15
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT - 76 * - SUM( ALL 18 )
----
1368

skipif mysql # not compatible
query I rowsort label-9763
SELECT - 76 * - SUM ( ALL 18 )
----
1368

query I rowsort
SELECT ALL + 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + COUNT( * ) * - - COUNT( - + 4 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9765
SELECT + COUNT ( * ) * - - COUNT ( - + 4 ) AS col1
----
1

query I rowsort
SELECT + ( 0 )
----
0

query II rowsort
SELECT ALL - 38, + 93 AS col2
----
-38
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9768
SELECT ALL - 71 DIV 1 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - 71 / 1 AS col0
----
-71

query I rowsort
SELECT DISTINCT + 9 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT NULLIF ( 30, + - COUNT( * ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9770
SELECT NULLIF ( 30, + - COUNT ( * ) ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - ( + MAX( - 35 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9771
SELECT - ( + MAX ( - 35 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT + + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9772
SELECT + + ( COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( + 99, - - 8 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT - 33 * + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9774
SELECT - 33 * + - COUNT ( * )
----
33

query I rowsort
SELECT DISTINCT - 87 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT COUNT( * ) * + 35 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9776
SELECT COUNT ( * ) * + 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT MIN( ALL 46 ) col1
----
46

skipif mysql # not compatible
query I rowsort label-9777
SELECT MIN ( ALL 46 ) col1
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9778
SELECT - 51 DIV COUNT( * ) * 71
----
-3621

skipif mysql # not compatible
query I rowsort label-9778
SELECT - 51 / COUNT ( * ) * 71
----
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT - + SUM( + ( - 96 ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - + SUM ( + ( - 96 ) ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9780
SELECT + COUNT( * ), 13 AS col1
----
1
13

skipif mysql # not compatible
query II rowsort label-9780
SELECT + COUNT ( * ), 13 AS col1
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + MIN( DISTINCT 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9781
SELECT + MIN ( DISTINCT 34 )
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9782
SELECT - - 75 * COUNT( * ) DIV + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9782
SELECT - - 75 * COUNT ( * ) / + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT - + 97 + + 69 AS col0
----
-28

query I rowsort
SELECT DISTINCT + + 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL + SUM( ALL 91 ) col2
----
91

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL + SUM ( ALL 91 ) col2
----
91

query I rowsort
SELECT ALL + 11 * + 95 + - + 92
----
953

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL + ( - - COUNT( - - 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL + ( - - COUNT ( - - 90 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT ALL 20 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL 20 / 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - - COUNT( ALL + 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9789
SELECT - - COUNT ( ALL + 75 ) AS col1
----
1

query II rowsort
SELECT DISTINCT - ( + 8 ) AS col2, 82
----
-8
82

query I rowsort
SELECT - - 78 col2
----
78

query I rowsort
SELECT ALL ( - 44 ) AS col2
----
-44

query I rowsort
SELECT + 79 col2
----
79

query I rowsort
SELECT 24 + + 46 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + 84 + + 27 * + COUNT( * ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-9795
SELECT + 84 + + 27 * + COUNT ( * ) AS col2
----
111

query I rowsort
SELECT 13 col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT DISTINCT - + 42 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT - + 42 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT COUNT( * ) * ( + 79 ) * + 14 AS col2
----
1106

skipif mysql # not compatible
query I rowsort label-9798
SELECT COUNT ( * ) * ( + 79 ) * + 14 AS col2
----
1106

query I rowsort
SELECT DISTINCT + ( 35 )
----
35

query I rowsort
SELECT ALL 67 * + 97 AS col1
----
6499

query I rowsort
SELECT ALL - + 89 - - - 38 + + 79 * - + 37 col1
----
-3050

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + COUNT( * ) * + + 42 + - 82
----
-40

skipif mysql # not compatible
query I rowsort label-9802
SELECT + COUNT ( * ) * + + 42 + - 82
----
-40

query I rowsort
SELECT + - 13 + - - 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL - 8 * MIN( + - 27 ) AS col2
----
216

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - 8 * MIN ( + - 27 ) AS col2
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT - ( - + COALESCE ( + + 81, - - 43 * COUNT( * ) ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9805
SELECT - ( - + COALESCE ( + + 81, - - 43 * COUNT ( * ) ) ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT ALL + + 47 AS col0, COUNT( * )
----
47
1

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL + + 47 AS col0, COUNT ( * )
----
47
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9807
SELECT ALL + 3 / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + 3 / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 58 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT DISTINCT NULLIF ( - ( + COUNT( * ) ), + 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT NULLIF ( - ( + COUNT ( * ) ), + 26 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT SUM( + 65 ) + 2
----
67

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT SUM ( + 65 ) + 2
----
67

query I rowsort
SELECT ALL - ( 18 ) AS col1
----
-18

query II rowsort
SELECT ALL - 16 * 67 AS col0, + 67
----
-1072
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL COUNT( DISTINCT 24 ) + 10 * + - 66 + - NULLIF ( 1, + + 31 )
----
-660

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL COUNT ( DISTINCT 24 ) + 10 * + - 66 + - NULLIF ( 1, + + 31 )
----
-660

query I rowsort
SELECT DISTINCT 44 col0
----
44

query I rowsort
SELECT ALL - - 18 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT - CASE - - 39 WHEN - COUNT( * ) THEN - 7 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT - CASE - - 39 WHEN - COUNT ( * ) THEN - 7 * + COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + + 97 AS col2
----
97

query I rowsort
SELECT + NULLIF ( + + 63, + 3 ) AS col2
----
63

query I rowsort
SELECT COALESCE ( 96, - 36 * + 6 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT + 3 * COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9820
SELECT + 3 * COUNT ( * )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT DISTINCT - COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT - SUM( - 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - SUM ( - 18 ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL 79 * + COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL 79 * + COUNT ( * ) AS col0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT 40 DIV - 28 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9824
SELECT 40 / - 28 AS col2
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9825
SELECT ALL + CAST( NULL AS DECIMAL ) * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + CAST ( NULL AS REAL ) * 6
----
NULL

query II rowsort
SELECT DISTINCT 28, 39 AS col0
----
28
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - MIN( DISTINCT + 71 ) * - 57
----
4047

skipif mysql # not compatible
query I rowsort label-9827
SELECT - MIN ( DISTINCT + 71 ) * - 57
----
4047

query I rowsort
SELECT DISTINCT - ( - 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + 81 * + COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + 81 * + COUNT ( * ) AS col0
----
81

query I rowsort
SELECT DISTINCT - - 70 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL COUNT( * ) - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL COUNT ( * ) - + 15
----
-14

query I rowsort
SELECT DISTINCT 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT - MAX( ALL 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9833
SELECT - MAX ( ALL 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT DISTINCT - - 82 + + 73 * - MIN( ALL + + 51 ) col0
----
-3641

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - - 82 + + 73 * - MIN ( ALL + + 51 ) col0
----
-3641

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9835
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - - COUNT( * ) * - + 66 + ( COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-9836
SELECT - - COUNT ( * ) * - + 66 + ( COUNT ( * ) )
----
-65

query I rowsort
SELECT - + 77 AS col2
----
-77

query I rowsort
SELECT DISTINCT + 56 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT MIN( DISTINCT - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-9839
SELECT MIN ( DISTINCT - 79 )
----
-79

query I rowsort
SELECT - + 36 - 13 col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9841
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 28 AS col1
----
NULL

query I rowsort
SELECT ALL 72 * + + 22 * + ( 77 )
----
121968

query I rowsort
SELECT - ( 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL - + 10 - + - COALESCE ( - NULLIF ( - 16, + - 40 ), COUNT( * ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - + 10 - + - COALESCE ( - NULLIF ( - 16, + - 40 ), COUNT ( * ) ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9845
SELECT + COALESCE ( - CAST( - 77 AS SIGNED ), 50 ) * - COUNT( * ) * - 54
----
4158

skipif mysql # not compatible
query I rowsort label-9845
SELECT + COALESCE ( - CAST ( - 77 AS INTEGER ), 50 ) * - COUNT ( * ) * - 54
----
4158

query I rowsort
SELECT ALL - ( + 75 ) col1
----
-75

query I rowsort
SELECT 59 * 80
----
4720

query I rowsort
SELECT + - 29 col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9849
SELECT ALL - + 66 DIV - - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL - + 66 / - - COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL SUM( + + 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL SUM ( + + 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT - MIN( DISTINCT 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9851
SELECT - MIN ( DISTINCT 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT - COUNT( * ) - 0
----
-1

skipif mysql # not compatible
query I rowsort label-9852
SELECT - COUNT ( * ) - 0
----
-1

query I rowsort
SELECT ALL + + 87 AS col2
----
87

query I rowsort
SELECT ALL + - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT DISTINCT 49 - + - COUNT( * ) * - 58 col0
----
-9

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT 49 - + - COUNT ( * ) * - 58 col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + + SUM( 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + + SUM ( 66 ) AS col0
----
66

query I rowsort
SELECT DISTINCT + + 19 AS col1
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-9858
SELECT - 66 DIV + + 28 AS col1, - 25
----
-2
-25

skipif mysql # not compatible
query II rowsort label-9858
SELECT - 66 / + + 28 AS col1, - 25
----
-2
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT DISTINCT CAST( + - 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT CAST ( + - 13 AS INTEGER )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT COUNT( * ) - - 52
----
53

skipif mysql # not compatible
query I rowsort label-9861
SELECT COUNT ( * ) - - 52
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9862
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 71 + - 66 * + 76
----
-4945

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9864
SELECT + + ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL - + COUNT( * ) * + - 45
----
45

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - + COUNT ( * ) * + - 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT MIN( - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-9866
SELECT MIN ( - 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT COUNT( * ) * + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9867
SELECT COUNT ( * ) * + 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL - + COUNT( * ) * + + ( - - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - + COUNT ( * ) * + + ( - - 54 ) AS col1
----
-54

query I rowsort
SELECT DISTINCT - - 49 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9870
SELECT + 91 * - 20 * COALESCE ( - MIN( DISTINCT + - 93 ), + 65 + CAST( NULL AS SIGNED ) )
----
-169260

skipif mysql # not compatible
query I rowsort label-9870
SELECT + 91 * - 20 * COALESCE ( - MIN ( DISTINCT + - 93 ), + 65 + CAST ( NULL AS INTEGER ) )
----
-169260

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT - COUNT( * ) - - 25 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9871
SELECT - COUNT ( * ) - - 25 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT - COUNT( * ) * - 50 + - - 17 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9872
SELECT - COUNT ( * ) * - 50 + - - 17 AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9873
SELECT + CAST( NULL AS SIGNED ) + - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT + CAST ( NULL AS INTEGER ) + - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT CAST( - - 14 AS SIGNED ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9874
SELECT CAST ( - - 14 AS INTEGER ) AS col0
----
14

query I rowsort
SELECT ( + - 98 )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9876
SELECT 61 AS col2, - 42 * + CAST( NULL AS SIGNED )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-9876
SELECT 61 AS col2, - 42 * + CAST ( NULL AS INTEGER )
----
61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT DISTINCT + 31 + + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT + 31 + + COUNT ( * ) AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9878
SELECT + CAST( NULL AS SIGNED ) + + + 26, 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-9878
SELECT + CAST ( NULL AS INTEGER ) + + + 26, 70 AS col2
----
NULL
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT + COUNT( * ) * + 78
----
78

skipif mysql # not compatible
query I rowsort label-9879
SELECT + COUNT ( * ) * + 78
----
78

query I rowsort
SELECT DISTINCT + 80 + 35 col1
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9881
SELECT ALL 40 col0, CAST( NULL AS SIGNED )
----
40
NULL

skipif mysql # not compatible
query II rowsort label-9881
SELECT ALL 40 col0, CAST ( NULL AS INTEGER )
----
40
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9882
SELECT - 67 DIV COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9882
SELECT - 67 / COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT + ( + - ( + 43 ) ) + - 28 - + - 17 col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT + 33 - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT + 33 - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9885
SELECT DISTINCT + COUNT( * ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9885
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9886
SELECT ALL CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) * - 23 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9886
SELECT ALL CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) * - 23 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + COUNT( * ) + - 19 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9887
SELECT + COUNT ( * ) + - 19 AS col1
----
-18

query I rowsort
SELECT ALL - 15 * + 31 col2
----
-465

query I rowsort
SELECT ALL + ( - - 74 )
----
74

query I rowsort
SELECT - 67 * + + 31
----
-2077

query I rowsort
SELECT ALL + ( + 9 )
----
9

query I rowsort
SELECT ALL 63 + 9 AS col2
----
72

query II rowsort
SELECT 91, + 46 col2
----
91
46

query I rowsort
SELECT + ( - - 88 )
----
88

query I rowsort
SELECT DISTINCT - 13 * + + 7 AS col2
----
-91

query I rowsort
SELECT - 51 * 39 AS col0
----
-1989

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT DISTINCT - MAX( ALL - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT - MAX ( ALL - 84 )
----
84

query I rowsort
SELECT + + 24
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL - + COUNT( * ) - - 58 - - 59 + + + 65 - - 33 * + - 51 col1
----
-1502

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL - + COUNT ( * ) - - 58 - - 59 + + + 65 - - 33 * + - 51 col1
----
-1502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT DISTINCT - AVG ( DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - AVG ( DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 25
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9901
SELECT ALL 90 DIV - 5
----
-18

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL 90 / - 5
----
-18

query I rowsort
SELECT + 36 * 17
----
612

query I rowsort
SELECT DISTINCT + - 96 AS col1
----
-96

query I rowsort
SELECT ALL ( + - ( - 2 ) ) col2
----
2

query I rowsort
SELECT 57 + + 94
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 80
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT - AVG ( DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT - AVG ( DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL - MIN( - + 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL - MIN ( - + 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT 26 + ( + + SUM( - 40 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT 26 + ( + + SUM ( - 40 ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT 57 + - + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-9911
SELECT 57 + - + COUNT ( * )
----
56

query II rowsort
SELECT DISTINCT 80 col1, 77 AS col1
----
80
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9913
SELECT + 52 + + COUNT( * ) DIV + - 37 AS col2, + CAST( NULL AS DECIMAL ) * 96
----
52
NULL

skipif mysql # not compatible
query II rowsort label-9913
SELECT + 52 + + COUNT ( * ) / + - 37 AS col2, + CAST ( NULL AS REAL ) * 96
----
52
NULL

query I rowsort
SELECT - ( - + 45 )
----
45

query I rowsort
SELECT ALL + 44 * - 58
----
-2552

query I rowsort
SELECT ALL + + 68 * + - 22
----
-1496

query I rowsort
SELECT DISTINCT - + 26 AS col2
----
-26

query II rowsort
SELECT + 6 col1, - 1 AS col1
----
6
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + 7 + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-9919
SELECT + 7 + COUNT ( * )
----
8

query I rowsort
SELECT + + 28 + 86
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT ALL 47 * + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL 47 * + + COUNT ( * )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT DISTINCT 92 DIV 47 col0
----
1

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT 92 / 47 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + COUNT( * ) - - + 61
----
62

skipif mysql # not compatible
query I rowsort label-9923
SELECT + COUNT ( * ) - - + 61
----
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9924
SELECT ALL - CAST( NULL AS DECIMAL ) * + - SUM( DISTINCT - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL - CAST ( NULL AS REAL ) * + - SUM ( DISTINCT - 55 )
----
NULL

query I rowsort
SELECT ALL 65 + - 92 AS col0
----
-27

query I rowsort
SELECT ALL - - 7 + + 30
----
37

query I rowsort
SELECT ALL - ( + 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL - COUNT( * ) + - 79 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - COUNT ( * ) + - 79 AS col0
----
-80

query I rowsort
SELECT - - 83 AS col2
----
83

query I rowsort
SELECT + 3 + 76 - + 92 + + + 6
----
-7

query I rowsort
SELECT ALL - - 94 + - 18 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + ( COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ( 73 )
----
73

query I rowsort
SELECT ALL ( 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT + COUNT( * ) * 62 * - COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT + COUNT ( * ) * 62 * - COUNT ( * ) AS col2
----
-62

query I rowsort
SELECT ALL + 23 * - 51 - - 70
----
-1103

query I rowsort
SELECT 39 col2
----
39

query I rowsort
SELECT ALL - + 82 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9939
SELECT ( + - COUNT( * ) ) AS col1, 97
----
-1
97

skipif mysql # not compatible
query II rowsort label-9939
SELECT ( + - COUNT ( * ) ) AS col1, 97
----
-1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT MAX( + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9940
SELECT MAX ( + 54 )
----
54

query I rowsort
SELECT ALL + 20 * 10
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9942
SELECT ALL - - CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL - - CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT ( - 74 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT + 81 + 33 * - + SUM( DISTINCT + CAST( + 8 AS SIGNED ) )
----
-183

skipif mysql # not compatible
query I rowsort label-9944
SELECT + 81 + 33 * - + SUM ( DISTINCT + CAST ( + 8 AS INTEGER ) )
----
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9945
SELECT + + CAST( NULL AS SIGNED ) * 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9945
SELECT + + CAST ( NULL AS INTEGER ) * 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT MAX( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9946
SELECT MAX ( 10 ) AS col2
----
10

query I rowsort
SELECT ALL + - 27 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9948
SELECT - COUNT( * ) + - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9948
SELECT - COUNT ( * ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-2

query I rowsort
SELECT + COALESCE ( - - 52, - 87 ) AS col2
----
52

query I rowsort
SELECT DISTINCT - + 33
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9952
SELECT DISTINCT - 92, + COUNT( + 96 ) AS col1
----
-92
1

skipif mysql # not compatible
query II rowsort label-9952
SELECT DISTINCT - 92, + COUNT ( + 96 ) AS col1
----
-92
1

query I rowsort
SELECT ALL - 11 * - + 43 AS col1
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT COUNT( * ) * - 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9954
SELECT COUNT ( * ) * - 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT - COUNT( * ) + 23
----
22

skipif mysql # not compatible
query I rowsort label-9955
SELECT - COUNT ( * ) + 23
----
22

query II rowsort
SELECT 0 + - 48 AS col0, + 28 col0
----
-48
28

query I rowsort
SELECT - 18 + 4
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT ALL + COALESCE ( + 64, - + CAST( NULL AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + COALESCE ( + 64, - + CAST ( NULL AS INTEGER ) )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9959
SELECT COUNT( * ) AS col2, + COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9959
SELECT COUNT ( * ) AS col2, + COUNT ( * ) col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - ( - COUNT( 19 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9960
SELECT - ( - COUNT ( 19 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT COUNT( - + 30 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9961
SELECT COUNT ( - + 30 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + ( - 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( - 58 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT DISTINCT + 78 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT + 78 / 88 AS col2
----
0

query I rowsort
SELECT + - 40 + - 20
----
-60

query I rowsort
SELECT - - 21 col0
----
21

query I rowsort
SELECT + - ( 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - COUNT( * ) * 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9967
SELECT - COUNT ( * ) * 37 AS col0
----
-37

query I rowsort
SELECT DISTINCT - ( - - 64 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT 36 + - ( - + COUNT( * ) ) col0
----
37

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT 36 + - ( - + COUNT ( * ) ) col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - COALESCE ( - - COUNT( * ), COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9970
SELECT - COALESCE ( - - COUNT ( * ), COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT NULLIF ( - 61, COUNT( * ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9971
SELECT NULLIF ( - 61, COUNT ( * ) ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-9972
SELECT 91, 66 - - COUNT( * ) AS col1
----
91
67

skipif mysql # not compatible
query II rowsort label-9972
SELECT 91, 66 - - COUNT ( * ) AS col1
----
91
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT 35 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT 35 / + 61
----
0

query I rowsort
SELECT 70 * 63 AS col2
----
4410

query I rowsort
SELECT ALL + 53 * + 50
----
2650

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + COUNT( 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9976
SELECT + COUNT ( 46 ) AS col0
----
1

query I rowsort
SELECT + 1 - - 19 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT DISTINCT COUNT( * ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT COUNT ( * ) * 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL ( + - COUNT( * ) ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL ( + - COUNT ( * ) ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT CAST( - ( 26 ) AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-9980
SELECT CAST ( - ( 26 ) AS INTEGER )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9981
SELECT ( - + MIN( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT ( - + MIN ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT ( + + MAX( ALL 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-9982
SELECT ( + + MAX ( ALL 15 ) )
----
15

query I rowsort
SELECT - - 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL + 62 + + - 4 * - ( COUNT( * ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + 62 + + - 4 * - ( COUNT ( * ) ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL - 36 * + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - 36 * + COUNT ( * ) AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9986
SELECT ALL COUNT( * ) + - CAST( - - COUNT( 93 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL COUNT ( * ) + - CAST ( - - COUNT ( 93 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9987
SELECT - - 28 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-9987
SELECT - - 28 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
28
NULL

query I rowsort
SELECT ALL + 74 + 47
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT COUNT( * ) + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9989
SELECT COUNT ( * ) + 59 AS col0
----
60

query I rowsort
SELECT DISTINCT 50 * + ( - 62 ) AS col1
----
-3100

query I rowsort
SELECT DISTINCT - - 25
----
25

query I rowsort
SELECT - ( 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT + 19 + + - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-9993
SELECT + 19 + + - COUNT ( * ) AS col0
----
18

query I rowsort
SELECT DISTINCT + - 11
----
-11

query I rowsort
SELECT ALL NULLIF ( + - 74, + 18 ) AS col2
----
-74

query I rowsort
SELECT + 19 * 56 AS col0
----
1064

query II rowsort
SELECT ALL 26 AS col2, 47 AS col1
----
26
47

query I rowsort
SELECT + ( 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT + - SUM( DISTINCT 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9999
SELECT + - SUM ( DISTINCT 5 ) AS col2
----
-5

