sqllogictest
Artifact Content
Not logged in

Artifact 0c4aa982bfbb3aad3adaa14849891dc61c0a7455:


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 co