hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-0
SELECT 83 + + - CAST( - COALESCE ( 63, + AVG ( + 86 ) * - 86 / - - 48 ) AS SIGNED ) AS col2
----
146

skipif mysql # not compatible
query I rowsort label-0
SELECT 83 + + - CAST ( - COALESCE ( 63, + AVG ( + 86 ) * - 86 / - - 48 ) AS INTEGER ) AS col2
----
146

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1
SELECT COUNT( * ) * - + COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1
SELECT COUNT ( * ) * - + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) col1
----
-1
NULL

query I rowsort
SELECT + + 95 * 13 + + 89 + + - 61 AS col1
----
1263

query I rowsort
SELECT DISTINCT 46 * - 53 * + - ( 42 ) AS col0
----
102396

query I rowsort
SELECT ALL + 77 / CASE - 84 WHEN 17 + + 31 THEN + 25 * + ( + 78 ) ELSE NULL END * NULLIF ( + + 56, - 67 * - 77 + 18 * - - 86 )
----
NULL

query I rowsort
SELECT 52 + + + 78
----
130

query I rowsort
SELECT + ( + 92 ) + - 30
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7
SELECT ALL + CASE - 57 WHEN + 23 / ( + - 79 ) - - + 42 THEN NULL WHEN - 55 * - 76 + - - 33 THEN NULL ELSE + 6 * ( + 11 ) END * + COUNT( * ) AS col2, + 73
----
66
73

skipif mysql # not compatible
query II rowsort label-7
SELECT ALL + CASE - 57 WHEN + 23 / ( + - 79 ) - - + 42 THEN NULL WHEN - 55 * - 76 + - - 33 THEN NULL ELSE + 6 * ( + 11 ) END * + COUNT ( * ) AS col2, + 73
----
66
73

query II rowsort
SELECT ALL - 40 AS col0, 25 * + - 53 + + 64
----
-40
-1261

query II rowsort
SELECT ALL - 43, 1 + + 37 AS col0
----
-43
38

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT 83 * + 69 + - 18 + 52 + + COUNT( * ) * 38 AS col1
----
5799

skipif mysql # not compatible
query I rowsort label-10
SELECT 83 * + 69 + - 18 + 52 + + COUNT ( * ) * 38 AS col1
----
5799

query I rowsort
SELECT 85 * - + 17 * 31
----
-44795

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT ALL - MAX( ALL 76 ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL - MAX ( ALL 76 ) col0
----
-76

query I rowsort
SELECT 33 + 21 + - 13 AS col2
----
41

query I rowsort
SELECT ALL - 11 * + 87 * + + 33 AS col2
----
-31581

query I rowsort
SELECT DISTINCT 41 * - 36
----
-1476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-16
SELECT ALL - CASE - - 87 WHEN + CAST( NULL AS SIGNED ) * 49 - 97 - - ( - 90 ) THEN NULL WHEN - NULLIF ( + + 97, - 55 / 98 + - 65 ) * + - MIN( + 33 ) + - + 49 THEN + ( - 62 ) * + 17 * - 57 + 99 * COUNT( * ) WHEN - 31 - - 12 THEN - 7 ELSE 30 END AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL - CASE - - 87 WHEN + CAST ( NULL AS INTEGER ) * 49 - 97 - - ( - 90 ) THEN NULL WHEN - NULLIF ( + + 97, - 55 / 98 + - 65 ) * + - MIN ( + 33 ) + - + 49 THEN + ( - 62 ) * + 17 * - 57 + 99 * COUNT ( * ) WHEN - 31 - - 12 THEN - 7 ELSE 30 END AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT 20 + + SUM( 42 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-17
SELECT 20 + + SUM ( 42 ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT ALL COALESCE ( - + ( + + 67 ), - 64 * + MAX( 70 ) + - - 91 ) + + CAST( NULL AS SIGNED ) * - CAST( 52 AS SIGNED ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL COALESCE ( - + ( + + 67 ), - 64 * + MAX ( 70 ) + - - 91 ) + + CAST ( NULL AS INTEGER ) * - CAST ( 52 AS INTEGER ) + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT 29 * - ( + CASE + - 62 WHEN + 24 * - - 94 THEN NULL WHEN + - ( 74 ) THEN NULL ELSE CASE + 7 WHEN - + 28 THEN + + 51 * + + 15 - + 84 + - 36 + 17 * + 91 + - 94 * + 55 WHEN 7 * COUNT( * ) THEN NULL END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-19
SELECT 29 * - ( + CASE + - 62 WHEN + 24 * - - 94 THEN NULL WHEN + - ( 74 ) THEN NULL ELSE CASE + 7 WHEN - + 28 THEN + + 51 * + + 15 - + 84 + - 36 + 17 * + 91 + - 94 * + 55 WHEN 7 * COUNT ( * ) THEN NULL END END )
----
NULL

query I rowsort
SELECT ALL - 75 + + 19 col0
----
-56

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

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

query II rowsort
SELECT 90 AS col0, 93
----
90
93

query I rowsort
SELECT 55 + - - 36
----
91

query II rowsort
SELECT ALL - ( - 74 ) + + + 15 + 76 AS col1, - 26 AS col0
----
165
-26

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

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

query II rowsort
SELECT 7 AS col2, - 33 - + 72 * + - 74 + - - 63 AS col2
----
7
5358

query II rowsort
SELECT - 97 AS col1, 62 - - 84 col0
----
-97
146

onlyif mysql # aggregate syntax: 
query II rowsort label-28
SELECT 35 + - ( 33 ) * - SUM( DISTINCT + ( 74 ) ) - 22 * + 34 AS col2, + 89
----
1729
89

skipif mysql # not compatible
query II rowsort label-28
SELECT 35 + - ( 33 ) * - SUM ( DISTINCT + ( 74 ) ) - 22 * + 34 AS col2, + 89
----
1729
89

query II rowsort
SELECT ALL 51 AS col2, - 20
----
51
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-30
SELECT ALL + - ( ( + - CASE - - MAX( DISTINCT 60 ) WHEN + CAST( + SUM( 35 ) AS SIGNED ) THEN NULL ELSE + + 20 - + 13 * + 79 * + ( ( - 2 ) ) END ) ) + - - 77
----
2151

skipif mysql # not compatible
query I rowsort label-30
SELECT ALL + - ( ( + - CASE - - MAX ( DISTINCT 60 ) WHEN + CAST ( + SUM ( 35 ) AS INTEGER ) THEN NULL ELSE + + 20 - + 13 * + 79 * + ( ( - 2 ) ) END ) ) + - - 77
----
2151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-31
SELECT ( + 41 ) + CAST( + + 33 AS SIGNED ) + COUNT( * ) / + - CAST( NULL AS SIGNED ) + - COUNT( * ) + + + COUNT( * ), + 80 + + 16 - - + 4 AS col2
----
NULL
100

skipif mysql # not compatible
query II rowsort label-31
SELECT ( + 41 ) + CAST ( + + 33 AS INTEGER ) + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + + COUNT ( * ), + 80 + + 16 - - + 4 AS col2
----
NULL
100

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT 26 + + - MIN( ALL - 96 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-32
SELECT 26 + + - MIN ( ALL - 96 ) AS col1
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-33
SELECT ALL - 13 + + - MAX( DISTINCT 53 ) DIV - 82
----
-13

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL - 13 + + - MAX ( DISTINCT 53 ) / - 82
----
-13

query I rowsort
SELECT ALL + 55 + 5
----
60

query I rowsort
SELECT - 71 + + + 25 AS col2
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-36
SELECT DISTINCT + 22 * - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT + 22 * - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-37
SELECT ALL + 73 - - - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL + 73 - - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-38
SELECT ( + - SUM( + - 52 ) ) * 81 * 52 * + 91 col0, COALESCE ( 18, CAST( NULL AS SIGNED ) * + + ( + 30 ), - 92 ) AS col0
----
19931184
18

skipif mysql # not compatible
query II rowsort label-38
SELECT ( + - SUM ( + - 52 ) ) * 81 * 52 * + 91 col0, COALESCE ( 18, CAST ( NULL AS INTEGER ) * + + ( + 30 ), - 92 ) AS col0
----
19931184
18

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

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

query I rowsort
SELECT - COALESCE ( - 44, - 56 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL 7 * - + 21 - - MIN( ALL 30 ) + 22
----
-95

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL 7 * - + 21 - - MIN ( ALL 30 ) + 22
----
-95

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

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

query II rowsort
SELECT + + 21 AS col0, 90
----
21
90

query I rowsort
SELECT - 88 * - 81 AS col1
----
7128

query II rowsort
SELECT + - 67 AS col0, + 97
----
-67
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT + COUNT( * ) * - - 98 + - - SUM( DISTINCT - - 50 ) + - 2
----
146

skipif mysql # not compatible
query I rowsort label-47
SELECT + COUNT ( * ) * - - 98 + - - SUM ( DISTINCT - - 50 ) + - 2
----
146

query I rowsort
SELECT 85 * + - 37
----
-3145

query I rowsort
SELECT NULLIF ( 28, - 19 ) * - - 39 * - 95 AS col1
----
-103740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-50
SELECT - 86 / 90 - - 84 + + + 71 - - CASE CAST( - - 25 AS SIGNED ) WHEN AVG ( - 19 ) THEN + COUNT( * ) * + 6 + 55 WHEN - - COUNT( * ) + SUM( ALL - 88 ) * + 27 / + + 94 THEN NULL END / COUNT( * ) * - ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-50
SELECT - 86 / 90 - - 84 + + + 71 - - CASE CAST ( - - 25 AS INTEGER ) WHEN AVG ( - 19 ) THEN + COUNT ( * ) * + 6 + 55 WHEN - - COUNT ( * ) + SUM ( ALL - 88 ) * + 27 / + + 94 THEN NULL END / COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-51
SELECT + 94 - - + 29 DIV + + 40 * - 27 AS col1, 92 AS col0
----
94
92

skipif mysql # not compatible
query II rowsort label-51
SELECT + 94 - - + 29 / + + 40 * - 27 AS col1, 92 AS col0
----
94
92

query II rowsort
SELECT ALL 0 * - NULLIF ( 56, 29 ) AS col0, ( - 29 )
----
0
-29

query II rowsort
SELECT + 12 * - 51 col0, 22
----
-612
22

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL COUNT( 67 ) + - ( + 27 )
----
-26

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL COUNT ( 67 ) + - ( + 27 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-55
SELECT ALL - 89 + ( + MAX( ALL - - CAST( NULL AS DECIMAL ) ) ) + + 43 + + + COUNT( * ) * 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL - 89 + ( + MAX ( ALL - - CAST ( NULL AS REAL ) ) ) + + 43 + + + COUNT ( * ) * 7 AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-57
SELECT + 35 + + + COUNT ( * ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-58
SELECT DISTINCT CAST( - NULLIF ( + 98, - COUNT( * ) * 49 ) AS SIGNED ) + + - 97
----
-195

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT CAST ( - NULLIF ( + 98, - COUNT ( * ) * 49 ) AS INTEGER ) + + - 97
----
-195

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

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

query I rowsort
SELECT DISTINCT + ( - - COALESCE ( - - 31, - 63 ) ) AS col1
----
31

query I rowsort
SELECT DISTINCT + + 39 + + 50 - 57
----
32

query I rowsort
SELECT DISTINCT - 26 * - ( 28 ) + - + 2 * - 47 * + 85
----
8718

query I rowsort
SELECT + 91 * 5 + - NULLIF ( - 28, + 73 ) col1
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL + NULLIF ( + COUNT( * ), - 91 - + 13 + - 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL + NULLIF ( + COUNT ( * ), - 91 - + 13 + - 92 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-65
SELECT + + 87 + - - CAST( + 18 AS SIGNED ) * + 54 AS col1, SUM( + 58 )
----
1059
58

skipif mysql # not compatible
query II rowsort label-65
SELECT + + 87 + - - CAST ( + 18 AS INTEGER ) * + 54 AS col1, SUM ( + 58 )
----
1059
58

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT - - 82 DIV - + 48 col2
----
-1

skipif mysql # not compatible
query I rowsort label-66
SELECT - - 82 / - + 48 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-67
SELECT DISTINCT + 76 - + 23, + 47 * + + COUNT( DISTINCT + NULLIF ( 77, + - CAST( NULL AS SIGNED ) ) ) AS col1
----
53
47

skipif mysql # not compatible
query II rowsort label-67
SELECT DISTINCT + 76 - + 23, + 47 * + + COUNT ( DISTINCT + NULLIF ( 77, + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
53
47

query I rowsort
SELECT - + 38 * + + 28
----
-1064

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT - NULLIF ( + 67, 28 - + MAX( DISTINCT - 64 ) + - 88 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-69
SELECT - NULLIF ( + 67, 28 - + MAX ( DISTINCT - 64 ) + - 88 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT DISTINCT + + 47 * + + 82 - - 1 + - 17 * + + COUNT( * ) AS col2
----
3838

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT + + 47 * + + 82 - - 1 + - 17 * + + COUNT ( * ) AS col2
----
3838

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

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

query I rowsort
SELECT - 63 + + 57 * 30 AS col2
----
1647

onlyif mysql # DIV for integer division: 
query II rowsort label-73
SELECT - + 55 DIV - - 4 AS col1, 59 + + - 62 col1
----
-13
-3

skipif mysql # not compatible
query II rowsort label-73
SELECT - + 55 / - - 4 AS col1, 59 + + - 62 col1
----
-13
-3

query II rowsort
SELECT DISTINCT + + 55 * 17 AS col2, 1
----
935
1

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT - 90 / 62 * + CASE 31 WHEN - - 28 + - 52 + - - COUNT( * ) THEN + 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT - 90 / 62 * + CASE 31 WHEN - - 28 + - 52 + - - COUNT ( * ) THEN + 67 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT + - 43 DIV - - 48 + 46
----
46

skipif mysql # not compatible
query I rowsort label-76
SELECT + - 43 / - - 48 + 46
----
46

query I rowsort
SELECT - - 36 + - 38
----
-2

query I rowsort
SELECT + 48 * 15 AS col2
----
720

query I rowsort
SELECT DISTINCT + 60 * + 32 * + 29 * - + ( 45 ) + + - 25
----
-2505625

query I rowsort
SELECT 20 * + 80 + 37 + + 46 AS col0
----
1683

query I rowsort
SELECT ALL + 27 * - - 70 + 88 AS col0
----
1978

query I rowsort
SELECT ALL + NULLIF ( - - 78, + 48 / + 23 + + + 65 / - 58 )
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-83
SELECT DISTINCT + 52 AS col2, 0 DIV 37
----
52
0

skipif mysql # not compatible
query II rowsort label-83
SELECT DISTINCT + 52 AS col2, 0 / 37
----
52
0

query I rowsort
SELECT - 71 + + - 43 - - 47 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL + COUNT( * ) * + 86 + - 40 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL + COUNT ( * ) * + 86 + - 40 AS col0
----
46

query I rowsort
SELECT - 59 * + 70 AS col1
----
-4130

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT CASE 99 WHEN 16 THEN - MAX( ALL 22 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-87
SELECT CASE 99 WHEN 16 THEN - MAX ( ALL 22 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT ALL - CASE + 25 WHEN - 84 * + COUNT( * ) * + + 67 - - COUNT( ALL - + NULLIF ( - 81, - CAST( NULL AS SIGNED ) ) ) THEN + 46 / COALESCE ( 25, MIN( 87 ) ) END * - 9 * + 81 + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL - CASE + 25 WHEN - 84 * + COUNT ( * ) * + + 67 - - COUNT ( ALL - + NULLIF ( - 81, - CAST ( NULL AS INTEGER ) ) ) THEN + 46 / COALESCE ( 25, MIN ( 87 ) ) END * - 9 * + 81 + + 97
----
NULL

query I rowsort
SELECT ALL 40 * 56
----
2240

query I rowsort
SELECT + 22 + - 48
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-91
SELECT DISTINCT - 90 * + 37 * - 24 + + 10 + + COALESCE ( + - 83, + NULLIF ( 46, NULLIF ( - + 70, + 90 * + - 28 * - + COUNT( * ) ) ) ) DIV + 41
----
79928

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT - 90 * + 37 * - 24 + + 10 + + COALESCE ( + - 83, + NULLIF ( 46, NULLIF ( - + 70, + 90 * + - 28 * - + COUNT ( * ) ) ) ) / + 41
----
79928

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT - COUNT( * ) * - 53 col2
----
53

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT - COUNT ( * ) * - 53 col2
----
53

query I rowsort
SELECT + 57 * 81 AS col2
----
4617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-94
SELECT - - 33 - - + 70 + + CAST( NULL AS SIGNED ) + - CASE - + 57 WHEN 74 - - - CASE 95 WHEN 6 + + 62 THEN + + COUNT( * ) * 45 WHEN - 19 THEN NULL ELSE + COUNT( * ) + CASE + 45 WHEN - 17 THEN 21 + + 74 + - + ( - 88 ) ELSE NULL END END - + 20 / 48 THEN NULL ELSE 47 * 94 END * - 81 * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-94
SELECT - - 33 - - + 70 + + CAST ( NULL AS INTEGER ) + - CASE - + 57 WHEN 74 - - - CASE 95 WHEN 6 + + 62 THEN + + COUNT ( * ) * 45 WHEN - 19 THEN NULL ELSE + COUNT ( * ) + CASE + 45 WHEN - 17 THEN 21 + + 74 + - + ( - 88 ) ELSE NULL END END - + 20 / 48 THEN NULL ELSE 47 * 94 END * - 81 * 37
----
NULL

query I rowsort
SELECT - + COALESCE ( + 31, + 73 )
----
-31

query I rowsort
SELECT DISTINCT 7 * + 68 - 66 col2
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT + 14 * - - 39 + 18 * + + COUNT( * ) col0
----
564

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT + 14 * - - 39 + 18 * + + COUNT ( * ) col0
----
564

query I rowsort
SELECT + ( 27 ) + + 61 - + - 14
----
102

query I rowsort
SELECT DISTINCT + 45 - - 84
----
129

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-100
SELECT ALL 64 * - CAST( NULL AS DECIMAL ) * 66 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL 64 * - CAST ( NULL AS REAL ) * 66 * 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-101
SELECT + 33 + 33 + - 18 DIV + - 16 AS col0
----
67

skipif mysql # not compatible
query I rowsort label-101
SELECT + 33 + 33 + - 18 / + - 16 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-102
SELECT DISTINCT + + NULLIF ( ( - COUNT( * ) ), + COUNT( ALL CASE 77 WHEN - 2 * - 98 THEN - - 6 END ) ) * + 77 + + 28 + + AVG ( DISTINCT - + 45 ) - CAST( + CASE - - 41 WHEN 76 THEN 50 + - ( + 90 ) + 82 ELSE NULL END AS SIGNED ) * - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT + + NULLIF ( ( - COUNT ( * ) ), + COUNT ( ALL CASE 77 WHEN - 2 * - 98 THEN - - 6 END ) ) * + 77 + + 28 + + AVG ( DISTINCT - + 45 ) - CAST ( + CASE - - 41 WHEN 76 THEN 50 + - ( + 90 ) + 82 ELSE NULL END AS INTEGER ) * - 17 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 54 * + 61 + - ( - 14 )
----
3308

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

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

query I rowsort
SELECT - 97 + - 19 + + 28 * + - 96 AS col1
----
-2804

query I rowsort
SELECT DISTINCT + 38 + + 58
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-107
SELECT ALL - ( ( - 23 ) ) + - CAST( - 36 AS SIGNED ) + COUNT( * ) * - 44 + + 19 * 86
----
1649

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL - ( ( - 23 ) ) + - CAST ( - 36 AS INTEGER ) + COUNT ( * ) * - 44 + + 19 * 86
----
1649

query I rowsort
SELECT 14 * - + COALESCE ( 5, 88 ) AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-109
SELECT ALL - 52 * - 53 * + 95 * + + CASE - CAST( NULL AS SIGNED ) WHEN - 61 THEN ( - CASE + CAST( NULL AS DECIMAL ) WHEN + 48 THEN + 24 ELSE NULL END ) WHEN + - 84 * - 33 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL - 52 * - 53 * + 95 * + + CASE - CAST ( NULL AS INTEGER ) WHEN - 61 THEN ( - CASE + CAST ( NULL AS REAL ) WHEN + 48 THEN + 24 ELSE NULL END ) WHEN + - 84 * - 33 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT DISTINCT 18 + + ( - + 65 ) DIV + 30 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT 18 + + ( - + 65 ) / + 30 AS col1
----
16

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

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

query I rowsort
SELECT DISTINCT + 80 + - 65 + - 98 + - + 49 col2
----
-132

query I rowsort
SELECT 39 * + 20
----
780

onlyif mysql # aggregate syntax: 
query II rowsort label-114
SELECT - 90 * - - ( 76 ) * + - 25 + 37 * - + COUNT( * ), 37 * + - 71 AS col2
----
170963
-2627

skipif mysql # not compatible
query II rowsort label-114
SELECT - 90 * - - ( 76 ) * + - 25 + 37 * - + COUNT ( * ), 37 * + - 71 AS col2
----
170963
-2627

onlyif mysql # aggregate syntax: 
query II rowsort label-115
SELECT + 27, - COUNT( * ) * - 58 AS col1
----
27
58

skipif mysql # not compatible
query II rowsort label-115
SELECT + 27, - COUNT ( * ) * - 58 AS col1
----
27
58

query II rowsort
SELECT + 79 col0, - 58
----
79
-58

query I rowsort
SELECT ALL + 62 - 48
----
14

query I rowsort
SELECT 38 - + 33
----
5

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

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL - CAST ( NULL AS INTEGER ) - 58 AS col1
----
NULL

query II rowsort
SELECT ALL - 19 col2, - 94 + - 92 + - 18 AS col1
----
-19
-204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-121
SELECT ALL - CAST( - 91 AS SIGNED ) AS col0, - 27 AS col1
----
91
-27

skipif mysql # not compatible
query II rowsort label-121
SELECT ALL - CAST ( - 91 AS INTEGER ) AS col0, - 27 AS col1
----
91
-27

query II rowsort
SELECT + - 55, 46 + 93 AS col1
----
-55
139

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

skipif mysql # not compatible
query II rowsort label-123
SELECT DISTINCT - - COUNT ( * ), - 54 AS col1
----
1
-54

query II rowsort
SELECT - 70, 23 * - 56 + + 7 AS col1
----
-70
-1281

query I rowsort
SELECT 17 - COALESCE ( 79, - 32 ) + + 8 AS col2
----
-54

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

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

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

query I rowsort
SELECT 96 + 63 AS col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL + COUNT( * ) * 49 + - SUM( 12 ) * + + 58
----
-647

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + COUNT ( * ) * 49 + - SUM ( 12 ) * + + 58
----
-647

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT ALL + 61 DIV - 35
----
-1

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL + 61 / - 35
----
-1

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

query I rowsort
SELECT - 98 + + 54
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-133
SELECT - + 50 AS col2, 0 + - CASE 12 WHEN - NULLIF ( CASE COUNT( * ) WHEN 13 THEN COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) - 21 WHEN + + 63 THEN NULL WHEN 46 - + 24 + - + 39 * 88 * + COALESCE ( 87, + 9 ) * 11 + 61 / + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END, - 63 ) THEN 91 + + 23 ELSE 60 * - 61 END AS col2
----
-50
3660

skipif mysql # not compatible
query II rowsort label-133
SELECT - + 50 AS col2, 0 + - CASE 12 WHEN - NULLIF ( CASE COUNT ( * ) WHEN 13 THEN COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) - 21 WHEN + + 63 THEN NULL WHEN 46 - + 24 + - + 39 * 88 * + COALESCE ( 87, + 9 ) * 11 + 61 / + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END, - 63 ) THEN 91 + + 23 ELSE 60 * - 61 END AS col2
----
-50
3660

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL - MAX( ALL 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL - MAX ( ALL 61 ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-135
SELECT DISTINCT - 42 + - ( + 91 ) - ( - 88 ) + - 39 * + + 23, - COUNT( * ) - + ( - ( - + 73 ) ) + - 39 col2
----
-942
-113

skipif mysql # not compatible
query II rowsort label-135
SELECT DISTINCT - 42 + - ( + 91 ) - ( - 88 ) + - 39 * + + 23, - COUNT ( * ) - + ( - ( - + 73 ) ) + - 39 col2
----
-942
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT MAX( ALL - 42 ) - + 64 + + ( 97 ) + - + COUNT( * ) * 98 + + COUNT( ALL + + CASE 13 WHEN + 66 THEN - 18 ELSE NULL END ) + - 86 - - 11 * - - 70 * + 45 AS col0
----
34457

skipif mysql # not compatible
query I rowsort label-136
SELECT MAX ( ALL - 42 ) - + 64 + + ( 97 ) + - + COUNT ( * ) * 98 + + COUNT ( ALL + + CASE 13 WHEN + 66 THEN - 18 ELSE NULL END ) + - 86 - - 11 * - - 70 * + 45 AS col0
----
34457

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT + COUNT( 9 ) + + + 43
----
44

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT + COUNT ( 9 ) + + + 43
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT + 34 + COUNT( ( 89 ) ) + + 96
----
131

skipif mysql # not compatible
query I rowsort label-138
SELECT + 34 + COUNT ( ( 89 ) ) + + 96
----
131

query II rowsort
SELECT ALL 11 AS col0, 99 * - 38 AS col0
----
11
-3762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT + COUNT( * ) + 91 + + + 41 * - + CAST( NULL AS SIGNED ) + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT + COUNT ( * ) + 91 + + + 41 * - + CAST ( NULL AS INTEGER ) + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL 60 * + CASE + 85 WHEN + ( + + 5 ) * 59 + MAX( - 95 ) / - 89 * 11 THEN + 88 * 75 + + - COALESCE ( 24, - ( 0 ), - 58, - - 84 + 15 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL 60 * + CASE + 85 WHEN + ( + + 5 ) * 59 + MAX ( - 95 ) / - 89 * 11 THEN + 88 * 75 + + - COALESCE ( 24, - ( 0 ), - 58, - - 84 + 15 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-142
SELECT ALL 66 * + - 8 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL 66 * + - 8 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 23 + - ( NULLIF ( - 91, 58 ) )
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-144
SELECT COUNT( * ) + - CAST( + - 39 AS SIGNED ) * - 67 AS col0
----
-2612

skipif mysql # not compatible
query I rowsort label-144
SELECT COUNT ( * ) + - CAST ( + - 39 AS INTEGER ) * - 67 AS col0
----
-2612

query I rowsort
SELECT ( + - 3 ) - + + 15 - 68 * + 32 AS col2
----
-2194

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-146
SELECT 58 + 98 - 37 AS col1, 47 + - CAST( NULL AS SIGNED ) col0
----
119
NULL

skipif mysql # not compatible
query II rowsort label-146
SELECT 58 + 98 - 37 AS col1, 47 + - CAST ( NULL AS INTEGER ) col0
----
119
NULL

query I rowsort
SELECT ALL - 30 - + + 7
----
-37

query I rowsort
SELECT 94 * + 23 + + - 54 * + 72 col1
----
-1726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-149
SELECT - 73 DIV 8 + - - COUNT( * ) + + CAST( - 70 AS SIGNED ) + + + 77 - + 35 * + 64 * - COUNT( * ) + - 39 * + 85 + - 60 * + + SUM( 16 ) * + + 89 AS col1
----
-86516

skipif mysql # not compatible
query I rowsort label-149
SELECT - 73 / 8 + - - COUNT ( * ) + + CAST ( - 70 AS INTEGER ) + + + 77 - + 35 * + 64 * - COUNT ( * ) + - 39 * + 85 + - 60 * + + SUM ( 16 ) * + + 89 AS col1
----
-86516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT DISTINCT - 4 * - + COUNT( * ) DIV - + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT - 4 * - + COUNT ( * ) / - + 47 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT 58 + + 91 - - COUNT( * ) * + 4
----
153

skipif mysql # not compatible
query I rowsort label-151
SELECT 58 + + 91 - - COUNT ( * ) * + 4
----
153

query I rowsort
SELECT ALL - NULLIF ( + 91, - 96 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT + MAX( + 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-153
SELECT + MAX ( + 10 ) AS col1
----
10

query I rowsort
SELECT 73 * + + 54 AS col2
----
3942

query I rowsort
SELECT - 48 * + + 0 + + 94 AS col1
----
94

query I rowsort
SELECT 31 * - CASE + 62 WHEN 20 THEN + 50 / 24 ELSE NULL END + + 72 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-157
SELECT 54 DIV - 74 AS col2, + COUNT( * ) * + 72 AS col2
----
0
72

skipif mysql # not compatible
query II rowsort label-157
SELECT 54 / - 74 AS col2, + COUNT ( * ) * + 72 AS col2
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT COUNT( * ) * - + 22 + 27 + 9 + - 94 - - 55 * + 33 * - 96 * 78
----
-13590800

skipif mysql # not compatible
query I rowsort label-158
SELECT COUNT ( * ) * - + 22 + 27 + 9 + - 94 - - 55 * + 33 * - 96 * 78
----
-13590800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT ALL - CAST( + 54 AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL - CAST ( + 54 AS INTEGER ) AS col1
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-160
SELECT + 69 * - AVG ( - + 36 ) + - - 40 * + ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-160
SELECT + 69 * - AVG ( - + 36 ) + - - 40 * + ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL - SUM( ALL - + 82 ) + 29 - SUM( DISTINCT 90 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL - SUM ( ALL - + 82 ) + 29 - SUM ( DISTINCT 90 ) AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT ALL - 4 DIV - + 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL - 4 / - + 5 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-163
SELECT ALL + - 73 + - - 50 + - 60 + - COUNT( - 5 ) + - 41 DIV 43 * + 72 - 92 - - + COALESCE ( 43, - + 67 * - 99 ) * + 73 AS col1
----
2963

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL + - 73 + - - 50 + - 60 + - COUNT ( - 5 ) + - 41 / 43 * + 72 - 92 - - + COALESCE ( 43, - + 67 * - 99 ) * + 73 AS col1
----
2963

query I rowsort
SELECT ALL - 38 + 17 * + 11
----
149

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-165
SELECT - + NULLIF ( 88, + CAST( 39 AS DECIMAL ) )
----
-88

skipif mysql # not compatible
query I rowsort label-165
SELECT - + NULLIF ( 88, + CAST ( 39 AS REAL ) )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT DISTINCT - ( - - 23 ) + - 89 * + - CASE - 5 WHEN - CASE + 70 WHEN - 77 THEN - + 63 * + NULLIF ( SUM( DISTINCT 52 ), - 62 ) END THEN NULL WHEN - 79 * 33 + - 41 + - NULLIF ( + - 29, + 58 ) THEN NULL WHEN - - 65 / + CAST( NULL AS SIGNED ) * + + 44 THEN + COALESCE ( 77, - 30 * 15 + - COUNT( * ) * - 98 ) + 34 ELSE 65 END
----
5762

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - ( - - 23 ) + - 89 * + - CASE - 5 WHEN - CASE + 70 WHEN - 77 THEN - + 63 * + NULLIF ( SUM ( DISTINCT 52 ), - 62 ) END THEN NULL WHEN - 79 * 33 + - 41 + - NULLIF ( + - 29, + 58 ) THEN NULL WHEN - - 65 / + CAST ( NULL AS INTEGER ) * + + 44 THEN + COALESCE ( 77, - 30 * 15 + - COUNT ( * ) * - 98 ) + 34 ELSE 65 END
----
5762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT ALL - COALESCE ( - + CAST( - 15 AS SIGNED ), - 47 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL - COALESCE ( - + CAST ( - 15 AS INTEGER ), - 47 ) AS col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-168
SELECT DISTINCT + NULLIF ( + + 31, + COUNT( * ) ) + + 31 DIV 26
----
32

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT + NULLIF ( + + 31, + COUNT ( * ) ) + + 31 / 26
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-169
SELECT + 24 * - ( 69 ), - COUNT( * ) * + 62 - - 8 + 50 + - COALESCE ( - - 75, + 92 + + - CAST( - 84 AS SIGNED ) + - COUNT( - 29 ) * - 96 * + ( + 20 ) * + 9, + ( 83 ) * + 19 + + 87 * + 26 * - 36 + 62 ) AS col0
----
-1656
-79

skipif mysql # not compatible
query II rowsort label-169
SELECT + 24 * - ( 69 ), - COUNT ( * ) * + 62 - - 8 + 50 + - COALESCE ( - - 75, + 92 + + - CAST ( - 84 AS INTEGER ) + - COUNT ( - 29 ) * - 96 * + ( + 20 ) * + 9, + ( 83 ) * + 19 + + 87 * + 26 * - 36 + 62 ) AS col0
----
-1656
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-170
SELECT ALL NULLIF ( COUNT( * ), - CASE - - 3 WHEN - + 33 * - 66 DIV 18 + - COUNT( * ) - - - 14 DIV - 93 * - - 73 THEN 82 + - - 26 + - 5 * 50 WHEN 23 THEN - + COUNT( * ) WHEN 33 DIV 89 * + COUNT( * ) + - NULLIF ( - 77, - - 44 + 83 * 39 ) THEN NULL END DIV COUNT( * ) ) DIV 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL NULLIF ( COUNT ( * ), - CASE - - 3 WHEN - + 33 * - 66 / 18 + - COUNT ( * ) - - - 14 / - 93 * - - 73 THEN 82 + - - 26 + - 5 * 50 WHEN 23 THEN - + COUNT ( * ) WHEN 33 / 89 * + COUNT ( * ) + - NULLIF ( - 77, - - 44 + 83 * 39 ) THEN NULL END / COUNT ( * ) ) / 98 AS col0
----
0

query I rowsort
SELECT + 42 + - - 55 * + + 84
----
4662

query I rowsort
SELECT - 53 * + + 43 col2
----
-2279

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-173
SELECT DISTINCT CASE - 36 WHEN 70 * + 25 * - 42 - - 83 * + 77 THEN NULL WHEN - + 16 THEN + 47 * + + 8 - + CAST( NULL AS SIGNED ) + + + 38 + 96 - 85 * - - 81 END / 61, + 50 col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-173
SELECT DISTINCT CASE - 36 WHEN 70 * + 25 * - 42 - - 83 * + 77 THEN NULL WHEN - + 16 THEN + 47 * + + 8 - + CAST ( NULL AS INTEGER ) + + + 38 + 96 - 85 * - - 81 END / 61, + 50 col0
----
NULL
50

query I rowsort
SELECT ALL 24 - - - 56 * + 41 - + 33
----
-2305

query I rowsort
SELECT + 29 * ( 5 )
----
145

query II rowsort
SELECT 56 AS col2, 53
----
56
53

query I rowsort
SELECT ALL 93 * - 58 AS col2
----
-5394

query I rowsort
SELECT + 99 * - 9 * - 8 AS col2
----
7128

query I rowsort
SELECT DISTINCT 5 * + - 19
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT DISTINCT 11 * + ( ( + COALESCE ( - + 12, 84 + - 45 - 75 * NULLIF ( - - 35, - - 87 + - - 32 + - + CASE WHEN NOT NULL IS NULL THEN - 4 ELSE - + COUNT( * ) * + 21 + - CASE WHEN ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) BETWEEN NULL AND NULL THEN NULLIF ( - 39, 0 ) END - - 60 * 98 * + COUNT( * ) END + - 36 * - 56 ) * - 99 ) ) ) col1
----
-132

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT 11 * + ( ( + COALESCE ( - + 12, 84 + - 45 - 75 * NULLIF ( - - 35, - - 87 + - - 32 + - + CASE WHEN NOT NULL IS NULL THEN - 4 ELSE - + COUNT ( * ) * + 21 + - CASE WHEN ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) BETWEEN NULL AND NULL THEN NULLIF ( - 39, 0 ) END - - 60 * 98 * + COUNT ( * ) END + - 36 * - 56 ) * - 99 ) ) ) col1
----
-132

query I rowsort
SELECT + 34 * - 30 AS col2
----
-1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-182
SELECT + 46 + - 18 * - 23 * - ( CAST( NULL AS SIGNED ) ) + 8 + + - 22 - 24 + - - 83 + - + COUNT( ALL + 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT + 46 + - 18 * - 23 * - ( CAST ( NULL AS INTEGER ) ) + 8 + + - 22 - 24 + - - 83 + - + COUNT ( ALL + 75 )
----
NULL

query I rowsort
SELECT + 52 * + 33 AS col1
----
1716

query I rowsort
SELECT ALL 58 * 7
----
406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-185
SELECT + 63 * + CASE - 95 WHEN + ( - COALESCE ( + CAST( - 62 AS SIGNED ), CAST( NULL AS SIGNED ), + 48 ) ) THEN - 8 * 56 WHEN - ( + 73 ) THEN + - MAX( 56 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT + 63 * + CASE - 95 WHEN + ( - COALESCE ( + CAST ( - 62 AS INTEGER ), CAST ( NULL AS INTEGER ), + 48 ) ) THEN - 8 * 56 WHEN - ( + 73 ) THEN + - MAX ( 56 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT - 44 * 15 + - 24 + - 84 + + + 76 * + 68 + SUM( - - 14 ) + - + 18 AS col2
----
4396

skipif mysql # not compatible
query I rowsort label-186
SELECT - 44 * 15 + - 24 + - 84 + + + 76 * + 68 + SUM ( - - 14 ) + - + 18 AS col2
----
4396

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT CASE - 51 WHEN + + 64 + 66 + - 31 + 7 THEN + 63 / - MAX( ALL + ( 24 ) ) WHEN - 42 THEN NULL ELSE - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-187
SELECT CASE - 51 WHEN + + 64 + 66 + - 31 + 7 THEN + 63 / - MAX ( ALL + ( 24 ) ) WHEN - 42 THEN NULL ELSE - 86 END
----
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-188
SELECT - CAST( NULL AS DECIMAL ) + 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-188
SELECT - CAST ( NULL AS REAL ) + 99 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-189
SELECT DISTINCT + COUNT( * ) AS col2, + 96 col2
----
1
96

skipif mysql # not compatible
query II rowsort label-189
SELECT DISTINCT + COUNT ( * ) AS col2, + 96 col2
----
1
96

query I rowsort
SELECT ALL + NULLIF ( + 39, 66 )
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-191
SELECT DISTINCT + 6 * - + CAST( NULL AS DECIMAL ) - ( - 40 ) + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT + 6 * - + CAST ( NULL AS REAL ) - ( - 40 ) + + 15
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-192
SELECT ALL + 94 * ( + + 82 ) AS col2, + 92 DIV 92 AS col2
----
7708
1

skipif mysql # not compatible
query II rowsort label-192
SELECT ALL + 94 * ( + + 82 ) AS col2, + 92 / 92 AS col2
----
7708
1

query I rowsort
SELECT DISTINCT + 42 * - 56 + + 0 * - + 17
----
-2352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT DISTINCT - COUNT( - 76 ) DIV - 8 * + 73 * - - 87 col0
----
0

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT - COUNT ( - 76 ) / - 8 * + 73 * - - 87 col0
----
0

query I rowsort
SELECT + 57 + + - ( - - 29 )
----
28

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

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

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

skipif mysql # not compatible
query I rowsort label-197
SELECT + + COUNT ( * ) / 82 AS col1
----
0

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

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

query I rowsort
SELECT - - 64 - + 62
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-200
SELECT ALL + ( 8 ) * + 17 * - - 26 + + ( + NULLIF ( + - 92, + ( - 12 ) + - - 74 ) ) + 24, CASE CAST( NULL AS SIGNED ) WHEN - 63 THEN 71 * 46 - 7 - - 27 END AS col0
----
3468
NULL

skipif mysql # not compatible
query II rowsort label-200
SELECT ALL + ( 8 ) * + 17 * - - 26 + + ( + NULLIF ( + - 92, + ( - 12 ) + - - 74 ) ) + 24, CASE CAST ( NULL AS INTEGER ) WHEN - 63 THEN 71 * 46 - 7 - - 27 END AS col0
----
3468
NULL

query II rowsort
SELECT - 78, + 90 AS col0
----
-78
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-202
SELECT ALL ( - CASE CASE - + 6 WHEN - - 81 THEN - 8 + - COUNT( - 80 ) ELSE - + 61 + CAST( NULL AS SIGNED ) + + - COALESCE ( + 22, 31 ) * + 71 END WHEN + MAX( ALL - 13 ) * 11 * - ( 96 ) / + COUNT( * ) + - MIN( - NULLIF ( + 30, - 5 / 39 ) ) + - 43 THEN + 88 WHEN 30 * COUNT( * ) THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL ( - CASE CASE - + 6 WHEN - - 81 THEN - 8 + - COUNT ( - 80 ) ELSE - + 61 + CAST ( NULL AS INTEGER ) + + - COALESCE ( + 22, 31 ) * + 71 END WHEN + MAX ( ALL - 13 ) * 11 * - ( 96 ) / + COUNT ( * ) + - MIN ( - NULLIF ( + 30, - 5 / 39 ) ) + - 43 THEN + 88 WHEN 30 * COUNT ( * ) THEN NULL ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-203
SELECT MAX( ALL ( - 11 ) ), - 80 AS col2
----
-11
-80

skipif mysql # not compatible
query II rowsort label-203
SELECT MAX ( ALL ( - 11 ) ), - 80 AS col2
----
-11
-80

query I rowsort
SELECT - 16 * + - 14
----
224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT - + CAST( NULL AS SIGNED ) + + MIN( - 16 ) / ( + AVG ( DISTINCT 40 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT - + CAST ( NULL AS INTEGER ) + + MIN ( - 16 ) / ( + AVG ( DISTINCT 40 ) ) AS col2
----
NULL

query I rowsort
SELECT - + 21 * - 51 * + COALESCE ( + - 46, - 97, 7 ) + - 74 AS col1
----
-49340

query I rowsort
SELECT - 36 + + + 46 - - 95 * + 96 AS col0
----
9130

query I rowsort
SELECT - 12 + + 3
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT - 30 + ( + + COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-209
SELECT - 30 + ( + + COUNT ( * ) )
----
-29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-211
SELECT - 58 + + - COALESCE ( + 11, NULLIF ( - + 36, - 47 * 30 - CAST( 23 AS SIGNED ) ) + - 34 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-211
SELECT - 58 + + - COALESCE ( + 11, NULLIF ( - + 36, - 47 * 30 - CAST ( 23 AS INTEGER ) ) + - 34 ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-212
SELECT DISTINCT + 13 - + 1 AS col1, + 88 * MIN( + 82 )
----
12
7216

skipif mysql # not compatible
query II rowsort label-212
SELECT DISTINCT + 13 - + 1 AS col1, + 88 * MIN ( + 82 )
----
12
7216

onlyif mysql # aggregate syntax: 
query II rowsort label-213
SELECT + NULLIF ( 35, + 29 ) + + COUNT( * ) + - 81 AS col1, 22
----
-45
22

skipif mysql # not compatible
query II rowsort label-213
SELECT + NULLIF ( 35, + 29 ) + + COUNT ( * ) + - 81 AS col1, 22
----
-45
22

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT - COUNT( * ) + SUM( ALL + 16 ) + + 50 * + 48 - + ( + + CASE 27 WHEN - 87 THEN + 97 * COALESCE ( 90, - 12, - - 96 / - 16 * + - 1 ) * - MAX( + - 79 ) - - 70 ELSE NULL END ) * 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT - COUNT ( * ) + SUM ( ALL + 16 ) + + 50 * + 48 - + ( + + CASE 27 WHEN - 87 THEN + 97 * COALESCE ( 90, - 12, - - 96 / - 16 * + - 1 ) * - MAX ( + - 79 ) - - 70 ELSE NULL END ) * 24 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-215
SELECT + ( - - 90 ) + + - ( + - 44 ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-215
SELECT + ( - - 90 ) + + - ( + - 44 ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - 40 * - + 95 AS col0
----
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT - CASE + - 22 WHEN 88 THEN 95 WHEN - COUNT( - - 18 ) + - 50 THEN + 0 ELSE NULL END * MAX( - 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-217
SELECT - CASE + - 22 WHEN 88 THEN 95 WHEN - COUNT ( - - 18 ) + - 50 THEN + 0 ELSE NULL END * MAX ( - 78 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-218
SELECT ALL 10 DIV - NULLIF ( - - 23, + + COUNT( * ) ) DIV - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL 10 / - NULLIF ( - - 23, + + COUNT ( * ) ) / - - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-219
SELECT ( + 74 ) * + - COUNT( * ) * + 93 - + COUNT( * ) + + 24 / - 35 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-219
SELECT ( + 74 ) * + - COUNT ( * ) * + 93 - + COUNT ( * ) + + 24 / - 35 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 4 * - + 26 col0
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-221
SELECT ALL 14 DIV + 27 + - + COUNT( * ) * + 35 + + 18
----
-17

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL 14 / + 27 + - + COUNT ( * ) * + 35 + + 18
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-222
SELECT + 27 DIV - COUNT( * ) + + 37
----
10

skipif mysql # not compatible
query I rowsort label-222
SELECT + 27 / - COUNT ( * ) + + 37
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-223
SELECT DISTINCT - 23 DIV 67 + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT - 23 / 67 + 64 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-224
SELECT ALL + 52 DIV + 26 + - 89 * - - 59 - + - CAST( + 3 AS SIGNED )
----
-5246

skipif mysql # not compatible
query I rowsort label-224
SELECT ALL + 52 / + 26 + - 89 * - - 59 - + - CAST ( + 3 AS INTEGER )
----
-5246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-225
SELECT ALL + 37 * - ( - + 39 ) * + CAST( NULL AS SIGNED ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + 37 * - ( - + 39 ) * + CAST ( NULL AS INTEGER ) * - 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT - + 32 + + + NULLIF ( + 21, - 13 + + 99 * 60 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT - + 32 + + + NULLIF ( + 21, - 13 + + 99 * 60 ) / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 57 * + - 60 + + 74 - - - 44 - - 8 AS col0, 85
----
-3382
85

query I rowsort
SELECT + + 98 * + 70 AS col0
----
6860

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - - 80 * + + 82 * + 48 - + 61 + + COUNT( * ) * - 41 + + 1
----
314779

skipif mysql # not compatible
query I rowsort label-229
SELECT - - 80 * + + 82 * + 48 - + 61 + + COUNT ( * ) * - 41 + + 1
----
314779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-230
SELECT ALL 8 + - 46 + 75 * + CASE + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) WHEN - ( + - ( - - 79 ) ) THEN + - 8 END + - 48 + + ( CASE - 60 WHEN + ( + 67 ) + - 78 THEN 43 WHEN + 41 THEN NULL ELSE NULL END ) + - MIN( + 7 ) * + 83 / + 91 * + 10 * - 22 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL 8 + - 46 + 75 * + CASE + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) WHEN - ( + - ( - - 79 ) ) THEN + - 8 END + - 48 + + ( CASE - 60 WHEN + ( + 67 ) + - 78 THEN 43 WHEN + 41 THEN NULL ELSE NULL END ) + - MIN ( + 7 ) * + 83 / + 91 * + 10 * - 22 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-231
SELECT DISTINCT + COUNT( * ) + + 50 + ( - - 84 ) * 33 * - - COUNT( * ) * - NULLIF ( - CAST( - + 59 AS SIGNED ), - 50 + - NULLIF ( - 92, + COUNT( * ) * - COALESCE ( + + 24, - 38 ) + + + 56 + + 54 - - 84 + - ( - CAST( NULL AS SIGNED ) ) - + CAST( NULL AS SIGNED ) * 57 + + + 8 ) )
----
-163497

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + COUNT ( * ) + + 50 + ( - - 84 ) * 33 * - - COUNT ( * ) * - NULLIF ( - CAST ( - + 59 AS INTEGER ), - 50 + - NULLIF ( - 92, + COUNT ( * ) * - COALESCE ( + + 24, - 38 ) + + + 56 + + 54 - - 84 + - ( - CAST ( NULL AS INTEGER ) ) - + CAST ( NULL AS INTEGER ) * 57 + + + 8 ) )
----
-163497

query I rowsort
SELECT 50 * - 10 AS col0
----
-500

onlyif mysql # DIV for integer division: 
query II rowsort label-233
SELECT ALL 30 DIV + 96 AS col1, 88 + - 84 AS col2
----
0
4

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL 30 / + 96 AS col1, 88 + - 84 AS col2
----
0
4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT ALL - 10 + 74 + - 41 + ( + - AVG ( ALL - 95 ) ) + + 61 + + 35 * COUNT( * ) - + - 6 + - NULLIF ( - SUM( DISTINCT - CAST( NULL AS SIGNED ) ), - 64 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL - 10 + 74 + - 41 + ( + - AVG ( ALL - 95 ) ) + + 61 + + 35 * COUNT ( * ) - + - 6 + - NULLIF ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ), - 64 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-236
SELECT - 22 * - CAST( NULL AS SIGNED ) + + 82 + + + 27 + + - COUNT( * ) + + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT - 22 * - CAST ( NULL AS INTEGER ) + + 82 + + + 27 + + - COUNT ( * ) + + 78 AS col1
----
NULL

query I rowsort
SELECT ALL - - 6 - + 82 + + + 39
----
-37

query I rowsort
SELECT ALL + 72 * + 49 * 2 * - + 45 * 30 AS col0
----
-9525600

query I rowsort
SELECT + 27 * - 80 AS col1
----
-2160

query I rowsort
SELECT ALL - 61 * 98 AS col1
----
-5978

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

query II rowsort
SELECT DISTINCT + 28 * + + 23, 75 AS col1
----
644
75

query I rowsort
SELECT ALL 19 - + 51
----
-32

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-245
SELECT 58 + 7 + + CAST( NULL AS DECIMAL ) + - 49 * 16 AS col2, + 18 * - + 10 + 28
----
NULL
-152

skipif mysql # not compatible
query II rowsort label-245
SELECT 58 + 7 + + CAST ( NULL AS REAL ) + - 49 * 16 AS col2, + 18 * - + 10 + 28
----
NULL
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT 29 DIV ( + 85 ) * + + 28 col2
----
0

skipif mysql # not compatible
query I rowsort label-246
SELECT 29 / ( + 85 ) * + + 28 col2
----
0

query II rowsort
SELECT ALL 66, 25 AS col0
----
66
25

query II rowsort
SELECT DISTINCT 68 AS col0, + 56
----
68
56

query I rowsort
SELECT 77 * - 97 AS col1
----
-7469

query I rowsort
SELECT 48 * 13 AS col2
----
624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL + 0 * + COUNT( * ) * 45 * + 90 * + + 99 / + + CAST( NULL AS SIGNED ) / - - CAST( + 85 AS SIGNED ) / 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + 0 * + COUNT ( * ) * 45 * + 90 * + + 99 / + + CAST ( NULL AS INTEGER ) / - - CAST ( + 85 AS INTEGER ) / 25 AS col2
----
NULL

query I rowsort
SELECT ALL - 36 + + 79
----
43

query I rowsort
SELECT 64 - - 71
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT ALL - COUNT( * ) + 22 + + 1 - + + 84
----
-62

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL - COUNT ( * ) + 22 + + 1 - + + 84
----
-62

query I rowsort
SELECT ALL - 37 + 31 AS col2
----
-6

query I rowsort
SELECT + 26 + - - CASE + 64 WHEN + 69 THEN - + 94 / + 80 ELSE NULL END + - + 2 / - - 88 / - + 41
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT 86 * + SUM( DISTINCT + ( - 67 ) )
----
-5762

skipif mysql # not compatible
query I rowsort label-258
SELECT 86 * + SUM ( DISTINCT + ( - 67 ) )
----
-5762

query I rowsort
SELECT ALL + 81 - + - 62
----
143

query II rowsort
SELECT 90, - 77 AS col2
----
90
-77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT DISTINCT - 32 * + SUM( + 90 )
----
-2880

skipif mysql # not compatible
query I rowsort label-263
SELECT DISTINCT - 32 * + SUM ( + 90 )
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT 45 + + 90 + - COUNT( * ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-264
SELECT 45 + + 90 + - COUNT ( * ) AS col2
----
134

query I rowsort
SELECT - 25 * + 93
----
-2325

query II rowsort
SELECT DISTINCT - + 99 AS col2, + ( + - 64 ) * - 60 + - 68 + - 30 + + 25 AS col2
----
-99
3767

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

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT - SUM( - 4 ) * + + ( + 19 )
----
76

skipif mysql # not compatible
query I rowsort label-268
SELECT - SUM ( - 4 ) * + + ( + 19 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-269
SELECT DISTINCT 0 AS col2, + NULLIF ( + + SUM( 10 ), + 96 * - COUNT( * ) * + 34 + - 83 + - CAST( NULL AS SIGNED ) ) + 22 * + 24 AS col0
----
0
538

skipif mysql # not compatible
query II rowsort label-269
SELECT DISTINCT 0 AS col2, + NULLIF ( + + SUM ( 10 ), + 96 * - COUNT ( * ) * + 34 + - 83 + - CAST ( NULL AS INTEGER ) ) + 22 * + 24 AS col0
----
0
538

query II rowsort
SELECT 77 AS col0, + 22
----
77
22

query I rowsort
SELECT 58 * - - 62 col2
----
3596

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT ALL - 67 * + 98 * + COUNT( * ) * - + COUNT( DISTINCT - - 97 )
----
6566

skipif mysql # not compatible
query I rowsort label-272
SELECT ALL - 67 * + 98 * + COUNT ( * ) * - + COUNT ( DISTINCT - - 97 )
----
6566

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT 64 - - COALESCE ( 60, 18, + 63 * + - 75 * - + 40 + COUNT( * ) + 51 + 64 )
----
124

skipif mysql # not compatible
query I rowsort label-273
SELECT 64 - - COALESCE ( 60, 18, + 63 * + - 75 * - + 40 + COUNT ( * ) + 51 + 64 )
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - SUM( 42 ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-274
SELECT - SUM ( 42 ) col1
----
-42

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

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

query II rowsort
SELECT - 17 AS col0, 2 AS col2
----
-17
2

query I rowsort
SELECT 48 + ( 42 )
----
90

query I rowsort
SELECT 83 * - 87 AS col0
----
-7221

onlyif mysql # aggregate syntax: 
query II rowsort label-279
SELECT ALL 35 * + COUNT( * ), + MAX( ALL + 56 ) * - ( + - 26 ) - + 26 AS col0
----
35
1430

skipif mysql # not compatible
query II rowsort label-279
SELECT ALL 35 * + COUNT ( * ), + MAX ( ALL + 56 ) * - ( + - 26 ) - + 26 AS col0
----
35
1430

query I rowsort
SELECT ALL 93 * - 41
----
-3813

query I rowsort
SELECT ( - 21 ) + 89 AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-282
SELECT 15 AS col1, COUNT( * ) DIV + COALESCE ( - + 30, - - 28 ) AS col2
----
15
0

skipif mysql # not compatible
query II rowsort label-282
SELECT 15 AS col1, COUNT ( * ) / + COALESCE ( - + 30, - - 28 ) AS col2
----
15
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-283
SELECT ( - 4 ) + - - NULLIF ( + MAX( DISTINCT CAST( NULL AS SIGNED ) ), + - AVG ( ALL CAST( NULL AS SIGNED ) ) * - 15 ) + + 62 * + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT ( - 4 ) + - - NULLIF ( + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ), + - AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 15 ) + + 62 * + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT ALL - COUNT( * ) + 19 + - - 96
----
114

skipif mysql # not compatible
query I rowsort label-284
SELECT ALL - COUNT ( * ) + 19 + - - 96
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT COUNT( + 73 ) + 94 * - + 89 AS col0
----
-8365

skipif mysql # not compatible
query I rowsort label-285
SELECT COUNT ( + 73 ) + 94 * - + 89 AS col0
----
-8365

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL + SUM( DISTINCT - 9 ) + - ( - 6 ) - + 70 col0
----
-73

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL + SUM ( DISTINCT - 9 ) + - ( - 6 ) - + 70 col0
----
-73

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

query I rowsort
SELECT 2 + + + 39
----
41

query I rowsort
SELECT ALL + 78 + - - 48
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT CAST( + 72 AS SIGNED ) * - 29
----
-2088

skipif mysql # not compatible
query I rowsort label-290
SELECT CAST ( + 72 AS INTEGER ) * - 29
----
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT DISTINCT + - 94 * - 49 + + COUNT( * ) * + - 3 * MAX( DISTINCT 18 )
----
4552

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + - 94 * - 49 + + COUNT ( * ) * + - 3 * MAX ( DISTINCT 18 )
----
4552

query I rowsort
SELECT ALL - - 28 * - 11 + + - 24
----
-332

query II rowsort
SELECT + - 11, 82 * + ( + 25 ) AS col2
----
-11
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT - 7 + 71 * - + COALESCE ( + SUM( ALL - 20 ), + 36 * 11 * - - 63 )
----
1413

skipif mysql # not compatible
query I rowsort label-294
SELECT - 7 + 71 * - + COALESCE ( + SUM ( ALL - 20 ), + 36 * 11 * - - 63 )
----
1413

onlyif mysql # aggregate syntax: 
query II rowsort label-295
SELECT - - 65 * COUNT( * ), + 57 AS col0
----
65
57

skipif mysql # not compatible
query II rowsort label-295
SELECT - - 65 * COUNT ( * ), + 57 AS col0
----
65
57

query II rowsort
SELECT ALL - - NULLIF ( 90, + 25 * - 44 / - 24 ) * - - 34, 54 AS col2
----
3060
54

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-298
SELECT - + NULLIF ( - CAST( + 59 AS SIGNED ), - 64 ) * + 13 + - 24 + + 42 AS col1
----
785

skipif mysql # not compatible
query I rowsort label-298
SELECT - + NULLIF ( - CAST ( + 59 AS INTEGER ), - 64 ) * + 13 + - 24 + + 42 AS col1
----
785

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-299
SELECT - - 16 + + CAST( NULL AS DECIMAL ) - COUNT( - + 91 ) col2, + 86 + + 1
----
NULL
87

skipif mysql # not compatible
query II rowsort label-299
SELECT - - 16 + + CAST ( NULL AS REAL ) - COUNT ( - + 91 ) col2, + 86 + + 1
----
NULL
87

query I rowsort
SELECT DISTINCT + + ( - ( - - ( + - ( 82 ) ) ) ) col0
----
82

query I rowsort
SELECT DISTINCT + - 45 * + - 51 - - 11
----
2306

query II rowsort
SELECT 23, 88 AS col1
----
23
88

query II rowsort
SELECT ALL + 47 col2, - 87 + + ( + 31 ) AS col1
----
47
-56

query I rowsort
SELECT ALL - 78 * - ( + ( - 89 ) )
----
-6942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT - 85 + + COUNT( * ) + 67 - + ( - + 8 ) DIV + 33 + - COUNT( * ) * - + 63 * SUM( ALL 43 ) AS col2
----
2692

skipif mysql # not compatible
query I rowsort label-305
SELECT - 85 + + COUNT ( * ) + 67 - + ( - + 8 ) / + 33 + - COUNT ( * ) * - + 63 * SUM ( ALL 43 ) AS col2
----
2692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-306
SELECT ALL + COALESCE ( + NULLIF ( - 70, - 63 - - - 98 + NULLIF ( - + 83, - COUNT( * ) ) + - + 17 ), + CAST( NULL AS SIGNED ) )
----
-70

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + COALESCE ( + NULLIF ( - 70, - 63 - - - 98 + NULLIF ( - + 83, - COUNT ( * ) ) + - + 17 ), + CAST ( NULL AS INTEGER ) )
----
-70

query I rowsort
SELECT DISTINCT 95 * - 72
----
-6840

onlyif mysql # aggregate syntax: 
query II rowsort label-308
SELECT + MIN( ALL - 97 ), 1 - + 39 + - MIN( ALL + - 35 ) * + + 97 AS col0
----
-97
3357

skipif mysql # not compatible
query II rowsort label-308
SELECT + MIN ( ALL - 97 ), 1 - + 39 + - MIN ( ALL + - 35 ) * + + 97 AS col0
----
-97
3357

query I rowsort
SELECT ALL + ( + 63 ) + 22 + - COALESCE ( 15, ( 48 ) )
----
70

query I rowsort
SELECT + 35 * 41
----
1435

query I rowsort
SELECT - 47 * - - 91
----
-4277

query II rowsort
SELECT + 53 + - 25 col1, 90 * 43 * - + 92
----
28
-356040

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

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

query II rowsort
SELECT + 17 * + 89 AS col1, + 17 AS col0
----
1513
17

query I rowsort
SELECT ALL 87 + - 84 AS col1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-316
SELECT + 69 DIV 91 AS col0, - 59 AS col1
----
0
-59

skipif mysql # not compatible
query II rowsort label-316
SELECT + 69 / 91 AS col0, - 59 AS col1
----
0
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL 81 + + - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL 81 + + - COUNT ( * )
----
80

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

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

query I rowsort
SELECT ALL 51 + COALESCE ( - + 53, 11 * + + 13, - 95 )
----
-2

query I rowsort
SELECT - ( 97 ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT + 39 * + - COUNT( * ) * + + 99 * 95 AS col1
----
-366795

skipif mysql # not compatible
query I rowsort label-321
SELECT + 39 * + - COUNT ( * ) * + + 99 * 95 AS col1
----
-366795

query I rowsort
SELECT - 15 * 68 * - ( + + 17 ) * - NULLIF ( + 40, + 89 ) AS col2
----
-693600

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT ALL COALESCE ( + - 63, 96 + + NULLIF ( + 33, + + 10 + + 23 - - 53 ), 63 * + + 28 ) - - COUNT( * ) col1
----
-62

skipif mysql # not compatible
query I rowsort label-323
SELECT ALL COALESCE ( + - 63, 96 + + NULLIF ( + 33, + + 10 + + 23 - - 53 ), 63 * + + 28 ) - - COUNT ( * ) col1
----
-62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT - - COALESCE ( - - 38, - + 22, + CAST( 87 AS SIGNED ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-325
SELECT - - COALESCE ( - - 38, - + 22, + CAST ( 87 AS INTEGER ) ) AS col1
----
38

query I rowsort
SELECT ALL 14 * 7 AS col2
----
98

query I rowsort
SELECT + 10 + - + 52
----
-42

query I rowsort
SELECT - + ( - 19 ) * + 8 AS col1
----
152

query I rowsort
SELECT - - 79 - 16
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT - - 23 DIV + 87 + - - ( - 81 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-330
SELECT - - 23 / + 87 + - - ( - 81 ) col1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT ALL - - CAST( NULL AS SIGNED ) * - ( + CASE 9 WHEN + 34 THEN 36 WHEN 34 * + 71 + + - 33 * - 39 * - 90 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - - CAST ( NULL AS INTEGER ) * - ( + CASE 9 WHEN + 34 THEN 36 WHEN 34 * + 71 + + - 33 * - 39 * - 90 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT - 16 * - COUNT( DISTINCT + 38 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-332
SELECT - 16 * - COUNT ( DISTINCT + 38 ) AS col0
----
16

query II rowsort
SELECT ALL - - 57 * - 49 AS col0, - 54 col1
----
-2793
-54

query I rowsort
SELECT - 73 + + - 49 AS col1
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-335
SELECT ALL 43 * NULLIF ( 75, + + 75 * - 51 * + 63 ) DIV - NULLIF ( - NULLIF ( - COUNT( * ), - - 62 ), - CAST( - - 71 AS SIGNED ) ) + - + 86 col1
----
-3311

skipif mysql # not compatible
query I rowsort label-335
SELECT ALL 43 * NULLIF ( 75, + + 75 * - 51 * + 63 ) / - NULLIF ( - NULLIF ( - COUNT ( * ), - - 62 ), - CAST ( - - 71 AS INTEGER ) ) + - + 86 col1
----
-3311

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-337
SELECT + + COUNT( - 87 ) * + 71 + - 80 DIV - 13 + 98 - - 84 + + 39 AS col0
----
298

skipif mysql # not compatible
query I rowsort label-337
SELECT + + COUNT ( - 87 ) * + 71 + - 80 / - 13 + 98 - - 84 + + 39 AS col0
----
298

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL + 5 * + + COALESCE ( + 39, ( + - 52 ) * + ( + 26 ) * + + 23 ) + + CASE ( - 15 ) WHEN 60 * - 63 THEN NULL ELSE - + COUNT( * ) END
----
194

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL + 5 * + + COALESCE ( + 39, ( + - 52 ) * + ( + 26 ) * + + 23 ) + + CASE ( - 15 ) WHEN 60 * - 63 THEN NULL ELSE - + COUNT ( * ) END
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT + 30 + MAX( + - 89 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-339
SELECT + 30 + MAX ( + - 89 ) AS col1
----
-59

query I rowsort
SELECT - 47 * - 58 AS col0
----
2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-341
SELECT DISTINCT COUNT( - + 28 ) * + 44 + CASE + COUNT( * ) WHEN + - 4 THEN NULL WHEN - 32 THEN NULL ELSE - CAST( NULL AS SIGNED ) * 15 + + 16 END + COUNT( * ) * + 34 + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT COUNT ( - + 28 ) * + 44 + CASE + COUNT ( * ) WHEN + - 4 THEN NULL WHEN - 32 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * 15 + + 16 END + COUNT ( * ) * + 34 + 24
----
NULL

query II rowsort
SELECT + 61 AS col2, - 60 col2
----
61
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT - COUNT( * ) - - 99 - 78 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-343
SELECT - COUNT ( * ) - - 99 - 78 AS col0
----
20

query I rowsort
SELECT - 94 * 13 AS col0
----
-1222

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT ALL + 50 DIV 38 * + + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL + 50 / 38 * + + 30 AS col1
----
30

query I rowsort
SELECT ALL + 23 * + 16 * + - 66 * + 17 + + + 46
----
-412850

query II rowsort
SELECT ALL 40 * - 91 * + 77 AS col2, 94 AS col0
----
-280280
94

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT - CASE - 44 WHEN + COUNT( * ) THEN NULL ELSE 92 END
----
-92

skipif mysql # not compatible
query I rowsort label-350
SELECT - CASE - 44 WHEN + COUNT ( * ) THEN NULL ELSE 92 END
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT - ( + 88 ) + + + COUNT( * ) * + - ( - 94 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-351
SELECT - ( + 88 ) + + + COUNT ( * ) * + - ( - 94 ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-352
SELECT + 40 - 99 + + 30 + - + 68 + - + 2 DIV + - ( - NULLIF ( ( + + 53 ), + 97 * - + COUNT( * ) + + 79 + - + 68 ) ) * COALESCE ( SUM( - - 14 ), - - 76 * - SUM( + - 69 ) + - 70 + + + 7 ) * + 26 col2
----
-97

skipif mysql # not compatible
query I rowsort label-352
SELECT + 40 - 99 + + 30 + - + 68 + - + 2 / + - ( - NULLIF ( ( + + 53 ), + 97 * - + COUNT ( * ) + + 79 + - + 68 ) ) * COALESCE ( SUM ( - - 14 ), - - 76 * - SUM ( + - 69 ) + - 70 + + + 7 ) * + 26 col2
----
-97

query I rowsort
SELECT 82 + + 28 AS col1
----
110

query II rowsort
SELECT 77 AS col0, + 45 * - - 73
----
77
3285

query I rowsort
SELECT DISTINCT - 60 - - 92 * 3
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-356
SELECT ALL - 81 AS col2, CASE + ( + 92 ) WHEN + 59 THEN + 79 * - 18 / + 24 + - 76 - + 10 ELSE NULL END * CAST( - 81 AS SIGNED ) AS col2
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-356
SELECT ALL - 81 AS col2, CASE + ( + 92 ) WHEN + 59 THEN + 79 * - 18 / + 24 + - 76 - + 10 ELSE NULL END * CAST ( - 81 AS INTEGER ) AS col2
----
-81
NULL

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

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

query I rowsort
SELECT 71 + - 64
----
7

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

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

query II rowsort
SELECT ALL 20 AS col2, 31 * + 53 col0
----
20
1643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-361
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - COUNT( * ) + + - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) + + - 38 )
----
NULL

query I rowsort
SELECT DISTINCT - 44 * 31
----
-1364

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-364
SELECT + COUNT( * ) / MAX( ALL - - CAST( NULL AS SIGNED ) ) + 71 / 32
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT + COUNT ( * ) / MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + 71 / 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT 27 DIV + 2
----
13

skipif mysql # not compatible
query I rowsort label-365
SELECT 27 / + 2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-366
SELECT 71 DIV - 27
----
-2

skipif mysql # not compatible
query I rowsort label-366
SELECT 71 / - 27
----
-2

query I rowsort
SELECT DISTINCT 70 * 51
----
3570

query I rowsort
SELECT ALL 75 * - + 2
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-369
SELECT CAST( NULL AS SIGNED ), - 77 * + 75 + 75 AS col0
----
NULL
-5700

skipif mysql # not compatible
query II rowsort label-369
SELECT CAST ( NULL AS INTEGER ), - 77 * + 75 + 75 AS col0
----
NULL
-5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-370
SELECT ALL - 17, + 22 + 31 * - 91 + - 49 / - CASE - + 8 WHEN + COALESCE ( 88, ( + 13 ) * 29 + + 27 + + 92 + 25 - - 14 * + CAST( NULL AS SIGNED ), - ( COUNT( * ) ) ) + - + 4 / - - 45 THEN NULL WHEN NULLIF ( ( - 32 ), COALESCE ( - CAST( 4 AS SIGNED ), + + MIN( ALL - ( 42 ) ) * CAST( NULL AS SIGNED ) + + 20, + 0 ) ) + - 81 THEN 83 END * ( + 38 ) + - 94 AS col2
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-370
SELECT ALL - 17, + 22 + 31 * - 91 + - 49 / - CASE - + 8 WHEN + COALESCE ( 88, ( + 13 ) * 29 + + 27 + + 92 + 25 - - 14 * + CAST ( NULL AS INTEGER ), - ( COUNT ( * ) ) ) + - + 4 / - - 45 THEN NULL WHEN NULLIF ( ( - 32 ), COALESCE ( - CAST ( 4 AS INTEGER ), + + MIN ( ALL - ( 42 ) ) * CAST ( NULL AS INTEGER ) + + 20, + 0 ) ) + - 81 THEN 83 END * ( + 38 ) + - 94 AS col2
----
-17
NULL

query I rowsort
SELECT 20 * + - 69
----
-1380

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT ( + 54 ) DIV 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-372
SELECT ( + 54 ) / 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT + - COUNT( DISTINCT + 79 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-373
SELECT + - COUNT ( DISTINCT + 79 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL + COUNT( * ) + 91 + - 34 - + 84 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + COUNT ( * ) + 91 + - 34 - + 84 AS col2
----
-26

query I rowsort
SELECT DISTINCT 77 + - 86 + + + 61 AS col2
----
52

query I rowsort
SELECT ALL - 9 + 37
----
28

query I rowsort
SELECT 73 + - - ( 78 ) - + ( - + 22 ) - NULLIF ( - - 27, - 90 ) * - 2
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT DISTINCT + 36 * - + CAST( - 31 AS SIGNED ) * + + 15 - + - MIN( DISTINCT - 47 ) AS col2
----
16693

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT + 36 * - + CAST ( - 31 AS INTEGER ) * + + 15 - + - MIN ( DISTINCT - 47 ) AS col2
----
16693

query I rowsort
SELECT DISTINCT 17 * - + 38 AS col0
----
-646

query I rowsort
SELECT ALL 76 + + 1 + + 95 AS col2
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-381
SELECT 11 * + + MIN( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT 89 DIV - 85
----
-1

skipif mysql # not compatible
query I rowsort label-382
SELECT 89 / - 85
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-383
SELECT 98 * + 86, - MAX( - + NULLIF ( - 38, - + 89 + + - CAST( NULL AS SIGNED ) ) ) AS col2, - 27 AS col0
----
8428
-38
-27

skipif mysql # not compatible
query III rowsort label-383
SELECT 98 * + 86, - MAX ( - + NULLIF ( - 38, - + 89 + + - CAST ( NULL AS INTEGER ) ) ) AS col2, - 27 AS col0
----
8428
-38
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-384
SELECT 1 DIV + + 7 AS col0, 24
----
0
24

skipif mysql # not compatible
query II rowsort label-384
SELECT 1 / + + 7 AS col0, 24
----
0
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-385
SELECT DISTINCT + ( - 56 ) / NULLIF ( - CAST( NULL AS SIGNED ), - 61 ) AS col0, 20 + - COUNT( * ) AS col0, - + 94 * - NULLIF ( 39, + 26 ) / - 55 + CAST( NULL AS SIGNED ) - + 48
----
NULL
19
NULL

skipif mysql # not compatible
query III rowsort label-385
SELECT DISTINCT + ( - 56 ) / NULLIF ( - CAST ( NULL AS INTEGER ), - 61 ) AS col0, 20 + - COUNT ( * ) AS col0, - + 94 * - NULLIF ( 39, + 26 ) / - 55 + CAST ( NULL AS INTEGER ) - + 48
----
NULL
19
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-386
SELECT CAST( - - 0 AS SIGNED ) - + - 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-386
SELECT CAST ( - - 0 AS INTEGER ) - + - 63 AS col1
----
63

query I rowsort
SELECT + 53 * + + 14 + + 98
----
840

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT DISTINCT + - 15 * - 48 * + 46 * + CAST( NULL AS SIGNED ) + + 48 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT + - 15 * - 48 * + 46 * + CAST ( NULL AS INTEGER ) + + 48 col1
----
NULL

query II rowsort
SELECT - 19 * + 67 * - ( + 0 ) AS col2, 22
----
0
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-391
SELECT ALL ( - - 74 ) + 3 + - 17 * - 59, - 10 * - SUM( - - 2 ) + + + CAST( NULL AS SIGNED ) AS col1
----
1080
NULL

skipif mysql # not compatible
query II rowsort label-391
SELECT ALL ( - - 74 ) + 3 + - 17 * - 59, - 10 * - SUM ( - - 2 ) + + + CAST ( NULL AS INTEGER ) AS col1
----
1080
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT COUNT( * ) - + - 22
----
23

skipif mysql # not compatible
query I rowsort label-392
SELECT COUNT ( * ) - + - 22
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-393
SELECT ALL + + ( + + COUNT( DISTINCT - + 12 ) ) * ( + COALESCE ( - + 0, + + MIN( DISTINCT - + 52 ) DIV ( - 52 ), - CASE - 99 WHEN + 18 * 21 * 92 THEN 87 ELSE NULL END * + + 15 + - 71 + 50 * COUNT( * ) * - + 57 ) ) * 6 + - ( - 31 ) * + + 39
----
1209

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL + + ( + + COUNT ( DISTINCT - + 12 ) ) * ( + COALESCE ( - + 0, + + MIN ( DISTINCT - + 52 ) / ( - 52 ), - CASE - 99 WHEN + 18 * 21 * 92 THEN 87 ELSE NULL END * + + 15 + - 71 + 50 * COUNT ( * ) * - + 57 ) ) * 6 + - ( - 31 ) * + + 39
----
1209

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT ALL - - 86 + 46 * + + COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL - - 86 + 46 * + + COUNT ( * )
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-395
SELECT ALL - COUNT( DISTINCT - - 45 ) AS col0, 27 AS col0
----
-1
27

skipif mysql # not compatible
query II rowsort label-395
SELECT ALL - COUNT ( DISTINCT - - 45 ) AS col0, 27 AS col0
----
-1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ( COUNT( DISTINCT 7 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-396
SELECT ( COUNT ( DISTINCT 7 ) ) AS col0
----
1

query II rowsort
SELECT ALL - 86 * - 81 + - - ( - - 74 ) AS col2, 22 AS col1
----
7040
22

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT COUNT( * ) * - 82 + - 85 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT COUNT ( * ) * - 82 + - 85 AS col1
----
-167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-399
SELECT + - 85 DIV + + COUNT( * ) - 51 + - 25 + ( - 87 ) * + 49
----
-4424

skipif mysql # not compatible
query I rowsort label-399
SELECT + - 85 / + + COUNT ( * ) - 51 + - 25 + ( - 87 ) * + 49
----
-4424

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

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

query I rowsort
SELECT 67 * + 91
----
6097

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

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

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

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

query I rowsort
SELECT ALL 76 * - + 23
----
-1748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-405
SELECT ALL 35 - 61 + 16 * + - CAST( - + COUNT( + 53 ) AS SIGNED ) + - 44 * - + 13
----
562

skipif mysql # not compatible
query I rowsort label-405
SELECT ALL 35 - 61 + 16 * + - CAST ( - + COUNT ( + 53 ) AS INTEGER ) + - 44 * - + 13
----
562

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

skipif mysql # not compatible
query I rowsort label-406
SELECT AVG ( ALL + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT ( - MIN( - 24 ) ) * 67 * + - 69 * - 81 * - 32
----
-287587584

skipif mysql # not compatible
query I rowsort label-407
SELECT ( - MIN ( - 24 ) ) * 67 * + - 69 * - 81 * - 32
----
-287587584

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT + CAST( - - 98 AS SIGNED ) * + - 88 AS col1
----
-8624

skipif mysql # not compatible
query I rowsort label-409
SELECT + CAST ( - - 98 AS INTEGER ) * + - 88 AS col1
----
-8624

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-410
SELECT + CAST( NULL AS DECIMAL ) - + + 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-410
SELECT + CAST ( NULL AS REAL ) - + + 63 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - - 90, - 38 + + 6 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-412
SELECT ALL 35, - 7 + + MAX( + 5 ) AS col0
----
35
-2

skipif mysql # not compatible
query II rowsort label-412
SELECT ALL 35, - 7 + + MAX ( + 5 ) AS col0
----
35
-2

query I rowsort
SELECT 15 * - 70 - - COALESCE ( + 20, + 0 ) AS col0
----
-1030

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL + SUM( DISTINCT 78 ) * + 28 AS col0
----
2184

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL + SUM ( DISTINCT 78 ) * + 28 AS col0
----
2184

query I rowsort
SELECT - 57 * + 92 AS col0
----
-5244

query II rowsort
SELECT DISTINCT 44 AS col2, - 73 AS col1
----
44
-73

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

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

query I rowsort
SELECT ALL - - 26 * 5 * - 18 * 35
----
-81900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-419
SELECT + CAST( + CASE ( - 77 ) WHEN + 99 THEN - 85 / 18 * 53 + - 16 ELSE - + ( - 89 ) END AS SIGNED ) + + 61 * + 79
----
4908

skipif mysql # not compatible
query I rowsort label-419
SELECT + CAST ( + CASE ( - 77 ) WHEN + 99 THEN - 85 / 18 * 53 + - 16 ELSE - + ( - 89 ) END AS INTEGER ) + + 61 * + 79
----
4908

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - 46 - - NULLIF ( 53, ( + 94 ) * - + COUNT( DISTINCT - 9 ) * 68 * + 72 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-420
SELECT - 46 - - NULLIF ( 53, ( + 94 ) * - + COUNT ( DISTINCT - 9 ) * 68 * + 72 ) AS col1
----
7

query I rowsort
SELECT + 90 + + 19 AS col0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-422
SELECT - CAST( NULL AS SIGNED ) / + 50 * 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-422
SELECT - CAST ( NULL AS INTEGER ) / + 50 * 23 AS col0
----
NULL

query I rowsort
SELECT - - 6 + - - 22 + NULLIF ( + + 52, 97 * + 35 ) + + - 78 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-424
SELECT ALL - MIN( + 29 ) + - 77 AS col2, 1 + - 91
----
-106
-90

skipif mysql # not compatible
query II rowsort label-424
SELECT ALL - MIN ( + 29 ) + - 77 AS col2, 1 + - 91
----
-106
-90

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

query I rowsort
SELECT ALL + 59 * 69 AS col2
----
4071

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - MIN( DISTINCT - 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-427
SELECT - MIN ( DISTINCT - 23 ) AS col2
----
23

query I rowsort
SELECT ALL + 98 * ( 85 ) * - - 27
----
224910

query II rowsort
SELECT ALL + 47 AS col1, + 89 + - 83 * + 86 AS col1
----
47
-7049

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-430
SELECT + COUNT( * ) col0, - 50 * - + 40 DIV - 1 + + - 72
----
1
-2072

skipif mysql # not compatible
query II rowsort label-430
SELECT + COUNT ( * ) col0, - 50 * - + 40 / - 1 + + - 72
----
1
-2072

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT DISTINCT + 91 * - COUNT( * ) * + ( 29 ) - COUNT( * ) AS col2
----
-2640

skipif mysql # not compatible
query I rowsort label-431
SELECT DISTINCT + 91 * - COUNT ( * ) * + ( 29 ) - COUNT ( * ) AS col2
----
-2640

onlyif mysql # aggregate syntax: 
query II rowsort label-432
SELECT DISTINCT + 25 AS col0, - COUNT( * ) col1
----
25
-1

skipif mysql # not compatible
query II rowsort label-432
SELECT DISTINCT + 25 AS col0, - COUNT ( * ) col1
----
25
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL - 19 / + CASE - 45 WHEN + + 0 THEN + + 40 ELSE NULL END * 66 * + ( + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL - 19 / + CASE - 45 WHEN + + 0 THEN + + 40 ELSE NULL END * 66 * + ( + - COUNT ( * ) ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-435
SELECT + CASE 72 WHEN 12 * + 13 THEN 51 + + COUNT( * ) END AS col2, ( + CASE + 39 WHEN - + 58 THEN 95 + + 8 + 75 END ) * + + ( + - 39 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-435
SELECT + CASE 72 WHEN 12 * + 13 THEN 51 + + COUNT ( * ) END AS col2, ( + CASE + 39 WHEN - + 58 THEN 95 + + 8 + 75 END ) * + + ( + - 39 )
----
NULL
NULL

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

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

query II rowsort
SELECT - 74 * + - 78 + + 52 * ( - 41 ) * - 17, - 9 AS col2
----
42016
-9

query I rowsort
SELECT ALL 81 * + - ( - 1 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT + 87 * + + MIN( DISTINCT + 58 ) AS col1
----
5046

skipif mysql # not compatible
query I rowsort label-439
SELECT + 87 * + + MIN ( DISTINCT + 58 ) AS col1
----
5046

onlyif mysql # DIV for integer division: 
query I rowsort label-440
SELECT ALL - 19 DIV - + 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - 19 / - + 60 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-441
SELECT + 63 * + + 66 * 33 DIV + - 1 col2, + COUNT( * ) AS col0
----
-137214
1

skipif mysql # not compatible
query II rowsort label-441
SELECT + 63 * + + 66 * 33 / + - 1 col2, + COUNT ( * ) AS col0
----
-137214
1

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

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

query II rowsort
SELECT DISTINCT + 59 col2, + 54 AS col2
----
59
54

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT COUNT( ALL + 77 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-444
SELECT COUNT ( ALL + 77 ) col0
----
1

query I rowsort
SELECT - 60 * - 7 * - 60 + + 20 AS col0
----
-25180

query I rowsort
SELECT ALL - 14 * + 83 * 51 + + 96 AS col0
----
-59166

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL - COUNT( DISTINCT 44 ) + - 14 - 48 * 53 col2
----
-2559

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL - COUNT ( DISTINCT 44 ) + - 14 - 48 * 53 col2
----
-2559

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL MIN( DISTINCT + 0 ) + + + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL MIN ( DISTINCT + 0 ) + + + 94 AS col1
----
94

query II rowsort
SELECT - - 2, - 42 * + 6 col2
----
2
-252

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-450
SELECT DISTINCT - 46, - CAST( NULL AS SIGNED ) AS col0
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-450
SELECT DISTINCT - 46, - CAST ( NULL AS INTEGER ) AS col0
----
-46
NULL

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

skipif mysql # not compatible
query I rowsort label-451
SELECT - + 94 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 72 + + 98
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-453
SELECT - + COUNT( * ) DIV 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-453
SELECT - + COUNT ( * ) / 47 col1
----
0

query I rowsort
SELECT ALL - + 6 - 24 * - 95 * + 50 * - 0 + - 5
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-455
SELECT ALL + 87 AS col1, + ( + 84 ) * 39 + + COALESCE ( + + 41, + 20, COUNT( * ) * - 57 ) + + 69 + 18 + - - 72 + CAST( NULL AS SIGNED ) * + AVG ( - 67 ) + 71 * 22 / + CAST( NULL AS DECIMAL ) * + 14 - 93 * 7
----
87
NULL

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL + 87 AS col1, + ( + 84 ) * 39 + + COALESCE ( + + 41, + 20, COUNT ( * ) * - 57 ) + + 69 + 18 + - - 72 + CAST ( NULL AS INTEGER ) * + AVG ( - 67 ) + 71 * 22 / + CAST ( NULL AS REAL ) * + 14 - 93 * 7
----
87
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT ALL - + ( 52 ) DIV - - 70
----
0

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL - + ( 52 ) / - - 70
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT - MIN( + 96 ) - - 88 + - CAST( NULL AS SIGNED ) * - 88 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT - MIN ( + 96 ) - - 88 + - CAST ( NULL AS INTEGER ) * - 88 * + 48
----
NULL

query I rowsort
SELECT ALL 59 - - 50
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT - MIN( 1 ) * + + 27
----
-27

skipif mysql # not compatible
query I rowsort label-459
SELECT - MIN ( 1 ) * + + 27
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT ALL - 23 * 3 DIV NULLIF ( - - 9, - - 90 ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-460
SELECT ALL - 23 * 3 / NULLIF ( - - 9, - - 90 ) col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-461
SELECT DISTINCT - COUNT( * ) * - 70, 24 AS col0
----
70
24

skipif mysql # not compatible
query II rowsort label-461
SELECT DISTINCT - COUNT ( * ) * - 70, 24 AS col0
----
70
24

query I rowsort
SELECT 11 - + 59 - + 51 AS col2
----
-99

query I rowsort
SELECT DISTINCT - 6 * + 40
----
-240

query I rowsort
SELECT DISTINCT - 33 * + 8 * - 79
----
20856

onlyif mysql # aggregate syntax: 
query II rowsort label-465
SELECT DISTINCT - COUNT( * ) * - - 17 AS col2, - ( - 34 )
----
-17
34

skipif mysql # not compatible
query II rowsort label-465
SELECT DISTINCT - COUNT ( * ) * - - 17 AS col2, - ( - 34 )
----
-17
34

onlyif mysql # DIV for integer division: 
query II rowsort label-466
SELECT 27 DIV - 58 AS col1, + 63
----
0
63

skipif mysql # not compatible
query II rowsort label-466
SELECT 27 / - 58 AS col1, + 63
----
0
63

query I rowsort
SELECT ALL - 88 + 22
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT 7 + - - ( COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-468
SELECT 7 + - - ( COUNT ( * ) )
----
8

onlyif mysql # aggregate syntax: 
query III rowsort label-469
SELECT ALL + 16 + 76 AS col0, - COUNT( * ) AS col1, + + COUNT( * ) AS col1
----
92
-1
1

skipif mysql # not compatible
query III rowsort label-469
SELECT ALL + 16 + 76 AS col0, - COUNT ( * ) AS col1, + + COUNT ( * ) AS col1
----
92
-1
1

query I rowsort
SELECT 2 - 28
----
-26

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-472
SELECT DISTINCT + COUNT( * ) + - - ( 93 ) DIV 33 col0
----
3

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT + COUNT ( * ) + - - ( 93 ) / 33 col0
----
3

query I rowsort
SELECT ALL + 83 + + 78
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - MIN( ALL + NULLIF ( - 39, + 61 ) ) * - 50 col1
----
-1950

skipif mysql # not compatible
query I rowsort label-474
SELECT - MIN ( ALL + NULLIF ( - 39, + 61 ) ) * - 50 col1
----
-1950

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

skipif mysql # not compatible
query I rowsort label-475
SELECT - COUNT ( - - ( - - 93 ) )
----
-1

query I rowsort
SELECT + 31 - - 30
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT + NULLIF ( + 57, - - 13 + - - SUM( DISTINCT + 9 ) + 26 + - - 26 ) - + 88
----
-31

skipif mysql # not compatible
query I rowsort label-477
SELECT + NULLIF ( + 57, - - 13 + - - SUM ( DISTINCT + 9 ) + 26 + - - 26 ) - + 88
----
-31

query I rowsort
SELECT 9 + - + 87 * - 85
----
7404

onlyif mysql # aggregate syntax: 
query II rowsort label-479
SELECT DISTINCT - MAX( + 45 ) AS col2, 19 AS col2
----
-45
19

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT - MAX ( + 45 ) AS col2, 19 AS col2
----
-45
19

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT DISTINCT + NULLIF ( - 72, 62 + ( - COUNT( * ) ) ) - - COUNT( + 21 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + NULLIF ( - 72, 62 + ( - COUNT ( * ) ) ) - - COUNT ( + 21 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT 89 + + - 78 + - ( - COUNT( * ) ) * - - COUNT( * ) + - 70 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-481
SELECT 89 + + - 78 + - ( - COUNT ( * ) ) * - - COUNT ( * ) + - 70 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-482
SELECT ALL 94 - + COUNT( * ), + MAX( + 0 ) AS col1
----
93
0

skipif mysql # not compatible
query II rowsort label-482
SELECT ALL 94 - + COUNT ( * ), + MAX ( + 0 ) AS col1
----
93
0

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

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

query I rowsort
SELECT ALL 53 * 18
----
954

query II rowsort
SELECT - 99 AS col2, COALESCE ( - - 74, - 45, + ( + + 14 ) ) col0
----
-99
74

query I rowsort
SELECT 73 + + 95 col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT 11 + - - 88 + + SUM( + 61 ) AS col1
----
160

skipif mysql # not compatible
query I rowsort label-487
SELECT 11 + - - 88 + + SUM ( + 61 ) AS col1
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-488
SELECT 18 * + CAST( NULL AS SIGNED ) * - 52, COUNT( * ) * - - 70 * - 64 + - MIN( - COALESCE ( + 45, - 2 ) ) AS col0
----
NULL
-4435

skipif mysql # not compatible
query II rowsort label-488
SELECT 18 * + CAST ( NULL AS INTEGER ) * - 52, COUNT ( * ) * - - 70 * - 64 + - MIN ( - COALESCE ( + 45, - 2 ) ) AS col0
----
NULL
-4435

query I rowsort
SELECT 92 * + + 18 AS col2
----
1656

query II rowsort
SELECT ALL - 63 AS col0, - 30 col2
----
-63
-30

query I rowsort
SELECT - 65 * + 29 * 60 + - + 33 + 44 AS col2
----
-113089

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

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

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

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT COUNT ( * ) / - 94 AS col0
----
0

query II rowsort
SELECT 83 AS col0, + 25 AS col2
----
83
25

query II rowsort
SELECT 18 AS col2, 3 * 8 AS col2
----
18
24

query I rowsort
SELECT ALL + 56 + + 87 AS col2
----
143

query I rowsort
SELECT ( + 48 ) + + 44 * 0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT COUNT( * ) * - SUM( - 77 ) * CASE 80 WHEN 16 + 49 THEN + 88 + - 2 + + 5 - + 11 + + 86 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-498
SELECT COUNT ( * ) * - SUM ( - 77 ) * CASE 80 WHEN 16 + 49 THEN + 88 + - 2 + + 5 - + 11 + + 86 ELSE NULL END AS col2
----
NULL

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

query I rowsort
SELECT ALL - ( + 36 ) col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + 27 * + COUNT( * ) + + COUNT( ALL 59 )
----
28

skipif mysql # not compatible
query I rowsort label-501
SELECT + 27 * + COUNT ( * ) + + COUNT ( ALL 59 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-502
SELECT DISTINCT - CAST( + - 96 AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - CAST ( + - 96 AS INTEGER ) AS col1
----
96

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

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT - 87 + 62 / + 33 * COUNT ( * ) AS col1
----
-86

query I rowsort
SELECT DISTINCT - + 93 + - 58 AS col0
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-505
SELECT DISTINCT - 37 col0, - COUNT( + 77 ) DIV - COALESCE ( - + 56, + 29 )
----
-37
0

skipif mysql # not compatible
query II rowsort label-505
SELECT DISTINCT - 37 col0, - COUNT ( + 77 ) / - COALESCE ( - + 56, + 29 )
----
-37
0

query I rowsort
SELECT + 20 * - + 74 * 96 col1
----
-142080

query I rowsort
SELECT - 29 + 97
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-508
SELECT ALL + CAST( + 55 AS SIGNED ) - 87 + + - 89
----
-121

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL + CAST ( + 55 AS INTEGER ) - 87 + + - 89
----
-121

query II rowsort
SELECT - ( 51 ) + + 30 AS col2, + 19 AS col0
----
-21
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-510
SELECT DISTINCT + + 72 - + ( - 60 ) * COALESCE ( + ( 52 ), - COUNT( * ) + + 38 + + + 92 * + - COUNT( * ) + - 63 DIV + COUNT( * ) )
----
3192

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT + + 72 - + ( - 60 ) * COALESCE ( + ( 52 ), - COUNT ( * ) + + 38 + + + 92 * + - COUNT ( * ) + - 63 / + COUNT ( * ) )
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT - 86 * NULLIF ( + COUNT( DISTINCT + ( - 57 ) ), + 20 * + 9 ) + + 85 * + + 66 AS col2
----
5524

skipif mysql # not compatible
query I rowsort label-511
SELECT - 86 * NULLIF ( + COUNT ( DISTINCT + ( - 57 ) ), + 20 * + 9 ) + + 85 * + + 66 AS col2
----
5524

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

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL + + 22 / + - COUNT ( * )
----
-22

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

query I rowsort
SELECT DISTINCT + 78 * - 19 col2
----
-1482

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

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

query II rowsort
SELECT + ( - 7 ) - + 84 AS col0, 51 * + 59
----
-91
3009

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

skipif mysql # not compatible
query I rowsort label-517
SELECT + COUNT ( * ) / - 47 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-518
SELECT - COALESCE ( - - CAST( NULL AS SIGNED ), - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-518
SELECT - COALESCE ( - - CAST ( NULL AS INTEGER ), - 53 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-519
SELECT ALL - 87 * - + 86 * 21 AS col1, + COUNT( * ) AS col2
----
157122
1

skipif mysql # not compatible
query II rowsort label-519
SELECT ALL - 87 * - + 86 * 21 AS col1, + COUNT ( * ) AS col2
----
157122
1

query I rowsort
SELECT + 18 + + 19 * - - 79
----
1519

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL COUNT( * ) + - 3 * - + 51 AS col2
----
154

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL COUNT ( * ) + - 3 * - + 51 AS col2
----
154

query I rowsort
SELECT ALL 58 + + 20 col0
----
78

query II rowsort
SELECT + 64 - 58 * + ( + - 85 ) AS col0, 68 AS col1
----
4994
68

query II rowsort
SELECT + 40 - + 73, - 21 AS col1
----
-33
-21

query I rowsort
SELECT + 58 * 17 * - + 3
----
-2958

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT + NULLIF ( + 7, + + 37 * - COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-526
SELECT + NULLIF ( + 7, + + 37 * - COUNT ( * ) )
----
7

query I rowsort
SELECT + 4 + NULLIF ( + + 82, + + 52 ) * - 95 + + 75 + - + 71
----
-7782

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

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT CASE AVG ( ALL 91 ) WHEN + + COUNT( * ) THEN NULL WHEN + 98 THEN - + 17 * - 0 * - 74 ELSE + 1 END
----
1

skipif mysql # not compatible
query I rowsort label-529
SELECT CASE AVG ( ALL 91 ) WHEN + + COUNT ( * ) THEN NULL WHEN + 98 THEN - + 17 * - 0 * - 74 ELSE + 1 END
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-530
SELECT - COUNT( * ) * - - ( + COUNT( * ) ) DIV + 80 AS col2, 94 DIV - SUM( + - 99 ) + + 42 AS col0
----
0
42

skipif mysql # not compatible
query II rowsort label-530
SELECT - COUNT ( * ) * - - ( + COUNT ( * ) ) / + 80 AS col2, 94 / - SUM ( + - 99 ) + + 42 AS col0
----
0
42

query I rowsort
SELECT - 86 - - 32
----
-54

query I rowsort
SELECT + NULLIF ( - 76, 98 )
----
-76

query I rowsort
SELECT NULLIF ( + 21, + 74 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT - ( + COUNT( * ) ) * - COUNT( * ) + 37 + - + 57
----
-19

skipif mysql # not compatible
query I rowsort label-534
SELECT - ( + COUNT ( * ) ) * - COUNT ( * ) + 37 + - + 57
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT ALL 47 DIV + - MIN( DISTINCT + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL 47 / + - MIN ( DISTINCT + 76 )
----
0

query I rowsort
SELECT - 99 * + + 73 * - 21 AS col1
----
151767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-537
SELECT DISTINCT + + CASE + - CAST( 26 AS SIGNED ) WHEN + - 96 * - 41 THEN - + 45 END
----
NULL

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT + + CASE + - CAST ( 26 AS INTEGER ) WHEN + - 96 * - 41 THEN - + 45 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT + NULLIF ( - COUNT( * ), + COUNT( * ) * - 86 + - CAST( NULL AS SIGNED ) * - + 39 * - 33 ) + - 38
----
-39

skipif mysql # not compatible
query I rowsort label-538
SELECT + NULLIF ( - COUNT ( * ), + COUNT ( * ) * - 86 + - CAST ( NULL AS INTEGER ) * - + 39 * - 33 ) + - 38
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT - 17 + + ( + COUNT( * ) ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-539
SELECT - 17 + + ( + COUNT ( * ) ) col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-540
SELECT ALL - 82 * 31 DIV - 96 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL - 82 * 31 / - 96 AS col0
----
26

query I rowsort
SELECT - + 71 + - 12
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL MAX( ( - 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL MAX ( ( - 0 ) )
----
0

query I rowsort
SELECT - - 96 + 84
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT + 46 + - 34 DIV - + 47 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-544
SELECT + 46 + - 34 / - + 47 AS col0
----
46

query I rowsort
SELECT - 20 * ( 5 )
----
-100

query I rowsort
SELECT - 59 + 39 + + - 46 + + + 98 + + ( - 41 ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-547
SELECT - NULLIF ( + - MAX( CAST( 70 AS SIGNED ) ), + - COUNT( * ) ) - - 75 + + + 97 + - 9 * + COUNT( * ) + - 35 AS col0
----
198

skipif mysql # not compatible
query I rowsort label-547
SELECT - NULLIF ( + - MAX ( CAST ( 70 AS INTEGER ) ), + - COUNT ( * ) ) - - 75 + + + 97 + - 9 * + COUNT ( * ) + - 35 AS col0
----
198

query I rowsort
SELECT - 73 + 46 + - 72
----
-99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-550
SELECT DISTINCT + MAX( DISTINCT - 87 ) DIV + CAST( 13 AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT + MAX ( DISTINCT - 87 ) / + CAST ( 13 AS INTEGER ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-551
SELECT - CAST( - + 68 AS SIGNED ) * + - 89
----
-6052

skipif mysql # not compatible
query I rowsort label-551
SELECT - CAST ( - + 68 AS INTEGER ) * + - 89
----
-6052

query II rowsort
SELECT + 77 + - - ( - NULLIF ( 2, - 80 ) ) AS col1, 76 * - - 54
----
75
4104

query I rowsort
SELECT DISTINCT NULLIF ( + - 53, + CASE 50 WHEN - - 57 + + 87 THEN - 29 ELSE NULL END * + 73 + + + 24 + + 79 + + 25 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-554
SELECT DISTINCT - 74 + + ( 20 ) * - CAST( NULL AS SIGNED ) + - + 69, - ( + 63 ) AS col1
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-554
SELECT DISTINCT - 74 + + ( 20 ) * - CAST ( NULL AS INTEGER ) + - + 69, - ( + 63 ) AS col1
----
NULL
-63

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

skipif mysql # not compatible
query II rowsort label-555
SELECT - COUNT ( * ), 7 AS col2
----
-1
7

query I rowsort
SELECT ALL + 2 + 29
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT DISTINCT + COUNT( + 41 ) + - - COALESCE ( - + 45, - - 16 )
----
-44

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT + COUNT ( + 41 ) + - - COALESCE ( - + 45, - - 16 )
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-558
SELECT ALL 20 AS col1, CAST( NULL AS DECIMAL )
----
20
NULL

skipif mysql # not compatible
query II rowsort label-558
SELECT ALL 20 AS col1, CAST ( NULL AS REAL )
----
20
NULL

query I rowsort
SELECT - ( + COALESCE ( - 53, + - ( 17 ) ) )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT ALL + 62 AS col2, 91 * - + COUNT( * ) + - 77 * + ( - 1 ) + + 97
----
62
83

skipif mysql # not compatible
query II rowsort label-560
SELECT ALL + 62 AS col2, 91 * - + COUNT ( * ) + - 77 * + ( - 1 ) + + 97
----
62
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-561
SELECT ALL + CAST( 34 AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + CAST ( 34 AS INTEGER ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT + ( - MIN( + 50 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-562
SELECT + ( - MIN ( + 50 ) ) AS col1
----
-50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT - 5 * 83 + + 13 + - 86 + - - CASE MAX( 54 ) WHEN + 26 * - 70 * - + 15 THEN + 41 WHEN 93 THEN + 53 END / + MAX( ALL + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT - 5 * 83 + + 13 + - 86 + - - CASE MAX ( 54 ) WHEN + 26 * - 70 * - + 15 THEN + 41 WHEN 93 THEN + 53 END / + MAX ( ALL + 18 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-565
SELECT + 76 DIV + - CASE + 36 WHEN + + 35 * - 64 * + 59 DIV + ( + + 54 ) * + 57 - 0 * - + 54 + 43 + - 16 THEN NULL ELSE 4 - - + MAX( ALL + 61 ) END - 92 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-565
SELECT + 76 / + - CASE + 36 WHEN + + 35 * - 64 * + 59 / + ( + + 54 ) * + 57 - 0 * - + 54 + 43 + - 16 THEN NULL ELSE 4 - - + MAX ( ALL + 61 ) END - 92 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT + - ( - 13 ) + + + 73 + 5 + - SUM( DISTINCT 21 ) - + - COUNT( * ) - - 86 AS col2
----
157

skipif mysql # not compatible
query I rowsort label-566
SELECT + - ( - 13 ) + + + 73 + 5 + - SUM ( DISTINCT 21 ) - + - COUNT ( * ) - - 86 AS col2
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT + COALESCE ( + 33, 5 ) DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-567
SELECT + COALESCE ( + 33, 5 ) / + 79
----
0

query I rowsort
SELECT - 55 * 60 + + - 92 AS col2
----
-3392

query II rowsort
SELECT DISTINCT + - 15, + 29 col1
----
-15
29

query I rowsort
SELECT DISTINCT 20 * 12
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT + + COALESCE ( - 12, + 53 ) DIV 93 + + 84 col1
----
84

skipif mysql # not compatible
query I rowsort label-571
SELECT + + COALESCE ( - 12, + 53 ) / 93 + + 84 col1
----
84

query II rowsort
SELECT DISTINCT + + 42 AS col2, - 21
----
42
-21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-574
SELECT 87 DIV + 40 + ( - 56 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-574
SELECT 87 / + 40 + ( - 56 ) AS col2
----
-54

query I rowsort
SELECT + 13 + 27 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-576
SELECT ALL + COALESCE ( + ( - SUM( ALL 75 ) ), 37 ) * - 8 * 83 * + SUM( DISTINCT - 76 ) + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + COALESCE ( + ( - SUM ( ALL 75 ) ), 37 ) * - 8 * 83 * + SUM ( DISTINCT - 76 ) + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL - COUNT( DISTINCT - ( - 45 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - COUNT ( DISTINCT - ( - 45 ) ) col2
----
-1

query I rowsort
SELECT + 57 * + 56 AS col1
----
3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-579
SELECT CAST( - 42 AS SIGNED ) + - 99 + 50 * 72 * + 69 - - 95 * - COUNT( * ) - - - 12 AS col0
----
248152

skipif mysql # not compatible
query I rowsort label-579
SELECT CAST ( - 42 AS INTEGER ) + - 99 + 50 * 72 * + 69 - - 95 * - COUNT ( * ) - - - 12 AS col0
----
248152

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

query I rowsort
SELECT DISTINCT + 37 + + 65 AS col2
----
102

query I rowsort
SELECT - + 97 col2
----
-97

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

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - 15 + CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT 21 * 58 col0
----
1218

query I rowsort
SELECT ALL - 70 + + 95 AS col0
----
25

query I rowsort
SELECT 92 - - ( + 26 )
----
118

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

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

query II rowsort
SELECT 5 AS col1, - 13 + + 14
----
5
1

query I rowsort
SELECT 11 + - 23
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT 46 * + + COUNT( * ) * - 24 * + 25 col1
----
-27600

skipif mysql # not compatible
query I rowsort label-590
SELECT 46 * + + COUNT ( * ) * - 24 * + 25 col1
----
-27600

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT 52 + COUNT( * ) - + CASE - 21 WHEN 30 THEN + 78 * + 59 + 1 - - MIN( DISTINCT 33 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT 52 + COUNT ( * ) - + CASE - 21 WHEN 30 THEN + 78 * + 59 + 1 - - MIN ( DISTINCT 33 ) END
----
NULL

query I rowsort
SELECT DISTINCT - 25 * - 73
----
1825

query I rowsort
SELECT ALL + ( + 61 ) - 28
----
33

query II rowsort
SELECT - 73, - 92 AS col2
----
-73
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT ALL - 43 DIV + + 43
----
-1

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL - 43 / + + 43
----
-1

query I rowsort
SELECT 36 - 44 * 93 * 87 AS col1
----
-355968

query I rowsort
SELECT ALL - 98 * - 44
----
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT DISTINCT - ( COUNT( * ) ) * - 50
----
50

skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT - ( COUNT ( * ) ) * - 50
----
50

query II rowsort
SELECT 42 AS col2, ( - ( - ( - 83 ) ) )
----
42
-83

query I rowsort
SELECT ALL - 8 * 92 AS col1
----
-736

query I rowsort
SELECT 26 + 59
----
85

query I rowsort
SELECT 61 * + 1
----
61

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

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

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

skipif mysql # not compatible
query I rowsort label-604
SELECT - - COUNT ( * ) * 14 + + - 8 AS col2
----
6

query I rowsort
SELECT + 72 * - 64 col2
----
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT ALL - ( + - SUM( DISTINCT - + 9 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL - ( + - SUM ( DISTINCT - + 9 ) )
----
-9

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

query I rowsort
SELECT 53 - - 64 col1
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-609
SELECT DISTINCT - - 4 col1, + COUNT( * ) + - 18 - + 61 / - CAST( + 93 AS SIGNED ) + - - 28 + 33 / + + ( + CASE 97 WHEN + ( - - 68 ) + - 9 THEN + 17 ELSE NULL END ) AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-609
SELECT DISTINCT - - 4 col1, + COUNT ( * ) + - 18 - + 61 / - CAST ( + 93 AS INTEGER ) + - - 28 + 33 / + + ( + CASE 97 WHEN + ( - - 68 ) + - 9 THEN + 17 ELSE NULL END ) AS col1
----
4
NULL

query II rowsort
SELECT DISTINCT - + 13 AS col0, - 36
----
-13
-36

query I rowsort
SELECT 9 * + 51 * + - 95
----
-43605

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

query I rowsort
SELECT ALL 94 + - 64 + + + 46 AS col1
----
76

query I rowsort
SELECT - 64 + - 27 AS col2
----
-91

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

query I rowsort
SELECT ALL 38 * - 70 AS col1
----
-2660

onlyif mysql # DIV for integer division: 
query I rowsort label-617
SELECT DISTINCT + 80 + + 6 DIV 32 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT + 80 + + 6 / 32 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT DISTINCT 88 + - COUNT( + + 89 ) * - 26
----
114

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT 88 + - COUNT ( + + 89 ) * - 26
----
114

query I rowsort
SELECT ALL NULLIF ( + 28, + 72 + 47 ) + 12
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT MAX( + 37 ) + - 72 + + 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-620
SELECT MAX ( + 37 ) + - 72 + + 36 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-621
SELECT DISTINCT COUNT( * ) DIV + 36 * ( + 33 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT COUNT ( * ) / + 36 * ( + 33 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-622
SELECT 38 * + - CAST( NULL AS SIGNED ) * 25 + + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT 38 * + - CAST ( NULL AS INTEGER ) * 25 + + - 18
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT 46 + + 30 * 30 DIV - 43
----
26

skipif mysql # not compatible
query I rowsort label-623
SELECT 46 + + 30 * 30 / - 43
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT ALL - ( + CASE - 76 WHEN + - SUM( + 17 ) THEN - - 7 END ) - + AVG ( DISTINCT + + COALESCE ( + 68, + - 73 ) ) + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL - ( + CASE - 76 WHEN + - SUM ( + 17 ) THEN - - 7 END ) - + AVG ( DISTINCT + + COALESCE ( + 68, + - 73 ) ) + + 40
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-625
SELECT 27 + + CAST( NULL AS SIGNED ) + ( - 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-625
SELECT 27 + + CAST ( NULL AS INTEGER ) + ( - 83 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT 46 + + 75 + + NULLIF ( + MAX( + 58 ), - 19 )
----
179

skipif mysql # not compatible
query I rowsort label-626
SELECT 46 + + 75 + + NULLIF ( + MAX ( + 58 ), - 19 )
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-627
SELECT ALL 33 - + - 93 + - 99 - 51 * - COUNT( * ) + 41 - + CAST( - + 28 AS SIGNED ) * - - 80 AS col1
----
2359

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL 33 - + - 93 + - 99 - 51 * - COUNT ( * ) + 41 - + CAST ( - + 28 AS INTEGER ) * - - 80 AS col1
----
2359

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

skipif mysql # not compatible
query I rowsort label-628
SELECT 52 * COUNT ( * )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT 71 + + 7 * 45 - - MIN( 64 ) * + CAST( - 10 AS SIGNED )
----
-254

skipif mysql # not compatible
query I rowsort label-629
SELECT 71 + + 7 * 45 - - MIN ( 64 ) * + CAST ( - 10 AS INTEGER )
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT COUNT( * ) + + 80
----
81

skipif mysql # not compatible
query I rowsort label-630
SELECT COUNT ( * ) + + 80
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-631
SELECT DISTINCT MIN( + 77 ) AS col1, - COUNT( * ) * - NULLIF ( - + 52, 86 )
----
77
-52

skipif mysql # not compatible
query II rowsort label-631
SELECT DISTINCT MIN ( + 77 ) AS col1, - COUNT ( * ) * - NULLIF ( - + 52, 86 )
----
77
-52

query I rowsort
SELECT ALL - 55 * 78 col2
----
-4290

onlyif mysql # DIV for integer division: 
query II rowsort label-633
SELECT DISTINCT + - 63 DIV ( 93 ) col2, 71 * + 96
----
0
6816

skipif mysql # not compatible
query II rowsort label-633
SELECT DISTINCT + - 63 / ( 93 ) col2, 71 * + 96
----
0
6816

query I rowsort
SELECT ALL - ( + 68 ) * + - 6 * + 38
----
15504

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT 58 * + 15 + - + COUNT( * ) + - 1 + 1 * COUNT( * )
----
869

skipif mysql # not compatible
query I rowsort label-635
SELECT 58 * + 15 + - + COUNT ( * ) + - 1 + 1 * COUNT ( * )
----
869

query I rowsort
SELECT ALL + + 13 * + ( + + ( + - CASE + 23 WHEN + - 81 * 63 + + + ( - 56 ) * + 92 * + ( ( - + 60 ) ) THEN ( 68 ) * - + 79 + 40 + 29 + - 65 * - - 67 ELSE NULL END ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-637
SELECT - COUNT ( ALL 47 ) + - COUNT ( * ) AS col2
----
-2

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

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT - 26 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-639
SELECT - 26 / 52
----
0

query I rowsort
SELECT + 95 + - - 27 + + 53 - 92 * 67 AS col1
----
-5989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-641
SELECT ALL 88 * 19 + - 30 * 10 + + 49 DIV COALESCE ( - 46, 80 * 49 + - - NULLIF ( - - CAST( NULL AS SIGNED ), - COUNT( * ) ) + + 43 ) * + COUNT( * ) * + + 5 + COUNT( * ) AS col1
----
1368

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL 88 * 19 + - 30 * 10 + + 49 / COALESCE ( - 46, 80 * 49 + - - NULLIF ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) + + 43 ) * + COUNT ( * ) * + + 5 + COUNT ( * ) AS col1
----
1368

query I rowsort
SELECT ALL 8 * - + 90 + + + 72 - - 23 * - 50 * - 22 + + 88
----
24740

query I rowsort
SELECT + - NULLIF ( 99, 54 + - - 70 + - 14 - - + 9 ) AS col1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-644
SELECT DISTINCT 58 * 42 DIV - 7 + 1 + + 8 AS col2
----
-339

skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT 58 * 42 / - 7 + 1 + + 8 AS col2
----
-339

query II rowsort
SELECT ALL + 87 * - 61, + 19 AS col1
----
-5307
19

query II rowsort
SELECT + + 82 * + 90, - 22 AS col2
----
7380
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-647
SELECT ALL - 0 * 81 * + + 78 DIV - - 67 + 96
----
96

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL - 0 * 81 * + + 78 / - - 67 + 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT + SUM( ALL 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT + SUM ( ALL 6 ) AS col2
----
6

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

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

query I rowsort
SELECT + 11 + + 91
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT DISTINCT COUNT( * ) * + 98 col2
----
98

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT COUNT ( * ) * + 98 col2
----
98

query I rowsort
SELECT ALL 94 - - - NULLIF ( + 11, 38 - + 70 ) + - 99 AS col1
----
-16

query I rowsort
SELECT DISTINCT COALESCE ( 76, - 36 * + 97 + + 66 + - 15 + + 91 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-654
SELECT ALL + COUNT( * ) * NULLIF ( + CAST( + COUNT( * ) AS SIGNED ), - 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL + COUNT ( * ) * NULLIF ( + CAST ( + COUNT ( * ) AS INTEGER ), - 74 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-655
SELECT + 76 * + + CAST( - + 22 AS SIGNED ) * + ( - 98 ) + + CASE - 53 WHEN 69 / + 58 THEN NULL WHEN - 74 + 50 / + COUNT( * ) - + - 10 THEN COUNT( * ) END * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-655
SELECT + 76 * + + CAST ( - + 22 AS INTEGER ) * + ( - 98 ) + + CASE - 53 WHEN 69 / + 58 THEN NULL WHEN - 74 + 50 / + COUNT ( * ) - + - 10 THEN COUNT ( * ) END * + 79
----
NULL

query I rowsort
SELECT ALL ( + - 42 ) col2
----
-42

query I rowsort
SELECT ALL 58 - + + 42 * + - ( ( + 2 ) )
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT ALL 22 DIV + + 20
----
1

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL 22 / + + 20
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-659
SELECT - CASE - COUNT( * ) WHEN COUNT( * ) / - AVG ( + + COALESCE ( 4, + + 9 * - 85 ) ) * + COUNT( * ) * - 30 THEN - CAST( NULL AS SIGNED ) WHEN - - CASE + 21 WHEN 22 * - 29 THEN NULL WHEN + - 18 THEN - - COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) END THEN NULL WHEN - 70 THEN - CASE + - SUM( ALL 89 ) WHEN + COUNT( * ) THEN NULL ELSE + MIN( ALL + + 37 ) END * - 79 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT - CASE - COUNT ( * ) WHEN COUNT ( * ) / - AVG ( + + COALESCE ( 4, + + 9 * - 85 ) ) * + COUNT ( * ) * - 30 THEN - CAST ( NULL AS INTEGER ) WHEN - - CASE + 21 WHEN 22 * - 29 THEN NULL WHEN + - 18 THEN - - COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) END THEN NULL WHEN - 70 THEN - CASE + - SUM ( ALL 89 ) WHEN + COUNT ( * ) THEN NULL ELSE + MIN ( ALL + + 37 ) END * - 79 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL 70 AS col2, - 24
----
70
-24

query II rowsort
SELECT DISTINCT 73 col0, - ( 44 )
----
73
-44

query I rowsort
SELECT + 16 - 95 AS col0
----
-79

query I rowsort
SELECT + 86 * + 63 * + 34
----
184212

query II rowsort
SELECT ALL + 36 col0, 73
----
36
73

onlyif mysql # aggregate syntax: 
query III rowsort label-665
SELECT - - NULLIF ( - 57, - - COUNT( * ) ) AS col0, + 11 + 16 + - 32 * + ( - 17 ) - 8 * + 99 * 33 AS col2, + ( 69 ) AS col0
----
-57
-25565
69

skipif mysql # not compatible
query III rowsort label-665
SELECT - - NULLIF ( - 57, - - COUNT ( * ) ) AS col0, + 11 + 16 + - 32 * + ( - 17 ) - 8 * + 99 * 33 AS col2, + ( 69 ) AS col0
----
-57
-25565
69

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT DISTINCT 82 + - 95 + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT 82 + - 95 + + COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-667
SELECT + + 29 + ( + COUNT( * ) ) DIV ( + + 2 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-667
SELECT + + 29 + ( + COUNT ( * ) ) / ( + + 2 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL COUNT( * ) + + + 13
----
14

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL COUNT ( * ) + + + 13
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT + + COALESCE ( + 4, + 39 * COUNT( * ) ) + - COUNT( - 70 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-669
SELECT + + COALESCE ( + 4, + 39 * COUNT ( * ) ) + - COUNT ( - 70 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT + 96 * + CASE - 14 WHEN + 55 + - COUNT( * ) + - 36 THEN NULL WHEN + 75 THEN + - 22 ELSE NULL END * + + 13 * + 65 + + 75 + + 9 + 64 * - 26 + - - 1 * 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-670
SELECT + 96 * + CASE - 14 WHEN + 55 + - COUNT ( * ) + - 36 THEN NULL WHEN + 75 THEN + - 22 ELSE NULL END * + + 13 * + 65 + + 75 + + 9 + 64 * - 26 + - - 1 * 15 AS col0
----
NULL

query I rowsort
SELECT 68 * + - ( - 39 ) + 89
----
2741

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT + MAX( + 71 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-672
SELECT + MAX ( + 71 ) AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT DISTINCT 48 DIV + + 97 + + ( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT 48 / + + 97 + + ( + 70 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT DISTINCT + + COUNT( * ) * CASE - 7 WHEN + 75 + 96 THEN - CAST( - SUM( - + 15 ) AS SIGNED ) ELSE + 93 END * - 98
----
-9114

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT + + COUNT ( * ) * CASE - 7 WHEN + 75 + 96 THEN - CAST ( - SUM ( - + 15 ) AS INTEGER ) ELSE + 93 END * - 98
----
-9114

query I rowsort
SELECT ALL + 22 / - 59 + - 10 * - CASE - 41 WHEN - + 65 + + ( + 0 ) THEN 6 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-676
SELECT ALL + - NULLIF ( + 14, - 25 * - - CAST( - - 50 AS SIGNED ) ) * - 29 + + 36
----
442

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL + - NULLIF ( + 14, - 25 * - - CAST ( - - 50 AS INTEGER ) ) * - 29 + + 36
----
442

onlyif mysql # aggregate syntax: 
query II rowsort label-677
SELECT 4 AS col1, COUNT( + 65 ) AS col2
----
4
1

skipif mysql # not compatible
query II rowsort label-677
SELECT 4 AS col1, COUNT ( + 65 ) AS col2
----
4
1

query II rowsort
SELECT 25 * + NULLIF ( + 96, - 23 ) + 21 + 1 AS col0, 69
----
2422
69

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

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

query I rowsort
SELECT - 6 + + 94
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-681
SELECT - COUNT( * ) DIV 18, 96 * + 60 col1
----
0
5760

skipif mysql # not compatible
query II rowsort label-681
SELECT - COUNT ( * ) / 18, 96 * + 60 col1
----
0
5760

query I rowsort
SELECT ( NULLIF ( 56, + 9 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-683
SELECT - 82 + - COUNT( * ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-683
SELECT - 82 + - COUNT ( * ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT + NULLIF ( 57, + 36 * + CASE ( 70 ) WHEN + 38 * + 75 THEN - 78 END * + MAX( ALL + COALESCE ( - 48, + COALESCE ( - 23, - - 90 ) + 97 ) ) + ( - 47 ) )
----
57

skipif mysql # not compatible
query I rowsort label-684
SELECT + NULLIF ( 57, + 36 * + CASE ( 70 ) WHEN + 38 * + 75 THEN - 78 END * + MAX ( ALL + COALESCE ( - 48, + COALESCE ( - 23, - - 90 ) + 97 ) ) + ( - 47 ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT DISTINCT + 66 * + 40 * - - COUNT( * )
----
2640

skipif mysql # not compatible
query I rowsort label-685
SELECT DISTINCT + 66 * + 40 * - - COUNT ( * )
----
2640

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-687
SELECT - 35 * + 50 AS col0, COALESCE ( - + 70, + 20 DIV - 71 DIV - 0, - - 12 ) * MIN( 1 )
----
-1750
-70

skipif mysql # not compatible
query II rowsort label-687
SELECT - 35 * + 50 AS col0, COALESCE ( - + 70, + 20 / - 71 / - 0, - - 12 ) * MIN ( 1 )
----
-1750
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT - MIN( + 75 ) * + 8 + + 76 * 50
----
3200

skipif mysql # not compatible
query I rowsort label-688
SELECT - MIN ( + 75 ) * + 8 + + 76 * 50
----
3200

onlyif mysql # aggregate syntax: 
query II rowsort label-689
SELECT ALL + 59 * - CASE - 70 WHEN - 87 THEN NULL WHEN - COUNT( * ) THEN - 93 * 26 ELSE + - 27 END - + 46 + 76 + - 19 * + - 4, - 82 AS col1
----
1699
-82

skipif mysql # not compatible
query II rowsort label-689
SELECT ALL + 59 * - CASE - 70 WHEN - 87 THEN NULL WHEN - COUNT ( * ) THEN - 93 * 26 ELSE + - 27 END - + 46 + 76 + - 19 * + - 4, - 82 AS col1
----
1699
-82

query I rowsort
SELECT - 28 + + 5
----
-23

query I rowsort
SELECT CASE - 17 WHEN - 11 + 85 THEN NULL ELSE - + ( + + 26 ) END AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT + COUNT( * ) + - 58 AS col2
----
-57

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

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

query I rowsort
SELECT - 92 + + 13 + + 97
----
18

query I rowsort
SELECT + ( + 97 ) + + 66
----
163

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT ALL - COALESCE ( + - 93, COALESCE ( + 0, + 14 DIV - 52 + + - 96 ) ) + + - 6 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-697
SELECT ALL - COALESCE ( + - 93, COALESCE ( + 0, + 14 / - 52 + + - 96 ) ) + + - 6 AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT DISTINCT + 95 * CASE + - 43 WHEN ( - ( - CAST( + ( - + 43 ) AS SIGNED ) ) ) THEN NULL WHEN 18 * + 70 THEN 32 ELSE NULL END * 59 * - 99 - + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT + 95 * CASE + - 43 WHEN ( - ( - CAST ( + ( - + 43 ) AS INTEGER ) ) ) THEN NULL WHEN 18 * + 70 THEN 32 ELSE NULL END * 59 * - 99 - + - 76
----
NULL

query I rowsort
SELECT + - 33 + - 13
----
-46

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

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

query I rowsort
SELECT + COALESCE ( 20, - 60, + 54 ) + 10 AS col1
----
30

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

query I rowsort
SELECT ALL 97 + - NULLIF ( + 75, - + 47 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-704
SELECT ALL 2 + - - COUNT( * ) - + ( + 85 ) * - MAX( DISTINCT 42 ) * COUNT( * ) * + CASE COUNT( * ) WHEN - MIN( DISTINCT - 43 ) / + + 4 * 24 / CAST( - ( + 28 ) AS SIGNED ) + 75 THEN 21 * 14 - + 38 - + 41 * 46 WHEN 13 + + COUNT( * ) THEN 63 ELSE - CASE 13 WHEN + 83 THEN NULL ELSE + 32 * - COUNT( ALL - 6 ) END END AS col1
----
114243

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL 2 + - - COUNT ( * ) - + ( + 85 ) * - MAX ( DISTINCT 42 ) * COUNT ( * ) * + CASE COUNT ( * ) WHEN - MIN ( DISTINCT - 43 ) / + + 4 * 24 / CAST ( - ( + 28 ) AS INTEGER ) + 75 THEN 21 * 14 - + 38 - + 41 * 46 WHEN 13 + + COUNT ( * ) THEN 63 ELSE - CASE 13 WHEN + 83 THEN NULL ELSE + 32 * - COUNT ( ALL - 6 ) END END AS col1
----
114243

query I rowsort
SELECT DISTINCT + 45 + + - 15 * 41 + + NULLIF ( + 72, + 0 )
----
-498

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

skipif mysql # not compatible
query I rowsort label-706
SELECT 38 * + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT + 8 * ( - MAX( + 2 ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-707
SELECT + 8 * ( - MAX ( + 2 ) ) AS col1
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-708
SELECT DISTINCT + 42 + 90, 85 * 20 DIV 82 * + 82 AS col0
----
132
1640

skipif mysql # not compatible
query II rowsort label-708
SELECT DISTINCT + 42 + 90, 85 * 20 / 82 * + 82 AS col0
----
132
1640

query I rowsort
SELECT DISTINCT 86 + 40
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT ALL 61 * - SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL 61 * - SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - 25 * + 97 * + ( + NULLIF ( - MIN( + ( - 9 ) ), - NULLIF ( - 72, + ( - - 10 ) * - 71 + + + 44 ) ) ) * 29 * - 43 + 23 + - COUNT( * ) * NULLIF ( + 73, + 41 * - 86 + + - 7 ) * - 57 + 33 + + - ( - ( + - COUNT( * ) ) ) * + + 37 * - 58 * - - 51 col2
----
27329438

skipif mysql # not compatible
query I rowsort label-711
SELECT - 25 * + 97 * + ( + NULLIF ( - MIN ( + ( - 9 ) ), - NULLIF ( - 72, + ( - - 10 ) * - 71 + + + 44 ) ) ) * 29 * - 43 + 23 + - COUNT ( * ) * NULLIF ( + 73, + 41 * - 86 + + - 7 ) * - 57 + 33 + + - ( - ( + - COUNT ( * ) ) ) * + + 37 * - 58 * - - 51 col2
----
27329438

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT DISTINCT - NULLIF ( 78, 27 ) - - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT - NULLIF ( 78, 27 ) - - COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT DISTINCT NULLIF ( - 41, 73 ) - + CASE 53 WHEN 25 - - 99 THEN NULL WHEN + ( + + 35 ) * - 89 + + 15 * - - 86 - + ( + COUNT( * ) ) * + - 98 * + 17 THEN NULL ELSE - 76 DIV 34 + - 33 END + - 58 * - 79
----
4576

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT NULLIF ( - 41, 73 ) - + CASE 53 WHEN 25 - - 99 THEN NULL WHEN + ( + + 35 ) * - 89 + + 15 * - - 86 - + ( + COUNT ( * ) ) * + - 98 * + 17 THEN NULL ELSE - 76 / 34 + - 33 END + - 58 * - 79
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT 87 + 18 * - COALESCE ( - + 18, - NULLIF ( + 40, - - 20 ), - COUNT( * ) + - - 13 * + 93 )
----
411

skipif mysql # not compatible
query I rowsort label-715
SELECT 87 + 18 * - COALESCE ( - + 18, - NULLIF ( + 40, - - 20 ), - COUNT ( * ) + - - 13 * + 93 )
----
411

query I rowsort
SELECT DISTINCT - 68 - 3
----
-71

query II rowsort
SELECT ALL - 85 AS col0, - 90 + + 10
----
-85
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-718
SELECT 30 * + 55 * - + COALESCE ( COUNT( * ), - 71 + - ( 30 ) + - 35 * ( - 17 ) ) AS col2, + 77 AS col0
----
-1650
77

skipif mysql # not compatible
query II rowsort label-718
SELECT 30 * + 55 * - + COALESCE ( COUNT ( * ), - 71 + - ( 30 ) + - 35 * ( - 17 ) ) AS col2, + 77 AS col0
----
-1650
77

query I rowsort
SELECT ALL - 80 * 55 * + 1 * NULLIF ( + 76, - 97 ) * - 23 - + - 43 AS col2
----
7691243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-720
SELECT ALL 58 DIV COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL 58 / COUNT ( * ) AS col1
----
58

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

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT 76 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT 20 DIV + + 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-722
SELECT 20 / + + 71 AS col1
----
0

query I rowsort
SELECT 55 * + 25
----
1375

query I rowsort
SELECT ALL - 80 * 61 * + 30
----
-146400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-725
SELECT DISTINCT - SUM( ( - - 67 ) ) AS col2, - 9 * CASE - - 4 WHEN - 50 THEN - ( 59 ) * - - 46 + 99 WHEN - 70 THEN - 76 - - MIN( ALL - 91 ) + + + 88 + ( + + 34 ) * + 33 * - CAST( NULL AS SIGNED ) * - COUNT( * ) + - + 33 + + COALESCE ( - - CASE - 5 WHEN + COUNT( * ) * - + CASE + + 62 WHEN 98 * + + ( 24 ) + - 35 THEN - MIN( + + 46 ) WHEN + 47 + 4 * + SUM( ALL CASE 99 WHEN 14 THEN ( 33 ) ELSE 5 END ) THEN NULL END * CAST( - COUNT( * ) AS SIGNED ) + + 20 THEN + COUNT( * ) * - 70 + - 80 * - CAST( + CASE 74 WHEN - CAST( - COUNT( * ) AS SIGNED ) * CAST( COUNT( 67 ) * AVG ( ALL 17 ) + - 9 AS SIGNED ) + + 24 * ( - 65 ) THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) ELSE 1 END AS SIGNED ) ELSE NULL END, 83, 38 ) WHEN + 95 - + COALESCE ( + 51, 32, 73 + 50 ) * + 27 THEN NULL ELSE - COUNT( 3 ) END + - ( + COALESCE ( COUNT( * ), - 81 - COUNT( ALL - CAST( - 16 AS SIGNED ) ) * 69 ) + 19 ) * - 24 AS col2
----
-67
489

skipif mysql # not compatible
query II rowsort label-725
SELECT DISTINCT - SUM ( ( - - 67 ) ) AS col2, - 9 * CASE - - 4 WHEN - 50 THEN - ( 59 ) * - - 46 + 99 WHEN - 70 THEN - 76 - - MIN ( ALL - 91 ) + + + 88 + ( + + 34 ) * + 33 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - + 33 + + COALESCE ( - - CASE - 5 WHEN + COUNT ( * ) * - + CASE + + 62 WHEN 98 * + + ( 24 ) + - 35 THEN - MIN ( + + 46 ) WHEN + 47 + 4 * + SUM ( ALL CASE 99 WHEN 14 THEN ( 33 ) ELSE 5 END ) THEN NULL END * CAST ( - COUNT ( * ) AS INTEGER ) + + 20 THEN + COUNT ( * ) * - 70 + - 80 * - CAST ( + CASE 74 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) * CAST ( COUNT ( 67 ) * AVG ( ALL 17 ) + - 9 AS INTEGER ) + + 24 * ( - 65 ) THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) ELSE 1 END AS INTEGER ) ELSE NULL END, 83, 38 ) WHEN + 95 - + COALESCE ( + 51, 32, 73 + 50 ) * + 27 THEN NULL ELSE - COUNT ( 3 ) END + - ( + COALESCE ( COUNT ( * ), - 81 - COUNT ( ALL - CAST ( - 16 AS INTEGER ) ) * 69 ) + 19 ) * - 24 AS col2
----
-67
489

query I rowsort
SELECT 65 * + 26
----
1690

query II rowsort
SELECT 36 col1, + 14 * - 10 - + 63 * 42
----
36
-2786

query I rowsort
SELECT ALL + 8 * + 59 * - 47
----
-22184

query I rowsort
SELECT 55 * + 6 AS col2
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT ALL + COALESCE ( 10, + 7 ) + + - NULLIF ( - + 61, - 45 ) + 97 + + - COUNT( * ) + + 9
----
176

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + COALESCE ( 10, + 7 ) + + - NULLIF ( - + 61, - 45 ) + 97 + + - COUNT ( * ) + + 9
----
176

query I rowsort
SELECT DISTINCT - 63 + - + 1 AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT ALL + ( - 7 ) * + 55 * 21 * + CAST( NULL AS SIGNED ) - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL + ( - 7 ) * + 55 * 21 * + CAST ( NULL AS INTEGER ) - - 3
----
NULL

query I rowsort
SELECT DISTINCT - 36 + + - ( + ( + 68 ) )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL CASE ( - 0 ) WHEN - 4 THEN NULL WHEN - - COUNT( DISTINCT + - 19 ) * SUM( DISTINCT 45 ) + 65 THEN - 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL CASE ( - 0 ) WHEN - 4 THEN NULL WHEN - - COUNT ( DISTINCT + - 19 ) * SUM ( DISTINCT 45 ) + 65 THEN - 42 END
----
NULL

query I rowsort
SELECT ALL - - 6 + - 25 + + 89 AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-736
SELECT + CAST( + COUNT( * ) AS SIGNED ) + - 36
----
-35

skipif mysql # not compatible
query I rowsort label-736
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - 36
----
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT 32 + + MIN( DISTINCT + + 85 ) + 31 * + 47 * - + 56 AS col1
----
-81475

skipif mysql # not compatible
query I rowsort label-738
SELECT 32 + + MIN ( DISTINCT + + 85 ) + 31 * + 47 * - + 56 AS col1
----
-81475

onlyif mysql # aggregate syntax: 
query II rowsort label-739
SELECT + COUNT( * ) * - SUM( ALL + 9 ) AS col0, + COUNT( * ) + 66
----
-9
67

skipif mysql # not compatible
query II rowsort label-739
SELECT + COUNT ( * ) * - SUM ( ALL + 9 ) AS col0, + COUNT ( * ) + 66
----
-9
67

query I rowsort
SELECT ALL - - 94 * 6
----
564

query I rowsort
SELECT DISTINCT CASE + - 38 WHEN COALESCE ( + 37, - - 98, 56 + 45 ) THEN NULL ELSE 94 END
----
94

query I rowsort
SELECT + ( 87 ) + - - 99 AS col0
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-743
SELECT DISTINCT - 83 * 55 * 98 AS col2, COUNT( * ) DIV - 83 AS col2
----
-447370
0

skipif mysql # not compatible
query II rowsort label-743
SELECT DISTINCT - 83 * 55 * 98 AS col2, COUNT ( * ) / - 83 AS col2
----
-447370
0

query I rowsort
SELECT DISTINCT + + 64 - + - 7 + - 67 * 10
----
-599

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

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

query I rowsort
SELECT 1 + + 77 AS col1
----
78

onlyif mysql # DIV for integer division: 
query II rowsort label-747
SELECT ALL 30, - 35 DIV + 54 AS col2
----
30
0

skipif mysql # not compatible
query II rowsort label-747
SELECT ALL 30, - 35 / + 54 AS col2
----
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT 81 + + CASE - - NULLIF ( + 74, + 77 ) WHEN - MAX( + - 13 ) * - 55 * - 29 * + 6 + + 20 THEN NULL WHEN 72 THEN + + 6 ELSE - 42 END AS col1
----
39

skipif mysql # not compatible
query I rowsort label-748
SELECT 81 + + CASE - - NULLIF ( + 74, + 77 ) WHEN - MAX ( + - 13 ) * - 55 * - 29 * + 6 + + 20 THEN NULL WHEN 72 THEN + + 6 ELSE - 42 END AS col1
----
39

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-750
SELECT 1 * - - 36 * + CAST( - 12 AS SIGNED )
----
-432

skipif mysql # not compatible
query I rowsort label-750
SELECT 1 * - - 36 * + CAST ( - 12 AS INTEGER )
----
-432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-751
SELECT - 22 * - + 81 + + - 68 + + - 43 + + 41 + 24 DIV - + 31 * + ( ( - 2 ) ) * COUNT( * ) col0
----
1712

skipif mysql # not compatible
query I rowsort label-751
SELECT - 22 * - + 81 + + - 68 + + - 43 + + 41 + 24 / - + 31 * + ( ( - 2 ) ) * COUNT ( * ) col0
----
1712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-752
SELECT ALL CAST( 15 AS SIGNED ) * 56 AS col0
----
840

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL CAST ( 15 AS INTEGER ) * 56 AS col0
----
840

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-754
SELECT CAST( NULL AS SIGNED ) + - 47 AS col2, - 56 AS col1
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-754
SELECT CAST ( NULL AS INTEGER ) + - 47 AS col2, - 56 AS col1
----
NULL
-56

query I rowsort
SELECT ALL 35 * - 80 AS col2
----
-2800

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT 75 * - - COUNT( * ) + 81
----
156

skipif mysql # not compatible
query I rowsort label-756
SELECT 75 * - - COUNT ( * ) + 81
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT + MIN( 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-757
SELECT + MIN ( 19 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT - 82 * + MAX( ALL + 33 ) + + 57
----
-2649

skipif mysql # not compatible
query I rowsort label-758
SELECT - 82 * + MAX ( ALL + 33 ) + + 57
----
-2649

query I rowsort
SELECT 65 * - 48
----
-3120

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT COUNT( * ) AS col1, + 34 + - 3
----
1
31

skipif mysql # not compatible
query II rowsort label-760
SELECT COUNT ( * ) AS col1, + 34 + - 3
----
1
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-761
SELECT COALESCE ( + + CAST( + - 47 AS SIGNED ), - + 23 ) + - 89 + 2 - 62 * NULLIF ( 50, - 65 ) + + 56 + + 94 * + - 46 col1
----
-7502

skipif mysql # not compatible
query I rowsort label-761
SELECT COALESCE ( + + CAST ( + - 47 AS INTEGER ), - + 23 ) + - 89 + 2 - 62 * NULLIF ( 50, - 65 ) + + 56 + + 94 * + - 46 col1
----
-7502

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT DISTINCT 34 + 28 - + 13 DIV 16 * - 79
----
62

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT 34 + 28 - + 13 / 16 * - 79
----
62

onlyif mysql # aggregate syntax: 
query III rowsort label-763
SELECT + COUNT( * ) AS col0, 48 AS col0, + 23 AS col2
----
1
48
23

skipif mysql # not compatible
query III rowsort label-763
SELECT + COUNT ( * ) AS col0, 48 AS col0, + 23 AS col2
----
1
48
23

query I rowsort
SELECT ALL - 49 + + ( - + NULLIF ( - 18, + 84 * + 49 ) ) + 93
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT COUNT( * ) * + 33 * 83 + + 91 * - - 55
----
7744

skipif mysql # not compatible
query I rowsort label-765
SELECT COUNT ( * ) * + 33 * 83 + + 91 * - - 55
----
7744

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL + COALESCE ( - - 98, + COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + COALESCE ( - - 98, + COUNT ( * ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT 62 + + SUM( ALL + 62 ) + COUNT( * ) * - 93 * + 60 + 52 + 47
----
-5357

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT 62 + + SUM ( ALL + 62 ) + COUNT ( * ) * - 93 * + 60 + 52 + 47
----
-5357

query I rowsort
SELECT ALL 21 + + - 43 AS col1
----
-22

query I rowsort
SELECT + 27 * 77
----
2079

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-770
SELECT - CAST( + 67 AS SIGNED ) + + 92 * - 49 - - 2 + + CAST( NULL AS SIGNED ) AS col0, 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-770
SELECT - CAST ( + 67 AS INTEGER ) + + 92 * - 49 - - 2 + + CAST ( NULL AS INTEGER ) AS col0, 2
----
NULL
2

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

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

query I rowsort
SELECT DISTINCT - 78 + ( - - 23 ) + + ( - 5 ) - - 87 AS col0
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT - 23 + ( - 77 ) + + COUNT( * ) + 88 * + 73
----
6325

skipif mysql # not compatible
query I rowsort label-774
SELECT - 23 + ( - 77 ) + + COUNT ( * ) + 88 * + 73
----
6325

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-775
SELECT ALL - 88 AS col2, + 82 + - + 74 + 95 * COUNT( * ) DIV - + 80 AS col0
----
-88
7

skipif mysql # not compatible
query II rowsort label-775
SELECT ALL - 88 AS col2, + 82 + - + 74 + 95 * COUNT ( * ) / - + 80 AS col0
----
-88
7

query II rowsort
SELECT DISTINCT + 4 col1, 45 * 49 * - + 58 * - ( + 44 ) * - 48 + - - 81 + + + 71
----
4
-270103528

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-777
SELECT + 40, - 55 DIV - ( - - COUNT( * ) ) AS col0
----
40
55

skipif mysql # not compatible
query II rowsort label-777
SELECT + 40, - 55 / - ( - - COUNT ( * ) ) AS col0
----
40
55

onlyif mysql # aggregate syntax: 
query II rowsort label-778
SELECT ALL COALESCE ( + + COUNT( * ), - 38 ) - + 87 AS col0, + 30 AS col0
----
-86
30

skipif mysql # not compatible
query II rowsort label-778
SELECT ALL COALESCE ( + + COUNT ( * ), - 38 ) - + 87 AS col0, + 30 AS col0
----
-86
30

query I rowsort
SELECT DISTINCT + 17 * ( + 15 )
----
255

onlyif mysql # DIV for integer division: 
query II rowsort label-780
SELECT DISTINCT - CASE - 99 WHEN + 29 * + - 20 * 50 * - COALESCE ( - 12, - 78 ) THEN 53 + + - 50 WHEN - 30 THEN NULL END col1, 88 DIV - 27
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-780
SELECT DISTINCT - CASE - 99 WHEN + 29 * + - 20 * 50 * - COALESCE ( - 12, - 78 ) THEN 53 + + - 50 WHEN - 30 THEN NULL END col1, 88 / - 27
----
NULL
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-781
SELECT - 90 DIV + 6 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-781
SELECT - 90 / + 6 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-782
SELECT ALL - 68 col1, MIN( COALESCE ( + 48, 58 ) ) AS col1
----
-68
48

skipif mysql # not compatible
query II rowsort label-782
SELECT ALL - 68 col1, MIN ( COALESCE ( + 48, 58 ) ) AS col1
----
-68
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-783
SELECT ALL 97 AS col1, COUNT( * ) - COUNT( * ) * + + 42 DIV + 12
----
97
-2

skipif mysql # not compatible
query II rowsort label-783
SELECT ALL 97 AS col1, COUNT ( * ) - COUNT ( * ) * + + 42 / + 12
----
97
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-784
SELECT DISTINCT COUNT( * ), + 86 DIV + 68 col2
----
1
1

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT COUNT ( * ), + 86 / + 68 col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL + COALESCE ( - 90, - MAX( COALESCE ( - - 9, - ( - 89 ) ) ) ) - 52
----
-142

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + COALESCE ( - 90, - MAX ( COALESCE ( - - 9, - ( - 89 ) ) ) ) - 52
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT ALL - ( SUM( + - 43 ) ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - ( SUM ( + - 43 ) ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT - + CAST( + - 81 AS SIGNED ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-787
SELECT - + CAST ( + - 81 AS INTEGER ) AS col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT - 79 + 3 - + 63 * + 28 * - + 33 + + - 91 - + 6 + + + ( - COUNT( * ) ) * + 74 * - + 90 - 66 + + 76 AS col1
----
64709

skipif mysql # not compatible
query I rowsort label-789
SELECT - 79 + 3 - + 63 * + 28 * - + 33 + + - 91 - + 6 + + + ( - COUNT ( * ) ) * + 74 * - + 90 - 66 + + 76 AS col1
----
64709

query II rowsort
SELECT 86, + 38 * 92 col2
----
86
3496

query II rowsort
SELECT - - 26 AS col0, - 5 + - 73
----
26
-78

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

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

query I rowsort
SELECT DISTINCT NULLIF ( 37, - 10 + 68 * - 50 * + 72 * 95 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT ALL + 77 * + + NULLIF ( + + COUNT( - + 58 ), - 89 )
----
77

skipif mysql # not compatible
query I rowsort label-794
SELECT ALL + 77 * + + NULLIF ( + + COUNT ( - + 58 ), - 89 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT DISTINCT - 98 * COUNT( * ) * + 36
----
-3528

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT - 98 * COUNT ( * ) * + 36
----
-3528

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-797
SELECT ALL - CAST( + 56 AS SIGNED ) * - 6 * - 38 * - 39 + - 2 + + COUNT( * ) + - - ( + 26 ) AS col0
----
497977

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL - CAST ( + 56 AS INTEGER ) * - 6 * - 38 * - 39 + - 2 + + COUNT ( * ) + - - ( + 26 ) AS col0
----
497977

query II rowsort
SELECT ( - + 66 ), 27 * + 23 * + + 34 AS col1
----
-66
21114

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-800
SELECT DISTINCT + COUNT( * ) * + 21 + + CAST( - 44 AS SIGNED ) * - 26 * 61 * + + COALESCE ( - 58, + 57 * - + COUNT( * ) DIV + - 47 + + 55 DIV 32 * - CAST( 57 AS SIGNED ), 37 + 93 ) AS col1
----
-4047451

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT + COUNT ( * ) * + 21 + + CAST ( - 44 AS INTEGER ) * - 26 * 61 * + + COALESCE ( - 58, + 57 * - + COUNT ( * ) / + - 47 + + 55 / 32 * - CAST ( 57 AS INTEGER ), 37 + 93 ) AS col1
----
-4047451

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-802
SELECT + COALESCE ( + + 77, + - 54 DIV - CASE + 53 WHEN + 53 THEN NULL WHEN - NULLIF ( ( + 9 ), - - 47 ) * CAST( NULL AS SIGNED ) - + ( 53 ) THEN + ( + - 0 ) END + + 98, 67, 39 ) col1
----
77

skipif mysql # not compatible
query I rowsort label-802
SELECT + COALESCE ( + + 77, + - 54 / - CASE + 53 WHEN + 53 THEN NULL WHEN - NULLIF ( ( + 9 ), - - 47 ) * CAST ( NULL AS INTEGER ) - + ( 53 ) THEN + ( + - 0 ) END + + 98, 67, 39 ) col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT ALL + 50 * + COUNT( * ) + 65 - COUNT( * )
----
114

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + 50 * + COUNT ( * ) + 65 - COUNT ( * )
----
114

query I rowsort
SELECT ALL 53 * - NULLIF ( 77, + 79 ) + - + 27 AS col0
----
-4108

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT DISTINCT COUNT( * ) * + 77 * + 5 + - 78 * - - CAST( - 39 AS SIGNED ) * + 15 + - 58 - + - 80 + + 49 + 90 AS col0
----
46176

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT COUNT ( * ) * + 77 * + 5 + - 78 * - - CAST ( - 39 AS INTEGER ) * + 15 + - 58 - + - 80 + + 49 + 90 AS col0
----
46176

query I rowsort
SELECT ALL 51 * ( + 90 )
----
4590

query I rowsort
SELECT DISTINCT 63 * - - 15 * - 46 AS col1
----
-43470

query II rowsort
SELECT ALL 90 * 3 + 9 AS col2, + COALESCE ( - + 7, 85 )
----
279
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-810
SELECT - COUNT( * ) - + COUNT( * ) AS col2, COUNT( * ) * + 67 + - CASE + 28 WHEN - - CAST( NULL AS DECIMAL ) - 25 / + 84 THEN NULL ELSE - COUNT( - 33 ) END
----
-2
68

skipif mysql # not compatible
query II rowsort label-810
SELECT - COUNT ( * ) - + COUNT ( * ) AS col2, COUNT ( * ) * + 67 + - CASE + 28 WHEN - - CAST ( NULL AS REAL ) - 25 / + 84 THEN NULL ELSE - COUNT ( - 33 ) END
----
-2
68

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

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

query II rowsort
SELECT ALL 15 * 79, 35 AS col1
----
1185
35

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT COALESCE ( NULLIF ( - - NULLIF ( + 35, - - 5 * 18 * + COUNT( * ) ), + 15 ), - 83 - 13 )
----
35

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT COALESCE ( NULLIF ( - - NULLIF ( + 35, - - 5 * 18 * + COUNT ( * ) ), + 15 ), - 83 - 13 )
----
35

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT DISTINCT 66 DIV - 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT 66 / - 92 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-817
SELECT ALL CASE + 62 WHEN + 90 - + CAST( NULL AS SIGNED ) THEN - - 16 WHEN 22 THEN NULL ELSE - 63 END
----
-63

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL CASE + 62 WHEN + 90 - + CAST ( NULL AS INTEGER ) THEN - - 16 WHEN 22 THEN NULL ELSE - 63 END
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT - COUNT( * ) * + 50 * - 21 - - - 97
----
953

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT - COUNT ( * ) * + 50 * - 21 - - - 97
----
953

query II rowsort
SELECT - - 94 * - - 14 AS col2, CASE - 43 WHEN 0 THEN ( + 13 ) END AS col2
----
1316
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-820
SELECT - COUNT( * ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-820
SELECT - COUNT ( * ) / - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL 93 * - 54 * + COUNT( * ) AS col0
----
-5022

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL 93 * - 54 * + COUNT ( * ) AS col0
----
-5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-822
SELECT + CASE + + COALESCE ( COUNT( * ), + 97 + COUNT( * ) ) WHEN - SUM( - 67 ) * + CAST( NULL AS SIGNED ) THEN - + CAST( NULL AS SIGNED ) ELSE 80 * COUNT( * ) + - - 95 + + ( - - 40 ) * - ( + CAST( NULL AS SIGNED ) ) + + - 68 END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT + CASE + + COALESCE ( COUNT ( * ), + 97 + COUNT ( * ) ) WHEN - SUM ( - 67 ) * + CAST ( NULL AS INTEGER ) THEN - + CAST ( NULL AS INTEGER ) ELSE 80 * COUNT ( * ) + - - 95 + + ( - - 40 ) * - ( + CAST ( NULL AS INTEGER ) ) + + - 68 END * 7
----
NULL

query I rowsort
SELECT + 67 + - 66 AS col2
----
1

query II rowsort
SELECT - - 87 + ( + - 81 ) AS col2, 81 AS col2
----
6
81

query I rowsort
SELECT DISTINCT - CASE + + 34 WHEN 5 THEN + ( + 90 ) END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - - 99, - 17 ) * + - 86
----
-8514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-827
SELECT ALL NULLIF ( + - CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN - 82 - - 39 * - 78 END, - NULLIF ( - 40, COALESCE ( - 91, + 94 ) - 21 ) * - - 65 * + 74 + 8 + - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL NULLIF ( + - CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN - 82 - - 39 * - 78 END, - NULLIF ( - 40, COALESCE ( - 91, + 94 ) - 21 ) * - - 65 * + 74 + 8 + - 18 )
----
NULL

query I rowsort
SELECT - - 42 + 87 AS col0
----
129

query I rowsort
SELECT ALL - 37 * + 13 * + + 55
----
-26455

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT SUM( ALL + - 49 ) + + ( - - 61 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT SUM ( ALL + - 49 ) + + ( - - 61 ) AS col0
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT - COUNT( 7 ) + - 44
----
-45

skipif mysql # not compatible
query I rowsort label-832
SELECT - COUNT ( 7 ) + - 44
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT + SUM( DISTINCT - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-833
SELECT + SUM ( DISTINCT - 36 ) AS col1
----
-36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-835
SELECT DISTINCT 5 DIV 83 + + + 80 + + COUNT( ALL - 17 )
----
81

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT 5 / 83 + + + 80 + + COUNT ( ALL - 17 )
----
81

query II rowsort
SELECT ALL + 19, - 8 * - 52 AS col2
----
19
416

onlyif mysql # aggregate syntax: 
query II rowsort label-837
SELECT COUNT( * ) * + 93 - MAX( - 83 ) + - 8 + + 33 AS col0, - 71 * + + 95 * + 42 AS col0
----
201
-283290

skipif mysql # not compatible
query II rowsort label-837
SELECT COUNT ( * ) * + 93 - MAX ( - 83 ) + - 8 + + 33 AS col0, - 71 * + + 95 * + 42 AS col0
----
201
-283290

query II rowsort
SELECT 33 AS col2, + 35 + - 97
----
33
-62

query I rowsort
SELECT ALL + 58 * - - 48 * 20
----
55680

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

skipif mysql # not compatible
query I rowsort label-840
SELECT 71 / COUNT ( * )
----
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-842
SELECT 50 * 36 * - 83 + - 42 * CAST( - 89 AS SIGNED ) * 68 * 38 + + + 99 + + 85 AS col1
----
9509776

skipif mysql # not compatible
query I rowsort label-842
SELECT 50 * 36 * - 83 + - 42 * CAST ( - 89 AS INTEGER ) * 68 * 38 + + + 99 + + 85 AS col1
----
9509776

query I rowsort
SELECT 54 * + 56 AS col0
----
3024

query I rowsort
SELECT + 48 * - ( 96 ) * 83 - - - 1
----
-382465

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-845
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, 68 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-845
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, 68 AS col0
----
NULL
68

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

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

query I rowsort
SELECT 70 + + 94
----
164

query I rowsort
SELECT 86 * - 24 - - 26 + 79 * 82
----
4440

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT MIN( ALL - - 90 ) + 66 col0
----
156

skipif mysql # not compatible
query I rowsort label-849
SELECT MIN ( ALL - - 90 ) + 66 col0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-850
SELECT ALL - + 19 AS col0, - CAST( + - COUNT( * ) AS SIGNED )
----
-19
1

skipif mysql # not compatible
query II rowsort label-850
SELECT ALL - + 19 AS col0, - CAST ( + - COUNT ( * ) AS INTEGER )
----
-19
1

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT DISTINCT MAX( DISTINCT - - 65 ) * - 95 * - - 6
----
-37050

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT MAX ( DISTINCT - - 65 ) * - 95 * - - 6
----
-37050

query I rowsort
SELECT ALL + 79 * 32
----
2528

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT ALL + + MIN( DISTINCT + + 79 ) * - - 32
----
2528

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL + + MIN ( DISTINCT + + 79 ) * - - 32
----
2528

query I rowsort
SELECT - 85 + + 66 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-855
SELECT DISTINCT + COALESCE ( - + COALESCE ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - 94 ), + 24, + 38, 15 * + 21 * 82 * + + 44 ), - COUNT( * ) + - 6 AS col2
----
94
-7

skipif mysql # not compatible
query II rowsort label-855
SELECT DISTINCT + COALESCE ( - + COALESCE ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - 94 ), + 24, + 38, 15 * + 21 * 82 * + + 44 ), - COUNT ( * ) + - 6 AS col2
----
94
-7

query I rowsort
SELECT ALL + 76 * + 47
----
3572

query II rowsort
SELECT - 43, 57 AS col0
----
-43
57

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT MAX( + + 91 ) + + - 24 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-858
SELECT MAX ( + + 91 ) + + - 24 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT 39 * + + CASE 56 WHEN COUNT( * ) THEN + ( ( + - 41 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT 39 * + + CASE 56 WHEN COUNT ( * ) THEN + ( ( + - 41 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT - 94 col0, + 9 + COUNT( * ) AS col0
----
-94
10

skipif mysql # not compatible
query II rowsort label-860
SELECT - 94 col0, + 9 + COUNT ( * ) AS col0
----
-94
10

query II rowsort
SELECT ALL 55, + 90 col2
----
55
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT - NULLIF ( - 16, - 76 ) * CAST( + 99 AS SIGNED ) + + + 25
----
1609

skipif mysql # not compatible
query I rowsort label-862
SELECT - NULLIF ( - 16, - 76 ) * CAST ( + 99 AS INTEGER ) + + + 25
----
1609

query I rowsort
SELECT ALL - 0 + ( - 7 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT COUNT( * ) + + 92 * - 45 * - COUNT( * ) - 62 + 15
----
4094

skipif mysql # not compatible
query I rowsort label-864
SELECT COUNT ( * ) + + 92 * - 45 * - COUNT ( * ) - 62 + 15
----
4094

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT DISTINCT 5 + 14 DIV - + 47
----
5

skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT 5 + 14 / - + 47
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL + 17 + - CASE AVG ( - 14 ) WHEN + 59 THEN NULL WHEN - COUNT( * ) THEN - - MAX( + 21 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL + 17 + - CASE AVG ( - 14 ) WHEN + 59 THEN NULL WHEN - COUNT ( * ) THEN - - MAX ( + 21 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-867
SELECT DISTINCT 11 + - CAST( NULL AS SIGNED ) + 59 + + + 47 AS col2, 40 + + 49 + + 52 * + - 24
----
NULL
-1159

skipif mysql # not compatible
query II rowsort label-867
SELECT DISTINCT 11 + - CAST ( NULL AS INTEGER ) + 59 + + + 47 AS col2, 40 + + 49 + + 52 * + - 24
----
NULL
-1159

query II rowsort
SELECT ALL 46 - - + NULLIF ( + 18, + ( + - 58 ) * - 56 ) - - 14 AS col0, + 36 + - - 78 col1
----
78
114

onlyif mysql # DIV for integer division: 
query I rowsort label-869
SELECT + 32 DIV + 38 + + 0 - - 73
----
73

skipif mysql # not compatible
query I rowsort label-869
SELECT + 32 / + 38 + + 0 - - 73
----
73

query I rowsort
SELECT 96 + - - 92
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT 6 + + 5 * 55 + + COUNT( * )
----
282

skipif mysql # not compatible
query I rowsort label-871
SELECT 6 + + 5 * 55 + + COUNT ( * )
----
282

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

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + COUNT ( * ) - COUNT ( * ) / 88 * 9 + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-873
SELECT ALL + 0 * - - 78 DIV MIN( 42 ), + 42 col2
----
0
42

skipif mysql # not compatible
query II rowsort label-873
SELECT ALL + 0 * - - 78 / MIN ( 42 ), + 42 col2
----
0
42

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT 89 * - MIN( ALL 65 ) * + 23
----
-133055

skipif mysql # not compatible
query I rowsort label-874
SELECT 89 * - MIN ( ALL 65 ) * + 23
----
-133055

query I rowsort
SELECT DISTINCT + 55 * - CASE + + 32 WHEN 20 THEN 89 ELSE NULL END AS col2
----
NULL

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

query I rowsort
SELECT - ( 57 ) * 17 + - 26 * NULLIF ( 2, + + 27 )
----
-1021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-878
SELECT 53 / - 10 + 78 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT 53 / - 10 + 78 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT NULLIF ( - 21, - + 57 * + + COUNT( * ) ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-879
SELECT NULLIF ( - 21, - + 57 * + + COUNT ( * ) ) col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT + COUNT( * ) - 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-880
SELECT + COUNT ( * ) - 61 AS col2
----
-60

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

skipif mysql # not compatible
query I rowsort label-881
SELECT 1 * + COUNT ( * ) + + 13 AS col1
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT DISTINCT 98 + + - 76 * + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-883
SELECT DISTINCT 98 + + - 76 * + COUNT ( * )
----
22

query I rowsort
SELECT ALL 11 * + 27 * 91
----
27027

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT DISTINCT - 73 + 50 + - MAX( DISTINCT + ( - + 51 ) ) col1
----
28

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - 73 + 50 + - MAX ( DISTINCT + ( - + 51 ) ) col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-886
SELECT DISTINCT - 62 * + 93 AS col2, + COUNT( * ) AS col1
----
-5766
1

skipif mysql # not compatible
query II rowsort label-886
SELECT DISTINCT - 62 * + 93 AS col2, + COUNT ( * ) AS col1
----
-5766
1

query I rowsort
SELECT + 39 + - + 19 - - 40 + + COALESCE ( - COALESCE ( + + 18, - 70, - 27 ), + 59 ) * 19 * + 71 * - 41
----
995622

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - MIN( + - 40 )
----
40

skipif mysql # not compatible
query I rowsort label-888
SELECT - MIN ( + - 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT ALL 82 + COUNT( 74 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL 82 + COUNT ( 74 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT 39 + + - COUNT( * ) * + 51 + - MIN( - 51 )
----
39

skipif mysql # not compatible
query I rowsort label-890
SELECT 39 + + - COUNT ( * ) * + 51 + - MIN ( - 51 )
----
39

query II rowsort
SELECT ALL 39, - 81 col0
----
39
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-892
SELECT ALL COALESCE ( 92, - COUNT( * ) - + 78 * + 20 * + - CAST( NULL AS SIGNED ) + - 58 + MIN( DISTINCT + 51 ) + + 87 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL COALESCE ( 92, - COUNT ( * ) - + 78 * + 20 * + - CAST ( NULL AS INTEGER ) + - 58 + MIN ( DISTINCT + 51 ) + + 87 ) AS col0
----
92

query I rowsort
SELECT ALL 41 + - 33
----
8

query II rowsort
SELECT DISTINCT 45, 49 AS col2
----
45
49

query I rowsort
SELECT DISTINCT 93 * - 17
----
-1581

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-896
SELECT + 99 + + COALESCE ( + SUM( - 76 ), - + 62, + 32 DIV - MAX( - 41 ) )
----
23

skipif mysql # not compatible
query I rowsort label-896
SELECT + 99 + + COALESCE ( + SUM ( - 76 ), - + 62, + 32 / - MAX ( - 41 ) )
----
23

query I rowsort
SELECT + 11 * - 19
----
-209

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT DISTINCT 40 DIV ( + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT 40 / ( + 95 )
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-899
SELECT ALL 62, + SUM( ALL + 91 ) AS col2, - COUNT( * ) AS col0
----
62
91
-1

skipif mysql # not compatible
query III rowsort label-899
SELECT ALL 62, + SUM ( ALL + 91 ) AS col2, - COUNT ( * ) AS col0
----
62
91
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT + 33 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-901
SELECT + 33 / 72
----
0

query I rowsort
SELECT ALL 39 * - 4 AS col2
----
-156

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

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

query I rowsort
SELECT ALL 56 * + 7 AS col1
----
392

query I rowsort
SELECT - 27 + - 6
----
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT + COALESCE ( + 34, - 21 ) * 86 + + 20 * - MIN( DISTINCT - + 46 )
----
3844

skipif mysql # not compatible
query I rowsort label-907
SELECT + COALESCE ( + 34, - 21 ) * 86 + + 20 * - MIN ( DISTINCT - + 46 )
----
3844

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

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

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

skipif mysql # not compatible
query I rowsort label-909
SELECT - + 82 * CAST ( NULL AS INTEGER ) + 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-910
SELECT + 32 / - + COUNT( * ) + - COALESCE ( + 22, + 1 ) + CASE - COALESCE ( CAST( NULL AS DECIMAL ), - 64 * - 93 + + COUNT( * ) + + NULLIF ( ( - 28 ), 41 ) + + - 88 + - 68 + - + CAST( NULL AS DECIMAL ) / - ( - + ( - 29 ) ), - CAST( + - 20 AS SIGNED ) ) WHEN + 49 + 24 THEN + 92 ELSE NULL END * + - 56 * - - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT + 32 / - + COUNT ( * ) + - COALESCE ( + 22, + 1 ) + CASE - COALESCE ( CAST ( NULL AS REAL ), - 64 * - 93 + + COUNT ( * ) + + NULLIF ( ( - 28 ), 41 ) + + - 88 + - 68 + - + CAST ( NULL AS REAL ) / - ( - + ( - 29 ) ), - CAST ( + - 20 AS INTEGER ) ) WHEN + 49 + 24 THEN + 92 ELSE NULL END * + - 56 * - - 92 AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL - 95 * COUNT ( * ) + 13 + + 35 col1
----
-47

query I rowsort
SELECT - 43 + + - 53
----
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT - + 55 + - 67 + - 95 * COUNT( * ) + - 49 * - 61 AS col1
----
2772

skipif mysql # not compatible
query I rowsort label-915
SELECT - + 55 + - 67 + - 95 * COUNT ( * ) + - 49 * - 61 AS col1
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT ALL - 9 * + NULLIF ( SUM( DISTINCT 74 ), + ( - - 52 ) / 54 / + CASE 39 WHEN - + ( - COUNT( * ) ) THEN - 47 + - 89 END * - 50 - + - 60 ) + + 70
----
-596

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL - 9 * + NULLIF ( SUM ( DISTINCT 74 ), + ( - - 52 ) / 54 / + CASE 39 WHEN - + ( - COUNT ( * ) ) THEN - 47 + - 89 END * - 50 - + - 60 ) + + 70
----
-596

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

skipif mysql # not compatible
query II rowsort label-917
SELECT DISTINCT + 98, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
98
1

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT + + COUNT( * ), 1 * 11 AS col0
----
1
11

skipif mysql # not compatible
query II rowsort label-918
SELECT + + COUNT ( * ), 1 * 11 AS col0
----
1
11

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT ALL - + 73 + 75 DIV - 77 * - + ( + 4 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - + 73 + 75 / - 77 * - + ( + 4 ) AS col1
----
-73

query I rowsort
SELECT - + 94 * - + 12 + + 92 + + - 99 * - + 33 * 32 + - + 30
----
105734

onlyif mysql # aggregate syntax: 
query II rowsort label-921
SELECT ALL - COUNT( * ) - - 47 col1, + COUNT( * )
----
46
1

skipif mysql # not compatible
query II rowsort label-921
SELECT ALL - COUNT ( * ) - - 47 col1, + COUNT ( * )
----
46
1

query I rowsort
SELECT - 47 * - + 74
----
3478

query I rowsort
SELECT ALL 58 * + 90
----
5220

query I rowsort
SELECT ALL 17 - - + 82 col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-925
SELECT - ( + + COUNT( * ) ) * CAST( + 12 AS SIGNED ) * + 97 AS col0
----
-1164

skipif mysql # not compatible
query I rowsort label-925
SELECT - ( + + COUNT ( * ) ) * CAST ( + 12 AS INTEGER ) * + 97 AS col0
----
-1164

query I rowsort
SELECT - 11 * + - 5
----
55

query I rowsort
SELECT ALL + 90 * + 65
----
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT - 87 * 90 * - COUNT( * ) AS col1
----
7830

skipif mysql # not compatible
query I rowsort label-928
SELECT - 87 * 90 * - COUNT ( * ) AS col1
----
7830

query I rowsort
SELECT + 93 * + + 20 col0
----
1860

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT ALL - 27 * 97 DIV 39
----
-67

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - 27 * 97 / 39
----
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-931
SELECT - 5 + CAST( - 98 AS SIGNED ) + 25 * 94 + - 98 DIV - ( + 90 ) AS col0
----
2248

skipif mysql # not compatible
query I rowsort label-931
SELECT - 5 + CAST ( - 98 AS INTEGER ) + 25 * 94 + - 98 / - ( + 90 ) AS col0
----
2248

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT + 87 + - 25 + + COUNT( * ) * + + 82 - 87
----
57

skipif mysql # not compatible
query I rowsort label-932
SELECT + 87 + - 25 + + COUNT ( * ) * + + 82 - 87
----
57

query II rowsort
SELECT DISTINCT 63, 94 * 75 AS col2
----
63
7050

query I rowsort
SELECT - 57 * - - 51
----
-2907

query I rowsort
SELECT ALL - 27 * + ( + 68 )
----
-1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT DISTINCT CAST( ( + ( - + 50 ) ) AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT CAST ( ( + ( - + 50 ) ) AS INTEGER )
----
-50

query I rowsort
SELECT + ( 4 ) + + 36 + 37 * - 17 * 69 * 47
----
-2039807

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT 28 * + 78 * - + 75 * 78 * 99 * CASE COUNT( * ) WHEN - 80 THEN + 63 * + 90 ELSE NULL END + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT 28 * + 78 * - + 75 * 78 * 99 * CASE COUNT ( * ) WHEN - 80 THEN + 63 * + 90 ELSE NULL END + + 82
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT ALL - 16 DIV 36 DIV COUNT( * ) + + 26 AS col1
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT + COALESCE ( - - MIN( ALL + + 39 ), - - ( + + ( 87 ) ) + COUNT( * ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-941
SELECT + COALESCE ( - - MIN ( ALL + + 39 ), - - ( + + ( 87 ) ) + COUNT ( * ) ) AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT + + 11 DIV 8 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-942
SELECT + + 11 / 8 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT + CAST( 76 AS SIGNED ) * 2
----
152

skipif mysql # not compatible
query I rowsort label-943
SELECT + CAST ( 76 AS INTEGER ) * 2
----
152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT + MAX( ALL - 54 ) + + 29
----
-25

skipif mysql # not compatible
query I rowsort label-945
SELECT + MAX ( ALL - 54 ) + + 29
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ALL + 91 / CASE + 48 WHEN - - 77 THEN - + 84 / + 78 + - 66 - + 19 * + ( - ( - - AVG ( + 35 ) ) ) * 90 + COUNT( * ) END + - + 97 * + 62 * - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL + 91 / CASE + 48 WHEN - - 77 THEN - + 84 / + 78 + - 66 - + 19 * + ( - ( - - AVG ( + 35 ) ) ) * 90 + COUNT ( * ) END + - + 97 * + 62 * - + 46
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-947
SELECT ALL 48 * - 91 AS col1, ( - CASE - 67 WHEN + 48 THEN + + COUNT( * ) ELSE NULL END ) * - + 52 * + - 78
----
-4368
NULL

skipif mysql # not compatible
query II rowsort label-947
SELECT ALL 48 * - 91 AS col1, ( - CASE - 67 WHEN + 48 THEN + + COUNT ( * ) ELSE NULL END ) * - + 52 * + - 78
----
-4368
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT + ( - 50 ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-948
SELECT + ( - 50 ) / + 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-949
SELECT DISTINCT - + 68 DIV - 20 + + + COUNT( * ) DIV + 37 + - 89 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT - + 68 / - 20 + + + COUNT ( * ) / + 37 + - 89 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-950
SELECT ALL - + 25 / 36 + - CASE - 96 WHEN - + COALESCE ( + 26, - 30, + - 18, 28 + + COUNT( * ) ) THEN - - 72 ELSE + NULLIF ( 18, + + 14 - 74 + + COUNT( DISTINCT 18 ) + - + 59 ) END * CAST( NULL AS SIGNED ) / + 76 + - SUM( ALL + 84 ) - - ( + 61 ) * + - COUNT( * ) + + 18 + + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL - + 25 / 36 + - CASE - 96 WHEN - + COALESCE ( + 26, - 30, + - 18, 28 + + COUNT ( * ) ) THEN - - 72 ELSE + NULLIF ( 18, + + 14 - 74 + + COUNT ( DISTINCT 18 ) + - + 59 ) END * CAST ( NULL AS INTEGER ) / + 76 + - SUM ( ALL + 84 ) - - ( + 61 ) * + - COUNT ( * ) + + 18 + + 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT ALL + NULLIF ( - 8, - - 38 * 14 - - COUNT( * ) * - 99 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL + NULLIF ( - 8, - - 38 * 14 - - COUNT ( * ) * - 99 ) AS col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-952
SELECT + - 84 DIV 10 * + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-952
SELECT + - 84 / 10 * + COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT + SUM( + + 43 ) * - 8 * - MIN( ALL - - 97 ) - - ( 34 ) col0
----
33402

skipif mysql # not compatible
query I rowsort label-953
SELECT + SUM ( + + 43 ) * - 8 * - MIN ( ALL - - 97 ) - - ( 34 ) col0
----
33402

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT MIN( - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-954
SELECT MIN ( - 27 ) AS col2
----
-27

query I rowsort
SELECT ALL + 48 * + 47 + 23 + 73
----
2352

onlyif mysql # aggregate syntax: 
query II rowsort label-956
SELECT + COUNT( * ) - + CASE MIN( + 20 ) WHEN - 71 THEN NULL ELSE - 73 END AS col2, - 71 AS col1
----
74
-71

skipif mysql # not compatible
query II rowsort label-956
SELECT + COUNT ( * ) - + CASE MIN ( + 20 ) WHEN - 71 THEN NULL ELSE - 73 END AS col2, - 71 AS col1
----
74
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-957
SELECT DISTINCT - + 40 * + 93 + 30 + CAST( - 5 AS SIGNED ) - - 87 * 61 * - 27
----
-146984

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT - + 40 * + 93 + 30 + CAST ( - 5 AS INTEGER ) - - 87 * 61 * - 27
----
-146984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT - CAST( NULL AS SIGNED ) * 90 - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-958
SELECT - CAST ( NULL AS INTEGER ) * 90 - + 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT DISTINCT + - 78 AS col0, 18 - + COUNT( * ) AS col1
----
-78
17

skipif mysql # not compatible
query II rowsort label-959
SELECT DISTINCT + - 78 AS col0, 18 - + COUNT ( * ) AS col1
----
-78
17

query II rowsort
SELECT ALL - 23, 96 AS col2
----
-23
96

query I rowsort
SELECT DISTINCT 22 - - 23
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL - 3 * - - COUNT( * ) * - 45
----
135

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - 3 * - - COUNT ( * ) * - 45
----
135

query I rowsort
SELECT 65 - - COALESCE ( + 97, - 30 ) + 33
----
195

query I rowsort
SELECT ALL 29 * - 5 col2
----
-145

query I rowsort
SELECT 74 - + + 45 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT DISTINCT - 13 * + ( + MIN( - - ( + 23 ) ) ) * + + 26
----
-7774

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT - 13 * + ( + MIN ( - - ( + 23 ) ) ) * + + 26
----
-7774

onlyif mysql # aggregate syntax: 
query II rowsort label-968
SELECT ALL - 4 * - 50 AS col0, + COUNT( * ) - - COUNT( * ) * ( 49 ) AS col1
----
200
50

skipif mysql # not compatible
query II rowsort label-968
SELECT ALL - 4 * - 50 AS col0, + COUNT ( * ) - - COUNT ( * ) * ( 49 ) AS col1
----
200
50

query I rowsort
SELECT 90 * - 36
----
-3240

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

query II rowsort
SELECT 99 + + - 10 AS col0, 45 col0
----
89
45

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT ALL + 69 DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL + 69 / + 42
----
1

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

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

query I rowsort
SELECT 8 + - ( - 54 ) * + - 93
----
-5014

query II rowsort
SELECT DISTINCT + 51 * + - 14 AS col0, 76 AS col0
----
-714
76

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL - 96 + + - CASE CASE - - COUNT( ALL - 12 ) WHEN 67 * - 38 - - CASE COUNT( * ) WHEN 80 THEN NULL WHEN + 55 + + 59 THEN + - 89 END THEN + 5 + - 52 WHEN + 45 THEN - COUNT( * ) ELSE - + 87 END WHEN 63 THEN - COUNT( * ) + + - 91 WHEN 73 THEN + + 16 * + 43 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL - 96 + + - CASE CASE - - COUNT ( ALL - 12 ) WHEN 67 * - 38 - - CASE COUNT ( * ) WHEN 80 THEN NULL WHEN + 55 + + 59 THEN + - 89 END THEN + 5 + - 52 WHEN + 45 THEN - COUNT ( * ) ELSE - + 87 END WHEN 63 THEN - COUNT ( * ) + + - 91 WHEN 73 THEN + + 16 * + 43 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT 86 + NULLIF ( - 13, + 88 + + - 59 + - MAX( ALL - 42 ) * + 90 + - + 1 )
----
73

skipif mysql # not compatible
query I rowsort label-977
SELECT 86 + NULLIF ( - 13, + 88 + + - 59 + - MAX ( ALL - 42 ) * + 90 + - + 1 )
----
73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-979
SELECT ALL + 68 + + ( - 86 ) + 66 * + NULLIF ( - 4, + COUNT( * ) ) * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL + 68 + + ( - 86 ) + 66 * + NULLIF ( - 4, + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-980
SELECT ALL - COUNT( - 77 ) col2, CAST( NULL AS SIGNED ) * - 1 + 58 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-980
SELECT ALL - COUNT ( - 77 ) col2, CAST ( NULL AS INTEGER ) * - 1 + 58 AS col1
----
-1
NULL

query I rowsort
SELECT 76 + + + 45
----
121

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

query II rowsort
SELECT ( + + 28 ), 42 AS col2
----
28
42

query II rowsort
SELECT ALL 22 + - + 98 col0, 21 AS col0
----
-76
21

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - 73 * + ( - + 84 ) + - COUNT( - 11 ) * - 56
----
6188

skipif mysql # not compatible
query I rowsort label-985
SELECT - 73 * + ( - + 84 ) + - COUNT ( - 11 ) * - 56
----
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-986
SELECT - 18 + + 97 - + COUNT( + 5 ) + 70 * + 59 * + 63 DIV + COUNT( * ) - - - COUNT( * ) AS col0
----
260267

skipif mysql # not compatible
query I rowsort label-986
SELECT - 18 + + 97 - + COUNT ( + 5 ) + 70 * + 59 * + 63 / + COUNT ( * ) - - - COUNT ( * ) AS col0
----
260267

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL + - ( - ( - + 87 ) ) - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL + - ( - ( - + 87 ) ) - COUNT ( * )
----
-88

query I rowsort
SELECT + 27 * + + 38 + 45 * - - 56 AS col1
----
3546

onlyif mysql # aggregate syntax: 
query II rowsort label-989
SELECT DISTINCT 67 * + - 89 AS col1, + 66 * + CASE - COALESCE ( + 60, + 21 + + 62 + 91 + 16 * - 84 ) WHEN + 49 THEN + 71 ELSE COUNT( * ) * - 46 + ( - + ( + 52 ) ) * + 68 + - - 96 END * 36 + + 21 + 25 AS col1
----
-5963
-8282690

skipif mysql # not compatible
query II rowsort label-989
SELECT DISTINCT 67 * + - 89 AS col1, + 66 * + CASE - COALESCE ( + 60, + 21 + + 62 + 91 + 16 * - 84 ) WHEN + 49 THEN + 71 ELSE COUNT ( * ) * - 46 + ( - + ( + 52 ) ) * + 68 + - - 96 END * 36 + + 21 + 25 AS col1
----
-5963
-8282690

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT - 68 + SUM( ALL + 72 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-990
SELECT - 68 + SUM ( ALL + 72 ) AS col1
----
4

query I rowsort
SELECT 45 * 14 AS col1
----
630

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-992
SELECT CAST( + 32 AS SIGNED ) + 22 AS col2, + 35 * - + 89 + 5 + + + 18
----
54
-3092

skipif mysql # not compatible
query II rowsort label-992
SELECT CAST ( + 32 AS INTEGER ) + 22 AS col2, + 35 * - + 89 + 5 + + + 18
----
54
-3092

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

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

query I rowsort
SELECT 0 + + 86 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ( + + 79 ) * + 98 / - + COUNT( * ) + + - CASE 5 WHEN - + 0 + - - 30 * + + 11 + + 34 THEN NULL ELSE + 50 * + 5 * + + 3 + + + CASE + 6 WHEN 28 THEN NULL WHEN 57 THEN + ( 84 ) END * + 3 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-995
SELECT ( + + 79 ) * + 98 / - + COUNT ( * ) + + - CASE 5 WHEN - + 0 + - - 30 * + + 11 + + 34 THEN NULL ELSE + 50 * + 5 * + + 3 + + + CASE + 6 WHEN 28 THEN NULL WHEN 57 THEN + ( 84 ) END * + 3 END AS col2
----
NULL

query I rowsort
SELECT ALL + 73 * + + 60 AS col0
----
4380

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

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

query I rowsort
SELECT ALL - 9 + - 62 AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-999
SELECT DISTINCT + MIN( - + 68 ) * NULLIF ( 42, - 88 * - 32 ) * + 15 * - 83 + + + 41 - 5 + - 98 + + CAST( + + 60 AS SIGNED ) col1
----
3555718

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + MIN ( - + 68 ) * NULLIF ( 42, - 88 * - 32 ) * + 15 * - 83 + + + 41 - 5 + - 98 + + CAST ( + + 60 AS INTEGER ) col1
----
3555718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1000
SELECT DISTINCT 75 + + COALESCE ( - 55, + 84 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT 75 + + COALESCE ( - 55, + 84 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 33 + + - 67 AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1002
SELECT 15 DIV 27
----
0

skipif mysql # not compatible
query I rowsort label-1002
SELECT 15 / 27
----
0

query I rowsort
SELECT ALL + 64 + + 41 AS col0
----
105

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

skipif mysql # not compatible
query II rowsort label-1004
SELECT - COUNT ( * ) col1, 62 AS col0
----
-1
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1005
SELECT 95 + 35 + + - 22 * + + COALESCE ( 98, + ( 51 ) + - - 45 + - CAST( + 24 AS SIGNED ) * + 43 )
----
-2026

skipif mysql # not compatible
query I rowsort label-1005
SELECT 95 + 35 + + - 22 * + + COALESCE ( 98, + ( 51 ) + - - 45 + - CAST ( + 24 AS INTEGER ) * + 43 )
----
-2026

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1006
SELECT - 78, - 46 * - + AVG ( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-1006
SELECT - 78, - 46 * - + AVG ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-78
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1007
SELECT 83 AS col0, + COALESCE ( + 81, + - COUNT( * ) ) AS col1
----
83
81

skipif mysql # not compatible
query II rowsort label-1007
SELECT 83 AS col0, + COALESCE ( + 81, + - COUNT ( * ) ) AS col1
----
83
81

query I rowsort
SELECT ALL - 98 + + 99
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1009
SELECT 53 + - 56 DIV COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1009
SELECT 53 + - 56 / COUNT ( * ) AS col1
----
-3

query II rowsort
SELECT DISTINCT + 96 AS col1, 72 + + 35 + 76 AS col2
----
96
183

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1011
SELECT - CAST( NULL AS SIGNED ) + + 32 + - 32 AS col0, + 15 DIV 14 * 57 + - 91 AS col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-1011
SELECT - CAST ( NULL AS INTEGER ) + + 32 + - 32 AS col0, + 15 / 14 * 57 + - 91 AS col0
----
NULL
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT ALL - 1 AS col1, - ( + SUM( - 1 ) ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-1012
SELECT ALL - 1 AS col1, - ( + SUM ( - 1 ) ) AS col2
----
-1
1

query I rowsort
SELECT 42 * 91 + - 72 + + 78
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT - SUM( DISTINCT + 67 ) * + + 92 * COUNT( * ) + - - 21 + - 21 - 63
----
-6227

skipif mysql # not compatible
query I rowsort label-1014
SELECT - SUM ( DISTINCT + 67 ) * + + 92 * COUNT ( * ) + - - 21 + - 21 - 63
----
-6227

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT + - MAX( DISTINCT + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1015
SELECT + - MAX ( DISTINCT + 16 ) AS col2
----
-16

query II rowsort
SELECT ALL - - 41 * - 96 * + 4 AS col2, 54
----
-15744
54

query I rowsort
SELECT DISTINCT - 46 * + 32
----
-1472

onlyif mysql # aggregate syntax: 
query II rowsort label-1018
SELECT + - COUNT( * ) AS col2, + 77 * 44 col0
----
-1
3388

skipif mysql # not compatible
query II rowsort label-1018
SELECT + - COUNT ( * ) AS col2, + 77 * 44 col0
----
-1
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT + SUM( - 42 ) + 14
----
-28

skipif mysql # not compatible
query I rowsort label-1019
SELECT + SUM ( - 42 ) + 14
----
-28

query I rowsort
SELECT ALL + - 29 * - - 9
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1021
SELECT + - CAST( + 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-1021
SELECT + - CAST ( + 79 AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1022
SELECT - COUNT( * ) * - 36 + - - 50 + COUNT( * ) DIV - MAX( ALL 46 )
----
86

skipif mysql # not compatible
query I rowsort label-1022
SELECT - COUNT ( * ) * - 36 + - - 50 + COUNT ( * ) / - MAX ( ALL 46 )
----
86

query I rowsort
SELECT ALL + + 37 * 36 * + + 32 AS col0
----
42624

query II rowsort
SELECT ALL + - 99 col1, + 70 AS col1
----
-99
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1025
SELECT DISTINCT + + NULLIF ( - 84, 39 ), ( + COUNT( * ) ) * + 9 + 54 * 18 AS col1
----
-84
981

skipif mysql # not compatible
query II rowsort label-1025
SELECT DISTINCT + + NULLIF ( - 84, 39 ), ( + COUNT ( * ) ) * + 9 + 54 * 18 AS col1
----
-84
981

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL + MAX( DISTINCT + + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL + MAX ( DISTINCT + + 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT + - CASE + 48 WHEN + 94 + - - 37 THEN NULL ELSE COUNT( * ) END * + 43
----
-43

skipif mysql # not compatible
query I rowsort label-1027
SELECT + - CASE + 48 WHEN + 94 + - - 37 THEN NULL ELSE COUNT ( * ) END * + 43
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-1028
SELECT ALL + 29, ( - CASE 60 WHEN - - NULLIF ( + + MIN( + 16 ), 43 * - 18 * COUNT( * ) ) * + COUNT( * ) THEN NULL WHEN + + SUM( ALL + 80 ) + - + ( MIN( - 30 ) ) THEN 76 * + 90 * COALESCE ( - - COUNT( * ), - + 95 / + + COUNT( * ) / 96 ) END ) AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-1028
SELECT ALL + 29, ( - CASE 60 WHEN - - NULLIF ( + + MIN ( + 16 ), 43 * - 18 * COUNT ( * ) ) * + COUNT ( * ) THEN NULL WHEN + + SUM ( ALL + 80 ) + - + ( MIN ( - 30 ) ) THEN 76 * + 90 * COALESCE ( - - COUNT ( * ), - + 95 / + + COUNT ( * ) / 96 ) END ) AS col2
----
29
NULL

query I rowsort
SELECT - 88 - + - 5
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1030
SELECT - ( 80 ) - + NULLIF ( - 57, + 87 ) DIV + COALESCE ( + 24, - - MIN( DISTINCT - NULLIF ( 62, + 83 ) ), + + 96 - + 58 * - 91 + 64 * NULLIF ( - 9, ( + 27 ) ) * - 33 * + SUM( DISTINCT + - 94 ) DIV - COUNT( * ) - - 24 ), - 27 * + 52 AS col0
----
-78
-1404

skipif mysql # not compatible
query II rowsort label-1030
SELECT - ( 80 ) - + NULLIF ( - 57, + 87 ) / + COALESCE ( + 24, - - MIN ( DISTINCT - NULLIF ( 62, + 83 ) ), + + 96 - + 58 * - 91 + 64 * NULLIF ( - 9, ( + 27 ) ) * - 33 * + SUM ( DISTINCT + - 94 ) / - COUNT ( * ) - - 24 ), - 27 * + 52 AS col0
----
-78
-1404

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1032
SELECT DISTINCT + 86 DIV + 57 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + 86 / + 57 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT + CAST( NULL AS SIGNED ) * COALESCE ( 89, - - CASE - 84 WHEN + + 41 * + 99 / - - 73 / + 22 THEN + 54 / - 0 + - 60 ELSE 65 / + 18 + - - 35 END * 62 * + - 47 / + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT + CAST ( NULL AS INTEGER ) * COALESCE ( 89, - - CASE - 84 WHEN + + 41 * + 99 / - - 73 / + 22 THEN + 54 / - 0 + - 60 ELSE 65 / + 18 + - - 35 END * 62 * + - 47 / + 81 )
----
NULL

query I rowsort
SELECT ALL 40 * - - 37 AS col0
----
1480

query I rowsort
SELECT ALL 99 + - - 64
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT + NULLIF ( + + 40, + - 1 + - 24 ) - + 74 * + 76 + - SUM( DISTINCT - - 45 )
----
-5629

skipif mysql # not compatible
query I rowsort label-1036
SELECT + NULLIF ( + + 40, + - 1 + - 24 ) - + 74 * + 76 + - SUM ( DISTINCT - - 45 )
----
-5629

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1037
SELECT DISTINCT 34 + 30 DIV + COUNT( * ) col0
----
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL 92 + + 36 + + NULLIF ( 48, MIN( + 32 ) / + - 3 ) col0
----
176

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL 92 + + 36 + + NULLIF ( 48, MIN ( + 32 ) / + - 3 ) col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL SUM( + + 78 ) + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL SUM ( + + 78 ) + - COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT + ( - 20 ) + - COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-1040
SELECT + ( - 20 ) + - COUNT ( * ) AS col1
----
-21

query I rowsort
SELECT + ( 40 ) * - - 48
----
1920

query I rowsort
SELECT + 51 + 32 * + - 31
----
-941

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT 80 + SUM( - + 73 )
----
7

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT 80 + SUM ( - + 73 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL + NULLIF ( 37, + - COUNT( * ) * - 62 + + - NULLIF ( + - 82, COUNT( * ) ) ) + - - 8 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL + NULLIF ( 37, + - COUNT ( * ) * - 62 + + - NULLIF ( + - 82, COUNT ( * ) ) ) + - - 8 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT + ( COUNT( * ) ) * - 58 * - 9 AS col1
----
522

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + ( COUNT ( * ) ) * - 58 * - 9 AS col1
----
522

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

skipif mysql # not compatible
query I rowsort label-1046
SELECT + COUNT ( 36 ) + - 46 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL + + COUNT( * ) * 8 * - + 75 + 86 * + NULLIF ( 67, + + COALESCE ( - 64, ( - 25 ) - + 63 ) ) col2
----
5162

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + + COUNT ( * ) * 8 * - + 75 + 86 * + NULLIF ( 67, + + COALESCE ( - 64, ( - 25 ) - + 63 ) ) col2
----
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL 81 - - 98 + 62 + COUNT( ALL - - ( + + 4 ) ) AS col0
----
242

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL 81 - - 98 + 62 + COUNT ( ALL - - ( + + 4 ) ) AS col0
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT + + COUNT( 74 ) + - 48 + - 72 * - 60 AS col0
----
4273

skipif mysql # not compatible
query I rowsort label-1049
SELECT + + COUNT ( 74 ) + - 48 + - 72 * - 60 AS col0
----
4273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1050
SELECT + + COUNT( * ) * MIN( ALL 2 ) - - COUNT( * ) AS col2, CASE + CASE + + COALESCE ( + 68, + 83 / - 29 * + 64 + 60 * + CAST( - 93 AS SIGNED ), - 12 ) WHEN 32 + - + ( - COUNT( * ) ) + - COUNT( * ) * + - 72 THEN NULL ELSE 87 END WHEN CASE - + 90 WHEN - 9 + - + 7 THEN + 73 WHEN 16 THEN - 80 / 44 END THEN 21 + - SUM( ALL + 92 ) + + - ( + 46 ) + + 48 * - 29 ELSE NULL END
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1050
SELECT + + COUNT ( * ) * MIN ( ALL 2 ) - - COUNT ( * ) AS col2, CASE + CASE + + COALESCE ( + 68, + 83 / - 29 * + 64 + 60 * + CAST ( - 93 AS INTEGER ), - 12 ) WHEN 32 + - + ( - COUNT ( * ) ) + - COUNT ( * ) * + - 72 THEN NULL ELSE 87 END WHEN CASE - + 90 WHEN - 9 + - + 7 THEN + 73 WHEN 16 THEN - 80 / 44 END THEN 21 + - SUM ( ALL + 92 ) + + - ( + 46 ) + + 48 * - 29 ELSE NULL END
----
3
NULL

query I rowsort
SELECT - + 22 * 86 AS col0
----
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT + - ( - - 12 ) + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-1052
SELECT + - ( - - 12 ) + COUNT ( * )
----
-11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1054
SELECT DISTINCT - + 88 DIV 55 + 15 - 65 - + 56 * - - 55 + + + 98 AS col0
----
-3033

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - + 88 / 55 + 15 - 65 - + 56 * - - 55 + + + 98 AS col0
----
-3033

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT 45 * 43 - + 86 DIV - + 70 AS col2
----
1936

skipif mysql # not compatible
query I rowsort label-1055
SELECT 45 * 43 - + 86 / - + 70 AS col2
----
1936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1056
SELECT DISTINCT + + CAST( + 82 AS SIGNED ) col2
----
82

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + + CAST ( + 82 AS INTEGER ) col2
----
82

query I rowsort
SELECT - - 95 + - 26 AS col0
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-1058
SELECT ALL - 90 DIV - 84, - 8 AS col1
----
1
-8

skipif mysql # not compatible
query II rowsort label-1058
SELECT ALL - 90 / - 84, - 8 AS col1
----
1
-8

query I rowsort
SELECT + + 26 * + - 34 AS col0
----
-884

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT + 26 * - - CAST ( NULL AS REAL ) + - + 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT - - 46 DIV - - 64 * + ( 68 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1061
SELECT - - 46 / - - 64 * + ( 68 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1062
SELECT ALL 47 * - COUNT( DISTINCT 85 ) + - 39 AS col2, COUNT( * ) * + - 24 AS col1
----
-86
-24

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL 47 * - COUNT ( DISTINCT 85 ) + - 39 AS col2, COUNT ( * ) * + - 24 AS col1
----
-86
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT 72 * 87 - 40 * COUNT( * ) AS col1
----
6224

skipif mysql # not compatible
query I rowsort label-1063
SELECT 72 * 87 - 40 * COUNT ( * ) AS col1
----
6224

query I rowsort
SELECT ALL + 82 * + + 91 * - - 80 col2
----
596960

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - ( 18 ) + + ( MIN( DISTINCT - - 10 ) ) + - - SUM( NULLIF ( + 54, 59 * 84 / - 80 * 54 ) )
----
46

skipif mysql # not compatible
query I rowsort label-1065
SELECT - ( 18 ) + + ( MIN ( DISTINCT - - 10 ) ) + - - SUM ( NULLIF ( + 54, 59 * 84 / - 80 * 54 ) )
----
46

query I rowsort
SELECT ALL + 73 * ( ( - 88 ) )
----
-6424

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1067
SELECT COALESCE ( - 1, - 6 DIV + 63 * + 77 * - CAST( NULL AS SIGNED ) + + 34 DIV - ( - 21 ) * + 47 * + 38 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1067
SELECT COALESCE ( - 1, - 6 / + 63 * + 77 * - CAST ( NULL AS INTEGER ) + + 34 / - ( - 21 ) * + 47 * + 38 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1068
SELECT ALL - 83 * + - 93 * - 64 * + 29 + + NULLIF ( + + 83, + + 49 ) DIV 62
----
-14326463

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - 83 * + - 93 * - 64 * + 29 + + NULLIF ( + + 83, + + 49 ) / 62
----
-14326463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1069
SELECT MIN( ALL 37 ) * + COUNT( * ) + + - CAST( NULL AS SIGNED ) * - 38 / NULLIF ( + ( + + 48 ), - 54 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT MIN ( ALL 37 ) * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - 38 / NULLIF ( + ( + + 48 ), - 54 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1070
SELECT ALL - 16 * + + ( + + CAST( NULL AS SIGNED ) ) * + 44 + + 75 + + - 36 + + CAST( COUNT( * ) AS SIGNED ) + - 19 + 21 * 47 * - 81 - + - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL - 16 * + + ( + + CAST ( NULL AS INTEGER ) ) * + 44 + + 75 + + - 36 + + CAST ( COUNT ( * ) AS INTEGER ) + - 19 + 21 * 47 * - 81 - + - 70
----
NULL

query I rowsort
SELECT DISTINCT 95 * - 68 + 60 AS col0
----
-6400

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT + 52 col1, - COUNT( + 78 ) + + + 90
----
52
89

skipif mysql # not compatible
query II rowsort label-1072
SELECT + 52 col1, - COUNT ( + 78 ) + + + 90
----
52
89

query I rowsort
SELECT ALL 70 * 98 + + 86 * - - 22 * + 17
----
39024

query I rowsort
SELECT CASE - + 49 WHEN + - 65 / - 50 * + + ( - 40 ) + 2 * 62 * + - 2 THEN + 27 + - 27 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1075
SELECT + 63 + - - COALESCE ( + - 36, - COALESCE ( + - 22, - SUM( + - 22 ) * + 91, + - CAST( - ( - - 47 ) AS SIGNED ) ) ) + - - 29 * - 23 AS col1
----
-640

skipif mysql # not compatible
query I rowsort label-1075
SELECT + 63 + - - COALESCE ( + - 36, - COALESCE ( + - 22, - SUM ( + - 22 ) * + 91, + - CAST ( - ( - - 47 ) AS INTEGER ) ) ) + - - 29 * - 23 AS col1
----
-640

query I rowsort
SELECT - 92 + - 27
----
-119

query I rowsort
SELECT + 57 + 29 AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1078
SELECT DISTINCT 21 * 54 * - 59 AS col0, + 80 - 80 * + ( COALESCE ( - 4, - + 79, - 88 * 16 + - + 47 ) ) * + 52 + + 77 * + - COUNT( * )
----
-66906
16643

skipif mysql # not compatible
query II rowsort label-1078
SELECT DISTINCT 21 * 54 * - 59 AS col0, + 80 - 80 * + ( COALESCE ( - 4, - + 79, - 88 * 16 + - + 47 ) ) * + 52 + + 77 * + - COUNT ( * )
----
-66906
16643

onlyif mysql # DIV for integer division: 
query I rowsort label-1079
SELECT - 27 DIV - + 70 * + + 85
----
0

skipif mysql # not compatible
query I rowsort label-1079
SELECT - 27 / - + 70 * + + 85
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1080
SELECT ALL - 90 * 31 + - 53 + + + 5 * - 31 * - + COUNT( * ) AS col1, - 95 AS col0
----
-2688
-95

skipif mysql # not compatible
query II rowsort label-1080
SELECT ALL - 90 * 31 + - 53 + + + 5 * - 31 * - + COUNT ( * ) AS col1, - 95 AS col0
----
-2688
-95

query I rowsort
SELECT + 45 * - ( 98 ) * - 51
----
224910

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT ALL - 38 DIV - 4
----
9

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL - 38 / - 4
----
9

query I rowsort
SELECT ALL - 40 * + 66 - - 80 AS col0
----
-2560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1084
SELECT + 38 + - 4 + - + 92 + + - 19 - - 72 * + AVG ( DISTINCT 66 ) * + 32 * + 12 * - 24 * 66 * CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT + 38 + - 4 + - + 92 + + - 19 - - 72 * + AVG ( DISTINCT 66 ) * + 32 * + 12 * - 24 * 66 * CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT + 14 + - COALESCE ( 54, - 83 ) * 86 AS col0
----
-4630

query I rowsort
SELECT ALL ( - 29 ) - + 30 * 31
----
-959

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT + 61 - NULLIF ( + COUNT( * ), 79 / - 82 + - 8 ) * 87
----
-26

skipif mysql # not compatible
query I rowsort label-1087
SELECT + 61 - NULLIF ( + COUNT ( * ), 79 / - 82 + - 8 ) * 87
----
-26

query I rowsort
SELECT + 67 * 75
----
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1089
SELECT ALL SUM( ( 36 ) ) DIV + 63 col0
----
0

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL SUM ( ( 36 ) ) / + 63 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1090
SELECT + ( CAST( 99 AS SIGNED ) ) * 29 AS col1
----
2871

skipif mysql # not compatible
query I rowsort label-1090
SELECT + ( CAST ( 99 AS INTEGER ) ) * 29 AS col1
----
2871

query I rowsort
SELECT 58 * 9
----
522

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

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

query I rowsort
SELECT 65 + - 99 AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1094
SELECT CASE WHEN NOT NULL > 46 THEN - 60 WHEN - 9 NOT BETWEEN + 67 AND NULL THEN + 43 DIV - ( 55 ) + + 67 * - NULLIF ( - 10 * + 54, COUNT( * ) ) END - - COUNT( * ) * 50 AS col2
----
36230

skipif mysql # not compatible
query I rowsort label-1094
SELECT CASE WHEN NOT NULL > 46 THEN - 60 WHEN - 9 NOT BETWEEN + 67 AND NULL THEN + 43 / - ( 55 ) + + 67 * - NULLIF ( - 10 * + 54, COUNT ( * ) ) END - - COUNT ( * ) * 50 AS col2
----
36230

query I rowsort
SELECT ALL 65 * + 95 AS col2
----
6175

query I rowsort
SELECT 48 * - 79 AS col0
----
-3792

query I rowsort
SELECT ALL 59 + 69
----
128

query I rowsort
SELECT DISTINCT 18 + 58 * - 38 AS col1
----
-2186

query I rowsort
SELECT 74 * 66
----
4884

query I rowsort
SELECT ALL - 41 + + 37 * - 59
----
-2224

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT - NULLIF ( 52, - 77 / 60 + + COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT - NULLIF ( 52, - 77 / 60 + + COUNT ( * ) )
----
-52

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1103
SELECT DISTINCT - NULLIF ( + 19, + 70 + - CAST( 75 AS SIGNED ) * - 27 ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT - NULLIF ( + 19, + 70 + - CAST ( 75 AS INTEGER ) * - 27 ) / - 87
----
0

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

query I rowsort
SELECT ALL - 14 + 20 * 53
----
1046

query I rowsort
SELECT 99 * ( 73 )
----
7227

query I rowsort
SELECT ALL 17 + 86 * + 75 AS col2
----
6467

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT DISTINCT - 23 DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT - 23 / + 84 AS col2
----
0

query I rowsort
SELECT 25 * - 48 AS col1
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT 34 * + COUNT( ALL 23 )
----
34

skipif mysql # not compatible
query I rowsort label-1110
SELECT 34 * + COUNT ( ALL 23 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT - 28 * COUNT( * ) + - 9 * - 94 AS col2
----
818

skipif mysql # not compatible
query I rowsort label-1111
SELECT - 28 * COUNT ( * ) + - 9 * - 94 AS col2
----
818

onlyif mysql # aggregate syntax: 
query I rowsort label-1112
SELECT ALL + MIN( + 56 ) - 74 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + MIN ( + 56 ) - 74 AS col0
----
-18

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

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - 52 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT 24 - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-1114
SELECT 24 - - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT DISTINCT - COUNT( * ) * 32 col0
----
-32

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT - COUNT ( * ) * 32 col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT 43 + + COUNT( * ) * + 40
----
83

skipif mysql # not compatible
query I rowsort label-1116
SELECT 43 + + COUNT ( * ) * + 40
----
83

query I rowsort
SELECT 14 * + 53
----
742

query I rowsort
SELECT 49 * - 97 AS col1
----
-4753

query I rowsort
SELECT 0 + + 66
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT DISTINCT - 16 DIV - 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - 16 / - 21 AS col2
----
0

query I rowsort
SELECT - 46 + - 98
----
-144

query I rowsort
SELECT 89 - - 81 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT MIN( ALL + 4 ) * 40
----
160

skipif mysql # not compatible
query I rowsort label-1123
SELECT MIN ( ALL + 4 ) * 40
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT DISTINCT + ( 99 ) * COALESCE ( COALESCE ( 26, COUNT( * ) * 52 + + 7 ) + COUNT( * ), + MIN( 48 ) ) col1
----
2673

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT + ( 99 ) * COALESCE ( COALESCE ( 26, COUNT ( * ) * 52 + + 7 ) + COUNT ( * ), + MIN ( 48 ) ) col1
----
2673

query I rowsort
SELECT - NULLIF ( 68, + 57 + 98 * + 42 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT DISTINCT - COUNT( 99 ) * 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT - COUNT ( 99 ) * 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL MIN( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL MIN ( - 69 )
----
-69

query I rowsort
SELECT 99 * - 80
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT ALL 88 + 36 * + MAX( ALL 1 * 99 + 17 ) AS col1
----
4264

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL 88 + 36 * + MAX ( ALL 1 * 99 + 17 ) AS col1
----
4264

query I rowsort
SELECT 79 + + 97 * ( 64 ) AS col0
----
6287

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

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

query I rowsort
SELECT ALL + 82 + 66 AS col0
----
148

query I rowsort
SELECT + + 75 * + 46 + 21 AS col0
----
3471

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

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

query I rowsort
SELECT ALL - + NULLIF ( + 89, 48 - 76 * + AVG ( DISTINCT - 51 ) )
----
-89

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

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

query I rowsort
SELECT DISTINCT + 75 * + 73 + 78
----
5553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1138
SELECT ALL - CAST( NULL AS SIGNED ) * + 55 + CAST( NULL AS SIGNED ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL - CAST ( NULL AS INTEGER ) * + 55 + CAST ( NULL AS INTEGER ) * + 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT + 6 DIV + - 73 * - 91 + + 23 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-1139
SELECT + 6 / + - 73 * - 91 + + 23 / - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL 19 * - NULLIF ( 66, 55 ) + - COUNT( * ) AS col1
----
-1255

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL 19 * - NULLIF ( 66, 55 ) + - COUNT ( * ) AS col1
----
-1255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1141
SELECT CAST( NULL AS SIGNED ) * ( COUNT( * ) ) * 36 + - NULLIF ( 80 + - 38, COUNT( ALL + ( - 15 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1141
SELECT CAST ( NULL AS INTEGER ) * ( COUNT ( * ) ) * 36 + - NULLIF ( 80 + - 38, COUNT ( ALL + ( - 15 ) ) ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT MIN ( - 58 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1143
SELECT + COUNT( * ) * + - CASE - 17 WHEN 17 * + CAST( NULL AS SIGNED ) THEN 99 - - 70 WHEN - ( - MIN( ALL + 84 ) ) + - ( + ( 93 ) ) THEN NULL WHEN + 43 * 16 THEN NULL END * - 67 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-1143
SELECT + COUNT ( * ) * + - CASE - 17 WHEN 17 * + CAST ( NULL AS INTEGER ) THEN 99 - - 70 WHEN - ( - MIN ( ALL + 84 ) ) + - ( + ( 93 ) ) THEN NULL WHEN + 43 * 16 THEN NULL END * - 67 + - 78
----
NULL

query I rowsort
SELECT - 62 * - 84 + 58 * + 74 AS col0
----
9500

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT DISTINCT 75 * 0 DIV + 1
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT 75 * 0 / + 1
----
0

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

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - COUNT ( * ) - + - 62 AS col1
----
61

query I rowsort
SELECT DISTINCT 68 - + 40
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1148
SELECT ALL + MAX( ALL - + 53 ) DIV - 8
----
6

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + MAX ( ALL - + 53 ) / - 8
----
6

query I rowsort
SELECT ALL 3 - 55
----
-52

query I rowsort
SELECT 43 + CASE ( 21 ) WHEN 17 * + 24 + - 76 THEN 44 ELSE - 1 END
----
42

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1152
SELECT 49 * - + 97 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT 49 * - + 97 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 75, + 8 * 90 )
----
75

query I rowsort
SELECT 59 * - 54 AS col1
----
-3186

query I rowsort
SELECT + 79 + + 20 - - 41 * 79
----
3338

query I rowsort
SELECT DISTINCT - + ( - 94 ) * + 25
----
2350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1157
SELECT ALL + 29 * CAST( 24 AS SIGNED )
----
696

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL + 29 * CAST ( 24 AS INTEGER )
----
696

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT - - 24 DIV + - 84 + + 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1158
SELECT - - 24 / + - 84 + + 83 AS col1
----
83

query I rowsort
SELECT ALL - 18 * + 29
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT ALL - - NULLIF ( + ( 2 ), - 1 - + SUM( DISTINCT + 55 ) ) * MIN( DISTINCT + 11 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL - - NULLIF ( + ( 2 ), - 1 - + SUM ( DISTINCT + 55 ) ) * MIN ( DISTINCT + 11 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT - + NULLIF ( SUM( ALL 22 ), COALESCE ( - COALESCE ( - 14, + 4 ), + 70 * ( 37 ) ) * COALESCE ( + NULLIF ( - COUNT( * ), + ( - 41 ) ) - - 87 * 93, + AVG ( 27 ), + 79 ) ) * + 29 AS col1
----
-638

skipif mysql # not compatible
query I rowsort label-1161
SELECT - + NULLIF ( SUM ( ALL 22 ), COALESCE ( - COALESCE ( - 14, + 4 ), + 70 * ( 37 ) ) * COALESCE ( + NULLIF ( - COUNT ( * ), + ( - 41 ) ) - - 87 * 93, + AVG ( 27 ), + 79 ) ) * + 29 AS col1
----
-638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT DISTINCT + CAST( - 42 AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT + CAST ( - 42 AS INTEGER ) AS col2
----
-42

query I rowsort
SELECT DISTINCT - 27 * - + 32 * 59 + 92
----
51068

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1164
SELECT - MIN( DISTINCT + 3 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1164
SELECT - MIN ( DISTINCT + 3 ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT + ( - MIN( + 17 ) ) * 24 AS col2
----
-408

skipif mysql # not compatible
query I rowsort label-1165
SELECT + ( - MIN ( + 17 ) ) * 24 AS col2
----
-408

query I rowsort
SELECT - 89 + - - 29 AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT ( CAST( + 1 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1167
SELECT ( CAST ( + 1 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT ALL - - 15 + ( + MAX( - ( 30 ) ) ) DIV 8 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL - - 15 + ( + MAX ( - ( 30 ) ) ) / 8 AS col1
----
12

query I rowsort
SELECT + CASE + AVG ( 51 ) WHEN AVG ( DISTINCT 49 ) * - 22 + - 2 THEN - 18 * - 93 END
----
NULL

query I rowsort
SELECT + NULLIF ( + 44, 83 / + 17 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-1171
SELECT + - 16 + - COALESCE ( - 9, + 92, + 78 DIV 98 + 23 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1171
SELECT + - 16 + - COALESCE ( - 9, + 92, + 78 / 98 + 23 ) AS col0
----
-7

query I rowsort
SELECT DISTINCT + + 2 + + + CASE + 53 WHEN 12 - 33 THEN 98 / - 9 + 65 ELSE NULL END + + 82 AS col1
----
NULL

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

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

query I rowsort
SELECT ALL - 78 * + NULLIF ( 74, - 89 ) - 31
----
-5803

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

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL COUNT ( * ) + 83 + 62 * - 28
----
-1652

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT - 92 * - 98 * COUNT( * ) AS col0
----
9016

skipif mysql # not compatible
query I rowsort label-1176
SELECT - 92 * - 98 * COUNT ( * ) AS col0
----
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT DISTINCT + + COUNT( * ) * - 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT + + COUNT ( * ) * - 83 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT - 28 + 84 + ( + 44 ) * - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT - 28 + 84 + ( + 44 ) * - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT ALL + COUNT( * ) * - SUM( DISTINCT + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL + COUNT ( * ) * - SUM ( DISTINCT + 79 )
----
-79

query I rowsort
SELECT DISTINCT - 69 * + 85 * + 59 * 52 col0
----
-17993820

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT - ( + + COUNT( * ) ) * + 20 * 43
----
-860

skipif mysql # not compatible
query I rowsort label-1181
SELECT - ( + + COUNT ( * ) ) * + 20 * 43
----
-860

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ( - NULLIF ( - - COUNT( * ), - 45 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1182
SELECT ( - NULLIF ( - - COUNT ( * ), - 45 ) ) AS col1
----
-1

query I rowsort
SELECT + NULLIF ( - 75, 31 ) AS col0
----
-75

query I rowsort
SELECT + 40 * + 80
----
3200

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

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

query I rowsort
SELECT ALL + NULLIF ( + 89, 7 )
----
89

query I rowsort
SELECT + 45 * - 21
----
-945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1188
SELECT - 10 * + + COUNT( * ) DIV 77 * 3
----
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT - 10 * + + COUNT ( * ) / 77 * 3
----
0

query I rowsort
SELECT + 15 * 6 * 96 * - 59 AS col1
----
-509760

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT DISTINCT NULLIF ( 63, - ( - 59 ) + 67 * 46 ) * COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT NULLIF ( 63, - ( - 59 ) + 67 * 46 ) * COUNT ( * ) AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1191
SELECT ALL ( 3 ) * - CASE 23 WHEN 46 / 11 + - 37 THEN NULL ELSE + 97 - CASE CAST( - ( + COUNT( * ) ) AS SIGNED ) WHEN 92 * + SUM( DISTINCT 15 ) THEN 11 WHEN - 21 - + 34 * - 32 THEN 93 END END / 23 - + 53 * 21 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL ( 3 ) * - CASE 23 WHEN 46 / 11 + - 37 THEN NULL ELSE + 97 - CASE CAST ( - ( + COUNT ( * ) ) AS INTEGER ) WHEN 92 * + SUM ( DISTINCT 15 ) THEN 11 WHEN - 21 - + 34 * - 32 THEN 93 END END / 23 - + 53 * 21 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1192
SELECT + 62 + - COUNT( * ) * - + COALESCE ( - COALESCE ( 67, COUNT( * ), 42 + + COUNT( * ), - 40 * - COUNT( * ) ), CAST( NULL AS SIGNED ), + 67 ) + 14 * + 80 AS col1
----
1115

skipif mysql # not compatible
query I rowsort label-1192
SELECT + 62 + - COUNT ( * ) * - + COALESCE ( - COALESCE ( 67, COUNT ( * ), 42 + + COUNT ( * ), - 40 * - COUNT ( * ) ), CAST ( NULL AS INTEGER ), + 67 ) + 14 * + 80 AS col1
----
1115

query I rowsort
SELECT + 79 * 55 AS col1
----
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT 89 * - - 92 * - 39 * - MIN( 41 ) + - 67
----
13092545

skipif mysql # not compatible
query I rowsort label-1194
SELECT 89 * - - 92 * - 39 * - MIN ( 41 ) + - 67
----
13092545

query I rowsort
SELECT NULLIF ( - 99, - 4 ) col0
----
-99

query II rowsort
SELECT ALL + 4 AS col1, 89 + 80 AS col1
----
4
169

query I rowsort
SELECT + NULLIF ( - 65, - - 18 - - 69 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1198
SELECT ALL + 75 AS col2, CAST( NULL AS SIGNED )
----
75
NULL

skipif mysql # not compatible
query II rowsort label-1198
SELECT ALL + 75 AS col2, CAST ( NULL AS INTEGER )
----
75
NULL

query II rowsort
SELECT + 27 AS col2, + 34 * 47 + - 40
----
27
1558

query I rowsort
SELECT ALL + 40 * - - 76 + - - 75 AS col0
----
3115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT + 51 - + - CAST( NULL AS SIGNED ) - 48 * 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT + 51 - + - CAST ( NULL AS INTEGER ) - 48 * 30 AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1203
SELECT - + ( + + CAST( NULL AS SIGNED ) ) / - + NULLIF ( 4, 90 ) + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT - + ( + + CAST ( NULL AS INTEGER ) ) / - + NULLIF ( 4, 90 ) + + 13
----
NULL

query I rowsort
SELECT ALL 63 * - 4 * - + 78 + - 62 AS col1
----
19594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1205
SELECT ALL - CASE + 65 WHEN - 56 + - 12 THEN NULL WHEN + CAST( - 63 AS SIGNED ) THEN NULL WHEN 48 THEN 40 END + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL - CASE + 65 WHEN - 56 + - 12 THEN NULL WHEN + CAST ( - 63 AS INTEGER ) THEN NULL WHEN 48 THEN 40 END + - 65
----
NULL

query I rowsort
SELECT - + CASE + + 19 WHEN - 92 THEN 94 / 23 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1207
SELECT + COALESCE ( + + CASE - 39 WHEN 77 THEN NULL WHEN ( - 21 ) * 39 + 41 THEN NULL ELSE 59 END, 21 * COUNT( * ) + 67 ) DIV 27
----
2

skipif mysql # not compatible
query I rowsort label-1207
SELECT + COALESCE ( + + CASE - 39 WHEN 77 THEN NULL WHEN ( - 21 ) * 39 + 41 THEN NULL ELSE 59 END, 21 * COUNT ( * ) + 67 ) / 27
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT - 10 DIV COALESCE ( + - 39, 35, 32 )
----
0

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 10 / COALESCE ( + - 39, 35, 32 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL + CASE + 75 WHEN + 74 * + 36 THEN NULL ELSE MIN( + 67 ) END * - NULLIF ( 60, + 9 ) AS col0
----
-4020

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + CASE + 75 WHEN + 74 * + 36 THEN NULL ELSE MIN ( + 67 ) END * - NULLIF ( 60, + 9 ) AS col0
----
-4020

query II rowsort
SELECT - 34, - 95 AS col0
----
-34
-95

query I rowsort
SELECT ALL + 13 + + 89
----
102

query I rowsort
SELECT ALL - 90 + 94 + 19 * 94 AS col2
----
1790

query II rowsort
SELECT - 18 col2, + 88 * - 77 AS col2
----
-18
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT - 79 + - MAX( ALL - + 94 ) - 74 col2
----
-59

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - 79 + - MAX ( ALL - + 94 ) - 74 col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1215
SELECT ALL 50 * - CAST( - 97 AS SIGNED ) col1
----
4850

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 50 * - CAST ( - 97 AS INTEGER ) col1
----
4850

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - CASE - ( 31 ) WHEN - ( - 17 ) * - 66 + + 98 THEN + CASE + COUNT( * ) WHEN 52 THEN 68 * 98 WHEN + COUNT( * ) + COUNT( * ) * 93 THEN NULL ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT - CASE - ( 31 ) WHEN - ( - 17 ) * - 66 + + 98 THEN + CASE + COUNT ( * ) WHEN 52 THEN 68 * 98 WHEN + COUNT ( * ) + COUNT ( * ) * 93 THEN NULL ELSE NULL END ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT 13, 84 AS col0
----
13
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT - CAST( + 36 AS SIGNED ) + - 13 + + 55 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1218
SELECT - CAST ( + 36 AS INTEGER ) + - 13 + + 55 AS col1
----
6

query I rowsort
SELECT - 82 - - 37
----
-45

query II rowsort
SELECT DISTINCT ( 35 ), 40 * + ( + 88 ) AS col1
----
35
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT - NULLIF ( + 93, + 11 * - - 48 + + COUNT( * ) ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1221
SELECT - NULLIF ( + 93, + 11 * - - 48 + + COUNT ( * ) ) AS col2
----
-93

query I rowsort
SELECT ALL + 92 * + + 41 AS col0
----
3772

query I rowsort
SELECT - 28 + - + 25
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT ALL + NULLIF ( - COALESCE ( + CASE 52 WHEN 27 DIV 52 THEN 68 DIV + 48 WHEN 58 THEN + 76 END, + 69 * + 89 ), 83 DIV - 79 ) AS col1
----
-6141

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL + NULLIF ( - COALESCE ( + CASE 52 WHEN 27 / 52 THEN 68 / + 48 WHEN 58 THEN + 76 END, + 69 * + 89 ), 83 / - 79 ) AS col1
----
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT DISTINCT ( - - COUNT( * ) ) / + 10 - NULLIF ( 1, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT ( - - COUNT ( * ) ) / + 10 - NULLIF ( 1, + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1226
SELECT DISTINCT + CASE + COUNT( * ) WHEN - 69 * ( 36 ) THEN - CAST( NULL AS SIGNED ) WHEN + 26 / - SUM( DISTINCT 70 * 60 ) THEN + 37 * - 21 WHEN + 44 THEN - ( 74 ) * COUNT( * ) END * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - 69 * ( 36 ) THEN - CAST ( NULL AS INTEGER ) WHEN + 26 / - SUM ( DISTINCT 70 * 60 ) THEN + 37 * - 21 WHEN + 44 THEN - ( 74 ) * COUNT ( * ) END * + 69
----
NULL

query I rowsort
SELECT - 53 * + 96 + + 39 * 83
----
-1851

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT ALL + MAX( - NULLIF ( - 63, - 22 - - CASE - 9 WHEN + 72 THEN + 60 ELSE NULL END ) )
----
63

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL + MAX ( - NULLIF ( - 63, - 22 - - CASE - 9 WHEN + 72 THEN + 60 ELSE NULL END ) )
----
63

query I rowsort
SELECT ALL - CASE + - ( - + 1 ) WHEN - 66 THEN NULL ELSE - 76 + - 2 END * - 41 AS col2
----
-3198

query I rowsort
SELECT - 98 + - 48 AS col2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT - 10 DIV 8
----
-1

skipif mysql # not compatible
query I rowsort label-1231
SELECT - 10 / 8
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1232
SELECT ALL + ( - 22 ) * CAST( + 5 AS SIGNED ) AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL + ( - 22 ) * CAST ( + 5 AS INTEGER ) AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT + MIN( + + CASE - - 10 WHEN - 49 * - 60 THEN ( - 50 ) WHEN 69 THEN NULL ELSE NULL END ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT + MIN ( + + CASE - - 10 WHEN - 49 * - 60 THEN ( - 50 ) WHEN 69 THEN NULL ELSE NULL END ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT 93 * - COUNT( * ) * 88 + - 94 * - 69
----
-1698

skipif mysql # not compatible
query I rowsort label-1234
SELECT 93 * - COUNT ( * ) * 88 + - 94 * - 69
----
-1698

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT 20 DIV - 37 + - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1235
SELECT 20 / - 37 + - 40 AS col2
----
-40

query I rowsort
SELECT ALL - 57 + 60
----
3

query I rowsort
SELECT ALL 66 + + ( - NULLIF ( + + 11, 51 ) ) + + 42
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + - 28 * + COUNT( * ) + 4
----
-24

skipif mysql # not compatible
query I rowsort label-1238
SELECT + - 28 * + COUNT ( * ) + 4
----
-24

query I rowsort
SELECT DISTINCT - - 73 + + 81 AS col2
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT + 49 + 27 + - CASE 88 WHEN - 58 * COUNT( * ) + - COUNT( * ) * 15 THEN + 80 ELSE NULL END * 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1240
SELECT + 49 + 27 + - CASE 88 WHEN - 58 * COUNT ( * ) + - COUNT ( * ) * 15 THEN + 80 ELSE NULL END * 95 AS col2
----
NULL

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

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

query I rowsort
SELECT + COALESCE ( + 22, + + 94 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT 28 + - MIN( - 35 )
----
63

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT 28 + - MIN ( - 35 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT + - CASE 94 WHEN - - 81 * 85 + ( MAX( 5 ) ) THEN + 77 ELSE 82 END
----
-82

skipif mysql # not compatible
query I rowsort label-1244
SELECT + - CASE 94 WHEN - - 81 * 85 + ( MAX ( 5 ) ) THEN + 77 ELSE 82 END
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT + NULLIF ( COUNT( ALL 78 ), + 97 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1245
SELECT + NULLIF ( COUNT ( ALL 78 ), + 97 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT + 40 * - 13 * COUNT( * ) + - 99 - 51 col1
----
-670

skipif mysql # not compatible
query I rowsort label-1246
SELECT + 40 * - 13 * COUNT ( * ) + - 99 - 51 col1
----
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT - SUM( - 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1247
SELECT - SUM ( - 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT DISTINCT - 83 * 70 - - - ( COUNT( DISTINCT 19 ) ) + - 72 AS col1
----
-5883

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - 83 * 70 - - - ( COUNT ( DISTINCT 19 ) ) + - 72 AS col1
----
-5883

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1249
SELECT ALL 95 - - 66 * + 34 * - CAST( 23 AS DECIMAL ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL 95 - - 66 * + 34 * - CAST ( 23 AS REAL ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT + ( ( + - SUM( DISTINCT 82 ) ) ) * 73 AS col1
----
-5986

skipif mysql # not compatible
query I rowsort label-1250
SELECT + ( ( + - SUM ( DISTINCT 82 ) ) ) * 73 AS col1
----
-5986

query I rowsort
SELECT ALL - 1 - - 43 + - 50 - + 57 * 53 AS col2
----
-3029

query I rowsort
SELECT 92 * 31 - 93
----
2759

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1253
SELECT 23 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT 23 + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1254
SELECT DISTINCT + CASE 41 WHEN - - 26 THEN NULL WHEN + COALESCE ( CAST( NULL AS SIGNED ), 2 ) * + COUNT( * ) THEN NULLIF ( 29, 20 * + 14 ) - CAST( NULL AS SIGNED ) END * ( - 98 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + CASE 41 WHEN - - 26 THEN NULL WHEN + COALESCE ( CAST ( NULL AS INTEGER ), 2 ) * + COUNT ( * ) THEN NULLIF ( 29, 20 * + 14 ) - CAST ( NULL AS INTEGER ) END * ( - 98 ) AS col1
----
NULL

query II rowsort
SELECT ALL 81 AS col0, - 84 + + + 66 * + + 46 + - 58 AS col2
----
81
2894

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

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

query I rowsort
SELECT DISTINCT 52 * + + 56
----
2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1258
SELECT 43 * - + CASE - 63 WHEN + 29 THEN NULL WHEN + - 85 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT 43 * - + CASE - 63 WHEN + 29 THEN NULL WHEN + - 85 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT 14 - 88 + 1 + + 69 * 0 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1260
SELECT 28 AS col1, + 49 * - 93 * CAST( NULL AS SIGNED )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-1260
SELECT 28 AS col1, + 49 * - 93 * CAST ( NULL AS INTEGER )
----
28
NULL

query I rowsort
SELECT 33 * - 34
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL 45 + - 32 * - - SUM( DISTINCT - - 75 )
----
-2355

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL 45 + - 32 * - - SUM ( DISTINCT - - 75 )
----
-2355

query I rowsort
SELECT DISTINCT - 44 + + 71
----
27

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

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

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

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

query I rowsort
SELECT 59 * 42 * - 19 AS col2
----
-47082

query I rowsort
SELECT ALL - 17 * + ( + + 19 )
----
-323

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

skipif mysql # not compatible
query I rowsort label-1268
SELECT + COUNT ( * ) / 20
----
0

query I rowsort
SELECT ALL - 6 + - 25
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT - 86 + + COUNT( * ) - 70 AS col2
----
-155

skipif mysql # not compatible
query I rowsort label-1270
SELECT - 86 + + COUNT ( * ) - 70 AS col2
----
-155

query I rowsort
SELECT ALL - - NULLIF ( + 15, ( + 76 ) ) AS col0
----
15

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT DISTINCT + 24 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT + 24 / - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL + MAX( - 83 ) - 96 * 70
----
-6803

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL + MAX ( - 83 ) - 96 * 70
----
-6803

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT + ( + COALESCE ( COUNT( * ), - 64 * - 5 + - ( - 26 ) * 76 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1275
SELECT + ( + COALESCE ( COUNT ( * ), - 64 * - 5 + - ( - 26 ) * 76 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1276
SELECT ALL - + 5 AS col1, + 65 + + - CASE - 7 WHEN + + 18 - ( + MAX( ALL - ( 30 ) ) ) THEN + 38 * 40 + - COUNT( * ) WHEN - 47 + 83 THEN - 21 + + COUNT( * ) * ( - 44 ) ELSE 81 - 65 END + + 95 * 39
----
-5
3754

skipif mysql # not compatible
query II rowsort label-1276
SELECT ALL - + 5 AS col1, + 65 + + - CASE - 7 WHEN + + 18 - ( + MAX ( ALL - ( 30 ) ) ) THEN + 38 * 40 + - COUNT ( * ) WHEN - 47 + 83 THEN - 21 + + COUNT ( * ) * ( - 44 ) ELSE 81 - 65 END + + 95 * 39
----
-5
3754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT COUNT( * ) - - 78 * 42 * - CAST( - + 41 AS SIGNED ) * + COALESCE ( + 69 + + 43, - CASE 53 WHEN + 1 THEN + AVG ( COALESCE ( 79, - 64, + 66 / 86 ) ) * - 33 WHEN COUNT( * ) - 44 THEN + 11 ELSE NULL END + COUNT( * ) ) + CAST( NULL AS SIGNED ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1277
SELECT COUNT ( * ) - - 78 * 42 * - CAST ( - + 41 AS INTEGER ) * + COALESCE ( + 69 + + 43, - CASE 53 WHEN + 1 THEN + AVG ( COALESCE ( 79, - 64, + 66 / 86 ) ) * - 33 WHEN COUNT ( * ) - 44 THEN + 11 ELSE NULL END + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * 52
----
NULL

query I rowsort
SELECT NULLIF ( 68, - 98 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT ALL NULLIF ( - ( + NULLIF ( + 68, - 90 ) ), + 18 * + COUNT( ALL - 3 ) + - COALESCE ( + ( 81 ), + 92 / COALESCE ( - 45, + 25, 93 + COUNT( * ) ) - + 58 ) ) - + 42 col2
----
-110

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL NULLIF ( - ( + NULLIF ( + 68, - 90 ) ), + 18 * + COUNT ( ALL - 3 ) + - COALESCE ( + ( 81 ), + 92 / COALESCE ( - 45, + 25, 93 + COUNT ( * ) ) - + 58 ) ) - + 42 col2
----
-110

query I rowsort
SELECT - 29 + - 49
----
-78

query I rowsort
SELECT 7 * - + 44 AS col2
----
-308

query II rowsort
SELECT ALL - - 24 * + + 2 * 97, 95 AS col0
----
4656
95

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

skipif mysql # not compatible
query I rowsort label-1283
SELECT 18 * - 11 * + COUNT ( * ) AS col0
----
-198

query I rowsort
SELECT ALL 11 * + ( - + 15 ) AS col0
----
-165

query II rowsort
SELECT DISTINCT 42 AS col1, 75 AS col2
----
42
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT 8 DIV - ( - 12 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1286
SELECT 8 / - ( - 12 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1287
SELECT COUNT( * ) * + 76 AS col1, 97 * - 12 + 32
----
76
-1132

skipif mysql # not compatible
query II rowsort label-1287
SELECT COUNT ( * ) * + 76 AS col1, 97 * - 12 + 32
----
76
-1132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1288
SELECT + 63 + - - 55, NULLIF ( 44, + 93 ) - - 35 * + CAST( NULL AS SIGNED ) AS col2
----
118
NULL

skipif mysql # not compatible
query II rowsort label-1288
SELECT + 63 + - - 55, NULLIF ( 44, + 93 ) - - 35 * + CAST ( NULL AS INTEGER ) AS col2
----
118
NULL

query II rowsort
SELECT 6 AS col1, 30 + - 21
----
6
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1290
SELECT ALL NULLIF ( + - 40, 48 + - ( + + 94 ) + - 29 + - 76 ) + CAST( - 20 AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL NULLIF ( + - 40, 48 + - ( + + 94 ) + - 29 + - 76 ) + CAST ( - 20 AS INTEGER ) AS col1
----
-60

query I rowsort
SELECT + 15 + - + 49 - + 44
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT ALL 88 * - 74 * - ( - - 24 ) DIV - + COUNT( * ) + 24 AS col1
----
-156264

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL 88 * - 74 * - ( - - 24 ) / - + COUNT ( * ) + 24 AS col1
----
-156264

query I rowsort
SELECT 21 * 67 * + 54 * - + 61 + - + 1
----
-4634659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1294
SELECT + 7 DIV 62 * + 43 * + COUNT( + COALESCE ( 9, - NULLIF ( ( 11 ), - 57 ) - 69 ) ) * + MIN( DISTINCT + 17 + 25 ) + + 43 DIV - 30 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1294
SELECT + 7 / 62 * + 43 * + COUNT ( + COALESCE ( 9, - NULLIF ( ( 11 ), - 57 ) - 69 ) ) * + MIN ( DISTINCT + 17 + 25 ) + + 43 / - 30 AS col2
----
-1

query I rowsort
SELECT DISTINCT + NULLIF ( - 23, - 62 ) AS col2
----
-23

query I rowsort
SELECT + 79 * ( + 81 ) AS col1
----
6399

query I rowsort
SELECT - 85 + + 72
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL NULLIF ( COUNT( * ), MIN( ALL - 53 ) * + 33 ) * COUNT( * ) * 76 + - 52 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL NULLIF ( COUNT ( * ), MIN ( ALL - 53 ) * + 33 ) * COUNT ( * ) * 76 + - 52 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT CASE - CASE + + 14 WHEN + + 33 - 47 - - 58 * ( 26 ) THEN NULL WHEN - 97 + + 89 THEN - 10 + 69 * 4 ELSE - 54 * + 57 END WHEN + 82 * 15 THEN NULL ELSE 25 * - MIN( DISTINCT 7 ) END
----
-175

skipif mysql # not compatible
query I rowsort label-1299
SELECT CASE - CASE + + 14 WHEN + + 33 - 47 - - 58 * ( 26 ) THEN NULL WHEN - 97 + + 89 THEN - 10 + 69 * 4 ELSE - 54 * + 57 END WHEN + 82 * 15 THEN NULL ELSE 25 * - MIN ( DISTINCT 7 ) END
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT + 19 * 11 * + + 97 + + ( + + 4 ) + - - COUNT( * )
----
20278

skipif mysql # not compatible
query I rowsort label-1300
SELECT + 19 * 11 * + + 97 + + ( + + 4 ) + - - COUNT ( * )
----
20278

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

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

skipif mysql # not compatible
query I rowsort label-1302
SELECT + - COUNT ( ALL - - 65 ) * + 48 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1303
SELECT CASE 93 WHEN + NULLIF ( + 29, + + CAST( ( 63 ) AS SIGNED ) * COUNT( * ) ) - + 92 THEN 63 * 33 + MIN( + 38 ) END * + 42 + + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT CASE 93 WHEN + NULLIF ( + 29, + + CAST ( ( 63 ) AS INTEGER ) * COUNT ( * ) ) - + 92 THEN 63 * 33 + MIN ( + 38 ) END * + 42 + + 52 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT DISTINCT - 98 * - + 82 - 25 + - - ( + 47 ) + - + CAST( + 26 AS SIGNED ) * 15 * 77 AS col1
----
-21972

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT - 98 * - + 82 - 25 + - - ( + 47 ) + - + CAST ( + 26 AS INTEGER ) * 15 * 77 AS col1
----
-21972

query I rowsort
SELECT - + 89 * + + 40 + 84 AS col2
----
-3476

query II rowsort
SELECT ALL + 4 col1, + 39 col2
----
4
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1307
SELECT ALL - 26 * + 46 * 21 * + NULLIF ( 6, + + 42 ) + + CAST( NULL AS SIGNED ) - + 48 * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL - 26 * + 46 * 21 * + NULLIF ( 6, + + 42 ) + + CAST ( NULL AS INTEGER ) - + 48 * 49 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT - CAST( 38 AS SIGNED ) * - 73 - NULLIF ( - 62, + MIN( NULLIF ( 67, + 60 * + 81 ) ) - + 23 )
----
2836

skipif mysql # not compatible
query I rowsort label-1308
SELECT - CAST ( 38 AS INTEGER ) * - 73 - NULLIF ( - 62, + MIN ( NULLIF ( 67, + 60 * + 81 ) ) - + 23 )
----
2836

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1310
SELECT - + 37 + + 83 DIV + + SUM( ALL + 37 ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-1310
SELECT - + 37 + + 83 / + + SUM ( ALL + 37 ) col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1311
SELECT + + ( + - 90 ) DIV - 9 - - - 40 * 13 DIV - CAST( + 17 AS SIGNED ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1311
SELECT + + ( + - 90 ) / - 9 - - - 40 * 13 / - CAST ( + 17 AS INTEGER ) AS col1
----
40

query I rowsort
SELECT + - ( 15 ) * - 61 - ( + - 0 ) * 19 * 10 + + 78 AS col1
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL - 98 * + 26 * + 6 + - MAX( + + 95 ) + + 53 col1
----
-15330

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - 98 * + 26 * + 6 + - MAX ( + + 95 ) + + 53 col1
----
-15330

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL CASE 86 WHEN + - COUNT( * ) THEN NULL WHEN - CASE COUNT( * ) WHEN + 95 THEN + + ( COUNT( DISTINCT 89 ) ) * - 58 WHEN - 89 THEN NULL END THEN + 18 / - COUNT( ALL 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL CASE 86 WHEN + - COUNT ( * ) THEN NULL WHEN - CASE COUNT ( * ) WHEN + 95 THEN + + ( COUNT ( DISTINCT 89 ) ) * - 58 WHEN - 89 THEN NULL END THEN + 18 / - COUNT ( ALL 9 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT DISTINCT COALESCE ( 43, + 87 * 17 DIV + + 34 )
----
43

skipif mysql # not compatible
query I rowsort label-1315
SELECT DISTINCT COALESCE ( 43, + 87 * 17 / + + 34 )
----
43

query II rowsort
SELECT + 99 + - - COALESCE ( 67, 11, - 35 ) col2, 8
----
166
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT + SUM( + + 13 ) + + - 11 + - 6 * 22 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-1317
SELECT + SUM ( + + 13 ) + + - 11 + - 6 * 22 AS col1
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL SUM( ALL - + ( + 5 ) ) + 83 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL SUM ( ALL - + ( + 5 ) ) + 83 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1319
SELECT - 63 * - CASE + 62 WHEN - + NULLIF ( + 58, - 97 + COUNT( * ) ) THEN MAX( - CAST( NULL AS SIGNED ) ) / + COUNT( * ) WHEN 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT - 63 * - CASE + 62 WHEN - + NULLIF ( + 58, - 97 + COUNT ( * ) ) THEN MAX ( - CAST ( NULL AS INTEGER ) ) / + COUNT ( * ) WHEN 54 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + COUNT( ALL + 90 ) + - ( 78 ) + 19 + COUNT( * ) * - 71 - 57
----
-186

skipif mysql # not compatible
query I rowsort label-1320
SELECT + COUNT ( ALL + 90 ) + - ( 78 ) + 19 + COUNT ( * ) * - 71 - 57
----
-186

query I rowsort
SELECT DISTINCT 92 + - 66
----
26

query I rowsort
SELECT ALL 51 + - - 34 - - - 97 AS col2
----
-12

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

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

query I rowsort
SELECT - 97 * + 38 AS col0
----
-3686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1325
SELECT + COALESCE ( + 17, + ( + CASE + CAST( 27 AS SIGNED ) WHEN - MAX( 60 ) THEN - 97 WHEN CAST( NULL AS SIGNED ) * + 63 THEN 74 END ) * + 14 + - 15 * 92 ) / CASE - COUNT( * ) WHEN 62 * 57 + - 4 THEN + 46 WHEN - MAX( 4 ) * COUNT( * ) THEN 40 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT + COALESCE ( + 17, + ( + CASE + CAST ( 27 AS INTEGER ) WHEN - MAX ( 60 ) THEN - 97 WHEN CAST ( NULL AS INTEGER ) * + 63 THEN 74 END ) * + 14 + - 15 * 92 ) / CASE - COUNT ( * ) WHEN 62 * 57 + - 4 THEN + 46 WHEN - MAX ( 4 ) * COUNT ( * ) THEN 40 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 16 * - - 25 * + 82 + 73 col0
----
32873

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT - COUNT( ALL - - ( 67 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1327
SELECT - COUNT ( ALL - - ( 67 ) ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT + 4 DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-1328
SELECT + 4 / 38
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1329
SELECT DISTINCT + 96 * - MIN( DISTINCT 88 ) AS col1, - 38 * - 54
----
-8448
2052

skipif mysql # not compatible
query II rowsort label-1329
SELECT DISTINCT + 96 * - MIN ( DISTINCT 88 ) AS col1, - 38 * - 54
----
-8448
2052

query II rowsort
SELECT + - 8 + - - 30, + 82 * + 10 AS col0
----
22
820

query II rowsort
SELECT DISTINCT + + ( + 20 ) * 44, - 35 * 65 col0
----
880
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT - 47 + 74 + SUM( ALL - + ( - 7 ) ) + - ( - 88 ) * 22 * + 3
----
5842

skipif mysql # not compatible
query I rowsort label-1332
SELECT - 47 + 74 + SUM ( ALL - + ( - 7 ) ) + - ( - 88 ) * 22 * + 3
----
5842

query I rowsort
SELECT - 99 * + - 68 AS col1
----
6732

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT - 58 + - - 72 + - - 60 AS col1, + MIN( DISTINCT 97 ) * 28 AS col2
----
74
2716

skipif mysql # not compatible
query II rowsort label-1334
SELECT - 58 + - - 72 + - - 60 AS col1, + MIN ( DISTINCT 97 ) * 28 AS col2
----
74
2716

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT COUNT( * ) - 13 * + COUNT( - 6 ) + 89 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1336
SELECT COUNT ( * ) - 13 * + COUNT ( - 6 ) + 89 AS col1
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1337
SELECT ALL + COALESCE ( - - 11, 23 * + 83 ) + - + MAX( ALL + CASE + 25 WHEN - - 92 THEN NULL ELSE 32 * - 77 + + 23 END ) + 44 DIV - 4 AS col1
----
2441

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL + COALESCE ( - - 11, 23 * + 83 ) + - + MAX ( ALL + CASE + 25 WHEN - - 92 THEN NULL ELSE 32 * - 77 + + 23 END ) + 44 / - 4 AS col1
----
2441

query I rowsort
SELECT 24 * + + 64 col0
----
1536

query I rowsort
SELECT DISTINCT ( 27 ) * + 50 * 15 AS col0
----
20250

query I rowsort
SELECT ALL - 57 + - 79
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-1341
SELECT DISTINCT - 85 DIV - 19 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT - 85 / - 19 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1342
SELECT 44, + 64 * ( + COUNT( * ) ) * + + 0 + CAST( NULL AS SIGNED ) * + COUNT( * ) + + 61 col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-1342
SELECT 44, + 64 * ( + COUNT ( * ) ) * + + 0 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + 61 col0
----
44
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1343
SELECT 52 AS col2, COUNT( * ) DIV + 32 * + 8 AS col1
----
52
0

skipif mysql # not compatible
query II rowsort label-1343
SELECT 52 AS col2, COUNT ( * ) / + 32 * + 8 AS col1
----
52
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT 58 + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1344
SELECT 58 + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT ALL 5 - - 86
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT - 75 * - CASE + + 38 WHEN + 90 * - - ( + COUNT( * ) ) THEN - + 17 ELSE NULL END - + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1346
SELECT - 75 * - CASE + + 38 WHEN + 90 * - - ( + COUNT ( * ) ) THEN - + 17 ELSE NULL END - + 51 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT DISTINCT + COALESCE ( + 1, + + 40 ) * + CAST( + 6 AS SIGNED ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + COALESCE ( + 1, + + 40 ) * + CAST ( + 6 AS INTEGER ) AS col1
----
6

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

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

query I rowsort
SELECT 13 * + 82 AS col0
----
1066

query II rowsort
SELECT ALL - - 32 AS col1, COALESCE ( - 45, 4 )
----
32
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT + 18 DIV - - 81 + + + 76 * 35 * - ( + 53 ) AS col2
----
-140980

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 18 / - - 81 + + + 76 * 35 * - ( + 53 ) AS col2
----
-140980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1352
SELECT ALL + ( - SUM( DISTINCT + CAST( + 70 AS SIGNED ) ) ) * + + COALESCE ( + - 72, - MIN( - 47 ) ) + 29 * COALESCE ( COALESCE ( 9, - 94, 12 ) * 82, - 53 + + 98 DIV - COALESCE ( CASE + 99 WHEN 66 THEN + 78 WHEN COALESCE ( - COUNT( DISTINCT + 35 ), 86 + - 66 ) + 12 * 31 THEN - 21 + + ( - COUNT( * ) ) * + MIN( DISTINCT ( 69 ) ) WHEN + 69 * + 81 THEN + 20 * + 80 ELSE + 40 END, + 25 ) ) AS col2
----
26442

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL + ( - SUM ( DISTINCT + CAST ( + 70 AS INTEGER ) ) ) * + + COALESCE ( + - 72, - MIN ( - 47 ) ) + 29 * COALESCE ( COALESCE ( 9, - 94, 12 ) * 82, - 53 + + 98 / - COALESCE ( CASE + 99 WHEN 66 THEN + 78 WHEN COALESCE ( - COUNT ( DISTINCT + 35 ), 86 + - 66 ) + 12 * 31 THEN - 21 + + ( - COUNT ( * ) ) * + MIN ( DISTINCT ( 69 ) ) WHEN + 69 * + 81 THEN + 20 * + 80 ELSE + 40 END, + 25 ) ) AS col2
----
26442

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1353
SELECT + 41 * - ( 88 ) * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT + 41 * - ( 88 ) * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT + ( 87 ) + MAX( 52 ) + 61 col0
----
200

skipif mysql # not compatible
query I rowsort label-1354
SELECT + ( 87 ) + MAX ( 52 ) + 61 col0
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT COALESCE ( - - CASE 42 WHEN 13 * + - 18 THEN NULL WHEN 37 / + 44 * + 88 THEN 99 + COUNT( * ) * - COUNT( * ) END, 0, + 68 * + 71 + - COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1355
SELECT COALESCE ( - - CASE 42 WHEN 13 * + - 18 THEN NULL WHEN 37 / + 44 * + 88 THEN 99 + COUNT ( * ) * - COUNT ( * ) END, 0, + 68 * + 71 + - COUNT ( * ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT - - 60 * ( - - SUM( - CAST( + - ( + 6 ) AS SIGNED ) ) ) + ( 52 ) + - NULLIF ( 47, 71 ) AS col1
----
365

skipif mysql # not compatible
query I rowsort label-1356
SELECT - - 60 * ( - - SUM ( - CAST ( + - ( + 6 ) AS INTEGER ) ) ) + ( 52 ) + - NULLIF ( 47, 71 ) AS col1
----
365

query I rowsort
SELECT DISTINCT + 84 / + 93 * - CASE + 28 WHEN + 79 THEN + CASE + 51 WHEN 23 * ( + 71 ) THEN 77 END ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + + 0 AS col2, - 77 + 93
----
0
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1359
SELECT ALL + ( SUM( DISTINCT - - 79 ) ) DIV + - 89
----
0

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL + ( SUM ( DISTINCT - - 79 ) ) / + - 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT ALL 79 + - 39 * + 67 - - CASE - 95 WHEN 39 THEN NULL WHEN - 35 * - - 19 THEN CAST( NULL AS SIGNED ) + + COALESCE ( ( 92 ), 61 ) WHEN + 59 THEN NULL END * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL 79 + - 39 * + 67 - - CASE - 95 WHEN 39 THEN NULL WHEN - 35 * - - 19 THEN CAST ( NULL AS INTEGER ) + + COALESCE ( ( 92 ), 61 ) WHEN + 59 THEN NULL END * 30
----
NULL

query I rowsort
SELECT DISTINCT - 24 * - - 32
----
-768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT ALL - CASE - 84 WHEN - 17 THEN - CAST( - 78 AS SIGNED ) ELSE + 25 END + - ( + NULLIF ( - 80, + ( + 99 ) * 88 + - CAST( 9 AS SIGNED ) * - 64 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - CASE - 84 WHEN - 17 THEN - CAST ( - 78 AS INTEGER ) ELSE + 25 END + - ( + NULLIF ( - 80, + ( + 99 ) * 88 + - CAST ( 9 AS INTEGER ) * - 64 ) ) AS col2
----
55

query I rowsort
SELECT ALL ( 47 ) + 27 AS col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1364
SELECT ALL + 90 * - COUNT( * ) * - + COALESCE ( 93, 65 ) + - - 51, 28 AS col1
----
8421
28

skipif mysql # not compatible
query II rowsort label-1364
SELECT ALL + 90 * - COUNT ( * ) * - + COALESCE ( 93, 65 ) + - - 51, 28 AS col1
----
8421
28

query II rowsort
SELECT 65, - 11 + + 35 col2
----
65
24

query I rowsort
SELECT 70 * + 99 - + + 63 * - 29
----
8757

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL ( - 63 ) + + - SUM( - - 93 ) * - 40
----
3657

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL ( - 63 ) + + - SUM ( - - 93 ) * - 40
----
3657

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

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT CAST ( - 88 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - 46
----
NULL

query I rowsort
SELECT 52 * + 44 * - 1
----
-2288

query I rowsort
SELECT ALL + 98 * - - 7 * + 66
----
45276

query II rowsort
SELECT 59 + - + 28 AS col0, - 29 + + + 83
----
31
54

query I rowsort
SELECT DISTINCT 16 - 65
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT 68 + + - 92 DIV + + 85
----
67

skipif mysql # not compatible
query I rowsort label-1373
SELECT 68 + + - 92 / + + 85
----
67

query I rowsort
SELECT 42 * + 7 AS col1
----
294

query II rowsort
SELECT ALL - 99 * + 35, - ( - ( - + 33 ) ) col0
----
-3465
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT 49 DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1376
SELECT 49 / + 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL 15 * + SUM( 39 ) AS col1
----
585

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL 15 * + SUM ( 39 ) AS col1
----
585

query I rowsort
SELECT ALL 32 * + + CASE - 10 WHEN + 91 THEN 4 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT ALL MIN( ALL + + 49 ) col1
----
49

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL MIN ( ALL + + 49 ) col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT 81 DIV - 40
----
-2

skipif mysql # not compatible
query I rowsort label-1380
SELECT 81 / - 40
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT ALL - + 87 DIV + - 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - + 87 / + - 58 AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT COUNT ( + NULLIF ( + - 88, - 4 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT ALL - ( + COALESCE ( - 7, + 76, - NULLIF ( + 61, 96 ) * - - COUNT( * ) + 14 ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - ( + COALESCE ( - 7, + 76, - NULLIF ( + 61, 96 ) * - - COUNT ( * ) + 14 ) ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT + ( + 69 ) col2, + COUNT( * )
----
69
1

skipif mysql # not compatible
query II rowsort label-1384
SELECT + ( + 69 ) col2, + COUNT ( * )
----
69
1

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

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

query I rowsort
SELECT 51 * 28 AS col0
----
1428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT CASE 55 WHEN + ( - 82 ) THEN NULL ELSE - 97 * NULLIF ( + 1, - + MAX( DISTINCT + + COALESCE ( 7, - 78, + 49 + 4, - 22 ) ) ) DIV NULLIF ( - 17, + 0 ) + - 45 END * 33 AS col2
----
-1320

skipif mysql # not compatible
query I rowsort label-1387
SELECT CASE 55 WHEN + ( - 82 ) THEN NULL ELSE - 97 * NULLIF ( + 1, - + MAX ( DISTINCT + + COALESCE ( 7, - 78, + 49 + 4, - 22 ) ) ) / NULLIF ( - 17, + 0 ) + - 45 END * 33 AS col2
----
-1320

query I rowsort
SELECT 30 * - - ( 7 )
----
210

query I rowsort
SELECT ALL + 20 * - 18 + + 40 * - 95 + 25 + - NULLIF ( - 29, + 28 * + + 1 ) AS col0
----
-4106

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT 7 - + COALESCE ( + - 57, - 67 ) - 74 * 84 + - COUNT( * ) AS col1
----
-6153

skipif mysql # not compatible
query I rowsort label-1390
SELECT 7 - + COALESCE ( + - 57, - 67 ) - 74 * 84 + - COUNT ( * ) AS col1
----
-6153

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - COUNT( - + 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - COUNT ( - + 16 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL - 26 * + 65 + NULLIF ( COUNT( * ), - 3 ) * 19 + - - COUNT( * ) + 89
----
-1581

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL - 26 * + 65 + NULLIF ( COUNT ( * ), - 3 ) * 19 + - - COUNT ( * ) + 89
----
-1581

onlyif mysql # aggregate syntax: 
query II rowsort label-1394
SELECT COUNT( * ) AS col0, - 63 + - 40
----
1
-103

skipif mysql # not compatible
query II rowsort label-1394
SELECT COUNT ( * ) AS col0, - 63 + - 40
----
1
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT MAX( 85 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-1395
SELECT MAX ( 85 ) AS col1
----
85

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

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

query I rowsort
SELECT DISTINCT 69 * - - ( + + 22 )
----
1518

query II rowsort
SELECT ALL 28 * - 78 * - - 94, + 9 + 19 AS col0
----
-205296
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 40 + + - 56 / - + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 40 + + - 56 / - + 33 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1400
SELECT + COALESCE ( 17, - 56 DIV + + CAST( NULL AS SIGNED ), - COUNT( * ) * + - 33, + 92 )
----
17

skipif mysql # not compatible
query I rowsort label-1400
SELECT + COALESCE ( 17, - 56 / + + CAST ( NULL AS INTEGER ), - COUNT ( * ) * + - 33, + 92 )
----
17

query I rowsort
SELECT + ( 8 ) + - 22
----
-14

query I rowsort
SELECT DISTINCT 33 * + + 45
----
1485

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

skipif mysql # not compatible
query I rowsort label-1403
SELECT + COUNT ( * ) + + 34 AS col1
----
35

query I rowsort
SELECT - 53 * + + 88 + + 74 AS col2
----
-4590

query I rowsort
SELECT + 33 * - - 51 AS col1
----
1683

query I rowsort
SELECT + 39 * - 46 AS col2
----
-1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1407
SELECT DISTINCT 74 * MIN( DISTINCT + 7 ) AS col2, - 70 * - + CAST( NULL AS SIGNED ) * 78
----
518
NULL

skipif mysql # not compatible
query II rowsort label-1407
SELECT DISTINCT 74 * MIN ( DISTINCT + 7 ) AS col2, - 70 * - + CAST ( NULL AS INTEGER ) * 78
----
518
NULL

query I rowsort
SELECT + 3 * 1 AS col0
----
3

query I rowsort
SELECT ALL - 68 * + 72 AS col2
----
-4896

query I rowsort
SELECT + 20 - - + 94
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-1411
SELECT 93 col2, + MIN( + 37 )
----
93
37

skipif mysql # not compatible
query II rowsort label-1411
SELECT 93 col2, + MIN ( + 37 )
----
93
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT ALL + 67 DIV + 42 + + - ( 28 )
----
-27

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL + 67 / + 42 + + - ( 28 )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1413
SELECT + 23 + - - MAX( ALL - 91 ) AS col1, - COUNT( * ) - - 40
----
-68
39

skipif mysql # not compatible
query II rowsort label-1413
SELECT + 23 + - - MAX ( ALL - 91 ) AS col1, - COUNT ( * ) - - 40
----
-68
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL + 75 + + - 51 + - MIN( DISTINCT 11 ) col2
----
13

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL + 75 + + - 51 + - MIN ( DISTINCT 11 ) col2
----
13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT - 11 DIV + 55 + - 29 + ( + 74 ) + + ( + 43 ) * - NULLIF ( - 37, + 75 * 4 + ( 11 - + 92 * CASE 29 WHEN - 78 THEN + 27 WHEN + 39 * - 30 THEN NULL ELSE NULL END ) ) + 8
----
1644

skipif mysql # not compatible
query I rowsort label-1416
SELECT - 11 / + 55 + - 29 + ( + 74 ) + + ( + 43 ) * - NULLIF ( - 37, + 75 * 4 + ( 11 - + 92 * CASE 29 WHEN - 78 THEN + 27 WHEN + 39 * - 30 THEN NULL ELSE NULL END ) ) + 8
----
1644

query I rowsort
SELECT + + 95 + - - 9
----
104

query I rowsort
SELECT DISTINCT 38 + 23
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1419
SELECT ALL - 8 DIV + 9 + + 0 + + 28 + 82 + + 37 * - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL - 8 / + 9 + + 0 + + 28 + 82 + + 37 * - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1420
SELECT + 71 DIV NULLIF ( + 15, + 1 - - + 40 ) + - 39 + - - 2 + - NULLIF ( MIN( ALL - 96 ), COUNT( * ) * - 46 + - 43 ) DIV - 66
----
-34

skipif mysql # not compatible
query I rowsort label-1420
SELECT + 71 / NULLIF ( + 15, + 1 - - + 40 ) + - 39 + - - 2 + - NULLIF ( MIN ( ALL - 96 ), COUNT ( * ) * - 46 + - 43 ) / - 66
----
-34

query II rowsort
SELECT + + 78, - 22 AS col0
----
78
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1422
SELECT - 53 * + - ( - ( + + 3 ) ) DIV CAST( + COUNT( * ) AS SIGNED ) + COUNT( * )
----
-158

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 53 * + - ( - ( + + 3 ) ) / CAST ( + COUNT ( * ) AS INTEGER ) + COUNT ( * )
----
-158

query I rowsort
SELECT + 96 * + 93 + + 23 * + 79
----
10745

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL - + ( + COUNT( * ) ) * 67 + ( + 51 ) + - 38 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL - + ( + COUNT ( * ) ) * 67 + ( + 51 ) + - 38 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT - - SUM( + 44 ) * + 95 + + 73 col2
----
4253

skipif mysql # not compatible
query I rowsort label-1425
SELECT - - SUM ( + 44 ) * + 95 + + 73 col2
----
4253

query I rowsort
SELECT ALL + + ( 20 ) AS col2
----
20

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

skipif mysql # not compatible
query I rowsort label-1427
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1428
SELECT DISTINCT + - 59 AS col1, MAX( 46 ) * - 79 + + CASE - - ( + ( + + CAST( + - 95 AS DECIMAL ) ) ) WHEN 92 + ( - 82 ) THEN NULL WHEN + ( + COUNT( * ) ) * + 51 THEN NULL ELSE 59 + 28 * 83 END AS col0
----
-59
-1251

skipif mysql # not compatible
query II rowsort label-1428
SELECT DISTINCT + - 59 AS col1, MAX ( 46 ) * - 79 + + CASE - - ( + ( + + CAST ( + - 95 AS REAL ) ) ) WHEN 92 + ( - 82 ) THEN NULL WHEN + ( + COUNT ( * ) ) * + 51 THEN NULL ELSE 59 + 28 * 83 END AS col0
----
-59
-1251

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL - COUNT( * ) * + - CASE + 13 WHEN - - 73 - - 31 THEN 58 WHEN + - COALESCE ( - 30, + COUNT( * ), - 26 ) * NULLIF ( 25, - ( AVG ( + 1 ) ) ) + 69 * 63 THEN 84 WHEN 42 + - 33 THEN 20 END * 94 - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL - COUNT ( * ) * + - CASE + 13 WHEN - - 73 - - 31 THEN 58 WHEN + - COALESCE ( - 30, + COUNT ( * ), - 26 ) * NULLIF ( 25, - ( AVG ( + 1 ) ) ) + 69 * 63 THEN 84 WHEN 42 + - 33 THEN 20 END * 94 - - 10
----
NULL

query I rowsort
SELECT DISTINCT 28 * - - 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1431
SELECT + MIN( ALL - + CAST( 54 AS SIGNED ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1431
SELECT + MIN ( ALL - + CAST ( 54 AS INTEGER ) ) AS col2
----
-54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT COALESCE ( + 68, - COUNT( * ) * - 93, - 75 + - - 31 )
----
68

skipif mysql # not compatible
query I rowsort label-1433
SELECT COALESCE ( + 68, - COUNT ( * ) * - 93, - 75 + - - 31 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT + 49 * + + COUNT( * ) - + 88
----
-39

skipif mysql # not compatible
query I rowsort label-1434
SELECT + 49 * + + COUNT ( * ) - + 88
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT + NULLIF ( - 25, 50 * - 74 / 43 * 10 * + 71 + SUM( - 57 ) + + COALESCE ( ( 43 ), + 71 / - COUNT( * ), - COUNT( * ) / ( + 9 * - COUNT( * ) ) ) * + 54 ) * CASE + COUNT( * ) WHEN + 73 THEN 16 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT + NULLIF ( - 25, 50 * - 74 / 43 * 10 * + 71 + SUM ( - 57 ) + + COALESCE ( ( 43 ), + 71 / - COUNT ( * ), - COUNT ( * ) / ( + 9 * - COUNT ( * ) ) ) * + 54 ) * CASE + COUNT ( * ) WHEN + 73 THEN 16 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 87 * + 92 + 22 AS col0
----
8026

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1438
SELECT ALL CAST( + MIN( DISTINCT + NULLIF ( + ( + 60 ), 70 ) ) AS SIGNED ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL CAST ( + MIN ( DISTINCT + NULLIF ( + ( + 60 ), 70 ) ) AS INTEGER ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1439
SELECT DISTINCT CAST( NULL AS SIGNED ), 81 * + + 92 AS col0
----
NULL
7452

skipif mysql # not compatible
query II rowsort label-1439
SELECT DISTINCT CAST ( NULL AS INTEGER ), 81 * + + 92 AS col0
----
NULL
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL COUNT( * ) * - 99 * - - COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL COUNT ( * ) * - 99 * - - COUNT ( * ) AS col0
----
-99

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

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

query I rowsort
SELECT DISTINCT 44 * + + 12
----
528

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT + COALESCE ( 69, + COUNT( * ), - 24 ) * - - 75 * + 19 - - 91 + + COUNT( * ) * COUNT( * ) AS col2, 8
----
98417
8

skipif mysql # not compatible
query II rowsort label-1443
SELECT + COALESCE ( 69, + COUNT ( * ), - 24 ) * - - 75 * + 19 - - 91 + + COUNT ( * ) * COUNT ( * ) AS col2, 8
----
98417
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT - CASE - + 33 WHEN + - 82 * - ( + 41 ) THEN - - COUNT( * ) + 23 WHEN 77 * 23 THEN 10 WHEN + 7 THEN NULL ELSE NULL END / - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT - CASE - + 33 WHEN + - 82 * - ( + 41 ) THEN - - COUNT ( * ) + 23 WHEN 77 * 23 THEN 10 WHEN + 7 THEN NULL ELSE NULL END / - 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT ALL MAX( ALL - 47 ) + - 0 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL MAX ( ALL - 47 ) + - 0 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT + + COUNT( * ) * ( - - 3 ) * - + 56
----
-168

skipif mysql # not compatible
query I rowsort label-1446
SELECT + + COUNT ( * ) * ( - - 3 ) * - + 56
----
-168

query I rowsort
SELECT DISTINCT 56 + 95
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1448
SELECT DISTINCT + 16 col2, + 46 * MIN( + + 42 ) DIV 31 * + 29
----
16
1798

skipif mysql # not compatible
query II rowsort label-1448
SELECT DISTINCT + 16 col2, + 46 * MIN ( + + 42 ) / 31 * + 29
----
16
1798

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL + - 11 + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL + - 11 + - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL SUM( DISTINCT + - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL SUM ( DISTINCT + - 29 )
----
-29

query I rowsort
SELECT DISTINCT - 86 + 93 * + 56
----
5122

query I rowsort
SELECT ALL COALESCE ( - 44, 36 ) + - 90 AS col1
----
-134

query I rowsort
SELECT DISTINCT - + 65 + - 89 col1
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-1454
SELECT ALL - 57, - COUNT( * ) * - 4 - 85 AS col0
----
-57
-81

skipif mysql # not compatible
query II rowsort label-1454
SELECT ALL - 57, - COUNT ( * ) * - 4 - 85 AS col0
----
-57
-81

query I rowsort
SELECT 77 - - 66 + + + 37 * - 70 * - 11 * - 76 * - 7 AS col0
----
15156823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1456
SELECT 40, COALESCE ( - CAST( 27 AS SIGNED ), - 43 + - 27 ) * + - 82 col1
----
40
2214

skipif mysql # not compatible
query II rowsort label-1456
SELECT 40, COALESCE ( - CAST ( 27 AS INTEGER ), - 43 + - 27 ) * + - 82 col1
----
40
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT + 51 - - + 29 + + COUNT( * ) + - + 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1457
SELECT + 51 - - + 29 + + COUNT ( * ) + - + 40 AS col1
----
41

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

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

query I rowsort
SELECT ALL 90 * ( + ( - 74 ) ) AS col2
----
-6660

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT DISTINCT - + ( + MAX( DISTINCT 61 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT - + ( + MAX ( DISTINCT 61 ) )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1461
SELECT ALL 56 * - - NULLIF ( - CAST( - 64 AS SIGNED ), + 25 ) AS col2
----
3584

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL 56 * - - NULLIF ( - CAST ( - 64 AS INTEGER ), + 25 ) AS col2
----
3584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1462
SELECT 53 - - 17 + + 12 - + - COUNT( * ) / - CAST( NULL AS SIGNED ) * + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT 53 - - 17 + + 12 - + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + - 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT ALL - MIN( ALL - 14 ), 10 AS col1
----
14
10

skipif mysql # not compatible
query II rowsort label-1463
SELECT ALL - MIN ( ALL - 14 ), 10 AS col1
----
14
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT + 39 * - COUNT( DISTINCT - 48 ) * - ( + ( - 67 ) ) - - 4 * + COUNT( * )
----
-2609

skipif mysql # not compatible
query I rowsort label-1464
SELECT + 39 * - COUNT ( DISTINCT - 48 ) * - ( + ( - 67 ) ) - - 4 * + COUNT ( * )
----
-2609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1465
SELECT CAST( NULL AS SIGNED ) * - CASE 60 WHEN + - CAST( NULL AS SIGNED ) - COALESCE ( + COUNT( * ), 20 ) + 36 THEN + 39 WHEN - 3 THEN NULL ELSE - 17 + CASE 0 WHEN ( NULLIF ( + COUNT( * ), 22 ) ) * - 15 THEN 22 * 78 END + 81 END * ( ( + CASE - 90 WHEN + 19 THEN - 29 END ) + 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1465
SELECT CAST ( NULL AS INTEGER ) * - CASE 60 WHEN + - CAST ( NULL AS INTEGER ) - COALESCE ( + COUNT ( * ), 20 ) + 36 THEN + 39 WHEN - 3 THEN NULL ELSE - 17 + CASE 0 WHEN ( NULLIF ( + COUNT ( * ), 22 ) ) * - 15 THEN 22 * 78 END + 81 END * ( ( + CASE - 90 WHEN + 19 THEN - 29 END ) + 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT COUNT( * ) * + 46 * COALESCE ( + 89, - 15 ) AS col2
----
4094

skipif mysql # not compatible
query I rowsort label-1466
SELECT COUNT ( * ) * + 46 * COALESCE ( + 89, - 15 ) AS col2
----
4094

onlyif mysql # aggregate syntax: 
query II rowsort label-1467
SELECT 78 * - COUNT( ALL - 84 ), 89 + + 35 * - COUNT( * ) AS col0
----
-78
54

skipif mysql # not compatible
query II rowsort label-1467
SELECT 78 * - COUNT ( ALL - 84 ), 89 + + 35 * - COUNT ( * ) AS col0
----
-78
54

query I rowsort
SELECT 52 + - 32 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1469
SELECT DISTINCT - MIN( ALL + 59 ) AS col0, + 81 col1
----
-59
81

skipif mysql # not compatible
query II rowsort label-1469
SELECT DISTINCT - MIN ( ALL + 59 ) AS col0, + 81 col1
----
-59
81

query I rowsort
SELECT DISTINCT + 67 * 76 AS col1
----
5092

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

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

query I rowsort
SELECT ALL + 77 * + 8 AS col0
----
616

query I rowsort
SELECT DISTINCT - 22 + - 66
----
-88

query I rowsort
SELECT DISTINCT + 68 + + + 32 * + + 38 AS col2
----
1284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT ALL - COUNT( * ) + - 59 DIV + 70 * - 1 * + 28 + - 84 DIV - 71 col0
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL - COUNT ( * ) + - 59 / + 70 * - 1 * + 28 + - 84 / - 71 col0
----
0

query I rowsort
SELECT 44 + - 51 - + 78 * + 92 AS col2
----
-7183

query I rowsort
SELECT ALL NULLIF ( - 33, 46 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT DISTINCT + COUNT( * ) + 20
----
21

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT + COUNT ( * ) + 20
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1479
SELECT DISTINCT + 57 DIV + ( + + 87 ) * + - COALESCE ( - 10, + - COALESCE ( + 73, 82, - 52 + - 97 * - 43 * + + 7 + - 18 DIV 91 ) ) + - 74 * 1 + 66 * + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT + 57 / + ( + + 87 ) * + - COALESCE ( - 10, + - COALESCE ( + 73, 82, - 52 + - 97 * - 43 * + + 7 + - 18 / 91 ) ) + - 74 * 1 + 66 * + COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT 67 - - + 61 * - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1480
SELECT 67 - - + 61 * - COUNT ( * ) AS col1
----
6

query I rowsort
SELECT ALL + - 8 * + - 70 + + 49 + 84 col0
----
693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1482
SELECT ALL + 7 + + + 11 * - COALESCE ( CAST( - 1 AS SIGNED ), - 52 ) * + 82 * 2 AS col0
----
1811

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL + 7 + + + 11 * - COALESCE ( CAST ( - 1 AS INTEGER ), - 52 ) * + 82 * 2 AS col0
----
1811

query II rowsort
SELECT + 82 + 11 AS col0, 79 AS col1
----
93
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1484
SELECT ALL + 32 - 43 DIV 9 + + 54 + + 40 + 73 + COALESCE ( - - COUNT( * ), 13 * - 25 * + + ( - 80 ) * CAST( + 31 * CASE 37 WHEN - 53 DIV ( 70 ) THEN NULL WHEN + 21 THEN NULLIF ( CAST( - 11 AS SIGNED ), 26 + 16 ) END AS SIGNED ) )
----
196

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + 32 - 43 / 9 + + 54 + + 40 + 73 + COALESCE ( - - COUNT ( * ), 13 * - 25 * + + ( - 80 ) * CAST ( + 31 * CASE 37 WHEN - 53 / ( 70 ) THEN NULL WHEN + 21 THEN NULLIF ( CAST ( - 11 AS INTEGER ), 26 + 16 ) END AS INTEGER ) )
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1485
SELECT ( + MIN( - - 17 ) ) + + 21 DIV 66
----
17

skipif mysql # not compatible
query I rowsort label-1485
SELECT ( + MIN ( - - 17 ) ) + + 21 / 66
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT 36 - - + NULLIF ( + 27, - - COALESCE ( COUNT( - + 92 ), + 63, + 76 * COUNT( * ) * - 57 ) + - - 1 - + 28 + 37 )
----
63

skipif mysql # not compatible
query I rowsort label-1486
SELECT 36 - - + NULLIF ( + 27, - - COALESCE ( COUNT ( - + 92 ), + 63, + 76 * COUNT ( * ) * - 57 ) + - - 1 - + 28 + 37 )
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT - COALESCE ( + 9, - 21 DIV - - 96, + 76 * + 52 * ( 32 ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1487
SELECT - COALESCE ( + 9, - 21 / - - 96, + 76 * + 52 * ( 32 ) ) AS col2
----
-9

query I rowsort
SELECT ALL + + 4 - 32
----
-28

query I rowsort
SELECT 84 + - 81 + + 65 + - 94 + - 57
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ALL COUNT( * ) - - + 76 - - 79 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL COUNT ( * ) - - + 76 - - 79 AS col1
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1491
SELECT ALL CASE + 60 WHEN - COUNT( * ) * 78 THEN NULL ELSE + CAST( NULL AS SIGNED ) END, 57 AS col2
----
NULL
57

skipif mysql # not compatible
query II rowsort label-1491
SELECT ALL CASE + 60 WHEN - COUNT ( * ) * 78 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END, 57 AS col2
----
NULL
57

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1493
SELECT + + 13 / - MAX( CAST( NULL AS DECIMAL ) ) + + 65 + ( - + 7 ) * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT + + 13 / - MAX ( CAST ( NULL AS REAL ) ) + + 65 + ( - + 7 ) * + - 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1494
SELECT CAST( + COUNT( * ) AS SIGNED ) + + + 16 AS col0, 81 AS col2
----
17
81

skipif mysql # not compatible
query II rowsort label-1494
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + + 16 AS col0, 81 AS col2
----
17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL 52 * + 43 * + 34 * + SUM( ALL - - 14 ) AS col0
----
1064336

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL 52 * + 43 * + 34 * + SUM ( ALL - - 14 ) AS col0
----
1064336

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1496
SELECT CAST( + 82 AS SIGNED ) * - 75 AS col0, 17 + - - 64 AS col2
----
-6150
81

skipif mysql # not compatible
query II rowsort label-1496
SELECT CAST ( + 82 AS INTEGER ) * - 75 AS col0, 17 + - - 64 AS col2
----
-6150
81

query II rowsort
SELECT + 37 AS col0, ( 38 ) AS col0
----
37
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT MIN( - + 26 ) * + 9 + + - 84 * 35 * - COALESCE ( + + SUM( ALL - 30 ), MAX( + 24 ) ) * + - ( - COUNT( * ) )
----
-88434

skipif mysql # not compatible
query I rowsort label-1499
SELECT MIN ( - + 26 ) * + 9 + + - 84 * 35 * - COALESCE ( + + SUM ( ALL - 30 ), MAX ( + 24 ) ) * + - ( - COUNT ( * ) )
----
-88434

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT COUNT( ALL 78 )
----
1

skipif mysql # not compatible
query I rowsort label-1500
SELECT COUNT ( ALL 78 )
----
1

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

skipif mysql # not compatible
query I rowsort label-1501
SELECT MIN ( DISTINCT - 97 )
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1502
SELECT DISTINCT 51 * + 53 * - 56, 97 * 16 + - 77 * - 21 / + 70 * - 97 * - + CAST( NULL AS DECIMAL ) + + 5 - - 67 AS col0
----
-151368
NULL

skipif mysql # not compatible
query II rowsort label-1502
SELECT DISTINCT 51 * + 53 * - 56, 97 * 16 + - 77 * - 21 / + 70 * - 97 * - + CAST ( NULL AS REAL ) + + 5 - - 67 AS col0
----
-151368
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL 68 + - COUNT( * ) + + - 32 * + - 52 AS col2
----
1731

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL 68 + - COUNT ( * ) + + - 32 * + - 52 AS col2
----
1731

onlyif mysql # DIV for integer division: 
query II rowsort label-1504
SELECT ALL - 32 col0, - 45 DIV - 52 AS col1
----
-32
0

skipif mysql # not compatible
query II rowsort label-1504
SELECT ALL - 32 col0, - 45 / - 52 AS col1
----
-32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - 3 * 43 + 59 + - + ( - - COUNT( * ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-1505
SELECT - 3 * 43 + 59 + - + ( - - COUNT ( * ) ) AS col0
----
-71

query I rowsort
SELECT 6 * ( + 25 )
----
150

query I rowsort
SELECT ALL - 9 + 63 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT 83 + + + 13 * - - ( ( + + 76 ) ) + - + 21 * + - COUNT( - - ( + + 43 ) ) + 35 + - - CASE 79 WHEN + + 83 THEN NULL ELSE 61 END AS col1
----
1188

skipif mysql # not compatible
query I rowsort label-1508
SELECT 83 + + + 13 * - - ( ( + + 76 ) ) + - + 21 * + - COUNT ( - - ( + + 43 ) ) + 35 + - - CASE 79 WHEN + + 83 THEN NULL ELSE 61 END AS col1
----
1188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1509
SELECT ALL - CASE 54 WHEN - + 29 THEN NULL WHEN + 64 THEN - 16 DIV - - 64 * CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + COALESCE ( - 26, - - 80 ) ELSE - + 1 * + 48 + 5 DIV 95 END
----
48

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL - CASE 54 WHEN - + 29 THEN NULL WHEN + 64 THEN - 16 / - - 64 * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + COALESCE ( - 26, - - 80 ) ELSE - + 1 * + 48 + 5 / 95 END
----
48

query II rowsort
SELECT ALL 43 + + 97 * - - 49 AS col0, 80 AS col1
----
4796
80

query II rowsort
SELECT DISTINCT - + 82 AS col2, 28 AS col1
----
-82
28

query I rowsort
SELECT ALL - 97 + - - 92 AS col2
----
-5

query I rowsort
SELECT ALL + + 73 * + 10
----
730

query I rowsort
SELECT ALL + - 56 * 84 AS col1
----
-4704

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

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

query II rowsort
SELECT - - 51, - 5 AS col1
----
51
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL - - 44 - + ( - + 61 ) + + NULLIF ( + - 85, + + 38 * + 83 * - + 69 + 33 + - COUNT( * ) - + - AVG ( ALL - 19 ) )
----
20

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - - 44 - + ( - + 61 ) + + NULLIF ( + - 85, + + 38 * + 83 * - + 69 + 33 + - COUNT ( * ) - + - AVG ( ALL - 19 ) )
----
20

query I rowsort
SELECT ALL + - 81 * - 46 AS col0
----
3726

onlyif mysql # aggregate syntax: 
query II rowsort label-1519
SELECT - - 27 AS col2, + MAX( ( 11 ) ) - + 69
----
27
-58

skipif mysql # not compatible
query II rowsort label-1519
SELECT - - 27 AS col2, + MAX ( ( 11 ) ) - + 69
----
27
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT - 6 * - ( COUNT( * ) ) + + 78 * 10
----
786

skipif mysql # not compatible
query I rowsort label-1520
SELECT - 6 * - ( COUNT ( * ) ) + + 78 * 10
----
786

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT + 93 * 64 + - - 73 DIV - 41
----
5951

skipif mysql # not compatible
query I rowsort label-1521
SELECT + 93 * 64 + - - 73 / - 41
----
5951

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT DISTINCT - SUM( ALL - NULLIF ( 25, + 25 / - 55 ) ) col2
----
25

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT - SUM ( ALL - NULLIF ( 25, + 25 / - 55 ) ) col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1523
SELECT - ( - + CAST( 40 AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-1523
SELECT - ( - + CAST ( 40 AS INTEGER ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1524
SELECT - - ( - 92 ) * - NULLIF ( - CAST( NULL AS SIGNED ), - 9 ) * - ( + 21 ) + - 56 + CAST( - + ( + - COUNT( * ) ) AS SIGNED ) AS col2, 15 * - + 70 AS col1
----
NULL
-1050

skipif mysql # not compatible
query II rowsort label-1524
SELECT - - ( - 92 ) * - NULLIF ( - CAST ( NULL AS INTEGER ), - 9 ) * - ( + 21 ) + - 56 + CAST ( - + ( + - COUNT ( * ) ) AS INTEGER ) AS col2, 15 * - + 70 AS col1
----
NULL
-1050

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT ALL - 51 DIV + + 1 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL - 51 / + + 1 AS col0
----
-51

query I rowsort
SELECT DISTINCT 8 * - 15
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1527
SELECT - + 71 + + - 73 + - - 39 + - - CAST( NULL AS SIGNED ) / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT - + 71 + + - 73 + - - 39 + - - CAST ( NULL AS INTEGER ) / + 99
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1528
SELECT - - 96 * COUNT ( * )
----
96

query I rowsort
SELECT + 96 * + - 5 * 85 * + 66 AS col2
----
-2692800

query I rowsort
SELECT - 58 - - 47 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT + 64 DIV - + 57
----
-1

skipif mysql # not compatible
query I rowsort label-1531
SELECT + 64 / - + 57
----
-1

query I rowsort
SELECT ALL 28 * - 25 col1
----
-700

query I rowsort
SELECT DISTINCT + 94 * 65
----
6110

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL 62 * - ( + COUNT( * ) ) + + 50 + - ( - + 76 ) col0
----
64

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL 62 * - ( + COUNT ( * ) ) + + 50 + - ( - + 76 ) col0
----
64

query I rowsort
SELECT NULLIF ( - 63, + 65 ) AS col1
----
-63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1536
SELECT CASE 98 WHEN + CAST( + + 6 AS DECIMAL ) THEN 76 - + 38 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT CASE 98 WHEN + CAST ( + + 6 AS REAL ) THEN 76 - + 38 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT - 99 * 29 + + COUNT( * ) * - ( 6 )
----
-2877

skipif mysql # not compatible
query I rowsort label-1537
SELECT - 99 * 29 + + COUNT ( * ) * - ( 6 )
----
-2877

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1538
SELECT ALL - 78 * + 25 + - + 15 - - COUNT( - 43 ) - + 3 / - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - 78 * + 25 + - + 15 - - COUNT ( - 43 ) - + 3 / - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT NULLIF ( - 47, + - COUNT( * ) ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-1539
SELECT NULLIF ( - 47, + - COUNT ( * ) ) col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1540
SELECT + 36 * + SUM( + 31 ) + + ( + 64 ) - + + 31 * + + 74 + + - CAST( 16 AS SIGNED ) AS col0
----
-1130

skipif mysql # not compatible
query I rowsort label-1540
SELECT + 36 * + SUM ( + 31 ) + + ( + 64 ) - + + 31 * + + 74 + + - CAST ( 16 AS INTEGER ) AS col0
----
-1130

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1541
SELECT ALL 48 * - - ( 78 ) + 49 AS col2, CAST( NULL AS SIGNED ) + - CAST( - + ( 37 ) AS DECIMAL ) AS col0
----
3793
NULL

skipif mysql # not compatible
query II rowsort label-1541
SELECT ALL 48 * - - ( 78 ) + 49 AS col2, CAST ( NULL AS INTEGER ) + - CAST ( - + ( 37 ) AS REAL ) AS col0
----
3793
NULL

query I rowsort
SELECT DISTINCT 61 * + 21 * 13
----
16653

query I rowsort
SELECT + 90 * + 62
----
5580

query I rowsort
SELECT ALL - 57 * ( + + 10 )
----
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT + 24 DIV 23
----
1

skipif mysql # not compatible
query I rowsort label-1545
SELECT + 24 / 23
----
1

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

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

query I rowsort
SELECT + 67 + - + ( - 71 )
----
138

query II rowsort
SELECT ( + 13 ) AS col0, + 62 AS col2
----
13
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT ALL + 70 * 53 - MAX( DISTINCT - 28 ) + + 38 AS col1, 57 + 42 AS col1
----
3776
99

skipif mysql # not compatible
query II rowsort label-1549
SELECT ALL + 70 * 53 - MAX ( DISTINCT - 28 ) + + 38 AS col1, 57 + 42 AS col1
----
3776
99

query I rowsort
SELECT + 81 * - 70 AS col2
----
-5670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT + + CAST( 74 AS SIGNED ) + + 56
----
130

skipif mysql # not compatible
query I rowsort label-1551
SELECT + + CAST ( 74 AS INTEGER ) + + 56
----
130

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

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

query I rowsort
SELECT - 20 * + 91 * 8 + 33
----
-14527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1554
SELECT - - 60 + + 58 - + - 79 * + + CAST( NULL AS SIGNED ) * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT - - 60 + + 58 - + - 79 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 22 * + 97 AS col0
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT + 97 * - 4 * + 22 * + COUNT( * ) col1
----
-8536

skipif mysql # not compatible
query I rowsort label-1557
SELECT + 97 * - 4 * + 22 * + COUNT ( * ) col1
----
-8536

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL - + COUNT( * ) * + CASE + 20 WHEN 80 THEN 10 END / - COUNT( * ) + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL - + COUNT ( * ) * + CASE + 20 WHEN 80 THEN 10 END / - COUNT ( * ) + - 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1559
SELECT DISTINCT - 72 * + 61 DIV - COUNT( * ) col2
----
4392

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT - 72 * + 61 / - COUNT ( * ) col2
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT - - 9 + - SUM( 65 )
----
-56

skipif mysql # not compatible
query I rowsort label-1560
SELECT - - 9 + - SUM ( 65 )
----
-56

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1562
SELECT ALL - + 61 + - 46 col2, 16 + NULLIF ( - 23, - CASE + MAX( DISTINCT - 12 ) WHEN - CAST( NULL AS SIGNED ) THEN + 52 + SUM( 30 ) END * - 48 + 19 )
----
-107
-7

skipif mysql # not compatible
query II rowsort label-1562
SELECT ALL - + 61 + - 46 col2, 16 + NULLIF ( - 23, - CASE + MAX ( DISTINCT - 12 ) WHEN - CAST ( NULL AS INTEGER ) THEN + 52 + SUM ( 30 ) END * - 48 + 19 )
----
-107
-7

query I rowsort
SELECT - 34 + - 2 AS col1
----
-36

query I rowsort
SELECT - 40 - 59 * - - 5 AS col0
----
-335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1565
SELECT - COALESCE ( + + COUNT( * ), + - 0 + - 73 + + - 38 ) + - CAST( + - 8 AS SIGNED ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1565
SELECT - COALESCE ( + + COUNT ( * ), + - 0 + - 73 + + - 38 ) + - CAST ( + - 8 AS INTEGER ) AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1566
SELECT ALL CAST( + 94 AS SIGNED ) col1
----
94

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL CAST ( + 94 AS INTEGER ) col1
----
94

query I rowsort
SELECT DISTINCT + 8 + 57
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1568
SELECT ALL - 54 + + + COUNT( * ) + - - COUNT( * ) * - MIN( - + 15 ) - - + CAST( + SUM( DISTINCT 69 ) AS SIGNED ) DIV 29 + 1
----
-35

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL - 54 + + + COUNT ( * ) + - - COUNT ( * ) * - MIN ( - + 15 ) - - + CAST ( + SUM ( DISTINCT 69 ) AS INTEGER ) / 29 + 1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - COUNT( ALL - 2 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1569
SELECT - COUNT ( ALL - 2 ) AS col2
----
-1

query II rowsort
SELECT + 93 AS col1, 35
----
93
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT - 51 DIV - - 4
----
-12

skipif mysql # not compatible
query I rowsort label-1571
SELECT - 51 / - - 4
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT - CASE - COALESCE ( MAX( ALL - 72 ), + - 86 ) WHEN + + 66 THEN - 6 * - NULLIF ( - 62, - 92 + 17 + - + 76 ) + 34 ELSE NULL END + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT - CASE - COALESCE ( MAX ( ALL - 72 ), + - 86 ) WHEN + + 66 THEN - 6 * - NULLIF ( - 62, - 92 + 17 + - + 76 ) + 34 ELSE NULL END + - 86 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT ALL 33 DIV 64 + + 63 - - 77 AS col0
----
140

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL 33 / 64 + + 63 - - 77 AS col0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1574
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-1574
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 24 AS col2
----
NULL
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT DISTINCT 70 DIV - + 23 + + 87 + - 19
----
65

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT 70 / - + 23 + + 87 + - 19
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL - 45 * - COALESCE ( - - 80, - COUNT( * ) ) col1
----
3600

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL - 45 * - COALESCE ( - - 80, - COUNT ( * ) ) col1
----
3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT - COALESCE ( - - CAST( NULL AS SIGNED ), 34 ) / - + CASE - 25 WHEN 60 / + 17 THEN NULL WHEN - 63 * + 0 THEN - COUNT( * ) WHEN + - MAX( DISTINCT - 10 ) THEN - NULLIF ( - 30, COUNT( * ) - 3 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT - COALESCE ( - - CAST ( NULL AS INTEGER ), 34 ) / - + CASE - 25 WHEN 60 / + 17 THEN NULL WHEN - 63 * + 0 THEN - COUNT ( * ) WHEN + - MAX ( DISTINCT - 10 ) THEN - NULLIF ( - 30, COUNT ( * ) - 3 ) END AS col0
----
NULL

query I rowsort
SELECT + 27 * + ( - 68 )
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT - 97 * + - COUNT( * ) * + + 61 AS col0
----
5917

skipif mysql # not compatible
query I rowsort label-1579
SELECT - 97 * + - COUNT ( * ) * + + 61 AS col0
----
5917

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1580
SELECT DISTINCT + COALESCE ( - ( + 88 ), + CAST( - 22 AS SIGNED ) DIV + 90 + + + 49 )
----
-88

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT + COALESCE ( - ( + 88 ), + CAST ( - 22 AS INTEGER ) / + 90 + + + 49 )
----
-88

query I rowsort
SELECT ALL - 46 * - CASE + 64 WHEN + 23 + - + 35 THEN + - 6 + + 86 END * 10 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 74 - 6 + - 86 * + 35
----
-2942

query I rowsort
SELECT - 72 * - 3 + + + 96
----
312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1585
SELECT ALL - - CAST( 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL - - CAST ( 98 AS INTEGER ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1586
SELECT COUNT( * ) * - CASE - 51 WHEN - ( + 30 ) - - + 91 + + + COUNT( * ) * 55 / MAX( - 84 ) * 13 * + + ( - 30 ) THEN COUNT( * ) END * CAST( - ( - COUNT( * ) ) AS SIGNED ) + - 0 / - 56 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1586
SELECT COUNT ( * ) * - CASE - 51 WHEN - ( + 30 ) - - + 91 + + + COUNT ( * ) * 55 / MAX ( - 84 ) * 13 * + + ( - 30 ) THEN COUNT ( * ) END * CAST ( - ( - COUNT ( * ) ) AS INTEGER ) + - 0 / - 56 col0
----
NULL

query I rowsort
SELECT ALL + 45 * - 95 AS col2
----
-4275

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

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

query I rowsort
SELECT ALL + 95 * + 56
----
5320

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL COUNT( DISTINCT - - 44 ) * + 14 * + - 51 + + 19 AS col1
----
-695

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL COUNT ( DISTINCT - - 44 ) * + 14 * + - 51 + + 19 AS col1
----
-695

query I rowsort
SELECT DISTINCT + 51 * + 88 AS col1
----
4488

query I rowsort
SELECT - 51 + - 24 AS col1
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-1593
SELECT + 78 DIV - 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT + 78 / - 88 col1
----
0

query I rowsort
SELECT ALL - 68 + + 38 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-1595
SELECT COALESCE ( - NULLIF ( 78, + 40 ), - 33 * - 57 ) + 92 + - - COUNT( * ) - + COUNT( 90 ) * 30 + + ( + 10 ) AS col0, 95 AS col1
----
-5
95

skipif mysql # not compatible
query II rowsort label-1595
SELECT COALESCE ( - NULLIF ( 78, + 40 ), - 33 * - 57 ) + 92 + - - COUNT ( * ) - + COUNT ( 90 ) * 30 + + ( + 10 ) AS col0, 95 AS col1
----
-5
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT ( + 13 ) + + 6 + - + COUNT( * ) * + + COUNT( * ) * - 50 + - 5 * COUNT( * ) * 36
----
-111

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT ( + 13 ) + + 6 + - + COUNT ( * ) * + + COUNT ( * ) * - 50 + - 5 * COUNT ( * ) * 36
----
-111

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

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

query II rowsort
SELECT 96 col1, + 11 AS col0
----
96
11

query I rowsort
SELECT ALL 93 + - - 72
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1600
SELECT DISTINCT 52 + + 36 + - 92 * - COUNT( * ) + 79 * - CAST( + 59 AS SIGNED ) + + + MIN( - - 76 ) + - 16 * 98 + 32
----
-5941

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT 52 + + 36 + - 92 * - COUNT ( * ) + 79 * - CAST ( + 59 AS INTEGER ) + + + MIN ( - - 76 ) + - 16 * 98 + 32
----
-5941

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT ALL - COUNT( * ) + 64
----
63

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - COUNT ( * ) + 64
----
63

query I rowsort
SELECT ALL 87 * 27
----
2349

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1603
SELECT - 36 AS col2, + CAST( 99 AS SIGNED )
----
-36
99

skipif mysql # not compatible
query II rowsort label-1603
SELECT - 36 AS col2, + CAST ( 99 AS INTEGER )
----
-36
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT CAST( + 80 AS SIGNED ) + + 38 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-1604
SELECT CAST ( + 80 AS INTEGER ) + + 38 AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1605
SELECT CASE - 0 WHEN + ( + + 74 ) * 54 * - AVG ( ( + 18 ) ) + - CAST( NULL AS SIGNED ) + 79 THEN COUNT( * ) / + 66 * + - 89 END - 80 + - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT CASE - 0 WHEN + ( + + 74 ) * 54 * - AVG ( ( + 18 ) ) + - CAST ( NULL AS INTEGER ) + 79 THEN COUNT ( * ) / + 66 * + - 89 END - 80 + - 4 AS col1
----
NULL

query II rowsort
SELECT - 46, 0 AS col1
----
-46
0

query II rowsort
SELECT ALL 99 AS col2, 48 AS col1
----
99
48

query I rowsort
SELECT 87 - - 13 + + 34
----
134

query I rowsort
SELECT DISTINCT 86 * ( + 8 ) AS col1
----
688

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

query I rowsort
SELECT ALL - CASE - 19 WHEN - + ( - 18 ) THEN 53 END
----
NULL

query I rowsort
SELECT 2 * 15 * 55 col1
----
1650

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1613
SELECT 6 + + 62 / + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1613
SELECT 6 + + 62 / + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 5 - + 21 + - 74 * + 19 AS col0
----
-1422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL + CASE CAST( + 6 AS SIGNED ) WHEN + - COALESCE ( ( + 44 ), + 6 ) / 94 * - - 90 THEN - 7 END * - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + CASE CAST ( + 6 AS INTEGER ) WHEN + - COALESCE ( ( + 44 ), + 6 ) / 94 * - - 90 THEN - 7 END * - + 61
----
NULL

query I rowsort
SELECT 22 - - 20 + 29 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT 92 * + MIN( DISTINCT - 57 ) AS col2
----
-5244

skipif mysql # not compatible
query I rowsort label-1617
SELECT 92 * + MIN ( DISTINCT - 57 ) AS col2
----
-5244

query I rowsort
SELECT 60 * + 86 - + - 13 * 65
----
6005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT ALL - CAST( - 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL - CAST ( - 49 AS INTEGER )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT 36 DIV + + 19 + + 15
----
16

skipif mysql # not compatible
query I rowsort label-1620
SELECT 36 / + + 19 + + 15
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT + 33 DIV + + 57
----
0

skipif mysql # not compatible
query I rowsort label-1621
SELECT + 33 / + + 57
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1622
SELECT ALL - - COALESCE ( + 24, + 26 + + 69 DIV + 73, + + 10 + - - 34 DIV - 71 * + NULLIF ( - 52, + 17 ) + 73 * - COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - - COALESCE ( + 24, + 26 + + 69 / + 73, + + 10 + - - 34 / - 71 * + NULLIF ( - 52, + 17 ) + 73 * - COUNT ( * ) )
----
24

query II rowsort
SELECT 21 AS col2, + 31 AS col0
----
21
31

query II rowsort
SELECT + 43 AS col1, - 37 AS col2
----
43
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL - - COUNT( ALL + 22 ) * - + 94 + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL - - COUNT ( ALL + 22 ) * - + 94 + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT COUNT( * ) * 22 * - 40 + + 56
----
-824

skipif mysql # not compatible
query I rowsort label-1626
SELECT COUNT ( * ) * 22 * - 40 + + 56
----
-824

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT ALL - + 52, - COUNT( * ) col0
----
-52
-1

skipif mysql # not compatible
query II rowsort label-1627
SELECT ALL - + 52, - COUNT ( * ) col0
----
-52
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT + 66 + CAST( NULL AS SIGNED ) * + COALESCE ( + 36, - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1629
SELECT + 66 + CAST ( NULL AS INTEGER ) * + COALESCE ( + 36, - 50 )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT 84 * + - 57 + + 90 + 37 + 98 DIV 8 * - 14
----
-4829

skipif mysql # not compatible
query I rowsort label-1631
SELECT 84 * + - 57 + + 90 + 37 + 98 / 8 * - 14
----
-4829

query I rowsort
SELECT + 49 * + 42 * 30 AS col2
----
61740

query I rowsort
SELECT ALL - 72 + 11 + + 71 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT - ( + 25 ) * + - ( + + 81 ) + - 0 + + 66 + - COUNT( * ) + - 57 AS col2
----
2033

skipif mysql # not compatible
query I rowsort label-1634
SELECT - ( + 25 ) * + - ( + + 81 ) + - 0 + + 66 + - COUNT ( * ) + - 57 AS col2
----
2033

query II rowsort
SELECT 76 AS col0, 58 AS col0
----
76
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT - 2 + - 7 / + - 93 + CASE 36 WHEN 69 THEN NULL WHEN - NULLIF ( - 1, - + 71 ) THEN NULL WHEN 90 THEN - 49 + + + COALESCE ( + CAST( 37 AS SIGNED ), - - COUNT( * ) + - 7 ) END + + CAST( - COUNT( * ) AS SIGNED ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 2 + - 7 / + - 93 + CASE 36 WHEN 69 THEN NULL WHEN - NULLIF ( - 1, - + 71 ) THEN NULL WHEN 90 THEN - 49 + + + COALESCE ( + CAST ( 37 AS INTEGER ), - - COUNT ( * ) + - 7 ) END + + CAST ( - COUNT ( * ) AS INTEGER ) * 20
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1637
SELECT DISTINCT COUNT( * ), - 6 * COUNT( * ) + + 74 AS col2, - + CASE - 1 WHEN - 86 / - + 41 THEN - - 72 * COUNT( ALL ( - 7 ) ) + + + 15 WHEN - COUNT( + 74 ) - - - COALESCE ( + COALESCE ( 46, + 0 + + 62 ), + ( - COUNT( * ) ) + 89, - 29 / - 17 ) THEN NULL END * + 64 AS col2
----
1
68
NULL

skipif mysql # not compatible
query III rowsort label-1637
SELECT DISTINCT COUNT ( * ), - 6 * COUNT ( * ) + + 74 AS col2, - + CASE - 1 WHEN - 86 / - + 41 THEN - - 72 * COUNT ( ALL ( - 7 ) ) + + + 15 WHEN - COUNT ( + 74 ) - - - COALESCE ( + COALESCE ( 46, + 0 + + 62 ), + ( - COUNT ( * ) ) + 89, - 29 / - 17 ) THEN NULL END * + 64 AS col2
----
1
68
NULL

query III rowsort
SELECT ALL 45 * 84, + 95 * 71 col0, - 98 AS col0
----
3780
6745
-98

query I rowsort
SELECT - 15 + + 77
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-1640
SELECT ALL + + 77 + + - 20 DIV 31 + 52 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL + + 77 + + - 20 / 31 + 52 AS col2
----
129

query I rowsort
SELECT ALL - 31 + + + 97 AS col2
----
66

query I rowsort
SELECT 78 + - + 15 AS col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1643
SELECT ALL COUNT( DISTINCT + 62 ) + + + 47 col2, - 78 * SUM( DISTINCT + + NULLIF ( - - 6, + 99 - + + 34 / - 59 ) ) * - COUNT( 36 )
----
48
468

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL COUNT ( DISTINCT + 62 ) + + + 47 col2, - 78 * SUM ( DISTINCT + + NULLIF ( - - 6, + 99 - + + 34 / - 59 ) ) * - COUNT ( 36 )
----
48
468

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1645
SELECT ALL 87 * 50, 27 * CAST( NULL AS SIGNED ) AS col0
----
4350
NULL

skipif mysql # not compatible
query II rowsort label-1645
SELECT ALL 87 * 50, 27 * CAST ( NULL AS INTEGER ) AS col0
----
4350
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1646
SELECT ALL COUNT( * ) + 42 DIV 23 * - + 51 * 91 * - 32 AS col0
----
148513

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL COUNT ( * ) + 42 / 23 * - + 51 * 91 * - 32 AS col0
----
148513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT ( CASE - 3 WHEN - 60 THEN 54 * 84 + + - 19 + 32 WHEN + - 51 THEN NULL ELSE + - COALESCE ( + 59, + + 85 * - - 62 * + ( + 72 ), + - CAST( 46 AS SIGNED ) ) END ) + 25
----
-34

skipif mysql # not compatible
query I rowsort label-1647
SELECT ( CASE - 3 WHEN - 60 THEN 54 * 84 + + - 19 + 32 WHEN + - 51 THEN NULL ELSE + - COALESCE ( + 59, + + 85 * - - 62 * + ( + 72 ), + - CAST ( 46 AS INTEGER ) ) END ) + 25
----
-34

query I rowsort
SELECT 16 + - + 81 + - 3 col0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1649
SELECT CAST( - MAX( DISTINCT - 80 ) AS SIGNED ) + - NULLIF ( + - 16, + 85 ) DIV + 84 * - 36 * + + 49 * - + 97 + - - COUNT( * ) + - 53
----
28

skipif mysql # not compatible
query I rowsort label-1649
SELECT CAST ( - MAX ( DISTINCT - 80 ) AS INTEGER ) + - NULLIF ( + - 16, + 85 ) / + 84 * - 36 * + + 49 * - + 97 + - - COUNT ( * ) + - 53
----
28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT - CASE - 6 WHEN - 69 / - + COUNT( * ) THEN NULL WHEN - - 41 THEN ( - CASE 82 WHEN 7 THEN COALESCE ( MAX( ALL + 31 ), - + CAST( NULL AS SIGNED ) ) * 33 + + 6 WHEN - 12 * + COUNT( * ) - + 56 + CAST( NULL AS SIGNED ) THEN 43 ELSE NULL END ) + 59 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT - CASE - 6 WHEN - 69 / - + COUNT ( * ) THEN NULL WHEN - - 41 THEN ( - CASE 82 WHEN 7 THEN COALESCE ( MAX ( ALL + 31 ), - + CAST ( NULL AS INTEGER ) ) * 33 + + 6 WHEN - 12 * + COUNT ( * ) - + 56 + CAST ( NULL AS INTEGER ) THEN 43 ELSE NULL END ) + 59 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT ALL + ( - COALESCE ( + + 52, - 53 ) ) - - - 24 DIV + 29
----
-52

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL + ( - COALESCE ( + + 52, - 53 ) ) - - - 24 / + 29
----
-52

query I rowsort
SELECT COALESCE ( 23, 59 ) * + + 42
----
966

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT - 67 + + + ( + 19 ) * COUNT( * ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-1654
SELECT - 67 + + + ( + 19 ) * COUNT ( * ) col0
----
-48

query I rowsort
SELECT CASE NULLIF ( - 49, AVG ( DISTINCT 60 ) + + + 22 + + 14 ) WHEN - + 78 / 47 THEN 62 WHEN 29 + ( + - 34 ) THEN NULL END
----
NULL

query I rowsort
SELECT - 44 + + 38 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT + CASE + + COUNT( ALL 53 ) WHEN 59 THEN 42 * COALESCE ( - ( 37 ), + 18 ) ELSE NULL END * - - MAX( DISTINCT + ( - - 39 ) ) + - 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + CASE + + COUNT ( ALL 53 ) WHEN 59 THEN 42 * COALESCE ( - ( 37 ), + 18 ) ELSE NULL END * - - MAX ( DISTINCT + ( - - 39 ) ) + - 39 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT + NULLIF ( 55, - 53 * + MAX( ALL + 88 ) + + COUNT( * ) + - 50 + - 98 * + 18 * + + 62 * - 42 )
----
55

skipif mysql # not compatible
query I rowsort label-1658
SELECT + NULLIF ( 55, - 53 * + MAX ( ALL + 88 ) + + COUNT ( * ) + - 50 + - 98 * + 18 * + + 62 * - 42 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT DISTINCT 9 * 67 + + CAST( + COUNT( * ) AS SIGNED ) * + - 83 * - 56 + + 20 AS col1
----
5271

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT 9 * 67 + + CAST ( + COUNT ( * ) AS INTEGER ) * + - 83 * - 56 + + 20 AS col1
----
5271

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT ALL + 79 DIV - 2 + - ( - 10 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + 79 / - 2 + - ( - 10 ) AS col0
----
-29

query I rowsort
SELECT - + 57 + 56 + + - NULLIF ( - + 59, - + 27 / - 19 ) AS col0
----
58

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

query I rowsort
SELECT 82 * 85 + ( + 53 )
----
7023

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT ALL + + 22 * + COUNT( * ) * - 81 + - + 98 + NULLIF ( - 39, + 48 ) AS col1
----
-1919

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + + 22 * + COUNT ( * ) * - 81 + - + 98 + NULLIF ( - 39, + 48 ) AS col1
----
-1919

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1666
SELECT ALL 30 * - 62 + + ( - 62 ) - COUNT( * ) / + - 39 * - CASE + - SUM( 11 ) WHEN 75 + CAST( NULL AS SIGNED ) + - 71 * + - 43 THEN - - 26 + - MIN( 23 ) * + - 67 * - 4 ELSE NULL END + - 56 / ( - MIN( ALL ( 55 ) ) / + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL 30 * - 62 + + ( - 62 ) - COUNT ( * ) / + - 39 * - CASE + - SUM ( 11 ) WHEN 75 + CAST ( NULL AS INTEGER ) + - 71 * + - 43 THEN - - 26 + - MIN ( 23 ) * + - 67 * - 4 ELSE NULL END + - 56 / ( - MIN ( ALL ( 55 ) ) / + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1667
SELECT - 72 * - - 54, COUNT( ALL + 48 ) AS col1
----
-3888
1

skipif mysql # not compatible
query II rowsort label-1667
SELECT - 72 * - - 54, COUNT ( ALL + 48 ) AS col1
----
-3888
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1668
SELECT DISTINCT - 85 * - 71 - 22 AS col1, - CAST( - 20 AS SIGNED )
----
6013
20

skipif mysql # not compatible
query II rowsort label-1668
SELECT DISTINCT - 85 * - 71 - 22 AS col1, - CAST ( - 20 AS INTEGER )
----
6013
20

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT + CASE + 14 WHEN - - 1 + - + 21 * - + 21 THEN - 0 - - - 52 WHEN + ( + + 6 ) THEN NULL ELSE + 2 DIV 10 END col2
----
0

skipif mysql # not compatible
query I rowsort label-1669
SELECT + CASE + 14 WHEN - - 1 + - + 21 * - + 21 THEN - 0 - - - 52 WHEN + ( + + 6 ) THEN NULL ELSE + 2 / 10 END col2
----
0

query I rowsort
SELECT ALL + 60 + - + ( + + 54 )
----
6

query II rowsort
SELECT 21 AS col2, 53 * 72
----
21
3816

query I rowsort
SELECT ALL + 22 - - - 44 AS col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1673
SELECT - CASE + - 74 WHEN - 72 + - SUM( + 0 ) + 62 * 58 THEN 64 - - CAST( - 77 AS SIGNED ) END * + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT - CASE + - 74 WHEN - 72 + - SUM ( + 0 ) + 62 * 58 THEN 64 - - CAST ( - 77 AS INTEGER ) END * + + 5
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT - COUNT( 88 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1675
SELECT - COUNT ( 88 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT ALL COALESCE ( + - 21, NULLIF ( - 20, - + 23 ) * + 2 * + + CAST( - MAX( 97 ) AS SIGNED ) - - + 1 * + + 66 ) * + 85 * - 44 + - ( - 74 )
----
78614

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL COALESCE ( + - 21, NULLIF ( - 20, - + 23 ) * + 2 * + + CAST ( - MAX ( 97 ) AS INTEGER ) - - + 1 * + + 66 ) * + 85 * - 44 + - ( - 74 )
----
78614

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1678
SELECT DISTINCT + 5 DIV ( + 19 )
----
0

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT + 5 / ( + 19 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1679
SELECT + 92 DIV + COUNT( + - 19 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1679
SELECT + 92 / + COUNT ( + - 19 ) AS col0
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT - COUNT( DISTINCT + + 24 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1681
SELECT - COUNT ( DISTINCT + + 24 ) col0
----
-1

query I rowsort
SELECT - 38 + 37
----
-1

query I rowsort
SELECT - ( - NULLIF ( + - 5, 59 ) )
----
-5

query II rowsort
SELECT ALL 9 AS col0, - 75
----
9
-75

query I rowsort
SELECT + 61 * - - 57
----
3477

query I rowsort
SELECT + 32 - - 94
----
126

query I rowsort
SELECT + 96 * - 91
----
-8736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1688
SELECT DISTINCT CAST( + AVG ( + - 95 ) AS SIGNED ) col0, ( + 4 )
----
-95
4

skipif mysql # not compatible
query II rowsort label-1688
SELECT DISTINCT CAST ( + AVG ( + - 95 ) AS INTEGER ) col0, ( + 4 )
----
-95
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1689
SELECT ALL 20 DIV + MIN( - 26 ) AS col1, 59 AS col0
----
0
59

skipif mysql # not compatible
query II rowsort label-1689
SELECT ALL 20 / + MIN ( - 26 ) AS col1, 59 AS col0
----
0
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT + 25 DIV + + 88
----
0

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 25 / + + 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1691
SELECT DISTINCT - COUNT( * ) DIV + 38 + 75 * - - SUM( 52 ) AS col0
----
3900

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - COUNT ( * ) / + 38 + 75 * - - SUM ( 52 ) AS col0
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT - CASE + 68 WHEN + + 37 / 67 * - COUNT( 69 ) THEN + 74 END / + SUM( - 7 ) + - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - CASE + 68 WHEN + + 37 / 67 * - COUNT ( 69 ) THEN + 74 END / + SUM ( - 7 ) + - + 41
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT DISTINCT - - 10 DIV 53 * - 85 * + - 81 + + 84 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT - - 10 / 53 * - 85 * + - 81 + + 84 AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1695
SELECT DISTINCT - + 11 / + 8 + 58 + - + 15 * + 71 * + - COUNT( + + 50 ) * COALESCE ( + 28, - 40, - 88 * 19 ) + - + 9 * 24 + - 19 + - CAST( NULL AS SIGNED ) * + 89 * - SUM( ALL 55 ) + 3 * + ( - 17 * + COUNT( * ) - - 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - + 11 / + 8 + 58 + - + 15 * + 71 * + - COUNT ( + + 50 ) * COALESCE ( + 28, - 40, - 88 * 19 ) + - + 9 * 24 + - 19 + - CAST ( NULL AS INTEGER ) * + 89 * - SUM ( ALL 55 ) + 3 * + ( - 17 * + COUNT ( * ) - - 46 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT DISTINCT + - 45 / 28 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT + - 45 / 28 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT ALL + 88 DIV - 92 + 97 + - + 6 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + 88 / - 92 + 97 + - + 6 AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1698
SELECT + 39 AS col2, + COALESCE ( + 47, + 42 * + ( 28 ) * + 38 - - ( - + 28 ), - 5 ) + + COUNT( * ) AS col1
----
39
48

skipif mysql # not compatible
query II rowsort label-1698
SELECT + 39 AS col2, + COALESCE ( + 47, + 42 * + ( 28 ) * + 38 - - ( - + 28 ), - 5 ) + + COUNT ( * ) AS col1
----
39
48

query I rowsort
SELECT + - ( - + 53 ) * 56 * - - 81 + - 87
----
240321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1700
SELECT DISTINCT - MAX( DISTINCT + - 84 ) * - 19 - - CAST( NULL AS SIGNED ) + + + 29 + - + 32 + - + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - MAX ( DISTINCT + - 84 ) * - 19 - - CAST ( NULL AS INTEGER ) + + + 29 + - + 32 + - + 93 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL - 23 * 0 + + 46 + + COUNT ( * )
----
47

query I rowsort
SELECT ALL - 87 * - 22 + + 78 + + 70 + - 78
----
1984

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

query I rowsort
SELECT DISTINCT + ( + 9 ) col2
----
9

query I rowsort
SELECT - - 51 * 47
----
2397

query I rowsort
SELECT + 64 + + 66
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT ALL - 94 * + 51 - 42 + - + 24 + 56 + COUNT( * ) * - 77 * - COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - 94 * + 51 - 42 + - + 24 + 56 + COUNT ( * ) * - 77 * - COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL + NULLIF ( - + SUM( ALL + 94 ), + COUNT( * ) - 44 )
----
-94

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + NULLIF ( - + SUM ( ALL + 94 ), + COUNT ( * ) - 44 )
----
-94

query I rowsort
SELECT - 5 * - 30 * + 64 AS col0
----
9600

query II rowsort
SELECT - 10 * - 10 AS col2, 36
----
100
36

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

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

query I rowsort
SELECT - 22 + + - 5
----
-27

query I rowsort
SELECT ALL CASE - - 64 WHEN - 18 THEN NULL WHEN - - 92 THEN - 38 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1714
SELECT DISTINCT + 19 * 86 DIV - ( COUNT( * ) )
----
-1634

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT + 19 * 86 / - ( COUNT ( * ) )
----
-1634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1715
SELECT 12 + + COUNT( * ) DIV 17 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1715
SELECT 12 + + COUNT ( * ) / 17 AS col2
----
12

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

skipif mysql # not compatible
query I rowsort label-1716
SELECT 93 * + COUNT ( * ) * - 86 AS col0
----
-7998

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT 41 + - COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-1718
SELECT 41 + - COUNT ( * ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL NULLIF ( - - COUNT( * ), 76 ) + 38 + - 98 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL NULLIF ( - - COUNT ( * ), 76 ) + 38 + - 98 AS col2
----
-59

query II rowsort
SELECT ALL 79 + + - 70 AS col0, - 59 + - 31
----
9
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT 31 * - ( + - CASE + 88 WHEN + 73 + - COALESCE ( - COUNT( * ), - 22 ) THEN - 82 END ) AS col2, 63
----
NULL
63

skipif mysql # not compatible
query II rowsort label-1721
SELECT 31 * - ( + - CASE + 88 WHEN + 73 + - COALESCE ( - COUNT ( * ), - 22 ) THEN - 82 END ) AS col2, 63
----
NULL
63

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

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

query I rowsort
SELECT ALL - 56 + + 75 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1724
SELECT ALL MAX( DISTINCT + 63 ) + + + ( 35 ) col0, - CAST( NULL AS SIGNED ) - - 84 + 35 * - 68 + + 26 * + + 14 AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1724
SELECT ALL MAX ( DISTINCT + 63 ) + + + ( 35 ) col0, - CAST ( NULL AS INTEGER ) - - 84 + 35 * - 68 + + 26 * + + 14 AS col2
----
98
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1725
SELECT ALL CAST( NULL AS SIGNED ) + - 31 / - - 97 * + 32 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL CAST ( NULL AS INTEGER ) + - 31 / - - 97 * + 32 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT DISTINCT + 34 + + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + 34 + + - COUNT ( * )
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-1727
SELECT 49 DIV 12, - 59 col1
----
4
-59

skipif mysql # not compatible
query II rowsort label-1727
SELECT 49 / 12, - 59 col1
----
4
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT + 45 * + COUNT( * ) + - 85 * 35 * ( NULLIF ( - ( 48 ), 64 * + 94 ) )
----
142845

skipif mysql # not compatible
query I rowsort label-1728
SELECT + 45 * + COUNT ( * ) + - 85 * 35 * ( NULLIF ( - ( 48 ), 64 * + 94 ) )
----
142845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1729
SELECT DISTINCT - - 46 + - CAST( - + 18 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT - - 46 + - CAST ( - + 18 AS INTEGER )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT DISTINCT - 52 DIV 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - 52 / 40 AS col0
----
-1

query I rowsort
SELECT ALL + 35 * - 49 AS col2
----
-1715

query I rowsort
SELECT 59 * - - 66 + + 0 + + 60 AS col2
----
3954

onlyif mysql # DIV for integer division: 
query I rowsort label-1733
SELECT ALL 51 DIV - 31
----
-1

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL 51 / - 31
----
-1

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

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

query I rowsort
SELECT 8 + - - 26 * + 3
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1736
SELECT + - CASE CAST( NULL AS DECIMAL ) WHEN - + 15 THEN + 3 END * + + COALESCE ( + COUNT( * ), - 46 ) + - - 80 + + + CAST( - - 43 AS SIGNED ) AS col2, 97 AS col0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-1736
SELECT + - CASE CAST ( NULL AS REAL ) WHEN - + 15 THEN + 3 END * + + COALESCE ( + COUNT ( * ), - 46 ) + - - 80 + + + CAST ( - - 43 AS INTEGER ) AS col2, 97 AS col0
----
NULL
97

query I rowsort
SELECT 98 * + 20 * 69
----
135240

query I rowsort
SELECT ALL 87 * 34 AS col0
----
2958

query I rowsort
SELECT DISTINCT - CASE 26 WHEN - 71 + 82 + - 38 THEN NULL ELSE 11 END AS col0
----
-11

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

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

query I rowsort
SELECT 15 * - - 34 col2
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT SUM( - 45 ) * 42
----
-1890

skipif mysql # not compatible
query I rowsort label-1742
SELECT SUM ( - 45 ) * 42
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1743
SELECT NULLIF ( ( + 27 ), - NULLIF ( + + 60, - + 38 + - 66 * + - 32 + + - COUNT( * ) ) * - ( + 91 ) + + + 94 ) DIV 1 AS col1, + 44 * - NULLIF ( + - MIN( + 13 ), + - NULLIF ( + ( ( - CAST( NULL AS SIGNED ) ) ), - COUNT( * ) ) )
----
27
572

skipif mysql # not compatible
query II rowsort label-1743
SELECT NULLIF ( ( + 27 ), - NULLIF ( + + 60, - + 38 + - 66 * + - 32 + + - COUNT ( * ) ) * - ( + 91 ) + + + 94 ) / 1 AS col1, + 44 * - NULLIF ( + - MIN ( + 13 ), + - NULLIF ( + ( ( - CAST ( NULL AS INTEGER ) ) ), - COUNT ( * ) ) )
----
27
572

query I rowsort
SELECT 41 * - 84
----
-3444

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1746
SELECT 31 DIV + - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1746
SELECT 31 / + - 87 AS col1
----
0

query I rowsort
SELECT ALL + 97 + + 17 AS col2
----
114

query I rowsort
SELECT DISTINCT + 25 * - 84
----
-2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1749
SELECT 47 - + - MIN( - 98 ) DIV - 43 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1749
SELECT 47 - + - MIN ( - 98 ) / - 43 AS col2
----
49

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

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

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

query I rowsort
SELECT 28 + + ( - 25 )
----
3

query I rowsort
SELECT + 77 * 98
----
7546

query I rowsort
SELECT ALL - 5 + 13
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1755
SELECT DISTINCT - 46 AS col0, 65 + 96 - + + COALESCE ( + ( 77 ), + COUNT( * ) + - + 94 ) * - 26 - - 82 + 86 + - COUNT( * ) DIV - 41
----
-46
2331

skipif mysql # not compatible
query II rowsort label-1755
SELECT DISTINCT - 46 AS col0, 65 + 96 - + + COALESCE ( + ( 77 ), + COUNT ( * ) + - + 94 ) * - 26 - - 82 + 86 + - COUNT ( * ) / - 41
----
-46
2331

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL - 56 * + SUM( + 98 ) col1
----
-5488

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - 56 * + SUM ( + 98 ) col1
----
-5488

query I rowsort
SELECT + 43 + + 63
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT + + NULLIF ( + - 74, - + 32 + - 75 ) DIV - 86 + - 69 - - + 61 * - + NULLIF ( 46, - + ( + 75 ) * + - 53 )
----
-2875

skipif mysql # not compatible
query I rowsort label-1759
SELECT + + NULLIF ( + - 74, - + 32 + - 75 ) / - 86 + - 69 - - + 61 * - + NULLIF ( 46, - + ( + 75 ) * + - 53 )
----
-2875

onlyif mysql # aggregate syntax: 
query III rowsort label-1760
SELECT ALL - 84 AS col2, - 72 + + - 19 AS col2, + COUNT( * ) - - NULLIF ( + 30, - MIN( + 68 ) + + + 35 ) AS col2
----
-84
-91
31

skipif mysql # not compatible
query III rowsort label-1760
SELECT ALL - 84 AS col2, - 72 + + - 19 AS col2, + COUNT ( * ) - - NULLIF ( + 30, - MIN ( + 68 ) + + + 35 ) AS col2
----
-84
-91
31

query I rowsort
SELECT DISTINCT - 6 * + - 40 * + 9 AS col1
----
2160

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

skipif mysql # not compatible
query I rowsort label-1762
SELECT + SUM ( + + ( - + 38 ) )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT CAST( - - 97 AS SIGNED ) * - 7
----
-679

skipif mysql # not compatible
query I rowsort label-1763
SELECT CAST ( - - 97 AS INTEGER ) * - 7
----
-679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1764
SELECT + + 21 * + CAST( 81 AS SIGNED ) * 85 * 59 + - + 9 - + 75 + - 27 * ( SUM( DISTINCT - 61 ) ) + + + 69 - + + 49 AS col0, 32
----
8532098
32

skipif mysql # not compatible
query II rowsort label-1764
SELECT + + 21 * + CAST ( 81 AS INTEGER ) * 85 * 59 + - + 9 - + 75 + - 27 * ( SUM ( DISTINCT - 61 ) ) + + + 69 - + + 49 AS col0, 32
----
8532098
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT ALL NULLIF ( - ( 45 ), - ( + ( - - 42 ) ) DIV 89 ) DIV + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL NULLIF ( - ( 45 ), - ( + ( - - 42 ) ) / 89 ) / + 84 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT DISTINCT ( COUNT( * ) ) * 76 * + - COALESCE ( + 93, - NULLIF ( - 62, + 52 ) * + 4, + 67 + - - 7 ) * + - 84
----
593712

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT ( COUNT ( * ) ) * 76 * + - COALESCE ( + 93, - NULLIF ( - 62, + 52 ) * + 4, + 67 + - - 7 ) * + - 84
----
593712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1767
SELECT DISTINCT COUNT( * ) DIV COALESCE ( - + COUNT( * ), - 76, + 69 + - - 11, - + COALESCE ( - + 50, 16 + + COUNT( * ) - 93 - - 2 * - 59 * + 26 * CASE + COUNT( * ) WHEN 3 THEN NULL WHEN + NULLIF ( - + 71, - 21 ) + 18 THEN - 12 ELSE NULL END ), + AVG ( + 94 ) + 1 ) * + 32
----
-32

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT COUNT ( * ) / COALESCE ( - + COUNT ( * ), - 76, + 69 + - - 11, - + COALESCE ( - + 50, 16 + + COUNT ( * ) - 93 - - 2 * - 59 * + 26 * CASE + COUNT ( * ) WHEN 3 THEN NULL WHEN + NULLIF ( - + 71, - 21 ) + 18 THEN - 12 ELSE NULL END ), + AVG ( + 94 ) + 1 ) * + 32
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1768
SELECT + 51 DIV - + 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1768
SELECT + 51 / - + 63 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1770
SELECT ALL + 57 AS col2, CAST( NULL AS SIGNED ) + COUNT( * ) + + 51 + + + 39 * + 1 + COUNT( * ) * + + ( 64 )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-1770
SELECT ALL + 57 AS col2, CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 51 + + + 39 * + 1 + COUNT ( * ) * + + ( 64 )
----
57
NULL

query II rowsort
SELECT ALL + 60, ( + - 6 ) AS col1
----
60
-6

query I rowsort
SELECT + 45 * 5
----
225

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

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

query I rowsort
SELECT - 14 * + - 69 * + - 17 + - + 46 AS col1
----
-16468

query II rowsort
SELECT ALL 2 AS col0, - 97 AS col0
----
2
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT DISTINCT COUNT( * ) + - + 24 * - ( - 40 ) * 18 * - 7 + 96 AS col0
----
121057

skipif mysql # not compatible
query I rowsort label-1776
SELECT DISTINCT COUNT ( * ) + - + 24 * - ( - 40 ) * 18 * - 7 + 96 AS col0
----
121057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1777
SELECT - CASE 63 WHEN 12 THEN NULL WHEN - 64 * - CAST( COUNT( * ) AS SIGNED ) THEN 90 END, + 53 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-1777
SELECT - CASE 63 WHEN 12 THEN NULL WHEN - 64 * - CAST ( COUNT ( * ) AS INTEGER ) THEN 90 END, + 53 AS col2
----
NULL
53

query I rowsort
SELECT DISTINCT 26 + + - ( + + 69 ) + + ( - 24 ) AS col1
----
-67

query II rowsort
SELECT ALL 69 AS col1, 16 * + - 63 * 71
----
69
-71568

query I rowsort
SELECT + 0 * - 27 * - 84 * - 21 + 59 col2
----
59

query I rowsort
SELECT DISTINCT + 18 * + 90
----
1620

onlyif mysql # aggregate syntax: 
query II rowsort label-1782
SELECT ALL - 60 + COUNT( * ) AS col1, MIN( - ( + + 10 ) )
----
-59
-10

skipif mysql # not compatible
query II rowsort label-1782
SELECT ALL - 60 + COUNT ( * ) AS col1, MIN ( - ( + + 10 ) )
----
-59
-10

query II rowsort
SELECT - 57, ( - - 82 ) AS col1
----
-57
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT ALL + + NULLIF ( - 4, - 81 ) * CAST( + 67 AS SIGNED ) AS col2
----
-268

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + + NULLIF ( - 4, - 81 ) * CAST ( + 67 AS INTEGER ) AS col2
----
-268

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT + 27 DIV - - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT + 27 / - - 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT DISTINCT - 57 * - 64 - + 24 + COUNT( * ) + 45 * + + 66 * 42 * + + 40
----
4993225

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT - 57 * - 64 - + 24 + COUNT ( * ) + 45 * + + 66 * 42 * + + 40
----
4993225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1787
SELECT ALL - + CAST( NULL AS SIGNED ) - 84 * AVG ( ALL + 86 ) * + - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL - + CAST ( NULL AS INTEGER ) - 84 * AVG ( ALL + 86 ) * + - ( - COUNT ( * ) )
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT - 66 - + ( - + 0 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT + + 2 * + - 4 * COALESCE ( - 58, - COUNT( * ) * + 91 + 35 + 54 * 0 * - 24, - 67 + + AVG ( 31 ) ) + - COUNT( * ) + COUNT( * ) * 78 * + CASE - SUM( DISTINCT 36 ) WHEN - 83 + - 72 THEN + 44 + - MIN( ALL + 44 ) * - ( ( 55 ) ) WHEN + COUNT( ALL 52 ) * - CAST( 55 / - 82 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT + + 2 * + - 4 * COALESCE ( - 58, - COUNT ( * ) * + 91 + 35 + 54 * 0 * - 24, - 67 + + AVG ( 31 ) ) + - COUNT ( * ) + COUNT ( * ) * 78 * + CASE - SUM ( DISTINCT 36 ) WHEN - 83 + - 72 THEN + 44 + - MIN ( ALL + 44 ) * - ( ( 55 ) ) WHEN + COUNT ( ALL 52 ) * - CAST ( 55 / - 82 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT - COUNT( ALL 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-1792
SELECT - COUNT ( ALL 86 )
----
-1

query II rowsort
SELECT + - 20 AS col2, + 73 AS col0
----
-20
73

query III rowsort
SELECT + 3 AS col0, 77 AS col0, - 18 AS col2
----
3
77
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT DISTINCT + + CASE - 70 WHEN + - COALESCE ( + 73, + 82 - + - 57, - + 91 ) - - + ( + 3 ) + ( + 3 ) THEN - - 75 - 47 * - 7 WHEN + + COUNT( * ) + + + COALESCE ( - AVG ( 37 ), - + 3 ) THEN - ( 89 ) + 12 END * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT + + CASE - 70 WHEN + - COALESCE ( + 73, + 82 - + - 57, - + 91 ) - - + ( + 3 ) + ( + 3 ) THEN - - 75 - 47 * - 7 WHEN + + COUNT ( * ) + + + COALESCE ( - AVG ( 37 ), - + 3 ) THEN - ( 89 ) + 12 END * 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1796
SELECT 32 * 94 + 45 - + + NULLIF ( 60, - + 81 ) * - ( + 55 ) - COUNT( * ) DIV + - ( + 35 ) * + - COUNT( * ) + + + 17 + 88 * 15 AS col0, + CASE 69 WHEN COALESCE ( + 81, + - 95 * + - 36 - - 58 * 45 ) * 53 THEN NULL WHEN + 97 * + CAST( NULL AS SIGNED ) THEN NULL WHEN + COUNT( * ) THEN + 96 WHEN 33 THEN ( 72 ) END AS col0
----
7690
NULL

skipif mysql # not compatible
query II rowsort label-1796
SELECT 32 * 94 + 45 - + + NULLIF ( 60, - + 81 ) * - ( + 55 ) - COUNT ( * ) / + - ( + 35 ) * + - COUNT ( * ) + + + 17 + 88 * 15 AS col0, + CASE 69 WHEN COALESCE ( + 81, + - 95 * + - 36 - - 58 * 45 ) * 53 THEN NULL WHEN + 97 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + COUNT ( * ) THEN + 96 WHEN 33 THEN ( 72 ) END AS col0
----
7690
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT + MAX( + + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-1797
SELECT + MAX ( + + 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT - CAST( NULL AS SIGNED ) / + AVG ( - 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT - CAST ( NULL AS INTEGER ) / + AVG ( - 67 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT - COUNT( * ) * - 52 + - - 58
----
110

skipif mysql # not compatible
query I rowsort label-1799
SELECT - COUNT ( * ) * - 52 + - - 58
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT DISTINCT + CAST( - 30 AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT + CAST ( - 30 AS INTEGER )
----
-30

query I rowsort
SELECT NULLIF ( 6, + 55 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT ALL + NULLIF ( 98, - 27 ) * + ( MAX( ALL - 91 ) ) AS col1
----
-8918

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL + NULLIF ( 98, - 27 ) * + ( MAX ( ALL - 91 ) ) AS col1
----
-8918

query I rowsort
SELECT CASE 97 WHEN 23 + + 60 * + - 71 THEN 57 END
----
NULL

query I rowsort
SELECT + 79 * 78 AS col2
----
6162

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

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT 85 / - ( COUNT ( * ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT - MAX( - 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1806
SELECT - MAX ( - 66 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1807
SELECT + SUM( + CAST( NULL AS SIGNED ) ) * - + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) * - + 1 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1808
SELECT ALL + 90 * 78 * ( - CAST( + 17 AS SIGNED ) ) * - + MIN( 22 ) + + 95 AS col0
----
2625575

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL + 90 * 78 * ( - CAST ( + 17 AS INTEGER ) ) * - + MIN ( 22 ) + + 95 AS col0
----
2625575

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT + 43 - + + COUNT( * ) + + + 2 col2
----
44

skipif mysql # not compatible
query I rowsort label-1809
SELECT + 43 - + + COUNT ( * ) + + + 2 col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + 98 - - COUNT( * ) * + + 32 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-1810
SELECT + 98 - - COUNT ( * ) * + + 32 AS col0
----
130

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

skipif mysql # not compatible
query I rowsort label-1811
SELECT + - ( - 84 ) * - 98 - + - COUNT ( * ) + + 34 AS col2
----
-8197

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT - CAST( - ( + - ( + - 51 ) ) AS SIGNED ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-1813
SELECT - CAST ( - ( + - ( + - 51 ) ) AS INTEGER ) AS col2
----
51

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1815
SELECT ALL - CAST( NULL AS SIGNED ) * + + 23, + 68 col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-1815
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 23, + 68 col1
----
NULL
68

query I rowsort
SELECT - CASE + + 27 WHEN - 2 - + 40 + 66 * 17 * 11 THEN + 15 END
----
NULL

query I rowsort
SELECT + - 73 + + 30 * - 88
----
-2713

query I rowsort
SELECT + 1 * + 7 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1819
SELECT - ( 31 ) * - COALESCE ( - 82, + - CASE + 57 WHEN + 87 THEN + CAST( NULL AS SIGNED ) + + 75 END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1819
SELECT - ( 31 ) * - COALESCE ( - 82, + - CASE + 57 WHEN + 87 THEN + CAST ( NULL AS INTEGER ) + + 75 END ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT DISTINCT + 46 DIV + 88 - 1 * + 93 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + 46 / + 88 - 1 * + 93 AS col1
----
-93

query I rowsort
SELECT - 88 * 55
----
-4840

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL CASE COUNT( * ) WHEN + 31 * + COALESCE ( - + MIN( 61 ), 42 ) THEN - + 0 WHEN - 91 * 97 THEN - 8 END * - - 89 - + 19 * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL CASE COUNT ( * ) WHEN + 31 * + COALESCE ( - + MIN ( 61 ), 42 ) THEN - + 0 WHEN - 91 * 97 THEN - 8 END * - - 89 - + 19 * + 75
----
NULL

query I rowsort
SELECT + 28 + - ( - 44 ) + - - 40
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL + CAST( NULL AS SIGNED ) / CASE - 61 WHEN + - 21 THEN - 9 WHEN + + 86 + 17 THEN NULL ELSE ( - 88 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + CAST ( NULL AS INTEGER ) / CASE - 61 WHEN + - 21 THEN - 9 WHEN + + 86 + 17 THEN NULL ELSE ( - 88 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT + + 90 * - 9 * + 31 + + 86 * - - 32 * - SUM( ALL + 41 ) AS col0
----
-137942

skipif mysql # not compatible
query I rowsort label-1825
SELECT + + 90 * - 9 * + 31 + + 86 * - - 32 * - SUM ( ALL + 41 ) AS col0
----
-137942

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

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

query II rowsort
SELECT ALL + 10 + - 21, + 94 + - 64 AS col2
----
-11
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL + 52 * MAX( 5 )
----
260

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL + 52 * MAX ( 5 )
----
260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1829
SELECT + + CAST( + + 36 AS SIGNED ) AS col1, - 75 * + CASE 28 WHEN CASE + 61 WHEN - 35 THEN + 71 * - 88 - + COALESCE ( - 96, - NULLIF ( 20, + 19 + - 37 * - - 65 * + 78 ), + ( - - 20 ) ) + - 95 WHEN - NULLIF ( - ( 24 ), + 51 ) + 74 * + COUNT( * ) THEN 18 + 94 END THEN NULL WHEN + COUNT( * ) THEN 51 + NULLIF ( 94 - + COUNT( * ) * 87, + 74 ) ELSE + ( COALESCE ( + 1, - COUNT( * ), - 27 ) ) END AS col2
----
36
-75

skipif mysql # not compatible
query II rowsort label-1829
SELECT + + CAST ( + + 36 AS INTEGER ) AS col1, - 75 * + CASE 28 WHEN CASE + 61 WHEN - 35 THEN + 71 * - 88 - + COALESCE ( - 96, - NULLIF ( 20, + 19 + - 37 * - - 65 * + 78 ), + ( - - 20 ) ) + - 95 WHEN - NULLIF ( - ( 24 ), + 51 ) + 74 * + COUNT ( * ) THEN 18 + 94 END THEN NULL WHEN + COUNT ( * ) THEN 51 + NULLIF ( 94 - + COUNT ( * ) * 87, + 74 ) ELSE + ( COALESCE ( + 1, - COUNT ( * ), - 27 ) ) END AS col2
----
36
-75

query I rowsort
SELECT ALL + 71 + - - 81
----
152

query I rowsort
SELECT ( - 5 ) * + 7 * - ( - + 21 ) AS col1
----
-735

query I rowsort
SELECT 90 * 33 AS col1
----
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT 46 * + 58 DIV 58 * + ( + - 6 ) + + 2
----
-274

skipif mysql # not compatible
query I rowsort label-1833
SELECT 46 * + 58 / 58 * + ( + - 6 ) + + 2
----
-274

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1834
SELECT - 69 DIV 37 DIV - - CAST( + 27 AS SIGNED ) - - 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1834
SELECT - 69 / 37 / - - CAST ( + 27 AS INTEGER ) - - 59 AS col0
----
59

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1837
SELECT 25 * + 45 * - 17 AS col0, 36 * - 60 * - ( 72 ) + - - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-19125
155521

skipif mysql # not compatible
query II rowsort label-1837
SELECT 25 * + 45 * - 17 AS col0, 36 * - 60 * - ( 72 ) + - - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-19125
155521

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1838
SELECT ALL + CAST( NULL AS DECIMAL ) * - - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL + CAST ( NULL AS REAL ) * - - 94 AS col0
----
NULL

query II rowsort
SELECT + 91, - 14 AS col0
----
91
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT DISTINCT + 93 * + CASE + 56 WHEN - + 25 THEN NULL WHEN + 64 + 60 * + 67 * + NULLIF ( - 77, + 77 + + 6 ) THEN + - COUNT( 69 ) + 41 - - + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT + 93 * + CASE + 56 WHEN - + 25 THEN NULL WHEN + 64 + 60 * + 67 * + NULLIF ( - 77, + 77 + + 6 ) THEN + - COUNT ( 69 ) + 41 - - + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1842
SELECT COUNT( * ) * 28 - + 53 col1, CASE - + COUNT( * ) WHEN 32 THEN - + AVG ( 86 ) WHEN 43 * 66 + + 6 + ( + CAST( NULL AS SIGNED ) ) - 29 THEN + + SUM( ALL + + 4 ) - + - 5 WHEN 88 + - - COUNT( * ) + 6 * + ( + 79 ) - - + SUM( 73 ) THEN COALESCE ( 62, - 18 * 75 ) * 13 + - CAST( NULL AS SIGNED ) ELSE NULL END + - 77 AS col1
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-1842
SELECT COUNT ( * ) * 28 - + 53 col1, CASE - + COUNT ( * ) WHEN 32 THEN - + AVG ( 86 ) WHEN 43 * 66 + + 6 + ( + CAST ( NULL AS INTEGER ) ) - 29 THEN + + SUM ( ALL + + 4 ) - + - 5 WHEN 88 + - - COUNT ( * ) + 6 * + ( + 79 ) - - + SUM ( 73 ) THEN COALESCE ( 62, - 18 * 75 ) * 13 + - CAST ( NULL AS INTEGER ) ELSE NULL END + - 77 AS col1
----
-25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL - COUNT( * ) * COUNT( * ) * + + 51 * 42 AS col1
----
-2142

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - COUNT ( * ) * COUNT ( * ) * + + 51 * 42 AS col1
----
-2142

query I rowsort
SELECT 21 + - + 87 * - - NULLIF ( - + 67, + 81 ) AS col0
----
5850

query I rowsort
SELECT 56 - 32 AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT DISTINCT - CAST( + - CAST( + - 47 AS SIGNED ) AS SIGNED ) * + - 12
----
564

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT - CAST ( + - CAST ( + - 47 AS INTEGER ) AS INTEGER ) * + - 12
----
564

query II rowsort
SELECT ALL + 39 - - + 86 * 44 * 51 AS col1, 56 AS col0
----
193023
56

query I rowsort
SELECT 40 * - 15 AS col0
----
-600

query II rowsort
SELECT ALL - 11, - 28 col0
----
-11
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1850
SELECT 39 * + + 26 + + - NULLIF ( - COUNT( * ), - 57 ) DIV - 77
----
1014

skipif mysql # not compatible
query I rowsort label-1850
SELECT 39 * + + 26 + + - NULLIF ( - COUNT ( * ), - 57 ) / - 77
----
1014

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1851
SELECT ALL 67 AS col1, + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-1851
SELECT ALL 67 AS col1, + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) col0
----
67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1852
SELECT ALL + ( + MIN( - 14 ) ) AS col0, + 67 AS col0
----
-14
67

skipif mysql # not compatible
query II rowsort label-1852
SELECT ALL + ( + MIN ( - 14 ) ) AS col0, + 67 AS col0
----
-14
67

query I rowsort
SELECT DISTINCT 58 * 22 AS col2
----
1276

query I rowsort
SELECT 80 + + 24 AS col2
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1855
SELECT ALL - - 62 DIV + 23 + + 28 * + + 18 + 90 + COALESCE ( + 31, - 87 + - MAX( DISTINCT - - COALESCE ( 94, 4 ) ) - + - 21 - - COUNT( * ) * - 98 )
----
627

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL - - 62 / + 23 + + 28 * + + 18 + 90 + COALESCE ( + 31, - 87 + - MAX ( DISTINCT - - COALESCE ( 94, 4 ) ) - + - 21 - - COUNT ( * ) * - 98 )
----
627

query I rowsort
SELECT 82 * - 68 col1
----
-5576

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT - 46 + + ( - 81 ) * ( - - COUNT( * ) ) * - 25 + + 68
----
2047

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 46 + + ( - 81 ) * ( - - COUNT ( * ) ) * - 25 + + 68
----
2047

query I rowsort
SELECT 72 + - + 26 + - - 3
----
49

query I rowsort
SELECT ALL 29 * 58 / CASE + 82 WHEN 88 * + 27 * - 70 THEN + 89 END + + 71
----
NULL

query I rowsort
SELECT - 73 + + 13 * - - 34 AS col1
----
369

query II rowsort
SELECT ALL 4 AS col1, - 36 + 42
----
4
6

query I rowsort
SELECT - NULLIF ( 21, - 69 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT + CASE - 52 WHEN + + 55 * - 6 THEN NULL ELSE + 84 - 15 * + + 50 - + 37 * - 41 END * NULLIF ( + 69, - - NULLIF ( - + 76, + 58 + COUNT( * ) ) )
----
58719

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + CASE - 52 WHEN + + 55 * - 6 THEN NULL ELSE + 84 - 15 * + + 50 - + 37 * - 41 END * NULLIF ( + 69, - - NULLIF ( - + 76, + 58 + COUNT ( * ) ) )
----
58719

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT 82 * ( - MAX( + 16 ) )
----
-1312

skipif mysql # not compatible
query I rowsort label-1864
SELECT 82 * ( - MAX ( + 16 ) )
----
-1312

query I rowsort
SELECT ALL - 81 + + + 71 * + + 19 + 89 AS col0
----
1357

query I rowsort
SELECT ALL 92 + - + 55
----
37

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

query II rowsort
SELECT ALL - 18, 95 AS col1
----
-18
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1869
SELECT ALL 10 + + 9 col1, - COUNT( * ) col0
----
19
-1

skipif mysql # not compatible
query II rowsort label-1869
SELECT ALL 10 + + 9 col1, - COUNT ( * ) col0
----
19
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1870
SELECT ALL COALESCE ( + 68, - COUNT( * ) * + COUNT( * ) - - + 78, - COUNT( * ) + NULLIF ( - + 56, + + COUNT( * ) ) - - COUNT( * ) + + 17 * + 68 * + COUNT( * ) + + 82 * + ( - COUNT( + ( + 53 ) ) ) * - 2 + 97 - 37 ) + 9 + - 73 DIV CAST( ( SUM( DISTINCT - 7 ) ) AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL COALESCE ( + 68, - COUNT ( * ) * + COUNT ( * ) - - + 78, - COUNT ( * ) + NULLIF ( - + 56, + + COUNT ( * ) ) - - COUNT ( * ) + + 17 * + 68 * + COUNT ( * ) + + 82 * + ( - COUNT ( + ( + 53 ) ) ) * - 2 + 97 - 37 ) + 9 + - 73 / CAST ( ( SUM ( DISTINCT - 7 ) ) AS INTEGER )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT MAX( + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-1871
SELECT MAX ( + 76 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-1872
SELECT 59 * 92 AS col2, COUNT( * ) AS col2
----
5428
1

skipif mysql # not compatible
query II rowsort label-1872
SELECT 59 * 92 AS col2, COUNT ( * ) AS col2
----
5428
1

query I rowsort
SELECT 43 * - 71 + CASE - 27 WHEN 21 THEN - 12 ELSE 92 * - 9 + 13 END * + - 71 * - ( - + 29 ) AS col2
----
1675032

query I rowsort
SELECT 37 * - 4
----
-148

query I rowsort
SELECT ALL - COALESCE ( - 94, - + 30 * 60 + 13 ) AS col0
----
94

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

query I rowsort
SELECT 18 * + ( + 28 )
----
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1878
SELECT ALL - - 1 * + - NULLIF ( 50, - 19 ) DIV - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - - 1 * + - NULLIF ( 50, - 19 ) / - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT - + ( - + SUM( + - 96 ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-1879
SELECT - + ( - + SUM ( + - 96 ) ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT + COUNT( * ) * - 89 - - - COUNT( + 38 ) AS col1, + 70
----
-90
70

skipif mysql # not compatible
query II rowsort label-1880
SELECT + COUNT ( * ) * - 89 - - - COUNT ( + 38 ) AS col1, + 70
----
-90
70

query I rowsort
SELECT ALL - 45 * + 6 col1
----
-270

query I rowsort
SELECT ( - 56 ) - 28 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL - MAX( + + 7 ) + - 95 AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL - MAX ( + + 7 ) + - 95 AS col1
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT - - 90 * - 62 + + COUNT( * ) AS col2
----
-5579

skipif mysql # not compatible
query I rowsort label-1884
SELECT - - 90 * - 62 + + COUNT ( * ) AS col2
----
-5579

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL - CASE + 77 WHEN - ( COUNT( * ) ) THEN COUNT( * ) WHEN 60 THEN NULL ELSE NULL END + + ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - CASE + 77 WHEN - ( COUNT ( * ) ) THEN COUNT ( * ) WHEN 60 THEN NULL ELSE NULL END + + ( COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 22, - 47 )
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1887
SELECT DISTINCT + 63 + 84 * 34 * - + 71 AS col2, - CAST( NULL AS DECIMAL ) + + 2 AS col2
----
-202713
NULL

skipif mysql # not compatible
query II rowsort label-1887
SELECT DISTINCT + 63 + 84 * 34 * - + 71 AS col2, - CAST ( NULL AS REAL ) + + 2 AS col2
----
-202713
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL CASE + 29 WHEN - 38 + + - CASE ( 68 ) WHEN + - COUNT( * ) THEN NULL WHEN + CASE 29 WHEN + 25 / 89 * + 57 * - 7 THEN 7 END + - 68 * 55 THEN + COUNT( * ) / 11 END THEN + CASE + - COUNT( * ) WHEN 76 THEN + + COALESCE ( COUNT( - - 64 ), + 84 ) END WHEN + AVG ( DISTINCT 12 ) THEN 20 ELSE NULL END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL CASE + 29 WHEN - 38 + + - CASE ( 68 ) WHEN + - COUNT ( * ) THEN NULL WHEN + CASE 29 WHEN + 25 / 89 * + 57 * - 7 THEN 7 END + - 68 * 55 THEN + COUNT ( * ) / 11 END THEN + CASE + - COUNT ( * ) WHEN 76 THEN + + COALESCE ( COUNT ( - - 64 ), + 84 ) END WHEN + AVG ( DISTINCT 12 ) THEN 20 ELSE NULL END + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT - 37 DIV 99 col2
----
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT - 37 / 99 col2
----
0

query I rowsort
SELECT - 76 + - 60 AS col0
----
-136

query I rowsort
SELECT + 46 - - - 46
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1893
SELECT + + 75 DIV + + 10 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1893
SELECT + + 75 / + + 10 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL + MIN( ( - 48 ) ) + 83
----
35

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL + MIN ( ( - 48 ) ) + 83
----
35

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT - 93 + + 43 + COUNT( * ) * + 68 DIV + - 44 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-1896
SELECT - 93 + + 43 + COUNT ( * ) * + 68 / + - 44 AS col0
----
-51

query I rowsort
SELECT ALL 4 * 0 * + - 50 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT - 38 + - COUNT( * ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT - 38 + - COUNT ( * ) col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-1899
SELECT DISTINCT + 99, + CASE - 65 WHEN 96 THEN CASE - 50 WHEN - 17 THEN NULL WHEN + MAX( + - 8 ) * - 76 + + - 24 THEN + - COALESCE ( 85, + + COUNT( * ) / + + MIN( DISTINCT + 22 ) * - NULLIF ( + 41, + COUNT( * ) ) * ( + + 31 ) + + - 54 + + 11 * - 2, COUNT( * ) ) ELSE NULL END WHEN AVG ( ALL 46 ) - 13 THEN - 88 END + 65 AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-1899
SELECT DISTINCT + 99, + CASE - 65 WHEN 96 THEN CASE - 50 WHEN - 17 THEN NULL WHEN + MAX ( + - 8 ) * - 76 + + - 24 THEN + - COALESCE ( 85, + + COUNT ( * ) / + + MIN ( DISTINCT + 22 ) * - NULLIF ( + 41, + COUNT ( * ) ) * ( + + 31 ) + + - 54 + + 11 * - 2, COUNT ( * ) ) ELSE NULL END WHEN AVG ( ALL 46 ) - 13 THEN - 88 END + 65 AS col2
----
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT DISTINCT MAX( + COALESCE ( 76, + 82 ) ) * - 69 + 51 - + 22 AS col1
----
-5215

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT MAX ( + COALESCE ( 76, + 82 ) ) * - 69 + 51 - + 22 AS col1
----
-5215

onlyif mysql # aggregate syntax: 
query II rowsort label-1901
SELECT ALL 68 * MIN( - + 93 ) AS col0, + 22
----
-6324
22

skipif mysql # not compatible
query II rowsort label-1901
SELECT ALL 68 * MIN ( - + 93 ) AS col0, + 22
----
-6324
22

query I rowsort
SELECT + 27 * + 25
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT + ( - COALESCE ( MAX( DISTINCT - - 35 ), 38 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1903
SELECT + ( - COALESCE ( MAX ( DISTINCT - - 35 ), 38 ) )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1904
SELECT 75 DIV 32 * 70 * - - COUNT( DISTINCT + 3 ) + COUNT( + 91 ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-1904
SELECT 75 / 32 * 70 * - - COUNT ( DISTINCT + 3 ) + COUNT ( + 91 ) AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT ALL 91 * - MAX( + + 44 ) * + ( + + ( 5 ) ) AS col1
----
-20020

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL 91 * - MAX ( + + 44 ) * + ( + + ( 5 ) ) AS col1
----
-20020

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT ALL COALESCE ( + ( + 50 ), - 83 ) DIV + 49
----
1

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL COALESCE ( + ( + 50 ), - 83 ) / + 49
----
1

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

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT + 30 * + + COUNT ( DISTINCT - 61 ) col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + + 60 + - COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1908
SELECT + + 60 + - COUNT ( * ) AS col0
----
59

query I rowsort
SELECT - - 55 + - + 92
----
-37

query I rowsort
SELECT ALL - 49 * + - 27
----
1323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1911
SELECT + - COUNT( ALL 55 ) DIV + COUNT( + - 37 ) * - + COUNT( * ) AS col1, 6 * 21 * 59 + - + 92 * - CASE 96 WHEN + 69 + + + 24 THEN + + 10 * ( - 22 ) + - 56 - - 6 * + 21 - ( - NULLIF ( + + 78, - - 33 ) ) END + + - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1911
SELECT + - COUNT ( ALL 55 ) / + COUNT ( + - 37 ) * - + COUNT ( * ) AS col1, 6 * 21 * 59 + - + 92 * - CASE 96 WHEN + 69 + + + 24 THEN + + 10 * ( - 22 ) + - 56 - - 6 * + 21 - ( - NULLIF ( + + 78, - - 33 ) ) END + + - CAST ( NULL AS INTEGER )
----
1
NULL

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

skipif mysql # not compatible
query I rowsort label-1912
SELECT - + 80 / - + COUNT ( * ) col1
----
80

query II rowsort
SELECT DISTINCT - 93 * 35 + - 40, 7 AS col1
----
-3295
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - ( + + ( COUNT( DISTINCT - + 89 ) ) ) + 62 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1914
SELECT - ( + + ( COUNT ( DISTINCT - + 89 ) ) ) + 62 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1915
SELECT ALL 78 * + + CAST( MIN( DISTINCT + 26 ) AS SIGNED ) * + 97 + + 25 * CASE + ( - 72 ) WHEN + + 41 + + 32 * - 92 THEN - COUNT( * ) / - - 16 WHEN + CASE 2 WHEN - + 50 * + 15 + - 20 - - CASE + COUNT( * ) WHEN - 76 THEN - - 78 - ( + + CAST( + 22 AS SIGNED ) ) ELSE 31 / - CAST( 20 * 37 AS DECIMAL ) + - 36 END THEN 91 WHEN + 60 THEN + COUNT( * ) ELSE 54 END THEN NULL END + ( - 91 ) / - 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL 78 * + + CAST ( MIN ( DISTINCT + 26 ) AS INTEGER ) * + 97 + + 25 * CASE + ( - 72 ) WHEN + + 41 + + 32 * - 92 THEN - COUNT ( * ) / - - 16 WHEN + CASE 2 WHEN - + 50 * + 15 + - 20 - - CASE + COUNT ( * ) WHEN - 76 THEN - - 78 - ( + + CAST ( + 22 AS INTEGER ) ) ELSE 31 / - CAST ( 20 * 37 AS REAL ) + - 36 END THEN 91 WHEN + 60 THEN + COUNT ( * ) ELSE 54 END THEN NULL END + ( - 91 ) / - 44 col0
----
NULL

query II rowsort
SELECT ( - ( - - 10 ) ) AS col0, + 96
----
-10
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL + - ( COUNT( * ) ) + - - SUM( DISTINCT - 72 ) - COUNT( - 96 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL + - ( COUNT ( * ) ) + - - SUM ( DISTINCT - 72 ) - COUNT ( - 96 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-1918
SELECT - - 53 + - - ( + 0 ) AS col0, 93 + + + COUNT( * )
----
53
94

skipif mysql # not compatible
query II rowsort label-1918
SELECT - - 53 + - - ( + 0 ) AS col0, 93 + + + COUNT ( * )
----
53
94

query I rowsort
SELECT - + 79 + - 87 col1
----
-166

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

query II rowsort
SELECT - 84, + 71 * - - 96 * 94 AS col0
----
-84
640704

query I rowsort
SELECT DISTINCT + 40 * + COALESCE ( 96, - 68 )
----
3840

query I rowsort
SELECT - - 1 + + 84 AS col0
----
85

query I rowsort
SELECT DISTINCT CASE - - 38 WHEN + + 50 THEN + 88 END AS col2
----
NULL

query I rowsort
SELECT ALL 57 - - ( + NULLIF ( + 89, 43 ) ) AS col2
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-1926
SELECT - 33 - + 87 * - ( + - 47 ) AS col1, - 11 + + + COUNT( * ) * CASE - 88 WHEN 12 THEN + 39 END * - 26 AS col2
----
-4122
NULL

skipif mysql # not compatible
query II rowsort label-1926
SELECT - 33 - + 87 * - ( + - 47 ) AS col1, - 11 + + + COUNT ( * ) * CASE - 88 WHEN 12 THEN + 39 END * - 26 AS col2
----
-4122
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1927
SELECT ALL + 52 DIV - COUNT( DISTINCT + 8 )
----
-52

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL + 52 / - COUNT ( DISTINCT + 8 )
----
-52

query I rowsort
SELECT - 27 * - ( - 51 ) col2
----
-1377

query I rowsort
SELECT - 3 * - NULLIF ( - ( + - 91 ), - 9 ) AS col0
----
273

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT CAST( + - NULLIF ( + ( + 26 ), + 76 ) AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-1934
SELECT CAST ( + - NULLIF ( + ( + 26 ), + 76 ) AS INTEGER )
----
-26

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1936
SELECT + COUNT( * ) * - 47 + + - 9 * - MIN( ALL 61 ) + - 78, 21 AS col2
----
424
21

skipif mysql # not compatible
query II rowsort label-1936
SELECT + COUNT ( * ) * - 47 + + - 9 * - MIN ( ALL 61 ) + - 78, 21 AS col2
----
424
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1937
SELECT ALL 23 DIV + NULLIF ( - 32, + 34 ) + 2
----
2

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 23 / + NULLIF ( - 32, + 34 ) + 2
----
2

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

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

query I rowsort
SELECT + 65 * + 95 AS col0
----
6175

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL + + 26 + + 15 + + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + + 26 + + 15 + + - COUNT ( * )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT DISTINCT 13 + - 50 DIV + 42
----
12

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT 13 + - 50 / + 42
----
12

query I rowsort
SELECT ALL + 38 + - 45
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL - MIN( + 13 ) + - 28 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL - MIN ( + 13 ) + - 28 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT MAX( ALL 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1944
SELECT MAX ( ALL 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL - + COUNT( DISTINCT + 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL - + COUNT ( DISTINCT + 11 )
----
-1

query I rowsort
SELECT COALESCE ( + - 94, 29 ) AS col1
----
-94

query I rowsort
SELECT - COALESCE ( + 73, - + 17 ) AS col1
----
-73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT ALL 98 + - ( + COUNT( * ) ) + + NULLIF ( + 61, + 79 ) col1, + COUNT( * )
----
158
1

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL 98 + - ( + COUNT ( * ) ) + + NULLIF ( + 61, + 79 ) col1, + COUNT ( * )
----
158
1

query II rowsort
SELECT - 68 AS col2, + 71
----
-68
71

query I rowsort
SELECT 6 - - - 72 * 23
----
-1650

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + COALESCE ( SUM( + 70 ), + 32 * - + COUNT( * ) * + + NULLIF ( + + 64, 73 ) ) + + 4 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1953
SELECT + COALESCE ( SUM ( + 70 ), + 32 * - + COUNT ( * ) * + + NULLIF ( + + 64, 73 ) ) + + 4 AS col2
----
74

query I rowsort
SELECT 83 * 41
----
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL - 20 - + + ( 12 ) * COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL - 20 - + + ( 12 ) * COUNT ( * ) AS col2
----
-32

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

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

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

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

query II rowsort
SELECT 24 + + - 4 - NULLIF ( - - 9, + 40 ) col0, + 71 AS col0
----
11
71

query I rowsort
SELECT 60 - - 52 AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT DISTINCT + CAST( 12 AS SIGNED ) * + 68
----
816

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT + CAST ( 12 AS INTEGER ) * + 68
----
816

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1961
SELECT ALL + 48 * + + 37 AS col0, - NULLIF ( + 54, - - ( - + CAST( NULL AS SIGNED ) ) ) col2
----
1776
-54

skipif mysql # not compatible
query II rowsort label-1961
SELECT ALL + 48 * + + 37 AS col0, - NULLIF ( + 54, - - ( - + CAST ( NULL AS INTEGER ) ) ) col2
----
1776
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1962
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 35 * + - 19 * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT CAST ( NULL AS REAL ) * - 35 * + - 19 * - 29
----
NULL

query I rowsort
SELECT 59 + - 50 + - 14 * - 51 AS col0
----
723

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

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

query I rowsort
SELECT ALL - NULLIF ( 66, - + 72 + - 46 + + - 48 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1966
SELECT DISTINCT - 3 DIV - 8, 70 * - - CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1966
SELECT DISTINCT - 3 / - 8, 70 * - - CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

query II rowsort
SELECT 46 + - 4 AS col0, 38 + 16 + + 14 * 38 AS col2
----
42
586

query I rowsort
SELECT 49 * 64 AS col1
----
3136

onlyif mysql # DIV for integer division: 
query II rowsort label-1969
SELECT 55 DIV 93 AS col1, 73 col1
----
0
73

skipif mysql # not compatible
query II rowsort label-1969
SELECT 55 / 93 AS col1, 73 col1
----
0
73

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

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

query I rowsort
SELECT + 7 * 14 + + 57 + - 4
----
151

query I rowsort
SELECT ALL - NULLIF ( 35, + - 36 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT + 69 * - COUNT( * ) + - 86
----
-155

skipif mysql # not compatible
query I rowsort label-1973
SELECT + 69 * - COUNT ( * ) + - 86
----
-155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1974
SELECT ALL - AVG ( ALL 19 ) + SUM( - 44 ) - + - 14 * - CASE + SUM( ALL - + CAST( NULL AS SIGNED ) ) WHEN COUNT( * ) THEN NULL WHEN + + COALESCE ( - 14, - 96 * + - 51 ) THEN NULL WHEN + + COUNT( ALL + 46 ) + NULLIF ( - AVG ( ALL + + 56 ), + 6 + - - 71 ) THEN + + MAX( - 46 ) END * + MAX( + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL - AVG ( ALL 19 ) + SUM ( - 44 ) - + - 14 * - CASE + SUM ( ALL - + CAST ( NULL AS INTEGER ) ) WHEN COUNT ( * ) THEN NULL WHEN + + COALESCE ( - 14, - 96 * + - 51 ) THEN NULL WHEN + + COUNT ( ALL + 46 ) + NULLIF ( - AVG ( ALL + + 56 ), + 6 + - - 71 ) THEN + + MAX ( - 46 ) END * + MAX ( + 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT MIN( DISTINCT + 84 ) + ( + 51 ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-1975
SELECT MIN ( DISTINCT + 84 ) + ( + 51 ) AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT ALL - - 86 + 6 + + - MIN( DISTINCT + 94 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - - 86 + 6 + + - MIN ( DISTINCT + 94 ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT + CASE CAST( - MAX( + + 32 ) AS SIGNED ) WHEN + 48 + - + 40 THEN - ( + 56 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT + CASE CAST ( - MAX ( + + 32 ) AS INTEGER ) WHEN + 48 + - + 40 THEN - ( + 56 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - 29 + - + 88 + COUNT( * ) * - 89 AS col0
----
-206

skipif mysql # not compatible
query I rowsort label-1978
SELECT - 29 + - + 88 + COUNT ( * ) * - 89 AS col0
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - 6 * 49 + + 7 - + 50 + + - ( COUNT( * ) ) + + + 90 AS col1
----
-248

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 6 * 49 + + 7 - + 50 + + - ( COUNT ( * ) ) + + + 90 AS col1
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL + ( 29 ) + 88 + + - COUNT( * )
----
116

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + ( 29 ) + 88 + + - COUNT ( * )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT - COUNT( * ) * + 86 + - - ( + 8 )
----
-78

skipif mysql # not compatible
query I rowsort label-1981
SELECT - COUNT ( * ) * + 86 + - - ( + 8 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1982
SELECT + CAST( CASE 59 WHEN ( - 13 ) THEN + 44 - - NULLIF ( - 44, 8 * 24 * - CASE - 52 WHEN + + 78 THEN + AVG ( ALL + - 83 ) * + COALESCE ( + + 26, + 41, + - 42 ) END + 0 * - ( + + COUNT( * ) ) ) + - 76 * + 3 END AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT + CAST ( CASE 59 WHEN ( - 13 ) THEN + 44 - - NULLIF ( - 44, 8 * 24 * - CASE - 52 WHEN + + 78 THEN + AVG ( ALL + - 83 ) * + COALESCE ( + + 26, + 41, + - 42 ) END + 0 * - ( + + COUNT ( * ) ) ) + - 76 * + 3 END AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 71 - + 39
----
32

query I rowsort
SELECT ALL 32 - + - 2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1985
SELECT + 19 * + + 1 + + - ( - - NULLIF ( CASE - - CAST( - - 77 AS SIGNED ) WHEN + CASE + MAX( ALL - + 26 ) WHEN - 75 * - 56 + + COUNT( * ) - + - 47 + - 11 * - COALESCE ( - - 8, - 47 + + 66, + CAST( NULL AS SIGNED ) * COUNT( * ) ) * + 87 + - 4 THEN 7 * - + 72 END THEN - - ( - 53 ) END, + 61 * - 90 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT + 19 * + + 1 + + - ( - - NULLIF ( CASE - - CAST ( - - 77 AS INTEGER ) WHEN + CASE + MAX ( ALL - + 26 ) WHEN - 75 * - 56 + + COUNT ( * ) - + - 47 + - 11 * - COALESCE ( - - 8, - 47 + + 66, + CAST ( NULL AS INTEGER ) * COUNT ( * ) ) * + 87 + - 4 THEN 7 * - + 72 END THEN - - ( - 53 ) END, + 61 * - 90 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 45 * - 90 AS col1
----
-4050

query I rowsort
SELECT 21 * - 26 AS col2
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT ( - COUNT( * ) ) + + 32 + + 75 DIV 77
----
31

skipif mysql # not compatible
query I rowsort label-1988
SELECT ( - COUNT ( * ) ) + + 32 + + 75 / 77
----
31

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

skipif mysql # not compatible
query II rowsort label-1989
SELECT 97 AS col0, COUNT ( * ) AS col0
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT 69 + 46 + 93 + 10 * + + 19 + COUNT( * )
----
399

skipif mysql # not compatible
query I rowsort label-1990
SELECT 69 + 46 + 93 + 10 * + + 19 + COUNT ( * )
----
399

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

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

query II rowsort
SELECT ALL 83, 43 AS col2
----
83
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1993
SELECT ALL CAST( + + 75 AS SIGNED ) * + - 12 AS col2, + 89 + 49 * - 76 * - 9
----
-900
33605

skipif mysql # not compatible
query II rowsort label-1993
SELECT ALL CAST ( + + 75 AS INTEGER ) * + - 12 AS col2, + 89 + 49 * - 76 * - 9
----
-900
33605

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL 79 + MIN( - 79 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL 79 + MIN ( - 79 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1995
SELECT - 96 AS col0, 89 * + COUNT( * ) + - ( 67 ) AS col1
----
-96
22

skipif mysql # not compatible
query II rowsort label-1995
SELECT - 96 AS col0, 89 * + COUNT ( * ) + - ( 67 ) AS col1
----
-96
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ( + 53 ) * + 81 * - + NULLIF ( - COUNT( * ), + 89 * - 74 ) + 54 AS col2
----
4347

skipif mysql # not compatible
query I rowsort label-1996
SELECT ( + 53 ) * + 81 * - + NULLIF ( - COUNT ( * ), + 89 * - 74 ) + 54 AS col2
----
4347

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT COUNT( * ) - - 89 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1997
SELECT COUNT ( * ) - - 89 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT 91 + + - CASE + SUM( - + 44 ) WHEN - 83 + 95 / 15 + - - 1 THEN + + COUNT( * ) + - - 22 END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1998
SELECT 91 + + - CASE + SUM ( - + 44 ) WHEN - 83 + 95 / 15 + - - 1 THEN + + COUNT ( * ) + - - 22 END + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1999
SELECT ALL 84 * COUNT( * ) + + - 37 AS col0, CAST( - + 78 AS SIGNED ) - - 8 AS col2
----
47
-70

skipif mysql # not compatible
query II rowsort label-1999
SELECT ALL 84 * COUNT ( * ) + + - 37 AS col0, CAST ( - + 78 AS INTEGER ) - - 8 AS col2
----
47
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2000
SELECT + CASE WHEN NULL BETWEEN COUNT( * ) AND + 5 THEN 94 * - - 31 + CAST( NULL AS SIGNED ) ELSE 22 END AS col1
----
22

skipif mysql # not compatible
query I rowsort label-2000
SELECT + CASE WHEN NULL BETWEEN COUNT ( * ) AND + 5 THEN 94 * - - 31 + CAST ( NULL AS INTEGER ) ELSE 22 END AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT + 3 * - 59 + + - MIN( + + 28 ) - 90
----
-295

skipif mysql # not compatible
query I rowsort label-2001
SELECT + 3 * - 59 + + - MIN ( + + 28 ) - 90
----
-295

query I rowsort
SELECT - 66 - 51 * - 23 + + - 37 - + 8
----
1062

query II rowsort
SELECT DISTINCT + + 12 AS col0, 24
----
12
24

query II rowsort
SELECT ALL + 97 AS col2, - 74
----
97
-74

query I rowsort
SELECT COALESCE ( - 6, 71, 42 * - + 49 * 45 + 9 - ( - + ( 91 ) ) - 61 + - + 97 )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT ALL + - 30, 69 * - - COUNT( * ) AS col2
----
-30
69

skipif mysql # not compatible
query II rowsort label-2006
SELECT ALL + - 30, 69 * - - COUNT ( * ) AS col2
----
-30
69

query I rowsort
SELECT - + 41 + - + 81 * - 60
----
4819

query I rowsort
SELECT - NULLIF ( - + 88, + 82 ) AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT - + 97 * NULLIF ( - 3, - CASE - 67 WHEN - CAST( NULL AS SIGNED ) THEN + + 79 / - CAST( + 84 AS SIGNED ) * + 33 / - COALESCE ( CASE 9 WHEN - 83 * + COUNT( * ) THEN NULL WHEN + 45 + + 27 - - - COUNT( * ) * + COUNT( * ) THEN + 84 END, 12 + - 13 + 31 ) - + 99 WHEN - ( + 59 ) THEN 3 END ) AS col1
----
291

skipif mysql # not compatible
query I rowsort label-2009
SELECT - + 97 * NULLIF ( - 3, - CASE - 67 WHEN - CAST ( NULL AS INTEGER ) THEN + + 79 / - CAST ( + 84 AS INTEGER ) * + 33 / - COALESCE ( CASE 9 WHEN - 83 * + COUNT ( * ) THEN NULL WHEN + 45 + + 27 - - - COUNT ( * ) * + COUNT ( * ) THEN + 84 END, 12 + - 13 + 31 ) - + 99 WHEN - ( + 59 ) THEN 3 END ) AS col1
----
291

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT 70 AS col2, MAX( 44 ) AS col1
----
70
44

skipif mysql # not compatible
query II rowsort label-2010
SELECT 70 AS col2, MAX ( 44 ) AS col1
----
70
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT DISTINCT + - 70 * + 41 * - 15, ( + SUM( ALL 42 ) ) * + 73 AS col2
----
43050
3066

skipif mysql # not compatible
query II rowsort label-2011
SELECT DISTINCT + - 70 * + 41 * - 15, ( + SUM ( ALL 42 ) ) * + 73 AS col2
----
43050
3066

query I rowsort
SELECT DISTINCT + NULLIF ( 57, 34 ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2013
SELECT DISTINCT + CAST( + + 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT + CAST ( + + 98 AS INTEGER )
----
98

query I rowsort
SELECT - - 86 * - 66 * - + 14 + + - CASE + - 38 WHEN 46 THEN NULL WHEN + 36 * 0 THEN 45 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT - + 95 * 4 + - ( 82 ) * - COUNT( * ) AS col2
----
-298

skipif mysql # not compatible
query I rowsort label-2016
SELECT - + 95 * 4 + - ( 82 ) * - COUNT ( * ) AS col2
----
-298

query I rowsort
SELECT + 34 * - + 23 AS col2
----
-782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT - COUNT( * ) - - - COALESCE ( COUNT( * ), - ( - CAST( NULL AS SIGNED ) ) ) * 49 * - - 53 AS col0
----
-2598

skipif mysql # not compatible
query I rowsort label-2018
SELECT - COUNT ( * ) - - - COALESCE ( COUNT ( * ), - ( - CAST ( NULL AS INTEGER ) ) ) * 49 * - - 53 AS col0
----
-2598

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL CASE + COUNT( + - 26 ) WHEN - 97 + - - 32 THEN 79 WHEN - 38 * COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL CASE + COUNT ( + - 26 ) WHEN - 97 + - - 32 THEN 79 WHEN - 38 * COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 80 - ( + 4 ) + + 80 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2021
SELECT ALL 92 * 31 AS col2, - CAST( NULL AS SIGNED ) AS col1
----
2852
NULL

skipif mysql # not compatible
query II rowsort label-2021
SELECT ALL 92 * 31 AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
2852
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT + 98 DIV - - 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2022
SELECT + 98 / - - 54 AS col2
----
1

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

query I rowsort
SELECT + 33 / - CASE + + AVG ( - + 76 ) WHEN 4 * + + 88 THEN - + 28 END AS col0
----
NULL

query I rowsort
SELECT ALL - 30 + + 73 AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT DISTINCT 97 + - - 2 + 86 DIV + + 74 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT 97 + - - 2 + 86 / + + 74 AS col1
----
100

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2028
SELECT + CAST( NULL AS DECIMAL ) - - MAX( ALL + 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT + CAST ( NULL AS REAL ) - - MAX ( ALL + 93 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - MIN( - + 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2029
SELECT - MIN ( - + 23 ) AS col2
----
23

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT ALL 85 + 10 AS col0, COUNT( * )
----
95
1

skipif mysql # not compatible
query II rowsort label-2031
SELECT ALL 85 + 10 AS col0, COUNT ( * )
----
95
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT + 90 + 40 DIV 82 * + 36
----
90

skipif mysql # not compatible
query I rowsort label-2032
SELECT + 90 + 40 / 82 * + 36
----
90

query I rowsort
SELECT ALL - 58 * 71 AS col1
----
-4118

query I rowsort
SELECT + 8 * - ( + + 53 ) AS col2
----
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT ALL MIN( DISTINCT 52 )
----
52

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL MIN ( DISTINCT 52 )
----
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT DISTINCT COUNT( ALL 9 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT COUNT ( ALL 9 ) col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2039
SELECT + - MAX( DISTINCT + + 74 ) + 83 * - 18 AS col2, + 25
----
-1568
25

skipif mysql # not compatible
query II rowsort label-2039
SELECT + - MAX ( DISTINCT + + 74 ) + 83 * - 18 AS col2, + 25
----
-1568
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT - SUM( ALL - COALESCE ( + ( - + 54 ), + NULLIF ( + - CAST( + - 49 AS SIGNED ), - 89 * - 36 ) ) ) * + 27 + - ( + 58 )
----
-1516

skipif mysql # not compatible
query I rowsort label-2040
SELECT - SUM ( ALL - COALESCE ( + ( - + 54 ), + NULLIF ( + - CAST ( + - 49 AS INTEGER ), - 89 * - 36 ) ) ) * + 27 + - ( + 58 )
----
-1516

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + ( - + NULLIF ( - 62, SUM( + 58 ) + - 83 * + 74 ) )
----
62

skipif mysql # not compatible
query I rowsort label-2041
SELECT + ( - + NULLIF ( - 62, SUM ( + 58 ) + - 83 * + 74 ) )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + + SUM( 88 ) * 73 AS col0
----
6424

skipif mysql # not compatible
query I rowsort label-2042
SELECT + + SUM ( 88 ) * 73 AS col0
----
6424

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL 8 * - 69 + COUNT( * )
----
-551

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL 8 * - 69 + COUNT ( * )
----
-551

query I rowsort
SELECT + 47 + - 51 + + 27
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2045
SELECT DISTINCT + + MAX( - - 79 ), 57 + CASE ( + 87 ) WHEN + 11 THEN 52 END * - ( - + 77 ) + + COUNT( * ) * + 6 * 45 * 28 * - 6 col2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-2045
SELECT DISTINCT + + MAX ( - - 79 ), 57 + CASE ( + 87 ) WHEN + 11 THEN 52 END * - ( - + 77 ) + + COUNT ( * ) * + 6 * 45 * 28 * - 6 col2
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT + 12 * - COUNT( * ) col2
----
-12

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + 12 * - COUNT ( * ) col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT - ( - 12 ) * COUNT( * ) + 45 + - 84 - COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-2047
SELECT - ( - 12 ) * COUNT ( * ) + 45 + - 84 - COUNT ( * ) AS col1
----
-28

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

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

query I rowsort
SELECT + + 99 + ( - 4 )
----
95

query I rowsort
SELECT - + 49 * - 97 * + 22 AS col0
----
104566

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT 25 * - 69 + COUNT( * ) + - 18
----
-1742

skipif mysql # not compatible
query I rowsort label-2051
SELECT 25 * - 69 + COUNT ( * ) + - 18
----
-1742

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

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

query I rowsort
SELECT - 57 + + 31 * 44
----
1307

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + COUNT( * ) * + + COUNT( * ) * + 46 + + 37 + - COALESCE ( + 91, + 32, - CASE 81 WHEN - ( - 1 ) THEN + 50 END ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) * + 46 + + 37 + - COALESCE ( + 91, + 32, - CASE 81 WHEN - ( - 1 ) THEN + 50 END ) col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT - SUM( 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-2055
SELECT - SUM ( 90 )
----
-90

query I rowsort
SELECT ALL 64 * + + 98 + 79 AS col0
----
6351

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

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

query I rowsort
SELECT - 21 * + 72 AS col2
----
-1512

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

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

query II rowsort
SELECT - 91 AS col2, 8 * - + 71
----
-91
-568

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT 90 + + 61 DIV 33 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-2062
SELECT 90 + + 61 / 33 AS col2
----
91

query I rowsort
SELECT ALL + 0 - 36 * 39 * - 27 * + 50
----
1895400

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT COUNT( * ) * - - COUNT( ALL - 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2064
SELECT COUNT ( * ) * - - COUNT ( ALL - 92 ) AS col0
----
1

query I rowsort
SELECT ALL 31 - 49 + - 11
----
-29

query II rowsort
SELECT ALL 69 AS col0, 27 * + 3
----
69
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2067
SELECT 70 DIV - - COUNT( DISTINCT - 33 ) DIV + COALESCE ( + COUNT( ALL 55 ), + 38 + + 42 - + + 53 * 65, + COUNT( * ) ) - - - 82 * + 31 col2, - CAST( NULL AS SIGNED ) AS col2
----
-2472
NULL

skipif mysql # not compatible
query II rowsort label-2067
SELECT 70 / - - COUNT ( DISTINCT - 33 ) / + COALESCE ( + COUNT ( ALL 55 ), + 38 + + 42 - + + 53 * 65, + COUNT ( * ) ) - - - 82 * + 31 col2, - CAST ( NULL AS INTEGER ) AS col2
----
-2472
NULL

query I rowsort
SELECT 57 * - 54 AS col0
----
-3078

query I rowsort
SELECT - 65 + + 39 AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT ALL 35 * 15 * - + 37 * - + 59 - - 98 - + COALESCE ( + COUNT( * ), + 70 * - COUNT( * ) - + 39 + + + 65 * - ( - NULLIF ( - + 12, + 56 ) ) + - 91 ) + 76 * - ( - 8 ) / + ( - - 7 ) * ( + 33 ) * - + NULLIF ( COALESCE ( 56, + 76 ), 77 ) + + - CAST( + - CASE + 39 WHEN + ( CAST( NULL AS SIGNED ) ) + 48 THEN NULL WHEN + 88 THEN NULL ELSE + 22 * + COALESCE ( 63, - 97, + 69 ) END AS SIGNED ) + COUNT( * ) * NULLIF ( CASE - ( 44 ) WHEN - 18 / + 28 + 7 THEN - ( + 36 ) ELSE NULL END, - 10 * COUNT( * ) + CAST( - MAX( - 74 ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL 35 * 15 * - + 37 * - + 59 - - 98 - + COALESCE ( + COUNT ( * ), + 70 * - COUNT ( * ) - + 39 + + + 65 * - ( - NULLIF ( - + 12, + 56 ) ) + - 91 ) + 76 * - ( - 8 ) / + ( - - 7 ) * ( + 33 ) * - + NULLIF ( COALESCE ( 56, + 76 ), 77 ) + + - CAST ( + - CASE + 39 WHEN + ( CAST ( NULL AS INTEGER ) ) + 48 THEN NULL WHEN + 88 THEN NULL ELSE + 22 * + COALESCE ( 63, - 97, + 69 ) END AS INTEGER ) + COUNT ( * ) * NULLIF ( CASE - ( 44 ) WHEN - 18 / + 28 + 7 THEN - ( + 36 ) ELSE NULL END, - 10 * COUNT ( * ) + CAST ( - MAX ( - 74 ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 62 * - + 6
----
-372

query I rowsort
SELECT 96 - 1 + + - NULLIF ( 21, - + 56 * + 53 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2073
SELECT ALL - + CASE CASE + + 18 WHEN + 88 THEN + 79 / - 7 + + CAST( NULL AS SIGNED ) END WHEN + 88 * 84 * ( - CAST( NULL AS DECIMAL ) ) THEN NULL WHEN 21 THEN + + 4 + + SUM( + - 99 ) + AVG ( - - 4 ) / - COUNT( * ) * - 45 + - 42 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - + CASE CASE + + 18 WHEN + 88 THEN + 79 / - 7 + + CAST ( NULL AS INTEGER ) END WHEN + 88 * 84 * ( - CAST ( NULL AS REAL ) ) THEN NULL WHEN 21 THEN + + 4 + + SUM ( + - 99 ) + AVG ( - - 4 ) / - COUNT ( * ) * - 45 + - 42 END AS col1
----
NULL

query I rowsort
SELECT - 68 + - 94 col2
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2075
SELECT COUNT( * ) * + COUNT( DISTINCT + NULLIF ( + + CAST( 73 AS SIGNED ), + 19 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2075
SELECT COUNT ( * ) * + COUNT ( DISTINCT + NULLIF ( + + CAST ( 73 AS INTEGER ), + 19 ) )
----
1

query I rowsort
SELECT + - CASE WHEN NOT - 4 < 46 THEN + + CASE - 82 WHEN - COALESCE ( 87, - 86 ) THEN + + 74 END ELSE + 90 END AS col1
----
-90

query I rowsort
SELECT ALL 64 + - - 38 AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2078
SELECT - 8 * - ( + + CASE WHEN NOT 72 IN ( - - MIN( + + 77 ), COUNT( * ), 94 * + 46 / 87 ) THEN NULL WHEN NOT ( NULL ) NOT IN ( CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * - + ( - ( + - 82 ) ) + - 94 - 93 + - - 93 + + 94 / 8 * 31 * 66 * - 10 * 5 * + 55, - 86 ) THEN + ( - ( 2 ) ) END ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT - 8 * - ( + + CASE WHEN NOT 72 IN ( - - MIN ( + + 77 ), COUNT ( * ), 94 * + 46 / 87 ) THEN NULL WHEN NOT ( NULL ) NOT IN ( CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * - + ( - ( + - 82 ) ) + - 94 - 93 + - - 93 + + 94 / 8 * 31 * 66 * - 10 * 5 * + 55, - 86 ) THEN + ( - ( 2 ) ) END ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 82 + 3 AS col1
----
85

query I rowsort
SELECT DISTINCT - 40 + + - 45 + + 9 * + NULLIF ( + 49, + + 47 * - - 8 )
----
356

query I rowsort
SELECT ALL 87 + + 53 * 99 * 44 + - 69 AS col1
----
230886

query I rowsort
SELECT ( - 65 ) * + - ( 78 )
----
5070

query I rowsort
SELECT ALL ( + 13 ) + + 13 AS col0
----
26

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2085
SELECT 85 * 91 AS col1, + 2 * - 32 * + COALESCE ( + 50, - 1 ) - 84 * - 70 - + COUNT( * ) * + 11
----
7735
2669

skipif mysql # not compatible
query II rowsort label-2085
SELECT 85 * 91 AS col1, + 2 * - 32 * + COALESCE ( + 50, - 1 ) - 84 * - 70 - + COUNT ( * ) * + 11
----
7735
2669

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT COUNT( - 0 ) + + + 46 * 42 AS col1
----
1933

skipif mysql # not compatible
query I rowsort label-2086
SELECT COUNT ( - 0 ) + + + 46 * 42 AS col1
----
1933

query I rowsort
SELECT 94 * + 75 * - 12 AS col1
----
-84600

query I rowsort
SELECT ALL - 31 + 66 + - 42 * 55 AS col0
----
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT 75 - + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2089
SELECT 75 - + COUNT ( * ) AS col2
----
74

query I rowsort
SELECT ALL + 58 * + 81 col0
----
4698

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT DISTINCT 14 DIV + 68 * - 15 * - + 9
----
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT 14 / + 68 * - 15 * - + 9
----
0

query I rowsort
SELECT ALL 73 - - 19
----
92

query I rowsort
SELECT DISTINCT - 40 * - 61 AS col1
----
2440

query II rowsort
SELECT ALL - 68 - + 78 AS col2, 17
----
-146
17

query II rowsort
SELECT - 4, - ( - + 27 ) AS col2
----
-4
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL + 95 * COUNT( * ) * - 59
----
-5605

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL + 95 * COUNT ( * ) * - 59
----
-5605

query I rowsort
SELECT 84 + + 88 - ( - - 99 )
----
73

query I rowsort
SELECT 19 - + 52 AS col2
----
-33

query II rowsort
SELECT 46 AS col1, + 94 + 78 + - 97 + - 1
----
46
74

query I rowsort
SELECT + 63 * + - 99 - + 2 AS col2
----
-6239

onlyif mysql # aggregate syntax: 
query III rowsort label-2101
SELECT - 7 + 95 AS col0, + 71 + + - COUNT( * ) col0, + + 45 * - 23 AS col1
----
88
70
-1035

skipif mysql # not compatible
query III rowsort label-2101
SELECT - 7 + 95 AS col0, + 71 + + - COUNT ( * ) col0, + + 45 * - 23 AS col1
----
88
70
-1035

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT DISTINCT CAST( 7 AS SIGNED ) * + 24 * - CAST( 36 AS SIGNED )
----
-6048

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT CAST ( 7 AS INTEGER ) * + 24 * - CAST ( 36 AS INTEGER )
----
-6048

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT 93 * - COUNT( * ) + + 86 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-2104
SELECT 93 * - COUNT ( * ) + + 86 AS col1
----
-7

query I rowsort
SELECT ALL 53 * 29 AS col0
----
1537

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT 10 DIV - + COALESCE ( - - ( - + 57 ), + 58, - + 20 + 16 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2106
SELECT 10 / - + COALESCE ( - - ( - + 57 ), + 58, - + 20 + 16 ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT - - COUNT ( ALL + - 49 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2108
SELECT ALL 9 * - - MIN( - 89 ) + + - CASE - CASE - 71 WHEN - 75 THEN - ( 62 ) - + - 46 ELSE NULL END WHEN + 13 / + 30 - COUNT( * ) THEN - COUNT( * ) + + 96 + - 29 * - COUNT( * ) ELSE NULL END, - 67 + + - COUNT( * ) + - - 7 - - + CAST( - 36 AS SIGNED ) * - CASE - + 18 WHEN - + 98 THEN + + 61 + + + 0 WHEN COUNT( * ) THEN NULL WHEN - 64 THEN + 97 * - 39 + 87 END * 67 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2108
SELECT ALL 9 * - - MIN ( - 89 ) + + - CASE - CASE - 71 WHEN - 75 THEN - ( 62 ) - + - 46 ELSE NULL END WHEN + 13 / + 30 - COUNT ( * ) THEN - COUNT ( * ) + + 96 + - 29 * - COUNT ( * ) ELSE NULL END, - 67 + + - COUNT ( * ) + - - 7 - - + CAST ( - 36 AS INTEGER ) * - CASE - + 18 WHEN - + 98 THEN + + 61 + + + 0 WHEN COUNT ( * ) THEN NULL WHEN - 64 THEN + 97 * - 39 + 87 END * 67 AS col1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT ALL + 73 * 15 + - ( - 85 ) DIV - 49 + 93
----
1187

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL + 73 * 15 + - ( - 85 ) / - 49 + 93
----
1187

query I rowsort
SELECT NULLIF ( 90, - + 31 * + 11 ) * - 94 * - 53 + + 47 * - CASE + 28 WHEN - 12 THEN + - 24 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT + 94 * - 8 + + + 38 + - 17 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT + 94 * - 8 + + + 38 + - 17 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 74 + - 12
----
62

query I rowsort
SELECT ALL 9 - + - 25 * 99 col0
----
2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + 69 * 26 + 54 + - MIN( ALL 30 ) * 16 * 23 + + 40
----
-9152

skipif mysql # not compatible
query I rowsort label-2114
SELECT + 69 * 26 + 54 + - MIN ( ALL 30 ) * 16 * 23 + + 40
----
-9152

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

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

query I rowsort
SELECT 72 * + 51 + + 13 AS col1
----
3685

query I rowsort
SELECT DISTINCT 38 - - 18
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2118
SELECT ALL CASE + 66 WHEN - + 32 * - ( + 77 ) THEN - - 86 + + + ( + COUNT( * ) ) WHEN + CAST( NULL AS SIGNED ) / - 78 THEN NULL WHEN + 69 + 33 THEN NULL END * 92 * + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL CASE + 66 WHEN - + 32 * - ( + 77 ) THEN - - 86 + + + ( + COUNT ( * ) ) WHEN + CAST ( NULL AS INTEGER ) / - 78 THEN NULL WHEN + 69 + 33 THEN NULL END * 92 * + 86 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT + CAST( - 8 AS SIGNED ) + - + 89 + + 29
----
-68

skipif mysql # not compatible
query I rowsort label-2119
SELECT + CAST ( - 8 AS INTEGER ) + - + 89 + + 29
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT ALL 73 - 67 DIV - - 5
----
60

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL 73 - 67 / - - 5
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2121
SELECT + CAST( - MAX( - + 58 ) AS SIGNED ) * - ( 58 ) AS col1, 25 * - COUNT( * ) AS col2
----
-3364
-25

skipif mysql # not compatible
query II rowsort label-2121
SELECT + CAST ( - MAX ( - + 58 ) AS INTEGER ) * - ( 58 ) AS col1, 25 * - COUNT ( * ) AS col2
----
-3364
-25

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

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

query I rowsort
SELECT + 49 * - 87
----
-4263

query II rowsort
SELECT - 14 + 42 AS col0, - 34 AS col1
----
28
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT + 84 * COUNT( ALL + 52 )
----
84

skipif mysql # not compatible
query I rowsort label-2125
SELECT + 84 * COUNT ( ALL + 52 )
----
84

query I rowsort
SELECT - 90 + + 33 col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2127
SELECT ALL - ( - 11 ) DIV - 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL - ( - 11 ) / - 99 AS col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT - 7 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-2129
SELECT - 7 / + 62
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT ALL - ( - - 49 ) DIV + 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - ( - - 49 ) / + 40 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT DISTINCT COALESCE ( + + COALESCE ( - NULLIF ( - 88, 73 + - CAST( NULL AS SIGNED ) ), 57 + - 13 + + 55, - - 88 + + - CAST( 0 AS SIGNED ) + - 52 - - + 95 ), - 89 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT COALESCE ( + + COALESCE ( - NULLIF ( - 88, 73 + - CAST ( NULL AS INTEGER ) ), 57 + - 13 + + 55, - - 88 + + - CAST ( 0 AS INTEGER ) + - 52 - - + 95 ), - 89 ) AS col2
----
88

query I rowsort
SELECT ALL + + ( + 44 ) * 17 AS col2
----
748

query I rowsort
SELECT + 71 - 86
----
-15

query II rowsort
SELECT DISTINCT + - 95 + - + 47 + - - 84 AS col2, 43 + ( + 53 ) + + 5 * - 66 + - 1
----
-58
-235

onlyif mysql # aggregate syntax: 
query II rowsort label-2136
SELECT - - 6 + - + 3 col1, 63 - - COUNT( * ) AS col1
----
3
64

skipif mysql # not compatible
query II rowsort label-2136
SELECT - - 6 + - + 3 col1, 63 - - COUNT ( * ) AS col1
----
3
64

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2138
SELECT DISTINCT - - 31 DIV 91 * - 63 + + + 37 - - 66 + + + 77 + - - 98, 26 AS col0
----
278
26

skipif mysql # not compatible
query II rowsort label-2138
SELECT DISTINCT - - 31 / 91 * - 63 + + + 37 - - 66 + + + 77 + - - 98, 26 AS col0
----
278
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - 30 * 2 + SUM( ALL - - 21 ) + + 47 * 4 * COUNT( * ) * SUM( - 85 )
----
-16019

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 30 * 2 + SUM ( ALL - - 21 ) + + 47 * 4 * COUNT ( * ) * SUM ( - 85 )
----
-16019

query I rowsort
SELECT ALL + - 32 * - 32 * + + 58 * - ( - 74 ) + - 86 AS col0
----
4394922

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2141
SELECT ALL CASE - 51 WHEN - CAST( NULL AS SIGNED ) * - 85 THEN + 26 WHEN + 10 + - 67 THEN + 61 ELSE NULL END * + - 86 - CASE + + 92 WHEN CAST( NULL AS SIGNED ) * - + COUNT( * ) - + + 77 - - 38 - 9 THEN + - 27 + - - 47 WHEN - + 1 THEN + + AVG ( - ( - 77 ) ) + + + 58 ELSE - 29 * - COUNT( * ) / + 84 END + 32 * - 24 + 75 + - + 9 / + + 50 + - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL CASE - 51 WHEN - CAST ( NULL AS INTEGER ) * - 85 THEN + 26 WHEN + 10 + - 67 THEN + 61 ELSE NULL END * + - 86 - CASE + + 92 WHEN CAST ( NULL AS INTEGER ) * - + COUNT ( * ) - + + 77 - - 38 - 9 THEN + - 27 + - - 47 WHEN - + 1 THEN + + AVG ( - ( - 77 ) ) + + + 58 ELSE - 29 * - COUNT ( * ) / + 84 END + 32 * - 24 + 75 + - + 9 / + + 50 + - 68 AS col1
----
NULL

query I rowsort
SELECT ALL 87 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - + 79 * + - SUM( DISTINCT - ( + + 11 ) ) col1
----
-869

skipif mysql # not compatible
query I rowsort label-2143
SELECT - + 79 * + - SUM ( DISTINCT - ( + + 11 ) ) col1
----
-869

query I rowsort
SELECT ALL 77 * 85 * - 30 - + + 36
----
-196386

query I rowsort
SELECT + COALESCE ( - - NULLIF ( - 43, 37 ), - 86, COALESCE ( 12, 75 * + 16 + 83 ) ) AS col2
----
-43

query I rowsort
SELECT - 15 - - - 21
----
-36

query I rowsort
SELECT DISTINCT - 85 * 83
----
-7055

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2148
SELECT ALL COUNT( * ) * - SUM( DISTINCT - 93 ) / - 61 * - - 94 * ( + 0 ) * CAST( NULL AS DECIMAL ) * + 4 + + + 30 / + - 73 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT - 93 ) / - 61 * - - 94 * ( + 0 ) * CAST ( NULL AS REAL ) * + 4 + + + 30 / + - 73 - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL + 49 AS col2, 21
----
49
21

query I rowsort
SELECT DISTINCT + 13 * - - 75
----
975

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2153
SELECT ALL + 55, + 60 DIV + 43 col1
----
55
1

skipif mysql # not compatible
query II rowsort label-2153
SELECT ALL + 55, + 60 / + 43 col1
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT - 26 * COUNT( * ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-2154
SELECT - 26 * COUNT ( * ) col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2155
SELECT + CASE - 87 WHEN 21 * - COUNT( * ) / + 1 THEN + - 88 WHEN + 89 THEN - - ( + COALESCE ( CAST( NULL AS SIGNED ), + 92 ) ) WHEN + + 14 / - 12 + + 15 THEN NULL ELSE 33 END + - COALESCE ( + - 80, - 80 * + 35 ) col2
----
113

skipif mysql # not compatible
query I rowsort label-2155
SELECT + CASE - 87 WHEN 21 * - COUNT ( * ) / + 1 THEN + - 88 WHEN + 89 THEN - - ( + COALESCE ( CAST ( NULL AS INTEGER ), + 92 ) ) WHEN + + 14 / - 12 + + 15 THEN NULL ELSE 33 END + - COALESCE ( + - 80, - 80 * + 35 ) col2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT MIN( - - ( ( + 37 ) ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2156
SELECT MIN ( - - ( ( + 37 ) ) ) AS col1
----
37

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + 78 + + + 43 + ( - NULLIF ( - 10, + 28 / + MIN( 94 ) ) ) AS col1
----
131

skipif mysql # not compatible
query I rowsort label-2159
SELECT + 78 + + + 43 + ( - NULLIF ( - 10, + 28 / + MIN ( 94 ) ) ) AS col1
----
131

query I rowsort
SELECT ALL - 98 + - 66
----
-164

query I rowsort
SELECT + 89 + 23 + + 60
----
172

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2163
SELECT DISTINCT 38 AS col1, + ( + COUNT( * ) )
----
38
1

skipif mysql # not compatible
query II rowsort label-2163
SELECT DISTINCT 38 AS col1, + ( + COUNT ( * ) )
----
38
1

query I rowsort
SELECT ALL 85 + 49 AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - ( - MAX( - ( + + NULLIF ( + - 88, + 37 ) ) ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2165
SELECT - ( - MAX ( - ( + + NULLIF ( + - 88, + 37 ) ) ) ) AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2166
SELECT DISTINCT 26 DIV 31 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT 26 / 31 AS col0
----
0

query I rowsort
SELECT ALL + 55 + + + 24 AS col0
----
79

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

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT + + 67 + + - ( ( - - COUNT ( * ) ) ) AS col2
----
66

query I rowsort
SELECT + 18 + - - 47 AS col0
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT ALL - 19 * COUNT( DISTINCT + 53 )
----
-19

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL - 19 * COUNT ( DISTINCT + 53 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT + - NULLIF ( + 93, + COALESCE ( ( 61 ), - SUM( DISTINCT - 22 ) ) * - 8 * + - MIN( DISTINCT + 52 ) ) + + MAX( DISTINCT - - 71 )
----
-22

skipif mysql # not compatible
query I rowsort label-2172
SELECT + - NULLIF ( + 93, + COALESCE ( ( 61 ), - SUM ( DISTINCT - 22 ) ) * - 8 * + - MIN ( DISTINCT + 52 ) ) + + MAX ( DISTINCT - - 71 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT + 85 * + - 73 + - + COUNT( DISTINCT + 23 ) AS col0
----
-6206

skipif mysql # not compatible
query I rowsort label-2173
SELECT + 85 * + - 73 + - + COUNT ( DISTINCT + 23 ) AS col0
----
-6206

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - COUNT( * ) * - ( - + MIN( DISTINCT 32 ) ) + + 59
----
27

skipif mysql # not compatible
query I rowsort label-2174
SELECT - COUNT ( * ) * - ( - + MIN ( DISTINCT 32 ) ) + + 59
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - MIN( ALL + 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2175
SELECT - MIN ( ALL + 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2176
SELECT ALL - 71 DIV + 72 * + 96 - - COUNT( + 96 ) + - - 88 * + - 39 AS col1
----
-3431

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - 71 / + 72 * + 96 - - COUNT ( + 96 ) + - - 88 * + - 39 AS col1
----
-3431

query I rowsort
SELECT + 23 * 7 + - - ( + - 50 ) + + 79 AS col2
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL - CAST( 21 AS SIGNED ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - CAST ( 21 AS INTEGER ) AS col1
----
-21

query I rowsort
SELECT ALL - ( ( - - 39 ) ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT 84 * CASE 17 WHEN + + 0 THEN - 91 WHEN 62 THEN + COUNT( - 49 ) / + + 6 / 85 + + - 5 + + 75 * + - 19 + 31 + 76 + + 24 * + 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT 84 * CASE 17 WHEN + + 0 THEN - 91 WHEN 62 THEN + COUNT ( - 49 ) / + + 6 / 85 + + - 5 + + 75 * + - 19 + 31 + 76 + + 24 * + 15 END
----
NULL

query I rowsort
SELECT 19 + - 40 + - 70 col2
----
-91

query I rowsort
SELECT ALL - 36 * - ( - 65 ) col0
----
-2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2183
SELECT 90 DIV 84 AS col2, + COALESCE ( + 21, - ( 27 ) ) * 13 + - 47 + - CASE - - 83 WHEN 31 * + - NULLIF ( + 84, - COUNT( + ( + 42 ) ) * ( - 69 ) ) THEN - 22 ELSE NULL END * + 16 * - - 76 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2183
SELECT 90 / 84 AS col2, + COALESCE ( + 21, - ( 27 ) ) * 13 + - 47 + - CASE - - 83 WHEN 31 * + - NULLIF ( + 84, - COUNT ( + ( + 42 ) ) * ( - 69 ) ) THEN - 22 ELSE NULL END * + 16 * - - 76 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT COALESCE ( + 55, 79 + + 72, + + COUNT( * ) ) + + + 14 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2184
SELECT COALESCE ( + 55, 79 + + 72, + + COUNT ( * ) ) + + + 14 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT 3 DIV + 64 * - - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2185
SELECT 3 / + 64 * - - 93 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT ALL + NULLIF ( + 74, - 11 ) + + 7 DIV - 54
----
74

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL + NULLIF ( + 74, - 11 ) + + 7 / - 54
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2187
SELECT ALL + COUNT( * ) * - 84 AS col2, 89
----
-84
89

skipif mysql # not compatible
query II rowsort label-2187
SELECT ALL + COUNT ( * ) * - 84 AS col2, 89
----
-84
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT DISTINCT COALESCE ( - 14, 23 * - COALESCE ( - 29, - 31, - 90 ), - COUNT( * ) ) + + - 26 - + - 67 + 34 * + 99 - - 11 * 52
----
3965

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT COALESCE ( - 14, 23 * - COALESCE ( - 29, - 31, - 90 ), - COUNT ( * ) ) + + - 26 - + - 67 + 34 * + 99 - - 11 * 52
----
3965

query I rowsort
SELECT ALL + + 90 + - 77 * - - 40 AS col1
----
-2990

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT CAST( NULL AS SIGNED ) + - 62 / + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT CAST ( NULL AS INTEGER ) + - 62 / + 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT MAX( + - 72 ) + + SUM( DISTINCT - 65 ) * + + 54 AS col2
----
-3582

skipif mysql # not compatible
query I rowsort label-2192
SELECT MAX ( + - 72 ) + + SUM ( DISTINCT - 65 ) * + + 54 AS col2
----
-3582

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT ALL 19 + - + 81 + COUNT( * ) + + 29, 73 AS col0
----
-32
73

skipif mysql # not compatible
query II rowsort label-2193
SELECT ALL 19 + - + 81 + COUNT ( * ) + + 29, 73 AS col0
----
-32
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL - COUNT( * ) * - 5 * - 80 - 30 * 70 + - 52 - + 17
----
-2569

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - COUNT ( * ) * - 5 * - 80 - 30 * 70 + - 52 - + 17
----
-2569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2196
SELECT ALL - CASE CAST( - 16 AS SIGNED ) WHEN - 3 + COUNT( * ) * - AVG ( 67 ) THEN + COUNT( * ) * - 79 * + ( COUNT( * ) ) + + CASE + 30 WHEN - + COUNT( + + 77 ) THEN + + CAST( NULL AS SIGNED ) / + + 31 * - 4 * 61 / 27 ELSE + 53 END + - + ( 86 ) * - COUNT( * ) * + 15 END - - 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL - CASE CAST ( - 16 AS INTEGER ) WHEN - 3 + COUNT ( * ) * - AVG ( 67 ) THEN + COUNT ( * ) * - 79 * + ( COUNT ( * ) ) + + CASE + 30 WHEN - + COUNT ( + + 77 ) THEN + + CAST ( NULL AS INTEGER ) / + + 31 * - 4 * 61 / 27 ELSE + 53 END + - + ( 86 ) * - COUNT ( * ) * + 15 END - - 19 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 90 * - 68, - 97 AS col1
----
-6120
-97

query I rowsort
SELECT 19 + + - 38
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT ALL 86 DIV 51
----
1

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL 86 / 51
----
1

query II rowsort
SELECT + 66 AS col1, + 18
----
66
18

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

skipif mysql # not compatible
query I rowsort label-2201
SELECT COUNT ( * ) / 75 - + 87
----
-87

query I rowsort
SELECT ALL + 13 * - + 82
----
-1066

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT ALL 50 DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL 50 / 31
----
1

query I rowsort
SELECT 3 * + 43 AS col1
----
129

query I rowsort
SELECT DISTINCT 44 * - 55 AS col1
----
-2420

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

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

query I rowsort
SELECT 29 * + 99 * COALESCE ( 0, 4 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT COUNT( * ) - 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2208
SELECT COUNT ( * ) - 30 AS col0
----
-29

query II rowsort
SELECT DISTINCT - 23 + + 14 + - 67, 29 AS col2
----
-76
29

query I rowsort
SELECT ALL 43 * - - 69
----
2967

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL - CASE COALESCE ( + 27, + ( COUNT( * ) ) ) WHEN AVG ( ALL 35 ) THEN - + SUM( - + 64 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - CASE COALESCE ( + 27, + ( COUNT ( * ) ) ) WHEN AVG ( ALL 35 ) THEN - + SUM ( - + 64 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT + NULLIF ( + COUNT( * ), - 58 ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - 58 ) + + 79
----
80

query I rowsort
SELECT ALL - 78 + - 84
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT 62 - - + 45 + + 15 + + 73 DIV ( 38 ) * 78 AS col0
----
200

skipif mysql # not compatible
query I rowsort label-2215
SELECT 62 - - + 45 + + 15 + + 73 / ( 38 ) * 78 AS col0
----
200

onlyif mysql # DIV for integer division: 
query I rowsort label-2216
SELECT ALL + 79 DIV 83 + - 24 + - + 64 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + 79 / 83 + - 24 + - + 64 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT 16 * + - 89 * 89 + 27 + - + 21 + - - COUNT( * ) col1
----
-126729

skipif mysql # not compatible
query I rowsort label-2217
SELECT 16 * + - 89 * 89 + 27 + - + 21 + - - COUNT ( * ) col1
----
-126729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT DISTINCT + + MAX( ALL + - 88 ) * CAST( - - 3 AS SIGNED ) AS col1
----
-264

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT + + MAX ( ALL + - 88 ) * CAST ( - - 3 AS INTEGER ) AS col1
----
-264

query I rowsort
SELECT - 51 + + 78
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT 54 DIV + 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2220
SELECT 54 / + 35 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2221
SELECT 41 * - + 33 + - CAST( ( + 23 ) AS SIGNED ), - 57 - - 66 * + ( + - 68 ) AS col1
----
-1376
-4545

skipif mysql # not compatible
query II rowsort label-2221
SELECT 41 * - + 33 + - CAST ( ( + 23 ) AS INTEGER ), - 57 - - 66 * + ( + - 68 ) AS col1
----
-1376
-4545

onlyif mysql # DIV for integer division: 
query I rowsort label-2222
SELECT ALL + 19 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL + 19 / - 37
----
0

query I rowsort
SELECT ALL - - 75 + + 39
----
114

query I rowsort
SELECT ALL - NULLIF ( 56, - 71 * + + 16 + - 94 * - - 9 * - 95 / - + 44 + - 70 ) AS col2
----
-56

query I rowsort
SELECT + NULLIF ( - 52, 95 ) + 58 AS col2
----
6

query I rowsort
SELECT ALL - - ( + 65 ) - - + 38
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT DISTINCT + COALESCE ( + 16, + 87 * CAST( NULL AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + COALESCE ( + 16, + 87 * CAST ( NULL AS INTEGER ) )
----
16

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2229
SELECT - COUNT( * ) DIV - 33 * - - 45 * + 27 - + 63 * + COUNT( + - 35 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2229
SELECT - COUNT ( * ) / - 33 * - - 45 * + 27 - + 63 * + COUNT ( + - 35 ) AS col1
----
-63

query I rowsort
SELECT + 36 + - + 5
----
31

query I rowsort
SELECT - 76 * 56 + 98 AS col2
----
-4158

query I rowsort
SELECT ALL COALESCE ( + 53, 45 ) AS col0
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT NULLIF ( - + 23, + CASE - 27 WHEN + NULLIF ( + 87, - COUNT( * ) ) - 24 + CASE - 49 WHEN 74 * COUNT( * ) + - 20 THEN NULL WHEN 60 * - COUNT( * ) * - COALESCE ( 45, - - 96, 8 ) THEN NULL ELSE + - 2 * + - 56 + - + COUNT( * ) END THEN - + 96 * + + COUNT( * ) ELSE NULL END )
----
-23

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT NULLIF ( - + 23, + CASE - 27 WHEN + NULLIF ( + 87, - COUNT ( * ) ) - 24 + CASE - 49 WHEN 74 * COUNT ( * ) + - 20 THEN NULL WHEN 60 * - COUNT ( * ) * - COALESCE ( 45, - - 96, 8 ) THEN NULL ELSE + - 2 * + - 56 + - + COUNT ( * ) END THEN - + 96 * + + COUNT ( * ) ELSE NULL END )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL + 72 * - COUNT( * ) * - 92 * - - 25
----
165600

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + 72 * - COUNT ( * ) * - 92 * - - 25
----
165600

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2238
SELECT CASE - CAST( ( - 28 ) AS SIGNED ) WHEN - 45 THEN - 42 * 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT CASE - CAST ( ( - 28 ) AS INTEGER ) WHEN - 45 THEN - 42 * 31 END
----
NULL

query I rowsort
SELECT 45 * - 74 + 23 AS col2
----
-3307

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2240
SELECT + CAST( - ( - - 79 ) AS SIGNED ) DIV 53
----
-1

skipif mysql # not compatible
query I rowsort label-2240
SELECT + CAST ( - ( - - 79 ) AS INTEGER ) / 53
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2242
SELECT ALL + 5 * - 3 + + COALESCE ( + 23, + COUNT( ALL 8 ) ) + 89 + + COUNT( * ) * 16 + + + 0 * + + 75, + 71 col1
----
113
71

skipif mysql # not compatible
query II rowsort label-2242
SELECT ALL + 5 * - 3 + + COALESCE ( + 23, + COUNT ( ALL 8 ) ) + 89 + + COUNT ( * ) * 16 + + + 0 * + + 75, + 71 col1
----
113
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT - 77 * - 46 + 80 * + + MIN( DISTINCT - 46 ) + + 32
----
-106

skipif mysql # not compatible
query I rowsort label-2243
SELECT - 77 * - 46 + 80 * + + MIN ( DISTINCT - 46 ) + + 32
----
-106

query I rowsort
SELECT + 79 + + 98
----
177

onlyif mysql # aggregate syntax: 
query III rowsort label-2245
SELECT DISTINCT + 80 AS col2, 28 * - COUNT( * ) + - COUNT( * ) AS col1, + 28
----
80
-29
28

skipif mysql # not compatible
query III rowsort label-2245
SELECT DISTINCT + 80 AS col2, 28 * - COUNT ( * ) + - COUNT ( * ) AS col1, + 28
----
80
-29
28

query I rowsort
SELECT DISTINCT - 11 * + 82 + + - 39
----
-941

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL + 28 * - + COUNT( * ) + + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL + 28 * - + COUNT ( * ) + + + COUNT ( * )
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-2248
SELECT - 95 * + 3 + - + 16 * - 94 + - 39 DIV 13, ( + + 40 ) DIV - + 3 AS col2
----
1216
-13

skipif mysql # not compatible
query II rowsort label-2248
SELECT - 95 * + 3 + - + 16 * - 94 + - 39 / 13, ( + + 40 ) / - + 3 AS col2
----
1216
-13

query I rowsort
SELECT ALL - 78 * - - 64 + + 59
----
-4933

query II rowsort
SELECT + ( 90 ) AS col2, 46 - + 91 AS col2
----
90
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT + 19 DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2251
SELECT + 19 / 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT 10 * ( - 0 ) + - + 94 + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-2252
SELECT 10 * ( - 0 ) + - + 94 + COUNT ( * )
----
-93

query I rowsort
SELECT ALL 31 * + - ( 56 ) AS col0
----
-1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2254
SELECT ALL CASE - + 2 WHEN - - 36 THEN - + 73 WHEN - 83 / - + 8 / CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN 39 ELSE NULL END * + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL CASE - + 2 WHEN - - 36 THEN - + 73 WHEN - 83 / - + 8 / CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN 39 ELSE NULL END * + 90 AS col0
----
NULL

query I rowsort
SELECT - 91 + + 15
----
-76

query II rowsort
SELECT + - 79, + 66 AS col2
----
-79
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT - + 64 + - COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-2257
SELECT - + 64 + - COUNT ( * ) AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2258
SELECT ALL + + 77 * + CAST( + 55 AS SIGNED ) + CASE 82 WHEN - - 90 THEN + 32 END - COALESCE ( - SUM( DISTINCT - 58 ), - 38 + + 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + + 77 * + CAST ( + 55 AS INTEGER ) + CASE 82 WHEN - - 90 THEN + 32 END - COALESCE ( - SUM ( DISTINCT - 58 ), - 38 + + 10 ) AS col2
----
NULL

query I rowsort
SELECT + - NULLIF ( 87, + 59 ) AS col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2260
SELECT ALL - 90 * + 29 + - 90 * 28, + COALESCE ( + - COUNT( * ), COUNT( + 29 ) + + COALESCE ( - 11, - - 76 ) DIV - ( 82 ), ( - 80 ) + - NULLIF ( + MAX( ALL + 34 ), SUM( 18 ) ) * - 26 ) col0
----
-5130
-1

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL - 90 * + 29 + - 90 * 28, + COALESCE ( + - COUNT ( * ), COUNT ( + 29 ) + + COALESCE ( - 11, - - 76 ) / - ( 82 ), ( - 80 ) + - NULLIF ( + MAX ( ALL + 34 ), SUM ( 18 ) ) * - 26 ) col0
----
-5130
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT + - MAX( - 22 ) * + 86 AS col2
----
1892

skipif mysql # not compatible
query I rowsort label-2261
SELECT + - MAX ( - 22 ) * + 86 AS col2
----
1892

query II rowsort
SELECT + 8, - 86 * - - 33 * 19 AS col0
----
8
-53922

query II rowsort
SELECT ALL 35 AS col1, - 65 AS col0
----
35
-65

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

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

query I rowsort
SELECT - NULLIF ( + 76, 20 )
----
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT - + MAX( - - 22 ) * - - COUNT( * ) + 40 * + 66
----
2618

skipif mysql # not compatible
query I rowsort label-2267
SELECT - + MAX ( - - 22 ) * - - COUNT ( * ) + 40 * + 66
----
2618

query I rowsort
SELECT DISTINCT - + 76 * + 20 + 26
----
-1494

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT - 96 + MAX( - 3 )
----
-99

skipif mysql # not compatible
query I rowsort label-2270
SELECT - 96 + MAX ( - 3 )
----
-99

query I rowsort
SELECT ALL - 80 * + 94 + - 63 * - 12
----
-6764

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL + COUNT( * ) * - 30 * 60 col1
----
-1800

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + COUNT ( * ) * - 30 * 60 col1
----
-1800

query I rowsort
SELECT - 16 + + ( - 77 ) AS col1
----
-93

query I rowsort
SELECT - 33 * + 77 AS col0
----
-2541

query I rowsort
SELECT - ( + + ( 54 ) ) * - 39 * + + 69 - - - 16
----
145298

query I rowsort
SELECT + 91 + + 69 + + 21
----
181

query I rowsort
SELECT ALL - ( + ( - 30 ) ) + + + 41 AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT DISTINCT - 96 + + + COUNT( * ) AS col2, 50 + 26 AS col2
----
-95
76

skipif mysql # not compatible
query II rowsort label-2278
SELECT DISTINCT - 96 + + + COUNT ( * ) AS col2, 50 + 26 AS col2
----
-95
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT ALL + 84 DIV 54 + + + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + 84 / 54 + + + 51 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-2280
SELECT DISTINCT + COUNT( * ) * + + 8 AS col0, MIN( + 50 )
----
8
50

skipif mysql # not compatible
query II rowsort label-2280
SELECT DISTINCT + COUNT ( * ) * + + 8 AS col0, MIN ( + 50 )
----
8
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT + 1 DIV 56 * + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2281
SELECT + 1 / 56 * + 73 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2283
SELECT ALL + + COUNT( DISTINCT 31 ) / AVG ( + CAST( - 28 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) - + - 70 - 68 + + 94 * + + 37 - + COALESCE ( + 29, 13 * 52 ) + + 89 - + COUNT( * ) + 31 + + + 45 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + + COUNT ( DISTINCT 31 ) / AVG ( + CAST ( - 28 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) - + - 70 - 68 + + 94 * + + 37 - + COALESCE ( + 29, 13 * 52 ) + + 89 - + COUNT ( * ) + 31 + + + 45 * - 69
----
NULL

query II rowsort
SELECT + 28 - + 13 * 55, 32 - + + 24 AS col0
----
-687
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2285
SELECT ALL 81 DIV + 56 + - SUM( ALL - + 46 ) col0
----
47

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL 81 / + 56 + - SUM ( ALL - + 46 ) col0
----
47

query I rowsort
SELECT + 69 * - - 90 + 78 AS col1
----
6288

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT ALL - COALESCE ( 74, + + 18 DIV + 50 ) * + 83 * + 25 + + 45 + 81 + + 56 AS col0
----
-153368

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - COALESCE ( 74, + + 18 / + 50 ) * + 83 * + 25 + + 45 + 81 + + 56 AS col0
----
-153368

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT COUNT( DISTINCT - - 24 ) - + ( - 3 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2288
SELECT COUNT ( DISTINCT - - 24 ) - + ( - 3 ) AS col0
----
4

query I rowsort
SELECT + 35 + - 87
----
-52

query II rowsort
SELECT ALL + 12 * + 90, 91 AS col1
----
1080
91

query I rowsort
SELECT DISTINCT - 84 * - - 6 * ( - 48 ) - + 35 + + 45 AS col1
----
24202

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT + NULLIF ( + 83, ( 45 ) ) * - ( 18 ) * + - 37 + COUNT( * ) + - + CASE 6 WHEN - + 81 THEN - 41 * - - CASE 32 WHEN + 33 * - 12 + + + NULLIF ( 78, + + 28 ) THEN NULL WHEN - + 88 THEN NULL WHEN 56 THEN COUNT( * ) / - - 15 + NULLIF ( 90, - COUNT( * ) ) WHEN + NULLIF ( + 18, + 81 + - + COUNT( + - 74 ) ) THEN NULL END END + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT + NULLIF ( + 83, ( 45 ) ) * - ( 18 ) * + - 37 + COUNT ( * ) + - + CASE 6 WHEN - + 81 THEN - 41 * - - CASE 32 WHEN + 33 * - 12 + + + NULLIF ( 78, + + 28 ) THEN NULL WHEN - + 88 THEN NULL WHEN 56 THEN COUNT ( * ) / - - 15 + NULLIF ( 90, - COUNT ( * ) ) WHEN + NULLIF ( + 18, + 81 + - + COUNT ( + - 74 ) ) THEN NULL END END + + 4
----
NULL

query I rowsort
SELECT + 94 * ( + ( - 47 ) ) AS col2
----
-4418

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

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

query I rowsort
SELECT 78 * + - 57 AS col2
----
-4446

query I rowsort
SELECT 19 * 82 AS col2
----
1558

query II rowsort
SELECT ALL 71 AS col2, 78
----
71
78

query II rowsort
SELECT - 73, + 50 AS col2
----
-73
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2299
SELECT ALL - COUNT( 60 ) + 41 AS col1, 2
----
40
2

skipif mysql # not compatible
query II rowsort label-2299
SELECT ALL - COUNT ( 60 ) + 41 AS col1, 2
----
40
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2300
SELECT ALL 68 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL 68 / 82
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2301
SELECT 9 + + - 36 * - 59 * 18 DIV COUNT( * ) AS col2
----
38241

skipif mysql # not compatible
query I rowsort label-2301
SELECT 9 + + - 36 * - 59 * 18 / COUNT ( * ) AS col2
----
38241

query I rowsort
SELECT DISTINCT 85 + - 4
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT - 64 + - COUNT( 70 ) + + - 86 AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT - 64 + - COUNT ( 70 ) + + - 86 AS col1
----
-151

query I rowsort
SELECT ALL - 92 + 7 + + ( 28 ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT + COALESCE ( + 23, + + 75 * NULLIF ( + MAX( DISTINCT + - 44 ), - - 92 ) * + 62 - - 5 ) * - ( - 86 ) * + 49 + + ( - + COALESCE ( 77, + ( + COUNT( * ) ), - - 99 + - + 60 ) )
----
96845

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT + COALESCE ( + 23, + + 75 * NULLIF ( + MAX ( DISTINCT + - 44 ), - - 92 ) * + 62 - - 5 ) * - ( - 86 ) * + 49 + + ( - + COALESCE ( 77, + ( + COUNT ( * ) ), - - 99 + - + 60 ) )
----
96845

query I rowsort
SELECT 9 + + 31 AS col2
----
40

query I rowsort
SELECT 20 * - 17 + 77 AS col0
----
-263

query I rowsort
SELECT ALL + 47 - - + 73
----
120

query II rowsort
SELECT + 3, 2 col1
----
3
2

query II rowsort
SELECT + 4 AS col0, 8 AS col2
----
4
8

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

skipif mysql # not compatible
query I rowsort label-2311
SELECT COUNT ( * ) / 26 + - 20 * - + ( COUNT ( * ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT 44 + - 18 * + 39 + - + MAX( - - 0 ) + COUNT( * ) AS col0
----
-657

skipif mysql # not compatible
query I rowsort label-2312
SELECT 44 + - 18 * + 39 + - + MAX ( - - 0 ) + COUNT ( * ) AS col0
----
-657

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

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

query II rowsort
SELECT - 60 * - 14 * + 29 + - - 79 AS col1, - 79 AS col0
----
24439
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2315
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2, - 94 * - 11 + + 57
----
NULL
1091

skipif mysql # not compatible
query II rowsort label-2315
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2, - 94 * - 11 + + 57
----
NULL
1091

query II rowsort
SELECT DISTINCT - 98, - 11 col1
----
-98
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT + ( + + NULLIF ( - 30, - CAST( NULL AS SIGNED ) * 84 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-2317
SELECT + ( + + NULLIF ( - 30, - CAST ( NULL AS INTEGER ) * 84 ) )
----
-30

query I rowsort
SELECT ALL - + 76 * 88 * - + 80 AS col1
----
535040

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT 49 * 94 * SUM( ALL - 53 ) + - - 89 col0
----
-244029

skipif mysql # not compatible
query I rowsort label-2319
SELECT 49 * 94 * SUM ( ALL - 53 ) + - - 89 col0
----
-244029

query I rowsort
SELECT ( - + 99 ) + 35
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL - - CASE + COUNT( * ) WHEN 50 THEN 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - - CASE + COUNT ( * ) WHEN 50 THEN 57 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT DISTINCT - CAST( 1 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT - CAST ( 1 AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT + 33 * + - 58 - + 95 AS col2
----
-2009

onlyif mysql # aggregate syntax: 
query II rowsort label-2324
SELECT 46 * - - 16 * 98 + - - 79 + SUM( 46 ) - + - MAX( ALL + - 66 ), - 17 * + + SUM( - + 8 ) AS col1
----
72187
136

skipif mysql # not compatible
query II rowsort label-2324
SELECT 46 * - - 16 * 98 + - - 79 + SUM ( 46 ) - + - MAX ( ALL + - 66 ), - 17 * + + SUM ( - + 8 ) AS col1
----
72187
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2325
SELECT ALL - - 16 AS col2, CASE + - 67 WHEN + CAST( - - 83 AS SIGNED ) * + 72 + - 14 THEN NULL ELSE - 27 - 77 + 61 END AS col2
----
16
-43

skipif mysql # not compatible
query II rowsort label-2325
SELECT ALL - - 16 AS col2, CASE + - 67 WHEN + CAST ( - - 83 AS INTEGER ) * + 72 + - 14 THEN NULL ELSE - 27 - 77 + 61 END AS col2
----
16
-43

query II rowsort
SELECT ALL - - 25 AS col1, + 35
----
25
35

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

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL COUNT ( * ) + - 40 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - 69 * + - COUNT( * ) * - 29 + + 80 AS col2
----
-1921

skipif mysql # not compatible
query I rowsort label-2328
SELECT - 69 * + - COUNT ( * ) * - 29 + + 80 AS col2
----
-1921

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

query I rowsort
SELECT 98 * 26 + - 97 AS col2
----
2451

query I rowsort
SELECT + 36 * + 53 AS col2
----
1908

query I rowsort
SELECT ( + 25 ) * - + 90 AS col1
----
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ( - 59 ) + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2333
SELECT ( - 59 ) + COUNT ( * ) AS col2
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL 80 + - 36 + COUNT( * ) + 10
----
55

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL 80 + - 36 + COUNT ( * ) + 10
----
55

query I rowsort
SELECT ALL 51 + - 4
----
47

query II rowsort
SELECT ALL 33 + 71 AS col1, 19 AS col2
----
104
19

query I rowsort
SELECT 13 - 58 + - + 38 + + + NULLIF ( + + 1, - + 75 )
----
-82

query II rowsort
SELECT DISTINCT - ( + - 64 ) + - 71 * + + 6 AS col1, - ( 8 ) - - 29
----
-362
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT 38 * 77 AS col1, COUNT( * ) + + 95
----
2926
96

skipif mysql # not compatible
query II rowsort label-2340
SELECT 38 * 77 AS col1, COUNT ( * ) + + 95
----
2926
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT 44 + - SUM( + 77 ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-2341
SELECT 44 + - SUM ( + 77 ) col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT COUNT( * ) - 82 col1
----
-81

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT COUNT ( * ) - 82 col1
----
-81

query I rowsort
SELECT 54 + + 10 + 68
----
132

query I rowsort
SELECT ALL - ( - + 57 ) * - 54 AS col0
----
-3078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT - NULLIF ( 98, 36 + 41 / CAST( 34 AS SIGNED ) * + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2345
SELECT - NULLIF ( 98, 36 + 41 / CAST ( 34 AS INTEGER ) * + 98 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2346
SELECT DISTINCT COUNT( * ) DIV - - ( - 63 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT COUNT ( * ) / - - ( - 63 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + 34 * + COUNT ( * ) AS col0
----
34

query I rowsort
SELECT 53 * 62
----
3286

query I rowsort
SELECT ALL - ( - 66 ) AS col0
----
66

query I rowsort
SELECT DISTINCT + + 87 * + ( + 32 ) - - 1 AS col0
----
2785

query I rowsort
SELECT ALL - 11 * NULLIF ( 86, 78 ) * 71 * + COALESCE ( + 22, - 40 ) AS col1
----
-1477652

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT COUNT( * ) * 92 * - - COUNT( * ) * 62 - + 91 AS col0
----
5613

skipif mysql # not compatible
query I rowsort label-2352
SELECT COUNT ( * ) * 92 * - - COUNT ( * ) * 62 - + 91 AS col0
----
5613

query I rowsort
SELECT + ( + + 29 ) * + 87
----
2523

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT + - SUM( + 69 ) DIV - 99 + 14 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT + - SUM ( + 69 ) / - 99 + 14 AS col0
----
14

query I rowsort
SELECT DISTINCT 82 * 37 + 86 * - 51 + - 57
----
-1409

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL ( - 71 ) * - COUNT( ALL + + 52 ) + + 87
----
158

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL ( - 71 ) * - COUNT ( ALL + + 52 ) + + 87
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2357
SELECT - + COUNT( * ) * - CAST( NULL AS DECIMAL ) * - + 34 * + COALESCE ( + 39, + 72, + 97 * + 72 + + + COALESCE ( COUNT( * ), - + 89 ) ) * + - 47 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT - + COUNT ( * ) * - CAST ( NULL AS REAL ) * - + 34 * + COALESCE ( + 39, + 72, + 97 * + 72 + + + COALESCE ( COUNT ( * ), - + 89 ) ) * + - 47 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 67 * - + 98 + - 60 + 39 AS col2
----
6545

query I rowsort
SELECT - + 29 + - 96
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL SUM( ALL - - 38 ) * + 33 * 48 + - MIN( ALL - - 26 ) + + NULLIF ( + 12, 98 * + - 47 )
----
60178

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL SUM ( ALL - - 38 ) * + 33 * 48 + - MIN ( ALL - - 26 ) + + NULLIF ( + 12, 98 * + - 47 )
----
60178

query I rowsort
SELECT + 90 - 60 + - 81
----
-51

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

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

query I rowsort
SELECT - 33 + + 80 * - 72 * - + 2 AS col0
----
11487

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT ALL 73 + + 60 + 71 * + - CAST( - + 40 AS SIGNED ) * + 1 col0
----
2973

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL 73 + + 60 + 71 * + - CAST ( - + 40 AS INTEGER ) * + 1 col0
----
2973

query I rowsort
SELECT ALL - 64 + + 88
----
24

query II rowsort
SELECT ALL 15 AS col2, - 41 AS col0
----
15
-41

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

query I rowsort
SELECT 64 * + 59 * + + 12 * 42 + 15
----
1903119

query II rowsort
SELECT ALL 24 AS col2, - 51 + + 90
----
24
39

query I rowsort
SELECT - 44 + ( 24 ) AS col1
----
-20

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

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

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

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

query I rowsort
SELECT - 20 + + + 39 AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT ALL CAST( + - ( + ( - - 66 ) ) AS SIGNED ) * + 70
----
-4620

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL CAST ( + - ( + ( - - 66 ) ) AS INTEGER ) * + 70
----
-4620

query I rowsort
SELECT + ( 49 ) * - 4
----
-196

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2377
SELECT + 66 + CASE + + 50 WHEN AVG ( DISTINCT - 1 ) + + 34 THEN + COUNT( ALL + CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT + 66 + CASE + + 50 WHEN AVG ( DISTINCT - 1 ) + + 34 THEN + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL MAX( - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL MAX ( - 92 ) AS col1
----
-92

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

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

query I rowsort
SELECT + 30 + - 34
----
-4

query I rowsort
SELECT - 44 - ( - 61 ) * - 53 + + - 80 AS col0
----
-3357

query I rowsort
SELECT + 88 * - 11
----
-968

query I rowsort
SELECT - + 79 + 77 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT + ( ( + COUNT( * ) ) ) * 82 + 0 + 3 + + + 62 * - COALESCE ( - 19, - COUNT( * ) ) / + ( + + ( + 50 ) ) - 93 + - + 75 * - + ( - - 93 ) * - 5 * - - MIN( 93 ) * 0 + 34 + + CASE 24 WHEN - COUNT( * ) / + 50 + - COUNT( ALL + 37 ) * - MAX( + + 55 ) THEN NULL WHEN + CASE + + 63 WHEN 74 THEN NULL WHEN 88 + + ( + CAST( 19 AS SIGNED ) ) THEN 59 * + 46 ELSE NULL END * + - 62 - 64 THEN NULLIF ( 38, - 18 ) * 29 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT + ( ( + COUNT ( * ) ) ) * 82 + 0 + 3 + + + 62 * - COALESCE ( - 19, - COUNT ( * ) ) / + ( + + ( + 50 ) ) - 93 + - + 75 * - + ( - - 93 ) * - 5 * - - MIN ( 93 ) * 0 + 34 + + CASE 24 WHEN - COUNT ( * ) / + 50 + - COUNT ( ALL + 37 ) * - MAX ( + + 55 ) THEN NULL WHEN + CASE + + 63 WHEN 74 THEN NULL WHEN 88 + + ( + CAST ( 19 AS INTEGER ) ) THEN 59 * + 46 ELSE NULL END * + - 62 - 64 THEN NULLIF ( 38, - 18 ) * 29 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT 59 DIV + 17 + + 79 + - 70 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT 59 / + 17 + + 79 + - 70 AS col1
----
12

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

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

query I rowsort
SELECT + - 19 + 12
----
-7

query II rowsort
SELECT ALL + 8 * + - 59 - 7, 54 AS col2
----
-479
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2389
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) / - - 49 * - + 19 + + 64 / + + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) / - - 49 * - + 19 + + 64 / + + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL - - ( SUM( - 22 ) ) * - CASE + 73 WHEN + - 7 * - + 76 * + 58 * - 14 THEN - 23 / - + 45 + 99 END + 88 * NULLIF ( - 32, MIN( 68 ) ) - - + 63 + + ( + - 63 ) + 41 + - 79 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - - ( SUM ( - 22 ) ) * - CASE + 73 WHEN + - 7 * - + 76 * + 58 * - 14 THEN - 23 / - + 45 + 99 END + 88 * NULLIF ( - 32, MIN ( 68 ) ) - - + 63 + + ( + - 63 ) + 41 + - 79 col1
----
NULL

query I rowsort
SELECT DISTINCT 16 * ( - - 56 ) + + 54
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL - 13 * - MAX( DISTINCT - - ( 26 ) ) + 29 * 23 + - 11
----
994

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL - 13 * - MAX ( DISTINCT - - ( 26 ) ) + 29 * 23 + - 11
----
994

query I rowsort
SELECT + 91 * - - 42 * 96 + - - 63 + + + 88 + 72 * - - 11
----
367855

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT - COUNT( * ) * + COUNT( * ) + 35 + ( + COUNT( ALL + 27 ) )
----
35

skipif mysql # not compatible
query I rowsort label-2394
SELECT - COUNT ( * ) * + COUNT ( * ) + 35 + ( + COUNT ( ALL + 27 ) )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2395
SELECT + COUNT( * ) * - 30 + 43, 17 * 13 * 58 - - 3 DIV - 46 AS col0
----
13
12818

skipif mysql # not compatible
query II rowsort label-2395
SELECT + COUNT ( * ) * - 30 + 43, 17 * 13 * 58 - - 3 / - 46 AS col0
----
13
12818

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT + ( 98 ) / - 98 + - - MAX( DISTINCT + 76 ) + + - ( + + 11 ) / + 79 - - CASE WHEN NOT + ( + 80 ) NOT IN ( + - 51, 64 / + COUNT( * ), + 76, 37, - COALESCE ( - - 35, 29 ) ) THEN 68 - + 97 END + - - 87 + + 52 / + + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT + ( 98 ) / - 98 + - - MAX ( DISTINCT + 76 ) + + - ( + + 11 ) / + 79 - - CASE WHEN NOT + ( + 80 ) NOT IN ( + - 51, 64 / + COUNT ( * ), + 76, 37, - COALESCE ( - - 35, 29 ) ) THEN 68 - + 97 END + - - 87 + + 52 / + + 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT - ( + CASE 57 WHEN + 52 THEN - 55 - + 31 / - + COUNT( * ) WHEN - 69 * + MAX( DISTINCT - + 1 ) - + NULLIF ( - 20, 65 ) THEN NULL WHEN + 53 THEN + - COUNT( * ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT - ( + CASE 57 WHEN + 52 THEN - 55 - + 31 / - + COUNT ( * ) WHEN - 69 * + MAX ( DISTINCT - + 1 ) - + NULLIF ( - 20, 65 ) THEN NULL WHEN + 53 THEN + - COUNT ( * ) ELSE NULL END ) AS col2
----
NULL

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

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

query I rowsort
SELECT - + 92 * + 14 + + 67
----
-1221

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - - COUNT( * ) * 51 + - 93
----
-42

skipif mysql # not compatible
query I rowsort label-2400
SELECT - - COUNT ( * ) * 51 + - 93
----
-42

query I rowsort
SELECT ALL 1 * + + 10 - + 53
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2402
SELECT DISTINCT + 54 AS col0, + CAST( NULL AS SIGNED )
----
54
NULL

skipif mysql # not compatible
query II rowsort label-2402
SELECT DISTINCT + 54 AS col0, + CAST ( NULL AS INTEGER )
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL ( 45 ) * - COUNT( * ) * - + ( + - 67 ) * - 50 AS col0
----
150750

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL ( 45 ) * - COUNT ( * ) * - + ( + - 67 ) * - 50 AS col0
----
150750

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

skipif mysql # not compatible
query I rowsort label-2404
SELECT - 33 * - 18 / 84 * 0 * - COUNT ( * ) * - - 42
----
0

query II rowsort
SELECT ALL + 87 * 80 AS col1, 92 AS col1
----
6960
92

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

query I rowsort
SELECT - 3 - + 69
----
-72

query I rowsort
SELECT - 79 - 98
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT + COUNT( - 36 ) * - 9 + - 43 + + + 93 * 87 - - + 86 * - + 57 + + 80 + 40 * 29 AS col2
----
4377

skipif mysql # not compatible
query I rowsort label-2409
SELECT + COUNT ( - 36 ) * - 9 + - 43 + + + 93 * 87 - - + 86 * - + 57 + + 80 + 40 * 29 AS col2
----
4377

query II rowsort
SELECT - 97 * - 55 AS col2, - 63
----
5335
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT MAX( DISTINCT 8 )
----
8

skipif mysql # not compatible
query I rowsort label-2411
SELECT MAX ( DISTINCT 8 )
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT + 70 * - 4 * + + COUNT( * )
----
-280

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT + 70 * - 4 * + + COUNT ( * )
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT DISTINCT ( + - CAST( - 47 AS SIGNED ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT ( + - CAST ( - 47 AS INTEGER ) ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT ALL + COUNT( ALL COALESCE ( 57, + 15, + ( + 93 ) ) ) * + 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL + COUNT ( ALL COALESCE ( 57, + 15, + ( + 93 ) ) ) * + 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT - COUNT( + + 15 ) + + - 22
----
-23

skipif mysql # not compatible
query I rowsort label-2416
SELECT - COUNT ( + + 15 ) + + - 22
----
-23

query I rowsort
SELECT - 25 - 44 AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2418
SELECT ALL CAST( NULL AS SIGNED ) AS col1, 7 * - - 7 AS col0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-2418
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, 7 * - - 7 AS col0
----
NULL
49

query I rowsort
SELECT 34 * 32 AS col1
----
1088

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT + 72 DIV - 42
----
-1

skipif mysql # not compatible
query I rowsort label-2420
SELECT + 72 / - 42
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT COUNT( * ) + + - 78 + - MAX( DISTINCT - 27 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2421
SELECT COUNT ( * ) + + - 78 + - MAX ( DISTINCT - 27 ) AS col0
----
-50

query II rowsort
SELECT ALL + 28 + + + 86 * + + 19 + + 54 AS col2, ( + + 31 ) + ( 38 ) * 67 AS col1
----
1716
2577

query I rowsort
SELECT DISTINCT - 70 + - 0 * - 8
----
-70

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT ALL - - 52 col1, - COUNT( * )
----
52
-1

skipif mysql # not compatible
query II rowsort label-2426
SELECT ALL - - 52 col1, - COUNT ( * )
----
52
-1

query I rowsort
SELECT - 22 * + 45
----
-990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT ALL 92 + - - 23 * - CAST( - 43 AS SIGNED ) + 61 + - 83 * + + 82 * + 48 * + - 47 * - + COALESCE ( + - 35, - - 91 + + 53 + COUNT( * ) * - + 94 + SUM( - 19 ) ) AS col0
----
537402902

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL 92 + - - 23 * - CAST ( - 43 AS INTEGER ) + 61 + - 83 * + + 82 * + 48 * + - 47 * - + COALESCE ( + - 35, - - 91 + + 53 + COUNT ( * ) * - + 94 + SUM ( - 19 ) ) AS col0
----
537402902

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT - COUNT( + 95 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2430
SELECT - COUNT ( + 95 ) col1
----
-1

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

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

query II rowsort
SELECT 66 AS col2, - NULLIF ( + 43, + - 90 + - - 49 ) + - 54 * ( 1 )
----
66
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT + 82 DIV - SUM( + - 15 ) + + + 58 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2433
SELECT + 82 / - SUM ( + - 15 ) + + + 58 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2434
SELECT MIN( - 62 ) * - CAST( NULL AS SIGNED ) + - - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2434
SELECT MIN ( - 62 ) * - CAST ( NULL AS INTEGER ) + - - 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL + 1 + - COALESCE ( + MAX( ALL 98 ), - 46, + 76 * COUNT( * ) + 15 * - COUNT( * ) ) * - CAST( NULL AS SIGNED ) + - - 30 + - 31 * + - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + 1 + - COALESCE ( + MAX ( ALL 98 ), - 46, + 76 * COUNT ( * ) + 15 * - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + - - 30 + - 31 * + - 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT + CASE - COUNT( * ) WHEN COUNT( * ) + - + CASE WHEN + 51 > NULL THEN AVG ( ALL - 48 ) * + COALESCE ( 1, - 37 ) * + - NULLIF ( 50, - + 17 ) * - - COUNT( * ) + - 25 END THEN 21 WHEN - 91 * 72 + - COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT + CASE - COUNT ( * ) WHEN COUNT ( * ) + - + CASE WHEN + 51 > NULL THEN AVG ( ALL - 48 ) * + COALESCE ( 1, - 37 ) * + - NULLIF ( 50, - + 17 ) * - - COUNT ( * ) + - 25 END THEN 21 WHEN - 91 * 72 + - COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT 42 - - - NULLIF ( - 27, - 33 * + - 79 + - 24 ) - - + CASE COUNT( * ) WHEN + 22 / 59 + - ( - 59 ) * 53 THEN NULL WHEN 93 - + + 48 - 78 THEN + 71 / - 25 * + 64 WHEN COUNT( * ) * + 98 / - 90 + 59 THEN NULL WHEN - 1 THEN NULL ELSE NULL END + + 39 + COUNT( * ) * + 74 + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT 42 - - - NULLIF ( - 27, - 33 * + - 79 + - 24 ) - - + CASE COUNT ( * ) WHEN + 22 / 59 + - ( - 59 ) * 53 THEN NULL WHEN 93 - + + 48 - 78 THEN + 71 / - 25 * + 64 WHEN COUNT ( * ) * + 98 / - 90 + 59 THEN NULL WHEN - 1 THEN NULL ELSE NULL END + + 39 + COUNT ( * ) * + 74 + - 36
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2439
SELECT - - ( - 97 ) * + 80 - 77 + + + 10 DIV 2, + 39 AS col2
----
-7832
39

skipif mysql # not compatible
query II rowsort label-2439
SELECT - - ( - 97 ) * + 80 - 77 + + + 10 / 2, + 39 AS col2
----
-7832
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2440
SELECT ALL - - SUM( DISTINCT CAST( 12 AS SIGNED ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL - - SUM ( DISTINCT CAST ( 12 AS INTEGER ) ) AS col2
----
12

query II rowsort
SELECT 29 * + 53 AS col2, 42 AS col1
----
1537
42

query I rowsort
SELECT - 52 * + 72 + - - 24
----
-3720

query II rowsort
SELECT 38 * - 54 AS col1, + 20
----
-2052
20

query I rowsort
SELECT 1 * + + 25 + + 82 * + 67 AS col1
----
5519

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT 48 - + - 6 * - + 78 * - NULLIF ( + COUNT( * ), CASE - + 44 WHEN 34 THEN COUNT( * ) * 61 ELSE NULL END * - SUM( DISTINCT 69 ) + 40 + + COUNT( * ) + + COUNT( * ) + 33 ) * + 11 + - ( + - 5 ) AS col0
----
5201

skipif mysql # not compatible
query I rowsort label-2445
SELECT 48 - + - 6 * - + 78 * - NULLIF ( + COUNT ( * ), CASE - + 44 WHEN 34 THEN COUNT ( * ) * 61 ELSE NULL END * - SUM ( DISTINCT 69 ) + 40 + + COUNT ( * ) + + COUNT ( * ) + 33 ) * + 11 + - ( + - 5 ) AS col0
----
5201

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT + 77 * - - 93 - 71 col2, CASE - 29 WHEN + 5 * - 54 THEN + 97 WHEN - COUNT( * ) THEN NULL ELSE NULL END
----
7090
NULL

skipif mysql # not compatible
query II rowsort label-2447
SELECT + 77 * - - 93 - 71 col2, CASE - 29 WHEN + 5 * - 54 THEN + 97 WHEN - COUNT ( * ) THEN NULL ELSE NULL END
----
7090
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2448
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2448
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2449
SELECT ALL - 2 DIV - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL - 2 / - COUNT ( * )
----
2

query I rowsort
SELECT 47 + 84 + + 77
----
208

query II rowsort
SELECT ALL + 29 * 80 col2, + 45 AS col2
----
2320
45

query I rowsort
SELECT 53 * + 4
----
212

query I rowsort
SELECT NULLIF ( + 8, + 2 * + - 77 - - - 60 - ( - + ( 39 ) ) ) + + - 11 AS col0
----
-3

query I rowsort
SELECT 43 + - + 77 + + 34 col1
----
0

query I rowsort
SELECT 79 * 13 AS col2
----
1027

query I rowsort
SELECT 82 + + - COALESCE ( - 60, 59 ) col2
----
142

query I rowsort
SELECT ALL + 57 + - 14 AS col0
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-2458
SELECT - 79 + + - 66, - 75 DIV - 83 * + 38 AS col0
----
-145
0

skipif mysql # not compatible
query II rowsort label-2458
SELECT - 79 + + - 66, - 75 / - 83 * + 38 AS col0
----
-145
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT DISTINCT - COALESCE ( + 74, + 37 * 74 + 79 * - 76 ) + 74 + + ( 90 ) - - - 55 DIV + - 78 + 72 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT - COALESCE ( + 74, + 37 * 74 + 79 * - 76 ) + 74 + + ( 90 ) - - - 55 / + - 78 + 72 AS col0
----
162

onlyif mysql # DIV for integer division: 
query II rowsort label-2460
SELECT DISTINCT - 66 + - 86, - COALESCE ( 75, - 37 + 35 ) DIV + 50 + - + 48 * - 60 * - + 94 + 87 + 7 AS col0
----
-152
-270627

skipif mysql # not compatible
query II rowsort label-2460
SELECT DISTINCT - 66 + - 86, - COALESCE ( 75, - 37 + 35 ) / + 50 + - + 48 * - 60 * - + 94 + 87 + 7 AS col0
----
-152
-270627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT - ( NULLIF ( - CASE 49 WHEN + + ( + - 59 ) * 28 - + - CAST( NULL AS SIGNED ) THEN ( + COUNT( * ) ) WHEN SUM( DISTINCT - 75 ) + - COUNT( * ) THEN 54 * + 10 ELSE 68 * - CAST( + NULLIF ( + 42, - + CASE - MAX( 17 ) WHEN - - 9 + - 32 THEN 57 - ( - COUNT( * ) ) WHEN - 77 THEN NULL WHEN 54 * 83 THEN + 53 ELSE NULL END + + MIN( DISTINCT + 71 ) ) AS SIGNED ) + + 73 END, + + 62 - + 66 ) ) AS col0
----
-2783

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT - ( NULLIF ( - CASE 49 WHEN + + ( + - 59 ) * 28 - + - CAST ( NULL AS INTEGER ) THEN ( + COUNT ( * ) ) WHEN SUM ( DISTINCT - 75 ) + - COUNT ( * ) THEN 54 * + 10 ELSE 68 * - CAST ( + NULLIF ( + 42, - + CASE - MAX ( 17 ) WHEN - - 9 + - 32 THEN 57 - ( - COUNT ( * ) ) WHEN - 77 THEN NULL WHEN 54 * 83 THEN + 53 ELSE NULL END + + MIN ( DISTINCT + 71 ) ) AS INTEGER ) + + 73 END, + + 62 - + 66 ) ) AS col0
----
-2783

query I rowsort
SELECT DISTINCT ( - 36 ) + - 73
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT + + SUM( DISTINCT + 28 ) + + - ( + + 5 ) col1
----
23

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT + + SUM ( DISTINCT + 28 ) + + - ( + + 5 ) col1
----
23

query I rowsort
SELECT + NULLIF ( + + 18, - 0 ) - - - 26
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2465
SELECT COUNT( * ) * 48, - 21 + 40 + + 1 * - - 87 col2
----
48
106

skipif mysql # not compatible
query II rowsort label-2465
SELECT COUNT ( * ) * 48, - 21 + 40 + + 1 * - - 87 col2
----
48
106

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT ALL - - 50 DIV - 64 - 83 + + 43 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - - 50 / - 64 - 83 + + 43 AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2467
SELECT CAST( - - 78 AS SIGNED ) + - - 50 AS col1, - 27
----
128
-27

skipif mysql # not compatible
query II rowsort label-2467
SELECT CAST ( - - 78 AS INTEGER ) + - - 50 AS col1, - 27
----
128
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2468
SELECT - 42 + - + CAST( + CAST( COUNT( + 53 ) AS DECIMAL ) AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-2468
SELECT - 42 + - + CAST ( + CAST ( COUNT ( + 53 ) AS REAL ) AS INTEGER )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2469
SELECT ALL + 19 * 17 * + + CAST( NULL AS SIGNED ) + + 88 - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL + 19 * 17 * + + CAST ( NULL AS INTEGER ) + + 88 - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2470
SELECT 75 / + 89 * + 13 + - CAST( 6 AS SIGNED ) + + - 41 * + CAST( NULL AS SIGNED ) + + + MIN( DISTINCT - 49 ) + CAST( NULL AS SIGNED ) + 36 + + ( COUNT( + 87 ) ) / - + 83 * - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT 75 / + 89 * + 13 + - CAST ( 6 AS INTEGER ) + + - 41 * + CAST ( NULL AS INTEGER ) + + + MIN ( DISTINCT - 49 ) + CAST ( NULL AS INTEGER ) + 36 + + ( COUNT ( + 87 ) ) / - + 83 * - 5 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT ALL - + CASE + - COUNT( * ) WHEN + 35 THEN + - 94 ELSE + 95 END
----
-95

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL - + CASE + - COUNT ( * ) WHEN + 35 THEN + - 94 ELSE + 95 END
----
-95

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

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

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

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

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

query I rowsort
SELECT ( + 82 ) + - 1 * + 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT SUM( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-2477
SELECT SUM ( 4 )
----
4

query I rowsort
SELECT 22 * - + 13 col2
----
-286

onlyif mysql # DIV for integer division: 
query II rowsort label-2479
SELECT ALL 68 DIV + ( - 33 ) AS col0, 74 * - 83
----
-2
-6142

skipif mysql # not compatible
query II rowsort label-2479
SELECT ALL 68 / + ( - 33 ) AS col0, 74 * - 83
----
-2
-6142

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT ALL - COUNT( * ) AS col0, - 26 * - COUNT( ALL 91 ) * + - 96
----
-1
-2496

skipif mysql # not compatible
query II rowsort label-2481
SELECT ALL - COUNT ( * ) AS col0, - 26 * - COUNT ( ALL 91 ) * + - 96
----
-1
-2496

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT DISTINCT ( + COUNT( * ) ) + - 47 + - 14 - - COUNT( * ) * COUNT( * ) + - 71 + - 41 - - 12 * - - ( + + 70 ), 47 AS col1
----
669
47

skipif mysql # not compatible
query II rowsort label-2482
SELECT DISTINCT ( + COUNT ( * ) ) + - 47 + - 14 - - COUNT ( * ) * COUNT ( * ) + - 71 + - 41 - - 12 * - - ( + + 70 ), 47 AS col1
----
669
47

query I rowsort
SELECT ALL - 97 * + 84 AS col0
----
-8148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2484
SELECT MIN( DISTINCT 0 ) DIV + 64 AS col0, 39 DIV - ( + 73 ) + - + 72 AS col1
----
0
-72

skipif mysql # not compatible
query II rowsort label-2484
SELECT MIN ( DISTINCT 0 ) / + 64 AS col0, 39 / - ( + 73 ) + - + 72 AS col1
----
0
-72

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

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - 88 + - - 58 + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT + MAX( - 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2486
SELECT + MAX ( - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT - MAX( - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-2487
SELECT - MAX ( - 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT + 90 - + COUNT( * ) + - 49 - + 3 * + SUM( ALL + 47 ) AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-2488
SELECT + 90 - + COUNT ( * ) + - 49 - + 3 * + SUM ( ALL + 47 ) AS col2
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT + 8 DIV - - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2489
SELECT + 8 / - - 45 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT ALL - 26 + + COUNT( * ) + ( - 52 ) * + ( 15 ) * - + 74 + + 1 AS col1
----
57696

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - 26 + + COUNT ( * ) + ( - 52 ) * + ( 15 ) * - + 74 + + 1 AS col1
----
57696

query I rowsort
SELECT ALL + 71 + 99 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT - CASE + 87 WHEN + + 50 THEN + 39 * + NULLIF ( + + 13, - - 3 + 44 * + 31 ) WHEN + 95 + 23 - - + COUNT( * ) * + + 3 THEN 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT - CASE + 87 WHEN + + 50 THEN + 39 * + NULLIF ( + + 13, - - 3 + 44 * + 31 ) WHEN + 95 + 23 - - + COUNT ( * ) * + + 3 THEN 94 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2494
SELECT + MAX( ALL + 0 ) + - + 93, - CASE - 68 WHEN 8 * 77 THEN - - 28 + - - CAST( NULL AS SIGNED ) DIV + 46 * - + 34 * + - COUNT( - 92 ) * + 40 ELSE + NULLIF ( + + 83, - 87 ) * + - 87 END * COUNT( * ) AS col1
----
-93
7221

skipif mysql # not compatible
query II rowsort label-2494
SELECT + MAX ( ALL + 0 ) + - + 93, - CASE - 68 WHEN 8 * 77 THEN - - 28 + - - CAST ( NULL AS INTEGER ) / + 46 * - + 34 * + - COUNT ( - 92 ) * + 40 ELSE + NULLIF ( + + 83, - 87 ) * + - 87 END * COUNT ( * ) AS col1
----
-93
7221

query I rowsort
SELECT - 36 - - 52
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT ALL + COUNT( * ) + - 31 * CAST( - 4 AS SIGNED )
----
125

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + COUNT ( * ) + - 31 * CAST ( - 4 AS INTEGER )
----
125

query I rowsort
SELECT DISTINCT - 78 * + 93
----
-7254

query I rowsort
SELECT ALL + 20 + - ( - - 16 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT - MAX( + - ( 53 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2499
SELECT - MAX ( + - ( 53 ) ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT - 13 + MAX( - 2 ) + - + CAST( NULL AS SIGNED ) + - + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT - 13 + MAX ( - 2 ) + - + CAST ( NULL AS INTEGER ) + - + 10 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2501
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 28 + + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - CAST ( NULL AS REAL ) * 28 + + - 0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2502
SELECT ALL - 13 AS col1, 63 * 26 - + - 7 + + 91 + SUM( ALL - 81 ) - - 5 + - ( + - 12 ) * + ( - 87 )
----
-13
616

skipif mysql # not compatible
query II rowsort label-2502
SELECT ALL - 13 AS col1, 63 * 26 - + - 7 + + 91 + SUM ( ALL - 81 ) - - 5 + - ( + - 12 ) * + ( - 87 )
----
-13
616

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT DISTINCT - - 48 * 18 * - COALESCE ( COUNT( * ), ( - COUNT( * ) ) * - + 72 * + 43 * - + 42 + + 25 * + 44 )
----
-864

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - - 48 * 18 * - COALESCE ( COUNT ( * ), ( - COUNT ( * ) ) * - + 72 * + 43 * - + 42 + + 25 * + 44 )
----
-864

query I rowsort
SELECT - + 7 - + + 70 AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT ALL - 85 * + CAST( + 72 AS SIGNED ) * 85 * - 48 * CASE + 7 WHEN + - COALESCE ( MIN( - ( + + ( - 64 ) ) ), + + COUNT( * ), + 41, - 1 ) / + 82 THEN COUNT( * ) WHEN - 75 * 26 - 59 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL - 85 * + CAST ( + 72 AS INTEGER ) * 85 * - 48 * CASE + 7 WHEN + - COALESCE ( MIN ( - ( + + ( - 64 ) ) ), + + COUNT ( * ), + 41, - 1 ) / + 82 THEN COUNT ( * ) WHEN - 75 * 26 - 59 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT - - 79 * - 17 * ( + COUNT( * ) ) AS col0
----
-1343

skipif mysql # not compatible
query I rowsort label-2506
SELECT - - 79 * - 17 * ( + COUNT ( * ) ) AS col0
----
-1343

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT DISTINCT - COUNT( ALL - 86 ) * + 19, 19 + - 73 col0
----
-19
-54

skipif mysql # not compatible
query II rowsort label-2507
SELECT DISTINCT - COUNT ( ALL - 86 ) * + 19, 19 + - 73 col0
----
-19
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT COUNT( DISTINCT - - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-2508
SELECT COUNT ( DISTINCT - - 71 )
----
1

query II rowsort
SELECT - - 80 * + ( 53 ) AS col2, - NULLIF ( + 53, + 43 ) + 61
----
4240
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT ALL + + 6 DIV 71 * + + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL + + 6 / 71 * + + 14 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT CASE + - 81 WHEN + 78 THEN - CAST( NULL AS SIGNED ) * + + COUNT( * ) + - CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) * + 38 ELSE 88 * CASE + 28 WHEN + 8 THEN NULL WHEN - 86 - + 94 THEN - CASE - COUNT( * ) WHEN 79 THEN NULL ELSE + + 80 + + - ( + NULLIF ( - + 19, COALESCE ( 72, + 56, + 24 + 85 ) ) ) END END * + SUM( DISTINCT + + 23 ) + + 83 + - 5 * 0 * 8 * + - COALESCE ( + + 26, 75, 77, - - 42 ) * + COUNT( * ) END / 23 + - 85 + - - 40 + - + 63 * + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT CASE + - 81 WHEN + 78 THEN - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * + 38 ELSE 88 * CASE + 28 WHEN + 8 THEN NULL WHEN - 86 - + 94 THEN - CASE - COUNT ( * ) WHEN 79 THEN NULL ELSE + + 80 + + - ( + NULLIF ( - + 19, COALESCE ( 72, + 56, + 24 + 85 ) ) ) END END * + SUM ( DISTINCT + + 23 ) + + 83 + - 5 * 0 * 8 * + - COALESCE ( + + 26, 75, 77, - - 42 ) * + COUNT ( * ) END / 23 + - 85 + - - 40 + - + 63 * + 91
----
NULL

query I rowsort
SELECT ALL ( 82 ) * - 13
----
-1066

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT ( + + MIN( - - COALESCE ( - 49, + + 65 * - + 96 * + + 12, - 68, + 44 ) ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-2513
SELECT ( + + MIN ( - - COALESCE ( - 49, + + 65 * - + 96 * + + 12, - 68, + 44 ) ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2514
SELECT 2 * - + COUNT( * ) - + COALESCE ( 86, CASE 28 WHEN - 78 - - + 56 * - - 64 * 14 THEN NULL WHEN - 42 DIV - 31 THEN NULL ELSE - + 42 DIV 66 END ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-2514
SELECT 2 * - + COUNT ( * ) - + COALESCE ( 86, CASE 28 WHEN - 78 - - + 56 * - - 64 * 14 THEN NULL WHEN - 42 / - 31 THEN NULL ELSE - + 42 / 66 END ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT ALL 56 * + - CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) * COALESCE ( - 48, 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL 56 * + - CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) * COALESCE ( - 48, 36 ) AS col1
----
NULL

query II rowsort
SELECT - 69 * - - 92 + - + 65 * - + 66 AS col2, 26 AS col1
----
-2058
26

query I rowsort
SELECT + 3 + + 10 * + - 38 AS col0
----
-377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2518
SELECT ALL - COUNT( * ) * 34 * - COUNT( ALL - + 32 ) * - 86 + + 60 + + - COUNT( * ) + + COUNT( - 70 ) + - 12 DIV - 90
----
-2864

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL - COUNT ( * ) * 34 * - COUNT ( ALL - + 32 ) * - 86 + + 60 + + - COUNT ( * ) + + COUNT ( - 70 ) + - 12 / - 90
----
-2864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2519
SELECT - 14 + + - NULLIF ( + - 88, + CAST( - NULLIF ( + 93, + 69 + - COUNT( * ) ) AS SIGNED ) ) + + ( 0 ) * COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2519
SELECT - 14 + + - NULLIF ( + - 88, + CAST ( - NULLIF ( + 93, + 69 + - COUNT ( * ) ) AS INTEGER ) ) + + ( 0 ) * COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2520
SELECT + COALESCE ( + - COUNT( * ), 19 + + 12 ) AS col1, - 62 AS col1
----
-1
-62

skipif mysql # not compatible
query II rowsort label-2520
SELECT + COALESCE ( + - COUNT ( * ), 19 + + 12 ) AS col1, - 62 AS col1
----
-1
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2521
SELECT ( - 98 ) * 99 - - - CAST( 23 AS SIGNED ) AS col1, NULLIF ( - 37, - CAST( - 23 AS SIGNED ) )
----
-9725
-37

skipif mysql # not compatible
query II rowsort label-2521
SELECT ( - 98 ) * 99 - - - CAST ( 23 AS INTEGER ) AS col1, NULLIF ( - 37, - CAST ( - 23 AS INTEGER ) )
----
-9725
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT 13 * - + COUNT( * ) * - COUNT( * ) * 67 AS col0
----
871

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT 13 * - + COUNT ( * ) * - COUNT ( * ) * 67 AS col0
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT 36 * + 23 * + 95 + - - ( COUNT( * ) ) col2
----
78661

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT 36 * + 23 * + 95 + - - ( COUNT ( * ) ) col2
----
78661

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT NULLIF ( - + SUM( + 21 ), + 22 ) * + + 77 + 60 AS col0
----
-1557

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT NULLIF ( - + SUM ( + 21 ), + 22 ) * + + 77 + 60 AS col0
----
-1557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2526
SELECT ALL 80 * + 56 * - 8 + + 43 - + 9 DIV + 12 * - COUNT( * ) AS col1
----
-35797

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL 80 * + 56 * - 8 + + 43 - + 9 / + 12 * - COUNT ( * ) AS col1
----
-35797

onlyif mysql # DIV for integer division: 
query II rowsort label-2527
SELECT DISTINCT + - 0 * - + 35 * - + 52 DIV 67 AS col1, 29
----
0
29

skipif mysql # not compatible
query II rowsort label-2527
SELECT DISTINCT + - 0 * - + 35 * - + 52 / 67 AS col1, 29
----
0
29

query I rowsort
SELECT + - 91 * - 71
----
6461

query I rowsort
SELECT + 88 * + - 54 * 42 * - 17
----
3392928

onlyif mysql # aggregate syntax: 
query II rowsort label-2530
SELECT + COUNT( * ) + + ( + NULLIF ( - 92, + 62 ) ) * + ( + + COUNT( * ) ) * + - 81 - + 37, 24 AS col1
----
7416
24

skipif mysql # not compatible
query II rowsort label-2530
SELECT + COUNT ( * ) + + ( + NULLIF ( - 92, + 62 ) ) * + ( + + COUNT ( * ) ) * + - 81 - + 37, 24 AS col1
----
7416
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT - 89 - - + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - 89 - - + COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + MAX( ALL 68 ) * 20
----
1360

skipif mysql # not compatible
query I rowsort label-2532
SELECT + MAX ( ALL 68 ) * 20
----
1360

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT DISTINCT + 97 DIV + 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT + 97 / + 64 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT ALL + + 83 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + + 83 / + 89
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2535
SELECT ALL ( - CAST( 80 AS SIGNED ) ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL ( - CAST ( 80 AS INTEGER ) ) col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT - 4 + 71 DIV + + 15 * - COALESCE ( COUNT( * ), + - 5 + 99 - - + 3 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2536
SELECT - 4 + 71 / + + 15 * - COALESCE ( COUNT ( * ), + - 5 + 99 - - + 3 ) AS col0
----
-8

query I rowsort
SELECT + 44 + + 14 * + + 31 AS col1
----
478

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT - SUM( 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2538
SELECT - SUM ( 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2539
SELECT + 57 + + - 89 + - 70 + + 67 - + COUNT( * ) DIV - + 56 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2539
SELECT + 57 + + - 89 + - 70 + + 67 - + COUNT ( * ) / - + 56 AS col0
----
-35

query I rowsort
SELECT - 31 * - 88
----
2728

query I rowsort
SELECT ALL + 29 * 7
----
203

query I rowsort
SELECT + 71 * - 25 col2
----
-1775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT - + 18 + - + CAST( NULL AS SIGNED ) * 11 * - 87 * + 81 + + - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT - + 18 + - + CAST ( NULL AS INTEGER ) * 11 * - 87 * + 81 + + - 31 AS col1
----
NULL

query I rowsort
SELECT ALL + - 78 * - 62
----
4836

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT ALL + COALESCE ( 18, + 30 ) DIV - 85 + + 89 + + + 85 DIV + 37 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL + COALESCE ( 18, + 30 ) / - 85 + + 89 + + + 85 / + 37 AS col2
----
91

query I rowsort
SELECT 33 * - 35 + + 82
----
-1073

query I rowsort
SELECT - 27 + 5 AS col0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT 57 DIV 84 * - + 72
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT 57 / 84 * - + 72
----
0

query I rowsort
SELECT 28 * + 84
----
2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT ALL - CASE + + CAST( NULL AS SIGNED ) WHEN COUNT( * ) + 96 THEN 90 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - CASE + + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + 96 THEN 90 END AS col1
----
NULL

query I rowsort
SELECT ALL - 43 + + 65 AS col1
----
22

query I rowsort
SELECT ( + 47 ) * + 98 * - 75 + 38 + 35 AS col2
----
-345377

onlyif mysql # DIV for integer division: 
query I rowsort label-2553
SELECT 47 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-2553
SELECT 47 / - 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT ALL + 71 + + COALESCE ( + 81, - MIN( + 44 ), + - CAST( NULL AS SIGNED ), - - 15, - + 80 * - CAST( NULL AS SIGNED ) + + 18 - - - 35 * COUNT( * ) * - CAST( NULL AS SIGNED ) + - + ( + + 37 ) + 97 + + CASE - 25 WHEN + 95 THEN NULL ELSE + COUNT( * ) END + 47 )
----
152

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + 71 + + COALESCE ( + 81, - MIN ( + 44 ), + - CAST ( NULL AS INTEGER ), - - 15, - + 80 * - CAST ( NULL AS INTEGER ) + + 18 - - - 35 * COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - + ( + + 37 ) + 97 + + CASE - 25 WHEN + 95 THEN NULL ELSE + COUNT ( * ) END + 47 )
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-2555
SELECT + 87 col2, COUNT( * ) + - 58 + - 96
----
87
-153

skipif mysql # not compatible
query II rowsort label-2555
SELECT + 87 col2, COUNT ( * ) + - 58 + - 96
----
87
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL - 7 + - 65 + + 1 + - 93 * + 17 * 20 - - COUNT( * )
----
-31690

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - 7 + - 65 + + 1 + - 93 * + 17 * 20 - - COUNT ( * )
----
-31690

query I rowsort
SELECT DISTINCT + 53 * - 61 AS col1
----
-3233

query I rowsort
SELECT ALL 72 * - + 57
----
-4104

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT 82 * - MIN( ALL 94 ) AS col1, 92
----
-7708
92

skipif mysql # not compatible
query II rowsort label-2560
SELECT 82 * - MIN ( ALL 94 ) AS col1, 92
----
-7708
92

query I rowsort
SELECT ALL + 8 - 11 AS col1
----
-3

query II rowsort
SELECT 8 * 79 - 98 AS col2, - 93
----
534
-93

query I rowsort
SELECT ALL - NULLIF ( + 31, - 53 )
----
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT 63 - NULLIF ( - 76, - COUNT( * ) )
----
139

skipif mysql # not compatible
query I rowsort label-2565
SELECT 63 - NULLIF ( - 76, - COUNT ( * ) )
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2566
SELECT DISTINCT 63 AS col2, + 59 * MIN( - 8 ) + + CAST( NULL AS DECIMAL ) + + ( 69 ) * 84 + + 94 + + - 80 * + 62 + + 78 + - - CAST( + 42 AS SIGNED ) * + 25 AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-2566
SELECT DISTINCT 63 AS col2, + 59 * MIN ( - 8 ) + + CAST ( NULL AS REAL ) + + ( 69 ) * 84 + + 94 + + - 80 * + 62 + + 78 + - - CAST ( + 42 AS INTEGER ) * + 25 AS col2
----
63
NULL

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

skipif mysql # not compatible
query I rowsort label-2567
SELECT + NULLIF ( + 39, 47 * CAST ( NULL AS INTEGER ) ) col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2568
SELECT ALL COUNT( * ), 62 AS col0
----
1
62

skipif mysql # not compatible
query II rowsort label-2568
SELECT ALL COUNT ( * ), 62 AS col0
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT CASE - 5 WHEN - 32 THEN 12 END * 34 + 10 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT CASE - 5 WHEN - 32 THEN 12 END * 34 + 10 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2570
SELECT - - 17 AS col2, + COUNT( DISTINCT + 59 ) DIV - 62 + - 99
----
17
-99

skipif mysql # not compatible
query II rowsort label-2570
SELECT - - 17 AS col2, + COUNT ( DISTINCT + 59 ) / - 62 + - 99
----
17
-99

query II rowsort
SELECT - 42 col1, - CASE - + 14 WHEN 33 + + 83 THEN + + AVG ( - 54 ) * 72 WHEN - 27 THEN + 45 END + + 4
----
-42
NULL

query II rowsort
SELECT - 89 * 39 + - 34 AS col1, 96 * - 15 AS col0
----
-3505
-1440

query II rowsort
SELECT ALL + 99 AS col0, + 25 col0
----
99
25

query I rowsort
SELECT DISTINCT 76 * + 83
----
6308

query I rowsort
SELECT + 55 * + 56 AS col0
----
3080

query I rowsort
SELECT 32 * 74 * - 83 AS col1
----
-196544

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL - COUNT( - 19 )
----
-1

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL - COUNT ( - 19 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL - COUNT( DISTINCT + 48 )
----
-1

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - COUNT ( DISTINCT + 48 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2579
SELECT COALESCE ( 2, 46, - 15 + + 17, - CASE - 86 WHEN MAX( - 27 ) * + COUNT( * ) + + + 27 THEN + COUNT( * ) - - - 27 END * 92 * - MIN( 43 ) * + - 71 DIV - 38 ) * + + 58 + + + 46 AS col1, 87
----
162
87

skipif mysql # not compatible
query II rowsort label-2579
SELECT COALESCE ( 2, 46, - 15 + + 17, - CASE - 86 WHEN MAX ( - 27 ) * + COUNT ( * ) + + + 27 THEN + COUNT ( * ) - - - 27 END * 92 * - MIN ( 43 ) * + - 71 / - 38 ) * + + 58 + + + 46 AS col1, 87
----
162
87

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

query I rowsort
SELECT ALL 21 + + - 74 + 57 + + 31 + COALESCE ( NULLIF ( 99, - 53 ), + 3 ) * 19 * - 54
----
-101539

query I rowsort
SELECT 38 * - + 55
----
-2090

query I rowsort
SELECT ALL 57 + + 30 + 92 * - + 62
----
-5617

query I rowsort
SELECT ALL + 11 + ( - 50 )
----
-39

query I rowsort
SELECT ( - + 66 ) * + 3
----
-198

query II rowsort
SELECT DISTINCT - 89 AS col1, + 3 AS col1
----
-89
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT 38 * + 41 + + ( MIN( 50 ) )
----
1608

skipif mysql # not compatible
query I rowsort label-2587
SELECT 38 * + 41 + + ( MIN ( 50 ) )
----
1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2588
SELECT - ( - - 65 ) / - CASE - 29 WHEN - ( NULLIF ( 50, NULLIF ( - COUNT( * ), MIN( ALL 33 ) ) + ( - 97 ) + - 97 * - + 87 * 22 ) ) THEN - - COALESCE ( + + 75, + - 97, - + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * + 0 ) / + - 55 + - 53 END + CAST( NULL AS SIGNED ) / + - NULLIF ( - 14, - 49 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT - ( - - 65 ) / - CASE - 29 WHEN - ( NULLIF ( 50, NULLIF ( - COUNT ( * ), MIN ( ALL 33 ) ) + ( - 97 ) + - 97 * - + 87 * 22 ) ) THEN - - COALESCE ( + + 75, + - 97, - + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 0 ) / + - 55 + - 53 END + CAST ( NULL AS INTEGER ) / + - NULLIF ( - 14, - 49 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT 73 * - + COUNT( * ) * + + 10 AS col2
----
-730

skipif mysql # not compatible
query I rowsort label-2589
SELECT 73 * - + COUNT ( * ) * + + 10 AS col2
----
-730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT ALL - 39 + + + COUNT( * ) DIV + 70 * ( + 50 ) * COUNT( * ) + 68
----
29

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - 39 + + + COUNT ( * ) / + 70 * ( + 50 ) * COUNT ( * ) + 68
----
29

query I rowsort
SELECT DISTINCT + 84 * - - 6 AS col1
----
504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2592
SELECT CAST( - - 24 AS SIGNED ) + 27 * + 98
----
2670

skipif mysql # not compatible
query I rowsort label-2592
SELECT CAST ( - - 24 AS INTEGER ) + 27 * + 98
----
2670

query II rowsort
SELECT 63 - - 22 + + - ( - 20 ) AS col2, ( 38 ) col2
----
105
38

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

query I rowsort
SELECT DISTINCT 84 - + 25 * + 91 AS col2
----
-2191

query I rowsort
SELECT + 22 * + - 71 + 67
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT CASE - + COUNT( * ) WHEN - + 29 + - 38 THEN + 73 * + 83 - 9 WHEN + 72 THEN NULL WHEN + 76 THEN + - 27 * 10 ELSE NULL END + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2597
SELECT CASE - + COUNT ( * ) WHEN - + 29 + - 38 THEN + 73 * + 83 - 9 WHEN + 72 THEN NULL WHEN + 76 THEN + - 27 * 10 ELSE NULL END + - 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2598
SELECT 30 AS col1, - ( - 32 ) + COUNT( 40 ) AS col1
----
30
33

skipif mysql # not compatible
query II rowsort label-2598
SELECT 30 AS col1, - ( - 32 ) + COUNT ( 40 ) AS col1
----
30
33

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2600
SELECT 7 - + 3 * - 82 + + - COUNT( ALL - 6 ) - 74 + - 77 - 83 * - - 88 / - ( + - CAST( NULL AS SIGNED ) ) * - NULLIF ( + 50, 57 - - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT 7 - + 3 * - 82 + + - COUNT ( ALL - 6 ) - 74 + - 77 - 83 * - - 88 / - ( + - CAST ( NULL AS INTEGER ) ) * - NULLIF ( + 50, 57 - - 6 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT 62 * - 43 * - - 28 + - - MAX( ALL + 62 )
----
-74586

skipif mysql # not compatible
query I rowsort label-2601
SELECT 62 * - 43 * - - 28 + - - MAX ( ALL + 62 )
----
-74586

query I rowsort
SELECT 78 + - 78 + - - 46
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT - CAST( NULL AS SIGNED ) * 35 - + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT - CAST ( NULL AS INTEGER ) * 35 - + 58 AS col1
----
NULL

query I rowsort
SELECT + - 52 col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT ALL - + 24 DIV + 37
----
0

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL - + 24 / + 37
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2606
SELECT - 37 DIV 9 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2606
SELECT - 37 / 9 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT ALL - COUNT( ALL 68 ) * - 14
----
14

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - COUNT ( ALL 68 ) * - 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT - - 74 * + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT - - 74 * + COUNT ( * ) AS col1
----
74

query II rowsort
SELECT 52 AS col0, 33 col1
----
52
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT + 91 * 88 + + + COALESCE ( - - 96, + COUNT( * ), 73 * 71 * + 41 * + 22 * + - 56 ) * - 72
----
1096

skipif mysql # not compatible
query I rowsort label-2610
SELECT + 91 * 88 + + + COALESCE ( - - 96, + COUNT ( * ), 73 * 71 * + 41 * + 22 * + - 56 ) * - 72
----
1096

query I rowsort
SELECT 11 + - 69 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2612
SELECT DISTINCT 43 AS col2, COUNT( + 18 )
----
43
1

skipif mysql # not compatible
query II rowsort label-2612
SELECT DISTINCT 43 AS col2, COUNT ( + 18 )
----
43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL SUM( DISTINCT - 10 ) + 86
----
76

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL SUM ( DISTINCT - 10 ) + 86
----
76

query II rowsort
SELECT ALL - 59 AS col1, - 23
----
-59
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT DISTINCT - + 57 + + + ( - MIN( + 81 ) ) col1, 54 AS col0
----
-138
54

skipif mysql # not compatible
query II rowsort label-2615
SELECT DISTINCT - + 57 + + + ( - MIN ( + 81 ) ) col1, 54 AS col0
----
-138
54

query II rowsort
SELECT 7 AS col0, - 15 col0
----
7
-15

query I rowsort
SELECT 80 + 6 AS col1
----
86

query I rowsort
SELECT ALL + 10 + - 7
----
3

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

skipif mysql # not compatible
query I rowsort label-2619
SELECT + + 41 + - + 87 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 39 + - 72 * 72
----
-5145

query I rowsort
SELECT DISTINCT 51 * - + 6
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL NULLIF ( - 88, NULLIF ( + + 19, ( - - COUNT( * ) ) * - - 83 * 8 + + 24 ) * - NULLIF ( + - 3, + 29 + + + 65 ) ) + + 82 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL NULLIF ( - 88, NULLIF ( + + 19, ( - - COUNT ( * ) ) * - - 83 * 8 + + 24 ) * - NULLIF ( + - 3, + 29 + + + 65 ) ) + + 82 AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT - 74 * + + 71 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT - 74 * + + 71 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT - 91 DIV - 80
----
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT - 91 / - 80
----
1

query I rowsort
SELECT + 97 + - 5
----
92

query I rowsort
SELECT ALL 79 - - 58 AS col1
----
137

query I rowsort
SELECT DISTINCT - 7 * + + 81 * + 45 - - + 40
----
-25475

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT + ( + COUNT( * ) ) + 87 col2
----
88

skipif mysql # not compatible
query I rowsort label-2628
SELECT + ( + COUNT ( * ) ) + 87 col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2629
SELECT ALL 56 * - + ( ( + 58 ) ) - NULLIF ( + - 33, 51 ) + + COUNT( * ) * + 65 DIV - 76 AS col1
----
-3215

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL 56 * - + ( ( + 58 ) ) - NULLIF ( + - 33, 51 ) + + COUNT ( * ) * + 65 / - 76 AS col1
----
-3215

query II rowsort
SELECT ALL - 8 * - + 18 AS col1, + 95 * - - 83
----
144
7885

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

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

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

skipif mysql # not compatible
query I rowsort label-2632
SELECT + SUM ( + - 45 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-2633
SELECT 45 DIV - 67 * + - 67 * - - 70 + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-2633
SELECT 45 / - 67 * + - 67 * - - 70 + - 98
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2634
SELECT CASE + - COUNT( * ) WHEN + COUNT( * ) * + COALESCE ( - 21, - CAST( + COUNT( * ) AS SIGNED ) + - COUNT( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * + 6 * + 47 * CAST( NULL AS SIGNED ), + - 93 * 82 - + 16, - - 92 * - COUNT( * ) + + 27 ) THEN NULL WHEN - + COALESCE ( + 51, 29 ) + + + 2 THEN + MAX( DISTINCT + 13 ) + + + ( - + 9 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2634
SELECT CASE + - COUNT ( * ) WHEN + COUNT ( * ) * + COALESCE ( - 21, - CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * + 6 * + 47 * CAST ( NULL AS INTEGER ), + - 93 * 82 - + 16, - - 92 * - COUNT ( * ) + + 27 ) THEN NULL WHEN - + COALESCE ( + 51, 29 ) + + + 2 THEN + MAX ( DISTINCT + 13 ) + + + ( - + 9 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT + COALESCE ( - + 59, - 27 DIV - - 14 DIV - ( + + 33 ), - 91 * + + ( - 5 ) DIV - AVG ( 69 ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2635
SELECT + COALESCE ( - + 59, - 27 / - - 14 / - ( + + 33 ), - 91 * + + ( - 5 ) / - AVG ( 69 ) ) AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2636
SELECT - 60 + + - CAST( NULL AS SIGNED ), + ( - 5 ) - 12 + ( - ( 1 ) ) * 93 - 24 AS col0
----
NULL
-134

skipif mysql # not compatible
query II rowsort label-2636
SELECT - 60 + + - CAST ( NULL AS INTEGER ), + ( - 5 ) - 12 + ( - ( 1 ) ) * 93 - 24 AS col0
----
NULL
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT ALL - COUNT( * ) * - COALESCE ( - 83, + 76 + - - 82 + 70, - - 37 ) AS col2, + 41 AS col1
----
-83
41

skipif mysql # not compatible
query II rowsort label-2637
SELECT ALL - COUNT ( * ) * - COALESCE ( - 83, + 76 + - - 82 + 70, - - 37 ) AS col2, + 41 AS col1
----
-83
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2638
SELECT + 71 * MIN( DISTINCT + + 38 ), 58 * + COALESCE ( + COUNT( * ), - + 45 - - 66 - 77 ) AS col2
----
2698
58

skipif mysql # not compatible
query II rowsort label-2638
SELECT + 71 * MIN ( DISTINCT + + 38 ), 58 * + COALESCE ( + COUNT ( * ), - + 45 - - 66 - 77 ) AS col2
----
2698
58

query I rowsort
SELECT - 77 * + 32
----
-2464

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

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

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

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

query I rowsort
SELECT + + 27 - + 29
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT - + 83 * + ( 99 ) + - COUNT( * ) col0
----
-8218

skipif mysql # not compatible
query I rowsort label-2643
SELECT - + 83 * + ( 99 ) + - COUNT ( * ) col0
----
-8218

query I rowsort
SELECT ALL + - CASE 3 WHEN - - 18 THEN NULL WHEN + + 66 THEN NULL ELSE - - ( - 93 ) * + 45 + + 29 END * + 36 AS col0
----
149616

query I rowsort
SELECT ALL - - 5 * + 30 AS col1
----
150

query I rowsort
SELECT DISTINCT 13 + - 69 * + + 11
----
-746

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

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

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

skipif mysql # not compatible
query I rowsort label-2648
SELECT - SUM ( DISTINCT 85 )
----
-85

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

skipif mysql # not compatible
query I rowsort label-2649
SELECT ALL + 39 - + MIN ( + 73 ) - + 78 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-2650
SELECT - COALESCE ( 53, + 2, + 77 ) AS col1, ( - - 27 ) + MIN( - - 55 ) AS col0
----
-53
82

skipif mysql # not compatible
query II rowsort label-2650
SELECT - COALESCE ( 53, + 2, + 77 ) AS col1, ( - - 27 ) + MIN ( - - 55 ) AS col0
----
-53
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - 85 * COUNT( * ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-2651
SELECT - 85 * COUNT ( * ) col2
----
-85

query II rowsort
SELECT DISTINCT 19, 42 AS col2
----
19
42

query I rowsort
SELECT DISTINCT - 94 - 81 + + 11 col0
----
-164

query I rowsort
SELECT ALL 49 * + 7
----
343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2655
SELECT ALL COALESCE ( 43, - + NULLIF ( + + 57, - CAST( NULL AS SIGNED ) + - + ( - AVG ( + ( + 78 ) ) ) + + COUNT( * ) + + COUNT( * ) / - 33 ) * - 53 ) - - 22 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL COALESCE ( 43, - + NULLIF ( + + 57, - CAST ( NULL AS INTEGER ) + - + ( - AVG ( + ( + 78 ) ) ) + + COUNT ( * ) + + COUNT ( * ) / - 33 ) * - 53 ) - - 22 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + COUNT( ALL ( + + 17 ) ) * - - 70 * + - SUM( DISTINCT 58 )
----
-4060

skipif mysql # not compatible
query I rowsort label-2656
SELECT + COUNT ( ALL ( + + 17 ) ) * - - 70 * + - SUM ( DISTINCT 58 )
----
-4060

query I rowsort
SELECT ALL - 49 * - - 72
----
-3528

query I rowsort
SELECT 13 * 15 + + 38 * + - 39 AS col0
----
-1287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT + COUNT( * ) DIV + 25 + 58 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2659
SELECT + COUNT ( * ) / + 25 + 58 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT CAST( CAST( + 33 AS SIGNED ) AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2660
SELECT CAST ( CAST ( + 33 AS INTEGER ) AS INTEGER ) AS col1
----
33

query I rowsort
SELECT ALL 48 * - 55
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT 22 * 30 DIV + 58 + + 65
----
76

skipif mysql # not compatible
query I rowsort label-2662
SELECT 22 * 30 / + 58 + + 65
----
76

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2665
SELECT DISTINCT ( - - COUNT( * ) ) DIV 12 + 80 * - COUNT( + COALESCE ( + ( 44 ), 53 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT ( - - COUNT ( * ) ) / 12 + 80 * - COUNT ( + COALESCE ( + ( 44 ), 53 ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2666
SELECT + + 42 + + COUNT( * ) * - NULLIF ( - - CASE + 28 WHEN 45 THEN COUNT( * ) * - 5 ELSE NULL END, + 54 + + 0 - + 96 * ( - 33 ) ), - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2666
SELECT + + 42 + + COUNT ( * ) * - NULLIF ( - - CASE + 28 WHEN 45 THEN COUNT ( * ) * - 5 ELSE NULL END, + 54 + + 0 - + 96 * ( - 33 ) ), - CAST ( NULL AS REAL )
----
NULL
NULL

query I rowsort
SELECT ALL + 22 * - - 74 + + 41 + + 44 + 95 + - + 55 col2
----
1753

query II rowsort
SELECT 19, - 93 AS col2
----
19
-93

query II rowsort
SELECT 44, - 51 AS col2
----
44
-51

query I rowsort
SELECT - 68 - - 63
----
-5

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

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

query I rowsort
SELECT DISTINCT 56 * - 40 AS col1
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ALL + + 5 * + 18 * - + 42 + + 19 * + COUNT( * ) + + - 92
----
-3853

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL + + 5 * + 18 * - + 42 + + 19 * + COUNT ( * ) + + - 92
----
-3853

query I rowsort
SELECT ALL + 85 * - 22 AS col1
----
-1870

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT + 48 + - + COUNT( * ) - 17 + + 81
----
111

skipif mysql # not compatible
query I rowsort label-2675
SELECT + 48 + - + COUNT ( * ) - 17 + + 81
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT ( - + 7 ) * + + 32 - - COUNT( * ) AS col1
----
-223

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT ( - + 7 ) * + + 32 - - COUNT ( * ) AS col1
----
-223

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

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

query I rowsort
SELECT 76 * + + ( - 67 )
----
-5092

query I rowsort
SELECT 63 + - 13 + 91 AS col0
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT 66 * - SUM( - CAST( NULL AS SIGNED ) ) * + 93 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT 66 * - SUM ( - CAST ( NULL AS INTEGER ) ) * + 93 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2681
SELECT ALL 26 DIV + + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL 26 / + + 83 AS col0
----
0

query I rowsort
SELECT 72 + + - 70 AS col0
----
2

query I rowsort
SELECT 82 + + 28
----
110

query I rowsort
SELECT 91 + 75 * - 54
----
-3959

query I rowsort
SELECT DISTINCT - 63 * - + 26 col2
----
1638

query I rowsort
SELECT 1 * + - 62 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT 7 + - 57 + 0 / - ( MIN( CASE 80 WHEN + 10 THEN 74 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT 7 + - 57 + 0 / - ( MIN ( CASE 80 WHEN + 10 THEN 74 END ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 36 + - 38
----
-74

query I rowsort
SELECT 91 * - 31
----
-2821

query I rowsort
SELECT ALL - 18 + - 40 * 99 AS col1
----
-3978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2691
SELECT ALL + + COUNT( * ) + - 74 DIV + 28
----
-1

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL + + COUNT ( * ) + - 74 / + 28
----
-1

query I rowsort
SELECT DISTINCT + + 55 + - CASE + - 42 WHEN + + 86 * + 28 THEN NULL ELSE - - 44 END
----
11

query I rowsort
SELECT - 83 * - ( + 71 )
----
5893

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT 76 * + - COALESCE ( - COUNT( * ), - 84 + 14 * + CASE - + 47 WHEN - COUNT( * ) THEN + + 68 END * 18 + - + 50, - 64 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2694
SELECT 76 * + - COALESCE ( - COUNT ( * ), - 84 + 14 * + CASE - + 47 WHEN - COUNT ( * ) THEN + + 68 END * 18 + - + 50, - 64 ) AS col0
----
76

query I rowsort
SELECT ALL - 25 + + 25 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL + + 13 * - 2 * + SUM( - + 77 ) AS col0
----
2002

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + + 13 * - 2 * + SUM ( - + 77 ) AS col0
----
2002

query I rowsort
SELECT DISTINCT - - CASE - + NULLIF ( + 48, 14 ) WHEN + 15 - - 57 - 29 * + - 52 + + 21 * + 5 THEN NULL ELSE - ( 88 ) END * - + 31
----
2728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT 32 + CAST( 13 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-2698
SELECT 32 + CAST ( 13 AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL COALESCE ( - + 6, - - COALESCE ( 65, - COUNT( * ) ) + + 0 ) - - + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL COALESCE ( - + 6, - - COALESCE ( 65, - COUNT ( * ) ) + + 0 ) - - + COUNT ( * ) AS col2
----
-5

query II rowsort
SELECT 34 * + NULLIF ( + - 18, 40 ) AS col0, + 34
----
-612
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT - 99 - COALESCE ( - + 73, 79 ) * + COUNT( - - 13 )
----
-26

skipif mysql # not compatible
query I rowsort label-2701
SELECT - 99 - COALESCE ( - + 73, 79 ) * + COUNT ( - - 13 )
----
-26

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

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

query II rowsort
SELECT ( - 51 ) col0, - 76 AS col2
----
-51
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2704
SELECT MIN( CAST( NULL AS SIGNED ) ) * + + 97 - + 63 - + - COUNT( ALL 63 ) * + 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT MIN ( CAST ( NULL AS INTEGER ) ) * + + 97 - + 63 - + - COUNT ( ALL 63 ) * + 39 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 74 * - 60
----
-4440

query I rowsort
SELECT DISTINCT 85 * + + 69
----
5865

query I rowsort
SELECT ( + 43 ) - - 44
----
87

query I rowsort
SELECT ALL 20 * 60
----
1200

onlyif mysql # DIV for integer division: 
query II rowsort label-2709
SELECT 2, - 0 * 41 DIV - 65 AS col2
----
2
0

skipif mysql # not compatible
query II rowsort label-2709
SELECT 2, - 0 * 41 / - 65 AS col2
----
2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT 1 DIV + ( - 85 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2710
SELECT 1 / + ( - 85 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2711
SELECT DISTINCT + 4 + 69 + + + COUNT( * ) AS col0, + COUNT( * ) AS col0
----
74
1

skipif mysql # not compatible
query II rowsort label-2711
SELECT DISTINCT + 4 + 69 + + + COUNT ( * ) AS col0, + COUNT ( * ) AS col0
----
74
1

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

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - COUNT ( * ) + 85 AS col1
----
84

query II rowsort
SELECT 93, 85 - + - 66 * - - 22 AS col2
----
93
1537

query II rowsort
SELECT DISTINCT 37, 55 AS col0
----
37
55

query I rowsort
SELECT 97 - 85
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT ALL + CAST( - 79 AS SIGNED ) + 59
----
-20

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + CAST ( - 79 AS INTEGER ) + 59
----
-20

query I rowsort
SELECT 16 / CASE 56 WHEN + 30 THEN - 71 WHEN 71 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2718
SELECT ALL - 86 + + MAX( DISTINCT - 22 ) + + CAST( + 28 AS SIGNED ), 46 AS col0
----
-80
46

skipif mysql # not compatible
query II rowsort label-2718
SELECT ALL - 86 + + MAX ( DISTINCT - 22 ) + + CAST ( + 28 AS INTEGER ), 46 AS col0
----
-80
46

query I rowsort
SELECT 87 + + - 44
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2720
SELECT COALESCE ( - + NULLIF ( - COUNT( DISTINCT - + 37 ), - 22 * 68 * - ( + + 19 ) * 75 + + - COUNT( * ) ), 30 DIV + + 23 + + 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2720
SELECT COALESCE ( - + NULLIF ( - COUNT ( DISTINCT - + 37 ), - 22 * 68 * - ( + + 19 ) * 75 + + - COUNT ( * ) ), 30 / + + 23 + + 50 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT 23 DIV + 15 + 28 * - 22
----
-615

skipif mysql # not compatible
query I rowsort label-2721
SELECT 23 / + 15 + 28 * - 22
----
-615

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT MIN( + 27 ) * 56
----
1512

skipif mysql # not compatible
query I rowsort label-2723
SELECT MIN ( + 27 ) * 56
----
1512

query I rowsort
SELECT 32 + 3
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT + COUNT( * ) * + 34 - + 48 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + COUNT ( * ) * + 34 - + 48 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT ALL 23 * - SUM( ALL 21 )
----
-483

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL 23 * - SUM ( ALL 21 )
----
-483

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

query I rowsort
SELECT + ( - ( + 6 ) ) * 40
----
-240

query I rowsort
SELECT ALL + 52 * + 2 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT + MAX( ALL 68 ) + + 93 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-2730
SELECT + MAX ( ALL 68 ) + + 93 AS col1
----
161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2731
SELECT MIN( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT MIN ( DISTINCT CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + 84 * + COALESCE ( - 19, + 69 - COUNT( * ) ) + - 35 AS col0
----
-1631

skipif mysql # not compatible
query I rowsort label-2732
SELECT + 84 * + COALESCE ( - 19, + 69 - COUNT ( * ) ) + - 35 AS col0
----
-1631

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL 97 * - 10 - 60 * - ( + 85 + - COALESCE ( - 69, + COUNT( * ) * - 80, + ( + 15 ) * 5 ) ) AS col1
----
8270

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL 97 * - 10 - 60 * - ( + 85 + - COALESCE ( - 69, + COUNT ( * ) * - 80, + ( + 15 ) * 5 ) ) AS col1
----
8270

query I rowsort
SELECT - COALESCE ( 1, NULLIF ( 68, + 2 ) + + 2 ) * + 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL - CASE NULLIF ( 42, 94 * 35 ) WHEN 30 * + MIN( ALL 11 ) - - 2 THEN NULL ELSE 39 END * 65 col0
----
-2535

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL - CASE NULLIF ( 42, 94 * 35 ) WHEN 30 * + MIN ( ALL 11 ) - - 2 THEN NULL ELSE 39 END * 65 col0
----
-2535

query I rowsort
SELECT DISTINCT - 35 * + 8
----
-280

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT - COUNT( * ) + 95 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-2739
SELECT - COUNT ( * ) + 95 AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT ALL 73 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL 73 / + 52
----
1

query I rowsort
SELECT - 79 + 25 * + 61
----
1446

query I rowsort
SELECT + 85 - - 1 AS col2
----
86

query I rowsort
SELECT + 61 * - 5
----
-305

query I rowsort
SELECT + ( 46 ) + 38
----
84

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

query I rowsort
SELECT ALL 37 + - 26 AS col1
----
11

query I rowsort
SELECT ALL ( 89 ) + + 84 col1
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT + 25 + MAX( 71 + 24 DIV 9 )
----
98

skipif mysql # not compatible
query I rowsort label-2748
SELECT + 25 + MAX ( 71 + 24 / 9 )
----
98

query I rowsort
SELECT + 1 + - 46 * + 17 AS col1
----
-781

query I rowsort
SELECT DISTINCT CASE 96 WHEN 42 THEN NULL ELSE 39 END * - 95
----
-3705

query I rowsort
SELECT - 95 + + 21
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT - COALESCE ( MAX( ALL - 34 ), - COUNT( * ), - CAST( NULL AS SIGNED ) * 34 + ( + 46 ), - 94 * 33 ) + - 60 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2752
SELECT - COALESCE ( MAX ( ALL - 34 ), - COUNT ( * ), - CAST ( NULL AS INTEGER ) * 34 + ( + 46 ), - 94 * 33 ) + - 60 AS col2
----
-26

query I rowsort
SELECT ALL - - 38 - - 95
----
133

query I rowsort
SELECT + 74 * - 20 AS col0
----
-1480

query I rowsort
SELECT ALL - + 62 * - 11 AS col0
----
682

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT ALL - + 86 DIV + 63 - - 90
----
89

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - + 86 / + 63 - - 90
----
89

query I rowsort
SELECT - - 86 * 30
----
2580

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2758
SELECT + + COUNT( * ) * + CASE CASE COUNT( * ) WHEN + COUNT( * ) * + 41 THEN + COUNT( * ) ELSE SUM( + 84 ) END WHEN ( + CASE 74 WHEN - 63 THEN 28 / - 34 END ) * + CAST( + 62 AS DECIMAL ) THEN 71 ELSE - 83 + 9 END col1
----
-74

skipif mysql # not compatible
query I rowsort label-2758
SELECT + + COUNT ( * ) * + CASE CASE COUNT ( * ) WHEN + COUNT ( * ) * + 41 THEN + COUNT ( * ) ELSE SUM ( + 84 ) END WHEN ( + CASE 74 WHEN - 63 THEN 28 / - 34 END ) * + CAST ( + 62 AS REAL ) THEN 71 ELSE - 83 + 9 END col1
----
-74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2760
SELECT - 37 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-2760
SELECT - 37 / 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT + MAX( + 76 ) * - 98
----
-7448

skipif mysql # not compatible
query I rowsort label-2761
SELECT + MAX ( + 76 ) * - 98
----
-7448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2762
SELECT ALL + - COALESCE ( CASE + 45 WHEN 78 * - COUNT( * ) THEN NULL WHEN - 11 * + 31 THEN NULLIF ( - 2, COUNT( DISTINCT + 1 ) ) ELSE NULL END, + CASE CAST( NULL AS SIGNED ) WHEN + 62 THEN MAX( ALL CAST( NULL AS SIGNED ) ) * 29 WHEN + 66 THEN 65 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + - COALESCE ( CASE + 45 WHEN 78 * - COUNT ( * ) THEN NULL WHEN - 11 * + 31 THEN NULLIF ( - 2, COUNT ( DISTINCT + 1 ) ) ELSE NULL END, + CASE CAST ( NULL AS INTEGER ) WHEN + 62 THEN MAX ( ALL CAST ( NULL AS INTEGER ) ) * 29 WHEN + 66 THEN 65 ELSE NULL END )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL 78 * CAST( + 97 + - 7 AS SIGNED )
----
7020

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL 78 * CAST ( + 97 + - 7 AS INTEGER )
----
7020

query I rowsort
SELECT + - 79 * 77 - 13 * 93
----
-7292

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT 85 * 86 + - MIN( 4 + NULLIF ( + 28, + 3 ) ) AS col2
----
7278

skipif mysql # not compatible
query I rowsort label-2766
SELECT 85 * 86 + - MIN ( 4 + NULLIF ( + 28, + 3 ) ) AS col2
----
7278

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL + + NULLIF ( 93, + COUNT( * ) / + COUNT( * ) + 59 )
----
93

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + + NULLIF ( 93, + COUNT ( * ) / + COUNT ( * ) + 59 )
----
93

query I rowsort
SELECT COALESCE ( - - 94, - 59, + ( + 98 ) )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT ALL 5 * + 84 + 8 DIV - 45
----
420

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL 5 * + 84 + 8 / - 45
----
420

query I rowsort
SELECT - 3 * - + 45 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT DISTINCT 79 * - ( SUM( 13 ) ) + - ( + MIN( ALL + 23 ) ) AS col2
----
-1050

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT 79 * - ( SUM ( 13 ) ) + - ( + MIN ( ALL + 23 ) ) AS col2
----
-1050

query I rowsort
SELECT DISTINCT NULLIF ( + - ( 37 ), ( + 55 ) ) * - 30 + + 84 * 13 AS col0
----
2202

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT 22 * - MIN( 15 ) * + 30 + CASE 29 WHEN 62 * - 91 + 57 * - 78 THEN NULL ELSE 51 * + COALESCE ( COUNT( * ), 68 ) END
----
-9849

skipif mysql # not compatible
query I rowsort label-2773
SELECT 22 * - MIN ( 15 ) * + 30 + CASE 29 WHEN 62 * - 91 + 57 * - 78 THEN NULL ELSE 51 * + COALESCE ( COUNT ( * ), 68 ) END
----
-9849

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT ALL 91 * 6 + 6 DIV 12 AS col0
----
546

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL 91 * 6 + 6 / 12 AS col0
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT COUNT( - - 16 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2775
SELECT COUNT ( - - 16 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT - CAST( NULL AS SIGNED ) - + - COALESCE ( - 63, 11 + 18 * 98 ) + COUNT( * ) * + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT - CAST ( NULL AS INTEGER ) - + - COALESCE ( - 63, 11 + 18 * 98 ) + COUNT ( * ) * + 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT - MAX( DISTINCT + - 63 ) * + 62 AS col0
----
3906

skipif mysql # not compatible
query I rowsort label-2777
SELECT - MAX ( DISTINCT + - 63 ) * + 62 AS col0
----
3906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2778
SELECT + 95 DIV - 3 * - COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2778
SELECT + 95 / - 3 * - COUNT ( * ) AS col0
----
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + MAX( - - 58 ) * + 45
----
2610

skipif mysql # not compatible
query I rowsort label-2780
SELECT + MAX ( - - 58 ) * + 45
----
2610

query I rowsort
SELECT 61 - - 58
----
119

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2782
SELECT - CASE 60 WHEN + COALESCE ( COALESCE ( - 23, SUM( ALL 12 ) - + 18 / 71 ), + 50 + 86, 68 * ( - 36 ) - + 62 ) - - 43 THEN NULL WHEN 81 THEN - 94 / - MAX( CAST( NULL AS DECIMAL ) * - 33 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2782
SELECT - CASE 60 WHEN + COALESCE ( COALESCE ( - 23, SUM ( ALL 12 ) - + 18 / 71 ), + 50 + 86, 68 * ( - 36 ) - + 62 ) - - 43 THEN NULL WHEN 81 THEN - 94 / - MAX ( CAST ( NULL AS REAL ) * - 33 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT + MIN( ALL + - 59 ) * + 42
----
-2478

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT + MIN ( ALL + - 59 ) * + 42
----
-2478

query I rowsort
SELECT 40 + + 77 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT 78 * COUNT( * ) * 3 AS col1
----
234

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT 78 * COUNT ( * ) * 3 AS col1
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2786
SELECT ALL - - SUM( - CAST( 50 AS SIGNED ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL - - SUM ( - CAST ( 50 AS INTEGER ) ) AS col0
----
-50

query I rowsort
SELECT - + 18 * + 82 + + 25 + 78 * 68 AS col0
----
3853

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT 97 DIV - 38 + 15
----
13

skipif mysql # not compatible
query I rowsort label-2788
SELECT 97 / - 38 + 15
----
13

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

skipif mysql # not compatible
query I rowsort label-2789
SELECT + COUNT ( + 65 ) * - 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + 47 * COUNT( * ) + + COUNT( * ) + + COUNT( * ) col0
----
49

skipif mysql # not compatible
query I rowsort label-2790
SELECT + 47 * COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2791
SELECT NULLIF ( + 76, COUNT( * ) - NULLIF ( 34 + + 22, CAST( NULL AS DECIMAL ) - - 86 ) ) + + 43 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-2791
SELECT NULLIF ( + 76, COUNT ( * ) - NULLIF ( 34 + + 22, CAST ( NULL AS REAL ) - - 86 ) ) + + 43 AS col0
----
119

query II rowsort
SELECT + 53 AS col0, + 43
----
53
43

query I rowsort
SELECT ALL 97 + - 87 AS col1
----
10

query I rowsort
SELECT 72 * + - 11
----
-792

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT 7 * + - COUNT( * ) * - COALESCE ( - 46, 67 )
----
-322

skipif mysql # not compatible
query I rowsort label-2795
SELECT 7 * + - COUNT ( * ) * - COALESCE ( - 46, 67 )
----
-322

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2797
SELECT ALL - 90 + + ( + - COUNT( * ) ) + 46 DIV 75 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL - 90 + + ( + - COUNT ( * ) ) + 46 / 75 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT 55 + - COUNT( * ) - 73
----
-19

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT 55 + - COUNT ( * ) - 73
----
-19

query I rowsort
SELECT 7 + - ( 67 ) + - COALESCE ( + 18, - 3, ( 55 ) )
----
-78

query I rowsort
SELECT 55 * + 91 * + 7 + 12 AS col0
----
35047

query II rowsort
SELECT - 85, 43 + - + 98 col1
----
-85
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT 97 + - 66 + COUNT( * ) DIV 43 col0
----
31

skipif mysql # not compatible
query I rowsort label-2802
SELECT 97 + - 66 + COUNT ( * ) / 43 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT COUNT( * ) - 66 + 44 - 23 * - 63 * CASE + 80 * - 83 - COUNT( * ) * COALESCE ( 70 * ( + 86 ), - 68 ) WHEN 39 THEN 19 WHEN - 87 THEN 95 - + COUNT( * ) WHEN + 30 THEN NULLIF ( ( 77 ), 7 + SUM( 61 ) * 49 ) / - 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT COUNT ( * ) - 66 + 44 - 23 * - 63 * CASE + 80 * - 83 - COUNT ( * ) * COALESCE ( 70 * ( + 86 ), - 68 ) WHEN 39 THEN 19 WHEN - 87 THEN 95 - + COUNT ( * ) WHEN + 30 THEN NULLIF ( ( 77 ), 7 + SUM ( 61 ) * 49 ) / - 27 END AS col0
----
NULL

query I rowsort
SELECT 35 * - 93
----
-3255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT 42 - + - 30 + - COUNT( * ) * + NULLIF ( COALESCE ( - 70, + 69 * CASE COUNT( * ) WHEN + 27 / - 69 THEN 37 ELSE NULL END + COUNT( * ) * + 29 ), + 63 + 10 / COUNT( ALL 29 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT 42 - + - 30 + - COUNT ( * ) * + NULLIF ( COALESCE ( - 70, + 69 * CASE COUNT ( * ) WHEN + 27 / - 69 THEN 37 ELSE NULL END + COUNT ( * ) * + 29 ), + 63 + 10 / COUNT ( ALL 29 ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2806
SELECT ALL - ( - + CASE + 10 WHEN 44 THEN CAST( NULL AS SIGNED ) * MIN( DISTINCT 48 ) ELSE + 17 + + 21 END ) - + 28 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL - ( - + CASE + 10 WHEN 44 THEN CAST ( NULL AS INTEGER ) * MIN ( DISTINCT 48 ) ELSE + 17 + + 21 END ) - + 28 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2808
SELECT ALL 52 AS col2, COUNT( * ) + + 63 + 6 * + 20
----
52
184

skipif mysql # not compatible
query II rowsort label-2808
SELECT ALL 52 AS col2, COUNT ( * ) + + 63 + 6 * + 20
----
52
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + 56 + - 0 + COUNT( * ) * + 60
----
116

skipif mysql # not compatible
query I rowsort label-2809
SELECT + 56 + - 0 + COUNT ( * ) * + 60
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL + + 54 * + NULLIF ( + 27, 49 + 77 ) * COUNT( * )
----
1458

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + + 54 * + NULLIF ( + 27, 49 + 77 ) * COUNT ( * )
----
1458

query I rowsort
SELECT 76 + + 26 * - + 45
----
-1094

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT DISTINCT CASE COALESCE ( + 47, + COUNT( * ) ) WHEN 93 THEN NULL WHEN - 42 THEN + 39 * 34 + 67 WHEN 80 - + 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT CASE COALESCE ( + 47, + COUNT ( * ) ) WHEN 93 THEN NULL WHEN - 42 THEN + 39 * 34 + 67 WHEN 80 - + 57 THEN NULL END
----
NULL

query I rowsort
SELECT - CASE NULLIF ( - 53, - 93 + 86 ) WHEN + 86 + ( 88 ) THEN - 63 * - 29 END / - 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2814
SELECT - - 68 AS col2, - COUNT( 11 ) - + 24 DIV + 66 AS col1
----
68
-1

skipif mysql # not compatible
query II rowsort label-2814
SELECT - - 68 AS col2, - COUNT ( 11 ) - + 24 / + 66 AS col1
----
68
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2815
SELECT DISTINCT + 48 DIV 31 * 2 + + 50 * NULLIF ( 40, + 45 + - ( + 75 + 43 * 23 ) * - ( + 48 * - 21 ) )
----
2002

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT + 48 / 31 * 2 + + 50 * NULLIF ( 40, + 45 + - ( + 75 + 43 * 23 ) * - ( + 48 * - 21 ) )
----
2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT - 50 * 59 * + CAST( NULL AS SIGNED ) + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT - 50 * 59 * + CAST ( NULL AS INTEGER ) + - 48 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - CAST ( NULL AS INTEGER ) / ( - + 78 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2818
SELECT + 59 DIV + 29 + + + 5 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2818
SELECT + 59 / + 29 + + + 5 AS col1
----
7

query I rowsort
SELECT 47 * + 43
----
2021

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT ( + + COALESCE ( - - COUNT( * ), 97 ) ) * + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT ( + + COALESCE ( - - COUNT ( * ), 97 ) ) * + 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT + COUNT( * ), + COUNT( ALL 45 ) + + 77 * 85 AS col0
----
1
6546

skipif mysql # not compatible
query II rowsort label-2821
SELECT + COUNT ( * ), + COUNT ( ALL 45 ) + + 77 * 85 AS col0
----
1
6546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2822
SELECT + 71 col0, COALESCE ( - - 48, COALESCE ( - COUNT( * ), 53 + 46 ) ) * 19 + - CAST( ( + 55 ) AS SIGNED )
----
71
857

skipif mysql # not compatible
query II rowsort label-2822
SELECT + 71 col0, COALESCE ( - - 48, COALESCE ( - COUNT ( * ), 53 + 46 ) ) * 19 + - CAST ( ( + 55 ) AS INTEGER )
----
71
857

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT - 8 * + COUNT( * ) + ( - 74 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2823
SELECT - 8 * + COUNT ( * ) + ( - 74 ) AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2824
SELECT + NULLIF ( + 95, - COUNT( ALL 99 ) * CASE - CAST( + 41 AS SIGNED ) WHEN + 19 + - 4 * - 83 THEN 57 WHEN - 86 - 62 * 90 THEN CAST( NULL AS SIGNED ) DIV + COUNT( DISTINCT + 84 ) ELSE NULL END + 55 * 39 ) DIV NULLIF ( + COUNT( * ) * + 52 + - 23, - 30 ) - 0 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2824
SELECT + NULLIF ( + 95, - COUNT ( ALL 99 ) * CASE - CAST ( + 41 AS INTEGER ) WHEN + 19 + - 4 * - 83 THEN 57 WHEN - 86 - 62 * 90 THEN CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT + 84 ) ELSE NULL END + 55 * 39 ) / NULLIF ( + COUNT ( * ) * + 52 + - 23, - 30 ) - 0 AS col2
----
3

query I rowsort
SELECT ALL 96 + + - 19
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL 21 + - COUNT( * ) + - 52
----
-32

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL 21 + - COUNT ( * ) + - 52
----
-32

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

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

query I rowsort
SELECT ALL 3 + + 33 + + 21
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT 68 * + 67 - - CAST( - 43 AS SIGNED ) AS col2
----
4513

skipif mysql # not compatible
query I rowsort label-2829
SELECT 68 * + 67 - - CAST ( - 43 AS INTEGER ) AS col2
----
4513

query I rowsort
SELECT 59 * 3 + - 35 - + 69 col2
----
73

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

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

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

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL COUNT ( * ) / + 74 col0
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + + 48, 78 / - 96 * - 9 ) * 38
----
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ( MAX( ALL + 15 ) ) + + 36
----
51

skipif mysql # not compatible
query I rowsort label-2834
SELECT ( MAX ( ALL + 15 ) ) + + 36
----
51

query I rowsort
SELECT 36 * + 13 * + - 58
----
-27144

query I rowsort
SELECT 42 + - 65 * + - 44 AS col0
----
2902

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL 48 * + - 39 * MIN( DISTINCT + 28 )
----
-52416

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL 48 * + - 39 * MIN ( DISTINCT + 28 )
----
-52416

query I rowsort
SELECT DISTINCT 66 * - - 22 * 35
----
50820

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

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

query I rowsort
SELECT + - 4 - 44 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT + NULLIF ( - ( - 20 ), 44 - - NULLIF ( + COUNT( * ), 1 ) ) * 59 AS col1
----
1180

skipif mysql # not compatible
query I rowsort label-2841
SELECT + NULLIF ( - ( - 20 ), 44 - - NULLIF ( + COUNT ( * ), 1 ) ) * 59 AS col1
----
1180

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - + NULLIF ( + + 42, COUNT( * ) )
----
-42

skipif mysql # not compatible
query I rowsort label-2842
SELECT - + NULLIF ( + + 42, COUNT ( * ) )
----
-42

query II rowsort
SELECT - + 80 * + 1 col2, 25 AS col0
----
-80
25

query I rowsort
SELECT - 56 - 89
----
-145

query I rowsort
SELECT ALL + 58 * - 27 * 47
----
-73602

query I rowsort
SELECT ALL - - 64 + + 81
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT - CAST( + ( + 2 ) AS SIGNED ) - 62 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT - CAST ( + ( + 2 ) AS INTEGER ) - 62 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL + 25 * - SUM( + 26 ) + - + COUNT( * )
----
-651

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL + 25 * - SUM ( + 26 ) + - + COUNT ( * )
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL - - 72 + + COUNT( * ) - - - 80
----
-7

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - - 72 + + COUNT ( * ) - - - 80
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2850
SELECT - - 28 + 18 + MAX( + CAST( NULL AS SIGNED ) ) * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT - - 28 + 18 + MAX ( + CAST ( NULL AS INTEGER ) ) * 11 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( 60, - + 55 ) AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2852
SELECT + 76 DIV + + COUNT( * ) + + COUNT( * ) - 98 * + 20 AS col0
----
-1883

skipif mysql # not compatible
query I rowsort label-2852
SELECT + 76 / + + COUNT ( * ) + + COUNT ( * ) - 98 * + 20 AS col0
----
-1883

query I rowsort
SELECT + + 48 - - + 75 col2
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2854
SELECT ALL + - SUM( ALL + 87 ) DIV - - 42 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL + - SUM ( ALL + 87 ) / - - 42 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT - - COUNT( DISTINCT - ( - 37 ) ) + 56 * + 51 AS col2
----
2857

skipif mysql # not compatible
query I rowsort label-2855
SELECT - - COUNT ( DISTINCT - ( - 37 ) ) + 56 * + 51 AS col2
----
2857

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT 73 * - - COALESCE ( + 84, + MIN( + 92 ) * 15, 74 ) - 74
----
6058

skipif mysql # not compatible
query I rowsort label-2856
SELECT 73 * - - COALESCE ( + 84, + MIN ( + 92 ) * 15, 74 ) - 74
----
6058

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT DISTINCT 9 DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT 9 / 11
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2858
SELECT - 15 + - ( 51 ), SUM( DISTINCT - 25 ) + + 27 * 54 AS col1
----
-66
1433

skipif mysql # not compatible
query II rowsort label-2858
SELECT - 15 + - ( 51 ), SUM ( DISTINCT - 25 ) + + 27 * 54 AS col1
----
-66
1433

query I rowsort
SELECT ALL 92 * + - 43 + + 96 + + + 1
----
-3859

query I rowsort
SELECT ALL - 23 * 91 * + + 18 - - + 41 + - 11 AS col1
----
-37644

query I rowsort
SELECT ALL + NULLIF ( - 89, - - 99 * + 51 + + - NULLIF ( 55, 78 * - 5 + NULLIF ( + 99 + COALESCE ( + 72 + + 25, + 34 / 78 ), - 83 ) ) )
----
-89

query I rowsort
SELECT + 61 + + 8 AS col1
----
69

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

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

query I rowsort
SELECT - ( + - 72 ) * 82 AS col1
----
5904

query I rowsort
SELECT + 79 * 38 AS col2
----
3002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2866
SELECT DISTINCT - 13 * - 64 DIV - COUNT( * ) - 27 - - 25
----
-834

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT - 13 * - 64 / - COUNT ( * ) - 27 - - 25
----
-834

query I rowsort
SELECT + 43 * + 32
----
1376

query I rowsort
SELECT + 36 + + - 99
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT + COUNT( * ) + 74 * - - 8 * + - 31 * 37
----
-679023

skipif mysql # not compatible
query I rowsort label-2869
SELECT + COUNT ( * ) + 74 * - - 8 * + - 31 * 37
----
-679023

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT MIN( + + 76 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-2870
SELECT MIN ( + + 76 ) AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT + - 70 DIV + ( - 99 ) + - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2871
SELECT + - 70 / + ( - 99 ) + - 67 AS col2
----
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - COUNT( DISTINCT - - NULLIF ( - ( + CASE + ( - 64 ) WHEN 13 THEN 81 END ), 55 ) ) * 24 - + 53 * 59 col0
----
-3127

skipif mysql # not compatible
query I rowsort label-2873
SELECT - COUNT ( DISTINCT - - NULLIF ( - ( + CASE + ( - 64 ) WHEN 13 THEN 81 END ), 55 ) ) * 24 - + 53 * 59 col0
----
-3127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL + CASE + - 3 WHEN 49 + - CAST( + 37 AS SIGNED ) THEN 65 WHEN 68 * 16 THEN - 80 + + 54 * - 22 ELSE NULL END * NULLIF ( + 68, + 68 * + AVG ( DISTINCT - 10 / ( 3 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + CASE + - 3 WHEN 49 + - CAST ( + 37 AS INTEGER ) THEN 65 WHEN 68 * 16 THEN - 80 + + 54 * - 22 ELSE NULL END * NULLIF ( + 68, + 68 * + AVG ( DISTINCT - 10 / ( 3 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + COUNT( * ) + - 17 + - 45 + - NULLIF ( + 71, 98 * + AVG ( DISTINCT 47 ) ) * + 22
----
-1623

skipif mysql # not compatible
query I rowsort label-2875
SELECT + COUNT ( * ) + - 17 + - 45 + - NULLIF ( + 71, 98 * + AVG ( DISTINCT 47 ) ) * + 22
----
-1623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2876
SELECT + COUNT( * ) / + CAST( NULL AS SIGNED ) * COALESCE ( + - 22, 88 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * COALESCE ( + - 22, 88 ) AS col0
----
NULL

query I rowsort
SELECT ALL - + ( - 96 ) + 42 col2
----
138

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

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

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

query I rowsort
SELECT ALL 15 + + 95 col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + - COUNT( * ) + + 57 - + COUNT( * ) * - + SUM( 43 ) + + 72 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-2881
SELECT + - COUNT ( * ) + + 57 - + COUNT ( * ) * - + SUM ( 43 ) + + 72 AS col2
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT DISTINCT 33 + - 16 - CASE + 27 WHEN - ( + 34 ) THEN NULL ELSE + 28 * 81 END + - 82 DIV + 79 AS col0
----
-2252

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT 33 + - 16 - CASE + 27 WHEN - ( + 34 ) THEN NULL ELSE + 28 * 81 END + - 82 / + 79 AS col0
----
-2252

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

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

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

query II rowsort
SELECT ALL - 74 AS col0, + 85 col0
----
-74
85

query I rowsort
SELECT ALL + ( + + 4 ) * - 72
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), + 65 / + + 40 ) + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), + 65 / + + 40 ) + 82 AS col2
----
NULL

query II rowsort
SELECT ALL 51 AS col0, 67 * + - NULLIF ( + + 40, + ( + AVG ( - 8 ) ) ) + + 70 AS col1
----
51
-2610

query I rowsort
SELECT - 9 * NULLIF ( + 7, - - 84 ) * + - 36 + - 29
----
2239

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT 95 DIV - + 8 + 20 * + 9 * 71 AS col0
----
12769

skipif mysql # not compatible
query I rowsort label-2891
SELECT 95 / - + 8 + 20 * + 9 * 71 AS col0
----
12769

query I rowsort
SELECT DISTINCT - 59 * 28 AS col2
----
-1652

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2893
SELECT + COUNT( * ), - 93 DIV + - 90 col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2893
SELECT + COUNT ( * ), - 93 / + - 90 col1
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2894
SELECT ( + COUNT( * ) ) DIV ( + + 59 ) - 80 AS col1
----
-80

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

query I rowsort
SELECT - 79 * - 68
----
5372

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

query II rowsort
SELECT ALL + ( - 70 ) AS col2, - 55
----
-70
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT DISTINCT - 14 DIV - 62 * 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT - 14 / - 62 * 49 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT ALL - CASE + 59 WHEN - COUNT( * ) THEN NULL WHEN 0 THEN NULL ELSE + 38 END * - - CASE - 60 WHEN 0 THEN + MAX( ALL NULLIF ( + 9, CASE - 43 WHEN + 8 THEN 20 + - 61 END ) ) WHEN MAX( - 45 ) - - 42 * - 69 THEN NULL ELSE - 89 END
----
3382

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL - CASE + 59 WHEN - COUNT ( * ) THEN NULL WHEN 0 THEN NULL ELSE + 38 END * - - CASE - 60 WHEN 0 THEN + MAX ( ALL NULLIF ( + 9, CASE - 43 WHEN + 8 THEN 20 + - 61 END ) ) WHEN MAX ( - 45 ) - - 42 * - 69 THEN NULL ELSE - 89 END
----
3382

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2900
SELECT DISTINCT - COUNT( * ) DIV + + COALESCE ( + 58, + - 45 ), COUNT( * ) DIV + 18 * - 1 col1
----
0
0

skipif mysql # not compatible
query II rowsort label-2900
SELECT DISTINCT - COUNT ( * ) / + + COALESCE ( + 58, + - 45 ), COUNT ( * ) / + 18 * - 1 col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL - ( CASE - COUNT( * ) WHEN + - 51 + + ( + - 70 ) + + 10 * - 49 THEN AVG ( + 32 ) * + 92 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - ( CASE - COUNT ( * ) WHEN + - 51 + + ( + - 70 ) + + 10 * - 49 THEN AVG ( + 32 ) * + 92 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2902
SELECT DISTINCT - 64 AS col0, COUNT( * ) * SUM( DISTINCT - - CAST( + 1 AS SIGNED ) )
----
-64
1

skipif mysql # not compatible
query II rowsort label-2902
SELECT DISTINCT - 64 AS col0, COUNT ( * ) * SUM ( DISTINCT - - CAST ( + 1 AS INTEGER ) )
----
-64
1

query II rowsort
SELECT ALL - 6, - 25 * + 63 AS col1
----
-6
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT 16 * - - MIN( ALL + 15 ) * + 56 * - 42 AS col0
----
-564480

skipif mysql # not compatible
query I rowsort label-2904
SELECT 16 * - - MIN ( ALL + 15 ) * + 56 * - 42 AS col0
----
-564480

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

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

query II rowsort
SELECT + 68 * 19 * + + 50 + 27 AS col1, 65 AS col0
----
64627
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2907
SELECT ALL - 27 + - COUNT( * ) + CAST( NULL AS SIGNED ) + + 35 * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - 27 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + 35 * + 13
----
NULL

query I rowsort
SELECT ALL 60 + + 60
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT ALL 66, COUNT( * ) + 85 AS col0
----
66
86

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL 66, COUNT ( * ) + 85 AS col0
----
66
86

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2911
SELECT + 89, + 64 * - ( + 90 ) * 62 + + 7 + + SUM( DISTINCT 72 ) AS col2
----
89
-357041

skipif mysql # not compatible
query II rowsort label-2911
SELECT + 89, + 64 * - ( + 90 ) * 62 + + 7 + + SUM ( DISTINCT 72 ) AS col2
----
89
-357041

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT 9 - + - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-2912
SELECT 9 - + - COUNT ( * ) AS col2
----
10

query I rowsort
SELECT - 75 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT COUNT( * ) * + + 86 * - 20 * - 4 AS col1
----
6880

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT COUNT ( * ) * + + 86 * - 20 * - 4 AS col1
----
6880

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

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

query I rowsort
SELECT ALL 62 * 13 AS col0
----
806

query I rowsort
SELECT 2 + 13
----
15

onlyif mysql # DIV for integer division: 
query II rowsort label-2918
SELECT - 2 DIV 62, + 42 * + 63 AS col1
----
0
2646

skipif mysql # not compatible
query II rowsort label-2918
SELECT - 2 / 62, + 42 * + 63 AS col1
----
0
2646

query II rowsort
SELECT DISTINCT 40 AS col1, + 60 + - 38 AS col1
----
40
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT 33 * 90 * - - 85 * + + 25 + - COUNT( + - 58 ) AS col2
----
6311249

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT 33 * 90 * - - 85 * + + 25 + - COUNT ( + - 58 ) AS col2
----
6311249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT 10 + + 41 + - MAX( - 99 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT 10 + + 41 + - MAX ( - 99 ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ( + - 19 ) + + + 96 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-2923
SELECT ( + - 19 ) + + + 96 * COUNT ( * )
----
77

query II rowsort
SELECT ALL - 10 * - 85 AS col0, 96 AS col2
----
850
96

query I rowsort
SELECT DISTINCT 43 * 21 AS col2
----
903

onlyif mysql # aggregate syntax: 
query II rowsort label-2926
SELECT ALL - ( 28 ), + 69 * COUNT( * ) AS col2
----
-28
69

skipif mysql # not compatible
query II rowsort label-2926
SELECT ALL - ( 28 ), + 69 * COUNT ( * ) AS col2
----
-28
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT DISTINCT - 83 + - NULLIF ( + CASE + 66 WHEN + 73 / 62 THEN + 9 * + 51 WHEN 42 THEN NULL END, + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - 83 + - NULLIF ( + CASE + 66 WHEN + 73 / 62 THEN + 9 * + 51 WHEN 42 THEN NULL END, + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( CASE + 64 WHEN 55 * - 60 * 58 + - 12 THEN NULL ELSE - 29 END ) * + ( - 37 + 27 ) AS col2
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT - CASE - COUNT( * ) WHEN + 43 THEN NULL WHEN - 49 THEN - 63 * - - 59 + - + 85 + 82 * - 50 * + ( - 59 * ( - 28 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + 43 THEN NULL WHEN - 49 THEN - 63 * - - 59 + - + 85 + 82 * - 50 * + ( - 59 * ( - 28 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL + ( - 57 ) + - - 1 * + - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL + ( - 57 ) + - - 1 * + - COUNT ( * )
----
-58

query I rowsort
SELECT 35 * - 16 * + 49
----
-27440

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT 38 * - 6 + - - 22 - + + 27 * - COUNT( * ) * - + 90
----
-2636

skipif mysql # not compatible
query I rowsort label-2932
SELECT 38 * - 6 + - - 22 - + + 27 * - COUNT ( * ) * - + 90
----
-2636

onlyif mysql # DIV for integer division: 
query II rowsort label-2933
SELECT 76 DIV - 4, - NULLIF ( - 74, 17 * - 92 * - 75 ) AS col0
----
-19
74

skipif mysql # not compatible
query II rowsort label-2933
SELECT 76 / - 4, - NULLIF ( - 74, 17 * - 92 * - 75 ) AS col0
----
-19
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT + CASE - - NULLIF ( - 35, 13 + 93 ) WHEN - + 9 * - + 0 THEN NULL ELSE CAST( - 42 AS SIGNED ) + 33 * 90 END col2
----
2928

skipif mysql # not compatible
query I rowsort label-2934
SELECT + CASE - - NULLIF ( - 35, 13 + 93 ) WHEN - + 9 * - + 0 THEN NULL ELSE CAST ( - 42 AS INTEGER ) + 33 * 90 END col2
----
2928

query I rowsort
SELECT 45 + + 86 + + ( - 32 ) * - ( 74 )
----
2499

query I rowsort
SELECT ALL - 96 + - 85 * + 66
----
-5706

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2937
SELECT 90 * 96 + - - 69 DIV - 14 * COUNT( * ), + 77 AS col0
----
8636
77

skipif mysql # not compatible
query II rowsort label-2937
SELECT 90 * 96 + - - 69 / - 14 * COUNT ( * ), + 77 AS col0
----
8636
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2938
SELECT ALL - 46 * + - 68 AS col0, - 3 * - CASE - COUNT( * ) WHEN - 7 * - 55 THEN - COUNT( 84 ) ELSE NULL END + + COALESCE ( - 56, 23 / + 32 + + 53 ) AS col0
----
3128
NULL

skipif mysql # not compatible
query II rowsort label-2938
SELECT ALL - 46 * + - 68 AS col0, - 3 * - CASE - COUNT ( * ) WHEN - 7 * - 55 THEN - COUNT ( 84 ) ELSE NULL END + + COALESCE ( - 56, 23 / + 32 + + 53 ) AS col0
----
3128
NULL

query I rowsort
SELECT 24 + - 43 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL + MIN( ALL + 45 ) - - + COUNT( * ) col2
----
46

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + MIN ( ALL + 45 ) - - + COUNT ( * ) col2
----
46

query II rowsort
SELECT + ( + 91 ) AS col0, - 25 AS col0
----
91
-25

query I rowsort
SELECT ALL - 86 * - 83 + - + 67
----
7071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2943
SELECT NULLIF ( + COALESCE ( - - ( 62 ), + 74 + + CAST( - 88 AS SIGNED ) ), 54 - - 97 / + 9 ) + - 72 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2943
SELECT NULLIF ( + COALESCE ( - - ( 62 ), + 74 + + CAST ( - 88 AS INTEGER ) ), 54 - - 97 / + 9 ) + - 72 AS col1
----
-10

query I rowsort
SELECT DISTINCT + NULLIF ( + 75, + 87 * - 7 ) col0
----
75

query I rowsort
SELECT - 66 + 52
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT 27 DIV + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2946
SELECT 27 / + 97 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2947
SELECT DISTINCT + 3 DIV 79 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT + 3 / 79 - COUNT ( * )
----
-1

query I rowsort
SELECT NULLIF ( - + 13, - - 65 ) * - - 28
----
-364

query II rowsort
SELECT 53 AS col2, + 71 + - ( - 56 )
----
53
127

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT COALESCE ( + - 0, + COUNT( * ) ) + + - 43 + - + 52 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-2950
SELECT COALESCE ( + - 0, + COUNT ( * ) ) + + - 43 + - + 52 AS col1
----
-95

query I rowsort
SELECT + 44 * ( ( ( + - 13 ) ) ) * 6 col1
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT - MAX( + - 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2952
SELECT - MAX ( + - 19 ) AS col1
----
19

query I rowsort
SELECT ALL 84 + 60 * - 85
----
-5016

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL 2 * MIN( + - 7 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL 2 * MIN ( + - 7 ) col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT CASE - + 32 WHEN + MIN( + ( 87 ) ) + + 31 * + + 31 THEN NULL WHEN + 41 * 30 THEN 17 + NULLIF ( - 40, + COUNT( 50 ) ) WHEN 80 THEN - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT CASE - + 32 WHEN + MIN ( + ( 87 ) ) + + 31 * + + 31 THEN NULL WHEN + 41 * 30 THEN 17 + NULLIF ( - 40, + COUNT ( 50 ) ) WHEN 80 THEN - 98 END
----
NULL

query I rowsort
SELECT ALL + 21 * + 18 + + ( 19 ) + 66
----
463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT CASE + COUNT( * ) WHEN 53 THEN - CAST( - COUNT( * ) AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT CASE + COUNT ( * ) WHEN 53 THEN - CAST ( - COUNT ( * ) AS INTEGER ) END AS col1
----
NULL

query I rowsort
SELECT + 77 * + + 11
----
847

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

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

query I rowsort
SELECT DISTINCT 10 * - + 25 * - 13 + - + ( + 7 ) AS col1
----
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL - 79 * - MIN( - 67 ) AS col2
----
-5293

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - 79 * - MIN ( - 67 ) AS col2
----
-5293

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * 54 + COUNT( * ) * - 19 * - 9 AS col1
----
225

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * 54 + COUNT ( * ) * - 19 * - 9 AS col1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT 88 * AVG ( ALL + - 49 ) / CASE + 67 WHEN + COUNT( * ) + 86 THEN - - SUM( 94 ) WHEN 81 THEN 16 END + + 69 * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT 88 * AVG ( ALL + - 49 ) / CASE + 67 WHEN + COUNT ( * ) + 86 THEN - - SUM ( 94 ) WHEN 81 THEN 16 END + + 69 * + 52 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2964
SELECT ALL 81 * - CAST( + 75 AS SIGNED )
----
-6075

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL 81 * - CAST ( + 75 AS INTEGER )
----
-6075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2965
SELECT ALL + 0 * 66 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL + 0 * 66 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 75 * + 93
----
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT + 78 * - 33 * - COUNT( * ) AS col0
----
2574

skipif mysql # not compatible
query I rowsort label-2967
SELECT + 78 * - 33 * - COUNT ( * ) AS col0
----
2574

query I rowsort
SELECT - + 81 * + 76
----
-6156

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + - ( + - MIN( + - 53 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-2969
SELECT + - ( + - MIN ( + - 53 ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ( - - ( + CASE - 28 WHEN - 97 + - COUNT( * ) * + - 48 THEN 10 END ) ) * - SUM( 42 + 60 ) + + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT ( - - ( + CASE - 28 WHEN - 97 + - COUNT ( * ) * + - 48 THEN 10 END ) ) * - SUM ( 42 + 60 ) + + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL COUNT( * ) * - 41 - + ( - 2 ) * - 5
----
-51

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL COUNT ( * ) * - 41 - + ( - 2 ) * - 5
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2972
SELECT ALL + - 50 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL + - 50 / + 69
----
0

query I rowsort
SELECT - - 45 * - 66 - + 0
----
-2970

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

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

query I rowsort
SELECT ALL - + 45 * + + 7
----
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2976
SELECT - + 68 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT - + 68 - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL NULLIF ( - 27, 1 ) col0, - 96 AS col0
----
-27
-96

query I rowsort
SELECT - 50 + - ( + 2 ) + + 32 * - + 82 * + 22 AS col0
----
-57780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2979
SELECT - 26 + 14 DIV - 99 DIV COUNT( * ) AS col0, + 77 AS col1
----
-26
77

skipif mysql # not compatible
query II rowsort label-2979
SELECT - 26 + 14 / - 99 / COUNT ( * ) AS col0, + 77 AS col1
----
-26
77

query I rowsort
SELECT ALL - 82 + 79
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT ALL 90 + - COALESCE ( 57, - + MAX( DISTINCT + + 85 ) * 20 ) col1
----
33

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL 90 + - COALESCE ( 57, - + MAX ( DISTINCT + + 85 ) * 20 ) col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT + 96 - + 28 + - CASE + - ( + 70 ) WHEN - CAST( NULL AS SIGNED ) * - 49 THEN - 44 WHEN + 34 * + 14 THEN NULL END / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT + 96 - + 28 + - CASE + - ( + 70 ) WHEN - CAST ( NULL AS INTEGER ) * - 49 THEN - 44 WHEN + 34 * + 14 THEN NULL END / 16
----
NULL

query II rowsort
SELECT ALL ( - 33 ), - 67 AS col0
----
-33
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT CAST( + COUNT( - 19 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT CAST ( + COUNT ( - 19 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT ALL ( + - COUNT( ALL - 71 ) ) + - 45 * - - 99
----
-4456

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL ( + - COUNT ( ALL - 71 ) ) + - 45 * - - 99
----
-4456

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT - 78 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT - 78 / - 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2988
SELECT COUNT( * ) * - COALESCE ( - + ( + 52 ), - 85 + - 36 DIV 42 ) - 37 + + + ( 55 ) - + 32 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2988
SELECT COUNT ( * ) * - COALESCE ( - + ( + 52 ), - 85 + - 36 / 42 ) - 37 + + + ( 55 ) - + 32 AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT + NULLIF ( - + 19, + 84 + + ( CAST( NULL AS SIGNED ) ) - + 56 ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-2989
SELECT + NULLIF ( - + 19, + 84 + + ( CAST ( NULL AS INTEGER ) ) - + 56 ) col1
----
-19

query I rowsort
SELECT + NULLIF ( - 58, 64 ) * - 46 AS col2
----
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT DISTINCT + NULLIF ( + - COUNT( * ), + - 92 ) / CASE + 64 WHEN - + 3 THEN + 81 + + 90 + COUNT( * ) * COUNT( * ) END + - 29 + + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), + - 92 ) / CASE + 64 WHEN - + 3 THEN + 81 + + 90 + COUNT ( * ) * COUNT ( * ) END + - 29 + + 22 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ALL + SUM( DISTINCT - + 4 ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + SUM ( DISTINCT - + 4 ) col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2993
SELECT + - 3 DIV - ( - - 83 ) * - - 95 * - 86 + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-2993
SELECT + - 3 / - ( - - 83 ) * - - 95 * - 86 + - 12
----
-12

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT + 71 + + 98 DIV - - 56 + 81 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-2996
SELECT + 71 + + 98 / - - 56 + 81 AS col0
----
153

query I rowsort
SELECT - + 35 * 69
----
-2415

query I rowsort
SELECT + 89 * 6 + - + 23 AS col2
----
511

query I rowsort
SELECT + - 58 + + 72 AS col0
----
14

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3002
SELECT DISTINCT 0 * 70 + + 37 DIV 12 * 22
----
66

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT 0 * 70 + + 37 / 12 * 22
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3003
SELECT + - ( - 78 ) DIV 6 + 98
----
111

skipif mysql # not compatible
query I rowsort label-3003
SELECT + - ( - 78 ) / 6 + 98
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT SUM( DISTINCT + + 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3004
SELECT SUM ( DISTINCT + + 79 ) AS col1
----
79

query I rowsort
SELECT - 71 + 62 + NULLIF ( 57, + 80 ) AS col2
----
48

query II rowsort
SELECT - 14 * 92 AS col0, 83
----
-1288
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL NULLIF ( 10, 39 * + 49 + 30 * - 83 / + AVG ( - + 29 ) ) + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL NULLIF ( 10, 39 * + 49 + 30 * - 83 / + AVG ( - + 29 ) ) + - COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT 19 * COALESCE ( - ( 62 ), - COUNT( * ) + + 62 + + + 0, + 25 + - 69 * 63 + 53 * - COUNT( * ) ) * + 72 AS col0
----
-84816

skipif mysql # not compatible
query I rowsort label-3008
SELECT 19 * COALESCE ( - ( 62 ), - COUNT ( * ) + + 62 + + + 0, + 25 + - 69 * 63 + 53 * - COUNT ( * ) ) * + 72 AS col0
----
-84816

onlyif mysql # aggregate syntax: 
query II rowsort label-3009
SELECT ALL COUNT( * ) + + 77 + COALESCE ( 72, - 81 ) * 25 * + - 82 + - 44 AS col2, 13
----
-147566
13

skipif mysql # not compatible
query II rowsort label-3009
SELECT ALL COUNT ( * ) + + 77 + COALESCE ( 72, - 81 ) * 25 * + - 82 + - 44 AS col2, 13
----
-147566
13

query I rowsort
SELECT ALL - 51 + + - 61 AS col1
----
-112

query I rowsort
SELECT 35 + + - 36
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3012
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( - 24 ), 7 * + 74 AS col2
----
NULL
518

skipif mysql # not compatible
query II rowsort label-3012
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( - 24 ), 7 * + 74 AS col2
----
NULL
518

query I rowsort
SELECT 35 * 50
----
1750

query I rowsort
SELECT ALL - 52 + 47 col2
----
-5

query I rowsort
SELECT DISTINCT - COALESCE ( - 43, - 77 * + 65 ) - 41 + ( - - 64 ) AS col2
----
66

query II rowsort
SELECT ALL 40, 3 AS col2
----
40
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3017
SELECT 45, + CAST( NULL AS SIGNED ) AS col2
----
45
NULL

skipif mysql # not compatible
query II rowsort label-3017
SELECT 45, + CAST ( NULL AS INTEGER ) AS col2
----
45
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3018
SELECT 76 + + - 40 + COUNT( * ) * - CASE + 7 WHEN - - MIN( DISTINCT + 53 ) THEN - 97 WHEN + 36 * - 42 / 96 + + 3 / 22 THEN + CAST( NULL AS SIGNED ) WHEN - ( - 54 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT 76 + + - 40 + COUNT ( * ) * - CASE + 7 WHEN - - MIN ( DISTINCT + 53 ) THEN - 97 WHEN + 36 * - 42 / 96 + + 3 / 22 THEN + CAST ( NULL AS INTEGER ) WHEN - ( - 54 ) THEN NULL END
----
NULL

query II rowsort
SELECT 53 AS col2, 80 * + + 27 * + ( + 42 ) AS col0
----
53
90720

query I rowsort
SELECT 50 * - 66
----
-3300

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - 3 * 78 * - COUNT( * )
----
234

skipif mysql # not compatible
query I rowsort label-3021
SELECT - 3 * 78 * - COUNT ( * )
----
234

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

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL - COUNT ( * ) / 53
----
0

query I rowsort
SELECT + NULLIF ( - 51, - - 93 ) - - + NULLIF ( 0, - ( - 88 ) ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - 30 / + 71 + - 2 + - 38 + + ( - - CASE + ( - 78 ) WHEN COUNT( * ) THEN NULL WHEN 19 THEN 36 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT - 30 / + 71 + - 2 + - 38 + + ( - - CASE + ( - 78 ) WHEN COUNT ( * ) THEN NULL WHEN 19 THEN 36 END ) AS col2
----
NULL

query I rowsort
SELECT ALL 99 * + 18 AS col0
----
1782

query I rowsort
SELECT - 69 * + ( - 92 )
----
6348

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT DISTINCT - COALESCE ( 33, - + COUNT( * ) + - 11 * - + 29, + - 11 ) * + 4 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - COALESCE ( 33, - + COUNT ( * ) + - 11 * - + 29, + - 11 ) * + 4 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT DISTINCT - + MIN( - 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - + MIN ( - 25 ) AS col0
----
25

query I rowsort
SELECT ALL - 98 * + 87 col2
----
-8526

query I rowsort
SELECT ( + 6 ) * - 44 - - 53 AS col1
----
-211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3031
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 27 - - - COALESCE ( + - 95, - 34, + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 27 - - - COALESCE ( + - 95, - 34, + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3034
SELECT + - 78 AS col0, COUNT( * ) * - COUNT( * )
----
-78
-1

skipif mysql # not compatible
query II rowsort label-3034
SELECT + - 78 AS col0, COUNT ( * ) * - COUNT ( * )
----
-78
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT + 24 + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT + 24 + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT 73 + + MAX( + NULLIF ( 22, - 19 + + - 37 ) )
----
95

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT 73 + + MAX ( + NULLIF ( 22, - 19 + + - 37 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT - COUNT( * ) + - ( + 32 ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT - COUNT ( * ) + - ( + 32 ) col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3039
SELECT CAST( NULL AS SIGNED ) * + ( 31 ) * + - 73 * + COUNT( * ) * - - 2, 56 AS col0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3039
SELECT CAST ( NULL AS INTEGER ) * + ( 31 ) * + - 73 * + COUNT ( * ) * - - 2, 56 AS col0
----
NULL
56

onlyif mysql # DIV for integer division: 
query II rowsort label-3040
SELECT ALL 0 AS col2, - 85 + + + 45 - COALESCE ( 80, 22 ) + - + 45 * - 2 * - 75 - + + 14 + - 48 DIV 67 DIV 71 col2
----
0
-6884

skipif mysql # not compatible
query II rowsort label-3040
SELECT ALL 0 AS col2, - 85 + + + 45 - COALESCE ( 80, 22 ) + - + 45 * - 2 * - 75 - + + 14 + - 48 / 67 / 71 col2
----
0
-6884

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT 45 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT 45 / - 58
----
0

query I rowsort
SELECT 16 + 92 * + + 46
----
4248

query II rowsort
SELECT 7 AS col1, 22 AS col1
----
7
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT COALESCE ( + 44, + 61 ) + - 33 + + 55 + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3045
SELECT COALESCE ( + 44, + 61 ) + - 33 + + 55 + - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-3046
SELECT ALL 66 AS col1, + SUM( ALL + 83 ) + - - 42 col1
----
66
125

skipif mysql # not compatible
query II rowsort label-3046
SELECT ALL 66 AS col1, + SUM ( ALL + 83 ) + - - 42 col1
----
66
125

query I rowsort
SELECT 41 * - + 59 AS col1
----
-2419

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3048
SELECT DISTINCT 24, CAST( NULL AS SIGNED ) AS col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-3048
SELECT DISTINCT 24, CAST ( NULL AS INTEGER ) AS col0
----
24
NULL

query I rowsort
SELECT DISTINCT 78 - - - 46
----
32

query I rowsort
SELECT ALL - 20 - + - 40
----
20

query I rowsort
SELECT 60 - - 38
----
98

query I rowsort
SELECT 70 + + - 24 + + 4 AS col0
----
50

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

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

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

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

query I rowsort
SELECT 79 + 84 + + + ( 42 ) * 24 AS col2
----
1171

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT - 42 AS col0, + NULLIF ( + - COUNT( - - 86 ), + - NULLIF ( - + 3, + 94 ) ) * - 50
----
-42
50

skipif mysql # not compatible
query II rowsort label-3056
SELECT - 42 AS col0, + NULLIF ( + - COUNT ( - - 86 ), + - NULLIF ( - + 3, + 94 ) ) * - 50
----
-42
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3057
SELECT ALL + 57 * 62 * - SUM( 83 ) * - 98 * 35 AS col2, - 38
----
1006094460
-38

skipif mysql # not compatible
query II rowsort label-3057
SELECT ALL + 57 * 62 * - SUM ( 83 ) * - 98 * 35 AS col2, - 38
----
1006094460
-38

query I rowsort
SELECT 60 + ( - COALESCE ( + + 70, - 84, - + 62 ) ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT MIN( ALL - 24 ) * - 84 AS col0
----
2016

skipif mysql # not compatible
query I rowsort label-3059
SELECT MIN ( ALL - 24 ) * - 84 AS col0
----
2016

query I rowsort
SELECT - - 8 * + 43 - 31
----
313

onlyif mysql # DIV for integer division: 
query II rowsort label-3061
SELECT ALL - + 84 AS col2, 48 * 46 DIV - 60
----
-84
-36

skipif mysql # not compatible
query II rowsort label-3061
SELECT ALL - + 84 AS col2, 48 * 46 / - 60
----
-84
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT - 58 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT - 58 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 19 * 89 * 74 AS col2
----
-125134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3064
SELECT ALL - + CAST( NULL AS SIGNED ), - 31 AS col2
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-3064
SELECT ALL - + CAST ( NULL AS INTEGER ), - 31 AS col2
----
NULL
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT CAST( + + 34 AS SIGNED ) * - + MIN( + 87 ) * ( - MAX( DISTINCT ( + 84 ) ) ) * - - 17 + - - 76 + - 54 - 82 * CAST( 93 AS SIGNED )
----
4216420

skipif mysql # not compatible
query I rowsort label-3065
SELECT CAST ( + + 34 AS INTEGER ) * - + MIN ( + 87 ) * ( - MAX ( DISTINCT ( + 84 ) ) ) * - - 17 + - - 76 + - 54 - 82 * CAST ( 93 AS INTEGER )
----
4216420

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

skipif mysql # not compatible
query I rowsort label-3066
SELECT 14 * ( COUNT ( * ) )
----
14

query II rowsort
SELECT + 15, - 77 AS col2
----
15
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT + COALESCE ( - COUNT( * ), + 48 + - 62 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + COALESCE ( - COUNT ( * ), + 48 + - 62 ) AS col0
----
-1

query I rowsort
SELECT + - 75 * + ( + 58 )
----
-4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3070
SELECT - 43 * - CAST( NULL AS SIGNED ) - COUNT( DISTINCT - 22 ) * + 92 / - CAST( NULL AS SIGNED ) + + 3 AS col2, MAX( + 96 )
----
NULL
96

skipif mysql # not compatible
query II rowsort label-3070
SELECT - 43 * - CAST ( NULL AS INTEGER ) - COUNT ( DISTINCT - 22 ) * + 92 / - CAST ( NULL AS INTEGER ) + + 3 AS col2, MAX ( + 96 )
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL + 7 * - - COUNT( * ) + + 95 + + - 34 col0
----
68

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL + 7 * - - COUNT ( * ) + + 95 + + - 34 col0
----
68

query I rowsort
SELECT ALL - 50 * - + ( - 21 ) + + 33 AS col1
----
-1017

query II rowsort
SELECT DISTINCT + 14 AS col1, 21 AS col1
----
14
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT DISTINCT - NULLIF ( 39, - 75 ) * + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT - NULLIF ( 39, - 75 ) * + COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3075
SELECT DISTINCT - + CAST( - COALESCE ( - MIN( ALL - - 81 ), 65, 60 ) AS SIGNED ) + - + 51 + + NULLIF ( 17, - 86 * - + 32 + - CASE COUNT( * ) WHEN - 15 * - CAST( NULL AS SIGNED ) + + NULLIF ( + 5, 91 ) THEN 95 * 85 END ) * 48 * + 95
----
77388

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT - + CAST ( - COALESCE ( - MIN ( ALL - - 81 ), 65, 60 ) AS INTEGER ) + - + 51 + + NULLIF ( 17, - 86 * - + 32 + - CASE COUNT ( * ) WHEN - 15 * - CAST ( NULL AS INTEGER ) + + NULLIF ( + 5, 91 ) THEN 95 * 85 END ) * 48 * + 95
----
77388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3076
SELECT 24 * + 86 * - CASE - 74 WHEN + 36 + 62 + + SUM( - 66 ) * - + 60 THEN NULL WHEN + - CAST( - 8 AS SIGNED ) - + 87 THEN - 98 * + MAX( DISTINCT + 2 * 11 ) WHEN 42 + 22 THEN - 94 * - 59 END * + 58 + + CASE 4 + 27 WHEN 77 + - 61 * COUNT( * ) THEN NULL WHEN 70 * 98 THEN 80 WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT 24 * + 86 * - CASE - 74 WHEN + 36 + 62 + + SUM ( - 66 ) * - + 60 THEN NULL WHEN + - CAST ( - 8 AS INTEGER ) - + 87 THEN - 98 * + MAX ( DISTINCT + 2 * 11 ) WHEN 42 + 22 THEN - 94 * - 59 END * + 58 + + CASE 4 + 27 WHEN 77 + - 61 * COUNT ( * ) THEN NULL WHEN 70 * 98 THEN 80 WHEN COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT COUNT( * ) * - - 48 + 67 + - 25 * + + ( 69 ) AS col0
----
-1610

skipif mysql # not compatible
query I rowsort label-3077
SELECT COUNT ( * ) * - - 48 + 67 + - 25 * + + ( 69 ) AS col0
----
-1610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3078
SELECT + COALESCE ( + MAX( DISTINCT 65 ), + + 48, + COUNT( 63 ) ) + + - COALESCE ( - 76, - + SUM( ALL + 81 ) + + + 4 + + - 64 * - COUNT( * ), + 71 DIV COALESCE ( 20, 50 * 24 ) + 52 DIV 55 ) * - 41 col2
----
-3051

skipif mysql # not compatible
query I rowsort label-3078
SELECT + COALESCE ( + MAX ( DISTINCT 65 ), + + 48, + COUNT ( 63 ) ) + + - COALESCE ( - 76, - + SUM ( ALL + 81 ) + + + 4 + + - 64 * - COUNT ( * ), + 71 / COALESCE ( 20, 50 * 24 ) + 52 / 55 ) * - 41 col2
----
-3051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT + COALESCE ( + 12, 33 * - 80 ) + - - CAST( ( 69 ) AS SIGNED ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3079
SELECT + COALESCE ( + 12, 33 * - 80 ) + - - CAST ( ( 69 ) AS INTEGER ) AS col2
----
81

query II rowsort
SELECT + 83 + 14 col1, - 42 - + 20 + - 1 * 99 AS col0
----
97
-161

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3083
SELECT - MIN( DISTINCT + 70 ) DIV - - SUM( 3 )
----
-23

skipif mysql # not compatible
query I rowsort label-3083
SELECT - MIN ( DISTINCT + 70 ) / - - SUM ( 3 )
----
-23

query I rowsort
SELECT + + 53 * - 73
----
-3869

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL - COUNT( ALL 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - COUNT ( ALL 17 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT DISTINCT + + 41 DIV - 93 * - - 66 DIV - - 36
----
0

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + + 41 / - 93 * - - 66 / - - 36
----
0

query I rowsort
SELECT DISTINCT + 98 + 90 AS col1
----
188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3088
SELECT DISTINCT + COUNT( * ) + - 43 * + COUNT( ALL + CAST( + + 2 AS SIGNED ) ) - 34 col2
----
-76

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + COUNT ( * ) + - 43 * + COUNT ( ALL + CAST ( + + 2 AS INTEGER ) ) - 34 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT ALL 12 / + 21 - ( SUM( 63 ) ) * + 25 * + - 8 * + 70 + + - CASE + 98 WHEN COUNT( * ) + - - 82 THEN - 16 WHEN + ( - 79 ) THEN NULL WHEN - 85 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL 12 / + 21 - ( SUM ( 63 ) ) * + 25 * + - 8 * + 70 + + - CASE + 98 WHEN COUNT ( * ) + - - 82 THEN - 16 WHEN + ( - 79 ) THEN NULL WHEN - 85 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + + MAX( 87 ) col2
----
87

skipif mysql # not compatible
query I rowsort label-3090
SELECT + + MAX ( 87 ) col2
----
87

query I rowsort
SELECT + - 85 * - 47 AS col1
----
3995

query I rowsort
SELECT + 45 - + 95
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT ALL - 96 * - 74 + - MAX( - - ( - + 29 ) ) - - 14 + 30 * - COUNT( * ) + - 53 col2
----
7064

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL - 96 * - 74 + - MAX ( - - ( - + 29 ) ) - - 14 + 30 * - COUNT ( * ) + - 53 col2
----
7064

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT ALL + - ( - 23 ), + ( - 86 ) + - 92 + + MAX( ALL 33 ) + + 42 AS col0
----
23
-103

skipif mysql # not compatible
query II rowsort label-3095
SELECT ALL + - ( - 23 ), + ( - 86 ) + - 92 + + MAX ( ALL 33 ) + + 42 AS col0
----
23
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL + MIN( ALL 45 ) * 65 + - 19 + 34 + 7 + - 28 col2
----
2919

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL + MIN ( ALL 45 ) * 65 + - 19 + 34 + 7 + - 28 col2
----
2919

query I rowsort
SELECT ALL - 80 * 68 col0
----
-5440

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL - + ( - + COUNT( * ) ) * - COUNT( * ) + 23
----
22

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - + ( - + COUNT ( * ) ) * - COUNT ( * ) + 23
----
22

query II rowsort
SELECT - 44 * - 49 * + - 70, 79 * 71 AS col0
----
-150920
5609

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT - 62 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-3100
SELECT - 62 / 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT + COUNT( DISTINCT + 82 ) * + 3 * - 57 AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-3101
SELECT + COUNT ( DISTINCT + 82 ) * + 3 * - 57 AS col2
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3102
SELECT DISTINCT + ( + + COUNT( * ) ) DIV - 73 col0, 5 * 83 + - MAX( DISTINCT - 27 ) col0
----
0
442

skipif mysql # not compatible
query II rowsort label-3102
SELECT DISTINCT + ( + + COUNT ( * ) ) / - 73 col0, 5 * 83 + - MAX ( DISTINCT - 27 ) col0
----
0
442

query II rowsort
SELECT ALL + 99, - 85 AS col2
----
99
-85

query I rowsort
SELECT DISTINCT + 38 * - 23 AS col2
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + COALESCE ( + + 83, + - 53 - - ( - 64 ) + + 80 ) * - + MAX( ALL + 68 ) AS col0
----
-5644

skipif mysql # not compatible
query I rowsort label-3105
SELECT + COALESCE ( + + 83, + - 53 - - ( - 64 ) + + 80 ) * - + MAX ( ALL + 68 ) AS col0
----
-5644

query I rowsort
SELECT COALESCE ( - 21, - 26, - + 27 ) AS col0
----
-21

query I rowsort
SELECT ALL 26 * 63 AS col1
----
1638

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3109
SELECT DISTINCT + COUNT( * ) DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT + COUNT ( * ) / 87 AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT DISTINCT 90 * + + NULLIF ( - 11, - 61 ) - + CAST( + 54 AS SIGNED ) - + + 47 AS col0
----
-1091

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT 90 * + + NULLIF ( - 11, - 61 ) - + CAST ( + 54 AS INTEGER ) - + + 47 AS col0
----
-1091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL + CAST( NULL AS SIGNED ) * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + CAST ( NULL AS INTEGER ) * + 31 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 75 * + - 78 * - - 65 AS col0
----
380250

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT MAX( DISTINCT - 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3114
SELECT MAX ( DISTINCT - 73 ) AS col2
----
-73

query I rowsort
SELECT ALL - 57 * + NULLIF ( + - 40, 89 * + 99 ) AS col0
----
2280

query II rowsort
SELECT DISTINCT 31, - 17 AS col2
----
31
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT + CAST( + 10 AS SIGNED ) - COALESCE ( + 56, - 26 )
----
-46

skipif mysql # not compatible
query I rowsort label-3117
SELECT + CAST ( + 10 AS INTEGER ) - COALESCE ( + 56, - 26 )
----
-46

query II rowsort
SELECT ALL 85, ( + + ( + 18 ) ) + - - 90 AS col0
----
85
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3119
SELECT - 24 + - 68 DIV + - COUNT( * ) + + 73
----
117

skipif mysql # not compatible
query I rowsort label-3119
SELECT - 24 + - 68 / + - COUNT ( * ) + + 73
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3120
SELECT - CAST( NULL AS SIGNED ) col2, + 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3120
SELECT - CAST ( NULL AS INTEGER ) col2, + 77
----
NULL
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT DISTINCT CAST( - COUNT( - + 98 ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT CAST ( - COUNT ( - + 98 ) AS INTEGER ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT + CAST( NULL AS SIGNED ) + + 64 + 72 * COALESCE ( + 11, + + COUNT( * ), NULLIF ( - COUNT( - + ( 57 ) ), + - COUNT( * ) / COUNT( * ) + + + 14 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT + CAST ( NULL AS INTEGER ) + + 64 + 72 * COALESCE ( + 11, + + COUNT ( * ), NULLIF ( - COUNT ( - + ( 57 ) ), + - COUNT ( * ) / COUNT ( * ) + + + 14 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3123
SELECT ALL 94 AS col0, + CAST( NULLIF ( + 53, + 30 + + CASE + 16 WHEN 26 THEN 15 + + 84 END ) AS SIGNED ) AS col0
----
94
53

skipif mysql # not compatible
query II rowsort label-3123
SELECT ALL 94 AS col0, + CAST ( NULLIF ( + 53, + 30 + + CASE + 16 WHEN 26 THEN 15 + + 84 END ) AS INTEGER ) AS col0
----
94
53

query I rowsort
SELECT DISTINCT 71 * 49
----
3479

query I rowsort
SELECT ALL - + 72 + + 48
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT ALL - CASE + 65 WHEN - 76 + 19 THEN + 66 + + + 76 * + NULLIF ( + 37, + + 58 ) * + + CAST( - 26 AS SIGNED ) END * 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL - CASE + 65 WHEN - 76 + 19 THEN + 66 + + + 76 * + NULLIF ( + 37, + + 58 ) * + + CAST ( - 26 AS INTEGER ) END * 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT DISTINCT - 69 + + - SUM( DISTINCT 40 )
----
-109

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - 69 + + - SUM ( DISTINCT 40 )
----
-109

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT ALL - 36 + - - 41 DIV + + 13 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL - 36 + - - 41 / + + 13 AS col2
----
-33

query II rowsort
SELECT DISTINCT 33, 43 * CASE + - 36 WHEN 74 - + 61 THEN - 49 END AS col2
----
33
NULL

query I rowsort
SELECT ALL - 19 + + 79 AS col0
----
60

query II rowsort
SELECT 88 AS col1, + 50 AS col2
----
88
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT DISTINCT - 86 + - 58 DIV - 42
----
-85

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT - 86 + - 58 / - 42
----
-85

query I rowsort
SELECT 46 + - - 29 * + 34
----
1032

query I rowsort
SELECT - - ( 79 ) * + 44 - - + 37 AS col0
----
3513

query I rowsort
SELECT DISTINCT CASE + - 8 WHEN 90 THEN + - 31 WHEN - 65 + - 80 THEN NULL ELSE NULL END + 65 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT DISTINCT + 37 DIV 7
----
5

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT + 37 / 7
----
5

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

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

query I rowsort
SELECT ALL + + 71 * 18
----
1278

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT - 93 - COUNT( ALL - + 96 ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - 93 - COUNT ( ALL - + 96 ) col2
----
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT ALL + 59 - + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + 59 - + COUNT ( * )
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT - 54 + MAX( ALL - + 69 ) AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-3145
SELECT - 54 + MAX ( ALL - + 69 ) AS col0
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3146
SELECT ALL - COUNT( DISTINCT 8 ) * + 78 DIV + - MAX( - 60 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - COUNT ( DISTINCT 8 ) * + 78 / + - MAX ( - 60 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT - 11 * - NULLIF ( + 48, 9 + SUM( 6 ) ) + 83
----
611

skipif mysql # not compatible
query I rowsort label-3147
SELECT - 11 * - NULLIF ( + 48, 9 + SUM ( 6 ) ) + 83
----
611

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3148
SELECT 52 * + - MIN( - 5 ) * - COUNT( * ) + - - 79 + + 6 * 16 + CAST( NULL AS DECIMAL ) * ( - + COUNT( * ) ) * - 52 + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT 52 * + - MIN ( - 5 ) * - COUNT ( * ) + - - 79 + + 6 * 16 + CAST ( NULL AS REAL ) * ( - + COUNT ( * ) ) * - 52 + 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT 54 * + 9 AS col1, COUNT( * )
----
486
1

skipif mysql # not compatible
query II rowsort label-3149
SELECT 54 * + 9 AS col1, COUNT ( * )
----
486
1

query I rowsort
SELECT ( + 30 ) * - 80 AS col2
----
-2400

query I rowsort
SELECT DISTINCT - COALESCE ( 55, - 18, - - 61 - 72 ) col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT ALL + 98 DIV - + ( NULLIF ( - 54, + 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + 98 / - + ( NULLIF ( - 54, + 83 ) )
----
1

query I rowsort
SELECT 69 * + 59 AS col1
----
4071

query I rowsort
SELECT NULLIF ( - 23, - 74 ) + + 85 + + 12 col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL + 89 * + MAX( DISTINCT - 53 ) col2
----
-4717

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + 89 * + MAX ( DISTINCT - 53 ) col2
----
-4717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3156
SELECT DISTINCT + AVG ( + - 58 ) * + - CAST( NULL AS SIGNED ) + + 14 + - COUNT( * ) * + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT + AVG ( + - 58 ) * + - CAST ( NULL AS INTEGER ) + + 14 + - COUNT ( * ) * + 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3157
SELECT SUM( 70 ) DIV - 84 * + 24 * - COUNT( ALL - 64 ) * + 85 + - - 90 - - CASE WHEN NOT ( ( - 58 ) ) >= ( 69 * 77 ) THEN + 39 * + 16 + - 23 ELSE NULL END + 53
----
744

skipif mysql # not compatible
query I rowsort label-3157
SELECT SUM ( 70 ) / - 84 * + 24 * - COUNT ( ALL - 64 ) * + 85 + - - 90 - - CASE WHEN NOT ( ( - 58 ) ) >= ( 69 * 77 ) THEN + 39 * + 16 + - 23 ELSE NULL END + 53
----
744

query I rowsort
SELECT DISTINCT - 44 + + + 59 + - 54 + - - 49
----
10

query I rowsort
SELECT ALL - 40 + 15
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT NULLIF ( + + COUNT( * ), + - CAST( NULL AS SIGNED ) + + CAST( - - 50 AS SIGNED ) - - COUNT( * ) - 72 + + 27 * 12 / + - SUM( DISTINCT 7 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3160
SELECT NULLIF ( + + COUNT ( * ), + - CAST ( NULL AS INTEGER ) + + CAST ( - - 50 AS INTEGER ) - - COUNT ( * ) - 72 + + 27 * 12 / + - SUM ( DISTINCT 7 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT + 60 DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT + 60 / - 90 AS col1
----
0

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

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

query I rowsort
SELECT ALL 80 + + 1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT ALL + ( 84 ) * - 63 DIV - 63 - + 75
----
9

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + ( 84 ) * - 63 / - 63 - + 75
----
9

query II rowsort
SELECT DISTINCT + 97 - - 93 + - 17 * 71 AS col1, + 34
----
-1017
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3166
SELECT CAST( + - 37 AS SIGNED ) * - CASE 82 WHEN - 88 THEN NULL WHEN + COUNT( * ) * + + 42 THEN NULL ELSE - 24 END + - + 38 - + 75 AS col1
----
-1001

skipif mysql # not compatible
query I rowsort label-3166
SELECT CAST ( + - 37 AS INTEGER ) * - CASE 82 WHEN - 88 THEN NULL WHEN + COUNT ( * ) * + + 42 THEN NULL ELSE - 24 END + - + 38 - + 75 AS col1
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT - ( 99 ) * - - COUNT( * ) + 16
----
-83

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT - ( 99 ) * - - COUNT ( * ) + 16
----
-83

query I rowsort
SELECT DISTINCT + 14 * - 22
----
-308

query I rowsort
SELECT + 35 * 67 + - + 27
----
2318

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT DISTINCT - COUNT( ALL + - 18 ) col1, 50 AS col0
----
-1
50

skipif mysql # not compatible
query II rowsort label-3170
SELECT DISTINCT - COUNT ( ALL + - 18 ) col1, 50 AS col0
----
-1
50

query I rowsort
SELECT ALL 85 - 79
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3172
SELECT ALL 2 DIV + + 69
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL 2 / + + 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT ALL 49 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL 49 / + 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3174
SELECT 44 DIV + + 20
----
2

skipif mysql # not compatible
query I rowsort label-3174
SELECT 44 / + + 20
----
2

query I rowsort
SELECT 79 * - + 88 AS col0
----
-6952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3176
SELECT 50 - + CASE + NULLIF ( - + 73, + + 44 ) WHEN + 9 THEN - 68 * - 7 * + COUNT( * ) + + - 97 END + - - ( 48 ) * - + CAST( NULL AS SIGNED ) * + 0 + - NULLIF ( ( - CAST( NULL AS SIGNED ) ), 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT 50 - + CASE + NULLIF ( - + 73, + + 44 ) WHEN + 9 THEN - 68 * - 7 * + COUNT ( * ) + + - 97 END + - - ( 48 ) * - + CAST ( NULL AS INTEGER ) * + 0 + - NULLIF ( ( - CAST ( NULL AS INTEGER ) ), 59 )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 7 + 61 + - - 40
----
108

query I rowsort
SELECT 85 - + + 81 AS col1
----
4

query II rowsort
SELECT + 34 AS col1, - 1
----
34
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT 95 - - 58 DIV + + 84 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3182
SELECT 95 - - 58 / + + 84 AS col2
----
95

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3184
SELECT - COALESCE ( - 72, - 74 + - - 95 DIV + ( - 4 ) * + - COUNT( * ) * - 60 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3184
SELECT - COALESCE ( - 72, - 74 + - - 95 / + ( - 4 ) * + - COUNT ( * ) * - 60 ) AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3185
SELECT + COUNT( ALL 41 ) + + 34 DIV - - 1 + - - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-3185
SELECT + COUNT ( ALL 41 ) + + 34 / - - 1 + - - COUNT ( * )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT ALL - + 5 + - + COALESCE ( + COUNT( * ), + - SUM( ALL + ( - CAST( + - 77 AS SIGNED ) ) ) ) * - + 27 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - + 5 + - + COALESCE ( + COUNT ( * ), + - SUM ( ALL + ( - CAST ( + - 77 AS INTEGER ) ) ) ) * - + 27 AS col2
----
22

query I rowsort
SELECT - 67 - - 85 AS col2
----
18

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

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

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

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL ( - SUM ( ALL - 14 ) )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3190
SELECT ALL 84 AS col2, - CAST( NULL AS SIGNED ) * + 1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3190
SELECT ALL 84 AS col2, - CAST ( NULL AS INTEGER ) * + 1
----
84
NULL

query I rowsort
SELECT - - 48 * - + 94 * - - 51
----
-230112

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

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

query I rowsort
SELECT ALL + CASE WHEN NOT 38 = NULL THEN + 62 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - + 73 + - 30 AS col2
----
-103

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

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

query I rowsort
SELECT - 0 * - 61 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT - + CAST( NULL AS SIGNED ) + + + 38 + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3197
SELECT - + CAST ( NULL AS INTEGER ) + + + 38 + + 92
----
NULL

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

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

query II rowsort
SELECT ALL 36 AS col1, 50
----
36
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT + - CASE + 28 WHEN - + 56 THEN NULL WHEN COUNT( * ) * + 67 THEN + COUNT( * ) END - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT + - CASE + 28 WHEN - + 56 THEN NULL WHEN COUNT ( * ) * + 67 THEN + COUNT ( * ) END - - 4
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3202
SELECT ALL + 65 AS col2, - 93 * + 14 + + 94 * - - 81 * CAST( NULL AS SIGNED ) col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-3202
SELECT ALL + 65 AS col2, - 93 * + 14 + + 94 * - - 81 * CAST ( NULL AS INTEGER ) col0
----
65
NULL

query I rowsort
SELECT - - 46 * - 10 AS col1
----
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL + MAX( ALL - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL + MAX ( ALL - 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL 61 * COUNT( DISTINCT - - 56 )
----
61

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL 61 * COUNT ( DISTINCT - - 56 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL + NULLIF ( 24, COUNT( 39 ) - - 37 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + NULLIF ( 24, COUNT ( 39 ) - - 37 ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT + 53 DIV 21 + + 46
----
48

skipif mysql # not compatible
query I rowsort label-3207
SELECT + 53 / 21 + + 46
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT + 37 DIV 25 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3208
SELECT + 37 / 25 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3209
SELECT ALL COUNT( * ) * + MIN( DISTINCT + - 24 ) + - 15 * COUNT( * ) DIV 12
----
-25

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL COUNT ( * ) * + MIN ( DISTINCT + - 24 ) + - 15 * COUNT ( * ) / 12
----
-25

query II rowsort
SELECT - 49 + - 82 * + - ( 3 ) col0, - 26 AS col1
----
197
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-3211
SELECT COALESCE ( - 0, + + 48 ) DIV ( - + 38 ) - - + ( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-3211
SELECT COALESCE ( - 0, + + 48 ) / ( - + 38 ) - - + ( + 56 )
----
56

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

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT 60 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 65 * - 29 + + - 90 * + 93
----
-10255

onlyif mysql # DIV for integer division: 
query II rowsort label-3214
SELECT ALL 90 * - - 11 + - 28 + - + 28 DIV - ( - 44 ), - 24 AS col2
----
962
-24

skipif mysql # not compatible
query II rowsort label-3214
SELECT ALL 90 * - - 11 + - 28 + - + 28 / - ( - 44 ), - 24 AS col2
----
962
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3215
SELECT + COALESCE ( + + 49, - 80 DIV COALESCE ( + 63, 58 + COUNT( * ) DIV - 53, 86 ) )
----
49

skipif mysql # not compatible
query I rowsort label-3215
SELECT + COALESCE ( + + 49, - 80 / COALESCE ( + 63, 58 + COUNT ( * ) / - 53, 86 ) )
----
49

query I rowsort
SELECT ALL 83 * - + 25 + + + 6 col2
----
-2069

query I rowsort
SELECT ALL + 61 * + 60 + - 94 col0
----
3566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT + CAST( - 87 AS SIGNED ) + + 41
----
-46

skipif mysql # not compatible
query I rowsort label-3218
SELECT + CAST ( - 87 AS INTEGER ) + + 41
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL 27 * - + MIN( + 43 ) + + 0
----
-1161

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL 27 * - + MIN ( + 43 ) + + 0
----
-1161

onlyif mysql # DIV for integer division: 
query II rowsort label-3220
SELECT ALL + 33 col0, 30 DIV 36 AS col2
----
33
0

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL + 33 col0, 30 / 36 AS col2
----
33
0

query I rowsort
SELECT + 71 + 37 col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT + 83 * - CASE WHEN NOT 54 IS NOT NULL THEN - 62 + - 94 + + 61 - + 78 * 45 / 35 * - COUNT( * ) * - - 45 * 1 ELSE + - 76 + 97 * - + CAST( NULL AS SIGNED ) + 82 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT + 83 * - CASE WHEN NOT 54 IS NOT NULL THEN - 62 + - 94 + + 61 - + 78 * 45 / 35 * - COUNT ( * ) * - - 45 * 1 ELSE + - 76 + 97 * - + CAST ( NULL AS INTEGER ) + 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT ALL COALESCE ( + + 26, NULLIF ( - 8, 3 / + 77 ) ) * + 47 - - MIN( DISTINCT - 92 ) * 96 - + 34 + + NULLIF ( - 19, - NULLIF ( + NULLIF ( - AVG ( ( 13 ) ), 99 ), - COALESCE ( - 40, + 15 * - 73 + + 76 * 73, 43 ) ) * SUM( ALL 31 ) ) AS col2
----
-7663

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL COALESCE ( + + 26, NULLIF ( - 8, 3 / + 77 ) ) * + 47 - - MIN ( DISTINCT - 92 ) * 96 - + 34 + + NULLIF ( - 19, - NULLIF ( + NULLIF ( - AVG ( ( 13 ) ), 99 ), - COALESCE ( - 40, + 15 * - 73 + + 76 * 73, 43 ) ) * SUM ( ALL 31 ) ) AS col2
----
-7663

query I rowsort
SELECT ALL 12 * 77 * - 77 AS col0
----
-71148

onlyif mysql # DIV for integer division: 
query I rowsort label-3225
SELECT + - 43 DIV + 95 * - 34 + - 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3225
SELECT + - 43 / + 95 * - 34 + - 27 AS col2
----
-27

query I rowsort
SELECT ALL + 32 * + 64
----
2048

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT ALL - COALESCE ( - - 92, - - COALESCE ( 90, + - 49 * - + 68 * - - 25 + 60 * 33 * 3, + 7 ) DIV + - 52 + - + 36 + + - 47 )
----
-92

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL - COALESCE ( - - 92, - - COALESCE ( 90, + - 49 * - + 68 * - - 25 + 60 * 33 * 3, + 7 ) / + - 52 + - + 36 + + - 47 )
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-3228
SELECT DISTINCT + NULLIF ( + - 87, 9 + + 52 + + 76 * - - COUNT( * ) ) - 79 * - 84 * - - 10, 33 * 19 + 98 AS col0
----
66273
725

skipif mysql # not compatible
query II rowsort label-3228
SELECT DISTINCT + NULLIF ( + - 87, 9 + + 52 + + 76 * - - COUNT ( * ) ) - 79 * - 84 * - - 10, 33 * 19 + 98 AS col0
----
66273
725

onlyif mysql # aggregate syntax: 
query II rowsort label-3229
SELECT 19 AS col0, ( + COUNT( * ) ) * - 1 AS col1
----
19
-1

skipif mysql # not compatible
query II rowsort label-3229
SELECT 19 AS col0, ( + COUNT ( * ) ) * - 1 AS col1
----
19
-1

query II rowsort
SELECT DISTINCT 8 AS col0, 65
----
8
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3231
SELECT + + COALESCE ( + 4, - - CAST( NULL AS SIGNED ) ) - + ( 22 )
----
-18

skipif mysql # not compatible
query I rowsort label-3231
SELECT + + COALESCE ( + 4, - - CAST ( NULL AS INTEGER ) ) - + ( 22 )
----
-18

query I rowsort
SELECT - + ( + - 24 ) * + - 67
----
-1608

query I rowsort
SELECT ALL COALESCE ( + - 20, - 11 * - + 73 )
----
-20

query I rowsort
SELECT - + 75 * + + 94 col1
----
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL - - COUNT( * ) * - 63 * + 64 + - - ( + 79 ) AS col1
----
-3953

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL - - COUNT ( * ) * - 63 * + 64 + - - ( + 79 ) AS col1
----
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT - ( + CASE 42 WHEN + ( + ( 76 ) ) THEN NULL WHEN + - 31 THEN COUNT( * ) * 26 + + - 47 + - 14 END ) - 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT - ( + CASE 42 WHEN + ( + ( 76 ) ) THEN NULL WHEN + - 31 THEN COUNT ( * ) * 26 + + - 47 + - 14 END ) - 98 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL - CAST( NULL AS SIGNED ) * ( + + COUNT( * ) ) / + CAST( 66 AS SIGNED ) * + - 27 * + CAST( NULL AS SIGNED ) * + CASE + + 13 WHEN 41 * + - ( - COUNT( * ) ) + - 50 + 11 / NULLIF ( - CASE 43 WHEN - 9 THEN 36 WHEN + 82 THEN NULL END, 30 ) - 83 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + + COUNT ( * ) ) / + CAST ( 66 AS INTEGER ) * + - 27 * + CAST ( NULL AS INTEGER ) * + CASE + + 13 WHEN 41 * + - ( - COUNT ( * ) ) + - 50 + 11 / NULLIF ( - CASE 43 WHEN - 9 THEN 36 WHEN + 82 THEN NULL END, 30 ) - 83 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3238
SELECT DISTINCT ( - 23 ) AS col2, - CAST( NULL AS SIGNED ) * - 91 * 77 AS col2
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-3238
SELECT DISTINCT ( - 23 ) AS col2, - CAST ( NULL AS INTEGER ) * - 91 * 77 AS col2
----
-23
NULL

query I rowsort
SELECT DISTINCT + 84 * + ( - 60 ) * 75
----
-378000

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3240
SELECT ALL 67 / + 27 + + 71 + - 20 + COALESCE ( 98, - 21 + 13 ) * 35 + CAST( NULL AS SIGNED ) * + - 37 + - 12 AS col2, 35 AS col2
----
NULL
35

skipif mysql # not compatible
query II rowsort label-3240
SELECT ALL 67 / + 27 + + 71 + - 20 + COALESCE ( 98, - 21 + 13 ) * 35 + CAST ( NULL AS INTEGER ) * + - 37 + - 12 AS col2, 35 AS col2
----
NULL
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT ALL 36 DIV - - ( + - 71 ) + + - MIN( DISTINCT - 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL 36 / - - ( + - 71 ) + + - MIN ( DISTINCT - 95 ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3242
SELECT + CASE - + CAST( NULL AS DECIMAL ) WHEN + 41 + - 46 + + + 26 THEN - NULLIF ( - 78, - 65 + + COALESCE ( + 94, + COUNT( * ) + 78 * - 10, - 69 ) - - 45 / - 53 ) WHEN + 57 THEN - 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT + CASE - + CAST ( NULL AS REAL ) WHEN + 41 + - 46 + + + 26 THEN - NULLIF ( - 78, - 65 + + COALESCE ( + 94, + COUNT ( * ) + 78 * - 10, - 69 ) - - 45 / - 53 ) WHEN + 57 THEN - 82 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3243
SELECT - COUNT ( * ) / COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT - 8 + + 26 * + 89 * - ( 19 ) + 17 + - CASE - + 16 WHEN + 29 / - NULLIF ( + - 56, + + 92 + - 3 ) * 97 + - 73 - + + 43 + - 68 * COUNT( * ) THEN NULL ELSE 55 END
----
-44012

skipif mysql # not compatible
query I rowsort label-3244
SELECT - 8 + + 26 * + 89 * - ( 19 ) + 17 + - CASE - + 16 WHEN + 29 / - NULLIF ( + - 56, + + 92 + - 3 ) * 97 + - 73 - + + 43 + - 68 * COUNT ( * ) THEN NULL ELSE 55 END
----
-44012

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT + COALESCE ( - 51, 54 + - COUNT( * ), 74 )
----
-51

skipif mysql # not compatible
query I rowsort label-3245
SELECT + COALESCE ( - 51, 54 + - COUNT ( * ), 74 )
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT ALL - 66 DIV - 50 + + 38 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL - 66 / - 50 + + 38 AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3247
SELECT DISTINCT + NULLIF ( + + COUNT( * ), 98 ) AS col1, + 52 AS col1
----
1
52

skipif mysql # not compatible
query II rowsort label-3247
SELECT DISTINCT + NULLIF ( + + COUNT ( * ), 98 ) AS col1, + 52 AS col1
----
1
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT ALL + 17 DIV 38 + + 42
----
42

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + 17 / 38 + + 42
----
42

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT ALL 54 DIV + NULLIF ( - 4, + 81 ) + - 51
----
-64

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL 54 / + NULLIF ( - 4, + 81 ) + - 51
----
-64

query I rowsort
SELECT DISTINCT 7 * + - 2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3252
SELECT - ( CAST( - - 58 AS SIGNED ) ) - + 28 + + COUNT( DISTINCT + + 32 ) + + 65 + - - 0 - - + 97 + - 78 * - + 76
----
6005

skipif mysql # not compatible
query I rowsort label-3252
SELECT - ( CAST ( - - 58 AS INTEGER ) ) - + 28 + + COUNT ( DISTINCT + + 32 ) + + 65 + - - 0 - - + 97 + - 78 * - + 76
----
6005

query I rowsort
SELECT 20 * + ( - - 58 )
----
1160

query II rowsort
SELECT DISTINCT 88 - 23, - 29 AS col1
----
65
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3255
SELECT ALL COUNT( * ) * 90 AS col1, - 8 col0
----
90
-8

skipif mysql # not compatible
query II rowsort label-3255
SELECT ALL COUNT ( * ) * 90 AS col1, - 8 col0
----
90
-8

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

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

query I rowsort
SELECT - 7 * - 19 + - 46
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3258
SELECT - COUNT( * ) - 25 AS col2, - CAST( - 57 AS SIGNED )
----
-26
57

skipif mysql # not compatible
query II rowsort label-3258
SELECT - COUNT ( * ) - 25 AS col2, - CAST ( - 57 AS INTEGER )
----
-26
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3259
SELECT ALL - 20 DIV COUNT( * ) * COUNT( * ) * CASE - 73 WHEN + CAST( + 19 AS SIGNED ) THEN COALESCE ( + ( 12 ), + ( SUM( DISTINCT - + 95 ) ), COUNT( * ), - - 29 ) ELSE - 9 END
----
180

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL - 20 / COUNT ( * ) * COUNT ( * ) * CASE - 73 WHEN + CAST ( + 19 AS INTEGER ) THEN COALESCE ( + ( 12 ), + ( SUM ( DISTINCT - + 95 ) ), COUNT ( * ), - - 29 ) ELSE - 9 END
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3260
SELECT 46 + + + COUNT( * ) * - 62 + 51 DIV - 53 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3260
SELECT 46 + + + COUNT ( * ) * - 62 + 51 / - 53 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT SUM( 45 ) * 39
----
1755

skipif mysql # not compatible
query I rowsort label-3261
SELECT SUM ( 45 ) * 39
----
1755

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - ( - + COALESCE ( + - NULLIF ( - 18, + + 63 ), - 70 + ( + MAX( ALL + 54 ) ) ) ) * - + 31 AS col0
----
-558

skipif mysql # not compatible
query I rowsort label-3262
SELECT - ( - + COALESCE ( + - NULLIF ( - 18, + + 63 ), - 70 + ( + MAX ( ALL + 54 ) ) ) ) * - + 31 AS col0
----
-558

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT ALL + 76 DIV - 16
----
-4

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL + 76 / - 16
----
-4

query I rowsort
SELECT + 82 + - 9
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT 66 DIV + + COALESCE ( - + 70, + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT 66 / + + COALESCE ( - + 70, + 53 )
----
0

query I rowsort
SELECT - COALESCE ( + - 88, - + 92 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3267
SELECT + 65 - + + 64 * + - 34 * - CAST( NULL AS SIGNED ) * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT + 65 - + + 64 * + - 34 * - CAST ( NULL AS INTEGER ) * 86
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT ALL 79 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3268
SELECT ALL 79 / 87 AS col2
----
0

query I rowsort
SELECT DISTINCT - 52 * - + 72 AS col1
----
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT + COUNT( * ) + + 85 * ( - 49 )
----
-4164

skipif mysql # not compatible
query I rowsort label-3270
SELECT + COUNT ( * ) + + 85 * ( - 49 )
----
-4164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3271
SELECT ALL + CAST( - + 65 AS SIGNED ) + - - COUNT( * ) * - - CAST( + 70 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL + CAST ( - + 65 AS INTEGER ) + - - COUNT ( * ) * - - CAST ( + 70 AS INTEGER ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3272
SELECT 38 + + + CASE + - CASE - 34 WHEN + CASE + 40 WHEN + + 49 / 43 + + 56 THEN + CASE WHEN NOT ( NULLIF ( + 31, + 76 ) ) NOT IN ( + 64 ) THEN NULL ELSE - COUNT( * ) END + 18 + 33 * - 77 ELSE NULL END * + COUNT( * ) - 46 THEN NULL WHEN 4 / 48 THEN NULL WHEN - 72 THEN 54 * + CAST( NULL AS SIGNED ) - AVG ( ALL 42 ) ELSE NULL END WHEN - 82 THEN NULL WHEN - COUNT( 90 ) THEN NULL WHEN 68 THEN COUNT( * ) / - 74 + + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3272
SELECT 38 + + + CASE + - CASE - 34 WHEN + CASE + 40 WHEN + + 49 / 43 + + 56 THEN + CASE WHEN NOT ( NULLIF ( + 31, + 76 ) ) NOT IN ( + 64 ) THEN NULL ELSE - COUNT ( * ) END + 18 + 33 * - 77 ELSE NULL END * + COUNT ( * ) - 46 THEN NULL WHEN 4 / 48 THEN NULL WHEN - 72 THEN 54 * + CAST ( NULL AS INTEGER ) - AVG ( ALL 42 ) ELSE NULL END WHEN - 82 THEN NULL WHEN - COUNT ( 90 ) THEN NULL WHEN 68 THEN COUNT ( * ) / - 74 + + 18 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT - COUNT( ALL + 60 ) * 30 * + 40 col0
----
-1200

skipif mysql # not compatible
query I rowsort label-3274
SELECT - COUNT ( ALL + 60 ) * 30 * + 40 col0
----
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT MIN( DISTINCT - - 88 ) + + ( - 23 ) * CAST( NULL AS SIGNED ) * - ( - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT MIN ( DISTINCT - - 88 ) + + ( - 23 ) * CAST ( NULL AS INTEGER ) * - ( - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT 81 AS col0, ( + 68 ) * - ( - - 52 ) * + 10 + COUNT( * ) + - ( - - 51 ) + + 72 + 53 + 80 + 32 AS col1
----
81
-35173

skipif mysql # not compatible
query II rowsort label-3276
SELECT 81 AS col0, ( + 68 ) * - ( - - 52 ) * + 10 + COUNT ( * ) + - ( - - 51 ) + + 72 + 53 + 80 + 32 AS col1
----
81
-35173

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3277
SELECT 16 AS col2, - 2 + - COALESCE ( - + 71, SUM( DISTINCT - 85 ), + 53 + - 50 + + 39 - + 5 DIV - + 14 DIV 71 )
----
16
69

skipif mysql # not compatible
query II rowsort label-3277
SELECT 16 AS col2, - 2 + - COALESCE ( - + 71, SUM ( DISTINCT - 85 ), + 53 + - 50 + + 39 - + 5 / - + 14 / 71 )
----
16
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT - 56 AS col0, 40 + + + COUNT( * ) - - 15
----
-56
56

skipif mysql # not compatible
query II rowsort label-3278
SELECT - 56 AS col0, 40 + + + COUNT ( * ) - - 15
----
-56
56

query I rowsort
SELECT ALL 31 + - 36 AS col2
----
-5

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

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

query I rowsort
SELECT DISTINCT + 53 * - 22
----
-1166

query I rowsort
SELECT ALL - 99 + 89
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3283
SELECT ALL + COUNT( * ) + 53 + - 64 + - COUNT( * ) - - 1 * + - 70 + - 66 + + 32 - - 62 * + 37 * - 92 * COALESCE ( + + 59, + - 20 DIV + 13 + 17 ) * 30
----
-373555075

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + COUNT ( * ) + 53 + - 64 + - COUNT ( * ) - - 1 * + - 70 + - 66 + + 32 - - 62 * + 37 * - 92 * COALESCE ( + + 59, + - 20 / + 13 + 17 ) * 30
----
-373555075

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT 89 * - + COUNT( * ) * + - 31
----
2759

skipif mysql # not compatible
query I rowsort label-3284
SELECT 89 * - + COUNT ( * ) * + - 31
----
2759

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT ALL 84 DIV - - 72
----
1

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL 84 / - - 72
----
1

query I rowsort
SELECT DISTINCT + 26 * - + 43 col1
----
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT + 54 * COALESCE ( 12, + - COUNT( * ) + - 43 ) AS col1
----
648

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT + 54 * COALESCE ( 12, + - COUNT ( * ) + - 43 ) AS col1
----
648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT ALL - COUNT( CASE WHEN - 7 <= NULL THEN 37 ELSE NULL END ) - - - CAST( NULL AS SIGNED ) * COUNT( * ) * + + 59 * - + COALESCE ( + 7, + 93 * + 72 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - COUNT ( CASE WHEN - 7 <= NULL THEN 37 ELSE NULL END ) - - - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + + 59 * - + COALESCE ( + 7, + 93 * + 72 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3289
SELECT + 77, - CASE + 78 WHEN + 80 THEN + 67 + + + 67 * + 12 WHEN + SUM( ALL - 8 ) THEN NULL ELSE + + 64 * 98 * 65 + + + 84 + - - 4 DIV 11 * - 95 END DIV 29 AS col2
----
77
-14060

skipif mysql # not compatible
query II rowsort label-3289
SELECT + 77, - CASE + 78 WHEN + 80 THEN + 67 + + + 67 * + 12 WHEN + SUM ( ALL - 8 ) THEN NULL ELSE + + 64 * 98 * 65 + + + 84 + - - 4 / 11 * - 95 END / 29 AS col2
----
77
-14060

query I rowsort
SELECT 85 + - 50 + 48 * - 89 AS col2
----
-4237

query I rowsort
SELECT DISTINCT - ( + - 68 ) col1
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3292
SELECT 0 DIV - CAST( - - 5 AS SIGNED ) - + 87
----
-87

skipif mysql # not compatible
query I rowsort label-3292
SELECT 0 / - CAST ( - - 5 AS INTEGER ) - + 87
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL - CAST( - 14 AS SIGNED )
----
14

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - CAST ( - 14 AS INTEGER )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT - 18 * - 53 + + 78 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3294
SELECT - 18 * - 53 + + 78 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 33, + 35 ) col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3296
SELECT DISTINCT - COUNT( + 42 ) - 67 AS col2, - 41 * - 39
----
-68
1599

skipif mysql # not compatible
query II rowsort label-3296
SELECT DISTINCT - COUNT ( + 42 ) - 67 AS col2, - 41 * - 39
----
-68
1599

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT ALL - COUNT( * ), SUM( ALL - 97 ) + + COUNT( * ) AS col2
----
-1
-96

skipif mysql # not compatible
query II rowsort label-3297
SELECT ALL - COUNT ( * ), SUM ( ALL - 97 ) + + COUNT ( * ) AS col2
----
-1
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT + SUM( ALL + 93 ) * - 21 + + + 38 * - CAST( NULL AS SIGNED ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT + SUM ( ALL + 93 ) * - 21 + + + 38 * - CAST ( NULL AS INTEGER ) + + 26
----
NULL

query I rowsort
SELECT 12 + + 17
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT + - NULLIF ( - COUNT( * ), + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3301
SELECT + - NULLIF ( - COUNT ( * ), + - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT + COALESCE ( - NULLIF ( + - 39, + + 15 ), 57 * 67 ) + + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3302
SELECT + COALESCE ( - NULLIF ( + - 39, + + 15 ), 57 * 67 ) + + + COUNT ( * )
----
40

query II rowsort
SELECT + - 45 col1, + 91 + - + 94 col2
----
-45
-3

query II rowsort
SELECT 67, + 49 AS col2
----
67
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT 11 * + ( + + 12 ) + - - 24 DIV 70 + + 17 + + 92
----
241

skipif mysql # not compatible
query I rowsort label-3305
SELECT 11 * + ( + + 12 ) + - - 24 / 70 + + 17 + + 92
----
241

query II rowsort
SELECT 5 col0, 60 AS col2
----
5
60

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3308
SELECT + - 77 * - 23 + - + 59 + - 64 AS col1, 49 DIV - - COUNT( + + 80 )
----
1648
49

skipif mysql # not compatible
query II rowsort label-3308
SELECT + - 77 * - 23 + - + 59 + - 64 AS col1, 49 / - - COUNT ( + + 80 )
----
1648
49

query I rowsort
SELECT ALL 19 * - 55 col1
----
-1045

query II rowsort
SELECT - - 84 AS col0, 72 AS col2
----
84
72

query I rowsort
SELECT 30 * + 80 col2
----
2400

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT - 38 + - 47 * + + 88 - + 99 DIV - - 52
----
-4175

skipif mysql # not compatible
query I rowsort label-3312
SELECT - 38 + - 47 * + + 88 - + 99 / - - 52
----
-4175

query II rowsort
SELECT ALL + 4 + + 31 + - - 14 - + 8 AS col0, + 65 * 31 * - + 28 col1
----
41
-56420

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

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

query II rowsort
SELECT + 83 AS col0, 34
----
83
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT ALL - 29 + 5 + + + 12 + 78 DIV - 5 + + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - 29 + 5 + + + 12 + 78 / - 5 + + + COUNT ( * )
----
-26

query I rowsort
SELECT - 96 - 64 AS col2
----
-160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3318
SELECT 60 * + 71, 1 + - 15 + + 9 + - MIN( ALL - + 77 ) * - + 48 * CAST( - 93 AS SIGNED ) AS col0
----
4260
343723

skipif mysql # not compatible
query II rowsort label-3318
SELECT 60 * + 71, 1 + - 15 + + 9 + - MIN ( ALL - + 77 ) * - + 48 * CAST ( - 93 AS INTEGER ) AS col0
----
4260
343723

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT COUNT( + - 30 ) * + 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-3319
SELECT COUNT ( + - 30 ) * + 82 AS col0
----
82

query I rowsort
SELECT ALL 90 + 87 AS col0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT DISTINCT 49 DIV + - 82
----
0

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT 49 / + - 82
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3322
SELECT ALL 14 + - CAST( NULL AS DECIMAL ) * + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL 14 + - CAST ( NULL AS REAL ) * + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL 72 + - COUNT( * ) - - + 89 + + 59 col1
----
219

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL 72 + - COUNT ( * ) - - + 89 + + 59 col1
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT DISTINCT COUNT( * ) * - - 98 col1
----
98

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT COUNT ( * ) * - - 98 col1
----
98

query I rowsort
SELECT DISTINCT 43 * - - 58 AS col2
----
2494

onlyif mysql # DIV for integer division: 
query II rowsort label-3326
SELECT ALL 78 * - 25, 85 DIV - 41 - + 29 AS col0
----
-1950
-31

skipif mysql # not compatible
query II rowsort label-3326
SELECT ALL 78 * - 25, 85 / - 41 - + 29 AS col0
----
-1950
-31

query I rowsort
SELECT ALL 37 - 40 + - - 18 + 11
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT NULLIF ( + + COUNT( * ), + 67 + + + 26 / + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-3328
SELECT NULLIF ( + + COUNT ( * ), + 67 + + + 26 / + 51 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3329
SELECT + ( - 63 ) * 90 - 23 - 6 * + - 15 DIV - + COUNT( * ) AS col0
----
-5783

skipif mysql # not compatible
query I rowsort label-3329
SELECT + ( - 63 ) * 90 - 23 - 6 * + - 15 / - + COUNT ( * ) AS col0
----
-5783

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT - 24 * - NULLIF ( - + 1, + 8 ) * - SUM( - 1 )
----
-24

skipif mysql # not compatible
query I rowsort label-3330
SELECT - 24 * - NULLIF ( - + 1, + 8 ) * - SUM ( - 1 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL + MAX( 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL + MAX ( 45 ) AS col2
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - MAX( ALL - 95 ) * + 90 + + 82
----
8632

skipif mysql # not compatible
query I rowsort label-3333
SELECT - MAX ( ALL - 95 ) * + 90 + + 82
----
8632

query I rowsort
SELECT + 88 * + 8 * + 32
----
22528

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

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

query I rowsort
SELECT DISTINCT + 96 * 45 AS col2
----
4320

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT ( - 27 ) DIV - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT ( - 27 ) / - 46 AS col2
----
0

query I rowsort
SELECT + - 20 * + - 42
----
840

query I rowsort
SELECT - 98 * - 48 AS col2
----
4704

query I rowsort
SELECT ALL + + 54 * + + 30 AS col0
----
1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT - + 87 * + - CAST( 89 AS SIGNED ) - COUNT( * )
----
7742

skipif mysql # not compatible
query I rowsort label-3341
SELECT - + 87 * + - CAST ( 89 AS INTEGER ) - COUNT ( * )
----
7742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT DISTINCT + NULLIF ( - + COUNT( * ), + 42 ) * - CAST( - + COALESCE ( - ( 28 ), - MIN( DISTINCT 82 ) ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT + NULLIF ( - + COUNT ( * ), + 42 ) * - CAST ( - + COALESCE ( - ( 28 ), - MIN ( DISTINCT 82 ) ) AS INTEGER )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3343
SELECT - COUNT( DISTINCT NULLIF ( + - 26, 38 ) ) * - 33 + + + COUNT( * ) DIV - 15 + - 81 + - 32
----
-80

skipif mysql # not compatible
query I rowsort label-3343
SELECT - COUNT ( DISTINCT NULLIF ( + - 26, 38 ) ) * - 33 + + + COUNT ( * ) / - 15 + - 81 + - 32
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT 28 * - + 4 + - + 88 + - + 23 * - MAX( - - 71 ) + - 43 - + 78 + + 18 * 92 * 97 AS col1
----
161944

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT 28 * - + 4 + - + 88 + - + 23 * - MAX ( - - 71 ) + - 43 - + 78 + + 18 * 92 * 97 AS col1
----
161944

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3346
SELECT ALL - CAST( + + ( - 28 ) AS SIGNED ) * - - 11 + - ( - - 62 ) AS col2
----
246

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL - CAST ( + + ( - 28 ) AS INTEGER ) * - - 11 + - ( - - 62 ) AS col2
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL + ( + + 7 ) + + 70 - - COUNT( ALL + ( - - 89 ) ) * 62 col1
----
139

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + ( + + 7 ) + + 70 - - COUNT ( ALL + ( - - 89 ) ) * 62 col1
----
139

query I rowsort
SELECT DISTINCT - 66 + - 15 + 42 AS col2
----
-39

query I rowsort
SELECT ALL - ( - 67 ) + - 34
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3350
SELECT - COUNT( * ) * - - 38 * 45 + 34 AS col2, 12 * + 44 AS col0
----
-1676
528

skipif mysql # not compatible
query II rowsort label-3350
SELECT - COUNT ( * ) * - - 38 * 45 + 34 AS col2, 12 * + 44 AS col0
----
-1676
528

query I rowsort
SELECT ALL + 41 * - - 56 * - 5
----
-11480

query I rowsort
SELECT ALL - 83 + - 67
----
-150

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT + 63 - + + 78 DIV - 71
----
64

skipif mysql # not compatible
query I rowsort label-3354
SELECT + 63 - + + 78 / - 71
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) / 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) / 51 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT ALL 73 - - - 37 * - + MIN( ALL 0 ) * + 24 + + 17 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL 73 - - - 37 * - + MIN ( ALL 0 ) * + 24 + + 17 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT - 66 * CASE 35 WHEN + MIN( + - 71 ) + 44 THEN - COUNT( * ) END * - COUNT( * ) / COUNT( * ) - + MIN( + + NULLIF ( + - ( + 93 ), - 34 ) ) + - COUNT( * ) + + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT - 66 * CASE 35 WHEN + MIN ( + - 71 ) + 44 THEN - COUNT ( * ) END * - COUNT ( * ) / COUNT ( * ) - + MIN ( + + NULLIF ( + - ( + 93 ), - 34 ) ) + - COUNT ( * ) + + 36 AS col0
----
NULL

query I rowsort
SELECT ALL 37 - + - 3
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT - CASE + 75 WHEN 57 THEN 23 WHEN - COALESCE ( + ( + 82 ), - + 71 ) * - NULLIF ( - ( - 98 ), NULLIF ( + NULLIF ( + COUNT( DISTINCT - + 75 ), COUNT( * ) + - - NULLIF ( + 5, + 81 ) * - 37 ), - 89 ) * - MAX( 99 ) ) * 16 + + 0 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT - CASE + 75 WHEN 57 THEN 23 WHEN - COALESCE ( + ( + 82 ), - + 71 ) * - NULLIF ( - ( - 98 ), NULLIF ( + NULLIF ( + COUNT ( DISTINCT - + 75 ), COUNT ( * ) + - - NULLIF ( + 5, + 81 ) * - 37 ), - 89 ) * - MAX ( 99 ) ) * 16 + + 0 THEN NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT - 19 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-3360
SELECT - 19 / - 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3361
SELECT + 25 * + COUNT( * ) DIV - COALESCE ( + - COUNT( * ), + + COUNT( * ), + - 17 * - 20 * + + COUNT( + 10 ) + 65, - 59 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3361
SELECT + 25 * + COUNT ( * ) / - COALESCE ( + - COUNT ( * ), + + COUNT ( * ), + - 17 * - 20 * + + COUNT ( + 10 ) + 65, - 59 ) AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3362
SELECT ALL 30 DIV - 11 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL 30 / - 11 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3363
SELECT - 36 + 94 + - 1 * ( 22 ) + + 12 + + - CASE - - 23 WHEN CAST( NULL AS SIGNED ) * - 97 THEN + SUM( DISTINCT 52 ) * - NULLIF ( + 86, + 27 ) / - CASE - COUNT( * ) WHEN COUNT( * ) THEN - 66 WHEN - 39 THEN NULL WHEN + AVG ( ALL + 74 ) - 9 THEN NULL END / 40 - + 75 / 86 END * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT - 36 + 94 + - 1 * ( 22 ) + + 12 + + - CASE - - 23 WHEN CAST ( NULL AS INTEGER ) * - 97 THEN + SUM ( DISTINCT 52 ) * - NULLIF ( + 86, + 27 ) / - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - 66 WHEN - 39 THEN NULL WHEN + AVG ( ALL + 74 ) - 9 THEN NULL END / 40 - + 75 / 86 END * - 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - COUNT( ALL - 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-3364
SELECT - COUNT ( ALL - 64 )
----
-1

query I rowsort
SELECT DISTINCT ( + + 13 ) * - 64
----
-832

query I rowsort
SELECT ALL 83 * + ( - 12 ) AS col1
----
-996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3367
SELECT + 89 DIV COUNT( * ) * 67
----
5963

skipif mysql # not compatible
query I rowsort label-3367
SELECT + 89 / COUNT ( * ) * 67
----
5963

onlyif mysql # DIV for integer division: 
query I rowsort label-3368
SELECT ALL 95 DIV 38 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL 95 / 38 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3369
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * + - MAX( DISTINCT - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + - MAX ( DISTINCT - 36 )
----
36

query I rowsort
SELECT + 65 * + 90 AS col2
----
5850

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

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

query I rowsort
SELECT + 82 + - ( - + 74 ) AS col2
----
156

query I rowsort
SELECT ALL ( - ( 93 ) ) * - 19
----
1767

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT 10 * ( - 16 ) * - - ( - + 81 ) + + 83 * + 51 * + 57 * COUNT( * ) AS col0
----
254241

skipif mysql # not compatible
query I rowsort label-3374
SELECT 10 * ( - 16 ) * - - ( - + 81 ) + + 83 * + 51 * + 57 * COUNT ( * ) AS col0
----
254241

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + 95 * - + MIN( + 62 )
----
-5890

skipif mysql # not compatible
query I rowsort label-3376
SELECT + 95 * - + MIN ( + 62 )
----
-5890

query I rowsort
SELECT + + 58 + - - 3
----
61

query I rowsort
SELECT + - 76 * - 85 - + 35 AS col1
----
6425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT - - 26 * - - CAST( NULL AS SIGNED ) * ( 79 ) * - 46 + 49 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT - - 26 * - - CAST ( NULL AS INTEGER ) * ( 79 ) * - 46 + 49 col1
----
NULL

query I rowsort
SELECT + + 8 * - 80 AS col1
----
-640

query I rowsort
SELECT ALL + 54 * - + 72 + - 44 - + ( + 98 ) AS col1
----
-4030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3382
SELECT + + 40 * - 18 + + + CAST( - COUNT( - 6 ) AS SIGNED ) - + 16 DIV - 79
----
-721

skipif mysql # not compatible
query I rowsort label-3382
SELECT + + 40 * - 18 + + + CAST ( - COUNT ( - 6 ) AS INTEGER ) - + 16 / - 79
----
-721

query II rowsort
SELECT + 77, 54 * + - 34 AS col2
----
77
-1836

query I rowsort
SELECT ALL 51 * + ( + ( 60 ) ) + 7 * - 2 - + 47 AS col1
----
2999

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT - 98 + - 75 + + 64 + + COUNT( * ) - - MIN( ALL 9 ) * 12 * - 81
----
-8856

skipif mysql # not compatible
query I rowsort label-3385
SELECT - 98 + - 75 + + 64 + + COUNT ( * ) - - MIN ( ALL 9 ) * 12 * - 81
----
-8856

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT 93 * - ( 1 ) + + 95 * - - 97 + - MAX( DISTINCT - + 1 ) * 16 * 19 * + + 68 - + COUNT( * )
----
29793

skipif mysql # not compatible
query I rowsort label-3386
SELECT 93 * - ( 1 ) + + 95 * - - 97 + - MAX ( DISTINCT - + 1 ) * 16 * 19 * + + 68 - + COUNT ( * )
----
29793

query I rowsort
SELECT - - 76 * 21 * 98
----
156408

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT ALL + NULLIF ( 82, - + 4 ) AS col1, 41 * + 37 + 89 + + + COUNT( * ) AS col1
----
82
1607

skipif mysql # not compatible
query II rowsort label-3388
SELECT ALL + NULLIF ( 82, - + 4 ) AS col1, 41 * + 37 + 89 + + + COUNT ( * ) AS col1
----
82
1607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT + + COALESCE ( + 16, CAST( 7 AS SIGNED ) + + 55, + - ( 62 ) ) * + 81
----
1296

skipif mysql # not compatible
query I rowsort label-3389
SELECT + + COALESCE ( + 16, CAST ( 7 AS INTEGER ) + + 55, + - ( 62 ) ) * + 81
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT - + 1 + - 14 + - COUNT( - - 2 ) + 0 * COALESCE ( 25, + - 73, - 64 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3390
SELECT - + 1 + - 14 + - COUNT ( - - 2 ) + 0 * COALESCE ( 25, + - 73, - 64 ) AS col2
----
-16

query I rowsort
SELECT DISTINCT 52 * + 31 * - 20 AS col1
----
-32240

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL NULLIF ( - + 22, + COUNT( + 49 ) + + ( - + 72 ) - 50 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL NULLIF ( - + 22, + COUNT ( + 49 ) + + ( - + 72 ) - 50 ) AS col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3393
SELECT 96 AS col2, COUNT( * ) DIV 72 * - 73 * - 35
----
96
0

skipif mysql # not compatible
query II rowsort label-3393
SELECT 96 AS col2, COUNT ( * ) / 72 * - 73 * - 35
----
96
0

query I rowsort
SELECT 5 + - 89
----
-84

query I rowsort
SELECT 79 * + ( 37 ) AS col1
----
2923

query I rowsort
SELECT 14 * + 90
----
1260

onlyif mysql # aggregate syntax: 
query II rowsort label-3397
SELECT ALL 8 AS col2, + 44 + 57 * - ( MAX( + - 47 ) ) + + 46
----
8
2769

skipif mysql # not compatible
query II rowsort label-3397
SELECT ALL 8 AS col2, + 44 + 57 * - ( MAX ( + - 47 ) ) + + 46
----
8
2769

query I rowsort
SELECT DISTINCT - 23 * + + 66 AS col1
----
-1518

query II rowsort
SELECT ALL 29 col1, 62 + 52 + 20
----
29
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3400
SELECT 29 + CASE 76 WHEN + ( + 47 ) + - 49 * + 50 THEN NULL WHEN 95 THEN NULL WHEN + 94 THEN - CASE - 62 WHEN - - 48 THEN - - 42 WHEN 25 THEN NULL END ELSE - + 20 + - 74 END * - 77 + + 59 + + - COUNT( * ) DIV - 58 * + - 63
----
7326

skipif mysql # not compatible
query I rowsort label-3400
SELECT 29 + CASE 76 WHEN + ( + 47 ) + - 49 * + 50 THEN NULL WHEN 95 THEN NULL WHEN + 94 THEN - CASE - 62 WHEN - - 48 THEN - - 42 WHEN 25 THEN NULL END ELSE - + 20 + - 74 END * - 77 + + 59 + + - COUNT ( * ) / - 58 * + - 63
----
7326

query II rowsort
SELECT ALL 83 AS col0, - 73
----
83
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-3402
SELECT 56 AS col2, - ( - + 18 ) * 55 + + - 58 DIV 39 * + - 44
----
56
1034

skipif mysql # not compatible
query II rowsort label-3402
SELECT 56 AS col2, - ( - + 18 ) * 55 + + - 58 / 39 * + - 44
----
56
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL - SUM( 65 ) + - + 47
----
-112

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL - SUM ( 65 ) + - + 47
----
-112

query I rowsort
SELECT 19 * ( + 59 )
----
1121

query II rowsort
SELECT + 24 + + 77 AS col1, 28
----
101
28

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT + CAST( 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-3407
SELECT + CAST ( 32 AS INTEGER )
----
32

query I rowsort
SELECT + - 15 * - 26 + 65
----
455

query I rowsort
SELECT DISTINCT 72 + + - 83
----
-11

query II rowsort
SELECT DISTINCT - 18, 72 AS col1
----
-18
72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3412
SELECT + + COUNT( * ) AS col2, 13 + - 20
----
1
-7

skipif mysql # not compatible
query II rowsort label-3412
SELECT + + COUNT ( * ) AS col2, 13 + - 20
----
1
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL + COUNT( 97 ) + - 64 - - 82 + + 7 * 26 - + SUM( ALL + 39 ) + - + 11 * + 93 * - - ( - 11 ) * 19
----
213969

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL + COUNT ( 97 ) + - 64 - - 82 + + 7 * 26 - + SUM ( ALL + 39 ) + - + 11 * + 93 * - - ( - 11 ) * 19
----
213969

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT COUNT( * ) - + CASE + - 5 WHEN + 92 THEN + 48 + 81 + + - 72 * 76 * - COUNT( * ) / 67 * CASE + 46 WHEN COUNT( * ) THEN + - 63 * - 52 ELSE 96 END END + + COUNT( DISTINCT 19 ) + MAX( - - 67 ) * + COUNT( ALL + 9 ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT COUNT ( * ) - + CASE + - 5 WHEN + 92 THEN + 48 + 81 + + - 72 * 76 * - COUNT ( * ) / 67 * CASE + 46 WHEN COUNT ( * ) THEN + - 63 * - 52 ELSE 96 END END + + COUNT ( DISTINCT 19 ) + MAX ( - - 67 ) * + COUNT ( ALL + 9 ) * + 88
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-3416
SELECT - NULLIF ( COUNT ( * ), + 30 + + COALESCE ( + COUNT ( * ), COUNT ( * ) ) )
----
-1

query I rowsort
SELECT 36 * 53 * + 61 + 3 AS col0
----
116391

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT - CASE - + 16 WHEN + + 97 THEN NULL WHEN - + 88 * + COUNT( * ) THEN - 77 + + COUNT( * ) * + AVG ( ALL + 19 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT - CASE - + 16 WHEN + + 97 THEN NULL WHEN - + 88 * + COUNT ( * ) THEN - 77 + + COUNT ( * ) * + AVG ( ALL + 19 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 15 - - 6
----
21

query II rowsort
SELECT + + 30 AS col0, + 12 * - 80 AS col2
----
30
-960

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

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT + ( COUNT ( * ) ) - + + 70 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT ALL - CASE 81 WHEN + CAST( + 72 AS SIGNED ) THEN - 67 ELSE - 86 * - 24 + 85 END
----
-2149

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL - CASE 81 WHEN + CAST ( + 72 AS INTEGER ) THEN - 67 ELSE - 86 * - 24 + 85 END
----
-2149

query I rowsort
SELECT + 47 * + 68 * - 13 - - 31
----
-41517

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT DISTINCT 20 * + 56 * MIN( DISTINCT - 44 ) * + COUNT( * )
----
-49280

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT 20 * + 56 * MIN ( DISTINCT - 44 ) * + COUNT ( * )
----
-49280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3425
SELECT MAX( ALL + ( - 65 ) ) * + 65 * + - 23 AS col2, 60 * 6 DIV + - 49 AS col1
----
97175
-7

skipif mysql # not compatible
query II rowsort label-3425
SELECT MAX ( ALL + ( - 65 ) ) * + 65 * + - 23 AS col2, 60 * 6 / + - 49 AS col1
----
97175
-7

query I rowsort
SELECT ALL 55 * - 65 AS col0
----
-3575

query I rowsort
SELECT 88 + - 66 - + 55 col2
----
-33

query I rowsort
SELECT 24 * 62
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT + CASE - 42 WHEN - 63 + - - NULLIF ( + CASE + 26 WHEN 32 + + + 21 THEN + ( + 17 ) / - 60 * + ( + 32 ) + + ( + - 14 ) * COUNT( ALL - - 57 ) WHEN - 78 + - COUNT( * ) THEN NULL END, + + 83 ) THEN 68 ELSE NULL END * 83 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3429
SELECT + CASE - 42 WHEN - 63 + - - NULLIF ( + CASE + 26 WHEN 32 + + + 21 THEN + ( + 17 ) / - 60 * + ( + 32 ) + + ( + - 14 ) * COUNT ( ALL - - 57 ) WHEN - 78 + - COUNT ( * ) THEN NULL END, + + 83 ) THEN 68 ELSE NULL END * 83 + 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT ( - ( + 23 ) ) DIV + 15
----
-1

skipif mysql # not compatible
query I rowsort label-3430
SELECT ( - ( + 23 ) ) / + 15
----
-1

query I rowsort
SELECT ALL 19 * 82
----
1558

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

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

query I rowsort
SELECT 39 * - 63 AS col0
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT 29 + - MAX( ( - 87 ) )
----
116

skipif mysql # not compatible
query I rowsort label-3434
SELECT 29 + - MAX ( ( - 87 ) )
----
116

query I rowsort
SELECT DISTINCT - + 34 + - 59
----
-93

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

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

query I rowsort
SELECT 81 + - 10 AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3438
SELECT - 59 / - 32 + 33 + - CASE 74 WHEN 38 - + COUNT( * ) * - 59 THEN - CASE 22 WHEN 27 * 5 / 54 + - - 65 THEN + - NULLIF ( + 90, - 34 * + 72 + - - 86 + + NULLIF ( - - 31, - 63 + + COUNT( * ) * + 88 ) ) * + 99 + + CAST( ( 0 ) AS SIGNED ) WHEN - 37 * 96 THEN NULL END WHEN 77 THEN NULL END + NULLIF ( + 69, 91 ) * - CAST( NULL AS SIGNED ) * + CASE COALESCE ( + ( 50 ), - 44 ) * + COUNT( * ) WHEN 66 / COUNT( * ) THEN CAST( NULL AS SIGNED ) WHEN - 64 THEN NULL ELSE CAST( NULL AS SIGNED ) + MAX( - 74 ) * - 43 END + - COALESCE ( 64 + 3, + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT - 59 / - 32 + 33 + - CASE 74 WHEN 38 - + COUNT ( * ) * - 59 THEN - CASE 22 WHEN 27 * 5 / 54 + - - 65 THEN + - NULLIF ( + 90, - 34 * + 72 + - - 86 + + NULLIF ( - - 31, - 63 + + COUNT ( * ) * + 88 ) ) * + 99 + + CAST ( ( 0 ) AS INTEGER ) WHEN - 37 * 96 THEN NULL END WHEN 77 THEN NULL END + NULLIF ( + 69, 91 ) * - CAST ( NULL AS INTEGER ) * + CASE COALESCE ( + ( 50 ), - 44 ) * + COUNT ( * ) WHEN 66 / COUNT ( * ) THEN CAST ( NULL AS INTEGER ) WHEN - 64 THEN NULL ELSE CAST ( NULL AS INTEGER ) + MAX ( - 74 ) * - 43 END + - COALESCE ( 64 + 3, + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT 60 + + 20 + 82 AS col0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT - 63 * + ( + 27 ) / + + 77 * + 9 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT - 63 * + ( + 27 ) / + + 77 * + 9 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 7 * - 92 AS col2
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT + COUNT( DISTINCT + 16 ) * - COALESCE ( - 82, - + 14 * + + ( + SUM( DISTINCT + - 4 ) ), + - 53 ) + - + 18 col0
----
64

skipif mysql # not compatible
query I rowsort label-3442
SELECT + COUNT ( DISTINCT + 16 ) * - COALESCE ( - 82, - + 14 * + + ( + SUM ( DISTINCT + - 4 ) ), + - 53 ) + - + 18 col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3443
SELECT DISTINCT + 43 DIV + + 29 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT + 43 / + + 29 AS col1
----
1

query I rowsort
SELECT ALL + 30 * 6 + - 74 * 91
----
-6554

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3445
SELECT + + CAST( NULL AS DECIMAL ) + - + ( - 70 ) * - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT + + CAST ( NULL AS REAL ) + - + ( - 70 ) * - 10 AS col1
----
NULL

query I rowsort
SELECT - - 13 * + + ( + 28 ) AS col2
----
364

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

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

query II rowsort
SELECT + NULLIF ( - 19, - 78 ) AS col1, + 33 * - + 16
----
-19
-528

query I rowsort
SELECT + 72 * - 19 AS col0
----
-1368

query I rowsort
SELECT ALL 60 + + 72 AS col1
----
132

query II rowsort
SELECT ALL 16 AS col2, + ( - 76 )
----
16
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + ( + 83 ) + 47 * + COUNT( * ) AS col1
----
130

skipif mysql # not compatible
query I rowsort label-3452
SELECT + ( + 83 ) + 47 * + COUNT ( * ) AS col1
----
130

query I rowsort
SELECT + 42 * 19
----
798

onlyif mysql # DIV for integer division: 
query II rowsort label-3454
SELECT ALL ( 21 ) + + - 39 AS col1, - 4 DIV + 10
----
-18
0

skipif mysql # not compatible
query II rowsort label-3454
SELECT ALL ( 21 ) + + - 39 AS col1, - 4 / + 10
----
-18
0

query II rowsort
SELECT - 81 AS col0, 15 * + 46 AS col1
----
-81
690

query I rowsort
SELECT + 82 - 57 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-3457
SELECT ALL COUNT( * ), 78 + 47 AS col2
----
1
125

skipif mysql # not compatible
query II rowsort label-3457
SELECT ALL COUNT ( * ), 78 + 47 AS col2
----
1
125

query I rowsort
SELECT + + 21 * - 50 + + COALESCE ( - 27, ( - + ( - 66 ) ) + - 51, - 79 ) + + 92 - + 78 AS col2
----
-1063

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

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

query II rowsort
SELECT - - 50 AS col2, 56 AS col1
----
50
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT COALESCE ( MIN( ALL 51 ), - 10 * - 52 + - - 39 + + - 82 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-3461
SELECT COALESCE ( MIN ( ALL 51 ), - 10 * - 52 + - - 39 + + - 82 ) AS col2
----
51

query I rowsort
SELECT + 22 + 14 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT ALL + + 65 * - - 2 + ( COUNT( * ) )
----
131

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL + + 65 * - - 2 + ( COUNT ( * ) )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT + NULLIF ( 67, + 74 * COUNT( * ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3464
SELECT + NULLIF ( 67, + 74 * COUNT ( * ) ) AS col1
----
67

query I rowsort
SELECT ALL - 14 * 60
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - - 3 * + COUNT( * ) + - - 21
----
24

skipif mysql # not compatible
query I rowsort label-3466
SELECT - - 3 * + COUNT ( * ) + - - 21
----
24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT + - CAST( - 31 AS SIGNED ) col2
----
31

skipif mysql # not compatible
query I rowsort label-3468
SELECT + - CAST ( - 31 AS INTEGER ) col2
----
31

query I rowsort
SELECT - - 70 * - 43 col0
----
-3010

query I rowsort
SELECT ALL + 64 * + 72 AS col0
----
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + - 59 + COUNT( * ) * - 49 * NULLIF ( - MIN( + + 32 ), COALESCE ( - 50, - + 97 ) * - - CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COUNT( * ) END + + 16 ) + + 33 + - - 96 * - 43 * + MAX( DISTINCT + + ( 85 ) ) AS col0
----
-349338

skipif mysql # not compatible
query I rowsort label-3471
SELECT + - 59 + COUNT ( * ) * - 49 * NULLIF ( - MIN ( + + 32 ), COALESCE ( - 50, - + 97 ) * - - CASE WHEN NOT NULL IS NULL THEN NULL ELSE + COUNT ( * ) END + + 16 ) + + 33 + - - 96 * - 43 * + MAX ( DISTINCT + + ( 85 ) ) AS col0
----
-349338

query II rowsort
SELECT + + 44 AS col1, 97 AS col0
----
44
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT - 20 DIV COUNT( ALL 28 ) * + 44 * - + COALESCE ( - + 88, + 93, + + 23 * - 8 ) AS col1
----
-77440

skipif mysql # not compatible
query I rowsort label-3473
SELECT - 20 / COUNT ( ALL 28 ) * + 44 * - + COALESCE ( - + 88, + 93, + + 23 * - 8 ) AS col1
----
-77440

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL + - SUM( DISTINCT + - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL + - SUM ( DISTINCT + - 29 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3475
SELECT - 38 DIV 62 - - 4 AS col0, MIN( CAST( NULL AS SIGNED ) ) * - 12 * 67 + 29
----
4
NULL

skipif mysql # not compatible
query II rowsort label-3475
SELECT - 38 / 62 - - 4 AS col0, MIN ( CAST ( NULL AS INTEGER ) ) * - 12 * 67 + 29
----
4
NULL

query I rowsort
SELECT + 7 * - 92 * + 19 AS col1
----
-12236

onlyif mysql # aggregate syntax: 
query II rowsort label-3477
SELECT + 39 * - + 94 + COUNT( * ) + + 77 + - 15, - 46 AS col2
----
-3603
-46

skipif mysql # not compatible
query II rowsort label-3477
SELECT + 39 * - + 94 + COUNT ( * ) + + 77 + - 15, - 46 AS col2
----
-3603
-46

query I rowsort
SELECT DISTINCT 88 * - 18 + + 52 AS col1
----
-1532

query II rowsort
SELECT ALL 67 * - + 41, 73 AS col1
----
-2747
73

query II rowsort
SELECT - 72 + - + 43 AS col0, 67 AS col2
----
-115
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT NULLIF ( 23, COUNT( * ) + + + ( - 61 ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3481
SELECT NULLIF ( 23, COUNT ( * ) + + + ( - 61 ) ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - 49 * + - COUNT( * ) * + 88 AS col0
----
4312

skipif mysql # not compatible
query I rowsort label-3482
SELECT - 49 * + - COUNT ( * ) * + 88 AS col0
----
4312

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT + 66 - + 5 * + - 69 + + COUNT( - + 37 )
----
412

skipif mysql # not compatible
query I rowsort label-3484
SELECT + 66 - + 5 * + - 69 + + COUNT ( - + 37 )
----
412

query I rowsort
SELECT ALL + CASE + - 50 WHEN + ( - + 22 ) THEN NULL WHEN + - COALESCE ( - + 31, + 7 + 41 * + 52, ( + + 88 ) ) THEN NULL WHEN - 19 THEN NULL ELSE - 4 END
----
-4

query II rowsort
SELECT - 37 + + 40 + - + 32 + + 58, - 76 + - ( + 74 ) AS col0
----
29
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT 91 * - 32 + - COUNT( DISTINCT - 36 )
----
-2913

skipif mysql # not compatible
query I rowsort label-3487
SELECT 91 * - 32 + - COUNT ( DISTINCT - 36 )
----
-2913

query I rowsort
SELECT - NULLIF ( 58, + 55 ) AS col1
----
-58

query I rowsort
SELECT DISTINCT + 38 * - 21 * + - 85 + 6 AS col1
----
67836

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT MAX( DISTINCT 85 )
----
85

skipif mysql # not compatible
query I rowsort label-3490
SELECT MAX ( DISTINCT 85 )
----
85

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

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

query I rowsort
SELECT - CASE 67 WHEN - NULLIF ( - - 43, - 42 + - 54 * - 67 ) + + + 22 THEN NULL ELSE + 28 END
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL 47 - - + COALESCE ( - NULLIF ( - SUM( + + 50 ), + 80 + - - 22 + COUNT( + 93 ) / + 85 ), - COUNT( * ) ) + - + 70
----
27

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL 47 - - + COALESCE ( - NULLIF ( - SUM ( + + 50 ), + 80 + - - 22 + COUNT ( + 93 ) / + 85 ), - COUNT ( * ) ) + - + 70
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL 23 - MAX( 38 ) + - 20 * + - 68 AS col1
----
1345

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL 23 - MAX ( 38 ) + - 20 * + - 68 AS col1
----
1345

query I rowsort
SELECT + 92 * 55 AS col0
----
5060

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT + 62 * + COUNT( * ) * + + 28 col1
----
1736

skipif mysql # not compatible
query I rowsort label-3496
SELECT + 62 * + COUNT ( * ) * + + 28 col1
----
1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3497
SELECT + + 48 + NULLIF ( - CASE CAST( 82 AS SIGNED ) WHEN + + 59 + 70 THEN 71 WHEN 75 * 23 + 57 THEN - COUNT( * ) DIV + 54 + + + ( + 38 ) + 92 ELSE + 71 + + + COUNT( * ) END, - 24 ) AS col1, 4 * SUM( ALL + 49 )
----
-24
196

skipif mysql # not compatible
query II rowsort label-3497
SELECT + + 48 + NULLIF ( - CASE CAST ( 82 AS INTEGER ) WHEN + + 59 + 70 THEN 71 WHEN 75 * 23 + 57 THEN - COUNT ( * ) / + 54 + + + ( + 38 ) + 92 ELSE + 71 + + + COUNT ( * ) END, - 24 ) AS col1, 4 * SUM ( ALL + 49 )
----
-24
196

onlyif mysql # aggregate syntax: 
query II rowsort label-3498
SELECT DISTINCT 7 * - MAX( DISTINCT 80 ) + + CASE ( 87 ) WHEN + 5 THEN - 0 END * - 52 AS col2, 82 * 73 + + 3 AS col0
----
NULL
5989

skipif mysql # not compatible
query II rowsort label-3498
SELECT DISTINCT 7 * - MAX ( DISTINCT 80 ) + + CASE ( 87 ) WHEN + 5 THEN - 0 END * - 52 AS col2, 82 * 73 + + 3 AS col0
----
NULL
5989

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - 51 + - - MIN( ALL - 34 )
----
-85

skipif mysql # not compatible
query I rowsort label-3499
SELECT - 51 + - - MIN ( ALL - 34 )
----
-85

query I rowsort
SELECT - 8 * 77 AS col1
----
-616

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT - + 79 * COUNT( * ) * - 52 * ( + 35 ) + - COALESCE ( + COUNT( * ), + 42, 92 + + 2 + - ( + 21 ) + 77 * 82 ) AS col2, MIN( ALL - 79 ) * + 5
----
143779
-395

skipif mysql # not compatible
query II rowsort label-3501
SELECT - + 79 * COUNT ( * ) * - 52 * ( + 35 ) + - COALESCE ( + COUNT ( * ), + 42, 92 + + 2 + - ( + 21 ) + 77 * 82 ) AS col2, MIN ( ALL - 79 ) * + 5
----
143779
-395

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT + 12 DIV + - 80 * + 38 * 18 + - 16 + - - 66 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3502
SELECT + 12 / + - 80 * + 38 * 18 + - 16 + - - 66 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT 16 / 12 + CASE + 95 WHEN + 99 / + 68 THEN - + 3 WHEN - 50 * + 50 THEN NULL END * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT 16 / 12 + CASE + 95 WHEN + 99 / + 68 THEN - + 3 WHEN - 50 * + 50 THEN NULL END * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 19
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - SUM ( - 26 )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT ALL + + COUNT( * ) * + ( 95 ) * - 54 AS col1, + 65
----
-5130
65

skipif mysql # not compatible
query II rowsort label-3505
SELECT ALL + + COUNT ( * ) * + ( 95 ) * - 54 AS col1, + 65
----
-5130
65

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

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL COUNT ( * ) + + - 93 AS col1
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-3507
SELECT + 44, 58 * 35 + 72 DIV 61 AS col0
----
44
2031

skipif mysql # not compatible
query II rowsort label-3507
SELECT + 44, 58 * 35 + 72 / 61 AS col0
----
44
2031

query I rowsort
SELECT ALL - ( - 95 ) + - 53
----
42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3510
SELECT 14 AS col0, - COUNT( * ) * - + 54 + + COUNT( * )
----
14
55

skipif mysql # not compatible
query II rowsort label-3510
SELECT 14 AS col0, - COUNT ( * ) * - + 54 + + COUNT ( * )
----
14
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT DISTINCT - ( - - MIN( - - COALESCE ( - 44, - + 67 + 94 ) ) ) + + 58 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT - ( - - MIN ( - - COALESCE ( - 44, - + 67 + 94 ) ) ) + + 58 AS col1
----
102

query I rowsort
SELECT 96 * - ( 44 ) + - 93
----
-4317

query I rowsort
SELECT ALL - 59 + + - ( + 24 )
----
-83

query I rowsort
SELECT 13 * 34
----
442

query I rowsort
SELECT + 77 * - - 98 * - CASE WHEN NOT - 87 IS NOT NULL THEN 24 END + 51 / + + 72
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT 32 DIV + + 33
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT 32 / + + 33
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3520
SELECT 39 * 35 * 9, SUM( + + 61 ) AS col1
----
12285
61

skipif mysql # not compatible
query II rowsort label-3520
SELECT 39 * 35 * 9, SUM ( + + 61 ) AS col1
----
12285
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT DISTINCT - 15 * COUNT( DISTINCT 30 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT - 15 * COUNT ( DISTINCT 30 ) AS col0
----
-15

query I rowsort
SELECT ALL 71 - + ( + - 58 ) AS col1
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT 58 DIV + 15
----
3

skipif mysql # not compatible
query I rowsort label-3523
SELECT 58 / + 15
----
3

query I rowsort
SELECT 29 * + + 78 AS col2
----
2262

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

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

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

skipif mysql # not compatible
query I rowsort label-3526
SELECT - NULLIF ( COUNT ( * ), MIN ( + - 46 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT ALL CASE - + COALESCE ( - - 20, MIN( + 44 ), + CASE 85 WHEN 31 THEN NULL WHEN COUNT( * ) THEN - 55 ELSE + 40 * - 31 END * - + 27 ) WHEN 80 THEN + 60 * + 26 WHEN 0 THEN MIN( 31 ) WHEN + 54 * + 33 / + COUNT( * ) * + - NULLIF ( - COUNT( * ), COUNT( * ) * COUNT( * ) + 7 ) + - 27 + 67 * 18 THEN CAST( NULL AS SIGNED ) * + 8 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL CASE - + COALESCE ( - - 20, MIN ( + 44 ), + CASE 85 WHEN 31 THEN NULL WHEN COUNT ( * ) THEN - 55 ELSE + 40 * - 31 END * - + 27 ) WHEN 80 THEN + 60 * + 26 WHEN 0 THEN MIN ( 31 ) WHEN + 54 * + 33 / + COUNT ( * ) * + - NULLIF ( - COUNT ( * ), COUNT ( * ) * COUNT ( * ) + 7 ) + - 27 + 67 * 18 THEN CAST ( NULL AS INTEGER ) * + 8 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - MAX( ALL + NULLIF ( + 54, - 37 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-3528
SELECT - MAX ( ALL + NULLIF ( + 54, - 37 ) )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3529
SELECT - COALESCE ( - 98, - + 48 - - - 91, 29 + + CASE 88 WHEN + - COUNT( * ) + 93 * - COUNT( * ) + COUNT( * ) THEN - CAST( NULL AS SIGNED ) + + ( + 41 ) DIV + + 72 WHEN + 86 THEN NULL END * + ( - 7 ) ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3529
SELECT - COALESCE ( - 98, - + 48 - - - 91, 29 + + CASE 88 WHEN + - COUNT ( * ) + 93 * - COUNT ( * ) + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) + + ( + 41 ) / + + 72 WHEN + 86 THEN NULL END * + ( - 7 ) ) AS col2
----
98

query I rowsort
SELECT + 90 - - + 21 + + - 14 + 71 * ( - - 44 )
----
3221

query I rowsort
SELECT - + NULLIF ( + 5, + 80 + + 81 ) col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT DISTINCT - 75 * + ( NULLIF ( - + 82, - COUNT( * ) ) ) AS col1
----
6150

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - 75 * + ( NULLIF ( - + 82, - COUNT ( * ) ) ) AS col1
----
6150

query I rowsort
SELECT 97 - + 55 - + + 88 AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3534
SELECT + CAST( + COUNT( * ) AS SIGNED ) DIV - CASE - - 62 WHEN - ( + 0 ) THEN NULL WHEN - - CAST( - + CAST( 27 AS SIGNED ) AS SIGNED ) + + COUNT( * ) * + + 97 THEN - 39 + - 63 + + 96 WHEN - 92 + 34 THEN NULL ELSE COUNT( * ) DIV - 57 + 41 + - 5 END + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-3534
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) / - CASE - - 62 WHEN - ( + 0 ) THEN NULL WHEN - - CAST ( - + CAST ( 27 AS INTEGER ) AS INTEGER ) + + COUNT ( * ) * + + 97 THEN - 39 + - 63 + + 96 WHEN - 92 + 34 THEN NULL ELSE COUNT ( * ) / - 57 + 41 + - 5 END + - 38
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT ( - CAST( NULL AS SIGNED ) ) * - 27 * - - ( - 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT ( - CAST ( NULL AS INTEGER ) ) * - 27 * - - ( - 92 )
----
NULL

query I rowsort
SELECT - NULLIF ( - ( + - 2 ), + 25 / 15 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT + CAST( - 46 AS SIGNED ) col1
----
-46

skipif mysql # not compatible
query I rowsort label-3537
SELECT + CAST ( - 46 AS INTEGER ) col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT 7 * 15 * - - 32 - - - 45 * - - COUNT( * ) + + - MAX( ALL - + CAST( - + 86 AS SIGNED ) ) + - 79 + + + 85 * + 66 * - 39 AS col2
----
-215640

skipif mysql # not compatible
query I rowsort label-3538
SELECT 7 * 15 * - - 32 - - - 45 * - - COUNT ( * ) + + - MAX ( ALL - + CAST ( - + 86 AS INTEGER ) ) + - 79 + + + 85 * + 66 * - 39 AS col2
----
-215640

query I rowsort
SELECT ALL 98 + 36 - 56 * - 99 * + - 54
----
-299242

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

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

query I rowsort
SELECT ALL ( + 36 ) + + + 35 + - 97 AS col1
----
-26

query II rowsort
SELECT DISTINCT - 82, 79 AS col1
----
-82
79

query I rowsort
SELECT 33 * - 87 AS col0
----
-2871

query I rowsort
SELECT ALL 49 + 63 * 5
----
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3545
SELECT 5 AS col1, + COUNT( * ) DIV - 70
----
5
0

skipif mysql # not compatible
query II rowsort label-3545
SELECT 5 AS col1, + COUNT ( * ) / - 70
----
5
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3546
SELECT - SUM( CASE + + 57 WHEN + + 69 THEN NULL ELSE + - 22 END ) * 32 * + 96 * - - 27 - + COALESCE ( - - 59, 6 * - - CAST( NULL AS SIGNED ) * + COUNT( * ), + + COUNT( * ) * 32 ) + 31 AS col1
----
1824740

skipif mysql # not compatible
query I rowsort label-3546
SELECT - SUM ( CASE + + 57 WHEN + + 69 THEN NULL ELSE + - 22 END ) * 32 * + 96 * - - 27 - + COALESCE ( - - 59, 6 * - - CAST ( NULL AS INTEGER ) * + COUNT ( * ), + + COUNT ( * ) * 32 ) + 31 AS col1
----
1824740

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3547
SELECT 10 AS col1, 56 * - CAST( - 25 AS SIGNED ) + - CAST( + CAST( 54 AS SIGNED ) AS SIGNED ) * + - 3
----
10
1562

skipif mysql # not compatible
query II rowsort label-3547
SELECT 10 AS col1, 56 * - CAST ( - 25 AS INTEGER ) + - CAST ( + CAST ( 54 AS INTEGER ) AS INTEGER ) * + - 3
----
10
1562

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT 28 * - + 40 + + - COUNT( * ) * - 48 + + + 10 + 81
----
-981

skipif mysql # not compatible
query I rowsort label-3548
SELECT 28 * - + 40 + + - COUNT ( * ) * - 48 + + + 10 + 81
----
-981

query I rowsort
SELECT 58 * 75 * - 13
----
-56550

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL - SUM( + ( 53 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL - SUM ( + ( 53 ) ) AS col2
----
-53

query I rowsort
SELECT ( - 48 ) + 56 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL - 28 - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - 28 - COUNT ( * )
----
-29

query I rowsort
SELECT 48 * + - 47 * - 42
----
94752

query I rowsort
SELECT ALL 83 * + 85
----
7055

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT 58 - COUNT( * ) col0
----
57

skipif mysql # not compatible
query I rowsort label-3555
SELECT 58 - COUNT ( * ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + MAX( DISTINCT 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3556
SELECT + MAX ( DISTINCT 49 )
----
49

query I rowsort
SELECT DISTINCT - COALESCE ( 0, 0 + 63 + 34 )
----
0

query I rowsort
SELECT ALL - 29 - - - 98 * - 16 col1
----
1539

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

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

query I rowsort
SELECT 74 * 0
----
0

query I rowsort
SELECT 77 + - - 4
----
81

query II rowsort
SELECT ALL 58 AS col0, + 83 AS col1
----
58
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT 94 DIV + 17 + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-3563
SELECT 94 / + 17 + + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - 83 * - COUNT( * ) + 80 col0
----
163

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 83 * - COUNT ( * ) + 80 col0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT COUNT( + 46 ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3565
SELECT COUNT ( + 46 ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3566
SELECT - + 27 AS col1, - COUNT( ALL - + 98 ) + COUNT( * ) AS col0
----
-27
0

skipif mysql # not compatible
query II rowsort label-3566
SELECT - + 27 AS col1, - COUNT ( ALL - + 98 ) + COUNT ( * ) AS col0
----
-27
0

query II rowsort
SELECT + 20 AS col1, - 33 * + 85 + + 18 AS col0
----
20
-2787

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT - 68 + - COUNT( * ) * - + NULLIF ( - 23, - 23 ) + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - 68 + - COUNT ( * ) * - + NULLIF ( - 23, - 23 ) + COUNT ( * ) col2
----
NULL

query I rowsort
SELECT - 24 + + ( - + 5 ) * + 13 * + + 43
----
-2819

query I rowsort
SELECT - + 46 * 36 AS col2
----
-1656

query I rowsort
SELECT DISTINCT - 35 + 5 + + 76 * - 49 * - 67
----
249478

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL + 77 * + SUM( + 8 ) * - + 97 + 7 AS col0
----
-59745

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + 77 * + SUM ( + 8 ) * - + 97 + 7 AS col0
----
-59745

query I rowsort
SELECT - CASE WHEN NOT + 94 = 66 + - ( - - 56 ) THEN + 50 - - ( + 48 ) + - 72 + 91 ELSE - 74 END AS col0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL - 85 + MAX( ALL - 85 )
----
-170

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - 85 + MAX ( ALL - 85 )
----
-170

query II rowsort
SELECT - 38 col1, 85 * 22 AS col2
----
-38
1870

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3576
SELECT ALL + 88 AS col1, + COALESCE ( - + 48, + 19 DIV - 99 * - + COUNT( * ) - 34 - + 58 * + 49 * COALESCE ( - COUNT( * ), 59 ) )
----
88
-48

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL + 88 AS col1, + COALESCE ( - + 48, + 19 / - 99 * - + COUNT ( * ) - 34 - + 58 * + 49 * COALESCE ( - COUNT ( * ), 59 ) )
----
88
-48

query I rowsort
SELECT - ( 87 ) + - + 5 * + 82 * - - 40
----
-16487

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3578
SELECT DISTINCT CASE - + 48 WHEN - 74 + 16 * - 6 THEN + - 85 WHEN + 7 + - 6 THEN NULL WHEN 69 * - COUNT( * ) + 54 + - + 64 - - 51 * + 98 - + CAST( NULL AS DECIMAL ) THEN 46 ELSE - ( + 10 ) END
----
-10

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT CASE - + 48 WHEN - 74 + 16 * - 6 THEN + - 85 WHEN + 7 + - 6 THEN NULL WHEN 69 * - COUNT ( * ) + 54 + - + 64 - - 51 * + 98 - + CAST ( NULL AS REAL ) THEN 46 ELSE - ( + 10 ) END
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3579
SELECT 95 * + 66 * 9 * + - 78 * - 99 DIV - COUNT( * ) + + 94 + 52 DIV + ( 83 ) + - 48
----
-435752414

skipif mysql # not compatible
query I rowsort label-3579
SELECT 95 * + 66 * 9 * + - 78 * - 99 / - COUNT ( * ) + + 94 + 52 / + ( 83 ) + - 48
----
-435752414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3580
SELECT - 88 / CAST( NULL AS SIGNED ) / + 34 + - COALESCE ( 43, 30 + + 3 - - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT - 88 / CAST ( NULL AS INTEGER ) / + 34 + - COALESCE ( 43, 30 + + 3 - - 53 )
----
NULL

query I rowsort
SELECT + NULLIF ( + + 77, 57 + - - 4 )
----
77

query I rowsort
SELECT CASE - - 5 WHEN - - 23 THEN + 22 / - 57 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + + 3, 2 ) * - + 44 AS col1
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3584
SELECT + 7 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT + 7 / - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 36 * - 23 AS col0, + 21 AS col0
----
-828
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT CASE + - CASE CAST( + 82 AS SIGNED ) WHEN - - AVG ( DISTINCT - 56 ) THEN + 26 WHEN - ( 95 ) THEN NULL ELSE NULL END WHEN 84 / - + 36 THEN COUNT( * ) + + + 43 * - 23 WHEN - 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT CASE + - CASE CAST ( + 82 AS INTEGER ) WHEN - - AVG ( DISTINCT - 56 ) THEN + 26 WHEN - ( 95 ) THEN NULL ELSE NULL END WHEN 84 / - + 36 THEN COUNT ( * ) + + + 43 * - 23 WHEN - 7 THEN NULL END
----
NULL

query I rowsort
SELECT + 24 * + NULLIF ( - - 4, + ( + 5 ) * + 46 )
----
96

query I rowsort
SELECT CASE WHEN AVG ( DISTINCT - + CASE 26 WHEN + - ( - 81 ) THEN - + 63 WHEN - 6 * 47 THEN NULL END ) IS NOT NULL THEN + 48 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3589
SELECT + COUNT ( * ) / - - 25 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3591
SELECT MAX( 14 ), - COUNT( * ) AS col0
----
14
-1

skipif mysql # not compatible
query II rowsort label-3591
SELECT MAX ( 14 ), - COUNT ( * ) AS col0
----
14
-1

query II rowsort
SELECT - 23 * - - 40, 85 AS col1
----
-920
85

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

query I rowsort
SELECT ALL - 41 * - 48 * 54
----
106272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT + - CAST( NULL AS SIGNED ) * 25 + - COALESCE ( + + 58, + - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT + - CAST ( NULL AS INTEGER ) * 25 + - COALESCE ( + + 58, + - 68 )
----
NULL

query I rowsort
SELECT - + COALESCE ( + 2, 21 ) AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT ALL - - 93 + - 51 DIV - 80 + + + 80
----
173

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - - 93 + - 51 / - 80 + + + 80
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-3598
SELECT - 17 + - + 41 DIV 43
----
-17

skipif mysql # not compatible
query I rowsort label-3598
SELECT - 17 + - + 41 / 43
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT + CAST( - 52 AS SIGNED ) * + 51 + + 62 + + 22 AS col2
----
-2568

skipif mysql # not compatible
query I rowsort label-3599
SELECT + CAST ( - 52 AS INTEGER ) * + 51 + + 62 + + 22 AS col2
----
-2568

query I rowsort
SELECT - 88 - + - 50 AS col2
----
-38

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

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

query I rowsort
SELECT DISTINCT + 32 * + 20 AS col1
----
640

query I rowsort
SELECT - COALESCE ( + 65, 75, - 25 * - - 17, - 40 ) * 3 - - 48 + - + 70 - 31 * ( - + 85 ) AS col2
----
2418

query II rowsort
SELECT DISTINCT - - 9 + - + 11 AS col0, + 99
----
-2
99

query I rowsort
SELECT DISTINCT + COALESCE ( + - 39, + 63 ) * - 5 col1
----
195

query I rowsort
SELECT - 31 * 12 AS col0
----
-372

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT ALL + CASE - 31 WHEN + 2 THEN - 78 END * + - SUM( 57 ) * + ( 68 ), 6 AS col1
----
NULL
6

skipif mysql # not compatible
query II rowsort label-3608
SELECT ALL + CASE - 31 WHEN + 2 THEN - 78 END * + - SUM ( 57 ) * + ( 68 ), 6 AS col1
----
NULL
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3609
SELECT ALL 78 / 69 - + + 73 + + 41 * CAST( NULL AS SIGNED ) / - - 91 * + 69 + - 55 / + + NULLIF ( - 81, - ( - COUNT( + ( 16 ) ) ) ) + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL 78 / 69 - + + 73 + + 41 * CAST ( NULL AS INTEGER ) / - - 91 * + 69 + - 55 / + + NULLIF ( - 81, - ( - COUNT ( + ( 16 ) ) ) ) + + 80
----
NULL

query I rowsort
SELECT DISTINCT + 55 * 38
----
2090

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

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

query II rowsort
SELECT DISTINCT + 90, 55 AS col0
----
90
55

query I rowsort
SELECT - 24 + 20 * - 29
----
-604

query I rowsort
SELECT + COALESCE ( - + ( 75 ), - + 71 )
----
-75

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

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

skipif mysql # not compatible
query I rowsort label-3616
SELECT - COUNT ( * ) * - - 10
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3617
SELECT - 39 * 1 + + 84 + + COUNT( * ) AS col2, - 4
----
46
-4

skipif mysql # not compatible
query II rowsort label-3617
SELECT - 39 * 1 + + 84 + + COUNT ( * ) AS col2, - 4
----
46
-4

query I rowsort
SELECT ALL - 1 + + NULLIF ( 28, - - 10 * NULLIF ( - - 64, + 13 ) ) + - 22 * - 27
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT + + 41 * + CASE - 33 WHEN 84 THEN + 32 * 31 + + 97 * + CASE + + 81 WHEN + 32 + - 43 THEN - SUM( + 87 ) + - 21 ELSE NULL END * - 89 WHEN + 28 THEN NULL ELSE NULL END + + 39 * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT + + 41 * + CASE - 33 WHEN 84 THEN + 32 * 31 + + 97 * + CASE + + 81 WHEN + 32 + - 43 THEN - SUM ( + 87 ) + - 21 ELSE NULL END * - 89 WHEN + 28 THEN NULL ELSE NULL END + + 39 * + 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3620
SELECT - 2 DIV + COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3620
SELECT - 2 / + COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3621
SELECT DISTINCT - CASE WHEN NULL > NULL THEN CAST( NULL AS SIGNED ) END col1, 91
----
NULL
91

skipif mysql # not compatible
query II rowsort label-3621
SELECT DISTINCT - CASE WHEN NULL > NULL THEN CAST ( NULL AS INTEGER ) END col1, 91
----
NULL
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3622
SELECT ALL + ( + COUNT( * ) ) + + 66 + 54 * - 84 + + + 48 AS col0, + 24 col1
----
-4421
24

skipif mysql # not compatible
query II rowsort label-3622
SELECT ALL + ( + COUNT ( * ) ) + + 66 + 54 * - 84 + + + 48 AS col0, + 24 col1
----
-4421
24

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

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

query I rowsort
SELECT ALL 3 + - 80
----
-77

query I rowsort
SELECT CASE - - 16 WHEN + 30 + - 36 THEN NULL WHEN + 31 THEN + 77 ELSE - 67 END AS col2
----
-67

query II rowsort
SELECT ALL - 3 col2, - 69 AS col1
----
-3
-69

query I rowsort
SELECT ALL + 25 + - 55 col0
----
-30

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3630
SELECT CAST( NULL AS SIGNED ) + 96 AS col1, 80 * + ( - 45 ) + 15 AS col0
----
NULL
-3585

skipif mysql # not compatible
query II rowsort label-3630
SELECT CAST ( NULL AS INTEGER ) + 96 AS col1, 80 * + ( - 45 ) + 15 AS col0
----
NULL
-3585

onlyif mysql # DIV for integer division: 
query II rowsort label-3631
SELECT 52 DIV 89, + 41 col1
----
0
41

skipif mysql # not compatible
query II rowsort label-3631
SELECT 52 / 89, + 41 col1
----
0
41

query I rowsort
SELECT ALL - 69 * 89
----
-6141

query I rowsort
SELECT 58 + 57 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT 41 DIV 97 * 52 * + - 52 * + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT 41 / 97 * 52 * + - 52 * + 20 AS col1
----
0

query I rowsort
SELECT ALL + 98 * + + 67
----
6566

query I rowsort
SELECT DISTINCT + 25 + ( 63 ) col2
----
88

query II rowsort
SELECT ALL - 70 + + 52 col1, 70 * + 72
----
-18
5040

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT ALL + 7 + + 73 * - 96 * COUNT( * ) AS col0, 26 AS col1
----
-7001
26

skipif mysql # not compatible
query II rowsort label-3638
SELECT ALL + 7 + + 73 * - 96 * COUNT ( * ) AS col0, 26 AS col1
----
-7001
26

query I rowsort
SELECT DISTINCT - 53 + + 0 * - 25
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3640
SELECT ALL - ( CASE - + 72 WHEN COUNT( * ) + + 73 * 77 THEN + 91 / ( + 46 ) + - 77 * 3 + + - 48 + - 33 WHEN - 83 THEN + + 88 / - + 56 / MIN( - 52 ) + - COUNT( * ) + 52 * - + COALESCE ( - 61, - 44 * - 4 - - 3 + + + 54 * + COUNT( * ) + COALESCE ( - 9, + CAST( + 61 AS SIGNED ) * 45, 45 ), 92 ) - 29 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL - ( CASE - + 72 WHEN COUNT ( * ) + + 73 * 77 THEN + 91 / ( + 46 ) + - 77 * 3 + + - 48 + - 33 WHEN - 83 THEN + + 88 / - + 56 / MIN ( - 52 ) + - COUNT ( * ) + 52 * - + COALESCE ( - 61, - 44 * - 4 - - 3 + + + 54 * + COUNT ( * ) + COALESCE ( - 9, + CAST ( + 61 AS INTEGER ) * 45, 45 ), 92 ) - 29 END )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT MAX( 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3642
SELECT MAX ( 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3643
SELECT ALL + + ( 57 ) + - 36 DIV - + 78 + 80 + + - COUNT( * ) DIV + + 69 * - ( + 3 ) * + + 63
----
137

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL + + ( 57 ) + - 36 / - + 78 + 80 + + - COUNT ( * ) / + + 69 * - ( + 3 ) * + + 63
----
137

query I rowsort
SELECT 51 * - ( - 21 )
----
1071

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3645
SELECT DISTINCT - - COUNT( * ) DIV 47 * + ( 1 ) AS col1
----
0

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

query I rowsort
SELECT DISTINCT + 96 - - + 73
----
169

query I rowsort
SELECT ALL - - 55 * 60 + + 63 AS col2
----
3363

query I rowsort
SELECT 76 + - 90
----
-14

query I rowsort
SELECT 51 + + 80 + + - 92
----
39

query I rowsort
SELECT 99 + - 38
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3651
SELECT + 43 * MAX( ALL - - 80 ) + + CASE - SUM( DISTINCT + + 47 ) WHEN + + 84 THEN + - 88 WHEN + 20 THEN + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ELSE + 30 END * - 47
----
2030

skipif mysql # not compatible
query I rowsort label-3651
SELECT + 43 * MAX ( ALL - - 80 ) + + CASE - SUM ( DISTINCT + + 47 ) WHEN + + 84 THEN + - 88 WHEN + 20 THEN + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ELSE + 30 END * - 47
----
2030

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

skipif mysql # not compatible
query I rowsort label-3652
SELECT CAST ( NULL AS INTEGER ) * - 75 AS col2
----
NULL

query I rowsort
SELECT ALL 72 * 39 AS col2
----
2808

query II rowsort
SELECT DISTINCT 98 AS col1, + 72
----
98
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT - MIN( ALL + 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3655
SELECT - MIN ( ALL + 54 ) AS col0
----
-54

query I rowsort
SELECT 61 - 36
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL 19 * - COUNT( * ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL 19 * - COUNT ( * ) col1
----
-19

query I rowsort
SELECT 32 * + 41 AS col1
----
1312

onlyif mysql # aggregate syntax: 
query II rowsort label-3659
SELECT 67 * + 36 * - 94 AS col1, 52 * + - COUNT( * )
----
-226728
-52

skipif mysql # not compatible
query II rowsort label-3659
SELECT 67 * + 36 * - 94 AS col1, 52 * + - COUNT ( * )
----
-226728
-52

query I rowsort
SELECT 38 - - 96 AS col1
----
134

query I rowsort
SELECT ALL 13 + - 16
----
-3

query I rowsort
SELECT NULLIF ( + 38, - 90 ) - + 30
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT 86 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-3663
SELECT 86 / - 32
----
-2

query I rowsort
SELECT DISTINCT - 4 * + 49 + + 7 AS col1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT DISTINCT COUNT( + - 51 ) * 86 * + ( 4 ) + + 91 * + 29
----
2983

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT COUNT ( + - 51 ) * 86 * + ( 4 ) + + 91 * + 29
----
2983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT COALESCE ( 1, - - 76 * + - COUNT( DISTINCT + + 83 ) * - - 27 * - 70 ) * + + 60 - - COALESCE ( + 11, 93 ) + + CAST( + - ( - 15 ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-3666
SELECT COALESCE ( 1, - - 76 * + - COUNT ( DISTINCT + + 83 ) * - - 27 * - 70 ) * + + 60 - - COALESCE ( + 11, 93 ) + + CAST ( + - ( - 15 ) AS INTEGER )
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-3667
SELECT + 83 AS col1, - 18 DIV 20
----
83
0

skipif mysql # not compatible
query II rowsort label-3667
SELECT + 83 AS col1, - 18 / 20
----
83
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3668
SELECT + CASE + 59 WHEN + 52 + + + ( - CASE - 64 WHEN 23 THEN + - 13 WHEN COUNT( * ) / - + 63 * 17 / + 56 - 80 - - CAST( NULL AS SIGNED ) + + 28 THEN - MAX( + 12 ) + 37 * 38 * + + SUM( ALL + - 52 ) + - + NULLIF ( - - 68, ( + + MAX( ALL - 85 ) ) * - 37 ) / - NULLIF ( + 83, - 79 ) / + 85 WHEN CAST( - 65 AS SIGNED ) THEN NULL ELSE ( 33 ) END ) + 75 THEN 19 + NULLIF ( NULLIF ( CAST( + 68 AS SIGNED ), + 78 + 39 ), 44 ) WHEN - 45 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT + CASE + 59 WHEN + 52 + + + ( - CASE - 64 WHEN 23 THEN + - 13 WHEN COUNT ( * ) / - + 63 * 17 / + 56 - 80 - - CAST ( NULL AS INTEGER ) + + 28 THEN - MAX ( + 12 ) + 37 * 38 * + + SUM ( ALL + - 52 ) + - + NULLIF ( - - 68, ( + + MAX ( ALL - 85 ) ) * - 37 ) / - NULLIF ( + 83, - 79 ) / + 85 WHEN CAST ( - 65 AS INTEGER ) THEN NULL ELSE ( 33 ) END ) + 75 THEN 19 + NULLIF ( NULLIF ( CAST ( + 68 AS INTEGER ), + 78 + 39 ), 44 ) WHEN - 45 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT 4 * + 70 - - + 19 + + 71 - - 38 AS col0, 28
----
408
28

query I rowsort
SELECT + + 88 * - 41 * - 18 * + + 7 AS col2
----
454608

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT + ( + COUNT( ALL - 23 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3671
SELECT + ( + COUNT ( ALL - 23 ) )
----
1

query II rowsort
SELECT DISTINCT 78 * - + 75 + + 92, - ( + 98 ) col1
----
-5758
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-3673
SELECT ALL + 22 AS col1, 41 + ( 65 ) + - + 21 DIV ( + 73 ) * + COALESCE ( - 41, + ( + - 53 ) ) AS col1
----
22
106

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL + 22 AS col1, 41 + ( 65 ) + - + 21 / ( + 73 ) * + COALESCE ( - 41, + ( + - 53 ) ) AS col1
----
22
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3674
SELECT - 55 + + COALESCE ( 58, - + 58 DIV - NULLIF ( CAST( + 1 AS SIGNED ), + 78 * + 4 - - COUNT( * ) ) + - + COUNT( * ) + + + 6, - 47 * 58 )
----
3

skipif mysql # not compatible
query I rowsort label-3674
SELECT - 55 + + COALESCE ( 58, - + 58 / - NULLIF ( CAST ( + 1 AS INTEGER ), + 78 * + 4 - - COUNT ( * ) ) + - + COUNT ( * ) + + + 6, - 47 * 58 )
----
3

query I rowsort
SELECT ALL 28 * - 3 - 18
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3676
SELECT - ( + - COUNT( * ) ) * + - SUM( ALL - 54 ) + + + 93 + + 4 * + - 20 DIV + + COUNT( * ) AS col1, MAX( - 82 ) AS col2
----
67
-82

skipif mysql # not compatible
query II rowsort label-3676
SELECT - ( + - COUNT ( * ) ) * + - SUM ( ALL - 54 ) + + + 93 + + 4 * + - 20 / + + COUNT ( * ) AS col1, MAX ( - 82 ) AS col2
----
67
-82

query I rowsort
SELECT - + 86 * 45 AS col1
----
-3870

query I rowsort
SELECT - - 22 + + 79 * - 1 * - - 82
----
-6456

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

skipif mysql # not compatible
query I rowsort label-3679
SELECT - + COUNT ( * ) / - 29 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT + 92 * - + MAX( DISTINCT + 81 ) AS col2
----
-7452

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + 92 * - + MAX ( DISTINCT + 81 ) AS col2
----
-7452

query II rowsort
SELECT ALL 40, + 60 AS col1
----
40
60

query I rowsort
SELECT - 49 + - 66 + - 76 col2
----
-191

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL 37 + + + 68 - - + CASE - 14 WHEN - 48 THEN - + 72 ELSE ( - ( - + COUNT( * ) ) ) * + 20 END AS col1
----
125

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL 37 + + + 68 - - + CASE - 14 WHEN - 48 THEN - + 72 ELSE ( - ( - + COUNT ( * ) ) ) * + 20 END AS col1
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT + 7 * CASE - 10 WHEN ( - + 89 ) THEN + 90 * + 3 - - COUNT( * ) WHEN 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT + 7 * CASE - 10 WHEN ( - + 89 ) THEN + 90 * + 3 - - COUNT ( * ) WHEN 7 THEN NULL END
----
NULL

query I rowsort
SELECT - 19 + + 59 + 59 + + 33 * - ( 25 ) + 86 * - ( - 79 ) AS col1
----
6068

query I rowsort
SELECT ALL + 70 + 73
----
143

query I rowsort
SELECT + 71 + - 25
----
46

query I rowsort
SELECT ALL - 7 + + 52 + 50 AS col1
----
95

query I rowsort
SELECT + ( - ( + 60 ) ) + + 24 AS col2
----
-36

query I rowsort
SELECT - 35 * 15
----
-525

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT - 89 * - ( COALESCE ( + + ( - + 70 ), + + COUNT( * ) ) ) + - - 50 AS col0
----
-6180

skipif mysql # not compatible
query I rowsort label-3693
SELECT - 89 * - ( COALESCE ( + + ( - + 70 ), + + COUNT ( * ) ) ) + - - 50 AS col0
----
-6180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3694
SELECT ALL 1 DIV COUNT( * ) + - 15 DIV + COALESCE ( 24, - - 16 - - + 69, 62 * + 36 + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL 1 / COUNT ( * ) + - 15 / + COALESCE ( 24, - - 16 - - + 69, 62 * + 36 + 72 )
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT + COUNT( * ) * 92 + + 98 DIV 94 DIV + 34 * + ( + NULLIF ( + + 92, + ( - MAX( ALL 84 ) ) + + 65 ) ) * + 77 * + 58 + - - 3 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3696
SELECT + COUNT ( * ) * 92 + + 98 / 94 / + 34 * + ( + NULLIF ( + + 92, + ( - MAX ( ALL 84 ) ) + + 65 ) ) * + 77 * + 58 + - - 3 AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT - CAST( - - 75 AS SIGNED ) * + 8
----
-600

skipif mysql # not compatible
query I rowsort label-3697
SELECT - CAST ( - - 75 AS INTEGER ) * + 8
----
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT + COALESCE ( - + 88, + COUNT( + + 67 ) * + 67 + + 62 + - + 83 * + 64 )
----
-88

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT + COALESCE ( - + 88, + COUNT ( + + 67 ) * + 67 + + 62 + - + 83 * + 64 )
----
-88

query I rowsort
SELECT DISTINCT - 20 * 28 * - 79
----
44240

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT ALL + 90 AS col2, - MAX( DISTINCT 62 )
----
90
-62

skipif mysql # not compatible
query II rowsort label-3700
SELECT ALL + 90 AS col2, - MAX ( DISTINCT 62 )
----
90
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT + + 34, - SUM( + - 97 ) col0
----
34
97

skipif mysql # not compatible
query II rowsort label-3701
SELECT + + 34, - SUM ( + - 97 ) col0
----
34
97

query II rowsort
SELECT ALL + 8, + ( 75 ) AS col1
----
8
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL + COUNT( + ( 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + COUNT ( + ( 45 ) )
----
1

query I rowsort
SELECT + 14 * 2 AS col2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT DISTINCT 54 DIV + 13
----
4

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT 54 / + 13
----
4

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

skipif mysql # not compatible
query I rowsort label-3706
SELECT + CAST ( NULL AS INTEGER ) * + 26 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3707
SELECT 25 AS col1, CASE - COALESCE ( 98, + 39 * - 25 ) WHEN - - SUM( + 25 ) THEN COALESCE ( 72, 81 + - 72 ) WHEN - 62 THEN NULL ELSE NULL END * - CAST( 84 AS SIGNED ) * + 6
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3707
SELECT 25 AS col1, CASE - COALESCE ( 98, + 39 * - 25 ) WHEN - - SUM ( + 25 ) THEN COALESCE ( 72, 81 + - 72 ) WHEN - 62 THEN NULL ELSE NULL END * - CAST ( 84 AS INTEGER ) * + 6
----
25
NULL

query I rowsort
SELECT - - 77 * + 62
----
4774

query I rowsort
SELECT + 41 - - 9
----
50

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

skipif mysql # not compatible
query I rowsort label-3710
SELECT - COUNT ( * ) / + - 50 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3711
SELECT + + COUNT( * ) * - - CASE + - 30 WHEN + + 34 * - 25 + - - 53 + - - 5 THEN + - 5 * + - NULLIF ( + 81, 43 * 1 ) + ( - MIN( CAST( 93 AS SIGNED ) ) ) - - 82 + + MIN( DISTINCT 55 ) * + - CAST( NULL AS SIGNED ) + 49 WHEN - CAST( + + ( + + 10 ) AS SIGNED ) + + MIN( + + 85 ) + + COUNT( * ) THEN + 58 WHEN - COUNT( * ) + 60 THEN + ( - 23 ) - COUNT( * ) DIV + 20 ELSE 12 + 63 END * - 72
----
-5400

skipif mysql # not compatible
query I rowsort label-3711
SELECT + + COUNT ( * ) * - - CASE + - 30 WHEN + + 34 * - 25 + - - 53 + - - 5 THEN + - 5 * + - NULLIF ( + 81, 43 * 1 ) + ( - MIN ( CAST ( 93 AS INTEGER ) ) ) - - 82 + + MIN ( DISTINCT 55 ) * + - CAST ( NULL AS INTEGER ) + 49 WHEN - CAST ( + + ( + + 10 ) AS INTEGER ) + + MIN ( + + 85 ) + + COUNT ( * ) THEN + 58 WHEN - COUNT ( * ) + 60 THEN + ( - 23 ) - COUNT ( * ) / + 20 ELSE 12 + 63 END * - 72
----
-5400

query I rowsort
SELECT DISTINCT + 44 * + 32 + + 5 + - 83
----
1330

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

skipif mysql # not compatible
query II rowsort label-3713
SELECT DISTINCT + COUNT ( * ), 17 col2
----
1
17

query II rowsort
SELECT ALL + ( + + 64 ) AS col0, 62
----
64
62

query I rowsort
SELECT + 49 * + - 1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3716
SELECT ALL CAST( + 62 AS SIGNED ) * - CAST( + + 88 AS SIGNED ) * 31 + 13 + + + 82 + - 3 * - + COUNT( * ) DIV + 50 * - 95 DIV - CASE + - COUNT( * ) WHEN + - COUNT( * ) THEN ( 6 ) - - 84 END - + - 6 * - + 20 + + COALESCE ( + 52, - 23 ) + - 96 + - + NULLIF ( - 21, + + 55 * - 99 + - ( - CASE 43 WHEN CAST( NULL AS SIGNED ) + - 69 DIV 69 THEN NULL ELSE - 72 END ) + 6 * 85 - 18 * 11 ) AS col0
----
-169184

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL CAST ( + 62 AS INTEGER ) * - CAST ( + + 88 AS INTEGER ) * 31 + 13 + + + 82 + - 3 * - + COUNT ( * ) / + 50 * - 95 / - CASE + - COUNT ( * ) WHEN + - COUNT ( * ) THEN ( 6 ) - - 84 END - + - 6 * - + 20 + + COALESCE ( + 52, - 23 ) + - 96 + - + NULLIF ( - 21, + + 55 * - 99 + - ( - CASE 43 WHEN CAST ( NULL AS INTEGER ) + - 69 / 69 THEN NULL ELSE - 72 END ) + 6 * 85 - 18 * 11 ) AS col0
----
-169184

query I rowsort
SELECT - 19 * 55
----
-1045

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - 78 + - + 27 + COUNT( * )
----
-104

skipif mysql # not compatible
query I rowsort label-3718
SELECT - 78 + - + 27 + COUNT ( * )
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT - COALESCE ( ( - 33 ), + - COUNT( * ) * 2 )
----
33

skipif mysql # not compatible
query I rowsort label-3719
SELECT - COALESCE ( ( - 33 ), + - COUNT ( * ) * 2 )
----
33

query II rowsort
SELECT DISTINCT - 93 + - + 99 AS col2, 63 + - 22 AS col2
----
-192
41

query I rowsort
SELECT ALL 83 + + 86 * 10 AS col2
----
943

query I rowsort
SELECT DISTINCT + 66 * 30 * 10 col0
----
19800

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL COUNT( * ) + + + 70
----
71

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL COUNT ( * ) + + + 70
----
71

query I rowsort
SELECT ALL + 39 + + 75 AS col2
----
114

query I rowsort
SELECT ALL - 76 - 87
----
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT ( + + 23 ) DIV 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT ( + + 23 ) / 25 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3727
SELECT DISTINCT NULLIF ( 22, - 21 ) DIV + + 35 * + SUM( ALL - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT NULLIF ( 22, - 21 ) / + + 35 * + SUM ( ALL - 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT COUNT( ALL - 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT COUNT ( ALL - 99 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT ALL - - CAST( NULL AS SIGNED ) - - 51 - + - ( + 99 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL - - CAST ( NULL AS INTEGER ) - - 51 - + - ( + 99 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT COUNT( * ) * CASE - 93 WHEN + 25 * + - 93 + + 82 / 90 * + 76 THEN NULL ELSE - 4 END - + 96
----
-100

skipif mysql # not compatible
query I rowsort label-3730
SELECT COUNT ( * ) * CASE - 93 WHEN + 25 * + - 93 + + 82 / 90 * + 76 THEN NULL ELSE - 4 END - + 96
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + CASE + 25 WHEN + - 26 * + 2 - + 18 + - + 58 THEN NULL WHEN - 7 THEN 93 END + 98 * - 33 / - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT + CASE + 25 WHEN + - 26 * + 2 - + 18 + - + 58 THEN NULL WHEN - 7 THEN 93 END + 98 * - 33 / - - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( - - 92, - 65 * 84 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3733
SELECT - 77 * CASE - 81 WHEN + + 29 THEN - 33 WHEN + 27 THEN NULL END * - - 67 - 44 + 14 + - 93 + 77 - - 81 - + + 97 * - CASE - ( + 66 ) WHEN + 82 THEN + 65 * 6 * - + 33 ELSE NULL END * 23 * - - CAST( NULL AS SIGNED ) * ( + - ( CASE - - COUNT( * ) WHEN + 99 + NULLIF ( + - COUNT( * ), 31 ) * + 37 THEN NULL WHEN + 27 THEN NULLIF ( 17, COUNT( * ) * CAST( NULL AS SIGNED ) ) ELSE + NULLIF ( - 61, - 3 ) END ) ) * 56 + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT - 77 * CASE - 81 WHEN + + 29 THEN - 33 WHEN + 27 THEN NULL END * - - 67 - 44 + 14 + - 93 + 77 - - 81 - + + 97 * - CASE - ( + 66 ) WHEN + 82 THEN + 65 * 6 * - + 33 ELSE NULL END * 23 * - - CAST ( NULL AS INTEGER ) * ( + - ( CASE - - COUNT ( * ) WHEN + 99 + NULLIF ( + - COUNT ( * ), 31 ) * + 37 THEN NULL WHEN + 27 THEN NULLIF ( 17, COUNT ( * ) * CAST ( NULL AS INTEGER ) ) ELSE + NULLIF ( - 61, - 3 ) END ) ) * 56 + + 84 AS col2
----
NULL

query I rowsort
SELECT ALL 42 * + + 76 * - - 57
----
181944

query II rowsort
SELECT 3 * + 44, + 81 AS col2
----
132
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT DISTINCT + 59 * - COUNT( * ) * + 57
----
-3363

skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT + 59 * - COUNT ( * ) * + 57
----
-3363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3737
SELECT - 64 * + CAST( - 35 AS SIGNED ) * + 9 + + 88 + COUNT( * ) * - 36 + 67 + - 92 AS col1
----
20187

skipif mysql # not compatible
query I rowsort label-3737
SELECT - 64 * + CAST ( - 35 AS INTEGER ) * + 9 + + 88 + COUNT ( * ) * - 36 + 67 + - 92 AS col1
----
20187

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT - - 58 DIV + + 71 + + 85
----
85

skipif mysql # not compatible
query I rowsort label-3738
SELECT - - 58 / + + 71 + + 85
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT ALL - 15 * - + 12, 94 + - + 66 * - COUNT( * ) AS col0
----
180
160

skipif mysql # not compatible
query II rowsort label-3739
SELECT ALL - 15 * - + 12, 94 + - + 66 * - COUNT ( * ) AS col0
----
180
160

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ( 82 ) * 17 + + - 57 + - + NULLIF ( - COUNT( * ), ( 95 ) * + + COUNT( * ) * - 60 / + 77 - + 55 ) * - 90
----
1247

skipif mysql # not compatible
query I rowsort label-3740
SELECT ( 82 ) * 17 + + - 57 + - + NULLIF ( - COUNT ( * ), ( 95 ) * + + COUNT ( * ) * - 60 / + 77 - + 55 ) * - 90
----
1247

onlyif mysql # DIV for integer division: 
query II rowsort label-3741
SELECT 61 DIV 65 AS col0, 17
----
0
17

skipif mysql # not compatible
query II rowsort label-3741
SELECT 61 / 65 AS col0, 17
----
0
17

query I rowsort
SELECT 68 * + ( - 62 )
----
-4216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3743
SELECT ALL 96 + - 77 - + MAX( - 20 ) + CAST( - ( - COALESCE ( - 91, 34 ) ) AS SIGNED ) * + COUNT( * ) * - - 17 * - 13 - 7, - 31 AS col0
----
20143
-31

skipif mysql # not compatible
query II rowsort label-3743
SELECT ALL 96 + - 77 - + MAX ( - 20 ) + CAST ( - ( - COALESCE ( - 91, 34 ) ) AS INTEGER ) * + COUNT ( * ) * - - 17 * - 13 - 7, - 31 AS col0
----
20143
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT CASE + - 20 WHEN - + 68 + 84 THEN - COUNT( * ) END * NULLIF ( - - 23, + 80 * 6 / + 49 ) * 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT CASE + - 20 WHEN - + 68 + 84 THEN - COUNT ( * ) END * NULLIF ( - - 23, + 80 * 6 / + 49 ) * 85 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT NULLIF ( - 56, + 87 - + 52 ) + - COUNT( * ) * - - ( + 40 ) col0
----
-96

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT NULLIF ( - 56, + 87 - + 52 ) + - COUNT ( * ) * - - ( + 40 ) col0
----
-96

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

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

query I rowsort
SELECT DISTINCT 12 + - 65 + - + 76 AS col1
----
-129

query II rowsort
SELECT DISTINCT 64, 19 AS col0
----
64
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT ALL - 7 - + 34 * - + 36 + + NULLIF ( + CASE 19 WHEN - - 88 * - 63 + - + 96 THEN - ( CAST( NULL AS SIGNED ) ) + + 79 + 97 + + 46 END, + 29 - - - 51 ) + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL - 7 - + 34 * - + 36 + + NULLIF ( + CASE 19 WHEN - - 88 * - 63 + - + 96 THEN - ( CAST ( NULL AS INTEGER ) ) + + 79 + 97 + + 46 END, + 29 - - - 51 ) + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT 73 + - 29 col1
----
44

query I rowsort
SELECT 18 - + - 44
----
62

query I rowsort
SELECT ALL + COALESCE ( - + 99, + 94 ) * - 17
----
1683

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT 92 + 96 DIV - COALESCE ( + 58, 5 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3753
SELECT 92 + 96 / - COALESCE ( + 58, 5 ) AS col2
----
91

query II rowsort
SELECT ALL 32, 75 + + 95 AS col2
----
32
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT ALL + MAX( ALL + CAST( NULL AS SIGNED ) ) * - NULLIF ( - COUNT( * ), 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - NULLIF ( - COUNT ( * ), 23 )
----
NULL

query I rowsort
SELECT + 21 * - 6 * - + 21
----
2646

query I rowsort
SELECT DISTINCT + 37 * - - 2 AS col2
----
74

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

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

query I rowsort
SELECT - 29 * 65 + + 55 + 8 AS col1
----
-1822

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT + MAX( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-3760
SELECT + MAX ( DISTINCT + 79 )
----
79

onlyif mysql # aggregate syntax: 
query III rowsort label-3761
SELECT DISTINCT - + 36 AS col1, - 58 * - - 59 * - - COUNT( * ), - 11 AS col1
----
-36
-3422
-11

skipif mysql # not compatible
query III rowsort label-3761
SELECT DISTINCT - + 36 AS col1, - 58 * - - 59 * - - COUNT ( * ), - 11 AS col1
----
-36
-3422
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT + 16 DIV + 18 * + 73 + MAX( DISTINCT + 64 ) - + COUNT( 13 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3762
SELECT + 16 / + 18 * + 73 + MAX ( DISTINCT + 64 ) - + COUNT ( 13 ) AS col0
----
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT 51 DIV 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT 51 / 58 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT DISTINCT + 76 * + 8 + COUNT( * ) AS col1
----
609

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT + 76 * + 8 + COUNT ( * ) AS col1
----
609

query II rowsort
SELECT 92 AS col0, - 71
----
92
-71

query I rowsort
SELECT ALL - COALESCE ( + 95, + COALESCE ( + 24, + - 47 + 9 ), - 18 * + 75 ) * 43 + + 14
----
-4071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3768
SELECT - COUNT( * ) * + 74 * + CASE + 43 WHEN - 95 * + - 96 * 12 THEN 48 WHEN - - 21 * + - 51 THEN NULL ELSE NULL END * - + 16 / + - COUNT( * ) - + - COUNT( * ) * 24 + + CASE - 56 WHEN + COALESCE ( 11, + - 49 ) / 10 * + - 30 * - CAST( NULL AS SIGNED ) * + - 55 THEN - 75 * - - 9 + + COALESCE ( CASE - 72 WHEN 34 THEN + 25 ELSE NULL END, - - SUM( 20 ) * ( - ( 60 ) ) * 34 ) WHEN 56 THEN - COUNT( * ) * - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT - COUNT ( * ) * + 74 * + CASE + 43 WHEN - 95 * + - 96 * 12 THEN 48 WHEN - - 21 * + - 51 THEN NULL ELSE NULL END * - + 16 / + - COUNT ( * ) - + - COUNT ( * ) * 24 + + CASE - 56 WHEN + COALESCE ( 11, + - 49 ) / 10 * + - 30 * - CAST ( NULL AS INTEGER ) * + - 55 THEN - 75 * - - 9 + + COALESCE ( CASE - 72 WHEN 34 THEN + 25 ELSE NULL END, - - SUM ( 20 ) * ( - ( 60 ) ) * 34 ) WHEN 56 THEN - COUNT ( * ) * - 37 END
----
NULL

query I rowsort
SELECT 89 * - ( + - 74 ) col0
----
6586

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

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL COUNT ( * ) + - - 27 AS col1
----
28

query II rowsort
SELECT DISTINCT - 48, - 62 AS col2
----
-48
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3772
SELECT CASE + - 0 WHEN + 76 + - 97 THEN NULL WHEN - 0 THEN - COUNT( * ) WHEN - 65 - - 91 THEN NULL ELSE 85 DIV ( + SUM( + 16 ) ) END - + 63
----
-64

skipif mysql # not compatible
query I rowsort label-3772
SELECT CASE + - 0 WHEN + 76 + - 97 THEN NULL WHEN - 0 THEN - COUNT ( * ) WHEN - 65 - - 91 THEN NULL ELSE 85 / ( + SUM ( + 16 ) ) END - + 63
----
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3773
SELECT ALL + CAST( - 60 AS SIGNED ) * + 17 + + ( + - 47 ) + + - 31 + + + 74 * 67 DIV - + 59
----
-1182

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + CAST ( - 60 AS INTEGER ) * + 17 + + ( + - 47 ) + + - 31 + + + 74 * 67 / - + 59
----
-1182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT DISTINCT 7 + + - CAST( CAST( MIN( ALL + NULLIF ( + + 1, 67 + + - 3 + + + 70 + - 89 / CAST( NULL AS SIGNED ) / 99 ) ) AS SIGNED ) AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT 7 + + - CAST ( CAST ( MIN ( ALL + NULLIF ( + + 1, 67 + + - 3 + + + 70 + - 89 / CAST ( NULL AS INTEGER ) / 99 ) ) AS INTEGER ) AS INTEGER )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT + 48 * - 86 * - + CAST( 44 AS SIGNED ) col1
----
181632

skipif mysql # not compatible
query I rowsort label-3775
SELECT + 48 * - 86 * - + CAST ( 44 AS INTEGER ) col1
----
181632

query II rowsort
SELECT DISTINCT 71 - + + 28, - 93 AS col1
----
43
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3777
SELECT + 65 * COUNT( * ) * - 8 * + COUNT( * ) + - - CAST( NULL AS SIGNED ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT + 65 * COUNT ( * ) * - 8 * + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - 97
----
NULL

query I rowsort
SELECT DISTINCT 48 - + 70 * + - 3 AS col2
----
258

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3779
SELECT ALL 6 DIV 95 col2, MIN( + COALESCE ( + 47, - 43 ) )
----
0
47

skipif mysql # not compatible
query II rowsort label-3779
SELECT ALL 6 / 95 col2, MIN ( + COALESCE ( + 47, - 43 ) )
----
0
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3780
SELECT + 12 * + + COUNT( * ) AS col0, NULLIF ( + 41, CAST( NULL AS DECIMAL ) + 92 ) AS col0
----
12
41

skipif mysql # not compatible
query II rowsort label-3780
SELECT + 12 * + + COUNT ( * ) AS col0, NULLIF ( + 41, CAST ( NULL AS REAL ) + 92 ) AS col0
----
12
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT ALL 70 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL 70 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 5 * - 1 * ( - 75 ) AS col1
----
375

query II rowsort
SELECT DISTINCT 79 * + 41, + ( + - 52 ) AS col0
----
3239
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3784
SELECT - 19 * MAX( 85 ) * + 27 * - COALESCE ( 89, + + 28 + + 7 * 52 * 82, 65 DIV + 95, + - SUM( ALL - 32 ) + + 32 )
----
3880845

skipif mysql # not compatible
query I rowsort label-3784
SELECT - 19 * MAX ( 85 ) * + 27 * - COALESCE ( 89, + + 28 + + 7 * 52 * 82, 65 / + 95, + - SUM ( ALL - 32 ) + + 32 )
----
3880845

query I rowsort
SELECT + + 19 * - 46 AS col2
----
-874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT + - CAST( NULL AS SIGNED ) - - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT + - CAST ( NULL AS INTEGER ) - - 7 AS col1
----
NULL

query II rowsort
SELECT + + 70 * + 7 AS col2, - 15 AS col1
----
490
-15

query I rowsort
SELECT ALL + + 93 + 51
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT - MIN( DISTINCT - - 3 ) - - + 27 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3789
SELECT - MIN ( DISTINCT - - 3 ) - - + 27 AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT - COALESCE ( - 78, - - 87 + - 2 ) + 73, + CASE - 22 WHEN + ( COUNT( + - 86 ) ) THEN + - ( - 35 ) WHEN + - COALESCE ( 49, - - 97 ) THEN - NULLIF ( 17, 91 * - 82 ) * - - 83 + 47 + - COUNT( * ) - - + ( 57 ) ELSE NULL END * - + CASE WHEN NOT 68 IS NOT NULL THEN + - 30 * + 88 ELSE NULL END AS col0
----
151
NULL

skipif mysql # not compatible
query II rowsort label-3790
SELECT - COALESCE ( - 78, - - 87 + - 2 ) + 73, + CASE - 22 WHEN + ( COUNT ( + - 86 ) ) THEN + - ( - 35 ) WHEN + - COALESCE ( 49, - - 97 ) THEN - NULLIF ( 17, 91 * - 82 ) * - - 83 + 47 + - COUNT ( * ) - - + ( 57 ) ELSE NULL END * - + CASE WHEN NOT 68 IS NOT NULL THEN + - 30 * + 88 ELSE NULL END AS col0
----
151
NULL

query I rowsort
SELECT ALL + + 96 * + - 54 * + 97 * + - 71 + + ( + + ( - 17 ) ) + + 30 AS col2
----
35702221

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT + COUNT( * ) * + 41 + ( 42 ) + + 7 * 79 * - + 81 AS col2
----
-44710

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + COUNT ( * ) * + 41 + ( 42 ) + + 7 * 79 * - + 81 AS col2
----
-44710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3793
SELECT COUNT( * ) DIV 9 * - 59 * - + 80 + + + 32 * + 44 - - + 12 col2
----
1420

skipif mysql # not compatible
query I rowsort label-3793
SELECT COUNT ( * ) / 9 * - 59 * - + 80 + + + 32 * + 44 - - + 12 col2
----
1420

query I rowsort
SELECT ALL - 99 * + 61 + - + 77
----
-6116

query I rowsort
SELECT - - 35 * + 24 + - + ( + 57 )
----
783

onlyif mysql # aggregate syntax: 
query II rowsort label-3796
SELECT ALL + 85 * - + 11 - 72 + MAX( - + 31 ) * - CASE 27 WHEN - NULLIF ( - 33, + + 4 + + COUNT( * ) ) THEN + 14 END - - - 31 + - - COUNT( * ), + 63 AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3796
SELECT ALL + 85 * - + 11 - 72 + MAX ( - + 31 ) * - CASE 27 WHEN - NULLIF ( - 33, + + 4 + + COUNT ( * ) ) THEN + 14 END - - - 31 + - - COUNT ( * ), + 63 AS col0
----
NULL
63

query I rowsort
SELECT - 17 * 31 + 56 + - NULLIF ( - + 11, + + 35 ) + 42
----
-418

query I rowsort
SELECT ALL - + ( + - 65 ) * - 73 AS col1
----
-4745

query II rowsort
SELECT ALL + 32 AS col0, 39 AS col0
----
32
39

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

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

query II rowsort
SELECT ALL 24 * + 88 - 47, - 62 * 7 + + 44 + - 9 AS col2
----
2065
-399

query II rowsort
SELECT + 0 AS col2, 79 AS col1
----
0
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT CASE - - 77 WHEN 5 THEN NULL WHEN - COUNT( * ) * NULLIF ( 27, 88 + + 14 ) THEN + 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT CASE - - 77 WHEN 5 THEN NULL WHEN - COUNT ( * ) * NULLIF ( 27, 88 + + 14 ) THEN + 1 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + NULLIF ( - + 61, - - 11 - - COUNT( * ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + NULLIF ( - + 61, - - 11 - - COUNT ( * ) ) AS col2
----
-61

query I rowsort
SELECT - 89 * + 28
----
-2492

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL 0 * + COUNT( * ) * + ( 71 )
----
0

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL 0 * + COUNT ( * ) * + ( 71 )
----
0

query I rowsort
SELECT DISTINCT 18 * 53 AS col2
----
954

query I rowsort
SELECT DISTINCT - 35 * - 15 AS col1
----
525

query I rowsort
SELECT + 59 * - 38 AS col2
----
-2242

query I rowsort
SELECT ALL - 17 * - + 55 AS col1
----
935

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT + 52 + - 25 DIV + 55 col0
----
52

skipif mysql # not compatible
query I rowsort label-3811
SELECT + 52 + - 25 / + 55 col0
----
52

query I rowsort
SELECT + 29 + 26 AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT DISTINCT 91 DIV 82
----
1

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT 91 / 82
----
1

query II rowsort
SELECT ALL 95 + - + ( - + NULLIF ( - ( + 1 ), - 57 + - - ( + - 29 ) ) ) AS col0, - 97 * + 23 AS col0
----
94
-2231

query I rowsort
SELECT + 65 + + 67
----
132

onlyif mysql # DIV for integer division: 
query II rowsort label-3816
SELECT - 39 DIV + 80 * + 23, CASE - ( - - 22 ) WHEN - 33 THEN - 66 ELSE NULL END AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3816
SELECT - 39 / + 80 * + 23, CASE - ( - - 22 ) WHEN - 33 THEN - 66 ELSE NULL END AS col2
----
0
NULL

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

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL COUNT ( * ) + + 35 col0
----
36

query I rowsort
SELECT DISTINCT + 71 * + 44
----
3124

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT DISTINCT + CASE - + 30 WHEN 94 + - COUNT( * ) THEN 3 END + - - MAX( 79 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT + CASE - + 30 WHEN 94 + - COUNT ( * ) THEN 3 END + - - MAX ( 79 ) col0
----
NULL

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

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

query I rowsort
SELECT - - 41 + - - 49 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + 36 * COUNT( * ) + - 86 * - + 5
----
466

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + 36 * COUNT ( * ) + - 86 * - + 5
----
466

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT - MAX( ALL + 0 ) - + 41
----
-41

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - MAX ( ALL + 0 ) - + 41
----
-41

query I rowsort
SELECT ALL - - 73 * + - 96 + - 90 col2
----
-7098

query I rowsort
SELECT 67 * + ( + - 86 )
----
-5762

onlyif mysql # aggregate syntax: 
query II rowsort label-3826
SELECT ALL - COUNT( * ), - 89 AS col0
----
-1
-89

skipif mysql # not compatible
query II rowsort label-3826
SELECT ALL - COUNT ( * ), - 89 AS col0
----
-1
-89

query I rowsort
SELECT DISTINCT 96 - - 41 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT MAX( ALL - 44 ) * - 76 * + MAX( + + 95 ) + + - 62 + + 23 + - + 2 * - - 61 * + 27 AS col2
----
314347

skipif mysql # not compatible
query I rowsort label-3828
SELECT MAX ( ALL - 44 ) * - 76 * + MAX ( + + 95 ) + + - 62 + + 23 + - + 2 * - - 61 * + 27 AS col2
----
314347

query I rowsort
SELECT DISTINCT - 3 * + + 48
----
-144

onlyif mysql # DIV for integer division: 
query II rowsort label-3830
SELECT 76 DIV + NULLIF ( - + 46, - + 63 ), - 70 * + 8 - - 94 + 58 AS col1
----
-1
-408

skipif mysql # not compatible
query II rowsort label-3830
SELECT 76 / + NULLIF ( - + 46, - + 63 ), - 70 * + 8 - - 94 + 58 AS col1
----
-1
-408

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

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

query I rowsort
SELECT ALL - 58 * 77
----
-4466

query I rowsort
SELECT + 31 * 66 - - + 84 AS col2
----
2130

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT 2 DIV - - 57 * - 71
----
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT 2 / - - 57 * - 71
----
0

query I rowsort
SELECT 85 + - 96 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT COUNT( * ) - + 38 + + 83 + - CASE + COALESCE ( - SUM( ALL - 30 ), - 66 ) WHEN + 9 THEN + 54 * + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT COUNT ( * ) - + 38 + + 83 + - CASE + COALESCE ( - SUM ( ALL - 30 ), - 66 ) WHEN + 9 THEN + 54 * + 83 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3837
SELECT DISTINCT - COALESCE ( - + 71, - ( 55 ) DIV + 85 ) + - 44 DIV + - 8 + 1 * + 75 AS col0
----
151

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT - COALESCE ( - + 71, - ( 55 ) / + 85 ) + - 44 / + - 8 + 1 * + 75 AS col0
----
151

query I rowsort
SELECT 30 - - 12
----
42

query I rowsort
SELECT 37 * 71 AS col0
----
2627

query II rowsort
SELECT ALL - 86 + + - 26 AS col0, 78 * + 25
----
-112
1950

query II rowsort
SELECT - + 49 AS col0, + 72 * - - 95 AS col1
----
-49
6840

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT ALL - 48 * 98 + + 8 * + MIN( + - 78 ) * 60 col2, - 37 AS col2
----
-42144
-37

skipif mysql # not compatible
query II rowsort label-3842
SELECT ALL - 48 * 98 + + 8 * + MIN ( + - 78 ) * 60 col2, - 37 AS col2
----
-42144
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL COUNT( * ) * 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL COUNT ( * ) * 46 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT ALL - + 9 + - CAST( + 16 AS SIGNED ) * - + 15
----
231

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL - + 9 + - CAST ( + 16 AS INTEGER ) * - + 15
----
231

query II rowsort
SELECT 67, - 38 col2
----
67
-38

query I rowsort
SELECT ALL + 56 + + 46 AS col0
----
102

query I rowsort
SELECT ALL - 51 + + 3 AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT - CAST( + 95 AS SIGNED ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3848
SELECT - CAST ( + 95 AS INTEGER ) AS col1
----
-95

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

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

query I rowsort
SELECT ALL 82 + - - 23 AS col1
----
105

query I rowsort
SELECT DISTINCT CASE + 41 WHEN - - 39 THEN + COALESCE ( - - 51, 87 * + - 45 ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL 9 + - - 29 + + 8 AS col2
----
46

query I rowsort
SELECT - 79 - - 23 AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT + 48 * 54 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT + 48 * 54 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3855
SELECT COUNT( - + CAST( - 22 AS SIGNED ) ) + + 98 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-3855
SELECT COUNT ( - + CAST ( - 22 AS INTEGER ) ) + + 98 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL 36 * + 3 * COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL 36 * + 3 * COUNT ( * )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT + 6 + COUNT( - 49 )
----
7

skipif mysql # not compatible
query I rowsort label-3857
SELECT + 6 + COUNT ( - 49 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL - CASE + 4 WHEN - 41 THEN NULL WHEN + MAX( 8 ) THEN - + 52 END - - + 92 + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - CASE + 4 WHEN - 41 THEN NULL WHEN + MAX ( 8 ) THEN - + 52 END - - + 92 + + 73
----
NULL

query I rowsort
SELECT + 15 * - 19 AS col1
----
-285

query I rowsort
SELECT DISTINCT 94 - 89 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT ALL 98 * - - 79 * - COUNT( * ) + 6 + 23 * COUNT( + 6 ) * - CAST( + 53 AS SIGNED ) AS col1
----
-8955

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL 98 * - - 79 * - COUNT ( * ) + 6 + 23 * COUNT ( + 6 ) * - CAST ( + 53 AS INTEGER ) AS col1
----
-8955

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT CASE + - 24 WHEN - SUM( - + 85 ) / + - ( COUNT( - - ( - - 54 ) ) ) * + AVG ( ALL 80 ) + - + COUNT( * ) + + CASE - 84 WHEN - 26 * - 21 THEN - ( + SUM( DISTINCT + + 60 ) ) + - 93 + - + 62 * - COUNT( * ) / - - 32 * + 26 ELSE NULL END + - + COUNT( ALL - - 4 ) / - CASE + SUM( 81 ) WHEN 66 THEN NULL WHEN + COUNT( * ) THEN - 53 END + - + 90 THEN + - COUNT( ALL + NULLIF ( + ( + 9 ), 31 ) ) + 73 / + 56 WHEN 9 / + 65 THEN 61 * 84 ELSE NULL END + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT CASE + - 24 WHEN - SUM ( - + 85 ) / + - ( COUNT ( - - ( - - 54 ) ) ) * + AVG ( ALL 80 ) + - + COUNT ( * ) + + CASE - 84 WHEN - 26 * - 21 THEN - ( + SUM ( DISTINCT + + 60 ) ) + - 93 + - + 62 * - COUNT ( * ) / - - 32 * + 26 ELSE NULL END + - + COUNT ( ALL - - 4 ) / - CASE + SUM ( 81 ) WHEN 66 THEN NULL WHEN + COUNT ( * ) THEN - 53 END + - + 90 THEN + - COUNT ( ALL + NULLIF ( + ( + 9 ), 31 ) ) + 73 / + 56 WHEN 9 / + 65 THEN 61 * 84 ELSE NULL END + - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT + 10 * - - 50 - - + NULLIF ( COUNT( * ), - 68 - 34 + + COUNT( + 26 ) * - 84 ) * - 48 * - 27 AS col2
----
1796

skipif mysql # not compatible
query I rowsort label-3863
SELECT + 10 * - - 50 - - + NULLIF ( COUNT ( * ), - 68 - 34 + + COUNT ( + 26 ) * - 84 ) * - 48 * - 27 AS col2
----
1796

query II rowsort
SELECT ALL 90 * 96, 50 AS col1
----
8640
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT 60 + + 63 DIV - 9 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3865
SELECT 60 + + 63 / - 9 AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3866
SELECT 62 DIV - COUNT( * ) + 17
----
-45

skipif mysql # not compatible
query I rowsort label-3866
SELECT 62 / - COUNT ( * ) + 17
----
-45

query I rowsort
SELECT 2 * - 41
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3868
SELECT + 47 * - + 85 * - - COUNT( * ) + - 43 + - COALESCE ( + NULLIF ( - COUNT( * ), - 3 + - + MAX( 79 ) ), COUNT( * ) * + + 35 + + 79 + - - 40, - COUNT( * ) + 49, CASE 26 WHEN - 78 THEN + - 57 WHEN - 3 + + - 75 THEN NULL ELSE NULL END + 46 + - 37 DIV - 39 + + 95 + 5 - - 73 + COUNT( * ) * - 59 ) * 50 AS col2
----
-3988

skipif mysql # not compatible
query I rowsort label-3868
SELECT + 47 * - + 85 * - - COUNT ( * ) + - 43 + - COALESCE ( + NULLIF ( - COUNT ( * ), - 3 + - + MAX ( 79 ) ), COUNT ( * ) * + + 35 + + 79 + - - 40, - COUNT ( * ) + 49, CASE 26 WHEN - 78 THEN + - 57 WHEN - 3 + + - 75 THEN NULL ELSE NULL END + 46 + - 37 / - 39 + + 95 + 5 - - 73 + COUNT ( * ) * - 59 ) * 50 AS col2
----
-3988

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT + MAX( ALL - 25 ) * - - 8 + 13
----
-187

skipif mysql # not compatible
query I rowsort label-3869
SELECT + MAX ( ALL - 25 ) * - - 8 + 13
----
-187

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

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

query II rowsort
SELECT DISTINCT + 72 * - 11, + 11 * 1 AS col2
----
-792
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3872
SELECT DISTINCT - NULLIF ( - - 14, + CAST( NULL AS SIGNED ) ) + ( 90 ) DIV ( 30 ) + + 21
----
10

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT - NULLIF ( - - 14, + CAST ( NULL AS INTEGER ) ) + ( 90 ) / ( 30 ) + + 21
----
10

query I rowsort
SELECT 63 * + 17 + 51 + + 10 col1
----
1132

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT 37 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-3874
SELECT 37 / - 93
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3875
SELECT ALL - NULLIF ( COUNT( DISTINCT - + NULLIF ( - 36, CAST( NULL AS DECIMAL ) ) ), + 36 + - CAST( NULL AS SIGNED ) ) + - 65 * + - CAST( + CASE 9 WHEN + 51 * - 9 - - 59 + - 97 * + 24 - 57 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - ( 53 ) - + COUNT( * ) ELSE - 23 DIV ( + 18 ) * - NULLIF ( + 31, + NULLIF ( + COUNT( * ), - + CAST( NULL AS SIGNED ) ) ) END AS SIGNED )
----
2014

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - NULLIF ( COUNT ( DISTINCT - + NULLIF ( - 36, CAST ( NULL AS REAL ) ) ), + 36 + - CAST ( NULL AS INTEGER ) ) + - 65 * + - CAST ( + CASE 9 WHEN + 51 * - 9 - - 59 + - 97 * + 24 - 57 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - ( 53 ) - + COUNT ( * ) ELSE - 23 / ( + 18 ) * - NULLIF ( + 31, + NULLIF ( + COUNT ( * ), - + CAST ( NULL AS INTEGER ) ) ) END AS INTEGER )
----
2014

query II rowsort
SELECT DISTINCT - ( + - 58 ) AS col0, 53 * + - 33
----
58
-1749

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT CASE COUNT( - 84 ) WHEN + 20 * - 87 - + 21 THEN NULL ELSE 53 END * - 11 AS col1
----
-583

skipif mysql # not compatible
query I rowsort label-3878
SELECT CASE COUNT ( - 84 ) WHEN + 20 * - 87 - + 21 THEN NULL ELSE 53 END * - 11 AS col1
----
-583

query I rowsort
SELECT DISTINCT - 18 * + 84 AS col1
----
-1512

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT DISTINCT + - 36 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + - 36 / 94
----
0

query I rowsort
SELECT ALL + 22 + + + ( + 45 )
----
67

query I rowsort
SELECT - 88 * - 68 * + 92 col2
----
550528

onlyif mysql # DIV for integer division: 
query I rowsort label-3883
SELECT ALL + 11 DIV - ( + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + 11 / - ( + 85 )
----
0

query I rowsort
SELECT - 97 + - 23
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3885
SELECT DISTINCT - CAST( 29 AS SIGNED ), 55 AS col1
----
-29
55

skipif mysql # not compatible
query II rowsort label-3885
SELECT DISTINCT - CAST ( 29 AS INTEGER ), 55 AS col1
----
-29
55

query I rowsort
SELECT ALL + 19 - 91 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT NULLIF ( - - 67, + 96 * COUNT( * ) * 31 + + ( + SUM( ALL 8 ) ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3887
SELECT NULLIF ( - - 67, + 96 * COUNT ( * ) * 31 + + ( + SUM ( ALL 8 ) ) ) AS col1
----
67

query I rowsort
SELECT - + ( 92 ) + + 45 AS col1
----
-47

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3890
SELECT - ( - + 47 ) AS col0, - COUNT( * )
----
47
-1

skipif mysql # not compatible
query II rowsort label-3890
SELECT - ( - + 47 ) AS col0, - COUNT ( * )
----
47
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT DISTINCT MAX( 31 ), + 83 AS col1
----
31
83

skipif mysql # not compatible
query II rowsort label-3892
SELECT DISTINCT MAX ( 31 ), + 83 AS col1
----
31
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3893
SELECT - CASE MIN( ALL - + 37 ) WHEN - 35 THEN NULL WHEN - + CAST( + - 49 AS SIGNED ) THEN - 1 + + + 72 END * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT - CASE MIN ( ALL - + 37 ) WHEN - 35 THEN NULL WHEN - + CAST ( + - 49 AS INTEGER ) THEN - 1 + + + 72 END * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3894
SELECT + CAST( NULL AS SIGNED ) + + 30 + 31 * CAST( NULL AS SIGNED ) AS col2, + 13 AS col0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-3894
SELECT + CAST ( NULL AS INTEGER ) + + 30 + 31 * CAST ( NULL AS INTEGER ) AS col2, + 13 AS col0
----
NULL
13

query II rowsort
SELECT ALL + 31, + 49 AS col0
----
31
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3896
SELECT - ( - - 34 ) DIV + - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3896
SELECT - ( - - 34 ) / + - COUNT ( * ) AS col1
----
34

query I rowsort
SELECT NULLIF ( + + CASE + + 98 WHEN - 51 THEN + 49 * + 66 END, + 98 + + - 63 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT + NULLIF ( + 96, - 2 * + 22 + - - NULLIF ( MAX( + 94 ), + ( + MIN( DISTINCT - ( - + 46 ) ) ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-3898
SELECT + NULLIF ( + 96, - 2 * + 22 + - - NULLIF ( MAX ( + 94 ), + ( + MIN ( DISTINCT - ( - + 46 ) ) ) ) )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3899
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - 72 + + - 9 col2, + CASE - + 13 WHEN + 67 + + - 10 THEN + 48 ELSE NULL END + 43 - CAST( NULL AS SIGNED ) * 37 * + 53 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3899
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - 72 + + - 9 col2, + CASE - + 13 WHEN + 67 + + - 10 THEN + 48 ELSE NULL END + 43 - CAST ( NULL AS INTEGER ) * 37 * + 53 AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 37 * + 64 + 61 * 82 + - + 35
----
7335

onlyif mysql # DIV for integer division: 
query I rowsort label-3901
SELECT + 18 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3901
SELECT + 18 / 79 AS col0
----
0

query I rowsort
SELECT + NULLIF ( - 25, - 12 + + ( 36 ) ) AS col0
----
-25

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

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL 42 * - COUNT ( * ) AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT - 47 DIV 82 * + 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3904
SELECT - 47 / 82 * + 57 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT + 23 * + + 83 * - 52 + + COUNT( * ) + + - 63 + 47 * + 17
----
-98531

skipif mysql # not compatible
query I rowsort label-3905
SELECT + 23 * + + 83 * - 52 + + COUNT ( * ) + + - 63 + 47 * + 17
----
-98531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 82 + + 63 * + + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 82 + + 63 * + + 69 AS col0
----
NULL

query I rowsort
SELECT ALL + 27 * - - 69 + - 18 AS col1
----
1845

query II rowsort
SELECT + NULLIF ( 62, 82 ) AS col0, 98
----
62
98

query I rowsort
SELECT NULLIF ( + + 18, + 56 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT ALL + MIN( DISTINCT + 14 ) * 70 DIV + 8 + - 75
----
47

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + MIN ( DISTINCT + 14 ) * 70 / + 8 + - 75
----
47

query I rowsort
SELECT + 76 - + 74
----
2

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

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + COUNT ( DISTINCT - 70 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT ALL - 41 * 52 DIV - - 99 + + 7 + - 43 DIV - ( + - 74 )
----
-14

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL - 41 * 52 / - - 99 + + 7 + - 43 / - ( + - 74 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT ALL + 12 * + 92 * + 28 + 36 * + 4 * 0 + ( + 30 ) + + + 2 + + + COALESCE ( - - 77, 35 * - 62, 79 * + + 50 - 47, + CAST( NULL AS SIGNED ) - 84 + 60 )
----
31021

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + 12 * + 92 * + 28 + 36 * + 4 * 0 + ( + 30 ) + + + 2 + + + COALESCE ( - - 77, 35 * - 62, 79 * + + 50 - 47, + CAST ( NULL AS INTEGER ) - 84 + 60 )
----
31021

query I rowsort
SELECT DISTINCT 46 * + + 24
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - 85 - + ( + 54 ) + + 40 * + + SUM( ALL ( + 73 ) ) * - 98
----
-286299

skipif mysql # not compatible
query I rowsort label-3916
SELECT - 85 - + ( + 54 ) + + 40 * + + SUM ( ALL ( + 73 ) ) * - 98
----
-286299

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - CASE + 45 WHEN - NULLIF ( - 48, COUNT( ALL - - 33 ) - - 31 ) + - + 56 THEN NULL ELSE + 33 * + COUNT( * ) * - - 77 + - 55 + + + COUNT( * ) END col2
----
-2487

skipif mysql # not compatible
query I rowsort label-3917
SELECT - CASE + 45 WHEN - NULLIF ( - 48, COUNT ( ALL - - 33 ) - - 31 ) + - + 56 THEN NULL ELSE + 33 * + COUNT ( * ) * - - 77 + - 55 + + + COUNT ( * ) END col2
----
-2487

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + + COUNT( * ) - + 53 + - + ( - + 86 ) * + ( COUNT( * ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + + COUNT ( * ) - + 53 + - + ( - + 86 ) * + ( COUNT ( * ) ) AS col1
----
34

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT - + 11 col0, COUNT( * ) * + 29
----
-11
29

skipif mysql # not compatible
query II rowsort label-3920
SELECT - + 11 col0, COUNT ( * ) * + 29
----
-11
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT ALL COALESCE ( - 79, - + NULLIF ( - 25, - 9 * + 15 + + + 93 ), + + 39 * - 32 + ( + CASE + 94 WHEN + 44 THEN - + ( 60 ) ELSE NULL END ) DIV - - 58 ) * - 46 * + + 59
----
214406

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL COALESCE ( - 79, - + NULLIF ( - 25, - 9 * + 15 + + + 93 ), + + 39 * - 32 + ( + CASE + 94 WHEN + 44 THEN - + ( 60 ) ELSE NULL END ) / - - 58 ) * - 46 * + + 59
----
214406

query I rowsort
SELECT DISTINCT NULLIF ( 53, 41 * 42 )
----
53

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

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - 33 / + COUNT ( * )
----
-33

query II rowsort
SELECT + + 58 + + 31 * - 96 AS col2, - 55
----
-2918
-55

query I rowsort
SELECT - ( - 62 ) col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3926
SELECT ALL COALESCE ( + 86, - CAST( - COUNT( ALL + - 96 ) AS SIGNED ), NULLIF ( + 43, - 94 DIV 18 - - 52 ), + 84 + COUNT( * ) DIV 57 + + + CAST( NULL AS SIGNED ) + + 44 * + 84 )
----
86

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL COALESCE ( + 86, - CAST ( - COUNT ( ALL + - 96 ) AS INTEGER ), NULLIF ( + 43, - 94 / 18 - - 52 ), + 84 + COUNT ( * ) / 57 + + + CAST ( NULL AS INTEGER ) + + 44 * + 84 )
----
86

query I rowsort
SELECT - 78 * 21
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - ( + + 47 ) + + MIN( - - 35 )
----
-12

skipif mysql # not compatible
query I rowsort label-3928
SELECT - ( + + 47 ) + + MIN ( - - 35 )
----
-12

query I rowsort
SELECT DISTINCT + 89 * + ( + 65 ) col2
----
5785

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL - COUNT( * ) + - - 65
----
64

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - COUNT ( * ) + - - 65
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT - COUNT( - - 91 ) + + CAST( + 78 AS SIGNED ) / + - 26 + 72 + + - 44 + - 86 * + + ( 85 ) + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT - COUNT ( - - 91 ) + + CAST ( + 78 AS INTEGER ) / + - 26 + 72 + + - 44 + - 86 * + + ( 85 ) + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 48, - + 94 + 59 / ( - 36 ) )
----
48

query I rowsort
SELECT DISTINCT + 90 * - 57 AS col2
----
-5130

query I rowsort
SELECT ALL + NULLIF ( 7, - + NULLIF ( + 46, 82 ) ) AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT - 6 + CAST( 74 AS SIGNED ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3935
SELECT - 6 + CAST ( 74 AS INTEGER ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT 99 * - + ( + NULLIF ( - + COUNT( * ), + - COUNT( * ) ) ) - - NULLIF ( 3, + - 34 + + 28 * 17 ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT 99 * - + ( + NULLIF ( - + COUNT ( * ), + - COUNT ( * ) ) ) - - NULLIF ( 3, + - 34 + + 28 * 17 ) * - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT + ( COUNT( ALL + 92 ) ) * + 70 + + 81 col0
----
151

skipif mysql # not compatible
query I rowsort label-3937
SELECT + ( COUNT ( ALL + 92 ) ) * + 70 + + 81 col0
----
151

query I rowsort
SELECT + 88 + - + 3
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT + 65 + - + CASE 43 WHEN + 68 + 57 / CASE + - 28 WHEN - + 40 * + NULLIF ( 44, - SUM( ALL - - NULLIF ( - 8, + - 44 ) ) ) THEN NULL WHEN - 52 THEN - CAST( - - COUNT( * ) AS SIGNED ) END THEN NULL WHEN + 6 THEN MIN( ALL - 56 ) WHEN + + 89 THEN NULL END * - COUNT( * ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3939
SELECT + 65 + - + CASE 43 WHEN + 68 + 57 / CASE + - 28 WHEN - + 40 * + NULLIF ( 44, - SUM ( ALL - - NULLIF ( - 8, + - 44 ) ) ) THEN NULL WHEN - 52 THEN - CAST ( - - COUNT ( * ) AS INTEGER ) END THEN NULL WHEN + 6 THEN MIN ( ALL - 56 ) WHEN + + 89 THEN NULL END * - COUNT ( * ) + - COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT - 6 DIV - - 74 + + 91
----
91

skipif mysql # not compatible
query I rowsort label-3941
SELECT - 6 / - - 74 + + 91
----
91

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

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL + 6 / COUNT ( * ) + - ( - 77 ) * 84 + - ( + 0 )
----
6474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT + CASE 44 WHEN + - CASE - 97 WHEN - + 79 THEN - 18 WHEN + 4 THEN NULL END + + 65 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN + 39 ELSE + 37 END
----
37

skipif mysql # not compatible
query I rowsort label-3943
SELECT + CASE 44 WHEN + - CASE - 97 WHEN - + 79 THEN - 18 WHEN + 4 THEN NULL END + + 65 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN + 39 ELSE + 37 END
----
37

query I rowsort
SELECT + 29 + 99 AS col2
----
128

query I rowsort
SELECT ALL 40 * - 44 col2
----
-1760

query I rowsort
SELECT + 46 * + 12 AS col0
----
552

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

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

query I rowsort
SELECT ALL 43 * 44 - 8
----
1884

onlyif mysql # DIV for integer division: 
query I rowsort label-3949
SELECT - 0 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-3949
SELECT - 0 / 99
----
0

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

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

query I rowsort
SELECT + - 25 + - 11
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT ALL + 93 * + 61 - + 46 - - 19 + - 34 DIV + ( 76 ) - + - ( + + 41 ) + - 20 + 97 col0
----
5764

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + 93 * + 61 - + 46 - - 19 + - 34 / + ( 76 ) - + - ( + + 41 ) + - 20 + 97 col0
----
5764

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3953
SELECT NULLIF ( 20, + 66 * + + 87 ) * - 36 / + CAST( NULL AS DECIMAL ) * + 58 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT NULLIF ( 20, + 66 * + + 87 ) * - 36 / + CAST ( NULL AS REAL ) * + 58 + + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - COUNT( * ) + + - COALESCE ( + 34, - 77 + - 2 ) + - 52
----
-87

skipif mysql # not compatible
query I rowsort label-3954
SELECT - COUNT ( * ) + + - COALESCE ( + 34, - 77 + - 2 ) + - 52
----
-87

query I rowsort
SELECT 80 + + 2 + - - 55 - + - 92 col2
----
229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3956
SELECT - 31 * + + 56 + - + CAST( NULL AS SIGNED ) + - COALESCE ( COUNT( * ), - + 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT - 31 * + + 56 + - + CAST ( NULL AS INTEGER ) + - COALESCE ( COUNT ( * ), - + 80 ) AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( + - 60, + 20 ) * - - 27 + 90 AS col1
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT COALESCE ( 92, MIN( DISTINCT + - 83 ) * + 57 ) * 59 col1
----
5428

skipif mysql # not compatible
query I rowsort label-3958
SELECT COALESCE ( 92, MIN ( DISTINCT + - 83 ) * + 57 ) * 59 col1
----
5428

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT 49 + 14 DIV - - NULLIF ( 42, - 44 ) + + + 8
----
57

skipif mysql # not compatible
query I rowsort label-3959
SELECT 49 + 14 / - - NULLIF ( 42, - 44 ) + + + 8
----
57

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3961
SELECT 98 DIV - + 23, + 43 + + 74 AS col1
----
-4
117

skipif mysql # not compatible
query II rowsort label-3961
SELECT 98 / - + 23, + 43 + + 74 AS col1
----
-4
117

query I rowsort
SELECT 29 + - ( - 48 ) AS col1
----
77

query I rowsort
SELECT ALL 72 + - ( + 80 )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT 95 DIV + 24
----
3

skipif mysql # not compatible
query I rowsort label-3964
SELECT 95 / + 24
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3965
SELECT ALL - COUNT( * ) + - + COALESCE ( + CAST( NULL AS SIGNED ), - COALESCE ( - 21, + 9 * - 4 * + 64 + - - 87 ) ) * - - 8 - - 53 - + 8 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - COUNT ( * ) + - + COALESCE ( + CAST ( NULL AS INTEGER ), - COALESCE ( - 21, + 9 * - 4 * + 64 + - - 87 ) ) * - - 8 - - 53 - + 8 AS col1
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3966
SELECT - 39, - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - + NULLIF ( + COUNT( * ), 99 * - COUNT( DISTINCT + 32 ) * 44 + ( - 37 ) * ( + - NULLIF ( - + 27, + + 12 ) ) + - MAX( ALL - 32 ) * 46 ) + - 41 AS col0
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-3966
SELECT - 39, - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + NULLIF ( + COUNT ( * ), 99 * - COUNT ( DISTINCT + 32 ) * 44 + ( - 37 ) * ( + - NULLIF ( - + 27, + + 12 ) ) + - MAX ( ALL - 32 ) * 46 ) + - 41 AS col0
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL COUNT( * ) + - COALESCE ( + 23, - NULLIF ( - 40, - 22 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL COUNT ( * ) + - COALESCE ( + 23, - NULLIF ( - 40, - 22 ) )
----
-22

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

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

query I rowsort
SELECT ALL - 31 + + 54
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-3970
SELECT 30 + - 67 + COUNT( * ) AS col1, - COUNT( * ) AS col1
----
-36
-1

skipif mysql # not compatible
query II rowsort label-3970
SELECT 30 + - 67 + COUNT ( * ) AS col1, - COUNT ( * ) AS col1
----
-36
-1

query II rowsort
SELECT 7 AS col2, + 68 + 87
----
7
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT ALL - COUNT( * ) * + 74
----
-74

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL - COUNT ( * ) * + 74
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT 20 * - + CAST( + 12 AS SIGNED ) AS col1
----
-240

skipif mysql # not compatible
query I rowsort label-3973
SELECT 20 * - + CAST ( + 12 AS INTEGER ) AS col1
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 81 * - - 90 + + 18 + + COALESCE ( - 4, 57 - + 51 - - AVG ( ALL - 58 ) / COUNT( * ) + - CASE - 39 WHEN 13 / + NULLIF ( 88, + ( - COUNT( * ) ) ) * + + 33 / + 14 * + ( + 63 ) + - 63 THEN NULLIF ( 85, - - 86 * + 83 - + 81 ) ELSE - 55 END + - + 8 - 48 * ( - CAST( AVG ( - 49 ) AS SIGNED ) ) * - CAST( + + MAX( ALL - 74 ) AS SIGNED ) * + - 40 + + SUM( DISTINCT 25 ) * 48 * - NULLIF ( + ( COALESCE ( CASE COUNT( * ) WHEN - COUNT( ALL ( 7 ) ) THEN + ( + 5 ) * + 62 WHEN + 1 + + MAX( - 29 + 56 ) THEN + 55 ELSE NULL END, 15, + 64 ) ), 87 ) ) + 83 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 81 * - - 90 + + 18 + + COALESCE ( - 4, 57 - + 51 - - AVG ( ALL - 58 ) / COUNT ( * ) + - CASE - 39 WHEN 13 / + NULLIF ( 88, + ( - COUNT ( * ) ) ) * + + 33 / + 14 * + ( + 63 ) + - 63 THEN NULLIF ( 85, - - 86 * + 83 - + 81 ) ELSE - 55 END + - + 8 - 48 * ( - CAST ( AVG ( - 49 ) AS INTEGER ) ) * - CAST ( + + MAX ( ALL - 74 ) AS INTEGER ) * + - 40 + + SUM ( DISTINCT 25 ) * 48 * - NULLIF ( + ( COALESCE ( CASE COUNT ( * ) WHEN - COUNT ( ALL ( 7 ) ) THEN + ( + 5 ) * + 62 WHEN + 1 + + MAX ( - 29 + 56 ) THEN + 55 ELSE NULL END, 15, + 64 ) ), 87 ) ) + 83 * 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL - 41 * + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL - 41 * + COUNT ( * )
----
-41

query I rowsort
SELECT DISTINCT - ( - + 33 )
----
33

query II rowsort
SELECT 14 AS col0, - 59
----
14
-59

query II rowsort
SELECT - CASE 99 WHEN - + 47 / - 34 THEN - + 21 WHEN - 39 * + - 45 THEN NULL ELSE NULL END + + 48, + 41 * + + 31 AS col1
----
NULL
1271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT + - CAST( 45 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-3979
SELECT + - CAST ( 45 AS INTEGER )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL - - 0 - + COUNT( * ) + 49
----
48

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - - 0 - + COUNT ( * ) + 49
----
48

query I rowsort
SELECT 18 - - 83 AS col1
----
101

query I rowsort
SELECT DISTINCT 64 * - - 35 AS col0
----
2240

query I rowsort
SELECT 64 - + 64 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( ( - 0 ) ) * + 40
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT ALL + CAST( NULL AS SIGNED ) * 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + CAST ( NULL AS INTEGER ) * 27 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3986
SELECT + CASE 32 WHEN + 74 THEN + COUNT( * ) + + 60 WHEN COUNT( * ) THEN + CAST( - + COUNT( * ) AS SIGNED ) / 20 WHEN MAX( ALL + - 57 ) + + 88 * + 22 + + 64 + 45 * + 32 THEN + - 2 * + 88 * + - COUNT( * ) / + 39 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT + CASE 32 WHEN + 74 THEN + COUNT ( * ) + + 60 WHEN COUNT ( * ) THEN + CAST ( - + COUNT ( * ) AS INTEGER ) / 20 WHEN MAX ( ALL + - 57 ) + + 88 * + 22 + + 64 + 45 * + 32 THEN + - 2 * + 88 * + - COUNT ( * ) / + 39 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - 84, + ( + + 41 ) AS col2
----
-84
41

query I rowsort
SELECT DISTINCT + 38 * - 54
----
-2052

query II rowsort
SELECT + 42 AS col0, NULLIF ( 48, 74 * + 3 * - - 0 )
----
42
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT - 79 * 99 * - - COUNT( * ) AS col2, COUNT( DISTINCT - 3 ) AS col2
----
-7821
1

skipif mysql # not compatible
query II rowsort label-3990
SELECT - 79 * 99 * - - COUNT ( * ) AS col2, COUNT ( DISTINCT - 3 ) AS col2
----
-7821
1

query I rowsort
SELECT ALL 53 * 87 AS col0
----
4611

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT - 23 * 51 DIV 84 * 27 * 59 AS col1
----
-20709

skipif mysql # not compatible
query I rowsort label-3992
SELECT - 23 * 51 / 84 * 27 * 59 AS col1
----
-20709

query I rowsort
SELECT DISTINCT ( - ( - 41 ) ) AS col2
----
41

query I rowsort
SELECT ALL CASE - 41 WHEN + - 88 THEN NULL ELSE 15 END + + + 48 - + + 80 * + + 99
----
-7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT - + CASE + - 24 WHEN + + 95 THEN NULL WHEN - + 70 THEN + 59 * CAST( - 21 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT - + CASE + - 24 WHEN + + 95 THEN NULL WHEN - + 70 THEN + 59 * CAST ( - 21 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 81 + - + 13 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT COUNT( * ) * + 5 col1
----
5

skipif mysql # not compatible
query I rowsort label-3997
SELECT COUNT ( * ) * + 5 col1
----
5

query I rowsort
SELECT ALL 25 + - 49 * + - 45 AS col1
----
2230

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL COALESCE ( - 56, - - 39 * COUNT( * ) ) + - 94 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL COALESCE ( - 56, - - 39 * COUNT ( * ) ) + - 94 AS col0
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT 30 DIV + - 20 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4000
SELECT 30 / + - 20 AS col0
----
-1

query I rowsort
SELECT ALL 71 + 79 AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT 11 + + - 26 - - 56 - + - ( - + 93 ) * - + ( COUNT( * ) )
----
134

skipif mysql # not compatible
query I rowsort label-4002
SELECT 11 + + - 26 - - 56 - + - ( - + 93 ) * - + ( COUNT ( * ) )
----
134

query II rowsort
SELECT ALL 56 AS col1, - 59 AS col2
----
56
-59

query I rowsort
SELECT COALESCE ( - 77, + 95 ) + + 64 + 57 * - - ( + 82 ) AS col2
----
4661

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT DISTINCT 10 AS col1, + 1 + + + ( + ( - 22 ) ) * + COUNT( * )
----
10
-21

skipif mysql # not compatible
query II rowsort label-4005
SELECT DISTINCT 10 AS col1, + 1 + + + ( + ( - 22 ) ) * + COUNT ( * )
----
10
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4006
SELECT ALL 92 * + - COUNT( DISTINCT 87 ) - - - 60 * COALESCE ( COALESCE ( + 2, 29 + 14, + 3 ), - 92 DIV COUNT( * ), + 65 ) AS col2
----
-212

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL 92 * + - COUNT ( DISTINCT 87 ) - - - 60 * COALESCE ( COALESCE ( + 2, 29 + 14, + 3 ), - 92 / COUNT ( * ), + 65 ) AS col2
----
-212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4007
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) - - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - + 47
----
NULL

query I rowsort
SELECT 20 + - 47 + 86 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT + 70 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT + 70 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT + 91 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4010
SELECT + 91 / + 99 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4011
SELECT + 81 * + 60 * - 95 + 25 - + 31 + - COALESCE ( + 20, + 60 * - - 86 * + COUNT( * ), - + COUNT( - ( + 41 ) ) ) * + + 39 * + 13 * + - AVG ( DISTINCT + CASE - CAST( + 29 AS SIGNED ) WHEN 14 THEN - - 57 WHEN - 29 THEN NULL END ) + - CASE AVG ( ALL + - CAST( NULL AS SIGNED ) ) WHEN + + NULLIF ( + - COALESCE ( 93, + 8 ), 49 * + 27 / CAST( + 40 AS SIGNED ) * COUNT( * ) ) THEN NULL WHEN - 92 THEN + 37 * - ( + - ( + COALESCE ( - 33, - - 71 ) ) ) END + ( 89 ) * - 57 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT + 81 * + 60 * - 95 + 25 - + 31 + - COALESCE ( + 20, + 60 * - - 86 * + COUNT ( * ), - + COUNT ( - ( + 41 ) ) ) * + + 39 * + 13 * + - AVG ( DISTINCT + CASE - CAST ( + 29 AS INTEGER ) WHEN 14 THEN - - 57 WHEN - 29 THEN NULL END ) + - CASE AVG ( ALL + - CAST ( NULL AS INTEGER ) ) WHEN + + NULLIF ( + - COALESCE ( 93, + 8 ), 49 * + 27 / CAST ( + 40 AS INTEGER ) * COUNT ( * ) ) THEN NULL WHEN - 92 THEN + 37 * - ( + - ( + COALESCE ( - 33, - - 71 ) ) ) END + ( 89 ) * - 57 * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 97 * - - ( + - 67 ) + + + 4 col1
----
-6495

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT ALL + 30 col1, COUNT( DISTINCT - + 78 ) col1
----
30
1

skipif mysql # not compatible
query II rowsort label-4013
SELECT ALL + 30 col1, COUNT ( DISTINCT - + 78 ) col1
----
30
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT + + NULLIF ( - + NULLIF ( + COALESCE ( - 73, COUNT( * ) ), - + 21 + - 83 * + 53 ), 19 + + COUNT( * ) - + ( + 1 ) * + + CAST( NULL AS SIGNED ) * + 92 )
----
73

skipif mysql # not compatible
query I rowsort label-4014
SELECT + + NULLIF ( - + NULLIF ( + COALESCE ( - 73, COUNT ( * ) ), - + 21 + - 83 * + 53 ), 19 + + COUNT ( * ) - + ( + 1 ) * + + CAST ( NULL AS INTEGER ) * + 92 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4015
SELECT + 77 DIV + COUNT( * ) + - 11 + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4015
SELECT + 77 / + COUNT ( * ) + - 11 + - COUNT ( * )
----
65

query I rowsort
SELECT - 41 * 1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT COUNT( * ) * - 4 + ( 54 ) + - - 93 + + + MAX( CAST( NULL AS SIGNED ) ) + ( - 81 ) - + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT COUNT ( * ) * - 4 + ( 54 ) + - - 93 + + + MAX ( CAST ( NULL AS INTEGER ) ) + ( - 81 ) - + 5 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4018
SELECT - COUNT( * ) AS col1, COUNT( * ) DIV + ( 68 ) + + + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-4018
SELECT - COUNT ( * ) AS col1, COUNT ( * ) / + ( 68 ) + + + COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT DISTINCT 43 * + + 18 + 97 + - MAX( ALL - + 43 )
----
914

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT 43 * + + 18 + 97 + - MAX ( ALL - + 43 )
----
914

query I rowsort
SELECT ALL + - 37 col0
----
-37

query II rowsort
SELECT + - 79 col1, + 43
----
-79
43

query I rowsort
SELECT - + 79 + + 88 AS col0
----
9

query I rowsort
SELECT - - 4 + + 94
----
98

query I rowsort
SELECT DISTINCT 83 + - 64 * + 2 col2
----
-45

query II rowsort
SELECT ALL ( + + 44 ), 84 * + - 81 * + 23 AS col2
----
44
-156492

query I rowsort
SELECT + 84 * ( - - 10 ) + - - 76 + 70 * + 62 + + 62 - + 73
----
5245

query I rowsort
SELECT ALL + 60 * + 50 + ( 85 ) + - 14 AS col2
----
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT - 2 * + NULLIF ( 26, + - COUNT( * ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT - 2 * + NULLIF ( 26, + - COUNT ( * ) ) AS col0
----
-52

query I rowsort
SELECT + 13 + + + 24 + - - 75 AS col0
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4030
SELECT ALL - 67 + + COUNT( * ) + - 85 * + 36 + + 75 DIV 93 col1
----
-3126

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - 67 + + COUNT ( * ) + - 85 * + 36 + + 75 / 93 col1
----
-3126

onlyif mysql # aggregate syntax: 
query II rowsort label-4031
SELECT DISTINCT 36 * + + ( - 14 ), MAX( DISTINCT - + 24 ) AS col2
----
-504
-24

skipif mysql # not compatible
query II rowsort label-4031
SELECT DISTINCT 36 * + + ( - 14 ), MAX ( DISTINCT - + 24 ) AS col2
----
-504
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT - 1 DIV + 33 * 93 * 83
----
0

skipif mysql # not compatible
query I rowsort label-4032
SELECT - 1 / + 33 * 93 * 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT + 66 + MAX( DISTINCT + 12 ) * - 60
----
-654

skipif mysql # not compatible
query I rowsort label-4033
SELECT + 66 + MAX ( DISTINCT + 12 ) * - 60
----
-654

query I rowsort
SELECT + 77 * - 85 * + ( 97 )
----
-634865

query II rowsort
SELECT DISTINCT ( + 40 ), + 30 AS col1
----
40
30

query I rowsort
SELECT + 47 * - - COALESCE ( - - 7, - 37 ) * - - 62 AS col1
----
20398

query I rowsort
SELECT DISTINCT 59 * + + COALESCE ( 99, - 78 )
----
5841

query I rowsort
SELECT + NULLIF ( - + 30, - - 82 * - 54 ) AS col2
----
-30

query I rowsort
SELECT ALL 58 * + 29
----
1682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4040
SELECT CAST( + + 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4040
SELECT CAST ( + + 43 AS INTEGER ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT ALL ( - - 30 ) * - 43 - - - COUNT( ALL + - 40 ) AS col1, + 68
----
-1291
68

skipif mysql # not compatible
query II rowsort label-4041
SELECT ALL ( - - 30 ) * - 43 - - - COUNT ( ALL + - 40 ) AS col1, + 68
----
-1291
68

query I rowsort
SELECT + ( + NULLIF ( 27, + + 44 ) )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT DISTINCT + 66 DIV + 12 + 70 + 63 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + 66 / + 12 + 70 + 63 AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + 58 * + SUM( DISTINCT - CASE 74 WHEN + 22 * + 69 THEN - - 66 WHEN + + 20 THEN NULL WHEN - 68 THEN - 60 END ) + + COUNT( * ) - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4044
SELECT + 58 * + SUM ( DISTINCT - CASE 74 WHEN + 22 * + 69 THEN - - 66 WHEN + + 20 THEN NULL WHEN - 68 THEN - 60 END ) + + COUNT ( * ) - + 34
----
NULL

query I rowsort
SELECT - 52 * - 97 AS col1
----
5044

onlyif mysql # DIV for integer division: 
query II rowsort label-4046
SELECT ALL - 5 DIV 15, 26 + 28 AS col1
----
0
54

skipif mysql # not compatible
query II rowsort label-4046
SELECT ALL - 5 / 15, 26 + 28 AS col1
----
0
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4047
SELECT - - 94 + + 2 AS col1, - 75 + COUNT( * ) AS col2
----
96
-74

skipif mysql # not compatible
query II rowsort label-4047
SELECT - - 94 + + 2 AS col1, - 75 + COUNT ( * ) AS col2
----
96
-74

onlyif mysql # DIV for integer division: 
query II rowsort label-4048
SELECT + - ( - 51 ) AS col1, 77 DIV + 23 AS col2
----
51
3

skipif mysql # not compatible
query II rowsort label-4048
SELECT + - ( - 51 ) AS col1, 77 / + 23 AS col2
----
51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT - + SUM( 7 ) + MAX( DISTINCT CASE - + 62 WHEN - 65 THEN NULL ELSE + 17 END ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4049
SELECT - + SUM ( 7 ) + MAX ( DISTINCT CASE - + 62 WHEN - 65 THEN NULL ELSE + 17 END ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL + ( + COUNT( * ) ) * + 15 * 50 * - 34 - 17
----
-25517

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL + ( + COUNT ( * ) ) * + 15 * 50 * - 34 - 17
----
-25517

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL - ( 98 ) * + SUM( DISTINCT + 40 ) + - 28 AS col2
----
-3948

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - ( 98 ) * + SUM ( DISTINCT + 40 ) + - 28 AS col2
----
-3948

query I rowsort
SELECT DISTINCT + ( 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT ALL - + 71 * + COUNT( * ) * - 42 + - 21 AS col0
----
2961

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - + 71 * + COUNT ( * ) * - 42 + - 21 AS col0
----
2961

onlyif mysql # aggregate syntax: 
query II rowsort label-4054
SELECT + 98 + ( - COUNT( * ) ) AS col1, ( - 6 ) * + 87 + + + 28 AS col2
----
97
-494

skipif mysql # not compatible
query II rowsort label-4054
SELECT + 98 + ( - COUNT ( * ) ) AS col1, ( - 6 ) * + 87 + + + 28 AS col2
----
97
-494

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT - 68 * 23 DIV - - NULLIF ( - 5, - 39 ) AS col0
----
312

skipif mysql # not compatible
query I rowsort label-4055
SELECT - 68 * 23 / - - NULLIF ( - 5, - 39 ) AS col0
----
312

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4056
SELECT - 13 * + + CASE + 60 WHEN - + ( - 97 ) THEN - + 74 + + ( + 93 ) / - CAST( NULL AS DECIMAL ) ELSE NULL END / - 78 * - 88 AS col1, + 28 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-4056
SELECT - 13 * + + CASE + 60 WHEN - + ( - 97 ) THEN - + 74 + + ( + 93 ) / - CAST ( NULL AS REAL ) ELSE NULL END / - 78 * - 88 AS col1, + 28 AS col0
----
NULL
28

query I rowsort
SELECT - 72 - + + 75 AS col2
----
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT - 33 AS col1, COUNT( * )
----
-33
1

skipif mysql # not compatible
query II rowsort label-4058
SELECT - 33 AS col1, COUNT ( * )
----
-33
1

query I rowsort
SELECT - 1 - 5
----
-6

query I rowsort
SELECT - 60 * + - 0 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT ALL CAST( + CASE 89 WHEN 74 THEN NULL ELSE - ( + 85 ) END AS SIGNED ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL CAST ( + CASE 89 WHEN 74 THEN NULL ELSE - ( + 85 ) END AS INTEGER ) AS col0
----
-85

query II rowsort
SELECT - 90, 90 AS col1
----
-90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 89 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 89 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL - ( 50 ) - + + 52 * + SUM( ALL + 11 ) AS col1
----
-622

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - ( 50 ) - + + 52 * + SUM ( ALL + 11 ) AS col1
----
-622

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - COUNT( * ) * + 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4065
SELECT - COUNT ( * ) * + 23 AS col1
----
-23

query I rowsort
SELECT - 18 + 6
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT 26 DIV 27 col0
----
0

skipif mysql # not compatible
query I rowsort label-4067
SELECT 26 / 27 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT 29 + CASE + COUNT( * ) WHEN 49 THEN 76 END * COUNT( * ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4068
SELECT 29 + CASE + COUNT ( * ) WHEN 49 THEN 76 END * COUNT ( * ) * + 56
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4069
SELECT 66 col1, - 19 + MAX( 80 )
----
66
61

skipif mysql # not compatible
query II rowsort label-4069
SELECT 66 col1, - 19 + MAX ( 80 )
----
66
61

query II rowsort
SELECT ALL 82 * ( 91 ), + 17 AS col0
----
7462
17

query I rowsort
SELECT 36 + + + 63 * + 12 AS col2
----
792

query I rowsort
SELECT 74 * + - 40 AS col2
----
-2960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT 45 + - CAST( + + 12 AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4073
SELECT 45 + - CAST ( + + 12 AS INTEGER ) AS col2
----
33

query I rowsort
SELECT ALL + 19 * + 77 AS col2
----
1463

query I rowsort
SELECT 1 * + + 35 * 91 * + ( - 70 )
----
-222950

query I rowsort
SELECT - 0 + + 62 col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL - COUNT( * ) + + 39 col2
----
38

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL - COUNT ( * ) + + 39 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT - - MIN( + 11 ) col0
----
11

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT - - MIN ( + 11 ) col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT + - 90 * + + MIN( - + 25 ) + - - 29 AS col1
----
2279

skipif mysql # not compatible
query I rowsort label-4079
SELECT + - 90 * + + MIN ( - + 25 ) + - - 29 AS col1
----
2279

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT COALESCE ( + 36, + - ( + + MAX( DISTINCT + 40 ) ) ) * - 29 AS col2
----
-1044

skipif mysql # not compatible
query I rowsort label-4080
SELECT COALESCE ( + 36, + - ( + + MAX ( DISTINCT + 40 ) ) ) * - 29 AS col2
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT + - 19 * + - 15 * + 36 * + - COUNT( * ) * 84 + + 32 + - - 0 * - - 52
----
-861808

skipif mysql # not compatible
query I rowsort label-4081
SELECT + - 19 * + - 15 * + 36 * + - COUNT ( * ) * 84 + + 32 + - - 0 * - - 52
----
-861808

query I rowsort
SELECT DISTINCT 97 + - 68 + + 49 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT + COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ), COUNT( * ) + 71 + - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4083
SELECT + COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ), COUNT ( * ) + 71 + - + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT + 76 * - COUNT( DISTINCT - 66 )
----
-76

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + 76 * - COUNT ( DISTINCT - 66 )
----
-76

query I rowsort
SELECT DISTINCT 15 + - 23 AS col2
----
-8

query II rowsort
SELECT + 33 AS col0, + 47 + + 17
----
33
64

query I rowsort
SELECT ( - NULLIF ( - - 71, - ( 18 ) / 47 * + 71 ) ) AS col0
----
-71

query I rowsort
SELECT ALL + 85 + + 35 AS col1
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4089
SELECT + 18 * - 18 + COUNT( - 0 ) DIV - 44 AS col1
----
-324

skipif mysql # not compatible
query I rowsort label-4089
SELECT + 18 * - 18 + COUNT ( - 0 ) / - 44 AS col1
----
-324

query II rowsort
SELECT ALL - - 42 AS col0, + 34 + - + 82 - - 23 + - 57 * - - NULLIF ( + 88, + 6 - 78 + - 99 * + - 19 + 90 * + + 28 + - 90 - - 55 ) * + 10 * + - 9 - + 97 + + + 51 - + 51
----
42
451318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT - CAST( - 9 AS SIGNED ) + ( 0 ) + + 50 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - CAST ( - 9 AS INTEGER ) + ( 0 ) + + 50 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4092
SELECT DISTINCT - + CASE WHEN NOT - 12 < - MAX( ALL + CAST( NULL AS SIGNED ) ) * - - 4 + + 0 THEN + 7 WHEN NULL IS NULL THEN 79 ELSE + + SUM( ALL - 33 ) END + + 9 AS col1, 45 * 79 + 70 AS col0
----
-70
3625

skipif mysql # not compatible
query II rowsort label-4092
SELECT DISTINCT - + CASE WHEN NOT - 12 < - MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - - 4 + + 0 THEN + 7 WHEN NULL IS NULL THEN 79 ELSE + + SUM ( ALL - 33 ) END + + 9 AS col1, 45 * 79 + 70 AS col0
----
-70
3625

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT DISTINCT 4 * + + 10 * 88 + - 99 - 64 * 68 + 26 * + 8 * COUNT( * ) * - 61 AS col2
----
-13619

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT 4 * + + 10 * 88 + - 99 - 64 * 68 + 26 * + 8 * COUNT ( * ) * - 61 AS col2
----
-13619

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT + 83 DIV 33
----
2

skipif mysql # not compatible
query I rowsort label-4094
SELECT + 83 / 33
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4095
SELECT + 13 * + + CAST( MIN( + 3 ) AS SIGNED ) DIV - - 94 + + + 65 * - 35 * - + 90 DIV + - MIN( DISTINCT + 45 )
----
-4550

skipif mysql # not compatible
query I rowsort label-4095
SELECT + 13 * + + CAST ( MIN ( + 3 ) AS INTEGER ) / - - 94 + + + 65 * - 35 * - + 90 / + - MIN ( DISTINCT + 45 )
----
-4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4096
SELECT ALL 55 - + 4 + - COALESCE ( 34, + + MAX( ALL - 17 ) + + + 19 + 51 + + ( 99 ) / CAST( NULL AS SIGNED ) - + 33 * ( 94 ) * ( CASE 53 WHEN ( - 49 ) * + SUM( DISTINCT + + 3 ) THEN + 98 WHEN + 38 + ( - + 48 ) - + - 86 THEN + 18 + - + 62 + - 41 * 90 / - 95 + + 36 + - + 83 + CAST( 65 AS SIGNED ) / - - 10 END ) ) - + + CAST( NULL AS DECIMAL ) * - 92 / ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL 55 - + 4 + - COALESCE ( 34, + + MAX ( ALL - 17 ) + + + 19 + 51 + + ( 99 ) / CAST ( NULL AS INTEGER ) - + 33 * ( 94 ) * ( CASE 53 WHEN ( - 49 ) * + SUM ( DISTINCT + + 3 ) THEN + 98 WHEN + 38 + ( - + 48 ) - + - 86 THEN + 18 + - + 62 + - 41 * 90 / - 95 + + 36 + - + 83 + CAST ( 65 AS INTEGER ) / - - 10 END ) ) - + + CAST ( NULL AS REAL ) * - 92 / ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT 5 * - - ( - 39 )
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT COUNT( * ) + ( - 4 )
----
-3

skipif mysql # not compatible
query I rowsort label-4098
SELECT COUNT ( * ) + ( - 4 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL + COUNT( * ) * - 32 * - CASE - + 80 WHEN + - 9 THEN NULL WHEN - 31 * + 56 - + 0 THEN - COUNT( * ) * + COUNT( * ) WHEN 69 THEN + 23 WHEN 0 + + 33 THEN 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + COUNT ( * ) * - 32 * - CASE - + 80 WHEN + - 9 THEN NULL WHEN - 31 * + 56 - + 0 THEN - COUNT ( * ) * + COUNT ( * ) WHEN 69 THEN + 23 WHEN 0 + + 33 THEN 11 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4100
SELECT 14 * COALESCE ( + - 65, + 73 * - 90 + - COUNT( * ) + 43, - + 60 ) + + ( - - 64 ) + + 67 DIV - 84 * + 37
----
-846

skipif mysql # not compatible
query I rowsort label-4100
SELECT 14 * COALESCE ( + - 65, + 73 * - 90 + - COUNT ( * ) + 43, - + 60 ) + + ( - - 64 ) + + 67 / - 84 * + 37
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT ( + 30 ) * - 73 - + COUNT( * )
----
-2191

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT ( + 30 ) * - 73 - + COUNT ( * )
----
-2191

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT 46 + - 25 + + COUNT( * ) * 9 AS col1, - 77 AS col1
----
30
-77

skipif mysql # not compatible
query II rowsort label-4102
SELECT 46 + - 25 + + COUNT ( * ) * 9 AS col1, - 77 AS col1
----
30
-77

query I rowsort
SELECT 29 * + + 48 AS col1
----
1392

query I rowsort
SELECT 65 + + 97 col1
----
162

query I rowsort
SELECT 74 + + 82
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT ALL - MIN( + 66 ) + - 65 col0
----
-131

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - MIN ( + 66 ) + - 65 col0
----
-131

query I rowsort
SELECT ALL 28 + + 50 * + + 4
----
228

query I rowsort
SELECT + NULLIF ( + + 88, - + 62 * - 47 + - 30 )
----
88

query I rowsort
SELECT + 51 * + ( + 54 ) AS col0
----
2754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4110
SELECT + CAST( 15 AS SIGNED ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4110
SELECT + CAST ( 15 AS INTEGER ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT ALL - + 74 + + + 27 + - ( - 68 ) DIV + 26 + + 30 * 42 AS col2
----
1215

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL - + 74 + + + 27 + - ( - 68 ) / + 26 + + 30 * 42 AS col2
----
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - COUNT( ALL ( 74 ) ) * 46
----
-46

skipif mysql # not compatible
query I rowsort label-4112
SELECT - COUNT ( ALL ( 74 ) ) * 46
----
-46

query I rowsort
SELECT 87 * - 62 AS col0
----
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL - MAX( DISTINCT 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - MAX ( DISTINCT 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL + 64 * + + 97 + - MAX( - 47 ) AS col2
----
6255

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL + 64 * + + 97 + - MAX ( - 47 ) AS col2
----
6255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT ALL - CAST( + + 33 AS SIGNED ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - CAST ( + + 33 AS INTEGER ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4117
SELECT 56 - - 6 AS col0, ( + COUNT( ALL 88 ) )
----
62
1

skipif mysql # not compatible
query II rowsort label-4117
SELECT 56 - - 6 AS col0, ( + COUNT ( ALL 88 ) )
----
62
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL COUNT( * ) - - - 86 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL COUNT ( * ) - - - 86 AS col0
----
-85

query I rowsort
SELECT DISTINCT + 54 * 73 AS col0
----
3942

query I rowsort
SELECT ALL 48 * + + 26
----
1248

query I rowsort
SELECT 21 * - 88 AS col1
----
-1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4122
SELECT COUNT( * ) DIV + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT COUNT ( * ) / + 91 AS col0
----
0

query I rowsort
SELECT + NULLIF ( - NULLIF ( + 23, - 8 + 76 ), - 26 ) col1
----
-23

query II rowsort
SELECT 91 AS col1, - 97
----
91
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT COUNT( * ) + - 8 * + + 40 AS col0
----
-319

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT COUNT ( * ) + - 8 * + + 40 AS col0
----
-319

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT + 71 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-4126
SELECT + 71 / 71
----
1

query I rowsort
SELECT + 88 - - 59 AS col1
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-4128
SELECT DISTINCT 0 DIV + 64
----
0

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT 0 / + 64
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4129
SELECT DISTINCT COALESCE ( + CAST( - CASE + 2 WHEN - 23 * 80 THEN - 20 * - - ( + 95 ) ELSE NULL END AS SIGNED ), - 39, + 51 * - 59 + - 90 - - - 23 + + 21 + + 6 + + + COUNT( * ) DIV + - 7 * + 61 * - - ( + + 58 ) * + + 73 + 12 ) + 79
----
40

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT COALESCE ( + CAST ( - CASE + 2 WHEN - 23 * 80 THEN - 20 * - - ( + 95 ) ELSE NULL END AS INTEGER ), - 39, + 51 * - 59 + - 90 - - - 23 + + 21 + + 6 + + + COUNT ( * ) / + - 7 * + 61 * - - ( + + 58 ) * + + 73 + 12 ) + 79
----
40

query II rowsort
SELECT + 17 * - 17 * + 84 AS col2, - 75 + + - 54
----
-24276
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT DISTINCT MAX( DISTINCT - + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4131
SELECT DISTINCT MAX ( DISTINCT - + 30 )
----
-30

query II rowsort
SELECT - 72 col2, + 26 * 5 + - 60 AS col1
----
-72
70

query I rowsort
SELECT ALL 99 + 18 AS col2
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-4134
SELECT + COUNT( * ) + - SUM( DISTINCT + 10 ) col0, - 28 + 10 AS col0
----
-9
-18

skipif mysql # not compatible
query II rowsort label-4134
SELECT + COUNT ( * ) + - SUM ( DISTINCT + 10 ) col0, - 28 + 10 AS col0
----
-9
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - ( + + COUNT( * ) ) - + 21 * 83
----
-1744

skipif mysql # not compatible
query I rowsort label-4135
SELECT - ( + + COUNT ( * ) ) - + 21 * 83
----
-1744

query I rowsort
SELECT + 35 + - 68 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT - COALESCE ( - 92, + - 11 * + 12 ) * - + COUNT( * ), 80 AS col0
----
-92
80

skipif mysql # not compatible
query II rowsort label-4137
SELECT - COALESCE ( - 92, + - 11 * + 12 ) * - + COUNT ( * ), 80 AS col0
----
-92
80

query II rowsort
SELECT + 95 AS col0, 54
----
95
54

query I rowsort
SELECT + 49 + - + 83
----
-34

query I rowsort
SELECT + - 12 + + 54
----
42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4141
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + 63 + + CAST( NULL AS SIGNED ) AS col2, 81 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-4141
SELECT DISTINCT CAST ( NULL AS REAL ) + - + 63 + + CAST ( NULL AS INTEGER ) AS col2, 81 AS col0
----
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT - - 63 + + MIN( DISTINCT 97 ) + + + 3 * + - 34 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-4142
SELECT - - 63 + + MIN ( DISTINCT 97 ) + + + 3 * + - 34 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL + - COUNT( * ) - - + 30 col1
----
29

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL + - COUNT ( * ) - - + 30 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT - MIN( DISTINCT + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT - MIN ( DISTINCT + 89 )
----
-89

query I rowsort
SELECT ALL + 77 - - + 18 AS col1
----
95

query II rowsort
SELECT + 2, 55 AS col0
----
2
55

query I rowsort
SELECT ALL + 16 * + - 9 - 69 AS col0
----
-213

query I rowsort
SELECT + + 5 * 30 AS col0
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT + 48 + + SUM( ALL + 13 ) * + COALESCE ( - 65, + + 32 ) DIV + 32 + 83
----
105

skipif mysql # not compatible
query I rowsort label-4149
SELECT + 48 + + SUM ( ALL + 13 ) * + COALESCE ( - 65, + + 32 ) / + 32 + 83
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4150
SELECT DISTINCT + COUNT( DISTINCT 69 ) * + CASE + + 46 WHEN + 39 + 29 / ( + ( + 14 ) ) THEN - 87 + - ( + 55 ) WHEN 70 * - 88 * - - 36 THEN - - 71 WHEN + + 58 * + + 9 * + 84 + 83 * - + 55 - ( - 28 ) - 18 THEN - 21 / - - 22 * 92 + + 39 * - 65 END / - + 3 * + - 59 / + + 98 + - 41 AS col0, - 83 AS col1
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-4150
SELECT DISTINCT + COUNT ( DISTINCT 69 ) * + CASE + + 46 WHEN + 39 + 29 / ( + ( + 14 ) ) THEN - 87 + - ( + 55 ) WHEN 70 * - 88 * - - 36 THEN - - 71 WHEN + + 58 * + + 9 * + 84 + 83 * - + 55 - ( - 28 ) - 18 THEN - 21 / - - 22 * 92 + + 39 * - 65 END / - + 3 * + - 59 / + + 98 + - 41 AS col0, - 83 AS col1
----
NULL
-83

query I rowsort
SELECT DISTINCT - NULLIF ( 25, - 45 ) * - + 69 * - + 16 * + ( 24 )
----
-662400

query I rowsort
SELECT - + 44 * 32 AS col0
----
-1408

onlyif mysql # aggregate syntax: 
query II rowsort label-4153
SELECT DISTINCT + 91 AS col0, COUNT( * ) + + 23 + - + 2 + - 32 AS col1
----
91
-10

skipif mysql # not compatible
query II rowsort label-4153
SELECT DISTINCT + 91 AS col0, COUNT ( * ) + + 23 + - + 2 + - 32 AS col1
----
91
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT + ( + SUM( - ( + ( + + 97 ) ) ) )
----
-97

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + ( + SUM ( - ( + ( + + 97 ) ) ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT CASE - COUNT( + + 25 ) WHEN - 77 * + 54 - - - 38 THEN - COUNT( * ) - + + NULLIF ( - 3, - + 84 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT CASE - COUNT ( + + 25 ) WHEN - 77 * + 54 - - - 38 THEN - COUNT ( * ) - + + NULLIF ( - 3, - + 84 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT ALL + CAST( 31 AS SIGNED ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL + CAST ( 31 AS INTEGER ) AS col2
----
31

query I rowsort
SELECT + NULLIF ( - 55, + + 83 * + 44 )
----
-55

query I rowsort
SELECT - 95 * - - 62
----
-5890

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT ALL - CASE 9 WHEN 72 * - - 85 THEN NULL WHEN + 65 THEN - 21 + - 87 END * - 49 + - + COUNT( * ) * + COALESCE ( + 75, 95 + + 14 ) / 60 + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL - CASE 9 WHEN 72 * - - 85 THEN NULL WHEN + 65 THEN - 21 + - 87 END * - 49 + - + COUNT ( * ) * + COALESCE ( + 75, 95 + + 14 ) / 60 + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + ( + CASE MIN( DISTINCT + 15 ) WHEN - - 67 * - CASE COUNT( * ) WHEN 94 THEN + 21 WHEN + 51 THEN NULL ELSE + 13 END * + + 92 THEN + - COUNT( * ) * 37 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT + ( + CASE MIN ( DISTINCT + 15 ) WHEN - - 67 * - CASE COUNT ( * ) WHEN 94 THEN + 21 WHEN + 51 THEN NULL ELSE + 13 END * + + 92 THEN + - COUNT ( * ) * 37 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4161
SELECT + 65 + - - 98 AS col0, CASE + 75 WHEN - 34 * - - CAST( NULL AS SIGNED ) + + + 7 + + 31 + - - 30 THEN NULL WHEN - 64 THEN 80 END
----
163
NULL

skipif mysql # not compatible
query II rowsort label-4161
SELECT + 65 + - - 98 AS col0, CASE + 75 WHEN - 34 * - - CAST ( NULL AS INTEGER ) + + + 7 + + 31 + - - 30 THEN NULL WHEN - 64 THEN 80 END
----
163
NULL

query I rowsort
SELECT ALL + 5 * + 54 * + 98 + - 40 AS col2
----
26420

query II rowsort
SELECT DISTINCT 11 AS col1, 54 AS col0
----
11
54

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4164
SELECT ALL 27 * + 65 * CAST( NULL AS DECIMAL ) / + - CAST( NULL AS SIGNED ) + + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL 27 * + 65 * CAST ( NULL AS REAL ) / + - CAST ( NULL AS INTEGER ) + + + 52
----
NULL

query II rowsort
SELECT ALL 17, + 73 AS col0
----
17
73

query I rowsort
SELECT DISTINCT 58 + - + 74 AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4167
SELECT + ( - - MIN( + + 20 ) ) * - CASE - 30 WHEN - - COUNT( * ) - COUNT( * ) THEN ( 21 ) / + AVG ( + CAST( - - ( - - 14 ) AS SIGNED ) ) WHEN - 88 THEN NULL END * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT + ( - - MIN ( + + 20 ) ) * - CASE - 30 WHEN - - COUNT ( * ) - COUNT ( * ) THEN ( 21 ) / + AVG ( + CAST ( - - ( - - 14 ) AS INTEGER ) ) WHEN - 88 THEN NULL END * + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT - CASE 85 WHEN - + COUNT( * ) THEN - 21 ELSE - - COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4168
SELECT - CASE 85 WHEN - + COUNT ( * ) THEN - 21 ELSE - - COUNT ( * ) END AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT ALL 93 + + 34 + - + 22 - - 64 DIV - ( COALESCE ( - 91, - 42, - ( + + 62 ), + 1 ) ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL 93 + + 34 + - + 22 - - 64 / - ( COALESCE ( - 91, - 42, - ( + + 62 ), + 1 ) ) AS col2
----
105

query II rowsort
SELECT + + 52 + - 75 AS col1, + 88 + - 69 * + 77
----
-23
-5225

query I rowsort
SELECT + - CASE 45 WHEN 56 THEN 53 WHEN 84 THEN NULL ELSE NULL END * + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4172
SELECT ALL - ( - 19 ) DIV 33 * + - 26 * + 83 DIV + 35 AS col2, - COUNT( * ) - + 80 + + 33
----
0
-48

skipif mysql # not compatible
query II rowsort label-4172
SELECT ALL - ( - 19 ) / 33 * + - 26 * + 83 / + 35 AS col2, - COUNT ( * ) - + 80 + + 33
----
0
-48

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4173
SELECT + + 66 DIV - + 23 AS col0, CAST( NULL AS DECIMAL ) * 75 * - 32 AS col1
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-4173
SELECT + + 66 / - + 23 AS col0, CAST ( NULL AS REAL ) * 75 * - 32 AS col1
----
-2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4174
SELECT - CAST( NULL AS SIGNED ) AS col0, SUM( DISTINCT - 87 )
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-4174
SELECT - CAST ( NULL AS INTEGER ) AS col0, SUM ( DISTINCT - 87 )
----
NULL
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-4175
SELECT ALL + - 7 - - 54 DIV 42 + ( - + ( - 99 ) ) + - 50 col0, + 82 + 73
----
43
155

skipif mysql # not compatible
query II rowsort label-4175
SELECT ALL + - 7 - - 54 / 42 + ( - + ( - 99 ) ) + - 50 col0, + 82 + 73
----
43
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT NULLIF ( + 14, + CAST( - 36 AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-4176
SELECT NULLIF ( + 14, + CAST ( - 36 AS INTEGER ) )
----
14

query I rowsort
SELECT ALL 66 * + 87
----
5742

query I rowsort
SELECT DISTINCT ( 24 ) AS col2
----
24

query II rowsort
SELECT - - 86, + CASE + - 95 WHEN 70 THEN NULL ELSE + 84 END AS col1
----
86
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT ALL + CAST( - + 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + CAST ( - + 60 AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT - - 90 - - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4181
SELECT - - 90 - - COUNT ( * )
----
91

query II rowsort
SELECT ALL + - 55 AS col1, - 52 AS col1
----
-55
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT NULLIF ( CASE - - 64 WHEN - COUNT( * ) * 50 / 2 + - + 74 * - - COUNT( * ) THEN + ( + 72 ) END, - 37 * CAST( NULL AS SIGNED ) + + 35 + + COUNT( * ) - - CASE - 75 WHEN - - 24 + 6 + + ( + COUNT( * ) ) THEN - 8 - - - CAST( NULL AS SIGNED ) END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT NULLIF ( CASE - - 64 WHEN - COUNT ( * ) * 50 / 2 + - + 74 * - - COUNT ( * ) THEN + ( + 72 ) END, - 37 * CAST ( NULL AS INTEGER ) + + 35 + + COUNT ( * ) - - CASE - 75 WHEN - - 24 + 6 + + ( + COUNT ( * ) ) THEN - 8 - - - CAST ( NULL AS INTEGER ) END ) col0
----
NULL

query II rowsort
SELECT + 59 AS col1, - 16 AS col1
----
59
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4185
SELECT ALL + + 27 DIV - COUNT( * ) + 84
----
57

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + + 27 / - COUNT ( * ) + 84
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT DISTINCT + CASE - + CAST( ( + + COUNT( ALL 71 ) ) AS SIGNED ) WHEN + 41 * 77 THEN - 0 WHEN + 59 * 65 * + 36 - - - CASE - 99 WHEN - + 9 * - 83 / 17 * - COUNT( * ) * - 13 + COUNT( * ) THEN ( COUNT( + + 72 ) ) - 89 WHEN 26 - + + 39 THEN NULL END THEN 49 END + 69 * - + 13 * 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT + CASE - + CAST ( ( + + COUNT ( ALL 71 ) ) AS INTEGER ) WHEN + 41 * 77 THEN - 0 WHEN + 59 * 65 * + 36 - - - CASE - 99 WHEN - + 9 * - 83 / 17 * - COUNT ( * ) * - 13 + COUNT ( * ) THEN ( COUNT ( + + 72 ) ) - 89 WHEN 26 - + + 39 THEN NULL END THEN 49 END + 69 * - + 13 * 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT - 31 * - NULLIF ( - MAX( - 90 ), COUNT( * ) ) + - COALESCE ( + NULLIF ( 98, + COUNT( * ) ), - - MAX( DISTINCT 2 ) ) AS col0
----
2692

skipif mysql # not compatible
query I rowsort label-4187
SELECT - 31 * - NULLIF ( - MAX ( - 90 ), COUNT ( * ) ) + - COALESCE ( + NULLIF ( 98, + COUNT ( * ) ), - - MAX ( DISTINCT 2 ) ) AS col0
----
2692

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT 49 - - 8 DIV 46
----
49

skipif mysql # not compatible
query I rowsort label-4188
SELECT 49 - - 8 / 46
----
49

query II rowsort
SELECT ALL + 19 + - 1, - 45 AS col1
----
18
-45

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4190
SELECT 46 DIV + - CAST( 87 AS SIGNED ) AS col1, 61 - CAST( NULL AS SIGNED ) DIV - NULLIF ( + 2, - 66 * 35 - 52 ) + - - ( 66 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4190
SELECT 46 / + - CAST ( 87 AS INTEGER ) AS col1, 61 - CAST ( NULL AS INTEGER ) / - NULLIF ( + 2, - 66 * 35 - 52 ) + - - ( 66 )
----
0
NULL

query I rowsort
SELECT DISTINCT + ( - 85 ) + - 83
----
-168

query I rowsort
SELECT ALL - 92 * + 38 AS col0
----
-3496

onlyif mysql # aggregate syntax: 
query II rowsort label-4193
SELECT 55 * COUNT( DISTINCT - 56 ), 28 AS col0
----
55
28

skipif mysql # not compatible
query II rowsort label-4193
SELECT 55 * COUNT ( DISTINCT - 56 ), 28 AS col0
----
55
28

query I rowsort
SELECT DISTINCT 53 + + 71 col1
----
124

query I rowsort
SELECT DISTINCT + ( - + 19 ) * - + ( - - 76 )
----
1444

query I rowsort
SELECT ALL - 20 + + 72 AS col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT DISTINCT - 2 + - 60 - - - COALESCE ( - 30, 86 ) + - - 99 DIV 61
----
-31

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT - 2 + - 60 - - - COALESCE ( - 30, 86 ) + - - 99 / 61
----
-31

query II rowsort
SELECT DISTINCT + 47 + + 87 * - - 0 col1, + 6 AS col2
----
47
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4199
SELECT 70 - MAX( DISTINCT 24 ) * + - 74 DIV - COUNT( * )
----
-1706

skipif mysql # not compatible
query I rowsort label-4199
SELECT 70 - MAX ( DISTINCT 24 ) * + - 74 / - COUNT ( * )
----
-1706

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT MIN( ALL + 50 ) * + 53 + + - 32 - MAX( DISTINCT 86 ) AS col0
----
2532

skipif mysql # not compatible
query I rowsort label-4200
SELECT MIN ( ALL + 50 ) * + 53 + + - 32 - MAX ( DISTINCT 86 ) AS col0
----
2532

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL - 90 - + COUNT( + 80 )
----
-91

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - 90 - + COUNT ( + 80 )
----
-91

query I rowsort
SELECT DISTINCT + 99 * - 47 AS col2
----
-4653

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4203
SELECT + 76 - - CAST( - COUNT( * ) AS SIGNED ) AS col0, - 87 - - 2 * + 16 AS col1
----
75
-55

skipif mysql # not compatible
query II rowsort label-4203
SELECT + 76 - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0, - 87 - - 2 * + 16 AS col1
----
75
-55

query I rowsort
SELECT 31 * + 92 + + 94 AS col2
----
2946

query I rowsort
SELECT + 20 + + + 81 + - 45 * + + 52 AS col0
----
-2239

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT 49 * - COUNT( * ) * 69
----
-3381

skipif mysql # not compatible
query I rowsort label-4206
SELECT 49 * - COUNT ( * ) * 69
----
-3381

query I rowsort
SELECT - ( - 70 ) * + - 7 AS col2
----
-490

query I rowsort
SELECT ( - 75 ) * 33
----
-2475

query I rowsort
SELECT + NULLIF ( 41, + 60 ) * - + 17 * + 26 AS col2
----
-18122

query I rowsort
SELECT - ( ( 13 ) ) + 45 AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT DISTINCT + 55 DIV 92 * + ( + + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT + 55 / 92 * + ( + + 85 )
----
0

query I rowsort
SELECT - 83 + 60 AS col1
----
-23

query I rowsort
SELECT DISTINCT + - 25 * - 9 + 56 AS col0
----
281

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4214
SELECT 80 + - 65 DIV 45 AS col2, - COUNT( * )
----
79
-1

skipif mysql # not compatible
query II rowsort label-4214
SELECT 80 + - 65 / 45 AS col2, - COUNT ( * )
----
79
-1

query I rowsort
SELECT ALL 66 + + - 22
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT - SUM( + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-4216
SELECT - SUM ( + 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT - - COUNT( * ) * + ( + NULLIF ( - COUNT( * ), - COUNT( * ) ) ) + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT - - COUNT ( * ) * + ( + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) ) + + 97
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT CAST( + 97 AS SIGNED ) col1
----
97

skipif mysql # not compatible
query I rowsort label-4218
SELECT CAST ( + 97 AS INTEGER ) col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4219
SELECT SUM( - 43 ) * 87 + - 9 AS col2, 52 AS col1
----
-3750
52

skipif mysql # not compatible
query II rowsort label-4219
SELECT SUM ( - 43 ) * 87 + - 9 AS col2, 52 AS col1
----
-3750
52

query I rowsort
SELECT ALL 83 + 88 AS col2
----
171

query I rowsort
SELECT DISTINCT ( + 76 ) + + + NULLIF ( 93, - - 54 ) + + - 99 AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT ALL CAST( NULL AS SIGNED ) * 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL CAST ( NULL AS INTEGER ) * 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + MIN( + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4223
SELECT + MIN ( + 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT + 6 * - COUNT( * ) * + - 17 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT + 6 * - COUNT ( * ) * + - 17 AS col1
----
102

query I rowsort
SELECT ALL 82 + 99 AS col0
----
181

query I rowsort
SELECT 74 * + - 79 AS col2
----
-5846

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT 80 + - ( + 63 ) AS col0, + CASE 69 WHEN - 74 THEN NULL WHEN COUNT( * ) THEN ( - 44 ) ELSE NULL END AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-4227
SELECT 80 + - ( + 63 ) AS col0, + CASE 69 WHEN - 74 THEN NULL WHEN COUNT ( * ) THEN ( - 44 ) ELSE NULL END AS col2
----
17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4228
SELECT DISTINCT - 15 - - + 71 + + 69 * + 83 AS col0, 8 * + + CAST( NULL AS SIGNED ) AS col1
----
5783
NULL

skipif mysql # not compatible
query II rowsort label-4228
SELECT DISTINCT - 15 - - + 71 + + 69 * + 83 AS col0, 8 * + + CAST ( NULL AS INTEGER ) AS col1
----
5783
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + MIN( ALL 64 ) col0
----
64

skipif mysql # not compatible
query I rowsort label-4229
SELECT + MIN ( ALL 64 ) col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT + CAST( NULL AS SIGNED ) * + 23 / - 28 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT + CAST ( NULL AS INTEGER ) * + 23 / - 28 + 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT 64 * + MAX( DISTINCT + 16 ) AS col2, 16
----
1024
16

skipif mysql # not compatible
query II rowsort label-4231
SELECT 64 * + MAX ( DISTINCT + 16 ) AS col2, 16
----
1024
16

query I rowsort
SELECT DISTINCT - ( 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT DISTINCT + 44 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT + 44 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT - MIN( DISTINCT + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT - MIN ( DISTINCT + 0 )
----
0

query I rowsort
SELECT ALL + + 36 * - 44
----
-1584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT - + 25 * - 47 + + COALESCE ( + CAST( + 80 AS SIGNED ), + + 70 * - MAX( 89 ) ) - + - 87
----
1342

skipif mysql # not compatible
query I rowsort label-4236
SELECT - + 25 * - 47 + + COALESCE ( + CAST ( + 80 AS INTEGER ), + + 70 * - MAX ( 89 ) ) - + - 87
----
1342

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + COUNT( * ) * - 72 * - 11 + + COUNT( * ) - COUNT( * )
----
792

skipif mysql # not compatible
query I rowsort label-4237
SELECT + COUNT ( * ) * - 72 * - 11 + + COUNT ( * ) - COUNT ( * )
----
792

query I rowsort
SELECT 77 + + 51 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT - 1 + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT - 1 + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL - COUNT( * ) * 85 + 31
----
-54

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL - COUNT ( * ) * 85 + 31
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT - NULLIF ( - SUM( DISTINCT 14 ), + 63 * - + 51 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4241
SELECT - NULLIF ( - SUM ( DISTINCT 14 ), + 63 * - + 51 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT 48 * + 0 * 33 + + - MAX( DISTINCT + 30 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-4242
SELECT 48 * + 0 * 33 + + - MAX ( DISTINCT + 30 ) col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - - 88 - - - 27 + + COUNT( * ) * + + 87 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-4243
SELECT - - 88 - - - 27 + + COUNT ( * ) * + + 87 AS col1
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT - CAST( + - 69 AS SIGNED ) col1
----
69

skipif mysql # not compatible
query I rowsort label-4244
SELECT - CAST ( + - 69 AS INTEGER ) col1
----
69

query I rowsort
SELECT - + 13 - - + 47 AS col2
----
34

query II rowsort
SELECT ALL + 69 AS col0, + 37 + + + 7 AS col1
----
69
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT + COUNT( * ) * + 43 * + NULLIF ( - - 9, + + ( + ( + COUNT( * ) ) ) / 91 - + COUNT( * ) ) + + 63 AS col1
----
450

skipif mysql # not compatible
query I rowsort label-4247
SELECT + COUNT ( * ) * + 43 * + NULLIF ( - - 9, + + ( + ( + COUNT ( * ) ) ) / 91 - + COUNT ( * ) ) + + 63 AS col1
----
450

onlyif mysql # aggregate syntax: 
query II rowsort label-4248
SELECT DISTINCT 84 + + MAX( ALL + 79 ) + 36 AS col2, + COUNT( * ) AS col0
----
199
1

skipif mysql # not compatible
query II rowsort label-4248
SELECT DISTINCT 84 + + MAX ( ALL + 79 ) + 36 AS col2, + COUNT ( * ) AS col0
----
199
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL 36 * + - COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL 36 * + - COUNT ( * ) AS col2
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4250
SELECT DISTINCT COUNT( * ) DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT COUNT ( * ) / + 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - 88 + - COUNT( * ) * - 89
----
1

skipif mysql # not compatible
query I rowsort label-4251
SELECT - 88 + - COUNT ( * ) * - 89
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT + COALESCE ( + 49, - SUM( + + 0 ) )
----
49

skipif mysql # not compatible
query I rowsort label-4252
SELECT + COALESCE ( + 49, - SUM ( + + 0 ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT + 28 * - CAST( NULL AS SIGNED ) * 52 * 90 + + + 40 * + 49 * + - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT + 28 * - CAST ( NULL AS INTEGER ) * 52 * 90 + + + 40 * + 49 * + - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT + 70 - - COUNT( * ) * - - 77 col2
----
147

skipif mysql # not compatible
query I rowsort label-4254
SELECT + 70 - - COUNT ( * ) * - - 77 col2
----
147

query I rowsort
SELECT ALL 76 * 24
----
1824

query II rowsort
SELECT + 88 + + 35 AS col0, 46 * 70
----
123
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT + 2 * - 86 - - 50 * - 4 * - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4257
SELECT + 2 * - 86 - - 50 * - 4 * - COUNT ( * )
----
28

query I rowsort
SELECT DISTINCT ( - 82 ) * + 70 - - 62 * 44
----
-3012

query II rowsort
SELECT ALL 40 * + 71 AS col0, 25
----
2840
25

query I rowsort
SELECT + COALESCE ( 41, + 77 ) AS col0
----
41

query II rowsort
SELECT + NULLIF ( - 27, - 47 ) + - - 56 col1, 79 AS col1
----
29
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4262
SELECT ALL + MAX( + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + MAX ( + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT SUM( ALL + - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4263
SELECT SUM ( ALL + - 14 )
----
-14

query I rowsort
SELECT - 4 * 85
----
-340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4265
SELECT 93 * - COUNT( * ) * + MIN( CAST( + 60 AS SIGNED ) ) + 85 AS col2
----
-5495

skipif mysql # not compatible
query I rowsort label-4265
SELECT 93 * - COUNT ( * ) * + MIN ( CAST ( + 60 AS INTEGER ) ) + 85 AS col2
----
-5495

query I rowsort
SELECT DISTINCT + - ( - 40 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4267
SELECT + CASE + ( 36 ) WHEN + - COALESCE ( 89, + 91 - - 43 ) THEN + 43 / - 80 * + 90 * + 85 / + 55 * CAST( + 9 AS DECIMAL ) * + 0 * - 89 + + + 50 END + 17 - 18 / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT + CASE + ( 36 ) WHEN + - COALESCE ( 89, + 91 - - 43 ) THEN + 43 / - 80 * + 90 * + 85 / + 55 * CAST ( + 9 AS REAL ) * + 0 * - 89 + + + 50 END + 17 - 18 / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + 2 * - 29 * + 24
----
-1392

query I rowsort
SELECT - 71 * + 99
----
-7029

query I rowsort
SELECT + + 27 - 23 * + 31 + 30 + + 73 + - + 85 - + 20
----
-688

query I rowsort
SELECT ALL + 58 + 82 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT - - 52 - - NULLIF ( + COUNT( * ), - 2 )
----
53

skipif mysql # not compatible
query I rowsort label-4272
SELECT - - 52 - - NULLIF ( + COUNT ( * ), - 2 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT - COUNT( * ) * - 50 + + + ( 62 ) + 44
----
156

skipif mysql # not compatible
query I rowsort label-4273
SELECT - COUNT ( * ) * - 50 + + + ( 62 ) + 44
----
156

query I rowsort
SELECT ALL - 8 + + 71 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT - - COUNT( * ) * ( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4275
SELECT - - COUNT ( * ) * ( 0 ) AS col0
----
0

query I rowsort
SELECT ALL - 97 + 17 AS col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4277
SELECT - + 28 DIV + 34 * + + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT - + 28 / + 34 * + + 95 AS col1
----
0

query I rowsort
SELECT - 74 - 10 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - 18 + - + SUM( - NULLIF ( ( - 7 ), 27 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4279
SELECT - 18 + - + SUM ( - NULLIF ( ( - 7 ), 27 ) ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT - ( + + 27 ) - - + CAST( - - 63 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4280
SELECT - ( + + 27 ) - - + CAST ( - - 63 AS INTEGER ) AS col1
----
36

query I rowsort
SELECT - 31 + - 50 col0
----
-81

query I rowsort
SELECT - 1 - - ( + + 53 )
----
52

query I rowsort
SELECT CASE 32 WHEN 22 THEN - 69 WHEN + + 56 + + + 44 * + - 30 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT ALL - - ( NULLIF ( + 95, 33 ) ) + + 37 + + 11 + 67 + - 37 + + CAST( 71 AS SIGNED )
----
244

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - - ( NULLIF ( + 95, 33 ) ) + + 37 + + 11 + 67 + - 37 + + CAST ( 71 AS INTEGER )
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT - + MAX( - 58 ) + + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4285
SELECT - + MAX ( - 58 ) + + COUNT ( * ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT ALL COALESCE ( - 79, - - CAST( + 99 AS SIGNED ) - - + 78 + - COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL COALESCE ( - 79, - - CAST ( + 99 AS INTEGER ) - - + 78 + - COUNT ( * ) )
----
-79

query I rowsort
SELECT DISTINCT ( + 79 ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4288
SELECT ALL - 33 - - CAST( 73 AS SIGNED ) DIV - - 92 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - 33 - - CAST ( 73 AS INTEGER ) / - - 92 AS col2
----
-33

query I rowsort
SELECT - 18 * - 33 AS col1
----
594

query I rowsort
SELECT DISTINCT - 15 - + 97 * - - 34 AS col1
----
-3313

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4291
SELECT ALL + CAST( NULL AS SIGNED ), + 25 col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-4291
SELECT ALL + CAST ( NULL AS INTEGER ), + 25 col2
----
NULL
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT - 43 / - 85 + - 53 - - 24 + + 18 * - - CASE - + NULLIF ( + + COUNT( * ), + COUNT( * ) ) WHEN MIN( + 41 ) + - 65 * ( + 8 ) THEN NULL WHEN - 57 * - 38 THEN NULL WHEN + + COUNT( * ) THEN + 82 ELSE NULL END * + - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4292
SELECT - 43 / - 85 + - 53 - - 24 + + 18 * - - CASE - + NULLIF ( + + COUNT ( * ), + COUNT ( * ) ) WHEN MIN ( + 41 ) + - 65 * ( + 8 ) THEN NULL WHEN - 57 * - 38 THEN NULL WHEN + + COUNT ( * ) THEN + 82 ELSE NULL END * + - 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4293
SELECT - 82 * - COUNT( 58 ), 87 AS col2
----
82
87

skipif mysql # not compatible
query II rowsort label-4293
SELECT - 82 * - COUNT ( 58 ), 87 AS col2
----
82
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4294
SELECT DISTINCT + 26 col1, ( + 99 ) AS col0, - NULLIF ( SUM( ALL CAST( NULL AS SIGNED ) ), - 80 ) AS col0
----
26
99
NULL

skipif mysql # not compatible
query III rowsort label-4294
SELECT DISTINCT + 26 col1, ( + 99 ) AS col0, - NULLIF ( SUM ( ALL CAST ( NULL AS INTEGER ) ), - 80 ) AS col0
----
26
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT + 98 * + COUNT( * ) + + 70
----
168

skipif mysql # not compatible
query I rowsort label-4295
SELECT + 98 * + COUNT ( * ) + + 70
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-4296
SELECT ALL + 71 DIV + + 80 * - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + 71 / + + 80 * - 56 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT + ( - 29 ) DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4297
SELECT + ( - 29 ) / + 66 AS col2
----
0

query I rowsort
SELECT + 81 * + 96
----
7776

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - 93 * - - 50 * + 49 * - MIN( ALL 88 )
----
20050800

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 93 * - - 50 * + 49 * - MIN ( ALL 88 )
----
20050800

query I rowsort
SELECT + 98 + + 52
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + 51 * + COUNT( DISTINCT - 35 )
----
51

skipif mysql # not compatible
query I rowsort label-4301
SELECT + 51 * + COUNT ( DISTINCT - 35 )
----
51

query I rowsort
SELECT + 62 + - 60 AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4303
SELECT DISTINCT ( 11 ) * 28 + COALESCE ( CAST( NULL AS SIGNED ), ( NULLIF ( 3, 49 / 7 - MIN( 52 ) * + 57 ) ) ) AS col1
----
311

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT ( 11 ) * 28 + COALESCE ( CAST ( NULL AS INTEGER ), ( NULLIF ( 3, 49 / 7 - MIN ( 52 ) * + 57 ) ) ) AS col1
----
311

query I rowsort
SELECT ALL - 94 * - 9 + 75
----
921

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT 27 * 58 + - COUNT( DISTINCT 94 )
----
1565

skipif mysql # not compatible
query I rowsort label-4305
SELECT 27 * 58 + - COUNT ( DISTINCT 94 )
----
1565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4306
SELECT COUNT( * ) DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT COUNT ( * ) / - 19
----
0

query I rowsort
SELECT 49 + + CASE + 63 WHEN + 45 + - 96 / - 1 THEN NULL ELSE NULLIF ( 15, + 16 ) END * - 83 AS col0
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT NULLIF ( + 74, COUNT( * ) ) * 62 AS col2
----
4588

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT NULLIF ( + 74, COUNT ( * ) ) * 62 AS col2
----
4588

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT ALL - ( + 30 ) + NULLIF ( + 60, - COUNT( * ) ) * + 70 AS col0
----
4170

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - ( + 30 ) + NULLIF ( + 60, - COUNT ( * ) ) * + 70 AS col0
----
4170

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4310
SELECT ALL NULLIF ( 66, + CAST( + 14 AS SIGNED ) * + ( - 18 DIV 85 ) ) DIV - 1
----
-66

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL NULLIF ( 66, + CAST ( + 14 AS INTEGER ) * + ( - 18 / 85 ) ) / - 1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT ( 92 ) DIV - 28
----
-3

skipif mysql # not compatible
query I rowsort label-4311
SELECT ( 92 ) / - 28
----
-3

query I rowsort
SELECT ALL + 92 * 77 AS col2
----
7084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4313
SELECT ALL CAST( NULL AS SIGNED ) - 76 * - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL CAST ( NULL AS INTEGER ) - 76 * - 18 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT COUNT( * ) - 18 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4314
SELECT COUNT ( * ) - 18 AS col2
----
-17

query I rowsort
SELECT 74 * + 11 AS col1
----
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4316
SELECT COUNT( DISTINCT - 41 ) + - CAST( NULL AS SIGNED ) / - 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT COUNT ( DISTINCT - 41 ) + - CAST ( NULL AS INTEGER ) / - 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT 64 * + MIN( 62 * + 25 ) col2
----
99200

skipif mysql # not compatible
query I rowsort label-4317
SELECT 64 * + MIN ( 62 * + 25 ) col2
----
99200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT 0 * - NULLIF ( + SUM( - CAST( + 72 AS SIGNED ) ), - 90 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4318
SELECT 0 * - NULLIF ( + SUM ( - CAST ( + 72 AS INTEGER ) ), - 90 ) AS col2
----
0

query I rowsort
SELECT 74 - + 29
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4320
SELECT + 94 * ( + 27 * SUM( 88 * + 19 ) ) - CAST( 90 AS SIGNED ) * COUNT( * )
----
4243446

skipif mysql # not compatible
query I rowsort label-4320
SELECT + 94 * ( + 27 * SUM ( 88 * + 19 ) ) - CAST ( 90 AS INTEGER ) * COUNT ( * )
----
4243446

query I rowsort
SELECT DISTINCT + 85 * - ( 24 )
----
-2040

query I rowsort
SELECT 73 + COALESCE ( 62 + - 65, 78 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL + MIN( ALL 53 ) * - 43 AS col1
----
-2279

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + MIN ( ALL 53 ) * - 43 AS col1
----
-2279

query I rowsort
SELECT 80 * - 93 AS col0
----
-7440

query I rowsort
SELECT 18 - - 13 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT ALL - - 16 + - 54 DIV - 20 col1
----
18

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - - 16 + - 54 / - 20 col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL - ( NULLIF ( 14, 75 * COUNT( * ) ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL - ( NULLIF ( 14, 75 * COUNT ( * ) ) ) AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4328
SELECT DISTINCT 32 DIV - 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT 32 / - 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL 37 + + MIN( 43 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL 37 + + MIN ( 43 ) col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4330
SELECT DISTINCT - COALESCE ( MIN( DISTINCT + 74 ), - 59 * + 19 + CAST( NULL AS SIGNED ) DIV - COUNT( * ), 92 ) + + 65 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT - COALESCE ( MIN ( DISTINCT + 74 ), - 59 * + 19 + CAST ( NULL AS INTEGER ) / - COUNT ( * ), 92 ) + + 65 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4331
SELECT ALL + ( 57 ) + + 53 DIV + 10
----
62

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL + ( 57 ) + + 53 / + 10
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4332
SELECT DISTINCT + + COUNT( * ) DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT + + COUNT ( * ) / - 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT MIN( DISTINCT + 40 ) * MIN( + 13 ) + - 37 AS col2
----
483

skipif mysql # not compatible
query I rowsort label-4333
SELECT MIN ( DISTINCT + 40 ) * MIN ( + 13 ) + - 37 AS col2
----
483

query I rowsort
SELECT 0 * 97 AS col0
----
0

query I rowsort
SELECT ALL + 6 * - 84
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT + CASE + 38 WHEN 94 THEN CAST( NULL AS SIGNED ) ELSE NULL END + - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT + CASE + 38 WHEN 94 THEN CAST ( NULL AS INTEGER ) ELSE NULL END + - 12 col2
----
NULL

query I rowsort
SELECT + - ( - 27 )
----
27

query I rowsort
SELECT ALL - 14 - 77 col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - COUNT( * ) - 90 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4339
SELECT - COUNT ( * ) - 90 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - COUNT( - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-4340
SELECT - COUNT ( - 11 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4341
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + - CAST ( NULL AS REAL ) - + 27
----
NULL

query I rowsort
SELECT ALL 6 - 90 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT 3 + COUNT( * ) * 53
----
56

skipif mysql # not compatible
query I rowsort label-4343
SELECT 3 + COUNT ( * ) * 53
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT ALL - CAST( 67 AS SIGNED ) - 47 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL - CAST ( 67 AS INTEGER ) - 47 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT COALESCE ( + - CASE 40 WHEN 41 THEN - MIN( - 29 ) END, - 54, + 0, 72 ) + - 36 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-4345
SELECT COALESCE ( + - CASE 40 WHEN 41 THEN - MIN ( - 29 ) END, - 54, + 0, 72 ) + - 36 AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT CAST( + 23 AS SIGNED ) - + 65 * MAX( DISTINCT - 54 ) AS col1
----
3533

skipif mysql # not compatible
query I rowsort label-4346
SELECT CAST ( + 23 AS INTEGER ) - + 65 * MAX ( DISTINCT - 54 ) AS col1
----
3533

query I rowsort
SELECT 48 + - - 42
----
90

query I rowsort
SELECT 84 - 42 * + 44
----
-1764

query I rowsort
SELECT ( 94 ) + 53 AS col1
----
147

query I rowsort
SELECT ALL 53 * + - ( 93 ) AS col2
----
-4929

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT ( - CASE WHEN NOT ( 51 ) < + 7 * + 71 - 81 * - 17 THEN + COUNT( * ) - - COUNT( * ) * - 50 END ) / 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT ( - CASE WHEN NOT ( 51 ) < + 7 * + 71 - 81 * - 17 THEN + COUNT ( * ) - - COUNT ( * ) * - 50 END ) / 0 AS col0
----
NULL

query I rowsort
SELECT 0 * + 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT DISTINCT 83 DIV + 6 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT 83 / + 6 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - 98 * + CASE COALESCE ( + 36, + 51 + - 38, - 3, + 73 + - 80 ) WHEN + CASE - 31 WHEN COUNT( * ) THEN NULL WHEN - 13 * + 12 + - COUNT( * ) * 48 THEN NULL WHEN SUM( ALL + COALESCE ( + 54, 96 ) ) - - 10 THEN NULL ELSE 30 / 83 END THEN - 8 + 83 WHEN - 57 THEN NULL WHEN 93 * 5 THEN NULL WHEN ( - 26 ) THEN COUNT( * ) * 13 ELSE NULL END * + AVG ( + 39 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - 98 * + CASE COALESCE ( + 36, + 51 + - 38, - 3, + 73 + - 80 ) WHEN + CASE - 31 WHEN COUNT ( * ) THEN NULL WHEN - 13 * + 12 + - COUNT ( * ) * 48 THEN NULL WHEN SUM ( ALL + COALESCE ( + 54, 96 ) ) - - 10 THEN NULL ELSE 30 / 83 END THEN - 8 + 83 WHEN - 57 THEN NULL WHEN 93 * 5 THEN NULL WHEN ( - 26 ) THEN COUNT ( * ) * 13 ELSE NULL END * + AVG ( + 39 ) AS col0
----
NULL

query I rowsort
SELECT ALL 17 * - - 52
----
884

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT 90 DIV + ( + 7 )
----
12

skipif mysql # not compatible
query I rowsort label-4356
SELECT 90 / + ( + 7 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT 93 + + 98 * - COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4357
SELECT 93 + + 98 * - COUNT ( * ) AS col1
----
-5

query I rowsort
SELECT DISTINCT 52 * - 16
----
-832

query I rowsort
SELECT ALL 11 * + 56 * ( - 98 * 68 )
----
-4105024

query I rowsort
SELECT 73 * - 65 AS col2
----
-4745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4361
SELECT CAST( + + 52 AS SIGNED ) DIV 51 + 66 * COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-4361
SELECT CAST ( + + 52 AS INTEGER ) / 51 + 66 * COUNT ( * )
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT - 77 DIV - + COUNT( * ) + 61 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-4362
SELECT - 77 / - + COUNT ( * ) + 61 AS col0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT 25 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT 25 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT 28 + - + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4364
SELECT 28 + - + COUNT ( * )
----
27

query I rowsort
SELECT ALL - 49 * 13 + 90 AS col0
----
-547

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT NULLIF ( + - 73, COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-4366
SELECT NULLIF ( + - 73, COUNT ( * ) )
----
-73

query I rowsort
SELECT DISTINCT 89 * - + 79 + - 9 col2
----
-7040

query I rowsort
SELECT ALL + 70 * - ( 91 )
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT - ( + NULLIF ( + 62, - 45 ) ) * 20 + CASE - 88 + 24 WHEN + 4 THEN COUNT( * ) * ( AVG ( DISTINCT + 76 ) ) WHEN 44 THEN NULL ELSE NULL END * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT - ( + NULLIF ( + 62, - 45 ) ) * 20 + CASE - 88 + 24 WHEN + 4 THEN COUNT ( * ) * ( AVG ( DISTINCT + 76 ) ) WHEN 44 THEN NULL ELSE NULL END * 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4370
SELECT ALL - + 92 * - - ( 71 ) + - CASE - 50 WHEN - 48 THEN NULL WHEN - 21 + 53 THEN NULL ELSE - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - + 92 * - - ( 71 ) + - CASE - 50 WHEN - 48 THEN NULL WHEN - 21 + 53 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL - ( - - 94 ) * 38 + + COUNT( * ) AS col1
----
-3571

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - ( - - 94 ) * 38 + + COUNT ( * ) AS col1
----
-3571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4372
SELECT - COUNT( * ) + - CASE COUNT( * ) WHEN 71 THEN - COALESCE ( - 55, CASE 63 WHEN + NULLIF ( + SUM( ALL - CAST( NULL AS SIGNED ) ), COUNT( * ) ) * COUNT( * ) THEN NULL WHEN 80 * 27 + + 65 * 39 THEN NULLIF ( COUNT( * ), - 40 ) END * + 13 + + 4 ) END + + 16 / 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT - COUNT ( * ) + - CASE COUNT ( * ) WHEN 71 THEN - COALESCE ( - 55, CASE 63 WHEN + NULLIF ( + SUM ( ALL - CAST ( NULL AS INTEGER ) ), COUNT ( * ) ) * COUNT ( * ) THEN NULL WHEN 80 * 27 + + 65 * 39 THEN NULLIF ( COUNT ( * ), - 40 ) END * + 13 + + 4 ) END + + 16 / 56 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 77 * + - 7 * 59
----
-31801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4374
SELECT ALL + 15 * + COALESCE ( 20, 17 * + 59, 66, - NULLIF ( + 37, 6 ) ) * + 47 - 38 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL + 15 * + COALESCE ( 20, 17 * + 59, 66, - NULLIF ( + 37, 6 ) ) * + 47 - 38 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 17 * + 48 * + ( + 22 ) + 42 AS col1
----
17994

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT COUNT( * ) * - 35 * + 55 + 13 col2
----
-1912

skipif mysql # not compatible
query I rowsort label-4376
SELECT COUNT ( * ) * - 35 * + 55 + 13 col2
----
-1912

query I rowsort
SELECT DISTINCT - 16 * - ( + 72 )
----
1152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + 50
----
NULL

query I rowsort
SELECT - - 88 + + - 33 + 20
----
75

query I rowsort
SELECT + + 97 * 17
----
1649

query I rowsort
SELECT + - 39 * - 60 + 5
----
2345

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT ALL - 33 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL - 33 / - 54
----
0

query I rowsort
SELECT + 56 + + 97
----
153

query II rowsort
SELECT - 75, - 45 AS col1
----
-75
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4385
SELECT + ( - - 82 ) + - - 35 + + 42 DIV NULLIF ( - 6, + 23 ) DIV 92
----
117

skipif mysql # not compatible
query I rowsort label-4385
SELECT + ( - - 82 ) + - - 35 + + 42 / NULLIF ( - 6, + 23 ) / 92
----
117

query I rowsort
SELECT ALL 78 * 15
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + COUNT( * ) + + 0 + 64 + + 65 * 9
----
650

skipif mysql # not compatible
query I rowsort label-4387
SELECT + COUNT ( * ) + + 0 + 64 + + 65 * 9
----
650

query I rowsort
SELECT DISTINCT 12 * + - 7
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT + ( 30 ) * MAX( DISTINCT 27 ) * COUNT( * ) AS col1
----
810

skipif mysql # not compatible
query I rowsort label-4389
SELECT + ( 30 ) * MAX ( DISTINCT 27 ) * COUNT ( * ) AS col1
----
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4390
SELECT ALL + 2 * - + CASE + + 42 WHEN + COUNT( * ) * - 59 THEN - NULLIF ( CASE 46 WHEN 56 + - CAST( - COUNT( * ) + 54 AS SIGNED ) THEN NULL WHEN 31 * 82 THEN ( 0 ) ELSE NULL END, + 44 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL + 2 * - + CASE + + 42 WHEN + COUNT ( * ) * - 59 THEN - NULLIF ( CASE 46 WHEN 56 + - CAST ( - COUNT ( * ) + 54 AS INTEGER ) THEN NULL WHEN 31 * 82 THEN ( 0 ) ELSE NULL END, + 44 ) END
----
NULL

query I rowsort
SELECT ALL 6 + + 44 + + 49
----
99

query II rowsort
SELECT DISTINCT 92 AS col0, + 75 AS col1
----
92
75

query I rowsort
SELECT DISTINCT 77 * - - 38 AS col0
----
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT 35 + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT 35 + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL SUM( + ( - 76 ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL SUM ( + ( - 76 ) ) AS col2
----
-76

query I rowsort
SELECT ALL 70 + + + 97
----
167

query II rowsort
SELECT 85 AS col1, 19 AS col0
----
85
19

query I rowsort
SELECT + 52 + + 62
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4399
SELECT ALL 64 DIV + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL 64 / + COUNT ( * ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4400
SELECT - COALESCE ( - 71, + 37, - 72 DIV CASE - MIN( CAST( + 61 AS SIGNED ) ) WHEN - 54 THEN NULL ELSE 96 END )
----
71

skipif mysql # not compatible
query I rowsort label-4400
SELECT - COALESCE ( - 71, + 37, - 72 / CASE - MIN ( CAST ( + 61 AS INTEGER ) ) WHEN - 54 THEN NULL ELSE 96 END )
----
71

query I rowsort
SELECT + 76 + - 65 AS col0
----
11

query I rowsort
SELECT - CASE + 87 WHEN - 92 + 60 THEN + 14 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL SUM( DISTINCT 23 )
----
23

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL SUM ( DISTINCT 23 )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT DISTINCT 69 + 34 DIV - COUNT( * ) + 89 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT 69 + 34 / - COUNT ( * ) + 89 AS col2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-4405
SELECT ALL 28 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL 28 / 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4406
SELECT DISTINCT + 6 DIV - 78 + - COALESCE ( + COUNT( * ), 32 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT + 6 / - 78 + - COALESCE ( + COUNT ( * ), 32 ) col2
----
-1

query I rowsort
SELECT ALL + + CASE - + COALESCE ( + 44, - 0 ) WHEN - 57 + - 73 THEN - 3 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4408
SELECT DISTINCT + + 51 DIV + - 66 * + - 48 - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4408
SELECT DISTINCT + + 51 / + - 66 * + - 48 - - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT - - CAST( NULL AS SIGNED ) * 55 + 24 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT - - CAST ( NULL AS INTEGER ) * 55 + 24 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4410
SELECT 22 AS col1, CAST( 61 AS SIGNED ) DIV 30 AS col0
----
22
2

skipif mysql # not compatible
query II rowsort label-4410
SELECT 22 AS col1, CAST ( 61 AS INTEGER ) / 30 AS col0
----
22
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT + + MAX( DISTINCT - + 15 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4411
SELECT + + MAX ( DISTINCT - + 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT + - SUM( ALL 13 ) * - COUNT( * ) - 98 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT + - SUM ( ALL 13 ) * - COUNT ( * ) - 98 AS col0
----
-85

query I rowsort
SELECT + 82 * 88 + - 36 col2
----
7180

query I rowsort
SELECT ALL + ( + 18 ) AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4415
SELECT DISTINCT + + 66 * 32 - - + CASE 86 WHEN 32 + - 30 THEN 19 ELSE + 71 END + - CAST( NULL AS SIGNED ) * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT + + 66 * 32 - - + CASE 86 WHEN 32 + - 30 THEN 19 ELSE + 71 END + - CAST ( NULL AS INTEGER ) * - 7
----
NULL

query II rowsort
SELECT 77 AS col0, NULLIF ( - 75, NULLIF ( - 49, 41 * 75 ) ) + - 57 * - 76 AS col2
----
77
4257

query I rowsort
SELECT DISTINCT - 67 * + 96 - 47
----
-6479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT - - 43 * + - CAST( - 54 AS SIGNED ) + 96 AS col1
----
2418

skipif mysql # not compatible
query I rowsort label-4418
SELECT - - 43 * + - CAST ( - 54 AS INTEGER ) + 96 AS col1
----
2418

query I rowsort
SELECT + + CASE - - 29 WHEN + 65 * 61 + 45 / 27 THEN - 57 WHEN 39 THEN NULL END
----
NULL

query II rowsort
SELECT + + 17, 32 AS col2
----
17
32

query I rowsort
SELECT ALL - - 89 * - 99
----
-8811

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT COALESCE ( + 80, COUNT( ALL - 15 ) - COUNT( * ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4422
SELECT COALESCE ( + 80, COUNT ( ALL - 15 ) - COUNT ( * ) ) AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4423
SELECT - CASE - 67 WHEN 95 / 58 THEN 36 * 4 WHEN COUNT( * ) * + 87 THEN - CAST( ( - COALESCE ( 88, 41 * COUNT( DISTINCT 76 ) + - 10 ) ) AS SIGNED ) END - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT - CASE - 67 WHEN 95 / 58 THEN 36 * 4 WHEN COUNT ( * ) * + 87 THEN - CAST ( ( - COALESCE ( 88, 41 * COUNT ( DISTINCT 76 ) + - 10 ) ) AS INTEGER ) END - 19
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4424
SELECT - 19 DIV 61 AS col2, 45
----
0
45

skipif mysql # not compatible
query II rowsort label-4424
SELECT - 19 / 61 AS col2, 45
----
0
45

query I rowsort
SELECT ALL 58 * + 54 + + + ( + + 48 )
----
3180

query I rowsort
SELECT ALL - 70 * + 48 AS col0
----
-3360

query I rowsort
SELECT ALL ( - + 29 ) AS col1
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT ALL SUM( ALL - 43 ) * - CAST( NULL AS SIGNED ) - 37 * ( - 51 ) + - 54 * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL SUM ( ALL - 43 ) * - CAST ( NULL AS INTEGER ) - 37 * ( - 51 ) + - 54 * + 12 AS col1
----
NULL

query I rowsort
SELECT - 65 * 73 * - 33
----
156585

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL + COUNT( * ) + + 17 + - 44 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + COUNT ( * ) + + 17 + - 44 AS col0
----
-26

query I rowsort
SELECT DISTINCT 23 * - + 74
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT + COUNT( * ) + 69
----
70

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT + COUNT ( * ) + 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT ALL 58 * CASE + 36 WHEN - 31 THEN + COALESCE ( + 8, 35, 0 + - 46, - COUNT( * ) ) ELSE 85 * + 45 END * + ( + COUNT( * ) )
----
221850

skipif mysql # not compatible
query I rowsort label-4433
SELECT ALL 58 * CASE + 36 WHEN - 31 THEN + COALESCE ( + 8, 35, 0 + - 46, - COUNT ( * ) ) ELSE 85 * + 45 END * + ( + COUNT ( * ) )
----
221850

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL COALESCE ( + 2, - 77 + 15 - - ( - COUNT( * ) ) ) + SUM( DISTINCT 29 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL COALESCE ( + 2, - 77 + 15 - - ( - COUNT ( * ) ) ) + SUM ( DISTINCT 29 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT - MIN( DISTINCT COALESCE ( - 75, - 90 + - ( - 93 + 89 ) ) ) * 28
----
2100

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT - MIN ( DISTINCT COALESCE ( - 75, - 90 + - ( - 93 + 89 ) ) ) * 28
----
2100

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT 18 + + 82 + 26 DIV + 76 + 32
----
132

skipif mysql # not compatible
query I rowsort label-4436
SELECT 18 + + 82 + 26 / + 76 + 32
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL - 36 * COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - 36 * COUNT ( * ) AS col0
----
-36

query I rowsort
SELECT - 39 + + 44
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT + - 28 DIV + - 76 + - ( + 93 ) + - 82 AS col1
----
-175

skipif mysql # not compatible
query I rowsort label-4439
SELECT + - 28 / + - 76 + - ( + 93 ) + - 82 AS col1
----
-175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT DISTINCT 87 DIV + COALESCE ( - COUNT( * ), - 25 + - 42 * + 77 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT 87 / + COALESCE ( - COUNT ( * ), - 25 + - 42 * + 77 ) AS col0
----
-87

query I rowsort
SELECT 86 * - - 4 AS col2
----
344

query II rowsort
SELECT ALL + 27 * 40, 67 AS col2
----
1080
67

query I rowsort
SELECT ( - + 4 ) + + ( 99 ) AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL - CAST( + + 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL - CAST ( + + 98 AS INTEGER )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4445
SELECT + 58 DIV 27 + - - 4
----
6

skipif mysql # not compatible
query I rowsort label-4445
SELECT + 58 / 27 + - - 4
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL SUM( DISTINCT - 43 ) * 13 AS col0
----
-559

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL SUM ( DISTINCT - 43 ) * 13 AS col0
----
-559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4447
SELECT DISTINCT - CAST( - 49 AS SIGNED ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT - CAST ( - 49 AS INTEGER ) AS col1
----
49

query I rowsort
SELECT 55 * - 8 - - 68
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT 85 + + ( + ( CAST( - NULLIF ( 35, + 47 + + CASE + 47 WHEN + 62 + + 56 * - 0 THEN + 77 * + 80 END ) AS SIGNED ) ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4449
SELECT 85 + + ( + ( CAST ( - NULLIF ( 35, + 47 + + CASE + 47 WHEN + 62 + + 56 * - 0 THEN + 77 * + 80 END ) AS INTEGER ) ) ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT DISTINCT + 75 * SUM( DISTINCT + 30 ) * + 12 + + COALESCE ( + 61, 57 + + 90, MAX( DISTINCT 20 ) )
----
27061

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT + 75 * SUM ( DISTINCT + 30 ) * + 12 + + COALESCE ( + 61, 57 + + 90, MAX ( DISTINCT 20 ) )
----
27061

query I rowsort
SELECT 34 * - + 47 + - 87
----
-1685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT COUNT( * ) * - 56 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT COUNT ( * ) * - 56 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4453
SELECT + SUM( ALL 96 ) AS col2, - 74 AS col1
----
96
-74

skipif mysql # not compatible
query II rowsort label-4453
SELECT + SUM ( ALL 96 ) AS col2, - 74 AS col1
----
96
-74

query I rowsort
SELECT ALL 42 + 2 + + 35 + - + 61
----
18

query I rowsort
SELECT DISTINCT 60 + + 59 AS col0
----
119

query I rowsort
SELECT ALL - 39 * 11 * + 8
----
-3432

query I rowsort
SELECT ALL 95 + 9 AS col0
----
104

query I rowsort
SELECT DISTINCT 53 + - 55 * + - CASE - - 13 WHEN + - 37 THEN - 1 WHEN 3 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT SUM( + + 3 ) * - 32 * + + 68 AS col1
----
-6528

skipif mysql # not compatible
query I rowsort label-4459
SELECT SUM ( + + 3 ) * - 32 * + + 68 AS col1
----
-6528

query I rowsort
SELECT 9 + + + 77 * 19
----
1472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4461
SELECT ALL - COUNT( * ) * - + 2 DIV + - 63
----
0

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL - COUNT ( * ) * - + 2 / + - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT COUNT( * ) + + 39 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4462
SELECT COUNT ( * ) + + 39 AS col0
----
40

query I rowsort
SELECT DISTINCT - 21 * 61 AS col1
----
-1281

query II rowsort
SELECT 28 + - - 97 + - - 99, 42 AS col0
----
224
42

query I rowsort
SELECT ALL 52 * 92 AS col2
----
4784

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL - 49 + - - 93 * - NULLIF ( ( + + COUNT( * ) ), 82 ) AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - 49 + - - 93 * - NULLIF ( ( + + COUNT ( * ) ), 82 ) AS col0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT + ( 68 ) - + COUNT( * ) + COUNT( * ) * - 1
----
66

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT + ( 68 ) - + COUNT ( * ) + COUNT ( * ) * - 1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT 24 * + COUNT( * ) * 64 * - 81 * COUNT( * )
----
-124416

skipif mysql # not compatible
query I rowsort label-4468
SELECT 24 * + COUNT ( * ) * 64 * - 81 * COUNT ( * )
----
-124416

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT 8 + COUNT( - - 82 )
----
9

skipif mysql # not compatible
query I rowsort label-4469
SELECT 8 + COUNT ( - - 82 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4470
SELECT COUNT( 68 ) DIV - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4470
SELECT COUNT ( 68 ) / - 62 AS col0
----
0

query I rowsort
SELECT ( + - COALESCE ( 97, 80 ) ) * + 80 + - 52 AS col0
----
-7812

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT + 37 * + CASE - - 37 WHEN + 28 THEN + - 11 * + 88 ELSE NULL END * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT + 37 * + CASE - - 37 WHEN + 28 THEN + - 11 * + 88 ELSE NULL END * COUNT ( * ) col1
----
NULL

query I rowsort
SELECT DISTINCT - + 90 * 48
----
-4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT DISTINCT - + 73 - + + CAST( - + 24 AS SIGNED ) + + 66
----
17

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT - + 73 - + + CAST ( - + 24 AS INTEGER ) + + 66
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL - CASE + - 9 WHEN + 76 * - 16 + - 16 + - 38 + + COUNT( * ) THEN - ( 66 ) + + 3 ELSE NULL END * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - CASE + - 9 WHEN + 76 * - 16 + - 16 + - 38 + + COUNT ( * ) THEN - ( 66 ) + + 3 ELSE NULL END * + 58
----
NULL

query I rowsort
SELECT + 64 - 79 + 49 * - 32
----
-1583

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL - 87 * COUNT( * ) + 58 + 41 * + - 37 * + 40 AS col2
----
-60709

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - 87 * COUNT ( * ) + 58 + 41 * + - 37 * + 40 AS col2
----
-60709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT DISTINCT + CASE COALESCE ( - 51, ( - + 63 ) * - 63 + 90, - AVG ( - ( + CAST( NULL AS SIGNED ) ) ) ) WHEN 11 THEN + 67 * ( - 74 * + 28 ) + + 45 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT + CASE COALESCE ( - 51, ( - + 63 ) * - 63 + 90, - AVG ( - ( + CAST ( NULL AS INTEGER ) ) ) ) WHEN 11 THEN + 67 * ( - 74 * + 28 ) + + 45 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL - 37 * SUM( ALL + 41 ) * - 53 + 3 + + 67 * + 64 AS col0
----
84692

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - 37 * SUM ( ALL + 41 ) * - 53 + 3 + + 67 * + 64 AS col0
----
84692

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT COUNT( * ) * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4480
SELECT COUNT ( * ) * 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT + - NULLIF ( + - 97, + + 83 + + 60 + + - 94 * COUNT( * ) ) col0
----
97

skipif mysql # not compatible
query I rowsort label-4481
SELECT + - NULLIF ( + - 97, + + 83 + + 60 + + - 94 * COUNT ( * ) ) col0
----
97

query I rowsort
SELECT + 56 * 60 - + 31
----
3329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4483
SELECT CAST( NULL AS SIGNED ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT CAST ( NULL AS INTEGER ) / 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT + 36 * - + COUNT( * ) - + 2 * 4
----
-44

skipif mysql # not compatible
query I rowsort label-4484
SELECT + 36 * - + COUNT ( * ) - + 2 * 4
----
-44

query I rowsort
SELECT ALL 6 + + 99 - - 96 AS col1
----
201

query I rowsort
SELECT + NULLIF ( - + ( + 45 ), + 13 )
----
-45

query I rowsort
SELECT DISTINCT + 22 + - - COALESCE ( + 53, 92 * - - ( 85 ) + + 38 ) * + 11
----
605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4488
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4489
SELECT DISTINCT 60 + + MIN( - + 3 ) DIV - + ( - 88 ) * - - 38 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT 60 + + MIN ( - + 3 ) / - + ( - 88 ) * - - 38 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL 19 + 40 + 71 + + - COUNT( * ) * 36 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL 19 + 40 + 71 + + - COUNT ( * ) * 36 AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT MAX( DISTINCT + 41 ), 37 AS col2
----
41
37

skipif mysql # not compatible
query II rowsort label-4491
SELECT MAX ( DISTINCT + 41 ), 37 AS col2
----
41
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL 95 + - 76 + - - 73 + 72 * 12 - - COUNT( * ) + + 25 * ( 69 ) AS col0
----
2682

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL 95 + - 76 + - - 73 + 72 * 12 - - COUNT ( * ) + + 25 * ( 69 ) AS col0
----
2682

query I rowsort
SELECT 43 * - COALESCE ( + - 89, + - 78 * + 65 - 77 ) + + 4 * 95 AS col2
----
4207

onlyif mysql # aggregate syntax: 
query II rowsort label-4494
SELECT 99 - - - MAX( DISTINCT + ( - - 74 ) ) AS col1, - 42
----
25
-42

skipif mysql # not compatible
query II rowsort label-4494
SELECT 99 - - - MAX ( DISTINCT + ( - - 74 ) ) AS col1, - 42
----
25
-42

query I rowsort
SELECT DISTINCT 12 * + 31 col0
----
372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT ALL - 48, + COUNT( * ) * - 77 col0
----
-48
-77

skipif mysql # not compatible
query II rowsort label-4497
SELECT ALL - 48, + COUNT ( * ) * - 77 col0
----
-48
-77

query I rowsort
SELECT 83 + - 24 + - 72 col0
----
-13

query I rowsort
SELECT 18 * + - 72 * + - 85
----
110160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4500
SELECT 9 AS col0, COUNT( * ) + + CAST( 0 AS SIGNED ) DIV - - 32 + - - 69
----
9
70

skipif mysql # not compatible
query II rowsort label-4500
SELECT 9 AS col0, COUNT ( * ) + + CAST ( 0 AS INTEGER ) / - - 32 + - - 69
----
9
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4501
SELECT CAST( 82 AS SIGNED ) + + 81 + 54 AS col0
----
217

skipif mysql # not compatible
query I rowsort label-4501
SELECT CAST ( 82 AS INTEGER ) + + 81 + 54 AS col0
----
217

onlyif mysql # DIV for integer division: 
query I rowsort label-4502
SELECT 81 * - 60 + - 9 + COALESCE ( - - 45, - 41 + + 51 ) + + 11 DIV 94 * + 87
----
-4824

skipif mysql # not compatible
query I rowsort label-4502
SELECT 81 * - 60 + - 9 + COALESCE ( - - 45, - 41 + + 51 ) + + 11 / 94 * + 87
----
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL SUM( - + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL SUM ( - + 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4504
SELECT DISTINCT 53 AS col2, 30 / - - CAST( + + 39 AS SIGNED ) * - + MIN( CAST( NULL AS SIGNED ) ) * - 79 + CAST( NULL AS SIGNED )
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4504
SELECT DISTINCT 53 AS col2, 30 / - - CAST ( + + 39 AS INTEGER ) * - + MIN ( CAST ( NULL AS INTEGER ) ) * - 79 + CAST ( NULL AS INTEGER )
----
53
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL 5 - + COUNT( * ) * - 62 * 58
----
3601

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL 5 - + COUNT ( * ) * - 62 * 58
----
3601

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL + ( + - 46 ) * - COUNT( * ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + ( + - 46 ) * - COUNT ( * ) AS col0
----
46

query I rowsort
SELECT - 75 + 31 AS col0
----
-44

query I rowsort
SELECT + ( - + 63 ) + 31
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT - 93 * 21 * + 28 * + - 77 DIV + COUNT( 70 )
----
4210668

skipif mysql # not compatible
query I rowsort label-4509
SELECT - 93 * 21 * + 28 * + - 77 / + COUNT ( 70 )
----
4210668

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT + 63 + - NULLIF ( - 62, CASE - - 50 WHEN + - 66 THEN CASE NULLIF ( 57, 44 * + 26 ) WHEN 15 THEN 7 WHEN + 61 * + ( 96 * - COUNT( * ) ) THEN NULL ELSE COUNT( * ) * + 34 END END + 57 ) AS col0
----
125

skipif mysql # not compatible
query I rowsort label-4510
SELECT + 63 + - NULLIF ( - 62, CASE - - 50 WHEN + - 66 THEN CASE NULLIF ( 57, 44 * + 26 ) WHEN 15 THEN 7 WHEN + 61 * + ( 96 * - COUNT ( * ) ) THEN NULL ELSE COUNT ( * ) * + 34 END END + 57 ) AS col0
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-4511
SELECT ALL COUNT( * ) AS col2, MAX( - + 77 ) + + 25
----
1
-52

skipif mysql # not compatible
query II rowsort label-4511
SELECT ALL COUNT ( * ) AS col2, MAX ( - + 77 ) + + 25
----
1
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-4512
SELECT 90 AS col1, - COUNT( * ) * + 39 * + 35 - + + 87 + 53
----
90
-1399

skipif mysql # not compatible
query II rowsort label-4512
SELECT 90 AS col1, - COUNT ( * ) * + 39 * + 35 - + + 87 + 53
----
90
-1399

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - COUNT( * ) + + + COUNT( * ) - - - 79
----
-79

skipif mysql # not compatible
query I rowsort label-4513
SELECT - COUNT ( * ) + + + COUNT ( * ) - - - 79
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT + ( + + 51 ) * 78 DIV MAX( + 24 ) * 64 AS col1
----
10560

skipif mysql # not compatible
query I rowsort label-4514
SELECT + ( + + 51 ) * 78 / MAX ( + 24 ) * 64 AS col1
----
10560

query I rowsort
SELECT - 91 * + - 10 AS col1
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT + MIN( DISTINCT 92 ) * + 91 + + + 86 col2
----
8458

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT + MIN ( DISTINCT 92 ) * + 91 + + + 86 col2
----
8458

query II rowsort
SELECT ALL 30 AS col2, NULLIF ( 17, + ( - - 36 ) ) AS col2
----
30
17

query I rowsort
SELECT DISTINCT + 33 * + 84 AS col2
----
2772

query I rowsort
SELECT - ( - 20 ) + + 30 + 43 * - ( 16 )
----
-638

onlyif mysql # DIV for integer division: 
query II rowsort label-4520
SELECT ALL 14 AS col2, 63 DIV - - ( 45 )
----
14
1

skipif mysql # not compatible
query II rowsort label-4520
SELECT ALL 14 AS col2, 63 / - - ( 45 )
----
14
1

query I rowsort
SELECT - - 5 * - 85 + + - 92
----
-517

query I rowsort
SELECT DISTINCT NULLIF ( 42, 26 + + ( 35 ) + + 21 ) AS col2
----
42

query II rowsort
SELECT ALL - 59, 30 AS col0
----
-59
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT - MIN( ALL + - 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-4524
SELECT - MIN ( ALL + - 27 ) AS col2
----
27

query I rowsort
SELECT + ( 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT - - ( + NULLIF ( - 48, - COUNT( * ) ) ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-4526
SELECT - - ( + NULLIF ( - 48, - COUNT ( * ) ) ) col2
----
-48

query I rowsort
SELECT - 37 + - 22 * - 7 col1
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT DISTINCT CASE 60 WHEN 47 THEN 7 * - - 33 + + 56 + 2 * CAST( - 33 AS SIGNED ) WHEN 35 * + 32 THEN + 93 END * + COUNT( * ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT CASE 60 WHEN 47 THEN 7 * - - 33 + + 56 + 2 * CAST ( - 33 AS INTEGER ) WHEN 35 * + 32 THEN + 93 END * + COUNT ( * ) + - 52
----
NULL

query I rowsort
SELECT DISTINCT - 75 * + - 66 + + 75
----
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT + - CASE + + SUM( ALL + NULLIF ( - 43, - 65 ) ) WHEN - ( 81 ) THEN - 24 WHEN 34 * 75 THEN NULL END * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT + - CASE + + SUM ( ALL + NULLIF ( - 43, - 65 ) ) WHEN - ( 81 ) THEN - 24 WHEN 34 * 75 THEN NULL END * 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4531
SELECT ALL 91 * 86 + COALESCE ( - + 4, MAX( - ( - NULLIF ( 36, + 83 ) ) ) + + 1, 18 DIV - 55 + NULLIF ( - 13, - CAST( - AVG ( + ( + ( 6 ) ) ) AS SIGNED ) ) ) - CAST( 90 AS SIGNED )
----
7732

skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL 91 * 86 + COALESCE ( - + 4, MAX ( - ( - NULLIF ( 36, + 83 ) ) ) + + 1, 18 / - 55 + NULLIF ( - 13, - CAST ( - AVG ( + ( + ( 6 ) ) ) AS INTEGER ) ) ) - CAST ( 90 AS INTEGER )
----
7732

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT ALL + MAX( ALL - 37 ) * + COALESCE ( 87, + 15, - + 23 - 32 ) AS col2
----
-3219

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL + MAX ( ALL - 37 ) * + COALESCE ( 87, + 15, - + 23 - 32 ) AS col2
----
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - NULLIF ( + 96, - + COUNT( * ) ) * + - 3
----
288

skipif mysql # not compatible
query I rowsort label-4533
SELECT - NULLIF ( + 96, - + COUNT ( * ) ) * + - 3
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-4534
SELECT + 83 + COUNT( * ), 59 + - + 43 AS col1
----
84
16

skipif mysql # not compatible
query II rowsort label-4534
SELECT + 83 + COUNT ( * ), 59 + - + 43 AS col1
----
84
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - COUNT( * ) * + - 49 + + 3 + + 41 * + 12 * + 11 * + 6
----
32524

skipif mysql # not compatible
query I rowsort label-4535
SELECT - COUNT ( * ) * + - 49 + + 3 + + 41 * + 12 * + 11 * + 6
----
32524

query I rowsort
SELECT NULLIF ( + + 88, - - 78 * + ( - 40 ) + + 19 * - 3 * - 84 ) col0
----
88

query I rowsort
SELECT NULLIF ( + + 61, + 50 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4538
SELECT + 6 * - + NULLIF ( + - 91, + 89 * - 34 + - 31 + - COUNT( * ) + + 84 * + 71 / - 37 * COUNT( * ) ) * CAST( 9 AS SIGNED ) AS col2
----
4914

skipif mysql # not compatible
query I rowsort label-4538
SELECT + 6 * - + NULLIF ( + - 91, + 89 * - 34 + - 31 + - COUNT ( * ) + + 84 * + 71 / - 37 * COUNT ( * ) ) * CAST ( 9 AS INTEGER ) AS col2
----
4914

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4539
SELECT CASE + 21 WHEN + 56 THEN NULL ELSE - - 79 DIV - COUNT( * ) END
----
-79

skipif mysql # not compatible
query I rowsort label-4539
SELECT CASE + 21 WHEN + 56 THEN NULL ELSE - - 79 / - COUNT ( * ) END
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4540
SELECT ALL CAST( NULL AS DECIMAL ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL CAST ( NULL AS REAL ) * - 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT DISTINCT + 4 DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT + 4 / - 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT - 19 * - 3 * + COUNT( * ) * COUNT( * ) * - 51 - - 7 + + 16
----
-2884

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT - 19 * - 3 * + COUNT ( * ) * COUNT ( * ) * - 51 - - 7 + + 16
----
-2884

query I rowsort
SELECT ALL 99 * - 69
----
-6831

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT MIN( + - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-4544
SELECT MIN ( + - 95 )
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-4545
SELECT + 57 DIV 99, + 77 AS col0
----
0
77

skipif mysql # not compatible
query II rowsort label-4545
SELECT + 57 / 99, + 77 AS col0
----
0
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT ALL COUNT( - 78 ), + 30 * 81 AS col1
----
1
2430

skipif mysql # not compatible
query II rowsort label-4546
SELECT ALL COUNT ( - 78 ), + 30 * 81 AS col1
----
1
2430

query I rowsort
SELECT + 33 - + 46 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT - COUNT( + 18 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - COUNT ( + 18 ) AS col2
----
-1

query I rowsort
SELECT ALL + - ( + - ( + + 45 ) ) + + ( + 50 ) + + ( 39 )
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT + - 59 * 35 + - COUNT( * ) AS col0
----
-2066

skipif mysql # not compatible
query I rowsort label-4550
SELECT + - 59 * 35 + - COUNT ( * ) AS col0
----
-2066

query I rowsort
SELECT + + 90 + + + 36
----
126

query II rowsort
SELECT + - 15 + + - 23 AS col1, 86 AS col2
----
-38
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT + COUNT( * ) + - 61 * + - 68
----
4149

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + COUNT ( * ) + - 61 * + - 68
----
4149

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT - COUNT( + 93 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4554
SELECT - COUNT ( + 93 ) col2
----
-1

query I rowsort
SELECT ALL + 44 * + 10
----
440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT DISTINCT COUNT( * ) + 57 + - + COUNT( * ) DIV - 68 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT COUNT ( * ) + 57 + - + COUNT ( * ) / - 68 AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT DISTINCT + 56 DIV - 21 + + + 63 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + 56 / - 21 + + + 63 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4558
SELECT + CAST( - - COUNT( * ) AS DECIMAL ) / - CASE 43 WHEN 21 THEN - 87 * + 4 + CAST( + NULLIF ( + 24, + NULLIF ( - 94, - NULLIF ( - 11, + 73 ) - 44 ) + + 35 ) + 55 AS DECIMAL ) * + COUNT( * ) END + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT + CAST ( - - COUNT ( * ) AS REAL ) / - CASE 43 WHEN 21 THEN - 87 * + 4 + CAST ( + NULLIF ( + 24, + NULLIF ( - 94, - NULLIF ( - 11, + 73 ) - 44 ) + + 35 ) + 55 AS REAL ) * + COUNT ( * ) END + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT + 24 DIV + - 87
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT + 24 / + - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + + COUNT( 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4560
SELECT + + COUNT ( 59 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT ALL + - CASE 89 WHEN - 7 THEN - + 91 * + COALESCE ( - 6, - 61, - 86 + 70 ) * CAST( NULL AS SIGNED ) + COALESCE ( 14, - CAST( NULL AS SIGNED ) ) * + 99 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + - CASE 89 WHEN - 7 THEN - + 91 * + COALESCE ( - 6, - 61, - 86 + 70 ) * CAST ( NULL AS INTEGER ) + COALESCE ( 14, - CAST ( NULL AS INTEGER ) ) * + 99 END AS col1
----
NULL

query I rowsort
SELECT - 83 * - - 25
----
-2075

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT ALL + COALESCE ( - COALESCE ( + 33, - 10, + - 12 * 77 DIV - 89 * + 5 * - 99 ), + 24 * - 74 ) DIV 38 - + 95 col0
----
-95

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + COALESCE ( - COALESCE ( + 33, - 10, + - 12 * 77 / - 89 * + 5 * - 99 ), + 24 * - 74 ) / 38 - + 95 col0
----
-95

query I rowsort
SELECT ALL + ( + - 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT - COALESCE ( - 14, + + MAX( DISTINCT + 26 ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT - COALESCE ( - 14, + + MAX ( DISTINCT + 26 ) ) AS col1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT ALL + CAST( 88 AS SIGNED ) * NULLIF ( 5, + 93 + - 86 + - 4 - - - 20 * + COUNT( * ) * + 99 * COUNT( * ) ) - 25 AS col2
----
415

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL + CAST ( 88 AS INTEGER ) * NULLIF ( 5, + 93 + - 86 + - 4 - - - 20 * + COUNT ( * ) * + 99 * COUNT ( * ) ) - 25 AS col2
----
415

onlyif mysql # aggregate syntax: 
query II rowsort label-4567
SELECT 34 AS col1, 6 - + + CASE - - 46 WHEN ( + + 1 ) THEN + - 66 + COUNT( * ) END / 57
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4567
SELECT 34 AS col1, 6 - + + CASE - - 46 WHEN ( + + 1 ) THEN + - 66 + COUNT ( * ) END / 57
----
34
NULL

query II rowsort
SELECT ALL + 17 * - 19 * - + 24, 76 + - + 21 AS col2
----
7752
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT - SUM( DISTINCT 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT - SUM ( DISTINCT 99 )
----
-99

query I rowsort
SELECT DISTINCT + 8 * 38 * - 20
----
-6080

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT 34 - 90 DIV 59
----
33

skipif mysql # not compatible
query I rowsort label-4571
SELECT 34 - 90 / 59
----
33

query II rowsort
SELECT ALL - 72 AS col0, ( + 5 )
----
-72
5

query I rowsort
SELECT 8 + - 29 * + 8 AS col2
----
-224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4574
SELECT 17 + + COUNT( * ) * + - 94 DIV + + 74
----
16

skipif mysql # not compatible
query I rowsort label-4574
SELECT 17 + + COUNT ( * ) * + - 94 / + + 74
----
16

query I rowsort
SELECT 33 + + - 49 AS col1
----
-16

query I rowsort
SELECT DISTINCT 45 * ( CASE + + 1 WHEN + + 34 THEN ( + + 6 ) + + 85 + - 62 / 32 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT - CASE + NULLIF ( + 42, - + 19 * 40 ) WHEN + - 41 + - 62 THEN + CASE - 97 WHEN - 8 THEN 99 ELSE - 68 END + MAX( - 93 ) * COUNT( * ) ELSE NULL END + 31 * + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - CASE + NULLIF ( + 42, - + 19 * 40 ) WHEN + - 41 + - 62 THEN + CASE - 97 WHEN - 8 THEN 99 ELSE - 68 END + MAX ( - 93 ) * COUNT ( * ) ELSE NULL END + 31 * + 89 AS col1
----
NULL

query I rowsort
SELECT ALL - 10 + - 23 + + - 9 * - 51
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + COUNT( * ) + - 15 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4579
SELECT + COUNT ( * ) + - 15 AS col1
----
-14

query I rowsort
SELECT ALL - + 16 + 46 AS col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4581
SELECT DISTINCT - - 91 + + CAST( NULL AS SIGNED ) * - + 81 AS col0, - 98 AS col1
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-4581
SELECT DISTINCT - - 91 + + CAST ( NULL AS INTEGER ) * - + 81 AS col0, - 98 AS col1
----
NULL
-98

query I rowsort
SELECT - ( 73 ) + 15
----
-58

query I rowsort
SELECT 78 * - 49 AS col0
----
-3822

query I rowsort
SELECT - 80 + + + 79
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL + MAX( - + 96 ) + + 96
----
0

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL + MAX ( - + 96 ) + + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL + + NULLIF ( + 40, + 97 * + + 19 * - + 60 + - + ( COUNT( * ) ) * + + 34 / - 29 ) * 53
----
2120

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + + NULLIF ( + 40, + 97 * + + 19 * - + 60 + - + ( COUNT ( * ) ) * + + 34 / - 29 ) * 53
----
2120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL + COALESCE ( 99, + 66 ) + + - CAST( + + 80 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + COALESCE ( 99, + 66 ) + + - CAST ( + + 80 AS INTEGER )
----
19

query I rowsort
SELECT + 46 + + + 92 + - + ( - - 15 ) AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL CASE - 84 WHEN - - COALESCE ( - 11, + 34 + 85, ( COUNT( * ) ) * ( 79 ) ) THEN 80 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL CASE - 84 WHEN - - COALESCE ( - 11, + 34 + 85, ( COUNT ( * ) ) * ( 79 ) ) THEN 80 END AS col2
----
NULL

query II rowsort
SELECT - 95, - 60 + 41 * - 26 AS col1
----
-95
-1126

query I rowsort
SELECT 47 + - - 22 - - + 39 * + 61 col1
----
2448

query I rowsort
SELECT ALL - 23 - + 48 * - 64 AS col2
----
3049

onlyif mysql # aggregate syntax: 
query II rowsort label-4593
SELECT + 45 AS col0, - 81 + - 65 + NULLIF ( - - 17, + 11 * + ( - ( 43 ) ) * - COUNT( * ) ) + - COUNT( * ) * 52
----
45
-181

skipif mysql # not compatible
query II rowsort label-4593
SELECT + 45 AS col0, - 81 + - 65 + NULLIF ( - - 17, + 11 * + ( - ( 43 ) ) * - COUNT ( * ) ) + - COUNT ( * ) * 52
----
45
-181

query I rowsort
SELECT - 82 * 35
----
-2870

query I rowsort
SELECT + 22 + - + 3 col0
----
19

query I rowsort
SELECT 55 - 71 AS col1
----
-16

query I rowsort
SELECT DISTINCT - ( 67 ) - - 76 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - - MAX( ALL 43 )
----
43

skipif mysql # not compatible
query I rowsort label-4598
SELECT - - MAX ( ALL 43 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4599
SELECT - + NULLIF ( - COUNT( * ), + + 79 ) AS col0, - CASE + COUNT( * ) WHEN + 6 THEN NULL ELSE + COUNT( * ) - + COUNT( * ) + 74 END + 65
----
1
-9

skipif mysql # not compatible
query II rowsort label-4599
SELECT - + NULLIF ( - COUNT ( * ), + + 79 ) AS col0, - CASE + COUNT ( * ) WHEN + 6 THEN NULL ELSE + COUNT ( * ) - + COUNT ( * ) + 74 END + 65
----
1
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT ALL - SUM( - ( + + 57 ) )
----
57

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - SUM ( - ( + + 57 ) )
----
57

query I rowsort
SELECT ALL 24 * + 32 * - 92 AS col0
----
-70656

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT - COUNT( + 85 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT - COUNT ( + 85 ) col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4603
SELECT 99 + + + 34 col0, + ( 35 ) DIV - + 89
----
133
0

skipif mysql # not compatible
query II rowsort label-4603
SELECT 99 + + + 34 col0, + ( 35 ) / - + 89
----
133
0

query I rowsort
SELECT - 5 * 47 * - 76 * + 61 + - 36 col1
----
1089424

query I rowsort
SELECT ALL 88 * + + 57
----
5016

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4606
SELECT ALL - SUM( + - CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL - SUM ( + - CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4607
SELECT 37 DIV + + COUNT( + 29 )
----
37

skipif mysql # not compatible
query I rowsort label-4607
SELECT 37 / + + COUNT ( + 29 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT ALL - ( 14 ) DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL - ( 14 ) / - 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL + 32 * + MIN( DISTINCT + 9 ) AS col0
----
288

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL + 32 * + MIN ( DISTINCT + 9 ) AS col0
----
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT 27 DIV - 18 DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4610
SELECT 27 / - 18 / - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL COUNT( * ) + - 77 - - 59 * - 70 + + 98 + - 59 AS col2
----
-4167

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL COUNT ( * ) + - 77 - - 59 * - 70 + + 98 + - 59 AS col2
----
-4167

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT ALL - SUM( + 38 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-4612
SELECT ALL - SUM ( + 38 ) AS col2
----
-38

query I rowsort
SELECT DISTINCT - 42 + - 4
----
-46

query I rowsort
SELECT ALL + 87 + 58 AS col1
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT DISTINCT - COUNT( - - 83 ), + 26 + + 63 col0
----
-1
89

skipif mysql # not compatible
query II rowsort label-4615
SELECT DISTINCT - COUNT ( - - 83 ), + 26 + + 63 col0
----
-1
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL + MAX( DISTINCT + - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + MAX ( DISTINCT + - 0 ) AS col0
----
0

query I rowsort
SELECT - + COALESCE ( + 37, - + 1, + 71 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT + COUNT( + 44 ) * + + 48 * + ( - 2 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4618
SELECT + COUNT ( + 44 ) * + + 48 * + ( - 2 ) AS col2
----
-96

query I rowsort
SELECT ALL - 38 * ( - 52 )
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT DISTINCT + ( - 88 ) - MAX( 85 ) * - NULLIF ( - + 73, 87 )
----
-6293

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT + ( - 88 ) - MAX ( 85 ) * - NULLIF ( - + 73, 87 )
----
-6293

onlyif mysql # aggregate syntax: 
query II rowsort label-4621
SELECT DISTINCT + + 47 * - + COUNT( * ), 5 AS col0
----
-47
5

skipif mysql # not compatible
query II rowsort label-4621
SELECT DISTINCT + + 47 * - + COUNT ( * ), 5 AS col0
----
-47
5

query I rowsort
SELECT ALL + 77 * 10
----
770

query I rowsort
SELECT - 97 + + - 67 AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + COUNT( - - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-4624
SELECT + COUNT ( - - 73 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT + 80 - ( + - 24 ) + + COUNT( * )
----
105

skipif mysql # not compatible
query I rowsort label-4625
SELECT + 80 - ( + - 24 ) + + COUNT ( * )
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4626
SELECT + 89 + + COALESCE ( - ( - CASE + 10 WHEN + 54 + - + CASE + + 83 WHEN - + 8 + 88 * COUNT( * ) THEN NULL WHEN - ( - 19 ) THEN AVG ( DISTINCT + 74 ) * + 66 - + CAST( NULL AS SIGNED ) END * + 8 THEN NULL WHEN COUNT( * ) THEN 48 END ), + ( 83 ) + 64 ) + + COUNT( * ) DIV + 93
----
236

skipif mysql # not compatible
query I rowsort label-4626
SELECT + 89 + + COALESCE ( - ( - CASE + 10 WHEN + 54 + - + CASE + + 83 WHEN - + 8 + 88 * COUNT ( * ) THEN NULL WHEN - ( - 19 ) THEN AVG ( DISTINCT + 74 ) * + 66 - + CAST ( NULL AS INTEGER ) END * + 8 THEN NULL WHEN COUNT ( * ) THEN 48 END ), + ( 83 ) + 64 ) + + COUNT ( * ) / + 93
----
236

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT ( - 51 ) DIV - 81 + - - 20 + 81 DIV + 34 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4627
SELECT ( - 51 ) / - 81 + - - 20 + 81 / + 34 AS col0
----
22

query I rowsort
SELECT DISTINCT - 42 * + 43 + 0
----
-1806

query I rowsort
SELECT + 83 + + 81 + 90
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT - SUM( + 62 ) * - - 75 * + - SUM( DISTINCT - 23 ) * - - MAX( ( + + ( - 38 ) ) )
----
4064100

skipif mysql # not compatible
query I rowsort label-4630
SELECT - SUM ( + 62 ) * - - 75 * + - SUM ( DISTINCT - 23 ) * - - MAX ( ( + + ( - 38 ) ) )
----
4064100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4631
SELECT + CASE - 88 WHEN 73 * - CAST( - 20 AS DECIMAL ) THEN + - 18 + + + 6 + NULLIF ( - - 30, 65 ) * - SUM( - 1 ) / 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT + CASE - 88 WHEN 73 * - CAST ( - 20 AS REAL ) THEN + - 18 + + + 6 + NULLIF ( - - 30, 65 ) * - SUM ( - 1 ) / 14 END
----
NULL

query I rowsort
SELECT CASE ( - 2 ) WHEN + 34 THEN + + 31 + + + 33 + 46 WHEN - 4 THEN NULL ELSE - - 49 * - 50 * 67 END AS col0
----
-164150

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL COUNT( * ) * + 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL COUNT ( * ) * + 10 AS col1
----
10

query I rowsort
SELECT + 41 * 0 AS col0
----
0

query I rowsort
SELECT - 47 * + 45 AS col0
----
-2115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT CASE + - 17 WHEN - 75 THEN - 10 WHEN + - 43 - COUNT( CAST( - CASE - - 50 WHEN + 45 - 97 * ( 46 * NULLIF ( - ( 49 ) / - 52, + ( 42 ) ) ) THEN - 83 ELSE NULL END AS SIGNED ) ) * 60 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT CASE + - 17 WHEN - 75 THEN - 10 WHEN + - 43 - COUNT ( CAST ( - CASE - - 50 WHEN + 45 - 97 * ( 46 * NULLIF ( - ( 49 ) / - 52, + ( 42 ) ) ) THEN - 83 ELSE NULL END AS INTEGER ) ) * 60 THEN NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT ALL 19 * 54 + + NULLIF ( - 79, 62 ), - 23 * + 68 * COUNT( * ) * 36 * 53 AS col0
----
947
-2984112

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL 19 * 54 + + NULLIF ( - 79, 62 ), - 23 * + 68 * COUNT ( * ) * 36 * 53 AS col0
----
947
-2984112

query I rowsort
SELECT ALL - 27 * + - 0 + - + 86
----
-86

query I rowsort
SELECT ALL + 27 * + + 20 + 56 * - - 89 + - + 80 col2
----
5444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4640
SELECT + + COALESCE ( - CAST( + COUNT( * ) AS SIGNED ), - 20 ) + + - 71 AS col0, - 18
----
-72
-18

skipif mysql # not compatible
query II rowsort label-4640
SELECT + + COALESCE ( - CAST ( + COUNT ( * ) AS INTEGER ), - 20 ) + + - 71 AS col0, - 18
----
-72
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4641
SELECT ALL + 33 DIV + 34 + - COUNT( * ) * - 10 + - 46
----
-36

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + 33 / + 34 + - COUNT ( * ) * - 10 + - 46
----
-36

query I rowsort
SELECT + - 28 + - 91 AS col1
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT + - 24 * 21 DIV + 14 - 0 * 57
----
-36

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT + - 24 * 21 / + 14 - 0 * 57
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT 36 * + + 1 * - 19 + 68 * + + 3 * + ( - CASE WHEN ( NULL ) >= - - COUNT( * ) THEN + CASE - ( ( COUNT( * ) ) ) WHEN - 8 THEN - 38 * ( 23 ) ELSE ( 87 ) + + COUNT( * ) * 41 END ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT 36 * + + 1 * - 19 + 68 * + + 3 * + ( - CASE WHEN ( NULL ) >= - - COUNT ( * ) THEN + CASE - ( ( COUNT ( * ) ) ) WHEN - 8 THEN - 38 * ( 23 ) ELSE ( 87 ) + + COUNT ( * ) * 41 END ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT + 65 * COUNT( * ) + + + NULLIF ( + COUNT( * ), 13 + - AVG ( 38 ) * - + 99 ) col0, + 34 AS col1
----
66
34

skipif mysql # not compatible
query II rowsort label-4645
SELECT + 65 * COUNT ( * ) + + + NULLIF ( + COUNT ( * ), 13 + - AVG ( 38 ) * - + 99 ) col0, + 34 AS col1
----
66
34

query I rowsort
SELECT ALL - + 44 * 9 * - 8 * - ( COALESCE ( - 13, 93 * - 62, - 21 + 30 + 37 ) ) col0
----
41184

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ( + MIN( DISTINCT + NULLIF ( - 83, - 96 ) ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4647
SELECT ( + MIN ( DISTINCT + NULLIF ( - 83, - 96 ) ) )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT - - 48 AS col1, COUNT( * ) - - 83
----
48
84

skipif mysql # not compatible
query II rowsort label-4648
SELECT - - 48 AS col1, COUNT ( * ) - - 83
----
48
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - + 21 + + COALESCE ( - 81, + 22 * 1 + + 38 ) * COUNT( * ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-4649
SELECT - + 21 + + COALESCE ( - 81, + 22 * 1 + + 38 ) * COUNT ( * ) AS col2
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4650
SELECT - CAST( NULL AS SIGNED ) * - CAST( + 3 AS SIGNED ) - 3 * + 53, 69 AS col1
----
NULL
69

skipif mysql # not compatible
query II rowsort label-4650
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( + 3 AS INTEGER ) - 3 * + 53, 69 AS col1
----
NULL
69

query I rowsort
SELECT DISTINCT - COALESCE ( - 46, 64 * + 90, 93 ) AS col1
----
46

query I rowsort
SELECT - - 44 + - 62 AS col2
----
-18

query I rowsort
SELECT ALL NULLIF ( - 63, + + 27 ) AS col0
----
-63

query I rowsort
SELECT - 59 * 93 * - 41 AS col2
----
224967

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT + 77 DIV + 97 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT + 77 / + 97 * + COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT - CAST( + - 89 AS SIGNED ) + + 1
----
90

skipif mysql # not compatible
query I rowsort label-4656
SELECT - CAST ( + - 89 AS INTEGER ) + + 1
----
90

query I rowsort
SELECT - 47 - - 8 * 56 - + 61 + + - 16 * + 82 AS col1
----
-972

query I rowsort
SELECT - 65 + - 51
----
-116

query I rowsort
SELECT + 71 + + 51 AS col2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT DISTINCT - ( + - 28 ) + + - COUNT( * ) + - ( + + ( - - 46 ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT - ( + - 28 ) + + - COUNT ( * ) + - ( + + ( - - 46 ) ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT - 41 DIV - - 13
----
-3

skipif mysql # not compatible
query I rowsort label-4662
SELECT - 41 / - - 13
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4663
SELECT + COALESCE ( - + 2, COUNT( * ) DIV - SUM( ALL - 66 ) ) DIV + 9 + + ( + COUNT( * ) ) * - 60 * + 13
----
-780

skipif mysql # not compatible
query I rowsort label-4663
SELECT + COALESCE ( - + 2, COUNT ( * ) / - SUM ( ALL - 66 ) ) / + 9 + + ( + COUNT ( * ) ) * - 60 * + 13
----
-780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4664
SELECT ALL - 10 DIV + COALESCE ( - + CAST( NULL AS SIGNED ), - 69 - + 98 + + 79 * - 82 ) DIV + 43 + + 29 + COUNT( * ) + ( + 96 ) + + COUNT( * ) col1
----
127

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - 10 / + COALESCE ( - + CAST ( NULL AS INTEGER ), - 69 - + 98 + + 79 * - 82 ) / + 43 + + 29 + COUNT ( * ) + ( + 96 ) + + COUNT ( * ) col1
----
127

query I rowsort
SELECT - 59 * - + 27 + - 55 + + - 13 AS col2
----
1525

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT DISTINCT 23 DIV + - 34
----
0

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT 23 / + - 34
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4667
SELECT CAST( - + 76 AS SIGNED ) AS col0, + COUNT( + CAST( - + 69 AS DECIMAL ) )
----
-76
1

skipif mysql # not compatible
query II rowsort label-4667
SELECT CAST ( - + 76 AS INTEGER ) AS col0, + COUNT ( + CAST ( - + 69 AS REAL ) )
----
-76
1

query I rowsort
SELECT ( + + 16 ) AS col0
----
16

query I rowsort
SELECT + 81 + NULLIF ( + + ( - 5 ), 3 ) col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-4670
SELECT DISTINCT + 4 AS col0, - COUNT( * ) + - 98
----
4
-99

skipif mysql # not compatible
query II rowsort label-4670
SELECT DISTINCT + 4 AS col0, - COUNT ( * ) + - 98
----
4
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT ALL 27 / - + 23 / - CASE + - ( - CASE SUM( ALL + + 26 ) WHEN - CAST( + 81 AS SIGNED ) + 52 / + CASE - 35 WHEN + 21 THEN + 0 + + 19 WHEN 19 - - 81 THEN NULL WHEN 15 + 23 THEN NULL ELSE - 14 END THEN NULL WHEN 63 * ( 35 ) THEN + COALESCE ( 67, 78 * 19 + 40 ) / ( - 88 ) ELSE NULL END ) WHEN + 58 / ( - 49 ) THEN - 9 + 27 ELSE NULL END + 72 * 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL 27 / - + 23 / - CASE + - ( - CASE SUM ( ALL + + 26 ) WHEN - CAST ( + 81 AS INTEGER ) + 52 / + CASE - 35 WHEN + 21 THEN + 0 + + 19 WHEN 19 - - 81 THEN NULL WHEN 15 + 23 THEN NULL ELSE - 14 END THEN NULL WHEN 63 * ( 35 ) THEN + COALESCE ( 67, 78 * 19 + 40 ) / ( - 88 ) ELSE NULL END ) WHEN + 58 / ( - 49 ) THEN - 9 + 27 ELSE NULL END + 72 * 95 AS col0
----
NULL

query II rowsort
SELECT - 95 AS col0, - 98
----
-95
-98

query I rowsort
SELECT 51 * 87 + - + 6
----
4431

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT - 45, + 3 * + - MAX( ALL + 61 ) AS col0
----
-45
-183

skipif mysql # not compatible
query II rowsort label-4674
SELECT - 45, + 3 * + - MAX ( ALL + 61 ) AS col0
----
-45
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + + CASE - 61 WHEN - 48 / - 5 * - COUNT( * ) * ( + 39 ) + - - 60 THEN NULL ELSE - 76 END * CASE + COUNT( * ) WHEN - COUNT( * ) * 22 THEN + 31 END - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT + + CASE - 61 WHEN - 48 / - 5 * - COUNT ( * ) * ( + 39 ) + - - 60 THEN NULL ELSE - 76 END * CASE + COUNT ( * ) WHEN - COUNT ( * ) * 22 THEN + 31 END - 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4676
SELECT DISTINCT - 11 * + + 69 - + 85 + + 5 DIV - COUNT( * ) - - 75 - - COUNT( 44 ) AS col1
----
-773

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - 11 * + + 69 - + 85 + + 5 / - COUNT ( * ) - - 75 - - COUNT ( 44 ) AS col1
----
-773

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL + CASE 84 WHEN - 7 * - - 23 + + 93 + - 88 + + 34 + - COALESCE ( 15, + 1 ) * - MIN( ALL + 52 ) + + 3 THEN 58 / 24 WHEN COUNT( * ) THEN NULL WHEN ( + 93 ) + 32 * COUNT( * ) THEN NULL ELSE 5 * - 37 END
----
-185

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + CASE 84 WHEN - 7 * - - 23 + + 93 + - 88 + + 34 + - COALESCE ( 15, + 1 ) * - MIN ( ALL + 52 ) + + 3 THEN 58 / 24 WHEN COUNT ( * ) THEN NULL WHEN ( + 93 ) + 32 * COUNT ( * ) THEN NULL ELSE 5 * - 37 END
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-4678
SELECT DISTINCT + - ( + COUNT( * ) ) AS col2, 68
----
-1
68

skipif mysql # not compatible
query II rowsort label-4678
SELECT DISTINCT + - ( + COUNT ( * ) ) AS col2, 68
----
-1
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4679
SELECT ALL + CAST( NULL AS SIGNED ) * - 87 / - 94 + - 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + CAST ( NULL AS INTEGER ) * - 87 / - 94 + - 60 col0
----
NULL

query I rowsort
SELECT + - 5 - - 48 + - + 42 * - 2
----
127

query I rowsort
SELECT + 22 * - - 94 AS col1
----
2068

query I rowsort
SELECT + COALESCE ( + 88, 38 * + + 3 * - - 58 )
----
88

query I rowsort
SELECT + + ( - - 6 ) - + - 88 + 58 * - 91
----
-5184

onlyif mysql # aggregate syntax: 
query II rowsort label-4684
SELECT - 2, - SUM( ALL 77 ) * + 9 AS col1
----
-2
-693

skipif mysql # not compatible
query II rowsort label-4684
SELECT - 2, - SUM ( ALL 77 ) * + 9 AS col1
----
-2
-693

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT + 88 * 13 DIV - 53
----
-21

skipif mysql # not compatible
query I rowsort label-4685
SELECT + 88 * 13 / - 53
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT DISTINCT - + 4 DIV + + 27
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT - + 4 / + + 27
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4687
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, 7
----
NULL
7

skipif mysql # not compatible
query II rowsort label-4687
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 7
----
NULL
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT + 15 - - CAST( NULL AS SIGNED ) + 27 + + ( 64 ) + + + 13 + - + ( NULLIF ( - + COUNT( * ), - COUNT( * ) - 34 ) ) * - 78 * 68 * + 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT + 15 - - CAST ( NULL AS INTEGER ) + 27 + + ( 64 ) + + + 13 + - + ( NULLIF ( - + COUNT ( * ), - COUNT ( * ) - 34 ) ) * - 78 * 68 * + 64 col2
----
NULL

query I rowsort
SELECT ALL + ( - - 95 ) * - 67
----
-6365

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT DISTINCT 7 + + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT 7 + + COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4691
SELECT ( + 1 ) + + ( - COUNT( * ) ) * - 84 * + - 96 * 40 AS col0, + 43 * - 82 + - + ( + 67 ) AS col1
----
-322559
-3593

skipif mysql # not compatible
query II rowsort label-4691
SELECT ( + 1 ) + + ( - COUNT ( * ) ) * - 84 * + - 96 * 40 AS col0, + 43 * - 82 + - + ( + 67 ) AS col1
----
-322559
-3593

query I rowsort
SELECT ALL + CASE + 73 WHEN + + 83 + - 45 / + + 61 THEN - 82 WHEN 91 THEN NULL END * - 48 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4693
SELECT CAST( NULL AS SIGNED ) * 31, + 95 + + - 72 AS col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4693
SELECT CAST ( NULL AS INTEGER ) * 31, + 95 + + - 72 AS col2
----
NULL
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4694
SELECT 44 + + - 63 * - MIN( 54 ) + + 39 AS col0, 6 col2
----
3485
6

skipif mysql # not compatible
query II rowsort label-4694
SELECT 44 + + - 63 * - MIN ( 54 ) + + 39 AS col0, 6 col2
----
3485
6

query I rowsort
SELECT 47 - + 36 + 53 * - 22 AS col0
----
-1155

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4696
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 95 - - 71 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 95 - - 71 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4697
SELECT ALL - CASE 23 WHEN + 5 THEN + 79 * + - 36 * + 25 + + CAST( + 45 AS DECIMAL ) + + ( + COUNT( DISTINCT + 78 ) ) WHEN CASE + COALESCE ( 13, - 31 + - 22, + 75 ) WHEN 78 * + 81 + 25 * 18 THEN NULL WHEN NULLIF ( 69, 87 ) THEN COUNT( * ) END / - ( COALESCE ( 15, + ( 36 ) * - 7 ) ) + + 31 THEN + 74 * 44 ELSE NULL END + + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL - CASE 23 WHEN + 5 THEN + 79 * + - 36 * + 25 + + CAST ( + 45 AS REAL ) + + ( + COUNT ( DISTINCT + 78 ) ) WHEN CASE + COALESCE ( 13, - 31 + - 22, + 75 ) WHEN 78 * + 81 + 25 * 18 THEN NULL WHEN NULLIF ( 69, 87 ) THEN COUNT ( * ) END / - ( COALESCE ( 15, + ( 36 ) * - 7 ) ) + + 31 THEN + 74 * 44 ELSE NULL END + + 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4698
SELECT ALL + COUNT( * ) + - + 80 * 61 DIV - 80 + COUNT( * ) - - 5 DIV - 30 + + 17 DIV - + 70 + 73
----
136

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + COUNT ( * ) + - + 80 * 61 / - 80 + COUNT ( * ) - - 5 / - 30 + + 17 / - + 70 + 73
----
136

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4699
SELECT DISTINCT + NULLIF ( - 30, - 25 ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + NULLIF ( - 30, - 25 ) + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT ALL 82 * 20 DIV - + ( - COUNT( * ) )
----
1640

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL 82 * 20 / - + ( - COUNT ( * ) )
----
1640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT ALL + CAST( NULL AS SIGNED ) + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL + CAST ( NULL AS INTEGER ) + + 34 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT - 23 DIV + + 61 + + 23
----
23

skipif mysql # not compatible
query I rowsort label-4702
SELECT - 23 / + + 61 + + 23
----
23

query I rowsort
SELECT 36 * - 90 * + - 91 AS col2
----
294840

onlyif mysql # aggregate syntax: 
query II rowsort label-4704
SELECT 72 * + COUNT( * ) AS col0, - 95 AS col2
----
72
-95

skipif mysql # not compatible
query II rowsort label-4704
SELECT 72 * + COUNT ( * ) AS col0, - 95 AS col2
----
72
-95

query I rowsort
SELECT ALL - 1 * 71 * + 58
----
-4118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT ALL + 38 * 24 DIV MIN( DISTINCT + 58 ) * - + 31 AS col1
----
-465

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + 38 * 24 / MIN ( DISTINCT + 58 ) * - + 31 AS col1
----
-465

query I rowsort
SELECT DISTINCT - 83 * + 31 AS col0
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL 39 - - 29 + CASE - - 37 WHEN + 82 * + COUNT( * ) THEN NULL ELSE 60 * + 52 / - + 74 - - + 36 * + - CASE - 46 WHEN 14 THEN NULL ELSE - 48 END * CASE 68 WHEN 86 THEN 25 WHEN + 51 + 18 * 85 THEN NULL END END + + 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL 39 - - 29 + CASE - - 37 WHEN + 82 * + COUNT ( * ) THEN NULL ELSE 60 * + 52 / - + 74 - - + 36 * + - CASE - 46 WHEN 14 THEN NULL ELSE - 48 END * CASE 68 WHEN 86 THEN 25 WHEN + 51 + 18 * 85 THEN NULL END END + + 63 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4709
SELECT + COUNT( DISTINCT - 9 ) * ( - COALESCE ( COUNT( * ), + 11 DIV 88 * - 53 ) ) * - 34 + 5 - + - 73
----
112

skipif mysql # not compatible
query I rowsort label-4709
SELECT + COUNT ( DISTINCT - 9 ) * ( - COALESCE ( COUNT ( * ), + 11 / 88 * - 53 ) ) * - 34 + 5 - + - 73
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT - CASE + + ( - 6 ) WHEN - 68 * + - SUM( 11 ) THEN - 14 ELSE 76 + - 99 + - CAST( + 86 AS SIGNED ) - + 14 END
----
123

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - CASE + + ( - 6 ) WHEN - 68 * + - SUM ( 11 ) THEN - 14 ELSE 76 + - 99 + - CAST ( + 86 AS INTEGER ) - + 14 END
----
123

query I rowsort
SELECT ALL + + 3 * + - 53 + + 68 AS col1
----
-91

query I rowsort
SELECT + ( 43 ) + - 69
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4713
SELECT COUNT( * ) * - 33, - ( + + 70 ) * + - COUNT( * ) + - 40 DIV COUNT( * ) * 74 AS col1
----
-33
-2890

skipif mysql # not compatible
query II rowsort label-4713
SELECT COUNT ( * ) * - 33, - ( + + 70 ) * + - COUNT ( * ) + - 40 / COUNT ( * ) * 74 AS col1
----
-33
-2890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT + - CAST( + COUNT( * ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4714
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) col2
----
-1

query II rowsort
SELECT 1 + 12 * - 41 AS col0, - 69
----
-491
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - 98 * NULLIF ( - 64, - 19 ) * COUNT( * ) - - 96
----
6368

skipif mysql # not compatible
query I rowsort label-4716
SELECT - 98 * NULLIF ( - 64, - 19 ) * COUNT ( * ) - - 96
----
6368

query I rowsort
SELECT ALL - + 56 col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT - 6 * 66 + + COUNT( * )
----
-395

skipif mysql # not compatible
query I rowsort label-4718
SELECT - 6 * 66 + + COUNT ( * )
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT MAX( DISTINCT + 34 ) + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT MAX ( DISTINCT + 34 ) + - COUNT ( * )
----
33

query I rowsort
SELECT ALL 96 + 56 AS col1
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT DISTINCT 95 DIV 59 * + 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT 95 / 59 * + 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT ( 44 ) + + ( + - ( + COUNT( * ) ) )
----
43

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT ( 44 ) + + ( + - ( + COUNT ( * ) ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL 12 + - - COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL 12 + - - COUNT ( * ) AS col2
----
13

query I rowsort
SELECT ALL + 41 + + - 52 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT CAST( NULL AS SIGNED ) + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT CAST ( NULL AS INTEGER ) + 16 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 74 ) + - ( - + 74 ) AS col1
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4727
SELECT DISTINCT + 14 * - - 71 / - ( - - CASE + + 87 WHEN - 0 THEN 13 * - + 36 + + COUNT( * ) * + + 52 WHEN + 37 THEN NULL WHEN + + 49 * - AVG ( DISTINCT 51 ) * CASE 29 * + 43 WHEN + CAST( + 10 AS SIGNED ) THEN + 42 END THEN 49 ELSE NULL END ) * - CASE 39 WHEN + ( COUNT( 88 ) ) / - 59 THEN NULL ELSE - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT + 14 * - - 71 / - ( - - CASE + + 87 WHEN - 0 THEN 13 * - + 36 + + COUNT ( * ) * + + 52 WHEN + 37 THEN NULL WHEN + + 49 * - AVG ( DISTINCT 51 ) * CASE 29 * + 43 WHEN + CAST ( + 10 AS INTEGER ) THEN + 42 END THEN 49 ELSE NULL END ) * - CASE 39 WHEN + ( COUNT ( 88 ) ) / - 59 THEN NULL ELSE - 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT - MAX( ALL 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-4728
SELECT - MAX ( ALL 11 )
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4729
SELECT CAST( NULL AS DECIMAL ) + NULLIF ( - 5, - 43 / + + 48 + - + 53 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT CAST ( NULL AS REAL ) + NULLIF ( - 5, - 43 / + + 48 + - + 53 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4730
SELECT 78 + COALESCE ( - 93, + 3, 15 DIV - ( - - 62 ) - - - 30 + + 82, - + 15 DIV - COUNT( * ) ) - - - 24 + 94 * - 18 * 95 * - 38 AS col0
----
6108081

skipif mysql # not compatible
query I rowsort label-4730
SELECT 78 + COALESCE ( - 93, + 3, 15 / - ( - - 62 ) - - - 30 + + 82, - + 15 / - COUNT ( * ) ) - - - 24 + 94 * - 18 * 95 * - 38 AS col0
----
6108081

query I rowsort
SELECT 81 * - NULLIF ( - 9, + + 0 ) AS col0
----
729

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT ALL COUNT( * ), + 28 col0
----
1
28

skipif mysql # not compatible
query II rowsort label-4732
SELECT ALL COUNT ( * ), + 28 col0
----
1
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL - COALESCE ( ( CAST( - ( 75 ) AS SIGNED ) ), 58 )
----
75

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL - COALESCE ( ( CAST ( - ( 75 ) AS INTEGER ) ), 58 )
----
75

query I rowsort
SELECT 71 * - + 80
----
-5680

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT ALL - 55 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL - 55 / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT COUNT( * ) * 29 - MIN( + 48 ) + + - 62 * - 21 * - + 28 * 96 * 73 + - 61 * - 64
----
-255479763

skipif mysql # not compatible
query I rowsort label-4736
SELECT COUNT ( * ) * 29 - MIN ( + 48 ) + + - 62 * - 21 * - + 28 * 96 * 73 + - 61 * - 64
----
-255479763

query I rowsort
SELECT ALL - - NULLIF ( 65, + 48 * + - 78 - - 74 + + 88 )
----
65

query II rowsort
SELECT ALL - 34 AS col0, - 9 AS col0
----
-34
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4739
SELECT + COUNT( * ) AS col1, CAST( + COUNT( * ) AS SIGNED )
----
1
1

skipif mysql # not compatible
query II rowsort label-4739
SELECT + COUNT ( * ) AS col1, CAST ( + COUNT ( * ) AS INTEGER )
----
1
1

query I rowsort
SELECT 93 * 94
----
8742

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT 36 * + ( + 1 ) * - 19 + - 96 + - 61 - 43 + + - 59 * + MAX( ALL - 32 )
----
1004

skipif mysql # not compatible
query I rowsort label-4741
SELECT 36 * + ( + 1 ) * - 19 + - 96 + - 61 - 43 + + - 59 * + MAX ( ALL - 32 )
----
1004

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT + COALESCE ( COUNT( + 24 ), - - 46 ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-4742
SELECT + COALESCE ( COUNT ( + 24 ), - - 46 ) + 81
----
82

query II rowsort
SELECT ALL - 26 AS col0, + 22
----
-26
22

query I rowsort
SELECT - + 39 * - 90
----
3510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4745
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 47 AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 47 AS col1
----
NULL
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4746
SELECT DISTINCT + + 5 AS col2, - 75 + + MIN( DISTINCT + - 83 )
----
5
-158

skipif mysql # not compatible
query II rowsort label-4746
SELECT DISTINCT + + 5 AS col2, - 75 + + MIN ( DISTINCT + - 83 )
----
5
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL 83 * + + 67 * - COUNT( * ) + - 78 * - ( 63 ) AS col2
----
-647

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL 83 * + + 67 * - COUNT ( * ) + - 78 * - ( 63 ) AS col2
----
-647

onlyif mysql # aggregate syntax: 
query II rowsort label-4748
SELECT 5, + MIN( DISTINCT + 18 ) * - 90 AS col2
----
5
-1620

skipif mysql # not compatible
query II rowsort label-4748
SELECT 5, + MIN ( DISTINCT + 18 ) * - 90 AS col2
----
5
-1620

query I rowsort
SELECT ALL + - NULLIF ( 34, + 1 - 53 * 29 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - SUM( DISTINCT 82 ) * - 17 + - MAX( DISTINCT + 39 ) AS col1
----
1355

skipif mysql # not compatible
query I rowsort label-4750
SELECT - SUM ( DISTINCT 82 ) * - 17 + - MAX ( DISTINCT + 39 ) AS col1
----
1355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4751
SELECT ALL - - CAST( + 41 AS SIGNED ) + NULLIF ( - 88, + COUNT( * ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - - CAST ( + 41 AS INTEGER ) + NULLIF ( - 88, + COUNT ( * ) ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4752
SELECT + + NULLIF ( - + 35, - COUNT( * ) + CAST( NULL AS SIGNED ) + + - 85 / + - 80 * + COUNT( * ) + 78 / + 54 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4752
SELECT + + NULLIF ( - + 35, - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + - 85 / + - 80 * + COUNT ( * ) + 78 / + 54 ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL + + CASE + - NULLIF ( + + ( - 73 ), ( + 69 ) ) WHEN COUNT( * ) + - + 11 * - COUNT( * ) THEN - + 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + + CASE + - NULLIF ( + + ( - 73 ), ( + 69 ) ) WHEN COUNT ( * ) + - + 11 * - COUNT ( * ) THEN - + 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT - 64 - COUNT( - 67 )
----
-65

skipif mysql # not compatible
query I rowsort label-4754
SELECT - 64 - COUNT ( - 67 )
----
-65

query I rowsort
SELECT ALL 8 + - 83 col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT - + COALESCE ( 36, - 96 - + - 24, + 60 ) * - + 32 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT - + COALESCE ( 36, - 96 - + - 24, + 60 ) * - + 32 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 32 * + + 53 AS col1
----
1696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4758
SELECT + 48 + + 13, CAST( NULL AS SIGNED ) * + - 26 col1
----
61
NULL

skipif mysql # not compatible
query II rowsort label-4758
SELECT + 48 + + 13, CAST ( NULL AS INTEGER ) * + - 26 col1
----
61
NULL

query I rowsort
SELECT DISTINCT 54 + 45
----
99

query I rowsort
SELECT DISTINCT 18 + + - 13 + 36
----
41

query I rowsort
SELECT ALL ( + + 41 ) - ( 62 ) * + - 56 * - + 67 AS col1
----
-232583

query I rowsort
SELECT - COALESCE ( 84, - 30 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + CAST( + 97 AS SIGNED ) + 2
----
99

skipif mysql # not compatible
query I rowsort label-4763
SELECT + CAST ( + 97 AS INTEGER ) + 2
----
99

query II rowsort
SELECT + 28 * 43 AS col1, + 0 AS col2
----
1204
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4765
SELECT ALL 40 DIV - - 7
----
5

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL 40 / - - 7
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL 99 - - COUNT( * ) + 63 + 8 AS col0
----
171

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL 99 - - COUNT ( * ) + 63 + 8 AS col0
----
171

query I rowsort
SELECT - COALESCE ( - 55, - 94 ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4768
SELECT - COALESCE ( - CAST( NULL AS SIGNED ), - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-4768
SELECT - COALESCE ( - CAST ( NULL AS INTEGER ), - 97 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4769
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) / + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) / + 32 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT + CASE + 64 WHEN - ( - 75 ) THEN NULL WHEN - 99 THEN NULL WHEN 80 * - 70 / + 43 * COUNT( * ) * COUNT( * ) + - 40 + + 34 - - 84 THEN + 0 ELSE - CAST( NULL AS SIGNED ) END * AVG ( - 20 + 54 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT + CASE + 64 WHEN - ( - 75 ) THEN NULL WHEN - 99 THEN NULL WHEN 80 * - 70 / + 43 * COUNT ( * ) * COUNT ( * ) + - 40 + + 34 - - 84 THEN + 0 ELSE - CAST ( NULL AS INTEGER ) END * AVG ( - 20 + 54 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT ALL 4 DIV + + 37
----
0

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL 4 / + + 37
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4772
SELECT - + 29 DIV COUNT( * ) * + 94 AS col2
----
-2726

skipif mysql # not compatible
query I rowsort label-4772
SELECT - + 29 / COUNT ( * ) * + 94 AS col2
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT + + 43 + - - COUNT( - 31 )
----
44

skipif mysql # not compatible
query I rowsort label-4773
SELECT + + 43 + - - COUNT ( - 31 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4774
SELECT ALL - + 73 * NULLIF ( 41, + CASE + + COALESCE ( + ( MIN( ALL + 86 ) ), - - CASE - COUNT( * ) WHEN + - COUNT( * ) + + 3 / 79 THEN NULL WHEN 9 * - 64 THEN + 72 + COALESCE ( COUNT( * ) + - CASE 9 WHEN - COUNT( 17 ) * NULLIF ( 16 * 23 + 89, + ( COALESCE ( 46, 22 * - AVG ( ALL + 83 * + 77 ), 64 * COUNT( * ) ) ) ) THEN + 71 ELSE NULL END * - 64, 30 ) WHEN 37 THEN NULL END ) WHEN NULLIF ( 62, 39 ) THEN NULL WHEN - ( + MIN( DISTINCT 79 ) ) * COUNT( * ) THEN - 38 WHEN 60 + 57 * NULLIF ( + 97 + 27 * CAST( - ( + 56 ) AS SIGNED ), - 46 ) THEN 91 / - 39 + 96 * 51 END ) + + 31 + + 66 AS col2
----
-2896

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL - + 73 * NULLIF ( 41, + CASE + + COALESCE ( + ( MIN ( ALL + 86 ) ), - - CASE - COUNT ( * ) WHEN + - COUNT ( * ) + + 3 / 79 THEN NULL WHEN 9 * - 64 THEN + 72 + COALESCE ( COUNT ( * ) + - CASE 9 WHEN - COUNT ( 17 ) * NULLIF ( 16 * 23 + 89, + ( COALESCE ( 46, 22 * - AVG ( ALL + 83 * + 77 ), 64 * COUNT ( * ) ) ) ) THEN + 71 ELSE NULL END * - 64, 30 ) WHEN 37 THEN NULL END ) WHEN NULLIF ( 62, 39 ) THEN NULL WHEN - ( + MIN ( DISTINCT 79 ) ) * COUNT ( * ) THEN - 38 WHEN 60 + 57 * NULLIF ( + 97 + 27 * CAST ( - ( + 56 ) AS INTEGER ), - 46 ) THEN 91 / - 39 + 96 * 51 END ) + + 31 + + 66 AS col2
----
-2896

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT + 14 * 22 * - 27 - + - 49 * + + COUNT( * ) + - 95 AS col1
----
-8362

skipif mysql # not compatible
query I rowsort label-4775
SELECT + 14 * 22 * - 27 - + - 49 * + + COUNT ( * ) + - 95 AS col1
----
-8362

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT + - ( - MIN( + + 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-4776
SELECT + - ( - MIN ( + + 35 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL - COUNT( * ) * + COUNT( * ) + - 26 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL - COUNT ( * ) * + COUNT ( * ) + - 26 AS col1
----
-27

query II rowsort
SELECT DISTINCT - 84 * ( + 11 ) + 81 AS col0, 58 * 34 + + 57
----
-843
2029

query I rowsort
SELECT - 81 + + + 35 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT CASE 12 WHEN + + 48 * + SUM( ALL 85 ) / 22 * + COUNT( + - 80 ) THEN + 4 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT CASE 12 WHEN + + 48 * + SUM ( ALL 85 ) / 22 * + COUNT ( + - 80 ) THEN + 4 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4781
SELECT ALL - - 56 * + 39 + + 29 + + 7 * - COUNT( * ) col1, 11
----
2206
11

skipif mysql # not compatible
query II rowsort label-4781
SELECT ALL - - 56 * + 39 + + 29 + + 7 * - COUNT ( * ) col1, 11
----
2206
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT - + COUNT( * ) + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT - + COUNT ( * ) + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT - 39 * + ( - 15 ) - - - COUNT( * ), + COUNT( 58 ) + ( + 94 ) AS col1
----
584
95

skipif mysql # not compatible
query II rowsort label-4783
SELECT - 39 * + ( - 15 ) - - - COUNT ( * ), + COUNT ( 58 ) + ( + 94 ) AS col1
----
584
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT ALL + CAST( 33 AS SIGNED ) * CASE 77 WHEN - - 38 THEN 21 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + CAST ( 33 AS INTEGER ) * CASE 77 WHEN - - 38 THEN 21 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - - COUNT( * ) * MAX( + NULLIF ( - 87, + 74 ) ) - 61
----
-148

skipif mysql # not compatible
query I rowsort label-4785
SELECT - - COUNT ( * ) * MAX ( + NULLIF ( - 87, + 74 ) ) - 61
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT ALL - 47 * CAST( - 20 AS SIGNED ) + 75 col2
----
1015

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - 47 * CAST ( - 20 AS INTEGER ) + 75 col2
----
1015

query I rowsort
SELECT DISTINCT + ( - 55 ) col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL + NULLIF ( - 53, 57 ) * - - COUNT( * ) * + + 52
----
-2756

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + NULLIF ( - 53, 57 ) * - - COUNT ( * ) * + + 52
----
-2756

query I rowsort
SELECT - 71 + - 73 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL + 23 * MAX( DISTINCT + 88 ) - + 76
----
1948

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL + 23 * MAX ( DISTINCT + 88 ) - + 76
----
1948

query I rowsort
SELECT - NULLIF ( + 38, - 9 * - 47 ) + + 35 + - + 56 AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4792
SELECT + CASE + + 36 WHEN ( + - NULLIF ( ( + 73 ), CASE - + COUNT( + ( + + 24 ) ) WHEN 54 + + 39 THEN 39 / 17 + - + 84 END - + CAST( NULL AS SIGNED ) * 20 ) ) THEN + 42 WHEN - COUNT( * ) * 3 - - 76 THEN NULL ELSE MAX( ALL - NULLIF ( - 43, + ( 50 ) * + 7 ) ) END * - COALESCE ( 41 * ( 94 * 99 ), 60 * 10, - 96 )
----
-16406478

skipif mysql # not compatible
query I rowsort label-4792
SELECT + CASE + + 36 WHEN ( + - NULLIF ( ( + 73 ), CASE - + COUNT ( + ( + + 24 ) ) WHEN 54 + + 39 THEN 39 / 17 + - + 84 END - + CAST ( NULL AS INTEGER ) * 20 ) ) THEN + 42 WHEN - COUNT ( * ) * 3 - - 76 THEN NULL ELSE MAX ( ALL - NULLIF ( - 43, + ( 50 ) * + 7 ) ) END * - COALESCE ( 41 * ( 94 * 99 ), 60 * 10, - 96 )
----
-16406478

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4793
SELECT ALL + ( 9 ) / - CAST( NULL AS DECIMAL ) * + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + ( 9 ) / - CAST ( NULL AS REAL ) * + - 40 AS col1
----
NULL

query I rowsort
SELECT + 41 * + ( - - 75 ) AS col1
----
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL ( CASE - 23 WHEN + COUNT( * ) THEN - 45 WHEN + 32 / + 60 + 97 * + + 5 / ( 53 ) + + 87 THEN 53 + - 57 ELSE - 2 + 2 END )
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL ( CASE - 23 WHEN + COUNT ( * ) THEN - 45 WHEN + 32 / + 60 + 97 * + + 5 / ( 53 ) + + 87 THEN 53 + - 57 ELSE - 2 + 2 END )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4796
SELECT ALL 99 * - - CASE 51 WHEN - 89 THEN - 15 WHEN - + COALESCE ( COUNT( * ), - 70 + - 17 ) * - 10 THEN NULL ELSE NULL END col2, + COUNT( * ) / - - 45 * + CAST( NULL AS DECIMAL ) * + 65
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL 99 * - - CASE 51 WHEN - 89 THEN - 15 WHEN - + COALESCE ( COUNT ( * ), - 70 + - 17 ) * - 10 THEN NULL ELSE NULL END col2, + COUNT ( * ) / - - 45 * + CAST ( NULL AS REAL ) * + 65
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT + COUNT( * ) + - 87 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4797
SELECT + COUNT ( * ) + - 87 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4798
SELECT + 98 + COUNT( * ) * CASE + 33 WHEN 99 + - - 37 * COUNT( * ) THEN NULL WHEN 29 + + + 90 * + 66 * - CAST( NULL AS SIGNED ) * - - 53 THEN - 24 * + - 99 ELSE + - COUNT( * ) END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT + 98 + COUNT ( * ) * CASE + 33 WHEN 99 + - - 37 * COUNT ( * ) THEN NULL WHEN 29 + + + 90 * + 66 * - CAST ( NULL AS INTEGER ) * - - 53 THEN - 24 * + - 99 ELSE + - COUNT ( * ) END * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 79 * + 23 AS col1
----
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT - MAX( ALL - 66 ) + - 90
----
-24

skipif mysql # not compatible
query I rowsort label-4800
SELECT - MAX ( ALL - 66 ) + - 90
----
-24

query I rowsort
SELECT + 72 + - 20
----
52

query I rowsort
SELECT - ( - 47 ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4803
SELECT + 16 * + + CAST( + 95 AS SIGNED ) AS col2
----
1520

skipif mysql # not compatible
query I rowsort label-4803
SELECT + 16 * + + CAST ( + 95 AS INTEGER ) AS col2
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - 86 + - 18 + - 72 * + ( - - 25 ) * COUNT( * )
----
-1904

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 86 + - 18 + - 72 * + ( - - 25 ) * COUNT ( * )
----
-1904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4805
SELECT ALL CASE - 54 WHEN + + COUNT( * ) / - CAST( NULL AS DECIMAL ) * + 73 THEN NULL WHEN - 42 THEN - ( CAST( NULL AS SIGNED ) ) ELSE - + 27 END + - MAX( + 39 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL CASE - 54 WHEN + + COUNT ( * ) / - CAST ( NULL AS REAL ) * + 73 THEN NULL WHEN - 42 THEN - ( CAST ( NULL AS INTEGER ) ) ELSE - + 27 END + - MAX ( + 39 ) AS col2
----
-66

query I rowsort
SELECT - 87 * + 96 - - 10 + + + 84 * - 10 AS col2
----
-9182

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4807
SELECT ALL + 0 + - 15 DIV + - COUNT( * ), 17 + + + 84 AS col2
----
15
101

skipif mysql # not compatible
query II rowsort label-4807
SELECT ALL + 0 + - 15 / + - COUNT ( * ), 17 + + + 84 AS col2
----
15
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL + COUNT( * ) + - + 75 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL + COUNT ( * ) + - + 75 AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL - 20 + - CAST( - 80 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL - 20 + - CAST ( - 80 AS INTEGER )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4810
SELECT + - COALESCE ( 70, + + 86 DIV 66 )
----
-70

skipif mysql # not compatible
query I rowsort label-4810
SELECT + - COALESCE ( 70, + + 86 / 66 )
----
-70

query I rowsort
SELECT + 19 * 36
----
684

onlyif mysql # aggregate syntax: 
query II rowsort label-4812
SELECT 53 * - 88 + - + COUNT( * ) AS col2, - 71
----
-4665
-71

skipif mysql # not compatible
query II rowsort label-4812
SELECT 53 * - 88 + - + COUNT ( * ) AS col2, - 71
----
-4665
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4813
SELECT DISTINCT 58 * NULLIF ( - COUNT( * ), - 22 * + CAST( + 86 AS SIGNED ) ) * + + COUNT( + 82 )
----
-58

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT 58 * NULLIF ( - COUNT ( * ), - 22 * + CAST ( + 86 AS INTEGER ) ) * + + COUNT ( + 82 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT - COALESCE ( - + ( 82 ), + 78 + 97 * - 35, - COUNT( * ) * + 48 ) + - 37 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4814
SELECT - COALESCE ( - + ( 82 ), + 78 + 97 * - 35, - COUNT ( * ) * + 48 ) + - 37 AS col0
----
45

query I rowsort
SELECT ALL 85 + - 8
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4816
SELECT ALL - 4 AS col1, 51 + 48 + + COUNT( * )
----
-4
100

skipif mysql # not compatible
query II rowsort label-4816
SELECT ALL - 4 AS col1, 51 + 48 + + COUNT ( * )
----
-4
100

query I rowsort
SELECT DISTINCT - ( 46 ) col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT ALL - COALESCE ( - + COALESCE ( 45, - CASE - 41 WHEN COUNT( * ) THEN NULL WHEN + CAST( + 40 AS SIGNED ) THEN COUNT( * ) + - 8 + - 65 ELSE NULL END ), + - 16 * 34 )
----
45

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL - COALESCE ( - + COALESCE ( 45, - CASE - 41 WHEN COUNT ( * ) THEN NULL WHEN + CAST ( + 40 AS INTEGER ) THEN COUNT ( * ) + - 8 + - 65 ELSE NULL END ), + - 16 * 34 )
----
45

query I rowsort
SELECT 53 * - 7 AS col0
----
-371

query I rowsort
SELECT 27 - - - ( - 93 )
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4821
SELECT ALL + 82 DIV + 47 * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + 82 / + 47 * + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4822
SELECT CAST( NULL AS SIGNED ) - + - ( + 34 ) + + - CASE + - CAST( NULL AS SIGNED ) WHEN 65 THEN - - 78 + + 73 + 65 * + - CAST( NULL AS SIGNED ) ELSE - 30 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT CAST ( NULL AS INTEGER ) - + - ( + 34 ) + + - CASE + - CAST ( NULL AS INTEGER ) WHEN 65 THEN - - 78 + + 73 + 65 * + - CAST ( NULL AS INTEGER ) ELSE - 30 END * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT CAST( NULL AS SIGNED ) * - MIN( - + 13 ) * - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT CAST ( NULL AS INTEGER ) * - MIN ( - + 13 ) * - + 59
----
NULL

query I rowsort
SELECT 83 * + 37 + 73 + 65
----
3209

query I rowsort
SELECT DISTINCT + 56 * - 92 col0
----
-5152

onlyif mysql # aggregate syntax: 
query II rowsort label-4826
SELECT ALL 45, 53 * MAX( ALL 42 ) * + 94 col1
----
45
209244

skipif mysql # not compatible
query II rowsort label-4826
SELECT ALL 45, 53 * MAX ( ALL 42 ) * + 94 col1
----
45
209244

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT 71 - - COUNT( * ) * - 19 - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4827
SELECT 71 - - COUNT ( * ) * - 19 - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL - 11 * + ( - COUNT( * ) ) col0
----
11

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - 11 * + ( - COUNT ( * ) ) col0
----
11

query II rowsort
SELECT 29, 18 AS col0
----
29
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4830
SELECT 81 - - + ( 23 ) + - - 98 + 88 * + 36, COUNT( * ) * 69 - 58 AS col0
----
3370
11

skipif mysql # not compatible
query II rowsort label-4830
SELECT 81 - - + ( 23 ) + - - 98 + 88 * + 36, COUNT ( * ) * 69 - 58 AS col0
----
3370
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT ALL 69 DIV + 94 * 41 col2
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL 69 / + 94 * 41 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4832
SELECT 87 DIV + - 22 col1
----
-3

skipif mysql # not compatible
query I rowsort label-4832
SELECT 87 / + - 22 col1
----
-3

query I rowsort
SELECT ALL - 38 + 96
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT 71 + + COALESCE ( MAX( DISTINCT - - 84 ), + CAST( NULL AS SIGNED ) )
----
155

skipif mysql # not compatible
query I rowsort label-4834
SELECT 71 + + COALESCE ( MAX ( DISTINCT - - 84 ), + CAST ( NULL AS INTEGER ) )
----
155

query I rowsort
SELECT DISTINCT - 90 + + 27
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4836
SELECT + 82 AS col2, CAST( NULL AS SIGNED ) * + - COUNT( * ) / + 85
----
82
NULL

skipif mysql # not compatible
query II rowsort label-4836
SELECT + 82 AS col2, CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / + 85
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL - COUNT( * ) + 88
----
87

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL - COUNT ( * ) + 88
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT DISTINCT 71 + + 76 DIV - - NULLIF ( - - 46, 33 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT 71 + + 76 / - - NULLIF ( - - 46, 33 ) AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT ALL + 71 * - + CAST( + 95 AS SIGNED ) * - 64 * + 84
----
36261120

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + 71 * - + CAST ( + 95 AS INTEGER ) * - 64 * + 84
----
36261120

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT 89 + + NULLIF ( - 5, COUNT( 48 ) )
----
84

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT 89 + + NULLIF ( - 5, COUNT ( 48 ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT - 16 + - 36 + + COUNT( * ) / - 12 + - 45 / + + COUNT( * ) * - - CASE - 50 WHEN + 98 * + 79 THEN - - 18 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT - 16 + - 36 + + COUNT ( * ) / - 12 + - 45 / + + COUNT ( * ) * - - CASE - 50 WHEN + 98 * + 79 THEN - - 18 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT 67 * + + COUNT( - - 17 ) DIV + 83 + + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4842
SELECT 67 * + + COUNT ( - - 17 ) / + 83 + + 0 AS col2
----
0

query II rowsort
SELECT DISTINCT - 11 AS col1, 41 * + 69 AS col2
----
-11
2829

query I rowsort
SELECT 25 * + - 73 + + + 24 AS col0
----
-1801

query II rowsort
SELECT 48 AS col0, 94 AS col1
----
48
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL + COUNT( * ) - + + 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + COUNT ( * ) - + + 3 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-4847
SELECT 73 AS col0, 73 DIV + 83 * - 70 * - NULLIF ( + 44, 98 ) * - - 61 * + ( - 52 )
----
73
0

skipif mysql # not compatible
query II rowsort label-4847
SELECT 73 AS col0, 73 / + 83 * - 70 * - NULLIF ( + 44, 98 ) * - - 61 * + ( - 52 )
----
73
0

query I rowsort
SELECT DISTINCT + 86 - 44 - 43 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT 92 / CASE + 27 WHEN 7 THEN 19 + ( 93 ) + CAST( 60 AS SIGNED ) - + 71 WHEN + - 17 * + CASE - 17 WHEN + 72 THEN - - 87 + + - 27 + 24 ELSE NULL END * + 99 - - 0 THEN + 16 * 66 + 49 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT 92 / CASE + 27 WHEN 7 THEN 19 + ( 93 ) + CAST ( 60 AS INTEGER ) - + 71 WHEN + - 17 * + CASE - 17 WHEN + 72 THEN - - 87 + + - 27 + 24 ELSE NULL END * + 99 - - 0 THEN + 16 * 66 + 49 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT ALL - COALESCE ( - NULLIF ( 3, + - 89 - + 56 + - 42 + - 59 ), + + CAST( NULL AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - COALESCE ( - NULLIF ( 3, + - 89 - + 56 + - 42 + - 59 ), + + CAST ( NULL AS INTEGER ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT ALL - 95 / - 80 * + - 38 / + CAST( NULL AS SIGNED ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - 95 / - 80 * + - 38 / + CAST ( NULL AS INTEGER ) + - 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4852
SELECT 39 + - COUNT( * ) DIV + + 12
----
39

skipif mysql # not compatible
query I rowsort label-4852
SELECT 39 + - COUNT ( * ) / + + 12
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-4853
SELECT ALL 19 * + NULLIF ( 70, + ( - - 42 ) ) * - + 92 col1, - 14 DIV 59 DIV ( + 28 ) AS col0
----
-122360
0

skipif mysql # not compatible
query II rowsort label-4853
SELECT ALL 19 * + NULLIF ( 70, + ( - - 42 ) ) * - + 92 col1, - 14 / 59 / ( + 28 ) AS col0
----
-122360
0

query I rowsort
SELECT DISTINCT 95 * - 81 * - 62 AS col0
----
477090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT - COALESCE ( - 47, + - 99 + COUNT( * ) * + ( 23 ), + - 52 * + + NULLIF ( - COUNT( * ), - MAX( - 52 ) * 20 ) ) * - CAST( 41 AS SIGNED ) + + 11 AS col0
----
-1916

skipif mysql # not compatible
query I rowsort label-4855
SELECT - COALESCE ( - 47, + - 99 + COUNT ( * ) * + ( 23 ), + - 52 * + + NULLIF ( - COUNT ( * ), - MAX ( - 52 ) * 20 ) ) * - CAST ( 41 AS INTEGER ) + + 11 AS col0
----
-1916

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT ( COUNT( * ) ) * - - CASE + - MAX( ALL - + 85 ) WHEN + COUNT( * ) + + COUNT( * ) THEN + 99 * - SUM( 42 ) + - 13 WHEN - 51 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT ( COUNT ( * ) ) * - - CASE + - MAX ( ALL - + 85 ) WHEN + COUNT ( * ) + + COUNT ( * ) THEN + 99 * - SUM ( 42 ) + - 13 WHEN - 51 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT 66 * 45 AS col2, 18 * + 83 AS col2
----
2970
1494

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT 36 + 81, COUNT( * ) * + 32 * 63 AS col0
----
117
2016

skipif mysql # not compatible
query II rowsort label-4858
SELECT 36 + 81, COUNT ( * ) * + 32 * 63 AS col0
----
117
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT NULLIF ( 95, - 46 * 98 * + - COUNT( * ) + + 17 + + 28 ) + - 6
----
89

skipif mysql # not compatible
query I rowsort label-4859
SELECT NULLIF ( 95, - 46 * 98 * + - COUNT ( * ) + + 17 + + 28 ) + - 6
----
89

query I rowsort
SELECT 81 - 52 AS col0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4861
SELECT ( + - 69 ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ( + - 69 ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT CAST( MAX( 34 ) AS SIGNED ) * + 84 * - 33 + 8 * 12 * - - 22 * 59 AS col2
----
30360

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT CAST ( MAX ( 34 ) AS INTEGER ) * + 84 * - 33 + 8 * 12 * - - 22 * 59 AS col2
----
30360

query I rowsort
SELECT ALL - COALESCE ( - 1, 26 )
----
1

query I rowsort
SELECT + 84 * 88 + - 40 * + 85 * - 10
----
41392

query II rowsort
SELECT 81 + + 73 AS col0, - 31 AS col2
----
154
-31

query I rowsort
SELECT 68 + + 32 - - - 76 AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4867
SELECT - 4 + - COUNT( * ) + - COUNT( * ), + 70 col2
----
-6
70

skipif mysql # not compatible
query II rowsort label-4867
SELECT - 4 + - COUNT ( * ) + - COUNT ( * ), + 70 col2
----
-6
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT DISTINCT MIN( DISTINCT - 19 ), + ( - 92 ) AS col1
----
-19
-92

skipif mysql # not compatible
query II rowsort label-4868
SELECT DISTINCT MIN ( DISTINCT - 19 ), + ( - 92 ) AS col1
----
-19
-92

query I rowsort
SELECT ALL - 7 + - - 99 AS col2
----
92

query I rowsort
SELECT DISTINCT 77 + - 10 AS col2
----
67

query I rowsort
SELECT - + 6 * - 16
----
96

query I rowsort
SELECT ALL - 0 * + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT + COUNT( * ) * - + 48 col2
----
-48

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + COUNT ( * ) * - + 48 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT - 78 + + MIN( - 59 ) AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT - 78 + + MIN ( - 59 ) AS col1
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT - + COUNT( * ) + 39 - - 86, 61 AS col0
----
124
61

skipif mysql # not compatible
query II rowsort label-4875
SELECT - + COUNT ( * ) + 39 - - 86, 61 AS col0
----
124
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - 61 * MAX( DISTINCT + 43 )
----
-2623

skipif mysql # not compatible
query I rowsort label-4876
SELECT - 61 * MAX ( DISTINCT + 43 )
----
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT - + 23 + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-4877
SELECT - + 23 + COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT - CASE - 33 WHEN COUNT( * ) * + 69 THEN + - 7 * + 47 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT - CASE - 33 WHEN COUNT ( * ) * + 69 THEN + - 7 * + 47 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 37 + 70
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT ALL 81 * - 44 - CAST( + 10 AS SIGNED ) AS col0
----
-3574

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL 81 * - 44 - CAST ( + 10 AS INTEGER ) AS col0
----
-3574

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT MIN( + 96 ) * - + 77 + - 24 + - 87 AS col1
----
-7503

skipif mysql # not compatible
query I rowsort label-4881
SELECT MIN ( + 96 ) * - + 77 + - 24 + - 87 AS col1
----
-7503

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT + 77 * 12 + 23 + MIN( DISTINCT - 54 ) * + 40 * - + 52 AS col0
----
113267

skipif mysql # not compatible
query I rowsort label-4882
SELECT + 77 * 12 + 23 + MIN ( DISTINCT - 54 ) * + 40 * - + 52 AS col0
----
113267

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4883
SELECT + + CAST( NULL AS SIGNED ) / - + 10, 87 AS col2
----
NULL
87

skipif mysql # not compatible
query II rowsort label-4883
SELECT + + CAST ( NULL AS INTEGER ) / - + 10, 87 AS col2
----
NULL
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + NULLIF ( - - NULLIF ( - + 50, - - CASE 80 WHEN + - COUNT( * ) THEN + - ( 62 ) WHEN 11 * + ( 15 ) + - + NULLIF ( 61, - 98 ) + + 5 * + 45 THEN 61 + - 24 END ), AVG ( - 68 ) ) + + COUNT( * ) col0
----
-49

skipif mysql # not compatible
query I rowsort label-4884
SELECT + NULLIF ( - - NULLIF ( - + 50, - - CASE 80 WHEN + - COUNT ( * ) THEN + - ( 62 ) WHEN 11 * + ( 15 ) + - + NULLIF ( 61, - 98 ) + + 5 * + 45 THEN 61 + - 24 END ), AVG ( - 68 ) ) + + COUNT ( * ) col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-4885
SELECT + COUNT( * ) AS col2, - 84 + - - 40 AS col1
----
1
-44

skipif mysql # not compatible
query II rowsort label-4885
SELECT + COUNT ( * ) AS col2, - 84 + - - 40 AS col1
----
1
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4886
SELECT ALL + 26, + 49 - 0 + - + COUNT( * ) * 57 col0
----
26
-8

skipif mysql # not compatible
query II rowsort label-4886
SELECT ALL + 26, + 49 - 0 + - + COUNT ( * ) * 57 col0
----
26
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL + CAST( 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL + CAST ( 28 AS INTEGER )
----
28

query I rowsort
SELECT ALL 99 * - 46 + - 93 AS col2
----
-4647

query I rowsort
SELECT + 82 * - + 79
----
-6478

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL 94 * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL 94 * COUNT ( * )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4891
SELECT + COUNT( * ) DIV - + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4891
SELECT + COUNT ( * ) / - + COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT ALL 36 * + MIN( ALL + 94 ) + COUNT( * ) AS col0, ( - ( + SUM( - 70 ) ) ) * + + 84 + - + COUNT( ALL + 85 ) + - 73 AS col0
----
3385
5806

skipif mysql # not compatible
query II rowsort label-4892
SELECT ALL 36 * + MIN ( ALL + 94 ) + COUNT ( * ) AS col0, ( - ( + SUM ( - 70 ) ) ) * + + 84 + - + COUNT ( ALL + 85 ) + - 73 AS col0
----
3385
5806

query I rowsort
SELECT - 46 - - 98 + + 4 * - 94 * + 92
----
-34540

query I rowsort
SELECT + ( + - ( - - 60 ) ) + + 73 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4895
SELECT ALL + 83 * - - 43 + 92 + 9 * - - COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( * ) + - ( + - 90 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + 83 * - - 43 + 92 + 9 * - - COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) + - ( + - 90 ) ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 98 * 76 AS col2
----
7448

query I rowsort
SELECT + 9 * - + 45
----
-405

query I rowsort
SELECT + 9 - + 71
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT DISTINCT 73, COUNT( * ) AS col2
----
73
1

skipif mysql # not compatible
query II rowsort label-4899
SELECT DISTINCT 73, COUNT ( * ) AS col2
----
73
1

query I rowsort
SELECT ALL + 13 + 11
----
24

query I rowsort
SELECT + 62 * - 23 * + COALESCE ( + - 37, - 36 )
----
52762

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT ALL COALESCE ( - - 22, - 36 * - - 67 + 45 * + 82 DIV + 34 * + 48, ( - + 63 ) ) - - + 11 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL COALESCE ( - - 22, - 36 * - - 67 + 45 * + 82 / + 34 * + 48, ( - + 63 ) ) - - + 11 AS col2
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-4903
SELECT - - 94 * - 91 + 22 AS col0, 74 DIV - + 34 col2
----
-8532
-2

skipif mysql # not compatible
query II rowsort label-4903
SELECT - - 94 * - 91 + 22 AS col0, 74 / - + 34 col2
----
-8532
-2

query I rowsort
SELECT ALL - 88 * 56 AS col0
----
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT - 55 * + COUNT( * ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - 55 * + COUNT ( * ) col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL - COUNT( * ) - - 61
----
60

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL - COUNT ( * ) - - 61
----
60

query I rowsort
SELECT - NULLIF ( 97, + + 62 + + - 0 ) * + - 24 AS col0
----
2328

query I rowsort
SELECT ALL 95 * 74 col2
----
7030

query I rowsort
SELECT + + COALESCE ( - 77, + 74 ) + + + 26 + 66 col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT + ( COUNT( * ) ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT + ( COUNT ( * ) ) / 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT - + 67 * 29 DIV + 71
----
-27

skipif mysql # not compatible
query I rowsort label-4911
SELECT - + 67 * 29 / + 71
----
-27

query I rowsort
SELECT + - 56 + - + 28 AS col1
----
-84

query II rowsort
SELECT DISTINCT + 97, 45 - - 4 - + 94 * 46 col2
----
97
-4275

query I rowsort
SELECT - + 81 + - - 15
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4915
SELECT + 70 col0, 99 * COUNT( * ) + + CASE + + 67 WHEN - + 88 + + 58 THEN - 26 WHEN 22 THEN NULL END * + + COUNT( * ) - + + 37
----
70
NULL

skipif mysql # not compatible
query II rowsort label-4915
SELECT + 70 col0, 99 * COUNT ( * ) + + CASE + + 67 WHEN - + 88 + + 58 THEN - 26 WHEN 22 THEN NULL END * + + COUNT ( * ) - + + 37
----
70
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT ALL + 23 DIV + - ( + - 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL + 23 / + - ( + - 61 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT - 89 * COUNT( * ) + 4 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-4917
SELECT - 89 * COUNT ( * ) + 4 AS col0
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT - COALESCE ( 79, - 88 / + 60 ) * - 3 + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT - COALESCE ( 79, - 88 / + 60 ) * - 3 + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL 20 / - + CASE - 18 WHEN - 22 + + 15 THEN 71 + - AVG ( 43 ) END + - COALESCE ( + - 37, + + 23 - + 76, - + 91 ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL 20 / - + CASE - 18 WHEN - 22 + + 15 THEN 71 + - AVG ( 43 ) END + - COALESCE ( + - 37, + + 23 - + 76, - + 91 ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4920
SELECT + NULLIF ( + + 1, + 3 ) DIV + 39 - + 29 * SUM( DISTINCT - 81 ) DIV - 81 + + 34 + + - SUM( + - 75 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4920
SELECT + NULLIF ( + + 1, + 3 ) / + 39 - + 29 * SUM ( DISTINCT - 81 ) / - 81 + + 34 + + - SUM ( + - 75 ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4921
SELECT ALL 32 DIV - 39 * - COUNT( * ) * - + 34 + 11
----
11

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL 32 / - 39 * - COUNT ( * ) * - + 34 + 11
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT COUNT( * ) * - COUNT( * ) + ( COUNT( 25 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4922
SELECT COUNT ( * ) * - COUNT ( * ) + ( COUNT ( 25 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT + 51 * - COUNT( * ) * 83 + + 66 AS col1, 92 AS col1
----
-4167
92

skipif mysql # not compatible
query II rowsort label-4923
SELECT + 51 * - COUNT ( * ) * 83 + + 66 AS col1, 92 AS col1
----
-4167
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4924
SELECT 71 + - - CAST( NULL AS SIGNED ) AS col1, 77
----
NULL
77

skipif mysql # not compatible
query II rowsort label-4924
SELECT 71 + - - CAST ( NULL AS INTEGER ) AS col1, 77
----
NULL
77

query I rowsort
SELECT ALL + 89 + 61 AS col2
----
150

query I rowsort
SELECT DISTINCT - 34 * + + 3 * + + ( - 99 ) col2
----
10098

query I rowsort
SELECT ALL - COALESCE ( - 3, 6 - + 51 )
----
3

query I rowsort
SELECT 89 * 67 * + + 26 + - 80 - 39
----
154919

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT COALESCE ( - - 3, - + NULLIF ( + 67, - 48 DIV 0 ) + - 86 + 74 * - 16, - 52 + + 63 DIV + + MAX( DISTINCT + + 45 ) - 58 ) * + 34 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT COALESCE ( - - 3, - + NULLIF ( + 67, - 48 / 0 ) + - 86 + 74 * - 16, - 52 + + 63 / + + MAX ( DISTINCT + + 45 ) - 58 ) * + 34 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL + - ( + 87 ) - + MIN( DISTINCT - 34 ) + - + COALESCE ( + - 62, - 67 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + - ( + 87 ) - + MIN ( DISTINCT - 34 ) + - + COALESCE ( + - 62, - 67 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + COUNT( * ) * + + 56 - 41
----
15

skipif mysql # not compatible
query I rowsort label-4931
SELECT + COUNT ( * ) * + + 56 - 41
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ( - COUNT( * ) ) * + - 56
----
56

skipif mysql # not compatible
query I rowsort label-4932
SELECT ( - COUNT ( * ) ) * + - 56
----
56

query I rowsort
SELECT + 60 * - 54 * + 59 + - 35 AS col2
----
-191195

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - 69 + + MIN( ALL 60 ) * 14 + - 10 AS col1
----
761

skipif mysql # not compatible
query I rowsort label-4934
SELECT - 69 + + MIN ( ALL 60 ) * 14 + - 10 AS col1
----
761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT + CAST( NULL AS SIGNED ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT + CAST ( NULL AS INTEGER ) + - 49
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4936
SELECT DISTINCT + SUM( ALL + 57 ) AS col2, + 82 + + - 80 col0
----
57
2

skipif mysql # not compatible
query II rowsort label-4936
SELECT DISTINCT + SUM ( ALL + 57 ) AS col2, + 82 + + - 80 col0
----
57
2

query I rowsort
SELECT DISTINCT ( - + 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4938
SELECT ALL + COALESCE ( + + COUNT( * ), 44 + + ( CASE - MAX( ALL + 74 ) WHEN + 99 THEN - 82 DIV - 24 END ) + - 57, + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + COALESCE ( + + COUNT ( * ), 44 + + ( CASE - MAX ( ALL + 74 ) WHEN + 99 THEN - 82 / - 24 END ) + - 57, + 26 )
----
1

query I rowsort
SELECT ( 82 ) + + + 73
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4940
SELECT - COALESCE ( + + 36, - - CAST( + MIN( - 30 ) AS SIGNED ) ), 73 - + + 9 + 66 AS col2
----
-36
130

skipif mysql # not compatible
query II rowsort label-4940
SELECT - COALESCE ( + + 36, - - CAST ( + MIN ( - 30 ) AS INTEGER ) ), 73 - + + 9 + 66 AS col2
----
-36
130

query I rowsort
SELECT COALESCE ( 34, 84 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL COALESCE ( - 34, 52 * + 65 - 51, + COUNT( * ) * 19 * + CASE + 52 WHEN + 41 THEN 57 END ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL COALESCE ( - 34, 52 * + 65 - 51, + COUNT ( * ) * 19 * + CASE + 52 WHEN + 41 THEN 57 END ) col1
----
-34

query I rowsort
SELECT 24 * - - 17 + + ( ( - NULLIF ( - 13, 89 ) ) ) AS col0
----
421

query I rowsort
SELECT - 68 + 62
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT + 83 + + COUNT( * ) + - - 83
----
167

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT + 83 + + COUNT ( * ) + - - 83
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT - 26 DIV - - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 26 / - - 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ( - 95 ) * COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-4947
SELECT ( - 95 ) * COUNT ( * )
----
-95

query I rowsort
SELECT DISTINCT + 10 * + + 1
----
10

query I rowsort
SELECT ALL - COALESCE ( 97, + + COALESCE ( - + 26, + 4 ) ) col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT 81 DIV + - NULLIF ( + 94, - 45 * + 86 * - - COUNT( ALL + 81 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT 81 / + - NULLIF ( + 94, - 45 * + 86 * - - COUNT ( ALL + 81 ) ) AS col0
----
0

query I rowsort
SELECT ALL 65 + + - 5
----
60

query I rowsort
SELECT ( + 66 ) * - + 19 AS col0
----
-1254

query II rowsort
SELECT 22, + 20 AS col0
----
22
20

query I rowsort
SELECT ALL - NULLIF ( 66, 28 ) col2
----
-66

query I rowsort
SELECT 77 * 67
----
5159

query II rowsort
SELECT 3, 80 col1
----
3
80

query I rowsort
SELECT ALL - 21 + + 11 AS col2
----
-10

query II rowsort
SELECT + 43 AS col1, + 33
----
43
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT - MIN( + - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - MIN ( + - 1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4960
SELECT 6 * + COUNT( * ) DIV - - NULLIF ( + 45, 33 * + 0 - - COUNT( * ) - + CAST( - + ( - 68 ) AS SIGNED ) ) * 59 * - + 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-4960
SELECT 6 * + COUNT ( * ) / - - NULLIF ( + 45, 33 * + 0 - - COUNT ( * ) - + CAST ( - + ( - 68 ) AS INTEGER ) ) * 59 * - + 98 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL + ( - - COUNT( * ) ) * 33
----
33

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + ( - - COUNT ( * ) ) * 33
----
33

query I rowsort
SELECT ALL - 58 - + - 27 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4963
SELECT DISTINCT + 3 * - - COUNT( * ) * + 59 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT + 3 * - - COUNT ( * ) * + 59 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4964
SELECT - NULLIF ( + + 88, - 5 ) - - CASE - + 72 WHEN - COUNT( * ) THEN + CAST( - ( 19 ) AS SIGNED ) WHEN + + NULLIF ( - 54, - + 95 ) / - - 25 THEN - 77 * - + 4 ELSE NULL END + 0 + + 70 - COUNT( * ) * - CAST( - + 73 AS SIGNED ) + + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT - NULLIF ( + + 88, - 5 ) - - CASE - + 72 WHEN - COUNT ( * ) THEN + CAST ( - ( 19 ) AS INTEGER ) WHEN + + NULLIF ( - 54, - + 95 ) / - - 25 THEN - 77 * - + 4 ELSE NULL END + 0 + + 70 - COUNT ( * ) * - CAST ( - + 73 AS INTEGER ) + + 29
----
NULL

query I rowsort
SELECT 11 * ( + + 69 )
----
759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4966
SELECT ALL + NULLIF ( CAST( 38 AS SIGNED ), COUNT( + - 59 ) * - 73 + + 32 ) * 85
----
3230

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + NULLIF ( CAST ( 38 AS INTEGER ), COUNT ( + - 59 ) * - 73 + + 32 ) * 85
----
3230

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT + MIN( ALL ( - 78 ) ), ( - 86 ) * + 8 - 9 AS col1
----
-78
-697

skipif mysql # not compatible
query II rowsort label-4967
SELECT + MIN ( ALL ( - 78 ) ), ( - 86 ) * + 8 - 9 AS col1
----
-78
-697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT ALL + 61 * + AVG ( ALL 22 ) / - ( CAST( NULL AS SIGNED ) ) * - + ( COUNT( * ) ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + 61 * + AVG ( ALL 22 ) / - ( CAST ( NULL AS INTEGER ) ) * - + ( COUNT ( * ) ) + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT CASE SUM( ALL 24 ) WHEN - 35 THEN 37 * - 12 ELSE + 78 END col1
----
78

skipif mysql # not compatible
query I rowsort label-4969
SELECT CASE SUM ( ALL 24 ) WHEN - 35 THEN 37 * - 12 ELSE + 78 END col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4970
SELECT CASE WHEN CAST( 26 AS SIGNED ) IN ( + ( 24 ) ) THEN NULL ELSE - COUNT( * ) * + NULLIF ( - 57, - 55 * 49 + SUM( DISTINCT - 41 ) ) / + 35 / + 13 - - COUNT( * ) - 5 + CAST( NULL AS SIGNED ) + + - 86 + + COUNT( * ) * - 61 * 73 + 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT CASE WHEN CAST ( 26 AS INTEGER ) IN ( + ( 24 ) ) THEN NULL ELSE - COUNT ( * ) * + NULLIF ( - 57, - 55 * 49 + SUM ( DISTINCT - 41 ) ) / + 35 / + 13 - - COUNT ( * ) - 5 + CAST ( NULL AS INTEGER ) + + - 86 + + COUNT ( * ) * - 61 * 73 + 79 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL - COUNT( * ) * - 7 * - + 73 AS col1
----
-511

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - COUNT ( * ) * - 7 * - + 73 AS col1
----
-511

query II rowsort
SELECT 95 AS col0, 14 col2
----
95
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT - 74 + - 43 + - NULLIF ( + - 45, - 64 ) * - NULLIF ( + 87, 43 * - COUNT( * ) / - - 45 ) * 99 AS col0
----
-387702

skipif mysql # not compatible
query I rowsort label-4973
SELECT - 74 + - 43 + - NULLIF ( + - 45, - 64 ) * - NULLIF ( + 87, 43 * - COUNT ( * ) / - - 45 ) * 99 AS col0
----
-387702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4974
SELECT ALL COUNT( * ) * ( - 40 ) DIV - 95 + + ( - 2 ) * 29
----
-58

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL COUNT ( * ) * ( - 40 ) / - 95 + + ( - 2 ) * 29
----
-58

query II rowsort
SELECT 39 * + 5 * + 55 col2, - ( - - 58 ) col1
----
10725
-58

query I rowsort
SELECT ALL - 54 + - 67 * + 69 * + 13
----
-60153

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - - ( COUNT( * ) ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - - ( COUNT ( * ) ) + 87 AS col1
----
88

query I rowsort
SELECT ALL 77 + - 55 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT 52 + + 29 * - 94 + + COUNT( * )
----
-2673

skipif mysql # not compatible
query I rowsort label-4979
SELECT 52 + + 29 * - 94 + + COUNT ( * )
----
-2673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4980
SELECT 51 AS col2, CAST( NULL AS SIGNED ) * - 72 + + COALESCE ( - 40, + COALESCE ( + 49, + 69 * + 48, - ( - + CASE + 36 WHEN + + 55 + - CAST( + ( - - 42 ) AS DECIMAL ) + + 57 + 9 THEN 18 END ) / - 35 + - COUNT( * ) / - CAST( + ( - 61 ) AS SIGNED ) ) )
----
51
NULL

skipif mysql # not compatible
query II rowsort label-4980
SELECT 51 AS col2, CAST ( NULL AS INTEGER ) * - 72 + + COALESCE ( - 40, + COALESCE ( + 49, + 69 * + 48, - ( - + CASE + 36 WHEN + + 55 + - CAST ( + ( - - 42 ) AS REAL ) + + 57 + 9 THEN 18 END ) / - 35 + - COUNT ( * ) / - CAST ( + ( - 61 ) AS INTEGER ) ) )
----
51
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT + CAST( COUNT( * ) AS SIGNED ) - 17 + + + 39 * + 81 AS col2
----
3143

skipif mysql # not compatible
query I rowsort label-4981
SELECT + CAST ( COUNT ( * ) AS INTEGER ) - 17 + + + 39 * + 81 AS col2
----
3143

query I rowsort
SELECT + NULLIF ( + 99, + - 7 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT + 23 + + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4983
SELECT + 23 + + COUNT ( * ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT + NULLIF ( + - COUNT( * ), CAST( NULL AS SIGNED ) * - 65 + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-4984
SELECT + NULLIF ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) * - 65 + 59 )
----
-1

query I rowsort
SELECT ALL - ( + - 34 ) * - ( + 14 ) - 6 AS col2
----
-482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4986
SELECT + CAST( NULL AS SIGNED ) * - 81 * - - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT + CAST ( NULL AS INTEGER ) * - 81 * - - 10 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT + COALESCE ( - 68, - 50 DIV + 87 * + - 76, + + 38 * + ( - 90 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-4987
SELECT + COALESCE ( - 68, - 50 / + 87 * + - 76, + + 38 * + ( - 90 ) )
----
-68

query I rowsort
SELECT + 69 + - ( 88 ) + - 18 + - 26 + - 9 * 4 - - 92 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4989
SELECT + COUNT( * ) AS col2, - MAX( DISTINCT 71 )
----
1
-71

skipif mysql # not compatible
query II rowsort label-4989
SELECT + COUNT ( * ) AS col2, - MAX ( DISTINCT 71 )
----
1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - 45 + - + 59 - - + MIN( - + 13 ) * + COALESCE ( 85, + 1 )
----
-1209

skipif mysql # not compatible
query I rowsort label-4990
SELECT - 45 + - + 59 - - + MIN ( - + 13 ) * + COALESCE ( 85, + 1 )
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT + COUNT( DISTINCT + - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-4991
SELECT + COUNT ( DISTINCT + - 29 )
----
1

query I rowsort
SELECT COALESCE ( ( - 78 ), + 90 * - 37, - + 85, 62 ) AS col1
----
-78

query II rowsort
SELECT DISTINCT + 57 AS col0, 84 AS col1
----
57
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT COUNT( * ) * + 42 + 37 * + SUM( + 58 ) + - + 50, - 13 col2
----
2138
-13

skipif mysql # not compatible
query II rowsort label-4994
SELECT COUNT ( * ) * + 42 + 37 * + SUM ( + 58 ) + - + 50, - 13 col2
----
2138
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT + 9 + + 29 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4995
SELECT + 9 + + 29 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 70 * + 68
----
-4760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4997
SELECT + 56 * 89 AS col1, 14 * + ( + + MIN( ALL + - CAST( - 97 AS SIGNED ) ) ) * - 25 AS col2
----
4984
-33950

skipif mysql # not compatible
query II rowsort label-4997
SELECT + 56 * 89 AS col1, 14 * + ( + + MIN ( ALL + - CAST ( - 97 AS INTEGER ) ) ) * - 25 AS col2
----
4984
-33950

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT ALL - - 2 DIV 58 * - + 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL - - 2 / 58 * - + 62 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4999
SELECT - + COUNT( ALL - + COALESCE ( + 12, - + 83 DIV - + 84 + + - NULLIF ( + 44, + 22 ) * + 99 * + 76 ) ) DIV 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4999
SELECT - + COUNT ( ALL - + COALESCE ( + 12, - + 83 / - + 84 + + - NULLIF ( + 44, + 22 ) * + 99 * + 76 ) ) / 43 AS col1
----
0

query II rowsort
SELECT ALL + + 34 AS col2, ( + + 62 ) + - - 42 - + 90
----
34
14

query I rowsort
SELECT - 6 * - 14 + 26 AS col1
----
110

query I rowsort
SELECT ALL + 10 * + - 60 * 42 + 69
----
-25131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT ALL + NULLIF ( - CASE + 50 WHEN - 65 * - 59 + CASE - 95 WHEN + 44 + CASE - - 11 WHEN 65 * - + CAST( NULL AS SIGNED ) * + + 47 * + - 9 THEN - 3 WHEN - CAST( - - 26 AS SIGNED ) * + 28 THEN 17 ELSE NULL END THEN - - AVG ( + 54 ) END THEN + 52 END, - AVG ( ALL 59 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + NULLIF ( - CASE + 50 WHEN - 65 * - 59 + CASE - 95 WHEN + 44 + CASE - - 11 WHEN 65 * - + CAST ( NULL AS INTEGER ) * + + 47 * + - 9 THEN - 3 WHEN - CAST ( - - 26 AS INTEGER ) * + 28 THEN 17 ELSE NULL END THEN - - AVG ( + 54 ) END THEN + 52 END, - AVG ( ALL 59 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5004
SELECT ALL + 95 AS col0, + NULLIF ( + 99, - + 39 * + 38 DIV - + 30 + COUNT( * ) ) AS col2, - CASE + 12 WHEN NULLIF ( - 89, + SUM( 93 ) ) THEN NULL ELSE + + 51 DIV + 73 + 40 END
----
95
99
-40

skipif mysql # not compatible
query III rowsort label-5004
SELECT ALL + 95 AS col0, + NULLIF ( + 99, - + 39 * + 38 / - + 30 + COUNT ( * ) ) AS col2, - CASE + 12 WHEN NULLIF ( - 89, + SUM ( 93 ) ) THEN NULL ELSE + + 51 / + 73 + 40 END
----
95
99
-40

query II rowsort
SELECT + + 82, + CASE 69 WHEN 60 + - 38 * + 70 + + 88 + - + 16 + - 26 THEN 74 END AS col1
----
82
NULL

query II rowsort
SELECT - 43 AS col0, 83
----
-43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT - 14 * - - 8 * + + 81 * + + 88 DIV 44 + - ( - - 26 )
----
-18170

skipif mysql # not compatible
query I rowsort label-5007
SELECT - 14 * - - 8 * + + 81 * + + 88 / 44 + - ( - - 26 )
----
-18170

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL + + MAX( ALL - 60 ) + + 52 * 75
----
3840

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL + + MAX ( ALL - 60 ) + + 52 * 75
----
3840

query I rowsort
SELECT - + 44 + 8 * - + 76
----
-652

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5010
SELECT - 93, 54 + 44 * CAST( - 29 AS SIGNED ) AS col2
----
-93
-1222

skipif mysql # not compatible
query II rowsort label-5010
SELECT - 93, 54 + 44 * CAST ( - 29 AS INTEGER ) AS col2
----
-93
-1222

query I rowsort
SELECT - 42 + + 0
----
-42

query III rowsort
SELECT + 27 AS col0, + 83 AS col1, + 77 + - 16
----
27
83
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5013
SELECT DISTINCT - - MIN( ALL + - CAST( NULL AS SIGNED ) ) + - 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT - - MIN ( ALL + - CAST ( NULL AS INTEGER ) ) + - 68 AS col2
----
NULL

query I rowsort
SELECT - + ( + 44 ) AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-5015
SELECT ALL 47 DIV 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL 47 / 53 AS col1
----
0

query I rowsort
SELECT ALL - ( + + 86 ) + + 96 * + + 62
----
5866

query II rowsort
SELECT ALL 39 col1, - 2
----
39
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT - CASE - 73 WHEN + 77 THEN 51 ELSE NULL END + + 81 + + ( - - 73 ) * ( + 92 ) * - 98 * + NULLIF ( 65, - - CAST( NULL AS SIGNED ) ) * 19 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT - CASE - 73 WHEN + 77 THEN 51 ELSE NULL END + + 81 + + ( - - 73 ) * ( + 92 ) * - 98 * + NULLIF ( 65, - - CAST ( NULL AS INTEGER ) ) * 19 + 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT ALL - 93 DIV 62
----
-1

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - 93 / 62
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT - 47 DIV + 64 * - - 63 col2
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT - 47 / + 64 * - - 63 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT - CASE - 21 WHEN 34 THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT - CASE - 21 WHEN 34 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT DISTINCT 76 * - + COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT 76 * - + COUNT ( * ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL COUNT( * ) - ( - 60 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL COUNT ( * ) - ( - 60 ) AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5024
SELECT - 17 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-5024
SELECT - 17 / 77
----
0

query I rowsort
SELECT ALL ( + 22 ) AS col1
----
22

query I rowsort
SELECT DISTINCT ( 52 ) AS col2
----
52

query I rowsort
SELECT + NULLIF ( 49, + - 65 + + 41 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + ( MAX( + 57 ) )
----
57

skipif mysql # not compatible
query I rowsort label-5028
SELECT + ( MAX ( + 57 ) )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT CAST( - + ( - COUNT( * ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5029
SELECT CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT CAST( - + 19 AS SIGNED ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-5030
SELECT CAST ( - + 19 AS INTEGER ) AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT CAST( - COUNT( DISTINCT 81 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5031
SELECT CAST ( - COUNT ( DISTINCT 81 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5032
SELECT + NULLIF ( - MIN( ALL + - 77 ), + + NULLIF ( + - COUNT( * ), - - COUNT( * ) ) - - + 71 ) AS col1, - 30
----
77
-30

skipif mysql # not compatible
query II rowsort label-5032
SELECT + NULLIF ( - MIN ( ALL + - 77 ), + + NULLIF ( + - COUNT ( * ), - - COUNT ( * ) ) - - + 71 ) AS col1, - 30
----
77
-30

query I rowsort
SELECT ( + + 87 ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT DISTINCT - CAST( 73 AS SIGNED ) * 85
----
-6205

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT - CAST ( 73 AS INTEGER ) * 85
----
-6205

query I rowsort
SELECT ALL + + COALESCE ( - 95, + 43 ) AS col1
----
-95

query I rowsort
SELECT ALL - ( 64 ) * + 19 + + 9
----
-1207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5037
SELECT DISTINCT + COUNT( * ) * + 54 DIV + 36 col1
----
1

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT + COUNT ( * ) * + 54 / + 36 col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5038
SELECT ALL + + COUNT( ALL - + 92 ) * + - 47 - - 25 * - CAST( - 47 AS SIGNED ) + - 11 AS col0, 78 * - - COUNT( * ) * - 23 * - + 86
----
1117
154284

skipif mysql # not compatible
query II rowsort label-5038
SELECT ALL + + COUNT ( ALL - + 92 ) * + - 47 - - 25 * - CAST ( - 47 AS INTEGER ) + - 11 AS col0, 78 * - - COUNT ( * ) * - 23 * - + 86
----
1117
154284

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL - - COUNT( * ) * + + 24 + 21 + - + 9 * - 70
----
675

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - - COUNT ( * ) * + + 24 + 21 + - + 9 * - 70
----
675

query I rowsort
SELECT - ( 49 ) AS col0
----
-49

query I rowsort
SELECT + + 98 * - 91 * + 57 + + 71
----
-508255

query I rowsort
SELECT - - 34 * - NULLIF ( 32, ( + + 97 ) * + + ( 44 ) )
----
-1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5043
SELECT DISTINCT - + 33 DIV NULLIF ( MIN( + 70 ), + COALESCE ( + 17, COALESCE ( + + 59, - CAST( NULL AS SIGNED ) * - - 30 * + + 11 * + 76 + - COUNT( + 26 ) ), 6 - - - 90 - - ( - COUNT( * ) ) DIV + - 22 * 4 * - COALESCE ( - CAST( 11 AS SIGNED ), + 27 * - 19 + + ( ( - AVG ( ALL NULLIF ( - 41, - 21 + COALESCE ( 88, + 19 - 59 ) * + 70 ) ) ) ) ) DIV 21, 17 DIV 29 ) * + COUNT( + 98 ) - COUNT( ALL 30 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - + 33 / NULLIF ( MIN ( + 70 ), + COALESCE ( + 17, COALESCE ( + + 59, - CAST ( NULL AS INTEGER ) * - - 30 * + + 11 * + 76 + - COUNT ( + 26 ) ), 6 - - - 90 - - ( - COUNT ( * ) ) / + - 22 * 4 * - COALESCE ( - CAST ( 11 AS INTEGER ), + 27 * - 19 + + ( ( - AVG ( ALL NULLIF ( - 41, - 21 + COALESCE ( 88, + 19 - 59 ) * + 70 ) ) ) ) ) / 21, 17 / 29 ) * + COUNT ( + 98 ) - COUNT ( ALL 30 ) ) AS col0
----
0

query I rowsort
SELECT ALL 70 * + - 86 + - + 14 + - 77 col0
----
-6111

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL CASE 89 WHEN COUNT( * ) THEN 56 / 7 + 3 * 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL CASE 89 WHEN COUNT ( * ) THEN 56 / 7 + 3 * 96 END AS col1
----
NULL

query I rowsort
SELECT 65 + - 23 - 70
----
-28

query I rowsort
SELECT 0 * 90 col0
----
0

query I rowsort
SELECT DISTINCT - 88 - 21
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5049
SELECT DISTINCT 47 * CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) * + 25 * - + COUNT( * )
----
1175

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT 47 * CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * + 25 * - + COUNT ( * )
----
1175

query I rowsort
SELECT 90 * - - 19
----
1710

onlyif mysql # aggregate syntax: 
query II rowsort label-5051
SELECT DISTINCT - MIN( DISTINCT - 91 ) - + ( + - 96 ) AS col2, 33 * - COUNT( * ) AS col1
----
187
-33

skipif mysql # not compatible
query II rowsort label-5051
SELECT DISTINCT - MIN ( DISTINCT - 91 ) - + ( + - 96 ) AS col2, 33 * - COUNT ( * ) AS col1
----
187
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5052
SELECT DISTINCT 23 DIV 57 * + 67 AS col0, COUNT( * ) * - 6 + + 92 col0
----
0
86

skipif mysql # not compatible
query II rowsort label-5052
SELECT DISTINCT 23 / 57 * + 67 AS col0, COUNT ( * ) * - 6 + + 92 col0
----
0
86

query II rowsort
SELECT 80 * 62 * 48 AS col2, 16 / + CASE 31 WHEN 41 THEN + - 85 END + + + 93 * - 82 AS col2
----
238080
NULL

query I rowsort
SELECT 16 * 75
----
1200

query I rowsort
SELECT 86 + + + 33
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT 96 + - - CAST( + 35 AS SIGNED ) - - 67
----
198

skipif mysql # not compatible
query I rowsort label-5056
SELECT 96 + - - CAST ( + 35 AS INTEGER ) - - 67
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT 35 DIV + - 37
----
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT 35 / + - 37
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5058
SELECT 5 + + ( + 30 ), COUNT( ALL + ( + 69 ) ) AS col2
----
35
1

skipif mysql # not compatible
query II rowsort label-5058
SELECT 5 + + ( + 30 ), COUNT ( ALL + ( + 69 ) ) AS col2
----
35
1

query I rowsort
SELECT ALL + 26 * 7 AS col2
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT 12 DIV 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-5060
SELECT 12 / 74 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5061
SELECT DISTINCT + 54 DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT + 54 / - 28
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT 25 DIV + + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5062
SELECT 25 / + + 79 AS col1
----
0

query I rowsort
SELECT ALL ( + 13 ) + + 69 - - 45 * + + 15
----
757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5064
SELECT - NULLIF ( + - CAST( NULL AS SIGNED ), - ( + - 65 ) / + 77 * COUNT( * ) * SUM( DISTINCT - + 0 ) - + 68 * 40 + - + 79 - CAST( NULL AS SIGNED ) ) / - 84 * - + MAX( + 36 ) / COUNT( ALL - 74 ) + 82 * - 56 + - - 51 + NULLIF ( - 27, - 39 ) + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT - NULLIF ( + - CAST ( NULL AS INTEGER ), - ( + - 65 ) / + 77 * COUNT ( * ) * SUM ( DISTINCT - + 0 ) - + 68 * 40 + - + 79 - CAST ( NULL AS INTEGER ) ) / - 84 * - + MAX ( + 36 ) / COUNT ( ALL - 74 ) + 82 * - 56 + - - 51 + NULLIF ( - 27, - 39 ) + + 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL + 73 * - COUNT( * ) * + + 48 AS col1
----
-3504

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + 73 * - COUNT ( * ) * + + 48 AS col1
----
-3504

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT SUM( + - 15 ) + 84 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5066
SELECT SUM ( + - 15 ) + 84 AS col2
----
69

query II rowsort
SELECT DISTINCT - 82 + 65 + 46 AS col1, - 49 * - ( 87 ) AS col0
----
29
4263

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + CASE + 88 WHEN 37 THEN - COUNT( * ) ELSE - 94 END AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-5068
SELECT + CASE + 88 WHEN 37 THEN - COUNT ( * ) ELSE - 94 END AS col1
----
-94

query I rowsort
SELECT 68 * 35 AS col0
----
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT + ( - + MAX( + + 78 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5070
SELECT + ( - + MAX ( + + 78 ) ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT MIN( + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-5071
SELECT MIN ( + 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + - MAX( ALL + 48 ) * + + 40 + + + 85
----
-1835

skipif mysql # not compatible
query I rowsort label-5072
SELECT + - MAX ( ALL + 48 ) * + + 40 + + + 85
----
-1835

query I rowsort
SELECT DISTINCT + 99 * + 43 col2
----
4257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5074
SELECT + 54 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT + 54 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL - 88 + - + 26 * + ( - - CASE - + 48 WHEN - - 51 * + CASE + CASE + 82 WHEN 5 / ( + 13 ) THEN 87 ELSE + 83 + + 94 * + + 36 END WHEN 63 * - COUNT( ALL + 13 ) + + 93 + 79 THEN NULL WHEN - + COUNT( - 16 ) * + 66 THEN - 33 + 42 * + 79 ELSE NULL END + + COALESCE ( - ( 12 ), + 98 + 5, 71 ) THEN 16 WHEN AVG ( 17 ) + - 61 * MAX( 27 + 89 ) THEN 4 + 77 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL - 88 + - + 26 * + ( - - CASE - + 48 WHEN - - 51 * + CASE + CASE + 82 WHEN 5 / ( + 13 ) THEN 87 ELSE + 83 + + 94 * + + 36 END WHEN 63 * - COUNT ( ALL + 13 ) + + 93 + 79 THEN NULL WHEN - + COUNT ( - 16 ) * + 66 THEN - 33 + 42 * + 79 ELSE NULL END + + COALESCE ( - ( 12 ), + 98 + 5, 71 ) THEN 16 WHEN AVG ( 17 ) + - 61 * MAX ( 27 + 89 ) THEN 4 + 77 END ) AS col1
----
NULL

query I rowsort
SELECT ALL + 66 * 34
----
2244

query I rowsort
SELECT 83 * - 79 AS col0
----
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT + NULLIF ( - 89, - 5 * - + COUNT( * ) ) * 9 + 57
----
-744

skipif mysql # not compatible
query I rowsort label-5078
SELECT + NULLIF ( - 89, - 5 * - + COUNT ( * ) ) * 9 + 57
----
-744

query I rowsort
SELECT + - ( - 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL + COUNT( * ) * - 47 + + COALESCE ( - ( + 2 ), 29 * + - MIN( + 95 ) * + ( - COALESCE ( - + NULLIF ( + 36, + 74 ), SUM( DISTINCT - 77 ) + - 52 ) ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL + COUNT ( * ) * - 47 + + COALESCE ( - ( + 2 ), 29 * + - MIN ( + 95 ) * + ( - COALESCE ( - + NULLIF ( + 36, + 74 ), SUM ( DISTINCT - 77 ) + - 52 ) ) ) AS col2
----
-49

query I rowsort
SELECT ( + + 94 ) * - - 59
----
5546

query I rowsort
SELECT + + 22 * + 17 + 49 + 52 AS col2
----
475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5083
SELECT DISTINCT MIN( DISTINCT 4 ) DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT MIN ( DISTINCT 4 ) / 13
----
0

query II rowsort
SELECT 6 + + 83 col0, - 74
----
89
-74

query I rowsort
SELECT DISTINCT - ( + + 13 ) * - + 89
----
1157

query I rowsort
SELECT 16 + - 68
----
-52

query I rowsort
SELECT 15 * - - 54 col1
----
810

query I rowsort
SELECT ALL 92 + 57 + + - 72
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT ALL - CAST( + + 35 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - CAST ( + + 35 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT DISTINCT + COUNT( * ) + + - CAST( + 60 AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + COUNT ( * ) + + - CAST ( + 60 AS INTEGER ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL - MIN( - 25 )
----
25

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - MIN ( - 25 )
----
25

query I rowsort
SELECT 40 * + 77 AS col0
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT + 70 * + CASE - 93 WHEN 90 * + + 10 THEN NULL WHEN + + 16 THEN - 78 + - 48 WHEN 26 * ( - 67 ) + + - 39 + + + COUNT( * ) + + NULLIF ( - 63, + ( 92 ) ) * - 90 / + 72 THEN COUNT( DISTINCT + - 50 ) * + - 9 ELSE NULL END + - + 1 + - - 83 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + 70 * + CASE - 93 WHEN 90 * + + 10 THEN NULL WHEN + + 16 THEN - 78 + - 48 WHEN 26 * ( - 67 ) + + - 39 + + + COUNT ( * ) + + NULLIF ( - 63, + ( 92 ) ) * - 90 / + 72 THEN COUNT ( DISTINCT + - 50 ) * + - 9 ELSE NULL END + - + 1 + - - 83 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT 90 - - + 30 + - - 22 + 0 * - - MIN( DISTINCT NULLIF ( + 73, + 64 * + - 65 * + + 21 ) ) * + 8 AS col0
----
142

skipif mysql # not compatible
query I rowsort label-5094
SELECT 90 - - + 30 + - - 22 + 0 * - - MIN ( DISTINCT NULLIF ( + 73, + 64 * + - 65 * + + 21 ) ) * + 8 AS col0
----
142

query I rowsort
SELECT - 11 * - 38 + + 85 AS col2
----
503

query I rowsort
SELECT 80 * + - 23 * + 84
----
-154560

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + NULLIF ( COALESCE ( - SUM( ALL + 43 ), - 56 ), - 52 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-5097
SELECT + NULLIF ( COALESCE ( - SUM ( ALL + 43 ), - 56 ), - 52 ) col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL + 1 * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + 1 * - - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT + + 49 * + 24 * ( - SUM( DISTINCT - + 28 ) ) + + 73
----
33001

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + + 49 * + 24 * ( - SUM ( DISTINCT - + 28 ) ) + + 73
----
33001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5100
SELECT ALL - - NULLIF ( 37, + 53 + + + COUNT( * ) ) - - 82 + - 92 + 43 * + + 95 * + AVG ( ALL + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - - NULLIF ( 37, + 53 + + + COUNT ( * ) ) - - 82 + - 92 + 43 * + + 95 * + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - ( + + 66 ) + 5
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT - 41 + - NULLIF ( + - 30, - 28 ) * COUNT( * ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-5102
SELECT - 41 + - NULLIF ( + - 30, - 28 ) * COUNT ( * ) col2
----
-11

query I rowsort
SELECT - CASE 37 WHEN 87 THEN - 48 WHEN 81 THEN - 27 END
----
NULL

query I rowsort
SELECT + + 74 + - - 45 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL COUNT( * ) * + 7 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL COUNT ( * ) * + 7 AS col2
----
7

query I rowsort
SELECT ALL NULLIF ( 43, + 59 ) AS col0
----
43

query I rowsort
SELECT + 53 + ( + + ( - 13 ) ) AS col2
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-5108
SELECT ALL 59 DIV + ( - 47 ) AS col0, - 44 AS col1
----
-1
-44

skipif mysql # not compatible
query II rowsort label-5108
SELECT ALL 59 / + ( - 47 ) AS col0, - 44 AS col1
----
-1
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT + 70 * - ( SUM( - - 43 ) ) * + 70
----
-210700

skipif mysql # not compatible
query I rowsort label-5109
SELECT + 70 * - ( SUM ( - - 43 ) ) * + 70
----
-210700

query I rowsort
SELECT + 29 + - + 31
----
-2

query I rowsort
SELECT - NULLIF ( + 92, 95 )
----
-92

query I rowsort
SELECT - 58 - 36 + + + 40 AS col1
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-5113
SELECT + 23 DIV - + COALESCE ( + - 37, 43 * - 79 ) AS col1, - 57 DIV COALESCE ( + 35, + 28 ) + - 40 AS col0
----
0
-41

skipif mysql # not compatible
query II rowsort label-5113
SELECT + 23 / - + COALESCE ( + - 37, 43 * - 79 ) AS col1, - 57 / COALESCE ( + 35, + 28 ) + - 40 AS col0
----
0
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT + CAST( NULL AS SIGNED ) * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT + CAST ( NULL AS INTEGER ) * - 91
----
NULL

query II rowsort
SELECT DISTINCT 83 AS col1, + 90
----
83
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5116
SELECT ALL MIN( ( - - 56 ) ) * 1 * - + CASE 49 WHEN + MIN( ALL + - 12 ) THEN NULL WHEN 28 THEN - - 63 WHEN - + 48 THEN + 88 * - 41 * + 32 ELSE NULL END * - 44 - 49 + + 71 * 22 AS col1, 7
----
NULL
7

skipif mysql # not compatible
query II rowsort label-5116
SELECT ALL MIN ( ( - - 56 ) ) * 1 * - + CASE 49 WHEN + MIN ( ALL + - 12 ) THEN NULL WHEN 28 THEN - - 63 WHEN - + 48 THEN + 88 * - 41 * + 32 ELSE NULL END * - 44 - 49 + + 71 * 22 AS col1, 7
----
NULL
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT + 87 DIV + - 74 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5117
SELECT + 87 / + - 74 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT ALL CAST( CAST( - 39 AS SIGNED ) AS SIGNED ) + 62 * + 19
----
1139

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL CAST ( CAST ( - 39 AS INTEGER ) AS INTEGER ) + 62 * + 19
----
1139

onlyif mysql # aggregate syntax: 
query II rowsort label-5119
SELECT DISTINCT COUNT( * ) + + - MIN( 31 ), + 87 AS col0
----
-30
87

skipif mysql # not compatible
query II rowsort label-5119
SELECT DISTINCT COUNT ( * ) + + - MIN ( 31 ), + 87 AS col0
----
-30
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - COUNT( * ) * - 55 * + + ( COUNT( * ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5120
SELECT - COUNT ( * ) * - 55 * + + ( COUNT ( * ) ) AS col0
----
55

query II rowsort
SELECT 0 col0, - 51
----
0
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + 95 + ( - - 21 ) - + 78 * + + 10 - + + COALESCE ( + + COUNT( * ), + 50 )
----
-665

skipif mysql # not compatible
query I rowsort label-5122
SELECT + 95 + ( - - 21 ) - + 78 * + + 10 - + + COALESCE ( + + COUNT ( * ), + 50 )
----
-665

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT - - 8 * + SUM( ALL + NULLIF ( 72, - 11 * + 71 ) ) + 55 - + 88 + 7 * - - 15 AS col0
----
648

skipif mysql # not compatible
query I rowsort label-5123
SELECT - - 8 * + SUM ( ALL + NULLIF ( 72, - 11 * + 71 ) ) + 55 - + 88 + 7 * - - 15 AS col0
----
648

query I rowsort
SELECT 52 * - 4 - + 26 + + 29 + + 77 + 66 * ( - 12 )
----
-920

query I rowsort
SELECT + - NULLIF ( ( + 36 ), 31 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL + + NULLIF ( - 35, 87 * + 96 * + NULLIF ( + 29, - 29 * + + COUNT( * ) - + 54 - 13 ) * - 24 + - - COUNT( * ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + + NULLIF ( - 35, 87 * + 96 * + NULLIF ( + 29, - 29 * + + COUNT ( * ) - + 54 - 13 ) * - 24 + - - COUNT ( * ) ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5127
SELECT ALL + 72 * - COUNT( * ) * - 92 + - CAST( NULL AS DECIMAL ) * + + 71 AS col1, - ( 1 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5127
SELECT ALL + 72 * - COUNT ( * ) * - 92 + - CAST ( NULL AS REAL ) * + + 71 AS col1, - ( 1 )
----
NULL
-1

query I rowsort
SELECT - + 86 + - 88
----
-174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5129
SELECT + + 7 * - COUNT( * ) + 39 * + 41 * - 23 + + + ( - 15 ) DIV + 98 * + 40 * + + 36 + - + SUM( DISTINCT - 61 )
----
-36723

skipif mysql # not compatible
query I rowsort label-5129
SELECT + + 7 * - COUNT ( * ) + 39 * + 41 * - 23 + + + ( - 15 ) / + 98 * + 40 * + + 36 + - + SUM ( DISTINCT - 61 )
----
-36723

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT + 11 DIV 41 - - + 17
----
17

skipif mysql # not compatible
query I rowsort label-5130
SELECT + 11 / 41 - - + 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT + NULLIF ( - MIN( 22 ), - + 25 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-5131
SELECT + NULLIF ( - MIN ( 22 ), - + 25 ) AS col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT ALL - 45 DIV + 31 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - 45 / + 31 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5133
SELECT - + COUNT( * ) DIV - + ( 63 )
----
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT - + COUNT ( * ) / - + ( 63 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5134
SELECT DISTINCT - + 71 * + 66 + COUNT( * ) DIV + 13
----
-4686

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT - + 71 * + 66 + COUNT ( * ) / + 13
----
-4686

query II rowsort
SELECT ALL + + ( 76 ) * + 23 AS col2, - 35 col2
----
1748
-35

query I rowsort
SELECT DISTINCT + 84 * + - 37 AS col2
----
-3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5137
SELECT DISTINCT - COUNT( * ) * - CAST( - - 92 AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 91 + 86 * + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT - COUNT ( * ) * - CAST ( - - 92 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 91 + 86 * + 27 AS col0
----
NULL

query I rowsort
SELECT - 47 * NULLIF ( - 13, NULLIF ( 7, - 92 ) * - 60 - + 77 - 12 + - 68 ) * + 82 + 26
----
50128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5139
SELECT - 22 AS col0, CAST( COALESCE ( - 67, 95 ) AS SIGNED )
----
-22
-67

skipif mysql # not compatible
query II rowsort label-5139
SELECT - 22 AS col0, CAST ( COALESCE ( - 67, 95 ) AS INTEGER )
----
-22
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT MAX( - NULLIF ( + 22, 54 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-5140
SELECT MAX ( - NULLIF ( + 22, 54 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT - 35 + - + CASE 8 WHEN - + COUNT( DISTINCT - - 3 ) THEN - 72 + - 76 END - COUNT( * ) * - + 36 * + ( + 21 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT - 35 + - + CASE 8 WHEN - + COUNT ( DISTINCT - - 3 ) THEN - 72 + - 76 END - COUNT ( * ) * - + 36 * + ( + 21 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5142
SELECT ALL 78 AS col1, MIN( 88 ) AS col1
----
78
88

skipif mysql # not compatible
query II rowsort label-5142
SELECT ALL 78 AS col1, MIN ( 88 ) AS col1
----
78
88

query I rowsort
SELECT - 11 * 52
----
-572

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT + COUNT( * ) + - 42 * + + COUNT( * ) + 55 * - 98
----
-5431

skipif mysql # not compatible
query I rowsort label-5144
SELECT + COUNT ( * ) + - 42 * + + COUNT ( * ) + 55 * - 98
----
-5431

onlyif mysql # DIV for integer division: 
query I rowsort label-5145
SELECT ALL 53 * + 29 * - 56 + 16 DIV - 68
----
-86072

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL 53 * + 29 * - 56 + 16 / - 68
----
-86072

query I rowsort
SELECT DISTINCT ( - 48 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL SUM( - ( - 17 ) ) + - + COUNT( * ) + 39 * 17 + - 88 AS col1
----
591

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL SUM ( - ( - 17 ) ) + - + COUNT ( * ) + 39 * 17 + - 88 AS col1
----
591

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5148
SELECT ALL CAST( - - 69 AS SIGNED ) + 44 + + 90, 84 * 50 col1
----
203
4200

skipif mysql # not compatible
query II rowsort label-5148
SELECT ALL CAST ( - - 69 AS INTEGER ) + 44 + + 90, 84 * 50 col1
----
203
4200

query I rowsort
SELECT - CASE - + 98 WHEN + - 42 * - 89 THEN - - 24 / + - 88 / 28 + - 4 + 69 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT ALL CAST( + + MIN( 19 ) AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL CAST ( + + MIN ( 19 ) AS INTEGER )
----
19

query I rowsort
SELECT - NULLIF ( 72, + 35 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT ALL SUM( CAST( - ( + + 14 ) AS SIGNED ) ) + 86 * + 68 * NULLIF ( + 24, 35 * - + 10 * - 60 * - 80 + COALESCE ( 43, - + 29 - + - COUNT( * ) ) ) * - - 96 + + CAST( NULL AS SIGNED ) * CASE + 17 WHEN - 27 THEN NULL WHEN + 28 THEN NULL ELSE + 58 END * - + 7 + - + 80 * + 20 + 86 * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL SUM ( CAST ( - ( + + 14 ) AS INTEGER ) ) + 86 * + 68 * NULLIF ( + 24, 35 * - + 10 * - 60 * - 80 + COALESCE ( 43, - + 29 - + - COUNT ( * ) ) ) * - - 96 + + CAST ( NULL AS INTEGER ) * CASE + 17 WHEN - 27 THEN NULL WHEN + 28 THEN NULL ELSE + 58 END * - + 7 + - + 80 * + 20 + 86 * + 94 AS col1
----
NULL

query I rowsort
SELECT + 33 + - 58
----
-25

query I rowsort
SELECT - 45 * + 60 AS col2
----
-2700

query I rowsort
SELECT + 51 * 91
----
4641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT DISTINCT 56 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT 56 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 86 * + 32 col1
----
2752

query II rowsort
SELECT ALL + 76, - 75 AS col2
----
76
-75

query I rowsort
SELECT DISTINCT + + ( 4 ) * 28
----
112

query I rowsort
SELECT DISTINCT - + 7 * 60 * 2
----
-840

query III rowsort
SELECT + 7 AS col0, 0 AS col1, 39
----
7
0
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5162
SELECT + 29 DIV - + 16 + + + 87 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5162
SELECT + 29 / - + 16 + + + 87 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT ALL + - CASE + 76 WHEN + 7 THEN - - 96 * - 32 + 78 WHEN - CAST( 99 AS SIGNED ) * - 52 THEN + - 70 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL + - CASE + 76 WHEN + 7 THEN - - 96 * - 32 + 78 WHEN - CAST ( 99 AS INTEGER ) * - 52 THEN + - 70 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + 7 AS col1, + 90
----
7
90

query II rowsort
SELECT + 82 * 1 AS col1, - ( + 32 ) AS col2
----
82
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT 20 * + - 49 * + - COALESCE ( + 10, - COUNT( * ) ) AS col0
----
9800

skipif mysql # not compatible
query I rowsort label-5166
SELECT 20 * + - 49 * + - COALESCE ( + 10, - COUNT ( * ) ) AS col0
----
9800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT COALESCE ( 78, - 53 * + + 33 * + + MIN( + 88 ) + CAST( NULL AS SIGNED ) ) - + + CAST( NULL AS SIGNED ) - + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT COALESCE ( 78, - 53 * + + 33 * + + MIN ( + 88 ) + CAST ( NULL AS INTEGER ) ) - + + CAST ( NULL AS INTEGER ) - + + 72
----
NULL

query II rowsort
SELECT + 8 AS col2, + 18
----
8
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + - COUNT( * ) * - - 65 - - CASE - ( - 93 ) WHEN 77 + + 33 THEN + 63 WHEN + 42 + - 5 * - 58 THEN 50 END - - COALESCE ( - MAX( DISTINCT - - 81 ), + + 37 + - ( - 72 ), - + 73 * + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT + - COUNT ( * ) * - - 65 - - CASE - ( - 93 ) WHEN 77 + + 33 THEN + 63 WHEN + 42 + - 5 * - 58 THEN 50 END - - COALESCE ( - MAX ( DISTINCT - - 81 ), + + 37 + - ( - 72 ), - + 73 * + 54 )
----
NULL

query I rowsort
SELECT 99 * 61 AS col2
----
6039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 22
----
NULL

query I rowsort
SELECT DISTINCT - 66 * 50 col2
----
-3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5173
SELECT ( CAST( - 67 AS SIGNED ) ) + 90 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5173
SELECT ( CAST ( - 67 AS INTEGER ) ) + 90 AS col0
----
23

query I rowsort
SELECT ALL + 71 + + 37 + ( + 79 ) * + 62 + + 28 * 47 * - - 2 AS col1
----
7638

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5175
SELECT 6 DIV COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-5175
SELECT 6 / COUNT ( * ) col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - 68 * - NULLIF ( 37, + COUNT( * ) ) + + 14 + + 76
----
2606

skipif mysql # not compatible
query I rowsort label-5176
SELECT - 68 * - NULLIF ( 37, + COUNT ( * ) ) + + 14 + + 76
----
2606

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL COUNT( ALL + 36 ) + + 65
----
66

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL COUNT ( ALL + 36 ) + + 65
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5178
SELECT DISTINCT 34 DIV 31 AS col1, 84 + + COUNT( * ) DIV - 41 AS col0, 19 * + COALESCE ( - 55, - 52 + 7 + - 48 )
----
1
84
-1045

skipif mysql # not compatible
query III rowsort label-5178
SELECT DISTINCT 34 / 31 AS col1, 84 + + COUNT ( * ) / - 41 AS col0, 19 * + COALESCE ( - 55, - 52 + 7 + - 48 )
----
1
84
-1045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT 25 * - CAST( NULL AS SIGNED ) * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT 25 * - CAST ( NULL AS INTEGER ) * + 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5180
SELECT DISTINCT - ( + - COUNT( * ) ) + - + 23 + + + 15 - 15, 32 + + - COUNT( * ) AS col2
----
-22
31

skipif mysql # not compatible
query II rowsort label-5180
SELECT DISTINCT - ( + - COUNT ( * ) ) + - + 23 + + + 15 - 15, 32 + + - COUNT ( * ) AS col2
----
-22
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5181
SELECT ALL + COALESCE ( - - CAST( - 9 AS SIGNED ), COUNT( * ) / + CASE COUNT( ALL - 19 ) WHEN + 27 THEN NULL ELSE + + 88 END - - + 39 + - 37 ) + - 26 / - - 47 / - ( - MAX( ALL - - CASE 45 WHEN 52 - - - 92 + + + CAST( + + 53 AS SIGNED ) / + 36 THEN + - 75 END ) ) + + 32 * 88 + + ( - + ( 4 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL + COALESCE ( - - CAST ( - 9 AS INTEGER ), COUNT ( * ) / + CASE COUNT ( ALL - 19 ) WHEN + 27 THEN NULL ELSE + + 88 END - - + 39 + - 37 ) + - 26 / - - 47 / - ( - MAX ( ALL - - CASE 45 WHEN 52 - - - 92 + + + CAST ( + + 53 AS INTEGER ) / + 36 THEN + - 75 END ) ) + + 32 * 88 + + ( - + ( 4 ) )
----
NULL

query I rowsort
SELECT 15 * 86 AS col1
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT 21 - + COUNT( * ) + + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5183
SELECT 21 - + COUNT ( * ) + + COUNT ( * ) AS col2
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5184
SELECT 31 + - 46, COALESCE ( - - 95, 7, - - CASE 19 WHEN + 69 + - - 35 THEN + COUNT( * ) WHEN COALESCE ( - NULLIF ( - 13, - 21 * + 1 * 67 ), 73 ) + COUNT( * ) * - ( - 91 ) THEN NULL ELSE NULL END DIV - COUNT( * ) * - + 4 ) col2
----
-15
95

skipif mysql # not compatible
query II rowsort label-5184
SELECT 31 + - 46, COALESCE ( - - 95, 7, - - CASE 19 WHEN + 69 + - - 35 THEN + COUNT ( * ) WHEN COALESCE ( - NULLIF ( - 13, - 21 * + 1 * 67 ), 73 ) + COUNT ( * ) * - ( - 91 ) THEN NULL ELSE NULL END / - COUNT ( * ) * - + 4 ) col2
----
-15
95

query I rowsort
SELECT 66 * + 76 * 88 col2
----
441408

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL + 37 - - + 15 + COUNT( * ) / + CASE + - 23 WHEN - 78 * 3 THEN + 51 - - 23 WHEN + - ( + MIN( ALL - 14 ) ) + + ( 42 ) + - ( 0 ) * - COUNT( * ) THEN NULL END / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + 37 - - + 15 + COUNT ( * ) / + CASE + - 23 WHEN - 78 * 3 THEN + 51 - - 23 WHEN + - ( + MIN ( ALL - 14 ) ) + + ( 42 ) + - ( 0 ) * - COUNT ( * ) THEN NULL END / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 65 - - 44 + + + CASE 66 WHEN - ( - 69 ) THEN NULL WHEN 47 THEN 14 END
----
NULL

query I rowsort
SELECT DISTINCT + 83 * - + 43 + - 32
----
-3601

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT - 13 - 50 + + COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5189
SELECT - 13 - 50 + + COUNT ( * ) AS col1
----
-62

query I rowsort
SELECT ALL 57 * - + 0 * - - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL - - COUNT( * ) * 14
----
14

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL - - COUNT ( * ) * 14
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5192
SELECT ( + CASE + COUNT( + CAST( NULL AS SIGNED ) ) WHEN 88 THEN NULL WHEN + 3 * - 88 THEN ( + + 75 ) + 38 + - 67 + - + 15 * + 53 END ) + - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT ( + CASE + COUNT ( + CAST ( NULL AS INTEGER ) ) WHEN 88 THEN NULL WHEN + 3 * - 88 THEN ( + + 75 ) + 38 + - 67 + - + 15 * + 53 END ) + - 51 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 22 * + 1 AS col2, - 25
----
-22
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT + COUNT( + 3 ) * + COUNT( * ) * - SUM( - 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5194
SELECT + COUNT ( + 3 ) * + COUNT ( * ) * - SUM ( - 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT - - SUM( - 89 ) * + + 35 * 90 AS col2
----
-280350

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - - SUM ( - 89 ) * + + 35 * 90 AS col2
----
-280350

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - + 38 + - - SUM( - + 54 )
----
-92

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - + 38 + - - SUM ( - + 54 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5197
SELECT 17 * - CASE + - MIN( DISTINCT - 43 ) WHEN + - 0 * COUNT( * ) THEN + 46 WHEN + - CAST( - - 63 AS SIGNED ) THEN 56 ELSE + + COUNT( * ) + 15 END + - + 77 + - ( - SUM( 10 ) )
----
-339

skipif mysql # not compatible
query I rowsort label-5197
SELECT 17 * - CASE + - MIN ( DISTINCT - 43 ) WHEN + - 0 * COUNT ( * ) THEN + 46 WHEN + - CAST ( - - 63 AS INTEGER ) THEN 56 ELSE + + COUNT ( * ) + 15 END + - + 77 + - ( - SUM ( 10 ) )
----
-339

query I rowsort
SELECT DISTINCT + 95 + - 8 * 13 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT - 87 DIV + COUNT( ALL + 32 )
----
-87

skipif mysql # not compatible
query I rowsort label-5199
SELECT - 87 / + COUNT ( ALL + 32 )
----
-87

query I rowsort
SELECT 52 + + 80 * + 4 AS col2
----
372

query I rowsort
SELECT ALL - 62 + 72 + + 48
----
58

query II rowsort
SELECT - ( - 20 ) AS col1, + 56 AS col2
----
20
56

query II rowsort
SELECT + 9 AS col2, + 91 AS col2
----
9
91

query I rowsort
SELECT 9 * + 31 AS col2
----
279

query I rowsort
SELECT ALL 94 * 87
----
8178

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL COUNT( - 36 ) + + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL COUNT ( - 36 ) + + - 45
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT + MAX( ALL + CASE 94 WHEN 90 THEN NULL WHEN 34 THEN + 11 ELSE + 10 END )
----
10

skipif mysql # not compatible
query I rowsort label-5207
SELECT + MAX ( ALL + CASE 94 WHEN 90 THEN NULL WHEN 34 THEN + 11 ELSE + 10 END )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT ALL - CASE - 39 WHEN + 13 THEN NULL WHEN + + 2 + + 23 - - - 79 * COUNT( * ) DIV - 5 THEN + 45 DIV 98 ELSE 49 END
----
-49

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - CASE - 39 WHEN + 13 THEN NULL WHEN + + 2 + + 23 - - - 79 * COUNT ( * ) / - 5 THEN + 45 / 98 ELSE 49 END
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT CAST( NULL AS SIGNED ) + + - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT CAST ( NULL AS INTEGER ) + + - 27
----
NULL

query I rowsort
SELECT DISTINCT CASE WHEN ( NULL ) IS NULL THEN 0 END + - 15
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5211
SELECT 40 * + + 11 + COUNT( * ) + - 11 DIV + + 86 AS col0
----
441

skipif mysql # not compatible
query I rowsort label-5211
SELECT 40 * + + 11 + COUNT ( * ) + - 11 / + + 86 AS col0
----
441

query I rowsort
SELECT ALL ( + 98 ) - - 11 * + - 45 AS col1
----
-397

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5213
SELECT CAST( NULL AS SIGNED ) + - COUNT( DISTINCT 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT 91 ) AS col2
----
NULL

query I rowsort
SELECT 60 * 67 col0
----
4020

query II rowsort
SELECT ALL 43 AS col0, 31
----
43
31

query II rowsort
SELECT DISTINCT 94 AS col2, - 21 - + 19
----
94
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL + 50 * + MAX( + 65 ) AS col0
----
3250

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL + 50 * + MAX ( + 65 ) AS col0
----
3250

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT 56 + - - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5218
SELECT 56 + - - COUNT ( * ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT DISTINCT + 33 * - + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + 33 * - + COUNT ( * )
----
-33

query I rowsort
SELECT ALL - - 69 * ( 49 ) * NULLIF ( + 47, - + 34 ) * + 52
----
8263164

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5221
SELECT - CAST( NULL AS DECIMAL ) - + 3 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT - CAST ( NULL AS REAL ) - + 3 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT ALL + - ( + 67 ) * - 93 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL + - ( + 67 ) * - 93 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - + 4 * - 28 AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5224
SELECT + NULLIF ( - 1, - - CAST( - 8 AS SIGNED ) * - + 4 * + 92 * + AVG ( DISTINCT 10 ) ) AS col0, + 49 AS col1
----
-1
49

skipif mysql # not compatible
query II rowsort label-5224
SELECT + NULLIF ( - 1, - - CAST ( - 8 AS INTEGER ) * - + 4 * + 92 * + AVG ( DISTINCT 10 ) ) AS col0, + 49 AS col1
----
-1
49

query I rowsort
SELECT - + ( 12 )
----
-12

query II rowsort
SELECT DISTINCT 87 col1, 50
----
87
50

query I rowsort
SELECT DISTINCT NULLIF ( - - 5, 78 / + - ( + 6 ) ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5228
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 79 + + + 34 * + COUNT( * ) + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 79 + + + 34 * + COUNT ( * ) + 31 AS col1
----
NULL

query I rowsort
SELECT ALL - 77 + - 51 AS col1
----
-128

query I rowsort
SELECT - - 72 * - 8 - 40
----
-616

onlyif mysql # aggregate syntax: 
query II rowsort label-5231
SELECT ALL - COUNT( * ) col2, + 50
----
-1
50

skipif mysql # not compatible
query II rowsort label-5231
SELECT ALL - COUNT ( * ) col2, + 50
----
-1
50

onlyif mysql # aggregate syntax: 
query III rowsort label-5232
SELECT - 99, COUNT( * ) * - COALESCE ( - 87, COUNT( - - 58 ) ) AS col1, 30 AS col2
----
-99
87
30

skipif mysql # not compatible
query III rowsort label-5232
SELECT - 99, COUNT ( * ) * - COALESCE ( - 87, COUNT ( - - 58 ) ) AS col1, 30 AS col2
----
-99
87
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5233
SELECT ALL - 57 * + 78 + ( - COALESCE ( - CASE 11 WHEN + COUNT( * ) THEN NULL WHEN - 5 THEN 47 DIV - 0 * 44 + + COUNT( * ) * - ( - 63 ) ELSE - ( + 44 ) END, ( + 19 ) * COUNT( * ) - - 53 ) ) * + - 40
----
-2686

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - 57 * + 78 + ( - COALESCE ( - CASE 11 WHEN + COUNT ( * ) THEN NULL WHEN - 5 THEN 47 / - 0 * 44 + + COUNT ( * ) * - ( - 63 ) ELSE - ( + 44 ) END, ( + 19 ) * COUNT ( * ) - - 53 ) ) * + - 40
----
-2686

query I rowsort
SELECT - 94 - + 38
----
-132

query I rowsort
SELECT CASE - + 23 WHEN - 69 THEN - 67 WHEN 5 THEN NULL ELSE - 73 END AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5236
SELECT - 71 DIV - NULLIF ( 52, - 76 * + 0 DIV 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5236
SELECT - 71 / - NULLIF ( 52, - 76 * + 0 / 45 ) AS col2
----
1

query I rowsort
SELECT + 88 * 21
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL + COALESCE ( - + 75, + COUNT( * ) ) * - 71 - COUNT( * )
----
5324

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL + COALESCE ( - + 75, + COUNT ( * ) ) * - 71 - COUNT ( * )
----
5324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5239
SELECT - 72 * + 12 - MAX( + - 37 ) * 44 - + CAST( NULL AS SIGNED ) - - 20 + - + 65 * - CASE - - 14 WHEN - 30 * - 28 * + - CAST( NULL AS SIGNED ) THEN NULL WHEN - COUNT( * ) * 31 THEN 96 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT - 72 * + 12 - MAX ( + - 37 ) * 44 - + CAST ( NULL AS INTEGER ) - - 20 + - + 65 * - CASE - - 14 WHEN - 30 * - 28 * + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - COUNT ( * ) * 31 THEN 96 ELSE NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT - 52 * - ( - CAST( NULL AS SIGNED ) ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT - 52 * - ( - CAST ( NULL AS INTEGER ) ) * - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT CASE + - 62 WHEN - - 31 + + 65 THEN + 35 WHEN - 46 THEN - 43 + 5 * - - NULLIF ( 55, - 94 + - 61 * 81 - - COUNT( * ) + - 35 * + + NULLIF ( - 74, 95 / + 83 ) ) / + 51 * COUNT( * ) WHEN - - NULLIF ( - - 36, - - 46 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT CASE + - 62 WHEN - - 31 + + 65 THEN + 35 WHEN - 46 THEN - 43 + 5 * - - NULLIF ( 55, - 94 + - 61 * 81 - - COUNT ( * ) + - 35 * + + NULLIF ( - 74, 95 / + 83 ) ) / + 51 * COUNT ( * ) WHEN - - NULLIF ( - - 36, - - 46 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT 54 * - - CASE + 38 WHEN 20 THEN + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END - 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT 54 * - - CASE + 38 WHEN 20 THEN + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END - 71 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT + COALESCE ( - + 44, + - COUNT( * ) ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-5243
SELECT + COALESCE ( - + 44, + - COUNT ( * ) ) col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5244
SELECT ALL CAST( 15 AS SIGNED ) DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL CAST ( 15 AS INTEGER ) / - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT + ( ( - COUNT( * ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5245
SELECT + ( ( - COUNT ( * ) ) ) col0
----
-1

query I rowsort
SELECT 55 * 0 + - 36 - 98 AS col2
----
-134

query I rowsort
SELECT + 87 * - 68 col0
----
-5916

query I rowsort
SELECT + NULLIF ( 92, + + 42 * + ( - 91 ) )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5249
SELECT ALL MAX( ALL + 58 ), - MAX( + 54 ) DIV + - 35 + + + 9 * + 14 + + ( + 91 ) + - COUNT( * ) + + + 17 + - 78 + - 67 * + COUNT( * ) + + 93 AS col2
----
58
182

skipif mysql # not compatible
query II rowsort label-5249
SELECT ALL MAX ( ALL + 58 ), - MAX ( + 54 ) / + - 35 + + + 9 * + 14 + + ( + 91 ) + - COUNT ( * ) + + + 17 + - 78 + - 67 * + COUNT ( * ) + + 93 AS col2
----
58
182

query I rowsort
SELECT DISTINCT 74 * - 80 * + - 28
----
165760

query I rowsort
SELECT + 39 * 61
----
2379

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - 9 * COUNT( * ) * + 73 + 75 * - COUNT( * )
----
-732

skipif mysql # not compatible
query I rowsort label-5252
SELECT - 9 * COUNT ( * ) * + 73 + 75 * - COUNT ( * )
----
-732

query I rowsort
SELECT + 48 + - 52
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT + CAST( - 10 AS SIGNED ) + + NULLIF ( - 99, + + 24 + - - 24 ) AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-5254
SELECT + CAST ( - 10 AS INTEGER ) + + NULLIF ( - 99, + + 24 + - - 24 ) AS col1
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT ALL COALESCE ( - 60, + 22 * SUM( + 68 ) - + - 13 * + 58 ) AS col1, 76
----
-60
76

skipif mysql # not compatible
query II rowsort label-5255
SELECT ALL COALESCE ( - 60, + 22 * SUM ( + 68 ) - + - 13 * + 58 ) AS col1, 76
----
-60
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL + MIN( + + 19 ) + - ( + 33 ) + - + 50 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL + MIN ( + + 19 ) + - ( + 33 ) + - + 50 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT + + ( - 37 ) * COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5257
SELECT + + ( - 37 ) * COUNT ( * ) AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT ALL - 87 + - - 42 * - COALESCE ( + - 90, + CAST( NULL AS SIGNED ) )
----
3693

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL - 87 + - - 42 * - COALESCE ( + - 90, + CAST ( NULL AS INTEGER ) )
----
3693

onlyif mysql # DIV for integer division: 
query I rowsort label-5259
SELECT DISTINCT 63 + - COALESCE ( - 9, - 41 * AVG ( DISTINCT + - 27 ) DIV - - 5 - + 34 - - - ( - 38 ) )
----
72

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT 63 + - COALESCE ( - 9, - 41 * AVG ( DISTINCT + - 27 ) / - - 5 - + 34 - - - ( - 38 ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + - 62 + CASE - - 88 WHEN + 94 - - + COUNT( * ) + - + 10 / - 94 THEN NULL WHEN AVG ( ALL + 28 ) THEN COUNT( * ) + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + - 62 + CASE - - 88 WHEN + 94 - - + COUNT ( * ) + - + 10 / - 94 THEN NULL WHEN AVG ( ALL + 28 ) THEN COUNT ( * ) + 6 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - COUNT( * ) + + 38
----
37

skipif mysql # not compatible
query I rowsort label-5261
SELECT - COUNT ( * ) + + 38
----
37

query I rowsort
SELECT DISTINCT + 79 + - 70 AS col1
----
9

query I rowsort
SELECT DISTINCT - + 33 * - 60 AS col0
----
1980

query I rowsort
SELECT + 78 + 35 AS col2
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT - SUM( ALL - - 79 ) + + 47 DIV 96 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5265
SELECT - SUM ( ALL - - 79 ) + + 47 / 96 AS col0
----
-79

query I rowsort
SELECT - + 60 - + 43 * - 55
----
2305

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * 91
----
91

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL + MIN( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL + MIN ( + 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5269
SELECT ALL + SUM( + ( - + CAST( NULL AS SIGNED ) ) ), 48 * + + 53 AS col0
----
NULL
2544

skipif mysql # not compatible
query II rowsort label-5269
SELECT ALL + SUM ( + ( - + CAST ( NULL AS INTEGER ) ) ), 48 * + + 53 AS col0
----
NULL
2544

query I rowsort
SELECT - 41 + 97
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5271
SELECT DISTINCT + CASE + SUM( DISTINCT 93 ) WHEN MIN( DISTINCT + + 19 ) THEN - 21 WHEN COUNT( * ) * + + 4 / - COUNT( * ) * + 56 * + 83 * - + 62 THEN NULL ELSE 30 END, 6 * - 47 + + 40 * 94 * + COUNT( * ) AS col0
----
30
3478

skipif mysql # not compatible
query II rowsort label-5271
SELECT DISTINCT + CASE + SUM ( DISTINCT 93 ) WHEN MIN ( DISTINCT + + 19 ) THEN - 21 WHEN COUNT ( * ) * + + 4 / - COUNT ( * ) * + 56 * + 83 * - + 62 THEN NULL ELSE 30 END, 6 * - 47 + + 40 * 94 * + COUNT ( * ) AS col0
----
30
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - 29 * - MAX( - + 17 ) * - CASE + 86 WHEN 32 + - - 32 + + - 80 * - + 66 * + 37 * - ( - - 45 ) * MAX( + + 51 ) THEN + ( + 98 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5272
SELECT - 29 * - MAX ( - + 17 ) * - CASE + 86 WHEN 32 + - - 32 + + - 80 * - + 66 * + 37 * - ( - - 45 ) * MAX ( + + 51 ) THEN + ( + 98 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT + COUNT( * ) * NULLIF ( 2, - + 61 + + - 94 ), + 53 col1
----
2
53

skipif mysql # not compatible
query II rowsort label-5273
SELECT + COUNT ( * ) * NULLIF ( 2, - + 61 + + - 94 ), + 53 col1
----
2
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT 77 * + - 71 * + ( + + 0 ) + - ( SUM( ALL - - 59 ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5274
SELECT 77 * + - 71 * + ( + + 0 ) + - ( SUM ( ALL - - 59 ) ) AS col0
----
-59

query I rowsort
SELECT ALL 93 * + 75 * - + 78 AS col1
----
-544050

query I rowsort
SELECT ALL + 77 * + 17 * + + 63
----
82467

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL + SUM( 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + SUM ( 22 ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5278
SELECT ( + CAST( 97 AS SIGNED ) ) AS col0, 62 + - 14
----
97
48

skipif mysql # not compatible
query II rowsort label-5278
SELECT ( + CAST ( 97 AS INTEGER ) ) AS col0, 62 + - 14
----
97
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT DISTINCT + COUNT( - + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT + COUNT ( - + 54 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT + COALESCE ( + + 93, 73 ) * + 28 + COUNT( * ) + 2
----
2607

skipif mysql # not compatible
query I rowsort label-5280
SELECT + COALESCE ( + + 93, 73 ) * + 28 + COUNT ( * ) + 2
----
2607

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT DISTINCT 80 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT 80 / + 26
----
3

query I rowsort
SELECT 40 * 1 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT 85 DIV + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5283
SELECT 85 / + 67 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL + COUNT( DISTINCT + 20 ) + - + ( - 4 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL + COUNT ( DISTINCT + 20 ) + - + ( - 4 ) col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT + COUNT( * ) * + - 15 - + NULLIF ( + CASE + 1 WHEN 77 THEN - NULLIF ( - - ( + COUNT( * ) ), - 98 ) WHEN - 42 * 0 * + + 9 THEN - COUNT( * ) / - + CAST( NULL AS SIGNED ) END, + - COALESCE ( + 54, 86, - 28 ) / + 9 ) + - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT + COUNT ( * ) * + - 15 - + NULLIF ( + CASE + 1 WHEN 77 THEN - NULLIF ( - - ( + COUNT ( * ) ), - 98 ) WHEN - 42 * 0 * + + 9 THEN - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) END, + - COALESCE ( + 54, 86, - 28 ) / + 9 ) + - 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT COUNT( * ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5286
SELECT COUNT ( * ) * COUNT ( * ) col2
----
1

query I rowsort
SELECT DISTINCT + 60 * - - 40
----
2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT ALL - 91 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - 91 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT DISTINCT + 32 + - + 90 + ( - + 94 ) + - ( + COUNT( * ) )
----
-153

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT + 32 + - + 90 + ( - + 94 ) + - ( + COUNT ( * ) )
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT + CAST( - 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-5290
SELECT + CAST ( - 99 AS INTEGER )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL 13 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL 13 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( 70 ) + + 74 * + ( - 66 )
----
-4954

query I rowsort
SELECT DISTINCT 52 * + 18 AS col2
----
936

query I rowsort
SELECT 12 + 83
----
95

query I rowsort
SELECT ALL 79 + - + 40 col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5296
SELECT - 61 AS col0, 47 * 61 * - SUM( ALL + 87 ) AS col0
----
-61
-249429

skipif mysql # not compatible
query II rowsort label-5296
SELECT - 61 AS col0, 47 * 61 * - SUM ( ALL + 87 ) AS col0
----
-61
-249429

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT SUM( + 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT SUM ( + 7 ) AS col1
----
7

query I rowsort
SELECT ( COALESCE ( + 76, - 51 * - 21 + + 27 ) ) AS col2
----
76

query I rowsort
SELECT ALL + 14 - + - NULLIF ( - 69, 17 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT DISTINCT + 56 - + - 91 * + - 14 + + COUNT( * ) AS col2
----
-1217

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT + 56 - + - 91 * + - 14 + + COUNT ( * ) AS col2
----
-1217

query I rowsort
SELECT ALL - 34 * 24 * - 92 * 37 * - 95 + 1
----
-263878079

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT - 36 - + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT - 36 - + COUNT ( * )
----
-37

query I rowsort
SELECT 8 * + 81
----
648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5304
SELECT 15 DIV + COUNT( * ) AS col2, 2
----
15
2

skipif mysql # not compatible
query II rowsort label-5304
SELECT 15 / + COUNT ( * ) AS col2, 2
----
15
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT 50 * 17 DIV + 93
----
9

skipif mysql # not compatible
query I rowsort label-5305
SELECT 50 * 17 / + 93
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5306
SELECT - 64 * - 55 * + 1 - + COUNT( * ), COALESCE ( + 56, - + CASE - COUNT( * ) WHEN + - 35 THEN COUNT( * ) - - 85 END - - 90, + 34 ) - + 53 AS col2
----
3519
3

skipif mysql # not compatible
query II rowsort label-5306
SELECT - 64 * - 55 * + 1 - + COUNT ( * ), COALESCE ( + 56, - + CASE - COUNT ( * ) WHEN + - 35 THEN COUNT ( * ) - - 85 END - - 90, + 34 ) - + 53 AS col2
----
3519
3

query I rowsort
SELECT 60 * + 38
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - CASE 7 WHEN - 13 * + - 8 THEN + + 70 * ( 80 ) + + COUNT( * ) + AVG ( + 63 ) - + + 65 * + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - CASE 7 WHEN - 13 * + - 8 THEN + + 70 * ( 80 ) + + COUNT ( * ) + AVG ( + 63 ) - + + 65 * + COUNT ( * ) END AS col2
----
NULL

query II rowsort
SELECT 91 * + + 77 - - COALESCE ( - - 44, + 41, + 64 ), 30 AS col2
----
7051
30

query II rowsort
SELECT ALL ( - 99 ) * - 26 * - + COALESCE ( 22, + + 60 ) - + + 29 AS col0, 49 AS col0
----
-56657
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT 50 * - COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-5311
SELECT 50 * - COUNT ( * ) AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5312
SELECT ALL - CAST( NULL AS SIGNED ), 60 DIV - 48 AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5312
SELECT ALL - CAST ( NULL AS INTEGER ), 60 / - 48 AS col1
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT 40 * - 9 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT 40 * - 9 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5314
SELECT MIN( DISTINCT + 70 ) * - + CAST( ( MIN( - 9 ) ) AS SIGNED ) + CASE + 82 WHEN AVG ( CAST( + 51 AS SIGNED ) ) * - + 28 / ( + COALESCE ( + + COUNT( * ), - 85 * - + ( 85 ) - + 48 * - COUNT( * ) + + - 24 ) ) THEN + COUNT( * ) END + COUNT( * ) + - MIN( DISTINCT 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT MIN ( DISTINCT + 70 ) * - + CAST ( ( MIN ( - 9 ) ) AS INTEGER ) + CASE + 82 WHEN AVG ( CAST ( + 51 AS INTEGER ) ) * - + 28 / ( + COALESCE ( + + COUNT ( * ), - 85 * - + ( 85 ) - + 48 * - COUNT ( * ) + + - 24 ) ) THEN + COUNT ( * ) END + COUNT ( * ) + - MIN ( DISTINCT 24 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL + 46 + - ( + + ( CAST( NULL AS SIGNED ) ) ) / 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL + 46 + - ( + + ( CAST ( NULL AS INTEGER ) ) ) / 27
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5316
SELECT ALL - COUNT( * ), + SUM( DISTINCT - 34 ) + + - 60 * - COUNT( * ) AS col1
----
-1
26

skipif mysql # not compatible
query II rowsort label-5316
SELECT ALL - COUNT ( * ), + SUM ( DISTINCT - 34 ) + + - 60 * - COUNT ( * ) AS col1
----
-1
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT + 50 AS col2, 31 + - COUNT( * )
----
50
30

skipif mysql # not compatible
query II rowsort label-5317
SELECT + 50 AS col2, 31 + - COUNT ( * )
----
50
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5318
SELECT + 52 AS col2, 14 DIV - 34 * - COUNT( * ) + - COUNT( * ) + 39 * + 72 * 30 * - 29 + + + 66 - MIN( DISTINCT - + ( + + 38 ) ) + - 90 + - COUNT( * ) * - - 97 + - ( + COUNT( * ) ) + - 4 * 46 * 39 * + 82
----
52
-3031477

skipif mysql # not compatible
query II rowsort label-5318
SELECT + 52 AS col2, 14 / - 34 * - COUNT ( * ) + - COUNT ( * ) + 39 * + 72 * 30 * - 29 + + + 66 - MIN ( DISTINCT - + ( + + 38 ) ) + - 90 + - COUNT ( * ) * - - 97 + - ( + COUNT ( * ) ) + - 4 * 46 * 39 * + 82
----
52
-3031477

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5319
SELECT 51, + CAST( NULL AS SIGNED ) AS col1
----
51
NULL

skipif mysql # not compatible
query II rowsort label-5319
SELECT 51, + CAST ( NULL AS INTEGER ) AS col1
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL - 20 * + COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - 20 * + COUNT ( * )
----
-20

query I rowsort
SELECT 65 * 61 AS col1
----
3965

query I rowsort
SELECT DISTINCT - - ( 42 ) + - 77
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL MIN( ALL - - 36 ) + + + 60 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL MIN ( ALL - - 36 ) + + + 60 AS col0
----
96

query I rowsort
SELECT 35 * - 18 + + 37
----
-593

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT - + 54 + + - COUNT( * ) + 25 * - MIN( DISTINCT - 95 ) * - 94 * 96 AS col1
----
-21432055

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT - + 54 + + - COUNT ( * ) + 25 * - MIN ( DISTINCT - 95 ) * - 94 * 96 AS col1
----
-21432055

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT DISTINCT - - 29 + + 88 * + 26 * + - SUM( DISTINCT + + 57 ) AS col2
----
-130387

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - - 29 + + 88 * + 26 * + - SUM ( DISTINCT + + 57 ) AS col2
----
-130387

query I rowsort
SELECT 96 + + 92
----
188

query II rowsort
SELECT DISTINCT - 55 AS col1, 16
----
-55
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5329
SELECT + - CAST( NULL AS SIGNED ) * 73 + 64 + - CAST( - COUNT( * ) AS SIGNED ) * + - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT + - CAST ( NULL AS INTEGER ) * 73 + 64 + - CAST ( - COUNT ( * ) AS INTEGER ) * + - 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT 4 * 33 - + COUNT( * ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-5330
SELECT 4 * 33 - + COUNT ( * ) AS col0
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-5331
SELECT DISTINCT 39, + COUNT( * ) AS col1
----
39
1

skipif mysql # not compatible
query II rowsort label-5331
SELECT DISTINCT 39, + COUNT ( * ) AS col1
----
39
1

query I rowsort
SELECT ( + 44 ) + - + 85
----
-41

query II rowsort
SELECT ALL - 96, + 7 AS col1
----
-96
7

query I rowsort
SELECT 83 * - 65 + + 26 AS col1
----
-5369

onlyif mysql # aggregate syntax: 
query II rowsort label-5335
SELECT DISTINCT - COUNT( * ) AS col2, + 47 * + - 39
----
-1
-1833

skipif mysql # not compatible
query II rowsort label-5335
SELECT DISTINCT - COUNT ( * ) AS col2, + 47 * + - 39
----
-1
-1833

query I rowsort
SELECT - 96 - + 40 + + 59 * 30 * + 44 * - - 70 AS col1
----
5451464

query II rowsort
SELECT ALL - 73 AS col2, COALESCE ( + 41, ( + 79 ) ) AS col1
----
-73
41

query I rowsort
SELECT 5 * - + 24
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT DISTINCT 65 * - ( + - 79 ) * 63 - COUNT( ALL - 17 ) + + - 10 AS col1
----
323494

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT 65 * - ( + - 79 ) * 63 - COUNT ( ALL - 17 ) + + - 10 AS col1
----
323494

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT COUNT( * ) + - 23 AS col0, - 4 col1
----
-22
-4

skipif mysql # not compatible
query II rowsort label-5340
SELECT COUNT ( * ) + - 23 AS col0, - 4 col1
----
-22
-4

query II rowsort
SELECT 54 * + 94 AS col0, 11 col1
----
5076
11

query I rowsort
SELECT 24 + + 26 + - 12 + - + 75 * 83 + ( + 68 )
----
-6119

query I rowsort
SELECT 96 * ( - 4 ) + + 43 * 53 + 98
----
1993

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL 69 * - MAX( - 20 ) AS col2
----
1380

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 69 * - MAX ( - 20 ) AS col2
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL + NULLIF ( - + COUNT( * ), - 54 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL + NULLIF ( - + COUNT ( * ), - 54 ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5346
SELECT + 47 DIV - 86 + - 73 + - 25
----
-98

skipif mysql # not compatible
query I rowsort label-5346
SELECT + 47 / - 86 + - 73 + - 25
----
-98

query I rowsort
SELECT DISTINCT ( + + ( 23 ) ) * - 96 * + - 93 + - - 2 AS col0
----
205346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT CASE + - 22 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 33 * + 47 + ( - 59 ) THEN NULL ELSE + 11 * + 42 - + 90 * + 26 END AS col2
----
-1878

skipif mysql # not compatible
query I rowsort label-5348
SELECT CASE + - 22 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 33 * + 47 + ( - 59 ) THEN NULL ELSE + 11 * + 42 - + 90 * + 26 END AS col2
----
-1878

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5349
SELECT - COUNT( * ) DIV + 41 * + 6
----
0

skipif mysql # not compatible
query I rowsort label-5349
SELECT - COUNT ( * ) / + 41 * + 6
----
0

query I rowsort
SELECT ALL 72 * + 92 + + - 67
----
6557

onlyif mysql # aggregate syntax: 
query II rowsort label-5351
SELECT + MIN( + 5 ) AS col0, 69 AS col0
----
5
69

skipif mysql # not compatible
query II rowsort label-5351
SELECT + MIN ( + 5 ) AS col0, 69 AS col0
----
5
69

query I rowsort
SELECT COALESCE ( 93, + 71, 71 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5353
SELECT + 92 * + 92 AS col2, NULLIF ( - + COUNT( * ), - 20 ) * - 29 + + - 39
----
8464
-10

skipif mysql # not compatible
query II rowsort label-5353
SELECT + 92 * + 92 AS col2, NULLIF ( - + COUNT ( * ), - 20 ) * - 29 + + - 39
----
8464
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + 27 * + + SUM( - - 3 ) + - + 32 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5354
SELECT + 27 * + + SUM ( - - 3 ) + - + 32 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT ALL - - COUNT( * ) * + 76 + - + 9
----
67

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - - COUNT ( * ) * + 76 + - + 9
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT ALL 39 * 9 + - CAST( - MAX( DISTINCT + 62 ) AS SIGNED ) + 63 + + + 48 + - MIN( - + 92 ) col1
----
616

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL 39 * 9 + - CAST ( - MAX ( DISTINCT + 62 ) AS INTEGER ) + 63 + + + 48 + - MIN ( - + 92 ) col1
----
616

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5357
SELECT ALL + COUNT( * ) * + COUNT( * ) DIV + 31 - - MAX( DISTINCT - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + COUNT ( * ) * + COUNT ( * ) / + 31 - - MAX ( DISTINCT - 19 )
----
-19

query I rowsort
SELECT - - 44 * + - 74 + - - 96
----
-3160

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT DISTINCT - COUNT( * ) * 4 - + ( + 11 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT - COUNT ( * ) * 4 - + ( + 11 ) AS col2
----
-15

query I rowsort
SELECT ALL - - 84 * + + 71 AS col0
----
5964

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5361
SELECT DISTINCT - MAX( CAST( NULL AS DECIMAL ) ) * 67 * + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT - MAX ( CAST ( NULL AS REAL ) ) * 67 * + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT - 85 / 31 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT - 85 / 31 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 25, - + 15 * 92 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5364
SELECT - 33 DIV MAX( DISTINCT - 34 ) + - - MIN( + 60 ) * - 81 * 13 + 36 + - + 94
----
-63238

skipif mysql # not compatible
query I rowsort label-5364
SELECT - 33 / MAX ( DISTINCT - 34 ) + - - MIN ( + 60 ) * - 81 * 13 + 36 + - + 94
----
-63238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT - 88 / 8 * NULLIF ( - 37, - 33 + + 47 + - 17 - COUNT( * ) * + 18 + - + 24 * - 45 * - 62 ) * + 15 * 97 / + CAST( + - 51 AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT - 88 / 8 * NULLIF ( - 37, - 33 + + 47 + - 17 - COUNT ( * ) * + 18 + - + 24 * - 45 * - 62 ) * + 15 * 97 / + CAST ( + - 51 AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 35 * 40
----
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT CASE 41 WHEN - + CASE - 91 WHEN + + NULLIF ( + 16, SUM( 26 ) ) THEN - COUNT( DISTINCT - 20 ) ELSE NULL END THEN NULL WHEN 97 THEN 26 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT CASE 41 WHEN - + CASE - 91 WHEN + + NULLIF ( + 16, SUM ( 26 ) ) THEN - COUNT ( DISTINCT - 20 ) ELSE NULL END THEN NULL WHEN 97 THEN 26 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 1 + + + 35 AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5369
SELECT DISTINCT 75 + + + 7 - + + 41 * - 76 DIV - COUNT( * ) AS col2
----
-3034

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT 75 + + + 7 - + + 41 * - 76 / - COUNT ( * ) AS col2
----
-3034

query I rowsort
SELECT - 98 * - 64 col0
----
6272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT CAST( - - 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-5371
SELECT CAST ( - - 19 AS INTEGER )
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5372
SELECT CAST( - MAX( + + CAST( NULL AS DECIMAL ) ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT CAST ( - MAX ( + + CAST ( NULL AS REAL ) ) AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + COALESCE ( - 85, - + 15 + - COUNT( * ), + 6 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-5373
SELECT + COALESCE ( - 85, - + 15 + - COUNT ( * ), + 6 ) AS col1
----
-85

query I rowsort
SELECT + 44 + - 53 col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT ALL 54 DIV - 54 + - 78 + - 42
----
-121

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL 54 / - 54 + - 78 + - 42
----
-121

query I rowsort
SELECT ALL 48 / - 6 + - ( + 57 ) + CASE - 86 WHEN - 13 THEN + ( - 19 ) END + 30 * - - 78 * - - 67 * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + + COUNT( * ) - 23
----
-22

skipif mysql # not compatible
query I rowsort label-5377
SELECT + + COUNT ( * ) - 23
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL + + 3 * + MAX( + + 68 )
----
204

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + + 3 * + MAX ( + + 68 )
----
204

query II rowsort
SELECT + 45, 32 AS col2
----
45
32

query I rowsort
SELECT + ( 35 ) * - 51 + + 5 + 55 * - 13 + - 88
----
-2583

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL 45 * - COUNT( * ) - ( 31 )
----
-76

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL 45 * - COUNT ( * ) - ( 31 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT + 20 + COUNT( * ) * - - 23
----
43

skipif mysql # not compatible
query I rowsort label-5382
SELECT + 20 + COUNT ( * ) * - - 23
----
43

query II rowsort
SELECT ALL 59 * - - 56 + - 20, - COALESCE ( - + 81, - - 3 ) + 92 col1
----
3284
173

query I rowsort
SELECT DISTINCT - + 44 * + 86 - 79 + 97 - 16
----
-3782

query I rowsort
SELECT DISTINCT 7 * + - 97
----
-679

query I rowsort
SELECT ALL + + ( + CASE - 64 WHEN - + 29 THEN 64 WHEN + ( + - 29 ) * 85 THEN + 43 END ) col2
----
NULL

query I rowsort
SELECT - + 32 * 62 * 89
----
-176576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5388
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) + - 90 + - 88 * 93 AS col0
----
NULL
-8273

skipif mysql # not compatible
query II rowsort label-5388
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + - 90 + - 88 * 93 AS col0
----
NULL
-8273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5389
SELECT DISTINCT + 95, CASE ( 99 ) WHEN + 40 THEN + 85 * MAX( ALL 79 ) WHEN + + ( - CASE 91 WHEN COUNT( * ) THEN NULL WHEN - ( CASE 39 WHEN - 22 THEN NULL ELSE - 88 + - - 60 * - 82 * + - MAX( DISTINCT + - 25 ) * NULLIF ( + 43, + CAST( - 74 AS SIGNED ) ) + 19 + MAX( DISTINCT 8 ) END ) / - 62 * + 64 - + - 70 THEN + 13 ELSE 90 - + 17 END ) THEN NULL ELSE NULL END AS col2
----
95
NULL

skipif mysql # not compatible
query II rowsort label-5389
SELECT DISTINCT + 95, CASE ( 99 ) WHEN + 40 THEN + 85 * MAX ( ALL 79 ) WHEN + + ( - CASE 91 WHEN COUNT ( * ) THEN NULL WHEN - ( CASE 39 WHEN - 22 THEN NULL ELSE - 88 + - - 60 * - 82 * + - MAX ( DISTINCT + - 25 ) * NULLIF ( + 43, + CAST ( - 74 AS INTEGER ) ) + 19 + MAX ( DISTINCT 8 ) END ) / - 62 * + 64 - + - 70 THEN + 13 ELSE 90 - + 17 END ) THEN NULL ELSE NULL END AS col2
----
95
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5390
SELECT + 22 * - + COUNT( * ) DIV 68 + - + 2 + + + 62 + 27
----
87

skipif mysql # not compatible
query I rowsort label-5390
SELECT + 22 * - + COUNT ( * ) / 68 + - + 2 + + + 62 + 27
----
87

query I rowsort
SELECT - 92 * - + 90 AS col0
----
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + 31 + + MAX( - - ( - 68 ) ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-5392
SELECT + 31 + + MAX ( - - ( - 68 ) ) col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT + - COUNT( * ) * + 22
----
-22

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT + - COUNT ( * ) * + 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT ALL MIN( DISTINCT + ( + 71 ) ) col2
----
71

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL MIN ( DISTINCT + ( + 71 ) ) col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5395
SELECT - CAST( NULL AS SIGNED ) + + 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT - CAST ( NULL AS INTEGER ) + + 88 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5396
SELECT - SUM( 51 ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-5396
SELECT - SUM ( 51 ) / - 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT ALL + CAST( NULL AS SIGNED ) * + SUM( + + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL + CAST ( NULL AS INTEGER ) * + SUM ( + + 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT - 82 + - COUNT( * ) + - - 37 + 5 * - - 23
----
69

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 82 + - COUNT ( * ) + - - 37 + 5 * - - 23
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT ALL MIN( ALL 2 ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL MIN ( ALL 2 ) / + 92
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5400
SELECT ALL + 23 * + + 87 AS col2, CAST( NULL AS DECIMAL ) * + + 97
----
2001
NULL

skipif mysql # not compatible
query II rowsort label-5400
SELECT ALL + 23 * + + 87 AS col2, CAST ( NULL AS REAL ) * + + 97
----
2001
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT DISTINCT COALESCE ( + 25, - - 63 DIV + ( + 16 ) ) * - 36 + - 40 + + 11
----
-929

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT COALESCE ( + 25, - - 63 / + ( + 16 ) ) * - 36 + - 40 + + 11
----
-929

onlyif mysql # aggregate syntax: 
query II rowsort label-5402
SELECT ALL - 59 + - 24 AS col2, COUNT( ALL - 51 ) AS col1
----
-83
1

skipif mysql # not compatible
query II rowsort label-5402
SELECT ALL - 59 + - 24 AS col2, COUNT ( ALL - 51 ) AS col1
----
-83
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5403
SELECT 53 DIV + ( NULLIF ( - - ( 4 ), CAST( NULL AS SIGNED ) ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5403
SELECT 53 / + ( NULLIF ( - - ( 4 ), CAST ( NULL AS INTEGER ) ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT ALL - 60 + + + CASE COALESCE ( + COUNT( * ), + - 37 ) WHEN + + 74 THEN NULL WHEN + COUNT( * ) THEN 7 WHEN + ( + COUNT( * ) ) - + 24 + - 11 THEN NULL END AS col2, - 96
----
-53
-96

skipif mysql # not compatible
query II rowsort label-5404
SELECT ALL - 60 + + + CASE COALESCE ( + COUNT ( * ), + - 37 ) WHEN + + 74 THEN NULL WHEN + COUNT ( * ) THEN 7 WHEN + ( + COUNT ( * ) ) - + 24 + - 11 THEN NULL END AS col2, - 96
----
-53
-96

query I rowsort
SELECT 49 + - ( 43 ) + + 15 + - 42 + - 48 * + 39 + + + 56 AS col1
----
-1837

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT DISTINCT + 87 DIV - - 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT + 87 / - - 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5407
SELECT ALL - 33 + + 44 AS col2, CASE - + 73 WHEN + - 0 + + 30 * + 45 * + AVG ( ALL + CAST( NULL AS SIGNED ) ) + MIN( DISTINCT - 75 ) THEN - 16 * - COUNT( * ) + + - AVG ( ALL + 37 ) + + MIN( DISTINCT - 65 ) WHEN + + 87 * 98 * - NULLIF ( 69, + - CAST( NULL AS SIGNED ) ) THEN + COUNT( * ) ELSE NULL END
----
11
NULL

skipif mysql # not compatible
query II rowsort label-5407
SELECT ALL - 33 + + 44 AS col2, CASE - + 73 WHEN + - 0 + + 30 * + 45 * + AVG ( ALL + CAST ( NULL AS INTEGER ) ) + MIN ( DISTINCT - 75 ) THEN - 16 * - COUNT ( * ) + + - AVG ( ALL + 37 ) + + MIN ( DISTINCT - 65 ) WHEN + + 87 * 98 * - NULLIF ( 69, + - CAST ( NULL AS INTEGER ) ) THEN + COUNT ( * ) ELSE NULL END
----
11
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5408
SELECT 59 + + 5 DIV - 55 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-5408
SELECT 59 + + 5 / - 55 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT SUM( + + 38 ) + + + 4
----
42

skipif mysql # not compatible
query I rowsort label-5409
SELECT SUM ( + + 38 ) + + + 4
----
42

query I rowsort
SELECT ALL + 97 + + 41 AS col0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL SUM( ALL ( - 45 ) ) * NULLIF ( - NULLIF ( - 61, - 53 + - 85 * 0 ), - + 80 ) * - 71
----
194895

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL SUM ( ALL ( - 45 ) ) * NULLIF ( - NULLIF ( - 61, - 53 + - 85 * 0 ), - + 80 ) * - 71
----
194895

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT COUNT( + - 93 ) * 12 * + COUNT( * ) + + ( + NULLIF ( + COUNT( * ), - 62 / + MAX( DISTINCT + 59 ) + 72 ) )
----
13

skipif mysql # not compatible
query I rowsort label-5412
SELECT COUNT ( + - 93 ) * 12 * + COUNT ( * ) + + ( + NULLIF ( + COUNT ( * ), - 62 / + MAX ( DISTINCT + 59 ) + 72 ) )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT + 88 DIV 22 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + 88 / 22 AS col2
----
4

query I rowsort
SELECT ALL 74 * - + 72 AS col0
----
-5328

query I rowsort
SELECT DISTINCT + 16 - + 81
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - 77 * + - NULLIF ( + - 5, + + 31 + + MAX( - + 99 ) ) AS col0
----
-385

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 77 * + - NULLIF ( + - 5, + + 31 + + MAX ( - + 99 ) ) AS col0
----
-385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5417
SELECT 14 * - 56 * COALESCE ( 68, - CAST( NULL AS SIGNED ) - + CAST( - 88 AS SIGNED ) * - COUNT( * ) + - - 94, 53 * + 59 + - AVG ( + 75 ) DIV COUNT( * ), + - 40 - - 7 ) * + 16 + 32 * - - 82 AS col1, 94 * 21 + + - COUNT( * )
----
-850368
1973

skipif mysql # not compatible
query II rowsort label-5417
SELECT 14 * - 56 * COALESCE ( 68, - CAST ( NULL AS INTEGER ) - + CAST ( - 88 AS INTEGER ) * - COUNT ( * ) + - - 94, 53 * + 59 + - AVG ( + 75 ) / COUNT ( * ), + - 40 - - 7 ) * + 16 + 32 * - - 82 AS col1, 94 * 21 + + - COUNT ( * )
----
-850368
1973

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT + MAX( ALL + 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5418
SELECT + MAX ( ALL + 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL - NULLIF ( - + MAX( ALL + + 66 ), - 99 * 76 * + 79 - - 99 + + - 97 * + 61 + - 85 + + COALESCE ( - + 46, 32 * + - COALESCE ( + 6, 63 * COUNT( * ) + + 69 ) * 12 - 81 ) + + 46 * 36 )
----
66

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - NULLIF ( - + MAX ( ALL + + 66 ), - 99 * 76 * + 79 - - 99 + + - 97 * + 61 + - 85 + + COALESCE ( - + 46, 32 * + - COALESCE ( + 6, 63 * COUNT ( * ) + + 69 ) * 12 - 81 ) + + 46 * 36 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5420
SELECT 81 DIV 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5420
SELECT 81 / 57 AS col2
----
1

query I rowsort
SELECT + 74 * 14 - 17
----
1019

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5422
SELECT - 76 DIV + + 47 + NULLIF ( 96, AVG ( COALESCE ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - 85, + - 31 * ( - 37 ) + + 95 ) ) )
----
95

skipif mysql # not compatible
query I rowsort label-5422
SELECT - 76 / + + 47 + NULLIF ( 96, AVG ( COALESCE ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - 85, + - 31 * ( - 37 ) + + 95 ) ) )
----
95

query I rowsort
SELECT DISTINCT - - ( 61 ) AS col1
----
61

query I rowsort
SELECT ALL - - 10 col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL CASE - MIN( + 70 ) WHEN - 7 + + 5 + + 42 THEN NULL ELSE 42 END * - - 1 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL CASE - MIN ( + 70 ) WHEN - 7 + + 5 + + 42 THEN NULL ELSE 42 END * - - 1 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT - 49 + - 97 + + 20 * 62 * + COUNT( * ) * + - SUM( DISTINCT + + 31 ) * 3
----
-115466

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 49 + - 97 + + 20 * 62 * + COUNT ( * ) * + - SUM ( DISTINCT + + 31 ) * 3
----
-115466

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT - - ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT - - ( + COUNT ( * ) )
----
1

query I rowsort
SELECT - 76 + + + 43
----
-33

query I rowsort
SELECT DISTINCT 64 + + 12
----
76

query I rowsort
SELECT DISTINCT 6 * 98
----
588

onlyif mysql # aggregate syntax: 
query II rowsort label-5431
SELECT - 10 AS col2, 61 * CASE + - 8 WHEN + + 51 * + 85 - + ( - + 12 ) + COUNT( * ) + - 4 + 63 THEN + 7 * - COUNT( * ) - - 97 + 59 ELSE + 25 * + 13 * - + MAX( + 13 ) END AS col1
----
-10
-257725

skipif mysql # not compatible
query II rowsort label-5431
SELECT - 10 AS col2, 61 * CASE + - 8 WHEN + + 51 * + 85 - + ( - + 12 ) + COUNT ( * ) + - 4 + 63 THEN + 7 * - COUNT ( * ) - - 97 + 59 ELSE + 25 * + 13 * - + MAX ( + 13 ) END AS col1
----
-10
-257725

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL 34 + - COUNT( * ) + - - NULLIF ( 11, COUNT( * ) * - 38 * + 14 / + + 11 ) * + + 20 + 62
----
315

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL 34 + - COUNT ( * ) + - - NULLIF ( 11, COUNT ( * ) * - 38 * + 14 / + + 11 ) * + + 20 + 62
----
315

query II rowsort
SELECT ALL 20, - 99 AS col1
----
20
-99

query I rowsort
SELECT ALL + 1 + 43 * - - 62 * 7
----
18663

query I rowsort
SELECT 94 * - 81 AS col0
----
-7614

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT DISTINCT + 83 + - + SUM( ALL + 19 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT + 83 + - + SUM ( ALL + 19 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL - COUNT( * ) + - + 76 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - COUNT ( * ) + - + 76 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT + 74 * + + MAX( DISTINCT 61 ) * - + 41 AS col0
----
-185074

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT + 74 * + + MAX ( DISTINCT 61 ) * - + 41 AS col0
----
-185074

onlyif mysql # DIV for integer division: 
query II rowsort label-5439
SELECT ALL 51 * 42 * + + 83 AS col0, - 1 DIV + 22
----
177786
0

skipif mysql # not compatible
query II rowsort label-5439
SELECT ALL 51 * 42 * + + 83 AS col0, - 1 / + 22
----
177786
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT MIN( DISTINCT - 54 ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT MIN ( DISTINCT - 54 ) col1
----
-54

query I rowsort
SELECT ALL - 66 - - 11
----
-55

query I rowsort
SELECT 10 * 43
----
430

query I rowsort
SELECT + 75 - - + 4 AS col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5444
SELECT + ( - ( + 91 ) ) DIV - + 59
----
1

skipif mysql # not compatible
query I rowsort label-5444
SELECT + ( - ( + 91 ) ) / - + 59
----
1

query II rowsort
SELECT DISTINCT - COALESCE ( - 72, + 37 ), + 77 col1
----
72
77

query I rowsort
SELECT 27 * + 82
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL - - SUM( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - - SUM ( 1 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5448
SELECT COUNT( * ) AS col2, MIN( - - 28 ) + - NULLIF ( - 99, + 9 * - 49 * - ( + 12 ) - + + COUNT( * ) ) AS col2
----
1
127

skipif mysql # not compatible
query II rowsort label-5448
SELECT COUNT ( * ) AS col2, MIN ( - - 28 ) + - NULLIF ( - 99, + 9 * - 49 * - ( + 12 ) - + + COUNT ( * ) ) AS col2
----
1
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL 68 * + COUNT( * ) + + + 43 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL 68 * + COUNT ( * ) + + + 43 AS col1
----
111

query I rowsort
SELECT 19 - + 5
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL + + 65 * - COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + + 65 * - COUNT ( * ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT COUNT( * ) * - 63 + - COUNT( ALL 86 )
----
-64

skipif mysql # not compatible
query I rowsort label-5452
SELECT COUNT ( * ) * - 63 + - COUNT ( ALL 86 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + COUNT( * ) * - 23 col1
----
-23

skipif mysql # not compatible
query I rowsort label-5453
SELECT + COUNT ( * ) * - 23 col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT + 86 * - + CAST( NULL AS SIGNED ) - - 27 + - - 8 * 99 * + 48 - + 16 + - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT + 86 * - + CAST ( NULL AS INTEGER ) - - 27 + - - 8 * 99 * + 48 - + 16 + - 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5455
SELECT + COUNT( * ) AS col2, 30
----
1
30

skipif mysql # not compatible
query II rowsort label-5455
SELECT + COUNT ( * ) AS col2, 30
----
1
30

onlyif mysql # DIV for integer division: 
query II rowsort label-5456
SELECT 63 AS col1, - 39 DIV 77 AS col0
----
63
0

skipif mysql # not compatible
query II rowsort label-5456
SELECT 63 AS col1, - 39 / 77 AS col0
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + + ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5457
SELECT + + ( - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ALL + COUNT( * ) + + 41
----
42

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL + COUNT ( * ) + + 41
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT - COUNT( * ) * - 5 + - + COUNT( * ) * 46 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5459
SELECT - COUNT ( * ) * - 5 + - + COUNT ( * ) * 46 AS col2
----
-41

query I rowsort
SELECT 80 * + - 4 + + - 92 + 96 AS col1
----
-316

onlyif mysql # aggregate syntax: 
query II rowsort label-5461
SELECT + 26 col2, - 75 * + MAX( ALL - 15 ) AS col2
----
26
1125

skipif mysql # not compatible
query II rowsort label-5461
SELECT + 26 col2, - 75 * + MAX ( ALL - 15 ) AS col2
----
26
1125

query I rowsort
SELECT DISTINCT + 17 + 45
----
62

query II rowsort
SELECT ALL - 78 col1, + 77
----
-78
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5464
SELECT + + 21, + NULLIF ( 49, + COALESCE ( CAST( 66 AS SIGNED ), - + 69 ) ) col0
----
21
49

skipif mysql # not compatible
query II rowsort label-5464
SELECT + + 21, + NULLIF ( 49, + COALESCE ( CAST ( 66 AS INTEGER ), - + 69 ) ) col0
----
21
49

query I rowsort
SELECT ALL - 84 + - 68
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT ALL 47 + + CAST( + 57 AS SIGNED ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL 47 + + CAST ( + 57 AS INTEGER ) AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT + SUM( DISTINCT + + 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5467
SELECT + SUM ( DISTINCT + + 8 ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5468
SELECT ALL CASE 68 WHEN + - 39 THEN 72 * - + MAX( ALL 89 ) * - CASE COUNT( * ) WHEN - 8 THEN NULL WHEN + 51 + - + NULLIF ( - 84, - NULLIF ( - 1, + 79 * - 79 ) * 52 ) THEN 78 ELSE COUNT( 98 ) END + 90 + + - 61 END + - 15 * + + CAST( 18 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL CASE 68 WHEN + - 39 THEN 72 * - + MAX ( ALL 89 ) * - CASE COUNT ( * ) WHEN - 8 THEN NULL WHEN + 51 + - + NULLIF ( - 84, - NULLIF ( - 1, + 79 * - 79 ) * 52 ) THEN 78 ELSE COUNT ( 98 ) END + 90 + + - 61 END + - 15 * + + CAST ( 18 AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT ALL 17 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL 17 / 56
----
0

query I rowsort
SELECT - 23 + + 32 * + 36 AS col2
----
1129

query I rowsort
SELECT ALL 11 + - 4 AS col0
----
7

query I rowsort
SELECT - 93 * - 4 + - 76 * + - 42
----
3564

query I rowsort
SELECT - COALESCE ( + 76, + 72 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL 87 * + 56 * - + COUNT( * )
----
-4872

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL 87 * + 56 * - + COUNT ( * )
----
-4872

onlyif mysql # aggregate syntax: 
query II rowsort label-5475
SELECT + 99 - + CASE + ( + - 7 ) WHEN 45 THEN - - 50 * + 83 - + + ( - + 26 ) END AS col1, 67 + - COUNT( * ) * ( COUNT( * ) )
----
NULL
66

skipif mysql # not compatible
query II rowsort label-5475
SELECT + 99 - + CASE + ( + - 7 ) WHEN 45 THEN - - 50 * + 83 - + + ( - + 26 ) END AS col1, 67 + - COUNT ( * ) * ( COUNT ( * ) )
----
NULL
66

query II rowsort
SELECT 0 col1, + 36 AS col0
----
0
36

query I rowsort
SELECT + 45 + - 62 AS col0
----
-17

query I rowsort
SELECT ALL 51 * - 81
----
-4131

query I rowsort
SELECT DISTINCT 10 - + 13
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5480
SELECT ALL MIN( 54 ) AS col1, - 45 * + 30 * - - 93 * + - 55 + + 3 * + - 80 col1
----
54
6905010

skipif mysql # not compatible
query II rowsort label-5480
SELECT ALL MIN ( 54 ) AS col1, - 45 * + 30 * - - 93 * + - 55 + + 3 * + - 80 col1
----
54
6905010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT + CAST( NULL AS SIGNED ) + - 12 + - 80 * 78 * - COUNT( + 73 ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT + CAST ( NULL AS INTEGER ) + - 12 + - 80 * 78 * - COUNT ( + 73 ) + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + ( - 27 ) * - NULLIF ( - MAX( ALL + - 98 ), - 10 * - 31 + + 97 )
----
2646

skipif mysql # not compatible
query I rowsort label-5482
SELECT + ( - 27 ) * - NULLIF ( - MAX ( ALL + - 98 ), - 10 * - 31 + + 97 )
----
2646

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT - COUNT( * ) AS col1, - 26 * + - 13 AS col2
----
-1
338

skipif mysql # not compatible
query II rowsort label-5483
SELECT - COUNT ( * ) AS col1, - 26 * + - 13 AS col2
----
-1
338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT - 15 + NULLIF ( 89, CAST( NULL AS SIGNED ) ) * - - 93
----
8262

skipif mysql # not compatible
query I rowsort label-5484
SELECT - 15 + NULLIF ( 89, CAST ( NULL AS INTEGER ) ) * - - 93
----
8262

query I rowsort
SELECT - 91 + + 21 col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5486
SELECT ALL 98, + CAST( NULL AS SIGNED ) AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-5486
SELECT ALL 98, + CAST ( NULL AS INTEGER ) AS col2
----
98
NULL

query I rowsort
SELECT - 9 * - NULLIF ( 81, - 54 )
----
729

query I rowsort
SELECT - 68 + - - 62 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL MIN( ALL - ( - - 62 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL MIN ( ALL - ( - - 62 ) )
----
-62

query I rowsort
SELECT - 42 + + 32
----
-10

query I rowsort
SELECT DISTINCT ( 90 ) AS col0
----
90

query I rowsort
SELECT ALL - + 17 * - 99 col1
----
1683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5493
SELECT ALL - COUNT( * ) * NULLIF ( - - ( + - CAST( NULL AS SIGNED ) ), - 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL - COUNT ( * ) * NULLIF ( - - ( + - CAST ( NULL AS INTEGER ) ), - 11 )
----
NULL

query I rowsort
SELECT - - 28 * 54 AS col2
----
1512

query I rowsort
SELECT - - 70 + ( - 56 ) AS col1
----
14

query II rowsort
SELECT + 32, 44 AS col2
----
32
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5497
SELECT + ( 81 ) * + 10 + - + ( + COUNT( * ) ) + 62 + 57 + + 60 + - - 60 AS col2, 66
----
1048
66

skipif mysql # not compatible
query II rowsort label-5497
SELECT + ( 81 ) * + 10 + - + ( + COUNT ( * ) ) + 62 + 57 + + 60 + - - 60 AS col2, 66
----
1048
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL + + 76 * + + 17 - + 50 + - - 97 + COUNT( * )
----
1340

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL + + 76 * + + 17 - + 50 + - - 97 + COUNT ( * )
----
1340

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL - 24 * + 88 + - COUNT( * ) AS col1
----
-2113

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - 24 * + 88 + - COUNT ( * ) AS col1
----
-2113

query I rowsort
SELECT DISTINCT + ( - 24 ) AS col1
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5501
SELECT DISTINCT - + 8 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - + 8 / - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL 37 * 66 + + 97 + + 19 + + 53 * - 65 AS col0
----
-887

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT - - COUNT( * ) + - - 53
----
54

skipif mysql # not compatible
query I rowsort label-5503
SELECT - - COUNT ( * ) + - - 53
----
54

query I rowsort
SELECT DISTINCT + 87 * + 80 + - + 38
----
6922

query I rowsort
SELECT NULLIF ( + 39, + 3 ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5506
SELECT + 5 + + - 23 * - COUNT( * ) * + 35 * - CAST( NULL AS SIGNED ) / + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT + 5 + + - 23 * - COUNT ( * ) * + 35 * - CAST ( NULL AS INTEGER ) / + 57
----
NULL

query I rowsort
SELECT - 17 * - 81
----
1377

query II rowsort
SELECT DISTINCT ( + + 40 ) AS col0, + 68 + + 6 AS col1
----
40
74

query I rowsort
SELECT ALL - 1 * - 37
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5510
SELECT DISTINCT 20 * COUNT( * ) - - 0, 42 AS col0
----
20
42

skipif mysql # not compatible
query II rowsort label-5510
SELECT DISTINCT 20 * COUNT ( * ) - - 0, 42 AS col0
----
20
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5511
SELECT DISTINCT CAST( - - ( COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT CAST ( - - ( COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 34 * + 30
----
1020

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT MAX( ALL + 44 ) AS col0, 93 AS col2
----
44
93

skipif mysql # not compatible
query II rowsort label-5513
SELECT MAX ( ALL + 44 ) AS col0, 93 AS col2
----
44
93

query I rowsort
SELECT ALL - 66 - + 64 col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * 13 + - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5515
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * 13 + - 59 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5516
SELECT ALL 98 * 68 DIV 9 AS col1
----
740

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL 98 * 68 / 9 AS col1
----
740

onlyif mysql # aggregate syntax: 
query II rowsort label-5517
SELECT - COUNT( * ) - + COUNT( * ) AS col2, COUNT( + 58 ) AS col1
----
-2
1

skipif mysql # not compatible
query II rowsort label-5517
SELECT - COUNT ( * ) - + COUNT ( * ) AS col2, COUNT ( + 58 ) AS col1
----
-2
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT + 9 DIV - - 29
----
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT + 9 / - - 29
----
0

query I rowsort
SELECT ALL ( - COALESCE ( + 90, + 62 ) ) * + COALESCE ( 81, 32, + 12 + + 20 )
----
-7290

query II rowsort
SELECT ALL + 39 * - 99, 70 col0
----
-3861
70

query I rowsort
SELECT DISTINCT + 13 + + 87 * + + 13 + 75
----
1219

query I rowsort
SELECT ALL + 80 + + 12 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT + + COUNT( * ) + + - 17 - + 72 + + + 79 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5523
SELECT + + COUNT ( * ) + + - 17 - + 72 + + + 79 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT ALL SUM( ALL + + ( + 63 ) ) + 88 + - COUNT( * ), + 69 + 14 AS col1
----
150
83

skipif mysql # not compatible
query II rowsort label-5524
SELECT ALL SUM ( ALL + + ( + 63 ) ) + 88 + - COUNT ( * ), + 69 + 14 AS col1
----
150
83

query II rowsort
SELECT + 73 + - - 96 AS col2, + 61 - 22 * + 92
----
169
-1963

query II rowsort
SELECT ( - 5 ) * + - ( - + 1 ) + - + 83 AS col0, 37 AS col2
----
-88
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5527
SELECT DISTINCT - 97 DIV - - 35 + + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - 97 / - - 35 + + COUNT ( * ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5528
SELECT - 27 DIV - ( + + 56 ) + - - 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5528
SELECT - 27 / - ( + + 56 ) + - - 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT ALL ( + + MAX( - 5 ) ) + - 79
----
-84

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL ( + + MAX ( - 5 ) ) + - 79
----
-84

query I rowsort
SELECT DISTINCT - 95 * 83 + - 0 AS col1
----
-7885

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL - + COUNT( * ) + 29
----
28

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL - + COUNT ( * ) + 29
----
28

query I rowsort
SELECT NULLIF ( 55, + + 96 ) * + 57 AS col0
----
3135

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT 36 DIV 89 + + + 17 + 24
----
41

skipif mysql # not compatible
query I rowsort label-5533
SELECT 36 / 89 + + + 17 + 24
----
41

query I rowsort
SELECT ALL + - 93 - - 75
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-5535
SELECT + 7 AS col0, + COUNT( * ) AS col1
----
7
1

skipif mysql # not compatible
query II rowsort label-5535
SELECT + 7 AS col0, + COUNT ( * ) AS col1
----
7
1

query I rowsort
SELECT 95 * - 50
----
-4750

onlyif mysql # DIV for integer division: 
query I rowsort label-5537
SELECT DISTINCT - 97 - + 66 + - 23 - 87 DIV + 35 * - 59 DIV + 41
----
-184

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - 97 - + 66 + - 23 - 87 / + 35 * - 59 / + 41
----
-184

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT ALL + 42 DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + 42 / 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5539
SELECT ALL - COUNT( * ) col0, 64 + 69
----
-1
133

skipif mysql # not compatible
query II rowsort label-5539
SELECT ALL - COUNT ( * ) col0, 64 + 69
----
-1
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL 34 - 87 + SUM( DISTINCT + 5 ) - 51
----
-99

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL 34 - 87 + SUM ( DISTINCT + 5 ) - 51
----
-99

query II rowsort
SELECT + 18 AS col2, 83 * - 35 * 35
----
18
-101675

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT NULLIF ( - ( + COUNT( * ) ), COUNT( * ) ) * - 59 - - 70 col0
----
129

skipif mysql # not compatible
query I rowsort label-5542
SELECT NULLIF ( - ( + COUNT ( * ) ), COUNT ( * ) ) * - 59 - - 70 col0
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT 88 DIV + 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5543
SELECT 88 / + 64 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT ALL + 43 DIV - 45 * 32
----
0

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL + 43 / - 45 * 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT - ( ( - - COUNT( * ) ) ) * + - 65
----
65

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT - ( ( - - COUNT ( * ) ) ) * + - 65
----
65

query I rowsort
SELECT 97 * - 65 AS col1
----
-6305

query I rowsort
SELECT 43 * 13 + - 91 AS col1
----
468

query I rowsort
SELECT 74 + 15
----
89

query II rowsort
SELECT 52 AS col1, - 87 AS col1
----
52
-87

query II rowsort
SELECT DISTINCT 88 AS col2, - 4 * 23
----
88
-92

query I rowsort
SELECT 94 + - 74 AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5552
SELECT ALL 94 AS col1, 1 + + MAX( DISTINCT - 31 ) - 10 * 44 DIV - 66 * - ( 1 ) AS col1
----
94
-36

skipif mysql # not compatible
query II rowsort label-5552
SELECT ALL 94 AS col1, 1 + + MAX ( DISTINCT - 31 ) - 10 * 44 / - 66 * - ( 1 ) AS col1
----
94
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT COUNT( * ) + + 59
----
60

skipif mysql # not compatible
query I rowsort label-5553
SELECT COUNT ( * ) + + 59
----
60

query I rowsort
SELECT ALL + 7 + - 59 * + + ( + + 57 )
----
-3356

query I rowsort
SELECT 13 + - 45 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL NULLIF ( + + MIN( - - 22 ), COALESCE ( + 17, + 73 ) ) + - 76 + + 81
----
27

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL NULLIF ( + + MIN ( - - 22 ), COALESCE ( + 17, + 73 ) ) + - 76 + + 81
----
27

query I rowsort
SELECT ALL - - 71 + 89 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT 25 + - CASE - + 53 WHEN + 92 + - 16 THEN NULL ELSE + COUNT( * ) END AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5558
SELECT 25 + - CASE - + 53 WHEN + 92 + - 16 THEN NULL ELSE + COUNT ( * ) END AS col0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT - 34 / 53 / - 58 * + ( 84 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT - 34 / 53 / - 58 * + ( 84 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 71 + - 10 + - ( 5 )
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-5561
SELECT ALL 55 AS col1, 22 DIV - 87 AS col1
----
55
0

skipif mysql # not compatible
query II rowsort label-5561
SELECT ALL 55 AS col1, 22 / - 87 AS col1
----
55
0

query I rowsort
SELECT ALL - 88 + + 0 AS col0
----
-88

query I rowsort
SELECT DISTINCT + + 16 * + + 35
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL - 7 + - + COUNT( 46 ) * + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - 7 + - + COUNT ( 46 ) * + COUNT ( * )
----
-8

query I rowsort
SELECT 73 * + 97 AS col0
----
7081

query I rowsort
SELECT DISTINCT - 38 * - 49 AS col0
----
1862

query II rowsort
SELECT 32 AS col0, + 85 AS col0
----
32
85

query II rowsort
SELECT DISTINCT - 94 AS col2, + 10 col1
----
-94
10

query I rowsort
SELECT ALL 3 - + 63 * - + ( + 91 )
----
5736

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5570
SELECT ALL COALESCE ( + + 78, ( + 85 ), + COALESCE ( 11, 19 * + + 64 ), + 10 * - 50 + + 30 * + + 33 ) - - 91 AS col2, 3 DIV 16 + MAX( 31 ) + - 62 + + + 52
----
169
21

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL COALESCE ( + + 78, ( + 85 ), + COALESCE ( 11, 19 * + + 64 ), + 10 * - 50 + + 30 * + + 33 ) - - 91 AS col2, 3 / 16 + MAX ( 31 ) + - 62 + + + 52
----
169
21

query I rowsort
SELECT 43 * + 50 AS col0
----
2150

query II rowsort
SELECT ALL - + 26 AS col2, 95 * + NULLIF ( 43, 49 * - + 14 ) + - - 83 AS col0
----
-26
4168

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5573
SELECT + MAX( 24 ) * + - 57 + + 3, MIN( - CAST( NULL AS DECIMAL ) ) - - + 87 * - - 90 * 41 / + ( + 35 ) AS col0
----
-1365
NULL

skipif mysql # not compatible
query II rowsort label-5573
SELECT + MAX ( 24 ) * + - 57 + + 3, MIN ( - CAST ( NULL AS REAL ) ) - - + 87 * - - 90 * 41 / + ( + 35 ) AS col0
----
-1365
NULL

query II rowsort
SELECT DISTINCT 23 * - 79 AS col0, ( - + 93 )
----
-1817
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL + COUNT( * ) * + 95 * - 35 * - 40 * + - COALESCE ( + 94, 7, - 74 * - 32 + + ( - 81 ) ) AS col1
----
-12502000

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL + COUNT ( * ) * + 95 * - 35 * - 40 * + - COALESCE ( + 94, 7, - 74 * - 32 + + ( - 81 ) ) AS col1
----
-12502000

query II rowsort
SELECT DISTINCT 87 * + 21 AS col2, 94
----
1827
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT + COUNT( DISTINCT + 54 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5577
SELECT + COUNT ( DISTINCT + 54 ) AS col1
----
1

query II rowsort
SELECT DISTINCT + 94 + ( + 42 ) + 89 + + - 56 col2, 75 AS col2
----
169
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT 13 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT 13 / - 37
----
0

query I rowsort
SELECT 19 * - 5
----
-95

query I rowsort
SELECT NULLIF ( + 87, 54 + + 33 + 25 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT DISTINCT + ( + COUNT( * ) ) * + 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT + ( + COUNT ( * ) ) * + 36 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT + ( - + 14 ) - + 87 / + 66 * 42 * 22 + + + MIN( ALL - 89 ) - - ( - CAST( NULL AS SIGNED ) ) + + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT + ( - + 14 ) - + 87 / + 66 * 42 * 22 + + + MIN ( ALL - 89 ) - - ( - CAST ( NULL AS INTEGER ) ) + + - 80
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT ALL - + 26 + COUNT( * ) - + COUNT( * ) DIV - 91 * + 85 * - 84 - - - 7 + - + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - + 26 + COUNT ( * ) - + COUNT ( * ) / - 91 * + 85 * - 84 - - - 7 + - + COUNT ( * ) AS col0
----
-33

query I rowsort
SELECT ALL ( + - 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL + 11 + - 25 + + MAX( + - 13 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + 11 + - 25 + + MAX ( + - 13 ) AS col0
----
-27

query I rowsort
SELECT - 77 * + 11 * + 85 col1
----
-71995

query I rowsort
SELECT ALL + 0 * - 66 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT ALL ( + 99 ) - - 89 DIV + 22 AS col0
----
103

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL ( + 99 ) - - 89 / + 22 AS col0
----
103

query I rowsort
SELECT DISTINCT - 9 - + 83
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT - ( COUNT( * ) ) + - 66 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5591
SELECT - ( COUNT ( * ) ) + - 66 AS col1
----
-67

query I rowsort
SELECT ALL - + ( 0 ) - + 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5593
SELECT + + 90 * + 46 AS col1, COUNT( * ) * - + 67 AS col1
----
4140
-67

skipif mysql # not compatible
query II rowsort label-5593
SELECT + + 90 * + 46 AS col1, COUNT ( * ) * - + 67 AS col1
----
4140
-67

query I rowsort
SELECT ALL + 84 * 81 * + 2
----
13608

query I rowsort
SELECT ALL + + ( + - 27 )
----
-27

query I rowsort
SELECT DISTINCT + COALESCE ( - 90, - 35 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT ALL - 42 * CAST( - ( - AVG ( + CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL - 42 * CAST ( - ( - AVG ( + CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 26 AS col1, + 68
----
26
68

query I rowsort
SELECT DISTINCT 46 * + ( + ( 6 ) )
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5600
SELECT + 1 DIV - + 65 - - COUNT( * ) + - 18 DIV - COUNT( * ) + - 47 col2
----
-28

skipif mysql # not compatible
query I rowsort label-5600
SELECT + 1 / - + 65 - - COUNT ( * ) + - 18 / - COUNT ( * ) + - 47 col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5601
SELECT CASE - + 84 WHEN - 41 + + MIN( ALL + - 55 ) + - MAX( + 2 ) / - NULLIF ( - 37, + + 79 + - CASE + 84 WHEN 53 * - 95 * 50 / 68 + + 13 + - 73 + SUM( DISTINCT - 11 ) THEN NULL WHEN COUNT( * ) * 58 - + - SUM( - 6 ) + CAST( NULL AS SIGNED ) THEN + + 57 * 11 * - 38 / - - 45 * + 89 ELSE NULL END * 67 * + + 72 + 11 ) - - 49 - + COUNT( * ) * - 39 - + AVG ( DISTINCT - 24 ) THEN - 53 * - + ( - 57 ) + + 46 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT CASE - + 84 WHEN - 41 + + MIN ( ALL + - 55 ) + - MAX ( + 2 ) / - NULLIF ( - 37, + + 79 + - CASE + 84 WHEN 53 * - 95 * 50 / 68 + + 13 + - 73 + SUM ( DISTINCT - 11 ) THEN NULL WHEN COUNT ( * ) * 58 - + - SUM ( - 6 ) + CAST ( NULL AS INTEGER ) THEN + + 57 * 11 * - 38 / - - 45 * + 89 ELSE NULL END * 67 * + + 72 + 11 ) - - 49 - + COUNT ( * ) * - 39 - + AVG ( DISTINCT - 24 ) THEN - 53 * - + ( - 57 ) + + 46 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5602
SELECT ALL + CAST( NULL AS SIGNED ) * ( + - 91 ) + 0 + + - 43 * + 41 AS col1, ( - 60 ) AS col2
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-5602
SELECT ALL + CAST ( NULL AS INTEGER ) * ( + - 91 ) + 0 + + - 43 * + 41 AS col1, ( - 60 ) AS col2
----
NULL
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT CASE + COUNT( * ) WHEN ( + 69 ) / + 41 + - + 44 * SUM( DISTINCT - 28 ) THEN + 5 * + - 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT CASE + COUNT ( * ) WHEN ( + 69 ) / + 41 + - + 44 * SUM ( DISTINCT - 28 ) THEN + 5 * + - 27 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT ALL 20 * CAST( NULL AS SIGNED ) * + - 17 + + 55 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL 20 * CAST ( NULL AS INTEGER ) * + - 17 + + 55 col0
----
NULL

query I rowsort
SELECT + 57 * - - NULLIF ( + 11, - - 35 ) AS col2
----
627

query I rowsort
SELECT ALL + 10 * 46 * 77 + - - 7
----
35427

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5607
SELECT + NULLIF ( - CAST( NULLIF ( + 43, 93 ) AS SIGNED ), - 30 ), + MAX( + - 14 ) AS col1
----
-43
-14

skipif mysql # not compatible
query II rowsort label-5607
SELECT + NULLIF ( - CAST ( NULLIF ( + 43, 93 ) AS INTEGER ), - 30 ), + MAX ( + - 14 ) AS col1
----
-43
-14

query I rowsort
SELECT + 27 - - 91 + + + 38 AS col1
----
156

query I rowsort
SELECT ALL - 33 * 15 * 85 + - 87 + + 20
----
-42142

query I rowsort
SELECT + 14 + + 99
----
113

query II rowsort
SELECT DISTINCT 67, - 65 + + ( + + 62 ) AS col1
----
67
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT + 53 + - + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5612
SELECT + 53 + - + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL - - SUM( DISTINCT + + 93 ) - + COUNT( * ) + CASE - - 70 WHEN 72 THEN NULL WHEN + + 28 * 8 * 60 + - MAX( ALL 20 ) + - - 43 * - 31 THEN + + 58 + 31 END * + ( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL - - SUM ( DISTINCT + + 93 ) - + COUNT ( * ) + CASE - - 70 WHEN 72 THEN NULL WHEN + + 28 * 8 * 60 + - MAX ( ALL 20 ) + - - 43 * - 31 THEN + + 58 + 31 END * + ( 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT - + COUNT( * ) * - 83 + + 99
----
182

skipif mysql # not compatible
query I rowsort label-5614
SELECT - + COUNT ( * ) * - 83 + + 99
----
182

query I rowsort
SELECT DISTINCT + NULLIF ( - 45, + + 42 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT - - 60 + - COUNT( * ) DIV - + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5616
SELECT - - 60 + - COUNT ( * ) / - + COUNT ( * ) AS col0
----
61

query I rowsort
SELECT DISTINCT + + 78 * + + ( - + 93 ) AS col0
----
-7254

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL - - CASE - 14 WHEN + 30 THEN - 94 * - + 20 + COUNT( + + 5 ) ELSE NULL END - + 25 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL - - CASE - 14 WHEN + 30 THEN - 94 * - + 20 + COUNT ( + + 5 ) ELSE NULL END - + 25 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT + - 74 * + COUNT( * ) + + + 42 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5619
SELECT + - 74 * + COUNT ( * ) + + + 42 AS col0
----
-32

query I rowsort
SELECT - - 10 + + + 8
----
18

query I rowsort
SELECT - 11 * + 46 AS col0
----
-506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT ALL + + CAST( 38 AS SIGNED ) * + 81 AS col0
----
3078

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL + + CAST ( 38 AS INTEGER ) * + 81 AS col0
----
3078

query II rowsort
SELECT - + 36 AS col1, 91 AS col1
----
-36
91

query II rowsort
SELECT - 2, + 85 * 45 col2
----
-2
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT ALL NULLIF ( + - 76, + COUNT( * ) - + + 7 )
----
-76

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL NULLIF ( + - 76, + COUNT ( * ) - + + 7 )
----
-76

query II rowsort
SELECT DISTINCT + 56 AS col2, - 91 - + + 7 AS col1
----
56
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5627
SELECT ALL 35 / - COALESCE ( + 67, 58, - - 21 * - 64 / + 29, - + 93 + 7 ) * 34 * MIN( + - 64 ) + - + 14 + - 11 / CAST( NULL AS SIGNED ) + + SUM( + 58 ) * + NULLIF ( - - 20, - - ( - 13 ) / CAST( NULL AS SIGNED ) ) * - - NULLIF ( - CASE - 82 WHEN - - ( COUNT( * ) ) / - 3 THEN - COUNT( * ) + 0 END, + 90 * 56 + + CASE - COUNT( * ) WHEN - + 55 + + - 7 THEN - + 64 * - COUNT( * ) + + COALESCE ( - ( NULLIF ( - 2, 13 ) ), + 98, + 89 * + 50 ) WHEN + 9 THEN 82 * 91 END + 2 * - NULLIF ( 32, + 16 * - COUNT( * ) ) / 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL 35 / - COALESCE ( + 67, 58, - - 21 * - 64 / + 29, - + 93 + 7 ) * 34 * MIN ( + - 64 ) + - + 14 + - 11 / CAST ( NULL AS INTEGER ) + + SUM ( + 58 ) * + NULLIF ( - - 20, - - ( - 13 ) / CAST ( NULL AS INTEGER ) ) * - - NULLIF ( - CASE - 82 WHEN - - ( COUNT ( * ) ) / - 3 THEN - COUNT ( * ) + 0 END, + 90 * 56 + + CASE - COUNT ( * ) WHEN - + 55 + + - 7 THEN - + 64 * - COUNT ( * ) + + COALESCE ( - ( NULLIF ( - 2, 13 ) ), + 98, + 89 * + 50 ) WHEN + 9 THEN 82 * 91 END + 2 * - NULLIF ( 32, + 16 * - COUNT ( * ) ) / 33 )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 13, 80 )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5629
SELECT CAST( NULL AS SIGNED ), + 32 + 40 AS col0
----
NULL
72

skipif mysql # not compatible
query II rowsort label-5629
SELECT CAST ( NULL AS INTEGER ), + 32 + 40 AS col0
----
NULL
72

query I rowsort
SELECT - 75 * + + 10
----
-750

query I rowsort
SELECT DISTINCT + NULLIF ( + + 21, - + 82 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT ALL 16 / CAST( NULL AS SIGNED ) + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL 16 / CAST ( NULL AS INTEGER ) + 91 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT ALL + 82 DIV + 42 + - ( 62 ) + 80 * - - 24 * 79
----
151619

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + 82 / + 42 + - ( 62 ) + 80 * - - 24 * 79
----
151619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5634
SELECT ALL - 21 DIV 40 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL - 21 / 40 * - + COUNT ( * )
----
0

query II rowsort
SELECT DISTINCT + NULLIF ( + NULLIF ( - 0, - - AVG ( DISTINCT + 6 ) ), + + 87 ) col0, - 62 + - ( + + CASE ( + + 48 ) WHEN 6 * 12 THEN - 18 END ) AS col0
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT ALL + CASE - - 90 WHEN AVG ( - 86 ) THEN NULL ELSE + + 16 DIV - - 34 END DIV 98 * - - 9 + 25 + + 65 + + 48 DIV + - 83 + 34 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + CASE - - 90 WHEN AVG ( - 86 ) THEN NULL ELSE + + 16 / - - 34 END / 98 * - - 9 + 25 + + 65 + + 48 / + - 83 + 34 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5637
SELECT ALL + ( + NULLIF ( 80, - - ( + + CAST( NULL AS SIGNED ) ) * - COUNT( * ) ) )
----
80

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + ( + NULLIF ( 80, - - ( + + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) ) )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5638
SELECT DISTINCT + 22 DIV 26 * - - 13 + + COUNT( DISTINCT + - 8 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT + 22 / 26 * - - 13 + + COUNT ( DISTINCT + - 8 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT + 9 * 84 AS col0, 69 / 28 * + CASE + 77 WHEN 85 THEN - 61 / COUNT( * ) END
----
756
NULL

skipif mysql # not compatible
query II rowsort label-5639
SELECT + 9 * 84 AS col0, 69 / 28 * + CASE + 77 WHEN 85 THEN - 61 / COUNT ( * ) END
----
756
NULL

query II rowsort
SELECT + 37 AS col2, - 35
----
37
-35

query I rowsort
SELECT 12 * + + ( 88 ) + + 19 AS col2
----
1075

query I rowsort
SELECT - 96 * + ( 65 ) + - 79
----
-6319

query I rowsort
SELECT - 15 * - 11
----
165

query I rowsort
SELECT + NULLIF ( 98, - 81 ) AS col2
----
98

query I rowsort
SELECT ( + CASE - 57 WHEN - + 30 THEN - + 94 * + 98 END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT ALL + 83 AS col2, - SUM( ALL + 77 ) + - 59 * + - MAX( - - 15 ) * - 29 * 7
----
83
-179732

skipif mysql # not compatible
query II rowsort label-5646
SELECT ALL + 83 AS col2, - SUM ( ALL + 77 ) + - 59 * + - MAX ( - - 15 ) * - 29 * 7
----
83
-179732

query I rowsort
SELECT + 97 + + 41 + - 85 - - 42 * + - 40
----
-1627

query II rowsort
SELECT ALL - - 54 col1, + ( - 29 )
----
54
-29

query II rowsort
SELECT + - 56, - 40 AS col1
----
-56
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL - + MIN( - - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL - + MIN ( - - 87 ) AS col1
----
-87

query I rowsort
SELECT ALL - ( + + ( - + 48 ) ) - + - 74 + - - 8 * + + 97
----
898

onlyif mysql # aggregate syntax: 
query II rowsort label-5652
SELECT DISTINCT - 20 AS col1, - ( + - COUNT( * ) )
----
-20
1

skipif mysql # not compatible
query II rowsort label-5652
SELECT DISTINCT - 20 AS col1, - ( + - COUNT ( * ) )
----
-20
1

query I rowsort
SELECT ( + 23 ) * + 63
----
1449

query I rowsort
SELECT DISTINCT 99 * - 94 AS col2
----
-9306

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL COUNT( * ) - + 56 - + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL COUNT ( * ) - + 56 - + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ( - 79 ) * + COUNT( * ) + + + 74
----
-5

skipif mysql # not compatible
query I rowsort label-5656
SELECT ( - 79 ) * + COUNT ( * ) + + + 74
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT - + CAST( 36 AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-5657
SELECT - + CAST ( 36 AS INTEGER ) AS col0
----
-36

query II rowsort
SELECT ALL 97, 51 AS col2
----
97
51

query II rowsort
SELECT - + 51 col0, + 12
----
-51
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5660
SELECT ALL COUNT( 28 ), - 34 * - 65 AS col2
----
1
2210

skipif mysql # not compatible
query II rowsort label-5660
SELECT ALL COUNT ( 28 ), - 34 * - 65 AS col2
----
1
2210

onlyif mysql # aggregate syntax: 
query II rowsort label-5661
SELECT - 92, 31 * + NULLIF ( - - 21, ( + 90 ) ) + + MAX( DISTINCT + - 10 ) col0
----
-92
641

skipif mysql # not compatible
query II rowsort label-5661
SELECT - 92, 31 * + NULLIF ( - - 21, ( + 90 ) ) + + MAX ( DISTINCT + - 10 ) col0
----
-92
641

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5662
SELECT - COUNT( * ) DIV - 80 AS col1, - 79 - - + 33
----
0
-46

skipif mysql # not compatible
query II rowsort label-5662
SELECT - COUNT ( * ) / - 80 AS col1, - 79 - - + 33
----
0
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT ( - ( + 28 ) ) + + ( - 96 ) + + - 15 * 91 DIV - 66
----
-104

skipif mysql # not compatible
query I rowsort label-5663
SELECT ( - ( + 28 ) ) + + ( - 96 ) + + - 15 * 91 / - 66
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5664
SELECT 7 * - - 96, - MAX( DISTINCT + 5 ) + - - 21 - + 95 + - 71 DIV 26 AS col2
----
672
-81

skipif mysql # not compatible
query II rowsort label-5664
SELECT 7 * - - 96, - MAX ( DISTINCT + 5 ) + - - 21 - + 95 + - 71 / 26 AS col2
----
672
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT ALL - COUNT( * ) + + - 55
----
-56

skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - COUNT ( * ) + + - 55
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT + 31 DIV - 43 + 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5666
SELECT + 31 / - 43 + 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL 63 + + COUNT( * ) + 6 * 87
----
586

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL 63 + + COUNT ( * ) + 6 * 87
----
586

query II rowsort
SELECT DISTINCT - ( - + 35 ) AS col1, - 88
----
35
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5669
SELECT 26 * + - COUNT( * ) + + 67 - + COALESCE ( 52, + + 92 * + - 30 - - CAST( NULL AS SIGNED ) ) * + 87
----
-4483

skipif mysql # not compatible
query I rowsort label-5669
SELECT 26 * + - COUNT ( * ) + + 67 - + COALESCE ( 52, + + 92 * + - 30 - - CAST ( NULL AS INTEGER ) ) * + 87
----
-4483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5670
SELECT 19 + + - 75 DIV + 89 + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5670
SELECT 19 + + - 75 / + 89 + COUNT ( * ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5671
SELECT 22 * - CAST( NULL AS SIGNED ) / - CASE 95 WHEN - 70 + + 46 / + - 24 * - 83 * + + 91 THEN + - 54 ELSE - 97 * - COUNT( DISTINCT 20 ) + - 6 * + 57 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT 22 * - CAST ( NULL AS INTEGER ) / - CASE 95 WHEN - 70 + + 46 / + - 24 * - 83 * + + 91 THEN + - 54 ELSE - 97 * - COUNT ( DISTINCT 20 ) + - 6 * + 57 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5672
SELECT ALL - CAST( NULL AS SIGNED ) - + COUNT( * ), 82 AS col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-5672
SELECT ALL - CAST ( NULL AS INTEGER ) - + COUNT ( * ), 82 AS col0
----
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL - COALESCE ( - COUNT( * ), - 88, - CASE + + 28 WHEN 47 THEN + 45 WHEN - 14 THEN + SUM( + 41 ) ELSE NULL END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL - COALESCE ( - COUNT ( * ), - 88, - CASE + + 28 WHEN 47 THEN + 45 WHEN - 14 THEN + SUM ( + 41 ) ELSE NULL END ) AS col0
----
1

query I rowsort
SELECT 2 - + 11
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5675
SELECT + 35 * - COUNT( * ), + 60 AS col0
----
-35
60

skipif mysql # not compatible
query II rowsort label-5675
SELECT + 35 * - COUNT ( * ), + 60 AS col0
----
-35
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT + 15 * - CAST( 5 AS SIGNED ) - + + ( 25 )
----
-100

skipif mysql # not compatible
query I rowsort label-5676
SELECT + 15 * - CAST ( 5 AS INTEGER ) - + + ( 25 )
----
-100

query I rowsort
SELECT ALL + + 7 * 21 AS col2
----
147

query I rowsort
SELECT 94 - - ( - 59 ) AS col1
----
35

query I rowsort
SELECT - 71 * - 53 AS col1
----
3763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT 43 * - 20 * + MAX( + + 77 ) * + - 20 + 27 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT 43 * - 20 * + MAX ( + + 77 ) * + - 20 + 27 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 93 - + + 48 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + 37 + - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5682
SELECT + 37 + - COUNT ( * ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT + CASE + NULLIF ( + + 58, COUNT( * ) + - 80 * + 59 ) WHEN 93 + - 41 THEN - 87 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT + CASE + NULLIF ( + + 58, COUNT ( * ) + - 80 * + 59 ) WHEN 93 + - 41 THEN - 87 END AS col1
----
NULL

query II rowsort
SELECT + 51 + 52 AS col2, 2 AS col0
----
103
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL - 28 + + + SUM( 69 ) * + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL - 28 + + + SUM ( 69 ) * + COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5686
SELECT DISTINCT SUM( DISTINCT + 98 ) col0, - ( - - CAST( - 15 AS SIGNED ) )
----
98
15

skipif mysql # not compatible
query II rowsort label-5686
SELECT DISTINCT SUM ( DISTINCT + 98 ) col0, - ( - - CAST ( - 15 AS INTEGER ) )
----
98
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5687
SELECT DISTINCT ( + - ( COUNT( * ) ) ) + - 31 DIV + + 61 AS col0, 3 + + + 17 - - 6 * 22
----
-1
152

skipif mysql # not compatible
query II rowsort label-5687
SELECT DISTINCT ( + - ( COUNT ( * ) ) ) + - 31 / + + 61 AS col0, 3 + + + 17 - - 6 * 22
----
-1
152

query I rowsort
SELECT ALL + 47 + + + 42
----
89

query I rowsort
SELECT 42 + 20 + ( - + ( + 4 ) ) * 28
----
-50

query I rowsort
SELECT - 17 * + - 71
----
1207

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT - CASE + 79 WHEN + - 62 THEN - COUNT( * ) + - ( - NULLIF ( + 12, + + 12 ) ) - + + ( + 38 ) * + 13 * 74 * + - 92 ELSE - 7 END + + 90 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-5691
SELECT - CASE + 79 WHEN + - 62 THEN - COUNT ( * ) + - ( - NULLIF ( + 12, + + 12 ) ) - + + ( + 38 ) * + 13 * 74 * + - 92 ELSE - 7 END + + 90 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5692
SELECT COALESCE ( + + NULLIF ( + COALESCE ( - 10, - CASE - MAX( ALL + - 23 ) WHEN + 97 * - 71 + + + 28 + + + COUNT( * ) THEN + 31 * + - 29 * ( AVG ( ALL + - 66 ) ) WHEN 66 DIV 54 THEN + 60 - + 28 END ), - 41 + NULLIF ( CAST( NULL AS SIGNED ), + - COUNT( 39 ) ) + 28 + + MAX( 44 ) ), - 75 ) DIV - 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5692
SELECT COALESCE ( + + NULLIF ( + COALESCE ( - 10, - CASE - MAX ( ALL + - 23 ) WHEN + 97 * - 71 + + + 28 + + + COUNT ( * ) THEN + 31 * + - 29 * ( AVG ( ALL + - 66 ) ) WHEN 66 / 54 THEN + 60 - + 28 END ), - 41 + NULLIF ( CAST ( NULL AS INTEGER ), + - COUNT ( 39 ) ) + 28 + + MAX ( 44 ) ), - 75 ) / - 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT DISTINCT + COUNT( * ) + - 15 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT + COUNT ( * ) + - 15 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT COALESCE ( + 22, - 3, + 52 + + - 18 + + MIN( 69 ) ) + + 45
----
67

skipif mysql # not compatible
query I rowsort label-5694
SELECT COALESCE ( + 22, - 3, + 52 + + - 18 + + MIN ( 69 ) ) + + 45
----
67

query I rowsort
SELECT ( + 80 ) * - 69 + - 99
----
-5619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5696
SELECT CASE - COUNT( * ) WHEN - + 6 * + 1 * - 85 THEN 50 - + + 61 + - 11 * + 10 / MIN( ALL - 86 ) * + 62 * NULLIF ( + + 6, 12 / 16 ) WHEN - + 4 THEN + + COUNT( * ) * COUNT( * ) / 76 / 8 * + COUNT( DISTINCT + 53 ) / 99 + + 29 + ( 40 ) + + 67 * ( + 70 ) * + 18 / - NULLIF ( + NULLIF ( - COUNT( * ), + CASE + 78 WHEN - - 37 / 42 THEN 87 WHEN + 17 THEN NULL WHEN - - 82 / + NULLIF ( MAX( + ( - COALESCE ( 91, 43 ) ) ), + SUM( CAST( NULL AS SIGNED ) ) ) + 59 * - 49 THEN NULL ELSE NULL END ), 16 * MAX( DISTINCT 52 ) ) + ( - 56 ) * 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT CASE - COUNT ( * ) WHEN - + 6 * + 1 * - 85 THEN 50 - + + 61 + - 11 * + 10 / MIN ( ALL - 86 ) * + 62 * NULLIF ( + + 6, 12 / 16 ) WHEN - + 4 THEN + + COUNT ( * ) * COUNT ( * ) / 76 / 8 * + COUNT ( DISTINCT + 53 ) / 99 + + 29 + ( 40 ) + + 67 * ( + 70 ) * + 18 / - NULLIF ( + NULLIF ( - COUNT ( * ), + CASE + 78 WHEN - - 37 / 42 THEN 87 WHEN + 17 THEN NULL WHEN - - 82 / + NULLIF ( MAX ( + ( - COALESCE ( 91, 43 ) ) ), + SUM ( CAST ( NULL AS INTEGER ) ) ) + 59 * - 49 THEN NULL ELSE NULL END ), 16 * MAX ( DISTINCT 52 ) ) + ( - 56 ) * 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT 49 * + MIN( 2 ) + - - 87
----
185

skipif mysql # not compatible
query I rowsort label-5697
SELECT 49 * + MIN ( 2 ) + - - 87
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT 32 DIV + + 30 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5698
SELECT 32 / + + 30 AS col1
----
1

query II rowsort
SELECT ( + - 99 ) * + 9, 68 AS col1
----
-891
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT ALL ( + - COUNT( * ) ) * + 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL ( + - COUNT ( * ) ) * + 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT + COUNT( * ), 12 AS col1
----
1
12

skipif mysql # not compatible
query II rowsort label-5701
SELECT + COUNT ( * ), 12 AS col1
----
1
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT 49 * - - 32 * - COUNT( * ) + - 81 * - COUNT( * ) + 60, - 14 AS col0
----
-1427
-14

skipif mysql # not compatible
query II rowsort label-5702
SELECT 49 * - - 32 * - COUNT ( * ) + - 81 * - COUNT ( * ) + 60, - 14 AS col0
----
-1427
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT - ( - + COUNT( * ) ) DIV COUNT( * ) + + + 6
----
7

skipif mysql # not compatible
query I rowsort label-5703
SELECT - ( - + COUNT ( * ) ) / COUNT ( * ) + + + 6
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5704
SELECT ALL + COUNT( * ), ( + CASE + 54 WHEN + + 84 / + 68 * 99 THEN NULL WHEN - SUM( 19 ) + - 37 THEN - 41 END ) / + 42 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5704
SELECT ALL + COUNT ( * ), ( + CASE + 54 WHEN + + 84 / + 68 * 99 THEN NULL WHEN - SUM ( 19 ) + - 37 THEN - 41 END ) / + 42 AS col1
----
1
NULL

query I rowsort
SELECT DISTINCT + ( 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT + MIN( + - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT + MIN ( + - 14 ) AS col0
----
-14

query I rowsort
SELECT - 28 + - - 25 * - 14 AS col0
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT + 72 * + COUNT( * ) + + ( NULLIF ( - + CASE - - 4 WHEN + + 54 * 85 + + 67 / - + ( + + 60 ) THEN NULL ELSE - COUNT( * ) + - + 84 END, - 82 * 76 ) ) * - MAX( ALL + - 59 ) * - COUNT( * ) + - 18 AS col2
----
-4961

skipif mysql # not compatible
query I rowsort label-5708
SELECT + 72 * + COUNT ( * ) + + ( NULLIF ( - + CASE - - 4 WHEN + + 54 * 85 + + 67 / - + ( + + 60 ) THEN NULL ELSE - COUNT ( * ) + - + 84 END, - 82 * 76 ) ) * - MAX ( ALL + - 59 ) * - COUNT ( * ) + - 18 AS col2
----
-4961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5709
SELECT COALESCE ( - - 79, - + MIN( + 44 ) + 97 + + - 56, + - NULLIF ( + 46, + CAST( 2 AS SIGNED ) + + 81 - 6 * - 63 ) * - 54 )
----
79

skipif mysql # not compatible
query I rowsort label-5709
SELECT COALESCE ( - - 79, - + MIN ( + 44 ) + 97 + + - 56, + - NULLIF ( + 46, + CAST ( 2 AS INTEGER ) + + 81 - 6 * - 63 ) * - 54 )
----
79

query I rowsort
SELECT ALL + + 25 col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5711
SELECT - 99 DIV + COUNT( * ) col1
----
-99

skipif mysql # not compatible
query I rowsort label-5711
SELECT - 99 / + COUNT ( * ) col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT - - COUNT( * ) * - COALESCE ( 36, - COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5712
SELECT - - COUNT ( * ) * - COALESCE ( 36, - COUNT ( * ) )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5713
SELECT + + NULLIF ( + - 27, - CAST( NULL AS SIGNED ) - - 49 * 82 )
----
-27

skipif mysql # not compatible
query I rowsort label-5713
SELECT + + NULLIF ( + - 27, - CAST ( NULL AS INTEGER ) - - 49 * 82 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT - + ( + CAST( - 10 AS SIGNED ) ) + + 46 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5714
SELECT - + ( + CAST ( - 10 AS INTEGER ) ) + + 46 AS col2
----
56

query I rowsort
SELECT DISTINCT + - 79 * - 7 * + + NULLIF ( 99, - 20 )
----
54747

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5716
SELECT DISTINCT + 90 + + + 77 * + 75 DIV - COUNT( * )
----
-5685

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT + 90 + + + 77 * + 75 / - COUNT ( * )
----
-5685

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL + + NULLIF ( - 6, ( - 58 ) + + ( CASE + 84 WHEN - COUNT( 22 ) / 97 * + 28 THEN NULL WHEN + NULLIF ( 88, + 4 ) THEN 27 + - 11 * 12 + ( - 67 ) END ) + - 99 * - 38 * + + SUM( DISTINCT - - 42 ) ) * + 61 * - - 29 + - 20 + + 43
----
-10591

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + + NULLIF ( - 6, ( - 58 ) + + ( CASE + 84 WHEN - COUNT ( 22 ) / 97 * + 28 THEN NULL WHEN + NULLIF ( 88, + 4 ) THEN 27 + - 11 * 12 + ( - 67 ) END ) + - 99 * - 38 * + + SUM ( DISTINCT - - 42 ) ) * + 61 * - - 29 + - 20 + + 43
----
-10591

query I rowsort
SELECT - + 62 * - 44
----
2728

query I rowsort
SELECT ALL + + 13 + ( + + 95 ) + 42
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT DISTINCT + CAST( 30 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT + CAST ( 30 AS INTEGER ) AS col0
----
30

query I rowsort
SELECT ALL - + 0 * + - 72 AS col2
----
0

query I rowsort
SELECT ALL + + 37 + - 47
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT - 1 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5723
SELECT - 1 / + 69 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT - 71 * - CAST( NULL AS SIGNED ) * 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT - 71 * - CAST ( NULL AS INTEGER ) * 94 AS col2
----
NULL

query I rowsort
SELECT ALL - - 25 + - 58 AS col0
----
-33

query I rowsort
SELECT - + 10 - + 42 col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT DISTINCT - 80 + MIN( DISTINCT - - 16 )
----
-64

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - 80 + MIN ( DISTINCT - - 16 )
----
-64

query I rowsort
SELECT - 81 + - - 31 col2
----
-50

query I rowsort
SELECT + 87 - + - 92
----
179

query I rowsort
SELECT ALL ( - + 74 ) - 8
----
-82

query I rowsort
SELECT + 74 * 3 * + - 85
----
-18870

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5732
SELECT + COUNT( ALL 96 ) * 95 * 9 AS col1, 62 DIV - 9
----
855
-6

skipif mysql # not compatible
query II rowsort label-5732
SELECT + COUNT ( ALL 96 ) * 95 * 9 AS col1, 62 / - 9
----
855
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + COUNT( * ) * - MAX( + 81 ) * + 98 - - MAX( DISTINCT - - 88 )
----
-7850

skipif mysql # not compatible
query I rowsort label-5733
SELECT + COUNT ( * ) * - MAX ( + 81 ) * + 98 - - MAX ( DISTINCT - - 88 )
----
-7850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5734
SELECT ALL 56 DIV - MAX( ALL 6 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL 56 / - MAX ( ALL 6 ) AS col2
----
-9

query II rowsort
SELECT ( - 34 ) AS col2, 38
----
-34
38

query I rowsort
SELECT + - 32 * - - 50 AS col0
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT + + MAX( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-5737
SELECT + + MAX ( 88 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT COUNT( DISTINCT + CAST( 72 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5738
SELECT COUNT ( DISTINCT + CAST ( 72 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5739
SELECT - - 52 DIV + - 1 + - 42 * COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-5739
SELECT - - 52 / + - 1 + - 42 * COUNT ( * )
----
-94

query I rowsort
SELECT + 92 + 74 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT DISTINCT + - NULLIF ( - - 75, COUNT( ALL 40 ) ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT + - NULLIF ( - - 75, COUNT ( ALL 40 ) ) col2
----
-75

query I rowsort
SELECT ALL + - 77 * + 85
----
-6545

query I rowsort
SELECT ALL + + COALESCE ( + + 97, + NULLIF ( - - 13, - 82 ) + - 24 + + - 30 + 12, - 93 ) * - - 59 + + + ( + 99 ) + 31 col2
----
5853

onlyif mysql # DIV for integer division: 
query I rowsort label-5744
SELECT DISTINCT + 53 * + + 32 + 37 + 99 DIV + 6 AS col0
----
1749

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT + 53 * + + 32 + 37 + 99 / + 6 AS col0
----
1749

query I rowsort
SELECT - 56 * - 16 * + 7 - 55 * - + 74 AS col1
----
10342

query I rowsort
SELECT DISTINCT + + CASE 76 WHEN - + 6 + - 57 THEN + 94 ELSE NULL END
----
NULL

query I rowsort
SELECT + - 53 * 90 - - 24
----
-4746

query I rowsort
SELECT + - ( + + ( + 23 ) ) + - CASE - 37 WHEN 45 + + 45 THEN 80 * - 58 + - 11 * - 99 ELSE + 55 * + 59 END
----
-3268

query I rowsort
SELECT - + 25 + + + ( - - 52 ) * - - 63
----
3251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5750
SELECT - - CASE - 36 WHEN 88 THEN - - CAST( + + 62 AS SIGNED ) + - COUNT( * ) + - - 60 END + + COUNT( * ) + + ( - 34 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT - - CASE - 36 WHEN 88 THEN - - CAST ( + + 62 AS INTEGER ) + - COUNT ( * ) + - - 60 END + + COUNT ( * ) + + ( - 34 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5751
SELECT ALL 85 * - - COUNT( * ) + - ( - 5 ) AS col1, ( + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) ) * + 27 * - 70 - - 42 * - + 93 col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-5751
SELECT ALL 85 * - - COUNT ( * ) + - ( - 5 ) AS col1, ( + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) ) * + 27 * - 70 - - 42 * - + 93 col1
----
90
NULL

query I rowsort
SELECT - 22 + - + 80 - - 93 * ( + 26 ) col0
----
2316

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5753
SELECT ALL + 95 * + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL + 95 * + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 35 + - 91 AS col2
----
-126

query I rowsort
SELECT - 58 * CASE - 78 WHEN - 28 + + 93 THEN NULL WHEN 64 THEN - - 79 * 65 END * + 63 AS col0
----
NULL

query I rowsort
SELECT - 17 + + ( + + 79 ) AS col2
----
62

query I rowsort
SELECT ALL + 94 - + 46
----
48

query I rowsort
SELECT - 22 * 53
----
-1166

query I rowsort
SELECT DISTINCT - 49 * + 83 AS col2
----
-4067

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT 48 DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-5760
SELECT 48 / + - 93
----
0

query II rowsort
SELECT ALL 77 AS col0, 83
----
77
83

query I rowsort
SELECT 28 + - 69
----
-41

query I rowsort
SELECT ALL 15 * 37 AS col2
----
555

query I rowsort
SELECT NULLIF ( 28, - + 40 + + 68 * + 51 ) * 93
----
2604

query II rowsort
SELECT ALL 88 AS col2, - 44
----
88
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5766
SELECT ALL 40, - CAST( 45 AS SIGNED ) AS col1
----
40
-45

skipif mysql # not compatible
query II rowsort label-5766
SELECT ALL 40, - CAST ( 45 AS INTEGER ) AS col1
----
40
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT DISTINCT + ( + CAST( - + NULLIF ( + 70, - MAX( ALL + 20 ) ) AS SIGNED ) ) * + 94 AS col1
----
-6580

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + ( + CAST ( - + NULLIF ( + 70, - MAX ( ALL + 20 ) ) AS INTEGER ) ) * + 94 AS col1
----
-6580

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT COUNT( * ) * + - 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-5768
SELECT COUNT ( * ) * + - 82 AS col2
----
-82

query I rowsort
SELECT - 23 + 73 + - 26 + - + 25 - - + 89 * - + 14 * + ( 99 )
----
-123355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT ALL - MAX( 58 ) + 72 + - CAST( NULL AS SIGNED ) + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - MAX ( 58 ) + 72 + - CAST ( NULL AS INTEGER ) + - 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL - 10 + - - COUNT( * ) - + 7
----
-16

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL - 10 + - - COUNT ( * ) - + 7
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5772
SELECT + 12 + - COUNT( * ) + + + 56 * - CAST( NULL AS SIGNED ) + - 9 * - + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT + 12 + - COUNT ( * ) + + + 56 * - CAST ( NULL AS INTEGER ) + - 9 * - + 61 AS col2
----
NULL

query I rowsort
SELECT ( + 84 ) + 93
----
177

query I rowsort
SELECT DISTINCT 5 + - - 12 AS col0
----
17

query I rowsort
SELECT ALL 9 + COALESCE ( - 55, - 63 ) AS col0
----
-46

query I rowsort
SELECT DISTINCT - 58 * 31 * 98 * + - 73
----
12862892

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT ALL 76 - - 15 * - 91, - NULLIF ( - + COUNT( * ), - + 97 ) AS col2
----
-1289
1

skipif mysql # not compatible
query II rowsort label-5777
SELECT ALL 76 - - 15 * - 91, - NULLIF ( - + COUNT ( * ), - + 97 ) AS col2
----
-1289
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT + MAX( + 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5778
SELECT + MAX ( + 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT ALL + + 57 - - MAX( - 0 )
----
57

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL + + 57 - - MAX ( - 0 )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5780
SELECT ALL 41 * + 26 AS col0, 75 * + + MAX( 98 ) AS col1
----
1066
7350

skipif mysql # not compatible
query II rowsort label-5780
SELECT ALL 41 * + 26 AS col0, 75 * + + MAX ( 98 ) AS col1
----
1066
7350

onlyif mysql # DIV for integer division: 
query II rowsort label-5781
SELECT - 7, 35 * 73 * + 93 + 21 DIV + 99 AS col2
----
-7
237615

skipif mysql # not compatible
query II rowsort label-5781
SELECT - 7, 35 * 73 * + 93 + 21 / + 99 AS col2
----
-7
237615

query I rowsort
SELECT ALL 93 - - - 81
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT 3 * - + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5783
SELECT 3 * - + COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT 38 * + CASE + ( + - 80 ) WHEN + 45 THEN 90 WHEN + MIN( + 14 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT 38 * + CASE + ( + - 80 ) WHEN + 45 THEN 90 WHEN + MIN ( + 14 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT 51 * - 9 * - SUM( ALL + 10 ) AS col2
----
4590

skipif mysql # not compatible
query I rowsort label-5785
SELECT 51 * - 9 * - SUM ( ALL + 10 ) AS col2
----
4590

query I rowsort
SELECT 22 - - 91 * - - 25
----
2297

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT 28 * + - 21 * + - COUNT( * ) AS col1
----
588

skipif mysql # not compatible
query I rowsort label-5787
SELECT 28 * + - 21 * + - COUNT ( * ) AS col1
----
588

query I rowsort
SELECT 31 + - 54 AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5789
SELECT ALL 74 AS col1, 4 * - 37 + + 35 / + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-5789
SELECT ALL 74 AS col1, 4 * - 37 + + 35 / + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
74
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5790
SELECT DISTINCT 92 DIV - 81 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT 92 / - 81 AS col1
----
-1

query I rowsort
SELECT 41 * 16 * - 82
----
-53792

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL - 0 * - - 61 * + 47 * COUNT( * ) * + - 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL - 0 * - - 61 * + 47 * COUNT ( * ) * + - 9 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5793
SELECT ALL + CAST( + 92 AS SIGNED ) + + - 55 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL + CAST ( + 92 AS INTEGER ) + + - 55 AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5794
SELECT CAST( NULL AS SIGNED ) + - 82 + 43 - - + 38 - COUNT( * ) * + + 89 * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5794
SELECT CAST ( NULL AS INTEGER ) + - 82 + 43 - - + 38 - COUNT ( * ) * + + 89 * 71
----
NULL

query I rowsort
SELECT 57 - + 15 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT DISTINCT + 55 + COUNT( * ) + - 76 + - 70 + + 10 * - 57 AS col1
----
-660

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT + 55 + COUNT ( * ) + - 76 + - 70 + + 10 * - 57 AS col1
----
-660

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT 73 DIV - + 28 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5797
SELECT 73 / - + 28 AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5798
SELECT + 61 * + + 8 * + + 44 * COUNT( * ) + - 56 DIV - 95 * - 48
----
21472

skipif mysql # not compatible
query I rowsort label-5798
SELECT + 61 * + + 8 * + + 44 * COUNT ( * ) + - 56 / - 95 * - 48
----
21472

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT - 94 + + ( + + COUNT( * ) ) * + 75 + 0 + + MAX( DISTINCT 7 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT - 94 + + ( + + COUNT ( * ) ) * + 75 + 0 + + MAX ( DISTINCT 7 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT + 88 AS col2, COUNT( * ) * - + 58
----
88
-58

skipif mysql # not compatible
query II rowsort label-5800
SELECT + 88 AS col2, COUNT ( * ) * - + 58
----
88
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT DISTINCT - 16 * - SUM( - 61 ) * 78 * - + 57 * - 86 + + 52 + - 51 AS col2
----
-373179455

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT - 16 * - SUM ( - 61 ) * 78 * - + 57 * - 86 + + 52 + - 51 AS col2
----
-373179455

query I rowsort
SELECT ALL 22 * - 20 + 86
----
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT DISTINCT 43 * ( - + 27 ) + + COUNT( * ) + - - COALESCE ( - 62, - 79 )
----
-1222

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT 43 * ( - + 27 ) + + COUNT ( * ) + - - COALESCE ( - 62, - 79 )
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT - COALESCE ( + 64, - 46, - COUNT( * ) ) * 60 * + 98 * - 62 + + + 42 + + + 98 + - COUNT( * ) + + + ( 75 ) * + 94 * 31 + + 95 * 69 * + 85 * 54 + 53 * - 50 AS col2
----
53635329

skipif mysql # not compatible
query I rowsort label-5804
SELECT - COALESCE ( + 64, - 46, - COUNT ( * ) ) * 60 * + 98 * - 62 + + + 42 + + + 98 + - COUNT ( * ) + + + ( 75 ) * + 94 * 31 + + 95 * 69 * + 85 * 54 + 53 * - 50 AS col2
----
53635329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT ALL CAST( - - 20 AS SIGNED ) * 52 + - 97 + - 86 + - 47
----
810

skipif mysql # not compatible
query I rowsort label-5805
SELECT ALL CAST ( - - 20 AS INTEGER ) * 52 + - 97 + - 86 + - 47
----
810

query II rowsort
SELECT ALL - 22 AS col1, - 79 AS col1
----
-22
-79

query I rowsort
SELECT 12 * - 95
----
-1140

query II rowsort
SELECT + - 55 AS col0, 66 AS col1
----
-55
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT ALL - NULLIF ( + COUNT( * ), 92 ) - - + 6 col2
----
5

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - NULLIF ( + COUNT ( * ), 92 ) - - + 6 col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5810
SELECT ALL - 1 AS col0, NULLIF ( + 54, - 42 ) * - + COUNT( * ) * - 17 * + - COUNT( * ) + + 80
----
-1
-838

skipif mysql # not compatible
query II rowsort label-5810
SELECT ALL - 1 AS col0, NULLIF ( + 54, - 42 ) * - + COUNT ( * ) * - 17 * + - COUNT ( * ) + + 80
----
-1
-838

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT + COUNT( * ) + - MIN( - + 98 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5811
SELECT + COUNT ( * ) + - MIN ( - + 98 ) AS col2
----
99

query I rowsort
SELECT 57 * 1 - 9
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT MIN( ALL + ( 85 ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5813
SELECT MIN ( ALL + ( 85 ) ) AS col0
----
85

query I rowsort
SELECT ALL - NULLIF ( + 32, + - 47 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT - CASE - 56 WHEN - + 10 * 0 + 35 THEN - 61 + 68 ELSE + 99 * 97 + - + 39 * + - COUNT( * ) END + + 89
----
-9553

skipif mysql # not compatible
query I rowsort label-5815
SELECT - CASE - 56 WHEN - + 10 * 0 + 35 THEN - 61 + 68 ELSE + 99 * 97 + - + 39 * + - COUNT ( * ) END + + 89
----
-9553

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT - COUNT( * ) * 13 + - 74 + + CASE + 96 WHEN + 74 THEN - 29 END * 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5816
SELECT - COUNT ( * ) * 13 + - 74 + + CASE + 96 WHEN + 74 THEN - 29 END * 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5817
SELECT 97 * - 32 AS col0, - 86 - + COUNT( + 22 )
----
-3104
-87

skipif mysql # not compatible
query II rowsort label-5817
SELECT 97 * - 32 AS col0, - 86 - + COUNT ( + 22 )
----
-3104
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT COUNT( * ) + + 84 * + 82 * + 46 + + 98
----
316947

skipif mysql # not compatible
query I rowsort label-5818
SELECT COUNT ( * ) + + 84 * + 82 * + 46 + + 98
----
316947

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5819
SELECT 3 / + - ( - 46 ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT 3 / + - ( - 46 ) * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 64 + - 69 AS col2, - 78 col0
----
-5
-78

query I rowsort
SELECT 31 * - - ( + ( 66 ) ) + - + 27
----
2019

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT + COUNT( * ) * - NULLIF ( - + 96, - COUNT( * ) * 82 ) * - - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5822
SELECT + COUNT ( * ) * - NULLIF ( - + 96, - COUNT ( * ) * 82 ) * - - COUNT ( * ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT + 51 + + 50 * - - COUNT( - 48 ) - + COUNT( * ) + + 68 * + 7 + - + 48
----
528

skipif mysql # not compatible
query I rowsort label-5823
SELECT + 51 + + 50 * - - COUNT ( - 48 ) - + COUNT ( * ) + + 68 * + 7 + - + 48
----
528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5824
SELECT ALL MAX( DISTINCT + - 4 ) DIV + - 17 * - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5824
SELECT ALL MAX ( DISTINCT + - 4 ) / + - 17 * - 45 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5825
SELECT + 69 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT + 69 / + 89
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT + 45 * - ( NULLIF ( MIN( - 56 ), - + ( + ( 92 ) ) * + + 18 * ( + 58 ) + + + 23 + + + 15 + - - 29 * 34 ) )
----
2520

skipif mysql # not compatible
query I rowsort label-5826
SELECT + 45 * - ( NULLIF ( MIN ( - 56 ), - + ( + ( 92 ) ) * + + 18 * ( + 58 ) + + + 23 + + + 15 + - - 29 * 34 ) )
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5827
SELECT - CASE - SUM( 0 ) WHEN - 41 THEN + - 4 / 32 + COUNT( * ) - - 59 + - + 15 + - ( + 15 ) WHEN + - 30 * CAST( + 21 AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5827
SELECT - CASE - SUM ( 0 ) WHEN - 41 THEN + - 4 / 32 + COUNT ( * ) - - 59 + - + 15 + - ( + 15 ) WHEN + - 30 * CAST ( + 21 AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL + 59 + - 24 - - COUNT( * ) + + NULLIF ( - + 53, COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL + 59 + - 24 - - COUNT ( * ) + + NULLIF ( - + 53, COUNT ( * ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT + 9 * - COUNT( * ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-5829
SELECT + 9 * - COUNT ( * ) col1
----
-9

query I rowsort
SELECT ALL 80 + + + 96 AS col2
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5831
SELECT - MIN( + 68 ) + - COUNT( * ) * + 60 DIV - - 13, 99 + 61 col2
----
-72
160

skipif mysql # not compatible
query II rowsort label-5831
SELECT - MIN ( + 68 ) + - COUNT ( * ) * + 60 / - - 13, 99 + 61 col2
----
-72
160

onlyif mysql # aggregate syntax: 
query II rowsort label-5832
SELECT - NULLIF ( COUNT( * ), - + 90 * 60 + - 87 ) AS col0, - 38
----
-1
-38

skipif mysql # not compatible
query II rowsort label-5832
SELECT - NULLIF ( COUNT ( * ), - + 90 * 60 + - 87 ) AS col0, - 38
----
-1
-38

query I rowsort
SELECT + 79 + 15 * + 0 * 39
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT + ( + COUNT( * ) ) + + + CAST( - 77 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-5834
SELECT + ( + COUNT ( * ) ) + + + CAST ( - 77 AS INTEGER )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5835
SELECT - + CASE - - 42 WHEN + 52 * + 19 * - - 17 * - 94 THEN - COUNT( * ) WHEN 96 THEN + 31 / + MAX( + 6 ) + - + 68 END * - SUM( - 44 ) / COUNT( * ) + + - CAST( NULL AS SIGNED ) * - + 80 AS col0, 12 * 77 * ( - - 99 ) * + CAST( - - SUM( DISTINCT 23 ) AS SIGNED ) + - + 39 AS col1
----
NULL
2103909

skipif mysql # not compatible
query II rowsort label-5835
SELECT - + CASE - - 42 WHEN + 52 * + 19 * - - 17 * - 94 THEN - COUNT ( * ) WHEN 96 THEN + 31 / + MAX ( + 6 ) + - + 68 END * - SUM ( - 44 ) / COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - + 80 AS col0, 12 * 77 * ( - - 99 ) * + CAST ( - - SUM ( DISTINCT 23 ) AS INTEGER ) + - + 39 AS col1
----
NULL
2103909

query I rowsort
SELECT ALL + + 70 * + 62 * + - 1 AS col1
----
-4340

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT DISTINCT + - 20 * + - 50 DIV - 5 + + 27 AS col2
----
-173

skipif mysql # not compatible
query I rowsort label-5837
SELECT DISTINCT + - 20 * + - 50 / - 5 + + 27 AS col2
----
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-5838
SELECT ALL MIN( 74 ), 74 * 13 AS col0
----
74
962

skipif mysql # not compatible
query II rowsort label-5838
SELECT ALL MIN ( 74 ), 74 * 13 AS col0
----
74
962

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT - ( + + COALESCE ( + - 62, + - 58 + 12 * + + NULLIF ( + 49, ( - - 19 ) - - 5 ), COUNT( * ) ) ) + - + 16 * 22
----
-290

skipif mysql # not compatible
query I rowsort label-5839
SELECT - ( + + COALESCE ( + - 62, + - 58 + 12 * + + NULLIF ( + 49, ( - - 19 ) - - 5 ), COUNT ( * ) ) ) + - + 16 * 22
----
-290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5840
SELECT DISTINCT - - NULLIF ( - COUNT( * ), 72 * - 4 + - AVG ( DISTINCT - 50 ) * - - ( + 84 ) ) + 8 - + 20 * + 19 + - - 95 DIV - + 31 col0
----
-376

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT - - NULLIF ( - COUNT ( * ), 72 * - 4 + - AVG ( DISTINCT - 50 ) * - - ( + 84 ) ) + 8 - + 20 * + 19 + - - 95 / - + 31 col0
----
-376

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5841
SELECT + 62 DIV + + MAX( 6 ) + + + 49 + + - 12 AS col0, + 42 + - 83 * + 17 AS col1, - COALESCE ( - + 2, 37 DIV 13 * + + 7 + + 73 + - - NULLIF ( + 11, + 77 ) )
----
47
-1369
2

skipif mysql # not compatible
query III rowsort label-5841
SELECT + 62 / + + MAX ( 6 ) + + + 49 + + - 12 AS col0, + 42 + - 83 * + 17 AS col1, - COALESCE ( - + 2, 37 / 13 * + + 7 + + 73 + - - NULLIF ( + 11, + 77 ) )
----
47
-1369
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL - + COUNT( + - 81 ) * - - 18 * - 30
----
540

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL - + COUNT ( + - 81 ) * - - 18 * - 30
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT - - COUNT( * ) * + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5843
SELECT - - COUNT ( * ) * + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT - - 63 * + COUNT( * ) * SUM( ALL - 4 ) - - 82 * COALESCE ( + + 51, - 98, + 47 + - + CAST( + 28 AS SIGNED ) ) AS col0
----
3930

skipif mysql # not compatible
query I rowsort label-5844
SELECT - - 63 * + COUNT ( * ) * SUM ( ALL - 4 ) - - 82 * COALESCE ( + + 51, - 98, + 47 + - + CAST ( + 28 AS INTEGER ) ) AS col0
----
3930

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL - SUM( ALL - - 91 ) * CASE - CASE 94 WHEN 73 THEN NULL WHEN 91 + + 69 + - - 11 * + COUNT( * ) * - 40 THEN - COUNT( * ) ELSE - 32 END WHEN - 14 THEN NULL WHEN - + MAX( DISTINCT - 43 ) - 9 THEN + + 81 * COUNT( - + 50 ) - 15 ELSE NULL END - - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - SUM ( ALL - - 91 ) * CASE - CASE 94 WHEN 73 THEN NULL WHEN 91 + + 69 + - - 11 * + COUNT ( * ) * - 40 THEN - COUNT ( * ) ELSE - 32 END WHEN - 14 THEN NULL WHEN - + MAX ( DISTINCT - 43 ) - 9 THEN + + 81 * COUNT ( - + 50 ) - 15 ELSE NULL END - - 3 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT DISTINCT + - CAST( + 53 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + - CAST ( + 53 AS INTEGER ) AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5847
SELECT ALL + COALESCE ( NULLIF ( - CAST( NULL AS SIGNED ), + SUM( - CAST( NULL AS DECIMAL ) ) ), + 29 * + 91 + - 92 + SUM( ALL - 57 ) + - COUNT( * ) * + COUNT( * ) DIV + 41 ) * - 38 * - 52 - - + 31 + 58 + - - COUNT( * ) * - + 53
----
4920276

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + COALESCE ( NULLIF ( - CAST ( NULL AS INTEGER ), + SUM ( - CAST ( NULL AS REAL ) ) ), + 29 * + 91 + - 92 + SUM ( ALL - 57 ) + - COUNT ( * ) * + COUNT ( * ) / + 41 ) * - 38 * - 52 - - + 31 + 58 + - - COUNT ( * ) * - + 53
----
4920276

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT - COUNT( * ) + 69 * + + 94
----
6485

skipif mysql # not compatible
query I rowsort label-5848
SELECT - COUNT ( * ) + 69 * + + 94
----
6485

query I rowsort
SELECT - 15 * ( 28 ) AS col1
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5850
SELECT + - NULLIF ( + 16, - 37 ) AS col0, + CASE - + COALESCE ( - 28, - 30, NULLIF ( 81, - + CASE - - 14 WHEN - 17 / + + 72 + + - 59 THEN NULL WHEN + COUNT( * ) THEN 90 * - 49 END * 12 * 6 ) ) WHEN + AVG ( - CAST( NULLIF ( - ( + 48 ), 26 ) AS SIGNED ) ) THEN - 79 WHEN + - 36 * - 52 THEN 26 WHEN - - 16 THEN NULL ELSE NULL END
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-5850
SELECT + - NULLIF ( + 16, - 37 ) AS col0, + CASE - + COALESCE ( - 28, - 30, NULLIF ( 81, - + CASE - - 14 WHEN - 17 / + + 72 + + - 59 THEN NULL WHEN + COUNT ( * ) THEN 90 * - 49 END * 12 * 6 ) ) WHEN + AVG ( - CAST ( NULLIF ( - ( + 48 ), 26 ) AS INTEGER ) ) THEN - 79 WHEN + - 36 * - 52 THEN 26 WHEN - - 16 THEN NULL ELSE NULL END
----
-16
NULL

query II rowsort
SELECT ( - + 69 ) AS col1, 56 * ( 91 )
----
-69
5096

query I rowsort
SELECT - 58 * - 59 AS col2
----
3422

query I rowsort
SELECT + 64 * + 26
----
1664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5854
SELECT COALESCE ( + + COUNT( * ), - CAST( CAST( - - COUNT( - 12 ) AS SIGNED ) AS SIGNED ), + - COUNT( * ) + - 30 DIV + - MIN( 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5854
SELECT COALESCE ( + + COUNT ( * ), - CAST ( CAST ( - - COUNT ( - 12 ) AS INTEGER ) AS INTEGER ), + - COUNT ( * ) + - 30 / + - MIN ( 90 ) )
----
1

query II rowsort
SELECT ALL + 87, 25 col2
----
87
25

query I rowsort
SELECT DISTINCT + 45 * - 75 AS col1
----
-3375

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + MAX( + + 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5857
SELECT + MAX ( + + 72 ) AS col2
----
72

query I rowsort
SELECT ALL - 20 * 31 + + 76 - 72 + - 93 + + 27 - 81 * + - 39 * - 90
----
-284992

query II rowsort
SELECT DISTINCT 62 * - - 72 + 9, + 22 AS col0
----
4473
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT - MAX( + 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5860
SELECT - MAX ( + 38 ) AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT - 68 + 38 - - CASE - 16 WHEN + MAX( DISTINCT + + 0 ) * - - COALESCE ( - - COALESCE ( - 19, - + CAST( + + 73 AS SIGNED ) ), + + ( - 2 ) ) + 72 + 77 + + MAX( DISTINCT - 17 ) / COUNT( * ) - - COUNT( * ) THEN NULL WHEN COALESCE ( - + 12, + - 96 - + - ( - COALESCE ( - - 21, + 75, - + 7 ) ) ) THEN 94 + + CAST( - COUNT( * ) AS SIGNED ) ELSE - + 45 / 21 * - - CASE CASE + COUNT( * ) WHEN 51 THEN + COUNT( ALL 44 ) * COUNT( * ) + + - 49 ELSE NULL END WHEN 85 + - ( 45 ) + + 4 THEN - 4 + - - COUNT( * ) * COUNT( * ) END * - + COUNT( * ) * + 94 + ( + COUNT( * ) ) - 16 END + 91 * - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT - 68 + 38 - - CASE - 16 WHEN + MAX ( DISTINCT + + 0 ) * - - COALESCE ( - - COALESCE ( - 19, - + CAST ( + + 73 AS INTEGER ) ), + + ( - 2 ) ) + 72 + 77 + + MAX ( DISTINCT - 17 ) / COUNT ( * ) - - COUNT ( * ) THEN NULL WHEN COALESCE ( - + 12, + - 96 - + - ( - COALESCE ( - - 21, + 75, - + 7 ) ) ) THEN 94 + + CAST ( - COUNT ( * ) AS INTEGER ) ELSE - + 45 / 21 * - - CASE CASE + COUNT ( * ) WHEN 51 THEN + COUNT ( ALL 44 ) * COUNT ( * ) + + - 49 ELSE NULL END WHEN 85 + - ( 45 ) + + 4 THEN - 4 + - - COUNT ( * ) * COUNT ( * ) END * - + COUNT ( * ) * + 94 + ( + COUNT ( * ) ) - 16 END + 91 * - 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5862
SELECT - ( CAST( - ( + - 83 ) AS SIGNED ) )
----
-83

skipif mysql # not compatible
query I rowsort label-5862
SELECT - ( CAST ( - ( + - 83 ) AS INTEGER ) )
----
-83

query I rowsort
SELECT DISTINCT 97 + + + 43
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL 32 + + + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL 32 + + + COUNT ( * ) AS col2
----
33

query I rowsort
SELECT + 38 + ( + + 50 ) + 94 * + 52 * + 69 * 87 + - 52
----
29342700

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT DISTINCT + 82 DIV + 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + 82 / + 37 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT DISTINCT 85 * + + 58 * - + MAX( - + 73 ) * + - 43 + - ( + ( ( - 1 ) ) )
----
-15475269

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT 85 * + + 58 * - + MAX ( - + 73 ) * + - 43 + - ( + ( ( - 1 ) ) )
----
-15475269

query I rowsort
SELECT + 97 - - 57 * - 91
----
-5090

query I rowsort
SELECT + - 73 * + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5870
SELECT - ( - CAST( - MIN( ALL 83 ) AS SIGNED ) )
----
-83

skipif mysql # not compatible
query I rowsort label-5870
SELECT - ( - CAST ( - MIN ( ALL 83 ) AS INTEGER ) )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT - - CAST( 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-5871
SELECT - - CAST ( 6 AS INTEGER )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5872
SELECT + - ( + + 76 ) + + 39 + - + 2 col0, + CASE 21 WHEN + 86 THEN 46 * MIN( ALL + CAST( NULL AS SIGNED ) ) * + 6 + - COUNT( * ) - ( + - MIN( + + 73 ) ) ELSE - 42 DIV 27 END + - + 43 * - - ( - + 63 ) AS col1
----
-39
2708

skipif mysql # not compatible
query II rowsort label-5872
SELECT + - ( + + 76 ) + + 39 + - + 2 col0, + CASE 21 WHEN + 86 THEN 46 * MIN ( ALL + CAST ( NULL AS INTEGER ) ) * + 6 + - COUNT ( * ) - ( + - MIN ( + + 73 ) ) ELSE - 42 / 27 END + - + 43 * - - ( - + 63 ) AS col1
----
-39
2708

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT + MAX( DISTINCT + 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT + MAX ( DISTINCT + 78 ) AS col0
----
78

query I rowsort
SELECT ALL + - NULLIF ( + + 4, + 32 * - + 18 )
----
-4

query II rowsort
SELECT + 7 AS col1, 59
----
7
59

query II rowsort
SELECT ALL + 16 AS col0, + 82 AS col0
----
16
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5877
SELECT + 51 * + + MIN( - 75 ) * + 65 + + SUM( DISTINCT + - 59 ) * - - CAST( - 27 AS SIGNED ) AS col0, 63 AS col0
----
-247032
63

skipif mysql # not compatible
query II rowsort label-5877
SELECT + 51 * + + MIN ( - 75 ) * + 65 + + SUM ( DISTINCT + - 59 ) * - - CAST ( - 27 AS INTEGER ) AS col0, 63 AS col0
----
-247032
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5878
SELECT 71 * + + 49 + - - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * 99 + + + 91 + COUNT( * ) - + - ( + 12 ) * + - COUNT( * ) * - 44 + - 70 + + - 38
----
3480
NULL

skipif mysql # not compatible
query II rowsort label-5878
SELECT 71 * + + 49 + - - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * 99 + + + 91 + COUNT ( * ) - + - ( + 12 ) * + - COUNT ( * ) * - 44 + - 70 + + - 38
----
3480
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5879
SELECT + COUNT( * ) * - 4 + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-5879
SELECT + COUNT ( * ) * - 4 + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT CAST( NULL AS SIGNED ) * + 23 / 16 / 19 * 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT CAST ( NULL AS INTEGER ) * + 23 / 16 / 19 * 67 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5881
SELECT ALL - 85, - COALESCE ( - - ( 0 ), - 56 + 79 DIV CAST( NULL AS SIGNED ) * - 23, + 33 ) * + - COUNT( * ) * + + 94 * 22 AS col2
----
-85
0

skipif mysql # not compatible
query II rowsort label-5881
SELECT ALL - 85, - COALESCE ( - - ( 0 ), - 56 + 79 / CAST ( NULL AS INTEGER ) * - 23, + 33 ) * + - COUNT ( * ) * + + 94 * 22 AS col2
----
-85
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT - ( - ( - 83 ) ) DIV + 1 + + 63 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5882
SELECT - ( - ( - 83 ) ) / + 1 + + 63 AS col1
----
-20

query II rowsort
SELECT 51 * + 80 * 49 * 29 AS col1, 80 * - - 96
----
5797680
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT 22 + 28 + - - 66 * + - CASE 99 WHEN + + COUNT( * ) THEN NULL WHEN + - 94 * - 72 - + 83 + - 43 - + - 56 * - 26 * - + ( + 21 ) + - COUNT( * ) THEN NULL WHEN 60 THEN NULL ELSE 53 END * - 1 * + 13 * NULLIF ( + + COUNT( * ), + + 76 ) + - 50 + + 91 + 9 col1
----
45574

skipif mysql # not compatible
query I rowsort label-5884
SELECT 22 + 28 + - - 66 * + - CASE 99 WHEN + + COUNT ( * ) THEN NULL WHEN + - 94 * - 72 - + 83 + - 43 - + - 56 * - 26 * - + ( + 21 ) + - COUNT ( * ) THEN NULL WHEN 60 THEN NULL ELSE 53 END * - 1 * + 13 * NULLIF ( + + COUNT ( * ), + + 76 ) + - 50 + + 91 + 9 col1
----
45574

onlyif mysql # aggregate syntax: 
query III rowsort label-5885
SELECT ALL - SUM( 66 ) AS col1, - 49 + - 49 + + SUM( 57 ) * 56, - 66 + + 26 AS col0
----
-66
3094
-40

skipif mysql # not compatible
query III rowsort label-5885
SELECT ALL - SUM ( 66 ) AS col1, - 49 + - 49 + + SUM ( 57 ) * 56, - 66 + + 26 AS col0
----
-66
3094
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5886
SELECT DISTINCT MIN( ALL - 71 ) + - SUM( + + ( + - 69 ) ) + + 57 * CAST( NULL AS SIGNED ) * - + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT MIN ( ALL - 71 ) + - SUM ( + + ( + - 69 ) ) + + 57 * CAST ( NULL AS INTEGER ) * - + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT ALL + 40 + COUNT( * ) + + COALESCE ( + 45, + 45 - 81, + 36 )
----
86

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL + 40 + COUNT ( * ) + + COALESCE ( + 45, + 45 - 81, + 36 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT DISTINCT - CASE - COUNT( * ) WHEN + 22 / - + 45 * + - 4 + + - 43 - 1 THEN - - 86 END + + NULLIF ( + 19, + 54 ) * + + 35 + - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT - CASE - COUNT ( * ) WHEN + 22 / - + 45 * + - 4 + + - 43 - 1 THEN - - 86 END + + NULLIF ( + 19, + 54 ) * + + 35 + - - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT 57 + - - CASE 10 WHEN 51 * - ( NULLIF ( 61, MIN( DISTINCT + - ( - 14 ) ) ) ) THEN NULL ELSE - + 66 END AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5889
SELECT 57 + - - CASE 10 WHEN 51 * - ( NULLIF ( 61, MIN ( DISTINCT + - ( - 14 ) ) ) ) THEN NULL ELSE - + 66 END AS col0
----
-9

query I rowsort
SELECT ALL - CASE 78 WHEN 5 THEN + 42 + - 0 + + + 81 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT SUM( + + 55 ) + - + 67 + - 54 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5891
SELECT SUM ( + + 55 ) + - + 67 + - 54 AS col1
----
-66

query I rowsort
SELECT DISTINCT + 96 * - 91
----
-8736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5893
SELECT COUNT( * ) * - 17 + 60 * + NULLIF ( - NULLIF ( + 16, CASE - 58 WHEN + - 50 THEN - 72 + + + 71 + - + 57 ELSE 89 * + CAST( + 73 AS SIGNED ) + - 24 / + - 5 * + 92 END ), 41 ) + 37
----
-940

skipif mysql # not compatible
query I rowsort label-5893
SELECT COUNT ( * ) * - 17 + 60 * + NULLIF ( - NULLIF ( + 16, CASE - 58 WHEN + - 50 THEN - 72 + + + 71 + - + 57 ELSE 89 * + CAST ( + 73 AS INTEGER ) + - 24 / + - 5 * + 92 END ), 41 ) + 37
----
-940

query I rowsort
SELECT 56 + - 2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT DISTINCT + ( COUNT( * ) ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT + ( COUNT ( * ) ) * - 28
----
-28

query I rowsort
SELECT ALL - 42 + - + 33 + 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT DISTINCT - 24 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT - 24 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 53 + + 88 - - + 51 * - + 54 - ( 98 ) + + 16 AS col1
----
-2695

query I rowsort
SELECT 38 + - CASE WHEN NULL IS NOT NULL THEN - ( + - 94 ) ELSE - 37 END * + 35
----
1333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5900
SELECT + CASE + 42 WHEN + 0 + + 62 + + 67 * + CAST( NULL AS SIGNED ) THEN NULL WHEN + 22 - 27 * - COUNT( * ) * + CAST( NULL AS SIGNED ) THEN NULL ELSE MIN( ALL + 18 ) END + - 71 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-5900
SELECT + CASE + 42 WHEN + 0 + + 62 + + 67 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 22 - 27 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) THEN NULL ELSE MIN ( ALL + 18 ) END + - 71 AS col0
----
-53

query II rowsort
SELECT 71 * + 9, - 35 AS col0
----
639
-35

query I rowsort
SELECT - 90 * + + 20
----
-1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5903
SELECT ALL 60 DIV + + 91 * COUNT( * ) * 78
----
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL 60 / + + 91 * COUNT ( * ) * 78
----
0

query I rowsort
SELECT 18 * + 69
----
1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT DISTINCT - + 45 DIV + ( - + COUNT( * ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT - + 45 / + ( - + COUNT ( * ) ) AS col1
----
45

query I rowsort
SELECT + 57 + - 67 AS col2
----
-10

query I rowsort
SELECT ALL + 50 * - - ( - 79 ) AS col0
----
-3950

query I rowsort
SELECT DISTINCT 49 * - NULLIF ( + 15, 4 - - 46 * + - CASE + 69 WHEN - 26 * - - NULLIF ( + 26, + 92 * + + 52 ) + - + 79 THEN + - 99 / + 94 + - + AVG ( - ( + 99 ) ) ELSE NULL END )
----
-735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT COALESCE ( + COALESCE ( + 81, ( + - 69 ) ), + CASE 52 WHEN + + 25 THEN NULL WHEN + + NULLIF ( 27, 39 + - 49 ) THEN + ( ( + ( 3 ) ) ) END + - MAX( 46 ), 8 - - 27 ) + - SUM( + CAST( NULL AS SIGNED ) ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT COALESCE ( + COALESCE ( + 81, ( + - 69 ) ), + CASE 52 WHEN + + 25 THEN NULL WHEN + + NULLIF ( 27, 39 + - 49 ) THEN + ( ( + ( 3 ) ) ) END + - MAX ( 46 ), 8 - - 27 ) + - SUM ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT - - 45 / + + CAST( NULL AS SIGNED ) * + 6 + NULLIF ( 18, 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT - - 45 / + + CAST ( NULL AS INTEGER ) * + 6 + NULLIF ( 18, 56 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5911
SELECT ALL NULLIF ( COUNT( * ), - - 36 ) * - 57 + + COUNT( * ) - - + 70 * 50 DIV 82
----
-14

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL NULLIF ( COUNT ( * ), - - 36 ) * - 57 + + COUNT ( * ) - - + 70 * 50 / 82
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT DISTINCT - 87 + + + 38 DIV - + 41
----
-87

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT - 87 + + + 38 / - + 41
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT DISTINCT + 27 + MAX( + 26 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT + 27 + MAX ( + 26 ) AS col2
----
53

query I rowsort
SELECT ALL - 72 + - + 4 + - + 51 * + 32 * - 41
----
66836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT 47 * 32 * - COALESCE ( - 85, - - 97 * - 5 * - ( + - ( + 6 ) ) DIV - + 67, - - 17 * 56 + 71 * - 49, - COUNT( * ) )
----
127840

skipif mysql # not compatible
query I rowsort label-5915
SELECT 47 * 32 * - COALESCE ( - 85, - - 97 * - 5 * - ( + - ( + 6 ) ) / - + 67, - - 17 * 56 + 71 * - 49, - COUNT ( * ) )
----
127840

query I rowsort
SELECT ALL 63 * + - 2
----
-126

query I rowsort
SELECT 37 - 44 + + - 89 * + - 35 + + + 42 AS col0
----
3150

query I rowsort
SELECT ALL + 9 + 96 AS col0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT ALL 27 * - 48 * + 4 * + - CAST( NULL AS SIGNED ) / - 16 * - 17 * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL 27 * - 48 * + 4 * + - CAST ( NULL AS INTEGER ) / - 16 * - 17 * 14 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - ( - - 56 ) ) * + 82 col2
----
-4592

query I rowsort
SELECT ALL 21 - 8
----
13

query II rowsort
SELECT 16, + 63 AS col0
----
16
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ALL - 10 - MIN( - 24 ) - + 53
----
-39

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL - 10 - MIN ( - 24 ) - + 53
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + MIN( DISTINCT 15 ) * + 96 + + + 12
----
1452

skipif mysql # not compatible
query I rowsort label-5924
SELECT + MIN ( DISTINCT 15 ) * + 96 + + + 12
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT 91 * - ( - MAX( DISTINCT 23 ) )
----
2093

skipif mysql # not compatible
query I rowsort label-5925
SELECT 91 * - ( - MAX ( DISTINCT 23 ) )
----
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT 66 + + 13 + - COUNT( * ) * - - 83 * 62 + + - COUNT( * ) * 49 AS col2
----
-5116

skipif mysql # not compatible
query I rowsort label-5926
SELECT 66 + + 13 + - COUNT ( * ) * - - 83 * 62 + + - COUNT ( * ) * 49 AS col2
----
-5116

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL - 47 * COUNT( * ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - 47 * COUNT ( * ) AS col2
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5928
SELECT 81 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT 81 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 66 * - ( - 24 ) AS col1
----
-1584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5930
SELECT DISTINCT COALESCE ( - 86, + COUNT( * ) DIV + 63, 1 DIV 43 ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT COALESCE ( - 86, + COUNT ( * ) / + 63, 1 / 43 ) col0
----
-86

query I rowsort
SELECT 0 + ( 24 )
----
24

query I rowsort
SELECT ALL - 48 * + 1 col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5933
SELECT DISTINCT MAX( DISTINCT COALESCE ( 25, - 72 + 80 * + 2, - CAST( 78 AS SIGNED ) - 6 ) ) col1
----
25

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT MAX ( DISTINCT COALESCE ( 25, - 72 + 80 * + 2, - CAST ( 78 AS INTEGER ) - 6 ) ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL MIN( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL MIN ( 33 )
----
33

query I rowsort
SELECT 90 + - 19 * + 95
----
-1715

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT 26 - COUNT( * ) * - 26 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5936
SELECT 26 - COUNT ( * ) * - 26 AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5937
SELECT - 83 DIV - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 83 / - COUNT ( * )
----
83

query I rowsort
SELECT + 89 * 32 AS col2
----
2848

query I rowsort
SELECT ALL - ( 2 ) + 8 AS col0
----
6

query I rowsort
SELECT DISTINCT + 58 + 37
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5941
SELECT ALL - COUNT( * ) + + 68 DIV - 10
----
-7

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - COUNT ( * ) + + 68 / - 10
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT + COUNT( * ) * + 70 col2
----
70

skipif mysql # not compatible
query I rowsort label-5942
SELECT + COUNT ( * ) * + 70 col2
----
70

query I rowsort
SELECT ALL + CASE 52 WHEN + 66 THEN 11 * 58 END * - 91 + + 78 col1
----
NULL

query I rowsort
SELECT ALL 7 * + 91 + 81 col2
----
718

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5945
SELECT 4 DIV 93 - COUNT( * ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-5945
SELECT 4 / 93 - COUNT ( * ) / - 96
----
0

query I rowsort
SELECT ALL 87 * 94 AS col2
----
8178

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT 77 * 37 + COUNT( * ) AS col2
----
2850

skipif mysql # not compatible
query I rowsort label-5947
SELECT 77 * 37 + COUNT ( * ) AS col2
----
2850

query I rowsort
SELECT + 99 * 81
----
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT + CASE WHEN 82 NOT BETWEEN ( COUNT( * ) ) AND NULL THEN 30 WHEN NOT 76 * 59 + 54 IS NULL THEN NULL WHEN NOT 26 IN ( 60 ) THEN NULL ELSE NULL END * - 25 + 54 * 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT + CASE WHEN 82 NOT BETWEEN ( COUNT ( * ) ) AND NULL THEN 30 WHEN NOT 76 * 59 + 54 IS NULL THEN NULL WHEN NOT 26 IN ( 60 ) THEN NULL ELSE NULL END * - 25 + 54 * 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL COUNT( * ) * ( - 11 * + 36 ) + + 38 * SUM( DISTINCT + 77 * 58 )
----
169312

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL COUNT ( * ) * ( - 11 * + 36 ) + + 38 * SUM ( DISTINCT + 77 * 58 )
----
169312

query I rowsort
SELECT + COALESCE ( 53, 50 + - 52 )
----
53

query I rowsort
SELECT ALL + ( NULLIF ( 91, - 52 + 74 / 47 ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT + COUNT( * ) + + 45 * + SUM( + 49 )
----
2206

skipif mysql # not compatible
query I rowsort label-5953
SELECT + COUNT ( * ) + + 45 * + SUM ( + 49 )
----
2206

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT ALL - COUNT( * ) * + 74 - 87 AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL - COUNT ( * ) * + 74 - 87 AS col2
----
-161

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT ALL 9 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL 9 / + 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT 14 * + 12 + NULLIF ( - CASE 7 WHEN - ( + 96 ) THEN - 81 + 3 END + + COUNT( * ) * - COUNT( * ), - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5956
SELECT 14 * + 12 + NULLIF ( - CASE 7 WHEN - ( + 96 ) THEN - 81 + 3 END + + COUNT ( * ) * - COUNT ( * ), - 29 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5957
SELECT DISTINCT 55 * 48 - - CASE 6 WHEN - CAST( + 69 AS SIGNED ) - COUNT( * ) * + 88 THEN + CAST( - CAST( 89 AS SIGNED ) AS SIGNED ) WHEN + 76 + 68 THEN + 27 DIV + 79 ELSE 29 END
----
2669

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT 55 * 48 - - CASE 6 WHEN - CAST ( + 69 AS INTEGER ) - COUNT ( * ) * + 88 THEN + CAST ( - CAST ( 89 AS INTEGER ) AS INTEGER ) WHEN + 76 + 68 THEN + 27 / + 79 ELSE 29 END
----
2669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5958
SELECT + CASE + 82 WHEN 34 THEN COALESCE ( + CASE ( - 56 ) WHEN - 7 THEN 15 * SUM( - 39 ) WHEN - 35 DIV - 36 THEN 57 * + ( 98 ) + CAST( 39 AS SIGNED ) * - 11 WHEN 93 * 17 THEN NULL ELSE NULL END, - 72 + - COUNT( * ) DIV - 31, 54 ) WHEN 40 THEN + 77 ELSE 13 END * 74 + 17 AS col1
----
979

skipif mysql # not compatible
query I rowsort label-5958
SELECT + CASE + 82 WHEN 34 THEN COALESCE ( + CASE ( - 56 ) WHEN - 7 THEN 15 * SUM ( - 39 ) WHEN - 35 / - 36 THEN 57 * + ( 98 ) + CAST ( 39 AS INTEGER ) * - 11 WHEN 93 * 17 THEN NULL ELSE NULL END, - 72 + - COUNT ( * ) / - 31, 54 ) WHEN 40 THEN + 77 ELSE 13 END * 74 + 17 AS col1
----
979

query I rowsort
SELECT ALL + NULLIF ( 25, - ( 55 ) ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT MAX( DISTINCT - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5960
SELECT MAX ( DISTINCT - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT + SUM( 29 ) + 64
----
93

skipif mysql # not compatible
query I rowsort label-5961
SELECT + SUM ( 29 ) + 64
----
93

query I rowsort
SELECT + 97 * 63 AS col0
----
6111

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT + CASE - 11 WHEN COUNT( * ) * 25 THEN 28 + + 39 ELSE 30 * 45 END col0
----
1350

skipif mysql # not compatible
query I rowsort label-5963
SELECT + CASE - 11 WHEN COUNT ( * ) * 25 THEN 28 + + 39 ELSE 30 * 45 END col0
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT - 61 + - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5964
SELECT - 61 + - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT 52 * 63 + + 35 * COUNT( * )
----
3311

skipif mysql # not compatible
query I rowsort label-5965
SELECT 52 * 63 + + 35 * COUNT ( * )
----
3311

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT - COALESCE ( 39, ( 60 ) * 3 + - 16 DIV 69, - 61 DIV + AVG ( DISTINCT 18 ) + 59 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5966
SELECT - COALESCE ( 39, ( 60 ) * 3 + - 16 / 69, - 61 / + AVG ( DISTINCT 18 ) + 59 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL - NULLIF ( 33, COUNT( * ) * - ( - 54 * 50 ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - NULLIF ( 33, COUNT ( * ) * - ( - 54 * 50 ) ) AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5968
SELECT ALL - COUNT( * ) * SUM( DISTINCT 39 + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL - COUNT ( * ) * SUM ( DISTINCT 39 + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 25 * - 23
----
-575

query I rowsort
SELECT - - 36 * + 30
----
1080

onlyif mysql # DIV for integer division: 
query I rowsort label-5971
SELECT - ( 71 ) DIV - 36
----
1

skipif mysql # not compatible
query I rowsort label-5971
SELECT - ( 71 ) / - 36
----
1

query I rowsort
SELECT + 91 * 45 col2
----
4095

query I rowsort
SELECT DISTINCT - + 15 + 89
----
74

query I rowsort
SELECT DISTINCT + 47 + 31 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT SUM( CASE 6 WHEN 69 THEN 65 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT SUM ( CASE 6 WHEN 69 THEN 65 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - 56 * 10 AS col0
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT 6 + COUNT( * ) * - 68 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT 6 + COUNT ( * ) * - 68 AS col1
----
-62

query I rowsort
SELECT DISTINCT 11 + - 37
----
-26

query I rowsort
SELECT ALL - - 73 * 36 AS col2
----
2628

query I rowsort
SELECT DISTINCT + + ( NULLIF ( 38, NULLIF ( 71, 5 ) ) ) + - 47 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT DISTINCT - 6 + + COUNT( * ) * 31
----
25

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT - 6 + + COUNT ( * ) * 31
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT - 95 * CASE - 87 * - 86 - - CASE - 7 WHEN COUNT( * ) * 14 THEN NULLIF ( 55, NULLIF ( + 53, COUNT( * ) * + 54 + COUNT( * ) ) ) ELSE ( 48 ) END WHEN 95 * + 35 THEN - 98 + 3 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT - 95 * CASE - 87 * - 86 - - CASE - 7 WHEN COUNT ( * ) * 14 THEN NULLIF ( 55, NULLIF ( + 53, COUNT ( * ) * + 54 + COUNT ( * ) ) ) ELSE ( 48 ) END WHEN 95 * + 35 THEN - 98 + 3 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT - 77 + CAST( - 66 AS SIGNED )
----
-143

skipif mysql # not compatible
query I rowsort label-5983
SELECT - 77 + CAST ( - 66 AS INTEGER )
----
-143

query I rowsort
SELECT - 82 * + 90 col0
----
-7380

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT ( - NULLIF ( - 47, ( + ( + 14 ) ) + MAX( + 38 ) ) )
----
47

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT ( - NULLIF ( - 47, ( + ( + 14 ) ) + MAX ( + 38 ) ) )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5986
SELECT COALESCE ( + 61, + 93 * COALESCE ( - COUNT( * ), + 89, + 53 + NULLIF ( COUNT( * ), 58 ) ) + + 34 ) DIV 59 + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-5986
SELECT COALESCE ( + 61, + 93 * COALESCE ( - COUNT ( * ), + 89, + 53 + NULLIF ( COUNT ( * ), 58 ) ) + + 34 ) / 59 + - 62
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5987
SELECT ALL 71 DIV - + COUNT( * ) - 8 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL 71 / - + COUNT ( * ) - 8 AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5988
SELECT ALL 40 DIV + NULLIF ( + 56, - 50 * 75 ) - - ( - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5988
SELECT ALL 40 / + NULLIF ( + 56, - 50 * 75 ) - - ( - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - 46 * + COUNT( * ) * + 58 col0
----
-2668

skipif mysql # not compatible
query I rowsort label-5989
SELECT - 46 * + COUNT ( * ) * + 58 col0
----
-2668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT CAST( + 1 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5990
SELECT CAST ( + 1 AS INTEGER ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT - 63 DIV + ( 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-5991
SELECT - 63 / + ( 63 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT DISTINCT + CASE WHEN NULL < ( - CAST( 63 AS SIGNED ) ) THEN - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT + CASE WHEN NULL < ( - CAST ( 63 AS INTEGER ) ) THEN - 10 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5993
SELECT ALL - 1 DIV - 86 - 99
----
-99

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - 1 / - 86 - 99
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5994
SELECT ALL + 55 DIV - + 6 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + 55 / - + 6 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT - COALESCE ( + CAST( 78 AS SIGNED ), 0 * 86 + - COUNT( * ) ) * + 33
----
-2574

skipif mysql # not compatible
query I rowsort label-5995
SELECT - COALESCE ( + CAST ( 78 AS INTEGER ), 0 * 86 + - COUNT ( * ) ) * + 33
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT ALL 27 * COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL 27 * COUNT ( * ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5997
SELECT + COALESCE ( + + COUNT( * ), + CAST( NULL AS SIGNED ) ) DIV - 34 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT + COALESCE ( + + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) / - 34 AS col1
----
0

query I rowsort
SELECT DISTINCT + 37 * + 79
----
2923

query I rowsort
SELECT - 73 - + 82 + + 6 AS col2
----
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6000
SELECT + 79 * + CASE 65 WHEN 82 + - 27 * + MIN( DISTINCT + 41 ) THEN NULL ELSE - COUNT( * ) END * - COALESCE ( + 40, 47 - - 41, 6 DIV ( 25 ) ) AS col0
----
3160

skipif mysql # not compatible
query I rowsort label-6000
SELECT + 79 * + CASE 65 WHEN 82 + - 27 * + MIN ( DISTINCT + 41 ) THEN NULL ELSE - COUNT ( * ) END * - COALESCE ( + 40, 47 - - 41, 6 / ( 25 ) ) AS col0
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT + CASE - 12 WHEN + 15 + COUNT( * ) * - 60 THEN COALESCE ( - 85, 34 * + ( - 60 ) ) * 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6001
SELECT + CASE - 12 WHEN + 15 + COUNT ( * ) * - 60 THEN COALESCE ( - 85, 34 * + ( - 60 ) ) * 66 END
----
NULL

query I rowsort
SELECT + 9 * + 72 + + 33 * + 32
----
1704

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT DISTINCT + 62 * - - COUNT( * ) * - 36 + - 26 + - 50 * + MAX( - 73 ) AS col1
----
1392

skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT + 62 * - - COUNT ( * ) * - 36 + - 26 + - 50 * + MAX ( - 73 ) AS col1
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL + + MIN( ALL + - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + + MIN ( ALL + - 59 ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6005
SELECT ALL CAST( NULL AS SIGNED ) * - - SUM( 81 ) - - COUNT( * ) + - 3 / + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL CAST ( NULL AS INTEGER ) * - - SUM ( 81 ) - - COUNT ( * ) + - 3 / + 59 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6006
SELECT + CAST( NULL AS SIGNED ) - - + COUNT( * ) * SUM( ALL + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT + CAST ( NULL AS INTEGER ) - - + COUNT ( * ) * SUM ( ALL + 81 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6007
SELECT + 76 DIV + - 32
----
-2

skipif mysql # not compatible
query I rowsort label-6007
SELECT + 76 / + - 32
----
-2

query I rowsort
SELECT 95 + 78
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT - + ( - - COUNT( DISTINCT 27 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6009
SELECT - + ( - - COUNT ( DISTINCT 27 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT CASE + - ( 70 ) WHEN + COALESCE ( COUNT( * ), - 27 + 92, COUNT( * ) - MAX( ( 97 ) ) * - 3 ) * - 7 THEN 48 ELSE ( + 86 ) * - 27 END * - 1 AS col0
----
2322

skipif mysql # not compatible
query I rowsort label-6010
SELECT CASE + - ( 70 ) WHEN + COALESCE ( COUNT ( * ), - 27 + 92, COUNT ( * ) - MAX ( ( 97 ) ) * - 3 ) * - 7 THEN 48 ELSE ( + 86 ) * - 27 END * - 1 AS col0
----
2322

query I rowsort
SELECT ALL + 18 + + - 95 - 57
----
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT ALL 0 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL 0 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 99 * - + 51
----
5049

query I rowsort
SELECT DISTINCT + + 0 + - + 55 AS col0
----
-55

query I rowsort
SELECT ALL - + ( - 2 ) + 69 AS col2
----
71

query I rowsort
SELECT DISTINCT 27 + 44 col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT 44 + + NULLIF ( COUNT( * ), 58 * + 62 ) + - 81
----
-36

skipif mysql # not compatible
query I rowsort label-6017
SELECT 44 + + NULLIF ( COUNT ( * ), 58 * + 62 ) + - 81
----
-36

query I rowsort
SELECT DISTINCT + 75 - - - 48 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6019
SELECT ALL + 23 - - CAST( NULL AS DECIMAL ) + 23 + - CASE + 54 WHEN MIN( ALL 69 ) + + 86 THEN + COUNT( 25 ) * - 37 + 78 ELSE NULL END * AVG ( ALL 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + 23 - - CAST ( NULL AS REAL ) + 23 + - CASE + 54 WHEN MIN ( ALL 69 ) + + 86 THEN + COUNT ( 25 ) * - 37 + 78 ELSE NULL END * AVG ( ALL 91 ) AS col0
----
NULL

query II rowsort
SELECT 94 AS col2, 31
----
94
31

query I rowsort
SELECT 47 - - 14 * 86 * 62
----
74695

query I rowsort
SELECT DISTINCT 69 - + 6 AS col1
----
63

query I rowsort
SELECT ALL + 50 * 57 * 90 AS col0
----
256500

query I rowsort
SELECT DISTINCT ( + 76 ) * COALESCE ( 10, + 72 )
----
760

query II rowsort
SELECT ALL - 37, + 85 AS col2
----
-37
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6026
SELECT ALL - COALESCE ( CASE - 39 WHEN - NULLIF ( 1, - 38 ) + - ( - CASE + ( - 50 ) WHEN NULLIF ( COUNT( * ), 59 ) THEN COALESCE ( - 38, 24, 7 + - CAST( NULL AS DECIMAL ) ) + - 63 END ) THEN - ( 74 ) WHEN 40 + - 74 * - MAX( ALL - 29 ) THEN NULL ELSE NULL END, - COALESCE ( 65, 86, 6 ) + COALESCE ( - 6, 34 ) * + COUNT( * ) ) col2
----
71

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL - COALESCE ( CASE - 39 WHEN - NULLIF ( 1, - 38 ) + - ( - CASE + ( - 50 ) WHEN NULLIF ( COUNT ( * ), 59 ) THEN COALESCE ( - 38, 24, 7 + - CAST ( NULL AS REAL ) ) + - 63 END ) THEN - ( 74 ) WHEN 40 + - 74 * - MAX ( ALL - 29 ) THEN NULL ELSE NULL END, - COALESCE ( 65, 86, 6 ) + COALESCE ( - 6, 34 ) * + COUNT ( * ) ) col2
----
71

query I rowsort
SELECT 76 * + + 25
----
1900

onlyif mysql # aggregate syntax: 
query II rowsort label-6028
SELECT DISTINCT - 14 AS col2, COUNT( * ) * + COALESCE ( 67, - MAX( ALL - 14 ) - 38 ) AS col0
----
-14
67

skipif mysql # not compatible
query II rowsort label-6028
SELECT DISTINCT - 14 AS col2, COUNT ( * ) * + COALESCE ( 67, - MAX ( ALL - 14 ) - 38 ) AS col0
----
-14
67

query II rowsort
SELECT ALL - 27 col1, + 51 + + 37
----
-27
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL - COALESCE ( COUNT( * ), - - 71 + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - COALESCE ( COUNT ( * ), - - 71 + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6031
SELECT DISTINCT + COUNT( * ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT + COUNT ( * ) / 5
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( - - 72, 53 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT 91 + + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6033
SELECT 91 + + COUNT ( * ) AS col0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6034
SELECT ALL + 15 DIV 76 * + 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL + 15 / 76 * + 8 AS col2
----
0

query II rowsort
SELECT DISTINCT - 30 AS col0, ( - 89 ) AS col1
----
-30
-89

query I rowsort
SELECT DISTINCT + 7 + ( 4 ) * 40 AS col1
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL COUNT( * ) + + 29
----
30

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL COUNT ( * ) + + 29
----
30

query I rowsort
SELECT ALL + ( 62 ) + - + 11
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6039
SELECT + 51 * SUM( + 17 ) * + 13 + ( 96 ) DIV - MIN( NULLIF ( - 6, + ( + 20 ) ) + + 29 ) AS col1
----
11267

skipif mysql # not compatible
query I rowsort label-6039
SELECT + 51 * SUM ( + 17 ) * + 13 + ( 96 ) / - MIN ( NULLIF ( - 6, + ( + 20 ) ) + + 29 ) AS col1
----
11267

query I rowsort
SELECT - - 7 * + 93 - + + 58 + - 20 AS col2
----
573

query I rowsort
SELECT + 34 + 46 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT ALL + + 73 + - - NULLIF ( + + 94, - 3 * - COUNT( * ) ) AS col0
----
167

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL + + 73 + - - NULLIF ( + + 94, - 3 * - COUNT ( * ) ) AS col0
----
167

onlyif mysql # aggregate syntax: 
query II rowsort label-6043
SELECT + 10 AS col1, COUNT( * ) * - 99 AS col1
----
10
-99

skipif mysql # not compatible
query II rowsort label-6043
SELECT + 10 AS col1, COUNT ( * ) * - 99 AS col1
----
10
-99

query I rowsort
SELECT + 48 + + 52 * 88 + + 30 AS col2
----
4654

query I rowsort
SELECT - COALESCE ( 54, - 13 ) * 72 + + 33 * 38 AS col2
----
-2634

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL COALESCE ( MAX( - 14 ), 86 * - 15 ) + + 67
----
53

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL COALESCE ( MAX ( - 14 ), 86 * - 15 ) + + 67
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT - 1 * + - ( - + 14 ) - - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-6047
SELECT - 1 * + - ( - + 14 ) - - COUNT ( * )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT DISTINCT + 39 + - 27 * 49 DIV - 32 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT + 39 + - 27 * 49 / - 32 AS col2
----
80

query II rowsort
SELECT 58 AS col2, 7 - - 40 AS col0
----
58
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6050
SELECT ALL COUNT( * ), AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6050
SELECT ALL COUNT ( * ), AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
1
NULL

query I rowsort
SELECT ALL ( ( + 93 ) ) AS col1
----
93

query I rowsort
SELECT ( 13 ) AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6053
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6053
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-1

query II rowsort
SELECT - - 58 AS col0, 91 * - - 37
----
58
3367

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT + 64 DIV - + 98 * 80 + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-6055
SELECT + 64 / - + 98 * 80 + 18 AS col0
----
18

query I rowsort
SELECT ALL + 46 * + 3 AS col2
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-6057
SELECT 89 * 46 DIV - - 71 + - 37
----
20

skipif mysql # not compatible
query I rowsort label-6057
SELECT 89 * 46 / - - 71 + - 37
----
20

query II rowsort
SELECT - 96, - 69 * - + 70 + 44 AS col1
----
-96
4874

query I rowsort
SELECT DISTINCT - 13 * + 77 AS col1
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT COUNT( * ) + ( - + NULLIF ( + + 7, + COUNT( * ) ) ) + + ( + ( 93 ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6060
SELECT COUNT ( * ) + ( - + NULLIF ( + + 7, + COUNT ( * ) ) ) + + ( + ( 93 ) ) AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT ALL CAST( NULL AS SIGNED ) * - ( - 42 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL CAST ( NULL AS INTEGER ) * - ( - 42 ) AS col1
----
NULL

query I rowsort
SELECT ALL COALESCE ( 16, + 56 ) - 26 + - 21 AS col1
----
-31

query II rowsort
SELECT ALL 22 * + 67 AS col0, 17
----
1474
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6064
SELECT ALL - MIN( DISTINCT 94 ) DIV - CASE - 81 WHEN - 27 THEN - 7 WHEN - 23 THEN NULL ELSE - ( 53 ) + + 47 END AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - MIN ( DISTINCT 94 ) / - CASE - 81 WHEN - 27 THEN - 7 WHEN - 23 THEN NULL ELSE - ( 53 ) + + 47 END AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6065
SELECT 76 DIV + 15
----
5

skipif mysql # not compatible
query I rowsort label-6065
SELECT 76 / + 15
----
5

query I rowsort
SELECT 47 * 40 AS col2
----
1880

query I rowsort
SELECT 82 + + 15 AS col2
----
97

query I rowsort
SELECT 85 * + 10 * 76 AS col2
----
64600

onlyif mysql # DIV for integer division: 
query I rowsort label-6069
SELECT 92 + + 59 DIV + + 50 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6069
SELECT 92 + + 59 / + + 50 AS col1
----
93

query I rowsort
SELECT 1 + ( + + ( 28 ) ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT 11 * COALESCE ( + 84, 22 * COUNT( * ) ) * - 26 AS col1
----
-24024

skipif mysql # not compatible
query I rowsort label-6071
SELECT 11 * COALESCE ( + 84, 22 * COUNT ( * ) ) * - 26 AS col1
----
-24024

query I rowsort
SELECT ALL 30 * - + 69 + - - 88
----
-1982

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT + COUNT( DISTINCT 74 )
----
1

skipif mysql # not compatible
query I rowsort label-6073
SELECT + COUNT ( DISTINCT 74 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT MAX( ALL 44 )
----
44

skipif mysql # not compatible
query I rowsort label-6074
SELECT MAX ( ALL 44 )
----
44

query I rowsort
SELECT DISTINCT 91 * 88
----
8008

query I rowsort
SELECT ALL 67 * + 32 + - + 55
----
2089

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT - 65 * - + MAX( - 28 ) + + 77 * + 51 AS col0
----
2107

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - 65 * - + MAX ( - 28 ) + + 77 * + 51 AS col0
----
2107

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT + - 62 DIV - - 5 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-6078
SELECT + - 62 / - - 5 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT ALL + + COUNT( * ) * 77 * + - COUNT( DISTINCT - 16 ) + 66 + 92 * - 28 col2
----
-2587

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + + COUNT ( * ) * 77 * + - COUNT ( DISTINCT - 16 ) + 66 + 92 * - 28 col2
----
-2587

query I rowsort
SELECT DISTINCT + ( - 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT COUNT( DISTINCT + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-6081
SELECT COUNT ( DISTINCT + 64 )
----
1

query I rowsort
SELECT - 71 - ( - + 69 ) AS col1
----
-2

query I rowsort
SELECT ALL - 74 * 41 + 27
----
-3007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6084
SELECT + CAST( NULL AS SIGNED ) * - 39 * COUNT( * ) + + 54 + + ( - SUM( ALL 95 ) + + COALESCE ( 5 - COUNT( * ), + ( + NULLIF ( 24, - 61 + + 54 ) ) * 25, - ( 50 ) ) ) / - 19 - - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT + CAST ( NULL AS INTEGER ) * - 39 * COUNT ( * ) + + 54 + + ( - SUM ( ALL 95 ) + + COALESCE ( 5 - COUNT ( * ), + ( + NULLIF ( 24, - 61 + + 54 ) ) * 25, - ( 50 ) ) ) / - 19 - - 32 AS col0
----
NULL

query I rowsort
SELECT - 98 * + NULLIF ( + 30, + 49 )
----
-2940

query I rowsort
SELECT - + 55 - - + 68 AS col0
----
13

query I rowsort
SELECT - + 86 + + 42 * + 30
----
1174

query I rowsort
SELECT ALL - 75 - + - 11 * + 43 AS col1
----
398

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6089
SELECT DISTINCT + 17 * + 67 * CAST( NULL AS DECIMAL ) / - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT + 17 * + 67 * CAST ( NULL AS REAL ) / - 38 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6090
SELECT - 1 * + + 95 + + 87 * 76 + CAST( NULL AS SIGNED ) * 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT - 1 * + + 95 + + 87 * 76 + CAST ( NULL AS INTEGER ) * 31 AS col1
----
NULL

query II rowsort
SELECT ALL + ( 34 ), 2 * - + 84 AS col0
----
34
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT DISTINCT + ( - 49 ) * + 16 * - COUNT( * ) AS col0
----
784

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT + ( - 49 ) * + 16 * - COUNT ( * ) AS col0
----
784

query I rowsort
SELECT DISTINCT - 67 - + CASE + - 22 WHEN 28 THEN 73 * - 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT DISTINCT + - COALESCE ( 93, + SUM( DISTINCT 63 ) + - ( 46 + 46 ) ) * 75
----
-6975

skipif mysql # not compatible
query I rowsort label-6094
SELECT DISTINCT + - COALESCE ( 93, + SUM ( DISTINCT 63 ) + - ( 46 + 46 ) ) * 75
----
-6975

query I rowsort
SELECT - ( - 80 ) + + 70
----
150

query I rowsort
SELECT ALL ( - 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL ( SUM( 31 ) ) col0
----
31

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL ( SUM ( 31 ) ) col0
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT - 5 col2, - COUNT( * ) AS col0
----
-5
-1

skipif mysql # not compatible
query II rowsort label-6098
SELECT - 5 col2, - COUNT ( * ) AS col0
----
-5
-1

query II rowsort
SELECT 70, 21 * - 62 col0
----
70
-1302

query I rowsort
SELECT - 81 * - + 60
----
4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT + 86 * - CAST( NULL AS SIGNED ) * CASE 22 WHEN + - 2 THEN - 1 + 87 * + 30 ELSE NULL END * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 86 * - CAST ( NULL AS INTEGER ) * CASE 22 WHEN + - 2 THEN - 1 + 87 * + 30 ELSE NULL END * 7 AS col1
----
NULL

query I rowsort
SELECT + ( - + 31 ) + - ( + 89 ) AS col0
----
-120

query I rowsort
SELECT - ( + ( + 86 ) ) AS col0
----
-86

query I rowsort
SELECT ALL 68 + + 76 AS col0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT + 39 DIV 9 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6105
SELECT + 39 / 9 AS col2
----
4

query I rowsort
SELECT + 50 + 94 * 62 * ( + 70 ) AS col1
----
408010

query I rowsort
SELECT ALL - 15 + + 23 * 61 * 1 AS col1
----
1388

query I rowsort
SELECT DISTINCT 74 + - 31
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT DISTINCT 50 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT 50 * COUNT ( * )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6110
SELECT ALL 95 DIV + - 4 + - ( + - COUNT( 50 ) ) * + 24
----
1

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL 95 / + - 4 + - ( + - COUNT ( 50 ) ) * + 24
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT CAST( + AVG ( DISTINCT + + ( + 55 ) ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-6111
SELECT CAST ( + AVG ( DISTINCT + + ( + 55 ) ) AS INTEGER )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT + ( - COUNT( * ) ) + - 59
----
-60

skipif mysql # not compatible
query I rowsort label-6112
SELECT + ( - COUNT ( * ) ) + - 59
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT + 55 * + ( - MAX( 27 ) ) AS col0
----
-1485

skipif mysql # not compatible
query I rowsort label-6113
SELECT + 55 * + ( - MAX ( 27 ) ) AS col0
----
-1485

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ( - 71 ) * - COUNT( * ) + - ( + 80 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6114
SELECT ( - 71 ) * - COUNT ( * ) + - ( + 80 ) AS col0
----
-9

query I rowsort
SELECT - 73 - + 41 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT - + 70 / + 76 - + + ( + + COUNT( DISTINCT ( 30 ) ) ) - + 0 * - CASE - 40 + - 19 WHEN 60 * - 6 + 75 * - 86 THEN + COUNT( * ) WHEN 82 / MAX( 27 ) THEN 10 / 98 END + 47 * NULLIF ( COUNT( * ) * 38 + + 96, - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT - + 70 / + 76 - + + ( + + COUNT ( DISTINCT ( 30 ) ) ) - + 0 * - CASE - 40 + - 19 WHEN 60 * - 6 + 75 * - 86 THEN + COUNT ( * ) WHEN 82 / MAX ( 27 ) THEN 10 / 98 END + 47 * NULLIF ( COUNT ( * ) * 38 + + 96, - 60 )
----
NULL

query I rowsort
SELECT + - 25 + 9 - 91
----
-107

query I rowsort
SELECT ALL - 5 * 46 - + 17 AS col2
----
-247

query I rowsort
SELECT + + ( + 4 ) + - 6 * - + 79
----
478

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT ALL - 41 * 14 - - SUM( DISTINCT + 57 )
----
-517

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL - 41 * 14 - - SUM ( DISTINCT + 57 )
----
-517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6121
SELECT + 92 * 15 - SUM( ALL 43 ) DIV - 54 + 41
----
1421

skipif mysql # not compatible
query I rowsort label-6121
SELECT + 92 * 15 - SUM ( ALL 43 ) / - 54 + 41
----
1421

query I rowsort
SELECT DISTINCT 61 * + 84 * 43 AS col1
----
220332

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL + SUM( ALL - + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + SUM ( ALL - + 59 ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6124
SELECT DISTINCT + - SUM( ALL 53 ) * - 7 * - COUNT( CAST( 80 AS SIGNED ) ) * 8 - + CASE WHEN NOT NULL IS NOT NULL THEN - 71 END
----
-2897

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT + - SUM ( ALL 53 ) * - 7 * - COUNT ( CAST ( 80 AS INTEGER ) ) * 8 - + CASE WHEN NOT NULL IS NOT NULL THEN - 71 END
----
-2897

query I rowsort
SELECT 84 * 93 + + 0 * - - 59 * - 66
----
7812

query I rowsort
SELECT + 58 * - - 17 + - ( - 97 ) + 79 AS col1
----
1162

query I rowsort
SELECT - 32 + - NULLIF ( + - 79, - 16 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT SUM( 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6128
SELECT SUM ( 23 ) AS col0
----
23

query II rowsort
SELECT + 91 AS col0, 6
----
91
6

query I rowsort
SELECT - 46 + - + 15 AS col0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6131
SELECT - - ( - - 66 ) DIV NULLIF ( + 87, 38 DIV + 8 )
----
0

skipif mysql # not compatible
query I rowsort label-6131
SELECT - - ( - - 66 ) / NULLIF ( + 87, 38 / + 8 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6132
SELECT - - 18 * 84 + + 49 DIV - COUNT( * )
----
1463

skipif mysql # not compatible
query I rowsort label-6132
SELECT - - 18 * 84 + + 49 / - COUNT ( * )
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL + + COALESCE ( - + 92, + 17, - COUNT( * ) * COALESCE ( - 9, - 97 ) - - 44 )
----
-92

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL + + COALESCE ( - + 92, + 17, - COUNT ( * ) * COALESCE ( - 9, - 97 ) - - 44 )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6134
SELECT DISTINCT - + MIN( - 16 ) DIV 64 AS col2, 16 AS col2
----
0
16

skipif mysql # not compatible
query II rowsort label-6134
SELECT DISTINCT - + MIN ( - 16 ) / 64 AS col2, 16 AS col2
----
0
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6135
SELECT ALL - + COUNT( * ) * COUNT( * ) DIV 28 * 15 + + 58 + 71
----
129

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL - + COUNT ( * ) * COUNT ( * ) / 28 * 15 + + 58 + 71
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-6136
SELECT - ( - 83 ) DIV - ( - 56 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6136
SELECT - ( - 83 ) / - ( - 56 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT ALL - - COALESCE ( - 12, + - COUNT( * ) + COUNT( - 33 ) - 27 ) DIV + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL - - COALESCE ( - 12, + - COUNT ( * ) + COUNT ( - 33 ) - 27 ) / + 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL CASE + - 66 WHEN 20 THEN + 16 / + 58 ELSE COUNT( * ) + 1 END
----
2

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL CASE + - 66 WHEN 20 THEN + 16 / + 58 ELSE COUNT ( * ) + 1 END
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6139
SELECT DISTINCT - 10 DIV - 99 * ( COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - 10 / - 99 * ( COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT - 63 * - + ( - - 74 )
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT - COUNT( ALL - 4 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6141
SELECT - COUNT ( ALL - 4 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL + 92 * COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + 92 * COUNT ( * )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT - MIN( 62 ) DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-6143
SELECT - MIN ( 62 ) / - - 80
----
0

query II rowsort
SELECT 18, - 36 AS col2
----
18
-36

query I rowsort
SELECT + 63 * + 71 AS col1
----
4473

query I rowsort
SELECT ALL - 19 + + 35 * + NULLIF ( 93, 40 + 39 ) * - 21 AS col1
----
-68374

query II rowsort
SELECT - 61 AS col1, 0 AS col1
----
-61
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT - 9 - - COUNT( * ) + - 44 * + 3 * 85 + + MIN( 3 )
----
-11225

skipif mysql # not compatible
query I rowsort label-6148
SELECT - 9 - - COUNT ( * ) + - 44 * + 3 * 85 + + MIN ( 3 )
----
-11225

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT ALL - 29 * - - 84 * - COUNT( * )
----
2436

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL - 29 * - - 84 * - COUNT ( * )
----
2436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT ALL - 20 + - - CAST( + - 84 AS SIGNED )
----
-104

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL - 20 + - - CAST ( + - 84 AS INTEGER )
----
-104

query I rowsort
SELECT ALL + 57 + 37 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT DISTINCT - 2 + NULLIF ( 14, + MAX( - 6 ) ) * - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - 2 + NULLIF ( 14, + MAX ( - 6 ) ) * - COUNT ( * )
----
-16

query I rowsort
SELECT 81 * + + 56
----
4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6154
SELECT 17 + - CASE 89 WHEN - 98 THEN 63 * 47 WHEN CAST( + COUNT( + 27 ) AS SIGNED ) THEN NULL END + + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT 17 + - CASE 89 WHEN - 98 THEN 63 * 47 WHEN CAST ( + COUNT ( + 27 ) AS INTEGER ) THEN NULL END + + 48 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6155
SELECT DISTINCT - 84 + + 56 + - 4 * 53 * + NULLIF ( 39, + ( - 80 ) ) + - CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT DISTINCT - 84 + + 56 + - 4 * 53 * + NULLIF ( 39, + ( - 80 ) ) + - CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT COUNT( * ) + - 13 * 52
----
-675

skipif mysql # not compatible
query I rowsort label-6156
SELECT COUNT ( * ) + - 13 * 52
----
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ALL MIN( ALL + 83 ) + - 43
----
40

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL MIN ( ALL + 83 ) + - 43
----
40

query I rowsort
SELECT 7 * - 61 col1
----
-427

onlyif mysql # aggregate syntax: 
query II rowsort label-6159
SELECT + COUNT( * ) AS col2, - 44 * 75 AS col2
----
1
-3300

skipif mysql # not compatible
query II rowsort label-6159
SELECT + COUNT ( * ) AS col2, - 44 * 75 AS col2
----
1
-3300

query II rowsort
SELECT + 29, 53 + + + 55 + + - 43 AS col2
----
29
65

query II rowsort
SELECT 8 col0, + 19 * - 90
----
8
-1710

query I rowsort
SELECT ALL 50 * + - 29
----
-1450

query I rowsort
SELECT DISTINCT - 41 - - 52 AS col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT - 91 DIV - - 80 + 6 + 23 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6164
SELECT - 91 / - - 80 + 6 + 23 AS col2
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6165
SELECT + SUM( + 43 ), 69 AS col1
----
43
69

skipif mysql # not compatible
query II rowsort label-6165
SELECT + SUM ( + 43 ), 69 AS col1
----
43
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6166
SELECT ALL - COALESCE ( + 35, - COUNT( * ) DIV - - 5 + + - 34 - - ( 40 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - COALESCE ( + 35, - COUNT ( * ) / - - 5 + + - 34 - - ( 40 ) )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6167
SELECT 45, - COUNT( * ) col0
----
45
-1

skipif mysql # not compatible
query II rowsort label-6167
SELECT 45, - COUNT ( * ) col0
----
45
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6168
SELECT + + 8, COUNT( * ) * - 87 AS col1
----
8
-87

skipif mysql # not compatible
query II rowsort label-6168
SELECT + + 8, COUNT ( * ) * - 87 AS col1
----
8
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6169
SELECT + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) - - 91
----
NULL

query II rowsort
SELECT + - 85, 19 - - 39 AS col1
----
-85
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6171
SELECT ALL - + 44 AS col1, NULLIF ( MAX( ALL 30 ), 25 * COUNT( - 89 ) ) * 32 + - NULLIF ( 43, 76 )
----
-44
917

skipif mysql # not compatible
query II rowsort label-6171
SELECT ALL - + 44 AS col1, NULLIF ( MAX ( ALL 30 ), 25 * COUNT ( - 89 ) ) * 32 + - NULLIF ( 43, 76 )
----
-44
917

query I rowsort
SELECT - 92 * + - 54 AS col2
----
4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT ALL - - CAST( - - ( + 28 ) AS SIGNED ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL - - CAST ( - - ( + 28 ) AS INTEGER ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT - COUNT( * ) * 55 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6174
SELECT - COUNT ( * ) * 55 AS col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6175
SELECT + 38 * CAST( - 40 AS SIGNED ) + - + 20 + 16 AS col1, + 35 AS col0
----
-1524
35

skipif mysql # not compatible
query II rowsort label-6175
SELECT + 38 * CAST ( - 40 AS INTEGER ) + - + 20 + 16 AS col1, + 35 AS col0
----
-1524
35

query I rowsort
SELECT DISTINCT 34 + - 78
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6177
SELECT COALESCE ( + CAST( NULL AS SIGNED ), + 71 ) * - CASE ( - 24 ) WHEN + SUM( 83 ) THEN 12 ELSE NULL END - + 31 * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), + 71 ) * - CASE ( - 24 ) WHEN + SUM ( 83 ) THEN 12 ELSE NULL END - + 31 * 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6178
SELECT ALL + 88 + - + MIN( ALL - ( CAST( - 58 AS SIGNED ) ) ) + + 9 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL + 88 + - + MIN ( ALL - ( CAST ( - 58 AS INTEGER ) ) ) + + 9 AS col2
----
39

query I rowsort
SELECT 85 + + ( - 63 )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6180
SELECT ALL + 61 DIV 87 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + 61 / 87 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT - COALESCE ( + + 43, 3 ) + CASE + + 0 WHEN COALESCE ( - 74, COUNT( * ) ) THEN + 19 * 88 + COUNT( * ) * 55 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT - COALESCE ( + + 43, 3 ) + CASE + + 0 WHEN COALESCE ( - 74, COUNT ( * ) ) THEN + 19 * 88 + COUNT ( * ) * 55 END AS col1
----
NULL

query I rowsort
SELECT ALL 92 + + + 48
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * 7
----
7

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * 7
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL - 88 + SUM( 67 ) - - - 1 + COUNT( * ) + CASE 44 WHEN 14 + 98 THEN 7 END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL - 88 + SUM ( 67 ) - - - 1 + COUNT ( * ) + CASE 44 WHEN 14 + 98 THEN 7 END * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL + NULLIF ( + 73, 51 + 98 ) + - 92 + + - COUNT( * ) + - 54 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL + NULLIF ( + 73, 51 + 98 ) + - 92 + + - COUNT ( * ) + - 54 AS col0
----
-74

query I rowsort
SELECT 10 * + 36 col1
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL + MIN( 43 ) / - 6 * - CAST( NULL AS SIGNED ) + + - 90 + 54 + + - 59 * + 38 / - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL + MIN ( 43 ) / - 6 * - CAST ( NULL AS INTEGER ) + + - 90 + 54 + + - 59 * + 38 / - 76 AS col2
----
NULL

query I rowsort
SELECT ( + 67 ) + - 92 col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT + 43 * + ( - 83 ) * - 27 * 64 / + - CASE - 78 WHEN + COUNT( * ) - 52 THEN NULL WHEN - 86 + - 15 THEN + MIN( 35 ) * ( 14 + 22 * + 69 ) WHEN 17 + + 97 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT + 43 * + ( - 83 ) * - 27 * 64 / + - CASE - 78 WHEN + COUNT ( * ) - 52 THEN NULL WHEN - 86 + - 15 THEN + MIN ( 35 ) * ( 14 + 22 * + 69 ) WHEN 17 + + 97 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6190
SELECT ALL - CASE + - 79 WHEN + - 87 - - 48 THEN NULL WHEN + + 73 THEN NULL WHEN - NULLIF ( 55, + 60 + NULLIF ( 38 + 96 / CASE COUNT( * ) WHEN - 34 * + 83 + 75 THEN 13 WHEN 99 * 60 THEN + 77 END, + COUNT( * ) * - COUNT( * ) + + 51 ) ) THEN CAST( NULL AS DECIMAL ) - 72 WHEN 92 * ( 0 ) THEN - 89 END - SUM( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL - CASE + - 79 WHEN + - 87 - - 48 THEN NULL WHEN + + 73 THEN NULL WHEN - NULLIF ( 55, + 60 + NULLIF ( 38 + 96 / CASE COUNT ( * ) WHEN - 34 * + 83 + 75 THEN 13 WHEN 99 * 60 THEN + 77 END, + COUNT ( * ) * - COUNT ( * ) + + 51 ) ) THEN CAST ( NULL AS REAL ) - 72 WHEN 92 * ( 0 ) THEN - 89 END - SUM ( 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT 0 * 42 * + - MIN( ALL + 20 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6191
SELECT 0 * 42 * + - MIN ( ALL + 20 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT 7 - - 99 * + COUNT( * ) * COUNT( * ) AS col1
----
106

skipif mysql # not compatible
query I rowsort label-6192
SELECT 7 - - 99 * + COUNT ( * ) * COUNT ( * ) AS col1
----
106

query II rowsort
SELECT 10 * 26, 78 + - - 58 AS col0
----
260
136

query I rowsort
SELECT ALL - 98 * - 51 * - 6
----
-29988

query I rowsort
SELECT 16 + COALESCE ( + 97, 60, - 10 + + 91 + + + 2 )
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6196
SELECT DISTINCT - - 97 * COUNT( * ) * + - 90 * - - 47 * + 58 DIV COUNT( DISTINCT - 40 ) AS col2
----
-23797980

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT - - 97 * COUNT ( * ) * + - 90 * - - 47 * + 58 / COUNT ( DISTINCT - 40 ) AS col2
----
-23797980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT DISTINCT - CAST( - + 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - CAST ( - + 72 AS INTEGER )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ALL - 45 - + 56 * + COUNT( * )
----
-101

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL - 45 - + 56 * + COUNT ( * )
----
-101

query I rowsort
SELECT 48 * - 14 + + 11 * + - 18 + - 65 + + + 1 * + + 24 + - CASE 6 WHEN + 2 * 66 THEN + 23 + 56 END
----
NULL

query I rowsort
SELECT 30 - + + 47 * + 38
----
-1756

onlyif mysql # aggregate syntax: 
query II rowsort label-6201
SELECT ALL - SUM( DISTINCT - 72 ) AS col1, 96
----
72
96

skipif mysql # not compatible
query II rowsort label-6201
SELECT ALL - SUM ( DISTINCT - 72 ) AS col1, 96
----
72
96

query I rowsort
SELECT - 63 * 21 + + 83 + + 42 * 1
----
-1198

onlyif mysql # DIV for integer division: 
query I rowsort label-6203
SELECT ALL + - COALESCE ( 23, - - 89 ) DIV - 13 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL + - COALESCE ( 23, - - 89 ) / - 13 AS col0
----
1

query I rowsort
SELECT ALL 7 * - 22 * 11
----
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT DISTINCT + 85 + + - 44 + + COUNT( * ) + 56 * + 97 * ( - + 98 )
----
-532294

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT + 85 + + - 44 + + COUNT ( * ) + 56 * + 97 * ( - + 98 )
----
-532294

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT DISTINCT - 80 + - + 56 + - 8 DIV 23
----
-136

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - 80 + - + 56 + - 8 / 23
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT DISTINCT + + COUNT( * ) * 97 * - 37 + 58 AS col0
----
-3531

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT + + COUNT ( * ) * 97 * - 37 + 58 AS col0
----
-3531

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT + CASE - 98 WHEN + - 2 THEN - 79 + + COUNT( + 51 ) * - 57 * ( - 84 * 69 ) ELSE NULL END * + NULLIF ( 18, - 62 ) + 80 * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT + CASE - 98 WHEN + - 2 THEN - 79 + + COUNT ( + 51 ) * - 57 * ( - 84 * 69 ) ELSE NULL END * + NULLIF ( 18, - 62 ) + 80 * 99
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6209
SELECT ALL - 46 + + 76 + - + 64 DIV - MAX( + 88 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL - 46 + + 76 + - + 64 / - MAX ( + 88 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT + 17 + CASE + 65 WHEN + 54 THEN COUNT( * ) WHEN + + 57 - 34 * - 78 THEN NULL ELSE 61 * + 25 END * ( 75 )
----
114392

skipif mysql # not compatible
query I rowsort label-6210
SELECT + 17 + CASE + 65 WHEN + 54 THEN COUNT ( * ) WHEN + + 57 - 34 * - 78 THEN NULL ELSE 61 * + 25 END * ( 75 )
----
114392

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT 27 DIV + 39 - + ( + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-6211
SELECT 27 / + 39 - + ( + 74 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT CAST( NULLIF ( + - 76, + + 54 ) AS SIGNED ) + - + 76
----
-152

skipif mysql # not compatible
query I rowsort label-6212
SELECT CAST ( NULLIF ( + - 76, + + 54 ) AS INTEGER ) + - + 76
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-6213
SELECT ALL SUM( ALL + 58 ) + + 79 AS col1, - 17
----
137
-17

skipif mysql # not compatible
query II rowsort label-6213
SELECT ALL SUM ( ALL + 58 ) + + 79 AS col1, - 17
----
137
-17

query I rowsort
SELECT 38 * + 42 + - 69
----
1527

query I rowsort
SELECT ALL 28 + + + 41 AS col0
----
69

query II rowsort
SELECT ALL - 46, - 79 * + 97 AS col0
----
-46
-7663

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT DISTINCT 57 + 46 + + 87 AS col1, COUNT( * ) AS col1
----
190
1

skipif mysql # not compatible
query II rowsort label-6217
SELECT DISTINCT 57 + 46 + + 87 AS col1, COUNT ( * ) AS col1
----
190
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT 91 + + COUNT( ALL - 47 )
----
92

skipif mysql # not compatible
query I rowsort label-6218
SELECT 91 + + COUNT ( ALL - 47 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6219
SELECT DISTINCT 33 + - CAST( NULL AS SIGNED ) + 35 + + 6 * ( + - 89 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT 33 + - CAST ( NULL AS INTEGER ) + 35 + + 6 * ( + - 89 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 39 + 37 col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6221
SELECT ALL - COALESCE ( + 8, MAX( DISTINCT 94 ) * - + 7 ) + 94 AS col2, - 95 AS col0
----
86
-95

skipif mysql # not compatible
query II rowsort label-6221
SELECT ALL - COALESCE ( + 8, MAX ( DISTINCT 94 ) * - + 7 ) + 94 AS col2, - 95 AS col0
----
86
-95

query I rowsort
SELECT - NULLIF ( - 68, - - 41 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT COUNT( * ) * + 46 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT COUNT ( * ) * + 46 AS col2
----
46

query I rowsort
SELECT - 56 * - 81
----
4536

onlyif mysql # aggregate syntax: 
query II rowsort label-6225
SELECT DISTINCT 21 AS col1, COUNT( * ) * - - ( + 90 ) AS col2
----
21
90

skipif mysql # not compatible
query II rowsort label-6225
SELECT DISTINCT 21 AS col1, COUNT ( * ) * - - ( + 90 ) AS col2
----
21
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6226
SELECT DISTINCT CASE - 16 WHEN - AVG ( - CAST( NULL AS DECIMAL ) ) THEN NULL WHEN 88 THEN - + ( + 20 ) WHEN + + CASE - 96 WHEN - COUNT( * ) + - 58 THEN 32 ELSE COUNT( * ) END / 53 + + COUNT( * ) * COUNT( * ) THEN NULL ELSE - 43 END * + 58
----
-2494

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT CASE - 16 WHEN - AVG ( - CAST ( NULL AS REAL ) ) THEN NULL WHEN 88 THEN - + ( + 20 ) WHEN + + CASE - 96 WHEN - COUNT ( * ) + - 58 THEN 32 ELSE COUNT ( * ) END / 53 + + COUNT ( * ) * COUNT ( * ) THEN NULL ELSE - 43 END * + 58
----
-2494

onlyif mysql # aggregate syntax: 
query II rowsort label-6227
SELECT - NULLIF ( - - COUNT( * ), + 73 ) col0, SUM( DISTINCT - ( - - 39 ) )
----
-1
-39

skipif mysql # not compatible
query II rowsort label-6227
SELECT - NULLIF ( - - COUNT ( * ), + 73 ) col0, SUM ( DISTINCT - ( - - 39 ) )
----
-1
-39

query I rowsort
SELECT + 61 + 69
----
130

query I rowsort
SELECT + 20 * 40
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT + 38 + COUNT( * ) * + ( COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-6230
SELECT + 38 + COUNT ( * ) * + ( COUNT ( * ) )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6231
SELECT DISTINCT + ( - - ( + 58 ) ) DIV - CASE 32 WHEN - - 7 * - 59 + 87 * - 42 THEN NULL ELSE ( + 92 ) END
----
0

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + ( - - ( + 58 ) ) / - CASE 32 WHEN - - 7 * - 59 + 87 * - 42 THEN NULL ELSE ( + 92 ) END
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6232
SELECT ALL COUNT( * ) AS col2, 60 - + - 57
----
1
117

skipif mysql # not compatible
query II rowsort label-6232
SELECT ALL COUNT ( * ) AS col2, 60 - + - 57
----
1
117

onlyif mysql # DIV for integer division: 
query II rowsort label-6233
SELECT DISTINCT 85 AS col2, COALESCE ( - 26, - ( 98 ) DIV - - 79 - - 24, COALESCE ( - 48, 17 ) )
----
85
-26

skipif mysql # not compatible
query II rowsort label-6233
SELECT DISTINCT 85 AS col2, COALESCE ( - 26, - ( 98 ) / - - 79 - - 24, COALESCE ( - 48, 17 ) )
----
85
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6234
SELECT ALL + 52 * + - 78 + - - 55 + - 43 DIV + + COUNT( * ) + COUNT( DISTINCT + 89 ) + - 97 + COALESCE ( 50, COALESCE ( - ( COUNT( * ) ), + 25 * + ( + 40 ) ) ) AS col2
----
-4090

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + 52 * + - 78 + - - 55 + - 43 / + + COUNT ( * ) + COUNT ( DISTINCT + 89 ) + - 97 + COALESCE ( 50, COALESCE ( - ( COUNT ( * ) ), + 25 * + ( + 40 ) ) ) AS col2
----
-4090

query I rowsort
SELECT - 58 + ( ( - 75 ) ) * + 25 * 40 + + 41 AS col2
----
-75017

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT DISTINCT + 41 DIV + 99 col1
----
0

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT + 41 / + 99 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6237
SELECT + 15 * + 67 DIV + 67
----
15

skipif mysql # not compatible
query I rowsort label-6237
SELECT + 15 * + 67 / + 67
----
15

query II rowsort
SELECT - 85 + + 60 + - 84, 19 * 4 AS col0
----
-109
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL - CASE + 18 WHEN + 87 THEN + 12 + 93 + NULLIF ( - 73, - 16 + + 88 ) + - CASE MIN( ALL 39 ) WHEN 45 THEN NULL WHEN 93 * 1 THEN NULL ELSE - 71 * + 8 END WHEN 10 THEN + 20 ELSE - 20 - + 28 * - COUNT( DISTINCT - 81 - - 89 ) END * + 53
----
-424

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - CASE + 18 WHEN + 87 THEN + 12 + 93 + NULLIF ( - 73, - 16 + + 88 ) + - CASE MIN ( ALL 39 ) WHEN 45 THEN NULL WHEN 93 * 1 THEN NULL ELSE - 71 * + 8 END WHEN 10 THEN + 20 ELSE - 20 - + 28 * - COUNT ( DISTINCT - 81 - - 89 ) END * + 53
----
-424

query I rowsort
SELECT ALL + - 44 * + 65
----
-2860

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6241
SELECT - COUNT( * ) * 82 DIV + + 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6241
SELECT - COUNT ( * ) * 82 / + + 52 AS col1
----
-1

query II rowsort
SELECT - 75 AS col0, 47
----
-75
47

query I rowsort
SELECT COALESCE ( + + 64, + 99 + + 47 )
----
64

query II rowsort
SELECT + 14 AS col1, - 14
----
14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL + 28 * - SUM( DISTINCT - + 88 ) + - 97 + - - 54 AS col0
----
2421

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL + 28 * - SUM ( DISTINCT - + 88 ) + - 97 + - - 54 AS col0
----
2421

query I rowsort
SELECT ALL - 6 * + + 46 + + 79 AS col2
----
-197

query I rowsort
SELECT + NULLIF ( + 62, - 86 + - 37 + 37 ) AS col0
----
62

query II rowsort
SELECT + 48, 52 + - - 41 AS col2
----
48
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT ALL 31 * + 41 * 86 + + - CAST( NULL AS SIGNED ) + - 98 / + ( + - NULLIF ( 89, - 83 / + 56 + + MAX( ALL - 16 ) * + 20 ) ) * + ( - 81 + SUM( ALL - 34 ) ) - + COUNT( * ) * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL 31 * + 41 * 86 + + - CAST ( NULL AS INTEGER ) + - 98 / + ( + - NULLIF ( 89, - 83 / + 56 + + MAX ( ALL - 16 ) * + 20 ) ) * + ( - 81 + SUM ( ALL - 34 ) ) - + COUNT ( * ) * 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6250
SELECT ALL + - CAST( CAST( - 39 AS SIGNED ) AS SIGNED ), + SUM( - 97 ) * - ( 5 ) AS col0
----
39
485

skipif mysql # not compatible
query II rowsort label-6250
SELECT ALL + - CAST ( CAST ( - 39 AS INTEGER ) AS INTEGER ), + SUM ( - 97 ) * - ( 5 ) AS col0
----
39
485

query I rowsort
SELECT ALL 52 * + - 15 + + + 40 AS col2
----
-740

onlyif mysql # aggregate syntax: 
query II rowsort label-6252
SELECT DISTINCT + 48 * + SUM( + NULLIF ( + 90, + 50 ) ) + - - 52, 12 AS col1
----
4372
12

skipif mysql # not compatible
query II rowsort label-6252
SELECT DISTINCT + 48 * + SUM ( + NULLIF ( + 90, + 50 ) ) + - - 52, 12 AS col1
----
4372
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL + 12 * - 86 * 74 + - MIN( DISTINCT + COALESCE ( 49, + 10 ) ) + - - COUNT( * ) AS col2
----
-76416

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL + 12 * - 86 * 74 + - MIN ( DISTINCT + COALESCE ( 49, + 10 ) ) + - - COUNT ( * ) AS col2
----
-76416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT ALL - 94 * - - CAST( NULL AS SIGNED ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL - 94 * - - CAST ( NULL AS INTEGER ) + 80
----
NULL

query I rowsort
SELECT ALL 61 * - 92 + - - 1 AS col2
----
-5611

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL ( + - CASE - - 97 WHEN + 20 THEN NULL WHEN - + 20 THEN COUNT( * ) - - 27 WHEN - - CASE COUNT( * ) WHEN 75 THEN NULL WHEN - 84 THEN 45 * + MIN( + 68 ) ELSE NULL END THEN 41 END ) * 31 - + 58 * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL ( + - CASE - - 97 WHEN + 20 THEN NULL WHEN - + 20 THEN COUNT ( * ) - - 27 WHEN - - CASE COUNT ( * ) WHEN 75 THEN NULL WHEN - 84 THEN 45 * + MIN ( + 68 ) ELSE NULL END THEN 41 END ) * 31 - + 58 * 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6257
SELECT ALL - 61 * - COUNT( - - COALESCE ( + + 20, 29 * - 39 * + + 1 * CAST( NULL AS SIGNED ) + + - 72 ) ) * ( 6 )
----
366

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL - 61 * - COUNT ( - - COALESCE ( + + 20, 29 * - 39 * + + 1 * CAST ( NULL AS INTEGER ) + + - 72 ) ) * ( 6 )
----
366

query I rowsort
SELECT ALL + ( + ( + 45 ) ) AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6259
SELECT COALESCE ( + COUNT( * ), 68, + 35 ) * - 74 + - SUM( DISTINCT CAST( NULL AS SIGNED ) ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT COALESCE ( + COUNT ( * ), 68, + 35 ) * - 74 + - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + 58
----
NULL

query II rowsort
SELECT + 56 - + + 47 AS col0, 48 + - 62 col0
----
9
-14

query I rowsort
SELECT - 68 * - - ( + - 90 )
----
6120

onlyif mysql # aggregate syntax: 
query II rowsort label-6262
SELECT ALL - 51 * - ( + - 87 ) * - 87 + - + 88 + - - 73 - + COUNT( * ), 50 AS col0
----
386003
50

skipif mysql # not compatible
query II rowsort label-6262
SELECT ALL - 51 * - ( + - 87 ) * - 87 + - + 88 + - - 73 - + COUNT ( * ), 50 AS col0
----
386003
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT MAX( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-6263
SELECT MAX ( 1 )
----
1

query I rowsort
SELECT + 97 + - - 92
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-6265
SELECT - ( - 11 ) col2, ( CASE - - 63 WHEN + COUNT( DISTINCT - 95 ) * 48 * - 23 + COUNT( * ) THEN 24 * - 6 ELSE COUNT( * ) + 98 END ) AS col1
----
11
99

skipif mysql # not compatible
query II rowsort label-6265
SELECT - ( - 11 ) col2, ( CASE - - 63 WHEN + COUNT ( DISTINCT - 95 ) * 48 * - 23 + COUNT ( * ) THEN 24 * - 6 ELSE COUNT ( * ) + 98 END ) AS col1
----
11
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6266
SELECT DISTINCT CAST( NULL AS SIGNED ) * 90, 2 + COUNT( * ) DIV - - 83 AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-6266
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 90, 2 + COUNT ( * ) / - - 83 AS col2
----
NULL
2

query II rowsort
SELECT - ( 15 ) AS col2, 46 AS col1
----
-15
46

query I rowsort
SELECT - CASE - NULLIF ( 47, ( 8 ) / + - 55 + - - 74 ) WHEN - 66 THEN 93 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6269
SELECT ALL 16 * - ( + 57 ) + 56 + + 91 / 42 + - CAST( NULL AS DECIMAL ) * + + 22 * - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL 16 * - ( + 57 ) + 56 + + 91 / 42 + - CAST ( NULL AS REAL ) * + + 22 * - - 30
----
NULL

query I rowsort
SELECT + 86 + NULLIF ( - + 17, - ( + + 68 ) ) col0
----
69

query I rowsort
SELECT DISTINCT 25 * + 90 - - 92 AS col2
----
2342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT ALL + CASE - 40 WHEN + 85 * + - 32 - - CAST( NULL AS SIGNED ) + + - 62 * + 79 + - + 92 THEN 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + CASE - 40 WHEN + 85 * + - 32 - - CAST ( NULL AS INTEGER ) + + - 62 * + 79 + - + 92 THEN 95 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6273
SELECT + 13 DIV + CAST( - ( 83 ) AS SIGNED ) AS col2, + 89 + - 89 + - + 90 * + 86 * - CAST( 27 AS SIGNED ) AS col0
----
0
208980

skipif mysql # not compatible
query II rowsort label-6273
SELECT + 13 / + CAST ( - ( 83 ) AS INTEGER ) AS col2, + 89 + - 89 + - + 90 * + 86 * - CAST ( 27 AS INTEGER ) AS col0
----
0
208980

query I rowsort
SELECT + + 40 + + 67 AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT + - COUNT( - 39 ) + + ( + + ( 17 ) )
----
16

skipif mysql # not compatible
query I rowsort label-6275
SELECT + - COUNT ( - 39 ) + + ( + + ( 17 ) )
----
16

query I rowsort
SELECT ALL - 60 + - 18 * - + 25 + + 59 + NULLIF ( + 5, + 25 / 3 * + 64 - - 83 ) * 95 AS col2
----
924

query II rowsort
SELECT + + 91 + + - 64 AS col1, - 60 + + + 61
----
27
1

query I rowsort
SELECT ALL - - ( + ( - 42 ) ) + 93 * - 55 AS col2
----
-5157

query I rowsort
SELECT ALL 32 + + 73
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT + 2 + + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6280
SELECT + 2 + + - COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6281
SELECT ALL NULLIF ( - 47, - 96 ) DIV - + 1 + + - 48 + + 15
----
14

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL NULLIF ( - 47, - 96 ) / - + 1 + + - 48 + + 15
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6282
SELECT ALL 87 DIV - - 84 + + CASE + + 79 WHEN + + 80 THEN NULL ELSE ( - - 55 ) * + 70 END + - COUNT( * ) col2
----
3850

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL 87 / - - 84 + + CASE + + 79 WHEN + + 80 THEN NULL ELSE ( - - 55 ) * + 70 END + - COUNT ( * ) col2
----
3850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT + NULLIF ( + 26, - 99 ) * - - 18 * - MIN( + 77 ) * 69 + - - 95 * - - 68 + + 60 DIV 98 + + 0 * + 98 AS col2
----
-2480024

skipif mysql # not compatible
query I rowsort label-6283
SELECT + NULLIF ( + 26, - 99 ) * - - 18 * - MIN ( + 77 ) * 69 + - - 95 * - - 68 + + 60 / 98 + + 0 * + 98 AS col2
----
-2480024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6284
SELECT ALL + 58 DIV + 48 + - - 75 + 80 * + COALESCE ( - ( + + MAX( ALL 45 ) ), + 50, - COUNT( CASE + 82 WHEN - 0 THEN 45 END ) ) AS col1
----
-3524

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL + 58 / + 48 + - - 75 + 80 * + COALESCE ( - ( + + MAX ( ALL 45 ) ), + 50, - COUNT ( CASE + 82 WHEN - 0 THEN 45 END ) ) AS col1
----
-3524

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT + + MAX( + + 60 ) col0
----
60

skipif mysql # not compatible
query I rowsort label-6285
SELECT + + MAX ( + + 60 ) col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT DISTINCT + + 75 * - - CAST( NULL AS SIGNED ) / 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + + 75 * - - CAST ( NULL AS INTEGER ) / 17 AS col1
----
NULL

query I rowsort
SELECT 75 * - 15 AS col2
----
-1125

query I rowsort
SELECT 20 + 38
----
58

query II rowsort
SELECT + 9 AS col0, - 53
----
9
-53

query I rowsort
SELECT 29 + 42 AS col0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6291
SELECT ALL - 39 - 28 - NULLIF ( + 65, COUNT( * ) ) AS col2, + 0 * + NULLIF ( - SUM( ALL - 40 ), + 34 ) AS col2
----
-132
0

skipif mysql # not compatible
query II rowsort label-6291
SELECT ALL - 39 - 28 - NULLIF ( + 65, COUNT ( * ) ) AS col2, + 0 * + NULLIF ( - SUM ( ALL - 40 ), + 34 ) AS col2
----
-132
0

query I rowsort
SELECT 0 * + 84 AS col0
----
0

query I rowsort
SELECT 36 * + - 45 AS col2
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT ALL - COUNT( * ) * - + 8
----
8

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL - COUNT ( * ) * - + 8
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT ALL - 39 DIV - + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL - 39 / - + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6296
SELECT ALL - COUNT( * ) * - - 16 * + - 15 AS col2, 18 * + COUNT( * ) * - - 55 * - 8 col1
----
240
-7920

skipif mysql # not compatible
query II rowsort label-6296
SELECT ALL - COUNT ( * ) * - - 16 * + - 15 AS col2, 18 * + COUNT ( * ) * - - 55 * - 8 col1
----
240
-7920

query I rowsort
SELECT 9 - + 27 * - 35
----
954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT 51 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT 51 + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 37 col2, 63 AS col0
----
37
63

query I rowsort
SELECT 39 * + ( + 97 )
----
3783

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT ALL + 75 + COUNT( * ) + - + 50
----
26

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + 75 + COUNT ( * ) + - + 50
----
26

query I rowsort
SELECT 15 + 49 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL - 0 + SUM( - - 92 ) + + 51 - + 61 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - 0 + SUM ( - - 92 ) + + 51 - + 61 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT - COUNT( * ) * - - 7 * 70
----
-490

skipif mysql # not compatible
query I rowsort label-6304
SELECT - COUNT ( * ) * - - 7 * 70
----
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT - MAX( ALL + CASE + - 32 WHEN + 28 THEN - - 38 WHEN ( + 43 ) THEN + ( - - 32 ) ELSE NULL END ) * - + 17 + COUNT( * ) * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT - MAX ( ALL + CASE + - 32 WHEN + 28 THEN - - 38 WHEN ( + 43 ) THEN + ( - - 32 ) ELSE NULL END ) * - + 17 + COUNT ( * ) * + 63
----
NULL

query I rowsort
SELECT DISTINCT 35 + + 18
----
53

query I rowsort
SELECT ALL ( + ( - 21 ) ) * + COALESCE ( 18, + - 85 * - 16 + + 33, + 87 ) * - + 57 * 62 - - 98
----
1335950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6308
SELECT - COALESCE ( + - MIN( DISTINCT - COALESCE ( 92, - + 43 ) ), + ( + CAST( + - COALESCE ( - + 35, 21 + - 94 ) AS SIGNED ) ) * COUNT( * ) + NULLIF ( - 54 + COALESCE ( COUNT( + 98 ), 60 + + COUNT( * ) * 65, + 87 * 38, - 58 + 97 ), COUNT( * ) + 42 ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6308
SELECT - COALESCE ( + - MIN ( DISTINCT - COALESCE ( 92, - + 43 ) ), + ( + CAST ( + - COALESCE ( - + 35, 21 + - 94 ) AS INTEGER ) ) * COUNT ( * ) + NULLIF ( - 54 + COALESCE ( COUNT ( + 98 ), 60 + + COUNT ( * ) * 65, + 87 * 38, - 58 + 97 ), COUNT ( * ) + 42 ) ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT - ( + MAX( ALL - ( + 84 ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-6309
SELECT - ( + MAX ( ALL - ( + 84 ) ) )
----
84

query I rowsort
SELECT DISTINCT - 65 - 21
----
-86

query II rowsort
SELECT DISTINCT - + 28 AS col0, 29 * - 95 * + 14 + + 11 * 62 AS col1
----
-28
-37888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6312
SELECT DISTINCT - COUNT( * ) * COALESCE ( + - 26, - CAST( + COUNT( * ) AS SIGNED ) + CAST( NULL AS SIGNED ) )
----
26

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - COUNT ( * ) * COALESCE ( + - 26, - CAST ( + COUNT ( * ) AS INTEGER ) + CAST ( NULL AS INTEGER ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT COUNT( * ) * + 29 * 30 AS col2
----
870

skipif mysql # not compatible
query I rowsort label-6313
SELECT COUNT ( * ) * + 29 * 30 AS col2
----
870

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT ALL - 40 AS col0, - 0 * CASE + + 64 WHEN - + 61 * 40 + - - COUNT( * ) THEN NULL ELSE - COUNT( * ) - + 50 * + MIN( ( - 56 ) ) END AS col0
----
-40
0

skipif mysql # not compatible
query II rowsort label-6314
SELECT ALL - 40 AS col0, - 0 * CASE + + 64 WHEN - + 61 * 40 + - - COUNT ( * ) THEN NULL ELSE - COUNT ( * ) - + 50 * + MIN ( ( - 56 ) ) END AS col0
----
-40
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6315
SELECT NULLIF ( 80, + ( + + 54 ) ) * - CASE - + 7 WHEN CAST( - - 40 AS SIGNED ) - CAST( NULL AS SIGNED ) THEN NULL ELSE + + 76 + - 98 END + + COUNT( * ) DIV - 7 + + 25 AS col2
----
1785

skipif mysql # not compatible
query I rowsort label-6315
SELECT NULLIF ( 80, + ( + + 54 ) ) * - CASE - + 7 WHEN CAST ( - - 40 AS INTEGER ) - CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 76 + - 98 END + + COUNT ( * ) / - 7 + + 25 AS col2
----
1785

query II rowsort
SELECT ALL - 55 col0, - 18 AS col1
----
-55
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT DISTINCT COUNT( * ) * NULLIF ( 75, + - 12 * - + 83 * 62 * - + COUNT( DISTINCT 33 ) - + COALESCE ( + AVG ( DISTINCT + COALESCE ( - 80, 92, 50 ) ), 21, + NULLIF ( - 84, 11 ) ) ) * 39 AS col0
----
2925

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT COUNT ( * ) * NULLIF ( 75, + - 12 * - + 83 * 62 * - + COUNT ( DISTINCT 33 ) - + COALESCE ( + AVG ( DISTINCT + COALESCE ( - 80, 92, 50 ) ), 21, + NULLIF ( - 84, 11 ) ) ) * 39 AS col0
----
2925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6318
SELECT NULLIF ( + 39, - NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) ) ) DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-6318
SELECT NULLIF ( + 39, - NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) ) ) / 46
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6319
SELECT 36 DIV - + ( + - 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6319
SELECT 36 / - + ( + - 28 ) AS col2
----
1

query I rowsort
SELECT ALL - 44 * - - 62 AS col2
----
-2728

query I rowsort
SELECT 7 * - 35 - - + NULLIF ( - 96, 45 )
----
-341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6322
SELECT - COALESCE ( 99, + 49 + - 56 * - 40 - CAST( + + CASE - 8 WHEN + CASE 80 WHEN + + ( + 82 ) * 7 THEN NULL WHEN ( - 36 ) * 89 THEN + 14 END THEN NULL WHEN CASE WHEN NULL IS NULL THEN + COUNT( * ) END * - 91 THEN ( 35 ) + - CAST( - SUM( 62 ) AS SIGNED ) / 33 WHEN + COUNT( * ) * - 13 + + 32 * 93 THEN + 89 + 8 END AS SIGNED ) * + 92 ) * SUM( + 45 * CAST( NULL AS SIGNED ) ) - ( + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT - COALESCE ( 99, + 49 + - 56 * - 40 - CAST ( + + CASE - 8 WHEN + CASE 80 WHEN + + ( + 82 ) * 7 THEN NULL WHEN ( - 36 ) * 89 THEN + 14 END THEN NULL WHEN CASE WHEN NULL IS NULL THEN + COUNT ( * ) END * - 91 THEN ( 35 ) + - CAST ( - SUM ( 62 ) AS INTEGER ) / 33 WHEN + COUNT ( * ) * - 13 + + 32 * 93 THEN + 89 + 8 END AS INTEGER ) * + 92 ) * SUM ( + 45 * CAST ( NULL AS INTEGER ) ) - ( + 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT DISTINCT - MAX( DISTINCT + 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT - MAX ( DISTINCT + 40 ) AS col0
----
-40

query II rowsort
SELECT ALL - 0 AS col1, 52 - - - 19
----
0
33

query I rowsort
SELECT 35 * + + 69 col1
----
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT - 39 * - - 90 + + COUNT( * ) AS col1
----
-3509

skipif mysql # not compatible
query I rowsort label-6326
SELECT - 39 * - - 90 + + COUNT ( * ) AS col1
----
-3509

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT 81 * ( + 2 ) + - - COALESCE ( 53, + + ( + - 80 ) * 14, - + 88 DIV 69 - 1 * + 36 )
----
215

skipif mysql # not compatible
query I rowsort label-6327
SELECT 81 * ( + 2 ) + - - COALESCE ( 53, + + ( + - 80 ) * 14, - + 88 / 69 - 1 * + 36 )
----
215

query I rowsort
SELECT 54 - + ( + 4 )
----
50

query I rowsort
SELECT 61 * - + 79 AS col1
----
-4819

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6330
SELECT + 63 * ( + 81 ) - - 86 DIV - CAST( + 90 AS SIGNED ) AS col1, 57
----
5103
57

skipif mysql # not compatible
query II rowsort label-6330
SELECT + 63 * ( + 81 ) - - 86 / - CAST ( + 90 AS INTEGER ) AS col1, 57
----
5103
57

query II rowsort
SELECT 12 AS col0, 25 * + - 95
----
12
-2375

query I rowsort
SELECT ALL + - 0 + + 35
----
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6333
SELECT CAST( 71 AS SIGNED ) + + ( - 4 ) DIV 35 * + + 55
----
71

skipif mysql # not compatible
query I rowsort label-6333
SELECT CAST ( 71 AS INTEGER ) + + ( - 4 ) / 35 * + + 55
----
71

query I rowsort
SELECT - 9 + + 20 col1
----
11

query I rowsort
SELECT DISTINCT - - 71 * + 33 AS col2
----
2343

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL - - COUNT( * ) + - 25 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - - COUNT ( * ) + - 25 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6337
SELECT ALL - 79 AS col1, + COUNT( * ) AS col2
----
-79
1

skipif mysql # not compatible
query II rowsort label-6337
SELECT ALL - 79 AS col1, + COUNT ( * ) AS col2
----
-79
1

query I rowsort
SELECT 10 + + 68 * 66
----
4498

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT MIN( ALL 87 ) * - MIN( + ( + - 1 ) ) + - + 32 * + 89
----
-2761

skipif mysql # not compatible
query I rowsort label-6339
SELECT MIN ( ALL 87 ) * - MIN ( + ( + - 1 ) ) + - + 32 * + 89
----
-2761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT DISTINCT + + 95 * + CAST( NULL AS SIGNED ) - - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT + + 95 * + CAST ( NULL AS INTEGER ) - - 89 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT COUNT( * ) + - 4 col1, - 72 AS col1
----
-3
-72

skipif mysql # not compatible
query II rowsort label-6341
SELECT COUNT ( * ) + - 4 col1, - 72 AS col1
----
-3
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - MIN( - + 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6342
SELECT - MIN ( - + 44 ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6343
SELECT 79 + COALESCE ( - 19, 67 - 59 ) - 11 * - + ( + 62 ) + + CAST( NULL AS SIGNED ) AS col2, - 25 * - - 29 - 85 * 14 AS col2
----
NULL
-1915

skipif mysql # not compatible
query II rowsort label-6343
SELECT 79 + COALESCE ( - 19, 67 - 59 ) - 11 * - + ( + 62 ) + + CAST ( NULL AS INTEGER ) AS col2, - 25 * - - 29 - 85 * 14 AS col2
----
NULL
-1915

query I rowsort
SELECT ALL - 17 - - 67 + ( + 98 ) - + 87
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6345
SELECT - 34 + + - ( + CAST( NULL AS SIGNED ) ) + + + 47 - - + 3 + - CASE + 38 WHEN - 55 * + COUNT( * ) * 80 - + 9 THEN 57 * 78 + 23 WHEN + 54 THEN NULL END + ( 15 ) * COUNT( * ) * 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6345
SELECT - 34 + + - ( + CAST ( NULL AS INTEGER ) ) + + + 47 - - + 3 + - CASE + 38 WHEN - 55 * + COUNT ( * ) * 80 - + 9 THEN 57 * 78 + 23 WHEN + 54 THEN NULL END + ( 15 ) * COUNT ( * ) * 82 AS col0
----
NULL

query II rowsort
SELECT ALL 95, + 84 AS col1
----
95
84

query I rowsort
SELECT + 47 + - ( - 54 ) * - NULLIF ( + 32, 45 )
----
-1681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6348
SELECT + + 56 * 4 * - - COUNT( * ) + + 99 AS col2, COALESCE ( - - 43, COUNT( * ), CAST( - 49 AS SIGNED ), MAX( - 91 ) DIV 43 )
----
323
43

skipif mysql # not compatible
query II rowsort label-6348
SELECT + + 56 * 4 * - - COUNT ( * ) + + 99 AS col2, COALESCE ( - - 43, COUNT ( * ), CAST ( - 49 AS INTEGER ), MAX ( - 91 ) / 43 )
----
323
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6349
SELECT + 40 * - + CAST( NULL AS SIGNED ) col1, - 66 col2
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-6349
SELECT + 40 * - + CAST ( NULL AS INTEGER ) col1, - 66 col2
----
NULL
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6350
SELECT ALL 63 * 40 AS col2, + CAST( NULL AS DECIMAL ) * - 20
----
2520
NULL

skipif mysql # not compatible
query II rowsort label-6350
SELECT ALL 63 * 40 AS col2, + CAST ( NULL AS REAL ) * - 20
----
2520
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT - 92 * + CAST( NULL AS SIGNED ) + + - 93 + 57 + 12 * COUNT( * ) * - 50 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT - 92 * + CAST ( NULL AS INTEGER ) + + - 93 + 57 + 12 * COUNT ( * ) * - 50 + + 36
----
NULL

query I rowsort
SELECT + 21 + + 65
----
86

query I rowsort
SELECT ALL 27 * NULLIF ( + 27, - 1 ) AS col0
----
729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6354
SELECT DISTINCT - CASE + 48 WHEN + - 57 - + + 39 * + 81 / + - 27 THEN NULL WHEN + - 73 THEN - + MAX( + 35 ) + - 14 WHEN + + COUNT( CASE - 70 WHEN + 54 THEN + 58 END ) * 92 THEN + CAST( NULL AS DECIMAL ) + - COUNT( * ) WHEN - COUNT( * ) + COUNT( * ) THEN - 44 * + MIN( - 90 ) + - COUNT( * ) * 15 WHEN - 12 + - 42 * 94 THEN NULL ELSE NULL END * ( + 64 ) + - ( 35 + CAST( NULL AS SIGNED ) / + AVG ( ALL 6 / 6 + 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT - CASE + 48 WHEN + - 57 - + + 39 * + 81 / + - 27 THEN NULL WHEN + - 73 THEN - + MAX ( + 35 ) + - 14 WHEN + + COUNT ( CASE - 70 WHEN + 54 THEN + 58 END ) * 92 THEN + CAST ( NULL AS REAL ) + - COUNT ( * ) WHEN - COUNT ( * ) + COUNT ( * ) THEN - 44 * + MIN ( - 90 ) + - COUNT ( * ) * 15 WHEN - 12 + - 42 * 94 THEN NULL ELSE NULL END * ( + 64 ) + - ( 35 + CAST ( NULL AS INTEGER ) / + AVG ( ALL 6 / 6 + 79 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6355
SELECT ALL + 92 * 72 * 63 + + - 6 * + - COALESCE ( + + 42, - ( - 72 ) ) * + 16 + 63 + COUNT( * ) * - NULLIF ( + 12, + 75 DIV - MIN( - 1 * + 99 ) ) DIV + COUNT( * ) AS col2
----
421395

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL + 92 * 72 * 63 + + - 6 * + - COALESCE ( + + 42, - ( - 72 ) ) * + 16 + 63 + COUNT ( * ) * - NULLIF ( + 12, + 75 / - MIN ( - 1 * + 99 ) ) / + COUNT ( * ) AS col2
----
421395

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT + NULLIF ( - - 99, - MIN( 18 ) )
----
99

skipif mysql # not compatible
query I rowsort label-6356
SELECT + NULLIF ( - - 99, - MIN ( 18 ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT CASE - 56 WHEN + + 34 / 39 THEN + + 39 + + 72 WHEN - 12 THEN + CASE NULLIF ( + 83, 0 + + + 47 / + 8 ) WHEN - 64 THEN + MIN( + 5 ) WHEN + 48 THEN ( 28 ) END * + 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT CASE - 56 WHEN + + 34 / 39 THEN + + 39 + + 72 WHEN - 12 THEN + CASE NULLIF ( + 83, 0 + + + 47 / + 8 ) WHEN - 64 THEN + MIN ( + 5 ) WHEN + 48 THEN ( 28 ) END * + 19 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6358
SELECT MAX( - 29 ) AS col2, 8
----
-29
8

skipif mysql # not compatible
query II rowsort label-6358
SELECT MAX ( - 29 ) AS col2, 8
----
-29
8

query I rowsort
SELECT + 38 * 13 AS col0
----
494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6360
SELECT - COUNT( * ) + - COUNT( CAST( NULL AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6360
SELECT - COUNT ( * ) + - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6361
SELECT ALL ( - + MAX( - + 33 ) ) DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL ( - + MAX ( - + 33 ) ) / + 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT DISTINCT + 60 * + ( + 56 ) + + ( COUNT( DISTINCT 43 ) )
----
3361

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT + 60 * + ( + 56 ) + + ( COUNT ( DISTINCT 43 ) )
----
3361

query I rowsort
SELECT + NULLIF ( - 49, + - 42 + 20 - + 37 )
----
-49

query I rowsort
SELECT ALL 40 * 62 + + + 32 AS col1
----
2512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6365
SELECT + COUNT( * ) * CAST( - + 89 AS SIGNED ) * + - 13 - + + 54, 69 * + + 21 AS col2
----
1103
1449

skipif mysql # not compatible
query II rowsort label-6365
SELECT + COUNT ( * ) * CAST ( - + 89 AS INTEGER ) * + - 13 - + + 54, 69 * + + 21 AS col2
----
1103
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL ( - 33 ) * + - 37 * - 77 + COUNT( * ) AS col2
----
-94016

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL ( - 33 ) * + - 37 * - 77 + COUNT ( * ) AS col2
----
-94016

query I rowsort
SELECT ALL + + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT ALL - ( - - CASE + 90 WHEN - - 57 + + ( 70 ) * 27 THEN - NULLIF ( 25, - - 37 ) * - - 17 ELSE - - COUNT( ALL 95 ) * + 78 + COUNT( DISTINCT 21 ) END ) + 43
----
-36

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL - ( - - CASE + 90 WHEN - - 57 + + ( 70 ) * 27 THEN - NULLIF ( 25, - - 37 ) * - - 17 ELSE - - COUNT ( ALL 95 ) * + 78 + COUNT ( DISTINCT 21 ) END ) + 43
----
-36

query I rowsort
SELECT ALL 76 + + 14 + + + 71 AS col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT - + CASE + - 65 WHEN 1 THEN CASE 90 WHEN 56 THEN NULL WHEN 60 THEN 94 * + 23 END WHEN - - COUNT( * ) THEN NULL ELSE 17 END col1
----
-17

skipif mysql # not compatible
query I rowsort label-6370
SELECT - + CASE + - 65 WHEN 1 THEN CASE 90 WHEN 56 THEN NULL WHEN 60 THEN 94 * + 23 END WHEN - - COUNT ( * ) THEN NULL ELSE 17 END col1
----
-17

query I rowsort
SELECT + - NULLIF ( 79, - - 85 ) - 1 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - COUNT( 4 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6372
SELECT - COUNT ( 4 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT - 96 * - COUNT( * ) * 69
----
6624

skipif mysql # not compatible
query I rowsort label-6373
SELECT - 96 * - COUNT ( * ) * 69
----
6624

query I rowsort
SELECT ALL + - 93 * - + 36
----
3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6375
SELECT ALL + + 18 * - CASE + 15 WHEN - 79 * + 23 THEN NULL WHEN - 29 THEN 81 END * + COUNT( * ) + - COUNT( * ) / 38 * - MIN( 39 ) - - ( - NULLIF ( 85, 67 / 78 + - 82 * + 49 ) ) * - NULLIF ( + 37, 40 * + CAST( NULL AS SIGNED ) + - 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + + 18 * - CASE + 15 WHEN - 79 * + 23 THEN NULL WHEN - 29 THEN 81 END * + COUNT ( * ) + - COUNT ( * ) / 38 * - MIN ( 39 ) - - ( - NULLIF ( 85, 67 / 78 + - 82 * + 49 ) ) * - NULLIF ( + 37, 40 * + CAST ( NULL AS INTEGER ) + - 35 ) AS col2
----
NULL

query I rowsort
SELECT - + 2 * + 24
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6377
SELECT ALL + + 1 * + COALESCE ( + 5, - MIN( - 9 ) * 81 + 42 + + - 69 - MAX( ALL 38 ) - - - 3 + + SUM( 95 ) + + 64 * + CAST( NULL AS SIGNED ) * + 62, + 58 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL + + 1 * + COALESCE ( + 5, - MIN ( - 9 ) * 81 + 42 + + - 69 - MAX ( ALL 38 ) - - - 3 + + SUM ( 95 ) + + 64 * + CAST ( NULL AS INTEGER ) * + 62, + 58 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT - + 52 DIV 97 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-6378
SELECT - + 52 / 97 / 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT - 98 * + MIN( ALL - + ( - 59 ) )
----
-5782

skipif mysql # not compatible
query I rowsort label-6379
SELECT - 98 * + MIN ( ALL - + ( - 59 ) )
----
-5782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT - 68 + + NULLIF ( COUNT( * ), + 84 + - CAST( NULL AS SIGNED ) ) + + 86 + COUNT( * ) + + CAST( NULL AS SIGNED ) / + + 26 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT - 68 + + NULLIF ( COUNT ( * ), + 84 + - CAST ( NULL AS INTEGER ) ) + + 86 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) / + + 26 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT DISTINCT CAST( 64 AS SIGNED ) col0
----
64

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT CAST ( 64 AS INTEGER ) col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT - 4 DIV - ( - 48 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6382
SELECT - 4 / - ( - 48 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6383
SELECT ALL CAST( NULL AS SIGNED ) / + AVG ( DISTINCT + - 85 ), CASE COUNT( * ) WHEN + - 34 * 72 / - 73 * + - 88 * NULLIF ( + + 75, - CAST( 1 AS SIGNED ) * - ( - 53 ) ) / 52 + - CASE - 58 WHEN 16 * - 7 THEN + 51 WHEN + ( 92 ) THEN NULL ELSE 46 - 41 * 72 END THEN 61 END * + 25
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6383
SELECT ALL CAST ( NULL AS INTEGER ) / + AVG ( DISTINCT + - 85 ), CASE COUNT ( * ) WHEN + - 34 * 72 / - 73 * + - 88 * NULLIF ( + + 75, - CAST ( 1 AS INTEGER ) * - ( - 53 ) ) / 52 + - CASE - 58 WHEN 16 * - 7 THEN + 51 WHEN + ( 92 ) THEN NULL ELSE 46 - 41 * 72 END THEN 61 END * + 25
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6384
SELECT DISTINCT - 81 DIV 83 * - 34 + + 5 + + 24 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT - 81 / 83 * - 34 + + 5 + + 24 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT + MAX( - 20 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6385
SELECT + MAX ( - 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6386
SELECT DISTINCT - 42 DIV COUNT( * ) + - - 51 * - COALESCE ( - + MAX( DISTINCT - - 0 ), - 99 + - 39 * - 71, 93, - - 11 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - 42 / COUNT ( * ) + - - 51 * - COALESCE ( - + MAX ( DISTINCT - - 0 ), - 99 + - 39 * - 71, 93, - - 11 ) AS col0
----
-42

query I rowsort
SELECT + 50 * + - 96 * - 2 col0
----
9600

query I rowsort
SELECT - 38 + - 79 AS col2
----
-117

query I rowsort
SELECT DISTINCT ( + - 14 ) * - 34
----
476

query I rowsort
SELECT - 14 + - 32 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6391
SELECT + NULLIF ( + MIN( 31 ), CAST( NULL AS SIGNED ) ) * 84 + ( + 35 ) col2
----
2639

skipif mysql # not compatible
query I rowsort label-6391
SELECT + NULLIF ( + MIN ( 31 ), CAST ( NULL AS INTEGER ) ) * 84 + ( + 35 ) col2
----
2639

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT ALL - 32 DIV 33 + - 1 + + 88 DIV 11
----
7

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL - 32 / 33 + - 1 + + 88 / 11
----
7

query I rowsort
SELECT ALL 36 * + 85 + + + 96 AS col2
----
3156

query II rowsort
SELECT ALL + - 97 * + 40 + + - 74 AS col0, - COALESCE ( + 63, - - 10 * + 22, + - 25 ) + + 72 AS col2
----
-3954
9

query II rowsort
SELECT DISTINCT + - 65 AS col0, 41 - + + 0
----
-65
41

query I rowsort
SELECT ( + 25 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT + 13 * + COUNT( * ) + + + ( - 89 )
----
-76

skipif mysql # not compatible
query I rowsort label-6397
SELECT + 13 * + COUNT ( * ) + + + ( - 89 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT + - ( 34 ) * COUNT( * ) * - COUNT( * ) - 98
----
-64

skipif mysql # not compatible
query I rowsort label-6398
SELECT + - ( 34 ) * COUNT ( * ) * - COUNT ( * ) - 98
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6399
SELECT - 51, + COUNT( * ) DIV + 36 AS col0
----
-51
0

skipif mysql # not compatible
query II rowsort label-6399
SELECT - 51, + COUNT ( * ) / + 36 AS col0
----
-51
0

query I rowsort
SELECT - ( - - 27 ) AS col0
----
-27

query I rowsort
SELECT + 93 + - 29 AS col2
----
64

query I rowsort
SELECT ALL + - 66 * + 99 AS col2
----
-6534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6403
SELECT ALL CAST( 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL CAST ( 69 AS INTEGER )
----
69

query II rowsort
SELECT DISTINCT 41 AS col0, - 71 AS col2
----
41
-71

query I rowsort
SELECT 42 + - 54
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT 88 + 23 + - + 90 * + + MIN( DISTINCT + 88 ) + - 90 * - 32 AS col2
----
-4929

skipif mysql # not compatible
query I rowsort label-6406
SELECT 88 + 23 + - + 90 * + + MIN ( DISTINCT + 88 ) + - 90 * - 32 AS col2
----
-4929

query II rowsort
SELECT 40 AS col1, - 17 + 47
----
40
30

query I rowsort
SELECT - 96 * + 77
----
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT 77 * + COUNT( * ) + - MAX( DISTINCT + 67 )
----
10

skipif mysql # not compatible
query I rowsort label-6409
SELECT 77 * + COUNT ( * ) + - MAX ( DISTINCT + 67 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6410
SELECT 10 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT 10 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT 20 + - + 3 * + CASE 23 WHEN - 18 * - + 25 - - + CAST( NULL AS SIGNED ) THEN - - SUM( DISTINCT + + 72 ) * + - ( - 44 ) + - - 26 * - - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT 20 + - + 3 * + CASE 23 WHEN - 18 * - + 25 - - + CAST ( NULL AS INTEGER ) THEN - - SUM ( DISTINCT + + 72 ) * + - ( - 44 ) + - - 26 * - - 69 END
----
NULL

query II rowsort
SELECT ALL NULLIF ( + - 90, - 90 ) + + + 77 + - NULLIF ( 23, + 63 ) AS col0, 54
----
NULL
54

query I rowsort
SELECT 29 + - ( + 29 ) * - + 13 * + 96 + + + 31
----
36252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6414
SELECT DISTINCT - CAST( - + 65 AS SIGNED ) + - MIN( + 27 ) + - + 0
----
38

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT - CAST ( - + 65 AS INTEGER ) + - MIN ( + 27 ) + - + 0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT + ( + + COUNT( * ) ) + + - 60 + + + 52 + + 57 * + - 77
----
-4396

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT + ( + + COUNT ( * ) ) + + - 60 + + + 52 + + 57 * + - 77
----
-4396

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT 13 DIV - 83 + - - 35
----
35

skipif mysql # not compatible
query I rowsort label-6416
SELECT 13 / - 83 + - - 35
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6417
SELECT ALL + CAST( NULL AS SIGNED ) * - 66 AS col2, - 26
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-6417
SELECT ALL + CAST ( NULL AS INTEGER ) * - 66 AS col2, - 26
----
NULL
-26

query I rowsort
SELECT 44 + + 68 AS col0
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-6419
SELECT ALL 79 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL 79 / - 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT ALL - CAST( 1 AS SIGNED ) - - 92 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL - CAST ( 1 AS INTEGER ) - - 92 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT 60 * - SUM( + + 6 ) AS col2
----
-360

skipif mysql # not compatible
query I rowsort label-6421
SELECT 60 * - SUM ( + + 6 ) AS col2
----
-360

query I rowsort
SELECT DISTINCT 14 * 75 AS col2
----
1050

onlyif mysql # aggregate syntax: 
query II rowsort label-6423
SELECT ALL MIN( - - 0 ) - + COUNT( * ) + + COUNT( * ) + 26 AS col2, 22 AS col2
----
26
22

skipif mysql # not compatible
query II rowsort label-6423
SELECT ALL MIN ( - - 0 ) - + COUNT ( * ) + + COUNT ( * ) + 26 AS col2, 22 AS col2
----
26
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6424
SELECT CAST( CASE + 23 WHEN - 41 THEN 59 WHEN + 6 THEN NULL END AS SIGNED ) * ( + COALESCE ( MIN( - 25 ), 80, + 4 ) ) + 40 + 38 + 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT CAST ( CASE + 23 WHEN - 41 THEN 59 WHEN + 6 THEN NULL END AS INTEGER ) * ( + COALESCE ( MIN ( - 25 ), 80, + 4 ) ) + 40 + 38 + 7 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6425
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) AS col0, - 8
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-6425
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) AS col0, - 8
----
NULL
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6426
SELECT 8 * - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT 8 * - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6427
SELECT 67 + - ( + MAX( DISTINCT 73 ) ) AS col1, CAST( + 62 AS SIGNED )
----
-6
62

skipif mysql # not compatible
query II rowsort label-6427
SELECT 67 + - ( + MAX ( DISTINCT 73 ) ) AS col1, CAST ( + 62 AS INTEGER )
----
-6
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT - - 59 * COUNT( ALL + 76 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT - - 59 * COUNT ( ALL + 76 ) AS col0
----
59

query I rowsort
SELECT 35 * 41 + + - COALESCE ( 54, 95 ) + - 96 AS col1
----
1285

query I rowsort
SELECT DISTINCT - + 9 * - - 39 + + 64 AS col0
----
-287

query I rowsort
SELECT ALL - + ( - 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6432
SELECT DISTINCT CAST( + AVG ( - + 79 ) AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT CAST ( + AVG ( - + 79 ) AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT DISTINCT COALESCE ( - 92, - COUNT( * ) + + + 85 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT COALESCE ( - 92, - COUNT ( * ) + + + 85 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT DISTINCT 1 + - + 18 * - ( + COUNT( * ) ) - - 63
----
82

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT 1 + - + 18 * - ( + COUNT ( * ) ) - - 63
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6435
SELECT + 80 DIV 6 + 86 + 34 * 16 + - + 47
----
596

skipif mysql # not compatible
query I rowsort label-6435
SELECT + 80 / 6 + 86 + 34 * 16 + - + 47
----
596

query I rowsort
SELECT DISTINCT 29 * - + 92 + + 36 * ( + 41 )
----
-1192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6437
SELECT CAST( NULL AS SIGNED ) * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT CAST ( NULL AS INTEGER ) * + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL MIN( - 90 ) + 47
----
-43

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL MIN ( - 90 ) + 47
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT DISTINCT CASE - - 3 WHEN COUNT( * ) + + COUNT( * ) * + 0 + + 98 THEN NULL WHEN + - 72 + + 4 + 6 THEN - ( + ( 47 ) ) + COUNT( * ) ELSE NULL END + + 2 * ( - 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT CASE - - 3 WHEN COUNT ( * ) + + COUNT ( * ) * + 0 + + 98 THEN NULL WHEN + - 72 + + 4 + 6 THEN - ( + ( 47 ) ) + COUNT ( * ) ELSE NULL END + + 2 * ( - 55 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6440
SELECT ALL 50 + + COUNT( * ) * 22, 1 AS col1
----
72
1

skipif mysql # not compatible
query II rowsort label-6440
SELECT ALL 50 + + COUNT ( * ) * 22, 1 AS col1
----
72
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6441
SELECT NULLIF ( - 49, + - 74 ) - + MAX( DISTINCT - - 59 ), + CAST( + 15 AS SIGNED ) col0
----
-108
15

skipif mysql # not compatible
query II rowsort label-6441
SELECT NULLIF ( - 49, + - 74 ) - + MAX ( DISTINCT - - 59 ), + CAST ( + 15 AS INTEGER ) col0
----
-108
15

query I rowsort
SELECT ALL - 45 * - 18 AS col2
----
810

query I rowsort
SELECT DISTINCT 66 * + + 57 - 65
----
3697

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT DISTINCT - ( + COALESCE ( + COUNT( * ), - 53 + + MIN( ALL 64 ) ) ) AS col1, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-6444
SELECT DISTINCT - ( + COALESCE ( + COUNT ( * ), - 53 + + MIN ( ALL 64 ) ) ) AS col1, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT ALL - 46 * + NULLIF ( - + 86, - + 75 ) * - 24 + - 60 * 60 AS col2
----
-98544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6446
SELECT ALL - NULLIF ( 86, CAST( NULL AS SIGNED ) / + 89 + + 32 + - 92 )
----
-86

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - NULLIF ( 86, CAST ( NULL AS INTEGER ) / + 89 + + 32 + - 92 )
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT - 47 DIV + ( - 28 ) + - 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6447
SELECT - 47 / + ( - 28 ) + - 24 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT COUNT( * ) AS col0, 58
----
1
58

skipif mysql # not compatible
query II rowsort label-6448
SELECT COUNT ( * ) AS col0, 58
----
1
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6449
SELECT + CASE + ( 82 ) WHEN - 89 THEN NULL WHEN CAST( NULL AS SIGNED ) * 37 * + 33 THEN NULL ELSE - COUNT( * ) END AS col0, + 64 AS col1
----
-1
64

skipif mysql # not compatible
query II rowsort label-6449
SELECT + CASE + ( 82 ) WHEN - 89 THEN NULL WHEN CAST ( NULL AS INTEGER ) * 37 * + 33 THEN NULL ELSE - COUNT ( * ) END AS col0, + 64 AS col1
----
-1
64

query I rowsort
SELECT + NULLIF ( 81, - 28 ) * 97 * - 33
----
-259281

onlyif mysql # DIV for integer division: 
query I rowsort label-6451
SELECT 20 * 71 DIV - 13
----
-109

skipif mysql # not compatible
query I rowsort label-6451
SELECT 20 * 71 / - 13
----
-109

query I rowsort
SELECT - ( - + COALESCE ( - ( - - 24 ), - + 53 * 98 + 93 * 65 * - 54 * - + 67 * + 36 ) ) AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6453
SELECT 22 * - 49 + - + CASE - 92 WHEN + - NULLIF ( + 91, + 63 * - 84 + + + 79 + - CAST( + CASE - 91 WHEN 22 THEN - COALESCE ( + CAST( AVG ( DISTINCT 8 ) AS SIGNED ), + CASE 41 WHEN COUNT( * ) THEN - ( 99 ) ELSE NULL END ) WHEN + 69 * - 42 THEN - 80 END AS SIGNED ) ) THEN 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT 22 * - 49 + - + CASE - 92 WHEN + - NULLIF ( + 91, + 63 * - 84 + + + 79 + - CAST ( + CASE - 91 WHEN 22 THEN - COALESCE ( + CAST ( AVG ( DISTINCT 8 ) AS INTEGER ), + CASE 41 WHEN COUNT ( * ) THEN - ( 99 ) ELSE NULL END ) WHEN + 69 * - 42 THEN - 80 END AS INTEGER ) ) THEN 32 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT DISTINCT - 91 * ( COALESCE ( - - 10, + - 92 ) ) * + COUNT( * )
----
-910

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT - 91 * ( COALESCE ( - - 10, + - 92 ) ) * + COUNT ( * )
----
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT + - NULLIF ( + - 66, - - 57 * COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT + - NULLIF ( + - 66, - - 57 * COUNT ( * ) )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT ALL + + 86 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL + + 86 / 88 AS col2
----
0

query I rowsort
SELECT 6 * + 11 + + + 27
----
93

query I rowsort
SELECT - 84 * + - 47 * 72 + + 73 AS col1
----
284329

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - COUNT( * ) + - 35 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6459
SELECT - COUNT ( * ) + - 35 AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT - MAX( DISTINCT - 52 ) + - ( 86 )
----
-34

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - MAX ( DISTINCT - 52 ) + - ( 86 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6461
SELECT COUNT( * ) * 51 * - CASE + COUNT( * ) WHEN 74 + 52 THEN 10 END - - + CAST( + 16 AS SIGNED ) + 20 AS col2, MIN( 90 ) - + CAST( NULL AS SIGNED ) col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6461
SELECT COUNT ( * ) * 51 * - CASE + COUNT ( * ) WHEN 74 + 52 THEN 10 END - - + CAST ( + 16 AS INTEGER ) + 20 AS col2, MIN ( 90 ) - + CAST ( NULL AS INTEGER ) col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT - + 28 * - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6462
SELECT - + 28 * - COUNT ( * ) AS col1
----
28

query II rowsort
SELECT ALL + + 95 AS col1, 11 * + 82
----
95
902

query I rowsort
SELECT ALL 17 + - 66 + - 54
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-6465
SELECT - 87 * + + ( 72 ) * + + MIN( 64 ) + + 13 + + COUNT( DISTINCT + 46 ) AS col0, + NULLIF ( - 52, + CASE - + 72 WHEN + 77 THEN - 98 END + - ( - 71 ) ) AS col1
----
-400882
-52

skipif mysql # not compatible
query II rowsort label-6465
SELECT - 87 * + + ( 72 ) * + + MIN ( 64 ) + + 13 + + COUNT ( DISTINCT + 46 ) AS col0, + NULLIF ( - 52, + CASE - + 72 WHEN + 77 THEN - 98 END + - ( - 71 ) ) AS col1
----
-400882
-52

query I rowsort
SELECT DISTINCT + 35 + + - 15
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT DISTINCT + COUNT( + 30 ) + + COUNT( * ) / - CASE - 77 WHEN + - 65 THEN - - 33 + - + 17 * - 99 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + COUNT ( + 30 ) + + COUNT ( * ) / - CASE - 77 WHEN + - 65 THEN - - 33 + - + 17 * - 99 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL 87 + - COUNT( * ) * + - 43 * + + 39
----
1764

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL 87 + - COUNT ( * ) * + - 43 * + + 39
----
1764

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT 67 AS col1, - COUNT( * )
----
67
-1

skipif mysql # not compatible
query II rowsort label-6469
SELECT 67 AS col1, - COUNT ( * )
----
67
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT - 63 + - 87 * + MIN( ALL - 74 ) AS col2
----
6375

skipif mysql # not compatible
query I rowsort label-6470
SELECT - 63 + - 87 * + MIN ( ALL - 74 ) AS col2
----
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT - CASE 11 WHEN 72 THEN + 3 WHEN 57 THEN NULL WHEN + 73 THEN NULL ELSE + COUNT( * ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6471
SELECT - CASE 11 WHEN 72 THEN + 3 WHEN 57 THEN NULL WHEN + 73 THEN NULL ELSE + COUNT ( * ) END AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6472
SELECT + 27 * + 67, MAX( - 19 ) AS col1
----
1809
-19

skipif mysql # not compatible
query II rowsort label-6472
SELECT + 27 * + 67, MAX ( - 19 ) AS col1
----
1809
-19

query II rowsort
SELECT - 39 + - 88 AS col1, 44
----
-127
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6474
SELECT ALL CASE + + 73 WHEN - NULLIF ( - - NULLIF ( + - 32, - COUNT( * ) ), - 2 ) + + 48 + - 25 + - 55 THEN 37 ELSE + CAST( NULL AS SIGNED ) END + + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL CASE + + 73 WHEN - NULLIF ( - - NULLIF ( + - 32, - COUNT ( * ) ), - 2 ) + + 48 + - 25 + - 55 THEN 37 ELSE + CAST ( NULL AS INTEGER ) END + + 4 AS col1
----
NULL

query I rowsort
SELECT - ( - + 19 )
----
19

query I rowsort
SELECT + 33 + 63
----
96

query I rowsort
SELECT + 91 * + + 58 AS col0
----
5278

query I rowsort
SELECT ALL 3 * + 94 * - 43
----
-12126

query I rowsort
SELECT + 9 + - - NULLIF ( + 98, - 53 / 51 ) AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL 79 * - + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL 79 * - + COUNT ( * )
----
-79

query I rowsort
SELECT + 85 + 34
----
119

query I rowsort
SELECT ALL 97 - + 49 + + 65 AS col1
----
113

query I rowsort
SELECT DISTINCT 8 * + 86 AS col2
----
688

query II rowsort
SELECT 53 AS col2, 63 * - 1
----
53
-63

query I rowsort
SELECT + 67 * 23 AS col1
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT + CASE - 83 WHEN + 27 THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT + CASE - 83 WHEN + 27 THEN + + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT + 2 * + + COUNT( * ) AS col0, 4
----
2
4

skipif mysql # not compatible
query II rowsort label-6487
SELECT + 2 * + + COUNT ( * ) AS col0, 4
----
2
4

query II rowsort
SELECT ALL + - 76, COALESCE ( + + 38, + + 79 ) AS col1
----
-76
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6489
SELECT ALL - - MAX( ( + - 78 ) ) * 98 - - 50 DIV + - COUNT( * ) + - 55 * - 90 * + - 4 + + + 18 + + 51 DIV - COUNT( * ) AS col0
----
-27527

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - - MAX ( ( + - 78 ) ) * 98 - - 50 / + - COUNT ( * ) + - 55 * - 90 * + - 4 + + + 18 + + 51 / - COUNT ( * ) AS col0
----
-27527

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT DISTINCT + ( - MIN( 76 ) ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT + ( - MIN ( 76 ) ) col1
----
-76

query I rowsort
SELECT ALL - + 59 * - + 91 * + 25
----
134225

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - - 18 * - + COUNT( * ) - 71 + + - ( + - 8 ) + + - 57 AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-6492
SELECT - - 18 * - + COUNT ( * ) - 71 + + - ( + - 8 ) + + - 57 AS col0
----
-138

query I rowsort
SELECT - 46 * + - 63 + 89 AS col2
----
2987

query I rowsort
SELECT + + 74 * - 21 col0
----
-1554

query I rowsort
SELECT - 5 * + 93 * - 15 AS col1
----
6975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT - + 94 + 73 / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT - + 94 + 73 / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 96 col0, 66
----
96
66

query II rowsort
SELECT + 76, + ( - 28 ) AS col1
----
76
-28

query I rowsort
SELECT ALL - 71 * + 69 + 11 AS col1
----
-4888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6500
SELECT + 27 AS col2, CAST( NULL AS SIGNED ) * COUNT( * ) * + - 68 * - COUNT( * ) + + 49
----
27
NULL

skipif mysql # not compatible
query II rowsort label-6500
SELECT + 27 AS col2, CAST ( NULL AS INTEGER ) * COUNT ( * ) * + - 68 * - COUNT ( * ) + + 49
----
27
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 95, + + CASE + 45 WHEN - - 65 + + 81 + 52 THEN + - 48 END ) * + 87 + + + 95 + - 74 + + + 28
----
8314

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT ALL + 47 DIV - + 66 + - 5
----
-5

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + 47 / - + 66 + - 5
----
-5

query I rowsort
SELECT ( + - 93 ) AS col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT ALL + + 75 DIV - 83 DIV 22 * 68 * + + 52
----
0

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL + + 75 / - 83 / 22 * 68 * + + 52
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6505
SELECT + + COUNT( * ) DIV + + 63 AS col1, 68
----
0
68

skipif mysql # not compatible
query II rowsort label-6505
SELECT + + COUNT ( * ) / + + 63 AS col1, 68
----
0
68

query I rowsort
SELECT - - 72 - + ( - ( 58 ) ) col1
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6507
SELECT - - 55, + CAST( + - COALESCE ( - 52, 87 ) AS SIGNED ) AS col1
----
55
52

skipif mysql # not compatible
query II rowsort label-6507
SELECT - - 55, + CAST ( + - COALESCE ( - 52, 87 ) AS INTEGER ) AS col1
----
55
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT - 22 + + + 18 DIV MIN( - 14 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6508
SELECT - 22 + + + 18 / MIN ( - 14 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT - MIN( - - 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6509
SELECT - MIN ( - - 78 ) AS col1
----
-78

query I rowsort
SELECT + 4 * + 49
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6511
SELECT DISTINCT CAST( - 52 AS SIGNED ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT CAST ( - 52 AS INTEGER ) AS col0
----
-52

query I rowsort
SELECT DISTINCT + COALESCE ( + 24, - 8 ) - + + 57
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL - 18 - + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL - 18 - + + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL + ( - 39 ) * - 75 + - COUNT( * ) + 47 + NULLIF ( - - COUNT( * ), + 45 )
----
2972

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL + ( - 39 ) * - 75 + - COUNT ( * ) + 47 + NULLIF ( - - COUNT ( * ), + 45 )
----
2972

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - MIN( DISTINCT - 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6515
SELECT - MIN ( DISTINCT - 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT - ( + 57 ) AS col0, + COUNT( - - 35 )
----
-57
1

skipif mysql # not compatible
query II rowsort label-6516
SELECT - ( + 57 ) AS col0, + COUNT ( - - 35 )
----
-57
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT DISTINCT 96 DIV 91 col0
----
1

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT 96 / 91 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT + CAST( NULL AS SIGNED ) * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT + CAST ( NULL AS INTEGER ) * 55 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6519
SELECT CASE + 32 WHEN 88 THEN - 45 + - CAST( + 17 AS SIGNED ) + 62 / + + 20 * + 84 END - - AVG ( ALL + ( - - 54 ) ) + + + 68 + + + COUNT( * ) * + 64 * - - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT CASE + 32 WHEN 88 THEN - 45 + - CAST ( + 17 AS INTEGER ) + 62 / + + 20 * + 84 END - - AVG ( ALL + ( - - 54 ) ) + + + 68 + + + COUNT ( * ) * + 64 * - - 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - + NULLIF ( 26, 82 * - ( - COUNT( * ) ) ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-6520
SELECT - + NULLIF ( 26, 82 * - ( - COUNT ( * ) ) ) col1
----
-26

query I rowsort
SELECT ALL - + NULLIF ( + 27, - - 46 ) col1
----
-27

query I rowsort
SELECT 52 * + 39 AS col0
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT DISTINCT - COUNT( DISTINCT + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT - COUNT ( DISTINCT + 58 )
----
-1

query I rowsort
SELECT ALL + 83 + 20 AS col1
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT + CAST( NULL AS SIGNED ) * - 53 * 6 + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6525
SELECT + CAST ( NULL AS INTEGER ) * - 53 * 6 + - 86 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6526
SELECT 3 DIV + 12 + 27
----
27

skipif mysql # not compatible
query I rowsort label-6526
SELECT 3 / + 12 + 27
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6527
SELECT + CAST( NULL AS SIGNED ) * - ( - - COUNT( - + 14 ) ) - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT + CAST ( NULL AS INTEGER ) * - ( - - COUNT ( - + 14 ) ) - 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT - CAST( NULL AS SIGNED ) + ( - 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6528
SELECT - CAST ( NULL AS INTEGER ) + ( - 89 ) AS col0
----
NULL

query I rowsort
SELECT 21 * - 92 AS col2
----
-1932

query I rowsort
SELECT DISTINCT + ( - - 28 ) + - - 51 * 83 AS col2
----
4261

onlyif mysql # aggregate syntax: 
query II rowsort label-6531
SELECT + - ( - 94 ), - COUNT( * ) + + COUNT( * ) AS col2
----
94
0

skipif mysql # not compatible
query II rowsort label-6531
SELECT + - ( - 94 ), - COUNT ( * ) + + COUNT ( * ) AS col2
----
94
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + COUNT( DISTINCT + 98 ) + - 74
----
-73

skipif mysql # not compatible
query I rowsort label-6532
SELECT + COUNT ( DISTINCT + 98 ) + - 74
----
-73

query II rowsort
SELECT DISTINCT + 18 * - + 71 AS col0, - 16 col2
----
-1278
-16

query I rowsort
SELECT - 96 * + 85 AS col2
----
-8160

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT - 5 DIV - 40 col0
----
0

skipif mysql # not compatible
query I rowsort label-6535
SELECT - 5 / - 40 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6536
SELECT DISTINCT - CAST( - 17 AS SIGNED ) - + 31
----
-14

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT - CAST ( - 17 AS INTEGER ) - + 31
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT 48 + + - 69 - + + 9 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT 48 + + - 69 - + + 9 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 54 * + + 73
----
3942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6539
SELECT - 56 col2, + COUNT( * ) + + CAST( - 22 AS SIGNED )
----
-56
-21

skipif mysql # not compatible
query II rowsort label-6539
SELECT - 56 col2, + COUNT ( * ) + + CAST ( - 22 AS INTEGER )
----
-56
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6540
SELECT 70 - + 75 DIV + 60 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-6540
SELECT 70 - + 75 / + 60 AS col1
----
69

query I rowsort
SELECT 44 + + 45 col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT 80 - - CAST( - - 28 AS SIGNED ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-6542
SELECT 80 - - CAST ( - - 28 AS INTEGER ) AS col0
----
108

query II rowsort
SELECT ALL 15, - 33 * - 34 * 31 col2
----
15
34782

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT DISTINCT + 14 * + - COALESCE ( + - 11, - COUNT( * ) + - 75 ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-6544
SELECT DISTINCT + 14 * + - COALESCE ( + - 11, - COUNT ( * ) + - 75 ) AS col1
----
154

query I rowsort
SELECT 70 + + + 66
----
136

query II rowsort
SELECT 24 col2, 12 AS col1
----
24
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT 79 + - COUNT( * ) + 33 * 78 DIV + 54
----
125

skipif mysql # not compatible
query I rowsort label-6547
SELECT 79 + - COUNT ( * ) + 33 * 78 / + 54
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-6548
SELECT ALL 81 AS col0, SUM( - - 99 ) + 7
----
81
106

skipif mysql # not compatible
query II rowsort label-6548
SELECT ALL 81 AS col0, SUM ( - - 99 ) + 7
----
81
106

query I rowsort
SELECT DISTINCT + 15 + 34 + - COALESCE ( + 76, + 70 + 68 ) + + 1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6550
SELECT MIN( - 13 ) + + - 8 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT MIN ( - 13 ) + + - 8 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 13 + - + 35
----
-22

query I rowsort
SELECT - 64 + - - 24
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT 46 DIV + 25 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6553
SELECT 46 / + 25 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT + COUNT( * ) * - + 31 + - 52 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6554
SELECT + COUNT ( * ) * - + 31 + - 52 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT COUNT( 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6555
SELECT COUNT ( 2 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT + NULLIF ( + - 94, - 0 - + COUNT( * ) )
----
-94

skipif mysql # not compatible
query I rowsort label-6556
SELECT + NULLIF ( + - 94, - 0 - + COUNT ( * ) )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT + ( + 16 ) DIV - 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT + ( + 16 ) / - 97 col0
----
0

query I rowsort
SELECT ALL 84 * - COALESCE ( - 4, - + ( - 50 ) )
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT - 69 * - - NULLIF ( - 54, 15 ) + - 96 + + 71 + - 6 + - COUNT( * ) + - COUNT( * ) * 74 * - COUNT( * ) * MAX( DISTINCT 75 ) * + 32 * - NULLIF ( 63, + ( - 39 ) ) AS col2
----
-11185106

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - 69 * - - NULLIF ( - 54, 15 ) + - 96 + + 71 + - 6 + - COUNT ( * ) + - COUNT ( * ) * 74 * - COUNT ( * ) * MAX ( DISTINCT 75 ) * + 32 * - NULLIF ( 63, + ( - 39 ) ) AS col2
----
-11185106

query I rowsort
SELECT ALL 41 - - 98 + + 47 AS col0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6561
SELECT - 11 - CAST( - 65 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-6561
SELECT - 11 - CAST ( - 65 AS INTEGER )
----
54

query I rowsort
SELECT ALL + NULLIF ( 22, 37 * + 22 ) * + 52 * + 24 AS col2
----
27456

query II rowsort
SELECT - 23 AS col1, 88 AS col0
----
-23
88

query I rowsort
SELECT DISTINCT 39 - - 51 col0
----
90

query I rowsort
SELECT - 13 * 20 + - 21 + - 54
----
-335

query I rowsort
SELECT DISTINCT 22 - - ( + 99 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT COUNT( + 47 ) + + NULLIF ( 5, - 29 )
----
6

skipif mysql # not compatible
query I rowsort label-6567
SELECT COUNT ( + 47 ) + + NULLIF ( 5, - 29 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6568
SELECT - CASE + COUNT( * ) WHEN 55 THEN + 56 END AS col1, 62 AS col0
----
NULL
62

skipif mysql # not compatible
query II rowsort label-6568
SELECT - CASE + COUNT ( * ) WHEN 55 THEN + 56 END AS col1, 62 AS col0
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT COUNT( * ) * + 51 + - 53 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6569
SELECT COUNT ( * ) * + 51 + - 53 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT ALL + 28 + - NULLIF ( - 53, - CAST( 90 AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + 28 + - NULLIF ( - 53, - CAST ( 90 AS INTEGER ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT - COALESCE ( - - 86, + 28 + - - NULLIF ( - 79, - 41 + + CAST( NULL AS SIGNED ) - + - 76 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-6571
SELECT - COALESCE ( - - 86, + 28 + - - NULLIF ( - 79, - 41 + + CAST ( NULL AS INTEGER ) - + - 76 ) )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6572
SELECT ALL 85 * 21 * + CASE - 44 WHEN - 45 / - - 96 THEN - - 72 * - ( - - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL 85 * 21 * + CASE - 44 WHEN - 45 / - - 96 THEN - - 72 * - ( - - CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT + 96 * 82 * + ( 89 ) * + 62 - + 84 DIV + 17 AS col0
----
43437692

skipif mysql # not compatible
query I rowsort label-6573
SELECT + 96 * 82 * + ( 89 ) * + 62 - + 84 / + 17 AS col0
----
43437692

query I rowsort
SELECT DISTINCT 19 + + 92 * 72
----
6643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6575
SELECT ALL 78 + + CAST( 68 AS SIGNED )
----
146

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL 78 + + CAST ( 68 AS INTEGER )
----
146

query I rowsort
SELECT + 60 - + 27
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT - - 31 * CAST( 66 AS SIGNED )
----
2046

skipif mysql # not compatible
query I rowsort label-6577
SELECT - - 31 * CAST ( 66 AS INTEGER )
----
2046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6578
SELECT DISTINCT + 34 + CAST( - - ( 54 ) AS SIGNED ) + MIN( + ( - 28 ) )
----
60

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT + 34 + CAST ( - - ( 54 ) AS INTEGER ) + MIN ( + ( - 28 ) )
----
60

query I rowsort
SELECT ALL + - 73 + - 19 + 67
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT DISTINCT + NULLIF ( - 61, - 14 + COUNT( * ) ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT + NULLIF ( - 61, - 14 + COUNT ( * ) ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL + COUNT( * ) * 37 * + 99 - + 32 + MAX( ALL - - 72 ) + - 38 * 2 * 86 * - 26
----
173639

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL + COUNT ( * ) * 37 * + 99 - + 32 + MAX ( ALL - - 72 ) + - 38 * 2 * 86 * - 26
----
173639

query I rowsort
SELECT - - 29 * - - ( + 92 )
----
2668

query I rowsort
SELECT - ( - 26 ) * + - 10 + - - 3 AS col2
----
-257

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT - + 68 * + - COUNT( * ) * + 89 * 64 * - 70
----
-27112960

skipif mysql # not compatible
query I rowsort label-6584
SELECT - + 68 * + - COUNT ( * ) * + 89 * 64 * - 70
----
-27112960

query I rowsort
SELECT - + 10 + + 31
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT + 97 * + - CAST( NULL AS SIGNED ) + 13 + - NULLIF ( - ( - - 14 ), - 9 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT + 97 * + - CAST ( NULL AS INTEGER ) + 13 + - NULLIF ( - ( - - 14 ), - 9 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT - 9 * + 57 + - 14 * + 99 + - COUNT( * ) + + 31 * 64 * + 53 col1, - 28
----
103252
-28

skipif mysql # not compatible
query II rowsort label-6587
SELECT - 9 * + 57 + - 14 * + 99 + - COUNT ( * ) + + 31 * 64 * + 53 col1, - 28
----
103252
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT + MIN( DISTINCT + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-6588
SELECT + MIN ( DISTINCT + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ALL - NULLIF ( + 49, - 15 * - 76 * 36 + - 45 + + - 45 + - 56 * - COUNT( * ) * - + 86 + + NULLIF ( - 1, 98 + - 75 ) ) * - 22
----
1078

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL - NULLIF ( + 49, - 15 * - 76 * 36 + - 45 + + - 45 + - 56 * - COUNT ( * ) * - + 86 + + NULLIF ( - 1, 98 + - 75 ) ) * - 22
----
1078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6590
SELECT + 63 DIV + COALESCE ( 97, + MAX( DISTINCT - - 74 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6590
SELECT + 63 / + COALESCE ( 97, + MAX ( DISTINCT - - 74 ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6591
SELECT - 74 + 87 + - - 68 DIV COUNT( * ) + + 45 - - ( - CAST( 64 AS SIGNED ) ) * - COUNT( * ) AS col1
----
190

skipif mysql # not compatible
query I rowsort label-6591
SELECT - 74 + 87 + - - 68 / COUNT ( * ) + + 45 - - ( - CAST ( 64 AS INTEGER ) ) * - COUNT ( * ) AS col1
----
190

query I rowsort
SELECT DISTINCT 86 * - - 1
----
86

query I rowsort
SELECT ALL 45 * 96 * + - 2
----
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT CASE MAX( DISTINCT + 98 ) WHEN - 40 + + 98 + 12 + + 61 * + 96 THEN - + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT CASE MAX ( DISTINCT + 98 ) WHEN - 40 + + 98 + 12 + + 61 * + 96 THEN - + 9 END
----
NULL

query I rowsort
SELECT + NULLIF ( 15, + 88 ) + - 34
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6596
SELECT - COUNT( * ) DIV COUNT( * ) * - 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6596
SELECT - COUNT ( * ) / COUNT ( * ) * - 21 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT DISTINCT 83 * - ( + - ( - 91 ) ) * + COUNT( - - 69 ) + + COUNT( * ) AS col2
----
-7552

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT 83 * - ( + - ( - 91 ) ) * + COUNT ( - - 69 ) + + COUNT ( * ) AS col2
----
-7552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6598
SELECT ALL 79 + - + 72 * - CASE COUNT( * ) WHEN 22 THEN 40 * + 60 / 74 WHEN + 78 * - COUNT( * ) + + 27 + - NULLIF ( + 8, + + COALESCE ( 51, MIN( DISTINCT + 11 ) - - ( 73 ) / 43 * ( + 58 ) + + CAST( NULL AS SIGNED ) * - COUNT( * ), 13 + + 14 ) * + 35 ) THEN COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL 79 + - + 72 * - CASE COUNT ( * ) WHEN 22 THEN 40 * + 60 / 74 WHEN + 78 * - COUNT ( * ) + + 27 + - NULLIF ( + 8, + + COALESCE ( 51, MIN ( DISTINCT + 11 ) - - ( 73 ) / 43 * ( + 58 ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ), 13 + + 14 ) * + 35 ) THEN COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT DISTINCT 37 + - NULLIF ( - 35, - NULLIF ( 76, - COUNT( * ) ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT 37 + - NULLIF ( - 35, - NULLIF ( 76, - COUNT ( * ) ) ) AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT + 43 - - 5 DIV - + ( - 78 ) - ( + + 65 )
----
-22

skipif mysql # not compatible
query I rowsort label-6600
SELECT + 43 - - 5 / - + ( - 78 ) - ( + + 65 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT + + ( - - 23 ) + + - COALESCE ( 57, - 72 * - MAX( 30 ) * COALESCE ( 17, 37, + 65 ), - 14 * - 50 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6601
SELECT + + ( - - 23 ) + + - COALESCE ( 57, - 72 * - MAX ( 30 ) * COALESCE ( 17, 37, + 65 ), - 14 * - 50 ) AS col1
----
-34

query I rowsort
SELECT ALL ( - 86 ) + ( - + 7 ) AS col2
----
-93

query II rowsort
SELECT DISTINCT 11 col0, - 94 AS col0
----
11
-94

query I rowsort
SELECT ALL 60 * + 39 AS col1
----
2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6605
SELECT ALL + 80 DIV + + 17 * - COUNT( * ) - + 27 col1
----
-31

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + 80 / + + 17 * - COUNT ( * ) - + 27 col1
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6606
SELECT - 26 + CAST( NULL AS DECIMAL ) * + 42 / - 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT - 26 + CAST ( NULL AS REAL ) * + 42 / - 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT - + MAX( ALL + + 81 ) * 50 DIV - 96
----
42

skipif mysql # not compatible
query I rowsort label-6607
SELECT - + MAX ( ALL + + 81 ) * 50 / - 96
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT - - COUNT( * ) + + NULLIF ( - 7, - - 24 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6608
SELECT - - COUNT ( * ) + + NULLIF ( - 7, - - 24 ) AS col1
----
-6

query I rowsort
SELECT - - 83 + - 33 + 62 AS col2
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT ALL + + 66 DIV + 29
----
2

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + + 66 / + 29
----
2

query II rowsort
SELECT 81 AS col0, 59
----
81
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT - + NULLIF ( + + 57, COALESCE ( 92, + COUNT( * ) + 88 / - + 5, 27 + - + 77 ) ) + 28 + + COUNT( * ) + + 94 * + 62 * + - 15 * + 53
----
-4633288

skipif mysql # not compatible
query I rowsort label-6612
SELECT - + NULLIF ( + + 57, COALESCE ( 92, + COUNT ( * ) + 88 / - + 5, 27 + - + 77 ) ) + 28 + + COUNT ( * ) + + 94 * + 62 * + - 15 * + 53
----
-4633288

onlyif mysql # DIV for integer division: 
query II rowsort label-6613
SELECT + 2 DIV - 69 * 85 AS col0, 44
----
0
44

skipif mysql # not compatible
query II rowsort label-6613
SELECT + 2 / - 69 * 85 AS col0, 44
----
0
44

query I rowsort
SELECT DISTINCT + 87 * 33 AS col2
----
2871

query I rowsort
SELECT DISTINCT - 95 * + 27 AS col0
----
-2565

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT COALESCE ( 17, + 76, - - COUNT( * ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6616
SELECT COALESCE ( 17, + 76, - - COUNT ( * ) ) AS col0
----
17

query I rowsort
SELECT DISTINCT - 18 * 78
----
-1404

query I rowsort
SELECT - 33 - 97 * - - 18
----
-1779

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT - 51 * - - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6619
SELECT - 51 * - - COUNT ( * ) AS col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6620
SELECT + 29 DIV - - 15 + + COUNT( ALL - - 80 )
----
2

skipif mysql # not compatible
query I rowsort label-6620
SELECT + 29 / - - 15 + + COUNT ( ALL - - 80 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6621
SELECT ALL - 28 + + 60 + - 86 * + 81 * + - 94 + - CAST( + - 51 AS SIGNED )
----
654887

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - 28 + + 60 + - 86 * + 81 * + - 94 + - CAST ( + - 51 AS INTEGER )
----
654887

query I rowsort
SELECT DISTINCT - 46 + - 81 AS col2
----
-127

query II rowsort
SELECT + 7 col0, 91 - 79 * - 27 * - 78
----
7
-166283

query II rowsort
SELECT ALL - 44 AS col2, + 80 + 9
----
-44
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6625
SELECT CAST( - - 10 AS SIGNED ) * + 65 * + + COUNT( * ) + + + CASE + 46 WHEN 75 THEN COALESCE ( - 13, 7 + - 88, - 61 * + - 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT CAST ( - - 10 AS INTEGER ) * + 65 * + + COUNT ( * ) + + + CASE + 46 WHEN 75 THEN COALESCE ( - 13, 7 + - 88, - 61 * + - 10 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL - 28 + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - 28 + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT ALL MAX( DISTINCT 63 ) + - 71
----
-8

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL MAX ( DISTINCT 63 ) + - 71
----
-8

query I rowsort
SELECT 69 * + + 7 AS col2
----
483

query I rowsort
SELECT 5 + - 23
----
-18

query I rowsort
SELECT NULLIF ( 90, - 7 * 48 ) * - + 0 * + + NULLIF ( - 45, + - 90 ) AS col2
----
0

query I rowsort
SELECT ALL + 38 * + 48 AS col2
----
1824

onlyif mysql # aggregate syntax: 
query II rowsort label-6632
SELECT 2 * - 94 + 50 - + 33 AS col0, MAX( DISTINCT + 80 )
----
-171
80

skipif mysql # not compatible
query II rowsort label-6632
SELECT 2 * - 94 + 50 - + 33 AS col0, MAX ( DISTINCT + 80 )
----
-171
80

query I rowsort
SELECT ALL 25 - - 39
----
64

query I rowsort
SELECT 95 * + 54 * - 46 col2
----
-235980

query I rowsort
SELECT DISTINCT - - 64 * - 59 * - 94 - - 92
----
355036

query I rowsort
SELECT 44 * + 18
----
792

query I rowsort
SELECT ALL - 93 - + + 41 * - 54 AS col0
----
2121

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT COUNT( * ) * - - 35
----
35

skipif mysql # not compatible
query I rowsort label-6638
SELECT COUNT ( * ) * - - 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT DISTINCT - 91 * + ( + - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT - 91 * + ( + - COUNT ( * ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT - SUM( + - 96 ) * - + 41
----
-3936

skipif mysql # not compatible
query I rowsort label-6640
SELECT - SUM ( + - 96 ) * - + 41
----
-3936

query II rowsort
SELECT - 91 AS col0, 67 AS col0
----
-91
67

query I rowsort
SELECT ALL 30 * - + 44
----
-1320

onlyif mysql # aggregate syntax: 
query II rowsort label-6643
SELECT ALL + 36 AS col2, + COUNT( * ) * + - 43 * - ( - - ( - 51 ) ) + - 82 AS col0
----
36
-2275

skipif mysql # not compatible
query II rowsort label-6643
SELECT ALL + 36 AS col2, + COUNT ( * ) * + - 43 * - ( - - ( - 51 ) ) + - 82 AS col0
----
36
-2275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT 70 - + COALESCE ( 10, - 4, - COALESCE ( - CAST( NULL AS SIGNED ), - ( - - 78 ) * + 36 ), 42 )
----
60

skipif mysql # not compatible
query I rowsort label-6644
SELECT 70 - + COALESCE ( 10, - 4, - COALESCE ( - CAST ( NULL AS INTEGER ), - ( - - 78 ) * + 36 ), 42 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT 0 DIV + NULLIF ( - + 63, + NULLIF ( + + 0, 50 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6645
SELECT 0 / + NULLIF ( - + 63, + NULLIF ( + + 0, 50 ) )
----
0

query I rowsort
SELECT - 25 * + ( 94 ) + + + 44 col0
----
-2306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6647
SELECT - 1 * 17 + + 23 * - 79 + + MAX( - 32 ) DIV 25 * + + 4
----
-1838

skipif mysql # not compatible
query I rowsort label-6647
SELECT - 1 * 17 + + 23 * - 79 + + MAX ( - 32 ) / 25 * + + 4
----
-1838

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT ( - 44 ) DIV 90 * + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6648
SELECT ( - 44 ) / 90 * + 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT COUNT( * ) + 21 - - + NULLIF ( 35, + 32 )
----
57

skipif mysql # not compatible
query I rowsort label-6649
SELECT COUNT ( * ) + 21 - - + NULLIF ( 35, + 32 )
----
57

query I rowsort
SELECT 89 * - 82
----
-7298

query I rowsort
SELECT ALL + 41 + 10 + 12 * 35
----
471

query I rowsort
SELECT DISTINCT 27 + 98 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL + COUNT( + 15 ) * + CASE + + ( + SUM( - 42 ) ) WHEN + 34 THEN + COUNT( ALL - 40 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL + COUNT ( + 15 ) * + CASE + + ( + SUM ( - 42 ) ) WHEN + 34 THEN + COUNT ( ALL - 40 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT 79 * - - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6654
SELECT 79 * - - COUNT ( * ) AS col2
----
79

query I rowsort
SELECT DISTINCT 3 + + - 11 col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6656
SELECT DISTINCT 20 * - - 73, 66 DIV + COUNT( DISTINCT + - 41 ) * - + 1 - + CAST( + 86 AS SIGNED ) AS col2
----
1460
-152

skipif mysql # not compatible
query II rowsort label-6656
SELECT DISTINCT 20 * - - 73, 66 / + COUNT ( DISTINCT + - 41 ) * - + 1 - + CAST ( + 86 AS INTEGER ) AS col2
----
1460
-152

query I rowsort
SELECT DISTINCT - 97 - + 17
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6658
SELECT DISTINCT - ( - 75 ) col2, + 91 DIV COUNT( * )
----
75
91

skipif mysql # not compatible
query II rowsort label-6658
SELECT DISTINCT - ( - 75 ) col2, + 91 / COUNT ( * )
----
75
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6659
SELECT DISTINCT - 98 - - + 46 DIV - + COUNT( * ), - 55 AS col0
----
-144
-55

skipif mysql # not compatible
query II rowsort label-6659
SELECT DISTINCT - 98 - - + 46 / - + COUNT ( * ), - 55 AS col0
----
-144
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL + 13 * + NULLIF ( - MIN( - + 94 ), + SUM( ALL 76 ) / + + COUNT( * ) ) * 24 AS col2
----
29328

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + 13 * + NULLIF ( - MIN ( - + 94 ), + SUM ( ALL 76 ) / + + COUNT ( * ) ) * 24 AS col2
----
29328

query I rowsort
SELECT + 81 + 97 AS col0
----
178

query I rowsort
SELECT ALL ( + 79 ) col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6663
SELECT DISTINCT + - COALESCE ( + CASE - - 90 WHEN + 4 THEN NULL ELSE 85 END, + - 48 * - COUNT( * ) * - 86 * + - ( + 65 ) ) DIV - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT + - COALESCE ( + CASE - - 90 WHEN + 4 THEN NULL ELSE 85 END, + - 48 * - COUNT ( * ) * - 86 * + - ( + 65 ) ) / - COUNT ( * )
----
85

query I rowsort
SELECT + 53 * 49 * - 21 + 56 - - 91 + + + 76
----
-54314

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6665
SELECT + 39 DIV + + COUNT( * ), 94 AS col0
----
39
94

skipif mysql # not compatible
query II rowsort label-6665
SELECT + 39 / + + COUNT ( * ), 94 AS col0
----
39
94

query I rowsort
SELECT 36 * + ( + 78 ) + - - COALESCE ( - 99, 1, + ( + - 61 ) + - 19 )
----
2709

query I rowsort
SELECT ALL + ( - 21 ) * + + 6 col1
----
-126

query I rowsort
SELECT - 48 + + 2
----
-46

query I rowsort
SELECT 67 - - 45 AS col0
----
112

query I rowsort
SELECT - COALESCE ( 93, 55 ) * + + 87 AS col1
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT - 31 - 85 * COUNT( * ) * ( - 10 ) + - COUNT( * )
----
818

skipif mysql # not compatible
query I rowsort label-6671
SELECT - 31 - 85 * COUNT ( * ) * ( - 10 ) + - COUNT ( * )
----
818

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT ALL + 61 * + COUNT( * ) + + 52
----
113

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL + 61 * + COUNT ( * ) + + 52
----
113

query I rowsort
SELECT 59 + - 91 * - + ( + 86 ) AS col2
----
7885

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6674
SELECT ALL + - 94 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL + - 94 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6675
SELECT + 97 + 12 + - 64 DIV + + SUM( ALL 69 ) AS col0
----
109

skipif mysql # not compatible
query I rowsort label-6675
SELECT + 97 + 12 + - 64 / + + SUM ( ALL 69 ) AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL + 1 * - COUNT( ALL - 30 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL + 1 * - COUNT ( ALL - 30 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT ALL + COUNT( * ) + + 6 + COALESCE ( + 5, ( COUNT( * ) ) * + 83 * + + 62 - + ( + - 69 ) ) * - ( + - 42 ) * + 91 * + 30 * - ( 98 )
----
-56183393

skipif mysql # not compatible
query I rowsort label-6677
SELECT ALL + COUNT ( * ) + + 6 + COALESCE ( + 5, ( COUNT ( * ) ) * + 83 * + + 62 - + ( + - 69 ) ) * - ( + - 42 ) * + 91 * + 30 * - ( 98 )
----
-56183393

query I rowsort
SELECT ( + 18 ) + - - 55 * - 78 AS col2
----
-4272

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT - 9 + + 11 * - MIN( DISTINCT + - 27 ) + + 90 AS col2
----
378

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT - 9 + + 11 * - MIN ( DISTINCT + - 27 ) + + 90 AS col2
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT ALL ( - SUM( ALL - - 86 ) ) + + 30 DIV 26 - - 82 * + 84 col0
----
6803

skipif mysql # not compatible
query I rowsort label-6680
SELECT ALL ( - SUM ( ALL - - 86 ) ) + + 30 / 26 - - 82 * + 84 col0
----
6803

query I rowsort
SELECT DISTINCT 63 + + 75
----
138

query I rowsort
SELECT ALL 22 * + - 52
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT MIN( + 86 ) * 42
----
3612

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT MIN ( + 86 ) * 42
----
3612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6684
SELECT DISTINCT 27 * - + CAST( NULL AS SIGNED ) + - 95 AS col2, 76 * COUNT( DISTINCT + 1 ) * 42 + - 90
----
NULL
3102

skipif mysql # not compatible
query II rowsort label-6684
SELECT DISTINCT 27 * - + CAST ( NULL AS INTEGER ) + - 95 AS col2, 76 * COUNT ( DISTINCT + 1 ) * 42 + - 90
----
NULL
3102

query I rowsort
SELECT ALL 86 * + 86 AS col2
----
7396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6686
SELECT + 21 DIV 43 + 6 + - - ( - COUNT( * ) ) + - + 83 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-6686
SELECT + 21 / 43 + 6 + - - ( - COUNT ( * ) ) + - + 83 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT DISTINCT 21 * + + MAX( ALL + - 91 )
----
-1911

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT 21 * + + MAX ( ALL + - 91 )
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + 44 * ( + 5 ) * - MAX( - 10 ) + + 45 AS col0
----
2245

skipif mysql # not compatible
query I rowsort label-6688
SELECT + 44 * ( + 5 ) * - MAX ( - 10 ) + + 45 AS col0
----
2245

onlyif mysql # DIV for integer division: 
query I rowsort label-6689
SELECT ALL 8 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL 8 / 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT + 14 * + MIN( - 40 ) AS col0
----
-560

skipif mysql # not compatible
query I rowsort label-6690
SELECT + 14 * + MIN ( - 40 ) AS col0
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - 20 + + COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6691
SELECT - 20 + + COUNT ( * ) AS col2
----
-19

query I rowsort
SELECT + ( - 74 ) * - 56
----
4144

query I rowsort
SELECT ALL + 38 * 10 AS col0
----
380

query I rowsort
SELECT - 14 * - 98 + 7 * 2 AS col0
----
1386

query I rowsort
SELECT DISTINCT 26 * 50 - - 2 * + 8
----
1316

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6696
SELECT 39 * 81 + - 69 + CAST( NULL AS DECIMAL ) * + + 99 * + 14 - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT 39 * 81 + - 69 + CAST ( NULL AS REAL ) * + + 99 * + 14 - + 44
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6697
SELECT - 42 - + 94 DIV + 52 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6697
SELECT - 42 - + 94 / + 52 AS col2
----
-43

query II rowsort
SELECT DISTINCT + + 44, 57 AS col1
----
44
57

query I rowsort
SELECT ALL 49 * - 51 col1
----
-2499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6700
SELECT + 69, COUNT( * ) + + CAST( NULL AS SIGNED ) + - 54 / + 95 * - COALESCE ( - COUNT( * ), ( - ( + COUNT( * ) ) ) * - 20 ) AS col2
----
69
NULL

skipif mysql # not compatible
query II rowsort label-6700
SELECT + 69, COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - 54 / + 95 * - COALESCE ( - COUNT ( * ), ( - ( + COUNT ( * ) ) ) * - 20 ) AS col2
----
69
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6701
SELECT - 6 * + COUNT( * ) * - 22 col1, - 80
----
132
-80

skipif mysql # not compatible
query II rowsort label-6701
SELECT - 6 * + COUNT ( * ) * - 22 col1, - 80
----
132
-80

query I rowsort
SELECT + - 2 * 34 AS col0
----
-68

query I rowsort
SELECT - + 96 + 33 + + 12
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6704
SELECT ALL 64, - ( + COUNT( * ) ) + - + 9 AS col0
----
64
-10

skipif mysql # not compatible
query II rowsort label-6704
SELECT ALL 64, - ( + COUNT ( * ) ) + - + 9 AS col0
----
64
-10

query I rowsort
SELECT ALL - COALESCE ( + 84, 81 ) AS col2
----
-84

query I rowsort
SELECT DISTINCT - 63 * - 91
----
5733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6707
SELECT ALL - - 46 + + NULLIF ( - ( - COUNT( ALL - - 94 ) ), - 25 + + 95 + - CAST( COUNT( * ) AS SIGNED ) - CASE WHEN NOT NULL = NULL THEN ( - ( + 42 ) ) ELSE NULL END * + 45 / + + 58 - + + ( - AVG ( - ( 5 ) ) ) ) col1
----
47

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - - 46 + + NULLIF ( - ( - COUNT ( ALL - - 94 ) ), - 25 + + 95 + - CAST ( COUNT ( * ) AS INTEGER ) - CASE WHEN NOT NULL = NULL THEN ( - ( + 42 ) ) ELSE NULL END * + 45 / + + 58 - + + ( - AVG ( - ( 5 ) ) ) ) col1
----
47

query II rowsort
SELECT - + 7 AS col1, 79
----
-7
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6709
SELECT DISTINCT - + ( SUM( DISTINCT + 8 ) ) DIV - + COALESCE ( + - NULLIF ( - 76, - - 86 ), CAST( NULL AS SIGNED ) ) AS col0, 3
----
0
3

skipif mysql # not compatible
query II rowsort label-6709
SELECT DISTINCT - + ( SUM ( DISTINCT + 8 ) ) / - + COALESCE ( + - NULLIF ( - 76, - - 86 ), CAST ( NULL AS INTEGER ) ) AS col0, 3
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT DISTINCT + + COUNT( * ) + + 82 + - + 98 + 23 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT + + COUNT ( * ) + + 82 + - + 98 + 23 AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6711
SELECT - COUNT( * ) - - + 27 * + 96 DIV - + COALESCE ( + COUNT( DISTINCT 40 ), 13 ) AS col1
----
-2593

skipif mysql # not compatible
query I rowsort label-6711
SELECT - COUNT ( * ) - - + 27 * + 96 / - + COALESCE ( + COUNT ( DISTINCT 40 ), 13 ) AS col1
----
-2593

query II rowsort
SELECT + 10 AS col1, + 19
----
10
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6713
SELECT - - COALESCE ( + ( - - 93 ), 68 DIV - 67 + - COUNT( * ) ) - ( + COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6713
SELECT - - COALESCE ( + ( - - 93 ), 68 / - 67 + - COUNT ( * ) ) - ( + COUNT ( * ) ) AS col2
----
92

query I rowsort
SELECT - + 25 + + 86 AS col2
----
61

query I rowsort
SELECT ALL - 14 + - 38 * - 61
----
2304

onlyif mysql # aggregate syntax: 
query II rowsort label-6716
SELECT + COUNT( * ) AS col2, - ( COUNT( * ) ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-6716
SELECT + COUNT ( * ) AS col2, - ( COUNT ( * ) ) AS col0
----
1
-1

query I rowsort
SELECT ALL + - 75 + + 96 - - 87 + + 32 AS col0
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6718
SELECT DISTINCT - CASE + 84 WHEN - 51 THEN NULL ELSE - - CASE - - 19 WHEN - + 68 * + 16 THEN - 98 * 20 - - COUNT( * ) * - 38 * - - AVG ( DISTINCT + ( + CAST( - - 70 AS SIGNED ) ) ) + 1 WHEN + 81 / + - CAST( - - 27 AS SIGNED ) THEN 1 + + 18 WHEN 38 THEN NULL END + - - 31 END + + COUNT( * ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT - CASE + 84 WHEN - 51 THEN NULL ELSE - - CASE - - 19 WHEN - + 68 * + 16 THEN - 98 * 20 - - COUNT ( * ) * - 38 * - - AVG ( DISTINCT + ( + CAST ( - - 70 AS INTEGER ) ) ) + 1 WHEN + 81 / + - CAST ( - - 27 AS INTEGER ) THEN 1 + + 18 WHEN 38 THEN NULL END + - - 31 END + + COUNT ( * ) * 77
----
NULL

query I rowsort
SELECT ALL 74 + + 33
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT - 80 - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-6720
SELECT - 80 - COUNT ( * )
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6721
SELECT - CAST( + + 45 AS SIGNED ) - + 52 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6721
SELECT - CAST ( + + 45 AS INTEGER ) - + 52 AS col1
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6722
SELECT ALL 35 DIV 44 - - - 98
----
-98

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL 35 / 44 - - - 98
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6723
SELECT CAST( + 41 AS SIGNED ) AS col1, 23 col2
----
41
23

skipif mysql # not compatible
query II rowsort label-6723
SELECT CAST ( + 41 AS INTEGER ) AS col1, 23 col2
----
41
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT 15 DIV - - 93 + - 24 + + + 48 * - - 11 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-6724
SELECT 15 / - - 93 + - 24 + + + 48 * - - 11 AS col0
----
504

query II rowsort
SELECT + 26 * + - 89 AS col1, + 46 col1
----
-2314
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT - CASE - - 9 WHEN + 34 * + + 92 * 19 * COUNT( * ) + - - 71 THEN NULL ELSE 10 END + + ( - 36 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-6726
SELECT - CASE - - 9 WHEN + 34 * + + 92 * 19 * COUNT ( * ) + - - 71 THEN NULL ELSE 10 END + + ( - 36 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT + COUNT( CASE - 92 WHEN - 85 THEN + + 34 ELSE + 4 END )
----
1

skipif mysql # not compatible
query I rowsort label-6727
SELECT + COUNT ( CASE - 92 WHEN - 85 THEN + + 34 ELSE + 4 END )
----
1

query II rowsort
SELECT + ( 65 ), + 46 * - 31 col1
----
65
-1426

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6729
SELECT ALL 2 * + CAST( NULL AS DECIMAL ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL 2 * + CAST ( NULL AS REAL ) * + 73
----
NULL

query I rowsort
SELECT DISTINCT - 34 * + - 2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT DISTINCT 31 * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT 31 * COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6732
SELECT 52 * CAST( + 98 AS DECIMAL ) + + + CASE - + ( 24 ) WHEN - ( 53 ) THEN + - COUNT( * ) WHEN - CASE + 42 WHEN - - CASE + 58 WHEN 74 * 20 THEN + 0 END THEN - 67 WHEN - + MIN( CAST( - 16 AS SIGNED ) ) + CAST( NULL AS SIGNED ) + - NULLIF ( - 27, 25 ) * - 98 THEN 9 END THEN NULL END + - 9 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6732
SELECT 52 * CAST ( + 98 AS REAL ) + + + CASE - + ( 24 ) WHEN - ( 53 ) THEN + - COUNT ( * ) WHEN - CASE + 42 WHEN - - CASE + 58 WHEN 74 * 20 THEN + 0 END THEN - 67 WHEN - + MIN ( CAST ( - 16 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) + - NULLIF ( - 27, 25 ) * - 98 THEN 9 END THEN NULL END + - 9 * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT - 72 + 0 + + 77 * 22 + + MAX( 71 )
----
1693

skipif mysql # not compatible
query I rowsort label-6733
SELECT - 72 + 0 + + 77 * 22 + + MAX ( 71 )
----
1693

query I rowsort
SELECT ( NULLIF ( + 66, + + 99 ) ) AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT + - 5 + + ( + 55 ) DIV 13 * + COALESCE ( + 96, - 55 ) + + 39 + + 3 * 53 AS col2
----
577

skipif mysql # not compatible
query I rowsort label-6735
SELECT + - 5 + + ( + 55 ) / 13 * + COALESCE ( + 96, - 55 ) + + 39 + + 3 * 53 AS col2
----
577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6736
SELECT + + COALESCE ( + - CASE - SUM( DISTINCT + - 12 ) WHEN + COUNT( * ) THEN + - SUM( - + 16 ) WHEN + 24 THEN NULL ELSE + 67 + + 27 END, ( - COUNT( * ) ) DIV - 11 * - - CASE - 21 WHEN - COUNT( * ) * - COUNT( * ) - 31 THEN NULL WHEN - 19 THEN + 35 + - CAST( NULL AS SIGNED ) + + + COUNT( * ) * - + 42 WHEN + 15 THEN NULL END + - COALESCE ( CASE 34 WHEN + ( + 6 ) * 21 THEN 44 + + CAST( NULL AS SIGNED ) ELSE 76 END + + 40, + 36 + 63, COUNT( * ) ) DIV - 72 )
----
-94

skipif mysql # not compatible
query I rowsort label-6736
SELECT + + COALESCE ( + - CASE - SUM ( DISTINCT + - 12 ) WHEN + COUNT ( * ) THEN + - SUM ( - + 16 ) WHEN + 24 THEN NULL ELSE + 67 + + 27 END, ( - COUNT ( * ) ) / - 11 * - - CASE - 21 WHEN - COUNT ( * ) * - COUNT ( * ) - 31 THEN NULL WHEN - 19 THEN + 35 + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * - + 42 WHEN + 15 THEN NULL END + - COALESCE ( CASE 34 WHEN + ( + 6 ) * 21 THEN 44 + + CAST ( NULL AS INTEGER ) ELSE 76 END + + 40, + 36 + 63, COUNT ( * ) ) / - 72 )
----
-94

query I rowsort
SELECT + 99 * 18 AS col1
----
1782

query I rowsort
SELECT + - 87 * + 89 + + 39
----
-7704

query I rowsort
SELECT + - 56 * - 60
----
3360

query I rowsort
SELECT ALL - 15 * + 60 + + - 82 AS col0
----
-982

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT DISTINCT + NULLIF ( + 80, + 86 / + - AVG ( DISTINCT + 1 ) + 85 + - COUNT( * ) ) col1
----
80

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT + NULLIF ( + 80, + 86 / + - AVG ( DISTINCT + 1 ) + 85 + - COUNT ( * ) ) col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT ALL - CAST( - - 49 AS SIGNED ) * - - 30 + ( - 77 ) * + 8 + + + 9
----
-2077

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - CAST ( - - 49 AS INTEGER ) * - - 30 + ( - 77 ) * + 8 + + + 9
----
-2077

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT ALL + - 3 * + 32 + COUNT( * ) * - + 59 * - 16 AS col2
----
848

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL + - 3 * + 32 + COUNT ( * ) * - + 59 * - 16 AS col2
----
848

query I rowsort
SELECT + + 4 + + - 40 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT - + ( - CAST( - - MIN( + 54 ) AS SIGNED ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-6745
SELECT - + ( - CAST ( - - MIN ( + 54 ) AS INTEGER ) ) AS col2
----
54

query I rowsort
SELECT - - 24 - - + NULLIF ( + 38, + - 34 ) AS col1
----
62

query I rowsort
SELECT + 59 + + 14 + + + 83 + 61 AS col0
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT 45 + + 77 - + SUM( DISTINCT - 59 ) AS col1
----
181

skipif mysql # not compatible
query I rowsort label-6748
SELECT 45 + + 77 - + SUM ( DISTINCT - 59 ) AS col1
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL MAX( DISTINCT - - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL MAX ( DISTINCT - - 76 )
----
76

query I rowsort
SELECT 89 * + - 82
----
-7298

onlyif mysql # DIV for integer division: 
query I rowsort label-6751
SELECT DISTINCT - 37 DIV + 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - 37 / + 39 AS col0
----
0

query I rowsort
SELECT 2 * COALESCE ( - 98, + 12 )
----
-196

query I rowsort
SELECT ALL - 10 * 57
----
-570

onlyif mysql # DIV for integer division: 
query I rowsort label-6754
SELECT 79 * 25 DIV 15
----
131

skipif mysql # not compatible
query I rowsort label-6754
SELECT 79 * 25 / 15
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT 17 + + MIN( - + CASE 87 WHEN CAST( 94 AS SIGNED ) THEN NULL WHEN 17 THEN + 53 WHEN - 46 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT 17 + + MIN ( - + CASE 87 WHEN CAST ( 94 AS INTEGER ) THEN NULL WHEN 17 THEN + 53 WHEN - 46 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT - 38 * + ( - - 72 ) AS col2
----
-2736

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT 98 DIV - + 32
----
-3

skipif mysql # not compatible
query I rowsort label-6757
SELECT 98 / - + 32
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT ALL + COUNT( * ) * COUNT( * ) * - + 19
----
-19

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL + COUNT ( * ) * COUNT ( * ) * - + 19
----
-19

query I rowsort
SELECT ALL - ( - 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT 33 * - SUM( - - 16 ) * NULLIF ( 24, + 74 + + 20 - - ( - 56 ) / + 96 ) AS col1
----
-12672

skipif mysql # not compatible
query I rowsort label-6760
SELECT 33 * - SUM ( - - 16 ) * NULLIF ( 24, + 74 + + 20 - - ( - 56 ) / + 96 ) AS col1
----
-12672

query I rowsort
SELECT 4 * 33 AS col1
----
132

query I rowsort
SELECT 7 - - + 13 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6763
SELECT ALL - CAST( 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL - CAST ( 77 AS INTEGER )
----
-77

query I rowsort
SELECT DISTINCT - ( - 45 ) + - 73 AS col1
----
-28

query I rowsort
SELECT 13 - - 50 + - - 15 AS col0
----
78

query I rowsort
SELECT DISTINCT + 72 + + - 9 AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6767
SELECT ALL - COUNT( * ) + + + COUNT( * ) * - CAST( - MIN( - 24 ) AS SIGNED ) AS col1, - 74
----
-25
-74

skipif mysql # not compatible
query II rowsort label-6767
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) * - CAST ( - MIN ( - 24 ) AS INTEGER ) AS col1, - 74
----
-25
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT - COUNT( ALL - 60 )
----
-1

skipif mysql # not compatible
query I rowsort label-6768
SELECT - COUNT ( ALL - 60 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT - 80 + + - 91 + 36 - COUNT( ALL + 16 ) + - 53 * - - 48 + - + 50 + + 12
----
-2718

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT - 80 + + - 91 + 36 - COUNT ( ALL + 16 ) + - 53 * - - 48 + - + 50 + + 12
----
-2718

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT 93 * - COALESCE ( + 88, + - COUNT( * ), + 26 * ( 26 ) ) * + + COUNT( * ) AS col2
----
-8184

skipif mysql # not compatible
query I rowsort label-6770
SELECT 93 * - COALESCE ( + 88, + - COUNT ( * ), + 26 * ( 26 ) ) * + + COUNT ( * ) AS col2
----
-8184

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT 23 DIV - 19 + + + 65 + + + 26 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6771
SELECT 23 / - 19 + + + 65 + + + 26 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT - - CAST( 40 AS SIGNED ) col2
----
40

skipif mysql # not compatible
query I rowsort label-6772
SELECT - - CAST ( 40 AS INTEGER ) col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6773
SELECT ALL 96 - - - ( - ( + 71 ) ) - - - COUNT( * ) + + 4 DIV + 60 + - 51 + ( + 37 ) - + 76 * - 58 * 89 col1
----
392464

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL 96 - - - ( - ( + 71 ) ) - - - COUNT ( * ) + + 4 / + 60 + - 51 + ( + 37 ) - + 76 * - 58 * 89 col1
----
392464

query II rowsort
SELECT ALL + 6 * + 52 + - 30 AS col0, 22
----
282
22

query I rowsort
SELECT - + ( + - 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT - COUNT( ALL - + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-6776
SELECT - COUNT ( ALL - + 69 )
----
-1

query I rowsort
SELECT ALL 39 * + - 32 * + ( - 3 )
----
3744

query I rowsort
SELECT 98 * + + 64 AS col0
----
6272

query I rowsort
SELECT ALL 57 * - 47 * - 45
----
120555

onlyif mysql # aggregate syntax: 
query II rowsort label-6780
SELECT ( - MIN( ALL + 37 ) ) + - 30 + - 34 * + - MAX( + 80 ), - 34 col2
----
2653
-34

skipif mysql # not compatible
query II rowsort label-6780
SELECT ( - MIN ( ALL + 37 ) ) + - 30 + - 34 * + - MAX ( + 80 ), - 34 col2
----
2653
-34

query II rowsort
SELECT - 94 AS col1, 27
----
-94
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT COUNT( ALL + 32 ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6782
SELECT COUNT ( ALL + 32 ) + + COUNT ( * ) AS col0
----
2

query II rowsort
SELECT ALL 2 AS col1, - 87 col0
----
2
-87

query I rowsort
SELECT 98 - + 99 + + - ( + + 25 )
----
-26

query I rowsort
SELECT 14 * - 6
----
-84

query II rowsort
SELECT ALL 12 AS col2, 91 AS col0
----
12
91

query I rowsort
SELECT 27 + - - 63
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT ALL - CAST( NULL AS SIGNED ) * - + 31 / + ( - - 68 ) + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 31 / + ( - - 68 ) + 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT 89 DIV 60 + + 26 col1
----
27

skipif mysql # not compatible
query I rowsort label-6789
SELECT 89 / 60 + + 26 col1
----
27

query I rowsort
SELECT 53 * 28 - + - 19
----
1503

query I rowsort
SELECT 13 * + 87 AS col0
----
1131

query I rowsort
SELECT 16 + - 87 col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT + CAST( NULL AS SIGNED ) / - COUNT( * ) - - - COALESCE ( - COALESCE ( + 61, + COUNT( DISTINCT + - 19 ) + - + ( + COALESCE ( COUNT( * ), + 60 ) ) + 88 / + 4 ), + 70, + + 51 / ( - 23 ) ) * 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) - - - COALESCE ( - COALESCE ( + 61, + COUNT ( DISTINCT + - 19 ) + - + ( + COALESCE ( COUNT ( * ), + 60 ) ) + 88 / + 4 ), + 70, + + 51 / ( - 23 ) ) * 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT COUNT( * ) AS col0, + 43 * - NULLIF ( 20, + 30 / + NULLIF ( - 52, + 76 + - - 40 ) + - + 82 + - 49 )
----
1
-860

skipif mysql # not compatible
query II rowsort label-6794
SELECT COUNT ( * ) AS col0, + 43 * - NULLIF ( 20, + 30 / + NULLIF ( - 52, + 76 + - - 40 ) + - + 82 + - 49 )
----
1
-860

query I rowsort
SELECT ALL - - 66 * 86 + - ( ( + 24 ) ) AS col1
----
5652

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT ALL + - 0 * + 70 + - 80 * 64 + - - 25 DIV ( - 55 ) DIV + 78 + + 8 AS col1
----
-5112

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + - 0 * + 70 + - 80 * 64 + - - 25 / ( - 55 ) / + 78 + + 8 AS col1
----
-5112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6797
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0, CAST( 14 AS SIGNED ) * + 51 * SUM( ALL 64 ) * 34 col1
----
NULL
1553664

skipif mysql # not compatible
query II rowsort label-6797
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0, CAST ( 14 AS INTEGER ) * + 51 * SUM ( ALL 64 ) * 34 col1
----
NULL
1553664

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6798
SELECT ALL + + COUNT( * ) DIV 62, - 77 DIV 78
----
0
0

skipif mysql # not compatible
query II rowsort label-6798
SELECT ALL + + COUNT ( * ) / 62, - 77 / 78
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT ALL + 21 * 98 * - + 17 + 66 DIV - 8 AS col2
----
-34994

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + 21 * 98 * - + 17 + 66 / - 8 AS col2
----
-34994

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT + 89 * COUNT( * ) + + + 0 * - 89 * + - COALESCE ( + 94, + - 92 )
----
89

skipif mysql # not compatible
query I rowsort label-6800
SELECT + 89 * COUNT ( * ) + + + 0 * - 89 * + - COALESCE ( + 94, + - 92 )
----
89

query I rowsort
SELECT - 52 * + 46 + 8 * 8
----
-2328

query II rowsort
SELECT DISTINCT + + 7 AS col2, 81 - - 28 AS col0
----
7
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL + + MAX( + - ( 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL + + MAX ( + - ( 60 ) )
----
-60

query I rowsort
SELECT DISTINCT + ( + + 87 ) col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT DISTINCT + MAX( ALL - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT + MAX ( ALL - 9 ) AS col2
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6806
SELECT DISTINCT 3 * 97 * NULLIF ( + 6, - AVG ( DISTINCT + 69 ) * + 80 + - - CAST( NULL AS DECIMAL ) * + 77 )
----
1746

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT 3 * 97 * NULLIF ( + 6, - AVG ( DISTINCT + 69 ) * + 80 + - - CAST ( NULL AS REAL ) * + 77 )
----
1746

query I rowsort
SELECT + + 72 + 49 AS col2
----
121

query II rowsort
SELECT ALL + 51, - 36 AS col0
----
51
-36

query I rowsort
SELECT DISTINCT + + 93 * - + 71
----
-6603

query I rowsort
SELECT - + 2 * + + NULLIF ( ( + ( + 59 ) ), - - 59 - + ( + 92 ) + 65 )
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT + + CAST( NULL AS SIGNED ) * - MIN( - 35 ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT + + CAST ( NULL AS INTEGER ) * - MIN ( - 35 ) + + 26
----
NULL

query I rowsort
SELECT - 21 + + + 31
----
10

query I rowsort
SELECT + 27 + 92 * 76 * - 23 * + - 68
----
10935515

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6814
SELECT + 3 + + 54 AS col1, NULLIF ( + ( + 35 ), + - 85 * - CAST( NULL AS DECIMAL ) / 27 * SUM( DISTINCT - 39 ) + + COUNT( * ) ) AS col0
----
57
35

skipif mysql # not compatible
query II rowsort label-6814
SELECT + 3 + + 54 AS col1, NULLIF ( + ( + 35 ), + - 85 * - CAST ( NULL AS REAL ) / 27 * SUM ( DISTINCT - 39 ) + + COUNT ( * ) ) AS col0
----
57
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6815
SELECT ALL COALESCE ( + 77, - 99 ) / + 9 * - + CASE - COUNT( * ) WHEN - COUNT( * ) THEN NULL ELSE - CAST( NULL AS SIGNED ) / - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL COALESCE ( + 77, - 99 ) / + 9 * - + CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) / - 88 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT + CAST( NULL AS SIGNED ) / + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6816
SELECT + CAST ( NULL AS INTEGER ) / + + 89
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6817
SELECT ALL COUNT( ALL + - 12 ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL COUNT ( ALL + - 12 ) / - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL COALESCE ( 83, - + COUNT( * ), 27 * + - 19 - + + 22 ) + - 52 - NULLIF ( 86, - + 50 ) * + 95 col1
----
-8139

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL COALESCE ( 83, - + COUNT ( * ), 27 * + - 19 - + + 22 ) + - 52 - NULLIF ( 86, - + 50 ) * + 95 col1
----
-8139

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT - ( - - COUNT( ALL + 83 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6819
SELECT - ( - - COUNT ( ALL + 83 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - COUNT( * ) + 22
----
21

skipif mysql # not compatible
query I rowsort label-6820
SELECT - COUNT ( * ) + 22
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT 78 + + + MAX( ALL 86 ) AS col2
----
164

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT 78 + + + MAX ( ALL 86 ) AS col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT - NULLIF ( + + MIN( ALL + ( - 42 ) ), CASE + + 33 WHEN 30 + - 22 THEN NULL WHEN - - 26 THEN 21 ELSE + 97 END * - 3 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6822
SELECT - NULLIF ( + + MIN ( ALL + ( - 42 ) ), CASE + + 33 WHEN 30 + - 22 THEN NULL WHEN - - 26 THEN 21 ELSE + 97 END * - 3 ) AS col1
----
42

query I rowsort
SELECT - 90 + + 72
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL 96 + - SUM( - 4 ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL 96 + - SUM ( - 4 ) AS col1
----
100

query I rowsort
SELECT - NULLIF ( - + 40, 19 ) AS col1
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-6826
SELECT DISTINCT - - 35 DIV 64 + 58 + ( - - 30 ), + 85 AS col1
----
88
85

skipif mysql # not compatible
query II rowsort label-6826
SELECT DISTINCT - - 35 / 64 + 58 + ( - - 30 ), + 85 AS col1
----
88
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6827
SELECT ALL + ( 87 ) * 34 + 72 + 74 * + 63 * - 48 + - 57, - COUNT( * ) AS col1
----
-220803
-1

skipif mysql # not compatible
query II rowsort label-6827
SELECT ALL + ( 87 ) * 34 + 72 + 74 * + 63 * - 48 + - 57, - COUNT ( * ) AS col1
----
-220803
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT ALL - 31 * 76 + - + CAST( NULL AS SIGNED ) - + 75 / + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL - 31 * 76 + - + CAST ( NULL AS INTEGER ) - + 75 / + 83 AS col2
----
NULL

query I rowsort
SELECT + 90 - + 82 + + + 95 + + + 20 * - - COALESCE ( - 25, 16, - 18 + + 84 )
----
-397

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT + SUM( ALL - 13 ) col1, - 89 * + 49 AS col1
----
-13
-4361

skipif mysql # not compatible
query II rowsort label-6830
SELECT + SUM ( ALL - 13 ) col1, - 89 * + 49 AS col1
----
-13
-4361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6831
SELECT - 91 * - ( + 92 ) / - CAST( NULL AS SIGNED ) * COUNT( * ) * + 24 + - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT - 91 * - ( + 92 ) / - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 24 + - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6832
SELECT - 73 * - - 9 * - COUNT( * ) AS col0, - 25
----
657
-25

skipif mysql # not compatible
query II rowsort label-6832
SELECT - 73 * - - 9 * - COUNT ( * ) AS col0, - 25
----
657
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6833
SELECT ALL + MIN( - 20 ) * + 44 - - 81 + CAST( NULL AS SIGNED ) + - + AVG ( 17 ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + MIN ( - 20 ) * + 44 - - 81 + CAST ( NULL AS INTEGER ) + - + AVG ( 17 ) + - 84
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6834
SELECT ALL + - COUNT( * ) * 72 DIV + 63 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL + - COUNT ( * ) * 72 / + 63 col0
----
-1

query I rowsort
SELECT + - CASE + NULLIF ( 66, - 75 + - - 90 ) WHEN 74 / + 13 THEN + - 8 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6836
SELECT - 35 * + + ( + + CASE COUNT( * ) WHEN - COUNT( * ) THEN - 42 * + - 85 * + 86 + + 66 WHEN 36 * - 86 THEN - 25 + - - NULLIF ( + 96, + 7 ) + + - CAST( + - 96 AS SIGNED ) WHEN - - 70 THEN NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT - 35 * + + ( + + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN - 42 * + - 85 * + 86 + + 66 WHEN 36 * - 86 THEN - 25 + - - NULLIF ( + 96, + 7 ) + + - CAST ( + - 96 AS INTEGER ) WHEN - - 70 THEN NULL END ) col2
----
NULL

query I rowsort
SELECT ALL - 87 * - 93 * - 53 * 33 AS col2
----
-14151159

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT + + 66 * + + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT + + 66 * + + COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT DISTINCT + MIN( DISTINCT + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT + MIN ( DISTINCT + 51 ) AS col2
----
51

query II rowsort
SELECT - 19 * + 93, + 63 + 41 AS col0
----
-1767
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6841
SELECT - 89 * - 11 AS col1, ( - COUNT( * ) ) DIV 11 AS col2
----
979
0

skipif mysql # not compatible
query II rowsort label-6841
SELECT - 89 * - 11 AS col1, ( - COUNT ( * ) ) / 11 AS col2
----
979
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6842
SELECT + COALESCE ( - 69, 1 DIV + COUNT( DISTINCT 19 ) * + COUNT( * ) + + - 39 - - NULLIF ( - + CAST( + + 92 AS SIGNED ), 99 ) + - 55 + 68 * - 62 DIV + CAST( NULLIF ( - 46, + - MIN( ALL + - 0 ) * - COUNT( * ) - - 26 ) AS SIGNED ) ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-6842
SELECT + COALESCE ( - 69, 1 / + COUNT ( DISTINCT 19 ) * + COUNT ( * ) + + - 39 - - NULLIF ( - + CAST ( + + 92 AS INTEGER ), 99 ) + - 55 + 68 * - 62 / + CAST ( NULLIF ( - 46, + - MIN ( ALL + - 0 ) * - COUNT ( * ) - - 26 ) AS INTEGER ) ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6843
SELECT DISTINCT CAST( + + 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT CAST ( + + 92 AS INTEGER )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6844
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + 96 DIV + 24 * + CAST( ( - ( COUNT( * ) ) ) AS SIGNED ) - 63
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-6844
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + 96 / + 24 * + CAST ( ( - ( COUNT ( * ) ) ) AS INTEGER ) - 63
----
NULL
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL + SUM( + 96 ) * + 94 AS col1
----
9024

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + SUM ( + 96 ) * + 94 AS col1
----
9024

onlyif mysql # aggregate syntax: 
query II rowsort label-6846
SELECT DISTINCT 40 AS col2, COUNT( * ) AS col0
----
40
1

skipif mysql # not compatible
query II rowsort label-6846
SELECT DISTINCT 40 AS col2, COUNT ( * ) AS col0
----
40
1

query I rowsort
SELECT ALL ( - 62 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6848
SELECT DISTINCT + 6 + - COALESCE ( - CAST( NULL AS SIGNED ), 77 + + 7 + + SUM( ALL + 64 ) ) + + CAST( 38 AS SIGNED ) col0
----
-104

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT + 6 + - COALESCE ( - CAST ( NULL AS INTEGER ), 77 + + 7 + + SUM ( ALL + 64 ) ) + + CAST ( 38 AS INTEGER ) col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT ALL ( SUM( ALL ( 45 ) ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL ( SUM ( ALL ( 45 ) ) ) AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT ALL CAST( NULL AS SIGNED ) + 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL CAST ( NULL AS INTEGER ) + 15 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT - 44 * + COUNT( * ) * + 89 col1, 81 - - 50
----
-3916
131

skipif mysql # not compatible
query II rowsort label-6851
SELECT - 44 * + COUNT ( * ) * + 89 col1, 81 - - 50
----
-3916
131

query I rowsort
SELECT ALL - 88 + - 37
----
-125

query I rowsort
SELECT - 56 - + - 98
----
42

query I rowsort
SELECT - NULLIF ( - 56, - + 21 )
----
56

query II rowsort
SELECT 63 AS col1, - 6 * - 52 * + 32
----
63
9984

query I rowsort
SELECT ALL 2 + - - 15 + 93
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6857
SELECT + 14 * + + NULLIF ( 0, - 87 * - + COALESCE ( 27, + 79 + - ( COUNT( * ) ), 30 - - 82 ) * 1 + - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + + 65 + COUNT( * ) / 83 * AVG ( ALL + - 43 ) * 27 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6857
SELECT + 14 * + + NULLIF ( 0, - 87 * - + COALESCE ( 27, + 79 + - ( COUNT ( * ) ), 30 - - 82 ) * 1 + - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 65 + COUNT ( * ) / 83 * AVG ( ALL + - 43 ) * 27 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT - 84 + + + 16 * + COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6858
SELECT - 84 + + + 16 * + COUNT ( * ) AS col1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT DISTINCT 55 / CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT 55 / CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + 78 - 79 - - 68
----
67

query I rowsort
SELECT ALL 90 * - 62
----
-5580

query I rowsort
SELECT + 21 + 59 * - 3 + - - 11
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - COUNT( + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-6863
SELECT - COUNT ( + 23 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + NULLIF ( + COUNT( * ), + 92 - - 49 * - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + NULLIF ( + COUNT ( * ), + 92 - - 49 * - 62 )
----
1

query I rowsort
SELECT ALL - 51 * + 64
----
-3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6866
SELECT COUNT( + 68 ) DIV + MIN( - 65 ) + + + ( + 89 ) DIV + + 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6866
SELECT COUNT ( + 68 ) / + MIN ( - 65 ) + + + ( + 89 ) / + + 79 AS col0
----
1

query I rowsort
SELECT DISTINCT - - 36 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6868
SELECT - 10 * + + COUNT( ALL CAST( NULL AS SIGNED ) ) col2, + 99 * + 37
----
0
3663

skipif mysql # not compatible
query II rowsort label-6868
SELECT - 10 * + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) col2, + 99 * + 37
----
0
3663

query II rowsort
SELECT ALL 80 * + + ( + 41 ) + - 10, + 3 AS col1
----
3270
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT DISTINCT - COALESCE ( + 58, + 37 DIV - 29 * ( - 83 ) ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT - COALESCE ( + 58, + 37 / - 29 * ( - 83 ) ) AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6871
SELECT 46 * - 76 DIV - - 4 + + 58
----
-816

skipif mysql # not compatible
query I rowsort label-6871
SELECT 46 * - 76 / - - 4 + + 58
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT + COUNT( * ) * + 19 + - 49
----
-30

skipif mysql # not compatible
query I rowsort label-6872
SELECT + COUNT ( * ) * + 19 + - 49
----
-30

query I rowsort
SELECT DISTINCT - - 68 * 60 AS col2
----
4080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6874
SELECT + COALESCE ( + - CASE + COUNT( * ) WHEN - 60 * 87 + + COUNT( + + 63 ) DIV SUM( ALL 22 ) + - 11 THEN NULL ELSE CASE + 71 WHEN + CAST( + 62 AS SIGNED ) THEN 72 DIV 2 + + CASE - 38 WHEN - 69 THEN + ( - + 97 ) + 88 * 43 END + - 9 WHEN + 89 THEN NULL ELSE NULL END END, 57, 17 DIV + - 63 * - ( 1 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6874
SELECT + COALESCE ( + - CASE + COUNT ( * ) WHEN - 60 * 87 + + COUNT ( + + 63 ) / SUM ( ALL 22 ) + - 11 THEN NULL ELSE CASE + 71 WHEN + CAST ( + 62 AS INTEGER ) THEN 72 / 2 + + CASE - 38 WHEN - 69 THEN + ( - + 97 ) + 88 * 43 END + - 9 WHEN + 89 THEN NULL ELSE NULL END END, 57, 17 / + - 63 * - ( 1 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6875
SELECT COUNT( + - 51 ) + 76 DIV + 62 + - COUNT( * ) + 9
----
10

skipif mysql # not compatible
query I rowsort label-6875
SELECT COUNT ( + - 51 ) + 76 / + 62 + - COUNT ( * ) + 9
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6876
SELECT COUNT( * ) DIV + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6876
SELECT COUNT ( * ) / + - COUNT ( * ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6877
SELECT ALL + AVG ( ALL + - CAST( NULL AS SIGNED ) ) / + 85 + - + COUNT( + 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) / + 85 + - + COUNT ( + 9 ) AS col1
----
NULL

query II rowsort
SELECT 3 col1, + 4
----
3
4

query I rowsort
SELECT DISTINCT - 58 * + + 25 AS col0
----
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL - COUNT( DISTINCT + - 48 ) * - 45 * + 25 + COALESCE ( 76, - 36 ) AS col0
----
1201

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL - COUNT ( DISTINCT + - 48 ) * - 45 * + 25 + COALESCE ( 76, - 36 ) AS col0
----
1201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT SUM( 43 ) DIV - + 96 * - - 52 + 84 + - - 8
----
92

skipif mysql # not compatible
query I rowsort label-6881
SELECT SUM ( 43 ) / - + 96 * - - 52 + 84 + - - 8
----
92

query I rowsort
SELECT ALL 80 + + 13 AS col0
----
93

query I rowsort
SELECT DISTINCT 39 + 7 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT 8 + + + CASE 67 WHEN 80 THEN COUNT( * ) * + 24 * + 40 + + SUM( + 10 ) - - COUNT( * ) - - 15 * + ( - + 54 ) * + + 84 + - 47 ELSE NULL END * - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT 8 + + + CASE 67 WHEN 80 THEN COUNT ( * ) * + 24 * + 40 + + SUM ( + 10 ) - - COUNT ( * ) - - 15 * + ( - + 54 ) * + + 84 + - 47 ELSE NULL END * - + 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL MAX( DISTINCT - + 90 ) + - - 0
----
-90

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL MAX ( DISTINCT - + 90 ) + - - 0
----
-90

query I rowsort
SELECT ALL 33 * - 18 AS col2
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT 17 + 40 + - 61 + - + 88 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT 17 + 40 + - 61 + - + 88 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 58 * + 71 + 33
----
-4085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT ALL + 93 + - 8 + - - CASE - 65 WHEN + 14 * 52 THEN NULL ELSE 72 END * 5 + - - 1 - - 57 + + CASE - CAST( - 59 AS SIGNED ) WHEN + - 30 * + 19 * + 61 + 79 * 44 + - + 97 / + CASE - 27 WHEN COUNT( * ) + - - 62 / + - 8 - + MIN( - 88 ) + 28 / + 13 - + - 66 / 36 THEN - COUNT( * ) * COUNT( * ) WHEN COUNT( * ) THEN + 86 - 48 ELSE COUNT( * ) END - CAST( NULL AS SIGNED ) THEN NULL ELSE - 39 END
----
464

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL + 93 + - 8 + - - CASE - 65 WHEN + 14 * 52 THEN NULL ELSE 72 END * 5 + - - 1 - - 57 + + CASE - CAST ( - 59 AS INTEGER ) WHEN + - 30 * + 19 * + 61 + 79 * 44 + - + 97 / + CASE - 27 WHEN COUNT ( * ) + - - 62 / + - 8 - + MIN ( - 88 ) + 28 / + 13 - + - 66 / 36 THEN - COUNT ( * ) * COUNT ( * ) WHEN COUNT ( * ) THEN + 86 - 48 ELSE COUNT ( * ) END - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 39 END
----
464

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT 33 + - COALESCE ( 2, + 76 ) AS col0, COUNT( * )
----
31
1

skipif mysql # not compatible
query II rowsort label-6890
SELECT 33 + - COALESCE ( 2, + 76 ) AS col0, COUNT ( * )
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT ALL + 30 + + COUNT( * ) + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + 30 + + COUNT ( * ) + - COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT - CASE + 76 WHEN + 22 THEN + 14 ELSE NULL END + - 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6893
SELECT ALL - CAST( - 88 AS SIGNED ) + - COUNT( * ) + - 90 * 5
----
-363

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL - CAST ( - 88 AS INTEGER ) + - COUNT ( * ) + - 90 * 5
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL 49 * - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL 49 * - COUNT ( * ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT 42 + + 17 * + + 69 + + + ( 72 ) + - + COUNT( * ) - 0 + + ( - - 9 ) AS col1
----
1295

skipif mysql # not compatible
query I rowsort label-6895
SELECT 42 + + 17 * + + 69 + + + ( 72 ) + - + COUNT ( * ) - 0 + + ( - - 9 ) AS col1
----
1295

query I rowsort
SELECT ALL - CASE + 44 WHEN + ( 62 ) * + 70 THEN 48 WHEN + + ( - 95 ) THEN NULL ELSE NULL END - 26 * 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6897
SELECT MAX( 49 ) + + 10 * - 51, 47 AS col2
----
-461
47

skipif mysql # not compatible
query II rowsort label-6897
SELECT MAX ( 49 ) + + 10 * - 51, 47 AS col2
----
-461
47

query I rowsort
SELECT ALL - 97 * - + 26 + 86 AS col0
----
2608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6899
SELECT + COUNT( - 95 ) DIV - - 75 * + - 67, 2 * + + CAST( NULL AS SIGNED ) + - - 72 + + 61 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6899
SELECT + COUNT ( - 95 ) / - - 75 * + - 67, 2 * + + CAST ( NULL AS INTEGER ) + - - 72 + + 61 AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6900
SELECT - CAST( + COALESCE ( - 33, + + CASE - + 70 WHEN + 20 * - - 56 + 37 / - 9 + - 19 THEN - 35 + - 17 WHEN 13 * - + 67 * MIN( + 89 ) * + - 36 + COUNT( * ) + + - 16 + + + COUNT( * ) * - COUNT( * ) THEN - 51 ELSE NULL END * + + 42 / + - ( 45 ) + 60 ) AS SIGNED ) + - 72
----
-39

skipif mysql # not compatible
query I rowsort label-6900
SELECT - CAST ( + COALESCE ( - 33, + + CASE - + 70 WHEN + 20 * - - 56 + 37 / - 9 + - 19 THEN - 35 + - 17 WHEN 13 * - + 67 * MIN ( + 89 ) * + - 36 + COUNT ( * ) + + - 16 + + + COUNT ( * ) * - COUNT ( * ) THEN - 51 ELSE NULL END * + + 42 / + - ( 45 ) + 60 ) AS INTEGER ) + - 72
----
-39

query I rowsort
SELECT - 41 + - 81 AS col0
----
-122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6902
SELECT - CAST( COUNT( * ) AS SIGNED ) * - + CAST( NULL AS SIGNED ) * + - 73 * + 74 / - 82 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - + CAST ( NULL AS INTEGER ) * + - 73 * + 74 / - 82 + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT ALL - COALESCE ( - 26, - 34 * + 79 * - - CAST( NULL AS SIGNED ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL - COALESCE ( - 26, - 34 * + 79 * - - CAST ( NULL AS INTEGER ) ) AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT ALL - 14 DIV 50 * COUNT( * ) * 7 + - ( + 36 ) + 45
----
9

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - 14 / 50 * COUNT ( * ) * 7 + - ( + 36 ) + 45
----
9

query I rowsort
SELECT - 8 * + + 4 * 63
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL + - ( + 23 ) / + CASE - ( - COUNT( * ) ) WHEN - 63 + + - 64 / + CASE + 96 WHEN 25 THEN - 15 + COUNT( * ) END THEN NULLIF ( 48, 5 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + - ( + 23 ) / + CASE - ( - COUNT ( * ) ) WHEN - 63 + + - 64 / + CASE + 96 WHEN 25 THEN - 15 + COUNT ( * ) END THEN NULLIF ( 48, 5 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT 13 + 54 - 57 + 35 DIV COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6907
SELECT 13 + 54 - 57 + 35 / COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT + 74 * + + COUNT( * ) AS col0, + 83 + - 89 * + 36
----
74
-3121

skipif mysql # not compatible
query II rowsort label-6908
SELECT + 74 * + + COUNT ( * ) AS col0, + 83 + - 89 * + 36
----
74
-3121

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT + COUNT( * ) * + + 88 + - 31 + + 99, - COUNT( * ) AS col1
----
156
-1

skipif mysql # not compatible
query II rowsort label-6909
SELECT + COUNT ( * ) * + + 88 + - 31 + + 99, - COUNT ( * ) AS col1
----
156
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6910
SELECT 62 - - 25, COUNT( * ) + COUNT( * ) AS col2
----
87
2

skipif mysql # not compatible
query II rowsort label-6910
SELECT 62 - - 25, COUNT ( * ) + COUNT ( * ) AS col2
----
87
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT - 46 + + ( 16 ) / + 27 + + + ( 46 ) * + + COUNT( * ) + COUNT( * ) + + CASE - + 40 WHEN + COALESCE ( + MIN( - 23 ), - + 92, - - 83 + + 16 ) THEN + 74 / + 1 - + 76 + - 23 + - + 79 + - + 51 / + COALESCE ( + 44, + 44 * 49 + - 44 * + + 89 ) * + 89 + - COUNT( DISTINCT ( 63 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT - 46 + + ( 16 ) / + 27 + + + ( 46 ) * + + COUNT ( * ) + COUNT ( * ) + + CASE - + 40 WHEN + COALESCE ( + MIN ( - 23 ), - + 92, - - 83 + + 16 ) THEN + 74 / + 1 - + 76 + - 23 + - + 79 + - + 51 / + COALESCE ( + 44, + 44 * 49 + - 44 * + + 89 ) * + 89 + - COUNT ( DISTINCT ( 63 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT - 90 * 44 * - MIN( - + ( + 2 ) ) - ( COUNT( * ) )
----
-7921

skipif mysql # not compatible
query I rowsort label-6912
SELECT - 90 * 44 * - MIN ( - + ( + 2 ) ) - ( COUNT ( * ) )
----
-7921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6913
SELECT ALL CAST( NULL AS SIGNED ) * + NULLIF ( + MIN( ALL - + 30 ), + + NULLIF ( + + 64, 20 ) - + COUNT( * ) + 8 ) + + - COALESCE ( - 60, - + 69 * + 51 ) - + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL CAST ( NULL AS INTEGER ) * + NULLIF ( + MIN ( ALL - + 30 ), + + NULLIF ( + + 64, 20 ) - + COUNT ( * ) + 8 ) + + - COALESCE ( - 60, - + 69 * + 51 ) - + + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6914
SELECT ( COUNT( * ) ) DIV 54 + 50 + + 17
----
67

skipif mysql # not compatible
query I rowsort label-6914
SELECT ( COUNT ( * ) ) / 54 + 50 + + 17
----
67

query I rowsort
SELECT ALL 93 + + 40 AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT ALL + COALESCE ( + 36, + 29 * + CAST( + 19 AS SIGNED ) * - 40 ) + - MIN( - 96 ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + COALESCE ( + 36, + 29 * + CAST ( + 19 AS INTEGER ) * - 40 ) + - MIN ( - 96 ) AS col1
----
132

query I rowsort
SELECT + + NULLIF ( - 51, - + 60 )
----
-51

query I rowsort
SELECT DISTINCT - + NULLIF ( - 49, - 18 * + 70 )
----
49

query I rowsort
SELECT 8 * - + 28
----
-224

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT ALL 74 + + ( 44 ) DIV + - 47 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL 74 + + ( 44 ) / + - 47 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT DISTINCT 92 + - + CASE 41 WHEN - 4 + + 73 + + 9 * - COUNT( * ) THEN 96 * - 70 + + 2 * + 7 * - 88 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT 92 + - + CASE 41 WHEN - 4 + + 73 + + 9 * - COUNT ( * ) THEN 96 * - 70 + + 2 * + 7 * - 88 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL 27 + COUNT( * ) * + 0 * - 1
----
27

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL 27 + COUNT ( * ) * + 0 * - 1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT MAX( - 60 ) * 95 AS col1
----
-5700

skipif mysql # not compatible
query I rowsort label-6923
SELECT MAX ( - 60 ) * 95 AS col1
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT 33 * + COUNT( * ) * + - 98 AS col2
----
-3234

skipif mysql # not compatible
query I rowsort label-6924
SELECT 33 * + COUNT ( * ) * + - 98 AS col2
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT MIN( ALL - 10 ) + - + 57 + CASE + 14 WHEN - 12 THEN 16 END + 18 * + - AVG ( + + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT MIN ( ALL - 10 ) + - + 57 + CASE + 14 WHEN - 12 THEN 16 END + 18 * + - AVG ( + + 23 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT ALL CAST( NULL AS SIGNED ) + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL CAST ( NULL AS INTEGER ) + - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL MAX( - COALESCE ( + 33, - + 11 ) ) * - COUNT( DISTINCT + 8 ) * - 91
----
-3003

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL MAX ( - COALESCE ( + 33, - + 11 ) ) * - COUNT ( DISTINCT + 8 ) * - 91
----
-3003

onlyif mysql # DIV for integer division: 
query I rowsort label-6928
SELECT 52 DIV + NULLIF ( + 44, - + 94 * 27 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6928
SELECT 52 / + NULLIF ( + 44, - + 94 * 27 ) AS col2
----
1

query I rowsort
SELECT NULLIF ( 0, 45 ) * 28
----
0

query I rowsort
SELECT DISTINCT + 17 * - 99 AS col2
----
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT - NULLIF ( + 59, - - COUNT( * ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6931
SELECT - NULLIF ( + 59, - - COUNT ( * ) ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6932
SELECT ALL AVG ( - - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL AVG ( - - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6933
SELECT 42 / + CAST( NULL AS DECIMAL ) * + ( - 48 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT 42 / + CAST ( NULL AS REAL ) * + ( - 48 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6934
SELECT ALL CASE + 99 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN - 27 / - 14 THEN + ( COUNT( * ) ) ELSE COUNT( * ) * + 33 END - - ( ( 11 ) )
----
44

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL CASE + 99 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 27 / - 14 THEN + ( COUNT ( * ) ) ELSE COUNT ( * ) * + 33 END - - ( ( 11 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT 22 + - 77 + - ( CASE - COUNT( * ) WHEN - COUNT( * ) THEN 54 END ) AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-6935
SELECT 22 + - 77 + - ( CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN 54 END ) AS col2
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT DISTINCT 22 AS col0, + COUNT( * ) - + 46 + - COUNT( * ) * 43 + 75
----
22
-13

skipif mysql # not compatible
query II rowsort label-6936
SELECT DISTINCT 22 AS col0, + COUNT ( * ) - + 46 + - COUNT ( * ) * 43 + 75
----
22
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6937
SELECT ALL 73 AS col2, + CASE 35 WHEN - - 34 * 8 + + CASE 54 WHEN + COUNT( * ) THEN NULL WHEN + + 59 THEN + 44 * - ( + 16 ) ELSE NULL END THEN - - 89 WHEN + + 90 * + - 94 - CASE MIN( ALL + 23 ) WHEN ( + 24 ) / - 49 THEN + 56 * + 66 * - 45 END THEN + 7 * + + 1 END * - - 67 AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-6937
SELECT ALL 73 AS col2, + CASE 35 WHEN - - 34 * 8 + + CASE 54 WHEN + COUNT ( * ) THEN NULL WHEN + + 59 THEN + 44 * - ( + 16 ) ELSE NULL END THEN - - 89 WHEN + + 90 * + - 94 - CASE MIN ( ALL + 23 ) WHEN ( + 24 ) / - 49 THEN + 56 * + 66 * - 45 END THEN + 7 * + + 1 END * - - 67 AS col1
----
73
NULL

query I rowsort
SELECT + 19 + 40 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6939
SELECT + CASE - 62 WHEN - 50 THEN - CAST( NULL AS SIGNED ) + + - 59 WHEN - CASE + 36 WHEN 21 + 22 THEN NULL ELSE 7 * + COALESCE ( - 26, 88 * - COALESCE ( CASE - - 73 WHEN + + 32 + + 41 THEN + 57 END, - COUNT( * ) ) + 84 ) + - 81 + - - COUNT( * ) + - - 64 + + 28 END THEN + 20 END + - COUNT( * ) + - NULLIF ( 73, + 10 - ( 36 + - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT + CASE - 62 WHEN - 50 THEN - CAST ( NULL AS INTEGER ) + + - 59 WHEN - CASE + 36 WHEN 21 + 22 THEN NULL ELSE 7 * + COALESCE ( - 26, 88 * - COALESCE ( CASE - - 73 WHEN + + 32 + + 41 THEN + 57 END, - COUNT ( * ) ) + 84 ) + - 81 + - - COUNT ( * ) + - - 64 + + 28 END THEN + 20 END + - COUNT ( * ) + - NULLIF ( 73, + 10 - ( 36 + - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT - + 29 * - 56 AS col0
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - 69 + + COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 69 + + COUNT ( * ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6942
SELECT DISTINCT CASE - AVG ( ALL - ( 63 ) ) WHEN + 64 THEN NULL WHEN 49 * + CASE + + 43 WHEN - 88 + 0 * + SUM( ALL + 63 ) THEN NULL WHEN 57 * 10 + - CAST( 31 AS SIGNED ) THEN - 48 END THEN + COALESCE ( - 33, 38 ) ELSE - + NULLIF ( - 53, + + COALESCE ( + - AVG ( + - 46 ), - COALESCE ( - 26, + 36 * + COALESCE ( - 20, + 52 ) - - 35 ) / 38 + 7, 85 - - 32 / + CAST( NULL AS DECIMAL ) ) * ( COUNT( * ) + 44 ) ) END
----
53

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT CASE - AVG ( ALL - ( 63 ) ) WHEN + 64 THEN NULL WHEN 49 * + CASE + + 43 WHEN - 88 + 0 * + SUM ( ALL + 63 ) THEN NULL WHEN 57 * 10 + - CAST ( 31 AS INTEGER ) THEN - 48 END THEN + COALESCE ( - 33, 38 ) ELSE - + NULLIF ( - 53, + + COALESCE ( + - AVG ( + - 46 ), - COALESCE ( - 26, + 36 * + COALESCE ( - 20, + 52 ) - - 35 ) / 38 + 7, 85 - - 32 / + CAST ( NULL AS REAL ) ) * ( COUNT ( * ) + 44 ) ) END
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL - + 26 * - + COUNT( * ) + + 93 + 71
----
190

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL - + 26 * - + COUNT ( * ) + + 93 + 71
----
190

query I rowsort
SELECT - + 79 + 47 + + 55
----
23

query I rowsort
SELECT - - 5 + - 98 + - 51 * 8 AS col2
----
-501

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT - 28 DIV NULLIF ( + - 70, AVG ( - 5 ) + + - 86 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6946
SELECT - 28 / NULLIF ( + - 70, AVG ( - 5 ) + + - 86 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6947
SELECT - COUNT( * ) DIV - + 72 + - 97, + CAST( NULL AS DECIMAL ) AS col1
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6947
SELECT - COUNT ( * ) / - + 72 + - 97, + CAST ( NULL AS REAL ) AS col1
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT + SUM( ALL 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6948
SELECT + SUM ( ALL 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT + + COUNT( * ) * - 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6949
SELECT + + COUNT ( * ) * - 13 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT + MIN( - + 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6950
SELECT + MIN ( - + 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL + 74 * - 69 + - COUNT( * ) * + CASE + - 5 WHEN - 24 THEN NULL WHEN + - 55 THEN 44 END * - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + 74 * - 69 + - COUNT ( * ) * + CASE + - 5 WHEN - 24 THEN NULL WHEN + - 55 THEN 44 END * - 40 AS col0
----
NULL

query I rowsort
SELECT - - 61 - - + 47 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT COALESCE ( + - ( + COUNT( * ) ), - 26 ) * - + COUNT( * ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT COALESCE ( + - ( + COUNT ( * ) ), - 26 ) * - + COUNT ( * ) + - COUNT ( * ) AS col0
----
0

query II rowsort
SELECT ALL + + 91 AS col2, + 46 * + 77
----
91
3542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6955
SELECT - 31 DIV - + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6955
SELECT - 31 / - + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT ALL + 44 * COUNT( * ) + 45 + + 56 + - 48
----
97

skipif mysql # not compatible
query I rowsort label-6956
SELECT ALL + 44 * COUNT ( * ) + 45 + + 56 + - 48
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT - CAST( NULL AS SIGNED ) * + - ( - - 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT - CAST ( NULL AS INTEGER ) * + - ( - - 85 ) AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 22, 31 ) * - - 8
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT - CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6960
SELECT - 50 * 99 - + + 35 + - COUNT( * ) * + - 18 + 92 + 41 DIV - 31 AS col1
----
-4876

skipif mysql # not compatible
query I rowsort label-6960
SELECT - 50 * 99 - + + 35 + - COUNT ( * ) * + - 18 + 92 + 41 / - 31 AS col1
----
-4876

query I rowsort
SELECT 30 * 53 + - 81 AS col2
----
1509

query I rowsort
SELECT + 15 * + 31 * - 65
----
-30225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT ALL + CAST( + + 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL + CAST ( + + 27 AS INTEGER )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT + 79 + 46 + 67 * 45 DIV + 93
----
157

skipif mysql # not compatible
query I rowsort label-6964
SELECT + 79 + 46 + 67 * 45 / + 93
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT ALL MIN( 9 ) * - - 52
----
468

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL MIN ( 9 ) * - - 52
----
468

query I rowsort
SELECT + 55 + - 90
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6967
SELECT DISTINCT 11 col1, CAST( - 91 AS SIGNED )
----
11
-91

skipif mysql # not compatible
query II rowsort label-6967
SELECT DISTINCT 11 col1, CAST ( - 91 AS INTEGER )
----
11
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT + 43 DIV - + 45
----
0

skipif mysql # not compatible
query I rowsort label-6968
SELECT + 43 / - + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT + COUNT( * ) * - 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6969
SELECT + COUNT ( * ) * - 73 AS col0
----
-73

query II rowsort
SELECT ALL 17 AS col0, - 99 * NULLIF ( - + 58, + 97 ) AS col2
----
17
5742

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6971
SELECT - NULLIF ( + - 52, - 33 + + 50 + - - CAST( NULL AS SIGNED ) + - - ( - + 31 ) * 73 ) + + 24 DIV + - 26 * - + 68
----
52

skipif mysql # not compatible
query I rowsort label-6971
SELECT - NULLIF ( + - 52, - 33 + + 50 + - - CAST ( NULL AS INTEGER ) + - - ( - + 31 ) * 73 ) + + 24 / + - 26 * - + 68
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL 7 * + - COUNT( * ) * - - 84
----
-588

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL 7 * + - COUNT ( * ) * - - 84
----
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + COUNT( * ) * + + 6 col2
----
6

skipif mysql # not compatible
query I rowsort label-6973
SELECT + COUNT ( * ) * + + 6 col2
----
6

query II rowsort
SELECT - ( + - 64 ) AS col1, + 50
----
64
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL + NULLIF ( - COUNT( * ), - - 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL + NULLIF ( - COUNT ( * ), - - 27 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6976
SELECT DISTINCT NULLIF ( - - 38, 37 + - 44 ) DIV + - 22 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT NULLIF ( - - 38, 37 + - 44 ) / + - 22 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT + - COUNT( * ) * - 21
----
21

skipif mysql # not compatible
query I rowsort label-6977
SELECT + - COUNT ( * ) * - 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL + 14 * - 78 * 27 * - COUNT( * ) + 89 col0
----
29573

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL + 14 * - 78 * 27 * - COUNT ( * ) + 89 col0
----
29573

onlyif mysql # aggregate syntax: 
query II rowsort label-6979
SELECT + COUNT( * ) AS col2, ( - 68 )
----
1
-68

skipif mysql # not compatible
query II rowsort label-6979
SELECT + COUNT ( * ) AS col2, ( - 68 )
----
1
-68

query II rowsort
SELECT DISTINCT + 91, 12 AS col2
----
91
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6981
SELECT ALL 59, COUNT( * ) + - 23 * + ( - - 91 ) * - 95 * 79 AS col1
----
59
15707966

skipif mysql # not compatible
query II rowsort label-6981
SELECT ALL 59, COUNT ( * ) + - 23 * + ( - - 91 ) * - 95 * 79 AS col1
----
59
15707966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL 87 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL 87 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + + 57 * - - ( - 76 )
----
-4332

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6984
SELECT + CAST( NULL AS DECIMAL ) AS col0, + 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-6984
SELECT + CAST ( NULL AS REAL ) AS col0, + 76 AS col0
----
NULL
76

query I rowsort
SELECT DISTINCT - 71 + - - 78 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6986
SELECT - - COALESCE ( - COALESCE ( + 62, + + 59 * + 67 + + + 5 * - 11 * + SUM( DISTINCT 40 ) ), + 80 * - COALESCE ( 53, - 58, + - 97 - 71 + - ( 83 ) - - - 14 DIV - MAX( + 80 ) ) * - CAST( NULL AS SIGNED ) * + 13 )
----
-62

skipif mysql # not compatible
query I rowsort label-6986
SELECT - - COALESCE ( - COALESCE ( + 62, + + 59 * + 67 + + + 5 * - 11 * + SUM ( DISTINCT 40 ) ), + 80 * - COALESCE ( 53, - 58, + - 97 - 71 + - ( 83 ) - - - 14 / - MAX ( + 80 ) ) * - CAST ( NULL AS INTEGER ) * + 13 )
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT ALL - 84 DIV - 39 + + 24 + 17
----
43

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL - 84 / - 39 + + 24 + 17
----
43

query I rowsort
SELECT DISTINCT + 79 * - 1 col0
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6989
SELECT DISTINCT + + 80 AS col0, + COUNT( * ) + - 79 + + - ( + COUNT( * ) ) AS col2
----
80
-79

skipif mysql # not compatible
query II rowsort label-6989
SELECT DISTINCT + + 80 AS col0, + COUNT ( * ) + - 79 + + - ( + COUNT ( * ) ) AS col2
----
80
-79

query I rowsort
SELECT - + 57 * 1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6991
SELECT - COUNT( * ) + - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT - COUNT ( * ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6992
SELECT ALL + - CAST( - 66 AS SIGNED ) DIV COALESCE ( + + 99, - + 21 ) * + 53 + + - 47 + - + 97 + + - 4 + 18
----
-130

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + - CAST ( - 66 AS INTEGER ) / COALESCE ( + + 99, - + 21 ) * + 53 + + - 47 + - + 97 + + - 4 + 18
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT ALL - 55 DIV + 66 + + 40 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - 55 / + 66 + + 40 AS col1
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6994
SELECT DISTINCT + 67 DIV - - 84 + 36
----
36

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT + 67 / - - 84 + 36
----
36

query I rowsort
SELECT - 92 - + - 2 - + 38
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - SUM( - 11 ) * - 56 AS col0
----
-616

skipif mysql # not compatible
query I rowsort label-6996
SELECT - SUM ( - 11 ) * - 56 AS col0
----
-616

query I rowsort
SELECT ALL + 34 * - + 33
----
-1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT CAST( 69 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6998
SELECT CAST ( 69 AS INTEGER ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT ALL + COUNT( DISTINCT + 79 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL + COUNT ( DISTINCT + 79 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT ALL + COUNT( ALL - + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + COUNT ( ALL - + 21 )
----
1

query I rowsort
SELECT - 62 * + 39
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT + MAX( DISTINCT 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7002
SELECT + MAX ( DISTINCT 77 ) AS col1
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7003
SELECT DISTINCT + 57 DIV - 95 - 6 DIV + 86 * + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT + 57 / - 95 - 6 / + 86 * + 68 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT DISTINCT 91 DIV - - 65
----
1

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT 91 / - - 65
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT + MIN( DISTINCT - 52 ) AS col0, 82
----
-52
82

skipif mysql # not compatible
query II rowsort label-7005
SELECT + MIN ( DISTINCT - 52 ) AS col0, 82
----
-52
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL 26 * - COUNT( * ) * 10
----
-260

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL 26 * - COUNT ( * ) * 10
----
-260

query I rowsort
SELECT + 32 * - 49 AS col2
----
-1568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7008
SELECT ALL - MIN( DISTINCT + 19 ) DIV - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL - MIN ( DISTINCT + 19 ) / - 33 AS col0
----
0

query I rowsort
SELECT 23 - + 36
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT 26 * + COUNT( * ) * + + 67 * + - 52 AS col0
----
-90584

skipif mysql # not compatible
query I rowsort label-7010
SELECT 26 * + COUNT ( * ) * + + 67 * + - 52 AS col0
----
-90584

query I rowsort
SELECT DISTINCT - 81 * - 86
----
6966

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT SUM( DISTINCT - 85 ) * COUNT( * ) + 11
----
-74

skipif mysql # not compatible
query I rowsort label-7012
SELECT SUM ( DISTINCT - 85 ) * COUNT ( * ) + 11
----
-74

query I rowsort
SELECT ALL 83 * + 5 * + 87
----
36105

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT 42 - + MAX( - 92 ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-7014
SELECT 42 - + MAX ( - 92 ) AS col2
----
134

query I rowsort
SELECT ALL + 74 * - 22
----
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT COALESCE ( + 46, 10 * 18, COALESCE ( - 95, 20 * - 44 * + COUNT( DISTINCT - - 18 ), + + COUNT( * ) ) * + COALESCE ( + 18, - 2 * + COALESCE ( + + 30, - SUM( + + 6 ) + + - 90 ) + 26 ) - 96 ) * + + 45 + - 53 AS col1
----
2017

skipif mysql # not compatible
query I rowsort label-7016
SELECT COALESCE ( + 46, 10 * 18, COALESCE ( - 95, 20 * - 44 * + COUNT ( DISTINCT - - 18 ), + + COUNT ( * ) ) * + COALESCE ( + 18, - 2 * + COALESCE ( + + 30, - SUM ( + + 6 ) + + - 90 ) + 26 ) - 96 ) * + + 45 + - 53 AS col1
----
2017

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT DISTINCT + COUNT( * ) + - 38 + 86
----
49

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT + COUNT ( * ) + - 38 + 86
----
49

query I rowsort
SELECT ALL 57 + + + 81 + 78 * 37 * 97
----
280080

query I rowsort
SELECT 22 + 58 + 12
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT 80 * 11 * 5 * - - ( ( + - MIN( ALL 31 ) ) )
----
-136400

skipif mysql # not compatible
query I rowsort label-7020
SELECT 80 * 11 * 5 * - - ( ( + - MIN ( ALL 31 ) ) )
----
-136400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT ALL ( - COALESCE ( - 1, + - 84 * 75 * - ( 28 ) + + CAST( NULL AS SIGNED ) + 94 * ( 86 ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL ( - COALESCE ( - 1, + - 84 * 75 * - ( 28 ) + + CAST ( NULL AS INTEGER ) + 94 * ( 86 ) ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT + 54 + + - COUNT( * ) + + 22 + + - 57 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7022
SELECT + 54 + + - COUNT ( * ) + + 22 + + - 57 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT DISTINCT + 58 * - - 43 + + COUNT( ALL - 92 )
----
2495

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT + 58 * - - 43 + + COUNT ( ALL - 92 )
----
2495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ( + 53 ) + CASE + 19 WHEN - - 80 THEN + - ( - 57 ) WHEN - - 83 - + COUNT( + 15 ) THEN COUNT( * ) ELSE + 1 END + - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ( + 53 ) + CASE + 19 WHEN - - 80 THEN + - ( - 57 ) WHEN - - 83 - + COUNT ( + 15 ) THEN COUNT ( * ) ELSE + 1 END + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7025
SELECT ALL NULLIF ( + ( 17 ), - 73 * - COUNT( - 35 ) * + COUNT( * ) + + 40 * + 58 + - 29 ) + + + SUM( ALL 46 ) AS col1, - 52 * + + ( + 8 ) + - + 88 + + 42 + - 7
----
63
-469

skipif mysql # not compatible
query II rowsort label-7025
SELECT ALL NULLIF ( + ( 17 ), - 73 * - COUNT ( - 35 ) * + COUNT ( * ) + + 40 * + 58 + - 29 ) + + + SUM ( ALL 46 ) AS col1, - 52 * + + ( + 8 ) + - + 88 + + 42 + - 7
----
63
-469

query I rowsort
SELECT 37 + 43 * - 32
----
-1339

query I rowsort
SELECT DISTINCT + ( - - 44 ) * + 51
----
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL + CASE - - 73 WHEN - - COUNT( * ) THEN NULL WHEN 97 + COUNT( * ) * - + 69 * + COUNT( * ) THEN - 93 END * 42 + + 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + CASE - - 73 WHEN - - COUNT ( * ) THEN NULL WHEN 97 + COUNT ( * ) * - + 69 * + COUNT ( * ) THEN - 93 END * 42 + + 51 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT DISTINCT - SUM( + 79 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - SUM ( + 79 ) AS col2
----
-79

query II rowsort
SELECT 85 AS col0, 57
----
85
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7031
SELECT DISTINCT - 85, COUNT( * ) col1
----
-85
1

skipif mysql # not compatible
query II rowsort label-7031
SELECT DISTINCT - 85, COUNT ( * ) col1
----
-85
1

query I rowsort
SELECT ALL - CASE WHEN NULL IS NOT NULL THEN NULL ELSE + 82 END - + 43 AS col0
----
-125

query I rowsort
SELECT 33 - + 95
----
-62

query I rowsort
SELECT 36 * 43 AS col2
----
1548

query I rowsort
SELECT 26 * - 63 AS col1
----
-1638

query I rowsort
SELECT 61 * - 52
----
-3172

onlyif mysql # aggregate syntax: 
query II rowsort label-7037
SELECT 32 + + - 61 + - 59 - - 18 * + COUNT( * ) * - 6, - COUNT( ALL - 13 ) col1
----
-196
-1

skipif mysql # not compatible
query II rowsort label-7037
SELECT 32 + + - 61 + - 59 - - 18 * + COUNT ( * ) * - 6, - COUNT ( ALL - 13 ) col1
----
-196
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT 31 * + 41 - - CAST( - 62 AS SIGNED ) + + 16 col2
----
1225

skipif mysql # not compatible
query I rowsort label-7038
SELECT 31 * + 41 - - CAST ( - 62 AS INTEGER ) + + 16 col2
----
1225

onlyif mysql # DIV for integer division: 
query II rowsort label-7039
SELECT DISTINCT - 95 * 3 * - + 4, 69 DIV + 21 + 53 AS col1
----
1140
56

skipif mysql # not compatible
query II rowsort label-7039
SELECT DISTINCT - 95 * 3 * - + 4, 69 / + 21 + 53 AS col1
----
1140
56

query II rowsort
SELECT - 97 * 96 + 35 col1, 23
----
-9277
23

query I rowsort
SELECT 77 - + 26 AS col2
----
51

query I rowsort
SELECT 51 * - - 74 AS col2
----
3774

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7043
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col2, 42 * - SUM( DISTINCT - 74 ) * 4 AS col0
----
NULL
12432

skipif mysql # not compatible
query II rowsort label-7043
SELECT DISTINCT - CAST ( NULL AS REAL ) col2, 42 * - SUM ( DISTINCT - 74 ) * 4 AS col0
----
NULL
12432

onlyif mysql # aggregate syntax: 
query II rowsort label-7044
SELECT ALL 36 + - 50 - + COUNT( * ) AS col0, - 46 * 70
----
-15
-3220

skipif mysql # not compatible
query II rowsort label-7044
SELECT ALL 36 + - 50 - + COUNT ( * ) AS col0, - 46 * 70
----
-15
-3220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT 77 + - - 74 + + 98 * - CAST( + 20 AS SIGNED ) AS col2
----
-1809

skipif mysql # not compatible
query I rowsort label-7045
SELECT 77 + - - 74 + + 98 * - CAST ( + 20 AS INTEGER ) AS col2
----
-1809

query I rowsort
SELECT ALL - 87 + + - 21 col1
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-7047
SELECT DISTINCT - + 52 DIV - 35
----
1

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT - + 52 / - 35
----
1

query I rowsort
SELECT ALL - - 2 * + - 89
----
-178

query I rowsort
SELECT ALL + - COALESCE ( - - 95, ( + 69 ) ) * 57
----
-5415

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT 26 + 43 + + - 58 * + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-7050
SELECT 26 + 43 + + - 58 * + COUNT ( * )
----
11

query I rowsort
SELECT DISTINCT - 29 + 83 AS col0
----
54

query I rowsort
SELECT ALL 91 + + 11
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ALL - - 48 * 51 * - + MIN( DISTINCT - 35 ) AS col1
----
85680

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL - - 48 * 51 * - + MIN ( DISTINCT - 35 ) AS col1
----
85680

query I rowsort
SELECT 5 * + 96 AS col1
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT DISTINCT - + COUNT( - 32 ) + + - 46 + + 0 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT - + COUNT ( - 32 ) + + - 46 + + 0 AS col2
----
-47

query I rowsort
SELECT ALL + + 35 - - 84
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT ALL - COUNT( * ) - 29
----
-30

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL - COUNT ( * ) - 29
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + 10 * + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7058
SELECT + 10 * + COUNT ( * ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7059
SELECT ALL 12, COALESCE ( + NULLIF ( + + CAST( NULL AS SIGNED ), - 25 - + MAX( - 58 ) ), + + 82 ) * + 67 AS col1
----
12
5494

skipif mysql # not compatible
query II rowsort label-7059
SELECT ALL 12, COALESCE ( + NULLIF ( + + CAST ( NULL AS INTEGER ), - 25 - + MAX ( - 58 ) ), + + 82 ) * + 67 AS col1
----
12
5494

query I rowsort
SELECT - 33 + + 36
----
3

query I rowsort
SELECT DISTINCT ( + + 97 )
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7062
SELECT ALL 98 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL 98 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7063
SELECT ALL CAST( + 66 AS SIGNED ) - - 60 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL CAST ( + 66 AS INTEGER ) - - 60 AS col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT DISTINCT 27 DIV 27 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7064
SELECT DISTINCT 27 / 27 AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7065
SELECT 36 - + 81 AS col2, - 37 DIV - 49 AS col2
----
-45
0

skipif mysql # not compatible
query II rowsort label-7065
SELECT 36 - + 81 AS col2, - 37 / - 49 AS col2
----
-45
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7066
SELECT 35 DIV - ( + 82 ) * - 75 + + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7066
SELECT 35 / - ( + 82 ) * - 75 + + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ALL COUNT( ALL + 16 ) * + - 53
----
-53

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL COUNT ( ALL + 16 ) * + - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT CASE COUNT( * ) WHEN + 46 * 87 THEN - + 72 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7068
SELECT CASE COUNT ( * ) WHEN + 46 * 87 THEN - + 72 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT + 20 * MIN( + - 90 ) AS col0
----
-1800

skipif mysql # not compatible
query I rowsort label-7069
SELECT + 20 * MIN ( + - 90 ) AS col0
----
-1800

onlyif mysql # aggregate syntax: 
query II rowsort label-7070
SELECT + 31 * 32 + - 15 + - + NULLIF ( COUNT( * ), - MIN( + + 84 ) ) AS col1, - 86
----
976
-86

skipif mysql # not compatible
query II rowsort label-7070
SELECT + 31 * 32 + - 15 + - + NULLIF ( COUNT ( * ), - MIN ( + + 84 ) ) AS col1, - 86
----
976
-86

query I rowsort
SELECT CASE + + ( - 21 ) WHEN - 47 THEN NULL ELSE - + 96 END AS col1
----
-96

query I rowsort
SELECT 36 * 58 * - 49 * - 87 + + ( 86 ) + - - 94 + 37 AS col2
----
8901361

query I rowsort
SELECT DISTINCT 20 * 10
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7074
SELECT ALL MIN( ALL - 23 ) * 48 DIV 71 - SUM( - - ( - - 36 ) ) + - 25 * COUNT( * ) * + CAST( - 99 AS SIGNED )
----
2424

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL MIN ( ALL - 23 ) * 48 / 71 - SUM ( - - ( - - 36 ) ) + - 25 * COUNT ( * ) * + CAST ( - 99 AS INTEGER )
----
2424

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT SUM( DISTINCT - 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-7075
SELECT SUM ( DISTINCT - 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + COALESCE ( + 99, + COUNT( DISTINCT - 3 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7076
SELECT + COALESCE ( + 99, + COUNT ( DISTINCT - 3 ) ) AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7077
SELECT ALL + 92 * + CASE + + CASE - 52 WHEN + - COALESCE ( - 39, CASE + + 42 WHEN - 42 THEN 45 END * - - 70 ) * + 59 + + + 89 THEN - 15 WHEN - 89 + - 28 THEN NULL END WHEN - 89 THEN - CAST( + - 80 AS SIGNED ) WHEN - 42 THEN NULL END + - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + 92 * + CASE + + CASE - 52 WHEN + - COALESCE ( - 39, CASE + + 42 WHEN - 42 THEN 45 END * - - 70 ) * + 59 + + + 89 THEN - 15 WHEN - 89 + - 28 THEN NULL END WHEN - 89 THEN - CAST ( + - 80 AS INTEGER ) WHEN - 42 THEN NULL END + - + 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7078
SELECT DISTINCT - 9 * - 82 + 91 + 6 DIV + + 97 * + 56 + - 1 AS col0
----
828

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT - 9 * - 82 + 91 + 6 / + + 97 * + 56 + - 1 AS col0
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT DISTINCT - COUNT( 63 ) * + - 87
----
87

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT - COUNT ( 63 ) * + - 87
----
87

query I rowsort
SELECT ALL 68 * + 7 * - 48 + - + 32
----
-22880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7081
SELECT + COALESCE ( + + 72, + - 29 DIV - 38 - 12 - + + COUNT( * ) + + + CAST( - COUNT( * ) AS SIGNED ) DIV + 88 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7081
SELECT + COALESCE ( + + 72, + - 29 / - 38 - 12 - + + COUNT ( * ) + + + CAST ( - COUNT ( * ) AS INTEGER ) / + 88 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7082
SELECT + 95 - - 28, - 30 + + COUNT( * ) AS col2
----
123
-29

skipif mysql # not compatible
query II rowsort label-7082
SELECT + 95 - - 28, - 30 + + COUNT ( * ) AS col2
----
123
-29

query II rowsort
SELECT + - ( + 95 ), + 62 - - 19 AS col1
----
-95
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7084
SELECT ALL - ( + COUNT( * ) ) * + + ( - 50 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - ( + COUNT ( * ) ) * + + ( - 50 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 79 * - 11 - + 84 AS col2
----
-953

query I rowsort
SELECT ALL - 91 * + 33
----
-3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7087
SELECT ALL - - CASE SUM( - 37 ) WHEN + 23 + - + 56 * 22 / + 73 THEN - + 71 WHEN + - 77 + + 29 THEN NULL ELSE NULL END + + 29 * NULLIF ( + - 96, - + 69 * CAST( - 57 AS SIGNED ) * - + 89 - - 25 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - - CASE SUM ( - 37 ) WHEN + 23 + - + 56 * 22 / + 73 THEN - + 71 WHEN + - 77 + + 29 THEN NULL ELSE NULL END + + 29 * NULLIF ( + - 96, - + 69 * CAST ( - 57 AS INTEGER ) * - + 89 - - 25 + COUNT ( * ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT ALL - + 75 DIV + + 4 + 22
----
4

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL - + 75 / + + 4 + 22
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT DISTINCT + 92 - + + 84 + 84 + - - CASE - - 92 WHEN + NULLIF ( - ( + 28 ), + NULLIF ( + + 44, - 77 ) + - 40 ) THEN 24 WHEN - 14 THEN NULL END * + ( + COUNT( * ) ) * - 14 - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT DISTINCT + 92 - + + 84 + 84 + - - CASE - - 92 WHEN + NULLIF ( - ( + 28 ), + NULLIF ( + + 44, - 77 ) + - 40 ) THEN 24 WHEN - 14 THEN NULL END * + ( + COUNT ( * ) ) * - 14 - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT DISTINCT - MIN( ALL - + ( + - COALESCE ( + - ( 74 ), + 15 ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT - MIN ( ALL - + ( + - COALESCE ( + - ( 74 ), + 15 ) ) )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7091
SELECT - 39 + - 92 + + + 46 DIV 56 AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-7091
SELECT - 39 + - 92 + + + 46 / 56 AS col2
----
-131

query I rowsort
SELECT + 8 - - 16 AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7093
SELECT DISTINCT + - 32 * + COUNT( * ) AS col0, 77
----
-32
77

skipif mysql # not compatible
query II rowsort label-7093
SELECT DISTINCT + - 32 * + COUNT ( * ) AS col0, 77
----
-32
77

query I rowsort
SELECT + 22 - - + 96 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT MAX( DISTINCT + 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7095
SELECT MAX ( DISTINCT + 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT - + 18 * - COUNT( * ) * + 55
----
990

skipif mysql # not compatible
query I rowsort label-7096
SELECT - + 18 * - COUNT ( * ) * + 55
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT DISTINCT CASE - + CASE - 65 WHEN COUNT( * ) THEN - 36 - - 98 WHEN + 3 * MAX( - 95 ) + + + 6 THEN + + ( + 10 ) WHEN + 96 THEN 65 / 52 WHEN - - 53 * - 35 + - 60 THEN COUNT( 61 ) + - 83 * - AVG ( DISTINCT 80 ) / + - ( MIN( DISTINCT - 4 ) ) + - 34 END WHEN - 46 * + 59 * - 52 - + 97 THEN MIN( ALL - 14 ) ELSE - NULLIF ( 10, COUNT( * ) ) * 32 END AS col1
----
-320

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT CASE - + CASE - 65 WHEN COUNT ( * ) THEN - 36 - - 98 WHEN + 3 * MAX ( - 95 ) + + + 6 THEN + + ( + 10 ) WHEN + 96 THEN 65 / 52 WHEN - - 53 * - 35 + - 60 THEN COUNT ( 61 ) + - 83 * - AVG ( DISTINCT 80 ) / + - ( MIN ( DISTINCT - 4 ) ) + - 34 END WHEN - 46 * + 59 * - 52 - + 97 THEN MIN ( ALL - 14 ) ELSE - NULLIF ( 10, COUNT ( * ) ) * 32 END AS col1
----
-320

query I rowsort
SELECT DISTINCT - ( + ( + 5 ) ) * + 83 + - - 67
----
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - MIN( ALL + - 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-7099
SELECT - MIN ( ALL + - 89 ) AS col0
----
89

query I rowsort
SELECT ALL - 12 * + - CASE - 95 WHEN - 75 * + 41 THEN - ( - NULLIF ( + 98, - - 12 + + - 98 * + ( + ( + 28 ) ) + - - 40 * + 76 * - + 31 + - - 78 ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 27 * - 17
----
459

query I rowsort
SELECT - 97 * - 27 AS col1
----
2619

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT DISTINCT + CASE + - 48 WHEN + COALESCE ( COUNT( * ), + - ( + - 37 ) ) / - 71 + + - 43 + + + 36 THEN 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT + CASE + - 48 WHEN + COALESCE ( COUNT ( * ), + - ( + - 37 ) ) / - 71 + + - 43 + + + 36 THEN 54 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7104
SELECT ALL 52 / + 65 + + - CAST( NULL AS SIGNED ) - - ( - 86 ) + + 0 - 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL 52 / + 65 + + - CAST ( NULL AS INTEGER ) - - ( - 86 ) + + 0 - 41 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT ALL 89 DIV - + 16 + - 63
----
-68

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL 89 / - + 16 + - 63
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7106
SELECT DISTINCT COALESCE ( + 67, 59, + 93 + - 42 ) DIV - - 43 + 43 * SUM( DISTINCT 4 ) + - + 78 AS col0, 21 * 97 - 59 + - 29
----
95
1949

skipif mysql # not compatible
query II rowsort label-7106
SELECT DISTINCT COALESCE ( + 67, 59, + 93 + - 42 ) / - - 43 + 43 * SUM ( DISTINCT 4 ) + - + 78 AS col0, 21 * 97 - 59 + - 29
----
95
1949

query I rowsort
SELECT ALL 7 * + - 48 AS col2
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ( + CASE 42 WHEN - 74 THEN - SUM( ALL - - ( - + 92 ) ) WHEN + 26 THEN NULL ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7108
SELECT ( + CASE 42 WHEN - 74 THEN - SUM ( ALL - - ( - + 92 ) ) WHEN + 26 THEN NULL ELSE NULL END ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7109
SELECT + 12 - - - ( + 68 ) + + - 15 DIV - + 88 + - 55
----
-111

skipif mysql # not compatible
query I rowsort label-7109
SELECT + 12 - - - ( + 68 ) + + - 15 / - + 88 + - 55
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-7110
SELECT ALL 35 * - + 64 + - 53 AS col1, 90 * + + COUNT( * ) + 68 * + 98 AS col2
----
-2293
6754

skipif mysql # not compatible
query II rowsort label-7110
SELECT ALL 35 * - + 64 + - 53 AS col1, 90 * + + COUNT ( * ) + 68 * + 98 AS col2
----
-2293
6754

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT + 43 + 33 - + - COUNT( - 32 )
----
77

skipif mysql # not compatible
query I rowsort label-7111
SELECT + 43 + 33 - + - COUNT ( - 32 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL - - ( 28 ) * COUNT( * ) * 92 - - 5
----
2581

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - - ( 28 ) * COUNT ( * ) * 92 - - 5
----
2581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7113
SELECT + ( 40 ) + + ( - - ( CASE WHEN NOT ( NULL ) IN ( - 5, COUNT( * ) * + + 76 + 82, 49 ) THEN NULL ELSE CAST( NULL AS SIGNED ) * - + COALESCE ( 48, - + 53 * - + 96 ) * 7 * + + COUNT( * ) / 73 * COUNT( * ) + + COALESCE ( SUM( DISTINCT - ( 80 ) ), ( - ( - 92 ) ) * + COALESCE ( 29, + 83 * + 98 ) + 6 / + 49 + COUNT( * ) * COUNT( * ) ) END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7113
SELECT + ( 40 ) + + ( - - ( CASE WHEN NOT ( NULL ) IN ( - 5, COUNT ( * ) * + + 76 + 82, 49 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * - + COALESCE ( 48, - + 53 * - + 96 ) * 7 * + + COUNT ( * ) / 73 * COUNT ( * ) + + COALESCE ( SUM ( DISTINCT - ( 80 ) ), ( - ( - 92 ) ) * + COALESCE ( 29, + 83 * + 98 ) + 6 / + 49 + COUNT ( * ) * COUNT ( * ) ) END ) )
----
NULL

query I rowsort
SELECT + 96 * - 1 - + 98 col0
----
-194

onlyif mysql # aggregate syntax: 
query II rowsort label-7115
SELECT - 65 * - SUM( ALL 23 ) AS col2, + ( + - ( + + 13 ) )
----
1495
-13

skipif mysql # not compatible
query II rowsort label-7115
SELECT - 65 * - SUM ( ALL 23 ) AS col2, + ( + - ( + + 13 ) )
----
1495
-13

query I rowsort
SELECT DISTINCT - 52 * + ( - 80 ) + - 87 + - 0 + + + 58 * 26 * + 61 AS col1
----
96061

query I rowsort
SELECT ALL + - 80 * ( - 23 ) - + + 71 col0
----
1769

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT - 64 * COUNT( * ) + 8 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-7118
SELECT - 64 * COUNT ( * ) + 8 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT + - MIN( 37 ) * + 52
----
-1924

skipif mysql # not compatible
query I rowsort label-7119
SELECT + - MIN ( 37 ) * + 52
----
-1924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7120
SELECT DISTINCT + + ( + NULLIF ( + 84, 89 + 42 ) ) * + - MAX( + 83 ) * - CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) + - 5
----
-6977

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT + + ( + NULLIF ( + 84, 89 + 42 ) ) * + - MAX ( + 83 ) * - CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) + - 5
----
-6977

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7121
SELECT ALL - COALESCE ( + 78, + 71, - COUNT( * ) DIV - - CAST( NULL AS SIGNED ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL - COALESCE ( + 78, + 71, - COUNT ( * ) / - - CAST ( NULL AS INTEGER ) ) AS col1
----
-78

query I rowsort
SELECT ALL - 58 * - + 17
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT - - MIN( - - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7123
SELECT - - MIN ( - - 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT + MAX( + + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT + MAX ( + + 22 ) AS col2
----
22

query I rowsort
SELECT 46 * + ( - - 36 )
----
1656

query II rowsort
SELECT DISTINCT 29 AS col2, - 56
----
29
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7127
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL + 54 + COUNT( + + 53 ) + + + 57
----
112

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + 54 + COUNT ( + + 53 ) + + + 57
----
112

query I rowsort
SELECT 35 - 61 + + 42 AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT 42 DIV - + 63 * - 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7130
SELECT 42 / - + 63 * - 9 AS col1
----
0

query I rowsort
SELECT DISTINCT + 36 + - 31
----
5

query I rowsort
SELECT ALL - 81 * - 23
----
1863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7133
SELECT ALL - ( - MAX( - - CAST( ( + - 80 ) AS SIGNED ) ) ) + + - 98, 83 - 7 col0
----
-178
76

skipif mysql # not compatible
query II rowsort label-7133
SELECT ALL - ( - MAX ( - - CAST ( ( + - 80 ) AS INTEGER ) ) ) + + - 98, 83 - 7 col0
----
-178
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7134
SELECT - 99 AS col2, COUNT( * )
----
-99
1

skipif mysql # not compatible
query II rowsort label-7134
SELECT - 99 AS col2, COUNT ( * )
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL 61 + SUM( DISTINCT - + 6 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL 61 + SUM ( DISTINCT - + 6 ) AS col0
----
55

query I rowsort
SELECT ALL + 82 * + 93 * - 2
----
-15252

query I rowsort
SELECT DISTINCT + 64 * - - 45 * + 36
----
103680

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL - 9 + + + 55 - + + MAX( ALL 60 ) + + COUNT( * ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - 9 + + + 55 - + + MAX ( ALL 60 ) + + COUNT ( * ) col1
----
-13

query I rowsort
SELECT 60 * - 83 AS col0
----
-4980

query I rowsort
SELECT ALL - ( - - 91 ) AS col0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT 67 DIV - 50 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7141
SELECT 67 / - 50 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7142
SELECT - 85 * - 29 + + + CAST( - + SUM( DISTINCT + + 24 ) AS SIGNED )
----
2441

skipif mysql # not compatible
query I rowsort label-7142
SELECT - 85 * - 29 + + + CAST ( - + SUM ( DISTINCT + + 24 ) AS INTEGER )
----
2441

onlyif mysql # aggregate syntax: 
query II rowsort label-7143
SELECT 38, + 60 + + + 13 * + COUNT( * ) + + - 61 AS col2
----
38
12

skipif mysql # not compatible
query II rowsort label-7143
SELECT 38, + 60 + + + 13 * + COUNT ( * ) + + - 61 AS col2
----
38
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT 10 DIV + - 81 + + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7144
SELECT 10 / + - 81 + + 25 AS col2
----
25

query I rowsort
SELECT ALL 95 - + 82 AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7146
SELECT ALL + MAX( DISTINCT - ( + 6 ) ) DIV - - 3
----
-2

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL + MAX ( DISTINCT - ( + 6 ) ) / - - 3
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT MIN( ALL - 57 ) * - 13
----
741

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT MIN ( ALL - 57 ) * - 13
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT + 80 - + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7148
SELECT + 80 - + COUNT ( * ) AS col1
----
79

query II rowsort
SELECT + 74 AS col1, 56 - + 38
----
74
18

query I rowsort
SELECT 50 * + 49
----
2450

query II rowsort
SELECT ALL - 70 AS col2, - 31
----
-70
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT - 30 * - SUM( + + 31 )
----
930

skipif mysql # not compatible
query I rowsort label-7152
SELECT - 30 * - SUM ( + + 31 )
----
930

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT NULLIF ( + - 63, - 75 ) DIV 70 + - + 80 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7153
SELECT NULLIF ( + - 63, - 75 ) / 70 + - + 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT ALL + ( + CASE 60 WHEN - 88 * - + 63 THEN MIN( 2 ) * - - 49 + - 51 / - - 89 + - + 80 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT ALL + ( + CASE 60 WHEN - 88 * - + 63 THEN MIN ( 2 ) * - - 49 + - 51 / - - 89 + - + 80 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT 60 - - AVG ( DISTINCT - 36 ) + - 59 + - 54 * - + 24 + - CAST( NULL AS SIGNED ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT 60 - - AVG ( DISTINCT - 36 ) + - 59 + - 54 * - + 24 + - CAST ( NULL AS INTEGER ) * + 80
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7156
SELECT DISTINCT - 47 AS col0, 57 DIV - + 50 + - - 92
----
-47
91

skipif mysql # not compatible
query II rowsort label-7156
SELECT DISTINCT - 47 AS col0, 57 / - + 50 + - - 92
----
-47
91

query I rowsort
SELECT 6 - 59
----
-53

query II rowsort
SELECT ALL 53, ( - 93 ) col2
----
53
-93

query II rowsort
SELECT DISTINCT 70 AS col2, - 64 + ( - 81 )
----
70
-145

query I rowsort
SELECT - CASE - 31 WHEN - + 89 + 37 * - - ( - 35 ) THEN - 20 + + 68 + - 92 ELSE - 28 * - + 3 + - 89 END - + 4 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT - COALESCE ( + COUNT( * ), - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7161
SELECT - COALESCE ( + COUNT ( * ), - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 5 + 27
----
22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7163
SELECT ALL ( - - NULLIF ( - 16, + COALESCE ( + 11, 90 - + NULLIF ( - 96, - - 68 ) / - + 81 * 23 ) ) ) + + CAST( NULL AS DECIMAL ) * + 39 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL ( - - NULLIF ( - 16, + COALESCE ( + 11, 90 - + NULLIF ( - 96, - - 68 ) / - + 81 * 23 ) ) ) + + CAST ( NULL AS REAL ) * + 39 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT NULLIF ( - 61, + + 34 ) + - ( + + COUNT( * ) ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7164
SELECT NULLIF ( - 61, + + 34 ) + - ( + + COUNT ( * ) ) AS col1
----
-62

query I rowsort
SELECT 71 - - + 50 + ( - 50 ) * + + 96 * + 68 * + 3 * - 91 col2
----
89107321

query I rowsort
SELECT ALL + 40 + + 69 AS col0
----
109

query I rowsort
SELECT ALL + 23 + - 35
----
-12

query I rowsort
SELECT 80 + + 99 col0
----
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7169
SELECT 60 * + - 30 * - + COALESCE ( 17, - + 52 - - MAX( DISTINCT + 31 ) + + 74 * - 50 DIV - COUNT( * ) )
----
30600

skipif mysql # not compatible
query I rowsort label-7169
SELECT 60 * + - 30 * - + COALESCE ( 17, - + 52 - - MAX ( DISTINCT + 31 ) + + 74 * - 50 / - COUNT ( * ) )
----
30600

query II rowsort
SELECT 96 * + + 5 AS col0, 98 - 6 AS col0
----
480
92

query I rowsort
SELECT 67 + + + 31 AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT 2 DIV - 65 * 53
----
0

skipif mysql # not compatible
query I rowsort label-7172
SELECT 2 / - 65 * 53
----
0

query I rowsort
SELECT ALL - COALESCE ( + + 7, + 13, 68 )
----
-7

query I rowsort
SELECT ALL - 87 * - ( + - ( 40 ) )
----
-3480

query I rowsort
SELECT 86 * + + ( - 25 ) AS col1
----
-2150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7176
SELECT - 2 * ( + 29 ) DIV + 80 * + 10 * - + COUNT( * ) * - 37 - - 29 * - COUNT( * ) * - 79, 7 * + - COUNT( * ) * - ( + 11 ) col2
----
2291
77

skipif mysql # not compatible
query II rowsort label-7176
SELECT - 2 * ( + 29 ) / + 80 * + 10 * - + COUNT ( * ) * - 37 - - 29 * - COUNT ( * ) * - 79, 7 * + - COUNT ( * ) * - ( + 11 ) col2
----
2291
77

query I rowsort
SELECT ALL + 13 * + + 86 + - 27 + + 94
----
1185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 27 AS col2
----
NULL

query I rowsort
SELECT + 69 * - - 16 AS col1
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT - 61 - - 80 * - + COALESCE ( - COUNT( * ), - + NULLIF ( - - 24, 43 + 98 + + 38 + - + 93 / ( + 7 ) * 92 * - 16 + 69 + + NULLIF ( - - AVG ( + - 54 ), - + 32 ) - + 91 + + 60 / - + 64 / COUNT( * ) + - 68 * + - 24 * + 16 ), + 21 * 80 )
----
19

skipif mysql # not compatible
query I rowsort label-7180
SELECT - 61 - - 80 * - + COALESCE ( - COUNT ( * ), - + NULLIF ( - - 24, 43 + 98 + + 38 + - + 93 / ( + 7 ) * 92 * - 16 + 69 + + NULLIF ( - - AVG ( + - 54 ), - + 32 ) - + 91 + + 60 / - + 64 / COUNT ( * ) + - 68 * + - 24 * + 16 ), + 21 * 80 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT - - 58 * NULLIF ( + 77, + 76 ) + - COUNT( * ) + COUNT( * ) * 17 * - COUNT( * ) * 17 AS col1
----
4176

skipif mysql # not compatible
query I rowsort label-7181
SELECT - - 58 * NULLIF ( + 77, + 76 ) + - COUNT ( * ) + COUNT ( * ) * 17 * - COUNT ( * ) * 17 AS col1
----
4176

query I rowsort
SELECT - 92 * + 57 + + 47 + + 2
----
-5195

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL 71 + ( + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL 71 + ( + COUNT ( * ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT + + COUNT( * ) + - - 57 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7184
SELECT + + COUNT ( * ) + - - 57 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7185
SELECT - CASE + 9 WHEN 99 THEN - CAST( - 91 AS SIGNED ) * + 25 * + ( + 20 ) + + CASE + CASE + + 42 WHEN + 90 * - ( - COUNT( * ) ) - + ( - + COUNT( * ) ) THEN + 2 * + COALESCE ( + + 25, - COUNT( * ), - 37 ) WHEN - 13 THEN CAST( NULL AS SIGNED ) - + 25 / - 41 ELSE NULL END WHEN 33 THEN NULL WHEN + COUNT( * ) * + 40 + + - 3 * + 38 * - 60 + - 44 + + 9 - 11 * + - 42 * SUM( ALL 63 ) * + 21 * ( 8 ) THEN NULL WHEN - 12 * - 57 THEN 85 END * 57 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT - CASE + 9 WHEN 99 THEN - CAST ( - 91 AS INTEGER ) * + 25 * + ( + 20 ) + + CASE + CASE + + 42 WHEN + 90 * - ( - COUNT ( * ) ) - + ( - + COUNT ( * ) ) THEN + 2 * + COALESCE ( + + 25, - COUNT ( * ), - 37 ) WHEN - 13 THEN CAST ( NULL AS INTEGER ) - + 25 / - 41 ELSE NULL END WHEN 33 THEN NULL WHEN + COUNT ( * ) * + 40 + + - 3 * + 38 * - 60 + - 44 + + 9 - 11 * + - 42 * SUM ( ALL 63 ) * + 21 * ( 8 ) THEN NULL WHEN - 12 * - 57 THEN 85 END * 57 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7186
SELECT - - 70 * + 52 + - 59 * + + CAST( + 71 AS SIGNED ) + - 61 AS col2
----
-610

skipif mysql # not compatible
query I rowsort label-7186
SELECT - - 70 * + 52 + - 59 * + + CAST ( + 71 AS INTEGER ) + - 61 AS col2
----
-610

onlyif mysql # aggregate syntax: 
query II rowsort label-7187
SELECT 48 AS col1, + COUNT( * ) AS col1
----
48
1

skipif mysql # not compatible
query II rowsort label-7187
SELECT 48 AS col1, + COUNT ( * ) AS col1
----
48
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7188
SELECT + 56 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT + 56 / - 64
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT - COUNT( * ) col1, 70
----
-1
70

skipif mysql # not compatible
query II rowsort label-7189
SELECT - COUNT ( * ) col1, 70
----
-1
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7190
SELECT DISTINCT 85 + + - 48 - + 45 + 90 * 98 DIV - 57
----
-162

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT 85 + + - 48 - + 45 + 90 * 98 / - 57
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL 44 + + - ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL 44 + + - ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT - SUM( ALL + 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7192
SELECT - SUM ( ALL + 60 ) AS col1
----
-60

query I rowsort
SELECT ALL 20 + 98 * + 28
----
2764

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7194
SELECT + CAST( NULL AS DECIMAL ) * + 49 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT + CAST ( NULL AS REAL ) * + 49 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 91 AS col2, + 23
----
91
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT + MIN( DISTINCT + ( + 89 ) ) - - + 49 AS col2, - 10 AS col1
----
138
-10

skipif mysql # not compatible
query II rowsort label-7196
SELECT + MIN ( DISTINCT + ( + 89 ) ) - - + 49 AS col2, - 10 AS col1
----
138
-10

query I rowsort
SELECT - 72 * - 87 col1
----
6264

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7198
SELECT ALL 90 * - ( + 38 ), 97 DIV COUNT( - 18 ) AS col0
----
-3420
97

skipif mysql # not compatible
query II rowsort label-7198
SELECT ALL 90 * - ( + 38 ), 97 / COUNT ( - 18 ) AS col0
----
-3420
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL 48 - + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL 48 - + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL MIN( ALL 34 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL MIN ( ALL 34 ) col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7201
SELECT + 36 * - - CAST( NULL AS SIGNED ) * + + 55 / + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT + 36 * - - CAST ( NULL AS INTEGER ) * + + 55 / + 60 AS col0
----
NULL

query I rowsort
SELECT ALL 42 * + 92 * - 98 AS col0
----
-378672

query I rowsort
SELECT + 54 + - + 35 * + - 16 AS col1
----
614

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT - 12 - 62 + - - ( + 52 ) + + - 82 * + 36 - + COUNT( * ) * + + 59
----
-3033

skipif mysql # not compatible
query I rowsort label-7204
SELECT - 12 - 62 + - - ( + 52 ) + + - 82 * + 36 - + COUNT ( * ) * + + 59
----
-3033

query II rowsort
SELECT ALL + 51, 52 AS col2
----
51
52

query I rowsort
SELECT - + 87 * - 49 * + 66 AS col0
----
281358

onlyif mysql # aggregate syntax: 
query II rowsort label-7207
SELECT + + 74 AS col0, + COUNT( * ) AS col2
----
74
1

skipif mysql # not compatible
query II rowsort label-7207
SELECT + + 74 AS col0, + COUNT ( * ) AS col2
----
74
1

query I rowsort
SELECT - 89 * 56 * + - NULLIF ( + 82, - 13 - + + 95 + + + 91 )
----
408688

onlyif mysql # aggregate syntax: 
query II rowsort label-7209
SELECT DISTINCT + 79 col0, 84 * - CASE 18 WHEN - COUNT( * ) + - 5 THEN + + SUM( DISTINCT 24 ) * + - 86 WHEN - + ( + 0 ) THEN + 88 - + - 43 + + 49 + - 53 ELSE + 19 END * - 21 - - 91 * 78 AS col2
----
79
40614

skipif mysql # not compatible
query II rowsort label-7209
SELECT DISTINCT + 79 col0, 84 * - CASE 18 WHEN - COUNT ( * ) + - 5 THEN + + SUM ( DISTINCT 24 ) * + - 86 WHEN - + ( + 0 ) THEN + 88 - + - 43 + + 49 + - 53 ELSE + 19 END * - 21 - - 91 * 78 AS col2
----
79
40614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7210
SELECT - COALESCE ( - + 11, + COALESCE ( + NULLIF ( + 65, 81 ), + - 30 ) * + CAST( MIN( ALL - 49 ) AS SIGNED ) + - 86, + 9 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7210
SELECT - COALESCE ( - + 11, + COALESCE ( + NULLIF ( + 65, 81 ), + - 30 ) * + CAST ( MIN ( ALL - 49 ) AS INTEGER ) + - 86, + 9 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 82 * - 96 + - 19 * 75 col2
----
-9297

query II rowsort
SELECT ALL + + 86 AS col1, 3 AS col0
----
86
3

query I rowsort
SELECT + ( + 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7214
SELECT + + COUNT( ALL + - 81 ) * - + 84 DIV + + 44 * + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7214
SELECT + + COUNT ( ALL + - 81 ) * - + 84 / + + 44 * + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT + + COUNT( - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-7215
SELECT + + COUNT ( - 29 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7216
SELECT + CASE - COUNT( * ) WHEN + NULLIF ( - - COUNT( * ), + 80 ) THEN + COUNT( * ) + + 79 ELSE + 5 - + MAX( DISTINCT + 9 ) * - - 29 + 73 * + CASE + MAX( ALL 56 ) WHEN CAST( - COALESCE ( + CAST( + 92 AS SIGNED ), + - 62 ) AS SIGNED ) THEN NULL WHEN - 23 * - - 99 THEN - 59 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT + CASE - COUNT ( * ) WHEN + NULLIF ( - - COUNT ( * ), + 80 ) THEN + COUNT ( * ) + + 79 ELSE + 5 - + MAX ( DISTINCT + 9 ) * - - 29 + 73 * + CASE + MAX ( ALL 56 ) WHEN CAST ( - COALESCE ( + CAST ( + 92 AS INTEGER ), + - 62 ) AS INTEGER ) THEN NULL WHEN - 23 * - - 99 THEN - 59 END END
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 0, - + 25 )
----
0

query I rowsort
SELECT + 75 * + 23
----
1725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7219
SELECT COUNT( * ) AS col1, + 79 * ( - 30 ) DIV CAST( 3 AS SIGNED ) + - 21 - + ( 24 ) * + 4
----
1
-907

skipif mysql # not compatible
query II rowsort label-7219
SELECT COUNT ( * ) AS col1, + 79 * ( - 30 ) / CAST ( 3 AS INTEGER ) + - 21 - + ( 24 ) * + 4
----
1
-907

query I rowsort
SELECT - 50 - - 51 + + + 1 * - - 42
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT ALL ( - - COUNT( * ) ), + 17 + - NULLIF ( + + 29, - 62 ) AS col0
----
1
-12

skipif mysql # not compatible
query II rowsort label-7221
SELECT ALL ( - - COUNT ( * ) ), + 17 + - NULLIF ( + + 29, - 62 ) AS col0
----
1
-12

query I rowsort
SELECT ALL ( + - 1 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7223
SELECT DISTINCT CAST( 31 AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT CAST ( 31 AS INTEGER ) AS col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7224
SELECT ALL - 23 - NULLIF ( + + SUM( - 26 ), - 70 + + 0 ) DIV + 72
----
-23

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL - 23 - NULLIF ( + + SUM ( - 26 ), - 70 + + 0 ) / + 72
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7225
SELECT - 14 * - + COALESCE ( - 94, + 77 DIV - NULLIF ( + 55, - 29 * CAST( NULL AS SIGNED ) ) * - - 86 )
----
-1316

skipif mysql # not compatible
query I rowsort label-7225
SELECT - 14 * - + COALESCE ( - 94, + 77 / - NULLIF ( + 55, - 29 * CAST ( NULL AS INTEGER ) ) * - - 86 )
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - ( - COUNT( * ) ) + 81 col2
----
82

skipif mysql # not compatible
query I rowsort label-7226
SELECT - ( - COUNT ( * ) ) + 81 col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL COUNT( * ) * - - 85
----
85

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL COUNT ( * ) * - - 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - SUM( + + 16 ) + 2
----
-14

skipif mysql # not compatible
query I rowsort label-7228
SELECT - SUM ( + + 16 ) + 2
----
-14

query I rowsort
SELECT + 72 - - 88
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7230
SELECT - MIN( ALL 69 ) * - - 21 * - 69 + COUNT( DISTINCT + 26 ) - + 61 DIV - - 43
----
99981

skipif mysql # not compatible
query I rowsort label-7230
SELECT - MIN ( ALL 69 ) * - - 21 * - 69 + COUNT ( DISTINCT + 26 ) - + 61 / - - 43
----
99981

query I rowsort
SELECT - 43 + 96
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT ALL - 60 * MAX( - 68 )
----
4080

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL - 60 * MAX ( - 68 )
----
4080

query I rowsort
SELECT + 13 + - - 93 * - + 38 AS col0
----
-3521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7234
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 30 + + 75 + - 93 AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7236
SELECT - + 50 DIV + COUNT( * ) + - 8 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-7236
SELECT - + 50 / + COUNT ( * ) + - 8 AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7237
SELECT ALL + 36 DIV + - 28 + + 79 + + 15 AS col1, - 58 + + COUNT( * ) AS col2
----
93
-57

skipif mysql # not compatible
query II rowsort label-7237
SELECT ALL + 36 / + - 28 + + 79 + + 15 AS col1, - 58 + + COUNT ( * ) AS col2
----
93
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7238
SELECT ALL + 28 DIV - + 15 + + 47 * - + 26
----
-1223

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL + 28 / - + 15 + + 47 * - + 26
----
-1223

query I rowsort
SELECT - - 56 * - ( + 94 ) + + 98
----
-5166

query II rowsort
SELECT ALL 93 + - 78 AS col2, - 90 + + - 38 AS col1
----
15
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7241
SELECT COALESCE ( - - CASE + 63 WHEN COUNT( * ) - COUNT( * ) THEN + 33 * + 65 DIV - + NULLIF ( - 84, + + 61 ) WHEN - AVG ( ALL - 96 ) THEN 66 * CAST( NULL AS SIGNED ) * 64 * - 5 * + 38 END, - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-7241
SELECT COALESCE ( - - CASE + 63 WHEN COUNT ( * ) - COUNT ( * ) THEN + 33 * + 65 / - + NULLIF ( - 84, + + 61 ) WHEN - AVG ( ALL - 96 ) THEN 66 * CAST ( NULL AS INTEGER ) * 64 * - 5 * + 38 END, - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - MAX( 52 ) + + 29
----
-23

skipif mysql # not compatible
query I rowsort label-7242
SELECT - MAX ( 52 ) + + 29
----
-23

query II rowsort
SELECT DISTINCT - + NULLIF ( 37, ( 79 ) ), + 19 + - 77 col1
----
-37
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT ALL + + 54 DIV - 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL + + 54 / - 43 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT - NULLIF ( - 77, - 1 * - 34 + + + 94 - + + 6 + + 20 - + + 15 ) * 48 + + CAST( NULL AS SIGNED ) / - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT - NULLIF ( - 77, - 1 * - 34 + + + 94 - + + 6 + + 20 - + + 15 ) * 48 + + CAST ( NULL AS INTEGER ) / - 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7246
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - ( - 7 ) * - + 23, - 61 AS col0
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-7246
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - ( - 7 ) * - + 23, - 61 AS col0
----
NULL
-61

query I rowsort
SELECT DISTINCT + 26 * - 12 * 41 AS col2
----
-12792

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL - + COUNT( * ) + + SUM( DISTINCT - 79 ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL - + COUNT ( * ) + + SUM ( DISTINCT - 79 ) col2
----
-80

query I rowsort
SELECT + - ( - + 99 ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7250
SELECT ALL + 90 - + 37 + + + 6 col1, CAST( NULL AS SIGNED ) / + 32 + - 50, + COUNT( * ) + 56 AS col0
----
59
NULL
57

skipif mysql # not compatible
query III rowsort label-7250
SELECT ALL + 90 - + 37 + + + 6 col1, CAST ( NULL AS INTEGER ) / + 32 + - 50, + COUNT ( * ) + 56 AS col0
----
59
NULL
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT - 36 * - - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT - 36 * - - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT 71 + - MAX( ALL - + 33 ) col0
----
104

skipif mysql # not compatible
query I rowsort label-7252
SELECT 71 + - MAX ( ALL - + 33 ) col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT + 13 * COUNT( DISTINCT 66 ) + - + 72
----
-59

skipif mysql # not compatible
query I rowsort label-7253
SELECT + 13 * COUNT ( DISTINCT 66 ) + - + 72
----
-59

query I rowsort
SELECT ALL + 91 - - 22 AS col2
----
113

query II rowsort
SELECT - 37 col0, 84 * - + 29
----
-37
-2436

query I rowsort
SELECT 61 * + + 73
----
4453

query II rowsort
SELECT 16 col0, + 7 AS col0
----
16
7

query I rowsort
SELECT 86 * + + 83 AS col2
----
7138

query II rowsort
SELECT ALL 15 AS col0, + 20 + + + 89
----
15
109

query I rowsort
SELECT 95 - 56 + - 41 + ( + 34 ) * + + 58 AS col2
----
1970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7261
SELECT ALL + + CASE - + NULLIF ( 5, - 42 ) WHEN + 5 THEN + - COALESCE ( - 80, - 85 * - 51, + 8 * CAST( 35 AS DECIMAL ) / - 72 - - CAST( - + 99 AS SIGNED ) + + 74 ) / - COALESCE ( + 43, + 69 * - 73 ) - - 1 + - 77 WHEN ( - + COUNT( * ) ) THEN NULL END * - + 53 * AVG ( + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL + + CASE - + NULLIF ( 5, - 42 ) WHEN + 5 THEN + - COALESCE ( - 80, - 85 * - 51, + 8 * CAST ( 35 AS REAL ) / - 72 - - CAST ( - + 99 AS INTEGER ) + + 74 ) / - COALESCE ( + 43, + 69 * - 73 ) - - 1 + - 77 WHEN ( - + COUNT ( * ) ) THEN NULL END * - + 53 * AVG ( + 21 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7262
SELECT ( - + 51 ) * 63 + + - CASE - COALESCE ( - 64, - 6 ) WHEN + 86 THEN NULL WHEN + 24 * - 60 * - + ( + 77 ) THEN NULL ELSE - - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7262
SELECT ( - + 51 ) * 63 + + - CASE - COALESCE ( - 64, - 6 ) WHEN + 86 THEN NULL WHEN + 24 * - 60 * - + ( + 77 ) THEN NULL ELSE - - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7263
SELECT ALL 97 + - + SUM( ALL + 6 ) * - 16 * + + 74 AS col0, - 64
----
7201
-64

skipif mysql # not compatible
query II rowsort label-7263
SELECT ALL 97 + - + SUM ( ALL + 6 ) * - 16 * + + 74 AS col0, - 64
----
7201
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT - - 52 * + - SUM( + 88 )
----
-4576

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT - - 52 * + - SUM ( + 88 )
----
-4576

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ALL + - 90 + - 18 + + + COUNT( * ) AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL + - 90 + - 18 + + + COUNT ( * ) AS col0
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT - 80 + 22 DIV + COALESCE ( + + 34, + 77 )
----
-80

skipif mysql # not compatible
query I rowsort label-7266
SELECT - 80 + 22 / + COALESCE ( + + 34, + 77 )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7267
SELECT - COUNT( * ) AS col0, + 2 AS col1
----
-1
2

skipif mysql # not compatible
query II rowsort label-7267
SELECT - COUNT ( * ) AS col0, + 2 AS col1
----
-1
2

query I rowsort
SELECT ALL 24 + + + 86 - + + ( + - 6 ) AS col0
----
116

query I rowsort
SELECT 80 * - 81 AS col0
----
-6480

query I rowsort
SELECT ALL - - 77 + 85
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL SUM( 88 ) + + 48 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL SUM ( 88 ) + + 48 AS col2
----
136

query I rowsort
SELECT + CASE - 5 WHEN - - 38 THEN + 81 - + 27 - 51 ELSE - - 63 END
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + 85 * 34 + + CASE - - CASE + + 59 WHEN + 40 + 86 THEN + 58 - - 46 WHEN - COUNT( * ) THEN - 76 ELSE NULL END WHEN - 76 THEN 19 END + + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT + 85 * 34 + + CASE - - CASE + + 59 WHEN + 40 + 86 THEN + 58 - - 46 WHEN - COUNT ( * ) THEN - 76 ELSE NULL END WHEN - 76 THEN 19 END + + ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT CASE - + 52 WHEN + - 49 + + 9 * 68 THEN + 66 + - 77 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7275
SELECT CASE - - 16 WHEN + + 31 THEN NULL WHEN + 41 + 83 THEN NULL WHEN + 94 + - - COUNT( * ) * - CAST( NULL AS SIGNED ) THEN NULL ELSE - 62 * - 98 * - 45 END AS col2
----
-273420

skipif mysql # not compatible
query I rowsort label-7275
SELECT CASE - - 16 WHEN + + 31 THEN NULL WHEN + 41 + 83 THEN NULL WHEN + 94 + - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 62 * - 98 * - 45 END AS col2
----
-273420

query I rowsort
SELECT ALL 27 - - 16 AS col2
----
43

query I rowsort
SELECT DISTINCT 66 * + COALESCE ( + 26, - 19 - + 25 )
----
1716

query I rowsort
SELECT ALL 33 - 5
----
28

query I rowsort
SELECT 90 * - - 40 * + 43
----
154800

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT SUM( DISTINCT + 84 ) + - - 56 * + + COUNT( * ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-7280
SELECT SUM ( DISTINCT + 84 ) + - - 56 * + + COUNT ( * ) AS col1
----
140

query II rowsort
SELECT + 38, + 94 AS col1
----
38
94

query I rowsort
SELECT ALL + 60 * 94
----
5640

onlyif mysql # DIV for integer division: 
query I rowsort label-7283
SELECT ALL 67 DIV - 29 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL 67 / - 29 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT 95 - MIN( + - 92 )
----
187

skipif mysql # not compatible
query I rowsort label-7284
SELECT 95 - MIN ( + - 92 )
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT ALL + MIN( ALL 82 ) * + 84 + + 4 * - - ( - ( 44 ) ) + + COUNT( + + 9 ) + - + COUNT( * ) * + + 61 col0
----
6652

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL + MIN ( ALL 82 ) * + 84 + + 4 * - - ( - ( 44 ) ) + + COUNT ( + + 9 ) + - + COUNT ( * ) * + + 61 col0
----
6652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT 97 * + 3 * NULLIF ( 36, + + COUNT( * ) + - - SUM( ALL 72 ) ) * CAST( - 8 AS SIGNED ) + - - 77 - + SUM( DISTINCT ( - 52 ) )
----
-83679

skipif mysql # not compatible
query I rowsort label-7286
SELECT 97 * + 3 * NULLIF ( 36, + + COUNT ( * ) + - - SUM ( ALL 72 ) ) * CAST ( - 8 AS INTEGER ) + - - 77 - + SUM ( DISTINCT ( - 52 ) )
----
-83679

query II rowsort
SELECT - 7, - 55 AS col0
----
-7
-55

query I rowsort
SELECT 15 + - NULLIF ( - + 76, + 30 )
----
91

query II rowsort
SELECT 22 AS col0, - 77 AS col1
----
22
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7290
SELECT ALL + 88 + - 11 DIV 49 DIV - 55
----
88

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + 88 + - 11 / 49 / - 55
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7291
SELECT 95 + 59 DIV - + 60 * - + 93 + - 37 + - - 99 * COUNT( * ) * COUNT( ALL + - 87 ) - 34 + - COUNT( * ) col2
----
122

skipif mysql # not compatible
query I rowsort label-7291
SELECT 95 + 59 / - + 60 * - + 93 + - 37 + - - 99 * COUNT ( * ) * COUNT ( ALL + - 87 ) - 34 + - COUNT ( * ) col2
----
122

query II rowsort
SELECT - 17, 58 AS col0
----
-17
58

query I rowsort
SELECT 4 + + 53
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL + 53 * - - 55 + CASE - 41 WHEN - 75 * + 60 * - 17 * + 49 + + 93 THEN NULL WHEN + 52 * - 60 THEN + + 72 + + AVG ( 13 ) ELSE NULL END - - - COUNT( * ) + - 34 / - - COUNT( * ) * - 20 * - + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL + 53 * - - 55 + CASE - 41 WHEN - 75 * + 60 * - 17 * + 49 + + 93 THEN NULL WHEN + 52 * - 60 THEN + + 72 + + AVG ( 13 ) ELSE NULL END - - - COUNT ( * ) + - 34 / - - COUNT ( * ) * - 20 * - + 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7295
SELECT - - COUNT( * ) DIV 81 + 77 * - 80 * - SUM( 22 ) + - 91 * 54
----
130606

skipif mysql # not compatible
query I rowsort label-7295
SELECT - - COUNT ( * ) / 81 + 77 * - 80 * - SUM ( 22 ) + - 91 * 54
----
130606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7296
SELECT ALL NULLIF ( - COALESCE ( + - ( + SUM( + + ( CAST( - 41 AS SIGNED ) ) ) ), + + 27 + + ( - 25 ) ), 6 * 44 )
----
-41

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL NULLIF ( - COALESCE ( + - ( + SUM ( + + ( CAST ( - 41 AS INTEGER ) ) ) ), + + 27 + + ( - 25 ) ), 6 * 44 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7297
SELECT - 72 col1, + MIN( ALL - 66 ) DIV + 54 AS col0
----
-72
-1

skipif mysql # not compatible
query II rowsort label-7297
SELECT - 72 col1, + MIN ( ALL - 66 ) / + 54 AS col0
----
-72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT - - COUNT( * ) * + - 61
----
-61

skipif mysql # not compatible
query I rowsort label-7298
SELECT - - COUNT ( * ) * + - 61
----
-61

query I rowsort
SELECT ALL + ( - 33 ) * - 6 AS col0
----
198

query I rowsort
SELECT - 44 + - - NULLIF ( + 1, - + 23 ) * - - 8
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7301
SELECT - ( - + COUNT( CAST( - 55 AS SIGNED ) ) ) + - 66 + + 68 + - COUNT( * ) * + 50 + - - CAST( NULL AS DECIMAL ), 85 + + 69 * COALESCE ( - - 20, 50 ) AS col1
----
NULL
1465

skipif mysql # not compatible
query II rowsort label-7301
SELECT - ( - + COUNT ( CAST ( - 55 AS INTEGER ) ) ) + - 66 + + 68 + - COUNT ( * ) * + 50 + - - CAST ( NULL AS REAL ), 85 + + 69 * COALESCE ( - - 20, 50 ) AS col1
----
NULL
1465

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT + 28 * 53 * 44 DIV + 88 + + 62 AS col0
----
804

skipif mysql # not compatible
query I rowsort label-7302
SELECT + 28 * 53 * 44 / + 88 + + 62 AS col0
----
804

onlyif mysql # DIV for integer division: 
query I rowsort label-7303
SELECT 37 DIV - + 27 + + - 87 + - - 17
----
-71

skipif mysql # not compatible
query I rowsort label-7303
SELECT 37 / - + 27 + + - 87 + - - 17
----
-71

query I rowsort
SELECT ALL + 57 * - 67
----
-3819

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7305
SELECT DISTINCT + 26 AS col0, - CAST( NULL AS DECIMAL )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-7305
SELECT DISTINCT + 26 AS col0, - CAST ( NULL AS REAL )
----
26
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7306
SELECT - 99 DIV - 46 - - SUM( + - 50 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-7306
SELECT - 99 / - 46 - - SUM ( + - 50 ) AS col2
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-7307
SELECT ALL 38 DIV + + 29 + + 16 + + 83 col2, 33
----
100
33

skipif mysql # not compatible
query II rowsort label-7307
SELECT ALL 38 / + + 29 + + 16 + + 83 col2, 33
----
100
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7308
SELECT - 78 * 86 + + 68 + + 70 * - CASE + 69 WHEN + COUNT( * ) THEN CASE ( 59 ) WHEN CAST( NULL AS SIGNED ) THEN 18 DIV - 96 * ( CASE - - 25 WHEN + AVG ( DISTINCT - 96 ) THEN - 36 DIV - - 22 ELSE NULL END ) + 52 + + + 18 + + 52 * - 28 + 29 END WHEN - 11 DIV CAST( NULL AS SIGNED ) THEN NULL ELSE - 38 END + + 59
----
-3921

skipif mysql # not compatible
query I rowsort label-7308
SELECT - 78 * 86 + + 68 + + 70 * - CASE + 69 WHEN + COUNT ( * ) THEN CASE ( 59 ) WHEN CAST ( NULL AS INTEGER ) THEN 18 / - 96 * ( CASE - - 25 WHEN + AVG ( DISTINCT - 96 ) THEN - 36 / - - 22 ELSE NULL END ) + 52 + + + 18 + + 52 * - 28 + 29 END WHEN - 11 / CAST ( NULL AS INTEGER ) THEN NULL ELSE - 38 END + + 59
----
-3921

onlyif mysql # DIV for integer division: 
query I rowsort label-7309
SELECT - - 60 DIV - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT - - 60 / - 64 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT + 93 DIV + 91 + 2
----
3

skipif mysql # not compatible
query I rowsort label-7310
SELECT + 93 / + 91 + 2
----
3

query II rowsort
SELECT + ( - ( 76 ) ) * + + 24 + NULLIF ( 12, + 73 ), 21 AS col1
----
-1812
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - 91 + - COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7312
SELECT - 91 + - COUNT ( * ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT + CAST( COUNT( * ) AS SIGNED ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7313
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7314
SELECT + COALESCE ( 19, + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 9 * + 71, + + 32 ) * - - 80 + + COUNT( * ) + + + 91 - + + 66
----
1546

skipif mysql # not compatible
query I rowsort label-7314
SELECT + COALESCE ( 19, + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 9 * + 71, + + 32 ) * - - 80 + + COUNT ( * ) + + + 91 - + + 66
----
1546

query I rowsort
SELECT + 73 + - 97
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL COUNT( + - ( 71 ) ) * - 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL COUNT ( + - ( 71 ) ) * - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT + ( - + 39 ) * + 8, COUNT( * ) AS col0
----
-312
1

skipif mysql # not compatible
query II rowsort label-7317
SELECT + ( - + 39 ) * + 8, COUNT ( * ) AS col0
----
-312
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7318
SELECT DISTINCT COALESCE ( 30, + + 60 / - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) / - COUNT( * ) + - MAX( DISTINCT - 52 ) * 55 ) * + CASE + 20 WHEN + 94 - + - CAST( + 12 AS SIGNED ) THEN + - 95 + - - 26 * + - 24 WHEN - COUNT( * ) THEN + + 68 WHEN + - 2 + - ( + ( + + 83 ) ) THEN + COALESCE ( + 16, 25 + 14 + + 49 * + - 82 * + 39 ) / - - COUNT( * ) END - - 67 AS col1, - 87 + + + 77 * + 25 AS col1
----
NULL
1838

skipif mysql # not compatible
query II rowsort label-7318
SELECT DISTINCT COALESCE ( 30, + + 60 / - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) / - COUNT ( * ) + - MAX ( DISTINCT - 52 ) * 55 ) * + CASE + 20 WHEN + 94 - + - CAST ( + 12 AS INTEGER ) THEN + - 95 + - - 26 * + - 24 WHEN - COUNT ( * ) THEN + + 68 WHEN + - 2 + - ( + ( + + 83 ) ) THEN + COALESCE ( + 16, 25 + 14 + + 49 * + - 82 * + 39 ) / - - COUNT ( * ) END - - 67 AS col1, - 87 + + + 77 * + 25 AS col1
----
NULL
1838

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL 29 * - 2 + + + 59 + MIN( - 55 ) * 52 * 42
----
-120119

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL 29 * - 2 + + + 59 + MIN ( - 55 ) * 52 * 42
----
-120119

query I rowsort
SELECT DISTINCT 78 * - 16 AS col0
----
-1248

query I rowsort
SELECT + 84 * 83 * + 13 * 3
----
271908

query I rowsort
SELECT 1 * + + 8 + - 2
----
6

query I rowsort
SELECT ALL - 31 * - 85 + + 97
----
2732

query I rowsort
SELECT ALL + 48 * - 76 + - ( - + ( - 92 ) ) + + 95 AS col0
----
-3645

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT MIN( DISTINCT + 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-7325
SELECT MIN ( DISTINCT + 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT + 95 + - CASE + - 98 WHEN MIN( ALL + - 45 ) * 6 THEN NULL WHEN - 29 * - + 38 / + NULLIF ( 45, - + 4 * 73 ) THEN NULL ELSE + 59 * - 68 - + 84 + 93 + + COALESCE ( 85, + 8, - 39 ) * + 69 * + 36 + 71 END col1
----
-207113

skipif mysql # not compatible
query I rowsort label-7326
SELECT + 95 + - CASE + - 98 WHEN MIN ( ALL + - 45 ) * 6 THEN NULL WHEN - 29 * - + 38 / + NULLIF ( 45, - + 4 * 73 ) THEN NULL ELSE + 59 * - 68 - + 84 + 93 + + COALESCE ( 85, + 8, - 39 ) * + 69 * + 36 + 71 END col1
----
-207113

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT ALL 66 DIV 51
----
1

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL 66 / 51
----
1

query I rowsort
SELECT ALL 77 + - - 43 + 94 * + 96
----
9144

query I rowsort
SELECT ALL 14 + + + 12
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT DISTINCT - 46 + 10 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-7330
SELECT DISTINCT - 46 + 10 * - COUNT ( * )
----
-56

query I rowsort
SELECT - + 76 + - 97 AS col0
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT - + 18 * - ( - COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-7332
SELECT - + 18 * - ( - COUNT ( * ) )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT - - COUNT( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7333
SELECT - - COUNT ( 1 )
----
1

query II rowsort
SELECT - + ( + 53 ) col2, 65
----
-53
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL + CASE WHEN AVG ( ALL + 88 ) >= 74 + + - 95 - CASE 23 WHEN 41 + - COUNT( 16 ) THEN + 48 - 12 * + 70 - - ( - 95 ) * + 50 + 37 + + + COALESCE ( - 68, - - ( ( + 66 ) ) / + 28 ) END - + - 38 THEN + AVG ( 19 ) END - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + CASE WHEN AVG ( ALL + 88 ) >= 74 + + - 95 - CASE 23 WHEN 41 + - COUNT ( 16 ) THEN + 48 - 12 * + 70 - - ( - 95 ) * + 50 + 37 + + + COALESCE ( - 68, - - ( ( + 66 ) ) / + 28 ) END - + - 38 THEN + AVG ( 19 ) END - + 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT + - 57 - + ( + CAST( + 95 AS SIGNED ) )
----
-152

skipif mysql # not compatible
query I rowsort label-7336
SELECT + - 57 - + ( + CAST ( + 95 AS INTEGER ) )
----
-152

query I rowsort
SELECT - NULLIF ( - + 79, - 65 ) + + + 61
----
140

query I rowsort
SELECT DISTINCT + 19 * - 85 col2
----
-1615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT - 69 * + 99 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7339
SELECT - 69 * + 99 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL ( SUM( DISTINCT - + 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL ( SUM ( DISTINCT - + 31 ) )
----
-31

query I rowsort
SELECT - + ( + 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT DISTINCT - - COUNT( * ) - - 73
----
74

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT - - COUNT ( * ) - - 73
----
74

query I rowsort
SELECT DISTINCT - 47 * + 62 AS col2
----
-2914

query I rowsort
SELECT - + 25 * + 27 + 29 + - 76 AS col0
----
-722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT DISTINCT - + CAST( - + 83 AS SIGNED ) * - + 0 * + - ( - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - + CAST ( - + 83 AS INTEGER ) * - + 0 * + - ( - 37 )
----
0

query I rowsort
SELECT - 68 * + 12 AS col0
----
-816

query I rowsort
SELECT + NULLIF ( - 31, + 93 ) AS col1
----
-31

query I rowsort
SELECT DISTINCT - 87 * + 92
----
-8004

query I rowsort
SELECT - ( + COALESCE ( + - 59, - - 16, - ( - ( 54 ) ) * 23 + + 6 + - 50 ) ) - - ( + - 80 ) + - - 2 * - 59
----
-139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7350
SELECT - COUNT( * ) DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-7350
SELECT - COUNT ( * ) / 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT - COUNT( * ) * + - 33
----
33

skipif mysql # not compatible
query I rowsort label-7351
SELECT - COUNT ( * ) * + - 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT + CASE 60 WHEN ( 6 ) THEN - + MIN( - - 60 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT + CASE 60 WHEN ( 6 ) THEN - + MIN ( - - 60 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT - COUNT( * ) + - + 26 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-7353
SELECT - COUNT ( * ) + - + 26 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT + 66 * 88 * + + CASE 66 WHEN + 79 + 69 THEN NULL WHEN - 10 + 74 THEN + + COUNT( * ) / - 37 + COUNT( * ) + - 49 WHEN - 81 + + 39 * + + COUNT( DISTINCT - 91 ) THEN - + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT + 66 * 88 * + + CASE 66 WHEN + 79 + 69 THEN NULL WHEN - 10 + 74 THEN + + COUNT ( * ) / - 37 + COUNT ( * ) + - 49 WHEN - 81 + + 39 * + + COUNT ( DISTINCT - 91 ) THEN - + 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL + 4 * 4 * - COUNT( * ) + + 9
----
-7

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL + 4 * 4 * - COUNT ( * ) + + 9
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT CAST( NULL AS SIGNED ) * + - 28 + + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT CAST ( NULL AS INTEGER ) * + - 28 + + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ( + SUM( DISTINCT 4 ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7357
SELECT ( + SUM ( DISTINCT 4 ) ) AS col2
----
4

query I rowsort
SELECT - 54 + - + 75 AS col2
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT ALL - 70 + - COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL - 70 + - COUNT ( * ) AS col1
----
-71

query I rowsort
SELECT ALL ( - - 2 ) + - 29
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT NULLIF ( - 20, - 78 + - CAST( ( + 73 ) AS SIGNED ) * - - 58 - + 9 * - - CASE - + MAX( DISTINCT 13 ) WHEN + 97 * + 47 THEN 29 WHEN - 29 + 85 - - 31 THEN NULL ELSE NULL END ) - + 65 col0
----
-85

skipif mysql # not compatible
query I rowsort label-7361
SELECT NULLIF ( - 20, - 78 + - CAST ( ( + 73 ) AS INTEGER ) * - - 58 - + 9 * - - CASE - + MAX ( DISTINCT 13 ) WHEN + 97 * + 47 THEN 29 WHEN - 29 + 85 - - 31 THEN NULL ELSE NULL END ) - + 65 col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT COUNT( * ) * + 2 * + + 60
----
120

skipif mysql # not compatible
query I rowsort label-7362
SELECT COUNT ( * ) * + 2 * + + 60
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-7363
SELECT 27 + + COALESCE ( + 23, COUNT( * ) + - 24 ) + - 87 AS col1, 27
----
-37
27

skipif mysql # not compatible
query II rowsort label-7363
SELECT 27 + + COALESCE ( + 23, COUNT ( * ) + - 24 ) + - 87 AS col1, 27
----
-37
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - + MIN( DISTINCT + 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-7364
SELECT - + MIN ( DISTINCT + 62 ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT 4 DIV - + 24
----
0

skipif mysql # not compatible
query I rowsort label-7365
SELECT 4 / - + 24
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7366
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL - CAST ( NULL AS REAL ) * + + 83 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7367
SELECT + MIN( + + 19 ) * CAST( NULL AS DECIMAL ), + 21 AS col0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-7367
SELECT + MIN ( + + 19 ) * CAST ( NULL AS REAL ), + 21 AS col0
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT 27 * + MIN( DISTINCT - 9 ) * + 97 * + + COUNT( * ) AS col1
----
-23571

skipif mysql # not compatible
query I rowsort label-7368
SELECT 27 * + MIN ( DISTINCT - 9 ) * + 97 * + + COUNT ( * ) AS col1
----
-23571

onlyif mysql # aggregate syntax: 
query II rowsort label-7369
SELECT - 34 * - 52 + + + COUNT( * ) AS col2, 60 AS col2
----
1769
60

skipif mysql # not compatible
query II rowsort label-7369
SELECT - 34 * - 52 + + + COUNT ( * ) AS col2, 60 AS col2
----
1769
60

query I rowsort
SELECT + 43 + + 69 - 8 * - - 10
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT DISTINCT - COUNT( ALL 66 ) * - 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT - COUNT ( ALL 66 ) * - 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT ALL + 88 + + - COUNT( ALL + + 91 ), 28 AS col0
----
87
28

skipif mysql # not compatible
query II rowsort label-7372
SELECT ALL + 88 + + - COUNT ( ALL + + 91 ), 28 AS col0
----
87
28

query I rowsort
SELECT ALL 50 + + 49 + + 36 * + - 0
----
99

query I rowsort
SELECT DISTINCT 9 + + NULLIF ( 36, + 31 ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT ALL + 1 + - 47 DIV + 11
----
-3

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL + 1 + - 47 / + 11
----
-3

query I rowsort
SELECT DISTINCT - ( + + 1 ) + 40 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT 1 * COUNT( * ) + - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7377
SELECT 1 * COUNT ( * ) + - COUNT ( * ) col2
----
0

query I rowsort
SELECT DISTINCT - 56 + 33 + - + ( 42 ) * + 53 * 85
----
-189233

query I rowsort
SELECT ALL + NULLIF ( 26, + + 24 ) + - COALESCE ( + 11, + - 33 - + + 64 * - 2 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT 24 + - NULLIF ( + CASE + 24 WHEN + COUNT( * ) * - + ( + COUNT( * ) ) THEN + 74 * - 79 / - COUNT( * ) + + COUNT( * ) + NULLIF ( - + 88, - + 40 ) / - 41 END, - 55 ) * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7380
SELECT 24 + - NULLIF ( + CASE + 24 WHEN + COUNT ( * ) * - + ( + COUNT ( * ) ) THEN + 74 * - 79 / - COUNT ( * ) + + COUNT ( * ) + NULLIF ( - + 88, - + 40 ) / - 41 END, - 55 ) * 0 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT 95 * - - 68 * + CAST( 83 AS SIGNED )
----
536180

skipif mysql # not compatible
query I rowsort label-7381
SELECT 95 * - - 68 * + CAST ( 83 AS INTEGER )
----
536180

onlyif mysql # aggregate syntax: 
query II rowsort label-7382
SELECT ALL + COUNT( * ) * 25, + 89 AS col2
----
25
89

skipif mysql # not compatible
query II rowsort label-7382
SELECT ALL + COUNT ( * ) * 25, + 89 AS col2
----
25
89

query I rowsort
SELECT ALL - 39 - + 33 * - 49
----
1578

query I rowsort
SELECT 40 + + ( - 21 ) AS col0
----
19

query I rowsort
SELECT 10 * + 67
----
670

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT COUNT( * ) * 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7386
SELECT COUNT ( * ) * 86 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT COUNT( * ) * + 8 col0
----
8

skipif mysql # not compatible
query I rowsort label-7387
SELECT COUNT ( * ) * + 8 col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7388
SELECT + + COALESCE ( COUNT( * ), + + 58 * + - COUNT( * ), + 59 - - 87 + - ( - + 4 ) * 90, - - COUNT( * ) DIV - 23 * - 46 + 90 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7388
SELECT + + COALESCE ( COUNT ( * ), + + 58 * + - COUNT ( * ), + 59 - - 87 + - ( - + 4 ) * 90, - - COUNT ( * ) / - 23 * - 46 + 90 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 63 - 92
----
-155

query I rowsort
SELECT + 24 * - 73
----
-1752

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL - 69 * + - 88 * - COUNT( * )
----
-6072

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL - 69 * + - 88 * - COUNT ( * )
----
-6072

query I rowsort
SELECT 49 + + 89 * 98
----
8771

onlyif mysql # aggregate syntax: 
query II rowsort label-7393
SELECT - COUNT( DISTINCT + + 31 ) AS col2, + ( + 34 )
----
-1
34

skipif mysql # not compatible
query II rowsort label-7393
SELECT - COUNT ( DISTINCT + + 31 ) AS col2, + ( + 34 )
----
-1
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT 42 DIV - - 72 + + + 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-7394
SELECT 42 / - - 72 + + + 46 AS col1
----
46

query I rowsort
SELECT - - ( - 8 ) AS col2
----
-8

query I rowsort
SELECT + ( - ( + - 69 ) ) AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7397
SELECT ALL - 17 + - CAST( NULL AS SIGNED ) * - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - 17 + - CAST ( NULL AS INTEGER ) * - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL NULLIF ( 14, COUNT( * ) ) col1
----
14

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL NULLIF ( 14, COUNT ( * ) ) col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7399
SELECT ( + + 69 ) DIV + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7399
SELECT ( + + 69 ) / + COUNT ( * ) AS col0
----
69

query I rowsort
SELECT DISTINCT + 84 + - 21
----
63

query I rowsort
SELECT ALL 27 + + 11 AS col2
----
38

query I rowsort
SELECT DISTINCT 50 * + - 74
----
-3700

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7403
SELECT DISTINCT 62 + - 13 DIV - 46, - 95 + + MAX( + 61 ) * + 53 AS col1
----
62
3138

skipif mysql # not compatible
query II rowsort label-7403
SELECT DISTINCT 62 + - 13 / - 46, - 95 + + MAX ( + 61 ) * + 53 AS col1
----
62
3138

query I rowsort
SELECT ALL CASE - 53 WHEN - 55 - COALESCE ( 84, + 61, - 44 ) THEN + 93 END * - 5 + + - 99 + - 34 + + - COALESCE ( - 81, - 26 * 36 - + 3 + + 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT + 48 - - + 0 + - SUM( 54 ) * + SUM( DISTINCT - 4 ) AS col2
----
264

skipif mysql # not compatible
query I rowsort label-7405
SELECT + 48 - - + 0 + - SUM ( 54 ) * + SUM ( DISTINCT - 4 ) AS col2
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7406
SELECT ALL + 56 AS col2, - 80 + CASE - + 46 WHEN ( + CAST( NULL AS SIGNED ) ) THEN + - 13 END AS col2
----
56
NULL

skipif mysql # not compatible
query II rowsort label-7406
SELECT ALL + 56 AS col2, - 80 + CASE - + 46 WHEN ( + CAST ( NULL AS INTEGER ) ) THEN + - 13 END AS col2
----
56
NULL

query I rowsort
SELECT - 25 * - 39 AS col2
----
975

query I rowsort
SELECT + 95 + + 82
----
177

query I rowsort
SELECT - ( 29 ) * - - 5 + 55 * + 69 AS col2
----
3650

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - ( 84 ) * - 10 + - + MAX( DISTINCT + 6 ) + - 55 AS col2
----
779

skipif mysql # not compatible
query I rowsort label-7410
SELECT - ( 84 ) * - 10 + - + MAX ( DISTINCT + 6 ) + - 55 AS col2
----
779

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT - MAX( ALL - 13 ) * 57 + - - 78
----
819

skipif mysql # not compatible
query I rowsort label-7411
SELECT - MAX ( ALL - 13 ) * 57 + - - 78
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT - + COUNT( * ) - + + 29
----
-30

skipif mysql # not compatible
query I rowsort label-7412
SELECT - + COUNT ( * ) - + + 29
----
-30

query II rowsort
SELECT + + 49 AS col0, 69 + + 92 + - 80 + 54 * - - 77 + + - 31 AS col2
----
49
4208

query I rowsort
SELECT - - 70 + + 69
----
139

query I rowsort
SELECT ALL - 64 * 67 AS col0
----
-4288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7416
SELECT DISTINCT + + 74, + CASE - 49 WHEN - AVG ( - 58 ) + - 94 THEN 3 * + 26 + + - ( - + 19 ) + - 56 * - CAST( NULL AS SIGNED ) + + 48 ELSE NULL END AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7416
SELECT DISTINCT + + 74, + CASE - 49 WHEN - AVG ( - 58 ) + - 94 THEN 3 * + 26 + + - ( - + 19 ) + - 56 * - CAST ( NULL AS INTEGER ) + + 48 ELSE NULL END AS col2
----
74
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT - + 95 + + CAST( 79 AS SIGNED ) * - - 36
----
2749

skipif mysql # not compatible
query I rowsort label-7417
SELECT - + 95 + + CAST ( 79 AS INTEGER ) * - - 36
----
2749

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT DISTINCT + ( - + COUNT( * ) ) * + + 29
----
-29

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT + ( - + COUNT ( * ) ) * + + 29
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7419
SELECT ALL + 15 * + 38 + 28 * - 16 + - ( 43 ) DIV + NULLIF ( + COUNT( * ), - MAX( - + 42 ) ) AS col0, + 21 AS col0
----
79
21

skipif mysql # not compatible
query II rowsort label-7419
SELECT ALL + 15 * + 38 + 28 * - 16 + - ( 43 ) / + NULLIF ( + COUNT ( * ), - MAX ( - + 42 ) ) AS col0, + 21 AS col0
----
79
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7420
SELECT - ( - + 24 ) + 48 DIV 91
----
24

skipif mysql # not compatible
query I rowsort label-7420
SELECT - ( - + 24 ) + 48 / 91
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7421
SELECT ALL + + ( + 17 ) DIV + COUNT( * ) + 32 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL + + ( + 17 ) / + COUNT ( * ) + 32 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT - - 87 * COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7422
SELECT - - 87 * COUNT ( * ) AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7423
SELECT DISTINCT COALESCE ( + 40, - 78 DIV 18 + CAST( + - 56 AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT COALESCE ( + 40, - 78 / 18 + CAST ( + - 56 AS INTEGER ) )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7424
SELECT CAST( - + 73 AS SIGNED ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7424
SELECT CAST ( - + 73 AS INTEGER ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT - + COUNT( * ) * 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7425
SELECT - + COUNT ( * ) * 6 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL + - 61 + - COUNT( * ) + 86
----
24

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + - 61 + - COUNT ( * ) + 86
----
24

query I rowsort
SELECT - - ( 22 ) AS col0
----
22

query I rowsort
SELECT + ( - + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT - - 68 + COALESCE ( 1, - COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-7429
SELECT - - 68 + COALESCE ( 1, - COUNT ( * ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - COUNT( * ) * - 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7430
SELECT - COUNT ( * ) * - 7 AS col0
----
7

query I rowsort
SELECT ALL + + NULLIF ( 25, - - 99 ) + + ( 52 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL SUM( - 84 ) + + 56
----
-28

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL SUM ( - 84 ) + + 56
----
-28

query I rowsort
SELECT ALL ( + 74 ) + 55
----
129

query I rowsort
SELECT ALL + + 56 * 61
----
3416

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT DISTINCT - 38 + - SUM( - 23 ) * CASE ( - 9 ) WHEN AVG ( ALL - 99 ) + + COUNT( * ) * - - 32 THEN + 22 / MAX( ( + 67 ) ) * 74 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT - 38 + - SUM ( - 23 ) * CASE ( - 9 ) WHEN AVG ( ALL - 99 ) + + COUNT ( * ) * - - 32 THEN + 22 / MAX ( ( + 67 ) ) * 74 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7436
SELECT - 21 AS col1, - ( + 71 ) DIV - 12
----
-21
5

skipif mysql # not compatible
query II rowsort label-7436
SELECT - 21 AS col1, - ( + 71 ) / - 12
----
-21
5

query II rowsort
SELECT 29 col0, - 68 AS col2
----
29
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - ( 18 ) + COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-7438
SELECT - ( 18 ) + COUNT ( * ) AS col0
----
-17

query II rowsort
SELECT - 30 AS col2, 28 AS col0
----
-30
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7440
SELECT - MAX( + 98 ) + COALESCE ( + CAST( 29 AS SIGNED ), - + 66 * COUNT( * ) - - 13 + + 17, - 8 ) - + 95 * + + 28
----
-2729

skipif mysql # not compatible
query I rowsort label-7440
SELECT - MAX ( + 98 ) + COALESCE ( + CAST ( 29 AS INTEGER ), - + 66 * COUNT ( * ) - - 13 + + 17, - 8 ) - + 95 * + + 28
----
-2729

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT + 85 - - + MAX( - 63 )
----
22

skipif mysql # not compatible
query I rowsort label-7441
SELECT + 85 - - + MAX ( - 63 )
----
22

query I rowsort
SELECT + 55 + 5
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT ALL + 38 - - 12 + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL + 38 - - 12 + COUNT ( * )
----
51

query I rowsort
SELECT DISTINCT - 84 - 72 * + 72
----
-5268

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7445
SELECT CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7445
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7446
SELECT ALL ( - 6 ) DIV + - CAST( - 85 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL ( - 6 ) / + - CAST ( - 85 AS INTEGER )
----
0

query II rowsort
SELECT DISTINCT + 62 AS col1, + 83 AS col0
----
62
83

query I rowsort
SELECT DISTINCT 37 * + - 26
----
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - 68 * 51 + - 97 + COUNT( * ) * - 74 * - 6 * + + MIN( - 1 )
----
-4009

skipif mysql # not compatible
query I rowsort label-7449
SELECT - 68 * 51 + - 97 + COUNT ( * ) * - 74 * - 6 * + + MIN ( - 1 )
----
-4009

query I rowsort
SELECT + 13 * 11 * + + 53 * - + 56
----
-424424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7451
SELECT + 72 * - CASE - MAX( DISTINCT + + 22 ) WHEN + + 31 * + NULLIF ( - + COUNT( ALL + NULLIF ( - + 36, + CAST( NULL AS SIGNED ) ) ), - + COUNT( DISTINCT 27 ) * 22 ) THEN + 29 * + - 18 + - - COUNT( * ) DIV + + 10 * + 64 + + COUNT( * ) WHEN - - 69 THEN NULL ELSE + - ( - COUNT( * ) ) END
----
-72

skipif mysql # not compatible
query I rowsort label-7451
SELECT + 72 * - CASE - MAX ( DISTINCT + + 22 ) WHEN + + 31 * + NULLIF ( - + COUNT ( ALL + NULLIF ( - + 36, + CAST ( NULL AS INTEGER ) ) ), - + COUNT ( DISTINCT 27 ) * 22 ) THEN + 29 * + - 18 + - - COUNT ( * ) / + + 10 * + 64 + + COUNT ( * ) WHEN - - 69 THEN NULL ELSE + - ( - COUNT ( * ) ) END
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7452
SELECT COUNT( * ) DIV + 48 * + + COUNT( - + 90 ) * + + 52 + 77 * + + 38 * - ( + 42 ) - 79 + + 22 - + - 92 * - - 22 * - + 20 + 8
----
-163421

skipif mysql # not compatible
query I rowsort label-7452
SELECT COUNT ( * ) / + 48 * + + COUNT ( - + 90 ) * + + 52 + 77 * + + 38 * - ( + 42 ) - 79 + + 22 - + - 92 * - - 22 * - + 20 + 8
----
-163421

query I rowsort
SELECT DISTINCT 1 * - + 92 * + 11
----
-1012

query II rowsort
SELECT ALL + 4, 43 AS col2
----
4
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7455
SELECT ALL + - 53 col0, 35 + - 78 * - COUNT( * ) AS col0
----
-53
113

skipif mysql # not compatible
query II rowsort label-7455
SELECT ALL + - 53 col0, 35 + - 78 * - COUNT ( * ) AS col0
----
-53
113

query II rowsort
SELECT DISTINCT + + 63 col2, 78
----
63
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7457
SELECT 86, + COUNT( * ) AS col1
----
86
1

skipif mysql # not compatible
query II rowsort label-7457
SELECT 86, + COUNT ( * ) AS col1
----
86
1

query I rowsort
SELECT - + 58 * 82 AS col0
----
-4756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT - 42 DIV 43 + - - COUNT( * ) + - ( 6 ) * - 85 - + - 39 * 9
----
862

skipif mysql # not compatible
query I rowsort label-7459
SELECT - 42 / 43 + - - COUNT ( * ) + - ( 6 ) * - 85 - + - 39 * 9
----
862

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7460
SELECT + + 48, - CAST( NULL AS DECIMAL ) * + 35 * + ( 31 ) - AVG ( ALL + + 90 ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-7460
SELECT + + 48, - CAST ( NULL AS REAL ) * + 35 * + ( 31 ) - AVG ( ALL + + 90 ) AS col1
----
48
NULL

query III rowsort
SELECT + - 79 AS col1, 63, + 3 * + 75 + 93 AS col2
----
-79
63
318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT DISTINCT - 40 * + ( 70 ) + + AVG ( - + 83 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT - 40 * + ( 70 ) + + AVG ( - + 83 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( COALESCE ( + 97, - - 97 ) ) * 87 + + 19 + ( - 94 )
----
-8514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7464
SELECT DISTINCT + CAST( 78 AS SIGNED ) * + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + CAST ( 78 AS INTEGER ) * + COUNT ( * )
----
78

query I rowsort
SELECT ALL - COALESCE ( + 66, + NULLIF ( + - 72, - ( - 92 ) + - - ( 77 ) ) ) AS col2
----
-66

query I rowsort
SELECT ALL - - 47 * + + 46 + - 81 - - 1
----
2082

query I rowsort
SELECT - - 31 * 3
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT ALL - 26 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL - 26 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-7469
SELECT - COUNT( * ), 24 * MAX( + 59 ) AS col1, - + ( + + COUNT( * ) )
----
-1
1416
-1

skipif mysql # not compatible
query III rowsort label-7469
SELECT - COUNT ( * ), 24 * MAX ( + 59 ) AS col1, - + ( + + COUNT ( * ) )
----
-1
1416
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL + 35 + - - COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL + 35 + - - COUNT ( * ) AS col1
----
36

query I rowsort
SELECT ALL - 76 + 11 col1
----
-65

query I rowsort
SELECT + 86 * + 76
----
6536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT ALL CAST( - ( - 69 ) AS SIGNED ) col1
----
69

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL CAST ( - ( - 69 ) AS INTEGER ) col1
----
69

query I rowsort
SELECT - 85 + - 84 - 87
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT COUNT( * ) * 93 * + 30 * + - MAX( ALL + + NULLIF ( - ( + + 60 ), + 42 ) ) AS col2
----
167400

skipif mysql # not compatible
query I rowsort label-7475
SELECT COUNT ( * ) * 93 * + 30 * + - MAX ( ALL + + NULLIF ( - ( + + 60 ), + 42 ) ) AS col2
----
167400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT DISTINCT CAST( 1 AS SIGNED ) * - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT CAST ( 1 AS INTEGER ) * - 53 AS col0
----
-53

query I rowsort
SELECT ALL - 71 - - + 37 AS col1
----
-34

query I rowsort
SELECT 23 * 38 AS col2
----
874

query I rowsort
SELECT ALL - 81 + + 11 + 47 AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7480
SELECT CAST( NULL AS SIGNED ) * AVG ( ALL - - 65 ) - 77 - 78 * + NULLIF ( - 95, - CAST( NULL AS SIGNED ) + - + 73 * - 9 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT CAST ( NULL AS INTEGER ) * AVG ( ALL - - 65 ) - 77 - 78 * + NULLIF ( - 95, - CAST ( NULL AS INTEGER ) + - + 73 * - 9 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 19 + 42
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT 93 * - 18 + + 21 + + 38 * + COUNT( * )
----
-1615

skipif mysql # not compatible
query I rowsort label-7482
SELECT 93 * - 18 + + 21 + + 38 * + COUNT ( * )
----
-1615

query I rowsort
SELECT + 18 * + NULLIF ( - - 78, 99 * 25 / + + 44 + - + 88 + 11 )
----
1404

query I rowsort
SELECT ALL 87 + 84 * + 47
----
4035

query I rowsort
SELECT ALL - 90 * - 44 AS col2
----
3960

onlyif mysql # aggregate syntax: 
query II rowsort label-7486
SELECT + 86 * - 75 + + 79 AS col1, + COUNT( * )
----
-6371
1

skipif mysql # not compatible
query II rowsort label-7486
SELECT + 86 * - 75 + + 79 AS col1, + COUNT ( * )
----
-6371
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT + 77 * + + 63 + - COALESCE ( + 89, + 57 ) * + 61 + - 77 - + - 36 + - ( COUNT( * ) ) * + + 89 AS col1
----
-708

skipif mysql # not compatible
query I rowsort label-7487
SELECT + 77 * + + 63 + - COALESCE ( + 89, + 57 ) * + 61 + - 77 - + - 36 + - ( COUNT ( * ) ) * + + 89 AS col1
----
-708

query I rowsort
SELECT + + ( - + 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7489
SELECT 96 + - - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7489
SELECT 96 + - - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT ALL - COUNT( * ) + - COUNT( * ) + + ( + 27 ) + - 81 + + COUNT( 17 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + + ( + 27 ) + - 81 + + COUNT ( 17 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT ALL - COALESCE ( + - CASE + - 73 WHEN + + 20 THEN NULL WHEN - - MIN( 82 ) * - - 62 - 56 + + 52 THEN NULL ELSE - 55 + - 67 * - COALESCE ( - + 5, - 26 ) END, + ( 85 ) - + COALESCE ( - - 97, + 6 * + 58 ) ) * + 14 col0
----
-5460

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - COALESCE ( + - CASE + - 73 WHEN + + 20 THEN NULL WHEN - - MIN ( 82 ) * - - 62 - 56 + + 52 THEN NULL ELSE - 55 + - 67 * - COALESCE ( - + 5, - 26 ) END, + ( 85 ) - + COALESCE ( - - 97, + 6 * + 58 ) ) * + 14 col0
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT - SUM( - - 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7492
SELECT - SUM ( - - 9 ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7493
SELECT CAST( + COUNT( * ) AS SIGNED ) + + 71 - 20 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7493
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + 71 - 20 AS col1
----
52

query I rowsort
SELECT ALL 17 - + 18 - 21
----
-22

query I rowsort
SELECT - ( - 13 ) * 96
----
1248

query I rowsort
SELECT 24 * - NULLIF ( 89, + 33 * - 26 + + - 25 )
----
-2136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7497
SELECT ALL 74 * - ( + 69 ) * - 67 * 56 * - + 4 - - 63 * - - 10, + 88 * + + COUNT( * ) - - CAST( 50 AS SIGNED ) AS col2
----
-76630218
138

skipif mysql # not compatible
query II rowsort label-7497
SELECT ALL 74 * - ( + 69 ) * - 67 * 56 * - + 4 - - 63 * - - 10, + 88 * + + COUNT ( * ) - - CAST ( 50 AS INTEGER ) AS col2
----
-76630218
138

query II rowsort
SELECT DISTINCT 76 AS col2, 26 AS col1
----
76
26

query I rowsort
SELECT ALL - 84 * + - 84
----
7056

query I rowsort
SELECT 14 * 27
----
378

query II rowsort
SELECT 5 AS col2, + 97
----
5
97

query II rowsort
SELECT ALL 85 AS col0, 46 AS col2
----
85
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT 30 - + 26 - 78 * + + COUNT( * ) * 82 - - + 12 col0
----
-6380

skipif mysql # not compatible
query I rowsort label-7503
SELECT 30 - + 26 - 78 * + + COUNT ( * ) * 82 - - + 12 col0
----
-6380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7504
SELECT DISTINCT ( COUNT( DISTINCT + + CAST( - + 15 AS SIGNED ) ) ) * 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT ( COUNT ( DISTINCT + + CAST ( - + 15 AS INTEGER ) ) ) * 16 AS col2
----
16

query I rowsort
SELECT 40 * + 80 AS col0
----
3200

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT 59 DIV + ( - 62 ) * - + 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7506
SELECT 59 / + ( - 62 ) * - + 1 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7507
SELECT ALL + ( 74 ) DIV - 7 AS col2, + 6 AS col1
----
-10
6

skipif mysql # not compatible
query II rowsort label-7507
SELECT ALL + ( 74 ) / - 7 AS col2, + 6 AS col1
----
-10
6

query I rowsort
SELECT 30 + + 62 col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT 65 - - + COUNT( * ) * + + 47 AS col2, - 88
----
112
-88

skipif mysql # not compatible
query II rowsort label-7509
SELECT 65 - - + COUNT ( * ) * + + 47 AS col2, - 88
----
112
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-7510
SELECT ALL 4 AS col1, 52 DIV 28 * - COALESCE ( + - ( - 39 ), + 44 + - + ( + 73 ), - - 20 )
----
4
-39

skipif mysql # not compatible
query II rowsort label-7510
SELECT ALL 4 AS col1, 52 / 28 * - COALESCE ( + - ( - 39 ), + 44 + - + ( + 73 ), - - 20 )
----
4
-39

query I rowsort
SELECT ALL - NULLIF ( - COALESCE ( + + 38, - + 94 ), - + 84 / - NULLIF ( - + 79, 50 * + CASE 60 WHEN 79 THEN 8 + 61 ELSE NULL END ) )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7512
SELECT COUNT( * ), + 18 col0
----
1
18

skipif mysql # not compatible
query II rowsort label-7512
SELECT COUNT ( * ), + 18 col0
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL COALESCE ( + MAX( DISTINCT - 99 ), 96 * - 52 ) * + - 53 + + 96 + SUM( - 3 )
----
5340

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL COALESCE ( + MAX ( DISTINCT - 99 ), 96 * - 52 ) * + - 53 + + 96 + SUM ( - 3 )
----
5340

query I rowsort
SELECT ALL - ( - 48 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT + 38 * - 75 + + COUNT( * ) * + NULLIF ( + + 95, - + 96 ) AS col1
----
-2755

skipif mysql # not compatible
query I rowsort label-7515
SELECT + 38 * - 75 + + COUNT ( * ) * + NULLIF ( + + 95, - + 96 ) AS col1
----
-2755

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7516
SELECT 42 DIV - 68 * + + 94 * + COALESCE ( + 69, - COUNT( * ) DIV - + 62 * + 46 ) + 4 * - + 95 AS col1
----
-380

skipif mysql # not compatible
query I rowsort label-7516
SELECT 42 / - 68 * + + 94 * + COALESCE ( + 69, - COUNT ( * ) / - + 62 * + 46 ) + 4 * - + 95 AS col1
----
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + + NULLIF ( + COUNT( * ), 73 + - + 8 )
----
1

skipif mysql # not compatible
query I rowsort label-7517
SELECT + + NULLIF ( + COUNT ( * ), 73 + - + 8 )
----
1

query I rowsort
SELECT ALL + + ( 15 ) + + 64 - - - 1
----
78

query I rowsort
SELECT 62 + 63 AS col2
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7520
SELECT + COUNT( DISTINCT + 83 ) DIV + 49 * + 42 + + 52 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7520
SELECT + COUNT ( DISTINCT + 83 ) / + 49 * + 42 + + 52 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL + 70 + - - COUNT( * ) + + 98 AS col2
----
169

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL + 70 + - - COUNT ( * ) + + 98 AS col2
----
169

query II rowsort
SELECT ALL - 39 AS col1, 38 col2
----
-39
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL + COUNT( * ) + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + COUNT ( * ) + 61 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL COUNT( * ) * NULLIF ( + 70, - ( + ( 21 ) ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL COUNT ( * ) * NULLIF ( + 70, - ( + ( 21 ) ) ) AS col2
----
70

query II rowsort
SELECT DISTINCT ( + - 17 ) * 51 AS col1, 83
----
-867
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7526
SELECT ALL 15 * + - NULLIF ( - - 8, - 88 / - CAST( - 89 AS SIGNED ) + + - ( - - COUNT( * ) ) + COALESCE ( + 19, - - 11 / - 69 ) ) * 11 + - 80 col1
----
-1400

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL 15 * + - NULLIF ( - - 8, - 88 / - CAST ( - 89 AS INTEGER ) + + - ( - - COUNT ( * ) ) + COALESCE ( + 19, - - 11 / - 69 ) ) * 11 + - 80 col1
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT + 84 - 5 * 11 - - - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-7527
SELECT + 84 - 5 * 11 - - - COUNT ( * )
----
28

query I rowsort
SELECT 11 * - COALESCE ( 26, 84 ) AS col0
----
-286

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT CASE + + 11 WHEN 25 THEN + COALESCE ( 38, MAX( ALL - 53 ) ) ELSE - 78 END + 45 + COALESCE ( + - 64, - 39 ) * 26 col1
----
-1697

skipif mysql # not compatible
query I rowsort label-7529
SELECT CASE + + 11 WHEN 25 THEN + COALESCE ( 38, MAX ( ALL - 53 ) ) ELSE - 78 END + 45 + COALESCE ( + - 64, - 39 ) * 26 col1
----
-1697

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT - CASE - 48 WHEN + + 83 / + - 1 * + 39 THEN + - 85 + COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT - CASE - 48 WHEN + + 83 / + - 1 * + 39 THEN + - 85 + COUNT ( * ) END col2
----
NULL

query I rowsort
SELECT DISTINCT + 97 * NULLIF ( 16, + ( 9 ) ) col2
----
1552

query I rowsort
SELECT ALL - 43 * 35 * 96 AS col0
----
-144480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT - AVG ( + - ( - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7533
SELECT - AVG ( + - ( - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT + 8 * - + 47
----
-376

query I rowsort
SELECT + 26 + - 41 AS col0
----
-15

query I rowsort
SELECT + 85 - + 92 AS col0
----
-7

query I rowsort
SELECT + 72 * - - 77
----
5544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7538
SELECT DISTINCT COALESCE ( + 85, + + 44 DIV + 18 * 5 + 71 + + - 57 ) + - MAX( 9 ) + - 69 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT COALESCE ( + 85, + + 44 / + 18 * 5 + 71 + + - 57 ) + - MAX ( 9 ) + - 69 AS col1
----
7

query I rowsort
SELECT - NULLIF ( - 76, 29 - - 95 + 4 / + 9 ) AS col1
----
76

query I rowsort
SELECT - ( - - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL + 17 + - COUNT( ALL - 4 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + 17 + - COUNT ( ALL - 4 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT - COUNT( * ) * - + 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7542
SELECT - COUNT ( * ) * - + 99 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT ALL 18 + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL 18 + COUNT ( * ) AS col0
----
19

query I rowsort
SELECT + + 35 - + 16 * 82 AS col2
----
-1277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7545
SELECT DISTINCT + + CAST( 32 AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7545
SELECT DISTINCT + + CAST ( 32 AS INTEGER ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7546
SELECT + 94 DIV CAST( + COUNT( * ) AS SIGNED ) - + 70 * 67 AS col2
----
-4596

skipif mysql # not compatible
query I rowsort label-7546
SELECT + 94 / CAST ( + COUNT ( * ) AS INTEGER ) - + 70 * 67 AS col2
----
-4596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7547
SELECT - - 54 * + CASE - 62 WHEN CAST( NULL AS SIGNED ) / ( + COUNT( * ) ) * MIN( ALL - 76 ) THEN NULL WHEN - + COUNT( * ) THEN COUNT( * ) + + 62 * ( - ( 32 ) ) / 32 - + 18 ELSE - ( - CAST( NULL AS DECIMAL ) ) / - 54 END * - CAST( + + 16 AS SIGNED ) + 79 - - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT - - 54 * + CASE - 62 WHEN CAST ( NULL AS INTEGER ) / ( + COUNT ( * ) ) * MIN ( ALL - 76 ) THEN NULL WHEN - + COUNT ( * ) THEN COUNT ( * ) + + 62 * ( - ( 32 ) ) / 32 - + 18 ELSE - ( - CAST ( NULL AS REAL ) ) / - 54 END * - CAST ( + + 16 AS INTEGER ) + 79 - - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7548
SELECT + NULLIF ( ( CAST( - CASE 85 WHEN + + 45 - 64 / + - 95 THEN NULL WHEN - ( - 61 ) + + 7 THEN - + 64 END AS SIGNED ) ), - COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT + NULLIF ( ( CAST ( - CASE 85 WHEN + + 45 - 64 / + - 95 THEN NULL WHEN - ( - 61 ) + + 7 THEN - + 64 END AS INTEGER ) ), - COUNT ( * ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT + + CASE - 99 WHEN COUNT( * ) + - + 7 THEN + 26 + - 7 + MIN( - + 39 ) ELSE NULL END * + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT + + CASE - 99 WHEN COUNT ( * ) + - + 7 THEN + 26 + - 7 + MIN ( - + 39 ) ELSE NULL END * + 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7550
SELECT DISTINCT + ( - COUNT( * ) ) AS col1, 64
----
-1
64

skipif mysql # not compatible
query II rowsort label-7550
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1, 64
----
-1
64

query I rowsort
SELECT DISTINCT + - 31 col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT ALL - 63 * COALESCE ( ( COUNT( * ) ), - - 80, - COUNT( * ) DIV - - CASE - - 66 WHEN + 93 THEN - + 30 END * - COUNT( * ) + 16 + + - 48 + + 21 ) + + - 89 + - 63 * ( - - 25 ) * + 95
----
-149777

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - 63 * COALESCE ( ( COUNT ( * ) ), - - 80, - COUNT ( * ) / - - CASE - - 66 WHEN + 93 THEN - + 30 END * - COUNT ( * ) + 16 + + - 48 + + 21 ) + + - 89 + - 63 * ( - - 25 ) * + 95
----
-149777

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT MAX( ALL - 54 ) * - 76 + 14 * + + 59 * + MIN( ALL + ( - - 50 ) ) * + 16 - - 64 + + 14 + 28 - + ( + 29 ) AS col1
----
664981

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT MAX ( ALL - 54 ) * - 76 + 14 * + + 59 * + MIN ( ALL + ( - - 50 ) ) * + 16 - - 64 + + 14 + 28 - + ( + 29 ) AS col1
----
664981

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT + - 34 * 37 DIV - 95 + + 62 - - + 6 - - 28 + + 84 * + 24 - + 92 * - 93 AS col0
----
10681

skipif mysql # not compatible
query I rowsort label-7554
SELECT + - 34 * 37 / - 95 + + 62 - - + 6 - - 28 + + 84 * + 24 - + 92 * - 93 AS col0
----
10681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7555
SELECT ALL 10 * + 83 + 14 - - 84 - - ( - COUNT( * ) ) * + + 75 * CAST( + - 85 AS SIGNED ) AS col2, - COUNT( * ) + + 95 AS col0
----
7303
94

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL 10 * + 83 + 14 - - 84 - - ( - COUNT ( * ) ) * + + 75 * CAST ( + - 85 AS INTEGER ) AS col2, - COUNT ( * ) + + 95 AS col0
----
7303
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT - MIN( 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7556
SELECT - MIN ( 92 ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7557
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - COALESCE ( - 63, NULLIF ( + 48, + 27 / + + COUNT( * ) + + + 67 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT + CAST ( NULL AS REAL ) * - COALESCE ( - 63, NULLIF ( + 48, + 27 / + + COUNT ( * ) + + + 67 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7558
SELECT ALL + + ( + CAST( + - COUNT( * ) AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL + + ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7559
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT - - ( - - NULLIF ( + COUNT( * ), ( - 26 ) * + ( 35 ) ) ) + - MIN( - 13 ) + - 1 * - 86 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7560
SELECT - - ( - - NULLIF ( + COUNT ( * ), ( - 26 ) * + ( 35 ) ) ) + - MIN ( - 13 ) + - 1 * - 86 AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-7561
SELECT - 91 * - 17 AS col2, COUNT( * )
----
1547
1

skipif mysql # not compatible
query II rowsort label-7561
SELECT - 91 * - 17 AS col2, COUNT ( * )
----
1547
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT ALL + + COALESCE ( + NULLIF ( - 12, - 85 / - 72 + 11 ), - 96 * - + CAST( NULL AS SIGNED ) * - ( - + 40 ) ) * 79
----
-948

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + + COALESCE ( + NULLIF ( - 12, - 85 / - 72 + 11 ), - 96 * - + CAST ( NULL AS INTEGER ) * - ( - + 40 ) ) * 79
----
-948

query I rowsort
SELECT - 26 * 24
----
-624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT DISTINCT + MAX( - 29 ) DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT + MAX ( - 29 ) / 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7565
SELECT COUNT( * ) AS col0, + 56 * - 43 + + NULLIF ( + - 15, + CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) * - SUM( - - 43 ) + - - 96 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7565
SELECT COUNT ( * ) AS col0, + 56 * - 43 + + NULLIF ( + - 15, + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) * - SUM ( - - 43 ) + - - 96 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7566
SELECT + COUNT( DISTINCT 7 ) DIV 19 + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7566
SELECT + COUNT ( DISTINCT 7 ) / 19 + 81 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7567
SELECT ALL + COALESCE ( 70, ( + ( + 27 ) ), - 20 DIV 83 * - 97 - + 24, + 41 + + + 5 * + - 96 ) * + 55 + + + CAST( - 12 AS SIGNED ) * - 84, NULLIF ( - - 7, 48 * 79 * - 8 * + COUNT( * ) ) AS col1
----
4858
7

skipif mysql # not compatible
query II rowsort label-7567
SELECT ALL + COALESCE ( 70, ( + ( + 27 ) ), - 20 / 83 * - 97 - + 24, + 41 + + + 5 * + - 96 ) * + 55 + + + CAST ( - 12 AS INTEGER ) * - 84, NULLIF ( - - 7, 48 * 79 * - 8 * + COUNT ( * ) ) AS col1
----
4858
7

query I rowsort
SELECT - 90 + 58 AS col1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - 66 + + COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7570
SELECT - 66 + + COUNT ( * ) AS col0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7571
SELECT + COUNT( * ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT + COUNT ( * ) / - 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7572
SELECT ALL - 94 + + 49 + COUNT( * ) AS col1, - 80 + + - 1 - 63 AS col1
----
-44
-144

skipif mysql # not compatible
query II rowsort label-7572
SELECT ALL - 94 + + 49 + COUNT ( * ) AS col1, - 80 + + - 1 - 63 AS col1
----
-44
-144

query I rowsort
SELECT ALL 30 + - - 70 AS col2
----
100

query I rowsort
SELECT + 36 - + + 31
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT DISTINCT COALESCE ( COUNT( DISTINCT - - 20 ), + CAST( NULL AS SIGNED ) ) * - 83 * 60 * + 52 AS col2
----
-258960

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT COALESCE ( COUNT ( DISTINCT - - 20 ), + CAST ( NULL AS INTEGER ) ) * - 83 * 60 * + 52 AS col2
----
-258960

query I rowsort
SELECT + 13 + - + 23 * 85
----
-1942

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7577
SELECT - ( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT - ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7578
SELECT 46 AS col0, 87 + + - 77 * - COUNT( - 20 ) AS col1
----
46
164

skipif mysql # not compatible
query II rowsort label-7578
SELECT 46 AS col0, 87 + + - 77 * - COUNT ( - 20 ) AS col1
----
46
164

query I rowsort
SELECT + 0 + + 16
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7580
SELECT 89, + CAST( CASE - ( - + 97 ) WHEN 90 THEN 19 * - + 49 + - 8 + - + ( + 33 ) END AS SIGNED ) AS col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-7580
SELECT 89, + CAST ( CASE - ( - + 97 ) WHEN 90 THEN 19 * - + 49 + - 8 + - + ( + 33 ) END AS INTEGER ) AS col2
----
89
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT ALL 71 + + + 6 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL 71 + + + 6 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 77 + - - 76
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT + 82 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT + 82 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT ALL 64 + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL 64 + COUNT ( * ) AS col2
----
65

query I rowsort
SELECT + 29 + - 79 AS col2
----
-50

query I rowsort
SELECT DISTINCT 94 - 75
----
19

query I rowsort
SELECT ALL + 87 * - 53 AS col2
----
-4611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT + CAST( NULL AS SIGNED ) + + 66 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7588
SELECT + CAST ( NULL AS INTEGER ) + + 66 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 28 * NULLIF ( - 45, AVG ( 20 ) - 76 )
----
-1260

query I rowsort
SELECT + ( 30 ) * 32 col0
----
960

query I rowsort
SELECT - 75 * + 91 + - 8 AS col1
----
-6833

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7592
SELECT + CAST( + 90 AS SIGNED ) DIV + 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7592
SELECT + CAST ( + 90 AS INTEGER ) / + 37 AS col0
----
2

query I rowsort
SELECT - 93 * 2
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT 60 DIV - 23 + 85
----
83

skipif mysql # not compatible
query I rowsort label-7594
SELECT 60 / - 23 + 85
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7595
SELECT ALL - MAX( - 25 ) DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL - MAX ( - 25 ) / 72 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7596
SELECT 5 DIV - 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7596
SELECT 5 / - 81 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT 14 * MAX( ALL + 36 )
----
504

skipif mysql # not compatible
query I rowsort label-7597
SELECT 14 * MAX ( ALL + 36 )
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT + COUNT( ALL 82 ) * + 72
----
72

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT + COUNT ( ALL 82 ) * + 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT - MIN( - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT - MIN ( - 62 ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT ( CASE COUNT( ALL CAST( NULL AS SIGNED ) ) WHEN AVG ( 31 ) + 77 * + 58 THEN COUNT( * ) / 54 + 23 WHEN 60 THEN 80 * + 31 END ) * 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT ( CASE COUNT ( ALL CAST ( NULL AS INTEGER ) ) WHEN AVG ( 31 ) + 77 * + 58 THEN COUNT ( * ) / 54 + 23 WHEN 60 THEN 80 * + 31 END ) * 12 AS col2
----
NULL

query I rowsort
SELECT 40 * 97 AS col2
----
3880

query I rowsort
SELECT DISTINCT + 80 + + ( - 45 ) col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7603
SELECT ALL + COUNT( DISTINCT - 74 ) + 31 DIV + 69 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL + COUNT ( DISTINCT - 74 ) + 31 / + 69 AS col1
----
1

query I rowsort
SELECT 30 * - 30 AS col1
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT + 35 + SUM( DISTINCT 21 )
----
56

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT + 35 + SUM ( DISTINCT 21 )
----
56

query I rowsort
SELECT ALL + 17 + - 99 * - 53
----
5264

query I rowsort
SELECT ALL 90 + - 40 AS col1
----
50

query I rowsort
SELECT DISTINCT + ( 54 ) + 44 AS col0
----
98

query I rowsort
SELECT 68 - 44 * 75
----
-3232

query I rowsort
SELECT ALL - 18 + - 92 AS col0
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7611
SELECT ALL + 63 + 23 DIV ( + 77 - + NULLIF ( - 92 - ( - 94 ), MAX( ALL - 22 ) + 35 ) )
----
63

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL + 63 + 23 / ( + 77 - + NULLIF ( - 92 - ( - 94 ), MAX ( ALL - 22 ) + 35 ) )
----
63

query I rowsort
SELECT 55 * - 78
----
-4290

query I rowsort
SELECT 58 * 44 AS col1
----
2552

query I rowsort
SELECT 93 * 56
----
5208

query I rowsort
SELECT ALL - 18 - 70 * - 78 AS col1
----
5442

query I rowsort
SELECT ALL 65 * - ( 87 + - 16 ) col1
----
-4615

query I rowsort
SELECT DISTINCT - - 68 - - 24 AS col2
----
92

query I rowsort
SELECT DISTINCT + - 6 * - 78
----
468

query I rowsort
SELECT ALL NULLIF ( - 22, 88 ) AS col1
----
-22

query I rowsort
SELECT DISTINCT 92 - + 81 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT + 62 * ( ( + CAST( + 45 AS SIGNED ) ) ) AS col0
----
2790

skipif mysql # not compatible
query I rowsort label-7621
SELECT + 62 * ( ( + CAST ( + 45 AS INTEGER ) ) ) AS col0
----
2790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT ALL + 13 * - ( - CAST( NULL AS SIGNED ) - 49 / + 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL + 13 * - ( - CAST ( NULL AS INTEGER ) - 49 / + 63 ) AS col0
----
NULL

query I rowsort
SELECT 27 - 69 AS col0
----
-42

query I rowsort
SELECT 86 * + 53
----
4558

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + - 97 / CASE WHEN NOT + 44 + 68 IS NOT NULL THEN + 68 * - 39 + COUNT( * ) END - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT + - 97 / CASE WHEN NOT + 44 + 68 IS NOT NULL THEN + 68 * - 39 + COUNT ( * ) END - 26 AS col1
----
NULL

query I rowsort
SELECT - 51 + + 35 * 15
----
474

query I rowsort
SELECT + + CASE 79 WHEN + 12 THEN - 65 ELSE + 3 + - 50 END
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT SUM( DISTINCT 40 ) * 20 AS col1
----
800

skipif mysql # not compatible
query I rowsort label-7628
SELECT SUM ( DISTINCT 40 ) * 20 AS col1
----
800

query I rowsort
SELECT ALL - 81 * + 3 AS col1
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT - 59 * 18 - ( - 66 ) * COUNT( * )
----
-996

skipif mysql # not compatible
query I rowsort label-7630
SELECT - 59 * 18 - ( - 66 ) * COUNT ( * )
----
-996

query I rowsort
SELECT ALL + 37 * - 43
----
-1591

query I rowsort
SELECT 45 + + 73
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT 26 DIV + 3 - - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7633
SELECT 26 / + 3 - - COUNT ( * ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT - 9 DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT - 9 / 71 AS col1
----
0

query I rowsort
SELECT DISTINCT 9 + + + 17 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7636
SELECT 53 DIV CAST( NULLIF ( 38, 72 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7636
SELECT 53 / CAST ( NULLIF ( 38, 72 ) AS INTEGER )
----
1

query I rowsort
SELECT 94 * - 44 * - 31 + 24 AS col1
----
128240

query I rowsort
SELECT DISTINCT 73 + 88 * - 59
----
-5119

query I rowsort
SELECT ALL COALESCE ( - - 43, 61 ) + - 46 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT + MAX( + - ( 37 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-7640
SELECT + MAX ( + - ( 37 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT COUNT( * ) + NULLIF ( 61, 4 + + 46 * COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-7641
SELECT COUNT ( * ) + NULLIF ( 61, 4 + + 46 * COUNT ( * ) )
----
62

query I rowsort
SELECT ALL 8 + - - 54
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT ALL - 94 + 27 + - 51 * CAST( 37 + + 35 * ( 87 ) AS SIGNED )
----
-157249

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL - 94 + 27 + - 51 * CAST ( 37 + + 35 * ( 87 ) AS INTEGER )
----
-157249

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7644
SELECT COUNT( * ) * + 94 DIV COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7644
SELECT COUNT ( * ) * + 94 / COUNT ( * ) AS col2
----
94

query I rowsort
SELECT ALL + 31 + - + ( - 77 ) AS col2
----
108

query I rowsort
SELECT DISTINCT 19 + - 68 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT 77 + MIN( DISTINCT 35 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-7647
SELECT 77 + MIN ( DISTINCT 35 ) AS col2
----
112

query I rowsort
SELECT ALL + 31 - - ( - 18 ) AS col2
----
13

query I rowsort
SELECT 48 * + - 89
----
-4272

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7650
SELECT 55 + 51 + + 96 * 53 DIV - CAST( 61 AS SIGNED ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-7650
SELECT 55 + 51 + + 96 * 53 / - CAST ( 61 AS INTEGER ) AS col2
----
23

query I rowsort
SELECT DISTINCT - 13 * - + 75
----
975

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL MAX( + 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL MAX ( + 50 ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT 64 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT 64 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 18 - + 78
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT MIN( ALL 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT MIN ( ALL 60 ) AS col0
----
60

query I rowsort
SELECT DISTINCT + 68 - + + 82 AS col0
----
-14

query I rowsort
SELECT ALL NULLIF ( + 51, 62 ) AS col2
----
51

query I rowsort
SELECT - 42 - + ( 16 ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT CAST( NULL AS SIGNED ) * - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT CAST ( NULL AS INTEGER ) * - 64 AS col1
----
NULL

query I rowsort
SELECT - 85 * 22 * + 81
----
-151470

query I rowsort
SELECT - 69 + + 37
----
-32

query I rowsort
SELECT + 82 * - - 29 + 57
----
2435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7663
SELECT + + CAST( - 44 AS SIGNED ) - + 77 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-7663
SELECT + + CAST ( - 44 AS INTEGER ) - + 77 AS col2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7664
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - 88 THEN NULL ELSE COUNT( * ) + - 89 END AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - 88 THEN NULL ELSE COUNT ( * ) + - 89 END AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - + MAX( + + 15 ) + 37
----
22

skipif mysql # not compatible
query I rowsort label-7665
SELECT - + MAX ( + + 15 ) + 37
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT - - 21 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT - - 21 / - 32 AS col1
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - - 89, - 24 + 95 * + 12 ) AS col0
----
89

query I rowsort
SELECT - + NULLIF ( - 52, 2 ) * + 35
----
1820

query I rowsort
SELECT ALL + 64 * 22 + 96 col0
----
1504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT + 71 + + CAST( + 70 AS SIGNED ) AS col0
----
141

skipif mysql # not compatible
query I rowsort label-7670
SELECT + 71 + + CAST ( + 70 AS INTEGER ) AS col0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT + - NULLIF ( + SUM( ( 78 ) ), 64 )
----
-78

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT + - NULLIF ( + SUM ( ( 78 ) ), 64 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT DISTINCT - - 81 * 61 + + 46 * COUNT( * ) AS col2
----
4987

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT - - 81 * 61 + + 46 * COUNT ( * ) AS col2
----
4987

query I rowsort
SELECT + + NULLIF ( - 43, + 40 ) AS col0
----
-43

query I rowsort
SELECT - 29 * + - 88 + NULLIF ( + 36, 4 + - 98 ) AS col0
----
2588

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT 80 DIV 58 * 52 + - 29
----
23

skipif mysql # not compatible
query I rowsort label-7675
SELECT 80 / 58 * 52 + - 29
----
23

query I rowsort
SELECT ALL + + 16 * + 12 + 4
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT DISTINCT + + CASE - 88 WHEN CAST( 85 AS SIGNED ) THEN COALESCE ( + 53, + 41, + 11 ) * - 22 - 98 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT + + CASE - 88 WHEN CAST ( 85 AS INTEGER ) THEN COALESCE ( + 53, + 41, + 11 ) * - 22 - 98 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT COALESCE ( 10, - 68 )
----
10

query I rowsort
SELECT + CASE - 77 WHEN - + 66 * 32 THEN 73 WHEN 10 THEN NULL END col2
----
NULL

query I rowsort
SELECT ALL - 38 * + 22 * - + 64 + - 26 AS col1
----
53478

query I rowsort
SELECT + 26 * + - 9 col1
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT ALL - CASE 3 WHEN COALESCE ( 61, 93 DIV + 39 ) * 46 THEN 98 WHEN - 29 THEN - 7 * + 72 + + 26 DIV - 23 ELSE 98 END * 44 + COALESCE ( - 50 - + 72 * 48, COUNT( * ) + 87 DIV 45 ) * + 68 col2
----
-242720

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - CASE 3 WHEN COALESCE ( 61, 93 / + 39 ) * 46 THEN 98 WHEN - 29 THEN - 7 * + 72 + + 26 / - 23 ELSE 98 END * 44 + COALESCE ( - 50 - + 72 * 48, COUNT ( * ) + 87 / 45 ) * + 68 col2
----
-242720

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT + COUNT( * ), 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-7683
SELECT + COUNT ( * ), 0 AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + MIN( - 23 ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-7684
SELECT + MIN ( - 23 ) col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT + MIN( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-7685
SELECT + MIN ( - 78 )
----
-78

query I rowsort
SELECT + 96 * - - 70 AS col1
----
6720

onlyif mysql # DIV for integer division: 
query II rowsort label-7687
SELECT DISTINCT + 97 col0, - 48 DIV - + 53
----
97
0

skipif mysql # not compatible
query II rowsort label-7687
SELECT DISTINCT + 97 col0, - 48 / - + 53
----
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT + MAX( ALL + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7688
SELECT + MAX ( ALL + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT COUNT( DISTINCT + 43 )
----
1

skipif mysql # not compatible
query I rowsort label-7689
SELECT COUNT ( DISTINCT + 43 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7690
SELECT ALL + 3 AS col1, + COUNT( * ) + + 84 DIV - ( + 6 ) AS col1
----
3
-13

skipif mysql # not compatible
query II rowsort label-7690
SELECT ALL + 3 AS col1, + COUNT ( * ) + + 84 / - ( + 6 ) AS col1
----
3
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + MAX( ALL 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-7691
SELECT + MAX ( ALL 80 ) col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + ( 71 ) + + COUNT( ( 49 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7692
SELECT + ( 71 ) + + COUNT ( ( 49 ) ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT + ( + - COUNT( - 87 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7693
SELECT + ( + - COUNT ( - 87 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL COALESCE ( - 26, 51 * SUM( 66 ) ) * SUM( ( 27 ) ) - + COUNT( - 54 + 22 )
----
-703

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL COALESCE ( - 26, 51 * SUM ( 66 ) ) * SUM ( ( 27 ) ) - + COUNT ( - 54 + 22 )
----
-703

query I rowsort
SELECT + 60 * + + 85 * + 36 * 31 AS col1
----
5691600

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + MAX( ALL + 40 ) * - MIN( DISTINCT 71 ) - ( + NULLIF ( - 76, COUNT( - 80 ) * 39 ) - + 35 * 51 )
----
-979

skipif mysql # not compatible
query I rowsort label-7696
SELECT + MAX ( ALL + 40 ) * - MIN ( DISTINCT 71 ) - ( + NULLIF ( - 76, COUNT ( - 80 ) * 39 ) - + 35 * 51 )
----
-979

query I rowsort
SELECT + COALESCE ( + + 17, 78 ) AS col0
----
17

query I rowsort
SELECT + ( - - ( 53 ) ) - 78 col0
----
-25

query II rowsort
SELECT + 99 AS col2, 20 AS col1
----
99
20

query I rowsort
SELECT ALL 60 * - 30 * 85
----
-153000

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT 20 * - 31 - - ( - COUNT( * ) ) + + 4 AS col2
----
-617

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT 20 * - 31 - - ( - COUNT ( * ) ) + + 4 AS col2
----
-617

onlyif mysql # aggregate syntax: 
query II rowsort label-7702
SELECT DISTINCT 5, + COUNT( * ) AS col0
----
5
1

skipif mysql # not compatible
query II rowsort label-7702
SELECT DISTINCT 5, + COUNT ( * ) AS col0
----
5
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT ALL + 55 DIV 12
----
4

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL + 55 / 12
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT ALL - 0 - + 46 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL - 0 - + 46 / + 58
----
0

query I rowsort
SELECT + 6 * - + 47
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT - NULLIF ( - MIN( 6 ), ( 26 ) ) * + 36
----
216

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT - NULLIF ( - MIN ( 6 ), ( 26 ) ) * + 36
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT + 83 * + COUNT( ALL + 24 )
----
83

skipif mysql # not compatible
query I rowsort label-7707
SELECT + 83 * + COUNT ( ALL + 24 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT - - SUM( + 50 ) * 84 - - ( 1 )
----
4201

skipif mysql # not compatible
query I rowsort label-7708
SELECT - - SUM ( + 50 ) * 84 - - ( 1 )
----
4201

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - + COUNT( DISTINCT + 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-7709
SELECT - + COUNT ( DISTINCT + 40 )
----
-1

query I rowsort
SELECT DISTINCT - + 38 * + + 84
----
-3192

query I rowsort
SELECT ALL - ( + - 63 ) AS col0
----
63

query I rowsort
SELECT - 75 + + COALESCE ( - 18, + 12 * - 36 ) - 1 * - 11 * 77
----
754

query I rowsort
SELECT - - COALESCE ( - 24, - 33 ) * 35 AS col0
----
-840

query I rowsort
SELECT ALL - 31 * - - 50 + 52
----
-1498

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT + - 25 * + + COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7715
SELECT + - 25 * + + COUNT ( * ) AS col2
----
-25

query I rowsort
SELECT ALL 89 + + 92
----
181

query II rowsort
SELECT ALL + 44 AS col2, + 99 AS col0
----
44
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7718
SELECT ALL - COUNT( * ) AS col0, + CASE + 99 WHEN - 88 THEN NULL WHEN CAST( 25 AS SIGNED ) THEN NULL ELSE 36 END * - 56 + 21 AS col2
----
-1
-1995

skipif mysql # not compatible
query II rowsort label-7718
SELECT ALL - COUNT ( * ) AS col0, + CASE + 99 WHEN - 88 THEN NULL WHEN CAST ( 25 AS INTEGER ) THEN NULL ELSE 36 END * - 56 + 21 AS col2
----
-1
-1995

query I rowsort
SELECT DISTINCT + - 51 + + - ( - 8 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT DISTINCT + - 34 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT + - 34 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT + 99 + - 35 + + 94 + + MAX( - 90 + 7 * 0 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7721
SELECT + 99 + - 35 + + 94 + + MAX ( - 90 + 7 * 0 ) AS col2
----
68

query I rowsort
SELECT - - 26 col2
----
26

query I rowsort
SELECT ALL - 79 + 95
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT - + ( + + 37 ) DIV - 88 + - 2 DIV 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT - + ( + + 37 ) / - 88 + - 2 / 34 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT - - 98 - - 12 + COUNT( * ) * + 23 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-7725
SELECT - - 98 - - 12 + COUNT ( * ) * + 23 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + NULLIF ( + 55, - - 39 - + CASE - COUNT( * ) WHEN 74 * 75 + + MAX( ( - 58 ) ) * - 81 THEN NULL WHEN COUNT( * ) * 29 THEN ( + 62 ) ELSE + 22 + + 34 END )
----
55

skipif mysql # not compatible
query I rowsort label-7726
SELECT + NULLIF ( + 55, - - 39 - + CASE - COUNT ( * ) WHEN 74 * 75 + + MAX ( ( - 58 ) ) * - 81 THEN NULL WHEN COUNT ( * ) * 29 THEN ( + 62 ) ELSE + 22 + + 34 END )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7727
SELECT DISTINCT + SUM( ALL ( - 64 ) ) DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT + SUM ( ALL ( - 64 ) ) / - 65
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7728
SELECT - 0 DIV - + COUNT( * ) - + 83
----
-83

skipif mysql # not compatible
query I rowsort label-7728
SELECT - 0 / - + COUNT ( * ) - + 83
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7729
SELECT ALL - 16 DIV - - 56 + MAX( ALL 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - 16 / - - 56 + MAX ( ALL 90 ) AS col0
----
90

query I rowsort
SELECT ALL + 94 * 66 * + 30
----
186120

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT + COUNT( * ) * - COALESCE ( - 12, 63 * 73 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + COUNT ( * ) * - COALESCE ( - 12, 63 * 73 ) AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT ALL 24 DIV + 19 + - - 42
----
43

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL 24 / + 19 + - - 42
----
43

query I rowsort
SELECT ALL - 58 * - ( + + 12 ) AS col0
----
696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7734
SELECT ALL + CAST( NULL AS SIGNED ) * - - MIN( DISTINCT 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + CAST ( NULL AS INTEGER ) * - - MIN ( DISTINCT 81 ) AS col2
----
NULL

query I rowsort
SELECT - 67 + + 24 AS col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7736
SELECT ALL 61 / ( - 86 ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL 61 / ( - 86 ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 84 * + - 74 * 8 AS col1
----
49728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT + COALESCE ( 35, + + 37 + + - COUNT( CAST( NULL AS SIGNED ) ) )
----
35

skipif mysql # not compatible
query I rowsort label-7738
SELECT + COALESCE ( 35, + + 37 + + - COUNT ( CAST ( NULL AS INTEGER ) ) )
----
35

query I rowsort
SELECT + ( 26 ) + - 68
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + COUNT( * ) * 70
----
70

skipif mysql # not compatible
query I rowsort label-7740
SELECT + COUNT ( * ) * 70
----
70

query I rowsort
SELECT - ( + + 58 ) + 74 * 16
----
1126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7742
SELECT ALL 1 * - 92, - 13 * + + 8 DIV - COUNT( * ) AS col0
----
-92
104

skipif mysql # not compatible
query II rowsort label-7742
SELECT ALL 1 * - 92, - 13 * + + 8 / - COUNT ( * ) AS col0
----
-92
104

query I rowsort
SELECT + NULLIF ( 95, + - 61 * - 95 ) * 15
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL COUNT( * ) * + 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL COUNT ( * ) * + 94 AS col2
----
94

query I rowsort
SELECT DISTINCT 30 * + 40 * - 96 AS col0
----
-115200

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ( - + 5 ) * COUNT( * ) * - 58 + ( 19 + + 28 * - 62 ) AS col2
----
-1427

skipif mysql # not compatible
query I rowsort label-7746
SELECT ( - + 5 ) * COUNT ( * ) * - 58 + ( 19 + + 28 * - 62 ) AS col2
----
-1427

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT - 47 * COUNT( * ) + + + 57
----
10

skipif mysql # not compatible
query I rowsort label-7747
SELECT - 47 * COUNT ( * ) + + + 57
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ALL 65 * + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL 65 * + COUNT ( * )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT - + 20 DIV 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT - + 20 / 97 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7750
SELECT - NULLIF ( + 73, - CAST( + 62 AS SIGNED ) + CASE 24 WHEN - COUNT( DISTINCT 0 ) THEN NULL WHEN 27 * - 61 - MIN( ALL - ( - ( - 0 ) ) + + ( 33 ) ) THEN 87 END * 75 )
----
-73

skipif mysql # not compatible
query I rowsort label-7750
SELECT - NULLIF ( + 73, - CAST ( + 62 AS INTEGER ) + CASE 24 WHEN - COUNT ( DISTINCT 0 ) THEN NULL WHEN 27 * - 61 - MIN ( ALL - ( - ( - 0 ) ) + + ( 33 ) ) THEN 87 END * 75 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT - MAX( - - 73 ) + - - 96 * - - 82 - 78
----
7721

skipif mysql # not compatible
query I rowsort label-7751
SELECT - MAX ( - - 73 ) + - - 96 * - - 82 - 78
----
7721

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL + - MIN( + 18 ) * + - 0
----
0

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL + - MIN ( + 18 ) * + - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT + COUNT( - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + COUNT ( - 10 )
----
1

query I rowsort
SELECT ALL 87 + + 80 + 38
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7755
SELECT DISTINCT COALESCE ( + + 88, + COUNT( * ) DIV + 75 * COUNT( - 9 ) )
----
88

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT COALESCE ( + + 88, + COUNT ( * ) / + 75 * COUNT ( - 9 ) )
----
88

query II rowsort
SELECT ALL - 83 + + - 91 AS col1, 40 AS col0
----
-174
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT + CAST( - 31 AS SIGNED ) + + 91
----
60

skipif mysql # not compatible
query I rowsort label-7757
SELECT + CAST ( - 31 AS INTEGER ) + + 91
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT ALL + 8 + - COALESCE ( - - 87, 55 ) * CAST( + 65 AS SIGNED )
----
-5647

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL + 8 + - COALESCE ( - - 87, 55 ) * CAST ( + 65 AS INTEGER )
----
-5647

query II rowsort
SELECT - 6 + + 98, - 65 + + 88 AS col1
----
92
23

query I rowsort
SELECT - ( ( - 94 ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - 20 + ( - 32 ) + + NULLIF ( + 33, - MAX( DISTINCT - 2 ) + + 0 )
----
-19

skipif mysql # not compatible
query I rowsort label-7761
SELECT - 20 + ( - 32 ) + + NULLIF ( + 33, - MAX ( DISTINCT - 2 ) + + 0 )
----
-19

query II rowsort
SELECT - 89 - + 66 AS col0, 59
----
-155
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL - - CASE + 2 WHEN - CASE - 7 WHEN + CASE 94 WHEN - 55 * COUNT( * ) THEN - 46 ELSE + CASE COUNT( * ) WHEN 29 THEN + MIN( - 51 ) WHEN NULLIF ( - COUNT( * ), 35 * 33 ) THEN - COUNT( DISTINCT - 37 ) WHEN 9 * - 38 THEN 60 END * 18 + 95 END + - 74 THEN NULL WHEN COALESCE ( ( + COUNT( * ) ), - 74 + + 2, + 13 * - 82 ) - - 96 * - COUNT( * ) THEN - COUNT( * ) END + ( AVG ( DISTINCT + 24 ) + - ( 84 ) ) THEN + 51 END + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - - CASE + 2 WHEN - CASE - 7 WHEN + CASE 94 WHEN - 55 * COUNT ( * ) THEN - 46 ELSE + CASE COUNT ( * ) WHEN 29 THEN + MIN ( - 51 ) WHEN NULLIF ( - COUNT ( * ), 35 * 33 ) THEN - COUNT ( DISTINCT - 37 ) WHEN 9 * - 38 THEN 60 END * 18 + 95 END + - 74 THEN NULL WHEN COALESCE ( ( + COUNT ( * ) ), - 74 + + 2, + 13 * - 82 ) - - 96 * - COUNT ( * ) THEN - COUNT ( * ) END + ( AVG ( DISTINCT + 24 ) + - ( 84 ) ) THEN + 51 END + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL NULLIF ( - 71, 28 ) * - - COUNT( * ) - MIN( DISTINCT 7 ) + 21
----
-57

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL NULLIF ( - 71, 28 ) * - - COUNT ( * ) - MIN ( DISTINCT 7 ) + 21
----
-57

query II rowsort
SELECT 49 * - 66 * 45 AS col0, 77
----
-145530
77

query I rowsort
SELECT DISTINCT - NULLIF ( - ( 44 ), + 15 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT + 76 * 36 + COALESCE ( - COUNT( * ), 7 * 54 )
----
2735

skipif mysql # not compatible
query I rowsort label-7767
SELECT + 76 * 36 + COALESCE ( - COUNT ( * ), 7 * 54 )
----
2735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT ALL + 99 - + 51 + 90 + 3 + + 72 * COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + 99 - + 51 + 90 + 3 + + 72 * COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7769
SELECT CAST( NULL AS DECIMAL ) * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT CAST ( NULL AS REAL ) * + 96
----
NULL

query I rowsort
SELECT 74 * - 91 AS col2
----
-6734

query I rowsort
SELECT ALL + 72 * 33 * 94 AS col1
----
223344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL CAST( NULL AS SIGNED ) - 24 + - COALESCE ( - 45, + 79 ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL CAST ( NULL AS INTEGER ) - 24 + - COALESCE ( - 45, + 79 ) * 9
----
NULL

query I rowsort
SELECT DISTINCT + 54 * - + 36 AS col1
----
-1944

query I rowsort
SELECT ALL - 0 * + COALESCE ( - - 6, - + 82 )
----
0

query I rowsort
SELECT 77 * - - 39 * 13 * 77
----
3006003

query I rowsort
SELECT ALL + 73 * 3 AS col1
----
219

query I rowsort
SELECT DISTINCT - 55 * 42 * - 88 * + + 76 AS col1
----
15449280

query I rowsort
SELECT ALL + 0 * + 43 AS col0
----
0

query I rowsort
SELECT 64 * + ( 96 ) AS col1
----
6144

query I rowsort
SELECT 99 + 94 + - + 58 AS col0
----
135

query I rowsort
SELECT DISTINCT - NULLIF ( - - 41, + 4 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT ALL - COUNT( * ) + + 11
----
10

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL - COUNT ( * ) + + 11
----
10

query I rowsort
SELECT ALL + - 97 + 89
----
-8

query I rowsort
SELECT 47 * + 44 - + 27 * 80
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT - 79 - - 86 + + NULLIF ( + 13, + AVG ( ALL 97 ) ) + COUNT( * ) * 85
----
105

skipif mysql # not compatible
query I rowsort label-7785
SELECT - 79 - - 86 + + NULLIF ( + 13, + AVG ( ALL 97 ) ) + COUNT ( * ) * 85
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT + - 55 + COUNT( * ) * MAX( 42 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT + - 55 + COUNT ( * ) * MAX ( 42 ) AS col2
----
-13

query I rowsort
SELECT DISTINCT 36 + + - 37 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL + COUNT( * ) + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + COUNT ( * ) + 13 AS col2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7789
SELECT ALL + CAST( 84 AS SIGNED ) * + 33 * - ( + 23 ) AS col2
----
-63756

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL + CAST ( 84 AS INTEGER ) * + 33 * - ( + 23 ) AS col2
----
-63756

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT - 37 DIV - 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT - 37 / - 49 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT ALL + ( CAST( + - 85 AS SIGNED ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL + ( CAST ( + - 85 AS INTEGER ) ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT - - CAST( 91 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-7792
SELECT - - CAST ( 91 AS INTEGER ) AS col1
----
91

query I rowsort
SELECT ALL 21 + + 92 + 52
----
165

query I rowsort
SELECT - 95 * - 96 col1
----
9120

query II rowsort
SELECT - 44 col1, 70 AS col1
----
-44
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7796
SELECT - 4 DIV - + 69 + + 36 DIV - ( - 32 ) + NULLIF ( + 21 - 52 * 61, + CASE - 10 WHEN CASE 30 WHEN + 60 THEN NULL ELSE + 98 END THEN + 91 ELSE NULL END DIV + 52 ) DIV 75 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-7796
SELECT - 4 / - + 69 + + 36 / - ( - 32 ) + NULLIF ( + 21 - 52 * 61, + CASE - 10 WHEN CASE 30 WHEN + 60 THEN NULL ELSE + 98 END THEN + 91 ELSE NULL END / + 52 ) / 75 AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 60 * - 89 AS col1
----
5340

query I rowsort
SELECT ALL - CASE + 90 WHEN 58 THEN NULL WHEN 78 THEN + 92 + 73 END - COALESCE ( 3, 60, + 82 * 79, 75 - 38 )
----
NULL

query II rowsort
SELECT ALL 78 AS col1, + 98
----
78
98

query I rowsort
SELECT DISTINCT 79 * 29
----
2291

query II rowsort
SELECT ALL 65 AS col0, + CASE - - 66 WHEN 54 THEN + 41 * + + 87 WHEN 97 - - ( + ( + 71 ) ) THEN NULL WHEN 10 THEN 6 END
----
65
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT ALL 61 DIV + + 66
----
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL 61 / + + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT 33 + + CASE - 79 WHEN - COUNT( * ) * + 7 + 24 THEN 97 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT 33 + + CASE - 79 WHEN - COUNT ( * ) * + 7 + 24 THEN 97 END AS col0
----
NULL

query II rowsort
SELECT 62, 99 AS col1
----
62
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7806
SELECT - 72, ( - 91 ) * SUM( - - 40 ) * - - COUNT( * ) + + 5 AS col0
----
-72
-3635

skipif mysql # not compatible
query II rowsort label-7806
SELECT - 72, ( - 91 ) * SUM ( - - 40 ) * - - COUNT ( * ) + + 5 AS col0
----
-72
-3635

query I rowsort
SELECT 84 * - - 70
----
5880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7808
SELECT 4 DIV - 57 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7808
SELECT 4 / - 57 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7809
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7810
SELECT CAST( COUNT( * ) AS SIGNED ) + - - 71 + + 51 + - 18
----
105

skipif mysql # not compatible
query I rowsort label-7810
SELECT CAST ( COUNT ( * ) AS INTEGER ) + - - 71 + + 51 + - 18
----
105

query I rowsort
SELECT DISTINCT 54 * - 83 AS col2
----
-4482

query I rowsort
SELECT + 96 * 57 * - 95 * - 65 - - + 99
----
33789699

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) + - 68
----
-1
-67

skipif mysql # not compatible
query II rowsort label-7813
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) + - 68
----
-1
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7814
SELECT CAST( + CAST( - CAST( - MIN( DISTINCT - 26 ) AS SIGNED ) AS SIGNED ) AS SIGNED ) DIV - + 19
----
1

skipif mysql # not compatible
query I rowsort label-7814
SELECT CAST ( + CAST ( - CAST ( - MIN ( DISTINCT - 26 ) AS INTEGER ) AS INTEGER ) AS INTEGER ) / - + 19
----
1

query I rowsort
SELECT 3 + - 88
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT MIN( DISTINCT + 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7816
SELECT MIN ( DISTINCT + 58 ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7817
SELECT ALL CAST( + + 16 AS SIGNED ) * - 95 * + + 58 * + 76 + + + 41
----
-6700119

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL CAST ( + + 16 AS INTEGER ) * - 95 * + + 58 * + 76 + + + 41
----
-6700119

onlyif mysql # aggregate syntax: 
query II rowsort label-7818
SELECT ALL + + 2, 81 * + - 79 * + 13 * - 46 + - COUNT( * ) col1
----
2
3826601

skipif mysql # not compatible
query II rowsort label-7818
SELECT ALL + + 2, 81 * + - 79 * + 13 * - 46 + - COUNT ( * ) col1
----
2
3826601

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT - - COALESCE ( - 64, - COUNT( * ) * + 16 ) * - ( + 60 ) - + 18 AS col1
----
3822

skipif mysql # not compatible
query I rowsort label-7819
SELECT - - COALESCE ( - 64, - COUNT ( * ) * + 16 ) * - ( + 60 ) - + 18 AS col1
----
3822

query I rowsort
SELECT ALL - + 82 * + - 36
----
2952

query I rowsort
SELECT DISTINCT + + 19 * + 78 * + 56
----
82992

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT - NULLIF ( COUNT( * ), + - 81 ) * 72
----
-72

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT - NULLIF ( COUNT ( * ), + - 81 ) * 72
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT - COUNT( * ) * + 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7823
SELECT - COUNT ( * ) * + 98 AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7824
SELECT DISTINCT + + 27 * + CAST( + 58 AS SIGNED ) + - 70 - - ( + 49 )
----
1545

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + + 27 * + CAST ( + 58 AS INTEGER ) + - 70 - - ( + 49 )
----
1545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT - + CASE + - 9 WHEN - 34 THEN - CASE - 33 WHEN - + 50 * SUM( ( - 50 ) ) - 18 THEN 62 WHEN 17 THEN 56 ELSE 72 - 7 END ELSE COUNT( ALL 7 ) + + 24 DIV + 26 END + - 86 DIV + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-7825
SELECT - + CASE + - 9 WHEN - 34 THEN - CASE - 33 WHEN - + 50 * SUM ( ( - 50 ) ) - 18 THEN 62 WHEN 17 THEN 56 ELSE 72 - 7 END ELSE COUNT ( ALL 7 ) + + 24 / + 26 END + - 86 / + COUNT ( * ) AS col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT - - 11 + - - 76 DIV - MIN( DISTINCT - 49 ) + - 60 + ( 52 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7826
SELECT - - 11 + - - 76 / - MIN ( DISTINCT - 49 ) + - 60 + ( 52 ) AS col2
----
4

query II rowsort
SELECT - 93 * - + 57 AS col0, 25 AS col1
----
5301
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7828
SELECT DISTINCT + 85 AS col2, 95 * + + CAST( NULL AS SIGNED ) * COALESCE ( - - 16, + 27 )
----
85
NULL

skipif mysql # not compatible
query II rowsort label-7828
SELECT DISTINCT + 85 AS col2, 95 * + + CAST ( NULL AS INTEGER ) * COALESCE ( - - 16, + 27 )
----
85
NULL

query I rowsort
SELECT - - 61 + - 16 AS col0
----
45

query II rowsort
SELECT ALL 45 AS col2, + 26
----
45
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7831
SELECT - 24 + 87 * 24 * - COUNT( * ) AS col2, + 43
----
-2112
43

skipif mysql # not compatible
query II rowsort label-7831
SELECT - 24 + 87 * 24 * - COUNT ( * ) AS col2, + 43
----
-2112
43

query II rowsort
SELECT DISTINCT 68 AS col2, 20
----
68
20

query I rowsort
SELECT ALL - 64 - + 73 * - - 91 * - + 32 col2
----
212512

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT - - 82 AS col1, - COUNT( * )
----
82
-1

skipif mysql # not compatible
query II rowsort label-7834
SELECT - - 82 AS col1, - COUNT ( * )
----
82
-1

query I rowsort
SELECT + 51 + + + 0 AS col0
----
51

query II rowsort
SELECT - 44 * 81 col1, 38
----
-3564
38

query I rowsort
SELECT + 50 + 18 + - + 4 col1
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-7838
SELECT + 67 DIV + - 92 AS col0, 55
----
0
55

skipif mysql # not compatible
query II rowsort label-7838
SELECT + 67 / + - 92 AS col0, 55
----
0
55

query I rowsort
SELECT - COALESCE ( 68, COALESCE ( 51, 32 ) + + + 35 ) + + 85
----
17

query I rowsort
SELECT DISTINCT + 27 * - 68
----
-1836

query I rowsort
SELECT ALL - 72 * - 63 AS col2
----
4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7842
SELECT DISTINCT 43 + + - CAST( COUNT( * ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT 43 + + - CAST ( COUNT ( * ) AS INTEGER )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7843
SELECT + CAST( NULL AS SIGNED ) + + 19 AS col0, + 8 * - 17 * 12 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7843
SELECT + CAST ( NULL AS INTEGER ) + + 19 AS col0, + 8 * - 17 * 12 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT ALL + 53 DIV 98 + + + 14 + + 59
----
73

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL + 53 / 98 + + + 14 + + 59
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + SUM( - + 16 ) + - 23 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7845
SELECT + SUM ( - + 16 ) + - 23 AS col0
----
-39

query I rowsort
SELECT - ( 34 ) * 22 * - 5 AS col2
----
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - 29 * - 51 + - - 40 + COUNT( 52 ) * + + SUM( ALL - + 93 ) * 84 * - 97
----
759283

skipif mysql # not compatible
query I rowsort label-7847
SELECT - 29 * - 51 + - - 40 + COUNT ( 52 ) * + + SUM ( ALL - + 93 ) * 84 * - 97
----
759283

query II rowsort
SELECT ( + 24 ), 35 AS col1
----
24
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7849
SELECT ALL 35 * ( + + 89 ) DIV + 66 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL 35 * ( + + 89 ) / + 66 AS col1
----
47

query I rowsort
SELECT ( NULLIF ( - 92, - 61 ) ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT COUNT( * ) * + - 10 + 4
----
-6

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT COUNT ( * ) * + - 10 + 4
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7852
SELECT + ( + NULLIF ( - SUM( DISTINCT - 40 ), CAST( - 1 AS SIGNED ) * - 55 - CAST( CAST( NULL AS SIGNED ) - 83 AS SIGNED ) ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7852
SELECT + ( + NULLIF ( - SUM ( DISTINCT - 40 ), CAST ( - 1 AS INTEGER ) * - 55 - CAST ( CAST ( NULL AS INTEGER ) - 83 AS INTEGER ) ) ) AS col2
----
40

query I rowsort
SELECT ALL + COALESCE ( - 89, + 85 ) * 91 + - 38
----
-8137

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT ALL CASE - AVG ( DISTINCT - 38 ) WHEN + ( - 58 ) * - 33 THEN + 33 / + 89 + - 27 END * + ( + COUNT( * ) + NULLIF ( - COUNT( * ), 30 / 94 + ( 47 ) ) * 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL CASE - AVG ( DISTINCT - 38 ) WHEN + ( - 58 ) * - 33 THEN + 33 / + 89 + - 27 END * + ( + COUNT ( * ) + NULLIF ( - COUNT ( * ), 30 / 94 + ( 47 ) ) * 30 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT + 67 * 83 - + ( - + 61 ) + 39 DIV + + 39
----
5623

skipif mysql # not compatible
query I rowsort label-7855
SELECT + 67 * 83 - + ( - + 61 ) + 39 / + + 39
----
5623

query I rowsort
SELECT - + 1 + 51
----
50

query I rowsort
SELECT DISTINCT + + 29 * 68 - 63
----
1909

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT + + 31 * - 11 * - - COUNT( * ) + 6
----
-335

skipif mysql # not compatible
query I rowsort label-7858
SELECT + + 31 * - 11 * - - COUNT ( * ) + 6
----
-335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7859
SELECT ALL - + CASE COUNT( * ) WHEN - 61 THEN NULL ELSE + 84 END * + - NULLIF ( 78, COALESCE ( - 9, + 71 * - 39 ) + + COUNT( * ) ) * SUM( 1 DIV + 3 ) - - COALESCE ( + CASE 54 WHEN + 85 THEN 99 * - COUNT( * ) + 28 ELSE NULL END, 36 * - 60 - CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) )
----
-2161

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL - + CASE COUNT ( * ) WHEN - 61 THEN NULL ELSE + 84 END * + - NULLIF ( 78, COALESCE ( - 9, + 71 * - 39 ) + + COUNT ( * ) ) * SUM ( 1 / + 3 ) - - COALESCE ( + CASE 54 WHEN + 85 THEN 99 * - COUNT ( * ) + 28 ELSE NULL END, 36 * - 60 - CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) )
----
-2161

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL - 71 * + COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL - 71 * + COUNT ( * ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7861
SELECT ALL + - COUNT( * ) * + + MIN( - CAST( + 32 AS SIGNED ) ) - 91
----
-59

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL + - COUNT ( * ) * + + MIN ( - CAST ( + 32 AS INTEGER ) ) - 91
----
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7862
SELECT DISTINCT - - 12 * CAST( - 51 AS SIGNED ) AS col2, + 44 DIV 19 col1, + 85 * - - 97 AS col0
----
-612
2
8245

skipif mysql # not compatible
query III rowsort label-7862
SELECT DISTINCT - - 12 * CAST ( - 51 AS INTEGER ) AS col2, + 44 / 19 col1, + 85 * - - 97 AS col0
----
-612
2
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL + 79 * ( - - SUM( DISTINCT 38 ) ) AS col2
----
3002

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL + 79 * ( - - SUM ( DISTINCT 38 ) ) AS col2
----
3002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT - 13 DIV SUM( ALL - - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-7864
SELECT - 13 / SUM ( ALL - - 11 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7865
SELECT ALL - COALESCE ( 44, - 72 ) * NULLIF ( + + CASE 46 WHEN 15 * COUNT( * ) + + CAST( NULL AS SIGNED ) * + ( 93 ) THEN NULL ELSE ( + 57 ) END, 33 ) * 46 + - 43
----
-115411

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - COALESCE ( 44, - 72 ) * NULLIF ( + + CASE 46 WHEN 15 * COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + ( 93 ) THEN NULL ELSE ( + 57 ) END, 33 ) * 46 + - 43
----
-115411

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT - NULLIF ( COALESCE ( + 67, CASE + 69 WHEN + 50 THEN NULL ELSE + COUNT( * ) END ), - ( 80 ) ) * - 22
----
1474

skipif mysql # not compatible
query I rowsort label-7866
SELECT - NULLIF ( COALESCE ( + 67, CASE + 69 WHEN + 50 THEN NULL ELSE + COUNT ( * ) END ), - ( 80 ) ) * - 22
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL - - MIN( - 10 ) * + 56 + 7
----
-553

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL - - MIN ( - 10 ) * + 56 + 7
----
-553

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - - ( - 65 ) - - + 46 * - MIN( DISTINCT ( 66 ) ) * - + 68 - + 18 + NULLIF ( 82 + - 7, + 76 )
----
206440

skipif mysql # not compatible
query I rowsort label-7868
SELECT - - ( - 65 ) - - + 46 * - MIN ( DISTINCT ( 66 ) ) * - + 68 - + 18 + NULLIF ( 82 + - 7, + 76 )
----
206440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7869
SELECT ALL - ( + + COUNT( * ) ), - 99 * - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 38 col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7869
SELECT ALL - ( + + COUNT ( * ) ), - 99 * - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 38 col2
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT CAST( 91 AS SIGNED ) col2
----
91

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT CAST ( 91 AS INTEGER ) col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT ALL 2 + + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL 2 + + - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7872
SELECT - COUNT( * ) AS col1, - 19
----
-1
-19

skipif mysql # not compatible
query II rowsort label-7872
SELECT - COUNT ( * ) AS col1, - 19
----
-1
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - COUNT( DISTINCT 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-7873
SELECT - COUNT ( DISTINCT 46 )
----
-1

query I rowsort
SELECT ALL + 14 + - 62 AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT - CASE + ( 37 ) WHEN + 82 THEN NULL ELSE 90 END + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT - CASE + ( 37 ) WHEN + 82 THEN NULL ELSE 90 END + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 50 * 46
----
-2300

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT 67 + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7877
SELECT 67 + COUNT ( * )
----
68

query I rowsort
SELECT ALL - 41 + 22 + - 21 * - 13 AS col2
----
254

query II rowsort
SELECT - 40, 59 AS col1
----
-40
59

query I rowsort
SELECT ALL + 78 + - + 81 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT MIN( + - 45 ) + 71 * 31
----
2156

skipif mysql # not compatible
query I rowsort label-7881
SELECT MIN ( + - 45 ) + 71 * 31
----
2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7882
SELECT DISTINCT + 96 + - AVG ( + 7 ) + + 20 * 3 * - 11 + - - 93 + + 63 * - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + 96 + - AVG ( + 7 ) + + 20 * 3 * - 11 + - - 93 + + 63 * - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7883
SELECT ALL - 67 AS col0, COUNT( * ) * + 80
----
-67
80

skipif mysql # not compatible
query II rowsort label-7883
SELECT ALL - 67 AS col0, COUNT ( * ) * + 80
----
-67
80

query I rowsort
SELECT 2 + 27 AS col0
----
29

query I rowsort
SELECT ALL - 79 + - - 50 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT DISTINCT - COALESCE ( COUNT( * ), - + 41 * + - 17 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7886
SELECT DISTINCT - COALESCE ( COUNT ( * ), - + 41 * + - 17 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7887
SELECT - COUNT( * ) * + 65 + + 79 DIV + 76 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7887
SELECT - COUNT ( * ) * + 65 + + 79 / + 76 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT COUNT( * ) * - + 67 * + 51 * + - 57 * + - 76 AS col2
----
-14802444

skipif mysql # not compatible
query I rowsort label-7888
SELECT COUNT ( * ) * - + 67 * + 51 * + - 57 * + - 76 AS col2
----
-14802444

query II rowsort
SELECT ALL - ( - ( 92 ) ) AS col2, - 5 AS col0
----
92
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7890
SELECT 94 + CAST( + COUNT( * ) AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-7890
SELECT 94 + CAST ( + COUNT ( * ) AS INTEGER )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7891
SELECT - COUNT( * ) DIV + COUNT( * ) + - 65 - - - COUNT( * ) * + COALESCE ( + 32, - 61 ) - + - 64 * 99 AS col2
----
6238

skipif mysql # not compatible
query I rowsort label-7891
SELECT - COUNT ( * ) / + COUNT ( * ) + - 65 - - - COUNT ( * ) * + COALESCE ( + 32, - 61 ) - + - 64 * 99 AS col2
----
6238

onlyif mysql # DIV for integer division: 
query I rowsort label-7892
SELECT DISTINCT 55 DIV - + 63
----
0

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT 55 / - + 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7893
SELECT 84 + - - 38 DIV - + 2 + - COALESCE ( - ( ( + COUNT( ALL CAST( 38 AS SIGNED ) ) ) ), 26 DIV COALESCE ( - 38, - COUNT( * ), 92 ) ) + + 56 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-7893
SELECT 84 + - - 38 / - + 2 + - COALESCE ( - ( ( + COUNT ( ALL CAST ( 38 AS INTEGER ) ) ) ), 26 / COALESCE ( - 38, - COUNT ( * ), 92 ) ) + + 56 AS col0
----
122

query I rowsort
SELECT ALL - 66 - - - 41 + 59 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT MAX( ALL + 17 ) * 37, COUNT( * ) AS col0
----
629
1

skipif mysql # not compatible
query II rowsort label-7895
SELECT MAX ( ALL + 17 ) * 37, COUNT ( * ) AS col0
----
629
1

query I rowsort
SELECT + - ( - 51 ) AS col0
----
51

query I rowsort
SELECT 61 * 68
----
4148

query I rowsort
SELECT ALL 87 * - 25
----
-2175

onlyif mysql # DIV for integer division: 
query II rowsort label-7899
SELECT + + 48 AS col2, + 32 + COALESCE ( + - 18, + 75 * 54 * - - 51 * + 44 * + 48 + - 20 DIV + 70 ) - 27
----
48
-13

skipif mysql # not compatible
query II rowsort label-7899
SELECT + + 48 AS col2, + 32 + COALESCE ( + - 18, + 75 * 54 * - - 51 * + 44 * + 48 + - 20 / + 70 ) - 27
----
48
-13

query II rowsort
SELECT + 85 col0, + 19 + + - 58 AS col2
----
85
-39

query I rowsort
SELECT ALL 44 * 50 + + 29 col1
----
2229

query II rowsort
SELECT DISTINCT - + 49 AS col0, 54 AS col1
----
-49
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT + COUNT( ALL - - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-7903
SELECT + COUNT ( ALL - - 70 )
----
1

query I rowsort
SELECT - - 52 * - 5 + ( + 81 )
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT COUNT( * ) * + - 10
----
-10

skipif mysql # not compatible
query I rowsort label-7905
SELECT COUNT ( * ) * + - 10
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT ( - 68 ) * CAST( + 32 AS SIGNED ) AS col1
----
-2176

skipif mysql # not compatible
query I rowsort label-7906
SELECT ( - 68 ) * CAST ( + 32 AS INTEGER ) AS col1
----
-2176

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - SUM( + ( 73 ) ) + + 84 * - + 49 * 20 AS col1
----
-82393

skipif mysql # not compatible
query I rowsort label-7907
SELECT - SUM ( + ( 73 ) ) + + 84 * - + 49 * 20 AS col1
----
-82393

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT ALL + + 43 DIV 38 * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL + + 43 / 38 * - 52
----
-52

query I rowsort
SELECT 68 + - 16 + - + 73 col0
----
-21

query I rowsort
SELECT ALL - 72 + + 49 * 91
----
4387

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7911
SELECT 84 + - + CASE - 43 WHEN CAST( - 24 AS DECIMAL ) + + COUNT( * ) - + - COUNT( * ) THEN NULL WHEN NULLIF ( + AVG ( 63 ), 95 ) THEN NULL ELSE 94 END
----
-10

skipif mysql # not compatible
query I rowsort label-7911
SELECT 84 + - + CASE - 43 WHEN CAST ( - 24 AS REAL ) + + COUNT ( * ) - + - COUNT ( * ) THEN NULL WHEN NULLIF ( + AVG ( 63 ), 95 ) THEN NULL ELSE 94 END
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT ALL 72 + + COALESCE ( 2, - 70 ) + + CAST( 8 AS SIGNED ) * + + 91 + + 89 * - 60 + - 78 * - 55 AS col2
----
-248

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL 72 + + COALESCE ( 2, - 70 ) + + CAST ( 8 AS INTEGER ) * + + 91 + + 89 * - 60 + - 78 * - 55 AS col2
----
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT 93 + + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-7913
SELECT 93 + + + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT 3 + - + MAX( ALL + 20 )
----
-17

skipif mysql # not compatible
query I rowsort label-7914
SELECT 3 + - + MAX ( ALL + 20 )
----
-17

query I rowsort
SELECT ALL + 10 + + + 13 * - 82
----
-1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT CAST( + 4 AS SIGNED ) * - - 32 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-7916
SELECT CAST ( + 4 AS INTEGER ) * - - 32 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT 12 + + + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-7917
SELECT 12 + + + COUNT ( * ) AS col1
----
13

query I rowsort
SELECT DISTINCT 71 + + 61 * - 69 col0
----
-4138

onlyif mysql # aggregate syntax: 
query II rowsort label-7919
SELECT ALL 30 + + 64 AS col0, 54 + COUNT( * )
----
94
55

skipif mysql # not compatible
query II rowsort label-7919
SELECT ALL 30 + + 64 AS col0, 54 + COUNT ( * )
----
94
55

query I rowsort
SELECT ALL - 10 + + 90
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT ALL - CAST( NULL AS SIGNED ) - + + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - CAST ( NULL AS INTEGER ) - + + 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT + MAX( ALL 80 ) * - 9 AS col0
----
-720

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT + MAX ( ALL 80 ) * - 9 AS col0
----
-720

query II rowsort
SELECT 98 * + + 51 AS col0, 27 AS col1
----
4998
27

query I rowsort
SELECT DISTINCT + 37 * 61 * + 47
----
106079

onlyif mysql # DIV for integer division: 
query I rowsort label-7925
SELECT 86 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-7925
SELECT 86 / + 45
----
1

query I rowsort
SELECT 29 * 38 * + - 61
----
-67222

query I rowsort
SELECT ALL + + 70 * + + 49 AS col1
----
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT DISTINCT + 93 * + MIN( ALL + 34 )
----
3162

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT + 93 * + MIN ( ALL + 34 )
----
3162

query I rowsort
SELECT ALL - 34 - + + 65 * 45
----
-2959

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL - COUNT( DISTINCT + 2 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL - COUNT ( DISTINCT + 2 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7931
SELECT DISTINCT 16 DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT 16 / - 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT + CASE + 86 WHEN - - SUM( ALL + NULLIF ( - 9, + 85 ) ) * + - 33 THEN NULL WHEN + 95 * + - 50 - - 96 - + 27 THEN NULL WHEN + 54 - 60 THEN NULL ELSE + 0 * 91 END * COUNT( * ) + + 52 * 55
----
2860

skipif mysql # not compatible
query I rowsort label-7932
SELECT + CASE + 86 WHEN - - SUM ( ALL + NULLIF ( - 9, + 85 ) ) * + - 33 THEN NULL WHEN + 95 * + - 50 - - 96 - + 27 THEN NULL WHEN + 54 - 60 THEN NULL ELSE + 0 * 91 END * COUNT ( * ) + + 52 * 55
----
2860

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT 88 DIV 41 - 96 + 57 - + - 25 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-7933
SELECT 88 / 41 - 96 + 57 - + - 25 AS col0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7934
SELECT - 4 + + 65 DIV + + 49 + - 50, - COUNT( * ) * 81 * - 22 AS col0
----
-53
1782

skipif mysql # not compatible
query II rowsort label-7934
SELECT - 4 + + 65 / + + 49 + - 50, - COUNT ( * ) * 81 * - 22 AS col0
----
-53
1782

query I rowsort
SELECT ALL - + CASE - 96 WHEN - 80 * - NULLIF ( + 14, + 61 ) / - 44 + + 58 + + 21 * + CASE 85 * 97 WHEN 9 THEN 10 WHEN - 10 * - 46 THEN NULL ELSE NULL END + 65 * 45 THEN NULL WHEN - 77 THEN - 82 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT DISTINCT + 60 DIV - COALESCE ( - 40, + + 36, 44 ) + - 75 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT + 60 / - COALESCE ( - 40, + + 36, 44 ) + - 75 AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7937
SELECT - 61 - + 22 AS col2, 72 DIV - NULLIF ( - - 32, + MIN( ALL - 39 ) * + - ( + + ( + SUM( ALL + 98 ) ) ) - - 98 ) col0
----
-83
-2

skipif mysql # not compatible
query II rowsort label-7937
SELECT - 61 - + 22 AS col2, 72 / - NULLIF ( - - 32, + MIN ( ALL - 39 ) * + - ( + + ( + SUM ( ALL + 98 ) ) ) - - 98 ) col0
----
-83
-2

query I rowsort
SELECT 27 - - + 18 * + 4
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT CASE - 91 WHEN COUNT( * ) * CASE - 60 WHEN + - 95 THEN + - 20 * COUNT( * ) WHEN - COUNT( * ) THEN 22 END + + 60 THEN NULL WHEN - CAST( NULL AS SIGNED ) / - MAX( DISTINCT 13 ) THEN 84 END * + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT CASE - 91 WHEN COUNT ( * ) * CASE - 60 WHEN + - 95 THEN + - 20 * COUNT ( * ) WHEN - COUNT ( * ) THEN 22 END + + 60 THEN NULL WHEN - CAST ( NULL AS INTEGER ) / - MAX ( DISTINCT 13 ) THEN 84 END * + 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7940
SELECT ALL - 36 + - COUNT( * ) DIV 79
----
-36

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - 36 + - COUNT ( * ) / 79
----
-36

query II rowsort
SELECT ALL 12, 59 col0
----
12
59

query I rowsort
SELECT ALL 97 + - 44 + - 67 + - 74 AS col2
----
-88

query II rowsort
SELECT 79 col2, 29 AS col0
----
79
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT SUM( 44 ) * + 87 col0
----
3828

skipif mysql # not compatible
query I rowsort label-7944
SELECT SUM ( 44 ) * + 87 col0
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT + ( 12 ) * + - COUNT( ALL 89 ) - + 81
----
-93

skipif mysql # not compatible
query I rowsort label-7945
SELECT + ( 12 ) * + - COUNT ( ALL 89 ) - + 81
----
-93

query I rowsort
SELECT ALL 90 + + 8 col0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-7947
SELECT - COUNT( * ) AS col2, 88
----
-1
88

skipif mysql # not compatible
query II rowsort label-7947
SELECT - COUNT ( * ) AS col2, 88
----
-1
88

query I rowsort
SELECT + 72 - + 61
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT - SUM( 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-7949
SELECT - SUM ( 48 )
----
-48

query I rowsort
SELECT + ( - - 64 ) * - 26
----
-1664

query I rowsort
SELECT - 54 * 58
----
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL + 78 - - CASE 21 WHEN + 84 * + 76 + 99 THEN + - AVG ( DISTINCT + 6 ) + + + 11 + - 43 WHEN - 81 THEN NULL WHEN + 27 THEN - 51 ELSE NULL END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL + 78 - - CASE 21 WHEN + 84 * + 76 + 99 THEN + - AVG ( DISTINCT + 6 ) + + + 11 + - 43 WHEN - 81 THEN NULL WHEN + 27 THEN - 51 ELSE NULL END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7953
SELECT DISTINCT COUNT( * ) DIV 27 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT COUNT ( * ) / 27 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7954
SELECT - 95 - - ( - 50 ) DIV - 6 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-7954
SELECT - 95 - - ( - 50 ) / - 6 AS col2
----
-87

query I rowsort
SELECT ALL 77 - 57
----
20

query I rowsort
SELECT + 82 * - 26 * + - 10 * - + 44 AS col2
----
-938080

query I rowsort
SELECT + 59 * - 33 AS col1
----
-1947

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT DISTINCT SUM( ALL + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT SUM ( ALL + 20 )
----
20

query I rowsort
SELECT + 16 + - 37 col2
----
-21

query I rowsort
SELECT - 30 + ( + 21 ) + + + 14 * 0 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT + - NULLIF ( COUNT( * ), ( + - 3 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT + - NULLIF ( COUNT ( * ), ( + - 3 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT 94 * - - 2 + - 57 * - CASE - - 70 WHEN 9 - - - CAST( - 55 AS SIGNED ) THEN - 18 + - 66 - + 23 * - 70 * 70 WHEN AVG ( ALL + 43 ) THEN 87 + + CAST( NULL AS SIGNED ) ELSE 27 END + + ( 77 + + COUNT( * ) )
----
1805

skipif mysql # not compatible
query I rowsort label-7962
SELECT 94 * - - 2 + - 57 * - CASE - - 70 WHEN 9 - - - CAST ( - 55 AS INTEGER ) THEN - 18 + - 66 - + 23 * - 70 * 70 WHEN AVG ( ALL + 43 ) THEN 87 + + CAST ( NULL AS INTEGER ) ELSE 27 END + + ( 77 + + COUNT ( * ) )
----
1805

query I rowsort
SELECT + 5 * - 10 * + 60
----
-3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT COALESCE ( + 28, + 4 ) / CAST( NULL AS SIGNED ) + + 73 + - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT COALESCE ( + 28, + 4 ) / CAST ( NULL AS INTEGER ) + + 73 + - 62
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT COALESCE ( + - CAST( - 69 AS SIGNED ), 4 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7965
SELECT COALESCE ( + - CAST ( - 69 AS INTEGER ), 4 ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT - 93 + + + 4 - 96 + - 91 * + 4 * + 48 * + COUNT( * ) AS col2
----
-17657

skipif mysql # not compatible
query I rowsort label-7966
SELECT - 93 + + + 4 - 96 + - 91 * + 4 * + 48 * + COUNT ( * ) AS col2
----
-17657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT - 2 / - 78 * - - NULLIF ( + ( + - CAST( NULL AS SIGNED ) ), + 50 ) + + + 67 - + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT - 2 / - 78 * - - NULLIF ( + ( + - CAST ( NULL AS INTEGER ) ), + 50 ) + + + 67 - + - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT - MAX( DISTINCT + 2 ) * 4 * + ( + 77 ) + COUNT( * ) DIV + - ( 94 )
----
-616

skipif mysql # not compatible
query I rowsort label-7968
SELECT - MAX ( DISTINCT + 2 ) * 4 * + ( + 77 ) + COUNT ( * ) / + - ( 94 )
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL + + MIN( ALL - 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + + MIN ( ALL - 80 ) AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7970
SELECT ALL - CAST( - + 84 AS SIGNED ) * - COUNT( * ) - - 30 + - 59 + + - 52 + 31
----
-134

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL - CAST ( - + 84 AS INTEGER ) * - COUNT ( * ) - - 30 + - 59 + + - 52 + 31
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7971
SELECT DISTINCT 50 * + 65 + + COUNT( * ) DIV - 70 AS col0
----
3250

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT 50 * + 65 + + COUNT ( * ) / - 70 AS col0
----
3250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7972
SELECT DISTINCT 9 * + 65 * - - 39 + - - 0 - 24 - - CAST( 73 AS SIGNED ) + - NULLIF ( - COUNT( * ), + + 55 DIV + 75 + - 82 DIV + 59 ) + + 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT 9 * + 65 * - - 39 + - - 0 - 24 - - CAST ( 73 AS INTEGER ) + - NULLIF ( - COUNT ( * ), + + 55 / + 75 + - 82 / + 59 ) + + 73 AS col1
----
NULL

query I rowsort
SELECT - 67 * + - 65
----
4355

query I rowsort
SELECT CASE + 97 WHEN + - 61 + - 29 - + - 37 THEN + 63 * - - 1 END * + 23 + - - 41 + - ( - + ( - 50 ) ) + - 65 * 97 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT ALL + ( ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL + ( ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT - 31 * - COALESCE ( + 48, - NULLIF ( + 48, - - 7 / + 94 ) ) * - - 6
----
8928

query I rowsort
SELECT ALL 43 * + + 56
----
2408

query I rowsort
SELECT 10 * - + 17 - + 17
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL NULLIF ( + - COUNT( * ), + + COUNT( * ) ) * - 53
----
53

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL NULLIF ( + - COUNT ( * ), + + COUNT ( * ) ) * - 53
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7980
SELECT - CAST( NULL AS DECIMAL ) + - + COUNT( * ) + - ( 35 ) * - - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT - CAST ( NULL AS REAL ) + - + COUNT ( * ) + - ( 35 ) * - - 43
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 44, 92 ) - 65 AS col1
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT DISTINCT CAST( 71 AS SIGNED ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT CAST ( 71 AS INTEGER ) AS col0
----
71

query I rowsort
SELECT ALL 13 - + 22
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7984
SELECT - NULLIF ( - 72, - - 40 + - + 90 + 23 + + + 58 + CAST( NULL AS SIGNED ) * + MIN( ALL - 64 ) * 46 + - 24 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7984
SELECT - NULLIF ( - 72, - - 40 + - + 90 + 23 + + + 58 + CAST ( NULL AS INTEGER ) * + MIN ( ALL - 64 ) * 46 + - 24 ) AS col2
----
72

query I rowsort
SELECT + 95 + + + 53
----
148

query I rowsort
SELECT + 71 + NULLIF ( - 90, - 73 - 87 )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7987
SELECT ALL MIN( + NULLIF ( - - 41, - - CAST( - + 44 AS SIGNED ) ) ) - + CAST( + CASE 91 WHEN - 76 THEN - 95 END AS DECIMAL ) * + - 82 + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL MIN ( + NULLIF ( - - 41, - - CAST ( - + 44 AS INTEGER ) ) ) - + CAST ( + CASE 91 WHEN - 76 THEN - 95 END AS REAL ) * + - 82 + + 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7988
SELECT + 41 * - - ( - 56 ) * 82 DIV + + 90 DIV + - COUNT( DISTINCT - - 29 ) + 50 + + 85 AS col2
----
2226

skipif mysql # not compatible
query I rowsort label-7988
SELECT + 41 * - - ( - 56 ) * 82 / + + 90 / + - COUNT ( DISTINCT - - 29 ) + 50 + + 85 AS col2
----
2226

query I rowsort
SELECT + 47 + + + 2 col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT + 65 * COUNT( * ) col2
----
65

skipif mysql # not compatible
query I rowsort label-7990
SELECT + 65 * COUNT ( * ) col2
----
65

query II rowsort
SELECT DISTINCT 4 col2, 11 - - - 57 AS col0
----
4
-46

query II rowsort
SELECT ALL 55 AS col1, 36 AS col1
----
55
36

query II rowsort
SELECT 64 AS col2, ( + 44 ) * - 4 - - - ( - + 59 ) * + 26 AS col1
----
64
1358

onlyif mysql # aggregate syntax: 
query II rowsort label-7994
SELECT - 19 AS col0, 24 + + COUNT( * ) * - - 68 AS col2
----
-19
92

skipif mysql # not compatible
query II rowsort label-7994
SELECT - 19 AS col0, 24 + + COUNT ( * ) * - - 68 AS col2
----
-19
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7995
SELECT + 23 DIV + + 1
----
23

skipif mysql # not compatible
query I rowsort label-7995
SELECT + 23 / + + 1
----
23

query I rowsort
SELECT DISTINCT - 54 * - 66 + - NULLIF ( + 25, - 52 + 20 - - - 48 )
----
3539

query I rowsort
SELECT + - 49 * 20 + - 28 + - 13
----
-1021

query I rowsort
SELECT ALL - 43 + - 80 AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT DISTINCT COUNT( * ) * + - 65 col0
----
-65

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT COUNT ( * ) * + - 65 col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT + 7 DIV + + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT + 7 / + + 94 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT - CASE - - CAST( - 27 AS SIGNED ) WHEN - + SUM( DISTINCT - COALESCE ( + 36, - 5 / - CAST( NULL AS SIGNED ) ) ) * + - 70 THEN NULL WHEN + ( 11 ) / + 30 + + 36 * 36 THEN NULL ELSE ( - CASE + 12 WHEN COUNT( * ) * 47 THEN 35 WHEN + COUNT( * ) + + 68 THEN NULL END ) END * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT - CASE - - CAST ( - 27 AS INTEGER ) WHEN - + SUM ( DISTINCT - COALESCE ( + 36, - 5 / - CAST ( NULL AS INTEGER ) ) ) * + - 70 THEN NULL WHEN + ( 11 ) / + 30 + + 36 * 36 THEN NULL ELSE ( - CASE + 12 WHEN COUNT ( * ) * 47 THEN 35 WHEN + COUNT ( * ) + + 68 THEN NULL END ) END * - 46
----
NULL

query I rowsort
SELECT + CASE - 97 WHEN - 77 THEN 16 + - 59 + 7 END
----
NULL

query I rowsort
SELECT + - ( - 78 )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT ALL + 61 DIV - COUNT( * ) + 37
----
-24

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + 61 / - COUNT ( * ) + 37
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT ALL + 25 DIV 75 * + + 2 + - 81
----
-81

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL + 25 / 75 * + + 2 + - 81
----
-81

query I rowsort
SELECT ALL - 91 * - ( - 8 ) col1
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT + COUNT( * ) + + 48 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8007
SELECT + COUNT ( * ) + + 48 AS col0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8008
SELECT + + CASE - 25 WHEN 83 DIV + NULLIF ( - 89, + COUNT( 11 ) + 3 ) THEN NULL ELSE - 76 END AS col2, SUM( ALL - 78 ) DIV 70
----
-76
-1

skipif mysql # not compatible
query II rowsort label-8008
SELECT + + CASE - 25 WHEN 83 / + NULLIF ( - 89, + COUNT ( 11 ) + 3 ) THEN NULL ELSE - 76 END AS col2, SUM ( ALL - 78 ) / 70
----
-76
-1

query II rowsort
SELECT - 10 AS col0, 95
----
-10
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT ALL 19 DIV + 16 + + + 79
----
80

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL 19 / + 16 + + + 79
----
80

query II rowsort
SELECT + + 41 AS col2, 64
----
41
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT ALL 23 DIV - - ( + 14 ) + - - 84 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL 23 / - - ( + 14 ) + - - 84 AS col2
----
85

query I rowsort
SELECT DISTINCT - 8 + 15 + - + 28 AS col0
----
-21

query II rowsort
SELECT + 33 AS col1, 85
----
33
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8015
SELECT + COUNT( * ) DIV 77 + 68 * + CASE 80 WHEN + 86 THEN NULL WHEN - - 58 THEN NULL WHEN + 64 * + 8 THEN NULL ELSE + 99 - 1 * + 96 END
----
204

skipif mysql # not compatible
query I rowsort label-8015
SELECT + COUNT ( * ) / 77 + 68 * + CASE 80 WHEN + 86 THEN NULL WHEN - - 58 THEN NULL WHEN + 64 * + 8 THEN NULL ELSE + 99 - 1 * + 96 END
----
204

query I rowsort
SELECT - 93 * + + COALESCE ( - 20, + 66 ) + 54 AS col0
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL - NULLIF ( - 8, NULLIF ( - + NULLIF ( + 1, - 64 * - + 2 / - 99 * - - 85 ), COUNT( * ) * - + COALESCE ( - 28, - 56 * + COUNT( * ) ) ) ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL - NULLIF ( - 8, NULLIF ( - + NULLIF ( + 1, - 64 * - + 2 / - 99 * - - 85 ), COUNT ( * ) * - + COALESCE ( - 28, - 56 * + COUNT ( * ) ) ) ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT - 96 - MAX( ALL - ( - - 79 ) ) - + + 35 * + + ( + 32 ) + - COUNT( DISTINCT + + 84 )
----
-1138

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - 96 - MAX ( ALL - ( - - 79 ) ) - + + 35 * + + ( + 32 ) + - COUNT ( DISTINCT + + 84 )
----
-1138

query I rowsort
SELECT 86 + + 71 AS col1
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8020
SELECT ALL 14 DIV NULLIF ( + 57, COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL 14 / NULLIF ( + 57, COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT - ( + 15 ) AS col0
----
-15

query I rowsort
SELECT DISTINCT - 78 - + 7
----
-85

query II rowsort
SELECT ALL - ( 24 ) AS col0, 63 AS col0
----
-24
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL - NULLIF ( - 9, - - ( + COALESCE ( + + CAST( - 17 AS SIGNED ), COUNT( * ) * + + 37 - ( - 6 ) ) ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL - NULLIF ( - 9, - - ( + COALESCE ( + + CAST ( - 17 AS INTEGER ), COUNT ( * ) * + + 37 - ( - 6 ) ) ) ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL - SUM( ALL + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - SUM ( ALL + 49 ) AS col0
----
-49

query I rowsort
SELECT 12 * - - 77 * 21
----
19404

query II rowsort
SELECT 2 * + 98 col0, 45 AS col1
----
196
45

query I rowsort
SELECT 37 * ( - 14 )
----
-518

query II rowsort
SELECT 18 - - - 18 - - 57 AS col0, 76 col2
----
57
76

query I rowsort
SELECT DISTINCT 65 * + 31 AS col1
----
2015

query I rowsort
SELECT ALL 82 * + ( + - 67 ) AS col1
----
-5494

query I rowsort
SELECT 37 * - + 1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT ALL - 47 + 29 * + + 14 / - 41 - - - CASE 97 WHEN + 49 THEN + 72 * 76 * - CASE - - 55 WHEN + 81 + 29 THEN + 49 ELSE COUNT( 76 ) / + 19 END * + COUNT( * ) WHEN AVG ( - 28 ) / - COALESCE ( NULLIF ( 89, - 6 ), CAST( CASE + 83 WHEN 36 * + 72 + - NULLIF ( 60, + 89 / 41 ) THEN NULL WHEN 88 THEN + 82 + - 52 END AS SIGNED ) + - 26, + 78 + 80 ) THEN 43 + + 98 END + CAST( + AVG ( ALL 51 ) - ( ( 62 ) + - 32 * 95 ) AS SIGNED ) / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL - 47 + 29 * + + 14 / - 41 - - - CASE 97 WHEN + 49 THEN + 72 * 76 * - CASE - - 55 WHEN + 81 + 29 THEN + 49 ELSE COUNT ( 76 ) / + 19 END * + COUNT ( * ) WHEN AVG ( - 28 ) / - COALESCE ( NULLIF ( 89, - 6 ), CAST ( CASE + 83 WHEN 36 * + 72 + - NULLIF ( 60, + 89 / 41 ) THEN NULL WHEN 88 THEN + 82 + - 52 END AS INTEGER ) + - 26, + 78 + 80 ) THEN 43 + + 98 END + CAST ( + AVG ( ALL 51 ) - ( ( 62 ) + - 32 * 95 ) AS INTEGER ) / COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT + 34 - 22 - - 30 * - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-8034
SELECT + 34 - 22 - - 30 * - COUNT ( * )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT 63 + 8 DIV - 64
----
63

skipif mysql # not compatible
query I rowsort label-8035
SELECT 63 + 8 / - 64
----
63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8036
SELECT + 48 * + 97, + 51 DIV - CAST( - CAST( + 83 AS DECIMAL ) AS SIGNED ) col0
----
4656
0

skipif mysql # not compatible
query II rowsort label-8036
SELECT + 48 * + 97, + 51 / - CAST ( - CAST ( + 83 AS REAL ) AS INTEGER ) col0
----
4656
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8037
SELECT + 92 + + + CAST( + - COUNT( * ) AS SIGNED ) AS col0, 30 * - - 78
----
91
2340

skipif mysql # not compatible
query II rowsort label-8037
SELECT + 92 + + + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0, 30 * - - 78
----
91
2340

query I rowsort
SELECT - NULLIF ( - - 33, + 33 + 77 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + ( + 93 ) * + 12 * COUNT( * ) * + + ( - 72 ) AS col0
----
-80352

skipif mysql # not compatible
query I rowsort label-8039
SELECT + ( + 93 ) * + 12 * COUNT ( * ) * + + ( - 72 ) AS col0
----
-80352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8040
SELECT + CAST( NULL AS SIGNED ) + - - 97 AS col2, - ( + + 47 ) AS col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-8040
SELECT + CAST ( NULL AS INTEGER ) + - - 97 AS col2, - ( + + 47 ) AS col2
----
NULL
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT DISTINCT + 82 * - 17 * - COUNT( * )
----
1394

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT + 82 * - 17 * - COUNT ( * )
----
1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8042
SELECT + COUNT( * ) * - ( - 25 ) + + MAX( - CAST( - 30 AS SIGNED ) ) * + - MIN( - + 39 ) + + + 12 + - 36 + + 29 - 33 + + 62 * - 90 * COUNT( * ) AS col0
----
-4413

skipif mysql # not compatible
query I rowsort label-8042
SELECT + COUNT ( * ) * - ( - 25 ) + + MAX ( - CAST ( - 30 AS INTEGER ) ) * + - MIN ( - + 39 ) + + + 12 + - 36 + + 29 - 33 + + 62 * - 90 * COUNT ( * ) AS col0
----
-4413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8043
SELECT ALL 11 + COUNT( * ) AS col0, COALESCE ( 95, CASE + 27 WHEN - CASE - + 44 WHEN + - 95 + - + 28 THEN - 61 WHEN - CAST( 20 AS SIGNED ) + 23 THEN NULL ELSE - 98 * - 46 + + 29 END THEN 7 * - 23 + 34 WHEN 31 THEN NULL WHEN - 76 + + 60 THEN NULL END ) - + 9 AS col1
----
12
86

skipif mysql # not compatible
query II rowsort label-8043
SELECT ALL 11 + COUNT ( * ) AS col0, COALESCE ( 95, CASE + 27 WHEN - CASE - + 44 WHEN + - 95 + - + 28 THEN - 61 WHEN - CAST ( 20 AS INTEGER ) + 23 THEN NULL ELSE - 98 * - 46 + + 29 END THEN 7 * - 23 + 34 WHEN 31 THEN NULL WHEN - 76 + + 60 THEN NULL END ) - + 9 AS col1
----
12
86

query I rowsort
SELECT - 50 * - - 45 * + 29 AS col0
----
-65250

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8045
SELECT + + 20 * + 51 + - COALESCE ( - + 63, + + 46 DIV 68 ) + + + 74 * + 71 AS col1, - 30 * + + COALESCE ( 35, ( - 75 ) * - CAST( NULL AS SIGNED ) )
----
6337
-1050

skipif mysql # not compatible
query II rowsort label-8045
SELECT + + 20 * + 51 + - COALESCE ( - + 63, + + 46 / 68 ) + + + 74 * + 71 AS col1, - 30 * + + COALESCE ( 35, ( - 75 ) * - CAST ( NULL AS INTEGER ) )
----
6337
-1050

query III rowsort
SELECT + - ( - 65 ), 79 AS col0, + + 93 AS col2
----
65
79
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8047
SELECT + 25 DIV + 82 + + 24 + - 14 + COALESCE ( - 23, - 96 * + 98 ) * 24 + + - 72 + + 28 + - 78 + ( CAST( 94 AS SIGNED ) ) * 62 AS col2
----
5164

skipif mysql # not compatible
query I rowsort label-8047
SELECT + 25 / + 82 + + 24 + - 14 + COALESCE ( - 23, - 96 * + 98 ) * 24 + + - 72 + + 28 + - 78 + ( CAST ( 94 AS INTEGER ) ) * 62 AS col2
----
5164

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + COUNT( * ) * - - 72 - 39 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8048
SELECT + COUNT ( * ) * - - 72 - 39 AS col2
----
33

query I rowsort
SELECT + - COALESCE ( 7, - 16 ) AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8050
SELECT 83 + - 74 * + - CASE - + CASE + - AVG ( ALL + + 47 ) WHEN - - 89 THEN NULL ELSE 43 * + - 3 - + 40 END WHEN - MIN( 94 ) * + 27 + + COUNT( * ) THEN NULL WHEN + COUNT( * ) * CAST( 1 * 30 AS SIGNED ) THEN NULL WHEN 72 * 10 - COUNT( * ) / 32 THEN 98 * ( 10 * 33 ) ELSE + ( 66 ) * 98 END col0
----
478715

skipif mysql # not compatible
query I rowsort label-8050
SELECT 83 + - 74 * + - CASE - + CASE + - AVG ( ALL + + 47 ) WHEN - - 89 THEN NULL ELSE 43 * + - 3 - + 40 END WHEN - MIN ( 94 ) * + 27 + + COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * CAST ( 1 * 30 AS INTEGER ) THEN NULL WHEN 72 * 10 - COUNT ( * ) / 32 THEN 98 * ( 10 * 33 ) ELSE + ( 66 ) * 98 END col0
----
478715

query I rowsort
SELECT ALL 14 * - 81 AS col0
----
-1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8052
SELECT DISTINCT 73 * + CAST( - ( + MAX( ALL - - 95 ) ) AS SIGNED )
----
-6935

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT 73 * + CAST ( - ( + MAX ( ALL - - 95 ) ) AS INTEGER )
----
-6935

query I rowsort
SELECT ALL - ( - + 23 )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8054
SELECT 18 - ( - 88 ) + - 18 DIV - - NULLIF ( - COUNT( * ), + 2 )
----
124

skipif mysql # not compatible
query I rowsort label-8054
SELECT 18 - ( - 88 ) + - 18 / - - NULLIF ( - COUNT ( * ), + 2 )
----
124

query II rowsort
SELECT ALL - 57 col1, - 32 * + + 87
----
-57
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT ( - CAST( NULL AS SIGNED ) ) * + - 4 / - - 58 - + ( 19 ) + + - ( 36 ) - - 63 + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT ( - CAST ( NULL AS INTEGER ) ) * + - 4 / - - 58 - + ( 19 ) + + - ( 36 ) - - 63 + 7
----
NULL

query I rowsort
SELECT 28 + + 98
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-8058
SELECT 89 AS col2, + ( + - COUNT( * ) ) AS col0
----
89
-1

skipif mysql # not compatible
query II rowsort label-8058
SELECT 89 AS col2, + ( + - COUNT ( * ) ) AS col0
----
89
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8059
SELECT CAST( NULL AS DECIMAL ) + + AVG ( ALL - ( - - 71 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT CAST ( NULL AS REAL ) + + AVG ( ALL - ( - - 71 ) ) AS col0
----
NULL

query I rowsort
SELECT 47 * 37 * - + 13 AS col1
----
-22607

query I rowsort
SELECT 18 + + 26 + 38
----
82

query II rowsort
SELECT - 95, - 62 + - - 2 AS col2
----
-95
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT DISTINCT SUM( ALL - 0 ) + + 19 + + - 93 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT SUM ( ALL - 0 ) + + 19 + + - 93 AS col0
----
-74

query I rowsort
SELECT ALL + ( - 26 ) + ( - 7 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT DISTINCT - COUNT( * ) + 96
----
95

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT - COUNT ( * ) + 96
----
95

query I rowsort
SELECT DISTINCT + 12 + - 33 + 89 * + 75 + - - 23 * 57 + - + 7
----
7958

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL - + COALESCE ( + 86, ( - - COUNT( * ) ) ) + + - 58 * - 65 AS col0
----
3684

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL - + COALESCE ( + 86, ( - - COUNT ( * ) ) ) + + - 58 * - 65 AS col0
----
3684

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT NULLIF ( + MIN( - 22 ), 56 + + 35 + - 95 ) + - COUNT( * ) * 66 * 86 * 2 * - NULLIF ( COUNT( * ), - COUNT( ALL + 97 ) * 39 + + 41 * 6 ) * 8 + - 0
----
90794

skipif mysql # not compatible
query I rowsort label-8068
SELECT NULLIF ( + MIN ( - 22 ), 56 + + 35 + - 95 ) + - COUNT ( * ) * 66 * 86 * 2 * - NULLIF ( COUNT ( * ), - COUNT ( ALL + 97 ) * 39 + + 41 * 6 ) * 8 + - 0
----
90794

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - MIN( + + 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8069
SELECT - MIN ( + + 64 ) AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT + 62 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-8070
SELECT + 62 / 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT + 32 + + 46 + - COUNT( * ) + + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-8071
SELECT + 32 + + 46 + - COUNT ( * ) + + - COUNT ( * )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8072
SELECT DISTINCT + + 19 + + ( - 31 ) AS col2, - CAST( NULL AS SIGNED ) AS col1
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-8072
SELECT DISTINCT + + 19 + + ( - 31 ) AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL - + 57 + + COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - + 57 + + COUNT ( * ) AS col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8074
SELECT - 98 DIV + + 44 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8074
SELECT - 98 / + + 44 AS col1
----
-2

query I rowsort
SELECT ALL + - 44 * 2
----
-88

query I rowsort
SELECT DISTINCT + - 27 + 24 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT - NULLIF ( - 48, COUNT( + ( ( 83 ) ) ) )
----
48

skipif mysql # not compatible
query I rowsort label-8077
SELECT - NULLIF ( - 48, COUNT ( + ( ( 83 ) ) ) )
----
48

query I rowsort
SELECT DISTINCT - - 15 + - ( + 81 ) - + 9 - + 26 * + + 53 * 17 col1
----
-23501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT DISTINCT CASE + NULLIF ( CAST( NULL AS SIGNED ), - - 17 ) WHEN + - 34 - - 82 + - + 38 * + + MAX( DISTINCT 69 ) THEN + + NULLIF ( + 84, 19 ) + - 54 + MIN( ALL + 2 ) * - 24 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT CASE + NULLIF ( CAST ( NULL AS INTEGER ), - - 17 ) WHEN + - 34 - - 82 + - + 38 * + + MAX ( DISTINCT 69 ) THEN + + NULLIF ( + 84, 19 ) + - 54 + MIN ( ALL + 2 ) * - 24 END AS col1
----
NULL

query I rowsort
SELECT - - ( 14 ) * + 15 * - ( 7 ) AS col2
----
-1470

query I rowsort
SELECT + - 14 * + - 66 AS col1
----
924

query I rowsort
SELECT ALL - 8 * - 2 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8083
SELECT DISTINCT COUNT( + + CAST( 90 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT COUNT ( + + CAST ( 90 AS INTEGER ) )
----
1

query II rowsort
SELECT - 61, - 1 * + + 97 AS col0
----
-61
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8085
SELECT NULLIF ( + - 33, ( CAST( + + ( - 95 ) AS DECIMAL ) ) ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-8085
SELECT NULLIF ( + - 33, ( CAST ( + + ( - 95 ) AS REAL ) ) ) col0
----
-33

query I rowsort
SELECT + 84 * 21 + - 71 * + 80
----
-3916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), 34 ) - - + 93 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-8087
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), 34 ) - - + 93 AS col2
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8088
SELECT + COUNT( ALL 98 ) AS col2, + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8088
SELECT + COUNT ( ALL 98 ) AS col2, + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + 2 * + MAX( - + 97 )
----
-194

skipif mysql # not compatible
query I rowsort label-8089
SELECT + 2 * + MAX ( - + 97 )
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT DISTINCT COALESCE ( - 98, + 13 * + COUNT( * ) + - + 2 ) * 50 * + 15 * + 89 * - 96 + - 45
----
627983955

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT COALESCE ( - 98, + 13 * + COUNT ( * ) + - + 2 ) * 50 * + 15 * + 89 * - 96 + - 45
----
627983955

onlyif mysql # DIV for integer division: 
query I rowsort label-8091
SELECT + 63 * + - 75 + + 78 DIV 48 AS col0
----
-4724

skipif mysql # not compatible
query I rowsort label-8091
SELECT + 63 * + - 75 + + 78 / 48 AS col0
----
-4724

query I rowsort
SELECT + ( 58 ) * 37 AS col1
----
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT + 72 + COUNT( * ) + - 54 * 50 * - 57 col2
----
153973

skipif mysql # not compatible
query I rowsort label-8093
SELECT + 72 + COUNT ( * ) + - 54 * 50 * - 57 col2
----
153973

query I rowsort
SELECT CASE + + 0 WHEN CASE + 63 WHEN - 74 THEN 26 ELSE 40 END THEN NULL WHEN 26 THEN + + 29 WHEN + - 2 - - - 47 THEN 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT MAX( ( + + 50 ) )
----
50

skipif mysql # not compatible
query I rowsort label-8095
SELECT MAX ( ( + + 50 ) )
----
50

query I rowsort
SELECT ALL 54 * - - 3 AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL ( + - 1 ) * - CASE COUNT( * ) WHEN - 41 THEN 60 / + + 87 + - 28 + - CASE - 97 WHEN + CASE - - 83 WHEN 23 * + + 2 THEN - 34 END THEN - 1 ELSE 86 END END + 47 * 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL ( + - 1 ) * - CASE COUNT ( * ) WHEN - 41 THEN 60 / + + 87 + - 28 + - CASE - 97 WHEN + CASE - - 83 WHEN 23 * + + 2 THEN - 34 END THEN - 1 ELSE 86 END END + 47 * 73 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8098
SELECT - COUNT( * ) DIV - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT - COUNT ( * ) / - 16 AS col2
----
0

query I rowsort
SELECT + 36 * + - 19
----
-684

query I rowsort
SELECT + 95 + - 94 AS col0
----
1

query I rowsort
SELECT DISTINCT + 81 * - 34 + + 30
----
-2724

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8102
SELECT ALL - ( - 45 ) * + + COALESCE ( 51, 91, - - 56 DIV - - 31 ) - 2 - + COUNT( * ) + 26 + + - 73
----
2245

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL - ( - 45 ) * + + COALESCE ( 51, 91, - - 56 / - - 31 ) - 2 - + COUNT ( * ) + 26 + + - 73
----
2245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8103
SELECT DISTINCT 19 * + ( - MIN( - + 20 ) ) * + MIN( DISTINCT - - 99 ) + - ( - 87 ) DIV + COALESCE ( - 15, 8 * - + CAST( - COALESCE ( 95, ( + COALESCE ( 15, - 85 + 99 * - COUNT( * ) ) ) ) AS SIGNED ) - - 69 ) + 48 * 77
----
41311

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT 19 * + ( - MIN ( - + 20 ) ) * + MIN ( DISTINCT - - 99 ) + - ( - 87 ) / + COALESCE ( - 15, 8 * - + CAST ( - COALESCE ( 95, ( + COALESCE ( 15, - 85 + 99 * - COUNT ( * ) ) ) ) AS INTEGER ) - - 69 ) + 48 * 77
----
41311

query I rowsort
SELECT ALL 87 * - + 60 + + 95
----
-5125

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT COUNT( + - 94 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8105
SELECT COUNT ( + - 94 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8106
SELECT - ( + NULLIF ( - + 4, 73 + + 25 ) ), - ( + 12 ) / + + CAST( NULL AS SIGNED ) / COUNT( * ) * + + 58 - 63 * + 32 AS col1
----
4
NULL

skipif mysql # not compatible
query II rowsort label-8106
SELECT - ( + NULLIF ( - + 4, 73 + + 25 ) ), - ( + 12 ) / + + CAST ( NULL AS INTEGER ) / COUNT ( * ) * + + 58 - 63 * + 32 AS col1
----
4
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8107
SELECT + 76 + + COUNT( * ), 72 AS col1
----
77
72

skipif mysql # not compatible
query II rowsort label-8107
SELECT + 76 + + COUNT ( * ), 72 AS col1
----
77
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8108
SELECT - COUNT( + 80 ) * + + ( - + 75 ) AS col1, 40 AS col2
----
75
40

skipif mysql # not compatible
query II rowsort label-8108
SELECT - COUNT ( + 80 ) * + + ( - + 75 ) AS col1, 40 AS col2
----
75
40

query I rowsort
SELECT - 30 * - 41 AS col1
----
1230

query I rowsort
SELECT ALL + 64 + - - 67
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + MAX( - ( + 99 ) ) col2
----
-99

skipif mysql # not compatible
query I rowsort label-8111
SELECT + MAX ( - ( + 99 ) ) col2
----
-99

query I rowsort
SELECT + 83 - 36 AS col2
----
47

query I rowsort
SELECT ALL + 4 - + - ( - 33 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT - + ( - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT - + ( - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL - 23 - + 57 col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - - MAX( DISTINCT + ( - 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-8116
SELECT - - MAX ( DISTINCT + ( - 98 ) ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + + COUNT( * ) + 40 + + 5
----
46

skipif mysql # not compatible
query I rowsort label-8117
SELECT + + COUNT ( * ) + 40 + + 5
----
46

query I rowsort
SELECT + 72 * - 99
----
-7128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT + - CAST( + - 81 AS SIGNED ) + 95 * - + 41
----
-3814

skipif mysql # not compatible
query I rowsort label-8119
SELECT + - CAST ( + - 81 AS INTEGER ) + 95 * - + 41
----
-3814

query II rowsort
SELECT - 46 - 45 AS col2, 74 + + 72 AS col1
----
-91
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - + MIN( ALL + 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8121
SELECT - + MIN ( ALL + 15 ) AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT ALL + - 50 DIV - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + - 50 / - 52 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT - 99 + + - 47 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT - 99 + + - 47 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 12 + - - 53
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8125
SELECT - CASE + 86 WHEN - CASE - + 41 WHEN + - 22 + - ( + + 85 ) THEN - 34 * + - COUNT( * ) / + COUNT( * ) + + - 56 * - - ( - 4 ) + - 87 + NULLIF ( 89 + + 69, ( 27 ) + - CAST( NULL AS SIGNED ) * + 55 ) ELSE NULL END THEN NULL ELSE - 31 + + 58 * 91 END
----
-5247

skipif mysql # not compatible
query I rowsort label-8125
SELECT - CASE + 86 WHEN - CASE - + 41 WHEN + - 22 + - ( + + 85 ) THEN - 34 * + - COUNT ( * ) / + COUNT ( * ) + + - 56 * - - ( - 4 ) + - 87 + NULLIF ( 89 + + 69, ( 27 ) + - CAST ( NULL AS INTEGER ) * + 55 ) ELSE NULL END THEN NULL ELSE - 31 + + 58 * 91 END
----
-5247

query I rowsort
SELECT - - 33 + 12 * + + 11 AS col0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT ALL - 27 DIV - COUNT( + ( 54 ) )
----
27

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - 27 / - COUNT ( + ( 54 ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8128
SELECT CAST( NULL AS SIGNED ), 30 * - 84 AS col2
----
NULL
-2520

skipif mysql # not compatible
query II rowsort label-8128
SELECT CAST ( NULL AS INTEGER ), 30 * - 84 AS col2
----
NULL
-2520

query I rowsort
SELECT - 79 * CASE - 44 WHEN + 35 * - 74 THEN 55 * + 45 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8130
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), + - 80, - CAST( - 81 AS SIGNED ) * + 51 * MAX( - 98 ) DIV + MIN( - CAST( NULL AS SIGNED ) ) - - 98 )
----
-80

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), + - 80, - CAST ( - 81 AS INTEGER ) * + 51 * MAX ( - 98 ) / + MIN ( - CAST ( NULL AS INTEGER ) ) - - 98 )
----
-80

query I rowsort
SELECT DISTINCT + 74 * + - 89 col0
----
-6586

query I rowsort
SELECT + 31 + - + 31 - + + 8 + + 54 * - + 16 + - 61 AS col0
----
-933

query II rowsort
SELECT + 48 * - + ( + 27 ) * ( 52 ) AS col0, - 97 AS col2
----
-67392
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8134
SELECT DISTINCT + 87 DIV + COUNT( * ) + 5 + - 7 + - 15 + - + COUNT( * ) * 98 * 99 * 37
----
-358904

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT + 87 / + COUNT ( * ) + 5 + - 7 + - 15 + - + COUNT ( * ) * 98 * 99 * 37
----
-358904

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT + MAX( ALL - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-8135
SELECT + MAX ( ALL - 92 )
----
-92

query I rowsort
SELECT - 13 * + + 94 AS col2
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL 15 * - MAX( ALL + NULLIF ( - - 62, + - 49 * + ( 36 ) ) ) + + COUNT( * ) + - 56
----
-985

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL 15 * - MAX ( ALL + NULLIF ( - - 62, + - 49 * + ( 36 ) ) ) + + COUNT ( * ) + - 56
----
-985

query I rowsort
SELECT ALL 59 * + 73
----
4307

query I rowsort
SELECT ( - - 3 ) AS col1
----
3

query I rowsort
SELECT + ( + 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT + MAX( ALL - + COALESCE ( + 49, 56 - - 16 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-8141
SELECT + MAX ( ALL - + COALESCE ( + 49, 56 - - 16 ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT + COUNT( - 98 ) + - 21 * + - 12 - - - 2
----
251

skipif mysql # not compatible
query I rowsort label-8142
SELECT + COUNT ( - 98 ) + - 21 * + - 12 - - - 2
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL + COUNT( * ) * + MAX( + + 38 ) + 60 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL + COUNT ( * ) * + MAX ( + + 38 ) + 60 AS col2
----
98

query I rowsort
SELECT + + 88 + - + 55 * - 96 * + 84 * + 47 * 63
----
1313262808

query I rowsort
SELECT DISTINCT - 66 * 82 col1
----
-5412

query I rowsort
SELECT ALL + ( - + 68 ) col0
----
-68

query I rowsort
SELECT ALL + + 89 - - ( - 51 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + 81 * + - COUNT( * ) + - - 78 + 79 * 66 AS col0
----
5211

skipif mysql # not compatible
query I rowsort label-8148
SELECT + 81 * + - COUNT ( * ) + - - 78 + 79 * 66 AS col0
----
5211

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT - SUM( + 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT - SUM ( + 75 ) AS col1
----
-75

query I rowsort
SELECT + 70 * + - 94 col0
----
-6580

query I rowsort
SELECT - 44 + - 2 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - + NULLIF ( COUNT( * ), 74 + + - 42 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8152
SELECT - + NULLIF ( COUNT ( * ), 74 + + - 42 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8153
SELECT DISTINCT + CAST( + - 59 AS SIGNED ) * + COUNT( * ) - + 54
----
-113

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + CAST ( + - 59 AS INTEGER ) * + COUNT ( * ) - + 54
----
-113

query II rowsort
SELECT 19 AS col1, + 7 AS col2
----
19
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT 28 + - + 80 + COUNT( + - 13 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8155
SELECT 28 + - + 80 + COUNT ( + - 13 ) AS col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8156
SELECT 37 DIV - 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-8156
SELECT 37 / - 78 col0
----
0

query I rowsort
SELECT ALL + 61 + - 17 * + 99
----
-1622

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT - 5 DIV 99 + - 76 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-8158
SELECT - 5 / 99 + - 76 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT COUNT( * ) + - 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT COUNT ( * ) + - 49 AS col0
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT 27 DIV 20 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8160
SELECT 27 / 20 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT DISTINCT - 16 DIV - - 3
----
-5

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT - 16 / - - 3
----
-5

query I rowsort
SELECT ALL 59 + + + 79
----
138

query I rowsort
SELECT DISTINCT + 44 + - + NULLIF ( + 48, - 19 ) AS col2
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8164
SELECT CASE + 99 WHEN - 14 * 34 * + ( - + CAST( - 51 AS DECIMAL ) ) THEN NULL ELSE + - COALESCE ( - - 78, + + 66 ) END + - 95 * 67
----
-6443

skipif mysql # not compatible
query I rowsort label-8164
SELECT CASE + 99 WHEN - 14 * 34 * + ( - + CAST ( - 51 AS REAL ) ) THEN NULL ELSE + - COALESCE ( - - 78, + + 66 ) END + - 95 * 67
----
-6443

onlyif mysql # aggregate syntax: 
query II rowsort label-8165
SELECT ALL - COUNT( * ), + 50 AS col1
----
-1
50

skipif mysql # not compatible
query II rowsort label-8165
SELECT ALL - COUNT ( * ), + 50 AS col1
----
-1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT 46 * MIN( DISTINCT NULLIF ( - - 49, - - 66 ) )
----
2254

skipif mysql # not compatible
query I rowsort label-8166
SELECT 46 * MIN ( DISTINCT NULLIF ( - - 49, - - 66 ) )
----
2254

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT ALL - 37 - - + 10 + 55 DIV + 96
----
-27

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL - 37 - - + 10 + 55 / + 96
----
-27

query II rowsort
SELECT ALL - + 25 AS col0, 41 * - + 61 AS col0
----
-25
-2501

query II rowsort
SELECT + 56, 99 AS col0
----
56
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT ALL CAST( NULL AS SIGNED ) - 89 / - 1 + ( 53 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL CAST ( NULL AS INTEGER ) - 89 / - 1 + ( 53 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT MAX( - 92 ) + + + 52
----
-40

skipif mysql # not compatible
query I rowsort label-8171
SELECT MAX ( - 92 ) + + + 52
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT 45 / + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT 45 / + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 32 * + 98 * - 97
----
-304192

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL + 21 * - 52 + - 88 * - 26 * COUNT( * )
----
1196

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + 21 * - 52 + - 88 * - 26 * COUNT ( * )
----
1196

query II rowsort
SELECT 71 AS col1, - 75
----
71
-75

query I rowsort
SELECT + 67 - + - 16 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT DISTINCT COUNT( * ) * - 62
----
-62

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT COUNT ( * ) * - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT 55 - - COUNT( * ) * + SUM( ALL - 49 ) + 92
----
98

skipif mysql # not compatible
query I rowsort label-8178
SELECT 55 - - COUNT ( * ) * + SUM ( ALL - 49 ) + 92
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT 2 + - - 65 DIV 6 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8179
SELECT 2 + - - 65 / 6 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8180
SELECT ALL + 89, - COUNT( * ) + + NULLIF ( + 78, + CASE - 67 WHEN - - CAST( NULL AS DECIMAL ) / + 8 * - + CASE + + COUNT( * ) WHEN - - 7 THEN + 83 ELSE NULL END + 33 + + 29 THEN + 19 + + 81 + CASE - 7 WHEN ( 79 ) THEN NULL WHEN - 5 THEN ( + 81 ) ELSE - 36 END * - 47 END ) AS col0
----
89
77

skipif mysql # not compatible
query II rowsort label-8180
SELECT ALL + 89, - COUNT ( * ) + + NULLIF ( + 78, + CASE - 67 WHEN - - CAST ( NULL AS REAL ) / + 8 * - + CASE + + COUNT ( * ) WHEN - - 7 THEN + 83 ELSE NULL END + 33 + + 29 THEN + 19 + + 81 + CASE - 7 WHEN ( 79 ) THEN NULL WHEN - 5 THEN ( + 81 ) ELSE - 36 END * - 47 END ) AS col0
----
89
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT 81 + - - COALESCE ( COALESCE ( - COUNT( * ), + 90 ), - CAST( 57 AS SIGNED ) ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8181
SELECT 81 + - - COALESCE ( COALESCE ( - COUNT ( * ), + 90 ), - CAST ( 57 AS INTEGER ) ) AS col0
----
80

query I rowsort
SELECT 25 - + 75 AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8183
SELECT ( - NULLIF ( - 66, 93 + COUNT( * ) + + CAST( 83 AS SIGNED ) + + 32 - 74 * - 13 + - 48 / - - 47 * - 32 ) ) - + - 52 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-8183
SELECT ( - NULLIF ( - 66, 93 + COUNT ( * ) + + CAST ( 83 AS INTEGER ) + + 32 - 74 * - 13 + - 48 / - - 47 * - 32 ) ) - + - 52 AS col1
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT ALL COUNT( * ) + 84 AS col0, + 36 AS col0
----
85
36

skipif mysql # not compatible
query II rowsort label-8184
SELECT ALL COUNT ( * ) + 84 AS col0, + 36 AS col0
----
85
36

query I rowsort
SELECT 41 * + 34
----
1394

query I rowsort
SELECT ALL 31 * 60 * - 90 * 46
----
-7700400

query I rowsort
SELECT ALL ( 11 ) + - - 20 * - 14 AS col2
----
-269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8188
SELECT 31 + - + 53 * + + 39 + MAX( DISTINCT 69 ) AS col0, 36 + CASE + - 90 WHEN 12 + - + ( - + COUNT( * ) ) * + 96 + - COUNT( * ) THEN + + 60 WHEN 82 + + + ( CASE - NULLIF ( 29, + 76 * 59 ) WHEN COALESCE ( + 98, 66, 15 ) THEN + ( + COUNT( * ) ) + 22 END ) + 82 * + 30 THEN CAST( 21 AS SIGNED ) + - COUNT( * ) * - 98 END
----
-1967
NULL

skipif mysql # not compatible
query II rowsort label-8188
SELECT 31 + - + 53 * + + 39 + MAX ( DISTINCT 69 ) AS col0, 36 + CASE + - 90 WHEN 12 + - + ( - + COUNT ( * ) ) * + 96 + - COUNT ( * ) THEN + + 60 WHEN 82 + + + ( CASE - NULLIF ( 29, + 76 * 59 ) WHEN COALESCE ( + 98, 66, 15 ) THEN + ( + COUNT ( * ) ) + 22 END ) + 82 * + 30 THEN CAST ( 21 AS INTEGER ) + - COUNT ( * ) * - 98 END
----
-1967
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8189
SELECT ALL - 2 * 26, + COUNT( * ) AS col2
----
-52
1

skipif mysql # not compatible
query II rowsort label-8189
SELECT ALL - 2 * 26, + COUNT ( * ) AS col2
----
-52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT MAX( + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-8190
SELECT MAX ( + 27 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8191
SELECT ALL 95 * + 61 col1, - 9 + - COUNT( * )
----
5795
-10

skipif mysql # not compatible
query II rowsort label-8191
SELECT ALL 95 * + 61 col1, - 9 + - COUNT ( * )
----
5795
-10

query I rowsort
SELECT - 75 * + 35 * + - 37 + - - 76 AS col0
----
97201

onlyif mysql # DIV for integer division: 
query I rowsort label-8193
SELECT 21 * 34 DIV - 99 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8193
SELECT 21 * 34 / - 99 AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT 39 DIV - 31 + 56 * 21 + - 94 AS col2
----
1081

skipif mysql # not compatible
query I rowsort label-8194
SELECT 39 / - 31 + 56 * 21 + - 94 AS col2
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT MAX( - + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8195
SELECT MAX ( - + 33 ) AS col1
----
-33

query I rowsort
SELECT 66 + + 53 + + - 15 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT NULLIF ( - + 22, + 43 ) * - - COUNT( * ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-8197
SELECT NULLIF ( - + 22, + 43 ) * - - COUNT ( * ) col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8198
SELECT ALL - 67 DIV 69 * + ( + COUNT( * ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - 67 / 69 * + ( + COUNT ( * ) ) col1
----
0

query I rowsort
SELECT + 31 * - 69 + - + 54 AS col1
----
-2193

query I rowsort
SELECT ( - 35 ) * + - 62 + + 94 - - + 54 + - - 78
----
2396

query I rowsort
SELECT - 63 * ( 1 ) AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT ALL + + 18 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL + + 18 / - 54
----
0

query I rowsort
SELECT 36 * 22 * - - 4 * - 75 + - 6 - + 45 AS col1
----
-237651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT - - CAST( NULL AS SIGNED ) + - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT - - CAST ( NULL AS INTEGER ) + - 44 AS col1
----
NULL

query I rowsort
SELECT ALL - - 6 * + + ( 10 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT + 10 * + 31 - - 67 + + 24 * - 46 + ( + MAX( + 54 ) ) + - - 34 * 26 + 5 AS col2
----
216

skipif mysql # not compatible
query I rowsort label-8206
SELECT + 10 * + 31 - - 67 + + 24 * - 46 + ( + MAX ( + 54 ) ) + - - 34 * 26 + 5 AS col2
----
216

query II rowsort
SELECT - - 86 * 2 col2, + 34
----
172
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT + - 81 * - CAST( NULL AS SIGNED ) * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT + - 81 * - CAST ( NULL AS INTEGER ) * 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8209
SELECT + + CAST( + ( + 72 ) AS SIGNED ) AS col2, + COALESCE ( + - ( 10 ), NULLIF ( 26, - 18 ) * + + COUNT( * ) ) + + + 24 DIV 92 * + - 95 * - + 26 + 49
----
72
39

skipif mysql # not compatible
query II rowsort label-8209
SELECT + + CAST ( + ( + 72 ) AS INTEGER ) AS col2, + COALESCE ( + - ( 10 ), NULLIF ( 26, - 18 ) * + + COUNT ( * ) ) + + + 24 / 92 * + - 95 * - + 26 + 49
----
72
39

query I rowsort
SELECT - 65 + 56 * + 44
----
2399

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT ALL - COUNT( * ) * - ( + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - COUNT ( * ) * - ( + 58 )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8212
SELECT - ( 5 ) AS col1, + CASE WHEN NOT - 43 NOT IN ( + + 33 * 65, - 31 ) THEN NULL WHEN ( + ( - 41 ) ) IN ( 73 * CASE + + 33 WHEN - 25 THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) THEN 64 WHEN NOT ( + CAST( + CASE + 52 WHEN COUNT( * ) THEN NULL WHEN 51 THEN - 68 ELSE NULL END AS SIGNED ) ) = 50 THEN NULL END * 11 + NULLIF ( ( - 3 ) + 51, 32 ) AS col1
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-8212
SELECT - ( 5 ) AS col1, + CASE WHEN NOT - 43 NOT IN ( + + 33 * 65, - 31 ) THEN NULL WHEN ( + ( - 41 ) ) IN ( 73 * CASE + + 33 WHEN - 25 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) THEN 64 WHEN NOT ( + CAST ( + CASE + 52 WHEN COUNT ( * ) THEN NULL WHEN 51 THEN - 68 ELSE NULL END AS INTEGER ) ) = 50 THEN NULL END * 11 + NULLIF ( ( - 3 ) + 51, 32 ) AS col1
----
-5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8213
SELECT ALL + COUNT( * ) + + 26 AS col2, 21
----
27
21

skipif mysql # not compatible
query II rowsort label-8213
SELECT ALL + COUNT ( * ) + + 26 AS col2, 21
----
27
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT + + 29 + - 22 - - COUNT( * ) col0
----
8

skipif mysql # not compatible
query I rowsort label-8214
SELECT + + 29 + - 22 - - COUNT ( * ) col0
----
8

query I rowsort
SELECT + - 54 + - 46 col1
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8216
SELECT ALL - COUNT( * ) DIV ( + 82 ) DIV + 73 + + 20
----
20

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - COUNT ( * ) / ( + 82 ) / + 73 + + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT + + 79 + - COUNT( * ) + - 36 + - 95 col1
----
-53

skipif mysql # not compatible
query I rowsort label-8217
SELECT + + 79 + - COUNT ( * ) + - 36 + - 95 col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8218
SELECT DISTINCT + 16 * - + 48 - 6 + - CASE - + AVG ( ALL - - 22 ) WHEN - 96 * + - CAST( + 72 AS SIGNED ) * NULLIF ( + 12, + NULLIF ( - 67, - 59 ) ) THEN - 66 ELSE - SUM( DISTINCT + 4 ) END AS col2
----
-770

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT + 16 * - + 48 - 6 + - CASE - + AVG ( ALL - - 22 ) WHEN - 96 * + - CAST ( + 72 AS INTEGER ) * NULLIF ( + 12, + NULLIF ( - 67, - 59 ) ) THEN - 66 ELSE - SUM ( DISTINCT + 4 ) END AS col2
----
-770

query I rowsort
SELECT - 20 * - CASE WHEN NOT AVG ( ALL + 35 ) >= NULL THEN - - 0 * + ( + 28 ) * + - NULLIF ( 99, - 46 ) ELSE NULL END / + + 91
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT ALL + 34 / 53 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + 34 / 53 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL 90 + + COALESCE ( + 99, COUNT( * ) ) AS col2
----
189

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL 90 + + COALESCE ( + 99, COUNT ( * ) ) AS col2
----
189

query I rowsort
SELECT DISTINCT ( 67 ) + 62 + - 94
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT DISTINCT + COUNT( * ) * - 89 * + 70 AS col2, + 52 AS col1
----
-6230
52

skipif mysql # not compatible
query II rowsort label-8223
SELECT DISTINCT + COUNT ( * ) * - 89 * + 70 AS col2, + 52 AS col1
----
-6230
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT + 72 DIV ( - 26 )
----
-2

skipif mysql # not compatible
query I rowsort label-8224
SELECT + 72 / ( - 26 )
----
-2

query I rowsort
SELECT + 90 * 5 AS col2
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL 54 + + - COALESCE ( + 20, - + COUNT( * ) ) + - 0 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL 54 + + - COALESCE ( + 20, - + COUNT ( * ) ) + - 0 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8227
SELECT 82 AS col0, - 95 + - + 71 + ( - - COUNT( * ) ) - + - 88 * + 77 col0
----
82
6611

skipif mysql # not compatible
query II rowsort label-8227
SELECT 82 AS col0, - 95 + - + 71 + ( - - COUNT ( * ) ) - + - 88 * + 77 col0
----
82
6611

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8228
SELECT + CASE ( 43 ) WHEN - 28 THEN - 12 - - COALESCE ( SUM( ALL - 94 ), + - 85 * + 48 ) * - - 20 + 52 END + - + 16 * - 69 / COALESCE ( + CAST( - ( + 73 ) AS SIGNED ), 21 ) + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8228
SELECT + CASE ( 43 ) WHEN - 28 THEN - 12 - - COALESCE ( SUM ( ALL - 94 ), + - 85 * + 48 ) * - - 20 + 52 END + - + 16 * - 69 / COALESCE ( + CAST ( - ( + 73 ) AS INTEGER ), 21 ) + 60 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT + 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT + 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT + 30 * - - 39 DIV + COUNT( * )
----
1170

skipif mysql # not compatible
query I rowsort label-8230
SELECT + 30 * - - 39 / + COUNT ( * )
----
1170

query I rowsort
SELECT ( - ( + COALESCE ( - - 54, + 61, + 94, 68 * + 9 + - + 82 ) ) )
----
-54

query II rowsort
SELECT ALL + 7, + 61 col2
----
7
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT + COUNT( * ) - + - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8233
SELECT + COUNT ( * ) - + - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT ( - + 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-8235
SELECT ALL + 91 AS col1, - 60 - - SUM( ALL - 3 ) + 88 * + + 81 + 81 * - MAX( ALL + + 17 ) + - - 92 + - 55 * 95 - - MAX( + 4 ) AS col1
----
91
559

skipif mysql # not compatible
query II rowsort label-8235
SELECT ALL + 91 AS col1, - 60 - - SUM ( ALL - 3 ) + 88 * + + 81 + 81 * - MAX ( ALL + + 17 ) + - - 92 + - 55 * 95 - - MAX ( + 4 ) AS col1
----
91
559

query I rowsort
SELECT ( + + 25 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8237
SELECT DISTINCT + 54 * COALESCE ( - NULLIF ( 55, + + 68 + + + CAST( - - 98 AS SIGNED ) DIV + + CAST( - 25 AS SIGNED ) ), - - COUNT( * ) * + 1 DIV - COUNT( * ) ) DIV MAX( DISTINCT + 3 ) AS col0
----
-990

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT + 54 * COALESCE ( - NULLIF ( 55, + + 68 + + + CAST ( - - 98 AS INTEGER ) / + + CAST ( - 25 AS INTEGER ) ), - - COUNT ( * ) * + 1 / - COUNT ( * ) ) / MAX ( DISTINCT + 3 ) AS col0
----
-990

query I rowsort
SELECT DISTINCT 41 * + ( + 68 )
----
2788

query I rowsort
SELECT + + 76 * + 42 AS col0
----
3192

query I rowsort
SELECT DISTINCT 39 * + 4 AS col1
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8241
SELECT - 52, - 41 * 87 * - - ( - 83 ) * + AVG ( ALL + - 1 ) * + CASE + CAST( NULL AS SIGNED ) WHEN 59 THEN NULL WHEN 84 THEN - ( - COUNT( * ) ) WHEN - - MAX( - 31 ) THEN + COUNT( * ) + NULLIF ( ( 89 ), 65 + - 4 ) * 89 ELSE NULL END * - 15 AS col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-8241
SELECT - 52, - 41 * 87 * - - ( - 83 ) * + AVG ( ALL + - 1 ) * + CASE + CAST ( NULL AS INTEGER ) WHEN 59 THEN NULL WHEN 84 THEN - ( - COUNT ( * ) ) WHEN - - MAX ( - 31 ) THEN + COUNT ( * ) + NULLIF ( ( 89 ), 65 + - 4 ) * 89 ELSE NULL END * - 15 AS col0
----
-52
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT + 27 DIV MAX( ALL - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT + 27 / MAX ( ALL - 37 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT - 97 * - COALESCE ( 94, 73 ) - + + COUNT( * ) * + 77 + 66 AS col1
----
9107

skipif mysql # not compatible
query I rowsort label-8243
SELECT - 97 * - COALESCE ( 94, 73 ) - + + COUNT ( * ) * + 77 + 66 AS col1
----
9107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT DISTINCT + + CAST( + 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT + + CAST ( + 39 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL COUNT( * ) * + 13 * + 39 + + 19
----
526

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL COUNT ( * ) * + 13 * + 39 + + 19
----
526

query II rowsort
SELECT DISTINCT 49 * - + 96 + - 23 * ( ( 23 ) ) AS col2, 43 AS col1
----
-5233
43

query I rowsort
SELECT + 29 + + 78
----
107

onlyif mysql # aggregate syntax: 
query II rowsort label-8248
SELECT - - 62 AS col1, - 30 * - 91 + + COUNT( * ) * - + 70 AS col1
----
62
2660

skipif mysql # not compatible
query II rowsort label-8248
SELECT - - 62 AS col1, - 30 * - 91 + + COUNT ( * ) * - + 70 AS col1
----
62
2660

query II rowsort
SELECT ALL + + 67 * + - 13 + - 67 AS col1, - 10
----
-938
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL - - 36 * - + ( + SUM( - - 4 ) ) + + 42 col0
----
-102

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - - 36 * - + ( + SUM ( - - 4 ) ) + + 42 col0
----
-102

query I rowsort
SELECT - ( 30 ) * + 42 AS col0
----
-1260

query I rowsort
SELECT - 13 * 40 AS col2
----
-520

onlyif mysql # aggregate syntax: 
query II rowsort label-8253
SELECT 43, + 1 * COUNT( * ) * + + ( + 69 ) AS col0
----
43
69

skipif mysql # not compatible
query II rowsort label-8253
SELECT 43, + 1 * COUNT ( * ) * + + ( + 69 ) AS col0
----
43
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT DISTINCT + + CAST( - NULLIF ( + 16, 43 - + 6 ) AS SIGNED ) * COALESCE ( + - 18, 94 ) AS col1
----
288

skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT + + CAST ( - NULLIF ( + 16, 43 - + 6 ) AS INTEGER ) * COALESCE ( + - 18, 94 ) AS col1
----
288

query II rowsort
SELECT ALL 94 AS col0, - 27 + - + 60 + 31 AS col0
----
94
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8256
SELECT - 96 + - - 56 * + + 54 DIV - + COUNT( * )
----
-3120

skipif mysql # not compatible
query I rowsort label-8256
SELECT - 96 + - - 56 * + + 54 / - + COUNT ( * )
----
-3120

query I rowsort
SELECT DISTINCT + 29 * - 86
----
-2494

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - MIN( + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-8258
SELECT - MIN ( + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT DISTINCT - 57 - - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - 57 - - COUNT ( * )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8260
SELECT - 37 + - CAST( - ( + - NULLIF ( + + COUNT( * ), - - 66 ) ) AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8260
SELECT - 37 + - CAST ( - ( + - NULLIF ( + + COUNT ( * ), - - 66 ) ) AS INTEGER ) AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8261
SELECT DISTINCT + 85 DIV - 37, - 89 - - - COUNT( * ) + 24 * 29 * - + 59 * - + 21 * + 64 AS col0
----
-2
55189926

skipif mysql # not compatible
query II rowsort label-8261
SELECT DISTINCT + 85 / - 37, - 89 - - - COUNT ( * ) + 24 * 29 * - + 59 * - + 21 * + 64 AS col0
----
-2
55189926

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT - 13 + + ( + COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-8262
SELECT - 13 + + ( + COUNT ( * ) )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8263
SELECT + NULLIF ( - - 66, ( - + ( 49 ) ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT + NULLIF ( - - 66, ( - + ( 49 ) ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8264
SELECT - COUNT( * ) * 57 DIV 10 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8264
SELECT - COUNT ( * ) * 57 / 10 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + ( - - ( CASE 54 WHEN 73 + 79 + - 1 * - + COUNT( * ) * - 47 THEN + - 62 / + + 66 + + COUNT( * ) END ) ) * + 93 * + - 79 * + ( + + 98 ) + - - 32 * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT + ( - - ( CASE 54 WHEN 73 + 79 + - 1 * - + COUNT ( * ) * - 47 THEN + - 62 / + + 66 + + COUNT ( * ) END ) ) * + 93 * + - 79 * + ( + + 98 ) + - - 32 * + 23
----
NULL

query I rowsort
SELECT ALL + 67 * - + 22
----
-1474

query I rowsort
SELECT - 6 + - ( + 43 ) * 6 * 63 * 4 * - 20 AS col0
----
1300314

onlyif mysql # DIV for integer division: 
query I rowsort label-8268
SELECT DISTINCT + ( + 5 ) DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT + ( + 5 ) / 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT - CASE - - 37 WHEN + + COUNT( ALL + - 13 ) + - + 23 THEN - + COALESCE ( + MIN( DISTINCT + 4 ), 18 ) END + - 11 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT - CASE - - 37 WHEN + + COUNT ( ALL + - 13 ) + - + 23 THEN - + COALESCE ( + MIN ( DISTINCT + 4 ), 18 ) END + - 11 col0
----
NULL

query I rowsort
SELECT ALL + 67 * + 96 * - 69 * - + 9 col2
----
3994272

query I rowsort
SELECT ALL - 13 * + - ( + + 83 ) * - + 8
----
-8632

query I rowsort
SELECT 71 * - - 11
----
781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8273
SELECT COUNT( * ) DIV - 5 DIV - COUNT( * ) + - 17
----
-17

skipif mysql # not compatible
query I rowsort label-8273
SELECT COUNT ( * ) / - 5 / - COUNT ( * ) + - 17
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT + 10 DIV + - ( - 48 ) + + - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8274
SELECT + 10 / + - ( - 48 ) + + - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8275
SELECT COUNT( * ) * - + ( + 34 ) + + - 74 - + - 25 DIV - 24
----
-109

skipif mysql # not compatible
query I rowsort label-8275
SELECT COUNT ( * ) * - + ( + 34 ) + + - 74 - + - 25 / - 24
----
-109

query I rowsort
SELECT + 20 + 40
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8277
SELECT ALL COALESCE ( + 25, - COUNT( * ) ) + + - 72 AS col2, COUNT( * )
----
-47
1

skipif mysql # not compatible
query II rowsort label-8277
SELECT ALL COALESCE ( + 25, - COUNT ( * ) ) + + - 72 AS col2, COUNT ( * )
----
-47
1

query I rowsort
SELECT ALL - 15 + - 24
----
-39

query I rowsort
SELECT ALL + - 63 + 52
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT 39 * - COUNT( * ) + + AVG ( 22 ) * + + ( + - 51 ) / MIN( ALL CASE - + 47 WHEN + 18 + - ( + - ( 55 ) ) THEN + 15 END ) + COUNT( * ) * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT 39 * - COUNT ( * ) + + AVG ( 22 ) * + + ( + - 51 ) / MIN ( ALL CASE - + 47 WHEN + 18 + - ( + - ( 55 ) ) THEN + 15 END ) + COUNT ( * ) * + 74
----
NULL

query I rowsort
SELECT 30 + - 49 AS col1
----
-19

query I rowsort
SELECT - 88 * - 30
----
2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8283
SELECT - - 90 * - NULLIF ( NULLIF ( + - 46, MIN( DISTINCT - 41 ) ), - CAST( + - 93 AS SIGNED ) + - 78 + + MAX( ALL 99 ) - - - MIN( DISTINCT - 70 ) * 0 * - - 85 * - 37 * + - CAST( NULL AS SIGNED ) ) + ( - + 69 ) + 56 AS col1
----
4127

skipif mysql # not compatible
query I rowsort label-8283
SELECT - - 90 * - NULLIF ( NULLIF ( + - 46, MIN ( DISTINCT - 41 ) ), - CAST ( + - 93 AS INTEGER ) + - 78 + + MAX ( ALL 99 ) - - - MIN ( DISTINCT - 70 ) * 0 * - - 85 * - 37 * + - CAST ( NULL AS INTEGER ) ) + ( - + 69 ) + 56 AS col1
----
4127

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT COUNT( * ) + + - 33
----
-32

skipif mysql # not compatible
query I rowsort label-8284
SELECT COUNT ( * ) + + - 33
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8285
SELECT - 54 * - CAST( NULL AS SIGNED ) col0, 59 AS col2
----
NULL
59

skipif mysql # not compatible
query II rowsort label-8285
SELECT - 54 * - CAST ( NULL AS INTEGER ) col0, 59 AS col2
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - MAX( ALL 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - MAX ( ALL 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8287
SELECT CAST( - 20 AS SIGNED ) + + 38 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8287
SELECT CAST ( - 20 AS INTEGER ) + + 38 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT ALL - 66 DIV + 62 + + + 56
----
55

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - 66 / + 62 + + + 56
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8289
SELECT DISTINCT 37 DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT 37 / + 95 AS col1
----
0

query I rowsort
SELECT 47 + + 17
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT ALL 72 DIV - - 47
----
1

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL 72 / - - 47
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT 56 + NULLIF ( - ( 88 ), - - COUNT( * ) - 35 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-8292
SELECT 56 + NULLIF ( - ( 88 ), - - COUNT ( * ) - 35 ) AS col2
----
-32

query I rowsort
SELECT ALL + 80 * + 3 col2
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-8294
SELECT 7 AS col1, - COUNT( DISTINCT + 71 )
----
7
-1

skipif mysql # not compatible
query II rowsort label-8294
SELECT 7 AS col1, - COUNT ( DISTINCT + 71 )
----
7
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8295
SELECT - 87 AS col2, CAST( NULL AS SIGNED )
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-8295
SELECT - 87 AS col2, CAST ( NULL AS INTEGER )
----
-87
NULL

query I rowsort
SELECT ALL + 81 * 54
----
4374

query I rowsort
SELECT 71 * - 2 col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT 46 - 35 * - - NULLIF ( - 84, - 10 ) * + SUM( DISTINCT + 15 ) - + 45
----
44101

skipif mysql # not compatible
query I rowsort label-8298
SELECT 46 - 35 * - - NULLIF ( - 84, - 10 ) * + SUM ( DISTINCT + 15 ) - + 45
----
44101

query I rowsort
SELECT DISTINCT + 54 + 87
----
141

query I rowsort
SELECT 55 + 29
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT 61 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-8301
SELECT 61 / - 83
----
0

query I rowsort
SELECT DISTINCT - 36 + + ( 21 ) * - - 32
----
636

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT + 14 AS col0, + COUNT( 43 ) * 95 + 70
----
14
165

skipif mysql # not compatible
query II rowsort label-8303
SELECT + 14 AS col0, + COUNT ( 43 ) * 95 + 70
----
14
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL - 4 + + - COUNT( - 17 ) * + + 62 * + 58 * - COUNT( * ) * - 70 + - 16
----
-251740

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL - 4 + + - COUNT ( - 17 ) * + + 62 * + 58 * - COUNT ( * ) * - 70 + - 16
----
-251740

query I rowsort
SELECT + COALESCE ( + + 79, - - 86 * 45 + - 76 ) - 51 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8306
SELECT ALL - - CAST( NULL AS SIGNED ) / - COUNT( * ) * + 72 * ( 27 ) * - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL - - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + 72 * ( 27 ) * - ( - COUNT ( * ) )
----
NULL

query II rowsort
SELECT DISTINCT - + ( - 54 ) + + + 35 col0, 63 * - - 73 AS col2
----
89
4599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8308
SELECT ALL - 32 AS col0, + 27 - + + SUM( DISTINCT - ( CAST( 41 AS SIGNED ) ) ) AS col1
----
-32
68

skipif mysql # not compatible
query II rowsort label-8308
SELECT ALL - 32 AS col0, + 27 - + + SUM ( DISTINCT - ( CAST ( 41 AS INTEGER ) ) ) AS col1
----
-32
68

query I rowsort
SELECT ALL + 2 + 98
----
100

query I rowsort
SELECT ALL - - 57 + 70 * 32 AS col0
----
2297

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT + + 94 * - COALESCE ( + + ( + COUNT( * ) ), + 28 * - MIN( 52 ), 75 ) * + 99 AS col0
----
-9306

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + + 94 * - COALESCE ( + + ( + COUNT ( * ) ), + 28 * - MIN ( 52 ), 75 ) * + 99 AS col0
----
-9306

query I rowsort
SELECT ALL 84 + 31 col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + ( - 98 ) * + NULLIF ( - - 72, COALESCE ( + 25, + COUNT( * ) + 41 + 95, + 41 ) ) - - - 19 + + + 88
----
-6987

skipif mysql # not compatible
query I rowsort label-8313
SELECT + ( - 98 ) * + NULLIF ( - - 72, COALESCE ( + 25, + COUNT ( * ) + 41 + 95, + 41 ) ) - - - 19 + + + 88
----
-6987

onlyif mysql # aggregate syntax: 
query II rowsort label-8314
SELECT DISTINCT - - MAX( ALL + + ( 42 ) ) + - 30 + + + 12, 21 AS col1
----
24
21

skipif mysql # not compatible
query II rowsort label-8314
SELECT DISTINCT - - MAX ( ALL + + ( 42 ) ) + - 30 + + + 12, 21 AS col1
----
24
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT + CASE + 29 WHEN 46 THEN + + 39 WHEN 53 * - NULLIF ( - + 2, + 22 ) THEN 30 WHEN CASE + - 38 WHEN 70 THEN NULL WHEN + 81 THEN + MAX( DISTINCT + + 47 ) WHEN - - ( - SUM( + 42 ) ) THEN SUM( + 10 ) * ( 50 + 59 ) END THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT + CASE + 29 WHEN 46 THEN + + 39 WHEN 53 * - NULLIF ( - + 2, + 22 ) THEN 30 WHEN CASE + - 38 WHEN 70 THEN NULL WHEN + 81 THEN + MAX ( DISTINCT + + 47 ) WHEN - - ( - SUM ( + 42 ) ) THEN SUM ( + 10 ) * ( 50 + 59 ) END THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT + COUNT( DISTINCT - - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-8316
SELECT + COUNT ( DISTINCT - - 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT - 67 - COUNT( * ) + - - 70 + + - 38
----
-36

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT - 67 - COUNT ( * ) + - - 70 + + - 38
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT DISTINCT - 9 * + 17 + - + 62 AS col2, + 81 - + 69 + + SUM( DISTINCT - 33 )
----
-215
-21

skipif mysql # not compatible
query II rowsort label-8318
SELECT DISTINCT - 9 * + 17 + - + 62 AS col2, + 81 - + 69 + + SUM ( DISTINCT - 33 )
----
-215
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8319
SELECT + MIN( DISTINCT 37 ) AS col1, ( 83 )
----
37
83

skipif mysql # not compatible
query II rowsort label-8319
SELECT + MIN ( DISTINCT 37 ) AS col1, ( 83 )
----
37
83

query II rowsort
SELECT ALL - 82 AS col2, 57 + - 43 - + 3 AS col1
----
-82
11

query I rowsort
SELECT ALL 31 * - + 12 * 73 * 92
----
-2498352

onlyif mysql # aggregate syntax: 
query II rowsort label-8322
SELECT - COUNT( * ) AS col1, + 20 AS col0
----
-1
20

skipif mysql # not compatible
query II rowsort label-8322
SELECT - COUNT ( * ) AS col1, + 20 AS col0
----
-1
20

query I rowsort
SELECT 27 * - - 50 AS col0
----
1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8324
SELECT COUNT( * ) + + - 13 + - + CAST( + + 80 AS SIGNED ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-8324
SELECT COUNT ( * ) + + - 13 + - + CAST ( + + 80 AS INTEGER ) col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8325
SELECT 98 AS col1, 2 + - CAST( NULL AS SIGNED )
----
98
NULL

skipif mysql # not compatible
query II rowsort label-8325
SELECT 98 AS col1, 2 + - CAST ( NULL AS INTEGER )
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT NULLIF ( + 39, - COUNT( * ) ) - + ( - - ( COUNT( * ) ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8326
SELECT NULLIF ( + 39, - COUNT ( * ) ) - + ( - - ( COUNT ( * ) ) ) AS col1
----
38

query I rowsort
SELECT 40 * - ( + + 24 ) AS col2
----
-960

query I rowsort
SELECT 75 * + 77
----
5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8329
SELECT 46 + + 5 + + + CASE + COUNT( * ) WHEN - 51 / + - 33 THEN - 48 * + CAST( NULL AS SIGNED ) - + ( - 19 ) + - CAST( NULL AS SIGNED ) WHEN + 81 THEN + - 19 * - - ( + 72 ) + + 92 + COALESCE ( - 56, + 67 + - 50 * - 2 + 97, 73 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8329
SELECT 46 + + 5 + + + CASE + COUNT ( * ) WHEN - 51 / + - 33 THEN - 48 * + CAST ( NULL AS INTEGER ) - + ( - 19 ) + - CAST ( NULL AS INTEGER ) WHEN + 81 THEN + - 19 * - - ( + 72 ) + + 92 + COALESCE ( - 56, + 67 + - 50 * - 2 + 97, 73 ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL 74 AS col2, 57 AS col2
----
74
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8331
SELECT DISTINCT 25 AS col1, COUNT( * ) AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-8331
SELECT DISTINCT 25 AS col1, COUNT ( * ) AS col0
----
25
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8332
SELECT ALL 83 DIV COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL 83 / COUNT ( * )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT - CAST( + 24 AS SIGNED ) - COUNT( + ( + 80 ) ) - - 31
----
6

skipif mysql # not compatible
query I rowsort label-8333
SELECT - CAST ( + 24 AS INTEGER ) - COUNT ( + ( + 80 ) ) - - 31
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8334
SELECT + CASE - CASE + 42 WHEN - COUNT( * ) + + - COALESCE ( + + 32, + - 76 / - COALESCE ( + - 64, + + COUNT( * ) + + NULLIF ( + - 65, 11 * CAST( - 78 AS DECIMAL ) ) ) ) + 2 * - 5 THEN + + 7 END WHEN + MAX( - - 93 ) + + NULLIF ( 51, + 53 + + 91 ) THEN + 85 * + 7 WHEN 10 * 83 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN + 56 END * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT + CASE - CASE + 42 WHEN - COUNT ( * ) + + - COALESCE ( + + 32, + - 76 / - COALESCE ( + - 64, + + COUNT ( * ) + + NULLIF ( + - 65, 11 * CAST ( - 78 AS REAL ) ) ) ) + 2 * - 5 THEN + + 7 END WHEN + MAX ( - - 93 ) + + NULLIF ( 51, + 53 + + 91 ) THEN + 85 * + 7 WHEN 10 * 83 THEN NULL WHEN CAST ( NULL AS REAL ) THEN + 56 END * - 11
----
NULL

query II rowsort
SELECT + 23 + + 34 * + + 4 + + 56 AS col0, 70 AS col0
----
215
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8336
SELECT - COUNT( * ) - + COUNT( ALL + CAST( NULL AS DECIMAL ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8336
SELECT - COUNT ( * ) - + COUNT ( ALL + CAST ( NULL AS REAL ) ) col1
----
-1

query I rowsort
SELECT - 6 + - 19 * + 88 * COALESCE ( + + ( 74 ), - 24 ) * - 84
----
10393146

query I rowsort
SELECT ALL + 50 + - 7 * 49
----
-293

query II rowsort
SELECT 92 AS col0, 82 AS col0
----
92
82

query II rowsort
SELECT ALL 82 + + 96, 4 col0
----
178
4

query I rowsort
SELECT - CASE - 10 WHEN + - 37 * + 16 + 78 * + COALESCE ( + - 98, - 29 ) + + 28 THEN NULL WHEN + + 16 + - AVG ( DISTINCT + 82 ) THEN - + 79 + + 17 END + - 7 + - - 12 + 66
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8342
SELECT ALL 32 AS col2, - 62 * + ( + NULLIF ( - 92, - MAX( ALL 25 ) ) ) * - - COUNT( * ) - + + 80 + + 59
----
32
5683

skipif mysql # not compatible
query II rowsort label-8342
SELECT ALL 32 AS col2, - 62 * + ( + NULLIF ( - 92, - MAX ( ALL 25 ) ) ) * - - COUNT ( * ) - + + 80 + + 59
----
32
5683

onlyif mysql # aggregate syntax: 
query II rowsort label-8343
SELECT DISTINCT + COUNT( * ) + + - 18 AS col2, - 8 * - 86 AS col1
----
-17
688

skipif mysql # not compatible
query II rowsort label-8343
SELECT DISTINCT + COUNT ( * ) + + - 18 AS col2, - 8 * - 86 AS col1
----
-17
688

onlyif mysql # aggregate syntax: 
query II rowsort label-8344
SELECT - + COUNT( * ), - COUNT( * ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8344
SELECT - + COUNT ( * ), - COUNT ( * ) AS col2
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8345
SELECT DISTINCT - 26 + 14 * 40 * CASE 21 WHEN - - CASE + 4 WHEN + 91 THEN NULL WHEN - + COALESCE ( 77, 36 * + 61 * + + 29 + CAST( - 25 AS SIGNED ) + + 31 + + 8 * + 62 * - + 21 - - COUNT( * ), - 75 - - 51 ) THEN 77 END * - 62 THEN 47 + + 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - 26 + 14 * 40 * CASE 21 WHEN - - CASE + 4 WHEN + 91 THEN NULL WHEN - + COALESCE ( 77, 36 * + 61 * + + 29 + CAST ( - 25 AS INTEGER ) + + 31 + + 8 * + 62 * - + 21 - - COUNT ( * ), - 75 - - 51 ) THEN 77 END * - 62 THEN 47 + + 6 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8346
SELECT ALL + + 99 AS col2, + CASE - - ( - - 7 ) WHEN + 70 THEN NULL WHEN + + COUNT( + + 91 ) * - 21 THEN - 82 ELSE NULL END
----
99
NULL

skipif mysql # not compatible
query II rowsort label-8346
SELECT ALL + + 99 AS col2, + CASE - - ( - - 7 ) WHEN + 70 THEN NULL WHEN + + COUNT ( + + 91 ) * - 21 THEN - 82 ELSE NULL END
----
99
NULL

query II rowsort
SELECT - 66 AS col0, + 1 AS col0
----
-66
1

query III rowsort
SELECT + 78, 12 col2, + 44 * - ( 43 ) AS col1
----
78
12
-1892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT ALL - CAST( NULL AS SIGNED ) * 91 - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - CAST ( NULL AS INTEGER ) * 91 - + 21
----
NULL

query I rowsort
SELECT - - 27 * 49 * + 52
----
68796

query I rowsort
SELECT DISTINCT - - ( - 97 ) * + 55 col0
----
-5335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8352
SELECT - 21 DIV - 60 * + 94 + + + 67 + - - 96 + + + CAST( + COUNT( * ) AS SIGNED ) DIV - - 22 * + COUNT( * ) AS col1
----
163

skipif mysql # not compatible
query I rowsort label-8352
SELECT - 21 / - 60 * + 94 + + + 67 + - - 96 + + + CAST ( + COUNT ( * ) AS INTEGER ) / - - 22 * + COUNT ( * ) AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT - - 87 * 51 + CASE + MAX( DISTINCT ( + ( 9 ) ) ) WHEN + 56 THEN - + 53 + 42 / ( - COUNT( * ) ) ELSE NULL END + - - 19 * 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - - 87 * 51 + CASE + MAX ( DISTINCT ( + ( 9 ) ) ) WHEN + 56 THEN - + 53 + 42 / ( - COUNT ( * ) ) ELSE NULL END + - - 19 * 97 AS col0
----
NULL

query I rowsort
SELECT ALL + 80 * 32
----
2560

query II rowsort
SELECT + - 69 + + + 72, + 1 AS col1
----
3
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT + + 11 DIV + 36 DIV COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT + + 11 / + 36 / COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL + + NULLIF ( + - 4, + 77 * + ( - 74 ) + - 22 + - + 95 - + + COUNT( * ) + - 99 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL + + NULLIF ( + - 4, + 77 * + ( - 74 ) + - 22 + - + 95 - + + COUNT ( * ) + - 99 ) AS col2
----
-4

query I rowsort
SELECT - + 0 * - 31
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT 16 * - + ( - - 91 ) + - COUNT( * ) DIV 54 col0
----
-1456

skipif mysql # not compatible
query I rowsort label-8359
SELECT 16 * - + ( - - 91 ) + - COUNT ( * ) / 54 col0
----
-1456

query I rowsort
SELECT DISTINCT ( - 86 ) col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8361
SELECT + 36 * - - MIN( DISTINCT - 93 ) AS col1, 23 AS col0
----
-3348
23

skipif mysql # not compatible
query II rowsort label-8361
SELECT + 36 * - - MIN ( DISTINCT - 93 ) AS col1, 23 AS col0
----
-3348
23

query I rowsort
SELECT - 48 * - 82
----
3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8363
SELECT + 53 + + - CASE - CAST( NULL AS SIGNED ) WHEN - 15 THEN 43 WHEN 81 THEN CAST( COUNT( * ) AS DECIMAL ) END / + + 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT + 53 + + - CASE - CAST ( NULL AS INTEGER ) WHEN - 15 THEN 43 WHEN 81 THEN CAST ( COUNT ( * ) AS REAL ) END / + + 94 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8364
SELECT + CAST( NULL AS SIGNED ) + - NULLIF ( - COUNT( * ), COALESCE ( + COUNT( * ), 30, + - 14 ) ), - 72 AS col0, 16 - 11 AS col2
----
NULL
-72
5

skipif mysql # not compatible
query III rowsort label-8364
SELECT + CAST ( NULL AS INTEGER ) + - NULLIF ( - COUNT ( * ), COALESCE ( + COUNT ( * ), 30, + - 14 ) ), - 72 AS col0, 16 - 11 AS col2
----
NULL
-72
5

query I rowsort
SELECT ALL 35 + - 94
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT + 0 DIV + + NULLIF ( - 77, - 12 )
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 0 / + + NULLIF ( - 77, - 12 )
----
0

query I rowsort
SELECT ALL + 91 + + 98
----
189

query I rowsort
SELECT DISTINCT 41 + + + 90
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL MIN( 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL MIN ( 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT + 11 + + - 93 + 39 + - 76 * - CASE - 27 WHEN + + 24 THEN NULL ELSE - COUNT( * ) * - 92 + 47 * + + 13 END AS col1
----
53385

skipif mysql # not compatible
query I rowsort label-8370
SELECT + 11 + + - 93 + 39 + - 76 * - CASE - 27 WHEN + + 24 THEN NULL ELSE - COUNT ( * ) * - 92 + 47 * + + 13 END AS col1
----
53385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8371
SELECT DISTINCT 17 + - - NULLIF ( - CAST( NULL AS SIGNED ), 71 ) * - SUM( 3 ) + - 62, 63 * - + 82 AS col0
----
NULL
-5166

skipif mysql # not compatible
query II rowsort label-8371
SELECT DISTINCT 17 + - - NULLIF ( - CAST ( NULL AS INTEGER ), 71 ) * - SUM ( 3 ) + - 62, 63 * - + 82 AS col0
----
NULL
-5166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL 76 + - ( CASE + - 34 WHEN - + 66 * - 70 + - 18 THEN + 52 * ( - COUNT( * ) ) - NULLIF ( - 40, - - 14 ) ELSE - NULLIF ( - 32, ( 7 ) ) * CAST( NULL AS SIGNED ) - + CAST( - + 26 AS SIGNED ) / + + 65 / 56 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL 76 + - ( CASE + - 34 WHEN - + 66 * - 70 + - 18 THEN + 52 * ( - COUNT ( * ) ) - NULLIF ( - 40, - - 14 ) ELSE - NULLIF ( - 32, ( 7 ) ) * CAST ( NULL AS INTEGER ) - + CAST ( - + 26 AS INTEGER ) / + + 65 / 56 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT + 4 * - 11 - - 31 + - CAST( NULL AS SIGNED ) * COUNT( * ) * - 73 * + MIN( + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT + 4 * - 11 - - 31 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 73 * + MIN ( + 88 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8374
SELECT - + CAST( + 11 AS SIGNED ) AS col1, - CASE - 24 WHEN + 66 THEN + NULLIF ( + 34, - 18 ) END AS col0
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-8374
SELECT - + CAST ( + 11 AS INTEGER ) AS col1, - CASE - 24 WHEN + 66 THEN + NULLIF ( + 34, - 18 ) END AS col0
----
-11
NULL

query I rowsort
SELECT - 50 + + 86
----
36

query I rowsort
SELECT - + CASE + + 91 WHEN - 50 THEN 10 / - 55 + 11 + + - 28 WHEN 68 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + - 89 - - 8 * + 38
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT - + 27 * COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT - + 27 * COUNT ( * )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8379
SELECT DISTINCT + 63 DIV 24 - + - 19
----
21

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT + 63 / 24 - + - 19
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT CASE - 0 WHEN + 35 THEN NULL WHEN - 52 THEN - COUNT( * ) + - - 27 * - 95 WHEN COUNT( ALL - 75 ) THEN COUNT( * ) ELSE 58 + + 15 END
----
73

skipif mysql # not compatible
query I rowsort label-8380
SELECT CASE - 0 WHEN + 35 THEN NULL WHEN - 52 THEN - COUNT ( * ) + - - 27 * - 95 WHEN COUNT ( ALL - 75 ) THEN COUNT ( * ) ELSE 58 + + 15 END
----
73

query I rowsort
SELECT ALL + 59 * + ( 61 ) AS col1
----
3599

query I rowsort
SELECT DISTINCT 95 * 38 AS col2
----
3610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT - + 15 * + CAST( + 47 AS SIGNED ) + - 56 + 28 * + 38 * ( - 49 ) * - + 23 + - + 5 * 88 + + - MIN( 17 ) + + 57 AS col1
----
1197967

skipif mysql # not compatible
query I rowsort label-8383
SELECT - + 15 * + CAST ( + 47 AS INTEGER ) + - 56 + 28 * + 38 * ( - 49 ) * - + 23 + - + 5 * 88 + + - MIN ( 17 ) + + 57 AS col1
----
1197967

query II rowsort
SELECT ALL + + ( - 82 ) AS col2, + 27 AS col2
----
-82
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8385
SELECT - NULLIF ( + + COALESCE ( - 90, 77 * + + 65 * + CASE WHEN ( NULL ) = - 84 THEN + 89 DIV - 78 * + CASE + - 76 WHEN - - 30 DIV MAX( DISTINCT 47 ) * CAST( + 6 AS SIGNED ) + - 72 THEN 66 * COUNT( * ) * - 91 + - COUNT( * ) * - 84 + MAX( 13 ) ELSE NULL END END * + 31 ), - 95 )
----
90

skipif mysql # not compatible
query I rowsort label-8385
SELECT - NULLIF ( + + COALESCE ( - 90, 77 * + + 65 * + CASE WHEN ( NULL ) = - 84 THEN + 89 / - 78 * + CASE + - 76 WHEN - - 30 / MAX ( DISTINCT 47 ) * CAST ( + 6 AS INTEGER ) + - 72 THEN 66 * COUNT ( * ) * - 91 + - COUNT ( * ) * - 84 + MAX ( 13 ) ELSE NULL END END * + 31 ), - 95 )
----
90

query II rowsort
SELECT - COALESCE ( - - 79, + 21 ) * - - 18 - 78 + + + 98 * 47 AS col1, - 12 + 19
----
3106
7

query I rowsort
SELECT ALL + - ( 34 ) AS col2
----
-34

query I rowsort
SELECT - 10 * - 46
----
460

query I rowsort
SELECT - ( + 72 ) * + + 9 + + 42 AS col1
----
-606

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT DISTINCT + 39 * - + COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT + 39 * - + COUNT ( * ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT DISTINCT + 78 AS col1, + 89 + - + COUNT( * ) + 5 * + + 2 * + CASE + - 42 WHEN 85 THEN + 83 END
----
78
NULL

skipif mysql # not compatible
query II rowsort label-8391
SELECT DISTINCT + 78 AS col1, + 89 + - + COUNT ( * ) + 5 * + + 2 * + CASE + - 42 WHEN 85 THEN + 83 END
----
78
NULL

query I rowsort
SELECT ALL + 21 * - 59
----
-1239

query I rowsort
SELECT 56 * + - 18 AS col0
----
-1008

query II rowsort
SELECT ALL - 94, 89 AS col2
----
-94
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT + 40 * + NULLIF ( SUM( 41 ), - - 18 + + 2 ) AS col1
----
1640

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + 40 * + NULLIF ( SUM ( 41 ), - - 18 + + 2 ) AS col1
----
1640

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8396
SELECT 36, - ( + - 71 ) DIV - NULLIF ( 17, + 41 + + 99 ) + COALESCE ( + COUNT( DISTINCT 52 ), - + NULLIF ( 27, 56 * SUM( DISTINCT + - 38 ) ), + + 2 + - - 40, + 24 ) DIV COUNT( * ) col0
----
36
-3

skipif mysql # not compatible
query II rowsort label-8396
SELECT 36, - ( + - 71 ) / - NULLIF ( 17, + 41 + + 99 ) + COALESCE ( + COUNT ( DISTINCT 52 ), - + NULLIF ( 27, 56 * SUM ( DISTINCT + - 38 ) ), + + 2 + - - 40, + 24 ) / COUNT ( * ) col0
----
36
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT 75 DIV - 4
----
-18

skipif mysql # not compatible
query I rowsort label-8397
SELECT 75 / - 4
----
-18

query I rowsort
SELECT ALL + 22 + - + 66
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8399
SELECT 46 + + 78 * + - CAST( NULL AS SIGNED ) * + - 71 + - 2 * - CASE - - COUNT( + CAST( NULL AS DECIMAL ) ) WHEN + AVG ( - 47 ) THEN + + 85 WHEN + 37 * + CAST( NULL AS SIGNED ) * + + 81 THEN - + ( 49 ) END / - - MIN( - 3 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT 46 + + 78 * + - CAST ( NULL AS INTEGER ) * + - 71 + - 2 * - CASE - - COUNT ( + CAST ( NULL AS REAL ) ) WHEN + AVG ( - 47 ) THEN + + 85 WHEN + 37 * + CAST ( NULL AS INTEGER ) * + + 81 THEN - + ( 49 ) END / - - MIN ( - 3 ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT MIN( 85 ) * + 14 + ( + 87 ) col2
----
1277

skipif mysql # not compatible
query I rowsort label-8400
SELECT MIN ( 85 ) * + 14 + ( + 87 ) col2
----
1277

query I rowsort
SELECT 55 + + 52 - + - 52 AS col1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT ALL - 50 + + ( - NULLIF ( - - COALESCE ( + + COUNT( * ), - - MIN( ALL + + 68 ) * 61, - + 93 + + 71 + 46, - 25 + 60 + + 19 ), + 43 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL - 50 + + ( - NULLIF ( - - COALESCE ( + + COUNT ( * ), - - MIN ( ALL + + 68 ) * 61, - + 93 + + 71 + 46, - 25 + 60 + + 19 ), + 43 ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT 65 + COUNT( + 65 )
----
66

skipif mysql # not compatible
query I rowsort label-8403
SELECT 65 + COUNT ( + 65 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8404
SELECT NULLIF ( - SUM( - 39 ), + 42 ) DIV - - 43
----
0

skipif mysql # not compatible
query I rowsort label-8404
SELECT NULLIF ( - SUM ( - 39 ), + 42 ) / - - 43
----
0

query II rowsort
SELECT 66 AS col0, 70
----
66
70

query I rowsort
SELECT DISTINCT + 5 + 53 AS col1
----
58

query I rowsort
SELECT ALL + 87 + + 70 * 68
----
4847

query II rowsort
SELECT DISTINCT 99, 71 AS col0
----
99
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL COUNT( ALL 16 ) + + 50 + - - 58 - COUNT( * ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL COUNT ( ALL 16 ) + + 50 + - - 58 - COUNT ( * ) AS col0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT COUNT( * ) * + 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8410
SELECT COUNT ( * ) * + 23 AS col0
----
23

query I rowsort
SELECT ALL + + 13 * + 86
----
1118

query I rowsort
SELECT - 11 - - + 81
----
70

query I rowsort
SELECT - 64 * - 91 AS col0
----
5824

query II rowsort
SELECT - 89 AS col0, - 66 AS col2
----
-89
-66

query I rowsort
SELECT DISTINCT + - 70 * 69
----
-4830

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT MAX( DISTINCT - 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT MAX ( DISTINCT - 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT 30 * 10 * SUM( + 37 ) AS col2
----
11100

skipif mysql # not compatible
query I rowsort label-8417
SELECT 30 * 10 * SUM ( + 37 ) AS col2
----
11100

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT SUM( ALL - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8418
SELECT SUM ( ALL - 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL - COALESCE ( 1, - 99, - 92 * + 28 * + 48 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL - COALESCE ( 1, - 99, - 92 * + 28 * + 48 ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8420
SELECT - 27 DIV - COALESCE ( - 72, - 18 * - + 85 * 33 ) * - 80 DIV + + 68 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8420
SELECT - 27 / - COALESCE ( - 72, - 18 * - + 85 * 33 ) * - 80 / + + 68 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8421
SELECT ALL 97 DIV COUNT( * ) + 59
----
156

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL 97 / COUNT ( * ) + 59
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT ALL 24 * + + CASE - - COUNT( * ) WHEN 64 THEN 51 WHEN COUNT( * ) THEN + 25 ELSE 3 END + - - COUNT( * ), 24 col2
----
601
24

skipif mysql # not compatible
query II rowsort label-8422
SELECT ALL 24 * + + CASE - - COUNT ( * ) WHEN 64 THEN 51 WHEN COUNT ( * ) THEN + 25 ELSE 3 END + - - COUNT ( * ), 24 col2
----
601
24

query I rowsort
SELECT + 63 * + 95
----
5985

query I rowsort
SELECT + 3 + 81
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - - NULLIF ( - 9, - + 88 + - 70 ) * - 15 * - + 14 * + 83 + + NULLIF ( + 37, - 74 * 56 + + + 47 + - 67 + - 55 + + 95 * 34 * + 9 ) + + 67 * - NULLIF ( + ( - MIN( ALL 27 ) ), - 40 * + 57 ) * 2 * - 61 AS col1
----
-377531

skipif mysql # not compatible
query I rowsort label-8425
SELECT - - NULLIF ( - 9, - + 88 + - 70 ) * - 15 * - + 14 * + 83 + + NULLIF ( + 37, - 74 * 56 + + + 47 + - 67 + - 55 + + 95 * 34 * + 9 ) + + 67 * - NULLIF ( + ( - MIN ( ALL 27 ) ), - 40 * + 57 ) * 2 * - 61 AS col1
----
-377531

query I rowsort
SELECT ALL - 81 + 41 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT 65 + - ( - ( - 34 ) ) * COUNT( * ) * + 84 * - - 54 AS col2
----
-154159

skipif mysql # not compatible
query I rowsort label-8427
SELECT 65 + - ( - ( - 34 ) ) * COUNT ( * ) * + 84 * - - 54 AS col2
----
-154159

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL 66 + - ( ( + COUNT( - 57 ) ) )
----
65

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL 66 + - ( ( + COUNT ( - 57 ) ) )
----
65

query I rowsort
SELECT ALL 42 + + ( - 50 ) AS col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT DISTINCT 1 + + + CAST( - 54 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT 1 + + + CAST ( - 54 AS INTEGER ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL + 18 + + - 56 - 64 * + 18 + - COUNT( * ) * 37
----
-1227

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL + 18 + + - 56 - 64 * + 18 + - COUNT ( * ) * 37
----
-1227

query I rowsort
SELECT DISTINCT - COALESCE ( - 72, - 92 * ( - 36 ) )
----
72

query I rowsort
SELECT ALL 0 + - - 9
----
9

query I rowsort
SELECT DISTINCT + 73 - + 92 + - 90 AS col0
----
-109

query I rowsort
SELECT ALL + 91 * - 57
----
-5187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8436
SELECT COUNT( * ) * - COUNT( * ) DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT COUNT ( * ) * - COUNT ( * ) / 99 AS col1
----
0

query I rowsort
SELECT ALL - 28 * - 32 * 54
----
48384

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT + CASE + - COUNT( - + 17 ) WHEN - 75 THEN 23 WHEN 10 THEN NULL ELSE + 89 + 82 END
----
171

skipif mysql # not compatible
query I rowsort label-8438
SELECT + CASE + - COUNT ( - + 17 ) WHEN - 75 THEN 23 WHEN 10 THEN NULL ELSE + 89 + 82 END
----
171

query I rowsort
SELECT ALL - 94 - ( - - 86 ) * - 53 AS col1
----
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT 76 * COUNT( * ) - 17 * 97 + - 93 + + 5 + + + 53
----
-1608

skipif mysql # not compatible
query I rowsort label-8440
SELECT 76 * COUNT ( * ) - 17 * 97 + - 93 + + 5 + + + 53
----
-1608

query I rowsort
SELECT + 62 * 22
----
1364

query I rowsort
SELECT - ( 20 ) + + - 69
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT ALL 28 * - - CASE 59 WHEN - CASE + + 0 WHEN COUNT( * ) THEN - 8 ELSE 39 END DIV + - 55 + + NULLIF ( - SUM( - - 53 ), AVG ( DISTINCT + 15 ) * 54 ) + 77 - + 55 THEN NULL WHEN - - NULLIF ( 52, + + 72 ) THEN NULL ELSE - 78 + - 78 END * + MIN( + 0 ) DIV + MIN( DISTINCT NULLIF ( + 41, 17 ) ) + + 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL 28 * - - CASE 59 WHEN - CASE + + 0 WHEN COUNT ( * ) THEN - 8 ELSE 39 END / + - 55 + + NULLIF ( - SUM ( - - 53 ), AVG ( DISTINCT + 15 ) * 54 ) + 77 - + 55 THEN NULL WHEN - - NULLIF ( 52, + + 72 ) THEN NULL ELSE - 78 + - 78 END * + MIN ( + 0 ) / + MIN ( DISTINCT NULLIF ( + 41, 17 ) ) + + 17 AS col2
----
17

query I rowsort
SELECT 45 * - + 24 AS col1
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT CASE WHEN NOT 66 NOT BETWEEN + COUNT( * ) * - ( 15 ) + - + 56 - + 3 + - - 50 * + NULLIF ( - 30, + 35 * - 27 + + MIN( ALL + 62 ) ) * + COUNT( * ) AND + + 34 + + ( 59 ) - + 73 THEN + COUNT( * ) - + 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT CASE WHEN NOT 66 NOT BETWEEN + COUNT ( * ) * - ( 15 ) + - + 56 - + 3 + - - 50 * + NULLIF ( - 30, + 35 * - 27 + + MIN ( ALL + 62 ) ) * + COUNT ( * ) AND + + 34 + + ( 59 ) - + 73 THEN + COUNT ( * ) - + 74 END
----
NULL

query I rowsort
SELECT 94 + - 18 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT 25 * + 5 * - COUNT( * ) / - - CASE + - 69 WHEN - + 98 / - 13 THEN 46 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT 25 * + 5 * - COUNT ( * ) / - - CASE + - 69 WHEN - + 98 / - 13 THEN 46 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + COUNT( * ) + - 95
----
-94

skipif mysql # not compatible
query I rowsort label-8448
SELECT + COUNT ( * ) + - 95
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT - SUM( ALL + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-8449
SELECT - SUM ( ALL + 37 )
----
-37

query I rowsort
SELECT ALL - 1 + - 73
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + COUNT( * ) * + 30 * - 78
----
-2340

skipif mysql # not compatible
query I rowsort label-8451
SELECT + COUNT ( * ) * + 30 * - 78
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT ALL 55 / - - 48 * + NULLIF ( - COUNT( DISTINCT - 85 ), - COUNT( * ) ) / - 90 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL 55 / - - 48 * + NULLIF ( - COUNT ( DISTINCT - 85 ), - COUNT ( * ) ) / - 90 col0
----
NULL

query I rowsort
SELECT COALESCE ( - 22, + 2 - + + ( - 35 ) )
----
-22

query I rowsort
SELECT COALESCE ( + 5, + 74 + - 35 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT SUM( ALL + 49 ) * - - ( + 7 ) + + + 2 + + COUNT( 92 ) + 88 + + 91
----
525

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT SUM ( ALL + 49 ) * - - ( + 7 ) + + + 2 + + COUNT ( 92 ) + 88 + + 91
----
525

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT ALL 19 DIV - + 56
----
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL 19 / - + 56
----
0

query I rowsort
SELECT DISTINCT 54 * - + 85 * - - 93
----
-426870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL 92 * + 56 + + COALESCE ( ( - COUNT( * ) ), MAX( + - 1 ) ) - - + 51 - - - 87 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL 92 * + 56 + + COALESCE ( ( - COUNT ( * ) ), MAX ( + - 1 ) ) - - + 51 - - - 87 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + 5 * + - COUNT( * ) - - + 70 + 48 * + - 99 col2
----
-4687

skipif mysql # not compatible
query I rowsort label-8459
SELECT + 5 * + - COUNT ( * ) - - + 70 + 48 * + - 99 col2
----
-4687

query I rowsort
SELECT + 77 * + 29 AS col2
----
2233

query II rowsort
SELECT ALL + 45 col0, 13 AS col2
----
45
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8462
SELECT ALL 23 * + CAST( NULL AS DECIMAL ) - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL 23 * + CAST ( NULL AS REAL ) - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT COUNT( DISTINCT + + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-8463
SELECT COUNT ( DISTINCT + + 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + COUNT( * ) * + + 67 - NULLIF ( - 89, - - 91 * - 61 + SUM( - 40 ) ) - + COUNT( * ) * + 15 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + COUNT ( * ) * + + 67 - NULLIF ( - 89, - - 91 * - 61 + SUM ( - 40 ) ) - + COUNT ( * ) * + 15 AS col0
----
141

query I rowsort
SELECT DISTINCT 94 * 56
----
5264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT DISTINCT 4 * + 89 * CAST( - - 93 AS SIGNED ) - + 16 AS col1
----
33092

skipif mysql # not compatible
query I rowsort label-8466
SELECT DISTINCT 4 * + 89 * CAST ( - - 93 AS INTEGER ) - + 16 AS col1
----
33092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT + CAST( NULL AS SIGNED ) + + AVG ( DISTINCT - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( DISTINCT - 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL + MIN( DISTINCT - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL + MIN ( DISTINCT - 39 )
----
-39

query I rowsort
SELECT 60 * - - 42 - - 71 + 52 AS col1
----
2643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT ALL + CAST( + 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + CAST ( + 46 AS INTEGER )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT - MAX( DISTINCT 42 ) * 7 + 63
----
-231

skipif mysql # not compatible
query I rowsort label-8471
SELECT - MAX ( DISTINCT 42 ) * 7 + 63
----
-231

query I rowsort
SELECT ALL - + 70 * 3 * - - 56 AS col0
----
-11760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8473
SELECT ALL - + COUNT( - 10 ) * - + 77 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - + COUNT ( - 10 ) * - + 77 / 53
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8474
SELECT - + COUNT( * ), + 81 AS col2
----
-1
81

skipif mysql # not compatible
query II rowsort label-8474
SELECT - + COUNT ( * ), + 81 AS col2
----
-1
81

query I rowsort
SELECT + + 33 * + 9 AS col1
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8476
SELECT - + 27 + - MIN( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT - + 27 + - MIN ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT - 18 * - 64 * 61 + + 75 + - - COUNT( * )
----
70348

skipif mysql # not compatible
query I rowsort label-8477
SELECT - 18 * - 64 * 61 + + 75 + - - COUNT ( * )
----
70348

query I rowsort
SELECT - - 53 + - 80
----
-27

query I rowsort
SELECT - NULLIF ( 79, 64 * 12 ) * - 7
----
553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8480
SELECT ALL - - 3 + + 67 - + 1 + - MIN( + + 37 ) + - 43 * 78 * + + 64 * + + 41 + - - 10 DIV 33 AS col2
----
-8800864

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - - 3 + + 67 - + 1 + - MIN ( + + 37 ) + - 43 * 78 * + + 64 * + + 41 + - - 10 / 33 AS col2
----
-8800864

query I rowsort
SELECT ALL + 97 + 9 + - 59
----
47

query I rowsort
SELECT - 89 + - 17 + - 77 AS col0
----
-183

query II rowsort
SELECT ALL - 19, - ( - 91 ) AS col1
----
-19
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT COUNT( * ) * 17 col1
----
17

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT COUNT ( * ) * 17 col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8485
SELECT ALL - + COUNT( * ) + CAST( NULL AS SIGNED ) + 96 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL - + COUNT ( * ) + CAST ( NULL AS INTEGER ) + 96 + - COUNT ( * )
----
NULL

query II rowsort
SELECT - 2, + 51 AS col1
----
-2
51

query II rowsort
SELECT 47, + 47 + - + ( + + 76 ) col0
----
47
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8488
SELECT + 55 - - 88 * + - CAST( 10 AS SIGNED ) + 6 col0
----
-819

skipif mysql # not compatible
query I rowsort label-8488
SELECT + 55 - - 88 * + - CAST ( 10 AS INTEGER ) + 6 col0
----
-819

onlyif mysql # DIV for integer division: 
query I rowsort label-8489
SELECT DISTINCT 8 DIV - 53 + - 86 col0
----
-86

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT 8 / - 53 + - 86 col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT ALL + NULLIF ( 99, + ( ( + + COUNT( * ) ) ) * + 2 - 79 - 25 )
----
99

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL + NULLIF ( 99, + ( ( + + COUNT ( * ) ) ) * + 2 - 79 - 25 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8491
SELECT + 89 DIV + - 43 + - 63 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8491
SELECT + 89 / + - 43 + - 63 AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8492
SELECT CAST( NULL AS SIGNED ), + 25 + + 29 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-8492
SELECT CAST ( NULL AS INTEGER ), + 25 + + 29 AS col2
----
NULL
54

query I rowsort
SELECT + NULLIF ( + + 43, 49 ) AS col2
----
43

query I rowsort
SELECT ALL 13 * - + 22 AS col1
----
-286

query I rowsort
SELECT - 19 + 52 AS col2
----
33

query I rowsort
SELECT DISTINCT - 18 * - 82 col2
----
1476

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL + COALESCE ( - COUNT( * ), 41 * 17 )
----
-1

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + COALESCE ( - COUNT ( * ), 41 * 17 )
----
-1

query I rowsort
SELECT - 54 * 55
----
-2970

query I rowsort
SELECT ALL - 0 * 79 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( + + 14 )
----
14

query I rowsort
SELECT ALL - 91 * + 52 AS col1
----
-4732

query I rowsort
SELECT + 47 + - 16
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-8503
SELECT - 18 DIV - 54 AS col2, 78 + 57
----
0
135

skipif mysql # not compatible
query II rowsort label-8503
SELECT - 18 / - 54 AS col2, 78 + 57
----
0
135

onlyif mysql # aggregate syntax: 
query II rowsort label-8504
SELECT + 23 * COUNT( * ), + CASE + - 72 WHEN + 60 * 51 * + 24 THEN NULL WHEN + 48 THEN + - AVG ( ( 60 ) ) - 6 / + - COUNT( * ) * - - 62 END AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-8504
SELECT + 23 * COUNT ( * ), + CASE + - 72 WHEN + 60 * 51 * + 24 THEN NULL WHEN + 48 THEN + - AVG ( ( 60 ) ) - 6 / + - COUNT ( * ) * - - 62 END AS col0
----
23
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT ALL - 56 DIV 34
----
-1

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL - 56 / 34
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT DISTINCT + CASE + - 39 WHEN + - CASE + 82 WHEN - - 80 * MIN( - ( + 14 ) ) THEN NULL WHEN + COUNT( * ) THEN + 84 - 7 * - - 17 END + - + 42 * - 46 THEN NULL WHEN + COUNT( * ) + 20 THEN - - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + CASE + - 39 WHEN + - CASE + 82 WHEN - - 80 * MIN ( - ( + 14 ) ) THEN NULL WHEN + COUNT ( * ) THEN + 84 - 7 * - - 17 END + - + 42 * - 46 THEN NULL WHEN + COUNT ( * ) + 20 THEN - - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT + 75 * ( + COUNT( * ) ) col1
----
75

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT + 75 * ( + COUNT ( * ) ) col1
----
75

query II rowsort
SELECT - + 82 AS col2, - 96 * - 78
----
-82
7488

query I rowsort
SELECT ALL - 96 * - + 45 + + + 78 + + 91 - - 57
----
4546

query I rowsort
SELECT + + 37 - - - 71
----
-34

query I rowsort
SELECT - + ( + 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL + COUNT( * ) * ( + ( + - 45 ) ) * - 48 * - 42 AS col2
----
-90720

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + COUNT ( * ) * ( + ( + - 45 ) ) * - 48 * - 42 AS col2
----
-90720

query I rowsort
SELECT - NULLIF ( 51, - 88 )
----
-51

query II rowsort
SELECT - 31 col1, 66 AS col1
----
-31
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT + + ( + + 95 ) * - 17 + MAX( ALL 83 ) AS col1
----
-1532

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT + + ( + + 95 ) * - 17 + MAX ( ALL 83 ) AS col1
----
-1532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8516
SELECT + + SUM( - COALESCE ( + + 40, + 66 * CAST( NULL AS SIGNED ) * + 32, + 61 DIV 46 ) ) * + 54 * 60 AS col2
----
-129600

skipif mysql # not compatible
query I rowsort label-8516
SELECT + + SUM ( - COALESCE ( + + 40, + 66 * CAST ( NULL AS INTEGER ) * + 32, + 61 / 46 ) ) * + 54 * 60 AS col2
----
-129600

query I rowsort
SELECT - + 82 * + 14 + + + 70 col1
----
-1078

query I rowsort
SELECT DISTINCT 86 + - 33
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8519
SELECT ALL + 1 + - 77, - CASE + SUM( + 72 ) WHEN - 85 THEN 66 ELSE - - 14 DIV - - 73 END AS col1
----
-76
0

skipif mysql # not compatible
query II rowsort label-8519
SELECT ALL + 1 + - 77, - CASE + SUM ( + 72 ) WHEN - 85 THEN 66 ELSE - - 14 / - - 73 END AS col1
----
-76
0

query II rowsort
SELECT ALL + 98, - ( - 26 ) * - 84 AS col2
----
98
-2184

query I rowsort
SELECT DISTINCT 34 + - ( 26 )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT - 74 * - ( - CAST( COUNT( DISTINCT + - ( + 71 ) ) AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8522
SELECT - 74 * - ( - CAST ( COUNT ( DISTINCT + - ( + 71 ) ) AS INTEGER ) )
----
-74

query I rowsort
SELECT ALL - 10 * - 87 AS col1
----
870

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT DISTINCT + 52 + - 62 - + 90 DIV 73 DIV + 44 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT + 52 + - 62 - + 90 / 73 / + 44 AS col0
----
-10

query I rowsort
SELECT - + ( - + 55 ) AS col2
----
55

query I rowsort
SELECT DISTINCT + 19 + + 32 AS col1
----
51

query I rowsort
SELECT ( 46 ) + - NULLIF ( + + 7, + 42 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8528
SELECT 84 - + COUNT( * ), 20 AS col1
----
83
20

skipif mysql # not compatible
query II rowsort label-8528
SELECT 84 - + COUNT ( * ), 20 AS col1
----
83
20

query I rowsort
SELECT DISTINCT - 22 - - 29
----
7

query I rowsort
SELECT 65 * + 76 AS col2
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL - COUNT( * ) - - 95 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL - COUNT ( * ) - - 95 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT DISTINCT + 50 DIV - 2 col1
----
-25

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT + 50 / - 2 col1
----
-25

query I rowsort
SELECT + 34 * + + 30 + - NULLIF ( 65, - 13 / + 57 + + 23 * - 93 ) AS col2
----
955

query I rowsort
SELECT ALL - 5 - + - 45
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8535
SELECT DISTINCT - CAST( - + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT - CAST ( - + 67 AS INTEGER )
----
67

query I rowsort
SELECT ALL - ( - - 78 ) AS col0
----
-78

query I rowsort
SELECT 19 * - 49
----
-931

query I rowsort
SELECT ALL - 69 * 71 AS col1
----
-4899

query I rowsort
SELECT 90 * - 28 * 42 col2
----
-105840

query I rowsort
SELECT ALL - 60 * + 89
----
-5340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8541
SELECT - 58 * - - 16 - 0 DIV + + COUNT( + 23 ) col1, + 83
----
-928
83

skipif mysql # not compatible
query II rowsort label-8541
SELECT - 58 * - - 16 - 0 / + + COUNT ( + 23 ) col1, + 83
----
-928
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL - MAX( DISTINCT 38 ) * + + 16 AS col0
----
-608

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - MAX ( DISTINCT 38 ) * + + 16 AS col0
----
-608

query II rowsort
SELECT DISTINCT - ( - 60 ) AS col0, 89
----
60
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + 55 * - - 65 - + + MIN( DISTINCT + 25 ) * 4 * - + COUNT( * ) * + ( - - 79 ) * 52
----
414375

skipif mysql # not compatible
query I rowsort label-8544
SELECT + 55 * - - 65 - + + MIN ( DISTINCT + 25 ) * 4 * - + COUNT ( * ) * + ( - - 79 ) * 52
----
414375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL - + COUNT( * ) + - 87 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - + COUNT ( * ) + - 87 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 89 * - + 28 * 36 AS col0
----
-89712

query II rowsort
SELECT ALL 61 + + + 5 col0, - 78 AS col1
----
66
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT - COUNT( * ) * 82 * 32
----
-2624

skipif mysql # not compatible
query I rowsort label-8548
SELECT - COUNT ( * ) * 82 * 32
----
-2624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT ALL CAST( 75 AS SIGNED ) + + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL CAST ( 75 AS INTEGER ) + + COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8550
SELECT ALL - 14 * + - 51 AS col2, - COUNT( ALL COALESCE ( - 10, + 7 ) ) AS col1
----
714
-1

skipif mysql # not compatible
query II rowsort label-8550
SELECT ALL - 14 * + - 51 AS col2, - COUNT ( ALL COALESCE ( - 10, + 7 ) ) AS col1
----
714
-1

query I rowsort
SELECT DISTINCT - + 82 + + - 91
----
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-8552
SELECT ALL + 81 * COUNT( * ) AS col1, 19 AS col1
----
81
19

skipif mysql # not compatible
query II rowsort label-8552
SELECT ALL + 81 * COUNT ( * ) AS col1, 19 AS col1
----
81
19

query II rowsort
SELECT + 71 + + - 81 AS col1, 46 AS col0
----
-10
46

query II rowsort
SELECT ALL - 70 + 65 + + 55 col2, - 47 + 65 AS col1
----
50
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8555
SELECT CASE + - 12 WHEN - SUM( ALL - 89 ) * CASE - ( - CAST( NULL AS SIGNED ) ) WHEN + - 32 * + 73 THEN NULL WHEN + 92 THEN + 95 + + + ( - CASE - 17 WHEN - - 44 * + NULLIF ( - 60, 13 * + MAX( - + 0 ) ) THEN - 70 WHEN + 55 THEN COUNT( * ) END ) / + + 60 ELSE NULL END THEN + 76 END + 20 - + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT CASE + - 12 WHEN - SUM ( ALL - 89 ) * CASE - ( - CAST ( NULL AS INTEGER ) ) WHEN + - 32 * + 73 THEN NULL WHEN + 92 THEN + 95 + + + ( - CASE - 17 WHEN - - 44 * + NULLIF ( - 60, 13 * + MAX ( - + 0 ) ) THEN - 70 WHEN + 55 THEN COUNT ( * ) END ) / + + 60 ELSE NULL END THEN + 76 END + 20 - + + 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT DISTINCT + 37 + COUNT( * ) * + + 32 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT + 37 + COUNT ( * ) * + + 32 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT - COUNT( * ) * - ( - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-8557
SELECT - COUNT ( * ) * - ( - + 43 )
----
-43

query II rowsort
SELECT DISTINCT ( + - 93 ) AS col2, + 65 * - 79
----
-93
-5135

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL 91 - + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL 91 - + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT - COUNT( * ) AS col2, + 39 * + 32
----
-1
1248

skipif mysql # not compatible
query II rowsort label-8560
SELECT - COUNT ( * ) AS col2, + 39 * + 32
----
-1
1248

onlyif mysql # aggregate syntax: 
query II rowsort label-8561
SELECT DISTINCT 15 col0, + COUNT( * ) AS col2
----
15
1

skipif mysql # not compatible
query II rowsort label-8561
SELECT DISTINCT 15 col0, + COUNT ( * ) AS col2
----
15
1

query I rowsort
SELECT 74 - - 43 col1
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT 28 * SUM( ALL - - 33 ) - MAX( + CAST( NULL AS SIGNED ) ) / + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT 28 * SUM ( ALL - - 33 ) - MAX ( + CAST ( NULL AS INTEGER ) ) / + - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ( - 23 ) * MAX( - 39 )
----
897

skipif mysql # not compatible
query I rowsort label-8564
SELECT ( - 23 ) * MAX ( - 39 )
----
897

query I rowsort
SELECT 25 * 89
----
2225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL - CASE COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) THEN + 35 * - 13 + + COUNT( * ) + + 50 + + CASE + + 23 WHEN + + 1 / 12 THEN NULL ELSE 91 / 62 * - 53 END + - - 7 / - 13 * ( - 97 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL - CASE COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) THEN + 35 * - 13 + + COUNT ( * ) + + 50 + + CASE + + 23 WHEN + + 1 / 12 THEN NULL ELSE 91 / 62 * - 53 END + - - 7 / - 13 * ( - 97 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT ALL - COUNT( 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL - COUNT ( 28 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL - MIN( - - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL - MIN ( - - 75 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT 2 DIV - ( - ( + 7 ) ) * - 22 + - - ( - SUM( DISTINCT - 28 ) ) + + SUM( 67 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8569
SELECT 2 / - ( - ( + 7 ) ) * - 22 + - - ( - SUM ( DISTINCT - 28 ) ) + + SUM ( 67 ) AS col1
----
95

query I rowsort
SELECT ALL + 31 * + + 22 * 50 + 7 AS col1
----
34107

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL - 80 * - 64 * + 67 + MAX( - 51 ) AS col2
----
342989

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - 80 * - 64 * + 67 + MAX ( - 51 ) AS col2
----
342989

query I rowsort
SELECT 68 * - + 94 AS col0
----
-6392

query I rowsort
SELECT - 62 + + - 76
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT DISTINCT + + COUNT( * ) + 16 + + 60 * 65 AS col2
----
3917

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT + + COUNT ( * ) + 16 + + 60 * 65 AS col2
----
3917

query I rowsort
SELECT ALL - 34 + - 40
----
-74

query I rowsort
SELECT DISTINCT + 76 * + 15 col2
----
1140

query I rowsort
SELECT - + 54 * - 3 + + 4 AS col0
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8578
SELECT DISTINCT + + MAX( + - CAST( NULL AS SIGNED ) ) * - 60 AS col1, COALESCE ( ( - - COUNT( * ) ), - CASE + - COUNT( 43 ) WHEN 25 THEN - + COUNT( * ) END ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8578
SELECT DISTINCT + + MAX ( + - CAST ( NULL AS INTEGER ) ) * - 60 AS col1, COALESCE ( ( - - COUNT ( * ) ), - CASE + - COUNT ( 43 ) WHEN 25 THEN - + COUNT ( * ) END ) AS col1
----
NULL
1

query I rowsort
SELECT DISTINCT + 32 + 42 + 58 + 8 * + 14 + + 6 + + 90 AS col0
----
340

query I rowsort
SELECT - 65 * + 33 AS col0
----
-2145

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT - 9 - + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-8581
SELECT - 9 - + COUNT ( * )
----
-10

query II rowsort
SELECT - 89 AS col0, 74 AS col2
----
-89
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT + 92 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-8583
SELECT + 92 / - 98
----
0

query I rowsort
SELECT + - 22 + - + 37 * - 95
----
3493

onlyif mysql # DIV for integer division: 
query I rowsort label-8585
SELECT DISTINCT - ( - 57 ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT - ( - 57 ) / + 75
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8586
SELECT ALL + CAST( - + SUM( 71 ) AS DECIMAL ) - - 40 + - CASE - 54 WHEN CASE - 29 WHEN 27 THEN + + 46 WHEN - 75 - + 25 + 68 * 71 * - - MIN( + 4 ) THEN NULL ELSE + 95 + - 26 / + - 99 END * + CASE 88 WHEN - + SUM( DISTINCT - 24 ) + + + 2 THEN NULL ELSE + 43 END THEN + 89 WHEN 52 THEN NULL ELSE - + ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) END + 66 * SUM( ALL 61 ) * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + CAST ( - + SUM ( 71 ) AS REAL ) - - 40 + - CASE - 54 WHEN CASE - 29 WHEN 27 THEN + + 46 WHEN - 75 - + 25 + 68 * 71 * - - MIN ( + 4 ) THEN NULL ELSE + 95 + - 26 / + - 99 END * + CASE 88 WHEN - + SUM ( DISTINCT - 24 ) + + + 2 THEN NULL ELSE + 43 END THEN + 89 WHEN 52 THEN NULL ELSE - + ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) END + 66 * SUM ( ALL 61 ) * 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8587
SELECT - CASE + 37 WHEN - 32 THEN + 31 - - MAX( + 25 ) ELSE NULL END AS col2, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8587
SELECT - CASE + 37 WHEN - 32 THEN + 31 - - MAX ( + 25 ) ELSE NULL END AS col2, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8588
SELECT - COUNT( + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-8588
SELECT - COUNT ( + CAST ( NULL AS REAL ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8589
SELECT DISTINCT - 59 DIV + 38
----
-1

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - 59 / + 38
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT ALL CASE - - 69 WHEN + 83 THEN 54 * + - 42 * + 96 + + ( + ( + 39 ) ) + 38 WHEN - + 61 THEN NULL WHEN - - 62 * - - ( 63 ) * CAST( NULL AS SIGNED ) THEN - 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL CASE - - 69 WHEN + 83 THEN 54 * + - 42 * + 96 + + ( + ( + 39 ) ) + 38 WHEN - + 61 THEN NULL WHEN - - 62 * - - ( 63 ) * CAST ( NULL AS INTEGER ) THEN - 6 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 95 * + 75 * - 9 AS col2
----
-64125

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT - NULLIF ( - MIN( ALL - 68 ), COUNT( * ) ) + ( - COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-8592
SELECT - NULLIF ( - MIN ( ALL - 68 ), COUNT ( * ) ) + ( - COUNT ( * ) )
----
-69

query I rowsort
SELECT + 24 * 93 col2
----
2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8594
SELECT + 42 + + ( - + 2 ) DIV 72 + + - 87 + COUNT( * ) * COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8594
SELECT + 42 + + ( - + 2 ) / 72 + + - 87 + COUNT ( * ) * COUNT ( * )
----
-44

query I rowsort
SELECT + 18 + - + 47
----
-29

query I rowsort
SELECT ALL 94 * + 67
----
6298

query I rowsort
SELECT DISTINCT 53 + + + 13
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL + 3 / - 22 * + 10 + 12 + CAST( NULL AS SIGNED ) - ( - CASE WHEN NOT 42 IS NULL THEN + 22 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + 3 / - 22 * + 10 + 12 + CAST ( NULL AS INTEGER ) - ( - CASE WHEN NOT 42 IS NULL THEN + 22 END )
----
NULL

query I rowsort
SELECT ( 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + 58 * - COUNT( * ) col0
----
-58

skipif mysql # not compatible
query I rowsort label-8600
SELECT + 58 * - COUNT ( * ) col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8601
SELECT 34 DIV - - 44 - - COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8601
SELECT 34 / - - 44 - - COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8602
SELECT ALL CAST( NULL AS SIGNED ) * + CASE 98 WHEN 76 THEN + 16 WHEN - 54 + COUNT( * ) * 93 THEN - 87 ELSE + + 66 * SUM( + - 54 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL CAST ( NULL AS INTEGER ) * + CASE 98 WHEN 76 THEN + 16 WHEN - 54 + COUNT ( * ) * 93 THEN - 87 ELSE + + 66 * SUM ( + - 54 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - + COUNT( * ) * - 3
----
3

skipif mysql # not compatible
query I rowsort label-8603
SELECT - + COUNT ( * ) * - 3
----
3

query I rowsort
SELECT - - 69 * + 84 AS col1
----
5796

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL - 47 * 83 + + COUNT( * ) AS col2
----
-3900

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - 47 * 83 + + COUNT ( * ) AS col2
----
-3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8606
SELECT - ( - 66 ) * + + 22 * - COUNT( * ) - + + CAST( NULL AS SIGNED ) - + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + - ( + 71 ) + + 64 * 31 * 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT - ( - 66 ) * + + 22 * - COUNT ( * ) - + + CAST ( NULL AS INTEGER ) - + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - ( + 71 ) + + 64 * 31 * 19 AS col1
----
NULL

query I rowsort
SELECT + ( + + NULLIF ( + 95, - 32 * + - 95 ) ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT - + 46 * - + 16 + 78 + + + 88 + + COUNT( * )
----
903

skipif mysql # not compatible
query I rowsort label-8608
SELECT - + 46 * - + 16 + 78 + + + 88 + + COUNT ( * )
----
903

query I rowsort
SELECT + - 73 + - 77
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT - + 98 + - + COUNT( 29 )
----
-99

skipif mysql # not compatible
query I rowsort label-8610
SELECT - + 98 + - + COUNT ( 29 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL + SUM( - + 43 ) * 48 + - + 67 * - COUNT( * ) * + + COUNT( * )
----
-1997

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL + SUM ( - + 43 ) * 48 + - + 67 * - COUNT ( * ) * + + COUNT ( * )
----
-1997

query I rowsort
SELECT - 99 * - ( 52 ) * + 66 + - 72 + + ( - - 42 ) * + 63 * + + 7
----
358218

query I rowsort
SELECT DISTINCT + + NULLIF ( + + 9, + 97 ) * + 98 + + + 13
----
895

query I rowsort
SELECT - 56 + 31 col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8615
SELECT ALL + 27 * + 92 * + - COALESCE ( + + 20, + 10 DIV + + 42 * + + 80 + 74, 30 ) + - - 57 * + 81 * - 1
----
-54297

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + 27 * + 92 * + - COALESCE ( + + 20, + 10 / + + 42 * + + 80 + 74, 30 ) + - - 57 * + 81 * - 1
----
-54297

query I rowsort
SELECT - NULLIF ( + + 33, - 6 + - + 95 ) AS col1
----
-33

query I rowsort
SELECT - 36 + - + 76 AS col1
----
-112

query I rowsort
SELECT + 1 + - 33
----
-32

query I rowsort
SELECT + 77 + 3 * ( - 18 ) + - - ( - 32 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL 0 + COUNT( * ) - + + 58 - - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL 0 + COUNT ( * ) - + + 58 - - COUNT ( * ) AS col2
----
-56

query I rowsort
SELECT - 82 + + + 82
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8622
SELECT + 41 * CAST( + + 57 AS SIGNED ) DIV + 61 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-8622
SELECT + 41 * CAST ( + + 57 AS INTEGER ) / + 61 AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT DISTINCT CAST( + + 26 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT CAST ( + + 26 AS INTEGER ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT ALL SUM( ALL 1 ) + + 70 / 71 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL SUM ( ALL 1 ) + + 70 / 71 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 46 + + 47 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT + SUM( ALL 68 ) - - - COUNT( * ) + - ( + SUM( - 40 ) ) + + CAST( + - COUNT( * ) AS SIGNED ) + 60
----
166

skipif mysql # not compatible
query I rowsort label-8626
SELECT + SUM ( ALL 68 ) - - - COUNT ( * ) + - ( + SUM ( - 40 ) ) + + CAST ( + - COUNT ( * ) AS INTEGER ) + 60
----
166

query I rowsort
SELECT - ( ( 19 ) ) col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT 2 * + COUNT( * ) + + 43 + MIN( DISTINCT 15 ) col0
----
60

skipif mysql # not compatible
query I rowsort label-8628
SELECT 2 * + COUNT ( * ) + + 43 + MIN ( DISTINCT 15 ) col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8629
SELECT ALL - 66 DIV - - 6 + 38 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL - 66 / - - 6 + 38 AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT 50 AS col2, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-8630
SELECT 50 AS col2, COUNT ( * )
----
50
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT + 8 DIV - 53 + + 32
----
32

skipif mysql # not compatible
query I rowsort label-8631
SELECT + 8 / - 53 + + 32
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8632
SELECT - 84 + - 75 DIV + CAST( - 55 AS SIGNED ) - + - ( 48 ) * + COUNT( * ) * - - 97 AS col0
----
4573

skipif mysql # not compatible
query I rowsort label-8632
SELECT - 84 + - 75 / + CAST ( - 55 AS INTEGER ) - + - ( 48 ) * + COUNT ( * ) * - - 97 AS col0
----
4573

query II rowsort
SELECT 2, ( + + 31 ) AS col1
----
2
31

query I rowsort
SELECT ALL + + 88 - - 70
----
158

query I rowsort
SELECT ALL + 52 - + - 52
----
104

query I rowsort
SELECT ALL - 93 * 49 * + 85
----
-387345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8637
SELECT 67 * + NULLIF ( + ( - 23 ), - COUNT( * ) * + - 62 * + - COALESCE ( + + 62, + 55, + COUNT( * ) / - AVG ( DISTINCT - 70 ) + - 77 ) / - SUM( ALL + + CAST( + 59 AS SIGNED ) ) + 15 ) AS col0
----
-1541

skipif mysql # not compatible
query I rowsort label-8637
SELECT 67 * + NULLIF ( + ( - 23 ), - COUNT ( * ) * + - 62 * + - COALESCE ( + + 62, + 55, + COUNT ( * ) / - AVG ( DISTINCT - 70 ) + - 77 ) / - SUM ( ALL + + CAST ( + 59 AS INTEGER ) ) + 15 ) AS col0
----
-1541

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT ALL - 82 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL - 82 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT + MIN( DISTINCT - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8639
SELECT + MIN ( DISTINCT - 2 ) AS col0
----
-2

query I rowsort
SELECT ( + - COALESCE ( ( + 52 ), - 97 ) ) + ( 95 ) + - 62 - + - 77
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8641
SELECT + - COALESCE ( - 86, + + CAST( NULL AS SIGNED ) - - 44 + 86 + - - 90 DIV - COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-8641
SELECT + - COALESCE ( - 86, + + CAST ( NULL AS INTEGER ) - - 44 + 86 + - - 90 / - COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL 30 - + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL 30 - + + COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT NULLIF ( + 33, - COUNT( ALL + 76 ) ) * - 42 + - 42 col1
----
-1428

skipif mysql # not compatible
query I rowsort label-8643
SELECT NULLIF ( + 33, - COUNT ( ALL + 76 ) ) * - 42 + - 42 col1
----
-1428

onlyif mysql # DIV for integer division: 
query I rowsort label-8644
SELECT 77 DIV - 72 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8644
SELECT 77 / - 72 AS col2
----
-1

query I rowsort
SELECT ALL - ( + 65 ) * NULLIF ( - 70, 38 )
----
4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8646
SELECT ALL - - NULLIF ( - 12, + COUNT( * ) ) DIV COUNT( * ) * - + CAST( + - 55 AS SIGNED ) * - - 16 DIV COUNT( * ) + 70 * - 38 col1, 94 * 3 * + + SUM( ALL 0 ) + + 5 + + COUNT( - 85 ) * + COUNT( + 16 )
----
-13220
6

skipif mysql # not compatible
query II rowsort label-8646
SELECT ALL - - NULLIF ( - 12, + COUNT ( * ) ) / COUNT ( * ) * - + CAST ( + - 55 AS INTEGER ) * - - 16 / COUNT ( * ) + 70 * - 38 col1, 94 * 3 * + + SUM ( ALL 0 ) + + 5 + + COUNT ( - 85 ) * + COUNT ( + 16 )
----
-13220
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT + + MIN( ALL + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8647
SELECT + + MIN ( ALL + 6 )
----
6

query I rowsort
SELECT ALL 13 + - + ( + + 97 ) AS col2
----
-84

query II rowsort
SELECT - 6 AS col2, 22 + - 15 col0
----
-6
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8650
SELECT ALL 8 AS col0, - COUNT( ALL - - 99 ) AS col0
----
8
-1

skipif mysql # not compatible
query II rowsort label-8650
SELECT ALL 8 AS col0, - COUNT ( ALL - - 99 ) AS col0
----
8
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8651
SELECT ALL + 69 + 2 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL + 69 + 2 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT ALL 71 * + 28 AS col1, COUNT( * ) AS col0
----
1988
1

skipif mysql # not compatible
query II rowsort label-8652
SELECT ALL 71 * + 28 AS col1, COUNT ( * ) AS col0
----
1988
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT 15 * + SUM( ALL - - 55 )
----
825

skipif mysql # not compatible
query I rowsort label-8653
SELECT 15 * + SUM ( ALL - - 55 )
----
825

query I rowsort
SELECT 19 - + 46 AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8655
SELECT ALL 75 AS col2, - 81 / CAST( NULL AS SIGNED ) * 90 / + 47
----
75
NULL

skipif mysql # not compatible
query II rowsort label-8655
SELECT ALL 75 AS col2, - 81 / CAST ( NULL AS INTEGER ) * 90 / + 47
----
75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT 25 AS col0, - COUNT( * ) + - MAX( + + 0 ) * 59
----
25
-1

skipif mysql # not compatible
query II rowsort label-8656
SELECT 25 AS col0, - COUNT ( * ) + - MAX ( + + 0 ) * 59
----
25
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8657
SELECT 5 DIV SUM( - + CAST( - ( - - 23 ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8657
SELECT 5 / SUM ( - + CAST ( - ( - - 23 ) AS INTEGER ) )
----
0

query I rowsort
SELECT 9 + + 76
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8659
SELECT MAX( ALL - 86 ) + 10 + 51 DIV 51 + 34 DIV + COUNT( * ) + + COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8659
SELECT MAX ( ALL - 86 ) + 10 + 51 / 51 + 34 / + COUNT ( * ) + + COUNT ( * ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT DISTINCT + COUNT( * ) + + 23 + - 47 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT + COUNT ( * ) + + 23 + - 47 AS col1
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8661
SELECT ALL 40 col0, 8 * + + CAST( NULL AS DECIMAL ) * + + 46
----
40
NULL

skipif mysql # not compatible
query II rowsort label-8661
SELECT ALL 40 col0, 8 * + + CAST ( NULL AS REAL ) * + + 46
----
40
NULL

query II rowsort
SELECT - 41, + 55 col1
----
-41
55

query I rowsort
SELECT DISTINCT - 56 - 92 + - 45 + + - 7 AS col1
----
-200

query I rowsort
SELECT ALL - 97 * - 37
----
3589

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8665
SELECT ALL - COUNT( * ) col0, + 40 DIV 11 AS col0
----
-1
3

skipif mysql # not compatible
query II rowsort label-8665
SELECT ALL - COUNT ( * ) col0, + 40 / 11 AS col0
----
-1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8666
SELECT CASE + - AVG ( ALL + 78 ) WHEN - 87 THEN NULL WHEN + + CASE + 48 WHEN - - NULLIF ( 98, ( 65 ) + SUM( DISTINCT - 62 ) ) / - CAST( + ( 62 ) AS DECIMAL ) THEN NULL WHEN + 62 THEN 12 * + - COUNT( * ) * + 15 + - CAST( - + 59 AS SIGNED ) END THEN - ( 34 ) END / + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT CASE + - AVG ( ALL + 78 ) WHEN - 87 THEN NULL WHEN + + CASE + 48 WHEN - - NULLIF ( 98, ( 65 ) + SUM ( DISTINCT - 62 ) ) / - CAST ( + ( 62 ) AS REAL ) THEN NULL WHEN + 62 THEN 12 * + - COUNT ( * ) * + 15 + - CAST ( - + 59 AS INTEGER ) END THEN - ( 34 ) END / + 21
----
NULL

query I rowsort
SELECT 23 + - - 39
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8668
SELECT DISTINCT - 10, - NULLIF ( + COUNT( * ), - + 35 ) * + 18 AS col1
----
-10
-18

skipif mysql # not compatible
query II rowsort label-8668
SELECT DISTINCT - 10, - NULLIF ( + COUNT ( * ), - + 35 ) * + 18 AS col1
----
-10
-18

query I rowsort
SELECT 69 + - ( 86 )
----
-17

query I rowsort
SELECT 61 * + 16
----
976

query I rowsort
SELECT ALL - + 81 col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT COUNT( * ) + 25 + + 88 - + SUM( - ( + + 54 ) ) AS col2
----
168

skipif mysql # not compatible
query I rowsort label-8672
SELECT COUNT ( * ) + 25 + + 88 - + SUM ( - ( + + 54 ) ) AS col2
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8673
SELECT ALL + 21 * COALESCE ( + + COUNT( * ), 90 DIV - - 26 * + 77 + + 73 + 25, + + 77 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL + 21 * COALESCE ( + + COUNT ( * ), 90 / - - 26 * + 77 + + 73 + 25, + + 77 ) AS col2
----
21

query I rowsort
SELECT 17 + - 33 AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8675
SELECT - + 51 * + 75 * COUNT( * ) * COALESCE ( - + 50, - 75, 79 - + 39 + - - 62 ) - + 68 DIV + 59 AS col2, + 26
----
191249
26

skipif mysql # not compatible
query II rowsort label-8675
SELECT - + 51 * + 75 * COUNT ( * ) * COALESCE ( - + 50, - 75, 79 - + 39 + - - 62 ) - + 68 / + 59 AS col2, + 26
----
191249
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT COUNT( ALL + 43 ) + ( - COUNT( * ) ) + - NULLIF ( + 17, - + 9 * - + 59 ) + + 81 * - + MIN( ALL 67 ) - 44 * + 88 - - 87 AS col1
----
-9229

skipif mysql # not compatible
query I rowsort label-8676
SELECT COUNT ( ALL + 43 ) + ( - COUNT ( * ) ) + - NULLIF ( + 17, - + 9 * - + 59 ) + + 81 * - + MIN ( ALL 67 ) - 44 * + 88 - - 87 AS col1
----
-9229

onlyif mysql # aggregate syntax: 
query II rowsort label-8677
SELECT - 27 * ( + 41 ) - + - CASE - 7 WHEN + COUNT( * ) THEN - MIN( DISTINCT 56 ) - + 56 + - 24 END AS col2, 13 AS col0
----
NULL
13

skipif mysql # not compatible
query II rowsort label-8677
SELECT - 27 * ( + 41 ) - + - CASE - 7 WHEN + COUNT ( * ) THEN - MIN ( DISTINCT 56 ) - + 56 + - 24 END AS col2, 13 AS col0
----
NULL
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8678
SELECT ALL COUNT( * ) * 51 AS col0, + 54 AS col0
----
51
54

skipif mysql # not compatible
query II rowsort label-8678
SELECT ALL COUNT ( * ) * 51 AS col0, + 54 AS col0
----
51
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT 25 DIV - ( - 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8679
SELECT 25 / - ( - 26 ) AS col2
----
0

query I rowsort
SELECT 29 + + 30 * + 68 AS col0
----
2069

query I rowsort
SELECT ALL 1 + 26 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8682
SELECT ALL CASE + 78 WHEN + - COALESCE ( - - 83, - 26 * - 90 * + 83 * - 10, + 90 * 85 + - 39 - + CAST( 70 AS SIGNED ) + - 68 + - COUNT( * ) * + 65 * - COUNT( * ) + - ( + COUNT( * ) ) + 24 ) THEN NULL WHEN + ( + 69 ) * - 76 THEN NULL WHEN + + 42 * + - 49 THEN - CASE - 77 WHEN 11 * 44 * + 20 THEN NULL WHEN + - 71 THEN 92 ELSE NULL END END + + 68 / 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL CASE + 78 WHEN + - COALESCE ( - - 83, - 26 * - 90 * + 83 * - 10, + 90 * 85 + - 39 - + CAST ( 70 AS INTEGER ) + - 68 + - COUNT ( * ) * + 65 * - COUNT ( * ) + - ( + COUNT ( * ) ) + 24 ) THEN NULL WHEN + ( + 69 ) * - 76 THEN NULL WHEN + + 42 * + - 49 THEN - CASE - 77 WHEN 11 * 44 * + 20 THEN NULL WHEN + - 71 THEN 92 ELSE NULL END END + + 68 / 87 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT - MIN( ALL - + 96 ) * - CAST( NULL AS SIGNED ) * + 20 * + 17 * + COUNT( * ) * + + 88 + - ( - + SUM( DISTINCT + 33 ) ) * + 86 + CAST( - - 19 AS SIGNED ) - + 84 + + + MAX( 71 ) + 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT - MIN ( ALL - + 96 ) * - CAST ( NULL AS INTEGER ) * + 20 * + 17 * + COUNT ( * ) * + + 88 + - ( - + SUM ( DISTINCT + 33 ) ) * + 86 + CAST ( - - 19 AS INTEGER ) - + 84 + + + MAX ( 71 ) + 19 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8684
SELECT ALL 71 * - 6 AS col2, + CAST( 32 AS SIGNED ) AS col2
----
-426
32

skipif mysql # not compatible
query II rowsort label-8684
SELECT ALL 71 * - 6 AS col2, + CAST ( 32 AS INTEGER ) AS col2
----
-426
32

query I rowsort
SELECT 19 + 97 * - 69 AS col1
----
-6674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8686
SELECT DISTINCT + 56 / - + CAST( NULL AS SIGNED ), 67 - - 16 - COUNT( * ) * - 29 * - + 61 AS col1
----
NULL
-1686

skipif mysql # not compatible
query II rowsort label-8686
SELECT DISTINCT + 56 / - + CAST ( NULL AS INTEGER ), 67 - - 16 - COUNT ( * ) * - 29 * - + 61 AS col1
----
NULL
-1686

query I rowsort
SELECT ( + 75 ) + + 18 * + 63
----
1209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8688
SELECT ALL COALESCE ( - 52, - + CASE COUNT( + 97 ) WHEN + ( + 44 ) + + 51 THEN NULL WHEN - 21 + + 2 - + + 71 * 30 * - + 81 * + 75 + - ( COALESCE ( - 95, CASE 57 WHEN COUNT( - 50 ) THEN + + 69 / + + 6 * 47 + 18 * - + ( + + 52 ) WHEN 2 THEN NULL WHEN + + 36 * - + 64 * + 16 THEN - 52 - - 69 END ) ) THEN 66 * - 15 WHEN + 84 + NULLIF ( COUNT( * ), 7 + + 25 ) THEN - 84 * CAST( - 14 AS SIGNED ) ELSE NULL END ) + - 72 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL COALESCE ( - 52, - + CASE COUNT ( + 97 ) WHEN + ( + 44 ) + + 51 THEN NULL WHEN - 21 + + 2 - + + 71 * 30 * - + 81 * + 75 + - ( COALESCE ( - 95, CASE 57 WHEN COUNT ( - 50 ) THEN + + 69 / + + 6 * 47 + 18 * - + ( + + 52 ) WHEN 2 THEN NULL WHEN + + 36 * - + 64 * + 16 THEN - 52 - - 69 END ) ) THEN 66 * - 15 WHEN + 84 + NULLIF ( COUNT ( * ), 7 + + 25 ) THEN - 84 * CAST ( - 14 AS INTEGER ) ELSE NULL END ) + - 72 AS col2
----
-124

query I rowsort
SELECT 15 + 87 AS col2
----
102

query I rowsort
SELECT ALL - 75 * + + 11
----
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT - 93 + + 66 * 31 + - 52 + 46 / + + 10 - CASE + + COUNT( * ) WHEN - - 79 THEN NULL WHEN - - 77 THEN NULL WHEN 86 + COUNT( * ) THEN 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT - 93 + + 66 * 31 + - 52 + 46 / + + 10 - CASE + + COUNT ( * ) WHEN - - 79 THEN NULL WHEN - - 77 THEN NULL WHEN 86 + COUNT ( * ) THEN 87 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 66 * 32 AS col0, - 62 col1
----
-2112
-62

query I rowsort
SELECT ALL + 15 * 20 AS col2
----
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT + ( CAST( + - 32 AS SIGNED ) ) + + 62 * ( 71 ) + + - 48 AS col2
----
4322

skipif mysql # not compatible
query I rowsort label-8694
SELECT + ( CAST ( + - 32 AS INTEGER ) ) + + 62 * ( 71 ) + + - 48 AS col2
----
4322

query I rowsort
SELECT - 15 - - 59
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8696
SELECT - COALESCE ( + COUNT( * ), ( + - ( 79 ) ) * - 28 ) DIV 41 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8696
SELECT - COALESCE ( + COUNT ( * ), ( + - ( 79 ) ) * - 28 ) / 41 * + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT - 59 * - - CASE + COUNT( * ) WHEN + 37 THEN NULLIF ( - NULLIF ( ( + + CASE + 8 WHEN + 27 THEN NULL WHEN - 14 * 8 THEN - 46 / - + COUNT( * ) END ), + 21 ), - 80 * + 8 + 67 ) WHEN + + 90 THEN NULL WHEN + - 20 THEN NULL END + + ( + 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT - 59 * - - CASE + COUNT ( * ) WHEN + 37 THEN NULLIF ( - NULLIF ( ( + + CASE + 8 WHEN + 27 THEN NULL WHEN - 14 * 8 THEN - 46 / - + COUNT ( * ) END ), + 21 ), - 80 * + 8 + 67 ) WHEN + + 90 THEN NULL WHEN + - 20 THEN NULL END + + ( + 30 ) AS col0
----
NULL

query I rowsort
SELECT - + 69 + + + 70 + - 62 * + 95 AS col0
----
-5889

onlyif mysql # DIV for integer division: 
query I rowsort label-8699
SELECT - - 11 DIV + + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8699
SELECT - - 11 / + + 22 AS col1
----
0

query I rowsort
SELECT ALL 57 * - 92 + + 20 AS col1
----
-5224

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT + - COUNT( * ) * + + 80 * + + COUNT( * ) + - - 84 * - + 3
----
-332

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + - COUNT ( * ) * + + 80 * + + COUNT ( * ) + - - 84 * - + 3
----
-332

query I rowsort
SELECT DISTINCT COALESCE ( 47, 49 * - + 22 ) * + 59 * - 95 + + - 36 AS col1
----
-263471

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT ALL 48 * 63 DIV 53 * 7
----
399

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL 48 * 63 / 53 * 7
----
399

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL - 50 * - MIN( + 97 )
----
4850

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - 50 * - MIN ( + 97 )
----
4850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8705
SELECT - 22 / + CAST( NULL AS SIGNED ) + - + 44 / CAST( - CASE - + 57 WHEN - - 22 THEN + COUNT( * ) * + 16 WHEN + 8 THEN NULL ELSE - + 58 END AS SIGNED ) * 47 AS col1, 57
----
NULL
57

skipif mysql # not compatible
query II rowsort label-8705
SELECT - 22 / + CAST ( NULL AS INTEGER ) + - + 44 / CAST ( - CASE - + 57 WHEN - - 22 THEN + COUNT ( * ) * + 16 WHEN + 8 THEN NULL ELSE - + 58 END AS INTEGER ) * 47 AS col1, 57
----
NULL
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8706
SELECT ALL + 19 * - 33 + - + COUNT( * ) * - - 20 * 69 + - 96 * + 67 AS col2, 6 AS col2
----
-8439
6

skipif mysql # not compatible
query II rowsort label-8706
SELECT ALL + 19 * - 33 + - + COUNT ( * ) * - - 20 * 69 + - 96 * + 67 AS col2, 6 AS col2
----
-8439
6

query II rowsort
SELECT + 45 + + 80 AS col2, + 78 AS col2
----
125
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT ALL - CAST( NULL AS SIGNED ) * - 99 * - 58 + - ( + 60 ) + - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL - CAST ( NULL AS INTEGER ) * - 99 * - 58 + - ( + 60 ) + - + 24
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8709
SELECT DISTINCT - NULLIF ( - 95, 88 ) * - + ( COUNT( * ) ) + - 93 + CAST( - - 42 AS SIGNED ) AS col1, + COUNT( * ) AS col0
----
-146
1

skipif mysql # not compatible
query II rowsort label-8709
SELECT DISTINCT - NULLIF ( - 95, 88 ) * - + ( COUNT ( * ) ) + - 93 + CAST ( - - 42 AS INTEGER ) AS col1, + COUNT ( * ) AS col0
----
-146
1

query I rowsort
SELECT DISTINCT + NULLIF ( - - 75, + - 45 )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8711
SELECT + CASE 62 WHEN - 72 + + + 53 * + + CAST( NULL AS SIGNED ) * - + 14 / + 79 THEN - 87 ELSE NULL END AS col2, - 35
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-8711
SELECT + CASE 62 WHEN - 72 + + + 53 * + + CAST ( NULL AS INTEGER ) * - + 14 / + 79 THEN - 87 ELSE NULL END AS col2, - 35
----
NULL
-35

query I rowsort
SELECT - 30 - 72 col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT - 6 - + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-8713
SELECT - 6 - + COUNT ( * )
----
-7

query I rowsort
SELECT ALL ( - 6 ) * 79 AS col2
----
-474

query I rowsort
SELECT 88 * 67 + 33 AS col0
----
5929

query I rowsort
SELECT - NULLIF ( - ( + 32 ), + 57 )
----
32

query II rowsort
SELECT DISTINCT 30 AS col0, + 67 AS col1
----
30
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT ALL CAST( - 95 AS SIGNED ) - - - ( - + 27 )
----
-68

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL CAST ( - 95 AS INTEGER ) - - - ( - + 27 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL ( 29 ) * - - COALESCE ( - MIN( 78 ), - CASE - 58 WHEN - - 81 THEN + + 55 WHEN COALESCE ( - 99, ( + + COUNT( * ) ), + 84 - + 62 ) + - ( - 5 ) + - 39 THEN + 4 * + COUNT( * ) + - + 11 END, + 32, COUNT( - 35 ) * - 30 - + + 96 )
----
-2262

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL ( 29 ) * - - COALESCE ( - MIN ( 78 ), - CASE - 58 WHEN - - 81 THEN + + 55 WHEN COALESCE ( - 99, ( + + COUNT ( * ) ), + 84 - + 62 ) + - ( - 5 ) + - 39 THEN + 4 * + COUNT ( * ) + - + 11 END, + 32, COUNT ( - 35 ) * - 30 - + + 96 )
----
-2262

onlyif mysql # aggregate syntax: 
query II rowsort label-8720
SELECT ALL COUNT( * ), - 65 col1
----
1
-65

skipif mysql # not compatible
query II rowsort label-8720
SELECT ALL COUNT ( * ), - 65 col1
----
1
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8721
SELECT + 52 - - 10 * + + CAST( NULL AS SIGNED ), ( + 4 ) * - 61 + + COUNT( * ) * - - 46 AS col0
----
NULL
-198

skipif mysql # not compatible
query II rowsort label-8721
SELECT + 52 - - 10 * + + CAST ( NULL AS INTEGER ), ( + 4 ) * - 61 + + COUNT ( * ) * - - 46 AS col0
----
NULL
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8722
SELECT 80, + 50 * + COUNT( * ) - + + 15 DIV ( + + 67 ) AS col2
----
80
50

skipif mysql # not compatible
query II rowsort label-8722
SELECT 80, + 50 * + COUNT ( * ) - + + 15 / ( + + 67 ) AS col2
----
80
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8723
SELECT ALL + 16 DIV 16
----
1

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + 16 / 16
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8724
SELECT DISTINCT + 8 DIV + 22 * + - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT + 8 / + 22 * + - 16 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT + 21 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT + 21 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8726
SELECT + ( + COUNT( * ) ) * - 77 AS col2, 29 * + ( + COUNT( * ) ) + + 25 + - 87 + - - 7 + + CASE - 67 WHEN - 53 THEN + 59 WHEN + CASE + - COALESCE ( + ( - 74 ), + COUNT( * ) + - 44 ) WHEN - 13 / + COUNT( * ) - 8 + + 23 THEN + - 36 * + ( - 74 ) * - 76 - 92 END + + - SUM( + - 12 ) THEN NULL END
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-8726
SELECT + ( + COUNT ( * ) ) * - 77 AS col2, 29 * + ( + COUNT ( * ) ) + + 25 + - 87 + - - 7 + + CASE - 67 WHEN - 53 THEN + 59 WHEN + CASE + - COALESCE ( + ( - 74 ), + COUNT ( * ) + - 44 ) WHEN - 13 / + COUNT ( * ) - 8 + + 23 THEN + - 36 * + ( - 74 ) * - 76 - 92 END + + - SUM ( + - 12 ) THEN NULL END
----
-77
NULL

query II rowsort
SELECT ALL 58 col0, 97 AS col2
----
58
97

query I rowsort
SELECT - + 26 - + + 76 AS col2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + - COUNT( * ) * - 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8729
SELECT + - COUNT ( * ) * - 48 AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8730
SELECT ALL + COUNT( * ) * 45 * 15 * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL + COUNT ( * ) * 45 * 15 * - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT + 71 + + + SUM( ALL + - 96 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT + 71 + + + SUM ( ALL + - 96 ) AS col1
----
-25

query I rowsort
SELECT ALL + 54 + 10
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8733
SELECT ALL 13 DIV - + 61 + + + 91 + - 99 + - - COUNT( - 78 ) * CASE + 67 WHEN - COUNT( * ) THEN NULL WHEN - 62 THEN - 62 ELSE ( - 13 ) + - - 78 * - COUNT( * ) END * + 26 * + 34
----
-80452

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL 13 / - + 61 + + + 91 + - 99 + - - COUNT ( - 78 ) * CASE + 67 WHEN - COUNT ( * ) THEN NULL WHEN - 62 THEN - 62 ELSE ( - 13 ) + - - 78 * - COUNT ( * ) END * + 26 * + 34
----
-80452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT 63 / CASE + 4 WHEN + MAX( - ( + 62 ) ) THEN CAST( NULL AS SIGNED ) ELSE NULL END + + - ( 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT 63 / CASE + 4 WHEN + MAX ( - ( + 62 ) ) THEN CAST ( NULL AS INTEGER ) ELSE NULL END + + - ( 12 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + CASE - 89 WHEN + 13 + + + 74 THEN + 99 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8736
SELECT + + MAX( + ( + CAST( NULL AS SIGNED ) ) ) + - 41 + - + COALESCE ( - 42, + MAX( + + CAST( 4 AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT + + MAX ( + ( + CAST ( NULL AS INTEGER ) ) ) + - 41 + - + COALESCE ( - 42, + MAX ( + + CAST ( 4 AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT - + MAX( + ( - + 76 ) ) * - + 25 * - CASE 19 WHEN + 10 THEN NULL WHEN - - 48 * 88 - + 78 + NULLIF ( - 17, 52 ) * - CASE + 77 WHEN - - 64 THEN - 33 WHEN - 84 * - 86 + 84 * - 47 / + MAX( ALL - + 19 ) THEN + COUNT( * ) * - 23 END * - + 58 * - 19 + + + 46 * + - CAST( NULL AS SIGNED ) THEN + 89 * + 54 + - 59 ELSE NULL END * COUNT( * ) / ( 17 * 40 ) + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT - + MAX ( + ( - + 76 ) ) * - + 25 * - CASE 19 WHEN + 10 THEN NULL WHEN - - 48 * 88 - + 78 + NULLIF ( - 17, 52 ) * - CASE + 77 WHEN - - 64 THEN - 33 WHEN - 84 * - 86 + 84 * - 47 / + MAX ( ALL - + 19 ) THEN + COUNT ( * ) * - 23 END * - + 58 * - 19 + + + 46 * + - CAST ( NULL AS INTEGER ) THEN + 89 * + 54 + - 59 ELSE NULL END * COUNT ( * ) / ( 17 * 40 ) + 80
----
NULL

query II rowsort
SELECT - 60, + 93 - + 4 - - 18 - + 57 * + 15 AS col0
----
-60
-748

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT 83 DIV 96 - + - NULLIF ( + COALESCE ( - 2, 34 ), - 39 ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-8739
SELECT 83 / 96 - + - NULLIF ( + COALESCE ( - 2, 34 ), - 39 ) col2
----
-2

query I rowsort
SELECT - 42 + + 3
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT ALL - COUNT( * ) DIV + 90 - - 27 + + 96 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - COUNT ( * ) / + 90 - - 27 + + 96 AS col2
----
123

query I rowsort
SELECT - 60 * - 2
----
120

query I rowsort
SELECT - 30 * - 6 * + 32 + + 55 * 94 col1
----
10930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8744
SELECT + 55 * - + 42 * + - MAX( - 45 ) + - - CAST( COALESCE ( + - COUNT( * ), - + 38 ) AS SIGNED ) AS col0
----
-103951

skipif mysql # not compatible
query I rowsort label-8744
SELECT + 55 * - + 42 * + - MAX ( - 45 ) + - - CAST ( COALESCE ( + - COUNT ( * ), - + 38 ) AS INTEGER ) AS col0
----
-103951

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT ALL + CASE - 21 WHEN + 10 * + MAX( ALL + 76 ) THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + CASE - 21 WHEN + 10 * + MAX ( ALL + 76 ) THEN - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 6 + 99 + + ( - + 68 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT 84 * - 78 - + MIN( - 76 )
----
-6476

skipif mysql # not compatible
query I rowsort label-8747
SELECT 84 * - 78 - + MIN ( - 76 )
----
-6476

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT 18 + - 74 * - - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-8748
SELECT 18 + - 74 * - - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT COUNT( - 53 ) - - 60
----
61

skipif mysql # not compatible
query I rowsort label-8749
SELECT COUNT ( - 53 ) - - 60
----
61

query I rowsort
SELECT 25 * 91
----
2275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT DISTINCT - CAST( - + CAST( + + 6 AS SIGNED ) AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT - CAST ( - + CAST ( + + 6 AS INTEGER ) AS INTEGER ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT - 17 * + 68 * + 99 + ( ( - 94 ) ) + - COUNT( * ) + - 9
----
-114548

skipif mysql # not compatible
query I rowsort label-8752
SELECT - 17 * + 68 * + 99 + ( ( - 94 ) ) + - COUNT ( * ) + - 9
----
-114548

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT 53 + COALESCE ( COUNT( * ), + - 98 * + 35, - 71 ) + - 80 col2
----
-26

skipif mysql # not compatible
query I rowsort label-8753
SELECT 53 + COALESCE ( COUNT ( * ), + - 98 * + 35, - 71 ) + - 80 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT 99 * COALESCE ( 55, - - 95 + 74, - 76 * - 9 * COUNT( * ) ) * + ( 28 ) * + 47
----
7165620

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT 99 * COALESCE ( 55, - - 95 + 74, - 76 * - 9 * COUNT ( * ) ) * + ( 28 ) * + 47
----
7165620

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ( MAX( ALL + 97 ) ) * 74 AS col0
----
7178

skipif mysql # not compatible
query I rowsort label-8755
SELECT ( MAX ( ALL + 97 ) ) * 74 AS col0
----
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT COUNT( * ) + + + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8756
SELECT COUNT ( * ) + + + 76 AS col2
----
77

query II rowsort
SELECT + 2 + - 33 - + 38 * 58 + 20 AS col2, - 27
----
-2215
-27

query I rowsort
SELECT 64 * - ( 83 )
----
-5312

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL 81 + ( - COUNT( * ) ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL 81 + ( - COUNT ( * ) ) AS col2
----
80

query I rowsort
SELECT - - 67 col1
----
67

query I rowsort
SELECT DISTINCT - - 24 + + 76
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8762
SELECT + 77 + 81 + + COUNT( * ) * 57 DIV + - 59 AS col0
----
158

skipif mysql # not compatible
query I rowsort label-8762
SELECT + 77 + 81 + + COUNT ( * ) * 57 / + - 59 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL - SUM( 54 ) + - + COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL - SUM ( 54 ) + - + COUNT ( * ) AS col1
----
-55

query I rowsort
SELECT ( 83 ) + - 39
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT 67 + + - MAX( + 14 )
----
53

skipif mysql # not compatible
query I rowsort label-8765
SELECT 67 + + - MAX ( + 14 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT - + CAST( + - ( - 96 ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-8766
SELECT - + CAST ( + - ( - 96 ) AS INTEGER )
----
-96

query I rowsort
SELECT - 94 * - + 29 + - 59 col1
----
2667

query I rowsort
SELECT ALL 97 + 45
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT 62 DIV 52 + + 88 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-8769
SELECT 62 / 52 + + 88 AS col0
----
89

query I rowsort
SELECT ALL 10 + - 98 * - 22
----
2166

query I rowsort
SELECT DISTINCT - 29 + - + 39 AS col1
----
-68

query II rowsort
SELECT 88 * + 7 + - 98 AS col2, + 85
----
518
85

query I rowsort
SELECT ALL 49 - + 28 * - 46
----
1337

query I rowsort
SELECT DISTINCT 7 * - 47
----
-329

query I rowsort
SELECT 99 * - 91
----
-9009

query I rowsort
SELECT 35 * 66 col1
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT DISTINCT 42 * - - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT 42 * - - COUNT ( * ) AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8778
SELECT ALL - CAST( + ( - 53 ) AS SIGNED ) - + + 85 * + CAST( NULL AS SIGNED ) AS col1, + 98 - 21 AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-8778
SELECT ALL - CAST ( + ( - 53 ) AS INTEGER ) - + + 85 * + CAST ( NULL AS INTEGER ) AS col1, + 98 - 21 AS col1
----
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT 25 * 27 DIV 82 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-8779
SELECT 25 * 27 / 82 AS col0
----
8

query I rowsort
SELECT 60 * - 50 AS col2
----
-3000

query II rowsort
SELECT ALL - COALESCE ( - 12, + 95 ) col2, - 8
----
12
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL - 16 * + COUNT( * ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL - 16 * + COUNT ( * ) col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT 50 + 73 * + + CAST( + - 3 AS SIGNED ) AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-8783
SELECT 50 + 73 * + + CAST ( + - 3 AS INTEGER ) AS col0
----
-169

query I rowsort
SELECT DISTINCT - 7 * 74 * - + 7 AS col0
----
3626

query I rowsort
SELECT 63 * - 54 * - - 91
----
-309582

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT COUNT( * ) - + - MIN( ALL - 67 ) + + 23
----
-43

skipif mysql # not compatible
query I rowsort label-8786
SELECT COUNT ( * ) - + - MIN ( ALL - 67 ) + + 23
----
-43

query I rowsort
SELECT ALL - 17 * 12 AS col1
----
-204

query I rowsort
SELECT 40 * - 11 AS col0
----
-440

query I rowsort
SELECT 43 - - - 30
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT 49 * 83 * - + CAST( + ( + 10 ) AS SIGNED ) * + 51 * + 55
----
-114079350

skipif mysql # not compatible
query I rowsort label-8790
SELECT 49 * 83 * - + CAST ( + ( + 10 ) AS INTEGER ) * + 51 * + 55
----
-114079350

query I rowsort
SELECT DISTINCT + 44 + - 20 AS col0
----
24

query I rowsort
SELECT ALL - 87 + + 61 * 28
----
1621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8793
SELECT + 48 * - 83 * + - CASE 23 WHEN + COUNT( * ) + 18 THEN - + 88 DIV + - 8 WHEN + - 62 THEN NULL ELSE - 87 * - - 1 END
----
-346608

skipif mysql # not compatible
query I rowsort label-8793
SELECT + 48 * - 83 * + - CASE 23 WHEN + COUNT ( * ) + 18 THEN - + 88 / + - 8 WHEN + - 62 THEN NULL ELSE - 87 * - - 1 END
----
-346608

query I rowsort
SELECT DISTINCT - 76 + + 23 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL + COUNT( - 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + COUNT ( - 82 ) AS col0
----
1

query I rowsort
SELECT DISTINCT ( 51 ) + + 32 col1
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT - 66 - - 13 + - 15 DIV - - 61 * ( + - 52 ) - + 86 + + 78 + + 84
----
23

skipif mysql # not compatible
query I rowsort label-8797
SELECT - 66 - - 13 + - 15 / - - 61 * ( + - 52 ) - + 86 + + 78 + + 84
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT - 14 * 93 * + 27 + - + CAST( + 71 AS SIGNED ) + - 94 AS col0
----
-35319

skipif mysql # not compatible
query I rowsort label-8798
SELECT - 14 * 93 * + 27 + - + CAST ( + 71 AS INTEGER ) + - 94 AS col0
----
-35319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT - CAST( - - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-8799
SELECT - CAST ( - - 18 AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8800
SELECT - 88 AS col1, 32 - CASE - + 92 WHEN - - 1 THEN + 79 WHEN - - 87 THEN + + 55 END + - COUNT( * ) + + 31 - + COUNT( * ) * + 76
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-8800
SELECT - 88 AS col1, 32 - CASE - + 92 WHEN - - 1 THEN + 79 WHEN - - 87 THEN + + 55 END + - COUNT ( * ) + + 31 - + COUNT ( * ) * + 76
----
-88
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT + 33 + 35 DIV - 83 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8801
SELECT + 33 + 35 / - 83 AS col1
----
33

query II rowsort
SELECT 51 * 46 + - - 59, + 82 col1
----
2405
82

query I rowsort
SELECT ALL 81 + - - 20
----
101

query II rowsort
SELECT ALL - 40 AS col1, + 33
----
-40
33

query I rowsort
SELECT - + 84 col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL - - 54 - NULLIF ( + + 68, - + 66 * + - COUNT( ALL + 62 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL - - 54 - NULLIF ( + + 68, - + 66 * + - COUNT ( ALL + 62 ) )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8807
SELECT ALL + 77 * + 42 + - + COALESCE ( + - 99, + + 70 ) - + + ( CASE - 52 WHEN + CAST( 70 AS SIGNED ) * 24 THEN - - 20 + - + SUM( - + 96 ) * - + 10 - ( + CASE + COALESCE ( CAST( CAST( - + 40 AS SIGNED ) AS DECIMAL ), 79 * - + 7 ) WHEN + 93 THEN 63 ELSE NULL END ) * - + 38 WHEN - 43 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + 77 * + 42 + - + COALESCE ( + - 99, + + 70 ) - + + ( CASE - 52 WHEN + CAST ( 70 AS INTEGER ) * 24 THEN - - 20 + - + SUM ( - + 96 ) * - + 10 - ( + CASE + COALESCE ( CAST ( CAST ( - + 40 AS INTEGER ) AS REAL ), 79 * - + 7 ) WHEN + 93 THEN 63 ELSE NULL END ) * - + 38 WHEN - 43 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT COUNT( * ) DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT COUNT ( * ) / 12
----
0

query I rowsort
SELECT + 7 + - 30 + - 56 AS col0
----
-79

query I rowsort
SELECT + NULLIF ( + 55, - - 5 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8811
SELECT - CAST( NULL AS SIGNED ) * + 90 + MAX( ALL + 96 ) AS col0, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8811
SELECT - CAST ( NULL AS INTEGER ) * + 90 + MAX ( ALL + 96 ) AS col0, - COUNT ( * ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT 89 * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT 89 * + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8813
SELECT - MAX( ALL + 36 ) DIV - 99 + - 2 + - + 55
----
-57

skipif mysql # not compatible
query I rowsort label-8813
SELECT - MAX ( ALL + 36 ) / - 99 + - 2 + - + 55
----
-57

query II rowsort
SELECT ALL + 79 AS col1, + 84
----
79
84

query I rowsort
SELECT ALL - 30 * + NULLIF ( + 71, + - AVG ( + 61 ) )
----
-2130

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT + 29 + 8 DIV + 34 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8816
SELECT + 29 + 8 / + 34 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT ALL - 21 * - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL - 21 * - COUNT ( * )
----
21

query I rowsort
SELECT + 47 * - + 50
----
-2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8819
SELECT DISTINCT 53 * MAX( ALL - ( 35 ) ) DIV - 55 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT 53 * MAX ( ALL - ( 35 ) ) / - 55 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT + 93 + + 12 - - ( - - COUNT( * ) ) * - 45 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8820
SELECT + 93 + + 12 - - ( - - COUNT ( * ) ) * - 45 AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8821
SELECT CAST( 90 AS SIGNED ) * - 17 - - - 8 AS col1
----
-1538

skipif mysql # not compatible
query I rowsort label-8821
SELECT CAST ( 90 AS INTEGER ) * - 17 - - - 8 AS col1
----
-1538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT - CAST( 96 AS SIGNED ) + + 49
----
-47

skipif mysql # not compatible
query I rowsort label-8822
SELECT - CAST ( 96 AS INTEGER ) + + 49
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT COUNT( DISTINCT + 9 )
----
1

skipif mysql # not compatible
query I rowsort label-8823
SELECT COUNT ( DISTINCT + 9 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT ALL - + 99 DIV 61
----
-1

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL - + 99 / 61
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT + 28 * + 46 * - + CAST( + 37 AS SIGNED ) * 96 + 73 * + 11
----
-4574173

skipif mysql # not compatible
query I rowsort label-8825
SELECT + 28 * + 46 * - + CAST ( + 37 AS INTEGER ) * 96 + 73 * + 11
----
-4574173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8826
SELECT ALL CASE + CASE + ( 48 ) WHEN - - 53 + - 6 / + 44 * 87 * - 58 * - ( + + 10 ) + + - 4 THEN + + 72 END WHEN + 47 THEN CAST( 60 AS SIGNED ) ELSE NULL END AS col0, + MAX( DISTINCT - NULLIF ( + 41, + 30 ) ) AS col2
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-8826
SELECT ALL CASE + CASE + ( 48 ) WHEN - - 53 + - 6 / + 44 * 87 * - 58 * - ( + + 10 ) + + - 4 THEN + + 72 END WHEN + 47 THEN CAST ( 60 AS INTEGER ) ELSE NULL END AS col0, + MAX ( DISTINCT - NULLIF ( + 41, + 30 ) ) AS col2
----
NULL
-41

query I rowsort
SELECT ALL + + ( + 24 ) * 58 AS col2
----
1392

query II rowsort
SELECT - 71, 51 AS col0
----
-71
51

onlyif mysql # DIV for integer division: 
query II rowsort label-8829
SELECT 20, + 20 DIV 37 AS col2
----
20
0

skipif mysql # not compatible
query II rowsort label-8829
SELECT 20, + 20 / 37 AS col2
----
20
0

query I rowsort
SELECT + 12 + 89
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT - NULLIF ( - - 96, + 61 ) DIV 58 * 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8831
SELECT - NULLIF ( - - 96, + 61 ) / 58 * 4 AS col0
----
-4

query I rowsort
SELECT - 86 * + 77
----
-6622

query I rowsort
SELECT - + 0 + - 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT - 0 + + NULLIF ( MAX( DISTINCT - 97 ), + 13 )
----
-97

skipif mysql # not compatible
query I rowsort label-8834
SELECT - 0 + + NULLIF ( MAX ( DISTINCT - 97 ), + 13 )
----
-97

query I rowsort
SELECT ALL - 31 * 16 - - 15 AS col1
----
-481

query II rowsort
SELECT DISTINCT 50, 25 * + + 3 * + 11 AS col0
----
50
825

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - + COUNT( * ) + - - 59 col0
----
58

skipif mysql # not compatible
query I rowsort label-8837
SELECT - + COUNT ( * ) + - - 59 col0
----
58

query II rowsort
SELECT ALL - 86 AS col0, + 12 AS col2
----
-86
12

query I rowsort
SELECT - 62 + 18
----
-44

query I rowsort
SELECT ALL + 29 - + 81 AS col0
----
-52

query I rowsort
SELECT ALL - + 52 * + + 17
----
-884

query I rowsort
SELECT - ( 30 ) + - - 8 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8843
SELECT ALL 18 AS col1, - 17 * + MAX( DISTINCT - 15 ) AS col1
----
18
255

skipif mysql # not compatible
query II rowsort label-8843
SELECT ALL 18 AS col1, - 17 * + MAX ( DISTINCT - 15 ) AS col1
----
18
255

query II rowsort
SELECT DISTINCT ( 84 ) AS col0, 90
----
84
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8845
SELECT ALL - 52 DIV - - 19
----
-2

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL - 52 / - - 19
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT COALESCE ( 27, + ( COUNT( * ) ) + + + COUNT( * ) ) * + NULLIF ( + 72, 32 / - 19 * 86 ) + + 52 + + COALESCE ( - 14, - 23 ) AS col0
----
1982

skipif mysql # not compatible
query I rowsort label-8846
SELECT COALESCE ( 27, + ( COUNT ( * ) ) + + + COUNT ( * ) ) * + NULLIF ( + 72, 32 / - 19 * 86 ) + + 52 + + COALESCE ( - 14, - 23 ) AS col0
----
1982

query I rowsort
SELECT ALL CASE + + 13 WHEN + 51 * + 13 * - - 62 THEN NULL WHEN - 31 * + 94 THEN + 60 END * + 17 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT - 60 * + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT - 60 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8849
SELECT 25 * + 65 + 19 DIV 62 AS col0
----
1625

skipif mysql # not compatible
query I rowsort label-8849
SELECT 25 * + 65 + 19 / 62 AS col0
----
1625

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + COUNT( * ) * - - 50
----
50

skipif mysql # not compatible
query I rowsort label-8850
SELECT + COUNT ( * ) * - - 50
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-8851
SELECT ALL - 98 DIV + + 85 + - ( - - ( - + 87 ) )
----
86

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL - 98 / + + 85 + - ( - - ( - + 87 ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT ( + COUNT( ALL + - 47 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8852
SELECT ( + COUNT ( ALL + - 47 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8853
SELECT ( - 25 ) AS col1, 15 * COUNT( ALL + 61 ) + - COALESCE ( + 77, - 20 ) * + 33
----
-25
-2526

skipif mysql # not compatible
query II rowsort label-8853
SELECT ( - 25 ) AS col1, 15 * COUNT ( ALL + 61 ) + - COALESCE ( + 77, - 20 ) * + 33
----
-25
-2526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8854
SELECT ALL 5 DIV + + NULLIF ( - - 62, - SUM( - 69 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL 5 / + + NULLIF ( - - 62, - SUM ( - 69 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT + COALESCE ( - + 40, + 82 DIV + 69 - + + 58 * + - 1 * + 81 * 76 + - 60 )
----
-40

skipif mysql # not compatible
query I rowsort label-8855
SELECT + COALESCE ( - + 40, + 82 / + 69 - + + 58 * + - 1 * + 81 * 76 + - 60 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8856
SELECT ( + + 41 ) col0, COUNT( + - 68 )
----
41
1

skipif mysql # not compatible
query II rowsort label-8856
SELECT ( + + 41 ) col0, COUNT ( + - 68 )
----
41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT ALL MAX( DISTINCT + - 16 ) * + 54 + + - 27 + - 4 AS col1
----
-895

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL MAX ( DISTINCT + - 16 ) * + 54 + + - 27 + - 4 AS col1
----
-895

onlyif mysql # aggregate syntax: 
query II rowsort label-8858
SELECT + COUNT( * ) * + + COUNT( * ) AS col0, ( 83 ) * - 23 + - 57
----
1
-1966

skipif mysql # not compatible
query II rowsort label-8858
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col0, ( 83 ) * - 23 + - 57
----
1
-1966

query I rowsort
SELECT ALL - 12 * - 32 * - - 51 + + - 0 AS col1
----
19584

query I rowsort
SELECT + ( + - ( 88 ) ) - + + 14 col2
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8861
SELECT + AVG ( DISTINCT - CAST( - COALESCE ( - 67, 82, 28 ) AS SIGNED ) ) * - 40 * + - AVG ( - - 43 ) - 56 / - CAST( NULL AS SIGNED ) / - 5 col2, + COUNT( * ) + - - COUNT( * ) * - 46
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-8861
SELECT + AVG ( DISTINCT - CAST ( - COALESCE ( - 67, 82, 28 ) AS INTEGER ) ) * - 40 * + - AVG ( - - 43 ) - 56 / - CAST ( NULL AS INTEGER ) / - 5 col2, + COUNT ( * ) + - - COUNT ( * ) * - 46
----
NULL
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + 1 + + 49 + + MAX( ALL + 94 ) + - 19 * + 58 AS col2
----
-958

skipif mysql # not compatible
query I rowsort label-8862
SELECT + 1 + + 49 + + MAX ( ALL + 94 ) + - 19 * + 58 AS col2
----
-958

query I rowsort
SELECT + - 55 * + + 36 AS col0
----
-1980

query II rowsort
SELECT + - 5 - 2 AS col0, - 9 AS col2
----
-7
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT - 87 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT - 87 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT + 26 * - 92 * + MIN( - 38 )
----
90896

skipif mysql # not compatible
query I rowsort label-8866
SELECT + 26 * - 92 * + MIN ( - 38 )
----
90896

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL - - COUNT( * ) * - 49 * 97 - 59 AS col0
----
-4812

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - - COUNT ( * ) * - 49 * 97 - 59 AS col0
----
-4812

onlyif mysql # DIV for integer division: 
query I rowsort label-8868
SELECT 28 DIV + - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT 28 / + - 63 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8869
SELECT ALL - CAST( 49 AS SIGNED ) + - CAST( NULL AS DECIMAL ), + ( - - 10 ) col0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-8869
SELECT ALL - CAST ( 49 AS INTEGER ) + - CAST ( NULL AS REAL ), + ( - - 10 ) col0
----
NULL
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT DISTINCT - 75 + + 38 + - + CAST( - 83 AS SIGNED ) * + NULLIF ( 55, + 98 ) + - - 95 + + MAX( ALL + + 77 ) * - 50 + + - 23
----
750

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT - 75 + + 38 + - + CAST ( - 83 AS INTEGER ) * + NULLIF ( 55, + 98 ) + - - 95 + + MAX ( ALL + + 77 ) * - 50 + + - 23
----
750

query II rowsort
SELECT ALL 8 AS col0, - 96 AS col0
----
8
-96

query II rowsort
SELECT DISTINCT + ( + - 54 ) + + 16, 24 + + + 8 AS col2
----
-38
32

query I rowsort
SELECT ALL - 57 + 34 AS col2
----
-23

query I rowsort
SELECT ALL + 30 + 86 AS col0
----
116

onlyif mysql # DIV for integer division: 
query II rowsort label-8875
SELECT + 76 * - 87 - 92 DIV 64, 50 AS col2
----
-6613
50

skipif mysql # not compatible
query II rowsort label-8875
SELECT + 76 * - 87 - 92 / 64, 50 AS col2
----
-6613
50

query I rowsort
SELECT 43 + - 71
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8877
SELECT + CASE 21 WHEN - + 30 * + 9 + - + 86 * - ( - 50 ) + - 82 THEN - + ( + - CAST( NULL AS SIGNED ) ) END * - + ( - COUNT( * ) ) * - + 2 + + - 19 + - - ( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8877
SELECT + CASE 21 WHEN - + 30 * + 9 + - + 86 * - ( - 50 ) + - 82 THEN - + ( + - CAST ( NULL AS INTEGER ) ) END * - + ( - COUNT ( * ) ) * - + 2 + + - 19 + - - ( 27 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8878
SELECT CASE - 47 WHEN + 25 * + CAST( NULL AS SIGNED ) * + + 74 + + - 49 * + 20 + - COALESCE ( - 95, - ( - 67 ), - + 16 - COUNT( * ), - 8 ) THEN NULL WHEN + + NULLIF ( + - 69, ( 59 ) + + 23 ) / + - 83 THEN NULL ELSE + 69 + 59 END * 10 * - 13 AS col1
----
-16640

skipif mysql # not compatible
query I rowsort label-8878
SELECT CASE - 47 WHEN + 25 * + CAST ( NULL AS INTEGER ) * + + 74 + + - 49 * + 20 + - COALESCE ( - 95, - ( - 67 ), - + 16 - COUNT ( * ), - 8 ) THEN NULL WHEN + + NULLIF ( + - 69, ( 59 ) + + 23 ) / + - 83 THEN NULL ELSE + 69 + 59 END * 10 * - 13 AS col1
----
-16640

query I rowsort
SELECT ALL 58 + + 45 AS col1
----
103

query II rowsort
SELECT ALL - 4 AS col1, 20 * + 20 + + 92 * - 32 * 17 - + 4 AS col0
----
-4
-49652

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8881
SELECT ALL - 49 AS col0, 86 * CAST( NULL AS SIGNED ) AS col2
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-8881
SELECT ALL - 49 AS col0, 86 * CAST ( NULL AS INTEGER ) AS col2
----
-49
NULL

query I rowsort
SELECT DISTINCT + 86 * - 37
----
-3182

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT ALL - 59, + COUNT( * ) AS col2
----
-59
1

skipif mysql # not compatible
query II rowsort label-8883
SELECT ALL - 59, + COUNT ( * ) AS col2
----
-59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT - SUM( + + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-8884
SELECT - SUM ( + + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-8885
SELECT - + COUNT( * ) * - - 46 * - 6 + + 95 + + 23 + COUNT( * ) AS col0, 92 * ( 82 )
----
395
7544

skipif mysql # not compatible
query II rowsort label-8885
SELECT - + COUNT ( * ) * - - 46 * - 6 + + 95 + + 23 + COUNT ( * ) AS col0, 92 * ( 82 )
----
395
7544

query II rowsort
SELECT + - 59 AS col2, 88 AS col2
----
-59
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8887
SELECT + 68 + 1 DIV + + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8887
SELECT + 68 + 1 / + + COUNT ( * ) AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8888
SELECT - COALESCE ( - NULLIF ( + - 36, 5 * + 31 - - COUNT( * ) + + 30 * + 26 * - - ( - - CAST( NULL AS SIGNED ) ) ), 25 ) DIV + 22 + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8888
SELECT - COALESCE ( - NULLIF ( + - 36, 5 * + 31 - - COUNT ( * ) + + 30 * + 26 * - - ( - - CAST ( NULL AS INTEGER ) ) ), 25 ) / + 22 + + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 36 * + ( - - 85 ) AS col2
----
3060

query II rowsort
SELECT 28 + + 35 + - - 15 AS col0, - 85 + - 54 AS col0
----
78
-139

query I rowsort
SELECT + 57 * + 60 AS col2
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ( - - 89 ) + - - COUNT( * ) + 43
----
133

skipif mysql # not compatible
query I rowsort label-8892
SELECT ( - - 89 ) + - - COUNT ( * ) + 43
----
133

query I rowsort
SELECT - - ( - 12 ) col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT + 85 + 18 DIV - 28
----
85

skipif mysql # not compatible
query I rowsort label-8894
SELECT + 85 + 18 / - 28
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT CAST( 25 AS SIGNED ) + - 8
----
17

skipif mysql # not compatible
query I rowsort label-8895
SELECT CAST ( 25 AS INTEGER ) + - 8
----
17

query I rowsort
SELECT DISTINCT - 60 * - 97 col0
----
5820

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT DISTINCT - 89 DIV - - 84
----
-1

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT - 89 / - - 84
----
-1

query I rowsort
SELECT DISTINCT 77 + - 85 AS col1
----
-8

query II rowsort
SELECT 69 + - 6 AS col0, - 3 col1
----
63
-3

query I rowsort
SELECT DISTINCT 30 * - + 36 AS col0
----
-1080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT COALESCE ( + ( + MIN( ALL - + 94 ) ), 28 * 24 + + MAX( - CAST( NULL AS SIGNED ) ) * - 47 ) * + 86 * 95 * - + 34 + - COUNT( * )
----
26111319

skipif mysql # not compatible
query I rowsort label-8901
SELECT COALESCE ( + ( + MIN ( ALL - + 94 ) ), 28 * 24 + + MAX ( - CAST ( NULL AS INTEGER ) ) * - 47 ) * + 86 * 95 * - + 34 + - COUNT ( * )
----
26111319

query I rowsort
SELECT 79 + - 91
----
-12

query II rowsort
SELECT ALL - 71 * - 17 AS col0, 19 * 39 * + - 84 + - - 31 col1
----
1207
-62213

query I rowsort
SELECT DISTINCT 94 * + - ( - 53 )
----
4982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT 69 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT 69 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 70 * 94 AS col1
----
6580

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8907
SELECT ALL 71 * CAST( NULL AS SIGNED ) - - CAST( + + 68 AS SIGNED ) AS col2, - 13 AS col2
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-8907
SELECT ALL 71 * CAST ( NULL AS INTEGER ) - - CAST ( + + 68 AS INTEGER ) AS col2, - 13 AS col2
----
NULL
-13

query I rowsort
SELECT DISTINCT COALESCE ( + 44, + 20 ) * + ( - 34 ) - + + ( + - 80 ) AS col1
----
-1416

query I rowsort
SELECT 25 * + ( + ( + 42 ) ) * - - 57 AS col2
----
59850

query I rowsort
SELECT 12 * + 40
----
480

query I rowsort
SELECT DISTINCT - + 87 * - - 87 * - 61 * - 90 - 83 AS col0
----
-41553893

query I rowsort
SELECT DISTINCT - - COALESCE ( 59, + 86 )
----
59

query I rowsort
SELECT ALL - - 45 * - - 82 + + 25 AS col1
----
3715

query I rowsort
SELECT - - 3 + + 89 AS col1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT - 8 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8915
SELECT - 8 / + 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT + 78 + + 30, 25 * - COALESCE ( + COUNT( * ), - 29 ) AS col2
----
108
-25

skipif mysql # not compatible
query II rowsort label-8916
SELECT + 78 + + 30, 25 * - COALESCE ( + COUNT ( * ), - 29 ) AS col2
----
108
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8917
SELECT ALL + + COUNT( * ) + 33 DIV - 83 + + - ( + 74 )
----
-73

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + + COUNT ( * ) + 33 / - 83 + + - ( + 74 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL 66 + - 34 + ( - 17 ) + - 3 * - + 93 * - 32 - COUNT( * ) * - + 20 * COUNT( * )
----
-8893

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL 66 + - 34 + ( - 17 ) + - 3 * - + 93 * - 32 - COUNT ( * ) * - + 20 * COUNT ( * )
----
-8893

query I rowsort
SELECT DISTINCT + 98 + - 84 + + - ( - - 80 ) * - 83 * - - 26 AS col1
----
172654

query I rowsort
SELECT ALL 25 * + 63 AS col1
----
1575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8921
SELECT + 0 * - COUNT( * ) DIV + - ( 7 )
----
0

skipif mysql # not compatible
query I rowsort label-8921
SELECT + 0 * - COUNT ( * ) / + - ( 7 )
----
0

query I rowsort
SELECT ALL 82 + + 98
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8923
SELECT + COUNT( ALL - 61 ) - 80 DIV - - 82
----
1

skipif mysql # not compatible
query I rowsort label-8923
SELECT + COUNT ( ALL - 61 ) - 80 / - - 82
----
1

query I rowsort
SELECT ALL 53 * + 48 AS col2
----
2544

query I rowsort
SELECT + 64 - + 51 AS col2
----
13

query I rowsort
SELECT ALL - 40 * + - 56 AS col0
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT MIN( DISTINCT 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT MIN ( DISTINCT 89 ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT 31 DIV - 43 + + 48 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8928
SELECT 31 / - 43 + + 48 AS col2
----
48

query I rowsort
SELECT - 69 * + 98 AS col2
----
-6762

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL 75 * COUNT( * ) col0
----
75

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL 75 * COUNT ( * ) col0
----
75

query II rowsort
SELECT + 40, 44 AS col0
----
40
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8932
SELECT + COUNT( ALL - 78 ) DIV + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8932
SELECT + COUNT ( ALL - 78 ) / + 7 AS col1
----
0

query I rowsort
SELECT + + 78 * 36 * 16 + - + 74 + - - 67 + 97
----
45018

query I rowsort
SELECT ALL + + 85 * + + 44 + - - 50 AS col2
----
3790

query I rowsort
SELECT + + 42 * - 16
----
-672

query II rowsort
SELECT ALL + + NULLIF ( 28, + 22 ) AS col1, 32
----
28
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8937
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * + CAST( 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( 97 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT - + ( - MAX( - ( - 44 ) ) ) * + - 16 + - 75 col2
----
-779

skipif mysql # not compatible
query I rowsort label-8938
SELECT - + ( - MAX ( - ( - 44 ) ) ) * + - 16 + - 75 col2
----
-779

query I rowsort
SELECT ALL - 4 * 47
----
-188

query I rowsort
SELECT - + 93 + - + 14 AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT - 12 * + COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8941
SELECT - 12 * + COUNT ( * ) AS col1
----
-12

query I rowsort
SELECT - - 18 + + - 43 + - ( 77 ) AS col0
----
-102

query I rowsort
SELECT + - 15 * + 83 AS col1
----
-1245

query I rowsort
SELECT - + 98 * + - 0 + + 8 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT SUM( DISTINCT + - 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-8945
SELECT SUM ( DISTINCT + - 19 ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT ALL + SUM( ALL + ( - 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + SUM ( ALL + ( - 39 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL MIN( DISTINCT + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL MIN ( DISTINCT + 57 )
----
57

query I rowsort
SELECT DISTINCT - CASE + - 35 WHEN CASE - 27 WHEN - + 50 + + 43 - + 80 THEN NULL ELSE - 20 / 79 END * + - 45 THEN 72 + - 52 / - - 88 END * + 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT - COUNT( * ) + - + 44 * 52 AS col2
----
-2289

skipif mysql # not compatible
query I rowsort label-8949
SELECT - COUNT ( * ) + - + 44 * 52 AS col2
----
-2289

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT - 77 * 52 DIV - 26
----
154

skipif mysql # not compatible
query I rowsort label-8950
SELECT - 77 * 52 / - 26
----
154

query I rowsort
SELECT - 95 + - + 98
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT + COUNT( * ) - - - 45 * + COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8952
SELECT + COUNT ( * ) - - - 45 * + COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT + 59 + ( 54 ) - 75
----
38

query I rowsort
SELECT DISTINCT ( - 4 ) AS col2
----
-4

query II rowsort
SELECT - 24 * 84 AS col0, 71 AS col2
----
-2016
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT + 41 + + - 29 + - COUNT( * ) + + 30
----
41

skipif mysql # not compatible
query I rowsort label-8956
SELECT + 41 + + - 29 + - COUNT ( * ) + + 30
----
41

query I rowsort
SELECT ALL - 99 - 7 AS col2
----
-106

query I rowsort
SELECT + ( - + 11 ) + 66
----
55

query I rowsort
SELECT - 88 * + 5
----
-440

onlyif mysql # DIV for integer division: 
query II rowsort label-8960
SELECT 69, + 53 + 64 + - 79 DIV 69 AS col2
----
69
116

skipif mysql # not compatible
query II rowsort label-8960
SELECT 69, + 53 + 64 + - 79 / 69 AS col2
----
69
116

onlyif mysql # aggregate syntax: 
query II rowsort label-8961
SELECT - COUNT( * ) AS col1, 22
----
-1
22

skipif mysql # not compatible
query II rowsort label-8961
SELECT - COUNT ( * ) AS col1, 22
----
-1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT - CASE WHEN NULL = - 13 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT - CASE WHEN NULL = - 13 THEN + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 87 + + 66
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-8964
SELECT ALL + 58 AS col0, COUNT( * ) col1
----
58
1

skipif mysql # not compatible
query II rowsort label-8964
SELECT ALL + 58 AS col0, COUNT ( * ) col1
----
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL + MAX( + 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + MAX ( + 91 ) AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8966
SELECT DISTINCT NULLIF ( NULLIF ( - CAST( NULL AS SIGNED ), 79 ), + COUNT( * ) ) * 22 * - 40 / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT NULLIF ( NULLIF ( - CAST ( NULL AS INTEGER ), 79 ), + COUNT ( * ) ) * 22 * - 40 / + 98
----
NULL

query II rowsort
SELECT DISTINCT + + 53 AS col1, + 88 AS col1
----
53
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT - 97 DIV 8 col0
----
-12

skipif mysql # not compatible
query I rowsort label-8968
SELECT - 97 / 8 col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT COUNT( * ) - - 51 + + - 19 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8969
SELECT COUNT ( * ) - - 51 + + - 19 AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8970
SELECT 80 DIV 80 + + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8970
SELECT 80 / 80 + + 25 AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8971
SELECT - SUM( ALL 48 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT - SUM ( ALL 48 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT MIN( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-8972
SELECT MIN ( 15 )
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8973
SELECT + CAST( - 86 AS SIGNED ) DIV - 17
----
5

skipif mysql # not compatible
query I rowsort label-8973
SELECT + CAST ( - 86 AS INTEGER ) / - 17
----
5

query I rowsort
SELECT + - COALESCE ( + + 67, - 63 * - 94 ) AS col0
----
-67

query II rowsort
SELECT + - 44 AS col0, 49
----
-44
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT + COUNT( * ) * - + 92 * - - 53 AS col2
----
-4876

skipif mysql # not compatible
query I rowsort label-8976
SELECT + COUNT ( * ) * - + 92 * - - 53 AS col2
----
-4876

query I rowsort
SELECT ALL + 0 + - 67 + + 45 + - 65 * 58
----
-3792

query I rowsort
SELECT DISTINCT - + 15 * + 41
----
-615

query I rowsort
SELECT DISTINCT 69 + - - 70 AS col2
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT DISTINCT 82 + - - COUNT( - 89 ) - + 21 * - 67 - + - 73 AS col0
----
1563

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT 82 + - - COUNT ( - 89 ) - + 21 * - 67 - + - 73 AS col0
----
1563

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8981
SELECT 35 AS col1, 88 + + - CAST( NULL AS DECIMAL ) - + 49
----
35
NULL

skipif mysql # not compatible
query II rowsort label-8981
SELECT 35 AS col1, 88 + + - CAST ( NULL AS REAL ) - + 49
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL - NULLIF ( + 72, - MIN( + - 80 ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL - NULLIF ( + 72, - MIN ( + - 80 ) ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT + 30 - - + 60 + MIN( + + 85 )
----
175

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT + 30 - - + 60 + MIN ( + + 85 )
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT + 58 * + 41 * MIN( + - 58 )
----
-137924

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + 58 * + 41 * MIN ( + - 58 )
----
-137924

onlyif mysql # aggregate syntax: 
query II rowsort label-8985
SELECT ALL + 40 * + ( 60 ) AS col2, - NULLIF ( - + 12, + + COUNT( * ) + - COALESCE ( - 10, - 73 + 31 - 0 + - + 13 * - 67 ) ) + - 2 AS col1
----
2400
10

skipif mysql # not compatible
query II rowsort label-8985
SELECT ALL + 40 * + ( 60 ) AS col2, - NULLIF ( - + 12, + + COUNT ( * ) + - COALESCE ( - 10, - 73 + 31 - 0 + - + 13 * - 67 ) ) + - 2 AS col1
----
2400
10

query I rowsort
SELECT ALL + 67 * + 8
----
536

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT 59 - + - COUNT( * ) - - 53 * + COUNT( * ) AS col2
----
113

skipif mysql # not compatible
query I rowsort label-8987
SELECT 59 - + - COUNT ( * ) - - 53 * + COUNT ( * ) AS col2
----
113

query I rowsort
SELECT 97 * + + 15 * + 0
----
0

query I rowsort
SELECT 87 * + 57 AS col2
----
4959

query I rowsort
SELECT 94 - - + 73 * + ( + 51 ) AS col1
----
3817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT 97 * SUM( DISTINCT + + 17 ) DIV 91 + - 59 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8991
SELECT 97 * SUM ( DISTINCT + + 17 ) / 91 + - 59 AS col1
----
-41

query II rowsort
SELECT 3 - 0 AS col0, 49 + - 13 + + 32 + - + 4 AS col0
----
3
64

query II rowsort
SELECT ALL 2 + + 92, 82 AS col1
----
94
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8994
SELECT 56 * + 93, - SUM( DISTINCT - - 15 ) AS col1
----
5208
-15

skipif mysql # not compatible
query II rowsort label-8994
SELECT 56 * + 93, - SUM ( DISTINCT - - 15 ) AS col1
----
5208
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT ALL - + ( 54 ) + - + 61 * + - 38 + COUNT( * ) * + 11 AS col0
----
2275

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - + ( 54 ) + - + 61 * + - 38 + COUNT ( * ) * + 11 AS col0
----
2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8996
SELECT ( - CAST( NULL AS SIGNED ) ) col1, - ( - - 57 ) - NULLIF ( - - 91, ( - 53 ) + + 37 / - - COALESCE ( - COUNT( * ), 16 ) + 93 / 88 + + 57 + 48 )
----
NULL
-148

skipif mysql # not compatible
query II rowsort label-8996
SELECT ( - CAST ( NULL AS INTEGER ) ) col1, - ( - - 57 ) - NULLIF ( - - 91, ( - 53 ) + + 37 / - - COALESCE ( - COUNT ( * ), 16 ) + 93 / 88 + + 57 + 48 )
----
NULL
-148

query I rowsort
SELECT 41 * - 39 + - 10 AS col1
----
-1609

onlyif mysql # aggregate syntax: 
query II rowsort label-8998
SELECT ALL - 35 + - + 22 * - + COUNT( * ), 8 + + 51 + - + 21 AS col1
----
-13
38

skipif mysql # not compatible
query II rowsort label-8998
SELECT ALL - 35 + - + 22 * - + COUNT ( * ), 8 + + 51 + - + 21 AS col1
----
-13
38

query I rowsort
SELECT DISTINCT - + 9 col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT DISTINCT - - 96 + COUNT( * ) AS col2, - 13 * + + 15
----
97
-195

skipif mysql # not compatible
query II rowsort label-9000
SELECT DISTINCT - - 96 + COUNT ( * ) AS col2, - 13 * + + 15
----
97
-195

query II rowsort
SELECT DISTINCT - ( - 17 ) AS col0, 59
----
17
59

query I rowsort
SELECT 84 * + ( 71 )
----
5964

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT 28 * COUNT( * ) * - - CASE - COUNT( * ) WHEN AVG ( 93 ) * 38 - - - 64 + - - COUNT( * ) THEN - - 37 WHEN - NULLIF ( 89, + + 17 * + - 72 ) THEN NULL WHEN 39 THEN + ( - + ( 62 ) ) END + - + COUNT( + 44 ) - + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9003
SELECT 28 * COUNT ( * ) * - - CASE - COUNT ( * ) WHEN AVG ( 93 ) * 38 - - - 64 + - - COUNT ( * ) THEN - - 37 WHEN - NULLIF ( 89, + + 17 * + - 72 ) THEN NULL WHEN 39 THEN + ( - + ( 62 ) ) END + - + COUNT ( + 44 ) - + 14 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9004
SELECT ALL - COUNT( + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL - COUNT ( + - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + - ( + 72 )
----
-72

query I rowsort
SELECT DISTINCT 16 - 52 AS col1
----
-36

query I rowsort
SELECT ALL 66 * 38
----
2508

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9008
SELECT ALL CAST( 0 AS SIGNED ) DIV + - NULLIF ( + 7, 39 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL CAST ( 0 AS INTEGER ) / + - NULLIF ( + 7, 39 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9009
SELECT + COUNT( * ) AS col0, + 53 col0
----
1
53

skipif mysql # not compatible
query II rowsort label-9009
SELECT + COUNT ( * ) AS col0, + 53 col0
----
1
53

query I rowsort
SELECT ALL 60 * - 51 col2
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-9011
SELECT 72 DIV NULLIF ( - 57, - 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9011
SELECT 72 / NULLIF ( - 57, - 36 ) AS col1
----
-1

query I rowsort
SELECT ALL 30 * - 11 * - 73
----
24090

query I rowsort
SELECT 78 * 60 AS col0
----
4680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT ALL 24 * + + CAST( - 2 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL 24 * + + CAST ( - 2 AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT - COUNT( * ) col1, 64
----
-1
64

skipif mysql # not compatible
query II rowsort label-9015
SELECT - COUNT ( * ) col1, 64
----
-1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT 68 + - CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN 37 + - 25 * + 3 / - + 80 * + - 45 THEN - MIN( ALL 24 ) + + NULLIF ( - COUNT( ALL 28 ), + + ( ( - 86 ) ) + + COALESCE ( + 22, COUNT( * ) * - 13 / - + 51, + 6 * 49 * + + 57, - COUNT( * ) ) ) * - 82 * COUNT( * ) ELSE - - 21 END
----
47

skipif mysql # not compatible
query I rowsort label-9016
SELECT 68 + - CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN 37 + - 25 * + 3 / - + 80 * + - 45 THEN - MIN ( ALL 24 ) + + NULLIF ( - COUNT ( ALL 28 ), + + ( ( - 86 ) ) + + COALESCE ( + 22, COUNT ( * ) * - 13 / - + 51, + 6 * 49 * + + 57, - COUNT ( * ) ) ) * - 82 * COUNT ( * ) ELSE - - 21 END
----
47

query I rowsort
SELECT 4 - NULLIF ( 39, - 97 )
----
-35

query I rowsort
SELECT 13 + - 38 * 31 + - 92 + 46
----
-1211

query II rowsort
SELECT ALL 72, 45 AS col0
----
72
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT 94 + - MAX( + 86 )
----
8

skipif mysql # not compatible
query I rowsort label-9020
SELECT 94 + - MAX ( + 86 )
----
8

query I rowsort
SELECT DISTINCT + ( + 86 ) + - - 54 + - + 68 + + 87 * + - 82 * 42
----
-299556

query I rowsort
SELECT ALL COALESCE ( + - 13, 38 * - - 17 )
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9023
SELECT 88 col2, + COUNT( * ) * - 36 * + - 14 AS col1
----
88
504

skipif mysql # not compatible
query II rowsort label-9023
SELECT 88 col2, + COUNT ( * ) * - 36 * + - 14 AS col1
----
88
504

query I rowsort
SELECT - 4 + + + 58
----
54

query I rowsort
SELECT ALL + - 86 + - + NULLIF ( ( - 8 ), + - 45 )
----
-78

query I rowsort
SELECT + - 94 * - + 97 * 64 col2
----
583552

query II rowsort
SELECT - 20, 18 AS col0
----
-20
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT - - ( + COALESCE ( - CAST( CASE - 90 WHEN - - COUNT( * ) THEN MIN( + 62 ) ELSE + + COUNT( * ) END AS SIGNED ), + 26, - 4 * - + 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9028
SELECT - - ( + COALESCE ( - CAST ( CASE - 90 WHEN - - COUNT ( * ) THEN MIN ( + 62 ) ELSE + + COUNT ( * ) END AS INTEGER ), + 26, - 4 * - + 2 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9029
SELECT - 36 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9029
SELECT - 36 / 79 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT - 6 + + + 90 - + 74 * + ( + + 44 ) * 99 * - 36 + + 54 - - 39 + + CAST( NULL AS SIGNED ) * COALESCE ( + 63, + + COUNT( * ) + 70 ) + + - SUM( DISTINCT - + 84 ) * + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT - 6 + + + 90 - + 74 * + ( + + 44 ) * 99 * - 36 + + 54 - - 39 + + CAST ( NULL AS INTEGER ) * COALESCE ( + 63, + + COUNT ( * ) + 70 ) + + - SUM ( DISTINCT - + 84 ) * + 95
----
NULL

query I rowsort
SELECT DISTINCT - - 69 * + + 14 + 46 * + 20
----
1886

onlyif mysql # aggregate syntax: 
query II rowsort label-9032
SELECT ALL + - 7 + + + ( + 10 ) AS col2, + COUNT( * ) + - + 97
----
3
-96

skipif mysql # not compatible
query II rowsort label-9032
SELECT ALL + - 7 + + + ( + 10 ) AS col2, + COUNT ( * ) + - + 97
----
3
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9033
SELECT DISTINCT - 93 * - 91 * 25 * 15 + - MIN( ALL 23 ) + COALESCE ( + - 9, - 42 ) DIV 92 * - 65 * COUNT( * ) + - 98 DIV 7 * - 54 col0
----
3174358

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT - 93 * - 91 * 25 * 15 + - MIN ( ALL 23 ) + COALESCE ( + - 9, - 42 ) / 92 * - 65 * COUNT ( * ) + - 98 / 7 * - 54 col0
----
3174358

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - - CASE + 53 WHEN + COUNT( * ) THEN - - 62 ELSE NULL END / 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT - - CASE + 53 WHEN + COUNT ( * ) THEN - - 62 ELSE NULL END / 91 AS col2
----
NULL

query I rowsort
SELECT ALL + - 92 * + 51 - 59 AS col2
----
-4751

query I rowsort
SELECT ALL + NULLIF ( - 19, + 36 ) * 9 + - - 93 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9037
SELECT COUNT( * ) AS col0, 99 * - 33
----
1
-3267

skipif mysql # not compatible
query II rowsort label-9037
SELECT COUNT ( * ) AS col0, 99 * - 33
----
1
-3267

query II rowsort
SELECT + + 76 AS col2, 63 AS col2
----
76
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL + 88 * COUNT( * ) - - COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL + 88 * COUNT ( * ) - - COUNT ( * ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT ALL 12 DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL 12 / 32
----
0

query II rowsort
SELECT + 18 * + 4, 57 col2
----
72
57

query I rowsort
SELECT + 88 + 2 + 38
----
128

query I rowsort
SELECT + ( + 15 ) * + - 20 AS col1
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL + 77 + - COUNT( * ) * + 15 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL + 77 + - COUNT ( * ) * + 15 AS col1
----
62

query I rowsort
SELECT DISTINCT 23 + - 78 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT MAX( ALL CAST( - ( + 1 ) AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9046
SELECT MAX ( ALL CAST ( - ( + 1 ) AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL 46 + + 24 * + COUNT( + 9 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL 46 + + 24 * + COUNT ( + 9 ) AS col0
----
70

query I rowsort
SELECT + 52 * - ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT 58 + + + 43 - - COALESCE ( - - 7, + ( - 3 ) * 75, + - 37 * + COUNT( * ) + + 87 ) * + - 60
----
-319

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT 58 + + + 43 - - COALESCE ( - - 7, + ( - 3 ) * 75, + - 37 * + COUNT ( * ) + + 87 ) * + - 60
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT + COUNT( * ) - - + ( - - COUNT( * ) ) col2
----
2

skipif mysql # not compatible
query I rowsort label-9050
SELECT + COUNT ( * ) - - + ( - - COUNT ( * ) ) col2
----
2

query I rowsort
SELECT + 7 + 61 AS col0
----
68

query I rowsort
SELECT - 77 * - 68 + - 98 AS col0
----
5138

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT - NULLIF ( 17, - COUNT( * ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT - NULLIF ( 17, - COUNT ( * ) ) AS col1
----
-17

query I rowsort
SELECT ALL - 2 - 87 - - + 61 * - + 96
----
-5945

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT - + ( + + COUNT( * ) ) + + 48
----
47

skipif mysql # not compatible
query I rowsort label-9055
SELECT - + ( + + COUNT ( * ) ) + + 48
----
47

query I rowsort
SELECT - 79 * 28 * 81 + + 68
----
-179104

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT - 75 DIV + - 41 - - - 62 * - - 15 col1
----
-929

skipif mysql # not compatible
query I rowsort label-9057
SELECT - 75 / + - 41 - - - 62 * - - 15 col1
----
-929

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT + 8 DIV + ( + - 99 ) * 52 + + 2 + + 49 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9058
SELECT + 8 / + ( + - 99 ) * 52 + + 2 + + 49 AS col1
----
51

query I rowsort
SELECT ALL 33 * - ( 70 ) * 6 * - 70 + + - 1 + + 69 * + 88 AS col2
----
976271

query I rowsort
SELECT ALL + + NULLIF ( 34, - - 91 + 74 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - COUNT( * ) + - COUNT( DISTINCT 17 ) * + 79
----
-80

skipif mysql # not compatible
query I rowsort label-9061
SELECT - COUNT ( * ) + - COUNT ( DISTINCT 17 ) * + 79
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT - 13 DIV - - 5 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9062
SELECT - 13 / - - 5 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT ALL - 8 DIV + 65 col1
----
0

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL - 8 / + 65 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9064
SELECT DISTINCT + COUNT( * ), SUM( 43 ) AS col2
----
1
43

skipif mysql # not compatible
query II rowsort label-9064
SELECT DISTINCT + COUNT ( * ), SUM ( 43 ) AS col2
----
1
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT 9 * - 30 * + AVG ( + ( + 93 ) ) * + + CAST( NULL AS SIGNED ) + + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT 9 * - 30 * + AVG ( + ( + 93 ) ) * + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( COALESCE ( - 58, - - 17 ) ) AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT ALL + 37 * 22 DIV - + COUNT( * ) + - + 46 AS col2
----
-860

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + 37 * 22 / - + COUNT ( * ) + - + 46 AS col2
----
-860

query I rowsort
SELECT DISTINCT - 37 * + 23 * + 43 AS col1
----
-36593

query I rowsort
SELECT - 52 + - - 36
----
-16

query I rowsort
SELECT ALL - 19 * - 51
----
969

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT DISTINCT + MIN( - 90 ) + + COALESCE ( + 71, + 47, 21 ) * - + 54 - MAX( DISTINCT + 21 )
----
-3945

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT + MIN ( - 90 ) + + COALESCE ( + 71, + 47, 21 ) * - + 54 - MAX ( DISTINCT + 21 )
----
-3945

query I rowsort
SELECT ALL - 10 + - 72 AS col2
----
-82

query II rowsort
SELECT - 77 AS col0, + 3 AS col0
----
-77
3

query I rowsort
SELECT ALL + 46 + - 46 AS col1
----
0

query I rowsort
SELECT 93 + - ( - 48 )
----
141

query I rowsort
SELECT 96 * + - 79 AS col1
----
-7584

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT 38 - + COUNT( * ) + - - 40 * + + 69
----
2797

skipif mysql # not compatible
query I rowsort label-9077
SELECT 38 - + COUNT ( * ) + - - 40 * + + 69
----
2797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT 31 + + + 22 + + 76 - - 29 * - + 69 * 39 / 5 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT 31 + + + 22 + + 76 - - 29 * - + 69 * 39 / 5 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL + 17 - - - 91 + 88, + 77 AS col0
----
14
77

query I rowsort
SELECT 65 + 60
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9081
SELECT DISTINCT - 6 DIV + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT - 6 / + COUNT ( * )
----
-6

query I rowsort
SELECT 11 + - 85 + + 66 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9083
SELECT ALL + 73 * - CAST( NULL AS DECIMAL ) * COALESCE ( - 68, + 51 * COALESCE ( - ( + COUNT( * ) ), 73 ) ) * - - COUNT( - 39 ) / + 1 - - + 28 + + 44 * + - COUNT( * ) + + COUNT( DISTINCT 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL + 73 * - CAST ( NULL AS REAL ) * COALESCE ( - 68, + 51 * COALESCE ( - ( + COUNT ( * ) ), 73 ) ) * - - COUNT ( - 39 ) / + 1 - - + 28 + + 44 * + - COUNT ( * ) + + COUNT ( DISTINCT 35 ) AS col0
----
NULL

query I rowsort
SELECT - 54 + - - 85 - + - 73 col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT ALL 24 * - - COUNT( - 99 ) col0
----
24

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL 24 * - - COUNT ( - 99 ) col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9086
SELECT 44 / + CASE - SUM( + 26 ) WHEN - COALESCE ( 73, - 98 + + - 35 * - + NULLIF ( ( - 73 ), 41 ), - AVG ( - 60 ) ) * CAST( - - 59 AS SIGNED ) THEN - - MIN( - - 23 ) / - 69 * - 59 * - 97 * - - 80 WHEN + - 96 THEN - 85 * + 70 * 3 - - 76 + - + 6 + - + 32 + + - 95 + + - COUNT( * ) * - - 27 * + 95 END AS col0, - 39 + - 68 col0
----
NULL
-107

skipif mysql # not compatible
query II rowsort label-9086
SELECT 44 / + CASE - SUM ( + 26 ) WHEN - COALESCE ( 73, - 98 + + - 35 * - + NULLIF ( ( - 73 ), 41 ), - AVG ( - 60 ) ) * CAST ( - - 59 AS INTEGER ) THEN - - MIN ( - - 23 ) / - 69 * - 59 * - 97 * - - 80 WHEN + - 96 THEN - 85 * + 70 * 3 - - 76 + - + 6 + - + 32 + + - 95 + + - COUNT ( * ) * - - 27 * + 95 END AS col0, - 39 + - 68 col0
----
NULL
-107

query II rowsort
SELECT + 56, 42 col1
----
56
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL COUNT( * ) * - 72 * - + 77
----
5544

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL COUNT ( * ) * - 72 * - + 77
----
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT 80 + 24 DIV - 47 + + 40
----
120

skipif mysql # not compatible
query I rowsort label-9089
SELECT 80 + 24 / - 47 + + 40
----
120

query I rowsort
SELECT + 4 + - 7 AS col0
----
-3

query II rowsort
SELECT DISTINCT - 0 AS col2, 19 AS col2
----
0
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT ALL CAST( - 45 AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL CAST ( - 45 AS INTEGER ) AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9093
SELECT ALL - 49 * NULLIF ( + + COALESCE ( + MAX( DISTINCT - + 3 ), + - 43 DIV - + 50 ), 34 ) + - 60 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL - 49 * NULLIF ( + + COALESCE ( + MAX ( DISTINCT - + 3 ), + - 43 / - + 50 ), 34 ) + - 60 AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9094
SELECT DISTINCT + COUNT( * ) DIV NULLIF ( - + ( SUM( DISTINCT + 62 ) ), 92 )
----
0

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT + COUNT ( * ) / NULLIF ( - + ( SUM ( DISTINCT + 62 ) ), 92 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9095
SELECT ALL 83 + + 25 AS col2, 85 - - COUNT( * ) col1
----
108
86

skipif mysql # not compatible
query II rowsort label-9095
SELECT ALL 83 + + 25 AS col2, 85 - - COUNT ( * ) col1
----
108
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT COUNT( ALL 28 ) - + 84 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9096
SELECT COUNT ( ALL 28 ) - + 84 AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9097
SELECT 23 AS col2, - 38 * CAST( AVG ( + 63 ) AS SIGNED ) col0
----
23
-2394

skipif mysql # not compatible
query II rowsort label-9097
SELECT 23 AS col2, - 38 * CAST ( AVG ( + 63 ) AS INTEGER ) col0
----
23
-2394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT DISTINCT + 95 + COUNT( * ) + CAST( 81 AS SIGNED ) * + 80 AS col2
----
6576

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT + 95 + COUNT ( * ) + CAST ( 81 AS INTEGER ) * + 80 AS col2
----
6576

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT 17 * SUM( DISTINCT 73 ) AS col1
----
1241

skipif mysql # not compatible
query I rowsort label-9099
SELECT 17 * SUM ( DISTINCT 73 ) AS col1
----
1241

onlyif mysql # aggregate syntax: 
query II rowsort label-9100
SELECT DISTINCT - 20, + 40 + - MIN( 99 ) AS col1
----
-20
-59

skipif mysql # not compatible
query II rowsort label-9100
SELECT DISTINCT - 20, + 40 + - MIN ( 99 ) AS col1
----
-20
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT DISTINCT 0 + + - 78 DIV + + 23
----
-3

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT 0 + + - 78 / + + 23
----
-3

query I rowsort
SELECT 7 - - 12
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT ALL + 50 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL + 50 / - 72
----
0

query I rowsort
SELECT DISTINCT + 78 + + 88 + + + 83 AS col2
----
249

query I rowsort
SELECT ALL - NULLIF ( - 31, - 76 ) + + - 47 AS col0
----
-16

query II rowsort
SELECT 4 col0, - 19
----
4
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL - ( - - MIN( + 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL - ( - - MIN ( + 31 ) )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9108
SELECT ALL - CASE SUM( 89 ) WHEN - - CAST( NULL AS DECIMAL ) * + 60 * 82 THEN - + ( - 29 ) + + - 40 END * - 15 + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL - CASE SUM ( 89 ) WHEN - - CAST ( NULL AS REAL ) * + 60 * 82 THEN - + ( - 29 ) + + - 40 END * - 15 + + 69
----
NULL

query II rowsort
SELECT + 33, - 52 + - 42 AS col1
----
33
-94

query I rowsort
SELECT 48 + + + 98 col1
----
146

query I rowsort
SELECT ALL - ( + 90 ) - + - 37 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT DISTINCT - COUNT( - + 89 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - COUNT ( - + 89 ) AS col0
----
-1

query I rowsort
SELECT ALL - + ( - 21 ) * + 77 * + 44 AS col1
----
71148

query I rowsort
SELECT - 30 + 66 AS col1
----
36

query II rowsort
SELECT 41 AS col2, 21 + 24 col0
----
41
45

query II rowsort
SELECT ALL 73 AS col2, - 41 + 23
----
73
-18

query I rowsort
SELECT + 78 - - 52 * ( + 18 ) * + - 86 AS col0
----
-80418

query I rowsort
SELECT 28 * - 41
----
-1148

query I rowsort
SELECT - 52 * 33 * 85 * + 22
----
-3208920

query I rowsort
SELECT 59 - - 91 AS col2
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT + 61 DIV - 77 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-9121
SELECT + 61 / - 77 + + 99
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT ALL - 61 DIV 72 + - 83 + + - 8
----
-91

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL - 61 / 72 + - 83 + + - 8
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9123
SELECT + 19 * - 39 AS col0, 53 * CAST( NULL AS SIGNED ) AS col0
----
-741
NULL

skipif mysql # not compatible
query II rowsort label-9123
SELECT + 19 * - 39 AS col0, 53 * CAST ( NULL AS INTEGER ) AS col0
----
-741
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL 58 * + 27 - - - COUNT( * )
----
1565

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL 58 * + 27 - - - COUNT ( * )
----
1565

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT - NULLIF ( 71, 63 * + + COUNT( * ) ) DIV 24
----
-2

skipif mysql # not compatible
query I rowsort label-9125
SELECT - NULLIF ( 71, 63 * + + COUNT ( * ) ) / 24
----
-2

query II rowsort
SELECT - 85 AS col0, 0 AS col1
----
-85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT 28 - - COALESCE ( + 78, COUNT( * ) )
----
106

skipif mysql # not compatible
query I rowsort label-9127
SELECT 28 - - COALESCE ( + 78, COUNT ( * ) )
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9128
SELECT ALL + 0 DIV - 29 DIV - ( + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL + 0 / - 29 / - ( + COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT + NULLIF ( + COUNT( * ), 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + NULLIF ( + COUNT ( * ), 99 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT - 68 + + MIN( DISTINCT - - 18 )
----
-50

skipif mysql # not compatible
query I rowsort label-9130
SELECT - 68 + + MIN ( DISTINCT - - 18 )
----
-50

query I rowsort
SELECT ALL - 9 + 45
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-9132
SELECT - 12 DIV - 6, - 19 col2
----
2
-19

skipif mysql # not compatible
query II rowsort label-9132
SELECT - 12 / - 6, - 19 col2
----
2
-19

query I rowsort
SELECT + NULLIF ( 10, + - 9 + - 66 ) + + 46 AS col1
----
56

query II rowsort
SELECT + - 97 AS col0, 56 * 30
----
-97
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT COUNT( * ) * + + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9135
SELECT COUNT ( * ) * + + 45 AS col0
----
45

query I rowsort
SELECT ALL + 15 * - 45 + + + 99 * 14 * 23 * 56
----
1784493

query I rowsort
SELECT DISTINCT 76 * - 90 + + 45 + 2
----
-6793

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT 82 * - 42 + ( - MIN( + 44 ) ) AS col0
----
-3488

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT 82 * - 42 + ( - MIN ( + 44 ) ) AS col0
----
-3488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9139
SELECT ALL + CASE 69 WHEN + 64 THEN NULL ELSE 8 DIV - 36 END * + 76 + - COUNT( * ) + - ( - + 42 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL + CASE 69 WHEN + 64 THEN NULL ELSE 8 / - 36 END * + 76 + - COUNT ( * ) + - ( - + 42 ) AS col0
----
41

query I rowsort
SELECT 83 * 38 + + 95 AS col1
----
3249

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT + 52 DIV 18 * - + 20 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9141
SELECT + 52 / 18 * - + 20 AS col2
----
-40

query II rowsort
SELECT + 69 + - 1 AS col0, + 19 + + 39
----
68
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT + CASE 21 WHEN + COUNT( * ) - - 75 THEN NULL ELSE - - 90 * - - 96 END AS col1
----
8640

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT + CASE 21 WHEN + COUNT ( * ) - - 75 THEN NULL ELSE - - 90 * - - 96 END AS col1
----
8640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9144
SELECT DISTINCT CASE 31 WHEN - + 76 THEN + - 23 * - COUNT( * ) * - ( - 74 ) * - MIN( DISTINCT 96 ) ELSE - + CASE 57 WHEN CAST( + 44 AS SIGNED ) * 33 + - + 15 THEN - + 70 - COUNT( * ) + + - 42 WHEN - ( - 83 ) * 48 THEN NULL END END * - 6 * ( COUNT( * ) ) + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT CASE 31 WHEN - + 76 THEN + - 23 * - COUNT ( * ) * - ( - 74 ) * - MIN ( DISTINCT 96 ) ELSE - + CASE 57 WHEN CAST ( + 44 AS INTEGER ) * 33 + - + 15 THEN - + 70 - COUNT ( * ) + + - 42 WHEN - ( - 83 ) * 48 THEN NULL END END * - 6 * ( COUNT ( * ) ) + + 22
----
NULL

query I rowsort
SELECT ALL - 23 * - - 5 - - 35
----
-80

query I rowsort
SELECT - 22 * - + 79
----
1738

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL + MAX( ALL + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + MAX ( ALL + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT 20 * + + MIN( - 89 ) * - CASE - COUNT( * ) WHEN + + 6 + - 40 THEN - - 66 END * + - 54 + - 18 + + MIN( ALL - 72 ) + - - CASE COUNT( * ) WHEN 25 * - 12 + ( - COUNT( * ) ) THEN + 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT 20 * + + MIN ( - 89 ) * - CASE - COUNT ( * ) WHEN + + 6 + - 40 THEN - - 66 END * + - 54 + - 18 + + MIN ( ALL - 72 ) + - - CASE COUNT ( * ) WHEN 25 * - 12 + ( - COUNT ( * ) ) THEN + 73 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9149
SELECT + + ( + 29 ) DIV + 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9149
SELECT + + ( + 29 ) / + 23 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT - + 45 * + - COUNT( * ) + + 94
----
139

skipif mysql # not compatible
query I rowsort label-9150
SELECT - + 45 * + - COUNT ( * ) + + 94
----
139

query I rowsort
SELECT + + 34 + + 81 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT + - COUNT( - + 15 ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-9152
SELECT + - COUNT ( - + 15 ) * + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT DISTINCT + + 22 * - 93 * - 0 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + + 22 * - 93 * - 0 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9154
SELECT - 16 * - 26 * - 71 * COUNT( * ) + - - COUNT( * ) AS col2, COUNT( - 15 ) AS col2
----
-29535
1

skipif mysql # not compatible
query II rowsort label-9154
SELECT - 16 * - 26 * - 71 * COUNT ( * ) + - - COUNT ( * ) AS col2, COUNT ( - 15 ) AS col2
----
-29535
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT DISTINCT - CAST( 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - CAST ( 85 AS INTEGER )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT ALL + COUNT( * ) + - 6 - + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + COUNT ( * ) + - 6 - + COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9157
SELECT ALL + - 80 + - COUNT( * ) AS col1, + 93
----
-81
93

skipif mysql # not compatible
query II rowsort label-9157
SELECT ALL + - 80 + - COUNT ( * ) AS col1, + 93
----
-81
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9158
SELECT - CAST( - 98 AS SIGNED ), - 81 AS col2
----
98
-81

skipif mysql # not compatible
query II rowsort label-9158
SELECT - CAST ( - 98 AS INTEGER ), - 81 AS col2
----
98
-81

query II rowsort
SELECT - - ( - 96 ) AS col2, 46
----
-96
46

query I rowsort
SELECT ALL + - COALESCE ( + 17, + 82 ) + 69 AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9161
SELECT + 89 + 1 + + + 74 DIV + 53 DIV - - COUNT( * ) - 2
----
89

skipif mysql # not compatible
query I rowsort label-9161
SELECT + 89 + 1 + + + 74 / + 53 / - - COUNT ( * ) - 2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9162
SELECT - COUNT( * ) col1, - 68 + 54
----
-1
-14

skipif mysql # not compatible
query II rowsort label-9162
SELECT - COUNT ( * ) col1, - 68 + 54
----
-1
-14

query I rowsort
SELECT ALL NULLIF ( 31, 62 )
----
31

query I rowsort
SELECT ALL + 95 + 89
----
184

onlyif mysql # aggregate syntax: 
query II rowsort label-9165
SELECT ALL ( - + COUNT( * ) ) * - 73, - 5 col1
----
73
-5

skipif mysql # not compatible
query II rowsort label-9165
SELECT ALL ( - + COUNT ( * ) ) * - 73, - 5 col1
----
73
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT DISTINCT COALESCE ( - + 47, 94 ) DIV - 19 + - 43 + - 18
----
-59

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT COALESCE ( - + 47, 94 ) / - 19 + - 43 + - 18
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT ALL + NULLIF ( COUNT( 85 ), - COALESCE ( - 55, + - 45, + 5 + - 41 - 99 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + NULLIF ( COUNT ( 85 ), - COALESCE ( - 55, + - 45, + 5 + - 41 - 99 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT - 97 * + ( + - SUM( DISTINCT + + 58 ) ) + 1
----
5627

skipif mysql # not compatible
query I rowsort label-9168
SELECT - 97 * + ( + - SUM ( DISTINCT + + 58 ) ) + 1
----
5627

query I rowsort
SELECT - 0 * - 11
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9170
SELECT + 6 * - + ( - - 7 ) * COUNT( * ) DIV + + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9170
SELECT + 6 * - + ( - - 7 ) * COUNT ( * ) / + + 59 AS col2
----
0

query I rowsort
SELECT ALL 11 * - + 98 AS col0
----
-1078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9172
SELECT + CASE - 91 WHEN - 90 THEN 46 + - 15 ELSE 93 END * + 17 / + - AVG ( ( - 29 ) ) - - 29 / 43 + - 83 + NULLIF ( 94, - COUNT( * ) * 80 + + 24 ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT + CASE - 91 WHEN - 90 THEN 46 + - 15 ELSE 93 END * + 17 / + - AVG ( ( - 29 ) ) - - 29 / 43 + - 83 + NULLIF ( 94, - COUNT ( * ) * 80 + + 24 ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT ( MIN( DISTINCT + 49 ) )
----
49

skipif mysql # not compatible
query I rowsort label-9173
SELECT ( MIN ( DISTINCT + 49 ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT 97 * CAST( NULL AS SIGNED ) - - + 32 + 58 * 34 * - - 13 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT 97 * CAST ( NULL AS INTEGER ) - - + 32 + 58 * 34 * - - 13 * - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT + NULLIF ( + - COUNT( * ), + - ( 81 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9175
SELECT + NULLIF ( + - COUNT ( * ), + - ( 81 ) ) AS col0
----
-1

query I rowsort
SELECT + 76 + - 4
----
72

query II rowsort
SELECT DISTINCT + 83 AS col0, 52 AS col0
----
83
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL - 28 * - + 58 * - COUNT( * ) - - + SUM( DISTINCT + 0 ) col0
----
-1624

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - 28 * - + 58 * - COUNT ( * ) - - + SUM ( DISTINCT + 0 ) col0
----
-1624

query I rowsort
SELECT + 46 * 45
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + COUNT( * ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-9180
SELECT + COUNT ( * ) * + 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT CASE - - AVG ( + + 4 ) WHEN + COUNT( * ) THEN + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT CASE - - AVG ( + + 4 ) WHEN + COUNT ( * ) THEN + 31 END
----
NULL

query I rowsort
SELECT + + 5 + + + 74 * 4
----
301

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9183
SELECT - COUNT( * ) DIV 40 col0
----
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT - COUNT ( * ) / 40 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( DISTINCT - + 68 ) * + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - + 68 ) * + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT + COUNT( 12 ) * + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9185
SELECT + COUNT ( 12 ) * + 0 AS col2
----
0

query I rowsort
SELECT DISTINCT - 78 * 15 + - 87 + + - 9 * 81 col1
----
-1986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 11 + ( + ( - 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 11 + ( + ( - 65 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT - COALESCE ( - + 95, + + 71, + 65 + - 9 * 67 * + COUNT( * ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9188
SELECT - COALESCE ( - + 95, + + 71, + 65 + - 9 * 67 * + COUNT ( * ) ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9189
SELECT ALL + 70 col0, 44 + - 10 + NULLIF ( - 55, + - 63 / + + 84 + + 66 + + COUNT( * ) * + 99 * ( 65 ) / - - 29 - - COUNT( DISTINCT 27 ) * + 82 / - - ( - 49 ) + + 28 )
----
70
-21

skipif mysql # not compatible
query II rowsort label-9189
SELECT ALL + 70 col0, 44 + - 10 + NULLIF ( - 55, + - 63 / + + 84 + + 66 + + COUNT ( * ) * + 99 * ( 65 ) / - - 29 - - COUNT ( DISTINCT 27 ) * + 82 / - - ( - 49 ) + + 28 )
----
70
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9190
SELECT - - 73 / 30 - CAST( NULL AS SIGNED ) col0, - MIN( - 97 ) * 20 AS col0
----
NULL
1940

skipif mysql # not compatible
query II rowsort label-9190
SELECT - - 73 / 30 - CAST ( NULL AS INTEGER ) col0, - MIN ( - 97 ) * 20 AS col0
----
NULL
1940

query I rowsort
SELECT + 76 - - - 32 AS col2
----
44

query II rowsort
SELECT + 90 + 38 * + + 3, + 32 col2
----
204
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT - + SUM( - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9193
SELECT - + SUM ( - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL + NULLIF ( + COUNT( * ), 49 + + - NULLIF ( 48, - 38 - - + NULLIF ( + + 32, - 45 ) ) * + + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL + NULLIF ( + COUNT ( * ), 49 + + - NULLIF ( 48, - 38 - - + NULLIF ( + + 32, - 45 ) ) * + + 39 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9195
SELECT - 17 + - COALESCE ( - + SUM( 93 ), + 74, - + ( SUM( DISTINCT 9 ) ), + 26 * + - 34 + 53 DIV - AVG ( + 3 ) )
----
76

skipif mysql # not compatible
query I rowsort label-9195
SELECT - 17 + - COALESCE ( - + SUM ( 93 ), + 74, - + ( SUM ( DISTINCT 9 ) ), + 26 * + - 34 + 53 / - AVG ( + 3 ) )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9196
SELECT ALL + COUNT( * ) + 45 + + 93 DIV - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL + COUNT ( * ) + 45 + + 93 / - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT DISTINCT - CASE + NULLIF ( 79, - 6 ) WHEN - - COUNT( * ) THEN + - MIN( - 62 ) / - 4 / + 6 + - + 32 * 10 * + - 55 WHEN + COUNT( * ) - + 7 * + 13 * - 86 / 44 + + 97 THEN NULL WHEN + 21 * - 58 THEN - + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT - CASE + NULLIF ( 79, - 6 ) WHEN - - COUNT ( * ) THEN + - MIN ( - 62 ) / - 4 / + 6 + - + 32 * 10 * + - 55 WHEN + COUNT ( * ) - + 7 * + 13 * - 86 / 44 + + 97 THEN NULL WHEN + 21 * - 58 THEN - + 67 END
----
NULL

query I rowsort
SELECT DISTINCT + 9 + - 78
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT DISTINCT - 46 + - 52 AS col0, + COALESCE ( + COUNT( ALL 62 ), + 65 )
----
-98
1

skipif mysql # not compatible
query II rowsort label-9199
SELECT DISTINCT - 46 + - 52 AS col0, + COALESCE ( + COUNT ( ALL 62 ), + 65 )
----
-98
1

query I rowsort
SELECT ALL + 91 - - 25 + - 20 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT 97 + + 54 + - COUNT( * ) AS col2
----
150

skipif mysql # not compatible
query I rowsort label-9201
SELECT 97 + + 54 + - COUNT ( * ) AS col2
----
150

query I rowsort
SELECT 32 * + ( 10 ) AS col2
----
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT ALL - CASE + - ( - CAST( NULL AS SIGNED ) ) WHEN + - 21 - 64 THEN COUNT( * ) + + + COUNT( * ) WHEN + ( - CAST( 30 AS SIGNED ) ) * - 18 - 82 + + COUNT( * ) + + - 84 + - 30 THEN - 53 * - CAST( + 69 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - CASE + - ( - CAST ( NULL AS INTEGER ) ) WHEN + - 21 - 64 THEN COUNT ( * ) + + + COUNT ( * ) WHEN + ( - CAST ( 30 AS INTEGER ) ) * - 18 - 82 + + COUNT ( * ) + + - 84 + - 30 THEN - 53 * - CAST ( + 69 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL - COUNT( * ) - + - 49 * + 88 * COALESCE ( 35, 99 ) AS col0
----
150919

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL - COUNT ( * ) - + - 49 * + 88 * COALESCE ( 35, 99 ) AS col0
----
150919

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT 22 * - CASE 66 WHEN + 0 * COUNT( * ) + 77 + - - 7 THEN NULL WHEN - 85 THEN NULL ELSE + + 85 + - - 90 END AS col1
----
-3850

skipif mysql # not compatible
query I rowsort label-9205
SELECT 22 * - CASE 66 WHEN + 0 * COUNT ( * ) + 77 + - - 7 THEN NULL WHEN - 85 THEN NULL ELSE + + 85 + - - 90 END AS col1
----
-3850

query I rowsort
SELECT ALL 93 * 81
----
7533

query I rowsort
SELECT 47 * + ( - 25 ) AS col1
----
-1175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9208
SELECT DISTINCT - COUNT( * ) * + CAST( + 60 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - COUNT ( * ) * + CAST ( + 60 AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT - 85 * - NULLIF ( + COUNT( * ), SUM( DISTINCT + 16 ) ) * - - 89 + - NULLIF ( - ( - + ( + 82 ) ), - COUNT( * ) ) AS col2
----
7483

skipif mysql # not compatible
query I rowsort label-9209
SELECT - 85 * - NULLIF ( + COUNT ( * ), SUM ( DISTINCT + 16 ) ) * - - 89 + - NULLIF ( - ( - + ( + 82 ) ), - COUNT ( * ) ) AS col2
----
7483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - NULLIF ( + 12, - 97 ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9212
SELECT ALL + 37 + - 96 / - CAST( NULL AS SIGNED ) - - ( 5 ) + - + CAST( 90 AS DECIMAL ) * + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL + 37 + - 96 / - CAST ( NULL AS INTEGER ) - - ( 5 ) + - + CAST ( 90 AS REAL ) * + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL + - COUNT( * ) + 59 + + 27 + + ( COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL + - COUNT ( * ) + 59 + + 27 + + ( COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT 72 + 48 + - 46 * + - COUNT( * ) AS col0
----
166

skipif mysql # not compatible
query I rowsort label-9214
SELECT 72 + 48 + - 46 * + - COUNT ( * ) AS col0
----
166

query I rowsort
SELECT ALL 4 + + 33
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT NULLIF ( - 10, - COUNT( * ) ) + - 68 * - 65
----
4410

skipif mysql # not compatible
query I rowsort label-9216
SELECT NULLIF ( - 10, - COUNT ( * ) ) + - 68 * - 65
----
4410

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT DISTINCT 22 + 78 + + COUNT( * ) - 2 * + 87 + 23 * 56 - + ( + + NULLIF ( - + 44, 50 * + ( 47 ) * 42 ) ) AS col0, - 68 * - 28 AS col1
----
1259
1904

skipif mysql # not compatible
query II rowsort label-9217
SELECT DISTINCT 22 + 78 + + COUNT ( * ) - 2 * + 87 + 23 * 56 - + ( + + NULLIF ( - + 44, 50 * + ( 47 ) * 42 ) ) AS col0, - 68 * - 28 AS col1
----
1259
1904

query I rowsort
SELECT ALL - 72 * - 28 + - 80
----
1936

query II rowsort
SELECT 82 * 98 AS col1, CASE - 52 WHEN 99 THEN 18 * 12 END * - 50 - 21 AS col1
----
8036
NULL

query I rowsort
SELECT - 23 + - 21 col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT NULLIF ( - SUM( - 62 ), 43 - - SUM( 85 ) ) * 34 AS col1
----
2108

skipif mysql # not compatible
query I rowsort label-9221
SELECT NULLIF ( - SUM ( - 62 ), 43 - - SUM ( 85 ) ) * 34 AS col1
----
2108

query I rowsort
SELECT ALL 18 - - 49
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9223
SELECT ALL - 23 DIV 50 DIV - COUNT( - 33 ) * - ( - 63 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - 23 / 50 / - COUNT ( - 33 ) * - ( - 63 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT MIN( + ( 7 ) ) * + 7 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9224
SELECT MIN ( + ( 7 ) ) * + 7 AS col0
----
49

query I rowsort
SELECT 26 * + 44 * + - 62 * - 70
----
4964960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9226
SELECT ALL MAX( - 54 ) DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL MAX ( - 54 ) / - 78 AS col1
----
0

query I rowsort
SELECT DISTINCT 30 - 69
----
-39

query I rowsort
SELECT DISTINCT + 15 * - 54 AS col0
----
-810

query II rowsort
SELECT ALL 6 AS col2, 59 col0
----
6
59

query I rowsort
SELECT 13 * - 90 AS col2
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT 25 * + 60 * 45 * - SUM( - - 45 )
----
-3037500

skipif mysql # not compatible
query I rowsort label-9231
SELECT 25 * + 60 * 45 * - SUM ( - - 45 )
----
-3037500

query I rowsort
SELECT ALL - 33 * + - 14 AS col0
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL 29 * - COUNT( - 28 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL 29 * - COUNT ( - 28 ) AS col2
----
-29

query II rowsort
SELECT ALL - ( - ( 10 ) ), COALESCE ( + 39, + 99 + + 62 ) AS col1
----
10
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT - CASE - ( - - 1 ) WHEN + COALESCE ( - - 82, 98, + - 25 / - 50 ) * + + 7 + - 37 THEN + - MAX( - 91 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - CASE - ( - - 1 ) WHEN + COALESCE ( - - 82, 98, + - 25 / - 50 ) * + + 7 + - 37 THEN + - MAX ( - 91 ) END AS col0
----
NULL

query II rowsort
SELECT ALL - 92 AS col1, 80
----
-92
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL + 64 * + 8 + + COUNT( 55 ) + 76 AS col0
----
589

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + 64 * + 8 + + COUNT ( 55 ) + 76 AS col0
----
589

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - 50 * - + 26 * + + COUNT( * ) - - 41 AS col1
----
1341

skipif mysql # not compatible
query I rowsort label-9238
SELECT - 50 * - + 26 * + + COUNT ( * ) - - 41 AS col1
----
1341

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT 47 DIV + COALESCE ( 65, 48 )
----
0

skipif mysql # not compatible
query I rowsort label-9239
SELECT 47 / + COALESCE ( 65, 48 )
----
0

query I rowsort
SELECT ALL - NULLIF ( 71, + 43 * 10 - 51 ) + COALESCE ( 28, ( 76 ) ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9241
SELECT ALL + 71 + CAST( CAST( NULL AS SIGNED ) + - NULLIF ( 11, 47 * COUNT( * ) ) * 81 AS DECIMAL ) * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + 71 + CAST ( CAST ( NULL AS INTEGER ) + - NULLIF ( 11, 47 * COUNT ( * ) ) * 81 AS REAL ) * 13
----
NULL

query I rowsort
SELECT DISTINCT - 80 * - 45
----
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT ALL 3 + 27 DIV + 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL 3 + 27 / + 15 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9244
SELECT ALL - 99 / CASE 8 WHEN - 34 / 28 + 16 * + ( 62 ) THEN NULL WHEN 50 THEN + 56 WHEN - 90 THEN NULL ELSE CAST( CASE 19 WHEN 80 + - ( + NULLIF ( - MIN( + 29 ), - ( 50 ) ) + + 28 ) / 96 THEN NULL WHEN 79 THEN - 1 + 81 * + COUNT( * ) WHEN ( + ( 71 ) ) + 79 * + 96 THEN NULL ELSE NULL END AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - 99 / CASE 8 WHEN - 34 / 28 + 16 * + ( 62 ) THEN NULL WHEN 50 THEN + 56 WHEN - 90 THEN NULL ELSE CAST ( CASE 19 WHEN 80 + - ( + NULLIF ( - MIN ( + 29 ), - ( 50 ) ) + + 28 ) / 96 THEN NULL WHEN 79 THEN - 1 + 81 * + COUNT ( * ) WHEN ( + ( 71 ) ) + 79 * + 96 THEN NULL ELSE NULL END AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9245
SELECT 72 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-9245
SELECT 72 / 93
----
0

query I rowsort
SELECT ( ( 46 ) ) * 9 - 48 * - 47
----
2670

query I rowsort
SELECT DISTINCT + 81 * - 84
----
-6804

query I rowsort
SELECT ALL - 26 + 2 * 94
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT 56 * - MIN( DISTINCT 98 ) AS col2
----
-5488

skipif mysql # not compatible
query I rowsort label-9249
SELECT 56 * - MIN ( DISTINCT 98 ) AS col2
----
-5488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT ALL + 63 * - CAST( 66 AS SIGNED ) col0
----
-4158

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL + 63 * - CAST ( 66 AS INTEGER ) col0
----
-4158

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT 62 DIV - 28 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9251
SELECT 62 / - 28 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT 66 + NULLIF ( 81, + 8 ) * - MIN( ALL 80 ) col0
----
-6414

skipif mysql # not compatible
query I rowsort label-9252
SELECT 66 + NULLIF ( 81, + 8 ) * - MIN ( ALL 80 ) col0
----
-6414

query I rowsort
SELECT DISTINCT 78 + + 61
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL - NULLIF ( + CAST( - ( - 91 ) AS SIGNED ), 83 * 98 )
----
-91

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL - NULLIF ( + CAST ( - ( - 91 ) AS INTEGER ), 83 * 98 )
----
-91

query I rowsort
SELECT DISTINCT - 9 - + 62
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT CASE - 50 WHEN - 49 - - COUNT( + 56 ) THEN NULL ELSE - 45 END - - COALESCE ( ( + MIN( DISTINCT - 67 ) ), + 68 * + 16 )
----
-112

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT CASE - 50 WHEN - 49 - - COUNT ( + 56 ) THEN NULL ELSE - 45 END - - COALESCE ( ( + MIN ( DISTINCT - 67 ) ), + 68 * + 16 )
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT DISTINCT 66 * COALESCE ( 1, 87 DIV 56 )
----
66

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT 66 * COALESCE ( 1, 87 / 56 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT - COUNT( * ) + ( COUNT( * ) + - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-9258
SELECT - COUNT ( * ) + ( COUNT ( * ) + - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT - CASE + 18 WHEN + SUM( + 1 ) THEN - SUM( ALL - 87 ) / + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT - CASE + 18 WHEN + SUM ( + 1 ) THEN - SUM ( ALL - 87 ) / + 48 END
----
NULL

query I rowsort
SELECT + 42 * + 62
----
2604

query I rowsort
SELECT + 53 + 94
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT - NULLIF ( + 34, - MIN( DISTINCT 42 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-9262
SELECT - NULLIF ( + 34, - MIN ( DISTINCT 42 ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL MAX( 40 ) * 89 AS col2
----
3560

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL MAX ( 40 ) * 89 AS col2
----
3560

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT + 29 + 25 * MAX( 88 ) AS col1
----
2229

skipif mysql # not compatible
query I rowsort label-9264
SELECT + 29 + 25 * MAX ( 88 ) AS col1
----
2229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9265
SELECT DISTINCT MIN( ALL - 83 ) * CAST( 84 * 65 AS SIGNED )
----
-453180

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT MIN ( ALL - 83 ) * CAST ( 84 * 65 AS INTEGER )
----
-453180

query I rowsort
SELECT + 6 * + 28
----
168

query I rowsort
SELECT + 23 + + 10
----
33

query I rowsort
SELECT + 99 + 53
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT + 70 DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9269
SELECT + 70 / - 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT + MAX( 11 ) + - 33
----
-22

skipif mysql # not compatible
query I rowsort label-9270
SELECT + MAX ( 11 ) + - 33
----
-22

query I rowsort
SELECT ALL ( 74 ) + 5 AS col2
----
79

query I rowsort
SELECT + 87 + 17 * - 59
----
-916

query I rowsort
SELECT - 52 + - 18 * + 40
----
-772

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL 57 + MAX( ALL 96 )
----
153

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL 57 + MAX ( ALL 96 )
----
153

query I rowsort
SELECT + 63 + 93
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT + 81 * - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9276
SELECT + 81 * - COUNT ( * ) AS col1
----
-81

query I rowsort
SELECT - 84 * + 43 + 7
----
-3605

onlyif mysql # DIV for integer division: 
query I rowsort label-9278
SELECT + 96 DIV - 34 - CASE - ( - 42 ) WHEN 4 THEN NULL ELSE - 22 END * + 52
----
1142

skipif mysql # not compatible
query I rowsort label-9278
SELECT + 96 / - 34 - CASE - ( - 42 ) WHEN 4 THEN NULL ELSE - 22 END * + 52
----
1142

query I rowsort
SELECT ALL + 66 * 70
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT 75 * - 43 + ( COUNT( * ) ) * - 61
----
-3286

skipif mysql # not compatible
query I rowsort label-9280
SELECT 75 * - 43 + ( COUNT ( * ) ) * - 61
----
-3286

onlyif mysql # DIV for integer division: 
query I rowsort label-9281
SELECT ALL - 43 * - 38 + 31 DIV 56 AS col2
----
1634

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - 43 * - 38 + 31 / 56 AS col2
----
1634

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9282
SELECT ALL 13 * 77 + NULLIF ( + 96, 95 * 58 + + 56 ) DIV CAST( 88 AS SIGNED )
----
1002

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL 13 * 77 + NULLIF ( + 96, 95 * 58 + + 56 ) / CAST ( 88 AS INTEGER )
----
1002

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT + + 16 DIV - 39 + + 3
----
3

skipif mysql # not compatible
query I rowsort label-9283
SELECT + + 16 / - 39 + + 3
----
3

query I rowsort
SELECT DISTINCT 41 * + 92
----
3772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT - 80 + CAST( NULL AS SIGNED ) * + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT - 80 + CAST ( NULL AS INTEGER ) * + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL COUNT( * ) * - 90 + 78
----
-12

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL COUNT ( * ) * - 90 + 78
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL ( COALESCE ( + 45, 64 - 60, + 41 ) ) * + 35 + COUNT( * ) AS col2
----
1576

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL ( COALESCE ( + 45, 64 - 60, + 41 ) ) * + 35 + COUNT ( * ) AS col2
----
1576

query I rowsort
SELECT + NULLIF ( 71, 60 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT + COUNT( * ) * 23 + + 90 * 22 AS col1
----
2003

skipif mysql # not compatible
query I rowsort label-9289
SELECT + COUNT ( * ) * 23 + + 90 * 22 AS col1
----
2003

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT + + 16 * + COUNT( * ) col1
----
16

skipif mysql # not compatible
query I rowsort label-9290
SELECT + + 16 * + COUNT ( * ) col1
----
16

query I rowsort
SELECT - - 11 * - 48 AS col1
----
-528

query I rowsort
SELECT + 38 * 8 + + 54 * - 31
----
-1370

query I rowsort
SELECT - 67 * 33 + - ( - 0 ) AS col2
----
-2211

query I rowsort
SELECT - 83 * + 80 AS col1
----
-6640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT ALL + 39 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL + 39 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + ( - 17 ) + 21
----
38

query I rowsort
SELECT DISTINCT + + 21 * 29
----
609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9298
SELECT DISTINCT + COUNT( * ) DIV COUNT( + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + COUNT ( * ) / COUNT ( + 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT - NULLIF ( - 44, COUNT( * ) ) * 58 col1
----
2552

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT - NULLIF ( - 44, COUNT ( * ) ) * 58 col1
----
2552

query I rowsort
SELECT - - 89 * + 9
----
801

query I rowsort
SELECT - + 84 + + 49 col1
----
-35

query I rowsort
SELECT ALL + - ( 0 ) * - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - - ( - CASE - 7 WHEN + 88 + + 7 THEN NULL WHEN MAX( DISTINCT + ( + 69 ) ) THEN MAX( ALL + ( 61 ) ) * CASE + 41 * - COUNT( * ) WHEN + 97 THEN 18 ELSE 9 + - 43 END + 73 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT - - ( - CASE - 7 WHEN + 88 + + 7 THEN NULL WHEN MAX ( DISTINCT + ( + 69 ) ) THEN MAX ( ALL + ( 61 ) ) * CASE + 41 * - COUNT ( * ) WHEN + 97 THEN 18 ELSE 9 + - 43 END + 73 END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 14 * - 50
----
-700

query I rowsort
SELECT DISTINCT - ( - + 62 ) * + 41 AS col2
----
2542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT ALL CAST( - - 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL CAST ( - - 1 AS INTEGER )
----
1

query I rowsort
SELECT - 53 * - + 70
----
3710

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + MAX( + 77 ) + + 88 AS col0
----
165

skipif mysql # not compatible
query I rowsort label-9308
SELECT + MAX ( + 77 ) + + 88 AS col0
----
165

query I rowsort
SELECT DISTINCT ( - - 46 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT + SUM( DISTINCT 5 ) * 85
----
425

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT + SUM ( DISTINCT 5 ) * 85
----
425

query I rowsort
SELECT DISTINCT + 25 + - 70 AS col1
----
-45

query I rowsort
SELECT ALL 82 + 61 * + 24 AS col0
----
1546

query I rowsort
SELECT - 64 * - + 46 AS col2
----
2944

query I rowsort
SELECT ALL 75 * - - 7 AS col0
----
525

query I rowsort
SELECT ALL 34 + 10 * + 37
----
404

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT + 46 + + 31 + - 26 * - COUNT( * )
----
103

skipif mysql # not compatible
query I rowsort label-9316
SELECT + 46 + + 31 + - 26 * - COUNT ( * )
----
103

query I rowsort
SELECT - NULLIF ( - 80, + ( 23 ) * 30 ) AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9318
SELECT + COUNT( * ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT + COUNT ( * ) / - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT ALL 28 + ( COUNT( DISTINCT 43 ) ) + + 2
----
31

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL 28 + ( COUNT ( DISTINCT 43 ) ) + + 2
----
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9320
SELECT ALL CAST( NULL AS DECIMAL ) * - CAST( + 65 AS SIGNED ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL CAST ( NULL AS REAL ) * - CAST ( + 65 AS INTEGER ) * 11
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT ALL 4 + - - MAX( 75 ) - - 86 DIV 47
----
80

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL 4 + - - MAX ( 75 ) - - 86 / 47
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL + + SUM( ALL - 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + + SUM ( ALL - 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9323
SELECT DISTINCT 69 DIV - 74 * - 91 + - 33 * - 72 + COUNT( * )
----
2377

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT 69 / - 74 * - 91 + - 33 * - 72 + COUNT ( * )
----
2377

query I rowsort
SELECT + - 95 * - 98 * 92
----
856520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT + ( + CAST( ( - 99 ) AS SIGNED ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9325
SELECT + ( + CAST ( ( - 99 ) AS INTEGER ) ) AS col2
----
-99

query I rowsort
SELECT 45 * - 61 - 44 AS col2
----
-2789

query I rowsort
SELECT - 1 * 53 AS col2
----
-53

query I rowsort
SELECT DISTINCT 89 * 93 + - 90 AS col1
----
8187

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9329
SELECT ALL - + CAST( NULL AS DECIMAL ) - + + 17 - + 94 / 17 * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL - + CAST ( NULL AS REAL ) - + + 17 - + 94 / 17 * 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT ALL - + COUNT( - 5 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL - + COUNT ( - 5 ) col2
----
-1

query I rowsort
SELECT ALL + - 19 * - 24
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL 59 * - + COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL 59 * - + COUNT ( * ) AS col1
----
-59

query I rowsort
SELECT 2 * + 92 + 44 - - 42 col1
----
270

query I rowsort
SELECT - NULLIF ( + - ( 95 ), + 55 - - 19 ) * 91
----
8645

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT + + NULLIF ( 31, COUNT( * ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9335
SELECT + + NULLIF ( 31, COUNT ( * ) ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL COUNT( * ) * + 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL COUNT ( * ) * + 80 AS col2
----
80

query I rowsort
SELECT ALL 12 + + - 98 * + - 70 - - ( 88 + + 94 ) AS col2
----
7054

query II rowsort
SELECT 22 AS col1, 7 AS col2
----
22
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9339
SELECT ALL 0 AS col2, + COUNT( ALL - 4 ) DIV 94
----
0
0

skipif mysql # not compatible
query II rowsort label-9339
SELECT ALL 0 AS col2, + COUNT ( ALL - 4 ) / 94
----
0
0

query I rowsort
SELECT ALL - 74 + + ( + 40 ) AS col2
----
-34

query I rowsort
SELECT 41 * 30 AS col2
----
1230

query I rowsort
SELECT ALL - 2 + + 51 AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT ALL + CAST( NULL AS SIGNED ) + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL + CAST ( NULL AS INTEGER ) + 20
----
NULL

query I rowsort
SELECT 22 + 63 AS col1
----
85

query I rowsort
SELECT 31 + - 37 AS col0
----
-6

query I rowsort
SELECT 67 - 82 + 41
----
26

query I rowsort
SELECT ALL - 66 * + - 83 AS col2
----
5478

query I rowsort
SELECT ALL + 11 * + 92
----
1012

onlyif mysql # DIV for integer division: 
query I rowsort label-9349
SELECT DISTINCT - 57 + + 10 DIV + 61 * - 29
----
-57

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT - 57 + + 10 / + 61 * - 29
----
-57

query I rowsort
SELECT DISTINCT - 84 * - 47 col1
----
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT 50 + + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9351
SELECT 50 + + COUNT ( * ) AS col2
----
51

query I rowsort
SELECT ALL 28 + - + 20 + ( + 29 ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT 57 * - 98 * + COUNT( * ) * CAST( + 48 AS SIGNED )
----
-268128

skipif mysql # not compatible
query I rowsort label-9353
SELECT 57 * - 98 * + COUNT ( * ) * CAST ( + 48 AS INTEGER )
----
-268128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9354
SELECT 38 col1, CAST( + 80 AS SIGNED ) * + 34
----
38
2720

skipif mysql # not compatible
query II rowsort label-9354
SELECT 38 col1, CAST ( + 80 AS INTEGER ) * + 34
----
38
2720

query II rowsort
SELECT ALL 31, 19 * + - 2 AS col1
----
31
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT 76 + - + COUNT( * ) * 0
----
76

skipif mysql # not compatible
query I rowsort label-9356
SELECT 76 + - + COUNT ( * ) * 0
----
76

query II rowsort
SELECT 21, + 28 AS col1
----
21
28

query I rowsort
SELECT 16 + 45 + - 51 * 15 AS col2
----
-704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9359
SELECT ALL + 55 - 54 + - COUNT( * ) * - CASE 30 WHEN + 35 THEN + 98 + + 52 WHEN 84 THEN NULL ELSE 95 DIV 61 END
----
2

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL + 55 - 54 + - COUNT ( * ) * - CASE 30 WHEN + 35 THEN + 98 + + 52 WHEN 84 THEN NULL ELSE 95 / 61 END
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT 3 * 22 + CAST( - ( 69 ) AS SIGNED ) + + 11 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9360
SELECT 3 * 22 + CAST ( - ( 69 ) AS INTEGER ) + + 11 AS col1
----
8

query I rowsort
SELECT - 15 + NULLIF ( - + 26, 65 * - 65 ) * + ( 74 ) col1
----
-1939

query II rowsort
SELECT - - 93 col0, - 17
----
93
-17

query II rowsort
SELECT ALL - 36 AS col1, + 30
----
-36
30

query II rowsort
SELECT + + 80, + 16 AS col2
----
80
16

query I rowsort
SELECT ( - 23 ) * + 53 + - 69 AS col0
----
-1288

query I rowsort
SELECT DISTINCT - 72 * + + ( + 37 )
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL - 14 - - MIN( ALL - 5 ) * 61
----
-319

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - 14 - - MIN ( ALL - 5 ) * 61
----
-319

onlyif mysql # aggregate syntax: 
query II rowsort label-9368
SELECT + COUNT( * ) AS col2, 47 AS col1
----
1
47

skipif mysql # not compatible
query II rowsort label-9368
SELECT + COUNT ( * ) AS col2, 47 AS col1
----
1
47

query I rowsort
SELECT ALL - NULLIF ( - + 68, 47 ) AS col1
----
68

query I rowsort
SELECT DISTINCT - - 12 * + 18 * 33 AS col0
----
7128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9371
SELECT - 96 DIV + 89 + CASE + MAX( + 75 ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 33 + + 19 END
----
51

skipif mysql # not compatible
query I rowsort label-9371
SELECT - 96 / + 89 + CASE + MAX ( + 75 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 33 + + 19 END
----
51

query I rowsort
SELECT - 74 * 12 AS col0
----
-888

query I rowsort
SELECT DISTINCT 44 * + 80 AS col2
----
3520

query II rowsort
SELECT 30 col1, 56 * 81 AS col1
----
30
4536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9375
SELECT - + CAST( COUNT( + + 14 ) AS SIGNED ) DIV 93 + - 29 * 59 AS col0
----
-1711

skipif mysql # not compatible
query I rowsort label-9375
SELECT - + CAST ( COUNT ( + + 14 ) AS INTEGER ) / 93 + - 29 * 59 AS col0
----
-1711

onlyif mysql # aggregate syntax: 
query II rowsort label-9376
SELECT DISTINCT - - 33 AS col2, + COUNT( DISTINCT - + 30 )
----
33
1

skipif mysql # not compatible
query II rowsort label-9376
SELECT DISTINCT - - 33 AS col2, + COUNT ( DISTINCT - + 30 )
----
33
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT ALL COUNT( * ) + - COUNT( * ) - COUNT( DISTINCT + 46 ) DIV + 83 col1
----
0

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL COUNT ( * ) + - COUNT ( * ) - COUNT ( DISTINCT + 46 ) / + 83 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9378
SELECT ALL CAST( NULL AS SIGNED ) * - 24, 72 col2
----
NULL
72

skipif mysql # not compatible
query II rowsort label-9378
SELECT ALL CAST ( NULL AS INTEGER ) * - 24, 72 col2
----
NULL
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT + MAX( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9379
SELECT + MAX ( 61 )
----
61

query I rowsort
SELECT DISTINCT + 97 * + 71
----
6887

query I rowsort
SELECT 6 * ( 47 ) + - 58 AS col0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT ALL COUNT( * ) + + + 14
----
15

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL COUNT ( * ) + + + 14
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT ALL CAST( - 93 AS SIGNED ) * 33 * - 58 AS col1
----
178002

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL CAST ( - 93 AS INTEGER ) * 33 * - 58 AS col1
----
178002

query I rowsort
SELECT 51 + ( - 4 )
----
47

query I rowsort
SELECT 22 * + + 32 * - 78
----
-54912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9386
SELECT - MAX( - - CAST( NULL AS SIGNED ) ) AS col0, 88 + SUM( 62 ) - - 53 DIV - COALESCE ( 10 + - MAX( + 91 ), 67 * - 61, 15 * + 91 )
----
NULL
150

skipif mysql # not compatible
query II rowsort label-9386
SELECT - MAX ( - - CAST ( NULL AS INTEGER ) ) AS col0, 88 + SUM ( 62 ) - - 53 / - COALESCE ( 10 + - MAX ( + 91 ), 67 * - 61, 15 * + 91 )
----
NULL
150

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL - 71 + - 68 * + SUM( DISTINCT - - 89 ) * - 23
----
139125

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL - 71 + - 68 * + SUM ( DISTINCT - - 89 ) * - 23
----
139125

query I rowsort
SELECT ALL + 7 + CASE - 74 WHEN - 22 * 20 + + 46 THEN - 45 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9389
SELECT DISTINCT MAX( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT MAX ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT DISTINCT CAST( + - 79 AS SIGNED ) - + + 71 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT CAST ( + - 79 AS INTEGER ) - + + 71 AS col0
----
-150

query I rowsort
SELECT ALL - 35 * 94
----
-3290

onlyif mysql # aggregate syntax: 
query II rowsort label-9392
SELECT ALL MIN( DISTINCT - 95 ), - 90 * 73 AS col2
----
-95
-6570

skipif mysql # not compatible
query II rowsort label-9392
SELECT ALL MIN ( DISTINCT - 95 ), - 90 * 73 AS col2
----
-95
-6570

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9393
SELECT DISTINCT - 53 DIV + 84, COUNT( * ) + 96 + + COUNT( * ) * + 70 AS col0
----
0
167

skipif mysql # not compatible
query II rowsort label-9393
SELECT DISTINCT - 53 / + 84, COUNT ( * ) + 96 + + COUNT ( * ) * + 70 AS col0
----
0
167

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT MIN( + 76 ) * - 38
----
-2888

skipif mysql # not compatible
query I rowsort label-9394
SELECT MIN ( + 76 ) * - 38
----
-2888

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT SUM( - CASE - 74 WHEN + 8 THEN 52 WHEN 37 THEN 84 WHEN - 87 THEN 94 - - 9 END ) - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT SUM ( - CASE - 74 WHEN + 8 THEN 52 WHEN 37 THEN 84 WHEN - 87 THEN 94 - - 9 END ) - 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT - COALESCE ( 86, - + COUNT( * ) * + 58 )
----
-86

skipif mysql # not compatible
query I rowsort label-9396
SELECT - COALESCE ( 86, - + COUNT ( * ) * + 58 )
----
-86

query I rowsort
SELECT ALL - - 23 * + 95 - + 14 - 71 col2
----
2100

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT - COUNT( * ) * - 55 AS col2, CASE WHEN ( + 35 ) IS NOT NULL THEN + 91 END + + MAX( ALL 92 ) AS col0
----
55
183

skipif mysql # not compatible
query II rowsort label-9398
SELECT - COUNT ( * ) * - 55 AS col2, CASE WHEN ( + 35 ) IS NOT NULL THEN + 91 END + + MAX ( ALL 92 ) AS col0
----
55
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9399
SELECT DISTINCT - 15 * 82 * - + 45 * CAST( ( COUNT( * ) ) AS SIGNED ) AS col1
----
55350

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT - 15 * 82 * - + 45 * CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col1
----
55350

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL SUM( DISTINCT - + 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL SUM ( DISTINCT - + 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT - 31 * + + COUNT( * ) * 33 + - ( 48 ) AS col0
----
-1071

skipif mysql # not compatible
query I rowsort label-9401
SELECT - 31 * + + COUNT ( * ) * 33 + - ( 48 ) AS col0
----
-1071

query I rowsort
SELECT + + 33 col0
----
33

query I rowsort
SELECT - 2 * + 77 * + + 65 * + - 2 * 74
----
1481480

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT - + 2 + + + 17 + + 14 + - - SUM( ALL + 96 ) - 60 * - 81 AS col2
----
4985

skipif mysql # not compatible
query I rowsort label-9404
SELECT - + 2 + + + 17 + + 14 + - - SUM ( ALL + 96 ) - 60 * - 81 AS col2
----
4985

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT 27 * + COUNT( * ) + + + 80 + + + 93 + 77
----
277

skipif mysql # not compatible
query I rowsort label-9405
SELECT 27 * + COUNT ( * ) + + + 80 + + + 93 + 77
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL - 51 * + 59 * - COUNT( DISTINCT + 21 ) + + 77
----
3086

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - 51 * + 59 * - COUNT ( DISTINCT + 21 ) + + 77
----
3086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9407
SELECT ALL - + NULLIF ( + CASE + COALESCE ( - + CASE + MAX( ALL + 40 ) WHEN - COUNT( * ) THEN - CAST( NULL AS SIGNED ) + CAST( 6 + 86 AS SIGNED ) ELSE 32 END, - 69 ) WHEN CAST( - MIN( 63 ) AS SIGNED ) THEN ( ( - CAST( 8 AS DECIMAL ) ) ) WHEN + 1 / 73 THEN 79 END, CAST( 93 AS SIGNED ) + + MAX( - 61 ) * 27 ) * 80 + 94 / - CASE 45 / + 41 + + 82 WHEN 44 THEN NULL WHEN COUNT( * ) THEN - COUNT( * ) - + 91 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - + NULLIF ( + CASE + COALESCE ( - + CASE + MAX ( ALL + 40 ) WHEN - COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) + CAST ( 6 + 86 AS INTEGER ) ELSE 32 END, - 69 ) WHEN CAST ( - MIN ( 63 ) AS INTEGER ) THEN ( ( - CAST ( 8 AS REAL ) ) ) WHEN + 1 / 73 THEN 79 END, CAST ( 93 AS INTEGER ) + + MAX ( - 61 ) * 27 ) * 80 + 94 / - CASE 45 / + 41 + + 82 WHEN 44 THEN NULL WHEN COUNT ( * ) THEN - COUNT ( * ) - + 91 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT - 92 * - 4 + - ( ( - COUNT( * ) ) ) AS col2
----
369

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - 92 * - 4 + - ( ( - COUNT ( * ) ) ) AS col2
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT CASE + + 79 WHEN 93 * - + 72 + 31 * COUNT( - 95 ) THEN 8 / - 26 ELSE NULLIF ( 96, 64 ) END
----
96

skipif mysql # not compatible
query I rowsort label-9409
SELECT CASE + + 79 WHEN 93 * - + 72 + 31 * COUNT ( - 95 ) THEN 8 / - 26 ELSE NULLIF ( 96, 64 ) END
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT + COALESCE ( + COUNT( * ), 58, + - CAST( NULL AS SIGNED ) + 54 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9410
SELECT + COALESCE ( + COUNT ( * ), 58, + - CAST ( NULL AS INTEGER ) + 54 ) col1
----
1

query I rowsort
SELECT + 65 * + + 18 AS col2
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT + COUNT( * ) * + 93
----
93

skipif mysql # not compatible
query I rowsort label-9412
SELECT + COUNT ( * ) * + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT + MIN( 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9413
SELECT + MIN ( 80 ) AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT 39 * - CAST( NULL AS SIGNED ) * + 34 - + NULLIF ( + CAST( NULL AS SIGNED ), 97 * 78 ) + + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT 39 * - CAST ( NULL AS INTEGER ) * + 34 - + NULLIF ( + CAST ( NULL AS INTEGER ), 97 * 78 ) + + 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT + COUNT( + 84 ) * - 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9415
SELECT + COUNT ( + 84 ) * - 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL 5 * + MAX( 74 )
----
370

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL 5 * + MAX ( 74 )
----
370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9417
SELECT + COALESCE ( + + COUNT( * ), - 63 * 54 - + COUNT( * ) DIV - 2 ) - COALESCE ( + COUNT( * ) + 60 DIV + 33, - 70, - NULLIF ( MIN( 75 ), 82 + + 66 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9417
SELECT + COALESCE ( + + COUNT ( * ), - 63 * 54 - + COUNT ( * ) / - 2 ) - COALESCE ( + COUNT ( * ) + 60 / + 33, - 70, - NULLIF ( MIN ( 75 ), 82 + + 66 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL - COUNT( * ) * + 8 * 15 col1
----
-120

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - COUNT ( * ) * + 8 * 15 col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT MAX( DISTINCT + + 16 )
----
16

skipif mysql # not compatible
query I rowsort label-9419
SELECT MAX ( DISTINCT + + 16 )
----
16

query I rowsort
SELECT + 98 * - 0 * + ( - 93 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9421
SELECT DISTINCT 10 * + 1 DIV MAX( ALL - + ( + NULLIF ( + 79, + 6 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT 10 * + 1 / MAX ( ALL - + ( + NULLIF ( + 79, + 6 ) ) )
----
0

query II rowsort
SELECT - 78 AS col2, 66
----
-78
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT - COUNT( * ) * + NULLIF ( - 73, - - 17 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9423
SELECT - COUNT ( * ) * + NULLIF ( - 73, - - 17 ) AS col2
----
73

query I rowsort
SELECT ALL 45 * 50
----
2250

onlyif mysql # aggregate syntax: 
query II rowsort label-9425
SELECT + 51 + + 2 - - - 48 AS col1, ( + COALESCE ( - ( + ( 24 ) ), 76 * 58 + - 32 ) ) + 96 * SUM( ALL + 22 * - 20 )
----
5
-42264

skipif mysql # not compatible
query II rowsort label-9425
SELECT + 51 + + 2 - - - 48 AS col1, ( + COALESCE ( - ( + ( 24 ) ), 76 * 58 + - 32 ) ) + 96 * SUM ( ALL + 22 * - 20 )
----
5
-42264

onlyif mysql # DIV for integer division: 
query I rowsort label-9426
SELECT - 57 - - 26 DIV + - 28 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9426
SELECT - 57 - - 26 / + - 28 AS col2
----
-57

query II rowsort
SELECT ALL 24, - 7 AS col0
----
24
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT DISTINCT - + SUM( ALL + 62 ) DIV 46 * + + 1
----
-1

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT - + SUM ( ALL + 62 ) / 46 * + + 1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT - COALESCE ( - CAST( - 19 AS SIGNED ), + 21 ) + COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9429
SELECT - COALESCE ( - CAST ( - 19 AS INTEGER ), + 21 ) + COUNT ( * ) AS col2
----
-18

query I rowsort
SELECT - 47 + - 42
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9431
SELECT - + 0 DIV - COUNT( - + 39 ) - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-9431
SELECT - + 0 / - COUNT ( - + 39 ) - + 73
----
-73

query I rowsort
SELECT DISTINCT + + 95 + - + 20 AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT - + 56 * CAST( + - 19 AS SIGNED ) col0
----
1064

skipif mysql # not compatible
query I rowsort label-9433
SELECT - + 56 * CAST ( + - 19 AS INTEGER ) col0
----
1064

query I rowsort
SELECT - + 51 + - + ( + 30 ) AS col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9435
SELECT - 23 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-9435
SELECT - 23 / 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9436
SELECT DISTINCT + - COALESCE ( 70, - + 28, + 80 ) DIV + + 77 + 17
----
17

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT + - COALESCE ( 70, - + 28, + 80 ) / + + 77 + 17
----
17

query II rowsort
SELECT ALL + 14 AS col0, - 66 - + - 83
----
14
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT ALL - + 39 DIV + + 51 + + - 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL - + 39 / + + 51 + + - 71 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT - COALESCE ( - 3, + - COUNT( 89 ), - + 23 ) * CASE 19 + - 22 * + 31 WHEN 66 THEN 94 + + COUNT( * ) * + 46 END + - 39 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9439
SELECT - COALESCE ( - 3, + - COUNT ( 89 ), - + 23 ) * CASE 19 + - 22 * + 31 WHEN 66 THEN 94 + + COUNT ( * ) * + 46 END + - 39 * + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL + MAX( + + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL + MAX ( + + 50 ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9441
SELECT - + ( + CAST( NULL AS SIGNED ) ) * 65 + 69 + - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT - + ( + CAST ( NULL AS INTEGER ) ) * 65 + 69 + - - 86
----
NULL

query I rowsort
SELECT - 8 * - 38 + - 27
----
277

query I rowsort
SELECT - 47 * + - 18 AS col1
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL + MIN( ALL - + ( - 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL + MIN ( ALL - + ( - 96 ) )
----
96

query I rowsort
SELECT 43 * 2 + + - 36 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT - COUNT( * ) + - - 93 + - 65 * ( - ( + + 48 ) )
----
3212

skipif mysql # not compatible
query I rowsort label-9446
SELECT - COUNT ( * ) + - - 93 + - 65 * ( - ( + + 48 ) )
----
3212

query I rowsort
SELECT ALL 45 * + - 48 - 33 AS col0
----
-2193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9448
SELECT ALL 11 * - 95 DIV - COUNT( * ) AS col1
----
1045

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL 11 * - 95 / - COUNT ( * ) AS col1
----
1045

query I rowsort
SELECT DISTINCT + 39 * 47 - + 27 + - - 15 AS col2
----
1821

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT + 11 + - - 13 - 91 + + - COUNT( + 49 )
----
-68

skipif mysql # not compatible
query I rowsort label-9450
SELECT + 11 + - - 13 - 91 + + - COUNT ( + 49 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL 82 * + ( + 47 ) - + - 2 + - SUM( 0 ) * 0 AS col2
----
3856

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL 82 * + ( + 47 ) - + - 2 + - SUM ( 0 ) * 0 AS col2
----
3856

query I rowsort
SELECT ALL + 53 * - - ( - - 90 ) AS col0
----
4770

query I rowsort
SELECT - 81 * ( + - 77 )
----
6237

query I rowsort
SELECT + 63 + - - 7 col1
----
70

query II rowsort
SELECT ALL + 21 col0, 33 * + 95 + + - 42 AS col0
----
21
3093

query I rowsort
SELECT NULLIF ( + COALESCE ( - + 72, + 4 ), - 1 * - - NULLIF ( 7, 71 + + 48 ) ) AS col0
----
-72

query I rowsort
SELECT CASE 90 WHEN 74 - ( ( - + 71 ) ) * 33 THEN + 44 ELSE - 62 END
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9458
SELECT + ( 82 ) * COUNT( * ) + - 3 AS col1, + 13 - - COUNT( * ) + - 32 * CASE 80 * + CAST( NULL AS DECIMAL ) WHEN + 39 THEN ( 75 ) WHEN - 6 THEN NULL END
----
79
NULL

skipif mysql # not compatible
query II rowsort label-9458
SELECT + ( 82 ) * COUNT ( * ) + - 3 AS col1, + 13 - - COUNT ( * ) + - 32 * CASE 80 * + CAST ( NULL AS REAL ) WHEN + 39 THEN ( 75 ) WHEN - 6 THEN NULL END
----
79
NULL

query I rowsort
SELECT - CASE + 97 WHEN - 83 THEN - + ( + + 60 ) END
----
NULL

query I rowsort
SELECT ( - 65 ) + + + COALESCE ( 28, - 49 * + 79 - - 43, ( 66 ) ) AS col2
----
-37

query I rowsort
SELECT 82 * + 31 AS col1
----
2542

onlyif mysql # DIV for integer division: 
query I rowsort label-9462
SELECT ALL + + 81 DIV 16
----
5

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL + + 81 / 16
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9463
SELECT DISTINCT + 6 AS col0, + COALESCE ( CASE 25 WHEN 67 THEN - 46 + 3 WHEN - COALESCE ( CASE 14 WHEN - 26 + + 84 THEN NULL WHEN 79 THEN + 28 END, 90, + 17 * 17 + + 7 * 1 ) THEN NULL WHEN 16 * CAST( NULL AS SIGNED ) THEN NULL ELSE 79 + + 24 END, 32, + MIN( ALL - 30 ) )
----
6
103

skipif mysql # not compatible
query II rowsort label-9463
SELECT DISTINCT + 6 AS col0, + COALESCE ( CASE 25 WHEN 67 THEN - 46 + 3 WHEN - COALESCE ( CASE 14 WHEN - 26 + + 84 THEN NULL WHEN 79 THEN + 28 END, 90, + 17 * 17 + + 7 * 1 ) THEN NULL WHEN 16 * CAST ( NULL AS INTEGER ) THEN NULL ELSE 79 + + 24 END, 32, + MIN ( ALL - 30 ) )
----
6
103

query I rowsort
SELECT - 9 * 68 * 86
----
-52632

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ALL - COUNT( * ) + + 2 + - 15 * - 5 * - 61 * + MAX( DISTINCT - 49 )
----
224176

skipif mysql # not compatible
query I rowsort label-9465
SELECT ALL - COUNT ( * ) + + 2 + - 15 * - 5 * - 61 * + MAX ( DISTINCT - 49 )
----
224176

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL + COUNT( ALL - - 62 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL + COUNT ( ALL - - 62 ) AS col2
----
1

query I rowsort
SELECT ALL - 91 + 28
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9468
SELECT ALL 48, + 88 DIV 27 * + - 61 + + NULLIF ( + 40, 70 + - COALESCE ( COUNT( * ) + + 1, 28 ) ) AS col1
----
48
-143

skipif mysql # not compatible
query II rowsort label-9468
SELECT ALL 48, + 88 / 27 * + - 61 + + NULLIF ( + 40, 70 + - COALESCE ( COUNT ( * ) + + 1, 28 ) ) AS col1
----
48
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT + 63 + + + COALESCE ( - 68, COUNT( * ) * - COALESCE ( + 76, 73 ) ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT + 63 + + + COALESCE ( - 68, COUNT ( * ) * - COALESCE ( + 76, 73 ) ) AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT ALL CAST( + + NULLIF ( + - ( + 8 ), CAST( - 78 AS SIGNED ) / - 32 ) AS SIGNED ) + 65
----
57

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL CAST ( + + NULLIF ( + - ( + 8 ), CAST ( - 78 AS INTEGER ) / - 32 ) AS INTEGER ) + 65
----
57

query I rowsort
SELECT DISTINCT + 83 + + 23 * + 2 AS col2
----
129

query I rowsort
SELECT DISTINCT 99 + - - 40 + 80 * + + 97 AS col2
----
7899

onlyif mysql # aggregate syntax: 
query II rowsort label-9473
SELECT ALL 82 AS col2, - COUNT( * ) * - COUNT( * ) AS col2
----
82
1

skipif mysql # not compatible
query II rowsort label-9473
SELECT ALL 82 AS col2, - COUNT ( * ) * - COUNT ( * ) AS col2
----
82
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9474
SELECT 19 - + 62 - - 56 * 82 AS col2, SUM( DISTINCT + 90 ) + + 45 AS col0
----
4549
135

skipif mysql # not compatible
query II rowsort label-9474
SELECT 19 - + 62 - - 56 * 82 AS col2, SUM ( DISTINCT + 90 ) + + 45 AS col0
----
4549
135

query II rowsort
SELECT 5, - 70 AS col1
----
5
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + + CASE + 27 WHEN - COUNT( * ) * + 59 THEN NULL WHEN CASE + 28 WHEN + 24 THEN 1 END * - 65 THEN 3 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT + + CASE + 27 WHEN - COUNT ( * ) * + 59 THEN NULL WHEN CASE + 28 WHEN + 24 THEN 1 END * - 65 THEN 3 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9477
SELECT ALL - 39, - COUNT( DISTINCT 64 ) AS col1
----
-39
-1

skipif mysql # not compatible
query II rowsort label-9477
SELECT ALL - 39, - COUNT ( DISTINCT 64 ) AS col1
----
-39
-1

query II rowsort
SELECT 61 * + + 92 * + + 22 AS col2, 64 AS col1
----
123464
64

query I rowsort
SELECT 50 * - 35 col1
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT ALL - NULLIF ( MAX( ALL + 43 ), + 18 )
----
-43

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL - NULLIF ( MAX ( ALL + 43 ), + 18 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9481
SELECT 50 * - - 35 AS col2, MAX( DISTINCT - ( - - 69 ) ) * 62 + - 46 * 56 AS col0
----
1750
-6854

skipif mysql # not compatible
query II rowsort label-9481
SELECT 50 * - - 35 AS col2, MAX ( DISTINCT - ( - - 69 ) ) * 62 + - 46 * 56 AS col0
----
1750
-6854

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT COUNT( * ) * + 85 * - - ( - 40 ) AS col1
----
-3400

skipif mysql # not compatible
query I rowsort label-9482
SELECT COUNT ( * ) * + 85 * - - ( - 40 ) AS col1
----
-3400

onlyif mysql # aggregate syntax: 
query II rowsort label-9483
SELECT ALL + 22 * 77, + ( - COUNT( * ) ) col1
----
1694
-1

skipif mysql # not compatible
query II rowsort label-9483
SELECT ALL + 22 * 77, + ( - COUNT ( * ) ) col1
----
1694
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL - NULLIF ( + 29, - 0 + - 80 + - - COUNT( * ) * - 11 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL - NULLIF ( + 29, - 0 + - 80 + - - COUNT ( * ) * - 11 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT + COUNT( * ) * + 96 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT + COUNT ( * ) * + 96 AS col0
----
96

query II rowsort
SELECT ALL 16 + + 86 * 79 AS col0, 69
----
6810
69

query I rowsort
SELECT 13 * + + 18 - + 6
----
228

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9488
SELECT CASE 33 WHEN + COUNT( * ) * 34 + 90 + - ( - 5 ) * + 38 THEN COUNT( * ) ELSE + 12 END + COUNT( - CAST( + 96 AS DECIMAL ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-9488
SELECT CASE 33 WHEN + COUNT ( * ) * 34 + 90 + - ( - 5 ) * + 38 THEN COUNT ( * ) ELSE + 12 END + COUNT ( - CAST ( + 96 AS REAL ) ) AS col1
----
13

query I rowsort
SELECT - ( + ( - 64 ) ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT 85 DIV + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9490
SELECT 85 / + 90 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL + MIN( ALL + 5 ) + 63 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + MIN ( ALL + 5 ) + 63 AS col1
----
68

query I rowsort
SELECT - 82 + 46
----
-36

query I rowsort
SELECT + ( + - 28 ) - 80 * + 41
----
-3308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9494
SELECT CASE - 42 WHEN CAST( NULL AS SIGNED ) + - + 3 THEN NULL ELSE 96 - 43 * COUNT( * ) + 83 END
----
136

skipif mysql # not compatible
query I rowsort label-9494
SELECT CASE - 42 WHEN CAST ( NULL AS INTEGER ) + - + 3 THEN NULL ELSE 96 - 43 * COUNT ( * ) + 83 END
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT + CASE + 78 WHEN - 13 THEN + 40 WHEN 38 THEN + + 89 END + 72 + COUNT( * ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT + CASE + 78 WHEN - 13 THEN + 40 WHEN 38 THEN + + 89 END + 72 + COUNT ( * ) * 97
----
NULL

query I rowsort
SELECT ALL - 34 + - 31 + + - 66 * - - 12 AS col0
----
-857

query I rowsort
SELECT + 9 + - 91 * + + 68 AS col1
----
-6179

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT 34 + NULLIF ( - 3, - 76 + 88 - - CASE + 28 WHEN COUNT( * ) THEN 62 WHEN - 74 + 16 THEN - 34 WHEN + 41 * + 59 THEN 31 ELSE + 26 * 4 END ) * + ( + 28 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-9498
SELECT 34 + NULLIF ( - 3, - 76 + 88 - - CASE + 28 WHEN COUNT ( * ) THEN 62 WHEN - 74 + 16 THEN - 34 WHEN + 41 * + 59 THEN 31 ELSE + 26 * 4 END ) * + ( + 28 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT - CASE + - 79 WHEN + AVG ( - 35 ) THEN ( + COALESCE ( ( + 24 ), + COUNT( * ) ) ) ELSE NULL END + SUM( ALL + 91 + 8 ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT - CASE + - 79 WHEN + AVG ( - 35 ) THEN ( + COALESCE ( ( + 24 ), + COUNT ( * ) ) ) ELSE NULL END + SUM ( ALL + 91 + 8 ) * - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ALL 28 - + - COALESCE ( CASE - - 6 WHEN 60 THEN NULL ELSE - + 89 - + + 55 - + 29 END, - SUM( DISTINCT + 95 ) + 69 ) + 89 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL 28 - + - COALESCE ( CASE - - 6 WHEN 60 THEN NULL ELSE - + 89 - + + 55 - + 29 END, - SUM ( DISTINCT + 95 ) + 69 ) + 89 AS col2
----
-56

query I rowsort
SELECT DISTINCT + 60 * - 1 * + 6 AS col0
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT + 7 + + - COUNT( * ) - + 98 * + CAST( NULL AS SIGNED ) + + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT + 7 + + - COUNT ( * ) - + 98 * + CAST ( NULL AS INTEGER ) + + 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT CAST( - 4 AS SIGNED ) + - + 88 * 26 * - 39
----
89228

skipif mysql # not compatible
query I rowsort label-9503
SELECT CAST ( - 4 AS INTEGER ) + - + 88 * 26 * - 39
----
89228

query II rowsort
SELECT 68 AS col0, + 53 AS col0
----
68
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT ALL ( - 78 ) * + CASE + 74 WHEN + 12 THEN NULL ELSE ( + 85 ) DIV - 19 END AS col0
----
312

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL ( - 78 ) * + CASE + 74 WHEN + 12 THEN NULL ELSE ( + 85 ) / - 19 END AS col0
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT MIN( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-9506
SELECT MIN ( ALL - 38 )
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9507
SELECT ALL - COALESCE ( + - 93, - MIN( ALL + + 62 ) DIV 68 - - - 87 * + 71 + - 14 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL - COALESCE ( + - 93, - MIN ( ALL + + 62 ) / 68 - - - 87 * + 71 + - 14 ) AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9508
SELECT + 24 * - COALESCE ( - MAX( 0 ), 15, + + 76 * 10 - - 11 - 66 * - CAST( NULL AS SIGNED ) ) * 25 + 50 / - ( CASE + COUNT( * ) WHEN + 26 THEN 60 ELSE NULL END * 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9508
SELECT + 24 * - COALESCE ( - MAX ( 0 ), 15, + + 76 * 10 - - 11 - 66 * - CAST ( NULL AS INTEGER ) ) * 25 + 50 / - ( CASE + COUNT ( * ) WHEN + 26 THEN 60 ELSE NULL END * 34 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT MIN( DISTINCT - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9509
SELECT MIN ( DISTINCT - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT MIN( 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9510
SELECT MIN ( 99 ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT 50 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT 50 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 85 * + 5 * - + NULLIF ( 11, 57 ) AS col1
----
-4675

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT + SUM( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-9513
SELECT + SUM ( - 4 )
----
-4

query II rowsort
SELECT + 68 * + 14 + - 51 AS col0, 45 col2
----
901
45

query I rowsort
SELECT ALL - 90 * - - 66
----
-5940

query I rowsort
SELECT + 28 * + + 36 AS col1
----
1008

query I rowsort
SELECT - ( + 95 ) * - 47 AS col0
----
4465

query I rowsort
SELECT ALL - 3 * - 60 * - 42 + - 88
----
-7648

query I rowsort
SELECT - ( + 68 ) + - 4 - + 76 * - 49
----
3652

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT 27 * CASE + + 58 WHEN + 69 / - COUNT( * ) * 98 * + 60 THEN + 52 WHEN - MIN( ALL - ( - 42 ) ) * 23 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT 27 * CASE + + 58 WHEN + 69 / - COUNT ( * ) * 98 * + 60 THEN + 52 WHEN - MIN ( ALL - ( - 42 ) ) * 23 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9521
SELECT - 9 * COUNT( * ) + + 29 + - 10 DIV + 75 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9521
SELECT - 9 * COUNT ( * ) + + 29 + - 10 / + 75 AS col0
----
20

query II rowsort
SELECT + COALESCE ( - - 45, - - 35 ) AS col2, 9
----
45
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9523
SELECT COALESCE ( - COUNT( * ), + ( - + MAX( - + 85 ) ) * 68 + - 15 DIV - ( + CAST( 37 AS SIGNED ) ) + - 57 * 93 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9523
SELECT COALESCE ( - COUNT ( * ), + ( - + MAX ( - + 85 ) ) * 68 + - 15 / - ( + CAST ( 37 AS INTEGER ) ) + - 57 * 93 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9524
SELECT DISTINCT + - ( 4 ) + + ( CASE - - 25 WHEN + 4 THEN NULL WHEN - 50 THEN NULL WHEN CAST( NULL AS SIGNED ) * ( + 3 + 78 / 33 ) THEN - 79 ELSE NULL END ) + + 46 * ( - ( - 34 ) - NULLIF ( 73 + MIN( 87 + 15 ), + 16 / 17 - + 20 ) * 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT + - ( 4 ) + + ( CASE - - 25 WHEN + 4 THEN NULL WHEN - 50 THEN NULL WHEN CAST ( NULL AS INTEGER ) * ( + 3 + 78 / 33 ) THEN - 79 ELSE NULL END ) + + 46 * ( - ( - 34 ) - NULLIF ( 73 + MIN ( 87 + 15 ), + 16 / 17 - + 20 ) * 61 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - - ( COUNT( * ) ) * - - 60 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9525
SELECT - - ( COUNT ( * ) ) * - - 60 AS col0
----
60

query I rowsort
SELECT DISTINCT + - 76 + 25 AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9527
SELECT DISTINCT - COALESCE ( 22, 16 * - 9 DIV 28 ) + + - COUNT( * ) * - - 61 + + - 18 + 35 * COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - COALESCE ( 22, 16 * - 9 / 28 ) + + - COUNT ( * ) * - - 61 + + - 18 + 35 * COUNT ( * )
----
-66

query I rowsort
SELECT ALL - + 26 + 67
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT - 2 * - NULLIF ( + - 67, + 42 - + + 30 * CAST( - 79 AS SIGNED ) ) * + 87 AS col2
----
-11658

skipif mysql # not compatible
query I rowsort label-9529
SELECT - 2 * - NULLIF ( + - 67, + 42 - + + 30 * CAST ( - 79 AS INTEGER ) ) * + 87 AS col2
----
-11658

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - + NULLIF ( + + COUNT( * ), - - 77 ) * 34
----
-34

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - + NULLIF ( + + COUNT ( * ), - - 77 ) * 34
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9531
SELECT DISTINCT - 50 - 83 / 9 + - 51 / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - 50 - 83 / 9 + - 51 / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9532
SELECT DISTINCT 66, 58 + + SUM( CAST( + - 52 AS SIGNED ) ) + - 17 DIV 88 col1
----
66
6

skipif mysql # not compatible
query II rowsort label-9532
SELECT DISTINCT 66, 58 + + SUM ( CAST ( + - 52 AS INTEGER ) ) + - 17 / 88 col1
----
66
6

query I rowsort
SELECT ALL - - 34 - + + 94
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT + - 11 * 24 - - - 91 + - 55 + - ( + 87 ) + + + COUNT( * ) DIV - 70
----
-497

skipif mysql # not compatible
query I rowsort label-9534
SELECT + - 11 * 24 - - - 91 + - 55 + - ( + 87 ) + + + COUNT ( * ) / - 70
----
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - - COUNT( * ) - - 57
----
58

skipif mysql # not compatible
query I rowsort label-9535
SELECT - - COUNT ( * ) - - 57
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT DISTINCT COALESCE ( - + 59, - + ( + COUNT( * ) ) * 13 + + 96 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT COALESCE ( - + 59, - + ( + COUNT ( * ) ) * 13 + + 96 ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT ALL 89 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL 89 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT + 94 DIV - + COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9538
SELECT + 94 / - + COUNT ( * ) AS col1
----
-94

query II rowsort
SELECT DISTINCT ( + 8 ), 0 col2
----
8
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9540
SELECT + ( - 91 ) - + COUNT( * ) + + 49 - - 26 DIV + + 48 * - 69 + + - 68
----
-111

skipif mysql # not compatible
query I rowsort label-9540
SELECT + ( - 91 ) - + COUNT ( * ) + + 49 - - 26 / + + 48 * - 69 + + - 68
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + COUNT( * ) * COALESCE ( + COALESCE ( + 72, 14, - ( + - 48 ) ), - + 19 * 64 * 0 - 49 ) * + ( - COUNT( * ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9541
SELECT + COUNT ( * ) * COALESCE ( + COALESCE ( + 72, 14, - ( + - 48 ) ), - + 19 * 64 * 0 - 49 ) * + ( - COUNT ( * ) ) AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9542
SELECT + CASE WHEN NOT ( 72 ) IS NOT NULL THEN 72 ELSE 42 * + 5 + 79 END AS col2, - CASE - + 70 WHEN + 82 * 25 + + NULLIF ( 85 + CAST( - 65 AS DECIMAL ) * + ( - 28 ), + 83 * - 59 ) THEN COALESCE ( COUNT( * ), 75 / + 93 ) * - ( 14 * + 24 ) + - CAST( NULL AS SIGNED ) * - 37 WHEN COUNT( * ) THEN NULL END AS col0
----
289
NULL

skipif mysql # not compatible
query II rowsort label-9542
SELECT + CASE WHEN NOT ( 72 ) IS NOT NULL THEN 72 ELSE 42 * + 5 + 79 END AS col2, - CASE - + 70 WHEN + 82 * 25 + + NULLIF ( 85 + CAST ( - 65 AS REAL ) * + ( - 28 ), + 83 * - 59 ) THEN COALESCE ( COUNT ( * ), 75 / + 93 ) * - ( 14 * + 24 ) + - CAST ( NULL AS INTEGER ) * - 37 WHEN COUNT ( * ) THEN NULL END AS col0
----
289
NULL

query I rowsort
SELECT ( - + COALESCE ( + 54, - 36, - 71 ) ) AS col0
----
-54

query I rowsort
SELECT ALL 46 * + 30
----
1380

query I rowsort
SELECT + 52 * + 98
----
5096

query I rowsort
SELECT + CASE + + ( + - 86 ) WHEN 45 THEN - 48 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ALL - 59 * COUNT( * ) + - - COUNT( - - 25 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL - 59 * COUNT ( * ) + - - COUNT ( - - 25 ) AS col1
----
-58

query I rowsort
SELECT ( - 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT DISTINCT 94 * NULLIF ( - COUNT( * ), - COUNT( * ) ) + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT 94 * NULLIF ( - COUNT ( * ), - COUNT ( * ) ) + + 15 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT 32 * 27 * + - MIN( 64 ) + - - CASE + 71 WHEN ( + + 32 ) * - CAST( NULL AS SIGNED ) + 73 - - SUM( DISTINCT 74 ) THEN NULL WHEN + 88 * 97 THEN - NULLIF ( + 15, 35 * - 10 ) ELSE NULL END + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT 32 * 27 * + - MIN ( 64 ) + - - CASE + 71 WHEN ( + + 32 ) * - CAST ( NULL AS INTEGER ) + 73 - - SUM ( DISTINCT 74 ) THEN NULL WHEN + 88 * 97 THEN - NULLIF ( + 15, 35 * - 10 ) ELSE NULL END + 49 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9551
SELECT + COALESCE ( 15, 89 * - + 60 - + + 98 ) AS col0, - 64 * + + CAST( 49 AS SIGNED ) AS col2
----
15
-3136

skipif mysql # not compatible
query II rowsort label-9551
SELECT + COALESCE ( 15, 89 * - + 60 - + + 98 ) AS col0, - 64 * + + CAST ( 49 AS INTEGER ) AS col2
----
15
-3136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9552
SELECT + 74 * 72 * - CAST( - 11 AS SIGNED ) AS col2, CASE - - 59 WHEN CAST( NULL AS SIGNED ) + - - 13 THEN NULL ELSE 42 END + - 57
----
58608
-15

skipif mysql # not compatible
query II rowsort label-9552
SELECT + 74 * 72 * - CAST ( - 11 AS INTEGER ) AS col2, CASE - - 59 WHEN CAST ( NULL AS INTEGER ) + - - 13 THEN NULL ELSE 42 END + - 57
----
58608
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT ( AVG ( DISTINCT - + 67 ) ) * + 41 + + 3 - + 37 + + CAST( NULL AS SIGNED ) * ( 61 ) - CAST( NULL AS SIGNED ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT ( AVG ( DISTINCT - + 67 ) ) * + 41 + + 3 - + 37 + + CAST ( NULL AS INTEGER ) * ( 61 ) - CAST ( NULL AS INTEGER ) * 53
----
NULL

query I rowsort
SELECT + + 89 * 21
----
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + + SUM( - 48 ) + - 35 col2
----
-83

skipif mysql # not compatible
query I rowsort label-9555
SELECT + + SUM ( - 48 ) + - 35 col2
----
-83

query I rowsort
SELECT - 20 * + NULLIF ( + + 70, - - 94 / + NULLIF ( + - ( + 1 ), + 63 - - 64 ) - 11 ) + + 40 AS col1
----
-1360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 68 + + 21 * - 38 * + - ( + 12 ) - + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 68 + + 21 * - 38 * + - ( + 12 ) - + + 51
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9558
SELECT ALL - ( + 96 ) * COUNT( - 45 ) + CAST( 28 AS SIGNED ) * - CASE + - 84 WHEN + + 8 THEN + 67 ELSE 71 + 99 DIV 36 END + NULLIF ( 81, + 95 - + COUNT( DISTINCT + 11 ) )
----
-2059

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL - ( + 96 ) * COUNT ( - 45 ) + CAST ( 28 AS INTEGER ) * - CASE + - 84 WHEN + + 8 THEN + 67 ELSE 71 + 99 / 36 END + NULLIF ( 81, + 95 - + COUNT ( DISTINCT + 11 ) )
----
-2059

query I rowsort
SELECT ALL - 88 * - - 60 - + + 51 AS col2
----
-5331

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - + 30 * + + 69 - + 17 - + 42 + ( - 1 ) * + MAX( DISTINCT - - 3 ) AS col2
----
-2132

skipif mysql # not compatible
query I rowsort label-9560
SELECT - + 30 * + + 69 - + 17 - + 42 + ( - 1 ) * + MAX ( DISTINCT - - 3 ) AS col2
----
-2132

query I rowsort
SELECT ALL 61 * + 41 AS col1
----
2501

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT MIN( DISTINCT + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT MIN ( DISTINCT + 21 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT CASE 79 WHEN - + 16 * 94 + - COUNT( + 95 ) + COUNT( * ) THEN + COUNT( * ) / 31 - + 97 WHEN - COUNT( * ) * - 5 THEN - 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9563
SELECT CASE 79 WHEN - + 16 * 94 + - COUNT ( + 95 ) + COUNT ( * ) THEN + COUNT ( * ) / 31 - + 97 WHEN - COUNT ( * ) * - 5 THEN - 3 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT + 44 * - 19 + - NULLIF ( - - 23, 98 * + 81 + - - CAST( - - COUNT( ALL 65 ) AS SIGNED ) )
----
-859

skipif mysql # not compatible
query I rowsort label-9564
SELECT + 44 * - 19 + - NULLIF ( - - 23, 98 * + 81 + - - CAST ( - - COUNT ( ALL 65 ) AS INTEGER ) )
----
-859

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT MAX( ALL 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9565
SELECT MAX ( ALL 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9566
SELECT + + COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9566
SELECT + + COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + CASE 67 WHEN + 35 THEN NULL ELSE - COUNT( * ) + + 24 END AS col2
----
23

skipif mysql # not compatible
query I rowsort label-9567
SELECT + CASE 67 WHEN + 35 THEN NULL ELSE - COUNT ( * ) + + 24 END AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9568
SELECT - ( COUNT( * ) ) AS col0, 45 * - COALESCE ( + - 74, - - 31 + - + 98 ) col2
----
-1
3330

skipif mysql # not compatible
query II rowsort label-9568
SELECT - ( COUNT ( * ) ) AS col0, 45 * - COALESCE ( + - 74, - - 31 + - + 98 ) col2
----
-1
3330

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9569
SELECT + - 71 + - + MIN( - CAST( NULL AS DECIMAL ) ) / 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT + - 71 + - + MIN ( - CAST ( NULL AS REAL ) ) / 20 AS col1
----
NULL

query I rowsort
SELECT ALL - 11 * 81 AS col1
----
-891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9571
SELECT - MIN( DISTINCT - ( + CAST( + 60 AS SIGNED ) ) ) * - + 15 + + 12 DIV + 23 + - - 94 + 84 + + CAST( 74 AS SIGNED ) + 46 AS col0
----
-602

skipif mysql # not compatible
query I rowsort label-9571
SELECT - MIN ( DISTINCT - ( + CAST ( + 60 AS INTEGER ) ) ) * - + 15 + + 12 / + 23 + - - 94 + 84 + + CAST ( 74 AS INTEGER ) + 46 AS col0
----
-602

query I rowsort
SELECT DISTINCT - 8 * + 21
----
-168

query I rowsort
SELECT ALL + 90 + - - 35
----
125

query I rowsort
SELECT ALL 75 + 57 AS col1
----
132

query I rowsort
SELECT DISTINCT + 72 + + 35 AS col2
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9576
SELECT DISTINCT - 18 + 68 DIV - COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT - 18 + 68 / - COUNT ( * ) AS col0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT COALESCE ( - 5, - CASE + COUNT( * ) WHEN - 70 DIV - 17 THEN - + 60 * - 80 * - 67 WHEN + 87 THEN 21 * + 62 ELSE NULL END, + 34 + + ( 87 + 79 ) ) + + 23 DIV + 48
----
-5

skipif mysql # not compatible
query I rowsort label-9577
SELECT COALESCE ( - 5, - CASE + COUNT ( * ) WHEN - 70 / - 17 THEN - + 60 * - 80 * - 67 WHEN + 87 THEN 21 * + 62 ELSE NULL END, + 34 + + ( 87 + 79 ) ) + + 23 / + 48
----
-5

query I rowsort
SELECT ALL - 0 + + 31 + 21 * + 14 * + 21
----
6205

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT MIN( + 58 ) * - 60 col1
----
-3480

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT MIN ( + 58 ) * - 60 col1
----
-3480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9580
SELECT - 38 DIV - 96 + - CAST( SUM( COALESCE ( - 80, 90, - 29 ) ) AS SIGNED ) + - + 80
----
0

skipif mysql # not compatible
query I rowsort label-9580
SELECT - 38 / - 96 + - CAST ( SUM ( COALESCE ( - 80, 90, - 29 ) ) AS INTEGER ) + - + 80
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT - - COUNT( * ) * - 36 / - CAST( COUNT( * ) AS SIGNED ) * + + COALESCE ( 41, + 92 - + 87 + ( + 94 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT - - COUNT ( * ) * - 36 / - CAST ( COUNT ( * ) AS INTEGER ) * + + COALESCE ( 41, + 92 - + 87 + ( + 94 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - NULLIF ( 88, 23 + 8 + + 40 ) - 3 AS col0, 56 AS col1
----
-91
56

query I rowsort
SELECT DISTINCT - 5 * - 16 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT 63 * + MIN( ALL + 97 )
----
6111

skipif mysql # not compatible
query I rowsort label-9584
SELECT 63 * + MIN ( ALL + 97 )
----
6111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9585
SELECT CAST( - + 22 AS SIGNED ) * - 0 / - CASE - CASE COUNT( * ) WHEN - - ( - + 21 ) * - + 49 THEN 46 END WHEN 62 * + 10 THEN ( - 28 ) WHEN + 22 THEN 95 WHEN + 37 THEN 39 END + - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9585
SELECT CAST ( - + 22 AS INTEGER ) * - 0 / - CASE - CASE COUNT ( * ) WHEN - - ( - + 21 ) * - + 49 THEN 46 END WHEN 62 * + 10 THEN ( - 28 ) WHEN + 22 THEN 95 WHEN + 37 THEN 39 END + - 94 AS col0
----
NULL

query I rowsort
SELECT 42 * + 20 AS col1
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + COUNT( * ) * - 22 + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9587
SELECT + COUNT ( * ) * - 22 + + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT - 21 + - + ( COALESCE ( - ( + COUNT( * ) ), - + 52, + 25 ) ) * + ( + 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9588
SELECT - 21 + - + ( COALESCE ( - ( + COUNT ( * ) ), - + 52, + 25 ) ) * + ( + 22 ) AS col1
----
1

query II rowsort
SELECT ALL 96 AS col2, ( + 39 )
----
96
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9590
SELECT DISTINCT 39 DIV - - ( - - CAST( - - 85 AS SIGNED ) ) * - 71 * - 44 DIV ( + 1 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT 39 / - - ( - - CAST ( - - 85 AS INTEGER ) ) * - 71 * - 44 / ( + 1 ) AS col1
----
0

query I rowsort
SELECT ALL + 40 * - + 27 AS col2
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT - COUNT( ALL 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-9592
SELECT - COUNT ( ALL 25 )
----
-1

query I rowsort
SELECT ALL - 29 * + - 97 AS col0
----
2813

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL + - COUNT( - 45 ) + - + 21 + + + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + - COUNT ( - 45 ) + - + 21 + + + COUNT ( * )
----
-21

query I rowsort
SELECT 76 + + 91
----
167

query I rowsort
SELECT ALL 71 + - + 87 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL - 3 + - + COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - 3 + - + COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT ALL 17 + + - MIN( ALL - + 42 )
----
59

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL 17 + + - MIN ( ALL - + 42 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL - NULLIF ( + 48, - - 24 ) + - + CASE + + COUNT( * ) WHEN - - 16 * + 28 * - MIN( ALL + 83 ) - + 86 + + 50 + 63 THEN 82 WHEN + 90 THEN + 83 ELSE NULL END - 90 * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL - NULLIF ( + 48, - - 24 ) + - + CASE + + COUNT ( * ) WHEN - - 16 * + 28 * - MIN ( ALL + 83 ) - + 86 + + 50 + 63 THEN 82 WHEN + 90 THEN + 83 ELSE NULL END - 90 * + 63
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT 16 col0, + COUNT( * ) AS col1
----
16
1

skipif mysql # not compatible
query II rowsort label-9600
SELECT 16 col0, + COUNT ( * ) AS col1
----
16
1

query I rowsort
SELECT 1 * - + 69 AS col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9602
SELECT DISTINCT + 86 + COUNT( - - CAST( NULL AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + 86 + COUNT ( - - CAST ( NULL AS INTEGER ) )
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT - COUNT( * ) col2, 63 - CASE + - 31 WHEN - COUNT( * ) THEN + 26 + + + 78 WHEN + COUNT( * ) * + COUNT( * ) THEN NULL END * + 62 * - + 8
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9603
SELECT - COUNT ( * ) col2, 63 - CASE + - 31 WHEN - COUNT ( * ) THEN + 26 + + + 78 WHEN + COUNT ( * ) * + COUNT ( * ) THEN NULL END * + 62 * - + 8
----
-1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9604
SELECT - 14, + 61 DIV + 28 AS col1
----
-14
2

skipif mysql # not compatible
query II rowsort label-9604
SELECT - 14, + 61 / + 28 AS col1
----
-14
2

query II rowsort
SELECT DISTINCT - 52 AS col0, 9
----
-52
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT ALL + MAX( 21 ) * - ( 43 ) * - - 66
----
-59598

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL + MAX ( 21 ) * - ( 43 ) * - - 66
----
-59598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9607
SELECT DISTINCT - ( + COALESCE ( + COUNT( * ), + - CASE + 54 WHEN COUNT( - 17 ) * - + 11 THEN + CASE - 55 WHEN 65 THEN - 54 - - COUNT( * ) DIV 24 ELSE NULL END * COUNT( * ) - - 84 END * 39 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9607
SELECT DISTINCT - ( + COALESCE ( + COUNT ( * ), + - CASE + 54 WHEN COUNT ( - 17 ) * - + 11 THEN + CASE - 55 WHEN 65 THEN - 54 - - COUNT ( * ) / 24 ELSE NULL END * COUNT ( * ) - - 84 END * 39 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9608
SELECT - 17 DIV + 91 + - COALESCE ( - + COUNT( * ), + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9608
SELECT - 17 / + 91 + - COALESCE ( - + COUNT ( * ), + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL - - COUNT( - - 54 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL - - COUNT ( - - 54 ) AS col0
----
1

query II rowsort
SELECT ALL - + 16 AS col0, 17 AS col1
----
-16
17

query I rowsort
SELECT ALL + 96 * - 10
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT COALESCE ( - COUNT( * ), + - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-9612
SELECT COALESCE ( - COUNT ( * ), + - 85 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9613
SELECT ALL + 85 DIV COUNT( 60 ) + - 52 AS col2, 17
----
33
17

skipif mysql # not compatible
query II rowsort label-9613
SELECT ALL + 85 / COUNT ( 60 ) + - 52 AS col2, 17
----
33
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9614
SELECT + 6 * + - CAST( - 32 AS SIGNED ) * NULLIF ( - 54, + 38 / CASE - + 82 WHEN + - 30 * 66 + + + COUNT( * ) THEN 20 / + 0 WHEN + 28 THEN NULL ELSE NULL END * + 5 - CAST( NULL AS SIGNED ) ) + + MAX( ALL 95 ) + - COUNT( * ) - - COUNT( * ) col2
----
-10273

skipif mysql # not compatible
query I rowsort label-9614
SELECT + 6 * + - CAST ( - 32 AS INTEGER ) * NULLIF ( - 54, + 38 / CASE - + 82 WHEN + - 30 * 66 + + + COUNT ( * ) THEN 20 / + 0 WHEN + 28 THEN NULL ELSE NULL END * + 5 - CAST ( NULL AS INTEGER ) ) + + MAX ( ALL 95 ) + - COUNT ( * ) - - COUNT ( * ) col2
----
-10273

query I rowsort
SELECT 54 * - 2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - COALESCE ( - + 8, + - 30 - - 42, + - 11, - 44 ) + SUM( - 69 ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-9616
SELECT - COALESCE ( - + 8, + - 30 - - 42, + - 11, - 44 ) + SUM ( - 69 ) col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9617
SELECT DISTINCT + 33 * + + COALESCE ( CAST( NULL AS SIGNED ), 90 * - SUM( + 98 ), 34 ) * 41 - - + 32, CAST( + + 19 AS SIGNED ) AS col1
----
-11933428
19

skipif mysql # not compatible
query II rowsort label-9617
SELECT DISTINCT + 33 * + + COALESCE ( CAST ( NULL AS INTEGER ), 90 * - SUM ( + 98 ), 34 ) * 41 - - + 32, CAST ( + + 19 AS INTEGER ) AS col1
----
-11933428
19

query I rowsort
SELECT ALL + - 47 + - 68
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT DISTINCT - - MIN( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT - - MIN ( DISTINCT 68 )
----
68

query I rowsort
SELECT ALL - 19 + - 0 col0
----
-19

query II rowsort
SELECT DISTINCT 75, 68 * - 57 + + 27 AS col0
----
75
-3849

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + NULLIF ( - COUNT( * ), 40 - - 81 ) * - - 41 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-9622
SELECT + NULLIF ( - COUNT ( * ), 40 - - 81 ) * - - 41 AS col1
----
-41

query I rowsort
SELECT - 51 + - - 77 AS col0
----
26

query I rowsort
SELECT DISTINCT 71 + - + 82 * - - NULLIF ( + 50, 22 ) - - 96
----
-3933

query I rowsort
SELECT ALL 30 + + - 9 + 39 * - 78
----
-3021

query I rowsort
SELECT + ( + ( + 57 ) ) + - 48
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9627
SELECT DISTINCT 35 DIV + 5
----
7

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT 35 / + 5
----
7

query I rowsort
SELECT DISTINCT 29 + 3
----
32

query II rowsort
SELECT + 58 + - 36 AS col2, 91 * - + 77 AS col2
----
22
-7007

query I rowsort
SELECT - 34 + + 88 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT + 63 + - + 86 * COUNT( - 64 ) * - COUNT( * ) * ( - + 80 )
----
-6817

skipif mysql # not compatible
query I rowsort label-9631
SELECT + 63 + - + 86 * COUNT ( - 64 ) * - COUNT ( * ) * ( - + 80 )
----
-6817

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT + 39 + + + COUNT( * ) AS col0, + 31
----
40
31

skipif mysql # not compatible
query II rowsort label-9632
SELECT + 39 + + + COUNT ( * ) AS col0, + 31
----
40
31

query I rowsort
SELECT ALL + 28 * - 5 AS col2
----
-140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9634
SELECT DISTINCT - NULLIF ( 35, + 69 + + - ( - 34 ) + + NULLIF ( + 48, + COUNT( + NULLIF ( 8, - - CAST( + - 21 AS DECIMAL ) * 5 ) ) / 87 ) * - 78 ) * + 48 - 23
----
-1703

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - NULLIF ( 35, + 69 + + - ( - 34 ) + + NULLIF ( + 48, + COUNT ( + NULLIF ( 8, - - CAST ( + - 21 AS REAL ) * 5 ) ) / 87 ) * - 78 ) * + 48 - 23
----
-1703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9635
SELECT 19 DIV + COUNT( * ) + + 27 - + 67 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9635
SELECT 19 / + COUNT ( * ) + + 27 - + 67 AS col1
----
-21

query I rowsort
SELECT ALL + + 0 * - - 63 + 86
----
86

query I rowsort
SELECT + 97 * + + 82
----
7954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9638
SELECT - CAST( 22 AS SIGNED ) + COUNT( * ) + COALESCE ( + MIN( ALL CAST( NULL AS SIGNED ) ), - COUNT( * ) + MAX( - CASE - CASE - + 69 WHEN + 82 THEN 95 * 82 - 11 ELSE NULL END WHEN - 77 THEN - 57 + 36 * - 74 WHEN 23 * 24 THEN 58 ELSE NULL END ) ) * + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT - CAST ( 22 AS INTEGER ) + COUNT ( * ) + COALESCE ( + MIN ( ALL CAST ( NULL AS INTEGER ) ), - COUNT ( * ) + MAX ( - CASE - CASE - + 69 WHEN + 82 THEN 95 * 82 - 11 ELSE NULL END WHEN - 77 THEN - 57 + 36 * - 74 WHEN 23 * 24 THEN 58 ELSE NULL END ) ) * + 5 AS col1
----
NULL

query I rowsort
SELECT + - 33 + ( 96 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT - + CASE WHEN 56 IS NOT NULL THEN 10 + - ( + - MAX( + 38 ) ) + + - 49 END - 36 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9640
SELECT - + CASE WHEN 56 IS NOT NULL THEN 10 + - ( + - MAX ( + 38 ) ) + + - 49 END - 36 AS col0
----
-35

query I rowsort
SELECT - - 84 * - + 45
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL + SUM( NULLIF ( + 66, - - COALESCE ( + - 77, + 56 * + 31 + + 69 * + 26 ) ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL + SUM ( NULLIF ( + 66, - - COALESCE ( + - 77, + 56 * + 31 + + 69 * + 26 ) ) ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL - 60 * - - 7 + - COUNT( * ) AS col1
----
-421

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL - 60 * - - 7 + - COUNT ( * ) AS col1
----
-421

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9644
SELECT - - COUNT( * ) DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-9644
SELECT - - COUNT ( * ) / - 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL 99 * + 3 + - COUNT( * ) + ( + 21 ) + + - 65
----
252

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL 99 * + 3 + - COUNT ( * ) + ( + 21 ) + + - 65
----
252

query II rowsort
SELECT + + ( 93 ), - 18 * - 53 AS col1
----
93
954

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT CAST( ( - 24 ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-9647
SELECT CAST ( ( - 24 ) AS INTEGER )
----
-24

query I rowsort
SELECT ALL + 59 * - CASE + + 19 WHEN 50 THEN COALESCE ( + + 39, + 93 ) END + 39 col0
----
NULL

query II rowsort
SELECT + NULLIF ( + 88, 85 ) AS col0, 81 AS col2
----
88
81

query II rowsort
SELECT + - 77 + 68 AS col1, - 97 * - + 1 AS col0
----
-9
97

query I rowsort
SELECT - COALESCE ( - 1, COALESCE ( + 68, 39 - + - 64 ) )
----
1

query I rowsort
SELECT DISTINCT 17 * + 88 * 46 + - COALESCE ( - - 9, 15 ) - - 59 * + 58 + 81 AS col0
----
72310

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL SUM( ALL - 73 ) * + 72 * + 71 AS col0
----
-373176

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL SUM ( ALL - 73 ) * + 72 * + 71 AS col0
----
-373176

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL 91 * COUNT( * ) + + 14 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL 91 * COUNT ( * ) + + 14 AS col2
----
105

query I rowsort
SELECT ALL 76 + - 85
----
-9

query I rowsort
SELECT + 58 * - 27
----
-1566

query I rowsort
SELECT - 70 * - 62
----
4340

query I rowsort
SELECT - ( + - 31 ) col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9659
SELECT DISTINCT 2, 16 * 97 - COUNT( * ) DIV + COUNT( * ) AS col2
----
2
1551

skipif mysql # not compatible
query II rowsort label-9659
SELECT DISTINCT 2, 16 * 97 - COUNT ( * ) / + COUNT ( * ) AS col2
----
2
1551

query II rowsort
SELECT - COALESCE ( - 26, 6, 89 ) - - + 87 + + + 77 AS col1, + 64
----
190
64

query II rowsort
SELECT ALL 8 AS col1, 47
----
8
47

query I rowsort
SELECT - 22 - + NULLIF ( + - 47, 75 + 42 ) col1
----
25

query I rowsort
SELECT + 28 * + 37
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - NULLIF ( + - 99, + 35 * COUNT( DISTINCT - ( - - 82 ) ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9664
SELECT - NULLIF ( + - 99, + 35 * COUNT ( DISTINCT - ( - - 82 ) ) ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9665
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 69 * - 29
----
NULL
-2001

skipif mysql # not compatible
query II rowsort label-9665
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 69 * - 29
----
NULL
-2001

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT - CASE + 82 WHEN - 93 THEN + - COUNT( * ) + - COUNT( * ) * 27 + - 45 - 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT - CASE + 82 WHEN - 93 THEN + - COUNT ( * ) + - COUNT ( * ) * 27 + - 45 - 73 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT ALL 80 DIV + 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL 80 / + 44 AS col0
----
1

query I rowsort
SELECT + 92 * - ( + + 98 )
----
-9016

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL COUNT( ALL - - 22 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL COUNT ( ALL - - 22 ) AS col0
----
1

query I rowsort
SELECT + 68 - + + 25
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9671
SELECT + 42 - - COUNT( * ) * + 62 AS col2, + 47 AS col2
----
104
47

skipif mysql # not compatible
query II rowsort label-9671
SELECT + 42 - - COUNT ( * ) * + 62 AS col2, + 47 AS col2
----
104
47

query I rowsort
SELECT + + 74 * 48 * - + 8 + + - 19 AS col0
----
-28435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL + CASE - + MAX( ALL - ( + + 71 ) ) WHEN - 27 + 53 THEN 70 * + - 48 + + + 73 - + + 7 + - + 59 + + 15 * - 67 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL + CASE - + MAX ( ALL - ( + + 71 ) ) WHEN - 27 + 53 THEN 70 * + - 48 + + + 73 - + + 7 + - + 59 + + 15 * - 67 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 23 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT - - ( - 46 ) * - 70 AS col0, - SUM( DISTINCT - 31 ) + + 79 + 30 AS col2
----
3220
140

skipif mysql # not compatible
query II rowsort label-9674
SELECT - - ( - 46 ) * - 70 AS col0, - SUM ( DISTINCT - 31 ) + + 79 + 30 AS col2
----
3220
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT CASE COUNT( * ) WHEN + ( + 31 ) THEN NULL ELSE MIN( - - 0 ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9675
SELECT CASE COUNT ( * ) WHEN + ( + 31 ) THEN NULL ELSE MIN ( - - 0 ) END AS col0
----
0

query II rowsort
SELECT 30 * - + 25 + - 28, + 49 AS col2
----
-778
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9677
SELECT DISTINCT SUM( + ( - - 3 ) ) * 65 DIV - 68 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT SUM ( + ( - - 3 ) ) * 65 / - 68 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9678
SELECT ALL - 6 DIV 48 + - 7 * - CASE - 11 WHEN 54 * COUNT( * ) + + 29 + + 10 + - - CASE 55 WHEN + + 62 - MAX( ALL - 35 ) THEN CASE 71 WHEN 48 + - COUNT( - 30 + 24 DIV - 98 ) * ( COUNT( * ) ) THEN + 67 WHEN CASE - 2 WHEN + 12 THEN NULL ELSE - 22 * + 90 END + COUNT( 0 ) THEN COUNT( * ) WHEN 40 * + ( CAST( + 83 AS SIGNED ) ) THEN NULL ELSE NULL END DIV 33 ELSE - 83 END + + 59 DIV + 8 THEN NULL ELSE - 63 - 50 END + 12 * 0
----
-791

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - 6 / 48 + - 7 * - CASE - 11 WHEN 54 * COUNT ( * ) + + 29 + + 10 + - - CASE 55 WHEN + + 62 - MAX ( ALL - 35 ) THEN CASE 71 WHEN 48 + - COUNT ( - 30 + 24 / - 98 ) * ( COUNT ( * ) ) THEN + 67 WHEN CASE - 2 WHEN + 12 THEN NULL ELSE - 22 * + 90 END + COUNT ( 0 ) THEN COUNT ( * ) WHEN 40 * + ( CAST ( + 83 AS INTEGER ) ) THEN NULL ELSE NULL END / 33 ELSE - 83 END + + 59 / + 8 THEN NULL ELSE - 63 - 50 END + 12 * 0
----
-791

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9679
SELECT DISTINCT + ( + - COUNT( * ) ) DIV - - COUNT( * ) + - 92 - + - 26 * MAX( 16 ) * + 45 + 75 + + 67 AS col2
----
18769

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + ( + - COUNT ( * ) ) / - - COUNT ( * ) + - 92 - + - 26 * MAX ( 16 ) * + 45 + 75 + + 67 AS col2
----
18769

query II rowsort
SELECT + + 48 AS col2, 97
----
48
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT CASE + + AVG ( + + 32 ) WHEN - 83 THEN - 67 * + 87 * + 91 WHEN - - 83 + 40 THEN NULL ELSE - CAST( 34 AS SIGNED ) * + - COUNT( * ) END * + 65 + - MAX( CAST( + 99 AS SIGNED ) )
----
2111

skipif mysql # not compatible
query I rowsort label-9681
SELECT CASE + + AVG ( + + 32 ) WHEN - 83 THEN - 67 * + 87 * + 91 WHEN - - 83 + 40 THEN NULL ELSE - CAST ( 34 AS INTEGER ) * + - COUNT ( * ) END * + 65 + - MAX ( CAST ( + 99 AS INTEGER ) )
----
2111

query I rowsort
SELECT - + ( - - 72 ) * + 3
----
-216

query I rowsort
SELECT DISTINCT 46 * - 61 AS col1
----
-2806

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL + SUM( + 22 ) + + 80 AS col0
----
102

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL + SUM ( + 22 ) + + 80 AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9685
SELECT CAST( - - 72 AS SIGNED ) + 82 + MIN( DISTINCT - 90 ) DIV + ( - - 82 ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-9685
SELECT CAST ( - - 72 AS INTEGER ) + 82 + MIN ( DISTINCT - 90 ) / + ( - - 82 ) AS col0
----
153

query I rowsort
SELECT ALL - ( - 8 ) AS col1
----
8

query I rowsort
SELECT ALL 94 + - + 41 AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9688
SELECT DISTINCT 53 + 98 AS col0, COUNT( * ) * + + 0 + - NULLIF ( + ( - NULLIF ( ( + - COUNT( * ) ), - + SUM( 79 ) * + 38 ) ), - 9 + + + 64 ) + 43 * 45
----
151
1934

skipif mysql # not compatible
query II rowsort label-9688
SELECT DISTINCT 53 + 98 AS col0, COUNT ( * ) * + + 0 + - NULLIF ( + ( - NULLIF ( ( + - COUNT ( * ) ), - + SUM ( 79 ) * + 38 ) ), - 9 + + + 64 ) + 43 * 45
----
151
1934

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT + SUM( + 0 ) * + 33 - + 78 * + + 21 AS col1
----
-1638

skipif mysql # not compatible
query I rowsort label-9689
SELECT + SUM ( + 0 ) * + 33 - + 78 * + + 21 AS col1
----
-1638

query I rowsort
SELECT ALL - COALESCE ( + + 27, + - 11 ) AS col1
----
-27

query I rowsort
SELECT 4 + + 74 - + 80 * + + ( + 1 )
----
-2

query I rowsort
SELECT 75 * - + 40 AS col0
----
-3000

query II rowsort
SELECT 11 * + + 8, - 48 + 36 * + 29 AS col1
----
88
996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9694
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) * + NULLIF ( COUNT( * ), + 11 ) * + + 47
----
-47

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) * + NULLIF ( COUNT ( * ), + 11 ) * + + 47
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT 94 + - MAX( DISTINCT + 72 ) + - 23 + 15 * + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9695
SELECT 94 + - MAX ( DISTINCT + 72 ) + - 23 + 15 * + COUNT ( * ) AS col0
----
14

query I rowsort
SELECT ALL + 0 * - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT 10 * - MIN( + - 30 ) AS col0
----
300

skipif mysql # not compatible
query I rowsort label-9697
SELECT 10 * - MIN ( + - 30 ) AS col0
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT 13 + + - 49 * 35 * - MAX( ALL - + 33 ) * 46 * ( + 89 )
----
-231699917

skipif mysql # not compatible
query I rowsort label-9698
SELECT 13 + + - 49 * 35 * - MAX ( ALL - + 33 ) * 46 * ( + 89 )
----
-231699917

query II rowsort
SELECT DISTINCT - 55 * + 60, - 23 AS col1
----
-3300
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT 29 + + 89 * + COUNT( ( - 78 ) ) * 42 AS col1
----
3767

skipif mysql # not compatible
query I rowsort label-9700
SELECT 29 + + 89 * + COUNT ( ( - 78 ) ) * 42 AS col1
----
3767

query I rowsort
SELECT 0 * - - 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT COUNT( * ) + + 96 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9702
SELECT COUNT ( * ) + + 96 AS col1
----
97

query I rowsort
SELECT 48 + - 81
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - ( + + MIN( DISTINCT 89 ) ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-9704
SELECT - ( + + MIN ( DISTINCT 89 ) ) col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT ALL + 37 + 73 + + - 68 - + 98 + + COUNT( * ) + - 20 DIV + 23
----
-55

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL + 37 + 73 + + - 68 - + 98 + + COUNT ( * ) + - 20 / + 23
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9706
SELECT ALL - + ( 10 ) + + + COUNT( * ) + - 96 DIV - + 80
----
-8

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL - + ( 10 ) + + + COUNT ( * ) + - 96 / - + 80
----
-8

query I rowsort
SELECT DISTINCT + 15 + - 90 + + ( 31 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL - 56 + - SUM( ALL + - 31 )
----
-25

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL - 56 + - SUM ( ALL + - 31 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - COUNT( * ) * 53 * - + 13 * + + COUNT( + 43 ) + + + 25 AS col1
----
714

skipif mysql # not compatible
query I rowsort label-9709
SELECT - COUNT ( * ) * 53 * - + 13 * + + COUNT ( + 43 ) + + + 25 AS col1
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT COUNT( * ) * 64 * + 35 AS col2
----
2240

skipif mysql # not compatible
query I rowsort label-9710
SELECT COUNT ( * ) * 64 * + 35 AS col2
----
2240

query I rowsort
SELECT ALL + 12 * 82 AS col1
----
984

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ( - 66 ) + - COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9712
SELECT ( - 66 ) + - COUNT ( * ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT ALL COUNT( * ) + - + 52 - - - 15 + - 24 AS col2, 1 * 60
----
-90
60

skipif mysql # not compatible
query II rowsort label-9713
SELECT ALL COUNT ( * ) + - + 52 - - - 15 + - 24 AS col2, 1 * 60
----
-90
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT + 63 + 8 - - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT + 63 + 8 - - COUNT ( * )
----
72

query I rowsort
SELECT 11 * - 33 col0
----
-363

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT 42 DIV 20 DIV + - 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9716
SELECT 42 / 20 / + - 34 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - MAX( - 61 ) + - + 68 * 64
----
-4291

skipif mysql # not compatible
query I rowsort label-9717
SELECT - MAX ( - 61 ) + - + 68 * 64
----
-4291

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT DISTINCT 57 DIV - 57
----
-1

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT 57 / - 57
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT ALL COUNT( * ) + 50 + - + 88 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL COUNT ( * ) + 50 + - + 88 AS col0
----
-37

query I rowsort
SELECT ALL + - ( - 33 ) - - ( - 47 ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9721
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) + + + COUNT( * ) AS col2, 18 * - ( CAST( NULL AS SIGNED ) ) / 5 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9721
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + + COUNT ( * ) AS col2, 18 * - ( CAST ( NULL AS INTEGER ) ) / 5 AS col0
----
NULL
NULL

query I rowsort
SELECT ALL 41 * 61 AS col0
----
2501

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT MIN( + - 92 ) * - 91
----
8372

skipif mysql # not compatible
query I rowsort label-9723
SELECT MIN ( + - 92 ) * - 91
----
8372

query I rowsort
SELECT 20 * + 40 AS col0
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT + COUNT( + - 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9725
SELECT + COUNT ( + - 89 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL 5 * + SUM( + + 2 )
----
10

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL 5 * + SUM ( + + 2 )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9727
SELECT DISTINCT COUNT( * ) AS col0, - 20 * - + COUNT( * ) * - + 10 * + + 75
----
1
-15000

skipif mysql # not compatible
query II rowsort label-9727
SELECT DISTINCT COUNT ( * ) AS col0, - 20 * - + COUNT ( * ) * - + 10 * + + 75
----
1
-15000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9728
SELECT ( - + 89 ) DIV - 53 + 23 - + + MIN( DISTINCT - - 59 ) DIV 93
----
24

skipif mysql # not compatible
query I rowsort label-9728
SELECT ( - + 89 ) / - 53 + 23 - + + MIN ( DISTINCT - - 59 ) / 93
----
24

query I rowsort
SELECT 3 + - 56 col2
----
-53

query I rowsort
SELECT 19 - - 32
----
51

query I rowsort
SELECT 29 - - 17 col2
----
46

query I rowsort
SELECT ALL + 7 + + - ( - 4 ) AS col2
----
11

query II rowsort
SELECT - 37, 10 - - 37 AS col2
----
-37
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9734
SELECT ALL + + MIN( ALL 82 ) + - 88 AS col1, 57 + - 59 + + COUNT( + 49 ) * + SUM( DISTINCT - 48 ) + + - 85 AS col1
----
-6
-135

skipif mysql # not compatible
query II rowsort label-9734
SELECT ALL + + MIN ( ALL 82 ) + - 88 AS col1, 57 + - 59 + + COUNT ( + 49 ) * + SUM ( DISTINCT - 48 ) + + - 85 AS col1
----
-6
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9735
SELECT ALL - - 5 + COUNT( * ) + - AVG ( DISTINCT + 58 ) + + ( - 48 ) + - CAST( NULL AS SIGNED ) * - 6 * + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - - 5 + COUNT ( * ) + - AVG ( DISTINCT + 58 ) + + ( - 48 ) + - CAST ( NULL AS INTEGER ) * - 6 * + 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT + MIN( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9736
SELECT + MIN ( + 93 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9737
SELECT ALL - + 88 * + - CASE - 23 WHEN - - 99 THEN + + CASE - 22 WHEN + - NULLIF ( ( - - 86 ), + CAST( NULL AS SIGNED ) - + 96 ) THEN NULL WHEN 13 THEN 10 * + 80 ELSE NULL END WHEN + + 2 * - 48 THEN COALESCE ( 60, + 27 ) END / 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL - + 88 * + - CASE - 23 WHEN - - 99 THEN + + CASE - 22 WHEN + - NULLIF ( ( - - 86 ), + CAST ( NULL AS INTEGER ) - + 96 ) THEN NULL WHEN 13 THEN 10 * + 80 ELSE NULL END WHEN + + 2 * - 48 THEN COALESCE ( 60, + 27 ) END / 7
----
NULL

query I rowsort
SELECT DISTINCT + 58 + + + 36 AS col0
----
94

query I rowsort
SELECT + 26 - 46 AS col1
----
-20

query I rowsort
SELECT - - ( - 37 ) AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9741
SELECT - 88 * + 80 DIV - ( + 16 ) + - 58
----
382

skipif mysql # not compatible
query I rowsort label-9741
SELECT - 88 * + 80 / - ( + 16 ) + - 58
----
382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9742
SELECT + 30 * - 30 DIV + COUNT( * ) + + 88
----
-812

skipif mysql # not compatible
query I rowsort label-9742
SELECT + 30 * - 30 / + COUNT ( * ) + + 88
----
-812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9743
SELECT ALL 46 DIV ( COALESCE ( - 46, 5 * + 71 ) ) AS col0, - ( + 8 ) + CASE - 62 WHEN + 4 + + - 34 * - 90 + - 93 THEN - + CAST( NULL AS SIGNED ) + - COUNT( * ) END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9743
SELECT ALL 46 / ( COALESCE ( - 46, 5 * + 71 ) ) AS col0, - ( + 8 ) + CASE - 62 WHEN + 4 + + - 34 * - 90 + - 93 THEN - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) END
----
-1
NULL

query I rowsort
SELECT ALL 34 * + 25 * + ( + ( - + 31 ) ) - - 0
----
-26350

query I rowsort
SELECT ALL - 51 * - 65 AS col1
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT + - 45 * + CASE - - 96 WHEN - 25 / + - 96 - - MAX( - 20 ) THEN 29 WHEN + - COUNT( * ) * + 23 * - - 39 + - COUNT( * ) THEN NULL WHEN + 36 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT + - 45 * + CASE - - 96 WHEN - 25 / + - 96 - - MAX ( - 20 ) THEN 29 WHEN + - COUNT ( * ) * + 23 * - - 39 + - COUNT ( * ) THEN NULL WHEN + 36 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + - 17 AS col1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9748
SELECT CASE + 76 WHEN + + 30 * 77 DIV - 9 DIV - + COUNT( * ) THEN NULL ELSE + + 29 DIV 58 - 56 END AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9748
SELECT CASE + 76 WHEN + + 30 * 77 / - 9 / - + COUNT ( * ) THEN NULL ELSE + + 29 / 58 - 56 END AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT + COUNT( * ) * 60 + + 26 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9749
SELECT + COUNT ( * ) * 60 + + 26 AS col2
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9750
SELECT + 53 DIV - COUNT( + 97 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9750
SELECT + 53 / - COUNT ( + 97 ) AS col2
----
-53

query II rowsort
SELECT DISTINCT + 56 AS col0, 91 col1
----
56
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT + COUNT( * ) + - - 10
----
11

skipif mysql # not compatible
query I rowsort label-9752
SELECT + COUNT ( * ) + - - 10
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9753
SELECT ALL ( - 80 ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL ( - 80 ) / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT - CASE CASE - COUNT( * ) WHEN + ( - - 54 ) + 0 THEN NULL WHEN - - NULLIF ( - + 42, COUNT( * ) * + + 55 ) THEN 86 END WHEN + - 14 THEN - AVG ( - 44 ) + - 90 + - - 5 * 45 WHEN + 27 THEN NULL WHEN 76 THEN + 96 ELSE NULL END * 14 + ( ( + 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9754
SELECT - CASE CASE - COUNT ( * ) WHEN + ( - - 54 ) + 0 THEN NULL WHEN - - NULLIF ( - + 42, COUNT ( * ) * + + 55 ) THEN 86 END WHEN + - 14 THEN - AVG ( - 44 ) + - 90 + - - 5 * 45 WHEN + 27 THEN NULL WHEN 76 THEN + 96 ELSE NULL END * 14 + ( ( + 25 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT COUNT( - 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9755
SELECT COUNT ( - 78 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9756
SELECT 82 * + + 58 + + CAST( NULL AS SIGNED ) * - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT 82 * + + 58 + + CAST ( NULL AS INTEGER ) * - 29 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9757
SELECT ALL + 84 AS col2, - 96 * CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
84
NULL

skipif mysql # not compatible
query II rowsort label-9757
SELECT ALL + 84 AS col2, - 96 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - ( - 28 ) * CASE + 69 WHEN + 35 * + - 59 THEN NULL WHEN 81 THEN 33 * + 42 + - - 75 + + 0 WHEN 75 * + - MIN( DISTINCT + 71 ) + 76 - + - 39 THEN 77 * - 36 END - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT - ( - 28 ) * CASE + 69 WHEN + 35 * + - 59 THEN NULL WHEN 81 THEN 33 * + 42 + - - 75 + + 0 WHEN 75 * + - MIN ( DISTINCT + 71 ) + 76 - + - 39 THEN 77 * - 36 END - 30 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9759
SELECT ALL + 55 AS col2, - CASE - 37 WHEN COUNT( * ) - + 44 THEN - 99 WHEN - + ( + - 94 ) THEN 2 * COALESCE ( + 49, COUNT( * ) ) + + 46 + COALESCE ( - 92, + 19 ) ELSE - 97 END AS col1
----
55
97

skipif mysql # not compatible
query II rowsort label-9759
SELECT ALL + 55 AS col2, - CASE - 37 WHEN COUNT ( * ) - + 44 THEN - 99 WHEN - + ( + - 94 ) THEN 2 * COALESCE ( + 49, COUNT ( * ) ) + + 46 + COALESCE ( - 92, + 19 ) ELSE - 97 END AS col1
----
55
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT + 40 * + + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9760
SELECT + 40 * + + COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT + 45 + - + COALESCE ( - + 74, MAX( ALL + 49 ) * 80 * - COUNT( * ) * 67 - - + 3 ) - 95
----
24

skipif mysql # not compatible
query I rowsort label-9761
SELECT + 45 + - + COALESCE ( - + 74, MAX ( ALL + 49 ) * 80 * - COUNT ( * ) * 67 - - + 3 ) - 95
----
24

query I rowsort
SELECT - 22 + 62
----
40

query I rowsort
SELECT 10 * 19 * + 37 + + - 2 + + 55 AS col2
----
7083

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT - 18 AS col1, - CASE 61 WHEN - 18 THEN NULL WHEN - 13 THEN 75 + + 2 * - NULLIF ( - NULLIF ( - ( COUNT( ALL - 40 ) ), - 7 ), + 45 * + 55 + AVG ( 29 ) / + 10 - 61 ) END AS col0
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-9764
SELECT - 18 AS col1, - CASE 61 WHEN - 18 THEN NULL WHEN - 13 THEN 75 + + 2 * - NULLIF ( - NULLIF ( - ( COUNT ( ALL - 40 ) ), - 7 ), + 45 * + 55 + AVG ( 29 ) / + 10 - 61 ) END AS col0
----
-18
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT ALL COUNT( * ) AS col1, - 77 AS col0
----
1
-77

skipif mysql # not compatible
query II rowsort label-9765
SELECT ALL COUNT ( * ) AS col1, - 77 AS col0
----
1
-77

query I rowsort
SELECT + 9 + - 71 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL NULLIF ( - 38, + + SUM( DISTINCT + - 78 ) ) + - 98
----
-136

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL NULLIF ( - 38, + + SUM ( DISTINCT + - 78 ) ) + - 98
----
-136

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT 86 AS col1, + COUNT( * ) col1
----
86
1

skipif mysql # not compatible
query II rowsort label-9768
SELECT 86 AS col1, + COUNT ( * ) col1
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT + 86 + - 89 + + - 4 + - 43 * - - 87 * - COUNT( * ) + - COUNT( * ) + + - 43 * - + 17 + - 29 + + 68 * - NULLIF ( 0, + + 38 - - 30 + + - 85 )
----
4435

skipif mysql # not compatible
query I rowsort label-9769
SELECT + 86 + - 89 + + - 4 + - 43 * - - 87 * - COUNT ( * ) + - COUNT ( * ) + + - 43 * - + 17 + - 29 + + 68 * - NULLIF ( 0, + + 38 - - 30 + + - 85 )
----
4435

query I rowsort
SELECT ALL 91 + + 24 AS col0
----
115

query I rowsort
SELECT ALL + 56 + ( - 23 ) * + + 55
----
-1209

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT - - 51 * + COUNT( + - 46 ) - ( - ( 18 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9772
SELECT - - 51 * + COUNT ( + - 46 ) - ( - ( 18 ) ) AS col2
----
69

query II rowsort
SELECT ALL + 66 AS col1, 98 * - 47 AS col1
----
66
-4606

query I rowsort
SELECT DISTINCT + ( - - 66 ) + + + 51
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT NULLIF ( - + 95, + 77 * - - COUNT( * ) )
----
-95

skipif mysql # not compatible
query I rowsort label-9775
SELECT NULLIF ( - + 95, + 77 * - - COUNT ( * ) )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9776
SELECT DISTINCT - MAX( DISTINCT + 95 ) + + + 10 - - 58 col0, - 73 AS col0
----
-27
-73

skipif mysql # not compatible
query II rowsort label-9776
SELECT DISTINCT - MAX ( DISTINCT + 95 ) + + + 10 - - 58 col0, - 73 AS col0
----
-27
-73

query I rowsort
SELECT + 63 * + + ( 37 ) * 42 + 74 AS col0
----
97976

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT - MIN( 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-9778
SELECT - MIN ( 90 )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT DISTINCT - 63 DIV + 21
----
-3

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - 63 / + 21
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT ALL NULLIF ( - COUNT( DISTINCT - COALESCE ( - 17, + 45 + + 0, - 70 ) ), - + COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL NULLIF ( - COUNT ( DISTINCT - COALESCE ( - 17, + 45 + + 0, - 70 ) ), - + COUNT ( * ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9781
SELECT - ( 90 ) DIV + - 96 - + 72 AS col1, 98
----
-72
98

skipif mysql # not compatible
query II rowsort label-9781
SELECT - ( 90 ) / + - 96 - + 72 AS col1, 98
----
-72
98

query I rowsort
SELECT DISTINCT - 13 - 76 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9783
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) - - - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) - - - 33 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9784
SELECT ALL + 15 AS col0, - CAST( 80 AS SIGNED ) col0
----
15
-80

skipif mysql # not compatible
query II rowsort label-9784
SELECT ALL + 15 AS col0, - CAST ( 80 AS INTEGER ) col0
----
15
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9785
SELECT DISTINCT + 11 * COALESCE ( + 36, 30 ) * - 54 + 27 DIV + CAST( CAST( - + 91 AS SIGNED ) AS SIGNED )
----
-21384

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT + 11 * COALESCE ( + 36, 30 ) * - 54 + 27 / + CAST ( CAST ( - + 91 AS INTEGER ) AS INTEGER )
----
-21384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9786
SELECT DISTINCT - COUNT( * ) DIV 87 DIV ( + - 33 ) - - 34 + ( - - 7 ) * + 44 AS col1
----
342

skipif mysql # not compatible
query I rowsort label-9786
SELECT DISTINCT - COUNT ( * ) / 87 / ( + - 33 ) - - 34 + ( - - 7 ) * + 44 AS col1
----
342

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9787
SELECT - - ( + 13 ) DIV - + 33 + + ( - 17 ) + ( ( - 33 ) ) + + COUNT( * ) * + 7 * - 13 - + 49 col0, 66
----
-190
66

skipif mysql # not compatible
query II rowsort label-9787
SELECT - - ( + 13 ) / - + 33 + + ( - 17 ) + ( ( - 33 ) ) + + COUNT ( * ) * + 7 * - 13 - + 49 col0, 66
----
-190
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9788
SELECT - CAST( NULL AS SIGNED ) * - COUNT( + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( + 78 )
----
NULL

query I rowsort
SELECT + 12 * + 48 AS col1
----
576

query I rowsort
SELECT ALL + NULLIF ( + 86, - - 59 )
----
86

query I rowsort
SELECT DISTINCT + ( - - 74 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT ALL 0 * + 62 + - + 41 * - CAST( - 49 AS SIGNED )
----
-2009

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL 0 * + 62 + - + 41 * - CAST ( - 49 AS INTEGER )
----
-2009

query I rowsort
SELECT ( + ( 70 ) ) AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT + NULLIF ( + - CAST( NULL AS SIGNED ), + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT + NULLIF ( + - CAST ( NULL AS INTEGER ), + + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT ALL + MAX( + 43 ) * 54 + 5 - + + 24
----
2303

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL + MAX ( + 43 ) * 54 + 5 - + + 24
----
2303

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9796
SELECT NULLIF ( - 77, + + CASE - + 20 WHEN - 57 * + 69 * + NULLIF ( - CASE + + 55 WHEN 42 * + - CAST( - 20 AS SIGNED ) + + ( 96 ) * + + 49 THEN - + 1 END, 68 ) + + 55 / + 97 + 57 THEN + 28 END + COUNT( 74 ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9796
SELECT NULLIF ( - 77, + + CASE - + 20 WHEN - 57 * + 69 * + NULLIF ( - CASE + + 55 WHEN 42 * + - CAST ( - 20 AS INTEGER ) + + ( 96 ) * + + 49 THEN - + 1 END, 68 ) + + 55 / + 97 + 57 THEN + 28 END + COUNT ( 74 ) ) AS col2
----
-77

query I rowsort
SELECT COALESCE ( 21, - 86 )
----
21

query I rowsort
SELECT DISTINCT + COALESCE ( + 78, - - 59 ) * + 16 * + 89 - 5 * + 29
----
110927

query I rowsort
SELECT + 86 * + - 0 * 79
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT ALL CAST( NULL AS SIGNED ) * + 93 + 51 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL CAST ( NULL AS INTEGER ) * + 93 + 51 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT CASE + + 19 WHEN 95 - - 15 THEN + + COUNT( ALL - 59 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9801
SELECT CASE + + 19 WHEN 95 - - 15 THEN + + COUNT ( ALL - 59 ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 75 * 33 + - 21 + 97 * + 42 AS col1
----
1578

query I rowsort
SELECT ALL 78 - - 36 AS col1
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-9804
SELECT MAX( ALL + 77 ) AS col1, - 80
----
77
-80

skipif mysql # not compatible
query II rowsort label-9804
SELECT MAX ( ALL + 77 ) AS col1, - 80
----
77
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9805
SELECT + NULLIF ( + 28, + CAST( - 61 AS DECIMAL ) * + 24 + CAST( 31 AS SIGNED ) + - - COUNT( * ) + 82 ) * - + 19 AS col2
----
-532

skipif mysql # not compatible
query I rowsort label-9805
SELECT + NULLIF ( + 28, + CAST ( - 61 AS REAL ) * + 24 + CAST ( 31 AS INTEGER ) + - - COUNT ( * ) + 82 ) * - + 19 AS col2
----
-532

query I rowsort
SELECT ALL + 33 * + 32 - 97
----
959

query I rowsort
SELECT DISTINCT 40 * 64 * 24
----
61440

query I rowsort
SELECT DISTINCT + 6 * - + 53 * - 72
----
22896

query II rowsort
SELECT + 88 + 31 * + + 2 col1, 71
----
150
71

query I rowsort
SELECT DISTINCT ( - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9811
SELECT ALL 67 * - 2 * + 62 + + COUNT( * ) + 65 + 19 * + + ( 27 ), 97 AS col0
----
-7729
97

skipif mysql # not compatible
query II rowsort label-9811
SELECT ALL 67 * - 2 * + 62 + + COUNT ( * ) + 65 + 19 * + + ( 27 ), 97 AS col0
----
-7729
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9812
SELECT - CAST( + SUM( ALL + + 84 ) AS SIGNED ) + - 9 + 24
----
-69

skipif mysql # not compatible
query I rowsort label-9812
SELECT - CAST ( + SUM ( ALL + + 84 ) AS INTEGER ) + - 9 + 24
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-9813
SELECT - 24 - - 89, + ( COUNT( * ) ) * 90 AS col2
----
65
90

skipif mysql # not compatible
query II rowsort label-9813
SELECT - 24 - - 89, + ( COUNT ( * ) ) * 90 AS col2
----
65
90

query I rowsort
SELECT + 64 * - 84 * - 12 + - - 53 AS col2
----
64565

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT DISTINCT - - 4 / + 25 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT DISTINCT - - 4 / + 25 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9816
SELECT DISTINCT 47 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT 47 / 76
----
0

query I rowsort
SELECT ALL + 9 * - 34 * - 16 AS col1
----
4896

query II rowsort
SELECT ALL - 78 AS col1, - 95 AS col2
----
-78
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT 13 DIV - ( + + ( 14 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT 13 / - ( + + ( 14 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL - MAX( ALL - 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL - MAX ( ALL - 95 ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT 19 * + - 70 + - - 18 + - COALESCE ( MIN( DISTINCT - 4 ), 78 * CAST( NULL AS SIGNED ), 41 * - - CASE + - 3 WHEN + 4 THEN - + 91 WHEN + 29 + - - COALESCE ( 76, 16 * 13, + 80 ) * + COUNT( * ) THEN NULL ELSE NULL END ) * + 42 col2
----
-1144

skipif mysql # not compatible
query I rowsort label-9821
SELECT 19 * + - 70 + - - 18 + - COALESCE ( MIN ( DISTINCT - 4 ), 78 * CAST ( NULL AS INTEGER ), 41 * - - CASE + - 3 WHEN + 4 THEN - + 91 WHEN + 29 + - - COALESCE ( 76, 16 * 13, + 80 ) * + COUNT ( * ) THEN NULL ELSE NULL END ) * + 42 col2
----
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT - 89 * + 72 + - MIN( - + 1 )
----
-6407

skipif mysql # not compatible
query I rowsort label-9822
SELECT - 89 * + 72 + - MIN ( - + 1 )
----
-6407

query I rowsort
SELECT 19 + + + 24
----
43

onlyif mysql # aggregate syntax: 
query III rowsort label-9824
SELECT 49 col1, + NULLIF ( + 95, 22 ) - COUNT( * ) * 65 AS col0, - 18
----
49
30
-18

skipif mysql # not compatible
query III rowsort label-9824
SELECT 49 col1, + NULLIF ( + 95, 22 ) - COUNT ( * ) * 65 AS col0, - 18
----
49
30
-18

query II rowsort
SELECT ALL + 20 + + - 62 - 26 AS col2, + 84 AS col2
----
-68
84

query I rowsort
SELECT 29 + + 88 AS col2
----
117

onlyif mysql # DIV for integer division: 
query II rowsort label-9827
SELECT ALL + 47 + + + 20 + + - 21 DIV - - 57 AS col0, 95 AS col1
----
67
95

skipif mysql # not compatible
query II rowsort label-9827
SELECT ALL + 47 + + + 20 + + - 21 / - - 57 AS col0, 95 AS col1
----
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT DISTINCT - MAX( - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT - MAX ( - 7 )
----
7

query I rowsort
SELECT ALL - 47 + + NULLIF ( - 20, - 46 ) + + + 90
----
23

query I rowsort
SELECT 45 * + ( - 38 ) AS col2
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT DISTINCT - 66 + - + ( - - 35 ) + - - 39 * + MAX( - - 78 ) * 16 + - 28 * 27 AS col0
----
47815

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT - 66 + - + ( - - 35 ) + - - 39 * + MAX ( - - 78 ) * 16 + - 28 * 27 AS col0
----
47815

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT DISTINCT + 2 - + 78 + + COUNT( * ) * + 1 * + - 53 AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT + 2 - + 78 + + COUNT ( * ) * + 1 * + - 53 AS col2
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9833
SELECT ALL - ( - 6 ) * CASE + 55 WHEN + - ( 69 ) / - 2 THEN + 35 ELSE NULL END * + - 53 * CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) + + + ( + + 36 ) * 68 * 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL - ( - 6 ) * CASE + 55 WHEN + - ( 69 ) / - 2 THEN + 35 ELSE NULL END * + - 53 * CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) + + + ( + + 36 ) * 68 * 67 AS col1
----
NULL

query I rowsort
SELECT 93 * + 44
----
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT COUNT( ALL + 48 ) + - - 17
----
18

skipif mysql # not compatible
query I rowsort label-9835
SELECT COUNT ( ALL + 48 ) + - - 17
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - MAX( + - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-9836
SELECT - MAX ( + - 44 )
----
44

query I rowsort
SELECT DISTINCT + 37 * - 60 * + - 48 AS col1
----
106560

query II rowsort
SELECT ALL 17, 10 AS col2
----
17
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT 29 * - 10 * ( ( + - COUNT( - 6 ) ) ) + + + 5
----
295

skipif mysql # not compatible
query I rowsort label-9839
SELECT 29 * - 10 * ( ( + - COUNT ( - 6 ) ) ) + + + 5
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL + + 2 - 32 - - 91 + - COUNT( * ) * - COUNT( * ) + - - 78 * - + NULLIF ( 24, COUNT( * ) ) AS col2
----
-1810

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + + 2 - 32 - - 91 + - COUNT ( * ) * - COUNT ( * ) + - - 78 * - + NULLIF ( 24, COUNT ( * ) ) AS col2
----
-1810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9841
SELECT DISTINCT - COUNT( * ) * 34 * + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT - COUNT ( * ) * 34 * + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * 58
----
NULL

query I rowsort
SELECT DISTINCT + 77 * - 87 + - 20
----
-6719

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9843
SELECT ALL COUNT( * ) DIV - 90 col0
----
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL COUNT ( * ) / - 90 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT 8 DIV - + 59 + + COALESCE ( + 39, - COUNT( * ) + MAX( 87 ) + - - 75 * + - 17 + + 90, - - 88 + + + 13, 98 + 53 + + 12 * - + 86 + - 59 + + - COALESCE ( - ( 89 ), + 52, 13 ) )
----
39

skipif mysql # not compatible
query I rowsort label-9844
SELECT 8 / - + 59 + + COALESCE ( + 39, - COUNT ( * ) + MAX ( 87 ) + - - 75 * + - 17 + + 90, - - 88 + + + 13, 98 + 53 + + 12 * - + 86 + - 59 + + - COALESCE ( - ( 89 ), + 52, 13 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT - ( + + ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT - ( + + ( + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT + COUNT( + + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-9846
SELECT + COUNT ( + + 89 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT + 22 + - 81 - CASE - - CAST( NULL AS SIGNED ) WHEN 4 THEN NULL ELSE - 25 END AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9847
SELECT + 22 + - 81 - CASE - - CAST ( NULL AS INTEGER ) WHEN 4 THEN NULL ELSE - 25 END AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + 62 * - COUNT( DISTINCT + COALESCE ( - - 12, + 82 ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9848
SELECT + 62 * - COUNT ( DISTINCT + COALESCE ( - - 12, + 82 ) ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + COUNT( * ) * - 62 + 77 + - 19
----
-4

skipif mysql # not compatible
query I rowsort label-9849
SELECT + COUNT ( * ) * - 62 + 77 + - 19
----
-4

query I rowsort
SELECT ALL 1 * - 29
----
-29

query I rowsort
SELECT - CASE WHEN 82 BETWEEN NULL AND NULL THEN + 46 END + - - 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9852
SELECT - 97, + 93 * - NULLIF ( - - SUM( ALL + 85 ), + 15 + - 42 + - COUNT( DISTINCT - ( 85 ) ) ) AS col1
----
-97
-7905

skipif mysql # not compatible
query II rowsort label-9852
SELECT - 97, + 93 * - NULLIF ( - - SUM ( ALL + 85 ), + 15 + - 42 + - COUNT ( DISTINCT - ( 85 ) ) ) AS col1
----
-97
-7905

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9853
SELECT 11 + 15 DIV - 27, - 64 * - - MIN( ALL + - ( - 21 ) ) - - 54 AS col0
----
11
-1290

skipif mysql # not compatible
query II rowsort label-9853
SELECT 11 + 15 / - 27, - 64 * - - MIN ( ALL + - ( - 21 ) ) - - 54 AS col0
----
11
-1290

query I rowsort
SELECT ALL 6 + - 15
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9855
SELECT DISTINCT 29 + 4 + 89 DIV 95 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT 29 + 4 + 89 / 95 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT 41 + 3 + + COUNT( * ) + - 25 * - 93 * 26
----
60495

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT 41 + 3 + + COUNT ( * ) + - 25 * - 93 * 26
----
60495

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT 94 DIV + 24 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9857
SELECT 94 / + 24 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT 14 * - - COUNT( * ) + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9858
SELECT 14 * - - COUNT ( * ) + - COUNT ( * )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9859
SELECT ALL + CAST( NULL AS SIGNED ) * - ( + 74 ) + + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( + 74 ) + + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT COUNT( + 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9860
SELECT COUNT ( + 7 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT - 91 DIV - 74 + 62 col0
----
63

skipif mysql # not compatible
query I rowsort label-9861
SELECT - 91 / - 74 + 62 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT COUNT( + 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9862
SELECT COUNT ( + 80 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT DISTINCT - SUM( - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT - SUM ( - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT COUNT( * ) * 25 col0
----
25

skipif mysql # not compatible
query I rowsort label-9864
SELECT COUNT ( * ) * 25 col0
----
25

query I rowsort
SELECT 55 + CASE + 67 WHEN + + 59 THEN NULL WHEN - 72 THEN ( 36 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 29 * 17 AS col2
----
493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9867
SELECT ALL SUM( 5 ) DIV - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL SUM ( 5 ) / - 73 AS col2
----
0

query I rowsort
SELECT 45 * 7 * - - ( + 76 )
----
23940

query I rowsort
SELECT DISTINCT - NULLIF ( 82, + - 12 ) AS col0
----
-82

query I rowsort
SELECT DISTINCT - 5 * - + 30 - 69
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL 86 * + SUM( ALL - + 37 ) AS col1
----
-3182

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL 86 * + SUM ( ALL - + 37 ) AS col1
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT SUM( + - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9872
SELECT SUM ( + - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL + 72 * + 20 - - COUNT( * )
----
1441

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + 72 * + 20 - - COUNT ( * )
----
1441

query II rowsort
SELECT + CASE - 55 WHEN 43 + - 48 * + - 26 - + + CASE - 30 WHEN ( 56 ) * 11 THEN + - ( - 83 ) ELSE - 86 + - ( - - 63 ) END THEN NULL WHEN + 59 THEN NULL ELSE + - 72 END AS col0, - 33 AS col2
----
-72
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT MAX( + ( - 51 ) )
----
-51

skipif mysql # not compatible
query I rowsort label-9875
SELECT MAX ( + ( - 51 ) )
----
-51

query I rowsort
SELECT + 44 * - 53 col1
----
-2332

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT DISTINCT - - COUNT( * ) - - - 24 + - 29 + + - 89 + COUNT( * )
----
-140

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT - - COUNT ( * ) - - - 24 + - 29 + + - 89 + COUNT ( * )
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT DISTINCT - 84 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT - 84 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT ALL - + 62 DIV + MAX( + + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL - + 62 / + MAX ( + + 77 )
----
0

query I rowsort
SELECT - - 92 + + - 37 * + 42
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT ALL NULLIF ( COUNT( * ), 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL NULLIF ( COUNT ( * ), 43 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT + 23 * SUM( DISTINCT + - 33 )
----
-759

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT + 23 * SUM ( DISTINCT + - 33 )
----
-759

query I rowsort
SELECT DISTINCT - - CASE + 78 WHEN - 19 THEN NULL WHEN - - 3 THEN - 45 ELSE NULL END + + 26 / - 69 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT + 16 DIV + - 61 * - 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-9884
SELECT + 16 / + - 61 * - 86 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9885
SELECT ALL + CAST( - MIN( ALL - 12 ) AS SIGNED ) + - + 41 AS col0, 70 AS col1
----
-29
70

skipif mysql # not compatible
query II rowsort label-9885
SELECT ALL + CAST ( - MIN ( ALL - 12 ) AS INTEGER ) + - + 41 AS col0, 70 AS col1
----
-29
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL - 32 + 3 + + 90 * + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL - 32 + 3 + + 90 * + COUNT ( * )
----
61

query I rowsort
SELECT - 59 + + 95
----
36

query I rowsort
SELECT DISTINCT + - 20 + - - 34
----
14

query I rowsort
SELECT DISTINCT - 88 * - 61 AS col2
----
5368

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL + COUNT( * ) + + + 31 col2
----
32

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL + COUNT ( * ) + + + 31 col2
----
32

query I rowsort
SELECT ALL + 49 + + 41 * - 94
----
-3805

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT - NULLIF ( COUNT( * ), - 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-9892
SELECT - NULLIF ( COUNT ( * ), - 75 )
----
-1

query I rowsort
SELECT ALL 52 + 68 AS col1
----
120

query III rowsort
SELECT ALL 91 AS col1, - ( - 79 ) AS col1, 33 AS col0
----
91
79
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT DISTINCT 81 / + COUNT( * ) * - - 39 + - - CASE - 43 WHEN + 11 + 68 THEN 0 / - 75 + + 62 * - - 52 END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT 81 / + COUNT ( * ) * - - 39 + - - CASE - 43 WHEN + 11 + 68 THEN 0 / - 75 + + 62 * - - 52 END * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9896
SELECT ALL + 74 AS col2, COUNT( * ) * + - 28
----
74
-28

skipif mysql # not compatible
query II rowsort label-9896
SELECT ALL + 74 AS col2, COUNT ( * ) * + - 28
----
74
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9897
SELECT DISTINCT + 11 DIV + + COUNT( * ) - - 42 * + 70
----
2951

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + 11 / + + COUNT ( * ) - - 42 * + 70
----
2951

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT DISTINCT - 61 * COUNT( * ) - + - 91 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT - 61 * COUNT ( * ) - + - 91 AS col1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT DISTINCT 74 DIV - 98 * 94 * 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT 74 / - 98 * 94 * 17 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL + COALESCE ( + COUNT( * ), - - ( - 76 ), 0 * + COALESCE ( NULLIF ( - COUNT( * ), + 85 * - COUNT( * ) ), 22 ), - - ( + + 28 ) + + - NULLIF ( + 8, - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL + COALESCE ( + COUNT ( * ), - - ( - 76 ), 0 * + COALESCE ( NULLIF ( - COUNT ( * ), + 85 * - COUNT ( * ) ), 22 ), - - ( + + 28 ) + + - NULLIF ( + 8, - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT DISTINCT + + CAST( + 16 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT + + CAST ( + 16 AS INTEGER ) AS col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9902
SELECT ALL + COUNT( * ) * + COUNT( * ) DIV + + 91 * - 46
----
0

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL + COUNT ( * ) * + COUNT ( * ) / + + 91 * - 46
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT + - 41 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT + - 41 / 88 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT DISTINCT 6 DIV - 6
----
-1

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT 6 / - 6
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + + COUNT( * ) + - + 36
----
-35

skipif mysql # not compatible
query I rowsort label-9905
SELECT + + COUNT ( * ) + - + 36
----
-35

query II rowsort
SELECT ALL + + 94 AS col1, + 68
----
94
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT ALL 33 * - SUM( DISTINCT - + 24 )
----
792

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL 33 * - SUM ( DISTINCT - + 24 )
----
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9908
SELECT + COUNT( * ) DIV - + 25 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9908
SELECT + COUNT ( * ) / - + 25 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT + MAX( + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9909
SELECT + MAX ( + 63 ) AS col2
----
63

query I rowsort
SELECT ALL 47 * - - 81 + - 6
----
3801

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT MIN( + - NULLIF ( + - 56, + 29 * + 6 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9911
SELECT MIN ( + - NULLIF ( + - 56, + 29 * + 6 ) ) AS col0
----
56

query I rowsort
SELECT - 68 * 92 + + 79
----
-6177

onlyif mysql # aggregate syntax: 
query II rowsort label-9913
SELECT ALL - + COUNT( * ) * 98 + - 84 * + 45 + - + 8 AS col2, - 21 + + - COALESCE ( - 17, - MAX( - 99 ) )
----
-3886
-4

skipif mysql # not compatible
query II rowsort label-9913
SELECT ALL - + COUNT ( * ) * 98 + - 84 * + 45 + - + 8 AS col2, - 21 + + - COALESCE ( - 17, - MAX ( - 99 ) )
----
-3886
-4

query I rowsort
SELECT DISTINCT + + 84 + 25 + - + ( - 98 )
----
207

onlyif mysql # DIV for integer division: 
query II rowsort label-9915
SELECT - + 6 * + 57 * - 14 AS col1, 39 DIV - 79 * 41
----
4788
0

skipif mysql # not compatible
query II rowsort label-9915
SELECT - + 6 * + 57 * - 14 AS col1, 39 / - 79 * 41
----
4788
0

query I rowsort
SELECT ALL - 0 + 81
----
81

query I rowsort
SELECT ALL + - 34 + + 53 AS col1
----
19

query I rowsort
SELECT ALL - - 72 + 78
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT ALL - 30 AS col1, COUNT( * ) AS col1
----
-30
1

skipif mysql # not compatible
query II rowsort label-9919
SELECT ALL - 30 AS col1, COUNT ( * ) AS col1
----
-30
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT - CAST( NULL AS SIGNED ) * 66 * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT - CAST ( NULL AS INTEGER ) * 66 * 15
----
NULL

query I rowsort
SELECT - 29 * - - 38 AS col0
----
-1102

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT ( + COALESCE ( - COALESCE ( - - COUNT( * ), + 28 ), - + 89 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT ( + COALESCE ( - COALESCE ( - - COUNT ( * ), + 28 ), - + 89 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - 93 - + - 51 - - COUNT( * ) * - + COUNT( * ) + - 69 col2
----
-112

skipif mysql # not compatible
query I rowsort label-9923
SELECT - 93 - + - 51 - - COUNT ( * ) * - + COUNT ( * ) + - 69 col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT + CASE + 36 WHEN - 21 / - 13 THEN 36 WHEN 2 THEN + - 7 ELSE 20 END * + 81 * NULLIF ( + COUNT( * ), 67 / 90 ) AS col1
----
1620

skipif mysql # not compatible
query I rowsort label-9924
SELECT + CASE + 36 WHEN - 21 / - 13 THEN 36 WHEN 2 THEN + - 7 ELSE 20 END * + 81 * NULLIF ( + COUNT ( * ), 67 / 90 ) AS col1
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT DISTINCT ( + - MIN( ALL + 64 ) ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT ( + - MIN ( ALL + 64 ) ) col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9926
SELECT ALL + 51 - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL + 51 - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9927
SELECT ALL 44, - MIN( + + 20 ) DIV - 88 * 60 AS col0
----
44
0

skipif mysql # not compatible
query II rowsort label-9927
SELECT ALL 44, - MIN ( + + 20 ) / - 88 * 60 AS col0
----
44
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9928
SELECT 36, 38 + - - 94 * 80 * - + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-9928
SELECT 36, 38 + - - 94 * 80 * - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT DISTINCT + COUNT( * ) - + 6 * - - MIN( 91 ) AS col0
----
-545

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT + COUNT ( * ) - + 6 * - - MIN ( 91 ) AS col0
----
-545

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9930
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 29 AS col0, - 81
----
NULL
29
-81

skipif mysql # not compatible
query III rowsort label-9930
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 29 AS col0, - 81
----
NULL
29
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT ALL 75 DIV - + 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL 75 / - + 90 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9932
SELECT 54 + - - 13 + - COUNT( * ) * - CASE + 91 WHEN - 57 + + + 96 THEN NULL ELSE - 36 * - 88 + - 72 - NULLIF ( + 97, 86 - - 58 ) - - COUNT( ALL + 8 ) DIV 83 END DIV + COUNT( * ) AS col1
----
3066

skipif mysql # not compatible
query I rowsort label-9932
SELECT 54 + - - 13 + - COUNT ( * ) * - CASE + 91 WHEN - 57 + + + 96 THEN NULL ELSE - 36 * - 88 + - 72 - NULLIF ( + 97, 86 - - 58 ) - - COUNT ( ALL + 8 ) / 83 END / + COUNT ( * ) AS col1
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT 58 * MIN( ALL + 43 ) AS col1
----
2494

skipif mysql # not compatible
query I rowsort label-9933
SELECT 58 * MIN ( ALL + 43 ) AS col1
----
2494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT ALL - CASE - - 39 WHEN 50 * - 4 * + 71 - 41 - - + COALESCE ( 41, - ( - 58 ) ) THEN COALESCE ( + - 87, ( + ( - + COUNT( * ) ) ) * 26, - SUM( 42 ) DIV + - COUNT( * ) ) * 64 WHEN + - 10 THEN NULL ELSE 24 * + ( + 69 * + 31 ) END AS col0
----
-51336

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL - CASE - - 39 WHEN 50 * - 4 * + 71 - 41 - - + COALESCE ( 41, - ( - 58 ) ) THEN COALESCE ( + - 87, ( + ( - + COUNT ( * ) ) ) * 26, - SUM ( 42 ) / + - COUNT ( * ) ) * 64 WHEN + - 10 THEN NULL ELSE 24 * + ( + 69 * + 31 ) END AS col0
----
-51336

onlyif mysql # DIV for integer division: 
query I rowsort label-9935
SELECT DISTINCT - 7 DIV + + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - 7 / + + 94 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( - 31 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9937
SELECT 47 * 11 * CAST( - 18 AS SIGNED ) AS col1, - COUNT( * )
----
-9306
-1

skipif mysql # not compatible
query II rowsort label-9937
SELECT 47 * 11 * CAST ( - 18 AS INTEGER ) AS col1, - COUNT ( * )
----
-9306
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT + 67 AS col2, - 45 - + - SUM( ALL + 91 ) AS col2
----
67
46

skipif mysql # not compatible
query II rowsort label-9938
SELECT + 67 AS col2, - 45 - + - SUM ( ALL + 91 ) AS col2
----
67
46

query I rowsort
SELECT DISTINCT 33 * + COALESCE ( 21, - ( - 90 ) )
----
693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT + CAST( NULL AS SIGNED ) * + - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9940
SELECT + CAST ( NULL AS INTEGER ) * + - 68 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 4 * + + 90 AS col2
----
360

query I rowsort
SELECT ALL 78 + + + 89 AS col1
----
167

query II rowsort
SELECT ALL - - 18, 3 AS col0
----
18
3

query I rowsort
SELECT ALL 22 * - - 64 AS col0
----
1408

query I rowsort
SELECT 7 * - + 66
----
-462

query I rowsort
SELECT + 14 - - + CASE - 88 WHEN 17 * 56 THEN + 67 END * - + CASE + + 59 WHEN - 6 THEN NULL WHEN 91 + + - 79 * + ( - 84 ) + 38 * + 50 THEN 58 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL + ( - - COUNT( * ) ) + + 7
----
8

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + ( - - COUNT ( * ) ) + + 7
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL - 4 + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL - 4 + COUNT ( * )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9949
SELECT DISTINCT - COUNT( * ) * - 61 / - - 79 + - 9 * MIN( ALL - 98 ) * + CASE WHEN NOT + - CAST( NULL AS DECIMAL ) IS NULL AND 4 + + 81 NOT BETWEEN + COUNT( ALL - 18 ) AND ( + AVG ( 52 ) * 53 * + - 43 + - NULLIF ( 86, 29 ) ) THEN + 19 * + COUNT( * ) + 63 END / 56 + - 86 * 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT - COUNT ( * ) * - 61 / - - 79 + - 9 * MIN ( ALL - 98 ) * + CASE WHEN NOT + - CAST ( NULL AS REAL ) IS NULL AND 4 + + 81 NOT BETWEEN + COUNT ( ALL - 18 ) AND ( + AVG ( 52 ) * 53 * + - 43 + - NULLIF ( 86, 29 ) ) THEN + 19 * + COUNT ( * ) + 63 END / 56 + - 86 * 64 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL + 29 + 46 + - 28 * + ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + 29 + 46 + - 28 * + ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT - 64 * + 87 col1
----
-5568

query I rowsort
SELECT ALL + 49 + 83
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT DISTINCT 52 * + - CAST( COUNT( * ) AS SIGNED ) * 92
----
-4784

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT 52 * + - CAST ( COUNT ( * ) AS INTEGER ) * 92
----
-4784

query I rowsort
SELECT 58 + - 21 AS col1
----
37

query II rowsort
SELECT - 88, - 51 AS col0
----
-88
-51

query I rowsort
SELECT - COALESCE ( - 53, + 45 * - 39 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL - SUM( - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL - SUM ( - 73 )
----
73

query I rowsort
SELECT ALL ( + 15 ) - 35
----
-20

query I rowsort
SELECT ( - 87 ) * 92 + + 65 col0
----
-7939

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL ( COUNT( DISTINCT + - 66 ) ) - + 38
----
-37

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL ( COUNT ( DISTINCT + - 66 ) ) - + 38
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL + 2 * + ( - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + 2 * + ( - COUNT ( * ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9962
SELECT 58 * - COUNT( * ) * 86 * - CAST( NULL AS SIGNED ) * - CAST( - 67 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT 58 * - COUNT ( * ) * 86 * - CAST ( NULL AS INTEGER ) * - CAST ( - 67 AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9963
SELECT ALL - ( 50 ) DIV 82 AS col0, MAX( - - 21 ) * 51
----
0
1071

skipif mysql # not compatible
query II rowsort label-9963
SELECT ALL - ( 50 ) / 82 AS col0, MAX ( - - 21 ) * 51
----
0
1071

query I rowsort
SELECT 44 - - 41
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9965
SELECT 47 DIV - 46 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9965
SELECT 47 / - 46 AS col1
----
-1

query I rowsort
SELECT 54 - 92
----
-38

query II rowsort
SELECT DISTINCT - 85 * 27 AS col1, 63 AS col0
----
-2295
63

onlyif mysql # DIV for integer division: 
query II rowsort label-9968
SELECT 73 DIV - 16, - 7 + + 28 DIV 58 AS col1
----
-4
-7

skipif mysql # not compatible
query II rowsort label-9968
SELECT 73 / - 16, - 7 + + 28 / 58 AS col1
----
-4
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT + 40 * + - 25 / CASE SUM( ALL + 17 ) WHEN COUNT( * ) * - + CASE 44 WHEN + + COUNT( * ) + + ( - 71 ) + 93 * + 85 THEN - 79 ELSE + 59 END THEN NULL WHEN 0 / 90 * ( + 45 ) + COALESCE ( + + 51, - 83 ) THEN COUNT( * ) * + SUM( DISTINCT + 27 ) ELSE NULL END / 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT + 40 * + - 25 / CASE SUM ( ALL + 17 ) WHEN COUNT ( * ) * - + CASE 44 WHEN + + COUNT ( * ) + + ( - 71 ) + 93 * + 85 THEN - 79 ELSE + 59 END THEN NULL WHEN 0 / 90 * ( + 45 ) + COALESCE ( + + 51, - 83 ) THEN COUNT ( * ) * + SUM ( DISTINCT + 27 ) ELSE NULL END / 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - 23 * + MIN( + 67 ) AS col1
----
-1541

skipif mysql # not compatible
query I rowsort label-9970
SELECT - 23 * + MIN ( + 67 ) AS col1
----
-1541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9971
SELECT ALL + SUM( ALL + COALESCE ( 82, + + 7, + 50 - CAST( 1 AS SIGNED ) * - + 82 + + 79 ) ) + - 16 + + 47 col2
----
113

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + SUM ( ALL + COALESCE ( 82, + + 7, + 50 - CAST ( 1 AS INTEGER ) * - + 82 + + 79 ) ) + - 16 + + 47 col2
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT + 51 DIV 33 - - 13 DIV 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9972
SELECT + 51 / 33 - - 13 / 29 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9973
SELECT + ( - ( - - 42 ) ) - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * + AVG ( - 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9973
SELECT + ( - ( - - 42 ) ) - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * + AVG ( - 54 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL - - 55 + + 20 * + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL - - 55 + + 20 * + COUNT ( * ) AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9975
SELECT + 90 * 65 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT + 90 * 65 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 21 * - 67 AS col2
----
-1407

query I rowsort
SELECT - 12 + - 90 + - 90 + 43 * + - 57 + - 38 AS col0
----
-2681

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL - COUNT( * ) * + + ( + + 40 ) - 26
----
-66

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - COUNT ( * ) * + + ( + + 40 ) - 26
----
-66

query I rowsort
SELECT 1 + + - 77 + 69
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL + - MAX( ALL 86 ) + 69 col2
----
-17

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL + - MAX ( ALL 86 ) + 69 col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - 97 * + ( + 52 ) * + COUNT( * ) * - 20 + + CASE CASE 83 WHEN 92 + + 85 THEN + + COUNT( DISTINCT 57 ) / + 97 ELSE - 78 END WHEN - 10 * - 87 * + COALESCE ( - 92, + 22 + + COALESCE ( + + 86, 35 ) ) * COUNT( * ) + COALESCE ( 59 - - 94 * + 96, + 43, + 27 + 93 * + 5 ) + - ( - NULLIF ( + COUNT( * ), 85 + 90 ) + - COUNT( * ) * + 8 ) THEN + 45 END * + 11 + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT - 97 * + ( + 52 ) * + COUNT ( * ) * - 20 + + CASE CASE 83 WHEN 92 + + 85 THEN + + COUNT ( DISTINCT 57 ) / + 97 ELSE - 78 END WHEN - 10 * - 87 * + COALESCE ( - 92, + 22 + + COALESCE ( + + 86, 35 ) ) * COUNT ( * ) + COALESCE ( 59 - - 94 * + 96, + 43, + 27 + 93 * + 5 ) + - ( - NULLIF ( + COUNT ( * ), 85 + 90 ) + - COUNT ( * ) * + 8 ) THEN + 45 END * + 11 + 33
----
NULL

query I rowsort
SELECT ALL - - 1 * + 34 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT COUNT( * ) - + ( 15 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT COUNT ( * ) - + ( 15 ) col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9984
SELECT ALL - COUNT( * ) - + 73 AS col1, 8 AS col1
----
-74
8

skipif mysql # not compatible
query II rowsort label-9984
SELECT ALL - COUNT ( * ) - + 73 AS col1, 8 AS col1
----
-74
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT + 28 * + 39 - - MAX( 91 ) col2
----
1183

skipif mysql # not compatible
query I rowsort label-9985
SELECT + 28 * + 39 - - MAX ( 91 ) col2
----
1183

query I rowsort
SELECT - 98 * - 20
----
1960

onlyif mysql # DIV for integer division: 
query I rowsort label-9987
SELECT DISTINCT 64 DIV 5 * 75 AS col1
----
900

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT 64 / 5 * 75 AS col1
----
900

query I rowsort
SELECT ALL 76 - 65
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT 99 * + + MIN( - + 66 ) col0
----
-6534

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT 99 * + + MIN ( - + 66 ) col0
----
-6534

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT - MIN( DISTINCT + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-9990
SELECT - MIN ( DISTINCT + 9 )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-9991
SELECT + 40 DIV - ( + + 45 ) AS col2, 59 AS col1
----
0
59

skipif mysql # not compatible
query II rowsort label-9991
SELECT + 40 / - ( + + 45 ) AS col2, 59 AS col1
----
0
59

query I rowsort
SELECT ALL 22 * 79 AS col2
----
1738

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT + COUNT( * ) * + MIN( - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9993
SELECT + COUNT ( * ) * + MIN ( - 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9994
SELECT ALL 51, COALESCE ( + 21, - 79 ) + - COUNT( * ) + - NULLIF ( - ( + + 18 ), - + 35 ) AS col1
----
51
38

skipif mysql # not compatible
query II rowsort label-9994
SELECT ALL 51, COALESCE ( + 21, - 79 ) + - COUNT ( * ) + - NULLIF ( - ( + + 18 ), - + 35 ) AS col1
----
51
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - MIN( 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9995
SELECT - MIN ( 79 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT + COUNT( * ) + - 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9996
SELECT + COUNT ( * ) + - 57 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT + 98 + + 12 + - COUNT( DISTINCT - - 29 )
----
109

skipif mysql # not compatible
query I rowsort label-9997
SELECT + 98 + + 12 + - COUNT ( DISTINCT - - 29 )
----
109

query I rowsort
SELECT ALL 4 + - 10
----
-6

query II rowsort
SELECT ALL 61, 12 * 31 AS col1
----
61
372

