sqllogictest
Artifact Content
Not logged in

Artifact 55c636399b8be2ae7996bdd114a5938f3b88defd:


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 -